@infinilabs/discover 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +8 -0
  3. package/dist/abap-B988NUrV.js +122 -0
  4. package/dist/abap-obercqiY.cjs +1 -0
  5. package/dist/apex-B0_UGK1B.cjs +1 -0
  6. package/dist/apex-BlHPPQK-.js +168 -0
  7. package/dist/azcli-C7iyZFGk.js +53 -0
  8. package/dist/azcli-CEoytwx_.cjs +1 -0
  9. package/dist/bat-Buc0l0C3.js +123 -0
  10. package/dist/bat-D65OC-jj.cjs +1 -0
  11. package/dist/bicep-DvD_e5vW.cjs +2 -0
  12. package/dist/bicep-U66iJ-pV.js +219 -0
  13. package/dist/cameligo-C9Dwkdmm.js +189 -0
  14. package/dist/cameligo-DzMHfeEs.cjs +1 -0
  15. package/dist/chunk-BjqF3vbe.cjs +1 -0
  16. package/dist/chunk-CIp4IH9D.js +21 -0
  17. package/dist/classnames-BXjDNQ6Q.cjs +1 -0
  18. package/dist/classnames-eUba3oot.js +29 -0
  19. package/dist/clojure-BC7BzAFK.cjs +1 -0
  20. package/dist/clojure-DDWmWbSx.js +146 -0
  21. package/dist/coffee-7Sx2S8NH.js +260 -0
  22. package/dist/coffee-Ca9F0OWZ.cjs +1 -0
  23. package/dist/common-BeXEy5sz.cjs +18 -0
  24. package/dist/common-BlOHZJzI.js +64 -0
  25. package/dist/common-DuYIpe6b.cjs +1 -0
  26. package/dist/common-Tr1I-HCs.js +6725 -0
  27. package/dist/cpp-CHjqaSPQ.js +230 -0
  28. package/dist/cpp-DKy9h6xR.cjs +1 -0
  29. package/dist/createLucideIcon-239Z-2by.cjs +1 -0
  30. package/dist/createLucideIcon-BO6TDGE7.js +43 -0
  31. package/dist/csharp-CkbgT9vH.cjs +1 -0
  32. package/dist/csharp-jwStnVeK.js +260 -0
  33. package/dist/csp-C2qFd6iv.cjs +1 -0
  34. package/dist/csp-DkO8Np0h.js +46 -0
  35. package/dist/css-BFvwcljm.js +284 -0
  36. package/dist/css-DCKUCzD6.cjs +3 -0
  37. package/dist/cssMode-CU2AJQMM.js +1509 -0
  38. package/dist/cssMode-l7eR8WSG.cjs +4 -0
  39. package/dist/cypher-122TYSjJ.cjs +1 -0
  40. package/dist/cypher-DaQ7hFRL.js +212 -0
  41. package/dist/dart-D8p_2HKP.js +236 -0
  42. package/dist/dart-DshcPGU8.cjs +1 -0
  43. package/dist/dist-DCz_Qv0B.js +884 -0
  44. package/dist/dist-D_2dZQH5.cjs +11 -0
  45. package/dist/dockerfile-CL8dwZCe.cjs +1 -0
  46. package/dist/dockerfile-DKWOQrwp.js +191 -0
  47. package/dist/ecl-DP3PNWGB.js +226 -0
  48. package/dist/ecl-DVx2J_EE.cjs +1 -0
  49. package/dist/editor.api-CbUDOph7.js +70302 -0
  50. package/dist/editor.api-lY2thcaq.cjs +644 -0
  51. package/dist/elixir-Xgx_1krO.cjs +1 -0
  52. package/dist/elixir-e9tDp1p1.js +523 -0
  53. package/dist/filter_label-DRJC3vpe.js +58 -0
  54. package/dist/filter_label-DssaWGpx.cjs +1 -0
  55. package/dist/filter_operators-C-TaTcNc.js +70 -0
  56. package/dist/filter_operators-D0kyB-XI.cjs +1 -0
  57. package/dist/flow9-C9BjpX8h.js +176 -0
  58. package/dist/flow9-DR-EyjYV.cjs +1 -0
  59. package/dist/freemarker2-BTGUjvgA.cjs +3 -0
  60. package/dist/freemarker2-C6Iq5MB-.js +724 -0
  61. package/dist/fsharp-BWm_FISn.js +147 -0
  62. package/dist/fsharp-DaBEigN7.cjs +1 -0
  63. package/dist/go-Xyq33f0v.cjs +1 -0
  64. package/dist/go-cmqV0Vy_.js +165 -0
  65. package/dist/graphql-BkFHHVmI.js +174 -0
  66. package/dist/graphql-Cj7XAy25.cjs +1 -0
  67. package/dist/handlebars-B2b1q7PA.cjs +1 -0
  68. package/dist/handlebars-DGGN9u4Y.js +418 -0
  69. package/dist/hcl-5I-P7bYX.js +219 -0
  70. package/dist/hcl-C3dpBsgU.cjs +1 -0
  71. package/dist/html-RJa-j-qT.js +339 -0
  72. package/dist/html-qfcUzk8e.cjs +1 -0
  73. package/dist/htmlMode-CYIxo4hc.cjs +4 -0
  74. package/dist/htmlMode-DDZ48mdp.js +1520 -0
  75. package/dist/index.cjs +303 -0
  76. package/dist/index.d.ts +4 -0
  77. package/dist/index.js +72895 -0
  78. package/dist/index_pattern_select--iGeA3sP.js +93 -0
  79. package/dist/index_pattern_select-BeN5049F.cjs +1 -0
  80. package/dist/ini-ChENqKh8.cjs +1 -0
  81. package/dist/ini-DSIAxBZt.js +94 -0
  82. package/dist/java-DGeAxsRb.js +173 -0
  83. package/dist/java-LZ6g7weJ.cjs +1 -0
  84. package/dist/javascript-CN5gTHH2.js +19 -0
  85. package/dist/javascript-CZ97a-BN.cjs +1 -0
  86. package/dist/jsonMode-BZDeJMLL.cjs +10 -0
  87. package/dist/jsonMode-DraOl-ka.js +1885 -0
  88. package/dist/julia-BeebccKw.cjs +1 -0
  89. package/dist/julia-CU4CtsP4.js +414 -0
  90. package/dist/kotlin-B8NxXJ89.js +183 -0
  91. package/dist/kotlin-M82nl514.cjs +1 -0
  92. package/dist/less-B4Q3fV9Y.cjs +2 -0
  93. package/dist/less-DbeQQzer.js +242 -0
  94. package/dist/lexon-CXQaaecE.cjs +1 -0
  95. package/dist/lexon-Cw9JuAKc.js +185 -0
  96. package/dist/lib-C9j_E-l0.js +47 -0
  97. package/dist/lib-Chy_6VKj.cjs +1 -0
  98. package/dist/liquid-BYNEOJvX.cjs +1 -0
  99. package/dist/liquid-DvB-d2w7.js +205 -0
  100. package/dist/lodash-C_2NO1eK.cjs +35 -0
  101. package/dist/lodash-D-qGlPRW.js +3769 -0
  102. package/dist/lua-CnG8Tpu2.cjs +1 -0
  103. package/dist/lua-yl5NzA_S.js +200 -0
  104. package/dist/m3-CVcm-OIn.cjs +1 -0
  105. package/dist/m3-CdNAqvIX.js +193 -0
  106. package/dist/markdown-C1h-EuiT.js +262 -0
  107. package/dist/markdown-DrRHDVSU.cjs +1 -0
  108. package/dist/mdx-BbiOYPr2.cjs +1 -0
  109. package/dist/mdx-Fk8VTCUK.js +335 -0
  110. package/dist/mips-DIWpzGF0.js +128 -0
  111. package/dist/mips-D_p8UYQb.cjs +1 -0
  112. package/dist/monaco.contribution-BpuUCejv.cjs +1 -0
  113. package/dist/monaco.contribution-Cq4QrMn0.js +134 -0
  114. package/dist/msdax-BiazpDQ1.js +156 -0
  115. package/dist/msdax-xM1_j20x.cjs +1 -0
  116. package/dist/mysql-DMsJkSnA.cjs +1 -0
  117. package/dist/mysql-DphBFJlP.js +168 -0
  118. package/dist/objective-c-BG02Lrht.cjs +1 -0
  119. package/dist/objective-c-DWZ8Qpyc.js +144 -0
  120. package/dist/pascal-BcvlMOdu.js +176 -0
  121. package/dist/pascal-CnP2Fqes.cjs +1 -0
  122. package/dist/pascaligo-BzDEm-l_.cjs +1 -0
  123. package/dist/pascaligo-DHEp4kzh.js +201 -0
  124. package/dist/perl-USYKPHpO.js +316 -0
  125. package/dist/perl-nIxw-e4R.cjs +1 -0
  126. package/dist/pgsql-Buk6XzVf.cjs +1 -0
  127. package/dist/pgsql-DzPhAh9W.js +158 -0
  128. package/dist/php-B3sFYUqV.cjs +1 -0
  129. package/dist/php-PfpSTefE.js +471 -0
  130. package/dist/pla-CZtnfWl6.cjs +1 -0
  131. package/dist/pla-DrFOZwDB.js +146 -0
  132. package/dist/postiats-4OGxVVUT.js +504 -0
  133. package/dist/postiats-CgJZf83Q.cjs +1 -0
  134. package/dist/powerquery-D9gzk2Dq.cjs +1 -0
  135. package/dist/powerquery-_h9-HEnY.js +190 -0
  136. package/dist/powershell-CZHaQY6z.cjs +1 -0
  137. package/dist/powershell-nOzcY8gy.js +211 -0
  138. package/dist/protobuf-DAgxhnea.js +659 -0
  139. package/dist/protobuf-D_C8Guej.cjs +2 -0
  140. package/dist/public-1PveQco4.js +1756 -0
  141. package/dist/public-D1K7oN7t.cjs +3 -0
  142. package/dist/pug-quEtG4rz.cjs +1 -0
  143. package/dist/pug-raGZNmZ1.js +300 -0
  144. package/dist/python-C45c7K7W.js +260 -0
  145. package/dist/python-CQX8JcT4.cjs +1 -0
  146. package/dist/qsharp-C2jz5tuo.js +143 -0
  147. package/dist/qsharp-CX1SSV_j.cjs +1 -0
  148. package/dist/query_bar_top_row-3UclS1nm.cjs +1 -0
  149. package/dist/query_bar_top_row-CfV4Iu71.cjs +1 -0
  150. package/dist/query_bar_top_row-D6a48VTk.js +11 -0
  151. package/dist/query_bar_top_row-DonV1OzY.js +2930 -0
  152. package/dist/query_string_input-75waAcWy.js +9 -0
  153. package/dist/query_string_input-CHG9w1ze.cjs +1 -0
  154. package/dist/query_string_input-CyPZVKif.js +366 -0
  155. package/dist/query_string_input-SOULY6dl.cjs +1 -0
  156. package/dist/r-CXkPcYYf.js +189 -0
  157. package/dist/r-DpVDQTST.cjs +1 -0
  158. package/dist/razor-BnoJmj1k.js +525 -0
  159. package/dist/razor-DYx4yJJn.cjs +1 -0
  160. package/dist/redis-DsCuCZIT.cjs +1 -0
  161. package/dist/redis-giKZvbbg.js +123 -0
  162. package/dist/redshift-qKVxBsP_.js +158 -0
  163. package/dist/redshift-z5_aUfdC.cjs +1 -0
  164. package/dist/restructuredtext-D0n4pabr.js +287 -0
  165. package/dist/restructuredtext-DdXoKocW.cjs +1 -0
  166. package/dist/ruby-BNrBlpcw.js +527 -0
  167. package/dist/ruby-Dj0sNBey.cjs +1 -0
  168. package/dist/rust-D6mpPoli.js +178 -0
  169. package/dist/rust-DjkW1U4M.cjs +1 -0
  170. package/dist/sb-BCN0JcpS.cjs +1 -0
  171. package/dist/sb-DhS9GhXl.js +143 -0
  172. package/dist/scala-BqxBEpi8.js +551 -0
  173. package/dist/scala-CyXWhZaJ.cjs +1 -0
  174. package/dist/scheme-Bh4oGAk3.js +170 -0
  175. package/dist/scheme-Cs9G6QEE.cjs +1 -0
  176. package/dist/scss-Byf08jwC.js +417 -0
  177. package/dist/scss-Fl7taPuq.cjs +3 -0
  178. package/dist/search_bar-Caqi1NVo.js +1815 -0
  179. package/dist/search_bar-DyO_WsC5.cjs +1 -0
  180. package/dist/services-9wPHk1eh.js +2350 -0
  181. package/dist/services-BPC3fXx4.cjs +7 -0
  182. package/dist/shard_failure_open_modal_button-BYTThYch.js +199 -0
  183. package/dist/shard_failure_open_modal_button-Dx8ML4VE.cjs +2 -0
  184. package/dist/shell-Cw5yNfC4.cjs +1 -0
  185. package/dist/shell-UoRv_tpG.js +223 -0
  186. package/dist/solidity-B5t7Lkol.js +147 -0
  187. package/dist/solidity-BoAzg9X_.cjs +1 -0
  188. package/dist/sophia-BrXXWhvp.js +147 -0
  189. package/dist/sophia-L84Jz6Ow.cjs +1 -0
  190. package/dist/sparql-B8ZTY48u.js +124 -0
  191. package/dist/sparql-D6lnG7vO.cjs +1 -0
  192. package/dist/sql-D_74hUL-.js +171 -0
  193. package/dist/sql-VXdYzIyz.cjs +1 -0
  194. package/dist/src/App.d.ts +2 -0
  195. package/dist/src/components/ResultHeader/Info.d.ts +30 -0
  196. package/dist/src/components/ResultHeader/index.d.ts +13 -0
  197. package/dist/src/components/context.d.ts +82 -0
  198. package/dist/src/components/euiicons.d.ts +1 -0
  199. package/dist/src/components/index.d.ts +8 -0
  200. package/dist/src/main.d.ts +1 -0
  201. package/dist/src/utils/request.d.ts +1 -0
  202. package/dist/src/utils/utils.d.ts +1 -0
  203. package/dist/st-CxJLwAAK.cjs +1 -0
  204. package/dist/st-D8Rdx9Bz.js +476 -0
  205. package/dist/suggestions_component-BBHwbjYT.js +1243 -0
  206. package/dist/suggestions_component-CF4sehth.cjs +77 -0
  207. package/dist/swift-ZBC6wQdc.cjs +1 -0
  208. package/dist/swift-s19Ivx3X.js +213 -0
  209. package/dist/systemverilog-DoSgAb1I.cjs +1 -0
  210. package/dist/systemverilog-fA72PnKj.js +298 -0
  211. package/dist/tcl-B8QLbcxi.js +223 -0
  212. package/dist/tcl-IXmy-lJ0.cjs +1 -0
  213. package/dist/tsMode-BrPRpJvb.js +597 -0
  214. package/dist/tsMode-CNvH6xuC.cjs +11 -0
  215. package/dist/tsup.config.d.ts +2 -0
  216. package/dist/twig-CT2RXmm0.cjs +1 -0
  217. package/dist/twig-Dy7NkzKI.js +388 -0
  218. package/dist/typescript-BRKHcp4S.js +263 -0
  219. package/dist/typescript-Bbw9fxuo.cjs +1 -0
  220. package/dist/typescript-CQjO9XnF.js +3 -0
  221. package/dist/typescript-D6q4AO2z.cjs +1 -0
  222. package/dist/typespec-CkKpvaMv.cjs +1 -0
  223. package/dist/typespec-ndyv0mQx.js +234 -0
  224. package/dist/vb-DET0NIW-.js +260 -0
  225. package/dist/vb-R3Kcrzvd.cjs +1 -0
  226. package/dist/vite.config.d.ts +2 -0
  227. package/dist/wgsl-D5TeQchR.js +145 -0
  228. package/dist/wgsl-FTDBzylH.cjs +298 -0
  229. package/dist/xml-BZjE3dtf.js +136 -0
  230. package/dist/xml-CxbMIueA.cjs +1 -0
  231. package/dist/yaml-Di_6aXC4.js +229 -0
  232. package/dist/yaml-DvaGkWBl.cjs +1 -0
  233. package/package.json +98 -0
@@ -0,0 +1,7 @@
1
+ const e=require(`./chunk-BjqF3vbe.cjs`),t=require(`./lodash-C_2NO1eK.cjs`),n=require(`./classnames-BXjDNQ6Q.cjs`),r=require(`./common-DuYIpe6b.cjs`);let i=require(`react`);i=e.a(i);let a=require(`@elastic/eui`),o=require(`react-dom`);o=e.a(o);var s=t.n();const c=e=>{let t=t=>(o.default.render((0,s.jsx)(s.Fragment,{children:e}),t),()=>o.default.unmountComponentAtNode(t));return process.env.NODE_ENV!==`production`&&(t.__reactMount__=e),t},l=e=>{let t=()=>{if(!e.overlays)throw TypeError(`Could not show overlay as overlays service is not available.`)};return{openFlyout:(n,r)=>(t(),e.overlays.openFlyout(c((0,s.jsx)(s.Fragment,{children:n})),r)),openModal:(n,r)=>(t(),e.overlays.openModal(c((0,s.jsx)(s.Fragment,{children:n})),r))}},u=e=>{let t=({title:t,body:n,color:r,iconType:i,toastLifeTimeMs:a,onClose:o})=>{if(!e.notifications)throw TypeError(`Could not show notification as notifications service is not available.`);e.notifications.toasts.add({title:c(t),text:c((0,s.jsx)(s.Fragment,{children:n||null})),color:r,iconType:i,toastLifeTimeMs:a,onClose:o})};return{toasts:{show:t,success:e=>t({color:`success`,iconType:`check`,...e}),warning:e=>t({color:`warning`,iconType:`help`,...e}),danger:e=>t({color:`danger`,iconType:`alert`,...e})}}};var{useMemo:d,useContext:f,createElement:p,createContext:m}=i,h={services:{},overlays:l({}),notifications:u({})};const g=m(h),_=()=>f(g),v=e=>t=>{let n=_();return i.createElement(e,{...t,kibana:n})},y=e=>({value:{services:e,overlays:l(e),notifications:u(e)},Provider:({services:t={},children:n})=>{let r=_(),{value:i}=d(()=>y({...e,...r.services,...t}),[e,r,t]);return p(g.Provider,{value:i,children:n})},Consumer:g.Consumer}),{Provider:b}=y({});var x=e.a(n.t(),1),S={iconType:`questionInCircle`,color:`gray`};const C={boolean:{iconType:`tokenBoolean`},conflict:{iconType:`alert`,color:`euiVisColor9`},date:{iconType:`tokenDate`},geo_point:{iconType:`tokenGeo`},geo_shape:{iconType:`tokenGeo`},ip:{iconType:`tokenIP`},murmur3:{iconType:`tokenFile`},number:{iconType:`tokenNumber`},_source:{iconType:`editorCodeBlock`,color:`gray`},string:{iconType:`tokenString`},nested:{iconType:`tokenNested`}};function w({type:e,label:t,size:n=`s`,scripted:r,className:i,...o}){return(0,s.jsx)(a.EuiToken,{...C[e]||S,className:(0,x.default)(`kbnFieldIcon`,i),"aria-label":t||e,title:t||e,size:n,fill:r?`dark`:void 0,...o})}var T=e.a(n.t(),1),E={s:`kbnFieldButton--small`,m:null};const D=Object.keys(E);function O({size:e=`m`,isActive:t=!1,fieldIcon:n,fieldName:r,fieldInfoIcon:i,fieldAction:a,className:o,isDraggable:c=!1,onClick:l,dataTestSubj:u,buttonProps:d,...f}){let p=(0,T.default)(`kbnFieldButton`,e?E[e]:null,{"kbnFieldButton-isActive":t},{"kbnFieldButton--isDraggable":c},o),m=(0,T.default)(`kbn-resetFocusState`,`kbnFieldButton__button`),h=(0,s.jsxs)(s.Fragment,{children:[n&&(0,s.jsx)(`span`,{className:`kbnFieldButton__fieldIcon`,children:n}),r&&(0,s.jsx)(`span`,{className:`kbnFieldButton__name`,children:r}),i&&(0,s.jsx)(`div`,{className:`kbnFieldButton__infoIcon`,children:i})]});return(0,s.jsxs)(`div`,{className:p,...f,children:[l?(0,s.jsx)(`button`,{onClick:e=>{e.type===`click`&&e.currentTarget.focus(),l()},"data-test-subj":u,className:m,...d,children:h}):(0,s.jsx)(`div`,{className:m,"data-test-subj":u,children:h}),a&&(0,s.jsx)(`div`,{className:`kbnFieldButton__fieldAction`,children:a})]})}var k=t.t(),A=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],j=Array(64),M=class{_a;_b;_c;_d;_e;_f;_g;_h;_block;_finalSize;_blockSize;_len;_s;_w;constructor(){this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this._w=j,this._block=Buffer.alloc(64),this._finalSize=56,this._blockSize=64,this._len=0,this._s=0}update(e,t){typeof e==`string`&&(t||=`utf8`,e=Buffer.from(e,t));let n=this._len+=e.length,r=this._s||0,i=0,a=this._block;for(;r<n;){let t=Math.min(e.length,i+this._blockSize-r%this._blockSize)-i;for(let n=0;n<t;n++)a[r%this._blockSize+n]=e[n+i];r+=t,i+=t,r%this._blockSize===0&&this._update(a)}return this._s=r,this}digest(e){let t=this._len*8;return this._block[this._len%this._blockSize]=128,this._block.fill(0,this._len%this._blockSize+1),t%(this._blockSize*8)>=this._finalSize*8&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(t,this._blockSize-4),this._update(this._block),this._hash().toString(e)}_update(e){let t=this._w,n=this._a|0,r=this._b|0,i=this._c|0,a=this._d|0,o=this._e|0,s=this._f|0,c=this._g|0,l=this._h|0,u;for(u=0;u<16;++u)t[u]=e.readInt32BE(u*4);for(;u<64;++u)t[u]=R(t[u-2])+t[u-7]+L(t[u-15])+t[u-16]|0;for(let e=0;e<64;++e){let u=l+I(o)+N(o,s,c)+A[e]+t[e]|0,d=F(n)+P(n,r,i)|0;l=c,c=s,s=o,o=a+u|0,a=i,i=r,r=n,n=u+d|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0,this._f=s+this._f|0,this._g=c+this._g|0,this._h=l+this._h|0}_hash(){let e=Buffer.alloc(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e}};function N(e,t,n){return n^e&(t^n)}function P(e,t,n){return e&t|n&(e|t)}function F(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function I(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function L(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function R(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}var z=t.t(),B=class e{static PERSISTED_INDEX_KEY=`kbn.hashedItemsIndex.v1`;storage;constructor(e){this.storage=e}setItem(e,t){let n=this.persistItem(e,t);return n&&this.touchHash(e),n}getItem(e){let t=this.storage.getItem(e);return t!==null&&this.touchHash(e),t}removeItem(e){let t=this.getIndexedItems(),n=this.storage.getItem(e),r=this.getIndexedItem(e,t);return r&&((0,z.pull)(t,r),this.setIndexedItems(t)),n&&this.storage.removeItem(e),n||null}clear(){this.getIndexedItems().forEach(({hash:e})=>{this.storage.removeItem(e)}),this.setIndexedItems([])}ensuredSorting=!1;getIndexedItems(){let t=this.storage.getItem(e.PERSISTED_INDEX_KEY),n=t&&JSON.parse(t)||[];return this.ensuredSorting||=(n=(0,z.sortBy)(n,`touched`),this.setIndexedItems(n),!0),n}setIndexedItems(t){this.storage.setItem(e.PERSISTED_INDEX_KEY,JSON.stringify(t))}getIndexedItem(e,t=this.getIndexedItems()){return t.find(t=>t.hash===e)}persistItem(e,t){try{return this.storage.setItem(e,t),!0}catch{return this.getIndexedItems().length===0?!1:(this.removeOldestItem(),this.persistItem(e,t))}}removeOldestItem(){let e=this.getIndexedItems(),t=e.shift();t&&(this.storage.removeItem(t.hash),this.setIndexedItems(e))}touchHash(e){let t=this.getIndexedItems(),n=this.getIndexedItem(e,t)||{hash:e};n.touched=Date.now(),(0,z.pull)(t,n),t.push(n),this.setIndexedItems(t)}};const V=new B(window.sessionStorage);var H=`h@`;function U(e,t){if(typeof e!=`string`)throw Error(`createHash only accepts strings (JSON).`);let n=new M().update(e,`utf8`).digest(`hex`),r;for(let i=7;i<n.length;i++){r=n.slice(0,i);let a=t?t(r):V.getItem(r);if(a===null||a===e)break}return`${H}${r}`}function W(e){return String(e).indexOf(H)===0}function ee(e){let t=V.getItem(e),n=()=>{throw Error(`Unable to completely restore the URL, be sure to use the share functionality.`)};if(t===null)return n();try{return JSON.parse(t)}catch{return n()}}function te(e){let t=JSON.stringify(e),n=U(t);if(V.setItem(n,t))return n;throw Error(`Kibana is unable to store history items in your session because it is full and there don't seem to be items any items safe to delete.
2
+
3
+ This can usually be fixed by moving to a fresh tab, but could be caused by a larger issue. If you are seeing this message regularly, please file an issue at https://github.com/elastic/kibana/issues.`)}var ne=e.t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define([],r):n.rison=r()})(typeof self<`u`?self:e,function(){var e={};return e.uri_ok={"~":!0,"!":!0,"*":!0,"(":!0,")":!0,"-":!0,_:!0,".":!0,",":!0,":":!0,"@":!0,$:!0,"'":!0,"/":!0},(function(){for(var t=[],n=0;n<16;n++)for(var r=0;r<16;r++)if(n+r!==0){var i=String.fromCharCode(n*16+r);/\w|[-_./~]/.test(i)||t.push(`\\u00`+n.toString(16)+r.toString(16))}e.not_idchar=t.join(``)})(),e.not_idchar=` '!:(),*@$`,e.not_idstart=`-0123456789`,(function(){var t=`[^`+e.not_idstart+e.not_idchar+`][^`+e.not_idchar+`]*`;e.id_ok=RegExp(`^`+t+`$`),e.next_id=new RegExp(t,`g`)})(),e.quote=function(e){return/^[-A-Za-z0-9~!*()_.',:@$/]*$/.test(e)?e:encodeURIComponent(e).replace(/%2C/g,`,`).replace(/%3A/g,`:`).replace(/%40/g,`@`).replace(/%24/g,`$`).replace(/%2F/g,`/`).replace(/%20/g,`+`)},e.unquote=function(e){return decodeURIComponent(e.replace(/\+/g,`%20`))},(function(){var t={"'":!0,"!":!0},n=function(e){e&&typeof e.toJSON==`function`&&(e=e.toJSON());var t=r[typeof e];if(t)return t(e)},r={array:function(e){var t=[`!(`],r,i,a=e.length,o;for(i=0;i<a;i+=1)o=n(e[i]),typeof o==`string`&&(r&&(t[t.length]=`,`),t[t.length]=o,r=!0);return t[t.length]=`)`,t.join(``)},boolean:function(e){return e?`!t`:`!f`},null:function(){return`!n`},number:function(e){return isFinite(e)?String(e).replace(/\+/,``):`!n`},object:function(e){if(e){if(e instanceof Array)return r.array(e);if(typeof e.__prototype__==`object`&&e.__prototype__.encode_rison!==void 0)return e.encode_rison();var t=[`(`],i,a,o,s,c,l=[];for(a in e)l[l.length]=a;for(l.sort(),c=0;c<l.length;c++)a=l[c],o=n(e[a]),typeof o==`string`&&(i&&(t[t.length]=`,`),s=!isFinite(a)||isNaN(parseInt(a))?r.string(a):r.number(a),t.push(s,`:`,o),i=!0);return t[t.length]=`)`,t.join(``)}return`!n`},string:function(n){return n===``?`''`:e.id_ok.test(n)?n:(n=n.replace(/(['!])/g,function(e,n){return t[n]?`!`+n:n}),`'`+n+`'`)},undefined:function(){}};e.encode=function(e){return n(e)},e.encode_object=function(e){if(typeof e!=`object`||!e||e instanceof Array)throw Error(`rison.encode_object expects an object argument`);var t=r[typeof e](e);return t.substring(1,t.length-1)},e.encode_array=function(e){if(!(e instanceof Array))throw Error(`rison.encode_array expects an array argument`);var t=r[typeof e](e);return t.substring(2,t.length-1)},e.encode_uri=function(t){return e.quote(r[typeof t](t))},e.decode_uri=function(t){return e.decode(e.unquote(t))}})(),e.decode=function(t){var n=function(e){throw Error(`rison decoder error: `+e)};return typeof t==`string`?new e.parser(n).parse(t):n(`decode input must be a string`)},e.decode_object=function(t){return e.decode(`(`+t+`)`)},e.decode_array=function(t){return e.decode(`!(`+t+`)`)},e.parser=function(e){this.errorHandler=e},e.parser.WHITESPACE=``,e.parser.prototype.setOptions=function(e){e.errorHandler&&(this.errorHandler=e.errorHandler)},e.parser.prototype.parse=function(t){this.string=t,this.index=0,this.message=null;var n=this.readValue();return!this.message&&this.next()&&(n=this.error(`unable to parse string as rison: '`+e.encode(t)+`'`)),this.message&&this.errorHandler&&this.errorHandler(this.message,this.index),n},e.parser.prototype.error=function(e){typeof console<`u`&&console.log(`rison parser error: `,e),this.message=e},e.parser.prototype.readValue=function(){var t=this.next(),n=t&&this.table[t];if(n)return n.apply(this);var r=this.string,i=this.index-1;e.next_id.lastIndex=i;var a=e.next_id.exec(r);if(a.length>0){var o=a[0];return this.index=i+o.length,o}return t?this.error(`invalid character: '`+t+`'`):this.error(`empty expression`)},e.parser.parse_array=function(e){for(var t=[],n;(n=e.next())!==`)`;){if(!n)return e.error(`unmatched '!('`);if(t.length)n!==`,`&&e.error(`missing ','`);else if(n===`,`)return e.error(`extra ','`);else --e.index;var r=e.readValue();if(r===void 0)return;t.push(r)}return t},e.parser.bangs={t:!0,f:!1,n:null,"(":e.parser.parse_array},e.parser.prototype.table={"!":function(){var t=this.string.charAt(this.index++);if(!t)return this.error(`"!" at end of input`);var n=e.parser.bangs[t];return typeof n==`function`?n.call(null,this):n===void 0?this.error(`unknown literal: "!`+t+`"`):n},"(":function(){for(var e={},t,n=0;(t=this.next())!==`)`;){if(n)t!==`,`&&this.error(`missing ','`);else if(t===`,`)return this.error(`extra ','`);else --this.index;var r=this.readValue();if(r===void 0)return;if(this.next()!==`:`)return this.error(`missing ':'`);var i=this.readValue();if(i===void 0)return;e[r]=i,n++}return e},"'":function(){for(var e=this.string,t=this.index,n=t,r=[],i;(i=e.charAt(t++))!==`'`;){if(!i)return this.error(`unmatched "'"`);if(i===`!`){if(n<t-1&&r.push(e.slice(n,t-1)),i=e.charAt(t++),`!'`.indexOf(i)>=0)r.push(i);else return this.error(`invalid string escape: "!`+i+`"`);n=t}}return n<t-1&&r.push(e.slice(n,t-1)),this.index=t,r.length===1?r[0]:r.join(``)},"-":function(){var e=this.string,t=this.index,n=t-1,r=`int`,i=`-`,a={"int+.":`frac`,"int+e":`exp`,"frac+e":`exp`};do{var o=e.charAt(t++);if(!o)break;if(`0`<=o&&o<=`9`)continue;if(i.indexOf(o)>=0){i=``;continue}r=a[r+`+`+o.toLowerCase()],r===`exp`&&(i=`-`)}while(r);return this.index=--t,e=e.slice(n,t),e===`-`?this.error(`invalid number`):Number(e)}},(function(e){for(var t=0;t<=9;t++)e[String(t)]=e[`-`]})(e.parser.prototype.table),e.parser.prototype.next=function(){var t,n=this.string,r=this.index;do{if(r===n.length)return;t=n.charAt(r++)}while(e.parser.WHITESPACE.indexOf(t)>=0);return this.index=r,t},e})})),re=e.a(ne(),1);function ie(e){return W(e)?ee(e):re.default.decode(e)}function ae(e,t){return t?te(e):re.default.encode(e)}function G(e){return W(e)?ae(ee(e),!1):e}function K(e){return W(e)?e:te(ie(e))}var q=e.t(((e,t)=>{(function(n){var r=typeof e==`object`&&e&&!e.nodeType&&e,i=typeof t==`object`&&t&&!t.nodeType&&t,a=typeof global==`object`&&global;(a.global===a||a.window===a||a.self===a)&&(n=a);var o,s=2147483647,c=36,l=1,u=26,d=38,f=700,p=72,m=128,h=`-`,g=/^xn--/,_=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},b=c-l,x=Math.floor,S=String.fromCharCode,C;function w(e){throw RangeError(y[e])}function T(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(v,`.`);var i=T(e.split(`.`),t).join(`.`);return r+i}function D(e){for(var t=[],n=0,r=e.length,i,a;n<r;)i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<r?(a=e.charCodeAt(n++),(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)):t.push(i);return t}function O(e){return T(e,function(e){var t=``;return e>65535&&(e-=65536,t+=S(e>>>10&1023|55296),e=56320|e&1023),t+=S(e),t}).join(``)}function k(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:c}function A(e,t){return e+22+75*(e<26)-((t!=0)<<5)}function j(e,t,n){var r=0;for(e=n?x(e/f):e>>1,e+=x(e/t);e>b*u>>1;r+=c)e=x(e/b);return x(r+(b+1)*e/(e+d))}function M(e){var t=[],n=e.length,r,i=0,a=m,o=p,d=e.lastIndexOf(h),f,g,_,v,y,b,S,C;for(d<0&&(d=0),f=0;f<d;++f)e.charCodeAt(f)>=128&&w(`not-basic`),t.push(e.charCodeAt(f));for(g=d>0?d+1:0;g<n;){for(_=i,v=1,y=c;g>=n&&w(`invalid-input`),b=k(e.charCodeAt(g++)),(b>=c||b>x((s-i)/v))&&w(`overflow`),i+=b*v,S=y<=o?l:y>=o+u?u:y-o,!(b<S);y+=c)C=c-S,v>x(s/C)&&w(`overflow`),v*=C;r=t.length+1,o=j(i-_,r,_==0),x(i/r)>s-a&&w(`overflow`),a+=x(i/r),i%=r,t.splice(i++,0,a)}return O(t)}function N(e){var t,n,r,i,a,o,d,f,g,_,v,y=[],b,C,T,E;for(e=D(e),b=e.length,t=m,n=0,a=p,o=0;o<b;++o)v=e[o],v<128&&y.push(S(v));for(r=i=y.length,i&&y.push(h);r<b;){for(d=s,o=0;o<b;++o)v=e[o],v>=t&&v<d&&(d=v);for(C=r+1,d-t>x((s-n)/C)&&w(`overflow`),n+=(d-t)*C,t=d,o=0;o<b;++o)if(v=e[o],v<t&&++n>s&&w(`overflow`),v==t){for(f=n,g=c;_=g<=a?l:g>=a+u?u:g-a,!(f<_);g+=c)E=f-_,T=c-_,y.push(S(A(_+E%T,0))),f=x(E/T);y.push(S(A(f,0))),a=j(n,C,r==i),n=0,++r}++n,++t}return y.join(``)}function P(e){return E(e,function(e){return g.test(e)?M(e.slice(4).toLowerCase()):e})}function F(e){return E(e,function(e){return _.test(e)?`xn--`+N(e):e})}if(o={version:`1.4.1`,ucs2:{decode:D,encode:O},decode:M,encode:N,toASCII:F,toUnicode:P},typeof define==`function`&&typeof define.amd==`object`&&define.amd)define(`punycode`,function(){return o});else if(r&&i)if(t.exports==r)i.exports=o;else for(C in o)o.hasOwnProperty(C)&&(r[C]=o[C]);else n.punycode=o})(e)})),J=e.t(((e,t)=>{t.exports=TypeError})),oe=e.t(((e,t)=>{t.exports={}})),Y=e.t(((e,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype?WeakMap.prototype.has:null,d=typeof WeakSet==`function`&&WeakSet.prototype?WeakSet.prototype.has:null,f=typeof WeakRef==`function`&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,_=String.prototype.slice,v=String.prototype.replace,y=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,w=Array.prototype.slice,T=Math.floor,E=typeof BigInt==`function`?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,O=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,k=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,A=typeof Symbol==`function`&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||`symbol`)?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,M=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),a=_.call(t,i.length+1);return v.call(i,n,`$&_`)+`.`+v.call(v.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return v.call(t,n,`$&_`)}var P=oe(),F=P.custom,I=ie(F)?F:null,L={__proto__:null,double:`"`,single:`'`},R={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(K(s,`quoteStyle`)&&!K(L,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(K(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=K(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(K(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(K(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return pe(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?N(t,f):f}if(typeof t==`bigint`){var m=String(t)+`n`;return d?N(t,m):m}var h=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=h&&h>0&&typeof t==`object`)return H(t)?`[Array]`:`[Object]`;var g=ve(s,r);if(o===void 0)o=[];else if(Y(o,t)>=0)return`[Circular]`;function y(t,n,i){if(n&&(o=w.call(o),o.push(n)),i){var a={depth:s.depth};return K(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!W(t)){var x=J(t),T=Z(t,y);return`[Function`+(x?`: `+x:` (anonymous)`)+`]`+(T.length>0?` { `+C.call(T,`, `)+` }`:``)}if(ie(t)){var D=k?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):O.call(t);return typeof t==`object`&&!k?X(D):D}if(fe(t)){for(var F=`<`+b.call(String(t.nodeName)),R=t.attributes||[],V=0;V<R.length;V++)F+=` `+R[V].name+`=`+z(B(R[V].value),`double`,s);return F+=`>`,t.childNodes&&t.childNodes.length&&(F+=`...`),F+=`</`+b.call(String(t.nodeName))+`>`,F}if(H(t)){if(t.length===0)return`[]`;var G=Z(t,y);return g&&!_e(G)?`[`+ye(G,g)+`]`:`[ `+C.call(G,`, `)+` ]`}if(ee(t)){var oe=Z(t,y);return!(`cause`in Error.prototype)&&`cause`in t&&!j.call(t,`cause`)?`{ [`+String(t)+`] `+C.call(S.call(`[cause]: `+y(t.cause),oe),`, `)+` }`:oe.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+C.call(oe,`, `)+` }`}if(typeof t==`object`&&u){if(I&&typeof t[I]==`function`&&P)return P(t,{depth:h-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(se(t)){var me=[];return a&&a.call(t,function(e,n){me.push(y(n,t,!0)+` => `+y(e,t))}),ge(`Map`,i.call(t),me,g)}if(ue(t)){var be=[];return l&&l.call(t,function(e){be.push(y(e,t))}),ge(`Set`,c.call(t),be,g)}if(ce(t))return he(`WeakMap`);if(de(t))return he(`WeakSet`);if(le(t))return he(`WeakRef`);if(ne(t))return X(y(Number(t)));if(ae(t))return X(y(E.call(t)));if(re(t))return X(p.call(t));if(te(t))return X(y(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!U(t)&&!W(t)){var xe=Z(t,y),Se=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,Ce=t instanceof Object?``:`null prototype`,we=!Se&&A&&Object(t)===t&&A in t?_.call(q(t),8,-1):Ce?`Object`:``,Te=(Se||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``)+(we||Ce?`[`+C.call(S.call([],we||[],Ce||[]),`: `)+`] `:``);return xe.length===0?Te+`{}`:g?Te+`{`+ye(xe,g)+`}`:Te+`{ `+C.call(xe,`, `)+` }`}return String(t)};function z(e,t,n){var r=L[n.quoteStyle||t];return r+e+r}function B(e){return v.call(String(e),/"/g,`&quot;`)}function V(e){return!A||!(typeof e==`object`&&(A in e||e[A]!==void 0))}function H(e){return q(e)===`[object Array]`&&V(e)}function U(e){return q(e)===`[object Date]`&&V(e)}function W(e){return q(e)===`[object RegExp]`&&V(e)}function ee(e){return q(e)===`[object Error]`&&V(e)}function te(e){return q(e)===`[object String]`&&V(e)}function ne(e){return q(e)===`[object Number]`&&V(e)}function re(e){return q(e)===`[object Boolean]`&&V(e)}function ie(e){if(k)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!O)return!1;try{return O.call(e),!0}catch{}return!1}function ae(e){if(!e||typeof e!=`object`||!E)return!1;try{return E.call(e),!0}catch{}return!1}var G=Object.prototype.hasOwnProperty||function(e){return e in this};function K(e,t){return G.call(e,t)}function q(e){return m.call(e)}function J(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Y(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function se(e){if(!i||!e||typeof e!=`object`)return!1;try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function ce(e){if(!u||!e||typeof e!=`object`)return!1;try{u.call(e,u);try{d.call(e,d)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function le(e){if(!f||!e||typeof e!=`object`)return!1;try{return f.call(e),!0}catch{}return!1}function ue(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function de(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{u.call(e,u)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function fe(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function pe(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return pe(_.call(e,0,t.maxStringLength),t)+r}var i=R[t.quoteStyle||`single`];return i.lastIndex=0,z(v.call(v.call(e,i,`\\$1`),/[\x00-\x1f]/g,me),`single`,t)}function me(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+y.call(t.toString(16))}function X(e){return`Object(`+e+`)`}function he(e){return e+` { ? }`}function ge(e,t,n,r){var i=r?ye(n,r):C.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function _e(e){for(var t=0;t<e.length;t++)if(Y(e[t],`
4
+ `)>=0)return!1;return!0}function ve(e,t){var n;if(e.indent===` `)n=` `;else if(typeof e.indent==`number`&&e.indent>0)n=C.call(Array(e.indent+1),` `);else return null;return{base:n,prev:C.call(Array(t+1),n)}}function ye(e,t){if(e.length===0)return``;var n=`
5
+ `+t.prev+t.base;return n+C.call(e,`,`+n)+`
6
+ `+t.prev}function Z(e,t){var n=H(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=K(e,i)?t(e[i],e):``}var a=typeof D==`function`?D(e):[],o;if(k){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e)K(e,c)&&(n&&String(Number(c))===c&&c<e.length||k&&o[`$`+c]instanceof Symbol||(x.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))));if(typeof D==`function`)for(var l=0;l<a.length;l++)j.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}})),se=e.t(((e,t)=>{var n=Y(),r=J(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=e&&e.next,r=c(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}})),ce=e.t(((e,t)=>{t.exports=Object})),le=e.t(((e,t)=>{t.exports=Error})),ue=e.t(((e,t)=>{t.exports=EvalError})),de=e.t(((e,t)=>{t.exports=RangeError})),fe=e.t(((e,t)=>{t.exports=ReferenceError})),pe=e.t(((e,t)=>{t.exports=SyntaxError})),me=e.t(((e,t)=>{t.exports=URIError})),X=e.t(((e,t)=>{t.exports=Math.abs})),he=e.t(((e,t)=>{t.exports=Math.floor})),ge=e.t(((e,t)=>{t.exports=Math.max})),_e=e.t(((e,t)=>{t.exports=Math.min})),ve=e.t(((e,t)=>{t.exports=Math.pow})),ye=e.t(((e,t)=>{t.exports=Math.round})),Z=e.t(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),be=e.t(((e,t)=>{var n=Z();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),xe=e.t(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),Se=e.t(((e,t)=>{var n=xe();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),Ce=e.t(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),we=e.t(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),Te=e.t(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=we();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),Ee=e.t(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),De=e.t(((e,t)=>{t.exports=ce().getPrototypeOf||null})),Oe=e.t(((e,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}})),ke=e.t(((e,t)=>{var n=Oe();t.exports=Function.prototype.bind||n})),Ae=e.t(((e,t)=>{t.exports=Function.prototype.call})),je=e.t(((e,t)=>{t.exports=Function.prototype.apply})),Me=e.t(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),Ne=e.t(((e,t)=>{var n=ke(),r=je(),i=Ae();t.exports=Me()||n.call(i,r)})),Pe=e.t(((e,t)=>{var n=ke(),r=J(),i=Ae(),a=Ne();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),Fe=e.t(((e,t)=>{var n=Pe(),r=Se(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1})),Ie=e.t(((e,t)=>{var n=Ee(),r=De(),i=Fe();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),Le=e.t(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=ke().call(n,r)})),Re=e.t(((e,t)=>{var n,r=ce(),i=le(),a=ue(),o=de(),s=fe(),c=pe(),l=J(),u=me(),d=X(),f=he(),p=ge(),m=_e(),h=ve(),g=ye(),_=be(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=Se(),x=Ce(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=Te()(),T=Ie(),E=De(),D=Ee(),O=je(),k=Ae(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},P={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},F=ke(),I=Le(),L=F.call(k,Array.prototype.concat),R=F.call(O,Array.prototype.splice),z=F.call(k,String.prototype.replace),B=F.call(k,String.prototype.slice),V=F.call(k,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,W=function(e){var t=B(e,0,1),n=B(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return z(e,H,function(e,t,n,i){r[r.length]=n?z(i,U,`$1`):t||e}),r},ee=function(e,t){var n=e,r;if(I(P,n)&&(r=P[n],n=`%`+r[0]+`%`),I(M,n)){var i=M[n];if(i===A&&(i=N(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(V(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=W(e),r=n.length>0?n[0]:``,i=ee(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],R(n,L([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=B(p,0,1),h=B(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,I(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=I(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),ze=e.t(((e,t)=>{var n=Re(),r=Pe(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),Be=e.t(((e,t)=>{var n=Re(),r=ze(),i=Y(),a=J(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}})),Ve=e.t(((e,t)=>{var n=Re(),r=ze(),i=Y(),a=Be(),o=J(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a})),He=e.t(((e,t)=>{var n=J(),r=Y(),i=se(),a=Be(),o=Ve()||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=o(),e.set(t,n)}};return t}})),Ue=e.t(((e,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}})),We=e.t(((e,t)=>{var n=Ue(),r=He(),i=Object.prototype.hasOwnProperty,a=Array.isArray,o=r(),s=function(e,t){return o.set(e,t),e},c=function(e){return o.has(e)},l=function(e){return o.get(e)},u=function(e,t){o.set(e,t)},d=function(){for(var e=[],t=0;t<256;++t)e.push(`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase());return e}(),f=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],i=0;i<n.length;++i)n[i]!==void 0&&r.push(n[i]);t.obj[t.prop]=r}}},p=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},m=function e(t,n,r){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(a(t))t.push(n);else if(t&&typeof t==`object`)if(c(t)){var o=l(t)+1;t[o]=n,u(t,o)}else (r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`){if(c(n)){for(var d=Object.keys(n),f=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},m=0;m<d.length;m++){var h=parseInt(d[m],10);f[h+1]=n[d[m]]}return s(f,l(n)+1)}return[t].concat(n)}var g=t;return a(t)&&!a(n)&&(g=p(t,r)),a(t)&&a(n)?(n.forEach(function(n,a){if(i.call(t,a)){var o=t[a];o&&typeof o==`object`&&n&&typeof n==`object`?t[a]=e(o,n,r):t.push(n)}else t[a]=n}),t):Object.keys(n).reduce(function(t,a){var o=n[a];return i.call(t,a)?t[a]=e(t[a],o,r):t[a]=o,t},g)},h=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},g=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},_=1024;t.exports={arrayToObject:p,assign:h,combine:function(e,t,n,r){if(c(e)){var i=l(e)+1;return e[i]=t,u(e,i),e}var a=[].concat(e,t);return a.length>n?s(p(a,{plainObjects:r}),a.length-1):a},compact:function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],o=Object.keys(a),s=0;s<o.length;++s){var c=o[s],l=a[c];typeof l==`object`&&l&&n.indexOf(l)===-1&&(t.push({obj:a,prop:c}),n.push(l))}return f(t),e},decode:g,encode:function(e,t,r,i,a){if(e.length===0)return e;var o=e;if(typeof e==`symbol`?o=Symbol.prototype.toString.call(e):typeof e!=`string`&&(o=String(e)),r===`iso-8859-1`)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var s=``,c=0;c<o.length;c+=_){for(var l=o.length>=_?o.slice(c,c+_):o,u=[],f=0;f<l.length;++f){var p=l.charCodeAt(f);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||a===n.RFC1738&&(p===40||p===41)){u[u.length]=l.charAt(f);continue}if(p<128){u[u.length]=d[p];continue}if(p<2048){u[u.length]=d[192|p>>6]+d[128|p&63];continue}if(p<55296||p>=57344){u[u.length]=d[224|p>>12]+d[128|p>>6&63]+d[128|p&63];continue}f+=1,p=65536+((p&1023)<<10|l.charCodeAt(f)&1023),u[u.length]=d[240|p>>18]+d[128|p>>12&63]+d[128|p>>6&63]+d[128|p&63]}s+=u.join(``)}return s},isBuffer:function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:c,isRegExp:function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:m}})),Ge=e.t(((e,t)=>{var n=He(),r=We(),i=Ue(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E))return g?[S(C?i:g(i,f.encoder,w,`key`,x))+`=`+S(g(E,f.encoder,w,`value`,x))]:[S(i)+`=`+S(String(E))];var j=[];if(E===void 0)return j;var M;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),M=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))M=_;else{var N=Object.keys(E);M=v?N.sort(v):N}var P=h?String(i).replace(/\./g,`%2E`):String(i),F=o&&s(E)&&E.length===1?P+`[]`:P;if(c&&s(E)&&E.length===0)return F+`[]`;for(var I=0;I<M.length;++I){var L=M[I],R=typeof L==`object`&&L&&L.value!==void 0?L.value:E[L];if(!(d&&R===null)){var z=y&&h?String(L).replace(/\./g,`%2E`):String(L),B=s(E)?typeof a==`function`?a(F,z):F:F+(y?`.`+z:`[`+z+`]`);T.set(t,O);var V=n();V.set(m,T),l(j,e(R,B,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,V))}}return j},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat;if(`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}})),Ke=e.t(((e,t)=>{var n=We(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;if(y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),b!==null&&(x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)}))),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x),b!==null){var S=r.call(u,b);S&&t.duplicates===`combine`?u[b]=n.combine(u[b],x,t.arrayLimit,t.plainObjects):(!S||t.duplicates===`last`)&&(u[b]=x)}}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=n.isOverflow(c)?c:r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c,r.arrayLimit,r.plainObjects);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e;if(t.depth<=0)return!t.plainObjects&&r.call(Object.prototype,n)&&!t.allowPrototypes?void 0:[n];var i=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,o=i.exec(n),s=o?n.slice(0,o.index):n,c=[];if(s){if(!t.plainObjects&&r.call(Object.prototype,s)&&!t.allowPrototypes)return;c.push(s)}for(var l=0;(o=a.exec(n))!==null&&l<t.depth;){l+=1;var u=o[1].slice(1,-1);if(!t.plainObjects&&r.call(Object.prototype,u)&&!t.allowPrototypes)return;c.push(o[1])}if(o){if(t.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+t.depth+` and strictDepth is true`);c.push(`[`+n.slice(o.index)+`]`)}return c},p=function(e,t,n,r){if(e){var i=f(e,n);if(i)return d(i,t,n,r)}},m=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);return{allowDots:e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=m(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=p(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}})),qe=e.t(((e,t)=>{var n=Ge(),r=Ke();t.exports={formats:Ue(),parse:r,stringify:n}})),Je=e.t((e=>{var t=q();function n(){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}var r=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,o=[`'`,`{`,`}`,`|`,`\\`,`^`,"`",`<`,`>`,`"`,"`",` `,`\r`,`
7
+ `,` `],s=[`%`,`/`,`?`,`;`,`#`].concat(o),c=[`/`,`?`,`#`],l=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},p={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},h=qe();function g(e,t,r){if(e&&typeof e==`object`&&e instanceof n)return e;var i=new n;return i.parse(e,t,r),i}n.prototype.parse=function(e,n,i){if(typeof e!=`string`)throw TypeError(`Parameter 'url' must be a string, not `+typeof e);var g=e.indexOf(`?`),_=g!==-1&&g<e.indexOf(`#`)?`?`:`#`,v=e.split(_);v[0]=v[0].replace(/\\/g,`/`),e=v.join(_);var y=e;if(y=y.trim(),!i&&e.split(`#`).length===1){var b=a.exec(y);if(b)return this.path=y,this.href=y,this.pathname=b[1],b[2]?(this.search=b[2],n?this.query=h.parse(this.search.substr(1)):this.query=this.search.substr(1)):n&&(this.search=``,this.query={}),this}var x=r.exec(y);if(x){x=x[0];var S=x.toLowerCase();this.protocol=S,y=y.substr(x.length)}if(i||x||y.match(/^\/\/[^@/]+@[^@/]+/)){var C=y.substr(0,2)===`//`;C&&!(x&&p[x])&&(y=y.substr(2),this.slashes=!0)}if(!p[x]&&(C||x&&!m[x])){for(var w=-1,T=0;T<c.length;T++){var E=y.indexOf(c[T]);E!==-1&&(w===-1||E<w)&&(w=E)}var D,O=w===-1?y.lastIndexOf(`@`):y.lastIndexOf(`@`,w);O!==-1&&(D=y.slice(0,O),y=y.slice(O+1),this.auth=decodeURIComponent(D)),w=-1;for(var T=0;T<s.length;T++){var E=y.indexOf(s[T]);E!==-1&&(w===-1||E<w)&&(w=E)}w===-1&&(w=y.length),this.host=y.slice(0,w),y=y.slice(w),this.parseHost(),this.hostname=this.hostname||``;var k=this.hostname[0]===`[`&&this.hostname[this.hostname.length-1]===`]`;if(!k)for(var A=this.hostname.split(/\./),T=0,j=A.length;T<j;T++){var M=A[T];if(M&&!M.match(u)){for(var N=``,P=0,F=M.length;P<F;P++)M.charCodeAt(P)>127?N+=`x`:N+=M[P];if(!N.match(u)){var I=A.slice(0,T),L=A.slice(T+1),R=M.match(d);R&&(I.push(R[1]),L.unshift(R[2])),L.length&&(y=`/`+L.join(`.`)+y),this.hostname=I.join(`.`);break}}}this.hostname.length>l?this.hostname=``:this.hostname=this.hostname.toLowerCase(),k||(this.hostname=t.toASCII(this.hostname));var z=this.port?`:`+this.port:``;this.host=(this.hostname||``)+z,this.href+=this.host,k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),y[0]!==`/`&&(y=`/`+y))}if(!f[S])for(var T=0,j=o.length;T<j;T++){var B=o[T];if(y.indexOf(B)!==-1){var V=encodeURIComponent(B);V===B&&(V=escape(B)),y=y.split(B).join(V)}}var H=y.indexOf(`#`);H!==-1&&(this.hash=y.substr(H),y=y.slice(0,H));var U=y.indexOf(`?`);if(U===-1?n&&(this.search=``,this.query={}):(this.search=y.substr(U),this.query=y.substr(U+1),n&&(this.query=h.parse(this.query)),y=y.slice(0,U)),y&&(this.pathname=y),m[S]&&this.hostname&&!this.pathname&&(this.pathname=`/`),this.pathname||this.search){var z=this.pathname||``;this.path=z+(this.search||``)}return this.href=this.format(),this};function _(e){return typeof e==`string`&&(e=g(e)),e instanceof n?e.format():n.prototype.format.call(e)}n.prototype.format=function(){var e=this.auth||``;e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,`:`),e+=`@`);var t=this.protocol||``,n=this.pathname||``,r=this.hash||``,i=!1,a=``;this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(`:`)===-1?this.hostname:`[`+this.hostname+`]`),this.port&&(i+=`:`+this.port)),this.query&&typeof this.query==`object`&&Object.keys(this.query).length&&(a=h.stringify(this.query,{arrayFormat:`repeat`,addQueryPrefix:!1}));var o=this.search||a&&`?`+a||``;return t&&t.substr(-1)!==`:`&&(t+=`:`),this.slashes||(!t||m[t])&&i!==!1?(i=`//`+(i||``),n&&n.charAt(0)!==`/`&&(n=`/`+n)):i||=``,r&&r.charAt(0)!==`#`&&(r=`#`+r),o&&o.charAt(0)!==`?`&&(o=`?`+o),n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),o=o.replace(`#`,`%23`),t+i+n+o+r};function v(e,t){return g(e,!1,!0).resolve(t)}n.prototype.resolve=function(e){return this.resolveObject(g(e,!1,!0)).format()},n.prototype.resolveObject=function(e){if(typeof e==`string`){var t=new n;t.parse(e,!1,!0),e=t}for(var r=new n,i=Object.keys(this),a=0;a<i.length;a++){var o=i[a];r[o]=this[o]}if(r.hash=e.hash,e.href===``)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),c=0;c<s.length;c++){var l=s[c];l!==`protocol`&&(r[l]=e[l])}return m[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname=`/`,r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!m[e.protocol]){for(var u=Object.keys(e),d=0;d<u.length;d++){var f=u[d];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,!e.host&&!p[e.protocol]){for(var h=(e.pathname||``).split(`/`);h.length&&!(e.host=h.shift()););e.host||=``,e.hostname||=``,h[0]!==``&&h.unshift(``),h.length<2&&h.unshift(``),r.pathname=h.join(`/`)}else r.pathname=e.pathname;return r.search=e.search,r.query=e.query,r.host=e.host||``,r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,(r.pathname||r.search)&&(r.path=(r.pathname||``)+(r.search||``)),r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var g=r.pathname&&r.pathname.charAt(0)===`/`,_=e.host||e.pathname&&e.pathname.charAt(0)===`/`,v=_||g||r.host&&e.pathname,y=v,b=r.pathname&&r.pathname.split(`/`)||[],h=e.pathname&&e.pathname.split(`/`)||[],x=r.protocol&&!m[r.protocol];if(x&&(r.hostname=``,r.port=null,r.host&&(b[0]===``?b[0]=r.host:b.unshift(r.host)),r.host=``,e.protocol&&(e.hostname=null,e.port=null,e.host&&(h[0]===``?h[0]=e.host:h.unshift(e.host)),e.host=null),v&&=h[0]===``||b[0]===``),_)r.host=e.host||e.host===``?e.host:r.host,r.hostname=e.hostname||e.hostname===``?e.hostname:r.hostname,r.search=e.search,r.query=e.query,b=h;else if(h.length)b||=[],b.pop(),b=b.concat(h),r.search=e.search,r.query=e.query;else if(e.search!=null){if(x){r.host=b.shift(),r.hostname=r.host;var S=r.host&&r.host.indexOf(`@`)>0?r.host.split(`@`):!1;S&&(r.auth=S.shift(),r.hostname=S.shift(),r.host=r.hostname)}return r.search=e.search,r.query=e.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:``)+(r.search?r.search:``)),r.href=r.format(),r}if(!b.length)return r.pathname=null,r.search?r.path=`/`+r.search:r.path=null,r.href=r.format(),r;for(var C=b.slice(-1)[0],w=(r.host||e.host||b.length>1)&&(C===`.`||C===`..`)||C===``,T=0,E=b.length;E>=0;E--)C=b[E],C===`.`?b.splice(E,1):C===`..`?(b.splice(E,1),T++):T&&(b.splice(E,1),T--);if(!v&&!y)for(;T--;)b.unshift(`..`);v&&b[0]!==``&&(!b[0]||b[0].charAt(0)!==`/`)&&b.unshift(``),w&&b.join(`/`).substr(-1)!==`/`&&b.push(``);var D=b[0]===``||b[0]&&b[0].charAt(0)===`/`;if(x){r.hostname=D?``:b.length?b.shift():``,r.host=r.hostname;var S=r.host&&r.host.indexOf(`@`)>0?r.host.split(`@`):!1;S&&(r.auth=S.shift(),r.hostname=S.shift(),r.host=r.hostname)}return v||=r.host&&b.length,v&&!D&&b.unshift(``),b.length>0?r.pathname=b.join(`/`):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:``)+(r.search?r.search:``)),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.parse=g,e.resolve=v,e.format=_})),Ye=e.t(((e,t)=>{t.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}})),Xe=e.t(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),Ze=e.t(((e,t)=>{var n=`%[a-f0-9]{2}`,r=RegExp(`(`+n+`)|([^%]+?)`,`gi`),i=RegExp(`(`+n+`)+`,`gi`);function a(e,t){try{return[decodeURIComponent(e.join(``))]}catch{}if(e.length===1)return e;t||=1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],a(n),a(r))}function o(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(r)||[],n=1;n<t.length;n++)e=a(t,n).join(``),t=e.match(r)||[];return e}}function s(e){for(var t={"%FE%FF":`��`,"%FF%FE":`��`},n=i.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{var r=o(n[0]);r!==n[0]&&(t[n[0]]=r)}n=i.exec(e)}t[`%C2`]=`�`;for(var a=Object.keys(t),s=0;s<a.length;s++){var c=a[s];e=e.replace(new RegExp(c,`g`),t[c])}return e}t.exports=function(e){if(typeof e!=`string`)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g,` `),decodeURIComponent(e)}catch{return s(e)}}})),Qe=e.t((e=>{var t=Ye(),n=Xe(),r=Ze();function i(e){switch(e.arrayFormat){case`index`:return function(t,n,r){return n===null?[o(t,e),`[`,r,`]`].join(``):[o(t,e),`[`,o(r,e),`]=`,o(n,e)].join(``)};case`bracket`:return function(t,n){return n===null?o(t,e):[o(t,e),`[]=`,o(n,e)].join(``)};default:return function(t,n){return n===null?o(t,e):[o(t,e),`=`,o(n,e)].join(``)}}}function a(e){var t;switch(e.arrayFormat){case`index`:return function(e,n,r){if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,``),!t){r[e]=n;return}r[e]===void 0&&(r[e]={}),r[e][t[1]]=n};case`bracket`:return function(e,n,r){if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,``),t){if(r[e]===void 0){r[e]=[n];return}}else{r[e]=n;return}r[e]=[].concat(r[e],n)};default:return function(e,t,n){if(n[e]===void 0){n[e]=t;return}n[e]=[].concat(n[e],t)}}}function o(e,n){return n.encode?n.strict?t(e):encodeURIComponent(e):e}function s(e){return Array.isArray(e)?e.sort():typeof e==`object`?s(Object.keys(e)).sort(function(e,t){return Number(e)-Number(t)}).map(function(t){return e[t]}):e}function c(e,t){t=n({arrayFormat:`none`},t);var i=a(t),o=Object.create(null);return typeof e!=`string`||(e=e.trim().replace(/^[?#&]/,``),!e)?o:(e.split(`&`).forEach(function(e){var t=e.replace(/\+/g,` `).split(`=`),n=t.shift(),a=t.length>0?t.join(`=`):void 0;a=a===void 0?null:r(a),i(r(n),a,o)}),Object.keys(o).sort().reduce(function(e,t){var n=o[t];return n&&typeof n==`object`&&!Array.isArray(n)?e[t]=s(n):e[t]=n,e},Object.create(null)))}e.parse=c,e.stringify=function(e,t){t=n({encode:!0,strict:!0,arrayFormat:`none`},t),t.sort===!1&&(t.sort=function(){});var r=i(t);return e?Object.keys(e).sort(t.sort).map(function(n){var i=e[n];if(i===void 0)return``;if(i===null)return o(n,t);if(Array.isArray(i)){var a=[];return i.slice().forEach(function(e){e!==void 0&&a.push(r(n,e,a.length))}),a.join(`&`)}return o(n,t)+`=`+o(i,t)}).filter(function(e){return e.length>0}).join(`&`):``}})),$e=Je();const et=e=>(0,$e.parse)(e,!0),tt=e=>{let t=et(e).hash;return t?et(t.slice(1)):null};var nt=Je(),rt=Qe();function it(e,t){let n=et(e),i=tt(e),a=t(i?.query||{}),o=(0,rt.stringify)(r.t.encodeQuery(a),{sort:!1,encode:!1});return(!i||!i.search)&&!o?e:(0,nt.format)({...n,hash:(0,nt.format)({pathname:i?.pathname||``,search:o})})}const at=ut(G),ot=ut(K),st=dt(at),ct=dt(ot);var lt=[`_g`,`_a`,`_s`];function ut(e){return(t,n={hashableParams:lt})=>Object.fromEntries(Object.entries(t||{}).map(([t,r])=>n.hashableParams.includes(t)?[t,e(r)||r]:[t,r]))}function dt(e,t){return n=>it(n,n=>e(n,t))}function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q.apply(null,arguments)}var ft=e.n((()=>{}));ft();var $;(function(e){e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`})($||={});var pt=process.env.NODE_ENV===`production`?function(e){return e}:function(e){return Object.freeze(e)};function mt(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}var ht=`beforeunload`,gt=`hashchange`,_t=`popstate`;function vt(e){e===void 0&&(e={});var t=e.window,n=t===void 0?document.defaultView:t,r=n.history;function i(){var e=Ct(n.location.hash.substr(1)),t=e.pathname,i=t===void 0?`/`:t,a=e.search,o=a===void 0?``:a,s=e.hash,c=s===void 0?``:s,l=r.state||{};return[l.idx,pt({pathname:i,search:o,hash:c,state:l.usr||null,key:l.key||`default`})]}var a=null;function o(){if(a)f.call(a),a=null;else{var e=$.Pop,t=i(),n=t[0],r=t[1];if(f.length)if(n!=null){var o=l-n;o&&(a={action:e,location:r,retry:function(){x(o*-1)}},x(o))}else process.env.NODE_ENV!==`production`&&mt(!1,`You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.`);else v(e)}}n.addEventListener(_t,o),n.addEventListener(gt,function(){var e=i()[1];St(e)!==St(u)&&o()});var s=$.Pop,c=i(),l=c[0],u=c[1],d=bt(),f=bt();l??(l=0,r.replaceState(Q({},r.state,{idx:l}),``));function p(){var e=document.querySelector(`base`),t=``;if(e&&e.getAttribute(`href`)){var r=n.location.href,i=r.indexOf(`#`);t=i===-1?r:r.slice(0,i)}return t}function m(e){return p()+`#`+(typeof e==`string`?e:St(e))}function h(e,t){return t===void 0&&(t=null),pt(Q({pathname:u.pathname,hash:``,search:``},typeof e==`string`?Ct(e):e,{state:t,key:xt()}))}function g(e,t){return[{usr:e.state,key:e.key,idx:t},m(e)]}function _(e,t,n){return!f.length||(f.call({action:e,location:t,retry:n}),!1)}function v(e){s=e;var t=i();l=t[0],u=t[1],d.call({action:s,location:u})}function y(e,t){var i=$.Push,a=h(e,t);function o(){y(e,t)}if(process.env.NODE_ENV!==`production`&&mt(a.pathname.charAt(0)===`/`,`Relative pathnames are not supported in hash history.push(`+JSON.stringify(e)+`)`),_(i,a,o)){var s=g(a,l+1),c=s[0],u=s[1];try{r.pushState(c,``,u)}catch{n.location.assign(u)}v(i)}}function b(e,t){var n=$.Replace,i=h(e,t);function a(){b(e,t)}if(process.env.NODE_ENV!==`production`&&mt(i.pathname.charAt(0)===`/`,`Relative pathnames are not supported in hash history.replace(`+JSON.stringify(e)+`)`),_(n,i,a)){var o=g(i,l),s=o[0],c=o[1];r.replaceState(s,``,c),v(n)}}function x(e){r.go(e)}return{get action(){return s},get location(){return u},createHref:m,push:y,replace:b,go:x,back:function(){x(-1)},forward:function(){x(1)},listen:function(e){return d.push(e)},block:function(e){var t=f.push(e);return f.length===1&&n.addEventListener(ht,yt),function(){t(),f.length||n.removeEventListener(ht,yt)}}}}function yt(e){e.preventDefault(),e.returnValue=``}function bt(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter(function(e){return e!==t})}},call:function(t){e.forEach(function(e){return e&&e(t)})}}}function xt(){return Math.random().toString(36).substr(2,8)}function St(e){var t=e.pathname,n=t===void 0?`/`:t,r=e.search,i=r===void 0?``:r,a=e.hash,o=a===void 0?``:a;return i&&i!==`?`&&(n+=i.charAt(0)===`?`?i:`?`+i),o&&o!==`#`&&(n+=o.charAt(0)===`#`?o:`#`+o),n}function Ct(e){var t={};if(e){var n=e.indexOf(`#`);n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf(`?`);r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var wt=Je(),Tt=Qe(),Et=t.t(),Dt=e.a(r.r(),1),Ot=e.a(n.t(),1);const[kt,At]=r.n(`Notifications`),[jt,Mt]=r.n(`UiSettings`),[Nt,Pt]=r.n(`FieldFormats`),[Ft,It]=r.n(`Overlays`),[Lt,Rt]=r.n(`IndexPatterns`),[zt,Bt]=r.n(`Query`),[Vt,Ht]=r.n(`Search`);Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return vt}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return Xe}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Ft}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return jt}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return ft}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Lt}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return Je}});
@@ -0,0 +1,199 @@
1
+ import { n as require_jsx_runtime } from "./lodash-D-qGlPRW.js";
2
+ import { h as toMountPoint, n as getOverlays } from "./services-9wPHk1eh.js";
3
+ import "./classnames-eUba3oot.js";
4
+ import "./common-BlOHZJzI.js";
5
+ import React, { useState } from "react";
6
+ import { EuiButton, EuiButtonEmpty, EuiButtonIcon, EuiCallOut, EuiCode, EuiCodeBlock, EuiCopy, EuiDescriptionList, EuiInMemoryTable, EuiModalBody, EuiModalFooter, EuiModalHeader, EuiModalHeaderTitle, EuiSpacer, EuiTabbedContent, EuiTextAlign, EuiTitle } from "@elastic/eui";
7
+ import { RIGHT_ALIGNMENT } from "@elastic/eui/lib/services";
8
+ var import_jsx_runtime = require_jsx_runtime();
9
+ function getFailurePropsForSummary(s) {
10
+ return [
11
+ "shard",
12
+ "index",
13
+ "node"
14
+ ].filter((w) => typeof s[w] == "number" || typeof s[w] == "string").map((w) => ({
15
+ key: w,
16
+ value: String(s[w])
17
+ }));
18
+ }
19
+ function getFailureSummaryText(s, w) {
20
+ return `${s.reason.type} at ${typeof w == "string" ? w : getFailureSummaryDetailsText(s)}`;
21
+ }
22
+ function getFailureSummaryDetailsText(s) {
23
+ return getFailurePropsForSummary(s).map(({ key: s, value: w }) => `${s}: ${w}`).join(", ");
24
+ }
25
+ function ShardFailureDescriptionHeader(s) {
26
+ let w = getFailurePropsForSummary(s).map((s) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
27
+ className: "shardFailureModal__keyValueTitle",
28
+ children: [
29
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiCode, { children: s.key }),
30
+ " ",
31
+ s.value
32
+ ]
33
+ }, s.key));
34
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiTitle, {
35
+ size: "xs",
36
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("h2", { children: [getFailureSummaryText(s, ""), w] })
37
+ });
38
+ }
39
+ function formatKey(s) {
40
+ return (s.charAt(0).toUpperCase() + s.slice(1)).replace(/[\._]/g, " ");
41
+ }
42
+ function formatValueByKey(s, w) {
43
+ return w === "script" || w === "script_stack" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiCodeBlock, {
44
+ language: "java",
45
+ paddingSize: "s",
46
+ isCopyable: !0,
47
+ children: Array.isArray(s) ? s.join("\n") : String(s)
48
+ }) : String(s);
49
+ }
50
+ function ShardFailureDescription(s) {
51
+ let w = s.reason, T = Object.entries(w).map(([s, w]) => ({
52
+ title: formatKey(s),
53
+ description: formatValueByKey(w, s)
54
+ }));
55
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
56
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ShardFailureDescriptionHeader, { ...s }),
57
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiSpacer, { size: "m" }),
58
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiDescriptionList, {
59
+ listItems: T,
60
+ type: "column",
61
+ compressed: !0,
62
+ className: "shardFailureModal__desc",
63
+ titleProps: { className: "shardFailureModal__descTitle" },
64
+ descriptionProps: { className: "shardFailureModal__descValue" }
65
+ })
66
+ ] });
67
+ }
68
+ function ShardFailureTable({ failures: s }) {
69
+ let w = s.map((s, w) => ({
70
+ id: String(w),
71
+ ...s
72
+ })), [T, E] = useState({});
73
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiInMemoryTable, {
74
+ itemId: "id",
75
+ items: w,
76
+ columns: [
77
+ {
78
+ align: RIGHT_ALIGNMENT,
79
+ width: "40px",
80
+ isExpander: !0,
81
+ render: (s) => {
82
+ let w = getFailureSummaryText(s), D = `Collapse ${w}`, O = `Expand ${w}`;
83
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiButtonIcon, {
84
+ onClick: () => {
85
+ let w = Object.assign({}, T);
86
+ w[s.id] ? delete w[s.id] : w[s.id] = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ShardFailureDescription, { ...s }), E(w);
87
+ },
88
+ "aria-label": T[s.id] ? D : O,
89
+ iconType: T[s.id] ? "arrowUp" : "arrowDown"
90
+ });
91
+ }
92
+ },
93
+ {
94
+ field: "shard",
95
+ name: "Shard",
96
+ sortable: !0,
97
+ truncateText: !0,
98
+ width: "80px"
99
+ },
100
+ {
101
+ field: "index",
102
+ name: "Index",
103
+ sortable: !0,
104
+ truncateText: !0
105
+ },
106
+ {
107
+ field: "node",
108
+ name: "Node",
109
+ sortable: !0,
110
+ truncateText: !0
111
+ },
112
+ {
113
+ field: "reason.type",
114
+ name: "Reason",
115
+ truncateText: !0
116
+ }
117
+ ],
118
+ pagination: !0,
119
+ sorting: { sort: {
120
+ field: "index",
121
+ direction: "desc"
122
+ } },
123
+ itemIdToExpandedRowMap: T
124
+ });
125
+ }
126
+ function ShardFailureModal({ request: s, response: w, title: T, onClose: D }) {
127
+ if (!w || !w._shards || !Array.isArray(w._shards.failures) || !s) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiCallOut, {
128
+ title: "Sorry, there was an error",
129
+ color: "danger",
130
+ iconType: "alert",
131
+ children: "The ShardFailureModal component received invalid properties"
132
+ });
133
+ let A = w._shards.failures, j = JSON.stringify(s, null, 2), M = JSON.stringify(w, null, 2), N = [
134
+ {
135
+ id: "table",
136
+ name: "Shard failures",
137
+ content: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ShardFailureTable, { failures: A })
138
+ },
139
+ {
140
+ id: "json-request",
141
+ name: "Request",
142
+ content: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiCodeBlock, {
143
+ language: "json",
144
+ isCopyable: !0,
145
+ children: j
146
+ })
147
+ },
148
+ {
149
+ id: "json-response",
150
+ name: "Response",
151
+ content: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiCodeBlock, {
152
+ language: "json",
153
+ isCopyable: !0,
154
+ children: M
155
+ })
156
+ }
157
+ ];
158
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(React.Fragment, { children: [
159
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiModalHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiModalHeaderTitle, { children: T }) }),
160
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiModalBody, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiTabbedContent, {
161
+ tabs: N,
162
+ initialSelectedTab: N[0],
163
+ autoFocus: "selected"
164
+ }) }),
165
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(EuiModalFooter, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiCopy, {
166
+ textToCopy: M,
167
+ children: (s) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiButtonEmpty, {
168
+ onClick: s,
169
+ children: "Copy response to clipboard"
170
+ })
171
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiButton, {
172
+ onClick: () => D(),
173
+ fill: !0,
174
+ "data-test-sub": "closeShardFailureModal",
175
+ children: "Close"
176
+ })] })
177
+ ] });
178
+ }
179
+ function ShardFailureOpenModalButton({ request: s, response: E, title: D }) {
180
+ function k() {
181
+ let O = getOverlays().openModal(toMountPoint(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ShardFailureModal, {
182
+ request: s,
183
+ response: E,
184
+ title: D,
185
+ onClose: () => O.close()
186
+ })), { className: "shardFailureModal" });
187
+ }
188
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiTextAlign, {
189
+ textAlign: "right",
190
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiButton, {
191
+ color: "warning",
192
+ size: "s",
193
+ onClick: k,
194
+ "data-test-subj": "openShardFailureModalBtn",
195
+ children: "Show details"
196
+ })
197
+ });
198
+ }
199
+ export { ShardFailureOpenModalButton as default };
@@ -0,0 +1,2 @@
1
+ const e=require(`./chunk-BjqF3vbe.cjs`),t=require(`./lodash-C_2NO1eK.cjs`),n=require(`./services-BPC3fXx4.cjs`);require(`./classnames-BXjDNQ6Q.cjs`),require(`./common-DuYIpe6b.cjs`);let r=require(`react`);r=e.a(r);let i=require(`@elastic/eui`),a=require(`@elastic/eui/lib/services`);var o=t.n();function s(e){return[`shard`,`index`,`node`].filter(t=>typeof e[t]==`number`||typeof e[t]==`string`).map(t=>({key:t,value:String(e[t])}))}function c(e,t){return`${e.reason.type} at ${typeof t==`string`?t:l(e)}`}function l(e){return s(e).map(({key:e,value:t})=>`${e}: ${t}`).join(`, `)}function u(e){let t=s(e).map(e=>(0,o.jsxs)(`span`,{className:`shardFailureModal__keyValueTitle`,children:[(0,o.jsx)(i.EuiCode,{children:e.key}),` `,e.value]},e.key));return(0,o.jsx)(i.EuiTitle,{size:`xs`,children:(0,o.jsxs)(`h2`,{children:[c(e,``),t]})})}function d(e){return(e.charAt(0).toUpperCase()+e.slice(1)).replace(/[\._]/g,` `)}function f(e,t){return t===`script`||t===`script_stack`?(0,o.jsx)(i.EuiCodeBlock,{language:`java`,paddingSize:`s`,isCopyable:!0,children:Array.isArray(e)?e.join(`
2
+ `):String(e)}):String(e)}function p(e){let t=e.reason,n=Object.entries(t).map(([e,t])=>({title:d(e),description:f(t,e)}));return(0,o.jsxs)(`div`,{children:[(0,o.jsx)(u,{...e}),(0,o.jsx)(i.EuiSpacer,{size:`m`}),(0,o.jsx)(i.EuiDescriptionList,{listItems:n,type:`column`,compressed:!0,className:`shardFailureModal__desc`,titleProps:{className:`shardFailureModal__descTitle`},descriptionProps:{className:`shardFailureModal__descValue`}})]})}function m({failures:e}){let t=e.map((e,t)=>({id:String(t),...e})),[n,s]=(0,r.useState)({});return(0,o.jsx)(i.EuiInMemoryTable,{itemId:`id`,items:t,columns:[{align:a.RIGHT_ALIGNMENT,width:`40px`,isExpander:!0,render:e=>{let t=c(e),r=`Collapse ${t}`,a=`Expand ${t}`;return(0,o.jsx)(i.EuiButtonIcon,{onClick:()=>{let t=Object.assign({},n);t[e.id]?delete t[e.id]:t[e.id]=(0,o.jsx)(p,{...e}),s(t)},"aria-label":n[e.id]?r:a,iconType:n[e.id]?`arrowUp`:`arrowDown`})}},{field:`shard`,name:`Shard`,sortable:!0,truncateText:!0,width:`80px`},{field:`index`,name:`Index`,sortable:!0,truncateText:!0},{field:`node`,name:`Node`,sortable:!0,truncateText:!0},{field:`reason.type`,name:`Reason`,truncateText:!0}],pagination:!0,sorting:{sort:{field:`index`,direction:`desc`}},itemIdToExpandedRowMap:n})}function h({request:e,response:t,title:n,onClose:a}){if(!t||!t._shards||!Array.isArray(t._shards.failures)||!e)return(0,o.jsx)(i.EuiCallOut,{title:`Sorry, there was an error`,color:`danger`,iconType:`alert`,children:`The ShardFailureModal component received invalid properties`});let s=t._shards.failures,c=JSON.stringify(e,null,2),l=JSON.stringify(t,null,2),u=[{id:`table`,name:`Shard failures`,content:(0,o.jsx)(m,{failures:s})},{id:`json-request`,name:`Request`,content:(0,o.jsx)(i.EuiCodeBlock,{language:`json`,isCopyable:!0,children:c})},{id:`json-response`,name:`Response`,content:(0,o.jsx)(i.EuiCodeBlock,{language:`json`,isCopyable:!0,children:l})}];return(0,o.jsxs)(r.default.Fragment,{children:[(0,o.jsx)(i.EuiModalHeader,{children:(0,o.jsx)(i.EuiModalHeaderTitle,{children:n})}),(0,o.jsx)(i.EuiModalBody,{children:(0,o.jsx)(i.EuiTabbedContent,{tabs:u,initialSelectedTab:u[0],autoFocus:`selected`})}),(0,o.jsxs)(i.EuiModalFooter,{children:[(0,o.jsx)(i.EuiCopy,{textToCopy:l,children:e=>(0,o.jsx)(i.EuiButtonEmpty,{onClick:e,children:`Copy response to clipboard`})}),(0,o.jsx)(i.EuiButton,{onClick:()=>a(),fill:!0,"data-test-sub":`closeShardFailureModal`,children:`Close`})]})]})}function g({request:e,response:t,title:r}){function a(){let i=n.n().openModal(n.h((0,o.jsx)(h,{request:e,response:t,title:r,onClose:()=>i.close()})),{className:`shardFailureModal`})}return(0,o.jsx)(i.EuiTextAlign,{textAlign:`right`,children:(0,o.jsx)(i.EuiButton,{color:`warning`,size:`s`,onClick:a,"data-test-subj":`openShardFailureModalBtn`,children:`Show details`})})}exports.default=g;
@@ -0,0 +1 @@
1
+ const e=require(`./chunk-BjqF3vbe.cjs`);var t={comments:{lineComment:`#`},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`},{open:"`",close:"`"}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`},{open:"`",close:"`"}]},n={defaultToken:``,ignoreCase:!0,tokenPostfix:`.shell`,brackets:[{token:`delimiter.bracket`,open:`{`,close:`}`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`delimiter.square`,open:`[`,close:`]`}],keywords:[`if`,`then`,`do`,`else`,`elif`,`while`,`until`,`for`,`in`,`esac`,`fi`,`fin`,`fil`,`done`,`exit`,`set`,`unset`,`export`,`function`],builtins:`ab.awk.bash.beep.cat.cc.cd.chown.chmod.chroot.clear.cp.curl.cut.diff.echo.find.gawk.gcc.get.git.grep.hg.kill.killall.ln.ls.make.mkdir.openssl.mv.nc.node.npm.ping.ps.restart.rm.rmdir.sed.service.sh.shopt.shred.source.sort.sleep.ssh.start.stop.su.sudo.svn.tee.telnet.top.touch.vi.vim.wall.wc.wget.who.write.yes.zsh`.split(`.`),startingWithDash:/\-+\w+/,identifiersWithDashes:/[a-zA-Z]\w+(?:@startingWithDash)+/,symbols:/[=><!~?&|+\-*\/\^;\.,]+/,tokenizer:{root:[[/@identifiersWithDashes/,``],[/(\s)((?:@startingWithDash)+)/,[`white`,`attribute.name`]],[/[a-zA-Z]\w*/,{cases:{"@keywords":`keyword`,"@builtins":`type.identifier`,"@default":``}}],{include:`@whitespace`},{include:`@strings`},{include:`@parameters`},{include:`@heredoc`},[/[{}\[\]()]/,`@brackets`],[/@symbols/,`delimiter`],{include:`@numbers`},[/[,;]/,`delimiter`]],whitespace:[[/\s+/,`white`],[/(^#!.*$)/,`metatag`],[/(^#.*$)/,`comment`]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,`number.float`],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,`number.hex`],[/\d+/,`number`]],strings:[[/'/,`string`,`@stringBody`],[/"/,`string`,`@dblStringBody`]],stringBody:[[/'/,`string`,`@popall`],[/./,`string`]],dblStringBody:[[/"/,`string`,`@popall`],[/./,`string`]],heredoc:[[/(<<[-<]?)(\s*)(['"`]?)([\w\-]+)(['"`]?)/,[`constants`,`white`,`string.heredoc.delimiter`,`string.heredoc`,`string.heredoc.delimiter`]]],parameters:[[/\$\d+/,`variable.predefined`],[/\$\w+/,`variable`],[/\$[*@#?\-$!0_]/,`variable`],[/\$'/,`variable`,`@parameterBodyQuote`],[/\$"/,`variable`,`@parameterBodyDoubleQuote`],[/\$\(/,`variable`,`@parameterBodyParen`],[/\$\{/,`variable`,`@parameterBodyCurlyBrace`]],parameterBodyQuote:[[/[^#:%*@\-!_']+/,`variable`],[/[#:%*@\-!_]/,`delimiter`],[/[']/,`variable`,`@pop`]],parameterBodyDoubleQuote:[[/[^#:%*@\-!_"]+/,`variable`],[/[#:%*@\-!_]/,`delimiter`],[/["]/,`variable`,`@pop`]],parameterBodyParen:[[/[^#:%*@\-!_)]+/,`variable`],[/[#:%*@\-!_]/,`delimiter`],[/[)]/,`variable`,`@pop`]],parameterBodyCurlyBrace:[[/[^#:%*@\-!_}]+/,`variable`],[/[#:%*@\-!_]/,`delimiter`],[/[}]/,`variable`,`@pop`]]}};exports.conf=t,exports.language=n;
@@ -0,0 +1,223 @@
1
+ var conf = {
2
+ comments: { lineComment: "#" },
3
+ brackets: [
4
+ ["{", "}"],
5
+ ["[", "]"],
6
+ ["(", ")"]
7
+ ],
8
+ autoClosingPairs: [
9
+ {
10
+ open: "{",
11
+ close: "}"
12
+ },
13
+ {
14
+ open: "[",
15
+ close: "]"
16
+ },
17
+ {
18
+ open: "(",
19
+ close: ")"
20
+ },
21
+ {
22
+ open: "\"",
23
+ close: "\""
24
+ },
25
+ {
26
+ open: "'",
27
+ close: "'"
28
+ },
29
+ {
30
+ open: "`",
31
+ close: "`"
32
+ }
33
+ ],
34
+ surroundingPairs: [
35
+ {
36
+ open: "{",
37
+ close: "}"
38
+ },
39
+ {
40
+ open: "[",
41
+ close: "]"
42
+ },
43
+ {
44
+ open: "(",
45
+ close: ")"
46
+ },
47
+ {
48
+ open: "\"",
49
+ close: "\""
50
+ },
51
+ {
52
+ open: "'",
53
+ close: "'"
54
+ },
55
+ {
56
+ open: "`",
57
+ close: "`"
58
+ }
59
+ ]
60
+ }, language = {
61
+ defaultToken: "",
62
+ ignoreCase: !0,
63
+ tokenPostfix: ".shell",
64
+ brackets: [
65
+ {
66
+ token: "delimiter.bracket",
67
+ open: "{",
68
+ close: "}"
69
+ },
70
+ {
71
+ token: "delimiter.parenthesis",
72
+ open: "(",
73
+ close: ")"
74
+ },
75
+ {
76
+ token: "delimiter.square",
77
+ open: "[",
78
+ close: "]"
79
+ }
80
+ ],
81
+ keywords: [
82
+ "if",
83
+ "then",
84
+ "do",
85
+ "else",
86
+ "elif",
87
+ "while",
88
+ "until",
89
+ "for",
90
+ "in",
91
+ "esac",
92
+ "fi",
93
+ "fin",
94
+ "fil",
95
+ "done",
96
+ "exit",
97
+ "set",
98
+ "unset",
99
+ "export",
100
+ "function"
101
+ ],
102
+ builtins: /* @__PURE__ */ "ab.awk.bash.beep.cat.cc.cd.chown.chmod.chroot.clear.cp.curl.cut.diff.echo.find.gawk.gcc.get.git.grep.hg.kill.killall.ln.ls.make.mkdir.openssl.mv.nc.node.npm.ping.ps.restart.rm.rmdir.sed.service.sh.shopt.shred.source.sort.sleep.ssh.start.stop.su.sudo.svn.tee.telnet.top.touch.vi.vim.wall.wc.wget.who.write.yes.zsh".split("."),
103
+ startingWithDash: /\-+\w+/,
104
+ identifiersWithDashes: /[a-zA-Z]\w+(?:@startingWithDash)+/,
105
+ symbols: /[=><!~?&|+\-*\/\^;\.,]+/,
106
+ tokenizer: {
107
+ root: [
108
+ [/@identifiersWithDashes/, ""],
109
+ [/(\s)((?:@startingWithDash)+)/, ["white", "attribute.name"]],
110
+ [/[a-zA-Z]\w*/, { cases: {
111
+ "@keywords": "keyword",
112
+ "@builtins": "type.identifier",
113
+ "@default": ""
114
+ } }],
115
+ { include: "@whitespace" },
116
+ { include: "@strings" },
117
+ { include: "@parameters" },
118
+ { include: "@heredoc" },
119
+ [/[{}\[\]()]/, "@brackets"],
120
+ [/@symbols/, "delimiter"],
121
+ { include: "@numbers" },
122
+ [/[,;]/, "delimiter"]
123
+ ],
124
+ whitespace: [
125
+ [/\s+/, "white"],
126
+ [/(^#!.*$)/, "metatag"],
127
+ [/(^#.*$)/, "comment"]
128
+ ],
129
+ numbers: [
130
+ [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
131
+ [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
132
+ [/\d+/, "number"]
133
+ ],
134
+ strings: [[
135
+ /'/,
136
+ "string",
137
+ "@stringBody"
138
+ ], [
139
+ /"/,
140
+ "string",
141
+ "@dblStringBody"
142
+ ]],
143
+ stringBody: [[
144
+ /'/,
145
+ "string",
146
+ "@popall"
147
+ ], [/./, "string"]],
148
+ dblStringBody: [[
149
+ /"/,
150
+ "string",
151
+ "@popall"
152
+ ], [/./, "string"]],
153
+ heredoc: [[/(<<[-<]?)(\s*)(['"`]?)([\w\-]+)(['"`]?)/, [
154
+ "constants",
155
+ "white",
156
+ "string.heredoc.delimiter",
157
+ "string.heredoc",
158
+ "string.heredoc.delimiter"
159
+ ]]],
160
+ parameters: [
161
+ [/\$\d+/, "variable.predefined"],
162
+ [/\$\w+/, "variable"],
163
+ [/\$[*@#?\-$!0_]/, "variable"],
164
+ [
165
+ /\$'/,
166
+ "variable",
167
+ "@parameterBodyQuote"
168
+ ],
169
+ [
170
+ /\$"/,
171
+ "variable",
172
+ "@parameterBodyDoubleQuote"
173
+ ],
174
+ [
175
+ /\$\(/,
176
+ "variable",
177
+ "@parameterBodyParen"
178
+ ],
179
+ [
180
+ /\$\{/,
181
+ "variable",
182
+ "@parameterBodyCurlyBrace"
183
+ ]
184
+ ],
185
+ parameterBodyQuote: [
186
+ [/[^#:%*@\-!_']+/, "variable"],
187
+ [/[#:%*@\-!_]/, "delimiter"],
188
+ [
189
+ /[']/,
190
+ "variable",
191
+ "@pop"
192
+ ]
193
+ ],
194
+ parameterBodyDoubleQuote: [
195
+ [/[^#:%*@\-!_"]+/, "variable"],
196
+ [/[#:%*@\-!_]/, "delimiter"],
197
+ [
198
+ /["]/,
199
+ "variable",
200
+ "@pop"
201
+ ]
202
+ ],
203
+ parameterBodyParen: [
204
+ [/[^#:%*@\-!_)]+/, "variable"],
205
+ [/[#:%*@\-!_]/, "delimiter"],
206
+ [
207
+ /[)]/,
208
+ "variable",
209
+ "@pop"
210
+ ]
211
+ ],
212
+ parameterBodyCurlyBrace: [
213
+ [/[^#:%*@\-!_}]+/, "variable"],
214
+ [/[#:%*@\-!_]/, "delimiter"],
215
+ [
216
+ /[}]/,
217
+ "variable",
218
+ "@pop"
219
+ ]
220
+ ]
221
+ }
222
+ };
223
+ export { conf, language };