12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247 |
- /*! elasticsearch - v16.7.1 - 2020-03-26
- * https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/16.x/index.html
- * Copyright (c) 2020 Elasticsearch BV; Licensed Apache-2.0 */
- (function() {
- /* prevent lodash from detecting external amd loaders */ var define;
- !(function(a, b) {
- 'object' == typeof exports && 'object' == typeof module
- ? (module.exports = b())
- : 'function' == typeof define && define.amd
- ? define([], b)
- : 'object' == typeof exports
- ? (exports.elasticsearch = b())
- : (a.elasticsearch = b());
- })('undefined' != typeof self ? self : this, function() {
- return (function(a) {
- function b(d) {
- if (c[d]) return c[d].exports;
- var e = (c[d] = { i: d, l: !1, exports: {} });
- return a[d].call(e.exports, e, e.exports, b), (e.l = !0), e.exports;
- }
- var c = {};
- return (
- (b.m = a),
- (b.c = c),
- (b.d = function(a, c, d) {
- b.o(a, c) || Object.defineProperty(a, c, { configurable: !1, enumerable: !0, get: d });
- }),
- (b.n = function(a) {
- var c =
- a && a.__esModule
- ? function() {
- return a.default;
- }
- : function() {
- return a;
- };
- return b.d(c, 'a', c), c;
- }),
- (b.o = function(a, b) {
- return Object.prototype.hasOwnProperty.call(a, b);
- }),
- (b.p = ''),
- b((b.s = 26))
- );
- })([
- function(a, b, c) {
- (function(a, d) {
- var e;
- (function() {
- function f(a, b, c) {
- switch (c.length) {
- case 0:
- return a.call(b);
- case 1:
- return a.call(b, c[0]);
- case 2:
- return a.call(b, c[0], c[1]);
- case 3:
- return a.call(b, c[0], c[1], c[2]);
- }
- return a.apply(b, c);
- }
- function g(a, b, c, d) {
- for (var e = -1, f = null == a ? 0 : a.length; ++e < f; ) {
- var g = a[e];
- b(d, g, c(g), a);
- }
- return d;
- }
- function h(a, b) {
- for (var c = -1, d = null == a ? 0 : a.length; ++c < d && b(a[c], c, a) !== !1; );
- return a;
- }
- function i(a, b) {
- for (var c = null == a ? 0 : a.length; c-- && b(a[c], c, a) !== !1; );
- return a;
- }
- function j(a, b) {
- for (var c = -1, d = null == a ? 0 : a.length; ++c < d; ) if (!b(a[c], c, a)) return !1;
- return !0;
- }
- function k(a, b) {
- for (var c = -1, d = null == a ? 0 : a.length, e = 0, f = []; ++c < d; ) {
- var g = a[c];
- b(g, c, a) && (f[e++] = g);
- }
- return f;
- }
- function l(a, b) {
- var c = null == a ? 0 : a.length;
- return !!c && w(a, b, 0) > -1;
- }
- function m(a, b, c) {
- for (var d = -1, e = null == a ? 0 : a.length; ++d < e; ) if (c(b, a[d])) return !0;
- return !1;
- }
- function n(a, b) {
- for (var c = -1, d = null == a ? 0 : a.length, e = Array(d); ++c < d; )
- e[c] = b(a[c], c, a);
- return e;
- }
- function o(a, b) {
- for (var c = -1, d = b.length, e = a.length; ++c < d; ) a[e + c] = b[c];
- return a;
- }
- function p(a, b, c, d) {
- var e = -1,
- f = null == a ? 0 : a.length;
- for (d && f && (c = a[++e]); ++e < f; ) c = b(c, a[e], e, a);
- return c;
- }
- function q(a, b, c, d) {
- var e = null == a ? 0 : a.length;
- for (d && e && (c = a[--e]); e--; ) c = b(c, a[e], e, a);
- return c;
- }
- function r(a, b) {
- for (var c = -1, d = null == a ? 0 : a.length; ++c < d; ) if (b(a[c], c, a)) return !0;
- return !1;
- }
- function s(a) {
- return a.split('');
- }
- function t(a) {
- return a.match(Ob) || [];
- }
- function u(a, b, c) {
- var d;
- return (
- c(a, function(a, c, e) {
- if (b(a, c, e)) return (d = c), !1;
- }),
- d
- );
- }
- function v(a, b, c, d) {
- for (var e = a.length, f = c + (d ? 1 : -1); d ? f-- : ++f < e; )
- if (b(a[f], f, a)) return f;
- return -1;
- }
- function w(a, b, c) {
- return b === b ? X(a, b, c) : v(a, y, c);
- }
- function x(a, b, c, d) {
- for (var e = c - 1, f = a.length; ++e < f; ) if (d(a[e], b)) return e;
- return -1;
- }
- function y(a) {
- return a !== a;
- }
- function z(a, b) {
- var c = null == a ? 0 : a.length;
- return c ? E(a, b) / c : Ja;
- }
- function A(a) {
- return function(b) {
- return null == b ? ca : b[a];
- };
- }
- function B(a) {
- return function(b) {
- return null == a ? ca : a[b];
- };
- }
- function C(a, b, c, d, e) {
- return (
- e(a, function(a, e, f) {
- c = d ? ((d = !1), a) : b(c, a, e, f);
- }),
- c
- );
- }
- function D(a, b) {
- var c = a.length;
- for (a.sort(b); c--; ) a[c] = a[c].value;
- return a;
- }
- function E(a, b) {
- for (var c, d = -1, e = a.length; ++d < e; ) {
- var f = b(a[d]);
- f !== ca && (c = c === ca ? f : c + f);
- }
- return c;
- }
- function F(a, b) {
- for (var c = -1, d = Array(a); ++c < a; ) d[c] = b(c);
- return d;
- }
- function G(a, b) {
- return n(b, function(b) {
- return [b, a[b]];
- });
- }
- function H(a) {
- return function(b) {
- return a(b);
- };
- }
- function I(a, b) {
- return n(b, function(b) {
- return a[b];
- });
- }
- function J(a, b) {
- return a.has(b);
- }
- function K(a, b) {
- for (var c = -1, d = a.length; ++c < d && w(b, a[c], 0) > -1; );
- return c;
- }
- function L(a, b) {
- for (var c = a.length; c-- && w(b, a[c], 0) > -1; );
- return c;
- }
- function M(a, b) {
- for (var c = a.length, d = 0; c--; ) a[c] === b && ++d;
- return d;
- }
- function N(a) {
- return '\\' + $c[a];
- }
- function O(a, b) {
- return null == a ? ca : a[b];
- }
- function P(a) {
- return Rc.test(a);
- }
- function Q(a) {
- return Sc.test(a);
- }
- function R(a) {
- for (var b, c = []; !(b = a.next()).done; ) c.push(b.value);
- return c;
- }
- function S(a) {
- var b = -1,
- c = Array(a.size);
- return (
- a.forEach(function(a, d) {
- c[++b] = [d, a];
- }),
- c
- );
- }
- function T(a, b) {
- return function(c) {
- return a(b(c));
- };
- }
- function U(a, b) {
- for (var c = -1, d = a.length, e = 0, f = []; ++c < d; ) {
- var g = a[c];
- (g !== b && g !== ja) || ((a[c] = ja), (f[e++] = c));
- }
- return f;
- }
- function V(a) {
- var b = -1,
- c = Array(a.size);
- return (
- a.forEach(function(a) {
- c[++b] = a;
- }),
- c
- );
- }
- function W(a) {
- var b = -1,
- c = Array(a.size);
- return (
- a.forEach(function(a) {
- c[++b] = [a, a];
- }),
- c
- );
- }
- function X(a, b, c) {
- for (var d = c - 1, e = a.length; ++d < e; ) if (a[d] === b) return d;
- return -1;
- }
- function Y(a, b, c) {
- for (var d = c + 1; d--; ) if (a[d] === b) return d;
- return d;
- }
- function Z(a) {
- return P(a) ? _(a) : pd(a);
- }
- function $(a) {
- return P(a) ? aa(a) : s(a);
- }
- function _(a) {
- for (var b = (Pc.lastIndex = 0); Pc.test(a); ) ++b;
- return b;
- }
- function aa(a) {
- return a.match(Pc) || [];
- }
- function ba(a) {
- return a.match(Qc) || [];
- }
- var ca,
- da = '4.17.15',
- ea = 200,
- fa = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
- ga = 'Expected a function',
- ha = '__lodash_hash_undefined__',
- ia = 500,
- ja = '__lodash_placeholder__',
- ka = 1,
- la = 2,
- ma = 4,
- na = 1,
- oa = 2,
- pa = 1,
- qa = 2,
- ra = 4,
- sa = 8,
- ta = 16,
- ua = 32,
- va = 64,
- wa = 128,
- xa = 256,
- ya = 512,
- za = 30,
- Aa = '...',
- Ba = 800,
- Ca = 16,
- Da = 1,
- Ea = 2,
- Fa = 3,
- Ga = 1 / 0,
- Ha = 9007199254740991,
- Ia = 1.7976931348623157e308,
- Ja = NaN,
- Ka = 4294967295,
- La = Ka - 1,
- Ma = Ka >>> 1,
- Na = [
- ['ary', wa],
- ['bind', pa],
- ['bindKey', qa],
- ['curry', sa],
- ['curryRight', ta],
- ['flip', ya],
- ['partial', ua],
- ['partialRight', va],
- ['rearg', xa]
- ],
- Oa = '[object Arguments]',
- Pa = '[object Array]',
- Qa = '[object AsyncFunction]',
- Ra = '[object Boolean]',
- Sa = '[object Date]',
- Ta = '[object DOMException]',
- Ua = '[object Error]',
- Va = '[object Function]',
- Wa = '[object GeneratorFunction]',
- Xa = '[object Map]',
- Ya = '[object Number]',
- Za = '[object Null]',
- $a = '[object Object]',
- _a = '[object Promise]',
- ab = '[object Proxy]',
- bb = '[object RegExp]',
- cb = '[object Set]',
- db = '[object String]',
- eb = '[object Symbol]',
- fb = '[object Undefined]',
- gb = '[object WeakMap]',
- hb = '[object WeakSet]',
- ib = '[object ArrayBuffer]',
- jb = '[object DataView]',
- kb = '[object Float32Array]',
- lb = '[object Float64Array]',
- mb = '[object Int8Array]',
- nb = '[object Int16Array]',
- ob = '[object Int32Array]',
- pb = '[object Uint8Array]',
- qb = '[object Uint8ClampedArray]',
- rb = '[object Uint16Array]',
- sb = '[object Uint32Array]',
- tb = /\b__p \+= '';/g,
- ub = /\b(__p \+=) '' \+/g,
- vb = /(__e\(.*?\)|\b__t\)) \+\n'';/g,
- wb = /&(?:amp|lt|gt|quot|#39);/g,
- xb = /[&<>"']/g,
- yb = RegExp(wb.source),
- zb = RegExp(xb.source),
- Ab = /<%-([\s\S]+?)%>/g,
- Bb = /<%([\s\S]+?)%>/g,
- Cb = /<%=([\s\S]+?)%>/g,
- Db = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
- Eb = /^\w*$/,
- Fb = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
- Gb = /[\\^$.*+?()[\]{}|]/g,
- Hb = RegExp(Gb.source),
- Ib = /^\s+|\s+$/g,
- Jb = /^\s+/,
- Kb = /\s+$/,
- Lb = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
- Mb = /\{\n\/\* \[wrapped with (.+)\] \*/,
- Nb = /,? & /,
- Ob = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,
- Pb = /\\(\\)?/g,
- Qb = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,
- Rb = /\w*$/,
- Sb = /^[-+]0x[0-9a-f]+$/i,
- Tb = /^0b[01]+$/i,
- Ub = /^\[object .+?Constructor\]$/,
- Vb = /^0o[0-7]+$/i,
- Wb = /^(?:0|[1-9]\d*)$/,
- Xb = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,
- Yb = /($^)/,
- Zb = /['\n\r\u2028\u2029\\]/g,
- $b = '\\ud800-\\udfff',
- _b = '\\u0300-\\u036f',
- ac = '\\ufe20-\\ufe2f',
- bc = '\\u20d0-\\u20ff',
- cc = _b + ac + bc,
- dc = '\\u2700-\\u27bf',
- ec = 'a-z\\xdf-\\xf6\\xf8-\\xff',
- fc = '\\xac\\xb1\\xd7\\xf7',
- gc = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
- hc = '\\u2000-\\u206f',
- ic =
- ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
- jc = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
- kc = '\\ufe0e\\ufe0f',
- lc = fc + gc + hc + ic,
- mc = "['’]",
- nc = '[' + $b + ']',
- oc = '[' + lc + ']',
- pc = '[' + cc + ']',
- qc = '\\d+',
- rc = '[' + dc + ']',
- sc = '[' + ec + ']',
- tc = '[^' + $b + lc + qc + dc + ec + jc + ']',
- uc = '\\ud83c[\\udffb-\\udfff]',
- vc = '(?:' + pc + '|' + uc + ')',
- wc = '[^' + $b + ']',
- xc = '(?:\\ud83c[\\udde6-\\uddff]){2}',
- yc = '[\\ud800-\\udbff][\\udc00-\\udfff]',
- zc = '[' + jc + ']',
- Ac = '\\u200d',
- Bc = '(?:' + sc + '|' + tc + ')',
- Cc = '(?:' + zc + '|' + tc + ')',
- Dc = '(?:' + mc + '(?:d|ll|m|re|s|t|ve))?',
- Ec = '(?:' + mc + '(?:D|LL|M|RE|S|T|VE))?',
- Fc = vc + '?',
- Gc = '[' + kc + ']?',
- Hc = '(?:' + Ac + '(?:' + [wc, xc, yc].join('|') + ')' + Gc + Fc + ')*',
- Ic = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
- Jc = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
- Kc = Gc + Fc + Hc,
- Lc = '(?:' + [rc, xc, yc].join('|') + ')' + Kc,
- Mc = '(?:' + [wc + pc + '?', pc, xc, yc, nc].join('|') + ')',
- Nc = RegExp(mc, 'g'),
- Oc = RegExp(pc, 'g'),
- Pc = RegExp(uc + '(?=' + uc + ')|' + Mc + Kc, 'g'),
- Qc = RegExp(
- [
- zc + '?' + sc + '+' + Dc + '(?=' + [oc, zc, '$'].join('|') + ')',
- Cc + '+' + Ec + '(?=' + [oc, zc + Bc, '$'].join('|') + ')',
- zc + '?' + Bc + '+' + Dc,
- zc + '+' + Ec,
- Jc,
- Ic,
- qc,
- Lc
- ].join('|'),
- 'g'
- ),
- Rc = RegExp('[' + Ac + $b + cc + kc + ']'),
- Sc = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,
- Tc = [
- 'Array',
- 'Buffer',
- 'DataView',
- 'Date',
- 'Error',
- 'Float32Array',
- 'Float64Array',
- 'Function',
- 'Int8Array',
- 'Int16Array',
- 'Int32Array',
- 'Map',
- 'Math',
- 'Object',
- 'Promise',
- 'RegExp',
- 'Set',
- 'String',
- 'Symbol',
- 'TypeError',
- 'Uint8Array',
- 'Uint8ClampedArray',
- 'Uint16Array',
- 'Uint32Array',
- 'WeakMap',
- '_',
- 'clearTimeout',
- 'isFinite',
- 'parseInt',
- 'setTimeout'
- ],
- Uc = -1,
- Vc = {};
- (Vc[kb] = Vc[lb] = Vc[mb] = Vc[nb] = Vc[ob] = Vc[pb] = Vc[qb] = Vc[rb] = Vc[sb] = !0),
- (Vc[Oa] = Vc[Pa] = Vc[ib] = Vc[Ra] = Vc[jb] = Vc[Sa] = Vc[Ua] = Vc[Va] = Vc[Xa] = Vc[
- Ya
- ] = Vc[$a] = Vc[bb] = Vc[cb] = Vc[db] = Vc[gb] = !1);
- var Wc = {};
- (Wc[Oa] = Wc[Pa] = Wc[ib] = Wc[jb] = Wc[Ra] = Wc[Sa] = Wc[kb] = Wc[lb] = Wc[mb] = Wc[nb] = Wc[
- ob
- ] = Wc[Xa] = Wc[Ya] = Wc[$a] = Wc[bb] = Wc[cb] = Wc[db] = Wc[eb] = Wc[pb] = Wc[qb] = Wc[
- rb
- ] = Wc[sb] = !0),
- (Wc[Ua] = Wc[Va] = Wc[gb] = !1);
- var Xc = {
- À: 'A',
- Á: 'A',
- Â: 'A',
- Ã: 'A',
- Ä: 'A',
- Å: 'A',
- à: 'a',
- á: 'a',
- â: 'a',
- ã: 'a',
- ä: 'a',
- å: 'a',
- Ç: 'C',
- ç: 'c',
- Ð: 'D',
- ð: 'd',
- È: 'E',
- É: 'E',
- Ê: 'E',
- Ë: 'E',
- è: 'e',
- é: 'e',
- ê: 'e',
- ë: 'e',
- Ì: 'I',
- Í: 'I',
- Î: 'I',
- Ï: 'I',
- ì: 'i',
- í: 'i',
- î: 'i',
- ï: 'i',
- Ñ: 'N',
- ñ: 'n',
- Ò: 'O',
- Ó: 'O',
- Ô: 'O',
- Õ: 'O',
- Ö: 'O',
- Ø: 'O',
- ò: 'o',
- ó: 'o',
- ô: 'o',
- õ: 'o',
- ö: 'o',
- ø: 'o',
- Ù: 'U',
- Ú: 'U',
- Û: 'U',
- Ü: 'U',
- ù: 'u',
- ú: 'u',
- û: 'u',
- ü: 'u',
- Ý: 'Y',
- ý: 'y',
- ÿ: 'y',
- Æ: 'Ae',
- æ: 'ae',
- Þ: 'Th',
- þ: 'th',
- ß: 'ss',
- Ā: 'A',
- Ă: 'A',
- Ą: 'A',
- ā: 'a',
- ă: 'a',
- ą: 'a',
- Ć: 'C',
- Ĉ: 'C',
- Ċ: 'C',
- Č: 'C',
- ć: 'c',
- ĉ: 'c',
- ċ: 'c',
- č: 'c',
- Ď: 'D',
- Đ: 'D',
- ď: 'd',
- đ: 'd',
- Ē: 'E',
- Ĕ: 'E',
- Ė: 'E',
- Ę: 'E',
- Ě: 'E',
- ē: 'e',
- ĕ: 'e',
- ė: 'e',
- ę: 'e',
- ě: 'e',
- Ĝ: 'G',
- Ğ: 'G',
- Ġ: 'G',
- Ģ: 'G',
- ĝ: 'g',
- ğ: 'g',
- ġ: 'g',
- ģ: 'g',
- Ĥ: 'H',
- Ħ: 'H',
- ĥ: 'h',
- ħ: 'h',
- Ĩ: 'I',
- Ī: 'I',
- Ĭ: 'I',
- Į: 'I',
- İ: 'I',
- ĩ: 'i',
- ī: 'i',
- ĭ: 'i',
- į: 'i',
- ı: 'i',
- Ĵ: 'J',
- ĵ: 'j',
- Ķ: 'K',
- ķ: 'k',
- ĸ: 'k',
- Ĺ: 'L',
- Ļ: 'L',
- Ľ: 'L',
- Ŀ: 'L',
- Ł: 'L',
- ĺ: 'l',
- ļ: 'l',
- ľ: 'l',
- ŀ: 'l',
- ł: 'l',
- Ń: 'N',
- Ņ: 'N',
- Ň: 'N',
- Ŋ: 'N',
- ń: 'n',
- ņ: 'n',
- ň: 'n',
- ŋ: 'n',
- Ō: 'O',
- Ŏ: 'O',
- Ő: 'O',
- ō: 'o',
- ŏ: 'o',
- ő: 'o',
- Ŕ: 'R',
- Ŗ: 'R',
- Ř: 'R',
- ŕ: 'r',
- ŗ: 'r',
- ř: 'r',
- Ś: 'S',
- Ŝ: 'S',
- Ş: 'S',
- Š: 'S',
- ś: 's',
- ŝ: 's',
- ş: 's',
- š: 's',
- Ţ: 'T',
- Ť: 'T',
- Ŧ: 'T',
- ţ: 't',
- ť: 't',
- ŧ: 't',
- Ũ: 'U',
- Ū: 'U',
- Ŭ: 'U',
- Ů: 'U',
- Ű: 'U',
- Ų: 'U',
- ũ: 'u',
- ū: 'u',
- ŭ: 'u',
- ů: 'u',
- ű: 'u',
- ų: 'u',
- Ŵ: 'W',
- ŵ: 'w',
- Ŷ: 'Y',
- ŷ: 'y',
- Ÿ: 'Y',
- Ź: 'Z',
- Ż: 'Z',
- Ž: 'Z',
- ź: 'z',
- ż: 'z',
- ž: 'z',
- IJ: 'IJ',
- ij: 'ij',
- Œ: 'Oe',
- œ: 'oe',
- ʼn: "'n",
- ſ: 's'
- },
- Yc = { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' },
- Zc = { '&': '&', '<': '<', '>': '>', '"': '"', ''': "'" },
- $c = { '\\': '\\', "'": "'", '\n': 'n', '\r': 'r', '\u2028': 'u2028', '\u2029': 'u2029' },
- _c = parseFloat,
- ad = parseInt,
- bd = 'object' == typeof a && a && a.Object === Object && a,
- cd = 'object' == typeof self && self && self.Object === Object && self,
- dd = bd || cd || Function('return this')(),
- ed = 'object' == typeof b && b && !b.nodeType && b,
- fd = ed && 'object' == typeof d && d && !d.nodeType && d,
- gd = fd && fd.exports === ed,
- hd = gd && bd.process,
- id = (function() {
- try {
- var a = fd && fd.require && fd.require('util').types;
- return a ? a : hd && hd.binding && hd.binding('util');
- } catch (a) {}
- })(),
- jd = id && id.isArrayBuffer,
- kd = id && id.isDate,
- ld = id && id.isMap,
- md = id && id.isRegExp,
- nd = id && id.isSet,
- od = id && id.isTypedArray,
- pd = A('length'),
- qd = B(Xc),
- rd = B(Yc),
- sd = B(Zc),
- td = function a(b) {
- function c(a) {
- if (ei(a) && !pm(a) && !(a instanceof s)) {
- if (a instanceof e) return a;
- if (pk.call(a, '__wrapped__')) return bg(a);
- }
- return new e(a);
- }
- function d() {}
- function e(a, b) {
- (this.__wrapped__ = a),
- (this.__actions__ = []),
- (this.__chain__ = !!b),
- (this.__index__ = 0),
- (this.__values__ = ca);
- }
- function s(a) {
- (this.__wrapped__ = a),
- (this.__actions__ = []),
- (this.__dir__ = 1),
- (this.__filtered__ = !1),
- (this.__iteratees__ = []),
- (this.__takeCount__ = Ka),
- (this.__views__ = []);
- }
- function B() {
- var a = new s(this.__wrapped__);
- return (
- (a.__actions__ = Ie(this.__actions__)),
- (a.__dir__ = this.__dir__),
- (a.__filtered__ = this.__filtered__),
- (a.__iteratees__ = Ie(this.__iteratees__)),
- (a.__takeCount__ = this.__takeCount__),
- (a.__views__ = Ie(this.__views__)),
- a
- );
- }
- function X() {
- if (this.__filtered__) {
- var a = new s(this);
- (a.__dir__ = -1), (a.__filtered__ = !0);
- } else (a = this.clone()), (a.__dir__ *= -1);
- return a;
- }
- function _() {
- var a = this.__wrapped__.value(),
- b = this.__dir__,
- c = pm(a),
- d = b < 0,
- e = c ? a.length : 0,
- f = yf(0, e, this.__views__),
- g = f.start,
- h = f.end,
- i = h - g,
- j = d ? h : g - 1,
- k = this.__iteratees__,
- l = k.length,
- m = 0,
- n = Tk(i, this.__takeCount__);
- if (!c || (!d && e == i && n == i)) return re(a, this.__actions__);
- var o = [];
- a: for (; i-- && m < n; ) {
- j += b;
- for (var p = -1, q = a[j]; ++p < l; ) {
- var r = k[p],
- s = r.iteratee,
- t = r.type,
- u = s(q);
- if (t == Ea) q = u;
- else if (!u) {
- if (t == Da) continue a;
- break a;
- }
- }
- o[m++] = q;
- }
- return o;
- }
- function aa(a) {
- var b = -1,
- c = null == a ? 0 : a.length;
- for (this.clear(); ++b < c; ) {
- var d = a[b];
- this.set(d[0], d[1]);
- }
- }
- function Ob() {
- (this.__data__ = bl ? bl(null) : {}), (this.size = 0);
- }
- function $b(a) {
- var b = this.has(a) && delete this.__data__[a];
- return (this.size -= b ? 1 : 0), b;
- }
- function _b(a) {
- var b = this.__data__;
- if (bl) {
- var c = b[a];
- return c === ha ? ca : c;
- }
- return pk.call(b, a) ? b[a] : ca;
- }
- function ac(a) {
- var b = this.__data__;
- return bl ? b[a] !== ca : pk.call(b, a);
- }
- function bc(a, b) {
- var c = this.__data__;
- return (this.size += this.has(a) ? 0 : 1), (c[a] = bl && b === ca ? ha : b), this;
- }
- function cc(a) {
- var b = -1,
- c = null == a ? 0 : a.length;
- for (this.clear(); ++b < c; ) {
- var d = a[b];
- this.set(d[0], d[1]);
- }
- }
- function dc() {
- (this.__data__ = []), (this.size = 0);
- }
- function ec(a) {
- var b = this.__data__,
- c = Dc(b, a);
- if (c < 0) return !1;
- var d = b.length - 1;
- return c == d ? b.pop() : Dk.call(b, c, 1), --this.size, !0;
- }
- function fc(a) {
- var b = this.__data__,
- c = Dc(b, a);
- return c < 0 ? ca : b[c][1];
- }
- function gc(a) {
- return Dc(this.__data__, a) > -1;
- }
- function hc(a, b) {
- var c = this.__data__,
- d = Dc(c, a);
- return d < 0 ? (++this.size, c.push([a, b])) : (c[d][1] = b), this;
- }
- function ic(a) {
- var b = -1,
- c = null == a ? 0 : a.length;
- for (this.clear(); ++b < c; ) {
- var d = a[b];
- this.set(d[0], d[1]);
- }
- }
- function jc() {
- (this.size = 0),
- (this.__data__ = { hash: new aa(), map: new (Zk || cc)(), string: new aa() });
- }
- function kc(a) {
- var b = uf(this, a).delete(a);
- return (this.size -= b ? 1 : 0), b;
- }
- function lc(a) {
- return uf(this, a).get(a);
- }
- function mc(a) {
- return uf(this, a).has(a);
- }
- function nc(a, b) {
- var c = uf(this, a),
- d = c.size;
- return c.set(a, b), (this.size += c.size == d ? 0 : 1), this;
- }
- function oc(a) {
- var b = -1,
- c = null == a ? 0 : a.length;
- for (this.__data__ = new ic(); ++b < c; ) this.add(a[b]);
- }
- function pc(a) {
- return this.__data__.set(a, ha), this;
- }
- function qc(a) {
- return this.__data__.has(a);
- }
- function rc(a) {
- var b = (this.__data__ = new cc(a));
- this.size = b.size;
- }
- function sc() {
- (this.__data__ = new cc()), (this.size = 0);
- }
- function tc(a) {
- var b = this.__data__,
- c = b.delete(a);
- return (this.size = b.size), c;
- }
- function uc(a) {
- return this.__data__.get(a);
- }
- function vc(a) {
- return this.__data__.has(a);
- }
- function wc(a, b) {
- var c = this.__data__;
- if (c instanceof cc) {
- var d = c.__data__;
- if (!Zk || d.length < ea - 1)
- return d.push([a, b]), (this.size = ++c.size), this;
- c = this.__data__ = new ic(d);
- }
- return c.set(a, b), (this.size = c.size), this;
- }
- function xc(a, b) {
- var c = pm(a),
- d = !c && om(a),
- e = !c && !d && rm(a),
- f = !c && !d && !e && wm(a),
- g = c || d || e || f,
- h = g ? F(a.length, ik) : [],
- i = h.length;
- for (var j in a)
- (!b && !pk.call(a, j)) ||
- (g &&
- ('length' == j ||
- (e && ('offset' == j || 'parent' == j)) ||
- (f && ('buffer' == j || 'byteLength' == j || 'byteOffset' == j)) ||
- Gf(j, i))) ||
- h.push(j);
- return h;
- }
- function yc(a) {
- var b = a.length;
- return b ? a[$d(0, b - 1)] : ca;
- }
- function zc(a, b) {
- return Zf(Ie(a), Jc(b, 0, a.length));
- }
- function Ac(a) {
- return Zf(Ie(a));
- }
- function Bc(a, b, c) {
- ((c === ca || Sh(a[b], c)) && (c !== ca || b in a)) || Hc(a, b, c);
- }
- function Cc(a, b, c) {
- var d = a[b];
- (pk.call(a, b) && Sh(d, c) && (c !== ca || b in a)) || Hc(a, b, c);
- }
- function Dc(a, b) {
- for (var c = a.length; c--; ) if (Sh(a[c][0], b)) return c;
- return -1;
- }
- function Ec(a, b, c, d) {
- return (
- nl(a, function(a, e, f) {
- b(d, a, c(a), f);
- }),
- d
- );
- }
- function Fc(a, b) {
- return a && Je(b, Ni(b), a);
- }
- function Gc(a, b) {
- return a && Je(b, Oi(b), a);
- }
- function Hc(a, b, c) {
- '__proto__' == b && Hk
- ? Hk(a, b, { configurable: !0, enumerable: !0, value: c, writable: !0 })
- : (a[b] = c);
- }
- function Ic(a, b) {
- for (var c = -1, d = b.length, e = bk(d), f = null == a; ++c < d; )
- e[c] = f ? ca : Ki(a, b[c]);
- return e;
- }
- function Jc(a, b, c) {
- return (
- a === a && (c !== ca && (a = a <= c ? a : c), b !== ca && (a = a >= b ? a : b)),
- a
- );
- }
- function Kc(a, b, c, d, e, f) {
- var g,
- i = b & ka,
- j = b & la,
- k = b & ma;
- if ((c && (g = e ? c(a, d, e, f) : c(a)), g !== ca)) return g;
- if (!di(a)) return a;
- var l = pm(a);
- if (l) {
- if (((g = Bf(a)), !i)) return Ie(a, g);
- } else {
- var m = zl(a),
- n = m == Va || m == Wa;
- if (rm(a)) return ye(a, i);
- if (m == $a || m == Oa || (n && !e)) {
- if (((g = j || n ? {} : Cf(a)), !i))
- return j ? Le(a, Gc(g, a)) : Ke(a, Fc(g, a));
- } else {
- if (!Wc[m]) return e ? a : {};
- g = Df(a, m, i);
- }
- }
- f || (f = new rc());
- var o = f.get(a);
- if (o) return o;
- f.set(a, g),
- vm(a)
- ? a.forEach(function(d) {
- g.add(Kc(d, b, c, d, a, f));
- })
- : tm(a) &&
- a.forEach(function(d, e) {
- g.set(e, Kc(d, b, c, e, a, f));
- });
- var p = k ? (j ? qf : pf) : j ? Oi : Ni,
- q = l ? ca : p(a);
- return (
- h(q || a, function(d, e) {
- q && ((e = d), (d = a[e])), Cc(g, e, Kc(d, b, c, e, a, f));
- }),
- g
- );
- }
- function Lc(a) {
- var b = Ni(a);
- return function(c) {
- return Mc(c, a, b);
- };
- }
- function Mc(a, b, c) {
- var d = c.length;
- if (null == a) return !d;
- for (a = gk(a); d--; ) {
- var e = c[d],
- f = b[e],
- g = a[e];
- if ((g === ca && !(e in a)) || !f(g)) return !1;
- }
- return !0;
- }
- function Pc(a, b, c) {
- if ('function' != typeof a) throw new jk(ga);
- return Cl(function() {
- a.apply(ca, c);
- }, b);
- }
- function Qc(a, b, c, d) {
- var e = -1,
- f = l,
- g = !0,
- h = a.length,
- i = [],
- j = b.length;
- if (!h) return i;
- c && (b = n(b, H(c))),
- d
- ? ((f = m), (g = !1))
- : b.length >= ea && ((f = J), (g = !1), (b = new oc(b)));
- a: for (; ++e < h; ) {
- var k = a[e],
- o = null == c ? k : c(k);
- if (((k = d || 0 !== k ? k : 0), g && o === o)) {
- for (var p = j; p--; ) if (b[p] === o) continue a;
- i.push(k);
- } else f(b, o, d) || i.push(k);
- }
- return i;
- }
- function Rc(a, b) {
- var c = !0;
- return (
- nl(a, function(a, d, e) {
- return (c = !!b(a, d, e));
- }),
- c
- );
- }
- function Sc(a, b, c) {
- for (var d = -1, e = a.length; ++d < e; ) {
- var f = a[d],
- g = b(f);
- if (null != g && (h === ca ? g === g && !pi(g) : c(g, h)))
- var h = g,
- i = f;
- }
- return i;
- }
- function Xc(a, b, c, d) {
- var e = a.length;
- for (
- c = vi(c),
- c < 0 && (c = -c > e ? 0 : e + c),
- d = d === ca || d > e ? e : vi(d),
- d < 0 && (d += e),
- d = c > d ? 0 : wi(d);
- c < d;
- )
- a[c++] = b;
- return a;
- }
- function Yc(a, b) {
- var c = [];
- return (
- nl(a, function(a, d, e) {
- b(a, d, e) && c.push(a);
- }),
- c
- );
- }
- function Zc(a, b, c, d, e) {
- var f = -1,
- g = a.length;
- for (c || (c = Ff), e || (e = []); ++f < g; ) {
- var h = a[f];
- b > 0 && c(h)
- ? b > 1
- ? Zc(h, b - 1, c, d, e)
- : o(e, h)
- : d || (e[e.length] = h);
- }
- return e;
- }
- function $c(a, b) {
- return a && pl(a, b, Ni);
- }
- function bd(a, b) {
- return a && ql(a, b, Ni);
- }
- function cd(a, b) {
- return k(b, function(b) {
- return ai(a[b]);
- });
- }
- function ed(a, b) {
- b = we(b, a);
- for (var c = 0, d = b.length; null != a && c < d; ) a = a[$f(b[c++])];
- return c && c == d ? a : ca;
- }
- function fd(a, b, c) {
- var d = b(a);
- return pm(a) ? d : o(d, c(a));
- }
- function hd(a) {
- return null == a ? (a === ca ? fb : Za) : Gk && Gk in gk(a) ? xf(a) : Sf(a);
- }
- function id(a, b) {
- return a > b;
- }
- function pd(a, b) {
- return null != a && pk.call(a, b);
- }
- function td(a, b) {
- return null != a && b in gk(a);
- }
- function vd(a, b, c) {
- return a >= Tk(b, c) && a < Sk(b, c);
- }
- function wd(a, b, c) {
- for (
- var d = c ? m : l,
- e = a[0].length,
- f = a.length,
- g = f,
- h = bk(f),
- i = 1 / 0,
- j = [];
- g--;
- ) {
- var k = a[g];
- g && b && (k = n(k, H(b))),
- (i = Tk(k.length, i)),
- (h[g] = !c && (b || (e >= 120 && k.length >= 120)) ? new oc(g && k) : ca);
- }
- k = a[0];
- var o = -1,
- p = h[0];
- a: for (; ++o < e && j.length < i; ) {
- var q = k[o],
- r = b ? b(q) : q;
- if (((q = c || 0 !== q ? q : 0), !(p ? J(p, r) : d(j, r, c)))) {
- for (g = f; --g; ) {
- var s = h[g];
- if (!(s ? J(s, r) : d(a[g], r, c))) continue a;
- }
- p && p.push(r), j.push(q);
- }
- }
- return j;
- }
- function xd(a, b, c, d) {
- return (
- $c(a, function(a, e, f) {
- b(d, c(a), e, f);
- }),
- d
- );
- }
- function yd(a, b, c) {
- (b = we(b, a)), (a = Uf(a, b));
- var d = null == a ? a : a[$f(ug(b))];
- return null == d ? ca : f(d, a, c);
- }
- function zd(a) {
- return ei(a) && hd(a) == Oa;
- }
- function Ad(a) {
- return ei(a) && hd(a) == ib;
- }
- function Bd(a) {
- return ei(a) && hd(a) == Sa;
- }
- function Cd(a, b, c, d, e) {
- return (
- a === b ||
- (null == a || null == b || (!ei(a) && !ei(b))
- ? a !== a && b !== b
- : Dd(a, b, c, d, Cd, e))
- );
- }
- function Dd(a, b, c, d, e, f) {
- var g = pm(a),
- h = pm(b),
- i = g ? Pa : zl(a),
- j = h ? Pa : zl(b);
- (i = i == Oa ? $a : i), (j = j == Oa ? $a : j);
- var k = i == $a,
- l = j == $a,
- m = i == j;
- if (m && rm(a)) {
- if (!rm(b)) return !1;
- (g = !0), (k = !1);
- }
- if (m && !k)
- return (
- f || (f = new rc()),
- g || wm(a) ? lf(a, b, c, d, e, f) : mf(a, b, i, c, d, e, f)
- );
- if (!(c & na)) {
- var n = k && pk.call(a, '__wrapped__'),
- o = l && pk.call(b, '__wrapped__');
- if (n || o) {
- var p = n ? a.value() : a,
- q = o ? b.value() : b;
- return f || (f = new rc()), e(p, q, c, d, f);
- }
- }
- return !!m && (f || (f = new rc()), nf(a, b, c, d, e, f));
- }
- function Ed(a) {
- return ei(a) && zl(a) == Xa;
- }
- function Fd(a, b, c, d) {
- var e = c.length,
- f = e,
- g = !d;
- if (null == a) return !f;
- for (a = gk(a); e--; ) {
- var h = c[e];
- if (g && h[2] ? h[1] !== a[h[0]] : !(h[0] in a)) return !1;
- }
- for (; ++e < f; ) {
- h = c[e];
- var i = h[0],
- j = a[i],
- k = h[1];
- if (g && h[2]) {
- if (j === ca && !(i in a)) return !1;
- } else {
- var l = new rc();
- if (d) var m = d(j, k, i, a, b, l);
- if (!(m === ca ? Cd(k, j, na | oa, d, l) : m)) return !1;
- }
- }
- return !0;
- }
- function Gd(a) {
- if (!di(a) || Lf(a)) return !1;
- var b = ai(a) ? vk : Ub;
- return b.test(_f(a));
- }
- function Hd(a) {
- return ei(a) && hd(a) == bb;
- }
- function Id(a) {
- return ei(a) && zl(a) == cb;
- }
- function Jd(a) {
- return ei(a) && ci(a.length) && !!Vc[hd(a)];
- }
- function Kd(a) {
- return 'function' == typeof a
- ? a
- : null == a
- ? Dj
- : 'object' == typeof a
- ? pm(a)
- ? Qd(a[0], a[1])
- : Pd(a)
- : Lj(a);
- }
- function Ld(a) {
- if (!Mf(a)) return Rk(a);
- var b = [];
- for (var c in gk(a)) pk.call(a, c) && 'constructor' != c && b.push(c);
- return b;
- }
- function Md(a) {
- if (!di(a)) return Rf(a);
- var b = Mf(a),
- c = [];
- for (var d in a) ('constructor' != d || (!b && pk.call(a, d))) && c.push(d);
- return c;
- }
- function Nd(a, b) {
- return a < b;
- }
- function Od(a, b) {
- var c = -1,
- d = Th(a) ? bk(a.length) : [];
- return (
- nl(a, function(a, e, f) {
- d[++c] = b(a, e, f);
- }),
- d
- );
- }
- function Pd(a) {
- var b = vf(a);
- return 1 == b.length && b[0][2]
- ? Of(b[0][0], b[0][1])
- : function(c) {
- return c === a || Fd(c, a, b);
- };
- }
- function Qd(a, b) {
- return If(a) && Nf(b)
- ? Of($f(a), b)
- : function(c) {
- var d = Ki(c, a);
- return d === ca && d === b ? Mi(c, a) : Cd(b, d, na | oa);
- };
- }
- function Rd(a, b, c, d, e) {
- a !== b &&
- pl(
- b,
- function(f, g) {
- if ((e || (e = new rc()), di(f))) Sd(a, b, g, c, Rd, d, e);
- else {
- var h = d ? d(Wf(a, g), f, g + '', a, b, e) : ca;
- h === ca && (h = f), Bc(a, g, h);
- }
- },
- Oi
- );
- }
- function Sd(a, b, c, d, e, f, g) {
- var h = Wf(a, c),
- i = Wf(b, c),
- j = g.get(i);
- if (j) return void Bc(a, c, j);
- var k = f ? f(h, i, c + '', a, b, g) : ca,
- l = k === ca;
- if (l) {
- var m = pm(i),
- n = !m && rm(i),
- o = !m && !n && wm(i);
- (k = i),
- m || n || o
- ? pm(h)
- ? (k = h)
- : Uh(h)
- ? (k = Ie(h))
- : n
- ? ((l = !1), (k = ye(i, !0)))
- : o
- ? ((l = !1), (k = De(i, !0)))
- : (k = [])
- : mi(i) || om(i)
- ? ((k = h), om(h) ? (k = yi(h)) : (di(h) && !ai(h)) || (k = Cf(i)))
- : (l = !1);
- }
- l && (g.set(i, k), e(k, i, d, f, g), g.delete(i)), Bc(a, c, k);
- }
- function Td(a, b) {
- var c = a.length;
- if (c) return (b += b < 0 ? c : 0), Gf(b, c) ? a[b] : ca;
- }
- function Ud(a, b, c) {
- var d = -1;
- b = n(b.length ? b : [Dj], H(tf()));
- var e = Od(a, function(a, c, e) {
- var f = n(b, function(b) {
- return b(a);
- });
- return { criteria: f, index: ++d, value: a };
- });
- return D(e, function(a, b) {
- return Fe(a, b, c);
- });
- }
- function Vd(a, b) {
- return Wd(a, b, function(b, c) {
- return Mi(a, c);
- });
- }
- function Wd(a, b, c) {
- for (var d = -1, e = b.length, f = {}; ++d < e; ) {
- var g = b[d],
- h = ed(a, g);
- c(h, g) && ee(f, we(g, a), h);
- }
- return f;
- }
- function Xd(a) {
- return function(b) {
- return ed(b, a);
- };
- }
- function Yd(a, b, c, d) {
- var e = d ? x : w,
- f = -1,
- g = b.length,
- h = a;
- for (a === b && (b = Ie(b)), c && (h = n(a, H(c))); ++f < g; )
- for (var i = 0, j = b[f], k = c ? c(j) : j; (i = e(h, k, i, d)) > -1; )
- h !== a && Dk.call(h, i, 1), Dk.call(a, i, 1);
- return a;
- }
- function Zd(a, b) {
- for (var c = a ? b.length : 0, d = c - 1; c--; ) {
- var e = b[c];
- if (c == d || e !== f) {
- var f = e;
- Gf(e) ? Dk.call(a, e, 1) : oe(a, e);
- }
- }
- return a;
- }
- function $d(a, b) {
- return a + Mk(Wk() * (b - a + 1));
- }
- function _d(a, b, c, d) {
- for (var e = -1, f = Sk(Lk((b - a) / (c || 1)), 0), g = bk(f); f--; )
- (g[d ? f : ++e] = a), (a += c);
- return g;
- }
- function ae(a, b) {
- var c = '';
- if (!a || b < 1 || b > Ha) return c;
- do b % 2 && (c += a), (b = Mk(b / 2)), b && (a += a);
- while (b);
- return c;
- }
- function be(a, b) {
- return Dl(Tf(a, b, Dj), a + '');
- }
- function ce(a) {
- return yc($i(a));
- }
- function de(a, b) {
- var c = $i(a);
- return Zf(c, Jc(b, 0, c.length));
- }
- function ee(a, b, c, d) {
- if (!di(a)) return a;
- b = we(b, a);
- for (var e = -1, f = b.length, g = f - 1, h = a; null != h && ++e < f; ) {
- var i = $f(b[e]),
- j = c;
- if (e != g) {
- var k = h[i];
- (j = d ? d(k, i, h) : ca),
- j === ca && (j = di(k) ? k : Gf(b[e + 1]) ? [] : {});
- }
- Cc(h, i, j), (h = h[i]);
- }
- return a;
- }
- function fe(a) {
- return Zf($i(a));
- }
- function ge(a, b, c) {
- var d = -1,
- e = a.length;
- b < 0 && (b = -b > e ? 0 : e + b),
- (c = c > e ? e : c),
- c < 0 && (c += e),
- (e = b > c ? 0 : (c - b) >>> 0),
- (b >>>= 0);
- for (var f = bk(e); ++d < e; ) f[d] = a[d + b];
- return f;
- }
- function he(a, b) {
- var c;
- return (
- nl(a, function(a, d, e) {
- return (c = b(a, d, e)), !c;
- }),
- !!c
- );
- }
- function ie(a, b, c) {
- var d = 0,
- e = null == a ? d : a.length;
- if ('number' == typeof b && b === b && e <= Ma) {
- for (; d < e; ) {
- var f = (d + e) >>> 1,
- g = a[f];
- null !== g && !pi(g) && (c ? g <= b : g < b) ? (d = f + 1) : (e = f);
- }
- return e;
- }
- return je(a, b, Dj, c);
- }
- function je(a, b, c, d) {
- b = c(b);
- for (
- var e = 0,
- f = null == a ? 0 : a.length,
- g = b !== b,
- h = null === b,
- i = pi(b),
- j = b === ca;
- e < f;
- ) {
- var k = Mk((e + f) / 2),
- l = c(a[k]),
- m = l !== ca,
- n = null === l,
- o = l === l,
- p = pi(l);
- if (g) var q = d || o;
- else
- q = j
- ? o && (d || m)
- : h
- ? o && m && (d || !n)
- : i
- ? o && m && !n && (d || !p)
- : !n && !p && (d ? l <= b : l < b);
- q ? (e = k + 1) : (f = k);
- }
- return Tk(f, La);
- }
- function ke(a, b) {
- for (var c = -1, d = a.length, e = 0, f = []; ++c < d; ) {
- var g = a[c],
- h = b ? b(g) : g;
- if (!c || !Sh(h, i)) {
- var i = h;
- f[e++] = 0 === g ? 0 : g;
- }
- }
- return f;
- }
- function le(a) {
- return 'number' == typeof a ? a : pi(a) ? Ja : +a;
- }
- function me(a) {
- if ('string' == typeof a) return a;
- if (pm(a)) return n(a, me) + '';
- if (pi(a)) return ll ? ll.call(a) : '';
- var b = a + '';
- return '0' == b && 1 / a == -Ga ? '-0' : b;
- }
- function ne(a, b, c) {
- var d = -1,
- e = l,
- f = a.length,
- g = !0,
- h = [],
- i = h;
- if (c) (g = !1), (e = m);
- else if (f >= ea) {
- var j = b ? null : vl(a);
- if (j) return V(j);
- (g = !1), (e = J), (i = new oc());
- } else i = b ? [] : h;
- a: for (; ++d < f; ) {
- var k = a[d],
- n = b ? b(k) : k;
- if (((k = c || 0 !== k ? k : 0), g && n === n)) {
- for (var o = i.length; o--; ) if (i[o] === n) continue a;
- b && i.push(n), h.push(k);
- } else e(i, n, c) || (i !== h && i.push(n), h.push(k));
- }
- return h;
- }
- function oe(a, b) {
- return (b = we(b, a)), (a = Uf(a, b)), null == a || delete a[$f(ug(b))];
- }
- function pe(a, b, c, d) {
- return ee(a, b, c(ed(a, b)), d);
- }
- function qe(a, b, c, d) {
- for (var e = a.length, f = d ? e : -1; (d ? f-- : ++f < e) && b(a[f], f, a); );
- return c ? ge(a, d ? 0 : f, d ? f + 1 : e) : ge(a, d ? f + 1 : 0, d ? e : f);
- }
- function re(a, b) {
- var c = a;
- return (
- c instanceof s && (c = c.value()),
- p(
- b,
- function(a, b) {
- return b.func.apply(b.thisArg, o([a], b.args));
- },
- c
- )
- );
- }
- function se(a, b, c) {
- var d = a.length;
- if (d < 2) return d ? ne(a[0]) : [];
- for (var e = -1, f = bk(d); ++e < d; )
- for (var g = a[e], h = -1; ++h < d; )
- h != e && (f[e] = Qc(f[e] || g, a[h], b, c));
- return ne(Zc(f, 1), b, c);
- }
- function te(a, b, c) {
- for (var d = -1, e = a.length, f = b.length, g = {}; ++d < e; ) {
- var h = d < f ? b[d] : ca;
- c(g, a[d], h);
- }
- return g;
- }
- function ue(a) {
- return Uh(a) ? a : [];
- }
- function ve(a) {
- return 'function' == typeof a ? a : Dj;
- }
- function we(a, b) {
- return pm(a) ? a : If(a, b) ? [a] : El(Ai(a));
- }
- function xe(a, b, c) {
- var d = a.length;
- return (c = c === ca ? d : c), !b && c >= d ? a : ge(a, b, c);
- }
- function ye(a, b) {
- if (b) return a.slice();
- var c = a.length,
- d = zk ? zk(c) : new a.constructor(c);
- return a.copy(d), d;
- }
- function ze(a) {
- var b = new a.constructor(a.byteLength);
- return new yk(b).set(new yk(a)), b;
- }
- function Ae(a, b) {
- var c = b ? ze(a.buffer) : a.buffer;
- return new a.constructor(c, a.byteOffset, a.byteLength);
- }
- function Be(a) {
- var b = new a.constructor(a.source, Rb.exec(a));
- return (b.lastIndex = a.lastIndex), b;
- }
- function Ce(a) {
- return kl ? gk(kl.call(a)) : {};
- }
- function De(a, b) {
- var c = b ? ze(a.buffer) : a.buffer;
- return new a.constructor(c, a.byteOffset, a.length);
- }
- function Ee(a, b) {
- if (a !== b) {
- var c = a !== ca,
- d = null === a,
- e = a === a,
- f = pi(a),
- g = b !== ca,
- h = null === b,
- i = b === b,
- j = pi(b);
- if (
- (!h && !j && !f && a > b) ||
- (f && g && i && !h && !j) ||
- (d && g && i) ||
- (!c && i) ||
- !e
- )
- return 1;
- if (
- (!d && !f && !j && a < b) ||
- (j && c && e && !d && !f) ||
- (h && c && e) ||
- (!g && e) ||
- !i
- )
- return -1;
- }
- return 0;
- }
- function Fe(a, b, c) {
- for (
- var d = -1, e = a.criteria, f = b.criteria, g = e.length, h = c.length;
- ++d < g;
- ) {
- var i = Ee(e[d], f[d]);
- if (i) {
- if (d >= h) return i;
- var j = c[d];
- return i * ('desc' == j ? -1 : 1);
- }
- }
- return a.index - b.index;
- }
- function Ge(a, b, c, d) {
- for (
- var e = -1,
- f = a.length,
- g = c.length,
- h = -1,
- i = b.length,
- j = Sk(f - g, 0),
- k = bk(i + j),
- l = !d;
- ++h < i;
- )
- k[h] = b[h];
- for (; ++e < g; ) (l || e < f) && (k[c[e]] = a[e]);
- for (; j--; ) k[h++] = a[e++];
- return k;
- }
- function He(a, b, c, d) {
- for (
- var e = -1,
- f = a.length,
- g = -1,
- h = c.length,
- i = -1,
- j = b.length,
- k = Sk(f - h, 0),
- l = bk(k + j),
- m = !d;
- ++e < k;
- )
- l[e] = a[e];
- for (var n = e; ++i < j; ) l[n + i] = b[i];
- for (; ++g < h; ) (m || e < f) && (l[n + c[g]] = a[e++]);
- return l;
- }
- function Ie(a, b) {
- var c = -1,
- d = a.length;
- for (b || (b = bk(d)); ++c < d; ) b[c] = a[c];
- return b;
- }
- function Je(a, b, c, d) {
- var e = !c;
- c || (c = {});
- for (var f = -1, g = b.length; ++f < g; ) {
- var h = b[f],
- i = d ? d(c[h], a[h], h, c, a) : ca;
- i === ca && (i = a[h]), e ? Hc(c, h, i) : Cc(c, h, i);
- }
- return c;
- }
- function Ke(a, b) {
- return Je(a, xl(a), b);
- }
- function Le(a, b) {
- return Je(a, yl(a), b);
- }
- function Me(a, b) {
- return function(c, d) {
- var e = pm(c) ? g : Ec,
- f = b ? b() : {};
- return e(c, a, tf(d, 2), f);
- };
- }
- function Ne(a) {
- return be(function(b, c) {
- var d = -1,
- e = c.length,
- f = e > 1 ? c[e - 1] : ca,
- g = e > 2 ? c[2] : ca;
- for (
- f = a.length > 3 && 'function' == typeof f ? (e--, f) : ca,
- g && Hf(c[0], c[1], g) && ((f = e < 3 ? ca : f), (e = 1)),
- b = gk(b);
- ++d < e;
- ) {
- var h = c[d];
- h && a(b, h, d, f);
- }
- return b;
- });
- }
- function Oe(a, b) {
- return function(c, d) {
- if (null == c) return c;
- if (!Th(c)) return a(c, d);
- for (
- var e = c.length, f = b ? e : -1, g = gk(c);
- (b ? f-- : ++f < e) && d(g[f], f, g) !== !1;
- );
- return c;
- };
- }
- function Pe(a) {
- return function(b, c, d) {
- for (var e = -1, f = gk(b), g = d(b), h = g.length; h--; ) {
- var i = g[a ? h : ++e];
- if (c(f[i], i, f) === !1) break;
- }
- return b;
- };
- }
- function Qe(a, b, c) {
- function d() {
- var b = this && this !== dd && this instanceof d ? f : a;
- return b.apply(e ? c : this, arguments);
- }
- var e = b & pa,
- f = Te(a);
- return d;
- }
- function Re(a) {
- return function(b) {
- b = Ai(b);
- var c = P(b) ? $(b) : ca,
- d = c ? c[0] : b.charAt(0),
- e = c ? xe(c, 1).join('') : b.slice(1);
- return d[a]() + e;
- };
- }
- function Se(a) {
- return function(b) {
- return p(yj(ej(b).replace(Nc, '')), a, '');
- };
- }
- function Te(a) {
- return function() {
- var b = arguments;
- switch (b.length) {
- case 0:
- return new a();
- case 1:
- return new a(b[0]);
- case 2:
- return new a(b[0], b[1]);
- case 3:
- return new a(b[0], b[1], b[2]);
- case 4:
- return new a(b[0], b[1], b[2], b[3]);
- case 5:
- return new a(b[0], b[1], b[2], b[3], b[4]);
- case 6:
- return new a(b[0], b[1], b[2], b[3], b[4], b[5]);
- case 7:
- return new a(b[0], b[1], b[2], b[3], b[4], b[5], b[6]);
- }
- var c = ml(a.prototype),
- d = a.apply(c, b);
- return di(d) ? d : c;
- };
- }
- function Ue(a, b, c) {
- function d() {
- for (var g = arguments.length, h = bk(g), i = g, j = sf(d); i--; )
- h[i] = arguments[i];
- var k = g < 3 && h[0] !== j && h[g - 1] !== j ? [] : U(h, j);
- if (((g -= k.length), g < c))
- return df(a, b, Xe, d.placeholder, ca, h, k, ca, ca, c - g);
- var l = this && this !== dd && this instanceof d ? e : a;
- return f(l, this, h);
- }
- var e = Te(a);
- return d;
- }
- function Ve(a) {
- return function(b, c, d) {
- var e = gk(b);
- if (!Th(b)) {
- var f = tf(c, 3);
- (b = Ni(b)),
- (c = function(a) {
- return f(e[a], a, e);
- });
- }
- var g = a(b, c, d);
- return g > -1 ? e[f ? b[g] : g] : ca;
- };
- }
- function We(a) {
- return of(function(b) {
- var c = b.length,
- d = c,
- f = e.prototype.thru;
- for (a && b.reverse(); d--; ) {
- var g = b[d];
- if ('function' != typeof g) throw new jk(ga);
- if (f && !h && 'wrapper' == rf(g)) var h = new e([], !0);
- }
- for (d = h ? d : c; ++d < c; ) {
- g = b[d];
- var i = rf(g),
- j = 'wrapper' == i ? wl(g) : ca;
- h =
- j &&
- Kf(j[0]) &&
- j[1] == (wa | sa | ua | xa) &&
- !j[4].length &&
- 1 == j[9]
- ? h[rf(j[0])].apply(h, j[3])
- : 1 == g.length && Kf(g)
- ? h[i]()
- : h.thru(g);
- }
- return function() {
- var a = arguments,
- d = a[0];
- if (h && 1 == a.length && pm(d)) return h.plant(d).value();
- for (var e = 0, f = c ? b[e].apply(this, a) : d; ++e < c; )
- f = b[e].call(this, f);
- return f;
- };
- });
- }
- function Xe(a, b, c, d, e, f, g, h, i, j) {
- function k() {
- for (var r = arguments.length, s = bk(r), t = r; t--; ) s[t] = arguments[t];
- if (o)
- var u = sf(k),
- v = M(s, u);
- if (
- (d && (s = Ge(s, d, e, o)), f && (s = He(s, f, g, o)), (r -= v), o && r < j)
- ) {
- var w = U(s, u);
- return df(a, b, Xe, k.placeholder, c, s, w, h, i, j - r);
- }
- var x = m ? c : this,
- y = n ? x[a] : a;
- return (
- (r = s.length),
- h ? (s = Vf(s, h)) : p && r > 1 && s.reverse(),
- l && i < r && (s.length = i),
- this && this !== dd && this instanceof k && (y = q || Te(y)),
- y.apply(x, s)
- );
- }
- var l = b & wa,
- m = b & pa,
- n = b & qa,
- o = b & (sa | ta),
- p = b & ya,
- q = n ? ca : Te(a);
- return k;
- }
- function Ye(a, b) {
- return function(c, d) {
- return xd(c, a, b(d), {});
- };
- }
- function Ze(a, b) {
- return function(c, d) {
- var e;
- if (c === ca && d === ca) return b;
- if ((c !== ca && (e = c), d !== ca)) {
- if (e === ca) return d;
- 'string' == typeof c || 'string' == typeof d
- ? ((c = me(c)), (d = me(d)))
- : ((c = le(c)), (d = le(d))),
- (e = a(c, d));
- }
- return e;
- };
- }
- function $e(a) {
- return of(function(b) {
- return (
- (b = n(b, H(tf()))),
- be(function(c) {
- var d = this;
- return a(b, function(a) {
- return f(a, d, c);
- });
- })
- );
- });
- }
- function _e(a, b) {
- b = b === ca ? ' ' : me(b);
- var c = b.length;
- if (c < 2) return c ? ae(b, a) : b;
- var d = ae(b, Lk(a / Z(b)));
- return P(b) ? xe($(d), 0, a).join('') : d.slice(0, a);
- }
- function af(a, b, c, d) {
- function e() {
- for (
- var b = -1,
- i = arguments.length,
- j = -1,
- k = d.length,
- l = bk(k + i),
- m = this && this !== dd && this instanceof e ? h : a;
- ++j < k;
- )
- l[j] = d[j];
- for (; i--; ) l[j++] = arguments[++b];
- return f(m, g ? c : this, l);
- }
- var g = b & pa,
- h = Te(a);
- return e;
- }
- function bf(a) {
- return function(b, c, d) {
- return (
- d && 'number' != typeof d && Hf(b, c, d) && (c = d = ca),
- (b = ui(b)),
- c === ca ? ((c = b), (b = 0)) : (c = ui(c)),
- (d = d === ca ? (b < c ? 1 : -1) : ui(d)),
- _d(b, c, d, a)
- );
- };
- }
- function cf(a) {
- return function(b, c) {
- return (
- ('string' == typeof b && 'string' == typeof c) ||
- ((b = xi(b)), (c = xi(c))),
- a(b, c)
- );
- };
- }
- function df(a, b, c, d, e, f, g, h, i, j) {
- var k = b & sa,
- l = k ? g : ca,
- m = k ? ca : g,
- n = k ? f : ca,
- o = k ? ca : f;
- (b |= k ? ua : va), (b &= ~(k ? va : ua)), b & ra || (b &= ~(pa | qa));
- var p = [a, b, e, n, l, o, m, h, i, j],
- q = c.apply(ca, p);
- return Kf(a) && Bl(q, p), (q.placeholder = d), Xf(q, a, b);
- }
- function ef(a) {
- var b = fk[a];
- return function(a, c) {
- if (((a = xi(a)), (c = null == c ? 0 : Tk(vi(c), 292)), c && Pk(a))) {
- var d = (Ai(a) + 'e').split('e'),
- e = b(d[0] + 'e' + (+d[1] + c));
- return (d = (Ai(e) + 'e').split('e')), +(d[0] + 'e' + (+d[1] - c));
- }
- return b(a);
- };
- }
- function ff(a) {
- return function(b) {
- var c = zl(b);
- return c == Xa ? S(b) : c == cb ? W(b) : G(b, a(b));
- };
- }
- function gf(a, b, c, d, e, f, g, h) {
- var i = b & qa;
- if (!i && 'function' != typeof a) throw new jk(ga);
- var j = d ? d.length : 0;
- if (
- (j || ((b &= ~(ua | va)), (d = e = ca)),
- (g = g === ca ? g : Sk(vi(g), 0)),
- (h = h === ca ? h : vi(h)),
- (j -= e ? e.length : 0),
- b & va)
- ) {
- var k = d,
- l = e;
- d = e = ca;
- }
- var m = i ? ca : wl(a),
- n = [a, b, c, d, e, k, l, f, g, h];
- if (
- (m && Qf(n, m),
- (a = n[0]),
- (b = n[1]),
- (c = n[2]),
- (d = n[3]),
- (e = n[4]),
- (h = n[9] = n[9] === ca ? (i ? 0 : a.length) : Sk(n[9] - j, 0)),
- !h && b & (sa | ta) && (b &= ~(sa | ta)),
- b && b != pa)
- )
- o =
- b == sa || b == ta
- ? Ue(a, b, h)
- : (b != ua && b != (pa | ua)) || e.length
- ? Xe.apply(ca, n)
- : af(a, b, c, d);
- else var o = Qe(a, b, c);
- var p = m ? rl : Bl;
- return Xf(p(o, n), a, b);
- }
- function hf(a, b, c, d) {
- return a === ca || (Sh(a, mk[c]) && !pk.call(d, c)) ? b : a;
- }
- function jf(a, b, c, d, e, f) {
- return di(a) && di(b) && (f.set(b, a), Rd(a, b, ca, jf, f), f.delete(b)), a;
- }
- function kf(a) {
- return mi(a) ? ca : a;
- }
- function lf(a, b, c, d, e, f) {
- var g = c & na,
- h = a.length,
- i = b.length;
- if (h != i && !(g && i > h)) return !1;
- var j = f.get(a);
- if (j && f.get(b)) return j == b;
- var k = -1,
- l = !0,
- m = c & oa ? new oc() : ca;
- for (f.set(a, b), f.set(b, a); ++k < h; ) {
- var n = a[k],
- o = b[k];
- if (d) var p = g ? d(o, n, k, b, a, f) : d(n, o, k, a, b, f);
- if (p !== ca) {
- if (p) continue;
- l = !1;
- break;
- }
- if (m) {
- if (
- !r(b, function(a, b) {
- if (!J(m, b) && (n === a || e(n, a, c, d, f))) return m.push(b);
- })
- ) {
- l = !1;
- break;
- }
- } else if (n !== o && !e(n, o, c, d, f)) {
- l = !1;
- break;
- }
- }
- return f.delete(a), f.delete(b), l;
- }
- function mf(a, b, c, d, e, f, g) {
- switch (c) {
- case jb:
- if (a.byteLength != b.byteLength || a.byteOffset != b.byteOffset) return !1;
- (a = a.buffer), (b = b.buffer);
- case ib:
- return !(a.byteLength != b.byteLength || !f(new yk(a), new yk(b)));
- case Ra:
- case Sa:
- case Ya:
- return Sh(+a, +b);
- case Ua:
- return a.name == b.name && a.message == b.message;
- case bb:
- case db:
- return a == b + '';
- case Xa:
- var h = S;
- case cb:
- var i = d & na;
- if ((h || (h = V), a.size != b.size && !i)) return !1;
- var j = g.get(a);
- if (j) return j == b;
- (d |= oa), g.set(a, b);
- var k = lf(h(a), h(b), d, e, f, g);
- return g.delete(a), k;
- case eb:
- if (kl) return kl.call(a) == kl.call(b);
- }
- return !1;
- }
- function nf(a, b, c, d, e, f) {
- var g = c & na,
- h = pf(a),
- i = h.length,
- j = pf(b),
- k = j.length;
- if (i != k && !g) return !1;
- for (var l = i; l--; ) {
- var m = h[l];
- if (!(g ? m in b : pk.call(b, m))) return !1;
- }
- var n = f.get(a);
- if (n && f.get(b)) return n == b;
- var o = !0;
- f.set(a, b), f.set(b, a);
- for (var p = g; ++l < i; ) {
- m = h[l];
- var q = a[m],
- r = b[m];
- if (d) var s = g ? d(r, q, m, b, a, f) : d(q, r, m, a, b, f);
- if (!(s === ca ? q === r || e(q, r, c, d, f) : s)) {
- o = !1;
- break;
- }
- p || (p = 'constructor' == m);
- }
- if (o && !p) {
- var t = a.constructor,
- u = b.constructor;
- t != u &&
- 'constructor' in a &&
- 'constructor' in b &&
- !(
- 'function' == typeof t &&
- t instanceof t &&
- 'function' == typeof u &&
- u instanceof u
- ) &&
- (o = !1);
- }
- return f.delete(a), f.delete(b), o;
- }
- function of(a) {
- return Dl(Tf(a, ca, mg), a + '');
- }
- function pf(a) {
- return fd(a, Ni, xl);
- }
- function qf(a) {
- return fd(a, Oi, yl);
- }
- function rf(a) {
- for (var b = a.name + '', c = dl[b], d = pk.call(dl, b) ? c.length : 0; d--; ) {
- var e = c[d],
- f = e.func;
- if (null == f || f == a) return e.name;
- }
- return b;
- }
- function sf(a) {
- var b = pk.call(c, 'placeholder') ? c : a;
- return b.placeholder;
- }
- function tf() {
- var a = c.iteratee || Ej;
- return (
- (a = a === Ej ? Kd : a), arguments.length ? a(arguments[0], arguments[1]) : a
- );
- }
- function uf(a, b) {
- var c = a.__data__;
- return Jf(b) ? c['string' == typeof b ? 'string' : 'hash'] : c.map;
- }
- function vf(a) {
- for (var b = Ni(a), c = b.length; c--; ) {
- var d = b[c],
- e = a[d];
- b[c] = [d, e, Nf(e)];
- }
- return b;
- }
- function wf(a, b) {
- var c = O(a, b);
- return Gd(c) ? c : ca;
- }
- function xf(a) {
- var b = pk.call(a, Gk),
- c = a[Gk];
- try {
- a[Gk] = ca;
- var d = !0;
- } catch (a) {}
- var e = sk.call(a);
- return d && (b ? (a[Gk] = c) : delete a[Gk]), e;
- }
- function yf(a, b, c) {
- for (var d = -1, e = c.length; ++d < e; ) {
- var f = c[d],
- g = f.size;
- switch (f.type) {
- case 'drop':
- a += g;
- break;
- case 'dropRight':
- b -= g;
- break;
- case 'take':
- b = Tk(b, a + g);
- break;
- case 'takeRight':
- a = Sk(a, b - g);
- }
- }
- return { start: a, end: b };
- }
- function zf(a) {
- var b = a.match(Mb);
- return b ? b[1].split(Nb) : [];
- }
- function Af(a, b, c) {
- b = we(b, a);
- for (var d = -1, e = b.length, f = !1; ++d < e; ) {
- var g = $f(b[d]);
- if (!(f = null != a && c(a, g))) break;
- a = a[g];
- }
- return f || ++d != e
- ? f
- : ((e = null == a ? 0 : a.length),
- !!e && ci(e) && Gf(g, e) && (pm(a) || om(a)));
- }
- function Bf(a) {
- var b = a.length,
- c = new a.constructor(b);
- return (
- b &&
- 'string' == typeof a[0] &&
- pk.call(a, 'index') &&
- ((c.index = a.index), (c.input = a.input)),
- c
- );
- }
- function Cf(a) {
- return 'function' != typeof a.constructor || Mf(a) ? {} : ml(Ak(a));
- }
- function Df(a, b, c) {
- var d = a.constructor;
- switch (b) {
- case ib:
- return ze(a);
- case Ra:
- case Sa:
- return new d(+a);
- case jb:
- return Ae(a, c);
- case kb:
- case lb:
- case mb:
- case nb:
- case ob:
- case pb:
- case qb:
- case rb:
- case sb:
- return De(a, c);
- case Xa:
- return new d();
- case Ya:
- case db:
- return new d(a);
- case bb:
- return Be(a);
- case cb:
- return new d();
- case eb:
- return Ce(a);
- }
- }
- function Ef(a, b) {
- var c = b.length;
- if (!c) return a;
- var d = c - 1;
- return (
- (b[d] = (c > 1 ? '& ' : '') + b[d]),
- (b = b.join(c > 2 ? ', ' : ' ')),
- a.replace(Lb, '{\n/* [wrapped with ' + b + '] */\n')
- );
- }
- function Ff(a) {
- return pm(a) || om(a) || !!(Ek && a && a[Ek]);
- }
- function Gf(a, b) {
- var c = typeof a;
- return (
- (b = null == b ? Ha : b),
- !!b &&
- ('number' == c || ('symbol' != c && Wb.test(a))) &&
- a > -1 &&
- a % 1 == 0 &&
- a < b
- );
- }
- function Hf(a, b, c) {
- if (!di(c)) return !1;
- var d = typeof b;
- return (
- !!('number' == d ? Th(c) && Gf(b, c.length) : 'string' == d && b in c) &&
- Sh(c[b], a)
- );
- }
- function If(a, b) {
- if (pm(a)) return !1;
- var c = typeof a;
- return (
- !('number' != c && 'symbol' != c && 'boolean' != c && null != a && !pi(a)) ||
- Eb.test(a) || !Db.test(a) || (null != b && a in gk(b))
- );
- }
- function Jf(a) {
- var b = typeof a;
- return 'string' == b || 'number' == b || 'symbol' == b || 'boolean' == b
- ? '__proto__' !== a
- : null === a;
- }
- function Kf(a) {
- var b = rf(a),
- d = c[b];
- if ('function' != typeof d || !(b in s.prototype)) return !1;
- if (a === d) return !0;
- var e = wl(d);
- return !!e && a === e[0];
- }
- function Lf(a) {
- return !!rk && rk in a;
- }
- function Mf(a) {
- var b = a && a.constructor,
- c = ('function' == typeof b && b.prototype) || mk;
- return a === c;
- }
- function Nf(a) {
- return a === a && !di(a);
- }
- function Of(a, b) {
- return function(c) {
- return null != c && c[a] === b && (b !== ca || a in gk(c));
- };
- }
- function Pf(a) {
- var b = Eh(a, function(a) {
- return c.size === ia && c.clear(), a;
- }),
- c = b.cache;
- return b;
- }
- function Qf(a, b) {
- var c = a[1],
- d = b[1],
- e = c | d,
- f = e < (pa | qa | wa),
- g =
- (d == wa && c == sa) ||
- (d == wa && c == xa && a[7].length <= b[8]) ||
- (d == (wa | xa) && b[7].length <= b[8] && c == sa);
- if (!f && !g) return a;
- d & pa && ((a[2] = b[2]), (e |= c & pa ? 0 : ra));
- var h = b[3];
- if (h) {
- var i = a[3];
- (a[3] = i ? Ge(i, h, b[4]) : h), (a[4] = i ? U(a[3], ja) : b[4]);
- }
- return (
- (h = b[5]),
- h &&
- ((i = a[5]),
- (a[5] = i ? He(i, h, b[6]) : h),
- (a[6] = i ? U(a[5], ja) : b[6])),
- (h = b[7]),
- h && (a[7] = h),
- d & wa && (a[8] = null == a[8] ? b[8] : Tk(a[8], b[8])),
- null == a[9] && (a[9] = b[9]),
- (a[0] = b[0]),
- (a[1] = e),
- a
- );
- }
- function Rf(a) {
- var b = [];
- if (null != a) for (var c in gk(a)) b.push(c);
- return b;
- }
- function Sf(a) {
- return sk.call(a);
- }
- function Tf(a, b, c) {
- return (
- (b = Sk(b === ca ? a.length - 1 : b, 0)),
- function() {
- for (
- var d = arguments, e = -1, g = Sk(d.length - b, 0), h = bk(g);
- ++e < g;
- )
- h[e] = d[b + e];
- e = -1;
- for (var i = bk(b + 1); ++e < b; ) i[e] = d[e];
- return (i[b] = c(h)), f(a, this, i);
- }
- );
- }
- function Uf(a, b) {
- return b.length < 2 ? a : ed(a, ge(b, 0, -1));
- }
- function Vf(a, b) {
- for (var c = a.length, d = Tk(b.length, c), e = Ie(a); d--; ) {
- var f = b[d];
- a[d] = Gf(f, c) ? e[f] : ca;
- }
- return a;
- }
- function Wf(a, b) {
- if (('constructor' !== b || 'function' != typeof a[b]) && '__proto__' != b)
- return a[b];
- }
- function Xf(a, b, c) {
- var d = b + '';
- return Dl(a, Ef(d, ag(zf(d), c)));
- }
- function Yf(a) {
- var b = 0,
- c = 0;
- return function() {
- var d = Uk(),
- e = Ca - (d - c);
- if (((c = d), e > 0)) {
- if (++b >= Ba) return arguments[0];
- } else b = 0;
- return a.apply(ca, arguments);
- };
- }
- function Zf(a, b) {
- var c = -1,
- d = a.length,
- e = d - 1;
- for (b = b === ca ? d : b; ++c < b; ) {
- var f = $d(c, e),
- g = a[f];
- (a[f] = a[c]), (a[c] = g);
- }
- return (a.length = b), a;
- }
- function $f(a) {
- if ('string' == typeof a || pi(a)) return a;
- var b = a + '';
- return '0' == b && 1 / a == -Ga ? '-0' : b;
- }
- function _f(a) {
- if (null != a) {
- try {
- return ok.call(a);
- } catch (a) {}
- try {
- return a + '';
- } catch (a) {}
- }
- return '';
- }
- function ag(a, b) {
- return (
- h(Na, function(c) {
- var d = '_.' + c[0];
- b & c[1] && !l(a, d) && a.push(d);
- }),
- a.sort()
- );
- }
- function bg(a) {
- if (a instanceof s) return a.clone();
- var b = new e(a.__wrapped__, a.__chain__);
- return (
- (b.__actions__ = Ie(a.__actions__)),
- (b.__index__ = a.__index__),
- (b.__values__ = a.__values__),
- b
- );
- }
- function cg(a, b, c) {
- b = (c ? Hf(a, b, c) : b === ca) ? 1 : Sk(vi(b), 0);
- var d = null == a ? 0 : a.length;
- if (!d || b < 1) return [];
- for (var e = 0, f = 0, g = bk(Lk(d / b)); e < d; ) g[f++] = ge(a, e, (e += b));
- return g;
- }
- function dg(a) {
- for (var b = -1, c = null == a ? 0 : a.length, d = 0, e = []; ++b < c; ) {
- var f = a[b];
- f && (e[d++] = f);
- }
- return e;
- }
- function eg() {
- var a = arguments.length;
- if (!a) return [];
- for (var b = bk(a - 1), c = arguments[0], d = a; d--; ) b[d - 1] = arguments[d];
- return o(pm(c) ? Ie(c) : [c], Zc(b, 1));
- }
- function fg(a, b, c) {
- var d = null == a ? 0 : a.length;
- return d ? ((b = c || b === ca ? 1 : vi(b)), ge(a, b < 0 ? 0 : b, d)) : [];
- }
- function gg(a, b, c) {
- var d = null == a ? 0 : a.length;
- return d
- ? ((b = c || b === ca ? 1 : vi(b)), (b = d - b), ge(a, 0, b < 0 ? 0 : b))
- : [];
- }
- function hg(a, b) {
- return a && a.length ? qe(a, tf(b, 3), !0, !0) : [];
- }
- function ig(a, b) {
- return a && a.length ? qe(a, tf(b, 3), !0) : [];
- }
- function jg(a, b, c, d) {
- var e = null == a ? 0 : a.length;
- return e
- ? (c && 'number' != typeof c && Hf(a, b, c) && ((c = 0), (d = e)),
- Xc(a, b, c, d))
- : [];
- }
- function kg(a, b, c) {
- var d = null == a ? 0 : a.length;
- if (!d) return -1;
- var e = null == c ? 0 : vi(c);
- return e < 0 && (e = Sk(d + e, 0)), v(a, tf(b, 3), e);
- }
- function lg(a, b, c) {
- var d = null == a ? 0 : a.length;
- if (!d) return -1;
- var e = d - 1;
- return (
- c !== ca && ((e = vi(c)), (e = c < 0 ? Sk(d + e, 0) : Tk(e, d - 1))),
- v(a, tf(b, 3), e, !0)
- );
- }
- function mg(a) {
- var b = null == a ? 0 : a.length;
- return b ? Zc(a, 1) : [];
- }
- function ng(a) {
- var b = null == a ? 0 : a.length;
- return b ? Zc(a, Ga) : [];
- }
- function og(a, b) {
- var c = null == a ? 0 : a.length;
- return c ? ((b = b === ca ? 1 : vi(b)), Zc(a, b)) : [];
- }
- function pg(a) {
- for (var b = -1, c = null == a ? 0 : a.length, d = {}; ++b < c; ) {
- var e = a[b];
- d[e[0]] = e[1];
- }
- return d;
- }
- function qg(a) {
- return a && a.length ? a[0] : ca;
- }
- function rg(a, b, c) {
- var d = null == a ? 0 : a.length;
- if (!d) return -1;
- var e = null == c ? 0 : vi(c);
- return e < 0 && (e = Sk(d + e, 0)), w(a, b, e);
- }
- function sg(a) {
- var b = null == a ? 0 : a.length;
- return b ? ge(a, 0, -1) : [];
- }
- function tg(a, b) {
- return null == a ? '' : Qk.call(a, b);
- }
- function ug(a) {
- var b = null == a ? 0 : a.length;
- return b ? a[b - 1] : ca;
- }
- function vg(a, b, c) {
- var d = null == a ? 0 : a.length;
- if (!d) return -1;
- var e = d;
- return (
- c !== ca && ((e = vi(c)), (e = e < 0 ? Sk(d + e, 0) : Tk(e, d - 1))),
- b === b ? Y(a, b, e) : v(a, y, e, !0)
- );
- }
- function wg(a, b) {
- return a && a.length ? Td(a, vi(b)) : ca;
- }
- function xg(a, b) {
- return a && a.length && b && b.length ? Yd(a, b) : a;
- }
- function yg(a, b, c) {
- return a && a.length && b && b.length ? Yd(a, b, tf(c, 2)) : a;
- }
- function zg(a, b, c) {
- return a && a.length && b && b.length ? Yd(a, b, ca, c) : a;
- }
- function Ag(a, b) {
- var c = [];
- if (!a || !a.length) return c;
- var d = -1,
- e = [],
- f = a.length;
- for (b = tf(b, 3); ++d < f; ) {
- var g = a[d];
- b(g, d, a) && (c.push(g), e.push(d));
- }
- return Zd(a, e), c;
- }
- function Bg(a) {
- return null == a ? a : Xk.call(a);
- }
- function Cg(a, b, c) {
- var d = null == a ? 0 : a.length;
- return d
- ? (c && 'number' != typeof c && Hf(a, b, c)
- ? ((b = 0), (c = d))
- : ((b = null == b ? 0 : vi(b)), (c = c === ca ? d : vi(c))),
- ge(a, b, c))
- : [];
- }
- function Dg(a, b) {
- return ie(a, b);
- }
- function Eg(a, b, c) {
- return je(a, b, tf(c, 2));
- }
- function Fg(a, b) {
- var c = null == a ? 0 : a.length;
- if (c) {
- var d = ie(a, b);
- if (d < c && Sh(a[d], b)) return d;
- }
- return -1;
- }
- function Gg(a, b) {
- return ie(a, b, !0);
- }
- function Hg(a, b, c) {
- return je(a, b, tf(c, 2), !0);
- }
- function Ig(a, b) {
- var c = null == a ? 0 : a.length;
- if (c) {
- var d = ie(a, b, !0) - 1;
- if (Sh(a[d], b)) return d;
- }
- return -1;
- }
- function Jg(a) {
- return a && a.length ? ke(a) : [];
- }
- function Kg(a, b) {
- return a && a.length ? ke(a, tf(b, 2)) : [];
- }
- function Lg(a) {
- var b = null == a ? 0 : a.length;
- return b ? ge(a, 1, b) : [];
- }
- function Mg(a, b, c) {
- return a && a.length
- ? ((b = c || b === ca ? 1 : vi(b)), ge(a, 0, b < 0 ? 0 : b))
- : [];
- }
- function Ng(a, b, c) {
- var d = null == a ? 0 : a.length;
- return d
- ? ((b = c || b === ca ? 1 : vi(b)), (b = d - b), ge(a, b < 0 ? 0 : b, d))
- : [];
- }
- function Og(a, b) {
- return a && a.length ? qe(a, tf(b, 3), !1, !0) : [];
- }
- function Pg(a, b) {
- return a && a.length ? qe(a, tf(b, 3)) : [];
- }
- function Qg(a) {
- return a && a.length ? ne(a) : [];
- }
- function Rg(a, b) {
- return a && a.length ? ne(a, tf(b, 2)) : [];
- }
- function Sg(a, b) {
- return (b = 'function' == typeof b ? b : ca), a && a.length ? ne(a, ca, b) : [];
- }
- function Tg(a) {
- if (!a || !a.length) return [];
- var b = 0;
- return (
- (a = k(a, function(a) {
- if (Uh(a)) return (b = Sk(a.length, b)), !0;
- })),
- F(b, function(b) {
- return n(a, A(b));
- })
- );
- }
- function Ug(a, b) {
- if (!a || !a.length) return [];
- var c = Tg(a);
- return null == b
- ? c
- : n(c, function(a) {
- return f(b, ca, a);
- });
- }
- function Vg(a, b) {
- return te(a || [], b || [], Cc);
- }
- function Wg(a, b) {
- return te(a || [], b || [], ee);
- }
- function Xg(a) {
- var b = c(a);
- return (b.__chain__ = !0), b;
- }
- function Yg(a, b) {
- return b(a), a;
- }
- function Zg(a, b) {
- return b(a);
- }
- function $g() {
- return Xg(this);
- }
- function _g() {
- return new e(this.value(), this.__chain__);
- }
- function ah() {
- this.__values__ === ca && (this.__values__ = ti(this.value()));
- var a = this.__index__ >= this.__values__.length,
- b = a ? ca : this.__values__[this.__index__++];
- return { done: a, value: b };
- }
- function bh() {
- return this;
- }
- function ch(a) {
- for (var b, c = this; c instanceof d; ) {
- var e = bg(c);
- (e.__index__ = 0), (e.__values__ = ca), b ? (f.__wrapped__ = e) : (b = e);
- var f = e;
- c = c.__wrapped__;
- }
- return (f.__wrapped__ = a), b;
- }
- function dh() {
- var a = this.__wrapped__;
- if (a instanceof s) {
- var b = a;
- return (
- this.__actions__.length && (b = new s(this)),
- (b = b.reverse()),
- b.__actions__.push({ func: Zg, args: [Bg], thisArg: ca }),
- new e(b, this.__chain__)
- );
- }
- return this.thru(Bg);
- }
- function eh() {
- return re(this.__wrapped__, this.__actions__);
- }
- function fh(a, b, c) {
- var d = pm(a) ? j : Rc;
- return c && Hf(a, b, c) && (b = ca), d(a, tf(b, 3));
- }
- function gh(a, b) {
- var c = pm(a) ? k : Yc;
- return c(a, tf(b, 3));
- }
- function hh(a, b) {
- return Zc(nh(a, b), 1);
- }
- function ih(a, b) {
- return Zc(nh(a, b), Ga);
- }
- function jh(a, b, c) {
- return (c = c === ca ? 1 : vi(c)), Zc(nh(a, b), c);
- }
- function kh(a, b) {
- var c = pm(a) ? h : nl;
- return c(a, tf(b, 3));
- }
- function lh(a, b) {
- var c = pm(a) ? i : ol;
- return c(a, tf(b, 3));
- }
- function mh(a, b, c, d) {
- (a = Th(a) ? a : $i(a)), (c = c && !d ? vi(c) : 0);
- var e = a.length;
- return (
- c < 0 && (c = Sk(e + c, 0)),
- oi(a) ? c <= e && a.indexOf(b, c) > -1 : !!e && w(a, b, c) > -1
- );
- }
- function nh(a, b) {
- var c = pm(a) ? n : Od;
- return c(a, tf(b, 3));
- }
- function oh(a, b, c, d) {
- return null == a
- ? []
- : (pm(b) || (b = null == b ? [] : [b]),
- (c = d ? ca : c),
- pm(c) || (c = null == c ? [] : [c]),
- Ud(a, b, c));
- }
- function ph(a, b, c) {
- var d = pm(a) ? p : C,
- e = arguments.length < 3;
- return d(a, tf(b, 4), c, e, nl);
- }
- function qh(a, b, c) {
- var d = pm(a) ? q : C,
- e = arguments.length < 3;
- return d(a, tf(b, 4), c, e, ol);
- }
- function rh(a, b) {
- var c = pm(a) ? k : Yc;
- return c(a, Fh(tf(b, 3)));
- }
- function sh(a) {
- var b = pm(a) ? yc : ce;
- return b(a);
- }
- function th(a, b, c) {
- b = (c ? Hf(a, b, c) : b === ca) ? 1 : vi(b);
- var d = pm(a) ? zc : de;
- return d(a, b);
- }
- function uh(a) {
- var b = pm(a) ? Ac : fe;
- return b(a);
- }
- function vh(a) {
- if (null == a) return 0;
- if (Th(a)) return oi(a) ? Z(a) : a.length;
- var b = zl(a);
- return b == Xa || b == cb ? a.size : Ld(a).length;
- }
- function wh(a, b, c) {
- var d = pm(a) ? r : he;
- return c && Hf(a, b, c) && (b = ca), d(a, tf(b, 3));
- }
- function xh(a, b) {
- if ('function' != typeof b) throw new jk(ga);
- return (
- (a = vi(a)),
- function() {
- if (--a < 1) return b.apply(this, arguments);
- }
- );
- }
- function yh(a, b, c) {
- return (
- (b = c ? ca : b),
- (b = a && null == b ? a.length : b),
- gf(a, wa, ca, ca, ca, ca, b)
- );
- }
- function zh(a, b) {
- var c;
- if ('function' != typeof b) throw new jk(ga);
- return (
- (a = vi(a)),
- function() {
- return --a > 0 && (c = b.apply(this, arguments)), a <= 1 && (b = ca), c;
- }
- );
- }
- function Ah(a, b, c) {
- b = c ? ca : b;
- var d = gf(a, sa, ca, ca, ca, ca, ca, b);
- return (d.placeholder = Ah.placeholder), d;
- }
- function Bh(a, b, c) {
- b = c ? ca : b;
- var d = gf(a, ta, ca, ca, ca, ca, ca, b);
- return (d.placeholder = Bh.placeholder), d;
- }
- function Ch(a, b, c) {
- function d(b) {
- var c = m,
- d = n;
- return (m = n = ca), (s = b), (p = a.apply(d, c));
- }
- function e(a) {
- return (s = a), (q = Cl(h, b)), t ? d(a) : p;
- }
- function f(a) {
- var c = a - r,
- d = a - s,
- e = b - c;
- return u ? Tk(e, o - d) : e;
- }
- function g(a) {
- var c = a - r,
- d = a - s;
- return r === ca || c >= b || c < 0 || (u && d >= o);
- }
- function h() {
- var a = dm();
- return g(a) ? i(a) : void (q = Cl(h, f(a)));
- }
- function i(a) {
- return (q = ca), v && m ? d(a) : ((m = n = ca), p);
- }
- function j() {
- q !== ca && ul(q), (s = 0), (m = r = n = q = ca);
- }
- function k() {
- return q === ca ? p : i(dm());
- }
- function l() {
- var a = dm(),
- c = g(a);
- if (((m = arguments), (n = this), (r = a), c)) {
- if (q === ca) return e(r);
- if (u) return ul(q), (q = Cl(h, b)), d(r);
- }
- return q === ca && (q = Cl(h, b)), p;
- }
- var m,
- n,
- o,
- p,
- q,
- r,
- s = 0,
- t = !1,
- u = !1,
- v = !0;
- if ('function' != typeof a) throw new jk(ga);
- return (
- (b = xi(b) || 0),
- di(c) &&
- ((t = !!c.leading),
- (u = 'maxWait' in c),
- (o = u ? Sk(xi(c.maxWait) || 0, b) : o),
- (v = 'trailing' in c ? !!c.trailing : v)),
- (l.cancel = j),
- (l.flush = k),
- l
- );
- }
- function Dh(a) {
- return gf(a, ya);
- }
- function Eh(a, b) {
- if ('function' != typeof a || (null != b && 'function' != typeof b))
- throw new jk(ga);
- var c = function() {
- var d = arguments,
- e = b ? b.apply(this, d) : d[0],
- f = c.cache;
- if (f.has(e)) return f.get(e);
- var g = a.apply(this, d);
- return (c.cache = f.set(e, g) || f), g;
- };
- return (c.cache = new (Eh.Cache || ic)()), c;
- }
- function Fh(a) {
- if ('function' != typeof a) throw new jk(ga);
- return function() {
- var b = arguments;
- switch (b.length) {
- case 0:
- return !a.call(this);
- case 1:
- return !a.call(this, b[0]);
- case 2:
- return !a.call(this, b[0], b[1]);
- case 3:
- return !a.call(this, b[0], b[1], b[2]);
- }
- return !a.apply(this, b);
- };
- }
- function Gh(a) {
- return zh(2, a);
- }
- function Hh(a, b) {
- if ('function' != typeof a) throw new jk(ga);
- return (b = b === ca ? b : vi(b)), be(a, b);
- }
- function Ih(a, b) {
- if ('function' != typeof a) throw new jk(ga);
- return (
- (b = null == b ? 0 : Sk(vi(b), 0)),
- be(function(c) {
- var d = c[b],
- e = xe(c, 0, b);
- return d && o(e, d), f(a, this, e);
- })
- );
- }
- function Jh(a, b, c) {
- var d = !0,
- e = !0;
- if ('function' != typeof a) throw new jk(ga);
- return (
- di(c) &&
- ((d = 'leading' in c ? !!c.leading : d),
- (e = 'trailing' in c ? !!c.trailing : e)),
- Ch(a, b, { leading: d, maxWait: b, trailing: e })
- );
- }
- function Kh(a) {
- return yh(a, 1);
- }
- function Lh(a, b) {
- return jm(ve(b), a);
- }
- function Mh() {
- if (!arguments.length) return [];
- var a = arguments[0];
- return pm(a) ? a : [a];
- }
- function Nh(a) {
- return Kc(a, ma);
- }
- function Oh(a, b) {
- return (b = 'function' == typeof b ? b : ca), Kc(a, ma, b);
- }
- function Ph(a) {
- return Kc(a, ka | ma);
- }
- function Qh(a, b) {
- return (b = 'function' == typeof b ? b : ca), Kc(a, ka | ma, b);
- }
- function Rh(a, b) {
- return null == b || Mc(a, b, Ni(b));
- }
- function Sh(a, b) {
- return a === b || (a !== a && b !== b);
- }
- function Th(a) {
- return null != a && ci(a.length) && !ai(a);
- }
- function Uh(a) {
- return ei(a) && Th(a);
- }
- function Vh(a) {
- return a === !0 || a === !1 || (ei(a) && hd(a) == Ra);
- }
- function Wh(a) {
- return ei(a) && 1 === a.nodeType && !mi(a);
- }
- function Xh(a) {
- if (null == a) return !0;
- if (
- Th(a) &&
- (pm(a) ||
- 'string' == typeof a ||
- 'function' == typeof a.splice ||
- rm(a) ||
- wm(a) ||
- om(a))
- )
- return !a.length;
- var b = zl(a);
- if (b == Xa || b == cb) return !a.size;
- if (Mf(a)) return !Ld(a).length;
- for (var c in a) if (pk.call(a, c)) return !1;
- return !0;
- }
- function Yh(a, b) {
- return Cd(a, b);
- }
- function Zh(a, b, c) {
- c = 'function' == typeof c ? c : ca;
- var d = c ? c(a, b) : ca;
- return d === ca ? Cd(a, b, ca, c) : !!d;
- }
- function $h(a) {
- if (!ei(a)) return !1;
- var b = hd(a);
- return (
- b == Ua ||
- b == Ta ||
- ('string' == typeof a.message && 'string' == typeof a.name && !mi(a))
- );
- }
- function _h(a) {
- return 'number' == typeof a && Pk(a);
- }
- function ai(a) {
- if (!di(a)) return !1;
- var b = hd(a);
- return b == Va || b == Wa || b == Qa || b == ab;
- }
- function bi(a) {
- return 'number' == typeof a && a == vi(a);
- }
- function ci(a) {
- return 'number' == typeof a && a > -1 && a % 1 == 0 && a <= Ha;
- }
- function di(a) {
- var b = typeof a;
- return null != a && ('object' == b || 'function' == b);
- }
- function ei(a) {
- return null != a && 'object' == typeof a;
- }
- function fi(a, b) {
- return a === b || Fd(a, b, vf(b));
- }
- function gi(a, b, c) {
- return (c = 'function' == typeof c ? c : ca), Fd(a, b, vf(b), c);
- }
- function hi(a) {
- return li(a) && a != +a;
- }
- function ii(a) {
- if (Al(a)) throw new dk(fa);
- return Gd(a);
- }
- function ji(a) {
- return null === a;
- }
- function ki(a) {
- return null == a;
- }
- function li(a) {
- return 'number' == typeof a || (ei(a) && hd(a) == Ya);
- }
- function mi(a) {
- if (!ei(a) || hd(a) != $a) return !1;
- var b = Ak(a);
- if (null === b) return !0;
- var c = pk.call(b, 'constructor') && b.constructor;
- return 'function' == typeof c && c instanceof c && ok.call(c) == tk;
- }
- function ni(a) {
- return bi(a) && a >= -Ha && a <= Ha;
- }
- function oi(a) {
- return 'string' == typeof a || (!pm(a) && ei(a) && hd(a) == db);
- }
- function pi(a) {
- return 'symbol' == typeof a || (ei(a) && hd(a) == eb);
- }
- function qi(a) {
- return a === ca;
- }
- function ri(a) {
- return ei(a) && zl(a) == gb;
- }
- function si(a) {
- return ei(a) && hd(a) == hb;
- }
- function ti(a) {
- if (!a) return [];
- if (Th(a)) return oi(a) ? $(a) : Ie(a);
- if (Fk && a[Fk]) return R(a[Fk]());
- var b = zl(a),
- c = b == Xa ? S : b == cb ? V : $i;
- return c(a);
- }
- function ui(a) {
- if (!a) return 0 === a ? a : 0;
- if (((a = xi(a)), a === Ga || a === -Ga)) {
- var b = a < 0 ? -1 : 1;
- return b * Ia;
- }
- return a === a ? a : 0;
- }
- function vi(a) {
- var b = ui(a),
- c = b % 1;
- return b === b ? (c ? b - c : b) : 0;
- }
- function wi(a) {
- return a ? Jc(vi(a), 0, Ka) : 0;
- }
- function xi(a) {
- if ('number' == typeof a) return a;
- if (pi(a)) return Ja;
- if (di(a)) {
- var b = 'function' == typeof a.valueOf ? a.valueOf() : a;
- a = di(b) ? b + '' : b;
- }
- if ('string' != typeof a) return 0 === a ? a : +a;
- a = a.replace(Ib, '');
- var c = Tb.test(a);
- return c || Vb.test(a) ? ad(a.slice(2), c ? 2 : 8) : Sb.test(a) ? Ja : +a;
- }
- function yi(a) {
- return Je(a, Oi(a));
- }
- function zi(a) {
- return a ? Jc(vi(a), -Ha, Ha) : 0 === a ? a : 0;
- }
- function Ai(a) {
- return null == a ? '' : me(a);
- }
- function Bi(a, b) {
- var c = ml(a);
- return null == b ? c : Fc(c, b);
- }
- function Ci(a, b) {
- return u(a, tf(b, 3), $c);
- }
- function Di(a, b) {
- return u(a, tf(b, 3), bd);
- }
- function Ei(a, b) {
- return null == a ? a : pl(a, tf(b, 3), Oi);
- }
- function Fi(a, b) {
- return null == a ? a : ql(a, tf(b, 3), Oi);
- }
- function Gi(a, b) {
- return a && $c(a, tf(b, 3));
- }
- function Hi(a, b) {
- return a && bd(a, tf(b, 3));
- }
- function Ii(a) {
- return null == a ? [] : cd(a, Ni(a));
- }
- function Ji(a) {
- return null == a ? [] : cd(a, Oi(a));
- }
- function Ki(a, b, c) {
- var d = null == a ? ca : ed(a, b);
- return d === ca ? c : d;
- }
- function Li(a, b) {
- return null != a && Af(a, b, pd);
- }
- function Mi(a, b) {
- return null != a && Af(a, b, td);
- }
- function Ni(a) {
- return Th(a) ? xc(a) : Ld(a);
- }
- function Oi(a) {
- return Th(a) ? xc(a, !0) : Md(a);
- }
- function Pi(a, b) {
- var c = {};
- return (
- (b = tf(b, 3)),
- $c(a, function(a, d, e) {
- Hc(c, b(a, d, e), a);
- }),
- c
- );
- }
- function Qi(a, b) {
- var c = {};
- return (
- (b = tf(b, 3)),
- $c(a, function(a, d, e) {
- Hc(c, d, b(a, d, e));
- }),
- c
- );
- }
- function Ri(a, b) {
- return Si(a, Fh(tf(b)));
- }
- function Si(a, b) {
- if (null == a) return {};
- var c = n(qf(a), function(a) {
- return [a];
- });
- return (
- (b = tf(b)),
- Wd(a, c, function(a, c) {
- return b(a, c[0]);
- })
- );
- }
- function Ti(a, b, c) {
- b = we(b, a);
- var d = -1,
- e = b.length;
- for (e || ((e = 1), (a = ca)); ++d < e; ) {
- var f = null == a ? ca : a[$f(b[d])];
- f === ca && ((d = e), (f = c)), (a = ai(f) ? f.call(a) : f);
- }
- return a;
- }
- function Ui(a, b, c) {
- return null == a ? a : ee(a, b, c);
- }
- function Vi(a, b, c, d) {
- return (d = 'function' == typeof d ? d : ca), null == a ? a : ee(a, b, c, d);
- }
- function Wi(a, b, c) {
- var d = pm(a),
- e = d || rm(a) || wm(a);
- if (((b = tf(b, 4)), null == c)) {
- var f = a && a.constructor;
- c = e ? (d ? new f() : []) : di(a) && ai(f) ? ml(Ak(a)) : {};
- }
- return (
- (e ? h : $c)(a, function(a, d, e) {
- return b(c, a, d, e);
- }),
- c
- );
- }
- function Xi(a, b) {
- return null == a || oe(a, b);
- }
- function Yi(a, b, c) {
- return null == a ? a : pe(a, b, ve(c));
- }
- function Zi(a, b, c, d) {
- return (d = 'function' == typeof d ? d : ca), null == a ? a : pe(a, b, ve(c), d);
- }
- function $i(a) {
- return null == a ? [] : I(a, Ni(a));
- }
- function _i(a) {
- return null == a ? [] : I(a, Oi(a));
- }
- function aj(a, b, c) {
- return (
- c === ca && ((c = b), (b = ca)),
- c !== ca && ((c = xi(c)), (c = c === c ? c : 0)),
- b !== ca && ((b = xi(b)), (b = b === b ? b : 0)),
- Jc(xi(a), b, c)
- );
- }
- function bj(a, b, c) {
- return (
- (b = ui(b)),
- c === ca ? ((c = b), (b = 0)) : (c = ui(c)),
- (a = xi(a)),
- vd(a, b, c)
- );
- }
- function cj(a, b, c) {
- if (
- (c && 'boolean' != typeof c && Hf(a, b, c) && (b = c = ca),
- c === ca &&
- ('boolean' == typeof b
- ? ((c = b), (b = ca))
- : 'boolean' == typeof a && ((c = a), (a = ca))),
- a === ca && b === ca
- ? ((a = 0), (b = 1))
- : ((a = ui(a)), b === ca ? ((b = a), (a = 0)) : (b = ui(b))),
- a > b)
- ) {
- var d = a;
- (a = b), (b = d);
- }
- if (c || a % 1 || b % 1) {
- var e = Wk();
- return Tk(a + e * (b - a + _c('1e-' + ((e + '').length - 1))), b);
- }
- return $d(a, b);
- }
- function dj(a) {
- return Wm(Ai(a).toLowerCase());
- }
- function ej(a) {
- return (a = Ai(a)), a && a.replace(Xb, qd).replace(Oc, '');
- }
- function fj(a, b, c) {
- (a = Ai(a)), (b = me(b));
- var d = a.length;
- c = c === ca ? d : Jc(vi(c), 0, d);
- var e = c;
- return (c -= b.length), c >= 0 && a.slice(c, e) == b;
- }
- function gj(a) {
- return (a = Ai(a)), a && zb.test(a) ? a.replace(xb, rd) : a;
- }
- function hj(a) {
- return (a = Ai(a)), a && Hb.test(a) ? a.replace(Gb, '\\$&') : a;
- }
- function ij(a, b, c) {
- (a = Ai(a)), (b = vi(b));
- var d = b ? Z(a) : 0;
- if (!b || d >= b) return a;
- var e = (b - d) / 2;
- return _e(Mk(e), c) + a + _e(Lk(e), c);
- }
- function jj(a, b, c) {
- (a = Ai(a)), (b = vi(b));
- var d = b ? Z(a) : 0;
- return b && d < b ? a + _e(b - d, c) : a;
- }
- function kj(a, b, c) {
- (a = Ai(a)), (b = vi(b));
- var d = b ? Z(a) : 0;
- return b && d < b ? _e(b - d, c) + a : a;
- }
- function lj(a, b, c) {
- return c || null == b ? (b = 0) : b && (b = +b), Vk(Ai(a).replace(Jb, ''), b || 0);
- }
- function mj(a, b, c) {
- return (b = (c ? Hf(a, b, c) : b === ca) ? 1 : vi(b)), ae(Ai(a), b);
- }
- function nj() {
- var a = arguments,
- b = Ai(a[0]);
- return a.length < 3 ? b : b.replace(a[1], a[2]);
- }
- function oj(a, b, c) {
- return (
- c && 'number' != typeof c && Hf(a, b, c) && (b = c = ca),
- (c = c === ca ? Ka : c >>> 0)
- ? ((a = Ai(a)),
- a &&
- ('string' == typeof b || (null != b && !um(b))) &&
- ((b = me(b)), !b && P(a))
- ? xe($(a), 0, c)
- : a.split(b, c))
- : []
- );
- }
- function pj(a, b, c) {
- return (
- (a = Ai(a)),
- (c = null == c ? 0 : Jc(vi(c), 0, a.length)),
- (b = me(b)),
- a.slice(c, c + b.length) == b
- );
- }
- function qj(a, b, d) {
- var e = c.templateSettings;
- d && Hf(a, b, d) && (b = ca), (a = Ai(a)), (b = Bm({}, b, e, hf));
- var f,
- g,
- h = Bm({}, b.imports, e.imports, hf),
- i = Ni(h),
- j = I(h, i),
- k = 0,
- l = b.interpolate || Yb,
- m = "__p += '",
- n = hk(
- (b.escape || Yb).source +
- '|' +
- l.source +
- '|' +
- (l === Cb ? Qb : Yb).source +
- '|' +
- (b.evaluate || Yb).source +
- '|$',
- 'g'
- ),
- o =
- '//# sourceURL=' +
- (pk.call(b, 'sourceURL')
- ? (b.sourceURL + '').replace(/[\r\n]/g, ' ')
- : 'lodash.templateSources[' + ++Uc + ']') +
- '\n';
- a.replace(n, function(b, c, d, e, h, i) {
- return (
- d || (d = e),
- (m += a.slice(k, i).replace(Zb, N)),
- c && ((f = !0), (m += "' +\n__e(" + c + ") +\n'")),
- h && ((g = !0), (m += "';\n" + h + ";\n__p += '")),
- d && (m += "' +\n((__t = (" + d + ")) == null ? '' : __t) +\n'"),
- (k = i + b.length),
- b
- );
- }),
- (m += "';\n");
- var p = pk.call(b, 'variable') && b.variable;
- p || (m = 'with (obj) {\n' + m + '\n}\n'),
- (m = (g ? m.replace(tb, '') : m).replace(ub, '$1').replace(vb, '$1;')),
- (m =
- 'function(' +
- (p || 'obj') +
- ') {\n' +
- (p ? '' : 'obj || (obj = {});\n') +
- "var __t, __p = ''" +
- (f ? ', __e = _.escape' : '') +
- (g
- ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n"
- : ';\n') +
- m +
- 'return __p\n}');
- var q = Xm(function() {
- return ek(i, o + 'return ' + m).apply(ca, j);
- });
- if (((q.source = m), $h(q))) throw q;
- return q;
- }
- function rj(a) {
- return Ai(a).toLowerCase();
- }
- function sj(a) {
- return Ai(a).toUpperCase();
- }
- function tj(a, b, c) {
- if (((a = Ai(a)), a && (c || b === ca))) return a.replace(Ib, '');
- if (!a || !(b = me(b))) return a;
- var d = $(a),
- e = $(b),
- f = K(d, e),
- g = L(d, e) + 1;
- return xe(d, f, g).join('');
- }
- function uj(a, b, c) {
- if (((a = Ai(a)), a && (c || b === ca))) return a.replace(Kb, '');
- if (!a || !(b = me(b))) return a;
- var d = $(a),
- e = L(d, $(b)) + 1;
- return xe(d, 0, e).join('');
- }
- function vj(a, b, c) {
- if (((a = Ai(a)), a && (c || b === ca))) return a.replace(Jb, '');
- if (!a || !(b = me(b))) return a;
- var d = $(a),
- e = K(d, $(b));
- return xe(d, e).join('');
- }
- function wj(a, b) {
- var c = za,
- d = Aa;
- if (di(b)) {
- var e = 'separator' in b ? b.separator : e;
- (c = 'length' in b ? vi(b.length) : c),
- (d = 'omission' in b ? me(b.omission) : d);
- }
- a = Ai(a);
- var f = a.length;
- if (P(a)) {
- var g = $(a);
- f = g.length;
- }
- if (c >= f) return a;
- var h = c - Z(d);
- if (h < 1) return d;
- var i = g ? xe(g, 0, h).join('') : a.slice(0, h);
- if (e === ca) return i + d;
- if ((g && (h += i.length - h), um(e))) {
- if (a.slice(h).search(e)) {
- var j,
- k = i;
- for (
- e.global || (e = hk(e.source, Ai(Rb.exec(e)) + 'g')), e.lastIndex = 0;
- (j = e.exec(k));
- )
- var l = j.index;
- i = i.slice(0, l === ca ? h : l);
- }
- } else if (a.indexOf(me(e), h) != h) {
- var m = i.lastIndexOf(e);
- m > -1 && (i = i.slice(0, m));
- }
- return i + d;
- }
- function xj(a) {
- return (a = Ai(a)), a && yb.test(a) ? a.replace(wb, sd) : a;
- }
- function yj(a, b, c) {
- return (
- (a = Ai(a)),
- (b = c ? ca : b),
- b === ca ? (Q(a) ? ba(a) : t(a)) : a.match(b) || []
- );
- }
- function zj(a) {
- var b = null == a ? 0 : a.length,
- c = tf();
- return (
- (a = b
- ? n(a, function(a) {
- if ('function' != typeof a[1]) throw new jk(ga);
- return [c(a[0]), a[1]];
- })
- : []),
- be(function(c) {
- for (var d = -1; ++d < b; ) {
- var e = a[d];
- if (f(e[0], this, c)) return f(e[1], this, c);
- }
- })
- );
- }
- function Aj(a) {
- return Lc(Kc(a, ka));
- }
- function Bj(a) {
- return function() {
- return a;
- };
- }
- function Cj(a, b) {
- return null == a || a !== a ? b : a;
- }
- function Dj(a) {
- return a;
- }
- function Ej(a) {
- return Kd('function' == typeof a ? a : Kc(a, ka));
- }
- function Fj(a) {
- return Pd(Kc(a, ka));
- }
- function Gj(a, b) {
- return Qd(a, Kc(b, ka));
- }
- function Hj(a, b, c) {
- var d = Ni(b),
- e = cd(b, d);
- null != c ||
- (di(b) && (e.length || !d.length)) ||
- ((c = b), (b = a), (a = this), (e = cd(b, Ni(b))));
- var f = !(di(c) && 'chain' in c && !c.chain),
- g = ai(a);
- return (
- h(e, function(c) {
- var d = b[c];
- (a[c] = d),
- g &&
- (a.prototype[c] = function() {
- var b = this.__chain__;
- if (f || b) {
- var c = a(this.__wrapped__),
- e = (c.__actions__ = Ie(this.__actions__));
- return (
- e.push({ func: d, args: arguments, thisArg: a }),
- (c.__chain__ = b),
- c
- );
- }
- return d.apply(a, o([this.value()], arguments));
- });
- }),
- a
- );
- }
- function Ij() {
- return dd._ === this && (dd._ = uk), this;
- }
- function Jj() {}
- function Kj(a) {
- return (
- (a = vi(a)),
- be(function(b) {
- return Td(b, a);
- })
- );
- }
- function Lj(a) {
- return If(a) ? A($f(a)) : Xd(a);
- }
- function Mj(a) {
- return function(b) {
- return null == a ? ca : ed(a, b);
- };
- }
- function Nj() {
- return [];
- }
- function Oj() {
- return !1;
- }
- function Pj() {
- return {};
- }
- function Qj() {
- return '';
- }
- function Rj() {
- return !0;
- }
- function Sj(a, b) {
- if (((a = vi(a)), a < 1 || a > Ha)) return [];
- var c = Ka,
- d = Tk(a, Ka);
- (b = tf(b)), (a -= Ka);
- for (var e = F(d, b); ++c < a; ) b(c);
- return e;
- }
- function Tj(a) {
- return pm(a) ? n(a, $f) : pi(a) ? [a] : Ie(El(Ai(a)));
- }
- function Uj(a) {
- var b = ++qk;
- return Ai(a) + b;
- }
- function Vj(a) {
- return a && a.length ? Sc(a, Dj, id) : ca;
- }
- function Wj(a, b) {
- return a && a.length ? Sc(a, tf(b, 2), id) : ca;
- }
- function Xj(a) {
- return z(a, Dj);
- }
- function Yj(a, b) {
- return z(a, tf(b, 2));
- }
- function Zj(a) {
- return a && a.length ? Sc(a, Dj, Nd) : ca;
- }
- function $j(a, b) {
- return a && a.length ? Sc(a, tf(b, 2), Nd) : ca;
- }
- function _j(a) {
- return a && a.length ? E(a, Dj) : 0;
- }
- function ak(a, b) {
- return a && a.length ? E(a, tf(b, 2)) : 0;
- }
- b = null == b ? dd : ud.defaults(dd.Object(), b, ud.pick(dd, Tc));
- var bk = b.Array,
- ck = b.Date,
- dk = b.Error,
- ek = b.Function,
- fk = b.Math,
- gk = b.Object,
- hk = b.RegExp,
- ik = b.String,
- jk = b.TypeError,
- kk = bk.prototype,
- lk = ek.prototype,
- mk = gk.prototype,
- nk = b['__core-js_shared__'],
- ok = lk.toString,
- pk = mk.hasOwnProperty,
- qk = 0,
- rk = (function() {
- var a = /[^.]+$/.exec((nk && nk.keys && nk.keys.IE_PROTO) || '');
- return a ? 'Symbol(src)_1.' + a : '';
- })(),
- sk = mk.toString,
- tk = ok.call(gk),
- uk = dd._,
- vk = hk(
- '^' +
- ok
- .call(pk)
- .replace(Gb, '\\$&')
- .replace(
- /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
- '$1.*?'
- ) +
- '$'
- ),
- wk = gd ? b.Buffer : ca,
- xk = b.Symbol,
- yk = b.Uint8Array,
- zk = wk ? wk.allocUnsafe : ca,
- Ak = T(gk.getPrototypeOf, gk),
- Bk = gk.create,
- Ck = mk.propertyIsEnumerable,
- Dk = kk.splice,
- Ek = xk ? xk.isConcatSpreadable : ca,
- Fk = xk ? xk.iterator : ca,
- Gk = xk ? xk.toStringTag : ca,
- Hk = (function() {
- try {
- var a = wf(gk, 'defineProperty');
- return a({}, '', {}), a;
- } catch (a) {}
- })(),
- Ik = b.clearTimeout !== dd.clearTimeout && b.clearTimeout,
- Jk = ck && ck.now !== dd.Date.now && ck.now,
- Kk = b.setTimeout !== dd.setTimeout && b.setTimeout,
- Lk = fk.ceil,
- Mk = fk.floor,
- Nk = gk.getOwnPropertySymbols,
- Ok = wk ? wk.isBuffer : ca,
- Pk = b.isFinite,
- Qk = kk.join,
- Rk = T(gk.keys, gk),
- Sk = fk.max,
- Tk = fk.min,
- Uk = ck.now,
- Vk = b.parseInt,
- Wk = fk.random,
- Xk = kk.reverse,
- Yk = wf(b, 'DataView'),
- Zk = wf(b, 'Map'),
- $k = wf(b, 'Promise'),
- _k = wf(b, 'Set'),
- al = wf(b, 'WeakMap'),
- bl = wf(gk, 'create'),
- cl = al && new al(),
- dl = {},
- el = _f(Yk),
- fl = _f(Zk),
- gl = _f($k),
- hl = _f(_k),
- il = _f(al),
- jl = xk ? xk.prototype : ca,
- kl = jl ? jl.valueOf : ca,
- ll = jl ? jl.toString : ca,
- ml = (function() {
- function a() {}
- return function(b) {
- if (!di(b)) return {};
- if (Bk) return Bk(b);
- a.prototype = b;
- var c = new a();
- return (a.prototype = ca), c;
- };
- })();
- (c.templateSettings = {
- escape: Ab,
- evaluate: Bb,
- interpolate: Cb,
- variable: '',
- imports: { _: c }
- }),
- (c.prototype = d.prototype),
- (c.prototype.constructor = c),
- (e.prototype = ml(d.prototype)),
- (e.prototype.constructor = e),
- (s.prototype = ml(d.prototype)),
- (s.prototype.constructor = s),
- (aa.prototype.clear = Ob),
- (aa.prototype.delete = $b),
- (aa.prototype.get = _b),
- (aa.prototype.has = ac),
- (aa.prototype.set = bc),
- (cc.prototype.clear = dc),
- (cc.prototype.delete = ec),
- (cc.prototype.get = fc),
- (cc.prototype.has = gc),
- (cc.prototype.set = hc),
- (ic.prototype.clear = jc),
- (ic.prototype.delete = kc),
- (ic.prototype.get = lc),
- (ic.prototype.has = mc),
- (ic.prototype.set = nc),
- (oc.prototype.add = oc.prototype.push = pc),
- (oc.prototype.has = qc),
- (rc.prototype.clear = sc),
- (rc.prototype.delete = tc),
- (rc.prototype.get = uc),
- (rc.prototype.has = vc),
- (rc.prototype.set = wc);
- var nl = Oe($c),
- ol = Oe(bd, !0),
- pl = Pe(),
- ql = Pe(!0),
- rl = cl
- ? function(a, b) {
- return cl.set(a, b), a;
- }
- : Dj,
- sl = Hk
- ? function(a, b) {
- return Hk(a, 'toString', {
- configurable: !0,
- enumerable: !1,
- value: Bj(b),
- writable: !0
- });
- }
- : Dj,
- tl = be,
- ul =
- Ik ||
- function(a) {
- return dd.clearTimeout(a);
- },
- vl =
- _k && 1 / V(new _k([, -0]))[1] == Ga
- ? function(a) {
- return new _k(a);
- }
- : Jj,
- wl = cl
- ? function(a) {
- return cl.get(a);
- }
- : Jj,
- xl = Nk
- ? function(a) {
- return null == a
- ? []
- : ((a = gk(a)),
- k(Nk(a), function(b) {
- return Ck.call(a, b);
- }));
- }
- : Nj,
- yl = Nk
- ? function(a) {
- for (var b = []; a; ) o(b, xl(a)), (a = Ak(a));
- return b;
- }
- : Nj,
- zl = hd;
- ((Yk && zl(new Yk(new ArrayBuffer(1))) != jb) ||
- (Zk && zl(new Zk()) != Xa) ||
- ($k && zl($k.resolve()) != _a) ||
- (_k && zl(new _k()) != cb) ||
- (al && zl(new al()) != gb)) &&
- (zl = function(a) {
- var b = hd(a),
- c = b == $a ? a.constructor : ca,
- d = c ? _f(c) : '';
- if (d)
- switch (d) {
- case el:
- return jb;
- case fl:
- return Xa;
- case gl:
- return _a;
- case hl:
- return cb;
- case il:
- return gb;
- }
- return b;
- });
- var Al = nk ? ai : Oj,
- Bl = Yf(rl),
- Cl =
- Kk ||
- function(a, b) {
- return dd.setTimeout(a, b);
- },
- Dl = Yf(sl),
- El = Pf(function(a) {
- var b = [];
- return (
- 46 === a.charCodeAt(0) && b.push(''),
- a.replace(Fb, function(a, c, d, e) {
- b.push(d ? e.replace(Pb, '$1') : c || a);
- }),
- b
- );
- }),
- Fl = be(function(a, b) {
- return Uh(a) ? Qc(a, Zc(b, 1, Uh, !0)) : [];
- }),
- Gl = be(function(a, b) {
- var c = ug(b);
- return Uh(c) && (c = ca), Uh(a) ? Qc(a, Zc(b, 1, Uh, !0), tf(c, 2)) : [];
- }),
- Hl = be(function(a, b) {
- var c = ug(b);
- return Uh(c) && (c = ca), Uh(a) ? Qc(a, Zc(b, 1, Uh, !0), ca, c) : [];
- }),
- Il = be(function(a) {
- var b = n(a, ue);
- return b.length && b[0] === a[0] ? wd(b) : [];
- }),
- Jl = be(function(a) {
- var b = ug(a),
- c = n(a, ue);
- return (
- b === ug(c) ? (b = ca) : c.pop(),
- c.length && c[0] === a[0] ? wd(c, tf(b, 2)) : []
- );
- }),
- Kl = be(function(a) {
- var b = ug(a),
- c = n(a, ue);
- return (
- (b = 'function' == typeof b ? b : ca),
- b && c.pop(),
- c.length && c[0] === a[0] ? wd(c, ca, b) : []
- );
- }),
- Ll = be(xg),
- Ml = of(function(a, b) {
- var c = null == a ? 0 : a.length,
- d = Ic(a, b);
- return (
- Zd(
- a,
- n(b, function(a) {
- return Gf(a, c) ? +a : a;
- }).sort(Ee)
- ),
- d
- );
- }),
- Nl = be(function(a) {
- return ne(Zc(a, 1, Uh, !0));
- }),
- Ol = be(function(a) {
- var b = ug(a);
- return Uh(b) && (b = ca), ne(Zc(a, 1, Uh, !0), tf(b, 2));
- }),
- Pl = be(function(a) {
- var b = ug(a);
- return (b = 'function' == typeof b ? b : ca), ne(Zc(a, 1, Uh, !0), ca, b);
- }),
- Ql = be(function(a, b) {
- return Uh(a) ? Qc(a, b) : [];
- }),
- Rl = be(function(a) {
- return se(k(a, Uh));
- }),
- Sl = be(function(a) {
- var b = ug(a);
- return Uh(b) && (b = ca), se(k(a, Uh), tf(b, 2));
- }),
- Tl = be(function(a) {
- var b = ug(a);
- return (b = 'function' == typeof b ? b : ca), se(k(a, Uh), ca, b);
- }),
- Ul = be(Tg),
- Vl = be(function(a) {
- var b = a.length,
- c = b > 1 ? a[b - 1] : ca;
- return (c = 'function' == typeof c ? (a.pop(), c) : ca), Ug(a, c);
- }),
- Wl = of(function(a) {
- var b = a.length,
- c = b ? a[0] : 0,
- d = this.__wrapped__,
- f = function(b) {
- return Ic(b, a);
- };
- return !(b > 1 || this.__actions__.length) && d instanceof s && Gf(c)
- ? ((d = d.slice(c, +c + (b ? 1 : 0))),
- d.__actions__.push({ func: Zg, args: [f], thisArg: ca }),
- new e(d, this.__chain__).thru(function(a) {
- return b && !a.length && a.push(ca), a;
- }))
- : this.thru(f);
- }),
- Xl = Me(function(a, b, c) {
- pk.call(a, c) ? ++a[c] : Hc(a, c, 1);
- }),
- Yl = Ve(kg),
- Zl = Ve(lg),
- $l = Me(function(a, b, c) {
- pk.call(a, c) ? a[c].push(b) : Hc(a, c, [b]);
- }),
- _l = be(function(a, b, c) {
- var d = -1,
- e = 'function' == typeof b,
- g = Th(a) ? bk(a.length) : [];
- return (
- nl(a, function(a) {
- g[++d] = e ? f(b, a, c) : yd(a, b, c);
- }),
- g
- );
- }),
- am = Me(function(a, b, c) {
- Hc(a, c, b);
- }),
- bm = Me(
- function(a, b, c) {
- a[c ? 0 : 1].push(b);
- },
- function() {
- return [[], []];
- }
- ),
- cm = be(function(a, b) {
- if (null == a) return [];
- var c = b.length;
- return (
- c > 1 && Hf(a, b[0], b[1])
- ? (b = [])
- : c > 2 && Hf(b[0], b[1], b[2]) && (b = [b[0]]),
- Ud(a, Zc(b, 1), [])
- );
- }),
- dm =
- Jk ||
- function() {
- return dd.Date.now();
- },
- em = be(function(a, b, c) {
- var d = pa;
- if (c.length) {
- var e = U(c, sf(em));
- d |= ua;
- }
- return gf(a, d, b, c, e);
- }),
- fm = be(function(a, b, c) {
- var d = pa | qa;
- if (c.length) {
- var e = U(c, sf(fm));
- d |= ua;
- }
- return gf(b, d, a, c, e);
- }),
- gm = be(function(a, b) {
- return Pc(a, 1, b);
- }),
- hm = be(function(a, b, c) {
- return Pc(a, xi(b) || 0, c);
- });
- Eh.Cache = ic;
- var im = tl(function(a, b) {
- b = 1 == b.length && pm(b[0]) ? n(b[0], H(tf())) : n(Zc(b, 1), H(tf()));
- var c = b.length;
- return be(function(d) {
- for (var e = -1, g = Tk(d.length, c); ++e < g; )
- d[e] = b[e].call(this, d[e]);
- return f(a, this, d);
- });
- }),
- jm = be(function(a, b) {
- var c = U(b, sf(jm));
- return gf(a, ua, ca, b, c);
- }),
- km = be(function(a, b) {
- var c = U(b, sf(km));
- return gf(a, va, ca, b, c);
- }),
- lm = of(function(a, b) {
- return gf(a, xa, ca, ca, ca, b);
- }),
- mm = cf(id),
- nm = cf(function(a, b) {
- return a >= b;
- }),
- om = zd(
- (function() {
- return arguments;
- })()
- )
- ? zd
- : function(a) {
- return ei(a) && pk.call(a, 'callee') && !Ck.call(a, 'callee');
- },
- pm = bk.isArray,
- qm = jd ? H(jd) : Ad,
- rm = Ok || Oj,
- sm = kd ? H(kd) : Bd,
- tm = ld ? H(ld) : Ed,
- um = md ? H(md) : Hd,
- vm = nd ? H(nd) : Id,
- wm = od ? H(od) : Jd,
- xm = cf(Nd),
- ym = cf(function(a, b) {
- return a <= b;
- }),
- zm = Ne(function(a, b) {
- if (Mf(b) || Th(b)) return void Je(b, Ni(b), a);
- for (var c in b) pk.call(b, c) && Cc(a, c, b[c]);
- }),
- Am = Ne(function(a, b) {
- Je(b, Oi(b), a);
- }),
- Bm = Ne(function(a, b, c, d) {
- Je(b, Oi(b), a, d);
- }),
- Cm = Ne(function(a, b, c, d) {
- Je(b, Ni(b), a, d);
- }),
- Dm = of(Ic),
- Em = be(function(a, b) {
- a = gk(a);
- var c = -1,
- d = b.length,
- e = d > 2 ? b[2] : ca;
- for (e && Hf(b[0], b[1], e) && (d = 1); ++c < d; )
- for (var f = b[c], g = Oi(f), h = -1, i = g.length; ++h < i; ) {
- var j = g[h],
- k = a[j];
- (k === ca || (Sh(k, mk[j]) && !pk.call(a, j))) && (a[j] = f[j]);
- }
- return a;
- }),
- Fm = be(function(a) {
- return a.push(ca, jf), f(Km, ca, a);
- }),
- Gm = Ye(function(a, b, c) {
- null != b && 'function' != typeof b.toString && (b = sk.call(b)), (a[b] = c);
- }, Bj(Dj)),
- Hm = Ye(function(a, b, c) {
- null != b && 'function' != typeof b.toString && (b = sk.call(b)),
- pk.call(a, b) ? a[b].push(c) : (a[b] = [c]);
- }, tf),
- Im = be(yd),
- Jm = Ne(function(a, b, c) {
- Rd(a, b, c);
- }),
- Km = Ne(function(a, b, c, d) {
- Rd(a, b, c, d);
- }),
- Lm = of(function(a, b) {
- var c = {};
- if (null == a) return c;
- var d = !1;
- (b = n(b, function(b) {
- return (b = we(b, a)), d || (d = b.length > 1), b;
- })),
- Je(a, qf(a), c),
- d && (c = Kc(c, ka | la | ma, kf));
- for (var e = b.length; e--; ) oe(c, b[e]);
- return c;
- }),
- Mm = of(function(a, b) {
- return null == a ? {} : Vd(a, b);
- }),
- Nm = ff(Ni),
- Om = ff(Oi),
- Pm = Se(function(a, b, c) {
- return (b = b.toLowerCase()), a + (c ? dj(b) : b);
- }),
- Qm = Se(function(a, b, c) {
- return a + (c ? '-' : '') + b.toLowerCase();
- }),
- Rm = Se(function(a, b, c) {
- return a + (c ? ' ' : '') + b.toLowerCase();
- }),
- Sm = Re('toLowerCase'),
- Tm = Se(function(a, b, c) {
- return a + (c ? '_' : '') + b.toLowerCase();
- }),
- Um = Se(function(a, b, c) {
- return a + (c ? ' ' : '') + Wm(b);
- }),
- Vm = Se(function(a, b, c) {
- return a + (c ? ' ' : '') + b.toUpperCase();
- }),
- Wm = Re('toUpperCase'),
- Xm = be(function(a, b) {
- try {
- return f(a, ca, b);
- } catch (a) {
- return $h(a) ? a : new dk(a);
- }
- }),
- Ym = of(function(a, b) {
- return (
- h(b, function(b) {
- (b = $f(b)), Hc(a, b, em(a[b], a));
- }),
- a
- );
- }),
- Zm = We(),
- $m = We(!0),
- _m = be(function(a, b) {
- return function(c) {
- return yd(c, a, b);
- };
- }),
- an = be(function(a, b) {
- return function(c) {
- return yd(a, c, b);
- };
- }),
- bn = $e(n),
- cn = $e(j),
- dn = $e(r),
- en = bf(),
- fn = bf(!0),
- gn = Ze(function(a, b) {
- return a + b;
- }, 0),
- hn = ef('ceil'),
- jn = Ze(function(a, b) {
- return a / b;
- }, 1),
- kn = ef('floor'),
- ln = Ze(function(a, b) {
- return a * b;
- }, 1),
- mn = ef('round'),
- nn = Ze(function(a, b) {
- return a - b;
- }, 0);
- return (
- (c.after = xh),
- (c.ary = yh),
- (c.assign = zm),
- (c.assignIn = Am),
- (c.assignInWith = Bm),
- (c.assignWith = Cm),
- (c.at = Dm),
- (c.before = zh),
- (c.bind = em),
- (c.bindAll = Ym),
- (c.bindKey = fm),
- (c.castArray = Mh),
- (c.chain = Xg),
- (c.chunk = cg),
- (c.compact = dg),
- (c.concat = eg),
- (c.cond = zj),
- (c.conforms = Aj),
- (c.constant = Bj),
- (c.countBy = Xl),
- (c.create = Bi),
- (c.curry = Ah),
- (c.curryRight = Bh),
- (c.debounce = Ch),
- (c.defaults = Em),
- (c.defaultsDeep = Fm),
- (c.defer = gm),
- (c.delay = hm),
- (c.difference = Fl),
- (c.differenceBy = Gl),
- (c.differenceWith = Hl),
- (c.drop = fg),
- (c.dropRight = gg),
- (c.dropRightWhile = hg),
- (c.dropWhile = ig),
- (c.fill = jg),
- (c.filter = gh),
- (c.flatMap = hh),
- (c.flatMapDeep = ih),
- (c.flatMapDepth = jh),
- (c.flatten = mg),
- (c.flattenDeep = ng),
- (c.flattenDepth = og),
- (c.flip = Dh),
- (c.flow = Zm),
- (c.flowRight = $m),
- (c.fromPairs = pg),
- (c.functions = Ii),
- (c.functionsIn = Ji),
- (c.groupBy = $l),
- (c.initial = sg),
- (c.intersection = Il),
- (c.intersectionBy = Jl),
- (c.intersectionWith = Kl),
- (c.invert = Gm),
- (c.invertBy = Hm),
- (c.invokeMap = _l),
- (c.iteratee = Ej),
- (c.keyBy = am),
- (c.keys = Ni),
- (c.keysIn = Oi),
- (c.map = nh),
- (c.mapKeys = Pi),
- (c.mapValues = Qi),
- (c.matches = Fj),
- (c.matchesProperty = Gj),
- (c.memoize = Eh),
- (c.merge = Jm),
- (c.mergeWith = Km),
- (c.method = _m),
- (c.methodOf = an),
- (c.mixin = Hj),
- (c.negate = Fh),
- (c.nthArg = Kj),
- (c.omit = Lm),
- (c.omitBy = Ri),
- (c.once = Gh),
- (c.orderBy = oh),
- (c.over = bn),
- (c.overArgs = im),
- (c.overEvery = cn),
- (c.overSome = dn),
- (c.partial = jm),
- (c.partialRight = km),
- (c.partition = bm),
- (c.pick = Mm),
- (c.pickBy = Si),
- (c.property = Lj),
- (c.propertyOf = Mj),
- (c.pull = Ll),
- (c.pullAll = xg),
- (c.pullAllBy = yg),
- (c.pullAllWith = zg),
- (c.pullAt = Ml),
- (c.range = en),
- (c.rangeRight = fn),
- (c.rearg = lm),
- (c.reject = rh),
- (c.remove = Ag),
- (c.rest = Hh),
- (c.reverse = Bg),
- (c.sampleSize = th),
- (c.set = Ui),
- (c.setWith = Vi),
- (c.shuffle = uh),
- (c.slice = Cg),
- (c.sortBy = cm),
- (c.sortedUniq = Jg),
- (c.sortedUniqBy = Kg),
- (c.split = oj),
- (c.spread = Ih),
- (c.tail = Lg),
- (c.take = Mg),
- (c.takeRight = Ng),
- (c.takeRightWhile = Og),
- (c.takeWhile = Pg),
- (c.tap = Yg),
- (c.throttle = Jh),
- (c.thru = Zg),
- (c.toArray = ti),
- (c.toPairs = Nm),
- (c.toPairsIn = Om),
- (c.toPath = Tj),
- (c.toPlainObject = yi),
- (c.transform = Wi),
- (c.unary = Kh),
- (c.union = Nl),
- (c.unionBy = Ol),
- (c.unionWith = Pl),
- (c.uniq = Qg),
- (c.uniqBy = Rg),
- (c.uniqWith = Sg),
- (c.unset = Xi),
- (c.unzip = Tg),
- (c.unzipWith = Ug),
- (c.update = Yi),
- (c.updateWith = Zi),
- (c.values = $i),
- (c.valuesIn = _i),
- (c.without = Ql),
- (c.words = yj),
- (c.wrap = Lh),
- (c.xor = Rl),
- (c.xorBy = Sl),
- (c.xorWith = Tl),
- (c.zip = Ul),
- (c.zipObject = Vg),
- (c.zipObjectDeep = Wg),
- (c.zipWith = Vl),
- (c.entries = Nm),
- (c.entriesIn = Om),
- (c.extend = Am),
- (c.extendWith = Bm),
- Hj(c, c),
- (c.add = gn),
- (c.attempt = Xm),
- (c.camelCase = Pm),
- (c.capitalize = dj),
- (c.ceil = hn),
- (c.clamp = aj),
- (c.clone = Nh),
- (c.cloneDeep = Ph),
- (c.cloneDeepWith = Qh),
- (c.cloneWith = Oh),
- (c.conformsTo = Rh),
- (c.deburr = ej),
- (c.defaultTo = Cj),
- (c.divide = jn),
- (c.endsWith = fj),
- (c.eq = Sh),
- (c.escape = gj),
- (c.escapeRegExp = hj),
- (c.every = fh),
- (c.find = Yl),
- (c.findIndex = kg),
- (c.findKey = Ci),
- (c.findLast = Zl),
- (c.findLastIndex = lg),
- (c.findLastKey = Di),
- (c.floor = kn),
- (c.forEach = kh),
- (c.forEachRight = lh),
- (c.forIn = Ei),
- (c.forInRight = Fi),
- (c.forOwn = Gi),
- (c.forOwnRight = Hi),
- (c.get = Ki),
- (c.gt = mm),
- (c.gte = nm),
- (c.has = Li),
- (c.hasIn = Mi),
- (c.head = qg),
- (c.identity = Dj),
- (c.includes = mh),
- (c.indexOf = rg),
- (c.inRange = bj),
- (c.invoke = Im),
- (c.isArguments = om),
- (c.isArray = pm),
- (c.isArrayBuffer = qm),
- (c.isArrayLike = Th),
- (c.isArrayLikeObject = Uh),
- (c.isBoolean = Vh),
- (c.isBuffer = rm),
- (c.isDate = sm),
- (c.isElement = Wh),
- (c.isEmpty = Xh),
- (c.isEqual = Yh),
- (c.isEqualWith = Zh),
- (c.isError = $h),
- (c.isFinite = _h),
- (c.isFunction = ai),
- (c.isInteger = bi),
- (c.isLength = ci),
- (c.isMap = tm),
- (c.isMatch = fi),
- (c.isMatchWith = gi),
- (c.isNaN = hi),
- (c.isNative = ii),
- (c.isNil = ki),
- (c.isNull = ji),
- (c.isNumber = li),
- (c.isObject = di),
- (c.isObjectLike = ei),
- (c.isPlainObject = mi),
- (c.isRegExp = um),
- (c.isSafeInteger = ni),
- (c.isSet = vm),
- (c.isString = oi),
- (c.isSymbol = pi),
- (c.isTypedArray = wm),
- (c.isUndefined = qi),
- (c.isWeakMap = ri),
- (c.isWeakSet = si),
- (c.join = tg),
- (c.kebabCase = Qm),
- (c.last = ug),
- (c.lastIndexOf = vg),
- (c.lowerCase = Rm),
- (c.lowerFirst = Sm),
- (c.lt = xm),
- (c.lte = ym),
- (c.max = Vj),
- (c.maxBy = Wj),
- (c.mean = Xj),
- (c.meanBy = Yj),
- (c.min = Zj),
- (c.minBy = $j),
- (c.stubArray = Nj),
- (c.stubFalse = Oj),
- (c.stubObject = Pj),
- (c.stubString = Qj),
- (c.stubTrue = Rj),
- (c.multiply = ln),
- (c.nth = wg),
- (c.noConflict = Ij),
- (c.noop = Jj),
- (c.now = dm),
- (c.pad = ij),
- (c.padEnd = jj),
- (c.padStart = kj),
- (c.parseInt = lj),
- (c.random = cj),
- (c.reduce = ph),
- (c.reduceRight = qh),
- (c.repeat = mj),
- (c.replace = nj),
- (c.result = Ti),
- (c.round = mn),
- (c.runInContext = a),
- (c.sample = sh),
- (c.size = vh),
- (c.snakeCase = Tm),
- (c.some = wh),
- (c.sortedIndex = Dg),
- (c.sortedIndexBy = Eg),
- (c.sortedIndexOf = Fg),
- (c.sortedLastIndex = Gg),
- (c.sortedLastIndexBy = Hg),
- (c.sortedLastIndexOf = Ig),
- (c.startCase = Um),
- (c.startsWith = pj),
- (c.subtract = nn),
- (c.sum = _j),
- (c.sumBy = ak),
- (c.template = qj),
- (c.times = Sj),
- (c.toFinite = ui),
- (c.toInteger = vi),
- (c.toLength = wi),
- (c.toLower = rj),
- (c.toNumber = xi),
- (c.toSafeInteger = zi),
- (c.toString = Ai),
- (c.toUpper = sj),
- (c.trim = tj),
- (c.trimEnd = uj),
- (c.trimStart = vj),
- (c.truncate = wj),
- (c.unescape = xj),
- (c.uniqueId = Uj),
- (c.upperCase = Vm),
- (c.upperFirst = Wm),
- (c.each = kh),
- (c.eachRight = lh),
- (c.first = qg),
- Hj(
- c,
- (function() {
- var a = {};
- return (
- $c(c, function(b, d) {
- pk.call(c.prototype, d) || (a[d] = b);
- }),
- a
- );
- })(),
- { chain: !1 }
- ),
- (c.VERSION = da),
- h(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(
- a
- ) {
- c[a].placeholder = c;
- }),
- h(['drop', 'take'], function(a, b) {
- (s.prototype[a] = function(c) {
- c = c === ca ? 1 : Sk(vi(c), 0);
- var d = this.__filtered__ && !b ? new s(this) : this.clone();
- return (
- d.__filtered__
- ? (d.__takeCount__ = Tk(c, d.__takeCount__))
- : d.__views__.push({
- size: Tk(c, Ka),
- type: a + (d.__dir__ < 0 ? 'Right' : '')
- }),
- d
- );
- }),
- (s.prototype[a + 'Right'] = function(b) {
- return this.reverse()
- [a](b)
- .reverse();
- });
- }),
- h(['filter', 'map', 'takeWhile'], function(a, b) {
- var c = b + 1,
- d = c == Da || c == Fa;
- s.prototype[a] = function(a) {
- var b = this.clone();
- return (
- b.__iteratees__.push({ iteratee: tf(a, 3), type: c }),
- (b.__filtered__ = b.__filtered__ || d),
- b
- );
- };
- }),
- h(['head', 'last'], function(a, b) {
- var c = 'take' + (b ? 'Right' : '');
- s.prototype[a] = function() {
- return this[c](1).value()[0];
- };
- }),
- h(['initial', 'tail'], function(a, b) {
- var c = 'drop' + (b ? '' : 'Right');
- s.prototype[a] = function() {
- return this.__filtered__ ? new s(this) : this[c](1);
- };
- }),
- (s.prototype.compact = function() {
- return this.filter(Dj);
- }),
- (s.prototype.find = function(a) {
- return this.filter(a).head();
- }),
- (s.prototype.findLast = function(a) {
- return this.reverse().find(a);
- }),
- (s.prototype.invokeMap = be(function(a, b) {
- return 'function' == typeof a
- ? new s(this)
- : this.map(function(c) {
- return yd(c, a, b);
- });
- })),
- (s.prototype.reject = function(a) {
- return this.filter(Fh(tf(a)));
- }),
- (s.prototype.slice = function(a, b) {
- a = vi(a);
- var c = this;
- return c.__filtered__ && (a > 0 || b < 0)
- ? new s(c)
- : (a < 0 ? (c = c.takeRight(-a)) : a && (c = c.drop(a)),
- b !== ca && ((b = vi(b)), (c = b < 0 ? c.dropRight(-b) : c.take(b - a))),
- c);
- }),
- (s.prototype.takeRightWhile = function(a) {
- return this.reverse()
- .takeWhile(a)
- .reverse();
- }),
- (s.prototype.toArray = function() {
- return this.take(Ka);
- }),
- $c(s.prototype, function(a, b) {
- var d = /^(?:filter|find|map|reject)|While$/.test(b),
- f = /^(?:head|last)$/.test(b),
- g = c[f ? 'take' + ('last' == b ? 'Right' : '') : b],
- h = f || /^find/.test(b);
- g &&
- (c.prototype[b] = function() {
- var b = this.__wrapped__,
- i = f ? [1] : arguments,
- j = b instanceof s,
- k = i[0],
- l = j || pm(b),
- m = function(a) {
- var b = g.apply(c, o([a], i));
- return f && n ? b[0] : b;
- };
- l && d && 'function' == typeof k && 1 != k.length && (j = l = !1);
- var n = this.__chain__,
- p = !!this.__actions__.length,
- q = h && !n,
- r = j && !p;
- if (!h && l) {
- b = r ? b : new s(this);
- var t = a.apply(b, i);
- return (
- t.__actions__.push({ func: Zg, args: [m], thisArg: ca }),
- new e(t, n)
- );
- }
- return q && r
- ? a.apply(this, i)
- : ((t = this.thru(m)), q ? (f ? t.value()[0] : t.value()) : t);
- });
- }),
- h(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(a) {
- var b = kk[a],
- d = /^(?:push|sort|unshift)$/.test(a) ? 'tap' : 'thru',
- e = /^(?:pop|shift)$/.test(a);
- c.prototype[a] = function() {
- var a = arguments;
- if (e && !this.__chain__) {
- var c = this.value();
- return b.apply(pm(c) ? c : [], a);
- }
- return this[d](function(c) {
- return b.apply(pm(c) ? c : [], a);
- });
- };
- }),
- $c(s.prototype, function(a, b) {
- var d = c[b];
- if (d) {
- var e = d.name + '';
- pk.call(dl, e) || (dl[e] = []), dl[e].push({ name: b, func: d });
- }
- }),
- (dl[Xe(ca, qa).name] = [{ name: 'wrapper', func: ca }]),
- (s.prototype.clone = B),
- (s.prototype.reverse = X),
- (s.prototype.value = _),
- (c.prototype.at = Wl),
- (c.prototype.chain = $g),
- (c.prototype.commit = _g),
- (c.prototype.next = ah),
- (c.prototype.plant = ch),
- (c.prototype.reverse = dh),
- (c.prototype.toJSON = c.prototype.valueOf = c.prototype.value = eh),
- (c.prototype.first = c.prototype.head),
- Fk && (c.prototype[Fk] = bh),
- c
- );
- },
- ud = td();
- (dd._ = ud),
- (e = function() {
- return ud;
- }.call(b, c, b, d)),
- !(e !== ca && (d.exports = e));
- }.call(this));
- }.call(b, c(7), c(11)(a)));
- },
- function(a, b, c) {
- function d(a) {
- return (d =
- 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
- ? function(a) {
- return typeof a;
- }
- : function(a) {
- return a &&
- 'function' == typeof Symbol &&
- a.constructor === Symbol &&
- a !== Symbol.prototype
- ? 'symbol'
- : typeof a;
- })(a);
- }
- function e(a) {
- a = a || i.identity;
- var b = function(b) {
- function c(a, c) {
- 'function' == typeof a
- ? ((c = a), (a = {}))
- : ((a = a || {}), (c = 'function' == typeof c ? c : null));
- try {
- return g(this.transport, b, i.clone(a), c);
- } catch (a) {
- if ('function' != typeof c) {
- var d = this.transport.defer();
- return d.reject(a), d.promise;
- }
- j.nextTick(c, a);
- }
- }
- return (
- (b = a(b)),
- i.isPlainObject(b.params) || (b.params = {}),
- b.method || (b.method = 'GET'),
- (c.spec = b),
- c
- );
- };
- return (
- (b.proxy = function(a, b) {
- return function(c, d) {
- return (
- 'function' == typeof c
- ? ((d = c), (c = {}))
- : ((c = c || {}), (d = 'function' == typeof d ? d : null)),
- b.transform && b.transform(c),
- a.call(this, c, d)
- );
- };
- }),
- b
- );
- }
- function f(a, b) {
- var c,
- d,
- e = {};
- if (a.req)
- for (
- a.reqParamKeys || (a.reqParamKeys = i.keys(a.req)), c = 0;
- c < a.reqParamKeys.length;
- c++
- ) {
- if (((d = a.reqParamKeys[c]), !b.hasOwnProperty(d) || null == b[d])) return !1;
- k[a.req[d].type] ? (e[d] = k[a.req[d].type](a.req[d], b[d], d)) : (e[d] = b[d]);
- }
- if (a.opt)
- for (a.optParamKeys || (a.optParamKeys = i.keys(a.opt)), c = 0; c < a.optParamKeys.length; c++)
- (d = a.optParamKeys[c]),
- b[d]
- ? k[a.opt[d].type] || null == b[d]
- ? (e[d] = k[a.opt[d].type](a.opt[d], b[d], d))
- : (e[d] = b[d])
- : (e[d] = a.opt[d].default);
- return (
- a.template || (a.template = i.template(a.fmt)),
- a.template(
- i.transform(
- e,
- function(a, c, d) {
- (a[d] = encodeURIComponent(c)), delete b[d];
- },
- {}
- )
- )
- );
- }
- function g(a, b, c, e) {
- var g,
- h = { method: b.method },
- l = {};
- if (
- (b.requestTimeout && (h.requestTimeout = b.requestTimeout),
- !c.body &&
- b.paramAsBody &&
- ('object' === d(b.paramAsBody)
- ? ((c.body = {}),
- b.paramAsBody.castToArray
- ? (c.body[b.paramAsBody.body] = [].concat(c[b.paramAsBody.param]))
- : (c.body[b.paramAsBody.body] = c[b.paramAsBody.param]),
- delete c[b.paramAsBody.param])
- : ((c.body = c[b.paramAsBody]), delete c[b.paramAsBody])),
- b.needsBody && !c.body)
- )
- throw new TypeError('A request body is required.');
- if ((b.bulkBody && (h.bulkBody = !0), 'HEAD' === b.method && (h.castExists = !0), b.url))
- h.path = f(b.url, c);
- else for (g = 0; g < b.urls.length && ((h.path = f(b.urls[g], c)), !h.path); g++);
- if (!h.path) {
- var m = b.url || b.urls[b.urls.length - 1];
- throw new TypeError(
- 'Unable to build a path with those params. Supply at least ' + i.keys(m.req).join(', ')
- );
- }
- b.paramKeys ||
- ((b.paramKeys = i.keys(b.params)),
- (b.requireParamKeys = i.transform(
- b.params,
- function(a, b, c) {
- b.required && a.push(c);
- },
- []
- )));
- for (var n in c)
- if (c.hasOwnProperty(n) && null != c[n])
- switch (n) {
- case 'body':
- case 'headers':
- case 'requestTimeout':
- case 'maxRetries':
- h[n] = c[n];
- break;
- case 'ignore':
- h.ignore = i.isArray(c[n]) ? c[n] : [c[n]];
- break;
- case 'method':
- h.method = j.toUpperString(c[n]);
- break;
- default:
- var o = b.params[n];
- o
- ? ((o.name = o.name || n),
- null != c[n] &&
- (k[o.type] ? (l[o.name] = k[o.type](o, c[n], n)) : (l[o.name] = c[n]),
- o.default && l[o.name] === o.default && delete l[o.name]))
- : (l[n] = c[n]);
- }
- for (g = 0; g < b.requireParamKeys.length; g++)
- if (!l.hasOwnProperty(b.requireParamKeys[g]))
- throw new TypeError('Missing required parameter ' + b.requireParamKeys[g]);
- return (h.query = l), a.request(h, e);
- }
- function h(a) {
- return a.split(',').map(function(a) {
- return a.trim();
- });
- }
- var i = c(0),
- j = c(2);
- (b.makeFactoryWithModifier = e),
- (b.factory = e()),
- (b.proxyFactory = b.factory.proxy),
- (b._resolveUrl = f),
- (b.ApiNamespace = function() {}),
- (b.namespaceFactory = function() {
- function a(a, b) {
- (this.transport = a), (this.client = b);
- }
- return (a.prototype = new b.ApiNamespace()), a;
- });
- var k = {
- enum: function a(b, c, d) {
- if ((i.isString(c) && c.indexOf(',') > -1 && (c = h(c)), i.isArray(c)))
- return c
- .map(function(c) {
- return a(b, c, d);
- })
- .join(',');
- for (var e = 0; e < b.options.length; e++) if (b.options[e] === String(c)) return b.options[e];
- throw new TypeError(
- 'Invalid ' +
- d +
- ': expected ' +
- (b.options.length > 1 ? 'one of ' + b.options.join(',') : b.options[0])
- );
- },
- duration: function(a, b, c) {
- if (j.isNumeric(b) || j.isInterval(b)) return b;
- throw new TypeError(
- 'Invalid ' +
- c +
- ': expected a number or interval (an integer followed by one of M, w, d, h, m, s, y or ms).'
- );
- },
- list: function(a, b, c) {
- switch (d(b)) {
- case 'number':
- case 'boolean':
- return '' + b;
- case 'string':
- b = h(b);
- case 'object':
- if (i.isArray(b)) return b.join(',');
- default:
- throw new TypeError(
- 'Invalid ' + c + ': expected be a comma separated list, array, number or string.'
- );
- }
- },
- boolean: function(a, b) {
- return (b = i.isString(b) ? b.toLowerCase() : b), 'no' !== b && 'off' !== b && !!b;
- },
- number: function(a, b, c) {
- if (j.isNumeric(b)) return 1 * b;
- throw new TypeError('Invalid ' + c + ': expected a number.');
- },
- string: function(a, b, c) {
- switch (d(b)) {
- case 'number':
- case 'string':
- return '' + b;
- default:
- throw new TypeError('Invalid ' + c + ': expected a string.');
- }
- },
- time: function(a, b, c) {
- if ('string' == typeof b) return b;
- if (j.isNumeric(b)) return '' + b;
- if (b instanceof Date) return '' + b.getTime();
- throw new TypeError('Invalid ' + c + ': expected some sort of time.');
- }
- };
- },
- function(a, b, c) {
- (function(b, d) {
- function e(a) {
- return (e =
- 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
- ? function(a) {
- return typeof a;
- }
- : function(a) {
- return a &&
- 'function' == typeof Symbol &&
- a.constructor === Symbol &&
- a !== Symbol.prototype
- ? 'symbol'
- : typeof a;
- })(a);
- }
- function f(a, b, c) {
- return function(d) {
- for (var e, f, g, h, i = 0, j = [], k = ''; i < d.length; i++)
- (e = d.charCodeAt(i)),
- (f = d.charAt(i)),
- (h = (e >= 97 && e <= 122) || (e >= 48 && e <= 57)),
- (g = e >= 65 && e <= 90),
- (!g && h) || (k.length && j.push(k), (k = '')),
- (g || h) &&
- (h && k.length
- ? (k += f)
- : (k =
- (!j.length && a) || (j.length && b)
- ? f.toUpperCase()
- : f.toLowerCase()));
- return (
- k.length && j.push(k), j.length && '_' === d.charAt(0) && (j[0] = '_' + j[0]), j.join(c)
- );
- };
- }
- var g = c(0),
- h = c(30),
- i = {};
- (i.inherits = h.inherits),
- (i.isArrayOfStrings = function(a) {
- return g.isArray(a) && g.every(a.slice(0, 10), g.isString);
- }),
- (i.ucfirst = function(a) {
- return a[0].toUpperCase() + a.substring(1).toLowerCase();
- }),
- (i.studlyCase = f(!0, !0, '')),
- (i.camelCase = f(!1, !0, '')),
- (i.snakeCase = f(!1, !1, '_')),
- (i.toUpperString = function(a) {
- return a ? 'string' != typeof a && (a = a.toString()) : (a = ''), a.toUpperCase();
- }),
- (i.isNumeric = function(a) {
- return 'object' !== e(a) && a - parseFloat(a) >= 0;
- });
- var j = /^(\d+(?:\.\d+)?)(M|w|d|h|m|s|y|ms)$/;
- (i.isInterval = function(a) {
- return !(!a.match || !a.match(j));
- }),
- (i.repeat = function(a, b) {
- return new Array(b + 1).join(a);
- }),
- (i.applyArgs = function(a, b, c, d) {
- switch (((d = d || 0), c.length - d)) {
- case 0:
- return a.call(b);
- case 1:
- return a.call(b, c[0 + d]);
- case 2:
- return a.call(b, c[0 + d], c[1 + d]);
- case 3:
- return a.call(b, c[0 + d], c[1 + d], c[2 + d]);
- case 4:
- return a.call(b, c[0 + d], c[1 + d], c[2 + d], c[3 + d]);
- case 5:
- return a.call(b, c[0 + d], c[1 + d], c[2 + d], c[3 + d], c[4 + d]);
- default:
- return a.apply(b, Array.prototype.slice.call(c, d));
- }
- }),
- (i.nextTick = function(a) {
- b.nextTick(g.bindKey(i, 'applyArgs', a, null, arguments, 1));
- }),
- (i.handler = function(a) {
- return (a._provideBound = !0), a;
- }),
- (i.makeBoundMethods = function(a) {
- a.bound = {};
- for (var b in a)
- 'function' == typeof a[b] &&
- a[b]._provideBound === !0 &&
- (a.bound[b] = g.bind(a[b], a));
- }),
- (i.funcEnum = function(a, b, c, d) {
- var f = a[b];
- switch (e(f)) {
- case 'undefined':
- return c[d];
- case 'function':
- return f;
- case 'string':
- if (c.hasOwnProperty(f)) return c[f];
- default:
- var h = 'Invalid ' + b + ' "' + f + '", expected a function';
- switch (g.size(c)) {
- case 0:
- break;
- case 1:
- h += ' or ' + g.keys(c)[0];
- break;
- default:
- h += ' or one of ' + g.keys(c).join(', ');
- }
- throw new TypeError(h);
- }
- }),
- (i.createArray = function(a, b) {
- b = 'function' == typeof b ? b : g.identity;
- var c,
- d,
- e = [];
- for (g.isArray(a) || (a = [a]), d = 0; d < a.length; d++) {
- if (((c = b(a[d])), void 0 === c)) return !1;
- e.push(c);
- }
- return e;
- }),
- (i.getUnwrittenFromStream = function(a) {
- var b = i.getStreamWriteBuffer(a);
- if (b) {
- var c = '';
- return b.length
- ? (g.each(b, function(a) {
- if (a.chunk) c += '' + a.chunk;
- else {
- if (!g.isArray(a) || ('string' != typeof a[0] && !d.isBuffer(a[0])))
- return !1;
- c += '' + a[0];
- }
- }),
- c)
- : c;
- }
- }),
- (i.getStreamWriteBuffer = function(a) {
- if (a && a._writableState) {
- var b = a._writableState;
- return b.getBuffer ? b.getBuffer() : b.buffer ? b.buffer : void 0;
- }
- }),
- (i.clearWriteStreamBuffer = function(a) {
- var b = i.getStreamWriteBuffer(a);
- return b && b.splice(0);
- }),
- (i.now = function() {
- return 'function' == typeof Date.now ? Date.now() : new Date().getTime();
- }),
- (a.exports = i);
- }.call(b, c(3), c(12).Buffer));
- },
- function(a, b) {
- function c() {
- throw new Error('setTimeout has not been defined');
- }
- function d() {
- throw new Error('clearTimeout has not been defined');
- }
- function e(a) {
- if (k === setTimeout) return setTimeout(a, 0);
- if ((k === c || !k) && setTimeout) return (k = setTimeout), setTimeout(a, 0);
- try {
- return k(a, 0);
- } catch (b) {
- try {
- return k.call(null, a, 0);
- } catch (b) {
- return k.call(this, a, 0);
- }
- }
- }
- function f(a) {
- if (l === clearTimeout) return clearTimeout(a);
- if ((l === d || !l) && clearTimeout) return (l = clearTimeout), clearTimeout(a);
- try {
- return l(a);
- } catch (b) {
- try {
- return l.call(null, a);
- } catch (b) {
- return l.call(this, a);
- }
- }
- }
- function g() {
- p && n && ((p = !1), n.length ? (o = n.concat(o)) : (q = -1), o.length && h());
- }
- function h() {
- if (!p) {
- var a = e(g);
- p = !0;
- for (var b = o.length; b; ) {
- for (n = o, o = []; ++q < b; ) n && n[q].run();
- (q = -1), (b = o.length);
- }
- (n = null), (p = !1), f(a);
- }
- }
- function i(a, b) {
- (this.fun = a), (this.array = b);
- }
- function j() {}
- var k,
- l,
- m = (a.exports = {});
- !(function() {
- try {
- k = 'function' == typeof setTimeout ? setTimeout : c;
- } catch (a) {
- k = c;
- }
- try {
- l = 'function' == typeof clearTimeout ? clearTimeout : d;
- } catch (a) {
- l = d;
- }
- })();
- var n,
- o = [],
- p = !1,
- q = -1;
- (m.nextTick = function(a) {
- var b = new Array(arguments.length - 1);
- if (arguments.length > 1) for (var c = 1; c < arguments.length; c++) b[c - 1] = arguments[c];
- o.push(new i(a, b)), 1 !== o.length || p || e(h);
- }),
- (i.prototype.run = function() {
- this.fun.apply(null, this.array);
- }),
- (m.title = 'browser'),
- (m.browser = !0),
- (m.env = {}),
- (m.argv = []),
- (m.version = ''),
- (m.versions = {}),
- (m.on = j),
- (m.addListener = j),
- (m.once = j),
- (m.off = j),
- (m.removeListener = j),
- (m.removeAllListeners = j),
- (m.emit = j),
- (m.prependListener = j),
- (m.prependOnceListener = j),
- (m.listeners = function(a) {
- return [];
- }),
- (m.binding = function(a) {
- throw new Error('process.binding is not supported');
- }),
- (m.cwd = function() {
- return '/';
- }),
- (m.chdir = function(a) {
- throw new Error('process.chdir is not supported');
- }),
- (m.umask = function() {
- return 0;
- });
- },
- function(a, b, c) {
- function d(a) {
- return (d =
- 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
- ? function(a) {
- return typeof a;
- }
- : function(a) {
- return a &&
- 'function' == typeof Symbol &&
- a.constructor === Symbol &&
- a !== Symbol.prototype
- ? 'symbol'
- : typeof a;
- })(a);
- }
- function e(a, b, c) {
- (this.message = a),
- Error.call(this, this.message),
- j ? Error.captureStackTrace(this, b) : k ? (this.stack = new Error().stack) : (this.stack = ''),
- c &&
- (g.assign(this, c),
- (this.toString = function() {
- return a + ' :: ' + JSON.stringify(c);
- }),
- (this.toJSON = function() {
- return g.assign({ msg: a }, c);
- }));
- }
- function f(a) {
- var b = [];
- return (function a(c) {
- if ('object' !== d(c)) return JSON.stringify(c);
- if (b.indexOf(c) > -1) return '[circular]';
- b.push(c);
- try {
- return (
- '{ ' +
- g
- .map(c, function(b, c) {
- return c + '=' + a(b);
- })
- .join(' & ') +
- ' }'
- );
- } finally {
- b.pop();
- }
- })(a);
- }
- var g = c(0),
- h = c(2),
- i = a.exports,
- j = 'function' == typeof Error.captureStackTrace,
- k = !!new Error().stack;
- (i._Abstract = e),
- h.inherits(e, Error),
- (i.ConnectionFault = function(a) {
- e.call(this, a || 'Connection Failure', i.ConnectionFault);
- }),
- h.inherits(i.ConnectionFault, e),
- (i.NoConnections = function(a) {
- e.call(this, a || 'No Living connections', i.NoConnections);
- }),
- h.inherits(i.NoConnections, e),
- (i.Generic = function(a, b) {
- e.call(this, a || 'Generic Error', i.Generic, b);
- }),
- h.inherits(i.Generic, e),
- (i.RequestTimeout = function(a) {
- e.call(this, a || 'Request Timeout', i.RequestTimeout);
- }),
- h.inherits(i.RequestTimeout, e),
- (i.Serialization = function(a) {
- e.call(this, a || 'Unable to parse/serialize body', i.Serialization);
- }),
- h.inherits(i.Serialization, e),
- (i.RequestTypeError = function(a) {
- e.call(this, 'Cross-domain AJAX requests ' + a + ' are not supported', i.RequestTypeError);
- }),
- h.inherits(i.RequestTypeError, e);
- var l = [
- [300, 'Multiple Choices'],
- [301, 'Moved Permanently'],
- [302, 'Found'],
- [303, 'See Other'],
- [304, 'Not Modified'],
- [305, 'Use Proxy'],
- [307, 'Temporary Redirect'],
- [308, 'Permanent Redirect'],
- [400, 'Bad Request'],
- [401, 'Authentication Exception'],
- [402, 'Payment Required'],
- [403, ['Authorization Exception', 'Forbidden']],
- [404, 'Not Found'],
- [405, 'Method Not Allowed'],
- [406, 'Not Acceptable'],
- [407, 'Proxy Authentication Required'],
- [408, 'Request Timeout'],
- [409, 'Conflict'],
- [410, 'Gone'],
- [411, 'Length Required'],
- [412, 'Precondition Failed'],
- [413, 'Request Entity Too Large'],
- [414, 'Request URIToo Long'],
- [415, 'Unsupported Media Type'],
- [416, 'Requested Range Not Satisfiable'],
- [417, 'Expectation Failed'],
- [418, 'Im ATeapot'],
- [421, 'Too Many Connections From This IP'],
- [426, 'Upgrade Required'],
- [429, 'Too Many Requests'],
- [450, 'Blocked By Windows Parental Controls'],
- [494, 'Request Header Too Large'],
- [497, 'HTTPTo HTTPS'],
- [499, 'Client Closed Request'],
- [500, 'Internal Server Error'],
- [501, 'Not Implemented'],
- [502, 'Bad Gateway'],
- [503, 'Service Unavailable'],
- [504, 'Gateway Timeout'],
- [505, 'HTTPVersion Not Supported'],
- [506, 'Variant Also Negotiates'],
- [510, 'Not Extended']
- ];
- g.each(l, function(a) {
- function b(a, d) {
- (this.status = c), (this.displayName = l);
- var h = null;
- return (
- g.isPlainObject(a) && ((h = a), (a = null)),
- h
- ? ((a = [].concat(h.root_cause || []).reduce(function(a, b) {
- a && (a += ' (and) '), (a += '[' + b.type + '] ' + b.reason);
- var c = g.omit(b, ['type', 'reason']);
- return g.size(c) && (a += ', with ' + f(c)), a;
- }, '')),
- a || (h.type && (a += '[' + h.type + '] '), h.reason && (a += h.reason)),
- e.call(this, a || k, b, d),
- this)
- : (e.call(this, a || k, b, d), this)
- );
- }
- var c = a[0],
- d = a[1],
- j = [].concat(d, c),
- k = j[0],
- l = h.studlyCase(k);
- (j = g.uniq(j.concat(l))),
- h.inherits(b, e),
- j.forEach(function(a) {
- i[a] = b;
- });
- });
- },
- function(a, b, c) {
- (function(b) {
- function d(a) {
- return (d =
- 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
- ? function(a) {
- return typeof a;
- }
- : function(a) {
- return a &&
- 'function' == typeof Symbol &&
- a.constructor === Symbol &&
- a !== Symbol.prototype
- ? 'symbol'
- : typeof a;
- })(a);
- }
- function e(a) {
- if (((a = a || {}), a.log)) {
- var b, c;
- if (
- ((c = g.isArrayOfStrings(a.log)
- ? [{ levels: a.log }]
- : g.createArray(a.log, function(a) {
- return f.isPlainObject(a) ? a : 'string' == typeof a ? { level: a } : void 0;
- })),
- !c)
- )
- throw new TypeError(
- 'Invalid logging output config. Expected either a log level, array of log levels, a logger config object, or an array of logger config objects.'
- );
- for (b = 0; b < c.length; b++) this.addOutput(c[b]);
- }
- }
- var f = c(0),
- g = c(2),
- h = c(13),
- i = c(15).EventEmitter;
- g.inherits(e, i),
- (e.loggers = c(16)),
- (e.prototype.close = function() {
- this.emit('closing'),
- this.listenerCount() &&
- (console.error(
- 'Something is still listening for log events, but the logger is closing.'
- ),
- this.clearAllListeners());
- }),
- i.prototype.listenerCount
- ? (e.prototype.listenerCount = i.prototype.listenerCount)
- : i.listenerCount
- ? (e.prototype.listenerCount = function(a) {
- return i.listenerCount(this, a);
- })
- : (e.prototype.listenerCount = function(a) {
- return this.listeners(a).length;
- }),
- (e.levels = ['error', 'warning', 'info', 'debug', 'trace']),
- (e.parseLevels = function(a) {
- switch (d(a)) {
- case 'string':
- var b = f.indexOf(e.levels, a);
- if (b >= 0) return e.levels.slice(0, b + 1);
- case 'object':
- if (f.isArray(a)) {
- var c = f.intersection(a, e.levels);
- if (c.length === a.length) return c;
- }
- default:
- throw new TypeError(
- 'invalid logging level ' +
- a +
- '. Expected zero or more of these options: ' +
- e.levels.join(', ')
- );
- }
- }),
- (e.join = function(a) {
- return f
- .map(a, function(a) {
- return f.isPlainObject(a) ? JSON.stringify(a, null, 2) + '\n' : a.toString();
- })
- .join(' ');
- }),
- (e.prototype.addOutput = function(a) {
- (a = a || {}), (a.levels = e.parseLevels(a.levels || a.level || 'warning')), delete a.level;
- var c = g.funcEnum(a, 'type', e.loggers, b.browser ? 'console' : 'stdio');
- return new c(this, a);
- }),
- (e.prototype.error = function(a) {
- if (this.listenerCount('error'))
- return this.emit('error', a instanceof Error ? a : new Error(a));
- }),
- (e.prototype.warning = function() {
- if (this.listenerCount('warning')) return this.emit('warning', e.join(arguments));
- }),
- (e.prototype.info = function() {
- if (this.listenerCount('info')) return this.emit('info', e.join(arguments));
- }),
- (e.prototype.debug = function() {
- if (this.listenerCount('debug')) return this.emit('debug', e.join(arguments));
- }),
- (e.prototype.trace = function(a, b, c, d, f) {
- if (this.listenerCount('trace'))
- return this.emit('trace', e.normalizeTraceArgs(a, b, c, d, f));
- }),
- (e.normalizeTraceArgs = function(a, b, c, d, e) {
- return (
- 'string' == typeof b
- ? (b = h.parse(b, !0, !0))
- : ((b = f.clone(b)),
- b.path && (b.query = h.parse(b.path, !0, !1).query),
- !b.pathname && b.path && (b.pathname = b.path.split('?').shift())),
- delete b.auth,
- { method: a, url: h.format(b), body: c, status: e, response: d }
- );
- }),
- (a.exports = e);
- }.call(b, c(3)));
- },
- function(a, b, c) {
- (function(b) {
- function d(a) {
- var b = this;
- a = b._config = a || {};
- var g = 'function' == typeof a.log ? a.log : c(5);
- a.log = b.log = new g(a);
- var k = f.funcEnum(a, 'connectionPool', d.connectionPools, 'main');
- b.connectionPool = new k(a);
- var l = f.funcEnum(a, 'serializer', d.serializers, 'json');
- (b.serializer = new l(a)),
- (b.nodesToHostCallback = f.funcEnum(
- a,
- 'nodesToHostCallback',
- d.nodesToHostCallbacks,
- 'main'
- )),
- (b.maxRetries = a.hasOwnProperty('maxRetries') ? a.maxRetries : 3),
- (b.sniffEndpoint = a.hasOwnProperty('sniffEndpoint')
- ? a.sniffEndpoint
- : '/_nodes/_all/http'),
- (b.requestTimeout = a.hasOwnProperty('requestTimeout') ? a.requestTimeout : 3e4),
- (b.pingTimeout = a.hasOwnProperty('pingTimeout') ? a.pingTimeout : 3e3),
- a.hasOwnProperty('defer') && (b.defer = a.defer);
- var m = !a.hasOwnProperty('randomizeHosts') || !!a.randomizeHosts;
- if ((a.host && (a.hosts = a.host), a.hosts)) {
- var n = f.createArray(a.hosts, function(a) {
- if (e.isPlainObject(a) || e.isString(a) || a instanceof h) return a;
- });
- if (!n)
- throw new TypeError(
- 'Invalid hosts config. Expected a URL, an array of urls, a host config object, or an array of host config objects.'
- );
- m && (n = e.shuffle(n)), b.setHosts(n);
- }
- a.hasOwnProperty('sniffedNodesProtocol')
- ? (b.sniffedNodesProtocol = a.sniffedNodesProtocol || null)
- : (b.sniffedNodesProtocol = j(b.connectionPool.getAllHosts()) || null),
- a.hasOwnProperty('sniffedNodesFilterPath')
- ? (b.sniffedNodesFilterPath = a.sniffedNodesFilterPath)
- : (b.sniffedNodesFilterPath = [
- 'nodes.*.http.publish_address',
- 'nodes.*.name',
- 'nodes.*.hostname',
- 'nodes.*.host',
- 'nodes.*.version'
- ].join(',')),
- a.sniffOnStart && b.sniff(),
- a.sniffInterval &&
- b._timeout(function c() {
- b.sniff(), b._timeout(c, a.sniffInterval);
- }, a.sniffInterval),
- a.sniffOnConnectionFault && i(b);
- }
- a.exports = d;
- var e = c(0),
- f = c(2),
- g = c(4),
- h = c(8),
- i = c(37),
- j = c(38);
- (d.connectionPools = { main: c(9) }),
- (d.serializers = c(21)),
- (d.nodesToHostCallbacks = { main: c(23) }),
- (d.prototype.defer = function() {
- if ('undefined' == typeof Promise)
- throw new Error(
- 'No Promise implementation found. In order for elasticsearch-js to create promises either specify the `defer` configuration or include a global Promise shim'
- );
- var a = {};
- return (
- (a.promise = new Promise(function(b, c) {
- (a.resolve = b), (a.reject = c);
- })),
- a
- );
- }),
- (d.prototype.request = function(a, c) {
- function d(b, c) {
- s ||
- (b
- ? i(b)
- : c
- ? ((k = c), (l = k.request(a.req, h)))
- : (p.log.warning('No living connections'), i(new g.NoConnections())));
- }
- function h(b, c, e, f) {
- if (!s) {
- if (((l = void 0), b instanceof g.RequestTypeError))
- return (
- p.log.error('Connection refused to execute the request', b),
- void i(b, c, e, f)
- );
- if (b) {
- k.setStatus('dead');
- var h = b.message || '';
- (h =
- '\n' +
- a.req.method +
- ' ' +
- k.host.makeUrl(a.req) +
- (h.length ? ' => ' : '') +
- h),
- q
- ? (q--,
- p.log.error('Request error, retrying' + h),
- p.connectionPool.select(d))
- : (p.log.error('Request complete with error' + h),
- i(new g.ConnectionFault(b)));
- } else p.log.debug('Request complete'), i(void 0, c, e, f);
- }
- }
- function i(b, d, f, h) {
- if (!s) {
- p._timeout(m);
- var i,
- j = !h || (h['content-type'] && ~h['content-type'].indexOf('application/json'));
- if (
- (!b &&
- d &&
- (j
- ? ((i = p.serializer.deserialize(d)),
- null == i && ((b = new g.Serialization()), (i = d)))
- : (i = d)),
- (!b || b instanceof g.Serialization) &&
- (f < 200 || f >= 300) &&
- (!a.ignore || !e.includes(a.ignore, f)))
- ) {
- var k = e.pick(a.req, ['path', 'query', 'body']);
- (k.statusCode = f),
- (k.response = d),
- 401 === f &&
- h &&
- h['www-authenticate'] &&
- (k.wwwAuthenticateDirective = h['www-authenticate']),
- (b = g[f] ? new g[f](i && i.error, k) : new g.Generic('unknown error', k));
- }
- a.castExists &&
- (b && b instanceof g.NotFound ? ((i = !1), (b = void 0)) : (i = !b)),
- 'function' == typeof c
- ? b
- ? c(b, i, f)
- : c(void 0, i, f)
- : b
- ? ((b.body = i), (b.status = f), o.reject(b))
- : o.resolve(i);
- }
- }
- function j() {
- s || ((s = !0), (q = 0), p._timeout(m), 'function' == typeof l && l());
- }
- var k,
- l,
- m,
- n,
- o,
- p = this,
- q = this.maxRetries,
- r = this.requestTimeout,
- s = !1,
- t = a.body,
- u = a.headers
- ? e.transform(a.headers, function(a, b, c) {
- a[String(c).toLowerCase()] = b;
- })
- : {};
- if (
- (p.log.debug('starting request', a),
- 'function' == typeof c
- ? (b.domain && (c = b.domain.bind(c)), (n = { abort: j }))
- : ((o = this.defer()), (n = o.promise), (n.abort = j)),
- t && 'GET' === a.method)
- )
- return f.nextTick(i, new TypeError('Body can not be sent with method "GET"')), n;
- if (t) {
- var v = p.serializer,
- w = v[a.bulkBody ? 'bulkBody' : 'serialize'];
- (t = w.call(v, t)), u['content-type'] || (u['content-type'] = w.contentType);
- }
- a.hasOwnProperty('maxRetries') && (q = a.maxRetries),
- a.hasOwnProperty('requestTimeout') && (r = a.requestTimeout);
- var x = '/' === a.path && 'HEAD' === a.method;
- if (x) {
- var y = a.hasOwnProperty('requestTimeout') && a.requestTimeout;
- r = y || this.pingTimeout;
- }
- return (
- (a.req = {
- method: a.method,
- path: a.path || '/',
- query: a.query,
- body: t,
- headers: u
- }),
- r &&
- r !== 1 / 0 &&
- (m = this._timeout(function() {
- i(new g.RequestTimeout('Request Timeout after ' + r + 'ms')), j();
- }, r)),
- k ? d(void 0, k) : p.connectionPool.select(d),
- n
- );
- }),
- (d.prototype._timeout = function(a, b) {
- if (!this.closed) {
- var c,
- d = this._timers || (this._timers = []);
- if (('function' != typeof a && ((c = a), (a = void 0)), a))
- return (
- (c = setTimeout(function() {
- e.pull(d, c), a();
- }, b)),
- d.push(c),
- c
- );
- if (c) {
- clearTimeout(c);
- var f = this._timers.indexOf(c);
- f !== -1 && this._timers.splice(f, 1);
- }
- }
- }),
- (d.prototype.sniff = function(a) {
- var b = this,
- c = this.nodesToHostCallback,
- d = this.log,
- f = this.sniffedNodesProtocol,
- g = this.sniffedNodesFilterPath;
- (a = 'function' == typeof a ? a : e.noop),
- this.request(
- { path: this.sniffEndpoint, query: { filter_path: g }, method: 'GET' },
- function(g, h, i) {
- if (!g && h && h.nodes) {
- var j;
- try {
- j = c(h.nodes);
- } catch (a) {
- return void d.error(
- new Error(
- 'Unable to convert node list from ' +
- b.sniffEndpoint +
- ' to hosts durring sniff. Encountered error:\n' +
- (a.stack || a.message)
- )
- );
- }
- e.forEach(j, function(a) {
- f && (a.protocol = f);
- }),
- b.setHosts(j);
- }
- a(g, h, i);
- }
- );
- }),
- (d.prototype.setHosts = function(a) {
- var b = this._config;
- this.connectionPool.setHosts(
- e.map(a, function(a) {
- return a instanceof h ? a : new h(a, b);
- })
- );
- }),
- (d.prototype.close = function() {
- this.log.close(),
- (this.closed = !0),
- e.each(this._timers, clearTimeout),
- (this._timers = null),
- this.connectionPool.close();
- });
- }.call(b, c(3)));
- },
- function(a, b) {
- var c;
- c = (function() {
- return this;
- })();
- try {
- c = c || Function('return this')() || (0, eval)('this');
- } catch (a) {
- 'object' == typeof window && (c = window);
- }
- a.exports = c;
- },
- function(a, b, c) {
- (function(b) {
- function d(a, b) {
- if (
- ((a = i.clone(a || {})),
- (b = b || {}),
- (this.protocol = 'http'),
- (this.host = 'localhost'),
- (this.path = ''),
- (this.port = 9200),
- (this.query = null),
- (this.headers = null),
- (this.suggestCompression = !!b.suggestCompression),
- (this.ssl = i.defaults({}, a.ssl || {}, b.ssl || {}, o)),
- 'string' == typeof a)
- ) {
- var c = a.indexOf(':'),
- e = a.indexOf('/'),
- p = e === -1,
- q = c > -1 && p,
- r = !q && c < e;
- if (
- ((p || q || r) && !k.test(a) && (a = l + '//' + a),
- (a = i.pick(g.parse(a, !1, !0), m)),
- !a.port)
- ) {
- var s = a.protocol || 'http';
- ':' === s.charAt(s.length - 1) && (s = s.substring(0, s.length - 1)),
- d.defaultPorts[s] && (a.port = d.defaultPorts[s]);
- }
- }
- i.isObject(a)
- ? i.each(n, function(b) {
- var c = b + 'name';
- a[c] && a[b] ? 0 === a[b].indexOf(a[c]) && (a[b] = a[c]) : a[c] && (a[b] = a[c]),
- delete a[c];
- })
- : (a = {}),
- !a.auth && b.httpAuth && (a.auth = b.httpAuth),
- a.auth &&
- ((a.headers = a.headers || {}),
- (a.headers.Authorization = 'Basic ' + f(a.auth)),
- delete a.auth),
- i.forOwn(
- a,
- i.bind(function(a, b) {
- null != a && (this[b] = i.clone(a));
- }, this)
- ),
- null === this.query
- ? (this.query = {})
- : i.isPlainObject(this.query) || (this.query = h.parse(this.query)),
- j.isNumeric(this.port) ? (this.port = parseInt(this.port, 10)) : (this.port = 9200),
- '/' === this.path
- ? (this.path = '')
- : this.path && '/' !== this.path.charAt(0) && (this.path = '/' + (this.path || '')),
- ':' === this.protocol.substr(-1) &&
- (this.protocol = this.protocol.substring(0, this.protocol.length - 1));
- }
- function e(a, b) {
- return function(c) {
- b && (c = b.call(this, c));
- var d = this[a];
- return d || c ? (c && (d = i.assign({}, d, c)), i.size(d) ? d : null) : null;
- };
- }
- a.exports = d;
- var f,
- g = c(13),
- h = c(14),
- i = c(0),
- j = c(2),
- k = /^([a-z]+:)?\/\//,
- l = 'http:';
- 'undefined' != typeof window &&
- 'undefined' != typeof window.location &&
- ((l = window.location.protocol), (f = window.btoa)),
- (f =
- f ||
- function(a) {
- return new b(a, 'utf8').toString('base64');
- });
- var m = ['protocol', 'hostname', 'pathname', 'port', 'auth', 'query'],
- n = ['host', 'path'],
- o = {
- pfx: null,
- key: null,
- passphrase: null,
- cert: null,
- ca: null,
- ciphers: null,
- rejectUnauthorized: !1,
- secureProtocol: null
- };
- (d.defaultPorts = { http: 80, https: 443 }),
- (d.prototype.makeUrl = function(a) {
- a = a || {};
- var b = '';
- this.port !== d.defaultPorts[this.protocol] && (b = ':' + this.port);
- var c = '' + (this.path || '') + (a.path || '');
- '/' !== c.charAt(0) && (c = '/' + c);
- var e = h.stringify(this.getQuery(a.query));
- return this.host
- ? this.protocol + '://' + this.host + b + c + (e ? '?' + e : '')
- : c + (e ? '?' + e : '');
- }),
- (d.prototype.getHeaders = e('headers', function(a) {
- return this.suggestCompression
- ? i.defaults(a || {}, { 'Accept-Encoding': 'gzip,deflate' })
- : a;
- })),
- (d.prototype.getQuery = e('query', function(a) {
- return 'string' == typeof a ? h.parse(a) : a;
- })),
- (d.prototype.toString = function() {
- return this.makeUrl();
- });
- }.call(b, c(12).Buffer));
- },
- function(a, b, c) {
- (function(b) {
- function d(a) {
- (a = a || {}),
- f.makeBoundMethods(this),
- a.log ? (this.log = a.log) : ((this.log = new g()), (a.log = this.log)),
- (this._config = a),
- (this.selector = f.funcEnum(a, 'selector', d.selectors, d.defaultSelector)),
- (this.Connection = f.funcEnum(
- a,
- 'connectionClass',
- d.connectionClasses,
- d.defaultConnectionClass
- )),
- (this.deadTimeout = a.hasOwnProperty('deadTimeout') ? a.deadTimeout : 6e4),
- (this.maxDeadTimeout = a.hasOwnProperty('maxDeadTimeout') ? a.maxDeadTimeout : 18e5),
- (this.calcDeadTimeout = f.funcEnum(
- a,
- 'calcDeadTimeout',
- d.calcDeadTimeoutOptions,
- 'exponential'
- )),
- (this.index = {}),
- (this._conns = { alive: [], dead: [] }),
- (this._timeouts = []);
- }
- a.exports = d;
- var e = c(0),
- f = c(2),
- g = c(5);
- (d.selectors = c(18)),
- (d.defaultSelector = 'roundRobin'),
- (d.connectionClasses = c(19)),
- (d.defaultConnectionClass = d.connectionClasses._default),
- delete d.connectionClasses._default,
- (d.calcDeadTimeoutOptions = {
- flat: function(a, b) {
- return b;
- },
- exponential: function(a, b) {
- return Math.min(2 * b * Math.pow(2, 0.5 * a - 1), this.maxDeadTimeout);
- }
- }),
- (d.prototype.select = function(a) {
- if (this._conns.alive.length)
- if (this.selector.length > 1) this.selector(this._conns.alive, a);
- else
- try {
- f.nextTick(a, void 0, this.selector(this._conns.alive));
- } catch (b) {
- a(b);
- }
- else this._timeouts.length ? this._selectDeadConnection(a) : f.nextTick(a, void 0);
- }),
- (d.prototype.onStatusSet = f.handler(function(a, b, c) {
- var d,
- f = 'dead' === a,
- g = f && 'dead' === b,
- h = !f && 'dead' === b,
- i = b === a,
- j = this._conns[b],
- k = this._conns[a];
- return (
- !(!i || f) ||
- (j !== k &&
- (e.isArray(j) && ((d = j.indexOf(c)), d !== -1 && j.splice(d, 1)),
- e.isArray(k) && ((d = k.indexOf(c)), d === -1 && k.push(c))),
- f && this._onConnectionDied(c, g),
- void (h && this._onConnectionRevived(c)))
- );
- })),
- (d.prototype._onConnectionRevived = function(a) {
- for (var b, c = 0; c < this._timeouts.length; c++)
- if (this._timeouts[c].conn === a) {
- (b = this._timeouts[c]), b.id && clearTimeout(b.id), this._timeouts.splice(c, 1);
- break;
- }
- }),
- (d.prototype._onConnectionDied = function(a, b) {
- var c;
- if (b) {
- for (var d = 0; d < this._timeouts.length; d++)
- if (this._timeouts[d].conn === a) {
- c = this._timeouts[d];
- break;
- }
- } else
- (c = {
- conn: a,
- attempt: 0,
- revive: function(b) {
- c.attempt++,
- a.ping(function(c) {
- a.setStatus(c ? 'dead' : 'alive'), b && 'function' == typeof b && b(c);
- });
- }
- }),
- this._timeouts.push(c);
- c.id && clearTimeout(c.id);
- var e = this.calcDeadTimeout(c.attempt, this.deadTimeout);
- (c.id = setTimeout(c.revive, e)), (c.runAt = f.now() + e);
- }),
- (d.prototype._selectDeadConnection = function(a) {
- var c = e.sortBy(this._timeouts, 'runAt'),
- d = this.log;
- b.nextTick(function e() {
- var f = c.shift();
- return f
- ? f.conn
- ? void ('dead' === f.conn.status
- ? f.revive(function(c) {
- c
- ? (d.warning('Unable to revive connection: ' + f.conn.id),
- b.nextTick(e))
- : a(void 0, f.conn);
- })
- : a(void 0, f.conn))
- : void e()
- : void a(void 0);
- });
- }),
- (d.prototype.getConnections = function(a, b) {
- var c;
- return (
- (c = a ? this._conns[a] : this._conns[this._conns.alive.length ? 'alive' : 'dead']),
- null == b ? c.slice(0) : e.shuffle(c).slice(0, b)
- );
- }),
- (d.prototype.addConnection = function(a) {
- a.id || (a.id = a.host.toString()),
- this.index[a.id] ||
- (this.log.info('Adding connection to', a.id),
- (this.index[a.id] = a),
- a.on('status set', this.bound.onStatusSet),
- a.setStatus('alive'));
- }),
- (d.prototype.removeConnection = function(a) {
- a.id || (a.id = a.host.toString()),
- this.index[a.id] &&
- (delete this.index[a.id],
- a.setStatus('closed'),
- a.removeListener('status set', this.bound.onStatusSet));
- }),
- (d.prototype.setHosts = function(a) {
- var b,
- c,
- d,
- f,
- g = e.clone(this.index);
- for (c = 0; c < a.length; c++)
- (f = a[c]),
- (d = f.toString()),
- this.index[d]
- ? delete g[d]
- : ((b = new this.Connection(f, this._config)),
- (b.id = d),
- this.addConnection(b));
- var h = e.keys(g);
- for (c = 0; c < h.length; c++) this.removeConnection(this.index[h[c]]);
- }),
- (d.prototype.getAllHosts = function() {
- return e.values(this.index).map(function(a) {
- return a.host;
- });
- }),
- (d.prototype.close = function() {
- this.setHosts([]);
- }),
- (d.prototype.empty = d.prototype.close);
- }.call(b, c(3)));
- },
- function(a, b, c) {
- function d(a) {
- function b() {
- a.hasOwnProperty('log') || (a.log = 'warning'),
- a.hosts || a.host || (a.host = 'http://localhost:9200'),
- (this.close = function() {
- this.transport.close();
- }),
- (this.transport = new e(a)),
- g.each(
- b.prototype,
- g.bind(function(a, b) {
- a.prototype instanceof f.ApiNamespace && (this[b] = new a(this.transport, this));
- }, this)
- ),
- delete this._namespaces;
- }
- if (((a = a || {}), a.__reused))
- throw new Error(
- 'Do not reuse objects to configure the elasticsearch Client class: https://github.com/elasticsearch/elasticsearch-js/issues/33'
- );
- (a.__reused = !0),
- (b.prototype = h.funcEnum(a, 'apiVersion', d.apis, '_default')),
- a.sniffEndpoint || b.prototype !== d.apis['0.90'] || (a.sniffEndpoint = '/_cluster/nodes');
- var i = b;
- return (
- a.plugins &&
- ((i.prototype = g.cloneDeep(i.prototype)),
- g.each(a.plugins, function(b) {
- i =
- b(i, a, {
- apis: c(24),
- connectors: c(19),
- loggers: c(16),
- selectors: c(18),
- serializers: c(21),
- Client: c(10),
- clientAction: f,
- Connection: c(20),
- ConnectionPool: c(9),
- Errors: c(4),
- Host: c(8),
- Log: c(5),
- Logger: c(17),
- NodesToHost: c(23),
- Transport: c(6)
- }) || i;
- })),
- new i()
- );
- }
- a.exports = d;
- var e = c(6),
- f = c(1),
- g = c(0),
- h = c(2);
- d.apis = c(24);
- },
- function(a, b) {
- a.exports = function(a) {
- return (
- a.webpackPolyfill ||
- ((a.deprecate = function() {}),
- (a.paths = []),
- a.children || (a.children = []),
- Object.defineProperty(a, 'loaded', {
- enumerable: !0,
- get: function() {
- return a.l;
- }
- }),
- Object.defineProperty(a, 'id', {
- enumerable: !0,
- get: function() {
- return a.i;
- }
- }),
- (a.webpackPolyfill = 1)),
- a
- );
- };
- },
- function(a, b, c) {
- 'use strict';
- (function(a) {
- function d() {
- try {
- var a = new Uint8Array(1);
- return (
- (a.__proto__ = {
- __proto__: Uint8Array.prototype,
- foo: function() {
- return 42;
- }
- }),
- 42 === a.foo() && 'function' == typeof a.subarray && 0 === a.subarray(1, 1).byteLength
- );
- } catch (a) {
- return !1;
- }
- }
- function e() {
- return g.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
- }
- function f(a, b) {
- if (e() < b) throw new RangeError('Invalid typed array length');
- return (
- g.TYPED_ARRAY_SUPPORT
- ? ((a = new Uint8Array(b)), (a.__proto__ = g.prototype))
- : (null === a && (a = new g(b)), (a.length = b)),
- a
- );
- }
- function g(a, b, c) {
- if (!(g.TYPED_ARRAY_SUPPORT || this instanceof g)) return new g(a, b, c);
- if ('number' == typeof a) {
- if ('string' == typeof b)
- throw new Error('If encoding is specified then the first argument must be a string');
- return k(this, a);
- }
- return h(this, a, b, c);
- }
- function h(a, b, c, d) {
- if ('number' == typeof b) throw new TypeError('"value" argument must not be a number');
- return 'undefined' != typeof ArrayBuffer && b instanceof ArrayBuffer
- ? n(a, b, c, d)
- : 'string' == typeof b
- ? l(a, b, c)
- : o(a, b);
- }
- function i(a) {
- if ('number' != typeof a) throw new TypeError('"size" argument must be a number');
- if (a < 0) throw new RangeError('"size" argument must not be negative');
- }
- function j(a, b, c, d) {
- return (
- i(b),
- b <= 0
- ? f(a, b)
- : void 0 !== c
- ? 'string' == typeof d
- ? f(a, b).fill(c, d)
- : f(a, b).fill(c)
- : f(a, b)
- );
- }
- function k(a, b) {
- if ((i(b), (a = f(a, b < 0 ? 0 : 0 | p(b))), !g.TYPED_ARRAY_SUPPORT))
- for (var c = 0; c < b; ++c) a[c] = 0;
- return a;
- }
- function l(a, b, c) {
- if ((('string' == typeof c && '' !== c) || (c = 'utf8'), !g.isEncoding(c)))
- throw new TypeError('"encoding" must be a valid string encoding');
- var d = 0 | r(b, c);
- a = f(a, d);
- var e = a.write(b, c);
- return e !== d && (a = a.slice(0, e)), a;
- }
- function m(a, b) {
- var c = b.length < 0 ? 0 : 0 | p(b.length);
- a = f(a, c);
- for (var d = 0; d < c; d += 1) a[d] = 255 & b[d];
- return a;
- }
- function n(a, b, c, d) {
- if ((b.byteLength, c < 0 || b.byteLength < c))
- throw new RangeError("'offset' is out of bounds");
- if (b.byteLength < c + (d || 0)) throw new RangeError("'length' is out of bounds");
- return (
- (b =
- void 0 === c && void 0 === d
- ? new Uint8Array(b)
- : void 0 === d
- ? new Uint8Array(b, c)
- : new Uint8Array(b, c, d)),
- g.TYPED_ARRAY_SUPPORT ? ((a = b), (a.__proto__ = g.prototype)) : (a = m(a, b)),
- a
- );
- }
- function o(a, b) {
- if (g.isBuffer(b)) {
- var c = 0 | p(b.length);
- return (a = f(a, c)), 0 === a.length ? a : (b.copy(a, 0, 0, c), a);
- }
- if (b) {
- if (('undefined' != typeof ArrayBuffer && b.buffer instanceof ArrayBuffer) || 'length' in b)
- return 'number' != typeof b.length || Y(b.length) ? f(a, 0) : m(a, b);
- if ('Buffer' === b.type && _(b.data)) return m(a, b.data);
- }
- throw new TypeError(
- 'First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.'
- );
- }
- function p(a) {
- if (a >= e())
- throw new RangeError(
- 'Attempt to allocate Buffer larger than maximum size: 0x' + e().toString(16) + ' bytes'
- );
- return 0 | a;
- }
- function q(a) {
- return +a != a && (a = 0), g.alloc(+a);
- }
- function r(a, b) {
- if (g.isBuffer(a)) return a.length;
- if (
- 'undefined' != typeof ArrayBuffer &&
- 'function' == typeof ArrayBuffer.isView &&
- (ArrayBuffer.isView(a) || a instanceof ArrayBuffer)
- )
- return a.byteLength;
- 'string' != typeof a && (a = '' + a);
- var c = a.length;
- if (0 === c) return 0;
- for (var d = !1; ; )
- switch (b) {
- case 'ascii':
- case 'latin1':
- case 'binary':
- return c;
- case 'utf8':
- case 'utf-8':
- case void 0:
- return T(a).length;
- case 'ucs2':
- case 'ucs-2':
- case 'utf16le':
- case 'utf-16le':
- return 2 * c;
- case 'hex':
- return c >>> 1;
- case 'base64':
- return W(a).length;
- default:
- if (d) return T(a).length;
- (b = ('' + b).toLowerCase()), (d = !0);
- }
- }
- function s(a, b, c) {
- var d = !1;
- if (((void 0 === b || b < 0) && (b = 0), b > this.length)) return '';
- if (((void 0 === c || c > this.length) && (c = this.length), c <= 0)) return '';
- if (((c >>>= 0), (b >>>= 0), c <= b)) return '';
- for (a || (a = 'utf8'); ; )
- switch (a) {
- case 'hex':
- return H(this, b, c);
- case 'utf8':
- case 'utf-8':
- return D(this, b, c);
- case 'ascii':
- return F(this, b, c);
- case 'latin1':
- case 'binary':
- return G(this, b, c);
- case 'base64':
- return C(this, b, c);
- case 'ucs2':
- case 'ucs-2':
- case 'utf16le':
- case 'utf-16le':
- return I(this, b, c);
- default:
- if (d) throw new TypeError('Unknown encoding: ' + a);
- (a = (a + '').toLowerCase()), (d = !0);
- }
- }
- function t(a, b, c) {
- var d = a[b];
- (a[b] = a[c]), (a[c] = d);
- }
- function u(a, b, c, d, e) {
- if (0 === a.length) return -1;
- if (
- ('string' == typeof c
- ? ((d = c), (c = 0))
- : c > 2147483647
- ? (c = 2147483647)
- : c < -2147483648 && (c = -2147483648),
- (c = +c),
- isNaN(c) && (c = e ? 0 : a.length - 1),
- c < 0 && (c = a.length + c),
- c >= a.length)
- ) {
- if (e) return -1;
- c = a.length - 1;
- } else if (c < 0) {
- if (!e) return -1;
- c = 0;
- }
- if (('string' == typeof b && (b = g.from(b, d)), g.isBuffer(b)))
- return 0 === b.length ? -1 : v(a, b, c, d, e);
- if ('number' == typeof b)
- return (
- (b = 255 & b),
- g.TYPED_ARRAY_SUPPORT && 'function' == typeof Uint8Array.prototype.indexOf
- ? e
- ? Uint8Array.prototype.indexOf.call(a, b, c)
- : Uint8Array.prototype.lastIndexOf.call(a, b, c)
- : v(a, [b], c, d, e)
- );
- throw new TypeError('val must be string, number or Buffer');
- }
- function v(a, b, c, d, e) {
- function f(a, b) {
- return 1 === g ? a[b] : a.readUInt16BE(b * g);
- }
- var g = 1,
- h = a.length,
- i = b.length;
- if (
- void 0 !== d &&
- ((d = String(d).toLowerCase()),
- 'ucs2' === d || 'ucs-2' === d || 'utf16le' === d || 'utf-16le' === d)
- ) {
- if (a.length < 2 || b.length < 2) return -1;
- (g = 2), (h /= 2), (i /= 2), (c /= 2);
- }
- var j;
- if (e) {
- var k = -1;
- for (j = c; j < h; j++)
- if (f(a, j) === f(b, k === -1 ? 0 : j - k)) {
- if ((k === -1 && (k = j), j - k + 1 === i)) return k * g;
- } else k !== -1 && (j -= j - k), (k = -1);
- } else
- for (c + i > h && (c = h - i), j = c; j >= 0; j--) {
- for (var l = !0, m = 0; m < i; m++)
- if (f(a, j + m) !== f(b, m)) {
- l = !1;
- break;
- }
- if (l) return j;
- }
- return -1;
- }
- function w(a, b, c, d) {
- c = Number(c) || 0;
- var e = a.length - c;
- d ? ((d = Number(d)), d > e && (d = e)) : (d = e);
- var f = b.length;
- if (f % 2 !== 0) throw new TypeError('Invalid hex string');
- d > f / 2 && (d = f / 2);
- for (var g = 0; g < d; ++g) {
- var h = parseInt(b.substr(2 * g, 2), 16);
- if (isNaN(h)) return g;
- a[c + g] = h;
- }
- return g;
- }
- function x(a, b, c, d) {
- return X(T(b, a.length - c), a, c, d);
- }
- function y(a, b, c, d) {
- return X(U(b), a, c, d);
- }
- function z(a, b, c, d) {
- return y(a, b, c, d);
- }
- function A(a, b, c, d) {
- return X(W(b), a, c, d);
- }
- function B(a, b, c, d) {
- return X(V(b, a.length - c), a, c, d);
- }
- function C(a, b, c) {
- return 0 === b && c === a.length ? Z.fromByteArray(a) : Z.fromByteArray(a.slice(b, c));
- }
- function D(a, b, c) {
- c = Math.min(a.length, c);
- for (var d = [], e = b; e < c; ) {
- var f = a[e],
- g = null,
- h = f > 239 ? 4 : f > 223 ? 3 : f > 191 ? 2 : 1;
- if (e + h <= c) {
- var i, j, k, l;
- switch (h) {
- case 1:
- f < 128 && (g = f);
- break;
- case 2:
- (i = a[e + 1]),
- 128 === (192 & i) && ((l = ((31 & f) << 6) | (63 & i)), l > 127 && (g = l));
- break;
- case 3:
- (i = a[e + 1]),
- (j = a[e + 2]),
- 128 === (192 & i) &&
- 128 === (192 & j) &&
- ((l = ((15 & f) << 12) | ((63 & i) << 6) | (63 & j)),
- l > 2047 && (l < 55296 || l > 57343) && (g = l));
- break;
- case 4:
- (i = a[e + 1]),
- (j = a[e + 2]),
- (k = a[e + 3]),
- 128 === (192 & i) &&
- 128 === (192 & j) &&
- 128 === (192 & k) &&
- ((l = ((15 & f) << 18) | ((63 & i) << 12) | ((63 & j) << 6) | (63 & k)),
- l > 65535 && l < 1114112 && (g = l));
- }
- }
- null === g
- ? ((g = 65533), (h = 1))
- : g > 65535 &&
- ((g -= 65536), d.push(((g >>> 10) & 1023) | 55296), (g = 56320 | (1023 & g))),
- d.push(g),
- (e += h);
- }
- return E(d);
- }
- function E(a) {
- var b = a.length;
- if (b <= aa) return String.fromCharCode.apply(String, a);
- for (var c = '', d = 0; d < b; ) c += String.fromCharCode.apply(String, a.slice(d, (d += aa)));
- return c;
- }
- function F(a, b, c) {
- var d = '';
- c = Math.min(a.length, c);
- for (var e = b; e < c; ++e) d += String.fromCharCode(127 & a[e]);
- return d;
- }
- function G(a, b, c) {
- var d = '';
- c = Math.min(a.length, c);
- for (var e = b; e < c; ++e) d += String.fromCharCode(a[e]);
- return d;
- }
- function H(a, b, c) {
- var d = a.length;
- (!b || b < 0) && (b = 0), (!c || c < 0 || c > d) && (c = d);
- for (var e = '', f = b; f < c; ++f) e += S(a[f]);
- return e;
- }
- function I(a, b, c) {
- for (var d = a.slice(b, c), e = '', f = 0; f < d.length; f += 2)
- e += String.fromCharCode(d[f] + 256 * d[f + 1]);
- return e;
- }
- function J(a, b, c) {
- if (a % 1 !== 0 || a < 0) throw new RangeError('offset is not uint');
- if (a + b > c) throw new RangeError('Trying to access beyond buffer length');
- }
- function K(a, b, c, d, e, f) {
- if (!g.isBuffer(a)) throw new TypeError('"buffer" argument must be a Buffer instance');
- if (b > e || b < f) throw new RangeError('"value" argument is out of bounds');
- if (c + d > a.length) throw new RangeError('Index out of range');
- }
- function L(a, b, c, d) {
- b < 0 && (b = 65535 + b + 1);
- for (var e = 0, f = Math.min(a.length - c, 2); e < f; ++e)
- a[c + e] = (b & (255 << (8 * (d ? e : 1 - e)))) >>> (8 * (d ? e : 1 - e));
- }
- function M(a, b, c, d) {
- b < 0 && (b = 4294967295 + b + 1);
- for (var e = 0, f = Math.min(a.length - c, 4); e < f; ++e)
- a[c + e] = (b >>> (8 * (d ? e : 3 - e))) & 255;
- }
- function N(a, b, c, d, e, f) {
- if (c + d > a.length) throw new RangeError('Index out of range');
- if (c < 0) throw new RangeError('Index out of range');
- }
- function O(a, b, c, d, e) {
- return (
- e || N(a, b, c, 4, 3.4028234663852886e38, -3.4028234663852886e38),
- $.write(a, b, c, d, 23, 4),
- c + 4
- );
- }
- function P(a, b, c, d, e) {
- return (
- e || N(a, b, c, 8, 1.7976931348623157e308, -1.7976931348623157e308),
- $.write(a, b, c, d, 52, 8),
- c + 8
- );
- }
- function Q(a) {
- if (((a = R(a).replace(ba, '')), a.length < 2)) return '';
- for (; a.length % 4 !== 0; ) a += '=';
- return a;
- }
- function R(a) {
- return a.trim ? a.trim() : a.replace(/^\s+|\s+$/g, '');
- }
- function S(a) {
- return a < 16 ? '0' + a.toString(16) : a.toString(16);
- }
- function T(a, b) {
- b = b || 1 / 0;
- for (var c, d = a.length, e = null, f = [], g = 0; g < d; ++g) {
- if (((c = a.charCodeAt(g)), c > 55295 && c < 57344)) {
- if (!e) {
- if (c > 56319) {
- (b -= 3) > -1 && f.push(239, 191, 189);
- continue;
- }
- if (g + 1 === d) {
- (b -= 3) > -1 && f.push(239, 191, 189);
- continue;
- }
- e = c;
- continue;
- }
- if (c < 56320) {
- (b -= 3) > -1 && f.push(239, 191, 189), (e = c);
- continue;
- }
- c = (((e - 55296) << 10) | (c - 56320)) + 65536;
- } else e && (b -= 3) > -1 && f.push(239, 191, 189);
- if (((e = null), c < 128)) {
- if ((b -= 1) < 0) break;
- f.push(c);
- } else if (c < 2048) {
- if ((b -= 2) < 0) break;
- f.push((c >> 6) | 192, (63 & c) | 128);
- } else if (c < 65536) {
- if ((b -= 3) < 0) break;
- f.push((c >> 12) | 224, ((c >> 6) & 63) | 128, (63 & c) | 128);
- } else {
- if (!(c < 1114112)) throw new Error('Invalid code point');
- if ((b -= 4) < 0) break;
- f.push((c >> 18) | 240, ((c >> 12) & 63) | 128, ((c >> 6) & 63) | 128, (63 & c) | 128);
- }
- }
- return f;
- }
- function U(a) {
- for (var b = [], c = 0; c < a.length; ++c) b.push(255 & a.charCodeAt(c));
- return b;
- }
- function V(a, b) {
- for (var c, d, e, f = [], g = 0; g < a.length && !((b -= 2) < 0); ++g)
- (c = a.charCodeAt(g)), (d = c >> 8), (e = c % 256), f.push(e), f.push(d);
- return f;
- }
- function W(a) {
- return Z.toByteArray(Q(a));
- }
- function X(a, b, c, d) {
- for (var e = 0; e < d && !(e + c >= b.length || e >= a.length); ++e) b[e + c] = a[e];
- return e;
- }
- function Y(a) {
- return a !== a;
- }
- var Z = c(27),
- $ = c(28),
- _ = c(29);
- (b.Buffer = g),
- (b.SlowBuffer = q),
- (b.INSPECT_MAX_BYTES = 50),
- (g.TYPED_ARRAY_SUPPORT = void 0 !== a.TYPED_ARRAY_SUPPORT ? a.TYPED_ARRAY_SUPPORT : d()),
- (b.kMaxLength = e()),
- (g.poolSize = 8192),
- (g._augment = function(a) {
- return (a.__proto__ = g.prototype), a;
- }),
- (g.from = function(a, b, c) {
- return h(null, a, b, c);
- }),
- g.TYPED_ARRAY_SUPPORT &&
- ((g.prototype.__proto__ = Uint8Array.prototype),
- (g.__proto__ = Uint8Array),
- 'undefined' != typeof Symbol &&
- Symbol.species &&
- g[Symbol.species] === g &&
- Object.defineProperty(g, Symbol.species, { value: null, configurable: !0 })),
- (g.alloc = function(a, b, c) {
- return j(null, a, b, c);
- }),
- (g.allocUnsafe = function(a) {
- return k(null, a);
- }),
- (g.allocUnsafeSlow = function(a) {
- return k(null, a);
- }),
- (g.isBuffer = function(a) {
- return !(null == a || !a._isBuffer);
- }),
- (g.compare = function(a, b) {
- if (!g.isBuffer(a) || !g.isBuffer(b)) throw new TypeError('Arguments must be Buffers');
- if (a === b) return 0;
- for (var c = a.length, d = b.length, e = 0, f = Math.min(c, d); e < f; ++e)
- if (a[e] !== b[e]) {
- (c = a[e]), (d = b[e]);
- break;
- }
- return c < d ? -1 : d < c ? 1 : 0;
- }),
- (g.isEncoding = function(a) {
- switch (String(a).toLowerCase()) {
- case 'hex':
- case 'utf8':
- case 'utf-8':
- case 'ascii':
- case 'latin1':
- case 'binary':
- case 'base64':
- case 'ucs2':
- case 'ucs-2':
- case 'utf16le':
- case 'utf-16le':
- return !0;
- default:
- return !1;
- }
- }),
- (g.concat = function(a, b) {
- if (!_(a)) throw new TypeError('"list" argument must be an Array of Buffers');
- if (0 === a.length) return g.alloc(0);
- var c;
- if (void 0 === b) for (b = 0, c = 0; c < a.length; ++c) b += a[c].length;
- var d = g.allocUnsafe(b),
- e = 0;
- for (c = 0; c < a.length; ++c) {
- var f = a[c];
- if (!g.isBuffer(f)) throw new TypeError('"list" argument must be an Array of Buffers');
- f.copy(d, e), (e += f.length);
- }
- return d;
- }),
- (g.byteLength = r),
- (g.prototype._isBuffer = !0),
- (g.prototype.swap16 = function() {
- var a = this.length;
- if (a % 2 !== 0) throw new RangeError('Buffer size must be a multiple of 16-bits');
- for (var b = 0; b < a; b += 2) t(this, b, b + 1);
- return this;
- }),
- (g.prototype.swap32 = function() {
- var a = this.length;
- if (a % 4 !== 0) throw new RangeError('Buffer size must be a multiple of 32-bits');
- for (var b = 0; b < a; b += 4) t(this, b, b + 3), t(this, b + 1, b + 2);
- return this;
- }),
- (g.prototype.swap64 = function() {
- var a = this.length;
- if (a % 8 !== 0) throw new RangeError('Buffer size must be a multiple of 64-bits');
- for (var b = 0; b < a; b += 8)
- t(this, b, b + 7), t(this, b + 1, b + 6), t(this, b + 2, b + 5), t(this, b + 3, b + 4);
- return this;
- }),
- (g.prototype.toString = function() {
- var a = 0 | this.length;
- return 0 === a ? '' : 0 === arguments.length ? D(this, 0, a) : s.apply(this, arguments);
- }),
- (g.prototype.equals = function(a) {
- if (!g.isBuffer(a)) throw new TypeError('Argument must be a Buffer');
- return this === a || 0 === g.compare(this, a);
- }),
- (g.prototype.inspect = function() {
- var a = '',
- c = b.INSPECT_MAX_BYTES;
- return (
- this.length > 0 &&
- ((a = this.toString('hex', 0, c)
- .match(/.{2}/g)
- .join(' ')),
- this.length > c && (a += ' ... ')),
- '<Buffer ' + a + '>'
- );
- }),
- (g.prototype.compare = function(a, b, c, d, e) {
- if (!g.isBuffer(a)) throw new TypeError('Argument must be a Buffer');
- if (
- (void 0 === b && (b = 0),
- void 0 === c && (c = a ? a.length : 0),
- void 0 === d && (d = 0),
- void 0 === e && (e = this.length),
- b < 0 || c > a.length || d < 0 || e > this.length)
- )
- throw new RangeError('out of range index');
- if (d >= e && b >= c) return 0;
- if (d >= e) return -1;
- if (b >= c) return 1;
- if (((b >>>= 0), (c >>>= 0), (d >>>= 0), (e >>>= 0), this === a)) return 0;
- for (
- var f = e - d,
- h = c - b,
- i = Math.min(f, h),
- j = this.slice(d, e),
- k = a.slice(b, c),
- l = 0;
- l < i;
- ++l
- )
- if (j[l] !== k[l]) {
- (f = j[l]), (h = k[l]);
- break;
- }
- return f < h ? -1 : h < f ? 1 : 0;
- }),
- (g.prototype.includes = function(a, b, c) {
- return this.indexOf(a, b, c) !== -1;
- }),
- (g.prototype.indexOf = function(a, b, c) {
- return u(this, a, b, c, !0);
- }),
- (g.prototype.lastIndexOf = function(a, b, c) {
- return u(this, a, b, c, !1);
- }),
- (g.prototype.write = function(a, b, c, d) {
- if (void 0 === b) (d = 'utf8'), (c = this.length), (b = 0);
- else if (void 0 === c && 'string' == typeof b) (d = b), (c = this.length), (b = 0);
- else {
- if (!isFinite(b))
- throw new Error(
- 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
- );
- (b = 0 | b),
- isFinite(c) ? ((c = 0 | c), void 0 === d && (d = 'utf8')) : ((d = c), (c = void 0));
- }
- var e = this.length - b;
- if (
- ((void 0 === c || c > e) && (c = e),
- (a.length > 0 && (c < 0 || b < 0)) || b > this.length)
- )
- throw new RangeError('Attempt to write outside buffer bounds');
- d || (d = 'utf8');
- for (var f = !1; ; )
- switch (d) {
- case 'hex':
- return w(this, a, b, c);
- case 'utf8':
- case 'utf-8':
- return x(this, a, b, c);
- case 'ascii':
- return y(this, a, b, c);
- case 'latin1':
- case 'binary':
- return z(this, a, b, c);
- case 'base64':
- return A(this, a, b, c);
- case 'ucs2':
- case 'ucs-2':
- case 'utf16le':
- case 'utf-16le':
- return B(this, a, b, c);
- default:
- if (f) throw new TypeError('Unknown encoding: ' + d);
- (d = ('' + d).toLowerCase()), (f = !0);
- }
- }),
- (g.prototype.toJSON = function() {
- return { type: 'Buffer', data: Array.prototype.slice.call(this._arr || this, 0) };
- });
- var aa = 4096;
- (g.prototype.slice = function(a, b) {
- var c = this.length;
- (a = ~~a),
- (b = void 0 === b ? c : ~~b),
- a < 0 ? ((a += c), a < 0 && (a = 0)) : a > c && (a = c),
- b < 0 ? ((b += c), b < 0 && (b = 0)) : b > c && (b = c),
- b < a && (b = a);
- var d;
- if (g.TYPED_ARRAY_SUPPORT) (d = this.subarray(a, b)), (d.__proto__ = g.prototype);
- else {
- var e = b - a;
- d = new g(e, void 0);
- for (var f = 0; f < e; ++f) d[f] = this[f + a];
- }
- return d;
- }),
- (g.prototype.readUIntLE = function(a, b, c) {
- (a = 0 | a), (b = 0 | b), c || J(a, b, this.length);
- for (var d = this[a], e = 1, f = 0; ++f < b && (e *= 256); ) d += this[a + f] * e;
- return d;
- }),
- (g.prototype.readUIntBE = function(a, b, c) {
- (a = 0 | a), (b = 0 | b), c || J(a, b, this.length);
- for (var d = this[a + --b], e = 1; b > 0 && (e *= 256); ) d += this[a + --b] * e;
- return d;
- }),
- (g.prototype.readUInt8 = function(a, b) {
- return b || J(a, 1, this.length), this[a];
- }),
- (g.prototype.readUInt16LE = function(a, b) {
- return b || J(a, 2, this.length), this[a] | (this[a + 1] << 8);
- }),
- (g.prototype.readUInt16BE = function(a, b) {
- return b || J(a, 2, this.length), (this[a] << 8) | this[a + 1];
- }),
- (g.prototype.readUInt32LE = function(a, b) {
- return (
- b || J(a, 4, this.length),
- (this[a] | (this[a + 1] << 8) | (this[a + 2] << 16)) + 16777216 * this[a + 3]
- );
- }),
- (g.prototype.readUInt32BE = function(a, b) {
- return (
- b || J(a, 4, this.length),
- 16777216 * this[a] + ((this[a + 1] << 16) | (this[a + 2] << 8) | this[a + 3])
- );
- }),
- (g.prototype.readIntLE = function(a, b, c) {
- (a = 0 | a), (b = 0 | b), c || J(a, b, this.length);
- for (var d = this[a], e = 1, f = 0; ++f < b && (e *= 256); ) d += this[a + f] * e;
- return (e *= 128), d >= e && (d -= Math.pow(2, 8 * b)), d;
- }),
- (g.prototype.readIntBE = function(a, b, c) {
- (a = 0 | a), (b = 0 | b), c || J(a, b, this.length);
- for (var d = b, e = 1, f = this[a + --d]; d > 0 && (e *= 256); ) f += this[a + --d] * e;
- return (e *= 128), f >= e && (f -= Math.pow(2, 8 * b)), f;
- }),
- (g.prototype.readInt8 = function(a, b) {
- return b || J(a, 1, this.length), 128 & this[a] ? (255 - this[a] + 1) * -1 : this[a];
- }),
- (g.prototype.readInt16LE = function(a, b) {
- b || J(a, 2, this.length);
- var c = this[a] | (this[a + 1] << 8);
- return 32768 & c ? 4294901760 | c : c;
- }),
- (g.prototype.readInt16BE = function(a, b) {
- b || J(a, 2, this.length);
- var c = this[a + 1] | (this[a] << 8);
- return 32768 & c ? 4294901760 | c : c;
- }),
- (g.prototype.readInt32LE = function(a, b) {
- return (
- b || J(a, 4, this.length),
- this[a] | (this[a + 1] << 8) | (this[a + 2] << 16) | (this[a + 3] << 24)
- );
- }),
- (g.prototype.readInt32BE = function(a, b) {
- return (
- b || J(a, 4, this.length),
- (this[a] << 24) | (this[a + 1] << 16) | (this[a + 2] << 8) | this[a + 3]
- );
- }),
- (g.prototype.readFloatLE = function(a, b) {
- return b || J(a, 4, this.length), $.read(this, a, !0, 23, 4);
- }),
- (g.prototype.readFloatBE = function(a, b) {
- return b || J(a, 4, this.length), $.read(this, a, !1, 23, 4);
- }),
- (g.prototype.readDoubleLE = function(a, b) {
- return b || J(a, 8, this.length), $.read(this, a, !0, 52, 8);
- }),
- (g.prototype.readDoubleBE = function(a, b) {
- return b || J(a, 8, this.length), $.read(this, a, !1, 52, 8);
- }),
- (g.prototype.writeUIntLE = function(a, b, c, d) {
- if (((a = +a), (b = 0 | b), (c = 0 | c), !d)) {
- var e = Math.pow(2, 8 * c) - 1;
- K(this, a, b, c, e, 0);
- }
- var f = 1,
- g = 0;
- for (this[b] = 255 & a; ++g < c && (f *= 256); ) this[b + g] = (a / f) & 255;
- return b + c;
- }),
- (g.prototype.writeUIntBE = function(a, b, c, d) {
- if (((a = +a), (b = 0 | b), (c = 0 | c), !d)) {
- var e = Math.pow(2, 8 * c) - 1;
- K(this, a, b, c, e, 0);
- }
- var f = c - 1,
- g = 1;
- for (this[b + f] = 255 & a; --f >= 0 && (g *= 256); ) this[b + f] = (a / g) & 255;
- return b + c;
- }),
- (g.prototype.writeUInt8 = function(a, b, c) {
- return (
- (a = +a),
- (b = 0 | b),
- c || K(this, a, b, 1, 255, 0),
- g.TYPED_ARRAY_SUPPORT || (a = Math.floor(a)),
- (this[b] = 255 & a),
- b + 1
- );
- }),
- (g.prototype.writeUInt16LE = function(a, b, c) {
- return (
- (a = +a),
- (b = 0 | b),
- c || K(this, a, b, 2, 65535, 0),
- g.TYPED_ARRAY_SUPPORT
- ? ((this[b] = 255 & a), (this[b + 1] = a >>> 8))
- : L(this, a, b, !0),
- b + 2
- );
- }),
- (g.prototype.writeUInt16BE = function(a, b, c) {
- return (
- (a = +a),
- (b = 0 | b),
- c || K(this, a, b, 2, 65535, 0),
- g.TYPED_ARRAY_SUPPORT
- ? ((this[b] = a >>> 8), (this[b + 1] = 255 & a))
- : L(this, a, b, !1),
- b + 2
- );
- }),
- (g.prototype.writeUInt32LE = function(a, b, c) {
- return (
- (a = +a),
- (b = 0 | b),
- c || K(this, a, b, 4, 4294967295, 0),
- g.TYPED_ARRAY_SUPPORT
- ? ((this[b + 3] = a >>> 24),
- (this[b + 2] = a >>> 16),
- (this[b + 1] = a >>> 8),
- (this[b] = 255 & a))
- : M(this, a, b, !0),
- b + 4
- );
- }),
- (g.prototype.writeUInt32BE = function(a, b, c) {
- return (
- (a = +a),
- (b = 0 | b),
- c || K(this, a, b, 4, 4294967295, 0),
- g.TYPED_ARRAY_SUPPORT
- ? ((this[b] = a >>> 24),
- (this[b + 1] = a >>> 16),
- (this[b + 2] = a >>> 8),
- (this[b + 3] = 255 & a))
- : M(this, a, b, !1),
- b + 4
- );
- }),
- (g.prototype.writeIntLE = function(a, b, c, d) {
- if (((a = +a), (b = 0 | b), !d)) {
- var e = Math.pow(2, 8 * c - 1);
- K(this, a, b, c, e - 1, -e);
- }
- var f = 0,
- g = 1,
- h = 0;
- for (this[b] = 255 & a; ++f < c && (g *= 256); )
- a < 0 && 0 === h && 0 !== this[b + f - 1] && (h = 1),
- (this[b + f] = (((a / g) >> 0) - h) & 255);
- return b + c;
- }),
- (g.prototype.writeIntBE = function(a, b, c, d) {
- if (((a = +a), (b = 0 | b), !d)) {
- var e = Math.pow(2, 8 * c - 1);
- K(this, a, b, c, e - 1, -e);
- }
- var f = c - 1,
- g = 1,
- h = 0;
- for (this[b + f] = 255 & a; --f >= 0 && (g *= 256); )
- a < 0 && 0 === h && 0 !== this[b + f + 1] && (h = 1),
- (this[b + f] = (((a / g) >> 0) - h) & 255);
- return b + c;
- }),
- (g.prototype.writeInt8 = function(a, b, c) {
- return (
- (a = +a),
- (b = 0 | b),
- c || K(this, a, b, 1, 127, -128),
- g.TYPED_ARRAY_SUPPORT || (a = Math.floor(a)),
- a < 0 && (a = 255 + a + 1),
- (this[b] = 255 & a),
- b + 1
- );
- }),
- (g.prototype.writeInt16LE = function(a, b, c) {
- return (
- (a = +a),
- (b = 0 | b),
- c || K(this, a, b, 2, 32767, -32768),
- g.TYPED_ARRAY_SUPPORT
- ? ((this[b] = 255 & a), (this[b + 1] = a >>> 8))
- : L(this, a, b, !0),
- b + 2
- );
- }),
- (g.prototype.writeInt16BE = function(a, b, c) {
- return (
- (a = +a),
- (b = 0 | b),
- c || K(this, a, b, 2, 32767, -32768),
- g.TYPED_ARRAY_SUPPORT
- ? ((this[b] = a >>> 8), (this[b + 1] = 255 & a))
- : L(this, a, b, !1),
- b + 2
- );
- }),
- (g.prototype.writeInt32LE = function(a, b, c) {
- return (
- (a = +a),
- (b = 0 | b),
- c || K(this, a, b, 4, 2147483647, -2147483648),
- g.TYPED_ARRAY_SUPPORT
- ? ((this[b] = 255 & a),
- (this[b + 1] = a >>> 8),
- (this[b + 2] = a >>> 16),
- (this[b + 3] = a >>> 24))
- : M(this, a, b, !0),
- b + 4
- );
- }),
- (g.prototype.writeInt32BE = function(a, b, c) {
- return (
- (a = +a),
- (b = 0 | b),
- c || K(this, a, b, 4, 2147483647, -2147483648),
- a < 0 && (a = 4294967295 + a + 1),
- g.TYPED_ARRAY_SUPPORT
- ? ((this[b] = a >>> 24),
- (this[b + 1] = a >>> 16),
- (this[b + 2] = a >>> 8),
- (this[b + 3] = 255 & a))
- : M(this, a, b, !1),
- b + 4
- );
- }),
- (g.prototype.writeFloatLE = function(a, b, c) {
- return O(this, a, b, !0, c);
- }),
- (g.prototype.writeFloatBE = function(a, b, c) {
- return O(this, a, b, !1, c);
- }),
- (g.prototype.writeDoubleLE = function(a, b, c) {
- return P(this, a, b, !0, c);
- }),
- (g.prototype.writeDoubleBE = function(a, b, c) {
- return P(this, a, b, !1, c);
- }),
- (g.prototype.copy = function(a, b, c, d) {
- if (
- (c || (c = 0),
- d || 0 === d || (d = this.length),
- b >= a.length && (b = a.length),
- b || (b = 0),
- d > 0 && d < c && (d = c),
- d === c)
- )
- return 0;
- if (0 === a.length || 0 === this.length) return 0;
- if (b < 0) throw new RangeError('targetStart out of bounds');
- if (c < 0 || c >= this.length) throw new RangeError('sourceStart out of bounds');
- if (d < 0) throw new RangeError('sourceEnd out of bounds');
- d > this.length && (d = this.length), a.length - b < d - c && (d = a.length - b + c);
- var e,
- f = d - c;
- if (this === a && c < b && b < d) for (e = f - 1; e >= 0; --e) a[e + b] = this[e + c];
- else if (f < 1e3 || !g.TYPED_ARRAY_SUPPORT) for (e = 0; e < f; ++e) a[e + b] = this[e + c];
- else Uint8Array.prototype.set.call(a, this.subarray(c, c + f), b);
- return f;
- }),
- (g.prototype.fill = function(a, b, c, d) {
- if ('string' == typeof a) {
- if (
- ('string' == typeof b
- ? ((d = b), (b = 0), (c = this.length))
- : 'string' == typeof c && ((d = c), (c = this.length)),
- 1 === a.length)
- ) {
- var e = a.charCodeAt(0);
- e < 256 && (a = e);
- }
- if (void 0 !== d && 'string' != typeof d)
- throw new TypeError('encoding must be a string');
- if ('string' == typeof d && !g.isEncoding(d))
- throw new TypeError('Unknown encoding: ' + d);
- } else 'number' == typeof a && (a = 255 & a);
- if (b < 0 || this.length < b || this.length < c) throw new RangeError('Out of range index');
- if (c <= b) return this;
- (b >>>= 0), (c = void 0 === c ? this.length : c >>> 0), a || (a = 0);
- var f;
- if ('number' == typeof a) for (f = b; f < c; ++f) this[f] = a;
- else {
- var h = g.isBuffer(a) ? a : T(new g(a, d).toString()),
- i = h.length;
- for (f = 0; f < c - b; ++f) this[f + b] = h[f % i];
- }
- return this;
- });
- var ba = /[^+\/0-9A-Za-z-_]/g;
- }.call(b, c(7)));
- },
- function(a, b, c) {
- 'use strict';
- function d() {
- (this.protocol = null),
- (this.slashes = null),
- (this.auth = null),
- (this.host = null),
- (this.port = null),
- (this.hostname = null),
- (this.hash = null),
- (this.search = null),
- (this.query = null),
- (this.pathname = null),
- (this.path = null),
- (this.href = null);
- }
- function e(a, b, c) {
- if (a && j.isObject(a) && a instanceof d) return a;
- var e = new d();
- return e.parse(a, b, c), e;
- }
- function f(a) {
- return j.isString(a) && (a = e(a)), a instanceof d ? a.format() : d.prototype.format.call(a);
- }
- function g(a, b) {
- return e(a, !1, !0).resolve(b);
- }
- function h(a, b) {
- return a ? e(a, !1, !0).resolveObject(b) : b;
- }
- var i = c(33),
- j = c(34);
- (b.parse = e), (b.resolve = g), (b.resolveObject = h), (b.format = f), (b.Url = d);
- var k = /^([a-z0-9.+-]+:)/i,
- l = /:[0-9]*$/,
- m = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,
- n = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'],
- o = ['{', '}', '|', '\\', '^', '`'].concat(n),
- p = ["'"].concat(o),
- q = ['%', '/', '?', ';', '#'].concat(p),
- r = ['/', '?', '#'],
- s = 255,
- t = /^[+a-z0-9A-Z_-]{0,63}$/,
- u = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,
- v = { javascript: !0, 'javascript:': !0 },
- w = { javascript: !0, 'javascript:': !0 },
- x = {
- http: !0,
- https: !0,
- ftp: !0,
- gopher: !0,
- file: !0,
- 'http:': !0,
- 'https:': !0,
- 'ftp:': !0,
- 'gopher:': !0,
- 'file:': !0
- },
- y = c(14);
- (d.prototype.parse = function(a, b, c) {
- if (!j.isString(a)) throw new TypeError("Parameter 'url' must be a string, not " + typeof a);
- var d = a.indexOf('?'),
- e = d !== -1 && d < a.indexOf('#') ? '?' : '#',
- f = a.split(e),
- g = /\\/g;
- (f[0] = f[0].replace(g, '/')), (a = f.join(e));
- var h = a;
- if (((h = h.trim()), !c && 1 === a.split('#').length)) {
- var l = m.exec(h);
- if (l)
- return (
- (this.path = h),
- (this.href = h),
- (this.pathname = l[1]),
- l[2]
- ? ((this.search = l[2]),
- b
- ? (this.query = y.parse(this.search.substr(1)))
- : (this.query = this.search.substr(1)))
- : b && ((this.search = ''), (this.query = {})),
- this
- );
- }
- var n = k.exec(h);
- if (n) {
- n = n[0];
- var o = n.toLowerCase();
- (this.protocol = o), (h = h.substr(n.length));
- }
- if (c || n || h.match(/^\/\/[^@\/]+@[^@\/]+/)) {
- var z = '//' === h.substr(0, 2);
- !z || (n && w[n]) || ((h = h.substr(2)), (this.slashes = !0));
- }
- if (!w[n] && (z || (n && !x[n]))) {
- for (var A = -1, B = 0; B < r.length; B++) {
- var C = h.indexOf(r[B]);
- C !== -1 && (A === -1 || C < A) && (A = C);
- }
- var D, E;
- (E = A === -1 ? h.lastIndexOf('@') : h.lastIndexOf('@', A)),
- E !== -1 &&
- ((D = h.slice(0, E)), (h = h.slice(E + 1)), (this.auth = decodeURIComponent(D))),
- (A = -1);
- for (var B = 0; B < q.length; B++) {
- var C = h.indexOf(q[B]);
- C !== -1 && (A === -1 || C < A) && (A = C);
- }
- A === -1 && (A = h.length),
- (this.host = h.slice(0, A)),
- (h = h.slice(A)),
- this.parseHost(),
- (this.hostname = this.hostname || '');
- var F = '[' === this.hostname[0] && ']' === this.hostname[this.hostname.length - 1];
- if (!F)
- for (var G = this.hostname.split(/\./), B = 0, H = G.length; B < H; B++) {
- var I = G[B];
- if (I && !I.match(t)) {
- for (var J = '', K = 0, L = I.length; K < L; K++)
- J += I.charCodeAt(K) > 127 ? 'x' : I[K];
- if (!J.match(t)) {
- var M = G.slice(0, B),
- N = G.slice(B + 1),
- O = I.match(u);
- O && (M.push(O[1]), N.unshift(O[2])),
- N.length && (h = '/' + N.join('.') + h),
- (this.hostname = M.join('.'));
- break;
- }
- }
- }
- this.hostname.length > s ? (this.hostname = '') : (this.hostname = this.hostname.toLowerCase()),
- F || (this.hostname = i.toASCII(this.hostname));
- var P = this.port ? ':' + this.port : '',
- Q = this.hostname || '';
- (this.host = Q + P),
- (this.href += this.host),
- F &&
- ((this.hostname = this.hostname.substr(1, this.hostname.length - 2)),
- '/' !== h[0] && (h = '/' + h));
- }
- if (!v[o])
- for (var B = 0, H = p.length; B < H; B++) {
- var R = p[B];
- if (h.indexOf(R) !== -1) {
- var S = encodeURIComponent(R);
- S === R && (S = escape(R)), (h = h.split(R).join(S));
- }
- }
- var T = h.indexOf('#');
- T !== -1 && ((this.hash = h.substr(T)), (h = h.slice(0, T)));
- var U = h.indexOf('?');
- if (
- (U !== -1
- ? ((this.search = h.substr(U)),
- (this.query = h.substr(U + 1)),
- b && (this.query = y.parse(this.query)),
- (h = h.slice(0, U)))
- : b && ((this.search = ''), (this.query = {})),
- h && (this.pathname = h),
- x[o] && this.hostname && !this.pathname && (this.pathname = '/'),
- this.pathname || this.search)
- ) {
- var P = this.pathname || '',
- V = this.search || '';
- this.path = P + V;
- }
- return (this.href = this.format()), this;
- }),
- (d.prototype.format = function() {
- var a = this.auth || '';
- a && ((a = encodeURIComponent(a)), (a = a.replace(/%3A/i, ':')), (a += '@'));
- var b = this.protocol || '',
- c = this.pathname || '',
- d = this.hash || '',
- e = !1,
- f = '';
- this.host
- ? (e = a + this.host)
- : this.hostname &&
- ((e =
- a + (this.hostname.indexOf(':') === -1 ? this.hostname : '[' + this.hostname + ']')),
- this.port && (e += ':' + this.port)),
- this.query &&
- j.isObject(this.query) &&
- Object.keys(this.query).length &&
- (f = y.stringify(this.query));
- var g = this.search || (f && '?' + f) || '';
- return (
- b && ':' !== b.substr(-1) && (b += ':'),
- this.slashes || ((!b || x[b]) && e !== !1)
- ? ((e = '//' + (e || '')), c && '/' !== c.charAt(0) && (c = '/' + c))
- : e || (e = ''),
- d && '#' !== d.charAt(0) && (d = '#' + d),
- g && '?' !== g.charAt(0) && (g = '?' + g),
- (c = c.replace(/[?#]/g, function(a) {
- return encodeURIComponent(a);
- })),
- (g = g.replace('#', '%23')),
- b + e + c + g + d
- );
- }),
- (d.prototype.resolve = function(a) {
- return this.resolveObject(e(a, !1, !0)).format();
- }),
- (d.prototype.resolveObject = function(a) {
- if (j.isString(a)) {
- var b = new d();
- b.parse(a, !1, !0), (a = b);
- }
- for (var c = new d(), e = Object.keys(this), f = 0; f < e.length; f++) {
- var g = e[f];
- c[g] = this[g];
- }
- if (((c.hash = a.hash), '' === a.href)) return (c.href = c.format()), c;
- if (a.slashes && !a.protocol) {
- for (var h = Object.keys(a), i = 0; i < h.length; i++) {
- var k = h[i];
- 'protocol' !== k && (c[k] = a[k]);
- }
- return (
- x[c.protocol] && c.hostname && !c.pathname && (c.path = c.pathname = '/'),
- (c.href = c.format()),
- c
- );
- }
- if (a.protocol && a.protocol !== c.protocol) {
- if (!x[a.protocol]) {
- for (var l = Object.keys(a), m = 0; m < l.length; m++) {
- var n = l[m];
- c[n] = a[n];
- }
- return (c.href = c.format()), c;
- }
- if (((c.protocol = a.protocol), a.host || w[a.protocol])) c.pathname = a.pathname;
- else {
- for (var o = (a.pathname || '').split('/'); o.length && !(a.host = o.shift()); );
- a.host || (a.host = ''),
- a.hostname || (a.hostname = ''),
- '' !== o[0] && o.unshift(''),
- o.length < 2 && o.unshift(''),
- (c.pathname = o.join('/'));
- }
- if (
- ((c.search = a.search),
- (c.query = a.query),
- (c.host = a.host || ''),
- (c.auth = a.auth),
- (c.hostname = a.hostname || a.host),
- (c.port = a.port),
- c.pathname || c.search)
- ) {
- var p = c.pathname || '',
- q = c.search || '';
- c.path = p + q;
- }
- return (c.slashes = c.slashes || a.slashes), (c.href = c.format()), c;
- }
- var r = c.pathname && '/' === c.pathname.charAt(0),
- s = a.host || (a.pathname && '/' === a.pathname.charAt(0)),
- t = s || r || (c.host && a.pathname),
- u = t,
- v = (c.pathname && c.pathname.split('/')) || [],
- o = (a.pathname && a.pathname.split('/')) || [],
- y = c.protocol && !x[c.protocol];
- if (
- (y &&
- ((c.hostname = ''),
- (c.port = null),
- c.host && ('' === v[0] ? (v[0] = c.host) : v.unshift(c.host)),
- (c.host = ''),
- a.protocol &&
- ((a.hostname = null),
- (a.port = null),
- a.host && ('' === o[0] ? (o[0] = a.host) : o.unshift(a.host)),
- (a.host = null)),
- (t = t && ('' === o[0] || '' === v[0]))),
- s)
- )
- (c.host = a.host || '' === a.host ? a.host : c.host),
- (c.hostname = a.hostname || '' === a.hostname ? a.hostname : c.hostname),
- (c.search = a.search),
- (c.query = a.query),
- (v = o);
- else if (o.length)
- v || (v = []), v.pop(), (v = v.concat(o)), (c.search = a.search), (c.query = a.query);
- else if (!j.isNullOrUndefined(a.search)) {
- if (y) {
- c.hostname = c.host = v.shift();
- var z = !!(c.host && c.host.indexOf('@') > 0) && c.host.split('@');
- z && ((c.auth = z.shift()), (c.host = c.hostname = z.shift()));
- }
- return (
- (c.search = a.search),
- (c.query = a.query),
- (j.isNull(c.pathname) && j.isNull(c.search)) ||
- (c.path = (c.pathname ? c.pathname : '') + (c.search ? c.search : '')),
- (c.href = c.format()),
- c
- );
- }
- if (!v.length)
- return (
- (c.pathname = null),
- c.search ? (c.path = '/' + c.search) : (c.path = null),
- (c.href = c.format()),
- c
- );
- for (
- var A = v.slice(-1)[0],
- B = ((c.host || a.host || v.length > 1) && ('.' === A || '..' === A)) || '' === A,
- C = 0,
- D = v.length;
- D >= 0;
- D--
- )
- (A = v[D]),
- '.' === A
- ? v.splice(D, 1)
- : '..' === A
- ? (v.splice(D, 1), C++)
- : C && (v.splice(D, 1), C--);
- if (!t && !u) for (; C--; C) v.unshift('..');
- !t || '' === v[0] || (v[0] && '/' === v[0].charAt(0)) || v.unshift(''),
- B && '/' !== v.join('/').substr(-1) && v.push('');
- var E = '' === v[0] || (v[0] && '/' === v[0].charAt(0));
- if (y) {
- c.hostname = c.host = E ? '' : v.length ? v.shift() : '';
- var z = !!(c.host && c.host.indexOf('@') > 0) && c.host.split('@');
- z && ((c.auth = z.shift()), (c.host = c.hostname = z.shift()));
- }
- return (
- (t = t || (c.host && v.length)),
- t && !E && v.unshift(''),
- v.length ? (c.pathname = v.join('/')) : ((c.pathname = null), (c.path = null)),
- (j.isNull(c.pathname) && j.isNull(c.search)) ||
- (c.path = (c.pathname ? c.pathname : '') + (c.search ? c.search : '')),
- (c.auth = a.auth || c.auth),
- (c.slashes = c.slashes || a.slashes),
- (c.href = c.format()),
- c
- );
- }),
- (d.prototype.parseHost = function() {
- var a = this.host,
- b = l.exec(a);
- b &&
- ((b = b[0]),
- ':' !== b && (this.port = b.substr(1)),
- (a = a.substr(0, a.length - b.length))),
- a && (this.hostname = a);
- });
- },
- function(a, b, c) {
- 'use strict';
- (b.decode = b.parse = c(35)), (b.encode = b.stringify = c(36));
- },
- function(a, b, c) {
- 'use strict';
- function d(a) {
- console && console.warn && console.warn(a);
- }
- function e() {
- e.init.call(this);
- }
- function f(a) {
- if ('function' != typeof a)
- throw new TypeError(
- 'The "listener" argument must be of type Function. Received type ' + typeof a
- );
- }
- function g(a) {
- return void 0 === a._maxListeners ? e.defaultMaxListeners : a._maxListeners;
- }
- function h(a, b, c, e) {
- var h, i, j;
- if (
- (f(c),
- (i = a._events),
- void 0 === i
- ? ((i = a._events = Object.create(null)), (a._eventsCount = 0))
- : (void 0 !== i.newListener &&
- (a.emit('newListener', b, c.listener ? c.listener : c), (i = a._events)),
- (j = i[b])),
- void 0 === j)
- )
- (j = i[b] = c), ++a._eventsCount;
- else if (
- ('function' == typeof j ? (j = i[b] = e ? [c, j] : [j, c]) : e ? j.unshift(c) : j.push(c),
- (h = g(a)),
- h > 0 && j.length > h && !j.warned)
- ) {
- j.warned = !0;
- var k = new Error(
- 'Possible EventEmitter memory leak detected. ' +
- j.length +
- ' ' +
- String(b) +
- ' listeners added. Use emitter.setMaxListeners() to increase limit'
- );
- (k.name = 'MaxListenersExceededWarning'),
- (k.emitter = a),
- (k.type = b),
- (k.count = j.length),
- d(k);
- }
- return a;
- }
- function i() {
- if (!this.fired)
- return (
- this.target.removeListener(this.type, this.wrapFn),
- (this.fired = !0),
- 0 === arguments.length
- ? this.listener.call(this.target)
- : this.listener.apply(this.target, arguments)
- );
- }
- function j(a, b, c) {
- var d = { fired: !1, wrapFn: void 0, target: a, type: b, listener: c },
- e = i.bind(d);
- return (e.listener = c), (d.wrapFn = e), e;
- }
- function k(a, b, c) {
- var d = a._events;
- if (void 0 === d) return [];
- var e = d[b];
- return void 0 === e
- ? []
- : 'function' == typeof e
- ? c
- ? [e.listener || e]
- : [e]
- : c
- ? o(e)
- : m(e, e.length);
- }
- function l(a) {
- var b = this._events;
- if (void 0 !== b) {
- var c = b[a];
- if ('function' == typeof c) return 1;
- if (void 0 !== c) return c.length;
- }
- return 0;
- }
- function m(a, b) {
- for (var c = new Array(b), d = 0; d < b; ++d) c[d] = a[d];
- return c;
- }
- function n(a, b) {
- for (; b + 1 < a.length; b++) a[b] = a[b + 1];
- a.pop();
- }
- function o(a) {
- for (var b = new Array(a.length), c = 0; c < b.length; ++c) b[c] = a[c].listener || a[c];
- return b;
- }
- var p,
- q = 'object' == typeof Reflect ? Reflect : null,
- r =
- q && 'function' == typeof q.apply
- ? q.apply
- : function(a, b, c) {
- return Function.prototype.apply.call(a, b, c);
- };
- p =
- q && 'function' == typeof q.ownKeys
- ? q.ownKeys
- : Object.getOwnPropertySymbols
- ? function(a) {
- return Object.getOwnPropertyNames(a).concat(Object.getOwnPropertySymbols(a));
- }
- : function(a) {
- return Object.getOwnPropertyNames(a);
- };
- var s =
- Number.isNaN ||
- function(a) {
- return a !== a;
- };
- (a.exports = e),
- (e.EventEmitter = e),
- (e.prototype._events = void 0),
- (e.prototype._eventsCount = 0),
- (e.prototype._maxListeners = void 0);
- var t = 10;
- Object.defineProperty(e, 'defaultMaxListeners', {
- enumerable: !0,
- get: function() {
- return t;
- },
- set: function(a) {
- if ('number' != typeof a || a < 0 || s(a))
- throw new RangeError(
- 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' +
- a +
- '.'
- );
- t = a;
- }
- }),
- (e.init = function() {
- (void 0 !== this._events && this._events !== Object.getPrototypeOf(this)._events) ||
- ((this._events = Object.create(null)), (this._eventsCount = 0)),
- (this._maxListeners = this._maxListeners || void 0);
- }),
- (e.prototype.setMaxListeners = function(a) {
- if ('number' != typeof a || a < 0 || s(a))
- throw new RangeError(
- 'The value of "n" is out of range. It must be a non-negative number. Received ' +
- a +
- '.'
- );
- return (this._maxListeners = a), this;
- }),
- (e.prototype.getMaxListeners = function() {
- return g(this);
- }),
- (e.prototype.emit = function(a) {
- for (var b = [], c = 1; c < arguments.length; c++) b.push(arguments[c]);
- var d = 'error' === a,
- e = this._events;
- if (void 0 !== e) d = d && void 0 === e.error;
- else if (!d) return !1;
- if (d) {
- var f;
- if ((b.length > 0 && (f = b[0]), f instanceof Error)) throw f;
- var g = new Error('Unhandled error.' + (f ? ' (' + f.message + ')' : ''));
- throw ((g.context = f), g);
- }
- var h = e[a];
- if (void 0 === h) return !1;
- if ('function' == typeof h) r(h, this, b);
- else for (var i = h.length, j = m(h, i), c = 0; c < i; ++c) r(j[c], this, b);
- return !0;
- }),
- (e.prototype.addListener = function(a, b) {
- return h(this, a, b, !1);
- }),
- (e.prototype.on = e.prototype.addListener),
- (e.prototype.prependListener = function(a, b) {
- return h(this, a, b, !0);
- }),
- (e.prototype.once = function(a, b) {
- return f(b), this.on(a, j(this, a, b)), this;
- }),
- (e.prototype.prependOnceListener = function(a, b) {
- return f(b), this.prependListener(a, j(this, a, b)), this;
- }),
- (e.prototype.removeListener = function(a, b) {
- var c, d, e, g, h;
- if ((f(b), (d = this._events), void 0 === d)) return this;
- if (((c = d[a]), void 0 === c)) return this;
- if (c === b || c.listener === b)
- 0 === --this._eventsCount
- ? (this._events = Object.create(null))
- : (delete d[a], d.removeListener && this.emit('removeListener', a, c.listener || b));
- else if ('function' != typeof c) {
- for (e = -1, g = c.length - 1; g >= 0; g--)
- if (c[g] === b || c[g].listener === b) {
- (h = c[g].listener), (e = g);
- break;
- }
- if (e < 0) return this;
- 0 === e ? c.shift() : n(c, e),
- 1 === c.length && (d[a] = c[0]),
- void 0 !== d.removeListener && this.emit('removeListener', a, h || b);
- }
- return this;
- }),
- (e.prototype.off = e.prototype.removeListener),
- (e.prototype.removeAllListeners = function(a) {
- var b, c, d;
- if (((c = this._events), void 0 === c)) return this;
- if (void 0 === c.removeListener)
- return (
- 0 === arguments.length
- ? ((this._events = Object.create(null)), (this._eventsCount = 0))
- : void 0 !== c[a] &&
- (0 === --this._eventsCount ? (this._events = Object.create(null)) : delete c[a]),
- this
- );
- if (0 === arguments.length) {
- var e,
- f = Object.keys(c);
- for (d = 0; d < f.length; ++d)
- (e = f[d]), 'removeListener' !== e && this.removeAllListeners(e);
- return (
- this.removeAllListeners('removeListener'),
- (this._events = Object.create(null)),
- (this._eventsCount = 0),
- this
- );
- }
- if (((b = c[a]), 'function' == typeof b)) this.removeListener(a, b);
- else if (void 0 !== b) for (d = b.length - 1; d >= 0; d--) this.removeListener(a, b[d]);
- return this;
- }),
- (e.prototype.listeners = function(a) {
- return k(this, a, !0);
- }),
- (e.prototype.rawListeners = function(a) {
- return k(this, a, !1);
- }),
- (e.listenerCount = function(a, b) {
- return 'function' == typeof a.listenerCount ? a.listenerCount(b) : l.call(a, b);
- }),
- (e.prototype.listenerCount = l),
- (e.prototype.eventNames = function() {
- return this._eventsCount > 0 ? p(this._events) : [];
- });
- },
- function(a, b, c) {
- a.exports = { console: c(39) };
- },
- function(a, b, c) {
- function d(a, b) {
- (this.log = a),
- (this.listeningLevels = []),
- h.makeBoundMethods(this),
- this.log.once('closing', this.bound.cleanUpListeners),
- this.setupListeners(b.levels);
- }
- function e(a) {
- return a < 10 ? '0' + a.toString(10) : a.toString(10);
- }
- function f(a, b) {
- var c = h.repeat(' ', b || 2);
- return (a || '')
- .split(/\r?\n/)
- .map(function(a) {
- return c + a;
- })
- .join('\n');
- }
- var g = c(0),
- h = c(2);
- (d.prototype.timestamp = function() {
- var a = new Date();
- return (
- a.getUTCFullYear() +
- '-' +
- e(a.getUTCMonth() + 1) +
- '-' +
- e(a.getUTCDate()) +
- 'T' +
- e(a.getUTCHours()) +
- ':' +
- e(a.getUTCMinutes()) +
- ':' +
- e(a.getUTCSeconds()) +
- 'Z'
- );
- }),
- (d.prototype.format = function(a, b) {
- return a + ': ' + this.timestamp() + '\n' + f(b) + '\n\n';
- }),
- (d.prototype.write = function() {
- throw new Error('This should be overwritten by the logger');
- }),
- (d.prototype.setupListeners = function(a) {
- this.cleanUpListeners(),
- (this.listeningLevels = []),
- g.each(
- a,
- g.bind(function(a) {
- var b = 'on' + h.ucfirst(a);
- if (!this.bound[b]) throw new Error('Unable to listen for level "' + a + '"');
- this.listeningLevels.push(a), this.log.on(a, this.bound[b]);
- }, this)
- );
- }),
- (d.prototype.cleanUpListeners = h.handler(function() {
- g.each(
- this.listeningLevels,
- g.bind(function(a) {
- this.log.removeListener(a, this.bound['on' + h.ucfirst(a)]);
- }, this)
- );
- })),
- (d.prototype.onError = h.handler(function(a) {
- this.write('Error' === a.name ? 'ERROR' : a.name, a.stack);
- })),
- (d.prototype.onWarning = h.handler(function(a) {
- this.write('WARNING', a);
- })),
- (d.prototype.onInfo = h.handler(function(a) {
- this.write('INFO', a);
- })),
- (d.prototype.onDebug = h.handler(function(a) {
- this.write('DEBUG', a);
- })),
- (d.prototype.onTrace = h.handler(function(a) {
- this.write('TRACE', this._formatTraceMessage(a));
- })),
- (d.prototype._formatTraceMessage = function(a) {
- return (
- '-> ' +
- a.method +
- ' ' +
- a.url +
- '\n' +
- this._prettyJson(a.body) +
- '\n<- ' +
- a.status +
- '\n' +
- this._prettyJson(a.response)
- );
- }),
- (d.prototype._prettyJson = function(a) {
- try {
- return (
- 'string' == typeof a && (a = JSON.parse(a)),
- JSON.stringify(a, null, ' ').replace(/'/g, '\\u0027')
- );
- } catch (b) {
- return 'string' == typeof a ? a : '';
- }
- }),
- (a.exports = d);
- },
- function(a, b, c) {
- a.exports = { random: c(40), roundRobin: c(41) };
- },
- function(a, b, c) {
- var d = { xhr: c(42), jquery: c(43), angular: c(44) },
- e = c(0);
- e.each(d, function(a, b) {
- 'function' != typeof a && delete d[b];
- }),
- d.xhr ? (d._default = 'xhr') : d.angular ? (d._default = 'angular') : (d._default = 'jquery'),
- (a.exports = d);
- },
- function(a, b, c) {
- function d(a, b) {
- if (
- ((b = b || {}),
- g.call(this),
- (this.log = b.log || new h()),
- (this.pingTimeout = b.pingTimeout || 3e3),
- !a)
- )
- throw new TypeError('Missing host');
- if (!(a instanceof i)) throw new TypeError('Invalid host');
- (this.host = a), f.makeBoundMethods(this);
- }
- a.exports = d;
- var e = c(0),
- f = c(2),
- g = c(15).EventEmitter,
- h = c(5),
- i = c(8),
- j = c(4);
- f.inherits(d, g),
- (d.prototype.request = function() {
- throw new Error('Connection#request must be overwritten by the Connector');
- }),
- (d.prototype.ping = function(a, b) {
- 'function' == typeof a ? ((b = a), (a = null)) : (b = 'function' == typeof b ? b : null);
- var c,
- d,
- f,
- g = this.pingTimeout;
- a && a.hasOwnProperty('requestTimeout') && (g = a.requestTimeout),
- (f = this.request(e.defaults(a || {}, { path: '/', method: 'HEAD' }), function(a) {
- d || (clearTimeout(c), b && b(a));
- })),
- g &&
- (c = setTimeout(function() {
- f && f(), (d = !0), b && b(new j.RequestTimeout('Ping Timeout after ' + g + 'ms'));
- }, g));
- }),
- (d.prototype.setStatus = function(a) {
- var b = this.status;
- (this.status = a),
- this.emit('status set', a, b, this),
- 'closed' === a && this.removeAllListeners();
- });
- },
- function(a, b, c) {
- a.exports = { angular: c(45), json: c(22) };
- },
- function(a, b, c) {
- function d(a) {
- return (d =
- 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
- ? function(a) {
- return typeof a;
- }
- : function(a) {
- return a &&
- 'function' == typeof Symbol &&
- a.constructor === Symbol &&
- a !== Symbol.prototype
- ? 'symbol'
- : typeof a;
- })(a);
- }
- function e() {}
- a.exports = e;
- var f = c(0);
- (e.prototype.serialize = function(a, b, c) {
- switch (d(a)) {
- case 'string':
- return a;
- case 'object':
- if (a) return b || c ? JSON.stringify(a, b, c) : JSON.stringify(a);
- default:
- return;
- }
- }),
- (e.prototype.serialize.contentType = 'application/json'),
- (e.prototype.deserialize = function(a) {
- if ('string' == typeof a)
- try {
- return JSON.parse(a);
- } catch (a) {}
- }),
- (e.prototype.bulkBody = function(a) {
- var b,
- c = '';
- if (f.isArray(a)) for (b = 0; b < a.length; b++) c += this.serialize(a[b]) + '\n';
- else {
- if ('string' != typeof a)
- throw new TypeError(
- 'Bulk body should either be an Array of commands/string, or a String'
- );
- c = a + ('\n' === a[a.length - 1] ? '' : '\n');
- }
- return c;
- }),
- (e.prototype.bulkBody.contentType = 'application/x-ndjson');
- },
- function(a, b, c) {
- function d(a) {
- return function(b) {
- return e.transform(
- b,
- function(b, c, d) {
- var g = e.get(c, a);
- if (g) {
- var h = {
- host: void 0,
- port: void 0,
- _meta: { id: d, name: c.name, version: c.version }
- },
- i = new Error(
- 'Malformed ' +
- a +
- '. Got ' +
- JSON.stringify(g) +
- ' and expected it to match "{hostname?}/{ip}:{port}".'
- ),
- j = f.exec(g);
- if (j)
- return (h.host = j[1] || j[2]), (h.port = parseInt(j[3], 10)), void b.push(h);
- if (g.indexOf('/') > -1) {
- var k = g.split('/');
- if (2 !== k.length) throw i;
- (h.host = k.shift()), (g = k.shift());
- }
- if (g.indexOf(':') < 0) throw i;
- var l = g.split(':');
- if (2 !== l.length) throw i;
- (h.host = h.host || l[0]), (h.port = parseInt(l[1], 10)), b.push(h);
- }
- },
- []
- );
- };
- }
- var e = c(0),
- f = /\[(?:(.*)\/)?(.+?):(\d+)\]/;
- a.exports = d('http.publish_address');
- },
- function(a, b, c) {
- a.exports = {
- _default: c(25),
- 7.6: c(25),
- 7.5: c(46),
- 7.4: c(47),
- 7.3: c(48),
- 7.2: c(49),
- 7.7: c(50),
- '7.x': c(51),
- master: c(52)
- };
- },
- function(a, b, c) {
- var d = c(1).makeFactoryWithModifier(function(a) {
- return c(0).merge(a, { params: { filterPath: { type: 'list', name: 'filter_path' } } });
- }),
- e = c(1).namespaceFactory,
- f = (a.exports = {});
- (f._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'nodes', 'snapshot', 'tasks']),
- (f.bulk = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- type: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- pipeline: { type: 'string' }
- },
- urls: [
- {
- fmt: '/<%=index%>/<%=type%>/_bulk',
- req: { index: { type: 'string' }, type: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_bulk', req: { index: { type: 'string' } } },
- { fmt: '/_bulk' }
- ],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.cat = e()),
- (f.cat.prototype.aliases = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/aliases/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/_cat/aliases' }
- ]
- })),
- (f.cat.prototype.allocation = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/allocation/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- { fmt: '/_cat/allocation' }
- ]
- })),
- (f.cat.prototype.count = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/count/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/count' }
- ]
- })),
- (f.cat.prototype.fielddata = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 },
- fields: { type: 'list' }
- },
- urls: [
- { fmt: '/_cat/fielddata/<%=fields%>', req: { fields: { type: 'list' } } },
- { fmt: '/_cat/fielddata' }
- ]
- })),
- (f.cat.prototype.health = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- ts: { type: 'boolean', default: !0 },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/health' }
- })),
- (f.cat.prototype.help = d({
- params: { help: { type: 'boolean', default: !1 }, s: { type: 'list' } },
- url: { fmt: '/_cat' }
- })),
- (f.cat.prototype.indices = d({
- params: {
- format: { type: 'string' },
- bytes: { type: 'enum', options: ['b', 'k', 'm', 'g'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- health: { type: 'enum', default: null, options: ['green', 'yellow', 'red'] },
- help: { type: 'boolean', default: !1 },
- pri: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 },
- includeUnloadedSegments: { type: 'boolean', default: !1, name: 'include_unloaded_segments' }
- },
- urls: [
- { fmt: '/_cat/indices/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/indices' }
- ]
- })),
- (f.cat.prototype.master = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/master' }
- })),
- (f.cat.prototype.nodeattrs = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/nodeattrs' }
- })),
- (f.cat.prototype.nodes = d({
- params: {
- format: { type: 'string' },
- fullId: { type: 'boolean', name: 'full_id' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/nodes' }
- })),
- (f.cat.prototype.pendingTasks = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/pending_tasks' }
- })),
- (f.cat.prototype.plugins = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/plugins' }
- })),
- (f.cat.prototype.recovery = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/recovery/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/recovery' }
- ]
- })),
- (f.cat.prototype.repositories = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean', default: !1 },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/repositories' }
- })),
- (f.cat.prototype.segments = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/segments/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/segments' }
- ]
- })),
- (f.cat.prototype.shards = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/shards/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/shards' }
- ]
- })),
- (f.cat.prototype.snapshots = d({
- params: {
- format: { type: 'string' },
- ignoreUnavailable: { type: 'boolean', default: !1, name: 'ignore_unavailable' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/snapshots/<%=repository%>', req: { repository: { type: 'list' } } },
- { fmt: '/_cat/snapshots' }
- ]
- })),
- (f.cat.prototype.tasks = d({
- params: {
- format: { type: 'string' },
- nodeId: { type: 'list', name: 'node_id' },
- actions: { type: 'list' },
- detailed: { type: 'boolean' },
- parentTask: { type: 'number', name: 'parent_task' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/tasks' }
- })),
- (f.cat.prototype.templates = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/templates/<%=name%>', req: { name: { type: 'string' } } },
- { fmt: '/_cat/templates' }
- ]
- })),
- (f.cat.prototype.threadPool = d({
- params: {
- format: { type: 'string' },
- size: { type: 'enum', options: ['', 'k', 'm', 'g', 't', 'p'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- {
- fmt: '/_cat/thread_pool/<%=threadPoolPatterns%>',
- req: { threadPoolPatterns: { type: 'list' } }
- },
- { fmt: '/_cat/thread_pool' }
- ]
- })),
- (f.clearScroll = d({
- url: { fmt: '/_search/scroll' },
- paramAsBody: { param: 'scrollId', body: 'scroll_id' },
- method: 'DELETE'
- })),
- (f.cluster = e()),
- (f.cluster.prototype.allocationExplain = d({
- params: {
- includeYesDecisions: { type: 'boolean', name: 'include_yes_decisions' },
- includeDiskInfo: { type: 'boolean', name: 'include_disk_info' }
- },
- url: { fmt: '/_cluster/allocation/explain' },
- method: 'POST'
- })),
- (f.cluster.prototype.getSettings = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- url: { fmt: '/_cluster/settings' }
- })),
- (f.cluster.prototype.health = d({
- params: {
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- level: { type: 'enum', default: 'cluster', options: ['cluster', 'indices', 'shards'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- waitForNodes: { type: 'string', name: 'wait_for_nodes' },
- waitForEvents: {
- type: 'enum',
- options: ['immediate', 'urgent', 'high', 'normal', 'low', 'languid'],
- name: 'wait_for_events'
- },
- waitForNoRelocatingShards: { type: 'boolean', name: 'wait_for_no_relocating_shards' },
- waitForNoInitializingShards: { type: 'boolean', name: 'wait_for_no_initializing_shards' },
- waitForStatus: {
- type: 'enum',
- default: null,
- options: ['green', 'yellow', 'red'],
- name: 'wait_for_status'
- }
- },
- urls: [
- { fmt: '/_cluster/health/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cluster/health' }
- ]
- })),
- (f.cluster.prototype.pendingTasks = d({
- params: { local: { type: 'boolean' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_cluster/pending_tasks' }
- })),
- (f.cluster.prototype.putSettings = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_cluster/settings' },
- needBody: !0,
- method: 'PUT'
- })),
- (f.cluster.prototype.remoteInfo = d({ url: { fmt: '/_remote/info' } })),
- (f.cluster.prototype.reroute = d({
- params: {
- dryRun: { type: 'boolean', name: 'dry_run' },
- explain: { type: 'boolean' },
- retryFailed: { type: 'boolean', name: 'retry_failed' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'master_node',
- 'version'
- ]
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_cluster/reroute' },
- method: 'POST'
- })),
- (f.cluster.prototype.state = d({
- params: {
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- waitForMetadataVersion: { type: 'number', name: 'wait_for_metadata_version' },
- waitForTimeout: { type: 'time', name: 'wait_for_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- {
- fmt: '/_cluster/state/<%=metric%>/<%=index%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'routing_nodes',
- 'master_node',
- 'version'
- ]
- },
- index: { type: 'list' }
- }
- },
- {
- fmt: '/_cluster/state/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'routing_nodes',
- 'master_node',
- 'version'
- ]
- }
- }
- },
- { fmt: '/_cluster/state' }
- ]
- })),
- (f.cluster.prototype.stats = d({
- params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
- urls: [
- { fmt: '/_cluster/stats/nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- { fmt: '/_cluster/stats' }
- ]
- })),
- (f.count = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- minScore: { type: 'number', name: 'min_score' },
- preference: { type: 'string' },
- routing: { type: 'list' },
- q: { type: 'string' },
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- lenient: { type: 'boolean' },
- terminateAfter: { type: 'number', name: 'terminate_after' }
- },
- urls: [{ fmt: '/<%=index%>/_count', req: { index: { type: 'list' } } }, { fmt: '/_count' }],
- method: 'POST'
- })),
- (f.create = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- },
- pipeline: { type: 'string' }
- },
- url: {
- fmt: '/<%=index%>/_create/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- needBody: !0,
- method: 'POST'
- })),
- (f.delete = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'DELETE'
- })),
- (f.deleteByQuery = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- searchTimeout: { type: 'time', name: 'search_timeout' },
- size: { type: 'number' },
- maxDocs: { type: 'number', name: 'max_docs' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- version: { type: 'boolean' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- scrollSize: { type: 'number', name: 'scroll_size' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- slices: { type: 'number', default: 1 }
- },
- url: { fmt: '/<%=index%>/_delete_by_query', req: { index: { type: 'list' } } },
- needBody: !0,
- method: 'POST'
- })),
- (f.deleteByQueryRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_delete_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- })),
- (f.deleteScript = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.exists = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'HEAD'
- })),
- (f.existsSource = d({
- params: {
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_source/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'HEAD'
- })),
- (f.explain = d({
- params: {
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- analyzer: { type: 'string' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- storedFields: { type: 'list', name: 'stored_fields' },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' }
- },
- url: {
- fmt: '/<%=index%>/_explain/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.fieldCaps = d({
- params: {
- fields: { type: 'list' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- includeUnmapped: { type: 'boolean', default: !1, name: 'include_unmapped' }
- },
- urls: [
- { fmt: '/<%=index%>/_field_caps', req: { index: { type: 'list' } } },
- { fmt: '/_field_caps' }
- ],
- method: 'POST'
- })),
- (f.get = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- }
- })),
- (f.getScript = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
- })),
- (f.getSource = d({
- params: {
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_source/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- }
- })),
- (f.index = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- opType: { type: 'enum', default: 'index', options: ['index', 'create'], name: 'op_type' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
- pipeline: { type: 'string' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_doc', req: { index: { type: 'string' } } }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.indices = e()),
- (f.indices.prototype.analyze = d({
- params: { index: { type: 'string' } },
- urls: [
- { fmt: '/<%=index%>/_analyze', req: { index: { type: 'string' } } },
- { fmt: '/_analyze' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.clearCache = d({
- params: {
- fielddata: { type: 'boolean' },
- fields: { type: 'list' },
- query: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- index: { type: 'list' },
- request: { type: 'boolean' }
- },
- urls: [
- { fmt: '/<%=index%>/_cache/clear', req: { index: { type: 'list' } } },
- { fmt: '/_cache/clear' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.clone = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_clone/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.close = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: { fmt: '/<%=index%>/_close', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.indices.prototype.create = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'string' } } },
- method: 'PUT'
- })),
- (f.indices.prototype.delete = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
- method: 'DELETE'
- })),
- (f.indices.prototype.deleteAlias = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- method: 'DELETE'
- })),
- (f.indices.prototype.deleteTemplate = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.indices.prototype.exists = d({
- params: {
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
- method: 'HEAD'
- })),
- (f.indices.prototype.existsAlias = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } }
- ],
- method: 'HEAD'
- })),
- (f.indices.prototype.existsTemplate = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } },
- method: 'HEAD'
- })),
- (f.indices.prototype.existsType = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- url: {
- fmt: '/<%=index%>/_mapping/<%=type%>',
- req: { index: { type: 'list' }, type: { type: 'list' } }
- },
- method: 'HEAD'
- })),
- (f.indices.prototype.flush = d({
- params: {
- force: { type: 'boolean' },
- waitIfOngoing: { type: 'boolean', name: 'wait_if_ongoing' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_flush', req: { index: { type: 'list' } } }, { fmt: '/_flush' }],
- method: 'POST'
- })),
- (f.indices.prototype.flushSynced = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_flush/synced', req: { index: { type: 'list' } } },
- { fmt: '/_flush/synced' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.forcemerge = d({
- params: {
- flush: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- maxNumSegments: { type: 'number', name: 'max_num_segments' },
- onlyExpungeDeletes: { type: 'boolean', name: 'only_expunge_deletes' }
- },
- urls: [
- { fmt: '/<%=index%>/_forcemerge', req: { index: { type: 'list' } } },
- { fmt: '/_forcemerge' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.get = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' },
- masterTimeout: { type: 'time', name: 'master_timeout' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } }
- })),
- (f.indices.prototype.getAlias = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/<%=index%>/_alias', req: { index: { type: 'list' } } },
- { fmt: '/_alias' }
- ]
- })),
- (f.indices.prototype.getFieldMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- includeDefaults: { type: 'boolean', name: 'include_defaults' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_mapping/field/<%=fields%>',
- req: { index: { type: 'list' }, fields: { type: 'list' } }
- },
- { fmt: '/_mapping/field/<%=fields%>', req: { fields: { type: 'list' } } }
- ]
- })),
- (f.indices.prototype.getMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- urls: [{ fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } }, { fmt: '/_mapping' }]
- })),
- (f.indices.prototype.getSettings = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: ['open', 'closed'],
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- local: { type: 'boolean' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_settings/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
- { fmt: '/_settings/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/_settings' }
- ]
- })),
- (f.indices.prototype.getTemplate = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- urls: [{ fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } }, { fmt: '/_template' }]
- })),
- (f.indices.prototype.getUpgrade = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }]
- })),
- (f.indices.prototype.open = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'closed',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: { fmt: '/<%=index%>/_open', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.indices.prototype.putAlias = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'string' } }
- },
- method: 'PUT'
- })),
- (f.indices.prototype.putMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- url: { fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.putSettings = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- preserveExisting: { type: 'boolean', name: 'preserve_existing' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' }
- },
- urls: [
- { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
- { fmt: '/_settings' }
- ],
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.putTemplate = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- order: { type: 'number' },
- create: { type: 'boolean', default: !1 },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- flatSettings: { type: 'boolean', name: 'flat_settings' }
- },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.recovery = d({
- params: {
- detailed: { type: 'boolean', default: !1 },
- activeOnly: { type: 'boolean', default: !1, name: 'active_only' }
- },
- urls: [
- { fmt: '/<%=index%>/_recovery', req: { index: { type: 'list' } } },
- { fmt: '/_recovery' }
- ]
- })),
- (f.indices.prototype.refresh = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_refresh', req: { index: { type: 'list' } } }, { fmt: '/_refresh' }],
- method: 'POST'
- })),
- (f.indices.prototype.rollover = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- timeout: { type: 'time' },
- dryRun: { type: 'boolean', name: 'dry_run' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- urls: [
- {
- fmt: '/<%=alias%>/_rollover/<%=newIndex%>',
- req: { alias: { type: 'string' }, newIndex: { type: 'string' } }
- },
- { fmt: '/<%=alias%>/_rollover', req: { alias: { type: 'string' } } }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.segments = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- verbose: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/<%=index%>/_segments', req: { index: { type: 'list' } } },
- { fmt: '/_segments' }
- ]
- })),
- (f.indices.prototype.shardStores = d({
- params: {
- status: { type: 'list', options: ['green', 'yellow', 'red', 'all'] },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_shard_stores', req: { index: { type: 'list' } } },
- { fmt: '/_shard_stores' }
- ]
- })),
- (f.indices.prototype.shrink = d({
- params: {
- copySettings: { type: 'boolean', name: 'copy_settings' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_shrink/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.split = d({
- params: {
- copySettings: { type: 'boolean', name: 'copy_settings' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_split/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.stats = d({
- params: {
- completionFields: { type: 'list', name: 'completion_fields' },
- fielddataFields: { type: 'list', name: 'fielddata_fields' },
- fields: { type: 'list' },
- groups: { type: 'list' },
- level: { type: 'enum', default: 'indices', options: ['cluster', 'indices', 'shards'] },
- types: { type: 'list' },
- includeSegmentFileSizes: {
- type: 'boolean',
- default: !1,
- name: 'include_segment_file_sizes'
- },
- includeUnloadedSegments: {
- type: 'boolean',
- default: !1,
- name: 'include_unloaded_segments'
- },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- forbidClosedIndices: { type: 'boolean', default: !0, name: 'forbid_closed_indices' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_stats/<%=metric%>',
- req: {
- index: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- {
- fmt: '/_stats/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- { fmt: '/<%=index%>/_stats', req: { index: { type: 'list' } } },
- { fmt: '/_stats' }
- ]
- })),
- (f.indices.prototype.updateAliases = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_aliases' },
- needBody: !0,
- method: 'POST'
- })),
- (f.indices.prototype.upgrade = d({
- params: {
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- onlyAncientSegments: { type: 'boolean', name: 'only_ancient_segments' }
- },
- urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }],
- method: 'POST'
- })),
- (f.indices.prototype.validateQuery = d({
- params: {
- explain: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- q: { type: 'string' },
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- lenient: { type: 'boolean' },
- rewrite: { type: 'boolean' },
- allShards: { type: 'boolean', name: 'all_shards' }
- },
- urls: [
- { fmt: '/<%=index%>/_validate/query', req: { index: { type: 'list' } } },
- { fmt: '/_validate/query' }
- ],
- method: 'POST'
- })),
- (f.info = d({ url: { fmt: '/' } })),
- (f.ingest = e()),
- (f.ingest.prototype.deletePipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.ingest.prototype.getPipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- urls: [
- { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- { fmt: '/_ingest/pipeline' }
- ]
- })),
- (f.ingest.prototype.processorGrok = d({ url: { fmt: '/_ingest/processor/grok' } })),
- (f.ingest.prototype.putPipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.ingest.prototype.simulate = d({
- params: { verbose: { type: 'boolean', default: !1 } },
- urls: [
- { fmt: '/_ingest/pipeline/<%=id%>/_simulate', req: { id: { type: 'string' } } },
- { fmt: '/_ingest/pipeline/_simulate' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.mget = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' }
- },
- urls: [{ fmt: '/<%=index%>/_mget', req: { index: { type: 'string' } } }, { fmt: '/_mget' }],
- needBody: !0,
- method: 'POST'
- })),
- (f.msearch = d({
- params: {
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
- maxConcurrentShardRequests: {
- type: 'number',
- default: 5,
- name: 'max_concurrent_shard_requests'
- },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [{ fmt: '/<%=index%>/_msearch', req: { index: { type: 'list' } } }, { fmt: '/_msearch' }],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.msearchTemplate = d({
- params: {
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [
- { fmt: '/<%=index%>/_msearch/template', req: { index: { type: 'list' } } },
- { fmt: '/_msearch/template' }
- ],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.mtermvectors = d({
- params: {
- ids: { type: 'list', required: !1 },
- termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
- fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
- fields: { type: 'list', required: !1 },
- offsets: { type: 'boolean', default: !0, required: !1 },
- positions: { type: 'boolean', default: !0, required: !1 },
- payloads: { type: 'boolean', default: !0, required: !1 },
- preference: { type: 'string', required: !1 },
- routing: { type: 'string', required: !1 },
- realtime: { type: 'boolean', required: !1 },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_mtermvectors', req: { index: { type: 'string' } } },
- { fmt: '/_mtermvectors' }
- ],
- method: 'POST'
- })),
- (f.nodes = e()),
- (f.nodes.prototype.hotThreads = d({
- params: {
- interval: { type: 'time' },
- snapshots: { type: 'number' },
- threads: { type: 'number' },
- ignoreIdleThreads: { type: 'boolean', name: 'ignore_idle_threads' },
- type: { type: 'enum', options: ['cpu', 'wait', 'block'] },
- timeout: { type: 'time' }
- },
- url: {}
- })),
- (f.nodes.prototype.info = d({
- params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- 'settings',
- 'os',
- 'process',
- 'jvm',
- 'thread_pool',
- 'transport',
- 'http',
- 'plugins',
- 'ingest'
- ]
- }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- 'settings',
- 'os',
- 'process',
- 'jvm',
- 'thread_pool',
- 'transport',
- 'http',
- 'plugins',
- 'ingest'
- ]
- }
- }
- },
- { fmt: '/_nodes' }
- ]
- })),
- (f.nodes.prototype.reloadSecureSettings = d({
- params: { timeout: { type: 'time' } },
- urls: [
- { fmt: '/_nodes/<%=nodeId%>/reload_secure_settings', req: { nodeId: { type: 'list' } } },
- { fmt: '/_nodes/reload_secure_settings' }
- ],
- method: 'POST'
- })),
- (f.nodes.prototype.stats = d({
- params: {
- completionFields: { type: 'list', name: 'completion_fields' },
- fielddataFields: { type: 'list', name: 'fielddata_fields' },
- fields: { type: 'list' },
- groups: { type: 'boolean' },
- level: { type: 'enum', default: 'node', options: ['indices', 'node', 'shards'] },
- types: { type: 'list' },
- timeout: { type: 'time' },
- includeSegmentFileSizes: {
- type: 'boolean',
- default: !1,
- name: 'include_segment_file_sizes'
- }
- },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- },
- indexMetric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- {
- fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- }
- }
- },
- {
- fmt: '/_nodes/stats/<%=metric%>/<%=indexMetric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- },
- indexMetric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>/stats', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/stats/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- }
- }
- },
- { fmt: '/_nodes/stats' }
- ]
- })),
- (f.nodes.prototype.usage = d({
- params: { timeout: { type: 'time' } },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/usage/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: { type: 'list', options: ['_all', 'rest_actions'] }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>/usage', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/usage/<%=metric%>',
- req: { metric: { type: 'list', options: ['_all', 'rest_actions'] } }
- },
- { fmt: '/_nodes/usage' }
- ]
- })),
- (f.ping = d({ url: { fmt: '/' }, method: 'HEAD' })),
- (f.putScript = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- context: { type: 'string' }
- },
- urls: [
- {
- fmt: '/_scripts/<%=id%>/<%=context%>',
- req: { id: { type: 'string' }, context: { type: 'string' } }
- },
- { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
- ],
- needBody: !0,
- method: 'PUT'
- })),
- (f.rankEval = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_rank_eval', req: { index: { type: 'list' } } },
- { fmt: '/_rank_eval' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.reindex = d({
- params: {
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- scroll: { type: 'time', default: '5m' },
- slices: { type: 'number', default: 1 },
- maxDocs: { type: 'number', name: 'max_docs' }
- },
- url: { fmt: '/_reindex' },
- needBody: !0,
- method: 'POST'
- })),
- (f.reindexRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_reindex/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- })),
- (f.renderSearchTemplate = d({
- urls: [
- { fmt: '/_render/template/<%=id%>', req: { id: { type: 'string' } } },
- { fmt: '/_render/template' }
- ],
- method: 'POST'
- })),
- (f.scriptsPainlessExecute = d({ url: { fmt: '/_scripts/painless/_execute' }, method: 'POST' })),
- (f.scroll = d({
- params: {
- scroll: { type: 'time' },
- scrollId: { type: 'string', name: 'scroll_id' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
- },
- url: { fmt: '/_search/scroll' },
- paramAsBody: { param: 'scrollId', body: 'scroll_id' },
- method: 'POST'
- })),
- (f.search = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- ccsMinimizeRoundtrips: {
- type: 'boolean',
- default: 'true',
- name: 'ccs_minimize_roundtrips'
- },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- explain: { type: 'boolean' },
- storedFields: { type: 'list', name: 'stored_fields' },
- docvalueFields: { type: 'list', name: 'docvalue_fields' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- size: { type: 'number' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- suggestField: { type: 'string', name: 'suggest_field' },
- suggestMode: {
- type: 'enum',
- default: 'missing',
- options: ['missing', 'popular', 'always'],
- name: 'suggest_mode'
- },
- suggestSize: { type: 'number', name: 'suggest_size' },
- suggestText: { type: 'string', name: 'suggest_text' },
- timeout: { type: 'time' },
- trackScores: { type: 'boolean', name: 'track_scores' },
- trackTotalHits: { type: 'boolean', name: 'track_total_hits' },
- allowPartialSearchResults: {
- type: 'boolean',
- default: !0,
- name: 'allow_partial_search_results'
- },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- version: { type: 'boolean' },
- seqNoPrimaryTerm: { type: 'boolean', name: 'seq_no_primary_term' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- batchedReduceSize: { type: 'number', default: 512, name: 'batched_reduce_size' },
- maxConcurrentShardRequests: {
- type: 'number',
- default: 5,
- name: 'max_concurrent_shard_requests'
- },
- preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
- },
- urls: [{ fmt: '/<%=index%>/_search', req: { index: { type: 'list' } } }, { fmt: '/_search' }],
- method: 'POST'
- })),
- (f.searchShards = d({
- params: {
- preference: { type: 'string' },
- routing: { type: 'string' },
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_search_shards', req: { index: { type: 'list' } } },
- { fmt: '/_search_shards' }
- ],
- method: 'POST'
- })),
- (f.searchTemplate = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- preference: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- explain: { type: 'boolean' },
- profile: { type: 'boolean' },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [
- { fmt: '/<%=index%>/_search/template', req: { index: { type: 'list' } } },
- { fmt: '/_search/template' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.snapshot = e()),
- (f.snapshot.prototype.create = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.snapshot.prototype.createRepository = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- verify: { type: 'boolean' }
- },
- url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'string' } } },
- needBody: !0,
- method: 'POST'
- })),
- (f.snapshot.prototype.delete = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'DELETE'
- })),
- (f.snapshot.prototype.deleteRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
- method: 'DELETE'
- })),
- (f.snapshot.prototype.get = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- verbose: { type: 'boolean' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
- }
- })),
- (f.snapshot.prototype.getRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, local: { type: 'boolean' } },
- urls: [
- { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
- { fmt: '/_snapshot' }
- ]
- })),
- (f.snapshot.prototype.restore = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_restore',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.snapshot.prototype.status = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' }
- },
- urls: [
- {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_status',
- req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
- },
- { fmt: '/_snapshot/<%=repository%>/_status', req: { repository: { type: 'string' } } },
- { fmt: '/_snapshot/_status' }
- ]
- })),
- (f.snapshot.prototype.verifyRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_snapshot/<%=repository%>/_verify', req: { repository: { type: 'string' } } },
- method: 'POST'
- })),
- (f.tasks = e()),
- (f.tasks.prototype.cancel = d({
- params: {
- nodes: { type: 'list' },
- actions: { type: 'list' },
- parentTaskId: { type: 'string', name: 'parent_task_id' }
- },
- urls: [
- { fmt: '/_tasks/<%=taskId%>/_cancel', req: { taskId: { type: 'string' } } },
- { fmt: '/_tasks/_cancel' }
- ],
- method: 'POST'
- })),
- (f.tasks.prototype.get = d({
- params: {
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_tasks/<%=taskId%>', req: { taskId: { type: 'string' } } }
- })),
- (f.tasks.prototype.list = d({
- params: {
- nodes: { type: 'list' },
- actions: { type: 'list' },
- detailed: { type: 'boolean' },
- parentTaskId: { type: 'string', name: 'parent_task_id' },
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- groupBy: {
- type: 'enum',
- default: 'nodes',
- options: ['nodes', 'parents', 'none'],
- name: 'group_by'
- },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_tasks' }
- })),
- (f.termvectors = d({
- params: {
- termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
- fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
- fields: { type: 'list', required: !1 },
- offsets: { type: 'boolean', default: !0, required: !1 },
- positions: { type: 'boolean', default: !0, required: !1 },
- payloads: { type: 'boolean', default: !0, required: !1 },
- preference: { type: 'string', required: !1 },
- routing: { type: 'string', required: !1 },
- realtime: { type: 'boolean', required: !1 },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- urls: [
- {
- fmt: '/<%=index%>/_termvectors/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_termvectors', req: { index: { type: 'string' } } }
- ],
- method: 'POST'
- })),
- (f.update = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- lang: { type: 'string' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- retryOnConflict: { type: 'number', name: 'retry_on_conflict' },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' }
- },
- url: {
- fmt: '/<%=index%>/_update/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- needBody: !0,
- method: 'POST'
- })),
- (f.updateByQuery = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- pipeline: { type: 'string' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- searchTimeout: { type: 'time', name: 'search_timeout' },
- size: { type: 'number' },
- maxDocs: { type: 'number', name: 'max_docs' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- version: { type: 'boolean' },
- versionType: { type: 'boolean', name: 'version_type' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- scrollSize: { type: 'number', name: 'scroll_size' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- slices: { type: 'number', default: 1 }
- },
- url: { fmt: '/<%=index%>/_update_by_query', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.updateByQueryRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_update_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- }));
- },
- function(a, b, c) {
- function d() {
- throw new Error(
- 'Looks like you are expecting the previous "elasticsearch" module. It is now the "es" module. To create a client with this module use `new es.Client(params)`.'
- );
- }
- (d.Client = c(10)), (d.ConnectionPool = c(9)), (d.Transport = c(6)), (d.errors = c(4)), (a.exports = d);
- },
- function(a, b, c) {
- 'use strict';
- function d(a) {
- var b = a.length;
- if (b % 4 > 0) throw new Error('Invalid string. Length must be a multiple of 4');
- var c = a.indexOf('=');
- c === -1 && (c = b);
- var d = c === b ? 0 : 4 - (c % 4);
- return [c, d];
- }
- function e(a) {
- var b = d(a),
- c = b[0],
- e = b[1];
- return (3 * (c + e)) / 4 - e;
- }
- function f(a, b, c) {
- return (3 * (b + c)) / 4 - c;
- }
- function g(a) {
- var b,
- c,
- e = d(a),
- g = e[0],
- h = e[1],
- i = new m(f(a, g, h)),
- j = 0,
- k = h > 0 ? g - 4 : g;
- for (c = 0; c < k; c += 4)
- (b =
- (l[a.charCodeAt(c)] << 18) |
- (l[a.charCodeAt(c + 1)] << 12) |
- (l[a.charCodeAt(c + 2)] << 6) |
- l[a.charCodeAt(c + 3)]),
- (i[j++] = (b >> 16) & 255),
- (i[j++] = (b >> 8) & 255),
- (i[j++] = 255 & b);
- return (
- 2 === h &&
- ((b = (l[a.charCodeAt(c)] << 2) | (l[a.charCodeAt(c + 1)] >> 4)), (i[j++] = 255 & b)),
- 1 === h &&
- ((b =
- (l[a.charCodeAt(c)] << 10) |
- (l[a.charCodeAt(c + 1)] << 4) |
- (l[a.charCodeAt(c + 2)] >> 2)),
- (i[j++] = (b >> 8) & 255),
- (i[j++] = 255 & b)),
- i
- );
- }
- function h(a) {
- return k[(a >> 18) & 63] + k[(a >> 12) & 63] + k[(a >> 6) & 63] + k[63 & a];
- }
- function i(a, b, c) {
- for (var d, e = [], f = b; f < c; f += 3)
- (d = ((a[f] << 16) & 16711680) + ((a[f + 1] << 8) & 65280) + (255 & a[f + 2])), e.push(h(d));
- return e.join('');
- }
- function j(a) {
- for (var b, c = a.length, d = c % 3, e = [], f = 16383, g = 0, h = c - d; g < h; g += f)
- e.push(i(a, g, g + f > h ? h : g + f));
- return (
- 1 === d
- ? ((b = a[c - 1]), e.push(k[b >> 2] + k[(b << 4) & 63] + '=='))
- : 2 === d &&
- ((b = (a[c - 2] << 8) + a[c - 1]),
- e.push(k[b >> 10] + k[(b >> 4) & 63] + k[(b << 2) & 63] + '=')),
- e.join('')
- );
- }
- (b.byteLength = e), (b.toByteArray = g), (b.fromByteArray = j);
- for (
- var k = [],
- l = [],
- m = 'undefined' != typeof Uint8Array ? Uint8Array : Array,
- n = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
- o = 0,
- p = n.length;
- o < p;
- ++o
- )
- (k[o] = n[o]), (l[n.charCodeAt(o)] = o);
- (l['-'.charCodeAt(0)] = 62), (l['_'.charCodeAt(0)] = 63);
- },
- function(a, b) {
- (b.read = function(a, b, c, d, e) {
- var f,
- g,
- h = 8 * e - d - 1,
- i = (1 << h) - 1,
- j = i >> 1,
- k = -7,
- l = c ? e - 1 : 0,
- m = c ? -1 : 1,
- n = a[b + l];
- for (
- l += m, f = n & ((1 << -k) - 1), n >>= -k, k += h;
- k > 0;
- f = 256 * f + a[b + l], l += m, k -= 8
- );
- for (g = f & ((1 << -k) - 1), f >>= -k, k += d; k > 0; g = 256 * g + a[b + l], l += m, k -= 8);
- if (0 === f) f = 1 - j;
- else {
- if (f === i) return g ? NaN : (n ? -1 : 1) * (1 / 0);
- (g += Math.pow(2, d)), (f -= j);
- }
- return (n ? -1 : 1) * g * Math.pow(2, f - d);
- }),
- (b.write = function(a, b, c, d, e, f) {
- var g,
- h,
- i,
- j = 8 * f - e - 1,
- k = (1 << j) - 1,
- l = k >> 1,
- m = 23 === e ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
- n = d ? 0 : f - 1,
- o = d ? 1 : -1,
- p = b < 0 || (0 === b && 1 / b < 0) ? 1 : 0;
- for (
- b = Math.abs(b),
- isNaN(b) || b === 1 / 0
- ? ((h = isNaN(b) ? 1 : 0), (g = k))
- : ((g = Math.floor(Math.log(b) / Math.LN2)),
- b * (i = Math.pow(2, -g)) < 1 && (g--, (i *= 2)),
- (b += g + l >= 1 ? m / i : m * Math.pow(2, 1 - l)),
- b * i >= 2 && (g++, (i /= 2)),
- g + l >= k
- ? ((h = 0), (g = k))
- : g + l >= 1
- ? ((h = (b * i - 1) * Math.pow(2, e)), (g += l))
- : ((h = b * Math.pow(2, l - 1) * Math.pow(2, e)), (g = 0)));
- e >= 8;
- a[c + n] = 255 & h, n += o, h /= 256, e -= 8
- );
- for (g = (g << e) | h, j += e; j > 0; a[c + n] = 255 & g, n += o, g /= 256, j -= 8);
- a[c + n - o] |= 128 * p;
- });
- },
- function(a, b) {
- var c = {}.toString;
- a.exports =
- Array.isArray ||
- function(a) {
- return '[object Array]' == c.call(a);
- };
- },
- function(a, b, c) {
- (function(a) {
- function d(a, c) {
- var d = { seen: [], stylize: f };
- return (
- arguments.length >= 3 && (d.depth = arguments[2]),
- arguments.length >= 4 && (d.colors = arguments[3]),
- o(c) ? (d.showHidden = c) : c && b._extend(d, c),
- u(d.showHidden) && (d.showHidden = !1),
- u(d.depth) && (d.depth = 2),
- u(d.colors) && (d.colors = !1),
- u(d.customInspect) && (d.customInspect = !0),
- d.colors && (d.stylize = e),
- h(d, a, d.depth)
- );
- }
- function e(a, b) {
- var c = d.styles[b];
- return c ? '[' + d.colors[c][0] + 'm' + a + '[' + d.colors[c][1] + 'm' : a;
- }
- function f(a, b) {
- return a;
- }
- function g(a) {
- var b = {};
- return (
- a.forEach(function(a, c) {
- b[a] = !0;
- }),
- b
- );
- }
- function h(a, c, d) {
- if (
- a.customInspect &&
- c &&
- z(c.inspect) &&
- c.inspect !== b.inspect &&
- (!c.constructor || c.constructor.prototype !== c)
- ) {
- var e = c.inspect(d, a);
- return s(e) || (e = h(a, e, d)), e;
- }
- var f = i(a, c);
- if (f) return f;
- var o = Object.keys(c),
- p = g(o);
- if (
- (a.showHidden && (o = Object.getOwnPropertyNames(c)),
- y(c) && (o.indexOf('message') >= 0 || o.indexOf('description') >= 0))
- )
- return j(c);
- if (0 === o.length) {
- if (z(c)) {
- var q = c.name ? ': ' + c.name : '';
- return a.stylize('[Function' + q + ']', 'special');
- }
- if (v(c)) return a.stylize(RegExp.prototype.toString.call(c), 'regexp');
- if (x(c)) return a.stylize(Date.prototype.toString.call(c), 'date');
- if (y(c)) return j(c);
- }
- var r = '',
- t = !1,
- u = ['{', '}'];
- if ((n(c) && ((t = !0), (u = ['[', ']'])), z(c))) {
- var w = c.name ? ': ' + c.name : '';
- r = ' [Function' + w + ']';
- }
- if (
- (v(c) && (r = ' ' + RegExp.prototype.toString.call(c)),
- x(c) && (r = ' ' + Date.prototype.toUTCString.call(c)),
- y(c) && (r = ' ' + j(c)),
- 0 === o.length && (!t || 0 == c.length))
- )
- return u[0] + r + u[1];
- if (d < 0)
- return v(c)
- ? a.stylize(RegExp.prototype.toString.call(c), 'regexp')
- : a.stylize('[Object]', 'special');
- a.seen.push(c);
- var A;
- return (
- (A = t
- ? k(a, c, d, p, o)
- : o.map(function(b) {
- return l(a, c, d, p, b, t);
- })),
- a.seen.pop(),
- m(A, r, u)
- );
- }
- function i(a, b) {
- if (u(b)) return a.stylize('undefined', 'undefined');
- if (s(b)) {
- var c =
- "'" +
- JSON.stringify(b)
- .replace(/^"|"$/g, '')
- .replace(/'/g, "\\'")
- .replace(/\\"/g, '"') +
- "'";
- return a.stylize(c, 'string');
- }
- return r(b)
- ? a.stylize('' + b, 'number')
- : o(b)
- ? a.stylize('' + b, 'boolean')
- : p(b)
- ? a.stylize('null', 'null')
- : void 0;
- }
- function j(a) {
- return '[' + Error.prototype.toString.call(a) + ']';
- }
- function k(a, b, c, d, e) {
- for (var f = [], g = 0, h = b.length; g < h; ++g)
- E(b, String(g)) ? f.push(l(a, b, c, d, String(g), !0)) : f.push('');
- return (
- e.forEach(function(e) {
- e.match(/^\d+$/) || f.push(l(a, b, c, d, e, !0));
- }),
- f
- );
- }
- function l(a, b, c, d, e, f) {
- var g, i, j;
- if (
- ((j = Object.getOwnPropertyDescriptor(b, e) || { value: b[e] }),
- j.get
- ? (i = j.set
- ? a.stylize('[Getter/Setter]', 'special')
- : a.stylize('[Getter]', 'special'))
- : j.set && (i = a.stylize('[Setter]', 'special')),
- E(d, e) || (g = '[' + e + ']'),
- i ||
- (a.seen.indexOf(j.value) < 0
- ? ((i = p(c) ? h(a, j.value, null) : h(a, j.value, c - 1)),
- i.indexOf('\n') > -1 &&
- (i = f
- ? i
- .split('\n')
- .map(function(a) {
- return ' ' + a;
- })
- .join('\n')
- .substr(2)
- : '\n' +
- i
- .split('\n')
- .map(function(a) {
- return ' ' + a;
- })
- .join('\n')))
- : (i = a.stylize('[Circular]', 'special'))),
- u(g))
- ) {
- if (f && e.match(/^\d+$/)) return i;
- (g = JSON.stringify('' + e)),
- g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)
- ? ((g = g.substr(1, g.length - 2)), (g = a.stylize(g, 'name')))
- : ((g = g
- .replace(/'/g, "\\'")
- .replace(/\\"/g, '"')
- .replace(/(^"|"$)/g, "'")),
- (g = a.stylize(g, 'string')));
- }
- return g + ': ' + i;
- }
- function m(a, b, c) {
- var d = 0,
- e = a.reduce(function(a, b) {
- return (
- d++, b.indexOf('\n') >= 0 && d++, a + b.replace(/\u001b\[\d\d?m/g, '').length + 1
- );
- }, 0);
- return e > 60
- ? c[0] + ('' === b ? '' : b + '\n ') + ' ' + a.join(',\n ') + ' ' + c[1]
- : c[0] + b + ' ' + a.join(', ') + ' ' + c[1];
- }
- function n(a) {
- return Array.isArray(a);
- }
- function o(a) {
- return 'boolean' == typeof a;
- }
- function p(a) {
- return null === a;
- }
- function q(a) {
- return null == a;
- }
- function r(a) {
- return 'number' == typeof a;
- }
- function s(a) {
- return 'string' == typeof a;
- }
- function t(a) {
- return 'symbol' == typeof a;
- }
- function u(a) {
- return void 0 === a;
- }
- function v(a) {
- return w(a) && '[object RegExp]' === B(a);
- }
- function w(a) {
- return 'object' == typeof a && null !== a;
- }
- function x(a) {
- return w(a) && '[object Date]' === B(a);
- }
- function y(a) {
- return w(a) && ('[object Error]' === B(a) || a instanceof Error);
- }
- function z(a) {
- return 'function' == typeof a;
- }
- function A(a) {
- return (
- null === a ||
- 'boolean' == typeof a ||
- 'number' == typeof a ||
- 'string' == typeof a ||
- 'symbol' == typeof a ||
- 'undefined' == typeof a
- );
- }
- function B(a) {
- return Object.prototype.toString.call(a);
- }
- function C(a) {
- return a < 10 ? '0' + a.toString(10) : a.toString(10);
- }
- function D() {
- var a = new Date(),
- b = [C(a.getHours()), C(a.getMinutes()), C(a.getSeconds())].join(':');
- return [a.getDate(), L[a.getMonth()], b].join(' ');
- }
- function E(a, b) {
- return Object.prototype.hasOwnProperty.call(a, b);
- }
- function F(a, b) {
- if (!a) {
- var c = new Error('Promise was rejected with a falsy value');
- (c.reason = a), (a = c);
- }
- return b(a);
- }
- function G(b) {
- function c() {
- for (var c = [], d = 0; d < arguments.length; d++) c.push(arguments[d]);
- var e = c.pop();
- if ('function' != typeof e)
- throw new TypeError('The last argument must be of type Function');
- var f = this,
- g = function() {
- return e.apply(f, arguments);
- };
- b.apply(this, c).then(
- function(b) {
- a.nextTick(g, null, b);
- },
- function(b) {
- a.nextTick(F, b, g);
- }
- );
- }
- if ('function' != typeof b)
- throw new TypeError('The "original" argument must be of type Function');
- return Object.setPrototypeOf(c, Object.getPrototypeOf(b)), Object.defineProperties(c, H(b)), c;
- }
- var H =
- Object.getOwnPropertyDescriptors ||
- function(a) {
- for (var b = Object.keys(a), c = {}, d = 0; d < b.length; d++)
- c[b[d]] = Object.getOwnPropertyDescriptor(a, b[d]);
- return c;
- },
- I = /%[sdj%]/g;
- (b.format = function(a) {
- if (!s(a)) {
- for (var b = [], c = 0; c < arguments.length; c++) b.push(d(arguments[c]));
- return b.join(' ');
- }
- for (
- var c = 1,
- e = arguments,
- f = e.length,
- g = String(a).replace(I, function(a) {
- if ('%%' === a) return '%';
- if (c >= f) return a;
- switch (a) {
- case '%s':
- return String(e[c++]);
- case '%d':
- return Number(e[c++]);
- case '%j':
- try {
- return JSON.stringify(e[c++]);
- } catch (a) {
- return '[Circular]';
- }
- default:
- return a;
- }
- }),
- h = e[c];
- c < f;
- h = e[++c]
- )
- g += p(h) || !w(h) ? ' ' + h : ' ' + d(h);
- return g;
- }),
- (b.deprecate = function(c, d) {
- function e() {
- if (!f) {
- if (a.throwDeprecation) throw new Error(d);
- a.traceDeprecation ? console.trace(d) : console.error(d), (f = !0);
- }
- return c.apply(this, arguments);
- }
- if ('undefined' != typeof a && a.noDeprecation === !0) return c;
- if ('undefined' == typeof a)
- return function() {
- return b.deprecate(c, d).apply(this, arguments);
- };
- var f = !1;
- return e;
- });
- var J,
- K = {};
- (b.debuglog = function(c) {
- if ((u(J) && (J = a.env.NODE_DEBUG || ''), (c = c.toUpperCase()), !K[c]))
- if (new RegExp('\\b' + c + '\\b', 'i').test(J)) {
- var d = a.pid;
- K[c] = function() {
- var a = b.format.apply(b, arguments);
- console.error('%s %d: %s', c, d, a);
- };
- } else K[c] = function() {};
- return K[c];
- }),
- (b.inspect = d),
- (d.colors = {
- bold: [1, 22],
- italic: [3, 23],
- underline: [4, 24],
- inverse: [7, 27],
- white: [37, 39],
- grey: [90, 39],
- black: [30, 39],
- blue: [34, 39],
- cyan: [36, 39],
- green: [32, 39],
- magenta: [35, 39],
- red: [31, 39],
- yellow: [33, 39]
- }),
- (d.styles = {
- special: 'cyan',
- number: 'yellow',
- boolean: 'yellow',
- undefined: 'grey',
- null: 'bold',
- string: 'green',
- date: 'magenta',
- regexp: 'red'
- }),
- (b.isArray = n),
- (b.isBoolean = o),
- (b.isNull = p),
- (b.isNullOrUndefined = q),
- (b.isNumber = r),
- (b.isString = s),
- (b.isSymbol = t),
- (b.isUndefined = u),
- (b.isRegExp = v),
- (b.isObject = w),
- (b.isDate = x),
- (b.isError = y),
- (b.isFunction = z),
- (b.isPrimitive = A),
- (b.isBuffer = c(31));
- var L = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
- (b.log = function() {
- console.log('%s - %s', D(), b.format.apply(b, arguments));
- }),
- (b.inherits = c(32)),
- (b._extend = function(a, b) {
- if (!b || !w(b)) return a;
- for (var c = Object.keys(b), d = c.length; d--; ) a[c[d]] = b[c[d]];
- return a;
- });
- var M = 'undefined' != typeof Symbol ? Symbol('util.promisify.custom') : void 0;
- (b.promisify = function(a) {
- function b() {
- for (
- var b,
- c,
- d = new Promise(function(a, d) {
- (b = a), (c = d);
- }),
- e = [],
- f = 0;
- f < arguments.length;
- f++
- )
- e.push(arguments[f]);
- e.push(function(a, d) {
- a ? c(a) : b(d);
- });
- try {
- a.apply(this, e);
- } catch (a) {
- c(a);
- }
- return d;
- }
- if ('function' != typeof a)
- throw new TypeError('The "original" argument must be of type Function');
- if (M && a[M]) {
- var b = a[M];
- if ('function' != typeof b)
- throw new TypeError('The "util.promisify.custom" argument must be of type Function');
- return (
- Object.defineProperty(b, M, {
- value: b,
- enumerable: !1,
- writable: !1,
- configurable: !0
- }),
- b
- );
- }
- return (
- Object.setPrototypeOf(b, Object.getPrototypeOf(a)),
- M &&
- Object.defineProperty(b, M, {
- value: b,
- enumerable: !1,
- writable: !1,
- configurable: !0
- }),
- Object.defineProperties(b, H(a))
- );
- }),
- (b.promisify.custom = M),
- (b.callbackify = G);
- }.call(b, c(3)));
- },
- function(a, b) {
- a.exports = function(a) {
- return (
- a &&
- 'object' == typeof a &&
- 'function' == typeof a.copy &&
- 'function' == typeof a.fill &&
- 'function' == typeof a.readUInt8
- );
- };
- },
- function(a, b) {
- 'function' == typeof Object.create
- ? (a.exports = function(a, b) {
- (a.super_ = b),
- (a.prototype = Object.create(b.prototype, {
- constructor: { value: a, enumerable: !1, writable: !0, configurable: !0 }
- }));
- })
- : (a.exports = function(a, b) {
- a.super_ = b;
- var c = function() {};
- (c.prototype = b.prototype), (a.prototype = new c()), (a.prototype.constructor = a);
- });
- },
- function(a, b, c) {
- (function(a, d) {
- var e;
- !(function(f) {
- function g(a) {
- throw new RangeError(G[a]);
- }
- function h(a, b) {
- for (var c = a.length, d = []; c--; ) d[c] = b(a[c]);
- return d;
- }
- function i(a, b) {
- var c = a.split('@'),
- d = '';
- c.length > 1 && ((d = c[0] + '@'), (a = c[1])), (a = a.replace(F, '.'));
- var e = a.split('.'),
- f = h(e, b).join('.');
- return d + f;
- }
- function j(a) {
- for (var b, c, d = [], e = 0, f = a.length; e < f; )
- (b = a.charCodeAt(e++)),
- b >= 55296 && b <= 56319 && e < f
- ? ((c = a.charCodeAt(e++)),
- 56320 == (64512 & c)
- ? d.push(((1023 & b) << 10) + (1023 & c) + 65536)
- : (d.push(b), e--))
- : d.push(b);
- return d;
- }
- function k(a) {
- return h(a, function(a) {
- var b = '';
- return (
- a > 65535 &&
- ((a -= 65536), (b += J(((a >>> 10) & 1023) | 55296)), (a = 56320 | (1023 & a))),
- (b += J(a))
- );
- }).join('');
- }
- function l(a) {
- return a - 48 < 10 ? a - 22 : a - 65 < 26 ? a - 65 : a - 97 < 26 ? a - 97 : v;
- }
- function m(a, b) {
- return a + 22 + 75 * (a < 26) - ((0 != b) << 5);
- }
- function n(a, b, c) {
- var d = 0;
- for (a = c ? I(a / z) : a >> 1, a += I(a / b); a > (H * x) >> 1; d += v) a = I(a / H);
- return I(d + ((H + 1) * a) / (a + y));
- }
- function o(a) {
- var b,
- c,
- d,
- e,
- f,
- h,
- i,
- j,
- m,
- o,
- p = [],
- q = a.length,
- r = 0,
- s = B,
- t = A;
- for (c = a.lastIndexOf(C), c < 0 && (c = 0), d = 0; d < c; ++d)
- a.charCodeAt(d) >= 128 && g('not-basic'), p.push(a.charCodeAt(d));
- for (e = c > 0 ? c + 1 : 0; e < q; ) {
- for (
- f = r, h = 1, i = v;
- e >= q && g('invalid-input'),
- (j = l(a.charCodeAt(e++))),
- (j >= v || j > I((u - r) / h)) && g('overflow'),
- (r += j * h),
- (m = i <= t ? w : i >= t + x ? x : i - t),
- !(j < m);
- i += v
- )
- (o = v - m), h > I(u / o) && g('overflow'), (h *= o);
- (b = p.length + 1),
- (t = n(r - f, b, 0 == f)),
- I(r / b) > u - s && g('overflow'),
- (s += I(r / b)),
- (r %= b),
- p.splice(r++, 0, s);
- }
- return k(p);
- }
- function p(a) {
- var b,
- c,
- d,
- e,
- f,
- h,
- i,
- k,
- l,
- o,
- p,
- q,
- r,
- s,
- t,
- y = [];
- for (a = j(a), q = a.length, b = B, c = 0, f = A, h = 0; h < q; ++h)
- (p = a[h]), p < 128 && y.push(J(p));
- for (d = e = y.length, e && y.push(C); d < q; ) {
- for (i = u, h = 0; h < q; ++h) (p = a[h]), p >= b && p < i && (i = p);
- for (
- r = d + 1, i - b > I((u - c) / r) && g('overflow'), c += (i - b) * r, b = i, h = 0;
- h < q;
- ++h
- )
- if (((p = a[h]), p < b && ++c > u && g('overflow'), p == b)) {
- for (k = c, l = v; (o = l <= f ? w : l >= f + x ? x : l - f), !(k < o); l += v)
- (t = k - o), (s = v - o), y.push(J(m(o + (t % s), 0))), (k = I(t / s));
- y.push(J(m(k, 0))), (f = n(c, r, d == e)), (c = 0), ++d;
- }
- ++c, ++b;
- }
- return y.join('');
- }
- function q(a) {
- return i(a, function(a) {
- return D.test(a) ? o(a.slice(4).toLowerCase()) : a;
- });
- }
- function r(a) {
- return i(a, function(a) {
- return E.test(a) ? 'xn--' + p(a) : a;
- });
- }
- var s =
- ('object' == typeof b && b && !b.nodeType && b,
- 'object' == typeof a && a && !a.nodeType && a,
- 'object' == typeof d && d);
- (s.global !== s && s.window !== s && s.self !== s) || (f = s);
- var t,
- u = 2147483647,
- v = 36,
- w = 1,
- x = 26,
- y = 38,
- z = 700,
- A = 72,
- B = 128,
- C = '-',
- D = /^xn--/,
- E = /[^\x20-\x7E]/,
- F = /[\x2E\u3002\uFF0E\uFF61]/g,
- G = {
- overflow: 'Overflow: input needs wider integers to process',
- 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
- 'invalid-input': 'Invalid input'
- },
- H = v - w,
- I = Math.floor,
- J = String.fromCharCode;
- (t = {
- version: '1.4.1',
- ucs2: { decode: j, encode: k },
- decode: o,
- encode: p,
- toASCII: r,
- toUnicode: q
- }),
- (e = function() {
- return t;
- }.call(b, c, b, a)),
- !(void 0 !== e && (a.exports = e));
- })(this);
- }.call(b, c(11)(a), c(7)));
- },
- function(a, b, c) {
- 'use strict';
- a.exports = {
- isString: function(a) {
- return 'string' == typeof a;
- },
- isObject: function(a) {
- return 'object' == typeof a && null !== a;
- },
- isNull: function(a) {
- return null === a;
- },
- isNullOrUndefined: function(a) {
- return null == a;
- }
- };
- },
- function(a, b, c) {
- 'use strict';
- function d(a, b) {
- return Object.prototype.hasOwnProperty.call(a, b);
- }
- a.exports = function(a, b, c, f) {
- (b = b || '&'), (c = c || '=');
- var g = {};
- if ('string' != typeof a || 0 === a.length) return g;
- var h = /\+/g;
- a = a.split(b);
- var i = 1e3;
- f && 'number' == typeof f.maxKeys && (i = f.maxKeys);
- var j = a.length;
- i > 0 && j > i && (j = i);
- for (var k = 0; k < j; ++k) {
- var l,
- m,
- n,
- o,
- p = a[k].replace(h, '%20'),
- q = p.indexOf(c);
- q >= 0 ? ((l = p.substr(0, q)), (m = p.substr(q + 1))) : ((l = p), (m = '')),
- (n = decodeURIComponent(l)),
- (o = decodeURIComponent(m)),
- d(g, n) ? (e(g[n]) ? g[n].push(o) : (g[n] = [g[n], o])) : (g[n] = o);
- }
- return g;
- };
- var e =
- Array.isArray ||
- function(a) {
- return '[object Array]' === Object.prototype.toString.call(a);
- };
- },
- function(a, b, c) {
- 'use strict';
- function d(a, b) {
- if (a.map) return a.map(b);
- for (var c = [], d = 0; d < a.length; d++) c.push(b(a[d], d));
- return c;
- }
- var e = function(a) {
- switch (typeof a) {
- case 'string':
- return a;
- case 'boolean':
- return a ? 'true' : 'false';
- case 'number':
- return isFinite(a) ? a : '';
- default:
- return '';
- }
- };
- a.exports = function(a, b, c, h) {
- return (
- (b = b || '&'),
- (c = c || '='),
- null === a && (a = void 0),
- 'object' == typeof a
- ? d(g(a), function(g) {
- var h = encodeURIComponent(e(g)) + c;
- return f(a[g])
- ? d(a[g], function(a) {
- return h + encodeURIComponent(e(a));
- }).join(b)
- : h + encodeURIComponent(e(a[g]));
- }).join(b)
- : h
- ? encodeURIComponent(e(h)) + c + encodeURIComponent(e(a))
- : ''
- );
- };
- var f =
- Array.isArray ||
- function(a) {
- return '[object Array]' === Object.prototype.toString.call(a);
- },
- g =
- Object.keys ||
- function(a) {
- var b = [];
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && b.push(c);
- return b;
- };
- },
- function(a, b, c) {
- var d = c(2);
- a.exports = function(a) {
- var b = 0,
- c = a.connectionPool,
- e = c._onConnectionDied,
- f = function b() {
- (b.timerId = a._timeout(b.timerId)), a.sniff();
- },
- g = function(a) {
- var b = d.now();
- return function() {
- return b - a;
- };
- };
- (c._onConnectionDied = function(d, h) {
- var i = e.call(c, d, h);
- b = f.timerId ? b + 1 : 0;
- var j = c.calcDeadTimeout(b, 1e3);
- return (
- f.timerId && j < f.timerId && f.countdown() && (f.timerId = a._timeout(f.timerId)),
- f.timerId || ((f.timerId = a._timeout(f, j)), (f.countdown = g(j))),
- i
- );
- }),
- (c._onConnectionDied.restore = function() {
- c._onConnectionDied = e;
- });
- };
- },
- function(a, b, c) {
- var d = c(0);
- a.exports = function(a) {
- if (d.isEmpty(a)) return !1;
- for (var b = a.shift().protocol, c = 0; c < a.length; c++) if (b !== a[c].protocol) return !1;
- return b;
- };
- },
- function(a, b, c) {
- function d(a, b) {
- e.call(this, a, b), (this.color = !f.has(b, 'color') || !!b.color);
- }
- a.exports = d;
- var e = c(17),
- f = c(0),
- g = c(2);
- g.inherits(d, e),
- (d.prototype.setupListeners = function(a) {
- e.prototype.setupListeners.call(this, a);
- }),
- (d.prototype.write = function(a, b, c) {
- console[c] && console[c](this.format(a, b));
- }),
- (d.prototype.onError = g.handler(function(a) {
- var b = console.error ? 'error' : 'log';
- this.write('Error' === a.name ? 'ERROR' : a.name, a.stack || a.message, b);
- })),
- (d.prototype.onWarning = g.handler(function(a) {
- this.write('WARNING', a, console.warn ? 'warn' : 'log');
- })),
- (d.prototype.onInfo = g.handler(function(a) {
- this.write('INFO', a, console.info ? 'info' : 'log');
- })),
- (d.prototype.onDebug = g.handler(function(a) {
- this.write('DEBUG', a, console.debug ? 'debug' : 'log');
- })),
- (d.prototype.onTrace = g.handler(function(a) {
- this.write('TRACE', this._formatTraceMessage(a), 'log');
- }));
- },
- function(a, b) {
- a.exports = function(a) {
- return a[Math.floor(Math.random() * a.length)];
- };
- },
- function(a, b) {
- a.exports = function(a) {
- var b = a[0];
- return a.push(a.shift()), b;
- };
- },
- function(a, b, c) {
- function d(a, b) {
- g.call(this, a, b);
- }
- a.exports = d;
- var e = c(0),
- f = c(2),
- g = c(20),
- h = c(4).ConnectionFault,
- i = !(navigator && /PhantomJS/i.test(navigator.userAgent));
- f.inherits(d, g);
- var j = e.noop;
- if (
- ((j =
- 'undefined' != typeof XMLHttpRequest
- ? function() {
- return new XMLHttpRequest();
- }
- : e(['Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0'])
- .map(function(a) {
- try {
- new window.ActiveXObject(a);
- return function() {
- return new window.ActiveXObject(a);
- };
- } catch (a) {
- return !1;
- }
- })
- .compact()
- .head()),
- !j)
- )
- throw new Error('getXhr(): XMLHttpRequest not available');
- d.prototype.request = function(a, b) {
- var c,
- d = j(),
- e = this.host,
- f = this.log,
- g = e.makeUrl(a),
- k = e.getHeaders(a.headers),
- l = a.async !== !1 && i;
- if ((d.open(a.method || 'GET', g, l), k))
- for (var m in k) void 0 !== k[m] && d.setRequestHeader(m, k[m]);
- return (
- (d.onreadystatechange = function() {
- if (4 === d.readyState) {
- clearTimeout(c), f.trace(a.method, g, a.body, d.responseText, d.status);
- var e = d.status ? void 0 : new h(d.statusText || 'Request failed to complete.');
- b(e, d.responseText, d.status);
- }
- }),
- d.send(a.body || void 0),
- function() {
- d.abort();
- }
- );
- };
- },
- function(a, b) {},
- function(a, b) {},
- function(a, b, c) {
- function d(a) {
- return (d =
- 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
- ? function(a) {
- return typeof a;
- }
- : function(a) {
- return a &&
- 'function' == typeof Symbol &&
- a.constructor === Symbol &&
- a !== Symbol.prototype
- ? 'symbol'
- : typeof a;
- })(a);
- }
- function e() {}
- var f = c(2),
- g = c(22);
- f.inherits(e, g),
- (e.prototype.encode = function(a) {
- switch (d(a)) {
- case 'string':
- return a;
- case 'object':
- if (a) return angular.toJson(a);
- default:
- return;
- }
- }),
- (a.exports = e);
- },
- function(a, b, c) {
- var d = c(1).makeFactoryWithModifier(function(a) {
- return c(0).merge(a, { params: { filterPath: { type: 'list', name: 'filter_path' } } });
- }),
- e = c(1).namespaceFactory,
- f = (a.exports = {});
- (f._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'nodes', 'snapshot', 'tasks']),
- (f.bulk = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- type: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- pipeline: { type: 'string' }
- },
- urls: [
- {
- fmt: '/<%=index%>/<%=type%>/_bulk',
- req: { index: { type: 'string' }, type: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_bulk', req: { index: { type: 'string' } } },
- { fmt: '/_bulk' }
- ],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.cat = e()),
- (f.cat.prototype.aliases = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/aliases/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/_cat/aliases' }
- ]
- })),
- (f.cat.prototype.allocation = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/allocation/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- { fmt: '/_cat/allocation' }
- ]
- })),
- (f.cat.prototype.count = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/count/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/count' }
- ]
- })),
- (f.cat.prototype.fielddata = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 },
- fields: { type: 'list' }
- },
- urls: [
- { fmt: '/_cat/fielddata/<%=fields%>', req: { fields: { type: 'list' } } },
- { fmt: '/_cat/fielddata' }
- ]
- })),
- (f.cat.prototype.health = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- ts: { type: 'boolean', default: !0 },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/health' }
- })),
- (f.cat.prototype.help = d({
- params: { help: { type: 'boolean', default: !1 }, s: { type: 'list' } },
- url: { fmt: '/_cat' }
- })),
- (f.cat.prototype.indices = d({
- params: {
- format: { type: 'string' },
- bytes: { type: 'enum', options: ['b', 'k', 'm', 'g'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- health: { type: 'enum', default: null, options: ['green', 'yellow', 'red'] },
- help: { type: 'boolean', default: !1 },
- pri: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 },
- includeUnloadedSegments: { type: 'boolean', default: !1, name: 'include_unloaded_segments' }
- },
- urls: [
- { fmt: '/_cat/indices/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/indices' }
- ]
- })),
- (f.cat.prototype.master = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/master' }
- })),
- (f.cat.prototype.nodeattrs = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/nodeattrs' }
- })),
- (f.cat.prototype.nodes = d({
- params: {
- format: { type: 'string' },
- fullId: { type: 'boolean', name: 'full_id' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/nodes' }
- })),
- (f.cat.prototype.pendingTasks = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/pending_tasks' }
- })),
- (f.cat.prototype.plugins = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/plugins' }
- })),
- (f.cat.prototype.recovery = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/recovery/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/recovery' }
- ]
- })),
- (f.cat.prototype.repositories = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean', default: !1 },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/repositories' }
- })),
- (f.cat.prototype.segments = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/segments/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/segments' }
- ]
- })),
- (f.cat.prototype.shards = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/shards/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/shards' }
- ]
- })),
- (f.cat.prototype.snapshots = d({
- params: {
- format: { type: 'string' },
- ignoreUnavailable: { type: 'boolean', default: !1, name: 'ignore_unavailable' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/snapshots/<%=repository%>', req: { repository: { type: 'list' } } },
- { fmt: '/_cat/snapshots' }
- ]
- })),
- (f.cat.prototype.tasks = d({
- params: {
- format: { type: 'string' },
- nodeId: { type: 'list', name: 'node_id' },
- actions: { type: 'list' },
- detailed: { type: 'boolean' },
- parentTask: { type: 'number', name: 'parent_task' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/tasks' }
- })),
- (f.cat.prototype.templates = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/templates/<%=name%>', req: { name: { type: 'string' } } },
- { fmt: '/_cat/templates' }
- ]
- })),
- (f.cat.prototype.threadPool = d({
- params: {
- format: { type: 'string' },
- size: { type: 'enum', options: ['', 'k', 'm', 'g', 't', 'p'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- {
- fmt: '/_cat/thread_pool/<%=threadPoolPatterns%>',
- req: { threadPoolPatterns: { type: 'list' } }
- },
- { fmt: '/_cat/thread_pool' }
- ]
- })),
- (f.clearScroll = d({
- url: { fmt: '/_search/scroll' },
- paramAsBody: { param: 'scrollId', body: 'scroll_id' },
- method: 'DELETE'
- })),
- (f.cluster = e()),
- (f.cluster.prototype.allocationExplain = d({
- params: {
- includeYesDecisions: { type: 'boolean', name: 'include_yes_decisions' },
- includeDiskInfo: { type: 'boolean', name: 'include_disk_info' }
- },
- url: { fmt: '/_cluster/allocation/explain' },
- method: 'POST'
- })),
- (f.cluster.prototype.getSettings = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- url: { fmt: '/_cluster/settings' }
- })),
- (f.cluster.prototype.health = d({
- params: {
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- level: { type: 'enum', default: 'cluster', options: ['cluster', 'indices', 'shards'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- waitForNodes: { type: 'string', name: 'wait_for_nodes' },
- waitForEvents: {
- type: 'enum',
- options: ['immediate', 'urgent', 'high', 'normal', 'low', 'languid'],
- name: 'wait_for_events'
- },
- waitForNoRelocatingShards: { type: 'boolean', name: 'wait_for_no_relocating_shards' },
- waitForNoInitializingShards: { type: 'boolean', name: 'wait_for_no_initializing_shards' },
- waitForStatus: {
- type: 'enum',
- default: null,
- options: ['green', 'yellow', 'red'],
- name: 'wait_for_status'
- }
- },
- urls: [
- { fmt: '/_cluster/health/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cluster/health' }
- ]
- })),
- (f.cluster.prototype.pendingTasks = d({
- params: { local: { type: 'boolean' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_cluster/pending_tasks' }
- })),
- (f.cluster.prototype.putSettings = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_cluster/settings' },
- needBody: !0,
- method: 'PUT'
- })),
- (f.cluster.prototype.remoteInfo = d({ url: { fmt: '/_remote/info' } })),
- (f.cluster.prototype.reroute = d({
- params: {
- dryRun: { type: 'boolean', name: 'dry_run' },
- explain: { type: 'boolean' },
- retryFailed: { type: 'boolean', name: 'retry_failed' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'master_node',
- 'version'
- ]
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_cluster/reroute' },
- method: 'POST'
- })),
- (f.cluster.prototype.state = d({
- params: {
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- waitForMetadataVersion: { type: 'number', name: 'wait_for_metadata_version' },
- waitForTimeout: { type: 'time', name: 'wait_for_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- {
- fmt: '/_cluster/state/<%=metric%>/<%=index%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'routing_nodes',
- 'master_node',
- 'version'
- ]
- },
- index: { type: 'list' }
- }
- },
- {
- fmt: '/_cluster/state/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'routing_nodes',
- 'master_node',
- 'version'
- ]
- }
- }
- },
- { fmt: '/_cluster/state' }
- ]
- })),
- (f.cluster.prototype.stats = d({
- params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
- urls: [
- { fmt: '/_cluster/stats/nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- { fmt: '/_cluster/stats' }
- ]
- })),
- (f.count = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- minScore: { type: 'number', name: 'min_score' },
- preference: { type: 'string' },
- routing: { type: 'list' },
- q: { type: 'string' },
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- lenient: { type: 'boolean' },
- terminateAfter: { type: 'number', name: 'terminate_after' }
- },
- urls: [{ fmt: '/<%=index%>/_count', req: { index: { type: 'list' } } }, { fmt: '/_count' }],
- method: 'POST'
- })),
- (f.create = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- },
- pipeline: { type: 'string' }
- },
- url: {
- fmt: '/<%=index%>/_create/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- needBody: !0,
- method: 'POST'
- })),
- (f.delete = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'DELETE'
- })),
- (f.deleteByQuery = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- searchTimeout: { type: 'time', name: 'search_timeout' },
- size: { type: 'number' },
- maxDocs: { type: 'number', name: 'max_docs' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- version: { type: 'boolean' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- scrollSize: { type: 'number', name: 'scroll_size' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- slices: { type: 'number', default: 1 }
- },
- url: { fmt: '/<%=index%>/_delete_by_query', req: { index: { type: 'list' } } },
- needBody: !0,
- method: 'POST'
- })),
- (f.deleteByQueryRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_delete_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- })),
- (f.deleteScript = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.exists = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'HEAD'
- })),
- (f.existsSource = d({
- params: {
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_source/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'HEAD'
- })),
- (f.explain = d({
- params: {
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- analyzer: { type: 'string' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- storedFields: { type: 'list', name: 'stored_fields' },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' }
- },
- url: {
- fmt: '/<%=index%>/_explain/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.fieldCaps = d({
- params: {
- fields: { type: 'list' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- includeUnmapped: { type: 'boolean', default: !1, name: 'include_unmapped' }
- },
- urls: [
- { fmt: '/<%=index%>/_field_caps', req: { index: { type: 'list' } } },
- { fmt: '/_field_caps' }
- ],
- method: 'POST'
- })),
- (f.get = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- }
- })),
- (f.getScript = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
- })),
- (f.getSource = d({
- params: {
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_source/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- }
- })),
- (f.index = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- opType: { type: 'enum', default: 'index', options: ['index', 'create'], name: 'op_type' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
- pipeline: { type: 'string' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_doc', req: { index: { type: 'string' } } }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.indices = e()),
- (f.indices.prototype.analyze = d({
- params: { index: { type: 'string' } },
- urls: [
- { fmt: '/<%=index%>/_analyze', req: { index: { type: 'string' } } },
- { fmt: '/_analyze' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.clearCache = d({
- params: {
- fielddata: { type: 'boolean' },
- fields: { type: 'list' },
- query: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- index: { type: 'list' },
- request: { type: 'boolean' }
- },
- urls: [
- { fmt: '/<%=index%>/_cache/clear', req: { index: { type: 'list' } } },
- { fmt: '/_cache/clear' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.clone = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_clone/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.close = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: { fmt: '/<%=index%>/_close', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.indices.prototype.create = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'string' } } },
- method: 'PUT'
- })),
- (f.indices.prototype.delete = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
- method: 'DELETE'
- })),
- (f.indices.prototype.deleteAlias = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- method: 'DELETE'
- })),
- (f.indices.prototype.deleteTemplate = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.indices.prototype.exists = d({
- params: {
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
- method: 'HEAD'
- })),
- (f.indices.prototype.existsAlias = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } }
- ],
- method: 'HEAD'
- })),
- (f.indices.prototype.existsTemplate = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } },
- method: 'HEAD'
- })),
- (f.indices.prototype.existsType = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- url: {
- fmt: '/<%=index%>/_mapping/<%=type%>',
- req: { index: { type: 'list' }, type: { type: 'list' } }
- },
- method: 'HEAD'
- })),
- (f.indices.prototype.flush = d({
- params: {
- force: { type: 'boolean' },
- waitIfOngoing: { type: 'boolean', name: 'wait_if_ongoing' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_flush', req: { index: { type: 'list' } } }, { fmt: '/_flush' }],
- method: 'POST'
- })),
- (f.indices.prototype.flushSynced = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_flush/synced', req: { index: { type: 'list' } } },
- { fmt: '/_flush/synced' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.forcemerge = d({
- params: {
- flush: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- maxNumSegments: { type: 'number', name: 'max_num_segments' },
- onlyExpungeDeletes: { type: 'boolean', name: 'only_expunge_deletes' }
- },
- urls: [
- { fmt: '/<%=index%>/_forcemerge', req: { index: { type: 'list' } } },
- { fmt: '/_forcemerge' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.get = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' },
- masterTimeout: { type: 'time', name: 'master_timeout' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } }
- })),
- (f.indices.prototype.getAlias = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/<%=index%>/_alias', req: { index: { type: 'list' } } },
- { fmt: '/_alias' }
- ]
- })),
- (f.indices.prototype.getFieldMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- includeDefaults: { type: 'boolean', name: 'include_defaults' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_mapping/field/<%=fields%>',
- req: { index: { type: 'list' }, fields: { type: 'list' } }
- },
- { fmt: '/_mapping/field/<%=fields%>', req: { fields: { type: 'list' } } }
- ]
- })),
- (f.indices.prototype.getMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- urls: [{ fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } }, { fmt: '/_mapping' }]
- })),
- (f.indices.prototype.getSettings = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: ['open', 'closed'],
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- local: { type: 'boolean' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_settings/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
- { fmt: '/_settings/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/_settings' }
- ]
- })),
- (f.indices.prototype.getTemplate = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- urls: [{ fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } }, { fmt: '/_template' }]
- })),
- (f.indices.prototype.getUpgrade = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }]
- })),
- (f.indices.prototype.open = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'closed',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: { fmt: '/<%=index%>/_open', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.indices.prototype.putAlias = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'string' } }
- },
- method: 'PUT'
- })),
- (f.indices.prototype.putMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- url: { fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.putSettings = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- preserveExisting: { type: 'boolean', name: 'preserve_existing' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' }
- },
- urls: [
- { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
- { fmt: '/_settings' }
- ],
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.putTemplate = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- order: { type: 'number' },
- create: { type: 'boolean', default: !1 },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- flatSettings: { type: 'boolean', name: 'flat_settings' }
- },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.recovery = d({
- params: {
- detailed: { type: 'boolean', default: !1 },
- activeOnly: { type: 'boolean', default: !1, name: 'active_only' }
- },
- urls: [
- { fmt: '/<%=index%>/_recovery', req: { index: { type: 'list' } } },
- { fmt: '/_recovery' }
- ]
- })),
- (f.indices.prototype.refresh = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_refresh', req: { index: { type: 'list' } } }, { fmt: '/_refresh' }],
- method: 'POST'
- })),
- (f.indices.prototype.rollover = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- timeout: { type: 'time' },
- dryRun: { type: 'boolean', name: 'dry_run' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- urls: [
- {
- fmt: '/<%=alias%>/_rollover/<%=newIndex%>',
- req: { alias: { type: 'string' }, newIndex: { type: 'string' } }
- },
- { fmt: '/<%=alias%>/_rollover', req: { alias: { type: 'string' } } }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.segments = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- verbose: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/<%=index%>/_segments', req: { index: { type: 'list' } } },
- { fmt: '/_segments' }
- ]
- })),
- (f.indices.prototype.shardStores = d({
- params: {
- status: { type: 'list', options: ['green', 'yellow', 'red', 'all'] },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_shard_stores', req: { index: { type: 'list' } } },
- { fmt: '/_shard_stores' }
- ]
- })),
- (f.indices.prototype.shrink = d({
- params: {
- copySettings: { type: 'boolean', name: 'copy_settings' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_shrink/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.split = d({
- params: {
- copySettings: { type: 'boolean', name: 'copy_settings' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_split/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.stats = d({
- params: {
- completionFields: { type: 'list', name: 'completion_fields' },
- fielddataFields: { type: 'list', name: 'fielddata_fields' },
- fields: { type: 'list' },
- groups: { type: 'list' },
- level: { type: 'enum', default: 'indices', options: ['cluster', 'indices', 'shards'] },
- types: { type: 'list' },
- includeSegmentFileSizes: {
- type: 'boolean',
- default: !1,
- name: 'include_segment_file_sizes'
- },
- includeUnloadedSegments: {
- type: 'boolean',
- default: !1,
- name: 'include_unloaded_segments'
- },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- forbidClosedIndices: { type: 'boolean', default: !0, name: 'forbid_closed_indices' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_stats/<%=metric%>',
- req: {
- index: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- {
- fmt: '/_stats/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- { fmt: '/<%=index%>/_stats', req: { index: { type: 'list' } } },
- { fmt: '/_stats' }
- ]
- })),
- (f.indices.prototype.updateAliases = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_aliases' },
- needBody: !0,
- method: 'POST'
- })),
- (f.indices.prototype.upgrade = d({
- params: {
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- onlyAncientSegments: { type: 'boolean', name: 'only_ancient_segments' }
- },
- urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }],
- method: 'POST'
- })),
- (f.indices.prototype.validateQuery = d({
- params: {
- explain: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- q: { type: 'string' },
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- lenient: { type: 'boolean' },
- rewrite: { type: 'boolean' },
- allShards: { type: 'boolean', name: 'all_shards' }
- },
- urls: [
- { fmt: '/<%=index%>/_validate/query', req: { index: { type: 'list' } } },
- { fmt: '/_validate/query' }
- ],
- method: 'POST'
- })),
- (f.info = d({ url: { fmt: '/' } })),
- (f.ingest = e()),
- (f.ingest.prototype.deletePipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.ingest.prototype.getPipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- urls: [
- { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- { fmt: '/_ingest/pipeline' }
- ]
- })),
- (f.ingest.prototype.processorGrok = d({ url: { fmt: '/_ingest/processor/grok' } })),
- (f.ingest.prototype.putPipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.ingest.prototype.simulate = d({
- params: { verbose: { type: 'boolean', default: !1 } },
- urls: [
- { fmt: '/_ingest/pipeline/<%=id%>/_simulate', req: { id: { type: 'string' } } },
- { fmt: '/_ingest/pipeline/_simulate' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.mget = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' }
- },
- urls: [{ fmt: '/<%=index%>/_mget', req: { index: { type: 'string' } } }, { fmt: '/_mget' }],
- needBody: !0,
- method: 'POST'
- })),
- (f.msearch = d({
- params: {
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
- maxConcurrentShardRequests: {
- type: 'number',
- default: 5,
- name: 'max_concurrent_shard_requests'
- },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [{ fmt: '/<%=index%>/_msearch', req: { index: { type: 'list' } } }, { fmt: '/_msearch' }],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.msearchTemplate = d({
- params: {
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [
- { fmt: '/<%=index%>/_msearch/template', req: { index: { type: 'list' } } },
- { fmt: '/_msearch/template' }
- ],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.mtermvectors = d({
- params: {
- ids: { type: 'list', required: !1 },
- termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
- fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
- fields: { type: 'list', required: !1 },
- offsets: { type: 'boolean', default: !0, required: !1 },
- positions: { type: 'boolean', default: !0, required: !1 },
- payloads: { type: 'boolean', default: !0, required: !1 },
- preference: { type: 'string', required: !1 },
- routing: { type: 'string', required: !1 },
- realtime: { type: 'boolean', required: !1 },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_mtermvectors', req: { index: { type: 'string' } } },
- { fmt: '/_mtermvectors' }
- ],
- method: 'POST'
- })),
- (f.nodes = e()),
- (f.nodes.prototype.hotThreads = d({
- params: {
- interval: { type: 'time' },
- snapshots: { type: 'number' },
- threads: { type: 'number' },
- ignoreIdleThreads: { type: 'boolean', name: 'ignore_idle_threads' },
- type: { type: 'enum', options: ['cpu', 'wait', 'block'] },
- timeout: { type: 'time' }
- },
- url: {}
- })),
- (f.nodes.prototype.info = d({
- params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- 'settings',
- 'os',
- 'process',
- 'jvm',
- 'thread_pool',
- 'transport',
- 'http',
- 'plugins',
- 'ingest'
- ]
- }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- 'settings',
- 'os',
- 'process',
- 'jvm',
- 'thread_pool',
- 'transport',
- 'http',
- 'plugins',
- 'ingest'
- ]
- }
- }
- },
- { fmt: '/_nodes' }
- ]
- })),
- (f.nodes.prototype.reloadSecureSettings = d({
- params: { timeout: { type: 'time' } },
- urls: [
- { fmt: '/_nodes/<%=nodeId%>/reload_secure_settings', req: { nodeId: { type: 'list' } } },
- { fmt: '/_nodes/reload_secure_settings' }
- ],
- method: 'POST'
- })),
- (f.nodes.prototype.stats = d({
- params: {
- completionFields: { type: 'list', name: 'completion_fields' },
- fielddataFields: { type: 'list', name: 'fielddata_fields' },
- fields: { type: 'list' },
- groups: { type: 'boolean' },
- level: { type: 'enum', default: 'node', options: ['indices', 'node', 'shards'] },
- types: { type: 'list' },
- timeout: { type: 'time' },
- includeSegmentFileSizes: {
- type: 'boolean',
- default: !1,
- name: 'include_segment_file_sizes'
- }
- },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- },
- indexMetric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- {
- fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- }
- }
- },
- {
- fmt: '/_nodes/stats/<%=metric%>/<%=indexMetric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- },
- indexMetric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>/stats', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/stats/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- }
- }
- },
- { fmt: '/_nodes/stats' }
- ]
- })),
- (f.nodes.prototype.usage = d({
- params: { timeout: { type: 'time' } },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/usage/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: { type: 'list', options: ['_all', 'rest_actions'] }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>/usage', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/usage/<%=metric%>',
- req: { metric: { type: 'list', options: ['_all', 'rest_actions'] } }
- },
- { fmt: '/_nodes/usage' }
- ]
- })),
- (f.ping = d({ url: { fmt: '/' }, method: 'HEAD' })),
- (f.putScript = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- context: { type: 'string' }
- },
- urls: [
- {
- fmt: '/_scripts/<%=id%>/<%=context%>',
- req: { id: { type: 'string' }, context: { type: 'string' } }
- },
- { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
- ],
- needBody: !0,
- method: 'PUT'
- })),
- (f.rankEval = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_rank_eval', req: { index: { type: 'list' } } },
- { fmt: '/_rank_eval' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.reindex = d({
- params: {
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- scroll: { type: 'time', default: '5m' },
- slices: { type: 'number', default: 1 },
- maxDocs: { type: 'number', name: 'max_docs' }
- },
- url: { fmt: '/_reindex' },
- needBody: !0,
- method: 'POST'
- })),
- (f.reindexRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_reindex/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- })),
- (f.renderSearchTemplate = d({
- urls: [
- { fmt: '/_render/template/<%=id%>', req: { id: { type: 'string' } } },
- { fmt: '/_render/template' }
- ],
- method: 'POST'
- })),
- (f.scriptsPainlessExecute = d({ url: { fmt: '/_scripts/painless/_execute' }, method: 'POST' })),
- (f.scroll = d({
- params: {
- scroll: { type: 'time' },
- scrollId: { type: 'string', name: 'scroll_id' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
- },
- url: { fmt: '/_search/scroll' },
- paramAsBody: { param: 'scrollId', body: 'scroll_id' },
- method: 'POST'
- })),
- (f.search = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- ccsMinimizeRoundtrips: {
- type: 'boolean',
- default: 'true',
- name: 'ccs_minimize_roundtrips'
- },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- explain: { type: 'boolean' },
- storedFields: { type: 'list', name: 'stored_fields' },
- docvalueFields: { type: 'list', name: 'docvalue_fields' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- size: { type: 'number' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- suggestField: { type: 'string', name: 'suggest_field' },
- suggestMode: {
- type: 'enum',
- default: 'missing',
- options: ['missing', 'popular', 'always'],
- name: 'suggest_mode'
- },
- suggestSize: { type: 'number', name: 'suggest_size' },
- suggestText: { type: 'string', name: 'suggest_text' },
- timeout: { type: 'time' },
- trackScores: { type: 'boolean', name: 'track_scores' },
- trackTotalHits: { type: 'boolean', name: 'track_total_hits' },
- allowPartialSearchResults: {
- type: 'boolean',
- default: !0,
- name: 'allow_partial_search_results'
- },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- version: { type: 'boolean' },
- seqNoPrimaryTerm: { type: 'boolean', name: 'seq_no_primary_term' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- batchedReduceSize: { type: 'number', default: 512, name: 'batched_reduce_size' },
- maxConcurrentShardRequests: {
- type: 'number',
- default: 5,
- name: 'max_concurrent_shard_requests'
- },
- preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
- },
- urls: [{ fmt: '/<%=index%>/_search', req: { index: { type: 'list' } } }, { fmt: '/_search' }],
- method: 'POST'
- })),
- (f.searchShards = d({
- params: {
- preference: { type: 'string' },
- routing: { type: 'string' },
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_search_shards', req: { index: { type: 'list' } } },
- { fmt: '/_search_shards' }
- ],
- method: 'POST'
- })),
- (f.searchTemplate = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- preference: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- explain: { type: 'boolean' },
- profile: { type: 'boolean' },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [
- { fmt: '/<%=index%>/_search/template', req: { index: { type: 'list' } } },
- { fmt: '/_search/template' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.snapshot = e()),
- (f.snapshot.prototype.create = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.snapshot.prototype.createRepository = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- verify: { type: 'boolean' }
- },
- url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'string' } } },
- needBody: !0,
- method: 'POST'
- })),
- (f.snapshot.prototype.delete = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'DELETE'
- })),
- (f.snapshot.prototype.deleteRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
- method: 'DELETE'
- })),
- (f.snapshot.prototype.get = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- verbose: { type: 'boolean' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
- }
- })),
- (f.snapshot.prototype.getRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, local: { type: 'boolean' } },
- urls: [
- { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
- { fmt: '/_snapshot' }
- ]
- })),
- (f.snapshot.prototype.restore = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_restore',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.snapshot.prototype.status = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' }
- },
- urls: [
- {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_status',
- req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
- },
- { fmt: '/_snapshot/<%=repository%>/_status', req: { repository: { type: 'string' } } },
- { fmt: '/_snapshot/_status' }
- ]
- })),
- (f.snapshot.prototype.verifyRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_snapshot/<%=repository%>/_verify', req: { repository: { type: 'string' } } },
- method: 'POST'
- })),
- (f.tasks = e()),
- (f.tasks.prototype.cancel = d({
- params: {
- nodes: { type: 'list' },
- actions: { type: 'list' },
- parentTaskId: { type: 'string', name: 'parent_task_id' }
- },
- urls: [
- { fmt: '/_tasks/<%=taskId%>/_cancel', req: { taskId: { type: 'string' } } },
- { fmt: '/_tasks/_cancel' }
- ],
- method: 'POST'
- })),
- (f.tasks.prototype.get = d({
- params: {
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_tasks/<%=taskId%>', req: { taskId: { type: 'string' } } }
- })),
- (f.tasks.prototype.list = d({
- params: {
- nodes: { type: 'list' },
- actions: { type: 'list' },
- detailed: { type: 'boolean' },
- parentTaskId: { type: 'string', name: 'parent_task_id' },
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- groupBy: {
- type: 'enum',
- default: 'nodes',
- options: ['nodes', 'parents', 'none'],
- name: 'group_by'
- },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_tasks' }
- })),
- (f.termvectors = d({
- params: {
- termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
- fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
- fields: { type: 'list', required: !1 },
- offsets: { type: 'boolean', default: !0, required: !1 },
- positions: { type: 'boolean', default: !0, required: !1 },
- payloads: { type: 'boolean', default: !0, required: !1 },
- preference: { type: 'string', required: !1 },
- routing: { type: 'string', required: !1 },
- realtime: { type: 'boolean', required: !1 },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- urls: [
- {
- fmt: '/<%=index%>/_termvectors/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_termvectors', req: { index: { type: 'string' } } }
- ],
- method: 'POST'
- })),
- (f.update = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- lang: { type: 'string' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- retryOnConflict: { type: 'number', name: 'retry_on_conflict' },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' }
- },
- url: {
- fmt: '/<%=index%>/_update/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- needBody: !0,
- method: 'POST'
- })),
- (f.updateByQuery = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- pipeline: { type: 'string' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- searchTimeout: { type: 'time', name: 'search_timeout' },
- size: { type: 'number' },
- maxDocs: { type: 'number', name: 'max_docs' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- version: { type: 'boolean' },
- versionType: { type: 'boolean', name: 'version_type' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- scrollSize: { type: 'number', name: 'scroll_size' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- slices: { type: 'number', default: 1 }
- },
- url: { fmt: '/<%=index%>/_update_by_query', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.updateByQueryRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_update_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- }));
- },
- function(a, b, c) {
- var d = c(1).makeFactoryWithModifier(function(a) {
- return c(0).merge(a, { params: { filterPath: { type: 'list', name: 'filter_path' } } });
- }),
- e = c(1).namespaceFactory,
- f = (a.exports = {});
- (f._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'nodes', 'snapshot', 'tasks']),
- (f.bulk = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- type: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- pipeline: { type: 'string' }
- },
- urls: [
- {
- fmt: '/<%=index%>/<%=type%>/_bulk',
- req: { index: { type: 'string' }, type: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_bulk', req: { index: { type: 'string' } } },
- { fmt: '/_bulk' }
- ],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.cat = e()),
- (f.cat.prototype.aliases = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/aliases/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/_cat/aliases' }
- ]
- })),
- (f.cat.prototype.allocation = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/allocation/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- { fmt: '/_cat/allocation' }
- ]
- })),
- (f.cat.prototype.count = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/count/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/count' }
- ]
- })),
- (f.cat.prototype.fielddata = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 },
- fields: { type: 'list' }
- },
- urls: [
- { fmt: '/_cat/fielddata/<%=fields%>', req: { fields: { type: 'list' } } },
- { fmt: '/_cat/fielddata' }
- ]
- })),
- (f.cat.prototype.health = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- ts: { type: 'boolean', default: !0 },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/health' }
- })),
- (f.cat.prototype.help = d({
- params: { help: { type: 'boolean', default: !1 }, s: { type: 'list' } },
- url: { fmt: '/_cat' }
- })),
- (f.cat.prototype.indices = d({
- params: {
- format: { type: 'string' },
- bytes: { type: 'enum', options: ['b', 'k', 'm', 'g'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- health: { type: 'enum', default: null, options: ['green', 'yellow', 'red'] },
- help: { type: 'boolean', default: !1 },
- pri: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 },
- includeUnloadedSegments: { type: 'boolean', default: !1, name: 'include_unloaded_segments' }
- },
- urls: [
- { fmt: '/_cat/indices/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/indices' }
- ]
- })),
- (f.cat.prototype.master = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/master' }
- })),
- (f.cat.prototype.nodeattrs = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/nodeattrs' }
- })),
- (f.cat.prototype.nodes = d({
- params: {
- format: { type: 'string' },
- fullId: { type: 'boolean', name: 'full_id' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/nodes' }
- })),
- (f.cat.prototype.pendingTasks = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/pending_tasks' }
- })),
- (f.cat.prototype.plugins = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/plugins' }
- })),
- (f.cat.prototype.recovery = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/recovery/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/recovery' }
- ]
- })),
- (f.cat.prototype.repositories = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean', default: !1 },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/repositories' }
- })),
- (f.cat.prototype.segments = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/segments/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/segments' }
- ]
- })),
- (f.cat.prototype.shards = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/shards/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/shards' }
- ]
- })),
- (f.cat.prototype.snapshots = d({
- params: {
- format: { type: 'string' },
- ignoreUnavailable: { type: 'boolean', default: !1, name: 'ignore_unavailable' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/snapshots/<%=repository%>', req: { repository: { type: 'list' } } },
- { fmt: '/_cat/snapshots' }
- ]
- })),
- (f.cat.prototype.tasks = d({
- params: {
- format: { type: 'string' },
- nodeId: { type: 'list', name: 'node_id' },
- actions: { type: 'list' },
- detailed: { type: 'boolean' },
- parentTask: { type: 'number', name: 'parent_task' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/tasks' }
- })),
- (f.cat.prototype.templates = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/templates/<%=name%>', req: { name: { type: 'string' } } },
- { fmt: '/_cat/templates' }
- ]
- })),
- (f.cat.prototype.threadPool = d({
- params: {
- format: { type: 'string' },
- size: { type: 'enum', options: ['', 'k', 'm', 'g', 't', 'p'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- {
- fmt: '/_cat/thread_pool/<%=threadPoolPatterns%>',
- req: { threadPoolPatterns: { type: 'list' } }
- },
- { fmt: '/_cat/thread_pool' }
- ]
- })),
- (f.clearScroll = d({
- url: { fmt: '/_search/scroll' },
- paramAsBody: { param: 'scrollId', body: 'scroll_id' },
- method: 'DELETE'
- })),
- (f.cluster = e()),
- (f.cluster.prototype.allocationExplain = d({
- params: {
- includeYesDecisions: { type: 'boolean', name: 'include_yes_decisions' },
- includeDiskInfo: { type: 'boolean', name: 'include_disk_info' }
- },
- url: { fmt: '/_cluster/allocation/explain' },
- method: 'POST'
- })),
- (f.cluster.prototype.getSettings = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- url: { fmt: '/_cluster/settings' }
- })),
- (f.cluster.prototype.health = d({
- params: {
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- level: { type: 'enum', default: 'cluster', options: ['cluster', 'indices', 'shards'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- waitForNodes: { type: 'string', name: 'wait_for_nodes' },
- waitForEvents: {
- type: 'enum',
- options: ['immediate', 'urgent', 'high', 'normal', 'low', 'languid'],
- name: 'wait_for_events'
- },
- waitForNoRelocatingShards: { type: 'boolean', name: 'wait_for_no_relocating_shards' },
- waitForNoInitializingShards: { type: 'boolean', name: 'wait_for_no_initializing_shards' },
- waitForStatus: {
- type: 'enum',
- default: null,
- options: ['green', 'yellow', 'red'],
- name: 'wait_for_status'
- }
- },
- urls: [
- { fmt: '/_cluster/health/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cluster/health' }
- ]
- })),
- (f.cluster.prototype.pendingTasks = d({
- params: { local: { type: 'boolean' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_cluster/pending_tasks' }
- })),
- (f.cluster.prototype.putSettings = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_cluster/settings' },
- needBody: !0,
- method: 'PUT'
- })),
- (f.cluster.prototype.remoteInfo = d({ url: { fmt: '/_remote/info' } })),
- (f.cluster.prototype.reroute = d({
- params: {
- dryRun: { type: 'boolean', name: 'dry_run' },
- explain: { type: 'boolean' },
- retryFailed: { type: 'boolean', name: 'retry_failed' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'master_node',
- 'version'
- ]
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_cluster/reroute' },
- method: 'POST'
- })),
- (f.cluster.prototype.state = d({
- params: {
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- waitForMetadataVersion: { type: 'number', name: 'wait_for_metadata_version' },
- waitForTimeout: { type: 'time', name: 'wait_for_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- {
- fmt: '/_cluster/state/<%=metric%>/<%=index%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'routing_nodes',
- 'master_node',
- 'version'
- ]
- },
- index: { type: 'list' }
- }
- },
- {
- fmt: '/_cluster/state/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'routing_nodes',
- 'master_node',
- 'version'
- ]
- }
- }
- },
- { fmt: '/_cluster/state' }
- ]
- })),
- (f.cluster.prototype.stats = d({
- params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
- urls: [
- { fmt: '/_cluster/stats/nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- { fmt: '/_cluster/stats' }
- ]
- })),
- (f.count = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- minScore: { type: 'number', name: 'min_score' },
- preference: { type: 'string' },
- routing: { type: 'list' },
- q: { type: 'string' },
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- lenient: { type: 'boolean' },
- terminateAfter: { type: 'number', name: 'terminate_after' }
- },
- urls: [{ fmt: '/<%=index%>/_count', req: { index: { type: 'list' } } }, { fmt: '/_count' }],
- method: 'POST'
- })),
- (f.create = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- },
- pipeline: { type: 'string' }
- },
- url: {
- fmt: '/<%=index%>/_create/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- needBody: !0,
- method: 'POST'
- })),
- (f.delete = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'DELETE'
- })),
- (f.deleteByQuery = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- searchTimeout: { type: 'time', name: 'search_timeout' },
- size: { type: 'number' },
- maxDocs: { type: 'number', name: 'max_docs' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- version: { type: 'boolean' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- scrollSize: { type: 'number', name: 'scroll_size' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- slices: { type: 'number', default: 1 }
- },
- url: { fmt: '/<%=index%>/_delete_by_query', req: { index: { type: 'list' } } },
- needBody: !0,
- method: 'POST'
- })),
- (f.deleteByQueryRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_delete_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- })),
- (f.deleteScript = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.exists = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'HEAD'
- })),
- (f.existsSource = d({
- params: {
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_source/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'HEAD'
- })),
- (f.explain = d({
- params: {
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- analyzer: { type: 'string' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- storedFields: { type: 'list', name: 'stored_fields' },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' }
- },
- url: {
- fmt: '/<%=index%>/_explain/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.fieldCaps = d({
- params: {
- fields: { type: 'list' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- includeUnmapped: { type: 'boolean', default: !1, name: 'include_unmapped' }
- },
- urls: [
- { fmt: '/<%=index%>/_field_caps', req: { index: { type: 'list' } } },
- { fmt: '/_field_caps' }
- ],
- method: 'POST'
- })),
- (f.get = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- }
- })),
- (f.getScript = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
- })),
- (f.getSource = d({
- params: {
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_source/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- }
- })),
- (f.index = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- opType: { type: 'enum', default: 'index', options: ['index', 'create'], name: 'op_type' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
- pipeline: { type: 'string' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_doc', req: { index: { type: 'string' } } }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.indices = e()),
- (f.indices.prototype.analyze = d({
- params: { index: { type: 'string' } },
- urls: [
- { fmt: '/<%=index%>/_analyze', req: { index: { type: 'string' } } },
- { fmt: '/_analyze' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.clearCache = d({
- params: {
- fielddata: { type: 'boolean' },
- fields: { type: 'list' },
- query: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- index: { type: 'list' },
- request: { type: 'boolean' }
- },
- urls: [
- { fmt: '/<%=index%>/_cache/clear', req: { index: { type: 'list' } } },
- { fmt: '/_cache/clear' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.clone = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_clone/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.close = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: { fmt: '/<%=index%>/_close', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.indices.prototype.create = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'string' } } },
- method: 'PUT'
- })),
- (f.indices.prototype.delete = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
- method: 'DELETE'
- })),
- (f.indices.prototype.deleteAlias = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- method: 'DELETE'
- })),
- (f.indices.prototype.deleteTemplate = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.indices.prototype.exists = d({
- params: {
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
- method: 'HEAD'
- })),
- (f.indices.prototype.existsAlias = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } }
- ],
- method: 'HEAD'
- })),
- (f.indices.prototype.existsTemplate = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } },
- method: 'HEAD'
- })),
- (f.indices.prototype.existsType = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- url: {
- fmt: '/<%=index%>/_mapping/<%=type%>',
- req: { index: { type: 'list' }, type: { type: 'list' } }
- },
- method: 'HEAD'
- })),
- (f.indices.prototype.flush = d({
- params: {
- force: { type: 'boolean' },
- waitIfOngoing: { type: 'boolean', name: 'wait_if_ongoing' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_flush', req: { index: { type: 'list' } } }, { fmt: '/_flush' }],
- method: 'POST'
- })),
- (f.indices.prototype.flushSynced = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_flush/synced', req: { index: { type: 'list' } } },
- { fmt: '/_flush/synced' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.forcemerge = d({
- params: {
- flush: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- maxNumSegments: { type: 'number', name: 'max_num_segments' },
- onlyExpungeDeletes: { type: 'boolean', name: 'only_expunge_deletes' }
- },
- urls: [
- { fmt: '/<%=index%>/_forcemerge', req: { index: { type: 'list' } } },
- { fmt: '/_forcemerge' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.get = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' },
- masterTimeout: { type: 'time', name: 'master_timeout' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } }
- })),
- (f.indices.prototype.getAlias = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/<%=index%>/_alias', req: { index: { type: 'list' } } },
- { fmt: '/_alias' }
- ]
- })),
- (f.indices.prototype.getFieldMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- includeDefaults: { type: 'boolean', name: 'include_defaults' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_mapping/field/<%=fields%>',
- req: { index: { type: 'list' }, fields: { type: 'list' } }
- },
- { fmt: '/_mapping/field/<%=fields%>', req: { fields: { type: 'list' } } }
- ]
- })),
- (f.indices.prototype.getMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- urls: [{ fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } }, { fmt: '/_mapping' }]
- })),
- (f.indices.prototype.getSettings = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: ['open', 'closed'],
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- local: { type: 'boolean' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_settings/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
- { fmt: '/_settings/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/_settings' }
- ]
- })),
- (f.indices.prototype.getTemplate = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- urls: [{ fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } }, { fmt: '/_template' }]
- })),
- (f.indices.prototype.getUpgrade = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }]
- })),
- (f.indices.prototype.open = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'closed',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: { fmt: '/<%=index%>/_open', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.indices.prototype.putAlias = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'string' } }
- },
- method: 'PUT'
- })),
- (f.indices.prototype.putMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- url: { fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.putSettings = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- preserveExisting: { type: 'boolean', name: 'preserve_existing' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' }
- },
- urls: [
- { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
- { fmt: '/_settings' }
- ],
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.putTemplate = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- order: { type: 'number' },
- create: { type: 'boolean', default: !1 },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- flatSettings: { type: 'boolean', name: 'flat_settings' }
- },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.recovery = d({
- params: {
- detailed: { type: 'boolean', default: !1 },
- activeOnly: { type: 'boolean', default: !1, name: 'active_only' }
- },
- urls: [
- { fmt: '/<%=index%>/_recovery', req: { index: { type: 'list' } } },
- { fmt: '/_recovery' }
- ]
- })),
- (f.indices.prototype.refresh = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_refresh', req: { index: { type: 'list' } } }, { fmt: '/_refresh' }],
- method: 'POST'
- })),
- (f.indices.prototype.rollover = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- timeout: { type: 'time' },
- dryRun: { type: 'boolean', name: 'dry_run' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- urls: [
- {
- fmt: '/<%=alias%>/_rollover/<%=newIndex%>',
- req: { alias: { type: 'string' }, newIndex: { type: 'string' } }
- },
- { fmt: '/<%=alias%>/_rollover', req: { alias: { type: 'string' } } }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.segments = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- verbose: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/<%=index%>/_segments', req: { index: { type: 'list' } } },
- { fmt: '/_segments' }
- ]
- })),
- (f.indices.prototype.shardStores = d({
- params: {
- status: { type: 'list', options: ['green', 'yellow', 'red', 'all'] },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_shard_stores', req: { index: { type: 'list' } } },
- { fmt: '/_shard_stores' }
- ]
- })),
- (f.indices.prototype.shrink = d({
- params: {
- copySettings: { type: 'boolean', name: 'copy_settings' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_shrink/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.split = d({
- params: {
- copySettings: { type: 'boolean', name: 'copy_settings' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_split/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.stats = d({
- params: {
- completionFields: { type: 'list', name: 'completion_fields' },
- fielddataFields: { type: 'list', name: 'fielddata_fields' },
- fields: { type: 'list' },
- groups: { type: 'list' },
- level: { type: 'enum', default: 'indices', options: ['cluster', 'indices', 'shards'] },
- types: { type: 'list' },
- includeSegmentFileSizes: {
- type: 'boolean',
- default: !1,
- name: 'include_segment_file_sizes'
- },
- includeUnloadedSegments: {
- type: 'boolean',
- default: !1,
- name: 'include_unloaded_segments'
- },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- forbidClosedIndices: { type: 'boolean', default: !0, name: 'forbid_closed_indices' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_stats/<%=metric%>',
- req: {
- index: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- {
- fmt: '/_stats/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- { fmt: '/<%=index%>/_stats', req: { index: { type: 'list' } } },
- { fmt: '/_stats' }
- ]
- })),
- (f.indices.prototype.updateAliases = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_aliases' },
- needBody: !0,
- method: 'POST'
- })),
- (f.indices.prototype.upgrade = d({
- params: {
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- onlyAncientSegments: { type: 'boolean', name: 'only_ancient_segments' }
- },
- urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }],
- method: 'POST'
- })),
- (f.indices.prototype.validateQuery = d({
- params: {
- explain: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- q: { type: 'string' },
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- lenient: { type: 'boolean' },
- rewrite: { type: 'boolean' },
- allShards: { type: 'boolean', name: 'all_shards' }
- },
- urls: [
- { fmt: '/<%=index%>/_validate/query', req: { index: { type: 'list' } } },
- { fmt: '/_validate/query' }
- ],
- method: 'POST'
- })),
- (f.info = d({ url: { fmt: '/' } })),
- (f.ingest = e()),
- (f.ingest.prototype.deletePipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.ingest.prototype.getPipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- urls: [
- { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- { fmt: '/_ingest/pipeline' }
- ]
- })),
- (f.ingest.prototype.processorGrok = d({ url: { fmt: '/_ingest/processor/grok' } })),
- (f.ingest.prototype.putPipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.ingest.prototype.simulate = d({
- params: { verbose: { type: 'boolean', default: !1 } },
- urls: [
- { fmt: '/_ingest/pipeline/<%=id%>/_simulate', req: { id: { type: 'string' } } },
- { fmt: '/_ingest/pipeline/_simulate' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.mget = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' }
- },
- urls: [{ fmt: '/<%=index%>/_mget', req: { index: { type: 'string' } } }, { fmt: '/_mget' }],
- needBody: !0,
- method: 'POST'
- })),
- (f.msearch = d({
- params: {
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
- maxConcurrentShardRequests: {
- type: 'number',
- default: 5,
- name: 'max_concurrent_shard_requests'
- },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [{ fmt: '/<%=index%>/_msearch', req: { index: { type: 'list' } } }, { fmt: '/_msearch' }],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.msearchTemplate = d({
- params: {
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [
- { fmt: '/<%=index%>/_msearch/template', req: { index: { type: 'list' } } },
- { fmt: '/_msearch/template' }
- ],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.mtermvectors = d({
- params: {
- ids: { type: 'list', required: !1 },
- termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
- fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
- fields: { type: 'list', required: !1 },
- offsets: { type: 'boolean', default: !0, required: !1 },
- positions: { type: 'boolean', default: !0, required: !1 },
- payloads: { type: 'boolean', default: !0, required: !1 },
- preference: { type: 'string', required: !1 },
- routing: { type: 'string', required: !1 },
- realtime: { type: 'boolean', required: !1 },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_mtermvectors', req: { index: { type: 'string' } } },
- { fmt: '/_mtermvectors' }
- ],
- method: 'POST'
- })),
- (f.nodes = e()),
- (f.nodes.prototype.hotThreads = d({
- params: {
- interval: { type: 'time' },
- snapshots: { type: 'number' },
- threads: { type: 'number' },
- ignoreIdleThreads: { type: 'boolean', name: 'ignore_idle_threads' },
- type: { type: 'enum', options: ['cpu', 'wait', 'block'] },
- timeout: { type: 'time' }
- },
- url: {}
- })),
- (f.nodes.prototype.info = d({
- params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- 'settings',
- 'os',
- 'process',
- 'jvm',
- 'thread_pool',
- 'transport',
- 'http',
- 'plugins',
- 'ingest'
- ]
- }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- 'settings',
- 'os',
- 'process',
- 'jvm',
- 'thread_pool',
- 'transport',
- 'http',
- 'plugins',
- 'ingest'
- ]
- }
- }
- },
- { fmt: '/_nodes' }
- ]
- })),
- (f.nodes.prototype.reloadSecureSettings = d({
- params: { timeout: { type: 'time' } },
- urls: [
- { fmt: '/_nodes/<%=nodeId%>/reload_secure_settings', req: { nodeId: { type: 'list' } } },
- { fmt: '/_nodes/reload_secure_settings' }
- ],
- method: 'POST'
- })),
- (f.nodes.prototype.stats = d({
- params: {
- completionFields: { type: 'list', name: 'completion_fields' },
- fielddataFields: { type: 'list', name: 'fielddata_fields' },
- fields: { type: 'list' },
- groups: { type: 'boolean' },
- level: { type: 'enum', default: 'node', options: ['indices', 'node', 'shards'] },
- types: { type: 'list' },
- timeout: { type: 'time' },
- includeSegmentFileSizes: {
- type: 'boolean',
- default: !1,
- name: 'include_segment_file_sizes'
- }
- },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- },
- indexMetric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- {
- fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- }
- }
- },
- {
- fmt: '/_nodes/stats/<%=metric%>/<%=indexMetric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- },
- indexMetric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>/stats', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/stats/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- }
- }
- },
- { fmt: '/_nodes/stats' }
- ]
- })),
- (f.nodes.prototype.usage = d({
- params: { timeout: { type: 'time' } },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/usage/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: { type: 'list', options: ['_all', 'rest_actions'] }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>/usage', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/usage/<%=metric%>',
- req: { metric: { type: 'list', options: ['_all', 'rest_actions'] } }
- },
- { fmt: '/_nodes/usage' }
- ]
- })),
- (f.ping = d({ url: { fmt: '/' }, method: 'HEAD' })),
- (f.putScript = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- context: { type: 'string' }
- },
- urls: [
- {
- fmt: '/_scripts/<%=id%>/<%=context%>',
- req: { id: { type: 'string' }, context: { type: 'string' } }
- },
- { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
- ],
- needBody: !0,
- method: 'PUT'
- })),
- (f.rankEval = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_rank_eval', req: { index: { type: 'list' } } },
- { fmt: '/_rank_eval' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.reindex = d({
- params: {
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- scroll: { type: 'time', default: '5m' },
- slices: { type: 'number', default: 1 },
- maxDocs: { type: 'number', name: 'max_docs' }
- },
- url: { fmt: '/_reindex' },
- needBody: !0,
- method: 'POST'
- })),
- (f.reindexRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_reindex/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- })),
- (f.renderSearchTemplate = d({
- urls: [
- { fmt: '/_render/template/<%=id%>', req: { id: { type: 'string' } } },
- { fmt: '/_render/template' }
- ],
- method: 'POST'
- })),
- (f.scriptsPainlessExecute = d({ url: { fmt: '/_scripts/painless/_execute' }, method: 'POST' })),
- (f.scroll = d({
- params: {
- scroll: { type: 'time' },
- scrollId: { type: 'string', name: 'scroll_id' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
- },
- url: { fmt: '/_search/scroll' },
- paramAsBody: { param: 'scrollId', body: 'scroll_id' },
- method: 'POST'
- })),
- (f.search = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- ccsMinimizeRoundtrips: {
- type: 'boolean',
- default: 'true',
- name: 'ccs_minimize_roundtrips'
- },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- explain: { type: 'boolean' },
- storedFields: { type: 'list', name: 'stored_fields' },
- docvalueFields: { type: 'list', name: 'docvalue_fields' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- size: { type: 'number' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- suggestField: { type: 'string', name: 'suggest_field' },
- suggestMode: {
- type: 'enum',
- default: 'missing',
- options: ['missing', 'popular', 'always'],
- name: 'suggest_mode'
- },
- suggestSize: { type: 'number', name: 'suggest_size' },
- suggestText: { type: 'string', name: 'suggest_text' },
- timeout: { type: 'time' },
- trackScores: { type: 'boolean', name: 'track_scores' },
- trackTotalHits: { type: 'boolean', name: 'track_total_hits' },
- allowPartialSearchResults: {
- type: 'boolean',
- default: !0,
- name: 'allow_partial_search_results'
- },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- version: { type: 'boolean' },
- seqNoPrimaryTerm: { type: 'boolean', name: 'seq_no_primary_term' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- batchedReduceSize: { type: 'number', default: 512, name: 'batched_reduce_size' },
- maxConcurrentShardRequests: {
- type: 'number',
- default: 5,
- name: 'max_concurrent_shard_requests'
- },
- preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
- },
- urls: [{ fmt: '/<%=index%>/_search', req: { index: { type: 'list' } } }, { fmt: '/_search' }],
- method: 'POST'
- })),
- (f.searchShards = d({
- params: {
- preference: { type: 'string' },
- routing: { type: 'string' },
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_search_shards', req: { index: { type: 'list' } } },
- { fmt: '/_search_shards' }
- ],
- method: 'POST'
- })),
- (f.searchTemplate = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- preference: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- explain: { type: 'boolean' },
- profile: { type: 'boolean' },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [
- { fmt: '/<%=index%>/_search/template', req: { index: { type: 'list' } } },
- { fmt: '/_search/template' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.snapshot = e()),
- (f.snapshot.prototype.create = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.snapshot.prototype.createRepository = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- verify: { type: 'boolean' }
- },
- url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'string' } } },
- needBody: !0,
- method: 'POST'
- })),
- (f.snapshot.prototype.delete = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'DELETE'
- })),
- (f.snapshot.prototype.deleteRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
- method: 'DELETE'
- })),
- (f.snapshot.prototype.get = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- verbose: { type: 'boolean' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
- }
- })),
- (f.snapshot.prototype.getRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, local: { type: 'boolean' } },
- urls: [
- { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
- { fmt: '/_snapshot' }
- ]
- })),
- (f.snapshot.prototype.restore = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_restore',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.snapshot.prototype.status = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' }
- },
- urls: [
- {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_status',
- req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
- },
- { fmt: '/_snapshot/<%=repository%>/_status', req: { repository: { type: 'string' } } },
- { fmt: '/_snapshot/_status' }
- ]
- })),
- (f.snapshot.prototype.verifyRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_snapshot/<%=repository%>/_verify', req: { repository: { type: 'string' } } },
- method: 'POST'
- })),
- (f.tasks = e()),
- (f.tasks.prototype.cancel = d({
- params: {
- nodes: { type: 'list' },
- actions: { type: 'list' },
- parentTaskId: { type: 'string', name: 'parent_task_id' }
- },
- urls: [
- { fmt: '/_tasks/<%=taskId%>/_cancel', req: { taskId: { type: 'string' } } },
- { fmt: '/_tasks/_cancel' }
- ],
- method: 'POST'
- })),
- (f.tasks.prototype.get = d({
- params: {
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_tasks/<%=taskId%>', req: { taskId: { type: 'string' } } }
- })),
- (f.tasks.prototype.list = d({
- params: {
- nodes: { type: 'list' },
- actions: { type: 'list' },
- detailed: { type: 'boolean' },
- parentTaskId: { type: 'string', name: 'parent_task_id' },
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- groupBy: {
- type: 'enum',
- default: 'nodes',
- options: ['nodes', 'parents', 'none'],
- name: 'group_by'
- },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_tasks' }
- })),
- (f.termvectors = d({
- params: {
- termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
- fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
- fields: { type: 'list', required: !1 },
- offsets: { type: 'boolean', default: !0, required: !1 },
- positions: { type: 'boolean', default: !0, required: !1 },
- payloads: { type: 'boolean', default: !0, required: !1 },
- preference: { type: 'string', required: !1 },
- routing: { type: 'string', required: !1 },
- realtime: { type: 'boolean', required: !1 },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- urls: [
- {
- fmt: '/<%=index%>/_termvectors/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_termvectors', req: { index: { type: 'string' } } }
- ],
- method: 'POST'
- })),
- (f.update = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- lang: { type: 'string' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- retryOnConflict: { type: 'number', name: 'retry_on_conflict' },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' }
- },
- url: {
- fmt: '/<%=index%>/_update/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- needBody: !0,
- method: 'POST'
- })),
- (f.updateByQuery = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- pipeline: { type: 'string' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- searchTimeout: { type: 'time', name: 'search_timeout' },
- size: { type: 'number' },
- maxDocs: { type: 'number', name: 'max_docs' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- version: { type: 'boolean' },
- versionType: { type: 'boolean', name: 'version_type' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- scrollSize: { type: 'number', name: 'scroll_size' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- slices: { type: 'number', default: 1 }
- },
- url: { fmt: '/<%=index%>/_update_by_query', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.updateByQueryRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_update_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- }));
- },
- function(a, b, c) {
- var d = c(1).makeFactoryWithModifier(function(a) {
- return c(0).merge(a, { params: { filterPath: { type: 'list', name: 'filter_path' } } });
- }),
- e = c(1).namespaceFactory,
- f = (a.exports = {});
- (f._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'nodes', 'snapshot', 'tasks']),
- (f.bulk = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- type: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- pipeline: { type: 'string' }
- },
- urls: [
- {
- fmt: '/<%=index%>/<%=type%>/_bulk',
- req: { index: { type: 'string' }, type: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_bulk', req: { index: { type: 'string' } } },
- { fmt: '/_bulk' }
- ],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.cat = e()),
- (f.cat.prototype.aliases = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/aliases/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/_cat/aliases' }
- ]
- })),
- (f.cat.prototype.allocation = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/allocation/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- { fmt: '/_cat/allocation' }
- ]
- })),
- (f.cat.prototype.count = d({
- params: {
- format: { type: 'string' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/count/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/count' }
- ]
- })),
- (f.cat.prototype.fielddata = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 },
- fields: { type: 'list' }
- },
- urls: [
- { fmt: '/_cat/fielddata/<%=fields%>', req: { fields: { type: 'list' } } },
- { fmt: '/_cat/fielddata' }
- ]
- })),
- (f.cat.prototype.health = d({
- params: {
- format: { type: 'string' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- time: {
- type: 'enum',
- options: [
- 'd (Days)',
- 'h (Hours)',
- 'm (Minutes)',
- 's (Seconds)',
- 'ms (Milliseconds)',
- 'micros (Microseconds)',
- 'nanos (Nanoseconds)'
- ]
- },
- ts: { type: 'boolean', default: !0 },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/health' }
- })),
- (f.cat.prototype.help = d({
- params: { help: { type: 'boolean', default: !1 }, s: { type: 'list' } },
- url: { fmt: '/_cat' }
- })),
- (f.cat.prototype.indices = d({
- params: {
- format: { type: 'string' },
- bytes: { type: 'enum', options: ['b', 'k', 'm', 'g'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- health: { type: 'enum', default: null, options: ['green', 'yellow', 'red'] },
- help: { type: 'boolean', default: !1 },
- pri: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- time: {
- type: 'enum',
- options: [
- 'd (Days)',
- 'h (Hours)',
- 'm (Minutes)',
- 's (Seconds)',
- 'ms (Milliseconds)',
- 'micros (Microseconds)',
- 'nanos (Nanoseconds)'
- ]
- },
- v: { type: 'boolean', default: !1 },
- includeUnloadedSegments: { type: 'boolean', default: !1, name: 'include_unloaded_segments' }
- },
- urls: [
- { fmt: '/_cat/indices/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/indices' }
- ]
- })),
- (f.cat.prototype.master = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/master' }
- })),
- (f.cat.prototype.nodeattrs = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/nodeattrs' }
- })),
- (f.cat.prototype.nodes = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- fullId: { type: 'boolean', name: 'full_id' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- time: {
- type: 'enum',
- options: [
- 'd (Days)',
- 'h (Hours)',
- 'm (Minutes)',
- 's (Seconds)',
- 'ms (Milliseconds)',
- 'micros (Microseconds)',
- 'nanos (Nanoseconds)'
- ]
- },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/nodes' }
- })),
- (f.cat.prototype.pendingTasks = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- time: {
- type: 'enum',
- options: [
- 'd (Days)',
- 'h (Hours)',
- 'm (Minutes)',
- 's (Seconds)',
- 'ms (Milliseconds)',
- 'micros (Microseconds)',
- 'nanos (Nanoseconds)'
- ]
- },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/pending_tasks' }
- })),
- (f.cat.prototype.plugins = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/plugins' }
- })),
- (f.cat.prototype.recovery = d({
- params: {
- format: { type: 'string' },
- activeOnly: { type: 'boolean', default: !1, name: 'active_only' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- detailed: { type: 'boolean', default: !1 },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- index: { type: 'list' },
- s: {
- type: 'list'
- },
- time: {
- type: 'enum',
- options: [
- 'd (Days)',
- 'h (Hours)',
- 'm (Minutes)',
- 's (Seconds)',
- 'ms (Milliseconds)',
- 'micros (Microseconds)',
- 'nanos (Nanoseconds)'
- ]
- },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/recovery/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/recovery' }
- ]
- })),
- (f.cat.prototype.repositories = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean', default: !1 },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/repositories' }
- })),
- (f.cat.prototype.segments = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/segments/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/segments' }
- ]
- })),
- (f.cat.prototype.shards = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- time: {
- type: 'enum',
- options: [
- 'd (Days)',
- 'h (Hours)',
- 'm (Minutes)',
- 's (Seconds)',
- 'ms (Milliseconds)',
- 'micros (Microseconds)',
- 'nanos (Nanoseconds)'
- ]
- },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/shards/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/shards' }
- ]
- })),
- (f.cat.prototype.snapshots = d({
- params: {
- format: { type: 'string' },
- ignoreUnavailable: { type: 'boolean', default: !1, name: 'ignore_unavailable' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- time: {
- type: 'enum',
- options: [
- 'd (Days)',
- 'h (Hours)',
- 'm (Minutes)',
- 's (Seconds)',
- 'ms (Milliseconds)',
- 'micros (Microseconds)',
- 'nanos (Nanoseconds)'
- ]
- },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/snapshots/<%=repository%>', req: { repository: { type: 'list' } } },
- { fmt: '/_cat/snapshots' }
- ]
- })),
- (f.cat.prototype.tasks = d({
- params: {
- format: { type: 'string' },
- nodeId: { type: 'list', name: 'node_id' },
- actions: { type: 'list' },
- detailed: { type: 'boolean' },
- parentTask: { type: 'number', name: 'parent_task' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- time: {
- type: 'enum',
- options: [
- 'd (Days)',
- 'h (Hours)',
- 'm (Minutes)',
- 's (Seconds)',
- 'ms (Milliseconds)',
- 'micros (Microseconds)',
- 'nanos (Nanoseconds)'
- ]
- },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/tasks' }
- })),
- (f.cat.prototype.templates = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/templates/<%=name%>', req: { name: { type: 'string' } } },
- { fmt: '/_cat/templates' }
- ]
- })),
- (f.cat.prototype.threadPool = d({
- params: {
- format: { type: 'string' },
- size: { type: 'enum', options: ['', 'k', 'm', 'g', 't', 'p'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- {
- fmt: '/_cat/thread_pool/<%=threadPoolPatterns%>',
- req: { threadPoolPatterns: { type: 'list' } }
- },
- { fmt: '/_cat/thread_pool' }
- ]
- })),
- (f.clearScroll = d({
- url: { fmt: '/_search/scroll' },
- paramAsBody: { param: 'scrollId', body: 'scroll_id' },
- method: 'DELETE'
- })),
- (f.cluster = e()),
- (f.cluster.prototype.allocationExplain = d({
- params: {
- includeYesDecisions: { type: 'boolean', name: 'include_yes_decisions' },
- includeDiskInfo: { type: 'boolean', name: 'include_disk_info' }
- },
- url: { fmt: '/_cluster/allocation/explain' },
- method: 'POST'
- })),
- (f.cluster.prototype.getSettings = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- url: { fmt: '/_cluster/settings' }
- })),
- (f.cluster.prototype.health = d({
- params: {
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- level: { type: 'enum', default: 'cluster', options: ['cluster', 'indices', 'shards'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- waitForNodes: { type: 'string', name: 'wait_for_nodes' },
- waitForEvents: {
- type: 'enum',
- options: ['immediate', 'urgent', 'high', 'normal', 'low', 'languid'],
- name: 'wait_for_events'
- },
- waitForNoRelocatingShards: { type: 'boolean', name: 'wait_for_no_relocating_shards' },
- waitForNoInitializingShards: { type: 'boolean', name: 'wait_for_no_initializing_shards' },
- waitForStatus: {
- type: 'enum',
- default: null,
- options: ['green', 'yellow', 'red'],
- name: 'wait_for_status'
- }
- },
- urls: [
- { fmt: '/_cluster/health/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cluster/health' }
- ]
- })),
- (f.cluster.prototype.pendingTasks = d({
- params: { local: { type: 'boolean' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_cluster/pending_tasks' }
- })),
- (f.cluster.prototype.putSettings = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_cluster/settings' },
- needBody: !0,
- method: 'PUT'
- })),
- (f.cluster.prototype.remoteInfo = d({ url: { fmt: '/_remote/info' } })),
- (f.cluster.prototype.reroute = d({
- params: {
- dryRun: { type: 'boolean', name: 'dry_run' },
- explain: { type: 'boolean' },
- retryFailed: { type: 'boolean', name: 'retry_failed' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'master_node',
- 'version'
- ]
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_cluster/reroute' },
- method: 'POST'
- })),
- (f.cluster.prototype.state = d({
- params: {
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- waitForMetadataVersion: { type: 'number', name: 'wait_for_metadata_version' },
- waitForTimeout: { type: 'time', name: 'wait_for_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- {
- fmt: '/_cluster/state/<%=metric%>/<%=index%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'routing_nodes',
- 'master_node',
- 'version'
- ]
- },
- index: { type: 'list' }
- }
- },
- {
- fmt: '/_cluster/state/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'routing_nodes',
- 'master_node',
- 'version'
- ]
- }
- }
- },
- { fmt: '/_cluster/state' }
- ]
- })),
- (f.cluster.prototype.stats = d({
- params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
- urls: [
- { fmt: '/_cluster/stats/nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- { fmt: '/_cluster/stats' }
- ]
- })),
- (f.count = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- minScore: { type: 'number', name: 'min_score' },
- preference: { type: 'string' },
- routing: { type: 'list' },
- q: { type: 'string' },
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- lenient: { type: 'boolean' },
- terminateAfter: { type: 'number', name: 'terminate_after' }
- },
- urls: [{ fmt: '/<%=index%>/_count', req: { index: { type: 'list' } } }, { fmt: '/_count' }],
- method: 'POST'
- })),
- (f.create = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- },
- pipeline: { type: 'string' }
- },
- url: {
- fmt: '/<%=index%>/_create/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- needBody: !0,
- method: 'POST'
- })),
- (f.delete = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'DELETE'
- })),
- (f.deleteByQuery = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- searchTimeout: { type: 'time', name: 'search_timeout' },
- size: { type: 'number' },
- maxDocs: { type: 'number', name: 'max_docs' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- version: { type: 'boolean' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- scrollSize: { type: 'number', name: 'scroll_size' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- slices: { type: 'number', default: 1 }
- },
- url: { fmt: '/<%=index%>/_delete_by_query', req: { index: { type: 'list' } } },
- needBody: !0,
- method: 'POST'
- })),
- (f.deleteByQueryRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_delete_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- })),
- (f.deleteScript = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.exists = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'HEAD'
- })),
- (f.existsSource = d({
- params: {
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_source/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'HEAD'
- })),
- (f.explain = d({
- params: {
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- analyzer: { type: 'string' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- storedFields: { type: 'list', name: 'stored_fields' },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' }
- },
- url: {
- fmt: '/<%=index%>/_explain/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.fieldCaps = d({
- params: {
- fields: { type: 'list' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- includeUnmapped: { type: 'boolean', default: !1, name: 'include_unmapped' }
- },
- urls: [
- { fmt: '/<%=index%>/_field_caps', req: { index: { type: 'list' } } },
- { fmt: '/_field_caps' }
- ],
- method: 'POST'
- })),
- (f.get = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- }
- })),
- (f.getScript = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
- })),
- (f.getSource = d({
- params: {
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_source/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- }
- })),
- (f.index = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- opType: { type: 'enum', default: 'index', options: ['index', 'create'], name: 'op_type' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
- pipeline: { type: 'string' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_doc', req: { index: { type: 'string' } } }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.indices = e()),
- (f.indices.prototype.analyze = d({
- params: { index: { type: 'string' } },
- urls: [
- { fmt: '/<%=index%>/_analyze', req: { index: { type: 'string' } } },
- { fmt: '/_analyze' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.clearCache = d({
- params: {
- fielddata: { type: 'boolean' },
- fields: { type: 'list' },
- query: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- index: { type: 'list' },
- request: { type: 'boolean' }
- },
- urls: [
- { fmt: '/<%=index%>/_cache/clear', req: { index: { type: 'list' } } },
- { fmt: '/_cache/clear' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.close = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: { fmt: '/<%=index%>/_close', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.indices.prototype.create = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'string' } } },
- method: 'PUT'
- })),
- (f.indices.prototype.delete = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
- method: 'DELETE'
- })),
- (f.indices.prototype.deleteAlias = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- method: 'DELETE'
- })),
- (f.indices.prototype.deleteTemplate = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.indices.prototype.exists = d({
- params: {
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
- method: 'HEAD'
- })),
- (f.indices.prototype.existsAlias = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } }
- ],
- method: 'HEAD'
- })),
- (f.indices.prototype.existsTemplate = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } },
- method: 'HEAD'
- })),
- (f.indices.prototype.existsType = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- url: {
- fmt: '/<%=index%>/_mapping/<%=type%>',
- req: { index: { type: 'list' }, type: { type: 'list' } }
- },
- method: 'HEAD'
- })),
- (f.indices.prototype.flush = d({
- params: {
- force: { type: 'boolean' },
- waitIfOngoing: { type: 'boolean', name: 'wait_if_ongoing' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_flush', req: { index: { type: 'list' } } }, { fmt: '/_flush' }],
- method: 'POST'
- })),
- (f.indices.prototype.flushSynced = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_flush/synced', req: { index: { type: 'list' } } },
- { fmt: '/_flush/synced' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.forcemerge = d({
- params: {
- flush: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- maxNumSegments: { type: 'number', name: 'max_num_segments' },
- onlyExpungeDeletes: { type: 'boolean', name: 'only_expunge_deletes' }
- },
- urls: [
- { fmt: '/<%=index%>/_forcemerge', req: { index: { type: 'list' } } },
- { fmt: '/_forcemerge' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.get = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' },
- masterTimeout: { type: 'time', name: 'master_timeout' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } }
- })),
- (f.indices.prototype.getAlias = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/<%=index%>/_alias', req: { index: { type: 'list' } } },
- { fmt: '/_alias' }
- ]
- })),
- (f.indices.prototype.getFieldMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- includeDefaults: { type: 'boolean', name: 'include_defaults' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_mapping/field/<%=fields%>',
- req: { index: { type: 'list' }, fields: { type: 'list' } }
- },
- { fmt: '/_mapping/field/<%=fields%>', req: { fields: { type: 'list' } } }
- ]
- })),
- (f.indices.prototype.getMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- urls: [{ fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } }, { fmt: '/_mapping' }]
- })),
- (f.indices.prototype.getSettings = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: ['open', 'closed'],
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- local: { type: 'boolean' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_settings/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
- { fmt: '/_settings/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/_settings' }
- ]
- })),
- (f.indices.prototype.getTemplate = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- urls: [{ fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } }, { fmt: '/_template' }]
- })),
- (f.indices.prototype.getUpgrade = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }]
- })),
- (f.indices.prototype.open = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'closed',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: { fmt: '/<%=index%>/_open', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.indices.prototype.putAlias = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'string' } }
- },
- method: 'PUT'
- })),
- (f.indices.prototype.putMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- url: { fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.putSettings = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- preserveExisting: { type: 'boolean', name: 'preserve_existing' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' }
- },
- urls: [
- { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
- { fmt: '/_settings' }
- ],
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.putTemplate = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- order: { type: 'number' },
- create: { type: 'boolean', default: !1 },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- flatSettings: { type: 'boolean', name: 'flat_settings' }
- },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.recovery = d({
- params: {
- detailed: { type: 'boolean', default: !1 },
- activeOnly: { type: 'boolean', default: !1, name: 'active_only' }
- },
- urls: [
- { fmt: '/<%=index%>/_recovery', req: { index: { type: 'list' } } },
- { fmt: '/_recovery' }
- ]
- })),
- (f.indices.prototype.refresh = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_refresh', req: { index: { type: 'list' } } }, { fmt: '/_refresh' }],
- method: 'POST'
- })),
- (f.indices.prototype.rollover = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- timeout: { type: 'time' },
- dryRun: { type: 'boolean', name: 'dry_run' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- urls: [
- {
- fmt: '/<%=alias%>/_rollover/<%=newIndex%>',
- req: { alias: { type: 'string' }, newIndex: { type: 'string' } }
- },
- { fmt: '/<%=alias%>/_rollover', req: { alias: { type: 'string' } } }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.segments = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- verbose: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/<%=index%>/_segments', req: { index: { type: 'list' } } },
- { fmt: '/_segments' }
- ]
- })),
- (f.indices.prototype.shardStores = d({
- params: {
- status: { type: 'list', options: ['green', 'yellow', 'red', 'all'] },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_shard_stores', req: { index: { type: 'list' } } },
- { fmt: '/_shard_stores' }
- ]
- })),
- (f.indices.prototype.shrink = d({
- params: {
- copySettings: { type: 'boolean', name: 'copy_settings' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_shrink/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.split = d({
- params: {
- copySettings: { type: 'boolean', name: 'copy_settings' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_split/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.stats = d({
- params: {
- completionFields: { type: 'list', name: 'completion_fields' },
- fielddataFields: { type: 'list', name: 'fielddata_fields' },
- fields: { type: 'list' },
- groups: { type: 'list' },
- level: { type: 'enum', default: 'indices', options: ['cluster', 'indices', 'shards'] },
- types: { type: 'list' },
- includeSegmentFileSizes: {
- type: 'boolean',
- default: !1,
- name: 'include_segment_file_sizes'
- },
- includeUnloadedSegments: {
- type: 'boolean',
- default: !1,
- name: 'include_unloaded_segments'
- },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- forbidClosedIndices: { type: 'boolean', default: !0, name: 'forbid_closed_indices' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_stats/<%=metric%>',
- req: {
- index: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- {
- fmt: '/_stats/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- { fmt: '/<%=index%>/_stats', req: { index: { type: 'list' } } },
- { fmt: '/_stats' }
- ]
- })),
- (f.indices.prototype.updateAliases = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_aliases' },
- needBody: !0,
- method: 'POST'
- })),
- (f.indices.prototype.upgrade = d({
- params: {
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- onlyAncientSegments: { type: 'boolean', name: 'only_ancient_segments' }
- },
- urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }],
- method: 'POST'
- })),
- (f.indices.prototype.validateQuery = d({
- params: {
- explain: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- q: { type: 'string' },
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- lenient: { type: 'boolean' },
- rewrite: { type: 'boolean' },
- allShards: { type: 'boolean', name: 'all_shards' }
- },
- urls: [
- { fmt: '/<%=index%>/_validate/query', req: { index: { type: 'list' } } },
- { fmt: '/_validate/query' }
- ],
- method: 'POST'
- })),
- (f.info = d({ url: { fmt: '/' } })),
- (f.ingest = e()),
- (f.ingest.prototype.deletePipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.ingest.prototype.getPipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- urls: [
- { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- { fmt: '/_ingest/pipeline' }
- ]
- })),
- (f.ingest.prototype.processorGrok = d({ url: { fmt: '/_ingest/processor/grok' } })),
- (f.ingest.prototype.putPipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.ingest.prototype.simulate = d({
- params: { verbose: { type: 'boolean', default: !1 } },
- urls: [
- { fmt: '/_ingest/pipeline/<%=id%>/_simulate', req: { id: { type: 'string' } } },
- { fmt: '/_ingest/pipeline/_simulate' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.mget = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' }
- },
- urls: [{ fmt: '/<%=index%>/_mget', req: { index: { type: 'string' } } }, { fmt: '/_mget' }],
- needBody: !0,
- method: 'POST'
- })),
- (f.msearch = d({
- params: {
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
- maxConcurrentShardRequests: {
- type: 'number',
- default: 5,
- name: 'max_concurrent_shard_requests'
- },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [{ fmt: '/<%=index%>/_msearch', req: { index: { type: 'list' } } }, { fmt: '/_msearch' }],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.msearchTemplate = d({
- params: {
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [
- { fmt: '/<%=index%>/_msearch/template', req: { index: { type: 'list' } } },
- { fmt: '/_msearch/template' }
- ],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.mtermvectors = d({
- params: {
- ids: { type: 'list', required: !1 },
- termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
- fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
- fields: { type: 'list', required: !1 },
- offsets: { type: 'boolean', default: !0, required: !1 },
- positions: { type: 'boolean', default: !0, required: !1 },
- payloads: { type: 'boolean', default: !0, required: !1 },
- preference: { type: 'string', required: !1 },
- routing: { type: 'string', required: !1 },
- realtime: { type: 'boolean', required: !1 },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_mtermvectors', req: { index: { type: 'string' } } },
- { fmt: '/_mtermvectors' }
- ],
- method: 'POST'
- })),
- (f.nodes = e()),
- (f.nodes.prototype.hotThreads = d({
- params: {
- interval: { type: 'time' },
- snapshots: { type: 'number' },
- threads: { type: 'number' },
- ignoreIdleThreads: { type: 'boolean', name: 'ignore_idle_threads' },
- type: { type: 'enum', options: ['cpu', 'wait', 'block'] },
- timeout: { type: 'time' }
- },
- url: {}
- })),
- (f.nodes.prototype.info = d({
- params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- 'settings',
- 'os',
- 'process',
- 'jvm',
- 'thread_pool',
- 'transport',
- 'http',
- 'plugins',
- 'ingest'
- ]
- }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- 'settings',
- 'os',
- 'process',
- 'jvm',
- 'thread_pool',
- 'transport',
- 'http',
- 'plugins',
- 'ingest'
- ]
- }
- }
- },
- { fmt: '/_nodes' }
- ]
- })),
- (f.nodes.prototype.reloadSecureSettings = d({
- params: { timeout: { type: 'time' } },
- urls: [
- { fmt: '/_nodes/<%=nodeId%>/reload_secure_settings', req: { nodeId: { type: 'list' } } },
- { fmt: '/_nodes/reload_secure_settings' }
- ],
- method: 'POST'
- })),
- (f.nodes.prototype.stats = d({
- params: {
- completionFields: { type: 'list', name: 'completion_fields' },
- fielddataFields: { type: 'list', name: 'fielddata_fields' },
- fields: { type: 'list' },
- groups: { type: 'boolean' },
- level: { type: 'enum', default: 'node', options: ['indices', 'node', 'shards'] },
- types: { type: 'list' },
- timeout: { type: 'time' },
- includeSegmentFileSizes: {
- type: 'boolean',
- default: !1,
- name: 'include_segment_file_sizes'
- }
- },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- },
- indexMetric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- {
- fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- }
- }
- },
- {
- fmt: '/_nodes/stats/<%=metric%>/<%=indexMetric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- },
- indexMetric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>/stats', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/stats/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- }
- }
- },
- { fmt: '/_nodes/stats' }
- ]
- })),
- (f.nodes.prototype.usage = d({
- params: { timeout: { type: 'time' } },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/usage/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: { type: 'list', options: ['_all', 'rest_actions'] }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>/usage', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/usage/<%=metric%>',
- req: { metric: { type: 'list', options: ['_all', 'rest_actions'] } }
- },
- { fmt: '/_nodes/usage' }
- ]
- })),
- (f.ping = d({ url: { fmt: '/' }, method: 'HEAD' })),
- (f.putScript = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- context: { type: 'string' }
- },
- urls: [
- {
- fmt: '/_scripts/<%=id%>/<%=context%>',
- req: { id: { type: 'string' }, context: { type: 'string' } }
- },
- { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
- ],
- needBody: !0,
- method: 'PUT'
- })),
- (f.rankEval = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_rank_eval', req: { index: { type: 'list' } } },
- { fmt: '/_rank_eval' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.reindex = d({
- params: {
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- scroll: { type: 'time', default: '5m' },
- slices: { type: 'number', default: 1 },
- maxDocs: { type: 'number', name: 'max_docs' }
- },
- url: { fmt: '/_reindex' },
- needBody: !0,
- method: 'POST'
- })),
- (f.reindexRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_reindex/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- })),
- (f.renderSearchTemplate = d({
- urls: [
- { fmt: '/_render/template/<%=id%>', req: { id: { type: 'string' } } },
- { fmt: '/_render/template' }
- ],
- method: 'POST'
- })),
- (f.scriptsPainlessExecute = d({ url: { fmt: '/_scripts/painless/_execute' }, method: 'POST' })),
- (f.scroll = d({
- params: {
- scroll: { type: 'time' },
- scrollId: { type: 'string', name: 'scroll_id' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
- },
- url: { fmt: '/_search/scroll' },
- paramAsBody: { param: 'scrollId', body: 'scroll_id' },
- method: 'POST'
- })),
- (f.search = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- ccsMinimizeRoundtrips: {
- type: 'boolean',
- default: 'true',
- name: 'ccs_minimize_roundtrips'
- },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- explain: { type: 'boolean' },
- storedFields: { type: 'list', name: 'stored_fields' },
- docvalueFields: { type: 'list', name: 'docvalue_fields' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- size: { type: 'number' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- suggestField: { type: 'string', name: 'suggest_field' },
- suggestMode: {
- type: 'enum',
- default: 'missing',
- options: ['missing', 'popular', 'always'],
- name: 'suggest_mode'
- },
- suggestSize: { type: 'number', name: 'suggest_size' },
- suggestText: { type: 'string', name: 'suggest_text' },
- timeout: { type: 'time' },
- trackScores: { type: 'boolean', name: 'track_scores' },
- trackTotalHits: { type: 'boolean', name: 'track_total_hits' },
- allowPartialSearchResults: {
- type: 'boolean',
- default: !0,
- name: 'allow_partial_search_results'
- },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- version: { type: 'boolean' },
- seqNoPrimaryTerm: { type: 'boolean', name: 'seq_no_primary_term' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- batchedReduceSize: { type: 'number', default: 512, name: 'batched_reduce_size' },
- maxConcurrentShardRequests: {
- type: 'number',
- default: 5,
- name: 'max_concurrent_shard_requests'
- },
- preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
- },
- urls: [{ fmt: '/<%=index%>/_search', req: { index: { type: 'list' } } }, { fmt: '/_search' }],
- method: 'POST'
- })),
- (f.searchShards = d({
- params: {
- preference: { type: 'string' },
- routing: { type: 'string' },
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_search_shards', req: { index: { type: 'list' } } },
- { fmt: '/_search_shards' }
- ],
- method: 'POST'
- })),
- (f.searchTemplate = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- preference: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- explain: { type: 'boolean' },
- profile: { type: 'boolean' },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [
- { fmt: '/<%=index%>/_search/template', req: { index: { type: 'list' } } },
- { fmt: '/_search/template' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.snapshot = e()),
- (f.snapshot.prototype.create = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.snapshot.prototype.createRepository = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- verify: { type: 'boolean' }
- },
- url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'string' } } },
- needBody: !0,
- method: 'POST'
- })),
- (f.snapshot.prototype.delete = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'DELETE'
- })),
- (f.snapshot.prototype.deleteRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
- method: 'DELETE'
- })),
- (f.snapshot.prototype.get = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- verbose: { type: 'boolean' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
- }
- })),
- (f.snapshot.prototype.getRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, local: { type: 'boolean' } },
- urls: [
- { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
- { fmt: '/_snapshot' }
- ]
- })),
- (f.snapshot.prototype.restore = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_restore',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.snapshot.prototype.status = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' }
- },
- urls: [
- {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_status',
- req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
- },
- { fmt: '/_snapshot/<%=repository%>/_status', req: { repository: { type: 'string' } } },
- { fmt: '/_snapshot/_status' }
- ]
- })),
- (f.snapshot.prototype.verifyRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_snapshot/<%=repository%>/_verify', req: { repository: { type: 'string' } } },
- method: 'POST'
- })),
- (f.tasks = e()),
- (f.tasks.prototype.cancel = d({
- params: {
- nodes: { type: 'list' },
- actions: { type: 'list' },
- parentTaskId: { type: 'string', name: 'parent_task_id' }
- },
- urls: [
- { fmt: '/_tasks/<%=taskId%>/_cancel', req: { taskId: { type: 'string' } } },
- { fmt: '/_tasks/_cancel' }
- ],
- method: 'POST'
- })),
- (f.tasks.prototype.get = d({
- params: {
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_tasks/<%=taskId%>', req: { taskId: { type: 'string' } } }
- })),
- (f.tasks.prototype.list = d({
- params: {
- nodes: { type: 'list' },
- actions: { type: 'list' },
- detailed: { type: 'boolean' },
- parentTaskId: { type: 'string', name: 'parent_task_id' },
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- groupBy: {
- type: 'enum',
- default: 'nodes',
- options: ['nodes', 'parents', 'none'],
- name: 'group_by'
- },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_tasks' }
- })),
- (f.termvectors = d({
- params: {
- termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
- fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
- fields: { type: 'list', required: !1 },
- offsets: { type: 'boolean', default: !0, required: !1 },
- positions: { type: 'boolean', default: !0, required: !1 },
- payloads: { type: 'boolean', default: !0, required: !1 },
- preference: { type: 'string', required: !1 },
- routing: { type: 'string', required: !1 },
- realtime: { type: 'boolean', required: !1 },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- urls: [
- {
- fmt: '/<%=index%>/_termvectors/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_termvectors', req: { index: { type: 'string' } } }
- ],
- method: 'POST'
- })),
- (f.update = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- lang: { type: 'string' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- retryOnConflict: { type: 'number', name: 'retry_on_conflict' },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' }
- },
- url: {
- fmt: '/<%=index%>/_update/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- needBody: !0,
- method: 'POST'
- })),
- (f.updateByQuery = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- pipeline: { type: 'string' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- searchTimeout: { type: 'time', name: 'search_timeout' },
- size: { type: 'number' },
- maxDocs: { type: 'number', name: 'max_docs' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- version: { type: 'boolean' },
- versionType: { type: 'boolean', name: 'version_type' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- scrollSize: { type: 'number', name: 'scroll_size' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- slices: { type: 'number', default: 1 }
- },
- url: { fmt: '/<%=index%>/_update_by_query', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.updateByQueryRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_update_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- }));
- },
- function(a, b, c) {
- var d = c(1).makeFactoryWithModifier(function(a) {
- return c(0).merge(a, { params: { filterPath: { type: 'list', name: 'filter_path' } } });
- }),
- e = c(1).namespaceFactory,
- f = (a.exports = {});
- (f._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'nodes', 'snapshot', 'tasks']),
- (f.bulk = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- type: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- pipeline: { type: 'string' }
- },
- urls: [
- {
- fmt: '/<%=index%>/<%=type%>/_bulk',
- req: { index: { type: 'string' }, type: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_bulk', req: { index: { type: 'string' } } },
- { fmt: '/_bulk' }
- ],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.cat = e()),
- (f.cat.prototype.aliases = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/aliases/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/_cat/aliases' }
- ]
- })),
- (f.cat.prototype.allocation = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/allocation/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- { fmt: '/_cat/allocation' }
- ]
- })),
- (f.cat.prototype.count = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/count/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/count' }
- ]
- })),
- (f.cat.prototype.fielddata = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 },
- fields: { type: 'list' }
- },
- urls: [
- { fmt: '/_cat/fielddata/<%=fields%>', req: { fields: { type: 'list' } } },
- { fmt: '/_cat/fielddata' }
- ]
- })),
- (f.cat.prototype.health = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- ts: { type: 'boolean', default: !0 },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/health' }
- })),
- (f.cat.prototype.help = d({
- params: { help: { type: 'boolean', default: !1 }, s: { type: 'list' } },
- url: { fmt: '/_cat' }
- })),
- (f.cat.prototype.indices = d({
- params: {
- format: { type: 'string' },
- bytes: { type: 'enum', options: ['b', 'k', 'm', 'g'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- health: { type: 'enum', default: null, options: ['green', 'yellow', 'red'] },
- help: { type: 'boolean', default: !1 },
- pri: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 },
- includeUnloadedSegments: { type: 'boolean', default: !1, name: 'include_unloaded_segments' }
- },
- urls: [
- { fmt: '/_cat/indices/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/indices' }
- ]
- })),
- (f.cat.prototype.master = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/master' }
- })),
- (f.cat.prototype.nodeattrs = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/nodeattrs' }
- })),
- (f.cat.prototype.nodes = d({
- params: {
- format: { type: 'string' },
- fullId: { type: 'boolean', name: 'full_id' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/nodes' }
- })),
- (f.cat.prototype.pendingTasks = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/pending_tasks' }
- })),
- (f.cat.prototype.plugins = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/plugins' }
- })),
- (f.cat.prototype.recovery = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/recovery/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/recovery' }
- ]
- })),
- (f.cat.prototype.repositories = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean', default: !1 },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/repositories' }
- })),
- (f.cat.prototype.segments = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/segments/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/segments' }
- ]
- })),
- (f.cat.prototype.shards = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/shards/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/shards' }
- ]
- })),
- (f.cat.prototype.snapshots = d({
- params: {
- format: { type: 'string' },
- ignoreUnavailable: { type: 'boolean', default: !1, name: 'ignore_unavailable' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/snapshots/<%=repository%>', req: { repository: { type: 'list' } } },
- { fmt: '/_cat/snapshots' }
- ]
- })),
- (f.cat.prototype.tasks = d({
- params: {
- format: { type: 'string' },
- nodeId: { type: 'list', name: 'node_id' },
- actions: { type: 'list' },
- detailed: { type: 'boolean' },
- parentTask: { type: 'number', name: 'parent_task' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/tasks' }
- })),
- (f.cat.prototype.templates = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/templates/<%=name%>', req: { name: { type: 'string' } } },
- { fmt: '/_cat/templates' }
- ]
- })),
- (f.cat.prototype.threadPool = d({
- params: {
- format: { type: 'string' },
- size: { type: 'enum', options: ['', 'k', 'm', 'g', 't', 'p'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- {
- fmt: '/_cat/thread_pool/<%=threadPoolPatterns%>',
- req: { threadPoolPatterns: { type: 'list' } }
- },
- { fmt: '/_cat/thread_pool' }
- ]
- })),
- (f.clearScroll = d({
- url: { fmt: '/_search/scroll' },
- paramAsBody: { param: 'scrollId', body: 'scroll_id' },
- method: 'DELETE'
- })),
- (f.cluster = e()),
- (f.cluster.prototype.allocationExplain = d({
- params: {
- includeYesDecisions: { type: 'boolean', name: 'include_yes_decisions' },
- includeDiskInfo: { type: 'boolean', name: 'include_disk_info' }
- },
- url: { fmt: '/_cluster/allocation/explain' },
- method: 'POST'
- })),
- (f.cluster.prototype.getSettings = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- url: { fmt: '/_cluster/settings' }
- })),
- (f.cluster.prototype.health = d({
- params: {
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- level: { type: 'enum', default: 'cluster', options: ['cluster', 'indices', 'shards'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- waitForNodes: { type: 'string', name: 'wait_for_nodes' },
- waitForEvents: {
- type: 'enum',
- options: ['immediate', 'urgent', 'high', 'normal', 'low', 'languid'],
- name: 'wait_for_events'
- },
- waitForNoRelocatingShards: { type: 'boolean', name: 'wait_for_no_relocating_shards' },
- waitForNoInitializingShards: { type: 'boolean', name: 'wait_for_no_initializing_shards' },
- waitForStatus: {
- type: 'enum',
- default: null,
- options: ['green', 'yellow', 'red'],
- name: 'wait_for_status'
- }
- },
- urls: [
- { fmt: '/_cluster/health/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cluster/health' }
- ]
- })),
- (f.cluster.prototype.pendingTasks = d({
- params: { local: { type: 'boolean' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_cluster/pending_tasks' }
- })),
- (f.cluster.prototype.putSettings = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_cluster/settings' },
- needBody: !0,
- method: 'PUT'
- })),
- (f.cluster.prototype.remoteInfo = d({ url: { fmt: '/_remote/info' } })),
- (f.cluster.prototype.reroute = d({
- params: {
- dryRun: { type: 'boolean', name: 'dry_run' },
- explain: { type: 'boolean' },
- retryFailed: { type: 'boolean', name: 'retry_failed' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'master_node',
- 'version'
- ]
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_cluster/reroute' },
- method: 'POST'
- })),
- (f.cluster.prototype.state = d({
- params: {
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- waitForMetadataVersion: { type: 'number', name: 'wait_for_metadata_version' },
- waitForTimeout: { type: 'time', name: 'wait_for_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- {
- fmt: '/_cluster/state/<%=metric%>/<%=index%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'routing_nodes',
- 'master_node',
- 'version'
- ]
- },
- index: { type: 'list' }
- }
- },
- {
- fmt: '/_cluster/state/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'routing_nodes',
- 'master_node',
- 'version'
- ]
- }
- }
- },
- { fmt: '/_cluster/state' }
- ]
- })),
- (f.cluster.prototype.stats = d({
- params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
- urls: [
- { fmt: '/_cluster/stats/nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- { fmt: '/_cluster/stats' }
- ]
- })),
- (f.count = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- minScore: { type: 'number', name: 'min_score' },
- preference: { type: 'string' },
- routing: { type: 'list' },
- q: { type: 'string' },
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- lenient: { type: 'boolean' },
- terminateAfter: { type: 'number', name: 'terminate_after' }
- },
- urls: [{ fmt: '/<%=index%>/_count', req: { index: { type: 'list' } } }, { fmt: '/_count' }],
- method: 'POST'
- })),
- (f.create = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- },
- pipeline: { type: 'string' }
- },
- url: {
- fmt: '/<%=index%>/_create/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- needBody: !0,
- method: 'POST'
- })),
- (f.delete = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'DELETE'
- })),
- (f.deleteByQuery = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- searchTimeout: { type: 'time', name: 'search_timeout' },
- size: { type: 'number' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- version: { type: 'boolean' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- scrollSize: { type: 'number', name: 'scroll_size' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- slices: { type: 'number', default: 1 }
- },
- url: { fmt: '/<%=index%>/_delete_by_query', req: { index: { type: 'list' } } },
- needBody: !0,
- method: 'POST'
- })),
- (f.deleteByQueryRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_delete_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- })),
- (f.deleteScript = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.exists = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'HEAD'
- })),
- (f.existsSource = d({
- params: {
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_source/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'HEAD'
- })),
- (f.explain = d({
- params: {
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- analyzer: { type: 'string' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- storedFields: { type: 'list', name: 'stored_fields' },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' }
- },
- url: {
- fmt: '/<%=index%>/_explain/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.fieldCaps = d({
- params: {
- fields: { type: 'list' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- includeUnmapped: { type: 'boolean', default: !1, name: 'include_unmapped' }
- },
- urls: [
- { fmt: '/<%=index%>/_field_caps', req: { index: { type: 'list' } } },
- { fmt: '/_field_caps' }
- ],
- method: 'POST'
- })),
- (f.get = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- }
- })),
- (f.getScript = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
- })),
- (f.getSource = d({
- params: {
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_source/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- }
- })),
- (f.index = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- opType: { type: 'enum', default: 'index', options: ['index', 'create'], name: 'op_type' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
- pipeline: { type: 'string' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_doc', req: { index: { type: 'string' } } }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.indices = e()),
- (f.indices.prototype.analyze = d({
- params: { index: { type: 'string' } },
- urls: [
- { fmt: '/<%=index%>/_analyze', req: { index: { type: 'string' } } },
- { fmt: '/_analyze' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.clearCache = d({
- params: {
- fielddata: { type: 'boolean' },
- fields: { type: 'list' },
- query: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- index: { type: 'list' },
- request: { type: 'boolean' }
- },
- urls: [
- { fmt: '/<%=index%>/_cache/clear', req: { index: { type: 'list' } } },
- { fmt: '/_cache/clear' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.close = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: { fmt: '/<%=index%>/_close', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.indices.prototype.create = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'string' } } },
- method: 'PUT'
- })),
- (f.indices.prototype.delete = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
- method: 'DELETE'
- })),
- (f.indices.prototype.deleteAlias = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- method: 'DELETE'
- })),
- (f.indices.prototype.deleteTemplate = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.indices.prototype.exists = d({
- params: {
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
- method: 'HEAD'
- })),
- (f.indices.prototype.existsAlias = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } }
- ],
- method: 'HEAD'
- })),
- (f.indices.prototype.existsTemplate = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } },
- method: 'HEAD'
- })),
- (f.indices.prototype.existsType = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- url: {
- fmt: '/<%=index%>/_mapping/<%=type%>',
- req: { index: { type: 'list' }, type: { type: 'list' } }
- },
- method: 'HEAD'
- })),
- (f.indices.prototype.flush = d({
- params: {
- force: { type: 'boolean' },
- waitIfOngoing: { type: 'boolean', name: 'wait_if_ongoing' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_flush', req: { index: { type: 'list' } } }, { fmt: '/_flush' }],
- method: 'POST'
- })),
- (f.indices.prototype.flushSynced = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_flush/synced', req: { index: { type: 'list' } } },
- { fmt: '/_flush/synced' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.forcemerge = d({
- params: {
- flush: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- maxNumSegments: { type: 'number', name: 'max_num_segments' },
- onlyExpungeDeletes: { type: 'boolean', name: 'only_expunge_deletes' }
- },
- urls: [
- { fmt: '/<%=index%>/_forcemerge', req: { index: { type: 'list' } } },
- { fmt: '/_forcemerge' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.get = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' },
- masterTimeout: { type: 'time', name: 'master_timeout' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } }
- })),
- (f.indices.prototype.getAlias = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/<%=index%>/_alias', req: { index: { type: 'list' } } },
- { fmt: '/_alias' }
- ]
- })),
- (f.indices.prototype.getFieldMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- includeDefaults: { type: 'boolean', name: 'include_defaults' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_mapping/field/<%=fields%>',
- req: { index: { type: 'list' }, fields: { type: 'list' } }
- },
- { fmt: '/_mapping/field/<%=fields%>', req: { fields: { type: 'list' } } }
- ]
- })),
- (f.indices.prototype.getMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- urls: [{ fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } }, { fmt: '/_mapping' }]
- })),
- (f.indices.prototype.getSettings = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: ['open', 'closed'],
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- local: { type: 'boolean' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_settings/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
- { fmt: '/_settings/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/_settings' }
- ]
- })),
- (f.indices.prototype.getTemplate = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- urls: [{ fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } }, { fmt: '/_template' }]
- })),
- (f.indices.prototype.getUpgrade = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }]
- })),
- (f.indices.prototype.open = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'closed',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: { fmt: '/<%=index%>/_open', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.indices.prototype.putAlias = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'string' } }
- },
- method: 'PUT'
- })),
- (f.indices.prototype.putMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- url: { fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.putSettings = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- preserveExisting: { type: 'boolean', name: 'preserve_existing' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' }
- },
- urls: [
- { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
- { fmt: '/_settings' }
- ],
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.putTemplate = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- order: { type: 'number' },
- create: { type: 'boolean', default: !1 },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- flatSettings: { type: 'boolean', name: 'flat_settings' }
- },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.recovery = d({
- params: {
- detailed: { type: 'boolean', default: !1 },
- activeOnly: { type: 'boolean', default: !1, name: 'active_only' }
- },
- urls: [
- { fmt: '/<%=index%>/_recovery', req: { index: { type: 'list' } } },
- { fmt: '/_recovery' }
- ]
- })),
- (f.indices.prototype.refresh = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_refresh', req: { index: { type: 'list' } } }, { fmt: '/_refresh' }],
- method: 'POST'
- })),
- (f.indices.prototype.rollover = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- timeout: { type: 'time' },
- dryRun: { type: 'boolean', name: 'dry_run' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- urls: [
- {
- fmt: '/<%=alias%>/_rollover/<%=newIndex%>',
- req: { alias: { type: 'string' }, newIndex: { type: 'string' } }
- },
- { fmt: '/<%=alias%>/_rollover', req: { alias: { type: 'string' } } }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.segments = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- verbose: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/<%=index%>/_segments', req: { index: { type: 'list' } } },
- { fmt: '/_segments' }
- ]
- })),
- (f.indices.prototype.shardStores = d({
- params: {
- status: { type: 'list', options: ['green', 'yellow', 'red', 'all'] },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_shard_stores', req: { index: { type: 'list' } } },
- { fmt: '/_shard_stores' }
- ]
- })),
- (f.indices.prototype.shrink = d({
- params: {
- copySettings: { type: 'boolean', name: 'copy_settings' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_shrink/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.split = d({
- params: {
- copySettings: { type: 'boolean', name: 'copy_settings' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_split/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.stats = d({
- params: {
- completionFields: { type: 'list', name: 'completion_fields' },
- fielddataFields: { type: 'list', name: 'fielddata_fields' },
- fields: { type: 'list' },
- groups: { type: 'list' },
- level: { type: 'enum', default: 'indices', options: ['cluster', 'indices', 'shards'] },
- types: { type: 'list' },
- includeSegmentFileSizes: {
- type: 'boolean',
- default: !1,
- name: 'include_segment_file_sizes'
- },
- includeUnloadedSegments: {
- type: 'boolean',
- default: !1,
- name: 'include_unloaded_segments'
- },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- forbidClosedIndices: { type: 'boolean', default: !0, name: 'forbid_closed_indices' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_stats/<%=metric%>',
- req: {
- index: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- {
- fmt: '/_stats/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- { fmt: '/<%=index%>/_stats', req: { index: { type: 'list' } } },
- { fmt: '/_stats' }
- ]
- })),
- (f.indices.prototype.updateAliases = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_aliases' },
- needBody: !0,
- method: 'POST'
- })),
- (f.indices.prototype.upgrade = d({
- params: {
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- onlyAncientSegments: { type: 'boolean', name: 'only_ancient_segments' }
- },
- urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }],
- method: 'POST'
- })),
- (f.indices.prototype.validateQuery = d({
- params: {
- explain: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- q: { type: 'string' },
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- lenient: { type: 'boolean' },
- rewrite: { type: 'boolean' },
- allShards: { type: 'boolean', name: 'all_shards' }
- },
- urls: [
- { fmt: '/<%=index%>/_validate/query', req: { index: { type: 'list' } } },
- { fmt: '/_validate/query' }
- ],
- method: 'POST'
- })),
- (f.info = d({ url: { fmt: '/' } })),
- (f.ingest = e()),
- (f.ingest.prototype.deletePipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.ingest.prototype.getPipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- urls: [
- { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- { fmt: '/_ingest/pipeline' }
- ]
- })),
- (f.ingest.prototype.processorGrok = d({ url: { fmt: '/_ingest/processor/grok' } })),
- (f.ingest.prototype.putPipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.ingest.prototype.simulate = d({
- params: { verbose: { type: 'boolean', default: !1 } },
- urls: [
- { fmt: '/_ingest/pipeline/<%=id%>/_simulate', req: { id: { type: 'string' } } },
- { fmt: '/_ingest/pipeline/_simulate' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.mget = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' }
- },
- urls: [{ fmt: '/<%=index%>/_mget', req: { index: { type: 'string' } } }, { fmt: '/_mget' }],
- needBody: !0,
- method: 'POST'
- })),
- (f.msearch = d({
- params: {
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
- maxConcurrentShardRequests: {
- type: 'number',
- default: 5,
- name: 'max_concurrent_shard_requests'
- },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [{ fmt: '/<%=index%>/_msearch', req: { index: { type: 'list' } } }, { fmt: '/_msearch' }],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.msearchTemplate = d({
- params: {
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [
- { fmt: '/<%=index%>/_msearch/template', req: { index: { type: 'list' } } },
- { fmt: '/_msearch/template' }
- ],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.mtermvectors = d({
- params: {
- ids: { type: 'list', required: !1 },
- termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
- fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
- fields: { type: 'list', required: !1 },
- offsets: { type: 'boolean', default: !0, required: !1 },
- positions: { type: 'boolean', default: !0, required: !1 },
- payloads: { type: 'boolean', default: !0, required: !1 },
- preference: { type: 'string', required: !1 },
- routing: { type: 'string', required: !1 },
- realtime: { type: 'boolean', required: !1 },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_mtermvectors', req: { index: { type: 'string' } } },
- { fmt: '/_mtermvectors' }
- ],
- method: 'POST'
- })),
- (f.nodes = e()),
- (f.nodes.prototype.hotThreads = d({
- params: {
- interval: { type: 'time' },
- snapshots: { type: 'number' },
- threads: { type: 'number' },
- ignoreIdleThreads: { type: 'boolean', name: 'ignore_idle_threads' },
- type: { type: 'enum', options: ['cpu', 'wait', 'block'] },
- timeout: { type: 'time' }
- },
- url: {}
- })),
- (f.nodes.prototype.info = d({
- params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- 'settings',
- 'os',
- 'process',
- 'jvm',
- 'thread_pool',
- 'transport',
- 'http',
- 'plugins',
- 'ingest'
- ]
- }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- 'settings',
- 'os',
- 'process',
- 'jvm',
- 'thread_pool',
- 'transport',
- 'http',
- 'plugins',
- 'ingest'
- ]
- }
- }
- },
- { fmt: '/_nodes' }
- ]
- })),
- (f.nodes.prototype.reloadSecureSettings = d({
- params: { timeout: { type: 'time' } },
- urls: [
- { fmt: '/_nodes/<%=nodeId%>/reload_secure_settings', req: { nodeId: { type: 'list' } } },
- { fmt: '/_nodes/reload_secure_settings' }
- ],
- method: 'POST'
- })),
- (f.nodes.prototype.stats = d({
- params: {
- completionFields: { type: 'list', name: 'completion_fields' },
- fielddataFields: { type: 'list', name: 'fielddata_fields' },
- fields: { type: 'list' },
- groups: { type: 'boolean' },
- level: { type: 'enum', default: 'node', options: ['indices', 'node', 'shards'] },
- types: { type: 'list' },
- timeout: { type: 'time' },
- includeSegmentFileSizes: {
- type: 'boolean',
- default: !1,
- name: 'include_segment_file_sizes'
- }
- },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- },
- indexMetric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- {
- fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- }
- }
- },
- {
- fmt: '/_nodes/stats/<%=metric%>/<%=indexMetric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- },
- indexMetric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>/stats', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/stats/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- }
- }
- },
- { fmt: '/_nodes/stats' }
- ]
- })),
- (f.nodes.prototype.usage = d({
- params: { timeout: { type: 'time' } },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/usage/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: { type: 'list', options: ['_all', 'rest_actions'] }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>/usage', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/usage/<%=metric%>',
- req: { metric: { type: 'list', options: ['_all', 'rest_actions'] } }
- },
- { fmt: '/_nodes/usage' }
- ]
- })),
- (f.ping = d({ url: { fmt: '/' }, method: 'HEAD' })),
- (f.putScript = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- context: { type: 'string' }
- },
- urls: [
- {
- fmt: '/_scripts/<%=id%>/<%=context%>',
- req: { id: { type: 'string' }, context: { type: 'string' } }
- },
- { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
- ],
- needBody: !0,
- method: 'PUT'
- })),
- (f.rankEval = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_rank_eval', req: { index: { type: 'list' } } },
- { fmt: '/_rank_eval' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.reindex = d({
- params: {
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- scroll: { type: 'time', default: '5m' },
- slices: { type: 'number', default: 1 }
- },
- url: { fmt: '/_reindex' },
- needBody: !0,
- method: 'POST'
- })),
- (f.reindexRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_reindex/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- })),
- (f.renderSearchTemplate = d({
- urls: [
- { fmt: '/_render/template/<%=id%>', req: { id: { type: 'string' } } },
- { fmt: '/_render/template' }
- ],
- method: 'POST'
- })),
- (f.scriptsPainlessContext = d({
- params: { context: { type: 'string' } },
- url: { fmt: '/_scripts/painless/_context' }
- })),
- (f.scriptsPainlessExecute = d({ url: { fmt: '/_scripts/painless/_execute' }, method: 'POST' })),
- (f.scroll = d({
- params: {
- scroll: { type: 'time' },
- scrollId: { type: 'string', name: 'scroll_id' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
- },
- url: { fmt: '/_search/scroll' },
- paramAsBody: { param: 'scrollId', body: 'scroll_id' },
- method: 'POST'
- })),
- (f.search = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- ccsMinimizeRoundtrips: {
- type: 'boolean',
- default: 'true',
- name: 'ccs_minimize_roundtrips'
- },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- explain: { type: 'boolean' },
- storedFields: { type: 'list', name: 'stored_fields' },
- docvalueFields: { type: 'list', name: 'docvalue_fields' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- size: { type: 'number' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- suggestField: { type: 'string', name: 'suggest_field' },
- suggestMode: {
- type: 'enum',
- default: 'missing',
- options: ['missing', 'popular', 'always'],
- name: 'suggest_mode'
- },
- suggestSize: { type: 'number', name: 'suggest_size' },
- suggestText: { type: 'string', name: 'suggest_text' },
- timeout: { type: 'time' },
- trackScores: { type: 'boolean', name: 'track_scores' },
- trackTotalHits: { type: 'boolean', name: 'track_total_hits' },
- allowPartialSearchResults: {
- type: 'boolean',
- default: !0,
- name: 'allow_partial_search_results'
- },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- version: { type: 'boolean' },
- seqNoPrimaryTerm: { type: 'boolean', name: 'seq_no_primary_term' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- batchedReduceSize: { type: 'number', default: 512, name: 'batched_reduce_size' },
- maxConcurrentShardRequests: {
- type: 'number',
- default: 5,
- name: 'max_concurrent_shard_requests'
- },
- preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
- },
- urls: [{ fmt: '/<%=index%>/_search', req: { index: { type: 'list' } } }, { fmt: '/_search' }],
- method: 'POST'
- })),
- (f.searchShards = d({
- params: {
- preference: { type: 'string' },
- routing: { type: 'string' },
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_search_shards', req: { index: { type: 'list' } } },
- { fmt: '/_search_shards' }
- ],
- method: 'POST'
- })),
- (f.searchTemplate = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- preference: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- explain: { type: 'boolean' },
- profile: { type: 'boolean' },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [
- { fmt: '/<%=index%>/_search/template', req: { index: { type: 'list' } } },
- { fmt: '/_search/template' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.snapshot = e()),
- (f.snapshot.prototype.create = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.snapshot.prototype.createRepository = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- verify: { type: 'boolean' }
- },
- url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'string' } } },
- needBody: !0,
- method: 'POST'
- })),
- (f.snapshot.prototype.delete = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'DELETE'
- })),
- (f.snapshot.prototype.deleteRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
- method: 'DELETE'
- })),
- (f.snapshot.prototype.get = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- verbose: { type: 'boolean' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
- }
- })),
- (f.snapshot.prototype.getRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, local: { type: 'boolean' } },
- urls: [
- { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
- { fmt: '/_snapshot' }
- ]
- })),
- (f.snapshot.prototype.restore = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_restore',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.snapshot.prototype.status = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' }
- },
- urls: [
- {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_status',
- req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
- },
- { fmt: '/_snapshot/<%=repository%>/_status', req: { repository: { type: 'string' } } },
- { fmt: '/_snapshot/_status' }
- ]
- })),
- (f.snapshot.prototype.verifyRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_snapshot/<%=repository%>/_verify', req: { repository: { type: 'string' } } },
- method: 'POST'
- })),
- (f.tasks = e()),
- (f.tasks.prototype.cancel = d({
- params: {
- nodes: { type: 'list' },
- actions: { type: 'list' },
- parentTaskId: { type: 'string', name: 'parent_task_id' }
- },
- urls: [
- { fmt: '/_tasks/<%=taskId%>/_cancel', req: { taskId: { type: 'string' } } },
- { fmt: '/_tasks/_cancel' }
- ],
- method: 'POST'
- })),
- (f.tasks.prototype.get = d({
- params: {
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_tasks/<%=taskId%>', req: { taskId: { type: 'string' } } }
- })),
- (f.tasks.prototype.list = d({
- params: {
- nodes: { type: 'list' },
- actions: { type: 'list' },
- detailed: { type: 'boolean' },
- parentTaskId: { type: 'string', name: 'parent_task_id' },
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- groupBy: {
- type: 'enum',
- default: 'nodes',
- options: ['nodes', 'parents', 'none'],
- name: 'group_by'
- },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_tasks' }
- })),
- (f.termvectors = d({
- params: {
- termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
- fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
- fields: { type: 'list', required: !1 },
- offsets: { type: 'boolean', default: !0, required: !1 },
- positions: { type: 'boolean', default: !0, required: !1 },
- payloads: { type: 'boolean', default: !0, required: !1 },
- preference: { type: 'string', required: !1 },
- routing: { type: 'string', required: !1 },
- realtime: { type: 'boolean', required: !1 },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- urls: [
- {
- fmt: '/<%=index%>/_termvectors/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_termvectors', req: { index: { type: 'string' } } }
- ],
- method: 'POST'
- })),
- (f.update = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- lang: { type: 'string' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- retryOnConflict: { type: 'number', name: 'retry_on_conflict' },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' }
- },
- url: {
- fmt: '/<%=index%>/_update/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- needBody: !0,
- method: 'POST'
- })),
- (f.updateByQuery = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- pipeline: { type: 'string' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- searchTimeout: { type: 'time', name: 'search_timeout' },
- size: { type: 'number' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- version: { type: 'boolean' },
- versionType: { type: 'boolean', name: 'version_type' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- scrollSize: { type: 'number', name: 'scroll_size' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- slices: { type: 'number', default: 1 }
- },
- url: { fmt: '/<%=index%>/_update_by_query', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.updateByQueryRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_update_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- }));
- },
- function(a, b, c) {
- var d = c(1).makeFactoryWithModifier(function(a) {
- return c(0).merge(a, { params: { filterPath: { type: 'list', name: 'filter_path' } } });
- }),
- e = c(1).namespaceFactory,
- f = (a.exports = {});
- (f._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'nodes', 'snapshot', 'tasks']),
- (f.bulk = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- type: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- pipeline: { type: 'string' }
- },
- urls: [
- {
- fmt: '/<%=index%>/<%=type%>/_bulk',
- req: { index: { type: 'string' }, type: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_bulk', req: { index: { type: 'string' } } },
- { fmt: '/_bulk' }
- ],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.cat = e()),
- (f.cat.prototype.aliases = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/aliases/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/_cat/aliases' }
- ]
- })),
- (f.cat.prototype.allocation = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/allocation/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- { fmt: '/_cat/allocation' }
- ]
- })),
- (f.cat.prototype.count = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/count/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/count' }
- ]
- })),
- (f.cat.prototype.fielddata = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 },
- fields: { type: 'list' }
- },
- urls: [
- { fmt: '/_cat/fielddata/<%=fields%>', req: { fields: { type: 'list' } } },
- { fmt: '/_cat/fielddata' }
- ]
- })),
- (f.cat.prototype.health = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- ts: { type: 'boolean', default: !0 },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/health' }
- })),
- (f.cat.prototype.help = d({
- params: { help: { type: 'boolean', default: !1 }, s: { type: 'list' } },
- url: { fmt: '/_cat' }
- })),
- (f.cat.prototype.indices = d({
- params: {
- format: { type: 'string' },
- bytes: { type: 'enum', options: ['b', 'k', 'm', 'g'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- health: { type: 'enum', default: null, options: ['green', 'yellow', 'red'] },
- help: { type: 'boolean', default: !1 },
- pri: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 },
- includeUnloadedSegments: { type: 'boolean', default: !1, name: 'include_unloaded_segments' }
- },
- urls: [
- { fmt: '/_cat/indices/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/indices' }
- ]
- })),
- (f.cat.prototype.master = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/master' }
- })),
- (f.cat.prototype.nodeattrs = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/nodeattrs' }
- })),
- (f.cat.prototype.nodes = d({
- params: {
- format: { type: 'string' },
- fullId: { type: 'boolean', name: 'full_id' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/nodes' }
- })),
- (f.cat.prototype.pendingTasks = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/pending_tasks' }
- })),
- (f.cat.prototype.plugins = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/plugins' }
- })),
- (f.cat.prototype.recovery = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/recovery/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/recovery' }
- ]
- })),
- (f.cat.prototype.repositories = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean', default: !1 },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/repositories' }
- })),
- (f.cat.prototype.segments = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/segments/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/segments' }
- ]
- })),
- (f.cat.prototype.shards = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/shards/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/shards' }
- ]
- })),
- (f.cat.prototype.snapshots = d({
- params: {
- format: { type: 'string' },
- ignoreUnavailable: { type: 'boolean', default: !1, name: 'ignore_unavailable' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/snapshots/<%=repository%>', req: { repository: { type: 'list' } } },
- { fmt: '/_cat/snapshots' }
- ]
- })),
- (f.cat.prototype.tasks = d({
- params: {
- format: { type: 'string' },
- nodeId: { type: 'list', name: 'node_id' },
- actions: { type: 'list' },
- detailed: { type: 'boolean' },
- parentTask: { type: 'number', name: 'parent_task' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/tasks' }
- })),
- (f.cat.prototype.templates = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/templates/<%=name%>', req: { name: { type: 'string' } } },
- { fmt: '/_cat/templates' }
- ]
- })),
- (f.cat.prototype.threadPool = d({
- params: {
- format: { type: 'string' },
- size: { type: 'enum', options: ['', 'k', 'm', 'g', 't', 'p'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- {
- fmt: '/_cat/thread_pool/<%=threadPoolPatterns%>',
- req: { threadPoolPatterns: { type: 'list' } }
- },
- { fmt: '/_cat/thread_pool' }
- ]
- })),
- (f.clearScroll = d({
- url: { fmt: '/_search/scroll' },
- paramAsBody: { param: 'scrollId', body: 'scroll_id' },
- method: 'DELETE'
- })),
- (f.cluster = e()),
- (f.cluster.prototype.allocationExplain = d({
- params: {
- includeYesDecisions: { type: 'boolean', name: 'include_yes_decisions' },
- includeDiskInfo: { type: 'boolean', name: 'include_disk_info' }
- },
- url: { fmt: '/_cluster/allocation/explain' },
- method: 'POST'
- })),
- (f.cluster.prototype.getSettings = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- url: { fmt: '/_cluster/settings' }
- })),
- (f.cluster.prototype.health = d({
- params: {
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- level: { type: 'enum', default: 'cluster', options: ['cluster', 'indices', 'shards'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- waitForNodes: { type: 'string', name: 'wait_for_nodes' },
- waitForEvents: {
- type: 'enum',
- options: ['immediate', 'urgent', 'high', 'normal', 'low', 'languid'],
- name: 'wait_for_events'
- },
- waitForNoRelocatingShards: { type: 'boolean', name: 'wait_for_no_relocating_shards' },
- waitForNoInitializingShards: { type: 'boolean', name: 'wait_for_no_initializing_shards' },
- waitForStatus: {
- type: 'enum',
- default: null,
- options: ['green', 'yellow', 'red'],
- name: 'wait_for_status'
- }
- },
- urls: [
- { fmt: '/_cluster/health/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cluster/health' }
- ]
- })),
- (f.cluster.prototype.pendingTasks = d({
- params: { local: { type: 'boolean' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_cluster/pending_tasks' }
- })),
- (f.cluster.prototype.putSettings = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_cluster/settings' },
- needBody: !0,
- method: 'PUT'
- })),
- (f.cluster.prototype.remoteInfo = d({ url: { fmt: '/_remote/info' } })),
- (f.cluster.prototype.reroute = d({
- params: {
- dryRun: { type: 'boolean', name: 'dry_run' },
- explain: { type: 'boolean' },
- retryFailed: { type: 'boolean', name: 'retry_failed' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'master_node',
- 'version'
- ]
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_cluster/reroute' },
- method: 'POST'
- })),
- (f.cluster.prototype.state = d({
- params: {
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- waitForMetadataVersion: { type: 'number', name: 'wait_for_metadata_version' },
- waitForTimeout: { type: 'time', name: 'wait_for_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- {
- fmt: '/_cluster/state/<%=metric%>/<%=index%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'routing_nodes',
- 'master_node',
- 'version'
- ]
- },
- index: { type: 'list' }
- }
- },
- {
- fmt: '/_cluster/state/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'routing_nodes',
- 'master_node',
- 'version'
- ]
- }
- }
- },
- { fmt: '/_cluster/state' }
- ]
- })),
- (f.cluster.prototype.stats = d({
- params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
- urls: [
- { fmt: '/_cluster/stats/nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- { fmt: '/_cluster/stats' }
- ]
- })),
- (f.count = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- minScore: { type: 'number', name: 'min_score' },
- preference: { type: 'string' },
- routing: { type: 'list' },
- q: { type: 'string' },
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- lenient: { type: 'boolean' },
- terminateAfter: { type: 'number', name: 'terminate_after' }
- },
- urls: [{ fmt: '/<%=index%>/_count', req: { index: { type: 'list' } } }, { fmt: '/_count' }],
- method: 'POST'
- })),
- (f.create = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- },
- pipeline: { type: 'string' }
- },
- url: {
- fmt: '/<%=index%>/_create/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- needBody: !0,
- method: 'POST'
- })),
- (f.delete = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'DELETE'
- })),
- (f.deleteByQuery = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- searchTimeout: { type: 'time', name: 'search_timeout' },
- size: { type: 'number' },
- maxDocs: { type: 'number', name: 'max_docs' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- version: { type: 'boolean' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- scrollSize: { type: 'number', name: 'scroll_size' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- slices: { type: 'number', default: 1 }
- },
- url: { fmt: '/<%=index%>/_delete_by_query', req: { index: { type: 'list' } } },
- needBody: !0,
- method: 'POST'
- })),
- (f.deleteByQueryRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_delete_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- })),
- (f.deleteScript = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.exists = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'HEAD'
- })),
- (f.existsSource = d({
- params: {
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_source/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'HEAD'
- })),
- (f.explain = d({
- params: {
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- analyzer: { type: 'string' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- storedFields: { type: 'list', name: 'stored_fields' },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' }
- },
- url: {
- fmt: '/<%=index%>/_explain/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.fieldCaps = d({
- params: {
- fields: { type: 'list' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- includeUnmapped: { type: 'boolean', default: !1, name: 'include_unmapped' }
- },
- urls: [
- { fmt: '/<%=index%>/_field_caps', req: { index: { type: 'list' } } },
- { fmt: '/_field_caps' }
- ],
- method: 'POST'
- })),
- (f.get = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- }
- })),
- (f.getScript = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
- })),
- (f.getSource = d({
- params: {
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_source/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- }
- })),
- (f.index = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- opType: { type: 'enum', default: 'index', options: ['index', 'create'], name: 'op_type' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
- pipeline: { type: 'string' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_doc', req: { index: { type: 'string' } } }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.indices = e()),
- (f.indices.prototype.analyze = d({
- params: { index: { type: 'string' } },
- urls: [
- { fmt: '/<%=index%>/_analyze', req: { index: { type: 'string' } } },
- { fmt: '/_analyze' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.clearCache = d({
- params: {
- fielddata: { type: 'boolean' },
- fields: { type: 'list' },
- query: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- index: { type: 'list' },
- request: { type: 'boolean' }
- },
- urls: [
- { fmt: '/<%=index%>/_cache/clear', req: { index: { type: 'list' } } },
- { fmt: '/_cache/clear' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.clone = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_clone/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.close = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: { fmt: '/<%=index%>/_close', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.indices.prototype.create = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'string' } } },
- method: 'PUT'
- })),
- (f.indices.prototype.delete = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
- method: 'DELETE'
- })),
- (f.indices.prototype.deleteAlias = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- method: 'DELETE'
- })),
- (f.indices.prototype.deleteTemplate = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.indices.prototype.exists = d({
- params: {
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
- method: 'HEAD'
- })),
- (f.indices.prototype.existsAlias = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } }
- ],
- method: 'HEAD'
- })),
- (f.indices.prototype.existsTemplate = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } },
- method: 'HEAD'
- })),
- (f.indices.prototype.existsType = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- url: {
- fmt: '/<%=index%>/_mapping/<%=type%>',
- req: { index: { type: 'list' }, type: { type: 'list' } }
- },
- method: 'HEAD'
- })),
- (f.indices.prototype.flush = d({
- params: {
- force: { type: 'boolean' },
- waitIfOngoing: { type: 'boolean', name: 'wait_if_ongoing' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_flush', req: { index: { type: 'list' } } }, { fmt: '/_flush' }],
- method: 'POST'
- })),
- (f.indices.prototype.flushSynced = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_flush/synced', req: { index: { type: 'list' } } },
- { fmt: '/_flush/synced' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.forcemerge = d({
- params: {
- flush: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- maxNumSegments: { type: 'number', name: 'max_num_segments' },
- onlyExpungeDeletes: { type: 'boolean', name: 'only_expunge_deletes' }
- },
- urls: [
- { fmt: '/<%=index%>/_forcemerge', req: { index: { type: 'list' } } },
- { fmt: '/_forcemerge' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.get = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' },
- masterTimeout: { type: 'time', name: 'master_timeout' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } }
- })),
- (f.indices.prototype.getAlias = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/<%=index%>/_alias', req: { index: { type: 'list' } } },
- { fmt: '/_alias' }
- ]
- })),
- (f.indices.prototype.getFieldMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- includeDefaults: { type: 'boolean', name: 'include_defaults' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_mapping/field/<%=fields%>',
- req: { index: { type: 'list' }, fields: { type: 'list' } }
- },
- { fmt: '/_mapping/field/<%=fields%>', req: { fields: { type: 'list' } } }
- ]
- })),
- (f.indices.prototype.getMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- urls: [{ fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } }, { fmt: '/_mapping' }]
- })),
- (f.indices.prototype.getSettings = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: ['open', 'closed'],
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- local: { type: 'boolean' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_settings/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
- { fmt: '/_settings/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/_settings' }
- ]
- })),
- (f.indices.prototype.getTemplate = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- urls: [{ fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } }, { fmt: '/_template' }]
- })),
- (f.indices.prototype.getUpgrade = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }]
- })),
- (f.indices.prototype.open = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'closed',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: { fmt: '/<%=index%>/_open', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.indices.prototype.putAlias = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'string' } }
- },
- method: 'PUT'
- })),
- (f.indices.prototype.putMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- url: { fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.putSettings = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- preserveExisting: { type: 'boolean', name: 'preserve_existing' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' }
- },
- urls: [
- { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
- { fmt: '/_settings' }
- ],
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.putTemplate = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- order: { type: 'number' },
- create: { type: 'boolean', default: !1 },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- flatSettings: { type: 'boolean', name: 'flat_settings' }
- },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.recovery = d({
- params: {
- detailed: { type: 'boolean', default: !1 },
- activeOnly: { type: 'boolean', default: !1, name: 'active_only' }
- },
- urls: [
- { fmt: '/<%=index%>/_recovery', req: { index: { type: 'list' } } },
- { fmt: '/_recovery' }
- ]
- })),
- (f.indices.prototype.refresh = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_refresh', req: { index: { type: 'list' } } }, { fmt: '/_refresh' }],
- method: 'POST'
- })),
- (f.indices.prototype.rollover = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- timeout: { type: 'time' },
- dryRun: { type: 'boolean', name: 'dry_run' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- urls: [
- {
- fmt: '/<%=alias%>/_rollover/<%=newIndex%>',
- req: { alias: { type: 'string' }, newIndex: { type: 'string' } }
- },
- { fmt: '/<%=alias%>/_rollover', req: { alias: { type: 'string' } } }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.segments = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- verbose: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/<%=index%>/_segments', req: { index: { type: 'list' } } },
- { fmt: '/_segments' }
- ]
- })),
- (f.indices.prototype.shardStores = d({
- params: {
- status: { type: 'list', options: ['green', 'yellow', 'red', 'all'] },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_shard_stores', req: { index: { type: 'list' } } },
- { fmt: '/_shard_stores' }
- ]
- })),
- (f.indices.prototype.shrink = d({
- params: {
- copySettings: { type: 'boolean', name: 'copy_settings' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_shrink/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.split = d({
- params: {
- copySettings: { type: 'boolean', name: 'copy_settings' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_split/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.stats = d({
- params: {
- completionFields: { type: 'list', name: 'completion_fields' },
- fielddataFields: { type: 'list', name: 'fielddata_fields' },
- fields: { type: 'list' },
- groups: { type: 'list' },
- level: { type: 'enum', default: 'indices', options: ['cluster', 'indices', 'shards'] },
- types: { type: 'list' },
- includeSegmentFileSizes: {
- type: 'boolean',
- default: !1,
- name: 'include_segment_file_sizes'
- },
- includeUnloadedSegments: {
- type: 'boolean',
- default: !1,
- name: 'include_unloaded_segments'
- },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- forbidClosedIndices: { type: 'boolean', default: !0, name: 'forbid_closed_indices' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_stats/<%=metric%>',
- req: {
- index: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- {
- fmt: '/_stats/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- { fmt: '/<%=index%>/_stats', req: { index: { type: 'list' } } },
- { fmt: '/_stats' }
- ]
- })),
- (f.indices.prototype.updateAliases = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_aliases' },
- needBody: !0,
- method: 'POST'
- })),
- (f.indices.prototype.upgrade = d({
- params: {
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- onlyAncientSegments: { type: 'boolean', name: 'only_ancient_segments' }
- },
- urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }],
- method: 'POST'
- })),
- (f.indices.prototype.validateQuery = d({
- params: {
- explain: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- q: { type: 'string' },
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- lenient: { type: 'boolean' },
- rewrite: { type: 'boolean' },
- allShards: { type: 'boolean', name: 'all_shards' }
- },
- urls: [
- { fmt: '/<%=index%>/_validate/query', req: { index: { type: 'list' } } },
- { fmt: '/_validate/query' }
- ],
- method: 'POST'
- })),
- (f.info = d({ url: { fmt: '/' } })),
- (f.ingest = e()),
- (f.ingest.prototype.deletePipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.ingest.prototype.getPipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- urls: [
- { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- { fmt: '/_ingest/pipeline' }
- ]
- })),
- (f.ingest.prototype.processorGrok = d({ url: { fmt: '/_ingest/processor/grok' } })),
- (f.ingest.prototype.putPipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.ingest.prototype.simulate = d({
- params: { verbose: { type: 'boolean', default: !1 } },
- urls: [
- { fmt: '/_ingest/pipeline/<%=id%>/_simulate', req: { id: { type: 'string' } } },
- { fmt: '/_ingest/pipeline/_simulate' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.mget = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' }
- },
- urls: [{ fmt: '/<%=index%>/_mget', req: { index: { type: 'string' } } }, { fmt: '/_mget' }],
- needBody: !0,
- method: 'POST'
- })),
- (f.msearch = d({
- params: {
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
- maxConcurrentShardRequests: {
- type: 'number',
- default: 5,
- name: 'max_concurrent_shard_requests'
- },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [{ fmt: '/<%=index%>/_msearch', req: { index: { type: 'list' } } }, { fmt: '/_msearch' }],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.msearchTemplate = d({
- params: {
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [
- { fmt: '/<%=index%>/_msearch/template', req: { index: { type: 'list' } } },
- { fmt: '/_msearch/template' }
- ],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.mtermvectors = d({
- params: {
- ids: { type: 'list', required: !1 },
- termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
- fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
- fields: { type: 'list', required: !1 },
- offsets: { type: 'boolean', default: !0, required: !1 },
- positions: { type: 'boolean', default: !0, required: !1 },
- payloads: { type: 'boolean', default: !0, required: !1 },
- preference: { type: 'string', required: !1 },
- routing: { type: 'string', required: !1 },
- realtime: { type: 'boolean', required: !1 },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_mtermvectors', req: { index: { type: 'string' } } },
- { fmt: '/_mtermvectors' }
- ],
- method: 'POST'
- })),
- (f.nodes = e()),
- (f.nodes.prototype.hotThreads = d({
- params: {
- interval: { type: 'time' },
- snapshots: { type: 'number' },
- threads: { type: 'number' },
- ignoreIdleThreads: { type: 'boolean', name: 'ignore_idle_threads' },
- type: { type: 'enum', options: ['cpu', 'wait', 'block'] },
- timeout: { type: 'time' }
- },
- url: {}
- })),
- (f.nodes.prototype.info = d({
- params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- 'settings',
- 'os',
- 'process',
- 'jvm',
- 'thread_pool',
- 'transport',
- 'http',
- 'plugins',
- 'ingest'
- ]
- }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- 'settings',
- 'os',
- 'process',
- 'jvm',
- 'thread_pool',
- 'transport',
- 'http',
- 'plugins',
- 'ingest'
- ]
- }
- }
- },
- { fmt: '/_nodes' }
- ]
- })),
- (f.nodes.prototype.reloadSecureSettings = d({
- params: { timeout: { type: 'time' } },
- urls: [
- { fmt: '/_nodes/<%=nodeId%>/reload_secure_settings', req: { nodeId: { type: 'list' } } },
- { fmt: '/_nodes/reload_secure_settings' }
- ],
- method: 'POST'
- })),
- (f.nodes.prototype.stats = d({
- params: {
- completionFields: { type: 'list', name: 'completion_fields' },
- fielddataFields: { type: 'list', name: 'fielddata_fields' },
- fields: { type: 'list' },
- groups: { type: 'boolean' },
- level: { type: 'enum', default: 'node', options: ['indices', 'node', 'shards'] },
- types: { type: 'list' },
- timeout: { type: 'time' },
- includeSegmentFileSizes: {
- type: 'boolean',
- default: !1,
- name: 'include_segment_file_sizes'
- }
- },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- },
- indexMetric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- {
- fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- }
- }
- },
- {
- fmt: '/_nodes/stats/<%=metric%>/<%=indexMetric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- },
- indexMetric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>/stats', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/stats/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- }
- }
- },
- { fmt: '/_nodes/stats' }
- ]
- })),
- (f.nodes.prototype.usage = d({
- params: { timeout: { type: 'time' } },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/usage/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: { type: 'list', options: ['_all', 'rest_actions'] }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>/usage', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/usage/<%=metric%>',
- req: { metric: { type: 'list', options: ['_all', 'rest_actions'] } }
- },
- { fmt: '/_nodes/usage' }
- ]
- })),
- (f.ping = d({ url: { fmt: '/' }, method: 'HEAD' })),
- (f.putScript = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- context: { type: 'string' }
- },
- urls: [
- {
- fmt: '/_scripts/<%=id%>/<%=context%>',
- req: { id: { type: 'string' }, context: { type: 'string' } }
- },
- { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
- ],
- needBody: !0,
- method: 'PUT'
- })),
- (f.rankEval = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_rank_eval', req: { index: { type: 'list' } } },
- { fmt: '/_rank_eval' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.reindex = d({
- params: {
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- scroll: { type: 'time', default: '5m' },
- slices: { type: 'number', default: 1 },
- maxDocs: { type: 'number', name: 'max_docs' }
- },
- url: { fmt: '/_reindex' },
- needBody: !0,
- method: 'POST'
- })),
- (f.reindexRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_reindex/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- })),
- (f.renderSearchTemplate = d({
- urls: [
- { fmt: '/_render/template/<%=id%>', req: { id: { type: 'string' } } },
- { fmt: '/_render/template' }
- ],
- method: 'POST'
- })),
- (f.scriptsPainlessExecute = d({ url: { fmt: '/_scripts/painless/_execute' }, method: 'POST' })),
- (f.scroll = d({
- params: {
- scroll: { type: 'time' },
- scrollId: { type: 'string', name: 'scroll_id' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
- },
- url: { fmt: '/_search/scroll' },
- paramAsBody: { param: 'scrollId', body: 'scroll_id' },
- method: 'POST'
- })),
- (f.search = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- ccsMinimizeRoundtrips: {
- type: 'boolean',
- default: 'true',
- name: 'ccs_minimize_roundtrips'
- },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- explain: { type: 'boolean' },
- storedFields: { type: 'list', name: 'stored_fields' },
- docvalueFields: { type: 'list', name: 'docvalue_fields' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- size: { type: 'number' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- suggestField: { type: 'string', name: 'suggest_field' },
- suggestMode: {
- type: 'enum',
- default: 'missing',
- options: ['missing', 'popular', 'always'],
- name: 'suggest_mode'
- },
- suggestSize: { type: 'number', name: 'suggest_size' },
- suggestText: { type: 'string', name: 'suggest_text' },
- timeout: { type: 'time' },
- trackScores: { type: 'boolean', name: 'track_scores' },
- trackTotalHits: { type: 'boolean', name: 'track_total_hits' },
- allowPartialSearchResults: {
- type: 'boolean',
- default: !0,
- name: 'allow_partial_search_results'
- },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- version: { type: 'boolean' },
- seqNoPrimaryTerm: { type: 'boolean', name: 'seq_no_primary_term' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- batchedReduceSize: { type: 'number', default: 512, name: 'batched_reduce_size' },
- maxConcurrentShardRequests: {
- type: 'number',
- default: 5,
- name: 'max_concurrent_shard_requests'
- },
- preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
- },
- urls: [{ fmt: '/<%=index%>/_search', req: { index: { type: 'list' } } }, { fmt: '/_search' }],
- method: 'POST'
- })),
- (f.searchShards = d({
- params: {
- preference: { type: 'string' },
- routing: { type: 'string' },
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_search_shards', req: { index: { type: 'list' } } },
- { fmt: '/_search_shards' }
- ],
- method: 'POST'
- })),
- (f.searchTemplate = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- preference: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- explain: { type: 'boolean' },
- profile: { type: 'boolean' },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [
- { fmt: '/<%=index%>/_search/template', req: { index: { type: 'list' } } },
- { fmt: '/_search/template' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.snapshot = e()),
- (f.snapshot.prototype.create = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.snapshot.prototype.createRepository = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- verify: { type: 'boolean' }
- },
- url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'string' } } },
- needBody: !0,
- method: 'POST'
- })),
- (f.snapshot.prototype.delete = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'DELETE'
- })),
- (f.snapshot.prototype.deleteRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
- method: 'DELETE'
- })),
- (f.snapshot.prototype.get = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- verbose: { type: 'boolean' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
- }
- })),
- (f.snapshot.prototype.getRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, local: { type: 'boolean' } },
- urls: [
- { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
- { fmt: '/_snapshot' }
- ]
- })),
- (f.snapshot.prototype.restore = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_restore',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.snapshot.prototype.status = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' }
- },
- urls: [
- {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_status',
- req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
- },
- { fmt: '/_snapshot/<%=repository%>/_status', req: { repository: { type: 'string' } } },
- { fmt: '/_snapshot/_status' }
- ]
- })),
- (f.snapshot.prototype.verifyRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_snapshot/<%=repository%>/_verify', req: { repository: { type: 'string' } } },
- method: 'POST'
- })),
- (f.tasks = e()),
- (f.tasks.prototype.cancel = d({
- params: {
- nodes: { type: 'list' },
- actions: { type: 'list' },
- parentTaskId: { type: 'string', name: 'parent_task_id' }
- },
- urls: [
- { fmt: '/_tasks/<%=taskId%>/_cancel', req: { taskId: { type: 'string' } } },
- { fmt: '/_tasks/_cancel' }
- ],
- method: 'POST'
- })),
- (f.tasks.prototype.get = d({
- params: {
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_tasks/<%=taskId%>', req: { taskId: { type: 'string' } } }
- })),
- (f.tasks.prototype.list = d({
- params: {
- nodes: { type: 'list' },
- actions: { type: 'list' },
- detailed: { type: 'boolean' },
- parentTaskId: { type: 'string', name: 'parent_task_id' },
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- groupBy: {
- type: 'enum',
- default: 'nodes',
- options: ['nodes', 'parents', 'none'],
- name: 'group_by'
- },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_tasks' }
- })),
- (f.termvectors = d({
- params: {
- termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
- fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
- fields: { type: 'list', required: !1 },
- offsets: { type: 'boolean', default: !0, required: !1 },
- positions: { type: 'boolean', default: !0, required: !1 },
- payloads: { type: 'boolean', default: !0, required: !1 },
- preference: { type: 'string', required: !1 },
- routing: { type: 'string', required: !1 },
- realtime: { type: 'boolean', required: !1 },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- urls: [
- {
- fmt: '/<%=index%>/_termvectors/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_termvectors', req: { index: { type: 'string' } } }
- ],
- method: 'POST'
- })),
- (f.update = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- lang: { type: 'string' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- retryOnConflict: { type: 'number', name: 'retry_on_conflict' },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' }
- },
- url: {
- fmt: '/<%=index%>/_update/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- needBody: !0,
- method: 'POST'
- })),
- (f.updateByQuery = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- pipeline: { type: 'string' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- searchTimeout: { type: 'time', name: 'search_timeout' },
- size: { type: 'number' },
- maxDocs: { type: 'number', name: 'max_docs' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- version: { type: 'boolean' },
- versionType: { type: 'boolean', name: 'version_type' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- scrollSize: { type: 'number', name: 'scroll_size' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- slices: { type: 'number', default: 1 }
- },
- url: { fmt: '/<%=index%>/_update_by_query', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.updateByQueryRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_update_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- }));
- },
- function(a, b, c) {
- var d = c(1).makeFactoryWithModifier(function(a) {
- return c(0).merge(a, { params: { filterPath: { type: 'list', name: 'filter_path' } } });
- }),
- e = c(1).namespaceFactory,
- f = (a.exports = {});
- (f._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'nodes', 'snapshot', 'tasks']),
- (f.bulk = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- type: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- pipeline: { type: 'string' }
- },
- urls: [
- {
- fmt: '/<%=index%>/<%=type%>/_bulk',
- req: { index: { type: 'string' }, type: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_bulk', req: { index: { type: 'string' } } },
- { fmt: '/_bulk' }
- ],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.cat = e()),
- (f.cat.prototype.aliases = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/aliases/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/_cat/aliases' }
- ]
- })),
- (f.cat.prototype.allocation = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/allocation/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- { fmt: '/_cat/allocation' }
- ]
- })),
- (f.cat.prototype.count = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/count/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/count' }
- ]
- })),
- (f.cat.prototype.fielddata = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 },
- fields: { type: 'list' }
- },
- urls: [
- { fmt: '/_cat/fielddata/<%=fields%>', req: { fields: { type: 'list' } } },
- { fmt: '/_cat/fielddata' }
- ]
- })),
- (f.cat.prototype.health = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- ts: { type: 'boolean', default: !0 },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/health' }
- })),
- (f.cat.prototype.help = d({
- params: { help: { type: 'boolean', default: !1 }, s: { type: 'list' } },
- url: { fmt: '/_cat' }
- })),
- (f.cat.prototype.indices = d({
- params: {
- format: { type: 'string' },
- bytes: { type: 'enum', options: ['b', 'k', 'm', 'g'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- health: { type: 'enum', default: null, options: ['green', 'yellow', 'red'] },
- help: { type: 'boolean', default: !1 },
- pri: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 },
- includeUnloadedSegments: { type: 'boolean', default: !1, name: 'include_unloaded_segments' }
- },
- urls: [
- { fmt: '/_cat/indices/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/indices' }
- ]
- })),
- (f.cat.prototype.master = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/master' }
- })),
- (f.cat.prototype.nodeattrs = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/nodeattrs' }
- })),
- (f.cat.prototype.nodes = d({
- params: {
- format: { type: 'string' },
- fullId: { type: 'boolean', name: 'full_id' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/nodes' }
- })),
- (f.cat.prototype.pendingTasks = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/pending_tasks' }
- })),
- (f.cat.prototype.plugins = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/plugins' }
- })),
- (f.cat.prototype.recovery = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/recovery/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/recovery' }
- ]
- })),
- (f.cat.prototype.repositories = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean', default: !1 },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/repositories' }
- })),
- (f.cat.prototype.segments = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/segments/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/segments' }
- ]
- })),
- (f.cat.prototype.shards = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/shards/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/shards' }
- ]
- })),
- (f.cat.prototype.snapshots = d({
- params: {
- format: { type: 'string' },
- ignoreUnavailable: { type: 'boolean', default: !1, name: 'ignore_unavailable' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/snapshots/<%=repository%>', req: { repository: { type: 'list' } } },
- { fmt: '/_cat/snapshots' }
- ]
- })),
- (f.cat.prototype.tasks = d({
- params: {
- format: { type: 'string' },
- nodeId: { type: 'list', name: 'node_id' },
- actions: { type: 'list' },
- detailed: { type: 'boolean' },
- parentTask: { type: 'number', name: 'parent_task' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/tasks' }
- })),
- (f.cat.prototype.templates = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/templates/<%=name%>', req: { name: { type: 'string' } } },
- { fmt: '/_cat/templates' }
- ]
- })),
- (f.cat.prototype.threadPool = d({
- params: {
- format: { type: 'string' },
- size: { type: 'enum', options: ['', 'k', 'm', 'g', 't', 'p'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- {
- fmt: '/_cat/thread_pool/<%=threadPoolPatterns%>',
- req: { threadPoolPatterns: { type: 'list' } }
- },
- { fmt: '/_cat/thread_pool' }
- ]
- })),
- (f.clearScroll = d({
- url: { fmt: '/_search/scroll' },
- paramAsBody: { param: 'scrollId', body: 'scroll_id' },
- method: 'DELETE'
- })),
- (f.cluster = e()),
- (f.cluster.prototype.allocationExplain = d({
- params: {
- includeYesDecisions: { type: 'boolean', name: 'include_yes_decisions' },
- includeDiskInfo: { type: 'boolean', name: 'include_disk_info' }
- },
- url: { fmt: '/_cluster/allocation/explain' },
- method: 'POST'
- })),
- (f.cluster.prototype.getSettings = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- url: { fmt: '/_cluster/settings' }
- })),
- (f.cluster.prototype.health = d({
- params: {
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- level: { type: 'enum', default: 'cluster', options: ['cluster', 'indices', 'shards'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- waitForNodes: { type: 'string', name: 'wait_for_nodes' },
- waitForEvents: {
- type: 'enum',
- options: ['immediate', 'urgent', 'high', 'normal', 'low', 'languid'],
- name: 'wait_for_events'
- },
- waitForNoRelocatingShards: { type: 'boolean', name: 'wait_for_no_relocating_shards' },
- waitForNoInitializingShards: { type: 'boolean', name: 'wait_for_no_initializing_shards' },
- waitForStatus: {
- type: 'enum',
- default: null,
- options: ['green', 'yellow', 'red'],
- name: 'wait_for_status'
- }
- },
- urls: [
- { fmt: '/_cluster/health/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cluster/health' }
- ]
- })),
- (f.cluster.prototype.pendingTasks = d({
- params: { local: { type: 'boolean' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_cluster/pending_tasks' }
- })),
- (f.cluster.prototype.putSettings = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_cluster/settings' },
- needBody: !0,
- method: 'PUT'
- })),
- (f.cluster.prototype.remoteInfo = d({ url: { fmt: '/_remote/info' } })),
- (f.cluster.prototype.reroute = d({
- params: {
- dryRun: { type: 'boolean', name: 'dry_run' },
- explain: { type: 'boolean' },
- retryFailed: { type: 'boolean', name: 'retry_failed' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'master_node',
- 'version'
- ]
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_cluster/reroute' },
- method: 'POST'
- })),
- (f.cluster.prototype.state = d({
- params: {
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- waitForMetadataVersion: { type: 'number', name: 'wait_for_metadata_version' },
- waitForTimeout: { type: 'time', name: 'wait_for_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- {
- fmt: '/_cluster/state/<%=metric%>/<%=index%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'routing_nodes',
- 'master_node',
- 'version'
- ]
- },
- index: { type: 'list' }
- }
- },
- {
- fmt: '/_cluster/state/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'routing_nodes',
- 'master_node',
- 'version'
- ]
- }
- }
- },
- { fmt: '/_cluster/state' }
- ]
- })),
- (f.cluster.prototype.stats = d({
- params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
- urls: [
- { fmt: '/_cluster/stats/nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- { fmt: '/_cluster/stats' }
- ]
- })),
- (f.count = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- minScore: { type: 'number', name: 'min_score' },
- preference: { type: 'string' },
- routing: { type: 'list' },
- q: { type: 'string' },
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- lenient: { type: 'boolean' },
- terminateAfter: { type: 'number', name: 'terminate_after' }
- },
- urls: [{ fmt: '/<%=index%>/_count', req: { index: { type: 'list' } } }, { fmt: '/_count' }],
- method: 'POST'
- })),
- (f.create = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- },
- pipeline: { type: 'string' }
- },
- url: {
- fmt: '/<%=index%>/_create/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- needBody: !0,
- method: 'POST'
- })),
- (f.delete = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'DELETE'
- })),
- (f.deleteByQuery = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- searchTimeout: { type: 'time', name: 'search_timeout' },
- size: { type: 'number' },
- maxDocs: { type: 'number', name: 'max_docs' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- version: { type: 'boolean' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- scrollSize: { type: 'number', name: 'scroll_size' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- slices: { type: 'number', default: 1 }
- },
- url: { fmt: '/<%=index%>/_delete_by_query', req: { index: { type: 'list' } } },
- needBody: !0,
- method: 'POST'
- })),
- (f.deleteByQueryRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_delete_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- })),
- (f.deleteScript = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.exists = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'HEAD'
- })),
- (f.existsSource = d({
- params: {
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_source/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'HEAD'
- })),
- (f.explain = d({
- params: {
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- analyzer: { type: 'string' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- storedFields: { type: 'list', name: 'stored_fields' },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' }
- },
- url: {
- fmt: '/<%=index%>/_explain/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.fieldCaps = d({
- params: {
- fields: { type: 'list' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- includeUnmapped: { type: 'boolean', default: !1, name: 'include_unmapped' }
- },
- urls: [
- { fmt: '/<%=index%>/_field_caps', req: { index: { type: 'list' } } },
- { fmt: '/_field_caps' }
- ],
- method: 'POST'
- })),
- (f.get = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- }
- })),
- (f.getScript = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
- })),
- (f.getSource = d({
- params: {
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_source/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- }
- })),
- (f.index = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- opType: { type: 'enum', default: 'index', options: ['index', 'create'], name: 'op_type' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
- pipeline: { type: 'string' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_doc', req: { index: { type: 'string' } } }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.indices = e()),
- (f.indices.prototype.analyze = d({
- params: { index: { type: 'string' } },
- urls: [
- { fmt: '/<%=index%>/_analyze', req: { index: { type: 'string' } } },
- { fmt: '/_analyze' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.clearCache = d({
- params: {
- fielddata: { type: 'boolean' },
- fields: { type: 'list' },
- query: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- index: { type: 'list' },
- request: { type: 'boolean' }
- },
- urls: [
- { fmt: '/<%=index%>/_cache/clear', req: { index: { type: 'list' } } },
- { fmt: '/_cache/clear' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.clone = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_clone/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.close = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: { fmt: '/<%=index%>/_close', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.indices.prototype.create = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'string' } } },
- method: 'PUT'
- })),
- (f.indices.prototype.delete = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
- method: 'DELETE'
- })),
- (f.indices.prototype.deleteAlias = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- method: 'DELETE'
- })),
- (f.indices.prototype.deleteTemplate = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.indices.prototype.exists = d({
- params: {
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
- method: 'HEAD'
- })),
- (f.indices.prototype.existsAlias = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } }
- ],
- method: 'HEAD'
- })),
- (f.indices.prototype.existsTemplate = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } },
- method: 'HEAD'
- })),
- (f.indices.prototype.existsType = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- url: {
- fmt: '/<%=index%>/_mapping/<%=type%>',
- req: { index: { type: 'list' }, type: { type: 'list' } }
- },
- method: 'HEAD'
- })),
- (f.indices.prototype.flush = d({
- params: {
- force: { type: 'boolean' },
- waitIfOngoing: { type: 'boolean', name: 'wait_if_ongoing' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_flush', req: { index: { type: 'list' } } }, { fmt: '/_flush' }],
- method: 'POST'
- })),
- (f.indices.prototype.flushSynced = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_flush/synced', req: { index: { type: 'list' } } },
- { fmt: '/_flush/synced' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.forcemerge = d({
- params: {
- flush: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- maxNumSegments: { type: 'number', name: 'max_num_segments' },
- onlyExpungeDeletes: { type: 'boolean', name: 'only_expunge_deletes' }
- },
- urls: [
- { fmt: '/<%=index%>/_forcemerge', req: { index: { type: 'list' } } },
- { fmt: '/_forcemerge' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.get = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' },
- masterTimeout: { type: 'time', name: 'master_timeout' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } }
- })),
- (f.indices.prototype.getAlias = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/<%=index%>/_alias', req: { index: { type: 'list' } } },
- { fmt: '/_alias' }
- ]
- })),
- (f.indices.prototype.getFieldMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- includeDefaults: { type: 'boolean', name: 'include_defaults' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_mapping/field/<%=fields%>',
- req: { index: { type: 'list' }, fields: { type: 'list' } }
- },
- { fmt: '/_mapping/field/<%=fields%>', req: { fields: { type: 'list' } } }
- ]
- })),
- (f.indices.prototype.getMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- urls: [{ fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } }, { fmt: '/_mapping' }]
- })),
- (f.indices.prototype.getSettings = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: ['open', 'closed'],
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- local: { type: 'boolean' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_settings/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
- { fmt: '/_settings/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/_settings' }
- ]
- })),
- (f.indices.prototype.getTemplate = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- urls: [{ fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } }, { fmt: '/_template' }]
- })),
- (f.indices.prototype.getUpgrade = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }]
- })),
- (f.indices.prototype.open = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'closed',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: { fmt: '/<%=index%>/_open', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.indices.prototype.putAlias = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'string' } }
- },
- method: 'PUT'
- })),
- (f.indices.prototype.putMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- url: { fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.putSettings = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- preserveExisting: { type: 'boolean', name: 'preserve_existing' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' }
- },
- urls: [
- { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
- { fmt: '/_settings' }
- ],
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.putTemplate = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- order: { type: 'number' },
- create: { type: 'boolean', default: !1 },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- flatSettings: { type: 'boolean', name: 'flat_settings' }
- },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.recovery = d({
- params: {
- detailed: { type: 'boolean', default: !1 },
- activeOnly: { type: 'boolean', default: !1, name: 'active_only' }
- },
- urls: [
- { fmt: '/<%=index%>/_recovery', req: { index: { type: 'list' } } },
- { fmt: '/_recovery' }
- ]
- })),
- (f.indices.prototype.refresh = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_refresh', req: { index: { type: 'list' } } }, { fmt: '/_refresh' }],
- method: 'POST'
- })),
- (f.indices.prototype.rollover = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- timeout: { type: 'time' },
- dryRun: { type: 'boolean', name: 'dry_run' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- urls: [
- {
- fmt: '/<%=alias%>/_rollover/<%=newIndex%>',
- req: { alias: { type: 'string' }, newIndex: { type: 'string' } }
- },
- { fmt: '/<%=alias%>/_rollover', req: { alias: { type: 'string' } } }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.segments = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- verbose: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/<%=index%>/_segments', req: { index: { type: 'list' } } },
- { fmt: '/_segments' }
- ]
- })),
- (f.indices.prototype.shardStores = d({
- params: {
- status: { type: 'list', options: ['green', 'yellow', 'red', 'all'] },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_shard_stores', req: { index: { type: 'list' } } },
- { fmt: '/_shard_stores' }
- ]
- })),
- (f.indices.prototype.shrink = d({
- params: {
- copySettings: { type: 'boolean', name: 'copy_settings' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_shrink/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.split = d({
- params: {
- copySettings: { type: 'boolean', name: 'copy_settings' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_split/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.stats = d({
- params: {
- completionFields: { type: 'list', name: 'completion_fields' },
- fielddataFields: { type: 'list', name: 'fielddata_fields' },
- fields: { type: 'list' },
- groups: { type: 'list' },
- level: { type: 'enum', default: 'indices', options: ['cluster', 'indices', 'shards'] },
- types: { type: 'list' },
- includeSegmentFileSizes: {
- type: 'boolean',
- default: !1,
- name: 'include_segment_file_sizes'
- },
- includeUnloadedSegments: {
- type: 'boolean',
- default: !1,
- name: 'include_unloaded_segments'
- },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- forbidClosedIndices: { type: 'boolean', default: !0, name: 'forbid_closed_indices' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_stats/<%=metric%>',
- req: {
- index: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- {
- fmt: '/_stats/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- { fmt: '/<%=index%>/_stats', req: { index: { type: 'list' } } },
- { fmt: '/_stats' }
- ]
- })),
- (f.indices.prototype.updateAliases = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_aliases' },
- needBody: !0,
- method: 'POST'
- })),
- (f.indices.prototype.upgrade = d({
- params: {
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- onlyAncientSegments: { type: 'boolean', name: 'only_ancient_segments' }
- },
- urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }],
- method: 'POST'
- })),
- (f.indices.prototype.validateQuery = d({
- params: {
- explain: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- q: { type: 'string' },
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- lenient: { type: 'boolean' },
- rewrite: { type: 'boolean' },
- allShards: { type: 'boolean', name: 'all_shards' }
- },
- urls: [
- { fmt: '/<%=index%>/_validate/query', req: { index: { type: 'list' } } },
- { fmt: '/_validate/query' }
- ],
- method: 'POST'
- })),
- (f.info = d({ url: { fmt: '/' } })),
- (f.ingest = e()),
- (f.ingest.prototype.deletePipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.ingest.prototype.getPipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- urls: [
- { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- { fmt: '/_ingest/pipeline' }
- ]
- })),
- (f.ingest.prototype.processorGrok = d({ url: { fmt: '/_ingest/processor/grok' } })),
- (f.ingest.prototype.putPipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.ingest.prototype.simulate = d({
- params: { verbose: { type: 'boolean', default: !1 } },
- urls: [
- { fmt: '/_ingest/pipeline/<%=id%>/_simulate', req: { id: { type: 'string' } } },
- { fmt: '/_ingest/pipeline/_simulate' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.mget = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' }
- },
- urls: [{ fmt: '/<%=index%>/_mget', req: { index: { type: 'string' } } }, { fmt: '/_mget' }],
- needBody: !0,
- method: 'POST'
- })),
- (f.msearch = d({
- params: {
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
- maxConcurrentShardRequests: {
- type: 'number',
- default: 5,
- name: 'max_concurrent_shard_requests'
- },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [{ fmt: '/<%=index%>/_msearch', req: { index: { type: 'list' } } }, { fmt: '/_msearch' }],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.msearchTemplate = d({
- params: {
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [
- { fmt: '/<%=index%>/_msearch/template', req: { index: { type: 'list' } } },
- { fmt: '/_msearch/template' }
- ],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.mtermvectors = d({
- params: {
- ids: { type: 'list', required: !1 },
- termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
- fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
- fields: { type: 'list', required: !1 },
- offsets: { type: 'boolean', default: !0, required: !1 },
- positions: { type: 'boolean', default: !0, required: !1 },
- payloads: { type: 'boolean', default: !0, required: !1 },
- preference: { type: 'string', required: !1 },
- routing: { type: 'string', required: !1 },
- realtime: { type: 'boolean', required: !1 },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_mtermvectors', req: { index: { type: 'string' } } },
- { fmt: '/_mtermvectors' }
- ],
- method: 'POST'
- })),
- (f.nodes = e()),
- (f.nodes.prototype.hotThreads = d({
- params: {
- interval: { type: 'time' },
- snapshots: { type: 'number' },
- threads: { type: 'number' },
- ignoreIdleThreads: { type: 'boolean', name: 'ignore_idle_threads' },
- type: { type: 'enum', options: ['cpu', 'wait', 'block'] },
- timeout: { type: 'time' }
- },
- url: {}
- })),
- (f.nodes.prototype.info = d({
- params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- 'settings',
- 'os',
- 'process',
- 'jvm',
- 'thread_pool',
- 'transport',
- 'http',
- 'plugins',
- 'ingest'
- ]
- }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- 'settings',
- 'os',
- 'process',
- 'jvm',
- 'thread_pool',
- 'transport',
- 'http',
- 'plugins',
- 'ingest'
- ]
- }
- }
- },
- { fmt: '/_nodes' }
- ]
- })),
- (f.nodes.prototype.reloadSecureSettings = d({
- params: { timeout: { type: 'time' } },
- urls: [
- { fmt: '/_nodes/<%=nodeId%>/reload_secure_settings', req: { nodeId: { type: 'list' } } },
- { fmt: '/_nodes/reload_secure_settings' }
- ],
- method: 'POST'
- })),
- (f.nodes.prototype.stats = d({
- params: {
- completionFields: { type: 'list', name: 'completion_fields' },
- fielddataFields: { type: 'list', name: 'fielddata_fields' },
- fields: { type: 'list' },
- groups: { type: 'boolean' },
- level: { type: 'enum', default: 'node', options: ['indices', 'node', 'shards'] },
- types: { type: 'list' },
- timeout: { type: 'time' },
- includeSegmentFileSizes: {
- type: 'boolean',
- default: !1,
- name: 'include_segment_file_sizes'
- }
- },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- },
- indexMetric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- {
- fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- }
- }
- },
- {
- fmt: '/_nodes/stats/<%=metric%>/<%=indexMetric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- },
- indexMetric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>/stats', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/stats/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- }
- }
- },
- { fmt: '/_nodes/stats' }
- ]
- })),
- (f.nodes.prototype.usage = d({
- params: { timeout: { type: 'time' } },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/usage/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: { type: 'list', options: ['_all', 'rest_actions'] }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>/usage', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/usage/<%=metric%>',
- req: { metric: { type: 'list', options: ['_all', 'rest_actions'] } }
- },
- { fmt: '/_nodes/usage' }
- ]
- })),
- (f.ping = d({ url: { fmt: '/' }, method: 'HEAD' })),
- (f.putScript = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- context: { type: 'string' }
- },
- urls: [
- {
- fmt: '/_scripts/<%=id%>/<%=context%>',
- req: { id: { type: 'string' }, context: { type: 'string' } }
- },
- { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
- ],
- needBody: !0,
- method: 'PUT'
- })),
- (f.rankEval = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_rank_eval', req: { index: { type: 'list' } } },
- { fmt: '/_rank_eval' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.reindex = d({
- params: {
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- scroll: { type: 'time', default: '5m' },
- slices: { type: 'number', default: 1 },
- maxDocs: { type: 'number', name: 'max_docs' }
- },
- url: { fmt: '/_reindex' },
- needBody: !0,
- method: 'POST'
- })),
- (f.reindexRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_reindex/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- })),
- (f.renderSearchTemplate = d({
- urls: [
- { fmt: '/_render/template/<%=id%>', req: { id: { type: 'string' } } },
- { fmt: '/_render/template' }
- ],
- method: 'POST'
- })),
- (f.scriptsPainlessExecute = d({ url: { fmt: '/_scripts/painless/_execute' }, method: 'POST' })),
- (f.scroll = d({
- params: {
- scroll: { type: 'time' },
- scrollId: { type: 'string', name: 'scroll_id' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
- },
- url: { fmt: '/_search/scroll' },
- paramAsBody: { param: 'scrollId', body: 'scroll_id' },
- method: 'POST'
- })),
- (f.search = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- ccsMinimizeRoundtrips: {
- type: 'boolean',
- default: 'true',
- name: 'ccs_minimize_roundtrips'
- },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- explain: { type: 'boolean' },
- storedFields: { type: 'list', name: 'stored_fields' },
- docvalueFields: { type: 'list', name: 'docvalue_fields' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- size: { type: 'number' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- suggestField: { type: 'string', name: 'suggest_field' },
- suggestMode: {
- type: 'enum',
- default: 'missing',
- options: ['missing', 'popular', 'always'],
- name: 'suggest_mode'
- },
- suggestSize: { type: 'number', name: 'suggest_size' },
- suggestText: { type: 'string', name: 'suggest_text' },
- timeout: { type: 'time' },
- trackScores: { type: 'boolean', name: 'track_scores' },
- trackTotalHits: { type: 'boolean', name: 'track_total_hits' },
- allowPartialSearchResults: {
- type: 'boolean',
- default: !0,
- name: 'allow_partial_search_results'
- },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- version: { type: 'boolean' },
- seqNoPrimaryTerm: { type: 'boolean', name: 'seq_no_primary_term' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- batchedReduceSize: { type: 'number', default: 512, name: 'batched_reduce_size' },
- maxConcurrentShardRequests: {
- type: 'number',
- default: 5,
- name: 'max_concurrent_shard_requests'
- },
- preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
- },
- urls: [{ fmt: '/<%=index%>/_search', req: { index: { type: 'list' } } }, { fmt: '/_search' }],
- method: 'POST'
- })),
- (f.searchShards = d({
- params: {
- preference: { type: 'string' },
- routing: { type: 'string' },
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_search_shards', req: { index: { type: 'list' } } },
- { fmt: '/_search_shards' }
- ],
- method: 'POST'
- })),
- (f.searchTemplate = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- preference: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- explain: { type: 'boolean' },
- profile: { type: 'boolean' },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [
- { fmt: '/<%=index%>/_search/template', req: { index: { type: 'list' } } },
- { fmt: '/_search/template' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.snapshot = e()),
- (f.snapshot.prototype.create = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.snapshot.prototype.createRepository = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- verify: { type: 'boolean' }
- },
- url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'string' } } },
- needBody: !0,
- method: 'POST'
- })),
- (f.snapshot.prototype.delete = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'DELETE'
- })),
- (f.snapshot.prototype.deleteRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
- method: 'DELETE'
- })),
- (f.snapshot.prototype.get = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- verbose: { type: 'boolean' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
- }
- })),
- (f.snapshot.prototype.getRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, local: { type: 'boolean' } },
- urls: [
- { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
- { fmt: '/_snapshot' }
- ]
- })),
- (f.snapshot.prototype.restore = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_restore',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.snapshot.prototype.status = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' }
- },
- urls: [
- {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_status',
- req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
- },
- { fmt: '/_snapshot/<%=repository%>/_status', req: { repository: { type: 'string' } } },
- { fmt: '/_snapshot/_status' }
- ]
- })),
- (f.snapshot.prototype.verifyRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_snapshot/<%=repository%>/_verify', req: { repository: { type: 'string' } } },
- method: 'POST'
- })),
- (f.tasks = e()),
- (f.tasks.prototype.cancel = d({
- params: {
- nodes: { type: 'list' },
- actions: { type: 'list' },
- parentTaskId: { type: 'string', name: 'parent_task_id' }
- },
- urls: [
- { fmt: '/_tasks/<%=taskId%>/_cancel', req: { taskId: { type: 'string' } } },
- { fmt: '/_tasks/_cancel' }
- ],
- method: 'POST'
- })),
- (f.tasks.prototype.get = d({
- params: {
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_tasks/<%=taskId%>', req: { taskId: { type: 'string' } } }
- })),
- (f.tasks.prototype.list = d({
- params: {
- nodes: { type: 'list' },
- actions: { type: 'list' },
- detailed: { type: 'boolean' },
- parentTaskId: { type: 'string', name: 'parent_task_id' },
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- groupBy: {
- type: 'enum',
- default: 'nodes',
- options: ['nodes', 'parents', 'none'],
- name: 'group_by'
- },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_tasks' }
- })),
- (f.termvectors = d({
- params: {
- termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
- fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
- fields: { type: 'list', required: !1 },
- offsets: { type: 'boolean', default: !0, required: !1 },
- positions: { type: 'boolean', default: !0, required: !1 },
- payloads: { type: 'boolean', default: !0, required: !1 },
- preference: { type: 'string', required: !1 },
- routing: { type: 'string', required: !1 },
- realtime: { type: 'boolean', required: !1 },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- urls: [
- {
- fmt: '/<%=index%>/_termvectors/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_termvectors', req: { index: { type: 'string' } } }
- ],
- method: 'POST'
- })),
- (f.update = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- lang: { type: 'string' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- retryOnConflict: { type: 'number', name: 'retry_on_conflict' },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' }
- },
- url: {
- fmt: '/<%=index%>/_update/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- needBody: !0,
- method: 'POST'
- })),
- (f.updateByQuery = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- pipeline: { type: 'string' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- searchTimeout: { type: 'time', name: 'search_timeout' },
- size: { type: 'number' },
- maxDocs: { type: 'number', name: 'max_docs' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- version: { type: 'boolean' },
- versionType: { type: 'boolean', name: 'version_type' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- scrollSize: { type: 'number', name: 'scroll_size' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- slices: { type: 'number', default: 1 }
- },
- url: { fmt: '/<%=index%>/_update_by_query', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.updateByQueryRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_update_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- }));
- },
- function(a, b, c) {
- var d = c(1).makeFactoryWithModifier(function(a) {
- return c(0).merge(a, { params: { filterPath: { type: 'list', name: 'filter_path' } } });
- }),
- e = c(1).namespaceFactory,
- f = (a.exports = {});
- (f._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'nodes', 'snapshot', 'tasks']),
- (f.bulk = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- type: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- pipeline: { type: 'string' }
- },
- urls: [
- {
- fmt: '/<%=index%>/<%=type%>/_bulk',
- req: { index: { type: 'string' }, type: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_bulk', req: { index: { type: 'string' } } },
- { fmt: '/_bulk' }
- ],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.cat = e()),
- (f.cat.prototype.aliases = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/aliases/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/_cat/aliases' }
- ]
- })),
- (f.cat.prototype.allocation = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/allocation/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- { fmt: '/_cat/allocation' }
- ]
- })),
- (f.cat.prototype.count = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/count/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/count' }
- ]
- })),
- (f.cat.prototype.fielddata = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 },
- fields: { type: 'list' }
- },
- urls: [
- { fmt: '/_cat/fielddata/<%=fields%>', req: { fields: { type: 'list' } } },
- { fmt: '/_cat/fielddata' }
- ]
- })),
- (f.cat.prototype.health = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- ts: { type: 'boolean', default: !0 },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/health' }
- })),
- (f.cat.prototype.help = d({
- params: { help: { type: 'boolean', default: !1 }, s: { type: 'list' } },
- url: { fmt: '/_cat' }
- })),
- (f.cat.prototype.indices = d({
- params: {
- format: { type: 'string' },
- bytes: { type: 'enum', options: ['b', 'k', 'm', 'g'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- health: { type: 'enum', default: null, options: ['green', 'yellow', 'red'] },
- help: { type: 'boolean', default: !1 },
- pri: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 },
- includeUnloadedSegments: { type: 'boolean', default: !1, name: 'include_unloaded_segments' }
- },
- urls: [
- { fmt: '/_cat/indices/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/indices' }
- ]
- })),
- (f.cat.prototype.master = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/master' }
- })),
- (f.cat.prototype.nodeattrs = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/nodeattrs' }
- })),
- (f.cat.prototype.nodes = d({
- params: {
- format: { type: 'string' },
- fullId: { type: 'boolean', name: 'full_id' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/nodes' }
- })),
- (f.cat.prototype.pendingTasks = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/pending_tasks' }
- })),
- (f.cat.prototype.plugins = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/plugins' }
- })),
- (f.cat.prototype.recovery = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/recovery/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/recovery' }
- ]
- })),
- (f.cat.prototype.repositories = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean', default: !1 },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/repositories' }
- })),
- (f.cat.prototype.segments = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/segments/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/segments' }
- ]
- })),
- (f.cat.prototype.shards = d({
- params: {
- format: { type: 'string' },
- bytes: {
- type: 'enum',
- options: ['b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb']
- },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/shards/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cat/shards' }
- ]
- })),
- (f.cat.prototype.snapshots = d({
- params: {
- format: { type: 'string' },
- ignoreUnavailable: { type: 'boolean', default: !1, name: 'ignore_unavailable' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/snapshots/<%=repository%>', req: { repository: { type: 'list' } } },
- { fmt: '/_cat/snapshots' }
- ]
- })),
- (f.cat.prototype.tasks = d({
- params: {
- format: { type: 'string' },
- nodeId: { type: 'list', name: 'node_id' },
- actions: { type: 'list' },
- detailed: { type: 'boolean' },
- parentTask: { type: 'number', name: 'parent_task' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- url: { fmt: '/_cat/tasks' }
- })),
- (f.cat.prototype.templates = d({
- params: {
- format: { type: 'string' },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/_cat/templates/<%=name%>', req: { name: { type: 'string' } } },
- { fmt: '/_cat/templates' }
- ]
- })),
- (f.cat.prototype.threadPool = d({
- params: {
- format: { type: 'string' },
- size: { type: 'enum', options: ['', 'k', 'm', 'g', 't', 'p'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- h: { type: 'list' },
- help: { type: 'boolean', default: !1 },
- s: { type: 'list' },
- v: { type: 'boolean', default: !1 }
- },
- urls: [
- {
- fmt: '/_cat/thread_pool/<%=threadPoolPatterns%>',
- req: { threadPoolPatterns: { type: 'list' } }
- },
- { fmt: '/_cat/thread_pool' }
- ]
- })),
- (f.clearScroll = d({
- url: { fmt: '/_search/scroll' },
- paramAsBody: { param: 'scrollId', body: 'scroll_id' },
- method: 'DELETE'
- })),
- (f.cluster = e()),
- (f.cluster.prototype.allocationExplain = d({
- params: {
- includeYesDecisions: { type: 'boolean', name: 'include_yes_decisions' },
- includeDiskInfo: { type: 'boolean', name: 'include_disk_info' }
- },
- url: { fmt: '/_cluster/allocation/explain' },
- method: 'POST'
- })),
- (f.cluster.prototype.getSettings = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- url: { fmt: '/_cluster/settings' }
- })),
- (f.cluster.prototype.health = d({
- params: {
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- level: { type: 'enum', default: 'cluster', options: ['cluster', 'indices', 'shards'] },
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- waitForNodes: { type: 'string', name: 'wait_for_nodes' },
- waitForEvents: {
- type: 'enum',
- options: ['immediate', 'urgent', 'high', 'normal', 'low', 'languid'],
- name: 'wait_for_events'
- },
- waitForNoRelocatingShards: { type: 'boolean', name: 'wait_for_no_relocating_shards' },
- waitForNoInitializingShards: { type: 'boolean', name: 'wait_for_no_initializing_shards' },
- waitForStatus: {
- type: 'enum',
- default: null,
- options: ['green', 'yellow', 'red'],
- name: 'wait_for_status'
- }
- },
- urls: [
- { fmt: '/_cluster/health/<%=index%>', req: { index: { type: 'list' } } },
- { fmt: '/_cluster/health' }
- ]
- })),
- (f.cluster.prototype.pendingTasks = d({
- params: { local: { type: 'boolean' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_cluster/pending_tasks' }
- })),
- (f.cluster.prototype.putSettings = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_cluster/settings' },
- needBody: !0,
- method: 'PUT'
- })),
- (f.cluster.prototype.remoteInfo = d({ url: { fmt: '/_remote/info' } })),
- (f.cluster.prototype.reroute = d({
- params: {
- dryRun: { type: 'boolean', name: 'dry_run' },
- explain: { type: 'boolean' },
- retryFailed: { type: 'boolean', name: 'retry_failed' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'master_node',
- 'version'
- ]
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_cluster/reroute' },
- method: 'POST'
- })),
- (f.cluster.prototype.state = d({
- params: {
- local: { type: 'boolean' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- waitForMetadataVersion: { type: 'number', name: 'wait_for_metadata_version' },
- waitForTimeout: { type: 'time', name: 'wait_for_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- {
- fmt: '/_cluster/state/<%=metric%>/<%=index%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'routing_nodes',
- 'master_node',
- 'version'
- ]
- },
- index: { type: 'list' }
- }
- },
- {
- fmt: '/_cluster/state/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'blocks',
- 'metadata',
- 'nodes',
- 'routing_table',
- 'routing_nodes',
- 'master_node',
- 'version'
- ]
- }
- }
- },
- { fmt: '/_cluster/state' }
- ]
- })),
- (f.cluster.prototype.stats = d({
- params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
- urls: [
- { fmt: '/_cluster/stats/nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- { fmt: '/_cluster/stats' }
- ]
- })),
- (f.count = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- minScore: { type: 'number', name: 'min_score' },
- preference: { type: 'string' },
- routing: { type: 'list' },
- q: { type: 'string' },
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- lenient: { type: 'boolean' },
- terminateAfter: { type: 'number', name: 'terminate_after' }
- },
- urls: [{ fmt: '/<%=index%>/_count', req: { index: { type: 'list' } } }, { fmt: '/_count' }],
- method: 'POST'
- })),
- (f.create = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- },
- pipeline: { type: 'string' }
- },
- url: {
- fmt: '/<%=index%>/_create/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- needBody: !0,
- method: 'POST'
- })),
- (f.delete = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'DELETE'
- })),
- (f.deleteByQuery = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- searchTimeout: { type: 'time', name: 'search_timeout' },
- maxDocs: { type: 'number', name: 'max_docs' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- version: { type: 'boolean' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- scrollSize: { type: 'number', name: 'scroll_size' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- slices: { type: 'number', default: 1 }
- },
- url: { fmt: '/<%=index%>/_delete_by_query', req: { index: { type: 'list' } } },
- needBody: !0,
- method: 'POST'
- })),
- (f.deleteByQueryRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_delete_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- })),
- (f.deleteScript = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.exists = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'HEAD'
- })),
- (f.existsSource = d({
- params: {
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_source/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'HEAD'
- })),
- (f.explain = d({
- params: {
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- analyzer: { type: 'string' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- storedFields: { type: 'list', name: 'stored_fields' },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' }
- },
- url: {
- fmt: '/<%=index%>/_explain/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.fieldCaps = d({
- params: {
- fields: { type: 'list' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- includeUnmapped: { type: 'boolean', default: !1, name: 'include_unmapped' }
- },
- urls: [
- { fmt: '/<%=index%>/_field_caps', req: { index: { type: 'list' } } },
- { fmt: '/_field_caps' }
- ],
- method: 'POST'
- })),
- (f.get = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- }
- })),
- (f.getScript = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
- })),
- (f.getSource = d({
- params: {
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- url: {
- fmt: '/<%=index%>/_source/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- }
- })),
- (f.index = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- opType: { type: 'enum', default: 'index', options: ['index', 'create'], name: 'op_type' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: { type: 'number', name: 'if_primary_term' },
- pipeline: { type: 'string' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_doc/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_doc', req: { index: { type: 'string' } } }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.indices = e()),
- (f.indices.prototype.analyze = d({
- params: { index: { type: 'string' } },
- urls: [
- {
- fmt: '/<%=index%>/_analyze',
- req: {
- index: {
- type: 'string'
- }
- }
- },
- { fmt: '/_analyze' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.clearCache = d({
- params: {
- fielddata: { type: 'boolean' },
- fields: { type: 'list' },
- query: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- index: { type: 'list' },
- request: { type: 'boolean' }
- },
- urls: [
- { fmt: '/<%=index%>/_cache/clear', req: { index: { type: 'list' } } },
- { fmt: '/_cache/clear' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.clone = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_clone/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.close = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: { fmt: '/<%=index%>/_close', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.indices.prototype.create = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'string' } } },
- method: 'PUT'
- })),
- (f.indices.prototype.delete = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
- method: 'DELETE'
- })),
- (f.indices.prototype.deleteAlias = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- method: 'DELETE'
- })),
- (f.indices.prototype.deleteTemplate = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.indices.prototype.exists = d({
- params: {
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } },
- method: 'HEAD'
- })),
- (f.indices.prototype.existsAlias = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } }
- ],
- method: 'HEAD'
- })),
- (f.indices.prototype.existsTemplate = d({
- params: {
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } },
- method: 'HEAD'
- })),
- (f.indices.prototype.existsType = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- url: {
- fmt: '/<%=index%>/_mapping/<%=type%>',
- req: { index: { type: 'list' }, type: { type: 'list' } }
- },
- method: 'HEAD'
- })),
- (f.indices.prototype.flush = d({
- params: {
- force: { type: 'boolean' },
- waitIfOngoing: { type: 'boolean', name: 'wait_if_ongoing' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_flush', req: { index: { type: 'list' } } }, { fmt: '/_flush' }],
- method: 'POST'
- })),
- (f.indices.prototype.flushSynced = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_flush/synced', req: { index: { type: 'list' } } },
- { fmt: '/_flush/synced' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.forcemerge = d({
- params: {
- flush: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- maxNumSegments: { type: 'number', name: 'max_num_segments' },
- onlyExpungeDeletes: { type: 'boolean', name: 'only_expunge_deletes' }
- },
- urls: [
- { fmt: '/<%=index%>/_forcemerge', req: { index: { type: 'list' } } },
- { fmt: '/_forcemerge' }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.get = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' },
- masterTimeout: { type: 'time', name: 'master_timeout' }
- },
- url: { fmt: '/<%=index%>', req: { index: { type: 'list' } } }
- })),
- (f.indices.prototype.getAlias = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'all',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/_alias/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/<%=index%>/_alias', req: { index: { type: 'list' } } },
- { fmt: '/_alias' }
- ]
- })),
- (f.indices.prototype.getFieldMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- includeDefaults: { type: 'boolean', name: 'include_defaults' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- local: { type: 'boolean' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_mapping/field/<%=fields%>',
- req: { index: { type: 'list' }, fields: { type: 'list' } }
- },
- { fmt: '/_mapping/field/<%=fields%>', req: { fields: { type: 'list' } } }
- ]
- })),
- (f.indices.prototype.getMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- urls: [{ fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } }, { fmt: '/_mapping' }]
- })),
- (f.indices.prototype.getSettings = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: ['open', 'closed'],
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- local: { type: 'boolean' },
- includeDefaults: { type: 'boolean', default: !1, name: 'include_defaults' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_settings/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'list' } }
- },
- { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
- { fmt: '/_settings/<%=name%>', req: { name: { type: 'list' } } },
- { fmt: '/_settings' }
- ]
- })),
- (f.indices.prototype.getTemplate = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- flatSettings: { type: 'boolean', name: 'flat_settings' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- local: { type: 'boolean' }
- },
- urls: [{ fmt: '/_template/<%=name%>', req: { name: { type: 'list' } } }, { fmt: '/_template' }]
- })),
- (f.indices.prototype.getUpgrade = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }]
- })),
- (f.indices.prototype.open = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'closed',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: { fmt: '/<%=index%>/_open', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.indices.prototype.putAlias = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/<%=index%>/_alias/<%=name%>',
- req: { index: { type: 'list' }, name: { type: 'string' } }
- },
- method: 'PUT'
- })),
- (f.indices.prototype.putMapping = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- url: { fmt: '/<%=index%>/_mapping', req: { index: { type: 'list' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.putSettings = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- preserveExisting: { type: 'boolean', name: 'preserve_existing' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- flatSettings: { type: 'boolean', name: 'flat_settings' }
- },
- urls: [
- { fmt: '/<%=index%>/_settings', req: { index: { type: 'list' } } },
- { fmt: '/_settings' }
- ],
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.putTemplate = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- order: { type: 'number' },
- create: { type: 'boolean', default: !1 },
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- flatSettings: { type: 'boolean', name: 'flat_settings' }
- },
- url: { fmt: '/_template/<%=name%>', req: { name: { type: 'string' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.indices.prototype.recovery = d({
- params: {
- detailed: { type: 'boolean', default: !1 },
- activeOnly: { type: 'boolean', default: !1, name: 'active_only' }
- },
- urls: [
- { fmt: '/<%=index%>/_recovery', req: { index: { type: 'list' } } },
- { fmt: '/_recovery' }
- ]
- })),
- (f.indices.prototype.refresh = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [{ fmt: '/<%=index%>/_refresh', req: { index: { type: 'list' } } }, { fmt: '/_refresh' }],
- method: 'POST'
- })),
- (f.indices.prototype.rollover = d({
- params: {
- includeTypeName: { type: 'boolean', name: 'include_type_name' },
- timeout: { type: 'time' },
- dryRun: { type: 'boolean', name: 'dry_run' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- urls: [
- {
- fmt: '/<%=alias%>/_rollover/<%=newIndex%>',
- req: { alias: { type: 'string' }, newIndex: { type: 'string' } }
- },
- { fmt: '/<%=alias%>/_rollover', req: { alias: { type: 'string' } } }
- ],
- method: 'POST'
- })),
- (f.indices.prototype.segments = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- verbose: { type: 'boolean', default: !1 }
- },
- urls: [
- { fmt: '/<%=index%>/_segments', req: { index: { type: 'list' } } },
- { fmt: '/_segments' }
- ]
- })),
- (f.indices.prototype.shardStores = d({
- params: {
- status: { type: 'list', options: ['green', 'yellow', 'red', 'all'] },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_shard_stores', req: { index: { type: 'list' } } },
- { fmt: '/_shard_stores' }
- ]
- })),
- (f.indices.prototype.shrink = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_shrink/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.split = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' }
- },
- url: {
- fmt: '/<%=index%>/_split/<%=target%>',
- req: { index: { type: 'string' }, target: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.indices.prototype.stats = d({
- params: {
- completionFields: { type: 'list', name: 'completion_fields' },
- fielddataFields: { type: 'list', name: 'fielddata_fields' },
- fields: { type: 'list' },
- groups: { type: 'list' },
- level: { type: 'enum', default: 'indices', options: ['cluster', 'indices', 'shards'] },
- types: { type: 'list' },
- includeSegmentFileSizes: {
- type: 'boolean',
- default: !1,
- name: 'include_segment_file_sizes'
- },
- includeUnloadedSegments: {
- type: 'boolean',
- default: !1,
- name: 'include_unloaded_segments'
- },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- forbidClosedIndices: { type: 'boolean', default: !0, name: 'forbid_closed_indices' }
- },
- urls: [
- {
- fmt: '/<%=index%>/_stats/<%=metric%>',
- req: {
- index: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- {
- fmt: '/_stats/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- { fmt: '/<%=index%>/_stats', req: { index: { type: 'list' } } },
- { fmt: '/_stats' }
- ]
- })),
- (f.indices.prototype.updateAliases = d({
- params: { timeout: { type: 'time' }, masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: { fmt: '/_aliases' },
- needBody: !0,
- method: 'POST'
- })),
- (f.indices.prototype.upgrade = d({
- params: {
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- onlyAncientSegments: { type: 'boolean', name: 'only_ancient_segments' }
- },
- urls: [{ fmt: '/<%=index%>/_upgrade', req: { index: { type: 'list' } } }, { fmt: '/_upgrade' }],
- method: 'POST'
- })),
- (f.indices.prototype.validateQuery = d({
- params: {
- explain: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- q: { type: 'string' },
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- lenient: { type: 'boolean' },
- rewrite: { type: 'boolean' },
- allShards: { type: 'boolean', name: 'all_shards' }
- },
- urls: [
- { fmt: '/<%=index%>/_validate/query', req: { index: { type: 'list' } } },
- { fmt: '/_validate/query' }
- ],
- method: 'POST'
- })),
- (f.info = d({ url: { fmt: '/' } })),
- (f.ingest = e()),
- (f.ingest.prototype.deletePipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- method: 'DELETE'
- })),
- (f.ingest.prototype.getPipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- urls: [
- { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- { fmt: '/_ingest/pipeline' }
- ]
- })),
- (f.ingest.prototype.processorGrok = d({ url: { fmt: '/_ingest/processor/grok' } })),
- (f.ingest.prototype.putPipeline = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_ingest/pipeline/<%=id%>', req: { id: { type: 'string' } } },
- needBody: !0,
- method: 'PUT'
- })),
- (f.ingest.prototype.simulate = d({
- params: { verbose: { type: 'boolean', default: !1 } },
- urls: [
- { fmt: '/_ingest/pipeline/<%=id%>/_simulate', req: { id: { type: 'string' } } },
- { fmt: '/_ingest/pipeline/_simulate' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.mget = d({
- params: {
- storedFields: { type: 'list', name: 'stored_fields' },
- preference: { type: 'string' },
- realtime: { type: 'boolean' },
- refresh: { type: 'boolean' },
- routing: { type: 'string' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' }
- },
- urls: [{ fmt: '/<%=index%>/_mget', req: { index: { type: 'string' } } }, { fmt: '/_mget' }],
- needBody: !0,
- method: 'POST'
- })),
- (f.msearch = d({
- params: {
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
- maxConcurrentShardRequests: {
- type: 'number',
- default: 5,
- name: 'max_concurrent_shard_requests'
- },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [{ fmt: '/<%=index%>/_msearch', req: { index: { type: 'list' } } }, { fmt: '/_msearch' }],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.msearchTemplate = d({
- params: {
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- maxConcurrentSearches: { type: 'number', name: 'max_concurrent_searches' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [
- { fmt: '/<%=index%>/_msearch/template', req: { index: { type: 'list' } } },
- { fmt: '/_msearch/template' }
- ],
- needBody: !0,
- bulkBody: !0,
- method: 'POST'
- })),
- (f.mtermvectors = d({
- params: {
- ids: { type: 'list', required: !1 },
- termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
- fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
- fields: { type: 'list', required: !1 },
- offsets: { type: 'boolean', default: !0, required: !1 },
- positions: { type: 'boolean', default: !0, required: !1 },
- payloads: { type: 'boolean', default: !0, required: !1 },
- preference: { type: 'string', required: !1 },
- routing: { type: 'string', required: !1 },
- realtime: { type: 'boolean', required: !1 },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_mtermvectors', req: { index: { type: 'string' } } },
- { fmt: '/_mtermvectors' }
- ],
- method: 'POST'
- })),
- (f.nodes = e()),
- (f.nodes.prototype.hotThreads = d({
- params: {
- interval: { type: 'time' },
- snapshots: { type: 'number' },
- threads: { type: 'number' },
- ignoreIdleThreads: { type: 'boolean', name: 'ignore_idle_threads' },
- type: { type: 'enum', options: ['cpu', 'wait', 'block'] },
- timeout: { type: 'time' }
- },
- url: {}
- })),
- (f.nodes.prototype.info = d({
- params: { flatSettings: { type: 'boolean', name: 'flat_settings' }, timeout: { type: 'time' } },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- 'settings',
- 'os',
- 'process',
- 'jvm',
- 'thread_pool',
- 'transport',
- 'http',
- 'plugins',
- 'ingest'
- ]
- }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- 'settings',
- 'os',
- 'process',
- 'jvm',
- 'thread_pool',
- 'transport',
- 'http',
- 'plugins',
- 'ingest'
- ]
- }
- }
- },
- { fmt: '/_nodes' }
- ]
- })),
- (f.nodes.prototype.reloadSecureSettings = d({
- params: { timeout: { type: 'time' } },
- urls: [
- { fmt: '/_nodes/<%=nodeId%>/reload_secure_settings', req: { nodeId: { type: 'list' } } },
- { fmt: '/_nodes/reload_secure_settings' }
- ],
- method: 'POST'
- })),
- (f.nodes.prototype.stats = d({
- params: {
- completionFields: { type: 'list', name: 'completion_fields' },
- fielddataFields: { type: 'list', name: 'fielddata_fields' },
- fields: { type: 'list' },
- groups: { type: 'boolean' },
- level: { type: 'enum', default: 'node', options: ['indices', 'node', 'shards'] },
- types: { type: 'list' },
- timeout: { type: 'time' },
- includeSegmentFileSizes: {
- type: 'boolean',
- default: !1,
- name: 'include_segment_file_sizes'
- }
- },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- },
- indexMetric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- {
- fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- }
- }
- },
- {
- fmt: '/_nodes/stats/<%=metric%>/<%=indexMetric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- },
- indexMetric: {
- type: 'list',
- options: [
- '_all',
- 'completion',
- 'docs',
- 'fielddata',
- 'query_cache',
- 'flush',
- 'get',
- 'indexing',
- 'merge',
- 'request_cache',
- 'refresh',
- 'search',
- 'segments',
- 'store',
- 'warmer',
- 'suggest'
- ]
- }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>/stats', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/stats/<%=metric%>',
- req: {
- metric: {
- type: 'list',
- options: [
- '_all',
- 'breaker',
- 'fs',
- 'http',
- 'indices',
- 'jvm',
- 'os',
- 'process',
- 'thread_pool',
- 'transport',
- 'discovery'
- ]
- }
- }
- },
- { fmt: '/_nodes/stats' }
- ]
- })),
- (f.nodes.prototype.usage = d({
- params: { timeout: { type: 'time' } },
- urls: [
- {
- fmt: '/_nodes/<%=nodeId%>/usage/<%=metric%>',
- req: {
- nodeId: { type: 'list' },
- metric: { type: 'list', options: ['_all', 'rest_actions'] }
- }
- },
- { fmt: '/_nodes/<%=nodeId%>/usage', req: { nodeId: { type: 'list' } } },
- {
- fmt: '/_nodes/usage/<%=metric%>',
- req: { metric: { type: 'list', options: ['_all', 'rest_actions'] } }
- },
- { fmt: '/_nodes/usage' }
- ]
- })),
- (f.ping = d({ url: { fmt: '/' }, method: 'HEAD' })),
- (f.putScript = d({
- params: {
- timeout: { type: 'time' },
- masterTimeout: { type: 'time', name: 'master_timeout' },
- context: { type: 'string' }
- },
- urls: [
- {
- fmt: '/_scripts/<%=id%>/<%=context%>',
- req: { id: { type: 'string' }, context: { type: 'string' } }
- },
- { fmt: '/_scripts/<%=id%>', req: { id: { type: 'string' } } }
- ],
- needBody: !0,
- method: 'PUT'
- })),
- (f.rankEval = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_rank_eval', req: { index: { type: 'list' } } },
- { fmt: '/_rank_eval' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.reindex = d({
- params: {
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- scroll: { type: 'time', default: '5m' },
- slices: { type: 'number', default: 1 },
- maxDocs: { type: 'number', name: 'max_docs' }
- },
- url: { fmt: '/_reindex' },
- needBody: !0,
- method: 'POST'
- })),
- (f.reindexRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_reindex/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- })),
- (f.renderSearchTemplate = d({
- urls: [
- { fmt: '/_render/template/<%=id%>', req: { id: { type: 'string' } } },
- { fmt: '/_render/template' }
- ],
- method: 'POST'
- })),
- (f.scriptsPainlessExecute = d({ url: { fmt: '/_scripts/painless/_execute' }, method: 'POST' })),
- (f.scroll = d({
- params: {
- scroll: { type: 'time' },
- scrollId: { type: 'string', name: 'scroll_id' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
- },
- url: { fmt: '/_search/scroll' },
- paramAsBody: { param: 'scrollId', body: 'scroll_id' },
- method: 'POST'
- })),
- (f.search = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- ccsMinimizeRoundtrips: {
- type: 'boolean',
- default: 'true',
- name: 'ccs_minimize_roundtrips'
- },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- explain: { type: 'boolean' },
- storedFields: { type: 'list', name: 'stored_fields' },
- docvalueFields: { type: 'list', name: 'docvalue_fields' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- size: { type: 'number' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- suggestField: { type: 'string', name: 'suggest_field' },
- suggestMode: {
- type: 'enum',
- default: 'missing',
- options: ['missing', 'popular', 'always'],
- name: 'suggest_mode'
- },
- suggestSize: { type: 'number', name: 'suggest_size' },
- suggestText: { type: 'string', name: 'suggest_text' },
- timeout: { type: 'time' },
- trackScores: { type: 'boolean', name: 'track_scores' },
- trackTotalHits: { type: 'boolean', name: 'track_total_hits' },
- allowPartialSearchResults: {
- type: 'boolean',
- default: !0,
- name: 'allow_partial_search_results'
- },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- version: { type: 'boolean' },
- seqNoPrimaryTerm: { type: 'boolean', name: 'seq_no_primary_term' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- batchedReduceSize: { type: 'number', default: 512, name: 'batched_reduce_size' },
- maxConcurrentShardRequests: {
- type: 'number',
- default: 5,
- name: 'max_concurrent_shard_requests'
- },
- preFilterShardSize: { type: 'number', default: 128, name: 'pre_filter_shard_size' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' }
- },
- urls: [{ fmt: '/<%=index%>/_search', req: { index: { type: 'list' } } }, { fmt: '/_search' }],
- method: 'POST'
- })),
- (f.searchShards = d({
- params: {
- preference: { type: 'string' },
- routing: { type: 'string' },
- local: { type: 'boolean' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- }
- },
- urls: [
- { fmt: '/<%=index%>/_search_shards', req: { index: { type: 'list' } } },
- { fmt: '/_search_shards' }
- ],
- method: 'POST'
- })),
- (f.searchTemplate = d({
- params: {
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- ignoreThrottled: { type: 'boolean', name: 'ignore_throttled' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- preference: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: [
- 'query_then_fetch',
- 'query_and_fetch',
- 'dfs_query_then_fetch',
- 'dfs_query_and_fetch'
- ],
- name: 'search_type'
- },
- explain: { type: 'boolean' },
- profile: { type: 'boolean' },
- typedKeys: { type: 'boolean', name: 'typed_keys' },
- restTotalHitsAsInt: { type: 'boolean', default: !1, name: 'rest_total_hits_as_int' },
- ccsMinimizeRoundtrips: { type: 'boolean', default: 'true', name: 'ccs_minimize_roundtrips' }
- },
- urls: [
- { fmt: '/<%=index%>/_search/template', req: { index: { type: 'list' } } },
- { fmt: '/_search/template' }
- ],
- needBody: !0,
- method: 'POST'
- })),
- (f.snapshot = e()),
- (f.snapshot.prototype.create = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.snapshot.prototype.createRepository = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- timeout: { type: 'time' },
- verify: { type: 'boolean' }
- },
- url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'string' } } },
- needBody: !0,
- method: 'POST'
- })),
- (f.snapshot.prototype.delete = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' } },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'DELETE'
- })),
- (f.snapshot.prototype.deleteRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
- method: 'DELETE'
- })),
- (f.snapshot.prototype.get = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- verbose: { type: 'boolean' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
- req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
- }
- })),
- (f.snapshot.prototype.getRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, local: { type: 'boolean' } },
- urls: [
- { fmt: '/_snapshot/<%=repository%>', req: { repository: { type: 'list' } } },
- { fmt: '/_snapshot' }
- ]
- })),
- (f.snapshot.prototype.restore = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- waitForCompletion: { type: 'boolean', default: !1, name: 'wait_for_completion' }
- },
- url: {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_restore',
- req: { repository: { type: 'string' }, snapshot: { type: 'string' } }
- },
- method: 'POST'
- })),
- (f.snapshot.prototype.status = d({
- params: {
- masterTimeout: { type: 'time', name: 'master_timeout' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' }
- },
- urls: [
- {
- fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_status',
- req: { repository: { type: 'string' }, snapshot: { type: 'list' } }
- },
- { fmt: '/_snapshot/<%=repository%>/_status', req: { repository: { type: 'string' } } },
- { fmt: '/_snapshot/_status' }
- ]
- })),
- (f.snapshot.prototype.verifyRepository = d({
- params: { masterTimeout: { type: 'time', name: 'master_timeout' }, timeout: { type: 'time' } },
- url: { fmt: '/_snapshot/<%=repository%>/_verify', req: { repository: { type: 'string' } } },
- method: 'POST'
- })),
- (f.tasks = e()),
- (f.tasks.prototype.cancel = d({
- params: {
- nodes: { type: 'list' },
- actions: { type: 'list' },
- parentTaskId: { type: 'string', name: 'parent_task_id' }
- },
- urls: [
- { fmt: '/_tasks/<%=taskId%>/_cancel', req: { taskId: { type: 'string' } } },
- { fmt: '/_tasks/_cancel' }
- ],
- method: 'POST'
- })),
- (f.tasks.prototype.get = d({
- params: {
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_tasks/<%=taskId%>', req: { taskId: { type: 'string' } } }
- })),
- (f.tasks.prototype.list = d({
- params: {
- nodes: { type: 'list' },
- actions: { type: 'list' },
- detailed: { type: 'boolean' },
- parentTaskId: { type: 'string', name: 'parent_task_id' },
- waitForCompletion: { type: 'boolean', name: 'wait_for_completion' },
- groupBy: {
- type: 'enum',
- default: 'nodes',
- options: ['nodes', 'parents', 'none'],
- name: 'group_by'
- },
- timeout: { type: 'time' }
- },
- url: { fmt: '/_tasks' }
- })),
- (f.termvectors = d({
- params: {
- termStatistics: { type: 'boolean', default: !1, required: !1, name: 'term_statistics' },
- fieldStatistics: { type: 'boolean', default: !0, required: !1, name: 'field_statistics' },
- fields: { type: 'list', required: !1 },
- offsets: { type: 'boolean', default: !0, required: !1 },
- positions: { type: 'boolean', default: !0, required: !1 },
- payloads: { type: 'boolean', default: !0, required: !1 },
- preference: { type: 'string', required: !1 },
- routing: { type: 'string', required: !1 },
- realtime: { type: 'boolean', required: !1 },
- version: { type: 'number' },
- versionType: {
- type: 'enum',
- options: ['internal', 'external', 'external_gte', 'force'],
- name: 'version_type'
- }
- },
- urls: [
- {
- fmt: '/<%=index%>/_termvectors/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- { fmt: '/<%=index%>/_termvectors', req: { index: { type: 'string' } } }
- ],
- method: 'POST'
- })),
- (f.update = d({
- params: {
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- lang: { type: 'string' },
- refresh: { type: 'enum', options: ['true', 'false', 'wait_for', ''] },
- retryOnConflict: { type: 'number', name: 'retry_on_conflict' },
- routing: { type: 'string' },
- timeout: { type: 'time' },
- ifSeqNo: { type: 'number', name: 'if_seq_no' },
- ifPrimaryTerm: {
- type: 'number',
- name: 'if_primary_term'
- }
- },
- url: {
- fmt: '/<%=index%>/_update/<%=id%>',
- req: { index: { type: 'string' }, id: { type: 'string' } }
- },
- needBody: !0,
- method: 'POST'
- })),
- (f.updateByQuery = d({
- params: {
- analyzer: { type: 'string' },
- analyzeWildcard: { type: 'boolean', name: 'analyze_wildcard' },
- defaultOperator: {
- type: 'enum',
- default: 'OR',
- options: ['AND', 'OR'],
- name: 'default_operator'
- },
- df: { type: 'string' },
- from: { type: 'number' },
- ignoreUnavailable: { type: 'boolean', name: 'ignore_unavailable' },
- allowNoIndices: { type: 'boolean', name: 'allow_no_indices' },
- conflicts: { type: 'enum', default: 'abort', options: ['abort', 'proceed'] },
- expandWildcards: {
- type: 'enum',
- default: 'open',
- options: ['open', 'closed', 'none', 'all'],
- name: 'expand_wildcards'
- },
- lenient: { type: 'boolean' },
- pipeline: { type: 'string' },
- preference: { type: 'string' },
- q: { type: 'string' },
- routing: { type: 'list' },
- scroll: { type: 'time' },
- searchType: {
- type: 'enum',
- options: ['query_then_fetch', 'dfs_query_then_fetch'],
- name: 'search_type'
- },
- searchTimeout: { type: 'time', name: 'search_timeout' },
- maxDocs: { type: 'number', name: 'max_docs' },
- sort: { type: 'list' },
- _source: { type: 'list' },
- _sourceExcludes: { type: 'list', name: '_source_excludes' },
- _sourceIncludes: { type: 'list', name: '_source_includes' },
- terminateAfter: { type: 'number', name: 'terminate_after' },
- stats: { type: 'list' },
- version: { type: 'boolean' },
- versionType: { type: 'boolean', name: 'version_type' },
- requestCache: { type: 'boolean', name: 'request_cache' },
- refresh: { type: 'boolean' },
- timeout: { type: 'time', default: '1m' },
- waitForActiveShards: { type: 'string', name: 'wait_for_active_shards' },
- scrollSize: { type: 'number', name: 'scroll_size' },
- waitForCompletion: { type: 'boolean', default: !0, name: 'wait_for_completion' },
- requestsPerSecond: { type: 'number', default: 0, name: 'requests_per_second' },
- slices: { type: 'number', default: 1 }
- },
- url: { fmt: '/<%=index%>/_update_by_query', req: { index: { type: 'list' } } },
- method: 'POST'
- })),
- (f.updateByQueryRethrottle = d({
- params: { requestsPerSecond: { type: 'number', required: !0, name: 'requests_per_second' } },
- url: { fmt: '/_update_by_query/<%=taskId%>/_rethrottle', req: { taskId: { type: 'string' } } },
- method: 'POST'
- }));
- }
- ]);
- });
- })();
|