|
...
|
...
|
@@ -203,7 +203,7 @@
|
|
203
|
203
|
// ../origin-web-console/dist.java/java/img/spinner-xs.gif
|
|
204
|
204
|
// ../origin-web-console/dist.java/java/img/spinner.gif
|
|
205
|
205
|
// ../origin-web-console/dist.java/java/index.html
|
|
206
|
|
-// ../origin-web-console/dist.java/java/libs-d99ee5b076.js
|
|
|
206
|
+// ../origin-web-console/dist.java/java/libs-badc905293.js
|
|
207
|
207
|
// ../origin-web-console/dist.java/java/style.css
|
|
208
|
208
|
// ../origin-web-console/dist.java/java/version.json
|
|
209
|
209
|
// DO NOT EDIT!
|
|
...
|
...
|
@@ -289,7 +289,7 @@ var _java404Html = []byte(`<!DOCTYPE html>
|
|
289
|
289
|
<div ng-include src="viewPartial"></div>
|
|
290
|
290
|
</div>
|
|
291
|
291
|
|
|
292
|
|
- <script src="libs-d99ee5b076.js"></script>
|
|
|
292
|
+ <script src="libs-badc905293.js"></script>
|
|
293
|
293
|
|
|
294
|
294
|
<!-- add any scripts under dist/ here -->
|
|
295
|
295
|
<script src="app-ab9ba6f96c.js"></script>
|
|
...
|
...
|
@@ -25716,7 +25716,7 @@ var _javaIndexHtml = []byte(`<!DOCTYPE html>
|
|
25716
|
25716
|
<div ng-include src="viewPartial"></div>
|
|
25717
|
25717
|
</div>
|
|
25718
|
25718
|
|
|
25719
|
|
- <script src="libs-d99ee5b076.js"></script>
|
|
|
25719
|
+ <script src="libs-badc905293.js"></script>
|
|
25720
|
25720
|
|
|
25721
|
25721
|
<!-- add any scripts under dist/ here -->
|
|
25722
|
25722
|
<script src="app-ab9ba6f96c.js"></script>
|
|
...
|
...
|
@@ -25740,7 +25740,7 @@ func javaIndexHtml() (*asset, error) {
|
|
25740
|
25740
|
return a, nil
|
|
25741
|
25741
|
}
|
|
25742
|
25742
|
|
|
25743
|
|
-var _javaLibsD99ee5b076Js = []byte(`function _log(e,t){if(_canLog){var n=Array.prototype.slice.apply(arguments,[1]),i=new Date,r=i.getHours()+":"+i.getMinutes()+":"+i.getSeconds()+"."+i.getMilliseconds();n[0]=r+" - "+n[0];try{switch(e){case"info":window.console.info.apply(window.console,n);break;case"warn":window.console.warn.apply(window.console,n);break;default:window.console.log.apply(window.console,n)}}catch(o){window.console||(_canLog=!1)}}}function logMsg(e){Array.prototype.unshift.apply(arguments,["debug"]),_log.apply(this,arguments)}function escapeJSDiff(e){var t=e;return t=t.replace(/&/g,"&"),t=t.replace(/</g,"<"),t=t.replace(/>/g,">"),t=t.replace(/"/g,""")}function diffString(e,t){e=e.replace(/\s+$/,""),t=t.replace(/\s+$/,"");var n=diff(""==e?[]:e.split(/\s+/),""==t?[]:t.split(/\s+/)),i="",r=e.match(/\s+/g);null==r?r=["\n"]:r.push("\n");var o=t.match(/\s+/g);if(null==o?o=["\n"]:o.push("\n"),0==n.n.length)for(var a=0;a<n.o.length;a++)i+="<del>"+escapeJSDiff(n.o[a])+r[a]+"</del>";else{if(null==n.n[0].text)for(t=0;t<n.o.length&&null==n.o[t].text;t++)i+="<del>"+escapeJSDiff(n.o[t])+r[t]+"</del>";for(var a=0;a<n.n.length;a++)if(null==n.n[a].text)i+="<ins>"+escapeJSDiff(n.n[a])+o[a]+"</ins>";else{var s="";for(t=n.n[a].row+1;t<n.o.length&&null==n.o[t].text;t++)s+="<del>"+escapeJSDiff(n.o[t])+r[t]+"</del>";i+=" "+n.n[a].text+o[a]+s}}return i}function randomColor(){return"rgb("+100*Math.random()+"%, "+100*Math.random()+"%, "+100*Math.random()+"%)"}function diffString2(e,t){e=e.replace(/\s+$/,""),t=t.replace(/\s+$/,"");var n=diff(""==e?[]:e.split(/\s+/),""==t?[]:t.split(/\s+/)),i=e.match(/\s+/g);null==i?i=["\n"]:i.push("\n");var r=t.match(/\s+/g);null==r?r=["\n"]:r.push("\n");for(var o="",a=new Array,s=0;s<n.o.length;s++)a[s]=randomColor(),o+=null!=n.o[s].text?'<span style="background-color: '+a[s]+'">'+escapeJSDiff(n.o[s].text)+i[s]+"</span>":"<del>"+escapeJSDiff(n.o[s])+i[s]+"</del>";for(var l="",s=0;s<n.n.length;s++)l+=null!=n.n[s].text?'<span style="background-color: '+a[n.n[s].row]+'">'+escapeJSDiff(n.n[s].text)+r[s]+"</span>":"<ins>"+escapeJSDiff(n.n[s])+r[s]+"</ins>";return{o:o,n:l}}function diff(e,t){for(var n=new Object,i=new Object,r=0;r<t.length;r++)null==n[t[r]]&&(n[t[r]]={rows:new Array,o:null}),n[t[r]].rows.push(r);for(var r=0;r<e.length;r++)null==i[e[r]]&&(i[e[r]]={rows:new Array,n:null}),i[e[r]].rows.push(r);for(var r in n)1==n[r].rows.length&&"undefined"!=typeof i[r]&&1==i[r].rows.length&&(t[n[r].rows[0]]={text:t[n[r].rows[0]],row:i[r].rows[0]},e[i[r].rows[0]]={text:e[i[r].rows[0]],row:n[r].rows[0]});for(var r=0;r<t.length-1;r++)null!=t[r].text&&null==t[r+1].text&&t[r].row+1<e.length&&null==e[t[r].row+1].text&&t[r+1]==e[t[r].row+1]&&(t[r+1]={text:t[r+1],row:t[r].row+1},e[t[r].row+1]={text:e[t[r].row+1],row:r+1});for(var r=t.length-1;r>0;r--)null!=t[r].text&&null==t[r-1].text&&t[r].row>0&&null==e[t[r].row-1].text&&t[r-1]==e[t[r].row-1]&&(t[r-1]={text:t[r-1],row:t[r].row-1},e[t[r].row-1]={text:e[t[r].row-1],row:r-1});return{o:e,n:t}}if(function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t="length"in e&&e.length,n=Z.type(e);return"function"!==n&&!Z.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e))}function i(e,t,n){if(Z.isFunction(t))return Z.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return Z.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(se.test(t))return Z.filter(t,e,n);t=Z.filter(t,e)}return Z.grep(e,function(e){return W.call(t,e)>=0!==n})}function r(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function o(e){var t=fe[e]={};return Z.each(e.match(he)||[],function(e,n){t[n]=!0}),t}function a(){Y.removeEventListener("DOMContentLoaded",a,!1),e.removeEventListener("load",a,!1),Z.ready()}function s(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=Z.expando+s.uid++}function l(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(we,"-$1").toLowerCase(),n=e.getAttribute(i),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:be.test(n)?Z.parseJSON(n):n)}catch(r){}ye.set(e,t,n)}else n=void 0;return n}function u(){return!0}function c(){return!1}function d(){try{return Y.activeElement}catch(e){}}function p(e,t){return Z.nodeName(e,"table")&&Z.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function h(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function f(e){var t=Oe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function g(e,t){for(var n=0,i=e.length;n<i;n++)ve.set(e[n],"globalEval",!t||ve.get(t[n],"globalEval"))}function m(e,t){var n,i,r,o,a,s,l,u;if(1===t.nodeType){if(ve.hasData(e)&&(o=ve.access(e),a=ve.set(t,o),u=o.events)){delete a.handle,a.events={};for(r in u)for(n=0,i=u[r].length;n<i;n++)Z.event.add(t,r,u[r][n])}ye.hasData(e)&&(s=ye.access(e),l=Z.extend({},s),ye.set(t,l))}}function v(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&Z.nodeName(e,t)?Z.merge([e],n):n}function y(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Se.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function b(t,n){var i,r=Z(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(i=e.getDefaultComputedStyle(r[0]))?i.display:Z.css(r[0],"display");return r.detach(),o}function w(e){var t=Y,n=qe[e];return n||(n=b(e,t),"none"!==n&&n||(Fe=(Fe||Z("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=Fe[0].contentDocument,t.write(),t.close(),n=b(e,t),Fe.detach()),qe[e]=n),n}function x(e,t,n){var i,r,o,a,s=e.style;return n=n||Ue(e),n&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||Z.contains(e.ownerDocument,e)||(a=Z.style(e,t)),He.test(a)&&Be.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function k(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function C(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),i=t,r=Xe.length;r--;)if(t=Xe[r]+n,t in e)return t;return i}function S(e,t,n){var i=Ve.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function $(e,t,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=Z.css(e,n+ke[o],!0,r)),i?("content"===n&&(a-=Z.css(e,"padding"+ke[o],!0,r)),"margin"!==n&&(a-=Z.css(e,"border"+ke[o]+"Width",!0,r))):(a+=Z.css(e,"padding"+ke[o],!0,r),"padding"!==n&&(a+=Z.css(e,"border"+ke[o]+"Width",!0,r)));return a}function T(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=Ue(e),a="border-box"===Z.css(e,"boxSizing",!1,o);if(r<=0||null==r){if(r=x(e,t,o),(r<0||null==r)&&(r=e.style[t]),He.test(r))return r;i=a&&(K.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+$(e,t,n||(a?"border":"content"),i,o)+"px"}function _(e,t){for(var n,i,r,o=[],a=0,s=e.length;a<s;a++)i=e[a],i.style&&(o[a]=ve.get(i,"olddisplay"),n=i.style.display,t?(o[a]||"none"!==n||(i.style.display=""),""===i.style.display&&Ce(i)&&(o[a]=ve.access(i,"olddisplay",w(i.nodeName)))):(r=Ce(i),"none"===n&&r||ve.set(i,"olddisplay",r?n:Z.css(i,"display"))));for(a=0;a<s;a++)i=e[a],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?o[a]||"":"none"));return e}function E(e,t,n,i,r){return new E.prototype.init(e,t,n,i,r)}function D(){return setTimeout(function(){Ke=void 0}),Ke=Z.now()}function M(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)n=ke[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function I(e,t,n){for(var i,r=(nt[t]||[]).concat(nt["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function P(e,t,n){var i,r,o,a,s,l,u,c,d=this,p={},h=e.style,f=e.nodeType&&Ce(e),g=ve.get(e,"fxshow");n.queue||(s=Z._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,Z.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],u=Z.css(e,"display"),c="none"===u?ve.get(e,"olddisplay")||w(e.nodeName):u,"inline"===c&&"none"===Z.css(e,"float")&&(h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}));for(i in t)if(r=t[i],Qe.exec(r)){if(delete t[i],o=o||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;f=!0}p[i]=g&&g[i]||Z.style(e,i)}else u=void 0;if(Z.isEmptyObject(p))"inline"===("none"===u?w(e.nodeName):u)&&(h.display=u);else{g?"hidden"in g&&(f=g.hidden):g=ve.access(e,"fxshow",{}),o&&(g.hidden=!f),f?Z(e).show():d.done(function(){Z(e).hide()}),d.done(function(){var t;ve.remove(e,"fxshow");for(t in p)Z.style(e,t,p[t])});for(i in p)a=I(f?g[i]:0,i,d),i in g||(g[i]=a.start,f&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}}function A(e,t){var n,i,r,o,a;for(n in e)if(i=Z.camelCase(n),r=t[i],o=e[n],Z.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),a=Z.cssHooks[i],a&&"expand"in a){o=a.expand(o),delete e[i];for(n in o)n in e||(e[n]=o[n],t[n]=r)}else t[i]=r}function N(e,t,n){var i,r,o=0,a=tt.length,s=Z.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=Ke||D(),n=Math.max(0,u.startTime+u.duration-t),i=n/u.duration||0,o=1-i,a=0,l=u.tweens.length;a<l;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),o<1&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:Z.extend({},t),opts:Z.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Ke||D(),duration:n.duration,tweens:[],createTween:function(t,n){var i=Z.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(i),i},stop:function(t){var n=0,i=t?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(A(c,u.opts.specialEasing);o<a;o++)if(i=tt[o].call(u,e,c,u.opts))return i;return Z.map(c,I,u),Z.isFunction(u.opts.start)&&u.opts.start.call(e,u),Z.fx.timer(Z.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function j(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(he)||[];if(Z.isFunction(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function O(e,t,n,i){function r(s){var l;return o[s]=!0,Z.each(e[s]||[],function(e,s){var u=s(t,n,i);return"string"!=typeof u||a||o[u]?a?!(l=u):void 0:(t.dataTypes.unshift(u),r(u),!1)}),l}var o={},a=e===bt;return r(t.dataTypes[0])||!o["*"]&&r("*")}function L(e,t){var n,i,r=Z.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&Z.extend(!0,e,i),e}function R(e,t,n){for(var i,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}function F(e,t,n,i){var r,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(r in u)if(s=r.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[r]:u[r]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(d){return{state:"parsererror",error:a?d:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}function q(e,t,n,i){var r;if(Z.isArray(t))Z.each(t,function(t,r){n||St.test(e)?i(e,r):q(e+"["+("object"==typeof r?t:"")+"]",r,n,i)});else if(n||"object"!==Z.type(t))i(e,t);else for(r in t)q(e+"["+r+"]",t[r],n,i)}function B(e){return Z.isWindow(e)?e:9===e.nodeType&&e.defaultView}var H=[],U=H.slice,z=H.concat,V=H.push,W=H.indexOf,J={},G=J.toString,X=J.hasOwnProperty,K={},Y=e.document,Q="2.1.4",Z=function(e,t){return new Z.fn.init(e,t)},ee=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,te=/^-ms-/,ne=/-([\da-z])/gi,ie=function(e,t){return t.toUpperCase()};Z.fn=Z.prototype={jquery:Q,constructor:Z,selector:"",length:0,toArray:function(){return U.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:U.call(this)},pushStack:function(e){var t=Z.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return Z.each(this,e,t)},map:function(e){return this.pushStack(Z.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(U.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:V,sort:H.sort,splice:H.splice},Z.extend=Z.fn.extend=function(){var e,t,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||Z.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],i=e[t],a!==i&&(u&&i&&(Z.isPlainObject(i)||(r=Z.isArray(i)))?(r?(r=!1,o=n&&Z.isArray(n)?n:[]):o=n&&Z.isPlainObject(n)?n:{},a[t]=Z.extend(u,o,i)):void 0!==i&&(a[t]=i));return a},Z.extend({expando:"jQuery"+(Q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===Z.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!Z.isArray(e)&&e-parseFloat(e)+1>=0},isPlainObject:function(e){return"object"===Z.type(e)&&!e.nodeType&&!Z.isWindow(e)&&!(e.constructor&&!X.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?J[G.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;e=Z.trim(e),e&&(1===e.indexOf("use strict")?(t=Y.createElement("script"),t.text=e,Y.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(te,"ms-").replace(ne,ie)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var r,o=0,a=e.length,s=n(e);if(i){if(s)for(;o<a&&(r=t.apply(e[o],i),r!==!1);o++);else for(o in e)if(r=t.apply(e[o],i),r===!1)break}else if(s)for(;o<a&&(r=t.call(e[o],o,e[o]),r!==!1);o++);else for(o in e)if(r=t.call(e[o],o,e[o]),r===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(ee,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(n(Object(e))?Z.merge(i,"string"==typeof e?[e]:e):V.call(i,e)),i},inArray:function(e,t,n){return null==t?-1:W.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i,r=[],o=0,a=e.length,s=!n;o<a;o++)i=!t(e[o],o),i!==s&&r.push(e[o]);return r},map:function(e,t,i){var r,o=0,a=e.length,s=n(e),l=[];if(s)for(;o<a;o++)r=t(e[o],o,i),null!=r&&l.push(r);else for(o in e)r=t(e[o],o,i),null!=r&&l.push(r);return z.apply([],l)},guid:1,proxy:function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),Z.isFunction(e))return i=U.call(arguments,2),r=function(){return e.apply(t||this,i.concat(U.call(arguments)))},r.guid=e.guid=e.guid||Z.guid++,r},now:Date.now,support:K}),Z.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){J["[object "+t+"]"]=t.toLowerCase()});var re=function(e){function t(e,t,n,i){var r,o,a,s,l,u,d,h,f,g;if((t?t.ownerDocument||t:q)!==P&&I(t),t=t||P,n=n||[],s=t.nodeType,"string"!=typeof e||!e||1!==s&&9!==s&&11!==s)return n;if(!i&&N){if(11!==s&&(r=ye.exec(e)))if(a=r[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&R(t,o)&&o.id===a)return n.push(o),n}else{if(r[2])return Q.apply(n,t.getElementsByTagName(e)),n;if((a=r[3])&&x.getElementsByClassName)return Q.apply(n,t.getElementsByClassName(a)),n}if(x.qsa&&(!j||!j.test(e))){if(h=d=F,f=t,g=1!==s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(u=$(e),(d=t.getAttribute("id"))?h=d.replace(we,"\\$&"):t.setAttribute("id",h),h="[id='"+h+"'] ",l=u.length;l--;)u[l]=h+p(u[l]);f=be.test(e)&&c(t.parentNode)||t,g=u.join(",")}if(g)try{return Q.apply(n,f.querySelectorAll(g)),n}catch(m){}finally{d||t.removeAttribute("id")}}}return _(e.replace(le,"$1"),t,n,i)}function n(){function e(n,i){return t.push(n+" ")>k.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function i(e){return e[F]=!0,e}function r(e){var t=P.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),i=e.length;i--;)k.attrHandle[n[i]]=t}function a(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||J)-(~e.sourceIndex||J);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function u(e){return i(function(t){return t=+t,i(function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function d(){}function p(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function h(e,t,n){var i=t.dir,r=n&&"parentNode"===i,o=H++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||r)return e(t,n,o)}:function(t,n,a){var s,l,u=[B,o];if(a){for(;t=t[i];)if((1===t.nodeType||r)&&e(t,n,a))return!0}else for(;t=t[i];)if(1===t.nodeType||r){if(l=t[F]||(t[F]={}),(s=l[i])&&s[0]===B&&s[1]===o)return u[2]=s[2];if(l[i]=u,u[2]=e(t,n,a))return!0}}}function f(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function g(e,n,i){for(var r=0,o=n.length;r<o;r++)t(e,n[r],i);return i}function m(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),u&&t.push(s)));return a}function v(e,t,n,r,o,a){return r&&!r[F]&&(r=v(r)),o&&!o[F]&&(o=v(o,a)),i(function(i,a,s,l){var u,c,d,p=[],h=[],f=a.length,v=i||g(t||"*",s.nodeType?[s]:s,[]),y=!e||!i&&t?v:m(v,p,e,s,l),b=n?o||(i?e:f||r)?[]:a:y;if(n&&n(y,b,s,l),r)for(u=m(b,h),r(u,[],s,l),c=u.length;c--;)(d=u[c])&&(b[h[c]]=!(y[h[c]]=d));if(i){if(o||e){if(o){for(u=[],c=b.length;c--;)(d=b[c])&&u.push(y[c]=d);o(null,b=[],u,l)}for(c=b.length;c--;)(d=b[c])&&(u=o?ee(i,d):p[c])>-1&&(i[u]=!(a[u]=d))}}else b=m(b===a?b.splice(f,b.length):b),o?o(null,a,b,l):Q.apply(a,b)})}function y(e){for(var t,n,i,r=e.length,o=k.relative[e[0].type],a=o||k.relative[" "],s=o?1:0,l=h(function(e){return e===t},a,!0),u=h(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,i){var r=!o&&(i||n!==E)||((t=n).nodeType?l(e,n,i):u(e,n,i));return t=null,r}];s<r;s++)if(n=k.relative[e[s].type])c=[h(f(c),n)];else{if(n=k.filter[e[s].type].apply(null,e[s].matches),n[F]){for(i=++s;i<r&&!k.relative[e[i].type];i++);return v(s>1&&f(c),s>1&&p(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(le,"$1"),n,s<i&&y(e.slice(s,i)),i<r&&y(e=e.slice(i)),i<r&&p(e))}c.push(n)}return f(c)}function b(e,n){var r=n.length>0,o=e.length>0,a=function(i,a,s,l,u){var c,d,p,h=0,f="0",g=i&&[],v=[],y=E,b=i||o&&k.find.TAG("*",u),w=B+=null==y?1:Math.random()||.1,x=b.length;for(u&&(E=a!==P&&a);f!==x&&null!=(c=b[f]);f++){if(o&&c){for(d=0;p=e[d++];)if(p(c,a,s)){l.push(c);break}u&&(B=w)}r&&((c=!p&&c)&&h--,i&&g.push(c))}if(h+=f,r&&f!==h){for(d=0;p=n[d++];)p(g,v,a,s);if(i){if(h>0)for(;f--;)g[f]||v[f]||(v[f]=K.call(l));v=m(v)}Q.apply(l,v),u&&!i&&v.length>0&&h+n.length>1&&t.uniqueSort(l)}return u&&(B=w,E=y),g};return r?i(a):a}var w,x,k,C,S,$,T,_,E,D,M,I,P,A,N,j,O,L,R,F="sizzle"+1*new Date,q=e.document,B=0,H=0,U=n(),z=n(),V=n(),W=function(e,t){return e===t&&(M=!0),0},J=1<<31,G={}.hasOwnProperty,X=[],K=X.pop,Y=X.push,Q=X.push,Z=X.slice,ee=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",re=ie.replace("w","w#"),oe="\\["+ne+"*("+ie+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ne+"*\\]",ae=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",se=new RegExp(ne+"+","g"),le=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ue=new RegExp("^"+ne+"*,"+ne+"*"),ce=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),de=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),pe=new RegExp(ae),he=new RegExp("^"+re+"$"),fe={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie.replace("w","w*")+")"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},ge=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ve=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,we=/'|\\/g,xe=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),ke=function(e,t,n){var i="0x"+t-65536;return i!==i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},Ce=function(){I()};try{Q.apply(X=Z.call(q.childNodes),q.childNodes),X[q.childNodes.length].nodeType}catch(Se){Q={apply:X.length?function(e,t){Y.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}x=t.support={},S=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},I=t.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:q;return i!==P&&9===i.nodeType&&i.documentElement?(P=i,A=i.documentElement,n=i.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",Ce,!1):n.attachEvent&&n.attachEvent("onunload",Ce)),N=!S(i),x.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),x.getElementsByTagName=r(function(e){return e.appendChild(i.createComment("")),!e.getElementsByTagName("*").length}),x.getElementsByClassName=ve.test(i.getElementsByClassName),x.getById=r(function(e){return A.appendChild(e).id=F,!i.getElementsByName||!i.getElementsByName(F).length}),x.getById?(k.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&N){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},k.filter.ID=function(e){var t=e.replace(xe,ke);return function(e){return e.getAttribute("id")===t}}):(delete k.find.ID,k.filter.ID=function(e){var t=e.replace(xe,ke);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),k.find.TAG=x.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):x.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},k.find.CLASS=x.getElementsByClassName&&function(e,t){if(N)return t.getElementsByClassName(e)},O=[],j=[],(x.qsa=ve.test(i.querySelectorAll))&&(r(function(e){A.appendChild(e).innerHTML="<a id='"+F+"'></a><select id='"+F+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&j.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||j.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+F+"-]").length||j.push("~="),e.querySelectorAll(":checked").length||j.push(":checked"),e.querySelectorAll("a#"+F+"+*").length||j.push(".#.+[+~]")}),r(function(e){var t=i.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&j.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||j.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),j.push(",.*:")})),(x.matchesSelector=ve.test(L=A.matches||A.webkitMatchesSelector||A.mozMatchesSelector||A.oMatchesSelector||A.msMatchesSelector))&&r(function(e){x.disconnectedMatch=L.call(e,"div"),L.call(e,"[s!='']:x"),O.push("!=",ae)}),j=j.length&&new RegExp(j.join("|")),O=O.length&&new RegExp(O.join("|")),t=ve.test(A.compareDocumentPosition),R=t||ve.test(A.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},W=t?function(e,t){if(e===t)return M=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!x.sortDetached&&t.compareDocumentPosition(e)===n?e===i||e.ownerDocument===q&&R(q,e)?-1:t===i||t.ownerDocument===q&&R(q,t)?1:D?ee(D,e)-ee(D,t):0:4&n?-1:1)}:function(e,t){if(e===t)return M=!0,0;var n,r=0,o=e.parentNode,s=t.parentNode,l=[e],u=[t];if(!o||!s)return e===i?-1:t===i?1:o?-1:s?1:D?ee(D,e)-ee(D,t):0;if(o===s)return a(e,t);for(n=e;n=n.parentNode;)l.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;l[r]===u[r];)r++;return r?a(l[r],u[r]):l[r]===q?-1:u[r]===q?1:0},i):P},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==P&&I(e),n=n.replace(de,"='$1']"),x.matchesSelector&&N&&(!O||!O.test(n))&&(!j||!j.test(n)))try{var i=L.call(e,n);if(i||x.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(r){}return t(n,P,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==P&&I(e),R(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==P&&I(e);var n=k.attrHandle[t.toLowerCase()],i=n&&G.call(k.attrHandle,t.toLowerCase())?n(e,t,!N):void 0;return void 0!==i?i:x.attributes||!N?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,r=0;if(M=!x.detectDuplicates,D=!x.sortStable&&e.slice(0),e.sort(W),M){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return D=null,e},C=t.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=C(t);return n},k=t.selectors={cacheLength:50,createPseudo:i,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(xe,ke),e[3]=(e[3]||e[4]||e[5]||"").replace(xe,ke),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&pe.test(n)&&(t=$(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(xe,ke).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=U[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&U(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(r){var o=t.attr(r,e);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(se," ")+" ").indexOf(i)>-1:"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,p,h,f,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&y){for(c=m[F]||(m[F]={}),u=c[e]||[],h=u[0]===B&&u[1],p=u[0]===B&&u[2],d=h&&m.childNodes[h];d=++h&&d&&d[g]||(p=h=0)||f.pop();)if(1===d.nodeType&&++p&&d===t){c[e]=[B,h,p];break}}else if(y&&(u=(t[F]||(t[F]={}))[e])&&u[0]===B)p=u[1];else for(;(d=++h&&d&&d[g]||(p=h=0)||f.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++p||(y&&((d[F]||(d[F]={}))[e]=[B,p]),d!==t)););return p-=r,p===i||p%i===0&&p/i>=0}}},PSEUDO:function(e,n){var r,o=k.pseudos[e]||k.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[F]?o(n):o.length>1?(r=[e,e,"",n],k.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,t){for(var i,r=o(e,n),a=r.length;a--;)i=ee(e,r[a]),e[i]=!(t[i]=r[a])}):function(e){return o(e,0,r)}):o}},pseudos:{not:i(function(e){var t=[],n=[],r=T(e.replace(le,"$1"));return r[F]?i(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:i(function(e){return function(n){return t(e,n).length>0}}),contains:i(function(e){return e=e.replace(xe,ke),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:i(function(e){return he.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(xe,ke).toLowerCase(),function(t){var n;do if(n=N?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===A},focus:function(e){return e===P.activeElement&&(!P.hasFocus||P.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!k.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return ge.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e;
|
|
|
25743
|
+var _javaLibsBadc905293Js = []byte(`function _log(e,t){if(_canLog){var n=Array.prototype.slice.apply(arguments,[1]),i=new Date,r=i.getHours()+":"+i.getMinutes()+":"+i.getSeconds()+"."+i.getMilliseconds();n[0]=r+" - "+n[0];try{switch(e){case"info":window.console.info.apply(window.console,n);break;case"warn":window.console.warn.apply(window.console,n);break;default:window.console.log.apply(window.console,n)}}catch(o){window.console||(_canLog=!1)}}}function logMsg(e){Array.prototype.unshift.apply(arguments,["debug"]),_log.apply(this,arguments)}function escapeJSDiff(e){var t=e;return t=t.replace(/&/g,"&"),t=t.replace(/</g,"<"),t=t.replace(/>/g,">"),t=t.replace(/"/g,""")}function diffString(e,t){e=e.replace(/\s+$/,""),t=t.replace(/\s+$/,"");var n=diff(""==e?[]:e.split(/\s+/),""==t?[]:t.split(/\s+/)),i="",r=e.match(/\s+/g);null==r?r=["\n"]:r.push("\n");var o=t.match(/\s+/g);if(null==o?o=["\n"]:o.push("\n"),0==n.n.length)for(var a=0;a<n.o.length;a++)i+="<del>"+escapeJSDiff(n.o[a])+r[a]+"</del>";else{if(null==n.n[0].text)for(t=0;t<n.o.length&&null==n.o[t].text;t++)i+="<del>"+escapeJSDiff(n.o[t])+r[t]+"</del>";for(var a=0;a<n.n.length;a++)if(null==n.n[a].text)i+="<ins>"+escapeJSDiff(n.n[a])+o[a]+"</ins>";else{var s="";for(t=n.n[a].row+1;t<n.o.length&&null==n.o[t].text;t++)s+="<del>"+escapeJSDiff(n.o[t])+r[t]+"</del>";i+=" "+n.n[a].text+o[a]+s}}return i}function randomColor(){return"rgb("+100*Math.random()+"%, "+100*Math.random()+"%, "+100*Math.random()+"%)"}function diffString2(e,t){e=e.replace(/\s+$/,""),t=t.replace(/\s+$/,"");var n=diff(""==e?[]:e.split(/\s+/),""==t?[]:t.split(/\s+/)),i=e.match(/\s+/g);null==i?i=["\n"]:i.push("\n");var r=t.match(/\s+/g);null==r?r=["\n"]:r.push("\n");for(var o="",a=new Array,s=0;s<n.o.length;s++)a[s]=randomColor(),o+=null!=n.o[s].text?'<span style="background-color: '+a[s]+'">'+escapeJSDiff(n.o[s].text)+i[s]+"</span>":"<del>"+escapeJSDiff(n.o[s])+i[s]+"</del>";for(var l="",s=0;s<n.n.length;s++)l+=null!=n.n[s].text?'<span style="background-color: '+a[n.n[s].row]+'">'+escapeJSDiff(n.n[s].text)+r[s]+"</span>":"<ins>"+escapeJSDiff(n.n[s])+r[s]+"</ins>";return{o:o,n:l}}function diff(e,t){for(var n=new Object,i=new Object,r=0;r<t.length;r++)null==n[t[r]]&&(n[t[r]]={rows:new Array,o:null}),n[t[r]].rows.push(r);for(var r=0;r<e.length;r++)null==i[e[r]]&&(i[e[r]]={rows:new Array,n:null}),i[e[r]].rows.push(r);for(var r in n)1==n[r].rows.length&&"undefined"!=typeof i[r]&&1==i[r].rows.length&&(t[n[r].rows[0]]={text:t[n[r].rows[0]],row:i[r].rows[0]},e[i[r].rows[0]]={text:e[i[r].rows[0]],row:n[r].rows[0]});for(var r=0;r<t.length-1;r++)null!=t[r].text&&null==t[r+1].text&&t[r].row+1<e.length&&null==e[t[r].row+1].text&&t[r+1]==e[t[r].row+1]&&(t[r+1]={text:t[r+1],row:t[r].row+1},e[t[r].row+1]={text:e[t[r].row+1],row:r+1});for(var r=t.length-1;r>0;r--)null!=t[r].text&&null==t[r-1].text&&t[r].row>0&&null==e[t[r].row-1].text&&t[r-1]==e[t[r].row-1]&&(t[r-1]={text:t[r-1],row:t[r].row-1},e[t[r].row-1]={text:e[t[r].row-1],row:r-1});return{o:e,n:t}}if(function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t="length"in e&&e.length,n=Z.type(e);return"function"!==n&&!Z.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e))}function i(e,t,n){if(Z.isFunction(t))return Z.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return Z.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(se.test(t))return Z.filter(t,e,n);t=Z.filter(t,e)}return Z.grep(e,function(e){return W.call(t,e)>=0!==n})}function r(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function o(e){var t=fe[e]={};return Z.each(e.match(he)||[],function(e,n){t[n]=!0}),t}function a(){Y.removeEventListener("DOMContentLoaded",a,!1),e.removeEventListener("load",a,!1),Z.ready()}function s(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=Z.expando+s.uid++}function l(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(we,"-$1").toLowerCase(),n=e.getAttribute(i),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:be.test(n)?Z.parseJSON(n):n)}catch(r){}ye.set(e,t,n)}else n=void 0;return n}function u(){return!0}function c(){return!1}function d(){try{return Y.activeElement}catch(e){}}function p(e,t){return Z.nodeName(e,"table")&&Z.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function h(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function f(e){var t=Oe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function g(e,t){for(var n=0,i=e.length;n<i;n++)ve.set(e[n],"globalEval",!t||ve.get(t[n],"globalEval"))}function m(e,t){var n,i,r,o,a,s,l,u;if(1===t.nodeType){if(ve.hasData(e)&&(o=ve.access(e),a=ve.set(t,o),u=o.events)){delete a.handle,a.events={};for(r in u)for(n=0,i=u[r].length;n<i;n++)Z.event.add(t,r,u[r][n])}ye.hasData(e)&&(s=ye.access(e),l=Z.extend({},s),ye.set(t,l))}}function v(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&Z.nodeName(e,t)?Z.merge([e],n):n}function y(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Se.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function b(t,n){var i,r=Z(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(i=e.getDefaultComputedStyle(r[0]))?i.display:Z.css(r[0],"display");return r.detach(),o}function w(e){var t=Y,n=qe[e];return n||(n=b(e,t),"none"!==n&&n||(Fe=(Fe||Z("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=Fe[0].contentDocument,t.write(),t.close(),n=b(e,t),Fe.detach()),qe[e]=n),n}function x(e,t,n){var i,r,o,a,s=e.style;return n=n||Ue(e),n&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||Z.contains(e.ownerDocument,e)||(a=Z.style(e,t)),He.test(a)&&Be.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function k(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function C(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),i=t,r=Xe.length;r--;)if(t=Xe[r]+n,t in e)return t;return i}function S(e,t,n){var i=Ve.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function $(e,t,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=Z.css(e,n+ke[o],!0,r)),i?("content"===n&&(a-=Z.css(e,"padding"+ke[o],!0,r)),"margin"!==n&&(a-=Z.css(e,"border"+ke[o]+"Width",!0,r))):(a+=Z.css(e,"padding"+ke[o],!0,r),"padding"!==n&&(a+=Z.css(e,"border"+ke[o]+"Width",!0,r)));return a}function T(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=Ue(e),a="border-box"===Z.css(e,"boxSizing",!1,o);if(r<=0||null==r){if(r=x(e,t,o),(r<0||null==r)&&(r=e.style[t]),He.test(r))return r;i=a&&(K.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+$(e,t,n||(a?"border":"content"),i,o)+"px"}function _(e,t){for(var n,i,r,o=[],a=0,s=e.length;a<s;a++)i=e[a],i.style&&(o[a]=ve.get(i,"olddisplay"),n=i.style.display,t?(o[a]||"none"!==n||(i.style.display=""),""===i.style.display&&Ce(i)&&(o[a]=ve.access(i,"olddisplay",w(i.nodeName)))):(r=Ce(i),"none"===n&&r||ve.set(i,"olddisplay",r?n:Z.css(i,"display"))));for(a=0;a<s;a++)i=e[a],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?o[a]||"":"none"));return e}function E(e,t,n,i,r){return new E.prototype.init(e,t,n,i,r)}function D(){return setTimeout(function(){Ke=void 0}),Ke=Z.now()}function M(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)n=ke[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function I(e,t,n){for(var i,r=(nt[t]||[]).concat(nt["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function P(e,t,n){var i,r,o,a,s,l,u,c,d=this,p={},h=e.style,f=e.nodeType&&Ce(e),g=ve.get(e,"fxshow");n.queue||(s=Z._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,Z.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],u=Z.css(e,"display"),c="none"===u?ve.get(e,"olddisplay")||w(e.nodeName):u,"inline"===c&&"none"===Z.css(e,"float")&&(h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}));for(i in t)if(r=t[i],Qe.exec(r)){if(delete t[i],o=o||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;f=!0}p[i]=g&&g[i]||Z.style(e,i)}else u=void 0;if(Z.isEmptyObject(p))"inline"===("none"===u?w(e.nodeName):u)&&(h.display=u);else{g?"hidden"in g&&(f=g.hidden):g=ve.access(e,"fxshow",{}),o&&(g.hidden=!f),f?Z(e).show():d.done(function(){Z(e).hide()}),d.done(function(){var t;ve.remove(e,"fxshow");for(t in p)Z.style(e,t,p[t])});for(i in p)a=I(f?g[i]:0,i,d),i in g||(g[i]=a.start,f&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}}function A(e,t){var n,i,r,o,a;for(n in e)if(i=Z.camelCase(n),r=t[i],o=e[n],Z.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),a=Z.cssHooks[i],a&&"expand"in a){o=a.expand(o),delete e[i];for(n in o)n in e||(e[n]=o[n],t[n]=r)}else t[i]=r}function N(e,t,n){var i,r,o=0,a=tt.length,s=Z.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=Ke||D(),n=Math.max(0,u.startTime+u.duration-t),i=n/u.duration||0,o=1-i,a=0,l=u.tweens.length;a<l;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),o<1&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:Z.extend({},t),opts:Z.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Ke||D(),duration:n.duration,tweens:[],createTween:function(t,n){var i=Z.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(i),i},stop:function(t){var n=0,i=t?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(A(c,u.opts.specialEasing);o<a;o++)if(i=tt[o].call(u,e,c,u.opts))return i;return Z.map(c,I,u),Z.isFunction(u.opts.start)&&u.opts.start.call(e,u),Z.fx.timer(Z.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function j(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(he)||[];if(Z.isFunction(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function O(e,t,n,i){function r(s){var l;return o[s]=!0,Z.each(e[s]||[],function(e,s){var u=s(t,n,i);return"string"!=typeof u||a||o[u]?a?!(l=u):void 0:(t.dataTypes.unshift(u),r(u),!1)}),l}var o={},a=e===bt;return r(t.dataTypes[0])||!o["*"]&&r("*")}function L(e,t){var n,i,r=Z.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&Z.extend(!0,e,i),e}function R(e,t,n){for(var i,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}function F(e,t,n,i){var r,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(r in u)if(s=r.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[r]:u[r]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(d){return{state:"parsererror",error:a?d:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}function q(e,t,n,i){var r;if(Z.isArray(t))Z.each(t,function(t,r){n||St.test(e)?i(e,r):q(e+"["+("object"==typeof r?t:"")+"]",r,n,i)});else if(n||"object"!==Z.type(t))i(e,t);else for(r in t)q(e+"["+r+"]",t[r],n,i)}function B(e){return Z.isWindow(e)?e:9===e.nodeType&&e.defaultView}var H=[],U=H.slice,z=H.concat,V=H.push,W=H.indexOf,J={},G=J.toString,X=J.hasOwnProperty,K={},Y=e.document,Q="2.1.4",Z=function(e,t){return new Z.fn.init(e,t)},ee=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,te=/^-ms-/,ne=/-([\da-z])/gi,ie=function(e,t){return t.toUpperCase()};Z.fn=Z.prototype={jquery:Q,constructor:Z,selector:"",length:0,toArray:function(){return U.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:U.call(this)},pushStack:function(e){var t=Z.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return Z.each(this,e,t)},map:function(e){return this.pushStack(Z.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(U.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:V,sort:H.sort,splice:H.splice},Z.extend=Z.fn.extend=function(){var e,t,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||Z.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],i=e[t],a!==i&&(u&&i&&(Z.isPlainObject(i)||(r=Z.isArray(i)))?(r?(r=!1,o=n&&Z.isArray(n)?n:[]):o=n&&Z.isPlainObject(n)?n:{},a[t]=Z.extend(u,o,i)):void 0!==i&&(a[t]=i));return a},Z.extend({expando:"jQuery"+(Q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===Z.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!Z.isArray(e)&&e-parseFloat(e)+1>=0},isPlainObject:function(e){return"object"===Z.type(e)&&!e.nodeType&&!Z.isWindow(e)&&!(e.constructor&&!X.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?J[G.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;e=Z.trim(e),e&&(1===e.indexOf("use strict")?(t=Y.createElement("script"),t.text=e,Y.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(te,"ms-").replace(ne,ie)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var r,o=0,a=e.length,s=n(e);if(i){if(s)for(;o<a&&(r=t.apply(e[o],i),r!==!1);o++);else for(o in e)if(r=t.apply(e[o],i),r===!1)break}else if(s)for(;o<a&&(r=t.call(e[o],o,e[o]),r!==!1);o++);else for(o in e)if(r=t.call(e[o],o,e[o]),r===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(ee,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(n(Object(e))?Z.merge(i,"string"==typeof e?[e]:e):V.call(i,e)),i},inArray:function(e,t,n){return null==t?-1:W.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i,r=[],o=0,a=e.length,s=!n;o<a;o++)i=!t(e[o],o),i!==s&&r.push(e[o]);return r},map:function(e,t,i){var r,o=0,a=e.length,s=n(e),l=[];if(s)for(;o<a;o++)r=t(e[o],o,i),null!=r&&l.push(r);else for(o in e)r=t(e[o],o,i),null!=r&&l.push(r);return z.apply([],l)},guid:1,proxy:function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),Z.isFunction(e))return i=U.call(arguments,2),r=function(){return e.apply(t||this,i.concat(U.call(arguments)))},r.guid=e.guid=e.guid||Z.guid++,r},now:Date.now,support:K}),Z.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){J["[object "+t+"]"]=t.toLowerCase()});var re=function(e){function t(e,t,n,i){var r,o,a,s,l,u,d,h,f,g;if((t?t.ownerDocument||t:q)!==P&&I(t),t=t||P,n=n||[],s=t.nodeType,"string"!=typeof e||!e||1!==s&&9!==s&&11!==s)return n;if(!i&&N){if(11!==s&&(r=ye.exec(e)))if(a=r[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&R(t,o)&&o.id===a)return n.push(o),n}else{if(r[2])return Q.apply(n,t.getElementsByTagName(e)),n;if((a=r[3])&&x.getElementsByClassName)return Q.apply(n,t.getElementsByClassName(a)),n}if(x.qsa&&(!j||!j.test(e))){if(h=d=F,f=t,g=1!==s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(u=$(e),(d=t.getAttribute("id"))?h=d.replace(we,"\\$&"):t.setAttribute("id",h),h="[id='"+h+"'] ",l=u.length;l--;)u[l]=h+p(u[l]);f=be.test(e)&&c(t.parentNode)||t,g=u.join(",")}if(g)try{return Q.apply(n,f.querySelectorAll(g)),n}catch(m){}finally{d||t.removeAttribute("id")}}}return _(e.replace(le,"$1"),t,n,i)}function n(){function e(n,i){return t.push(n+" ")>k.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function i(e){return e[F]=!0,e}function r(e){var t=P.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),i=e.length;i--;)k.attrHandle[n[i]]=t}function a(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||J)-(~e.sourceIndex||J);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function u(e){return i(function(t){return t=+t,i(function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function d(){}function p(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function h(e,t,n){var i=t.dir,r=n&&"parentNode"===i,o=H++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||r)return e(t,n,o)}:function(t,n,a){var s,l,u=[B,o];if(a){for(;t=t[i];)if((1===t.nodeType||r)&&e(t,n,a))return!0}else for(;t=t[i];)if(1===t.nodeType||r){if(l=t[F]||(t[F]={}),(s=l[i])&&s[0]===B&&s[1]===o)return u[2]=s[2];if(l[i]=u,u[2]=e(t,n,a))return!0}}}function f(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function g(e,n,i){for(var r=0,o=n.length;r<o;r++)t(e,n[r],i);return i}function m(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),u&&t.push(s)));return a}function v(e,t,n,r,o,a){return r&&!r[F]&&(r=v(r)),o&&!o[F]&&(o=v(o,a)),i(function(i,a,s,l){var u,c,d,p=[],h=[],f=a.length,v=i||g(t||"*",s.nodeType?[s]:s,[]),y=!e||!i&&t?v:m(v,p,e,s,l),b=n?o||(i?e:f||r)?[]:a:y;if(n&&n(y,b,s,l),r)for(u=m(b,h),r(u,[],s,l),c=u.length;c--;)(d=u[c])&&(b[h[c]]=!(y[h[c]]=d));if(i){if(o||e){if(o){for(u=[],c=b.length;c--;)(d=b[c])&&u.push(y[c]=d);o(null,b=[],u,l)}for(c=b.length;c--;)(d=b[c])&&(u=o?ee(i,d):p[c])>-1&&(i[u]=!(a[u]=d))}}else b=m(b===a?b.splice(f,b.length):b),o?o(null,a,b,l):Q.apply(a,b)})}function y(e){for(var t,n,i,r=e.length,o=k.relative[e[0].type],a=o||k.relative[" "],s=o?1:0,l=h(function(e){return e===t},a,!0),u=h(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,i){var r=!o&&(i||n!==E)||((t=n).nodeType?l(e,n,i):u(e,n,i));return t=null,r}];s<r;s++)if(n=k.relative[e[s].type])c=[h(f(c),n)];else{if(n=k.filter[e[s].type].apply(null,e[s].matches),n[F]){for(i=++s;i<r&&!k.relative[e[i].type];i++);return v(s>1&&f(c),s>1&&p(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(le,"$1"),n,s<i&&y(e.slice(s,i)),i<r&&y(e=e.slice(i)),i<r&&p(e))}c.push(n)}return f(c)}function b(e,n){var r=n.length>0,o=e.length>0,a=function(i,a,s,l,u){var c,d,p,h=0,f="0",g=i&&[],v=[],y=E,b=i||o&&k.find.TAG("*",u),w=B+=null==y?1:Math.random()||.1,x=b.length;for(u&&(E=a!==P&&a);f!==x&&null!=(c=b[f]);f++){if(o&&c){for(d=0;p=e[d++];)if(p(c,a,s)){l.push(c);break}u&&(B=w)}r&&((c=!p&&c)&&h--,i&&g.push(c))}if(h+=f,r&&f!==h){for(d=0;p=n[d++];)p(g,v,a,s);if(i){if(h>0)for(;f--;)g[f]||v[f]||(v[f]=K.call(l));v=m(v)}Q.apply(l,v),u&&!i&&v.length>0&&h+n.length>1&&t.uniqueSort(l)}return u&&(B=w,E=y),g};return r?i(a):a}var w,x,k,C,S,$,T,_,E,D,M,I,P,A,N,j,O,L,R,F="sizzle"+1*new Date,q=e.document,B=0,H=0,U=n(),z=n(),V=n(),W=function(e,t){return e===t&&(M=!0),0},J=1<<31,G={}.hasOwnProperty,X=[],K=X.pop,Y=X.push,Q=X.push,Z=X.slice,ee=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",re=ie.replace("w","w#"),oe="\\["+ne+"*("+ie+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ne+"*\\]",ae=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",se=new RegExp(ne+"+","g"),le=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ue=new RegExp("^"+ne+"*,"+ne+"*"),ce=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),de=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),pe=new RegExp(ae),he=new RegExp("^"+re+"$"),fe={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie.replace("w","w*")+")"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},ge=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ve=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,we=/'|\\/g,xe=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),ke=function(e,t,n){var i="0x"+t-65536;return i!==i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},Ce=function(){I()};try{Q.apply(X=Z.call(q.childNodes),q.childNodes),X[q.childNodes.length].nodeType}catch(Se){Q={apply:X.length?function(e,t){Y.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}x=t.support={},S=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},I=t.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:q;return i!==P&&9===i.nodeType&&i.documentElement?(P=i,A=i.documentElement,n=i.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",Ce,!1):n.attachEvent&&n.attachEvent("onunload",Ce)),N=!S(i),x.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),x.getElementsByTagName=r(function(e){return e.appendChild(i.createComment("")),!e.getElementsByTagName("*").length}),x.getElementsByClassName=ve.test(i.getElementsByClassName),x.getById=r(function(e){return A.appendChild(e).id=F,!i.getElementsByName||!i.getElementsByName(F).length}),x.getById?(k.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&N){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},k.filter.ID=function(e){var t=e.replace(xe,ke);return function(e){return e.getAttribute("id")===t}}):(delete k.find.ID,k.filter.ID=function(e){var t=e.replace(xe,ke);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),k.find.TAG=x.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):x.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},k.find.CLASS=x.getElementsByClassName&&function(e,t){if(N)return t.getElementsByClassName(e)},O=[],j=[],(x.qsa=ve.test(i.querySelectorAll))&&(r(function(e){A.appendChild(e).innerHTML="<a id='"+F+"'></a><select id='"+F+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&j.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||j.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+F+"-]").length||j.push("~="),e.querySelectorAll(":checked").length||j.push(":checked"),e.querySelectorAll("a#"+F+"+*").length||j.push(".#.+[+~]")}),r(function(e){var t=i.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&j.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||j.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),j.push(",.*:")})),(x.matchesSelector=ve.test(L=A.matches||A.webkitMatchesSelector||A.mozMatchesSelector||A.oMatchesSelector||A.msMatchesSelector))&&r(function(e){x.disconnectedMatch=L.call(e,"div"),L.call(e,"[s!='']:x"),O.push("!=",ae)}),j=j.length&&new RegExp(j.join("|")),O=O.length&&new RegExp(O.join("|")),t=ve.test(A.compareDocumentPosition),R=t||ve.test(A.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},W=t?function(e,t){if(e===t)return M=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!x.sortDetached&&t.compareDocumentPosition(e)===n?e===i||e.ownerDocument===q&&R(q,e)?-1:t===i||t.ownerDocument===q&&R(q,t)?1:D?ee(D,e)-ee(D,t):0:4&n?-1:1)}:function(e,t){if(e===t)return M=!0,0;var n,r=0,o=e.parentNode,s=t.parentNode,l=[e],u=[t];if(!o||!s)return e===i?-1:t===i?1:o?-1:s?1:D?ee(D,e)-ee(D,t):0;if(o===s)return a(e,t);for(n=e;n=n.parentNode;)l.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;l[r]===u[r];)r++;return r?a(l[r],u[r]):l[r]===q?-1:u[r]===q?1:0},i):P},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==P&&I(e),n=n.replace(de,"='$1']"),x.matchesSelector&&N&&(!O||!O.test(n))&&(!j||!j.test(n)))try{var i=L.call(e,n);if(i||x.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(r){}return t(n,P,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==P&&I(e),R(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==P&&I(e);var n=k.attrHandle[t.toLowerCase()],i=n&&G.call(k.attrHandle,t.toLowerCase())?n(e,t,!N):void 0;return void 0!==i?i:x.attributes||!N?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,r=0;if(M=!x.detectDuplicates,D=!x.sortStable&&e.slice(0),e.sort(W),M){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return D=null,e},C=t.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=C(t);return n},k=t.selectors={cacheLength:50,createPseudo:i,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(xe,ke),e[3]=(e[3]||e[4]||e[5]||"").replace(xe,ke),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&pe.test(n)&&(t=$(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(xe,ke).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=U[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&U(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(r){var o=t.attr(r,e);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(se," ")+" ").indexOf(i)>-1:"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,p,h,f,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&y){for(c=m[F]||(m[F]={}),u=c[e]||[],h=u[0]===B&&u[1],p=u[0]===B&&u[2],d=h&&m.childNodes[h];d=++h&&d&&d[g]||(p=h=0)||f.pop();)if(1===d.nodeType&&++p&&d===t){c[e]=[B,h,p];break}}else if(y&&(u=(t[F]||(t[F]={}))[e])&&u[0]===B)p=u[1];else for(;(d=++h&&d&&d[g]||(p=h=0)||f.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++p||(y&&((d[F]||(d[F]={}))[e]=[B,p]),d!==t)););return p-=r,p===i||p%i===0&&p/i>=0}}},PSEUDO:function(e,n){var r,o=k.pseudos[e]||k.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[F]?o(n):o.length>1?(r=[e,e,"",n],k.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,t){for(var i,r=o(e,n),a=r.length;a--;)i=ee(e,r[a]),e[i]=!(t[i]=r[a])}):function(e){return o(e,0,r)}):o}},pseudos:{not:i(function(e){var t=[],n=[],r=T(e.replace(le,"$1"));return r[F]?i(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:i(function(e){return function(n){return t(e,n).length>0}}),contains:i(function(e){return e=e.replace(xe,ke),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:i(function(e){return he.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(xe,ke).toLowerCase(),function(t){var n;do if(n=N?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===A},focus:function(e){return e===P.activeElement&&(!P.hasFocus||P.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!k.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return ge.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e;
|
|
25744
|
25744
|
}),odd:u(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var i=n<0?n+t:n;--i>=0;)e.push(i);return e}),gt:u(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}},k.pseudos.nth=k.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})k.pseudos[w]=s(w);for(w in{submit:!0,reset:!0})k.pseudos[w]=l(w);return d.prototype=k.filters=k.pseudos,k.setFilters=new d,$=t.tokenize=function(e,n){var i,r,o,a,s,l,u,c=z[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],u=k.preFilter;s;){i&&!(r=ue.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=ce.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(le," ")}),s=s.slice(i.length));for(a in k.filter)!(r=fe[a].exec(s))||u[a]&&!(r=u[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?t.error(e):z(e,l).slice(0)},T=t.compile=function(e,t){var n,i=[],r=[],o=V[e+" "];if(!o){for(t||(t=$(e)),n=t.length;n--;)o=y(t[n]),o[F]?i.push(o):r.push(o);o=V(e,b(r,i)),o.selector=e}return o},_=t.select=function(e,t,n,i){var r,o,a,s,l,u="function"==typeof e&&e,d=!i&&$(e=u.selector||e);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&x.getById&&9===t.nodeType&&N&&k.relative[o[1].type]){if(t=(k.find.ID(a.matches[0].replace(xe,ke),t)||[])[0],!t)return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=fe.needsContext.test(e)?0:o.length;r--&&(a=o[r],!k.relative[s=a.type]);)if((l=k.find[s])&&(i=l(a.matches[0].replace(xe,ke),be.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&p(o),!e)return Q.apply(n,i),n;break}}return(u||T(e,d))(i,t,!N,n,be.test(e)&&c(t.parentNode)||t),n},x.sortStable=F.split("").sort(W).join("")===F,x.detectDuplicates=!!M,I(),x.sortDetached=r(function(e){return 1&e.compareDocumentPosition(P.createElement("div"))}),r(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),x.attributes&&r(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var i;if(!n)return e[t]===!0?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),t}(e);Z.find=re,Z.expr=re.selectors,Z.expr[":"]=Z.expr.pseudos,Z.unique=re.uniqueSort,Z.text=re.getText,Z.isXMLDoc=re.isXML,Z.contains=re.contains;var oe=Z.expr.match.needsContext,ae=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,se=/^.[^:#\[\.,]*$/;Z.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?Z.find.matchesSelector(i,e)?[i]:[]:Z.find.matches(e,Z.grep(t,function(e){return 1===e.nodeType}))},Z.fn.extend({find:function(e){var t,n=this.length,i=[],r=this;if("string"!=typeof e)return this.pushStack(Z(e).filter(function(){for(t=0;t<n;t++)if(Z.contains(r[t],this))return!0}));for(t=0;t<n;t++)Z.find(e,r[t],i);return i=this.pushStack(n>1?Z.unique(i):i),i.selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(i(this,e||[],!1))},not:function(e){return this.pushStack(i(this,e||[],!0))},is:function(e){return!!i(this,"string"==typeof e&&oe.test(e)?Z(e):e||[],!1).length}});var le,ue=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ce=Z.fn.init=function(e,t){var n,i;if(!e)return this;if("string"==typeof e){if(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ue.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||le).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof Z?t[0]:t,Z.merge(this,Z.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:Y,!0)),ae.test(n[1])&&Z.isPlainObject(t))for(n in t)Z.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return i=Y.getElementById(n[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=Y,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):Z.isFunction(e)?"undefined"!=typeof le.ready?le.ready(e):e(Z):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),Z.makeArray(e,this))};ce.prototype=Z.fn,le=Z(Y);var de=/^(?:parents|prev(?:Until|All))/,pe={children:!0,contents:!0,next:!0,prev:!0};Z.extend({dir:function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&Z(e).is(n))break;i.push(e)}return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),Z.fn.extend({has:function(e){var t=Z(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(Z.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,i=0,r=this.length,o=[],a=oe.test(e)||"string"!=typeof e?Z(e,t||this.context):0;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&Z.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?Z.unique(o):o)},index:function(e){return e?"string"==typeof e?W.call(Z(e),this[0]):W.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Z.unique(Z.merge(this.get(),Z(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Z.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Z.dir(e,"parentNode")},parentsUntil:function(e,t,n){return Z.dir(e,"parentNode",n)},next:function(e){return r(e,"nextSibling")},prev:function(e){return r(e,"previousSibling")},nextAll:function(e){return Z.dir(e,"nextSibling")},prevAll:function(e){return Z.dir(e,"previousSibling")},nextUntil:function(e,t,n){return Z.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return Z.dir(e,"previousSibling",n)},siblings:function(e){return Z.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return Z.sibling(e.firstChild)},contents:function(e){return e.contentDocument||Z.merge([],e.childNodes)}},function(e,t){Z.fn[e]=function(n,i){var r=Z.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=Z.filter(i,r)),this.length>1&&(pe[e]||Z.unique(r),de.test(e)&&r.reverse()),this.pushStack(r)}});var he=/\S+/g,fe={};Z.Callbacks=function(e){e="string"==typeof e?fe[e]||o(e):Z.extend({},e);var t,n,i,r,a,s,l=[],u=!e.once&&[],c=function(o){for(t=e.memory&&o,n=!0,s=r||0,r=0,a=l.length,i=!0;l&&s<a;s++)if(l[s].apply(o[0],o[1])===!1&&e.stopOnFalse){t=!1;break}i=!1,l&&(u?u.length&&c(u.shift()):t?l=[]:d.disable())},d={add:function(){if(l){var n=l.length;!function o(t){Z.each(t,function(t,n){var i=Z.type(n);"function"===i?e.unique&&d.has(n)||l.push(n):n&&n.length&&"string"!==i&&o(n)})}(arguments),i?a=l.length:t&&(r=n,c(t))}return this},remove:function(){return l&&Z.each(arguments,function(e,t){for(var n;(n=Z.inArray(t,l,n))>-1;)l.splice(n,1),i&&(n<=a&&a--,n<=s&&s--)}),this},has:function(e){return e?Z.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],a=0,this},disable:function(){return l=u=t=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,t||d.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||n&&!u||(t=t||[],t=[e,t.slice?t.slice():t],i?u.push(t):c(t)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d},Z.extend({Deferred:function(e){var t=[["resolve","done",Z.Callbacks("once memory"),"resolved"],["reject","fail",Z.Callbacks("once memory"),"rejected"],["notify","progress",Z.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return Z.Deferred(function(n){Z.each(t,function(t,o){var a=Z.isFunction(e[t])&&e[t];r[o[1]](function(){var e=a&&a.apply(this,arguments);e&&Z.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===i?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?Z.extend(e,i):i}},r={};return i.pipe=i.then,Z.each(t,function(e,o){var a=o[2],s=o[3];i[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=a.fireWith}),i.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,i,r=0,o=U.call(arguments),a=o.length,s=1!==a||e&&Z.isFunction(e.promise)?a:0,l=1===s?e:Z.Deferred(),u=function(e,n,i){return function(r){n[e]=this,i[e]=arguments.length>1?U.call(arguments):r,i===t?l.notifyWith(n,i):--s||l.resolveWith(n,i)}};if(a>1)for(t=new Array(a),n=new Array(a),i=new Array(a);r<a;r++)o[r]&&Z.isFunction(o[r].promise)?o[r].promise().done(u(r,i,o)).fail(l.reject).progress(u(r,n,t)):--s;return s||l.resolveWith(i,o),l.promise()}});var ge;Z.fn.ready=function(e){return Z.ready.promise().done(e),this},Z.extend({isReady:!1,readyWait:1,holdReady:function(e){e?Z.readyWait++:Z.ready(!0)},ready:function(e){(e===!0?--Z.readyWait:Z.isReady)||(Z.isReady=!0,e!==!0&&--Z.readyWait>0||(ge.resolveWith(Y,[Z]),Z.fn.triggerHandler&&(Z(Y).triggerHandler("ready"),Z(Y).off("ready"))))}}),Z.ready.promise=function(t){return ge||(ge=Z.Deferred(),"complete"===Y.readyState?setTimeout(Z.ready):(Y.addEventListener("DOMContentLoaded",a,!1),e.addEventListener("load",a,!1))),ge.promise(t)},Z.ready.promise();var me=Z.access=function(e,t,n,i,r,o,a){var s=0,l=e.length,u=null==n;if("object"===Z.type(n)){r=!0;for(s in n)Z.access(e,t,s,n[s],!0,o,a)}else if(void 0!==i&&(r=!0,Z.isFunction(i)||(a=!0),u&&(a?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(Z(e),n)})),t))for(;s<l;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:u?t.call(e):l?t(e[0],n):o};Z.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},s.uid=1,s.accepts=Z.acceptData,s.prototype={key:function(e){if(!s.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=s.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(i){t[this.expando]=n,Z.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var i,r=this.key(e),o=this.cache[r];if("string"==typeof t)o[t]=n;else if(Z.isEmptyObject(o))Z.extend(this.cache[r],t);else for(i in t)o[i]=t[i];return o},get:function(e,t){var n=this.cache[this.key(e)];return void 0===t?n:n[t]},access:function(e,t,n){var i;return void 0===t||t&&"string"==typeof t&&void 0===n?(i=this.get(e,t),void 0!==i?i:this.get(e,Z.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i,r,o=this.key(e),a=this.cache[o];if(void 0===t)this.cache[o]={};else{Z.isArray(t)?i=t.concat(t.map(Z.camelCase)):(r=Z.camelCase(t),t in a?i=[t,r]:(i=r,i=i in a?[i]:i.match(he)||[])),n=i.length;for(;n--;)delete a[i[n]]}},hasData:function(e){return!Z.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var ve=new s,ye=new s,be=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,we=/([A-Z])/g;Z.extend({hasData:function(e){return ye.hasData(e)||ve.hasData(e)},data:function(e,t,n){return ye.access(e,t,n)},removeData:function(e,t){ye.remove(e,t)},_data:function(e,t,n){return ve.access(e,t,n)},_removeData:function(e,t){ve.remove(e,t)}}),Z.fn.extend({data:function(e,t){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(r=ye.get(o),1===o.nodeType&&!ve.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(i=a[n].name,0===i.indexOf("data-")&&(i=Z.camelCase(i.slice(5)),l(o,i,r[i])));ve.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){ye.set(this,e)}):me(this,function(t){var n,i=Z.camelCase(e);if(o&&void 0===t){if(n=ye.get(o,e),void 0!==n)return n;if(n=ye.get(o,i),void 0!==n)return n;if(n=l(o,i,void 0),void 0!==n)return n}else this.each(function(){var n=ye.get(this,i);ye.set(this,i,t),e.indexOf("-")!==-1&&void 0!==n&&ye.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){ye.remove(this,e)})}}),Z.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=ve.get(e,t),n&&(!i||Z.isArray(n)?i=ve.access(e,t,Z.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=Z.queue(e,t),i=n.length,r=n.shift(),o=Z._queueHooks(e,t),a=function(){Z.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,a,o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ve.get(e,n)||ve.access(e,n,{empty:Z.Callbacks("once memory").add(function(){ve.remove(e,[t+"queue",n])})})}}),Z.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?Z.queue(this[0],e):void 0===t?this:this.each(function(){var n=Z.queue(this,e,t);Z._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&Z.dequeue(this,e)})},dequeue:function(e){return this.each(function(){Z.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=Z.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=ve.get(o[a],e+"queueHooks"),n&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}});var xe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ke=["Top","Right","Bottom","Left"],Ce=function(e,t){return e=t||e,"none"===Z.css(e,"display")||!Z.contains(e.ownerDocument,e)},Se=/^(?:checkbox|radio)$/i;!function(){var e=Y.createDocumentFragment(),t=e.appendChild(Y.createElement("div")),n=Y.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),K.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",K.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var $e="undefined";K.focusinBubbles="onfocusin"in e;var Te=/^key/,_e=/^(?:mouse|pointer|contextmenu)|click/,Ee=/^(?:focusinfocus|focusoutblur)$/,De=/^([^.]*)(?:\.(.+)|)$/;Z.event={global:{},add:function(e,t,n,i,r){var o,a,s,l,u,c,d,p,h,f,g,m=ve.get(e);if(m)for(n.handler&&(o=n,n=o.handler,r=o.selector),n.guid||(n.guid=Z.guid++),(l=m.events)||(l=m.events={}),(a=m.handle)||(a=m.handle=function(t){return typeof Z!==$e&&Z.event.triggered!==t.type?Z.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(he)||[""],u=t.length;u--;)s=De.exec(t[u])||[],h=g=s[1],f=(s[2]||"").split(".").sort(),h&&(d=Z.event.special[h]||{},h=(r?d.delegateType:d.bindType)||h,d=Z.event.special[h]||{},c=Z.extend({type:h,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&Z.expr.match.needsContext.test(r),namespace:f.join(".")},o),(p=l[h])||(p=l[h]=[],p.delegateCount=0,d.setup&&d.setup.call(e,i,f,a)!==!1||e.addEventListener&&e.addEventListener(h,a,!1)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,c):p.push(c),Z.event.global[h]=!0)},remove:function(e,t,n,i,r){var o,a,s,l,u,c,d,p,h,f,g,m=ve.hasData(e)&&ve.get(e);if(m&&(l=m.events)){for(t=(t||"").match(he)||[""],u=t.length;u--;)if(s=De.exec(t[u])||[],h=g=s[1],f=(s[2]||"").split(".").sort(),h){for(d=Z.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,p=l[h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!r&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,d.remove&&d.remove.call(e,c));a&&!p.length&&(d.teardown&&d.teardown.call(e,f,m.handle)!==!1||Z.removeEvent(e,h,m.handle),delete l[h])}else for(h in l)Z.event.remove(e,h+t[u],n,i,!0);Z.isEmptyObject(l)&&(delete m.handle,ve.remove(e,"events"))}},trigger:function(t,n,i,r){var o,a,s,l,u,c,d,p=[i||Y],h=X.call(t,"type")?t.type:t,f=X.call(t,"namespace")?t.namespace.split("."):[];if(a=s=i=i||Y,3!==i.nodeType&&8!==i.nodeType&&!Ee.test(h+Z.event.triggered)&&(h.indexOf(".")>=0&&(f=h.split("."),h=f.shift(),f.sort()),u=h.indexOf(":")<0&&"on"+h,t=t[Z.expando]?t:new Z.Event(h,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=f.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:Z.makeArray(n,[t]),d=Z.event.special[h]||{},r||!d.trigger||d.trigger.apply(i,n)!==!1)){if(!r&&!d.noBubble&&!Z.isWindow(i)){for(l=d.delegateType||h,Ee.test(l+h)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(i.ownerDocument||Y)&&p.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)t.type=o>1?l:d.bindType||h,c=(ve.get(a,"events")||{})[t.type]&&ve.get(a,"handle"),c&&c.apply(a,n),c=u&&a[u],c&&c.apply&&Z.acceptData(a)&&(t.result=c.apply(a,n),t.result===!1&&t.preventDefault());return t.type=h,r||t.isDefaultPrevented()||d._default&&d._default.apply(p.pop(),n)!==!1||!Z.acceptData(i)||u&&Z.isFunction(i[h])&&!Z.isWindow(i)&&(s=i[u],s&&(i[u]=null),Z.event.triggered=h,i[h](),Z.event.triggered=void 0,s&&(i[u]=s)),t.result}},dispatch:function(e){e=Z.event.fix(e);var t,n,i,r,o,a=[],s=U.call(arguments),l=(ve.get(this,"events")||{})[e.type]||[],u=Z.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,e)!==!1){for(a=Z.event.handlers.call(this,e,l),t=0;(r=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(o.namespace)||(e.handleObj=o,e.data=o.data,i=((Z.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s),void 0!==i&&(e.result=i)===!1&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!==this;l=l.parentNode||this)if(l.disabled!==!0||"click"!==e.type){for(i=[],n=0;n<s;n++)o=t[n],r=o.selector+" ",void 0===i[r]&&(i[r]=o.needsContext?Z(r,this).index(l)>=0:Z.find(r,this,null,[l]).length),i[r]&&i.push(o);i.length&&a.push({elem:l,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,r,o=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||Y,i=n.documentElement,r=n.body,e.pageX=t.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[Z.expando])return e;var t,n,i,r=e.type,o=e,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=_e.test(r)?this.mouseHooks:Te.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,e=new Z.Event(o),t=i.length;t--;)n=i[t],e[n]=o[n];return e.target||(e.target=Y),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==d()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===d()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&Z.nodeName(this,"input"))return this.click(),!1},_default:function(e){return Z.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,i){var r=Z.extend(new Z.Event,n,{type:e,isSimulated:!0,originalEvent:{}});i?Z.event.trigger(r,null,t):Z.event.dispatch.call(t,r),r.isDefaultPrevented()&&n.preventDefault()}},Z.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},Z.Event=function(e,t){return this instanceof Z.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?u:c):this.type=e,t&&Z.extend(this,t),this.timeStamp=e&&e.timeStamp||Z.now(),void(this[Z.expando]=!0)):new Z.Event(e,t)},Z.Event.prototype={isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=u,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=u,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=u,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},Z.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){Z.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,r=e.relatedTarget,o=e.handleObj;return r&&(r===i||Z.contains(i,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),K.focusinBubbles||Z.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){Z.event.simulate(t,e.target,Z.event.fix(e),!0)};Z.event.special[t]={setup:function(){var i=this.ownerDocument||this,r=ve.access(i,t);r||i.addEventListener(e,n,!0),ve.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=ve.access(i,t)-1;r?ve.access(i,t,r):(i.removeEventListener(e,n,!0),ve.remove(i,t))}}}),Z.fn.extend({on:function(e,t,n,i,r){var o,a;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(a in e)this.on(a,t,n,e[a],r);return this}if(null==n&&null==i?(i=t,n=t=void 0):null==i&&("string"==typeof t?(i=n,n=void 0):(i=n,n=t,t=void 0)),i===!1)i=c;else if(!i)return this;return 1===r&&(o=i,i=function(e){return Z().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=Z.guid++)),this.each(function(){Z.event.add(this,e,i,n,t)})},one:function(e,t,n,i){return this.on(e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,Z(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return t!==!1&&"function"!=typeof t||(n=t,t=void 0),n===!1&&(n=c),this.each(function(){Z.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){Z.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return Z.event.trigger(e,t,n,!0)}});var Me=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ie=/<([\w:]+)/,Pe=/<|&#?\w+;/,Ae=/<(?:script|style|link)/i,Ne=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^$|\/(?:java|ecma)script/i,Oe=/^true\/(.*)/,Le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Re={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Re.optgroup=Re.option,Re.tbody=Re.tfoot=Re.colgroup=Re.caption=Re.thead,Re.th=Re.td,Z.extend({clone:function(e,t,n){var i,r,o,a,s=e.cloneNode(!0),l=Z.contains(e.ownerDocument,e);if(!(K.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Z.isXMLDoc(e)))for(a=v(s),o=v(e),i=0,r=o.length;i<r;i++)y(o[i],a[i]);if(t)if(n)for(o=o||v(e),a=a||v(s),i=0,r=o.length;i<r;i++)m(o[i],a[i]);else m(e,s);return a=v(s,"script"),a.length>0&&g(a,!l&&v(e,"script")),s},buildFragment:function(e,t,n,i){for(var r,o,a,s,l,u,c=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if(r=e[p],r||0===r)if("object"===Z.type(r))Z.merge(d,r.nodeType?[r]:r);else if(Pe.test(r)){for(o=o||c.appendChild(t.createElement("div")),a=(Ie.exec(r)||["",""])[1].toLowerCase(),s=Re[a]||Re._default,o.innerHTML=s[1]+r.replace(Me,"<$1></$2>")+s[2],u=s[0];u--;)o=o.lastChild;Z.merge(d,o.childNodes),o=c.firstChild,o.textContent=""}else d.push(t.createTextNode(r));for(c.textContent="",p=0;r=d[p++];)if((!i||Z.inArray(r,i)===-1)&&(l=Z.contains(r.ownerDocument,r),o=v(c.appendChild(r),"script"),l&&g(o),n))for(u=0;r=o[u++];)je.test(r.type||"")&&n.push(r);return c},cleanData:function(e){for(var t,n,i,r,o=Z.event.special,a=0;void 0!==(n=e[a]);a++){if(Z.acceptData(n)&&(r=n[ve.expando],r&&(t=ve.cache[r]))){if(t.events)for(i in t.events)o[i]?Z.event.remove(n,i):Z.removeEvent(n,i,t.handle);ve.cache[r]&&delete ve.cache[r]}delete ye.cache[n[ye.expando]]}}}),Z.fn.extend({text:function(e){return me(this,function(e){return void 0===e?Z.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=p(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=p(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,i=e?Z.filter(e,this):this,r=0;null!=(n=i[r]);r++)t||1!==n.nodeType||Z.cleanData(v(n)),n.parentNode&&(t&&Z.contains(n.ownerDocument,n)&&g(v(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(Z.cleanData(v(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return Z.clone(this,e,t)})},html:function(e){return me(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ae.test(e)&&!Re[(Ie.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Me,"<$1></$2>");try{for(;n<i;n++)t=this[n]||{},1===t.nodeType&&(Z.cleanData(v(t,!1)),t.innerHTML=e);t=0}catch(r){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,Z.cleanData(v(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=z.apply([],e);var n,i,r,o,a,s,l=0,u=this.length,c=this,d=u-1,p=e[0],g=Z.isFunction(p);if(g||u>1&&"string"==typeof p&&!K.checkClone&&Ne.test(p))return this.each(function(n){var i=c.eq(n);g&&(e[0]=p.call(this,n,i.html())),i.domManip(e,t)});if(u&&(n=Z.buildFragment(e,this[0].ownerDocument,!1,this),i=n.firstChild,1===n.childNodes.length&&(n=i),i)){for(r=Z.map(v(n,"script"),h),o=r.length;l<u;l++)a=n,l!==d&&(a=Z.clone(a,!0,!0),o&&Z.merge(r,v(a,"script"))),t.call(this[l],a,l);if(o)for(s=r[r.length-1].ownerDocument,Z.map(r,f),l=0;l<o;l++)a=r[l],je.test(a.type||"")&&!ve.access(a,"globalEval")&&Z.contains(s,a)&&(a.src?Z._evalUrl&&Z._evalUrl(a.src):Z.globalEval(a.textContent.replace(Le,"")))}return this}}),Z.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Z.fn[e]=function(e){for(var n,i=[],r=Z(e),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),Z(r[a])[t](n),V.apply(i,n.get());return this.pushStack(i)}});var Fe,qe={},Be=/^margin/,He=new RegExp("^("+xe+")(?!px)[a-z%]+$","i"),Ue=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)};!function(){function t(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",a.innerHTML="",r.appendChild(o);var t=e.getComputedStyle(a,null);n="1%"!==t.top,i="4px"===t.width,r.removeChild(o)}var n,i,r=Y.documentElement,o=Y.createElement("div"),a=Y.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",K.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",o.appendChild(a),e.getComputedStyle&&Z.extend(K,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return null==i&&t(),i},reliableMarginRight:function(){var t,n=a.appendChild(Y.createElement("div"));return n.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",a.style.width="1px",r.appendChild(o),t=!parseFloat(e.getComputedStyle(n,null).marginRight),r.removeChild(o),a.removeChild(n),t}}))}(),Z.swap=function(e,t,n,i){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];r=n.apply(e,i||[]);for(o in t)e.style[o]=a[o];return r};var ze=/^(none|table(?!-c[ea]).+)/,Ve=new RegExp("^("+xe+")(.*)$","i"),We=new RegExp("^([+-])=("+xe+")","i"),Je={position:"absolute",visibility:"hidden",display:"block"},Ge={letterSpacing:"0",fontWeight:"400"},Xe=["Webkit","O","Moz","ms"];Z.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=x(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=Z.camelCase(t),l=e.style;return t=Z.cssProps[s]||(Z.cssProps[s]=C(l,s)),a=Z.cssHooks[t]||Z.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:l[t]:(o=typeof n,"string"===o&&(r=We.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(Z.css(e,t)),o="number"),null!=n&&n===n&&("number"!==o||Z.cssNumber[s]||(n+="px"),K.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(l[t]=n)),void 0)}},css:function(e,t,n,i){var r,o,a,s=Z.camelCase(t);return t=Z.cssProps[s]||(Z.cssProps[s]=C(e.style,s)),a=Z.cssHooks[t]||Z.cssHooks[s],a&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=x(e,t,i)),"normal"===r&&t in Ge&&(r=Ge[t]),""===n||n?(o=parseFloat(r),n===!0||Z.isNumeric(o)?o||0:r):r}}),Z.each(["height","width"],function(e,t){Z.cssHooks[t]={get:function(e,n,i){if(n)return ze.test(Z.css(e,"display"))&&0===e.offsetWidth?Z.swap(e,Je,function(){return T(e,t,i)}):T(e,t,i)},set:function(e,n,i){var r=i&&Ue(e);return S(e,n,i?$(e,t,i,"border-box"===Z.css(e,"boxSizing",!1,r),r):0)}}}),Z.cssHooks.marginRight=k(K.reliableMarginRight,function(e,t){if(t)return Z.swap(e,{display:"inline-block"},x,[e,"marginRight"])}),Z.each({margin:"",padding:"",border:"Width"},function(e,t){Z.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+ke[i]+t]=o[i]||o[i-2]||o[0];return r}},Be.test(e)||(Z.cssHooks[e+t].set=S)}),Z.fn.extend({css:function(e,t){return me(this,function(e,t,n){var i,r,o={},a=0;if(Z.isArray(t)){for(i=Ue(e),r=t.length;a<r;a++)o[t[a]]=Z.css(e,t[a],!1,i);return o}return void 0!==n?Z.style(e,t,n):Z.css(e,t)},e,t,arguments.length>1)},show:function(){return _(this,!0)},hide:function(){return _(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ce(this)?Z(this).show():Z(this).hide()})}}),Z.Tween=E,E.prototype={constructor:E,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(Z.cssNumber[n]?"":"px")},cur:function(){var e=E.propHooks[this.prop];return e&&e.get?e.get(this):E.propHooks._default.get(this)},run:function(e){var t,n=E.propHooks[this.prop];return this.options.duration?this.pos=t=Z.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),
|
|
25745
|
25745
|
n&&n.set?n.set(this):E.propHooks._default.set(this),this}},E.prototype.init.prototype=E.prototype,E.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=Z.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){Z.fx.step[e.prop]?Z.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[Z.cssProps[e.prop]]||Z.cssHooks[e.prop])?Z.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},E.propHooks.scrollTop=E.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Z.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},Z.fx=E.prototype.init,Z.fx.step={};var Ke,Ye,Qe=/^(?:toggle|show|hide)$/,Ze=new RegExp("^(?:([+-])=|)("+xe+")([a-z%]*)$","i"),et=/queueHooks$/,tt=[P],nt={"*":[function(e,t){var n=this.createTween(e,t),i=n.cur(),r=Ze.exec(t),o=r&&r[3]||(Z.cssNumber[e]?"":"px"),a=(Z.cssNumber[e]||"px"!==o&&+i)&&Ze.exec(Z.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],r=r||[],a=+i||1;do s=s||".5",a/=s,Z.style(n.elem,e,a+o);while(s!==(s=n.cur()/i)&&1!==s&&--l)}return r&&(a=n.start=+a||+i||0,n.unit=o,n.end=r[1]?a+(r[1]+1)*r[2]:+r[2]),n}]};Z.Animation=Z.extend(N,{tweener:function(e,t){Z.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,i=0,r=e.length;i<r;i++)n=e[i],nt[n]=nt[n]||[],nt[n].unshift(t)},prefilter:function(e,t){t?tt.unshift(e):tt.push(e)}}),Z.speed=function(e,t,n){var i=e&&"object"==typeof e?Z.extend({},e):{complete:n||!n&&t||Z.isFunction(e)&&e,duration:e,easing:n&&t||t&&!Z.isFunction(t)&&t};return i.duration=Z.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in Z.fx.speeds?Z.fx.speeds[i.duration]:Z.fx.speeds._default,null!=i.queue&&i.queue!==!0||(i.queue="fx"),i.old=i.complete,i.complete=function(){Z.isFunction(i.old)&&i.old.call(this),i.queue&&Z.dequeue(this,i.queue)},i},Z.fn.extend({fadeTo:function(e,t,n,i){return this.filter(Ce).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=Z.isEmptyObject(e),o=Z.speed(t,n,i),a=function(){var t=N(this,Z.extend({},e),o);(r||ve.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",o=Z.timers,a=ve.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&et.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||Z.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=ve.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=Z.timers,a=i?i.length:0;for(n.finish=!0,Z.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),Z.each(["toggle","show","hide"],function(e,t){var n=Z.fn[t];Z.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(M(t,!0),e,i,r)}}),Z.each({slideDown:M("show"),slideUp:M("hide"),slideToggle:M("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){Z.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),Z.timers=[],Z.fx.tick=function(){var e,t=0,n=Z.timers;for(Ke=Z.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||Z.fx.stop(),Ke=void 0},Z.fx.timer=function(e){Z.timers.push(e),e()?Z.fx.start():Z.timers.pop()},Z.fx.interval=13,Z.fx.start=function(){Ye||(Ye=setInterval(Z.fx.tick,Z.fx.interval))},Z.fx.stop=function(){clearInterval(Ye),Ye=null},Z.fx.speeds={slow:600,fast:200,_default:400},Z.fn.delay=function(e,t){return e=Z.fx?Z.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var i=setTimeout(t,e);n.stop=function(){clearTimeout(i)}})},function(){var e=Y.createElement("input"),t=Y.createElement("select"),n=t.appendChild(Y.createElement("option"));e.type="checkbox",K.checkOn=""!==e.value,K.optSelected=n.selected,t.disabled=!0,K.optDisabled=!n.disabled,e=Y.createElement("input"),e.value="t",e.type="radio",K.radioValue="t"===e.value}();var it,rt,ot=Z.expr.attrHandle;Z.fn.extend({attr:function(e,t){return me(this,Z.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){Z.removeAttr(this,e)})}}),Z.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===$e?Z.prop(e,t,n):(1===o&&Z.isXMLDoc(e)||(t=t.toLowerCase(),i=Z.attrHooks[t]||(Z.expr.match.bool.test(t)?rt:it)),void 0===n?i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=Z.find.attr(e,t),null==r?void 0:r):null!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):void Z.removeAttr(e,t))},removeAttr:function(e,t){var n,i,r=0,o=t&&t.match(he);if(o&&1===e.nodeType)for(;n=o[r++];)i=Z.propFix[n]||n,Z.expr.match.bool.test(n)&&(e[i]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!K.radioValue&&"radio"===t&&Z.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),rt={set:function(e,t,n){return t===!1?Z.removeAttr(e,n):e.setAttribute(n,n),n}},Z.each(Z.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ot[t]||Z.find.attr;ot[t]=function(e,t,i){var r,o;return i||(o=ot[t],ot[t]=r,r=null!=n(e,t,i)?t.toLowerCase():null,ot[t]=o),r}});var at=/^(?:input|select|textarea|button)$/i;Z.fn.extend({prop:function(e,t){return me(this,Z.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[Z.propFix[e]||e]})}}),Z.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var i,r,o,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return o=1!==a||!Z.isXMLDoc(e),o&&(t=Z.propFix[t]||t,r=Z.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||at.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),K.optSelected||(Z.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),Z.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Z.propFix[this.toLowerCase()]=this});var st=/[\t\r\n\f]/g;Z.fn.extend({addClass:function(e){var t,n,i,r,o,a,s="string"==typeof e&&e,l=0,u=this.length;if(Z.isFunction(e))return this.each(function(t){Z(this).addClass(e.call(this,t,this.className))});if(s)for(t=(e||"").match(he)||[];l<u;l++)if(n=this[l],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(st," "):" ")){for(o=0;r=t[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");a=Z.trim(i),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,i,r,o,a,s=0===arguments.length||"string"==typeof e&&e,l=0,u=this.length;if(Z.isFunction(e))return this.each(function(t){Z(this).removeClass(e.call(this,t,this.className))});if(s)for(t=(e||"").match(he)||[];l<u;l++)if(n=this[l],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(st," "):"")){for(o=0;r=t[o++];)for(;i.indexOf(" "+r+" ")>=0;)i=i.replace(" "+r+" "," ");a=e?Z.trim(i):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):Z.isFunction(e)?this.each(function(n){Z(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var t,i=0,r=Z(this),o=e.match(he)||[];t=o[i++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else n!==$e&&"boolean"!==n||(this.className&&ve.set(this,"__className__",this.className),this.className=this.className||e===!1?"":ve.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;n<i;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(st," ").indexOf(t)>=0)return!0;return!1}});var lt=/\r/g;Z.fn.extend({val:function(e){var t,n,i,r=this[0];{if(arguments.length)return i=Z.isFunction(e),this.each(function(n){var r;1===this.nodeType&&(r=i?e.call(this,n,Z(this).val()):e,null==r?r="":"number"==typeof r?r+="":Z.isArray(r)&&(r=Z.map(r,function(e){return null==e?"":e+""})),t=Z.valHooks[this.type]||Z.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))});if(r)return t=Z.valHooks[r.type]||Z.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(lt,""):null==n?"":n)}}}),Z.extend({valHooks:{option:{get:function(e){var t=Z.find.attr(e,"value");return null!=t?t:Z.trim(Z.text(e))}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,o="select-one"===e.type||r<0,a=o?null:[],s=o?r+1:i.length,l=r<0?s:o?r:0;l<s;l++)if(n=i[l],(n.selected||l===r)&&(K.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!Z.nodeName(n.parentNode,"optgroup"))){if(t=Z(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,o=Z.makeArray(t),a=r.length;a--;)i=r[a],(i.selected=Z.inArray(i.value,o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),Z.each(["radio","checkbox"],function(){Z.valHooks[this]={set:function(e,t){if(Z.isArray(t))return e.checked=Z.inArray(Z(e).val(),t)>=0}},K.checkOn||(Z.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),Z.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){Z.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),Z.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var ut=Z.now(),ct=/\?/;Z.parseJSON=function(e){return JSON.parse(e+"")},Z.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{n=new DOMParser,t=n.parseFromString(e,"text/xml")}catch(i){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||Z.error("Invalid XML: "+e),t};var dt=/#.*$/,pt=/([?&])_=[^&]*/,ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,ft=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,gt=/^(?:GET|HEAD)$/,mt=/^\/\//,vt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,yt={},bt={},wt="*/".concat("*"),xt=e.location.href,kt=vt.exec(xt.toLowerCase())||[];Z.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt,type:"GET",isLocal:ft.test(kt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":Z.parseJSON,"text xml":Z.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?L(L(e,Z.ajaxSettings),t):L(Z.ajaxSettings,e)},ajaxPrefilter:j(yt),ajaxTransport:j(bt),ajax:function(e,t){function n(e,t,n,a){var l,c,v,y,w,k=t;2!==b&&(b=2,s&&clearTimeout(s),i=void 0,o=a||"",x.readyState=e>0?4:0,l=e>=200&&e<300||304===e,n&&(y=R(d,x,n)),y=F(d,y,x,l),l?(d.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(Z.lastModified[r]=w),w=x.getResponseHeader("etag"),w&&(Z.etag[r]=w)),204===e||"HEAD"===d.type?k="nocontent":304===e?k="notmodified":(k=y.state,c=y.data,v=y.error,l=!v)):(v=k,!e&&k||(k="error",e<0&&(e=0))),x.status=e,x.statusText=(t||k)+"",l?f.resolveWith(p,[c,k,x]):f.rejectWith(p,[x,k,v]),x.statusCode(m),m=void 0,u&&h.trigger(l?"ajaxSuccess":"ajaxError",[x,d,l?c:v]),g.fireWith(p,[x,k]),u&&(h.trigger("ajaxComplete",[x,d]),--Z.active||Z.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,r,o,a,s,l,u,c,d=Z.ajaxSetup({},t),p=d.context||d,h=d.context&&(p.nodeType||p.jquery)?Z(p):Z.event,f=Z.Deferred(),g=Z.Callbacks("once memory"),m=d.statusCode||{},v={},y={},b=0,w="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!a)for(a={};t=ht.exec(o);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,v[e]=t),this},overrideMimeType:function(e){return b||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)m[t]=[m[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||w;return i&&i.abort(t),n(0,t),this}};if(f.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,d.url=((e||d.url||xt)+"").replace(dt,"").replace(mt,kt[1]+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=Z.trim(d.dataType||"*").toLowerCase().match(he)||[""],null==d.crossDomain&&(l=vt.exec(d.url.toLowerCase()),d.crossDomain=!(!l||l[1]===kt[1]&&l[2]===kt[2]&&(l[3]||("http:"===l[1]?"80":"443"))===(kt[3]||("http:"===kt[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=Z.param(d.data,d.traditional)),O(yt,d,t,x),2===b)return x;u=Z.event&&d.global,u&&0===Z.active++&&Z.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!gt.test(d.type),r=d.url,d.hasContent||(d.data&&(r=d.url+=(ct.test(r)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=pt.test(r)?r.replace(pt,"$1_="+ut++):r+(ct.test(r)?"&":"?")+"_="+ut++)),d.ifModified&&(Z.lastModified[r]&&x.setRequestHeader("If-Modified-Since",Z.lastModified[r]),Z.etag[r]&&x.setRequestHeader("If-None-Match",Z.etag[r])),(d.data&&d.hasContent&&d.contentType!==!1||t.contentType)&&x.setRequestHeader("Content-Type",d.contentType),x.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+wt+"; q=0.01":""):d.accepts["*"]);for(c in d.headers)x.setRequestHeader(c,d.headers[c]);if(d.beforeSend&&(d.beforeSend.call(p,x,d)===!1||2===b))return x.abort();w="abort";for(c in{success:1,error:1,complete:1})x[c](d[c]);if(i=O(bt,d,t,x)){x.readyState=1,u&&h.trigger("ajaxSend",[x,d]),d.async&&d.timeout>0&&(s=setTimeout(function(){x.abort("timeout")},d.timeout));try{b=1,i.send(v,n)}catch(k){if(!(b<2))throw k;n(-1,k)}}else n(-1,"No Transport");return x},getJSON:function(e,t,n){return Z.get(e,t,n,"json")},getScript:function(e,t){return Z.get(e,void 0,t,"script")}}),Z.each(["get","post"],function(e,t){Z[t]=function(e,n,i,r){return Z.isFunction(n)&&(r=r||i,i=n,n=void 0),Z.ajax({url:e,type:t,dataType:r,data:n,success:i})}}),Z._evalUrl=function(e){return Z.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},Z.fn.extend({wrapAll:function(e){var t;return Z.isFunction(e)?this.each(function(t){Z(this).wrapAll(e.call(this,t))}):(this[0]&&(t=Z(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return Z.isFunction(e)?this.each(function(t){Z(this).wrapInner(e.call(this,t))}):this.each(function(){var t=Z(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=Z.isFunction(e);return this.each(function(n){Z(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){Z.nodeName(this,"body")||Z(this).replaceWith(this.childNodes)}).end()}}),Z.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},Z.expr.filters.visible=function(e){return!Z.expr.filters.hidden(e)};var Ct=/%20/g,St=/\[\]$/,$t=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,_t=/^(?:input|select|textarea|keygen)/i;Z.param=function(e,t){var n,i=[],r=function(e,t){t=Z.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=Z.ajaxSettings&&Z.ajaxSettings.traditional),Z.isArray(e)||e.jquery&&!Z.isPlainObject(e))Z.each(e,function(){r(this.name,this.value)});else for(n in e)q(n,e[n],t,r);return i.join("&").replace(Ct,"+")},Z.fn.extend({serialize:function(){return Z.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=Z.prop(this,"elements");return e?Z.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Z(this).is(":disabled")&&_t.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!Se.test(e))}).map(function(e,t){var n=Z(this).val();return null==n?null:Z.isArray(n)?Z.map(n,function(e){return{name:t.name,value:e.replace($t,"\r\n")}}):{name:t.name,value:n.replace($t,"\r\n")}}).get()}}),Z.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var Et=0,Dt={},Mt={0:200,1223:204},It=Z.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in Dt)Dt[e]()}),K.cors=!!It&&"withCredentials"in It,K.ajax=It=!!It,Z.ajaxTransport(function(e){var t;if(K.cors||It&&!e.crossDomain)return{send:function(n,i){var r,o=e.xhr(),a=++Et;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)o[r]=e.xhrFields[r];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(r in n)o.setRequestHeader(r,n[r]);t=function(e){return function(){t&&(delete Dt[a],t=o.onload=o.onerror=null,"abort"===e?o.abort():"error"===e?i(o.status,o.statusText):i(Mt[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},o.onload=t(),o.onerror=t("error"),t=Dt[a]=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(s){if(t)throw s}},abort:function(){t&&t()}}}),Z.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return Z.globalEval(e),e}}}),Z.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),Z.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(i,r){t=Z("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),Y.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Pt=[],At=/(=)\?(?=&|$)|\?\?/;Z.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Pt.pop()||Z.expando+"_"+ut++;return this[e]=!0,e}}),Z.ajaxPrefilter("json jsonp",function(t,n,i){var r,o,a,s=t.jsonp!==!1&&(At.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&At.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=Z.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(At,"$1"+r):t.jsonp!==!1&&(t.url+=(ct.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||Z.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=e[r],e[r]=function(){a=arguments},i.always(function(){e[r]=o,t[r]&&(t.jsonpCallback=n.jsonpCallback,Pt.push(r)),a&&Z.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),Z.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||Y;var i=ae.exec(e),r=!n&&[];return i?[t.createElement(i[1])]:(i=Z.buildFragment([e],t,r),r&&r.length&&Z(r).remove(),Z.merge([],i.childNodes))};var Nt=Z.fn.load;Z.fn.load=function(e,t,n){if("string"!=typeof e&&Nt)return Nt.apply(this,arguments);var i,r,o,a=this,s=e.indexOf(" ");return s>=0&&(i=Z.trim(e.slice(s)),e=e.slice(0,s)),Z.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&Z.ajax({url:e,type:r,dataType:"html",data:t}).done(function(e){o=arguments,a.html(i?Z("<div>").append(Z.parseHTML(e)).find(i):e)}).complete(n&&function(e,t){a.each(n,o||[e.responseText,t,e])}),this},Z.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Z.fn[t]=function(e){return this.on(t,e)}}),Z.expr.filters.animated=function(e){return Z.grep(Z.timers,function(t){return e===t.elem}).length};var jt=e.document.documentElement;Z.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,u,c=Z.css(e,"position"),d=Z(e),p={};"static"===c&&(e.style.position="relative"),s=d.offset(),o=Z.css(e,"top"),l=Z.css(e,"left"),u=("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1,u?(i=d.position(),a=i.top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),Z.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(p.top=t.top-s.top+a),null!=t.left&&(p.left=t.left-s.left+r),"using"in t?t.using.call(e,p):d.css(p)}},Z.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){Z.offset.setOffset(this,e,t)});var t,n,i=this[0],r={top:0,left:0},o=i&&i.ownerDocument;if(o)return t=o.documentElement,Z.contains(t,i)?(typeof i.getBoundingClientRect!==$e&&(r=i.getBoundingClientRect()),n=B(o),{top:r.top+n.pageYOffset-t.clientTop,left:r.left+n.pageXOffset-t.clientLeft}):r},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===Z.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),Z.nodeName(e[0],"html")||(i=e.offset()),i.top+=Z.css(e[0],"borderTopWidth",!0),i.left+=Z.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-Z.css(n,"marginTop",!0),left:t.left-i.left-Z.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||jt;e&&!Z.nodeName(e,"html")&&"static"===Z.css(e,"position");)e=e.offsetParent;return e||jt})}}),Z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var i="pageYOffset"===n;Z.fn[t]=function(r){return me(this,function(t,r,o){var a=B(t);return void 0===o?a?a[n]:t[r]:void(a?a.scrollTo(i?e.pageXOffset:o,i?o:e.pageYOffset):t[r]=o)},t,r,arguments.length,null)}}),Z.each(["top","left"],function(e,t){Z.cssHooks[t]=k(K.pixelPosition,function(e,n){if(n)return n=x(e,t),He.test(n)?Z(e).position()[t]+"px":n})}),Z.each({Height:"height",Width:"width"},function(e,t){Z.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){Z.fn[i]=function(i,r){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(i===!0||r===!0?"margin":"border");return me(this,function(t,n,i){var r;return Z.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===i?Z.css(t,n,a):Z.style(t,n,i,a)},t,o?i:void 0,o,null)}})}),Z.fn.size=function(){return this.length},Z.fn.andSelf=Z.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return Z});var Ot=e.jQuery,Lt=e.$;return Z.noConflict=function(t){return e.$===Z&&(e.$=Lt),t&&e.jQuery===Z&&(e.jQuery=Ot),Z},typeof t===$e&&(e.jQuery=e.$=Z),Z}),function(e){"use strict";function t(e,t){return t=t||Error,function(){var n,i,r=2,o=arguments,a=o[0],s="["+(e?e+":":"")+a+"] ",l=o[1];for(s+=l.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1),n=t+r;return n<o.length?ye(o[n]):e}),s+="\nhttp://errors.angularjs.org/1.5.8/"+(e?e+"/":"")+a,i=r,n="?";i<o.length;i++,n="&")s+=n+"p"+(i-r)+"="+encodeURIComponent(ye(o[i]));return new t(s)}}function n(e){if(null==e||T(e))return!1;if(Xi(e)||x(e)||Ri&&e instanceof Ri)return!0;var t="length"in Object(e)&&e.length;return k(t)&&(t>=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function i(e,t,r){var o,a;if(e)if(S(e))for(o in e)"prototype"==o||"length"==o||"name"==o||e.hasOwnProperty&&!e.hasOwnProperty(o)||t.call(r,e[o],o,e);else if(Xi(e)||n(e)){var s="object"!=typeof e;for(o=0,a=e.length;o<a;o++)(s||o in e)&&t.call(r,e[o],o,e)}else if(e.forEach&&e.forEach!==i)e.forEach(t,r,e);else if(w(e))for(o in e)t.call(r,e[o],o,e);else if("function"==typeof e.hasOwnProperty)for(o in e)e.hasOwnProperty(o)&&t.call(r,e[o],o,e);else for(o in e)Pi.call(e,o)&&t.call(r,e[o],o,e);return e}function r(e,t,n){for(var i=Object.keys(e).sort(),r=0;r<i.length;r++)t.call(n,e[i[r]],i[r]);return i}function o(e){return function(t,n){e(n,t)}}function a(){return++Gi}function s(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function l(e,t,n){for(var i=e.$$hashKey,r=0,o=t.length;r<o;++r){var a=t[r];if(b(a)||S(a))for(var u=Object.keys(a),c=0,d=u.length;c<d;c++){var p=u[c],h=a[p];n&&b(h)?C(h)?e[p]=new Date(h.valueOf()):$(h)?e[p]=new RegExp(h):h.nodeName?e[p]=h.cloneNode(!0):j(h)?e[p]=h.clone():(b(e[p])||(e[p]=Xi(h)?[]:{}),l(e[p],[h],!0)):e[p]=h}}return s(e,i),e}function u(e){return l(e,Bi.call(arguments,1),!1)}function c(e){return l(e,Bi.call(arguments,1),!0)}function d(e){return parseInt(e,10)}function p(e,t){return u(Object.create(e),t)}function h(){}function f(e){return e}function g(e){return function(){return e}}function m(e){return S(e.toString)&&e.toString!==zi}function v(e){return"undefined"==typeof e}function y(e){return"undefined"!=typeof e}function b(e){return null!==e&&"object"==typeof e}function w(e){return null!==e&&"object"==typeof e&&!Vi(e)}function x(e){return"string"==typeof e}function k(e){return"number"==typeof e}function C(e){return"[object Date]"===zi.call(e)}function S(e){return"function"==typeof e}function $(e){return"[object RegExp]"===zi.call(e)}function T(e){return e&&e.window===e}function _(e){return e&&e.$evalAsync&&e.$watch}function E(e){return"[object File]"===zi.call(e)}function D(e){return"[object FormData]"===zi.call(e)}function M(e){return"[object Blob]"===zi.call(e)}function I(e){return"boolean"==typeof e}function P(e){return e&&S(e.then)}function A(e){return e&&k(e.length)&&Ki.test(zi.call(e))}function N(e){return"[object ArrayBuffer]"===zi.call(e)}function j(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function O(e){var t,n={},i=e.split(",");for(t=0;t<i.length;t++)n[i[t]]=!0;return n}function L(e){return Ai(e.nodeName||e[0]&&e[0].nodeName)}function R(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function F(e,t){function n(e,t){var n,i=t.$$hashKey;if(Xi(e))for(var o=0,a=e.length;o<a;o++)t.push(r(e[o]));else if(w(e))for(n in e)t[n]=r(e[n]);else if(e&&"function"==typeof e.hasOwnProperty)for(n in e)e.hasOwnProperty(n)&&(t[n]=r(e[n]));else for(n in e)Pi.call(e,n)&&(t[n]=r(e[n]));return s(t,i),t}function r(e){if(!b(e))return e;var t=a.indexOf(e);if(t!==-1)return l[t];if(T(e)||_(e))throw Wi("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var i=!1,r=o(e);return void 0===r&&(r=Xi(e)?[]:Object.create(Vi(e)),i=!0),a.push(e),l.push(r),i?n(e,r):r}function o(e){switch(zi.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(r(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(S(e.cloneNode))return e.cloneNode(!0)}var a=[],l=[];if(t){if(A(t)||N(t))throw Wi("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw Wi("cpi","Can't copy! Source and destination are identical.");return Xi(t)?t.length=0:i(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),a.push(e),l.push(t),n(e,t)}return r(e)}function q(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var n,i,r,o=typeof e,a=typeof t;if(o==a&&"object"==o){if(!Xi(e)){if(C(e))return!!C(t)&&q(e.getTime(),t.getTime());if($(e))return!!$(t)&&e.toString()==t.toString();if(_(e)||_(t)||T(e)||T(t)||Xi(t)||C(t)||$(t))return!1;r=fe();for(i in e)if("$"!==i.charAt(0)&&!S(e[i])){if(!q(e[i],t[i]))return!1;r[i]=!0}for(i in t)if(!(i in r)&&"$"!==i.charAt(0)&&y(t[i])&&!S(t[i]))return!1;return!0}if(!Xi(t))return!1;if((n=e.length)==t.length){for(i=0;i<n;i++)if(!q(e[i],t[i]))return!1;return!0}}return!1}function B(e,t,n){return e.concat(Bi.call(t,n))}function H(e,t){return Bi.call(e,t||0)}function U(e,t){var n=arguments.length>2?H(arguments,2):[];return!S(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,B(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function z(t,n){var i=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?i=void 0:T(n)?i="$WINDOW":n&&e.document===n?i="$DOCUMENT":_(n)&&(i="$SCOPE"),i}function V(e,t){if(!v(e))return k(t)||(t=t?2:null),JSON.stringify(e,z,t)}function W(e){return x(e)?JSON.parse(e):e}function J(e,t){e=e.replace(tr,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function G(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function X(e,t,n){n=n?-1:1;var i=e.getTimezoneOffset(),r=J(t,i);return G(e,n*(r-i))}function K(e){e=Ri(e).clone();try{e.empty()}catch(t){}var n=Ri("<div>").append(e).html();try{return e[0].nodeType===sr?Ai(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+Ai(t)})}catch(t){return Ai(n)}}function Y(e){try{return decodeURIComponent(e)}catch(t){}}function Q(e){var t={};return i((e||"").split("&"),function(e){var n,i,r;e&&(i=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),n!==-1&&(i=e.substring(0,n),r=e.substring(n+1)),i=Y(i),y(i)&&(r=!y(r)||Y(r),Pi.call(t,i)?Xi(t[i])?t[i].push(r):t[i]=[t[i],r]:t[i]=r))}),t}function Z(e){var t=[];return i(e,function(e,n){Xi(e)?i(e,function(e){t.push(te(n,!0)+(e===!0?"":"="+te(e,!0)))}):t.push(te(n,!0)+(e===!0?"":"="+te(e,!0)))}),t.length?t.join("&"):""}function ee(e){return te(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function te(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function ne(e,t){var n,i,r=nr.length;for(i=0;i<r;++i)if(n=nr[i]+t,x(n=e.getAttribute(n)))return n;return null}function ie(e,t){var n,r,o={};i(nr,function(t){var i=t+"app";!n&&e.hasAttribute&&e.hasAttribute(i)&&(n=e,r=e.getAttribute(i))}),i(nr,function(t){var i,o=t+"app";!n&&(i=e.querySelector("["+o.replace(":","\\:")+"]"))&&(n=i,r=i.getAttribute(o))}),n&&(o.strictDi=null!==ne(n,"strict-di"),t(n,r?[r]:[],o))}function re(t,n,r){b(r)||(r={});var o={strictDi:!1};r=u(o,r);var a=function(){if(t=Ri(t),t.injector()){var i=t[0]===e.document?"document":K(t);throw Wi("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"<").replace(/>/,">"))}n=n||[],n.unshift(["$provide",function(e){e.value("$rootElement",t)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var o=it(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,i){e.$apply(function(){t.data("$injector",i),n(t)(e)})}]),o},s=/^NG_ENABLE_DEBUG_INFO!/,l=/^NG_DEFER_BOOTSTRAP!/;return e&&s.test(e.name)&&(r.debugInfoEnabled=!0,e.name=e.name.replace(s,"")),e&&!l.test(e.name)?a():(e.name=e.name.replace(l,""),Ji.resumeBootstrap=function(e){return i(e,function(e){n.push(e)}),a()},void(S(Ji.resumeDeferredBootstrap)&&Ji.resumeDeferredBootstrap()))}function oe(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function ae(e){var t=Ji.element(e).injector();if(!t)throw Wi("test","no injector found for element argument to getTestability");return t.get("$$testability")}function se(e,t){return t=t||"_",e.replace(ir,function(e,n){return(n?t:"")+e.toLowerCase()})}function le(){var t;if(!rr){var n=er();Fi=v(n)?e.jQuery:n?e[n]:void 0,Fi&&Fi.fn.on?(Ri=Fi,
|
|
25746
|
25746
|
u(Fi.fn,{scope:Tr.scope,isolateScope:Tr.isolateScope,controller:Tr.controller,injector:Tr.injector,inheritedData:Tr.inheritedData}),t=Fi.cleanData,Fi.cleanData=function(e){for(var n,i,r=0;null!=(i=e[r]);r++)n=Fi._data(i,"events"),n&&n.$destroy&&Fi(i).triggerHandler("$destroy");t(e)}):Ri=De,Ji.element=Ri,rr=!0}}function ue(e,t,n){if(!e)throw Wi("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function ce(e,t,n){return n&&Xi(e)&&(e=e[e.length-1]),ue(S(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function de(e,t){if("hasOwnProperty"===e)throw Wi("badname","hasOwnProperty is not a valid {0} name",t)}function pe(e,t,n){if(!t)return e;for(var i,r=t.split("."),o=e,a=r.length,s=0;s<a;s++)i=r[s],e&&(e=(o=e)[i]);return!n&&S(e)?U(o,e):e}function he(e){for(var t,n=e[0],i=e[e.length-1],r=1;n!==i&&(n=n.nextSibling);r++)(t||e[r]!==n)&&(t||(t=Ri(Bi.call(e,0,r))),t.push(n));return t||e}function fe(){return Object.create(null)}function ge(e){function n(e,t,n){return e[t]||(e[t]=n())}var i=t("$injector"),r=t("ng"),o=n(e,"angular",Object);return o.$$minErr=o.$$minErr||t,n(o,"module",function(){var e={};return function(t,o,a){var s=function(e,t){if("hasOwnProperty"===e)throw r("badname","hasOwnProperty is not a valid {0} name",t)};return s(t,"module"),o&&e.hasOwnProperty(t)&&(e[t]=null),n(e,t,function(){function e(e,t,n,i){return i||(i=r),function(){return i[n||"push"]([e,t,arguments]),c}}function n(e,n){return function(i,o){return o&&S(o)&&(o.$$moduleName=t),r.push([e,n,arguments]),c}}if(!o)throw i("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",t);var r=[],s=[],l=[],u=e("$injector","invoke","push",s),c={_invokeQueue:r,_configBlocks:s,_runBlocks:l,requires:o,name:t,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:n("$provide","decorator"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:u,run:function(e){return l.push(e),this}};return a&&u(a),c})}})}function me(e,t){if(Xi(e)){t=t||[];for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}else if(b(e)){t=t||{};for(var r in e)"$"===r.charAt(0)&&"$"===r.charAt(1)||(t[r]=e[r])}return t||e}function ve(e){var t=[];return JSON.stringify(e,function(e,n){if(n=z(e,n),b(n)){if(t.indexOf(n)>=0)return"...";t.push(n)}return n})}function ye(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):v(e)?"undefined":"string"!=typeof e?ve(e):e}function be(n){u(n,{bootstrap:re,copy:F,extend:u,merge:c,equals:q,element:Ri,forEach:i,injector:it,noop:h,bind:U,toJson:V,fromJson:W,identity:f,isUndefined:v,isDefined:y,isString:x,isFunction:S,isObject:b,isNumber:k,isElement:j,isArray:Xi,version:dr,isDate:C,lowercase:Ai,uppercase:Ni,callbacks:{$$counter:0},getTestability:ae,$$minErr:t,$$csp:Zi,reloadWithDebugInfo:oe}),(qi=ge(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:$n}),e.provider("$compile",ft).directive({a:jo,input:ea,textarea:ea,form:qo,script:Xa,select:Qa,style:es,option:Za,ngBind:ia,ngBindHtml:oa,ngBindTemplate:ra,ngClass:sa,ngClassEven:ua,ngClassOdd:la,ngCloak:ca,ngController:da,ngForm:Bo,ngHide:Ha,ngIf:fa,ngInclude:ga,ngInit:va,ngNonBindable:Aa,ngPluralize:La,ngRepeat:Ra,ngShow:Ba,ngStyle:Ua,ngSwitch:za,ngSwitchWhen:Va,ngSwitchDefault:Wa,ngOptions:Oa,ngTransclude:Ga,ngModel:Ma,ngList:ya,ngChange:aa,pattern:ns,ngPattern:ns,required:ts,ngRequired:ts,minlength:rs,ngMinlength:rs,maxlength:is,ngMaxlength:is,ngValue:na,ngModelOptions:Pa}).directive({ngInclude:ma}).directive(Oo).directive(pa),e.provider({$anchorScroll:rt,$animate:Hr,$animateCss:Vr,$$animateJs:qr,$$animateQueue:Br,$$AnimateRunner:zr,$$animateAsyncRun:Ur,$browser:ct,$cacheFactory:dt,$controller:wt,$document:xt,$exceptionHandler:kt,$filter:Fn,$$forceReflow:Yr,$interpolate:Ot,$interval:Lt,$http:Pt,$httpParamSerializer:St,$httpParamSerializerJQLike:$t,$httpBackend:Nt,$xhrFactory:At,$jsonpCallbacks:ao,$location:Qt,$log:Zt,$parse:bn,$rootScope:Sn,$q:wn,$$q:xn,$sce:Dn,$sceDelegate:En,$sniffer:Mn,$templateCache:pt,$templateRequest:In,$$testability:Pn,$timeout:An,$window:On,$$rAF:Cn,$$jqLite:Ke,$$HashMap:Mr,$$cookieReader:Rn})}])}function we(){return++hr}function xe(e){return e.replace(mr,function(e,t,n,i){return i?n.toUpperCase():n}).replace(vr,"Moz$1")}function ke(e){return!xr.test(e)}function Ce(e){var t=e.nodeType;return t===or||!t||t===ur}function Se(e){for(var t in pr[e.ng339])return!0;return!1}function $e(e){for(var t=0,n=e.length;t<n;t++)Ae(e[t])}function Te(e,t){var n,r,o,a,s=t.createDocumentFragment(),l=[];if(ke(e))l.push(t.createTextNode(e));else{for(n=s.appendChild(t.createElement("div")),r=(kr.exec(e)||["",""])[1].toLowerCase(),o=Sr[r]||Sr._default,n.innerHTML=o[1]+e.replace(Cr,"<$1></$2>")+o[2],a=o[0];a--;)n=n.lastChild;l=B(l,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",i(l,function(e){s.appendChild(e)}),s}function _e(t,n){n=n||e.document;var i;return(i=wr.exec(t))?[n.createElement(i[1])]:(i=Te(t,n))?i.childNodes:[]}function Ee(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function De(e){if(e instanceof De)return e;var t;if(x(e)&&(e=Yi(e),t=!0),!(this instanceof De)){if(t&&"<"!=e.charAt(0))throw br("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new De(e)}t?Fe(this,_e(e)):Fe(this,e)}function Me(e){return e.cloneNode(!0)}function Ie(e,t){if(t||Ae(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),i=0,r=n.length;i<r;i++)Ae(n[i])}function Pe(e,t,n,r){if(y(r))throw br("offargs","jqLite#off() does not support the `+"`"+`selector`+"`"+` argument");var o=Ne(e),a=o&&o.events,s=o&&o.handle;if(s)if(t){var l=function(t){var i=a[t];y(n)&&R(i||[],n),y(n)&&i&&i.length>0||(gr(e,t,s),delete a[t])};i(t.split(" "),function(e){l(e),yr[e]&&l(yr[e])})}else for(t in a)"$destroy"!==t&&gr(e,t,s),delete a[t]}function Ae(e,t){var n=e.ng339,i=n&&pr[n];if(i){if(t)return void delete i.data[t];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),Pe(e)),delete pr[n],e.ng339=void 0}}function Ne(e,t){var n=e.ng339,i=n&&pr[n];return t&&!i&&(e.ng339=n=we(),i=pr[n]={events:{},data:{},handle:void 0}),i}function je(e,t,n){if(Ce(e)){var i=y(n),r=!i&&t&&!b(t),o=!t,a=Ne(e,!r),s=a&&a.data;if(i)s[t]=n;else{if(o)return s;if(r)return s&&s[t];u(s,t)}}}function Oe(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function Le(e,t){t&&e.setAttribute&&i(t.split(" "),function(t){e.setAttribute("class",Yi((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Yi(t)+" "," ")))})}function Re(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");i(t.split(" "),function(e){e=Yi(e),n.indexOf(" "+e+" ")===-1&&(n+=e+" ")}),e.setAttribute("class",Yi(n))}}function Fe(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var i=0;i<n;i++)e[e.length++]=t[i]}else e[e.length++]=t}}function qe(e,t){return Be(e,"$"+(t||"ngController")+"Controller")}function Be(e,t,n){e.nodeType==ur&&(e=e.documentElement);for(var i=Xi(t)?t:[t];e;){for(var r=0,o=i.length;r<o;r++)if(y(n=Ri.data(e,i[r])))return n;e=e.parentNode||e.nodeType===cr&&e.host}}function He(e){for(Ie(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Ue(e,t){t||Ie(e);var n=e.parentNode;n&&n.removeChild(e)}function ze(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):Ri(n).on("load",t)}function Ve(e,t){var n=_r[t.toLowerCase()];return n&&Er[L(e)]&&n}function We(e){return Dr[e]}function Je(e,t){var n=function(n,i){n.isDefaultPrevented=function(){return n.defaultPrevented};var r=t[i||n.type],o=r?r.length:0;if(o){if(v(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0};var s=r.specialHandlerWrapper||Ge;o>1&&(r=me(r));for(var l=0;l<o;l++)n.isImmediatePropagationStopped()||s(e,n,r[l])}};return n.elem=e,n}function Ge(e,t,n){n.call(e,t)}function Xe(e,t,n){var i=t.relatedTarget;i&&(i===e||$r.call(e,i))||n.call(e,t)}function Ke(){this.$get=function(){return u(De,{hasClass:function(e,t){return e.attr&&(e=e[0]),Oe(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Re(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Le(e,t)}})}}function Ye(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var i=typeof e;return n="function"==i||"object"==i&&null!==e?e.$$hashKey=i+":"+(t||a)():i+":"+e}function Qe(e,t){if(t){var n=0;this.nextUid=function(){return++n}}i(e,this.put,this)}function Ze(e){return Function.prototype.toString.call(e)+" "}function et(e){var t=Ze(e).replace(jr,""),n=t.match(Ir)||t.match(Pr);return n}function tt(e){var t=et(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function nt(e,t,n){var r,o,a;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw x(n)&&n||(n=e.name||tt(e)),Or("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);o=et(e),i(o[1].split(Ar),function(e){e.replace(Nr,function(e,t,n){r.push(n)})})}e.$inject=r}}else Xi(e)?(a=e.length-1,ce(e[a],"fn"),r=e.slice(0,a)):ce(e,"fn",!0);return r}function it(e,t){function n(e){return function(t,n){return b(t)?void i(t,o(e)):e(t,n)}}function r(e,t){if(de(e,"service"),(S(t)||Xi(t))&&(t=C.instantiate(t)),!t.$get)throw Or("pget","Provider '{0}' must define $get factory method.",e);return k[e+m]=t}function a(e,t){return function(){var n=_.invoke(t,this);if(v(n))throw Or("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function s(e,t,n){return r(e,{$get:n!==!1?a(e,t):t})}function l(e,t){return s(e,["$injector",function(e){return e.instantiate(t)}])}function u(e,t){return s(e,g(t),!1)}function c(e,t){de(e,"constant"),k[e]=t,$[e]=t}function d(e,t){var n=C.get(e+m),i=n.$get;n.$get=function(){var e=_.invoke(i,n);return _.invoke(t,null,{$delegate:e})}}function p(e){ue(v(e)||Xi(e),"modulesToLoad","not an array");var t,n=[];return i(e,function(e){function i(e){var t,n;for(t=0,n=e.length;t<n;t++){var i=e[t],r=C.get(i[0]);r[i[1]].apply(r,i[2])}}if(!w.get(e)){w.put(e,!0);try{x(e)?(t=qi(e),n=n.concat(p(t.requires)).concat(t._runBlocks),i(t._invokeQueue),i(t._configBlocks)):S(e)?n.push(C.invoke(e)):Xi(e)?n.push(C.invoke(e)):ce(e,"module")}catch(r){throw Xi(e)&&(e=e[e.length-1]),r.message&&r.stack&&r.stack.indexOf(r.message)==-1&&(r=r.message+"\n"+r.stack),Or("modulerr","Failed to instantiate module {0} due to:\n{1}",e,r.stack||r.message||r)}}}),n}function h(e,n){function i(t,i){if(e.hasOwnProperty(t)){if(e[t]===f)throw Or("cdep","Circular dependency found: {0}",t+" <- "+y.join(" <- "));return e[t]}try{return y.unshift(t),e[t]=f,e[t]=n(t,i)}catch(r){throw e[t]===f&&delete e[t],r}finally{y.shift()}}function r(e,n,r){for(var o=[],a=it.$$annotate(e,t,r),s=0,l=a.length;s<l;s++){var u=a[s];if("string"!=typeof u)throw Or("itkn","Incorrect injection token! Expected service name as string, got {0}",u);o.push(n&&n.hasOwnProperty(u)?n[u]:i(u,r))}return o}function o(e){return!(Li<=11)&&("function"==typeof e&&/^(?:class\b|constructor\()/.test(Ze(e)))}function a(e,t,n,i){"string"==typeof n&&(i=n,n=null);var a=r(e,n,i);return Xi(e)&&(e=e[e.length-1]),o(e)?(a.unshift(null),new(Function.prototype.bind.apply(e,a))):e.apply(t,a)}function s(e,t,n){var i=Xi(e)?e[e.length-1]:e,o=r(e,t,n);return o.unshift(null),new(Function.prototype.bind.apply(i,o))}return{invoke:a,instantiate:s,get:i,annotate:it.$$annotate,has:function(t){return k.hasOwnProperty(t+m)||e.hasOwnProperty(t)}}}t=t===!0;var f={},m="Provider",y=[],w=new Qe([],(!0)),k={$provide:{provider:n(r),factory:n(s),service:n(l),value:n(u),constant:n(c),decorator:d}},C=k.$injector=h(k,function(e,t){throw Ji.isString(t)&&y.push(t),Or("unpr","Unknown provider: {0}",y.join(" <- "))}),$={},T=h($,function(e,t){var n=C.get(e+m,t);return _.invoke(n.$get,n,void 0,e)}),_=T;k["$injector"+m]={$get:g(T)};var E=p(e);return _=T.get("$injector"),_.strictDi=t,i(E,function(e){e&&_.invoke(e)}),_}function rt(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,i){function r(e){var t=null;return Array.prototype.some.call(e,function(e){if("a"===L(e))return t=e,!0}),t}function o(){var e=s.yOffset;if(S(e))e=e();else if(j(e)){var n=e[0],i=t.getComputedStyle(n);e="fixed"!==i.position?0:n.getBoundingClientRect().bottom}else k(e)||(e=0);return e}function a(e){if(e){e.scrollIntoView();var n=o();if(n){var i=e.getBoundingClientRect().top;t.scrollBy(0,i-n)}}else t.scrollTo(0,0)}function s(e){e=x(e)?e:n.hash();var t;e?(t=l.getElementById(e))?a(t):(t=r(l.getElementsByName(e)))?a(t):"top"===e&&a(null):a(null)}var l=t.document;return e&&i.$watch(function(){return n.hash()},function(e,t){e===t&&""===e||ze(function(){i.$evalAsync(s)})}),s}]}function ot(e,t){return e||t?e?t?(Xi(e)&&(e=e.join(" ")),Xi(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function at(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===Rr)return n}}function st(e){x(e)&&(e=e.split(" "));var t=fe();return i(e,function(e){e.length&&(t[e]=!0)}),t}function lt(e){return b(e)?e:{}}function ut(e,t,n,r){function o(e){try{e.apply(null,H(arguments,1))}finally{if(y--,0===y)for(;b.length;)try{b.pop()()}catch(t){n.error(t)}}}function a(e){var t=e.indexOf("#");return t===-1?"":e.substr(t)}function s(){S=null,l(),u()}function l(){w=$(),w=v(w)?null:w,q(w,E)&&(w=E),E=w}function u(){k===c.url()&&x===w||(k=c.url(),x=w,i(T,function(e){e(c.url(),w)}))}var c=this,d=e.location,p=e.history,f=e.setTimeout,g=e.clearTimeout,m={};c.isMock=!1;var y=0,b=[];c.$$completeOutstandingRequest=o,c.$$incOutstandingRequestCount=function(){y++},c.notifyWhenNoOutstandingRequests=function(e){0===y?e():b.push(e)};var w,x,k=d.href,C=t.find("base"),S=null,$=r.history?function(){try{return p.state}catch(e){}}:h;l(),x=w,c.url=function(t,n,i){if(v(i)&&(i=null),d!==e.location&&(d=e.location),p!==e.history&&(p=e.history),t){var o=x===i;if(k===t&&(!r.history||o))return c;var s=k&&Ut(k)===Ut(t);return k=t,x=i,!r.history||s&&o?(s||(S=t),n?d.replace(t):s?d.hash=a(t):d.href=t,d.href!==t&&(S=t)):(p[n?"replaceState":"pushState"](i,"",t),l(),x=w),S&&(S=t),c}return S||d.href.replace(/%27/g,"'")},c.state=function(){return w};var T=[],_=!1,E=null;c.onUrlChange=function(t){return _||(r.history&&Ri(e).on("popstate",s),Ri(e).on("hashchange",s),_=!0),T.push(t),t},c.$$applicationDestroyed=function(){Ri(e).off("hashchange popstate",s)},c.$$checkUrlChange=u,c.baseHref=function(){var e=C.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""},c.defer=function(e,t){var n;return y++,n=f(function(){delete m[n],o(e)},t||0),m[n]=!0,n},c.defer.cancel=function(e){return!!m[e]&&(delete m[e],g(e),o(h),!0)}}function ct(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,i){return new ut(e,i,t,n)}]}function dt(){this.$get=function(){function e(e,i){function r(e){e!=p&&(h?h==e&&(h=e.n):h=e,o(e.n,e.p),o(e,p),p=e,p.n=null)}function o(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in n)throw t("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=u({},i,{id:e}),l=fe(),c=i&&i.capacity||Number.MAX_VALUE,d=fe(),p=null,h=null;return n[e]={put:function(e,t){if(!v(t)){if(c<Number.MAX_VALUE){var n=d[e]||(d[e]={key:e});r(n)}return e in l||a++,l[e]=t,a>c&&this.remove(h.key),t}},get:function(e){if(c<Number.MAX_VALUE){var t=d[e];if(!t)return;r(t)}return l[e]},remove:function(e){if(c<Number.MAX_VALUE){var t=d[e];if(!t)return;t==p&&(p=t.p),t==h&&(h=t.n),o(t.n,t.p),delete d[e]}e in l&&(delete l[e],a--)},removeAll:function(){l=fe(),a=0,d=fe(),p=h=null},destroy:function(){l=null,s=null,d=null,delete n[e]},info:function(){return u({},s,{size:a})}}}var n={};return e.info=function(){var e={};return i(n,function(t,n){e[n]=t.info()}),e},e.get=function(e){return n[e]},e}}function pt(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function ht(){}function ft(t,n){function r(e,t,n){var r=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,o=fe();return i(e,function(e,i){if(e in T)return void(o[i]=T[e]);var a=e.match(r);if(!a)throw Wr("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,i,e,n?"controller bindings definition":"isolate scope definition");o[i]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||i},a[4]&&(T[e]=o[i])}),o}function a(e,t){var n={isolateScope:null,bindToController:null};if(b(e.scope)&&(e.bindToController===!0?(n.bindToController=r(e.scope,t,!0),n.isolateScope={}):n.isolateScope=r(e.scope,t,!1)),b(e.bindToController)&&(n.bindToController=r(e.bindToController,t,!0)),b(n.bindToController)){var i=e.controller,o=e.controllerAs;if(!i)throw Wr("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);if(!bt(i,o))throw Wr("noident","Cannot bind to controller without identifier for directive '{0}'.",t)}return n}function s(e){var t=e.charAt(0);if(!t||t!==Ai(t))throw Wr("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw Wr("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}function l(e){var t=e.require||e.controller&&e.name;return!Xi(t)&&b(t)&&i(t,function(e,n){var i=e.match(C),r=e.substring(i[0].length);r||(t[n]=i[0]+n)}),t}var c={},d="Directive",m=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,w=/(([\w\-]+)(?:\:([^;]+))?;?)/,k=O("ngSrc,ngSrcset,src,srcset"),C=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,$=/^(on[a-z]+|formaction)$/,T=fe();this.directive=function M(e,n){return de(e,"directive"),x(e)?(s(e),ue(n,"directiveFactory"),c.hasOwnProperty(e)||(c[e]=[],t.factory(e+d,["$injector","$exceptionHandler",function(t,n){var r=[];return i(c[e],function(i,o){try{var a=t.invoke(i);S(a)?a={compile:g(a)}:!a.compile&&a.link&&(a.compile=g(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||e,a.require=l(a),a.restrict=a.restrict||"EA",a.$$moduleName=i.$$moduleName,r.push(a)}catch(s){n(s)}}),r}])),c[e].push(n)):i(e,o(M)),this},this.component=function(e,t){function n(e){function n(t){return S(t)||Xi(t)?function(n,i){return e.invoke(t,this,{$element:n,$attrs:i})}:t}var o=t.template||t.templateUrl?t.template:"",a={controller:r,controllerAs:bt(t.controller)||t.controllerAs||"$ctrl",template:n(o),templateUrl:n(t.templateUrl),transclude:t.transclude,scope:{},bindToController:t.bindings||{},restrict:"E",require:t.require};return i(t,function(e,t){"$"===t.charAt(0)&&(a[t]=e)}),a}var r=t.controller||function(){};return i(t,function(e,t){"$"===t.charAt(0)&&(n[t]=e,S(r)&&(r[t]=e))}),n.$inject=["$injector"],this.directive(e,n)},this.aHrefSanitizationWhitelist=function(e){return y(e)?(n.aHrefSanitizationWhitelist(e),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(n.imgSrcSanitizationWhitelist(e),this):n.imgSrcSanitizationWhitelist()};var E=!0;this.debugInfoEnabled=function(e){return y(e)?(E=e,this):E};var D=10;this.onChangesTtl=function(e){return arguments.length?(D=e,this):D},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(t,n,r,o,s,l,g,T,M,P){function A(){try{if(!--Ce)throw be=void 0,Wr("infchng","{0} $onChanges() iterations reached. Aborting!\n",D);g.$apply(function(){for(var e=[],t=0,n=be.length;t<n;++t)try{be[t]()}catch(i){e.push(i)}if(be=void 0,e.length)throw e})}finally{Ce++}}function N(e,t){if(t){var n,i,r,o=Object.keys(t);for(n=0,i=o.length;n<i;n++)r=o[n],this[r]=t[r]}else this.$attr={};this.$$element=e}function j(e,t,n){xe.innerHTML="<span "+t+">";var i=xe.firstChild.attributes,r=i[0];i.removeNamedItem(r.name),r.value=n,e.attributes.setNamedItem(r)}function O(e,t){try{e.addClass(t)}catch(n){}}function F(t,n,i,r,o){t instanceof Ri||(t=Ri(t));for(var a=/\S+/,s=0,l=t.length;s<l;s++){var u=t[s];u.nodeType===sr&&u.nodeValue.match(a)&&Ee(u,t[s]=e.document.createElement("span"))}var c=z(t,n,t,i,r,o);F.$$addScopeClass(t);var d=null;return function(e,n,i){ue(e,"scope"),o&&o.needsNewScope&&(e=e.$parent.$new()),i=i||{};var r=i.parentBoundTranscludeFn,a=i.transcludeControllers,s=i.futureParentElement;r&&r.$$boundTransclude&&(r=r.$$boundTransclude),d||(d=B(s));var l;if(l="html"!==d?Ri(de(d,Ri("<div>").append(t).html())):n?Tr.clone.call(t):t,a)for(var u in a)l.data("$"+u+"Controller",a[u].instance);return F.$$addScopeInfo(l,e),n&&n(l,e),c&&c(e,l,l,r),l}}function B(e){var t=e&&e[0];return t&&"foreignobject"!==L(t)&&zi.call(t).match(/SVG/)?"svg":"html"}function z(e,t,n,i,r,o){function a(e,n,i,r){var o,a,s,l,u,c,d,p,g;if(h){var m=n.length;for(g=new Array(m),u=0;u<f.length;u+=3)d=f[u],g[d]=n[d]}else g=n;for(u=0,c=f.length;u<c;)s=g[f[u++]],o=f[u++],a=f[u++],o?(o.scope?(l=e.$new(),F.$$addScopeInfo(Ri(s),l)):l=e,p=o.transcludeOnThisElement?V(e,o.transclude,r):!o.templateOnThisElement&&r?r:!r&&t?V(e,t):null,o(a,l,s,i,p)):a&&a(e,s.childNodes,void 0,r)}for(var s,l,u,c,d,p,h,f=[],g=0;g<e.length;g++)s=new N,l=W(e[g],[],s,0===g?i:void 0,r),u=l.length?Q(l,e[g],s,t,n,null,[],[],o):null,u&&u.scope&&F.$$addScopeClass(s.$$element),d=u&&u.terminal||!(c=e[g].childNodes)||!c.length?null:z(c,u?(u.transcludeOnThisElement||!u.templateOnThisElement)&&u.transclude:t),(u||d)&&(f.push(g,u,d),p=!0,h=h||u),o=null;return p?a:null}function V(e,t,n){function i(i,r,o,a,s){return i||(i=e.$new(!1,s),i.$$transcluded=!0),t(i,r,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var r=i.$$slots=fe();for(var o in t.$$slots)t.$$slots[o]?r[o]=V(e,t.$$slots[o],n):r[o]=null;return i}function W(e,t,n,i,r){var o,a,s=e.nodeType,l=n.$attr;switch(s){case or:ne(t,mt(L(e)),"E",i,r);for(var u,c,d,p,h,f,g=e.attributes,m=0,v=g&&g.length;m<v;m++){var y=!1,k=!1;u=g[m],c=u.name,h=Yi(u.value),p=mt(c),(f=_e.test(p))&&(c=c.replace(Gr,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()}));var C=p.match(De);C&&ie(C[1])&&(y=c,k=c.substr(0,c.length-5)+"end",c=c.substr(0,c.length-6)),d=mt(c.toLowerCase()),l[d]=c,!f&&n.hasOwnProperty(d)||(n[d]=h,Ve(e,d)&&(n[d]=!0)),he(e,t,h,d,f),ne(t,d,"A",i,r,y,k)}if(a=e.className,b(a)&&(a=a.animVal),x(a)&&""!==a)for(;o=w.exec(a);)d=mt(o[2]),ne(t,d,"C",i,r)&&(n[d]=Yi(o[3])),a=a.substr(o.index+o[0].length);break;case sr:if(11===Li)for(;e.parentNode&&e.nextSibling&&e.nextSibling.nodeType===sr;)e.nodeValue=e.nodeValue+e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);ce(t,e.nodeValue);break;case lr:J(e,t,n,i,r)}return t.sort(ae),t}function J(e,t,n,i,r){try{var o=m.exec(e.nodeValue);if(o){var a=mt(o[1]);ne(t,a,"M",i,r)&&(n[a]=Yi(o[2]))}}catch(s){}}function G(e,t,n){var i=[],r=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e)throw Wr("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType==or&&(e.hasAttribute(t)&&r++,e.hasAttribute(n)&&r--),i.push(e),e=e.nextSibling}while(r>0)}else i.push(e);return Ri(i)}function X(e,t,n){return function(i,r,o,a,s){return r=G(r[0],t,n),e(i,r,o,a,s)}}function Y(e,t,n,i,r,o){var a;return e?F(t,n,i,r,o):function(){return a||(a=F(t,n,i,r,o),t=n=o=null),a.apply(this,arguments)}}function Q(e,t,n,o,a,s,l,c,d){function p(e,t,n,i){e&&(n&&(e=X(e,n,i)),e.require=f.require,e.directiveName=g,($===f||f.$$isolateScope)&&(e=me(e,{isolateScope:!0})),l.push(e)),t&&(n&&(t=X(t,n,i)),t.require=f.require,t.directiveName=g,($===f||f.$$isolateScope)&&(t=me(t,{isolateScope:!0})),c.push(t))}function h(e,o,a,s,d){function p(e,t,n,i){var r;if(_(e)||(i=n,n=t,t=e,e=void 0),I&&(r=w),n||(n=I?E.parent():E),!i)return d(e,t,r,n,R);var o=d.$$slots[i];if(o)return o(e,t,r,n,R);if(v(o))throw Wr("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',i,K(E))}var h,f,g,m,y,w,x,E,D,M;t===a?(D=n,E=n.$$element):(E=Ri(a),D=new N(E,n)),y=o,$?m=o.$new(!0):k&&(y=o.$parent),d&&(x=p,x.$$boundTransclude=d,x.isSlotFilled=function(e){return!!d.$$slots[e]}),C&&(w=ee(E,D,x,C,m,o,$)),$&&(F.$$addScopeInfo(E,m,!0,!(T&&(T===$||T===$.$$originalDirective))),F.$$addScopeClass(E,!0),m.$$isolateBindings=$.$$isolateBindings,M=ye(o,D,m,m.$$isolateBindings,$),M.removeWatches&&m.$on("$destroy",M.removeWatches));for(var P in w){var A=C[P],j=w[P],O=A.$$bindings.bindToController;j.identifier&&O?j.bindingInfo=ye(y,D,j.instance,O,A):j.bindingInfo={};var L=j();L!==j.instance&&(j.instance=L,E.data("$"+A.name+"Controller",L),j.bindingInfo.removeWatches&&j.bindingInfo.removeWatches(),j.bindingInfo=ye(y,D,j.instance,O,A))}for(i(C,function(e,t){var n=e.require;e.bindToController&&!Xi(n)&&b(n)&&u(w[t].instance,Z(t,n,E,w))}),i(w,function(e){var t=e.instance;if(S(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(n){r(n)}if(S(t.$onInit))try{t.$onInit()}catch(n){r(n)}S(t.$doCheck)&&(y.$watch(function(){t.$doCheck()}),t.$doCheck()),S(t.$onDestroy)&&y.$on("$destroy",function(){t.$onDestroy()})}),h=0,f=l.length;h<f;h++)g=l[h],ve(g,g.isolateScope?m:o,E,D,g.require&&Z(g.directiveName,g.require,E,w),x);var R=o;for($&&($.template||null===$.templateUrl)&&(R=m),e&&e(R,a.childNodes,void 0,d),h=c.length-1;h>=0;h--)g=c[h],ve(g,g.isolateScope?m:o,E,D,g.require&&Z(g.directiveName,g.require,E,w),x);i(w,function(e){var t=e.instance;S(t.$postLink)&&t.$postLink()})}d=d||{};for(var f,g,m,y,w,x=-Number.MAX_VALUE,k=d.newScopeDirective,C=d.controllerDirectives,$=d.newIsolateScopeDirective,T=d.templateDirective,E=d.nonTlbTranscludeDirective,D=!1,M=!1,I=d.hasElementTranscludeDirective,P=n.$$element=Ri(t),A=s,j=o,O=!1,R=!1,q=0,B=e.length;q<B;q++){f=e[q];var z=f.$$start,V=f.$$end;if(z&&(P=G(t,z,V)),m=void 0,x>f.priority)break;if((w=f.scope)&&(f.templateUrl||(b(w)?(le("new/isolated scope",$||k,f,P),$=f):le("new/isolated scope",$,f,P)),k=k||f),g=f.name,!O&&(f.replace&&(f.templateUrl||f.template)||f.transclude&&!f.$$tlb)){for(var J,Q=q+1;J=e[Q++];)if(J.transclude&&!J.$$tlb||J.replace&&(J.templateUrl||J.template)){R=!0;break}O=!0}if(!f.templateUrl&&f.controller&&(w=f.controller,C=C||fe(),le("'"+g+"' controller",C[g],f,P),C[g]=f),w=f.transclude)if(D=!0,f.$$tlb||(le("transclusion",E,f,P),E=f),"element"==w)I=!0,x=f.priority,m=P,P=n.$$element=Ri(F.$$createComment(g,n[g])),t=P[0],ge(a,H(m),t),m[0].$$parentNode=m[0].parentNode,j=Y(R,m,o,x,A&&A.name,{nonTlbTranscludeDirective:E});else{var ne=fe();if(m=Ri(Me(t)).contents(),b(w)){m=[];var ie=fe(),ae=fe();i(w,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,ie[e]=t,ne[t]=null,ae[t]=n}),i(P.contents(),function(e){var t=ie[mt(L(e))];t?(ae[t]=!0,ne[t]=ne[t]||[],ne[t].push(e)):m.push(e)}),i(ae,function(e,t){if(!e)throw Wr("reqslot","Required transclusion slot `+"`"+`{0}`+"`"+` was not filled.",t)});for(var se in ne)ne[se]&&(ne[se]=Y(R,ne[se],o))}P.empty(),j=Y(R,m,o,void 0,void 0,{needsNewScope:f.$$isolateScope||f.$$newScope}),j.$$slots=ne}if(f.template)if(M=!0,le("template",T,f,P),T=f,w=S(f.template)?f.template(P,n):f.template,w=Te(w),f.replace){if(A=f,m=ke(w)?[]:yt(de(f.templateNamespace,Yi(w))),t=m[0],1!=m.length||t.nodeType!==or)throw Wr("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g,"");ge(a,P,t);var ue={$attr:{}},ce=W(t,[],ue),pe=e.splice(q+1,e.length-(q+1));($||k)&&te(ce,$,k),e=e.concat(ce).concat(pe),re(n,ue),B=e.length}else P.html(w);if(f.templateUrl)M=!0,le("template",T,f,P),T=f,f.replace&&(A=f),h=oe(e.splice(q,e.length-q),P,n,a,D&&j,l,c,{controllerDirectives:C,newScopeDirective:k!==f&&k,newIsolateScopeDirective:$,templateDirective:T,nonTlbTranscludeDirective:E}),B=e.length;else if(f.compile)try{y=f.compile(P,n,j);var he=f.$$originalDirective||f;S(y)?p(null,U(he,y),z,V):y&&p(U(he,y.pre),U(he,y.post),z,V)}catch(be){r(be,K(P))}f.terminal&&(h.terminal=!0,x=Math.max(x,f.priority))}return h.scope=k&&k.scope===!0,h.transcludeOnThisElement=D,h.templateOnThisElement=M,h.transclude=j,d.hasElementTranscludeDirective=I,h}function Z(e,t,n,r){var o;if(x(t)){var a=t.match(C),s=t.substring(a[0].length),l=a[1]||a[3],u="?"===a[2];if("^^"===l?n=n.parent():(o=r&&r[s],o=o&&o.instance),!o){var c="$"+s+"Controller";o=l?n.inheritedData(c):n.data(c)}if(!o&&!u)throw Wr("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,e)}else if(Xi(t)){o=[];for(var d=0,p=t.length;d<p;d++)o[d]=Z(e,t[d],n,r)}else b(t)&&(o={},i(t,function(t,i){o[i]=Z(e,t,n,r)}));return o||null}function ee(e,t,n,i,r,o,a){var s=fe();for(var u in i){var c=i[u],d={$scope:c===a||c.$$isolateScope?r:o,$element:e,$attrs:t,$transclude:n},p=c.controller;"@"==p&&(p=t[c.name]);var h=l(p,d,!0,c.controllerAs);s[c.name]=h,e.data("$"+c.name+"Controller",h.instance)}return s}function te(e,t,n){for(var i=0,r=e.length;i<r;i++)e[i]=p(e[i],{$$isolateScope:t,$$newScope:n})}function ne(e,n,i,o,s,l,u){if(n===s)return null;var h=null;if(c.hasOwnProperty(n))for(var f,g=t.get(n+d),m=0,y=g.length;m<y;m++)try{if(f=g[m],(v(o)||o>f.priority)&&f.restrict.indexOf(i)!=-1){if(l&&(f=p(f,{$$start:l,$$end:u})),!f.$$bindings){var w=f.$$bindings=a(f,f.name);b(w.isolateScope)&&(f.$$isolateBindings=w.isolateScope)}e.push(f),h=f}}catch(x){r(x)}return h}function ie(e){if(c.hasOwnProperty(e))for(var n,i=t.get(e+d),r=0,o=i.length;r<o;r++)if(n=i[r],n.multiElement)return!0;return!1}function re(e,t){var n=t.$attr,r=e.$attr;e.$$element;i(e,function(i,r){"$"!=r.charAt(0)&&(t[r]&&t[r]!==i&&(i+=("style"===r?";":" ")+t[r]),e.$set(r,i,!0,n[r]))}),i(t,function(t,i){e.hasOwnProperty(i)||"$"===i.charAt(0)||(e[i]=t,"class"!==i&&"style"!==i&&(r[i]=n[i]))})}function oe(e,t,n,r,a,s,l,u){var c,d,h=[],f=t[0],g=e.shift(),m=p(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),v=S(g.templateUrl)?g.templateUrl(t,n):g.templateUrl,y=g.templateNamespace;return t.empty(),o(v).then(function(o){var p,w,x,k;if(o=Te(o),g.replace){if(x=ke(o)?[]:yt(de(y,Yi(o))),p=x[0],1!=x.length||p.nodeType!==or)throw Wr("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g.name,v);w={$attr:{}},ge(r,t,p);var C=W(p,[],w);b(g.scope)&&te(C,!0),e=C.concat(e),re(n,w)}else p=f,t.html(o);for(e.unshift(m),c=Q(e,p,n,a,t,g,s,l,u),i(r,function(e,n){e==p&&(r[n]=t[0])}),d=z(t[0].childNodes,a);h.length;){var S=h.shift(),$=h.shift(),T=h.shift(),_=h.shift(),E=t[0];if(!S.$$destroyed){if($!==f){var D=$.className;u.hasElementTranscludeDirective&&g.replace||(E=Me(p)),ge(T,Ri($),E),O(Ri(E),D)}k=c.transcludeOnThisElement?V(S,c.transclude,_):_,c(d,S,E,r,k)}}h=null}),function(e,t,n,i,r){var o=r;t.$$destroyed||(h?h.push(t,n,i,o):(c.transcludeOnThisElement&&(o=V(t,c.transclude,r)),c(d,t,n,i,o)))}}function ae(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function le(e,t,n,i){function r(e){return e?" (module: "+e+")":""}if(t)throw Wr("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,r(t.$$moduleName),n.name,r(n.$$moduleName),e,K(i))}function ce(e,t){var i=n(t,!0);i&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&F.$$addBindingClass(t),function(e,t){var r=t.parent();n||F.$$addBindingClass(r),F.$$addBindingInfo(r,i.expressions),e.$watch(i,function(e){t[0].nodeValue=e})}}})}function de(t,n){switch(t=Ai(t||"html")){case"svg":case"math":var i=e.document.createElement("div");return i.innerHTML="<"+t+">"+n+"</"+t+">",i.childNodes[0].childNodes;default:return n}}function pe(e,t){if("srcdoc"==t)return T.HTML;var n=L(e);return"xlinkHref"==t||"form"==n&&"action"==t||"img"!=n&&("src"==t||"ngSrc"==t)?T.RESOURCE_URL:void 0}function he(e,t,i,r,o){var a=pe(e,r);o=k[r]||o;var s=n(i,!0,a,o);if(s){if("multiple"===r&&"select"===L(e))throw Wr("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",K(e));
|
|
...
|
...
|
@@ -25803,12 +25803,12 @@ title:"Skip Binding On Error Code",required:!1,deprecated:!1},enableCORS:{kind:"
|
|
25803
|
25803
|
title:"Algorithm",required:!1,deprecated:!1},cryptoProvider:{kind:"attribute",type:"string",description:"The name of the JCE Security Provider that should be used.",title:"Crypto Provider",required:!1,deprecated:!1},keyRef:{kind:"attribute",type:"string",description:"Refers to the secret key to lookup from the register to use.",title:"Key Ref",required:!1,deprecated:!1},initVectorRef:{kind:"attribute",type:"string",description:"Refers to a byte array containing the Initialization Vector that will be used to initialize the Cipher.",title:"Init Vector Ref",required:!1,deprecated:!1},algorithmParameterRef:{kind:"attribute",type:"string",description:"A JCE AlgorithmParameterSpec used to initialize the Cipher. Will lookup the type using the given name as a java.security.spec.AlgorithmParameterSpec type.",title:"Algorithm Parameter Ref",required:!1,deprecated:!1},buffersize:{kind:"attribute",type:"integer",description:"The size of the buffer used in the signature process.",title:"Buffersize",required:!1,deprecated:!1},macAlgorithm:{kind:"attribute",type:"string",defaultValue:"HmacSHA1",description:"The JCE algorithm name indicating the Message Authentication algorithm.",title:"Mac Algorithm",required:!1,deprecated:!1},shouldAppendHMAC:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Flag indicating that a Message Authentication Code should be calculated and appended to the encrypted data.",title:"Should Append H M A C",required:!1,deprecated:!1},inline:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Flag indicating that the configured IV should be inlined into the encrypted data stream. Is by default false.",title:"Inline",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},csv:{type:"object",title:"CSV",group:"dataformat,transformation,csv",icon:"generic24.png",description:"CSV data format",properties:{formatRef:{kind:"attribute",type:"string",description:"The reference format to use it will be updated with the other format options the default value is CSVFormat.DEFAULT",title:"Format Ref",required:!1,deprecated:!1},formatName:{kind:"attribute",type:"string",description:"The name of the format to use the default value is CSVFormat.DEFAULT",title:"Format Name",required:!1,deprecated:!1},commentMarkerDisabled:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Disables the comment marker of the reference format.",title:"Comment Marker Disabled",required:!1,deprecated:!1},commentMarker:{kind:"attribute",type:"string",description:"Sets the comment marker of the reference format.",title:"Comment Marker",required:!1,deprecated:!1},delimiter:{kind:"attribute",type:"string",description:"Sets the delimiter to use. The default value is (comma)",title:"Delimiter",required:!1,deprecated:!1},escapeDisabled:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Use for disabling using escape character",title:"Escape Disabled",required:!1,deprecated:!1},escape:{kind:"attribute",type:"string",description:"Sets the escape character to use",title:"Escape",required:!1,deprecated:!1},headerDisabled:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Use for disabling headers",title:"Header Disabled",required:!1,deprecated:!1},header:{kind:"element",type:"array",description:"To configure the CSV headers",title:"Header",required:!1,deprecated:!1},allowMissingColumnNames:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether to allow missing column names.",title:"Allow Missing Column Names",required:!1,deprecated:!1},ignoreEmptyLines:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether to ignore empty lines.",title:"Ignore Empty Lines",required:!1,deprecated:!1},ignoreSurroundingSpaces:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether to ignore surrounding spaces",title:"Ignore Surrounding Spaces",required:!1,deprecated:!1},nullStringDisabled:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Used to disable null strings",title:"Null String Disabled",required:!1,deprecated:!1},nullString:{kind:"attribute",type:"string",description:"Sets the null string",title:"Null String",required:!1,deprecated:!1},quoteDisabled:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Used to disable quotes",title:"Quote Disabled",required:!1,deprecated:!1},quote:{kind:"attribute",type:"string",description:"Sets the quote which by default is",title:"Quote",required:!1,deprecated:!1},recordSeparatorDisabled:{kind:"attribute",type:"string",description:"Used for disabling record separator",title:"Record Separator Disabled",required:!1,deprecated:!1},recordSeparator:{kind:"attribute",type:"string",description:"Sets the record separator (aka new line) which by default is \r\n (CRLF)",title:"Record Separator",required:!1,deprecated:!1},skipHeaderRecord:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether to skip the header record in the output",title:"Skip Header Record",required:!1,deprecated:!1},lazyLoad:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether the unmarshalling should produce an iterator that reads the lines on the fly or if all the lines must be read at one.",title:"Lazy Load",required:!1,deprecated:!1},useMaps:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether the unmarshalling should produce maps for the lines values instead of lists. It requires to have header (either defined or collected).",title:"Use Maps",required:!1,deprecated:!1},recordConverterRef:{kind:"attribute",type:"string",description:"Refers to a custom CsvRecordConverter to lookup from the registry to use.",title:"Record Converter Ref",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},customDataFormat:{type:"object",title:"Custom",group:"dataformat,transformation",icon:"generic24.png",description:"Custom data format",properties:{ref:{kind:"attribute",type:"string",description:"Reference to the custom org.apache.camel.spi.DataFormat to lookup from the Camel registry.",title:"Ref",required:!0,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},dataFormats:{type:"object",title:"Data formats",group:"dataformat,transformation",icon:"generic24.png",description:"To configure data formats",properties:{dataFormats:{kind:"element",type:"array",description:"A list holding the configured data formats",title:"Data Formats",required:!0,deprecated:!1}}},flatpack:{type:"object",title:"Flatpack",group:"dataformat,transformation,csv",icon:"generic24.png",description:"Flatpack data format",properties:{parserFactoryRef:{kind:"attribute",type:"string",description:"References to a custom parser factory to lookup in the registry",title:"Parser Factory Ref",required:!1,deprecated:!1},definition:{kind:"attribute",type:"string",description:"The flatpack pzmap configuration file. Can be omitted in simpler situations but its preferred to use the pzmap.",title:"Definition",required:!1,deprecated:!1},fixed:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Delimited or fixed. Is by default false = delimited",title:"Fixed",required:!1,deprecated:!1},ignoreFirstRecord:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether the first line is ignored for delimited files (for the column headers). Is by default true.",title:"Ignore First Record",required:!1,deprecated:!1},textQualifier:{kind:"attribute",type:"string",defaultValue:'"',description:'If the text is qualified with a char such as "',title:"Text Qualifier",required:!1,deprecated:!1},delimiter:{kind:"attribute",type:"string",defaultValue:",",description:"The delimiter char (could be ; or similar)",title:"Delimiter",required:!1,deprecated:!1},allowShortLines:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Allows for lines to be shorter than expected and ignores the extra characters",title:"Allow Short Lines",required:!1,deprecated:!1},ignoreExtraColumns:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Allows for lines to be longer than expected and ignores the extra characters.",title:"Ignore Extra Columns",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},gzip:{type:"object",title:"GZip",group:"dataformat,transformation",icon:"generic24.png",description:"GZip data format",properties:{id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},hl7:{type:"object",title:"HL7",group:"dataformat,transformation,hl7",icon:"generic24.png",description:"HL7 data format",properties:{validate:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to validate the HL7 message Is by default true.",title:"Validate",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},ical:{type:"object",title:"iCal",group:"dataformat,transformation",icon:"generic24.png",description:"iCal data format",properties:{validating:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether to validate.",title:"Validating",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},jacksonxml:{type:"object",title:"JacksonXML",group:"dataformat,transformation,xml",icon:"generic24.png",description:"Jackson XML data format",properties:{prettyPrint:{kind:"attribute",type:"boolean",defaultValue:"false",description:"To enable pretty printing output nicely formatted. Is by default false.",title:"Pretty Print",required:!1,deprecated:!1},unmarshalTypeName:{kind:"attribute",type:"string",description:"Class name of the java type to use when unarmshalling",title:"Unmarshal Type Name",required:!1,deprecated:!1},jsonView:{kind:"attribute",type:"string",description:"When marshalling a POJO to JSON you might want to exclude certain fields from the JSON output. With Jackson you can use JSON views to accomplish this. This option is to refer to the class which has JsonView annotations",title:"Json View",required:!1,deprecated:!1},include:{kind:"attribute",type:"string",description:"If you want to marshal a pojo to JSON and the pojo has some fields with null values. And you want to skip these null values you can set this option to NOT_NULL",title:"Include",required:!1,deprecated:!1},allowJmsType:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Used for JMS users to allow the JMSType header from the JMS spec to specify a FQN classname to use to unmarshal to.",title:"Allow Jms Type",required:!1,deprecated:!1},collectionTypeName:{kind:"attribute",type:"string",description:"Refers to a custom collection type to lookup in the registry to use. This option should rarely be used but allows to use different collection types than java.util.Collection based as default.",title:"Collection Type Name",required:!1,deprecated:!1},useList:{kind:"attribute",type:"boolean",defaultValue:"false",description:"To unarmshal to a List of Map or a List of Pojo.",title:"Use List",required:!1,deprecated:!1},enableJaxbAnnotationModule:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether to enable the JAXB annotations module when using jackson. When enabled then JAXB annotations can be used by Jackson.",title:"Enable Jaxb Annotation Module",required:!1,deprecated:!1},moduleClassNames:{kind:"attribute",type:"string",description:"To use custom Jackson modules com.fasterxml.jackson.databind.Module specified as a String with FQN class names. Multiple classes can be separated by comma.",title:"Module Class Names",required:!1,deprecated:!1},moduleRefs:{kind:"attribute",type:"string",description:"To use custom Jackson modules referred from the Camel registry. Multiple modules can be separated by comma.",title:"Module Refs",required:!1,deprecated:!1},enableFeatures:{kind:"attribute",type:"string",description:"Set of features to enable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature com.fasterxml.jackson.databind.DeserializationFeature or com.fasterxml.jackson.databind.MapperFeature Multiple features can be separated by comma",title:"Enable Features",required:!1,deprecated:!1},disableFeatures:{kind:"attribute",type:"string",description:"Set of features to disable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature com.fasterxml.jackson.databind.DeserializationFeature or com.fasterxml.jackson.databind.MapperFeature Multiple features can be separated by comma",title:"Disable Features",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},jaxb:{type:"object",title:"JAXB",group:"dataformat,transformation,xml",icon:"generic24.png",description:"JAXB data format",properties:{contextPath:{kind:"attribute",type:"string",description:"Package name where your JAXB classes are located.",title:"Context Path",required:!0,deprecated:!1},schema:{kind:"attribute",type:"string",description:"To validate against an existing schema. Your can use the prefix classpath: file: or http: to specify how the resource should by resolved. You can separate multiple schema files by using the '' character.",title:"Schema",required:!1,deprecated:!1},prettyPrint:{kind:"attribute",type:"boolean",defaultValue:"false",description:"To enable pretty printing output nicely formatted. Is by default false.",title:"Pretty Print",required:!1,deprecated:!1},ignoreJAXBElement:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether to ignore JAXBElement elements - only needed to be set to false in very special use-cases.",title:"Ignore J A X B Element",required:!1,deprecated:!1},mustBeJAXBElement:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether marhsalling must be java objects with JAXB annotations. And if not then it fails. This option can be set to false to relax that such as when the data is already in XML format.",title:"Must Be J A X B Element",required:!1,deprecated:!1},filterNonXmlChars:{kind:"attribute",type:"boolean",defaultValue:"false",description:"To ignore non xml characheters and replace them with an empty space.",title:"Filter Non Xml Chars",required:!1,deprecated:!1},encoding:{kind:"attribute",type:"string",description:"To overrule and use a specific encoding",title:"Encoding",required:!1,deprecated:!1},fragment:{kind:"attribute",type:"boolean",defaultValue:"false",description:"To turn on marshalling XML fragment trees. By default JAXB looks for XmlRootElement annotation on given class to operate on whole XML tree. This is useful but not always - sometimes generated code does not have XmlRootElement annotation sometimes you need unmarshall only part of tree. In that case you can use partial unmarshalling. To enable this behaviours you need set property partClass. Camel will pass this class to JAXB's unmarshaler.",title:"Fragment",required:!1,deprecated:!1},partClass:{kind:"attribute",type:"string",description:"Name of class used for fragment parsing. See more details at the fragment option.",title:"Part Class",required:!1,deprecated:!1},partNamespace:{kind:"attribute",type:"string",description:"XML namespace to use for fragment parsing. See more details at the fragment option.",title:"Part Namespace",required:!1,deprecated:!1},namespacePrefixRef:{kind:"attribute",type:"string",description:"When marshalling using JAXB or SOAP then the JAXB implementation will automatic assign namespace prefixes such as ns2 ns3 ns4 etc. To control this mapping Camel allows you to refer to a map which contains the desired mapping.",title:"Namespace Prefix Ref",required:!1,deprecated:!1},xmlStreamWriterWrapper:{kind:"attribute",type:"string",description:"To use a custom xml stream writer.",title:"Xml Stream Writer Wrapper",required:!1,deprecated:!1},schemaLocation:{kind:"attribute",type:"string",description:"To define the location of the schema",title:"Schema Location",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},jibx:{type:"object",title:"JiBX",group:"dataformat,transformation,xml",icon:"generic24.png",description:"JiBX data format",properties:{unmarshallClass:{kind:"attribute",type:"string",description:"Class name to use when unmarshalling from XML to Java.",title:"Unmarshall Class",required:!1,deprecated:!1},bindingName:{kind:"attribute",type:"string",description:"To use a custom binding factory",title:"Binding Name",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},json:{type:"object",title:"JSon",group:"dataformat,transformation,json",icon:"generic24.png",description:"Json data format",properties:{prettyPrint:{kind:"attribute",type:"boolean",defaultValue:"false",description:"To enable pretty printing output nicely formatted. Is by default false.",title:"Pretty Print",required:!1,deprecated:!1},library:{kind:"attribute",type:"string",defaultValue:"XStream","enum":["Gson","Jackson","XStream"],description:"Which json library to use such. Is by default xstream",title:"Library",required:!1,deprecated:!1},unmarshalTypeName:{kind:"attribute",type:"string",description:"Class name of the java type to use when unarmshalling",title:"Unmarshal Type Name",required:!1,deprecated:!1},jsonView:{kind:"attribute",type:"string",description:"When marshalling a POJO to JSON you might want to exclude certain fields from the JSON output. With Jackson you can use JSON views to accomplish this. This option is to refer to the class which has JsonView annotations",title:"Json View",required:!1,deprecated:!1},include:{kind:"attribute",type:"string",description:"If you want to marshal a pojo to JSON and the pojo has some fields with null values. And you want to skip these null values you can set this option to NOT_NULL",title:"Include",required:!1,deprecated:!1},allowJmsType:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Used for JMS users to allow the JMSType header from the JMS spec to specify a FQN classname to use to unmarshal to.",title:"Allow Jms Type",required:!1,deprecated:!1},collectionTypeName:{kind:"attribute",type:"string",description:"Refers to a custom collection type to lookup in the registry to use. This option should rarely be used but allows to use different collection types than java.util.Collection based as default.",title:"Collection Type Name",required:!1,deprecated:!1},useList:{kind:"attribute",type:"boolean",defaultValue:"false",description:"To unarmshal to a List of Map or a List of Pojo.",title:"Use List",required:!1,deprecated:!1},enableJaxbAnnotationModule:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether to enable the JAXB annotations module when using jackson. When enabled then JAXB annotations can be used by Jackson.",title:"Enable Jaxb Annotation Module",required:!1,deprecated:!1},moduleClassNames:{kind:"attribute",type:"string",description:"To use custom Jackson modules com.fasterxml.jackson.databind.Module specified as a String with FQN class names. Multiple classes can be separated by comma.",title:"Module Class Names",required:!1,deprecated:!1},moduleRefs:{kind:"attribute",type:"string",description:"To use custom Jackson modules referred from the Camel registry. Multiple modules can be separated by comma.",title:"Module Refs",required:!1,deprecated:!1},enableFeatures:{kind:"attribute",type:"string",description:"Set of features to enable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature com.fasterxml.jackson.databind.DeserializationFeature or com.fasterxml.jackson.databind.MapperFeature Multiple features can be separated by comma",title:"Enable Features",required:!1,deprecated:!1},disableFeatures:{kind:"attribute",type:"string",description:"Set of features to disable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature com.fasterxml.jackson.databind.DeserializationFeature or com.fasterxml.jackson.databind.MapperFeature Multiple features can be separated by comma",title:"Disable Features",required:!1,deprecated:!1},permissions:{kind:"attribute",type:"string",description:"Adds permissions that controls which Java packages and classes XStream is allowed to use during unmarshal from xml/json to Java beans. A permission must be configured either here or globally using a JVM system property. The permission can be specified in a syntax where a plus sign is allow and minus sign is deny. Wildcards is supported by using . as prefix. For example to allow com.foo and all subpackages then specfy com.foo.. Multiple permissions can be configured separated by comma such as com.foo.-com.foo.bar.MySecretBean. The following default permission is always included: -java.lang.java.util. unless its overridden by specifying a JVM system property with they key org.apache.camel.xstream.permissions.",title:"Permissions",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},pgp:{type:"object",title:"PGP",group:"dataformat,transformation,security",icon:"generic24.png",description:"PGP data format",properties:{keyUserid:{kind:"attribute",type:"string",description:"The user ID of the key in the PGP keyring used during encryption. Can also be only a part of a user ID. For example if the user ID is Test User then you can use the part Test User or to address the user ID.",title:"Key Userid",required:!1,deprecated:!1},signatureKeyUserid:{kind:"attribute",type:"string",description:"User ID of the key in the PGP keyring used for signing (during encryption) or signature verification (during decryption). During the signature verification process the specified User ID restricts the public keys from the public keyring which can be used for the verification. If no User ID is specified for the signature verficiation then any public key in the public keyring can be used for the verification. Can also be only a part of a user ID. For example if the user ID is Test User then you can use the part Test User or to address the User ID.",title:"Signature Key Userid",required:!1,deprecated:!1},password:{kind:"attribute",type:"string",description:"Password used when opening the private key (not used for encryption).",title:"Password",required:!1,deprecated:!1},signaturePassword:{kind:"attribute",type:"string",description:"Password used when opening the private key used for signing (during encryption).",title:"Signature Password",required:!1,deprecated:!1},keyFileName:{kind:"attribute",type:"string",description:"Filename of the keyring; must be accessible as a classpath resource (but you can specify a location in the file system by using the file: prefix).",title:"Key File Name",required:!1,deprecated:!1},signatureKeyFileName:{kind:"attribute",type:"string",description:"Filename of the keyring to use for signing (during encryption) or for signature verification (during decryption); must be accessible as a classpath resource (but you can specify a location in the file system by using the file: prefix).",title:"Signature Key File Name",required:!1,deprecated:!1},signatureKeyRing:{kind:"attribute",type:"string",description:"Keyring used for signing/verifying as byte array. You can not set the signatureKeyFileName and signatureKeyRing at the same time.",title:"Signature Key Ring",required:!1,deprecated:!1},armored:{kind:"attribute",type:"boolean",defaultValue:"false",description:"This option will cause PGP to base64 encode the encrypted text making it available for copy/paste etc.",title:"Armored",required:!1,deprecated:!1},integrity:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Adds an integrity check/sign into the encryption file. The default value is true.",title:"Integrity",required:!1,deprecated:!1},provider:{kind:"attribute",type:"string",description:"Java Cryptography Extension (JCE) provider default is Bouncy Castle (BC). Alternatively you can use for example the IAIK JCE provider; in this case the provider must be registered beforehand and the Bouncy Castle provider must not be registered beforehand. The Sun JCE provider does not work.",title:"Provider",required:!1,deprecated:!1},algorithm:{kind:"attribute",type:"integer",description:"Symmetric key encryption algorithm; possible values are defined in org.bouncycastle.bcpg.SymmetricKeyAlgorithmTags; for example 2 (= TRIPLE DES) 3 (= CAST5) 4 (= BLOWFISH) 6 (= DES) 7 (= AES_128). Only relevant for encrypting.",title:"Algorithm",required:!1,deprecated:!1},compressionAlgorithm:{kind:"attribute",type:"integer",description:"Compression algorithm; possible values are defined in org.bouncycastle.bcpg.CompressionAlgorithmTags; for example 0 (= UNCOMPRESSED) 1 (= ZIP) 2 (= ZLIB) 3 (= BZIP2). Only relevant for encrypting.",title:"Compression Algorithm",required:!1,deprecated:!1},hashAlgorithm:{kind:"attribute",type:"integer",description:"Signature hash algorithm; possible values are defined in org.bouncycastle.bcpg.HashAlgorithmTags; for example 2 (= SHA1) 8 (= SHA256) 9 (= SHA384) 10 (= SHA512) 11 (=SHA224). Only relevant for signing.",title:"Hash Algorithm",required:!1,deprecated:!1},signatureVerificationOption:{kind:"attribute",type:"string",description:"Controls the behavior for verifying the signature during unmarshaling. There are 4 values possible: optional: The PGP message may or may not contain signatures; if it does contain signatures then a signature verification is executed. required: The PGP message must contain at least one signature; if this is not the case an exception (PGPException) is thrown. A signature verification is executed. ignore: Contained signatures in the PGP message are ignored; no signature verification is executed. no_signature_allowed: The PGP message must not contain a signature; otherwise an exception (PGPException) is thrown.",title:"Signature Verification Option",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},protobuf:{type:"object",title:"Protobuf",group:"dataformat,transformation",icon:"generic24.png",description:"Google protobuf data format",properties:{instanceClass:{kind:"attribute",type:"string",description:"Name of class to use when unarmshalling",title:"Instance Class",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},rss:{type:"object",title:"RSS",group:"dataformat,transformation",icon:"generic24.png",description:"RSS data format",properties:{id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},secureXML:{type:"object",title:"XML Security",group:"dataformat,transformation,xml,security",icon:"generic24.png",description:"xml-security data format",properties:{xmlCipherAlgorithm:{kind:"attribute",type:"string",defaultValue:"TRIPLEDES",description:"The cipher algorithm to be used for encryption/decryption of the XML message content. The available choices are: XMLCipher.TRIPLEDES XMLCipher.AES_128 XMLCipher.AES_128_GCM XMLCipher.AES_192 XMLCipher.AES_192_GCM XMLCipher.AES_256 XMLCipher.AES_256_GCM XMLCipher.SEED_128 XMLCipher.CAMELLIA_128 XMLCipher.CAMELLIA_192 XMLCipher.CAMELLIA_256 The default value is MLCipher.TRIPLEDES",title:"Xml Cipher Algorithm",required:!1,deprecated:!1},passPhrase:{kind:"attribute",type:"string",description:"A String used as passPhrase to encrypt/decrypt content. The passPhrase has to be provided. If no passPhrase is specified a default passPhrase is used. The passPhrase needs to be put together in conjunction with the appropriate encryption algorithm. For example using TRIPLEDES the passPhase can be a Only another 24 Byte key",title:"Pass Phrase",required:!1,deprecated:!1},secureTag:{kind:"attribute",type:"string",description:"The XPath reference to the XML Element selected for encryption/decryption. If no tag is specified the entire payload is encrypted/decrypted.",title:"Secure Tag",required:!1,deprecated:!1},secureTagContents:{kind:"attribute",type:"boolean",defaultValue:"false",description:"A boolean value to specify whether the XML Element is to be encrypted or the contents of the XML Element false = Element Level true = Element Content Level",title:"Secure Tag Contents",required:!1,deprecated:!1},keyCipherAlgorithm:{kind:"attribute",type:"string",defaultValue:"RSA_OAEP",description:"The cipher algorithm to be used for encryption/decryption of the asymmetric key. The available choices are: XMLCipher.RSA_v1dot5 XMLCipher.RSA_OAEP XMLCipher.RSA_OAEP_11 The default value is XMLCipher.RSA_OAEP",title:"Key Cipher Algorithm",required:!1,deprecated:!1},recipientKeyAlias:{kind:"attribute",type:"string",description:"The key alias to be used when retrieving the recipient's public or private key from a KeyStore when performing asymmetric key encryption or decryption.",title:"Recipient Key Alias",required:!1,deprecated:!1},keyOrTrustStoreParametersId:{kind:"attribute",type:"string",description:"Refers to a KeyStore instance to lookup in the registry which is used for configuration options for creating and loading a KeyStore instance that represents the sender's trustStore or recipient's keyStore.",title:"Key Or Trust Store Parameters Id",required:!1,deprecated:!1},keyPassword:{kind:"attribute",type:"string",description:"The password to be used for retrieving the private key from the KeyStore. This key is used for asymmetric decryption.",title:"Key Password",required:!1,deprecated:!1},digestAlgorithm:{kind:"attribute",type:"string",defaultValue:"SHA1",description:"The digest algorithm to use with the RSA OAEP algorithm. The available choices are: XMLCipher.SHA1 XMLCipher.SHA256 XMLCipher.SHA512 The default value is XMLCipher.SHA1",title:"Digest Algorithm",required:!1,deprecated:!1},mgfAlgorithm:{kind:"attribute",type:"string",defaultValue:"MGF1_SHA1",description:"The MGF Algorithm to use with the RSA OAEP algorithm. The available choices are: EncryptionConstants.MGF1_SHA1 EncryptionConstants.MGF1_SHA256 EncryptionConstants.MGF1_SHA512 The default value is EncryptionConstants.MGF1_SHA1",title:"Mgf Algorithm",required:!1,deprecated:!1},addKeyValueForEncryptedKey:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to add the public key used to encrypt the session key as a KeyValue in the EncryptedKey structure or not.",title:"Add Key Value For Encrypted Key",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},serialization:{type:"object",title:"Java Object Serialization",group:"dataformat,transformation,core",icon:"generic24.png",description:"Java Object Serialization data format",properties:{id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},soapjaxb:{type:"object",title:"SOAP",group:"dataformat,transformation,xml",icon:"generic24.png",description:"SOAP data format",properties:{contextPath:{kind:"attribute",
|
|
25804
|
25804
|
type:"string",description:"Package name where your JAXB classes are located.",title:"Context Path",required:!0,deprecated:!1},encoding:{kind:"attribute",type:"string",description:"To overrule and use a specific encoding",title:"Encoding",required:!1,deprecated:!1},elementNameStrategyRef:{kind:"attribute",type:"string",description:"Refers to an element strategy to lookup from the registry. An element name strategy is used for two purposes. The first is to find a xml element name for a given object and soap action when marshaling the object into a SOAP message. The second is to find an Exception class for a given soap fault name. The following three element strategy class name is provided out of the box. QNameStrategy - Uses a fixed qName that is configured on instantiation. Exception lookup is not supported TypeNameStrategy - Uses the name and namespace from the XMLType annotation of the given type. If no namespace is set then package-info is used. Exception lookup is not supported ServiceInterfaceStrategy - Uses information from a webservice interface to determine the type name and to find the exception class for a SOAP fault All three classes is located in the package name org.apache.camel.dataformat.soap.name If you have generated the web service stub code with cxf-codegen or a similar tool then you probably will want to use the ServiceInterfaceStrategy. In the case you have no annotated service interface you should use QNameStrategy or TypeNameStrategy.",title:"Element Name Strategy Ref",required:!1,deprecated:!1},version:{kind:"attribute",type:"string",defaultValue:"1.1",description:"SOAP version should either be 1.1 or 1.2. Is by default 1.1",title:"Version",required:!1,deprecated:!1},namespacePrefixRef:{kind:"attribute",type:"string",description:"When marshalling using JAXB or SOAP then the JAXB implementation will automatic assign namespace prefixes such as ns2 ns3 ns4 etc. To control this mapping Camel allows you to refer to a map which contains the desired mapping.",title:"Namespace Prefix Ref",required:!1,deprecated:!1},schema:{kind:"attribute",type:"string",description:"To validate against an existing schema. Your can use the prefix classpath: file: or http: to specify how the resource should by resolved. You can separate multiple schema files by using the '' character.",title:"Schema",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},string:{type:"object",title:"String Encoding",group:"dataformat,transformation,core",icon:"generic24.png",description:"Represents the String (text based) DataFormat",properties:{charset:{kind:"attribute",type:"string",description:"Sets an encoding to use. Will by default use the JVM platform default charset.",title:"Charset",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},syslog:{type:"object",title:"Syslog",group:"dataformat,transformation",icon:"generic24.png",description:"Syslog data format",properties:{id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},tarfile:{type:"object",title:"Tar File",group:"dataformat,transformation,file",icon:"generic24.png",description:"Represents the TAR file XML org.apache.camel.spi.DataFormat.",properties:{usingIterator:{kind:"attribute",type:"boolean",defaultValue:"false",description:"If the tar file has more then one entry the setting this option to true allows to work with the splitter EIP to split the data using an iterator in a streaming mode.",title:"Using Iterator",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},tidyMarkup:{type:"object",title:"TidyMarkup",group:"dataformat,transformation",icon:"generic24.png",description:"Tidymark (wellformed HTML) data format",properties:{dataObjectType:{kind:"attribute",type:"string",description:"What data type to unmarshal as can either be org.w3c.dom.Node or java.lang.String. Is by default org.w3c.dom.Node",title:"Data Object Type",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},"univocity-csv":{type:"object",title:"uniVocity CSV",group:"dataformat,transformation,csv",icon:"generic24.png",description:"UniVocity CSV data format",properties:{quoteAllFields:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether or not all values must be quoted when writing them.",title:"Quote All Fields",required:!1,deprecated:!1},quote:{kind:"attribute",type:"string",defaultValue:'"',description:"The quote symbol.",title:"Quote",required:!1,deprecated:!1},quoteEscape:{kind:"attribute",type:"string",defaultValue:'"',description:"The quote escape symbol",title:"Quote Escape",required:!1,deprecated:!1},delimiter:{kind:"attribute",type:"string",defaultValue:",",description:"The delimiter of values",title:"Delimiter",required:!1,deprecated:!1},nullValue:{kind:"attribute",type:"string",description:"The string representation of a null value. The default value is null",title:"Null Value",required:!1,deprecated:!1},skipEmptyLines:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether or not the empty lines must be ignored. The default value is true",title:"Skip Empty Lines",required:!1,deprecated:!1},ignoreTrailingWhitespaces:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether or not the trailing white spaces must ignored. The default value is true",title:"Ignore Trailing Whitespaces",required:!1,deprecated:!1},ignoreLeadingWhitespaces:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether or not the leading white spaces must be ignored. The default value is true",title:"Ignore Leading Whitespaces",required:!1,deprecated:!1},headersDisabled:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether or not the headers are disabled. When defined this option explicitly sets the headers as null which indicates that there is no header. The default value is false",title:"Headers Disabled",required:!1,deprecated:!1},headerExtractionEnabled:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether or not the header must be read in the first line of the test document The default value is false",title:"Header Extraction Enabled",required:!1,deprecated:!1},numberOfRecordsToRead:{kind:"attribute",type:"integer",description:"The maximum number of record to read.",title:"Number Of Records To Read",required:!1,deprecated:!1},emptyValue:{kind:"attribute",type:"string",description:"The String representation of an empty value",title:"Empty Value",required:!1,deprecated:!1},lineSeparator:{kind:"attribute",type:"string",description:"The line separator of the files The default value is to use the JVM platform line separator",title:"Line Separator",required:!1,deprecated:!1},normalizedLineSeparator:{kind:"attribute",type:"string",defaultValue:"\n",description:"The normalized line separator of the files The default value is \n",title:"Normalized Line Separator",required:!1,deprecated:!1},comment:{kind:"attribute",type:"string",defaultValue:"#",description:"The comment symbol. The default value is",title:"Comment",required:!1,deprecated:!1},lazyLoad:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether the unmarshalling should produce an iterator that reads the lines on the fly or if all the lines must be read at one. The default value is false",title:"Lazy Load",required:!1,deprecated:!1},asMap:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether the unmarshalling should produce maps for the lines values instead of lists. It requires to have header (either defined or collected). The default value is false",title:"As Map",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},"univocity-fixed":{type:"object",title:"uniVocity Fixed Length",group:"dataformat,transformation,csv",icon:"generic24.png",description:"UniVocity fixed-width data format",properties:{skipTrailingCharsUntilNewline:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether or not the trailing characters until new line must be ignored. The default value is false",title:"Skip Trailing Chars Until Newline",required:!1,deprecated:!1},recordEndsOnNewline:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether or not the record ends on new line. The default value is false",title:"Record Ends On Newline",required:!1,deprecated:!1},padding:{kind:"attribute",type:"string",defaultValue:"",description:"The padding character. The default value is a space",title:"Padding",required:!1,deprecated:!1},nullValue:{kind:"attribute",type:"string",description:"The string representation of a null value. The default value is null",title:"Null Value",required:!1,deprecated:!1},skipEmptyLines:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether or not the empty lines must be ignored. The default value is true",title:"Skip Empty Lines",required:!1,deprecated:!1},ignoreTrailingWhitespaces:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether or not the trailing white spaces must ignored. The default value is true",title:"Ignore Trailing Whitespaces",required:!1,deprecated:!1},ignoreLeadingWhitespaces:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether or not the leading white spaces must be ignored. The default value is true",title:"Ignore Leading Whitespaces",required:!1,deprecated:!1},headersDisabled:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether or not the headers are disabled. When defined this option explicitly sets the headers as null which indicates that there is no header. The default value is false",title:"Headers Disabled",required:!1,deprecated:!1},headerExtractionEnabled:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether or not the header must be read in the first line of the test document The default value is false",title:"Header Extraction Enabled",required:!1,deprecated:!1},numberOfRecordsToRead:{kind:"attribute",type:"integer",description:"The maximum number of record to read.",title:"Number Of Records To Read",required:!1,deprecated:!1},emptyValue:{kind:"attribute",type:"string",description:"The String representation of an empty value",title:"Empty Value",required:!1,deprecated:!1},lineSeparator:{kind:"attribute",type:"string",description:"The line separator of the files The default value is to use the JVM platform line separator",title:"Line Separator",required:!1,deprecated:!1},normalizedLineSeparator:{kind:"attribute",type:"string",defaultValue:"\n",description:"The normalized line separator of the files The default value is \n",title:"Normalized Line Separator",required:!1,deprecated:!1},comment:{kind:"attribute",type:"string",defaultValue:"#",description:"The comment symbol. The default value is",title:"Comment",required:!1,deprecated:!1},lazyLoad:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether the unmarshalling should produce an iterator that reads the lines on the fly or if all the lines must be read at one. The default value is false",title:"Lazy Load",required:!1,deprecated:!1},asMap:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether the unmarshalling should produce maps for the lines values instead of lists. It requires to have header (either defined or collected). The default value is false",title:"As Map",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},"univocity-header":{type:"object",title:"uniVocity Header",group:"dataformat,transformation,csv",icon:"generic24.png",description:"To configure headers for UniVocity data formats.",properties:{name:{kind:"value",type:"string",description:"Header name",title:"Name",required:!0,deprecated:!1},length:{kind:"attribute",type:"integer",description:"Header length",title:"Length",required:!1,deprecated:!1}}},"univocity-tsv":{type:"object",title:"uniVocity TSV",group:"dataformat,transformation,csv",icon:"generic24.png",description:"UniVocity TSV data format",properties:{escapeChar:{kind:"attribute",type:"string",defaultValue:"\\",description:"The escape character.",title:"Escape Char",required:!1,deprecated:!1},nullValue:{kind:"attribute",type:"string",description:"The string representation of a null value. The default value is null",title:"Null Value",required:!1,deprecated:!1},skipEmptyLines:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether or not the empty lines must be ignored. The default value is true",title:"Skip Empty Lines",required:!1,deprecated:!1},ignoreTrailingWhitespaces:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether or not the trailing white spaces must ignored. The default value is true",title:"Ignore Trailing Whitespaces",required:!1,deprecated:!1},ignoreLeadingWhitespaces:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether or not the leading white spaces must be ignored. The default value is true",title:"Ignore Leading Whitespaces",required:!1,deprecated:!1},headersDisabled:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether or not the headers are disabled. When defined this option explicitly sets the headers as null which indicates that there is no header. The default value is false",title:"Headers Disabled",required:!1,deprecated:!1},headerExtractionEnabled:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether or not the header must be read in the first line of the test document The default value is false",title:"Header Extraction Enabled",required:!1,deprecated:!1},numberOfRecordsToRead:{kind:"attribute",type:"integer",description:"The maximum number of record to read.",title:"Number Of Records To Read",required:!1,deprecated:!1},emptyValue:{kind:"attribute",type:"string",description:"The String representation of an empty value",title:"Empty Value",required:!1,deprecated:!1},lineSeparator:{kind:"attribute",type:"string",description:"The line separator of the files The default value is to use the JVM platform line separator",title:"Line Separator",required:!1,deprecated:!1},normalizedLineSeparator:{kind:"attribute",type:"string",defaultValue:"\n",description:"The normalized line separator of the files The default value is \n",title:"Normalized Line Separator",required:!1,deprecated:!1},comment:{kind:"attribute",type:"string",defaultValue:"#",description:"The comment symbol. The default value is",title:"Comment",required:!1,deprecated:!1},lazyLoad:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether the unmarshalling should produce an iterator that reads the lines on the fly or if all the lines must be read at one. The default value is false",title:"Lazy Load",required:!1,deprecated:!1},asMap:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether the unmarshalling should produce maps for the lines values instead of lists. It requires to have header (either defined or collected). The default value is false",title:"As Map",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},xmlBeans:{type:"object",title:"XML Beans",group:"dataformat,transformation,xml",icon:"generic24.png",description:"XMLBeans data format",properties:{prettyPrint:{kind:"attribute",type:"boolean",defaultValue:"false",description:"To enable pretty printing output nicely formatted. Is by default false.",title:"Pretty Print",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},xmljson:{type:"object",title:"XML JSon",group:"dataformat,transformation,xml,json",icon:"generic24.png",description:"xml-json data format",properties:{encoding:{kind:"attribute",type:"string",description:"Sets the encoding. Used for unmarshalling (JSON to XML conversion).",title:"Encoding",required:!1,deprecated:!1},elementName:{kind:"attribute",type:"string",description:"Specifies the name of the XML elements representing each array element. Used for unmarshalling (JSON to XML conversion).",title:"Element Name",required:!1,deprecated:!1},arrayName:{kind:"attribute",type:"string",description:"Specifies the name of the top-level XML element. Used for unmarshalling (JSON to XML conversion). For example when converting 1 2 3 it will be output by default as 123. By setting this option or rootName you can alter the name of element 'a'.",title:"Array Name",required:!1,deprecated:!1},forceTopLevelObject:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Determines whether the resulting JSON will start off with a top-most element whose name matches the XML root element. Used for marshalling (XML to JSon conversion). If disabled XML string 12 turns into 'x: '1' 'y': '2' . Otherwise it turns into 'a': 'x: '1' 'y': '2' .",title:"Force Top Level Object",required:!1,deprecated:!1},namespaceLenient:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Flag to be tolerant to incomplete namespace prefixes. Used for unmarshalling (JSON to XML conversion). In most cases json-lib automatically changes this flag at runtime to match the processing.",title:"Namespace Lenient",required:!1,deprecated:!1},rootName:{kind:"attribute",type:"string",description:"Specifies the name of the top-level element. Used for unmarshalling (JSON to XML conversion). If not set json-lib will use arrayName or objectName (default value: 'o' at the current time it is not configurable in this data format). If set to 'root' the JSON string 'x': 'value1' 'y' : 'value2' would turn into value1value2 otherwise the 'root' element would be named 'o'.",title:"Root Name",required:!1,deprecated:!1},skipWhitespace:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Determines whether white spaces between XML elements will be regarded as text values or disregarded. Used for marshalling (XML to JSon conversion).",title:"Skip Whitespace",required:!1,deprecated:!1},trimSpaces:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Determines whether leading and trailing white spaces will be omitted from String values. Used for marshalling (XML to JSon conversion).",title:"Trim Spaces",required:!1,deprecated:!1},skipNamespaces:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Signals whether namespaces should be ignored. By default they will be added to the JSON output using xmlns elements. Used for marshalling (XML to JSon conversion).",title:"Skip Namespaces",required:!1,deprecated:!1},removeNamespacePrefixes:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Removes the namespace prefixes from XML qualified elements so that the resulting JSON string does not contain them. Used for marshalling (XML to JSon conversion).",title:"Remove Namespace Prefixes",required:!1,deprecated:!1},expandableProperties:{kind:"attribute",type:"array",description:"With expandable properties JSON array elements are converted to XML as a sequence of repetitive XML elements with the local name equal to the JSON key for example: number: 123 normally converted to: 123 (where e can be modified by setting elementName) would instead translate to 123 if number is set as an expandable property Used for unmarshalling (JSON to XML conversion).",title:"Expandable Properties",required:!1,deprecated:!1},typeHints:{kind:"attribute",type:"string",description:"Adds type hints to the resulting XML to aid conversion back to JSON. Used for unmarshalling (JSON to XML conversion).",title:"Type Hints",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},xmlrpc:{type:"object",title:"XML RPC",group:"dataformat,transformation,xml",icon:"generic24.png",description:"xml-rpc data format",properties:{request:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether to unmarshal request or response Is by default false",title:"Request",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},xstream:{type:"object",title:"XStream",group:"dataformat,transformation,xml,json",icon:"generic24.png",description:"xstream data format",properties:{permissions:{kind:"attribute",type:"string",description:"Adds permissions that controls which Java packages and classes XStream is allowed to use during unmarshal from xml/json to Java beans. A permission must be configured either here or globally using a JVM system property. The permission can be specified in a syntax where a plus sign is allow and minus sign is deny. Wildcards is supported by using . as prefix. For example to allow com.foo and all subpackages then specfy com.foo.. Multiple permissions can be configured separated by comma such as com.foo.-com.foo.bar.MySecretBean. The following default permission is always included: -java.lang.java.util. unless its overridden by specifying a JVM system property with they key org.apache.camel.xstream.permissions.",title:"Permissions",required:!1,deprecated:!1},encoding:{kind:"attribute",type:"string",description:"Sets the encoding to use",title:"Encoding",required:!1,deprecated:!1},driver:{kind:"attribute",type:"string",description:"To use a custom XStream driver. The instance must be of type com.thoughtworks.xstream.io.HierarchicalStreamDriver",title:"Driver",required:!1,deprecated:!1},driverRef:{kind:"attribute",type:"string",description:"To refer to a custom XStream driver to lookup in the registry. The instance must be of type com.thoughtworks.xstream.io.HierarchicalStreamDriver",title:"Driver Ref",required:!1,deprecated:!1},mode:{kind:"attribute",type:"string",description:"Mode for dealing with duplicate references The possible values are: NO_REFERENCES ID_REFERENCES XPATH_RELATIVE_REFERENCES XPATH_ABSOLUTE_REFERENCES SINGLE_NODE_XPATH_RELATIVE_REFERENCES SINGLE_NODE_XPATH_ABSOLUTE_REFERENCES",title:"Mode",required:!1,deprecated:!1},converters:{kind:"element",type:"array",description:"List of class names for using custom XStream converters. The classes must be of type com.thoughtworks.xstream.converters.Converter",title:"Converters",required:!1,deprecated:!1},aliases:{kind:"element",type:"object",description:"Alias a Class to a shorter name to be used in XML elements.",title:"Aliases",required:!1,deprecated:!1},omitFields:{kind:"element",type:"object",description:"Prevents a field from being serialized. To omit a field you must always provide the declaring type and not necessarily the type that is converted.",title:"Omit Fields",required:!1,deprecated:!1},implicitCollections:{kind:"element",type:"object",description:"Adds a default implicit collection which is used for any unmapped XML tag.",title:"Implicit Collections",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},zip:{type:"object",title:"Zip Deflate Compression",group:"dataformat,transformation",icon:"generic24.png",description:"zip data format (not for zip files)",properties:{compressionLevel:{kind:"attribute",type:"integer",defaultValue:"-1",description:"To specify a specific compression between 0-9. -1 is default compression 0 is no compression and 9 is best compression.",title:"Compression Level",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}},zipFile:{type:"object",title:"Zip File",group:"dataformat,transformation,file",icon:"generic24.png",description:"zip-file data format",properties:{usingIterator:{kind:"attribute",type:"boolean",defaultValue:"false",description:"If the zip file has more then one entry the setting this option to true allows to work with the splitter EIP to split the data using an iterator in a streaming mode.",title:"Using Iterator",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the value of the id property.",title:"Id",required:!1,deprecated:!1}}}},languages:{constant:{type:"object",title:"Constant",group:"language,core",icon:"generic24.png",description:"For expressions and predicates using a constant",properties:{expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},el:{type:"object",title:"EL",group:"language,script",icon:"generic24.png",description:"For EL expressions and predicates",properties:{expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},exchangeProperty:{type:"object",title:"ExchangeProperty",group:"language,core",icon:"generic24.png",description:"An expression which extracts the named exchange property",properties:{expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},expression:{type:"object",title:"Expression",group:"language",icon:"generic24.png",description:"A useful base class for an expression",properties:{expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},groovy:{type:"object",title:"Groovy",group:"language,script",icon:"generic24.png",description:"For Groovy expressions and predicates",properties:{expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},header:{type:"object",title:"Header",group:"language,core",icon:"generic24.png",description:"An expression which extracts the named exchange header",properties:{expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},javaScript:{type:"object",title:"JavaScript",group:"language,script",icon:"generic24.png",description:"For JavaScript expressions and predicates",properties:{expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},jsonpath:{type:"object",title:"JSonPath",group:"language,json",icon:"generic24.png",description:"For JSonPath expressions and predicates",properties:{resultType:{kind:"attribute",type:"string",description:"Sets the class name of the result type (type from output)",title:"Result Type",required:!1,deprecated:!1},suppressExceptions:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether to suppress exceptions such as PathNotFoundException.",title:"Suppress Exceptions",required:!1,deprecated:!1},expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},jxpath:{type:"object",title:"JXPath",group:"language,java",icon:"generic24.png",description:"For JXPath expressions and predicates",properties:{lenient:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Allows to turn lenient on the JXPathContext. When turned on this allows the JXPath expression to evaluate against expressions and message bodies which may be invalid / missing data. This option is by default false",title:"Lenient",required:!1,deprecated:!1},expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},language:{type:"object",title:"Language",group:"language,core",icon:"generic24.png",description:"Represents a parameterised language expression which can support any language at runtime using the language attribute.",properties:{language:{kind:"attribute",type:"string",description:"The name of the language to use",title:"Language",required:!0,deprecated:!1},expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},method:{type:"object",title:"Bean method",group:"language,core,java",icon:"generic24.png",description:"For expressions and predicates using a java bean (aka method call)",properties:{bean:{kind:"attribute",type:"string",description:"Either a reference or a class name of the bean to use",title:"Bean",required:!1,deprecated:!0
|
|
25805
|
25805
|
},ref:{kind:"attribute",type:"string",description:"Reference to bean to lookup in the registry",title:"Ref",required:!1,deprecated:!1},method:{kind:"attribute",type:"string",description:"Name of method to call",title:"Method",required:!1,deprecated:!1},beanType:{kind:"attribute",type:"string",description:"Class name of the bean to use",title:"Bean Type",required:!1,deprecated:!1},expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},mvel:{type:"object",title:"MVEL",group:"language,java",icon:"generic24.png",description:"For MVEL expressions and predicates",properties:{expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},ognl:{type:"object",title:"OGNL",group:"language,java",icon:"generic24.png",description:"For OGNL expressions and predicates",properties:{expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},php:{type:"object",title:"PHP",group:"language,script",icon:"generic24.png",description:"For PHP expressions and predicates",properties:{expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},python:{type:"object",title:"Python",group:"language,script",icon:"generic24.png",description:"For Python expressions and predicates",properties:{expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},ref:{type:"object",title:"Ref",group:"language,core",icon:"generic24.png",description:"For using a custom expression",properties:{expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},ruby:{type:"object",title:"Ruby",group:"language,script",icon:"generic24.png",description:"For Ruby expressions and predicates",properties:{expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},simple:{type:"object",title:"Simple",group:"language,core,java",icon:"generic24.png",description:"For expressions and predicates using the simple language",properties:{resultType:{kind:"attribute",type:"string",description:"Sets the class name of the result type (type from output)",title:"Result Type",required:!1,deprecated:!1},expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},spel:{type:"object",title:"SpEL",group:"language,spring",icon:"generic24.png",description:"For Spring Expression Language (SpEL) expressions and predicates",properties:{expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},sql:{type:"object",title:"SQL",group:"language",icon:"generic24.png",description:"For SQL expressions and predicates",properties:{expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},terser:{type:"object",title:"HL7 Terser",group:"language,hl7",icon:"generic24.png",description:"For HL7 terser expressions and predicates",properties:{expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},tokenize:{type:"object",title:"Tokenize",group:"language,core",icon:"generic24.png",description:"For expressions and predicates using a body or header tokenizer.",properties:{token:{kind:"attribute",type:"string",description:"The (start) token to use as tokenizer for example \n for a new line token",title:"Token",required:!0,deprecated:!1},endToken:{kind:"attribute",type:"string",description:"The end token to use as tokenizer if using start/end token pairs.",title:"End Token",required:!1,deprecated:!1},inheritNamespaceTagName:{kind:"attribute",type:"string",description:"To inherit namepaces from a root/parent tag name when using XML",title:"Inherit Namespace Tag Name",required:!1,deprecated:!1},headerName:{kind:"attribute",type:"string",description:"Name of header to tokenize instead of using the message body.",title:"Header Name",required:!1,deprecated:!1},regex:{kind:"attribute",type:"boolean",defaultValue:"false",description:"If the token is a regular expression pattern. The default value is false",title:"Regex",required:!1,deprecated:!1},xml:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether the input is XML messages. This option must be set to true if working with XML payloads.",title:"Xml",required:!1,deprecated:!1},includeTokens:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether to include the tokens in the parts when using pairs The default value is false",title:"Include Tokens",required:!1,deprecated:!1},group:{kind:"attribute",type:"integer",description:"To group N parts together for example to split big files into chunks of 1000 lines.",title:"Group",required:!1,deprecated:!1},expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},vtdxml:{type:"object",title:"VtdXML",group:"language,xml",icon:"generic24.png",description:"For VTD-XML (fast and efficient XPath) expressions and predicates",properties:{expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},xpath:{type:"object",title:"XPath",group:"language,core,xml",icon:"generic24.png",description:"For XPath expressions and predicates",properties:{documentType:{kind:"attribute",type:"string",description:"Name of class for document type The default value is org.w3c.dom.Document",title:"Document Type",required:!1,deprecated:!1},resultType:{kind:"attribute",type:"string",description:"Sets the class name of the result type (type from output) The default result type is NodeSet",title:"Result Type",required:!1,deprecated:!1},saxon:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether to use Saxon.",title:"Saxon",required:!1,deprecated:!1},factoryRef:{kind:"attribute",type:"string",description:"References to a custom XPathFactory to lookup in the registry",title:"Factory Ref",required:!1,deprecated:!1},objectModel:{kind:"attribute",type:"string",description:"The XPath object model to use",title:"Object Model",required:!1,deprecated:!1},logNamespaces:{kind:"attribute",type:"boolean",defaultValue:"false",description:"Whether to log namespaces which can assist during trouble shooting",title:"Log Namespaces",required:!1,deprecated:!1},headerName:{kind:"attribute",type:"string",description:"Name of header to use as input instead of the message body",title:"Header Name",required:!1,deprecated:!1},expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},xquery:{type:"object",title:"XQuery",group:"language,xml",icon:"generic24.png",description:"For XQuery expressions and predicates",properties:{type:{kind:"attribute",type:"string",description:"Sets the class name of the result type (type from output) The default result type is NodeSet",title:"Type",required:!1,deprecated:!1},headerName:{kind:"attribute",type:"string",description:"Name of header to use as input instead of the message body",title:"Header Name",required:!1,deprecated:!1},expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}},xtokenize:{type:"object",title:"XML Tokenize",group:"language,core,xml",icon:"generic24.png",description:"For expressions and predicates using a body or header tokenizer.",properties:{headerName:{kind:"attribute",type:"string",description:"Name of header to tokenize instead of using the message body.",title:"Header Name",required:!1,deprecated:!1},mode:{kind:"attribute",type:"string",description:"The extraction mode. The available extraction modes are: i - injecting the contextual namespace bindings into the extracted token (default) w - wrapping the extracted token in its ancestor context u - unwrapping the extracted token to its child content t - extracting the text content of the specified element",title:"Mode",required:!1,deprecated:!1},group:{kind:"attribute",type:"integer",description:"To group N parts together",title:"Group",required:!1,deprecated:!1},expression:{kind:"value",type:"string",description:"The expression value in your chosen language syntax",title:"Expression",required:!0,deprecated:!1},trim:{kind:"attribute",type:"boolean",defaultValue:"true",description:"Whether to trim the value to remove leading and trailing whitespaces and line breaks",title:"Trim",required:!1,deprecated:!1},id:{kind:"attribute",type:"string",description:"Sets the id of this node",title:"Id",required:!1,deprecated:!1}}}}},ActiveMQ;!function(e){function t(e){function t(e){if(e){if("Queues"===e.title||"Queue"===e.title)return e;var n=e.parent;if(n)return t(n)}return null}var n=e.selection;return n?t(n):null}function n(e){function t(e){var t=null;return e&&("Topics"!==e.title&&"Topic"!==e.title||(t=e),null===t&&angular.forEach(e.children,function(e){"Topics"!==e.title&&"Topic"!==e.title||(t=e)})),t}var n=e.selection;return n?t(n):null}function i(e,t,n){"selectAll"in n.gridOptions?n.gridOptions.selectAll(!1):n.gridOptions.selectedItems.length=0;var i=Core.pathGet(e,["rowIndex"])||Core.pathGet(e,["index"]),r=Core.pathGet(e,["entity",t]);n.rowIndex=i;var o=n.gridOptions.selectedItems;o.splice(0,o.length),i>=0&&i<n.messages.length?(n.row=n.messages.find(function(e){return e[t]===r}),n.row&&o.push(n.row)):n.row=null}function r(e,t){void 0===t&&(t=null),e.selectRowIndex=function(n){e.rowIndex=n;var i=e.gridOptions.selectedItems;i.splice(0,i.length),n>=0&&n<e.messages.length?(e.row=e.messages[n],e.row&&i.push(e.row)):e.row=null,t&&t.apply()},e.$watch("showMessageDetails",function(){e.showMessageDetails||(e.row=null,e.gridOptions.selectedItems.splice(0,e.gridOptions.selectedItems.length))})}e.pluginName="activemq",e.log=Logger.get("activemq"),e.jmxDomain="org.apache.activemq",e.getSelectionQueuesFolder=t,e.getSelectionTopicsFolder=n,e.selectCurrentMessage=i,e.decorate=r}(ActiveMQ||(ActiveMQ={}));var ActiveMQ;!function(e){function t(e){var t=null,n=e.selection;return n&&(t=n.findAncestor(function(e){var t=e.entries;return!!t&&("type"in t&&"Broker"===t.type&&"brokerName"in t&&!("destinationName"in t)&&!("destinationType"in t))})),t}function n(t){return t.hasDomainAndProperties(e.jmxDomain,{destinationType:"Queue"},4)||t.selectionHasDomainAndType(e.jmxDomain,"Queue")}function i(t){return t.hasDomainAndProperties(e.jmxDomain,{destinationType:"Topic"},4)||t.selectionHasDomainAndType(e.jmxDomain,"Topic")}function r(t){return t.selectionHasDomainAndLastFolderName(e.jmxDomain,"Queue")}function o(t){return t.selectionHasDomainAndLastFolderName(e.jmxDomain,"Topic")}function a(t){return t.hasDomainAndProperties(e.jmxDomain,{service:"JobScheduler"},4)}function s(t){if(t.selectionHasDomainAndType(e.jmxDomain,"Broker")){var n=Core.pathGet(t,["selection"]),i=Core.pathGet(t,["selection","parent"]);return!(i&&(i.ancestorHasType("Broker")||n.ancestorHasType("Broker")))}return!1}e._module=angular.module(e.pluginName,[]),e._module.config(["$routeProvider",function(e){e.when("/activemq/browseQueue",{templateUrl:"plugins/activemq/html/browseQueue.html"}).when("/activemq/createDestination",{templateUrl:"plugins/activemq/html/createDestination.html"}).when("/activemq/deleteQueue",{templateUrl:"plugins/activemq/html/deleteQueue.html"}).when("/activemq/deleteTopic",{templateUrl:"plugins/activemq/html/deleteTopic.html"}).when("/activemq/sendMessage",{templateUrl:"plugins/camel/html/sendMessage.html"}).when("/activemq/durableSubscribers",{templateUrl:"plugins/activemq/html/durableSubscribers.html"}).when("/activemq/jobs",{templateUrl:"plugins/activemq/html/jobs.html"})}]),e._module.run(["HawtioNav","$location","workspace","viewRegistry","helpRegistry","preferencesRegistry","$templateCache","documentBase",function(l,u,c,d,p,h,f,g){function m(e){var t=e.get("org.apache.activemq");v(t),t&&angular.forEach(t.children,function(e){angular.forEach(e.children,function(e){var t=e.children;if(t){var n=["Topic","Queue"];angular.forEach(n,function(e){var n=t.findIndex(function(t){return t.title===e});if(n>0){var i=t[n];t.splice(n,1),t.splice(0,0,i)}})}})})}function v(e){if(e){var t=e.parent,n=e.entries;if(t&&!t.typeName&&n){var i=n.endpoint;"Consumer"!==i&&"Producer"!==i||(t.typeName=i);var r=n.connectorName;r&&!e.icon&&(e.icon=UrlHelpers.join(g,"/img/icons/activemq/connector.png"))}angular.forEach(e.children,function(e){return v(e)})}}d['{ "main-tab": "activemq" }']="plugins/activemq/html/layoutActiveMQTree.html",p.addUserDoc("activemq","plugins/activemq/doc/help.md",function(){return c.treeContainsDomainAndProperties("org.apache.activemq")}),h.addTab("ActiveMQ","plugins/activemq/html/preferences.html",function(){return c.treeContainsDomainAndProperties("org.apache.activemq")}),c.addTreePostProcessor(m);var y=c.attributeColumnDefs;y[e.jmxDomain+"/Broker/folder"]=[{field:"BrokerName",displayName:"Name",width:"**"},{field:"TotalProducerCount",displayName:"Producer"},{field:"TotalConsumerCount",displayName:"Consumer"},{field:"StorePercentUsage",displayName:"Store %"},{field:"TempPercentUsage",displayName:"Temp %"},{field:"MemoryPercentUsage",displayName:"Memory %"},{field:"TotalEnqueueCount",displayName:"Enqueue"},{field:"TotalDequeueCount",displayName:"Dequeue"}],y[e.jmxDomain+"/Queue/folder"]=[{field:"Name",displayName:"Name",width:"***"},{field:"QueueSize",displayName:"Queue Size"},{field:"ProducerCount",displayName:"Producer"},{field:"ConsumerCount",displayName:"Consumer"},{field:"EnqueueCount",displayName:"Enqueue"},{field:"DequeueCount",displayName:"Dequeue"},{field:"MemoryPercentUsage",displayName:"Memory %"},{field:"DispatchCount",displayName:"Dispatch",visible:!1}],y[e.jmxDomain+"/Topic/folder"]=[{field:"Name",displayName:"Name",width:"****"},{field:"ProducerCount",displayName:"Producer"},{field:"ConsumerCount",displayName:"Consumer"},{field:"EnqueueCount",displayName:"Enqueue"},{field:"DequeueCount",displayName:"Dequeue"},{field:"MemoryPercentUsage",displayName:"Memory %"},{field:"DispatchCount",displayName:"Dispatch",visible:!1}],y[e.jmxDomain+"/Consumer/folder"]=[{field:"ConnectionId",displayName:"Name",width:"**"},{field:"PrefetchSize",displayName:"Prefetch Size"},{field:"Priority",displayName:"Priority"},{field:"DispatchedQueueSize",displayName:"Dispatched Queue #"},{field:"SlowConsumer",displayName:"Slow ?"},{field:"Retroactive",displayName:"Retroactive"},{field:"Selector",displayName:"Selector"}],y[e.jmxDomain+"/networkConnectors/folder"]=[{field:"Name",displayName:"Name",width:"**"},{field:"UserName",displayName:"User Name"},{field:"PrefetchSize",displayName:"Prefetch Size"},{field:"ConduitSubscriptions",displayName:"Conduit Subscriptions?"},{field:"Duplex",displayName:"Duplex"},{field:"DynamicOnly",displayName:"Dynamic Only"}],y[e.jmxDomain+"/PersistenceAdapter/folder"]=[{field:"IndexDirectory",displayName:"Index Directory",width:"**"},{field:"LogDirectory",displayName:"Log Directory",width:"**"}];var b="/jmx/attributes",w=l.builder(),x=w.id("activemq").title(function(){return"ActiveMQ"}).defaultPage({rank:15,isValid:function(t,n){var i="ActiveMQDefaultPage";c.addNamedTreePostProcessor(i,function(r){c.removeNamedTreePostProcessor(i),c.treeContainsDomainAndProperties(e.jmxDomain)?t():n()})}}).href(function(){return b}).isValid(function(){return c.treeContainsDomainAndProperties(e.jmxDomain)}).build();x.tabs=Jmx.getNavItems(w,c,f,"activemq"),x.tabs.push({id:"activemq-browse",title:function(){return'<i class="fa fa-envelope"></i> Browse'},tooltip:function(){return"Browse the messages on the queue"},show:function(){return n(c)&&c.hasInvokeRights(c.selection,"browse()")},href:function(){return"/activemq/browseQueue"+c.hash()}}),x.tabs.push({id:"activemq-send",title:function(){return'<i class="fa fa-pencil"></i> Send'},tooltip:function(){return"Send a message to this destination"},show:function(){return(n(c)||i(c))&&c.hasInvokeRights(c.selection,"sendTextMessage(java.util.Map,java.lang.String,java.lang.String,java.lang.String)")},href:function(){return"/activemq/sendMessage"+c.hash()}}),x.tabs.push({id:"activemq-durable-subscribers",title:function(){return'<i class="fa fa-list"></i> Durable Subscribers'},tooltip:function(){return"Manage durable subscribers"},show:function(){return s(c)},href:function(){return"/activemq/durableSubscribers"+c.hash()}}),x.tabs.push({id:"activemq-jobs",title:function(){return'<i class="fa fa-list"></i> Jobs'},tooltip:function(){return"Manage jobs"},show:function(){return a(c)},href:function(){return"/activemq/jobs"+c.hash()}}),x.tabs.push({id:"activemq-create-destination",title:function(){return'<i class="fa fa-plus"></i> Create'},tooltip:function(){return"Create a new destination"},show:function(){return(s(c)||r(c)||o(c)||n(c)||i(c))&&c.hasInvokeRights(t(c),"addQueue","addTopic")},href:function(){return"/activemq/createDestination"+c.hash()}}),x.tabs.push({id:"activemq-delete-topic",title:function(){return'<i class="fa fa-remove"></i> Delete'},tooltip:function(){return"Delete this topic"},show:function(){return i(c)&&c.hasInvokeRights(t(c),"removeTopic")},href:function(){return"/activemq/deleteTopic"+c.hash()}}),x.tabs.push({id:"activemq-delete-queue",title:function(){return'<i class="fa fa-remove"></i> Delete'},tooltip:function(){return"Delete or purge this queue"},show:function(){return n(c)&&c.hasInvokeRights(t(c),"removeQueue")},href:function(){return"/activemq/deleteQueue"+c.hash()}}),l.add(x)}]),hawtioPluginLoader.addModule(e.pluginName),e.getBroker=t,e.isQueue=n,e.isTopic=i,e.isQueuesFolder=r,e.isTopicsFolder=o,e.isJobScheduler=a,e.isBroker=s}(ActiveMQ||(ActiveMQ={}));var ActiveMQ;!function(e){e.BrowseQueueController=e._module.controller("ActiveMQ.BrowseQueueController",["$scope","workspace","jolokia","localStorage","$location","activeMQMessage","$timeout","$dialog","$templateCache",function(t,n,i,r,o,a,s,l,u){function c(e){var n=e.value;angular.isArray(n)?t.allMessages=n:(t.allMessages=[],angular.forEach(n,function(e,n){t.allMessages.push(e)})),angular.forEach(t.allMessages,function(e){e.openMessageDialog=t.openMessageDialog,e.headerHtml=p(e),e.bodyText=d(e)}),w(t.gridOptions.filterOptions.filterText),Core.$apply(t)}function d(e){if(e.Text){var t=e.Text,n=""+t.length;return e.textMode="text ("+n+" chars)",t}if(e.BodyPreview){var t,i=Core.parseIntValue(r.activemqBrowseBytesMessages||"1","browse bytes messages");if(e.textMode="bytes (turned off)",99!=i){var o=[],a=[];e.BodyPreview.forEach(function(e){if(1!==i&&2!==i||a.push(String.fromCharCode(e)),1===i||4===i){var t=e.toString(16);1===t.length&&(t="0"+t),o.push(t)}else{var t=e.toString(10);o.push(t)}});var s=o.join(" "),l=a.join("");if(1===i||2===i){var u=e.BodyPreview.length,n=""+a.length;t="bytes:\n"+s+"\n\ntext:\n"+l,e.textMode="bytes ("+u+" bytes) and text ("+n+" chars)"}else{var u=e.BodyPreview.length;t=s,e.textMode="bytes ("+u+" bytes)"}}return t}return e.textMode="unsupported","Unsupported message body type which cannot be displayed by hawtio"}function p(e){function t(e,t){return e>t?1:e<t?-1:0}function n(e){var t=r[e];null===t&&(t=""),c.push('<tr><td class="propertyName"><span class="green">Header</span> - '+e+'</td><td class="property-value">'+t+"</td></tr>")}function i(e){var t=o[e];null===t&&(t=""),c.push('<tr><td class="propertyName">'+e+'</td><td class="property-value">'+t+"</td></tr>")}var r=h(e),o=f(e),a=_.keys(r),s=_.keys(o).sort(t),l=_.filter(a,function(e){return _.startsWith(e,"JMS")}).sort(t),u=_.difference(a,l.concat(s)).sort(t),c=[];return l.forEach(n),u.forEach(n),s.forEach(i),c.join("\n")}function h(e){var t={};return angular.forEach(e,function(e,n){_.some(T,function(e){return e===n})||_.some(E,function(e){return e===n})||(t[_.escape(n)]=_.escape(e))}),t}function f(e){var t={};return angular.forEach(e,function(e,n){!_.some(T,function(e){return e===n})&&_.some(E,function(e){return e===n})&&angular.forEach(e,function(e,i){t['<span class="green">'+n.replace("Properties"," Property")+"</span> - "+_.escape(i)]=_.escape(e)})}),t}function g(){var e;if(n.selection)e=n.selection.objectName;else{var r=o.search().nid,a=n.keyToNodeMap[r];e=a.objectName}e&&(t.dlq=!1,i.getAttribute(e,"DLQ",Core.onSuccess(m,{silent:!0})),i.request({type:"exec",mbean:e,operation:"browse()"},Core.onSuccess(c)))}function m(e){t.dlq=e,Core.$apply(t)}function v(){}function y(){t.gridOptions.selectedItems.splice(0),Core.notification("success",t.message),setTimeout(g,50)}function b(){y(),n.loadTree()}function w(e){var t=S(e);x(t)}function x(n){n&&0!==n.length?(e.log.debug("Filtering conditions:",n),t.messages=t.allMessages.filter(function(t){e.log.debug("Message:",t);var i=!0;return $.each(n,function(e,n){i=n.column?i&&t[n.column]&&n.regex.test(t[n.column])||t.StringProperties&&t.StringProperties[n.column]&&n.regex.test(t.StringProperties[n.column]):i&&k(t,n.regex)}),i})):t.messages=t.allMessages}function k(e,t){for(var n=["JMSDestination","JMSDeliveryMode","JMSExpiration","JMSPriority","JMSMessageID","JMSTimestamp","JMSCorrelationID","JMSReplyTo","JMSType","JMSRedelivered"],i=0;i<n.length;i++){var r=n[i];if(e[r]&&t.test(e[r]))return!0}if(e.StringProperties)for(var o in e.StringProperties)if(t.test(e.StringProperties[o]))return!0;return!(!e.bodyText||!t.test(e.bodyText))}function C(e,t){try{return new RegExp(e,t)}catch(n){return new RegExp(e.replace(/(\^|\$|\(|\)|<|>|\[|\]|\{|\}|\\|\||\.|\*|\+|\?)/g,"\\$1"))}}function S(e){var t,n=[];if(t=$.trim(e)){for(var i=t.split(";"),r=0;r<i.length;r++){var o=i[r].split(":");if(o.length>1){var a=$.trim(o[0]),s=$.trim(o[1]);a&&s&&n.push({column:a,columnDisplay:a.replace(/\s+/g,"").toLowerCase(),regex:C(s,"i")})}else{var l=$.trim(o[0]);l&&n.push({column:"",regex:C(l,"i")})}}return n}}t.searchText="",t.workspace=n,t.allMessages=[],t.messages=[],t.headers={},t.mode="text",t.gridOptions={selectedItems:[],data:"messages",displayFooter:!1,showFilter:!1,showColumnMenu:!0,enableColumnResize:!0,enableColumnReordering:!0,enableHighlighting:!0,filterOptions:{filterText:"",useExternalFilter:!0},selectWithCheckboxOnly:!0,showSelectionCheckbox:!0,maintainColumnRatios:!1,columnDefs:[{field:"JMSMessageID",displayName:"Message ID",cellTemplate:'<div class="ngCellText"><a href="" ng-click="row.entity.openMessageDialog(row)">{{row.entity.JMSMessageID}}</a></div>',width:"34%"},{field:"JMSType",displayName:"Type",width:"10%"},{field:"JMSPriority",displayName:"Priority",width:"7%"},{field:"JMSTimestamp",displayName:"Timestamp",width:"19%"},{field:"JMSExpiration",displayName:"Expires",width:"10%"},{field:"JMSReplyTo",displayName:"Reply To",width:"10%"},{field:"JMSCorrelationID",displayName:"Correlation ID",width:"10%"}],primaryKeyFn:function(e){return e.JMSMessageID}},t.showMessageDetails=!1;var T=["PropertiesText","BodyPreview","Text","openMessageDialog"],E=["BooleanProperties","ByteProperties","ShortProperties","IntProperties","LongProperties","FloatProperties","DoubleProperties","StringProperties"];t.$watch("workspace.selection",function(){n.moveIfViewInvalid()||setTimeout(g,50)}),t.$watch("gridOptions.filterOptions.filterText",function(e){w(e)}),t.openMessageDialog=function(n){e.selectCurrentMessage(n,"JMSMessageID",t),t.row&&(t.mode=CodeEditor.detectTextFormat(t.row.Text),t.showMessageDetails=!0)},t.refresh=g,e.decorate(t),t.moveMessages=function(){var e=n.selection,r=e.objectName;if(r&&e){var o=t.gridOptions.selectedItems;l.dialog({resolve:{selectedItems:function(){return o},gridOptions:function(){return t.gridOptions},queueNames:function(){return t.queueNames},parent:function(){return t}},template:u.get("activemqMoveMessageDialog.html"),controller:["$scope","dialog","selectedItems","gridOptions","queueNames","parent",function(e,t,n,o,a,s){e.selectedItems=n,e.gridOptions=o,e.queueNames=a,e.queueName="",e.close=function(o){if(t.close(),o){s.message="Moved "+Core.maybePlural(n.length,"message")+" to "+e.queueName;var a="moveMessageTo(java.lang.String, java.lang.String)";angular.forEach(n,function(t,o){var s=t.JMSMessageID;if(s){var l=o+1<n.length?v:b;i.execute(r,a,s,e.queueName,Core.onSuccess(l))}})}}}]}).open()}},t.resendMessage=function(){var e=n.selection,i=e.objectName;if(i&&e){var r=t.gridOptions.selectedItems;a.message=r[0],o.path("activemq/sendMessage")}},t.deleteMessages=function(){var e=n.selection,r=e.objectName;if(r&&e){var o=t.gridOptions.selectedItems;o&&0!==o.length&&UI.multiItemConfirmActionDialog({collection:o,index:"JMSMessageID",onClose:function(e){if(e){t.message="Deleted "+Core.maybePlural(o.length,"message");var n="removeMessage(java.lang.String)";_.forEach(o,function(e,t){var a=e.JMSMessageID;if(a){var s=t+1<o.length?v:y;i.execute(r,n,a,Core.onSuccess(s))}})}},title:"Delete messages?",action:"The following messages will be deleted:",okText:"Delete",okClass:"btn-danger",custom:"This operation is permanent once completed!",customClass:"alert alert-warning"}).open()}},t.retryMessages=function(){var e=n.selection,r=e.objectName;if(r&&e){var o=t.gridOptions.selectedItems;t.message="Retry "+Core.maybePlural(o.length,"message");var a="retryMessage(java.lang.String)";angular.forEach(o,function(e,t){var n=e.JMSMessageID;if(n){var s=t+1<o.length?v:y;i.execute(r,a,n,Core.onSuccess(s))}})}},t.queueNames=function(t){var i=e.getSelectionQueuesFolder(n);return i?i.children.map(function(e){return e.title}):[]}}])}(ActiveMQ||(ActiveMQ={}));var ActiveMQ;!function(e){e._module.controller("ActiveMQ.DestinationController",["$scope","workspace","$location","jolokia",function(t,n,i,r){function o(){t.destinationTypeName="true"===t.queueType?"Queue":"Topic"}function a(){t.destinationName="",t.workspace.operationCounter+=1,Core.notification("success",t.message),t.workspace.loadTree(),Core.$apply(t)}function s(){n.removeAndSelectParentNode(),t.workspace.operationCounter+=1,Core.notification("success",t.message),i.path("/jmx/attributes").search({"main-tab":"activemq","sub-tab":"activemq-attributes"}),t.workspace.loadTree(),Core.$apply(t)}function l(t){var i=null,r=n.selection;if(r&&e.isBroker(n)&&r.objectName)return r.objectName;var o=r.folderNames,a=r?r.parent:null;return r&&a&&t&&o&&o.length>1&&(i=a.objectName,!i&&a&&(i=a.parent.objectName),i||(i=""+o[0]+":BrokerName="+o[1]+",Type=Broker")),i}t.workspace=n,t.message="",t.destinationName="",t.destinationTypeName=t.queueType?"Queue":"Topic",t.deleteDialog=!1,t.purgeDialog=!1,o(),t.$watch("queueType",function(){o()}),t.$watch("workspace.selection",function(){n.moveIfViewInvalid(),t.queueType=e.isTopicsFolder(n)||e.isTopic(n)?"false":"true",t.name=Core.pathGet(n,["selection","title"])}),t.createDestination=function(e,n){var i=l(r);if(i){var o;"true"===n?(o="addQueue(java.lang.String)",t.message="Created queue "+e):(o="addTopic(java.lang.String)",t.message="Created topic "+e),
|
|
25806
|
|
-i?r.execute(i,o,e,Core.onSuccess(a)):Core.notification("error","Could not find the Broker MBean!")}},t.deleteDestination=function(){var e=l(r),i=n.selection,o=i.entries;if(e&&i&&r&&o){var a=(i.domain,o.Destination||o.destinationName||i.title);a=_.unescape(a);var u,c="Topic"!==(o.Type||o.destinationType);c?(u="removeQueue(java.lang.String)",t.message="Deleted queue "+a):(u="removeTopic(java.lang.String)",t.message="Deleted topic "+a),r.execute(e,u,a,Core.onSuccess(s))}},t.purgeDestination=function(){var e=n.getSelectedMBeanName(),i=n.selection,o=i.entries;if(e&&i&&r&&o){var s=o.Destination||o.destinationName||i.title;s=_.unescape(s);var l="purge()";t.message="Purged queue "+s,r.execute(e,l,Core.onSuccess(a))}}}])}(ActiveMQ||(ActiveMQ={}));var ActiveMQ;!function(e){e._module.controller("ActiveMQ.DurableSubscriberController",["$scope","workspace","jolokia",function(t,n,i){function r(){var e=a(i);e&&(t.durableSubscribers=[],i.request({type:"read",mbean:e,attribute:["DurableTopicSubscribers"]},Core.onSuccess(function(e){return o(e,"DurableTopicSubscribers","Active")})),i.request({type:"read",mbean:e,attribute:["InactiveDurableTopicSubscribers"]},Core.onSuccess(function(e){return o(e,"InactiveDurableTopicSubscribers","Offline")})))}function o(n,i,r){var o=n.value;e.log.debug("Got data: ",o),t.durableSubscribers.push.apply(t.durableSubscribers,o[i].map(function(e){var t=e.objectName,n=Core.objectNameProperties(t);return"objectName"in e||("canonicalName"in e&&(t=e.canonicalName),n=_.cloneDeep(e.keyPropertyList)),n._id=t,n.status=r,n})),Core.$apply(t)}function a(t){var i=null,r=n.selection;if(r&&e.isBroker(n)&&r.objectName)return r.objectName;var o=r.folderNames,a=r?r.parent:null;return r&&a&&t&&o&&o.length>1&&(i=a.objectName,!i&&a&&(i=a.parent.objectName),i||(i=""+o[0]+":BrokerName="+o[1]+",Type=Broker")),i}t.refresh=r,t.durableSubscribers=[],t.tempData=[],t.createSubscriberDialog=new UI.Dialog,t.deleteSubscriberDialog=new UI.Dialog,t.showSubscriberDialog=new UI.Dialog,t.topicName="",t.clientId="",t.subscriberName="",t.subSelector="",t.gridOptions={selectedItems:[],data:"durableSubscribers",displayFooter:!1,showFilter:!1,showColumnMenu:!0,enableCellSelection:!1,enableColumnResize:!0,enableColumnReordering:!0,selectWithCheckboxOnly:!1,showSelectionCheckbox:!1,multiSelect:!1,displaySelectionCheckbox:!1,filterOptions:{filterText:""},maintainColumnRatios:!1,columnDefs:[{field:"destinationName",displayName:"Topic",width:"30%"},{field:"clientId",displayName:"Client ID",width:"30%"},{field:"consumerId",displayName:"Consumer ID",cellTemplate:'<div class="ngCellText"><span ng-hide="row.entity.status != \'Offline\'">{{row.entity.consumerId}}</span><a ng-show="row.entity.status != \'Offline\'" ng-click="openSubscriberDialog(row)">{{row.entity.consumerId}}</a></div>',width:"30%"},{field:"status",displayName:"Status",width:"10%"}],primaryKeyFn:function(e){return e.destinationName+"/"+e.clientId+"/"+e.consumerId}},t.doCreateSubscriber=function(e,n,o,s){t.createSubscriberDialog.close(),t.clientId=e,t.subscriberName=n,t.topicName=o,t.subSelector=s,Core.isBlank(t.subSelector)&&(t.subSelector=null);var l=a(i);l?i.execute(l,"createDurableSubscriber(java.lang.String, java.lang.String, java.lang.String, java.lang.String)",t.clientId,t.subscriberName,t.topicName,t.subSelector,Core.onSuccess(function(){Core.notification("success","Created durable subscriber "+e),t.clientId="",t.subscriberName="",t.topicName="",t.subSelector="",r()})):Core.notification("error","Could not find the Broker MBean!")},t.deleteSubscribers=function(){var e=t.gridOptions.selectedItems[0]._id;i.execute(e,"destroy()",Core.onSuccess(function(){t.showSubscriberDialog.close(),Core.notification("success","Deleted durable subscriber"),r(),t.gridOptions.selectedItems.splice(0,t.gridOptions.selectedItems.length)}))},t.openSubscriberDialog=function(e){i.request({type:"read",mbean:e.entity._id},Core.onSuccess(function(n){t.showSubscriberDialog.subscriber=n.value,t.showSubscriberDialog.subscriber.Status=e.entity.status,console.log("Subscriber is now "+t.showSubscriberDialog.subscriber),Core.$apply(t),setTimeout(function(){t.showSubscriberDialog.open(),Core.$apply(t)},100)}))},t.topicNames=function(t){var i=e.getSelectionTopicsFolder(n);return i?i.children.map(function(e){return e.title}):[]},t.$watch("workspace.selection",function(){n.moveIfViewInvalid()||setTimeout(r,50)})}])}(ActiveMQ||(ActiveMQ={}));var ActiveMQ;!function(e){e._module.controller("ActiveMQ.JobSchedulerController",["$scope","workspace","jolokia",function(e,t,n){function i(){var i=t.selection;if(i){var o=i.objectName;o&&n.request({type:"read",mbean:o,attribute:"AllJobs"},Core.onSuccess(r))}Core.$apply(e)}function r(t){var n=t.value;angular.isArray(n)?e.jobs=n:(e.jobs=[],angular.forEach(n,function(t,n){e.jobs.push(t)})),Core.$apply(e)}function o(){}function a(){e.gridOptions.selectedItems.splice(0),Core.notification("success",e.message),setTimeout(i,50)}e.refresh=i,e.jobs=[],e.deleteJobsDialog=new UI.Dialog,e.gridOptions={selectedItems:[],data:"jobs",displayFooter:!1,showFilter:!1,showColumnMenu:!0,enableColumnResize:!0,enableColumnReordering:!0,filterOptions:{filterText:""},selectWithCheckboxOnly:!0,showSelectionCheckbox:!0,maintainColumnRatios:!1,columnDefs:[{field:"jobId",displayName:"Job ID",width:"25%"},{field:"cronEntry",displayName:"Cron Entry",width:"10%"},{field:"delay",displayName:"Delay",width:"5%"},{field:"repeat",displayName:"repeat",width:"5%"},{field:"period",displayName:"period",width:"5%"},{field:"start",displayName:"Start",width:"25%"},{field:"next",displayName:"Next",width:"25%"}],primaryKeyFn:function(e){return e.jobId}},e.$watch("workspace.selection",function(){t.moveIfViewInvalid()||setTimeout(i,50)}),e.deleteJobs=function(){var i=t.selection,r=i.objectName;if(r&&i){var s=e.gridOptions.selectedItems;e.message="Deleted "+Core.maybePlural(s.length,"job");var l="removeJob(java.lang.String)";angular.forEach(s,function(e,t){var i=e.jobId;if(i){var u=t+1<s.length?o:a;n.execute(r,l,i,Core.onSuccess(u))}})}}}])}(ActiveMQ||(ActiveMQ={}));var ActiveMQ;!function(e){e._module.controller("ActiveMQ.PreferencesController",["$scope","localStorage","userDetails","$rootScope",function(e,t,n,i){var r={properties:{activemqUserName:{type:"string",description:"The user name to be used when connecting to the broker"},activemqPassword:{type:"password",description:"Password to be used when connecting to the broker"},activemqFilterAdvisoryTopics:{type:"boolean","default":"false",description:"Whether to exclude advisory topics in tree/table"},activemqBrowseBytesMessages:{type:"number","enum":{"Hex and text":1,"Decimal and text":2,Hex:4,Decimal:8,Off:99},description:"Browsing byte messages should display the message body as"}}};e.entity=e,e.config=r,Core.initPreferenceScope(e,t,{activemqUserName:{value:n.username?n.username:""},activemqPassword:{value:n.password?n.password:""},activemqBrowseBytesMessages:{value:1,converter:parseInt},activemqFilterAdvisoryTopics:{value:!1,converter:Core.parseBooleanValue,post:function(e){i.$broadcast("jmxTreeUpdated")}}})}])}(ActiveMQ||(ActiveMQ={}));var ActiveMQ;!function(e){e._module.controller("ActiveMQ.TreeHeaderController",["$scope",function(e){e.expandAll=function(){Tree.expandAll("#activemqtree")},e.contractAll=function(){Tree.contractAll("#activemqtree")}}]),e._module.controller("ActiveMQ.TreeController",["$scope","$location","workspace","localStorage",function(t,n,i,r){function o(){e.log.debug("workspace tree has changed, lets reload the activemq tree");var o=[],s=i.tree;if(s){var l="org.apache.activemq",u=s.get(l);if(u&&(o=u.children),o.length){var c=o[0];if(!c.typeName&&c.children.length<4){var d=[];angular.forEach(o,function(e){d=d.concat(e.children)}),o=d}}o.forEach(function(e){var t=e.children;if(t){Tree.sanitize(t);var n=t.findIndex(function(e){return"Topic"===e.title});if(n>0){var o=t[n],a="ActiveMQ-allTopics-"+e.title,s=_.clone(o.children);i.mapData[a]=s;var l=Core.parseBooleanValue(r.activemqFilterAdvisoryTopics);if(l){if(o&&o.children){var u=_.filter(o.children,function(e){return!_.startsWith(e.title,"ActiveMQ.Advisory")});o.children=u}}else s&&(o.children=s)}}});var p=$("#activemqtree");Jmx.enableTree(t,n,i,p,o,!0),setTimeout(a,50)}}function a(){Jmx.updateTreeSelectionFromURLAndAutoSelect(n,$("#activemqtree"),function(e){var t=e.getChildren()[0];return t&&"Queue"===t.data.title?(e=t,e.expand(!0),e):null},!0)}t.$on("$routeChangeSuccess",function(e,t,n){setTimeout(a,50)}),t.$watch("workspace.tree",function(){o()}),t.$on("jmxTreeUpdated",function(){o()})}])}(ActiveMQ||(ActiveMQ={}));var Camel;!function(e){function t(e,t){if(null!==xe)return xe;var n=q(e);return n&&t.request({type:"read",mbean:n,attribute:["NumberOfRestServices"]},Core.onSuccess(function(e){var t=e.value;xe=t>0})),!0}function n(e,t,n,i){function r(e){var t=null,n=e?e.value:null;if(n){var r=$.parseXML(n),a=$(r).find("route[id='"+o+"']");a&&a.length&&(t=a[0])}i(t)}var o=G(e,n),a=j(e);a&&o?t.request({type:"exec",mbean:a,operation:"dumpRoutesAsXml()"},Core.onSuccess(r,{error:r})):(o||console.log("No selectedRouteId when trying to lazy load the route!"),i(null))}function i(e){var t=null;if(e&&(t=e.getAttribute("uri"),!t)){var n=e.getAttribute("ref");if(n){var i=e.getAttribute("method");t=i?n+"."+i+"()":"ref:"+n}}return t}function r(t,n){void 0===n&&(n={});var i=t.camelNodeData;if(!i){var r=t.routeXmlNode;r&&(i=e.getRouteNodeJSON(r)),i||(i=n),t.camelNodeData=i}return i}function o(t,n){if(void 0===n&&(n={}),t){angular.forEach(t.attributes,function(e){n[e.name]=e.value});var i=t.localName;"route"!==i&&"routes"!==i&&"camelContext"!==i&&"rests"!==i&&$(t).children("*").each(function(t,i){var r=i.localName,a=e.camelLanguageSettings(r);if(a)n.expression={language:r,expression:i.textContent};else if(!g(r)){var s=o(i);s&&(s.expression&&(s=s.expression),"completionSize"===r?r="completionSizeExpression":"completionTimeout"===r&&(r="completionTimeoutExpression"),n[r]=s)}})}return n}function a(e,t){return void 0===t&&(t=" "),e+t}function s(e,t,n){function i(t,n,o){if(void 0===o&&(o=!1),angular.isArray(t))$(e).children(n).remove(),angular.forEach(t,function(e){i(e,n,!0)});else if(angular.isObject(t)){var a=null;if("expression"===n){var l=t.language;l&&(n=l,a=t.expression,t=angular.copy(t),delete t.expression,delete t.language)}var u=$(e).children(n),c=null;if(!o&&u&&u.length)c=u[0];else{var d=e.ownerDocument||document;e.appendChild(d.createTextNode("\n"+r)),c=d.createElementNS(e.namespaceURI,n),a&&c.appendChild(d.createTextNode(a)),e.appendChild(c)}s(c,t,r),a&&u.text(a)}else if(t)if(_.startsWith(n,"_"));else{var p=t.toString();e.setAttribute(n,p)}else e.removeAttribute(n)}if(e){var r=a(n);angular.forEach(t,function(e,t){return i(e,t,!1)})}}function l(e){var t=null;if(e){var n=e.localName;t=n?f(n):e}if(t){var i=t.icon||"generic24.png";return UrlHelpers.join("img/icons/camel/",i)}return null}function u(e){var t=e.selection;if(t&&t.objectName&&t.typeName&&"endpoints"===t.typeName){var n=Core.parseMBean(t.objectName);if(!n)return null;var i=n.attributes;if(!i)return null;if(!("name"in i))return null;var r=i.name;return r=r.replace("\\?","?"),_.startsWith(r,'"')&&(r=r.substr(1)),_.endsWith(r,'"')&&(r=r.substr(0,r.length-1)),r}return null}function c(e){if(angular.isString(e)){var t=e.replace("?","\\?");return t=t.replace(/\:(\/[^\/])/,"://$1"),t=t.replace(/\:([^\/])/,"://$1")}return e}function d(t){return{uri:e.getSelectedEndpointName(t),mbean:e.getSelectionCamelContextMBean(t)}}function p(t){var n=t.selection||t.getSelectedMBean();return n&&e.jmxDomain===n.domain?n.routeXmlNode:null}function h(t){var n=t.selection;n&&e.jmxDomain===n.domain&&delete n.routeXmlNode}function f(t){return angular.isObject(t)?t:Forms.lookupDefinition(t,e._apacheCamelModel)}function g(t){return null!=Forms.lookupDefinition(t,e._apacheCamelModel)}function m(e){var t=f(e);return t?t.nextSiblingAddedAsChild||!1:null}function v(e){var t=f(e);return t?t.acceptInput||!1:null}function y(e){var t=f(e);return t?t.acceptOutput||!1:null}function b(t){return e._apacheCamelModel.languages[t]}function w(e){return!(!b(e)&&"expression"!==e)}function x(t,n){var i=t;angular.isString(t)&&(i=$.parseXML(t));var r="camelContext",o=new Folder(r);o.addClass="org-apache-camel-context",o.domain=e.jmxDomain,o.typeName="context",o.key=Core.toSafeDomID(n);var a=$(i).find("camelContext");return a&&a.length||(a=$(i).find("routes")),a&&a.length&&(o.xmlDocument=i,o.routeXmlNode=a,$(a).children("route").each(function(t,n){var i=n.getAttribute("id");i||(i="route"+t,n.setAttribute("id",i));var r=new Folder(i);r.addClass="org-apache-camel-route",r.typeName="routes",r.domain=e.jmxDomain,r.key=o.key+"_"+Core.toSafeDomID(i),r.parent=o;var a=f("route");if(a){var s=l(a);r.tooltip=a.tooltip||a.description||i,r.icon=s}o.children.push(r),k(r,n)})),o}function k(e,t){e.children=[],e.routeXmlNode=t,t.setAttribute("_cid",e.key),$(t).children("*").each(function(t,n){C(e,n)})}function C(t,n){var i=n.localName;if(i){var r=f(i);if(r){var o=l(r),a=new Folder(i);a.domain=e.jmxDomain,a.typeName="routeNode",N(a,n,r),a.parent=t,a.folderNames=t.folderNames;for(var s=n.getAttribute("id")||i,u=t.key+"_"+Core.toSafeDomID(s),c=1,d=!0;d;){var p=u+c;t.children.indexOf({key:p})!==-1?c+=1:(d=!1,u=p)}return a.key=u,a.icon=o,a.routeXmlNode=n,t.children||(t.children=[]),t.children.push(a),k(a,n),a}}return null}function S(t){var n=t?t.tree:null;return n?n.get(e.jmxDomain):null}function T(e,t){var n=null,i=S(e);return i&&t&&angular.forEach(i.children,function(e){n||t!==e.title||(n=e)}),n}function E(e,t){var n=T(e,t);if(n){var i=n.navigate("context");if(i&&i.children&&i.children.length){var r=i.children[0];return r.objectName}}return null}function D(e){var t=null,n=e.selection;if(n){var i=n.entries;if(i){var r=i.context,o=i.name,a=i.type;if("endpoints"===a)return M(r,o);if("routes"===a)return I(r,o)}}return t}function M(e,t){var n=null;return e&&t&&(n="#/camel/endpoint/browse/"+e+"/"+t),n}function I(e,t){var n=null;return e&&t&&(n="#/camel/route/diagram/"+e+"/"+t),n}function P(e){var t=Core.pathGet(e,["routeXmlNode","localName"]);return"from"===t||"to"===t?"endpoint":t}function A(t,n,i){void 0===i&&(i=e.increaseIndent(""));var r=t.data||t,o=0,a=P(r);if(r){if(!n){n=document.createElement(a);var s=e.getRouteFolderJSON(r);s&&e.setRouteNodeJSON(n,s,i)}var l=n.ownerDocument||document,u=n.namespaceURI,c="route"!==a,d=e.increaseIndent(i);angular.forEach(t.children||t.getChildren(),function(t){var i=t.data||t,r=e.getFolderCamelNodeId(i),a=e.getRouteFolderJSON(i);if(r&&a){var s=!1;if("endpoint"===r&&(c?r="to":(r="from",c=!0)),"expression"===r){var p=a.language;p&&(r=p,s=!0)}n.appendChild(l.createTextNode("\n"+d));var h=l.createElementNS(u,r);e.setRouteNodeJSON(h,a,d),n.appendChild(h),o+=1,A(t,h,d)}}),o&&n.appendChild(l.createTextNode("\n"+i))}return n}function N(t,n,r){var o=n.localName,a=n.getAttribute("id"),s=r.title||o,l=r.tooltip||r.description||s;if(a)s=a;else{var u=i(n);if(u){s=u;var c=u.split("?");c&&c.length>1&&(s=c[0]),l+=" "+u}else{var d=$(n).children("*");if(d&&d.length){var p=d[0],h=p.localName,f=null;e.isCamelLanguage(h)&&(f=p.textContent,f||(f=p.getAttribute("expression"))),f&&(s+=" "+f,l+=" "+h+" expression")}}}return t.title=s,t.tooltip=l,s}function j(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t){var o=i.navigate(r,t,"context");if(o&&o.children){var a=_.first(o.children);if(a.title){var s=a.title;return""+r+":context="+t+',type=context,name="'+s+'"'}}}}}return null}function O(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t)return i.navigate(r,t,"endpoints")}}return null}function L(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t){var o=i.navigate(r,t,"tracer");if(o&&o.children){var a=o.children.find(function(e){return _.startsWith(e.title,"BacklogTracer")});if(a)return a.objectName}}}}return null}function R(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t){var o=i.navigate(r,t,"tracer");if(o&&o.children){var a=o.children.find(function(e){return _.startsWith(e.title,"BacklogDebugger")});if(a)return a.objectName}}}}return null}function F(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t){var o=i.navigate(r,t,"services");if(o&&o.children){var a=o.children.find(function(e){return _.startsWith(e.title,"DefaultTypeConverter")});if(a)return a.objectName}}}}return null}function q(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t){var o=i.navigate(r,t,"services");if(o&&o.children){var a=o.children.find(function(e){return _.startsWith(e.title,"DefaultRestRegistry")});if(a)return a.objectName}}}}return null}function B(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t){var o=i.navigate(r,t,"services");if(o&&o.children){var a=o.children.find(function(e){return _.startsWith(e.title,"DefaultRuntimeEndpointRegistry")});if(a)return a.objectName}}}}return null}function H(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t){var o=i.navigate(r,t,"services");if(o&&o.children){var a=o.children.find(function(e){return _.startsWith(e.title,"DefaultInflightRepository")});if(a)return a.objectName}}}}return null}function U(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t){var o=i.navigate(r,t,"services");if(o&&o.children){var a=o.children.find(function(e){return _.startsWith(e.title,"DefaultAsyncProcessorAwaitManager")});if(a)return a.objectName}}}}return null}function z(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t){var o=i.navigate(r,t,"services");if(o&&o.children){var a=o.children.find(function(e){return _.startsWith(e.title,"MetricsRegistryService")});if(a)return a.objectName}}}}return null}function V(e){var t=e.selection;if(t&&(t=t.findAncestor(function(e){return"context"===e.title||null!=e.parent&&"org.apache.camel"===e.parent.title}))){var n,i=e.tree,r=t.folderNames,o=t.entries;i&&(r&&r.length>1?n=r[1]:o&&(n=o.context))}return n}function W(e,t){var n=(e.State||"").toLowerCase();return angular.isArray(t)?t.some(function(e){return _.startsWith(n,e)}):_.startsWith(n,t)}function J(e){if(e)switch(e.toLowerCase()){case"started":return"green fa fa-play-circle";case"suspended":return"fa fa-pause"}return"orange fa fa-off"}function G(e,t){void 0===t&&(t=null);var n=t||e.selection,i=null;if(n&&n&&n.entries){var r=n.entries.type,o=n.entries.name;"routes"===r&&o&&(i=Core.trimQuotes(o))}return i}function X(e,t){if(e){var n=V(e),i=e.selection,r=e.tree;if(r&&i){var o=i.domain;if(o&&n){var a=r.navigate(o,n,"routes");if(a&&a.children){var s=_.find(a.children,function(e){return e.title===t});if(s)return s.objectName}}}}return null}function K(e,t){if(e){var n=V(e),i=e.selection,r=e.tree;if(r&&i){var o=i.domain;if(o&&n){var a=r.navigate(o,n,"context");if(a&&a.children){var s=_.first(a.children);return s.version}}}}return null}function Y(e){var t=$(e),n=t.children("uid").text(),i=t.children("timestamp").text(),r={headers:{},headerTypes:{},id:null,uid:n,timestamp:i,headerHtml:""},o=t.children("message")[0];o||(o=e);var a=$(o),s=a.find("header"),l="";s.each(function(e,t){var n=t.getAttribute("key"),i=t.getAttribute("type"),o=t.textContent;n&&(o&&(r.headers[n]=o),i&&(r.headerTypes[n]=i),l+="<tr><td class='property-name'>"+n+"</td><td class='property-value'>"+Q(i)+"</td><td class='property-value'>"+(o||"")+"</td></tr>")}),r.headerHtml=l;var u=r.headers.breadcrumbId;if(!u){var c=["MessageID","ID","Path","Name"];angular.forEach(c,function(e){u||angular.forEach(r.headers,function(t,n){!u&&_.endsWith(n,e)&&(u=t)})}),angular.forEach(r.headers,function(e,t){u||(u=e)})}r.id=u;var d=a.children("body")[0];if(d){var p=d.textContent,h=d.getAttribute("type");r.body=p,r.bodyType=Q(h)}return r}function Q(e){return e?_.startsWith(e,"java.lang")?e.substr(10):e:""}function Z(){return{selectedItems:[],data:"messages",displayFooter:!1,showFilter:!1,showColumnMenu:!0,enableColumnResize:!0,enableColumnReordering:!0,filterOptions:{filterText:""},selectWithCheckboxOnly:!0,showSelectionCheckbox:!0,maintainColumnRatios:!1,columnDefs:[{field:"id",displayName:"ID",cellTemplate:'<div class="ngCellText"><a href="" ng-click="row.entity.openMessageDialog(row)">{{row.entity.id}}</a></div>'}]}}function ee(t,n,i,r,o,a){var s=$(n).find("route"),l=a/s.length,u=0;s.each(function(n,a){var s=a.getAttribute("id");i&&s&&i!==s||(e.addRouteXmlChildren(t,a,r,o,null,u,0),u+=l)})}function te(t,n,r,o,a,s,u,c){void 0===c&&(c=null);var d=150,p=s,h=u+d,g=n.getAttribute("id"),m=[],v=n.localName;return $(n).children().each(function(n,s){var u=r.length,y=s.localName;"from"!==y||a||(a=u);var b=f(y),w=null;if(b){var x=b.title||y,k=i(s);k&&(x+=" "+k.split("?")[0]);var C=b.tooltip||b.description||x;k&&(C+=" "+k);var S=s.getAttribute("id"),$=x;if(S){var T=s.getAttribute("customId");t.camelIgnoreIdForLabel||!T||"false"===T?$="id: "+S:x=S}var _=t.camelMaximumLabelWidth||e.defaultMaximumLabelWidth,E=x.length;E>_&&($=x+"\n\n"+$,x=x.substring(0,_)+"..");var D=l(b);if(("from"===y||"to"===y)&&k){var M=k.indexOf(":");if(M>0){var I=k.substring(0,M);if(I){var P=e.getEndpointIcon(I);P&&(D=Core.url(P))}}}var A=s.getAttribute("_cid")||s.getAttribute("id");w={name:j,label:x,labelSummary:$,group:1,id:u,elementId:S,x:p,"y:":h,imageUrl:D,cid:A,tooltip:C,type:y},g&&(w.rid=g,t.routeNodes||(t.routeNodes={}),t.routeNodes[g]=w),A||(A=y+(r.length+1)),A&&(w.cid=A,t.nodes||(t.nodes={}),t.nodes[A]=w),g=null,r.push(w),null!==a&&a!==u&&(0===m.length||"choice"===v?o.push({source:a,target:u,value:1}):(m.forEach(function(e){o.push({source:e,target:u,value:1})}),m.length=0))}else{var N=e.camelLanguageSettings(y);if(N&&c){var j=N.name||y,O=s.textContent;O?(c.tooltip=c.label+" "+j+" "+O,c.label=O):c.label=c.label+" "+j}}var L=te(t,s,r,o,u,p,h,w);"choice"===v?(m=m.concat(L),p+=d):"choice"===y?(m=L,h+=d):(m=[r.length-1],h+=d)}),m}function ne(e){var t=e.height();if(t<300){console.log("browse thinks the height is only "+t+" so calculating offset from doc height");var n=e.offset();if(t=$(document).height()-5,n){var i=n.top;i&&(t-=i)}}return t}function ie(e,t){if(void 0===t&&(t={}),e){var n=e.key;n&&(t[n]=e),angular.forEach(e.children,function(e){return ie(e,t)})}return t}function re(t){var n=t&&t.data?t.data:t;if(!n)return null;var i=n.xmlDocument,r=n.routeXmlNode;if(r&&r.length){for(var o=r[0],a=o.childNodes,s=[],l=0;l<a.length;l++){var u=a[l],c=u.localName;"route"===c&&parent&&s.push(l)}for(;s.length;){for(var d=s.pop(),p=d+1;;){var u=o.childNodes[p];if(!Core.isTextNode(u))break;o.removeChild(u)}d<o.childNodes.length&&o.removeChild(o.childNodes[d]);for(var l=d-1;l>=0;l--){var u=o.childNodes[l];if(!Core.isTextNode(u))break;o.removeChild(u)}}e.createFolderXmlTree(t,r[0])}return i}function oe(t){var n={},i=t.tree;if(i){var r=i.navigate(e.jmxDomain);r&&angular.forEach(r.children,function(e){var t=e.navigate("context");if(t&&t.children&&t.children.length){var i=t.children[0],r=Core.pathGet(i,["entries","name"])||i.key;r&&(n[r]={folder:i,mbean:i.objectName})}})}return n}function ae(e){return le(e,"components")}function se(e){return le(e,"routes")}function le(t,n){var i={},r=t.tree;if(r){var o=r.navigate(e.jmxDomain);o&&angular.forEach(o.children,function(e){var t=e.navigate("context"),r=e.navigate(n);if(t&&r&&t.children&&t.children.length){var o=t.children[0],a=o.objectName;if(a){var s={folder:o,mbean:a};angular.forEach(r.children,function(e){var t=e.title;t&&(i[t]=s)})}}})}return i}function ue(t){var n={},i=t.tree;if(i){var r=i.navigate(e.jmxDomain);r&&angular.forEach(r.children,function(e){var t=e.navigate("processors");t&&t.children&&t.children.length&&angular.forEach(t.children,function(e){var i=e.title;if(i){var r={folder:t,key:e.key};n[i]=r}})})}return n}function ce(e){var t=e.camelIgnoreIdForLabel;return Core.parseBooleanValue(t)}function de(t){var n=t.camelMaximumLabelWidth;return angular.isString(n)&&(n=parseInt(n)),n||(n=e.defaultMaximumLabelWidth),n}function pe(t){var n=t.camelMaximumTraceOrDebugBodyLength;return angular.isString(n)&&(n=parseInt(n)),n||(n=e.defaultCamelMaximumTraceOrDebugBodyLength),n}function he(t){var n=t.camelTraceOrDebugIncludeStreams;return Core.parseBooleanValue(n,e.defaultCamelTraceOrDebugIncludeStreams)}function fe(e){var t=e.camelShowInflightCounter;return Core.parseBooleanValue(t,!0)}function ge(t){var n=t.camelRouteMetricMaxSeconds;return angular.isString(n)&&(n=parseInt(n)),n||(n=e.defaultCamelRouteMetricMaxSeconds),n}function me(t){var n=t.camelHideOptionDocumentation;return Core.parseBooleanValue(n,e.defaultHideOptionDocumentation)}function ve(t){var n=t.camelHideOptionDefaultValue;return Core.parseBooleanValue(n,e.defaultHideOptionDefaultValue)}function ye(t){var n=t.camelHideOptionUnusedValue;return Core.parseBooleanValue(n,e.defaultHideOptionUnusedValue)}function be(e,t){e.attr("class","node"),e.filter(function(e){if(e){var n=e.cid,i=e.rid,r=e.type,o=e.elementId;return"from"===r?t===i:o?t===o:n?t===n:t===i}return null}).attr("class","node selected")}function we(e,t,n,i){var r=K(n,i);if(r){r+="camel-";var o=Core.parseVersionNumbers(r);return Core.compareVersionNumberArrays(o,[e,t])>=0}return!1}e.log=Logger.get("Camel"),e.jmxDomain="org.apache.camel",e.defaultMaximumLabelWidth=34,e.defaultCamelMaximumTraceOrDebugBodyLength=5e3,e.defaultCamelTraceOrDebugIncludeStreams=!0,e.defaultCamelRouteMetricMaxSeconds=10,e.defaultHideOptionDocumentation=!1,e.defaultHideOptionDefaultValue=!1,e.defaultHideOptionUnusedValue=!1,e._apacheCamelModel=void 0,hawtioPluginLoader.registerPreBootstrapTask(function(t){e._apacheCamelModel=window._apacheCamelModel,e.log.debug("Setting apache camel model: ",e._apacheCamelModel),t()});var xe=null;e.hasRestServices=t,e.processRouteXml=n,e.getRouteNodeUri=i,e.getRouteFolderJSON=r,e.getRouteNodeJSON=o,e.increaseIndent=a,e.setRouteNodeJSON=s,e.getRouteNodeIcon=l,e.getSelectedEndpointName=u,e.escapeEndpointUriNameForJmx=c,e.getContextAndTargetEndpoint=d,e.getSelectedRouteNode=p,e.clearSelectedRouteNode=h,e.getCamelSchema=f,e.isCamelPattern=g,e.isNextSiblingAddedAsChild=m,e.acceptInput=v,e.acceptOutput=y,e.camelLanguageSettings=b,e.isCamelLanguage=w,e.loadCamelTree=x,e.addRouteChildren=k,e.addRouteChild=C,e.getRootCamelFolder=S,e.getCamelContextFolder=T,e.getCamelContextMBean=E,e.linkToFullScreenView=D,e.linkToBrowseEndpointFullScreen=M,e.linkToRouteDiagramFullScreen=I,e.getFolderCamelNodeId=P,e.createFolderXmlTree=A,e.updateRouteNodeLabelAndTooltip=N,e.getSelectionCamelContextMBean=j,e.getSelectionCamelContextEndpoints=O,e.getSelectionCamelTraceMBean=L,e.getSelectionCamelDebugMBean=R,e.getSelectionCamelTypeConverter=F,e.getSelectionCamelRestRegistry=q,e.getSelectionCamelEndpointRuntimeRegistry=B,e.getSelectionCamelInflightRepository=H,e.getSelectionCamelBlockedExchanges=U,e.getSelectionCamelRouteMetrics=z,e.getContextId=V,e.isState=W,e.iconClass=J,e.getSelectedRouteId=G,e.getSelectionRouteMBean=X,e.getCamelVersion=K,e.createMessageFromXml=Y,e.humanizeJavaType=Q,e.createBrowseGridOptions=Z,e.loadRouteXmlNodes=ee,e.addRouteXmlChildren=te,e.getCanvasHeight=ne,e.addFoldersToIndex=ie,e.generateXmlFromFolder=re,e.camelContextMBeansById=oe,e.camelContextMBeansByComponentName=ae,e.camelContextMBeansByRouteId=se,e.camelProcessorMBeansById=ue,e.ignoreIdForLabel=ce,e.maximumLabelWidth=de,e.maximumTraceOrDebugBodyLength=pe,e.traceOrDebugIncludeStreams=he,e.showInflightCounter=fe,e.routeMetricMaxSeconds=ge,e.hideOptionDocumentation=me,e.hideOptionDefaultValue=ve,e.hideOptionUnusedValue=ye,e.highlightSelectedNode=be,e.isCamelVersionEQGT=we}(Camel||(Camel={}));var Camel;!function(e){var t=Jmx;e.pluginName="camel";var n="plugins/camel/html/attributeToolBarRoutes.html",i="plugins/camel/html/attributeToolBarContext.html";e._module=angular.module(e.pluginName,[]),e._module.config(["$routeProvider",function(e){e.when("/camel/browseEndpoint",{templateUrl:"plugins/camel/html/browseEndpoint.html"}).when("/camel/endpoint/browse/:contextId/*endpointPath",{templateUrl:"plugins/camel/html/browseEndpoint.html"}).when("/camel/createEndpoint",{templateUrl:"plugins/camel/html/createEndpoint.html"}).when("/camel/route/diagram/:contextId/:routeId",{templateUrl:"plugins/camel/html/routes.html"}).when("/camel/routes",{templateUrl:"plugins/camel/html/routes.html"}).when("/camel/typeConverter",{templateUrl:"plugins/camel/html/typeConverter.html",reloadOnSearch:!1}).when("/camel/restRegistry",{templateUrl:"plugins/camel/html/restRegistry.html",reloadOnSearch:!1}).when("/camel/endpointRuntimeRegistry",{templateUrl:"plugins/camel/html/endpointRuntimeRegistry.html",reloadOnSearch:!1}).when("/camel/routeMetrics",{templateUrl:"plugins/camel/html/routeMetrics.html",reloadOnSearch:!1}).when("/camel/inflight",{templateUrl:"plugins/camel/html/inflight.html",reloadOnSearch:!1}).when("/camel/blocked",{templateUrl:"plugins/camel/html/blocked.html",reloadOnSearch:!1}).when("/camel/sendMessage",{templateUrl:"plugins/camel/html/sendMessage.html",reloadOnSearch:!1}).when("/camel/source",{templateUrl:"plugins/camel/html/source.html"}).when("/camel/traceRoute",{templateUrl:"plugins/camel/html/traceRoute.html"}).when("/camel/debugRoute",{templateUrl:"plugins/camel/html/debug.html"}).when("/camel/profileRoute",{templateUrl:"plugins/camel/html/profileRoute.html"}).when("/camel/properties",{templateUrl:"plugins/camel/html/properties.html"}).when("/camel/propertiesComponent",{templateUrl:"plugins/camel/html/propertiesComponent.html"}).when("/camel/propertiesDataFormat",{templateUrl:"plugins/camel/html/propertiesDataFormat.html"}).when("/camel/propertiesEndpoint",{templateUrl:"plugins/camel/html/propertiesEndpoint.html"})}]),e._module.factory("tracerStatus",function(){return{jhandle:null,messages:[]}}),e._module.filter("camelIconClass",function(){return e.iconClass}),e._module.factory("activeMQMessage",function(){return{message:null}}),e._module.factory("metricsWatcher",["$window",function(e){var t=e.metricsWatcher;return t||(t={},e.metricsWatcher=t),t}]),e._module.run(["HawtioNav","workspace","jolokia","viewRegistry","layoutFull","helpRegistry","preferencesRegistry","$templateCache","$location","$rootScope",function(t,r,o,a,s,l,u,c,d,p){a["camel/endpoint/"]=s,a["camel/route/"]=s,a['{ "main-tab": "camel" }']="plugins/camel/html/layoutCamelTree.html",l.addUserDoc("camel","plugins/camel/doc/help.md",function(){return r.treeContainsDomainAndProperties(e.jmxDomain)}),u.addTab("Camel","plugins/camel/html/preferences.html",function(){return r.treeContainsDomainAndProperties(e.jmxDomain)}),Jmx.addAttributeToolBar(e.pluginName,e.jmxDomain,function(t){var r=t.typeName;if(r){if(_.startsWith(r,"context"))return i;if(_.startsWith(r,"route"))return n}var o=t.folderNames;if(o&&t.domain===e.jmxDomain){var a=_.last(o);if("routes"===a)return n;if("context"===a)return i}return null});var h="State",f='<div class="ngCellText pagination-centered" title="{{row.getProperty(col.field)}}"><i class="{{row.getProperty(\''+h+"') | camelIconClass}}\"></i></div>",g={field:h,displayName:h,cellTemplate:f,width:56,minWidth:56,maxWidth:56,resizable:!1,defaultSort:!1},m=r.attributeColumnDefs;m[e.jmxDomain+"/context/folder"]=[g,{field:"CamelId",displayName:"Context"},{field:"Uptime",displayName:"Uptime",visible:!1},{field:"CamelVersion",displayName:"Version",visible:!1},{field:"ExchangesCompleted",displayName:"Completed"},{field:"ExchangesFailed",displayName:"Failed"},{field:"FailuresHandled",displayName:"Failed Handled",visible:!1},{field:"ExchangesTotal",displayName:"Total",visible:!1},{field:"Redeliveries",displayName:"Redelivery",visible:!1},{field:"ExchangesInflight",displayName:"Inflight"},{field:"OldestInflightDuration",displayName:"Oldest Inflight Time",visible:!1},{field:"MeanProcessingTime",displayName:"Mean Time"},{field:"MinProcessingTime",displayName:"Min Time"},{field:"MaxProcessingTime",displayName:"Max Time"},{field:"TotalProcessingTime",displayName:"Total Time",visible:!1},{field:"DeltaProcessingTime",displayName:"Delta Time",visible:!1},{field:"LastProcessingTime",displayName:"Last Time",visible:!1
|
|
25807
|
|
-},{field:"LastExchangeCompletedTimestamp",displayName:"Last completed",visible:!1},{field:"LastExchangeFailedTimestamp",displayName:"Last failed",visible:!1},{field:"ExternalRedeliveries",displayName:"External Redelivery",visible:!1},{field:"StartedRoutes",displayName:"Started Routes"},{field:"TotalRoutes",displayName:"Total Routes"}],m[e.jmxDomain+"/routes/folder"]=[g,{field:"CamelId",displayName:"Context"},{field:"RouteId",displayName:"Route"},{field:"ExchangesCompleted",displayName:"Completed"},{field:"ExchangesFailed",displayName:"Failed"},{field:"FailuresHandled",displayName:"Failed Handled",visible:!1},{field:"Redeliveries",displayName:"Redelivery",visible:!1},{field:"ExchangesTotal",displayName:"Total",visible:!1},{field:"ExchangesInflight",displayName:"Inflight"},{field:"OldestInflightDuration",displayName:"Oldest Inflight Time",visible:!1},{field:"MeanProcessingTime",displayName:"Mean Time"},{field:"MinProcessingTime",displayName:"Min Time"},{field:"MaxProcessingTime",displayName:"Max Time"},{field:"TotalProcessingTime",displayName:"Total Time",visible:!1},{field:"DeltaProcessingTime",displayName:"Delta Time",visible:!1},{field:"LastProcessingTime",displayName:"Last Time",visible:!1},{field:"LastExchangeCompletedTimestamp",displayName:"Last completed",visible:!1},{field:"LastExchangeFailedTimestamp",displayName:"Last failed",visible:!1},{field:"Redeliveries",displayName:"Redelivery",visible:!1},{field:"ExternalRedeliveries",displayName:"External Redelivery",visible:!1}],m[e.jmxDomain+"/processors/folder"]=[g,{field:"CamelId",displayName:"Context"},{field:"RouteId",displayName:"Route"},{field:"ProcessorId",displayName:"Processor"},{field:"ExchangesCompleted",displayName:"Completed"},{field:"ExchangesFailed",displayName:"Failed"},{field:"FailuresHandled",displayName:"Failed Handled",visible:!1},{field:"Redeliveries",displayName:"Redelivery",visible:!1},{field:"ExchangesTotal",displayName:"Total",visible:!1},{field:"ExchangesInflight",displayName:"Inflight"},{field:"OldestInflightDuration",displayName:"Oldest Inflight Time",visible:!1},{field:"MeanProcessingTime",displayName:"Mean Time"},{field:"MinProcessingTime",displayName:"Min Time"},{field:"MaxProcessingTime",displayName:"Max Time"},{field:"TotalProcessingTime",displayName:"Total Time",visible:!1},{field:"DeltaProcessingTime",displayName:"Delta Time",visible:!1},{field:"LastProcessingTime",displayName:"Last Time",visible:!1},{field:"LastExchangeCompletedTimestamp",displayName:"Last completed",visible:!1},{field:"LastExchangeFailedTimestamp",displayName:"Last failed",visible:!1},{field:"ExternalRedeliveries",displayName:"External Redelivery",visible:!1}],m[e.jmxDomain+"/components/folder"]=[g,{field:"CamelId",displayName:"Context"},{field:"ComponentName",displayName:"Name"}],m[e.jmxDomain+"/consumers/folder"]=[g,{field:"CamelId",displayName:"Context"},{field:"RouteId",displayName:"Route"},{field:"EndpointUri",displayName:"Endpoint URI",width:"**"},{field:"Suspended",displayName:"Suspended",resizable:!1},{field:"InflightExchanges",displayName:"Inflight"}],m[e.jmxDomain+"/producers/folder"]=[g,{field:"CamelId",displayName:"Context"},{field:"RouteId",displayName:"Route"},{field:"EndpointUri",displayName:"Endpoint URI",width:"**"},{field:"Suspended",displayName:"Suspended",resizable:!1}],m[e.jmxDomain+"/services/folder"]=[g,{field:"CamelId",displayName:"Context"},{field:"RouteId",displayName:"Route"},{field:"Suspended",displayName:"Suspended",resizable:!1},{field:"SupportsSuspended",displayName:"Can Suspend",resizable:!1}],m[e.jmxDomain+"/endpoints/folder"]=[g,{field:"CamelId",displayName:"Context"},{field:"EndpointUri",displayName:"Endpoint URI",width:"***"},{field:"Singleton",displayName:"Singleton",resizable:!1}],m[e.jmxDomain+"/threadpools/folder"]=[{field:"Id",displayName:"Id",width:"**"},{field:"ActiveCount",displayName:"Active"},{field:"PoolSize",displayName:"Pool Size"},{field:"CorePoolSize",displayName:"Core Pool Size"},{field:"TaskQueueSize",displayName:"Task Queue Size"},{field:"TaskCount",displayName:"Task"},{field:"CompletedTaskCount",displayName:"Completed Task"}],m[e.jmxDomain+"/errorhandlers/folder"]=[{field:"CamelId",displayName:"Context"},{field:"DeadLetterChannel",displayName:"Dead Letter"},{field:"DeadLetterChannelEndpointUri",displayName:"Endpoint URI",width:"**",resizable:!0},{field:"MaximumRedeliveries",displayName:"Max Redeliveries"},{field:"RedeliveryDelay",displayName:"Redelivery Delay"},{field:"MaximumRedeliveryDelay",displayName:"Max Redeliveries Delay"}];var v="/jmx/attributes?main-tab=camel&sub-tab=camel-attributes",y=t.builder(),b=y.id("camel").title(function(){return"Camel"}).defaultPage({rank:20,isValid:function(t,n){var i="CamelDefaultPage";r.addNamedTreePostProcessor(i,function(o){r.removeNamedTreePostProcessor(i),r.treeContainsDomainAndProperties(e.jmxDomain)?t():n()})}}).href(function(){return v}).isValid(function(){return r.treeContainsDomainAndProperties(e.jmxDomain)}).build();b.tabs=Jmx.getNavItems(y,r,c,"camel"),b.tabs.push({id:"camel-route-diagram",title:function(){return'<i class="fa fa-sitemap"></i> Route Diagram'},tooltip:function(){return"View a diagram of the Camel routes"},show:function(){return(r.isRoute()||r.isRoutesFolder())&&r.hasInvokeRightsForName(e.getSelectionCamelContextMBean(r),"dumpRoutesAsXml")},isSelected:function(){return r.isLinkActive("camel/routes")},href:function(){return"/camel/routes"+r.hash()},index:-2}),b.tabs.push({id:"camel-route-source",title:function(){return'<i class=" fa fa-file-code-o"></i> Source'},tooltip:function(){return"View the source of the Camel routes"},show:function(){return!r.isEndpointsFolder()&&!r.isEndpoint()&&(r.isRoute()||r.isRoutesFolder())&&r.hasInvokeRightsForName(e.getSelectionCamelContextMBean(r),"dumpRoutesAsXml")},isSelected:function(){return r.isLinkActive("camel/source")},href:function(){return"/camel/source"+r.hash()}}),b.tabs.push({id:"camel-route-properties",title:function(){return'<i class=" fa fa-edit"></i> Properties'},tooltip:function(){return"View the pattern properties"},show:function(){return e.getSelectedRouteNode(r)},href:function(){return"/camel/properties"+r.hash()}}),b.tabs.push({id:"camel-endpoint-properties",title:function(){return'<i class="fa fa-list"></i> Properties'},tooltip:function(){return"Show the endpoint properties"},show:function(){return r.isEndpoint()&&e.isCamelVersionEQGT(2,15,r,o)&&r.hasInvokeRights(r.selection,"explainEndpointJson")},href:function(){return"/camel/propertiesEndpoint"+r.hash()}}),b.tabs.push({id:"camel-component-properties",title:function(){return'<i class="fa fa-list"></i> Properties'},tooltip:function(){return"Show the component properties"},show:function(){return r.isComponent()&&e.isCamelVersionEQGT(2,15,r,o)&&r.hasInvokeRights(r.selection,"explainComponentJson")},href:function(){return"/camel/propertiesComponent"+r.hash()}}),b.tabs.push({id:"camel-dataformat-properties",title:function(){return'<i class="fa fa-list"></i> Properties'},tooltip:function(){return"Show the dataformat properties"},show:function(){return r.isDataformat()&&e.isCamelVersionEQGT(2,16,r,o)&&r.hasInvokeRights(r.selection,"explainDataFormatJson")},href:function(){return"/camel/propertiesDataFormat"+r.hash()}}),b.tabs.push({id:"camel-inflight-exchanges",title:function(){return'<i class="fa fa-bar-chart"></i> Inflight'},tooltip:function(){return"View the entire JVMs Camel inflight exchanges"},show:function(){return!r.isEndpointsFolder()&&!r.isEndpoint()&&!r.isComponentsFolder()&&!r.isComponent()&&(r.isCamelContext()||r.isRoutesFolder()||r.isRoute())&&e.isCamelVersionEQGT(2,15,r,o)&&r.hasInvokeRightsForName(e.getSelectionCamelInflightRepository(r),"browse")},href:function(){return"/camel/inflight"+r.hash()}}),b.tabs.push({id:"camel-blocked-exchanges",title:function(){return'<i class="fa fa-bar-chart"></i> Blocked'},tooltip:function(){return"View the entire JVMs Camel blocked exchanges"},show:function(){return!r.isEndpointsFolder()&&(r.isRoute()||r.isRoutesFolder())&&e.isCamelVersionEQGT(2,15,r,o)&&r.hasInvokeRightsForName(e.getSelectionCamelBlockedExchanges(r),"browse")},href:function(){return"/camel/blocked"+r.hash()}}),b.tabs.push({id:"camel-route-metrics",title:function(){return'<i class="fa fa-bar-chart"></i> Route Metrics'},tooltip:function(){return"View the entire JVMs Camel route metrics"},show:function(){return!r.isEndpointsFolder()&&!r.isEndpoint()&&(r.isCamelContext()||r.isRoutesFolder())&&e.isCamelVersionEQGT(2,14,r,o)&&e.getSelectionCamelRouteMetrics(r)&&r.hasInvokeRightsForName(e.getSelectionCamelRouteMetrics(r),"dumpStatisticsAsJson")},href:function(){return"/camel/routeMetrics"+r.hash()}}),b.tabs.push({id:"camel-rest-services",title:function(){return'<i class="fa fa-list"></i> Rest Services'},tooltip:function(){return"List all the REST services registered in the context"},show:function(){return!r.isEndpointsFolder()&&!r.isEndpoint()&&!r.isComponentsFolder()&&!r.isComponent()&&(r.isCamelContext()||r.isRoutesFolder())&&e.isCamelVersionEQGT(2,14,r,o)&&e.getSelectionCamelRestRegistry(r)&&e.hasRestServices(r,o)&&r.hasInvokeRightsForName(e.getSelectionCamelRestRegistry(r),"listRestServices")},href:function(){return"/camel/restRegistry"+r.hash()}}),b.tabs.push({id:"camel-endpoint-runtime-registry",title:function(){return'<i class="fa fa-list"></i> Endpoints (in/out)'},tooltip:function(){return"List all the incoming and outgoing endpoints in the context"},show:function(){return!r.isEndpointsFolder()&&!r.isEndpoint()&&!r.isComponentsFolder()&&!r.isComponent()&&(r.isCamelContext()||r.isRoutesFolder())&&e.isCamelVersionEQGT(2,16,r,o)&&e.getSelectionCamelEndpointRuntimeRegistry(r)&&r.hasInvokeRightsForName(e.getSelectionCamelEndpointRuntimeRegistry(r),"endpointStatistics")},href:function(){return"/camel/endpointRuntimeRegistry"+r.hash()}}),b.tabs.push({id:"camel-type-converters",title:function(){return'<i class="fa fa-list"></i> Type Converters'},tooltip:function(){return"List all the type converters registered in the context"},show:function(){return!r.isEndpointsFolder()&&!r.isEndpoint()&&!r.isComponentsFolder()&&!r.isComponent()&&(r.isCamelContext()||r.isRoutesFolder())&&e.isCamelVersionEQGT(2,13,r,o)&&r.hasInvokeRightsForName(e.getSelectionCamelTypeConverter(r),"listTypeConverters")},href:function(){return"/camel/typeConverter"+r.hash()}}),b.tabs.push({id:"camel-route-profile",title:function(){return'<i class="fa fa-bar-chart"></i> Profile'},tooltip:function(){return"Profile the messages flowing through the Camel route"},show:function(){return r.isRoute()&&e.getSelectionCamelTraceMBean(r)&&r.hasInvokeRightsForName(e.getSelectionCamelTraceMBean(r),"dumpAllTracedMessagesAsXml")},href:function(){return"/camel/profileRoute"+r.hash()}}),b.tabs.push({id:"camel-route-debug",title:function(){return'<i class="fa fa-stethoscope"></i> Debug'},tooltip:function(){return"Debug the Camel route"},show:function(){return r.isRoute()&&e.getSelectionCamelDebugMBean(r)&&r.hasInvokeRightsForName(e.getSelectionCamelDebugMBean(r),"getBreakpoints")},href:function(){return"/camel/debugRoute"+r.hash()}}),b.tabs.push({id:"camel-route-trace",title:function(){return'<i class="fa fa-envelope"></i> Trace'},tooltip:function(){return"Trace the messages flowing through the Camel route"},show:function(){return r.isRoute()&&e.getSelectionCamelTraceMBean(r)&&r.hasInvokeRightsForName(e.getSelectionCamelTraceMBean(r),"dumpAllTracedMessagesAsXml")},href:function(){return"/camel/traceRoute"+r.hash()}}),b.tabs.push({id:"camel-endpoint-browser",title:function(){return'<i class="fa fa-envelope"></i> Browse'},tooltip:function(){return"Browse the messages on the endpoint"},show:function(){return r.isEndpoint()&&r.hasInvokeRights(r.selection,"browseAllMessagesAsXml")},href:function(){return"/camel/browseEndpoint"+r.hash()}}),b.tabs.push({id:"camel-endpoint-send",title:function(){return'<i class="fa fa-pencil"></i> Send'},show:function(){return r.isEndpoint()&&r.hasInvokeRights(r.selection,"org.apache.camel"===r.selection.domain?"sendBodyAndHeaders":"sendTextMessage")},href:function(){return"/camel/sendMessage"+r.hash()}}),b.tabs.push({id:"camel-endpoint-create",title:function(){return'<i class="fa fa-plus"></i> Endpoint'},tooltip:function(){return"Create a new endpoint"},show:function(){return r.isEndpointsFolder()&&r.hasInvokeRights(r.selection,"createEndpoint")},href:function(){return"/camel/createEndpoint"+r.hash()}}),t.add(b),r.addNamedTreePostProcessor("camel",function(t){var n=[],i=e.jmxDomain;if(t){var r=new Folder("Camel Contexts");r.addClass="org-apache-camel-context-folder",r.children=n,r.typeName="context",r.key="camelContexts",r.domain=i;var a=t.get(i);a&&(angular.forEach(a.children,function(e,t){var a=e.map;if(a){var s=a.context,l=a.routes,u=a.endpoints,c=a.components,d=a.dataformats;if(s){var h=s.children[0];if(h){var f=h.title,g=!0;if(g){var m=new Folder(f);if(m.addClass="org-apache-camel-context",m.domain=i,m.objectName=h.objectName,m.entries=h.entries,m.typeName=h.typeName,m.key=h.key,m.version=h.version,o.request({type:"read",mbean:h.objectName,attribute:"CamelVersion"},Core.onSuccess(function(e){h.version=e.value,Core.$apply(p)})),l){var v=new Folder("Routes");v.addClass="org-apache-camel-routes-folder",v.parent=s,v.children=l.children,angular.forEach(v.children,function(e){return e.addClass="org-apache-camel-routes"}),m.children.push(v),v.typeName="routes",v.key=l.key,v.domain=l.domain}if(u){var y=new Folder("Endpoints");y.addClass="org-apache-camel-endpoints-folder",y.parent=s,y.children=u.children,angular.forEach(y.children,function(e){e.addClass="org-apache-camel-endpoints"}),m.children.push(y),y.entries=h.entries,y.typeName="endpoints",y.key=u.key,y.domain=u.domain}if(c){var b=new Folder("Components");b.addClass="org-apache-camel-components-folder",b.parent=s,b.children=c.children,angular.forEach(b.children,function(e){e.addClass="org-apache-camel-components"}),m.children.push(b),b.entries=h.entries,b.typeName="components",b.key=c.key,b.domain=c.domain}if(d){var w=new Folder("Dataformats");w.addClass="org-apache-camel-dataformats-folder",w.parent=s,w.children=d.children,angular.forEach(w.children,function(e){e.addClass="org-apache-camel-dataformats"}),m.children.push(w),w.entries=h.entries,w.typeName="dataformats",w.key=d.key,w.domain=d.domain}var x=new Folder("MBeans");angular.forEach(a,function(e,t){"context"!==t&&"routes"!==t&&"endpoints"!==t&&"components"!==t&&"dataformats"!==t&&x.children.push(e)}),x.children.length>0&&(x.sortChildren(!1),m.children.push(x)),m.parent=r,n.push(m)}}}}}),a.children.splice(0,0,r))}})}]),hawtioPluginLoader.addModule(e.pluginName),hawtioPluginLoader.registerPreBootstrapTask(function(n){t.registerLazyLoadHandler(e.jmxDomain,function(t){return e.jmxDomain===t.domain&&"routes"===t.typeName?function(t,n,i){"routes"===n.typeName?e.processRouteXml(t,t.jolokia,n,function(t){t&&e.addRouteChildren(n,t),i()}):i()}:null}),n()})}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.AttributesToolBarController",["$scope","workspace","jolokia",function(t,n,i){t.deleteDialog=!1,t.start=function(){t.invokeSelectedMBeans(function(t){return e.isState(t,"suspend")?"resume()":"start()"})},t.pause=function(){t.invokeSelectedMBeans("suspend()")},t.stop=function(){t.invokeSelectedMBeans("stop()",function(){n.removeAndSelectParentNode()})},t["delete"]=function(){t.invokeSelectedMBeans("remove()",function(){t.workspace.operationCounter+=1,n.loadTree()})},t.anySelectionHasState=function(n){var i=t.selectedItems||[];return i.some(function(t){return e.isState(t,n)})},t.everySelectionHasState=function(n){var i=t.selectedItems||[];return i.every(function(t){return e.isState(t,n)})}}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.BlockedExchangesController",["$scope","$location","workspace","jolokia",function(t,n,i,r){function o(){Core.notification("success","Thread unblocked")}function a(e){var n=e.value;if(n){var i=[];for(var r in n){var o=n[r];i.push({exchangeId:o.exchangeId,routeId:o.routeId,nodeId:o.nodeId,duration:o.duration,threadId:o.id,threadName:o.name})}i=_.sortBy(i,"exchangeId"),t.data=i,t.selectedMBean=e.request.mbean}else t.data=[];t.initDone="true",Core.$apply(t)}function s(){l.info("Loading blocked exchanges data...");var n=e.getSelectedRouteId(i);null!=n&&(t.gridOptions.filterOptions.filterText=n);var o=e.getSelectionCamelBlockedExchanges(i);if(o){var s={type:"exec",mbean:o,operation:"browse()"};r.request(s,Core.onSuccess(a)),Core.scopeStoreJolokiaHandle(t,r,r.register(Core.onSuccess(a),s))}}var l=Logger.get("Camel");t.data=[],t.initDone=!1,t.mbeanAttributes={};var u=[{field:"exchangeId",displayName:"Exchange Id",cellFilter:null,width:"*",resizable:!0},{field:"routeId",displayName:"Route Id",cellFilter:null,width:"*",resizable:!0},{field:"nodeId",displayName:"Node Id",cellFilter:null,width:"*",resizable:!0},{field:"duration",displayName:"Duration (ms)",cellFilter:null,width:"*",resizable:!0},{field:"threadId",displayName:"Thread id",cellFilter:null,width:"*",resizable:!0},{field:"threadName",displayName:"Thread name",cellFilter:null,width:"*",resizable:!0}];t.gridOptions={data:"data",displayFooter:!0,displaySelectionCheckbox:!0,multiSelect:!1,canSelectRows:!0,enableSorting:!0,columnDefs:u,selectedItems:[],filterOptions:{filterText:""},primaryKeyFn:function(e){return e.exchangeId}},t.doUnblock=function(){var n=e.getSelectionCamelBlockedExchanges(i),a=t.gridOptions.selectedItems;if(n&&a&&1===a.length){var s=a[0].exchangeId,u=a[0].threadId,c=a[0].threadName;l.info("Unblocking thread ("+u+"/"+c+") for exchangeId: "+s),r.execute(n,"interrupt(java.lang.String)",s,Core.onSuccess(o))}},s()}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.BreadcrumbBarController",["$scope","$routeParams","workspace","jolokia",function(t,n,i,r){function o(){var n=[],r=e.getRootCamelFolder(i);return r&&angular.forEach(r.children,function(e){var i=e.title;if(i&&i!==t.contextId){var r=i,o=l(i,s());n.push({name:r,tooltip:"Camel Context",link:o})}}),n}function a(e){var t=[];return angular.forEach(["endpoints","routes"],function(n){if(n&&n!==s()){var i=l(e,n);t.push({name:n,tooltip:"Entity inside a Camel Context",link:i})}}),t}function s(){var e=Core.pathGet(t,["breadcrumbs","childEntity"]);return e||f}function l(t,n){var i=u(t,n),r=i.length>0?i[0].link:e.linkToBrowseEndpointFullScreen(t,"noEndpoints");return r}function u(e,t){return"endpoints"===t?c(e):d(e)}function c(t){var n=[],r=e.getCamelContextFolder(i,t);if(r){var o=(r.children||[]).find(function(e){return"endpoints"===e.title});o&&angular.forEach(o.children,function(i){var r=i?i.entries:null;if(r){var o=r.name;if(o){var a=h(o),s=e.linkToBrowseEndpointFullScreen(t,o);n.push({contextId:t,path:o,name:a,tooltip:"Endpoint",link:s})}}})}return n}function d(t){var n=[],r=e.getCamelContextFolder(i,t);if(r){var o=(r.children||[]).find(function(e){return"routes"===e.title});o&&angular.forEach(o.children,function(i){var r=i?i.entries:null;if(r){var o=r.name;if(o){var a=h(o),s=e.linkToRouteDiagramFullScreen(t,o);n.push({contextId:t,path:o,name:a,tooltip:"Camel Route",link:s})}}})}return n}function p(){var n=null;if(t.contextId){var r=null,o=null;t.endpointPath?(o="browseEndpoint",r=i.findMBeanWithProperties(e.jmxDomain,{context:t.contextId,type:"endpoints",name:t.endpointPath})):t.routeId&&(o="routes",r=i.findMBeanWithProperties(e.jmxDomain,{context:t.contextId,type:"routes",name:t.routeId}));var a=r?r.key:null;a&&o&&(n="#/camel/"+o+"?tab=camel&nid="+a)}return n}function h(e){return e?Core.trimQuotes(e):e}t.workspace=i,null!=n&&(t.contextId=n.contextId,t.endpointPath=n.endpointPath,t.endpointName=h(t.endpointPath),t.routeId=n.routeId),t.treeViewLink=p();var f=t.endpointPath?"endpoints":"routes",g={endpoints:"Camel Endpoint",routes:"Camel Route"};t.breadcrumbs=[{name:t.contextId,items:o(),tooltip:"Camel Context"},{name:f,items:a(t.contextId),tooltip:"Entity inside a Camel Context"},{name:t.endpointName||h(t.routeId),items:u(t.contextId,s()),tooltip:g[f]}]}])}(Camel||(Camel={}));var Camel;!function(e){e.BrowseEndpointController=e._module.controller("Camel.BrowseEndpointController",["$scope","$routeParams","workspace","jolokia",function(t,n,i,r){function o(){}function a(){t.messageDialog&&t.messageDialog.close(),t.gridOptions.selectedItems.splice(0),Core.notification("success",t.message),setTimeout(s,50)}function s(){var n=null;if(t.contextId&&t.endpointPath){var o=i.findMBeanWithProperties(e.jmxDomain,{context:t.contextId,type:"endpoints",name:t.endpointPath});o&&(n=o.objectName)}if(n||(n=i.getSelectedMBeanName()),n){e.log.info("MBean: "+n);var a=Core.onSuccess(l);r.execute(n,"browseAllMessagesAsXml(java.lang.Boolean)",!0,a)}}function l(n){var i=[];if(angular.isString(n)){var r=$.parseXML(n),o=$(r).find("message");o.each(function(n,r){var o=e.createMessageFromXml(r);o.openMessageDialog=t.openMessageDialog,i.push(o)})}t.messages=i,Core.$apply(t)}t.workspace=i,t.forwardDialog=new UI.Dialog,t.showMessageDetails=!1,t.mode="text",t.gridOptions=e.createBrowseGridOptions(),t.contextId=n.contextId,t.endpointPath=n.endpointPath,t.isJmxTab=!n.contextId||!n.endpointPath,t.$watch("workspace.selection",function(){t.isJmxTab&&i.moveIfViewInvalid()||s()}),t.openMessageDialog=function(e){ActiveMQ.selectCurrentMessage(e,"id",t),t.row&&(t.mode=CodeEditor.detectTextFormat(t.row.body),t.showMessageDetails=!0)},ActiveMQ.decorate(t),t.forwardMessagesAndCloseForwardDialog=function(){var n=e.getSelectionCamelContextMBean(i),s=t.gridOptions.selectedItems,l=t.endpointUri;n&&l&&s&&s.length&&(r.execute(n,"createEndpoint(java.lang.String)",l,Core.onSuccess(o)),t.message="Forwarded "+Core.maybePlural(s.length,"message to "+l),angular.forEach(s,function(e,t){var i=t+1<s.length?o:a,u=e.body,c=e.headers;r.execute(n,"sendBodyAndHeaders(java.lang.String, java.lang.Object, java.util.Map)",l,u,c,Core.onSuccess(i))})),t.forwardDialog.close()},t.endpointUris=function(){var t=e.getSelectionCamelContextEndpoints(i);return t?t.children.map(function(e){return e.title}):[]},t.refresh=s}])}(Camel||(Camel={}));var Camel;!function(e){e.camelHeaderSchema={definitions:{headers:{properties:{CamelAuthentication:{type:"java.lang.String"},CamelAuthenticationFailurePolicyId:{type:"java.lang.String"},CamelAcceptContentType:{type:"java.lang.String"},CamelAggregatedSize:{type:"java.lang.String"},CamelAggregatedTimeout:{type:"java.lang.String"},CamelAggregatedCompletedBy:{type:"java.lang.String"},CamelAggregatedCorrelationKey:{type:"java.lang.String"},CamelAggregationStrategy:{type:"java.lang.String"},CamelAggregationCompleteAllGroups:{type:"java.lang.String"},CamelAggregationCompleteAllGroupsInclusive:{type:"java.lang.String"},CamelAsyncWait:{type:"java.lang.String"},CamelBatchIndex:{type:"java.lang.String"},CamelBatchSize:{type:"java.lang.String"},CamelBatchComplete:{type:"java.lang.String"},CamelBeanMethodName:{type:"java.lang.String"},CamelBeanMultiParameterArray:{type:"java.lang.String"},CamelBinding:{type:"java.lang.String"},breadcrumbId:{type:"java.lang.String"},CamelCharsetName:{type:"java.lang.String"},CamelCreatedTimestamp:{type:"java.lang.String"},"Content-Encoding":{type:"java.lang.String"},"Content-Length":{type:"java.lang.String"},"Content-Type":{type:"java.lang.String"},CamelCorrelationId:{type:"java.lang.String"},CamelDataSetIndex:{type:"java.lang.String"},"org.apache.camel.default.charset":{type:"java.lang.String"},CamelDestinationOverrideUrl:{type:"java.lang.String"},CamelDisableHttpStreamCache:{type:"java.lang.String"},CamelDuplicateMessage:{type:"java.lang.String"},CamelExceptionCaught:{type:"java.lang.String"},CamelExceptionHandled:{type:"java.lang.String"},CamelEvaluateExpressionResult:{type:"java.lang.String"},CamelErrorHandlerHandled:{type:"java.lang.String"},CamelExternalRedelivered:{type:"java.lang.String"},CamelFailureHandled:{type:"java.lang.String"},CamelFailureEndpoint:{type:"java.lang.String"},CamelFailureRouteId:{type:"java.lang.String"},CamelFilterNonXmlChars:{type:"java.lang.String"},CamelFileLocalWorkPath:{type:"java.lang.String"},CamelFileName:{type:"java.lang.String"},CamelFileNameOnly:{type:"java.lang.String"},CamelFileNameProduced:{type:"java.lang.String"},CamelFileNameConsumed:{type:"java.lang.String"},CamelFilePath:{type:"java.lang.String"},CamelFileParent:{type:"java.lang.String"},CamelFileLastModified:{type:"java.lang.String"},CamelFileLength:{type:"java.lang.String"},CamelFilterMatched:{type:"java.lang.String"},CamelFileLockFileAcquired:{type:"java.lang.String"},CamelFileLockFileName:{type:"java.lang.String"},CamelGroupedExchange:{type:"java.lang.String"},CamelHttpBaseUri:{type:"java.lang.String"},CamelHttpCharacterEncoding:{type:"java.lang.String"},CamelHttpMethod:{type:"java.lang.String"},CamelHttpPath:{type:"java.lang.String"},CamelHttpProtocolVersion:{type:"java.lang.String"},CamelHttpQuery:{type:"java.lang.String"},CamelHttpResponseCode:{type:"java.lang.String"},CamelHttpUri:{type:"java.lang.String"},CamelHttpUrl:{type:"java.lang.String"},CamelHttpChunked:{type:"java.lang.String"},CamelHttpServletRequest:{type:"java.lang.String"},CamelHttpServletResponse:{type:"java.lang.String"},CamelInterceptedEndpoint:{type:"java.lang.String"},CamelInterceptSendToEndpointWhenMatched:{type:"java.lang.String"},CamelLanguageScript:{type:"java.lang.String"},CamelLogDebugBodyMaxChars:{type:"java.lang.String"},CamelLogDebugStreams:{type:"java.lang.String"},CamelLoopIndex:{type:"java.lang.String"},CamelLoopSize:{type:"java.lang.String"},CamelMaximumCachePoolSize:{type:"java.lang.String"},CamelMaximumEndpointCacheSize:{type:"java.lang.String"},CamelMessageHistory:{type:"java.lang.String"},CamelMulticastIndex:{type:"java.lang.String"},CamelMulticastComplete:{type:"java.lang.String"},CamelNotifyEvent:{type:"java.lang.String"},CamelOnCompletion:{type:"java.lang.String"},CamelOverruleFileName:{type:"java.lang.String"},CamelParentUnitOfWork:{type:"java.lang.String"},CamelRecipientListEndpoint:{type:"java.lang.String"},CamelReceivedTimestamp:{type:"java.lang.String"},CamelRedelivered:{type:"java.lang.String"},CamelRedeliveryCounter:{type:"java.lang.String"},CamelRedeliveryMaxCounter:{type:"java.lang.String"},CamelRedeliveryExhausted:{type:"java.lang.String"},CamelRedeliveryDelay:{type:"java.lang.String"},CamelRollbackOnly:{type:"java.lang.String"},CamelRollbackOnlyLast:{type:"java.lang.String"},CamelRouteStop:{type:"java.lang.String"},CamelSoapAction:{type:"java.lang.String"},CamelSkipGzipEncoding:{type:"java.lang.String"},CamelSlipEndpoint:{type:"java.lang.String"},CamelSplitIndex:{type:"java.lang.String"},CamelSplitComplete:{type:"java.lang.String"},CamelSplitSize:{type:"java.lang.String"},CamelTimerCounter:{type:"java.lang.String"},CamelTimerFiredTime:{type:"java.lang.String"},CamelTimerName:{type:"java.lang.String"},CamelTimerPeriod:{type:"java.lang.String"},CamelTimerTime:{type:"java.lang.String"},CamelToEndpoint:{type:"java.lang.String"},CamelTraceEvent:{type:"java.lang.String"},CamelTraceEventNodeId:{type:"java.lang.String"},CamelTraceEventTimestamp:{type:"java.lang.String"},CamelTraceEventExchange:{type:"java.lang.String"},"Transfer-Encoding":{type:"java.lang.String"},CamelUnitOfWorkExhausted:{type:"java.lang.String"},CamelUnitOfWorkProcessSync:{type:"java.lang.String"},CamelXsltFileName:{type:"java.lang.String"}}}}}}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.DebugRouteController",["$scope","$element","workspace","jolokia","localStorage","documentBase",function(t,n,i,r,o,a){function s(){var t=g();if(t){var n=x();e.highlightSelectedNode(n,t)}else e.highlightSelectedNode(n,null)}function l(){t.debugging=!1;var n=e.getSelectionCamelDebugMBean(i);n&&(t.debugging=r.getAttribute(n,"Enabled",Core.onSuccess(null)),t.debugging?(r.execute(n,"getBreakpoints",Core.onSuccess(v)),t.graphView="plugins/camel/html/routes.html",Core.register(r,t,{type:"exec",mbean:n,operation:"getDebugCounter"},Core.onSuccess(u))):t.graphView=null)}function u(e){var n=e.value;n&&n!==t.breakpointCounter&&(t.breakpointCounter=n,c())}function c(){var t=e.getSelectionCamelDebugMBean(i);t&&(console.log("getting suspended breakpoints!"),r.execute(t,"getSuspendedBreakpointNodeIds",Core.onSuccess(d)))}function d(n){var o=e.getSelectionCamelDebugMBean(i);t.suspendedBreakpoints=n,t.stopped=n&&n.length;var a=g();o&&a&&(r.execute(o,"dumpTracedMessagesAsXml",a,Core.onSuccess(p)),t.selectedDiagramNodeId=a)}function p(n,i){if(T.debug("onMessage -> "+n),t.messages=[],n){var r=n;if(angular.isString(r)){var o=$.parseXML(r),a=$(o).find("fabricTracerEventMessage");a&&a.length||(a=$(o).find("backlogTracerEventMessage")),a.each(function(n,i){var r=e.createMessageFromXml(i),o=$(i).find("toNode").text();o&&(r.toNode=o),r.openMessageDialog=t.openMessageDialog,t.messages.push(r)})}}else T.warn("WARNING: dumpTracedMessagesAsXml() returned no results!");h(),k(),s(),T.debug("has messages "+t.messages.length+" selected row "+t.row+" index "+t.rowIndex),Core.$apply(t)}function h(){if(t.messages.length>0){t.row=t.messages[0];var e=t.row.body;t.mode=angular.isString(e)?CodeEditor.detectTextFormat(e):"text","javascript"==t.mode&&(t.mode="text")}else t.row={headers:{},body:"",bodyType:""},t.mode="text"}function f(){t.messages=[],t.suspendedBreakpoints=[],t.stopped=!1,h(),k(),s(),Core.$apply(t)}function g(){var e=null,n=t.suspendedBreakpoints;return n&&n.length&&(e=n[0],n.length>1&&m(t.selectedDiagramNodeId)&&(e=t.selectedDiagramNodeId)),e}function m(e){return w(t.suspendedBreakpoints,e)}function v(e){t.breakpoints=e,b();var n=x();n.length&&k(n),Core.$apply(t)}function y(e){return w(t.breakpoints,e)}function b(){t.hasBreakpoint=y(t.selectedDiagramNodeId)}function w(e,t){return t&&e&&e.indexOf(t)!==-1}function x(){var e=d3.select("svg");return e.selectAll("g .node")}function k(e){void 0===e&&(e=x()),e.each(function(e){var t=e.cid,n=d3.select(this),i=n.selectAll("image.breakpoint"),r=m(t),o=y(t);if(o||r){var a=r?E:_;i.length&&i[0].length?i.attr("xlink:href",function(e){return a}):n.append("image").attr("xlink:href",function(e){return a}).attr("class","breakpoint").attr("x",-12).attr("y",-20).attr("height",24).attr("width",24)}else i.remove()})}function C(e){l(),Core.$apply(t)}function S(t){var n=e.getSelectionCamelDebugMBean(i);if(n){var a=t?"enableDebugger":"disableDebugger",s=e.maximumTraceOrDebugBodyLength(o),l=e.traceOrDebugIncludeStreams(o);r.setAttribute(n,"BodyMaxChars",s),r.setAttribute(n,"BodyIncludeStreams",l),r.setAttribute(n,"BodyIncludeFiles",l),r.execute(n,a,Core.onSuccess(C))}}var T=Logger.get("CamelDebugger");t.debugging=!1,t.stopped=!1,t.ignoreRouteXmlNode=!0,t.messages=[],t.mode="text",t.showMessageDetails=!0,t.startDebugging=function(){T.info("Start debugging"),S(!0)},t.stopDebugging=function(){T.info("Stop debugging"),S(!1)},t.$on("$routeChangeSuccess",function(e,t,n){setTimeout(l,50)}),t.$on("camel.diagram.selectedNodeId",function(e,n){t.selectedDiagramNodeId=n,b()}),t.$on("camel.diagram.layoutComplete",function(e,i){k(),$(n).find("g.node").dblclick(function(e){var n=this.getAttribute("data-cid");t.toggleBreakpoint(n)})}),t.$watch("workspace.selection",function(){i.moveIfViewInvalid()||l()}),t.toggleBreakpoint=function(t){T.info("Toggle breakpoint");var n=e.getSelectionCamelDebugMBean(i);if(n&&t){var o=y(t)?"removeBreakpoint":"addBreakpoint";r.execute(n,o,t,Core.onSuccess(C))}},t.addBreakpoint=function(){T.info("Add breakpoint");var n=e.getSelectionCamelDebugMBean(i);n&&t.selectedDiagramNodeId&&r.execute(n,"addBreakpoint",t.selectedDiagramNodeId,Core.onSuccess(C))},t.removeBreakpoint=function(){T.info("Remove breakpoint");var n=e.getSelectionCamelDebugMBean(i);n&&t.selectedDiagramNodeId&&r.execute(n,"removeBreakpoint",t.selectedDiagramNodeId,Core.onSuccess(C))},t.resume=function(){T.info("Resume");var t=e.getSelectionCamelDebugMBean(i);t&&r.execute(t,"resumeAll",Core.onSuccess(f))},t.suspend=function(){T.info("Suspend");var t=e.getSelectionCamelDebugMBean(i);t&&r.execute(t,"suspendAll",Core.onSuccess(f))},t.step=function(){T.info("Step");var t=e.getSelectionCamelDebugMBean(i),n=g();
|
|
25808
|
|
-t&&n&&r.execute(t,"stepBreakpoint(java.lang.String)",n,Core.onSuccess(f))};var _=UrlHelpers.join(a,"/img/icons/camel/breakpoint.gif"),E=UrlHelpers.join(a,"/img/icons/camel/breakpoint-suspended.gif")}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.EndpointController",["$scope","$location","localStorage","workspace","jolokia",function(t,n,i,r,o){function a(){t.endpointName="",t.workspace.operationCounter+=1,Core.$apply(t),Core.notification("success",t.message)}function s(){if(r.selection){var e=Core.pathGet(r,["selection","parent"]);e&&t.workspace.updateSelectionNode(e)}t.workspace.operationCounter+=1,Core.$apply(t),Core.notification("success",t.message)}e.initEndpointChooserScope(t,n,i,r,o),t.workspace=r,t.message="",t.createEndpoint=function(n){var i=r.jolokia;if(i){var o=e.getSelectionCamelContextMBean(r);if(o){t.message="Creating endpoint "+n;var s="createEndpoint(java.lang.String)";i.execute(o,s,n,Core.onSuccess(a))}else Core.notification("error","Could not find the CamelContext MBean!")}},t.createEndpointFromData=function(){if(t.selectedComponentName&&t.endpointPath){var e=t.selectedComponentName+"://"+t.endpointPath;console.log("Have endpoint data "+JSON.stringify(t.endpointParameters));var n="";angular.forEach(t.endpointParameters,function(e,t){var i=n?"&":"";n+=i+t+"="+e}),n&&(e+="?"+n),t.createEndpoint(e)}},t.deleteEndpoint=function(){var e=r.jolokia,n=r.selection,i=n.entries;if(n&&e&&i){var o=n.domain,a=i.BrokerName,l=i.Destination,u="Topic"!==i.Type;if(o&&a){var c=""+o+":BrokerName="+a+",Type=Broker";t.message="Deleting "+(u?"queue":"topic")+" "+l;var d="removeEndpoint(java.lang.String)";e.execute(c,d,l,Core.onSuccess(s))}}}}])}(Camel||(Camel={}));var Camel;!function(e){function t(t){var n=e.getEndpointConfig(t,null),r=Core.pathGet(n,["icon"]);if(!r){var o=i(t);r=Core.pathGet(o,["endpointIcon"])}return r=r||e.endpointIcon}function n(t,n){var i=e.endpointConfigurations[t];return i||(i={},e.endpointConfigurations[t]=i),i.label||(i.label=t),i.icon||(i.icon=Core.pathGet(n,["endpointIcon"])||e.endpointIcon),i.category||(i.category=n),i}function i(t){return e.endpointToCategory[t]||e.endpointCategories.core}function r(){var t=e._apacheCamelModel,n=t.definitions;return n&&angular.forEach(a,function(e,t){var i=n[t];i&&(i.tabs||(i.tabs=e))}),t}function o(t,n,i,r,o){function a(n){t.componentNames=n,e.log.info("onComponents: "+n),t.hasComponentNames=!!t.componentNames,Core.$apply(t)}function s(e){if(e)try{var n=JSON.parse(e),i=t.selectedComponentName;l(i,n),t.endpointSchema=n,t.schema.definitions[i]=n,t.loadedEndpointSchema=i,Core.$apply(t)}catch(r){console.log("Failed to parse JSON "+r),console.log("JSON: "+e)}}function l(t,n){console.log("======== configuring schema for "+t);var i=e.endpointForms[t];i&&n&&i.tabs&&(n.tabs=i.tabs)}function u(){var o=t.profileWorkspace;if(!o){var a=t.jolokia;a&&(o=Core.createRemoteWorkspace(a,n,i),t.profileWorkspace=o)}o||(e.log.info("No profileWorkspace found so defaulting it to workspace for now"),o=r);var s,l,u=t.selectedComponentName;angular.isDefined(t.camelSelectionDetails)&&(s=t.camelSelectionDetails.selectedCamelContextId,l=t.camelSelectionDetails.selectedRouteId),console.log("==== componentName "+u+" selectedCamelContextId: "+s+" selectedRouteId: "+l);var c=e.camelContextMBeansById(o);if(s){var d=Core.pathGet(c,[s,"mbean"]);if(d)return d}if(l){var p=e.camelContextMBeansByRouteId(o),d=Core.pathGet(p,[l,"mbean"]);if(d)return d}if(u){var p=e.camelContextMBeansByComponentName(o),d=Core.pathGet(p,[u,"mbean"]);if(d)return d}var h=null;return angular.forEach(c,function(e,t){var n=e.mbean;!h&&n&&(h=n)}),h}t.selectedComponentName=null,t.endpointParameters={},t.endpointPath="",t.schema={definitions:{}},t.jolokia=o;var c={silent:!0};t.$watch("workspace.selection",function(){t.loadEndpointNames()}),t.$watch("selectedComponentName",function(){t.selectedComponentName!==t.loadedComponentName&&(t.endpointParameters={},t.loadEndpointSchema(t.selectedComponentName),t.loadedComponentName=t.selectedComponentName)}),t.endpointCompletions=function(e){var n=null,i=u(),r=t.selectedComponentName,o={};return i&&r&&e&&(n=t.jolokia.execute(i,"completeEndpointPath",r,o,e,Core.onSuccess(null,c))),n||[]},t.loadEndpointNames=function(){t.componentNames=null;var e=u();e?t.jolokia.execute(e,"findComponentNames",Core.onSuccess(a,{silent:!0})):console.log("WARNING: No camel context mbean so cannot load component names")},t.loadEndpointSchema=function(e){var n=u();n&&e&&e!==t.loadedEndpointSchema&&(t.selectedComponentName=e,t.jolokia.execute(n,"componentParameterJsonSchema",e,Core.onSuccess(s,c)))}}e.endpointCategories={bigdata:{label:"Big Data",endpoints:["hdfs","hbase","lucene","solr"],endpointIcon:"img/icons/camel/endpointRepository24.png"},database:{label:"Database",endpoints:["couchdb","elasticsearch","hbase","jdbc","jpa","hibernate","mongodb","mybatis","sql"],endpointIcon:"img/icons/camel/endpointRepository24.png"},cloud:{label:"Cloud",endpoints:["aws-cw","aws-ddb","aws-sdb","aws-ses","aws-sns","aws-sqs","aws-s3","gauth","ghhtp","glogin","gtask","jclouds"]},core:{label:"Core",endpoints:["bean","direct","seda"]},messaging:{label:"Messaging",endpoints:["jms","activemq","amqp","cometd","cometds","mqtt","netty","vertx","websocket"],endpointIcon:"img/icons/camel/endpointQueue24.png"},mobile:{label:"Mobile",endpoints:["apns"]},sass:{label:"SaaS",endpoints:["salesforce","sap-netweaver"]},social:{label:"Social",endpoints:["atom","facebook","irc","ircs","rss","smpp","twitter","weather"]},storage:{label:"Storage",endpointIcon:"img/icons/camel/endpointFolder24.png",endpoints:["file","ftp","sftp","scp","jsch"]},template:{label:"Templating",endpoints:["freemarker","velocity","xquery","xslt","scalate","string-template"]}},e.endpointToCategory={},e.endpointIcon="img/icons/camel/endpoint24.png",e.endpointConfigurations={drools:{icon:"img/icons/camel/endpointQueue24.png"},quartz:{icon:"img/icons/camel/endpointTimer24.png"},facebook:{icon:"img/icons/camel/endpoints/facebook24.jpg"},salesforce:{icon:"img/icons/camel/endpoints/salesForce24.png"},sap:{icon:"img/icons/camel/endpoints/SAPe24.png"},"sap-netweaver":{icon:"img/icons/camel/endpoints/SAPNetweaver24.jpg"},timer:{icon:"img/icons/camel/endpointTimer24.png"},twitter:{icon:"img/icons/camel/endpoints/twitter24.png"},weather:{icon:"img/icons/camel/endpoints/weather24.jpg"}},e.endpointForms={file:{tabs:{Options:["*"]}},activemq:{tabs:{Connection:["clientId","transacted","transactedInOut","transactionName","transactionTimeout"],Producer:["timeToLive","priority","allowNullBody","pubSubNoLocal","preserveMessageQos"],Consumer:["concurrentConsumers","acknowledgementModeName","selector","receiveTimeout"],Reply:["replyToDestination","replyToDeliveryPersistent","replyToCacheLevelName","replyToDestinationSelectorName"],Options:["*"]}}},e.endpointForms.jms=e.endpointForms.activemq,angular.forEach(e.endpointCategories,function(t,n){t.id=n,angular.forEach(t.endpoints,function(n){e.endpointToCategory[n]=t})});var a={route:{Overview:["id","description"],Advanced:["*"]}};e.getEndpointIcon=t,e.getEndpointConfig=n,e.getEndpointCategory=i,e.getConfiguredCamelModel=r,e.initEndpointChooserScope=o}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.EndpointRuntimeRegistryController",["$scope","$location","workspace","jolokia",function(t,n,i,r){function o(e){var n=e.value;if(n){var i=[];for(var r in n){var o=n[r];i.push({url:o.url,routeId:o.routeId,direction:o.direction,"static":o["static"],dynamic:o.dynamic,hits:o.hits})}i=_.sortBy(i,"url"),t.data=i,t.selectedMBean=e.request.mbean}else t.selectedMBean="true";Core.$apply(t)}function a(){console.log("Loading EndpointRuntimeRegistry data...");var t=e.getSelectionCamelEndpointRuntimeRegistry(i);t&&r.request({type:"exec",mbean:t,operation:"endpointStatistics"},Core.onSuccess(o))}t.data=[],t.selectedMBean=null,t.mbeanAttributes={};var s=[{field:"url",displayName:"Url",cellFilter:null,width:"*",resizable:!0},{field:"routeId",displayName:"Route Id",cellFilter:null,width:"*",resizable:!0},{field:"direction",displayName:"Direction",cellFilter:null,width:"*",resizable:!0},{field:"static",displayName:"Static",cellFilter:null,width:"*",resizable:!0},{field:"dynamic",displayName:"Dynamic",cellFilter:null,width:"*",resizable:!0},{field:"hits",displayName:"Hits",cellFilter:null,width:"*",resizable:!0}];t.gridOptions={data:"data",displayFooter:!0,displaySelectionCheckbox:!1,canSelectRows:!1,enableSorting:!0,columnDefs:s,selectedItems:[],filterOptions:{filterText:""},primaryKeyFn:function(e){return e.routeId}},t.renderIcon=function(t){return e.iconClass(t)},a()}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.InflightController",["$scope","$location","workspace","jolokia",function(t,n,i,r){function o(e){var n=e.value;if(n){var i=[];for(var r in n){var o=n[r];i.push({exchangeId:o.exchangeId,routeId:o.routeId,nodeId:o.nodeId,duration:o.duration,elapsed:o.elapsed})}i=_.sortBy(i,"exchangeId"),t.data=i,t.selectedMBean=e.request.mbean}else t.data=[];t.initDone="true",Core.$apply(t)}function a(){console.log("Loading inflight data...");var n=e.getSelectedRouteId(i);null!=n&&(t.gridOptions.filterOptions.filterText=n);var a=e.getSelectionCamelInflightRepository(i);if(a){var s={type:"exec",mbean:a,operation:"browse()"};Core.scopeStoreJolokiaHandle(t,r,r.register(o,s))}}t.data=[],t.initDone=!1,t.mbeanAttributes={};var s=[{field:"exchangeId",displayName:"Exchange Id",cellFilter:null,width:"*",resizable:!0},{field:"routeId",displayName:"Route Id",cellFilter:null,width:"*",resizable:!0},{field:"nodeId",displayName:"Node Id",cellFilter:null,width:"*",resizable:!0},{field:"duration",displayName:"Duration (ms)",cellFilter:null,width:"*",resizable:!0},{field:"elapsed",displayName:"Elapsed (ms)",cellFilter:null,width:"*",resizable:!0}];t.gridOptions={data:"data",displayFooter:!0,displaySelectionCheckbox:!1,canSelectRows:!1,enableSorting:!0,columnDefs:s,selectedItems:[],filterOptions:{filterText:""},primaryKeyFn:function(e){return e.exchangeId}},t.renderIcon=function(t){return e.iconClass(t)},a()}])}(Camel||(Camel={}));var Camel;!function(e){e.jmsHeaderSchema={definitions:{headers:{properties:{JMSCorrelationID:{type:"java.lang.String"},JMSDeliveryMode:{type:"string","enum":["PERSISTENT","NON_PERSISTENT"]},JMSDestination:{type:"javax.jms.Destination"},JMSExpiration:{type:"long"},JMSPriority:{type:"int"},JMSReplyTo:{type:"javax.jms.Destination"},JMSType:{type:"java.lang.String"},JMSXGroupId:{type:"java.lang.String"},AMQ_SCHEDULED_CRON:{type:"java.lang.String"},AMQ_SCHEDULED_DELAY:{type:"java.lang.String"},AMQ_SCHEDULED_PERIOD:{type:"java.lang.String"},AMQ_SCHEDULED_REPEAT:{type:"java.lang.String"}}},"javax.jms.Destination":{type:"java.lang.String"}}}}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.PreferencesController",["$scope","localStorage",function(t,n){var i={properties:{camelHideOptionDocumentation:{type:"boolean","default":e.defaultHideOptionDocumentation,description:"Whether to hide documentation in the properties view and Camel route editor"},camelHideOptionDefaultValue:{type:"boolean","default":e.defaultHideOptionDefaultValue,description:"Whether to hide options that are using a default value in the properties view"},camelHideOptionUnusedValue:{type:"boolean","default":e.defaultHideOptionUnusedValue,description:"Whether to hide unused/empty options in the properties view"},camelTraceOrDebugIncludeStreams:{type:"boolean","default":e.defaultCamelTraceOrDebugIncludeStreams,description:"Whether to include stream based message body when using the tracer and debugger"},camelMaximumTraceOrDebugBodyLength:{type:"number","default":e.defaultCamelMaximumTraceOrDebugBodyLength,description:"The maximum length of the body before its clipped when using the tracer and debugger"},camelMaximumLabelWidth:{type:"number",description:"The maximum length of a label in Camel diagrams before it is clipped"},camelIgnoreIdForLabel:{type:"boolean","default":!1,description:"If enabled then we will ignore the ID value when viewing a pattern in a Camel diagram; otherwise we will use the ID value as the label (the tooltip will show the actual detail)"},camelShowInflightCounter:{type:"boolean","default":!0,description:"Whether to show inflight counter in route diagram"},camelRouteMetricMaxSeconds:{type:"number",min:"1",max:"100",description:"The maximum value in seconds used by the route metrics duration and histogram charts"}}};t.entity=t,t.config=i,Core.initPreferenceScope(t,n,{camelIgnoreIdForLabel:{value:!1,converter:Core.parseBooleanValue},camelShowInflightCounter:{value:!0,converter:Core.parseBooleanValue},camelMaximumLabelWidth:{value:e.defaultMaximumLabelWidth,converter:parseInt},camelMaximumTraceOrDebugBodyLength:{value:e.defaultCamelMaximumTraceOrDebugBodyLength,converter:parseInt},camelTraceOrDebugIncludeStreams:{value:e.defaultCamelTraceOrDebugIncludeStreams,converter:Core.parseBooleanValue},camelRouteMetricMaxSeconds:{value:e.defaultCamelRouteMetricMaxSeconds,converter:parseInt},camelHideOptionDocumentation:{value:e.defaultHideOptionDocumentation,converter:Core.parseBooleanValue},camelHideOptionDefaultValue:{value:e.defaultHideOptionDefaultValue,converter:Core.parseBooleanValue},camelHideOptionUnusedValue:{value:e.defaultHideOptionUnusedValue,converter:Core.parseBooleanValue}})}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.ProfileRouteController",["$scope","$location","workspace","jolokia",function(t,n,i,r){function o(e){var n=[],i=e.value;if(angular.isString(i)){var r=$.parseXML(i),o=$(r).find("routeStat");o.each(function(e,t){var i={id:{},count:{},last:{},delta:{},mean:{},min:{},max:{},total:{},self:{}};i.id=t.getAttribute("id");var r=0;r+=+t.getAttribute("exchangesCompleted"),r+=+t.getAttribute("exchangesFailed"),i.count=r,i.last=t.getAttribute("lastProcessingTime");var o=t.getAttribute("deltaProcessingTime");o?i.delta=o:i.delta=0,i.mean=t.getAttribute("meanProcessingTime"),i.min=t.getAttribute("minProcessingTime"),i.max=t.getAttribute("maxProcessingTime"),i.total=t.getAttribute("totalProcessingTime"),i.self=t.getAttribute("selfProcessingTime"),n.push(i)});var a=$(r).find("processorStat");a.each(function(e,t){var i={id:{},count:{},last:{},delta:{},mean:{},min:{},max:{},total:{},self:{}};i.id=t.getAttribute("id");var r=0;r+=+t.getAttribute("exchangesCompleted"),r+=+t.getAttribute("exchangesFailed"),i.count=r,i.last=t.getAttribute("lastProcessingTime");var o=t.getAttribute("deltaProcessingTime");o?i.delta=o:i.delta=0,i.mean=t.getAttribute("meanProcessingTime"),i.min=t.getAttribute("minProcessingTime"),i.max=t.getAttribute("maxProcessingTime");var a=t.getAttribute("accumulatedProcessingTime");a?i.total=a:i.total="0",i.self=t.getAttribute("totalProcessingTime"),n.push(i)})}t.data=n,t.initDone=!0,Core.$apply(t)}function a(){console.log("Loading Camel route profile data...");var n=e.getSelectedRouteId(i),a=e.getSelectionRouteMBean(i,n);if(a){var s={type:"exec",mbean:a,operation:"dumpRouteStatsAsXml(boolean,boolean)",arguments:[!1,!0]};Core.scopeStoreJolokiaHandle(t,r,r.register(o,s))}}t.initDone=!1,t.data=[];var s=[{field:"id",displayName:"Id",cellFilter:null,width:"**",resizable:!0},{field:"count",displayName:"Count",cellFilter:null,width:"*",resizable:!0},{field:"last",displayName:"Last",cellFilter:null,width:"*",resizable:!0},{field:"delta",displayName:"Delta",cellFilter:null,width:"*",resizable:!0},{field:"mean",displayName:"Mean",cellFilter:null,width:"*",resizable:!0},{field:"min",displayName:"Min",cellFilter:null,width:"*",resizable:!0},{field:"max",displayName:"Max",cellFilter:null,width:"*",resizable:!0},{field:"total",displayName:"Total",cellFilter:null,width:"*",resizable:!0},{field:"self",displayName:"Self",cellFilter:null,width:"*",resizable:!0}];t.rowIcon=function(e){var n=t.icons[e];return n?n.img+" "+e:e},t.gridOptions={data:"data",selectedItems:[],displayFooter:!0,displaySelectionCheckbox:!1,canSelectRows:!1,enableSorting:!1,columnDefs:s,filterOptions:{filterText:""}},a()}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.PropertiesController",["$scope","workspace","localStorage","jolokia",function(t,n,i,r){function o(e){var n=Core.pathGet(t.model,["properties",e,"defaultValue"]);if(angular.isDefined(n)){var i=Core.pathGet(t.nodeData,e);if(angular.isDefined(i)){var r=i.toString();return 0===r.localeCompare(n)}}return!1}function a(e){var n=Core.pathGet(t.nodeData,e);return!angular.isUndefined(n)&&!Core.isBlank(n)&&(!angular.isString(n)||!Core.isBlank(n))}function s(){var i=e.getSelectedRouteNode(n);if(t.nodeData=e.getRouteNodeJSON(i),i&&(t.model=e.getCamelSchema(i.nodeName),t.model)){l.enabledFor(Logger.DEBUG)&&(l.debug("Properties - data: "+JSON.stringify(t.nodeData,null," ")),l.debug("Properties - schema: "+JSON.stringify(t.model,null," ")));var r=[];t.model.group&&(r=t.model.group.split(",")),t.labels=r,t.nodeData=e.getRouteNodeJSON(i),t.icon=e.getRouteNodeIcon(i),t.viewTemplate="plugins/camel/html/nodePropertiesView.html",Core.$apply(t)}}var l=Logger.get("Camel");t.hideHelp=e.hideOptionDocumentation(i),t.hideUnused=e.hideOptionUnusedValue(i),t.hideDefault=e.hideOptionDefaultValue(i),t.viewTemplate=null,t.schema=e._apacheCamelModel,t.model=null,t.labels=[],t.nodeData=null,t.icon=null,t.$watch("hideHelp",function(e,t){e!==t&&s()}),t.$watch("hideUnused",function(e,t){e!==t&&s()}),t.$watch("hideDefault",function(e,t){e!==t&&s()}),t.$on("$routeChangeSuccess",function(e,t,n){setTimeout(s,50)}),t.$watch("workspace.selection",function(){n.moveIfViewInvalid()||s()}),t.showEntity=function(e){return(!t.hideDefault||!o(e))&&!(t.hideUnused&&!a(e))}}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.PropertiesComponentController",["$scope","workspace","localStorage","jolokia","documentBase",function(t,n,i,r,o){function a(e){var n=Core.pathGet(t.model,["properties",e,"defaultValue"]);if(angular.isDefined(n)){var i=Core.pathGet(t.nodeData,e);if(angular.isDefined(i)){var r=i.toString();return 0===r.localeCompare(n)}}return!1}function s(e){var n=Core.pathGet(t.nodeData,e);return!angular.isUndefined(n)&&!Core.isBlank(n)&&(!angular.isString(n)||!Core.isBlank(n))}function l(){var i=e.getSelectionCamelContextMBean(n),o=null;if(o||(o=n.getSelectedMBeanName()),o&&i){var a=r.request({type:"read",mbean:o,attribute:["ComponentName"]}),s=a.value.ComponentName;if(s){t.componentName=s,c.info("Calling explainComponentJson for name: "+s);var l={type:"exec",mbean:i,operation:"explainComponentJson(java.lang.String,boolean)",arguments:[s,!0]};r.request(l,Core.onSuccess(u))}}}function u(e){c.debug("Populate data "+e);var n=e.value;if(n){t.model=JSON.parse(n),t.model.title=t.componentName,t.model.description=t.model.component.description,t.icon=UrlHelpers.join(o,"/img/icons/camel/endpoint24.png"),t.nodeData={},t.model.properties=t.model.componentProperties,angular.forEach(t.model.componentProperties,function(e,n){var i=e.value||e.defaultValue;angular.isDefined(i)&&null!==i&&(t.nodeData[n]=i),delete e.label});var i=[];t.model.component.label&&(i=t.model.component.label.split(",")),t.labels=i,t.viewTemplate="plugins/camel/html/nodePropertiesView.html",Core.$apply(t)}}var c=Logger.get("Camel");t.hideHelp=e.hideOptionDocumentation(i),t.hideUnused=e.hideOptionUnusedValue(i),t.hideDefault=e.hideOptionDefaultValue(i),t.viewTemplate=null,t.schema=null,t.model=null,t.labels=[],t.nodeData=null,t.icon=null,t.componentName=null,t.$watch("hideHelp",function(e,t){e!==t&&l()}),t.$watch("hideUnused",function(e,t){e!==t&&l()}),t.$watch("hideDefault",function(e,t){e!==t&&l()}),t.$on("$routeChangeSuccess",function(e,t,n){setTimeout(l,50)}),t.$watch("workspace.selection",function(){n.moveIfViewInvalid()||l()}),t.showEntity=function(e){return(!t.hideDefault||!a(e))&&!(t.hideUnused&&!s(e))}}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.PropertiesDataFormatController",["$scope","workspace","localStorage","jolokia","documentBase",function(t,n,i,r,o){function a(e){var n=Core.pathGet(t.model,["properties",e,"defaultValue"]);if(angular.isDefined(n)){var i=Core.pathGet(t.nodeData,e);if(angular.isDefined(i)){var r=i.toString();return 0===r.localeCompare(n)}}return!1}function s(e){var n=Core.pathGet(t.nodeData,e);return!angular.isUndefined(n)&&!Core.isBlank(n)&&(!angular.isString(n)||!Core.isBlank(n))}function l(){var e=null;if(e||(e=n.getSelectedMBeanName()),e){c.info("Calling informationJson");var t={type:"exec",mbean:e,operation:"informationJson"};r.request(t,Core.onSuccess(u))}}function u(e){c.debug("Populate data "+e);var n=e.value;if(n){t.model=JSON.parse(n),t.model.title=t.model.dataformat.title+" ("+t.model.dataformat.name+")",t.model.description=t.model.dataformat.description,t.icon=UrlHelpers.join(o,"/img/icons/camel/marshal24.png"),t.nodeData={},angular.forEach(t.model.properties,function(e,n){var i=e.value||e.defaultValue;angular.isDefined(i)&&null!==i&&(t.nodeData[n]=i),delete e.label}),delete t.model.properties.id;var i=[];t.model.dataformat.label&&(i=t.model.dataformat.label.split(",")),t.labels=i,t.viewTemplate="plugins/camel/html/nodePropertiesView.html",Core.$apply(t)}}var c=Logger.get("Camel");t.hideHelp=e.hideOptionDocumentation(i),t.hideUnused=e.hideOptionUnusedValue(i),t.hideDefault=e.hideOptionDefaultValue(i),t.viewTemplate=null,t.schema=null,t.model=null,t.labels=[],t.nodeData=null,t.icon=null,t.dataFormatName=null,t.$watch("hideHelp",function(e,t){e!==t&&l()}),t.$watch("hideUnused",function(e,t){e!==t&&l()}),t.$watch("hideDefault",function(e,t){e!==t&&l()}),t.$on("$routeChangeSuccess",function(e,t,n){setTimeout(l,50)}),t.$watch("workspace.selection",function(){n.moveIfViewInvalid()||l()}),t.showEntity=function(e){return(!t.hideDefault||!a(e))&&!(t.hideUnused&&!s(e))}}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.PropertiesEndpointController",["$scope","workspace","localStorage","jolokia","documentBase",function(t,n,i,r,o){function a(e){var n=Core.pathGet(t.model,["properties",e,"defaultValue"]);if(angular.isDefined(n)){var i=Core.pathGet(t.nodeData,e);if(angular.isDefined(i)){var r=i.toString();return 0===r.localeCompare(n)}}return!1}function s(e){var n=Core.pathGet(t.nodeData,e);return!angular.isUndefined(n)&&!Core.isBlank(n)&&(!angular.isString(n)||!Core.isBlank(n))}function l(){var i=e.getSelectionCamelContextMBean(n),o=null;if(t.contextId&&t.endpointPath){var a=n.findMBeanWithProperties(e.jmxDomain,{context:t.contextId,type:"endpoints",name:t.endpointPath});a&&(o=a.objectName)}if(o||(o=n.getSelectedMBeanName()),o&&i){var s=r.request({type:"read",mbean:o,attribute:["EndpointUri"]}),l=s.value.EndpointUri;if(l){t.endpointUrl=l,c.info("Calling explainEndpointJson for url: "+l);var d={type:"exec",mbean:i,operation:"explainEndpointJson(java.lang.String,boolean)",arguments:[l,!0]};r.request(d,Core.onSuccess(u))}}}function u(e){c.debug("Populate data "+e);var n=e.value;if(n){t.model=JSON.parse(n),t.model.title=t.endpointUrl,t.model.description=t.model.component.description,t.icon=UrlHelpers.join(o,"/img/icons/camel/endpoint24.png"),t.nodeData={},angular.forEach(t.model.properties,function(e,n){var i=e.value||e.defaultValue;angular.isDefined(i)&&null!==i&&(t.nodeData[n]=i),delete e.label});var i=[];t.model.component.label&&(i=t.model.component.label.split(",")),t.labels=i,t.viewTemplate="plugins/camel/html/nodePropertiesView.html",Core.$apply(t)}}var c=Logger.get("Camel");t.hideHelp=e.hideOptionDocumentation(i),t.hideUnused=e.hideOptionUnusedValue(i),t.hideDefault=e.hideOptionDefaultValue(i),t.viewTemplate=null,t.schema=null,t.model=null,t.labels=[],t.nodeData=null,t.icon=null,t.endpointUrl=null,t.$watch("hideHelp",function(e,t){e!==t&&l()}),t.$watch("hideUnused",function(e,t){e!==t&&l()}),t.$watch("hideDefault",function(e,t){e!==t&&l()}),t.$on("$routeChangeSuccess",function(e,t,n){setTimeout(l,50)}),t.$watch("workspace.selection",function(){n.moveIfViewInvalid()||l()}),t.showEntity=function(e){return(!t.hideDefault||!a(e))&&!(t.hideUnused&&!s(e))}}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.RestServiceController",["$scope","$location","workspace","jolokia",function(t,n,i,r){function o(e){var n=e.value;if(n){var i=[];for(var r in n){var o=n[r];for(var a in o){var s=o[a];i.push({url:s.url,baseUrl:s.baseUrl,basePath:s.basePath,uriTemplate:s.uriTemplate,method:s.method,consumes:s.consumes,produces:s.produces,inType:s.inType,outType:s.outType,state:s.state,routeId:s.routeId,description:s.description})}}i=_.sortBy(i,"url"),t.data=i,t.selectedMBean=e.request.mbean}else t.selectedMBean="true";Core.$apply(t)}function a(){console.log("Loading RestRegistry data...");var t=e.getSelectionCamelRestRegistry(i);t&&r.request({type:"exec",mbean:t,operation:"listRestServices"},Core.onSuccess(o))}t.data=[],t.selectedMBean=null,t.mbeanAttributes={};var s=[{field:"url",displayName:"Absolute Url",cellFilter:null,width:"*",resizable:!0},{field:"baseUrl",displayName:"Base Url",cellFilter:null,width:"*",resizable:!0},{field:"basePath",displayName:"Base Path",cellFilter:null,width:"*",resizable:!0},{field:"uriTemplate",displayName:"Uri Template",cellFilter:null,width:"*",resizable:!0},{field:"method",displayName:"Method",cellFilter:null,width:"*",resizable:!0},{field:"consumes",displayName:"Consumes",cellFilter:null,width:"*",resizable:!0},{field:"produces",displayName:"Produces",cellFilter:null,width:"*",resizable:!0},{field:"inType",displayName:"Input Type",cellFilter:null,width:"*",resizable:!0},{field:"outType",displayName:"Output Type",cellFilter:null,width:"*",resizable:!0},{field:"state",displayName:"State",cellFilter:null,width:"*",resizable:!0},{field:"routeId",displayName:"Route Id",cellFilter:null,width:"*",resizable:!0},{field:"description",displayName:"Description",cellFilter:null,width:"*",resizable:!0}];t.gridOptions={data:"data",displayFooter:!0,displaySelectionCheckbox:!1,canSelectRows:!1,enableSorting:!0,columnDefs:s,selectedItems:[],filterOptions:{filterText:""},primaryKeyFn:function(e){return e.routeId}},t.renderIcon=function(t){return e.iconClass(t)},a()}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.RouteMetricsController",["$scope","$location","workspace","jolokia","metricsWatcher",function(t,n,i,r,o){function a(e){var n=e.value;if(n){var i=JSON.parse(n);if(!t.initDone){var r=i.timers,a=0;if(null!=r){for(var s in r){var u=s,c=u.lastIndexOf("."),d=u.substr(0,c),p=u.substr(c+1),h=u.indexOf(":"),f=u.substr(h+1);c=f.lastIndexOf("."),c>0&&(f=f.substr(0,c));var g=(r[s],"timer-"+a);t.metricDivs.push({id:g,routeId:f}),a++,l.info("Added timer: "+g+" ("+d+"."+p+") for route: "+f+" with max seconds: "+t.maxSeconds),o.addTimer(g,d,p,t.maxSeconds,f,"Histogram",1e3*t.maxSeconds)}l.info("Pre-init graphs"),Core.$apply(t)}l.info("Init graphs"),o.initGraphs()}t.initDone=!0,l.debug("Updating graphs: "+i),o.updateGraphs(i)}t.initDone=!0,Core.$apply(t)}function s(){l.info("Loading RouteMetrics data...");var n=e.getSelectedRouteId(i);null!=n&&(t.filterText=n);var o=e.getSelectionCamelRouteMetrics(i);if(o){var s={type:"exec",mbean:o,operation:"dumpStatisticsAsJson"};Core.scopeStoreJolokiaHandle(t,r,r.register(a,s))}else t.initDone=!0,Core.$apply(t)}var l=Logger.get("Camel");t.maxSeconds=e.routeMetricMaxSeconds(localStorage),t.filterText=null,t.initDone=!1,t.metricDivs=[],t.filterByRoute=function(e){l.debug("Filter by route "+e);var n=Core.matchFilterIgnoreCase(e.routeId,t.filterText);return n?"":"display: none;"},t.onResponse=function(e){s()},t.$watch("workspace.tree",function(){setTimeout(s,50)})}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.RouteController",["$scope","$routeParams","$element","$timeout","workspace","$location","jolokia","localStorage",function(t,n,i,r,o,a,s,l){function u(){var n=null;if(!t.ignoreRouteXmlNode&&(n=e.getSelectedRouteNode(o),n||(n=t.nodeXmlNode),n&&"route"!==n.localName)){var i=document.createElement("route");i.appendChild(n.cloneNode(!0)),n=i}if(t.mbean=e.getSelectionCamelContextMBean(o),!t.mbean&&t.contextId&&(t.mbean=e.getCamelContextMBean(o,t.contextId)),n){t.nodes={};var r=[],a=[];t.processorTree=e.camelProcessorMBeansById(o),e.addRouteXmlChildren(t,n,r,a,null,0,0),p(r,a)}else t.mbean?s.request({type:"exec",mbean:t.mbean,operation:"dumpRoutesAsXml()"},Core.onSuccess(y)):m.info("No camel context bean! Selection: "+o.selection)}function c(e){if(e){var t=e.getAttribute("class");return t&&_.endsWith(t,b)}return!1}function d(e,t){var n=!1;if(e){var i=e.getAttribute("class"),r=i&&_.endsWith(i,b);if(r)i=i.substring(0,i.length-b.length);else{if(!t)return n;i+=b,n=!0}e.setAttribute("class",i)}return n}function p(e,n){var r,o=i,l=h(),u=f(),p=o.children("svg")[0],m=a.path();r=_.startsWith(m,"/camel/debugRoute")||_.startsWith(m,"/camel/traceRoute")?null:w,t.graphData=Core.dagreLayoutGraph(e,n,l,u,p,!1,r);var v=o.find("g.node");return v.click(function(){var e=c(this);v.each(function(e,t){d(t,!1)});var n=null;e||(n=this.getAttribute("data-cid"),d(this,!0)),t.$emit("camel.diagram.selectedNodeId",n),Core.$apply(t)}),t.mbean&&Core.register(s,t,{type:"exec",mbean:t.mbean,operation:"dumpRoutesStatsAsXml",arguments:[!0,!0]},Core.onSuccess(g,{silent:!0,error:!1})),t.$emit("camel.diagram.layoutComplete"),l}function h(){var e=i;return e.width()}function f(){var t=i;return e.getCanvasHeight(t)}function g(e){function n(e,n){var i=n.getAttribute("id"),r=n.getAttribute("exchangesCompleted"),o=n.hasAttribute("exchangesInflight")?n.getAttribute("exchangesInflight"):0,a="";if(i&&r){var s=e?t.routeNodes:t.nodes,l=s[i];if(l||angular.forEach(s,function(e,t){l||i!==e.elementId||(l=e)}),l){var u=0+parseInt(r),c=n.getAttribute("exchangesFailed");c&&(u+=parseInt(c));var d=n.getAttribute("lastProcessingTime"),p=n.getAttribute("meanProcessingTime"),h=n.getAttribute("minProcessingTime"),f=n.getAttribute("maxProcessingTime");a="total: "+u+"\ninflight:"+o+"\nlast: "+d+" (ms)\nmean: "+p+" (ms)\nmin: "+h+" (ms)\nmax: "+f+" (ms)",l.counter=u,t.camelShowInflightCounter&&(l.inflight=o);var g=l.labelSummary;g&&(a=g+"\n\n"+a),l.tooltip=a}}}var i=e.value;if(i){var r=$.parseXML(i),o=$(r).find("routeStat");o.each(function(e,t){n(!0,t)});var o=$(r).find("processorStat");o.each(function(e,t){n(!1,t)}),Core.dagreUpdateGraphData(t.graphData)}}var m=Logger.get("Camel");t.routes=[],t.routeNodes={},null!=n&&(t.contextId=n.contextId,t.routeId=Core.trimQuotes(n.routeId),t.isJmxTab=!n.contextId||!n.routeId),t.camelIgnoreIdForLabel=e.ignoreIdForLabel(l),t.camelMaximumLabelWidth=e.maximumLabelWidth(l),t.camelShowInflightCounter=e.showInflightCounter(l);var v=_.debounce(u,300,{trailing:!0});t.$on("$routeChangeSuccess",function(e,t,n){v()}),t.$watch("workspace.selection",function(){t.isJmxTab&&o.moveIfViewInvalid()||v()}),t.$on("jmxTreeUpdated",function(){v()}),t.$watch("nodeXmlNode",function(){t.isJmxTab&&o.moveIfViewInvalid()||v()});var y=function(n){var i=n.value;t.routes=i,t.nodes={},t.routeNodes={};var r=[],a=[],s=t.routeId;if(s||(s=e.getSelectedRouteId(o)),i){var l=$.parseXML(i);t.processorTree=e.camelProcessorMBeansById(o),e.loadRouteXmlNodes(t,l,s,r,a,h()),p(r,a)}else console.log("No data from route XML!");Core.$apply(t)},b=" selected",w=function(e){m.debug("Clicked on Camel Route Diagram node: "+e.cid),a.path("/camel/properties").search({"main-tab":"camel","sub-tab":"camel-route-properties",nid:e.cid})}}])}(Camel||(Camel={}));var Camel;!function(e){var t="2";e._module.controller("Camel.SendMessageController",["$route","$scope","$element","$timeout","workspace","jolokia","localStorage","$location","activeMQMessage","PreferencesLastPath",function(n,i,r,o,a,s,l,u,c,d){function p(n,r){var o=a.selection;if(o){var u=o.objectName;if(u){var c=null;i.headers.length&&(c={},angular.forEach(i.headers,function(e){var t=e.name;t&&(c[t]=e.value)}),g.info("About to send headers: "+JSON.stringify(c)));var d=Core.onSuccess(r);if("org.apache.camel"===o.domain){var p=e.getContextAndTargetEndpoint(a),h=p.uri;if(u=p.mbean,u&&h){var f=!0;if(e.isCamelVersionEQGT(2,14,a,s)){
|
|
25809
|
|
-var m=s.execute(u,"canSendToEndpoint(java.lang.String)",h);m||(Core.notification("warning","Camel does not support sending to this endpoint."),f=!1)}f&&(c?s.execute(u,"sendBodyAndHeaders(java.lang.String, java.lang.Object, java.util.Map)",h,n,c,d):s.execute(u,"sendStringBody(java.lang.String, java.lang.String)",h,n,d))}else u?Core.notification("error","Failed to determine endpoint name!"):Core.notification("error","Could not find CamelContext MBean!"),g.debug("Parsed context and endpoint: ",p)}else{var v=l.activemqUserName,y=l.activemqPassword;c||(c={}),c.JMSDeliveryMode||(c.JMSDeliveryMode=t),s.execute(u,"sendTextMessage(java.util.Map, java.lang.String, java.lang.String, java.lang.String)",c,n,v,y,d)}}}}function h(){return!0}function f(){return!0}var g=Logger.get("Camel");if(i.noCredentials=!1,i.container={},i.message="\n\n\n\n",i.headers=[],Core.bindModelToSearchParam(i,u,"tab","subtab","compose"),Core.bindModelToSearchParam(i,u,"searchText","q",""),Core.reloadWhenParametersChange(n,i,u),i.checkCredentials=function(){i.noCredentials=Core.isBlank(l.activemqUserName)||Core.isBlank(l.activemqPassword)},u.path().indexOf("activemq")>-1){if(i.localStorage=l,i.$watch("localStorage.activemqUserName",i.checkCredentials),i.$watch("localStorage.activemqPassword",i.checkCredentials),null!==c.message&&(i.message=c.message.bodyText,null!==c.message.PropertiesText))for(var m in c.message.StringProperties)i.headers.push({name:m,value:c.message.StringProperties[m]});c.message=null}i.openPrefs=function(){d.lastPath=u.path(),d.lastSearch=u.search(),u.path("/preferences").search({pref:"ActiveMQ"})};var v="defaultLanguageFormat",y=a.getLocalStorage(v)||"javascript";i.codeMirror=void 0;var b={mode:{name:y},onChange:function(e){i.codeMirror||(i.codeMirror=e)}};i.codeMirrorOptions=CodeEditor.createEditorSettings(b),i.addHeader=function(){i.headers.push({name:"",value:""}),r&&o(function(){var e=r.find("input.headerName").last();e.focus()},100)},i.removeHeader=function(e){var t=i.headers.indexOf(e);i.headers.splice(t,1)},i.defaultHeaderNames=function(){function t(e){angular.forEach(e.definitions.headers.properties,function(e,t){n.push(t)})}var n=[];return f()&&t(e.jmsHeaderSchema),h()&&t(e.camelHeaderSchema),n},i.$watch("workspace.selection",function(){a.moveIfViewInvalid()}),i.$watch("codeMirrorOptions.mode.name",function(e,t){a.setLocalStorage(v,e)});var w=function(){i.message="",Core.notification("success","Message sent!")};i.autoFormat=function(){setTimeout(function(){CodeEditor.autoFormatEditor(i.codeMirror)},50)},i.sendMessage=function(){var e=i.message;p(e,w)}}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.SourceController",["$scope","workspace",function(t,n){function i(e){function t(e,t){var n=t.getAttribute("customId");"route"===t.nodeName&&(n="true"),n&&"true"===n||t.removeAttribute("id"),t.removeAttribute("customId"),t.removeAttribute("_cid"),t.removeAttribute("group")}var n=$(e).clone();n.each(t),n.find("*").each(t);var i=n&&n.length?n[0]:e;return Core.xmlNodeToString(i)}function r(){var r=e.getSelectedRouteNode(n);if(r)t.source=i(r),t.showUpdateButton="route"===r.nodeName,Core.$apply(t);else{if(t.mbean=e.getSelectionCamelContextMBean(n),!t.mbean){var a=Core.pathGet(n,["selection","parent"]);a&&"context"===a.title&&(t.mbean=a.children[0].objectName)}if(t.mbean){var s=n.jolokia;s.request({type:"exec",mbean:t.mbean,operation:"dumpRoutesAsXml()"},Core.onSuccess(o))}}}t.$on("$routeChangeSuccess",function(e,t,n){setTimeout(r,50)}),t.$watch("workspace.selection",function(){n.moveIfViewInvalid()||r()}),t.mode="xml",t.showUpdateButton=!0;var o=function(r){var o=r.value,a=e.getSelectedRouteId(n);if(o&&a){var s=$.parseXML(o),l=$(s).find('route[id="'+a+'"]');if(l&&l.length){var u=l[0],c=i(u);c&&(o=c)}}t.source=o,Core.$apply(t)},a=function(){Core.notification("success","Route updated!"),n.loadTree()};t.saveRouteXml=function(){var i=t.source;if(i){var r=decodeURIComponent(i);e.log.debug("addOrUpdateRoutesFromXml xml decoded: "+r);var o=n.jolokia,s=e.getSelectionCamelContextMBean(n);s?o.execute(s,"addOrUpdateRoutesFromXml(java.lang.String)",r,Core.onSuccess(a)):Core.notification("error","Could not find CamelContext MBean!")}}}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.TraceRouteController",["$scope","workspace","jolokia","localStorage","tracerStatus",function(t,n,i,r,o){function a(){t.tracing=!1,null!=o.jhandle&&(d.debug("Unregistering jolokia handle"),i.unregister(o.jhandle),o.jhandle=null);var r=e.getSelectionCamelTraceMBean(n);if(r)if(t.tracing=i.getAttribute(r,"Enabled",Core.onSuccess(null)),t.tracing){var a=r;a&&null===o.jhandle&&(d.debug("Registering jolokia handle"),o.jhandle=i.register(s,{type:"exec",mbean:a,operation:"dumpAllTracedMessagesAsXml()",ignoreErrors:!0,arguments:[]})),t.graphView="plugins/camel/html/routes.html"}else o.messages=[],t.messages=[],t.graphView=null,t.showMessageDetails=!1}function s(i){d.debug("Populating response "+i);var r=e.getSelectedRouteId(n),a=i.value;if(angular.isString(a)){var s=$.parseXML(a),l=$(s).find("fabricTracerEventMessage");l&&l.length||(l=$(s).find("backlogTracerEventMessage")),l.each(function(n,i){var o=$(i).find("routeId").text();if(o===r){var a=e.createMessageFromXml(i),s=$(i).find("toNode").text();s&&(a.toNode=s),a.openMessageDialog=t.openMessageDialog,d.debug("Adding new message to trace table with id "+a.id),t.messages.push(a)}}),o.messages=t.messages,Core.$apply(t)}}function l(){angular.forEach(t.gridOptions.selectedItems,function(t){if(t){var n=t.toNode;if(n){var i=d3.select("svg").selectAll("g .node");e.highlightSelectedNode(i,n)}}})}function u(e){a(),Core.$apply(t)}function c(t){var o=e.getSelectionCamelTraceMBean(n);if(o){if(_.endsWith(o.toString(),"BacklogTracer")){var a=e.maximumTraceOrDebugBodyLength(r),s=e.traceOrDebugIncludeStreams(r);i.setAttribute(o,"BodyMaxChars",a),i.setAttribute(o,"BodyIncludeStreams",s),i.setAttribute(o,"BodyIncludeFiles",s)}i.setAttribute(o,"Enabled",t,Core.onSuccess(u))}}var d=Logger.get("CamelTracer");t.tracing=!1,t.messages=[],t.graphView=null,t.mode="text",t.showMessageDetails=!1,t.gridOptions=e.createBrowseGridOptions(),t.gridOptions.selectWithCheckboxOnly=!1,t.gridOptions.showSelectionCheckbox=!1,t.gridOptions.multiSelect=!1,t.gridOptions.afterSelectionChange=l,t.gridOptions.columnDefs.push({field:"toNode",displayName:"To Node"}),t.startTracing=function(){d.info("Start tracing"),c(!0)},t.stopTracing=function(){d.info("Stop tracing"),c(!1)},t.clear=function(){d.debug("Clear messages"),o.messages=[],t.messages=[],Core.$apply(t)},t.$watch("workspace.selection",function(){n.moveIfViewInvalid()||(t.messages=o.messages,a())}),t.openMessageDialog=function(e){if(ActiveMQ.selectCurrentMessage(e,"id",t),t.row){var n=t.row.body;t.mode=angular.isString(n)?CodeEditor.detectTextFormat(n):"text","javascript"==t.mode&&(t.mode="text"),t.showMessageDetails=!0}else t.showMessageDetails=!1;Core.$apply(t)},ActiveMQ.decorate(t,l),d.info("Re-activating tracer with "+o.messages.length+" existing messages"),t.messages=o.messages,t.tracing=null!=o.jhandle}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.TreeHeaderController",["$scope","$location",function(e,t){e.contextFilterText="",e.$watch("contextFilterText",function(t,n){t!==n&&e.$emit("camel-contextFilterText",t)}),e.expandAll=function(){Tree.expandAll("#cameltree")},e.contractAll=function(){Tree.contractAll("#cameltree")}}]),e._module.controller("Camel.TreeController",["$scope","$location","$timeout","workspace","$rootScope",function(t,n,i,r,o){function a(o){void 0===o&&(o=null),t.fullScreenViewLink=e.linkToFullScreenView(r);var a=(e.jmxDomain,r.tree);if(a){var l=a.findDescendant(function(e){return"camelContexts"===e.id});l&&i(function(){var e=$("#cameltree");Jmx.enableTree(t,n,r,e,[l],!0),s(),angular.isFunction(o)&&o()},10)}}function s(){Jmx.updateTreeSelectionFromURLAndAutoSelect(n,$("#cameltree"),function(e){var t=e.getChildren();if(t&&1===t.length){e=t[0],e.expand(!0);var n=e.getChildren();if(n&&n.length){var i=n[0];if("routes"===i.data.typeName)return e=i}}return null},!0),t.fullScreenViewLink=e.linkToFullScreenView(r)}t.contextFilterText=n.search().cq,t.fullScreenViewLink=e.linkToFullScreenView(r),t.$on("$routeChangeSuccess",function(e,t,n){i(s,50,!1)}),t.$watch("workspace.tree",function(){a()}),t.$on("jmxTreeUpdated",function(){a()})}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.TypeConverterController",["$scope","$location","workspace","jolokia",function(t,n,i,r){function o(e){var n=e.value;n&&(t.mbeanAttributes=n,Core.$apply(t))}function a(e){var n=e.value;if(n){var i=[];for(var r in n){var o=n[r];for(var a in o)i.push({from:r,to:a})}i=_.sortBy(i,"from"),t.data=i,t.selectedMBean=e.request.mbean,Core.$apply(t)}}function s(){console.log("Loading TypeConverter data...");var n=e.getSelectionCamelTypeConverter(i);if(n){var s={type:"read",mbean:n,attribute:["AttemptCounter","FailedCounter","HitCounter","MissCounter","NumberOfTypeConverters","StatisticsEnabled"]};r.request(s,Core.onSuccess(o)),Core.scopeStoreJolokiaHandle(t,r,r.register(o,s)),r.request({type:"exec",mbean:n,operation:"listTypeConverters"},Core.onSuccess(a))}}t.data=[],t.selectedMBean=null,t.mbeanAttributes={};var l=[{field:"from",displayName:"From",cellFilter:null,width:"*",resizable:!0},{field:"to",displayName:"To",cellFilter:null,width:"*",resizable:!0}];t.gridOptions={data:"data",displayFooter:!0,displaySelectionCheckbox:!1,canSelectRows:!1,enableSorting:!0,columnDefs:l,selectedItems:[],filterOptions:{filterText:""},primaryKeyFn:function(e){return e.from+"/"+e.to}},t.renderIcon=function(t){return e.iconClass(t)},t.disableStatistics=function(){t.selectedMBean&&r.setAttribute(t.selectedMBean,"StatisticsEnabled",!1)},t.enableStatistics=function(){t.selectedMBean&&r.setAttribute(t.selectedMBean,"StatisticsEnabled",!0)},t.resetStatistics=function(){t.selectedMBean&&r.request({type:"exec",mbean:t.selectedMBean,operation:"resetTypeConversionCounters"},Core.onSuccess(null,{silent:!0}))},s()}])}(Camel||(Camel={}));var Karaf;!function(e){function t(e,t){if(!angular.isDefined(e))return t[0];var n=t.findIndex(function(t){return t.id===e.id});return n!==-1?t[n]:t[0]}function n(t,n,i,r,o){e.log.info("installing URI: ",i),n.request({type:"exec",mbean:C(t),operation:"addRepository(java.lang.String)",arguments:[i]},Core.onSuccess(r,{error:o}))}function i(t,n,i,r,o){e.log.info("uninstalling URI: ",i),n.request({type:"exec",mbean:C(t),operation:"removeRepository(java.lang.String)",arguments:[i]},Core.onSuccess(r,{error:o}))}function r(e,t,n,i,r,o){t.request({type:"exec",mbean:C(e),operation:"installFeature(java.lang.String, java.lang.String)",arguments:[n,i]},Core.onSuccess(r,{error:o}))}function o(e,t,n,i,r,o){t.request({type:"exec",mbean:C(e),operation:"uninstallFeature(java.lang.String, java.lang.String)",arguments:[n,i]},Core.onSuccess(r,{error:o}))}function a(e){var t=e;return angular.isArray(e)||(t=[e]),t}function s(e,t,n){return"<a href='"+Core.url("#/karaf/feature/"+t+"/"+n+e.hash())+"'>"+n+"</a>"}function l(e,t,n){var i=[],r=[];return h(e,i,r),_.find(i,function(e){return e.Name==t&&e.Version==n})}function u(e){return T.test(e)}function c(e){return A.test(e)}function d(e){return D.test(e)}function p(e){return I.test(e)}function h(e,t,n){var i=e.Features;angular.forEach(e.Repositories,function(e){n.push({id:e.Name,uri:e.Uri}),i&&angular.forEach(e.Features,function(n){angular.forEach(n,function(n){if(void 0!==i[n.Name]){var r=_.cloneDeep(i[n.Name][n.Version]);r.Id=n.Name+"/"+n.Version,r.RepositoryName=e.Name,r.RepositoryURI=e.Uri,t.push(r)}})})})}function f(e,t,n){var i=[];return angular.forEach(n,function(n){i.push({Name:n,State:g(b(e,t,n))})}),i}function g(e){switch(e){case 2:return"Enabled";case 4:return"Unsatisfied";case 8:return"Activating";case 16:return"Active";case 32:return"Registered";case 64:return"Factory";case 128:return"Deactivating";case 256:return"Destroying";case 1024:return"Disabling";case 2048:return"Disposing"}return"Unknown"}function m(e,t){var n=S(e),i=t.request({type:"read",mbean:n,arguments:[]});return"Components"in i.value?i.value.Components.values:(i=t.request({type:"exec",mbean:n,operation:"listComponents()"}),f(e,t,i.value))}function v(e,t,n){var i=m(e,t);return i.find(function(e){return e.Name==n})}function y(e,t,n){var i=t.request({type:"exec",mbean:S(e),operation:"isComponentActive(java.lang.String)",arguments:[n]});return i.value}function b(e,t,n){var i=t.request({type:"exec",mbean:S(e),operation:"componentState(java.lang.String)",arguments:[n]});return i.value}function w(e,t,n,i,r){t.request({type:"exec",mbean:S(e),operation:"activateComponent(java.lang.String)",arguments:[n]},Core.onSuccess(i,{error:r}))}function x(e,t,n,i,r){t.request({type:"exec",mbean:S(e),operation:"deactiveateComponent(java.lang.String)",arguments:[n]},Core.onSuccess(i,{error:r}))}function k(e,t,n){angular.forEach(t,function(t){angular.forEach(t,function(t){var i=l(e,t.Name,t.Version);i.id=t.Name+"/"+t.Version,n.push(i)})})}function C(e){if(e){var t=e.mbeanTypesToDomain.features||e.mbeanTypesToDomain.feature||{},n=t["org.apache.karaf"]||{},i=n.objectName;if(i)return i;var r=e.tree.navigate("org.apache.karaf","features");if(!r&&(r=e.tree.navigate("org.apache.karaf"))){var o=r.children;r=null,angular.forEach(o,function(e){r||(r=e.navigate("features"))})}if(r){var o=r.children;if(o){var a=o[0];if(a)return a.objectName}return r.objectName}}return null}function S(e){if(e){var t=e.mbeanTypesToDomain.scr||{},n=t["org.apache.karaf"]||{},i=n.objectName;if(i)return i;var r=e.tree.navigate("org.apache.karaf","scr");if(!r&&(r=e.tree.navigate("org.apache.karaf"))){var o=r.children;r=null,angular.forEach(o,function(e){r||(r=e.navigate("scr"))})}if(r){var o=r.children;if(o){var a=o[0];if(a)return a.objectName}return r.objectName}}return null}e.log=Logger.get("Karaf"),e.setSelect=t,e.installRepository=n,e.uninstallRepository=i,e.installFeature=r,e.uninstallFeature=o,e.toCollection=a,e.featureLinks=s,e.extractFeature=l;var $=["^org.apache.aries","^org.apache.karaf","^activemq-karaf","^org.apache.commons","^org.apache.felix","^io.fabric8","^io.fabric8.fab","^io.fabric8.insight","^io.fabric8.mq","^io.fabric8.patch","^io.fabric8.runtime","^io.fabric8.security","^org.apache.geronimo.specs","^org.apache.servicemix.bundles","^org.objectweb.asm","^io.hawt","^javax.mail","^javax","^org.jvnet","^org.mvel2","^org.apache.mina.core","^org.apache.sshd.core","^org.apache.neethi","^org.apache.servicemix.specs","^org.apache.xbean","^org.apache.santuario.xmlsec","^biz.aQute.bndlib","^groovy-all","^com.google.guava","jackson-\\w+-asl","^com.fasterxml.jackson","^org.ops4j","^org.springframework","^bcprov$","^jline$","scala-library$","^org.scala-lang","^stax2-api$","^woodstox-core-asl","^org.jboss.amq.mq-fabric","^gravia-","^joda-time$","^org.apache.ws","-commands$","patch.patch","org.fusesource.insight","activeio-core","activemq-osgi","^org.eclipse.jetty","org.codehaus.jettison.jettison","org.jledit.core","org.fusesource.jansi","org.eclipse.equinox.region"],T=new RegExp($.join("|")),E=["^org.apache.camel","camel-karaf-commands$","activemq-camel$"],D=new RegExp(E.join("|")),M=["^org.apache.cxf"],I=new RegExp(M.join("|")),P=["^org.apache.activemq","activemq-camel$"],A=new RegExp(P.join("|"));e.isPlatformBundle=u,e.isActiveMQBundle=c,e.isCamelBundle=d,e.isCxfBundle=p,e.populateFeaturesAndRepos=h,e.createScrComponentsView=f,e.getComponentStateDescription=g,e.getAllComponents=m,e.getComponentByName=v,e.isComponentActive=y,e.getComponentState=b,e.activateComponent=w,e.deactivateComponent=x,e.populateDependencies=k,e.getSelectionFeaturesMBean=C,e.getSelectionScrMBean=S}(Karaf||(Karaf={}));var Karaf;!function(e){var t="karaf";e._module=angular.module(t,["ngResource","hawtio-core"]),e._module.config(["$routeProvider",function(e){e.when("/osgi/server",{templateUrl:"plugins/karaf/html/server.html"}).when("/osgi/features",{templateUrl:"plugins/karaf/html/features.html",reloadOnSearch:!1}).when("/osgi/scr-components",{templateUrl:"plugins/karaf/html/scr-components.html"}).when("/osgi/scr-component/:name",{templateUrl:"plugins/karaf/html/scr-component.html"}).when("/osgi/feature/:name/:version",{templateUrl:"plugins/karaf/html/feature.html"})}]),e._module.run(["workspace","viewRegistry","helpRegistry",function(e,t,n){n.addUserDoc("karaf","plugins/karaf/doc/help.md",function(){return e.treeContainsDomainAndProperties("org.apache.karaf")})}]),hawtioPluginLoader.addModule(t)}(Karaf||(Karaf={}));var Karaf;!function(e){e._module.controller("Karaf.FeatureController",["$scope","jolokia","workspace","$routeParams",function(t,n,i,r){function o(n){if(t.row=e.extractFeature(n.value,t.name,t.version),t.row){l(t.row);var i=[];angular.forEach(t.row.Dependencies,function(e,t){angular.forEach(e,function(e,n){i.push({Name:t,Version:n})})}),t.row.Dependencies=i}Core.$apply(t)}function a(e){Osgi.defaultBundleValues(i,t,e.values),angular.forEach(e.value,function(e){var n=e.Location;t.bundlesByLocation[n]=e})}function s(){var t=e.getSelectionFeaturesMBean(i),n=Osgi.getSelectionBundleMBean(i),r=i.jolokia;n&&a(r.request({type:"exec",mbean:n,operation:"listBundles()"})),t&&r.request({type:"read",mbean:t},Core.onSuccess(o))}function l(e){var n=[];angular.forEach(e.Bundles,function(e){var i=t.bundlesByLocation[e];i?(i.Installed=!0,n.push(i)):n.push({Location:e,Installed:!1})}),e.BundleDetails=n}t.name=r.name,t.version=r.version,t.bundlesByLocation={},t.props="properties",s(),t.install=function(){e.installFeature(i,n,t.name,t.version,function(){Core.notification("success","Installed feature "+t.name)},function(e){Core.notification("error","Failed to install feature "+t.name+" due to "+e.error)})},t.uninstall=function(){e.uninstallFeature(i,n,t.name,t.version,function(){Core.notification("success","Uninstalled feature "+t.name)},function(e){Core.notification("error","Failed to uninstall feature "+t.name+" due to "+e.error)})},t.toProperties=function(e){var t="";return angular.forEach(e,function(e,n){t+=e.Key+" = "+e.Value+"\n"}),t.trim()}}])}(Karaf||(Karaf={}));var Karaf;!function(e){e._module.controller("Karaf.FeaturesController",["$scope","$location","workspace","jolokia",function(t,n,i,r){function o(n){var i=angular.toJson(n.value);if(t.responseJson!==i){t.responseJson=i,null===n.value.Features?t.featuresError=!0:t.featuresError=!1,t.features=[],t.repositories=[];var r=[],o=[];e.populateFeaturesAndRepos(n.value,r,o);var a=r.filter(function(e){return Core.parseBooleanValue(e.Installed)}),s=r.filter(function(e){return!Core.parseBooleanValue(e.Installed)});if(t.installedFeatures=_.sortBy(a,function(e){return e.Name}),s=_.sortBy(s,function(e){return e.Name}),_.sortBy(o,"id").forEach(function(e){t.repositories.push({repository:e.id,uri:e.uri,features:_.filter(s,function(t){return t.RepositoryName===e.id})})}),!Core.isBlank(t.newRepositoryURI)){var l=_.find(o,function(e){return e.uri===t.newRepositoryURI});l&&(t.selectedRepositoryId=l.id),t.newRepositoryURI=""}Core.isBlank(t.selectedRepositoryId)?t.selectedRepository=_.first(t.repositories):t.selectedRepository=_.find(t.repositories,function(e){return e.repository===t.selectedRepositoryId}),Core.$apply(t)}}t.responseJson="",t.filter="",t.installedFeatures=[],t.features=[],t.repositories=[],t.selectedRepositoryId="",t.selectedRepository={},t.newRepositoryURI="",t.init=function(){var e=n.search().repositoryId;e&&(t.selectedRepositoryId=e);var i=n.search().filter;i&&(t.filter=i)},t.init(),t.$watch("selectedRepository",function(e,i){e!==i&&(e?t.selectedRepositoryId=e.repository:t.selectedRepositoryId="",n.search("repositoryId",t.selectedRepositoryId))},!0),t.$watch("filter",function(e,t){e!==t&&n.search("filter",e)});var a=e.getSelectionFeaturesMBean(i);e.log.debug("Features mbean: ",a),a&&Core.register(r,t,{type:"read",mbean:a},Core.onSuccess(o)),t.inSelectedRepository=function(e){return t.selectedRepository&&"repository"in t.selectedRepository&&e&&"RepositoryName"in e&&e.RepositoryName===t.selectedRepository.repository?"in-selected-repository":""},t.isValidRepository=function(){return Core.isBlank(t.newRepositoryURI)},t.installRepository=function(){var n=t.newRepositoryURI;Core.notification("info","Adding feature repository URL"),e.installRepository(i,r,n,function(){Core.notification("success","Added feature repository URL"),t.selectedRepository={},t.selectedRepositoryId="",t.responseJson=null,t.triggerRefresh()},function(i){e.log.error("Failed to add feature repository URL ",n," due to ",i.error),e.log.info("stack trace: ",i.stacktrace),Core.$apply(t)})},t.uninstallRepository=function(){var n=t.selectedRepository.uri;Core.notification("info","Removing feature repository "+n),e.uninstallRepository(i,r,n,function(){Core.notification("success","Removed feature repository "+n),t.responseJson=null,t.selectedRepositoryId="",t.selectedRepository={},t.triggerRefresh()},function(i){e.log.error("Failed to remove feature repository ",n," due to ",i.error),e.log.info("stack trace: ",i.stacktrace),Core.$apply(t)})},t.triggerRefresh=function(){r.request({type:"read",method:"POST",mbean:a},Core.onSuccess(o))},t.install=function(n){Core.notification("info","Installing feature "+n.Name),e.installFeature(i,r,n.Name,n.Version,function(){Core.notification("success","Installed feature "+n.Name),t.installedFeatures.add(n),t.responseJson=null,t.triggerRefresh()},function(i){e.log.error("Failed to install feature ",n.Name," due to ",i.error),e.log.info("stack trace: ",i.stacktrace),Core.$apply(t)})},t.uninstall=function(n){Core.notification("info","Uninstalling feature "+n.Name),e.uninstallFeature(i,r,n.Name,n.Version,function(){Core.notification("success","Uninstalled feature "+n.Name),t.installedFeatures.remove(n),t.responseJson=null,t.triggerRefresh()},function(i){e.log.error("Failed to uninstall feature ",n.Name," due to ",i.error),e.log.info("stack trace: ",i.stacktrace),Core.$apply(t)})},t.filteredRows=["Bundles","Configurations","Configuration Files","Dependencies"],t.showRow=function(e,n){return t.filteredRows.indexOf(e)===-1&&((!angular.isArray(n)||0!==n.length)&&((!angular.isString(n)||!Core.isBlank(n))&&!(angular.isObject(n)&&(!n||angular.equals(n,{})))))},t.installed=function(e){var t=Core.parseBooleanValue(e);return t},t.showValue=function(e){if(angular.isArray(e)){var t=['<ul class="zebra-list">'];return e.forEach(function(e){t.push("<li>"+e+"</li>")}),t.push("</ul>"),t.join("\n")}if(angular.isObject(e)){var t=['<table class="table">',"<tbody>"];return angular.forEach(e,function(e,n){t.push("<tr>"),t.push("<td>"+n+"</td>"),t.push("<td>"+e+"</td>"),t.push("</tr>")}),t.push("</tbody>"),t.push("</table>"),t.join("\n")}return""+e},t.getStateStyle=function(e){return Core.parseBooleanValue(e.Installed)?"badge badge-success":"badge"},t.filterFeature=function(e){return!!Core.isBlank(t.filter)||!!e.Id.has(t.filter)}}])}(Karaf||(Karaf={}));var Karaf;!function(e){e._module.controller("Karaf.NavBarController",["$scope","workspace",function(t,n){t.hash=n.hash(),t.isKarafEnabled=n.treeContainsDomainAndProperties("org.apache.karaf"),t.isFeaturesEnabled=e.getSelectionFeaturesMBean(n),t.isScrEnabled=e.getSelectionScrMBean(n),t.$on("$routeChangeSuccess",function(){t.hash=n.hash()}),t.isActive=function(e){return n.isLinkActive(e)},t.isPrefixActive=function(e){return n.isLinkPrefixActive(e)}}])}(Karaf||(Karaf={}));var Karaf;!function(e){e._module.controller("Karaf.ScrComponentController",["$scope","$location","workspace","jolokia","$routeParams",function(t,n,i,r,o){function a(){t.row=e.getComponentByName(i,r,t.name),Core.$apply(t)}t.name=o.name,a(),t.activate=function(){e.activateComponent(i,r,t.row.Name,function(){console.log("Activated!")},function(){console.log("Failed to activate!")})},t.deactivate=function(){e.deactivateComponent(i,r,t.row.Name,function(){console.log("Deactivated!")},function(){console.log("Failed to deactivate!")})}}])}(Karaf||(Karaf={}));var Karaf;!function(e){e._module.controller("Karaf.ScrComponentsController",["$scope","$location","workspace","jolokia",function(t,n,i,r){function o(){return[{Name:"",Status:!1}]}function a(e){angular.equals(t.result,e)||(t.components=e,t.result=t.components,Core.$apply(t))}t.component=o(),t.result=[],t.components=[],t.selectedComponents=[],t.scrOptions={data:"components",showFilter:!1,showColumnMenu:!1,filterOptions:{useExternalFilter:!1},sortInfo:{fields:["Name"],directions:["asc"]},selectedItems:t.selectedComponents,rowHeight:32,selectWithCheckboxOnly:!0,columnDefs:[{field:"Name",displayName:"Name",cellTemplate:'<div class="ngCellText"><a href="#/osgi/scr-component/{{row.entity.Name}}?p=container">{{row.getProperty(col.field)}}</a></div>',width:400},{field:"State",displayName:"State",cellTemplate:'<div class="ngCellText">{{row.getProperty(col.field)}}</div>',width:200}],primaryKeyFn:function(e){return e.Name}};var s=e.getSelectionScrMBean(i);s&&a(e.getAllComponents(i,r)),t.activate=function(){t.selectedComponents.forEach(function(t){e.activateComponent(i,r,t.Name,function(){console.log("Activated!")},function(){console.log("Failed to activate!")})})},t.deactivate=function(){t.selectedComponents.forEach(function(t){e.deactivateComponent(i,r,t.Name,function(){console.log("Deactivated!")},function(){console.log("Failed to deactivate!")})})}}])}(Karaf||(Karaf={}));var Karaf;!function(e){e._module.controller("Karaf.ServerController",["$scope","$location","workspace","jolokia",function(e,t,n,i){function r(){setTimeout(o,50)}function o(){console.log("Loading Karaf data..."),i.search("org.apache.karaf:type=admin,*",Core.onSuccess(a))}function a(e){if(angular.isArray(e)){var t=e[0];t&&i.getAttribute(t,"Instances",Core.onSuccess(function(e){s(e,t)}))}}function s(t,n){if(t){var r=Core.parseMBean(n),o="root";"attributes"in r&&"name"in r.attributes&&(o=r.attributes.name);var a=t[o];e.data.name=a.Name,e.data.state=a.State,e.data.root=a["Is Root"],e.data.location=a.Location,e.data.sshPort=a["SSH Port"],e.data.rmiRegistryPort=a["RMI Registry Port"],e.data.rmiServerPort=a["RMI Server Port"],e.data.pid=a.Pid,e.data.version="?",e.data.startLevel="?",e.data.framework="?",e.data.frameworkVersion="?";var s="org.apache.karaf:type=system,name="+a.Name,l=i.request({type:"read",mbean:s,attribute:["StartLevel","Framework","Version"]},Core.onSuccess(null)),u=l.value;u&&(e.data.version=u.Version,e.data.startLevel=u.StartLevel,e.data.framework=u.Framework);var c=i.search("osgi.core:type=bundleState,*",Core.onSuccess(null));if(angular.isArray(c)){var n=c[0];if(n){var d=i.request({type:"exec",mbean:n,operation:"getVersion(long)",arguments:[0]},Core.onSuccess(null)),p=d.value;p&&(e.data.frameworkVersion=p)}}}Core.$apply(e)}e.data={name:"",version:"",state:"",root:"",startLevel:"",framework:"",frameworkVersion:"",location:"",sshPort:"",rmiRegistryPort:"",rmiServerPort:"",pid:""},e.$on("jmxTreeUpdated",r),e.$watch("workspace.tree",r)}])}(Karaf||(Karaf={}));var Osgi;!function(e){function t(e,t,i){var r=i;return angular.forEach(i,function(t){t.ImportData=a(t.ImportedPackages),t.ExportData=a(t.ExportedPackages),t.IdentifierLink=d(e,t.Identifier),t.Hosts=c(e,t.Hosts,r),t.Fragments=c(e,t.Fragments,r),t.ImportedPackages=t.ImportedPackages.union([]),t.StateStyle=n("label",t.State),t.RequiringBundles=c(e,t.RequiringBundles,r)}),i}function n(e,t){switch(t){case"INSTALLED":return e+"-important";case"RESOLVED":return e+"-inverse";case"STARTING":return e+"-warning";case"ACTIVE":return e+"-success";case"STOPPING":return e+"-info";case"UNINSTALLED":return"";default:return e+"-important"}}function i(e,t,n){return angular.forEach(n,function(t){t.BundleIdentifier=d(e,t.BundleIdentifier)}),n}function r(e,t,n){function i(t,n){n||(n=t);var i=t.Name,o=t.Version;if(i&&!_.startsWith(i,"#")){t.VersionLink="<a href='"+Core.url("#/osgi/package/"+i+"/"+o+e.hash())+"'>"+o+"</a>";var a=n.ImportingBundles||t.ImportingBundles,s=n.ExportingBundles||t.ExportingBundles;t.ImportingBundleLinks=d(e,a),t.ImportingBundleLinks=d(e,a),t.ExportingBundleLinks=d(e,s),r.push(t)}}var r=[],o=n.values;return o&&angular.forEach(o,i),angular.forEach(n,function(e){angular.forEach(e,function(t){angular.forEach(t,function(t){i(t,e)})})}),r}function o(e,t,n){var i=[];return angular.forEach(n,function(t){var n={};n.Pid=t[0],n.PidLink="<a href='"+Core.url("#/osgi/pid/"+t[0]+e.hash())+"'>"+t[0]+"</a>",n.Bundle=t[1],i.push(n)}),i}function a(e){for(var t={},n=0;n<e.length;n++){var i=e[n],r=i.indexOf(";");if(r>0){var o=i.substring(0,r),a=i.substring(r+1),s=t[o];void 0===s&&(s={},t[o]=s),s.ReportedVersion=a}}return t}function s(e,t){var n={},i={},r=e[t];if(void 0===r)return n;for(var o=r.Value,a=!0,s=!1,u="",c="",d=0;d<o.length;d++){var p=o[d];'"'!==p?s?c+=p:";"!==p?","!==p?a?u+=p:c+=p:(l(i,c),n[u]=i,i={},u="",c="",a=!0):a?a=!1:(l(i,c),c=""):s=!s}return l(i,c),n[u]=i,n}function l(e,t){var n=t.indexOf(":=");if(n>0)return void(e["D"+t.substring(0,n)]=t.substring(n+2));var i=t.indexOf("=");return i>0?void(e["A"+t.substring(0,i)]=t.substring(i+1)):void 0}function u(e){var t=e;return angular.isArray(e)||(t=[e]),t}function c(e,t,n){var i="",r=u(t).sort(function(e,t){return e-t});return angular.forEach(r,function(t,r){var o="";i.length>0&&(o=" ");var a=n[t]||{},s=a.SymbolicName;i+=o+"<a class='label' href='"+Core.url("#/osgi/bundle/"+t+e.hash())+"'>"+s+"</a>"}),i}function d(e,t){var n="",i=u(t).sort(function(e,t){return e-t});return angular.forEach(i,function(t,i){var r="";n.length>0&&(r=" "),n+=r+"<a class='label' href='"+Core.url("#/osgi/bundle/"+t+e.hash())+"'>"+t+"</a>"}),n}function p(e,t){var n="";return angular.forEach(u(t),function(t,i){var r="";n.length>0&&(r=" "),n+=r+"<a href='"+Core.url("#/osgi/bundle/"+t+e.hash())+"'>"+t+"</a>"}),n}function h(e,t){var n="";return angular.forEach(t,function(t){var i=t.Identifier;if(e===i.toString())return n=t}),n}function f(t){if(t){var n=t.tree.navigate("osgi.core","bundleState");return e.findFirstObjectName(n)}return null}function g(e){if(e){var t=e.objectName;if(t)return t;var n=e.children;if(n&&n.length)return g(n[0])}return null}function m(t){if(t){var n=t.tree.navigate("osgi.core","framework");return e.findFirstObjectName(n)}return null}function v(t){if(t){var n=t.tree.navigate("osgi.core","serviceState");return e.findFirstObjectName(n)}return null}function y(t){if(t){var n=t.tree.navigate("osgi.core","packageState");return e.findFirstObjectName(n)}return null}function b(t){if(t){var n=t.tree.navigate("osgi.compendium","cm");return e.findFirstObjectName(n)}return null}function w(e){if(e){var t=e.mbeanTypesToDomain,n=t.MetaTypeFacade||{},i=n["io.fabric8"]||{};return i.objectName}return null}function x(e){if(e){var t=e.mbeanTypesToDomain,n=t.ProfileMetadata||{},i=n["io.fabric8"]||{};return i.objectName}return null}function k(e){if(e){var t=e.mbeanTypesToDomain,n=t.OSGiTools||{},i=n.hawtio||{};return i.objectName}return null}function C(e){if(e){var t=e.mbeanTypesToDomain,n=t.ConfigAdmin||{},i=n.hawtio||{};return i.objectName}return null}function S(e,t,n,i){return void 0===i&&(i=!1),Core.url("#"+$(e,n,i)+t.hash())}function $(e,t,n){void 0===n&&(n=!1);var i=t,r=e.versionId;e.profileId;if(r&&r){var o=n?"/newConfiguration/":"/configuration/";return"/wiki/branch/"+r+o+i+"/"+e.pageId}return"/osgi/pid/"+i}function T(e,t,n,i){var r=b(e),o=null;return t&&r&&(o=t.execute(r,"getProperties",n,Core.onSuccess(i))),o}function E(e,t){if(e&&t){if(_.startsWith(e,t))return e.substring(t.length+1);var n=t.lastIndexOf(".");if(n>0){var i=t.substring(0,n+1);return Core.trimLeading(e,i)}}return e}e.log=Logger.get("OSGi"),e.defaultBundleValues=t,e.getStateStyle=n,e.defaultServiceValues=i,e.defaultPackageValues=r,e.defaultConfigurationValues=o,e.parseActualPackages=a,e.parseManifestHeader=s,e.toCollection=u,e.labelBundleLinks=c,e.bundleLinks=d,e.pidLinks=p,e.findBundle=h,e.getSelectionBundleMBean=f,e.findFirstObjectName=g,e.getSelectionFrameworkMBean=m,e.getSelectionServiceMBean=v,e.getSelectionPackageMBean=y,e.getSelectionConfigAdminMBean=b,e.getMetaTypeMBean=w,e.getProfileMetadataMBean=x,
|
|
25810
|
|
-e.getHawtioOSGiToolsMBean=k,e.getHawtioConfigAdminMBean=C,e.createConfigPidLink=S,e.createConfigPidPath=$,e.getConfigurationProperties=T,e.removeFactoryPidPrefix=E}(Osgi||(Osgi={}));var Osgi;!function(e){var t=function(){function t(e,t){this.jolokia=t,this.workspace=e}return t.prototype.getBundles=function(){var t={},n=this.jolokia.request({type:"exec",mbean:e.getSelectionBundleMBean(this.workspace),operation:"listBundles()"},Core.onSuccess(null));return angular.forEach(n.value,function(e,n){var i={Identifier:e.Identifier,Name:"",SymbolicName:e.SymbolicName,Fragment:e.Fragment,State:e.State,Version:e.Version,LastModified:new Date(Number(e.LastModified)),Location:e.Location,StartLevel:void 0,RegisteredServices:e.RegisteredServices,ServicesInUse:e.ServicesInUse};e.Headers["Bundle-Name"]&&(i.Name=e.Headers["Bundle-Name"].Value),t[e.Identifier]=i}),t},t.prototype.getServices=function(){var t={},n=this.jolokia.request({type:"exec",mbean:e.getSelectionServiceMBean(this.workspace),operation:"listServices()"},Core.onSuccess(null)),i=n.value;return angular.forEach(i,function(e,n){t[e.Identifier]=e}),t},t.prototype.getPackages=function(){var t={},n=this.jolokia.request({type:"exec",mbean:e.getSelectionPackageMBean(this.workspace),operation:"listPackages()"},Core.onSuccess(null)),i=n.value.values;return i.forEach(function(e){t[e.Name+"-"+e.Version]=e}),t},t}();e.OsgiDataService=t}(Osgi||(Osgi={}));var Osgi;!function(e){e.pluginName="osgi",e._module=angular.module(e.pluginName,[]),e._module.config(["$routeProvider",function(e){e.when("/osgi",{redirectTo:"/osgi/bundle-list"}).when("/osgi/bundle-list",{templateUrl:"plugins/osgi/html/bundle-list.html"}).when("/osgi/bundles",{templateUrl:"plugins/osgi/html/bundles.html"}).when("/osgi/bundle/:bundleId",{templateUrl:"plugins/osgi/html/bundle.html"}).when("/osgi/services",{templateUrl:"plugins/osgi/html/services.html"}).when("/osgi/packages",{templateUrl:"plugins/osgi/html/packages.html"}).when("/osgi/package/:package/:version",{templateUrl:"plugins/osgi/html/package.html"}).when("/osgi/configurations",{templateUrl:"plugins/osgi/html/configurations.html"}).when("/osgi/pid/:pid/:factoryPid",{templateUrl:"plugins/osgi/html/pid.html"}).when("/osgi/pid/:pid",{templateUrl:"plugins/osgi/html/pid.html"}).when("/osgi/fwk",{templateUrl:"plugins/osgi/html/framework.html"}).when("/osgi/dependencies",{templateUrl:"plugins/osgi/html/svc-dependencies.html",reloadOnSearch:!1})}]),e._module.run(["HawtioNav","workspace","viewRegistry","helpRegistry",function(e,t,n,i){i.addUserDoc("osgi","plugins/osgi/doc/help.md",function(){return t.treeContainsDomainAndProperties("osgi.core")});var r=e.builder(),o=r.id("osgi-configuration").href(function(){return"/osgi/configurations"+t.hash()}).title(function(){return"Configuration"}).isSelected(function(){return t.isLinkPrefixActive("/osgi/configuration")||t.isLinkPrefixActive("/osgi/pid")}).build(),a=r.id("osgi-bundles").href(function(){return"/osgi/bundle-list"+t.hash()}).title(function(){return"Bundles"}).isSelected(function(){return t.isLinkPrefixActive("/osgi/bundle")}).build(),s=r.id("osgi-features").href(function(){return"/osgi/features"+t.hash()}).title(function(){return"Features"}).show(function(){return!Core.isBlank(Karaf.getSelectionFeaturesMBean(t))}).isSelected(function(){return t.isLinkPrefixActive("/osgi/feature")}).build(),l=r.id("osgi-packages").href(function(){return"/osgi/packages"+t.hash()}).title(function(){return"Packages"}).isSelected(function(){return t.isLinkPrefixActive("/osgi/package")}).build(),u=r.id("osgi-services").href(function(){return"/osgi/services"+t.hash()}).title(function(){return"Services"}).isSelected(function(){return t.isLinkPrefixActive("/osgi/service")}).build(),c=r.id("osgi-scr-components").href(function(){return"/osgi/scr-components"+t.hash()}).title(function(){return"Declarative Services"}).show(function(){return!Core.isBlank(Karaf.getSelectionScrMBean(t))}).isSelected(function(){return t.isLinkPrefixActive("/osgi/scr-component")}).build(),d=r.id("osgi-server").href(function(){return"/osgi/server"+t.hash()}).title(function(){return"Server"}).isSelected(function(){return t.isLinkPrefixActive("/osgi/server")}).build(),p=r.id("osgi-fwk").href(function(){return"/osgi/fwk"+t.hash()}).title(function(){return"Framework"}).isSelected(function(){return t.isLinkPrefixActive("/osgi/fwk")}).build(),h=r.id("osgi-dependencies").href(function(){return"/osgi/dependencies"+t.hash()}).title(function(){return"Dependencies"}).isSelected(function(){return t.isLinkPrefixActive("/osgi/dependencies")}).build(),f=r.id("osgi").title(function(){return"OSGi"}).href(function(){return"/osgi"}).isValid(function(){return t.treeContainsDomainAndProperties("osgi.core")}).isSelected(function(){return t.isLinkActive("osgi")}).tabs(o,a,s,l,u,c,d,p,h).build();e.add(f)}]),e._module.factory("osgiDataService",["workspace","jolokia",function(t,n){return new e.OsgiDataService(t,n)}]),hawtioPluginLoader.addModule(e.pluginName)}(Osgi||(Osgi={}));var Osgi;!function(e){e._module.controller("Osgi.BundleListController",["$scope","workspace","jolokia","localStorage",function(t,n,i,r){function o(r){var o=r.value,a=angular.toJson(o);t.responseJson!==a&&(t.responseJson=a,t.bundles=[],angular.forEach(o,function(e,n){var i={Identifier:e.Identifier,Name:"",SymbolicName:e.SymbolicName,Fragment:e.Fragment,State:e.State,Version:e.Version,LastModified:new Date(Number(e.LastModified)),Location:e.Location,StartLevel:void 0};e.Headers["Bundle-Name"]&&(i.Name=e.Headers["Bundle-Name"].Value),t.bundles.push(i)}),t.bundles=_.sortBy(t.bundles,t.display.sortField),Core.$apply(t),setTimeout(function(){for(var r=[],o=0;o<t.bundles.length;o++){var a=t.bundles[o];r.push({type:"exec",mbean:e.getSelectionBundleMBean(n),operation:"getStartLevel(long)",arguments:[a.Identifier]})}var s=r.length;i.request(r,Core.onSuccess(function(n){var i=n.request.arguments[0];if(angular.isDefined(i)){var r=t.bundles[i];r&&(e.log.debug("Setting bundle: ",r.Identifier," start level to: ",n.value),r.StartLevel=n.value)}s-=1,e.log.debug("oustanding responses: ",s),0===s&&(e.log.debug("Updating page..."),Core.$apply(t))}))},500))}t.result={},t.bundles=[],t.bundleUrl="",t.display={bundleField:"Name",sortField:"Identifier",bundleFilter:"",startLevelFilter:0,showActiveMQBundles:!1,showCamelBundles:!1,showCxfBundles:!1,showPlatformBundles:!1},"bundleList"in r&&(t.display=angular.fromJson(r.bundleList)),t.$watch("display",function(e,t){e!==t&&(r.bundleList=angular.toJson(e))},!0),t.installDisabled=function(){return""===t.bundleUrl},t.install=function(){i.request({type:"exec",mbean:e.getSelectionFrameworkMBean(n),operation:"installBundle(java.lang.String)",arguments:[t.bundleUrl]},{success:function(r){var o=r.value;i.request({type:"exec",mbean:e.getSelectionBundleMBean(n),operation:"isFragment(long)",arguments:[o]},{success:function(r){var a=r.value;a?(Core.notification("success","Fragment installed successfully."),t.bundleUrl="",Core.$apply(t)):i.request({type:"exec",mbean:e.getSelectionFrameworkMBean(n),operation:"startBundle(long)",arguments:[o]},{success:function(e){Core.notification("success","Bundle installed and started successfully."),t.bundleUrl="",Core.$apply(t)},error:function(e){Core.notification("error",e.error)}})},error:function(e){Core.notification("error",e.error)}})},error:function(e){Core.notification("error",e.error)}})},t.$watch("display.sortField",function(e,n){e!==n&&(t.bundles=_.sortBy(t.bundles,e))}),t.getStateStyle=function(t){return e.getStateStyle("badge",t)},t.getLabel=function(e){var n;return"Name"===t.display.bundleField?(n=e.Name,""===n&&(n=e.SymbolicName)):n=e.SymbolicName,n},t.filterBundle=function(e){if(t.display.startLevelFilter>0&&e.StartLevel<t.display.startLevelFilter)return!1;var n=t.getLabel(e);return!(t.display.bundleFilter&&!n.toLowerCase().has(t.display.bundleFilter.toLowerCase()))&&(!Core.isBlank(t.display.bundleFilter)||!!(t.display.showPlatformBundles&&Karaf.isPlatformBundle(e.SymbolicName)||t.display.showActiveMQBundles&&Karaf.isActiveMQBundle(e.SymbolicName)||t.display.showCxfBundles&&Karaf.isCxfBundle(e.SymbolicName)||t.display.showCamelBundles&&Karaf.isCamelBundle(e.SymbolicName)))},Core.register(i,t,{type:"exec",mbean:e.getSelectionBundleMBean(n),operation:"listBundles()"},Core.onSuccess(o))}])}(Osgi||(Osgi={}));var Osgi;!function(e){function t(e){var t=e.indexOf(";");return t<=0?"":e.substring(t+1).trim()}function n(e,t){var n="";if(!e)return n;for(var i=Object.keys(e).sort(),r=0;r<i.length;r++){var o,a=i[r],s=a.charAt(0),l="";if("A"===s&&(l="=",o="text-info"),"D"===s&&(l=":=",o="muted"),""!==l){if(t&&"Aversion"===a)continue;var u=e[a];u.length>15&&(u=u.replace(/[,]/g,",<br/> ")),n+="<tr><td><strong class='"+o+"'>"+a.substring(1)+"</strong>"+l+u+"</td></tr>"}}return n}function i(e){if(angular.isArray(e))return r(e);var t=e.toString(),n=t.lastIndexOf(".");return t.substring(n+1)}function r(e){for(var t=[],n=0;n<e.length;n++)t.push(i(e[n]));return t=_.filter(t,function(e,t,n){return n.indexOf(e)===t}),t.sort(),t.toString()}e.readBSNHeaderData=t,e.formatAttributesAndDirectivesForPopover=n,e.formatServiceName=i,e._module.controller("Osgi.BundleController",["$scope","$location","workspace","$routeParams","jolokia",function(r,o,a,s,l){function u(){var e=document.getElementById("loadClassResult");e.innerHTML+="<div class='alert alert-error'><button type='button' class='close' data-dismiss='alert'>×</button>The hawtio.OSGiTools MBean is not available. Please contact technical support.</div>"}function c(e){var t=document.getElementById("loadClassResult");t.innerHTML+="<div class='alert alert-error'><button type='button' class='close' data-dismiss='alert'>×</button>Problem invoking hawtio.OSGiTools MBean. "+e+"</div>"}function d(n){var i=n.value;r.bundles=i,e.defaultBundleValues(a,r,i),r.row=e.findBundle(r.bundleId,i),Core.$apply(r),$(".accordion-body.collapse").hover(function(){$(this).css("overflow","visible")},function(){$(this).css("overflow","hidden")}),$("#bsn").tooltip({title:t(r.row.Headers["Bundle-SymbolicName"].Value),placement:"right"}),p(),h(),f()}function p(){var t=e.parseManifestHeader(r.row.Headers,"Import-Package");for(var i in r.row.ImportData){var o=t[i],a="<small><table><tr><td><strong>Imported Version=</strong>"+r.row.ImportData[i].ReportedVersion+"</td></tr>";if(void 0!==o)a+=n(o,!1),"optional"!==t[i].Dresolution&&$(document.getElementById("import."+i)).addClass("badge-info");else{$(document.getElementById("import."+i)).addClass("badge-important");var s=r.row.Headers["DynamicImport-Package"];void 0!==s&&(s=s.Value,a+="<tr><td>Dynamic Import. Imported due to:</td></tr>",a+="<tr><td><strong>DynamicImport-Package=</strong>"+s+"</td></tr>")}a+="</table></small>",$(document.getElementById("import."+i)).popover({title:"attributes and directives",content:a,trigger:"hover",html:!0}),t[i]=void 0}var l="";for(var i in t)void 0!==t[i]&&void 0===r.row.ExportData[i]&&(l+="<tr><td><div class='less-big badge badge-warning' id='unsatisfied."+i+"'>"+i+"</div></td></tr>");""!==l&&(l="<p/><p class='text-warning'>The following optional imports were not satisfied:<table>"+l+"</table></p>",document.getElementById("unsatisfiedOptionalImports").innerHTML=l);for(var i in t)if(void 0!==t[i]){var a="<small><table>";a+=n(t[i],!1),a+="</table></small>",$(document.getElementById("unsatisfied."+i)).popover({title:"attributes and directives",content:a,trigger:"hover",html:!0})}}function h(){var t=e.parseManifestHeader(r.row.Headers,"Export-Package");for(var i in r.row.ExportData){var o="<small><table><tr><td><strong>Exported Version=</strong>"+r.row.ExportData[i].ReportedVersion+"</td></tr>";o+=n(t[i],!0),o+="</table></small>",$(document.getElementById("export."+i)).popover({title:"attributes and directives",content:o,trigger:"hover",html:!0})}}function f(){if(void 0!==r.row.RegisteredServices&&0!==r.row.RegisteredServices.length||void 0!==r.row.ServicesInUse&&0!==r.row.ServicesInUse){var t=e.getSelectionServiceMBean(a);t&&l.request({type:"exec",mbean:t,operation:"listServices()"},Core.onSuccess(g))}}function g(t){var n=t.value;for(var o in n){var s=document.getElementById("registers.service."+o),u=document.getElementById("uses.service."+o);(void 0!==s&&null!==s||void 0!==u&&null!==u)&&l.request({type:"exec",mbean:e.getSelectionServiceMBean(a),operation:"getProperties",arguments:[o]},Core.onSuccess(function(e,t,o){return function(a){for(var s=a.value,l=Object.keys(s).sort(),u="<small><table>",c=0;c<l.length;c++){var d=s[l[c]];if(void 0!==d){var p=d.Value;p.length>15&&(p=p.replace(/[,]/g,",<br/> ")),u+="<tr><td valign='top'>"+l[c]+"</td><td>"+p+"</td></tr>"}}var h=n[e].BundleIdentifier;u+="<tr><td>Registered by</td><td>Bundle "+h+" <div class='less-big label'>"+r.bundles[h].SymbolicName+"</div></td></tr>",u+="</table></small>",void 0!==t&&null!==t&&(t.innerText=" "+i(n[e].objectClass),$(t).popover({title:"service properties",content:u,trigger:"hover",html:!0})),void 0!==o&&null!==o&&(o.innerText=" "+i(n[e].objectClass),$(o).popover({title:"service properties",content:u,trigger:"hover",html:!0}))}}(o,s,u)))}}function m(){var t=e.getSelectionBundleMBean(a);t&&l.request({type:"exec",mbean:t,operation:"listBundles()"},Core.onSuccess(d))}r.bundleId=s.bundleId,m(),r.showValue=function(e){switch(e){case"Bundle-Name":case"Bundle-SymbolicName":case"Bundle-Version":case"Export-Package":case"Import-Package":return!1;default:return!0}},r.executeLoadClass=function(t){var n=e.getHawtioOSGiToolsMBean(a);n?l.request({type:"exec",mbean:n,operation:"getLoadClassOrigin",arguments:[r.bundleId,t]},{success:function(n){var i,o,s=document.getElementById("loadClassResult"),l=n.value;l===-1?(i="",o="Class can not be loaded from this bundle."):(i="alert-success",o="Class is served from Bundle "+e.bundleLinks(a,l)),s.innerHTML+="<div class='alert "+i+"'><button type='button' class='close' data-dismiss='alert'>×</button>Loading class <strong>"+t+"</strong> in Bundle "+r.bundleId+". "+o+"</div>"},error:function(e){c(e)}}):u()},r.executeFindResource=function(t){var n=e.getHawtioOSGiToolsMBean(a);n?l.request({type:"exec",mbean:n,operation:"getResourceURL",arguments:[r.bundleId,t]},{success:function(e){var n,i,o=document.getElementById("loadClassResult"),a=e.value;null===a?(n="",i="Resource can not be found from this bundle."):(n="alert-success",i="Resource is available from: "+a),o.innerHTML+="<div class='alert "+n+"'><button type='button' class='close' data-dismiss='alert'>×</button>Finding resource <strong>"+t+"</strong> in Bundle "+r.bundleId+". "+i+"</div>"},error:function(e){c(e)}}):u()},r.startBundle=function(t){l.request([{type:"exec",mbean:e.getSelectionFrameworkMBean(a),operation:"startBundle",arguments:[t]}],Core.onSuccess(m))},r.stopBundle=function(t){l.request([{type:"exec",mbean:e.getSelectionFrameworkMBean(a),operation:"stopBundle",arguments:[t]}],Core.onSuccess(m))},r.updatehBundle=function(t){l.request([{type:"exec",mbean:e.getSelectionFrameworkMBean(a),operation:"updateBundle",arguments:[t]}],Core.onSuccess(m))},r.refreshBundle=function(t){l.request([{type:"exec",mbean:e.getSelectionFrameworkMBean(a),operation:"refreshBundle",arguments:[t]}],Core.onSuccess(m))},r.uninstallBundle=function(t){l.request([{type:"exec",mbean:e.getSelectionFrameworkMBean(a),operation:"uninstallBundle",arguments:[t]}],Core.onSuccess(function(){o.path("/osgi/bundle-list"),Core.$apply(r)}))}}])}(Osgi||(Osgi={}));var Osgi;!function(e){e._module.controller("Osgi.BundlesController",["$scope","workspace","jolokia",function(t,n,i){function r(e){angular.equals(t.result,e.value)||(t.selected.length=0,t.result=e.value,t.bundles=[],angular.forEach(t.result,function(e,n){var i={Identifier:e.Identifier,Name:"",SymbolicName:e.SymbolicName,State:e.State,Version:e.Version,LastModified:e.LastModified,Location:e.Location};e.Headers["Bundle-Name"]&&(i.Name=e.Headers["Bundle-Name"].Value),t.bundles.push(i)}),t.loading=!1,Core.$apply(t))}t.result={},t.bundles=[],t.selected=[],t.loading=!0,t.bundleUrl="",t.installDisabled=function(){return""===t.bundleUrl};var o=[{field:"Identifier",displayName:"Identifier",width:"48",headerCellTemplate:'<div ng-click="col.sort()" class="ngHeaderSortColumn {{col.headerClass}}" ng-style="{\'cursor\': col.cursor}" ng-class="{ \'ngSorted\': !noSortVisible }"><div class="ngHeaderText colt{{$index}} pagination-centered" title="Identifier"><i class="fa fa-tag"></i></div><div class="ngSortButtonDown" ng-show="col.showSortButtonDown()"></div><div class="ngSortButtonUp" ng-show="col.showSortButtonUp()"></div></div>'},{field:"State",displayName:"Bundle State",width:"24",headerCellTemplate:'<div ng-click="col.sort()" class="ngHeaderSortColumn {{col.headerClass}}" ng-style="{\'cursor\': col.cursor}" ng-class="{ \'ngSorted\': !noSortVisible }"><div class="ngHeaderText colt{{$index}} pagination-centered" title="State"><i class="fa fa-tasks"></i></div><div class="ngSortButtonDown" ng-show="col.showSortButtonDown()"></div><div class="ngSortButtonUp" ng-show="col.showSortButtonUp()"></div></div>',cellTemplate:'<div class="ngCellText" title="{{row.getProperty(col.field)}}"><i class="{{row.getProperty(col.field)}}"></i></div>'},{field:"Name",displayName:"Name",width:"***",cellTemplate:'<div class="ngCellText"><a href="#/osgi/bundle/{{row.entity.Identifier}}?p=container">{{row.getProperty(col.field)}}</a></div>'},{field:"SymbolicName",displayName:"Symbolic Name",width:"***",cellTemplate:'<div class="ngCellText"><a href="#/osgi/bundle/{{row.entity.Identifier}}?p=container">{{row.getProperty(col.field)}}</a></div>'},{field:"Version",displayName:"Version",width:"**"},{field:"Location",displayName:"Update Location",width:"***"}];t.gridOptions={data:"bundles",showFilter:!1,selectedItems:t.selected,selectWithCheckboxOnly:!0,columnDefs:o,filterOptions:{filterText:""},primaryKeyFn:function(e){return e.Identifier}},t.onResponse=function(){i.request({type:"exec",mbean:e.getSelectionBundleMBean(n),operation:"listBundles()"},{success:r,error:r})},t.controlBundles=function(r){var o=t.selected.map(function(e){return e.Identifier});angular.isArray(o)||(o=[o]),i.request({type:"exec",mbean:e.getSelectionFrameworkMBean(n),operation:r,arguments:[o]},{success:t.onResponse,error:t.onResponse})},t.stop=function(){t.controlBundles("stopBundles([J)")},t.start=function(){t.controlBundles("startBundles([J)")},t.update=function(){t.controlBundles("updateBundles([J)")},t.refresh=function(){t.controlBundles("refreshBundles([J)")},t.uninstall=function(){t.controlBundles("uninstallBundles([J)")},t.install=function(){i.request({type:"exec",mbean:e.getSelectionFrameworkMBean(n),operation:"installBundle(java.lang.String)",arguments:[t.bundleUrl]},{success:function(r){console.log("Got: ",r),t.bundleUrl="",i.request({type:"exec",mbean:e.getSelectionFrameworkMBean(n),operation:"startBundle(long)",arguments:[r.value]},{success:t.onResponse,error:t.onResponse})},error:function(e){t.bundleUrl="",t.onResponse()}})},Core.register(i,t,{type:"exec",mbean:e.getSelectionBundleMBean(n),operation:"listBundles()"},Core.onSuccess(r))}])}(Osgi||(Osgi={}));var Osgi;!function(e){e._module.controller("Osgi.ConfigurationsController",["$scope","$routeParams","$location","workspace","jolokia",function(t,n,i,r,o){function a(n){var i={};angular.forEach(n,function(e){var t=e[0],n=e[1],r=m(t,n);v(t)||(r.hasValue=!0,r.kind=C.pid,i[t]=r)}),t.pids=i;var o=e.getSelectionConfigAdminMBean(r);o&&t.jolokia.execute(o,"getConfigurations","(service.factoryPid=*)",Core.onSuccess(s,k("Failed to load factory PID configurations: "))),d()}function s(n){var i=e.getSelectionConfigAdminMBean(r),o=t.pids;o&&i&&angular.forEach(n,function(n){var a=n[0],s=n[1];if(a&&!v(a)){var l=o[a];l&&(l.isFactoryInstance=!0,t.jolokia.execute(i,"getFactoryPid",a,Core.onSuccess(function(n){if(l.factoryPid=n,l.name=e.removeFactoryPidPrefix(a,n),n){var i=y(n,s,o);i&&(b(a,i,l),t.inFabricProfile&&e.getConfigurationProperties(r,t.jolokia,a,function(i){var r=Core.pathGet(i,["fabric.zookeeper.pid","Value"]);r&&(l.name=e.removeFactoryPidPrefix(r,n),l.zooKeeperPid=r,Core.$apply(t))}),Core.$apply(t))}})))}}),c()}function l(e){t.metaType=e,c()}function u(){var e=t.pids,n=[];angular.forEach(e,function(e,t){e.isFactoryInstance||n.push(e)}),t.configurations=_.sortBy(n,"name"),Core.$apply(t)}function c(n){void 0===n&&(n=!0);var i=t.metaType;if(i){var r=e.configuration.pidMetadata,o=t.pids||{};angular.forEach(i.pids,function(e,t){var i=null,a=n?y(t,i):o[t];if(a){var s=e.factoryPidBundleIds;s&&s.length&&w(a),a.name=Core.pathGet(r,[t,"name"])||f(e.name)||t;var l=Core.pathGet(r,[t,"description"])||e.description;a.description=l}})}u()}function d(){if(t.pids)if(t.profileNotRunning&&t.profileMetadataMBean&&t.versionId&&t.profileId)o.execute(t.profileMetadataMBean,"metaTypeSummary",t.versionId,t.profileId,Core.onSuccess(l));else{var n=e.getMetaTypeMBean(r);n&&t.jolokia.execute(n,"metaTypeSummary",Core.onSuccess(l))}}function p(){if(t.configurations=[],t.profileNotRunning&&t.profileMetadataMBean&&t.versionId&&t.profileId)o.execute(t.profileMetadataMBean,"metaTypeSummary",t.versionId,t.profileId,Core.onSuccess(h,{silent:!0}));else if(t.jolokia){var n=e.getSelectionConfigAdminMBean(r);n&&t.jolokia.execute(n,"getConfigurations","(service.pid=*)",Core.onSuccess(a,k("Failed to load PID configurations: ")))}}function h(e){var n=e;if(n){var i={};angular.forEach(n.pids,function(e,t){if(e&&!v(t)){var n="mvn:"+t,r={pid:t,name:e.name,"class":"pid",description:e.description,bundle:n,kind:C.pid,pidLink:x(t)};i[t]=r}}),angular.forEach(i,function(e,t){var n=t.indexOf("-");if(n>0){var r=t.substring(0,n),o=t.substring(n+1,t.length),a=i[r];if(!a){var s=e.bundle;a=y(r,s,i)}a&&(b(t,a,e,r),e.name=o,i[r]=a,delete i[t])}}),t.pids=i}t.metaType=n,c(!1)}function f(e){return angular.forEach(["Fabric8 ","Apache "],function(t){e&&_.startsWith(e,t)&&e.length>t.length&&(e=e.substring(t.length))}),e}function g(t,n){var i=e.configuration.pidMetadata;return Core.pathGet(i,[t,"description"])||"pid: "+t+"\nbundle: "+n}function m(t,n){var i=e.configuration.pidMetadata,r={pid:t,name:Core.pathGet(i,[t,"name"])||t,"class":"pid",description:Core.pathGet(i,[t,"description"])||g(t,n),bundle:n,kind:C.pidNoValue,pidLink:x(t)};return r}function v(t){var n=!1;return angular.forEach(e.configuration.ignorePids,function(e){_.startsWith(t,e)&&(n=!0)}),n}function y(n,i,r){if(void 0===r&&(r=null),v(n))return e.log.info("ignoring pid "+n),null;r||(r=t.pids);var o=r[n];return o||(o=m(n,i),r[n]=o,u()),o}function b(e,t,n,i){void 0===i&&(i=null),w(t,i,e);var r=t.children;i&&(t.pidLink=x(i,!0)),r||(r={},t.children=r),r[e]=n}function w(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null),e.isFactory=!0,e["class"]="factoryPid",e.kind=C.factory,t||(t=e.factoryPid||""),n||(n=e.pid||""),t||(t=n,n=null),e.pidLink=x(t)}function x(n,i){return void 0===i&&(i=!1),e.createConfigPidLink(t,r,n,i)}function k(e){return{error:function(t){Core.notification("error",e+t.error||t),Core.defaultJolokiaErrorHandler(t)}}}t.selectedItems=[],t.jolokia=o,t.grid={data:"configurations",showFilter:!1,showColumnMenu:!1,multiSelect:!1,filterOptions:{filterText:"",useExternalFilter:!1},selectedItems:t.selectedItems,showSelectionCheckbox:!1,displaySelectionCheckbox:!1,columnDefs:[{field:"Pid",displayName:"Configuration",cellTemplate:'<div class="ngCellText"><a ng-href="{{row.entity.pidLink}}" title="{{row.entity.description}}">{{row.entity.name}}</a></div>'}],primaryKeyFn:function(e){return e.Pid}};var C={factory:{"class":"badge badge-info",title:"Configuration factory used to create separate instances of the configuration"},pid:{"class":"badge badge-success",title:"Configuration which has a set of properties associated with it"},pidNoValue:{"class":"badge badge-warning",title:"Configuration which does not yet have any bound values"}};t.addPidDialog=new UI.Dialog,t.addPid=function(n){if(t.configurations.some(function(e){return e.pid==n}))return void Core.notification("error",'pid "'+n+'" already exists.');t.addPidDialog.close();var i=e.getHawtioConfigAdminMBean(r);if(i&&n){var o=JSON.stringify({});t.jolokia.execute(i,"configAdminUpdate",n,o,Core.onSuccess(function(e){Core.notification("success","Successfully created pid: "+n),p()}))}},t.$on("$routeChangeSuccess",function(e,t,n){setTimeout(p,50)}),p()}])}(Osgi||(Osgi={}));var Osgi;!function(e){e._module.controller("Osgi.FrameworkController",["$scope","$dialog","workspace",function(t,n,i){function r(e,t){Core.notification(e,t),a()}function o(e){t.startLevel=e.value.FrameworkStartLevel,t.initialBundleStartLevel=e.value.InitialBundleStartLevel,Core.$apply(t)}function a(){var t=e.getSelectionFrameworkMBean(i);if(t){var n=i.jolokia;n.request({type:"read",mbean:t},Core.onSuccess(o))}}t.editDialog=new UI.Dialog,a(),t.edit=function(e,n){t.editAttr=e,t.editDisplayName=n,t.editDialog.open()},t.edited=function(n,o,a){if(t.editDialog.close(),angular.isNumber(a)){var s=e.getSelectionFrameworkMBean(i);if(s){var l=i.jolokia;l.request({type:"write",mbean:s,attribute:n,value:a},{error:function(e){r("error",e.error)},success:function(e){r("success",o+" changed to "+a)}})}}}}])}(Osgi||(Osgi={}));var Osgi;!function(e){e.configuration={pidMetadata:{"io.fabric8.container.java":{name:"Java Container"},"io.fabric8.container.process":{name:"Process Container"},"io.fabric8.container.process.overlay.resources":{name:"Container Overlay Resources",description:"The resources overlaid over the distribution of the process",schemaExtensions:{disableHumanizeLabel:!0}},"io.fabric8.dosgi":{name:"Fabric8 DOSGi",description:"The configuration for the Distributed OSGi implementation in Fabric8"},"io.fabric8.environment":{name:"Environment Variables",description:"The operating system Environment Variables which are exported into any child processes",schemaExtensions:{disableHumanizeLabel:!0}},"io.fabric8.fab.osgi.url":{name:"FAB URL",description:"Configures the 'fab:' URL handler for deploying JARs as bundles"},"io.fabric8.mq.fabric.server":{name:"ActiveMQ Broker",description:"The configuration of the Apache ActiveMQ server configured via the fabric"},"io.fabric8.openshift":{name:"OpenShift"},"io.fabric8.ports":{name:"Ports",description:"The network ports exported by the container",schemaExtensions:{disableHumanizeLabel:!0}},"io.fabric8.system":{name:"System Properties",description:"The Java System Properties which are exported into any child Java processes",schemaExtensions:{disableHumanizeLabel:!0}},"io.fabric8.version":{name:"Versions",schemaExtensions:{disableHumanizeLabel:!0}},"org.ops4j.pax.logging":{name:"Logging",description:"The configuration of the logging subsystem"},"org.ops4j.pax.url.mvn":{name:"Maven URL",description:"Configures the Maven 'mvn:' URL handler for referencing maven artifacts"},"org.ops4j.pax.url.war":{name:"WAR URL",description:"Configures the 'war:' URL handler for referencing WAR deployments"},"org.ops4j.pax.url.wrap":{name:"Wrap URL",description:"Configures the 'wrap:' URL handler for wrapping JARs as bundles"}},ignorePids:["jmx.acl","io.fabric8.agent","io.fabric8.git","io.fabric8.mq.fabric.template","io.fabric8.openshift.agent","io.fabric8.service.ZkDataStoreImpl","org.apache.felix.fileinstall","org.apache.karaf.command.acl.","org.apache.karaf.service.acl."],tabs:{fabric8:{label:"Fabric8",description:"Configuration options for the Fabric8 services",pids:["io.fabric8"]},karaf:{label:"Karaf",description:"Configuration options for the Apache Karaf container and subsystem",pids:["org.apache.karaf"]}}}}(Osgi||(Osgi={}));var Osgi;!function(e){var t=function(){function e(e,t,n,i,r,o){this.filteredBundles={},this.bundles=null,this.services=null,this.packages=null,this.PREFIX_BUNDLE="Bundle-",this.PREFIX_SVC="Service-",this.PREFIX_PKG="Package-",this.osgiDataService=e,this.bundleFilter=t,this.packageFilter=n,this.showServices=i,this.showPackages=r,this.hideUnused=o,this.graphBuilder=new ForceGraph.GraphBuilder}return e.prototype.getBundles=function(){return null==this.bundles&&(this.bundles=this.osgiDataService.getBundles()),this.bundles},e.prototype.getServices=function(){return null==this.services&&(this.services=this.osgiDataService.getServices()),this.services},e.prototype.getPackages=function(){return null==this.packages&&(this.packages=this.osgiDataService.getPackages()),this.packages},e.prototype.bundleNodeId=function(e){return this.PREFIX_BUNDLE+e.Identifier},e.prototype.serviceNodeId=function(e){return this.PREFIX_SVC+e.Identifier},e.prototype.pkgNodeId=function(e){return this.PREFIX_PKG+e.Name+"-"+e.Version},e.prototype.buildSvcNode=function(e){return{id:this.serviceNodeId(e),name:""+e.Identifier,type:"service",used:!1,popup:{title:"Service ["+e.Identifier+"]",content:function(){var t="";return null!=e&&e.objectClass.forEach(function(e){t.length>0&&(t+="<br/>"),t+=e}),t}}}},e.prototype.buildBundleNode=function(e){return{id:this.bundleNodeId(e),name:e.SymbolicName,type:"bundle",used:!1,navUrl:"#/osgi/bundle/"+e.Identifier,popup:{title:"Bundle ["+e.Identifier+"]",content:"<p>"+e.SymbolicName+"<br/>Version "+e.Version+"</p>"}}},e.prototype.buildPackageNode=function(e){return{id:this.pkgNodeId(e),name:e.Name,type:"package",used:!1,popup:{title:"Package ["+e.Name+"]",content:"<p>"+e.Version+"</p>"}}},e.prototype.exportingBundle=function(e){var t=this,n=null;return e.ExportingBundles.forEach(function(e){null!=t.filteredBundles[t.PREFIX_BUNDLE+e]&&(n=e)}),n},e.prototype.addFilteredBundles=function(){var e=this;d3.values(this.getBundles()).forEach(function(t){if(null==e.bundleFilter||""==e.bundleFilter||_.startsWith(t.SymbolicName,e.bundleFilter.toString())){var n=e.buildBundleNode(t);if(e.filteredBundles[n.id]=t,n.used=!0,e.graphBuilder.addNode(n),e.showServices){var i=e.getServices();t.RegisteredServices.forEach(function(t){var r=i[t];if(r){var o=e.buildSvcNode(i[t]);e.graphBuilder.addNode(o),e.graphBuilder.addLink(n.id,o.id,"registered")}})}}})},e.prototype.addFilteredServices=function(){var e=this;this.showServices&&d3.values(this.getBundles()).forEach(function(t){t.ServicesInUse.forEach(function(n){var i=e.PREFIX_SVC+n;if(null!=e.graphBuilder.getNode(i)){e.graphBuilder.getNode(i).used=!0;var r=e.graphBuilder.getNode(e.bundleNodeId(t))||e.buildBundleNode(t);r.used=!0,e.graphBuilder.addNode(r),e.graphBuilder.addLink(i,r.id,"inuse")}})})},e.prototype.addFilteredPackages=function(){var e=this;this.showPackages&&d3.values(this.getPackages()).forEach(function(t){if(null==e.packageFilter||""==e.packageFilter||_.startsWith(t.Name,e.packageFilter.toString())){var n=e.exportingBundle(t);if(null!=n){var i=e.graphBuilder.getNode(e.PREFIX_BUNDLE+n);i.used=!0;var r=e.buildPackageNode(t);e.graphBuilder.addNode(r),e.graphBuilder.addLink(i.id,r.id,"registered"),t.ImportingBundles.forEach(function(t){var n=e.graphBuilder.getNode(e.PREFIX_BUNDLE+t)||e.buildBundleNode(e.getBundles()[t]);n.used=!0,r.used=!0,e.graphBuilder.addNode(n),e.graphBuilder.addLink(n.id,r.id,"inuse")})}}})},e.prototype.buildGraph=function(){var e=this;return this.addFilteredBundles(),this.addFilteredServices(),this.addFilteredPackages(),this.hideUnused&&(this.graphBuilder.filterNodes(function(e){return e.used}),this.graphBuilder.filterNodes(function(t){return e.graphBuilder.hasLinks(t.id)})),this.graphBuilder.buildGraph()},e}();e.OsgiGraphBuilder=t}(Osgi||(Osgi={}));var Osgi;!function(e){e.TopLevelController=e._module.controller("Osgi.TopLevelController",["$scope","workspace",function(t,n){t.frameworkMBean=e.getSelectionFrameworkMBean(n),t.bundleMBean=e.getSelectionBundleMBean(n),t.serviceMBean=e.getSelectionServiceMBean(n),t.packageMBean=e.getSelectionPackageMBean(n),t.configAdminMBean=e.getSelectionConfigAdminMBean(n),t.metaTypeMBean=e.getMetaTypeMBean(n),t.osgiToolsMBean=e.getHawtioOSGiToolsMBean(n),t.hawtioConfigAdminMBean=e.getHawtioConfigAdminMBean(n),t.scrMBean=Karaf.getSelectionScrMBean(n),t.featuresMBean=Karaf.getSelectionFeaturesMBean(n)}])}(Osgi||(Osgi={}));var Osgi;!function(e){e._module.controller("Osgi.PackageController",["$scope","$filter","workspace","$routeParams",function(t,n,i,r){
|
|
25811
|
|
-function o(n){var r=e.defaultPackageValues(i,t,n.value);t.row=_.filter(r,{Name:t["package"],Version:t.version})[0],Core.$apply(t)}function a(){var t=e.getSelectionPackageMBean(i);if(t){var n=i.jolokia;n.request({type:"exec",mbean:t,operation:"listPackages"},Core.onSuccess(o))}}t["package"]=r["package"],t.version=r.version,a()}])}(Osgi||(Osgi={}));var Osgi;!function(e){e.PackagesController=e._module.controller("Osgi.PackagesController",["$scope","$filter","workspace","$templateCache","$compile",function(t,n,i,r,o){function a(n){var r=e.defaultPackageValues(i,t,n.value);s(r)}function s(n){var r={},o=function(e){angular.forEach(e.value,function(e,t){var n={Identifier:e.Identifier,Name:"",SymbolicName:e.SymbolicName,State:e.State,Version:e.Version,LastModified:e.LastModified,Location:e.Location};e.Headers["Bundle-Name"]&&(n.Name=e.Headers["Bundle-Name"].Value),r[n.Identifier]=n}),angular.forEach(n,function(e,t){angular.forEach(e.ExportingBundles,function(t,n){e.ExportingBundles[n]=r[t]}),angular.forEach(e.ImportingBundles,function(t,n){e.ImportingBundles[n]=r[t]})}),t.packages=n,Core.$apply(t)};i.jolokia.request({type:"exec",mbean:e.getSelectionBundleMBean(i),operation:"listBundles()"},{success:o,error:o})}function l(){var t=e.getSelectionPackageMBean(i);if(t){var n=i.jolokia;n.request({type:"exec",mbean:t,operation:"listPackages"},Core.onSuccess(a))}}n("date");t.packages=[],t.selectedItems=[],t.mygrid={data:"packages",showFilter:!1,showColumnMenu:!1,filterOptions:{filterText:"",useExternalFilter:!1},selectedItems:t.selectedItems,rowHeight:32,selectWithCheckboxOnly:!0,columnDefs:[{field:"Name",displayName:"Name"},{field:"VersionLink",displayName:"Version",width:"***",cellTemplate:'\n <div class="ngCellText">\n <a ng-href="/osgi/package/{{row.entity.Name}}/{{row.entity.Version}}">{{row.entity.Version}}</a>\n </div>'},{field:"ExportingBundles",displayName:"Exporting Bundles",cellTemplate:'\n <div class="ngCellText">\n <div ng-repeat="bundle in row.entity.ExportingBundles">\n <a title="Exported by bundle {{bundle.Identifier}}" ng-href="/osgi/bundle/{{bundle.Identifier}}">{{bundle.SymbolicName}}</a>\n </div>\n </div>'},{field:"ImportingBundles",displayName:"Importing Bundles",cellTemplate:'\n <div class="ngCellText">\n <div ng-repeat="bundle in row.entity.ImportingBundles">\n <a title="Imported by bundle {{bundle.Identifier}}" ng-href="/osgi/bundle/{{bundle.Identifier}}">{{bundle.SymbolicName}}</a>\n </div>\n </div>'},{field:"RemovalPending",displayName:"Removal Pending"}],primaryKeyFn:function(e){return e.Name}},t.$watch("workspace.selection",function(){l()})}])}(Osgi||(Osgi={}));var Osgi;!function(e){e._module.controller("Osgi.PidController",["$scope","$timeout","$routeParams","$location","workspace","jolokia",function(t,n,i,r,o,a){function s(n,i,o){var a=function(n){if(Core.notification("success","Successfully updated pid: "+i),i&&t.factoryPid&&t.newPid){var o=e.createConfigPidPath(t,i);r.path(o)}else t.setEditMode(!1),t.canSave=!1,t.saved=!0},s=Core.onSuccess(a,l("Failed to update: "+i)),u=JSON.stringify(o);t.jolokia.execute(n,"configAdminUpdate",i,u,s)}function l(e){return{error:function(t){Core.notification("error",e+"\n"+t.error||t),Core.defaultJolokiaErrorHandler(t)}}}function u(){t.editMode&&(t.canSave=!0)}function c(e){t.modelLoaded=!0;var n=e||{};t.configValues=n,t.zkPid=Core.pathGet(n,["fabric.zookeeper.pid","Value"]),t.zkPid&&t.saved||d()}function d(){h();var n=t.configValues;if(n)if(t.profileNotRunning&&t.profileMetadataMBean&&t.versionId&&t.profileId){var i=t.factoryPid||t.pid;a.execute(t.profileMetadataMBean,"getPidMetaTypeObject",t.versionId,t.profileId,i,Core.onSuccess(p))}else{var r=null,i=null,o=n["service.factoryPid"];o&&!i&&(i=o.Value);var s=e.getMetaTypeMBean(t.workspace);s&&t.jolokia.execute(s,"getPidMetaTypeObject",i,r,Core.onSuccess(p))}Core.$apply(t)}function p(e){t.metaType=e,h(),Core.$apply(t)}function h(){var n={},i=[];t.defaultValues={};var r={type:"object",required:i,properties:n},o="span12",a="control-label",s="",l=a,u=t.metaType;if(u){var c=e.configuration.pidMetadata,d=u.id;r.id=d,r.name=Core.pathGet(c,[d,"name"])||u.name,r.description=Core.pathGet(c,[d,"description"])||u.description;var p=Core.pathGet(c,[d,"schemaExtensions","disableHumanizeLabel"]);angular.forEach(u.attributes,function(e){var r=e.id;if(g(r)){var u=m(r,d),c=y(e.typeName,e.id),h={title:e.name,tooltip:e.description,"input-attributes":{"class":o},"label-attributes":{"class":a},type:c};p&&(h.title=r),"char"===e.typeName&&(h.maxLength=1,h.minLength=1);var f=e.cardinality;f&&(h["input-attributes"]["class"]=null,h.type="array",h.items={"input-attributes":{"class":s},"label-attributes":{"class":l},type:c}),e.required&&i.push(r);var v=e.defaultValue;v&&(angular.isArray(v)&&1===v.length&&(v=v[0]),t.defaultValues[u]=v);var b=e.optionLabels,w=e.optionValues;if(b&&b.length&&w&&w.length){for(var x={},k=0;k<b.length;k++){var C=b[k],S=w[k];x[S]=C}t.selectValues[u]=x,Core.pathSet(h,["input-element"],"select"),Core.pathSet(h,["input-attributes","ng-options"],"key as value for (key, value) in selectValues."+u)}n[u]=h}});var h=Core.pathGet(e.configuration.pidMetadata,[d,"schemaExtensions"]);h&&f(r,h)}var v={};angular.forEach(t.configValues,function(e,t){if(g(t)){var i=m(t,d),r=e,s="string";angular.isObject(e)&&(r=e.Value,s=y(e.Type,t));var l=n[i];if(l){var u=l.type;"array"===u&&(angular.isArray(r)||(r=r?r.split(","):[]))}else l={"input-attributes":{"class":o},"label-attributes":{"class":a},type:s},n[i]=l,"org.osgi.service.http.port"==t&&(n[i]["input-attributes"].disabled="disabled",n[i]["input-attributes"].title="Changing port of OSGi http service is not possible from Hawtio");p&&(l.title=t),i=i.replace(/-/g,"_"),v[i]=r}}),angular.forEach(t.defaultValues,function(e,t){var n=v[t];angular.isDefined(n)||(v[t]=e)}),t.entity=v,t.schema=r,t.fullSchema=r}function f(e,t){angular.isObject(e)&&angular.isObject(t)&&angular.forEach(t,function(t,n){if(angular.isObject(t)){var i=e[n];i||(i={},e[n]=i),f(i,t)}else e[n]=t})}function g(e){return e&&k.indexOf(e)<0}function m(e,t){return e.replace(/\./g,"__")}function v(e,t){return e.replace(/__/g,".")}function y(e,t){if(e){var n=e.toLowerCase();return _.startsWith(n,"int")||"long"===n||"short"===n||"byte"===n||_.endsWith(n,"int")?"integer":"double"===n||"float"===n||"bigdecimal"===n?"number":"string"===n?t&&_.endsWith(t,"password")?"password":"string":e}return"string"}function b(){t.modelLoaded=!1,e.getConfigurationProperties(t.workspace,t.jolokia,t.pid,c)}if(t.deletePropDialog=new UI.Dialog,t.deletePidDialog=new UI.Dialog,t.addPropertyDialog=new UI.Dialog,t.factoryPid=i.factoryPid,t.pid=i.pid,t.createForm={pidInstanceName:null},t.newPid=t.factoryPid&&!t.pid,t.newPid&&(t.editMode=!0),t.pid&&!t.factoryPid){var w=t.pid.indexOf("-");w>0&&(t.factoryPid=t.pid.substring(0,w),t.factoryInstanceName=t.pid.substring(w+1,t.pid.length))}t.selectValues={},t.modelLoaded=!1,t.canSave=!1,t.setEditMode=function(e){t.editMode=e,t.formMode=e?"edit":"view",e&&t.entity||(t.entity={},b())};var x=t.factoryPid&&!i.pid;t.setEditMode(x),t.$on("hawtio.form.modelChange",function(){t.modelLoaded&&(u(),Core.$apply(t))}),t.pidSave=function(){var n={};angular.forEach(t.entity,function(e,i){var r=void 0;angular.isString(e)?r=e:angular.isDefined(e)&&(r=e.toString()),angular.isDefined(r)&&(n[v(i,t.pid)]=r)});var i=e.getHawtioConfigAdminMBean(o);if(i||t.inFabricProfile){var r=e.getSelectionConfigAdminMBean(t.workspace),a=t.pid,u=t.zkPid,c=t.factoryPid;if(!t.inFabricProfile&&c&&r&&!u)t.jolokia.execute(r,"createFactoryConfiguration",c,Core.onSuccess(function(e){a=e,a&&s(i,a,n)},l("Failed to create new PID: ")));else{if(t.newPid){var d=t.createForm.pidInstanceName;if(!d||!c)return;a=c+"-"+d}else u&&(a=u);s(i,a,n)}}},t.addPropertyConfirmed=function(e,n){t.addPropertyDialog.close(),t.configValues[e]={Key:e,Value:n,Type:"String"},u(),h()},t.deletePidProp=function(e){t.deleteKey=e.Key,t.deletePropDialog.open()},t.deletePidPropConfirmed=function(){t.deletePropDialog.close();var e=document.getElementById("pid."+t.deleteKey);e.parentElement.remove(),u()},t.deletePidConfirmed=function(){function n(e){Core.notification("error",e.error)}function i(e){Core.notification("success","Successfully deleted pid: "+t.pid),r.path(t.configurationsLink)}t.deletePidDialog.close();var o=e.getSelectionConfigAdminMBean(t.workspace);o&&t.jolokia.request({type:"exec",mbean:o,operation:"delete",arguments:[t.pid]},{error:n,success:i})};var k=["service.pid","service.factoryPid","fabric.zookeeper.pid"];b()}])}(Osgi||(Osgi={}));var Osgi;!function(e){e.ServiceController=e._module.controller("Osgi.ServiceController",["$scope","$filter","workspace","$templateCache","$compile",function(t,n,i,r,o){function a(n){var r={},o=function(e){angular.forEach(e.value,function(e,t){var n={Identifier:e.Identifier,Name:"",SymbolicName:e.SymbolicName,State:e.State,Version:e.Version,LastModified:e.LastModified,Location:e.Location};e.Headers["Bundle-Name"]&&(n.Name=e.Headers["Bundle-Name"].Value),r[n.Identifier]=n});var i=[];angular.forEach(n,function(e,t){angular.forEach(e.UsingBundles,function(t,n){e.UsingBundles[n]=r[t]}),i.push(e)}),t.services=i,Core.$apply(t)};i.jolokia.request({type:"exec",mbean:e.getSelectionBundleMBean(i),operation:"listBundles()"},{success:o,error:o})}n("date");t.workspace=i,t.services=[],t.selectedItems=[],t.mygrid={data:"services",showFilter:!1,showColumnMenu:!1,filterOptions:{filterText:"",useExternalFilter:!1},selectedItems:[],rowHeight:32,selectWithCheckboxOnly:!0,columnDefs:[{field:"BundleIdentifier",displayName:"Bundle",cellTemplate:'\n <div class="ngCellText">\n <a ng-href="/osgi/bundle/{{row.entity.Identifier}}">{{row.entity.Identifier}}</a>\n </div>'},{field:"objectClass",displayName:"Object Class(es)",cellTemplate:'\n <div class="ngCellText">\n <div ng-repeat="clazz in row.entity.objectClass">\n <span>\n {{clazz}}\n </span>\n </div>\n </div>'},{field:"UsingBundles",displayName:"Used by",cellTemplate:'\n <div class="ngCellText">\n <div ng-repeat="bundle in row.entity.UsingBundles">\n <a ng-href="/osgi/bundle/{{bundle.Identifier}}">{{bundle.Name || bundle.SymbolicName || bundle.Identifier}}</a>\n <!--\n <pre>\n {{bundle}}\n </pre>\n -->\n </div>\n </div>'}],primaryKeyFn:function(e){return e.BundleIdentifier}},t.selectedItems=t.mygrid.selectedItems,t.$watch("workspace.selection",function(){var t=e.getSelectionServiceMBean(i);if(t){var n=i.jolokia;n.request({type:"exec",mbean:t,operation:"listServices()"},Core.onSuccess(s))}});var s=function(n){var r=e.defaultServiceValues(i,t,n.value);a(r)}}])}(Osgi||(Osgi={}));var Osgi;!function(e){e._module.controller("Osgi.ServiceDependencyController",["$scope","$location","$routeParams","workspace","osgiDataService",function(t,n,i,r,o){t.init=function(){i.bundleFilter?t.bundleFilter=i.bundleFilter:t.bundleFilter="",i.pkgFilter?t.packageFilter=i.pkgFilter:t.packageFilter="","packages"==i.view?t.selectView="packages":t.selectView="services",i.hideUnused?t.hideUnused="true"==i.hideUnused:t.hideUnused=!0},t.updateLink=function(){var e=n.search();t.bundleFilter&&""!=t.bundleFilter?e.bundleFilter=t.bundleFilter:delete e.bundleFilter,t.packageFilter&&""!=t.packageFilter?e.pkgFilter=t.packageFilter:delete e.pkgFilter,e.view=t.selectView,t.hideUnused?e.hideUnused="true":e.hideUnused="false",n.search(e)},t.addToDashboardLink=function(){var e=angular.toJson(i),t="#/osgi/dependencies",n="OSGi dependencies",r=angular.toJson({size_x:2,size_y:2}),o="#/dashboard/add?tab=dashboard&href="+encodeURIComponent(t)+"&routeParams="+encodeURIComponent(e)+"&size="+encodeURIComponent(r)+"&title="+encodeURIComponent(n);return o},t.$on("$routeUpdate",function(){var e=n.search;e.bundleFilter?t.bundleFilter=i.bundleFilter:t.bundleFilter="",e.pkgFilter?t.packageFilter=i.pkgFilter:t.packageFilter="","packages"==e.view?t.selectView="packages":t.selectView="services",e.hideUnused?t.hideUnused="true"==i.hideUnused:t.hideUnused=!0,t.updateLink(),t.updateGraph()}),t.updateGraph=function(){t.updateLink(),t.updatePkgFilter();var n=new e.OsgiGraphBuilder(o,t.bundleFilter,t.packageFilter,"services"==t.selectView,"packages"==t.selectView,t.hideUnused);t.graph=n.buildGraph(),Core.$apply(t)},t.updatePkgFilter=function(){null==t.packageFilter||""==t.packageFilter?(t.selectView="services",t.disablePkg=!0):t.disablePkg=!1},t.init(),t.updateGraph()}])}(Osgi||(Osgi={})),angular.module("hawtio-integration-templates",[]).run(["$templateCache",function(e){e.put("plugins/activemq/html/browseQueue.html",'<div ng-controller="ActiveMQ.BrowseQueueController">\n <div ng-hide="showMessageDetails"> \n <div class="row">\n <div class="col-md-6">\n <input class="search-query col-md-12" type="text" ng-model="gridOptions.filterOptions.filterText"\n placeholder="Filter messages">\n </div>\n <div class="col-md-6 align-right">\n <div class="search-query">\n <button class="btn btn-default" ng-disabled="!gridOptions.selectedItems.length" ng-show="dlq" ng-click="retryMessages()"\n title="Moves the dead letter queue message back to its original destination so it can be retried" data-placement="bottom">\n <i class="fa fa-reply"></i> Retry\n </button>\n <button class="btn btn-default" ng-disabled="gridOptions.selectedItems.length !== 1" ng-click="resendMessage()"\n title="Edit the message to resend it" data-placement="bottom">\n <i class="fa fa-share-alt"></i> Resend\n </button>\n\n <button class="btn btn-default" ng-disabled="!gridOptions.selectedItems.length" ng-click="moveMessages()"\n title="Move the selected messages to another destination" data-placement="bottom">\n <i class="fa fa-share-alt"></i> Move\n </button>\n <button class="btn btn-default" ng-disabled="!gridOptions.selectedItems.length"\n ng-click="deleteMessages()"\n title="Delete the selected messages">\n <i class="fa fa-remove"></i> Delete\n </button>\n <button class="btn btn-default" ng-click="refresh()"\n title="Refreshes the list of messages">\n <i class="fa fa-refresh"></i>\n </button>\n </div>\n </div>\n </div>\n\n <div class="row">\n <table class="table table-striped" hawtio-simple-table="gridOptions"></table>\n </div>\n </div>\n\n <div ng-show="showMessageDetails">\n <div class="row">\n <div class="col-md-4">\n <button class="btn btn-primary" ng-click="showMessageDetails = false"><i class="fa fa-arrow-left"></i> Back</button>\n </div>\n <div class="col-md-4 align-center">\n <div hawtio-pager="messages" on-index-change="selectRowIndex" row-index="rowIndex"></div>\n </div>\n <div class="col-md-4 align-right">\n\n <button class="btn btn-default" ng-disabled="!gridOptions.selectedItems.length" ng-click="moveMessages()"\n title="Move the selected messages to another destination" data-placement="bottom">\n <i class="fa fa-share-alt"></i> Move\n </button>\n\n <button class="btn btn-danger" ng-disabled="!gridOptions.selectedItems.length"\n ng-click="deleteMessages()"\n title="Delete the selected messages">\n <i class="fa fa-remove"></i> Delete\n </button>\n\n </div>\n </div>\n\n <div class="row">\n <div class="expandable closed">\n <div title="Headers" class="title">\n <i class="expandable-indicator"></i> Headers & Properties\n </div>\n <div class="expandable-body well">\n <table class="table table-condensed table-striped">\n <thead>\n <tr>\n <th>Header</th>\n <th>Value</th>\n </tr>\n </thead>\n <tbody compile="row.headerHtml"></tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div class="row">\n <div>Displaying body as <span ng-bind="row.textMode"></span></div>\n <div hawtio-editor="row.bodyText" read-only="true" mode=\'mode\'></div>\n </div>\n\n </div>\n\n <script type="text/ng-template" id="activemqMoveMessageDialog.html">\n <div class="modal-header">\n <span>Move messages?</span>\n </div>\n <div class="modal-body">\n <p>Move\n <ng-pluralize count="gridOptions.selectedItems.length"\n when="{\'1\': \'message\', \'other\': \'{} messages\'}"></ng-pluralize>\n to: <input type="text" ng-model="queueName" placeholder="Queue name"\n typeahead="title.unescapeHTML() for title in queueNames($viewValue) | filter:$viewValue" typeahead-editable=\'true\'></p>\n <p>\n You cannot undo this operation.<br>\n Though after the move you can always move the\n <ng-pluralize count="gridOptions.selectedItems.length"\n when="{\'1\': \'message\', \'other\': \'messages\'}"></ng-pluralize>\n back again.\n </p>\n </div>\n <div class="modal-footer">\n <button class="btn btn-info" \n ng-click="close(true)">Move</button>\n <button class="btn btn-default" \n ng-click="close(false)">Cancel</button>\n </div>\n </script>\n\n</div>\n\n'),e.put("plugins/activemq/html/createDestination.html",'<form class="form-horizontal" ng-controller="ActiveMQ.DestinationController">\n\n <div class="alert alert-info">\n <span class="pficon pficon-info"></span>The JMS API does not define a standard address syntax. <p></p> Although a\n standard address syntax was considered, it was decided that the differences in address semantics between existing\n message-oriented middleware (MOM) products were too wide to bridge with a single syntax.\n </div>\n\n <div class="form-group">\n <label class="col-sm-2 control-label" for="name-markup">{{destinationTypeName}} name</label>\n\n <div class="col-sm-10">\n <input id="name-markup" class="form-control" type="text" size="60" style="margin-left:15px;" maxlength="300"\n name="destinationName" ng-model="destinationName" placeholder="{{destinationTypeName}} name"/>\n </div>\n </div>\n <div class="form-group">\n <label class="col-sm-2 control-label">Destination type</label>\n\n <div class="col-sm-10">\n <label class="checkbox">\n <input type="radio" ng-model="queueType" value="true"> Queue\n </label>\n <label class="checkbox">\n <input type="radio" ng-model="queueType" value="false"> Topic\n </label>\n </div>\n </div>\n\n <div class="control-group col-md-12">\n <button type="submit" class="btn btn-primary" ng-click="createDestination(destinationName, queueType)"\n ng-disabled="!destinationName">Create {{destinationTypeName}}\n </button>\n </div>\n\n</form>\n'),e.put("plugins/activemq/html/deleteQueue.html",'<div ng-controller="ActiveMQ.DestinationController">\n <div class="row">\n\n <div class="control-group">\n\n <div class="alert alert-warning">\n <span class="pficon-layered">\n <span class="pficon pficon-warning-triangle"></span>\n <span class="pficon pficon-warning-exclamation"></span>\n </span>\n <strong>Warning:</strong> these operations cannot be undone. Please be careful!\n </div>\n </div>\n </div>\n\n <div class="row">\n <div class="col-md-6">\n <div class="control-group">\n <button type="submit" class="btn btn-warning" ng-click="deleteDialog = true">Delete queue\n \'{{name}}\'\n </button>\n <label>This will remove the queue completely.</label>\n </div>\n </div>\n <div class="col-md-6">\n <div class="control-group">\n <button type="submit" class="btn btn-warning" ng-click="purgeDialog = true">Purge queue\n \'{{name}}\'\n </button>\n <label>Purges all the current messages on the queue.</label>\n </div>\n </div>\n </div>\n\n <div hawtio-confirm-dialog="deleteDialog"\n title="Confirm delete queue"\n ok-button-text="Delete"\n cancel-button-text="Cancel"\n on-ok="deleteDestination()">\n <div class="dialog-body">\n <p>You are about to delete the <b>{{name}}</b> queue</p>\n <p>This operation cannot be undone so please be careful.</p>\n </div>\n </div>\n\n <div hawtio-confirm-dialog="purgeDialog"\n title="Confirm purge queue"\n ok-button-text="Purge"\n cancel-button-text="Cancel"\n on-ok="purgeDestination()">\n <div class="dialog-body">\n <p>You are about to purge the <b>{{name}}</b> queue</p>\n <p>This operation cannot be undone so please be careful.</p>\n </div>\n </div>\n\n</div>\n'),e.put("plugins/activemq/html/deleteTopic.html",'<div ng-controller="ActiveMQ.DestinationController">\n <div class="row">\n <div class="control-group">\n <div class="alert alert-warning">\n <span class="pficon-layered">\n <span class="pficon pficon-warning-triangle"></span>\n <span class="pficon pficon-warning-exclamation"></span>\n </span>\n <strong>Warning:</strong> this operation cannot be undone. Please be careful!\n </div>\n </div>\n </div>\n\n <div class="row">\n <div class="col-md-12">\n <div class="control-group">\n <button type="submit" class="btn btn-warning" ng-click="deleteDialog = true">Delete topic\n \'{{name}}\'\n </button>\n <label>This will remove the topic completely.</label>\n </div>\n </div>\n </div>\n\n <div hawtio-confirm-dialog="deleteDialog"\n title="Confirm delete topic"\n ok-button-text="Delete"\n cancel-button-text="Cancel"\n on-ok="deleteDestination()">\n <div class="dialog-body">\n <p>You are about to delete the <b>{{name}}</b> topic</p>\n <p>This operation cannot be undone so please be careful.</p>\n </div>\n </div>\n\n</div>\n'),e.put("plugins/activemq/html/durableSubscribers.html",'<div ng-controller="ActiveMQ.DurableSubscriberController">\n\n <div class="row">\n <div class="col-md-12">\n <div class="pull-right">\n <form class="form-inline">\n <button class="btn btn-default" ng-click="createSubscriberDialog.open()"\n hawtio-show object-name="{{workspace.selection.objectName}}" method-name="createDurableSubscriber"\n title="Create durable subscriber">\n <i class="fa fa-plus"></i> Create\n </button>\n <button class="btn btn-default" ng-click="deleteSubscriberDialog.open()"\n hawtio-show object-name="{{$scope.gridOptions.selectedItems[0]._id}}" method-name="destroy"\n title="Destroy durable subscriber" ng-disabled="gridOptions.selectedItems.length != 1">\n <i class="fa fa-exclamation"></i> Destroy\n </button>\n <button class="btn btn-default" ng-click="refresh()"\n title="Refreshes the list of subscribers">\n <i class="fa fa-refresh"></i>\n </button>\n </form>\n </div>\n </div>\n </div>\n\n <div class="row">\n <div class="gridStyle" ng-grid="gridOptions"></div>\n </div>\n\n <div modal="createSubscriberDialog.show">\n <form name="createSubscriber" class="form-horizontal no-bottom-margin" ng-submit="doCreateSubscriber(clientId, subscriberName, topicName, subSelector)">\n <div class="modal-header"><h4>Create Durable Subscriber</h4></div>\n <div class="modal-body">\n <label>Client Id: </label>\n <input name="clientId" class="input-xlarge" type="text" ng-model="clientId" required>\n <label>Subscriber name: </label>\n <input name="subscriberName" class="input-xlarge" type="text" ng-model="subscriberName" required>\n <label>Topic name: </label>\n <input name="topicName" class="input-xlarge" type="text" ng-model="topicName" required typeahead="title for title in topicNames($viewValue) | filter:$viewValue" typeahead-editable=\'true\'>\n <label>Selector: </label>\n <input name="subSelector" class="input-xlarge" type="text" ng-model="subSelector">\n </div>\n <div class="modal-footer">\n <input class="btn btn-success" type="submit" value="Create">\n <input class="btn btn-primary" type="button" ng-click="createSubscriberDialog.close()" value="Cancel">\n </div>\n </form>\n </div>\n\n <div hawtio-slideout="showSubscriberDialog.show" title="Details">\n <div class="dialog-body">\n\n <div class="row">\n <div class="pull-right">\n <form class="form-inline">\n\n <button class="btn btn-danger" ng-disabled="showSubscriberDialog.subscriber.Status == \'Active\'"\n ng-click="deleteSubscriberDialog.open()"\n title="Delete subscriber">\n <i class="fa fa-remove"></i> Delete\n </button>\n\n <button class="btn btn-default" ng-click="showSubscriberDialog.close()" title="Close this dialog">\n <i class="fa fa-remove"></i> Close\n </button>\n\n </form>\n </div>\n </div>\n\n <div class="row">\n <div class="expandable-body well">\n <table class="table table-condensed table-striped">\n <thead>\n <tr>\n <th>Property</th>\n <th>Value</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td class="property-name">Client Id</td>\n <td class="property-value">{{showSubscriberDialog.subscriber["ClientId"]}}</td>\n </tr>\n <tr>\n <td class="property-name">Subscription Name</td>\n <td class="property-value">{{showSubscriberDialog.subscriber["SubscriptionName"]}}</td>\n </tr>\n <tr>\n <td class="property-name">Topic Name</td>\n <td class="property-value">{{showSubscriberDialog.subscriber["DestinationName"]}}</td>\n </tr>\n <tr>\n <td class="property-name">Selector</td>\n <td class="property-value">{{showSubscriberDialog.subscriber["Selector"]}}</td>\n </tr>\n <tr>\n <td class="property-name">Status</td>\n <td class="property-value">{{showSubscriberDialog.subscriber.Status}}</td>\n </tr>\n <tr>\n <td class="property-name">Enqueue Counter</td>\n <td class="property-value">{{showSubscriberDialog.subscriber["EnqueueCounter"]}}</td>\n </tr>\n <tr>\n <td class="property-name">Dequeue Counter</td>\n <td class="property-value">{{showSubscriberDialog.subscriber["DequeueCounter"]}}</td>\n </tr>\n <tr>\n <td class="property-name">Dispatched Counter</td>\n <td class="property-value">{{showSubscriberDialog.subscriber["DispatchedCounter"]}}</td>\n </tr>\n <tr>\n <td class="property-name">Pending Size</td>\n <td class="property-value">{{showSubscriberDialog.subscriber["PendingQueueSize"]}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n </div>\n\n </div>\n\n <div hawtio-confirm-dialog="deleteSubscriberDialog.show" ok-button-text="Yes" cancel-button-text="No" on-ok="deleteSubscribers()">\n <div class="dialog-body">\n <p>Are you sure you want to delete the subscriber</p>\n </div>\n </div>\n\n</div>'),e.put("plugins/activemq/html/jobs.html",'<div ng-controller="ActiveMQ.JobSchedulerController">\n\n <div class="row">\n <div class="col-md-12">\n <div class="pull-right">\n <form class="form-inline">\n <button class="btn btn-default" ng-disabled="!gridOptions.selectedItems.length"\n hawtio-show object-name="{{workspace.selection.objectName}}" method-name="removeJob"\n ng-click="deleteJobsDialog.open()"\n title="Delete the selected jobs">\n <i class="fa fa-remove"></i> Delete\n </button>\n <button class="btn btn-default" ng-click="refresh()"\n title="Refreshes the list of subscribers">\n <i class="fa fa-refresh"></i>\n </button>\n </form>\n </div>\n </div>\n </div>\n\n <div class="row">\n <div class="gridStyle" ng-grid="gridOptions"></div>\n </div>\n\n <div hawtio-confirm-dialog="deleteJobsDialog.show" ok-button-text="Yes" cancel-button-text="No" on-ok="deleteJobs()">\n <div class="dialog-body">\n <p>Are you sure you want to delete the jobs</p>\n </div>\n </div>\n\n</div>'),e.put("plugins/activemq/html/layoutActiveMQTree.html",'<script type="text/ng-template" id="ActiveMQTreeHeader.html">\n <div class="tree-header" ng-controller="ActiveMQ.TreeHeaderController">\n <div class="left">\n </div>\n <div class="right">\n <i class="fa fa-chevron-down clickable"\n title="Expand all nodes"\n ng-click="expandAll()"></i>\n <i class="fa fa-chevron-up clickable"\n title="Unexpand all nodes"\n ng-click="contractAll()"></i>\n </div>\n </div>\n</script>\n\n<hawtio-pane position="left" width="300" header="ActiveMQTreeHeader.html">\n <div id="tree-container"\n ng-controller="Jmx.MBeansController">\n <div id="activemqtree"\n ng-controller="ActiveMQ.TreeController"></div>\n </div>\n</hawtio-pane>\n<div class="row">\n <!--\n <ng-include src="\'plugins/jmx/html/subLevelTabs.html\'"></ng-include>\n -->\n <div id="properties" ng-view></div>\n</div>\n'),e.put("plugins/activemq/html/preferences.html",'<div ng-controller="ActiveMQ.PreferencesController">\n <div hawtio-form-2="config" entity="entity"></div>\n</div>\n'),e.put("plugins/camel/html/attributeToolBarContext.html",'<div class="row">\n <div class="col-md-6" ng-controller="Camel.AttributesToolBarController">\n <div class="control-group">\n <button class="btn btn-default" ng-disabled="!anySelectionHasState([\'stop\', \'suspend\'])" ng-click="start()"><i\n class="fa fa-play-circle"></i> Start\n </button>\n <button class="btn btn-default" ng-disabled="!anySelectionHasState(\'start\')" ng-click="pause()"><i class="fa fa-pause"></i>\n Pause\n </button>\n <button class="btn btn-default" ng-disabled="!anySelectionHasState([\'start\', \'suspend\'])" ng-click="deleteDialog = true"><i\n class="fa fa-remove"></i> Destroy\n </button>\n </div>\n\n <div hawtio-confirm-dialog="deleteDialog"\n ok-button-text="Delete"\n on-ok="stop()">\n <div class="dialog-body">\n <p>You are about to delete this Camel Context.</p>\n <p>This operation cannot be undone so please be careful.</p>\n </div>\n </div>\n\n </div>\n <div class="col-md-6">\n <div class="control-group">\n <input class="col-md-12 search-query" type="text" ng-model="$parent.gridOptions.filterOptions.filterText" placeholder="Filter...">\n </div>\n </div>\n</div>\n'),
|
|
|
25806
|
+i?r.execute(i,o,e,Core.onSuccess(a)):Core.notification("error","Could not find the Broker MBean!")}},t.deleteDestination=function(){var e=l(r),i=n.selection,o=i.entries;if(e&&i&&r&&o){var a=(i.domain,o.Destination||o.destinationName||i.title);a=_.unescape(a);var u,c="Topic"!==(o.Type||o.destinationType);c?(u="removeQueue(java.lang.String)",t.message="Deleted queue "+a):(u="removeTopic(java.lang.String)",t.message="Deleted topic "+a),r.execute(e,u,a,Core.onSuccess(s))}},t.purgeDestination=function(){var e=n.getSelectedMBeanName(),i=n.selection,o=i.entries;if(e&&i&&r&&o){var s=o.Destination||o.destinationName||i.title;s=_.unescape(s);var l="purge()";t.message="Purged queue "+s,r.execute(e,l,Core.onSuccess(a))}}}])}(ActiveMQ||(ActiveMQ={}));var ActiveMQ;!function(e){e._module.controller("ActiveMQ.DurableSubscriberController",["$scope","workspace","jolokia",function(t,n,i){function r(){var e=a(i);e&&(t.durableSubscribers=[],i.request({type:"read",mbean:e,attribute:["DurableTopicSubscribers"]},Core.onSuccess(function(e){return o(e,"DurableTopicSubscribers","Active")})),i.request({type:"read",mbean:e,attribute:["InactiveDurableTopicSubscribers"]},Core.onSuccess(function(e){return o(e,"InactiveDurableTopicSubscribers","Offline")})))}function o(n,i,r){var o=n.value;e.log.debug("Got data: ",o),t.durableSubscribers.push.apply(t.durableSubscribers,o[i].map(function(e){var t=e.objectName,n=Core.objectNameProperties(t);return"objectName"in e||("canonicalName"in e&&(t=e.canonicalName),n=_.cloneDeep(e.keyPropertyList)),n._id=t,n.status=r,n})),Core.$apply(t)}function a(t){var i=null,r=n.selection;if(r&&e.isBroker(n)&&r.objectName)return r.objectName;var o=r.folderNames,a=r?r.parent:null;return r&&a&&t&&o&&o.length>1&&(i=a.objectName,!i&&a&&(i=a.parent.objectName),i||(i=""+o[0]+":BrokerName="+o[1]+",Type=Broker")),i}t.refresh=r,t.durableSubscribers=[],t.tempData=[],t.createSubscriberDialog=new UI.Dialog,t.deleteSubscriberDialog=new UI.Dialog,t.showSubscriberDialog=new UI.Dialog,t.topicName="",t.clientId="",t.subscriberName="",t.subSelector="",t.gridOptions={selectedItems:[],data:"durableSubscribers",displayFooter:!1,showFilter:!1,showColumnMenu:!0,enableCellSelection:!1,enableColumnResize:!0,enableColumnReordering:!0,selectWithCheckboxOnly:!1,showSelectionCheckbox:!1,multiSelect:!1,displaySelectionCheckbox:!1,filterOptions:{filterText:""},maintainColumnRatios:!1,columnDefs:[{field:"destinationName",displayName:"Topic",width:"30%"},{field:"clientId",displayName:"Client ID",width:"30%"},{field:"consumerId",displayName:"Consumer ID",cellTemplate:'<div class="ngCellText"><span ng-hide="row.entity.status != \'Offline\'">{{row.entity.consumerId}}</span><a ng-show="row.entity.status != \'Offline\'" ng-click="openSubscriberDialog(row)">{{row.entity.consumerId}}</a></div>',width:"30%"},{field:"status",displayName:"Status",width:"10%"}],primaryKeyFn:function(e){return e.destinationName+"/"+e.clientId+"/"+e.consumerId}},t.doCreateSubscriber=function(e,n,o,s){t.createSubscriberDialog.close(),t.clientId=e,t.subscriberName=n,t.topicName=o,t.subSelector=s,Core.isBlank(t.subSelector)&&(t.subSelector=null);var l=a(i);l?i.execute(l,"createDurableSubscriber(java.lang.String, java.lang.String, java.lang.String, java.lang.String)",t.clientId,t.subscriberName,t.topicName,t.subSelector,Core.onSuccess(function(){Core.notification("success","Created durable subscriber "+e),t.clientId="",t.subscriberName="",t.topicName="",t.subSelector="",r()})):Core.notification("error","Could not find the Broker MBean!")},t.deleteSubscribers=function(){var e=t.gridOptions.selectedItems[0]._id;i.execute(e,"destroy()",Core.onSuccess(function(){t.showSubscriberDialog.close(),Core.notification("success","Deleted durable subscriber"),r(),t.gridOptions.selectedItems.splice(0,t.gridOptions.selectedItems.length)}))},t.openSubscriberDialog=function(e){i.request({type:"read",mbean:e.entity._id},Core.onSuccess(function(n){t.showSubscriberDialog.subscriber=n.value,t.showSubscriberDialog.subscriber.Status=e.entity.status,console.log("Subscriber is now "+t.showSubscriberDialog.subscriber),Core.$apply(t),setTimeout(function(){t.showSubscriberDialog.open(),Core.$apply(t)},100)}))},t.topicNames=function(t){var i=e.getSelectionTopicsFolder(n);return i?i.children.map(function(e){return e.title}):[]},t.$watch("workspace.selection",function(){n.moveIfViewInvalid()||setTimeout(r,50)})}])}(ActiveMQ||(ActiveMQ={}));var ActiveMQ;!function(e){e._module.controller("ActiveMQ.JobSchedulerController",["$scope","workspace","jolokia",function(e,t,n){function i(){var i=t.selection;if(i){var o=i.objectName;o&&n.request({type:"read",mbean:o,attribute:"AllJobs"},Core.onSuccess(r))}Core.$apply(e)}function r(t){var n=t.value;angular.isArray(n)?e.jobs=n:(e.jobs=[],angular.forEach(n,function(t,n){e.jobs.push(t)})),Core.$apply(e)}function o(){}function a(){e.gridOptions.selectedItems.splice(0),Core.notification("success",e.message),setTimeout(i,50)}e.refresh=i,e.jobs=[],e.deleteJobsDialog=new UI.Dialog,e.gridOptions={selectedItems:[],data:"jobs",displayFooter:!1,showFilter:!1,showColumnMenu:!0,enableColumnResize:!0,enableColumnReordering:!0,filterOptions:{filterText:""},selectWithCheckboxOnly:!0,showSelectionCheckbox:!0,maintainColumnRatios:!1,columnDefs:[{field:"jobId",displayName:"Job ID",width:"25%"},{field:"cronEntry",displayName:"Cron Entry",width:"10%"},{field:"delay",displayName:"Delay",width:"5%"},{field:"repeat",displayName:"repeat",width:"5%"},{field:"period",displayName:"period",width:"5%"},{field:"start",displayName:"Start",width:"25%"},{field:"next",displayName:"Next",width:"25%"}],primaryKeyFn:function(e){return e.jobId}},e.$watch("workspace.selection",function(){t.moveIfViewInvalid()||setTimeout(i,50)}),e.deleteJobs=function(){var i=t.selection,r=i.objectName;if(r&&i){var s=e.gridOptions.selectedItems;e.message="Deleted "+Core.maybePlural(s.length,"job");var l="removeJob(java.lang.String)";angular.forEach(s,function(e,t){var i=e.jobId;if(i){var u=t+1<s.length?o:a;n.execute(r,l,i,Core.onSuccess(u))}})}}}])}(ActiveMQ||(ActiveMQ={}));var ActiveMQ;!function(e){e._module.controller("ActiveMQ.PreferencesController",["$scope","localStorage","userDetails","$rootScope",function(e,t,n,i){var r={properties:{activemqUserName:{type:"string",description:"The user name to be used when connecting to the broker"},activemqPassword:{type:"password",description:"Password to be used when connecting to the broker"},activemqFilterAdvisoryTopics:{type:"boolean","default":"false",description:"Whether to exclude advisory topics in tree/table"},activemqBrowseBytesMessages:{type:"number","enum":{"Hex and text":1,"Decimal and text":2,Hex:4,Decimal:8,Off:99},description:"Browsing byte messages should display the message body as"}}};e.entity=e,e.config=r,Core.initPreferenceScope(e,t,{activemqUserName:{value:n.username?n.username:""},activemqPassword:{value:n.password?n.password:""},activemqBrowseBytesMessages:{value:1,converter:parseInt},activemqFilterAdvisoryTopics:{value:!1,converter:Core.parseBooleanValue,post:function(e){i.$broadcast("jmxTreeUpdated")}}})}])}(ActiveMQ||(ActiveMQ={}));var ActiveMQ;!function(e){e._module.controller("ActiveMQ.TreeHeaderController",["$scope",function(e){e.expandAll=function(){Tree.expandAll("#activemqtree")},e.contractAll=function(){Tree.contractAll("#activemqtree")}}]),e._module.controller("ActiveMQ.TreeController",["$scope","$location","workspace","localStorage",function(t,n,i,r){function o(){e.log.debug("workspace tree has changed, lets reload the activemq tree");var o=[],s=i.tree;if(s){var l="org.apache.activemq",u=s.get(l);if(u&&(o=u.children),o.length){var c=o[0];if(!c.typeName&&c.children.length<4){var d=[];angular.forEach(o,function(e){d=d.concat(e.children)}),o=d}}o.forEach(function(e){var t=e.children;if(t){Tree.sanitize(t);var n=t.findIndex(function(e){return"Topic"===e.title});if(n>0){var o=t[n],a="ActiveMQ-allTopics-"+e.title,s=_.clone(o.children);i.mapData[a]=s;var l=Core.parseBooleanValue(r.activemqFilterAdvisoryTopics);if(l){if(o&&o.children){var u=_.filter(o.children,function(e){return!_.startsWith(e.title,"ActiveMQ.Advisory")});o.children=u}}else s&&(o.children=s)}}});var p=$("#activemqtree");Jmx.enableTree(t,n,i,p,o,!0),setTimeout(a,50)}}function a(){Jmx.updateTreeSelectionFromURLAndAutoSelect(n,$("#activemqtree"),function(e){var t=e.getChildren()[0];return t&&"Queue"===t.data.title?(e=t,e.expand(!0),e):null},!0)}t.$on("$routeChangeSuccess",function(e,t,n){setTimeout(a,50)}),t.$watch("workspace.tree",function(){o()}),t.$on("jmxTreeUpdated",function(){o()})}])}(ActiveMQ||(ActiveMQ={}));var Karaf;!function(e){function t(e,t){if(!angular.isDefined(e))return t[0];var n=t.findIndex(function(t){return t.id===e.id});return n!==-1?t[n]:t[0]}function n(t,n,i,r,o){e.log.info("installing URI: ",i),n.request({type:"exec",mbean:C(t),operation:"addRepository(java.lang.String)",arguments:[i]},Core.onSuccess(r,{error:o}))}function i(t,n,i,r,o){e.log.info("uninstalling URI: ",i),n.request({type:"exec",mbean:C(t),operation:"removeRepository(java.lang.String)",arguments:[i]},Core.onSuccess(r,{error:o}))}function r(e,t,n,i,r,o){t.request({type:"exec",mbean:C(e),operation:"installFeature(java.lang.String, java.lang.String)",arguments:[n,i]},Core.onSuccess(r,{error:o}))}function o(e,t,n,i,r,o){t.request({type:"exec",mbean:C(e),operation:"uninstallFeature(java.lang.String, java.lang.String)",arguments:[n,i]},Core.onSuccess(r,{error:o}))}function a(e){var t=e;return angular.isArray(e)||(t=[e]),t}function s(e,t,n){return"<a href='"+Core.url("#/karaf/feature/"+t+"/"+n+e.hash())+"'>"+n+"</a>"}function l(e,t,n){var i=[],r=[];return h(e,i,r),_.find(i,function(e){return e.Name==t&&e.Version==n})}function u(e){return T.test(e)}function c(e){return A.test(e)}function d(e){return D.test(e)}function p(e){return I.test(e)}function h(e,t,n){var i=e.Features;angular.forEach(e.Repositories,function(e){n.push({id:e.Name,uri:e.Uri}),i&&angular.forEach(e.Features,function(n){angular.forEach(n,function(n){if(void 0!==i[n.Name]){var r=_.cloneDeep(i[n.Name][n.Version]);r.Id=n.Name+"/"+n.Version,r.RepositoryName=e.Name,r.RepositoryURI=e.Uri,t.push(r)}})})})}function f(e,t,n){var i=[];return angular.forEach(n,function(n){i.push({Name:n,State:g(b(e,t,n))})}),i}function g(e){switch(e){case 2:return"Enabled";case 4:return"Unsatisfied";case 8:return"Activating";case 16:return"Active";case 32:return"Registered";case 64:return"Factory";case 128:return"Deactivating";case 256:return"Destroying";case 1024:return"Disabling";case 2048:return"Disposing"}return"Unknown"}function m(e,t){var n=S(e),i=t.request({type:"read",mbean:n,arguments:[]});return"Components"in i.value?i.value.Components.values:(i=t.request({type:"exec",mbean:n,operation:"listComponents()"}),f(e,t,i.value))}function v(e,t,n){var i=m(e,t);return i.find(function(e){return e.Name==n})}function y(e,t,n){var i=t.request({type:"exec",mbean:S(e),operation:"isComponentActive(java.lang.String)",arguments:[n]});return i.value}function b(e,t,n){var i=t.request({type:"exec",mbean:S(e),operation:"componentState(java.lang.String)",arguments:[n]});return i.value}function w(e,t,n,i,r){t.request({type:"exec",mbean:S(e),operation:"activateComponent(java.lang.String)",arguments:[n]},Core.onSuccess(i,{error:r}))}function x(e,t,n,i,r){t.request({type:"exec",mbean:S(e),operation:"deactiveateComponent(java.lang.String)",arguments:[n]},Core.onSuccess(i,{error:r}))}function k(e,t,n){angular.forEach(t,function(t){angular.forEach(t,function(t){var i=l(e,t.Name,t.Version);i.id=t.Name+"/"+t.Version,n.push(i)})})}function C(e){if(e){var t=e.mbeanTypesToDomain.features||e.mbeanTypesToDomain.feature||{},n=t["org.apache.karaf"]||{},i=n.objectName;if(i)return i;var r=e.tree.navigate("org.apache.karaf","features");if(!r&&(r=e.tree.navigate("org.apache.karaf"))){var o=r.children;r=null,angular.forEach(o,function(e){r||(r=e.navigate("features"))})}if(r){var o=r.children;if(o){var a=o[0];if(a)return a.objectName}return r.objectName}}return null}function S(e){if(e){var t=e.mbeanTypesToDomain.scr||{},n=t["org.apache.karaf"]||{},i=n.objectName;if(i)return i;var r=e.tree.navigate("org.apache.karaf","scr");if(!r&&(r=e.tree.navigate("org.apache.karaf"))){var o=r.children;r=null,angular.forEach(o,function(e){r||(r=e.navigate("scr"))})}if(r){var o=r.children;if(o){var a=o[0];if(a)return a.objectName}return r.objectName}}return null}e.log=Logger.get("Karaf"),e.setSelect=t,e.installRepository=n,e.uninstallRepository=i,e.installFeature=r,e.uninstallFeature=o,e.toCollection=a,e.featureLinks=s,e.extractFeature=l;var $=["^org.apache.aries","^org.apache.karaf","^activemq-karaf","^org.apache.commons","^org.apache.felix","^io.fabric8","^io.fabric8.fab","^io.fabric8.insight","^io.fabric8.mq","^io.fabric8.patch","^io.fabric8.runtime","^io.fabric8.security","^org.apache.geronimo.specs","^org.apache.servicemix.bundles","^org.objectweb.asm","^io.hawt","^javax.mail","^javax","^org.jvnet","^org.mvel2","^org.apache.mina.core","^org.apache.sshd.core","^org.apache.neethi","^org.apache.servicemix.specs","^org.apache.xbean","^org.apache.santuario.xmlsec","^biz.aQute.bndlib","^groovy-all","^com.google.guava","jackson-\\w+-asl","^com.fasterxml.jackson","^org.ops4j","^org.springframework","^bcprov$","^jline$","scala-library$","^org.scala-lang","^stax2-api$","^woodstox-core-asl","^org.jboss.amq.mq-fabric","^gravia-","^joda-time$","^org.apache.ws","-commands$","patch.patch","org.fusesource.insight","activeio-core","activemq-osgi","^org.eclipse.jetty","org.codehaus.jettison.jettison","org.jledit.core","org.fusesource.jansi","org.eclipse.equinox.region"],T=new RegExp($.join("|")),E=["^org.apache.camel","camel-karaf-commands$","activemq-camel$"],D=new RegExp(E.join("|")),M=["^org.apache.cxf"],I=new RegExp(M.join("|")),P=["^org.apache.activemq","activemq-camel$"],A=new RegExp(P.join("|"));e.isPlatformBundle=u,e.isActiveMQBundle=c,e.isCamelBundle=d,e.isCxfBundle=p,e.populateFeaturesAndRepos=h,e.createScrComponentsView=f,e.getComponentStateDescription=g,e.getAllComponents=m,e.getComponentByName=v,e.isComponentActive=y,e.getComponentState=b,e.activateComponent=w,e.deactivateComponent=x,e.populateDependencies=k,e.getSelectionFeaturesMBean=C,e.getSelectionScrMBean=S}(Karaf||(Karaf={}));var Karaf;!function(e){var t="karaf";e._module=angular.module(t,["ngResource","hawtio-core"]),e._module.config(["$routeProvider",function(e){e.when("/osgi/server",{templateUrl:"plugins/karaf/html/server.html"}).when("/osgi/features",{templateUrl:"plugins/karaf/html/features.html",reloadOnSearch:!1}).when("/osgi/scr-components",{templateUrl:"plugins/karaf/html/scr-components.html"}).when("/osgi/scr-component/:name",{templateUrl:"plugins/karaf/html/scr-component.html"}).when("/osgi/feature/:name/:version",{templateUrl:"plugins/karaf/html/feature.html"})}]),e._module.run(["workspace","viewRegistry","helpRegistry",function(e,t,n){n.addUserDoc("karaf","plugins/karaf/doc/help.md",function(){return e.treeContainsDomainAndProperties("org.apache.karaf")})}]),hawtioPluginLoader.addModule(t)}(Karaf||(Karaf={}));var Karaf;!function(e){e._module.controller("Karaf.FeatureController",["$scope","jolokia","workspace","$routeParams",function(t,n,i,r){function o(n){if(t.row=e.extractFeature(n.value,t.name,t.version),t.row){l(t.row);var i=[];angular.forEach(t.row.Dependencies,function(e,t){angular.forEach(e,function(e,n){i.push({Name:t,Version:n})})}),t.row.Dependencies=i}Core.$apply(t)}function a(e){Osgi.defaultBundleValues(i,t,e.values),angular.forEach(e.value,function(e){var n=e.Location;t.bundlesByLocation[n]=e})}function s(){var t=e.getSelectionFeaturesMBean(i),n=Osgi.getSelectionBundleMBean(i),r=i.jolokia;n&&a(r.request({type:"exec",mbean:n,operation:"listBundles()"})),t&&r.request({type:"read",mbean:t},Core.onSuccess(o))}function l(e){var n=[];angular.forEach(e.Bundles,function(e){var i=t.bundlesByLocation[e];i?(i.Installed=!0,n.push(i)):n.push({Location:e,Installed:!1})}),e.BundleDetails=n}t.name=r.name,t.version=r.version,t.bundlesByLocation={},t.props="properties",s(),t.install=function(){e.installFeature(i,n,t.name,t.version,function(){Core.notification("success","Installed feature "+t.name)},function(e){Core.notification("error","Failed to install feature "+t.name+" due to "+e.error)})},t.uninstall=function(){e.uninstallFeature(i,n,t.name,t.version,function(){Core.notification("success","Uninstalled feature "+t.name)},function(e){Core.notification("error","Failed to uninstall feature "+t.name+" due to "+e.error)})},t.toProperties=function(e){var t="";return angular.forEach(e,function(e,n){t+=e.Key+" = "+e.Value+"\n"}),t.trim()}}])}(Karaf||(Karaf={}));var Karaf;!function(e){e._module.controller("Karaf.FeaturesController",["$scope","$location","workspace","jolokia",function(t,n,i,r){function o(n){var i=angular.toJson(n.value);if(t.responseJson!==i){t.responseJson=i,null===n.value.Features?t.featuresError=!0:t.featuresError=!1,t.features=[],t.repositories=[];var r=[],o=[];e.populateFeaturesAndRepos(n.value,r,o);var a=r.filter(function(e){return Core.parseBooleanValue(e.Installed)}),s=r.filter(function(e){return!Core.parseBooleanValue(e.Installed)});if(t.installedFeatures=_.sortBy(a,function(e){return e.Name}),s=_.sortBy(s,function(e){return e.Name}),_.sortBy(o,"id").forEach(function(e){t.repositories.push({repository:e.id,uri:e.uri,features:_.filter(s,function(t){return t.RepositoryName===e.id})})}),!Core.isBlank(t.newRepositoryURI)){var l=_.find(o,function(e){return e.uri===t.newRepositoryURI});l&&(t.selectedRepositoryId=l.id),t.newRepositoryURI=""}Core.isBlank(t.selectedRepositoryId)?t.selectedRepository=_.first(t.repositories):t.selectedRepository=_.find(t.repositories,function(e){return e.repository===t.selectedRepositoryId}),Core.$apply(t)}}t.responseJson="",t.filter="",t.installedFeatures=[],t.features=[],t.repositories=[],t.selectedRepositoryId="",t.selectedRepository={},t.newRepositoryURI="",t.init=function(){var e=n.search().repositoryId;e&&(t.selectedRepositoryId=e);var i=n.search().filter;i&&(t.filter=i)},t.init(),t.$watch("selectedRepository",function(e,i){e!==i&&(e?t.selectedRepositoryId=e.repository:t.selectedRepositoryId="",n.search("repositoryId",t.selectedRepositoryId))},!0),t.$watch("filter",function(e,t){e!==t&&n.search("filter",e)});var a=e.getSelectionFeaturesMBean(i);e.log.debug("Features mbean: ",a),a&&Core.register(r,t,{type:"read",mbean:a},Core.onSuccess(o)),t.inSelectedRepository=function(e){return t.selectedRepository&&"repository"in t.selectedRepository&&e&&"RepositoryName"in e&&e.RepositoryName===t.selectedRepository.repository?"in-selected-repository":""},t.isValidRepository=function(){return Core.isBlank(t.newRepositoryURI)},t.installRepository=function(){var n=t.newRepositoryURI;Core.notification("info","Adding feature repository URL"),e.installRepository(i,r,n,function(){Core.notification("success","Added feature repository URL"),t.selectedRepository={},t.selectedRepositoryId="",t.responseJson=null,t.triggerRefresh()},function(i){e.log.error("Failed to add feature repository URL ",n," due to ",i.error),e.log.info("stack trace: ",i.stacktrace),Core.$apply(t)})},t.uninstallRepository=function(){var n=t.selectedRepository.uri;Core.notification("info","Removing feature repository "+n),e.uninstallRepository(i,r,n,function(){Core.notification("success","Removed feature repository "+n),t.responseJson=null,t.selectedRepositoryId="",t.selectedRepository={},t.triggerRefresh()},function(i){e.log.error("Failed to remove feature repository ",n," due to ",i.error),e.log.info("stack trace: ",i.stacktrace),Core.$apply(t)})},t.triggerRefresh=function(){r.request({type:"read",method:"POST",mbean:a},Core.onSuccess(o))},t.install=function(n){Core.notification("info","Installing feature "+n.Name),e.installFeature(i,r,n.Name,n.Version,function(){Core.notification("success","Installed feature "+n.Name),t.installedFeatures.add(n),t.responseJson=null,t.triggerRefresh()},function(i){e.log.error("Failed to install feature ",n.Name," due to ",i.error),e.log.info("stack trace: ",i.stacktrace),Core.$apply(t)})},t.uninstall=function(n){Core.notification("info","Uninstalling feature "+n.Name),e.uninstallFeature(i,r,n.Name,n.Version,function(){Core.notification("success","Uninstalled feature "+n.Name),t.installedFeatures.remove(n),t.responseJson=null,t.triggerRefresh()},function(i){e.log.error("Failed to uninstall feature ",n.Name," due to ",i.error),e.log.info("stack trace: ",i.stacktrace),Core.$apply(t)})},t.filteredRows=["Bundles","Configurations","Configuration Files","Dependencies"],t.showRow=function(e,n){return t.filteredRows.indexOf(e)===-1&&((!angular.isArray(n)||0!==n.length)&&((!angular.isString(n)||!Core.isBlank(n))&&!(angular.isObject(n)&&(!n||angular.equals(n,{})))))},t.installed=function(e){var t=Core.parseBooleanValue(e);return t},t.showValue=function(e){if(angular.isArray(e)){var t=['<ul class="zebra-list">'];return e.forEach(function(e){t.push("<li>"+e+"</li>")}),t.push("</ul>"),t.join("\n")}if(angular.isObject(e)){var t=['<table class="table">',"<tbody>"];return angular.forEach(e,function(e,n){t.push("<tr>"),t.push("<td>"+n+"</td>"),t.push("<td>"+e+"</td>"),t.push("</tr>")}),t.push("</tbody>"),t.push("</table>"),t.join("\n")}return""+e},t.getStateStyle=function(e){return Core.parseBooleanValue(e.Installed)?"badge badge-success":"badge"},t.filterFeature=function(e){return!!Core.isBlank(t.filter)||!!e.Id.has(t.filter)}}])}(Karaf||(Karaf={}));var Karaf;!function(e){e._module.controller("Karaf.NavBarController",["$scope","workspace",function(t,n){t.hash=n.hash(),t.isKarafEnabled=n.treeContainsDomainAndProperties("org.apache.karaf"),t.isFeaturesEnabled=e.getSelectionFeaturesMBean(n),t.isScrEnabled=e.getSelectionScrMBean(n),t.$on("$routeChangeSuccess",function(){t.hash=n.hash()}),t.isActive=function(e){return n.isLinkActive(e)},t.isPrefixActive=function(e){return n.isLinkPrefixActive(e)}}])}(Karaf||(Karaf={}));var Karaf;!function(e){e._module.controller("Karaf.ScrComponentController",["$scope","$location","workspace","jolokia","$routeParams",function(t,n,i,r,o){function a(){t.row=e.getComponentByName(i,r,t.name),Core.$apply(t)}t.name=o.name,a(),t.activate=function(){e.activateComponent(i,r,t.row.Name,function(){console.log("Activated!")},function(){console.log("Failed to activate!")})},t.deactivate=function(){e.deactivateComponent(i,r,t.row.Name,function(){console.log("Deactivated!")},function(){console.log("Failed to deactivate!")})}}])}(Karaf||(Karaf={}));var Karaf;!function(e){e._module.controller("Karaf.ScrComponentsController",["$scope","$location","workspace","jolokia",function(t,n,i,r){function o(){return[{Name:"",Status:!1}]}function a(e){angular.equals(t.result,e)||(t.components=e,t.result=t.components,Core.$apply(t))}t.component=o(),t.result=[],t.components=[],t.selectedComponents=[],t.scrOptions={data:"components",showFilter:!1,showColumnMenu:!1,filterOptions:{useExternalFilter:!1},sortInfo:{fields:["Name"],directions:["asc"]},selectedItems:t.selectedComponents,rowHeight:32,selectWithCheckboxOnly:!0,columnDefs:[{field:"Name",displayName:"Name",cellTemplate:'<div class="ngCellText"><a href="#/osgi/scr-component/{{row.entity.Name}}?p=container">{{row.getProperty(col.field)}}</a></div>',width:400},{field:"State",displayName:"State",cellTemplate:'<div class="ngCellText">{{row.getProperty(col.field)}}</div>',width:200}],primaryKeyFn:function(e){return e.Name}};var s=e.getSelectionScrMBean(i);s&&a(e.getAllComponents(i,r)),t.activate=function(){t.selectedComponents.forEach(function(t){e.activateComponent(i,r,t.Name,function(){console.log("Activated!")},function(){console.log("Failed to activate!")})})},t.deactivate=function(){t.selectedComponents.forEach(function(t){e.deactivateComponent(i,r,t.Name,function(){console.log("Deactivated!")},function(){console.log("Failed to deactivate!")})})}}])}(Karaf||(Karaf={}));var Karaf;!function(e){e._module.controller("Karaf.ServerController",["$scope","$location","workspace","jolokia",function(e,t,n,i){function r(){setTimeout(o,50)}function o(){console.log("Loading Karaf data..."),i.search("org.apache.karaf:type=admin,*",Core.onSuccess(a))}function a(e){if(angular.isArray(e)){var t=e[0];t&&i.getAttribute(t,"Instances",Core.onSuccess(function(e){s(e,t)}))}}function s(t,n){if(t){var r=Core.parseMBean(n),o="root";"attributes"in r&&"name"in r.attributes&&(o=r.attributes.name);var a=t[o];e.data.name=a.Name,e.data.state=a.State,e.data.root=a["Is Root"],e.data.location=a.Location,e.data.sshPort=a["SSH Port"],e.data.rmiRegistryPort=a["RMI Registry Port"],e.data.rmiServerPort=a["RMI Server Port"],e.data.pid=a.Pid,e.data.version="?",e.data.startLevel="?",e.data.framework="?",e.data.frameworkVersion="?";var s="org.apache.karaf:type=system,name="+a.Name,l=i.request({type:"read",mbean:s,attribute:["StartLevel","Framework","Version"]},Core.onSuccess(null)),u=l.value;u&&(e.data.version=u.Version,e.data.startLevel=u.StartLevel,e.data.framework=u.Framework);var c=i.search("osgi.core:type=bundleState,*",Core.onSuccess(null));if(angular.isArray(c)){var n=c[0];if(n){var d=i.request({type:"exec",mbean:n,operation:"getVersion(long)",arguments:[0]},Core.onSuccess(null)),p=d.value;p&&(e.data.frameworkVersion=p)}}}Core.$apply(e)}e.data={name:"",version:"",state:"",root:"",startLevel:"",framework:"",frameworkVersion:"",location:"",sshPort:"",rmiRegistryPort:"",rmiServerPort:"",pid:""},e.$on("jmxTreeUpdated",r),e.$watch("workspace.tree",r)}])}(Karaf||(Karaf={}));var Camel;!function(e){function t(e,t){if(null!==xe)return xe;var n=q(e);return n&&t.request({type:"read",mbean:n,attribute:["NumberOfRestServices"]},Core.onSuccess(function(e){var t=e.value;xe=t>0})),!0}function n(e,t,n,i){function r(e){var t=null,n=e?e.value:null;if(n){var r=$.parseXML(n),a=$(r).find("route[id='"+o+"']");a&&a.length&&(t=a[0])}i(t)}var o=G(e,n),a=j(e);a&&o?t.request({type:"exec",mbean:a,operation:"dumpRoutesAsXml()"},Core.onSuccess(r,{error:r})):(o||console.log("No selectedRouteId when trying to lazy load the route!"),i(null))}function i(e){var t=null;if(e&&(t=e.getAttribute("uri"),!t)){var n=e.getAttribute("ref");if(n){var i=e.getAttribute("method");t=i?n+"."+i+"()":"ref:"+n}}return t}function r(t,n){void 0===n&&(n={});var i=t.camelNodeData;if(!i){var r=t.routeXmlNode;r&&(i=e.getRouteNodeJSON(r)),i||(i=n),t.camelNodeData=i}return i}function o(t,n){if(void 0===n&&(n={}),t){angular.forEach(t.attributes,function(e){n[e.name]=e.value});var i=t.localName;"route"!==i&&"routes"!==i&&"camelContext"!==i&&"rests"!==i&&$(t).children("*").each(function(t,i){var r=i.localName,a=e.camelLanguageSettings(r);if(a)n.expression={language:r,expression:i.textContent};else if(!g(r)){var s=o(i);s&&(s.expression&&(s=s.expression),"completionSize"===r?r="completionSizeExpression":"completionTimeout"===r&&(r="completionTimeoutExpression"),n[r]=s)}})}return n}function a(e,t){return void 0===t&&(t=" "),e+t}function s(e,t,n){function i(t,n,o){if(void 0===o&&(o=!1),angular.isArray(t))$(e).children(n).remove(),angular.forEach(t,function(e){i(e,n,!0)});else if(angular.isObject(t)){var a=null;if("expression"===n){var l=t.language;l&&(n=l,a=t.expression,t=angular.copy(t),delete t.expression,delete t.language)}var u=$(e).children(n),c=null;if(!o&&u&&u.length)c=u[0];else{var d=e.ownerDocument||document;e.appendChild(d.createTextNode("\n"+r)),c=d.createElementNS(e.namespaceURI,n),a&&c.appendChild(d.createTextNode(a)),e.appendChild(c)}s(c,t,r),a&&u.text(a)}else if(t)if(_.startsWith(n,"_"));else{var p=t.toString();e.setAttribute(n,p)}else e.removeAttribute(n)}if(e){var r=a(n);angular.forEach(t,function(e,t){return i(e,t,!1)})}}function l(e){var t=null;if(e){var n=e.localName;t=n?f(n):e}if(t){var i=t.icon||"generic24.png";return UrlHelpers.join("img/icons/camel/",i)}return null}function u(e){var t=e.selection;if(t&&t.objectName&&t.typeName&&"endpoints"===t.typeName){var n=Core.parseMBean(t.objectName);if(!n)return null;var i=n.attributes;if(!i)return null;if(!("name"in i))return null;var r=i.name;return r=r.replace("\\?","?"),_.startsWith(r,'"')&&(r=r.substr(1)),_.endsWith(r,'"')&&(r=r.substr(0,r.length-1)),r}return null}function c(e){if(angular.isString(e)){var t=e.replace("?","\\?");return t=t.replace(/\:(\/[^\/])/,"://$1"),t=t.replace(/\:([^\/])/,"://$1")}return e}function d(t){return{uri:e.getSelectedEndpointName(t),mbean:e.getSelectionCamelContextMBean(t)}}function p(t){var n=t.selection||t.getSelectedMBean();return n&&e.jmxDomain===n.domain?n.routeXmlNode:null}function h(t){var n=t.selection;n&&e.jmxDomain===n.domain&&delete n.routeXmlNode}function f(t){return angular.isObject(t)?t:Forms.lookupDefinition(t,e._apacheCamelModel)}function g(t){return null!=Forms.lookupDefinition(t,e._apacheCamelModel)}function m(e){var t=f(e);return t?t.nextSiblingAddedAsChild||!1:null}function v(e){var t=f(e);return t?t.acceptInput||!1:null}function y(e){var t=f(e);return t?t.acceptOutput||!1:null}function b(t){return e._apacheCamelModel.languages[t]}function w(e){return!(!b(e)&&"expression"!==e)}function x(t,n){var i=t;angular.isString(t)&&(i=$.parseXML(t));var r="camelContext",o=new Folder(r);o.addClass="org-apache-camel-context",o.domain=e.jmxDomain,o.typeName="context",o.key=Core.toSafeDomID(n);var a=$(i).find("camelContext");return a&&a.length||(a=$(i).find("routes")),a&&a.length&&(o.xmlDocument=i,o.routeXmlNode=a,$(a).children("route").each(function(t,n){var i=n.getAttribute("id");i||(i="route"+t,n.setAttribute("id",i));var r=new Folder(i);r.addClass="org-apache-camel-route",r.typeName="routes",r.domain=e.jmxDomain,r.key=o.key+"_"+Core.toSafeDomID(i),r.parent=o;var a=f("route");if(a){var s=l(a);r.tooltip=a.tooltip||a.description||i,r.icon=s}o.children.push(r),k(r,n)})),o}function k(e,t){e.children=[],e.routeXmlNode=t,t.setAttribute("_cid",e.key),$(t).children("*").each(function(t,n){C(e,n)})}function C(t,n){var i=n.localName;if(i){var r=f(i);if(r){var o=l(r),a=new Folder(i);a.domain=e.jmxDomain,a.typeName="routeNode",N(a,n,r),a.parent=t,a.folderNames=t.folderNames;for(var s=n.getAttribute("id")||i,u=t.key+"_"+Core.toSafeDomID(s),c=1,d=!0;d;){var p=u+c;t.children.indexOf({key:p})!==-1?c+=1:(d=!1,u=p)}return a.key=u,a.icon=o,a.routeXmlNode=n,t.children||(t.children=[]),t.children.push(a),k(a,n),a}}return null}function S(t){var n=t?t.tree:null;return n?n.get(e.jmxDomain):null}function T(e,t){var n=null,i=S(e);return i&&t&&angular.forEach(i.children,function(e){n||t!==e.title||(n=e)}),n}function E(e,t){var n=T(e,t);if(n){var i=n.navigate("context");if(i&&i.children&&i.children.length){var r=i.children[0];return r.objectName}}return null}function D(e){var t=null,n=e.selection;if(n){var i=n.entries;if(i){var r=i.context,o=i.name,a=i.type;if("endpoints"===a)return M(r,o);if("routes"===a)return I(r,o)}}return t}function M(e,t){var n=null;return e&&t&&(n="#/camel/endpoint/browse/"+e+"/"+t),n}function I(e,t){var n=null;return e&&t&&(n="#/camel/route/diagram/"+e+"/"+t),n}function P(e){var t=Core.pathGet(e,["routeXmlNode","localName"]);return"from"===t||"to"===t?"endpoint":t}function A(t,n,i){void 0===i&&(i=e.increaseIndent(""));var r=t.data||t,o=0,a=P(r);if(r){if(!n){n=document.createElement(a);var s=e.getRouteFolderJSON(r);s&&e.setRouteNodeJSON(n,s,i)}var l=n.ownerDocument||document,u=n.namespaceURI,c="route"!==a,d=e.increaseIndent(i);angular.forEach(t.children||t.getChildren(),function(t){var i=t.data||t,r=e.getFolderCamelNodeId(i),a=e.getRouteFolderJSON(i);if(r&&a){var s=!1;if("endpoint"===r&&(c?r="to":(r="from",c=!0)),"expression"===r){var p=a.language;p&&(r=p,s=!0)}n.appendChild(l.createTextNode("\n"+d));var h=l.createElementNS(u,r);e.setRouteNodeJSON(h,a,d),n.appendChild(h),o+=1,A(t,h,d)}}),o&&n.appendChild(l.createTextNode("\n"+i))}return n}function N(t,n,r){var o=n.localName,a=n.getAttribute("id"),s=r.title||o,l=r.tooltip||r.description||s;if(a)s=a;else{var u=i(n);if(u){s=u;var c=u.split("?");c&&c.length>1&&(s=c[0]),l+=" "+u}else{var d=$(n).children("*");if(d&&d.length){var p=d[0],h=p.localName,f=null;e.isCamelLanguage(h)&&(f=p.textContent,f||(f=p.getAttribute("expression"))),f&&(s+=" "+f,
|
|
|
25807
|
+l+=" "+h+" expression")}}}return t.title=s,t.tooltip=l,s}function j(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t){var o=i.navigate(r,t,"context");if(o&&o.children){var a=_.first(o.children);if(a.title){var s=a.title;return""+r+":context="+t+',type=context,name="'+s+'"'}}}}}return null}function O(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t)return i.navigate(r,t,"endpoints")}}return null}function L(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t){var o=i.navigate(r,t,"tracer");if(o&&o.children){var a=o.children.find(function(e){return _.startsWith(e.title,"BacklogTracer")});if(a)return a.objectName}}}}return null}function R(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t){var o=i.navigate(r,t,"tracer");if(o&&o.children){var a=o.children.find(function(e){return _.startsWith(e.title,"BacklogDebugger")});if(a)return a.objectName}}}}return null}function F(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t){var o=i.navigate(r,t,"services");if(o&&o.children){var a=o.children.find(function(e){return _.startsWith(e.title,"DefaultTypeConverter")});if(a)return a.objectName}}}}return null}function q(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t){var o=i.navigate(r,t,"services");if(o&&o.children){var a=o.children.find(function(e){return _.startsWith(e.title,"DefaultRestRegistry")});if(a)return a.objectName}}}}return null}function B(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t){var o=i.navigate(r,t,"services");if(o&&o.children){var a=o.children.find(function(e){return _.startsWith(e.title,"DefaultRuntimeEndpointRegistry")});if(a)return a.objectName}}}}return null}function H(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t){var o=i.navigate(r,t,"services");if(o&&o.children){var a=o.children.find(function(e){return _.startsWith(e.title,"DefaultInflightRepository")});if(a)return a.objectName}}}}return null}function U(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t){var o=i.navigate(r,t,"services");if(o&&o.children){var a=o.children.find(function(e){return _.startsWith(e.title,"DefaultAsyncProcessorAwaitManager")});if(a)return a.objectName}}}}return null}function z(e){if(e){var t=V(e),n=e.selection,i=e.tree;if(i&&n){var r=n.domain;if(r&&t){var o=i.navigate(r,t,"services");if(o&&o.children){var a=o.children.find(function(e){return _.startsWith(e.title,"MetricsRegistryService")});if(a)return a.objectName}}}}return null}function V(e){var t=e.selection;if(t&&(t=t.findAncestor(function(e){return"context"===e.title||null!=e.parent&&"org.apache.camel"===e.parent.title}))){var n,i=e.tree,r=t.folderNames,o=t.entries;i&&(r&&r.length>1?n=r[1]:o&&(n=o.context))}return n}function W(e,t){var n=(e.State||"").toLowerCase();return angular.isArray(t)?t.some(function(e){return _.startsWith(n,e)}):_.startsWith(n,t)}function J(e){if(e)switch(e.toLowerCase()){case"started":return"green fa fa-play-circle";case"suspended":return"fa fa-pause"}return"orange fa fa-off"}function G(e,t){void 0===t&&(t=null);var n=t||e.selection,i=null;if(n&&n&&n.entries){var r=n.entries.type,o=n.entries.name;"routes"===r&&o&&(i=Core.trimQuotes(o))}return i}function X(e,t){if(e){var n=V(e),i=e.selection,r=e.tree;if(r&&i){var o=i.domain;if(o&&n){var a=r.navigate(o,n,"routes");if(a&&a.children){var s=_.find(a.children,function(e){return e.title===t});if(s)return s.objectName}}}}return null}function K(e,t){if(e){var n=V(e),i=e.selection,r=e.tree;if(r&&i){var o=i.domain;if(o&&n){var a=r.navigate(o,n,"context");if(a&&a.children){var s=_.first(a.children);return s.version}}}}return null}function Y(e){var t=$(e),n=t.children("uid").text(),i=t.children("timestamp").text(),r={headers:{},headerTypes:{},id:null,uid:n,timestamp:i,headerHtml:""},o=t.children("message")[0];o||(o=e);var a=$(o),s=a.find("header"),l="";s.each(function(e,t){var n=t.getAttribute("key"),i=t.getAttribute("type"),o=t.textContent;n&&(o&&(r.headers[n]=o),i&&(r.headerTypes[n]=i),l+="<tr><td class='property-name'>"+n+"</td><td class='property-value'>"+Q(i)+"</td><td class='property-value'>"+(o||"")+"</td></tr>")}),r.headerHtml=l;var u=r.headers.breadcrumbId;if(!u){var c=["MessageID","ID","Path","Name"];angular.forEach(c,function(e){u||angular.forEach(r.headers,function(t,n){!u&&_.endsWith(n,e)&&(u=t)})}),angular.forEach(r.headers,function(e,t){u||(u=e)})}r.id=u;var d=a.children("body")[0];if(d){var p=d.textContent,h=d.getAttribute("type");r.body=p,r.bodyType=Q(h)}return r}function Q(e){return e?_.startsWith(e,"java.lang")?e.substr(10):e:""}function Z(){return{selectedItems:[],data:"messages",displayFooter:!1,showFilter:!1,showColumnMenu:!0,enableColumnResize:!0,enableColumnReordering:!0,filterOptions:{filterText:""},selectWithCheckboxOnly:!0,showSelectionCheckbox:!0,maintainColumnRatios:!1,columnDefs:[{field:"id",displayName:"ID",cellTemplate:'<div class="ngCellText"><a href="" ng-click="row.entity.openMessageDialog(row)">{{row.entity.id}}</a></div>'}]}}function ee(t,n,i,r,o,a){var s=$(n).find("route"),l=a/s.length,u=0;s.each(function(n,a){var s=a.getAttribute("id");i&&s&&i!==s||(e.addRouteXmlChildren(t,a,r,o,null,u,0),u+=l)})}function te(t,n,r,o,a,s,u,c){void 0===c&&(c=null);var d=150,p=s,h=u+d,g=n.getAttribute("id"),m=[],v=n.localName;return $(n).children().each(function(n,s){var u=r.length,y=s.localName;"from"!==y||a||(a=u);var b=f(y),w=null;if(b){var x=b.title||y,k=i(s);k&&(x+=" "+k.split("?")[0]);var C=b.tooltip||b.description||x;k&&(C+=" "+k);var S=s.getAttribute("id"),$=x;if(S){var T=s.getAttribute("customId");t.camelIgnoreIdForLabel||!T||"false"===T?$="id: "+S:x=S}var _=t.camelMaximumLabelWidth||e.defaultMaximumLabelWidth,E=x.length;E>_&&($=x+"\n\n"+$,x=x.substring(0,_)+"..");var D=l(b);if(("from"===y||"to"===y)&&k){var M=k.indexOf(":");if(M>0){var I=k.substring(0,M);if(I){var P=e.getEndpointIcon(I);P&&(D=Core.url(P))}}}var A=s.getAttribute("_cid")||s.getAttribute("id");w={name:j,label:x,labelSummary:$,group:1,id:u,elementId:S,x:p,"y:":h,imageUrl:D,cid:A,tooltip:C,type:y},g&&(w.rid=g,t.routeNodes||(t.routeNodes={}),t.routeNodes[g]=w),A||(A=y+(r.length+1)),A&&(w.cid=A,t.nodes||(t.nodes={}),t.nodes[A]=w),g=null,r.push(w),null!==a&&a!==u&&(0===m.length||"choice"===v?o.push({source:a,target:u,value:1}):(m.forEach(function(e){o.push({source:e,target:u,value:1})}),m.length=0))}else{var N=e.camelLanguageSettings(y);if(N&&c){var j=N.name||y,O=s.textContent;O?(c.tooltip=c.label+" "+j+" "+O,c.label=O):c.label=c.label+" "+j}}var L=te(t,s,r,o,u,p,h,w);"choice"===v?(m=m.concat(L),p+=d):"choice"===y?(m=L,h+=d):(m=[r.length-1],h+=d)}),m}function ne(e){var t=e.height();if(t<300){console.log("browse thinks the height is only "+t+" so calculating offset from doc height");var n=e.offset();if(t=$(document).height()-5,n){var i=n.top;i&&(t-=i)}}return t}function ie(e,t){if(void 0===t&&(t={}),e){var n=e.key;n&&(t[n]=e),angular.forEach(e.children,function(e){return ie(e,t)})}return t}function re(t){var n=t&&t.data?t.data:t;if(!n)return null;var i=n.xmlDocument,r=n.routeXmlNode;if(r&&r.length){for(var o=r[0],a=o.childNodes,s=[],l=0;l<a.length;l++){var u=a[l],c=u.localName;"route"===c&&parent&&s.push(l)}for(;s.length;){for(var d=s.pop(),p=d+1;;){var u=o.childNodes[p];if(!Core.isTextNode(u))break;o.removeChild(u)}d<o.childNodes.length&&o.removeChild(o.childNodes[d]);for(var l=d-1;l>=0;l--){var u=o.childNodes[l];if(!Core.isTextNode(u))break;o.removeChild(u)}}e.createFolderXmlTree(t,r[0])}return i}function oe(t){var n={},i=t.tree;if(i){var r=i.navigate(e.jmxDomain);r&&angular.forEach(r.children,function(e){var t=e.navigate("context");if(t&&t.children&&t.children.length){var i=t.children[0],r=Core.pathGet(i,["entries","name"])||i.key;r&&(n[r]={folder:i,mbean:i.objectName})}})}return n}function ae(e){return le(e,"components")}function se(e){return le(e,"routes")}function le(t,n){var i={},r=t.tree;if(r){var o=r.navigate(e.jmxDomain);o&&angular.forEach(o.children,function(e){var t=e.navigate("context"),r=e.navigate(n);if(t&&r&&t.children&&t.children.length){var o=t.children[0],a=o.objectName;if(a){var s={folder:o,mbean:a};angular.forEach(r.children,function(e){var t=e.title;t&&(i[t]=s)})}}})}return i}function ue(t){var n={},i=t.tree;if(i){var r=i.navigate(e.jmxDomain);r&&angular.forEach(r.children,function(e){var t=e.navigate("processors");t&&t.children&&t.children.length&&angular.forEach(t.children,function(e){var i=e.title;if(i){var r={folder:t,key:e.key};n[i]=r}})})}return n}function ce(e){var t=e.camelIgnoreIdForLabel;return Core.parseBooleanValue(t)}function de(t){var n=t.camelMaximumLabelWidth;return angular.isString(n)&&(n=parseInt(n)),n||(n=e.defaultMaximumLabelWidth),n}function pe(t){var n=t.camelMaximumTraceOrDebugBodyLength;return angular.isString(n)&&(n=parseInt(n)),n||(n=e.defaultCamelMaximumTraceOrDebugBodyLength),n}function he(t){var n=t.camelTraceOrDebugIncludeStreams;return console.log('localStorage["camelTraceOrDebugIncludeStreams"] = '+n),Core.parseBooleanValue(n,e.defaultCamelTraceOrDebugIncludeStreams)}function fe(e){var t=e.camelShowInflightCounter;return Core.parseBooleanValue(t,!0)}function ge(t){var n=t.camelRouteMetricMaxSeconds;return angular.isString(n)&&(n=parseInt(n)),n||(n=e.defaultCamelRouteMetricMaxSeconds),n}function me(t){var n=t.camelHideOptionDocumentation;return Core.parseBooleanValue(n,e.defaultHideOptionDocumentation)}function ve(t){var n=t.camelHideOptionDefaultValue;return Core.parseBooleanValue(n,e.defaultHideOptionDefaultValue)}function ye(t){var n=t.camelHideOptionUnusedValue;return Core.parseBooleanValue(n,e.defaultHideOptionUnusedValue)}function be(e,t){e.attr("class","node"),e.filter(function(e){if(e){var n=e.cid,i=e.rid,r=e.type,o=e.elementId;return"from"===r?t===i:o?t===o:n?t===n:t===i}return null}).attr("class","node selected")}function we(e,t,n,i){var r=K(n,i);if(r){r+="camel-";var o=Core.parseVersionNumbers(r);return Core.compareVersionNumberArrays(o,[e,t])>=0}return!1}e.log=Logger.get("Camel"),e.jmxDomain="org.apache.camel",e.defaultMaximumLabelWidth=34,e.defaultCamelMaximumTraceOrDebugBodyLength=5e3,e.defaultCamelTraceOrDebugIncludeStreams=!1,e.defaultCamelRouteMetricMaxSeconds=10,e.defaultHideOptionDocumentation=!1,e.defaultHideOptionDefaultValue=!1,e.defaultHideOptionUnusedValue=!1,e._apacheCamelModel=void 0,hawtioPluginLoader.registerPreBootstrapTask(function(t){e._apacheCamelModel=window._apacheCamelModel,e.log.debug("Setting apache camel model: ",e._apacheCamelModel),t()});var xe=null;e.hasRestServices=t,e.processRouteXml=n,e.getRouteNodeUri=i,e.getRouteFolderJSON=r,e.getRouteNodeJSON=o,e.increaseIndent=a,e.setRouteNodeJSON=s,e.getRouteNodeIcon=l,e.getSelectedEndpointName=u,e.escapeEndpointUriNameForJmx=c,e.getContextAndTargetEndpoint=d,e.getSelectedRouteNode=p,e.clearSelectedRouteNode=h,e.getCamelSchema=f,e.isCamelPattern=g,e.isNextSiblingAddedAsChild=m,e.acceptInput=v,e.acceptOutput=y,e.camelLanguageSettings=b,e.isCamelLanguage=w,e.loadCamelTree=x,e.addRouteChildren=k,e.addRouteChild=C,e.getRootCamelFolder=S,e.getCamelContextFolder=T,e.getCamelContextMBean=E,e.linkToFullScreenView=D,e.linkToBrowseEndpointFullScreen=M,e.linkToRouteDiagramFullScreen=I,e.getFolderCamelNodeId=P,e.createFolderXmlTree=A,e.updateRouteNodeLabelAndTooltip=N,e.getSelectionCamelContextMBean=j,e.getSelectionCamelContextEndpoints=O,e.getSelectionCamelTraceMBean=L,e.getSelectionCamelDebugMBean=R,e.getSelectionCamelTypeConverter=F,e.getSelectionCamelRestRegistry=q,e.getSelectionCamelEndpointRuntimeRegistry=B,e.getSelectionCamelInflightRepository=H,e.getSelectionCamelBlockedExchanges=U,e.getSelectionCamelRouteMetrics=z,e.getContextId=V,e.isState=W,e.iconClass=J,e.getSelectedRouteId=G,e.getSelectionRouteMBean=X,e.getCamelVersion=K,e.createMessageFromXml=Y,e.humanizeJavaType=Q,e.createBrowseGridOptions=Z,e.loadRouteXmlNodes=ee,e.addRouteXmlChildren=te,e.getCanvasHeight=ne,e.addFoldersToIndex=ie,e.generateXmlFromFolder=re,e.camelContextMBeansById=oe,e.camelContextMBeansByComponentName=ae,e.camelContextMBeansByRouteId=se,e.camelProcessorMBeansById=ue,e.ignoreIdForLabel=ce,e.maximumLabelWidth=de,e.maximumTraceOrDebugBodyLength=pe,e.traceOrDebugIncludeStreams=he,e.showInflightCounter=fe,e.routeMetricMaxSeconds=ge,e.hideOptionDocumentation=me,e.hideOptionDefaultValue=ve,e.hideOptionUnusedValue=ye,e.highlightSelectedNode=be,e.isCamelVersionEQGT=we}(Camel||(Camel={}));var Camel;!function(e){var t=Jmx;e.pluginName="camel";var n="plugins/camel/html/attributeToolBarRoutes.html",i="plugins/camel/html/attributeToolBarContext.html";e._module=angular.module(e.pluginName,[]),e._module.config(["$routeProvider",function(e){e.when("/camel/browseEndpoint",{templateUrl:"plugins/camel/html/browseEndpoint.html"}).when("/camel/endpoint/browse/:contextId/*endpointPath",{templateUrl:"plugins/camel/html/browseEndpoint.html"}).when("/camel/createEndpoint",{templateUrl:"plugins/camel/html/createEndpoint.html"}).when("/camel/route/diagram/:contextId/:routeId",{templateUrl:"plugins/camel/html/routes.html"}).when("/camel/routes",{templateUrl:"plugins/camel/html/routes.html"}).when("/camel/typeConverter",{templateUrl:"plugins/camel/html/typeConverter.html",reloadOnSearch:!1}).when("/camel/restRegistry",{templateUrl:"plugins/camel/html/restRegistry.html",reloadOnSearch:!1}).when("/camel/endpointRuntimeRegistry",{templateUrl:"plugins/camel/html/endpointRuntimeRegistry.html",reloadOnSearch:!1}).when("/camel/routeMetrics",{templateUrl:"plugins/camel/html/routeMetrics.html",reloadOnSearch:!1}).when("/camel/inflight",{templateUrl:"plugins/camel/html/inflight.html",reloadOnSearch:!1}).when("/camel/blocked",{templateUrl:"plugins/camel/html/blocked.html",reloadOnSearch:!1}).when("/camel/sendMessage",{templateUrl:"plugins/camel/html/sendMessage.html",reloadOnSearch:!1}).when("/camel/source",{templateUrl:"plugins/camel/html/source.html"}).when("/camel/traceRoute",{templateUrl:"plugins/camel/html/traceRoute.html"}).when("/camel/debugRoute",{templateUrl:"plugins/camel/html/debug.html"}).when("/camel/profileRoute",{templateUrl:"plugins/camel/html/profileRoute.html"}).when("/camel/properties",{templateUrl:"plugins/camel/html/properties.html"}).when("/camel/propertiesComponent",{templateUrl:"plugins/camel/html/propertiesComponent.html"}).when("/camel/propertiesDataFormat",{templateUrl:"plugins/camel/html/propertiesDataFormat.html"}).when("/camel/propertiesEndpoint",{templateUrl:"plugins/camel/html/propertiesEndpoint.html"})}]),e._module.factory("tracerStatus",function(){return{jhandle:null,messages:[]}}),e._module.filter("camelIconClass",function(){return e.iconClass}),e._module.factory("activeMQMessage",function(){return{message:null}}),e._module.factory("metricsWatcher",["$window",function(e){var t=e.metricsWatcher;return t||(t={},e.metricsWatcher=t),t}]),e._module.run(["HawtioNav","workspace","jolokia","viewRegistry","layoutFull","helpRegistry","preferencesRegistry","$templateCache","$location","$rootScope",function(t,r,o,a,s,l,u,c,d,p){a["camel/endpoint/"]=s,a["camel/route/"]=s,a['{ "main-tab": "camel" }']="plugins/camel/html/layoutCamelTree.html",l.addUserDoc("camel","plugins/camel/doc/help.md",function(){return r.treeContainsDomainAndProperties(e.jmxDomain)}),u.addTab("Camel","plugins/camel/html/preferences.html",function(){return r.treeContainsDomainAndProperties(e.jmxDomain)}),Jmx.addAttributeToolBar(e.pluginName,e.jmxDomain,function(t){var r=t.typeName;if(r){if(_.startsWith(r,"context"))return i;if(_.startsWith(r,"route"))return n}var o=t.folderNames;if(o&&t.domain===e.jmxDomain){var a=_.last(o);if("routes"===a)return n;if("context"===a)return i}return null});var h="State",f='<div class="ngCellText pagination-centered" title="{{row.getProperty(col.field)}}"><i class="{{row.getProperty(\''+h+"') | camelIconClass}}\"></i></div>",g={field:h,displayName:h,cellTemplate:f,width:56,minWidth:56,maxWidth:56,resizable:!1,defaultSort:!1},m=r.attributeColumnDefs;m[e.jmxDomain+"/context/folder"]=[g,{field:"CamelId",displayName:"Context"},{field:"Uptime",displayName:"Uptime",visible:!1},{field:"CamelVersion",displayName:"Version",visible:!1},{field:"ExchangesCompleted",displayName:"Completed"},{field:"ExchangesFailed",displayName:"Failed"},{field:"FailuresHandled",displayName:"Failed Handled",visible:!1},{field:"ExchangesTotal",displayName:"Total",visible:!1},{field:"Redeliveries",displayName:"Redelivery",visible:!1},{field:"ExchangesInflight",displayName:"Inflight"},{field:"OldestInflightDuration",displayName:"Oldest Inflight Time",visible:!1},{field:"MeanProcessingTime",displayName:"Mean Time"},{field:"MinProcessingTime",displayName:"Min Time"},{field:"MaxProcessingTime",displayName:"Max Time"},{field:"TotalProcessingTime",displayName:"Total Time",visible:!1},{field:"DeltaProcessingTime",displayName:"Delta Time",visible:!1},{field:"LastProcessingTime",displayName:"Last Time",visible:!1},{field:"LastExchangeCompletedTimestamp",displayName:"Last completed",visible:!1},{field:"LastExchangeFailedTimestamp",displayName:"Last failed",visible:!1},{field:"ExternalRedeliveries",displayName:"External Redelivery",visible:!1},{field:"StartedRoutes",displayName:"Started Routes"},{field:"TotalRoutes",displayName:"Total Routes"}],m[e.jmxDomain+"/routes/folder"]=[g,{field:"CamelId",displayName:"Context"},{field:"RouteId",displayName:"Route"},{field:"ExchangesCompleted",displayName:"Completed"},{field:"ExchangesFailed",displayName:"Failed"},{field:"FailuresHandled",displayName:"Failed Handled",visible:!1},{field:"Redeliveries",displayName:"Redelivery",visible:!1},{field:"ExchangesTotal",displayName:"Total",visible:!1},{field:"ExchangesInflight",displayName:"Inflight"},{field:"OldestInflightDuration",displayName:"Oldest Inflight Time",visible:!1},{field:"MeanProcessingTime",displayName:"Mean Time"},{field:"MinProcessingTime",displayName:"Min Time"},{field:"MaxProcessingTime",displayName:"Max Time"},{field:"TotalProcessingTime",displayName:"Total Time",visible:!1},{field:"DeltaProcessingTime",displayName:"Delta Time",visible:!1},{field:"LastProcessingTime",displayName:"Last Time",visible:!1},{field:"LastExchangeCompletedTimestamp",displayName:"Last completed",visible:!1},{field:"LastExchangeFailedTimestamp",displayName:"Last failed",visible:!1},{field:"Redeliveries",displayName:"Redelivery",visible:!1},{field:"ExternalRedeliveries",displayName:"External Redelivery",visible:!1}],m[e.jmxDomain+"/processors/folder"]=[g,{field:"CamelId",displayName:"Context"},{field:"RouteId",displayName:"Route"},{field:"ProcessorId",displayName:"Processor"},{field:"ExchangesCompleted",displayName:"Completed"},{field:"ExchangesFailed",displayName:"Failed"},{field:"FailuresHandled",displayName:"Failed Handled",visible:!1},{field:"Redeliveries",displayName:"Redelivery",visible:!1},{field:"ExchangesTotal",displayName:"Total",visible:!1},{field:"ExchangesInflight",displayName:"Inflight"},{field:"OldestInflightDuration",displayName:"Oldest Inflight Time",visible:!1},{field:"MeanProcessingTime",displayName:"Mean Time"},{field:"MinProcessingTime",displayName:"Min Time"},{field:"MaxProcessingTime",displayName:"Max Time"},{field:"TotalProcessingTime",displayName:"Total Time",visible:!1},{field:"DeltaProcessingTime",displayName:"Delta Time",visible:!1},{field:"LastProcessingTime",displayName:"Last Time",visible:!1},{field:"LastExchangeCompletedTimestamp",displayName:"Last completed",visible:!1},{field:"LastExchangeFailedTimestamp",displayName:"Last failed",visible:!1},{field:"ExternalRedeliveries",displayName:"External Redelivery",visible:!1}],m[e.jmxDomain+"/components/folder"]=[g,{field:"CamelId",displayName:"Context"},{field:"ComponentName",displayName:"Name"}],m[e.jmxDomain+"/consumers/folder"]=[g,{field:"CamelId",displayName:"Context"},{field:"RouteId",displayName:"Route"},{field:"EndpointUri",displayName:"Endpoint URI",width:"**"},{field:"Suspended",displayName:"Suspended",resizable:!1},{field:"InflightExchanges",displayName:"Inflight"}],m[e.jmxDomain+"/producers/folder"]=[g,{field:"CamelId",displayName:"Context"},{field:"RouteId",displayName:"Route"},{field:"EndpointUri",displayName:"Endpoint URI",width:"**"},{field:"Suspended",displayName:"Suspended",resizable:!1}],m[e.jmxDomain+"/services/folder"]=[g,{field:"CamelId",displayName:"Context"},{field:"RouteId",displayName:"Route"},{field:"Suspended",displayName:"Suspended",resizable:!1},{field:"SupportsSuspended",displayName:"Can Suspend",resizable:!1}],m[e.jmxDomain+"/endpoints/folder"]=[g,{field:"CamelId",displayName:"Context"},{field:"EndpointUri",displayName:"Endpoint URI",width:"***"},{field:"Singleton",displayName:"Singleton",resizable:!1}],m[e.jmxDomain+"/threadpools/folder"]=[{field:"Id",displayName:"Id",width:"**"},{field:"ActiveCount",displayName:"Active"},{field:"PoolSize",displayName:"Pool Size"},{field:"CorePoolSize",displayName:"Core Pool Size"},{field:"TaskQueueSize",displayName:"Task Queue Size"},{field:"TaskCount",displayName:"Task"},{field:"CompletedTaskCount",displayName:"Completed Task"}],m[e.jmxDomain+"/errorhandlers/folder"]=[{field:"CamelId",displayName:"Context"},{field:"DeadLetterChannel",displayName:"Dead Letter"},{field:"DeadLetterChannelEndpointUri",displayName:"Endpoint URI",width:"**",resizable:!0},{field:"MaximumRedeliveries",displayName:"Max Redeliveries"},{field:"RedeliveryDelay",displayName:"Redelivery Delay"},{field:"MaximumRedeliveryDelay",displayName:"Max Redeliveries Delay"}];var v="/jmx/attributes?main-tab=camel&sub-tab=camel-attributes",y=t.builder(),b=y.id("camel").title(function(){return"Camel"}).defaultPage({rank:20,isValid:function(t,n){var i="CamelDefaultPage";r.addNamedTreePostProcessor(i,function(o){r.removeNamedTreePostProcessor(i),r.treeContainsDomainAndProperties(e.jmxDomain)?t():n()})}}).href(function(){return v}).isValid(function(){return r.treeContainsDomainAndProperties(e.jmxDomain)}).build();b.tabs=Jmx.getNavItems(y,r,c,"camel"),b.tabs.push({id:"camel-route-diagram",title:function(){return'<i class="fa fa-sitemap"></i> Route Diagram'},tooltip:function(){return"View a diagram of the Camel routes"},show:function(){return(r.isRoute()||r.isRoutesFolder())&&r.hasInvokeRightsForName(e.getSelectionCamelContextMBean(r),"dumpRoutesAsXml")},isSelected:function(){return r.isLinkActive("camel/routes")},href:function(){return"/camel/routes"+r.hash()},index:-2}),b.tabs.push({id:"camel-route-source",title:function(){return'<i class=" fa fa-file-code-o"></i> Source'},tooltip:function(){return"View the source of the Camel routes"},show:function(){return!r.isEndpointsFolder()&&!r.isEndpoint()&&(r.isRoute()||r.isRoutesFolder())&&r.hasInvokeRightsForName(e.getSelectionCamelContextMBean(r),"dumpRoutesAsXml")},isSelected:function(){return r.isLinkActive("camel/source")},href:function(){return"/camel/source"+r.hash()}}),b.tabs.push({id:"camel-route-properties",title:function(){return'<i class=" fa fa-edit"></i> Properties'},tooltip:function(){return"View the pattern properties"},show:function(){return e.getSelectedRouteNode(r)},href:function(){return"/camel/properties"+r.hash()}}),b.tabs.push({id:"camel-endpoint-properties",title:function(){return'<i class="fa fa-list"></i> Properties'},tooltip:function(){return"Show the endpoint properties"},show:function(){return r.isEndpoint()&&e.isCamelVersionEQGT(2,15,r,o)&&r.hasInvokeRights(r.selection,"explainEndpointJson")},href:function(){return"/camel/propertiesEndpoint"+r.hash()}}),b.tabs.push({id:"camel-component-properties",title:function(){return'<i class="fa fa-list"></i> Properties'},tooltip:function(){return"Show the component properties"},show:function(){return r.isComponent()&&e.isCamelVersionEQGT(2,15,r,o)&&r.hasInvokeRights(r.selection,"explainComponentJson")},href:function(){return"/camel/propertiesComponent"+r.hash()}}),b.tabs.push({id:"camel-dataformat-properties",title:function(){return'<i class="fa fa-list"></i> Properties'},tooltip:function(){return"Show the dataformat properties"},show:function(){return r.isDataformat()&&e.isCamelVersionEQGT(2,16,r,o)&&r.hasInvokeRights(r.selection,"explainDataFormatJson")},href:function(){return"/camel/propertiesDataFormat"+r.hash()}}),b.tabs.push({id:"camel-inflight-exchanges",title:function(){return'<i class="fa fa-bar-chart"></i> Inflight'},tooltip:function(){return"View the entire JVMs Camel inflight exchanges"},show:function(){return!r.isEndpointsFolder()&&!r.isEndpoint()&&!r.isComponentsFolder()&&!r.isComponent()&&(r.isCamelContext()||r.isRoutesFolder()||r.isRoute())&&e.isCamelVersionEQGT(2,15,r,o)&&r.hasInvokeRightsForName(e.getSelectionCamelInflightRepository(r),"browse")},href:function(){return"/camel/inflight"+r.hash()}}),b.tabs.push({id:"camel-blocked-exchanges",title:function(){return'<i class="fa fa-bar-chart"></i> Blocked'},tooltip:function(){return"View the entire JVMs Camel blocked exchanges"},show:function(){return!r.isEndpointsFolder()&&(r.isRoute()||r.isRoutesFolder())&&e.isCamelVersionEQGT(2,15,r,o)&&r.hasInvokeRightsForName(e.getSelectionCamelBlockedExchanges(r),"browse")},href:function(){return"/camel/blocked"+r.hash()}}),b.tabs.push({id:"camel-route-metrics",title:function(){return'<i class="fa fa-bar-chart"></i> Route Metrics'},tooltip:function(){return"View the entire JVMs Camel route metrics"},show:function(){return!r.isEndpointsFolder()&&!r.isEndpoint()&&(r.isCamelContext()||r.isRoutesFolder())&&e.isCamelVersionEQGT(2,14,r,o)&&e.getSelectionCamelRouteMetrics(r)&&r.hasInvokeRightsForName(e.getSelectionCamelRouteMetrics(r),"dumpStatisticsAsJson")},href:function(){return"/camel/routeMetrics"+r.hash()}}),b.tabs.push({id:"camel-rest-services",title:function(){return'<i class="fa fa-list"></i> Rest Services'},tooltip:function(){return"List all the REST services registered in the context"},show:function(){return!r.isEndpointsFolder()&&!r.isEndpoint()&&!r.isComponentsFolder()&&!r.isComponent()&&(r.isCamelContext()||r.isRoutesFolder())&&e.isCamelVersionEQGT(2,14,r,o)&&e.getSelectionCamelRestRegistry(r)&&e.hasRestServices(r,o)&&r.hasInvokeRightsForName(e.getSelectionCamelRestRegistry(r),"listRestServices")},href:function(){return"/camel/restRegistry"+r.hash()}}),b.tabs.push({id:"camel-endpoint-runtime-registry",title:function(){return'<i class="fa fa-list"></i> Endpoints (in/out)'},tooltip:function(){return"List all the incoming and outgoing endpoints in the context"},show:function(){return!r.isEndpointsFolder()&&!r.isEndpoint()&&!r.isComponentsFolder()&&!r.isComponent()&&(r.isCamelContext()||r.isRoutesFolder())&&e.isCamelVersionEQGT(2,16,r,o)&&e.getSelectionCamelEndpointRuntimeRegistry(r)&&r.hasInvokeRightsForName(e.getSelectionCamelEndpointRuntimeRegistry(r),"endpointStatistics")},href:function(){return"/camel/endpointRuntimeRegistry"+r.hash()}}),b.tabs.push({id:"camel-type-converters",title:function(){return'<i class="fa fa-list"></i> Type Converters'},tooltip:function(){return"List all the type converters registered in the context"},show:function(){return!r.isEndpointsFolder()&&!r.isEndpoint()&&!r.isComponentsFolder()&&!r.isComponent()&&(r.isCamelContext()||r.isRoutesFolder())&&e.isCamelVersionEQGT(2,13,r,o)&&r.hasInvokeRightsForName(e.getSelectionCamelTypeConverter(r),"listTypeConverters")},href:function(){return"/camel/typeConverter"+r.hash()}}),b.tabs.push({id:"camel-route-profile",title:function(){return'<i class="fa fa-bar-chart"></i> Profile'},tooltip:function(){return"Profile the messages flowing through the Camel route"},show:function(){return r.isRoute()&&e.getSelectionCamelTraceMBean(r)&&r.hasInvokeRightsForName(e.getSelectionCamelTraceMBean(r),"dumpAllTracedMessagesAsXml")},href:function(){return"/camel/profileRoute"+r.hash()}}),b.tabs.push({id:"camel-route-debug",title:function(){return'<i class="fa fa-stethoscope"></i> Debug'},tooltip:function(){return"Debug the Camel route"},show:function(){return r.isRoute()&&e.getSelectionCamelDebugMBean(r)&&r.hasInvokeRightsForName(e.getSelectionCamelDebugMBean(r),"getBreakpoints")},href:function(){return"/camel/debugRoute"+r.hash()}}),b.tabs.push({id:"camel-route-trace",title:function(){return'<i class="fa fa-envelope"></i> Trace'},tooltip:function(){return"Trace the messages flowing through the Camel route"},show:function(){return r.isRoute()&&e.getSelectionCamelTraceMBean(r)&&r.hasInvokeRightsForName(e.getSelectionCamelTraceMBean(r),"dumpAllTracedMessagesAsXml")},href:function(){return"/camel/traceRoute"+r.hash()}}),b.tabs.push({id:"camel-endpoint-browser",title:function(){return'<i class="fa fa-envelope"></i> Browse'},tooltip:function(){return"Browse the messages on the endpoint"},show:function(){return r.isEndpoint()&&r.hasInvokeRights(r.selection,"browseAllMessagesAsXml")},href:function(){return"/camel/browseEndpoint"+r.hash()}}),b.tabs.push({id:"camel-endpoint-send",title:function(){return'<i class="fa fa-pencil"></i> Send'},show:function(){return r.isEndpoint()&&r.hasInvokeRights(r.selection,"org.apache.camel"===r.selection.domain?"sendBodyAndHeaders":"sendTextMessage")},href:function(){return"/camel/sendMessage"+r.hash()}}),b.tabs.push({id:"camel-endpoint-create",title:function(){return'<i class="fa fa-plus"></i> Endpoint'},tooltip:function(){return"Create a new endpoint"},show:function(){return r.isEndpointsFolder()&&r.hasInvokeRights(r.selection,"createEndpoint")},href:function(){return"/camel/createEndpoint"+r.hash()}}),t.add(b),r.addNamedTreePostProcessor("camel",function(t){var n=[],i=e.jmxDomain;if(t){var r=new Folder("Camel Contexts");r.addClass="org-apache-camel-context-folder",r.children=n,r.typeName="context",r.key="camelContexts",r.domain=i;var a=t.get(i);a&&(angular.forEach(a.children,function(e,t){var a=e.map;if(a){var s=a.context,l=a.routes,u=a.endpoints,c=a.components,d=a.dataformats;if(s){var h=s.children[0];if(h){var f=h.title,g=!0;if(g){var m=new Folder(f);if(m.addClass="org-apache-camel-context",m.domain=i,m.objectName=h.objectName,m.entries=h.entries,m.typeName=h.typeName,m.key=h.key,m.version=h.version,o.request({type:"read",mbean:h.objectName,attribute:"CamelVersion"},Core.onSuccess(function(e){h.version=e.value,Core.$apply(p)})),l){var v=new Folder("Routes");v.addClass="org-apache-camel-routes-folder",v.parent=s,v.children=l.children,angular.forEach(v.children,function(e){return e.addClass="org-apache-camel-routes"}),m.children.push(v),v.typeName="routes",v.key=l.key,v.domain=l.domain}if(u){var y=new Folder("Endpoints");y.addClass="org-apache-camel-endpoints-folder",y.parent=s,y.children=u.children,angular.forEach(y.children,function(e){e.addClass="org-apache-camel-endpoints"}),m.children.push(y),y.entries=h.entries,y.typeName="endpoints",y.key=u.key,y.domain=u.domain}if(c){var b=new Folder("Components");b.addClass="org-apache-camel-components-folder",b.parent=s,b.children=c.children,angular.forEach(b.children,function(e){e.addClass="org-apache-camel-components"}),m.children.push(b),b.entries=h.entries,b.typeName="components",b.key=c.key,b.domain=c.domain}if(d){var w=new Folder("Dataformats");w.addClass="org-apache-camel-dataformats-folder",w.parent=s,w.children=d.children,angular.forEach(w.children,function(e){e.addClass="org-apache-camel-dataformats"}),m.children.push(w),w.entries=h.entries,w.typeName="dataformats",w.key=d.key,w.domain=d.domain}var x=new Folder("MBeans");angular.forEach(a,function(e,t){"context"!==t&&"routes"!==t&&"endpoints"!==t&&"components"!==t&&"dataformats"!==t&&x.children.push(e)}),x.children.length>0&&(x.sortChildren(!1),m.children.push(x)),m.parent=r,n.push(m)}}}}}),a.children.splice(0,0,r))}})}]),hawtioPluginLoader.addModule(e.pluginName),hawtioPluginLoader.registerPreBootstrapTask(function(n){t.registerLazyLoadHandler(e.jmxDomain,function(t){return e.jmxDomain===t.domain&&"routes"===t.typeName?function(t,n,i){"routes"===n.typeName?e.processRouteXml(t,t.jolokia,n,function(t){t&&e.addRouteChildren(n,t),i()}):i()}:null}),n()})}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.AttributesToolBarController",["$scope","workspace","jolokia",function(t,n,i){t.deleteDialog=!1,t.start=function(){t.invokeSelectedMBeans(function(t){
|
|
|
25808
|
+return e.isState(t,"suspend")?"resume()":"start()"})},t.pause=function(){t.invokeSelectedMBeans("suspend()")},t.stop=function(){t.invokeSelectedMBeans("stop()",function(){n.removeAndSelectParentNode()})},t["delete"]=function(){t.invokeSelectedMBeans("remove()",function(){t.workspace.operationCounter+=1,n.loadTree()})},t.anySelectionHasState=function(n){var i=t.selectedItems||[];return i.some(function(t){return e.isState(t,n)})},t.everySelectionHasState=function(n){var i=t.selectedItems||[];return i.every(function(t){return e.isState(t,n)})}}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.BlockedExchangesController",["$scope","$location","workspace","jolokia",function(t,n,i,r){function o(){Core.notification("success","Thread unblocked")}function a(e){var n=e.value;if(n){var i=[];for(var r in n){var o=n[r];i.push({exchangeId:o.exchangeId,routeId:o.routeId,nodeId:o.nodeId,duration:o.duration,threadId:o.id,threadName:o.name})}i=_.sortBy(i,"exchangeId"),t.data=i,t.selectedMBean=e.request.mbean}else t.data=[];t.initDone="true",Core.$apply(t)}function s(){l.info("Loading blocked exchanges data...");var n=e.getSelectedRouteId(i);null!=n&&(t.gridOptions.filterOptions.filterText=n);var o=e.getSelectionCamelBlockedExchanges(i);if(o){var s={type:"exec",mbean:o,operation:"browse()"};r.request(s,Core.onSuccess(a)),Core.scopeStoreJolokiaHandle(t,r,r.register(Core.onSuccess(a),s))}}var l=Logger.get("Camel");t.data=[],t.initDone=!1,t.mbeanAttributes={};var u=[{field:"exchangeId",displayName:"Exchange Id",cellFilter:null,width:"*",resizable:!0},{field:"routeId",displayName:"Route Id",cellFilter:null,width:"*",resizable:!0},{field:"nodeId",displayName:"Node Id",cellFilter:null,width:"*",resizable:!0},{field:"duration",displayName:"Duration (ms)",cellFilter:null,width:"*",resizable:!0},{field:"threadId",displayName:"Thread id",cellFilter:null,width:"*",resizable:!0},{field:"threadName",displayName:"Thread name",cellFilter:null,width:"*",resizable:!0}];t.gridOptions={data:"data",displayFooter:!0,displaySelectionCheckbox:!0,multiSelect:!1,canSelectRows:!0,enableSorting:!0,columnDefs:u,selectedItems:[],filterOptions:{filterText:""},primaryKeyFn:function(e){return e.exchangeId}},t.doUnblock=function(){var n=e.getSelectionCamelBlockedExchanges(i),a=t.gridOptions.selectedItems;if(n&&a&&1===a.length){var s=a[0].exchangeId,u=a[0].threadId,c=a[0].threadName;l.info("Unblocking thread ("+u+"/"+c+") for exchangeId: "+s),r.execute(n,"interrupt(java.lang.String)",s,Core.onSuccess(o))}},s()}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.BreadcrumbBarController",["$scope","$routeParams","workspace","jolokia",function(t,n,i,r){function o(){var n=[],r=e.getRootCamelFolder(i);return r&&angular.forEach(r.children,function(e){var i=e.title;if(i&&i!==t.contextId){var r=i,o=l(i,s());n.push({name:r,tooltip:"Camel Context",link:o})}}),n}function a(e){var t=[];return angular.forEach(["endpoints","routes"],function(n){if(n&&n!==s()){var i=l(e,n);t.push({name:n,tooltip:"Entity inside a Camel Context",link:i})}}),t}function s(){var e=Core.pathGet(t,["breadcrumbs","childEntity"]);return e||f}function l(t,n){var i=u(t,n),r=i.length>0?i[0].link:e.linkToBrowseEndpointFullScreen(t,"noEndpoints");return r}function u(e,t){return"endpoints"===t?c(e):d(e)}function c(t){var n=[],r=e.getCamelContextFolder(i,t);if(r){var o=(r.children||[]).find(function(e){return"endpoints"===e.title});o&&angular.forEach(o.children,function(i){var r=i?i.entries:null;if(r){var o=r.name;if(o){var a=h(o),s=e.linkToBrowseEndpointFullScreen(t,o);n.push({contextId:t,path:o,name:a,tooltip:"Endpoint",link:s})}}})}return n}function d(t){var n=[],r=e.getCamelContextFolder(i,t);if(r){var o=(r.children||[]).find(function(e){return"routes"===e.title});o&&angular.forEach(o.children,function(i){var r=i?i.entries:null;if(r){var o=r.name;if(o){var a=h(o),s=e.linkToRouteDiagramFullScreen(t,o);n.push({contextId:t,path:o,name:a,tooltip:"Camel Route",link:s})}}})}return n}function p(){var n=null;if(t.contextId){var r=null,o=null;t.endpointPath?(o="browseEndpoint",r=i.findMBeanWithProperties(e.jmxDomain,{context:t.contextId,type:"endpoints",name:t.endpointPath})):t.routeId&&(o="routes",r=i.findMBeanWithProperties(e.jmxDomain,{context:t.contextId,type:"routes",name:t.routeId}));var a=r?r.key:null;a&&o&&(n="#/camel/"+o+"?tab=camel&nid="+a)}return n}function h(e){return e?Core.trimQuotes(e):e}t.workspace=i,null!=n&&(t.contextId=n.contextId,t.endpointPath=n.endpointPath,t.endpointName=h(t.endpointPath),t.routeId=n.routeId),t.treeViewLink=p();var f=t.endpointPath?"endpoints":"routes",g={endpoints:"Camel Endpoint",routes:"Camel Route"};t.breadcrumbs=[{name:t.contextId,items:o(),tooltip:"Camel Context"},{name:f,items:a(t.contextId),tooltip:"Entity inside a Camel Context"},{name:t.endpointName||h(t.routeId),items:u(t.contextId,s()),tooltip:g[f]}]}])}(Camel||(Camel={}));var Camel;!function(e){e.BrowseEndpointController=e._module.controller("Camel.BrowseEndpointController",["$scope","$routeParams","workspace","jolokia",function(t,n,i,r){function o(){}function a(){t.messageDialog&&t.messageDialog.close(),t.gridOptions.selectedItems.splice(0),Core.notification("success",t.message),setTimeout(s,50)}function s(){var n=null;if(t.contextId&&t.endpointPath){var o=i.findMBeanWithProperties(e.jmxDomain,{context:t.contextId,type:"endpoints",name:t.endpointPath});o&&(n=o.objectName)}if(n||(n=i.getSelectedMBeanName()),n){e.log.info("MBean: "+n);var a=Core.onSuccess(l);r.execute(n,"browseAllMessagesAsXml(java.lang.Boolean)",!0,a)}}function l(n){var i=[];if(angular.isString(n)){var r=$.parseXML(n),o=$(r).find("message");o.each(function(n,r){var o=e.createMessageFromXml(r);o.openMessageDialog=t.openMessageDialog,i.push(o)})}t.messages=i,Core.$apply(t)}t.workspace=i,t.forwardDialog=new UI.Dialog,t.showMessageDetails=!1,t.mode="text",t.gridOptions=e.createBrowseGridOptions(),t.contextId=n.contextId,t.endpointPath=n.endpointPath,t.isJmxTab=!n.contextId||!n.endpointPath,t.$watch("workspace.selection",function(){t.isJmxTab&&i.moveIfViewInvalid()||s()}),t.openMessageDialog=function(e){ActiveMQ.selectCurrentMessage(e,"id",t),t.row&&(t.mode=CodeEditor.detectTextFormat(t.row.body),t.showMessageDetails=!0)},ActiveMQ.decorate(t),t.forwardMessagesAndCloseForwardDialog=function(){var n=e.getSelectionCamelContextMBean(i),s=t.gridOptions.selectedItems,l=t.endpointUri;n&&l&&s&&s.length&&(r.execute(n,"createEndpoint(java.lang.String)",l,Core.onSuccess(o)),t.message="Forwarded "+Core.maybePlural(s.length,"message to "+l),angular.forEach(s,function(e,t){var i=t+1<s.length?o:a,u=e.body,c=e.headers;r.execute(n,"sendBodyAndHeaders(java.lang.String, java.lang.Object, java.util.Map)",l,u,c,Core.onSuccess(i))})),t.forwardDialog.close()},t.endpointUris=function(){var t=e.getSelectionCamelContextEndpoints(i);return t?t.children.map(function(e){return e.title}):[]},t.refresh=s}])}(Camel||(Camel={}));var Camel;!function(e){e.camelHeaderSchema={definitions:{headers:{properties:{CamelAuthentication:{type:"java.lang.String"},CamelAuthenticationFailurePolicyId:{type:"java.lang.String"},CamelAcceptContentType:{type:"java.lang.String"},CamelAggregatedSize:{type:"java.lang.String"},CamelAggregatedTimeout:{type:"java.lang.String"},CamelAggregatedCompletedBy:{type:"java.lang.String"},CamelAggregatedCorrelationKey:{type:"java.lang.String"},CamelAggregationStrategy:{type:"java.lang.String"},CamelAggregationCompleteAllGroups:{type:"java.lang.String"},CamelAggregationCompleteAllGroupsInclusive:{type:"java.lang.String"},CamelAsyncWait:{type:"java.lang.String"},CamelBatchIndex:{type:"java.lang.String"},CamelBatchSize:{type:"java.lang.String"},CamelBatchComplete:{type:"java.lang.String"},CamelBeanMethodName:{type:"java.lang.String"},CamelBeanMultiParameterArray:{type:"java.lang.String"},CamelBinding:{type:"java.lang.String"},breadcrumbId:{type:"java.lang.String"},CamelCharsetName:{type:"java.lang.String"},CamelCreatedTimestamp:{type:"java.lang.String"},"Content-Encoding":{type:"java.lang.String"},"Content-Length":{type:"java.lang.String"},"Content-Type":{type:"java.lang.String"},CamelCorrelationId:{type:"java.lang.String"},CamelDataSetIndex:{type:"java.lang.String"},"org.apache.camel.default.charset":{type:"java.lang.String"},CamelDestinationOverrideUrl:{type:"java.lang.String"},CamelDisableHttpStreamCache:{type:"java.lang.String"},CamelDuplicateMessage:{type:"java.lang.String"},CamelExceptionCaught:{type:"java.lang.String"},CamelExceptionHandled:{type:"java.lang.String"},CamelEvaluateExpressionResult:{type:"java.lang.String"},CamelErrorHandlerHandled:{type:"java.lang.String"},CamelExternalRedelivered:{type:"java.lang.String"},CamelFailureHandled:{type:"java.lang.String"},CamelFailureEndpoint:{type:"java.lang.String"},CamelFailureRouteId:{type:"java.lang.String"},CamelFilterNonXmlChars:{type:"java.lang.String"},CamelFileLocalWorkPath:{type:"java.lang.String"},CamelFileName:{type:"java.lang.String"},CamelFileNameOnly:{type:"java.lang.String"},CamelFileNameProduced:{type:"java.lang.String"},CamelFileNameConsumed:{type:"java.lang.String"},CamelFilePath:{type:"java.lang.String"},CamelFileParent:{type:"java.lang.String"},CamelFileLastModified:{type:"java.lang.String"},CamelFileLength:{type:"java.lang.String"},CamelFilterMatched:{type:"java.lang.String"},CamelFileLockFileAcquired:{type:"java.lang.String"},CamelFileLockFileName:{type:"java.lang.String"},CamelGroupedExchange:{type:"java.lang.String"},CamelHttpBaseUri:{type:"java.lang.String"},CamelHttpCharacterEncoding:{type:"java.lang.String"},CamelHttpMethod:{type:"java.lang.String"},CamelHttpPath:{type:"java.lang.String"},CamelHttpProtocolVersion:{type:"java.lang.String"},CamelHttpQuery:{type:"java.lang.String"},CamelHttpResponseCode:{type:"java.lang.String"},CamelHttpUri:{type:"java.lang.String"},CamelHttpUrl:{type:"java.lang.String"},CamelHttpChunked:{type:"java.lang.String"},CamelHttpServletRequest:{type:"java.lang.String"},CamelHttpServletResponse:{type:"java.lang.String"},CamelInterceptedEndpoint:{type:"java.lang.String"},CamelInterceptSendToEndpointWhenMatched:{type:"java.lang.String"},CamelLanguageScript:{type:"java.lang.String"},CamelLogDebugBodyMaxChars:{type:"java.lang.String"},CamelLogDebugStreams:{type:"java.lang.String"},CamelLoopIndex:{type:"java.lang.String"},CamelLoopSize:{type:"java.lang.String"},CamelMaximumCachePoolSize:{type:"java.lang.String"},CamelMaximumEndpointCacheSize:{type:"java.lang.String"},CamelMessageHistory:{type:"java.lang.String"},CamelMulticastIndex:{type:"java.lang.String"},CamelMulticastComplete:{type:"java.lang.String"},CamelNotifyEvent:{type:"java.lang.String"},CamelOnCompletion:{type:"java.lang.String"},CamelOverruleFileName:{type:"java.lang.String"},CamelParentUnitOfWork:{type:"java.lang.String"},CamelRecipientListEndpoint:{type:"java.lang.String"},CamelReceivedTimestamp:{type:"java.lang.String"},CamelRedelivered:{type:"java.lang.String"},CamelRedeliveryCounter:{type:"java.lang.String"},CamelRedeliveryMaxCounter:{type:"java.lang.String"},CamelRedeliveryExhausted:{type:"java.lang.String"},CamelRedeliveryDelay:{type:"java.lang.String"},CamelRollbackOnly:{type:"java.lang.String"},CamelRollbackOnlyLast:{type:"java.lang.String"},CamelRouteStop:{type:"java.lang.String"},CamelSoapAction:{type:"java.lang.String"},CamelSkipGzipEncoding:{type:"java.lang.String"},CamelSlipEndpoint:{type:"java.lang.String"},CamelSplitIndex:{type:"java.lang.String"},CamelSplitComplete:{type:"java.lang.String"},CamelSplitSize:{type:"java.lang.String"},CamelTimerCounter:{type:"java.lang.String"},CamelTimerFiredTime:{type:"java.lang.String"},CamelTimerName:{type:"java.lang.String"},CamelTimerPeriod:{type:"java.lang.String"},CamelTimerTime:{type:"java.lang.String"},CamelToEndpoint:{type:"java.lang.String"},CamelTraceEvent:{type:"java.lang.String"},CamelTraceEventNodeId:{type:"java.lang.String"},CamelTraceEventTimestamp:{type:"java.lang.String"},CamelTraceEventExchange:{type:"java.lang.String"},"Transfer-Encoding":{type:"java.lang.String"},CamelUnitOfWorkExhausted:{type:"java.lang.String"},CamelUnitOfWorkProcessSync:{type:"java.lang.String"},CamelXsltFileName:{type:"java.lang.String"}}}}}}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.DebugRouteController",["$scope","$element","workspace","jolokia","localStorage","documentBase",function(t,n,i,r,o,a){function s(){var t=g();if(t){var n=x();e.highlightSelectedNode(n,t)}else e.highlightSelectedNode(n,null)}function l(){t.debugging=!1;var n=e.getSelectionCamelDebugMBean(i);n&&(t.debugging=r.getAttribute(n,"Enabled",Core.onSuccess(null)),t.debugging?(r.execute(n,"getBreakpoints",Core.onSuccess(v)),t.graphView="plugins/camel/html/routes.html",Core.register(r,t,{type:"exec",mbean:n,operation:"getDebugCounter"},Core.onSuccess(u))):t.graphView=null)}function u(e){var n=e.value;n&&n!==t.breakpointCounter&&(t.breakpointCounter=n,c())}function c(){var t=e.getSelectionCamelDebugMBean(i);t&&(console.log("getting suspended breakpoints!"),r.execute(t,"getSuspendedBreakpointNodeIds",Core.onSuccess(d)))}function d(n){var o=e.getSelectionCamelDebugMBean(i);t.suspendedBreakpoints=n,t.stopped=n&&n.length;var a=g();o&&a&&(r.execute(o,"dumpTracedMessagesAsXml",a,Core.onSuccess(p)),t.selectedDiagramNodeId=a)}function p(n,i){if(T.debug("onMessage -> "+n),t.messages=[],n){var r=n;if(angular.isString(r)){var o=$.parseXML(r),a=$(o).find("fabricTracerEventMessage");a&&a.length||(a=$(o).find("backlogTracerEventMessage")),a.each(function(n,i){var r=e.createMessageFromXml(i),o=$(i).find("toNode").text();o&&(r.toNode=o),r.openMessageDialog=t.openMessageDialog,t.messages.push(r)})}}else T.warn("WARNING: dumpTracedMessagesAsXml() returned no results!");h(),k(),s(),T.debug("has messages "+t.messages.length+" selected row "+t.row+" index "+t.rowIndex),Core.$apply(t)}function h(){if(t.messages.length>0){t.row=t.messages[0];var e=t.row.body;t.mode=angular.isString(e)?CodeEditor.detectTextFormat(e):"text","javascript"==t.mode&&(t.mode="text")}else t.row={headers:{},body:"",bodyType:""},t.mode="text"}function f(){t.messages=[],t.suspendedBreakpoints=[],t.stopped=!1,h(),k(),s(),Core.$apply(t)}function g(){var e=null,n=t.suspendedBreakpoints;return n&&n.length&&(e=n[0],n.length>1&&m(t.selectedDiagramNodeId)&&(e=t.selectedDiagramNodeId)),e}function m(e){return w(t.suspendedBreakpoints,e)}function v(e){t.breakpoints=e,b();var n=x();n.length&&k(n),Core.$apply(t)}function y(e){return w(t.breakpoints,e)}function b(){t.hasBreakpoint=y(t.selectedDiagramNodeId)}function w(e,t){return t&&e&&e.indexOf(t)!==-1}function x(){var e=d3.select("svg");return e.selectAll("g .node")}function k(e){void 0===e&&(e=x()),e.each(function(e){var t=e.cid,n=d3.select(this),i=n.selectAll("image.breakpoint"),r=m(t),o=y(t);if(o||r){var a=r?E:_;i.length&&i[0].length?i.attr("xlink:href",function(e){return a}):n.append("image").attr("xlink:href",function(e){return a}).attr("class","breakpoint").attr("x",-12).attr("y",-20).attr("height",24).attr("width",24)}else i.remove()})}function C(e){l(),Core.$apply(t)}function S(t){var n=e.getSelectionCamelDebugMBean(i);if(n){var a=t?"enableDebugger":"disableDebugger",s=e.maximumTraceOrDebugBodyLength(o),l=e.traceOrDebugIncludeStreams(o);r.setAttribute(n,"BodyMaxChars",s),r.setAttribute(n,"BodyIncludeStreams",l),r.setAttribute(n,"BodyIncludeFiles",l),r.execute(n,a,Core.onSuccess(C))}}var T=Logger.get("CamelDebugger");t.debugging=!1,t.stopped=!1,t.ignoreRouteXmlNode=!0,t.messages=[],t.mode="text",t.showMessageDetails=!0,t.startDebugging=function(){T.info("Start debugging"),S(!0)},t.stopDebugging=function(){T.info("Stop debugging"),S(!1)},t.$on("$routeChangeSuccess",function(e,t,n){setTimeout(l,50)}),t.$on("camel.diagram.selectedNodeId",function(e,n){t.selectedDiagramNodeId=n,b()}),t.$on("camel.diagram.layoutComplete",function(e,i){k(),$(n).find("g.node").dblclick(function(e){var n=this.getAttribute("data-cid");t.toggleBreakpoint(n)})}),t.$watch("workspace.selection",function(){i.moveIfViewInvalid()||l()}),t.toggleBreakpoint=function(t){T.info("Toggle breakpoint");var n=e.getSelectionCamelDebugMBean(i);if(n&&t){var o=y(t)?"removeBreakpoint":"addBreakpoint";r.execute(n,o,t,Core.onSuccess(C))}},t.addBreakpoint=function(){T.info("Add breakpoint");var n=e.getSelectionCamelDebugMBean(i);n&&t.selectedDiagramNodeId&&r.execute(n,"addBreakpoint",t.selectedDiagramNodeId,Core.onSuccess(C))},t.removeBreakpoint=function(){T.info("Remove breakpoint");var n=e.getSelectionCamelDebugMBean(i);n&&t.selectedDiagramNodeId&&r.execute(n,"removeBreakpoint",t.selectedDiagramNodeId,Core.onSuccess(C))},t.resume=function(){T.info("Resume");var t=e.getSelectionCamelDebugMBean(i);t&&r.execute(t,"resumeAll",Core.onSuccess(f))},t.suspend=function(){T.info("Suspend");var t=e.getSelectionCamelDebugMBean(i);t&&r.execute(t,"suspendAll",Core.onSuccess(f))},t.step=function(){T.info("Step");var t=e.getSelectionCamelDebugMBean(i),n=g();t&&n&&r.execute(t,"stepBreakpoint(java.lang.String)",n,Core.onSuccess(f))};var _=UrlHelpers.join(a,"/img/icons/camel/breakpoint.gif"),E=UrlHelpers.join(a,"/img/icons/camel/breakpoint-suspended.gif")}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.EndpointController",["$scope","$location","localStorage","workspace","jolokia",function(t,n,i,r,o){function a(){t.endpointName="",t.workspace.operationCounter+=1,Core.$apply(t),Core.notification("success",t.message)}function s(){if(r.selection){var e=Core.pathGet(r,["selection","parent"]);e&&t.workspace.updateSelectionNode(e)}t.workspace.operationCounter+=1,Core.$apply(t),Core.notification("success",t.message)}e.initEndpointChooserScope(t,n,i,r,o),t.workspace=r,t.message="",t.createEndpoint=function(n){var i=r.jolokia;if(i){var o=e.getSelectionCamelContextMBean(r);if(o){t.message="Creating endpoint "+n;var s="createEndpoint(java.lang.String)";i.execute(o,s,n,Core.onSuccess(a))}else Core.notification("error","Could not find the CamelContext MBean!")}},t.createEndpointFromData=function(){if(t.selectedComponentName&&t.endpointPath){var e=t.selectedComponentName+"://"+t.endpointPath;console.log("Have endpoint data "+JSON.stringify(t.endpointParameters));var n="";angular.forEach(t.endpointParameters,function(e,t){var i=n?"&":"";n+=i+t+"="+e}),n&&(e+="?"+n),t.createEndpoint(e)}},t.deleteEndpoint=function(){var e=r.jolokia,n=r.selection,i=n.entries;if(n&&e&&i){var o=n.domain,a=i.BrokerName,l=i.Destination,u="Topic"!==i.Type;if(o&&a){var c=""+o+":BrokerName="+a+",Type=Broker";t.message="Deleting "+(u?"queue":"topic")+" "+l;var d="removeEndpoint(java.lang.String)";e.execute(c,d,l,Core.onSuccess(s))}}}}])}(Camel||(Camel={}));var Camel;!function(e){function t(t){var n=e.getEndpointConfig(t,null),r=Core.pathGet(n,["icon"]);if(!r){var o=i(t);r=Core.pathGet(o,["endpointIcon"])}return r=r||e.endpointIcon}function n(t,n){var i=e.endpointConfigurations[t];return i||(i={},e.endpointConfigurations[t]=i),i.label||(i.label=t),i.icon||(i.icon=Core.pathGet(n,["endpointIcon"])||e.endpointIcon),i.category||(i.category=n),i}function i(t){return e.endpointToCategory[t]||e.endpointCategories.core}function r(){var t=e._apacheCamelModel,n=t.definitions;return n&&angular.forEach(a,function(e,t){var i=n[t];i&&(i.tabs||(i.tabs=e))}),t}function o(t,n,i,r,o){function a(n){t.componentNames=n,e.log.info("onComponents: "+n),t.hasComponentNames=!!t.componentNames,Core.$apply(t)}function s(e){if(e)try{var n=JSON.parse(e),i=t.selectedComponentName;l(i,n),t.endpointSchema=n,t.schema.definitions[i]=n,t.loadedEndpointSchema=i,Core.$apply(t)}catch(r){console.log("Failed to parse JSON "+r),console.log("JSON: "+e)}}function l(t,n){console.log("======== configuring schema for "+t);var i=e.endpointForms[t];i&&n&&i.tabs&&(n.tabs=i.tabs)}function u(){var o=t.profileWorkspace;if(!o){var a=t.jolokia;a&&(o=Core.createRemoteWorkspace(a,n,i),t.profileWorkspace=o)}o||(e.log.info("No profileWorkspace found so defaulting it to workspace for now"),o=r);var s,l,u=t.selectedComponentName;angular.isDefined(t.camelSelectionDetails)&&(s=t.camelSelectionDetails.selectedCamelContextId,l=t.camelSelectionDetails.selectedRouteId),console.log("==== componentName "+u+" selectedCamelContextId: "+s+" selectedRouteId: "+l);var c=e.camelContextMBeansById(o);if(s){var d=Core.pathGet(c,[s,"mbean"]);if(d)return d}if(l){var p=e.camelContextMBeansByRouteId(o),d=Core.pathGet(p,[l,"mbean"]);if(d)return d}if(u){var p=e.camelContextMBeansByComponentName(o),d=Core.pathGet(p,[u,"mbean"]);if(d)return d}var h=null;return angular.forEach(c,function(e,t){var n=e.mbean;!h&&n&&(h=n)}),h}t.selectedComponentName=null,t.endpointParameters={},t.endpointPath="",t.schema={definitions:{}},t.jolokia=o;var c={silent:!0};t.$watch("workspace.selection",function(){t.loadEndpointNames()}),t.$watch("selectedComponentName",function(){t.selectedComponentName!==t.loadedComponentName&&(t.endpointParameters={},t.loadEndpointSchema(t.selectedComponentName),t.loadedComponentName=t.selectedComponentName)}),t.endpointCompletions=function(e){var n=null,i=u(),r=t.selectedComponentName,o={};return i&&r&&e&&(n=t.jolokia.execute(i,"completeEndpointPath",r,o,e,Core.onSuccess(null,c))),n||[]},t.loadEndpointNames=function(){t.componentNames=null;var e=u();e?t.jolokia.execute(e,"findComponentNames",Core.onSuccess(a,{silent:!0})):console.log("WARNING: No camel context mbean so cannot load component names")},t.loadEndpointSchema=function(e){var n=u();n&&e&&e!==t.loadedEndpointSchema&&(t.selectedComponentName=e,t.jolokia.execute(n,"componentParameterJsonSchema",e,Core.onSuccess(s,c)))}}e.endpointCategories={bigdata:{label:"Big Data",endpoints:["hdfs","hbase","lucene","solr"],endpointIcon:"img/icons/camel/endpointRepository24.png"},database:{label:"Database",endpoints:["couchdb","elasticsearch","hbase","jdbc","jpa","hibernate","mongodb","mybatis","sql"],endpointIcon:"img/icons/camel/endpointRepository24.png"},cloud:{label:"Cloud",endpoints:["aws-cw","aws-ddb","aws-sdb","aws-ses","aws-sns","aws-sqs","aws-s3","gauth","ghhtp","glogin","gtask","jclouds"]},core:{label:"Core",endpoints:["bean","direct","seda"]},messaging:{label:"Messaging",endpoints:["jms","activemq","amqp","cometd","cometds","mqtt","netty","vertx","websocket"],endpointIcon:"img/icons/camel/endpointQueue24.png"},mobile:{label:"Mobile",endpoints:["apns"]},sass:{label:"SaaS",endpoints:["salesforce","sap-netweaver"]},social:{label:"Social",endpoints:["atom","facebook","irc","ircs","rss","smpp","twitter","weather"]},storage:{label:"Storage",endpointIcon:"img/icons/camel/endpointFolder24.png",endpoints:["file","ftp","sftp","scp","jsch"]},template:{label:"Templating",endpoints:["freemarker","velocity","xquery","xslt","scalate","string-template"]}},e.endpointToCategory={},e.endpointIcon="img/icons/camel/endpoint24.png",e.endpointConfigurations={drools:{icon:"img/icons/camel/endpointQueue24.png"},quartz:{icon:"img/icons/camel/endpointTimer24.png"},facebook:{icon:"img/icons/camel/endpoints/facebook24.jpg"},salesforce:{icon:"img/icons/camel/endpoints/salesForce24.png"},sap:{icon:"img/icons/camel/endpoints/SAPe24.png"},"sap-netweaver":{icon:"img/icons/camel/endpoints/SAPNetweaver24.jpg"},timer:{icon:"img/icons/camel/endpointTimer24.png"},twitter:{icon:"img/icons/camel/endpoints/twitter24.png"},weather:{icon:"img/icons/camel/endpoints/weather24.jpg"}},e.endpointForms={file:{tabs:{Options:["*"]}},activemq:{tabs:{Connection:["clientId","transacted","transactedInOut","transactionName","transactionTimeout"],Producer:["timeToLive","priority","allowNullBody","pubSubNoLocal","preserveMessageQos"],Consumer:["concurrentConsumers","acknowledgementModeName","selector","receiveTimeout"],Reply:["replyToDestination","replyToDeliveryPersistent","replyToCacheLevelName","replyToDestinationSelectorName"],Options:["*"]}}},e.endpointForms.jms=e.endpointForms.activemq,angular.forEach(e.endpointCategories,function(t,n){t.id=n,angular.forEach(t.endpoints,function(n){e.endpointToCategory[n]=t})});var a={route:{Overview:["id","description"],Advanced:["*"]}};e.getEndpointIcon=t,e.getEndpointConfig=n,e.getEndpointCategory=i,e.getConfiguredCamelModel=r,e.initEndpointChooserScope=o}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.EndpointRuntimeRegistryController",["$scope","$location","workspace","jolokia",function(t,n,i,r){function o(e){var n=e.value;if(n){var i=[];for(var r in n){var o=n[r];i.push({url:o.url,routeId:o.routeId,direction:o.direction,"static":o["static"],dynamic:o.dynamic,hits:o.hits})}i=_.sortBy(i,"url"),t.data=i,t.selectedMBean=e.request.mbean}else t.selectedMBean="true";Core.$apply(t)}function a(){console.log("Loading EndpointRuntimeRegistry data...");var t=e.getSelectionCamelEndpointRuntimeRegistry(i);t&&r.request({type:"exec",mbean:t,operation:"endpointStatistics"},Core.onSuccess(o))}t.data=[],t.selectedMBean=null,t.mbeanAttributes={};var s=[{field:"url",displayName:"Url",cellFilter:null,width:"*",resizable:!0},{field:"routeId",displayName:"Route Id",cellFilter:null,width:"*",resizable:!0},{field:"direction",displayName:"Direction",cellFilter:null,width:"*",resizable:!0},{field:"static",displayName:"Static",cellFilter:null,width:"*",resizable:!0},{field:"dynamic",displayName:"Dynamic",cellFilter:null,width:"*",resizable:!0},{field:"hits",displayName:"Hits",cellFilter:null,width:"*",resizable:!0}];t.gridOptions={data:"data",displayFooter:!0,displaySelectionCheckbox:!1,canSelectRows:!1,enableSorting:!0,columnDefs:s,selectedItems:[],filterOptions:{filterText:""},primaryKeyFn:function(e){return e.routeId}},t.renderIcon=function(t){return e.iconClass(t)},a()}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.InflightController",["$scope","$location","workspace","jolokia",function(t,n,i,r){function o(e){var n=e.value;if(n){var i=[];for(var r in n){var o=n[r];i.push({exchangeId:o.exchangeId,routeId:o.routeId,nodeId:o.nodeId,duration:o.duration,elapsed:o.elapsed})}i=_.sortBy(i,"exchangeId"),t.data=i,t.selectedMBean=e.request.mbean}else t.data=[];t.initDone="true",Core.$apply(t)}function a(){console.log("Loading inflight data...");var n=e.getSelectedRouteId(i);null!=n&&(t.gridOptions.filterOptions.filterText=n);var a=e.getSelectionCamelInflightRepository(i);if(a){var s={type:"exec",mbean:a,operation:"browse()"};Core.scopeStoreJolokiaHandle(t,r,r.register(o,s))}}t.data=[],t.initDone=!1,t.mbeanAttributes={};var s=[{field:"exchangeId",displayName:"Exchange Id",cellFilter:null,width:"*",resizable:!0},{field:"routeId",displayName:"Route Id",cellFilter:null,width:"*",resizable:!0},{field:"nodeId",displayName:"Node Id",cellFilter:null,width:"*",resizable:!0},{field:"duration",displayName:"Duration (ms)",cellFilter:null,width:"*",resizable:!0},{field:"elapsed",displayName:"Elapsed (ms)",cellFilter:null,width:"*",resizable:!0}];t.gridOptions={data:"data",displayFooter:!0,displaySelectionCheckbox:!1,canSelectRows:!1,enableSorting:!0,columnDefs:s,selectedItems:[],filterOptions:{filterText:""},primaryKeyFn:function(e){return e.exchangeId}},t.renderIcon=function(t){return e.iconClass(t)},a()}])}(Camel||(Camel={}));var Camel;!function(e){e.jmsHeaderSchema={definitions:{headers:{properties:{JMSCorrelationID:{type:"java.lang.String"},JMSDeliveryMode:{type:"string","enum":["PERSISTENT","NON_PERSISTENT"]},JMSDestination:{type:"javax.jms.Destination"},JMSExpiration:{type:"long"},JMSPriority:{type:"int"},JMSReplyTo:{type:"javax.jms.Destination"},JMSType:{type:"java.lang.String"},JMSXGroupId:{type:"java.lang.String"},AMQ_SCHEDULED_CRON:{type:"java.lang.String"},AMQ_SCHEDULED_DELAY:{type:"java.lang.String"},AMQ_SCHEDULED_PERIOD:{type:"java.lang.String"},AMQ_SCHEDULED_REPEAT:{type:"java.lang.String"}}},"javax.jms.Destination":{type:"java.lang.String"}}}}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.PreferencesController",["$scope","localStorage",function(t,n){var i={properties:{camelHideOptionDocumentation:{type:"boolean","default":e.defaultHideOptionDocumentation,description:"Whether to hide documentation in the properties view and Camel route editor"},camelHideOptionDefaultValue:{type:"boolean","default":e.defaultHideOptionDefaultValue,description:"Whether to hide options that are using a default value in the properties view"},camelHideOptionUnusedValue:{type:"boolean","default":e.defaultHideOptionUnusedValue,description:"Whether to hide unused/empty options in the properties view"},camelTraceOrDebugIncludeStreams:{type:"boolean","default":e.defaultCamelTraceOrDebugIncludeStreams,description:"Whether to include stream based message body when using the tracer and debugger"},camelMaximumTraceOrDebugBodyLength:{type:"number","default":e.defaultCamelMaximumTraceOrDebugBodyLength,description:"The maximum length of the body before its clipped when using the tracer and debugger"},camelMaximumLabelWidth:{type:"number",description:"The maximum length of a label in Camel diagrams before it is clipped"},camelIgnoreIdForLabel:{type:"boolean","default":!1,description:"If enabled then we will ignore the ID value when viewing a pattern in a Camel diagram; otherwise we will use the ID value as the label (the tooltip will show the actual detail)"},camelShowInflightCounter:{type:"boolean","default":!0,description:"Whether to show inflight counter in route diagram"},camelRouteMetricMaxSeconds:{type:"number",min:"1",max:"100",description:"The maximum value in seconds used by the route metrics duration and histogram charts"}}};t.entity=t,t.config=i,Core.initPreferenceScope(t,n,{camelIgnoreIdForLabel:{value:!1,converter:Core.parseBooleanValue},camelShowInflightCounter:{value:!0,converter:Core.parseBooleanValue},camelMaximumLabelWidth:{value:e.defaultMaximumLabelWidth,converter:parseInt},camelMaximumTraceOrDebugBodyLength:{value:e.defaultCamelMaximumTraceOrDebugBodyLength,converter:parseInt},camelTraceOrDebugIncludeStreams:{value:e.defaultCamelTraceOrDebugIncludeStreams,converter:Core.parseBooleanValue},camelRouteMetricMaxSeconds:{value:e.defaultCamelRouteMetricMaxSeconds,converter:parseInt},camelHideOptionDocumentation:{value:e.defaultHideOptionDocumentation,converter:Core.parseBooleanValue},camelHideOptionDefaultValue:{value:e.defaultHideOptionDefaultValue,converter:Core.parseBooleanValue},camelHideOptionUnusedValue:{value:e.defaultHideOptionUnusedValue,converter:Core.parseBooleanValue}})}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.ProfileRouteController",["$scope","$location","workspace","jolokia",function(t,n,i,r){function o(e){var n=[],i=e.value;if(angular.isString(i)){var r=$.parseXML(i),o=$(r).find("routeStat");o.each(function(e,t){var i={id:{},count:{},last:{},delta:{},mean:{},min:{},max:{},total:{},self:{}};i.id=t.getAttribute("id");var r=0;r+=+t.getAttribute("exchangesCompleted"),r+=+t.getAttribute("exchangesFailed"),i.count=r,i.last=t.getAttribute("lastProcessingTime");var o=t.getAttribute("deltaProcessingTime");o?i.delta=o:i.delta=0,i.mean=t.getAttribute("meanProcessingTime"),i.min=t.getAttribute("minProcessingTime"),i.max=t.getAttribute("maxProcessingTime"),i.total=t.getAttribute("totalProcessingTime"),i.self=t.getAttribute("selfProcessingTime"),n.push(i)});var a=$(r).find("processorStat");a.each(function(e,t){var i={id:{},count:{},last:{},delta:{},mean:{},min:{},max:{},total:{},self:{}};i.id=t.getAttribute("id");var r=0;r+=+t.getAttribute("exchangesCompleted"),r+=+t.getAttribute("exchangesFailed"),i.count=r,i.last=t.getAttribute("lastProcessingTime");var o=t.getAttribute("deltaProcessingTime");o?i.delta=o:i.delta=0,i.mean=t.getAttribute("meanProcessingTime"),i.min=t.getAttribute("minProcessingTime"),i.max=t.getAttribute("maxProcessingTime");var a=t.getAttribute("accumulatedProcessingTime");a?i.total=a:i.total="0",i.self=t.getAttribute("totalProcessingTime"),n.push(i)})}t.data=n,t.initDone=!0,Core.$apply(t)}function a(){console.log("Loading Camel route profile data...");var n=e.getSelectedRouteId(i),a=e.getSelectionRouteMBean(i,n);if(a){var s={type:"exec",mbean:a,operation:"dumpRouteStatsAsXml(boolean,boolean)",arguments:[!1,!0]};Core.scopeStoreJolokiaHandle(t,r,r.register(o,s));
|
|
|
25809
|
+}}t.initDone=!1,t.data=[];var s=[{field:"id",displayName:"Id",cellFilter:null,width:"**",resizable:!0},{field:"count",displayName:"Count",cellFilter:null,width:"*",resizable:!0},{field:"last",displayName:"Last",cellFilter:null,width:"*",resizable:!0},{field:"delta",displayName:"Delta",cellFilter:null,width:"*",resizable:!0},{field:"mean",displayName:"Mean",cellFilter:null,width:"*",resizable:!0},{field:"min",displayName:"Min",cellFilter:null,width:"*",resizable:!0},{field:"max",displayName:"Max",cellFilter:null,width:"*",resizable:!0},{field:"total",displayName:"Total",cellFilter:null,width:"*",resizable:!0},{field:"self",displayName:"Self",cellFilter:null,width:"*",resizable:!0}];t.rowIcon=function(e){var n=t.icons[e];return n?n.img+" "+e:e},t.gridOptions={data:"data",selectedItems:[],displayFooter:!0,displaySelectionCheckbox:!1,canSelectRows:!1,enableSorting:!1,columnDefs:s,filterOptions:{filterText:""}},a()}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.PropertiesController",["$scope","workspace","localStorage","jolokia",function(t,n,i,r){function o(e){var n=Core.pathGet(t.model,["properties",e,"defaultValue"]);if(angular.isDefined(n)){var i=Core.pathGet(t.nodeData,e);if(angular.isDefined(i)){var r=i.toString();return 0===r.localeCompare(n)}}return!1}function a(e){var n=Core.pathGet(t.nodeData,e);return!angular.isUndefined(n)&&!Core.isBlank(n)&&(!angular.isString(n)||!Core.isBlank(n))}function s(){var i=e.getSelectedRouteNode(n);if(t.nodeData=e.getRouteNodeJSON(i),i&&(t.model=e.getCamelSchema(i.nodeName),t.model)){l.enabledFor(Logger.DEBUG)&&(l.debug("Properties - data: "+JSON.stringify(t.nodeData,null," ")),l.debug("Properties - schema: "+JSON.stringify(t.model,null," ")));var r=[];t.model.group&&(r=t.model.group.split(",")),t.labels=r,t.nodeData=e.getRouteNodeJSON(i),t.icon=e.getRouteNodeIcon(i),t.viewTemplate="plugins/camel/html/nodePropertiesView.html",Core.$apply(t)}}var l=Logger.get("Camel");t.hideHelp=e.hideOptionDocumentation(i),t.hideUnused=e.hideOptionUnusedValue(i),t.hideDefault=e.hideOptionDefaultValue(i),t.viewTemplate=null,t.schema=e._apacheCamelModel,t.model=null,t.labels=[],t.nodeData=null,t.icon=null,t.$watch("hideHelp",function(e,t){e!==t&&s()}),t.$watch("hideUnused",function(e,t){e!==t&&s()}),t.$watch("hideDefault",function(e,t){e!==t&&s()}),t.$on("$routeChangeSuccess",function(e,t,n){setTimeout(s,50)}),t.$watch("workspace.selection",function(){n.moveIfViewInvalid()||s()}),t.showEntity=function(e){return(!t.hideDefault||!o(e))&&!(t.hideUnused&&!a(e))}}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.PropertiesComponentController",["$scope","workspace","localStorage","jolokia","documentBase",function(t,n,i,r,o){function a(e){var n=Core.pathGet(t.model,["properties",e,"defaultValue"]);if(angular.isDefined(n)){var i=Core.pathGet(t.nodeData,e);if(angular.isDefined(i)){var r=i.toString();return 0===r.localeCompare(n)}}return!1}function s(e){var n=Core.pathGet(t.nodeData,e);return!angular.isUndefined(n)&&!Core.isBlank(n)&&(!angular.isString(n)||!Core.isBlank(n))}function l(){var i=e.getSelectionCamelContextMBean(n),o=null;if(o||(o=n.getSelectedMBeanName()),o&&i){var a=r.request({type:"read",mbean:o,attribute:["ComponentName"]}),s=a.value.ComponentName;if(s){t.componentName=s,c.info("Calling explainComponentJson for name: "+s);var l={type:"exec",mbean:i,operation:"explainComponentJson(java.lang.String,boolean)",arguments:[s,!0]};r.request(l,Core.onSuccess(u))}}}function u(e){c.debug("Populate data "+e);var n=e.value;if(n){t.model=JSON.parse(n),t.model.title=t.componentName,t.model.description=t.model.component.description,t.icon=UrlHelpers.join(o,"/img/icons/camel/endpoint24.png"),t.nodeData={},t.model.properties=t.model.componentProperties,angular.forEach(t.model.componentProperties,function(e,n){var i=e.value||e.defaultValue;angular.isDefined(i)&&null!==i&&(t.nodeData[n]=i),delete e.label});var i=[];t.model.component.label&&(i=t.model.component.label.split(",")),t.labels=i,t.viewTemplate="plugins/camel/html/nodePropertiesView.html",Core.$apply(t)}}var c=Logger.get("Camel");t.hideHelp=e.hideOptionDocumentation(i),t.hideUnused=e.hideOptionUnusedValue(i),t.hideDefault=e.hideOptionDefaultValue(i),t.viewTemplate=null,t.schema=null,t.model=null,t.labels=[],t.nodeData=null,t.icon=null,t.componentName=null,t.$watch("hideHelp",function(e,t){e!==t&&l()}),t.$watch("hideUnused",function(e,t){e!==t&&l()}),t.$watch("hideDefault",function(e,t){e!==t&&l()}),t.$on("$routeChangeSuccess",function(e,t,n){setTimeout(l,50)}),t.$watch("workspace.selection",function(){n.moveIfViewInvalid()||l()}),t.showEntity=function(e){return(!t.hideDefault||!a(e))&&!(t.hideUnused&&!s(e))}}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.PropertiesDataFormatController",["$scope","workspace","localStorage","jolokia","documentBase",function(t,n,i,r,o){function a(e){var n=Core.pathGet(t.model,["properties",e,"defaultValue"]);if(angular.isDefined(n)){var i=Core.pathGet(t.nodeData,e);if(angular.isDefined(i)){var r=i.toString();return 0===r.localeCompare(n)}}return!1}function s(e){var n=Core.pathGet(t.nodeData,e);return!angular.isUndefined(n)&&!Core.isBlank(n)&&(!angular.isString(n)||!Core.isBlank(n))}function l(){var e=null;if(e||(e=n.getSelectedMBeanName()),e){c.info("Calling informationJson");var t={type:"exec",mbean:e,operation:"informationJson"};r.request(t,Core.onSuccess(u))}}function u(e){c.debug("Populate data "+e);var n=e.value;if(n){t.model=JSON.parse(n),t.model.title=t.model.dataformat.title+" ("+t.model.dataformat.name+")",t.model.description=t.model.dataformat.description,t.icon=UrlHelpers.join(o,"/img/icons/camel/marshal24.png"),t.nodeData={},angular.forEach(t.model.properties,function(e,n){var i=e.value||e.defaultValue;angular.isDefined(i)&&null!==i&&(t.nodeData[n]=i),delete e.label}),delete t.model.properties.id;var i=[];t.model.dataformat.label&&(i=t.model.dataformat.label.split(",")),t.labels=i,t.viewTemplate="plugins/camel/html/nodePropertiesView.html",Core.$apply(t)}}var c=Logger.get("Camel");t.hideHelp=e.hideOptionDocumentation(i),t.hideUnused=e.hideOptionUnusedValue(i),t.hideDefault=e.hideOptionDefaultValue(i),t.viewTemplate=null,t.schema=null,t.model=null,t.labels=[],t.nodeData=null,t.icon=null,t.dataFormatName=null,t.$watch("hideHelp",function(e,t){e!==t&&l()}),t.$watch("hideUnused",function(e,t){e!==t&&l()}),t.$watch("hideDefault",function(e,t){e!==t&&l()}),t.$on("$routeChangeSuccess",function(e,t,n){setTimeout(l,50)}),t.$watch("workspace.selection",function(){n.moveIfViewInvalid()||l()}),t.showEntity=function(e){return(!t.hideDefault||!a(e))&&!(t.hideUnused&&!s(e))}}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.PropertiesEndpointController",["$scope","workspace","localStorage","jolokia","documentBase",function(t,n,i,r,o){function a(e){var n=Core.pathGet(t.model,["properties",e,"defaultValue"]);if(angular.isDefined(n)){var i=Core.pathGet(t.nodeData,e);if(angular.isDefined(i)){var r=i.toString();return 0===r.localeCompare(n)}}return!1}function s(e){var n=Core.pathGet(t.nodeData,e);return!angular.isUndefined(n)&&!Core.isBlank(n)&&(!angular.isString(n)||!Core.isBlank(n))}function l(){var i=e.getSelectionCamelContextMBean(n),o=null;if(t.contextId&&t.endpointPath){var a=n.findMBeanWithProperties(e.jmxDomain,{context:t.contextId,type:"endpoints",name:t.endpointPath});a&&(o=a.objectName)}if(o||(o=n.getSelectedMBeanName()),o&&i){var s=r.request({type:"read",mbean:o,attribute:["EndpointUri"]}),l=s.value.EndpointUri;if(l){t.endpointUrl=l,c.info("Calling explainEndpointJson for url: "+l);var d={type:"exec",mbean:i,operation:"explainEndpointJson(java.lang.String,boolean)",arguments:[l,!0]};r.request(d,Core.onSuccess(u))}}}function u(e){c.debug("Populate data "+e);var n=e.value;if(n){t.model=JSON.parse(n),t.model.title=t.endpointUrl,t.model.description=t.model.component.description,t.icon=UrlHelpers.join(o,"/img/icons/camel/endpoint24.png"),t.nodeData={},angular.forEach(t.model.properties,function(e,n){var i=e.value||e.defaultValue;angular.isDefined(i)&&null!==i&&(t.nodeData[n]=i),delete e.label});var i=[];t.model.component.label&&(i=t.model.component.label.split(",")),t.labels=i,t.viewTemplate="plugins/camel/html/nodePropertiesView.html",Core.$apply(t)}}var c=Logger.get("Camel");t.hideHelp=e.hideOptionDocumentation(i),t.hideUnused=e.hideOptionUnusedValue(i),t.hideDefault=e.hideOptionDefaultValue(i),t.viewTemplate=null,t.schema=null,t.model=null,t.labels=[],t.nodeData=null,t.icon=null,t.endpointUrl=null,t.$watch("hideHelp",function(e,t){e!==t&&l()}),t.$watch("hideUnused",function(e,t){e!==t&&l()}),t.$watch("hideDefault",function(e,t){e!==t&&l()}),t.$on("$routeChangeSuccess",function(e,t,n){setTimeout(l,50)}),t.$watch("workspace.selection",function(){n.moveIfViewInvalid()||l()}),t.showEntity=function(e){return(!t.hideDefault||!a(e))&&!(t.hideUnused&&!s(e))}}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.RestServiceController",["$scope","$location","workspace","jolokia",function(t,n,i,r){function o(e){var n=e.value;if(n){var i=[];for(var r in n){var o=n[r];for(var a in o){var s=o[a];i.push({url:s.url,baseUrl:s.baseUrl,basePath:s.basePath,uriTemplate:s.uriTemplate,method:s.method,consumes:s.consumes,produces:s.produces,inType:s.inType,outType:s.outType,state:s.state,routeId:s.routeId,description:s.description})}}i=_.sortBy(i,"url"),t.data=i,t.selectedMBean=e.request.mbean}else t.selectedMBean="true";Core.$apply(t)}function a(){console.log("Loading RestRegistry data...");var t=e.getSelectionCamelRestRegistry(i);t&&r.request({type:"exec",mbean:t,operation:"listRestServices"},Core.onSuccess(o))}t.data=[],t.selectedMBean=null,t.mbeanAttributes={};var s=[{field:"url",displayName:"Absolute Url",cellFilter:null,width:"*",resizable:!0},{field:"baseUrl",displayName:"Base Url",cellFilter:null,width:"*",resizable:!0},{field:"basePath",displayName:"Base Path",cellFilter:null,width:"*",resizable:!0},{field:"uriTemplate",displayName:"Uri Template",cellFilter:null,width:"*",resizable:!0},{field:"method",displayName:"Method",cellFilter:null,width:"*",resizable:!0},{field:"consumes",displayName:"Consumes",cellFilter:null,width:"*",resizable:!0},{field:"produces",displayName:"Produces",cellFilter:null,width:"*",resizable:!0},{field:"inType",displayName:"Input Type",cellFilter:null,width:"*",resizable:!0},{field:"outType",displayName:"Output Type",cellFilter:null,width:"*",resizable:!0},{field:"state",displayName:"State",cellFilter:null,width:"*",resizable:!0},{field:"routeId",displayName:"Route Id",cellFilter:null,width:"*",resizable:!0},{field:"description",displayName:"Description",cellFilter:null,width:"*",resizable:!0}];t.gridOptions={data:"data",displayFooter:!0,displaySelectionCheckbox:!1,canSelectRows:!1,enableSorting:!0,columnDefs:s,selectedItems:[],filterOptions:{filterText:""},primaryKeyFn:function(e){return e.routeId}},t.renderIcon=function(t){return e.iconClass(t)},a()}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.RouteMetricsController",["$scope","$location","workspace","jolokia","metricsWatcher",function(t,n,i,r,o){function a(e){var n=e.value;if(n){var i=JSON.parse(n);if(!t.initDone){var r=i.timers,a=0;if(null!=r){for(var s in r){var u=s,c=u.lastIndexOf("."),d=u.substr(0,c),p=u.substr(c+1),h=u.indexOf(":"),f=u.substr(h+1);c=f.lastIndexOf("."),c>0&&(f=f.substr(0,c));var g=(r[s],"timer-"+a);t.metricDivs.push({id:g,routeId:f}),a++,l.info("Added timer: "+g+" ("+d+"."+p+") for route: "+f+" with max seconds: "+t.maxSeconds),o.addTimer(g,d,p,t.maxSeconds,f,"Histogram",1e3*t.maxSeconds)}l.info("Pre-init graphs"),Core.$apply(t)}l.info("Init graphs"),o.initGraphs()}t.initDone=!0,l.debug("Updating graphs: "+i),o.updateGraphs(i)}t.initDone=!0,Core.$apply(t)}function s(){l.info("Loading RouteMetrics data...");var n=e.getSelectedRouteId(i);null!=n&&(t.filterText=n);var o=e.getSelectionCamelRouteMetrics(i);if(o){var s={type:"exec",mbean:o,operation:"dumpStatisticsAsJson"};Core.scopeStoreJolokiaHandle(t,r,r.register(a,s))}else t.initDone=!0,Core.$apply(t)}var l=Logger.get("Camel");t.maxSeconds=e.routeMetricMaxSeconds(localStorage),t.filterText=null,t.initDone=!1,t.metricDivs=[],t.filterByRoute=function(e){l.debug("Filter by route "+e);var n=Core.matchFilterIgnoreCase(e.routeId,t.filterText);return n?"":"display: none;"},t.onResponse=function(e){s()},t.$watch("workspace.tree",function(){setTimeout(s,50)})}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.RouteController",["$scope","$routeParams","$element","$timeout","workspace","$location","jolokia","localStorage",function(t,n,i,r,o,a,s,l){function u(){var n=null;if(!t.ignoreRouteXmlNode&&(n=e.getSelectedRouteNode(o),n||(n=t.nodeXmlNode),n&&"route"!==n.localName)){var i=document.createElement("route");i.appendChild(n.cloneNode(!0)),n=i}if(t.mbean=e.getSelectionCamelContextMBean(o),!t.mbean&&t.contextId&&(t.mbean=e.getCamelContextMBean(o,t.contextId)),n){t.nodes={};var r=[],a=[];t.processorTree=e.camelProcessorMBeansById(o),e.addRouteXmlChildren(t,n,r,a,null,0,0),p(r,a)}else t.mbean?s.request({type:"exec",mbean:t.mbean,operation:"dumpRoutesAsXml()"},Core.onSuccess(y)):m.info("No camel context bean! Selection: "+o.selection)}function c(e){if(e){var t=e.getAttribute("class");return t&&_.endsWith(t,b)}return!1}function d(e,t){var n=!1;if(e){var i=e.getAttribute("class"),r=i&&_.endsWith(i,b);if(r)i=i.substring(0,i.length-b.length);else{if(!t)return n;i+=b,n=!0}e.setAttribute("class",i)}return n}function p(e,n){var r,o=i,l=h(),u=f(),p=o.children("svg")[0],m=a.path();r=_.startsWith(m,"/camel/debugRoute")||_.startsWith(m,"/camel/traceRoute")?null:w,t.graphData=Core.dagreLayoutGraph(e,n,l,u,p,!1,r);var v=o.find("g.node");return v.click(function(){var e=c(this);v.each(function(e,t){d(t,!1)});var n=null;e||(n=this.getAttribute("data-cid"),d(this,!0)),t.$emit("camel.diagram.selectedNodeId",n),Core.$apply(t)}),t.mbean&&Core.register(s,t,{type:"exec",mbean:t.mbean,operation:"dumpRoutesStatsAsXml",arguments:[!0,!0]},Core.onSuccess(g,{silent:!0,error:!1})),t.$emit("camel.diagram.layoutComplete"),l}function h(){var e=i;return e.width()}function f(){var t=i;return e.getCanvasHeight(t)}function g(e){function n(e,n){var i=n.getAttribute("id"),r=n.getAttribute("exchangesCompleted"),o=n.hasAttribute("exchangesInflight")?n.getAttribute("exchangesInflight"):0,a="";if(i&&r){var s=e?t.routeNodes:t.nodes,l=s[i];if(l||angular.forEach(s,function(e,t){l||i!==e.elementId||(l=e)}),l){var u=0+parseInt(r),c=n.getAttribute("exchangesFailed");c&&(u+=parseInt(c));var d=n.getAttribute("lastProcessingTime"),p=n.getAttribute("meanProcessingTime"),h=n.getAttribute("minProcessingTime"),f=n.getAttribute("maxProcessingTime");a="total: "+u+"\ninflight:"+o+"\nlast: "+d+" (ms)\nmean: "+p+" (ms)\nmin: "+h+" (ms)\nmax: "+f+" (ms)",l.counter=u,t.camelShowInflightCounter&&(l.inflight=o);var g=l.labelSummary;g&&(a=g+"\n\n"+a),l.tooltip=a}}}var i=e.value;if(i){var r=$.parseXML(i),o=$(r).find("routeStat");o.each(function(e,t){n(!0,t)});var o=$(r).find("processorStat");o.each(function(e,t){n(!1,t)}),Core.dagreUpdateGraphData(t.graphData)}}var m=Logger.get("Camel");t.routes=[],t.routeNodes={},null!=n&&(t.contextId=n.contextId,t.routeId=Core.trimQuotes(n.routeId),t.isJmxTab=!n.contextId||!n.routeId),t.camelIgnoreIdForLabel=e.ignoreIdForLabel(l),t.camelMaximumLabelWidth=e.maximumLabelWidth(l),t.camelShowInflightCounter=e.showInflightCounter(l);var v=_.debounce(u,300,{trailing:!0});t.$on("$routeChangeSuccess",function(e,t,n){v()}),t.$watch("workspace.selection",function(){t.isJmxTab&&o.moveIfViewInvalid()||v()}),t.$on("jmxTreeUpdated",function(){v()}),t.$watch("nodeXmlNode",function(){t.isJmxTab&&o.moveIfViewInvalid()||v()});var y=function(n){var i=n.value;t.routes=i,t.nodes={},t.routeNodes={};var r=[],a=[],s=t.routeId;if(s||(s=e.getSelectedRouteId(o)),i){var l=$.parseXML(i);t.processorTree=e.camelProcessorMBeansById(o),e.loadRouteXmlNodes(t,l,s,r,a,h()),p(r,a)}else console.log("No data from route XML!");Core.$apply(t)},b=" selected",w=function(e){m.debug("Clicked on Camel Route Diagram node: "+e.cid),a.path("/camel/properties").search({"main-tab":"camel","sub-tab":"camel-route-properties",nid:e.cid})}}])}(Camel||(Camel={}));var Camel;!function(e){var t="2";e._module.controller("Camel.SendMessageController",["$route","$scope","$element","$timeout","workspace","jolokia","localStorage","$location","activeMQMessage","PreferencesLastPath",function(n,i,r,o,a,s,l,u,c,d){function p(n,r){var o=a.selection;if(o){var u=o.objectName;if(u){var c=null;i.headers.length&&(c={},angular.forEach(i.headers,function(e){var t=e.name;t&&(c[t]=e.value)}),g.info("About to send headers: "+JSON.stringify(c)));var d=Core.onSuccess(r);if("org.apache.camel"===o.domain){var p=e.getContextAndTargetEndpoint(a),h=p.uri;if(u=p.mbean,u&&h){var f=!0;if(e.isCamelVersionEQGT(2,14,a,s)){var m=s.execute(u,"canSendToEndpoint(java.lang.String)",h);m||(Core.notification("warning","Camel does not support sending to this endpoint."),f=!1)}f&&(c?s.execute(u,"sendBodyAndHeaders(java.lang.String, java.lang.Object, java.util.Map)",h,n,c,d):s.execute(u,"sendStringBody(java.lang.String, java.lang.String)",h,n,d))}else u?Core.notification("error","Failed to determine endpoint name!"):Core.notification("error","Could not find CamelContext MBean!"),g.debug("Parsed context and endpoint: ",p)}else{var v=l.activemqUserName,y=l.activemqPassword;c||(c={}),c.JMSDeliveryMode||(c.JMSDeliveryMode=t),s.execute(u,"sendTextMessage(java.util.Map, java.lang.String, java.lang.String, java.lang.String)",c,n,v,y,d)}}}}function h(){return!0}function f(){return!0}var g=Logger.get("Camel");if(i.noCredentials=!1,i.container={},i.message="\n\n\n\n",i.headers=[],Core.bindModelToSearchParam(i,u,"tab","subtab","compose"),Core.bindModelToSearchParam(i,u,"searchText","q",""),Core.reloadWhenParametersChange(n,i,u),i.checkCredentials=function(){i.noCredentials=Core.isBlank(l.activemqUserName)||Core.isBlank(l.activemqPassword)},u.path().indexOf("activemq")>-1){if(i.localStorage=l,i.$watch("localStorage.activemqUserName",i.checkCredentials),i.$watch("localStorage.activemqPassword",i.checkCredentials),null!==c.message&&(i.message=c.message.bodyText,null!==c.message.PropertiesText))for(var m in c.message.StringProperties)i.headers.push({name:m,value:c.message.StringProperties[m]});c.message=null}i.openPrefs=function(){d.lastPath=u.path(),d.lastSearch=u.search(),u.path("/preferences").search({pref:"ActiveMQ"})};var v="defaultLanguageFormat",y=a.getLocalStorage(v)||"javascript";i.codeMirror=void 0;var b={mode:{name:y},onChange:function(e){i.codeMirror||(i.codeMirror=e)}};i.codeMirrorOptions=CodeEditor.createEditorSettings(b),i.addHeader=function(){i.headers.push({name:"",value:""}),r&&o(function(){var e=r.find("input.headerName").last();e.focus()},100)},i.removeHeader=function(e){var t=i.headers.indexOf(e);i.headers.splice(t,1)},i.defaultHeaderNames=function(){function t(e){angular.forEach(e.definitions.headers.properties,function(e,t){n.push(t)})}var n=[];return f()&&t(e.jmsHeaderSchema),h()&&t(e.camelHeaderSchema),n},i.$watch("workspace.selection",function(){a.moveIfViewInvalid()}),i.$watch("codeMirrorOptions.mode.name",function(e,t){a.setLocalStorage(v,e)});var w=function(){i.message="",Core.notification("success","Message sent!")};i.autoFormat=function(){setTimeout(function(){CodeEditor.autoFormatEditor(i.codeMirror)},50)},i.sendMessage=function(){var e=i.message;p(e,w)}}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.SourceController",["$scope","workspace",function(t,n){function i(e){function t(e,t){var n=t.getAttribute("customId");"route"===t.nodeName&&(n="true"),n&&"true"===n||t.removeAttribute("id"),t.removeAttribute("customId"),t.removeAttribute("_cid"),t.removeAttribute("group")}var n=$(e).clone();n.each(t),n.find("*").each(t);var i=n&&n.length?n[0]:e;return Core.xmlNodeToString(i)}function r(){var r=e.getSelectedRouteNode(n);if(r)t.source=i(r),t.showUpdateButton="route"===r.nodeName,Core.$apply(t);else{if(t.mbean=e.getSelectionCamelContextMBean(n),!t.mbean){var a=Core.pathGet(n,["selection","parent"]);a&&"context"===a.title&&(t.mbean=a.children[0].objectName)}if(t.mbean){var s=n.jolokia;s.request({type:"exec",mbean:t.mbean,operation:"dumpRoutesAsXml()"},Core.onSuccess(o))}}}t.$on("$routeChangeSuccess",function(e,t,n){setTimeout(r,50)}),t.$watch("workspace.selection",function(){n.moveIfViewInvalid()||r()}),t.mode="xml",t.showUpdateButton=!0;var o=function(r){var o=r.value,a=e.getSelectedRouteId(n);if(o&&a){var s=$.parseXML(o),l=$(s).find('route[id="'+a+'"]');if(l&&l.length){var u=l[0],c=u.parentNode;c&&"routes"===c.nodeName&&c.attributes&&angular.forEach(c.attributes,function(e){if(e.name.startsWith("xmlns")){var t=s.createAttribute(e.name);t.value=e.value,u.attributes.setNamedItem(t)}});var d=i(u);d&&(o=d)}}t.source=o,Core.$apply(t)},a=function(){Core.notification("success","Route updated!"),n.loadTree()};t.saveRouteXml=function(){var i=t.source;if(i){var r=decodeURIComponent(i);e.log.debug("addOrUpdateRoutesFromXml xml decoded: "+r);var o=n.jolokia,s=e.getSelectionCamelContextMBean(n);s?o.execute(s,"addOrUpdateRoutesFromXml(java.lang.String)",r,Core.onSuccess(a)):Core.notification("error","Could not find CamelContext MBean!")}}}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.TraceRouteController",["$scope","workspace","jolokia","localStorage","tracerStatus",function(t,n,i,r,o){function a(){t.tracing=!1,null!=o.jhandle&&(d.debug("Unregistering jolokia handle"),i.unregister(o.jhandle),o.jhandle=null);var r=e.getSelectionCamelTraceMBean(n);if(r)if(t.tracing=i.getAttribute(r,"Enabled",Core.onSuccess(null)),t.tracing){var a=r;a&&null===o.jhandle&&(d.debug("Registering jolokia handle"),o.jhandle=i.register(s,{type:"exec",mbean:a,operation:"dumpAllTracedMessagesAsXml()",ignoreErrors:!0,arguments:[]})),t.graphView="plugins/camel/html/routes.html"}else o.messages=[],t.messages=[],t.graphView=null,t.showMessageDetails=!1}function s(i){d.debug("Populating response "+i);var r=e.getSelectedRouteId(n),a=i.value;if(angular.isString(a)){var s=$.parseXML(a),l=$(s).find("fabricTracerEventMessage");l&&l.length||(l=$(s).find("backlogTracerEventMessage")),l.each(function(n,i){var o=$(i).find("routeId").text();if(o===r){var a=e.createMessageFromXml(i),s=$(i).find("toNode").text();s&&(a.toNode=s),a.openMessageDialog=t.openMessageDialog,d.debug("Adding new message to trace table with id "+a.id),t.messages.push(a)}}),o.messages=t.messages,Core.$apply(t)}}function l(){angular.forEach(t.gridOptions.selectedItems,function(t){if(t){var n=t.toNode;if(n){var i=d3.select("svg").selectAll("g .node");e.highlightSelectedNode(i,n)}}})}function u(e){a(),Core.$apply(t)}function c(t){var o=e.getSelectionCamelTraceMBean(n);if(o){if(_.endsWith(o.toString(),"BacklogTracer")){var a=e.maximumTraceOrDebugBodyLength(r),s=e.traceOrDebugIncludeStreams(r);i.setAttribute(o,"BodyMaxChars",a),i.setAttribute(o,"BodyIncludeStreams",s),i.setAttribute(o,"BodyIncludeFiles",s)}i.setAttribute(o,"Enabled",t,Core.onSuccess(u))}}var d=Logger.get("CamelTracer");t.tracing=!1,t.messages=[],t.graphView=null,t.mode="text",t.showMessageDetails=!1,t.gridOptions=e.createBrowseGridOptions(),t.gridOptions.selectWithCheckboxOnly=!1,t.gridOptions.showSelectionCheckbox=!1,t.gridOptions.multiSelect=!1,t.gridOptions.afterSelectionChange=l,t.gridOptions.columnDefs.push({field:"toNode",displayName:"To Node"}),t.startTracing=function(){d.info("Start tracing"),c(!0)},t.stopTracing=function(){d.info("Stop tracing"),c(!1)},t.clear=function(){d.debug("Clear messages"),o.messages=[],t.messages=[],Core.$apply(t)},t.$watch("workspace.selection",function(){n.moveIfViewInvalid()||(t.messages=o.messages,a())}),t.openMessageDialog=function(e){if(ActiveMQ.selectCurrentMessage(e,"id",t),t.row){var n=t.row.body;t.mode=angular.isString(n)?CodeEditor.detectTextFormat(n):"text","javascript"==t.mode&&(t.mode="text"),t.showMessageDetails=!0}else t.showMessageDetails=!1;Core.$apply(t)},ActiveMQ.decorate(t,l),d.info("Re-activating tracer with "+o.messages.length+" existing messages"),t.messages=o.messages,t.tracing=null!=o.jhandle}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.TreeHeaderController",["$scope","$location",function(e,t){e.contextFilterText="",e.$watch("contextFilterText",function(t,n){t!==n&&e.$emit("camel-contextFilterText",t)}),e.expandAll=function(){Tree.expandAll("#cameltree")},e.contractAll=function(){Tree.contractAll("#cameltree")}}]),e._module.controller("Camel.TreeController",["$scope","$location","$timeout","workspace","$rootScope",function(t,n,i,r,o){function a(o){void 0===o&&(o=null),t.fullScreenViewLink=e.linkToFullScreenView(r);var a=(e.jmxDomain,r.tree);if(a){var l=a.findDescendant(function(e){return"camelContexts"===e.id});l&&i(function(){var e=$("#cameltree");Jmx.enableTree(t,n,r,e,[l],!0),s(),angular.isFunction(o)&&o()},10)}}function s(){Jmx.updateTreeSelectionFromURLAndAutoSelect(n,$("#cameltree"),function(e){var t=e.getChildren();if(t&&1===t.length){e=t[0],e.expand(!0);var n=e.getChildren();if(n&&n.length){var i=n[0];if("routes"===i.data.typeName)return e=i}}return null},!0),t.fullScreenViewLink=e.linkToFullScreenView(r)}t.contextFilterText=n.search().cq,t.fullScreenViewLink=e.linkToFullScreenView(r),t.$on("$routeChangeSuccess",function(e,t,n){i(s,50,!1)}),t.$watch("workspace.tree",function(){a()}),t.$on("jmxTreeUpdated",function(){a()})}])}(Camel||(Camel={}));var Camel;!function(e){e._module.controller("Camel.TypeConverterController",["$scope","$location","workspace","jolokia",function(t,n,i,r){function o(e){var n=e.value;n&&(t.mbeanAttributes=n,Core.$apply(t))}function a(e){var n=e.value;if(n){var i=[];for(var r in n){var o=n[r];for(var a in o)i.push({from:r,to:a})}i=_.sortBy(i,"from"),t.data=i,t.selectedMBean=e.request.mbean,Core.$apply(t)}}function s(){console.log("Loading TypeConverter data...");var n=e.getSelectionCamelTypeConverter(i);if(n){var s={type:"read",mbean:n,attribute:["AttemptCounter","FailedCounter","HitCounter","MissCounter","NumberOfTypeConverters","StatisticsEnabled"]};r.request(s,Core.onSuccess(o)),Core.scopeStoreJolokiaHandle(t,r,r.register(o,s)),r.request({type:"exec",mbean:n,operation:"listTypeConverters"},Core.onSuccess(a))}}t.data=[],t.selectedMBean=null,t.mbeanAttributes={};var l=[{field:"from",displayName:"From",cellFilter:null,width:"*",resizable:!0},{field:"to",displayName:"To",cellFilter:null,width:"*",resizable:!0}];t.gridOptions={data:"data",displayFooter:!0,displaySelectionCheckbox:!1,canSelectRows:!1,enableSorting:!0,columnDefs:l,selectedItems:[],filterOptions:{filterText:""},primaryKeyFn:function(e){return e.from+"/"+e.to}},t.renderIcon=function(t){return e.iconClass(t)},t.disableStatistics=function(){t.selectedMBean&&r.setAttribute(t.selectedMBean,"StatisticsEnabled",!1)},t.enableStatistics=function(){t.selectedMBean&&r.setAttribute(t.selectedMBean,"StatisticsEnabled",!0)},t.resetStatistics=function(){t.selectedMBean&&r.request({type:"exec",mbean:t.selectedMBean,operation:"resetTypeConversionCounters"},Core.onSuccess(null,{silent:!0}))},s()}])}(Camel||(Camel={}));var Osgi;!function(e){function t(e,t,i){var r=i;return angular.forEach(i,function(t){t.ImportData=a(t.ImportedPackages),t.ExportData=a(t.ExportedPackages),t.IdentifierLink=d(e,t.Identifier),t.Hosts=c(e,t.Hosts,r),t.Fragments=c(e,t.Fragments,r),t.ImportedPackages=t.ImportedPackages.union([]),t.StateStyle=n("label",t.State),t.RequiringBundles=c(e,t.RequiringBundles,r)}),i}function n(e,t){switch(t){case"INSTALLED":return e+"-important";case"RESOLVED":return e+"-inverse";case"STARTING":return e+"-warning";case"ACTIVE":return e+"-success";case"STOPPING":return e+"-info";case"UNINSTALLED":return"";default:return e+"-important"}}function i(e,t,n){return angular.forEach(n,function(t){t.BundleIdentifier=d(e,t.BundleIdentifier)}),n}function r(e,t,n){function i(t,n){n||(n=t);var i=t.Name,o=t.Version;if(i&&!_.startsWith(i,"#")){t.VersionLink="<a href='"+Core.url("#/osgi/package/"+i+"/"+o+e.hash())+"'>"+o+"</a>";var a=n.ImportingBundles||t.ImportingBundles,s=n.ExportingBundles||t.ExportingBundles;t.ImportingBundleLinks=d(e,a),t.ImportingBundleLinks=d(e,a),t.ExportingBundleLinks=d(e,s),r.push(t)}}var r=[],o=n.values;return o&&angular.forEach(o,i),angular.forEach(n,function(e){angular.forEach(e,function(t){angular.forEach(t,function(t){i(t,e)})})}),r}function o(e,t,n){var i=[];return angular.forEach(n,function(t){var n={};n.Pid=t[0],n.PidLink="<a href='"+Core.url("#/osgi/pid/"+t[0]+e.hash())+"'>"+t[0]+"</a>",n.Bundle=t[1],i.push(n)}),i}function a(e){for(var t={},n=0;n<e.length;n++){var i=e[n],r=i.indexOf(";");if(r>0){var o=i.substring(0,r),a=i.substring(r+1),s=t[o];void 0===s&&(s={},t[o]=s),s.ReportedVersion=a}}return t}function s(e,t){var n={},i={},r=e[t];if(void 0===r)return n;for(var o=r.Value,a=!0,s=!1,u="",c="",d=0;d<o.length;d++){var p=o[d];'"'!==p?s?c+=p:";"!==p?","!==p?a?u+=p:c+=p:(l(i,c),n[u]=i,i={},u="",c="",a=!0):a?a=!1:(l(i,c),c=""):s=!s}return l(i,c),n[u]=i,n}function l(e,t){var n=t.indexOf(":=");if(n>0)return void(e["D"+t.substring(0,n)]=t.substring(n+2));var i=t.indexOf("=");return i>0?void(e["A"+t.substring(0,i)]=t.substring(i+1)):void 0}function u(e){var t=e;return angular.isArray(e)||(t=[e]),t}function c(e,t,n){var i="",r=u(t).sort(function(e,t){return e-t});return angular.forEach(r,function(t,r){var o="";i.length>0&&(o=" ");var a=n[t]||{},s=a.SymbolicName;i+=o+"<a class='label' href='"+Core.url("#/osgi/bundle/"+t+e.hash())+"'>"+s+"</a>"}),i}function d(e,t){var n="",i=u(t).sort(function(e,t){return e-t});return angular.forEach(i,function(t,i){var r="";n.length>0&&(r=" "),n+=r+"<a class='label' href='"+Core.url("#/osgi/bundle/"+t+e.hash())+"'>"+t+"</a>"}),n}function p(e,t){var n="";return angular.forEach(u(t),function(t,i){var r="";n.length>0&&(r=" "),n+=r+"<a href='"+Core.url("#/osgi/bundle/"+t+e.hash())+"'>"+t+"</a>"}),n}function h(e,t){var n="";return angular.forEach(t,function(t){var i=t.Identifier;if(e===i.toString())return n=t}),n}function f(t){if(t){var n=t.tree.navigate("osgi.core","bundleState");return e.findFirstObjectName(n)}return null}function g(e){if(e){var t=e.objectName;if(t)return t;var n=e.children;if(n&&n.length)return g(n[0])}return null}function m(t){if(t){var n=t.tree.navigate("osgi.core","framework");return e.findFirstObjectName(n)}return null}function v(t){if(t){var n=t.tree.navigate("osgi.core","serviceState");return e.findFirstObjectName(n)}return null}function y(t){if(t){var n=t.tree.navigate("osgi.core","packageState");return e.findFirstObjectName(n)}return null}function b(t){if(t){var n=t.tree.navigate("osgi.compendium","cm");return e.findFirstObjectName(n)}return null}function w(e){if(e){var t=e.mbeanTypesToDomain,n=t.MetaTypeFacade||{},i=n["io.fabric8"]||{};return i.objectName}return null}function x(e){if(e){var t=e.mbeanTypesToDomain,n=t.ProfileMetadata||{},i=n["io.fabric8"]||{};return i.objectName}return null}function k(e){if(e){var t=e.mbeanTypesToDomain,n=t.OSGiTools||{},i=n.hawtio||{};return i.objectName}return null}function C(e){if(e){var t=e.mbeanTypesToDomain,n=t.ConfigAdmin||{},i=n.hawtio||{};return i.objectName}return null}function S(e,t,n,i){return void 0===i&&(i=!1),Core.url("#"+$(e,n,i)+t.hash())}function $(e,t,n){void 0===n&&(n=!1);var i=t,r=e.versionId;e.profileId;if(r&&r){var o=n?"/newConfiguration/":"/configuration/";return"/wiki/branch/"+r+o+i+"/"+e.pageId}return"/osgi/pid/"+i}function T(e,t,n,i){var r=b(e),o=null;return t&&r&&(o=t.execute(r,"getProperties",n,Core.onSuccess(i))),o}function E(e,t){if(e&&t){if(_.startsWith(e,t))return e.substring(t.length+1);var n=t.lastIndexOf(".");if(n>0){var i=t.substring(0,n+1);return Core.trimLeading(e,i)}}return e}e.log=Logger.get("OSGi"),e.defaultBundleValues=t,e.getStateStyle=n,e.defaultServiceValues=i,e.defaultPackageValues=r,e.defaultConfigurationValues=o,e.parseActualPackages=a,e.parseManifestHeader=s,e.toCollection=u,
|
|
|
25810
|
+e.labelBundleLinks=c,e.bundleLinks=d,e.pidLinks=p,e.findBundle=h,e.getSelectionBundleMBean=f,e.findFirstObjectName=g,e.getSelectionFrameworkMBean=m,e.getSelectionServiceMBean=v,e.getSelectionPackageMBean=y,e.getSelectionConfigAdminMBean=b,e.getMetaTypeMBean=w,e.getProfileMetadataMBean=x,e.getHawtioOSGiToolsMBean=k,e.getHawtioConfigAdminMBean=C,e.createConfigPidLink=S,e.createConfigPidPath=$,e.getConfigurationProperties=T,e.removeFactoryPidPrefix=E}(Osgi||(Osgi={}));var Osgi;!function(e){var t=function(){function t(e,t){this.jolokia=t,this.workspace=e}return t.prototype.getBundles=function(){var t={},n=this.jolokia.request({type:"exec",mbean:e.getSelectionBundleMBean(this.workspace),operation:"listBundles()"},Core.onSuccess(null));return angular.forEach(n.value,function(e,n){var i={Identifier:e.Identifier,Name:"",SymbolicName:e.SymbolicName,Fragment:e.Fragment,State:e.State,Version:e.Version,LastModified:new Date(Number(e.LastModified)),Location:e.Location,StartLevel:void 0,RegisteredServices:e.RegisteredServices,ServicesInUse:e.ServicesInUse};e.Headers["Bundle-Name"]&&(i.Name=e.Headers["Bundle-Name"].Value),t[e.Identifier]=i}),t},t.prototype.getServices=function(){var t={},n=this.jolokia.request({type:"exec",mbean:e.getSelectionServiceMBean(this.workspace),operation:"listServices()"},Core.onSuccess(null)),i=n.value;return angular.forEach(i,function(e,n){t[e.Identifier]=e}),t},t.prototype.getPackages=function(){var t={},n=this.jolokia.request({type:"exec",mbean:e.getSelectionPackageMBean(this.workspace),operation:"listPackages()"},Core.onSuccess(null)),i=n.value.values;return i.forEach(function(e){t[e.Name+"-"+e.Version]=e}),t},t}();e.OsgiDataService=t}(Osgi||(Osgi={}));var Osgi;!function(e){e.pluginName="osgi",e._module=angular.module(e.pluginName,[]),e._module.config(["$routeProvider",function(e){e.when("/osgi",{redirectTo:"/osgi/bundle-list"}).when("/osgi/bundle-list",{templateUrl:"plugins/osgi/html/bundle-list.html"}).when("/osgi/bundles",{templateUrl:"plugins/osgi/html/bundles.html"}).when("/osgi/bundle/:bundleId",{templateUrl:"plugins/osgi/html/bundle.html"}).when("/osgi/services",{templateUrl:"plugins/osgi/html/services.html"}).when("/osgi/packages",{templateUrl:"plugins/osgi/html/packages.html"}).when("/osgi/package/:package/:version",{templateUrl:"plugins/osgi/html/package.html"}).when("/osgi/configurations",{templateUrl:"plugins/osgi/html/configurations.html"}).when("/osgi/pid/:pid/:factoryPid",{templateUrl:"plugins/osgi/html/pid.html"}).when("/osgi/pid/:pid",{templateUrl:"plugins/osgi/html/pid.html"}).when("/osgi/fwk",{templateUrl:"plugins/osgi/html/framework.html"}).when("/osgi/dependencies",{templateUrl:"plugins/osgi/html/svc-dependencies.html",reloadOnSearch:!1})}]),e._module.run(["HawtioNav","workspace","viewRegistry","helpRegistry",function(e,t,n,i){i.addUserDoc("osgi","plugins/osgi/doc/help.md",function(){return t.treeContainsDomainAndProperties("osgi.core")});var r=e.builder(),o=r.id("osgi-configuration").href(function(){return"/osgi/configurations"+t.hash()}).title(function(){return"Configuration"}).isSelected(function(){return t.isLinkPrefixActive("/osgi/configuration")||t.isLinkPrefixActive("/osgi/pid")}).build(),a=r.id("osgi-bundles").href(function(){return"/osgi/bundle-list"+t.hash()}).title(function(){return"Bundles"}).isSelected(function(){return t.isLinkPrefixActive("/osgi/bundle")}).build(),s=r.id("osgi-features").href(function(){return"/osgi/features"+t.hash()}).title(function(){return"Features"}).show(function(){return!Core.isBlank(Karaf.getSelectionFeaturesMBean(t))}).isSelected(function(){return t.isLinkPrefixActive("/osgi/feature")}).build(),l=r.id("osgi-packages").href(function(){return"/osgi/packages"+t.hash()}).title(function(){return"Packages"}).isSelected(function(){return t.isLinkPrefixActive("/osgi/package")}).build(),u=r.id("osgi-services").href(function(){return"/osgi/services"+t.hash()}).title(function(){return"Services"}).isSelected(function(){return t.isLinkPrefixActive("/osgi/service")}).build(),c=r.id("osgi-scr-components").href(function(){return"/osgi/scr-components"+t.hash()}).title(function(){return"Declarative Services"}).show(function(){return!Core.isBlank(Karaf.getSelectionScrMBean(t))}).isSelected(function(){return t.isLinkPrefixActive("/osgi/scr-component")}).build(),d=r.id("osgi-server").href(function(){return"/osgi/server"+t.hash()}).title(function(){return"Server"}).isSelected(function(){return t.isLinkPrefixActive("/osgi/server")}).build(),p=r.id("osgi-fwk").href(function(){return"/osgi/fwk"+t.hash()}).title(function(){return"Framework"}).isSelected(function(){return t.isLinkPrefixActive("/osgi/fwk")}).build(),h=r.id("osgi-dependencies").href(function(){return"/osgi/dependencies"+t.hash()}).title(function(){return"Dependencies"}).isSelected(function(){return t.isLinkPrefixActive("/osgi/dependencies")}).build(),f=r.id("osgi").title(function(){return"OSGi"}).href(function(){return"/osgi"}).isValid(function(){return t.treeContainsDomainAndProperties("osgi.core")}).isSelected(function(){return t.isLinkActive("osgi")}).tabs(o,a,s,l,u,c,d,p,h).build();e.add(f)}]),e._module.factory("osgiDataService",["workspace","jolokia",function(t,n){return new e.OsgiDataService(t,n)}]),hawtioPluginLoader.addModule(e.pluginName)}(Osgi||(Osgi={}));var Osgi;!function(e){e._module.controller("Osgi.BundleListController",["$scope","workspace","jolokia","localStorage",function(t,n,i,r){function o(r){var o=r.value,a=angular.toJson(o);t.responseJson!==a&&(t.responseJson=a,t.bundles=[],angular.forEach(o,function(e,n){var i={Identifier:e.Identifier,Name:"",SymbolicName:e.SymbolicName,Fragment:e.Fragment,State:e.State,Version:e.Version,LastModified:new Date(Number(e.LastModified)),Location:e.Location,StartLevel:void 0};e.Headers["Bundle-Name"]&&(i.Name=e.Headers["Bundle-Name"].Value),t.bundles.push(i)}),t.bundles=_.sortBy(t.bundles,t.display.sortField),Core.$apply(t),setTimeout(function(){for(var r=[],o=0;o<t.bundles.length;o++){var a=t.bundles[o];r.push({type:"exec",mbean:e.getSelectionBundleMBean(n),operation:"getStartLevel(long)",arguments:[a.Identifier]})}var s=r.length;i.request(r,Core.onSuccess(function(n){var i=n.request.arguments[0];if(angular.isDefined(i)){var r=t.bundles[i];r&&(e.log.debug("Setting bundle: ",r.Identifier," start level to: ",n.value),r.StartLevel=n.value)}s-=1,e.log.debug("oustanding responses: ",s),0===s&&(e.log.debug("Updating page..."),Core.$apply(t))}))},500))}t.result={},t.bundles=[],t.bundleUrl="",t.display={bundleField:"Name",sortField:"Identifier",bundleFilter:"",startLevelFilter:0,showActiveMQBundles:!1,showCamelBundles:!1,showCxfBundles:!1,showPlatformBundles:!1},"bundleList"in r&&(t.display=angular.fromJson(r.bundleList)),t.$watch("display",function(e,t){e!==t&&(r.bundleList=angular.toJson(e))},!0),t.installDisabled=function(){return""===t.bundleUrl},t.install=function(){i.request({type:"exec",mbean:e.getSelectionFrameworkMBean(n),operation:"installBundle(java.lang.String)",arguments:[t.bundleUrl]},{success:function(r){var o=r.value;i.request({type:"exec",mbean:e.getSelectionBundleMBean(n),operation:"isFragment(long)",arguments:[o]},{success:function(r){var a=r.value;a?(Core.notification("success","Fragment installed successfully."),t.bundleUrl="",Core.$apply(t)):i.request({type:"exec",mbean:e.getSelectionFrameworkMBean(n),operation:"startBundle(long)",arguments:[o]},{success:function(e){Core.notification("success","Bundle installed and started successfully."),t.bundleUrl="",Core.$apply(t)},error:function(e){Core.notification("error",e.error)}})},error:function(e){Core.notification("error",e.error)}})},error:function(e){Core.notification("error",e.error)}})},t.$watch("display.sortField",function(e,n){e!==n&&(t.bundles=_.sortBy(t.bundles,e))}),t.getStateStyle=function(t){return e.getStateStyle("badge",t)},t.getLabel=function(e){var n;return"Name"===t.display.bundleField?(n=e.Name,""===n&&(n=e.SymbolicName)):n=e.SymbolicName,n},t.filterBundle=function(e){if(t.display.startLevelFilter>0&&e.StartLevel<t.display.startLevelFilter)return!1;var n=t.getLabel(e);return!(t.display.bundleFilter&&!n.toLowerCase().has(t.display.bundleFilter.toLowerCase()))&&(!Core.isBlank(t.display.bundleFilter)||!!(t.display.showPlatformBundles&&Karaf.isPlatformBundle(e.SymbolicName)||t.display.showActiveMQBundles&&Karaf.isActiveMQBundle(e.SymbolicName)||t.display.showCxfBundles&&Karaf.isCxfBundle(e.SymbolicName)||t.display.showCamelBundles&&Karaf.isCamelBundle(e.SymbolicName)))},Core.register(i,t,{type:"exec",mbean:e.getSelectionBundleMBean(n),operation:"listBundles()"},Core.onSuccess(o))}])}(Osgi||(Osgi={}));var Osgi;!function(e){function t(e){var t=e.indexOf(";");return t<=0?"":e.substring(t+1).trim()}function n(e,t){var n="";if(!e)return n;for(var i=Object.keys(e).sort(),r=0;r<i.length;r++){var o,a=i[r],s=a.charAt(0),l="";if("A"===s&&(l="=",o="text-info"),"D"===s&&(l=":=",o="muted"),""!==l){if(t&&"Aversion"===a)continue;var u=e[a];u.length>15&&(u=u.replace(/[,]/g,",<br/> ")),n+="<tr><td><strong class='"+o+"'>"+a.substring(1)+"</strong>"+l+u+"</td></tr>"}}return n}function i(e){if(angular.isArray(e))return r(e);var t=e.toString(),n=t.lastIndexOf(".");return t.substring(n+1)}function r(e){for(var t=[],n=0;n<e.length;n++)t.push(i(e[n]));return t=_.filter(t,function(e,t,n){return n.indexOf(e)===t}),t.sort(),t.toString()}e.readBSNHeaderData=t,e.formatAttributesAndDirectivesForPopover=n,e.formatServiceName=i,e._module.controller("Osgi.BundleController",["$scope","$location","workspace","$routeParams","jolokia",function(r,o,a,s,l){function u(){var e=document.getElementById("loadClassResult");e.innerHTML+="<div class='alert alert-error'><button type='button' class='close' data-dismiss='alert'>×</button>The hawtio.OSGiTools MBean is not available. Please contact technical support.</div>"}function c(e){var t=document.getElementById("loadClassResult");t.innerHTML+="<div class='alert alert-error'><button type='button' class='close' data-dismiss='alert'>×</button>Problem invoking hawtio.OSGiTools MBean. "+e+"</div>"}function d(n){var i=n.value;r.bundles=i,e.defaultBundleValues(a,r,i),r.row=e.findBundle(r.bundleId,i),Core.$apply(r),$(".accordion-body.collapse").hover(function(){$(this).css("overflow","visible")},function(){$(this).css("overflow","hidden")}),$("#bsn").tooltip({title:t(r.row.Headers["Bundle-SymbolicName"].Value),placement:"right"}),p(),h(),f()}function p(){var t=e.parseManifestHeader(r.row.Headers,"Import-Package");for(var i in r.row.ImportData){var o=t[i],a="<small><table><tr><td><strong>Imported Version=</strong>"+r.row.ImportData[i].ReportedVersion+"</td></tr>";if(void 0!==o)a+=n(o,!1),"optional"!==t[i].Dresolution&&$(document.getElementById("import."+i)).addClass("badge-info");else{$(document.getElementById("import."+i)).addClass("badge-important");var s=r.row.Headers["DynamicImport-Package"];void 0!==s&&(s=s.Value,a+="<tr><td>Dynamic Import. Imported due to:</td></tr>",a+="<tr><td><strong>DynamicImport-Package=</strong>"+s+"</td></tr>")}a+="</table></small>",$(document.getElementById("import."+i)).popover({title:"attributes and directives",content:a,trigger:"hover",html:!0}),t[i]=void 0}var l="";for(var i in t)void 0!==t[i]&&void 0===r.row.ExportData[i]&&(l+="<tr><td><div class='less-big badge badge-warning' id='unsatisfied."+i+"'>"+i+"</div></td></tr>");""!==l&&(l="<p/><p class='text-warning'>The following optional imports were not satisfied:<table>"+l+"</table></p>",document.getElementById("unsatisfiedOptionalImports").innerHTML=l);for(var i in t)if(void 0!==t[i]){var a="<small><table>";a+=n(t[i],!1),a+="</table></small>",$(document.getElementById("unsatisfied."+i)).popover({title:"attributes and directives",content:a,trigger:"hover",html:!0})}}function h(){var t=e.parseManifestHeader(r.row.Headers,"Export-Package");for(var i in r.row.ExportData){var o="<small><table><tr><td><strong>Exported Version=</strong>"+r.row.ExportData[i].ReportedVersion+"</td></tr>";o+=n(t[i],!0),o+="</table></small>",$(document.getElementById("export."+i)).popover({title:"attributes and directives",content:o,trigger:"hover",html:!0})}}function f(){if(void 0!==r.row.RegisteredServices&&0!==r.row.RegisteredServices.length||void 0!==r.row.ServicesInUse&&0!==r.row.ServicesInUse){var t=e.getSelectionServiceMBean(a);t&&l.request({type:"exec",mbean:t,operation:"listServices()"},Core.onSuccess(g))}}function g(t){var n=t.value;for(var o in n){var s=document.getElementById("registers.service."+o),u=document.getElementById("uses.service."+o);(void 0!==s&&null!==s||void 0!==u&&null!==u)&&l.request({type:"exec",mbean:e.getSelectionServiceMBean(a),operation:"getProperties",arguments:[o]},Core.onSuccess(function(e,t,o){return function(a){for(var s=a.value,l=Object.keys(s).sort(),u="<small><table>",c=0;c<l.length;c++){var d=s[l[c]];if(void 0!==d){var p=d.Value;p.length>15&&(p=p.replace(/[,]/g,",<br/> ")),u+="<tr><td valign='top'>"+l[c]+"</td><td>"+p+"</td></tr>"}}var h=n[e].BundleIdentifier;u+="<tr><td>Registered by</td><td>Bundle "+h+" <div class='less-big label'>"+r.bundles[h].SymbolicName+"</div></td></tr>",u+="</table></small>",void 0!==t&&null!==t&&(t.innerText=" "+i(n[e].objectClass),$(t).popover({title:"service properties",content:u,trigger:"hover",html:!0})),void 0!==o&&null!==o&&(o.innerText=" "+i(n[e].objectClass),$(o).popover({title:"service properties",content:u,trigger:"hover",html:!0}))}}(o,s,u)))}}function m(){var t=e.getSelectionBundleMBean(a);t&&l.request({type:"exec",mbean:t,operation:"listBundles()"},Core.onSuccess(d))}r.bundleId=s.bundleId,m(),r.showValue=function(e){switch(e){case"Bundle-Name":case"Bundle-SymbolicName":case"Bundle-Version":case"Export-Package":case"Import-Package":return!1;default:return!0}},r.executeLoadClass=function(t){var n=e.getHawtioOSGiToolsMBean(a);n?l.request({type:"exec",mbean:n,operation:"getLoadClassOrigin",arguments:[r.bundleId,t]},{success:function(n){var i,o,s=document.getElementById("loadClassResult"),l=n.value;l===-1?(i="",o="Class can not be loaded from this bundle."):(i="alert-success",o="Class is served from Bundle "+e.bundleLinks(a,l)),s.innerHTML+="<div class='alert "+i+"'><button type='button' class='close' data-dismiss='alert'>×</button>Loading class <strong>"+t+"</strong> in Bundle "+r.bundleId+". "+o+"</div>"},error:function(e){c(e)}}):u()},r.executeFindResource=function(t){var n=e.getHawtioOSGiToolsMBean(a);n?l.request({type:"exec",mbean:n,operation:"getResourceURL",arguments:[r.bundleId,t]},{success:function(e){var n,i,o=document.getElementById("loadClassResult"),a=e.value;null===a?(n="",i="Resource can not be found from this bundle."):(n="alert-success",i="Resource is available from: "+a),o.innerHTML+="<div class='alert "+n+"'><button type='button' class='close' data-dismiss='alert'>×</button>Finding resource <strong>"+t+"</strong> in Bundle "+r.bundleId+". "+i+"</div>"},error:function(e){c(e)}}):u()},r.startBundle=function(t){l.request([{type:"exec",mbean:e.getSelectionFrameworkMBean(a),operation:"startBundle",arguments:[t]}],Core.onSuccess(m))},r.stopBundle=function(t){l.request([{type:"exec",mbean:e.getSelectionFrameworkMBean(a),operation:"stopBundle",arguments:[t]}],Core.onSuccess(m))},r.updatehBundle=function(t){l.request([{type:"exec",mbean:e.getSelectionFrameworkMBean(a),operation:"updateBundle",arguments:[t]}],Core.onSuccess(m))},r.refreshBundle=function(t){l.request([{type:"exec",mbean:e.getSelectionFrameworkMBean(a),operation:"refreshBundle",arguments:[t]}],Core.onSuccess(m))},r.uninstallBundle=function(t){l.request([{type:"exec",mbean:e.getSelectionFrameworkMBean(a),operation:"uninstallBundle",arguments:[t]}],Core.onSuccess(function(){o.path("/osgi/bundle-list"),Core.$apply(r)}))}}])}(Osgi||(Osgi={}));var Osgi;!function(e){e._module.controller("Osgi.BundlesController",["$scope","workspace","jolokia",function(t,n,i){function r(e){angular.equals(t.result,e.value)||(t.selected.length=0,t.result=e.value,t.bundles=[],angular.forEach(t.result,function(e,n){var i={Identifier:e.Identifier,Name:"",SymbolicName:e.SymbolicName,State:e.State,Version:e.Version,LastModified:e.LastModified,Location:e.Location};e.Headers["Bundle-Name"]&&(i.Name=e.Headers["Bundle-Name"].Value),t.bundles.push(i)}),t.loading=!1,Core.$apply(t))}t.result={},t.bundles=[],t.selected=[],t.loading=!0,t.bundleUrl="",t.installDisabled=function(){return""===t.bundleUrl};var o=[{field:"Identifier",displayName:"Identifier",width:"48",headerCellTemplate:'<div ng-click="col.sort()" class="ngHeaderSortColumn {{col.headerClass}}" ng-style="{\'cursor\': col.cursor}" ng-class="{ \'ngSorted\': !noSortVisible }"><div class="ngHeaderText colt{{$index}} pagination-centered" title="Identifier"><i class="fa fa-tag"></i></div><div class="ngSortButtonDown" ng-show="col.showSortButtonDown()"></div><div class="ngSortButtonUp" ng-show="col.showSortButtonUp()"></div></div>'},{field:"State",displayName:"Bundle State",width:"24",headerCellTemplate:'<div ng-click="col.sort()" class="ngHeaderSortColumn {{col.headerClass}}" ng-style="{\'cursor\': col.cursor}" ng-class="{ \'ngSorted\': !noSortVisible }"><div class="ngHeaderText colt{{$index}} pagination-centered" title="State"><i class="fa fa-tasks"></i></div><div class="ngSortButtonDown" ng-show="col.showSortButtonDown()"></div><div class="ngSortButtonUp" ng-show="col.showSortButtonUp()"></div></div>',cellTemplate:'<div class="ngCellText" title="{{row.getProperty(col.field)}}"><i class="{{row.getProperty(col.field)}}"></i></div>'},{field:"Name",displayName:"Name",width:"***",cellTemplate:'<div class="ngCellText"><a href="#/osgi/bundle/{{row.entity.Identifier}}?p=container">{{row.getProperty(col.field)}}</a></div>'},{field:"SymbolicName",displayName:"Symbolic Name",width:"***",cellTemplate:'<div class="ngCellText"><a href="#/osgi/bundle/{{row.entity.Identifier}}?p=container">{{row.getProperty(col.field)}}</a></div>'},{field:"Version",displayName:"Version",width:"**"},{field:"Location",displayName:"Update Location",width:"***"}];t.gridOptions={data:"bundles",showFilter:!1,selectedItems:t.selected,selectWithCheckboxOnly:!0,columnDefs:o,filterOptions:{filterText:""},primaryKeyFn:function(e){return e.Identifier}},t.onResponse=function(){i.request({type:"exec",mbean:e.getSelectionBundleMBean(n),operation:"listBundles()"},{success:r,error:r})},t.controlBundles=function(r){var o=t.selected.map(function(e){return e.Identifier});angular.isArray(o)||(o=[o]),i.request({type:"exec",mbean:e.getSelectionFrameworkMBean(n),operation:r,arguments:[o]},{success:t.onResponse,error:t.onResponse})},t.stop=function(){t.controlBundles("stopBundles([J)")},t.start=function(){t.controlBundles("startBundles([J)")},t.update=function(){t.controlBundles("updateBundles([J)")},t.refresh=function(){t.controlBundles("refreshBundles([J)")},t.uninstall=function(){t.controlBundles("uninstallBundles([J)")},t.install=function(){i.request({type:"exec",mbean:e.getSelectionFrameworkMBean(n),operation:"installBundle(java.lang.String)",arguments:[t.bundleUrl]},{success:function(r){console.log("Got: ",r),t.bundleUrl="",i.request({type:"exec",mbean:e.getSelectionFrameworkMBean(n),operation:"startBundle(long)",arguments:[r.value]},{success:t.onResponse,error:t.onResponse})},error:function(e){t.bundleUrl="",t.onResponse()}})},Core.register(i,t,{type:"exec",mbean:e.getSelectionBundleMBean(n),operation:"listBundles()"},Core.onSuccess(r))}])}(Osgi||(Osgi={}));var Osgi;!function(e){e._module.controller("Osgi.ConfigurationsController",["$scope","$routeParams","$location","workspace","jolokia",function(t,n,i,r,o){function a(n){var i={};angular.forEach(n,function(e){var t=e[0],n=e[1],r=m(t,n);v(t)||(r.hasValue=!0,r.kind=C.pid,i[t]=r)}),t.pids=i;var o=e.getSelectionConfigAdminMBean(r);o&&t.jolokia.execute(o,"getConfigurations","(service.factoryPid=*)",Core.onSuccess(s,k("Failed to load factory PID configurations: "))),d()}function s(n){var i=e.getSelectionConfigAdminMBean(r),o=t.pids;o&&i&&angular.forEach(n,function(n){var a=n[0],s=n[1];if(a&&!v(a)){var l=o[a];l&&(l.isFactoryInstance=!0,t.jolokia.execute(i,"getFactoryPid",a,Core.onSuccess(function(n){if(l.factoryPid=n,l.name=e.removeFactoryPidPrefix(a,n),n){var i=y(n,s,o);i&&(b(a,i,l),t.inFabricProfile&&e.getConfigurationProperties(r,t.jolokia,a,function(i){var r=Core.pathGet(i,["fabric.zookeeper.pid","Value"]);r&&(l.name=e.removeFactoryPidPrefix(r,n),l.zooKeeperPid=r,Core.$apply(t))}),Core.$apply(t))}})))}}),c()}function l(e){t.metaType=e,c()}function u(){var e=t.pids,n=[];angular.forEach(e,function(e,t){e.isFactoryInstance||n.push(e)}),t.configurations=_.sortBy(n,"name"),Core.$apply(t)}function c(n){void 0===n&&(n=!0);var i=t.metaType;if(i){var r=e.configuration.pidMetadata,o=t.pids||{};angular.forEach(i.pids,function(e,t){var i=null,a=n?y(t,i):o[t];if(a){var s=e.factoryPidBundleIds;s&&s.length&&w(a),a.name=Core.pathGet(r,[t,"name"])||f(e.name)||t;var l=Core.pathGet(r,[t,"description"])||e.description;a.description=l}})}u()}function d(){if(t.pids)if(t.profileNotRunning&&t.profileMetadataMBean&&t.versionId&&t.profileId)o.execute(t.profileMetadataMBean,"metaTypeSummary",t.versionId,t.profileId,Core.onSuccess(l));else{var n=e.getMetaTypeMBean(r);n&&t.jolokia.execute(n,"metaTypeSummary",Core.onSuccess(l))}}function p(){if(t.configurations=[],t.profileNotRunning&&t.profileMetadataMBean&&t.versionId&&t.profileId)o.execute(t.profileMetadataMBean,"metaTypeSummary",t.versionId,t.profileId,Core.onSuccess(h,{silent:!0}));else if(t.jolokia){var n=e.getSelectionConfigAdminMBean(r);n&&t.jolokia.execute(n,"getConfigurations","(service.pid=*)",Core.onSuccess(a,k("Failed to load PID configurations: ")))}}function h(e){var n=e;if(n){var i={};angular.forEach(n.pids,function(e,t){if(e&&!v(t)){var n="mvn:"+t,r={pid:t,name:e.name,"class":"pid",description:e.description,bundle:n,kind:C.pid,pidLink:x(t)};i[t]=r}}),angular.forEach(i,function(e,t){var n=t.indexOf("-");if(n>0){var r=t.substring(0,n),o=t.substring(n+1,t.length),a=i[r];if(!a){var s=e.bundle;a=y(r,s,i)}a&&(b(t,a,e,r),e.name=o,i[r]=a,delete i[t])}}),t.pids=i}t.metaType=n,c(!1)}function f(e){return angular.forEach(["Fabric8 ","Apache "],function(t){e&&_.startsWith(e,t)&&e.length>t.length&&(e=e.substring(t.length))}),e}function g(t,n){var i=e.configuration.pidMetadata;return Core.pathGet(i,[t,"description"])||"pid: "+t+"\nbundle: "+n}function m(t,n){var i=e.configuration.pidMetadata,r={pid:t,name:Core.pathGet(i,[t,"name"])||t,"class":"pid",description:Core.pathGet(i,[t,"description"])||g(t,n),bundle:n,kind:C.pidNoValue,pidLink:x(t)};return r}function v(t){var n=!1;return angular.forEach(e.configuration.ignorePids,function(e){_.startsWith(t,e)&&(n=!0)}),n}function y(n,i,r){if(void 0===r&&(r=null),v(n))return e.log.info("ignoring pid "+n),null;r||(r=t.pids);var o=r[n];return o||(o=m(n,i),r[n]=o,u()),o}function b(e,t,n,i){void 0===i&&(i=null),w(t,i,e);var r=t.children;i&&(t.pidLink=x(i,!0)),r||(r={},t.children=r),r[e]=n}function w(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null),e.isFactory=!0,e["class"]="factoryPid",e.kind=C.factory,t||(t=e.factoryPid||""),n||(n=e.pid||""),t||(t=n,n=null),e.pidLink=x(t)}function x(n,i){return void 0===i&&(i=!1),e.createConfigPidLink(t,r,n,i)}function k(e){return{error:function(t){Core.notification("error",e+t.error||t),Core.defaultJolokiaErrorHandler(t)}}}t.selectedItems=[],t.jolokia=o,t.grid={data:"configurations",showFilter:!1,showColumnMenu:!1,multiSelect:!1,filterOptions:{filterText:"",useExternalFilter:!1},selectedItems:t.selectedItems,showSelectionCheckbox:!1,displaySelectionCheckbox:!1,columnDefs:[{field:"Pid",displayName:"Configuration",cellTemplate:'<div class="ngCellText"><a ng-href="{{row.entity.pidLink}}" title="{{row.entity.description}}">{{row.entity.name}}</a></div>'}],primaryKeyFn:function(e){return e.Pid}};var C={factory:{"class":"badge badge-info",title:"Configuration factory used to create separate instances of the configuration"},pid:{"class":"badge badge-success",title:"Configuration which has a set of properties associated with it"},pidNoValue:{"class":"badge badge-warning",title:"Configuration which does not yet have any bound values"}};t.addPidDialog=new UI.Dialog,t.addPid=function(n){if(t.configurations.some(function(e){return e.pid==n}))return void Core.notification("error",'pid "'+n+'" already exists.');t.addPidDialog.close();var i=e.getHawtioConfigAdminMBean(r);if(i&&n){var o=JSON.stringify({});t.jolokia.execute(i,"configAdminUpdate",n,o,Core.onSuccess(function(e){Core.notification("success","Successfully created pid: "+n),p()}))}},t.$on("$routeChangeSuccess",function(e,t,n){setTimeout(p,50)}),p()}])}(Osgi||(Osgi={}));var Osgi;!function(e){e._module.controller("Osgi.FrameworkController",["$scope","$dialog","workspace",function(t,n,i){function r(e,t){Core.notification(e,t),a()}function o(e){t.startLevel=e.value.FrameworkStartLevel,t.initialBundleStartLevel=e.value.InitialBundleStartLevel,Core.$apply(t)}function a(){var t=e.getSelectionFrameworkMBean(i);if(t){var n=i.jolokia;n.request({type:"read",mbean:t},Core.onSuccess(o))}}t.editDialog=new UI.Dialog,a(),t.edit=function(e,n){t.editAttr=e,t.editDisplayName=n,t.editDialog.open()},t.edited=function(n,o,a){if(t.editDialog.close(),angular.isNumber(a)){var s=e.getSelectionFrameworkMBean(i);if(s){var l=i.jolokia;l.request({type:"write",mbean:s,attribute:n,value:a},{error:function(e){r("error",e.error)},success:function(e){r("success",o+" changed to "+a)}})}}}}])}(Osgi||(Osgi={}));var Osgi;!function(e){e.configuration={pidMetadata:{"io.fabric8.container.java":{name:"Java Container"},"io.fabric8.container.process":{name:"Process Container"},"io.fabric8.container.process.overlay.resources":{name:"Container Overlay Resources",description:"The resources overlaid over the distribution of the process",schemaExtensions:{disableHumanizeLabel:!0}},"io.fabric8.dosgi":{name:"Fabric8 DOSGi",description:"The configuration for the Distributed OSGi implementation in Fabric8"},"io.fabric8.environment":{name:"Environment Variables",description:"The operating system Environment Variables which are exported into any child processes",schemaExtensions:{disableHumanizeLabel:!0}},"io.fabric8.fab.osgi.url":{name:"FAB URL",description:"Configures the 'fab:' URL handler for deploying JARs as bundles"},"io.fabric8.mq.fabric.server":{name:"ActiveMQ Broker",description:"The configuration of the Apache ActiveMQ server configured via the fabric"},"io.fabric8.openshift":{name:"OpenShift"},"io.fabric8.ports":{name:"Ports",description:"The network ports exported by the container",schemaExtensions:{disableHumanizeLabel:!0}},"io.fabric8.system":{name:"System Properties",description:"The Java System Properties which are exported into any child Java processes",schemaExtensions:{disableHumanizeLabel:!0}},"io.fabric8.version":{name:"Versions",schemaExtensions:{disableHumanizeLabel:!0}},"org.ops4j.pax.logging":{name:"Logging",description:"The configuration of the logging subsystem"},"org.ops4j.pax.url.mvn":{name:"Maven URL",description:"Configures the Maven 'mvn:' URL handler for referencing maven artifacts"},"org.ops4j.pax.url.war":{name:"WAR URL",description:"Configures the 'war:' URL handler for referencing WAR deployments"},"org.ops4j.pax.url.wrap":{name:"Wrap URL",description:"Configures the 'wrap:' URL handler for wrapping JARs as bundles"}},ignorePids:["jmx.acl","io.fabric8.agent","io.fabric8.git","io.fabric8.mq.fabric.template","io.fabric8.openshift.agent","io.fabric8.service.ZkDataStoreImpl","org.apache.felix.fileinstall","org.apache.karaf.command.acl.","org.apache.karaf.service.acl."],tabs:{fabric8:{label:"Fabric8",description:"Configuration options for the Fabric8 services",pids:["io.fabric8"]},karaf:{label:"Karaf",description:"Configuration options for the Apache Karaf container and subsystem",pids:["org.apache.karaf"]}}}}(Osgi||(Osgi={}));var Osgi;!function(e){var t=function(){function e(e,t,n,i,r,o){this.filteredBundles={},this.bundles=null,this.services=null,this.packages=null,this.PREFIX_BUNDLE="Bundle-",this.PREFIX_SVC="Service-",this.PREFIX_PKG="Package-",this.osgiDataService=e,this.bundleFilter=t,this.packageFilter=n,this.showServices=i,this.showPackages=r,this.hideUnused=o,this.graphBuilder=new ForceGraph.GraphBuilder}return e.prototype.getBundles=function(){return null==this.bundles&&(this.bundles=this.osgiDataService.getBundles()),this.bundles},e.prototype.getServices=function(){return null==this.services&&(this.services=this.osgiDataService.getServices()),this.services},e.prototype.getPackages=function(){return null==this.packages&&(this.packages=this.osgiDataService.getPackages()),this.packages},e.prototype.bundleNodeId=function(e){return this.PREFIX_BUNDLE+e.Identifier},e.prototype.serviceNodeId=function(e){return this.PREFIX_SVC+e.Identifier},e.prototype.pkgNodeId=function(e){return this.PREFIX_PKG+e.Name+"-"+e.Version},e.prototype.buildSvcNode=function(e){return{id:this.serviceNodeId(e),name:""+e.Identifier,type:"service",used:!1,popup:{title:"Service ["+e.Identifier+"]",content:function(){var t="";return null!=e&&e.objectClass.forEach(function(e){t.length>0&&(t+="<br/>"),t+=e}),t}}}},e.prototype.buildBundleNode=function(e){return{id:this.bundleNodeId(e),name:e.SymbolicName,type:"bundle",used:!1,navUrl:"#/osgi/bundle/"+e.Identifier,popup:{title:"Bundle ["+e.Identifier+"]",content:"<p>"+e.SymbolicName+"<br/>Version "+e.Version+"</p>"}}},e.prototype.buildPackageNode=function(e){return{id:this.pkgNodeId(e),name:e.Name,type:"package",used:!1,popup:{title:"Package ["+e.Name+"]",content:"<p>"+e.Version+"</p>"}}},e.prototype.exportingBundle=function(e){var t=this,n=null;return e.ExportingBundles.forEach(function(e){null!=t.filteredBundles[t.PREFIX_BUNDLE+e]&&(n=e)}),n},e.prototype.addFilteredBundles=function(){var e=this;d3.values(this.getBundles()).forEach(function(t){if(null==e.bundleFilter||""==e.bundleFilter||_.startsWith(t.SymbolicName,e.bundleFilter.toString())){var n=e.buildBundleNode(t);if(e.filteredBundles[n.id]=t,n.used=!0,e.graphBuilder.addNode(n),e.showServices){var i=e.getServices();t.RegisteredServices.forEach(function(t){var r=i[t];if(r){var o=e.buildSvcNode(i[t]);e.graphBuilder.addNode(o),e.graphBuilder.addLink(n.id,o.id,"registered")}})}}})},e.prototype.addFilteredServices=function(){var e=this;this.showServices&&d3.values(this.getBundles()).forEach(function(t){t.ServicesInUse.forEach(function(n){var i=e.PREFIX_SVC+n;if(null!=e.graphBuilder.getNode(i)){e.graphBuilder.getNode(i).used=!0;var r=e.graphBuilder.getNode(e.bundleNodeId(t))||e.buildBundleNode(t);r.used=!0,e.graphBuilder.addNode(r),e.graphBuilder.addLink(i,r.id,"inuse")}})})},e.prototype.addFilteredPackages=function(){var e=this;this.showPackages&&d3.values(this.getPackages()).forEach(function(t){if(null==e.packageFilter||""==e.packageFilter||_.startsWith(t.Name,e.packageFilter.toString())){var n=e.exportingBundle(t);if(null!=n){var i=e.graphBuilder.getNode(e.PREFIX_BUNDLE+n);i.used=!0;var r=e.buildPackageNode(t);e.graphBuilder.addNode(r),e.graphBuilder.addLink(i.id,r.id,"registered"),t.ImportingBundles.forEach(function(t){var n=e.graphBuilder.getNode(e.PREFIX_BUNDLE+t)||e.buildBundleNode(e.getBundles()[t]);n.used=!0,r.used=!0,e.graphBuilder.addNode(n),e.graphBuilder.addLink(n.id,r.id,"inuse")})}}})},e.prototype.buildGraph=function(){var e=this;return this.addFilteredBundles(),this.addFilteredServices(),this.addFilteredPackages(),this.hideUnused&&(this.graphBuilder.filterNodes(function(e){return e.used}),this.graphBuilder.filterNodes(function(t){return e.graphBuilder.hasLinks(t.id)})),this.graphBuilder.buildGraph()},e}();e.OsgiGraphBuilder=t}(Osgi||(Osgi={}));var Osgi;!function(e){e.TopLevelController=e._module.controller("Osgi.TopLevelController",["$scope","workspace",function(t,n){t.frameworkMBean=e.getSelectionFrameworkMBean(n),t.bundleMBean=e.getSelectionBundleMBean(n),t.serviceMBean=e.getSelectionServiceMBean(n),t.packageMBean=e.getSelectionPackageMBean(n),t.configAdminMBean=e.getSelectionConfigAdminMBean(n),t.metaTypeMBean=e.getMetaTypeMBean(n),t.osgiToolsMBean=e.getHawtioOSGiToolsMBean(n),
|
|
|
25811
|
+t.hawtioConfigAdminMBean=e.getHawtioConfigAdminMBean(n),t.scrMBean=Karaf.getSelectionScrMBean(n),t.featuresMBean=Karaf.getSelectionFeaturesMBean(n)}])}(Osgi||(Osgi={}));var Osgi;!function(e){e._module.controller("Osgi.PackageController",["$scope","$filter","workspace","$routeParams",function(t,n,i,r){function o(n){var r=e.defaultPackageValues(i,t,n.value);t.row=_.filter(r,{Name:t["package"],Version:t.version})[0],Core.$apply(t)}function a(){var t=e.getSelectionPackageMBean(i);if(t){var n=i.jolokia;n.request({type:"exec",mbean:t,operation:"listPackages"},Core.onSuccess(o))}}t["package"]=r["package"],t.version=r.version,a()}])}(Osgi||(Osgi={}));var Osgi;!function(e){e.PackagesController=e._module.controller("Osgi.PackagesController",["$scope","$filter","workspace","$templateCache","$compile",function(t,n,i,r,o){function a(n){var r=e.defaultPackageValues(i,t,n.value);s(r)}function s(n){var r={},o=function(e){angular.forEach(e.value,function(e,t){var n={Identifier:e.Identifier,Name:"",SymbolicName:e.SymbolicName,State:e.State,Version:e.Version,LastModified:e.LastModified,Location:e.Location};e.Headers["Bundle-Name"]&&(n.Name=e.Headers["Bundle-Name"].Value),r[n.Identifier]=n}),angular.forEach(n,function(e,t){angular.forEach(e.ExportingBundles,function(t,n){e.ExportingBundles[n]=r[t]}),angular.forEach(e.ImportingBundles,function(t,n){e.ImportingBundles[n]=r[t]})}),t.packages=n,Core.$apply(t)};i.jolokia.request({type:"exec",mbean:e.getSelectionBundleMBean(i),operation:"listBundles()"},{success:o,error:o})}function l(){var t=e.getSelectionPackageMBean(i);if(t){var n=i.jolokia;n.request({type:"exec",mbean:t,operation:"listPackages"},Core.onSuccess(a))}}n("date");t.packages=[],t.selectedItems=[],t.mygrid={data:"packages",showFilter:!1,showColumnMenu:!1,filterOptions:{filterText:"",useExternalFilter:!1},selectedItems:t.selectedItems,rowHeight:32,selectWithCheckboxOnly:!0,columnDefs:[{field:"Name",displayName:"Name"},{field:"VersionLink",displayName:"Version",width:"***",cellTemplate:'\n <div class="ngCellText">\n <a ng-href="/osgi/package/{{row.entity.Name}}/{{row.entity.Version}}">{{row.entity.Version}}</a>\n </div>'},{field:"ExportingBundles",displayName:"Exporting Bundles",cellTemplate:'\n <div class="ngCellText">\n <div ng-repeat="bundle in row.entity.ExportingBundles">\n <a title="Exported by bundle {{bundle.Identifier}}" ng-href="/osgi/bundle/{{bundle.Identifier}}">{{bundle.SymbolicName}}</a>\n </div>\n </div>'},{field:"ImportingBundles",displayName:"Importing Bundles",cellTemplate:'\n <div class="ngCellText">\n <div ng-repeat="bundle in row.entity.ImportingBundles">\n <a title="Imported by bundle {{bundle.Identifier}}" ng-href="/osgi/bundle/{{bundle.Identifier}}">{{bundle.SymbolicName}}</a>\n </div>\n </div>'},{field:"RemovalPending",displayName:"Removal Pending"}],primaryKeyFn:function(e){return e.Name}},t.$watch("workspace.selection",function(){l()})}])}(Osgi||(Osgi={}));var Osgi;!function(e){e._module.controller("Osgi.PidController",["$scope","$timeout","$routeParams","$location","workspace","jolokia",function(t,n,i,r,o,a){function s(n,i,o){var a=function(n){if(Core.notification("success","Successfully updated pid: "+i),i&&t.factoryPid&&t.newPid){var o=e.createConfigPidPath(t,i);r.path(o)}else t.setEditMode(!1),t.canSave=!1,t.saved=!0},s=Core.onSuccess(a,l("Failed to update: "+i)),u=JSON.stringify(o);t.jolokia.execute(n,"configAdminUpdate",i,u,s)}function l(e){return{error:function(t){Core.notification("error",e+"\n"+t.error||t),Core.defaultJolokiaErrorHandler(t)}}}function u(){t.editMode&&(t.canSave=!0)}function c(e){t.modelLoaded=!0;var n=e||{};t.configValues=n,t.zkPid=Core.pathGet(n,["fabric.zookeeper.pid","Value"]),t.zkPid&&t.saved||d()}function d(){h();var n=t.configValues;if(n)if(t.profileNotRunning&&t.profileMetadataMBean&&t.versionId&&t.profileId){var i=t.factoryPid||t.pid;a.execute(t.profileMetadataMBean,"getPidMetaTypeObject",t.versionId,t.profileId,i,Core.onSuccess(p))}else{var r=null,i=null,o=n["service.factoryPid"];o&&!i&&(i=o.Value);var s=e.getMetaTypeMBean(t.workspace);s&&t.jolokia.execute(s,"getPidMetaTypeObject",i,r,Core.onSuccess(p))}Core.$apply(t)}function p(e){t.metaType=e,h(),Core.$apply(t)}function h(){var n={},i=[];t.defaultValues={};var r={type:"object",required:i,properties:n},o="span12",a="control-label",s="",l=a,u=t.metaType;if(u){var c=e.configuration.pidMetadata,d=u.id;r.id=d,r.name=Core.pathGet(c,[d,"name"])||u.name,r.description=Core.pathGet(c,[d,"description"])||u.description;var p=Core.pathGet(c,[d,"schemaExtensions","disableHumanizeLabel"]);angular.forEach(u.attributes,function(e){var r=e.id;if(g(r)){var u=m(r,d),c=y(e.typeName,e.id),h={title:e.name,tooltip:e.description,"input-attributes":{"class":o},"label-attributes":{"class":a},type:c};p&&(h.title=r),"char"===e.typeName&&(h.maxLength=1,h.minLength=1);var f=e.cardinality;f&&(h["input-attributes"]["class"]=null,h.type="array",h.items={"input-attributes":{"class":s},"label-attributes":{"class":l},type:c}),e.required&&i.push(r);var v=e.defaultValue;v&&(angular.isArray(v)&&1===v.length&&(v=v[0]),t.defaultValues[u]=v);var b=e.optionLabels,w=e.optionValues;if(b&&b.length&&w&&w.length){for(var x={},k=0;k<b.length;k++){var C=b[k],S=w[k];x[S]=C}t.selectValues[u]=x,Core.pathSet(h,["input-element"],"select"),Core.pathSet(h,["input-attributes","ng-options"],"key as value for (key, value) in selectValues."+u)}n[u]=h}});var h=Core.pathGet(e.configuration.pidMetadata,[d,"schemaExtensions"]);h&&f(r,h)}var v={};angular.forEach(t.configValues,function(e,t){if(g(t)){var i=m(t,d),r=e,s="string";angular.isObject(e)&&(r=e.Value,s=y(e.Type,t));var l=n[i];if(l){var u=l.type;"array"===u&&(angular.isArray(r)||(r=r?r.split(","):[]))}else l={"input-attributes":{"class":o},"label-attributes":{"class":a},type:s},n[i]=l,"org.osgi.service.http.port"==t&&(n[i]["input-attributes"].disabled="disabled",n[i]["input-attributes"].title="Changing port of OSGi http service is not possible from Hawtio");p&&(l.title=t),i=i.replace(/-/g,"_"),v[i]=r}}),angular.forEach(t.defaultValues,function(e,t){var n=v[t];angular.isDefined(n)||(v[t]=e)}),t.entity=v,t.schema=r,t.fullSchema=r}function f(e,t){angular.isObject(e)&&angular.isObject(t)&&angular.forEach(t,function(t,n){if(angular.isObject(t)){var i=e[n];i||(i={},e[n]=i),f(i,t)}else e[n]=t})}function g(e){return e&&k.indexOf(e)<0}function m(e,t){return e.replace(/\./g,"__")}function v(e,t){return e.replace(/__/g,".")}function y(e,t){if(e){var n=e.toLowerCase();return _.startsWith(n,"int")||"long"===n||"short"===n||"byte"===n||_.endsWith(n,"int")?"integer":"double"===n||"float"===n||"bigdecimal"===n?"number":"string"===n?t&&_.endsWith(t,"password")?"password":"string":e}return"string"}function b(){t.modelLoaded=!1,e.getConfigurationProperties(t.workspace,t.jolokia,t.pid,c)}if(t.deletePropDialog=new UI.Dialog,t.deletePidDialog=new UI.Dialog,t.addPropertyDialog=new UI.Dialog,t.factoryPid=i.factoryPid,t.pid=i.pid,t.createForm={pidInstanceName:null},t.newPid=t.factoryPid&&!t.pid,t.newPid&&(t.editMode=!0),t.pid&&!t.factoryPid){var w=t.pid.indexOf("-");w>0&&(t.factoryPid=t.pid.substring(0,w),t.factoryInstanceName=t.pid.substring(w+1,t.pid.length))}t.selectValues={},t.modelLoaded=!1,t.canSave=!1,t.setEditMode=function(e){t.editMode=e,t.formMode=e?"edit":"view",e&&t.entity||(t.entity={},b())};var x=t.factoryPid&&!i.pid;t.setEditMode(x),t.$on("hawtio.form.modelChange",function(){t.modelLoaded&&(u(),Core.$apply(t))}),t.pidSave=function(){var n={};angular.forEach(t.entity,function(e,i){var r=void 0;angular.isString(e)?r=e:angular.isDefined(e)&&(r=e.toString()),angular.isDefined(r)&&(n[v(i,t.pid)]=r)});var i=e.getHawtioConfigAdminMBean(o);if(i||t.inFabricProfile){var r=e.getSelectionConfigAdminMBean(t.workspace),a=t.pid,u=t.zkPid,c=t.factoryPid;if(!t.inFabricProfile&&c&&r&&!u)t.jolokia.execute(r,"createFactoryConfiguration",c,Core.onSuccess(function(e){a=e,a&&s(i,a,n)},l("Failed to create new PID: ")));else{if(t.newPid){var d=t.createForm.pidInstanceName;if(!d||!c)return;a=c+"-"+d}else u&&(a=u);s(i,a,n)}}},t.addPropertyConfirmed=function(e,n){t.addPropertyDialog.close(),t.configValues[e]={Key:e,Value:n,Type:"String"},u(),h()},t.deletePidProp=function(e){t.deleteKey=e.Key,t.deletePropDialog.open()},t.deletePidPropConfirmed=function(){t.deletePropDialog.close();var e=document.getElementById("pid."+t.deleteKey);e.parentElement.remove(),u()},t.deletePidConfirmed=function(){function n(e){Core.notification("error",e.error)}function i(e){Core.notification("success","Successfully deleted pid: "+t.pid),r.path(t.configurationsLink)}t.deletePidDialog.close();var o=e.getSelectionConfigAdminMBean(t.workspace);o&&t.jolokia.request({type:"exec",mbean:o,operation:"delete",arguments:[t.pid]},{error:n,success:i})};var k=["service.pid","service.factoryPid","fabric.zookeeper.pid"];b()}])}(Osgi||(Osgi={}));var Osgi;!function(e){e.ServiceController=e._module.controller("Osgi.ServiceController",["$scope","$filter","workspace","$templateCache","$compile",function(t,n,i,r,o){function a(n){var r={},o=function(e){angular.forEach(e.value,function(e,t){var n={Identifier:e.Identifier,Name:"",SymbolicName:e.SymbolicName,State:e.State,Version:e.Version,LastModified:e.LastModified,Location:e.Location};e.Headers["Bundle-Name"]&&(n.Name=e.Headers["Bundle-Name"].Value),r[n.Identifier]=n});var i=[];angular.forEach(n,function(e,t){angular.forEach(e.UsingBundles,function(t,n){e.UsingBundles[n]=r[t]}),i.push(e)}),t.services=i,Core.$apply(t)};i.jolokia.request({type:"exec",mbean:e.getSelectionBundleMBean(i),operation:"listBundles()"},{success:o,error:o})}n("date");t.workspace=i,t.services=[],t.selectedItems=[],t.mygrid={data:"services",showFilter:!1,showColumnMenu:!1,filterOptions:{filterText:"",useExternalFilter:!1},selectedItems:[],rowHeight:32,selectWithCheckboxOnly:!0,columnDefs:[{field:"BundleIdentifier",displayName:"Bundle",cellTemplate:'\n <div class="ngCellText">\n <a ng-href="/osgi/bundle/{{row.entity.Identifier}}">{{row.entity.Identifier}}</a>\n </div>'},{field:"objectClass",displayName:"Object Class(es)",cellTemplate:'\n <div class="ngCellText">\n <div ng-repeat="clazz in row.entity.objectClass">\n <span>\n {{clazz}}\n </span>\n </div>\n </div>'},{field:"UsingBundles",displayName:"Used by",cellTemplate:'\n <div class="ngCellText">\n <div ng-repeat="bundle in row.entity.UsingBundles">\n <a ng-href="/osgi/bundle/{{bundle.Identifier}}">{{bundle.Name || bundle.SymbolicName || bundle.Identifier}}</a>\n <!--\n <pre>\n {{bundle}}\n </pre>\n -->\n </div>\n </div>'}],primaryKeyFn:function(e){return e.BundleIdentifier}},t.selectedItems=t.mygrid.selectedItems,t.$watch("workspace.selection",function(){var t=e.getSelectionServiceMBean(i);if(t){var n=i.jolokia;n.request({type:"exec",mbean:t,operation:"listServices()"},Core.onSuccess(s))}});var s=function(n){var r=e.defaultServiceValues(i,t,n.value);a(r)}}])}(Osgi||(Osgi={}));var Osgi;!function(e){e._module.controller("Osgi.ServiceDependencyController",["$scope","$location","$routeParams","workspace","osgiDataService",function(t,n,i,r,o){t.init=function(){i.bundleFilter?t.bundleFilter=i.bundleFilter:t.bundleFilter="",i.pkgFilter?t.packageFilter=i.pkgFilter:t.packageFilter="","packages"==i.view?t.selectView="packages":t.selectView="services",i.hideUnused?t.hideUnused="true"==i.hideUnused:t.hideUnused=!0},t.updateLink=function(){var e=n.search();t.bundleFilter&&""!=t.bundleFilter?e.bundleFilter=t.bundleFilter:delete e.bundleFilter,t.packageFilter&&""!=t.packageFilter?e.pkgFilter=t.packageFilter:delete e.pkgFilter,e.view=t.selectView,t.hideUnused?e.hideUnused="true":e.hideUnused="false",n.search(e)},t.addToDashboardLink=function(){var e=angular.toJson(i),t="#/osgi/dependencies",n="OSGi dependencies",r=angular.toJson({size_x:2,size_y:2}),o="#/dashboard/add?tab=dashboard&href="+encodeURIComponent(t)+"&routeParams="+encodeURIComponent(e)+"&size="+encodeURIComponent(r)+"&title="+encodeURIComponent(n);return o},t.$on("$routeUpdate",function(){var e=n.search;e.bundleFilter?t.bundleFilter=i.bundleFilter:t.bundleFilter="",e.pkgFilter?t.packageFilter=i.pkgFilter:t.packageFilter="","packages"==e.view?t.selectView="packages":t.selectView="services",e.hideUnused?t.hideUnused="true"==i.hideUnused:t.hideUnused=!0,t.updateLink(),t.updateGraph()}),t.updateGraph=function(){t.updateLink(),t.updatePkgFilter();var n=new e.OsgiGraphBuilder(o,t.bundleFilter,t.packageFilter,"services"==t.selectView,"packages"==t.selectView,t.hideUnused);t.graph=n.buildGraph(),Core.$apply(t)},t.updatePkgFilter=function(){null==t.packageFilter||""==t.packageFilter?(t.selectView="services",t.disablePkg=!0):t.disablePkg=!1},t.init(),t.updateGraph()}])}(Osgi||(Osgi={})),angular.module("hawtio-integration-templates",[]).run(["$templateCache",function(e){e.put("plugins/activemq/html/browseQueue.html",'<div ng-controller="ActiveMQ.BrowseQueueController">\n <div ng-hide="showMessageDetails"> \n <div class="row">\n <div class="col-md-6">\n <input class="search-query col-md-12" type="text" ng-model="gridOptions.filterOptions.filterText"\n placeholder="Filter messages">\n </div>\n <div class="col-md-6 align-right">\n <div class="search-query">\n <button class="btn btn-default" ng-disabled="!gridOptions.selectedItems.length" ng-show="dlq" ng-click="retryMessages()"\n title="Moves the dead letter queue message back to its original destination so it can be retried" data-placement="bottom">\n <i class="fa fa-reply"></i> Retry\n </button>\n <button class="btn btn-default" ng-disabled="gridOptions.selectedItems.length !== 1" ng-click="resendMessage()"\n title="Edit the message to resend it" data-placement="bottom">\n <i class="fa fa-share-alt"></i> Resend\n </button>\n\n <button class="btn btn-default" ng-disabled="!gridOptions.selectedItems.length" ng-click="moveMessages()"\n title="Move the selected messages to another destination" data-placement="bottom">\n <i class="fa fa-share-alt"></i> Move\n </button>\n <button class="btn btn-default" ng-disabled="!gridOptions.selectedItems.length"\n ng-click="deleteMessages()"\n title="Delete the selected messages">\n <i class="fa fa-remove"></i> Delete\n </button>\n <button class="btn btn-default" ng-click="refresh()"\n title="Refreshes the list of messages">\n <i class="fa fa-refresh"></i>\n </button>\n </div>\n </div>\n </div>\n\n <div class="row">\n <table class="table table-striped" hawtio-simple-table="gridOptions"></table>\n </div>\n </div>\n\n <div ng-show="showMessageDetails">\n <div class="row">\n <div class="col-md-4">\n <button class="btn btn-primary" ng-click="showMessageDetails = false"><i class="fa fa-arrow-left"></i> Back</button>\n </div>\n <div class="col-md-4 align-center">\n <div hawtio-pager="messages" on-index-change="selectRowIndex" row-index="rowIndex"></div>\n </div>\n <div class="col-md-4 align-right">\n\n <button class="btn btn-default" ng-disabled="!gridOptions.selectedItems.length" ng-click="moveMessages()"\n title="Move the selected messages to another destination" data-placement="bottom">\n <i class="fa fa-share-alt"></i> Move\n </button>\n\n <button class="btn btn-danger" ng-disabled="!gridOptions.selectedItems.length"\n ng-click="deleteMessages()"\n title="Delete the selected messages">\n <i class="fa fa-remove"></i> Delete\n </button>\n\n </div>\n </div>\n\n <div class="row">\n <div class="expandable closed">\n <div title="Headers" class="title">\n <i class="expandable-indicator"></i> Headers & Properties\n </div>\n <div class="expandable-body well">\n <table class="table table-condensed table-striped">\n <thead>\n <tr>\n <th>Header</th>\n <th>Value</th>\n </tr>\n </thead>\n <tbody compile="row.headerHtml"></tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div class="row">\n <div>Displaying body as <span ng-bind="row.textMode"></span></div>\n <div hawtio-editor="row.bodyText" read-only="true" mode=\'mode\'></div>\n </div>\n\n </div>\n\n <script type="text/ng-template" id="activemqMoveMessageDialog.html">\n <div class="modal-header">\n <span>Move messages?</span>\n </div>\n <div class="modal-body">\n <p>Move\n <ng-pluralize count="gridOptions.selectedItems.length"\n when="{\'1\': \'message\', \'other\': \'{} messages\'}"></ng-pluralize>\n to: <input type="text" ng-model="queueName" placeholder="Queue name"\n typeahead="title.unescapeHTML() for title in queueNames($viewValue) | filter:$viewValue" typeahead-editable=\'true\'></p>\n <p>\n You cannot undo this operation.<br>\n Though after the move you can always move the\n <ng-pluralize count="gridOptions.selectedItems.length"\n when="{\'1\': \'message\', \'other\': \'messages\'}"></ng-pluralize>\n back again.\n </p>\n </div>\n <div class="modal-footer">\n <button class="btn btn-info" \n ng-click="close(true)">Move</button>\n <button class="btn btn-default" \n ng-click="close(false)">Cancel</button>\n </div>\n </script>\n\n</div>\n\n'),e.put("plugins/activemq/html/createDestination.html",'<form class="form-horizontal" ng-controller="ActiveMQ.DestinationController">\n\n <div class="alert alert-info">\n <span class="pficon pficon-info"></span>The JMS API does not define a standard address syntax. <p></p> Although a\n standard address syntax was considered, it was decided that the differences in address semantics between existing\n message-oriented middleware (MOM) products were too wide to bridge with a single syntax.\n </div>\n\n <div class="form-group">\n <label class="col-sm-2 control-label" for="name-markup">{{destinationTypeName}} name</label>\n\n <div class="col-sm-10">\n <input id="name-markup" class="form-control" type="text" size="60" style="margin-left:15px;" maxlength="300"\n name="destinationName" ng-model="destinationName" placeholder="{{destinationTypeName}} name"/>\n </div>\n </div>\n <div class="form-group">\n <label class="col-sm-2 control-label">Destination type</label>\n\n <div class="col-sm-10">\n <label class="checkbox">\n <input type="radio" ng-model="queueType" value="true"> Queue\n </label>\n <label class="checkbox">\n <input type="radio" ng-model="queueType" value="false"> Topic\n </label>\n </div>\n </div>\n\n <div class="control-group col-md-12">\n <button type="submit" class="btn btn-primary" ng-click="createDestination(destinationName, queueType)"\n ng-disabled="!destinationName">Create {{destinationTypeName}}\n </button>\n </div>\n\n</form>\n'),e.put("plugins/activemq/html/deleteQueue.html",'<div ng-controller="ActiveMQ.DestinationController">\n <div class="row">\n\n <div class="control-group">\n\n <div class="alert alert-warning">\n <span class="pficon-layered">\n <span class="pficon pficon-warning-triangle"></span>\n <span class="pficon pficon-warning-exclamation"></span>\n </span>\n <strong>Warning:</strong> these operations cannot be undone. Please be careful!\n </div>\n </div>\n </div>\n\n <div class="row">\n <div class="col-md-6">\n <div class="control-group">\n <button type="submit" class="btn btn-warning" ng-click="deleteDialog = true">Delete queue\n \'{{name}}\'\n </button>\n <label>This will remove the queue completely.</label>\n </div>\n </div>\n <div class="col-md-6">\n <div class="control-group">\n <button type="submit" class="btn btn-warning" ng-click="purgeDialog = true">Purge queue\n \'{{name}}\'\n </button>\n <label>Purges all the current messages on the queue.</label>\n </div>\n </div>\n </div>\n\n <div hawtio-confirm-dialog="deleteDialog"\n title="Confirm delete queue"\n ok-button-text="Delete"\n cancel-button-text="Cancel"\n on-ok="deleteDestination()">\n <div class="dialog-body">\n <p>You are about to delete the <b>{{name}}</b> queue</p>\n <p>This operation cannot be undone so please be careful.</p>\n </div>\n </div>\n\n <div hawtio-confirm-dialog="purgeDialog"\n title="Confirm purge queue"\n ok-button-text="Purge"\n cancel-button-text="Cancel"\n on-ok="purgeDestination()">\n <div class="dialog-body">\n <p>You are about to purge the <b>{{name}}</b> queue</p>\n <p>This operation cannot be undone so please be careful.</p>\n </div>\n </div>\n\n</div>\n'),e.put("plugins/activemq/html/deleteTopic.html",'<div ng-controller="ActiveMQ.DestinationController">\n <div class="row">\n <div class="control-group">\n <div class="alert alert-warning">\n <span class="pficon-layered">\n <span class="pficon pficon-warning-triangle"></span>\n <span class="pficon pficon-warning-exclamation"></span>\n </span>\n <strong>Warning:</strong> this operation cannot be undone. Please be careful!\n </div>\n </div>\n </div>\n\n <div class="row">\n <div class="col-md-12">\n <div class="control-group">\n <button type="submit" class="btn btn-warning" ng-click="deleteDialog = true">Delete topic\n \'{{name}}\'\n </button>\n <label>This will remove the topic completely.</label>\n </div>\n </div>\n </div>\n\n <div hawtio-confirm-dialog="deleteDialog"\n title="Confirm delete topic"\n ok-button-text="Delete"\n cancel-button-text="Cancel"\n on-ok="deleteDestination()">\n <div class="dialog-body">\n <p>You are about to delete the <b>{{name}}</b> topic</p>\n <p>This operation cannot be undone so please be careful.</p>\n </div>\n </div>\n\n</div>\n'),e.put("plugins/activemq/html/durableSubscribers.html",'<div ng-controller="ActiveMQ.DurableSubscriberController">\n\n <div class="row">\n <div class="col-md-12">\n <div class="pull-right">\n <form class="form-inline">\n <button class="btn btn-default" ng-click="createSubscriberDialog.open()"\n hawtio-show object-name="{{workspace.selection.objectName}}" method-name="createDurableSubscriber"\n title="Create durable subscriber">\n <i class="fa fa-plus"></i> Create\n </button>\n <button class="btn btn-default" ng-click="deleteSubscriberDialog.open()"\n hawtio-show object-name="{{$scope.gridOptions.selectedItems[0]._id}}" method-name="destroy"\n title="Destroy durable subscriber" ng-disabled="gridOptions.selectedItems.length != 1">\n <i class="fa fa-exclamation"></i> Destroy\n </button>\n <button class="btn btn-default" ng-click="refresh()"\n title="Refreshes the list of subscribers">\n <i class="fa fa-refresh"></i>\n </button>\n </form>\n </div>\n </div>\n </div>\n\n <div class="row">\n <div class="gridStyle" ng-grid="gridOptions"></div>\n </div>\n\n <div modal="createSubscriberDialog.show">\n <form name="createSubscriber" class="form-horizontal no-bottom-margin" ng-submit="doCreateSubscriber(clientId, subscriberName, topicName, subSelector)">\n <div class="modal-header"><h4>Create Durable Subscriber</h4></div>\n <div class="modal-body">\n <label>Client Id: </label>\n <input name="clientId" class="input-xlarge" type="text" ng-model="clientId" required>\n <label>Subscriber name: </label>\n <input name="subscriberName" class="input-xlarge" type="text" ng-model="subscriberName" required>\n <label>Topic name: </label>\n <input name="topicName" class="input-xlarge" type="text" ng-model="topicName" required typeahead="title for title in topicNames($viewValue) | filter:$viewValue" typeahead-editable=\'true\'>\n <label>Selector: </label>\n <input name="subSelector" class="input-xlarge" type="text" ng-model="subSelector">\n </div>\n <div class="modal-footer">\n <input class="btn btn-success" type="submit" value="Create">\n <input class="btn btn-primary" type="button" ng-click="createSubscriberDialog.close()" value="Cancel">\n </div>\n </form>\n </div>\n\n <div hawtio-slideout="showSubscriberDialog.show" title="Details">\n <div class="dialog-body">\n\n <div class="row">\n <div class="pull-right">\n <form class="form-inline">\n\n <button class="btn btn-danger" ng-disabled="showSubscriberDialog.subscriber.Status == \'Active\'"\n ng-click="deleteSubscriberDialog.open()"\n title="Delete subscriber">\n <i class="fa fa-remove"></i> Delete\n </button>\n\n <button class="btn btn-default" ng-click="showSubscriberDialog.close()" title="Close this dialog">\n <i class="fa fa-remove"></i> Close\n </button>\n\n </form>\n </div>\n </div>\n\n <div class="row">\n <div class="expandable-body well">\n <table class="table table-condensed table-striped">\n <thead>\n <tr>\n <th>Property</th>\n <th>Value</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td class="property-name">Client Id</td>\n <td class="property-value">{{showSubscriberDialog.subscriber["ClientId"]}}</td>\n </tr>\n <tr>\n <td class="property-name">Subscription Name</td>\n <td class="property-value">{{showSubscriberDialog.subscriber["SubscriptionName"]}}</td>\n </tr>\n <tr>\n <td class="property-name">Topic Name</td>\n <td class="property-value">{{showSubscriberDialog.subscriber["DestinationName"]}}</td>\n </tr>\n <tr>\n <td class="property-name">Selector</td>\n <td class="property-value">{{showSubscriberDialog.subscriber["Selector"]}}</td>\n </tr>\n <tr>\n <td class="property-name">Status</td>\n <td class="property-value">{{showSubscriberDialog.subscriber.Status}}</td>\n </tr>\n <tr>\n <td class="property-name">Enqueue Counter</td>\n <td class="property-value">{{showSubscriberDialog.subscriber["EnqueueCounter"]}}</td>\n </tr>\n <tr>\n <td class="property-name">Dequeue Counter</td>\n <td class="property-value">{{showSubscriberDialog.subscriber["DequeueCounter"]}}</td>\n </tr>\n <tr>\n <td class="property-name">Dispatched Counter</td>\n <td class="property-value">{{showSubscriberDialog.subscriber["DispatchedCounter"]}}</td>\n </tr>\n <tr>\n <td class="property-name">Pending Size</td>\n <td class="property-value">{{showSubscriberDialog.subscriber["PendingQueueSize"]}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n </div>\n\n </div>\n\n <div hawtio-confirm-dialog="deleteSubscriberDialog.show" ok-button-text="Yes" cancel-button-text="No" on-ok="deleteSubscribers()">\n <div class="dialog-body">\n <p>Are you sure you want to delete the subscriber</p>\n </div>\n </div>\n\n</div>'),e.put("plugins/activemq/html/jobs.html",'<div ng-controller="ActiveMQ.JobSchedulerController">\n\n <div class="row">\n <div class="col-md-12">\n <div class="pull-right">\n <form class="form-inline">\n <button class="btn btn-default" ng-disabled="!gridOptions.selectedItems.length"\n hawtio-show object-name="{{workspace.selection.objectName}}" method-name="removeJob"\n ng-click="deleteJobsDialog.open()"\n title="Delete the selected jobs">\n <i class="fa fa-remove"></i> Delete\n </button>\n <button class="btn btn-default" ng-click="refresh()"\n title="Refreshes the list of subscribers">\n <i class="fa fa-refresh"></i>\n </button>\n </form>\n </div>\n </div>\n </div>\n\n <div class="row">\n <div class="gridStyle" ng-grid="gridOptions"></div>\n </div>\n\n <div hawtio-confirm-dialog="deleteJobsDialog.show" ok-button-text="Yes" cancel-button-text="No" on-ok="deleteJobs()">\n <div class="dialog-body">\n <p>Are you sure you want to delete the jobs</p>\n </div>\n </div>\n\n</div>'),e.put("plugins/activemq/html/layoutActiveMQTree.html",'<script type="text/ng-template" id="ActiveMQTreeHeader.html">\n <div class="tree-header" ng-controller="ActiveMQ.TreeHeaderController">\n <div class="left">\n </div>\n <div class="right">\n <i class="fa fa-chevron-down clickable"\n title="Expand all nodes"\n ng-click="expandAll()"></i>\n <i class="fa fa-chevron-up clickable"\n title="Unexpand all nodes"\n ng-click="contractAll()"></i>\n </div>\n </div>\n</script>\n\n<hawtio-pane position="left" width="300" header="ActiveMQTreeHeader.html">\n <div id="tree-container"\n ng-controller="Jmx.MBeansController">\n <div id="activemqtree"\n ng-controller="ActiveMQ.TreeController"></div>\n </div>\n</hawtio-pane>\n<div class="row">\n <!--\n <ng-include src="\'plugins/jmx/html/subLevelTabs.html\'"></ng-include>\n -->\n <div id="properties" ng-view></div>\n</div>\n'),e.put("plugins/activemq/html/preferences.html",'<div ng-controller="ActiveMQ.PreferencesController">\n <div hawtio-form-2="config" entity="entity"></div>\n</div>\n'),e.put("plugins/camel/html/attributeToolBarContext.html",'<div class="row">\n <div class="col-md-6" ng-controller="Camel.AttributesToolBarController">\n <div class="control-group">\n <button class="btn btn-default" ng-disabled="!anySelectionHasState([\'stop\', \'suspend\'])" ng-click="start()"><i\n class="fa fa-play-circle"></i> Start\n </button>\n <button class="btn btn-default" ng-disabled="!anySelectionHasState(\'start\')" ng-click="pause()"><i class="fa fa-pause"></i>\n Pause\n </button>\n <button class="btn btn-default" ng-disabled="!anySelectionHasState([\'start\', \'suspend\'])" ng-click="deleteDialog = true"><i\n class="fa fa-remove"></i> Destroy\n </button>\n </div>\n\n <div hawtio-confirm-dialog="deleteDialog"\n ok-button-text="Delete"\n on-ok="stop()">\n <div class="dialog-body">\n <p>You are about to delete this Camel Context.</p>\n <p>This operation cannot be undone so please be careful.</p>\n </div>\n </div>\n\n </div>\n <div class="col-md-6">\n <div class="control-group">\n <input class="col-md-12 search-query" type="text" ng-model="$parent.gridOptions.filterOptions.filterText" placeholder="Filter...">\n </div>\n </div>\n</div>\n'),
|
|
25812
|
25812
|
e.put("plugins/camel/html/attributeToolBarRoutes.html",'<div class="row">\n <div class="col-md-6">\n <div class="control-group" ng-controller="Camel.AttributesToolBarController">\n <button class="btn btn-default" ng-disabled="!anySelectionHasState([\'stop\', \'suspend\'])" ng-click="start()"><i class="fa fa-play-circle"></i> Start</button>\n <button class="btn btn-default" ng-disabled="!anySelectionHasState(\'start\')" ng-click="pause()"><i class="fa fa-pause"></i> Pause</button>\n <button class="btn btn-default" ng-disabled="!anySelectionHasState([\'start\', \'suspend\'])" ng-click="stop()"><i class="fa fa-off"></i> Stop</button>\n <button class="btn btn-default" ng-disabled="!everySelectionHasState(\'stop\')" ng-click="delete()"><i class="fa fa-remove"></i> Delete</button>\n </div>\n </div>\n <div class="col-md-6">\n <div class="control-group">\n <input type="text" class="col-md-12 search-query" ng-model="$parent.gridOptions.filterOptions.filterText" placeholder="Filter...">\n </div>\n </div>\n</div>\n'),e.put("plugins/camel/html/blocked.html",'<div class="row-fluid" ng-controller="Camel.BlockedExchangesController">\n\n <div ng-show="initDone">\n\n <div class="row-fluid">\n <div class="pull-right">\n <hawtio-filter ng-model="gridOptions.filterOptions.filterText"\n placeholder="Filter..."></hawtio-filter>\n </div>\n <div class="span6">\n <div class="pull-right">\n <form class="form-inline">\n <button class="btn btn-default" ng-disabled="gridOptions.selectedItems.length === 0" ng-click="unblockDialog = true"\n title="Unblock Exchange" data-placement="bottom">\n <i class="icon-play"></i> Unblock\n </button>\n </form>\n </div>\n </div>\n </div>\n </div>\n\n <div class="row-fluid">\n <table class="table table-condensed table-striped" hawtio-simple-table="gridOptions"></table>\n </div>\n\n <div ng-hide="initDone">\n <i class="icon-spinner icon-spin centered"></i>\n </div>\n\n <div hawtio-confirm-dialog="unblockDialog" ok-button-text="Unblock" cancel-button-text="Cancel" on-ok="doUnblock()"\n title="Unblock Exchange">\n <div class="dialog-body">\n <p>You are about to unblock the selected thread.</p>\n <p>This operation cannot be undone so please be careful.</p>\n </div>\n </div>\n\n</div>\n\n'),e.put("plugins/camel/html/breadcrumbBar.html",'<div ng-hide="inDashboard" class="logbar logbar-wiki" ng-controller="Camel.BreadcrumbBarController">\n <div class="wiki logbar-container">\n <ul class="nav nav-tabs">\n <li class="" >\n <a class="breadcrumb-link">\n <span class="contained c-medium">Camel Contexts</span>\n </a>\n </li>\n <li class="dropdown" ng-repeat="breadcrumb in breadcrumbs">\n <a ng-show="breadcrumb.items.length > 0" href="" class="breadcrumb-link dropdown-toggle" data-toggle="dropdown"\n data-placement="bottom" title="{{breadcrumb.tooltip}}">\n {{breadcrumb.name}}\n <span class="caret"></span>\n </a>\n <ul class="dropdown-menu">\n <li ng-repeat="item in breadcrumb.items">\n <a ng-href="{{item.link}}{{hash}}"\n title="Switch to {{item.name}} "\n data-placement="bottom">\n {{item.name}}</a>\n </li>\n </ul>\n </li>\n <li class="pull-right" ng-show="treeViewLink" title="Switch to the tree based explorer view">\n <a href="{{treeViewLink}}"><i class="fa fa-resize-full"></i></a>\n </li>\n </ul>\n </div>\n</div>\n'),e.put("plugins/camel/html/browseEndpoint.html",'<div ng-controller="Camel.BrowseEndpointController">\n <div ng-hide="isJmxTab">\n <ng-include src="\'plugins/camel/html/breadcrumbBar.html\'"></ng-include>\n </div>\n <div ng-class="{\'wiki-fixed\' : !isJmxTab}">\n <div class="row">\n <div class="col-md-6">\n <input class="search-query col-md-12" type="text" ng-model="gridOptions.filterOptions.filterText"\n placeholder="Filter messages">\n </div>\n <div class="col-md-6">\n <div class="pull-right">\n <form class="form-inline">\n <button class="btn btn-default" ng-disabled="!gridOptions.selectedItems.length" ng-click="forwardDialog.open()"\n hawtio-show object-name="{{workspace.selection.objectName}}" method-name="sendBodyAndHeaders"\n title="Forward the selected messages to another endpoint" data-placement="bottom">\n <i class="fa fa-forward"></i> Forward\n </button>\n <button class="btn btn-default" ng-click="refresh()"\n title="Refreshes the list of messages">\n <i class="fa fa-refresh"></i>\n </button>\n </form>\n </div>\n </div>\n </div>\n\n\n <div class="row">\n <table class="table table-striped" hawtio-simple-table="gridOptions"></table>\n </div>\n\n <div hawtio-slideout="showMessageDetails" title="{{row.id}}">\n <div class="dialog-body">\n\n <div class="row">\n <div class="pull-right">\n <form class="form-horizontal no-bottom-margin">\n <div class="btn-group" hawtio-pager="messages" on-index-change="selectRowIndex"\n row-index="rowIndex"></div>\n <button class="btn btn-default" ng-disabled="!gridOptions.selectedItems.length" ng-click="forwardDialog.open()"\n hawtio-show object-name="{{workspace.selection.objectName}}" method-name="sendBodyAndHeaders"\n title="Forward the selected messages to another endpoint" data-placement="bottom">\n <i class="fa fa-forward"></i> Forward\n </button>\n\n <!-- no need for close button as the hawtio-slideout already have that -->\n\n </form>\n </div>\n </div>\n\n <div class="row">\n <div class="expandable closed">\n <div title="Headers" class="title">\n <i class="expandable-indicator"></i> Headers\n </div>\n <div class="expandable-body well">\n <table class="table table-condensed table-striped">\n <thead>\n <tr>\n <th>Header</th>\n <th>Type</th>\n <th>Value</th>\n </tr>\n </thead>\n <tbody compile="row.headerHtml"></tbody>\n </table>\n </div>\n </div>\n\n <div class="row">\n <div hawtio-editor="row.body" read-only="true" mode="mode"></div>\n </div>\n\n </div>\n\n </div>\n </div>\n </div>\n\n <div modal="forwardDialog.show" close="forwardDialog.close()" options="forwardDialog.options">\n <form class="form-horizontal no-bottom-margin" ng-submit="forwardDialog.close()">\n <div class="modal-header">\n <h4>Forward\n <ng-pluralize count="selectedItems.length"\n when="{\'1\': \'a message\', \'other\': \'messages\'}"></ng-pluralize>\n </h4>\n </div>\n <div class="modal-body">\n <p>Forward\n <ng-pluralize count="selectedItems.length"\n when="{\'1\': \'a message\', \'other\': \'{} messages\'}"></ng-pluralize>\n to: <input type="text" style="width: 100%" ng-model="endpointUri" placeholder="Endpoint URI"\n typeahead="title for title in endpointUris() | filter:$viewValue" typeahead-editable=\'true\'></p>\n </div>\n <div class="modal-footer">\n <input id="submit" class="btn btn-primary add" type="submit" ng-click="forwardMessagesAndCloseForwardDialog()"\n value="Forward">\n <button class="btn btn-warning cancel" type="button" ng-click="forwardDialog.close()">Cancel</button>\n </div>\n </form>\n </div>\n</div>\n'),e.put("plugins/camel/html/browseRoute.html",'<ng-include src="\'plugins/camel/html/browseMessageTemplate.html\'"></ng-include>\n\n<div class="row">\n <table class="table table-striped" hawtio-simple-table="gridOptions"></table>\n <!--\n <div class="gridStyle" hawtio-datatable="gridOptions"></div>\n -->\n</div>\n'),e.put("plugins/camel/html/createEndpoint.html",'<div ng-controller="Camel.EndpointController" ng-switch="hasComponentNames">\n <div ng-switch-when="true">\n <tabs>\n <pane heading="URL">\n <ng-include src="\'plugins/camel/html/createEndpointURL.html\'"></ng-include>\n </pane>\n <pane heading="Components">\n <ng-include src="\'plugins/camel/html/createEndpointWizard.html\'"></ng-include>\n </pane>\n </tabs>\n </div>\n <div ng-switch-default="false">\n <ng-include src="\'plugins/camel/html/createEndpointURL.html\'"></ng-include>\n </div>\n</div>\n'),e.put("plugins/camel/html/createEndpointURL.html",'<form class="form-horizontal">\n <div class="control-group">\n <input class="col-md-12" type="text" size="255" ng-model="endpointName" placeholder="Endpoint URI"/>\n </div>\n <div class="control-group">\n <button type="submit" class="btn btn-info" ng-click="createEndpoint(endpointName)"\n ng-disabled="!endpointName">\n Create endpoint\n </button>\n </div>\n</form>\n'),e.put("plugins/camel/html/createEndpointWizard.html",'<div ng-controller="Camel.EndpointController">\n <form class="form-horizontal">\n <div class="control-group">\n <label class="control-label" for="componentName">Component</label>\n\n <div class="controls">\n <select id="componentName" ng-model="selectedComponentName"\n ng-options="componentName for componentName in componentNames"></select>\n </div>\n </div>\n <div ng-show="selectedComponentName">\n <div class="control-group">\n <label class="control-label" for="endpointPath">Endpoint</label>\n\n <div class="controls">\n <input id="endpointPath" class="col-md-10" type="text" ng-model="endpointPath" placeholder="name"\n typeahead="title for title in endpointCompletions($viewValue) | filter:$viewValue" typeahead-editable=\'true\'\n min-length="1">\n </div>\n </div>\n\n <div simple-form name="formEditor" entity=\'endpointParameters\' data=\'endpointSchema\' schema="schema"></div>\n\n <div class="control-group">\n <div class="controls">\n <button type="submit" class="btn btn-info" ng-click="createEndpointFromData()"\n ng-disabled="!endpointPath || !selectedComponentName">\n Create endpoint\n </button>\n </div>\n </div>\n </div>\n </form>\n</div>\n'),e.put("plugins/camel/html/debug.html",'<div ng-controller="Camel.DebugRouteController" ng-switch="debugging">\n <div ng-switch-when="true">\n <div class="row">\n <div class="col-md-10">\n <div ng-include src="graphView">\n </div>\n </div>\n <div class="col-md-2">\n <div class="btn-toolbar pull-right">\n <div class="btn-group">\n <div ng-switch="hasBreakpoint">\n <button ng-switch-when="true" class="btn btn-default" ng-disabled="!selectedDiagramNodeId"\n ng-click="removeBreakpoint()" title="Remove the breakpoint on the selected node"><i\n class="fa fa-remove"></i>\n </button>\n <button ng-switch-default="false" class="btn btn-default" ng-disabled="!selectedDiagramNodeId"\n ng-click="addBreakpoint()" title="Add a breakpoint on the selected node"><i class="fa fa-plus"></i>\n </button>\n </div>\n </div>\n <div class="btn-group">\n <button class="btn btn-default" type="submit" ng-click="stopDebugging()" title="Stops the debugger">Close\n </button>\n </div>\n </div>\n <div class="btn-toolbar pull-right">\n <div class="btn-group">\n <button class="btn btn-default" ng-click="step()" ng-disabled="!stopped" title="Step into the next node"><img\n ng-src="img/icons/camel/step.gif"></button>\n <button class="btn btn-default" ng-click="resume()" ng-disabled="!stopped" title="Resume running"><img\n ng-src="img/icons/camel/resume.gif"></button>\n <button class="btn btn-default" ng-click="suspend()" ng-disabled="stopped"\n title="Suspend all threads in this route"><img ng-src="img/icons/camel/suspend.gif"></button>\n </div>\n </div>\n <div class="col-md-12 well">\n <form>\n <div class="table-header">Breakpoints:</div>\n <ul>\n <li class="table-row" ng-repeat="b in breakpoints">\n {{b}}\n </li>\n </ul>\n <div class="table-row">Suspended:</div>\n <ul>\n <li class="table-row" ng-repeat="b in suspendedBreakpoints">\n {{b}}\n </li>\n </ul>\n </form>\n </div>\n </div>\n </div>\n\n <!-- slider to always show the current debugged message -->\n <div hawtio-slideout="true" title="Breakpoint suspended at {{row.toNode}}" close="false" top="60%" height="40%">\n <div class="dialog-body">\n\n <div title="ID" class="title">\n {{row.id}}\n </div>\n\n <div class="row">\n <div class="expandable closed">\n <div title="Headers" class="title">\n <i class="expandable-indicator"></i> Headers\n </div>\n <div class="expandable-body well">\n <table class="table table-condensed table-striped">\n <thead>\n <tr>\n <th>Header</th>\n <th>Type</th>\n <th>Value</th>\n </tr>\n </thead>\n <tbody compile="row.headerHtml"></tbody>\n </table>\n </div>\n </div>\n\n <div title="Body" class="row">\n <div>Body type: <span ng-bind="row.bodyType"></span></div>\n <div hawtio-editor="row.body" read-only="true" mode="mode"></div>\n </div>\n\n </div>\n\n </div>\n </div>\n\n </div>\n <div class="col-md-12 well" ng-switch-default="false">\n <form>\n <p>Debugging allows you to step through camel routes to diagnose issues</p>\n\n <button class="btn btn-info" type="submit" ng-click="startDebugging()">Start debugging</button>\n </form>\n </div>\n</div>'),e.put("plugins/camel/html/endpointRuntimeRegistry.html",'<div class="row" ng-controller="Camel.EndpointRuntimeRegistryController">\n\n <div ng-show="selectedMBean">\n\n <div class="row" ng-show="data.length > 0">\n <div class="pull-right">\n <form class="form-inline no-bottom-margin">\n <fieldset>\n <div class="control-group inline-block">\n <input type="text" class="search-query" placeholder="Filter..."\n ng-model="gridOptions.filterOptions.filterText">\n </div>\n </fieldset>\n </form>\n </div>\n </div>\n\n <div class="row" ng-show="data.length > 0">\n <table class="table table-condensed table-striped" hawtio-simple-table="gridOptions"></table>\n </div>\n <div class="row well" ng-show="data.length == 0">\n <form>\n <p>There are no endpoints currently in use in this CamelContext.</p>\n </form>\n </div>\n </div>\n\n <div ng-hide="selectedMBean">\n <p class="text-center"><i class="fa fa-spinner fa-spin"></i></p>\n </div>\n\n</div>\n\n'),e.put("plugins/camel/html/inflight.html",'<div class="row-fluid" ng-controller="Camel.InflightController">\n\n <div ng-show="initDone">\n\n <div class="row-fluid">\n <div class="pull-right">\n <hawtio-filter ng-model="gridOptions.filterOptions.filterText"\n placeholder="Filter..."></hawtio-filter>\n </div>\n </div>\n\n <div class="row-fluid">\n <table class="table table-condensed table-striped" hawtio-simple-table="gridOptions"></table>\n </div>\n\n </div>\n\n <div ng-hide="initDone">\n <p class="text-center"><i class="fa fa-spinner fa-spin"></i></p>\n </div>\n\n</div>\n\n'),e.put("plugins/camel/html/layoutCamelTree.html",'\n<script type="text/ng-template" id="camelTreeHeader.html">\n <div class="camel tree-header" ng-controller="Camel.TreeHeaderController">\n\n <!--\n TODO - changes to the tree made this filter not work\n <div class="left">\n <div class="section-filter">\n <input id="camelContextIdFilter"\n class="search-query"\n type="text"\n ng-model="contextFilterText"\n title="filter camel context IDs"\n placeholder="Filter...">\n <i class="fa fa-remove clickable"\n title="Clear filter"\n ng-click="contextFilterText = \'\'"></i>\n </div>\n </div>\n -->\n\n <div class="right">\n <i class="fa fa-chevron-down clickable"\n title="Expand all nodes"\n ng-click="expandAll()"></i>\n <i class="fa fa-chevron-up clickable"\n title="Unexpand all nodes"\n ng-click="contractAll()"></i>\n </div>\n </div>\n</script>\n\n<hawtio-pane position="left" width="300" header="camelTreeHeader.html">\n <div id="tree-container" ng-controller="Jmx.MBeansController">\n <div class="camel-tree" ng-controller="Camel.TreeController">\n <div id="cameltree"></div>\n </div>\n </div>\n</hawtio-pane>\n<div class="row">\n <!--\n <ng-include src="\'plugins/jmx/html/subLevelTabs.html\'"></ng-include>\n -->\n <div id="properties" ng-view></div>\n</div>\n'),e.put("plugins/camel/html/nodePropertiesEdit.html",'<div class="row-fluid">\n\n <!-- the label and input fields needs to be wider -->\n <style>\n input, textarea, .uneditable-input {\n width: 600px;\n }\n input, textarea, .editable-input {\n width: 600px;\n }\n\n .form-horizontal .control-label {\n width: 180px;\n }\n\n .form-horizontal .controls {\n margin-left: 200px;\n }\n </style>\n\n <h3>\n <img src="{{icon}}" width="48" height="48" ng-show="icon"/> {{model.title}}\n <span style="margin-left: 10px" ng-repeat="label in labels track by $index" class="pod-label badge" title="{{label}}">{{label}}</span>\n </h3>\n\n <div simple-form name="formViewer" mode=\'edit\' entity=\'nodeData\' data=\'model\' schema="schema"\n showhelp="!hideHelp"></div>\n</div>\n'),e.put("plugins/camel/html/nodePropertiesView.html",'<div class="row-fluid">\n\n <!-- the label and input fields needs to be wider -->\n <style>\n input, textarea, .uneditable-input {\n width: 600px;\n }\n\n input, textarea, .editable-input {\n width: 600px;\n }\n\n .form-horizontal .control-label {\n width: 180px;\n }\n\n .form-horizontal .controls {\n margin-left: 200px;\n }\n </style>\n\n <h3>\n <img src="{{icon}}" width="48" height="48" ng-show="icon"/> {{model.title}}\n <span style="margin-left: 10px" ng-repeat="label in labels track by $index" class="pod-label badge" title="{{label}}">{{label}}</span>\n </h3>\n\n <div simple-form name="formViewer" mode=\'view\' entity=\'nodeData\' data=\'model\' schema="schema"\n showhelp="!hideHelp" showempty="showEntity"></div>\n</div>\n'),e.put("plugins/camel/html/preferences.html",'<div ng-controller="Camel.PreferencesController">\n <div hawtio-form-2="config" entity="entity"></div>\n</div>\n'),e.put("plugins/camel/html/profileRoute.html",'<div class="row" ng-controller="Camel.ProfileRouteController">\n\n <div ng-show="initDone">\n\n <div class="row-fluid">\n <div class="pull-right">\n <hawtio-filter ng-model="gridOptions.filterOptions.filterText"\n placeholder="Filter..."></hawtio-filter>\n </div>\n </div>\n\n <div class="row-fluid">\n <table class="table table-condensed table-striped" hawtio-simple-table="gridOptions"></table>\n </div>\n\n </div>\n\n <div ng-hide="initDone">\n <p class="text-center"><i class="fa fa-spinner fa-spin"></i></p>\n </div>\n\n</div>\n\n'),e.put("plugins/camel/html/properties.html",'<div ng-controller="Camel.PropertiesController">\n\n <div class="control-group inline-block">\n <form class="form-inline no-bottom-margin">\n <label>Hide Documentation:\n <input type="checkbox" ng-model="hideHelp"\n title="Hide documentation for the options"/>\n </label>\n <label>Hide Default:\n <input type="checkbox" ng-model="hideDefault"\n title="Hide options with default values"/>\n </label>\n <label>Hide Unused:\n <input type="checkbox" ng-model="hideUnused"\n title="Hide options with unused/empty values"/>\n </label>\n </form>\n </div>\n\n <div ng-include="viewTemplate"></div>\n</div>\n'),e.put("plugins/camel/html/propertiesComponent.html",'<div ng-controller="Camel.PropertiesComponentController">\n\n <div class="control-group inline-block">\n <form class="form-inline no-bottom-margin">\n <label>Hide Documentation:\n <input type="checkbox" ng-model="hideHelp"\n title="Hide documentation for the options"/>\n </label>\n <label>Hide Default:\n <input type="checkbox" ng-model="hideDefault"\n title="Hide options with default values"/>\n </label>\n <label>Hide Unused:\n <input type="checkbox" ng-model="hideUnused"\n title="Hide options with unused/empty values"/>\n </label>\n </form>\n </div>\n\n <div ng-include="viewTemplate"></div>\n</div>\n'),e.put("plugins/camel/html/propertiesDataFormat.html",'<div ng-controller="Camel.PropertiesDataFormatController">\n\n <div class="control-group inline-block">\n <form class="form-inline no-bottom-margin">\n <label>Hide Documentation:\n <input type="checkbox" ng-model="hideHelp"\n title="Hide documentation for the options"/>\n </label>\n <label>Hide Default:\n <input type="checkbox" ng-model="hideDefault"\n title="Hide options with default values"/>\n </label>\n <label>Hide Unused:\n <input type="checkbox" ng-model="hideUnused"\n title="Hide options with unused/empty values"/>\n </label>\n </form>\n </div>\n\n <div ng-include="viewTemplate"></div>\n</div>\n'),e.put("plugins/camel/html/propertiesEndpoint.html",'<div ng-controller="Camel.PropertiesEndpointController">\n\n <div class="control-group inline-block">\n <form class="form-inline no-bottom-margin">\n <label>Hide Documentation:\n <input type="checkbox" ng-model="hideHelp"\n title="Hide documentation for the options"/>\n </label>\n <label>Hide Default:\n <input type="checkbox" ng-model="hideDefault"\n title="Hide options with default values"/>\n </label>\n <label>Hide Unused:\n <input type="checkbox" ng-model="hideUnused"\n title="Hide options with unused/empty values"/>\n </label>\n </form>\n </div>\n\n <div ng-include="viewTemplate"></div>\n</div>\n'),e.put("plugins/camel/html/restRegistry.html",'<div class="row" ng-controller="Camel.RestServiceController">\n\n <div ng-show="selectedMBean">\n\n <div class="row" ng-show="data.length > 0">\n <div class="pull-right">\n <form class="form-inline no-bottom-margin">\n <fieldset>\n <div class="control-group inline-block">\n <input type="text" class="search-query" placeholder="Filter..."\n ng-model="gridOptions.filterOptions.filterText">\n </div>\n </fieldset>\n </form>\n </div>\n </div>\n\n <div class="row" ng-show="data.length > 0">\n <table class="table table-condensed table-striped" hawtio-simple-table="gridOptions"></table>\n </div>\n <div class="row well" ng-show="data.length == 0">\n <form>\n <p>There are no Rest Services registered in this CamelContext.</p>\n </form>\n </div>\n </div>\n\n <div ng-hide="selectedMBean">\n <p class="text-center"><i class="fa fa-spinner fa-spin"></i></p>\n </div>\n\n</div>\n\n'),e.put("plugins/camel/html/routeMetrics.html",'<div class="row" ng-controller="Camel.RouteMetricsController">\n\n <div class="row">\n <div class="pull-right">\n <form class="form-inline no-bottom-margin">\n <fieldset>\n <div class="control-group inline-block">\n <input type="text" class="search-query" placeholder="Filter..." ng-model="filterText">\n </div>\n </fieldset>\n </form>\n </div>\n </div>\n\n <div class="row" ng-show="!initDone">\n <p class="text-center"><i class="fa fa-spinner fa-spin"></i></p>\n </div>\n\n <div class="col-md-8 centered well" ng-show="initDone && metricDivs.length === 0">\n <form>\n This Camel context has no route metrics data.\n </form>\n </div>\n\n <!-- div to contain the graphs -->\n <div class="metricsWatcher container mainContent">\n <div id="{{metric.id}}" class="row" ng-repeat="metric in metricDivs track by $index" style="{{filterByRoute(metric)}}"></div>\n </div>\n\n</div>\n\n'),e.put("plugins/camel/html/routes.html",'<style>\n\n #node-CLOSED rect {\n stroke-width: 1px;\n fill: #f88;\n }\n\n .node:hover,\n .node > *:hover,\n rect > *:hover {\n cursor: pointer;\n opacity: 0.6;\n }\n\n path.edge {\n fill: none;\n stroke: #666;\n stroke-width: 3px;\n }\n\n .edge:hover {\n cursor: pointer;\n opacity: 0.4;\n }\n\n text.counter {\n stroke: #080;\n }\n\n text.inflight {\n stroke: #08f;\n }\n</style>\n<div ng-class="{\'wiki-fixed\' : !isJmxTab}" id="canvas" ng-controller="Camel.RouteController">\n <!--\n <div ng-hide="isJmxTab">\n <ng-include src="\'plugins/camel/html/breadcrumbBar.html\'"></ng-include>\n </div>\n -->\n <svg class="camel-diagram" width=0 height=0>\n <defs>\n <marker id="arrowhead"\n viewBox="0 0 10 10"\n refX="8"\n refY="5"\n markerUnits="strokeWidth"\n markerWidth="4"\n markerHeight="3"\n orient="auto"\n style="fill: #333">\n <path d="M 0 0 L 10 5 L 0 10 z"></path>\n </marker>\n\n <filter id="drop-shadow" width="300%" height="300%">\n <feGaussianBlur in="SourceAlpha" result="blur-out" stdDeviation="19"/>\n <feOffset in="blur-out" result="the-shadow" dx="2" dy="2"/>\n <feComponentTransfer xmlns="http://www.w3.org/2000/svg">\n <feFuncA type="linear" slope="0.2"/>\n </feComponentTransfer>\n <feMerge xmlns="http://www.w3.org/2000/svg">\n <feMergeNode/>\n <feMergeNode in="SourceGraphic"/>\n </feMerge>\n </filter>\n <linearGradient id="rect-gradient" x1="0%" y1="0%" x2="0%" y2="100%">\n <stop offset="0%" style="stop-color:rgb(254,254,255);stop-opacity:1"/>\n <stop offset="100%" style="stop-color:rgb(247,247,255);stop-opacity:1"/>\n </linearGradient>\n <linearGradient id="rect-select-gradient" x1="0%" y1="0%" x2="0%" y2="100%">\n <stop offset="0%" style="stop-color: #ffffa0; stop-opacity: 0.7"/>\n <stop offset="100%" style="stop-color: #f0f0a0; stop-opacity: 0.7"/>\n </linearGradient>\n </defs>\n </svg>\n</div>\n\n'),e.put("plugins/camel/html/sendMessage.html",'<div ng-controller="Camel.SendMessageController">\n\n <div class="tabbable" ng-model="tab">\n\n <div value="compose" class="tab-pane" title="Compose">\n <div class="row">\n <span ng-show="noCredentials" class="alert">\n No credentials set for endpoint! Please set your username and password in the <a\n href="" ng-click="openPrefs()">Preferences</a> page\n </span>\n\n <form class="form-inline pull-right">\n <button class="btn btn-default" ng-click="addHeader()" title="Add a new message header"><i\n class="fa fa-plus"></i> Header\n </button>\n <button type="submit" class="btn btn-primary" ng-click="sendMessage()">Send message</button>\n </form>\n </div>\n\n <form class="form-inline bottom-margin" ng-submit="addHeader()">\n <ol class="zebra-list header-list">\n <div class="row">\n <li ng-repeat="header in headers">\n <div class="col-md-4">\n <input type="text" style="width: 100%" class="headerName"\n ng-model="header.name"\n typeahead="completion for completion in defaultHeaderNames() | filter:$viewValue"\n typeahead-editable=\'true\'\n placeholder="Header name">\n </div>\n <div class="col-md-6">\n <input type="text" style="width: 100%" ng-model="header.value"\n placeholder="Value of the message header">\n </div>\n <div class="col-md-2">\n <button type="submit" class="btn btn-default" title="Add a new message header">\n <i class="fa fa-plus"></i>\n </button>\n <button type="button" ng-click="removeHeader(header)" class="btn btn-default" title="Removes this message header">\n <i class="fa fa-remove"></i>\n </button>\n </div>\n </li>\n </div>\n </ol>\n </form>\n\n <div class="row">\n <form class="form-inline">\n <div class="controls">\n <label class="control-label" for="sourceFormat" title="The text format to use for the message payload">Payload\n format: </label>\n <select ng-model="codeMirrorOptions.mode.name" id="sourceFormat">\n <option value="javascript">JSON</option>\n <option value="text" selected>Plain text</option>\n <option value="properties">Properties</option>\n <option value="xml">XML</option>\n </select>\n\n <button class="btn btn-default" ng-click="autoFormat()"\n title="Automatically pretty prints the message so its easier to read">Auto format\n </button>\n </div>\n </form>\n </div>\n\n <div class="row">\n <div hawtio-editor="message" mode="codeMirrorOptions.mode.name"></div>\n <!--\n <textarea ui-codemirror="codeMirrorOptions" ng-model="message"></textarea>\n -->\n </div>\n </div>\n\n </div>\n</div>\n'),e.put("plugins/camel/html/source.html",'<div class="form-horizontal" ng-controller="Camel.SourceController">\n <div class="row" ng-if="showUpdateButton">\n <div class="col-md-12">\n <button class="pull-right btn btn-primary"\n hawtio-show object-name="{{getSelectionCamelContextMBean(workspace)}}" method-name="addOrUpdateRoutesFromXml"\n ng-click="saveRouteXml()"><i class="fa fa-save"></i> Update</button>\n </div>\n </div>\n <p></p>\n <div class="row">\n <div class="col-md-12">\n <div hawtio-editor="source" mode="mode"></div>\n </div>\n </div>\n</div>\n'),e.put("plugins/camel/html/traceRoute.html",'<div ng-controller="Camel.TraceRouteController">\n <div class="col-md-12 well" ng-hide="tracing">\n <form>\n <p>Tracing allows you to send messages to a route and then step through and see the messages flow through a route\n to aid debugging and to help diagnose issues.</p>\n\n <p>Once you start tracing, you can send messages to the input endpoints, then come back to this page and see the\n flow of messages through your route.</p>\n\n <p>As you click on the message table, you can see which node in the flow it came through; moving the selection up\n and down in the message table lets you see the flow of the message through the diagram.</p>\n\n <button class="btn btn-info" type="submit" ng-click="startTracing()">Start tracing</button>\n </form>\n </div>\n <div ng-show="tracing">\n\n <form>\n <button class="btn btn-info pull-right" type="submit" ng-click="stopTracing()">Stop tracing</button>\n </form>\n <div ng-include src="graphView">\n </div>\n\n <form>\n <button class="btn btn-info pull-right" type="submit" ng-click="clear()">Clear messages</button>\n </form>\n <div> </div>\n\n <!-- table and slider to show the traced messages -->\n <div class="row">\n <table class="table table-striped" hawtio-simple-table="gridOptions"></table>\n </div>\n\n <div hawtio-slideout="showMessageDetails" title="{{row.id}}" top="60%" height="40%">\n <div class="dialog-body">\n\n <div class="row">\n <div class="pull-right">\n <form class="form-horizontal no-bottom-margin">\n <div class="btn-group" hawtio-pager="messages" on-index-change="selectRowIndex"\n row-index="rowIndex"></div>\n\n <!-- no need for close button as the hawtio-slideout already have that -->\n\n </form>\n </div>\n </div>\n\n <div class="row">\n <div class="expandable closed">\n <div title="Headers" class="title">\n <i class="expandable-indicator"></i> Headers\n </div>\n <div class="expandable-body well">\n <table class="table table-condensed table-striped">\n <thead>\n <tr>\n <th>Header</th>\n <th>Type</th>\n <th>Value</th>\n </tr>\n </thead>\n <tbody compile="row.headerHtml"></tbody>\n </table>\n </div>\n </div>\n\n <div class="row">\n <div>Body type: <span ng-bind="row.bodyType"></span></div>\n <div hawtio-editor="row.body" read-only="true" mode="mode"></div>\n </div>\n\n </div>\n\n </div>\n </div>\n\n </div>\n\n</div>\n'),
|
|
25813
|
25813
|
e.put("plugins/camel/html/typeConverter.html",'<div class="row" ng-controller="Camel.TypeConverterController">\n\n <!-- the dl need to be wider so we can see the labels -->\n <style>\n .dl-horizontal dt {\n width: 260px;\n }\n .dl-horizontal dd {\n margin-left: 280px;\n }\n </style>\n\n <div ng-show="selectedMBean">\n\n <div class="row">\n\n <div class="pull-right">\n <form class="form-inline no-bottom-margin">\n <fieldset>\n <div class="controls control-group inline-block controls-row">\n <div class="btn-group">\n <button\n class="btn btn-default" ng-click="resetStatistics()" title="Reset statistics">\n <i class="fa fa-refresh"></i></button>\n <button\n ng-disabled="mbeanAttributes.StatisticsEnabled"\n class="btn btn-default" ng-click="enableStatistics()" title="Enable statistics">\n <i class="fa fa-play-circle"></i></button>\n <button\n ng-disabled="!mbeanAttributes.StatisticsEnabled"\n class="btn btn-default" ng-click="disableStatistics()" title="Disable statistics">\n <i class="fa fa-power-off"></i></button>\n </div>\n </div>\n </fieldset>\n </form>\n </div>\n <div>\n <dl class="dl-horizontal">\n <dt>Number of Type Converters</dt>\n <dd>{{mbeanAttributes.NumberOfTypeConverters}}</dd>\n <dt># Attempts</dt>\n <dd>{{mbeanAttributes.AttemptCounter}}</dd>\n <dt># Hit</dt>\n <dd>{{mbeanAttributes.HitCounter}}</dd>\n <dt># Miss</dt>\n <dd>{{mbeanAttributes.MissCounter}}</dd>\n <dt># Failed</dt>\n <dd>{{mbeanAttributes.FailedCounter}}</dd>\n <dt>Statistics Enabled</dt>\n <dd>{{mbeanAttributes.StatisticsEnabled}}</dd>\n </dl>\n </div>\n\n </div>\n\n <div class="row">\n <div class="pull-right">\n <form class="form-inline no-bottom-margin">\n <fieldset>\n <div class="control-group inline-block">\n <input type="text" class="search-query" placeholder="Filter..."\n ng-model="gridOptions.filterOptions.filterText">\n </div>\n </fieldset>\n </form>\n </div>\n </div>\n\n <div class="row" ng-show="data.length > 0">\n <table class="table table-condensed table-striped" hawtio-simple-table="gridOptions"></table>\n </div>\n <div class="row" ng-show="data.length == 0">\n <p class="text-center"><i class="fa fa-spinner fa-spin"></i></p>\n </div>\n\n </div>\n\n</div>\n\n'),e.put("plugins/karaf/html/feature-details.html",'<div>\n <table class="overviewSection">\n <tr ng-hide="hasFabric">\n <td></td>\n <td class="less-big">\n <div class="btn-group">\n <button ng-click="uninstall(name,version)" \n class="btn btn-default" \n title="uninstall" \n hawtio-show\n object-name="{{featuresMBean}}"\n method-name="uninstallFeature">\n <i class="fa fa-power-off"></i>\n </button>\n <button ng-click="install(name,version)" \n class="btn btn-default" \n title="install" \n hawtio-show\n object-name="{{featuresMBean}}"\n method-name="installFeature">\n <i class="fa fa-play-circle"></i>\n </button>\n </div>\n </td>\n </tr>\n <tr>\n <td class="pull-right"><strong>Name:</strong></td>\n <td class="less-big">{{row.Name}}</td>\n </tr>\n <tr>\n <td class="pull-right"><strong>Version:</strong></td>\n <td class="less-big">{{row.Version}}</td>\n </tr>\n <tr>\n <td class="pull-right"><strong>Repository:</strong></td>\n <td class="less-big">{{row.RepositoryName}}</td>\n </tr>\n <tr>\n <td class="pull-right"><strong>Repository URI:</strong></td>\n <td class="less-big">{{row.RepositoryURI}}</td>\n </tr>\n <tr>\n <td class="pull-right"><strong>State:</strong></td>\n <td class="wrap">\n <div ng-switch="row.Installed">\n <p style="display: inline;" ng-switch-when="true">Installed</p>\n\n <p style="display: inline;" ng-switch-default>Not Installed</p>\n </div>\n </td>\n </tr>\n <tr>\n <td>\n </td>\n <td>\n <div class="accordion" id="accordionFeatures">\n <div class="accordion-group">\n <div class="accordion-heading">\n <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordionFeatures"\n href="collapseFeatures">\n Features\n </a>\n </div>\n <div id="collapseFeatures" class="accordion-body collapse in">\n <ul class="accordion-inner">\n <li ng-repeat="feature in row.Dependencies">\n <a href=\'#/osgi/feature/{{feature.Name}}/{{feature.Version}}?p=container\'>{{feature.Name}}/{{feature.Version}}</a>\n </li>\n </ul>\n </div>\n </div>\n </div>\n </td>\n </tr>\n <tr>\n <td>\n </td>\n <td>\n <div class="accordion" id="accordionBundles">\n <div class="accordion-group">\n <div class="accordion-heading">\n <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordionBundles"\n href="collapseBundles">\n Bundles\n </a>\n </div>\n <div id="collapseBundles" class="accordion-body collapse in">\n <ul class="accordion-inner">\n <li ng-repeat="bundle in row.BundleDetails">\n <div ng-switch="bundle.Installed">\n <p style="display: inline;" ng-switch-when="true">\n <a href=\'#/osgi/bundle/{{bundle.Identifier}}?p=container\'>{{bundle.Location}}</a></p>\n\n <p style="display: inline;" ng-switch-default>{{bundle.Location}}</p>\n </div>\n </li>\n </ul>\n </div>\n </div>\n </div>\n </td>\n </tr>\n <tr>\n <td>\n </td>\n <td>\n <div class="accordion" id="accordionConfigurations">\n <div class="accordion-group">\n <div class="accordion-heading">\n <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordionConfigurations"\n href="collapsConfigurations">\n Configurations\n </a>\n </div>\n <div id="collapsConfigurations" class="accordion-body collapse in">\n <table class="accordion-inner">\n <tr ng-repeat="(pid, value) in row.Configurations">\n <td>\n <p>{{value.Pid}}</p>\n <div hawtio-editor="toProperties(value.Elements)" mode="props"></div></td>\n </tr>\n </table>\n </div>\n </div>\n </div>\n </td>\n </tr>\n <tr>\n <td>\n </td>\n <td>\n <div class="accordion" id="accordionConfigurationFiles">\n <div class="accordion-group">\n <div class="accordion-heading">\n <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordionConfigurationFiles"\n href="collapsConfigurationFiles">\n Configuration Files\n </a>\n </div>\n <div id="collapsConfigurationFiles" class="accordion-body collapse in">\n <table class="accordion-inner">\n <tr ng-repeat="file in row.Files">\n <td>{{file.Files}}</td>\n </tr>\n </table>\n </div>\n </div>\n </div>\n </td>\n </tr>\n </table>\n</div>\n'),e.put("plugins/karaf/html/feature.html",'<div class="controller-section" ng-controller="Karaf.FeatureController">\n <div class="row">\n <div class="col-md-4">\n <h1>{{row.id}}</h1>\n </div>\n </div>\n\n <div ng-include src="\'plugins/karaf/html/feature-details.html\'"></div>\n\n</div>\n\n'),e.put("plugins/karaf/html/features.html",'<div class="controller-section" ng-controller="Karaf.FeaturesController">\n\n <div class="row section-filter centered">\n <input type="text" class="search-query" placeholder="Filter..." ng-model="filter">\n <i class="fa fa-remove clickable" title="Clear filter" ng-click="filter = \'\'"></i>\n </div>\n\n <script type="text/ng-template" id="popoverTemplate">\n <small>\n <table class="table">\n <tbody>\n <tr ng-repeat="(k, v) in feature track by $index" ng-show="showRow(k, v)">\n <td class="property-name">{{k}}</td>\n <td class="property-value" ng-bind="showValue(v)"></td>\n </tr>\n </tbody>\n </table>\n </small>\n </script>\n\n <p></p>\n <div class="row">\n <div class="col-md-6">\n <h3 class="centered">Installed Features</h3>\n <div ng-show="featuresError" class="alert alert-warning">\n The feature list returned by the server was null, please check the logs and Karaf console for errors.\n </div>\n <div class="bundle-list"\n hawtio-auto-columns=".bundle-item">\n <div ng-repeat="feature in installedFeatures"\n class="bundle-item"\n ng-show="filterFeature(feature)"\n ng-class="inSelectedRepository(feature)">\n <a ng-href="/osgi/feature/{{feature.Id}}?p=container"\n hawtio-template-popover title="Feature details">\n <span class="badge" ng-class="getStateStyle(feature)">{{feature.Name}} / {{feature.Version}}</span>\n </a>\n <span ng-hide="hasFabric">\n <a class="toggle-action"\n href=""\n ng-show="installed(feature.Installed)"\n ng-click="uninstall(feature)"\n hawtio-show\n object-name="{{featuresMBean}"\n method-name="uninstallFeature">\n <i class="fa fa-power-off"></i>\n </a>\n <a class="toggle-action"\n href=""\n ng-hide="installed(feature.Installed)"\n ng-click="install(feature)"\n hawtio-show\n object-name="{{featuresMBean}"\n method-name="installFeature">\n <i class="fa fa-play-circle"></i>\n </a>\n </span>\n </div>\n </div>\n </div>\n\n <div class="col-md-6">\n <h3 class="centered">Available Features</h3>\n <div class="row repository-browser-toolbar centered">\n <select id="repos"\n class="input-xlarge"\n title="Feature repositories"\n ng-model="selectedRepository"\n ng-options="r.repository for r in repositories"></select>\n <button class="btn btn-default"\n title="Remove selected feature repository"\n ng-click="uninstallRepository()"\n ng-hide="hasFabric"\n hawtio-show\n object-name="{{featuresMBean}}"\n method-name="removeRepository"><i class="fa fa-minus"></i></button>\n <input type="text"\n class="input-xlarge"\n placeholder="mvn:foo/bar/1.0/xml/features"\n title="New feature repository URL"\n ng-model="newRepositoryURI"\n ng-hide="hasFabric"\n hawtio-show\n object-name="{{featuresMBean}}"\n method-name="addRepository">\n <button class="btn btn-default"\n title="Add feature repository URL"\n ng-hide="hasFabric"\n ng-click="installRepository()"\n ng-disabled="isValidRepository()"\n hawtio-show\n object-name="{{featuresMBean}}"\n method-name="addRepository"><i class="fa fa-plus"></i></button>\n </div>\n <div class="row">\n <div class="bundle-list"\n hawtio-auto-columns=".bundle-item">\n <div ng-repeat="feature in selectedRepository.features"\n class="bundle-item"\n ng-show="filterFeature(feature)"\n hawtio-template-popover title="Feature details">\n <a ng-href="/osgi/feature/{{feature.Id}}?p=container">\n <span class="badge" ng-class="getStateStyle(feature)">{{feature.Name}} / {{feature.Version}}</span>\n </a >\n <span ng-hide="hasFabric">\n <a class="toggle-action"\n href=""\n ng-show="installed(feature.Installed)"\n ng-click="uninstall(feature)"\n hawtio-show\n object-name="{{featuresMBean}"\n method-name="uninstallFeature">\n <i class="fa fa-power-off"></i>\n </a>\n <a class="toggle-action"\n href=""\n ng-hide="installed(feature.Installed)"\n ng-click="install(feature)"\n hawtio-show\n object-name="{{featuresMBean}"\n method-name="installFeature">\n <i class="fa fa-play-circle"></i>\n </a>\n </span>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n\n</div>\n'),e.put("plugins/karaf/html/scr-component-details.html",'<div>\n <table class="overviewSection">\n <tr ng-hide="hasFabric">\n <td></td>\n <td class="less-big">\n <div class="btn-group">\n <button class="btn btn-default" \n ng-click="activate()"\n hawtio-show\n object-name="{{scrMBean}}"\n method-name="activateComponent">\n <i class="fa fa-play-circle"></i> Activate\n </button>\n <button class="btn btn-default" \n ng-click="deactivate()"\n hawtio-show\n object-name="{{scrMBean}}"\n method-name="deactiveateComponent">\n <i class="fa fa-off"></i> Deactivate\n </button>\n </div>\n </td>\n </tr>\n <tr>\n <td class="pull-right"><strong>Id:</strong></td>\n <td class="less-big">{{row.Id}}\n </td>\n </tr>\n <tr>\n <td class="pull-right"><strong>Name:</strong></td>\n <td class="less-big">{{row.Name}}\n </td>\n </tr>\n <tr>\n <td class="pull-right"><strong>State:</strong></td>\n <td class="less-big">{{row.State}}\n </td>\n </tr>\n <tr>\n <td>\n </td>\n <td>\n <div class="accordion" id="accordionProperties">\n <div class="accordion-group">\n <div class="accordion-heading">\n <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordionProperties"\n href="collapseProperties">\n Properties\n </a>\n </div>\n <div id="collapseProperties" class="accordion-body collapse in">\n <table class="accordion-inner">\n <tr ng-repeat="(key, value) in row.Properties">\n <td valign="top">{{key}}</td>\n <td>{{value.Value}}</td>\n </tr>\n </table>\n </div>\n </div>\n </div>\n </td>\n </tr>\n <tr>\n <td>\n </td>\n <td>\n <div class="accordion" id="accordionReferences">\n <div class="accordion-group">\n <div class="accordion-heading">\n <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordionReferences"\n href="collapseReferences">\n References\n </a>\n </div>\n <div id="collapseReferences" class="accordion-body collapse in">\n <table class="accordion-inner">\n <thead>\n <tr>\n <th>Name</th>\n <th>Availability</th>\n <th>Cardinality</th>\n <th>Policy</th>\n <th>Bound Services</th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="(key, value) in row.References">\n <td valign="left" class="less-big">{{value.Name}}</td>\n <td valign="left" class="less-big">{{value.Availability}}</td>\n <td valign="left" class="less-big">{{value.Cardinality}}</td>\n <td valign="left" class="less-big">{{value.Policy}}</td>\n <td>\n <ul>\n <li ng-repeat="id in value[\'Bound Services\']">\n <i class="fa fa-cog less-big text-info" id="bound.service.{{id}}">{{id}}</i>\n </li>\n </ul>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </td>\n </tr>\n </table>\n</div>\n'),e.put("plugins/karaf/html/scr-component.html",'<div class="controller-section" ng-controller="Karaf.ScrComponentController">\n <div class="row">\n <div class="col-md-4">\n <h1>{{row.id}}</h1>\n </div>\n </div>\n\n <div ng-include src="\'plugins/karaf/html/scr-component-details.html\'"></div>\n\n</div>\n'),e.put("plugins/karaf/html/scr-components.html",'<div class="controller-section" ng-controller="Karaf.ScrComponentsController">\n <div class="row">\n <div class="pull-left">\n <form class="form-inline no-bottom-margin">\n <fieldset>\n <div class="control-group inline-block">\n <div class="btn-group">\n <button ng-disabled="selectedComponents.length == 0" \n class="btn btn-default" \n ng-click="activate()"\n hawtio-show\n object-name="{{scrMBean}}"\n method-name="activateComponent"><i\n class="fa fa-play-circle"></i> Activate\n </button>\n <button ng-disabled="selectedComponents.length == 0" \n class="btn btn-default" \n ng-click="deactivate()"\n hawtio-show\n object-name="{{scrMBean}}"\n method-name="deactiveateComponent"><i\n class="fa fa-off"></i> Deactivate\n </button>\n </div>\n </div>\n </fieldset>\n </form>\n </div>\n\n <div class="pull-right">\n <input type="text" class="input-text search-query" placeholder="Filter..." ng-model="scrOptions.filterOptions.filterText">\n </div>\n </div>\n\n\n <div class="row">\n <div class="gridStyle" ng-grid="scrOptions"></div>\n </div>\n</div>\n'),e.put("plugins/karaf/html/server.html",'<div class="controller-section row" ng-controller="Karaf.ServerController">\n\n <dl class="dl-horizontal">\n <dt>Name</dt>\n <dd>{{data.name}}</dd>\n <dt>Version</dt>\n <dd>{{data.version}}</dd>\n <dt>State</dt>\n <dd>{{data.state}}</dd>\n <dt>Is root</dt>\n <dd>{{data.root}}</dd>\n <dt>Start Level</dt>\n <dd>{{data.startLevel}}</dd>\n <dt>Framework</dt>\n <dd>{{data.framework}}</dd>\n <dt>Framework Version</dt>\n <dd>{{data.frameworkVersion}}</dd>\n <dt>Location</dt>\n <dd>{{data.location}}</dd>\n <dt>SSH Port</dt>\n <dd>{{data.sshPort}}</dd>\n <dt>RMI Registry Port</dt>\n <dd>{{data.rmiRegistryPort}}</dd>\n <dt>RMI Server Port</dt>\n <dd>{{data.rmiServerPort}}</dd>\n <dt>PID</dt>\n <dd>{{data.pid}}</dd>\n </dl>\n\n</div>\n\n'),e.put("plugins/osgi/html/bundle-details.html",'<div>\n <table>\n <tr>\n <td></td>\n <td class="less-big">\n <div class="btn-group">\n <button ng-click="stopBundle(bundleId)" \n class="btn btn-default" \n hawtio-show\n object-name="{{frameworkMBean}}"\n method-name="stopBundle"\n title="stop"><i class="fa fa-power-off"/></button>\n <button ng-click="startBundle(bundleId)" \n class="btn btn-default" \n hawtio-show\n object-name="{{frameworkMBean}}"\n method-name="startBundle"\n title="start"><i class="fa fa-play-circle"/></button>\n <button ng-click="refreshBundle(bundleId)" \n class="btn btn-default" \n hawtio-show\n object-name="{{frameworkMBean}}"\n method-name="refreshBundle"\n title="refresh"><i class="fa fa-refresh"/></button>\n <button ng-click="updateBundle(bundleId)" \n class="btn btn-default" \n hawtio-show\n object-name="{{frameworkMBean}}"\n method-name="updateBundle"\n title="update"><i class="fa fa-cloud-download"/></button>\n <button ng-click="uninstallBundle(bundleId)" \n class="btn btn-default" \n hawtio-show\n object-name="{{frameworkMBean}}"\n method-name="uninstallBundle"\n title="uninstall"><i class="fa fa-eject"/></button>\n </div>\n </td>\n </tr>\n <tr>\n <td><p/></td>\n <td/>\n <tr>\n <td>\n <div ng-switch="row.Fragment">\n <div ng-switch-when="true"><strong>Fragment ID:</strong></div>\n <div ng-switch-default><strong>Bundle ID:</strong></div>\n </div>\n </td>\n <td class="less-big">{{row.Identifier}}\n </td>\n </tr>\n <tr>\n <td><strong>Bundle Name:</strong></td>\n <td class="less-big">{{row.Headers[\'Bundle-Name\'].Value}}\n </td>\n </tr>\n <tr>\n <td><strong>Symbolic Name:</strong></td>\n <td class="less-big label">\n <div id="bsn" rel="tooltip">{{row.SymbolicName}}</div>\n </td>\n </tr>\n <tr>\n <td><strong>Version:</strong></td>\n <td class="less-big">{{row.Version}}\n </td>\n </tr>\n <tr>\n <td><strong>Start Level:</strong></td>\n <td class="less-big">{{row.StartLevel}}\n </td>\n </tr>\n <tr>\n <td><strong>Location:</strong></td>\n <td class="less-big">{{row.Location}}\n </td>\n </tr>\n <tr>\n <td><strong>State:</strong></td>\n <td>\n <div class="less-big label" ng-class="row.StateStyle">{{row.State}}</div>\n </td>\n </tr>\n <tr>\n <td><strong>Last Modified:</strong></td>\n <td class="less-big">{{row.LastModified | date:\'medium\'}}\n </td>\n </tr>\n <tr>\n <td>\n <div ng-switch="row.Fragment">\n <div ng-switch-when="true"><strong>Hosts:</strong></div>\n <div ng-switch-default><strong>Fragments:</strong></div>\n </div>\n </td>\n <td class="less-big">\n <div ng-switch="row.Fragment">\n <div ng-switch-when="true" ng-bind-html-unsafe="row.Hosts"/>\n <div ng-switch-default ng-bind-html-unsafe="row.Fragments"/>\n </div>\n </td>\n </tr>\n <tr>\n <td>\n </td>\n <td>\n <div class="accordion" id="accordionInspectClassloading">\n <div class="accordion-group">\n <div class="accordion-heading">\n <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordionInspectClassloading"\n href="collapseInspectClassloading">\n Inspect Classloading\n </a>\n </div>\n <div id="collapseInspectClassloading" class="accordion-body collapse in">\n <form class="form-inline" hawtio-show object-name="{{osgiToolsMBean}}" operation-name="getLoadClassOrigin">\n <fieldset>\n \n <input class="input-xlarge" type="text" ng-model="classToLoad" placeHolder="Enter Class Name to Load...">\n <button class="btn btn-success execute" ng-click="executeLoadClass(classToLoad)">Load class</button>\n </fieldset>\n </form>\n <form class="form-inline" hawtio-show object-name="{{osgiToolsMBean}}" operation-name="getResourceURL">\n <fieldset>\n \n <input class="input-xlarge" type="text" ng-model="resourceToLoad"\n placeHolder="Enter Resource Name to Find...">\n <button class="btn btn-success execute" ng-click="executeFindResource(resourceToLoad)">Get resource\n </button>\n </fieldset>\n </form>\n <div id="loadClassResult"/>\n </div>\n </div>\n </div>\n </td>\n </tr>\n <tr>\n <td>\n </td>\n <td>\n <div class="accordion" id="accordionImportedPackages">\n <div class="accordion-group">\n <div class="accordion-heading">\n <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordionImportedPackages"\n href="collapseImportedPackages">\n Imported Packages\n </a>\n </div>\n <div id="collapseImportedPackages" class="accordion-body collapse in">\n <table>\n <tr ng-repeat="(package, data) in row.ImportData">\n <td>\n <div class="less-big badge" id="import.{{package}}">{{package}}</div>\n </td>\n </tr>\n </table>\n <div id="unsatisfiedOptionalImports"/>\n </div>\n </div>\n </div>\n </td>\n </tr>\n <tr>\n <td>\n </td>\n <td>\n <div class="accordion" id="accordionExportedPackages">\n <div class="accordion-group">\n <div class="accordion-heading">\n <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordionExportedPackages"\n href="collapseExportedPackages">\n Exported Packages\n </a>\n </div>\n <div id="collapseExportedPackages" class="accordion-body collapse in">\n <table>\n <tr ng-repeat="(package, data) in row.ExportData">\n <td>\n <div class="less-big badge badge-success" id="export.{{package}}">{{package}}</div>\n </td>\n </tr>\n </table>\n </div>\n </div>\n </div>\n </td>\n </tr>\n <tr>\n <td></td>\n <td>\n <div class="accordion" id="accordionServices">\n <div class="accordion-group">\n <div class="accordion-heading">\n <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordionServices"\n href="collapseServices">\n Services\n </a>\n </div>\n <div id="collapseServices" class="accordion-body collapse in">\n Registered Services\n <table>\n <tr ng-repeat="id in row.RegisteredServices">\n <td><i class="fa fa-cog less-big text-success" id="registers.service.{{id}}">{{id}}</i></td>\n </tr>\n </table>\n <br/>\n Services used by this Bundle\n <table>\n <tr ng-repeat="id in row.ServicesInUse">\n <td><i class="fa fa-cog less-big text-info" id="uses.service.{{id}}">{{id}}</i></td>\n </tr>\n </table>\n </div>\n </div>\n </div>\n </td>\n </tr>\n <tr>\n <td>\n </td>\n <td>\n <div class="accordion" id="accordionRequiringBundles">\n <div class="accordion-group">\n <div class="accordion-heading">\n <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordionRequiringBundles"\n href="collapseRequiringBundles">\n Other Bundles using this Bundle\n </a>\n </div>\n <div id="collapseRequiringBundles" class="accordion-body collapse in">\n <div class="accordion-inner">\n <span ng-bind-html-unsafe="row.RequiringBundles"/>\n </div>\n </div>\n </div>\n </div>\n </td>\n </tr>\n <tr>\n <td>\n </td>\n <td>\n <div class="accordion" id="accordionHeaders">\n <div class="accordion-group">\n <div class="accordion-heading">\n <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordionHeaders"\n href="collapsHeaders">\n Headers\n </a>\n </div>\n <div id="collapsHeaders" class="accordion-body collapse in">\n <table class="accordion-inner">\n <tr ng-repeat="(key, value) in row.Headers" ng-show="showValue(key)">\n <td valign="top">{{key}}</td>\n <td>{{value.Value}}</td>\n </tr>\n </table>\n </div>\n </div>\n </div>\n </td>\n </tr>\n </table>\n</div>\n'),
|
|
25814
|
25814
|
e.put("plugins/osgi/html/bundle-list.html",'<div class="controller-section" ng-controller="Osgi.BundleListController">\n <div class="row bundle-list-toolbar">\n\n <div class="pull-left">\n <div class="btn-group">\n <a ng-href="/osgi/bundle-list?p=container"\n type="button"\n class="btn btn-default active"\n title="List view">\n <i class="fa fa-list"></i>\n </a>\n <a ng-href="/osgi/bundles?p=container"\n type="button"\n class="btn btn-default"\n title="Table view">\n <i class="fa fa-table"></i>\n </a>\n </div>\n\n <div class="input-group" hawtio-show object-name="{{frameworkMBean}}" method-name="installBundle">\n <input class="input-xxlarge"\n type="text"\n placeholder="Install Bundle..."\n ng-model="bundleUrl">\n <button ng-disabled="installDisabled()"\n class="btn btn-default"\n ng-click="install()"\n title="Install">\n <i class="fa fa-check"></i>\n </button>\n </div>\n\n </div>\n\n\n <div class="pull-right">\n <strong>Show bundles: </strong>\n \n <label for="showActiveMQBundles">ActiveMQ</label>\n <input id="showActiveMQBundles" type="checkbox" ng-model="display.showActiveMQBundles">\n \n \n <label for="showCamelBundles">Camel</label>\n <input id="showCamelBundles" type="checkbox" ng-model="display.showCamelBundles">\n \n \n <label for="showCxfBundles">CXF</label>\n <input id="showCxfBundles" type="checkbox" ng-model="display.showCxfBundles">\n \n \n <label for="showPlatformBundles">Platform</label>\n <input id="showPlatformBundles" type="checkbox" ng-model="display.showPlatformBundles">\n \n \n \n <select class="input-lg" ng-model="display.sortField" id="sortField">\n <option value="Identifier">Sort by ID</option>\n <option value="Name">Sort by Name</option>\n <option value="SymbolicName">Sort by Symbolic Name</option>\n </select>\n <select class="input-lg" ng-model="display.bundleField" id="bundleField">\n <option value="Name">Display Name</option>\n <option value="SymbolicName">Display Symbolic Name</option>\n </select>\n <input class="input-sm search-query" type="number" min="0"\n ng-model="display.startLevelFilter"\n placeholder="Start Level..."/>\n <hawtio-filter ng-model="display.bundleFilter" placeholder="Filter..." save-as="osgi-bundle-list-text-filter"></hawtio-filter>\n </div>\n\n </div>\n\n <div class="row" id="bundleTableHolder">\n <!-- Just create a bit of space between the form and the controls -->\n <p></p>\n\n <script type="text/ng-template" id="popoverTemplate">\n<small>\n <table class="table">\n <tbody>\n <tr ng-repeat="(k, v) in bundle track by $index">\n <td class="property-name">{{k}}</td>\n <td class="property-value">{{v}}</td>\n </tr>\n </tbody>\n </table>\n</small>\n </script>\n\n <div class="bundle-list centered"\n hawtio-auto-columns=".bundle-item">\n <div ng-repeat="bundle in bundles"\n class="bundle-item"\n ng-show="filterBundle(bundle)"\n hawtio-template-popover title="Bundle details">\n <a id="{{bundle.Identifier}}"\n ng-href="/osgi/bundle/{{bundle.Identifier}}?p=container">\n <span class="badge" ng-class="getStateStyle(bundle.State)">{{getLabel(bundle)}}</span>\n </a>\n </div>\n </div>\n </div>\n</div>\n'),e.put("plugins/osgi/html/bundle.html",'<div class="controller-section" ng-controller="Osgi.BundleController">\n <div ng-include src="\'plugins/osgi/html/bundle-details.html\'"></div>\n</div>\n'),e.put("plugins/osgi/html/bundles.html",'<div class="controller-section" ng-controller="Osgi.BundlesController">\n <div class="row">\n <div class="pull-left">\n\n <form class="form-inline no-bottom-margin">\n <fieldset>\n\n <div class="btn-group inline-block">\n <a ng-href="/osgi/bundle-list?p=container"\n type="button"\n class="btn btn-default"\n title="List view">\n <i class="fa fa-list"></i>\n </a>\n <a ng-href="/osgi/bundles?p=container"\n type="button"\n class="btn btn-default active"\n title="Table view">\n <i class="fa fa-table"></i>\n </a>\n </div>\n\n <div class="controls control-group inline-block controls-row">\n <div class="btn-group">\n <button ng-disabled="selected.length == 0" class="btn btn-default" ng-click="stop()" title="Stop"><i class="fa fa-off"></i></button>\n <button ng-disabled="selected.length == 0" class="btn btn-default" ng-click="start()" title="Start"><i class="fa fa-play-circle"></i></button>\n <button ng-disabled="selected.length == 0" class="btn btn-default" ng-click="refresh()" title="Refresh"><i class="fa fa-refresh"></i></button>\n <button ng-disabled="selected.length == 0" class="btn btn-default" ng-click="update()" title="Update"><i class="fa fa-cloud-download"></i></button>\n <button ng-disabled="selected.length == 0" class="btn btn-default" ng-click="uninstall()" title="Uninstall"><i class="fa fa-eject"></i></button>\n </div>\n <div class="input-group">\n <input class="input-xlarge" type="text" placeholder="Install Bundle..." ng-model="bundleUrl">\n <button ng-disabled="installDisabled()" class="btn btn-default" ng-click="install()" title="Install"><i class="fa fa-ok"></i></button>\n </div>\n </div>\n </fieldset>\n </form>\n \n </div>\n\n <div class="pull-right">\n <form class="form-inline no-bottom-margin">\n <fieldset>\n <div class="control-group inline-block">\n <input type="text"\n class="input-lg search-query"\n placeholder="Filter..."\n ng-model="gridOptions.filterOptions.filterText">\n </div>\n </fieldset>\n </form>\n\n </div>\n </div>\n \n \n <div class="row">\n <div ng-show="loading">\n Please wait, loading...\n </div>\n <table ng-hide="loading" class="table table-striped" hawtio-simple-table="gridOptions"></table>\n </div>\n</div>\n'),e.put("plugins/osgi/html/configurations.html",'<style type="text/css">\n .configuration-header {\n margin: 20px 20px;\n }\n\n ul.configurations,\n ul.configurations li {\n list-style: none;\n }\n\n ul.configurations {\n margin: 0px 20px;\n }\n\n ul.configurations .bundle-item {\n display: list-item;\n margin-bottom: 4px;\n }\n\n ul.configurations li.bundle-item a {\n /*\n TODO it\'d be nice to use the natural widgth here,\n but then it might be nice to use multiple columns?\n */\n width: 450px;\n }\n</style>\n\n<div class="controller-section" ng-controller="Osgi.ConfigurationsController">\n <div class="row">\n <div class="configuration-header">\n <div class="configuration-filter">\n <input type="text" class="col-md-8 search-query" placeholder="Filter..." ng-model="filterText">\n <i class="fa fa-remove clickable" title="Clear filter" ng-click="filterText = \'\'"></i>\n <button class="btn pull-right" ng-click="addPidDialog.open()" title="Add a new configuration" hawtio-show object-name="{{hawtioConfigAdminMBean}}" method-name="configAdminUpdate"><i\n class="fa fa-plus"></i> Configuration\n </button>\n </div>\n </div>\n </div>\n\n <div class="row centered" ng-hide="configurations.length">\n <p class="text-center"><i class="fa fa-spinner fa-spin"></i></p>\n </div>\n\n <ul class="configurations">\n <li ng-repeat=\'config in configurations | filter:filterText\' class=\'{{config.class}} bundle-item\'>\n <a ng-href="{{config.pidLink}}" title="{{config.description}}">\n <span class="{{config.kind.class}}">{{config.name}}</span>\n </a>\n <ul ng-show="config.isFactory">\n <li ng-repeat="child in config.children" class=\'{{child.class}} bundle-item\'>\n <a ng-href="{{child.pidLink}}" title="{{child.description}}">\n <span class="{{child.kind.class}}">{{child.name}}</span>\n </a>\n </li>\n </ul>\n </li>\n </ul>\n\n <div modal="addPidDialog.show" close="addPidDialog.close()" options="addPidDialog.options">\n <form name="addPidDialogForm" class="form-horizontal no-bottom-margin" ng-submit="addPid(newPid)">\n <div class="modal-header"><h4>Add New Configuration</h4></div>\n <div class="modal-body">\n <div class="control-group">\n <label class="control-label" for="newPid">New configuration ID</label>\n\n <div class="controls">\n <input class="input-xlarge" type="text" id="newPid" ng-model="newPid"/>\n </div>\n </div>\n </div>\n <div class="modal-footer">\n <input class="btn btn-success" ng-disabled="!(newPid !== \'\' && newPid !== undefined)" type="submit" value="Add">\n <input class="btn btn-primary" ng-click="addPidDialog.close()" type="button" value="Cancel">\n </div>\n </form>\n </div>\n</div>\n\n'),e.put("plugins/osgi/html/framework.html",'<div class="container" ng-controller="Osgi.FrameworkController">\n <h3>Framework Configuration</h3>\n <div class="col-md-11">\n <table>\n <tr>\n <td><strong>Current Framework Start Level:</strong></td>\n <td class="less-big">{{startLevel}}</td>\n <td><button class="btn btn-primary" \n ng-click="edit(\'FrameworkStartLevel\', \'Framework Start Level\')" \n title="Edit framework start level"\n hawtio-show\n object-name="{{frameworkMBean}}"\n method-name="setFrameworkStartLevel">Edit</button></td>\n </tr>\n <tr><td><p></p></td></tr>\n <tr>\n <td><strong>Initial Bundle Start Level:</strong></td>\n <td class="less-big">{{initialBundleStartLevel}}</td>\n <td><button class="btn btn-primary"\n ng-click="edit(\'InitialBundleStartLevel\', \'Initial Bundle Start Level\')" \n title="Edit initial bundle start level"\n hawtio-show\n object-name="{{frameworkMBean}}"\n method-name="setInitialBundleStartLevel">Edit</button></td>\n </tr>\n </table>\n </div>\n\n <div modal="editDialog.show" close="editDialog.close()" options="editDialog.options">\n <form id="myForm" class="form-horizontal no-bottom-margin" ng-submit="editDialog.close()">\n <div class="modal-header"><h4>Change {{editDisplayName}}</h4></div>\n <div class="modal-body">\n <p>New Start Level (0-100): <input ng-model="editResult" type="number" min="0" max="100" required/></p>\n </div>\n <div class="modal-footer">\n <input class="btn btn-default" ng-click="editDialog.close()" type="submit" value="Cancel">\n <input class="btn btn-primary" ng-click="edited(editAttr, editDisplayName, editResult)" type="submit" value="OK">\n </div>\n </form>\n </div>\n</div>\n'),e.put("plugins/osgi/html/layoutOsgi.html",'<ul class="nav nav-tabs" hawtio-auto-dropdown ng-controller="Karaf.NavBarController">\n <li ng-class=\'{active : isActive("#/osgi/configuration") || isPrefixActive("#/osgi/pid")}\'>\n <a ng-href="/osgi/configurations{{hash}}">Configuration</a>\n </li>\n <li ng-class=\'{active : isActive("#/osgi/bundle")}\'>\n <a ng-href="/osgi/bundle-list{{hash}}">Bundles</a>\n </li>\n <li ng-class=\'{active : isActive("#/osgi/features") || isActive("#/osgi/feature")}\' ng-show="isFeaturesEnabled">\n <a ng-href="/osgi/features{{hash}}">Features</a>\n </li>\n <li ng-class=\'{active : isActive("#/osgi/package")}\'>\n <a ng-href="/osgi/packages{{hash}}">Packages</a>\n </li>\n <li ng-class=\'{active : isActive("#/osgi/service")}\'>\n <a ng-href="/osgi/services{{hash}}">Services</a>\n </li>\n <li ng-class=\'{active : isActive("#/osgi/scr-components")}\' ng-show="isScrEnabled">\n <a ng-href="/osgi/scr-components{{hash}}">Declarative Services</a>\n </li>\n <li ng-class=\'{active : isActive("#/osgi/server")}\'>\n <a ng-href="/osgi/server{{hash}}">Server</a>\n </li>\n <li ng-class=\'{active : isActive("#/osgi/fwk")}\'>\n <a ng-href="/osgi/fwk{{hash}}">Framework</a>\n </li>\n <li ng-class=\'{active : isActive("#/osgi/dependencies")}\'>\n <a ng-href="/osgi/dependencies{{hash}}">Dependencies</a>\n </li>\n\n <li class="dropdown overflow" style="float: right !important; visibility: hidden;">\n <a href="" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-chevron-down"></i></a>\n <ul class="dropdown-menu right"></ul>\n </li>\n\n</ul>\n<div class="row" ng-controller="Osgi.TopLevelController">\n <div ng-view></div>\n</div>\n\n\n'),e.put("plugins/osgi/html/package-details.html",'<div>\n <table class="overviewSection">\n <tr>\n <td><strong>Name:</strong></td>\n <td class="less-big">{{row.Name}}\n </td>\n </tr>\n <tr>\n <td><strong>Version:</strong></td>\n <td class="less-big">{{row.Version}}\n </td>\n </tr>\n <tr>\n <td><strong>Removal Pending:</strong></td>\n <td class="less-big">{{row.RemovalPending}}\n </tr>\n <tr>\n <td><strong>Exporting Bundles:</strong></td>\n <td>\n <ul>\n <li ng-repeat="name in row.ExportingBundles">\n <a href=\'#/osgi/bundle/{{name}}{{hash}}\'>{{name}}</a>\n </li>\n </ul>\n </td>\n </tr>\n <tr>\n <td><strong>Importing Bundles:</strong></td>\n <td>\n <ul>\n <li ng-repeat="name in row.ImportingBundles">\n <a href=\'#/osgi/bundle/{{name}}{{hash}}\'>{{name}}</a>\n </li>\n </ul>\n </td>\n </tr>\n </table>\n</div>'),e.put("plugins/osgi/html/package.html",'<div class="controller-section" ng-controller="Osgi.PackageController">\n\n<h1>{{row.id}}</h1>\n\n<div ng-include src="\'plugins/osgi/html/package-details.html\'"></div>\n</div>\n'),e.put("plugins/osgi/html/packages.html",'<script type="text/ng-template" id="packageBundlesTemplate">\n <table>\n <tr>\n <th>Exporting Bundles</th>\n <th>Importing Bundles</th>\n </tr>\n <tr>\n <td>\n <ul>\n <li ng-repeat="b in row.ExportingBundles">\n <a href=\'#/osgi/bundle/{{b.Identifier}}?\'>{{b.SymbolicName}}</a>\n </li>\n </ul>\n </td>\n <td>\n <ul>\n <li ng-repeat="b in row.ImportingBundles">\n <a href=\'#/osgi/bundle/{{b.Identifier}}?\'>{{b.SymbolicName}}</a>\n </li>\n </ul>\n </td>\n </tr>\n </table>\n</script>\n\n<div class="controller-section" ng-controller="Osgi.PackagesController">\n <table class="table table-striped" hawtio-simple-table="mygrid"></table>\n</div>\n'),e.put("plugins/osgi/html/pid-details.html",'<div>\n <h4 title="{{metaType.description}}">{{zkPid || metaType.name || pid}}\n <span ng-show="factoryInstanceName">: {{factoryInstanceName}}</span>\n </h4>\n\n <div ng-hide="editMode">\n <div class="row">\n <button class="btn btn-default" ng-click="setEditMode(true)" title="Edit this configuration" hawtio-show object-name="{{hawtioConfigAdminMBean}}" method-name="configAdminUpdate"><i class="fa fa-edit"></i> Edit</button>\n <button class="btn btn-danger pull-right" ng-click="deletePidDialog.open()" title="Delete this configuration" hawtio-show object-name="{{configAdminMBean}}" method-name="delete"><i class="fa fa-remove"></i> Delete</button>\n </div>\n <div class="row config-admin-form view">\n <div simple-form name="pidEditor" mode=\'view\' entity=\'entity\' data=\'schema\' schema="fullSchema"></div>\n </div>\n </div>\n <div ng-show="editMode">\n <div class="row">\n <button ng-show="newPid" class="btn btn-primary" ng-disabled="!canSave || !createForm.pidInstanceName" ng-click="pidSave()"><i class="fa fa-save"></i> Create</button>\n <button ng-hide="newPid" class="btn btn-primary" ng-disabled="!canSave" ng-click="pidSave()"><i class="fa fa-save"></i> Save</button>\n <button class="btn btn-warning" ng-click="setEditMode(false)"><i class="fa fa-remove"></i> Cancel</button>\n <button class="btn pull-right" ng-click="addPropertyDialog.open()" title="Add a new property value to this configuration"><i class="fa fa-plus"></i> Property</button>\n </div>\n <div class="row config-admin-form edit">\n <div ng-show="newPid" class="new-config-name-form">\n <form class="form-horizontal" action="">\n <fieldset>\n <div class="control-group">\n <label class="control-label" title="The name of the configuration file">Configuration name: </label>\n <div class="controls">\n <input type="text" class="col-md-12"\n title="The name of the configuration file"\n ng-required="true"\n ng-model="createForm.pidInstanceName" name="path"\n autofocus="autofocus">\n </div>\n </div>\n </fieldset>\n </form>\n </div>\n\n <div simple-form name="pidEditor" mode=\'edit\' entity=\'entity\' data=\'schema\' schema="fullSchema" onSubmit="pidSave()"></div>\n </div>\n </div>\n\n <div modal="deletePropDialog.show" close="deletePropDialog.close()" options="deletePropDialog.options">\n <form name="deleteProperty" class="form-horizontal no-bottom-margin" ng-submit="deletePidPropConfirmed()">\n <div class="modal-header"><h4>Delete property \'{{deleteKey}}\'</h4></div>\n <div class="modal-body">\n <p>Are you sure?</p>\n </div>\n <div class="modal-footer">\n <input class="btn btn-success" type="submit" value="Delete">\n <input class="btn btn-primary" ng-click="deletePropDialog.close()" type="button" value="Cancel">\n </div>\n </form>\n </div>\n\n <div modal="deletePidDialog.show" close="deletePidDialog.close()" options="deletePidDialog.options">\n <form name="deletePid" class="form-horizontal no-bottom-margin" ng-submit="deletePidConfirmed()">\n <div class="modal-header"><h4>Delete configuration: {{pid}}</h4></div>\n <div class="modal-body">\n <p>Are you sure?</p>\n </div>\n <div class="modal-footer">\n <input class="btn btn-success" type="submit" value="Delete">\n <input class="btn btn-primary" ng-click="deletePidDialog.close()" type="button" value="Cancel">\n </div>\n </form>\n </div>\n\n <div modal="addPropertyDialog.show" close="addPropertyDialog.close()" options="addPropertyDialog.options">\n <form name="addProperty" class="form-horizontal no-bottom-margin"\n ng-submit="addPropertyConfirmed(addPropKey, addPropValue)">\n <div class="modal-header"><h4>Add property</h4></div>\n <div class="modal-body">\n <div class="control-group">\n <label class="control-label" for="propKey">Key</label>\n\n <div class="controls">\n <input class="input-xlarge" type="text" id="propKey" placeholder="Key" ng-model="addPropKey"/>\n <span class="help-block"\n ng-hide="addPropKey !== \'\' && addPropKey !== undefined">A key must be specified</span>\n </div>\n </div>\n <div class="control-group">\n <label class="control-label" for="propValue">Value</label>\n\n <div class="controls">\n <input class="input-xlarge" type="text" id="propValue" placeholder="Value" ng-model="addPropValue"/>\n </div>\n </div>\n </div>\n <div class="modal-footer">\n <input class="btn btn-success" ng-disabled="!(addPropKey !== \'\' && addPropKey !== undefined)" type="submit"\n value="Add">\n <input class="btn btn-primary" ng-click="addPropertyDialog.close()" type="button" value="Cancel">\n </div>\n </form>\n </div>\n</div>\n'),e.put("plugins/osgi/html/pid.html",'<div class="controller-section" ng-controller="Osgi.PidController">\n <div ng-include src="\'plugins/osgi/html/pid-details.html\'"></div>\n</div>\n'),e.put("plugins/osgi/html/services.html",'<script type="text/ng-template" id="osgiServiceTemplate">\n <table>\n <tr>\n <th>Using Bundles</th>\n </tr>\n <tr>\n <td>\n <ul>\n <li ng-repeat="b in row.UsingBundles">\n <a href=\'#/osgi/bundle/{{b.Identifier}}{{hash}}\'>{{b.SymbolicName}}</a>\n </li>\n </ul>\n </td>\n </tr>\n </table>\n</script>\n\n<div class="controller-section" ng-controller="Osgi.ServiceController">\n\n <table class="table table-striped" hawtio-simple-table="mygrid"></table>\n <!--\n <table cellpadding="0" cellspacing="0" border="0"\n class="table table-condensed table-striped table-bordered table-hover"\n id="grid">\n <thead>\n <tr>\n <th></th>\n <th>ID</th>\n <th>Bundle</th>\n <th>Object Class(es)</th>\n </tr>\n </thead>\n <tbody>\n </table>\n -->\n</div>\n'),e.put("plugins/osgi/html/svc-dependencies.html",'<style type="text/css">\n\n div#pop-up {\n display: none;\n position:absolute;\n color: white;\n font-size: 14px;\n background: rgba(0,0,0,0.6);\n padding: 5px 10px 5px 10px;\n -moz-border-radius: 8px 8px;\n border-radius: 8px 8px;\n }\n\n div#pop-up-title {\n font-size: 15px;\n margin-bottom: 4px;\n font-weight: bolder;\n }\n div#pop-up-content {\n font-size: 12px;\n }\n\n rect.graphbox {\n fill: #DDD;\n }\n\n rect.graphbox.frame {\n stroke: #222;\n stroke-width: 2px\n }\n\n path.link {\n fill: none;\n stroke: #666;\n stroke-width: 1.5px;\n }\n\n path.link.registered {\n stroke: #444;\n }\n\n path.link.inuse {\n stroke-dasharray: 0,2 1;\n }\n\n circle {\n fill: #black;\n }\n\n circle.service {\n fill: blue;\n }\n\n circle.bundle {\n fill: black;\n }\n\n circle.package {\n fill: gray;\n }\n\n text {\n font: 10px sans-serif;\n pointer-events: none;\n }\n\n text.shadow {\n stroke: #fff;\n stroke-width: 3px;\n stroke-opacity: .8;\n }\n\n</style>\n\n<div ng-controller="Osgi.ServiceDependencyController">\n <div class="row">\n <form class="form-inline no-bottom-margin inline-block">\n <fieldset>\n <div class="control-group">\n <input type="text" class="search-query" placeholder="Filter Bundle Symbolic Name..." ng-model="bundleFilter">\n <input type="text" class="search-query" placeholder="Filter Package Name..." ng-model="packageFilter" ng-change="updatePkgFilter()">\n <label class="radio" for="showServices">\n <input id="showServices" type="radio" value="services" ng-model="selectView"> Show Services\n </label>\n <label class="radio" for="showPackages">\n <input id="showPackages" type="radio" value="packages" ng-model="selectView" ng-disabled="disablePkg"> Show Packages\n </label>\n <label class="checkbox" for="hideUnused">\n <input id="hideUnused" type="checkbox" ng-model="hideUnused"> Hide Unused\n </label>\n <button class="btn btn-primary" ng-click="updateGraph()" title="Apply the selected criteria to the Graph.">Apply</button>\n </div>\n </fieldset>\n </form>\n <a ng-hide="inDashboard" class="pull-right btn btn-default" ng-href="{{addToDashboardLink()}}" title="Add this view to a Dashboard"><i class="fa fa-share"></i></a>\n </div>\n\n <div id="pop-up">\n <div id="pop-up-title"></div>\n <div id="pop-up-content"></div>\n </div>\n\n <div class="row">\n <div class="col-md-12 canvas" style="min-height: 800px">\n <div hawtio-force-graph graph="graph" link-distance="100" charge="-300" nodesize="6"></div>\n </div>\n </div>\n\n</div>\n')}]),hawtioPluginLoader.addModule("hawtio-integration-templates");var HawtioExtensionService;!function(e){e.pluginName="hawtio-extension-service",e.templatePath="plugins/hawtio-extension-service/html",e._module=angular.module(e.pluginName,[]),e._module.service("HawtioExtension",function(){this._registeredExtensions={},this.add=function(e,t){this._registeredExtensions[e]||(this._registeredExtensions[e]=[]),this._registeredExtensions[e].push(t)},this.render=function(e,t,n){var i=this._registeredExtensions[e];if(i)for(var r=0;r<i.length;r++){var o=i[r](n);if(!o)return;"string"==typeof o&&(o=document.createTextNode(o)),t.append(o)}}}),e._module.directive("hawtioExtension",["HawtioExtension",function(e){return{restrict:"EA",link:function(t,n,i){i.name&&e.render(i.name,n,t)}}}]),hawtioPluginLoader.addModule(e.pluginName)}(HawtioExtensionService||(HawtioExtensionService={}));var HawtioPreferences;!function(e){function t(e,t){var n=null;return angular.isDefined(e)&&(n=Core.parseJsonText(e,"localStorage for "+t)),n}function n(t,n,i){angular.forEach(i,function(i,r){t[r]=i.value;var o=i.converter,a=i.formatter;if(a||(a=function(e){return e}),o||(o=function(e){return e}),r in n){var s=o(n[r]);e.log.debug("from local storage, setting ",r," to ",s),t[r]=s}else{var s=i.value;e.log.debug("from default, setting ",r," to ",s),n[r]=s}var l=i.override;l||(l=function(t,o){if(t!==o){angular.isFunction(i.pre)&&i.pre(t);var s=a(t);e.log.debug("to local storage, setting ",r," to ",s),n[r]=s,angular.isFunction(i.post)&&i.post(t)}}),i.compareAsObject?t.$watch(r,l,!0):t.$watch(r,l)})}function i(e,t,n){return!t||t(e,n)}e.pluginName="hawtio-preferences",e.templatePath="plugins/preferences/html",e.log=Logger.get(e.pluginName),e.parsePreferencesJson=t,e.initPreferenceScope=n,e.isValidFunction=i}(HawtioPreferences||(HawtioPreferences={}));var HawtioPreferences;!function(e){var t=function(){function e(e){this.$rootScope=e,this.tabs={}}return e.prototype.addTab=function(e,t,n){void 0===n&&(n=void 0),n||(n=function(){return!0}),this.tabs[e]={template:t,isValid:n},this.$rootScope.$broadcast("HawtioPreferencesTabAdded"),Core.$apply(this.$rootScope)},e.prototype.getTab=function(e){return this.tabs[e]},e.prototype.getTabs=function(){var e={};return angular.forEach(this.tabs,function(t,n){t.isValid()&&(e[n]=t)}),e},e}();e.PreferencesRegistry=t}(HawtioPreferences||(HawtioPreferences={}));var HawtioPreferences;!function(e){e._module=angular.module(e.pluginName,[]),e._module.config(["$provide","$routeProvider",function(t,n){n.when("/preferences",{templateUrl:UrlHelpers.join(e.templatePath,"preferences.html"),reloadOnSearch:!1}),t.decorator("preferencesRegistry",["$delegate","$rootScope",function(t,n){return new e.PreferencesRegistry(n)}])}]),e._module.run(["$templateCache","HawtioExtension","$compile","preferencesRegistry",function(t,n,i,r){n.add("hawtio-user",function(n){var r=t.get(UrlHelpers.join(e.templatePath,"menuItem.html"));return i(r)(n)}),e.log.debug("loaded"),r.addTab("Console Logging",UrlHelpers.join(e.templatePath,"loggingPreferences.html")),r.addTab("Reset",UrlHelpers.join(e.templatePath,"resetPreferences.html"))}]),hawtioPluginLoader.addModule(e.pluginName)}(HawtioPreferences||(HawtioPreferences={}));var HawtioPreferences;!function(e){e._module.controller("HawtioPreferences.LoggingPreferences",["$scope","SchemaRegistry",function(e,t){function n(){var e=Logger.loggers,t=(_.keys(e),{});return _.forIn(e,function(e,n){t[n]=n}),t}function i(){e.childLoggers&&_.forEach(e.childLoggers,function(e){Logger.get(e.logger).setLevel(Logger[e.level])})}var r={Off:"OFF",Error:"ERROR",Warn:"WARN",Info:"INFO",Debug:"DEBUG"};t.addSchema("ChildLoggers",{properties:{logger:{type:"string","enum":n()},level:{type:"string","enum":r}}});var o={properties:{logBuffer:{type:"number","default":100,description:"The number of log statements to keep available in the logging console"},globalLogLevel:{type:"string","enum":r},childLoggers:{type:"array",items:{type:"ChildLoggers"}}}};e.$watch("globalLogLevel",function(t,n){if(t!==n)localStorage.logLevel=angular.toJson(Logger[t]),Logger.setLevel(Logger[t]),i();else{try{e.globalLogLevel=angular.fromJson(localStorage.logLevel).name}catch(r){e.globalLogLevel="INFO"}i()}}),e.$watchCollection("childLoggers",function(t,n){if(t!==n)localStorage.childLoggers=angular.toJson(t),i();else try{e.childLoggers=angular.fromJson(localStorage.childLoggers)}catch(r){e.childLoggers=[]}}),e.entity=e,e.config=o,Core.initPreferenceScope(e,localStorage,{logBuffer:{value:100,converter:parseInt,formatter:parseInt,post:function(e){window.LogBuffer=e}}})}])}(HawtioPreferences||(HawtioPreferences={}));var HawtioPreferences;!function(e){e._module.service("PreferencesLastPath",function(){return{lastPath:void 0,lastTab:void 0}}),e._module.service("HawtioPreferences",["PreferencesLastPath","$location","$rootScope",function(e,t,n){var i={"goto":function(i){void 0===i&&(i=void 0);var r={};i&&(r.pref=i),e.lastPath=t.path(),e.lastSearch=t.search(),t.path("/preferences").search(r),Core.$apply(n)}};return i}]),e._module.controller("HawtioPreferences.MenuItemController",["$scope","$location","PreferencesLastPath",function(e,t,n){e.gotoPreferences=function(){n.lastPath=t.path(),n.lastSearch=t.search(),t.path("/preferences").search({}),Core.$apply(e)}}]),e._module.controller("HawtioPreferences.PreferencesController",["$scope","$location","preferencesRegistry","PreferencesLastPath",function(e,t,n,i){function r(e){return e.sort(function(e,t){return"Reset"==e?1:"Reset"==t?-1:e.localeCompare(t)})}var o=n.getTabs();e.names=r(_.keys(o)),e.$watch(function(){o=n.getTabs(),e.names=r(_.keys(o)),Core.$apply(e)}),Core.bindModelToSearchParam(e,t,"pref","pref",e.names[0]),e.setPanel=function(t){e.pref=t},e.active=function(t){return t===e.pref?"active":""},e.done=function(){t.path(i.lastPath).search(i.lastSearch),Core.$apply(e)},e.getPrefs=function(e){var t=o[e];if(t)return t.template}}])}(HawtioPreferences||(HawtioPreferences={}));var HawtioPreferences;if(function(e){e._module.controller("HawtioPreferences.ResetPreferences",["$scope","localStorage",function(t,n){t.doReset=function(){e.log.info("Resetting");var t=function(){n.clear(),setTimeout(function(){window.location.reload()},10)};t()}}])}(HawtioPreferences||(HawtioPreferences={})),angular.module("hawtio-preferences-templates",[]).run(["$templateCache",function(e){e.put("plugins/preferences/html/loggingPreferences.html",'<div ng-controller="HawtioPreferences.LoggingPreferences">\n <div hawtio-form-2="config" entity="entity"></div>\n</div>\n'),e.put("plugins/preferences/html/menuItem.html",'<li ng-controller="HawtioPreferences.MenuItemController">\n <a href="" ng-click="gotoPreferences()">Preferences</a>\n</li>\n'),e.put("plugins/preferences/html/preferences.html",'<div ng-controller="HawtioPreferences.PreferencesController">\n <div class="row">\n <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">\n <h3>{{pref}}</h3>\n <div ng-include="getPrefs(pref)"></div>\n </div>\n <div class="col-sm-3 col-md-2 col-sm-pull-9 col-md-pull-10 sidebar-pf sidebar-pf-left">\n <div class="nav-category">\n <ul class="nav nav-pills nav-stacked">\n <li ng-repeat="name in names" ng-class="active(name)">\n <a href="" ng-click="setPanel(name)">{{name}}</a>\n </li>\n <li class="align-center">\n <p></p>\n <button class="btn btn-default" ng-click="done()">Done</button>\n <p></p>\n </li>\n </ul>\n </div>\n </div>\n </div>\n</div>\n'),
|
|
...
|
...
|
@@ -25818,17 +25818,17 @@ y(e,t,n))}function w(e,t,n){return"string"==e?x:"word"==e&&C.allowUnquoted?(_="s
|
|
25818
|
25818
|
}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.button"),o="object"==typeof t&&t;r||i.data("bs.button",r=new n(this,o)),"toggle"==t?r.toggle():t&&r.setState(t)})}var n=function(t,i){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.7",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var n="disabled",i=this.$element,r=i.is("input")?"val":"html",o=i.data();t+="Text",null==o.resetText&&i.data("resetText",i[r]()),setTimeout(e.proxy(function(){i[r](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},n.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=e.fn.button;e.fn.button=t,e.fn.button.Constructor=n,e.fn.button.noConflict=function(){return e.fn.button=i,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=e(n.target).closest(".btn");t.call(i,"toggle"),e(n.target).is('input[type="radio"], input[type="checkbox"]')||(n.preventDefault(),i.is("input,button")?i.trigger("focus"):i.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.carousel"),o=e.extend({},n.DEFAULTS,i.data(),"object"==typeof t&&t),a="string"==typeof t?t:o.slide;r||i.data("bs.carousel",r=new n(this,o)),"number"==typeof t?r.to(t):a?r[a]():o.interval&&r.pause().cycle()})}var n=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},n.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},n.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t),i="prev"==e&&0===n||"next"==e&&n==this.$items.length-1;if(i&&!this.options.wrap)return t;var r="prev"==e?-1:1,o=(n+r)%this.$items.length;return this.$items.eq(o)},n.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},n.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){if(!this.sliding)return this.slide("next")},n.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},n.prototype.slide=function(t,i){var r=this.$element.find(".item.active"),o=i||this.getItemForDirection(t,r),a=this.interval,s="next"==t?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var u=o[0],c=e.Event("slide.bs.carousel",{relatedTarget:u,direction:s});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=e(this.$indicators.children()[this.getItemIndex(o)]);d&&d.addClass("active")}var p=e.Event("slid.bs.carousel",{relatedTarget:u,direction:s});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(t),o[0].offsetWidth,r.addClass(s),o.addClass(s),r.one("bsTransitionEnd",function(){o.removeClass([t,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(p)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(r.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(p)),a&&this.cycle(),this}};var i=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=n,e.fn.carousel.noConflict=function(){return e.fn.carousel=i,this};var r=function(n){var i,r=e(this),o=e(r.attr("data-target")||(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var a=e.extend({},o.data(),r.data()),s=r.attr("data-slide-to");s&&(a.interval=!1),t.call(o,a),s&&o.data("bs.carousel").to(s),n.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var n=e(this);t.call(n,n.data())})})}(jQuery),+function(e){"use strict";function t(t){var n,i=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(i)}function n(t){return this.each(function(){var n=e(this),r=n.data("bs.collapse"),o=e.extend({},i.DEFAULTS,n.data(),"object"==typeof t&&t);!r&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),r||n.data("bs.collapse",r=new i(this,o)),"string"==typeof t&&r[t]()})}var i=function(t,n){this.$element=e(t),this.options=e.extend({},i.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.7",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var e=this.$element.hasClass("width");return e?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(t=r.data("bs.collapse"),t&&t.transitioning))){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(n.call(r,"hide"),t||r.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var l=e.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[a](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return e.support.transition?void this.$element[n](0).one("bsTransitionEnd",e.proxy(r,this)).emulateTransitionEnd(i.TRANSITION_DURATION):r.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(n,i){var r=e(i);this.addAriaAndCollapsedClass(t(r),r)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=i,e.fn.collapse.noConflict=function(){return e.fn.collapse=r,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var r=e(this);r.attr("data-target")||i.preventDefault();var o=t(r),a=o.data("bs.collapse"),s=a?"toggle":r.data();n.call(o,s)})}(jQuery),+function(e){"use strict";function t(t){var n=t.attr("data-target");n||(n=t.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&e(n);return i&&i.length?i:t.parent()}function n(n){n&&3===n.which||(e(r).remove(),e(o).each(function(){var i=e(this),r=t(i),o={relatedTarget:this};r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(r[0],n.target)||(r.trigger(n=e.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),r.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))}))}function i(t){return this.each(function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new a(this)),"string"==typeof t&&i[t].call(n)})}var r=".dropdown-backdrop",o='[data-toggle="dropdown"]',a=function(t){e(t).on("click.bs.dropdown",this.toggle)};a.VERSION="3.3.7",a.prototype.toggle=function(i){var r=e(this);if(!r.is(".disabled, :disabled")){var o=t(r),a=o.hasClass("open");if(n(),!a){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",n);var s={relatedTarget:this};if(o.trigger(i=e.Event("show.bs.dropdown",s)),i.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},a.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=e(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var r=t(i),a=r.hasClass("open");if(!a&&27!=n.which||a&&27==n.which)return 27==n.which&&r.find(o).trigger("focus"),i.trigger("click");var s=" li:not(.disabled):visible a",l=r.find(".dropdown-menu"+s);if(l.length){var u=l.index(n.target);38==n.which&&u>0&&u--,40==n.which&&u<l.length-1&&u++,~u||(u=0),l.eq(u).trigger("focus")}}}};var s=e.fn.dropdown;e.fn.dropdown=i,e.fn.dropdown.Constructor=a,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=s,this},e(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",o,a.prototype.toggle).on("keydown.bs.dropdown.data-api",o,a.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",a.prototype.keydown)}(jQuery),+function(e){"use strict";function t(t,i){return this.each(function(){var r=e(this),o=r.data("bs.modal"),a=e.extend({},n.DEFAULTS,r.data(),"object"==typeof t&&t);o||r.data("bs.modal",o=new n(this,a)),"string"==typeof t?o[t](i):a.show&&o.show(i)})}var n=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},n.prototype.show=function(t){var i=this,r=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var r=e.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),r&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var o=e.Event("shown.bs.modal",{relatedTarget:t});r?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(o)}))},n.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(t){var i=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=e.support.transition&&r;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;o?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){i.removeBackdrop(),t&&t()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):a()}else t&&t()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var i=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=n,e.fn.modal.noConflict=function(){return e.fn.modal=i,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=e(this),r=i.attr("href"),o=e(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),a=o.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},o.data(),i.data());i.is("a")&&n.preventDefault(),o.one("show.bs.modal",function(e){e.isDefaultPrevented()||o.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),t.call(o,a,this)})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.tooltip"),o="object"==typeof t&&t;!r&&/destroy|hide/.test(t)||(r||i.data("bs.tooltip",r=new n(this,o)),"string"==typeof t&&r[t]())})}var n=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(t,n,i){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&e(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`+"`"+`selector`+"`"+` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),o=r.length;o--;){var a=r[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(t){return t=e.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},n.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,i){n[e]!=i&&(t[e]=i)}),t},n.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},n.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue())return clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},n.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var i=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!i)return;var r=this,o=this.tip(),a=this.getUID(this.type);this.setContent(),o.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,u=l.test(s);u&&(s=s.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),d=o[0].offsetWidth,p=o[0].offsetHeight;if(u){var h=s,f=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+p>f.bottom?"top":"top"==s&&c.top-p<f.top?"bottom":"right"==s&&c.right+d>f.width?"left":"left"==s&&c.left-d<f.left?"right":s,o.removeClass(h).addClass(s)}var g=this.getCalculatedOffset(s,c,d,p);this.applyPlacement(g,s);var m=function(){var e=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==e&&r.leave(r)};e.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",m).emulateTransitionEnd(n.TRANSITION_DURATION):m()}},n.prototype.applyPlacement=function(t,n){var i=this.tip(),r=i[0].offsetWidth,o=i[0].offsetHeight,a=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),t.top+=a,t.left+=s,e.offset.setOffset(i[0],e.extend({using:function(e){i.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),i.addClass("in");var l=i[0].offsetWidth,u=i[0].offsetHeight;"top"==n&&u!=o&&(t.top=t.top+o-u);var c=this.getViewportAdjustedDelta(n,t,l,u);c.left?t.left+=c.left:t.top+=c.top;var d=/top|bottom/.test(n),p=d?2*c.left-r+l:2*c.top-o+u,h=d?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(p,i[0][h],d)},n.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},n.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},n.prototype.hide=function(t){function i(){"in"!=r.hoverState&&o.detach(),r.$element&&r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),t&&t()}var r=this,o=e(this.$tip),a=e.Event("hide.bs."+this.type);if(this.$element.trigger(a),!a.isDefaultPrevented())return o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i(),this.hoverState=null,this},n.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},n.prototype.hasContent=function(){return this.getTitle()},n.prototype.getPosition=function(t){t=t||this.$element;var n=t[0],i="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=e.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var o=window.SVGElement&&n instanceof window.SVGElement,a=i?{top:0,left:0}:o?null:t.offset(),s={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},l=i?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},r,s,l,a)},n.prototype.getCalculatedOffset=function(e,t,n,i){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-n}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},n.prototype.getViewportAdjustedDelta=function(e,t,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var o=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(e)){var s=t.top-o-a.scroll,l=t.top+o-a.scroll+i;s<a.top?r.top=a.top-s:l>a.top+a.height&&(r.top=a.top+a.height-l)}else{var u=t.left-o,c=t.left+o+n;u<a.left?r.left=a.left-u:c>a.right&&(r.left=a.left+a.width-c)}return r},n.prototype.getTitle=function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},n.prototype.getUID=function(e){do e+=~~(1e6*Math.random());while(document.getElementById(e));return e},n.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `+"`"+`template`+"`"+` option must consist of exactly 1 top-level element!");return this.$tip},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(t){var n=this;t&&(n=e(t.currentTarget).data("bs."+this.type),n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})};var i=e.fn.tooltip;e.fn.tooltip=t,e.fn.tooltip.Constructor=n,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=i,this}}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.popover"),o="object"==typeof t&&t;!r&&/destroy|hide/.test(t)||(r||i.data("bs.popover",r=new n(this,o)),"string"==typeof t&&r[t]())})}var n=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.3.7",n.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),n.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=e.fn.popover;e.fn.popover=t,e.fn.popover.Constructor=n,e.fn.popover.noConflict=function(){return e.fn.popover=i,this}}(jQuery),+function(e){"use strict";function t(n,i){this.$body=e(document.body),this.$scrollElement=e(e(n).is(document.body)?window:n),this.options=e.extend({},t.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=e(this),r=i.data("bs.scrollspy"),o="object"==typeof n&&n;r||i.data("bs.scrollspy",r=new t(this,o)),"string"==typeof n&&r[n]()})}t.VERSION="3.3.7",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=e(this),r=t.data("target")||t.attr("href"),o=/^#./.test(r)&&e(r);return o&&o.length&&o.is(":visible")&&[[o[n]().top+i,r]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),t>=i)return a!=(e=o[o.length-1])&&this.activate(e);if(a&&t<r[0])return this.activeTarget=null,this.clear();for(e=r.length;e--;)a!=o[e]&&t>=r[e]&&(void 0===r[e+1]||t<r[e+1])&&this.activate(o[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var n=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=e(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=e.fn.scrollspy;e.fn.scrollspy=n,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=i,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);n.call(t,t.data())})})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new n(this)),"string"==typeof t&&r[t]()})}var n=function(t){this.element=e(t)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),i=t.data("target");if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=n.find(".active:last a"),o=e.Event("hide.bs.tab",{relatedTarget:t[0]}),a=e.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(o),t.trigger(a),!a.isDefaultPrevented()&&!o.isDefaultPrevented()){var s=e(i);this.activate(t.closest("li"),n),this.activate(s,s.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})}}},n.prototype.activate=function(t,i,r){function o(){a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var a=i.find("> .active"),s=r&&e.support.transition&&(a.length&&a.hasClass("fade")||!!i.find("> .fade").length);
|
|
25819
|
25819
|
a.length&&s?a.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o(),a.removeClass("in")};var i=e.fn.tab;e.fn.tab=t,e.fn.tab.Constructor=n,e.fn.tab.noConflict=function(){return e.fn.tab=i,this};var r=function(n){n.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.affix"),o="object"==typeof t&&t;r||i.data("bs.affix",r=new n(this,o)),"string"==typeof t&&r[t]()})}var n=function(t,i){this.options=e.extend({},n.DEFAULTS,i),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.7",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(e,t,n,i){var r=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return r<n&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=o.top)&&"bottom":!(r+a<=e-i)&&"bottom";var s=null==this.affixed,l=s?r:o.top,u=s?a:t;return null!=n&&r<=n?"top":null!=i&&l+u>=e-i&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},n.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),i=this.options.offset,r=i.top,o=i.bottom,a=Math.max(e(document).height(),e(document.body).height());"object"!=typeof i&&(o=r=i),"function"==typeof r&&(r=i.top(this.$element)),"function"==typeof o&&(o=i.bottom(this.$element));var s=this.getState(a,t,r,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),u=e.Event(l+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-t-o})}};var i=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=n,e.fn.affix.noConflict=function(){return e.fn.affix=i,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var n=e(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),t.call(n,i)})})}(jQuery),function(e){"use strict";e.fn.sidebar=function(){var t=0,n=0,i=0;e(".navbar-pf .navbar-toggle").is(":hidden")&&(t=e(document).height(),n=e(".navbar-pf").outerHeight(),i=t-n),e(".sidebar-pf").parent(".row").children('[class*="col-"]').css({"min-height":i})},e(document).ready(function(){e(".sidebar-pf").length>0&&0===e(".datatable").length&&e.fn.sidebar()}),e(window).resize(function(){e(".sidebar-pf").length>0&&e.fn.sidebar()})}(jQuery),function(e){"use strict";e.fn.popovers=function(){return this.popover(),this.filter("[data-close=true]").each(function(t,n){var i=e(n),r=i.attr("data-original-title")+'<button type="button" class="close" aria-hidden="true"><span class="pficon pficon-close"></span></button>';i.attr("data-original-title",r)}),this.on("click",function(t){var n=e(this),i=n.next(".popover").find(".popover-title");i.find(".close").parent(".popover-title").addClass("closable"),i.find(".close").on("click",function(){n.popover("hide")}),t.preventDefault()}),this}}(jQuery),function(e){"use strict";e.fn.dataTableExt&&(e.extend(!0,e.fn.dataTable.defaults,{bDestroy:!0,bAutoWidth:!1,iDisplayLength:20,sDom:"<'dataTables_header' f i r ><'table-responsive' t ><'dataTables_footer' p >",oLanguage:{sInfo:"Showing <b>_START_</b> to <b>_END_</b> of <b>_TOTAL_</b> Items",sInfoFiltered:"(of <b>_MAX_</b>)",sInfoEmpty:"Showing <b>0</b> Results",sZeroRecords:"<p>Suggestions</p><ul><li>Check the syntax of the search term.</li><li>Check that the correct menu option is chosen (token ID vs. user ID).</li><li>Use wildcards (* to match zero or more characters or ? to match a single character).</li><li>Clear the search field, then click Search to return to the 20 most recent records.</li></ul>",sSearch:""},sPaginationType:"bootstrap_input"}),e.extend(e.fn.dataTableExt.oStdClasses,{sWrapper:"dataTables_wrapper"}),e.fn.dataTableExt.oApi.fnPagingInfo=function(e){return{iStart:e._iDisplayStart,iEnd:e.fnDisplayEnd(),iLength:e._iDisplayLength,iTotal:e.fnRecordsTotal(),iFilteredTotal:e.fnRecordsDisplay(),iPage:e._iDisplayLength===-1?0:Math.ceil(e._iDisplayStart/e._iDisplayLength),iTotalPages:e._iDisplayLength===-1?0:Math.ceil(e.fnRecordsDisplay()/e._iDisplayLength)}},e.extend(e.fn.dataTableExt.oPagination,{bootstrap_input:{fnInit:function(t,n,i){var r,o,a=function(e){e.preventDefault(),t.oApi._fnPageChange(t,e.data.action)&&i(t)};e(n).append('<ul class="pagination"> <li class="first disabled"><span class="i fa fa-angle-double-left"></span></li> <li class="prev disabled"><span class="i fa fa-angle-left"></span></li></ul><div class="pagination-input"> <input type="text" class="paginate_input"> <span class="paginate_of">of <b>3</b></span></div><ul class="pagination"> <li class="next disabled"><span class="i fa fa-angle-right"></span></li> <li class="last disabled"><span class="i fa fa-angle-double-right"></span></li></ul>'),r=e("li",n),e(r[0]).bind("click.DT",{action:"first"},a),e(r[1]).bind("click.DT",{action:"previous"},a),e(r[2]).bind("click.DT",{action:"next"},a),e(r[3]).bind("click.DT",{action:"last"},a),o=e("input",n),e(o).keyup(function(e){if(38===e.which||39===e.which?this.value+=1:(37===e.which||40===e.which)&&this.value>1&&(this.value-=1),""!==this.value&&this.value.match(/[0-9]/)){var n=t._iDisplayLength*(this.value-1);if(n>t.fnRecordsDisplay())return t._iDisplayStart=(Math.ceil((t.fnRecordsDisplay()-1)/t._iDisplayLength)-1)*t._iDisplayLength,void i(t);t._iDisplayStart=n,i(t)}})},fnUpdate:function(t,n){var i,r=t.oInstance.fnPagingInfo(),o=t.aanFeatures.p,a=o.length,s=Math.ceil(t.fnRecordsDisplay()/t._iDisplayLength),l=Math.ceil(t._iDisplayStart/t._iDisplayLength)+1;for(i=0;i<a;i+=1)e(".paginate_input").val(l),e(".paginate_of b").html(s),0===r.iPage?(e("li.first",o[i]).addClass("disabled"),e("li.prev",o[i]).addClass("disabled")):(e("li.first",o[i]).removeClass("disabled"),e("li.prev",o[i]).removeClass("disabled")),r.iPage===r.iTotalPages-1||0===r.iTotalPages?(e("li.next",o[i]).addClass("disabled"),e("li.last",o[i]).addClass("disabled")):(e("li.next",o[i]).removeClass("disabled"),e("li.last",o[i]).removeClass("disabled"))}}}))}(jQuery),function(e){"use strict";e.fn.navigation=function(){var t=e(".layout-pf-alt-fixed .nav-pf-vertical-alt"),n=e(".container-pf-alt-nav-pf-vertical-alt"),i=e(".navbar-toggle"),r=!1,o={tablet:768,desktop:1024},a=function(){var i=e(window).width();t.removeClass("hidden show-mobile-nav collapsed"),n.removeClass("collapsed-nav hidden-nav"),(i<o.desktop||r)&&(t.addClass("collapsed"),n.addClass("collapsed-nav")),i<o.tablet&&(t.addClass("hidden"),t.removeClass("collapsed"),n.removeClass("collapsed-nav"),n.addClass("hidden-nav"))},s=function(){t.addClass("collapsed"),n.addClass("collapsed-nav"),r=!0},l=function(){e("html").addClass("transitions")},u=function(){t.removeClass("collapsed"),n.removeClass("collapsed-nav"),r=!1},c=function(){i.on("click",function(e){l();var i=n.hasClass("hidden-nav");i&&t.hasClass("show-mobile-nav")?t.removeClass("show-mobile-nav"):i?t.addClass("show-mobile-nav"):t.hasClass("collapsed")?u():s()})},d=function(){e('.nav-pf-vertical-alt [data-toggle="tooltip"]').tooltip({container:"body",delay:{show:"500",hide:"200"}}),e(".nav-pf-vertical-alt").on("show.bs.tooltip",function(t){if(!e(this).hasClass("collapsed"))return!1})},p=function(){a(),c(),d()};e(window).on("resize",function(){a(),l()}),p()},e(document).ready(function(){e(".nav-pf-vertical-alt").length>0&&e.fn.navigation()})}(jQuery);`)
|
|
25820
|
25820
|
|
|
25821
|
|
-func javaLibsD99ee5b076JsBytes() ([]byte, error) {
|
|
25822
|
|
- return _javaLibsD99ee5b076Js, nil
|
|
|
25821
|
+func javaLibsBadc905293JsBytes() ([]byte, error) {
|
|
|
25822
|
+ return _javaLibsBadc905293Js, nil
|
|
25823
|
25823
|
}
|
|
25824
|
25824
|
|
|
25825
|
|
-func javaLibsD99ee5b076Js() (*asset, error) {
|
|
25826
|
|
- bytes, err := javaLibsD99ee5b076JsBytes()
|
|
|
25825
|
+func javaLibsBadc905293Js() (*asset, error) {
|
|
|
25826
|
+ bytes, err := javaLibsBadc905293JsBytes()
|
|
25827
|
25827
|
if err != nil {
|
|
25828
|
25828
|
return nil, err
|
|
25829
|
25829
|
}
|
|
25830
|
25830
|
|
|
25831
|
|
- info := bindataFileInfo{name: "java/libs-d99ee5b076.js", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
|
|
|
25831
|
+ info := bindataFileInfo{name: "java/libs-badc905293.js", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
|
|
25832
|
25832
|
a := &asset{bytes: bytes, info: info}
|
|
25833
|
25833
|
return a, nil
|
|
25834
|
25834
|
}
|
|
...
|
...
|
@@ -26786,7 +26786,7 @@ select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.i
|
|
26786
|
26786
|
.navbar-collapse.in{overflow-y:visible}
|
|
26787
|
26787
|
.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}
|
|
26788
|
26788
|
}
|
|
26789
|
|
-.carousel-inner,.embed-responsive,.modal,.modal-open,.progress{overflow:hidden}
|
|
|
26789
|
+.embed-responsive,.modal,.modal-open,.progress{overflow:hidden}
|
|
26790
|
26790
|
@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}
|
|
26791
|
26791
|
}
|
|
26792
|
26792
|
.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}
|
|
...
|
...
|
@@ -26917,8 +26917,8 @@ select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.i
|
|
26917
|
26917
|
.pager .next>a,.pager .next>span{float:right}
|
|
26918
|
26918
|
.pager .previous>a,.pager .previous>span{float:left}
|
|
26919
|
26919
|
.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}
|
|
|
26920
|
+a.badge:focus,a.badge:hover,a.label:focus,a.label:hover{color:#fff;cursor:pointer;text-decoration:none}
|
|
26920
|
26921
|
.label{display:inline;padding:.2em .6em .3em;font-size:75%;color:#fff;border-radius:.25em}
|
|
26921
|
|
-a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}
|
|
26922
|
26922
|
.label:empty{display:none}
|
|
26923
|
26923
|
.label-default{background-color:#777}
|
|
26924
|
26924
|
.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}
|
|
...
|
...
|
@@ -26936,7 +26936,6 @@ a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}
|
|
26936
|
26936
|
.badge:empty{display:none}
|
|
26937
|
26937
|
.media-object,.thumbnail{display:block}
|
|
26938
|
26938
|
.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}
|
|
26939
|
|
-a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}
|
|
26940
|
26939
|
.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}
|
|
26941
|
26940
|
.jumbotron,.jumbotron .h1,.jumbotron h1{color:inherit}
|
|
26942
|
26941
|
.list-group-item>.badge{float:right}
|
|
...
|
...
|
@@ -27128,7 +27127,7 @@ button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;bor
|
|
27128
|
27128
|
.modal-content{position:relative;background-color:#fff;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}
|
|
27129
|
27129
|
.modal-backdrop{position:fixed;z-index:1040;background-color:#000}
|
|
27130
|
27130
|
.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}
|
|
27131
|
|
-.carousel-control,.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}
|
|
|
27131
|
+.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}
|
|
27132
|
27132
|
.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}
|
|
27133
|
27133
|
.modal-header .close{margin-top:-2px}
|
|
27134
|
27134
|
.modal-title{margin:0;line-height:1.42857143}
|
|
...
|
...
|
@@ -27142,7 +27141,6 @@ button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;bor
|
|
27142
|
27142
|
.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}
|
|
27143
|
27143
|
.modal-sm{width:300px}
|
|
27144
|
27144
|
}
|
|
27145
|
|
-.tooltip.top-left .tooltip-arrow,.tooltip.top-right .tooltip-arrow{bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}
|
|
27146
|
27145
|
@media (min-width:992px){.modal-lg{width:900px}
|
|
27147
|
27146
|
}
|
|
27148
|
27147
|
.tooltip{position:absolute;z-index:1070;display:block;font-size:12px;text-align:left;text-align:start;filter:alpha(opacity=0);opacity:0}
|
|
...
|
...
|
@@ -27153,9 +27151,10 @@ button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;bor
|
|
27153
|
27153
|
.tooltip.left{padding:0 5px;margin-left:-3px}
|
|
27154
|
27154
|
.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:4px}
|
|
27155
|
27155
|
.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}
|
|
27156
|
|
-.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}
|
|
27157
|
|
-.tooltip.top-left .tooltip-arrow{right:5px}
|
|
27158
|
|
-.tooltip.top-right .tooltip-arrow{left:5px}
|
|
|
27156
|
+.tooltip.top .tooltip-arrow,.tooltip.top-left .tooltip-arrow,.tooltip.top-right .tooltip-arrow{bottom:0;border-width:5px 5px 0;border-top-color:#000}
|
|
|
27157
|
+.tooltip.top .tooltip-arrow{left:50%;margin-left:-5px}
|
|
|
27158
|
+.tooltip.top-left .tooltip-arrow{right:5px;margin-bottom:-5px}
|
|
|
27159
|
+.tooltip.top-right .tooltip-arrow{left:5px;margin-bottom:-5px}
|
|
27159
|
27160
|
.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}
|
|
27160
|
27161
|
.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}
|
|
27161
|
27162
|
.tooltip.bottom .tooltip-arrow,.tooltip.bottom-left .tooltip-arrow,.tooltip.bottom-right .tooltip-arrow{border-width:0 5px 5px;border-bottom-color:#000;top:0}
|
|
...
|
...
|
@@ -27183,7 +27182,7 @@ button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;bor
|
|
27183
|
27183
|
.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}
|
|
27184
|
27184
|
.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}
|
|
27185
|
27185
|
.popover.left>.arrow:after{right:1px;border-right-width:0;border-left-color:#fff}
|
|
27186
|
|
-.carousel-inner{width:100%}
|
|
|
27186
|
+.carousel-inner{width:100%;overflow:hidden}
|
|
27187
|
27187
|
.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}
|
|
27188
|
27188
|
.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}
|
|
27189
|
27189
|
@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}
|
|
...
|
...
|
@@ -27199,7 +27198,7 @@ button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;bor
|
|
27199
|
27199
|
.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}
|
|
27200
|
27200
|
.carousel-inner>.active.left{left:-100%}
|
|
27201
|
27201
|
.carousel-inner>.active.right{left:100%}
|
|
27202
|
|
-.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;background-color:rgba(0,0,0,0)}
|
|
|
27202
|
+.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;background-color:rgba(0,0,0,0);filter:alpha(opacity=50);opacity:.5}
|
|
27203
|
27203
|
.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}
|
|
27204
|
27204
|
.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}
|
|
27205
|
27205
|
.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}
|
|
...
|
...
|
@@ -28175,7 +28174,6 @@ select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.i
|
|
28175
|
28175
|
.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}
|
|
28176
|
28176
|
.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}
|
|
28177
|
28177
|
.input-group-addon{padding:2px 6px;font-size:12px;font-weight:400;line-height:1;color:#333;text-align:center;background-color:#eee;border:1px solid #bababa;border-radius:1px}
|
|
28178
|
|
-.badge,.close{font-weight:700}
|
|
28179
|
28178
|
.input-group-addon.input-sm{padding:2px 6px;font-size:11px;border-radius:1px}
|
|
28180
|
28179
|
.input-group-addon.input-lg{padding:6px 10px;font-size:14px;border-radius:1px}
|
|
28181
|
28180
|
.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}
|
|
...
|
...
|
@@ -28291,7 +28289,8 @@ select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.i
|
|
28291
|
28291
|
.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-radius:1px 1px 0 0}
|
|
28292
|
28292
|
.navbar-btn{margin-top:12px;margin-bottom:12px}
|
|
28293
|
28293
|
.navbar-btn.btn-sm,.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}
|
|
28294
|
|
-.navbar-text{margin-top:15px;margin-bottom:15px}
|
|
|
28294
|
+.media,.navbar-text{margin-top:15px}
|
|
|
28295
|
+.navbar-text{margin-bottom:15px}
|
|
28295
|
28296
|
@media (min-width:768px){.navbar-text{float:left;margin-left:20px;margin-right:20px}
|
|
28296
|
28297
|
.navbar-left{float:left!important;float:left}
|
|
28297
|
28298
|
.navbar-right{float:right!important;float:right;margin-right:-20px}
|
|
...
|
...
|
@@ -28378,7 +28377,7 @@ a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}
|
|
28378
|
28378
|
.label-warning[href]:focus,.label-warning[href]:hover{background-color:#bb6106}
|
|
28379
|
28379
|
.label-danger{background-color:#c00}
|
|
28380
|
28380
|
.label-danger[href]:focus,.label-danger[href]:hover{background-color:#900}
|
|
28381
|
|
-.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:11px;vertical-align:middle;background-color:#999}
|
|
|
28381
|
+.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:11px;font-weight:700;vertical-align:middle;background-color:#999}
|
|
28382
|
28382
|
.badge:empty{display:none}
|
|
28383
|
28383
|
.media-object,.thumbnail{display:block}
|
|
28384
|
28384
|
.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}
|
|
...
|
...
|
@@ -28439,7 +28438,6 @@ to{background-position:0 0}
|
|
28439
|
28439
|
.progress-striped .progress-bar-warning{background-image:linear-gradient(-45deg,rgba(0,0,0,.15) 25%,rgba(0,0,0,.15) 26%,transparent 27%,transparent 49%,rgba(0,0,0,.15) 50%,rgba(0,0,0,.15) 51%,transparent 52%,transparent 74%,rgba(0,0,0,.15) 75%,rgba(0,0,0,.15) 76%,transparent 77%)}
|
|
28440
|
28440
|
.progress-bar-danger{background-color:#c00}
|
|
28441
|
28441
|
.progress-striped .progress-bar-danger{background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-webkit-linear-gradient(-45deg,rgba(0,0,0,.15) 25%,rgba(0,0,0,.15) 26%,transparent 27%,transparent 49%,rgba(0,0,0,.15) 50%,rgba(0,0,0,.15) 51%,transparent 52%,transparent 74%,rgba(0,0,0,.15) 75%,rgba(0,0,0,.15) 76%,transparent 77%);background-image:linear-gradient(-45deg,rgba(0,0,0,.15) 25%,rgba(0,0,0,.15) 26%,transparent 27%,transparent 49%,rgba(0,0,0,.15) 50%,rgba(0,0,0,.15) 51%,transparent 52%,transparent 74%,rgba(0,0,0,.15) 75%,rgba(0,0,0,.15) 76%,transparent 77%)}
|
|
28442
|
|
-.media{margin-top:15px}
|
|
28443
|
28442
|
.media:first-child{margin-top:0}
|
|
28444
|
28443
|
.media,.media-body{zoom:1;overflow:hidden}
|
|
28445
|
28444
|
.media-body{width:10000px}
|
|
...
|
...
|
@@ -28556,7 +28554,7 @@ a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-gro
|
|
28556
|
28556
|
.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}
|
|
28557
|
28557
|
.well-lg{padding:24px}
|
|
28558
|
28558
|
.well-sm{padding:9px}
|
|
28559
|
|
-.close{float:right;font-size:18px;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}
|
|
|
28559
|
+.close{float:right;font-size:18px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}
|
|
28560
|
28560
|
.modal-title,.popover{line-height:1.66666667}
|
|
28561
|
28561
|
.popover,.tooltip{font-family:"Open Sans",Helvetica,Arial,sans-serif;font-style:normal;font-weight:400;letter-spacing:normal;line-break:auto;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;word-wrap:normal;text-decoration:none}
|
|
28562
|
28562
|
.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}
|
|
...
|
...
|
@@ -28583,7 +28581,6 @@ button.close{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance
|
|
28583
|
28583
|
.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}
|
|
28584
|
28584
|
.modal-sm{width:300px}
|
|
28585
|
28585
|
}
|
|
28586
|
|
-.tooltip.top-left .tooltip-arrow,.tooltip.top-right .tooltip-arrow{bottom:0;margin-bottom:-8px;border-width:8px 8px 0;border-top-color:#434343}
|
|
28587
|
28586
|
@media (min-width:992px){.modal-lg{width:900px}
|
|
28588
|
28587
|
}
|
|
28589
|
28588
|
.tooltip{position:absolute;z-index:1070;display:block;text-align:left;text-align:start;opacity:0;filter:alpha(opacity=0)}
|
|
...
|
...
|
@@ -28594,9 +28591,10 @@ button.close{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance
|
|
28594
|
28594
|
.tooltip.left{margin-left:-3px;padding:0 8px}
|
|
28595
|
28595
|
.tooltip-inner{max-width:220px;color:#fff;background-color:#434343;border-radius:1px}
|
|
28596
|
28596
|
.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}
|
|
28597
|
|
-.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-8px;border-width:8px 8px 0;border-top-color:#434343}
|
|
28598
|
|
-.tooltip.top-left .tooltip-arrow{right:8px}
|
|
28599
|
|
-.tooltip.top-right .tooltip-arrow{left:8px}
|
|
|
28597
|
+.tooltip.top .tooltip-arrow,.tooltip.top-left .tooltip-arrow,.tooltip.top-right .tooltip-arrow{bottom:0;border-width:8px 8px 0;border-top-color:#434343}
|
|
|
28598
|
+.tooltip.top .tooltip-arrow{left:50%;margin-left:-8px}
|
|
|
28599
|
+.tooltip.top-left .tooltip-arrow{right:8px;margin-bottom:-8px}
|
|
|
28600
|
+.tooltip.top-right .tooltip-arrow{left:8px;margin-bottom:-8px}
|
|
28600
|
28601
|
.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-8px;border-width:8px 8px 8px 0;border-right-color:#434343}
|
|
28601
|
28602
|
.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-8px;border-width:8px 0 8px 8px;border-left-color:#434343}
|
|
28602
|
28603
|
.tooltip.bottom .tooltip-arrow,.tooltip.bottom-left .tooltip-arrow,.tooltip.bottom-right .tooltip-arrow{border-width:0 8px 8px;border-bottom-color:#434343;top:0}
|
|
...
|
...
|
@@ -31259,8 +31257,8 @@ func javaStyleCss() (*asset, error) {
|
|
31259
|
31259
|
|
|
31260
|
31260
|
var _javaVersionJson = []byte(`{
|
|
31261
|
31261
|
"name": "openshift-jvm",
|
|
31262
|
|
- "version": "1.0.52",
|
|
31263
|
|
- "commitId": "413f4afe57c2067e3ca527b4991a2fc2100bba4a",
|
|
|
31262
|
+ "version": "1.0.57",
|
|
|
31263
|
+ "commitId": "80441ef1187ce1807e5ce5ea994d869a2c272fcc",
|
|
31264
|
31264
|
"packages": {
|
|
31265
|
31265
|
"angular": {
|
|
31266
|
31266
|
"version": "1.5.8"
|
|
...
|
...
|
@@ -31305,7 +31303,7 @@ var _javaVersionJson = []byte(`{
|
|
31305
|
31305
|
"version": "2.0.41"
|
|
31306
|
31306
|
},
|
|
31307
|
31307
|
"hawtio-integration": {
|
|
31308
|
|
- "version": "2.0.25"
|
|
|
31308
|
+ "version": "2.0.26"
|
|
31309
|
31309
|
},
|
|
31310
|
31310
|
"hawtio-jmx": {
|
|
31311
|
31311
|
"version": "2.0.78"
|
|
...
|
...
|
@@ -31622,7 +31620,7 @@ var _bindata = map[string]func() (*asset, error){
|
|
31622
|
31622
|
"java/img/spinner-xs.gif": javaImgSpinnerXsGif,
|
|
31623
|
31623
|
"java/img/spinner.gif": javaImgSpinnerGif,
|
|
31624
|
31624
|
"java/index.html": javaIndexHtml,
|
|
31625
|
|
- "java/libs-d99ee5b076.js": javaLibsD99ee5b076Js,
|
|
|
31625
|
+ "java/libs-badc905293.js": javaLibsBadc905293Js,
|
|
31626
|
31626
|
"java/style.css": javaStyleCss,
|
|
31627
|
31627
|
"java/version.json": javaVersionJson,
|
|
31628
|
31628
|
}
|
|
...
|
...
|
@@ -32090,7 +32088,7 @@ var _bintree = &bintree{nil, map[string]*bintree{
|
|
32090
|
32090
|
}},
|
|
32091
|
32091
|
"index.html": &bintree{javaIndexHtml, map[string]*bintree{
|
|
32092
|
32092
|
}},
|
|
32093
|
|
- "libs-d99ee5b076.js": &bintree{javaLibsD99ee5b076Js, map[string]*bintree{
|
|
|
32093
|
+ "libs-badc905293.js": &bintree{javaLibsBadc905293Js, map[string]*bintree{
|
|
32094
|
32094
|
}},
|
|
32095
|
32095
|
"style.css": &bintree{javaStyleCss, map[string]*bintree{
|
|
32096
|
32096
|
}},
|