@fluxhub/fluxhub-lib 1.0.6 → 1.0.7

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 (169) hide show
  1. package/bundles/fluxhub-fluxhub-lib.umd.js +12 -12
  2. package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
  3. package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
  4. package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
  5. package/docs/classes/FHUtility.html +3176 -0
  6. package/docs/classes/dati_aggiuntivi.html +6654 -0
  7. package/docs/classes/dt.html +1091 -0
  8. package/docs/classes/wkfapp.html +3007 -0
  9. package/docs/components/ApprovaGridComponent.html +1433 -0
  10. package/docs/components/ComboBoxEditor.html +1704 -0
  11. package/docs/components/CurrencyComponent.html +1148 -0
  12. package/docs/components/DateComponent.html +1611 -0
  13. package/docs/components/DtPick.html +1793 -0
  14. package/docs/components/FHAutoCompleteComponent.html +2601 -0
  15. package/docs/components/FHComboboxComponent.html +2390 -0
  16. package/docs/components/FHConfirmComponent.html +1354 -0
  17. package/docs/components/FHCurrencyFieldComponent.html +2021 -0
  18. package/docs/components/FHDatePickerComponent.html +2033 -0
  19. package/docs/components/FHGridComponent.html +5734 -0
  20. package/docs/components/FHListComponent.html +2300 -0
  21. package/docs/components/FHListPick.html +1422 -0
  22. package/docs/components/FHLogPanelComponent.html +978 -0
  23. package/docs/components/FHMdReader.html +1130 -0
  24. package/docs/components/FHNumericFieldComponent.html +2025 -0
  25. package/docs/components/FHPickListComponent.html +2321 -0
  26. package/docs/components/FHRichText.html +1689 -0
  27. package/docs/components/FHTimePickerComponent.html +2395 -0
  28. package/docs/components/FHUploadComponent.html +2161 -0
  29. package/docs/components/FHUploadPanelComponent.html +1844 -0
  30. package/docs/components/FHUserFieldComponent.html +1832 -0
  31. package/docs/components/FHUserPickerComponent.html +2065 -0
  32. package/docs/components/FHWinComboSelect.html +1352 -0
  33. package/docs/components/FSInput.html +1097 -0
  34. package/docs/components/FSResult.html +1087 -0
  35. package/docs/components/NumericEditorComponent.html +1396 -0
  36. package/docs/components/QGParam.html +1262 -0
  37. package/docs/components/QGResult.html +1116 -0
  38. package/docs/components/QParam.html +1131 -0
  39. package/docs/components/QResult.html +1087 -0
  40. package/docs/components/TextAreaEditor.html +1584 -0
  41. package/docs/components/WinAskNumberComponent.html +1462 -0
  42. package/docs/components/WinAskTextBigComponent.html +1383 -0
  43. package/docs/components/WinAskTextComponent.html +1424 -0
  44. package/docs/components/WinOutputComponent.html +1388 -0
  45. package/docs/components/WinWait.html +1338 -0
  46. package/docs/components/win_assegna.html +1473 -0
  47. package/docs/components/win_commenti.html +2221 -0
  48. package/docs/components/win_commento_sel_notif.html +1361 -0
  49. package/docs/components/win_conferma.html +1479 -0
  50. package/docs/components/win_grid_help.html +1213 -0
  51. package/docs/components/win_info_doc.html +1458 -0
  52. package/docs/components/win_log.html +2232 -0
  53. package/docs/components/win_mappa.html +1670 -0
  54. package/docs/components/win_recupera_doc.html +1470 -0
  55. package/docs/components/win_riassegna_select_level.html +1519 -0
  56. package/docs/components/win_riassegna_select_user.html +1477 -0
  57. package/docs/components/win_salva_annulla.html +1224 -0
  58. package/docs/components/win_select_canale.html +1341 -0
  59. package/docs/components/win_select_level.html +1504 -0
  60. package/docs/components/win_time_slider.html +1374 -0
  61. package/docs/components/win_uploads.html +2132 -0
  62. package/docs/coverage.html +2177 -0
  63. package/docs/dependencies.html +989 -0
  64. package/docs/directives/DecimalMask.html +1102 -0
  65. package/docs/directives/FHCurrencyFormatterDirective.html +1110 -0
  66. package/docs/fonts/FontAwesome.otf +0 -0
  67. package/docs/fonts/fontawesome-webfont.eot +0 -0
  68. package/docs/fonts/fontawesome-webfont.svg +685 -0
  69. package/docs/fonts/fontawesome-webfont.ttf +0 -0
  70. package/docs/fonts/fontawesome-webfont.woff +0 -0
  71. package/docs/fonts/fontawesome-webfont.woff2 +0 -0
  72. package/docs/fonts/roboto-v15-latin-300.eot +0 -0
  73. package/docs/fonts/roboto-v15-latin-300.svg +314 -0
  74. package/docs/fonts/roboto-v15-latin-300.ttf +0 -0
  75. package/docs/fonts/roboto-v15-latin-300.woff +0 -0
  76. package/docs/fonts/roboto-v15-latin-300.woff2 +0 -0
  77. package/docs/fonts/roboto-v15-latin-700.eot +0 -0
  78. package/docs/fonts/roboto-v15-latin-700.svg +310 -0
  79. package/docs/fonts/roboto-v15-latin-700.ttf +0 -0
  80. package/docs/fonts/roboto-v15-latin-700.woff +0 -0
  81. package/docs/fonts/roboto-v15-latin-700.woff2 +0 -0
  82. package/docs/fonts/roboto-v15-latin-regular.eot +0 -0
  83. package/docs/fonts/roboto-v15-latin-regular.svg +308 -0
  84. package/docs/fonts/roboto-v15-latin-regular.ttf +0 -0
  85. package/docs/fonts/roboto-v15-latin-regular.woff +0 -0
  86. package/docs/fonts/roboto-v15-latin-regular.woff2 +0 -0
  87. package/docs/graph/dependencies.svg +1294 -0
  88. package/docs/images/compodoc-vectorise-inverted.svg +201 -0
  89. package/docs/images/compodoc-vectorise.svg +201 -0
  90. package/docs/images/coverage-badge.svg +9 -0
  91. package/docs/images/favicon.ico +0 -0
  92. package/docs/index.html +870 -0
  93. package/docs/injectables/AppMakerService.html +1187 -0
  94. package/docs/injectables/AppService.html +1981 -0
  95. package/docs/injectables/AuthenticationService.html +1659 -0
  96. package/docs/injectables/FHGuard.html +1382 -0
  97. package/docs/injectables/FileService.html +1154 -0
  98. package/docs/injectables/GridService.html +1187 -0
  99. package/docs/injectables/OdbcService.html +1187 -0
  100. package/docs/injectables/QueryService.html +1279 -0
  101. package/docs/injectables/UtilityService.html +3170 -0
  102. package/docs/injectables/WkfService.html +1187 -0
  103. package/docs/js/compodoc.js +14 -0
  104. package/docs/js/libs/EventDispatcher.js +5 -0
  105. package/docs/js/libs/bootstrap-native.js +2 -0
  106. package/docs/js/libs/d3.v3.min.js +2 -0
  107. package/docs/js/libs/deep-iterator.js +2 -0
  108. package/docs/js/libs/es6-shim.min.js +12 -0
  109. package/docs/js/libs/htmlparser.js +23 -0
  110. package/docs/js/libs/innersvg.js +9 -0
  111. package/docs/js/libs/prism.js +14 -0
  112. package/docs/js/libs/promise.min.js +6 -0
  113. package/docs/js/libs/svg-pan-zoom.min.js +3 -0
  114. package/docs/js/libs/tablesort.min.js +5 -0
  115. package/docs/js/libs/tablesort.number.min.js +5 -0
  116. package/docs/js/libs/vis.min.js +46 -0
  117. package/docs/js/libs/zepto.min.js +2 -0
  118. package/docs/js/menu.js +222 -0
  119. package/docs/js/routes.js +280 -0
  120. package/docs/js/search/lunr.min.js +1 -0
  121. package/docs/js/search/search-lunr.js +67 -0
  122. package/docs/js/search/search.js +271 -0
  123. package/docs/js/search/search_index.js +4 -0
  124. package/docs/js/sourceCode.js +58 -0
  125. package/docs/js/svg-pan-zoom.controls.js +50 -0
  126. package/docs/js/tabs.js +21 -0
  127. package/docs/js/tree.js +147 -0
  128. package/docs/miscellaneous/typealiases.html +903 -0
  129. package/docs/miscellaneous/variables.html +1226 -0
  130. package/docs/modules/FluxhubLibModule/dependencies.svg +1294 -0
  131. package/docs/modules/FluxhubLibModule.html +2614 -0
  132. package/docs/modules/MaterialModule.html +888 -0
  133. package/docs/modules.html +894 -0
  134. package/docs/overview.html +2219 -0
  135. package/docs/pipes/EscapeHtmlPipe.html +963 -0
  136. package/docs/pipes/FHCurrencyPipe.html +1067 -0
  137. package/docs/pipes/ReplaceLineBreaks.html +967 -0
  138. package/docs/styles/bootstrap-card.css +219 -0
  139. package/docs/styles/bootstrap.min.css +6 -0
  140. package/docs/styles/compodoc.css +896 -0
  141. package/docs/styles/font-awesome.min.css +4 -0
  142. package/docs/styles/laravel.css +69 -0
  143. package/docs/styles/material.css +109 -0
  144. package/docs/styles/original.css +47 -0
  145. package/docs/styles/postmark.css +210 -0
  146. package/docs/styles/prism.css +268 -0
  147. package/docs/styles/readthedocs.css +98 -0
  148. package/docs/styles/reset.css +48 -0
  149. package/docs/styles/stripe.css +65 -0
  150. package/docs/styles/style.css +7 -0
  151. package/docs/styles/tablesort.css +33 -0
  152. package/docs/styles/vagrant.css +96 -0
  153. package/esm2015/lib/controls/fhuploadpanel.js +62 -48
  154. package/esm2015/lib/fluxhub-lib.module.js +1 -1
  155. package/esm2015/lib/services/app_maker.service.js +1 -2
  156. package/esm2015/lib/services/dofile.service.js +1 -2
  157. package/esm2015/lib/services/doquery.service.js +2 -2
  158. package/esm5/lib/controls/fhuploadpanel.js +11 -11
  159. package/esm5/lib/fluxhub-lib.module.js +1 -1
  160. package/esm5/lib/services/app_maker.service.js +1 -2
  161. package/esm5/lib/services/dofile.service.js +1 -2
  162. package/esm5/lib/services/doquery.service.js +2 -2
  163. package/fesm2015/fluxhub-fluxhub-lib.js +65 -51
  164. package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
  165. package/fesm5/fluxhub-fluxhub-lib.js +12 -12
  166. package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
  167. package/fluxhub-fluxhub-lib.metadata.json +1 -1
  168. package/lib/controls/fhuploadpanel.d.ts +1 -2
  169. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ /* Zepto v1.2.0 - zepto event ajax form ie - zeptojs.com/license */
2
+ !function(t,e){"function"==typeof define&&define.amd?define(function(){return e(t)}):e(t)}(this,function(t){var e=function(){function $(t){return null==t?String(t):S[C.call(t)]||"object"}function F(t){return"function"==$(t)}function k(t){return null!=t&&t==t.window}function M(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function R(t){return"object"==$(t)}function Z(t){return R(t)&&!k(t)&&Object.getPrototypeOf(t)==Object.prototype}function z(t){var e=!!t&&"length"in t&&t.length,n=r.type(t);return"function"!=n&&!k(t)&&("array"==n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function q(t){return a.call(t,function(t){return null!=t})}function H(t){return t.length>0?r.fn.concat.apply([],t):t}function I(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function V(t){return t in l?l[t]:l[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function _(t,e){return"number"!=typeof e||h[I(t)]?e:e+"px"}function B(t){var e,n;return c[t]||(e=f.createElement(t),f.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),c[t]=n),c[t]}function U(t){return"children"in t?u.call(t.children):r.map(t.childNodes,function(t){return 1==t.nodeType?t:void 0})}function X(t,e){var n,r=t?t.length:0;for(n=0;r>n;n++)this[n]=t[n];this.length=r,this.selector=e||""}function J(t,r,i){for(n in r)i&&(Z(r[n])||L(r[n]))?(Z(r[n])&&!Z(t[n])&&(t[n]={}),L(r[n])&&!L(t[n])&&(t[n]=[]),J(t[n],r[n],i)):r[n]!==e&&(t[n]=r[n])}function W(t,e){return null==e?r(t):r(t).filter(e)}function Y(t,e,n,r){return F(e)?e.call(t,n,r):e}function G(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function K(t,n){var r=t.className||"",i=r&&r.baseVal!==e;return n===e?i?r.baseVal:r:void(i?r.baseVal=n:t.className=n)}function Q(t){try{return t?"true"==t||("false"==t?!1:"null"==t?null:+t+""==t?+t:/^[\[\{]/.test(t)?r.parseJSON(t):t):t}catch(e){return t}}function tt(t,e){e(t);for(var n=0,r=t.childNodes.length;r>n;n++)tt(t.childNodes[n],e)}var e,n,r,i,O,P,o=[],s=o.concat,a=o.filter,u=o.slice,f=t.document,c={},l={},h={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},p=/^\s*<(\w+|!)[^>]*>/,d=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,m=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,g=/^(?:body|html)$/i,v=/([A-Z])/g,y=["val","css","html","text","data","width","height","offset"],x=["after","prepend","before","append"],b=f.createElement("table"),E=f.createElement("tr"),j={tr:f.createElement("tbody"),tbody:b,thead:b,tfoot:b,td:E,th:E,"*":f.createElement("div")},w=/complete|loaded|interactive/,T=/^[\w-]*$/,S={},C=S.toString,N={},A=f.createElement("div"),D={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},L=Array.isArray||function(t){return t instanceof Array};return N.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var r,i=t.parentNode,o=!i;return o&&(i=A).appendChild(t),r=~N.qsa(i,e).indexOf(t),o&&A.removeChild(t),r},O=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},P=function(t){return a.call(t,function(e,n){return t.indexOf(e)==n})},N.fragment=function(t,n,i){var o,s,a;return d.test(t)&&(o=r(f.createElement(RegExp.$1))),o||(t.replace&&(t=t.replace(m,"<$1></$2>")),n===e&&(n=p.test(t)&&RegExp.$1),n in j||(n="*"),a=j[n],a.innerHTML=""+t,o=r.each(u.call(a.childNodes),function(){a.removeChild(this)})),Z(i)&&(s=r(o),r.each(i,function(t,e){y.indexOf(t)>-1?s[t](e):s.attr(t,e)})),o},N.Z=function(t,e){return new X(t,e)},N.isZ=function(t){return t instanceof N.Z},N.init=function(t,n){var i;if(!t)return N.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&p.test(t))i=N.fragment(t,RegExp.$1,n),t=null;else{if(n!==e)return r(n).find(t);i=N.qsa(f,t)}else{if(F(t))return r(f).ready(t);if(N.isZ(t))return t;if(L(t))i=q(t);else if(R(t))i=[t],t=null;else if(p.test(t))i=N.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==e)return r(n).find(t);i=N.qsa(f,t)}}return N.Z(i,t)},r=function(t,e){return N.init(t,e)},r.extend=function(t){var e,n=u.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){J(t,n,e)}),t},N.qsa=function(t,e){var n,r="#"==e[0],i=!r&&"."==e[0],o=r||i?e.slice(1):e,s=T.test(o);return t.getElementById&&s&&r?(n=t.getElementById(o))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:u.call(s&&!r&&t.getElementsByClassName?i?t.getElementsByClassName(o):t.getElementsByTagName(e):t.querySelectorAll(e))},r.contains=f.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},r.type=$,r.isFunction=F,r.isWindow=k,r.isArray=L,r.isPlainObject=Z,r.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},r.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},r.inArray=function(t,e,n){return o.indexOf.call(e,t,n)},r.camelCase=O,r.trim=function(t){return null==t?"":String.prototype.trim.call(t)},r.uuid=0,r.support={},r.expr={},r.noop=function(){},r.map=function(t,e){var n,i,o,r=[];if(z(t))for(i=0;i<t.length;i++)n=e(t[i],i),null!=n&&r.push(n);else for(o in t)n=e(t[o],o),null!=n&&r.push(n);return H(r)},r.each=function(t,e){var n,r;if(z(t)){for(n=0;n<t.length;n++)if(e.call(t[n],n,t[n])===!1)return t}else for(r in t)if(e.call(t[r],r,t[r])===!1)return t;return t},r.grep=function(t,e){return a.call(t,e)},t.JSON&&(r.parseJSON=JSON.parse),r.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){S["[object "+e+"]"]=e.toLowerCase()}),r.fn={constructor:N.Z,length:0,forEach:o.forEach,reduce:o.reduce,push:o.push,sort:o.sort,splice:o.splice,indexOf:o.indexOf,concat:function(){var t,e,n=[];for(t=0;t<arguments.length;t++)e=arguments[t],n[t]=N.isZ(e)?e.toArray():e;return s.apply(N.isZ(this)?this.toArray():this,n)},map:function(t){return r(r.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return r(u.apply(this,arguments))},ready:function(t){return w.test(f.readyState)&&f.body?t(r):f.addEventListener("DOMContentLoaded",function(){t(r)},!1),this},get:function(t){return t===e?u.call(this):this[t>=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return o.every.call(this,function(e,n){return t.call(e,n,e)!==!1}),this},filter:function(t){return F(t)?this.not(this.not(t)):r(a.call(this,function(e){return N.matches(e,t)}))},add:function(t,e){return r(P(this.concat(r(t,e))))},is:function(t){return this.length>0&&N.matches(this[0],t)},not:function(t){var n=[];if(F(t)&&t.call!==e)this.each(function(e){t.call(this,e)||n.push(this)});else{var i="string"==typeof t?this.filter(t):z(t)&&F(t.item)?u.call(t):r(t);this.forEach(function(t){i.indexOf(t)<0&&n.push(t)})}return r(n)},has:function(t){return this.filter(function(){return R(t)?r.contains(this,t):r(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!R(t)?t:r(t)},last:function(){var t=this[this.length-1];return t&&!R(t)?t:r(t)},find:function(t){var e,n=this;return e=t?"object"==typeof t?r(t).filter(function(){var t=this;return o.some.call(n,function(e){return r.contains(e,t)})}):1==this.length?r(N.qsa(this[0],t)):this.map(function(){return N.qsa(this,t)}):r()},closest:function(t,e){var n=[],i="object"==typeof t&&r(t);return this.each(function(r,o){for(;o&&!(i?i.indexOf(o)>=0:N.matches(o,t));)o=o!==e&&!M(o)&&o.parentNode;o&&n.indexOf(o)<0&&n.push(o)}),r(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=r.map(n,function(t){return(t=t.parentNode)&&!M(t)&&e.indexOf(t)<0?(e.push(t),t):void 0});return W(e,t)},parent:function(t){return W(P(this.pluck("parentNode")),t)},children:function(t){return W(this.map(function(){return U(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||u.call(this.childNodes)})},siblings:function(t){return W(this.map(function(t,e){return a.call(U(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return r.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=B(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=F(t);if(this[0]&&!e)var n=r(t).get(0),i=n.parentNode||this.length>1;return this.each(function(o){r(this).wrapAll(e?t.call(this,o):i?n.cloneNode(!0):n)})},wrapAll:function(t){if(this[0]){r(this[0]).before(t=r(t));for(var e;(e=t.children()).length;)t=e.first();r(t).append(this)}return this},wrapInner:function(t){var e=F(t);return this.each(function(n){var i=r(this),o=i.contents(),s=e?t.call(this,n):t;o.length?o.wrapAll(s):i.append(s)})},unwrap:function(){return this.parent().each(function(){r(this).replaceWith(r(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var n=r(this);(t===e?"none"==n.css("display"):t)?n.show():n.hide()})},prev:function(t){return r(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return r(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;r(this).empty().append(Y(this,t,e,n))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=Y(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,r){var i;return"string"!=typeof t||1 in arguments?this.each(function(e){if(1===this.nodeType)if(R(t))for(n in t)G(this,n,t[n]);else G(this,t,Y(this,r,e,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(i=this[0].getAttribute(t))?i:e},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){G(this,t)},this)})},prop:function(t,e){return t=D[t]||t,1 in arguments?this.each(function(n){this[t]=Y(this,e,n,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=D[t]||t,this.each(function(){delete this[t]})},data:function(t,n){var r="data-"+t.replace(v,"-$1").toLowerCase(),i=1 in arguments?this.attr(r,n):this.attr(r);return null!==i?Q(i):e},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=Y(this,t,e,this.value)})):this[0]&&(this[0].multiple?r(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each(function(t){var n=r(this),i=Y(this,e,t,n.offset()),o=n.offsetParent().offset(),s={top:i.top-o.top,left:i.left-o.left};"static"==n.css("position")&&(s.position="relative"),n.css(s)});if(!this.length)return null;if(f.documentElement!==this[0]&&!r.contains(f.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,e){if(arguments.length<2){var i=this[0];if("string"==typeof t){if(!i)return;return i.style[O(t)]||getComputedStyle(i,"").getPropertyValue(t)}if(L(t)){if(!i)return;var o={},s=getComputedStyle(i,"");return r.each(t,function(t,e){o[e]=i.style[O(e)]||s.getPropertyValue(e)}),o}}var a="";if("string"==$(t))e||0===e?a=I(t)+":"+_(t,e):this.each(function(){this.style.removeProperty(I(t))});else for(n in t)t[n]||0===t[n]?a+=I(n)+":"+_(n,t[n])+";":this.each(function(){this.style.removeProperty(I(n))});return this.each(function(){this.style.cssText+=";"+a})},index:function(t){return t?this.indexOf(r(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return t?o.some.call(this,function(t){return this.test(K(t))},V(t)):!1},addClass:function(t){return t?this.each(function(e){if("className"in this){i=[];var n=K(this),o=Y(this,t,e,n);o.split(/\s+/g).forEach(function(t){r(this).hasClass(t)||i.push(t)},this),i.length&&K(this,n+(n?" ":"")+i.join(" "))}}):this},removeClass:function(t){return this.each(function(n){if("className"in this){if(t===e)return K(this,"");i=K(this),Y(this,t,n,i).split(/\s+/g).forEach(function(t){i=i.replace(V(t)," ")}),K(this,i.trim())}})},toggleClass:function(t,n){return t?this.each(function(i){var o=r(this),s=Y(this,t,i,K(this));s.split(/\s+/g).forEach(function(t){(n===e?!o.hasClass(t):n)?o.addClass(t):o.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var n="scrollTop"in this[0];return t===e?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var n="scrollLeft"in this[0];return t===e?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),i=g.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(r(t).css("margin-top"))||0,n.left-=parseFloat(r(t).css("margin-left"))||0,i.top+=parseFloat(r(e[0]).css("border-top-width"))||0,i.left+=parseFloat(r(e[0]).css("border-left-width"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||f.body;t&&!g.test(t.nodeName)&&"static"==r(t).css("position");)t=t.offsetParent;return t})}},r.fn.detach=r.fn.remove,["width","height"].forEach(function(t){var n=t.replace(/./,function(t){return t[0].toUpperCase()});r.fn[t]=function(i){var o,s=this[0];return i===e?k(s)?s["inner"+n]:M(s)?s.documentElement["scroll"+n]:(o=this.offset())&&o[t]:this.each(function(e){s=r(this),s.css(t,Y(this,i,e,s[t]()))})}}),x.forEach(function(n,i){var o=i%2;r.fn[n]=function(){var n,a,s=r.map(arguments,function(t){var i=[];return n=$(t),"array"==n?(t.forEach(function(t){return t.nodeType!==e?i.push(t):r.zepto.isZ(t)?i=i.concat(t.get()):void(i=i.concat(N.fragment(t)))}),i):"object"==n||null==t?t:N.fragment(t)}),u=this.length>1;return s.length<1?this:this.each(function(e,n){a=o?n:n.parentNode,n=0==i?n.nextSibling:1==i?n.firstChild:2==i?n:null;var c=r.contains(f.documentElement,a);s.forEach(function(e){if(u)e=e.cloneNode(!0);else if(!a)return r(e).remove();a.insertBefore(e,n),c&&tt(e,function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}})})})},r.fn[o?n+"To":"insert"+(i?"Before":"After")]=function(t){return r(t)[n](this),this}}),N.Z.prototype=X.prototype=r.fn,N.uniq=P,N.deserializeValue=Q,r.zepto=N,r}();return t.Zepto=e,void 0===t.$&&(t.$=e),function(e){function h(t){return t._zid||(t._zid=n++)}function p(t,e,n,r){if(e=d(e),e.ns)var i=m(e.ns);return(a[h(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||i.test(t.ns))&&(!n||h(t.fn)===h(n))&&(!r||t.sel==r)})}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function m(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function g(t,e){return t.del&&!f&&t.e in c||!!e}function v(t){return l[t]||f&&c[t]||t}function y(t,n,i,o,s,u,f){var c=h(t),p=a[c]||(a[c]=[]);n.split(/\s/).forEach(function(n){if("ready"==n)return e(document).ready(i);var a=d(n);a.fn=i,a.sel=s,a.e in l&&(i=function(t){var n=t.relatedTarget;return!n||n!==this&&!e.contains(this,n)?a.fn.apply(this,arguments):void 0}),a.del=u;var c=u||i;a.proxy=function(e){if(e=T(e),!e.isImmediatePropagationStopped()){e.data=o;var n=c.apply(t,e._args==r?[e]:[e].concat(e._args));return n===!1&&(e.preventDefault(),e.stopPropagation()),n}},a.i=p.length,p.push(a),"addEventListener"in t&&t.addEventListener(v(a.e),a.proxy,g(a,f))})}function x(t,e,n,r,i){var o=h(t);(e||"").split(/\s/).forEach(function(e){p(t,e,n,r).forEach(function(e){delete a[o][e.i],"removeEventListener"in t&&t.removeEventListener(v(e.e),e.proxy,g(e,i))})})}function T(t,n){return(n||!t.isDefaultPrevented)&&(n||(n=t),e.each(w,function(e,r){var i=n[e];t[e]=function(){return this[r]=b,i&&i.apply(n,arguments)},t[r]=E}),t.timeStamp||(t.timeStamp=Date.now()),(n.defaultPrevented!==r?n.defaultPrevented:"returnValue"in n?n.returnValue===!1:n.getPreventDefault&&n.getPreventDefault())&&(t.isDefaultPrevented=b)),t}function S(t){var e,n={originalEvent:t};for(e in t)j.test(e)||t[e]===r||(n[e]=t[e]);return T(n,t)}var r,n=1,i=Array.prototype.slice,o=e.isFunction,s=function(t){return"string"==typeof t},a={},u={},f="onfocusin"in t,c={focus:"focusin",blur:"focusout"},l={mouseenter:"mouseover",mouseleave:"mouseout"};u.click=u.mousedown=u.mouseup=u.mousemove="MouseEvents",e.event={add:y,remove:x},e.proxy=function(t,n){var r=2 in arguments&&i.call(arguments,2);if(o(t)){var a=function(){return t.apply(n,r?r.concat(i.call(arguments)):arguments)};return a._zid=h(t),a}if(s(n))return r?(r.unshift(t[n],t),e.proxy.apply(null,r)):e.proxy(t[n],t);throw new TypeError("expected function")},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,r){return this.on(t,e,n,r,1)};var b=function(){return!0},E=function(){return!1},j=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,w={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,n,a,u,f){var c,l,h=this;return t&&!s(t)?(e.each(t,function(t,e){h.on(t,n,a,e,f)}),h):(s(n)||o(u)||u===!1||(u=a,a=n,n=r),(u===r||a===!1)&&(u=a,a=r),u===!1&&(u=E),h.each(function(r,o){f&&(c=function(t){return x(o,t.type,u),u.apply(this,arguments)}),n&&(l=function(t){var r,s=e(t.target).closest(n,o).get(0);return s&&s!==o?(r=e.extend(S(t),{currentTarget:s,liveFired:o}),(c||u).apply(s,[r].concat(i.call(arguments,1)))):void 0}),y(o,t,u,a,n,l||c)}))},e.fn.off=function(t,n,i){var a=this;return t&&!s(t)?(e.each(t,function(t,e){a.off(t,n,e)}),a):(s(n)||o(i)||i===!1||(i=n,n=r),i===!1&&(i=E),a.each(function(){x(this,t,i,n)}))},e.fn.trigger=function(t,n){return t=s(t)||e.isPlainObject(t)?e.Event(t):T(t),t._args=n,this.each(function(){t.type in c&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)})},e.fn.triggerHandler=function(t,n){var r,i;return this.each(function(o,a){r=S(s(t)?e.Event(t):t),r._args=n,r.target=a,e.each(p(a,t.type||t),function(t,e){return i=e.proxy(r),r.isImmediatePropagationStopped()?!1:void 0})}),i},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}}),e.Event=function(t,e){s(t)||(e=t,t=e.type);var n=document.createEvent(u[t]||"Events"),r=!0;if(e)for(var i in e)"bubbles"==i?r=!!e[i]:n[i]=e[i];return n.initEvent(t,r,!0),T(n)}}(e),function(e){function p(t,n,r){var i=e.Event(n);return e(t).trigger(i,r),!i.isDefaultPrevented()}function d(t,e,n,i){return t.global?p(e||r,n,i):void 0}function m(t){t.global&&0===e.active++&&d(t,null,"ajaxStart")}function g(t){t.global&&!--e.active&&d(t,null,"ajaxStop")}function v(t,e){var n=e.context;return e.beforeSend.call(n,t,e)===!1||d(e,n,"ajaxBeforeSend",[t,e])===!1?!1:void d(e,n,"ajaxSend",[t,e])}function y(t,e,n,r){var i=n.context,o="success";n.success.call(i,t,o,e),r&&r.resolveWith(i,[t,o,e]),d(n,i,"ajaxSuccess",[e,n,t]),b(o,e,n)}function x(t,e,n,r,i){var o=r.context;r.error.call(o,n,e,t),i&&i.rejectWith(o,[n,e,t]),d(r,o,"ajaxError",[n,r,t||e]),b(e,n,r)}function b(t,e,n){var r=n.context;n.complete.call(r,e,t),d(n,r,"ajaxComplete",[e,n]),g(n)}function E(t,e,n){if(n.dataFilter==j)return t;var r=n.context;return n.dataFilter.call(r,t,e)}function j(){}function w(t){return t&&(t=t.split(";",2)[0]),t&&(t==c?"html":t==f?"json":a.test(t)?"script":u.test(t)&&"xml")||"text"}function T(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function S(t){t.processData&&t.data&&"string"!=e.type(t.data)&&(t.data=e.param(t.data,t.traditional)),!t.data||t.type&&"GET"!=t.type.toUpperCase()&&"jsonp"!=t.dataType||(t.url=T(t.url,t.data),t.data=void 0)}function C(t,n,r,i){return e.isFunction(n)&&(i=r,r=n,n=void 0),e.isFunction(r)||(i=r,r=void 0),{url:t,data:n,success:r,dataType:i}}function O(t,n,r,i){var o,s=e.isArray(n),a=e.isPlainObject(n);e.each(n,function(n,u){o=e.type(u),i&&(n=r?i:i+"["+(a||"object"==o||"array"==o?n:"")+"]"),!i&&s?t.add(u.name,u.value):"array"==o||!r&&"object"==o?O(t,u,r,n):t.add(n,u)})}var i,o,n=+new Date,r=t.document,s=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,a=/^(?:text|application)\/javascript/i,u=/^(?:text|application)\/xml/i,f="application/json",c="text/html",l=/^\s*$/,h=r.createElement("a");h.href=t.location.href,e.active=0,e.ajaxJSONP=function(i,o){if(!("type"in i))return e.ajax(i);var c,p,s=i.jsonpCallback,a=(e.isFunction(s)?s():s)||"Zepto"+n++,u=r.createElement("script"),f=t[a],l=function(t){e(u).triggerHandler("error",t||"abort")},h={abort:l};return o&&o.promise(h),e(u).on("load error",function(n,r){clearTimeout(p),e(u).off().remove(),"error"!=n.type&&c?y(c[0],h,i,o):x(null,r||"error",h,i,o),t[a]=f,c&&e.isFunction(f)&&f(c[0]),f=c=void 0}),v(h,i)===!1?(l("abort"),h):(t[a]=function(){c=arguments},u.src=i.url.replace(/\?(.+)=\?/,"?$1="+a),r.head.appendChild(u),i.timeout>0&&(p=setTimeout(function(){l("timeout")},i.timeout)),h)},e.ajaxSettings={type:"GET",beforeSend:j,success:j,error:j,complete:j,context:null,global:!0,xhr:function(){return new t.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:f,xml:"application/xml, text/xml",html:c,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:j},e.ajax=function(n){var u,f,s=e.extend({},n||{}),a=e.Deferred&&e.Deferred();for(i in e.ajaxSettings)void 0===s[i]&&(s[i]=e.ajaxSettings[i]);m(s),s.crossDomain||(u=r.createElement("a"),u.href=s.url,u.href=u.href,s.crossDomain=h.protocol+"//"+h.host!=u.protocol+"//"+u.host),s.url||(s.url=t.location.toString()),(f=s.url.indexOf("#"))>-1&&(s.url=s.url.slice(0,f)),S(s);var c=s.dataType,p=/\?.+=\?/.test(s.url);if(p&&(c="jsonp"),s.cache!==!1&&(n&&n.cache===!0||"script"!=c&&"jsonp"!=c)||(s.url=T(s.url,"_="+Date.now())),"jsonp"==c)return p||(s.url=T(s.url,s.jsonp?s.jsonp+"=?":s.jsonp===!1?"":"callback=?")),e.ajaxJSONP(s,a);var P,d=s.accepts[c],g={},b=function(t,e){g[t.toLowerCase()]=[t,e]},C=/^([\w-]+:)\/\//.test(s.url)?RegExp.$1:t.location.protocol,N=s.xhr(),O=N.setRequestHeader;if(a&&a.promise(N),s.crossDomain||b("X-Requested-With","XMLHttpRequest"),b("Accept",d||"*/*"),(d=s.mimeType||d)&&(d.indexOf(",")>-1&&(d=d.split(",",2)[0]),N.overrideMimeType&&N.overrideMimeType(d)),(s.contentType||s.contentType!==!1&&s.data&&"GET"!=s.type.toUpperCase())&&b("Content-Type",s.contentType||"application/x-www-form-urlencoded"),s.headers)for(o in s.headers)b(o,s.headers[o]);if(N.setRequestHeader=b,N.onreadystatechange=function(){if(4==N.readyState){N.onreadystatechange=j,clearTimeout(P);var t,n=!1;if(N.status>=200&&N.status<300||304==N.status||0==N.status&&"file:"==C){if(c=c||w(s.mimeType||N.getResponseHeader("content-type")),"arraybuffer"==N.responseType||"blob"==N.responseType)t=N.response;else{t=N.responseText;try{t=E(t,c,s),"script"==c?(1,eval)(t):"xml"==c?t=N.responseXML:"json"==c&&(t=l.test(t)?null:e.parseJSON(t))}catch(r){n=r}if(n)return x(n,"parsererror",N,s,a)}y(t,N,s,a)}else x(N.statusText||null,N.status?"error":"abort",N,s,a)}},v(N,s)===!1)return N.abort(),x(null,"abort",N,s,a),N;var A="async"in s?s.async:!0;if(N.open(s.type,s.url,A,s.username,s.password),s.xhrFields)for(o in s.xhrFields)N[o]=s.xhrFields[o];for(o in g)O.apply(N,g[o]);return s.timeout>0&&(P=setTimeout(function(){N.onreadystatechange=j,N.abort(),x(null,"timeout",N,s,a)},s.timeout)),N.send(s.data?s.data:null),N},e.get=function(){return e.ajax(C.apply(null,arguments))},e.post=function(){var t=C.apply(null,arguments);return t.type="POST",e.ajax(t)},e.getJSON=function(){var t=C.apply(null,arguments);return t.dataType="json",e.ajax(t)},e.fn.load=function(t,n,r){if(!this.length)return this;var a,i=this,o=t.split(/\s/),u=C(t,n,r),f=u.success;return o.length>1&&(u.url=o[0],a=o[1]),u.success=function(t){i.html(a?e("<div>").html(t.replace(s,"")).find(a):t),f&&f.apply(i,arguments)},e.ajax(u),this};var N=encodeURIComponent;e.param=function(t,n){var r=[];return r.add=function(t,n){e.isFunction(n)&&(n=n()),null==n&&(n=""),this.push(N(t)+"="+N(n))},O(r,t,n),r.join("&").replace(/%20/g,"+")}}(e),function(t){t.fn.serializeArray=function(){var e,n,r=[],i=function(t){return t.forEach?t.forEach(i):void r.push({name:e,value:t})};return this[0]&&t.each(this[0].elements,function(r,o){n=o.type,e=o.name,e&&"fieldset"!=o.nodeName.toLowerCase()&&!o.disabled&&"submit"!=n&&"reset"!=n&&"button"!=n&&"file"!=n&&("radio"!=n&&"checkbox"!=n||o.checked)&&i(t(o).val())}),r},t.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(e){t.push(encodeURIComponent(e.name)+"="+encodeURIComponent(e.value))}),t.join("&")},t.fn.submit=function(e){if(0 in arguments)this.bind("submit",e);else if(this.length){var n=t.Event("submit");this.eq(0).trigger(n),n.isDefaultPrevented()||this.get(0).submit()}return this}}(e),function(){try{getComputedStyle(void 0)}catch(e){var n=getComputedStyle;t.getComputedStyle=function(t,e){try{return n(t,e)}catch(r){return null}}}}(),e});
@@ -0,0 +1,222 @@
1
+ document.addEventListener('DOMContentLoaded', function() {
2
+ var menuCollapsed = false,
3
+ mobileMenu = document.getElementById('mobile-menu');
4
+
5
+ var localContextInUrl = '';
6
+
7
+ if (COMPODOC_CURRENT_PAGE_CONTEXT !== '') {
8
+ localContextInUrl = localContextInUrl;
9
+ switch (COMPODOC_CURRENT_PAGE_CONTEXT) {
10
+ case 'additional-page':
11
+ localContextInUrl = 'additional-documentation'
12
+ break;
13
+ case 'class':
14
+ localContextInUrl = 'classes'
15
+ break;
16
+ case 'miscellaneous-functions':
17
+ case 'miscellaneous-variables':
18
+ case 'miscellaneous-typealiases':
19
+ case 'miscellaneous-enumerations':
20
+ localContextInUrl = 'miscellaneous';
21
+ default:
22
+ break;
23
+ }
24
+ }
25
+
26
+ function hasClass(el, cls) {
27
+ return el.className && new RegExp("(\\s|^)" + cls + "(\\s|$)").test(el.className);
28
+ }
29
+
30
+ var processLink = function(link, url) {
31
+ if (url.charAt(0) !== '.') {
32
+ let prefix = '';
33
+ switch(COMPODOC_CURRENT_PAGE_DEPTH) {
34
+ case 5:
35
+ prefix = '../../../../../';
36
+ break;
37
+ case 4:
38
+ prefix = '../../../../';
39
+ break;
40
+ case 3:
41
+ prefix = '../../../';
42
+ break;
43
+ case 2:
44
+ prefix = '../../';
45
+ break;
46
+ case 1:
47
+ prefix = '../';
48
+ break;
49
+ case 0:
50
+ prefix = './';
51
+ break;
52
+ }
53
+ link.setAttribute('href', prefix + url);
54
+ }
55
+ }
56
+
57
+ var processMenuLinks = function(links, dontAddClass) {
58
+ for (var i = 0; i < links.length; i++) {
59
+ var link = links[i];
60
+ var linkHref = link.getAttribute('href');
61
+ if (linkHref.toLowerCase().indexOf(COMPODOC_CURRENT_PAGE_URL.toLowerCase()) !== -1
62
+ && link.innerHTML.indexOf('Getting started') == -1
63
+ && !dontAddClass
64
+ && linkHref.toLowerCase().indexOf(localContextInUrl.toLowerCase()) !== -1 ) {
65
+ link.classList.add('active');
66
+ }
67
+ processLink(link, linkHref);
68
+
69
+ }
70
+ }
71
+ var chapterLinks = document.querySelectorAll('[data-type="chapter-link"]');
72
+ processMenuLinks(chapterLinks);
73
+ var entityLinks = document.querySelectorAll('[data-type="entity-link"]');
74
+ processMenuLinks(entityLinks);
75
+ var indexLinks = document.querySelectorAll('[data-type="index-link"]');
76
+ processMenuLinks(indexLinks, true);
77
+ var entityLogos = document.querySelectorAll('[data-type="compodoc-logo"]');
78
+ var processLogos = function(entityLogo) {
79
+ for (var i = 0; i < entityLogos.length; i++) {
80
+ var entityLogo = entityLogos[i];
81
+ if (entityLogo) {
82
+ var url = entityLogo.getAttribute('data-src');
83
+ if (url.charAt(0) !== '.') {
84
+ let prefix = '';
85
+ switch(COMPODOC_CURRENT_PAGE_DEPTH) {
86
+ case 5:
87
+ prefix = '../../../../../';
88
+ break;
89
+ case 4:
90
+ prefix = '../../../../';
91
+ break;
92
+ case 3:
93
+ prefix = '../../../';
94
+ break;
95
+ case 2:
96
+ prefix = '../../';
97
+ break;
98
+ case 1:
99
+ prefix = '../';
100
+ break;
101
+ case 0:
102
+ prefix = './';
103
+ break
104
+ }
105
+ entityLogo.src = prefix + url;
106
+ }
107
+ }
108
+ }
109
+ }
110
+ processLogos(entityLogos);
111
+
112
+ setTimeout(function() {
113
+ document.getElementById('btn-menu').addEventListener('click', function() {
114
+ if (menuCollapsed) {
115
+ mobileMenu.style.display = 'none';
116
+ } else {
117
+ mobileMenu.style.display = 'block';
118
+ document.getElementsByTagName('body')[0].style['overflow-y'] = 'hidden';
119
+ }
120
+ menuCollapsed = !menuCollapsed;
121
+ });
122
+
123
+ // collapse menu
124
+ var classnameMenuToggler = document.getElementsByClassName('menu-toggler'),
125
+ faAngleUpClass = 'fa-angle-up',
126
+ faAngleDownClass = 'fa-angle-down',
127
+ toggleItemMenu = function(e) {
128
+ var element = $(e.target),
129
+ parent = element[0].parentNode,
130
+ parentLink,
131
+ elementIconChild;
132
+ if (parent) {
133
+ if (!$(parent).hasClass('linked')) {
134
+ e.preventDefault();
135
+ } else {
136
+ parentLink = parent.parentNode;
137
+ if (parentLink && element.hasClass('link-name')) {
138
+ $(parentLink).trigger('click');
139
+ }
140
+ }
141
+ elementIconChild = parent.getElementsByClassName(faAngleUpClass)[0];
142
+ if (!elementIconChild) {
143
+ elementIconChild = parent.getElementsByClassName(faAngleDownClass)[0];
144
+ }
145
+ if (elementIconChild) {
146
+ elementIconChild = $(elementIconChild)
147
+ if (elementIconChild.hasClass(faAngleUpClass)) {
148
+ elementIconChild.addClass(faAngleDownClass);
149
+ elementIconChild.removeClass(faAngleUpClass);
150
+ } else {
151
+ elementIconChild.addClass(faAngleUpClass);
152
+ elementIconChild.removeClass(faAngleDownClass);
153
+ }
154
+ }
155
+ }
156
+ };
157
+
158
+ for (var i = 0; i < classnameMenuToggler.length; i++) {
159
+ classnameMenuToggler[i].addEventListener('click', toggleItemMenu, false);
160
+ }
161
+
162
+ // Scroll to active link
163
+ var menus = document.querySelectorAll('.menu'),
164
+ i = 0,
165
+ len = menus.length,
166
+ activeMenu,
167
+ activeMenuClass,
168
+ activeLink;
169
+
170
+ for (i; i<len; i++) {
171
+ if (getComputedStyle(menus[i]).display != 'none') {
172
+ activeMenu = menus[i];
173
+ activeMenuClass = activeMenu.getAttribute('class').split(' ')[0];
174
+ }
175
+ }
176
+
177
+ if (activeMenu) {
178
+ activeLink = document.querySelector('.' + activeMenuClass + ' .active');
179
+ if (activeLink) {
180
+ var linkType = activeLink.getAttribute('data-type');
181
+ var linkContext = activeLink.getAttribute('data-context');
182
+ if (linkType === 'entity-link') {
183
+ var parentLi = activeLink.parentNode,
184
+ parentUl,
185
+ parentChapterMenu;
186
+ if (parentLi) {
187
+ parentUl = parentLi.parentNode;
188
+ if (parentUl) {
189
+ parentChapterMenu = parentUl.parentNode;
190
+ if (parentChapterMenu) {
191
+ var toggler = parentChapterMenu.querySelector('.menu-toggler'),
192
+ elementIconChild = toggler.getElementsByClassName(faAngleUpClass)[0];
193
+ if (toggler && !elementIconChild) {
194
+ toggler.click();
195
+ }
196
+ }
197
+ }
198
+ }
199
+ if (linkContext && linkContext === 'sub-entity') {
200
+ // Toggle also the master parent menu
201
+ var linkContextId = activeLink.getAttribute('data-context-id');
202
+ var toggler = activeMenu.querySelector('.chapter.' + linkContextId + ' a .menu-toggler');
203
+ if (toggler) {
204
+ toggler.click();
205
+ }
206
+ }
207
+ } else if (linkType === 'chapter-link') {
208
+ var toggler = activeLink.querySelector('.menu-toggler');
209
+ if (toggler) {
210
+ toggler.click();
211
+ }
212
+ }
213
+ setTimeout(function() {
214
+ activeMenu.scrollTop = activeLink.offsetTop;
215
+ if (activeLink.innerHTML.toLowerCase().indexOf('readme') != -1 || activeLink.innerHTML.toLowerCase().indexOf('overview') != -1) {
216
+ activeMenu.scrollTop = 0;
217
+ }
218
+ }, 300);
219
+ }
220
+ }
221
+ }, 0);
222
+ });
@@ -0,0 +1,280 @@
1
+ document.addEventListener('DOMContentLoaded', function() {
2
+
3
+ function htmlEntities(str) {
4
+ return String(str).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
5
+ }
6
+
7
+ function foundLazyModuleWithPath(path) {
8
+ //path is like app/customers/customers.module#CustomersModule
9
+ var split = path.split('#'),
10
+ lazyModulePath = split[0],
11
+ lazyModuleName = split[1];
12
+ return lazyModuleName;
13
+ }
14
+
15
+ function getBB(selection) {
16
+ selection.each(function(d){d.bbox = this.getBBox();})
17
+ }
18
+
19
+ var test_cases,
20
+ test_case,
21
+ test_case_num,
22
+ engine;
23
+
24
+ var tree = ROUTES_INDEX;
25
+
26
+ function cleanStringChildren(obj) {
27
+ for (var property in obj) {
28
+ if (obj.hasOwnProperty(property)) {
29
+ if (property === 'children' && typeof obj[property] === 'object') {
30
+ for (var i = obj[property].length - 1; i >= 0 ; i--) {
31
+ if (typeof obj[property][i] === 'string') {
32
+ obj[property].splice(i, 1);
33
+ }
34
+ }
35
+ }
36
+ if (typeof obj[property] === 'object') {
37
+ cleanStringChildren(obj[property]);
38
+ }
39
+ }
40
+ }
41
+ }
42
+ cleanStringChildren(tree);
43
+
44
+ engine = d3.layout.tree().setNodeSizes(true);
45
+
46
+ engine.spacing(function(a, b) {
47
+ return a.parent == b.parent ?
48
+ 0 : engine.rootXSize();
49
+ })
50
+
51
+ engine.nodeSize(function(d) {
52
+ return [document.getElementById(d.id).getBBox()["height"] + 70, document.getElementById(d.id).getBBox()["width"] + 30];
53
+ });
54
+
55
+ var nodes = d3.layout.hierarchy()(tree),
56
+
57
+ svg = d3.select("#body-routes").append('svg'),
58
+ svg_g = svg.append("g"),
59
+ svg_p = svg.append("g"),
60
+ last_id = 0,
61
+
62
+ node = svg_g.selectAll(".node")
63
+ .data(nodes, function(d) {
64
+ return d.id || (d.id = ++last_id);
65
+ })
66
+ .enter().append("g")
67
+ .attr("class", "node");
68
+
69
+ svg
70
+ .attr('id', 'main')
71
+
72
+ svg_g
73
+ .attr("transform", "translate(20,0)")
74
+ .attr('id', 'main-group')
75
+
76
+ svg_p
77
+ .attr("transform", "translate(20,0)")
78
+ .attr('id', 'paths')
79
+
80
+ var infos_group = node.append("g")
81
+ .attr({
82
+ "id": function(d) {
83
+ return d.id;
84
+ },
85
+ dx: 0,
86
+ dy: 0,
87
+ })
88
+
89
+ //Node icon
90
+ infos_group.append("text")
91
+ .attr('font-family', 'FontAwesome')
92
+ .attr("y", 5)
93
+ .attr("x", 0)
94
+ .attr('class', function(d) {
95
+ return d.children || d._children
96
+ ? "icon has-children"
97
+ : "icon";
98
+ })
99
+ .attr('font-size', function(d) {
100
+ return '15px'
101
+ }).text(function(d) {
102
+ return '\uf126'
103
+ });
104
+
105
+ //node infos
106
+ infos_group.append("svg:text")
107
+ .attr("x", function(d) {
108
+ return 0;
109
+ })
110
+ .attr("y", function(d) {
111
+ return 10;
112
+ })
113
+ .attr("dy", ".35em")
114
+ .attr('class', 'text')
115
+ .attr("text-anchor", function(d) {
116
+ return "start";
117
+ }).html(function(d) {
118
+ // if kind === module name + module
119
+ // if kind === component component + path
120
+ var _name = '';
121
+ if (d.kind === 'module') {
122
+ if (d.module) {
123
+ _name += '<tspan x="0" dy="1.4em"><a href="./modules/' + d.module + '.html">' + d.module + '</a></tspan>';
124
+ if (d.name) {
125
+ _name += '<tspan x="0" dy="1.4em">' + d.name + '</tspan>';
126
+ }
127
+ } else {
128
+ _name += '<tspan x="0" dy="1.4em">' + htmlEntities(d.name) + '</tspan>';
129
+ }
130
+ } else if (d.kind === 'component') {
131
+ _name += '<tspan x="0" dy="1.4em">' + d.path + '</tspan>'
132
+ _name += '<tspan x="0" dy="1.4em"><a href="./components/' + d.component + '.html">' + d.component + '</a></tspan>'
133
+ if (d.outlet) {
134
+ _name += '<tspan x="0" dy="1.4em">&lt;outlet&gt; : ' + d.outlet + '</tspan>'
135
+ }
136
+ } else {
137
+ _name += '<tspan x="0" dy="1.4em">/' + d.path + '</tspan>'
138
+ if (d.component) {
139
+ _name += '<tspan x="0" dy="1.4em"><a href="./components/' + d.component + '.html">' + d.component + '</a></tspan>'
140
+ }
141
+ if (d.loadChildren) {
142
+ var moduleName = foundLazyModuleWithPath(d.loadChildren);
143
+ _name += '<tspan x="0" dy="1.4em"><a href="./modules/' + moduleName + '.html">' + moduleName + '</a></tspan>'
144
+ }
145
+ if (d.canActivate) {
146
+ _name += '<tspan x="0" dy="1.4em">&#10003; canActivate</tspan>'
147
+ }
148
+ if (d.canDeactivate) {
149
+ _name += '<tspan x="0" dy="1.4em">&#215;&nbsp;&nbsp;canDeactivate</tspan>'
150
+ }
151
+ if (d.canActivateChild) {
152
+ _name += '<tspan x="0" dy="1.4em">&#10003; canActivateChild</tspan>'
153
+ }
154
+ if (d.canLoad) {
155
+ _name += '<tspan x="0" dy="1.4em">&#8594; canLoad</tspan>'
156
+ }
157
+ if (d.redirectTo) {
158
+ _name += '<tspan x="0" dy="1.4em">&rarr; ' + d.redirectTo + '</tspan>'
159
+ }
160
+ if (d.pathMatch) {
161
+ _name += '<tspan x="0" dy="1.4em">&gt; ' + d.pathMatch + '</tspan>'
162
+ }
163
+ if (d.outlet) {
164
+ _name += '<tspan x="0" dy="1.4em">&lt;outlet&gt; : ' + d.outlet + '</tspan>'
165
+ }
166
+ }
167
+ return _name;
168
+ })
169
+ .call(getBB);
170
+
171
+ //
172
+ // Node lazy loaded ?
173
+ //
174
+ infos_group.append('svg:text')
175
+ .attr("y", function(d) {
176
+ return 45;
177
+ })
178
+ .attr("x", function(d) {
179
+ return -18;
180
+ })
181
+ .attr('font-family', 'FontAwesome')
182
+ .attr('class', function(d) {
183
+ return "icon";
184
+ })
185
+ .attr('font-size', function(d) {
186
+ return '15px'
187
+ }).text(function(d) {
188
+ var _text = '';
189
+ if (d.loadChildren) {
190
+ _text = '\uf017';
191
+ }
192
+ if (d.guarded) {
193
+ _text = '\uf023';
194
+ }
195
+ return _text;
196
+ });
197
+
198
+ //Node text background
199
+ infos_group.insert("rect","text")
200
+ .attr("width", function(d){
201
+ return d.bbox.width;
202
+ })
203
+ .attr("height", function(d){
204
+ return d.bbox.height;
205
+ })
206
+ .attr("y", function(d) {
207
+ return 15;
208
+ })
209
+ .style("fill", "white")
210
+ .style("fill-opacity", 0.75);
211
+
212
+ nodes = engine.nodes(tree);
213
+
214
+ function node_extents(n) {
215
+ return [n.x - n.x_size / 2, n.y,
216
+ n.x + n.x_size / 2, n.y + n.y_size
217
+ ];
218
+ }
219
+ var root_extents = node_extents(nodes[0]);
220
+ var xmin = root_extents[0],
221
+ ymin = root_extents[1],
222
+ xmax = root_extents[2],
223
+ ymax = root_extents[3],
224
+ area_sum = (xmax - xmin) * (ymax - ymin),
225
+ x_size_min = nodes[0].x_size,
226
+ y_size_min = nodes[0].y_size;
227
+
228
+ nodes.slice(1).forEach(function(n) {
229
+ var ne = node_extents(n);
230
+ xmin = Math.min(xmin, ne[0]);
231
+ ymin = Math.min(ymin, ne[1]);
232
+ xmax = Math.max(xmax, ne[2]);
233
+ ymax = Math.max(ymax, ne[3]);
234
+ area_sum += (ne[2] - ne[0]) * (ne[3] - ne[1]);
235
+ x_size_min = Math.min(x_size_min, n.x_size);
236
+ y_size_min = Math.min(y_size_min, n.y_size);
237
+ });
238
+
239
+ var area_ave = area_sum / nodes.length;
240
+ var scale = 80 / Math.sqrt(area_ave);
241
+
242
+ function svg_x(node_y) {
243
+ return (node_y - ymin);
244
+ }
245
+
246
+ function svg_y(node_x) {
247
+ return (node_x - xmin) * scale;
248
+ }
249
+
250
+
251
+ var nodebox_right_margin = Math.min(x_size_min * scale, 10);
252
+ var nodebox_vertical_margin = Math.min(y_size_min * scale, 3);
253
+
254
+ node.attr("transform", function(d) {
255
+ return "translate(" + svg_x(d.y) + "," + svg_y(d.x) + ")";
256
+ })
257
+
258
+ var diagonal = d3.svg.diagonal()
259
+ .projection(function(d) {
260
+ return [svg_x(d.y), svg_y(d.x)];
261
+ });
262
+
263
+ var links = engine.links(nodes);
264
+ var links = svg_p.selectAll(".link")
265
+ .data(links)
266
+ .enter().append("path")
267
+ .attr("class", "link")
268
+ .attr("d", diagonal);
269
+
270
+ var _svg = document.getElementById('main'),
271
+ main_g = _svg.childNodes[0]
272
+
273
+ _svg.removeChild(main_g);
274
+ _svg.appendChild(main_g);
275
+
276
+ svg.attr({
277
+ width: document.getElementById('main-group').getBBox()['width'] + 30,
278
+ height: document.getElementById('main-group').getBBox()['height'] + 50,
279
+ });
280
+ });
@@ -0,0 +1 @@
1
+ !function(){var t,l,c,e,r,h,d,f,p,y,m,g,x,v,w,Q,k,S,L,E,T,b,P,I,O,i,n,s,V=function(e){var t=new V.Builder;return t.pipeline.add(V.trimmer,V.stopWordFilter,V.stemmer),t.searchPipeline.add(V.stemmer),e.call(t,t),t.build()};V.version="2.2.0",V.utils={},V.utils.warn=(t=this,function(e){t.console&&console.warn&&console.warn(e)}),V.utils.asString=function(e){return null==e?"":e.toString()},V.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),r=Object.keys(e),i=0;i<r.length;i++){var n=r[i],s=e[n];if(Array.isArray(s))t[n]=s.slice();else{if("string"!=typeof s&&"number"!=typeof s&&"boolean"!=typeof s)throw new TypeError("clone is not deep and does not support nested objects");t[n]=s}}return t},V.FieldRef=function(e,t,r){this.docRef=e,this.fieldName=t,this._stringValue=r},V.FieldRef.joiner="/",V.FieldRef.fromString=function(e){var t=e.indexOf(V.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var r=e.slice(0,t),i=e.slice(t+1);return new V.FieldRef(i,r,e)},V.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+V.FieldRef.joiner+this.docRef),this._stringValue},V.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},V.Set.complete={intersect:function(e){return e},union:function(e){return e},contains:function(){return!0}},V.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},V.Set.prototype.contains=function(e){return!!this.elements[e]},V.Set.prototype.intersect=function(e){var t,r,i,n=[];this.length<e.length?(t=this,r=e):(t=e,r=this),i=Object.keys(t.elements);for(var s=0;s<i.length;s++){var o=i[s];o in r.elements&&n.push(o)}return new V.Set(n)},V.Set.prototype.union=function(e){return new V.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},V.idf=function(e,t){var r=0;for(var i in e)"_index"!=i&&(r+=Object.keys(e[i]).length);var n=(t-r+.5)/(r+.5);return Math.log(1+Math.abs(n))},V.Token=function(e,t){this.str=e||"",this.metadata=t||{}},V.Token.prototype.toString=function(){return this.str},V.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},V.Token.prototype.clone=function(e){return e=e||function(e){return e},new V.Token(e(this.str,this.metadata),this.metadata)},V.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map(function(e){return new V.Token(V.utils.asString(e).toLowerCase(),V.utils.clone(t))});for(var r=e.toString().trim().toLowerCase(),i=r.length,n=[],s=0,o=0;s<=i;s++){var a=s-o;if(r.charAt(s).match(V.tokenizer.separator)||s==i){if(0<a){var u=V.utils.clone(t)||{};u.position=[o,a],u.index=n.length,n.push(new V.Token(r.slice(o,s),u))}o=s+1}}return n},V.tokenizer.separator=/[\s\-]+/,V.Pipeline=function(){this._stack=[]},V.Pipeline.registeredFunctions=Object.create(null),V.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&V.utils.warn("Overwriting existing registered function: "+t),e.label=t,V.Pipeline.registeredFunctions[e.label]=e},V.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||V.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},V.Pipeline.load=function(e){var r=new V.Pipeline;return e.forEach(function(e){var t=V.Pipeline.registeredFunctions[e];if(!t)throw new Error("Cannot load unregistered function: "+e);r.add(t)}),r},V.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){V.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},V.Pipeline.prototype.after=function(e,t){V.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");r+=1,this._stack.splice(r,0,t)},V.Pipeline.prototype.before=function(e,t){V.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");this._stack.splice(r,0,t)},V.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},V.Pipeline.prototype.run=function(e){for(var t=this._stack.length,r=0;r<t;r++){for(var i=this._stack[r],n=[],s=0;s<e.length;s++){var o=i(e[s],s,e);if(void 0!==o&&""!==o)if(o instanceof Array)for(var a=0;a<o.length;a++)n.push(o[a]);else n.push(o)}e=n}return e},V.Pipeline.prototype.runString=function(e,t){var r=new V.Token(e,t);return this.run([r]).map(function(e){return e.toString()})},V.Pipeline.prototype.reset=function(){this._stack=[]},V.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return V.Pipeline.warnIfFunctionNotRegistered(e),e.label})},V.Vector=function(e){this._magnitude=0,this.elements=e||[]},V.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,r=this.elements.length/2,i=r-t,n=Math.floor(i/2),s=this.elements[2*n];1<i&&(s<e&&(t=n),e<s&&(r=n),s!=e);)i=r-t,n=t+Math.floor(i/2),s=this.elements[2*n];return s==e?2*n:e<s?2*n:s<e?2*(n+1):void 0},V.Vector.prototype.insert=function(e,t){this.upsert(e,t,function(){throw"duplicate index"})},V.Vector.prototype.upsert=function(e,t,r){this._magnitude=0;var i=this.positionForIndex(e);this.elements[i]==e?this.elements[i+1]=r(this.elements[i+1],t):this.elements.splice(i,0,e,t)},V.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,r=1;r<t;r+=2){var i=this.elements[r];e+=i*i}return this._magnitude=Math.sqrt(e)},V.Vector.prototype.dot=function(e){for(var t=0,r=this.elements,i=e.elements,n=r.length,s=i.length,o=0,a=0,u=0,l=0;u<n&&l<s;)(o=r[u])<(a=i[l])?u+=2:a<o?l+=2:o==a&&(t+=r[u+1]*i[l+1],u+=2,l+=2);return t},V.Vector.prototype.similarity=function(e){return this.dot(e)/(this.magnitude()*e.magnitude())||0},V.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,r=0;t<this.elements.length;t+=2,r++)e[r]=this.elements[t];return e},V.Vector.prototype.toJSON=function(){return this.elements},V.stemmer=(l={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},c={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},e="[aeiouy]",r="[^aeiou][^aeiouy]*",h=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),d=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),f=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),p=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),y=/^(.+?)(ss|i)es$/,m=/^(.+?)([^s])s$/,g=/^(.+?)eed$/,x=/^(.+?)(ed|ing)$/,v=/.$/,w=/(at|bl|iz)$/,Q=new RegExp("([^aeiouylsz])\\1$"),k=new RegExp("^"+r+e+"[^aeiouwxy]$"),S=/^(.+?[^aeiou])y$/,L=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,E=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,T=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,b=/^(.+?)(s|t)(ion)$/,P=/^(.+?)e$/,I=/ll$/,O=new RegExp("^"+r+e+"[^aeiouwxy]$"),i=function(e){var t,r,i,n,s,o,a;if(e.length<3)return e;if("y"==(i=e.substr(0,1))&&(e=i.toUpperCase()+e.substr(1)),s=m,(n=y).test(e)?e=e.replace(n,"$1$2"):s.test(e)&&(e=e.replace(s,"$1$2")),s=x,(n=g).test(e)){var u=n.exec(e);(n=h).test(u[1])&&(n=v,e=e.replace(n,""))}else if(s.test(e)){t=(u=s.exec(e))[1],(s=p).test(t)&&(o=Q,a=k,(s=w).test(e=t)?e+="e":o.test(e)?(n=v,e=e.replace(n,"")):a.test(e)&&(e+="e"))}(n=S).test(e)&&(e=(t=(u=n.exec(e))[1])+"i");(n=L).test(e)&&(t=(u=n.exec(e))[1],r=u[2],(n=h).test(t)&&(e=t+l[r]));(n=E).test(e)&&(t=(u=n.exec(e))[1],r=u[2],(n=h).test(t)&&(e=t+c[r]));if(s=b,(n=T).test(e))t=(u=n.exec(e))[1],(n=d).test(t)&&(e=t);else if(s.test(e)){t=(u=s.exec(e))[1]+u[2],(s=d).test(t)&&(e=t)}(n=P).test(e)&&(t=(u=n.exec(e))[1],s=f,o=O,((n=d).test(t)||s.test(t)&&!o.test(t))&&(e=t));return s=d,(n=I).test(e)&&s.test(e)&&(n=v,e=e.replace(n,"")),"y"==i&&(e=i.toLowerCase()+e.substr(1)),e},function(e){return e.update(i)}),V.Pipeline.registerFunction(V.stemmer,"stemmer"),V.generateStopWordFilter=function(e){var t=e.reduce(function(e,t){return e[t]=t,e},{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},V.stopWordFilter=V.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),V.Pipeline.registerFunction(V.stopWordFilter,"stopWordFilter"),V.trimmer=function(e){return e.update(function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")})},V.Pipeline.registerFunction(V.trimmer,"trimmer"),V.TokenSet=function(){this.final=!1,this.edges={},this.id=V.TokenSet._nextId,V.TokenSet._nextId+=1},V.TokenSet._nextId=1,V.TokenSet.fromArray=function(e){for(var t=new V.TokenSet.Builder,r=0,i=e.length;r<i;r++)t.insert(e[r]);return t.finish(),t.root},V.TokenSet.fromClause=function(e){return"editDistance"in e?V.TokenSet.fromFuzzyString(e.term,e.editDistance):V.TokenSet.fromString(e.term)},V.TokenSet.fromFuzzyString=function(e,t){for(var r=new V.TokenSet,i=[{node:r,editsRemaining:t,str:e}];i.length;){var n,s,o,a=i.pop();if(0<a.str.length)(s=a.str.charAt(0))in a.node.edges?n=a.node.edges[s]:(n=new V.TokenSet,a.node.edges[s]=n),1==a.str.length?n.final=!0:i.push({node:n,editsRemaining:a.editsRemaining,str:a.str.slice(1)});if(0<a.editsRemaining&&1<a.str.length)(s=a.str.charAt(1))in a.node.edges?o=a.node.edges[s]:(o=new V.TokenSet,a.node.edges[s]=o),a.str.length<=2?o.final=!0:i.push({node:o,editsRemaining:a.editsRemaining-1,str:a.str.slice(2)});if(0<a.editsRemaining&&1==a.str.length&&(a.node.final=!0),0<a.editsRemaining&&1<=a.str.length){if("*"in a.node.edges)var u=a.node.edges["*"];else{u=new V.TokenSet;a.node.edges["*"]=u}1==a.str.length?u.final=!0:i.push({node:u,editsRemaining:a.editsRemaining-1,str:a.str.slice(1)})}if(0<a.editsRemaining){if("*"in a.node.edges)var l=a.node.edges["*"];else{l=new V.TokenSet;a.node.edges["*"]=l}0==a.str.length?l.final=!0:i.push({node:l,editsRemaining:a.editsRemaining-1,str:a.str})}if(0<a.editsRemaining&&1<a.str.length){var c,h=a.str.charAt(0),d=a.str.charAt(1);d in a.node.edges?c=a.node.edges[d]:(c=new V.TokenSet,a.node.edges[d]=c),1==a.str.length?c.final=!0:i.push({node:c,editsRemaining:a.editsRemaining-1,str:h+a.str.slice(2)})}}return r},V.TokenSet.fromString=function(e){for(var t=new V.TokenSet,r=t,i=!1,n=0,s=e.length;n<s;n++){var o=e[n],a=n==s-1;if("*"==o)i=!0,(t.edges[o]=t).final=a;else{var u=new V.TokenSet;u.final=a,t.edges[o]=u,t=u,i&&(t.edges["*"]=r)}}return r},V.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var r=t.pop(),i=Object.keys(r.node.edges),n=i.length;r.node.final&&e.push(r.prefix);for(var s=0;s<n;s++){var o=i[s];t.push({prefix:r.prefix.concat(o),node:r.node.edges[o]})}}return e},V.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),r=t.length,i=0;i<r;i++){var n=t[i];e=e+n+this.edges[n].id}return e},V.TokenSet.prototype.intersect=function(e){for(var t=new V.TokenSet,r=void 0,i=[{qNode:e,output:t,node:this}];i.length;){r=i.pop();for(var n=Object.keys(r.qNode.edges),s=n.length,o=Object.keys(r.node.edges),a=o.length,u=0;u<s;u++)for(var l=n[u],c=0;c<a;c++){var h=o[c];if(h==l||"*"==l){var d=r.node.edges[h],f=r.qNode.edges[l],p=d.final&&f.final,y=void 0;h in r.output.edges?(y=r.output.edges[h]).final=y.final||p:((y=new V.TokenSet).final=p,r.output.edges[h]=y),i.push({qNode:f,output:y,node:d})}}}return t},V.TokenSet.Builder=function(){this.previousWord="",this.root=new V.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},V.TokenSet.Builder.prototype.insert=function(e){var t,r=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var i=0;i<e.length&&i<this.previousWord.length&&e[i]==this.previousWord[i];i++)r++;this.minimize(r),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(i=r;i<e.length;i++){var n=new V.TokenSet,s=e[i];t.edges[s]=n,this.uncheckedNodes.push({parent:t,char:s,child:n}),t=n}t.final=!0,this.previousWord=e},V.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},V.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;e<=t;t--){var r=this.uncheckedNodes[t],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}},V.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},V.Index.prototype.search=function(t){return this.query(function(e){new V.QueryParser(t,e).parse()})},V.Index.prototype.query=function(e){for(var t=new V.Query(this.fields),r=Object.create(null),i=Object.create(null),n=Object.create(null),s=Object.create(null),o=Object.create(null),a=0;a<this.fields.length;a++)i[this.fields[a]]=new V.Vector;e.call(t,t);for(a=0;a<t.clauses.length;a++){var u=t.clauses[a],l=null;l=u.usePipeline?this.pipeline.runString(u.term,{fields:u.fields}):[u.term];for(var c=0;c<l.length;c++){var h=l[c];u.term=h;var d=V.TokenSet.fromClause(u),f=this.tokenSet.intersect(d).toArray();if(0===f.length&&u.presence===V.Query.presence.REQUIRED){for(var p=0;p<u.fields.length;p++){s[O=u.fields[p]]=V.Set.empty}break}for(var y=0;y<f.length;y++){var m=f[y],g=this.invertedIndex[m],x=g._index;for(p=0;p<u.fields.length;p++){var v=g[O=u.fields[p]],w=Object.keys(v),Q=m+"/"+O,k=new V.Set(w);if(u.presence==V.Query.presence.REQUIRED&&(void 0===s[O]&&(s[O]=V.Set.complete),s[O]=s[O].intersect(k)),u.presence!=V.Query.presence.PROHIBITED){if(i[O].upsert(x,1*u.boost,function(e,t){return e+t}),!n[Q]){for(var S=0;S<w.length;S++){var L,E=w[S],T=new V.FieldRef(E,O),b=v[E];void 0===(L=r[T])?r[T]=new V.MatchData(m,O,b):L.add(m,O,b)}n[Q]=!0}}else void 0===o[O]&&(o[O]=V.Set.empty),o[O]=o[O].union(k)}}}}var P=V.Set.complete,I=V.Set.empty;for(a=0;a<this.fields.length;a++){var O;s[O=this.fields[a]]&&(P=P.union(s[O])),o[O]&&(I=I.union(o[O]))}var R=Object.keys(r),F=[],N=Object.create(null);if(t.isNegated()){R=Object.keys(this.fieldVectors);for(a=0;a<R.length;a++){T=R[a];var C=V.FieldRef.fromString(T);r[T]=new V.MatchData}}for(a=0;a<R.length;a++){var _=(C=V.FieldRef.fromString(R[a])).docRef;if(P.contains(_)&&!I.contains(_)){var j,D=this.fieldVectors[C],A=i[C.fieldName].similarity(D);if(void 0!==(j=N[_]))j.score+=A,j.matchData.combine(r[C]);else{var B={ref:_,score:A,matchData:r[C]};N[_]=B,F.push(B)}}}return F.sort(function(e,t){return t.score-e.score})},V.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map(function(e){return[e,this.invertedIndex[e]]},this),t=Object.keys(this.fieldVectors).map(function(e){return[e,this.fieldVectors[e].toJSON()]},this);return{version:V.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},V.Index.load=function(e){var t={},r={},i=e.fieldVectors,n={},s=e.invertedIndex,o=new V.TokenSet.Builder,a=V.Pipeline.load(e.pipeline);e.version!=V.version&&V.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+V.version+"' does not match serialized index '"+e.version+"'");for(var u=0;u<i.length;u++){var l=(h=i[u])[0],c=h[1];r[l]=new V.Vector(c)}for(u=0;u<s.length;u++){var h,d=(h=s[u])[0],f=h[1];o.insert(d),n[d]=f}return o.finish(),t.fields=e.fields,t.fieldVectors=r,t.invertedIndex=n,t.tokenSet=o.root,t.pipeline=a,new V.Index(t)},V.Builder=function(){this._ref="id",this._fields=[],this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=V.tokenizer,this.pipeline=new V.Pipeline,this.searchPipeline=new V.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},V.Builder.prototype.ref=function(e){this._ref=e},V.Builder.prototype.field=function(e){this._fields.push(e)},V.Builder.prototype.b=function(e){this._b=e<0?0:1<e?1:e},V.Builder.prototype.k1=function(e){this._k1=e},V.Builder.prototype.add=function(e){var t=e[this._ref];this.documentCount+=1;for(var r=0;r<this._fields.length;r++){var i=this._fields[r],n=e[i],s=this.tokenizer(n,{fields:[i]}),o=this.pipeline.run(s),a=new V.FieldRef(t,i),u=Object.create(null);this.fieldTermFrequencies[a]=u,this.fieldLengths[a]=0,this.fieldLengths[a]+=o.length;for(var l=0;l<o.length;l++){var c=o[l];if(null==u[c]&&(u[c]=0),u[c]+=1,null==this.invertedIndex[c]){var h=Object.create(null);h._index=this.termIndex,this.termIndex+=1;for(var d=0;d<this._fields.length;d++)h[this._fields[d]]=Object.create(null);this.invertedIndex[c]=h}null==this.invertedIndex[c][i][t]&&(this.invertedIndex[c][i][t]=Object.create(null));for(var f=0;f<this.metadataWhitelist.length;f++){var p=this.metadataWhitelist[f],y=c.metadata[p];null==this.invertedIndex[c][i][t][p]&&(this.invertedIndex[c][i][t][p]=[]),this.invertedIndex[c][i][t][p].push(y)}}}},V.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,r={},i={},n=0;n<t;n++){var s=V.FieldRef.fromString(e[n]);i[o=s.fieldName]||(i[o]=0),i[o]+=1,r[o]||(r[o]=0),r[o]+=this.fieldLengths[s]}for(n=0;n<this._fields.length;n++){var o;r[o=this._fields[n]]=r[o]/i[o]}this.averageFieldLength=r},V.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),r=t.length,i=Object.create(null),n=0;n<r;n++){for(var s=V.FieldRef.fromString(t[n]),o=s.fieldName,a=this.fieldLengths[s],u=new V.Vector,l=this.fieldTermFrequencies[s],c=Object.keys(l),h=c.length,d=0;d<h;d++){var f,p,y,m=c[d],g=l[m],x=this.invertedIndex[m]._index;void 0===i[m]?(f=V.idf(this.invertedIndex[m],this.documentCount),i[m]=f):f=i[m],p=f*((this._k1+1)*g)/(this._k1*(1-this._b+this._b*(a/this.averageFieldLength[o]))+g),y=Math.round(1e3*p)/1e3,u.insert(x,y)}e[s]=u}this.fieldVectors=e},V.Builder.prototype.createTokenSet=function(){this.tokenSet=V.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},V.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new V.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:this._fields,pipeline:this.searchPipeline})},V.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},V.MatchData=function(e,t,r){for(var i=Object.create(null),n=Object.keys(r||{}),s=0;s<n.length;s++){var o=n[s];i[o]=r[o].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=i)},V.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),r=0;r<t.length;r++){var i=t[r],n=Object.keys(e.metadata[i]);null==this.metadata[i]&&(this.metadata[i]=Object.create(null));for(var s=0;s<n.length;s++){var o=n[s],a=Object.keys(e.metadata[i][o]);null==this.metadata[i][o]&&(this.metadata[i][o]=Object.create(null));for(var u=0;u<a.length;u++){var l=a[u];null==this.metadata[i][o][l]?this.metadata[i][o][l]=e.metadata[i][o][l]:this.metadata[i][o][l]=this.metadata[i][o][l].concat(e.metadata[i][o][l])}}}},V.MatchData.prototype.add=function(e,t,r){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=r);if(t in this.metadata[e])for(var i=Object.keys(r),n=0;n<i.length;n++){var s=i[n];s in this.metadata[e][t]?this.metadata[e][t][s]=this.metadata[e][t][s].concat(r[s]):this.metadata[e][t][s]=r[s]}else this.metadata[e][t]=r},V.Query=function(e){this.clauses=[],this.allFields=e},V.Query.wildcard=new String("*"),V.Query.wildcard.NONE=0,V.Query.wildcard.LEADING=1,V.Query.wildcard.TRAILING=2,V.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},V.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=V.Query.wildcard.NONE),e.wildcard&V.Query.wildcard.LEADING&&e.term.charAt(0)!=V.Query.wildcard&&(e.term="*"+e.term),e.wildcard&V.Query.wildcard.TRAILING&&e.term.slice(-1)!=V.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=V.Query.presence.OPTIONAL),this.clauses.push(e),this},V.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=V.Query.presence.PROHIBITED)return!1;return!0},V.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach(function(e){this.term(e,t)},this),this;var r=t||{};return r.term=e.toString(),this.clause(r),this},V.QueryParseError=function(e,t,r){this.name="QueryParseError",this.message=e,this.start=t,this.end=r},V.QueryParseError.prototype=new Error,V.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},V.QueryLexer.prototype.run=function(){for(var e=V.QueryLexer.lexText;e;)e=e(this)},V.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,r=this.pos,i=0;i<this.escapeCharPositions.length;i++)r=this.escapeCharPositions[i],e.push(this.str.slice(t,r)),t=r+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},V.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},V.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},V.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return V.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},V.QueryLexer.prototype.width=function(){return this.pos-this.start},V.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},V.QueryLexer.prototype.backup=function(){this.pos-=1},V.QueryLexer.prototype.acceptDigitRun=function(){for(var e,t;47<(t=(e=this.next()).charCodeAt(0))&&t<58;);e!=V.QueryLexer.EOS&&this.backup()},V.QueryLexer.prototype.more=function(){return this.pos<this.length},V.QueryLexer.EOS="EOS",V.QueryLexer.FIELD="FIELD",V.QueryLexer.TERM="TERM",V.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",V.QueryLexer.BOOST="BOOST",V.QueryLexer.PRESENCE="PRESENCE",V.QueryLexer.lexField=function(e){return e.backup(),e.emit(V.QueryLexer.FIELD),e.ignore(),V.QueryLexer.lexText},V.QueryLexer.lexTerm=function(e){if(1<e.width()&&(e.backup(),e.emit(V.QueryLexer.TERM)),e.ignore(),e.more())return V.QueryLexer.lexText},V.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(V.QueryLexer.EDIT_DISTANCE),V.QueryLexer.lexText},V.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(V.QueryLexer.BOOST),V.QueryLexer.lexText},V.QueryLexer.lexEOS=function(e){0<e.width()&&e.emit(V.QueryLexer.TERM)},V.QueryLexer.termSeparator=V.tokenizer.separator,V.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==V.QueryLexer.EOS)return V.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return V.QueryLexer.lexField;if("~"==t)return e.backup(),0<e.width()&&e.emit(V.QueryLexer.TERM),V.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),0<e.width()&&e.emit(V.QueryLexer.TERM),V.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(V.QueryLexer.PRESENCE),V.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(V.QueryLexer.PRESENCE),V.QueryLexer.lexText;if(t.match(V.QueryLexer.termSeparator))return V.QueryLexer.lexTerm}else e.escapeCharacter()}},V.QueryParser=function(e,t){this.lexer=new V.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},V.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=V.QueryParser.parseClause;e;)e=e(this);return this.query},V.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},V.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},V.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},V.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case V.QueryLexer.PRESENCE:return V.QueryParser.parsePresence;case V.QueryLexer.FIELD:return V.QueryParser.parseField;case V.QueryLexer.TERM:return V.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+t.type;throw 1<=t.str.length&&(r+=" with value '"+t.str+"'"),new V.QueryParseError(r,t.start,t.end)}},V.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=V.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=V.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+t.str+"'";throw new V.QueryParseError(r,t.start,t.end)}var i=e.peekLexeme();if(null==i){r="expecting term or field, found nothing";throw new V.QueryParseError(r,t.start,t.end)}switch(i.type){case V.QueryLexer.FIELD:return V.QueryParser.parseField;case V.QueryLexer.TERM:return V.QueryParser.parseTerm;default:r="expecting term or field, found '"+i.type+"'";throw new V.QueryParseError(r,i.start,i.end)}}},V.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var r=e.query.allFields.map(function(e){return"'"+e+"'"}).join(", "),i="unrecognised field '"+t.str+"', possible fields: "+r;throw new V.QueryParseError(i,t.start,t.end)}e.currentClause.fields=[t.str];var n=e.peekLexeme();if(null==n){i="expecting term, found nothing";throw new V.QueryParseError(i,t.start,t.end)}switch(n.type){case V.QueryLexer.TERM:return V.QueryParser.parseTerm;default:i="expecting term, found '"+n.type+"'";throw new V.QueryParseError(i,n.start,n.end)}}},V.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(null!=r)switch(r.type){case V.QueryLexer.TERM:return e.nextClause(),V.QueryParser.parseTerm;case V.QueryLexer.FIELD:return e.nextClause(),V.QueryParser.parseField;case V.QueryLexer.EDIT_DISTANCE:return V.QueryParser.parseEditDistance;case V.QueryLexer.BOOST:return V.QueryParser.parseBoost;case V.QueryLexer.PRESENCE:return e.nextClause(),V.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new V.QueryParseError(i,r.start,r.end)}else e.nextClause()}},V.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new V.QueryParseError(i,t.start,t.end)}e.currentClause.editDistance=r;var n=e.peekLexeme();if(null!=n)switch(n.type){case V.QueryLexer.TERM:return e.nextClause(),V.QueryParser.parseTerm;case V.QueryLexer.FIELD:return e.nextClause(),V.QueryParser.parseField;case V.QueryLexer.EDIT_DISTANCE:return V.QueryParser.parseEditDistance;case V.QueryLexer.BOOST:return V.QueryParser.parseBoost;default:i="Unexpected lexeme type '"+n.type+"'";throw new V.QueryParseError(i,n.start,n.end)}else e.nextClause()}},V.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var i="boost must be numeric";throw new V.QueryParseError(i,t.start,t.end)}e.currentClause.boost=r;var n=e.peekLexeme();if(null!=n)switch(n.type){case V.QueryLexer.TERM:return e.nextClause(),V.QueryParser.parseTerm;case V.QueryLexer.FIELD:return e.nextClause(),V.QueryParser.parseField;case V.QueryLexer.EDIT_DISTANCE:return V.QueryParser.parseEditDistance;case V.QueryLexer.BOOST:return V.QueryParser.parseBoost;default:i="Unexpected lexeme type '"+n.type+"'";throw new V.QueryParseError(i,n.start,n.end)}else e.nextClause()}},n=this,s=function(){return V},"function"==typeof define&&define.amd?define(s):"object"==typeof exports?module.exports=s():n.lunr=s()}();