Initial commit

This commit is contained in:
weiyuqing committed 2022-11-09 10:41:47 +08:00
commit d9ca75675f
585 files changed
+127991

No files matched your search

@@ -0,0 +1,92 @@
!function(e,t){function i(e){var t=e.length,i=ae.type(e);return!ae.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===i||"function"!==i&&(0===t||"number"==typeof t&&t>0&&t-1 in e)))}function n(e){var t=fe[e]={};return ae.each(e.match(se)||[],function(e,i){t[i]=!0}),t}function r(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=ae.expando+Math.random()}function a(e,i,n){var r;if(n===t&&1===e.nodeType)if(r="data-"+i.replace(ye,"-$1").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:ve.test(n)?JSON.parse(n):n)}catch(e){}me.set(e,i,n)}else n=t;return n}function o(){return!0}function s(){return!1}function l(){try{return W.activeElement}catch(e){}}function c(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function u(e,t,i){if(ae.isFunction(t))return ae.grep(e,function(e,n){return!!t.call(e,n,e)!==i});if(t.nodeType)return ae.grep(e,function(e){return e===t!==i});if("string"==typeof t){if(Ee.test(t))return ae.filter(t,e,i);t=ae.filter(t,e)}return ae.grep(e,function(e){return te.call(t,e)>=0!==i})}function d(e,t){return ae.nodeName(e,"table")&&ae.nodeName(1===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 p(e){var t=ze.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function f(e,t){for(var i=e.length,n=0;i>n;n++)ge.set(e[n],"globalEval",!t||ge.get(t[n],"globalEval"))}function m(e,t){var i,n,r,a,o,s,l,c;if(1===t.nodeType){if(ge.hasData(e)&&(a=ge.access(e),o=ge.set(t,a),c=a.events)){delete o.handle,o.events={};for(r in c)for(i=0,n=c[r].length;n>i;i++)ae.event.add(t,r,c[r][i])}me.hasData(e)&&(s=me.access(e),l=ae.extend({},s),me.set(t,l))}}function g(e,i){var n=e.getElementsByTagName?e.getElementsByTagName(i||"*"):e.querySelectorAll?e.querySelectorAll(i||"*"):[];return i===t||i&&ae.nodeName(e,i)?ae.merge([e],n):n}function v(e,t){var i=t.nodeName.toLowerCase();"input"===i&&Pe.test(e.type)?t.checked=e.checked:("input"===i||"textarea"===i)&&(t.defaultValue=e.defaultValue)}function y(e,t){if(t in e)return t;for(var i=t.charAt(0).toUpperCase()+t.slice(1),n=t,r=Ze.length;r--;)if((t=Ze[r]+i)in e)return t;return n}function _(e,t){return e=t||e,"none"===ae.css(e,"display")||!ae.contains(e.ownerDocument,e)}function b(t){return e.getComputedStyle(t,null)}function w(e,t){for(var i,n,r,a=[],o=0,s=e.length;s>o;o++)n=e[o],n.style&&(a[o]=ge.get(n,"olddisplay"),i=n.style.display,t?(a[o]||"none"!==i||(n.style.display=""),""===n.style.display&&_(n)&&(a[o]=ge.access(n,"olddisplay",T(n.nodeName)))):a[o]||(r=_(n),(i&&"none"!==i||!r)&&ge.set(n,"olddisplay",r?i:ae.css(n,"display"))));for(o=0;s>o;o++)n=e[o],n.style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?a[o]||"":"none"));return e}function x(e,t,i){var n=We.exec(t);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):t}function k(e,t,i,n,r){for(var a=i===(n?"border":"content")?4:"width"===t?1:0,o=0;4>a;a+=2)"margin"===i&&(o+=ae.css(e,i+Qe[a],!0,r)),n?("content"===i&&(o-=ae.css(e,"padding"+Qe[a],!0,r)),"margin"!==i&&(o-=ae.css(e,"border"+Qe[a]+"Width",!0,r))):(o+=ae.css(e,"padding"+Qe[a],!0,r),"padding"!==i&&(o+=ae.css(e,"border"+Qe[a]+"Width",!0,r)));return o}function C(e,t,i){var n=!0,r="width"===t?e.offsetWidth:e.offsetHeight,a=b(e),o=ae.support.boxSizing&&"border-box"===ae.css(e,"boxSizing",!1,a);if(0>=r||null==r){if(r=Ue(e,t,a),(0>r||null==r)&&(r=e.style[t]),Ve.test(r))return r;n=o&&(ae.support.boxSizingReliable||r===e.style[t]),r=parseFloat(r)||0}return r+k(e,t,i||(o?"border":"content"),n,a)+"px"}function T(e){var t=W,i=Ye[e];return i||(i=S(e,t),"none"!==i&&i||($e=($e||ae("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=($e[0].contentWindow||$e[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),i=S(e,t),$e.detach()),Ye[e]=i),i}function S(e,t){var i=ae(t.createElement(e)).appendTo(t.body),n=ae.css(i[0],"display");return i.remove(),n}function E(e,t,i,n){var r;if(ae.isArray(t))ae.each(t,function(t,r){i||et.test(e)?n(e,r):E(e+"["+("object"==typeof r?t:"")+"]",r,i,n)});else if(i||"object"!==ae.type(t))n(e,t);else for(r in t)E(e+"["+r+"]",t[r],i,n)}function A(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,r=0,a=t.toLowerCase().match(se)||[];if(ae.isFunction(i))for(;n=a[r++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function I(e,i,n,r){function a(l){var c;return o[l]=!0,ae.each(e[l]||[],function(e,l){var u=l(i,n,r);return"string"!=typeof u||s||o[u]?s?!(c=u):t:(i.dataTypes.unshift(u),a(u),!1)}),c}var o={},s=e===vt;return a(i.dataTypes[0])||!o["*"]&&a("*")}function D(e,i){var n,r,a=ae.ajaxSettings.flatOptions||{};for(n in i)i[n]!==t&&((a[n]?e:r||(r={}))[n]=i[n]);return r&&ae.extend(!0,e,r),e}function M(e,i,n){for(var r,a,o,s,l=e.contents,c=e.dataTypes;"*"===cLine truncated
;c.prototype=k.filters=k.pseudos,k.setFilters=new c,S=i.compile=function(e,t){var i,n=[],r=[],a=q[e+" "];if(!a){for(t||(t=u(e)),i=t.length;i--;)a=g(t[i]),a[j]?n.push(a):r.push(a);a=q(e,v(r,n))}return a},w.sortStable=j.split("").sort(W).join("")===j,w.detectDuplicates=H,I(),w.sortDetached=a(function(e){return 1&e.compareDocumentPosition(D.createElement("div"))}),a(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,i){return i?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&a(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,i){return i||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),a(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,i){var n;return i?void 0:(n=e.getAttributeNode(t))&&n.specified?n.value:!0===e[t]?t.toLowerCase():null}),ae.find=i,ae.expr=i.selectors,ae.expr[":"]=ae.expr.pseudos,ae.unique=i.uniqueSort,ae.text=i.getText,ae.isXMLDoc=i.isXML,ae.contains=i.contains}(e);var fe={};ae.Callbacks=function(e){e="string"==typeof e?fe[e]||n(e):ae.extend({},e);var i,r,a,o,s,l,c=[],u=!e.once&&[],d=function(t){for(i=e.memory&&t,r=!0,l=o||0,o=0,s=c.length,a=!0;c&&s>l;l++)if(!1===c[l].apply(t[0],t[1])&&e.stopOnFalse){i=!1;break}a=!1,c&&(u?u.length&&d(u.shift()):i?c=[]:h.disable())},h={add:function(){if(c){var t=c.length;(function t(i){ae.each(i,function(i,n){var r=ae.type(n);"function"===r?e.unique&&h.has(n)||c.push(n):n&&n.length&&"string"!==r&&t(n)})})(arguments),a?s=c.length:i&&(o=t,d(i))}return this},remove:function(){return c&&ae.each(arguments,function(e,t){for(var i;(i=ae.inArray(t,c,i))>-1;)c.splice(i,1),a&&(s>=i&&s--,l>=i&&l--)}),this},has:function(e){return e?ae.inArray(e,c)>-1:!(!c||!c.length)},empty:function(){return c=[],s=0,this},disable:function(){return c=u=i=t,this},disabled:function(){return!c},lock:function(){return u=t,i||h.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!c||r&&!u||(t=t||[],t=[e,t.slice?t.slice():t],a?u.push(t):d(t)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h},ae.extend({Deferred:function(e){var t=[["resolve","done",ae.Callbacks("once memory"),"resolved"],["reject","fail",ae.Callbacks("once memory"),"rejected"],["notify","progress",ae.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ae.Deferred(function(i){ae.each(t,function(t,a){var o=a[0],s=ae.isFunction(e[t])&&e[t];r[a[1]](function(){var e=s&&s.apply(this,arguments);e&&ae.isFunction(e.promise)?e.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[o+"With"](this===n?i.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?ae.extend(e,n):n}},r={};return n.pipe=n.then,ae.each(t,function(e,a){var o=a[2],s=a[3];n[a[1]]=o.add,s&&o.add(function(){i=s},t[1^e][2].disable,t[2][2].lock),r[a[0]]=function(){return r[a[0]+"With"](this===r?n:this,arguments),this},r[a[0]+"With"]=o.fireWith}),n.promise(r),e&&e.call(r,r),r},when:function(e){var t,i,n,r=0,a=ee.call(arguments),o=a.length,s=1!==o||e&&ae.isFunction(e.promise)?o:0,l=1===s?e:ae.Deferred(),c=function(e,i,n){return function(r){i[e]=this,n[e]=arguments.length>1?ee.call(arguments):r,n===t?l.notifyWith(i,n):--s||l.resolveWith(i,n)}};if(o>1)for(t=Array(o),i=Array(o),n=Array(o);o>r;r++)a[r]&&ae.isFunction(a[r].promise)?a[r].promise().done(c(r,n,a)).fail(l.reject).progress(c(r,i,t)):--s;return s||l.resolveWith(n,a),l.promise()}}),ae.support=function(t){var i=W.createElement("input"),n=W.createDocumentFragment(),r=W.createElement("div"),a=W.createElement("select"),o=a.appendChild(W.createElement("option"));return i.type?(i.type="checkbox",t.checkOn=""!==i.value,t.optSelected=o.selected,t.reliableMarginRight=!0,t.boxSizingReliable=!0,t.pixelPosition=!1,i.checked=!0,t.noCloneChecked=i.cloneNode(!0).checked,a.disabled=!0,t.optDisabled=!o.disabled,i=W.createElement("input"),i.value="t",i.type="radio",t.radioValue="t"===i.value,i.setAttribute("checked","t"),i.setAttribute("name","t"),n.appendChild(i),t.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,t.focusinBubbles="onfocusin"in e,r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===r.style.backgroundClip,ae(function(){var i,n,a=W.getElementsByTagName("body")[0];a&&(i=W.createElement("div"),i.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",a.appendChild(i).appendChild(r),r.innerHTML="",r.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",ae.swap(a,null!=a.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===r.offsetWidth}),e.getLine truncated
return n!==t?ae.style(e,i,n):ae.css(e,i)},e,i,arguments.length>1)},show:function(){return w(this,!0)},hide:function(){return w(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){_(this)?ae(this).show():ae(this).hide()})}}),ae.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Ue(e,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,i,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,o,s,l=ae.camelCase(i),c=e.style;return i=ae.cssProps[l]||(ae.cssProps[l]=y(c,l)),s=ae.cssHooks[i]||ae.cssHooks[l],n===t?s&&"get"in s&&(a=s.get(e,!1,r))!==t?a:c[i]:(o=typeof n,"string"===o&&(a=Ge.exec(n))&&(n=(a[1]+1)*a[2]+parseFloat(ae.css(e,i)),o="number"),null==n||"number"===o&&isNaN(n)||("number"!==o||ae.cssNumber[l]||(n+="px"),ae.support.clearCloneStyle||""!==n||0!==i.indexOf("background")||(c[i]="inherit"),s&&"set"in s&&(n=s.set(e,n,r))===t||(c[i]=n)),t)}},css:function(e,i,n,r){var a,o,s,l=ae.camelCase(i);return i=ae.cssProps[l]||(ae.cssProps[l]=y(e.style,l)),s=ae.cssHooks[i]||ae.cssHooks[l],s&&"get"in s&&(a=s.get(e,!0,n)),a===t&&(a=Ue(e,i,r)),"normal"===a&&i in Xe&&(a=Xe[i]),""===n||n?(o=parseFloat(a),!0===n||ae.isNumeric(o)?o||0:a):a}}),Ue=function(e,i,n){var r,a,o,s=n||b(e),l=s?s.getPropertyValue(i)||s[i]:t,c=e.style;return s&&(""!==l||ae.contains(e.ownerDocument,e)||(l=ae.style(e,i)),Ve.test(l)&&He.test(i)&&(r=c.width,a=c.minWidth,o=c.maxWidth,c.minWidth=c.maxWidth=c.width=l,l=s.width,c.width=r,c.minWidth=a,c.maxWidth=o)),l},ae.each(["height","width"],function(e,i){ae.cssHooks[i]={get:function(e,n,r){return n?0===e.offsetWidth&&qe.test(ae.css(e,"display"))?ae.swap(e,Ke,function(){return C(e,i,r)}):C(e,i,r):t},set:function(e,t,n){var r=n&&b(e);return x(e,t,n?k(e,i,n,ae.support.boxSizing&&"border-box"===ae.css(e,"boxSizing",!1,r),r):0)}}}),ae(function(){ae.support.reliableMarginRight||(ae.cssHooks.marginRight={get:function(e,i){return i?ae.swap(e,{display:"inline-block"},Ue,[e,"marginRight"]):t}}),!ae.support.pixelPosition&&ae.fn.position&&ae.each(["top","left"],function(e,i){ae.cssHooks[i]={get:function(e,n){return n?(n=Ue(e,i),Ve.test(n)?ae(e).position()[i]+"px":n):t}}})}),ae.expr&&ae.expr.filters&&(ae.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight},ae.expr.filters.visible=function(e){return!ae.expr.filters.hidden(e)}),ae.each({margin:"",padding:"",border:"Width"},function(e,t){ae.cssHooks[e+t]={expand:function(i){for(var n=0,r={},a="string"==typeof i?i.split(" "):[i];4>n;n++)r[e+Qe[n]+t]=a[n]||a[n-2]||a[0];return r}},He.test(e)||(ae.cssHooks[e+t].set=x)});var Je=/%20/g,et=/\[\]$/,tt=/\r?\n/g,it=/^(?:submit|button|image|reset|file)$/i,nt=/^(?:input|select|textarea|keygen)/i;ae.fn.extend({serialize:function(){return ae.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ae.prop(this,"elements");return e?ae.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ae(this).is(":disabled")&&nt.test(this.nodeName)&&!it.test(e)&&(this.checked||!Pe.test(e))}).map(function(e,t){var i=ae(this).val();return null==i?null:ae.isArray(i)?ae.map(i,function(e){return{name:t.name,value:e.replace(tt,"\r\n")}}):{name:t.name,value:i.replace(tt,"\r\n")}}).get()}}),ae.param=function(e,i){var n,r=[],a=function(e,t){t=ae.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(i===t&&(i=ae.ajaxSettings&&ae.ajaxSettings.traditional),ae.isArray(e)||e.jquery&&!ae.isPlainObject(e))ae.each(e,function(){a(this.name,this.value)});else for(n in e)E(n,e[n],i,a);return r.join("&").replace(Je,"+")},ae.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){ae.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}}),ae.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}});var rt,at,ot=ae.now(),st=/\?/,lt=/#.*$/,ct=/([?&])_=[^&]*/,ut=/^(.*?):[ \t]*([^\r\n]*)$/gm,dt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ht=/^(?:GET|HEAD)$/,pt=/^\/\//,ft=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,mt=ae.fn.load,gt={},vt={},yt="*/".concat("*");try{at=H.href}catch(e){at=W.createElement("a"),at.href="",at=at.href}rt=ft.exec(at.toLowerCase())||[],ae.fn.load=function(e,i,n){if("string"!=typeof e&&mt)return mt.apply(this,arguments);var r,a,o,s=this,l=e.indexOf(" ");return l>=0&&(r=e.slice(l),e=e.slice(0,l)),ae.isFunction(i)?(n=i,i=t):i&&"object"==typeof i&&(a="POSLine truncated
this._changeInProgress=null)),this):this._isUTC?r:je(this)}function Fe(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Be(e){return this.utcOffset(0,e)}function Ue(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(je(this),"m")),this}function $e(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Pe(this._i)),this}function qe(e){return e=e?Ae(e).utcOffset():0,(this.utcOffset()-e)%60==0}function He(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function We(){if(void 0!==this._isDSTShifted)return this._isDSTShifted;var e={};if(d(e,this),e=Te(e),e._a){var t=e._isUTC?o(e._a):Ae(e._a);this._isDSTShifted=this.isValid()&&g(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ve(){return!this._isUTC}function Ge(){return this._isUTC}function Ye(){return this._isUTC&&0===this._offset}function Ke(e,t){var i,n,a,o=e,s=null;return Oe(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(o={},t?o[t]=e:o.milliseconds=e):(s=Cn.exec(e))?(i="-"===s[1]?-1:1,o={y:0,d:m(s[sn])*i,h:m(s[ln])*i,m:m(s[cn])*i,s:m(s[un])*i,ms:m(s[dn])*i}):(s=Tn.exec(e))?(i="-"===s[1]?-1:1,o={y:Xe(s[2],i),M:Xe(s[3],i),d:Xe(s[4],i),h:Xe(s[5],i),m:Xe(s[6],i),s:Xe(s[7],i),w:Xe(s[8],i)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(a=Ze(Ae(o.from),Ae(o.to)),o={},o.ms=a.milliseconds,o.M=a.months),n=new Le(o),Oe(e)&&r(e,"_locale")&&(n._locale=e._locale),n}function Xe(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function Qe(e,t){var i={milliseconds:0,months:0};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function Ze(e,t){var i;return t=Re(t,e),e.isBefore(t)?i=Qe(e,t):(i=Qe(t,e),i.milliseconds=-i.milliseconds,i.months=-i.months),i}function Je(e,t){return function(i,n){var r,a;return null===n||isNaN(+n)||(ee(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),a=i,i=n,n=a),i="string"==typeof i?+i:i,r=Ke(i,n),et(this,r,e),this}}function et(t,i,n,r){var a=i._milliseconds,o=i._days,s=i._months;r=null==r||r,a&&t._d.setTime(+t._d+a*n),o&&I(t,"Date",A(t,"Date")+o*n),s&&Y(t,A(t,"Month")+s*n),r&&e.updateOffset(t,o||s)}function tt(e,t){var i=e||Ae(),n=Re(i,this).startOf("day"),r=this.diff(n,"days",!0),a=r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse";return this.format(t&&t[a]||this.localeData().calendar(a,this,Ae(i)))}function it(){return new h(this)}function nt(e,t){return t=T(void 0!==t?t:"millisecond"),"millisecond"===t?(e=p(e)?e:Ae(e),+this>+e):(p(e)?+e:+Ae(e))<+this.clone().startOf(t)}function rt(e,t){var i;return t=T(void 0!==t?t:"millisecond"),"millisecond"===t?(e=p(e)?e:Ae(e),+this<+e):(i=p(e)?+e:+Ae(e),+this.clone().endOf(t)<i)}function at(e,t,i){return this.isAfter(e,i)&&this.isBefore(t,i)}function ot(e,t){var i;return t=T(t||"millisecond"),"millisecond"===t?(e=p(e)?e:Ae(e),+this==+e):(i=+Ae(e),+this.clone().startOf(t)<=i&&i<=+this.clone().endOf(t))}function st(e,t,i){var n,r,a=Re(e,this),o=6e4*(a.utcOffset()-this.utcOffset());return t=T(t),"year"===t||"month"===t||"quarter"===t?(r=lt(this,a),"quarter"===t?r/=3:"year"===t&&(r/=12)):(n=this-a,r="second"===t?n/1e3:"minute"===t?n/6e4:"hour"===t?n/36e5:"day"===t?(n-o)/864e5:"week"===t?(n-o)/6048e5:n),i?r:f(r)}function lt(e,t){var i,n,r=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(r,"months");return t-a<0?(i=e.clone().add(r-1,"months"),n=(t-a)/(a-i)):(i=e.clone().add(r+1,"months"),n=(t-a)/(i-a)),-(r+n)}function ct(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ut(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():P(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):P(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function dt(t){var i=P(this,t||e.defaultFormat);return this.localeData().postformat(i)}function ht(e,t){return this.isValid()?Ke({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pt(e){return this.from(Ae(),e)}function ft(e,t){return this.isValid()?Ke({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mt(e){return this.to(Ae(),e)}function gt(e){var t;return void 0===e?this._locale._abbr:(t=k(e),null!=t&&(this._locale=t),this)}function vt(){return this._locale}function yt(e){switch(e=T(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function _t(e){return e=T(e),void 0===eLine truncated
i.append(n);s=String(i.toString())}finally{o.close()}t(s)}),t}),define("text!public/js/utils/msg.json",[],function(){return'{\r\n "language": {\r\n "zh-hans": {\r\n "op_success": "操作已完成",\r\n "common_tip": "请求数据报错。"\r\n },\r\n "en": {\r\n \r\n "operateError": "Operate Error:Reason:{0}"\r\n }\r\n }\r\n}'}),define("app-utils",["jquery","moment","toastr","text!public/js/utils/msg.json"],function(e,t,i,n){var r={init_toastr:function(){e.fn.extend({fadeInRight:function(){e(this).show().css({left:e(this).width()}),e(this).animate({left:"0px"},180,"linear")},fadeOutRight:function(t){e(this).animate({left:e(this).width()},180,"linear",function(){e(this).hide().css({left:"0"}),t.complete()})}}),i.options={closeButton:!1,debug:!1,positionClass:"toast-bottom-right",showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"1000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeInRight",hideMethod:"fadeOutRight",closeOnHover:!1,preventDuplicates:!0}},i18n:JSON.parse(n).language[SDC.t.LANG],showMsgSuccess:function(){this.msg_success(this.i18n.op_success,{offset:"rt",icon:"6",closeBtn:2,time:3e3})},showPrompt:function(t,i,n,r){var a=e(".qc-modal");a.length<1&&(a=e('<div class="qc-modal"></div>'),e("body").append(a)),a.css("display","block"),e("#header").length<1&&a.addClass("fullScreen");var o=a.find(".promptDialog");o.length<1?(o=e('<div class="promptDialog"><div class="header">'+t+'<a href="javascript:;" class="closeModal"></a></div><div class="msg">'+i+'</div><div class="buttonArea">'+n+"</div></div>"),a.append(o)):(o.find(".header").html(t),o.find(".msg").html(i),o.find(".buttonArea").html(n)),o.addClass("scaleOut"),setTimeout(function(){o.removeClass("scaleOut").addClass("scaleIn")},10);var s=e(">div",a),l=0;return s.each(function(){e(this).is(".promptDialog")||(r?e(this).remove():(++l,e(this).is(":visible")?(e(this).attr("lastVisible","true"),e(this).removeClass("scaleIn").addClass("scaleOut")):e(this).attr("lastVisible","false")))}),0===l&&(a.removeClass("fadeOut").addClass("fadeIn").show(),o.removeClass("scaleIn").addClass("scaleOut"),setTimeout(function(){o.removeClass("scaleOut").addClass("scaleIn")},10)),o.find(".closeModal").on("click",function(){var t=e(".qc-modal"),i=e(this).parents(".promptDialog").eq(0);i.removeClass("scaleIn").addClass("scaleOut");var n=t.find('[lastVisible="true"]');n.length>0?(n.each(function(){e(this).attr("lastVisible","false"),e(this).removeClass("scaleOut").addClass("scaleIn")}),i.one("webkitAnimationEnd animationend",function(){i.remove(),t.attr("style","")})):(t.removeClass("fadeIn").addClass("fadeOut"),t.one("webkitAnimationEnd animationend",function(){i.remove(),t.hasClass("fadeIn")||t.attr("style","")}))}),o},pushNotification:function(e,t,i,n){},displayConfirmDialog:function(t,i,n,r){var a=this;this.showPrompt(t,i,'<a href="javascript:;" class="buttonOk">'+n+"</a>").find(".buttonOk").one("click",function(){var t=e(".qc-modal"),i=e(this).parents(".promptDialog").eq(0);i.removeClass("scaleIn").addClass("scaleOut");var n=t.find('[lastVisible="true"]');n.length>0?(n.each(function(){e(this).attr("lastVisible","false"),e(this).removeClass("scaleOut").addClass("scaleIn")}),a.bindAnimationEndEvent(i,function(){i.remove(),t.attr("style","")})):(t.removeClass("fadeIn").addClass("fadeOut"),a.bindAnimationEndEvent(t,function(){i.remove(),t.attr("style","")})),r&&r()})},displayError:function(t,i,n){var r=this;if(401==t)return void layer.open({type:1,title:"登录信息失效,请重新登录",area:["295px;","260px"],moveType:1,content:'<form id="login_form" method="post" action="'+SDC.cas_server_url+"login?service="+window.location.href+'" novalidate="novalidate" class="layui-form" style="margin:20px 0 0 50px ;"><div class="layui-form-item"><label for=""></label><div class="layui-input-inline"><input class= "layui-input" type="text" name="username" placeholder="输入手机号、邮箱或用户名" autocomplete="off" lay-verify="title"> </div ></div><div class="layui-form-item"><label for=""></label><div class="layui-input-inline"><input class="layui-input" type="password" autocomplete="off" name="password" placeholder="6-16位密码,区分大小写" data-bv-field="password"></div></div> <div class="layui-form-item"> <div class= "layui-input-inline" ><button class="layui-btn" type="submit">登录</button></div ></div ></form>',success:function(){e("#login_form").bootstrapValidator({message:"This value is not valid",feedbackIcons:{valid:"glyphicon glyphicon-ok",invalid:"glyphicon glyphicon-remove",validating:"glyphicon glyphicon-refresh"},fields:{username:{message:"请输入手机号,邮箱或用户名",validators:{notEmpty:{message:"请输入手机号,邮箱或用户名"}}},password:{message:"密码无效",validators:{notEmpty:{message:"密码不能为空"},stringLength:{min:6,max:16,message:"密码长度必须在6到16之间"}}}}})}});this.msg_error(n||r.i18n[n]||r.i18n.common_tip)},showMsgError:function(e,Line truncated
"./transport/sender/xhr-fake":36,"./transport/sender/xhr-local":37,"./utils/url":52,debug:55,events:3,inherits:57}],13:[function(e,t,i){(function(e){t.exports=e.location||{origin:"http://localhost:80",protocol:"http:",host:"localhost",port:80,href:"http://localhost/",hash:""}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],14:[function(e,t,i){(function(i,n){function r(e,t,i){if(!(this instanceof r))return new r(e,t,i);if(arguments.length<1)throw new TypeError("Failed to construct 'SockJS: 1 argument required, but only 0 present");y.call(this),this.readyState=r.CONNECTING,this.extensions="",this.protocol="",i=i||{},i.protocols_whitelist&&g.warn("'protocols_whitelist' is DEPRECATED. Use 'transports' instead."),this._transportsWhitelist=i.transports,this._transportOptions=i.transportOptions||{};var n=i.sessionId||8;if("function"==typeof n)this._generateSessionId=n;else{if("number"!=typeof n)throw new TypeError("If sessionId is used in the options, it needs to be a number or a function.");this._generateSessionId=function(){return c.string(n)}}this._server=i.server||c.numberString(1e3);var a=new o(e);if(!a.host||!a.protocol)throw new SyntaxError("The URL '"+e+"' is invalid");if(a.hash)throw new SyntaxError("The URL must not contain a fragment");if("http:"!==a.protocol&&"https:"!==a.protocol)throw new SyntaxError("The URL's scheme must be either 'http:' or 'https:'. '"+a.protocol+"' is not allowed.");var s="https:"===a.protocol;if("https:"===_.protocol&&!s)throw new Error("SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS");t?Array.isArray(t)||(t=[t]):t=[];var l=t.sort();l.forEach(function(e,t){if(!e)throw new SyntaxError("The protocols entry '"+e+"' is invalid.");if(t<l.length-1&&e===l[t+1])throw new SyntaxError("The protocols entry '"+e+"' is duplicated.")});var u=d.getOrigin(_.href);this._origin=u?u.toLowerCase():null,a.set("pathname",a.pathname.replace(/\/+$/,"")),this.url=a.href,k("using url",this.url),this._urlInfo={nullOrigin:!m.hasDomain(),sameOrigin:d.isOriginEqual(this.url,_.href),sameScheme:d.isSchemeEqual(this.url,_.href)},this._ir=new x(this.url,this._urlInfo),this._ir.once("finish",this._receiveInfo.bind(this))}function a(e){return 1e3===e||e>=3e3&&e<=4999}e("./shims");var o=e("url-parse"),s=e("inherits"),l=e("json3"),c=e("./utils/random"),u=e("./utils/escape"),d=e("./utils/url"),h=e("./utils/event"),p=e("./utils/transport"),f=e("./utils/object"),m=e("./utils/browser"),g=e("./utils/log"),v=e("./event/event"),y=e("./event/eventtarget"),_=e("./location"),b=e("./event/close"),w=e("./event/trans-message"),x=e("./info-receiver"),k=function(){};"production"!==i.env.NODE_ENV&&(k=e("debug")("sockjs-client:main"));var C;s(r,y),r.prototype.close=function(e,t){if(e&&!a(e))throw new Error("InvalidAccessError: Invalid code");if(t&&t.length>123)throw new SyntaxError("reason argument has an invalid length");if(this.readyState!==r.CLOSING&&this.readyState!==r.CLOSED){this._close(e||1e3,t||"Normal closure",!0)}},r.prototype.send=function(e){if("string"!=typeof e&&(e=""+e),this.readyState===r.CONNECTING)throw new Error("InvalidStateError: The connection has not been established yet");this.readyState===r.OPEN&&this._transport.send(u.quote(e))},r.version=e("./version"),r.CONNECTING=0,r.OPEN=1,r.CLOSING=2,r.CLOSED=3,r.prototype._receiveInfo=function(e,t){if(k("_receiveInfo",t),this._ir=null,!e)return void this._close(1002,"Cannot connect to server");this._rto=this.countRTO(t),this._transUrl=e.base_url?e.base_url:this.url,e=f.extend(e,this._urlInfo),k("info",e);var i=C.filterToEnabled(this._transportsWhitelist,e);this._transports=i.main,k(this._transports.length+" enabled transports"),this._connect()},r.prototype._connect=function(){for(var e=this._transports.shift();e;e=this._transports.shift()){if(k("attempt",e.transportName),e.needBody&&(!n.document.body||void 0!==n.document.readyState&&"complete"!==n.document.readyState&&"interactive"!==n.document.readyState))return k("waiting for body"),this._transports.unshift(e),void h.attachEvent("load",this._connect.bind(this));var t=this._rto*e.roundTrips||5e3;this._transportTimeoutId=setTimeout(this._transportTimeout.bind(this),t),k("using timeout",t);var i=d.addPath(this._transUrl,"/"+this._server+"/"+this._generateSessionId()),r=this._transportOptions[e.transportName];k("transport url",i);var a=new e(i,this._transUrl,r);return a.on("message",this._transportMessage.bind(this)),a.once("close",this._transportClose.bind(this)),a.transportName=e.transportName,void(this._transport=a)}this._close(2e3,"All transports failed",!1)},r.prototype._transportTimeout=function(){k("_transportTimeout"),this.readyState===r.CONNECTING&&(this._transport&&this._transport.close(),this._transportClose(2007,"Transport timed out"))},r.prototype._transportMessage=function(e){k("_transportMessage",e);var t,i=this,n=e.slice(0,1),r=e.slice(1);switch(n){case"o":return void this._open();casLine truncated
function n(e,t,i){if(!n.enabled())throw new Error("Transport created when disabled");s.call(this),c("constructor",e);var o=this,u=a.addPath(e,"/websocket");u="https"===u.slice(0,5)?"wss"+u.slice(5):"ws"+u.slice(4),this.url=u,this.ws=new l(this.url,[],i),this.ws.onmessage=function(e){c("message event",e.data),o.emit("message",e.data)},this.unloadRef=r.unloadAdd(function(){c("unload"),o.ws.close()}),this.ws.onclose=function(e){c("close event",e.code,e.reason),o.emit("close",e.code,e.reason),o._cleanup()},this.ws.onerror=function(e){c("error event",e),o.emit("close",1006,"WebSocket connection broken"),o._cleanup()}}var r=e("../utils/event"),a=e("../utils/url"),o=e("inherits"),s=e("events").EventEmitter,l=e("./driver/websocket"),c=function(){};"production"!==i.env.NODE_ENV&&(c=e("debug")("sockjs-client:websocket")),o(n,s),n.prototype.send=function(e){var t="["+e+"]";c("send",t),this.ws.send(t)},n.prototype.close=function(){c("close");var e=this.ws;this._cleanup(),e&&e.close()},n.prototype._cleanup=function(){c("_cleanup");var e=this.ws;e&&(e.onmessage=e.onclose=e.onerror=null),r.unloadDel(this.unloadRef),this.unloadRef=this.ws=null,this.removeAllListeners()},n.enabled=function(){return c("enabled"),!!l},n.transportName="websocket",n.roundTrips=2,t.exports=n}).call(this,{env:{}})},{"../utils/event":46,"../utils/url":52,"./driver/websocket":19,debug:55,events:3,inherits:57}],39:[function(e,t,i){function n(e){if(!l.enabled)throw new Error("Transport created when disabled");a.call(this,e,"/xhr",s,l)}var r=e("inherits"),a=e("./lib/ajax-based"),o=e("./xdr-streaming"),s=e("./receiver/xhr"),l=e("./sender/xdr");r(n,a),n.enabled=o.enabled,n.transportName="xdr-polling",n.roundTrips=2,t.exports=n},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xdr":34,"./xdr-streaming":40,inherits:57}],40:[function(e,t,i){function n(e){if(!s.enabled)throw new Error("Transport created when disabled");a.call(this,e,"/xhr_streaming",o,s)}var r=e("inherits"),a=e("./lib/ajax-based"),o=e("./receiver/xhr"),s=e("./sender/xdr");r(n,a),n.enabled=function(e){return!e.cookie_needed&&!e.nullOrigin&&(s.enabled&&e.sameScheme)},n.transportName="xdr-streaming",n.roundTrips=2,t.exports=n},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xdr":34,inherits:57}],41:[function(e,t,i){function n(e){if(!l.enabled&&!s.enabled)throw new Error("Transport created when disabled");a.call(this,e,"/xhr",o,s)}var r=e("inherits"),a=e("./lib/ajax-based"),o=e("./receiver/xhr"),s=e("./sender/xhr-cors"),l=e("./sender/xhr-local");r(n,a),n.enabled=function(e){return!e.nullOrigin&&(!(!l.enabled||!e.sameOrigin)||s.enabled)},n.transportName="xhr-polling",n.roundTrips=2,t.exports=n},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xhr-cors":35,"./sender/xhr-local":37,inherits:57}],42:[function(e,t,i){(function(i){function n(e){if(!l.enabled&&!s.enabled)throw new Error("Transport created when disabled");a.call(this,e,"/xhr_streaming",o,s)}var r=e("inherits"),a=e("./lib/ajax-based"),o=e("./receiver/xhr"),s=e("./sender/xhr-cors"),l=e("./sender/xhr-local"),c=e("../utils/browser");r(n,a),n.enabled=function(e){return!e.nullOrigin&&(!c.isOpera()&&s.enabled)},n.transportName="xhr-streaming",n.roundTrips=2,n.needBody=!!i.document,t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utils/browser":44,"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xhr-cors":35,"./sender/xhr-local":37,inherits:57}],43:[function(e,t,i){(function(e){e.crypto&&e.crypto.getRandomValues?t.exports.randomBytes=function(t){var i=new Uint8Array(t);return e.crypto.getRandomValues(i),i}:t.exports.randomBytes=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=Math.floor(256*Math.random());return t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],44:[function(e,t,i){(function(e){t.exports={isOpera:function(){return e.navigator&&/opera/i.test(e.navigator.userAgent)},isKonqueror:function(){return e.navigator&&/konqueror/i.test(e.navigator.userAgent)},hasDomain:function(){if(!e.document)return!0;try{return!!e.document.domain}catch(e){return!1}}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],45:[function(e,t,i){var n,r=e("json3"),a=/[\x00-\x1f\ud800-\udfff\ufffe\uffff\u0300-\u0333\u033d-\u0346\u034a-\u034c\u0350-\u0352\u0357-\u0358\u035c-\u0362\u0374\u037e\u0387\u0591-\u05af\u05c4\u0610-\u0617\u0653-\u0654\u0657-\u065b\u065d-\u065e\u06df-\u06e2\u06eb-\u06ec\u0730\u0732-\u0733\u0735-\u0736\u073a\u073d\u073f-\u0741\u0743\u0745\u0747\u07eb-\u07f1\u0951\u0958-\u095f\u09dc-\u09dd\u09df\u0a33\u0a36\u0a59-\u0a5b\u0a5e\u0b5c-\u0b5d\u0e38-\u0e39\u0f43\u0f4d\u0f52\u0f57\u0f5c\u0f69\u0f72-\u0f76\u0f78\u0f80-\u0f83\u0f93\u0f9d\u0fa2\u0fa7\u0fac\u0fb9\u1939-\u193a\u1a17\u1b6b\u1cda-\u1cdb\u1dc0-\u1dcf\u1dfc\u1dfe\u1f71\u1f73\u1f75\u1f77\u1f79\u1f7b\u1f7d\u1fbb\u1fbe\u1fc9\u1fcb\u1fd3\u1fdb\u1fe3\u1feb\uLine truncated
i=e.displayName||e.name;break;case"floatingip":i=e.floating_ip_address;break;default:i=e.name||e.id}return i?"object"==typeof i?i.name:i:""}}}),define("text!modules/slab/message/lang.json",[],function(){return'{\r\n "language": {\r\n "zh-hans": {\r\n "volume": "数据盘",\r\n "instance": "云主机",\r\n "security_group": "安全组",\r\n "floatingip": "公网IP",\r\n "floating_ipset": "多线公网IP",\r\n "port_forwarding": "端口转发规则",\r\n "port": "虚拟网卡",\r\n "keypair": "密钥",\r\n "router": "路由器",\r\n "volume_snapshot": "数据盘快照",\r\n "image": "主机快照",\r\n "pptpconnection": "VPN",\r\n "security_group_rule": "安全组规则",\r\n "network": "网络",\r\n "subnet": "子网",\r\n "localresize": "更改配置",\r\n "prep_resize": "更改配置",\r\n "confirm_resize": "更改配置",\r\n "resize": "更改配置",\r\n "finish_resize": "更改配置",\r\n "prepresize": "更改配置",\r\n "confirmresize": "更改配置",\r\n "livemigration": "迁移",\r\n "member": "成员",\r\n "user": "用户",\r\n "invitation": "协作用户",\r\n "project": "项目",\r\n "loadbalancer": "负载均衡器",\r\n "pool": "资源池",\r\n "ikepolicy": "IKE策略",\r\n "ipsecpolicy": "IPsec策略",\r\n "database_instance": "数据库",\r\n "database_config": "数据库配置组",\r\n "database_instance_user": "数据库用户",\r\n "payment": "支付",\r\n "delete": "删除",\r\n "attach": "挂载",\r\n "create": "创建",\r\n "detach": "解除",\r\n "update": "更新",\r\n "poweron": "开启",\r\n "shutdown": "关闭",\r\n "shutdown2": "关闭",\r\n "poweroff": "关闭",\r\n "reboot": "重启",\r\n "restart": "重启",\r\n "modifyvolume": "扩容",\r\n "modifyflavor": "更新配置",\r\n "unassignconf": "解绑配置组",\r\n "assignconf": "关联配置组",\r\n "detachinterface": "离开网络",\r\n "attachinterface": "加入网络",\r\n "instance_snapshot": "正在为云主机 \\"{1}\\" 创建主机快照...",\r\n "instance_snapshot_done": "云主机 \\"{1}\\" 创建主机快照完成。",\r\n "instance_keypair_done": "云主机 \\"{1}\\" 的密钥已修改。",\r\n "floatingip_updateratelimit": "正在更新公网IP \\"{1}\\" 带宽...",\r\n "floatingip_updateratelimit_done": "公网IP \\"{1}\\" 带宽更新成功。",\r\n "floatingip_attachrouter_done": "绑定公网IP \\"{1}\\" 到路由器成功。",\r\n "floatingip_attachinstance_done": "绑定公网IP \\"{1}\\" 到云主机成功。",\r\n "floatingip_attachlbs_done": "绑定公网IP \\"{1}\\" 到负载均衡成功。",\r\n "floating_ipset_updateratelimit": "正在更新多线公网IP \\"{1}\\" 带宽...",\r\n "floating_ipset_updateratelimit_done": "多线公网IP \\"{1}\\" 带宽更新成功。",\r\n "floating_ipset_attachrouter_done": "绑定多线公网IP \\"{1}\\" 到路由器成功。",\r\n "floating_ipset_attachinstance_done": "绑定多线公网IP \\"{1}\\" 到云主机成功。",\r\n "router.interface_delete_done": "路由器 \\"{1}\\" 已经解除关联子网。",\r\n "router.interface_create_done": "路由器 \\"{1}\\" 已经关联子网。",\r\n "port_updatesecuritygroup": "正在更新虚拟网卡 \\"{1}\\" 的安全组...",\r\n "floatingip_updateregisterno_done": "公网IP \\"{1}\\" 备案更新成功。",\r\n "floating_ipset_updateregisterno_done": "多线公网IP \\"{1}\\" 备案更新成功。",\r\n "port_updatesecuritygroup_done": "虚拟网卡 \\"{1}\\" 的安全组已更新。",\r\n "host": "物理机",\r\n "online": "上线",\r\n "offline": "下线",\r\n "createtag": "打标签",\r\n "removetag": "移除标签",\r\n "createitem": "创建监控",\r\n "deleteitem": "删除监控",\r\n "updateitem": "修改监控项",\r\n "monitor": "监控项",\r\n "alarm": "告警",\r\n "listener": "监听器",\r\n "bindip": "绑定公网IP",\r\n "unbindip": "解绑公网IP",\r\n "role": "用户组",\r\n "unbindvolume": "卸载数据盘",\r\n "hostgroup": "主机组",\r\n "removetemplate": "移除模板",\r\n "attachtemplate": "添加模板",\r\n "attachhost": "添加主机",\r\n "removehost": "移除主机",\r\n "hosttemplate": "主机模板",\r\n "actionrule": "主机自发现",\r\n "activate": "启用",\r\n "forbidden": "禁用",\r\n "flavor": "云主机类型",\r\n "snapshot": "数据盘快照",\r\n "healthmonitor": "健康检查",\r\n "configuration_email": "邮箱设置",\r\n "configuration_sms": "短信设置",\r\n "notification": "通知",\r\n "license": "证书",\r\n "vpn": "VPN",\r\n "order": "订购单",\r\Line truncated
return de(e)}function de(e){var t=e,i=Tr.get(t);if(i)return n.mix(!0,[],i);var r=he(e,!1);return Tr.put(t,n.mix(!0,[],r)),r}function he(e,t){t=void 0===t||!0===t;var i=pe(e,t);return t?"string"==typeof i[0]?i[1]:i[0]:i}function pe(e,t){function i(e){var t=r.last();t&&t.children?t.children.push(e):l.push(e)}var n=9990,r=[],a=e,o=e.length;r.last=function(){return r[r.length-1]};var s,l=[];do{if(0==--n)break;var c=ve(e);if(c){e=e.replace(c[0],"");var u=r.pop();if(!u)throw"是不是有属性值没有用引号括起";if("option"===u.nodeName?u.children=[{nodeName:"#text",nodeValue:_e(u)}]:"table"===u.nodeName&&ge(u.children),s=null,t&&1===l.length&&!r.length)return[a.slice(0,o-e.length),l[0]]}else{var c=ye(e);if(c){e=e.replace(c[0],"");var d=c[1];i(d);var h=!(!d.isVoidTag&&!wr[d.nodeName]);if(h||r.push(d),t&&h&&!r.length)return[a.slice(0,o-e.length),d];s=d}else{var p="";do{if(0!==e.indexOf("<"))break;p+=e.slice(0,1),e=e.slice(1)}while(e.length);var f=e.indexOf("<");if(-1===f)p=e,e="";else{var m=e.indexOf(w.openTag);if(-1!==m&&m<f){0!==m&&(p+=e.slice(0,m));var g=e.slice(m),v=me(g);p+=v,e=g.slice(v.length)}else p+=e.slice(0,f),e=e.slice(f)}var y=fe(s,p,i);y&&(s=y)}}}while(e.length);return l}function fe(e,t,i){if(kr.test(t))return e&&"#text"===e.nodeName?(e.nodeValue+=t,e):(e={nodeName:"#text",nodeValue:t},i(e),e)}function me(e){for(var t,i,n=w.closeTag,r=w.openTag,a=n.charAt(0),o=n.length,s="code",l=r.length,c=e.length;l<c;l++){var u=e.charAt(l);switch(s){case"code":if('"'===u||"'"===u)s="string",t=u;else if(u===a&&e.substr(l,o)===n)return e.slice(0,l+o);break;case"string":"\\"===u&&/"'/.test(e.charAt(l+1))&&(i=!i),u!==t||i||(s="code")}}throw"找不到界定符"+n}function ge(e){for(var t=!1,i=0,n=e.length;i<n;i++){var r=e[i];Sr.test(r.nodeName)?t=!1:"tr"===r.nodeName?t?(e.splice(i,1),t.children.push(r),n--,i--):(t={nodeName:"tbody",props:{},children:[r]},e.splice(i,1,t)):t&&(e.splice(i,1),t.children.push(r),n--,i--)}}function ve(e){if(0===e.indexOf("</")){var t=e.match(/\<\/(\w+[^\s\/\>]*)>/);if(t){var i=t[1];return e=e.slice(3+i.length),[t[0],{nodeName:i}]}}return null}function ye(e){if(0===e.indexOf("<")){if(0===e.indexOf("\x3c!--")){var t=e.indexOf("--\x3e");-1===t&&thow("注释节点没有闭合 "+e.slice(0,100));var i={nodeName:"#comment",nodeValue:e.slice(4,t)};return[e.slice(0,t+3),i]}var n=e.match(Er);if(n){var r=n[0],a=n[1],i={nodeName:a,props:{},children:[]};e=e.replace(r,"");try{var o=be(e)}catch(e){}if(o&&(i.props=o[1],e=e.replace(o[0],""),r+=o[0]),">"===e.charAt(0)?(r+=">",e=e.slice(1),yr[i.nodeName]&&(i.isVoidTag=!0)):"/>"===e.slice(0,2)&&(r+="/>",e=e.slice(2),i.isVoidTag=!0),!i.isVoidTag&&wr[a]){var s="</"+a+">",l=e.indexOf(s),c=e.slice(0,l);r+=c+s,i.children.push({nodeName:"#text",nodeValue:c}),"textarea"===a&&(i.props.type=a,i.props.value=c)}return[r,i]}}}function _e(e){var t="";return e.children.forEach(function(e){"#text"===e.nodeName?t+=e.nodeValue:e.children&&!xr[e.nodeName]&&(t+=_e(e))}),t}function be(e){for(var t,i,n="AttrName",r="",a="",o={},s=0,l=e.length;s<l;s++){var c=e.charAt(s);switch(n){case"AttrName":if("/"===c&&">"===e.charAt(s+1)||">"===c)return r&&(o[r]=r),[e.slice(0,s),o];if(Cr.test(c))r&&(n="AttrEqual");else if("="===c){if(!r)throw"必须指定属性名";n="AttrQuote"}else r+=c;break;case"AttrEqual":"="===c?n="AttrQuote":kr.test(c)&&(o[r]=r,r=c,n="AttrName");break;case"AttrQuote":'"'!==c&&"'"!==c||(t=c,n="AttrValue",i=!1);break;case"AttrValue":if("\\"===c&&/"'/.test(e.charAt(s+1))&&(i=!i),"\n"===c)break;c!==t?a+=c:c!==t||i||(o[r]=a,r=a="",n="AttrName")}}throw"必须关闭标签"}function we(e,t){e.setAttribute("avalon-events",t)}function xe(e,t,i){var r=e.getAttribute("avalon-events");if(r&&(!0!==e.disabled||"click"!==t)){var a=[],o=Or[t]||(Or[t]=new RegExp("\\b"+t+"\\:([^,\\s]+)","g"));r.replace(o,function(e,t){return a.push(t),e}),a.length&&i.push({elem:e,uuids:a})}e=e.parentNode;var s=n.gestureEvents||{};e&&e.getAttribute&&(Mr[t]||s[t])&&xe(e,t,i)}function ke(e){e=new Te(e);var t=e.type,i=e.target,r=[];xe(i,t,r);for(var a,o,s,l=0;(s=r[l++])&&!e.cancelBubble;){e.currentTarget=s.elem;for(a=0;(o=s.uuids[a++])&&!e.stopImmediate;){var c=n.eventListeners[o];if(c){var u=Nr.test(o)?s.elem._ms_context_:0;if(u&&!1===u.$hashcode)return n.unbind(i,t,c);!1===c.call(u||i,e)&&(e.preventDefault(),e.stopPropagation())}}}}function Ce(e){var t=Xi.getAttribute("delegate-events")||"";if(-1===t.indexOf(e)){var i=t.match(n.rword)||[];i.push(e),Xi.setAttribute("delegate-events",i.join(",")),n._nativeBind(Xi,e,ke,!!Pr[e])}}function Te(e){if(e.originalEvent)return e;for(var t in e)Rr[t]||(this[t]=e[t]);this.target||(this.target=e.srcElement);this.target;this.fixEvent(),this.timeStamp=new Date-0,this.originalEvent=e}function Se(e){for(n.isReady=!0;e=Br.shift();)e(n)}function Ee(e,t,i){switch(t){case"style":case"script":case"noscript":case"template":case"xmp":e.children=[{nodeName:"#text",nodeValue:i}];break;case"textarea":var n=e.props;n.type=t,n.value=i,e.children=[{nodeName:"#text",nodeValue:i}];brLine truncated
;k(Object.keys)||(Object.keys=function(e){var t=[],i=En&&"function"==typeof e;if("string"==typeof e||e&&e.callee)for(var n=0;n<e.length;++n)t.push(String(n));else for(var r in e)i&&"prototype"===r||!cn.call(e,r)||t.push(String(r));if(Sn)for(var a=e.constructor,o=a&&a.prototype===e,s=0;s<In;s++){var l=An[s];o&&"constructor"===l||!cn.call(e,l)||t.push(l)}return t}),k(Array.isArray)||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),k(k.bind)||(Function.prototype.bind=function(e){if(arguments.length<2&&void 0===e)return this;var t=this,i=arguments;return function(){var n,r=[];for(n=1;n<i.length;n++)r.push(i[n]);for(n=0;n<arguments.length;n++)r.push(arguments[n]);return t.apply(e,r)}});try{fn.call(n.document.documentElement)}catch(e){un.slice=function(e,t){if(t=void 0!==t?t:this.length,Array.isArray(this))return fn.call(this,e,t);var i,n,r=[],a=this.length,o=e||0;o=o>=0?o:a+o;var s=t||a;if(t<0&&(s=a+t),(n=s-o)>0)if(r=new Array(n),this.charAt)for(i=0;i<n;i++)r[i]=this.charAt(o+i);else for(i=0;i<n;i++)r[i]=this[o+i];return r}}k(un.map)||n.shadowCopy(un,{indexOf:function(e,t){var i=this.length,n=~~t;for(n<0&&(n+=i);n<i;n++)if(this[n]===e)return n;return-1},lastIndexOf:function(e,t){var i=this.length,n=null==t?i-1:t;for(n<0&&(n=Math.max(0,i+n));n>=0;n--)if(this[n]===e)return n;return-1},forEach:C("","_",""),filter:C("r=[],j=0,","if(_)r[j++]=this[i]","return r"),map:C("r=[],","r[i]=_","return r"),some:C("","if(_)return true","return false"),every:C("","if(!_)return false","return true")});var Dn=function(){var e={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},t=function(e,t){return("000000"+(t||0)).slice(-e)},i=function(i){var n=i.charCodeAt(0),r=e[n];return r||"\\u00"+t(2,n.toString(16))},n=/[\x00-\x1f\x22\x5c]/g;return function(e){return n.lastIndex=0,'"'+(n.test(e)?String(e).replace(n,i):e)+'"'}}();try{n._quote=msie<=8?Dn:JSON.stringify}catch(e){n._quote=Dn}var Mn={};"Boolean Number String Function Array Date RegExp Object Error".replace(n.rword,function(e){Mn["[object "+e+"]"]=e.toLowerCase()}),n.type=function(e){return null==e?String(e):"object"==typeof e||"function"==typeof e?Mn[ln.call(e)]||"object":typeof e};var Ln=/^\s*\bfunction\b/;n.isFunction="object"==typeof alert?function(e){try{return Ln.test(e+"")}catch(e){return!1}}:function(e){return"[object Function]"===ln.call(e)};var On=/^\[object (?:Window|DOMWindow|global)\]$/;n.isWindow=S(n.window)?S:T;var Nn,Pn;for(Nn in n({}))break;Pn="0"!==Nn,n.isPlainObject=/\[native code\]/.test(Object.getPrototypeOf)?A:E;var Rn=/object|function/;n.mix=n.fn.mix=function(){var e=arguments.length,t=!1,i=0,n=[];for(!0===arguments[0]&&(t=!0,i=1);i<e;i++){var r=arguments[i];r=r&&Rn.test(typeof r)?r:{},n.push(r)}return 1===n.length&&n.unshift(this),I(t,n)};var jn,zn=/(Array|List|Collection|Map|Arguments)\]$/;n.each=function(e,t){if(e){var i=0;if(D(e))for(var n=e.length;i<n&&!1!==t(i,e[i]);i++);else for(i in e)if(e.hasOwnProperty(i)&&!1===t(i,e[i]))break}},function(){var e=["%cavalon.js %c"+n.version+" %cin debug mode, %cmore...","color: rgb(114, 157, 52); font-weight: normal;","color: rgb(85, 85, 85); font-weight: normal;","color: rgb(85, 85, 85); font-weight: normal;","color: rgb(82, 140, 224); font-weight: normal; text-decoration: underline;"];if("object"==typeof console){var t=console,i=t.groupCollapsed||t.log;Function.apply.call(i,t,e),t.log("You're running avalon in debug mode - messages will be printed to the console to help you fix problems and optimise your application.\n\nTo disable debug mode, add this line at the start of your app:\n\n avalon.config({debug: false});\n\nDebug mode also automatically shut down amicably when your app is minified.\n\nGet help and support:\n https://segmentfault.com/t/avalon\n http://avalonjs.coding.me/\n http://www.baidu-x.com/?q=avalonjs\n http://www.avalon.org.cn/\n\nFound a bug? Raise an issue:\n https://github.com/RubyLouvre/avalon/issues\n\n"),i!==console.log&&t.groupEnd(e)}}();var Fn=/<script[^>]*>([\S\s]*?)<\/script\s*>/gim,Bn=/\s+(on[^=\s]+)(?:=("[^"]*"|'[^']*'|[^\s>]+))?/g,Un=/<\w+\b(?:(["'])[^"]*?(\1)|[^>])*>/gi,$n={a:/\b(href)\=("javascript[^"]*"|'javascript[^']*')/gi,img:/\b(src)\=("javascript[^"]*"|'javascript[^']*')/gi,form:/\b(action)\=("javascript[^"]*"|'javascript[^']*')/gi},qn={yyyy:R("FullYear",4),yy:R("FullYear",2,0,!0),y:R("FullYear",1),MMMM:j("Month"),MMM:j("Month",!0),MM:R("Month",2,1),M:R("Month",1,1),dd:R("Date",2),d:R("Date",1),HH:R("Hours",2),H:R("Hours",1),hh:R("Hours",2,-12),h:R("Hours",1,-12),mm:R("Minutes",2),m:R("Minutes",1),ss:R("Seconds",2),s:R("Seconds",1),sss:R("Milliseconds",3),EEEE:j("Day"),EEE:j("Day",!0),a:F,Z:z},Hn=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,Wn=/^\/Date\((\d+)\)\/$/,Vn={AMPMS:{0:"上午",1:"下午"},DAY:{0:"星期日",1:"星期一",2:"星期二",3:"星期三",4:"星期四",5:"星期五",6:"星期六"},MONTH:{0:"1月",1:"2月",2:"3月",3:"4月",4:"5月",5:"6月",6:"7月",7:"8月",8:"9Line truncated
La[this.type]||(n.warn("ms-"+this.type+"指令的值不建议使用数组形式了!"),La[this.type]=1)}var r=!1,a={};if(t){if(this.deep){"number"==typeof this.deep&&this.deep;for(var o in e){if(!xt(e[o],t[o],4))return this.value=e,!0;a[o]=e[o]}}else for(var s in e)e[s]!==t[s]&&(r=!0),a[s]=e[s];for(var l in t)l in a||(r=!0,a[l]="")}else a=e,r=!0;if(r)return this.value=a,!0}return!1},update:function(e,t){var i=e.dom;if(i&&1===i.nodeType){var r=n(i);for(var a in t)r.css(a,t[a])}}}),Na=Oa.diff,Pa={TransitionEvent:"transitionend",WebKitTransitionEvent:"webkitTransitionEnd",OTransitionEvent:"oTransitionEnd",otransitionEvent:"otransitionEnd"},Ra=void 0,ja=void 0,za=void 0,Fa=void 0,Ba=void 0,Ua=void 0;for(Fa in Pa){if(nn[Fa]){ja=Pa[Fa];break}try{document.createEvent(Fa);ja=Pa[Fa];break}catch(e){}}"string"==typeof ja&&(Ra=!0,Ua=ja),Pa={AnimationEvent:"animationend",WebKitAnimationEvent:"webkitAnimationEnd"};for(Fa in Pa)if(nn[Fa]){za=Pa[Fa];break}"string"==typeof za&&(Ra=!0,Ba=za);var $a=n.directive("effect",{priority:5,diff:function(e){var t=this.node;"string"==typeof e&&(this.value=e={is:e},n.warn("ms-effect的指令值不再支持字符串,必须是一个对象")),this.value=t.effect=e;var i=this;return!!Na.call(this,e,this.oldValue)&&(setTimeout(function(){t.animating=!0,$a.update.call(i,t,t.effect)}),t.animating=!1,!0)},update:function(e,t,i){var r=e.dom;if(r&&1===r.nodeType){var a=t||i,o=a.is,s=n.effects[o];if(!s)return void n.warn(o+" effect is undefined");var l={},c=qa[a.action];if("function"!=typeof Wa.prototype[c])return void n.warn("action is undefined");var u=new n.Effect(r);return n.mix(l,s,a,{action:c}),l.queue?(Ha.push(function(){u[c](l)}),Tt()):u[c](l),!0}}}),qa={true:"enter",false:"leave",enter:"enter",leave:"leave",move:"move",undefined:"enter"},Ha=[];n.effects={},n.effect=function(e,t){var i=n.effects[e]=t||{};return Ra&&!1!==i.css&&(St(i,"enterClass",e+"-enter"),St(i,"enterActiveClass",i.enterClass+"-active"),St(i,"leaveClass",e+"-leave"),St(i,"leaveActiveClass",i.leaveClass+"-active")),i};var Wa=function(e){this.dom=e};n.Effect=Wa,Wa.prototype={enter:At("Enter"),leave:At("Leave"),move:At("Move")};var Va=new e(128);n.applyEffect=function(e,t,i){var r=i.cb,a=t.effect;if(a&&e&&1===e.nodeType){var o=i.hook,s=a[o];r&&(Array.isArray(s)?s.push(r):a[o]=s?[s,r]:[r]),It(i),n.directives.effect.update(t,a,n.shadowCopy({},i))}else r&&r(e)};var Ga=n.cssName("transition-duration"),Ya=n.cssName("animation-duration"),Ka=/\d+s$/,Xa="none";n.parseDisplay=Ot,n.directive("visible",{diff:function(e,t){var i=!!e;if(void 0===t||i!==t)return this.value=i,!0},ready:!0,update:function(e,t){var i=e.dom;if(i&&1===i.nodeType){var r,a=i.style.display;t?(a===Xa&&((r=e.displayValue)||(i.style.display="",""===i.style.cssText&&i.removeAttribute("style"))),""===i.style.display&&n(i).css("display")===Xa&&n.contains(i.ownerDocument,i)&&(r=Ot(i))):a!==Xa&&(r=Xa,e.displayValue=a);var o=function(){void 0!==r&&(i.style.display=r)};n.applyEffect(i,e,{hook:t?"onEnterDone":"onLeaveDone",cb:o})}}}),n.directive("text",{delay:!0,init:function(){var e=this.node;e.isVoidTag&&n.error("自闭合元素不能使用ms-text");var t={nodeName:"#text",nodeValue:this.getValue()};e.children.splice(0,e.children.length,t),Yi&&(n.clearHTML(e.dom),e.dom.appendChild(n.vdom(t,"toDOM"))),this.node=t;this.type=this.name="expr";var i=n.directives.expr,r=this;this.callback=function(e){i.update.call(r,r.node,e)}}}),n.directive("expr",{update:function(e,t){t=null==t||""===t?"​":t,e.nodeValue=t,e.dom&&(e.dom.data=t)}}),n.directive("attr",{diff:Na,update:function(e,t){var i=e.props;for(var n in t)!1==!!t[n]?delete i[n]:i[n]=t[n];var r=e.dom;r&&1===r.nodeType&&ne(r,t)}}),n.directive("html",{update:function(e,t){this.beforeDispose(),this.innerRender=n.scan('<div class="ms-html-container">'+t+"</div>",this.vm,function(){var t=this.root;e.children&&(e.children.length=0),e.children=t.children,this.root=e,e.dom&&n.clearHTML(e.dom)})},beforeDispose:function(){this.innerRender&&this.innerRender.dispose()},delay:!0}),n.directive("if",{delay:!0,priority:5,init:function(){this.placeholder=x("if");var e=this.node.props;delete e["ms-if"],delete e[":if"],this.fragment=n.vdom(this.node,"toHTML")},diff:function(e,t){var i=!!e;if(void 0===t||i!==t)return this.value=i,!0},update:function(e,t){if(void 0===this.isShow&&t)return void Nt(this,e);this.isShow=t;var i=this.placeholder;if(t){var n=i.parentNode;Nt(this,e),n&&n.replaceChild(e.dom,i)}else{this.beforeDispose(),e.nodeValue="if",e.nodeName="#comment",delete e.children;var r=e.dom,n=r&&r.parentNode;e.dom=i,n&&n.replaceChild(i,r)}},beforeDispose:function(){this.innerRender&&this.innerRender.dispose()}}),n.directive("on",{beforeInit:function(){this.getter=n.noop},init:function(){var e=this.node,t=this.name.replace("ms-on-","e").replace("-","_"),i=t+"_"+this.expr.replace(/\s/g,"").replace(/[^$a-z]/gi,function(e){return e.charCodeAt(0)}),r=n.eventListeners[i];if(!r){var a=Je(this.expr),o=a[0],s=a[1];o=et(o),s&&(s=s.replace(/__valueLine truncated
return'{\r\n "config": {\r\n "menus": [{\r\n "icon": "",\r\n "field": "course",\r\n "tip": "",\r\n "href": "javascript:void(0);",\r\n "hide": false,\r\n\r\n "iconurl": "/static/public/img/seat.png",\r\n "spread": true,\r\n "value": "&#xe705;",\r\n "menus": [{\r\n "href": "/slab/footprintsreport",\r\n "icon": "",\r\n "field": "footprintsreport",\r\n "tip": "",\r\n "hide": true,\r\n "roles": ["user", "student", "teacher", "college_admin", "school_admin", "designer"],\r\n "value": "icon-zuji"\r\n\r\n },\r\n {\r\n "href": "/slab/pclass",\r\n "icon": "",\r\n "field": "pclass",\r\n "tip": "",\r\n "hide": false,\r\n "value": "icon-gongkaike",\r\n "roles": ["user", "student", "teacher", "college_admin", "school_admin", "designer"]\r\n },\r\n {\r\n "href": "/slab/iclass",\r\n "icon": "",\r\n "field": "iclass",\r\n "tip": "",\r\n "hide": true,\r\n "value": "icon-ketangpeixun",\r\n "roles": ["student"]\r\n },\r\n {\r\n "href": "/slab/vclass",\r\n "icon": "",\r\n "field": "vclass",\r\n "hide": true,\r\n "tip": "",\r\n "value": "icon-ketang",\r\n "roles": ["user", "student", "teacher", "college_admin", "school_admin", "designer"]\r\n },\r\n {\r\n\r\n "href": "/slab/studyreport",\r\n "icon": "",\r\n "field": "studyreport",\r\n "hide": true,\r\n "tip": "",\r\n "value": "icon-baogao",\r\n "roles": ["user", "student", "teacher", "college_admin", "school_admin", "designer"]\r\n },\r\n {\r\n "href": "/slab/comment",\r\n "icon": "",\r\n "field": "comment",\r\n "hide": true,\r\n "tip": "",\r\n "value": "icon-chat",\r\n "roles": ["user", "student", "teacher", "college_admin", "school_admin", "designer"]\r\n }\r\n\r\n ]\r\n }],\r\n "contestmenus": [{\r\n "href": "/slab/footprintscontest",\r\n "icon": "",\r\n "field": "footprintscontest",\r\n "tip": "",\r\n "value": "icon-zuji",\r\n "hide": true\r\n },\r\n {\r\n "href": "/slab/contest_course",\r\n "icon": "",\r\n "field": "contest_course",\r\n "tip": "",\r\n "value": "icon-gongkaike",\r\n "hide": true\r\n }\r\n ],\r\n "settingmenus": [{\r\n "href": "/slab/personalinfo",\r\n "icon": "",\r\n "field": "personalinfo",\r\n "tip": "",\r\n "value": "&#xe620;",\r\n "hide": true\r\n },\r\n {\r\n "href": "/slab/idauth",\r\n "icon": "",\r\n "field": "idauth",\r\n "tip": "",\r\n "value": "&#xe66f;",\r\n "hide": true\r\n }\r\n ],\r\n "tlabmenus": [\r\n {\r\n "href": "/tlab/sharecode",\r\n "tip": "",\r\n "field": "sharecode",\r\n "type": "sharecode",\r\n "icon": "icon-yaoqingma",\r\n "roles": [ "teacher" ],\r\n "hide": true\r\n },\r\n {\r\n "href": "/tlab/tfootprintsreport",\r\n "tip": "",\r\n "field": "tfootprintsreport",\r\n "type": "learncenter",\r\n "icon": "icon-zuji",\r\n "hide": true,\r\n "roles": [ "teacher" ]\r\n },\r\n {\r\n "href": "/tlab/exptemplate/",\r\n\r\n "field": "exptemplate",\r\n "tip": "",\r\n\r\n "icon": "icon-muban",\r\n "type": "designCenter",\r\n "hide": true,\r\n "roles": [ "teacher", "designer" ]\r\n\r\n },\r\n {\r\n "href": "/tlab/labsetting/",\r\n\r\n "field": "labsetting",\r\n "tip": "",\r\n "type": "designCenter",\r\n\r\n "icon": "icon-huanjing",\r\n "hide": true,\r\n "roles": [ "teacher", "designer" ]\r\n\r\n },\r\n {\r\n "href": "/tlab/coursedesign",\r\n\r\n "field": "coursedesign",\r\n "tip": "",\r\n "type": "designCenter",\r\n "hide": true,\r\n\r\n "icon": "icon-design",\r\n "roles": [ "teacher", "designer" ]\r\n },\r\n {\r\n "href": "/tlab/pcourseapply",\r\n "field": "pcourseapply",\r\n "tip": "",\r\n "type": "designCenter",\r\n "hide": true,\r\n "icon": "icon-shenqingshouquan",\r\n "roles": [ "teacher", "designer" ]\r\n },\r\n {\r\n "href": "/tlab/teststore",\r\n "field": "teststore",\r\n "tip": "",\r\n "type": "designCenter",\r\n "hide": true,\r\n "icon": "icon-baogao",\r\n "roles": [ "teacher", "designer" ]\r\n },\r\n {\r\n "href": "/tlab/tlabvclass",\r\n "tip": "",\r\n "field": "tlabvclass",\r\n "hide": true,\r\n "type": "learncenteLine truncated
for(var h in a.addresses){var p=[],f=a.addresses[h];for(var m in f){var g=f[m];p.push(g)}a.addresses[h]=p}e.servers.push(a)}e.routers=[];for(i in t.routers){n=[],a=t.routers[i],r=[];for(i in a.ports)o=a.ports[i],s=t.ports[o],r.push(s),s.fixed_ips&&1==s.fixed_ips.length&&(l=s.fixed_ips[0],l.subnet_id&&(c=t.subnets[l.subnet_id])&&(s.subnet=c,n.push(c)));a.floatingips&&(a.floatingips=t.floatingips[a.floatingips]),a.ports=r,a.subnets=n,e.routers.push(a)}e.loadbalancers=[];for(i in t.loadbalancers){a=t.loadbalancers[i];var v=[],y=[];n=[],r=[];for(i in t.floatingips){var _=t.floatingips[i];_.port_id==a.vip_port_id&&v.push(_)}if(a.vip_subnet_id)c=t.subnets[a.vip_subnet_id],n.push(c),(s=t.ports[a.vip_port_id])&&(s.subnet=c,r.push(s));else for(i in t.subnets)c=t.subnets[i],c.ports&&c.ports.forEach(function(e){e==a.vip_port_id&&(s=t.ports[a.vip_port_id])&&(s.subnet=c,r.push(s))});for(i in a.listeners){var b=a.listeners[i].id;if(t.listeners[b]){var w=t.listeners[b];w.default_pool_id&&t.pools[w.default_pool_id]&&(w.pool=t.pools[w.default_pool_id]),y.push(w)}}a.floatingips=v,a.listeners=y,a.subnets=n,a.ports=r,e.loadbalancers.push(a)}e.networks=[],e.subnets=[];for(i in t.networks){n=[],a=t.networks[i];for(var x in a.subnets)c=a.subnets[x],(c=t.subnets[c])&&(n.push(c),e.subnets.push(c));a.subnets=n,e.networks.push(a)}return e.ports=t.ports,e},getData:function(e,t){var i=this.dict[e];return t?JSON.parse(JSON.stringify(i[t])):JSON.parse(JSON.stringify(i))},checkFullData:function(e){return this.full||(this.full={}),this.full[e]},readData:function(e){if(!this.full)return{};for(var t={},i=0;i<e.length;i++){var n=e[i];if(this.full[n]){for(var r=Object.keys(this.full[n]),a=[],o=0,s=0;s<r.length;s++){var l=this.full[n][r[s]];!l||l.status&&"deleted"==l.status||(a[o++]=l)}a.sort(function(e,t){switch(n){case"servers":return-Date.parse(e.created)+Date.parse(t.created);case"volume":return-Date.parse(e.createdAt)+Date.parse(t.createdAt);case"flavors":case"keypairs":return 0;default:return t.id-e.id}}),t[n]=JSON.parse(JSON.stringify(a))}}return t},readSingleData:function(e,t){if(!this.full||!this.full[e])return null;var i=this.full[e][t];return i?JSON.parse(JSON.stringify(i)):null},getSingleData:function(e,t,i,n,r){function a(t){var i={};return i[e.substring(0,e.length-1)]=t,i}var o=$.Deferred(),s=this;if(n=n||!this.checkFullData(e)){var l=null;switch(e){case"servers":l=this.service.getServer(t,i);break;case"volumes":l=this.service.getVolume(t,i);break;case"snapshots":l=this.service.getSnapshot(t,i);break;case"routers":l=this.service.getRouter(t,i);break;case"networks":l=this.service.getNetwork(t,i);break;case"ports":l=this.service.getPort(t,i);break;case"floatingips":l=this.service.getFloating_Ip(t,i);break;case"images":l=this.service.getImage(t,i);break;case"alarms":l=this.service.getAlarm(t,i);break;case"combo-alarms":l=this.service.getComboAlarm(t,i);break;case"notifications":l=this.service.getNotification(t,i);break;case"listeners":l=s.service.getListener(t,i);break;case"users":l=this.service.getUser(t,i);break;case"pools":l=this.service.getPool(t,i);break;case"loadbalancers":l=this.service.getLoadBalancer(t,i);break;case"healthmonitors":l=this.service.getHealth_Monitor(t,i);break;case"members":l=this.service.getMember(t,i);break;case"l7policys":l=this.service.getL7policy(t,i);break;case"ikepolicys":l=this.service.getIKEPolicy(t,i);break;case"ipsecpolicys":l=this.service.getIPsecPolicy(t,i);break;case"ipsec_site_connections":l=this.service.getIPsecSiteConnection(t,i);break;case"vpnservices":l=this.service.getVpnService(t,i);break;case"database_instances":l=this.service.getDBInstance(t,i);break;case"subnets":l=this.service.getSubnet(t,i);break;case"security_groups":l=this.service.getSecurity_Group(t,i);break;case"security_group_rules":l=this.service.getSecurity_GroupRule(t,i);break;default:l=this.service.getObject(e,t,i)}l?(l.done(function(i){var n=Object.keys(i);if(n&&1==n.length){var l=n[0],c=i[l];s.full[e]||(s.full[e]={});var u=s.full[e][t];return("server"!=l||"DELETED"!=c.status&&"deleting"!=c["OS-EXT-STS:task_state"]||u)&&(s.full[e][t]=c),void(u&&!r?o.resolve(a(c),a(u)):o.resolve(a(c)))}o.reject("Not Found")}),l.fail(function(){if(s.full[e]&&s.full[e][t]){var i=s.full[e][t];delete s.full[e][t],o.reject("Not Found",i)}else o.reject("Not Found")})):o.reject("Not Found")}else{var c=this.readSingleData(e,t);c?o.resolve(a(c)):o.reject("Not Found")}return o}},n}),define("modules/console/basecontroller",["avalon","jquery","text!public/js/controllers/base_lang.json"],function(e,t,i){function n(){}return n.prototype={preInitialize:function(){},initAvalon:function(){},getModelLabel:function(){return""},mergeLanguage:function(e){if("string"!=typeof e&&"number"!=typeof e&&"boolean"!=typeof e){if(e.field&&!e.title&&"string"==typeof e.field){var t=this.i18n[e.field];e.title=t||""}for(t in e)"field"!=t&&"title"!=t&&this.mergeLanguage(e[t])}},updateLanguageObj:function(e){return e},_filterLang:function(e){var t=function(e,t){return SDC.env.sLine truncated
;var o="translate(0px, 0px)",s="matrix(1, 0, 0, 1, 0, 0)";this.translate=function(e,t){i.x=e,i.y=t,o="translate("+e+"px,"+t+"px)",r.style.transform=r.style.WebkitTransform=r.style.MozTransform=r.style.OTransform=r.style.msTransform=o+" "+s},this.move=function(e,t,n,a){if(i.parent!==e){i.parent&&delete i.parent.children[i.__unique_id],i.parent=e,e.children[i.__unique_id]=i;e.getElement().appendChild(r)}i.translate(t,n),i.z=a,r.style.zIndex=a},this.shade=function(e){i.alpha=e,r.style.opacity=e/255},this.dispose=function(){i.parent&&(delete i.parent.children[i.__unique_id],i.parent=null),r.parentNode&&r.parentNode.removeChild(r)},this.distort=function(e,t,n,a,l,c){i.matrix=[e,t,n,a,l,c],s="matrix("+e+","+t+","+n+","+a+","+l+","+c+")",r.style.transform=r.style.WebkitTransform=r.style.MozTransform=r.style.OTransform=r.style.msTransform=o+" "+s}},Guacamole.Display.VisibleLayer.__next_id=0;var Guacamole=Guacamole||{};Guacamole.InputSink=function(){var e=this,t=document.createElement("textarea");t.style.position="fixed",t.style.outline="none",t.style.border="none",t.style.margin="0",t.style.padding="0",t.style.height="0",t.style.width="0",t.style.left="0",t.style.bottom="0",t.style.resize="none",t.style.background="transparent",t.style.color="transparent",t.addEventListener("keypress",function(e){t.value=""},!1),t.addEventListener("compositionend",function(e){e.data&&(t.value="")},!1),t.addEventListener("input",function(e){e.data&&!e.isComposing&&(t.value="")},!1),t.addEventListener("focus",function(){window.setTimeout(function(){t.click(),t.select()},0)},!0),this.focus=function(){window.setTimeout(function(){t.focus()},0)},this.getElement=function(){return t},document.addEventListener("keydown",function(t){var i=document.activeElement;if(i&&i!==document.body){var n=i.getBoundingClientRect();if(n.left+n.width>0&&n.top+n.height>0)return}e.focus()},!0)};var Guacamole=Guacamole||{};Guacamole.InputStream=function(e,t){var i=this;this.index=t,this.onblob=null,this.onend=null,this.sendAck=function(t,n){e.sendAck(i.index,t,n)}};var Guacamole=Guacamole||{};Guacamole.IntegerPool=function(){var e=this,t=[];this.next_int=0,this.next=function(){return t.length>0?t.shift():e.next_int++},this.free=function(e){t.push(e)}};var Guacamole=Guacamole||{};Guacamole.JSONReader=function(e){var t=this,i=new Guacamole.StringReader(e),n="";this.getLength=function(){return n.length},this.getJSON=function(){return JSON.parse(n)},i.ontext=function(e){n+=e,t.onprogress&&t.onprogress(e.length)},i.onend=function(){t.onend&&t.onend()},this.onprogress=null,this.onend=null};var Guacamole=Guacamole||{};Guacamole.Keyboard=function(e){function t(e,t,i){if(!e)return null;var r,a=e.indexOf("U+");if(a>=0){var o=e.substring(a+2);r=String.fromCharCode(parseInt(o,16))}else{if(1!==e.length||3===t)return k(g[e],t);r=e}return!0===i?r=r.toUpperCase():!1===i&&(r=r.toLowerCase()),n(r.charCodeAt(0))}function i(e){return e<=31||e>=127&&e<=159}function n(e){return i(e)?65280|e:e>=0&&e<=255?e:e>=256&&e<=1114111?16777216|e:null}function r(e,t){return k(m[e],t)}function a(){var e=D();if(!e)return!1;var t;do{t=e,e=D()}while(null!==e);return A()&&o.reset(),t.defaultPrevented}var o=this,s=Guacamole.Keyboard._nextID++,l="_GUAC_KEYBOARD_HANDLED_BY_"+s;this.onkeydown=null,this.onkeyup=null;var c={keyupUnreliable:!1,altIsTypableOnly:!1,capsLockKeyupUnreliable:!1};navigator&&navigator.platform&&(navigator.platform.match(/ipad|iphone|ipod/i)?c.keyupUnreliable=!0:navigator.platform.match(/^mac/i)&&(c.altIsTypableOnly=!0,c.capsLockKeyupUnreliable=!0));var u=function(){var e=this;this.timestamp=(new Date).getTime(),this.defaultPrevented=!1,this.keysym=null,this.reliable=!1,this.getAge=function(){return(new Date).getTime()-e.timestamp}},d=function(e,i,n,a){u.apply(this),this.keyCode=e,this.keyIdentifier=i,this.key=n,this.location=a,this.keysym=t(n,a)||r(e,a),this.keyupReliable=!c.keyupUnreliable,this.keysym&&!C(this.keysym)&&(this.reliable=!0),!this.keysym&&T(e,i)&&(this.keysym=t(i,a,o.modifiers.shift)),o.modifiers.meta&&65511!==this.keysym&&65512!==this.keysym?this.keyupReliable=!1:65509===this.keysym&&c.capsLockKeyupUnreliable&&(this.keyupReliable=!1);var s=!o.modifiers.ctrl&&!c.altIsTypableOnly;(!o.modifiers.alt&&o.modifiers.ctrl||s&&o.modifiers.alt||o.modifiers.meta||o.modifiers.hyper)&&(this.reliable=!0),b[e]=this.keysym};d.prototype=new u;var h=function(e){u.apply(this),this.charCode=e,this.keysym=n(e),this.reliable=!0};h.prototype=new u;var p=function(e,i,n,a){u.apply(this),this.keyCode=e,this.keyIdentifier=i,this.key=n,this.location=a,this.keysym=r(e,a)||t(n,a),o.pressed[this.keysym]||(this.keysym=b[e]||this.keysym),this.reliable=!0};p.prototype=new u;var f=[],m={8:[65288],9:[65289],12:[65291,65291,65291,65461],13:[65293],16:[65505,65505,65506],17:[65507,65507,65508],18:[65513,65513,65027],19:[65299],20:[65509],27:[65307],32:[32],33:[65365,65365,65365,65465],34:[65366,65366,65366,65459],35:[65367,65367,65367,65457],36:[65360,65360,65360,65463],37:[65361,65361,65361,65460],3Line truncated
return Guacamole.Status.Code.CLIENT_BAD_REQUEST;case 403:return Guacamole.Status.Code.CLIENT_FORBIDDEN;case 404:return Guacamole.Status.Code.RESOURCE_NOT_FOUND;case 429:return Guacamole.Status.Code.CLIENT_TOO_MANY;case 503:return Guacamole.Status.Code.SERVER_BUSY}return Guacamole.Status.Code.SERVER_ERROR},Guacamole.Status.Code.fromWebSocketCode=function(e){switch(e){case 1e3:return Guacamole.Status.Code.SUCCESS;case 1006:case 1015:return Guacamole.Status.Code.UPSTREAM_NOT_FOUND;case 1001:case 1012:case 1013:case 1014:return Guacamole.Status.Code.UPSTREAM_UNAVAILABLE}return Guacamole.Status.Code.SERVER_ERROR};var Guacamole=Guacamole||{};Guacamole.StringReader=function(e){function t(e){for(var t="",i=new Uint8Array(e),n=0;n<i.length;n++){var o=i[n];0===r?127==(127|o)?t+=String.fromCharCode(o):223==(31|o)?(a=31&o,r=1):239==(15|o)?(a=15&o,r=2):247==(7|o)?(a=7&o,r=3):t+="�":191==(63|o)?(a=a<<6|63&o,0===--r&&(t+=String.fromCharCode(a))):(r=0,t+="�")}return t}var i=this,n=new Guacamole.ArrayBufferReader(e),r=0,a=0;n.ondata=function(e){var n=t(e);i.ontext&&i.ontext(n)},n.onend=function(){i.onend&&i.onend()},this.ontext=null,this.onend=null};var Guacamole=Guacamole||{};Guacamole.StringWriter=function(e){function t(e){if(s+e>=o.length){var t=new Uint8Array(2*(s+e));t.set(o),o=t}s+=e}function i(e){var n,r;if(e<=127)n=0,r=1;else if(e<=2047)n=192,r=2;else if(e<=65535)n=224,r=3;else{if(!(e<=2097151))return void i(65533);n=240,r=4}t(r);for(var a=s-1,l=1;l<r;l++)o[a--]=128|63&e,e>>=6;o[a]=n|e}function n(e){for(var t=0;t<e.length;t++){i(e.charCodeAt(t))}if(s>0){var n=o.subarray(0,s);return s=0,n}}var r=this,a=new Guacamole.ArrayBufferWriter(e),o=new Uint8Array(8192),s=0;a.onack=function(e){r.onack&&r.onack(e)},this.sendText=function(e){e.length&&a.sendData(n(e))},this.sendEnd=function(){a.sendEnd()},this.onack=null};var Guacamole=Guacamole||{};Guacamole.Tunnel=function(){this.connect=function(e){},this.disconnect=function(){},this.sendMessage=function(e){},this.setState=function(e){e!==this.state&&(this.state=e,this.onstatechange&&this.onstatechange(e))},this.setUUID=function(e){this.uuid=e,this.onuuid&&this.onuuid(e)},this.isConnected=function(){return this.state===Guacamole.Tunnel.State.OPEN||this.state===Guacamole.Tunnel.State.UNSTABLE},this.state=Guacamole.Tunnel.State.CONNECTING,this.receiveTimeout=15e3,this.unstableThreshold=1500,this.uuid=null,this.onuuid=null,this.onerror=null,this.onstatechange=null,this.oninstruction=null},Guacamole.Tunnel.INTERNAL_DATA_OPCODE="",Guacamole.Tunnel.State={CONNECTING:0,OPEN:1,CLOSED:2,UNSTABLE:3},Guacamole.HTTPTunnel=function(e,t,i){function n(e,t){for(var i in t)e.setRequestHeader(i,t[i])}function r(){window.clearTimeout(b),window.clearTimeout(w),u.state===Guacamole.Tunnel.State.UNSTABLE&&u.setState(Guacamole.Tunnel.State.OPEN),b=window.setTimeout(function(){a(new Guacamole.Status(Guacamole.Status.Code.UPSTREAM_TIMEOUT,"Server timeout."))},u.receiveTimeout),w=window.setTimeout(function(){u.setState(Guacamole.Tunnel.State.UNSTABLE)},u.unstableThreshold)}function a(e){window.clearTimeout(b),window.clearTimeout(w),window.clearInterval(x),u.state!==Guacamole.Tunnel.State.CLOSED&&(e.code!==Guacamole.Status.Code.SUCCESS&&u.onerror&&(u.state!==Guacamole.Tunnel.State.CONNECTING&&e.code===Guacamole.Status.Code.RESOURCE_NOT_FOUND||u.onerror(e)),v=!1,u.setState(Guacamole.Tunnel.State.CLOSED))}function o(){if(u.isConnected())if(y.length>0){v=!0;var e=new XMLHttpRequest;e.open("POST",p+u.uuid),e.withCredentials=_,n(e,k),e.setRequestHeader("Content-type","application/octet-stream"),e.onreadystatechange=function(){4===e.readyState&&(r(),200!==e.status?s(e):o())},e.send(y),y=""}else v=!1}function s(e){var t=parseInt(e.getResponseHeader("Guacamole-Status-Code"));if(t){var i=e.getResponseHeader("Guacamole-Error-Message");a(new Guacamole.Status(t,i))}else a(e.status?new Guacamole.Status(Guacamole.Status.Code.fromHTTPCode(e.status),e.statusText):new Guacamole.Status(Guacamole.Status.Code.UPSTREAM_NOT_FOUND))}function l(e){function t(){if(!u.isConnected())return void(null!==i&&clearInterval(i));if(!(e.readyState<2)){var a;try{a=e.status}catch(e){a=200}if(n||200!==a||(n=c()),3===e.readyState||4===e.readyState){if(r(),g===f&&(3!==e.readyState||i?4===e.readyState&&i&&clearInterval(i):i=setInterval(t,30)),0===e.status)return void u.disconnect();if(200!==e.status)return void s(e);var p;try{p=e.responseText}catch(e){return}for(;o<p.length;){if(o>=d){var m=p.substring(d,o),v=p.substring(o,o+1);if(h.push(m),";"===v){var y=h.shift();u.oninstruction&&u.oninstruction(y,h),h.length=0}d=o+1}var _=p.indexOf(".",d);if(-1===_){d=p.length;break}var b=parseInt(p.substring(o+1,_));if(0===b){i&&clearInterval(i),e.onreadystatechange=null,e.abort(),n&&l(n);break}d=_+1,o=d+b}}}}var i=null,n=null,a=0,o=-1,d=0,h=new Array;e.onreadystatechange=g===f?function(){3===e.readyState&&++a>=2&&(g=m,e.onreadystatechange=t),t()}:t,t()}function c(){var e=new XMLHttpRequest;return e.open("GET",h+u.uuid+":"+C++),e.withCredentials=_,n(e,Line truncated
t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(e,t){e.widget("ui.draggable",e.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(t){var i=this.options;return!(this.helper||i.disabled||e(t.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(t),!!this.handle&&(e(!0===i.iframeFix?"iframe":i.iframeFix).each(function(){e("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(e(this).offset()).appendTo("body")}),!0))},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,i){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",t,n))return this._mouseUp({}),!1;this.position=n.position}return this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=this,n=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(n=e.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1),!("original"===this.options.helper&&!e.contains(this.element[0].ownerDocument,this.element[0]))&&("invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==i._trigger("stop",t)&&i._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1)},_mouseUp:function(t){return e("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_createHelper:function(t){var i=this.options,n=e.isFunction(i.helper)?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_adjustOffsetLine truncated
r=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,a=o.maxWidth/this.aspectRatio,t>o.minWidth&&(o.minWidth=t),r>o.minHeight&&(o.minHeight=r),i<o.maxWidth&&(o.maxWidth=i),a<o.maxHeight&&(o.maxHeight=a)),this._vBoundaries=o},_updateCache:function(e){this.offset=this.helper.offset(),n(e.left)&&(this.position.left=e.left),n(e.top)&&(this.position.top=e.top),n(e.height)&&(this.size.height=e.height),n(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,i=this.size,r=this.axis;return n(e.height)?e.width=e.height*this.aspectRatio:n(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===r&&(e.left=t.left+(i.width-e.width),e.top=null),"nw"===r&&(e.top=t.top+(i.height-e.height),e.left=t.left+(i.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,i=this.axis,r=n(e.width)&&t.maxWidth&&t.maxWidth<e.width,a=n(e.height)&&t.maxHeight&&t.maxHeight<e.height,o=n(e.width)&&t.minWidth&&t.minWidth>e.width,s=n(e.height)&&t.minHeight&&t.minHeight>e.height,l=this.originalPosition.left+this.originalSize.width,c=this.position.top+this.size.height,u=/sw|nw|w/.test(i),d=/nw|ne|n/.test(i);return o&&(e.width=t.minWidth),s&&(e.height=t.minHeight),r&&(e.width=t.maxWidth),a&&(e.height=t.maxHeight),o&&u&&(e.left=l-t.minWidth),r&&u&&(e.left=l-t.maxWidth),s&&d&&(e.top=c-t.minHeight),a&&d&&(e.top=c-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var e,t,i,n,r,a=this.helper||this.element;for(e=0;e<this._proportionallyResizeElements.length;e++){if(r=this._proportionallyResizeElements[e],!this.borderDif)for(this.borderDif=[],i=[r.css("borderTopWidth"),r.css("borderRightWidth"),r.css("borderBottomWidth"),r.css("borderLeftWidth")],n=[r.css("paddingTop"),r.css("paddingRight"),r.css("paddingBottom"),r.css("paddingLeft")],t=0;t<i.length;t++)this.borderDif[t]=(parseInt(i[t],10)||0)+(parseInt(n[t],10)||0);r.css({height:a.height()-this.borderDif[0]-this.borderDif[2]||0,width:a.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize;return{left:this.originalPosition.left+t,width:i.width-t}},n:function(e,t,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(t,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,n]))},sw:function(t,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,n]))},ne:function(t,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,n]))},nw:function(t,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,n]))}},_propagate:function(t,i){e.ui.plugin.call(this,t,[i,this.ui()]),"resize"!==t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var i=e(this).data("ui-resizable"),n=i.options,r=i._proportionallyResizeElements,a=r.length&&/textarea/i.test(r[0].nodeName),o=a&&e.ui.hasScroll(r[0],"left")?0:i.sizeDiff.height,s=a?0:i.sizeDiff.width,l={width:i.size.width-s,height:i.size.height-o},c=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,u=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(e.extend(l,u&&c?{top:u,left:c}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};r&&r.length&&e(r[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,n,r,a,o,s,l,c=e(this).data("ui-resizable"),u=c.options,d=c.element,h=u.containment,p=h instanceof e?h.get(0):/parent/.test(h)?d.parent().get(0):h;p&&(c.containerElement=e(p),/document/.test(h)||h===document?(c.containerOffset={left:0,top:0},c.containerPosition={left:0,top:0},c.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNodeLine truncated
this.containment=[i.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var n="absolute"===t?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(r[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:r.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:r.scrollLeft())*n}},_generatePosition:function(t){var i,n,r=this.options,a=t.pageX,o=t.pageY,s="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(s[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(o=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(o=this.containment[3]+this.offset.click.top)),r.grid&&(i=this.originalPageY+Math.round((o-this.originalPageY)/r.grid[1])*r.grid[1],o=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-r.grid[1]:i+r.grid[1]:i,n=this.originalPageX+Math.round((a-this.originalPageX)/r.grid[0])*r.grid[0],a=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-r.grid[0]:n+r.grid[0]:n)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:s.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:s.scrollLeft())}},_rearrange:function(e,t,i,n){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay(function(){r===this.counter&&this.refreshPositions(!n)})},_clear:function(e,t){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&n.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||n.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(t||(n.push(function(e){this._trigger("remove",e,this._uiHash())}),n.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)t||n.push(function(e){return function(t){e._trigger("deactivate",t,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(function(e){return function(t){e._trigger("out",t,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!t){for(thLine truncated
!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,function(t){return"string"==typeof t?{label:t,value:t}:e.extend({label:t.label||t.value,value:t.value||t.label},t)})},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var n=this;e.each(i,function(e,i){n._renderItemData(t,i)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return e("<li>").append(e("<a>").text(i.label)).appendTo(t)},_move:function(e,t){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this._value(this.term),void this.menu.blur()):void this.menu[e](t):void this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var n=new RegExp(e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,function(e){return n.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.text(t))}})}(jQuery),function(e,t){var i,n,r,a,o="ui-button ui-widget ui-state-default ui-corner-all",s="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",l=function(){var t=e(this);setTimeout(function(){t.find(":ui-button").button("refresh")},1)},c=function(t){var i=t.name,n=t.form,r=e([]);return i&&(i=i.replace(/'/g,"\\'"),r=n?e(n).find("[name='"+i+"']"):e("[name='"+i+"']",t.ownerDocument).filter(function(){return!this.form})),r};e.widget("ui.button",{version:"1.10.3",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,l),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var t=this,s=this.options,u="checkbox"===this.type||"radio"===this.type,d=u?"":"ui-state-active";null===s.label&&(s.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(o).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){s.disabled||this===i&&e(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){s.disabled||e(this).removeClass(d)}).bind("click"+this.eventNamespace,function(e){s.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}),this.element.bind("focus"+this.eventNamespace,function(){t.buttonElement.addClass("ui-state-focus")}).bind("blur"+this.eventNamespace,function(){t.buttonElement.removeClass("ui-state-focus")}),u&&(this.element.bind("change"+this.eventNamespace,function(){a||t.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(e){s.disabled||(a=!1,n=e.pageX,r=e.pageY)}).bind("mouseup"+this.eventNamespace,function(e){s.disabled||n===e.pageX&&r===e.pageY||(a=!0)})),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(s.disabled||a)return!1}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(s.disabled||a)return!1;e(this).addClass("ui-state-active"),t.buttonElement.attr("aria-pressed","true");var i=t.element[0];c(i).not(i).map(function(){return e(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){if(s.disabled)return!1;e(tLine truncated
case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":r("'")?i+="'":n=!0;break;default:i+=e.charAt(t)}return i},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),n=e.lastVal=e.input?e.input.val():null,r=this._getDefaultDate(e),a=r,o=this._getFormatConfig(e);try{a=this.parseDate(i,n,o)||r}catch(e){n=t?"":n}e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),e.currentDay=n?a.getDate():0,e.currentMonth=n?a.getMonth():0,e.currentYear=n?a.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,i,n){var r=null==i||""===i?n:"string"==typeof i?function(i){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),i,e.datepicker._getFormatConfig(t))}catch(e){}for(var n=(i.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,r=n.getFullYear(),a=n.getMonth(),o=n.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=s.exec(i);l;){switch(l[2]||"d"){case"d":case"D":o+=parseInt(l[1],10);break;case"w":case"W":o+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1],10),o=Math.min(o,e.datepicker._getDaysInMonth(r,a));break;case"y":case"Y":r+=parseInt(l[1],10),o=Math.min(o,e.datepicker._getDaysInMonth(r,a))}l=s.exec(i)}return new Date(r,a,o)}(i):"number"==typeof i?isNaN(i)?n:function(e){var t=new Date;return t.setDate(t.getDate()+e),t}(i):new Date(i.getTime());return r=r&&"Invalid Date"===r.toString()?n:r,r&&(r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0)),this._daylightSavingAdjust(r)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var n=!t,r=e.selectedMonth,a=e.selectedYear,o=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=o.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=o.getMonth(),e.drawYear=e.selectedYear=e.currentYear=o.getFullYear(),r===e.selectedMonth&&a===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(n?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var i=this._get(t,"stepMonths"),n="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker._adjustDate(n,-i,"M")},next:function(){e.datepicker._adjustDate(n,+i,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(n)},selectDay:function(){return e.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(n,this,"Y"),!1}};e(this).bind(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,i,n,r,a,o,s,l,c,u,d,h,p,f,m,g,v,y,_,b,w,x,k,C,T,S,E,A,I,D,M,L,O,N,P,R,j,z,F,B=new Date,U=this._daylightSavingAdjust(new Date(B.getFullYear(),B.getMonth(),B.getDate())),$=this._get(e,"isRTL"),q=this._get(e,"showButtonPanel"),H=this._get(e,"hideIfNoPrevNext"),W=this._get(e,"navigationAsDateFormat"),V=this._getNumberOfMonths(e),G=this._get(e,"showCurrentAtPos"),Y=this._get(e,"stepMonths"),K=1!==V[0]||1!==V[1],X=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),Q=this._getMinMaxDate(e,"min"),Z=this._getMinMaxDate(e,"max"),J=e.drawMonth-G,ee=e.drawYear;if(J<0&&(J+=12,ee--),Z)for(t=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-V[0]*V[1]+1,Z.getDate())),t=Q&&t<Q?Q:t;this._daylightSavingAdjust(new Date(ee,J,1))>t;)--J<0&&(J=11,ee--);for(e.drawMonth=J,e.drawYear=ee,i=this._get(e,"prevText"),i=W?this.formatDate(i,this._daylightSavingAdjust(new Date(ee,J-Y,1)),this._getFormatConfig(e)):i,n=this._canAdjustMonth(e,-1,ee,J)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+($?"e":"w")+"'>"+i+"</span></a>":H?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+($?"e":"w")+"'>"+i+"</span></a>",r=this._get(e,"nextText"),r=W?this.formatDate(r,this._daylightSavingAdjust(new Date(ee,J+Y,1)),this._getFormatConfig(e)):r,a=this._canAdjustMonth(e,1,ee,J)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+r+"'><span class='ui-icon ui-icon-circle-triangle-"+($?"w":"e")+"'>"+r+"</span></a>":H?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+r+"'><span class='ui-icon ui-icon-circle-triangle-"+($?Line truncated
o.to=e.effects.setTransition(o,d,a.to.y,o.to)),a.from.x!==a.to.x&&(y=y.concat(h),o.from=e.effects.setTransition(o,h,a.from.x,o.from),o.to=e.effects.setTransition(o,h,a.to.x,o.to))),"content"!==m&&"both"!==m||a.from.y!==a.to.y&&(y=y.concat(u).concat(c),o.from=e.effects.setTransition(o,u,a.from.y,o.from),o.to=e.effects.setTransition(o,u,a.to.y,o.to)),e.effects.save(o,y),o.show(),e.effects.createWrapper(o),o.css("overflow","hidden").css(o.from),g&&(r=e.effects.getBaseline(g,n),o.from.top=(n.outerHeight-o.outerHeight())*r.y,o.from.left=(n.outerWidth-o.outerWidth())*r.x,o.to.top=(n.outerHeight-o.to.outerHeight)*r.y,o.to.left=(n.outerWidth-o.to.outerWidth)*r.x),o.css(o.from),"content"!==m&&"both"!==m||(d=d.concat(["marginTop","marginBottom"]).concat(u),h=h.concat(["marginLeft","marginRight"]),c=s.concat(d).concat(h),o.find("*[width]").each(function(){var i=e(this),n={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&&e.effects.save(i,c),i.from={height:n.height*a.from.y,width:n.width*a.from.x,outerHeight:n.outerHeight*a.from.y,outerWidth:n.outerWidth*a.from.x},i.to={height:n.height*a.to.y,width:n.width*a.to.x,outerHeight:n.height*a.to.y,outerWidth:n.width*a.to.x},a.from.y!==a.to.y&&(i.from=e.effects.setTransition(i,d,a.from.y,i.from),i.to=e.effects.setTransition(i,d,a.to.y,i.to)),a.from.x!==a.to.x&&(i.from=e.effects.setTransition(i,h,a.from.x,i.from),i.to=e.effects.setTransition(i,h,a.to.x,i.to)),i.css(i.from),i.animate(i.to,t.duration,t.easing,function(){f&&e.effects.restore(i,c)})})),o.animate(o.to,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){0===o.to.opacity&&o.css("opacity",o.from.opacity),"hide"===p&&o.hide(),e.effects.restore(o,y),f||("static"===v?o.css({position:"relative",top:o.to.top,left:o.to.left}):e.each(["top","left"],function(e,t){o.css(t,function(t,i){var n=parseInt(i,10),r=e?o.to.left:o.to.top;return"auto"===i?r+"px":n+r+"px"})})),e.effects.removeWrapper(o),i()}})}}(jQuery),function(e,t){e.effects.effect.shake=function(t,i){var n,r=e(this),a=["position","top","bottom","left","right","height","width"],o=e.effects.setMode(r,t.mode||"effect"),s=t.direction||"left",l=t.distance||20,c=t.times||3,u=2*c+1,d=Math.round(t.duration/u),h="up"===s||"down"===s?"top":"left",p="up"===s||"left"===s,f={},m={},g={},v=r.queue(),y=v.length;for(e.effects.save(r,a),r.show(),e.effects.createWrapper(r),f[h]=(p?"-=":"+=")+l,m[h]=(p?"+=":"-=")+2*l,g[h]=(p?"-=":"+=")+2*l,r.animate(f,d,t.easing),n=1;n<c;n++)r.animate(m,d,t.easing).animate(g,d,t.easing);r.animate(m,d,t.easing).animate(f,d/2,t.easing).queue(function(){"hide"===o&&r.hide(),e.effects.restore(r,a),e.effects.removeWrapper(r),i()}),y>1&&v.splice.apply(v,[1,0].concat(v.splice(y,u+1))),r.dequeue()}}(jQuery),function(e,t){e.effects.effect.slide=function(t,i){var n,r=e(this),a=["position","top","bottom","left","right","width","height"],o=e.effects.setMode(r,t.mode||"show"),s="show"===o,l=t.direction||"left",c="up"===l||"down"===l?"top":"left",u="up"===l||"left"===l,d={};e.effects.save(r,a),r.show(),n=t.distance||r["top"===c?"outerHeight":"outerWidth"](!0),e.effects.createWrapper(r).css({overflow:"hidden"}),s&&r.css(c,u?isNaN(n)?"-"+n:-n:n),d[c]=(s?u?"+=":"-=":u?"-=":"+=")+n,r.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===o&&r.hide(),e.effects.restore(r,a),e.effects.removeWrapper(r),i()}})}}(jQuery),function(e,t){e.effects.effect.transfer=function(t,i){var n=e(this),r=e(t.to),a="fixed"===r.css("position"),o=e("body"),s=a?o.scrollTop():0,l=a?o.scrollLeft():0,c=r.offset(),u={top:c.top-s,left:c.left-l,height:r.innerHeight(),width:r.innerWidth()},d=n.offset(),h=e("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(t.className).css({top:d.top-s,left:d.left-l,height:n.innerHeight(),width:n.innerWidth(),position:a?"fixed":"absolute"}).animate(u,t.duration,t.easing,function(){h.remove(),i()})}}(jQuery),function(e,t){e.widget("ui.menu",{version:"1.10.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,e.proxy(function(e){this.options.disabled&&e.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(e){e.preventDefault()},"click .ui-state-disabled > a":function(e){e.preventDefault()},"click .ui-menu-item:has(a)":function(t){var i=e(t.target).closest(".ui-menu-item");!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(t),i.has(".ui-menu").length?this.expand(t):this.element.is(":focus")||(this.Line truncated
this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t={},i=this.element;return e.each(["min","max","step"],function(e,n){var r=i.attr(n);void 0!==r&&r.length&&(t[n]=r)}),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){if(this.cancelBlur)return void delete this.cancelBlur;this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e)},mousewheel:function(e,t){if(t){if(!this.spinning&&!this._start(e))return!1;this._spin((t>0?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()}},"mousedown .ui-spinner-button":function(t){function i(){this.element[0]===this.document[0].activeElement||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),!1!==this._start(t)&&this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(e(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var e=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=e.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*e.height())&&e.height()>0&&e.height(e.height()),this.options.disabled&&this.disable()},_keydown:function(t){var i=this.options,n=e.ui.keyCode;switch(t.keyCode){case n.UP:return this._repeat(null,1,t),!0;case n.DOWN:return this._repeat(null,-1,t),!0;case n.PAGE_UP:return this._repeat(null,i.page,t),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,t),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;</span></a>"},_start:function(e){return!(!this.spinning&&!1===this._trigger("start",e))&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(e,t,i){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,t,i)},e),this._spin(t*this.options.step,i)},_spin:function(e,t){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+e*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",t,{value:i})||(this._value(i),this.counter++)},_increment:function(t){var i=this.options.incremental;return i?e.isFunction(i)?i(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(e){var t,i,n=this.options;return t=null!==n.min?n.min:0,i=e-t,i=Math.round(i/n.step)*n.step,e=t+i,e=parseFloat(e.toFixed(this._precision())),null!==n.max&&e>n.max?n.max:null!==n.min&&e<n.min?n.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,t){if("culture"===e||"numberFormat"===e){var i=this._parse(this.element.val());return this.options[e]=t,void this.element.val(this._format(i))}"max"!==e&&"min"!==e&&"step"!==e||"string"==typeof t&&(t=this._parse(t)),"icons"===e&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(t.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(t.down)),this._super(e,t),"disabled"===e&&(t?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:t(function(e){this._super(e),this._value(this.element.val())}),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e}Line truncated
applyDemoStyles:!1,closable:!0,resizable:!0,slidable:!0,initClosed:!1,initHidden:!1,contentSelector:".ui-layout-content",contentIgnoreSelector:".ui-layout-ignore",findNestedContent:!1,paneClass:"ui-layout-pane",resizerClass:"ui-layout-resizer",togglerClass:"ui-layout-toggler",buttonClass:"ui-layout-button",minSize:0,maxSize:0,spacing_open:6,spacing_closed:6,togglerLength_open:50,togglerLength_closed:50,togglerAlign_open:"center",togglerAlign_closed:"center",togglerContent_open:"",togglerContent_closed:"",resizerDblClickToggle:!0,autoResize:!0,autoReopen:!0,resizerDragOpacity:1,maskContents:!1,maskObjects:!1,maskZindex:null,resizingGrid:!1,livePaneResizing:!1,liveContentResizing:!1,liveResizingTolerance:1,sliderCursor:"pointer",slideTrigger_open:"click",slideTrigger_close:"mouseleave",slideDelay_open:300,slideDelay_close:300,hideTogglerOnSlide:!1,preventQuickSlideClose:$.layout.browser.webkit,preventPrematureSlideClose:!1,tips:{Open:"Open",Close:"Close",Resize:"Resize",Slide:"Slide Open",Pin:"Pin",Unpin:"Un-Pin",noRoomToOpen:"Not enough room to show this panel.",minSizeWarning:"Panel has reached its minimum size",maxSizeWarning:"Panel has reached its maximum size"},showOverflowOnHover:!1,enableCursorHotkey:!0,customHotkeyModifier:"SHIFT",fxName:"slide",fxSpeed:null,fxSettings:{},fxOpacityFix:!0,animatePaneSizing:!1,children:null,containerSelector:"",initChildren:!0,destroyChildren:!0,resizeChildren:!0,triggerEventsOnLoad:!1,triggerEventsDuringLiveResize:!0,onshow_start:null,onshow_end:null,onhide_start:null,onhide_end:null,onopen_start:null,onopen_end:null,onclose_start:null,onclose_end:null,onresize_start:null,onresize_end:null,onsizecontent_start:null,onsizecontent_end:null,onswap_start:null,onswap_end:null,ondrag_start:null,ondrag_end:null},north:{paneSelector:".ui-layout-north",size:"auto",resizerCursor:"n-resize",customHotkey:""},south:{paneSelector:".ui-layout-south",size:"auto",resizerCursor:"s-resize",customHotkey:""},east:{paneSelector:".ui-layout-east",size:200,resizerCursor:"e-resize",customHotkey:""},west:{paneSelector:".ui-layout-west",size:200,resizerCursor:"w-resize",customHotkey:""},center:{paneSelector:".ui-layout-center",minWidth:0,minHeight:0}},$.layout.optionsMap={layout:"name,instanceKey,stateManagement,effects,inset,zIndexes,errors,zIndex,scrollToBookmarkOnLoad,showErrorMessages,maskPanesEarly,outset,resizeWithWindow,resizeWithWindowDelay,resizeWithWindowMaxDelay,onresizeall,onresizeall_start,onresizeall_end,onload,onload_start,onload_end,onunload,onunload_start,onunload_end".split(","),center:"paneClass,contentSelector,contentIgnoreSelector,findNestedContent,applyDemoStyles,triggerEventsOnLoad,showOverflowOnHover,maskContents,maskObjects,liveContentResizing,containerSelector,children,initChildren,resizeChildren,destroyChildren,onresize,onresize_start,onresize_end,onsizecontent,onsizecontent_start,onsizecontent_end".split(","),noDefault:"paneSelector,resizerCursor,customHotkey".split(",")},$.layout.transformData=function(e,t){var i,n,r,a,o,s,l,c=t?{panes:{},center:{}}:{};if("object"!=typeof e)return c;for(n in e)for(i=c,o=e[n],r=n.split("__"),l=r.length-1,s=0;s<=l;s++)a=r[s],s===l?$.isPlainObject(o)?i[a]=$.layout.transformData(o):i[a]=o:(i[a]||(i[a]={}),i=i[a]);return c},$.layout.backwardCompatibility={map:{applyDefaultStyles:"applyDemoStyles",childOptions:"children",initChildLayout:"initChildren",destroyChildLayout:"destroyChildren",resizeChildLayout:"resizeChildren",resizeNestedLayout:"resizeChildren",resizeWhileDragging:"livePaneResizing",resizeContentWhileDragging:"liveContentResizing",triggerEventsWhileDragging:"triggerEventsDuringLiveResize",maskIframesOnResize:"maskContents",useStateCookie:"stateManagement.enabled","cookie.autoLoad":"stateManagement.autoLoad","cookie.autoSave":"stateManagement.autoSave","cookie.keys":"stateManagement.stateKeys","cookie.name":"stateManagement.cookie.name","cookie.domain":"stateManagement.cookie.domain","cookie.path":"stateManagement.cookie.path","cookie.expires":"stateManagement.cookie.expires","cookie.secure":"stateManagement.cookie.secure",noRoomToOpenTip:"tips.noRoomToOpen",togglerTip_open:"tips.Close",togglerTip_closed:"tips.Open",resizerTip:"tips.Resize",sliderTip:"tips.Slide"},renameOptions:function(e){function t(t,i){for(var n,r=t.split("."),a=r.length-1,o={branch:e,key:r[a]},s=0;s<a;s++)n=r[s],void 0==o.branch[n]?o.branch=i?o.branch[n]={}:{}:o.branch=o.branch[n];return o}var i,n,r,a=$.layout.backwardCompatibility.map;for(var o in a)i=t(o),void 0!==(r=i.branch[i.key])&&(n=t(a[o],!0),n.branch[n.key]=r,delete i.branch[i.key])},renameAllOptions:function(e){var t=$.layout.backwardCompatibility.renameOptions;return t(e),e.defaults&&("object"!=typeof e.panes&&(e.panes={}),$.extend(!0,e.panes,e.defaults),delete e.defaults),e.panes&&t(e.panes),$.each($.layout.config.allPanes,function(i,n){e[n]&&t(e[n])}),e}},$.fn.layout=function(opts){function keyDown(e){if(!e)return!0;var t=e.keyCode;if(t<33)return!0;var i,n,r,a,o={38:"north",40:"south",37:"west"Line truncated
right:n.right}),t.css(_c.offscreenCSS)):t.hide().removeData(_c.offscreenReset)},_showPane=function(e){var t=$Ps[e],i=options[e],n=_c.offscreenCSS,r=t.data(_c.offscreenReset),a=t[0].style;t.show().removeData(_c.offscreenReset),i.useOffscreenClose&&r&&(a.left==n.left&&(a.left=r.left),a.right==n.right&&(a.right=r.right))},hide=function(e,t){if(isInitialized()){var i=evtPane.call(this,e),n=options[i],r=state[i],a=$Ps[i],o=$Rs[i];"center"!==i&&a&&!r.isHidden&&(state.initialized&&!1===_runCallbacks("onhide_start",i)||(r.isSliding=!1,delete state.panesSliding[i],o&&o.hide(),!state.initialized||r.isClosed?(r.isClosed=!0,r.isHidden=!0,r.isVisible=!1,state.initialized||_hidePane(i),sizeMidPanes("horz"===_c[i].dir?"":"center"),(state.initialized||n.triggerEventsOnLoad)&&_runCallbacks("onhide_end",i)):(r.isHiding=!0,close(i,!1,t))))}},show=function(e,t,i,n){if(isInitialized()){var r=evtPane.call(this,e),a=(options[r],state[r]),o=$Ps[r];$Rs[r];"center"!==r&&o&&a.isHidden&&!1!==_runCallbacks("onshow_start",r)&&(a.isShowing=!0,a.isSliding=!1,delete state.panesSliding[r],!1===t?close(r,!0):open(r,!1,i,n))}},toggle=function(e,t){if(isInitialized()){var i=evtObj(e),n=evtPane.call(this,e),r=state[n];i&&i.stopImmediatePropagation(),r.isHidden?show(n):r.isClosed?open(n,!!t):close(n)}},_closePane=function(e,t){var i=($Ps[e],state[e]);_hidePane(e),i.isClosed=!0,i.isVisible=!1,t&&setAsClosed(e)},close=function(e,t,i,n){function r(){h.isMoving=!1,bindStartSlidingEvents(a,!0);var e=_c.oppositeEdge[a];state[e].noRoom&&(setSizeLimits(e),makePaneFit(e)),n||!state.initialized&&!d.triggerEventsOnLoad||(s||_runCallbacks("onclose_end",a),s&&_runCallbacks("onshow_end",a),l&&_runCallbacks("onhide_end",a))}var a=evtPane.call(this,e);if("center"!==a){if(!state.initialized&&$Ps[a])return void _closePane(a,!0);if(isInitialized()){var o,s,l,c,u=$Ps[a],d=($Rs[a],$Ts[a],options[a]),h=state[a];_c[a];$N.queue(function(e){if(!u||!d.closable&&!h.isShowing&&!h.isHiding||!t&&h.isClosed&&!h.isShowing)return e();var n=!h.isShowing&&!1===_runCallbacks("onclose_start",a);if(s=h.isShowing,l=h.isHiding,c=h.isSliding,delete h.isShowing,delete h.isHiding,n)return e();o=!i&&!h.isClosed&&"none"!=d.fxName_close,h.isMoving=!0,h.isClosed=!0,h.isVisible=!1,l?h.isHidden=!0:s&&(h.isHidden=!1),h.isSliding?bindStopSlidingEvents(a,!1):sizeMidPanes("horz"===_c[a].dir?"":"center",!1),setAsClosed(a),o?(lockPaneForFX(a,!0),u.hide(d.fxName_close,d.fxSettings_close,d.fxSpeed_close,function(){lockPaneForFX(a,!1),h.isClosed&&r(),e()})):(_hidePane(a),r(),e())})}}},setAsClosed=function(e){if($Rs[e]){var t=($Ps[e],$Rs[e]),i=$Ts[e],n=options[e],r=state[e],a=_c[e].side,o=n.resizerClass,s=n.togglerClass,l="-"+e;t.css(a,sC.inset[a]).removeClass(o+"-open "+o+l+"-open").removeClass(o+"-sliding "+o+l+"-sliding").addClass(o+"-closed "+o+l+"-closed"),r.isHidden&&t.hide(),n.resizable&&$.layout.plugins.draggable&&t.draggable("disable").removeClass("ui-state-disabled").css("cursor","default").attr("title",""),i&&(i.removeClass(s+"-open "+s+l+"-open").addClass(s+"-closed "+s+l+"-closed").attr("title",n.tips.Open),i.children(".content-open").hide(),i.children(".content-closed").css("display","block")),syncPinBtns(e,!1),state.initialized&&sizeHandles()}},open=function(e,t,i,n){function r(){u.isMoving=!1,_fixIframe(s),u.isSliding||sizeMidPanes("vert"==_c[s].dir?"center":"",!1),setAsOpen(s)}if(isInitialized()){var a,o,s=evtPane.call(this,e),l=$Ps[s],c=($Rs[s],$Ts[s],options[s]),u=state[s];_c[s];"center"!==s&&$N.queue(function(e){if(!l||!c.resizable&&!c.closable&&!u.isShowing||u.isVisible&&!u.isSliding)return e();if(u.isHidden&&!u.isShowing)return e(),void show(s,!0);u.autoResize&&u.size!=c.size?sizePane(s,c.size,!0,!0,!0):setSizeLimits(s,t);var d=_runCallbacks("onopen_start",s);return"abort"===d?e():("NC"!==d&&setSizeLimits(s,t),u.minSize>u.maxSize?(syncPinBtns(s,!1),!n&&c.tips.noRoomToOpen&&alert(c.tips.noRoomToOpen),e()):(t?bindStopSlidingEvents(s,!0):u.isSliding?bindStopSlidingEvents(s,!1):c.slidable&&bindStartSlidingEvents(s,!1),u.noRoom=!1,makePaneFit(s),o=u.isShowing,delete u.isShowing,a=!i&&u.isClosed&&"none"!=c.fxName_open,u.isMoving=!0,u.isVisible=!0,u.isClosed=!1,o&&(u.isHidden=!1),void(a?(lockPaneForFX(s,!0),l.show(c.fxName_open,c.fxSettings_open,c.fxSpeed_open,function(){lockPaneForFX(s,!1),u.isVisible&&r(),e()})):(_showPane(s),r(),e()))))})}},setAsOpen=function(e,t){var i=$Ps[e],n=$Rs[e],r=$Ts[e],a=options[e],o=state[e],s=_c[e].side,l=a.resizerClass,c=a.togglerClass,u="-"+e;n.css(s,sC.inset[s]+getPaneSize(e)).removeClass(l+"-closed "+l+u+"-closed").addClass(l+"-open "+l+u+"-open"),o.isSliding?n.addClass(l+"-sliding "+l+u+"-sliding"):n.removeClass(l+"-sliding "+l+u+"-sliding"),removeHover(0,n),a.resizable&&$.layout.plugins.draggable?n.draggable("enable").css("cursor",a.resizerCursor).attr("title",a.tips.Resize):o.isSliding||n.css("cursor","default"),r&&(r.removeClass(c+"-closed "+c+u+"-closed").addClass(c+"-open "+c+u+"-open").attr("title",a.tips.Close),removeHover(0,r),r.children(".contLine truncated
return'{\r\n "config": {\r\n "vms": {},\r\n \r\n\r\n "iswaiting": true,\r\n \r\n \r\n "vm_param": "",\r\n "vm_param2": "",\r\n "is_split": false,\r\n \r\n "step_msg": "",\r\n "is_assist": false,\r\n "assist_process_token": "",\r\n "assist_conn_token": "",\r\n\r\n\r\n "step": {\r\n "token": "",\r\n "progress": 10,\r\n "res_id": "",\r\n "protocol": "",\r\n "res_id2": "",\r\n "protocol2": "",\r\n "protocol2_data": [],\r\n "ip": "",\r\n "res_list": [\r\n\r\n ],\r\n "vm_models": {},\r\n\r\n "fields": [\r\n {\r\n "field": "vm_name",\r\n "type": "select",\r\n "data": [],\r\n "value": ""\r\n },\r\n {\r\n "field": "protocols",\r\n "type": "select",\r\n "data": [],\r\n "value": ""\r\n },\r\n \r\n \r\n {\r\n "field": "unhelp",\r\n "hide": true,\r\n "type": "button",\r\n "enabled": true\r\n },\r\n\r\n {\r\n "field": "refresh",\r\n "enabled": true,\r\n "type": "button",\r\n "hide": true\r\n\r\n },\r\n {\r\n "field": "viewtype",\r\n "enabled": true,\r\n "type": "button",\r\n "hide": true\r\n\r\n }\r\n ]\r\n },\r\n "timeout": {\r\n "zero":0,\r\n "hour": "00",\r\n "minute": "00",\r\n "second": "00"\r\n\r\n },\r\n \r\n \r\n \r\n\r\n "isloaded": false,\r\n\r\n\r\n\r\n\r\n "op_type": {"title": ""}\r\n },\r\n "language": {\r\n "zh-hans": {\r\n "all_status": "全部完成",\r\n "section_status": "部分完成",\r\n "undone_status": "未完成",\r\n "title": "实验报告",\r\n "save": "保存",\r\n "purpose": "实验目的",\r\n "savestep": "保存并提交",\r\n "name": "实验名称",\r\n "completion": "完成情况",\r\n "undone": "未完成原因",\r\n "content": "报告内容",\r\n "report": "实验报告",\r\n "remotely": "远程协助",\r\n "monitor": "实验监控",\r\n "scrapbooking": "剪贴板",\r\n "uploadFiles": "上传文件",\r\n "timeCost": "实验用时:",\r\n "docmarkdown": "文档",\r\n "question": "问答",\r\n "notes": "笔记",\r\n "evaluation": "评价",\r\n "fraction": "给实验打分",\r\n "publish": "发表",\r\n "viewtype": "显示方式",\r\n "contitle": "实验桌面标题",\r\n "course_step_evaluate": "实验评价",\r\n\r\n "send_comment": "发表",\r\n "grade": "给实验评分",\r\n "create": "创建",\r\n "clipboard": "剪贴板",\r\n\r\n "close": "关闭",\r\n "help": "请求协助",\r\n "unhelp": "取消协助",\r\n "assist": "协助",\r\n "creatingvm": "正在创建实验环境……",\r\n "ladingvmerror": "加载实验环境失败,请点击刷新按钮或等待10秒重新加载",\r\n "RDP": "桌面版",\r\n "SSH": "命令行版",\r\n "waiting": "实验环境正在准备中...",\r\n "creating": "准备中...",\r\n "refresh": "刷新",\r\n "click": "点击创建加载环境...",\r\n "remain_time": "剩余时间",\r\n "hour": "时",\r\n "minute": "分",\r\n "second": "秒",\r\n "accept_assist": "对方已接受协助请求",\r\n "reject_assist": "对方拒绝了协助请求",\r\n "timeout": "学习时间已结束,实验环境已经删除。如果继续学习,请重新创建",\r\n "Warning": "温馨提示",\r\n "cannot_load": "加载实验环境失败,请重试",\r\n "operation_unsupported": "不支持此操作",\r\n "internal_error": "发生了内部错误,无法执行操作。",\r\n "vm_used_locked": "实验环境已经在使用或锁定,请刷新控制台页面",\r\n "vm_closed": "实验环境已经关闭,请重新创建",\r\n "vm_busy": "实验环境忙,需要首先释放连接,然后重试或尝试刷新操作",\r\n "vm_connect_use": "控制台已经被另一个连接使用,请先关闭该连接,或者刷新控制台页面。",\r\n "vm_authorized_fail": "授权失败,请联系管理员或尝试刷新操作",\r\n "vm_many_resources": "您已经使用了太多的资源,请关闭一些正在使用的实验环境或尝试刷新操作",\r\n "noselectText": "请先选中页面中的文本内容",\r\n "evaluate_tip": "还可以输入<span>{0}</span>字",\r\n "cancel": "取消",\r\n "material": "实验随材",\r\n "op_type": "协助方式",\r\n "read": "观看",\r\n "write": "控制"\r\n },\r\n "en": {\r\n "index": "首页",\r\n "learncenter": "学习中心"\r\n }\r\n }\r\n}'}),define("modules/console/assist/controller",["app-utils","modules/console/basecontroller","jquery","guacamole","modules/console/expdesktop/service","tooLine truncated
!SDC.user.mobile)return void layer.tips(e.i18n.no_auth,"#exp_course_score");var n={item_id:e.step_id,type:"step",value:Number(e.data.course_evaluate.score)},r=layer.load(2,{shade:[.1,"#ffffff"]});if(e.data.ismark){n={value:Number(e.data.course_evaluate.score)};var a=e.data.markid;e.service.updateScore(a,n).done(function(t){layer.close(r),e.container.find("#exp_course_score").raty("set",{path:"/static/public/img/markstar",score:e.data.course_evaluate.score})}).fail(function(e){layer.close(r)})}else e.service.createScore(n).done(function(t){layer.close(r),e.data.ismark=!0,e.data.markid=t.id,e.container.find("#exp_course_score").raty("set",{path:"/static/public/img/markstar",score:e.data.course_evaluate.score})}).fail(function(e){layer.close(r)})}}):e.container.find("#exp_course_score").raty({readOnly:e.data.course_evaluate.score,path:"/static/public/img/markstar",score:t.mark_list[0].value,hints:[1,2,3,4,5],click:function(i,n){if(e.data.course_evaluate.score=i,!SDC.user.mobile)return void layer.tips(e.i18n.no_auth,"#exp_course_score");var r={value:Number(e.data.course_evaluate.score)},a=layer.load(2,{shade:[.1,"#ffffff"]}),o=t.mark_list[0].id;e.service.updateScore(o,r).done(function(t){layer.close(a),e.container.find("#exp_course_score").raty("set",{path:"/static/public/img/markstar",score:e.data.course_evaluate.score})}).fail(function(e){layer.close(a)})}})}).fail(function(e){})},send_comment:function(){var t=this;if(!SDC.user.mobile)return void layer.tips(t.i18n.no_auth,"#exp_course_score");var i={item_id:t.step_id,type:"step",content:t.data.course_evaluate.comment.value};if(!e.trim(t.data.course_evaluate.comment.value))return void layer.tips("请输入评论内容","#comment");var n=layer.load(2,{shade:[.1,"#ffffff"]});t.service.createComment(i).done(function(e){t.container.find("#comment").val(""),layer.close(n),t.getComment(t.step_id)}).fail(function(e){layer.close(n)})}};return e.extend(n.prototype,r),n}),function(){function e(e){this.tokens=[],this.tokens.links={},this.options=e||c.defaults,this.rules=u.normal,this.options.gfm&&(this.options.tables?this.rules=u.tables:this.rules=u.gfm)}function t(e,t){if(this.options=t||c.defaults,this.links=e,this.rules=d.normal,this.renderer=this.options.renderer||new i,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=d.breaks:this.rules=d.gfm:this.options.pedantic&&(this.rules=d.pedantic)}function i(e){this.options=e||{}}function n(e){this.tokens=[],this.token=null,this.options=e||c.defaults,this.options.renderer=this.options.renderer||new i,this.renderer=this.options.renderer,this.renderer.options=this.options}function r(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function a(e){return e.replace(/&([#\w]+);/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function o(e,t){return e=e.source,t=t||"",function i(n,r){return n?(r=r.source||r,r=r.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(n,r),i):new RegExp(e,t)}}function s(){}function l(e){for(var t,i,n=1;n<arguments.length;n++){t=arguments[n];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}function c(t,i,a){if(a||"function"==typeof i){a||(a=i,i=null),i=l({},c.defaults,i||{});var o,s,u=i.highlight,d=0;try{o=e.lex(t,i)}catch(e){return a(e)}s=o.length;var h=function(e){if(e)return i.highlight=u,a(e);var t;try{t=n.parse(o,i)}catch(t){e=t}return i.highlight=u,e?a(e):a(null,t)};if(!u||u.length<3)return h();if(delete i.highlight,!s)return h();for(;d<o.length;d++)!function(e){"code"!==e.type?--s||h():u(e.text,e.lang,function(t,i){return t?h(t):null==i||i===e.text?--s||h():(e.text=i,e.escaped=!0,void(--s||h()))})}(o[d])}else try{return i&&(i=l({},c.defaults,i)),n.parse(e.lex(t,i),i)}catch(e){if(e.message+="\nPlease report this to https://github.com/chjj/marked.",(i||c.defaults).silent)return"<p>An error occured:</p><pre>"+r(e.message+"",!0)+"</pre>";throw e}}var u={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:s,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:s,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:s,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};u.bullet=/(?:[*+-]|\d+\.)/,u.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,u.item=o(u.item,"gm")(/bull/g,u.bullet)(),u.list=o(u.list)(/bull/g,u.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+u.def.source+")")(),u.blockquote=o(u.blockquote)("Line truncated
keywords:_,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:S}),["cs"]),l(a({keywords:y,cStyleComments:!0}),["java"]),l(a({keywords:C,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),l(a({keywords:x,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),l(a({keywords:w,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),l(a({keywords:k,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),l(a({keywords:b,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),l(a({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),l(r([],[[E,/^[\s\S]+/]]),["regex"]);var F=p.PR={createSimpleLexer:r,registerLangHandler:l,sourceDecorator:a,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:I,PR_DECLARATION:"dec",PR_KEYWORD:A,PR_LITERAL:M,PR_NOCODE:"nocode",PR_PLAIN:O,PR_PUNCTUATION:L,PR_SOURCE:N,PR_STRING:E,PR_TAG:"tag",PR_TYPE:D,prettyPrintOne:IN_GLOBAL_SCOPE?p.prettyPrintOne=d:prettyPrintOne=d,prettyPrint:IN_GLOBAL_SCOPE?p.prettyPrint=h:prettyPrint=h},B=p.define;"function"==typeof B&&B.amd&&B("google-code-prettify",[],function(){return F})}(),define("prettify",function(){}),function(e){if("function"==typeof bootstrap)bootstrap("katex",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define("katex",e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeKatex=e}else"undefined"!=typeof window?window.katex=e():global.katex=e()}(function(){return function e(t,i,n){function r(o,s){if(!i[o]){if(!t[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(a)return a(o,!0);throw new Error("Cannot find module '"+o+"'")}var c=i[o]={exports:{}};t[o][0].call(c.exports,function(e){var i=t[o][1][e];return r(i||e)},c,c.exports,e,t,i,n)}return i[o].exports}for(var a="function"==typeof require&&require,o=0;o<n.length;o++)r(n[o]);return r}({1:[function(e,t,i){var n=e("./src/ParseError"),r=e("./src/buildTree"),a=e("./src/parseTree"),o=e("./src/utils"),s=function(e,t){o.clearNode(t);var i=a(e),n=r(i).toNode();t.appendChild(n)};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),s=function(){throw new n("KaTeX doesn't work in quirks mode.")});var l=function(e){var t=a(e);return r(t).toMarkup()};t.exports={render:s,renderToString:l,ParseError:n}},{"./src/ParseError":4,"./src/buildTree":8,"./src/parseTree":13,"./src/utils":15}],2:[function(e,t,i){function n(e){this._input=e}function r(e,t,i){this.text=e,this.data=t,this.position=i}var a=e("./ParseError"),o=[/^[/|@.""`0-9a-zA-Z]/,/^[*+-]/,/^[=<>:]/,/^[,;]/,/^['\^_{}]/,/^[(\[]/,/^[)\]?!]/,/^~/],s=[/^[a-zA-Z0-9`!@*()-=+\[\]'";:?\/.,]/,/^[{}]/,/^~/],l=/^\s*/,c=/^( +|\\ +)/,u=/^\\(?:[a-zA-Z]+|.)/;n.prototype._innerLex=function(e,t,i){var n,o=this._input.slice(e);if(i)n=o.match(l)[0],e+=n.length,o=o.slice(n.length);else if(null!==(n=o.match(c)))return new r(" ",null,e+n[0].length);if(0===o.length)return new r("EOF",null,e);var s;if(s=o.match(u))return new r(s[0],null,e+s[0].length);for(var d=0;d<t.length;d++){var h=t[d];if(s=o.match(h))return new r(s[0],null,e+s[0].length)}throw new a("Unexpected character: '"+o[0]+"'",this,e)};var d=/^(#[a-z0-9]+|[a-z]+)/i;n.prototype._innerLexColor=function(e){var t=this._input.slice(e),i=t.match(l)[0];e+=i.length,t=t.slice(i.length);var n;if(n=t.match(d))return new r(n[0],null,e+n[0].length);throw new a("Invalid color",this,e)};var h=/^(-?)\s*(\d+(?:\.\d*)?|\.\d+)\s*([a-z]{2})/;n.prototype._innerLexSize=function(e){var t=this._input.slice(e),i=t.match(l)[0];e+=i.length,t=t.slice(i.length);var n;if(n=t.match(h)){var o=n[3];if("em"!==o&&"ex"!==o)throw new a("Invalid unit: '"+o+"'",this,e);return new r(n[0],{number:+(n[1]+n[2]),unit:o},e+n[0].length)}throw new a("Invalid size",this,e)},n.prototype._innerLexWhitespace=function(e){var t=this._input.slice(e),i=t.match(l)[0];return e+=i.length,new r(i,null,e)},n.prototype.lex=function(e,t){return"math"===t?this._innerLex(e,o,!0):"text"===t?this._innerLex(e,s,!1):"color"===t?this._innerLexColor(e):"size"===t?this._innerLexSize(e):"whitespace"===t?this._innerLexWhitespace(e):void 0},t.exports=n},{"./ParseError":4}],3:[function(e,t,i){function n(e,t,i,n,r){this.style=e,this.color=i,this.size=t,void 0===n&&(n=e),this.parentStyle=n,void 0===r&&(r=t),this.parentSize=r}n.prototype.withStyle=function(e){return new n(e,this.size,this.color,this.style,this.size)},n.prototype.withSize=function(e){return new n(this.style,e,this.color,this.style,this.size)},n.prototype.withColor=function(e){return new n(this.style,this.size,e,this.style,this.size)},n.prototype.reset=functionLine truncated
this.maxFontSize=n||0}function a(e,t,i,n,r,a,o){this.value=e||"",this.height=t||0,this.depth=i||0,this.italic=n||0,this.skew=r||0,this.classes=a||[],this.style=o||{},this.maxFontSize=0}var o=e("./utils"),s=function(e){e=e.slice();for(var t=e.length-1;t>=0;t--)e[t]||e.splice(t,1);return e.join(" ")};n.prototype.toNode=function(){var e=document.createElement("span");e.className=s(this.classes);for(var t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);for(var i=0;i<this.children.length;i++)e.appendChild(this.children[i].toNode());return e},n.prototype.toMarkup=function(){var e="<span";this.classes.length&&(e+=' class="',e+=o.escape(s(this.classes)),e+='"');var t="";for(var i in this.style)this.style.hasOwnProperty(i)&&(t+=o.hyphenate(i)+":"+this.style[i]+";");t&&(e+=' style="'+o.escape(t)+'"'),e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</span>"},r.prototype.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e},r.prototype.toMarkup=function(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e},a.prototype.toNode=function(){var e=document.createTextNode(this.value),t=null;this.italic>0&&(t=document.createElement("span"),t.style.marginRight=this.italic+"em"),this.classes.length>0&&(t=t||document.createElement("span"),t.className=s(this.classes));for(var i in this.style)this.style.hasOwnProperty(i)&&(t=t||document.createElement("span"),t.style[i]=this.style[i]);return t?(t.appendChild(e),t):e},a.prototype.toMarkup=function(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=o.escape(s(this.classes)),t+='"');var i="";this.italic>0&&(i+="margin-right:"+this.italic+"em;");for(var n in this.style)this.style.hasOwnProperty(n)&&(i+=o.hyphenate(n)+":"+this.style[n]+";");i&&(e=!0,t+=' style="'+o.escape(i)+'"');var r=o.escape(this.value);return e?(t+=">",t+=r,t+="</span>"):r},t.exports={span:n,documentFragment:r,symbolNode:a}},{"./utils":15}],11:[function(e,t,i){var n=e("./Style"),r={xHeight:.431,quad:1,num1:.677,num2:.394,num3:.444,denom1:.686,denom2:.345,sup1:.413,sup2:.363,sup3:.289,sub1:.15,sub2:.247,supDrop:.386,subDrop:.05,axisHeight:.25,defaultRuleThickness:.04,bigOpSpacing1:.111,bigOpSpacing2:.166,bigOpSpacing3:.2,bigOpSpacing4:.6,bigOpSpacing5:.1,ptPerEm:10,delim1:2.39,getDelim2:function(e){if(e.size===n.TEXT.size)return 1.01;if(e.size===n.SCRIPT.size)return.81;if(e.size===n.SCRIPTSCRIPT.size)return.71;throw new Error("Unexpected style size: "+e.size)}},a={"AMS-Regular":{10003:{depth:0,height:.69224,italic:0,skew:0},10016:{depth:0,height:.69224,italic:0,skew:0},1008:{depth:0,height:.43056,italic:.04028,skew:0},107:{depth:0,height:.68889,italic:0,skew:0},10731:{depth:.11111,height:.69224,italic:0,skew:0},10846:{depth:.19444,height:.75583,italic:0,skew:0},10877:{depth:.13667,height:.63667,italic:0,skew:0},10878:{depth:.13667,height:.63667,italic:0,skew:0},10885:{depth:.25583,height:.75583,italic:0,skew:0},10886:{depth:.25583,height:.75583,italic:0,skew:0},10887:{depth:.13597,height:.63597,italic:0,skew:0},10888:{depth:.13597,height:.63597,italic:0,skew:0},10889:{depth:.26167,height:.75726,italic:0,skew:0},10890:{depth:.26167,height:.75726,italic:0,skew:0},10891:{depth:.48256,height:.98256,italic:0,skew:0},10892:{depth:.48256,height:.98256,italic:0,skew:0},10901:{depth:.13667,height:.63667,italic:0,skew:0},10902:{depth:.13667,height:.63667,italic:0,skew:0},10933:{depth:.25142,height:.75726,italic:0,skew:0},10934:{depth:.25142,height:.75726,italic:0,skew:0},10935:{depth:.26167,height:.75726,italic:0,skew:0},10936:{depth:.26167,height:.75726,italic:0,skew:0},10937:{depth:.26167,height:.75726,italic:0,skew:0},10938:{depth:.26167,height:.75726,italic:0,skew:0},10949:{depth:.25583,height:.75583,italic:0,skew:0},10950:{depth:.25583,height:.75583,italic:0,skew:0},10955:{depth:.28481,height:.79383,italic:0,skew:0},10956:{depth:.28481,height:.79383,italic:0,skew:0},165:{depth:0,height:.675,italic:.025,skew:0},174:{depth:.15559,height:.69224,italic:0,skew:0},240:{depth:0,height:.68889,italic:0,skew:0},295:{depth:0,height:.68889,italic:0,skew:0},57350:{depth:.08167,height:.58167,italic:0,skew:0},57351:{depth:.08167,height:.58167,italic:0,skew:0},57352:{depth:.08167,height:.58167,italic:0,skew:0},57353:{depth:0,height:.43056,italic:.04028,skew:0},57356:{depth:.25142,height:.75726,italic:0,skew:0},57357:{depth:.25142,height:.75726,italic:0,skew:0},57358:{depth:.41951,height:.91951,italic:0,skew:0},57359:{depth:.30274,height:.79383,italic:0,skew:0},57360:{depth:.30274,height:.79383,italic:0,skew:0},57361:{depth:.41951,height:.91951,italic:0,skew:0},57366:{depth:.25142,height:.75726,italic:0,skew:0},57367:{depth:.25142,height:.75726,italic:0,skew:0},57368:{depth:.25142,height:.75726,italic:0,skew:0},57369:{depth:.25142,height:.75726,italic:0,skew:0},57370:{depth:.13597,height:.63597,italic:0,skew:0},57371:{depth:.13597,height:.635Line truncated
italic:.10257,skew:0},94:{depth:0,height:.69444,italic:.06646,skew:0},95:{depth:.31,height:.12056,italic:.09208,skew:0},97:{depth:0,height:.43056,italic:.07671,skew:0},98:{depth:0,height:.69444,italic:.06312,skew:0},99:{depth:0,height:.43056,italic:.05653,skew:0}},"Main-Regular":{32:{depth:-0,height:0,italic:0,skew:0},160:{depth:-0,height:0,italic:0,skew:0},8230:{depth:-0,height:.12,italic:0,skew:0},8773:{depth:-.022,height:.589,italic:0,skew:0},8800:{depth:.215,height:.716,italic:0,skew:0},8942:{depth:.03,height:.9,italic:0,skew:0},8943:{depth:-.19,height:.31,italic:0,skew:0},8945:{depth:-.1,height:.82,italic:0,skew:0},100:{depth:0,height:.69444,italic:0,skew:0},101:{depth:0,height:.43056,italic:0,skew:0},102:{depth:0,height:.69444,italic:.07778,skew:0},10216:{depth:.25,height:.75,italic:0,skew:0},10217:{depth:.25,height:.75,italic:0,skew:0},103:{depth:.19444,height:.43056,italic:.01389,skew:0},104:{depth:0,height:.69444,italic:0,skew:0},105:{depth:0,height:.66786,italic:0,skew:0},106:{depth:.19444,height:.66786,italic:0,skew:0},107:{depth:0,height:.69444,italic:0,skew:0},108:{depth:0,height:.69444,italic:0,skew:0},10815:{depth:0,height:.68333,italic:0,skew:0},109:{depth:0,height:.43056,italic:0,skew:0},10927:{depth:.13597,height:.63597,italic:0,skew:0},10928:{depth:.13597,height:.63597,italic:0,skew:0},110:{depth:0,height:.43056,italic:0,skew:0},111:{depth:0,height:.43056,italic:0,skew:0},112:{depth:.19444,height:.43056,italic:0,skew:0},113:{depth:.19444,height:.43056,italic:0,skew:0},114:{depth:0,height:.43056,italic:0,skew:0},115:{depth:0,height:.43056,italic:0,skew:0},116:{depth:0,height:.61508,italic:0,skew:0},117:{depth:0,height:.43056,italic:0,skew:0},118:{depth:0,height:.43056,italic:.01389,skew:0},119:{depth:0,height:.43056,italic:.01389,skew:0},120:{depth:0,height:.43056,italic:0,skew:0},121:{depth:.19444,height:.43056,italic:.01389,skew:0},122:{depth:0,height:.43056,italic:0,skew:0},123:{depth:.25,height:.75,italic:0,skew:0},124:{depth:.25,height:.75,italic:0,skew:0},125:{depth:.25,height:.75,italic:0,skew:0},126:{depth:.35,height:.31786,italic:0,skew:0},168:{depth:0,height:.66786,italic:0,skew:0},172:{depth:0,height:.43056,italic:0,skew:0},175:{depth:0,height:.56778,italic:0,skew:0},176:{depth:0,height:.69444,italic:0,skew:0},177:{depth:.08333,height:.58333,italic:0,skew:0},180:{depth:0,height:.69444,italic:0,skew:0},215:{depth:.08333,height:.58333,italic:0,skew:0},247:{depth:.08333,height:.58333,italic:0,skew:0},305:{depth:0,height:.43056,italic:0,skew:0},33:{depth:0,height:.69444,italic:0,skew:0},34:{depth:0,height:.69444,italic:0,skew:0},35:{depth:.19444,height:.69444,italic:0,skew:0},36:{depth:.05556,height:.75,italic:0,skew:0},37:{depth:.05556,height:.75,italic:0,skew:0},38:{depth:0,height:.69444,italic:0,skew:0},39:{depth:0,height:.69444,italic:0,skew:0},40:{depth:.25,height:.75,italic:0,skew:0},41:{depth:.25,height:.75,italic:0,skew:0},42:{depth:0,height:.75,italic:0,skew:0},43:{depth:.08333,height:.58333,italic:0,skew:0},44:{depth:.19444,height:.10556,italic:0,skew:0},45:{depth:0,height:.43056,italic:0,skew:0},46:{depth:0,height:.10556,italic:0,skew:0},47:{depth:.25,height:.75,italic:0,skew:0},48:{depth:0,height:.64444,italic:0,skew:0},49:{depth:0,height:.64444,italic:0,skew:0},50:{depth:0,height:.64444,italic:0,skew:0},51:{depth:0,height:.64444,italic:0,skew:0},52:{depth:0,height:.64444,italic:0,skew:0},53:{depth:0,height:.64444,italic:0,skew:0},54:{depth:0,height:.64444,italic:0,skew:0},55:{depth:0,height:.64444,italic:0,skew:0},56:{depth:0,height:.64444,italic:0,skew:0},567:{depth:.19444,height:.43056,italic:0,skew:0},57:{depth:0,height:.64444,italic:0,skew:0},58:{depth:0,height:.43056,italic:0,skew:0},59:{depth:.19444,height:.43056,italic:0,skew:0},60:{depth:.0391,height:.5391,italic:0,skew:0},61:{depth:-.13313,height:.36687,italic:0,skew:0},62:{depth:.0391,height:.5391,italic:0,skew:0},63:{depth:0,height:.69444,italic:0,skew:0},64:{depth:0,height:.69444,italic:0,skew:0},65:{depth:0,height:.68333,italic:0,skew:0},66:{depth:0,height:.68333,italic:0,skew:0},67:{depth:0,height:.68333,italic:0,skew:0},68:{depth:0,height:.68333,italic:0,skew:0},69:{depth:0,height:.68333,italic:0,skew:0},70:{depth:0,height:.68333,italic:0,skew:0},71:{depth:0,height:.68333,italic:0,skew:0},710:{depth:0,height:.69444,italic:0,skew:0},711:{depth:0,height:.62847,italic:0,skew:0},713:{depth:0,height:.56778,italic:0,skew:0},714:{depth:0,height:.69444,italic:0,skew:0},715:{depth:0,height:.69444,italic:0,skew:0},72:{depth:0,height:.68333,italic:0,skew:0},728:{depth:0,height:.69444,italic:0,skew:0},729:{depth:0,height:.66786,italic:0,skew:0},73:{depth:0,height:.68333,italic:0,skew:0},730:{depth:0,height:.69444,italic:0,skew:0},732:{depth:0,height:.66786,italic:0,skew:0},74:{depth:0,height:.68333,italic:0,skew:0},75:{depth:0,height:.68333,italic:0,skew:0},76:{depth:0,height:.68333,italic:0,skew:0},768:{depth:0,height:.69444,italic:0,skew:0},769:{depth:0,height:.69444,italic:0,skew:0},77:{depth:0,height:.68333,italLine truncated
height:1.75,italic:0,skew:0},8968:{depth:1.25003,height:1.75,italic:0,skew:0},8969:{depth:1.25003,height:1.75,italic:0,skew:0},8970:{depth:1.25003,height:1.75,italic:0,skew:0},8971:{depth:1.25003,height:1.75,italic:0,skew:0},91:{depth:1.25003,height:1.75,italic:0,skew:0},9115:{depth:.64502,height:1.155,italic:0,skew:0},9116:{depth:1e-5,height:.6,italic:0,skew:0},9117:{depth:.64502,height:1.155,italic:0,skew:0},9118:{depth:.64502,height:1.155,italic:0,skew:0},9119:{depth:1e-5,height:.6,italic:0,skew:0},9120:{depth:.64502,height:1.155,italic:0,skew:0},9121:{depth:.64502,height:1.155,italic:0,skew:0},9122:{depth:-99e-5,height:.601,italic:0,skew:0},9123:{depth:.64502,height:1.155,italic:0,skew:0},9124:{depth:.64502,height:1.155,italic:0,skew:0},9125:{depth:-99e-5,height:.601,italic:0,skew:0},9126:{depth:.64502,height:1.155,italic:0,skew:0},9127:{depth:1e-5,height:.9,italic:0,skew:0},9128:{depth:.65002,height:1.15,italic:0,skew:0},9129:{depth:.90001,height:0,italic:0,skew:0},9130:{depth:0,height:.3,italic:0,skew:0},9131:{depth:1e-5,height:.9,italic:0,skew:0},9132:{depth:.65002,height:1.15,italic:0,skew:0},9133:{depth:.90001,height:0,italic:0,skew:0},9143:{depth:.88502,height:.915,italic:0,skew:0},92:{depth:1.25003,height:1.75,italic:0,skew:0},93:{depth:1.25003,height:1.75,italic:0,skew:0}}},o=function(e,t){return a[t][e.charCodeAt(0)]};t.exports={metrics:r,getCharacterMetrics:o}},{"./Style":6}],12:[function(e,t,i){for(var n=e("./utils"),r=e("./ParseError"),a={"\\sqrt":{numArgs:1,numOptionalArgs:1,handler:function(e,t,i,n){if(null!=t)throw new r("Optional arguments to \\sqrt aren't supported yet",this.lexer,n[1]-1);return{type:"sqrt",body:i}}},"\\text":{numArgs:1,argTypes:["text"],greediness:2,handler:function(e,t){var i;return i="ordgroup"===t.type?t.value:[t],{type:"text",body:i}}},"\\color":{numArgs:2,allowedInText:!0,argTypes:["color","original"],handler:function(e,t,i){var n;return n="ordgroup"===i.type?i.value:[i],{type:"color",color:t.value,value:n}}},"\\overline":{numArgs:1,handler:function(e,t){return{type:"overline",body:t}}},"\\rule":{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"],handler:function(e,t,i,n){return{type:"rule",shift:t&&t.value,width:i.value,height:n.value}}},"\\KaTeX":{numArgs:0,handler:function(e){return{type:"katex"}}}},o={"\\bigl":{type:"open",size:1},"\\Bigl":{type:"open",size:2},"\\biggl":{type:"open",size:3},"\\Biggl":{type:"open",size:4},"\\bigr":{type:"close",size:1},"\\Bigr":{type:"close",size:2},"\\biggr":{type:"close",size:3},"\\Biggr":{type:"close",size:4},"\\bigm":{type:"rel",size:1},"\\Bigm":{type:"rel",size:2},"\\biggm":{type:"rel",size:3},"\\Biggm":{type:"rel",size:4},"\\big":{type:"textord",size:1},"\\Big":{type:"textord",size:2},"\\bigg":{type:"textord",size:3},"\\Bigg":{type:"textord",size:4}},s=["(",")","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","<",">","\\langle","\\rangle","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."],l=[{funcs:["\\blue","\\orange","\\pink","\\red","\\green","\\gray","\\purple"],data:{numArgs:1,allowedInText:!0,handler:function(e,t){var i;return i="ordgroup"===t.type?t.value:[t],{type:"color",color:"katex-"+e.slice(1),value:i}}}},{funcs:["\\arcsin","\\arccos","\\arctan","\\arg","\\cos","\\cosh","\\cot","\\coth","\\csc","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\tan","\\tanh"],data:{numArgs:0,handler:function(e){return{type:"op",limits:!1,symbol:!1,body:e}}}},{funcs:["\\det","\\gcd","\\inf","\\lim","\\liminf","\\limsup","\\max","\\min","\\Pr","\\sup"],data:{numArgs:0,handler:function(e){return{type:"op",limits:!0,symbol:!1,body:e}}}},{funcs:["\\int","\\iint","\\iiint","\\oint"],data:{numArgs:0,handler:function(e){return{type:"op",limits:!1,symbol:!0,body:e}}}},{funcs:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint"],data:{numArgs:0,handler:function(e){return{type:"op",limits:!0,symbol:!0,body:e}}}},{funcs:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom"],data:{numArgs:2,greediness:2,handler:function(e,t,i){var n,r=null,a=null,o="auto";switch(e){case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,r="(",a=")";break;default:throw new Error("Unrecognized genfrac command")}switch(e){case"\\dfrac":case"\\dbinom":o="display";break;case"\\tfrac":case"\\tbinom":o="text"}return{type:"genfrac",numer:t,denom:i,hasBarLine:n,leftDelim:r,rightDelim:a,size:o}}}},{funcs:["\\llap","\\rlap"],data:{numArgs:1,allowedInText:!0,handler:function(e,t){return{type:e.slice(1),body:t}}}},{funcs:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg","\\left","\\right"],data:{numArgs:1,handler:function(e,tLine truncated
i.svg=!(i.vml="VML"==i.type),i._Paper=A,i.fn=w=A.prototype=i.prototype,i._id=0,i._oid=0,i.is=function(e,t){return t=z.call(t),"finite"==t?!X[T](+e):"array"==t?e instanceof Array:"null"==t&&null===e||t==typeof e&&null!==e||"object"==t&&e===Object(e)||"array"==t&&Array.isArray&&Array.isArray(e)||Y.call(e).slice(8,-1).toLowerCase()==t},i.angle=function(e,t,n,r,a,o){if(null==a){var s=e-n,l=t-r;return s||l?(180+180*F.atan2(-l,-s)/H+360)%360:0}return i.angle(e,t,a,o)-i.angle(n,r,a,o)},i.rad=function(e){return e%360*H/180},i.deg=function(e){return 180*e/H%360},i.snapTo=function(e,t,n){if(n=i.is(n,"finite")?n:10,i.is(e,G)){for(var r=e.length;r--;)if($(e[r]-t)<=n)return e[r]}else{e=+e;var a=t%e;if(n>a)return t-a;if(a>e-n)return t-a+e}return t},i.createUUID=function(e,t){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(e,t).toUpperCase()}}(/[xy]/g,function(e){var t=16*F.random()|0;return("x"==e?t:3&t|8).toString(16)}),i.setWindow=function(e){t("raphael.setWindow",i,S.win,e),S.win=e,S.doc=S.win.document,i._engine.initWin&&i._engine.initWin(S.win)};var be=function(e){if(i.vml){var t,n=/^\s+|\s+$/g;try{var r=new ActiveXObject("htmlfile");r.write("<body>"),r.close(),t=r.body}catch(e){t=createPopup().document.body}var o=t.createTextRange();be=a(function(e){try{t.style.color=N(e).replace(n,L);var i=o.queryCommandValue("ForeColor");return i=(255&i)<<16|65280&i|(16711680&i)>>>16,"#"+("000000"+i.toString(16)).slice(-6)}catch(e){return"none"}})}else{var s=S.doc.createElement("i");s.title="Raphaël Colour Picker",s.style.display="none",S.doc.body.appendChild(s),be=a(function(e){return s.style.color=e,S.doc.defaultView.getComputedStyle(s,L).getPropertyValue("color")})}return be(e)},we=function(){return"hsb("+[this.h,this.s,this.b]+")"},xe=function(){return"hsl("+[this.h,this.s,this.l]+")"},ke=function(){return this.hex},Ce=function(e,t,n){if(null==t&&i.is(e,"object")&&"r"in e&&"g"in e&&"b"in e&&(n=e.b,t=e.g,e=e.r),null==t&&i.is(e,V)){var r=i.getRGB(e);e=r.r,t=r.g,n=r.b}return(e>1||t>1||n>1)&&(e/=255,t/=255,n/=255),[e,t,n]},Te=function(e,t,n,r){e*=255,t*=255,n*=255;var a={r:e,g:t,b:n,hex:i.rgb(e,t,n),toString:ke};return i.is(r,"finite")&&(a.opacity=r),a};i.color=function(e){var t;return i.is(e,"object")&&"h"in e&&"s"in e&&"b"in e?(t=i.hsb2rgb(e),e.r=t.r,e.g=t.g,e.b=t.b,e.hex=t.hex):i.is(e,"object")&&"h"in e&&"s"in e&&"l"in e?(t=i.hsl2rgb(e),e.r=t.r,e.g=t.g,e.b=t.b,e.hex=t.hex):(i.is(e,"string")&&(e=i.getRGB(e)),i.is(e,"object")&&"r"in e&&"g"in e&&"b"in e?(t=i.rgb2hsl(e),e.h=t.h,e.s=t.s,e.l=t.l,t=i.rgb2hsb(e),e.v=t.b):(e={hex:"none"},e.r=e.g=e.b=e.h=e.s=e.v=e.l=-1)),e.toString=ke,e},i.hsb2rgb=function(e,t,i,n){this.is(e,"object")&&"h"in e&&"s"in e&&"b"in e&&(i=e.b,t=e.s,n=e.o,e=e.h),e*=360;var r,a,o,s,l;return e=e%360/60,l=i*t,s=l*(1-$(e%2-1)),r=a=o=i-l,e=~~e,r+=[l,s,0,0,s,l][e],a+=[s,l,l,s,0,0][e],o+=[0,0,s,l,l,s][e],Te(r,a,o,n)},i.hsl2rgb=function(e,t,i,n){this.is(e,"object")&&"h"in e&&"s"in e&&"l"in e&&(i=e.l,t=e.s,e=e.h),(e>1||t>1||i>1)&&(e/=360,t/=100,i/=100),e*=360;var r,a,o,s,l;return e=e%360/60,l=2*t*(.5>i?i:1-i),s=l*(1-$(e%2-1)),r=a=o=i-l/2,e=~~e,r+=[l,s,0,0,s,l][e],a+=[s,l,l,s,0,0][e],o+=[0,0,s,l,l,s][e],Te(r,a,o,n)},i.rgb2hsb=function(e,t,i){i=Ce(e,t,i),e=i[0],t=i[1],i=i[2];var n,r,a,o;return a=B(e,t,i),o=a-U(e,t,i),n=0==o?null:a==e?(t-i)/o:a==t?(i-e)/o+2:(e-t)/o+4,n=(n+360)%6*60/360,r=0==o?0:o/a,{h:n,s:r,b:a,toString:we}},i.rgb2hsl=function(e,t,i){i=Ce(e,t,i),e=i[0],t=i[1],i=i[2];var n,r,a,o,s,l;return o=B(e,t,i),s=U(e,t,i),l=o-s,n=0==l?null:o==e?(t-i)/l:o==t?(i-e)/l+2:(e-t)/l+4,n=(n+360)%6*60/360,a=(o+s)/2,r=0==l?0:.5>a?l/(2*a):l/(2-2*a),{h:n,s:r,l:a,toString:xe}},i._path2string=function(){return this.join(",").replace(oe,"$1")},i._preload=function(e,t){var i=S.doc.createElement("img");i.style.cssText="position:absolute;left:-9999em;top:-9999em",i.onload=function(){t.call(this),this.onload=null,S.doc.body.removeChild(this)},i.onerror=function(){S.doc.body.removeChild(this)},S.doc.body.appendChild(i),i.src=e},i.getRGB=a(function(e){if(!e||(e=N(e)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:o};if("none"==e)return{r:-1,g:-1,b:-1,hex:"none",toString:o};!(ae[T](e.toLowerCase().substring(0,2))||"#"==e.charAt())&&(e=be(e));var t,n,r,a,s,l,c=e.match(K);return c?(c[2]&&(r=ee(c[2].substring(5),16),n=ee(c[2].substring(3,5),16),t=ee(c[2].substring(1,3),16)),c[3]&&(r=ee((s=c[3].charAt(3))+s,16),n=ee((s=c[3].charAt(2))+s,16),t=ee((s=c[3].charAt(1))+s,16)),c[4]&&(l=c[4][P](re),t=J(l[0]),"%"==l[0].slice(-1)&&(t*=2.55),n=J(l[1]),"%"==l[1].slice(-1)&&(n*=2.55),r=J(l[2]),"%"==l[2].slice(-1)&&(r*=2.55),"rgba"==c[1].toLowerCase().slice(0,4)&&(a=J(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100)),c[5]?(l=c[5][P](re),t=J(l[0]),"%"==l[0].slice(-1)&&(t*=2.55),n=J(l[1]),"%"==l[1].slice(-1)&&(n*=2.55),r=J(l[2]),"%"==l[2].slice(-1)&&(r*=2.55),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(t/=360),"hsba"==c[1].toLowerCase().slice(0,4)&&(a=J(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100),i.hsb2rgb(t,n,r,a)):c[6]Line truncated
;for(var _=0,b=u[v].length;b>_;_++){a[_]=[u[v][_][0]];for(var w=1,x=u[v][_].length;x>w;w++)a[_][w]=+u[v][_][w]+g*l*d[v][_][w];a[_]=a[_].join(O)}a=a.join(O);break;case"transform":if(d[v].real)for(a=[],_=0,b=u[v].length;b>_;_++)for(a[_]=[u[v][_][0]],w=1,x=u[v][_].length;x>w;w++)a[_][w]=u[v][_][w]+g*l*d[v][_][w];else{var k=function(e){return+u[v][e]+g*l*d[v][e]};a=[["m",k(0),k(1),k(2),k(3),k(4),k(5)]]}break;case"csv":if("clip-rect"==v)for(a=[],_=4;_--;)a[_]=+u[v][_]+g*l*d[v][_];break;default:var C=[][D](u[v]);for(a=[],_=p.paper.customAttributes[v].length;_--;)a[_]=+C[_]+g*l*d[v][_]}f[v]=a}p.attr(f),function(e,i,n){setTimeout(function(){t("raphael.anim.frame."+e,i,n)})}(p.id,p,r.anim)}else{if(function(e,n,r){setTimeout(function(){t("raphael.anim.frame."+n.id,n,r),t("raphael.anim.finish."+n.id,n,r),i.is(e,"function")&&e.call(n)})}(r.callback,p,r.anim),p.attr(h),lt.splice(n--,1),r.repeat>1&&!r.next){for(o in h)h[T](o)&&(m[o]=r.totalOrigin[o]);r.el.attr(m),y(r.anim,r.el,r.anim.percents[0],null,r.totalOrigin,r.repeat-1)}r.next&&!r.stop&&y(r.anim,r.el,r.next,null,r.totalOrigin,r.repeat)}}}i.svg&&p&&p.paper&&p.paper.safari(),lt.length&&ct(ut)},dt=function(e){return e>255?255:0>e?0:e};Ze.animateWith=function(e,t,n,r,a,o){var s=this;if(s.removed)return o&&o.call(s),s;var l=n instanceof v?n:i.animation(n,r,a,o);y(l,s,l.percents[0],null,s.attr());for(var c=0,u=lt.length;u>c;c++)if(lt[c].anim==t&&lt[c].el==e){lt[u-1].start=lt[c].start;break}return s},Ze.onAnimation=function(e){return e?t.on("raphael.anim.frame."+this.id,e):t.unbind("raphael.anim.frame."+this.id),this},v.prototype.delay=function(e){var t=new v(this.anim,this.ms);return t.times=this.times,t.del=+e||0,t},v.prototype.repeat=function(e){var t=new v(this.anim,this.ms);return t.del=this.del,t.times=F.floor(B(e,0))||1,t},i.animation=function(e,t,n,r){if(e instanceof v)return e;(i.is(n,"function")||!n)&&(r=r||n||null,n=null),e=Object(e),t=+t||0;var a,o,s={};for(o in e)e[T](o)&&J(o)!=o&&J(o)+"%"!=o&&(a=!0,s[o]=e[o]);if(a)return n&&(s.easing=n),r&&(s.callback=r),new v({100:s},t);if(r){var l=0;for(var c in e){var u=ee(c);e[T](c)&&u>l&&(l=u)}l+="%",!e[l].callback&&(e[l].callback=r)}return new v(e,t)},Ze.animate=function(e,t,n,r){var a=this;if(a.removed)return r&&r.call(a),a;var o=e instanceof v?e:i.animation(e,t,n,r);return y(o,a,o.percents[0],null,a.attr()),a},Ze.setTime=function(e,t){return e&&null!=t&&this.status(e,U(t,e.ms)/e.ms),this},Ze.status=function(e,t){var i,n,r=[],a=0;if(null!=t)return y(e,this,-1,U(t,1)),this;for(i=lt.length;i>a;a++)if(n=lt[a],n.el.id==this.id&&(!e||n.anim==e)){if(e)return n.status;r.push({anim:n.anim,status:n.status})}return e?0:r},Ze.pause=function(e){for(var i=0;i<lt.length;i++)lt[i].el.id!=this.id||e&&lt[i].anim!=e||!1!==t("raphael.anim.pause."+this.id,this,lt[i].anim)&&(lt[i].paused=!0);return this},Ze.resume=function(e){for(var i=0;i<lt.length;i++)if(lt[i].el.id==this.id&&(!e||lt[i].anim==e)){var n=lt[i];!1!==t("raphael.anim.resume."+this.id,this,n.anim)&&(delete n.paused,this.status(n.anim,n.status))}return this},Ze.stop=function(e){for(var i=0;i<lt.length;i++)lt[i].el.id!=this.id||e&&lt[i].anim!=e||!1!==t("raphael.anim.stop."+this.id,this,lt[i].anim)&&lt.splice(i--,1);return this},t.on("raphael.remove",_),t.on("raphael.clear",_),Ze.toString=function(){return"Raphaël’s object"};var ht=function(e){if(this.items=[],this.length=0,this.type="set",e)for(var t=0,i=e.length;i>t;t++)!e[t]||e[t].constructor!=Ze.constructor&&e[t].constructor!=ht||(this[this.items.length]=this.items[this.items.length]=e[t],this.length++)},pt=ht.prototype;pt.push=function(){for(var e,t,i=0,n=arguments.length;n>i;i++)!(e=arguments[i])||e.constructor!=Ze.constructor&&e.constructor!=ht||(t=this.items.length,this[t]=this.items[t]=e,this.length++);return this},pt.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},pt.forEach=function(e,t){for(var i=0,n=this.items.length;n>i;i++)if(!1===e.call(t,this.items[i],i))return this;return this};for(var ft in Ze)Ze[T](ft)&&(pt[ft]=function(e){return function(){var t=arguments;return this.forEach(function(i){i[e][I](i,t)})}}(ft));return pt.attr=function(e,t){if(e&&i.is(e,G)&&i.is(e[0],"object"))for(var n=0,r=e.length;r>n;n++)this.items[n].attr(e[n]);else for(var a=0,o=this.items.length;o>a;a++)this.items[a].attr(e,t);return this},pt.clear=function(){for(;this.length;)this.pop()},pt.splice=function(e,t){e=0>e?B(this.length+e,0):e,t=B(0,U(this.length-e,t));var i,n=[],r=[],a=[];for(i=2;i<arguments.length;i++)a.push(arguments[i]);for(i=0;t>i;i++)r.push(this[e+i]);for(;i<this.length-e;i++)n.push(this[e+i]);var o=a.length;for(i=0;i<o+n.length;i++)this.items[e+i]=this[e+i]=o>i?a[i]:n[i-o];for(i=this.items.length=this.length-=t-o;this[i];)delete this[i++];return new ht(r)},pt.exclude=function(e){for(var t=0,i=this.length;i>t;t++)if(this[t]==e)return this.splice(t,1),!0},pt.animate=function(e,t,n,r){(i.is(n,"function")||!n)&&(r=n||null);var a,o,s=this.items.length,l=s,c=this;if(!s)return this;r&&(o=funcLine truncated
(l.stroke&&"none"!=l.stroke||l["stroke-width"]||null!=l["stroke-opacity"]||l["stroke-dasharray"]||l["stroke-miterlimit"]||l["stroke-linejoin"]||l["stroke-linecap"])&&(B.on=!0),("none"==l.stroke||null===l.stroke||null==B.on||0==l.stroke||0==l["stroke-width"])&&(B.on=!1);var $=i.getRGB(l.stroke);B.on&&l.stroke&&(B.color=$.hex),F=((+f["stroke-opacity"]+1||2)-1)*((+f.opacity+1||2)-1)*((+$.o+1||2)-1);var q=.75*(n(l["stroke-width"])||1);if(F=s(o(F,0),1),null==l["stroke-width"]&&(q=f["stroke-width"]),l["stroke-width"]&&(B.weight=q),q&&1>q&&(F*=q)&&(B.weight=1),B.opacity=F,l["stroke-linejoin"]&&(B.joinstyle=l["stroke-linejoin"]||"miter"),B.miterlimit=l["stroke-miterlimit"]||8,l["stroke-linecap"]&&(B.endcap="butt"==l["stroke-linecap"]?"flat":"square"==l["stroke-linecap"]?"square":"round"),"stroke-dasharray"in l){var H={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};B.dashstyle=H[e](l["stroke-dasharray"])?H[l["stroke-dasharray"]]:p}U&&d.appendChild(B)}if("text"==y.type){y.paper.canvas.style.display=p;var W=y.paper.span,V=f.font&&f.font.match(/\d+(?:\.\d*)?(?=px)/);m=W.style,f.font&&(m.font=f.font),f["font-family"]&&(m.fontFamily=f["font-family"]),f["font-weight"]&&(m.fontWeight=f["font-weight"]),f["font-style"]&&(m.fontStyle=f["font-style"]),V=n(f["font-size"]||V&&V[0])||10,m.fontSize=100*V+"px",y.textpath.string&&(W.innerHTML=t(y.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var G=W.getBoundingClientRect();y.W=f.w=(G.right-G.left)/100,y.H=f.h=(G.bottom-G.top)/100,y.X=f.x,y.Y=f.y+y.H/2,("x"in l||"y"in l)&&(y.path.v=i.format("m{0},{1}l{2},{1}",a(f.x*_),a(f.y*_),a(f.x*_)+1));for(var Y=["x","y","text","font","font-family","font-weight","font-style","font-size"],K=0,X=Y.length;X>K;K++)if(Y[K]in l){y._.dirty=1;break}switch(f["text-anchor"]){case"start":y.textpath.style["v-text-align"]="left",y.bbx=y.W/2;break;case"end":y.textpath.style["v-text-align"]="right",y.bbx=-y.W/2;break;default:y.textpath.style["v-text-align"]="center",y.bbx=0}y.textpath.style["v-text-kern"]=!0}},E=function(e,a,o){e.attrs=e.attrs||{};var s=(e.attrs,Math.pow),l="linear",c=".5 .5";if(e.attrs.gradient=a,a=t(a).replace(i._radial_gradient,function(e,t,i){return l="radial",t&&i&&(t=n(t),i=n(i),s(t-.5,2)+s(i-.5,2)>.25&&(i=r.sqrt(.25-s(t-.5,2))*(2*(i>.5)-1)+.5),c=t+h+i),p}),a=a.split(/\s*\-\s*/),"linear"==l){var u=a.shift();if(u=-n(u),isNaN(u))return null}var d=i._parseDots(a);if(!d)return null;if(e=e.shape||e.node,d.length){e.removeChild(o),o.on=!0,o.method="none",o.color=d[0].color,o.color2=d[d.length-1].color;for(var f=[],m=0,g=d.length;g>m;m++)d[m].offset&&f.push(d[m].offset+h+d[m].color);o.colors=f.length?f.join():"0% "+o.color,"radial"==l?(o.type="gradientTitle",o.focus="100%",o.focussize="0 0",o.focusposition=c,o.angle=0):(o.type="gradient",o.angle=(270-u)%360),e.appendChild(o)}return 1},A=function(e,t){this[0]=this.node=e,e.raphael=!0,this.id=i._oid++,e.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=t,this.matrix=i.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!t.bottom&&(t.bottom=this),this.prev=t.top,t.top&&(t.top.next=this),t.top=this,this.next=null},I=i.el;A.prototype=I,I.constructor=A,I.transform=function(e){if(null==e)return this._.transform;var n,r=this.paper._viewBoxShift,a=r?"s"+[r.scale,r.scale]+"-1-1t"+[r.dx,r.dy]:p;r&&(n=e=t(e).replace(/\.{3}|\u2026/g,this._.transform||p)),i._extractTransform(this,a+e);var o,s=this.matrix.clone(),l=this.skew,c=this.node,u=~t(this.attrs.fill).indexOf("-"),d=!t(this.attrs.fill).indexOf("url(");if(s.translate(1,1),d||u||"image"==this.type)if(l.matrix="1 0 0 1",l.offset="0 0",o=s.split(),u&&o.noRotation||!o.isSimple){c.style.filter=s.toFilter();var f=this.getBBox(),m=this.getBBox(1),g=f.x-m.x,v=f.y-m.y;c.coordorigin=g*-_+h+v*-_,C(this,1,1,g,v,0)}else c.style.filter=p,C(this,o.scalex,o.scaley,o.dx,o.dy,o.rotate);else c.style.filter=p,l.matrix=t(s),l.offset=s.offset();return null!==n&&(this._.transform=n,i._extractTransform(this,n)),this},I.rotate=function(e,i,r){if(this.removed)return this;if(null!=e){if(e=t(e).split(u),e.length-1&&(i=n(e[1]),r=n(e[2])),e=n(e[0]),null==r&&(i=r),null==i||null==r){var a=this.getBBox(1);i=a.x+a.width/2,r=a.y+a.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",e,i,r]])),this}},I.translate=function(e,i){return this.removed?this:(e=t(e).split(u),e.length-1&&(i=n(e[1])),e=n(e[0])||0,i=+i||0,this._.bbox&&(this._.bbox.x+=e,this._.bbox.y+=i),this.transform(this._.transform.concat([["t",e,i]])),this)},I.scale=function(e,i,r,a){if(this.removed)return this;if(e=t(e).split(u),e.length-1&&(i=n(e[1]),r=n(e[2]),a=n(e[3]),isNaN(r)&&(r=null),isNaN(a)&&(a=null)),e=n(e[0]),null==i&&(i=e),null==a&&(r=a),null==r||null==a)var o=this.getBBox(1);return r=null==r?o.x+o.width/2:r,a=null==a?o.y+o.height/2:a,this.transform(this._.transform.concat([["s",e,i,r,a]])),this._.Line truncated
var d=s[c];this.text.attr("text",l+" "+d),l+=this.text.getBBox().width>o?"\n"+d:" "+d}this.text.attr("text",l.substring(1))}if(this.group.push(this.text),i){var h=this.getAttr("text-margin");i.attr({fill:this.getAttr("fill"),stroke:this.getAttr("element-color"),"stroke-width":this.getAttr("line-width"),width:this.text.getBBox().width+2*h,height:this.text.getBBox().height+2*h}),i.node.setAttribute("class",this.getAttr("class")),t.link&&i.attr("href",t.link),t.target&&i.attr("target",t.target),t.key&&(i.node.id=t.key),this.group.push(i),i.insertBefore(this.text),this.text.attr({y:i.getBBox().height/2}),this.initialize()}}function s(e,t){var i=e.paper.rect(0,0,0,0,20);t=t||{},t.text=t.text||"Start",o.call(this,e,t,i)}function l(e,t){var i=e.paper.rect(0,0,0,0,20);t=t||{},t.text=t.text||"End",o.call(this,e,t,i)}function c(e,t){var i=e.paper.rect(0,0,0,0);t=t||{},o.call(this,e,t,i)}function u(e,t){var i=e.paper.rect(0,0,0,0);t=t||{},o.call(this,e,t,i),i.attr({width:this.text.getBBox().width+4*this.getAttr("text-margin")}),this.text.attr({x:2*this.getAttr("text-margin")});var n=e.paper.rect(0,0,0,0);n.attr({x:this.getAttr("text-margin"),stroke:this.getAttr("element-color"),"stroke-width":this.getAttr("line-width"),width:this.text.getBBox().width+2*this.getAttr("text-margin"),height:this.text.getBBox().height+2*this.getAttr("text-margin"),fill:this.getAttr("fill")}),t.key&&(n.node.id=t.key+"i");var r=this.getAttr("font"),a=this.getAttr("font-family"),s=this.getAttr("font-weight");r&&n.attr({font:r}),a&&n.attr({"font-family":a}),s&&n.attr({"font-weight":s}),t.link&&n.attr("href",t.link),t.target&&n.attr("target",t.target),this.group.push(n),n.insertBefore(this.text),this.initialize()}function d(e,t){t=t||{},o.call(this,e,t),this.textMargin=this.getAttr("text-margin"),this.text.attr({x:3*this.textMargin});var n=this.text.getBBox().width+4*this.textMargin,r=this.text.getBBox().height+2*this.textMargin,a=this.textMargin,s=r/2,l={x:a,y:s},c=[{x:a-this.textMargin,y:r},{x:a-this.textMargin+n,y:r},{x:a-this.textMargin+n+2*this.textMargin,y:0},{x:a-this.textMargin+2*this.textMargin,y:0},{x:a,y:s}],u=i(e,l,c);u.attr({stroke:this.getAttr("element-color"),"stroke-width":this.getAttr("line-width"),fill:this.getAttr("fill")}),t.link&&u.attr("href",t.link),t.target&&u.attr("target",t.target),t.key&&(u.node.id=t.key),u.node.setAttribute("class",this.getAttr("class")),this.text.attr({y:u.getBBox().height/2}),this.group.push(u),u.insertBefore(this.text),this.initialize()}function h(e,t){t=t||{},o.call(this,e,t),this.textMargin=this.getAttr("text-margin"),this.yes_direction="bottom",this.no_direction="right",t.yes&&t.direction_yes&&t.no&&!t.direction_no?"right"===t.direction_yes?(this.no_direction="bottom",this.yes_direction="right"):(this.no_direction="right",this.yes_direction="bottom"):t.yes&&!t.direction_yes&&t.no&&t.direction_no?"right"===t.direction_no?(this.yes_direction="bottom",this.no_direction="right"):(this.yes_direction="right",this.no_direction="bottom"):(this.yes_direction="bottom",this.no_direction="right"),this.yes_direction=this.yes_direction||"bottom",this.no_direction=this.no_direction||"right",this.text.attr({x:2*this.textMargin});var n=this.text.getBBox().width+3*this.textMargin;n+=n/2;var r=this.text.getBBox().height+2*this.textMargin;r+=r/2,r=Math.max(.5*n,r);var a=n/4,s=r/4;this.text.attr({x:a+this.textMargin/2});var l={x:a,y:s},c=[{x:a-n/4,y:s+r/4},{x:a-n/4+n/2,y:s+r/4+r/2},{x:a-n/4+n,y:s+r/4},{x:a-n/4+n/2,y:s+r/4-r/2},{x:a-n/4,y:s+r/4}],u=i(e,l,c);u.attr({stroke:this.getAttr("element-color"),"stroke-width":this.getAttr("line-width"),fill:this.getAttr("fill")}),t.link&&u.attr("href",t.link),t.target&&u.attr("target",t.target),t.key&&(u.node.id=t.key),u.node.setAttribute("class",this.getAttr("class")),this.text.attr({y:u.getBBox().height/2}),this.group.push(u),u.insertBefore(this.text),this.initialize()}function p(e){function t(e){var t=e.indexOf("(")+1,n=e.indexOf(")");return t>=0&&n>=0?i.symbols[e.substring(0,t-1)]:i.symbols[e]}e=e||"",e=e.trim();for(var i={symbols:{},start:null,drawSVG:function(e,t){function i(e){if(o[e.key])return o[e.key];switch(e.symbolType){case"start":o[e.key]=new s(r,e);break;case"end":o[e.key]=new l(r,e);break;case"operation":o[e.key]=new c(r,e);break;case"inputoutput":o[e.key]=new d(r,e);break;case"subroutine":o[e.key]=new u(r,e);break;case"condition":o[e.key]=new h(r,e);break;default:return new Error("Wrong symbol type!")}return o[e.key]}var n=this;this.diagram&&this.diagram.clean();var r=new a(e,t);this.diagram=r;var o={};!function e(t,a,o){var s=i(t);return n.start===t?r.startWith(s):a&&o&&!a.pathOk&&(a instanceof h?(o.yes===t&&a.yes(s),o.no===t&&a.no(s)):a.then(s)),s.pathOk?s:(s instanceof h?(t.yes&&e(t.yes,s,t),t.no&&e(t.no,s,t)):t.next&&e(t.next,s,t),s)}(this.start),r.render()},clean:function(){this.diagram.clean()}},n=[],r=0,o=1,p=e.length;p>o;o++)if("\n"===e[o]&&"\\"!==e[o-1]){var f=e.substring(r,o);r=o+1,n.push(f.replace(/\\\n/g,"\n"))}r<e.length&&n.push(e.substr(r));forLine truncated
;return t.text=t.node=r.pre,r.bgClass&&(t.bgClass=r.bgClass),r.textClass&&(t.textClass=r.textClass),B(t),U(e,t,i,n),H(e,t,n),t.node}function H(e,t,i){if(W(e,t.line,t,i,!0),t.rest)for(var n=0;n<t.rest.length;n++)W(e,t.rest[n],t,i,!1)}function W(e,t,i,n,r){if(t.widgets)for(var a=R(i),o=0,s=t.widgets;o<s.length;++o){var l=s[o],c=Pr("div",[l.node],"CodeMirror-linewidget");l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),V(l,c,i,n),e.display.input.setUneditable(c),r&&l.above?a.insertBefore(c,i.gutter||i.text):a.appendChild(c),gr(l,"redraw")}}function V(e,t,i,n){if(e.noHScroll){(i.alignable||(i.alignable=[])).push(t);var r=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(r-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=r+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function G(e){return Ea(e.line,e.ch)}function Y(e,t){return Aa(e,t)<0?t:e}function K(e,t){return Aa(e,t)<0?e:t}function X(e){e.state.focused||(e.display.input.focus(),ci(e))}function Q(e){return e.options.readOnly||e.doc.cantEdit}function Z(e,t,i,n){var r=e.doc;e.display.shift=!1,n||(n=r.sel);var a=qo(t),o=null;e.state.pasteIncoming&&n.ranges.length>1&&(Ia&&Ia.join("\n")==t?o=n.ranges.length%Ia.length==0&&Er(Ia,qo):a.length==n.ranges.length&&(o=Er(a,function(e){return[e]})));for(var s=n.ranges.length-1;s>=0;s--){var l=n.ranges[s],c=l.from(),u=l.to();l.empty()&&(i&&i>0?c=Ea(c.line,c.ch-i):e.state.overwrite&&!e.state.pasteIncoming&&(u=Ea(u.line,Math.min(Hn(r,u.line).text.length,u.ch+Tr(a).length))));var d=e.curOp.updateInput,h={from:c,to:u,text:o?o[s%o.length]:a,origin:e.state.pasteIncoming?"paste":e.state.cutIncoming?"cut":"+input"};if(yi(e.doc,h),gr(e,"inputRead",e,h),t&&!e.state.pasteIncoming&&e.options.electricChars&&e.options.smartIndent&&l.head.ch<100&&(!s||n.ranges[s-1].head.line!=l.head.line)){var p=e.getModeAt(l.head),f=$a(h);if(p.electricChars){for(var m=0;m<p.electricChars.length;m++)if(t.indexOf(p.electricChars.charAt(m))>-1){Li(e,f.line,"smart");break}}else p.electricInput&&p.electricInput.test(Hn(r,f.line).text.slice(0,f.ch))&&Li(e,f.line,"smart")}}Di(e),e.curOp.updateInput=d,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function J(e){for(var t=[],i=[],n=0;n<e.doc.sel.ranges.length;n++){var r=e.doc.sel.ranges[n].head.line,a={anchor:Ea(r,0),head:Ea(r+1,0)};i.push(a),t.push(e.getRange(a.anchor,a.head))}return{text:t,ranges:i}}function ee(e){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck","false")}function te(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new xr,this.inaccurateSelection=!1,this.hasSelection=!1}function ie(){var e=Pr("textarea",null,null,"position: absolute; padding: 0; width: 1px; height: 1em; outline: none"),t=Pr("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return da?e.style.width="1000px":e.setAttribute("wrap","off"),ya&&(e.style.border="1px solid black"),ee(e),t}function ne(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new xr}function re(e,t){var i=Xe(e,t.line);if(!i||i.hidden)return null;var n=Hn(e.doc,t.line),r=Ge(i,n,t.line),a=Qn(n);if(a){ia(a,t.ch)%2?"right":"left"}var o=Je(r.map,t.ch,"left");return o.offset="right"==o.collapse?o.end:o.start,o}function ae(e,t){return t&&(e.bad=!0),e}function oe(e,t,i){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[i]))return ae(e.clipPos(Ea(e.display.viewTo-1)),!0);t=null,i=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var r=0;r<e.display.view.length;r++){var a=e.display.view[r];if(a.node==n)return se(a,t,i)}}function se(e,t,i){function n(t,i,n){for(var r=-1;r<(u?u.length:0);r++)for(var a=r<0?c.map:u[r],o=0;o<a.length;o+=3){var s=a[o+2];if(s==t||s==i){var l=Yn(r<0?e.line:e.rest[r]),d=a[o]+n;return(n<0||s!=t)&&(d=a[o+(n?1:0)]),Ea(l,d)}}}var r=e.text.firstChild,a=!1;if(!t||!Ro(r,t))return ae(Ea(Yn(e.line),0),!0);if(t==r&&(a=!0,t=r.childNodes[i],i=0,!t)){var o=e.rest?Tr(e.rest):e.line;return ae(Ea(Yn(o),o.text.length),a)}var s=3==t.nodeType?t:null,l=t;for(s||1!=t.childNodes.length||3!=t.firstChild.nodeType||(s=t.firstChild,i&&(i=s.nodeValue.length));l.parentNode!=r;)l=l.parentNode;var c=e.measure,u=c.maps,d=n(s,l,i);if(d)return ae(d,a);for(var h=l.nextSibling,p=s?s.nodeValue.length-i:0;h;h=h.nextSibling){if(d=n(h,h.firstChild,0))return ae(Ea(d.line,d.ch-p),a);p+=h.textContent.length}for(var f=l.previousSibling,p=i;f;f=f.previousSibling){if(d=n(f,f.firstChild,-1))return ae(Ea(d.line,d.ch+p),a);p+=h.textContent.length}}function le(e,t,i,n,r){function a(e){return function(t){return t.id==e}}function o(t){if(1==t.nodeType){var i=t.getAttribute("cm-text");if(null!=i)return""==i&&(i=t.textContent.replace(/\u200b/g,"")),void(s+=i);var c,u=t.getAttribute("cm-marker");ifLine truncated
y==i&&(l.scroller.scrollTop+=u,o(t))}),50)}}function s(e){y=1/0,vo(e),l.input.focus(),wo(document,"mousemove",_),wo(document,"mouseup",w),c.history.lastSelOrigin=null}var l=e.display,c=e.doc;vo(t);var u,d,h=c.sel,p=h.ranges;if(r&&!t.shiftKey?(d=c.sel.contains(i),u=d>-1?p[d]:new ue(i,i)):u=c.sel.primary(),t.altKey)n="rect",r||(u=new ue(i,i)),i=$t(e,t,!0,!0),d=-1;else if("double"==n){var f=e.findWordAt(i);u=e.display.shift||c.extend?ye(c,u,f.anchor,f.head):f}else if("triple"==n){var m=new ue(Ea(i.line,0),fe(c,Ea(i.line+1,0)));u=e.display.shift||c.extend?ye(c,u,m.anchor,m.head):m}else u=ye(c,u,i);r?-1==d?(d=p.length,Te(c,de(p.concat([u]),d),{scroll:!1,origin:"*mouse"})):p.length>1&&p[d].empty()&&"single"==n?(Te(c,de(p.slice(0,d).concat(p.slice(d+1)),0)),h=c.sel):we(c,d,u,Eo):(d=0,Te(c,new ce([u],0),Eo),h=c.sel);var g=i,v=l.wrapper.getBoundingClientRect(),y=0,_=Et(e,function(e){mr(e)?o(e):s(e)}),w=Et(e,s);bo(document,"mousemove",_),bo(document,"mouseup",w)}function Gt(e,t,i,n,r){try{var a=t.clientX,o=t.clientY}catch(t){return!1}if(a>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&vo(t);var s=e.display,l=s.lineDiv.getBoundingClientRect();if(o>l.bottom||!br(e,i))return pr(t);o-=l.top-s.viewOffset;for(var c=0;c<e.options.gutters.length;++c){var u=s.gutters.childNodes[c];if(u&&u.getBoundingClientRect().right>=a){return r(e,i,e,Kn(e.doc,o),e.options.gutters[c],t),pr(t)}}}function Yt(e,t){return Gt(e,t,"gutterClick",!0,gr)}function Kt(e){var t=this;if(!yr(t,e)&&!Ut(t.display,e)){vo(e),ca&&(Ra=+new Date);var i=$t(t,e,!0),n=e.dataTransfer.files;if(i&&!Q(t))if(n&&n.length&&window.FileReader&&window.File)for(var r=n.length,a=Array(r),o=0,s=0;s<r;++s)!function(e,n){var s=new FileReader;s.onload=Et(t,function(){if(a[n]=s.result,++o==r){i=fe(t.doc,i);var e={from:i,to:i,text:qo(a.join("\n")),origin:"paste"};yi(t.doc,e),Ce(t.doc,he(i,$a(e)))}}),s.readAsText(e)}(n[s],s);else{if(t.state.draggingText&&t.doc.sel.contains(i)>-1)return t.state.draggingText(e),void setTimeout(function(){t.display.input.focus()},20);try{var a=e.dataTransfer.getData("Text");if(a){if(t.state.draggingText&&!(ba?e.metaKey:e.ctrlKey))var l=t.listSelections();if(Se(t.doc,he(i,i)),l)for(var s=0;s<l.length;++s)Ci(t.doc,"",l[s].anchor,l[s].head,"drag");t.replaceSelection(a,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Xt(e,t){if(ca&&(!e.state.draggingText||+new Date-Ra<100))return void _o(t);if(!yr(e,t)&&!Ut(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.setDragImage&&!ma)){var i=Pr("img",null,null,"position: fixed; left: 0; top: 0;");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",fa&&(i.width=i.height=1,e.display.wrapper.appendChild(i),i._top=i.offsetTop),t.dataTransfer.setDragImage(i,0,0),fa&&i.parentNode.removeChild(i)}}function Qt(e,t){Math.abs(e.doc.scrollTop-t)<2||(e.doc.scrollTop=t,oa||I(e,{top:t}),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t),e.display.scrollbars.setScrollTop(t),oa&&I(e),Re(e,100))}function Zt(e,t,i){(i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)||(t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),e.doc.scrollLeft=t,w(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Jt(e,t){var i=Fa(t),n=i.x,r=i.y,a=e.display,o=a.scroller;if(n&&o.scrollWidth>o.clientWidth||r&&o.scrollHeight>o.clientHeight){if(r&&ba&&da)e:for(var s=t.target,l=a.view;s!=o;s=s.parentNode)for(var c=0;c<l.length;c++)if(l[c].node==s){e.display.currentWheelTarget=s;break e}if(n&&!oa&&!fa&&null!=za)return r&&Qt(e,Math.max(0,Math.min(o.scrollTop+r*za,o.scrollHeight-o.clientHeight))),Zt(e,Math.max(0,Math.min(o.scrollLeft+n*za,o.scrollWidth-o.clientWidth))),vo(t),void(a.wheelStartX=null);if(r&&null!=za){var u=r*za,d=e.doc.scrollTop,h=d+a.wrapper.clientHeight;u<0?d=Math.max(0,d+u-50):h=Math.min(e.doc.height,h+u+50),I(e,{top:d,bottom:h})}ja<20&&(null==a.wheelStartX?(a.wheelStartX=o.scrollLeft,a.wheelStartY=o.scrollTop,a.wheelDX=n,a.wheelDY=r,setTimeout(function(){if(null!=a.wheelStartX){var e=o.scrollLeft-a.wheelStartX,t=o.scrollTop-a.wheelStartY,i=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,i&&(za=(za*ja+i)/(ja+1),++ja)}},200)):(a.wheelDX+=n,a.wheelDY+=r))}}function ei(e,t,i){if("string"==typeof t&&!(t=Ja[t]))return!1;e.display.input.ensurePolled();var n=e.display.shift,r=!1;try{Q(e)&&(e.state.suppressEdits=!0),i&&(e.display.shift=!1),r=t(e)!=To}finally{e.display.shift=n,e.state.suppressEdits=!1}return r}function ti(e,t,i){for(var n=0;n<e.state.keyMaps.length;n++){var r=to(t,e.state.keyMaps[n],i,e);if(r)return r}return e.options.extraKeys&&to(t,e.options.extraKeys,i,e)||to(t,e.options.keyMap,i,e)}function ii(e,t,i,n){var r=e.state.keySeq;if(r){if(io(t))return"handled";Ba.set(50,function(){e.state.keySeq==r&&(e.state.keySeq=null,e.display.input.reset())}),t=r+" "+t}var a=ti(e,t,n);return"multi"==a&&(e.state.Line truncated
}this.size=t,this.height=i,this.parent=null}function $n(e,t,i){function n(e,r,a){if(e.linked)for(var o=0;o<e.linked.length;++o){var s=e.linked[o];if(s.doc!=r){var l=a&&s.sharedHist;i&&!l||(t(s.doc,l),n(s.doc,e,l))}}}n(e,null,!0)}function qn(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,o(e),i(e),e.options.lineWrapping||h(e),e.options.mode=t.modeOption,Lt(e)}function Hn(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var n=0;;++n){var r=i.children[n],a=r.chunkSize();if(t<a){i=r;break}t-=a}return i.lines[t]}function Wn(e,t,i){var n=[],r=t.line;return e.iter(t.line,i.line+1,function(e){var a=e.text;r==i.line&&(a=a.slice(0,i.ch)),r==t.line&&(a=a.slice(t.ch)),n.push(a),++r}),n}function Vn(e,t,i){var n=[];return e.iter(t,i,function(e){n.push(e.text)}),n}function Gn(e,t){var i=t-e.height;if(i)for(var n=e;n;n=n.parent)n.height+=i}function Yn(e){if(null==e.parent)return null;for(var t=e.parent,i=Sr(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var r=0;n.children[r]!=t;++r)i+=n.children[r].chunkSize();return i+t.first}function Kn(e,t){var i=e.first;e:do{for(var n=0;n<e.children.length;++n){var r=e.children[n],a=r.height;if(t<a){e=r;continue e}t-=a,i+=r.chunkSize()}return i}while(!e.lines);for(var n=0;n<e.lines.length;++n){var o=e.lines[n],s=o.height;if(t<s)break;t-=s}return i+n}function Xn(e){e=dn(e);for(var t=0,i=e.parent,n=0;n<i.lines.length;++n){var r=i.lines[n];if(r==e)break;t+=r.height}for(var a=i.parent;a;i=a,a=i.parent)for(var n=0;n<a.children.length;++n){var o=a.children[n];if(o==i)break;t+=o.height}return t}function Qn(e){var t=e.order;return null==t&&(t=e.order=Ko(e.text)),t}function Zn(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Jn(e,t){var i={from:G(t.from),to:$a(t),text:Wn(e,t.from,t.to)};return or(e,i,t.from.line,t.to.line+1),$n(e,function(e){or(e,i,t.from.line,t.to.line+1)},!0),i}function er(e){for(;e.length;){if(!Tr(e).ranges)break;e.pop()}}function tr(e,t){return t?(er(e.done),Tr(e.done)):e.done.length&&!Tr(e.done).ranges?Tr(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Tr(e.done)):void 0}function ir(e,t,i,n){var r=e.history;r.undone.length=0;var a,o=+new Date;if((r.lastOp==n||r.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&r.lastModTime>o-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(a=tr(r,r.lastOp==n))){var s=Tr(a.changes);0==Aa(t.from,t.to)&&0==Aa(t.from,s.to)?s.to=$a(t):a.changes.push(Jn(e,t))}else{var l=Tr(r.done);for(l&&l.ranges||ar(e.sel,r.done),a={changes:[Jn(e,t)],generation:r.generation},r.done.push(a);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(i),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=o,r.lastOp=r.lastSelOp=n,r.lastOrigin=r.lastSelOrigin=t.origin,s||xo(e,"historyAdded")}function nr(e,t,i,n){var r=t.charAt(0);return"*"==r||"+"==r&&i.ranges.length==n.ranges.length&&i.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function rr(e,t,i,n){var r=e.history,a=n&&n.origin;i==r.lastSelOp||a&&r.lastSelOrigin==a&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==a||nr(e,a,Tr(r.done),t))?r.done[r.done.length-1]=t:ar(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=a,r.lastSelOp=i,n&&!1!==n.clearRedo&&er(r.undone)}function ar(e,t){var i=Tr(t);i&&i.ranges&&i.equals(e)||t.push(e)}function or(e,t,i,n){var r=t["spans_"+e.id],a=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,n),function(i){i.markedSpans&&((r||(r=t["spans_"+e.id]={}))[a]=i.markedSpans),++a})}function sr(e){if(!e)return null;for(var t,i=0;i<e.length;++i)e[i].marker.explicitlyCleared?t||(t=e.slice(0,i)):t&&t.push(e[i]);return t?t.length?t:null:e}function lr(e,t){var i=t["spans_"+e.id];if(!i)return null;for(var n=0,r=[];n<t.text.length;++n)r.push(sr(i[n]));return r}function cr(e,t,i){for(var n=0,r=[];n<e.length;++n){var a=e[n];if(a.ranges)r.push(i?ce.prototype.deepCopy.call(a):a);else{var o=a.changes,s=[];r.push({changes:s});for(var l=0;l<o.length;++l){var c,u=o[l];if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var d in u)(c=d.match(/^spans_(\d+)$/))&&Sr(t,Number(c[1]))>-1&&(Tr(s)[d]=u[d],delete u[d])}}}return r}function ur(e,t,i,n){i<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function dr(e,t,i,n){for(var r=0;r<e.length;++r){var a=e[r],o=!0;if(a.ranges){a.copied||(a=e[r]=a.deepCopy(),a.copied=!0);for(var s=0;s<a.ranges.length;s++)ur(a.ranges[s].anchor,t,i,n),ur(a.ranges[s].head,t,i,n)}else{for(var s=0;s<a.changes.length;++s){var l=a.changes[s];if(i<l.from.line)l.from=Ea(l.from.line+n,l.from.ch),l.to=Ea(l.to.line+n,l.to.ch);else if(t<=l.to.line){o=!1;break}}o||(e.splice(0,r+1),r=0)}}}function hr(e,t){var i=t.from.line,n=t.to.line,r=t.text.length-(n-i)-1;dr(e.done,i,n,r),dr(e.undoneLine truncated
;for(;r<i.length&&s(i.charAt(r));)++r}return new ue(Ea(e.line,n),Ea(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Bo(this.display.cursorDiv,"CodeMirror-overwrite"):Fo(this.display.cursorDiv,"CodeMirror-overwrite"),xo(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==zr()},scrollTo:At(function(e,t){null==e&&null==t||Mi(this),null!=e&&(this.curOp.scrollLeft=e),null!=t&&(this.curOp.scrollTop=t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-qe(this)-this.display.barHeight,width:e.scrollWidth-qe(this)-this.display.barWidth,clientHeight:We(this),clientWidth:He(this)}},scrollIntoView:At(function(e,t){if(null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:Ea(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line)Mi(this),this.curOp.scrollToPos=e;else{var i=Ai(this,Math.min(e.from.left,e.to.left),Math.min(e.from.top,e.to.top)-e.margin,Math.max(e.from.right,e.to.right),Math.max(e.from.bottom,e.to.bottom)+e.margin);this.scrollTo(i.scrollLeft,i.scrollTop)}}),setSize:At(function(e,t){function i(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e}var n=this;null!=e&&(n.display.wrapper.style.width=i(e)),null!=t&&(n.display.wrapper.style.height=i(t)),n.options.lineWrapping&&nt(this);var r=n.display.viewFrom;n.doc.iter(r,n.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Ot(n,r,"widget");break}++r}),n.curOp.forceUpdate=!0,xo(n,"refresh",this)}),operation:function(e){return St(this,e)},refresh:At(function(){var e=this.display.cachedTextHeight;Lt(this),this.curOp.forceUpdate=!0,rt(this),this.scrollTo(this.doc.scrollLeft,this.doc.scrollTop),u(this),(null==e||Math.abs(e-mt(this.display))>.5)&&o(this),xo(this,"refresh",this)}),swapDoc:At(function(e){var t=this.doc;return t.cm=null,qn(this,e),rt(this),this.display.input.reset(),this.scrollTo(e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,gr(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},wr(e);var qa=e.defaults={},Ha=e.optionHandlers={},Wa=e.Init={toString:function(){return"CodeMirror.Init"}};ji("value","",function(e,t){e.setValue(t)},!0),ji("mode",null,function(e,t){e.doc.modeOption=t,i(e)},!0),ji("indentUnit",2,i,!0),ji("indentWithTabs",!1),ji("smartIndent",!0),ji("tabSize",4,function(e){n(e),rt(e),Lt(e)},!0),ji("specialChars",/[\t\u0000-\u0019\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t){e.options.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),e.refresh()},!0),ji("specialCharPlaceholder",Ln,function(e){e.refresh()},!0),ji("electricChars",!0),ji("inputStyle",_a?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ji("rtlMoveVisually",!wa),ji("wholeLineUpdateBefore",!0),ji("theme","default",function(e){s(e),l(e)},!0),ji("keyMap","default",function(t,i,n){var r=Fi(i),a=n!=e.Init&&Fi(n);a&&a.detach&&a.detach(t,r),r.attach&&r.attach(t,a||null)}),ji("extraKeys",null),ji("lineWrapping",!1,r,!0),ji("gutters",[],function(e){p(e.options),l(e)},!0),ji("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?C(e.display)+"px":"0",e.refresh()},!0),ji("coverGutterNextToScrollbar",!1,function(e){y(e)},!0),ji("scrollbarStyle","native",function(e){v(e),y(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),ji("lineNumbers",!1,function(e){p(e.options),l(e)},!0),ji("firstLineNumber",1,l,!0),ji("lineNumberFormatter",function(e){return e},l,!0),ji("showCursorWhenSelecting",!1,Me,!0),ji("resetSelectionOnContextMenu",!0),ji("readOnly",!1,function(e,t){"nocursor"==t?(ui(e),e.display.input.blur(),e.display.disabled=!0):(e.display.disabled=!1,t||e.display.input.reset())}),ji("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),ji("dragDrop",!0),ji("cursorBlinkRate",530),ji("cursorScrollMargin",0),ji("cursorHeight",1,Me,!0),ji("singleCursorHeightPerLine",!0,Me,!0),ji("workTime",100),ji("workDelay",100),ji("flattenSpans",!0,n,!0),ji("addModeClass",!1,n,!0),ji("pollInterval",100),ji("undoDepth",200,function(e,t){e.doc.history.undoDepth=t}),ji("historyEventDelay",1250),ji("viewportMargin",10,function(e){e.refresh()},!0),ji("maxHighlightLength",1e4,n,!0),ji("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),ji("tabindex",null,function(e,t){e.display.input.getField().tabIndex=t||""}),ji("autofocus",null);var Va=e.modes={},Ga=e.mimeModes={};e.defineMode=function(t,i){e.defaults.mode||"null"==t||(e.defaults.mode=t),argumLine truncated
},Po=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;Lo=document.createRange?function(e,t,i,n){var r=document.createRange();return r.setEnd(n||e,i),r.setStart(e,t),r}:function(e,t,i){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(e){return n}return n.collapse(!0),n.moveEnd("character",i),n.moveStart("character",t),n};var Ro=e.contains=function(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)};ca&&ua<11&&(zr=function(){try{return document.activeElement}catch(e){return document.body}});var jo,zo,Fo=e.rmClass=function(e,t){var i=e.className,n=Fr(t).exec(i);if(n){var r=i.slice(n.index+n[0].length);e.className=i.slice(0,n.index)+(r?n[1]+r:"")}},Bo=e.addClass=function(e,t){var i=e.className;Fr(t).test(i)||(e.className+=(i?" ":"")+t)},Uo=!1,$o=function(){if(ca&&ua<9)return!1;var e=Pr("div");return"draggable"in e||"dragDrop"in e}(),qo=e.splitLines=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,i=[],n=e.length;t<=n;){var r=e.indexOf("\n",t);-1==r&&(r=e.length);var a=e.slice(t,"\r"==e.charAt(r-1)?r-1:r),o=a.indexOf("\r");-1!=o?(i.push(a.slice(0,o)),t+=o+1):(i.push(a),t=r+1)}return i}:function(e){return e.split(/\r\n?|\n/)},Ho=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){try{var t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Wo=function(){var e=Pr("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Vo=null,Go={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",107:"=",109:"-",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};e.keyNames=Go,function(){for(var e=0;e<10;e++)Go[e+48]=Go[e+96]=String(e);for(var e=65;e<=90;e++)Go[e]=String.fromCharCode(e);for(var e=1;e<=12;e++)Go[e+111]=Go[e+63235]="F"+e}();var Yo,Ko=function(){function e(e){return e<=247?i.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1773?n.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,i){this.level=e,this.from=t,this.to=i}var i="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm",r=/[\u0590-\u05f4\u06Line truncated
d:"300,-268v18,12,19,32,4,51v-35,44,-34,140,-46,217v-1,5,-5,13,-11,12v-6,1,-19,-14,-18,-27r7,-106v-28,7,-76,22,-116,14v-18,2,-36,6,-55,3v-43,-8,-14,53,-33,75v-29,1,-26,-67,-21,-97v5,-31,28,-73,43,-98v2,2,7,3,14,3v13,33,-11,48,-13,78v61,4,118,2,176,2v8,0,13,-6,15,-20v4,-47,21,-87,54,-107",w:288},I:{d:"63,-266v34,10,-4,105,-8,128r-24,126v-2,2,-3,1,-9,6v-12,-10,-12,-15,-12,-47v0,-93,9,-156,28,-188v10,-17,19,-25,25,-25",w:79},J:{d:"235,-291v26,11,31,104,31,142v0,37,-2,95,-32,126v-33,34,-121,26,-167,1v-18,-11,-54,-29,-59,-59v0,-3,5,-15,16,-14v31,36,90,57,162,51v63,-30,56,-148,32,-226v-1,-16,11,-13,17,-21",w:282},K:{d:"212,-219v17,-5,80,-60,80,-19v0,9,-2,14,-5,16r-132,78v-34,23,-54,32,-21,50v39,21,74,23,124,41v5,2,7,5,7,9v-4,24,-55,15,-79,8v-67,-19,-98,-36,-116,-83v9,-24,38,-35,66,-61v7,-4,49,-30,76,-39xm47,-194v11,-20,11,-45,31,-55v2,2,4,3,6,0v29,39,-21,96,-18,128v-17,24,-15,62,-29,113v-4,3,-10,7,-19,11v-12,-13,-10,-28,-8,-53v3,-31,17,-79,37,-144",w:270},L:{d:"84,-43v58,0,179,-27,242,-4v3,17,-29,24,-40,26v-85,-4,-202,46,-268,3v-24,-16,-2,-33,-4,-57v26,-76,38,-108,86,-191v14,-7,26,-50,45,-32v6,22,5,31,-12,46v-20,39,-50,82,-67,142v-7,6,-19,46,-19,54v0,9,12,13,37,13",w:331},M:{d:"174,-236v-1,52,-11,92,-7,143v10,5,15,-12,22,-18v42,-55,90,-130,136,-174r15,-18v42,2,32,53,11,80v-12,58,-54,143,-34,210v0,3,-3,12,-9,10v-31,-5,-32,-57,-27,-92v4,-27,12,-58,25,-93v-5,-10,5,-19,6,-30v-46,44,-66,110,-129,172v-11,10,-18,15,-22,15v-34,6,-28,-103,-28,-152v-28,22,-65,119,-96,170v-9,15,-34,3,-31,-19v30,-64,91,-177,139,-229v12,-1,29,13,29,25",w:343},N:{d:"248,-20v-3,17,-37,18,-43,3v-24,-35,-53,-145,-80,-203v-32,40,-55,120,-92,174v-13,3,-26,-13,-27,-22r87,-171v4,-13,20,-57,42,-32v42,48,46,139,82,198v29,-45,46,-88,65,-153v12,-19,23,-42,38,-60v27,-1,14,18,4,44v-6,46,-32,68,-37,121v-15,29,-33,69,-39,101",w:307},O:{d:"240,-268v85,1,163,29,150,125v13,7,-12,18,-5,26v-23,63,-133,112,-228,124v-80,-16,-171,-56,-148,-153v11,-47,20,-43,53,-83v17,-9,39,-22,73,-29v45,-10,81,-10,105,-10xm363,-156v16,-51,-62,-85,-111,-79v-25,-11,-50,8,-81,0v-15,10,-70,16,-85,31v6,20,-27,24,-39,45v-42,75,40,128,115,128v56,0,209,-71,201,-125",w:383},P:{d:"70,-225v-7,-12,-36,16,-49,19v-4,0,-9,-5,-14,-17v21,-47,114,-55,172,-59v41,-3,132,33,99,87v-21,34,-72,59,-144,80v-2,16,-79,3,-74,46v3,25,-5,47,-10,68v-22,-1,-23,-29,-22,-56v2,-25,-20,-32,-8,-50v21,-5,10,-35,25,-57v6,-28,14,-48,25,-61xm71,-229v47,14,-2,50,-1,99v41,-3,113,-37,173,-76v5,-9,8,-14,8,-15v-28,-47,-125,-29,-180,-8",w:252},Q:{d:"374,-217v20,59,-11,127,-48,156r30,38v-1,6,-8,16,-14,9v-3,0,-19,-9,-47,-26v-72,35,-173,75,-236,12v-70,-40,-67,-213,26,-217r8,5v24,-20,72,-48,112,-38v21,-4,22,-1,50,-2v66,-2,94,20,119,63xm296,-88v13,5,61,-49,63,-84v4,-62,-54,-78,-119,-76v-14,-6,-49,5,-71,3v-42,16,-89,41,-93,94v-9,11,1,25,-7,38v-12,-19,-7,-67,-1,-88v-56,30,-37,137,19,155v27,17,92,19,119,0v12,-2,29,-9,52,-20v2,-2,3,-3,3,-6v-11,-12,-46,-27,-54,-56v0,-13,3,-19,9,-19v18,1,60,52,80,59",w:379},R:{d:"100,-275v96,-23,196,-10,208,78v-3,18,-17,52,-49,62v-14,20,-54,23,-79,40v-2,0,-14,2,-36,6v-40,8,-30,14,-3,33v37,27,52,30,118,55v16,6,31,23,12,27v-58,-2,-104,-29,-143,-61v-14,-3,-16,-15,-39,-27v-23,-19,-28,-12,-15,-38v63,-19,111,-15,163,-53v27,-20,43,-36,43,-49v0,-64,-120,-62,-173,-38v-9,4,-38,9,-40,18v-10,32,-16,70,-13,116v-10,21,-8,47,-6,75v2,31,-9,29,-27,22v-9,-55,5,-140,15,-190v-8,-6,-24,10,-24,-11v0,-34,16,-34,42,-55v2,-1,17,-4,46,-10",w:297},S:{d:"13,-3v-7,-3,-22,-18,-5,-22v68,-15,119,-32,154,-45v51,-19,39,-34,3,-53v-46,-25,-82,-30,-121,-64v-33,-29,-50,-35,-25,-58v37,-20,119,-29,181,-29v29,0,44,6,44,18v-9,26,-62,6,-104,14v-17,2,-72,6,-92,16v37,53,132,58,180,111v8,9,11,20,11,30v-4,17,-23,35,-42,34v-21,16,-17,1,-49,17v-14,7,-41,9,-56,20v-25,-3,-49,10,-79,11",w:234},T:{d:"141,-3v-36,-6,1,-49,-3,-79v10,-19,6,-35,15,-64r26,-85v-51,-9,-100,10,-141,14v-16,2,-30,-26,-11,-32v26,-8,143,-8,179,-19r12,6v67,-2,142,-1,200,-1v8,0,14,3,19,10v-18,16,-74,3,-103,14v-48,-4,-60,4,-113,7v-42,22,-36,130,-58,187v1,12,-9,44,-22,42",w:277},U:{d:"365,-262v13,56,-22,104,-36,141v-19,22,-30,38,-57,56v-4,18,-60,35,-78,50v-53,28,-142,0,-161,-34v-31,-56,-37,-108,-11,-164v17,-33,29,-50,48,-29v-2,2,-3,7,-4,13v-44,36,-38,149,7,174v30,26,55,19,102,4v56,-17,66,-34,120,-76v12,-24,56,-68,46,-122r0,-16v0,1,-1,3,-1,6v4,-13,11,-10,25,-3",w:368},V:{d:"246,-258v21,-22,31,-26,44,-8v1,1,-12,22,-28,35v-15,25,-41,38,-56,69v-13,15,-20,31,-28,57v-15,13,-11,29,-27,72v3,21,-5,24,-27,27v-33,-45,-54,-118,-84,-167v-5,-26,-18,-50,-25,-76v-3,-12,24,-8,29,-5v8,13,18,52,26,70r52,115v9,-2,4,-9,10,-21r25,-47v25,-44,46,-76,89,-121",w:234},W:{d:"31,-213v16,46,17,106,41,151v31,-35,49,-89,76,-127v30,-15,39,27,52,56v10,22,21,48,35,67v2,0,4,-1,5,-3v16,-28,50,-76,79,-121v14,-21,40,-63,64,-83r5,8v-30,58,-76,110,-97,173v-18,28,-25,37,-33,63v-11,1,-16,25,-30,15v-21,-31,-44,-89,-62,-131v0,-2,-1,-3,-5,-5v-17,11,-16,36,-31,50v-20,33,-20,84,-68,94v-24,-19,-23,-81,-39,-111v-1,-15,-29,-94,-10,-108v9,2,12,5,18,12",w:331},X:{d:"143,-183v43,-25,69,-36,126,-62v22,-10,86,-10,56,21v-51,3,-158,61,-154,64v10,15Line truncated
d:"247,-240v-3,5,-14,12,-21,6v-41,5,-71,-4,-85,37v-6,7,-21,42,-25,61v28,12,104,-16,129,24v8,11,12,24,12,38v-7,17,-2,99,-40,68v-9,-23,-5,-47,-1,-73v3,-24,-40,-24,-50,-19v-4,0,-18,2,-44,6v-30,-6,-16,49,-33,58v-19,-11,-14,2,-29,-10v8,-71,20,-114,43,-170v-24,-2,-49,4,-73,7v-30,3,-32,-33,-7,-36r184,-22v17,-1,40,13,40,25",w:265},"∫":{d:"62,-151v-7,-70,20,-130,63,-150v28,1,39,10,70,23v20,8,6,33,-6,35v-29,-13,-45,-20,-49,-20v-20,-4,-45,51,-43,70v8,60,5,129,5,189v0,62,-27,93,-79,93v-37,-1,-71,-14,-63,-57v21,0,79,34,91,-2v16,-3,14,-64,21,-85v-2,-31,-1,-74,-10,-96",w:156},"ª":{d:"6,-265v1,-31,58,-53,80,-22v-11,14,25,28,25,36v-2,8,-15,12,-27,10v-22,-29,-68,19,-78,-24xm52,-281v-8,1,-24,10,-9,13v11,1,24,-10,9,-13",w:117},"º":{d:"13,-273v1,-31,56,-41,83,-18v36,8,14,48,-9,52v-35,6,-64,-5,-74,-34xm81,-269v-7,-7,-20,-11,-29,-6v5,13,13,11,29,6",w:128},"Ω":{d:"121,-111v9,16,43,-5,54,5v28,-4,62,8,81,-5v48,-33,166,-28,160,44v15,34,-51,53,-88,53v-34,0,-53,-21,-71,-37v-15,7,-32,-4,-28,-22v-26,-4,-93,-6,-108,8v8,17,5,37,12,54v-1,15,-18,15,-31,10v-9,-15,-20,-39,-19,-63v-20,-9,-73,15,-79,-18v4,-28,50,-11,77,-24v12,-99,36,-168,137,-178v35,5,64,20,67,57v0,13,-14,18,-20,5v-15,-35,-83,-31,-104,4v-26,20,-39,82,-40,107xm334,-45v15,2,51,-14,53,-22v-7,-20,-36,-31,-69,-29v-8,-1,-39,6,-37,14v-3,10,44,38,53,37",w:424},"æ":{d:"145,-44r33,7v2,42,-59,29,-85,16v-6,7,-35,24,-48,15v-19,2,-35,-21,-33,-37v2,-24,5,-19,28,-36v-6,-8,-45,3,-33,-21v21,-22,58,-12,85,-1v6,-5,35,-28,45,-15v20,-4,36,17,36,35v0,23,-4,21,-28,37xm111,-72v12,3,49,-16,19,-17v-5,0,-20,12,-19,17xm74,-50v-14,-4,-48,16,-19,17v4,1,19,-14,19,-17",w:184},"ø":{d:"76,-136v17,7,33,-8,51,0v9,-6,21,-13,36,-21v23,22,-13,31,3,50v11,13,4,21,14,35v-4,5,-1,14,-4,23v-14,23,-45,41,-84,39v-12,2,-29,28,-41,38v-2,-11,-34,-10,-15,-30v3,-7,5,-11,5,-11v-15,-24,-60,-54,-22,-89v23,-21,25,-32,57,-34xm102,-54v18,1,50,-19,30,-32v-12,7,-22,18,-30,32xm85,-92v-14,3,-26,8,-38,17v2,20,17,13,26,0v6,-8,12,-13,12,-17",w:188},"¿":{d:"181,-247v3,1,31,2,29,15v-4,22,-37,27,-41,4v1,-5,7,-20,12,-19xm161,-34v-45,-1,-105,19,-124,51v0,11,18,17,54,17v39,0,82,-13,112,4v-10,35,-58,31,-100,31v-47,0,-80,-10,-99,-31v-10,-56,22,-73,64,-90v8,-3,32,-9,74,-18v21,-15,7,-62,22,-92v-1,-5,-1,-11,4,-12v16,0,24,7,24,22v-8,30,-8,73,-17,111v-3,5,-7,7,-14,7",w:213},"¡":{d:"86,-197v8,16,-7,41,-24,25v-11,-11,-4,-16,-3,-29v13,0,15,-2,27,4xm46,-107v4,-8,11,-16,23,-7v19,26,-5,57,-6,87v-7,0,-5,18,-9,28v0,14,-17,52,-11,70v-2,7,-15,28,-25,12v-4,-6,-15,-7,-6,-16v2,-39,14,-96,34,-174",w:95},"¬":{d:"141,-99v47,7,103,-3,149,6v14,24,18,15,10,39v-10,34,-7,31,-26,76v-4,6,-15,8,-16,21v-4,2,-4,1,-13,5v-22,-33,-4,-33,16,-104v-5,-9,-28,-4,-38,-6r-183,4v-14,0,-41,-29,-17,-36v31,-9,82,5,118,-5",w:315},"√":{d:"364,-218v43,-21,80,-51,104,-32v-3,19,-24,21,-44,40v-41,15,-78,53,-136,78r-137,98v-20,16,-79,66,-91,68v-3,1,-25,-11,-24,-13v-4,-28,-43,-61,-30,-85v26,-15,42,19,58,32r295,-188v0,1,2,2,5,2",w:474},"ƒ":{d:"115,-262v-23,6,-39,63,-38,96v1,3,57,2,54,16v1,22,-45,15,-51,30v3,34,12,68,10,103v14,17,-18,53,-28,63v-48,8,-89,5,-95,-37v20,-5,77,21,83,-18v17,-29,-4,-61,0,-98v0,-5,-3,-10,-7,-17v-33,4,-43,-17,-25,-37v10,-4,27,5,27,-10v0,-43,15,-77,32,-109v12,-7,16,-22,38,-20v11,1,51,35,25,55v-9,1,-16,-17,-25,-17",w:145},"≈":{d:"133,-112v21,15,48,-30,78,-17v3,3,5,7,5,9v-8,30,-47,45,-76,45v-19,0,-64,-48,-90,-21r-29,20v-6,-1,-17,-16,-15,-32v24,-17,70,-42,107,-21v4,4,10,9,20,17xm138,-57v28,2,48,-25,76,-26v13,30,-21,42,-40,53v-41,24,-77,-15,-114,-23v-15,14,-46,32,-49,-1v-3,-9,27,-28,54,-30",w:223},"∆":{d:"18,-1v-24,-30,8,-48,25,-71v14,-19,34,-28,40,-56v20,-35,29,-14,57,4v9,39,43,62,57,102v0,16,-34,17,-50,14v-28,2,-72,4,-129,7xm139,-47r-22,-52v-12,-5,-12,15,-24,27v-7,6,-14,16,-23,28v23,1,36,-1,69,-3",w:199},"«":{d:"191,-64v16,6,87,37,53,63v-39,-9,-71,-28,-107,-40v-14,-13,-13,-34,10,-47v27,-15,48,-55,84,-62v9,-2,21,10,21,18r-13,21v-16,5,-44,22,-51,41v0,4,1,6,3,6xm71,-65v17,6,87,35,55,62v-39,-8,-66,-27,-108,-40v-14,-13,-13,-36,10,-46v23,-18,50,-56,84,-63v9,-2,21,10,21,18r-13,22v-20,6,-32,17,-51,37v0,3,-1,11,2,10",w:265},"»":{d:"120,-129v9,-33,48,-10,64,5v9,20,86,52,50,86v-36,11,-66,31,-107,40v-6,-7,-9,-13,-9,-17v-2,-13,50,-46,63,-46v11,-18,-33,-42,-48,-47xm1,-128v10,-33,46,-8,64,6v8,19,86,50,51,85v-40,13,-69,30,-108,40v-6,-7,-8,-12,-8,-16v-2,-14,50,-46,63,-47v7,-13,-9,-20,-19,-30v-10,-9,-20,-15,-30,-17",w:252},"…":{d:"244,-24v-1,21,-38,32,-41,3v-2,-19,23,-22,34,-17v0,7,0,15,7,14xm113,-24v0,-22,28,-21,38,-8v5,34,-39,40,-38,8xm35,-2v-10,-2,-36,-17,-18,-29v-1,-15,17,-17,31,-6v7,17,6,33,-13,35",w:258}," ":{w:179},"À":{d:"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm150,-268v14,10,54,14,37,41v-28,-7,-62,-22,-100,-42v-2,-3,-2,-26,5,-23v16,4,42,17,58,24"},"Ã":{d:"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,6Line truncated
return";"==e?c(i):"{"==e||"}"==e?d(e,t,i):("word"==e?f="tag":"hash"==e&&(f="builtin"),"at")},E.interpolation=function(e,t,i){return"}"==e?c(i):"{"==e||";"==e?d(e,t,i):("variable"!=e&&(f="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:"top",stateArg:null,context:new s("top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var i=(t.tokenize||r)(e,t);return i&&"object"==typeof i&&(p=i[1],i=i[0]),f=i,t.state=E[t.state](p,e,t),f},indent:function(e,t){var i=e.context,n=t&&t.charAt(0),r=i.indent;return"prop"!=i.type||"}"!=n&&")"!=n||(i=i.prev),!i.prev||("}"!=n||"block"!=i.type&&"top"!=i.type&&"interpolation"!=i.type&&"restricted_atBlock"!=i.type)&&(")"!=n||"parens"!=i.type&&"atBlock_parens"!=i.type)&&("{"!=n||"at"!=i.type&&"atBlock"!=i.type)||(r=i.indent-m,i=i.prev),r},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});var r=["domain","regexp","url","url-prefix"],a=t(r),o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],s=t(o),l=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid"],c=t(l),u=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-sLine truncated
builtin:r("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:r("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:r("date time timestamp"),support:r("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":i,"`":t,"\\":n}}),e.defineMIME("text/x-mariadb",{name:"sql",client:r("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:r(a+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:r("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:r("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:r("date time timestamp"),support:r("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":i,"`":t,"\\":n}}),e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:r("use select from using consistency where limit first reversed first and in insert into values using consistency ttl update set delete truncate begin batch apply create keyspace with columnfamily primary key index on drop alter type add any one quorum all local_quorum each_quorum"),builtin:r("ascii bigint blob boolean counter decimal double float int text timestamp uuid varchar varint"),atoms:r("false true"),operatorChars:/^[<>=]/,dateSQL:{},support:r("Line truncated
return C(e,!0)}function C(e,t){if(Ae.state.fatArrowAt==Ae.stream.start){var i=t?L:M;if("("==e)return f(g,y(")"),z(H,")"),_,b("=>"),i,v);if("variable"==e)return p(g,H,b("=>"),i,v)}var n=t?A:E;return Ee.hasOwnProperty(e)?f(n):"function"==e?f(ee,n):"keyword c"==e?f(t?S:T):"("==e?f(y(")"),T,pe,b(")"),_,n):"operator"==e||"spread"==e?f(t?k:x):"["==e?f(y("]"),de,_,n):"{"==e?F(P,"}",null,n):"quasi"==e?p(I,n):f()}function T(e){return e.match(/[;\}\)\],]/)?p():p(x)}function S(e){return e.match(/[;\}\)\],]/)?p():p(k)}function E(e,t){return","==e?f(x):A(e,t,!1)}function A(e,t,i){var n=0==i?E:A,r=0==i?x:k;return"=>"==e?f(g,i?L:M,v):"operator"==e?/\+\+|--/.test(t)?f(n):"?"==t?f(x,b(":"),r):f(r):"quasi"==e?p(I,n):";"!=e?"("==e?F(k,")","call",n):"."==e?f(N,n):"["==e?f(y("]"),T,b("]"),_,n):void 0:void 0}function I(e,t){return"quasi"!=e?p():"${"!=t.slice(t.length-2)?f(I):f(x,D)}function D(e){if("}"==e)return Ae.marked="string-2",Ae.state.tokenize=l,f(I)}function M(e){return c(Ae.stream,Ae.state),p("{"==e?w:x)}function L(e){return c(Ae.stream,Ae.state),p("{"==e?w:k)}function O(e){return":"==e?f(_,w):p(E,b(";"),_)}function N(e){if("variable"==e)return Ae.marked="property",f()}function P(e,t){return"variable"==e||"keyword"==Ae.style?(Ae.marked="property",f("get"==t||"set"==t?R:j)):"number"==e||"string"==e?(Ae.marked=_e?"property":Ae.style+" property",f(j)):"jsonld-keyword"==e?f(j):"["==e?f(x,b("]"),j):void 0}function R(e){return"variable"!=e?p(j):(Ae.marked="property",f(ee))}function j(e){return":"==e?f(k):"("==e?p(ee):void 0}function z(e,t){function i(n){if(","==n){var r=Ae.state.lexical;return"call"==r.info&&(r.pos=(r.pos||0)+1),f(e,i)}return n==t?f():f(b(t))}return function(n){return n==t?f():p(e,i)}}function F(e,t,i){for(var n=3;n<arguments.length;n++)Ae.cc.push(arguments[n]);return f(y(t,i),z(e,t),_)}function B(e){return"}"==e?f():p(w,B)}function U(e){if(we&&":"==e)return f($)}function $(e){if("variable"==e)return Ae.marked="variable-3",f()}function q(){return p(H,U,V,G)}function H(e,t){return"variable"==e?(m(t),f()):"["==e?F(H,"]"):"{"==e?F(W,"}"):void 0}function W(e,t){return"variable"!=e||Ae.stream.match(/^\s*:/,!1)?("variable"==e&&(Ae.marked="property"),f(b(":"),H,V)):(m(t),f(V))}function V(e,t){if("="==t)return f(k)}function G(e){if(","==e)return f(q)}function Y(e,t){if("keyword b"==e&&"else"==t)return f(y("form","else"),w,_)}function K(e){if("("==e)return f(y(")"),X,b(")"),_)}function X(e){return"var"==e?f(q,b(";"),Z):";"==e?f(Z):"variable"==e?f(Q):p(x,b(";"),Z)}function Q(e,t){return"in"==t||"of"==t?(Ae.marked="keyword",f(x)):f(E,Z)}function Z(e,t){return";"==e?f(J):"in"==t||"of"==t?(Ae.marked="keyword",f(x)):p(x,b(";"),J)}function J(e){")"!=e&&f(x)}function ee(e,t){return"*"==t?(Ae.marked="keyword",f(ee)):"variable"==e?(m(t),f(ee)):"("==e?f(g,y(")"),z(te,")"),_,w,v):void 0}function te(e){return"spread"==e?f(te):p(H,U)}function ie(e,t){if("variable"==e)return m(t),f(ne)}function ne(e,t){return"extends"==t?f(x,ne):"{"==e?f(y("}"),re,_):void 0}function re(e,t){return"variable"==e||"keyword"==Ae.style?(Ae.marked="property","get"==t||"set"==t?f(ae,ee,re):f(ee,re)):"*"==t?(Ae.marked="keyword",f(re)):";"==e?f(re):"}"==e?f():void 0}function ae(e){return"variable"!=e?p():(Ae.marked="property",f())}function oe(e,t){return"string"==e?f(w):"variable"==e?(m(t),f(ue)):void 0}function se(e,t){return"*"==t?(Ae.marked="keyword",f(ue,b(";"))):"default"==t?(Ae.marked="keyword",f(x,b(";"))):p(w)}function le(e){return"string"==e?f():p(ce,ue)}function ce(e,t){return"{"==e?F(ce,"}"):("variable"==e&&m(t),f())}function ue(e,t){if("from"==t)return Ae.marked="keyword",f(x)}function de(e){return"]"==e?f():p(k,he)}function he(e){return"for"==e?p(pe,b("]")):","==e?f(z(S,"]")):p(z(k,"]"))}function pe(e){return"for"==e?f(K,pe):"if"==e?f(x,pe):void 0}function fe(e,t){return"operator"==e.lastType||","==e.lastType||Ce.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}var me,ge,ve=t.indentUnit,ye=i.statementIndent,_e=i.jsonld,be=i.json||_e,we=i.typescript,xe=i.wordCharacters||/[\w$\xa1-\uffff]/,ke=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),i=e("keyword b"),n=e("keyword c"),r=e("operator"),a={type:"atom",style:"atom"},o={if:e("if"),while:t,with:t,else:i,do:i,try:i,finally:i,return:n,break:n,continue:n,new:n,delete:n,throw:n,debugger:n,var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:r,typeof:r,instanceof:r,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),module:e("module"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n};if(we){var s={type:"variable",style:"variable-3"},l={interface:e("interface"),extends:e("extends"),constructor:e("constructor"),public:e("public"),private:e("private"),protected:e("protected"),static:e("static"),string:s,number:s,bool:s,any:s};for(var c in l)o[c]=l[c]}return o}(),Ce=/[+\-*&%=<>!?|~^]/,Te=/^@(context|id|value|language|type|containerLine truncated
},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]}];for(var t=0;t<e.modeInfo.length;t++){var i=e.modeInfo[t];i.mimes&&(i.mime=i.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var i=0;i<e.modeInfo.length;i++){var n=e.modeInfo[i];if(n.mime==t)return n;if(n.mimes)for(var r=0;r<n.mimes.length;r++)if(n.mimes[r]==t)return n}},e.findModeByExtension=function(t){for(var i=0;i<e.modeInfo.length;i++){var n=e.modeInfo[i];if(n.ext)for(var r=0;r<n.ext.length;r++)if(n.ext[r]==t)return n}},e.findModeByFileName=function(t){for(var i=0;i<e.modeInfo.length;i++){var n=e.modeInfo[i];if(n.file&&n.file.test(t))return n}var r=t.lastIndexOf("."),a=r>-1&&t.substring(r+1,t.length);if(a)return e.findModeByExtension(a)},e.findModeByName=function(t){t=t.toLowerCase();for(var i=0;i<e.modeInfo.length;i++){var n=e.modeInfo[i];if(n.name.toLowerCase()==t)return n;if(n.alias)for(var r=0;r<n.alias.length;r++)if(n.alias[r].toLowerCase()==t)return n}}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../xml/xml"),require("../meta")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/markdown/markdown",["../../lib/codemirror","../xml/xml","../meta"],e):e(CodeMirror)}(function(e){e.defineMode("markdown",function(t,i){function n(i){if(e.findModeByName){var n=e.findModeByName(i);n&&(i=n.mime||n.mimes[0])}var r=e.getMode(t,i);return"null"==r.name?null:r}function r(e,t,i){return t.f=t.inline=i,i(e,t)}function a(e,t,i){return t.f=t.block=i,i(e,t)}function o(e){return e.linkTitle=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,w||e.f!=l||(e.f=p,e.block=s),e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.thisLineHasContent=!1,null}function s(e,t){var a=e.sol(),o=!1!==t.list;!1!==t.list&&t.indentationDiff>=0?(t.indentationDiff<4&&(t.indentation-=t.indentationDiff),t.list=null):!1!==t.list&&t.indentation>0?(t.list=null,t.listDepth=Math.floor(t.indentation/4)):!1!==t.list&&(t.list=!1,t.listDepth=0);var s=null;if(t.indentationDiff>=4)return t.indentation-=4,e.skipToEnd(),T;if(e.eatSpace())return null;if(s=e.match(H))return t.header=s[0].length<=6?s[0].length:6,i.highlightFormatting&&(t.formatting="header"),t.f=t.inline,d(t);if(t.prevLineHasContent&&(s=e.match(W)))return t.header="="==s[0].charAt(0)?1:2,i.highlightFormatting&&(t.formatting="header"),t.f=t.inline,d(t);if(e.eat(">"))return t.indentation++,t.quote=a?1:t.quote+1,i.highlightFormatting&&(t.formatting="quote"),e.eatSpace(),d(t);if("["===e.peek())return r(e,t,v);if(e.match(B,!0))return D;if((!t.prevLineHasContent||o)&&(e.match(U,!1)||e.match($,!1))){var l=null;return e.match(U,!0)?l="ul":(e.match($,!0),l="ol"),t.indentation+=4,t.list=!0,t.listDepth++,i.taskLists&&e.match(q,!1)&&(t.taskList=!0),t.f=t.inline,i.highlightFormatting&&(t.formatting=["list","list-"+l]),d(t)}return i.fencedCodeBlocks&&e.match(/^```[ \t]*([\w+#]*)/,!0)?(t.localMode=n(RegExp.$1),t.localMode&&(t.localState=t.localMode.startState()),t.f=t.block=c,i.highlightFormatting&&(t.formatting="code-block"),t.code=!0,d(t)):r(e,t,t.inline)}function l(e,t){var i=x.token(e,t.htmlState);return(w&&null===t.htmlState.tagStart&&!t.htmlState.context||t.md_inside&&e.current().indexOf(">")>-1)&&(t.f=p,t.block=s,t.htmlState=null),i}function c(e,t){return e.sol()&&e.match("```",!1)?(t.localMode=t.localState=null,t.f=t.block=u,null):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),T)}function u(e,t){e.match("```"),t.block=s,t.f=p,i.highlightFormatting&&(t.formatting="code-block"),t.code=!0;var n=d(t);return t.code=!1,n}function d(e){var t=[];if(e.formatting){t.push(L),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var n=0;n<e.formatting.length;n++)t.push(L+"-"+e.formatting[n]),"header"===e.formatting[n]&&t.push(L+"-"+e.formatting[n]+"-"+e.header),"quote"===e.formatting[n]&&(!i.maxBlockquoteDepth||i.maxBlockquoteDepth>=e.quote?t.push(L+"-"+e.formatting[n]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref)return t.push(R),t.length?t.join(" "):null;if(e.strong&&t.push(z),e.em&&t.push(j),e.strikethrough&&t.push(F),e.linkText&&t.push(P),e.code&&t.push(T),e.header&&(t.push(C),t.push(C+"-"+e.header)),e.quote&&(t.push(S),!i.maxBlockquoteDepth||i.maxBlockquoteDepth>=e.quote?t.push(S+"-"+e.quote):t.push(S+"-"+i.maxBlockquoteDepth)),!1!==e.list){var r=(e.listDepth-1)%3;r?1===r?t.push(A):t.push(I):t.push(E)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function h(e,t){if(e.match(V,!0))return d(t)}function p(t,n){var r=n.text(t,n);if(void 0!==r)return r;if(n.list)return n.list=null,d(n);if(n.taskList){return"x"!==t.match(q,!0)[1]?n.taskOpen=!0:n.taskClosed=!0,i.highlightFormatting&&(n.formatting="task"),n.taskList=!1,d(n)}if(n.taskOpen=!1,n.taskClosed=!1,n.header&&t.match(/^#+$/,!0))return Line truncated
return new RegExp("^(("+e.join(")|(")+"))\\b")}function i(e){return e.scopes[e.scopes.length-1]}var n=t(["and","or","not","is"]),r=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],a=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"],o={builtins:["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"],keywords:["exec","print"]},s={builtins:["ascii","bytes","exec","print"],keywords:["nonlocal","False","True","None"]};e.registerHelper("hintWords","python",r.concat(a)),e.defineMode("python",function(l,c){function u(e,t){if(e.sol()&&"py"==i(t).type){var n=i(t).offset;if(e.eatSpace()){var r=e.indentation();return r>n?p(e,t,"py"):r<n&&f(e,t)&&(t.errorToken=!0),null}var a=d(e,t);return n>0&&f(e,t)&&(a+=" "+g),a}return d(e,t)}function d(e,t){if(e.eatSpace())return null;if("#"==e.peek())return e.skipToEnd(),"comment";if(e.match(/^[0-9\.]/,!1)){var i=!1;if(e.match(/^\d*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^\d+\.\d*/)&&(i=!0),e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var r=!1;if(e.match(/^0x[0-9a-f]+/i)&&(r=!0),e.match(/^0b[01]+/i)&&(r=!0),e.match(/^0o[0-7]+/i)&&(r=!0),e.match(/^[1-9]\d*(e[\+\-]?\d+)?/)&&(e.eat(/J/i),r=!0),e.match(/^0(?![\dx])/i)&&(r=!0),r)return e.eat(/L/i),"number"}return e.match(S)?(t.tokenize=h(e.current()),t.tokenize(e,t)):e.match(b)||e.match(_)?null:e.match(y)||e.match(w)||e.match(n)?"operator":e.match(v)?null:e.match(E)?"keyword":e.match(A)?"builtin":e.match(/^(self|cls)\b/)?"variable-2":e.match(x)?"def"==t.lastToken||"class"==t.lastToken?"def":"variable":(e.next(),g)}function h(e){function t(t,r){for(;!t.eol();)if(t.eatWhile(/[^'"\\]/),t.eat("\\")){if(t.next(),i&&t.eol())return n}else{if(t.match(e))return r.tokenize=u,n;t.eat(/['"]/)}if(i){if(c.singleLineStringErrors)return g;r.tokenize=u}return n}for(;"rub".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var i=1==e.length,n="string";return t.isString=!0,t}function p(e,t,n){var r=0,a=null;if("py"==n)for(;"py"!=i(t).type;)t.scopes.pop();r=i(t).offset+("py"==n?l.indentUnit:k),"py"==n||e.match(/^(\s|#.*)*$/,!1)||(a=e.column()+1),t.scopes.push({offset:r,type:n,align:a})}function f(e,t){for(var n=e.indentation();i(t).offset>n;){if("py"!=i(t).type)return!0;t.scopes.pop()}return i(t).offset!=n}function m(e,t){var n=t.tokenize(e,t),r=e.current();if("."==r)return n=e.match(x,!1)?null:g,null==n&&"meta"==t.lastStyle&&(n="meta"),n;if("@"==r)return c.version&&3==parseInt(c.version,10)?e.match(x,!1)?"meta":"operator":e.match(x,!1)?"meta":g;"variable"!=n&&"builtin"!=n||"meta"!=t.lastStyle||(n="meta"),"pass"!=r&&"return"!=r||(t.dedent+=1),"lambda"==r&&(t.lambda=!0),":"!=r||t.lambda||"py"!=i(t).type||p(e,t,"py");var a=1==r.length?"[({".indexOf(r):-1;if(-1!=a&&p(e,t,"])}".slice(a,a+1)),-1!=(a="])}".indexOf(r))){if(i(t).type!=r)return g;t.scopes.pop()}return t.dedent>0&&e.eol()&&"py"==i(t).type&&(t.scopes.length>1&&t.scopes.pop(),t.dedent-=1),n}var g="error",v=c.singleDelimiters||new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),y=c.doubleOperators||new RegExp("^((==)|(!=)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),_=c.doubleDelimiters||new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),b=c.tripleDelimiters||new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))");if(c.version&&3==parseInt(c.version,10))var w=c.singleOperators||new RegExp("^[\\+\\-\\*/%&|\\^~<>!@]"),x=c.identifiers||new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");else var w=c.singleOperators||new RegExp("^[\\+\\-\\*/%&|\\^~<>!]"),x=c.identifiers||new RegExp("^[_A-Za-z][_A-Za-z0-9]*");var k=c.hangingIndent||l.indentUnit,C=r,T=a;if(void 0!=c.extra_keywords&&(C=C.concat(c.extra_keywords)),void 0!=c.extra_builtins&&(T=T.concat(c.extra_builtins)),c.version&&3==parseInt(c.version,10)){C=C.concat(s.keywords),T=T.concat(s.builtins);var S=new RegExp("^(([rb]|(br))?('{3}|\"{3}|['\"]))","i")}else{C=C.concat(o.keywords),T=T.concat(o.builtins);var S=new RegExp("^(([rub]|(ur)|(br))?('{3}|\"{3}|['\"]))","i")}var E=t(C),A=t(T);return{startState:function(e){return{tokenize:u,scopes:[{offset:e||0,type:"py",align:null}],lastStyle:null,lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var i=t.errorToken;i&&(t.errorToken=!1);var n=m(e,t);t.lastStyle=n;var r=e.current();return r&&n&&(t.lastToken=r),e.eol()&&t.lambda&&(t.lambda=!1),i?nLine truncated
t.match(y),a="keyword",t.current().match(/^(?:math|latex)/)&&(i.tmp_stex=!0);break;case 2:u(i,n,c(P,3)),t.match(/^:`/),a="meta";break;case 3:if(i.tmp_stex&&(i.tmp_stex=void 0,i.tmp={mode:f,local:e.startState(f)}),i.tmp){if("`"==t.peek()){u(i,n,c(P,4)),i.tmp=void 0;break}a=i.tmp.mode.token(t,i.tmp.local);break}u(i,n,c(P,4)),t.match(x),a="string";break;case 4:u(i,n,c(P,5)),t.match(/^`/),a="meta";break;case 5:u(i,n,c(P,6)),t.match(g);break;default:u(i,n)}else if(h(i)==R||t.match(R,!1))switch(d(i)){case 0:u(i,n,c(R,1)),t.match(/^`/),a="meta";break;case 1:u(i,n,c(R,2)),t.match(x),a="string";break;case 2:u(i,n,c(R,3)),t.match(/^`:/),a="meta";break;case 3:u(i,n,c(R,4)),t.match(y),a="keyword";break;case 4:u(i,n,c(R,5)),t.match(/^:/),a="meta";break;case 5:u(i,n,c(R,6)),t.match(g);break;default:u(i,n)}else if(h(i)==j||t.match(j,!1))switch(d(i)){case 0:u(i,n,c(j,1)),t.match(/^:/),a="meta";break;case 1:u(i,n,c(j,2)),t.match(y),a="keyword";break;case 2:u(i,n,c(j,3)),t.match(/^:/),a="meta";break;case 3:u(i,n,c(j,4)),t.match(g);break;default:u(i,n)}else if(h(i)==D||t.match(D,!1))switch(d(i)){case 0:u(i,n,c(D,1)),t.match(B),a="variable-2";break;case 1:u(i,n,c(D,2)),t.match(/^_?_?/)&&(a="link");break;default:u(i,n)}else if(t.match(M))u(i,n),a="quote";else if(t.match(L))u(i,n),a="quote";else if(t.match(O))u(i,n),t.peek()&&!t.peek().match(/^\W$/)||(a="link");else if(h(i)==N||t.match(N,!1))switch(d(i)){case 0:!t.peek()||t.peek().match(/^\W$/)?u(i,n,c(N,1)):t.match(N);break;case 1:u(i,n,c(N,2)),t.match(/^`/),a="link";break;case 2:u(i,n,c(N,3)),t.match(x);break;case 3:u(i,n,c(N,4)),t.match(/^`_/),a="link";break;default:u(i,n)}else t.match(G)?u(i,o):t.next()&&u(i,n);return a}function r(t,i){var o=null;if(h(i)==E||t.match(E,!1))switch(d(i)){case 0:u(i,r,c(E,1)),t.match(B),o="variable-2";break;case 1:u(i,r,c(E,2)),t.match(U);break;case 2:u(i,r,c(E,3)),t.match($),o="keyword";break;case 3:u(i,r,c(E,4)),t.match(q),o="meta";break;default:u(i,n)}else if(h(i)==S||t.match(S,!1))switch(d(i)){case 0:u(i,r,c(S,1)),t.match(z),o="keyword",t.current().match(/^(?:math|latex)/)?i.tmp_stex=!0:t.current().match(/^python/)&&(i.tmp_py=!0);break;case 1:u(i,r,c(S,2)),t.match(F),o="meta",(t.match(/^latex\s*$/)||i.tmp_stex)&&(i.tmp_stex=void 0,u(i,l,{mode:f,local:e.startState(f)}));break;case 2:u(i,r,c(S,3)),(t.match(/^python\s*$/)||i.tmp_py)&&(i.tmp_py=void 0,u(i,l,{mode:p,local:e.startState(p)}));break;default:u(i,n)}else if(h(i)==T||t.match(T,!1))switch(d(i)){case 0:u(i,r,c(T,1)),t.match(H),t.match(W),o="link";break;case 1:u(i,r,c(T,2)),t.match(V),o="meta";break;default:u(i,n)}else t.match(A)?(u(i,n),o="quote"):t.match(I)?(u(i,n),o="quote"):(t.eatSpace(),t.eol()?u(i,n):(t.skipToEnd(),u(i,a),o="comment"));return o}function a(e,t){return s(e,t,"comment")}function o(e,t){return s(e,t,"meta")}function s(e,t,i){return e.eol()||e.eatSpace()?(e.skipToEnd(),i):(u(t,n),null)}function l(e,t){return t.ctx.mode&&t.ctx.local?e.sol()?(e.eatSpace()||u(t,n),null):t.ctx.mode.token(e,t.ctx.local):(u(t,n),null)}function c(e,t,i,n){return{phase:e,stage:t,mode:i,local:n}}function u(e,t,i){e.tok=t,e.ctx=i||{}}function d(e){return e.ctx.stage||0}function h(e){return e.ctx.phase}var p=e.getMode(t,"python"),f=e.getMode(t,"stex"),m="(?:\\s*|\\W|$)",g=new RegExp(i("^{0}",m)),v="(?:[^\\W\\d_](?:[\\w!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)",y=new RegExp(i("^{0}",v)),_=i("(?:{0}|`{1}`)",v,"(?:[^\\W\\d_](?:[\\w\\s!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)"),b="(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)",w="(?:[^\\`]+)",x=new RegExp(i("^{0}",w)),k=new RegExp("^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"),C=new RegExp(i("^\\.\\.{0}","\\s+")),T=new RegExp(i("^_{0}:{1}|^__:{1}",_,m)),S=new RegExp(i("^{0}::{1}",_,m)),E=new RegExp(i("^\\|{0}\\|{1}{2}::{3}",b,"\\s+",_,m)),A=new RegExp(i("^\\[(?:\\d+|#{0}?|\\*)]{1}",_,m)),I=new RegExp(i("^\\[{0}\\]{1}",_,m)),D=new RegExp(i("^\\|{0}\\|",b)),M=new RegExp(i("^\\[(?:\\d+|#{0}?|\\*)]_",_)),L=new RegExp(i("^\\[{0}\\]_",_)),O=new RegExp(i("^{0}__?",_)),N=new RegExp(i("^`{0}`_",w)),P=new RegExp(i("^:{0}:`{1}`{2}",v,w,m)),R=new RegExp(i("^`{1}`:{0}:{2}",v,w,m)),j=new RegExp(i("^:{0}:{1}",v,m)),z=new RegExp(i("^{0}",_)),F=new RegExp(i("^::{0}",m)),B=new RegExp(i("^\\|{0}\\|",b)),U=new RegExp(i("^{0}","\\s+")),$=new RegExp(i("^{0}",_)),q=new RegExp(i("^::{0}",m)),H=new RegExp("^_"),W=new RegExp(i("^{0}|_",_)),V=new RegExp(i("^:{0}",m)),G=new RegExp("^::\\s*$"),Y=new RegExp("^\\s+(?:>>>|In \\[\\d+\\]:)\\s");return{startState:function(){return{tok:n,ctx:c(void 0,0)}},copyState:function(t){var i=t.ctx,n=t.tmp;return i.local&&(i={mode:i.mode,local:e.copyState(i.mode,i.local)}),n&&(n={mode:n.mode,local:e.copyState(n.mode,n.local)}),{tok:t.tok,ctx:i,tmp:n}},innerMode:function(e){return e.tmp?{state:e.tmp.local,mode:e.tmp.mode}:e.ctx.mode?{state:e.ctx.local,mode:e.ctx.mode}:null},token:function(e,t){return t.tok(e,t)}}},"python","stex"),e.defineMIME("text/x-rst","rst")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require(".Line truncated
u(t,e,"atom");if(e.eatSpace())return u(t,e,"whitespace");if(!f(t)&&e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return c(e.current(),S)?u(t,e,"type"):u(t,e,"attribute");var i=e.next();if("%"==i)return e.skipToEnd(),u(t,e,"comment");if(":"==i)return u(t,e,"colon");if("?"==i)return e.eatSpace(),e.eatWhile(F),u(t,e,"macro");if("#"==i)return e.eatSpace(),e.eatWhile(F),u(t,e,"record");if("$"==i)return"\\"!=e.next()||e.match(B)?u(t,e,"number"):u(t,e,"error");if("."==i)return u(t,e,"dot");if("'"==i){if(!(t.in_atom=!o(e))){if(e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),u(t,e,"fun");if(e.match(/\s*\(/,!1)||e.match(/\s*:/,!1))return u(t,e,"function")}return u(t,e,"atom")}if('"'==i)return t.in_string=!a(e),u(t,e,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(i))return e.eatWhile(F),u(t,e,"variable");if(/[a-z_ß-öø-ÿ]/.test(i)){if(e.eatWhile(F),e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),u(t,e,"fun");var s=e.current();return c(s,E)?u(t,e,"keyword"):c(s,D)?u(t,e,"operator"):e.match(/\s*\(/,!1)?!c(s,z)||":"==f(t).token&&"erlang"!=f(t,2).token?c(s,j)?u(t,e,"guard"):u(t,e,"function"):u(t,e,"builtin"):c(s,D)?u(t,e,"operator"):":"==l(e)?"erlang"==s?u(t,e,"builtin"):u(t,e,"function"):c(s,["true","false"])?u(t,e,"boolean"):c(s,["true","false"])?u(t,e,"boolean"):u(t,e,"atom")}var d=/[0-9]/,h=/[0-9a-zA-Z]/;return d.test(i)?(e.eatWhile(d),e.eat("#")?e.eatWhile(h)||e.backUp(1):e.eat(".")&&(e.eatWhile(d)?e.eat(/[eE]/)&&(e.eat(/[-+]/)?e.eatWhile(d)||e.backUp(2):e.eatWhile(d)||e.backUp(1)):e.backUp(1)),u(t,e,"number")):n(e,O,N)?u(t,e,"open_paren"):n(e,P,R)?u(t,e,"close_paren"):r(e,A,I)?u(t,e,"separator"):r(e,M,L)?u(t,e,"operator"):u(t,e,null)}function n(e,t,i){if(1==e.current().length&&t.test(e.current())){for(e.backUp(1);t.test(e.peek());)if(e.next(),c(e.current(),i))return!0;e.backUp(e.current().length-1)}return!1}function r(e,t,i){if(1==e.current().length&&t.test(e.current())){for(;t.test(e.peek());)e.next();for(;0<e.current().length;){if(c(e.current(),i))return!0;e.backUp(1)}e.next()}return!1}function a(e){return s(e,'"',"\\")}function o(e){return s(e,"'","\\")}function s(e,t,i){for(;!e.eol();){var n=e.next();if(n==t)return!0;n==i&&e.next()}return!1}function l(e){var t=e.match(/([\n\s]+|%[^\n]*\n)*(.)/,!1);return t?t.pop():""}function c(e,t){return-1<t.indexOf(e)}function u(e,t,i){switch(m(e,h(i,t)),i){case"atom":return"atom";case"attribute":return"attribute";case"boolean":return"atom";case"builtin":return"builtin";case"close_paren":case"colon":return null;case"comment":return"comment";case"dot":return null;case"error":return"error";case"fun":return"meta";case"function":return"tag";case"guard":return"property";case"keyword":return"keyword";case"macro":return"variable-2";case"number":return"number";case"open_paren":return null;case"operator":return"operator";case"record":return"bracket";case"separator":return null;case"string":return"string";case"type":return"def";case"variable":return"variable";default:return null}}function d(e,t,i,n){return{token:e,column:t,indent:i,type:n}}function h(e,t){return d(t.current(),t.column(),t.indentation(),e)}function p(e){return d(e,0,0,e)}function f(e,t){var i=e.tokenStack.length,n=t||1;return!(i<n)&&e.tokenStack[i-n]}function m(e,t){"comment"!=t.type&&"whitespace"!=t.type&&(e.tokenStack=g(e.tokenStack,t),e.tokenStack=v(e.tokenStack))}function g(e,t){var i=e.length-1;return 0<i&&"record"===e[i].type&&"dot"===t.type?e.pop():0<i&&"group"===e[i].type?(e.pop(),e.push(t)):e.push(t),e}function v(e){var t=e.length-1;if("dot"===e[t].type)return[];if("fun"===e[t].type&&"fun"===e[t-1].token)return e.slice(0,t-1);switch(e[e.length-1].token){case"}":return y(e,{g:["{"]});case"]":return y(e,{i:["["]});case")":return y(e,{i:["("]});case">>":return y(e,{i:["<<"]});case"end":return y(e,{i:["begin","case","fun","if","receive","try"]});case",":return y(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return y(e,{r:["when"],m:["try","if","case","receive"]});case";":return y(e,{E:["case","fun","if","receive","try","when"]});case"catch":return y(e,{e:["try"]});case"of":return y(e,{e:["case"]});case"after":return y(e,{e:["receive","try"]});default:return e}}function y(e,t){for(var i in t)for(var n=e.length-1,r=t[i],a=n-1;-1<a;a--)if(c(e[a].token,r)){var o=e.slice(0,a);switch(i){case"m":return o.concat(e[a]).concat(e[n]);case"r":return o.concat(e[n]);case"i":return o;case"g":return o.concat(p("group"));case"E":case"e":return o.concat(e[a])}}return"E"==i?[]:e}function _(i,n){var r,a=t.indentUnit,o=b(n),s=f(i,1),l=f(i,2);return i.in_string||i.in_atom?e.Pass:l?"when"==s.token?s.column+a:"when"===o&&"function"===l.type?l.indent+a:"("===o&&"fun"===s.token?s.column+3:"catch"===o&&(r=k(i,["try"]))?r.column:c(o,["end","after","of"])?(r=k(i,["begin","case","fun","if","receive","try"]),r?r.column:e.Pass):c(o,R)?(r=k(i,N),r?r.column:e.Pass):c(s.token,[",","|","||"])||c(o,[",","|","||"])?(r=w(i),r?r.column+r.token.length:a):"->"==s.token?c(l.token,["receive","case","if","tLine truncated
function i(e,t,i,n){this.line=t,this.ch=i,this.cm=e,this.text=e.getLine(t),this.min=n?n.from:e.firstLine(),this.max=n?n.to-1:e.lastLine()}function n(e,t){var i=e.cm.getTokenTypeAt(h(e.line,t));return i&&/\btag\b/.test(i)}function r(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function a(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function o(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(r(e))continue;return}{if(n(e,t+1)){var i=e.text.lastIndexOf("/",t),a=i>-1&&!/\S/.test(e.text.slice(i+1,t));return e.ch=t+1,a?"selfClose":"regular"}e.ch=t+1}}}function s(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(a(e))continue;return}if(n(e,t+1)){f.lastIndex=t,e.ch=t;var i=f.exec(e.text);if(i&&i.index==t)return i}else e.ch=t}}function l(e){for(;;){f.lastIndex=e.ch;var t=f.exec(e.text);if(!t){if(r(e))continue;return}{if(n(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}}function c(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(a(e))continue;return}{if(n(e,t+1)){var i=e.text.lastIndexOf("/",t),r=i>-1&&!/\S/.test(e.text.slice(i+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t}}}function u(e,t){for(var i=[];;){var n,r=l(e),a=e.line,s=e.ch-(r?r[0].length:0);if(!r||!(n=o(e)))return;if("selfClose"!=n)if(r[1]){for(var c=i.length-1;c>=0;--c)if(i[c]==r[2]){i.length=c;break}if(c<0&&(!t||t==r[2]))return{tag:r[2],from:h(a,s),to:h(e.line,e.ch)}}else i.push(r[2])}}function d(e,t){for(var i=[];;){var n=c(e);if(!n)return;if("selfClose"!=n){var r=e.line,a=e.ch,o=s(e);if(!o)return;if(o[1])i.push(o[2]);else{for(var l=i.length-1;l>=0;--l)if(i[l]==o[2]){i.length=l;break}if(l<0&&(!t||t==o[2]))return{tag:o[2],from:h(e.line,e.ch),to:h(r,a)}}}else s(e)}}var h=e.Pos,p="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",f=new RegExp("<(/?)(["+p+"][A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");e.registerHelper("fold","xml",function(e,t){for(var n=new i(e,t.line,0);;){var r,a=l(n);if(!a||n.line!=t.line||!(r=o(n)))return;if(!a[1]&&"selfClose"!=r){var t=h(n.line,n.ch),s=u(n,a[2]);return s&&{from:t,to:s.from}}}}),e.findMatchingTag=function(e,n,r){var a=new i(e,n.line,n.ch,r);if(-1!=a.text.indexOf(">")||-1!=a.text.indexOf("<")){var l=o(a),c=l&&h(a.line,a.ch),p=l&&s(a);if(l&&p&&!(t(a,n)>0)){var f={from:h(a.line,a.ch),to:c,tag:p[2]};return"selfClose"==l?{open:f,close:null,at:"open"}:p[1]?{open:d(a,p[2]),close:f,at:"close"}:(a=new i(e,c.line,c.ch,r),{open:f,close:u(a,p[2]),at:"open"})}}},e.findEnclosingTag=function(e,t,n){for(var r=new i(e,t.line,t.ch,n);;){var a=d(r);if(!a)break;var o=new i(e,t.line,t.ch,n),s=u(o,a.tag);if(s)return{open:a,close:s}}},e.scanForClosingTag=function(e,t,n,r){return u(new i(e,t.line,t.ch,r?{from:0,to:r}:null),n)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../fold/xml-fold")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/addon/edit/closetag",["../../lib/codemirror","../fold/xml-fold"],e):e(CodeMirror)}(function(e){function t(t){if(t.getOption("disableInput"))return e.Pass;for(var i=t.listSelections(),n=[],l=0;l<i.length;l++){if(!i[l].empty())return e.Pass;var c=i[l].head,u=t.getTokenAt(c),d=e.innerMode(t.getMode(),u.state),h=d.state;if("xml"!=d.mode.name||!h.tagName)return e.Pass;var p=t.getOption("autoCloseTags"),f="html"==d.mode.configuration,m="object"==typeof p&&p.dontCloseTags||f&&o,g="object"==typeof p&&p.indentTags||f&&s,v=h.tagName;u.end>c.ch&&(v=v.slice(0,v.length-u.end+c.ch));var y=v.toLowerCase();if(!v||"string"==u.type&&(u.end!=c.ch||!/[\"\']/.test(u.string.charAt(u.string.length-1))||1==u.string.length)||"tag"==u.type&&"closeTag"==h.type||u.string.indexOf("/")==u.string.length-1||m&&r(m,y)>-1||a(t,v,c,h,!0))return e.Pass;var _=g&&r(g,y)>-1;n[l]={indent:_,text:">"+(_?"\n\n":"")+"</"+v+">",newPos:_?e.Pos(c.line+1,0):e.Pos(c.line,c.ch+1)}}for(var l=i.length-1;l>=0;l--){var b=n[l];t.replaceRange(b.text,i[l].head,i[l].anchor,"+insert");var w=t.listSelections().slice(0);w[l]={head:b.newPos,anchor:b.newPos},t.setSelections(w),b.indent&&(t.indentLine(b.newPos.line,null,!0),t.indentLine(b.newPos.line+1,null,!0))}}function i(t,i){for(var n=t.listSelections(),r=[],o=i?"/":"</",s=0;s<n.length;s++){if(!n[s].empty())return e.Pass;var l=n[s].head,c=t.getTokenAt(l),u=e.innerMode(t.getMode(),c.state),d=u.state;if(i&&("string"==c.type||"<"!=c.string.charAt(0)||c.start!=l.ch-1))return e.Pass;if("xml"!=u.mode.name)if("htmlmixed"==t.getMode().name&&"javascript"==u.mode.name)r[s]=o+"script>";else{if("htmlmixed"!=t.getMode().name||"css"!=u.mode.name)return e.Pass;r[s]=o+"style>"}else{if(!d.context||!d.context.tagNaLine truncated
width:"number"==typeof l.width?l.width+"px":l.width,height:"number"==typeof l.height?l.height+"px":l.height}),l.autoHeight&&c.css("height","auto");var d=this.markdownTextarea=c.children("textarea");d.length<1&&(c.append("<textarea></textarea>"),d=this.markdownTextarea=c.children("textarea")),d.addClass(u.textarea.markdown).attr("placeholder",l.placeholder),void 0!==d.attr("name")&&""!==d.attr("name")||d.attr("name",""!==l.name?l.name:r+"-markdown-doc");var h=[l.readOnly?"":'<a href="javascript:;" class="fa fa-close '+o+'preview-close-btn"></a>',l.saveHTMLToTextarea?'<textarea class="'+u.textarea.html+'" name="'+r+'-html-code"></textarea>':"",'<div class="'+o+'preview"><div class="markdown-body '+o+'preview-container"></div></div>','<div class="'+o+'container-mask" style="display:block;"></div>','<div class="'+o+'mask"></div>'].join("\n");return c.append(h).addClass(o+"vertical"),""!==l.theme&&c.addClass(o+"theme-"+l.theme),this.mask=c.children("."+o+"mask"),this.containerMask=c.children("."+o+"container-mask"),""!==l.markdown&&d.val(l.markdown),""!==l.appendMarkdown&&d.val(d.val()+l.appendMarkdown),this.htmlTextarea=c.children("."+u.textarea.html),this.preview=c.children("."+o+"preview"),this.previewContainer=this.preview.children("."+o+"preview-container"),""!==l.previewTheme&&this.preview.addClass(o+"preview-theme-"+l.previewTheme),"function"==typeof define&&define.amd&&(void 0!==n&&(i.$katex=n),l.searchReplace&&!l.readOnly&&(i.loadCSS(l.path+"codemirror/addon/dialog/dialog"),i.loadCSS(l.path+"codemirror/addon/search/matchesonscrollbar"))),"function"==typeof define&&define.amd||!l.autoLoadModules?(void 0!==s&&(i.$CodeMirror=s),void 0!==t&&(i.$marked=t),this.setCodeMirror().setToolbar().loadedDisplay()):this.loadQueues(),this},loadQueues:function(){var e=this,n=this.settings,r=n.path,a=function(){if(i.isIE8)return void e.loadedDisplay();n.flowChart||n.sequenceDiagram?i.loadScript(r+"raphael.min",function(){i.loadScript(r+"underscore.min",function(){!n.flowChart&&n.sequenceDiagram?i.loadScript(r+"sequence-diagram.min",function(){e.loadedDisplay()}):n.flowChart&&!n.sequenceDiagram?i.loadScript(r+"flowchart.min",function(){i.loadScript(r+"jquery.flowchart.min",function(){e.loadedDisplay()})}):n.flowChart&&n.sequenceDiagram&&i.loadScript(r+"flowchart.min",function(){i.loadScript(r+"jquery.flowchart.min",function(){i.loadScript(r+"sequence-diagram.min",function(){e.loadedDisplay()})})})})}):e.loadedDisplay()};return i.loadCSS(r+"codemirror/codemirror.min"),n.searchReplace&&!n.readOnly&&(i.loadCSS(r+"codemirror/addon/dialog/dialog"),i.loadCSS(r+"codemirror/addon/search/matchesonscrollbar")),n.codeFold&&i.loadCSS(r+"codemirror/addon/fold/foldgutter"),i.loadScript(r+"codemirror/codemirror.min",function(){i.$CodeMirror=s,i.loadScript(r+"codemirror/modes.min",function(){i.loadScript(r+"codemirror/addons.min",function(){if(e.setCodeMirror(),"gfm"!==n.mode&&"markdown"!==n.mode)return e.loadedDisplay(),!1;e.setToolbar(),i.loadScript(r+"marked.min",function(){i.$marked=t,n.previewCodeHighlight?i.loadScript(r+"prettify.min",function(){a()}):a()})})})}),this},setTheme:function(e){var t=this.editor,i=this.settings.theme,n=this.classPrefix+"theme-";return t.removeClass(n+i).addClass(n+e),this.settings.theme=e,this},setEditorTheme:function(e){var t=this.settings;return t.editorTheme=e,"default"!==e&&i.loadCSS(t.path+"codemirror/theme/"+t.editorTheme),this.cm.setOption("theme",e),this},setCodeMirrorTheme:function(e){return this.setEditorTheme(e),this},setPreviewTheme:function(e){var t=this.preview,i=this.settings.previewTheme,n=this.classPrefix+"preview-theme-";return t.removeClass(n+i).addClass(n+e),this.settings.previewTheme=e,this},setCodeMirror:function(){var e=this.settings,t=this.editor;"default"!==e.editorTheme&&i.loadCSS(e.path+"codemirror/theme/"+e.editorTheme);var n={mode:e.mode,theme:e.editorTheme,tabSize:e.tabSize,dragDrop:!1,autofocus:e.autoFocus,autoCloseTags:e.autoCloseTags,readOnly:!!e.readOnly&&"nocursor",indentUnit:e.indentUnit,lineNumbers:e.lineNumbers,lineWrapping:e.lineWrapping,extraKeys:{"Ctrl-Q":function(e){e.foldCode(e.getCursor())}},foldGutter:e.codeFold,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],matchBrackets:e.matchBrackets,indentWithTabs:e.indentWithTabs,styleActiveLine:e.styleActiveLine,styleSelectedText:e.styleSelectedText,autoCloseBrackets:e.autoCloseBrackets,showTrailingSpace:e.showTrailingSpace,highlightSelectionMatches:!!e.matchWordHighlight&&{showToken:"onselected"!==e.matchWordHighlight&&/\w/}};return this.codeEditor=this.cm=i.$CodeMirror.fromTextArea(this.markdownTextarea[0],n),this.codeMirror=this.cmElement=t.children(".CodeMirror"),""!==e.value&&this.cm.setValue(e.value),this.codeMirror.css({fontSize:e.fontSize,width:e.watch?"50%":"100%"}),e.autoHeight&&(this.codeMirror.css("height","auto"),this.cm.setOption("viewportMargin",1/0)),e.lineNumbers||this.codeMirror.find(".CodeMirror-gutters").css("border-right","none"),this},getCodeMirrorOption:function(e){return this.cm.getLine truncated
;var c=i.regexs,u=c.atLink,d=c.emoji,h=c.email,p=c.emailLink,f=c.twemoji,m=c.fontAwesome,g=c.editormdLogo,v=c.pageBreak;return l.emoji=function(e){e=e.replace(i.regexs.emojiDatetime,function(e){return e.replace(/:/g,"&#58;")});var t=e.match(d);if(!t||!a.emoji)return e;for(var n=0,r=t.length;n<r;n++)":+1:"===t[n]&&(t[n]=":\\+1:"),e=e.replace(new RegExp(t[n]),function(e,t){var n=e.match(m),r=e.replace(/:/g,"");if(n)for(var a=0,o=n.length;a<o;a++){var s=n[a].replace(/:/g,"");return'<i class="fa '+s+' fa-emoji" title="'+s.replace("fa-","")+'"></i>'}else{var l=e.match(g),c=e.match(f);if(l)for(var u=0,d=l.length;u<d;u++){var h=l[u].replace(/:/g,"");return'<i class="'+h+'" title="Editor.md logo ('+h+')"></i>'}else{if(!c){var p="+1"===r?"plus1":r;return p="black_large_square"===p?"black_square":p,p="moon"===p?"waxing_gibbous_moon":p,'<img src="'+i.emoji.path+p+i.emoji.ext+'" class="emoji" title="&#58;'+r+'&#58;" alt="&#58;'+r+'&#58;" />'}for(var v=0,y=c.length;v<y;v++){var _=c[v].replace(/:/g,"").replace("tw-","");return'<img src="'+i.twemoji.path+_+i.twemoji.ext+'" title="twemoji-'+_+'" alt="twemoji-'+_+'" class="emoji twemoji" />'}}}});return e},l.atLink=function(t){return u.test(t)?(a.atLink&&(t=t.replace(h,function(e,t,i,n){return e.replace(/@/g,"_#_&#64;_#_")}),t=t.replace(u,function(e,t){return'<a href="'+i.urls.atLinkBase+t+'" title="&#64;'+t+'" class="at-link">'+e+"</a>"}).replace(/_#_&#64;_#_/g,"@")),a.emailLink&&(t=t.replace(p,function(t,i,n,r,a){return!i&&e.inArray(a,"jpg|jpeg|png|gif|webp|ico|icon|pdf".split("|"))<0?'<a href="mailto:'+t+'">'+t+"</a>":t})),t):t},l.link=function(e,t,i){if(this.options.sanitize){try{var n=decodeURIComponent(unescape(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(0===n.indexOf("javascript:"))return""}var r='<a href="'+e+'"';return u.test(t)||u.test(i)?(t&&(r+=' title="'+t.replace(/@/g,"&#64;")),r+'">'+i.replace(/@/g,"&#64;")+"</a>"):(t&&(r+=' title="'+t+'"'),r+=">"+i+"</a>")},l.heading=function(e,i,n){var r=e,a=/\s*\<a\s*href\=\"(.*)\"\s*([^\>]*)\>(.*)\<\/a\>\s*/;if(a.test(e)){var s=[];e=e.split(/\<a\s*([^\>]+)\>([^\>]*)\<\/a\>/);for(var l=0,c=e.length;l<c;l++)s.push(e[l].replace(/\s*href\=\"(.*)\"\s*/g,""));e=s.join(" ")}e=o(e);var u=e.toLowerCase().replace(/[^\w]+/g,"-"),d={text:e,level:i,slug:u},h=/^[\u4e00-\u9fa5]+$/.test(e),p=h?escape(e).replace(/\%/g,""):e.toLowerCase().replace(/[^\w]+/g,"-");t.push(d);var f="<h"+i+' id="h'+i+"-"+this.options.headerPrefix+p+'">';return f+='<a name="'+e+'" class="reference-link"></a>',f+='<span class="header-link octicon octicon-link"></span>',f+=a?this.atLink(this.emoji(r)):this.atLink(this.emoji(e)),f+="</h"+i+">"},l.pageBreak=function(e){return v.test(e)&&a.pageBreak&&(e='<hr style="page-break-after:always;" class="page-break editormd-page-break" />'),e},l.paragraph=function(e){var t=/\$\$(.*)\$\$/g.test(e),n=/^\$\$(.*)\$\$$/.test(e),r=n?' class="'+i.classNames.tex+'"':"",o=a.tocm?/^(\[TOC\]|\[TOCM\])$/.test(e):/^\[TOC\]$/.test(e),s=/^\[TOCM\]$/.test(e);e=!n&&t?e.replace(/(\$\$([^\$]*)\$\$)+/g,function(e,t){return'<span class="'+i.classNames.tex+'">'+t.replace(/\$/g,"")+"</span>"}):n?e.replace(/\$/g,""):e;var l='<div class="markdown-toc editormd-markdown-toc">'+e+"</div>";return o?s?'<div class="editormd-toc-menu">'+l+"</div><br/>":l:v.test(e)?this.pageBreak(e):"<p"+r+">"+this.atLink(this.emoji(e))+"</p>\n"},l.code=function(e,t,n){return"seq"===t||"sequence"===t?'<div class="sequence-diagram">'+e+"</div>":"flow"===t?'<div class="flowchart">'+e+"</div>":"math"===t||"latex"===t||"katex"===t?'<p class="'+i.classNames.tex+'">'+e+"</p>":s.Renderer.prototype.code.apply(this,arguments)},l.tablecell=function(e,t){var i=t.header?"th":"td";return(t.align?"<"+i+' style="text-align:'+t.align+'">':"<"+i+">")+this.atLink(this.emoji(e))+"</"+i+">\n"},l.listitem=function(e){return a.taskList&&/^\s*\[[x\s]\]\s*/.test(e)?(e=e.replace(/^\s*\[\s\]\s*/,'<input type="checkbox" class="task-list-item-checkbox" /> ').replace(/^\s*\[x\]\s*/,'<input type="checkbox" class="task-list-item-checkbox" checked disabled /> '),'<li style="list-style: none;">'+this.atLink(this.emoji(e))+"</li>"):"<li>"+this.atLink(this.emoji(e))+"</li>"},l},i.markdownToCRenderer=function(e,t,i,n){var r="",a=0,o=this.classPrefix;n=n||1;for(var s=0,l=e.length;s<l;s++){var c=e[s].text,u=e[s].level;u<n||(r+=u>a?"":u<a?new Array(a-u+2).join("</ul></li>"):"</ul></li>",r+='<li><a class="toc-level-'+u+'" href="#'+c+'" level="'+u+'">'+c+"</a><ul>",a=u)}var d=t.find(".markdown-toc");if(d.length<1&&"false"===t.attr("previewContainer")){var h='<div class="markdown-toc '+o+'markdown-toc"></div>';h=i?'<div class="'+o+'toc-menu">'+h+"</div>":h,t.html(h),d=t.find(".markdown-toc")}return i&&d.wrap('<div class="'+o+'toc-menu"></div><br/>'),d.html('<ul class="markdown-toc-list"></ul>').children(".markdown-toc-list").html(r.replace(/\r?\n?\<ul\>\<\/ul\>/g,"")),d},i.tocDropdownMenu=function(t,i){i=i||"Table of Contents";var n=400,r=t.find("."+this.classPrefix+"toc-menu");return r.each(functLine truncated
return t[e.tagName]&&!(n&&n(e))},i)},findParents:function(e,t,i,n){for(var r=t&&(i&&i(e)||!i)?[e]:[];e=domUtils.findParent(e,i);)r.push(e);return n?r:r.reverse()},insertAfter:function(e,t){return e.parentNode.insertBefore(t,e.nextSibling)},remove:function(e,t){var i,n=e.parentNode;if(n){if(t&&e.hasChildNodes())for(;i=e.firstChild;)n.insertBefore(i,e);n.removeChild(e)}return e},getNextDomNode:function(e,t,i,n){return getDomNode(e,"firstChild","nextSibling",t,i,n)},getPreDomNode:function(e,t,i,n){return getDomNode(e,"lastChild","previousSibling",t,i,n)},isBookmarkNode:function(e){return 1==e.nodeType&&e.id&&/^_baidu_bookmark_/i.test(e.id)},getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getCommonAncestor:function(e,t){if(e===t)return e;for(var i=[e],n=[t],r=e,a=-1;r=r.parentNode;){if(r===t)return r;i.push(r)}for(r=t;r=r.parentNode;){if(r===e)return r;n.push(r)}for(i.reverse(),n.reverse();a++,i[a]===n[a];);return 0==a?null:i[a-1]},clearEmptySibling:function(e,t,i){function n(e,t){for(var i;e&&!domUtils.isBookmarkNode(e)&&(domUtils.isEmptyInlineElement(e)||!new RegExp("[^\t\n\r"+domUtils.fillChar+"]").test(e.nodeValue));)i=e[t],domUtils.remove(e),e=i}!t&&n(e.nextSibling,"nextSibling"),!i&&n(e.previousSibling,"previousSibling")},split:function(e,t){var i=e.ownerDocument;if(browser.ie&&t==e.nodeValue.length){var n=i.createTextNode("");return domUtils.insertAfter(e,n)}var r=e.splitText(t);if(browser.ie8){var a=i.createTextNode("");domUtils.insertAfter(r,a),domUtils.remove(a)}return r},isWhitespace:function(e){return!new RegExp("[^ \t\n\r"+domUtils.fillChar+"]").test(e.nodeValue)},getXY:function(e){for(var t=0,i=0;e.offsetParent;)i+=e.offsetTop,t+=e.offsetLeft,e=e.offsetParent;return{x:t,y:i}},isEmptyInlineElement:function(e){if(1!=e.nodeType||!dtd.$removeEmpty[e.tagName])return 0;for(e=e.firstChild;e;){if(domUtils.isBookmarkNode(e))return 0;if(1==e.nodeType&&!domUtils.isEmptyInlineElement(e)||3==e.nodeType&&!domUtils.isWhitespace(e))return 0;e=e.nextSibling}return 1},isBlockElm:function(e){return 1==e.nodeType&&(dtd.$block[e.tagName]||styleBlock[domUtils.getComputedStyle(e,"display")])&&!dtd.$nonChild[e.tagName]},getElementsByTagName:function(e,t,i){if(i&&utils.isString(i)){var n=i;i=function(e){var t=!1;return $.each(utils.trim(n).replace(/[ ]{2,}/g," ").split(" "),function(i,n){if($(e).hasClass(n))return t=!0,!1}),t}}t=utils.trim(t).replace(/[ ]{2,}/g," ").split(" ");for(var r,a=[],o=0;r=t[o++];)for(var s,l=e.getElementsByTagName(r),c=0;s=l[c++];)i&&!i(s)||a.push(s);return a},unSelectable:ie&&browser.ie9below||browser.opera?function(e){e.onselectstart=function(){return!1},e.onclick=e.onkeyup=e.onkeydown=function(){return!1},e.unselectable="on",e.setAttribute("unselectable","on");for(var t,i=0;t=e.all[i++];)switch(t.tagName.toLowerCase()){case"iframe":case"textarea":case"input":case"select":break;default:t.unselectable="on",e.setAttribute("unselectable","on")}}:function(e){e.style.MozUserSelect=e.style.webkitUserSelect=e.style.msUserSelect=e.style.KhtmlUserSelect="none"},removeAttributes:function(e,t){t=utils.isArray(t)?t:utils.trim(t).replace(/[ ]{2,}/g," ").split(" ");for(var i,n=0;i=t[n++];){switch(i=attrFix[i]||i){case"className":e[i]="";break;case"style":e.style.cssText="",!browser.ie&&e.removeAttributeNode(e.getAttributeNode("style"))}e.removeAttribute(i)}},createElement:function(e,t,i){return domUtils.setAttributes(e.createElement(t),i)},setAttributes:function(e,t){for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];switch(i){case"class":e.className=n;break;case"style":e.style.cssText=e.style.cssText+";"+n;break;case"innerHTML":e[i]=n;break;case"value":e.value=n;break;default:e.setAttribute(attrFix[i]||i,n)}}return e},getComputedStyle:function(e,t){return utils.transUnitToPx(utils.fixColor(t,$(e).css(t)))},preventDefault:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},removeStyle:function(e,t){browser.ie?("color"==t&&(t="(^|;)"+t),e.style.cssText=e.style.cssText.replace(new RegExp(t+"[^:]*:[^;]+;?","ig"),"")):e.style.removeProperty?e.style.removeProperty(t):e.style.removeAttribute(utils.cssStyleToDomStyle(t)),e.style.cssText||domUtils.removeAttributes(e,["style"])},getStyle:function(e,t){var i=e.style[utils.cssStyleToDomStyle(t)];return utils.fixColor(t,i)},setStyle:function(e,t,i){e.style[utils.cssStyleToDomStyle(t)]=i,utils.trim(e.style.cssText)||this.removeAttributes(e,"style")},removeDirtyAttr:function(e){for(var t,i=0,n=e.getElementsByTagName("*");t=n[i++];)t.removeAttribute("_moz_dirty");e.removeAttribute("_moz_dirty")},getChildCount:function(e,t){var i=0,n=e.firstChild;for(t=t||function(){return 1};n;)t(n)&&i++,n=n.nextSibling;return i},isEmptyNode:function(e){return!e.firstChild||0==domUtils.getChildCount(e,function(e){return!domUtils.isBr(e)&&!domUtils.isBookmarkNode(e)&&!domUtils.isWhitespace(e)})},isBr:function(e){return 1==e.nodeType&&"BR"==e.tagName},isEmptyBlock:function(e,t){if(1!=e.nodeType)return 0;if(t=t||new RegExp("[ \t\r\n"+domUtilsLine truncated
e=e.toLowerCase();var i,n=this,r=n.commands[e]||UM.commands[e];return r&&r.execCommand?(r.notNeedUndo||n.__hasEnterExecCommand?(i=this._callCmdFn("execCommand",arguments),!n.__hasEnterExecCommand&&!r.ignoreContentChange&&!n._ignoreContentChange&&n.fireEvent("contentchange")):(n.__hasEnterExecCommand=!0,-1!=n.queryCommandState.apply(n,arguments)&&(n.fireEvent("saveScene"),n.fireEvent("beforeexeccommand",e),i=this._callCmdFn("execCommand",arguments),!r.ignoreContentChange&&!n._ignoreContentChange&&n.fireEvent("contentchange"),n.fireEvent("afterexeccommand",e),n.fireEvent("saveScene")),n.__hasEnterExecCommand=!1),!n.__hasEnterExecCommand&&!r.ignoreContentChange&&!n._ignoreContentChange&&n._selectionChange(),i):null},queryCommandState:function(e){try{return this._callCmdFn("queryCommandState",arguments)}catch(e){return 0}},queryCommandValue:function(e){try{return this._callCmdFn("queryCommandValue",arguments)}catch(e){return null}},hasContents:function(e){if(e)for(var t,i=0;t=e[i++];)if(this.body.getElementsByTagName(t).length>0)return!0;if(!domUtils.isEmptyBlock(this.body))return!0;for(e=["div"],i=0;t=e[i++];)for(var n,r=domUtils.getElementsByTagName(this.body,t),a=0;n=r[a++];)if(domUtils.isCustomeNode(n))return!0;return!1},reset:function(){this.fireEvent("reset")},isEnabled:function(){return 1!=this._isEnabled},setEnabled:function(){var e,t=this;if(t.body.contentEditable=!0,t.lastBk){e=t.selection.getRange();try{e.moveToBookmark(t.lastBk),delete t.lastBk}catch(i){e.setStartAtFirst(t.body).collapse(!0)}e.select(!0)}t.bkqueryCommandState&&(t.queryCommandState=t.bkqueryCommandState,delete t.bkqueryCommandState),t._bkproxyDomEvent&&(t._proxyDomEvent=t._bkproxyDomEvent,delete t._bkproxyDomEvent),t.fireEvent("setEnabled")},enable:function(){return this.setEnabled()},setDisabled:function(e,t){var i=this;i.body.contentEditable=!1,i._except=e?utils.isArray(e)?e:[e]:[],i.lastBk||(i.lastBk=i.selection.getRange().createBookmark(!0)),i.bkqueryCommandState||(i.bkqueryCommandState=i.queryCommandState,i.queryCommandState=function(e){return-1!=utils.indexOf(i._except,e)?i.bkqueryCommandState.apply(i,arguments):-1}),t||i._bkproxyDomEvent||(i._bkproxyDomEvent=i._proxyDomEvent,i._proxyDomEvent=function(){return!1}),i.fireEvent("selectionchange"),i.fireEvent("setDisabled",i._except)},disable:function(e){return this.setDisabled(e)},_setDefaultContent:function(){function e(){var t=this;t.document.getElementById("initContent")&&(t.body.innerHTML="<p>"+(ie?"":"<br/>")+"</p>",t.removeListener("firstBeforeExecCommand focus",e),setTimeout(function(){t.focus(),t._selectionChange()},0))}return function(t){var i=this;i.body.innerHTML='<p id="initContent">'+t+"</p>",i.addListener("firstBeforeExecCommand focus",e)}}(),setShow:function(){var e=this,t=e.selection.getRange();if("none"==e.container.style.display){try{t.moveToBookmark(e.lastBk),delete e.lastBk}catch(i){t.setStartAtFirst(e.body).collapse(!0)}setTimeout(function(){t.select(!0)},100),e.container.style.display=""}},show:function(){return this.setShow()},setHide:function(){var e=this;e.lastBk||(e.lastBk=e.selection.getRange().createBookmark(!0)),e.container.style.display="none"},hide:function(){return this.setHide()},getLang:function(e){var t=UM.I18N[this.options.lang];if(!t)throw Error("not import language file");e=(e||"").split(".");for(var i,n=0;(i=e[n++])&&(t=t[i]););return t},getContentLength:function(e,t){var i=this.getContent(!1,!1,!0).length;if(e){t=(t||[]).concat(["hr","img","iframe"]),i=this.getContentTxt().replace(/[\t\r\n]+/g,"").length;for(var n,r=0;n=t[r++];)i+=this.body.getElementsByTagName(n).length}return i},addInputRule:function(e,t){e.ignoreUndo=t,this.inputRules.push(e)},filterInputRule:function(e,t){for(var i,n=0;i=this.inputRules[n++];)t&&i.ignoreUndo||i.call(this,e)},addOutputRule:function(e,t){e.ignoreUndo=t,this.outputRules.push(e)},filterOutputRule:function(e,t){for(var i,n=0;i=this.outputRules[n++];)t&&i.ignoreUndo||i.call(this,e)}},utils.inherits(a,EventBase)}();var filterWord=UM.filterWord=function(){function e(e){return/(class="?Mso|style="[^"]*\bmso\-|w:WordDocument|<(v|o):|lang=)/gi.test(e)}function t(e){return e=e.replace(/[\d.]+\w+/g,function(e){return utils.transUnitToPx(e)})}function i(e){return e.replace(/[\t\r\n]+/g," ").replace(/<!--[\s\S]*?-->/gi,"").replace(/<v:shape [^>]*>[\s\S]*?.<\/v:shape>/gi,function(e){if(browser.opera)return"";try{if(/Bitmap/i.test(e))return"";var i=e.match(/width:([ \d.]*p[tx])/i)[1],n=e.match(/height:([ \d.]*p[tx])/i)[1],r=e.match(/src=\s*"([^"]*)"/i)[1];return'<img width="'+t(i)+'" height="'+t(n)+'" src="'+r+'" />'}catch(e){return""}}).replace(/<\/?div[^>]*>/g,"").replace(/v:\w+=(["']?)[^'"]+\1/g,"").replace(/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|xml|meta|link|style|\w+:\w+)(?=[\s\/>]))[^>]*>/gi,"").replace(/<p [^>]*class="?MsoHeading"?[^>]*>(.*?)<\/p>/gi,"<p><strong>$1</strong></p>").replace(/\s+(class|lang|align)\s*=\s*(['"]?)([\w-]+)\2/gi,function(e,t,i,n){return"class"==t&&"MsoListParagraph"==n?eLine truncated
var i=t.keyCode||t.which;if(!(h[i]||t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){if(f)return;m||(this.undoManger.save(!1,!0),m=!0)}})},UM.plugins.paste=function(){function e(e){var t=this.document;if(!t.getElementById("baidu_pastebin")){var i=this.selection.getRange(),n=i.createBookmark(),r=t.createElement("div");r.id="baidu_pastebin",browser.webkit&&r.appendChild(t.createTextNode(domUtils.fillChar+domUtils.fillChar)),this.body.appendChild(r),n.start.style.display="",r.style.cssText="position:absolute;width:1px;height:1px;overflow:hidden;left:-1000px;white-space:nowrap;top:"+$(n.start).position().top+"px",i.selectNodeContents(r).select(!0),setTimeout(function(){if(browser.webkit)for(var a,o=0,s=t.querySelectorAll("#baidu_pastebin");a=s[o++];){if(!domUtils.isEmptyNode(a)){r=a;break}domUtils.remove(a)}try{r.parentNode.removeChild(r)}catch(e){}i.moveToBookmark(n).select(!0),e(r)},0)}}function t(e){var t;if(e.firstChild){for(var n,r=domUtils.getElementsByTagName(e,"span"),a=0;n=r[a++];)"_baidu_cut_start"!=n.id&&"_baidu_cut_end"!=n.id||domUtils.remove(n);if(browser.webkit){for(var o,s=e.querySelectorAll("div br"),a=0;o=s[a++];){var l=o.parentNode;"DIV"==l.tagName&&1==l.childNodes.length&&(l.innerHTML="<p><br/></p>",domUtils.remove(l))}for(var c,u=e.querySelectorAll("#baidu_pastebin"),a=0;c=u[a++];){var d=i.document.createElement("p");for(c.parentNode.insertBefore(d,c);c.firstChild;)d.appendChild(c.firstChild);domUtils.remove(c)}for(var h,p=e.querySelectorAll("meta"),a=0;h=p[a++];)domUtils.remove(h);var s=e.querySelectorAll("br");for(a=0;h=s[a++];)/^apple-/i.test(h.className)&&domUtils.remove(h)}if(browser.gecko){var f=e.querySelectorAll("[_moz_dirty]");for(a=0;h=f[a++];)h.removeAttribute("_moz_dirty")}if(!browser.ie)for(var h,m=e.querySelectorAll("span.Apple-style-span"),a=0;h=m[a++];)domUtils.remove(h,!0);t=e.innerHTML,t=UM.filterWord(t);var g=UM.htmlparser(t);if(i.options.filterRules&&UM.filterNode(g,i.options.filterRules),i.filterInputRule(g),browser.webkit){var v=g.lastChild();v&&"element"==v.type&&"br"==v.tagName&&g.removeChild(v),utils.each(i.body.querySelectorAll("div"),function(e){domUtils.isEmptyBlock(e)&&domUtils.remove(e)})}if(t={html:g.toHtml()},i.fireEvent("beforepaste",t,g),!t.html)return;i.execCommand("insertHtml",t.html,!0),i.fireEvent("afterpaste",t)}}var i=this;i.addListener("ready",function(){$(i.body).on("cut",function(){!i.selection.getRange().collapsed&&i.undoManger&&i.undoManger.save()}).on(browser.ie||browser.opera?"keydown":"paste",function(n){(!browser.ie&&!browser.opera||(n.ctrlKey||n.metaKey)&&"86"==n.keyCode)&&e.call(i,function(e){t(e)})})})},UM.plugins.list=function(){var e=this;e.setOpt({insertorderedlist:{decimal:"","lower-alpha":"","lower-roman":"","upper-alpha":"","upper-roman":""},insertunorderedlist:{circle:"",disc:"",square:""}}),this.addInputRule(function(e){utils.each(e.getNodesByTagName("li"),function(e){0==e.children.length&&e.parentNode.removeChild(e)})}),e.commands.insertorderedlist=e.commands.insertunorderedlist={execCommand:function(e){this.document.execCommand(e);var t=this.selection.getRange(),i=t.createBookmark(!0);return this.$body.find("ol,ul").each(function(e,t){var i=t.parentNode;"P"==i.tagName&&i.lastChild===i.firstChild&&($(t).children().each(function(e,t){var n=i.cloneNode(!1);$(n).append(t.innerHTML),$(t).html("").append(n)}),$(t).insertBefore(i),$(i).remove()),dtd.$inline[i.tagName]&&("SPAN"==i.tagName&&$(t).children().each(function(e,t){var n=i.cloneNode(!1);if("P"!=t.firstChild.nodeName){for(;t.firstChild;)n.appendChild(t.firstChild);$("<p></p>").appendTo(t).append(n)}else{for(;t.firstChild;)n.appendChild(t.firstChild);$(t.firstChild).append(n)}}),domUtils.remove(i,!0))}),t.moveToBookmark(i).select(),!0},queryCommandState:function(e){return this.document.queryCommandState(e)}}},function(){var e={textarea:function(e,t){var i=t.ownerDocument.createElement("textarea");return i.style.cssText="resize:none;border:0;padding:0;margin:0;overflow-y:auto;outline:0",browser.ie&&browser.version<8&&(i.style.width=t.offsetWidth+"px",i.style.height=t.offsetHeight+"px",t.onresize=function(){i.style.width=t.offsetWidth+"px",i.style.height=t.offsetHeight+"px"}),t.appendChild(i),{container:i,setContent:function(e){i.value=e},getContent:function(){return i.value},select:function(){var e;browser.ie?(e=i.createTextRange(),e.collapse(!0),e.select()):(i.setSelectionRange(0,0),i.focus())},dispose:function(){t.removeChild(i),t.onresize=null,i=null,t=null}}}};UM.plugins.source=function(){function t(t){return e.textarea(n,t)}var i,n=this,r=this.options,a=!1;r.sourceEditor="textarea",n.setOpt({sourceEditorFirst:!1});var o,s=n.getContent;n.commands.source={execCommand:function(){if(a=!a){o=n.selection.getRange().createAddress(!1,!0),n.undoManger&&n.undoManger.save(!0),browser.gecko&&(n.body.contentEditable=!1),n.body.style.cssText+=";position:absolute;left:-32768px;top:-32768px;",n.fireEvent("beforegetcontent");var e=UM.htmlparser(n.body.innerHTML);n.filterOutputRule(e),e.traversal(fLine truncated
return void 0===e?this.root().hasClass("edui-disabled"):(this.root().toggleClass("edui-disabled",e).find(".edui-btn").toggleClass("edui-disabled",e),this)},active:function(e){return void 0===e?this.root().hasClass("edui-active"):(this.root().toggleClass("edui-active",e).find(".edui-btn:first").toggleClass("edui-active",e),this)},mergeWith:function(e){var t=this;t.data("$mergeObj",e),e.edui().data("$mergeObj",t.root()),$.contains(document.body,e[0])||e.appendTo(t.root()),t.root().delegate(".edui-dropdown-toggle","click",function(){t.wrapclick(function(){e.edui().show()})}),t.register("click",t.root().find(".edui-dropdown-toggle"),function(t){e.hide()})}}),UM.ui.define("colorsplitbutton",{tpl:'<div class="edui-splitbutton <%if (name){%>edui-splitbutton-<%= name %><%}%>" unselectable="on" <%if(title){%>data-original-title="<%=title%>"<%}%>><div class="edui-btn" unselectable="on" ><%if(icon){%><div unselectable="on" class="edui-icon-<%=icon%> edui-icon"></div><%}%><div class="edui-splitbutton-color-label" <%if (color) {%>style="background: <%=color%>"<%}%>></div><%if(text){%><%=text%><%}%></div><div unselectable="on" class="edui-btn edui-dropdown-toggle" ><div unselectable="on" class="edui-caret"></div></div></div>',defaultOpt:{color:""},init:function(e){var t=this;t.supper.init.call(t,e)},colorLabel:function(){return this.root().find(".edui-splitbutton-color-label")}},"splitbutton"),UM.ui.define("popup",{tpl:'<div class="edui-dropdown-menu edui-popup"<%if(!<%=stopprop%>){%>onmousedown="return false"<%}%>><div class="edui-popup-body" unselectable="on" onmousedown="return false"><%=subtpl%></div><div class="edui-popup-caret"></div></div>',defaultOpt:{stopprop:!1,subtpl:"",width:"",height:""},init:function(e){return this.root($($.parseTmpl(this.tpl,e))),this},mergeTpl:function(e){return $.parseTmpl(this.tpl,{subtpl:e})},show:function(e,t){t||(t={});var i=t.fnname||"position";!1!==this.trigger("beforeshow")&&(this.root().css($.extend({display:"block"},e?{top:e[i]().top+("right"==t.dir?0:e.outerHeight())-(t.offsetTop||0),left:e[i]().left+("right"==t.dir?e.outerWidth():0)-(t.offsetLeft||0),position:"absolute"}:{})),this.root().find(".edui-popup-caret").css({top:t.caretTop||0,left:t.caretLeft||0,position:"absolute"}).addClass(t.caretDir||"up"),this.trigger("aftershow"))},hide:function(){this.root().css("display","none"),this.trigger("afterhide")},attachTo:function(e,t){var i=this;e.data("$mergeObj")||(e.data("$mergeObj",i.root()),e.on("wrapclick",function(n){i.show(e,t)}),i.register("click",e,function(e){i.hide()}),i.data("$mergeObj",e))},getBodyContainer:function(){return this.root().find(".edui-popup-body")}}),UM.ui.define("scale",{tpl:'<div class="edui-scale" unselectable="on"><span class="edui-scale-hand0"></span><span class="edui-scale-hand1"></span><span class="edui-scale-hand2"></span><span class="edui-scale-hand3"></span><span class="edui-scale-hand4"></span><span class="edui-scale-hand5"></span><span class="edui-scale-hand6"></span><span class="edui-scale-hand7"></span></div>',defaultOpt:{$doc:$(document),$wrap:$(document)},init:function(e){return e.$doc&&(this.defaultOpt.$doc=e.$doc),e.$wrap&&(this.defaultOpt.$wrap=e.$wrap),this.root($($.parseTmpl(this.tpl,e))),this.initStyle(),this.startPos=this.prePos={x:0,y:0},this.dragId=-1,this},initStyle:function(){utils.cssRule("edui-style-scale",".edui-scale{display:none;position:absolute;border:1px solid #38B2CE;cursor:hand;}.edui-scale span{position:absolute;left:0;top:0;width:7px;height:7px;overflow:hidden;font-size:0px;display:block;background-color:#3C9DD0;}.edui-scale .edui-scale-hand0{cursor:nw-resize;top:0;margin-top:-4px;left:0;margin-left:-4px;}.edui-scale .edui-scale-hand1{cursor:n-resize;top:0;margin-top:-4px;left:50%;margin-left:-4px;}.edui-scale .edui-scale-hand2{cursor:ne-resize;top:0;margin-top:-4px;left:100%;margin-left:-3px;}.edui-scale .edui-scale-hand3{cursor:w-resize;top:50%;margin-top:-4px;left:0;margin-left:-4px;}.edui-scale .edui-scale-hand4{cursor:e-resize;top:50%;margin-top:-4px;left:100%;margin-left:-3px;}.edui-scale .edui-scale-hand5{cursor:sw-resize;top:100%;margin-top:-3px;left:0;margin-left:-4px;}.edui-scale .edui-scale-hand6{cursor:s-resize;top:100%;margin-top:-3px;left:50%;margin-left:-4px;}.edui-scale .edui-scale-hand7{cursor:se-resize;top:100%;margin-top:-3px;left:100%;margin-left:-3px;}")},_eventHandler:function(e){var t=this,i=t.defaultOpt.$doc;switch(e.type){case"mousedown":var n,n=e.target||e.srcElement;-1!=n.className.indexOf("edui-scale-hand")&&(t.dragId=n.className.slice(-1),t.startPos.x=t.prePos.x=e.clientX,t.startPos.y=t.prePos.y=e.clientY,i.bind("mousemove",$.proxy(t._eventHandler,t)));break;case"mousemove":-1!=t.dragId&&(t.updateContainerStyle(t.dragId,{x:e.clientX-t.prePos.x,y:e.clientY-t.prePos.y}),t.prePos.x=e.clientX,t.prePos.y=e.clientY,t.updateTargetElement());break;case"mouseup":if(-1!=t.dragId){t.dragId=-1,t.updateTargetElement();t.data("$scaleTarget").parent()&&t.attachTo(t.data("$scaleTarget"))}i.unbind("Line truncated
e.addListener("beforefullscreenchange",function(e,t){t&&(r(),p=t)}),e.addListener("fullscreenchanged",function(e,t){t||a(),p=t}),e.addListener("sourcemodechanged",function(e,t){setTimeout(function(){a()},0)}),e.addListener("clearDoc",function(){setTimeout(function(){a()},0)}))})}),UM.registerUI("source",function(e){var t=this;t.addListener("fullscreenchanged",function(){t.$container.find("textarea").width(t.$body.width()-10).height(t.$body.height())});var i=$.eduibutton({icon:e,click:function(){t.execCommand(e),UM.setTopEditor(t)},title:this.getLang("labelMap")[e]||""});return this.addListener("selectionchange",function(){var t=this.queryCommandState(e);i.edui().disabled(-1==t).active(1==t)}),i}),UM.registerUI("paragraph fontfamily fontsize",function(e){function t(e,i){var n=$("<span>").html(e).css({display:"inline",position:"absolute",top:-1e7,left:-1e5}).appendTo(document.body),r=n.width();return n.remove(),n=null,r<50?e:(e=e.slice(0,i?-4:-1),e.length?t(e+"...",!0):"...")}var i=this,n=i.options.labelMap&&i.options.labelMap[e]||i.getLang("labelMap."+e),r={label:n,title:n,comboboxName:e,items:i.options[e]||[],itemStyles:[],value:[],autowidthitem:[]},a=null,o=null;if(0==r.items.length)return null;switch(e){case"paragraph":r=function(e){var i=[];for(var n in e.items)e.value.push(n),i.push(n),e.autowidthitem.push(t(n));return e.items=i,e.autoRecord=!1,e}(r);break;case"fontfamily":r=function(e){for(var i=null,n=[],r=0,a=e.items.length;r<a;r++)i=e.items[r].val,n.push(i.split(/\s*,\s*/)[0]),e.itemStyles.push("font-family: "+i),e.value.push(i),e.autowidthitem.push(t(n[r]));return e.items=n,e}(r);break;case"fontsize":r=function(e){var t=null,i=[];e.itemStyles=[],e.value=[];for(var n=0,r=e.items.length;n<r;n++)t=e.items[n],i.push(t),e.itemStyles.push("font-size: "+t+"px");return e.value=e.items,e.items=i,e.autoRecord=!1,e}(r)}return a=$.eduibuttoncombobox(r).css("zIndex",i.getOpt("zIndex")+1),o=a.edui(),o.on("comboboxselect",function(t,n){i.execCommand(e,n.value)}).on("beforeshow",function(){0===a.parent().length&&a.appendTo(i.$container.find(".edui-dialog-container")),UM.setTopEditor(i)}),this.addListener("selectionchange",function(t){var i=this.queryCommandState(e),n=this.queryCommandValue(e);o.button().edui().disabled(-1==i).active(1==i),n&&(n=n.replace(/['"]/g,"").toLowerCase().split(/['|"]?\s*,\s*[\1]?/),o.selectItemByLabel(n))}),o.button().addClass("edui-combobox")}),UM.registerUI("forecolor backcolor",function(e){function t(){return domUtils.getComputedStyle(r[0],"background-color")}var i=this,n=null,r=null,a=null;return this.addListener("selectionchange",function(){var t=this.queryCommandState(e);a.edui().disabled(-1==t).active(1==t)}),a=$.eduicolorsplitbutton({icon:e,caret:!0,name:e,title:i.getLang("labelMap")[e],click:function(){i.execCommand(e,t())}}),r=a.edui().colorLabel(),n=$.eduicolorpicker({name:e,lang_clearColor:i.getLang("clearColor")||"",lang_themeColor:i.getLang("themeColor")||"",lang_standardColor:i.getLang("standardColor")||""}).on("pickcolor",function(t,n){window.setTimeout(function(){r.css("backgroundColor",n),i.execCommand(e,n)},0)}).on("show",function(){UM.setActiveWidget(colorPickerWidget.root())}).css("zIndex",i.getOpt("zIndex")+1),a.edui().on("arrowclick",function(){n.parent().length||i.$container.find(".edui-dialog-container").append(n),n.edui().show(a,{caretDir:"down",offsetTop:-5,offsetLeft:8,caretLeft:11,caretTop:-8}),UM.setTopEditor(i)}).register("click",a,function(){n.edui().hide()}),a})}(jQuery),define("baidueditor",["ueditorconfig","jquery"],function(e){return function(){return e.baidueditor}}(this)),UM.I18N["zh-cn"]={labelMap:{anchor:"锚点",undo:"撤销",redo:"重做",bold:"加粗",indent:"首行缩进",snapscreen:"截图",italic:"斜体",underline:"下划线",strikethrough:"删除线",subscript:"下标",fontborder:"字符边框",superscript:"上标",formatmatch:"格式刷",source:"源代码",blockquote:"引用",pasteplain:"纯文本粘贴模式",selectall:"全选",print:"打印",preview:"预览",horizontal:"分隔线",removeformat:"清除格式",time:"时间",date:"日期",unlink:"取消链接",insertrow:"前插入行",insertcol:"前插入列",mergeright:"右合并单元格",mergedown:"下合并单元格",deleterow:"删除行",deletecol:"删除列",splittorows:"拆分成行",splittocols:"拆分成列",splittocells:"完全拆分单元格",mergecells:"合并多个单元格",deletetable:"删除表格",cleardoc:"清空文档",insertparagraphbeforetable:"表格前插入行",insertcode:"代码语言",fontfamily:"字体",fontsize:"字号",paragraph:"段落格式",image:"图片",edittable:"表格属性",edittd:"单元格属性",link:"超链接",emotion:"表情",spechars:"特殊字符",searchreplace:"查询替换",map:"百度地图",gmap:"Google地图",video:"视频",help:"帮助",justifyleft:"居左对齐",justifyright:"居右对齐",justifycenter:"居中对齐",justifyjustify:"两端对齐",forecolor:"字体颜色",backcolor:"背景色",insertorderedlist:"有序列表",insertunordeLine truncated
return'{\r\n "config": {\r\n "pop_id": "pop_save_lab",\r\n "header": {\r\n "field": "title",\r\n "icon": "fa-money",\r\n "parent": {\r\n "field": "account"\r\n }\r\n },\r\n "fields": [\r\n {\r\n "type":"input",\r\n "field":"name",\r\n "placer":"请输入名称",\r\n "name":"name"\r\n },\r\n {\r\n "type":"radio",\r\n "field":"keep_ip",\r\n "name":"keep_ip",\r\n "data":[\r\n {\r\n\r\n "id":"keep_true",\r\n "field":"true",\r\n "checked":false\r\n },\r\n {\r\n "id":"keep_false",\r\n "field":"false",\r\n "checked":true\r\n }\r\n ]\r\n },\r\n {\r\n "type":"textarea",\r\n "field":"desc",\r\n "placer":"请输入描述",\r\n "name":"desc"\r\n }\r\n ],\r\n "fieldbuttons": [\r\n {\r\n "field": "cancelcourse",\r\n "style": "cancel",\r\n "dismiss": ""\r\n },\r\n {\r\n "field": "savestep",\r\n "style": "success",\r\n "dismiss": ""\r\n }\r\n ],\r\n "keep_attach_res":{\r\n "type":"radio",\r\n "field":"keep_attach_res",\r\n "name":"keep_attach_res",\r\n "data":[\r\n {\r\n\r\n "id":"attach_true",\r\n "field":"true",\r\n "checked":true\r\n },\r\n {\r\n "id":"attach_false",\r\n "field":"false",\r\n "checked":false\r\n }\r\n ]\r\n }\r\n },\r\n "language": {\r\n "zh-hans": {\r\n "title": "保存实验环境",\r\n "cancelcourse": "取消",\r\n "savestep": "确定",\r\n "name":"名称",\r\n "desc":"描述",\r\n "true":"是",\r\n "false": "否",\r\n "keep_ip":"保存IP地址",\r\n "data_set":"保存数据集",\r\n "keep_attach_res":"保存素材路径"\r\n },\r\n "en": {\r\n\r\n }\r\n }\r\n}'}),define("modules/console/expdesktop/pop/saveexp/controller",["app-utils","popcontrollerbase_v2","jquery","text!modules/console/expdesktop/pop/saveexp/index.html","text!modules/console/expdesktop/pop/saveexp/lang.json"],function(e,t,i,n,r){function a(e,t,i,a,o){this.language=e,this.appOptions=t,this.lang=r,this.template=n,this.onCreated=o,this.service=i,this.id=a}var o={onInitialize:function(){var t=this;this.data;this.container.delegate(".btn-cancel","click",function(){t.container.find(".closeModal").trigger("click")}),this.container.delegate(".btn-success","click",function(){t.container.find("#data_form").bootstrapValidator("validate");var i=t.container.find("#data_form").data("bootstrapValidator").isValid(),n=t.generateData();if(!i)return!1;var r={step_id:t.id,name:n.name,desc:n.desc,keep_ip:n.keep_ip,keep_attach_res:"false"},a=layer.load(1,{share:!1});t.service.post_lab_save(r).done(function(i){layer.close(a),t.onCreated(),e.msg_success("保存成功"),t.container.find(".closeModal").trigger("click")}).fail(function(t){layer.close(a),e.msg_error("保存失败")})}),t.container.find("#data_form").bootstrapValidator({fields:{name:{validators:{notEmpty:{message:"名称不能为空"}}}}})},getModelLabel:function(){return"attachpopmodel"}};return i.extend(a.prototype,t.prototype),i.extend(a.prototype,o),a}),function(e){"use strict";var t=document,i={modules:{},status:{},timeout:10,event:{},dir:"/static/public/lib/layui/"},n=function(){this.v="2.5.3"},r=function(){t.currentScript?t.currentScript.src:function(){for(var e,i=t.scripts,n=i.length-1,r=n;r>0;r--)if("interactive"===i[r].readyState){e=i[r].src;break}e||i[n].src}();return"/static/public/lib/layui/"}(),a=function(t){e.console&&console.error&&console.error("Layui hint: "+t)},o="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),s={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",transfer:"modules/transfer",tree:"modules/tree",table:"modules/table",element:"modules/element",rate:"modules/rate",colorpicker:"modules/colorpicker",slider:"modules/slider",carousel:"modules/carousel",flow:"modules/flow",util:"modules/util",code:"modules/code",jquery:"modules/jquery",dropdown:"modules/dropdown",mobile:"modules/mobile","layui.all":"../layui.all"};n.prototype.cache=i,n.prototype.define=function(e,t){var n=this,r="function"==typeof e,a=function(){var e=function(e,t){layui[e]=t,i.status[e]=!0};return"function"==typeof t&&t(function(n,r){e(n,r),i.callback[n]=function(){t(e)}}),this};return r&&(t=e,e=[]),!layui["layui.all"]&&layui["layui.mobile"]?a.call(n):(n.use(e,a),n)},n.prototype.use=function(e,n,l){function c(e,t){var n="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||n.test((e.currentTarget||e.srcElement).readyState))&&(i.modules[f]=t,p.removeChild(g),function e(){if(++m>1e3*i.timeout/4)return a(f+" is noLine truncated
return'<div ms-controller="">\r\n <div class="icode fade" tabindex="-1" role="dialog" style="width:480px;height:420px;background: #ffffff;">\r\n <div class="icode-dialog">\r\n <div class="icode-content">\r\n <div class="icode-header">\r\n <h4 class="icode-title">{{ header.title }}</h4>\r\n </div>\r\n <div class="layui-tab layui-tab-brief sd-custom-vpn-tab" lay-filter="vpn">\r\n <ul class="layui-tab-title">\r\n <li class="layui-this" lay-id="vpnbase">vpn基本信息</li>\r\n <li lay-id="vpnclient">客户端下载</li>\r\n <li lay-id="vpnpwd">修改密码</li>\r\n </ul>\r\n\r\n <div class="layui-tab-content" style="padding:0;min-height:210px">\r\n <div class="layui-tab-item layui-show">\r\n <div class="tab-content form-horizontal">\r\n <div class="tab-pane fade in active" id="course">\r\n <div\r\n class="icode-form-group clearfix"\r\n ms-for="field in fields"\r\n >\r\n <div class="icode-form-l fl">\r\n <label>{{ field.title }}:</label>\r\n </div>\r\n\r\n <div class="icode-form-r fl" ms-if="field.type==\'text\'">\r\n <label>{{ field.value }}</label>\r\n </div>\r\n <div class="icode-form-r fl" ms-if="field.type==\'link\'">\r\n <label><a class="sd-custom-vpn-href" href="javascript:void(0);" ms-on-click="events.download()">下载</a></label>\r\n </div>\r\n </div>\r\n <div\r\n class="icode-form-group clearfix"> \r\n <div class="icode-form-l fl">\r\n \r\n </div>\r\n <div class="icode-form-r fl">\r\n <label> <a class="sd-custom-vpn-href" href="/portal/help/180" target="_blank">vpn连接方法</a></label>\r\n </div>\r\n </div>\r\n \r\n </div>\r\n </div>\r\n </div>\r\n <div class="layui-tab-item" >\r\n <div class="sd-custom-vpn-table">\r\n <table id="tb_vpnclient" ></table>\r\n </div>\r\n\r\n </div>\r\n <div class="layui-tab-item" >\r\n <form class="layui-form" action="" id="data_form" style="margin:20px 10px 10px 10px;padding-bottom: 0px;">\r\n <div class="layui-form-item">\r\n <label class="layui-form-label">旧密码:</label>\r\n <div class="layui-input-block">\r\n <input name="old_password" class="layui-input sd-custom-layui-input" type="password" placeholder="请输入旧密码" autocomplete="off" lay-verify="title">\r\n </div>\r\n </div>\r\n <div class="layui-form-item">\r\n <label class="layui-form-label">新密码:</label>\r\n <div class="layui-input-block">\r\n <input name="new_password" class="layui-input sd-custom-layui-input" type="password" placeholder="请输入新密码" autocomplete="off">\r\n </div>\r\n </div>\r\n <div class="layui-form-item">\r\n <div class="layui-input-block">\r\n <button class="layui-btn" name="change_pwd">修改</button>\r\n </div>\r\n </div>\r\n</form>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n <div class="icode-footer">\r\n <button\r\n class="btn"\r\n ms-for="button in buttons"\r\n ms-attr="{name:button.field}"\r\n >\r\n {{ button.title }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n'}),define("text!modules/console/expdesktop/pop/vpn/lang.json",[],function(){return'{\r\n "config": {\r\n "header": {\r\n "field": "title"\r\n },\r\n "fields": [\r\n {\r\n "type": "text",\r\n "field": "username",\r\n "value": ""\r\n },\r\n\r\n {\r\n "type": "text",\r\n "field": "password",\r\n "value": "",\r\n "placer": ""\r\n\r\n },\r\n {\r\n "type": "link",\r\n "field": "download_vpnconfig",\r\n "value": "",\r\n "name": ""\r\n \r\n\r\n }\r\n ],\r\n "buttons": [\r\n\r\n {\r\n "field": "cancel",\r\n "style": "success"\r\n\r\n }\r\n ],\r\n "vpnclients": [\r\n {\r\n "name": "openvpn-2.4.7-Linux.tar.gz",\r\n "system": "Linux",\r\n "link": "https://download.shuidilab.cn/labtools/openvpn-2.4.7-Linux.tar.gz"\r\n },\r\n {\r\n "name": "openvpn-install-2.3.18-I001-x86_64.exe",\r\n "system": "Windows XP",\r\n "link": "https://download.shuidilab.cn/labtools/openvpn-install-2.3.18-I001-x86_64.Line truncated
y:n[a.oW]-n[a.cW]},o.restrictedMeasuring=function(){d.css(t,i);var e={w:n[a.sW],h:n[a.sH]};d.css(t,"visible");var r={w:n[a.sW],h:n[a.sH]};return e.w-r.w!=0||e.h-r.h!=0}(),o.nativeScrollbarStyling=(d.addClass("os-viewport-native-scrollbars-invisible"),d.css(t,i).hide().css(t,"scroll").show(),n[a.oH]-n[a.cH]==0&&n[a.oW]-n[a.cW]==0),o.rtlScrollBehavior=function(){d.css({"overflow-y":i,direction:"rtl"}).scrollLeft(0);var e=d.offset(),t=r.offset();d.scrollLeft(999);var n=r.offset();return{i:e.left===t.left,n:t.left-n.left==0}}(),d.removeAttr(a.s).remove(),e}(),p={x:0===h.x,y:0===h.y};o.nativeScrollbarSize=h,o.nativeScrollbarIsOverlaid=p,o.overlayScrollbarDummySize={x:30,y:30},o.msie=function(){var t=e.navigator.userAgent,i=t.indexOf("MSIE ");if(i>0)return parseInt(t.substring(i+5,t.indexOf(".",i)),10);if(t.indexOf("Trident/")>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var r=t.indexOf("Edge/");return r>0&&parseInt(t.substring(r+5,t.indexOf(".",r)),10)}(),o.cssCalc=function(){for(var e=t.createElement("div"),i=["calc","-webkit-calc","-moz-calc","-o-calc"],n=0;n<i.length;++n){var r=i[n];if(e.style.cssText="width:"+r+"(1px);",e.style.length)return r}return null}(),o.supportTransform=r("transform"),o.supportTransition=r("transition");var f=!1;try{var m=Object.defineProperty({},"passive",{get:function(){f=!0}});e.addEventListener("test",null,m)}catch(e){}o.supportPassiveEvents=f,o.supportResizeObserver=s.rO()!==i,o.supportMutationObserver=s.mO()!==i,function(){function t(e,t){var i=Math.abs(e),n=Math.abs(t);return!(i===n||i+1===n||i-1===n)}function i(){var t=e.screen.deviceXDPI||0,i=e.screen.logicalXDPI||1;return e.devicePixelRatio||t/i}if(!p.x||!p.y){var n=s.wW(),r=s.wH(),h=i();c(e).on("resize",function(){if(l.all().length>0){var e=s.wW(),p=s.wH(),f=e-n,m=p-r;if(0===f&&0===m)return;var g=Math.round(e/(n/100)),v=Math.round(p/(r/100)),y=Math.abs(f),_=Math.abs(m),b=Math.abs(g),w=Math.abs(v),x=i(),k=y>2&&_>2,C=!t(b,w);if(k&&C&&x!==h&&h>0){u.append(d);var T=d[0];o.nativeScrollbarSize={x:T[a.oH]-T[a.cH],y:T[a.oW]-T[a.cW]},d.remove(),c.each(l.all(),function(){l.has(this)&&l.get(this).update("zoom")})}n=e,r=p,h=x}})}}()}function p(e){var t,n=this,r="autoUpdate",a=[],o=[],l=!1,u=33,d=s.now(),h=function(){if(a.length>0&&l){t=s.rAF()(function(){h()});var e=s.now(),n=e-d;if(n>u){d=e-n%u;for(var c=33,p=0;p<a.length;p++){var f=a[p];if(f!==i){var m=f.options(),g=m[r],v=Math.max(1,m.autoUpdateInterval),y=s.now();(!0===g||null===g)&&y-o[p]>v&&(f.update("auto"),o[p]=new Date(y+=v)),c=Math.max(1,Math.min(c,v))}}u=c}}else u=33};n.add=function(t){-1===c.inArray(t,a)&&(a.push(t),o.push(s.now()),a.length>0&&!l&&(l=!0,e.autoUpdateLoop=l,h()))},n.remove=function(n){var r=c.inArray(n,a);r>-1&&(o.splice(r,1),a.splice(r,1),0===a.length&&l&&(l=!1,e.autoUpdateLoop=l,t!==i&&(s.cAF()(t),t=-1)))}}function f(t,d,h,p){function f(){if(!ze){var e=Ze[0],t={w:e[a.sW],h:e[a.sH]};if(wi){var i=x(t,Ht);Ht=t,i&&fe(!0,!1)}else Ht=t}}function m(e,t,i){e=e[0];for(var n=t.split(Ji),r=0;r<n.length;r++)e.addEventListener(n[r],i,{passive:!0})}function g(e,t,i){e=e[0];for(var n=t.split(Ji),r=0;r<n.length;r++)e.removeEventListener(n[r],i,{passive:!0})}function v(e){if(e!==i&&Ae){var t=e.contents()[0];t[pn].unobserve(t)}}function y(e){if(e!==i&&Ae){var t=e.contents()[0];t[pn].observe(t)}}function _(e,t){var i=3333333,n=function(n){e.scrollTop(i),e.scrollLeft(je?ge.n?-i:ge.i?0:i:i),t()};if(Ae){var o=s.rO(),l=e.append(Xi+jn+" observed"+Qi).contents()[0];(l[pn]=new o(n)).observe(l)}else{var u="animationstart mozAnimationStart webkitAnimationStart MSAnimationStart";if(ye>9||!ve){var d='">',p="</div>",f="childNodes",m=Xi+jn+d;m+=Xi+zn+'" dir="ltr'+d,m+=Xi+zn+d,m+=Xi+Fn+Qi,m+=p,m+=Xi+zn+d,m+=Xi+Fn+'" style="width: 200%; height: 200%'+Qi,m+=p,m+=p,m+=p,e.prepend(m);var g,v,y,_,b=(e=e[0])[f][0][f][0],w=c(b[f][1]),x=c(b[f][0]),k=c(x[0][f][0]),C=b[a.oW],T=b[a.oH],S=h.nativeScrollbarSize,E=function(){x[rn](i)[an](i),w[rn](i)[an](i)},A=function(){v=0,g&&(C=y,T=_,n())},I=function(e){return y=b[a.oW],_=b[a.oH],g=y!=C||_!=T,e&&g&&!v?(s.cAF()(v),v=s.rAF()(A)):e||A(),E(),e&&(s.prvD(e),s.stpP(e)),!1},D={};D[Pi]=2*-(S.y+1),D[Ri]=-2*S.x,D[ji]=-2*S.y,D[zi]=2*-(S.x+1),c(b).css(D),x.on(Vi,I),w.on(Vi,I),c(e).on(u,function(){I(!1)});var M={};M[Ui]=i,M[$i]=i,k.css(M),E()}else{var L=Ve[0],O=e;e=e[0];var N=L.attachEvent,P=typeof navigator===r.u||navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/);if(N)O.prepend(Xi+jn+Qi),O.find(Zi+jn).first()[0].attachEvent("onresize",n);else{var R=L.createElement(r.o);R.setAttribute("tabindex","-1"),R.setAttribute(a.c,jn),R.onload=function(){var e=this.contentDocument.defaultView;e.addEventListener("resize",n),e.document.documentElement.style.display="none"},R.type="text/html",P&&O.prepend(R),R.data="about:blank",P||O.prepend(R),O.on(u,n)}}}if((e=c(e))[0]===Ze[0]){var j=function(){var t=Xe.css("direction");if(t!==Tt){var n={},r=0;return"ltr"===t?(n[zi]=0,n[Ri]=Wi,r=i):(n[zi]=Wi,n[Ri]=0,r=ge.n?-i:ge.i?0:i),Line truncated
;case"/=":s=y/o;break;default:s=o}b&&(s=d-s),w&&(s*=-1),p&&ge.n?(s=Math.max(d,s),s=Math.min(0,s)):(s=Math.min(d,s),s=Math.max(0,s)),s===u&&(s=i)}return s};if(I||D){var N=I?A:c(A);if(0===N.length)return;if(E){var P,R,j,z=t.axis,F=t.block,B=c.type(F),U=t.margin,$=c.type(U);if(B===r.s)F=[F,F];else if(B===r.a)if((R=F.length)>2||R<1)F=i;else{for(P=!0,1===R&&(F[1]=k),g=0;g<R;g++){var q=F[g];if(c.type(q)!==r.s||!M(q,S)){P=!1;break}}P||(F=i)}else F=i;if($===r.n)U=[U,U,U,U];else if("boolean"===$)U=U?[de(N.css(Li+Pi)),de(N.css(Li+Ri)),de(N.css(Li+ji)),de(N.css(Li+zi))]:[0,0,0,0];else if($===r.a)if(2!==(j=U.length)&&4!==j)U=i;else{for(P=!0,g=0;g<j;g++)if(c.type(U[g])!==r.n){P=!1;break}P?2===j&&(U=[U[0],U[1],U[0],U[1]]):U=i}else U=i;C.axis=M(z,T)?z:C.axis,C.block=F||C.block,C.margin=U||C.margin}var H=N.offset(),W=et.offset(),V=Ii,G={l:Ei.cs,t:Ai.cs},Y=C.axis,K=C.block,X=C.margin,Q=K[0]===(je?k:x),Z=K[1]===x,J=Q||Z;H.top-=X[0],H.left-=X[3];var ee={x:Math.round(H.left-W.left+G.l),y:Math.round(H.top-W.top+G.t)};if(je&&(ge.n||ge.i||(ee.x=Math.round(W.left-H.left+G.l)),ge.n&&Xt&&(ee.x*=-1),ge.i&&Xt&&(ee.x=Math.round(W.left-H.left+(Ei.ms-G.l)))),J){var ie,ne={},re={w:(ne=Se?{w:(ie=N[0].getBoundingClientRect())[Ui],h:ie[$i]}:{w:N[0][a.oW],h:N[0][a.oH]}).w+X[3]+X[1],h:ne.h+X[0]+X[2]};Q&&(ee.x-=(V.w-re.w)*(je&&Xt?-1:1)),Z&&(ee.y-=V.h-re.h)}Y===Yi&&delete ee.y,Y===Ki&&delete ee.x,t=ee}b.x=O(!0,L(t).x),b.y=O(!1,L(t).y);var ae=b.x!==i,oe=b.y!==i;if(n>0||w){var se={};if(ae&&(se[rn]=b.x),oe&&(se[an]=b.y),w)tt.animate(se,n);else{var le={duration:n,complete:s};if(c.type(o)===r.a){var ce={};ce[rn]=o[0],ce[an]=o[1],le.specialEasing=ce}else le.easing=o;tt.animate(se,le)}}else ae&&tt[rn](b.x),oe&&tt[an](b.y)},bi.scrollStop=function(e,t,i){tt.stop(e,t,i)},bi.getElements=function(){return{target:Ke[0],host:Xe[0],padding:et[0],viewport:tt[0],content:nt[0],scrollbarHorizontal:{scrollbar:ot[0],track:st[0],handle:lt[0]},scrollbarVertical:{scrollbar:ct[0],track:ut[0],handle:dt[0]},scrollbarCorner:at}},bi.getState=function(e){var t=function(e){if(!c.isPlainObject(e))return e;var t=c.extend(!0,{},e);u.del(t,"c");var i=function(e,i){t.hasOwnProperty(e)&&(t[i]=t[e],delete t[e])};return i("w",Ui),i("h",$i),t},i={sleeping:t(ze)||!1,autoUpdate:t(!ri),widthAuto:t(vt),heightAuto:t(yt),padding:t(wt),overflowAmount:t(Dt),hideOverflow:t(gt),hasOverflow:t(mt),contentScrollSize:t(pt),viewportSize:t(Ii),hostSize:t(ht)};return c.type(e)===r.s?u.get(i,e):i},function(e,t){Be=h.defaultOptions,_e=h.nativeScrollbarStyling,we=c.extend(!0,{},h.nativeScrollbarSize),ke=c.extend(!0,{},h.nativeScrollbarIsOverlaid),Ce=c.extend(!0,{},h.overlayScrollbarDummySize),ge=c.extend(!0,{},h.rtlScrollBehavior),le(c.extend(!0,{},Be,t));var i,n=$e.callbacks;if(ke.x&&ke.x&&!$e.nativeScrollbarsOverlaid.initialize){var r=n.onInitializationWithdrawn;return c.isFunction(r)&&C(r),!1}if(be=h.cssCalc,ye=h.msie,ve=h.autoUpdateRecommended,Te=h.supportTransition,Se=h.supportTransform,Ee=h.supportPassiveEvents,Ae=h.supportResizeObserver,ai=h.supportMutationObserver,Ie=h.restrictedMeasuring,Ve=c(e.ownerDocument),We=c(Ve[0].defaultView||Ve[0].parentWindow),Ge=Ve.find("html").first(),Ye=Ge.find("body").first(),Ke=c(e),ki=Ke.is("textarea"),(Ci=Ke.is("body"))&&((i={}).l=Math.max(Ke[rn](),Ge[rn](),We[rn]()),i.t=Math.max(Ke[an](),Ge[an](),We[an]())),ki){Ke.wrap(Xi+vn+Qi),Ke.addClass(En).addClass(Bn),Xe=Ke.parent();var o={};$e.sizeAutoCapable||(o[Ui]=Ke.css(Ui),o[$i]=Ke.css($i)),Xe.css(o),Xe.wrapInner(Xi+On+Ji+Bn+Qi).wrapInner(Xi+Dn+Ji+Bn+Qi).wrapInner(Xi+In+Ji+Bn+Qi),nt=Xe.find(Zi+On).first(),tt=Xe.find(Zi+Dn).first(),et=Xe.find(Zi+In).first(),rt=c(Xi+An+Qi),nt.prepend(rt),Ke.on(Vi,B),Ke.on("drop",j),Ke.on("focus",z),Ke.on("focusout",F),ye>9||!ve?Ke.on("input",N):(Ke.on(cn,P),Ke.on(un,R))}else Ke.addClass(gn),(Xe=Ke).wrapInner(Xi+On+Qi).wrapInner(Xi+Dn+Qi).wrapInner(Xi+In+Qi),nt=Xe.find(Zi+On).first(),tt=Xe.find(Zi+Dn).first(),et=Xe.find(Zi+In).first(),nt.on(hn,function(e){!0!==Lt&&he((e=e.originalEvent||e).propertyName)&&fe(Wi)});if(Y(),Ee?m(tt,Vi,J):tt.on(Vi,J),_e&&(ke.x&&ke.y?tt.addClass(Ln):tt.addClass(Mn)),ai){var l,u=s.mO(),d=s.now();ii=new u(function(e){if(wi&&!ze){var t=!1;c.each(e,function(){var e=this,i=this.target,n=e.attributeName;if(t=n===a.c?oe(e.oldValue,i.className):n!==a.s||e.oldValue!==i.style.cssText)return!1}),t&&bi.update(Wi)}}),ni=new u(function(e){if(wi&&!ze){for(var t=!1,i=0;i<e.length;i++)if(se(e[i])){t=!0;break}if(t){var n=s.now(),r=yt||vt,a=function(){d=n,ki&&M(),r?bi.update():bi.update(Wi)};clearTimeout(l),ar<=0||n-d>ar||!r?a():l=setTimeout(a,ar)}}})}Ci&&(Ge.addClass(mn),tt[rn](i.l),tt[an](i.t)),Ze=c(Xi+"os-resize-observer-host"+Qi),Xe.prepend(Ze),_(Ze,f),f(),bi.update(Wi),setTimeout(function(){Te&&!xi&&Xe.addClass(bn)},333),wi=!0;var p=n.onInitialized;return c.isFunction(p)&&C(p),wi}(t,d))return l.add(t,bi),bi;bi=i}}var m,g,v={className:"os-theme-dark",resize:"none",sizeAutoCapable:!0,clipAlways:!0,normalizeRTL:!0,paddingAbsolute:!1,autoUpdate:null,autoUpdateInterval:33,natiLine truncated
e.on("dispose",function(){e.off(),la.setTimeout(function(){e.eventBusEl_=null},0)}),e}function ae(e,t){return i(e,oo),e.state=i({},e.state,t),"function"==typeof e.handleStateChanged&&ro(e)&&e.on("statechanged",e.handleStateChanged),e}function oe(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toLowerCase()})}function se(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})}function le(){for(var e={},i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return n.forEach(function(i){i&&t(i,function(t,i){r(t)?(r(e[i])||(e[i]={}),e[i]=le(e[i],t)):e[i]=t})}),e}function ce(e,t,i,n){return function(e,t,i){if("number"!=typeof t||t<0||i<t)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+i+").")}(e,n,i.length-1),i[n][t]}function ue(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:ce.bind(null,"start",0,e),end:ce.bind(null,"end",1,e)}}function de(e,t){return Array.isArray(e)?ue(e):void 0===e||void 0===t?ue():ue([[e,t]])}function he(e,t){var i,n,r=0;if(!t)return 0;e&&e.length||(e=de(0,0));for(var a=0;a<e.length;a++)i=e.start(a),r+=(n=t<(n=e.end(a))?t:n)-i;return r/t}function pe(e){if(e instanceof pe)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:n(e)&&("number"==typeof e.code&&(this.code=e.code),i(this,e)),this.message||(this.message=pe.defaultMessages[this.code]||"")}function fe(e){return null!=e&&"function"==typeof e.then}function me(e){fe(e)&&e.then(null,function(e){})}function ge(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,i,n){return e[i]&&(t[i]=e[i]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})}function ve(e,t){for(var i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].enabled=!1)}function ye(e,t){for(var i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].selected=!1)}function _e(e){var t=["protocol","hostname","port","pathname","search","hash","host"],i=da.createElement("a");i.href=e;for(var n={},r=0;r<t.length;r++)n[t[r]]=i[t[r]];return"http:"===n.protocol&&(n.host=n.host.replace(/:80$/,"")),"https:"===n.protocol&&(n.host=n.host.replace(/:443$/,"")),n.protocol||(n.protocol=la.location.protocol),n.host||(n.host=la.location.host),n}function be(e){var t;return e.match(/^https?:\/\//)||((t=da.createElement("a")).href=e,e=t.href),e}function we(e){return"string"==typeof e&&(e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e))?e.pop().toLowerCase():""}function xe(e,t){return void 0===t&&(t=la.location),(":"===(e=_e(e)).protocol?t:e).protocol+e.host!==t.protocol+t.host}function ke(e,t,i){var n=e;return Io(t)?(i=t,"string"==typeof e&&(n={uri:e})):n=xa({},t,{uri:e}),n.callback=i,n}function Ce(e,t,i){return Te(t=ke(e,t,i))}function Te(e){function t(){var e=void 0,e=c.response||c.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(c);if(m)try{e=JSON.parse(e)}catch(e){}return e}function i(e){return clearTimeout(o),(e=e instanceof Error?e:new Error(""+(e||"Unknown XMLHttpRequest Error"))).statusCode=0,l(e,g)}function n(){if(!a){clearTimeout(o);var i=e.useXDR&&void 0===c.status?200:1223===c.status?204:c.status,n=g,r=null;return 0!==i?(n={body:t(),statusCode:i,method:d,headers:{},url:u,rawRequest:c},c.getAllResponseHeaders&&(n.headers=Mo(c.getAllResponseHeaders()))):r=new Error("Internal XMLHttpRequest Error"),l(r,n,n.body)}}if(void 0===e.callback)throw new Error("callback argument missing");var r,a,o,s=!1,l=function(t,i,n){s||(s=!0,e.callback(t,i,n))},c=e.xhr||null,u=(c=c||new(e.cors||e.useXDR?Ce.XDomainRequest:Ce.XMLHttpRequest)).url=e.uri||e.url,d=c.method=e.method||"GET",h=e.body||e.data,p=c.headers=e.headers||{},f=!!e.sync,m=!1,g={body:void 0,headers:{},statusCode:0,method:d,url:u,rawRequest:c};if("json"in e&&!1!==e.json&&(m=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==d&&"HEAD"!==d&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),h=JSON.stringify(!0===e.json?h:e.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(n,0)},c.onload=n,c.onerror=i,c.onprogress=function(){},c.onabort=function(){a=!0},c.ontimeout=i,c.open(d,u,!f,e.username,e.password),f||(c.withCredentials=!!e.withCredentials),!f&&0<e.timeout&&(o=setTimeout(function(){var e;a||(a=!0,c.abort("timeout"),(e=new Error("XMLHttpRequest timeout")).code="ETIMEDOUT",i(e))},e.timeout)),c.setRequestHeader)for(r in p)p.hasOwnProperty(r)&&c.setRequestHeader(r,p[r]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnLine truncated
for(var n=e.sidx.map||null,r=e.sidx.duration,a=e.timeline||0,o=(o=e.sidx.byterange).offset+o.length,s=t.timescale,l=t.references.filter(function(e){return 1!==e.referenceType}),c=[],u=o+t.firstOffset,d=0;d<l.length;d++){var h=t.references[d],p=h.referencedSize,h=h.subsegmentDuration,h=Ci({baseUrl:i,timescale:s,timeline:a,periodIndex:a,duration:h,sourceDuration:r,indexRange:u+"-"+(u+p-1)})[0];n&&(h.map=n),c.push(h),u+=p}return e.segments=c,e}function Si(e){return e&&e.uri+"-"+(t=e.byterange,e=t.offset+t.length-1,t.offset+"-"+e);var t}function Ei(e){var t;return(t=e.reduce(function(e,t){var i,n=t.attributes.id+(t.attributes.lang||"");return e[n]?(t.segments[0]&&(t.segments[0].discontinuity=!0),(i=e[n].segments).push.apply(i,t.segments),t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)):e[n]=t,e},{}),Object.keys(t).map(function(e){return t[e]})).map(function(e){var t,i;return e.discontinuityStarts=(t=e.segments,i="discontinuity",t.reduce(function(e,t,n){return t[i]&&e.push(n),e},[])),e})}function Ai(e,t){var i=Si(e.sidx);return(i=i&&t[i]&&t[i].sidx)&&Ti(e,i,e.sidx.resolvedUri),e}function Ii(e,t,i){var n;return void 0===t&&(t={}),void 0===i&&(i=!1),e=e.reduce(function(e,r){var a=r.attributes.role&&r.attributes.role.value||"",o=r.attributes.lang||"",s=r.attributes.label||"main";e[s=o&&!r.attributes.label?r.attributes.lang+(a?" ("+a+")":""):s]||(e[s]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var l,c,u,d,d=Ai((c=i,u=(l=r).attributes,d=l.segments,o=l.sidx,d={attributes:((l={NAME:u.id,BANDWIDTH:u.bandwidth,CODECS:u.codecs})["PROGRAM-ID"]=1,l),uri:"",endList:"static"===(u.type||"static"),timeline:u.periodIndex,resolvedUri:"",targetDuration:u.duration,segments:d,mediaSequence:d.length?d[0].number:1},u.contentProtection&&(d.contentProtection=u.contentProtection),o&&(d.sidx=o),c&&(d.attributes.AUDIO="audio",d.attributes.SUBTITLES="subs"),d),t);return e[s].playlists.push(d),void 0===n&&"main"===a&&((n=r).default=!0),e},{}),n||(e[Object.keys(e)[0]].default=!0),e}function Di(e){var t=e.attributes,i=e.segments,n=e.sidx,i={attributes:((e={NAME:t.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:t.width,height:t.height},CODECS:t.codecs,BANDWIDTH:t.bandwidth})["PROGRAM-ID"]=1,e),uri:"",endList:"static"===(t.type||"static"),timeline:t.periodIndex,resolvedUri:"",targetDuration:t.duration,segments:i,mediaSequence:i.length?i[0].number:1};return t.contentProtection&&(i.contentProtection=t.contentProtection),n&&(i.sidx=n),i}function Mi(e){return"video/mp4"===(e=e.attributes).mimeType||"video/webm"===e.mimeType||"video"===e.contentType}function Li(e){return"audio/mp4"===(e=e.attributes).mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType}function Oi(e){return"text/vtt"===(e=e.attributes).mimeType||"text"===e.contentType}function Ni(e,t,i){if(void 0===i&&(i={}),!e.length)return{};var n=(u=e[0].attributes).sourceDuration,r=void 0===(c=u.type)?"static":c,a=u.suggestedPresentationDelay,o=u.minimumUpdatePeriod,s=Ei(e.filter(Mi)).map(Di),l=Ei(e.filter(Li)),c=e.filter(Oi),u=e.map(function(e){return e.attributes.captionServices}).filter(Boolean),s={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:((e={AUDIO:{},VIDEO:{}})["CLOSED-CAPTIONS"]={},e.SUBTITLES={},e),uri:"",duration:n,playlists:function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var i in e)e[i]=Ai(e[i],t);return e}(s,i)};0<=o&&(s.minimumUpdatePeriod=1e3*o),t&&(s.locations=t),"dynamic"===r&&(s.suggestedPresentationDelay=a);var d,a=0===s.playlists.length;return l.length&&(s.mediaGroups.AUDIO.audio=Ii(l,i,a)),c.length&&(s.mediaGroups.SUBTITLES.subs=(void 0===(d=i)&&(d={}),c.reduce(function(e,t){var i=t.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(Ai(function(e){var t=e.attributes,i=e.segments;return void 0===i&&(i=[{uri:t.baseUrl,timeline:t.periodIndex,resolvedUri:t.baseUrl||"",duration:t.sourceDuration,number:0}],t.duration=t.sourceDuration),(e={NAME:t.id,BANDWIDTH:t.bandwidth})["PROGRAM-ID"]=1,t.codecs&&(e.CODECS=t.codecs),{attributes:e,uri:"",endList:"static"===(t.type||"static"),timeline:t.periodIndex,resolvedUri:t.baseUrl||"",targetDuration:t.duration,segments:i,mediaSequence:i.length?i[0].number:1}}(t),d)),e},{}))),u.length&&(s.mediaGroups["CLOSED-CAPTIONS"].cc=u.reduce(function(e,t){return t&&t.forEach(function(t){var i=t.channel,n=t.language;e[n]={autoselect:!1,default:!1,instreamId:i,language:n},t.hasOwnProperty("aspectRatio")&&(e[n].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[n].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[n]["3D"]=t["3D"])}),e},{})),s}function Pi(e,t){for(var i,n,r,a,o,s,l=e.type,c=void 0===l?"static":l,u=void 0===(l=e.minimumUpdatePeriod)?0:l,d=void 0===(l=e.media)?"":l,h=e.sourceDuration,p=void 0===(l=e.timescale)?1:l,f=void 0===(l=e.startNumber)?1:l,m=e.periodIndex,g=[],v=-1,y=0;y<t.length;y++){var _=t[y],b=_.d,w=_.r||0,x=_.t||Line truncated
;t.transmuxQueue.push(lr.bind(null,t,e))}function ur(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void sr(e);e.transmuxer.transmuxQueue.push(e)}function dr(e){var t=e.transmuxer,i=e.endAction||e.action,n=e.callback,r=xa({},e,{endAction:null,transmuxer:null,callback:null}),a=function r(a){a.data.action===i&&(t.removeEventListener("message",r),a.data.data&&(a.data.data=new Uint8Array(a.data.data,e.byteOffset||0,e.byteLength||a.data.data.byteLength),e.data&&(e.data=a.data.data)),n(a.data))};t.addEventListener("message",a),e.data?(a=e.data instanceof ArrayBuffer,r.byteOffset=a?0:e.data.byteOffset,r.byteLength=e.data.byteLength,a=[a?e.data:e.data.buffer],t.postMessage(r,a)):t.postMessage(r)}function hr(e){e.forEach(function(e){e.abort()})}function pr(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:cc,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:uc,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:lc,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:lc,xhr:t}:null}function fr(e,t,i){return function(n,r){var a=r.response,n=pr(n,r);if(n)return i(n,e);if(16!==a.byteLength)return i({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:lc,xhr:r},e);for(var a=new DataView(a),o=new Uint32Array([a.getUint32(0),a.getUint32(4),a.getUint32(8),a.getUint32(12)]),s=0;s<t.length;s++)t[s].bytes=o;return i(null,e)}}function mr(e,t){var i=un(e.map.bytes);if("mp4"!==i){var n=e.map.resolvedUri||e.map.uri;return t({internal:!0,message:"Found unsupported "+(i||"unknown")+" container for initialization segment at URL: "+n,code:lc})}dr({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:function(i){var n=i.tracks,i=i.data;return e.map.bytes=i,n.forEach(function(t){e.map.tracks=e.map.tracks||{},e.map.tracks[t.type]||"number"==typeof(e.map.tracks[t.type]=t).id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale)}),t(null)}})}function gr(e){var t=e.segment,i=e.finishProcessingFn,n=e.responseType;return function(e,r){return(e=pr(e,r))?i(e,t):(e="arraybuffer"!==n&&r.responseText?function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t.buffer}(r.responseText.substring(t.lastReachedChar||0)):r.response,t.stats={bandwidth:(r=r).bandwidth,bytesReceived:r.bytesReceived||0,roundTripTime:r.roundTripTime||0},t.key?t.encryptedBytes=new Uint8Array(e):t.bytes=new Uint8Array(e),i(null,t))}}function vr(e){var t=e.segment,i=e.bytes,n=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,u=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,e=t.map&&t.map.tracks||{},f=Boolean(e.audio&&e.video),m=r.bind(null,t,"audio","start"),g=r.bind(null,t,"audio","end"),v=r.bind(null,t,"video","start"),y=r.bind(null,t,"video","end");dr({action:"probeTs",transmuxer:t.transmuxer,data:i,baseStartTime:t.baseStartTime,callback:function(e){t.bytes=i=e.data,e=e.result,e&&(n(t,{hasAudio:e.hasAudio,hasVideo:e.hasVideo,isMuxed:f}),n=null,e.hasAudio&&!f&&m(e.audioStart),e.hasVideo&&v(e.videoStart),v=m=null),ur({bytes:i,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:f,onData:function(e){e.type="combined"===e.type?"video":e.type,d(t,e)},onTrackInfo:function(e){n&&(f&&(e.isMuxed=!0),n(t,e))},onAudioTimingInfo:function(e){m&&void 0!==e.start&&(m(e.start),m=null),g&&void 0!==e.end&&g(e.end)},onVideoTimingInfo:function(e){v&&void 0!==e.start&&(v(e.start),v=null),y&&void 0!==e.end&&y(e.end)},onVideoSegmentTimingInfo:function(e){a(e)},onAudioSegmentTimingInfo:function(e){o(e)},onId3:function(e,i){s(t,e,i)},onCaptions:function(e){l(t,[e])},isEndOfTimeline:c,onEndedTimeline:function(){u()},onTransmuxerLog:p,onDone:function(e){h&&(e.type="combined"===e.type?"video":e.type,h(null,t,e))}})}})}function yr(e){var t=e.segment,i=e.bytes,n=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,u=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=new Uint8Array(i);if(0<rn(f,["moof"]).length){t.isFmp4=!0;var m=t.map.tracks,g={isFmp4:!0,hasVideo:!!m.video,hasAudio:!!m.audio};m.audio&&m.audio.codec&&"enca"!==m.audio.codec&&(g.audioCodec=m.audio.codec),m.video&&m.video.codec&&"encv"!==m.video.codec&&(g.videoCodec=m.video.codec),m.video&&m.audio&&(g.isMuxed=!0),n(t,g);var v=function(e){d(t,{data:f,type:g.hasAudio&&!g.isMuxed?"audio":"video"}),e&&e.length&&l(t,e),h(null,t,{})};dr({action:"probeMp4StartTime",timescales:t.map.timescales,data:f,transmuxer:t.transmuxer,callback:function(e){var n=e.data,e=e.startTime;i=n.buffer,t.bytes=f=n,g.hasAudio&&!g.isMuxed&&r(t,"audio","start",e),g.hasVideo&&r(t,"video","start",e),m.video&&n.byteLength&&t.tLine truncated
r=la.setTimeout(function(){0===n.size&&(n=null,Ja.delete(t)),t.trigger(e)},0),n.set(i,r)};var ro=function(e){return e instanceof X||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return"function"==typeof e[t]})},ao={on:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];var r,a=ie(this,i,"on"),o=a.isTargetingSelf,s=a.target,l=a.type,c=a.listener;ne(s,"on",l,c),o||((r=function(){return e.off(s,l,c)}).guid=c.guid,(o=function(){return e.off("dispose",r)}).guid=c.guid,ne(this,"on","dispose",r),ne(s,"on","dispose",o))},one:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];var r=ie(this,i,"one"),a=r.isTargetingSelf,o=r.target,s=r.type,l=r.listener;a?ne(o,"one",s,l):((a=function t(){e.off(o,s,t);for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];l.apply(null,n)}).guid=l.guid,ne(o,"one",s,a))},any:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];var r=ie(this,i,"any"),a=r.isTargetingSelf,o=r.target,s=r.type,l=r.listener;a?ne(o,"any",s,l):((a=function t(){e.off(o,s,t);for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];l.apply(null,n)}).guid=l.guid,ne(o,"any",s,a))},off:function(e,t,i){!e||Z(e)?q(this.eventBusEl_,e,t):(t=t,J(e=e,this,"off"),ee(t,this,"off"),te(i,this,"off"),i=G(this,i),this.off("dispose",i),e.nodeName?(q(e,t,i),q(e,"dispose",i)):ro(e)&&(e.off(t,i),e.off("dispose",i)))},trigger:function(e,t){J(this.eventBusEl_,this,"trigger");var i=e&&"string"!=typeof e?e.type:e;if(!Z(i)){if(i="Invalid event type for "+Q(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.",!e)throw new Error(i);(this.log||ba).error(i)}return H(this.eventBusEl_,e,t)}},oo={state:{},setState:function(e){var i,n=this;return t(e="function"==typeof e?e():e,function(e,t){n.state[t]!==e&&((i=i||{})[t]={from:n.state[t],to:e}),n.state[t]=e}),i&&ro(this)&&this.trigger({changes:i,type:"statechanged"}),i}},so=la.Map||function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t.delete=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var i in this.map_)e.call(t,this.map_[i],i,this)},e}(),lo=la.Set||function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t.delete=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var i in this.set_)e.call(t,i,i,this)},e}(),co=function(){function e(e,t,i){!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=le({},this.options_),t=this.options_=le(this.options_,t),this.id_=t.id||t.el&&t.el.id,this.id_||(e=e&&e.id&&e.id()||"no_player",this.id_=e+"_component_"+Qa++),this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),!1!==t.evented&&(re(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),ae(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new lo,this.setIntervalIds_=new lo,this.rafIds_=new lo,this.namedRafs_=new so,(this.clearingTimersOnDispose_=!1)!==t.initChildren&&this.initChildren(),this.ready(i),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var e=this.children_.length-1;0<=e;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),eo.has(this.el_)&&eo.delete(this.el_),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e&&(this.options_=le(this.options_,e)),this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,i){return h(e,t,i)},t.localize=function(e,t,i){void 0===i&&(i=e);var n=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[n],n=n&&n.split("-")[0],n=r&&r[n],i=i;return a&&a[e]?i=a[e]:n&&n[e]&&(i=n[e]),i=t?i.replace(/\{(\d+)\}/g,function(e,i){return i=t[i-1],void 0===i?e:i}):i},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=fuLine truncated
/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(t=parseFloat(t))&&t<=100)&&(this.set(e,t),!0)}};var Bo=da.createElement&&da.createElement("textarea"),Uo={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},$o={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},qo={v:"title",lang:"lang"},Ho={rt:"ruby"},Wo=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];Re.prototype.applyStyles=function(e,t){for(var i in t=t||this.div,e)e.hasOwnProperty(i)&&(t.style[i]=e[i])},Re.prototype.formatStyle=function(e,t){return 0===e?0:e+t},(je.prototype=Fo(Re.prototype)).constructor=je,ze.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},ze.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},ze.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},ze.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},ze.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},ze.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},ze.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},ze.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,i=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,n=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||n,height:e.height||t,bottom:e.bottom||n+(e.height||t),width:e.width||i}},Be.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},Be.convertCueToDOMTree=function(e,t){return e&&t?Ne(e,t):null},Be.processCues=function(e,t,i){if(!e||!t||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);var n=e.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",i.appendChild(n),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return 1}(t)){var r=[],a=ze.getSimpleBoxPosition(n),o={font:Math.round(.05*a.height*100)/100+"px sans-serif"};!function(){for(var i,s,l=0;l<t.length;l++)s=t[l],i=new je(e,s,o),n.appendChild(i.div),Fe(0,i,a,r),s.displayState=i.div,r.push(ze.getSimpleBoxPosition(i))}()}else for(var s=0;s<t.length;s++)n.appendChild(t[s].displayState)},(Be.Parser=function(e,t,i){i||(i=t,t={}),t=t||{},this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(e){if(!(e instanceof Ie))throw e;this.onparsinLine truncated
ba.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=da.createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_)))}))},i.updateContent=function(e){},t}(co),Ea.prototype.labelText_="Time",Ea.prototype.controlText_="Time",co.registerComponent("TimeDisplay",Ea),Sa=function(e){function t(){return e.apply(this,arguments)||this}ho(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-current-time"},i.updateContent=function(e){var t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateTextNode_(t)},t}(Ea),Sa.prototype.labelText_="Current Time",Sa.prototype.controlText_="Current Time",co.registerComponent("CurrentTimeDisplay",Sa),xo=function(e){function t(t,i){var n=e.call(this,t,i)||this,i=function(e){return n.updateContent(e)};return n.on(t,"durationchange",i),n.on(t,"loadstart",i),n.on(t,"loadedmetadata",i),n}ho(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-duration"},i.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(Ea),xo.prototype.labelText_="Duration",xo.prototype.controlText_="Duration",co.registerComponent("DurationDisplay",xo),co.registerComponent("TimeDivider",function(e){function t(){return e.apply(this,arguments)||this}return ho(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"},{"aria-hidden":!0})},t}(co)),sa=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.on(t,"durationchange",function(e){return n.updateContent(e)}),n}ho(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-remaining-time"},i.createEl=function(){var t=e.prototype.createEl.call(this);return t.insertBefore(h("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},i.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(Ea),sa.prototype.labelText_="Remaining Time",sa.prototype.controlText_="Remaining Time",co.registerComponent("RemainingTimeDisplay",sa),co.registerComponent("LiveDisplay",function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.updateShowing(),n.on(n.player(),"durationchange",function(e){return n.updateShowing(e)}),n}ho(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=h("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+" </span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},i.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},i.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(co)),ca=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.updateLiveEdgeStatus(),n.player_.liveTracker&&(n.updateLiveEdgeStatusHandler_=function(e){return n.updateLiveEdgeStatus(e)},n.on(n.player_.liveTracker,"liveedgechange",n.updateLiveEdgeStatusHandler_)),n}ho(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=h("span",{className:"vjs-seek-to-live-text",innerHTML:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},i.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},i.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},i.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(ls),ca.prototype.controlText_="Seek to live, currently playing live",co.registerComponent("SeekToLive",ca),ua=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.handleMouseDown_=function(e){return n.handleMouseDown(e)},n.handleMouseUp_=function(e){return n.handleMouseUp(e)},n.handleKeyDown_=function(e){return n.handleKeyDown(e)},n.handleClick_=function(e){return n.handleClick(e)},n.handleMouseMove_=function(e){return n.handleMouseMove(e)},n.update_=function(e){return n.update(e)},n.bar=n.getChild(n.options_.barName),n.vertical(!!n.options_.vertical),n.enable(),n}ho(t,e);var n=t.prototype;return n.enabled=function(){return this.enablLine truncated
;return(n=e.call(this,t,i=void 0===i?{}:i)||this).menuButton_=new ls(t,i),n.menuButton_.controlText(n.controlText_),n.menuButton_.el_.setAttribute("aria-haspopup","true"),i=ls.prototype.buildCSSClass(),n.menuButton_.el_.className=n.buildCSSClass()+" "+i,n.menuButton_.removeClass("vjs-control"),n.addChild(n.menuButton_),n.update(),n.enabled_=!0,i=function(e){return n.handleClick(e)},n.handleMenuKeyUp_=function(e){return n.handleMenuKeyUp(e)},n.on(n.menuButton_,"tap",i),n.on(n.menuButton_,"click",i),n.on(n.menuButton_,"keydown",function(e){return n.handleKeyDown(e)}),n.on(n.menuButton_,"mouseenter",function(){n.addClass("vjs-hover"),n.menu.show(),$(da,"keyup",n.handleMenuKeyUp_)}),n.on("mouseleave",function(e){return n.handleMouseLeave(e)}),n.on("keydown",function(e){return n.handleSubmenuKeyDown(e)}),n}ho(t,e);var i=t.prototype;return i.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},i.createMenu=function(){var e,t=new ds(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title&&(e=h("li",{className:"vjs-menu-title",innerHTML:se(this.options_.title),tabIndex:-1}),e=new co(this.player_,{el:e}),t.addItem(e)),this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)t.addItem(this.items[i]);return t},i.createItems=function(){},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},i.buildWrapperCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+ls.prototype.buildCSSClass()+" "+e.prototype.buildCSSClass.call(this)},i.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},i.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},i.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},i.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},i.handleMouseLeave=function(e){this.removeClass("vjs-hover"),q(da,"keyup",this.handleMenuKeyUp_)},i.focus=function(){this.menuButton_.focus()},i.blur=function(){this.menuButton_.blur()},i.handleKeyDown=function(e){vo.isEventKey(e,"Esc")||vo.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),vo.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(vo.isEventKey(e,"Up")||vo.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},i.handleMenuKeyUp=function(e){(vo.isEventKey(e,"Esc")||vo.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},i.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},i.handleSubmenuKeyDown=function(e){(vo.isEventKey(e,"Esc")||vo.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),vo.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},i.pressButton=function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),qa&&u()||this.menu.focus())},i.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},i.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},i.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(co),co.registerComponent("MenuButton",Ua),cs=function(e){function t(t,i){var n=i.tracks,i=e.call(this,t,i)||this;if(i.items.length<=1&&i.hide(),!n)return uo(i);var r=G(uo(i),i.update);return n.addEventListener("removetrack",r),n.addEventListener("addtrack",r),n.addEventListener("labelchange",r),i.player_.on("ready",r),i.player_.on("dispose",function(){n.removeEventListener("removetrack",r),n.removeEventListener("addtrack",r),n.removeEventListener("labelchange",r)}),i}return ho(t,e),t}(Ua),co.registerComponent("TrackButton",cs);var hs=["Tab","Esc","Up","Down","Right","Left"],Sa=function(e){function t(t,i){return t=e.call(this,t,i)||this,t.selectable=i.selectable,t.isSelected_=i.selected||!1,t.multiSelectable=i.multiSelectable,t.selected(t.isSelected_),t.selectable?t.multiSelectable?t.el_.setAttribute("role","menuitemcheckbox"):t.el_.setAttribute("role","menuitemradio"):t.el_.setAttribute("role","menuitem"),t}ho(t,e);var n=t.prototype;return n.createEl=function(t,n,r){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",i({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),r)},n.handleKeyDown=function(t){hs.some(function(e){return vo.isEventKey(t,e)})||eLine truncated
this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},i.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},i.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},i.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0},i.seekableStart=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.start(i));return t.length?t.sort()[0]:0},i.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},i.isLive=function(){return this.isTracking()},i.atLiveEdge=function(){return!this.behindLiveEdge()},i.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},i.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},i.behindLiveEdge=function(){return this.behindLiveEdge_},i.isTracking=function(){return"number"==typeof this.trackingInterval_},i.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},i.dispose=function(){this.off(da,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(co));var ks,Cs=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=da.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var i=da.createDocumentFragment();t.childNodes.length;)i.appendChild(t.childNodes[0]);return this.innerText="",la.Element.prototype.appendChild.call(this,i),this.innerHTML}}),Ts=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?be(la.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return la.Element.prototype.setAttribute.call(this,"src",e),e}}),Ss=function(e){function t(t,i){var n=e.call(this,t,i)||this,i=t.source,r=!1;if(i&&(n.el_.currentSrc!==i.src||t.tag&&3===t.tag.initNetworkState_)?n.setSource(i):n.handleLateInit_(n.el_),t.enableSourceset&&n.setupSourcesetHandling_(),n.isScrubbing_=!1,n.el_.hasChildNodes()){for(var a=n.el_.childNodes,o=a.length,s=[];o--;){var l=a[o];"track"===l.nodeName.toLowerCase()&&(n.featuresNativeTextTracks?(n.remoteTextTrackEls().addTrackElement_(l),n.remoteTextTracks().addTrack(l.track),n.textTracks().addTrack(l.track),r||n.el_.hasAttribute("crossorigin")||!xe(l.src)||(r=!0)):s.push(l))}for(var c=0;c<s.length;c++)n.el_.removeChild(s[c])}return n.proxyNativeTracks_(),n.featuresNativeTextTracks&&r&&ba.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),n.restoreMetadataTracksInIOSNativePlayer_(),(Ba||$a||La)&&!0===t.nativeControlsForTouch&&n.setControls(!0),n.proxyWebkitFullscreen_(),n.triggerReady(),n}ho(t,e);var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){lt(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){function e(){i=[];for(var e=0;e<n.length;e++){var t=n[e];"metadata"===t.kind&&i.push({track:t,storedMode:t.mode})}}function t(){for(var e=0;e<i.length;e++){var r=i[e];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}n.removeEventListener("change",t)}var i,n=this.textTracks();e(),n.addEventListener("change",e),this.on("dispose",function(){return n.removeEventListener("change",e)}),this.on("webkitbeginfullscreen",function(){n.removeEventListener("change",e),n.removeEventListener("change",t),n.addEventListener("change",t)}),this.on("webkitendfullscreen",function(){n.removeEventListener("change",e),n.addEventListener("change",e),n.removeEventListener("change",t)})},n.overrideNative_=function(e,t){var i,n=this;t===this["featuresNative"+e+"Tracks"]&&(this[(i=e.toLowerCase())+"TracksListeners_"]&&Object.keys(this[i+"TracksListeners_"]).forEach(function(e){n.el()[i+"Tracks"].removeEventListener(e,n[i+"TracksListeners_"][e])}),this["featuresNative"+e+"Tracks"]=!t,this[i+"TracksListeners_"]=null,this.proxyNativeTracksForType_(i))},n.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},n.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},n.proxyNativeTracksForType_=function(e){var t,i,n=this,r=Ro[e],a=this.el()[r.getterName],o=this[r.getterName]();this["featuresNative"+r.capLine truncated
this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},n.handleTechRateChange_=function(){0<this.tech_.playbackRate()&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime();this.on("timeupdate",function i(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",i))})},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(ba.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(e){N(e)&&this.controls_&&(this.paused()?me(this.play()):this.pause())},n.handleTechDoubleClick_=function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(t){return t.contains(e.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(e){var t=e.target.player;t&&t!==this||(e=this.el(),!(t=da[this.fsApi_.fullscreenElement]===e)&&e.matches?t=e.matches(":"+this.fsApi_.fullscreen):!t&&e.msMatchesSelector&&(t=e.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(t))},n.handleTechFullscreenChange_=function(e,t){t&&(t.nativeIOSFullscreen&&this.toggleClass("vjs-ios-native-fs"),this.isFullscreen(t.isFullscreen))},n.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var e=this.tech_.error();this.error(e)},n.handleTechTextData_=function(){this.trigger("textdata",1<arguments.length?arguments[1]:null)},n.getCache=function(){return this.cache_},n.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},n.techCall_=function(e,t){this.ready(function(){if(e in ns)return i=this.middleware_,n=this.tech_,r=t,n[n=e](i.reduce(Ge(n),r));if(e in rs)return Ve(this.middleware_,this.tech_,e,t);var i,n,r;try{this.tech_&&this.tech_[e](t)}catch(i){throw ba(i),i}},!0)},n.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in is)return t=this.middleware_,i=this.tech_,n=e,t.reduceRight(Ge(n),i[n]());if(e in rs)return Ve(this.middleware_,this.tech_,e);var t,i,n;try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw ba("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw ba("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw ba(t),t}}},n.play=function(){var e=this,t=this.options_.Promise||la.Promise;return t?new t(function(t){e.Line truncated
if(!(r=o.parseURL(t)))throw new Error("Error trying to parse relative URL.");if(r.scheme)return i.alwaysNormalize?(r.path=o.normalizePath(r.path),o.buildURLFromParts(r)):t;if(!(t=o.parseURL(e)))throw new Error("Error trying to parse base URL.");!t.netLoc&&t.path&&"/"!==t.path[0]&&(a=n.exec(t.path),t.netLoc=a[1],t.path=a[2]),t.netLoc&&!t.path&&(t.path="/");var a,e={scheme:t.scheme,netLoc:r.netLoc,path:null,params:r.params,query:r.query,fragment:r.fragment};return r.netLoc||(e.netLoc=t.netLoc,"/"!==r.path[0]&&(r.path?(a=(a=t.path).substring(0,a.lastIndexOf("/")+1)+r.path,e.path=o.normalizePath(a)):(e.path=t.path,r.params||(e.params=t.params,r.query||(e.query=t.query))))),null===e.path&&(e.path=i.alwaysNormalize?o.normalizePath(r.path):r.path),o.buildURLFromParts(e)},parseURL:function(e){return e=i.exec(e),e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(r,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=o}),Hs="http://example.com",Ws=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){return!!this.listeners[e]&&(t=this.listeners[e].indexOf(t),this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(t,1),-1<t)},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,n=0;n<i;++n)t[n].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,o=0;o<a;++o)t[o].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}(),Vs=function(e){return la.atob?la.atob(e):Buffer.from(e,"base64").toString("binary")},Gs=function(e){function t(){var t=e.call(this)||this;return t.buffer="",t}return ho(t,e),t.prototype.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");-1<t;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(Ws),Ys=String.fromCharCode(9),Ks=function(e){function t(){var t=e.call(this)||this;return t.customParsers=[],t.tagMappers=[],t}ho(t,e);var i=t.prototype;return i.push=function(e){var t,i,n=this;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce(function(t,i){return i=i(e),i===e?t:t.concat([i])},[e]).forEach(function(e){for(var r,a,o=0;o<n.customParsers.length;o++)if(n.customParsers[o].call(n,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e))n.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))return i={type:"tag",tagType:"inf"},t[1]&&(i.duration=parseFloat(t[1])),t[2]&&(i.title=t[2]),void n.trigger("data",i);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))return i={type:"tag",tagType:"targetduration"},t[1]&&(i.duration=parseInt(t[1],10)),void n.trigger("data",i);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))return i={type:"tag",tagType:"version"},t[1]&&(i.version=parseInt(t[1],10)),void n.trigger("data",i);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return i={type:"tag",tagType:"media-sequence"},t[1]&&(i.number=parseInt(t[1],10)),void n.trigger("data",i);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return i={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(i.number=parseInt(t[1],10)),void n.trigger("data",i);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))return i={type:"tag",tagType:"playlist-type"},t[1]&&(i.playlistType=t[1]),void n.trigger("data",i);if(t=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(e))return i=xa(yt(t[1]),{type:"tag",tagType:"byterange"}),void n.trigger("data",i);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))return i={type:"tag",tagType:"allow-cache"},t[1]&&(i.allowed=!/NO/.test(t[1])),void n.trigger("data",i);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e))return i={type:"tag",tagType:"map"},t[1]&&((r=_t(t[1])).URI&&(i.uri=r.URI),r.BYTERANGE&&(i.byterange=yt(r.BYTERANGE))),void n.trigger("data",i);if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e))return i={type:"tag",tagType:"stream-inf"},t[1]&&(i.attributes=_t(t[1]),i.attributes.RESOLUTION&&(a={},(r=i.attributes.RESOLUTION.split("x"))[0]&&(a.width=parseInt(r[0],10)),r[1]&&(a.height=parseInt(r[1],10)),i.attributes.RESOLUTION=a),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["PROGRAM-ID"]&&(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))),void n.trigger("data",i);if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e))return i={type:"tag",tagType:"media"},t[1]&&(i.attributes=_t(t[1])),void n.trigger("data",i);if(t=/^#EXT-X-ENDLIST/.exec(e))n.trigger("data",{type:"tag",tagType:"endlist"});else{if(!(t=/^#EXT-X-DISCONTINUITY/.exec(e)))return(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e))?(i={type:"tag",tagType:"program-dateLine truncated
;switch(i.nodeType){case sl:(r=i.cloneNode(!1)).ownerDocument=t;case gl:break;case ll:n=!0}if(r=r||i.cloneNode(!1),r.ownerDocument=t,r.parentNode=null,n)for(var a=i.firstChild;a;)r.appendChild(e(t,a,n)),a=a.nextSibling;return r}(this,e,t)},getElementById:function(e){var t=null;return Yt(this.documentElement,function(i){if(i.nodeType==sl&&i.getAttribute("id")==e)return t=i,!0}),t},getElementsByClassName:function(e){var t=new RegExp("(^|\\s)"+e+"(\\s|$)");return new Ft(this,function(e){var i=[];return Yt(e.documentElement,function(n){n!==e&&n.nodeType==sl&&t.test(n.getAttribute("class"))&&i.push(n)}),i})},createElement:function(e){var t=new ei;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new zt,(t.attributes=new Ut)._ownerElement=t},createDocumentFragment:function(){var e=new ui;return e.ownerDocument=this,e.childNodes=new zt,e},createTextNode:function(e){var t=new ni;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ri;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new ai;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var i=new di;return i.ownerDocument=this,i.tagName=i.target=e,i.nodeValue=i.data=t,i},createAttribute:function(e){var t=new ti;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new ci;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var i=new ei,n=t.split(":"),r=i.attributes=new Ut;return i.childNodes=new zt,i.ownerDocument=this,i.nodeName=t,i.tagName=t,i.namespaceURI=e,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=t,r._ownerElement=i},createAttributeNS:function(e,t){var i=new ti,n=t.split(":");return i.ownerDocument=this,i.nodeName=t,i.name=t,i.namespaceURI=e,i.specified=!0,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=t,i}},Rt(Kt,Vt),Kt.prototype.getElementsByTagName=(ei.prototype={nodeType:sl,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){return(e=this.getAttributeNode(e))&&e.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){e=this.ownerDocument.createAttribute(e),e.value=e.nodeValue=""+t,this.setAttributeNode(e)},removeAttribute:function(e){(e=this.getAttributeNode(e))&&this.removeAttributeNode(e)},appendChild:function(e){return e.nodeType===gl?this.insertBefore(e,null):function(e,t){var i=t.parentNode;i&&(n=e.lastChild,i.removeChild(t),n=e.lastChild);var n=e.lastChild;return t.parentNode=e,t.previousSibling=n,t.nextSibling=null,n?n.nextSibling=t:e.firstChild=t,e.lastChild=t,Qt(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){(t=this.getAttributeNodeNS(e,t))&&this.removeAttributeNode(t)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){return(t=this.getAttributeNodeNS(e,t))&&t.value||""},setAttributeNS:function(e,t,i){t=this.ownerDocument.createAttributeNS(e,t),t.value=t.nodeValue=""+i,this.setAttributeNode(t)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new Ft(this,function(t){var i=[];return Yt(t,function(n){n===t||n.nodeType!=sl||"*"!==e&&n.tagName!=e||i.push(n)}),i})},getElementsByTagNameNS:function(e,t){return new Ft(this,function(i){var n=[];return Yt(i,function(r){r===i||r.nodeType!==sl||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||n.push(r)}),n})}}).getElementsByTagName,Kt.prototype.getElementsByTagNameNS=ei.prototype.getElementsByTagNameNS,Rt(ei,Vt),ti.prototype.nodeType=ll,Rt(ti,Vt),ii.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(vl[3])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,i){var n=this.data.substring(0,e),t=this.data.substring(e+t);this.nodeValue=this.data=i=n+i+t,this.length=i.length}},Rt(ii,Vt),ni.prototype={nodeName:"#text",nodeType:cl,splitText:function(e){var t=(i=this.data).substring(e),i=i.substring(0,e);return this.data=this.nodeValue=i,this.length=i.length,t=this.ownerDocument.createTextNode(t),this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling),t}},Rt(ni,ii),ri.prototype={nodeName:"#comment",nodeType:pl},Rt(ri,ii),ai.prototype={nodeName:"#cdata-section",nodeType:ul},Rt(ai,ii),oi.prototype.nodeType=ml,Rt(oi,Vt),si.prototype.nodeType=12,Rt(si,Vt),li.prototype.nodeType=6,Rt(li,Vt),ci.prototype.nodeType=dl,Rt(ci,Vt),ui.prototype.nodeName="#document-fragment",ui.prototype.nodeType=gl,Rt(ui,Vt),di.prLine truncated
"number"!=typeof t||t<=0?t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"):this.createMUPTimeout_(t)},i.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=la.setTimeout(function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)},i.refreshXml_=function(){var e=this;this.requestMaster_(function(t,i){var n,r;i&&(e.media_&&(e.media_=e.masterPlaylistLoader_.master.playlists[e.media_.id]),e.masterPlaylistLoader_.sidxMapping_=(i=e.masterPlaylistLoader_.master,n=e.masterPlaylistLoader_.sidxMapping_,r=ar(i.playlists,n),Rn(i,function(e,t,i,a){e.playlists&&e.playlists.length&&(e=e.playlists,r=tc(r,ar(e,n)))}),r),e.addSidxSegments_(e.media(),e.state,function(t){e.refreshMedia_(e.media().id)}))})},i.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var i=this.masterPlaylistLoader_.master.playlists,n=!this.media_||this.media_!==i[e];n?this.media_=i[e]:this.trigger("playlistunchanged"),this.mediaUpdateTimeout||function e(){t.media().endList||(t.mediaUpdateTimeout=la.setTimeout(function(){t.trigger("mediaupdatetimeout"),e()},Hn(t.media(),Boolean(n))))}(),this.trigger("loadedplaylist")},t}(Ao),nc={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},Po=function(e){return function(){var t=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(i){var t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}}(e),i=or(new Worker(t));i.objURL=t;var n=i.terminate;return i.on=i.addEventListener,i.off=i.removeEventListener,i.terminate=function(){return URL.revokeObjectURL(t),n.call(this)},i}},Ws=function(e){return"var browserWorkerPolyFill = "+or.toString()+";\nbrowserWorkerPolyFill(self);\n"+e},Wa=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},rc=Po(Ws(Wa(function(){function e(e,t){var i={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return i.dataOffset=t,i.compositionTimeOffset=e.pts-e.dts,i.duration=e.duration,i.size=4*e.length,i.size+=e.byteLength,e.keyFrame&&(i.flags.dependsOn=2,i.flags.isNonSyncSample=0),i}function t(e){for(var t=[];e--;)t.push(0);return t}function i(){var e,i;return he||(e={96e3:[we,[227,64],t(154),[56]],88200:[we,[231],t(170),[56]],64e3:[we,[248,192],t(240),[56]],48e3:[we,[255,192],t(268),[55,148,128],t(54),[112]],44100:[we,[255,192],t(268),[55,163,128],t(84),[112]],32e3:[we,[255,192],t(268),[55,234],t(226),[112]],24e3:[we,[255,192],t(268),[55,255,128],t(268),[111,112],t(126),[224]],16e3:[we,[255,192],t(268),[55,255,128],t(268),[111,255],t(269),[223,108],t(195),[1,192]],12e3:[xe,t(268),[3,127,248],t(268),[6,255,240],t(268),[13,255,224],t(268),[27,253,128],t(259),[56]],11025:[xe,t(268),[3,127,248],t(268),[6,255,240],t(268),[13,255,224],t(268),[27,255,192],t(268),[55,175,128],t(108),[112]],8e3:[xe,t(268),[3,121,16],t(47),[7]]},i=e,he=Object.keys(i).reduce(function(e,t){return e[t]=new Uint8Array(i[t].reduce(function(e,t){return e.concat(t)},[])),e},{})),he}function n(e){return 32<=e&&e<=127||160<=e&&e<=255}function r(e){this.windowNum=e,this.reset()}function a(e){this.serviceNum=e,this.text="",this.currentWindow=new r(-1),this.windows=[]}function o(e){return null===e?"":(e=Ve[e]||e,String.fromCharCode(e))}function s(){for(var e=[],t=15;t--;)e.push("");return e}function l(e,t){var i=1;for(t<e&&(i=-1);4294967296<Math.abs(t-e);)e+=8589934592*i;return e}function c(e,t,i){for(var n="",r=t;r<i;r++)n+="%"+("00"+e[r].toString(16)).slice(-2);return n}function u(e,t,i){return decodeURIComponent(c(e,t,i))}function d(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]}function h(e,t){var i=0<=(i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9])?i:0;return(16&e[t+5])>>4?i+20:i+10}function p(e,t){return e.length-t<10||e[t]!=="I".charCodeAt(0)||e[t+1]!=="D".charCodeAt(0)||e[t+2]!=="3".charCodeAt(0)?t:p(e,t+=h(e,t))}function f(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]}function m(e,t){var i;if(e.length===t.length){for(i=0;i<e.length;i++)if(e[i]!==t[i])return;return 1}}function g(e,t,i,n,r,a){return{start:{dts:e,pts:e+(i-t)},end:{dts:e+(n-t),pts:e+(r-i)},prependedContentDuration:a,baseMediaDecodeTime:e}}function v(e,t){var i=At(e,["moof","traf"]),e=At(e,["mdat"]),n={},r=[];return e.forEach(function(e,t){t=i[t],r.push({mdat:e,traf:t})}),r.forEach(function(e){var i,r,a,o,s,l=e.mdat,c=e.traf,u=At(c,["tfhd"]),d=Ot(u[0]),e=d.trackId,u=At(c,["tfdt"]),u=0<u.length?Dt(u[0]).baseMediaDecodeTime:0,c=At(c,["trun"]);t===e&&0<c.length&&(c=c,i=u,r=(d=d).defaultSampleDuration||0,a=d.defaultSampleSize||0,o=d.trackId,s=[],c.forEach(function(e){e=Lt(e).samples,e.forLine truncated
var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,n=i[++e],r.row=15&n,n=i[++e],r.column=63&n,e},We.prototype.reset=function(e,t){var i=this.getPts(e);return this.flushDisplayed(i,t),this.initService(t.serviceNum,e)};var Ve={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Ge=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Ye=function e(t,i){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=i||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,i,n,r,a=32639&e.ccData;a!==this.lastControlCode_?(4096==(61440&a)?this.lastControlCode_=a:a!==this.PADDING_&&(this.lastControlCode_=null),t=a>>>8,i=255&a,a===this.PADDING_||(a===this.RESUME_CAPTION_LOADING_?this.mode_="popOn":a===this.END_OF_CAPTION_?(this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),r=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=r,this.startPts_=e.pts):a===this.ROLL_UP_2_ROWS_?(this.rollUpRows_=2,this.setRollUp(e.pts)):a===this.ROLL_UP_3_ROWS_?(this.rollUpRows_=3,this.setRollUp(e.pts)):a===this.ROLL_UP_4_ROWS_?(this.rollUpRows_=4,this.setRollUp(e.pts)):a===this.CARRIAGE_RETURN_?(this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts):a===this.BACKSPACE_?"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1):a===this.ERASE_DISPLAYED_MEMORY_?(this.flushDisplayed(e.pts),this.displayed_=s()):a===this.ERASE_NON_DISPLAYED_MEMORY_?this.nonDisplayed_=s():a===this.RESUME_DIRECT_CAPTIONING_?("paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=s()),this.mode_="paintOn",this.startPts_=e.pts):this.isSpecialCharacter(t,i)?(n=o((t=(3&t)<<8)|i),this[this.mode_](e.pts,n),this.column_++):this.isExtCharacter(t,i)?("popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),n=o((t=(3&t)<<8)|i),this[this.mode_](e.pts,n),this.column_++):this.isMidRowCode(t,i)?(this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&i)&&this.addFormatting(e.pts,["i"]),1==(1&i)&&this.addFormatting(e.pts,["u"])):this.isOffsetControlCode(t,i)?this.column_+=3&i:this.isPAC(t,i)?(r=Ge.indexOf(7968&a),"rollUp"===this.mode_&&(r-this.rollUpRows_+1<0&&(r=this.rollUpRows_-1),this.setRollUp(e.pts,r)),r!==this.row_&&(this.clearFormatting(e.pts),this.row_=r),1&i&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&a)&&(this.column_=4*((14&a)>>1)),this.isColorPAC(i)&&14==(14&i)&&this.addFormatting(e.pts,["i"])):this.isNormalChar(t)&&(0===i&&(i=null),n=o(t),n+=o(i),this[this.mode_](e.pts,n),this.column_+=n.length))):this.lastControlCode_=null}};Ye.prototype=new ue,Ye.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e,t){try{return e.trim()}catch(e){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}},this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},Ye.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=s(),this.nonDisplayed_=s(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Ye.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Ye.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&48<=t&&t<=63},Ye.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===thiLine truncated
;t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new gt(t,e),r.videoSegmentStream.on("log",n.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",function(t){i&&!e.keepOriginalTimestamps&&(i.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-n.baseMediaDecodeTime))}),r.videoSegmentStream.on("processedGopsInfo",n.trigger.bind(n,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",function(e){i&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),r.videoSegmentStream.on("timingInfo",n.trigger.bind(n,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),i&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Ct(i,e),r.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),n.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t})}}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",function(e){e.dispatchType=r.metadataStream.dispatchType,n.trigger("id3Frame",e)}),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(n){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=n),i&&(i.timelineStartInfo.dts=void 0,i.timelineStartInfo.pts=void 0,Re(i),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,Re(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){i&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var i=this.transmuxPipeline_;e.remux=t,i&&i.coalesceStream&&i.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(i){i.stream=e,t.trigger("log",i)}},this.push=function(e){if(r){var t=kt(e);if(t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),this.transmuxPipeline_)for(var i=Object.keys(this.transmuxPipeline_),n=0;n<i.length;n++){var a=i[n];"headOfPipeline"!==a&&this.transmuxPipeline_[a].on&&this.transmuxPipeline_[a].on("log",this.getLogTrigger_(a))}r=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new ue;var Tt={Transmuxer:vt,VideoSegmentStream:gt,AudioSegmentStream:Ct,AUDIO_PROPERTIES:bt,VIDEO_PROPERTIES:wt,generateSegmentTimingInfo:g},C=function(e){return e>>>0},St=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},Et=C,At=function e(t,i){var n,r,a,o=[];if(!i.length)return null;for(n=0;n<t.byteLength;)r=Et(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]),a=St(t.subarray(n+4,n+8)),r=1<r?n+r:t.byteLength,a===i[0]&&(1===i.length?o.push(t.subarray(n+8,r)):(a=e(t.subarray(n+8,r),i.slice(1))).length&&(o=o.concat(a))),n=r;return o},It=C,Dt=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),baseMediaDecodeTime:It(e[4]<<24|e[5]<<16|e[6]<<8|e[7])};return 1===t.version&&(t.baseMediaDecodeTime*=Math.pow(2,32),t.baseMediaDecodeTime+=It(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),t},Mt=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},Lt=function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&i.flags[2],a=4&i.flags[2],o=1&i.flags[1],s=2&i.flags[1],l=4&i.flags[1],c=8&i.flags[1],u=n.getUint32(4),d=8;for(r&&(i.dataOffset=n.getInt32(d),d+=4),a&&u&&(t={flags:Mt(e.subarray(d,d+4))},d+=4,o&&(t.duration=n.getUint32(d),d+=4),s&&(t.size=n.getUint32(d),d+=4),c&&(1===i.version?t.compositionTimeOffset=n.getInt32(d):t.compositionTimeOffset=n.getUint32(d),d+=4),i.samples.push(t),u--);u--;)t={},o&&(t.duration=n.getUint32(d),d+=4),s&&(t.size=n.getUint32(d),d+=4),l&&(t.flags=Mt(e.subarray(d,d+4)),d+=Line truncated
if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var i=Object.keys(e).sort(),n=Object.keys(t).sort();if(i.length!==n.length)return!1;for(var r=0;r<i.length;r++){var a=i[r];if(a!==n[r])return!1;if(e[a]!==t[a])return!1}return!0}(this.currentMediaInfo_,t=t||{})||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},i.handleTimingInfo_=function(e,t,i,n){var r;this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||((r=this.pendingSegment_)[e=Rr(t)]=r[e]||{},r[e][i]=n,this.logger_("timinginfo: "+t+" - "+i+" - "+n),this.hasEnoughInfoToAppend_()&&this.processCallQueue_())},i.handleCaptions_=function(e,t){var i,n,r=this;this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||(0!==t.length?this.pendingSegment_.hasAppendedData_?(i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),n={},t.forEach(function(e){n[e.stream]=n[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=n[e.stream];t.startTime=Math.min(t.startTime,e.startTime+i),t.endTime=Math.max(t.endTime,e.endTime+i),t.captions.push(e)}),Object.keys(n).forEach(function(e){var t,a,o,s,l,c,u,d,h,p,f=n[e],m=f.startTime,g=f.endTime,v=f.captions,y=r.inbandTextTracks_;r.logger_("adding cues from "+m+" -> "+g+" for "+e),t=y,a=r.vhs_.tech_,t[o=e]||(a.trigger({type:"usage",name:"vhs-608"}),a.trigger({type:"usage",name:"hls-608"}),/^cc708_/.test(s=o)&&(s="SERVICE"+o.split("_")[1]),(u=a.textTracks().getTrackById(s))?t[o]=u:(c=l=o,f=!1,(u=(a.options_.vhs&&a.options_.vhs.captionServices||{})[s])&&(l=u.label,c=u.language,f=u.default),t[o]=a.addRemoteTextTrack({kind:"captions",id:s,default:f,label:l,language:c},!1).track)),Or(m,g,y[e]),h=(v={captionArray:v,inbandTextTracks:y,timestampOffset:i}).inbandTextTracks,y=v.captionArray,p=v.timestampOffset,y&&(d=la.WebKitDataCue||la.VTTCue,y.forEach(function(e){var t=e.stream;h[t].addCue(new d(e.startTime+p,e.endTime+p,e.text))}))}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})):this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t)):this.logger_("SegmentLoader received no captions from a caption event"))},i.handleId3_=function(e,t,i){var n,r,a,o;this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||(this.pendingSegment_.hasAppendedData_?(n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r=this.inbandTextTracks_,a=i,o=this.vhs_.tech_,r.metadataTrack_||(r.metadataTrack_=o.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,r.metadataTrack_.inBandMetadataTrackDispatchType=a),Lr({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:n,videoDuration:this.duration_()})):this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,i)))},i.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach(function(e){return e()}),this.metadataQueue_.caption.forEach(function(e){return e()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},i.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach(function(e){return e()})},i.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach(function(e){return e()})},i.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!(!e||this.getCurrentMediaInfo_()&&jr({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},i.getCurrentMediaInfo_=function(e){return(e=void 0===e?this.pendingSegment_:e)&&e.trackInfo||this.currentMediaInfo_},i.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},i.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var i=t.hasAudio,n=t.hasVideo,t=t.isMuxed;return!(n&&!e.videoTimingInfo||i&&!this.audioDisabled_&&!t&&!e.audioTimingInfo||jr({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},i.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var i,n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=Line truncated
for(var n=[],r=0,a=0;a<t.length;a++)t[i].startTime===t[a].startTime&&t[i].endTime===t[a].endTime&&t[i].text===t[a].text&&1<++r&&n.push(t[a]);n.length&&n.forEach(function(t){return e.removeCue(t)})}}(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},i.handleData_=function(){},i.updateTimingInfoEnd_=function(){},i.parseVTTCues_=function(e){var t=!1;"function"==typeof la.TextDecoder?i=new la.TextDecoder("utf8"):(i=la.WebVTT.StringDecoder(),t=!0);var i=new la.WebVTT.Parser(la,la.vttjs,i);e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=e.cues.push.bind(e.cues),i.ontimestampmap=function(t){e.timestampmap=t},i.onparsingerror=function(e){mt.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map&&(n=e.segment.map.bytes,t&&(n=Yr(n)),i.parse(n));var n=e.bytes;t&&(n=Yr(n)),i.parse(n),i.flush()},i.updateTimeMapping_=function(e,t,i){var n,r,a=e.segment;t&&(e.cues.length?(r=e.timestampmap,n=r.MPEGTS/9e4-r.LOCAL+t.mapping,e.cues.forEach(function(e){e.startTime+=n,e.endTime+=n}),i.syncInfo||(r=e.cues[0].startTime,t=e.cues[e.cues.length-1].startTime,i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(r,t-a.duration)})):a.empty=!0)},t}(pc),Ac=[{name:"VOD",run:function(e,t,i,n,r){return i===1/0?null:{time:0,segmentIndex:0,partIndex:null}}},{name:"ProgramDateTime",run:function(e,t,i,n,r){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var a=null,o=null,s=_n(t);r=r||0;for(var l=0;l<s.length;l++){var c=s[t.endList||0===r?l:s.length-(l+1)],u=c.segment,d=e.timelineToDatetimeMappings[u.timeline];if(d&&u.dateTimeObject){var h=u.dateTimeObject.getTime()/1e3+d;if(u.parts&&"number"==typeof c.partIndex)for(var p=0;p<c.partIndex;p++)h+=u.parts[p].duration;if(d=Math.abs(r-h),null!==o&&(0===d||o<d))break;o=d,a={time:h,segmentIndex:c.segmentIndex,partIndex:c.partIndex}}}return a}},{name:"Segment",run:function(e,t,i,n,r){var a=null,o=null;r=r||0;for(var s=_n(t),l=0;l<s.length;l++){var c=s[t.endList||0===r?l:s.length-(l+1)],u=c.segment,d=c.part&&c.part.start||u&&u.start;if(u.timeline===n&&void 0!==d){if(u=Math.abs(r-d),null!==o&&o<u)break;(!a||null===o||u<=o)&&(o=u,a={time:d,segmentIndex:c.segmentIndex,partIndex:c.partIndex})}}return a}},{name:"Discontinuity",run:function(e,t,i,n,r){var a=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var o=null,s=0;s<t.discontinuityStarts.length;s++){var l=t.discontinuityStarts[s],c=t.discontinuitySequence+s+1,u=e.discontinuities[c];if(u){if(c=Math.abs(r-u.time),null!==o&&o<c)break;(!a||null===o||c<=o)&&(o=c,a={time:u.time,segmentIndex:l,partIndex:null})}}return a}},{name:"Playlist",run:function(e,t,i,n,r){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}}],Ic=function(e){function t(t){var i=e.call(this)||this;return i.timelines=[],i.discontinuities=[],i.timelineToDatetimeMappings={},i.logger_=hn("SyncController"),i}ho(t,e);var i=t.prototype;return i.getSyncPoint=function(e,t,i,n){return i=this.runStrategies_(e,t,i,n),i.length?this.selectSyncPoint_(i,{key:"time",value:n}):null},i.getExpiredTime=function(e,t){return e&&e.segments?(t=this.runStrategies_(e,t,e.discontinuitySequence,0),t.length?(t=this.selectSyncPoint_(t,{key:"segmentIndex",value:0}),0<t.segmentIndex&&(t.time*=-1),Math.abs(t.time+Tn({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:t.segmentIndex,endIndex:0}))):null):null},i.runStrategies_=function(e,t,i,n){for(var r=[],a=0;a<Ac.length;a++){var o=Ac[a],s=o.run(this,e,t,i,n);s&&(s.strategy=o.name,r.push({strategy:o.name,syncPoint:s}))}return r},i.selectSyncPoint_=function(e,t){for(var i=e[0].syncPoint,n=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy,a=1;a<e.length;a++){var o=Math.abs(e[a].syncPoint[t.key]-t.value);o<n&&(n=o,i=e[a].syncPoint,r=e[a].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+r+"]: [time:"+i.time+", segmentIndex:"+i.segmentIndex+("number"==typeof i.partIndex?",partIndex:"+i.partIndex:"")+"]"),i},i.saveExpiredSegmentInfo=function(e,t){for(var i=t.mediaSequence-e.mediaSequence-1;0<=i;i--){var n=e.segments[i];if(n&&void 0!==n.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:n.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},i.setDateTimeMappingForStart=function(e){var t;this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject&&(e=(t=e.segments[0]).dateTimeObject.getTime()/1e3,this.timelineToDatetimeMappings[t.timeline]=-e)},i.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,i=e.shouldSaveTimelineMapping,n=this.calculateSegmentTimeMapping_(t,t.timingInfo,i),e=t.segment;n&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:e.start})),t=e.dateTimeObject,e.discontinuity&&i&&t&&(this.timelineToDatetimeMappLine truncated
var e,t=this.mainSegmentLoader_.ended_;(t=this.mediaTypes_.AUDIO.activePlaylistLoader?((e=this.mainSegmentLoader_.getCurrentMediaInfo_())&&!e.hasVideo||t)&&this.audioSegmentLoader_.ended_:t)&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},i.stuckAtPlaylistEnd_=function(e){if(!this.seekable().length)return!1;var t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;var i=Hl.Playlist.playlistEnd(e,t),e=this.tech_.currentTime(),t=this.tech_.buffered();return t.length?(t=t.end(t.length-1))-e<=.1&&i-t<=.1:i-e<=.1},i.blacklistCurrentPlaylist=function(e,t){var i=(e=void 0===e?{}:e).playlist||this.masterPlaylistLoader_.media();if(t=t||e.blacklistDuration||this.blacklistDuration,!i)return this.error=e,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));i.playlistErrors_++;var n,r=this.masterPlaylistLoader_.master.playlists,a=r.filter(In),o=1===a.length&&a[0]===i;return 1===r.length&&t!==1/0?(mt.log.warn("Problem encountered with playlist "+i.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(o)):(o&&(n=!1,r.forEach(function(e){var t;e===i||void 0!==(t=e.excludeUntil)&&t!==1/0&&(n=!0,delete e.excludeUntil)}),n&&(mt.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))),a=i.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*t,i.excludeUntil=a,e.reason&&(i.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"}),(r=this.selectPlaylist())?(t=e.internal?this.logger_:mt.log.warn,a=e.message?" "+e.message:"",t((e.internal?"Internal problem":"Problem")+" encountered with playlist "+i.id+"."+a+" Switching to playlist "+r.id+"."),r.attributes.AUDIO!==i.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),r.attributes.SUBTITLES!==i.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]),a=r.targetDuration/2*1e3||5e3,a="number"==typeof r.lastRequest&&Date.now()-r.lastRequest<=a,this.switchMedia_(r,"exclude",o||a)):(this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error")))},i.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},i.delegateLoaders_=function(e,t){var i=this,n=[],r="all"===e;!r&&"main"!==e||n.push(this.masterPlaylistLoader_);var a=[];!r&&"audio"!==e||a.push("AUDIO"),!r&&"subtitle"!==e||(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach(function(e){(e=i.mediaTypes_[e]&&i.mediaTypes_[e].activePlaylistLoader)&&n.push(e)}),["main","audio","subtitle"].forEach(function(t){var r=i[t+"SegmentLoader_"];!r||e!==t&&"all"!==e||n.push(r)}),n.forEach(function(e){return t.forEach(function(t){"function"==typeof e[t]&&e[t]()})})},i.setCurrentTime=function(e){var t=fn(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},i.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:Hl.Playlist.duration(e):1/0:0},i.seekable=function(){return this.seekable_},i.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var i=this.syncController_.getExpiredTime(t,this.duration());if(null!==i){var n,r,a=this.masterPlaylistLoader_.master,o=Hl.Playlist.seekable(t,i,Hl.Playlist.liveEdgeDelay(a,t));if(0!==o.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(i=this.syncController_.getExpiredTime(t,this.duration())))return;if(0===(e=Hl.Playlist.seekable(t,i,Hl.Playlist.liveEdgeDelay(a,t))).length)return}this.seekable_&&this.seekable_.length&&(n=this.seekable_.end(0),r=this.seekable_.start(0)),!e||e.start(0)>o.end(0)||o.start(0)>e.end(0)?this.seekable_=o:this.seekable_=mt.createTimeRanges([[(e.start(0)>o.start(0)?e:o).start(0),(e.end(0)<o.end(0)?e:o).end(0)]]),this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===n&&this.seekable_.start(0)===r||(this.logger_("seekable updated ["+gn(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},i.updateDuration=function(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuratiLine truncated
this.tech_.el()&&(this.mediaSourceUrl_=la.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_)))},i.setupEme_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,i=na({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});11!==mt.browser.IE_VERSION&&i?(this.logger_("waiting for EME key session creation"),ia({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.master.playlists}).then(function(){e.logger_("created EME key session"),e.masterPlaylistController_.sourceUpdater_.initializedEme()}).catch(function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media keys for EME",code:3})})):this.masterPlaylistController_.sourceUpdater_.initializedEme()},i.setupQualityLevels_=function(){var e=this,t=mt.players[this.tech_.options_.playerId];t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){var t,i;t=e.qualityLevels_,(i=e).representations().forEach(function(e){t.addQualityLevel(e)}),ta(t,i.playlists)}),this.playlists.on("mediachange",function(){ta(e.qualityLevels_,e.playlists)}))},t.version=function(){return{"@videojs/http-streaming":"2.9.2","mux.js":"5.12.2","mpd-parser":"0.17.0","m3u8-parser":"4.7.0","aes-decrypter":"3.1.2"}},i.version=function(){return this.constructor.version()},i.canChangeType=function(){return Tc.canChangeType()},i.play=function(){this.masterPlaylistController_.play()},i.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},i.duration=function(){return this.masterPlaylistController_.duration()},i.seekable=function(){return this.masterPlaylistController_.seekable()},i.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&la.URL.revokeObjectURL&&(la.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),e.prototype.dispose.call(this)},i.convertToProgramTime=function(e,t){return er({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},i.seekToProgramTime=function(e,t,i,n){return void 0===i&&(i=!0),void 0===n&&(n=2),tr({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:n,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},t}(mt.getComponent("Component")),Hc={name:"videojs-http-streaming",VERSION:"2.9.2",canHandleSource:function(e,t){return t=mt.mergeOptions(mt.options,t=void 0===t?{}:t),Hc.canPlayType(e.type,t)},handleSource:function(e,t,i){return i=mt.mergeOptions(mt.options,i=void 0===i?{}:i),t.vhs=new qc(e,t,i),mt.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return mt.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=Vn(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){return t=mt.mergeOptions(mt.options,t=void 0===t?{}:t).vhs.overrideNative,t=void 0===t?!mt.browser.IS_ANY_SAFARI:t,e=At(e),!e||Uc.supportsTypeNatively(e)&&!t?"":"maybe"}};return St("avc1.4d400d,mp4a.40.2")&&mt.getTech("Html5").registerSourceHandler(Hc,0),mt.VhsHandler=qc,Object.defineProperty(mt,"HlsHandler",{get:function(){return mt.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),qc},configurable:!0}),mt.VhsSourceHandler=Hc,Object.defineProperty(mt,"HlsSourceHandler",{get:function(){return mt.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),Hc},configurable:!0}),mt.Vhs=Uc,Object.defineProperty(mt,"Hls",{get:function(){return mt.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),Uc},configurable:!0}),mt.use||(mt.registerComponent("Hls",Uc),mt.registerComponent("Vhs",Uc)),mt.options.vhs=mt.options.vhs||{},mt.options.hls=mt.options.hls||{},mt.registerPlugin?mt.registerPlugin("reloadSourceOnError",Wa):mt.plugin("reloadSourceOnError",Wa),mt}),function(){!function(e){var t=e&&e.videojs;t&&(t.CDN_VERSION="7.14.3")}(window)}(),define("text!modules/console/expdesktop/template/scrapbooking.html",[],function(){return'<div class="sd-scrapbooking" >\r\n <div class="sd-scrapbooking">\r\n <div class="layui-form-item layui-form-text">\r\n <textarea classs="sd-textarea-scrapbooking" name="sd-textarea-scrapbooking" placeholder="请输入要复制内容" class="layui-textarea"></textarea>\r\n </div>\r\n <p style="font-size: 12px;color: #333">\r\n <span style="font-weight: bolder">复制外部内容到实验环境:</span> 粘贴Line truncated
step_id:t}).done(function(t){t.instances.forEach(function(e){e.ready=!1}),n.data.shanhe_instance_info=t,n.data.vm_status=e.vm_status.creating,n.imgClick=!1,i(r).attr({src:"/static/public/img/console_bg_img.png"})}).fail(function(t){var a=JSON.parse(t.responseText);if(n.imgClick=!1,i(r).attr({src:"/static/public/img/console_bg_img.png"}),n.container.find('button[name="create"]').removeClass("disabled"),a.code)switch(a.code){case 50003:case 50004:case 50005:break;default:n.data.vm_status=e.vm_status.closed}n.data.vm_status=e.vm_status.closed})}),n.container.delegate(".console_bg_img","mouseover",function(){n.imgClick||i(this).find("img").attr({src:"/static/public/img/console_bg_img_hover.png"})}),n.container.delegate(".console_bg_img","mouseout",function(){n.imgClick||i(this).find("img").attr({src:"/static/public/img/console_bg_img.png"})}),n.container.delegate('button[name="help"]:not(.disabled)',"click",function(){new d(n.language,n.appOptions,n.service,t,function(e){n.data.current_assister=e.op_user,n.data.current_assis_type=e.op_type,n.get_assist_list(t)}).show()}),n.container.delegate('button[name="unhelp"]:not(.disabled)',"click",function(){n.dataControl.message.confirm(n.i18n.cancel,n.i18n.assist,function(e){n.service.cancel_assist({token:n.data.assist_process_token}).done(function(){n.data.is_assist=!1}),layer.close(e)})}),n.container.delegate('button[name="forced_close"]:not(.disabled)',"click",function(){i(this).blur(),layer.confirm("是否强制关闭实验环境?",{title:n.i18n.close},function(i){n.vm_is_refresh(),layer.close(i),n.service.self_clean_resource({mode:"study",step_id:t}).done(function(){n.data.vm_status=e.vm_status.closing}).fail(function(t){e.msg_error(t.responseJSON.message)})},function(e){layer.close(e)})}),n.container.delegate('button[name="close"]:not(.disabled)',"click",function(){i(this).blur(),layer.confirm("实验环境将被删除,确定关闭?",{title:n.i18n.close},function(i){n.vm_is_refresh(),layer.close(i),n.service.close_vm(t).done(function(t){n.data.vm_status=e.vm_status.closed,n.data.shanhe_instance_close_vm_info=t}).fail(function(e){})},function(e){layer.close(e)})}),n.container.delegate('button[name="lookrecover"]:not(.disabled)',"click",function(){var t=!0;n.data.vm_status==e.vm_status.running&&(t=!1),new h(n.language,n.appOptions,n.service,t,n.data.getGroup_res_data,function(t){if("delete"==t)return n.data.lab_save_count=n.data.lab_save_count-1,0!=n.data.lab_save_count&&n.data.lab_save_count||(n.field_lookrecover.hide=!0),!1;var i={step_id:n.data.getGroup_res_data.rel_c_s_g_id,lab_save_id:t.id};n.container.find('button[name="create"]').addClass("disabled"),n.service.recover_lab(i).done(function(t){204==t.op_code?layer.confirm("ip已经被占用是否切换其他ip?",{btn:["确定","取消"]},function(t){layer.close(t),i.retry_keep_ip=!1,n.service.recover_lab(i).done(function(t){n.data.vm_status=e.vm_status.creating}).fail(function(t){n.data.vm_status=e.vm_status.closed,n.container.find('button[name="create"]').removeClass("disabled")})},function(){n.data.vm_status=e.vm_status.closed,n.container.find('button[name="create"]').removeClass("disabled")}):n.data.vm_status=e.vm_status.creating}).fail(function(t){n.data.vm_status=e.vm_status.closed,n.container.find('button[name="create"]').removeClass("disabled")})}).show()}),n.container.delegate('button[name="saveexp"]:not(.disabled)',"click",function(){new p(n.language,n.appOptions,n.service,n.vstep_id,function(e){n.data.lab_save_count=n.data.lab_save_count+1,n.field_lookrecover.hide=!1}).show()}),n.container.delegate('button[name="delay"]:not(.disabled)',"click",function(){if(n.data.timeout.allSecond>1800)var t=e.timeDivision(1800),i=e.timeDivision(n.data.timeout.allSecond),r="实验剩余时间 "+i+",剩余时间小于 "+t+"才可以延时",a=layer.alert(r,{title:"实验延时",closeBtn:1,icon:6},function(){layer.close(a)});else n.overtime()}),n.container.delegate('a[name="textcopy"]:not(.disabled)',"click",function(){var t=e.selectText();if(!t)return void e.msg_warning(n.i18n.noselectText);var i=n.data.vms;for(var r in i)i[r].guac_client&&i[r].guac_client.setClipboard(t);layer.tips("已复制",this,{tips:1,time:1e3})}),n.container.delegate(".document-copy","click",function(){for(var t=[],r=i(this).parent().find("code"),a=0;a<r.length;a++)code=r[a],t.push(i(code).text());if(!t.length)return void e.msg_warning(n.i18n.noselectText);var o=n.data.vms;for(var s in o)o[s].guac_client&&o[s].guac_client.setClipboard(t.join("\n"));layer.tips("已复制",this,{tips:1,time:1e3})}),n.container.delegate(".document-copy:not(.disabled)","mouseover",function(){n.copy_tip=layer.tips("复制内容",this,{tips:1,time:-1})}),n.container.delegate(".document-copy:not(.disabled)","mouseout",function(){n.copy_tip&&layer.close(n.copy_tip)}),n.container.delegate('button[name="refresh"]:not(.disabled)',"click",function(){i(this).blur(),n.vm_is_refresh(),n.show_vm()}),n.container.find("#btntoolbar").toolbar({content:"#toolbar-options",posLine truncated
e.getComment(e.step_id),e.service.isCreateScore({item_id:e.step_id}).done(function(t){0===t.mark_list.length?e.container.find("#exp_course_score").raty({readOnly:e.data.course_evaluate.score,path:"/static/public/img/markstar",score:e.data.course_evaluate.score,hints:[1,2,3,4,5],click:function(t,i){if(e.data.course_evaluate.score=t,!SDC.user.mobile)return void layer.tips(e.i18n.no_auth,"#exp_course_score");var n={item_id:e.step_id,type:"step",value:Number(e.data.course_evaluate.score)},r=layer.load(2,{shade:[.1,"#ffffff"]});if(e.data.ismark){n={value:Number(e.data.course_evaluate.score)};var a=e.data.markid;e.service.updateScore(a,n).done(function(t){layer.close(r),e.container.find("#exp_course_score").raty("set",{path:"/static/public/img/markstar",score:e.data.course_evaluate.score})}).fail(function(e){layer.close(r)})}else e.service.createScore(n).done(function(t){layer.close(r),e.data.ismark=!0,e.data.markid=t.id,e.container.find("#exp_course_score").raty("set",{path:"/static/public/img/markstar",score:e.data.course_evaluate.score})}).fail(function(e){layer.close(r)})}}):e.container.find("#exp_course_score").raty({readOnly:e.data.course_evaluate.score,path:"/static/public/img/markstar",score:t.mark_list[0].value,hints:[1,2,3,4,5],click:function(i,n){if(e.data.course_evaluate.score=i,!SDC.user.mobile)return void layer.tips(e.i18n.no_auth,"#exp_course_score");var r={value:Number(e.data.course_evaluate.score)},a=layer.load(2,{shade:[.1,"#ffffff"]}),o=t.mark_list[0].id;e.service.updateScore(o,r).done(function(t){layer.close(a),e.container.find("#exp_course_score").raty("set",{path:"/static/public/img/markstar",score:e.data.course_evaluate.score})}).fail(function(e){layer.close(a)})}})}).fail(function(e){})},send_comment:function(){var t=this;if(!SDC.user.mobile)return void layer.tips(t.i18n.no_auth,"#exp_course_score");var i={item_id:t.step_id,type:"step",content:t.data.course_evaluate.comment.value};if(!e.trim(t.data.course_evaluate.comment.value))return void layer.tips("请输入评论内容","#comment");var n=layer.load(2,{shade:[.1,"#ffffff"]});t.service.createComment(i).done(function(e){t.container.find("#comment").val(""),layer.close(n),t.getComment(t.step_id)}).fail(function(e){layer.close(n)})}};return e.extend(n.prototype,r),n}),define("modules/console/vrdesktop/model/document/controller",["jquery","editormd"],function(e,t){function i(e,t){this.element=e,this.options=t}var n={init:function(){var i={htmlDecode:"style,script,iframe",tocm:!0,emoji:!1,taskList:!0,tex:!0,flowChart:!0,sequenceDiagram:!0,tocStartLevel:1};e.extend(this.options,i),t.markdownToHTML(this.element,this.options);var n=e("#"+this.element).find("pre");n.prepend("<i class='document-copy fa fa-files-o' style='display:none' ></i>"),n.on("mouseover",function(){e(this).find("i").show()}),n.on("mouseout",function(){e(this).find("i").hide()})}};return e.extend(i.prototype,n),i}),define("modules/console/vrdesktop/model/report/controller",["app-utils","jquery","bdlanglang"],function(e,t,i){function n(e,t,i){this.element=e,this.data=t,this.report_data=this.data.getGroup_res_data,this.service=i}var r={init:function(){var t=this;return t.addreportannex(),t.data.events.downloadattachment=function(t){var i=e.getDomain(e.domain_type.report)+t.path;window.location.href=i},t.data.events.submit_report=function(){t.data.submit_status="submit",t.save_submit("submit",t.data.report_list,t.data.report_data.id)},t.data.events.save_report=function(){t.data.submit_status="save",t.save_submit("save",t.data.report_list,t.data.report_data.id)},t.data.events.deleteattachment=function(i){layer.confirm("确实删除该报告附件吗?",{btn:["确定","取消"],title:"提示"},function(n){layer.close(n),t.service.deleteattachment(i).done(function(i){e.msg_success("删除成功"),t.init()}).fail(function(e){})},function(){})},t.data.events.completionFun=function(e){t.data.fields_report[0].value=e},t.content=UM.getEditor(t.element,{initialFrameWidth:"100%"}),t.reportData=t.report_data,t.service.expReportList({rel_c_s_g_id:t.report_data.rel_c_s_g_id}).done(function(i){if(0===i.report_list.length)return!1;t.data.report_list=1;var n=i.report_list[0];t.data.annex_data=[],n.attach_list.forEach(function(i){var n={title:i.title,file_name:i.file_name,path:i.path,size:i.size};t.data.annex_data.push(n),i.size>0?i.size_name=e.convertSize(i.size):i.size_name=0}),t.data.report_data=n,"submit"===n.submit_status&&t.setDisabled();var r=e.unescapeHTML(n.desc);t.content.setContent(r),"finished"===n.process?t.data.fields_report[0].value=0:"part"===n.process?t.data.fields_report[0].value=1:"unfinished"===n.process&&(t.data.fields_report[0].value=2)}).fail(function(e){}),t},save_submit:function(i,n,r){var a=this;if(!a.content.getContent())return e.msg_warning("请填写实验报告内容"),!1;"submit"===i?layer.confirm("提交后将不允许进行保存或提交操作,是否确认?",{btn:["确定","取消"]},function(e){layer.close(e),a.data.annex_number>0?t("#testListAction").triggeLine truncated
msgs=sessionStorage.getItem("realtime_msgs",[]),json_msgs=JSON.parse(msgs);for(var t=0;t<json_msgs.length;t++){json_msgs[t].id==e&&json_msgs.splice(t,1)}sessionStorage.setItem("realtime_msgs",JSON.stringify(json_msgs))},events:function(){var e=this;t(".webui-popover-content li content").click(function(e){t(this).toggleClass("p_elipsis")}),t(".webui-popover-content li img").click(function(e){var i="<img src='"+t(this).attr("src")+"' style='max-width:1024px;max-height:768px'/>";layer.open({type:1,title:"图片预览",closeBtn:1,area:["1024px","768px"],skin:"layui-layer-nobg",shadeClose:!0,content:i})}),t(".del-msg").click(function(i){id=t(this).attr("id"),t(this).parent().remove();var n=t(".webui-popover-content ul li");t("#msg_num").text(n.length),e.delmsg(id)})},setli:function(e){return"<li class='textLeft'><em>"+e.nickname+"</em><em>"+i(e.created_at).format("YYYY-MM-DD hh:mm:ss")+'</em><a href="javascript:void(0)" id="'+e.id+'"class="del-msg" ><i class="layui-icon layui-icon-delete"></i> </a><content class=\''+e.action+"'>"+e.content+"</content></li>"}};return t.extend(r.prototype,a),r}),define("modules/console/vrdesktop/pop/vpn/controller",["app-utils","popcontrollerbase_v2","jquery","text!modules/console/expdesktop/pop/vpn/index.html","text!modules/console/expdesktop/pop/vpn/lang.json"],function(e,t,i,n,r){function a(e,t,i,a,o){this.language=e,this.appOptions=t,this.lang=r,this.obj=a,this.template=n,this.onCreated=o,this.service=i}var o={initAvalon:function(e){var t=this;e.events.download=function(){t.service.download_vpnconfig({lab_id:t.obj.lab_id}).done(function(e){t.savetofile(e.config_name,e.config_content)})}},onInitialize:function(t){var i=this,n=(i.data,i.getFieldsByName("username")),r=i.getFieldsByName("password"),a=layer.load(3);i.service.get_vpn({lab_id:i.obj.lab_id,mode:i.obj.mode}).done(function(e){n.value=e.user_name,r.value=e.user_passwd_plaintext}).always(function(){layer.close(a)}),layui.use("element",function(){layui.element.on("tab(extab)",function(e){1===e.index&&i.grid&&i.grid.resize("tb_exceptions")})}),layui.use("table",function(){i.grid=layui.table,i.grid.render({elem:"#tb_vpnclient",limit:5,limits:[5,10,15,20,30,50,100],page:!0,text:{none:"暂无客户端软件"},data:i.data.vpnclients,request:{pageName:"page_index",limitName:"page_size"},cols:[[{field:"name",title:"名称",templet:function(e){return"<a href='"+e.link+"' target='_blank'>"+e.name+"</a>"}},{field:"system",title:"操作系统"}]]})}),i.container.find("#data_form").bootstrapValidator({message:"This value is not valid",feedbackIcons:{valid:"glyphicon glyphicon-ok",invalid:"glyphicon glyphicon-remove",validating:"glyphicon glyphicon-refresh"},fields:{old_password:{message:i.i18n.old_passwordnotempty,validators:{notEmpty:{message:i.i18n.old_passwordnotempty},callback:{message:"旧密码不正确",callback:function(e){return e===r.value}}}},new_password:{message:i.i18n.new_passwordnotempty,validators:{notEmpty:{message:i.i18n.new_passwordnotempty},stringLength:{min:8,max:16,message:"请输入8到16位密码"},regexp:{regexp:/^(?=.*[a-zA-Z]+)(?=.*[0-9]+)[a-zA-Z0-9]+$/,message:"必须是数字和字母组合"}}}}}),i.container.delegate('button[name="change_pwd"]:not(.disabled)',"click",function(){i.container.find("#data_form").bootstrapValidator("validate");var t=i.container.find("#data_form").data("bootstrapValidator").isValid(),n=i.generateData();t&&n&&(i.container.find('button[name="change_pwd"]').addClass("disabled"),i.service.change_vpnpwd({user_passwd_plaintext:n.new_password}).done(function(t){r.value=t.user_passwd_plaintext,i.container.find(".closeModal").trigger("click"),e.msg_success("密码修改成功")}).fail(function(){}).always(function(){i.container.find('button[name="change_pwd"]').removeClass("disabled")}))})},savetofile:function(e,t){var i=new Blob([t],{type:"application/octet-stream"});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(i,e);else{var n=window.document.createElement("a");n.href=window.URL.createObjectURL(i),n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}},getModelLabel:function(){return"pop_exceptionvm_view"}};return i.extend(a.prototype,t.prototype),i.extend(a.prototype,o),a}),define("text!modules/console/vrdesktop/lang.json",[],function(){return'{\r\n "config": {\r\n "annex_data":[],\r\n "submit_status":"",\r\n "report_list":0,\r\n "annex_number":0,\r\n "report_data":"",\r\n \r\n "allow_delay":false,\r\n "lab_save_count": 0,\r\n "password_view":"false",\r\n "allow_save":false,\r\n "allow_vpn":false,\r\n "vms": {},\r\n "page_id": "expdesltop_view_data_page",\r\n "current_assister": "",\r\n "current_assis_type": "read",\r\n "desktop_title": "",\r\n "current_unfold": "docmarkdown",\r\n "isspread": false,\r\n "vm_param": "",\r\n "is_split": false,\r\n "reportData": "",\r\n "reportBtn": "",\r\n "step_msg": "",\r\n "is_assist": false,\r\n "assist_process_token": "",\r\n Line truncated
t.data.step_msg=e.op_user_real_name+"正在协助,请务断开",t.data.is_assist=!0;break;case"error":case"timeout":t.data.step_msg="向"+e.op_user_real_name+"发起协助请求"+t.i18n[e.status],t.data.is_assist=!1}},refreshData:function(e){this.setData(e)},onInitialize:function(t){var n=this;this.initialized=!0,this.DragLeftBar(),this.DragDoc(),this.DragTime();var r=i(window).height();if(n.container.find("#displayvm").height(r),n.container.find(".console-ullist").removeClass("hide"),n.container.find(".expDesktop_head_wrap").width(.9*i(window).width()),n.container.find(".right-toolbar").overlayScrollbars({scrollbars:{autoHide:"l",autoHideDelay:100}}),t){n.vstep_id=t;for(var a=0;a<n.data.step.fields.length;a++){var o=n.data.step.fields[a];n["field_"+o.field]=o}n.field_vm_name=n.data.step.vm_name,n.field_protocols=n.data.step.protocols,n.field_interacts=n.data.step.interacts,localStorage.getItem(SDC.user.user_id+"_"+n.vstep_id)||localStorage.setItem(SDC.user.user_id+"_"+n.vstep_id,10),n.setData(t),msg=new v,n.msg=msg.init(),n.container.delegate('button[name="create"]:not(.disabled)',"click",function(){n.container.find('button[name="create"]').addClass("disabled"),n.data.step.progress=1,n.data.vm_status=e.vm_status.creating,n.service.create_vm({step_id:t,vr_token:e.getLocalStorage("vs_username"),vr_un:e.getLocalStorage("vs_access_token")}).done(function(){n.data.vm_status=e.vm_status.creating}).fail(function(t){var i=JSON.parse(t.responseText);if(n.container.find('button[name="create"]').removeClass("disabled"),i.code)switch(i.code){case 50003:case 50004:case 50005:break;default:n.data.vm_status=e.vm_status.closed}n.data.vm_status=e.vm_status.closed})}),n.container.delegate(".console_bg_img img","click",function(){var r=this;n.imgClick=!0,n.container.find('button[name="create"]').addClass("disabled"),n.data.step.progress=1,n.data.vm_status=e.vm_status.creating,n.service.create_vm({step_id:t,vr_un:e.getLocalStorage("vs_username"),vr_token:e.getLocalStorage("vs_access_token")}).done(function(){n.data.vm_status=e.vm_status.creating,n.imgClick=!1,i(r).attr({src:"/static/public/img/console_bg_img.png"})}).fail(function(t){var a=JSON.parse(t.responseText);if(n.imgClick=!1,i(r).attr({src:"/static/public/img/console_bg_img.png"}),n.container.find('button[name="create"]').removeClass("disabled"),a.code)switch(a.code){case 50003:case 50004:case 50005:break;default:n.data.vm_status=e.vm_status.closed}n.data.vm_status=e.vm_status.closed})}),n.container.delegate(".console_bg_img","mouseover",function(){n.imgClick||i(this).find("img").attr({src:"/static/public/img/console_bg_img_hover.png"})}),n.container.delegate(".console_bg_img","mouseout",function(){n.imgClick||i(this).find("img").attr({src:"/static/public/img/console_bg_img.png"})}),n.container.delegate('button[name="help"]:not(.disabled)',"click",function(){new d(n.language,n.appOptions,n.service,t,function(e){n.data.current_assister=e.op_user,n.data.current_assis_type=e.op_type,n.get_assist_list(t)}).show()}),n.container.delegate('button[name="unhelp"]:not(.disabled)',"click",function(){n.dataControl.message.confirm(n.i18n.cancel,n.i18n.assist,function(e){n.service.cancel_assist({token:n.data.assist_process_token}).done(function(){n.data.is_assist=!1}),layer.close(e)})}),n.container.delegate('button[name="forced_close"]:not(.disabled)',"click",function(){i(this).blur(),layer.confirm("是否强制关闭实验环境?",{title:n.i18n.close},function(i){n.vm_is_refresh(),layer.close(i),n.service.self_clean_resource({mode:"study",step_id:t}).done(function(){n.data.vm_status=e.vm_status.closing}).fail(function(t){e.msg_error(t.responseJSON.message)})},function(e){layer.close(e)})}),n.container.delegate('button[name="close"]:not(.disabled)',"click",function(){i(this).blur(),layer.confirm("实验环境将被删除,确定关闭?",{title:n.i18n.close},function(i){layer.close(i),new f(n.language,n.appOptions,n.service,n.vstep_id,n.step_id,n.data.desktop_title,function(){n.vm_is_refresh(),n.service.close_vm(t).done(function(){n.data.vm_status=e.vm_status.closing}).fail(function(e){})}).show()},function(e){layer.close(e)})}),n.container.delegate('button[name="lookrecover"]:not(.disabled)',"click",function(){var t=!0;n.data.vm_status==e.vm_status.running&&(t=!1),new h(n.language,n.appOptions,n.service,t,n.data.getGroup_res_data,function(t){if("delete"==t)return n.data.lab_save_count=n.data.lab_save_count-1,0!=n.data.lab_save_count&&n.data.lab_save_count||(n.field_lookrecover.hide=!0),!1;var i={step_id:n.data.getGroup_res_data.rel_c_s_g_id,lab_save_id:t.id};n.container.find('button[name="create"]').addClass("disabled"),n.service.recover_lab(i).done(function(t){204==t.op_code?layer.confirm("ip已经被占用是否切换其他ip?",{btn:["确定","取消"]},function(t){layer.close(t),i.retry_keep_ip=!1,n.service.recover_lab(i).done(function(t){n.data.vm_status=e.vm_status.creating}).fail(function(t){n.data.vm_status=e.vm_status.closed,n.container.find('button[name="create"]').rLine truncated
return'<div ms-controller="">\r\n \r\n\r\n\r\n\r\n <div class="icode fade" tabindex="-1" role="dialog">\r\n <div class="icode-dialog">\r\n <div class="icode-content">\r\n <div class="icode-header">\r\n <h4 class="icode-title">{{ header.title }}</h4>\r\n </div>\r\n <div id="data_form" class="tab-content form-horizontal">\r\n <div class="tab-pane fade in active" id="course">\r\n <div class="icode-form-group clearfix" ms-for="field in fields">\r\n\r\n <div class="icode-form-l fl">\r\n <label>{{ field.title }}:</label>\r\n </div>\r\n \r\n <div class="icode-form-r fl" ms-if="field.type==\'input\'">\r\n <input ms-attr="{\'placeholder\':field.tip.title,\'name\':field.field}" class="icode-form-long text" type="text" required/>\r\n </div>\r\n <div class="icode-form-r fl" ms-if="field.type==\'textarea\'">\r\n <textarea ms-attr="{\'name\':field.field}" class="icode-form-long" required></textarea>\r\n </div>\r\n <div class="icode-form-r fl" ms-if="field.type==\'radio\'">\r\n <label ms-for = "r in field.data" ms-attr = "{for: r.field}">\r\n \r\n <input type="radio" ms-attr="{id:r.field,name:field.field,value:r.value,field:field.field,checked:r.checked==true }" >\r\n {{r.title}}\r\n </label>\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n </div>\r\n <div class="icode-footer">\r\n\r\n <button class="btn" ms-for="button in buttons" ms-attr="{name:button.field}" >{{button.title}}</button>\r\n\r\n </div>\r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n \r\n'}),define("text!modules/console/previewexp/pop/help/lang.json",[],function(){return'{\r\n "config": {\r\n "header": {\r\n "field": "title"\r\n },\r\n "fields": [\r\n {\r\n "type": "radio",\r\n "field": "op_type",\r\n "value": "",\r\n "data": [\r\n {\r\n "field": "see",\r\n "value": "read",\r\n "checked": true\r\n },\r\n {\r\n "field": "control",\r\n "value": "write",\r\n "checked": false\r\n }\r\n ]\r\n },\r\n {\r\n "type": "input",\r\n "field": "op_user",\r\n "value": "",\r\n "required": true,\r\n "assist_usernotempty": { "field": "assist_usernotempty" },\r\n "tip": {"field": "assist_user_tip"}\r\n },\r\n {\r\n "type": "textarea",\r\n "field": "assist_msg",\r\n "value": "",\r\n "placer": "",\r\n "assist_msgnotempty": { "field": "assist_msgnotempty" }\r\n\r\n }\r\n ],\r\n "buttons": [\r\n \r\n {\r\n "field": "cancel",\r\n "style": "cancel",\r\n "dismiss": ""\r\n },\r\n {\r\n "field": "send",\r\n "style": "success",\r\n "dismiss": ""\r\n }\r\n ]\r\n },\r\n "language": {\r\n "zh-hans": {\r\n "title": "请求协助",\r\n "op_type": "协助模式",\r\n\r\n "see": "观看",\r\n "control": "控制",\r\n "send": "发送",\r\n "op_user": "协助者",\r\n "assist_msg": "协助信息",\r\n "cancel": "取消",\r\n "assist_usernotempty": "请输入协助者手机号",\r\n "assist_msgnotempty": "请输入协助信息",\r\n "assist_user_tip": "手机号",\r\n "mobile_length": "请输入11位手机号码",\r\n "mobile_regexp": "请输入正确的手机号码",\r\n "assist_msg_length": "协助信息在255字符以内。"\r\n\r\n }\r\n }\r\n}'}),define("modules/console/previewexp/pop/help/controller",["popcontrollerbase_v2","jquery","text!modules/console/previewexp/pop/help/index.html","text!modules/console/previewexp/pop/help/lang.json"],function(e,t,i,n){function r(e,t,r,a,o){this.language=e,this.appOptions=t,this.lang=n,this.step_id=a,this.template=i,this.onCreated=o,this.service=r}var a={initAvalon:function(e){},onInitialize:function(e){var t=this,i=(t.data,t.getFieldsByName("op_user")),n=t.getFieldsByName("assist_msg");t.container.find("#data_form").bootstrapValidator({message:"This value is not valid",feedbackIcons:{valid:"glyphicon glyphicon-ok",invalid:"glyphicon glyphicon-remove",validating:"glyphicon glyphicon-refresh"},fields:{op_user:{message:i.assist_usernotempty.title,validators:{notEmpty:{message:i.assist_usernotempty.titleLine truncated
n.field_close.enabled=!1,n.field_close.title=n.i18n.closing,n.field_create.hide=!0,n.field_refresh.hide=!0,n.field_fullscreen.hide=!0,n.field_viewtype.hide=!0,n.field_vm_name.data=[],n.field_protocols.data=[],n.data.is_start=!0,n.field_delay.hide=!0,n.field_scrapbooking.hide=!0;break;case e.vm_status.closed:n.field_close.hide=!0,n.field_create.hide=!1,n.field_create.title=n.i18n.create,n.field_create.enabled=!0,n.field_vm_name.data=[],n.field_protocols.data=[],n.field_refresh.hide=!0,n.field_fullscreen.hide=!0,n.field_viewtype.hide=!0,n.data.step.progress=0,n.data.is_start=!1,n.field_delay.hide=!0,n.field_scrapbooking.hide=!0;break;case e.vm_status.error:n.field_close.hide=!0,n.field_create.hide=!1,n.field_create.title=n.i18n.create,n.field_create.enabled=!1,n.field_vm_name.data=[],n.field_protocols.data=[],n.field_refresh.hide=!0,n.field_fullscreen.hide=!0,n.field_viewtype.hide=!0,n.data.step.progress=0,n.data.is_start=!1,n.field_delay.hide=!0,n.field_scrapbooking.hide=!0}}),window.onresize=function(){e.checkFull()?n.field_fullscreen.title=n.i18n.exitfullscreen:n.field_fullscreen.title=n.i18n.fullscreen;var t=i(window).height();n.container.find("#displayvm").height(t);var r=i(window).width();n.container.find("#displayvm").width(r),n.container.find(".expDesktop_head_wrap").width(.9*r),n.set_vm_scale()},t.$watch("course_evaluate.comment.value",function(e){t.course_evaluate.tip.value=t.course_evaluate.tip.title.replace(/\{\d\}/g,100-e.length)}),t.events.changetabs=function(e,t){for(var i=0;i<n.data.doctabs.length;i++)n.data.doctabs[i].active=!1;e.active=!0,"report"==e.field?n.reportfun():"material"==e.field?n.get_step_attachment():"evaluation"==e.field?n.get_comment_content():"video"==e.field&&n.get_step_video()},t.events.step_attachment=function(t){window.open(e.getDomain(e.domain_type.step_att)+t.api_url)},t.course_evaluate.tip.value=t.course_evaluate.tip.title.replace(/\{\d\}/g,100),t.events.goback=function(){history.go(-1)},t.events.current_vm_desc=function(){n.data.step.ip&&layer.tips("当前机器ip:"+n.data.step.ip,"#current_vm_desc",{tips:1})}},setDataControl:function(e){this.dataControl=e,this.service=new a(this.dataControl),this.dataControl.addLisenter("step",this,this.socket),this.dataControl.addLisenter("assist",this,this.socket)},socket:function(t,i,n){var r=this;if(i=String(i),this.vstep_id===i&&t==e.vm_op_status.op_failed)return e.msg_error("实验环境创建失败"),r.close_vm(),void(r.data.vm_status=e.vm_status.closed);if(this.vstep_id===i&&"time_remind"===n.action&&"preview"===n.data.mode&&(r.data.timeout.allSecond=n.data.remain_time,r.setTime(n.data.remain_time),r.overtime()),this.vstep_id===i&&(t===e.vm_status.creating||t===e.vm_status.running)&&"preview"===n.data.mode){if(r.data.vm_status=e.vm_status.creating,console.log(n.data.progress),r.data.step.progress=n.data.progress,!n.data.is_complete)return;r.data.vm_status=e.vm_status.running,r.data.step.progress=0,this.setTime(n.data.remain_time),this.data.step.token=n.data.current_res.vm_token,this.data.step.protocol=n.data.current_res.res_conn.filter(function(e){return 1==e.default})[0].protocol,this.data.step.instance_id=n.data.current_res.instance_id,this.data.step.ip=n.data.current_res.ip,this.data.step.os_username=n.data.current_res.os_username,this.data.step.os_password=n.data.current_res.os_password,this.data.step.os_type=n.data.current_res.os_type.toLowerCase(),this.data.vm_param={token:n.data.current_res.vm_token,protocol:n.data.current_res.res_conn.filter(function(e){return 1==e.default})[0].protocol,instance_id:n.data.current_res.instance_id,os_type:n.data.current_res.os_type.toLowerCase()},this.data.step.res_list=n.data.res_list}this.vstep_id!==i||"end"!==n.data.stage||n.action!==e.vm_status.time_end&&n.action!==e.vm_status.closing||("time_end"===n.action?e.msg_warning(r.i18n.study_timeout,null,{closeButton:!0,onCloseClick:function(){r.close_vm()},onHidden:function(){r.close_vm()}}):r.close_vm())},setvm_param:function(e){this.data.vm_param=e},show_vm:function(){var e=this;if(vm_width=window.screen.width,vm_height=window.screen.height,e.data.vm_param.token){var t=String(e.data.vm_param.token),r=e.data.vm_param.protocol,a=e.data.vm_param.instance_id,o=e.data.vms;e.data.vms[a]||(o[a]={token:t});for(var s in o)o[s].guac_client&&o[s].guac_client.disconnect();var l="vm_token="+t+"&vm_protocol="+r+"&vm_resid="+a+"&vm_width="+vm_width+"&vm_height="+vm_height+"&mode=preview",c={i18n:e.i18n,tunnel_url:SDC.sock_type+"://"+SDC.guacHost,url:l,protocol:r,os_type:e.data.vm_param.os_type,token:t,box_width:i(".expDesktop_editormd_box").width()},u=new n(e.container.find("#display"),c,e.data);e.guac_init=u.init(),o[a]=u,e.data.show_vm.code_data={vm_protocol:r,step_id:e.vstep_id,vm_resid:a}}},set_vm_scale:function(){var e=this,t=e.data.vms,n=i(window).width();e.ishind||(n=i(window).width()-e.exp_width),t[e.data.vm_param.instance_id]&&t[e.data.vm_param.instance_id].set_vm_scale(n)},set_vm_ips:function(){var e=this,t=e.data.step.res_list;e.field_vm_nLine truncated
t.container.find(o).html(s[o].guac.getDisplay().getElement()),s[o].guac.onerror=function(e){0==e.code?t.data.iswaiting=!1:t.console_conn_error(e.code)},vm_width=i(t.container.find(o)).width(),vm_height=i(t.container.find(o)).height()-10;var c="vm_token="+n+"&vm_width="+vm_width+"&vm_height="+vm_height;s[o].guac.connect(c)}},setData:function(){},refreshData:function(e){this.setData(e)},onInitialize:function(e){i("#monitoring_list").css({display:"block"});var t=this;SDC.msgsocket||(SDC.msgsocket=new WebSocket(SDC.sock_type+"://"+SDC.SOCKJS_URL+"/v1/msg"));var n={};n.Authorization=SDC.user.auth_token,SDC.msgsocket.onopen=function(){SDC.msgsocket.send(JSON.stringify(n)),t.get_monitor_service()}},get_monitor_service:function(){var e=this,t=layer.load(2,{shade:[.1,"#ffffff"]});e.service.getvm_screen().done(function(i){if(layer.close(t),0==i.monitor_list.length)return!1;i.monitor_list.forEach(function(e,t){e.show="loading";var i=e.remain_time,n=Math.floor(i/86400),r=Math.floor((i-24*n*60*60)/3600),a=Math.floor((i-24*n*60*60-3600*r)/60),o=Math.floor(i-24*n*60*60-3600*r-60*a);e.hour=r,e.minute=a,e.second=o,e.timer=""}),e.data.monitor_list=i.monitor_list,e.data.monitor_list.forEach(function(t,i){var n=t.remain_time;e.setTime(n,i)})}).fail(function(e){layer.close(t)})},getModelLabel:function(){return"monitoring_view"}};return i.extend(o.prototype,t.prototype),i.extend(o.prototype,s),o}),define("modules/console/expconsole/service",["network-utils","jquery","modules/utils/baseservice"],function(e,t,i){var n=function(e){this.dataControl=e};return n.prototype={overtime_server:function(t){return e.doPost("/ecos/qcec_console_nsq/v1/resource_template/delay_time",t)},createreport:function(t){return e.doPost("/ecos/qcec/v1/report",t)},expReportList:function(t){return e.doGet("/ecos/qcec/v1/report",t)},changeEreport:function(t,i){return e.doPut("/ecos/qcec/v1/report/"+t,i)},getCommentList:function(t){return e.doGet("/ecos/qcec_noauth/noauth/comment",t)},createComment:function(t){return e.doPost("/ecos/qcec/v1/comment",t)},getcourse:function(t,i){return e.doGet("/ecos/qcec/v1/course/"+t,i)},getTeacherInfo:function(t){return e.doGet("/ecos/qcec_noauth/noauth/user/get_provider/",{course_id:t})},createScore:function(t){return e.doPost("/ecos/qcec/v1/mark",t)},isCreateScore:function(t){return e.doGet("/ecos/qcec/v1/mark",t)},updateScore:function(t,i){return e.doPut("/ecos/qcec/v1/mark/"+t,i)},step_attachment:function(t){return e.doGet("/ecos/qcec/v1/step_attachment/",t)},step_code_server:function(t){return e.doGet("/ecos/qcec/v1/upload_file/get_files",t)},upload_file:function(t){return e.doGet("/ecos/qcec/v1/upload_file",t)},step_code_upload:function(t){return e.doPost("/step_code_upload/",t)},save_env:function(t){return e.doPost("/ecos/qcec/v1/lab_template",t)},delete:function(e){},createvm:function(t){return e.doPost(this.api.createtemplate_vm,t)},bindvm_template:function(t){return e.doPut(this.api.bindvm_template,t)},get_detial:function(t){return xhr=e.doGet("/ecos/qcec/v1/lab_template/"+t,{}),xhr},check_courseExp:function(t){return e.doGet("/ecos/qcec_console_nsq/v1/resource_template/"+t)},create_vmExp:function(t){return e.doPost("/ecos/qcec_console_nsq/v1/resource_template/",t)},close_vmExp:function(t){return e.doPost("/ecos/qcec_console_nsq/v1/resource_template/close",{lab_template_id:t})},close_vmSaveExp:function(t){return e.doPost("/ecos/qcec_console_nsq/v1/resource_template/save_close/",t)},save_vmSaveExp:function(t){return e.doPost("/ecos/qcec_console_nsq/v1/resource_template/save/",t)},get_config_detial:function(t){return xhr=e.doGet("/ecos/qcec/v1/template_version/",t),xhr}},t.extend(n.prototype,i.prototype),n}),define("text!modules/console/expconsole/pop/create/index.html",[],function(){return'<div ms-controller="">\r\n \r\n\r\n\r\n\r\n <div class="icode fade" tabindex="-1" role="dialog">\r\n <div class="icode-dialog">\r\n <div class="icode-content">\r\n <div class="icode-header">\r\n <h4 class="icode-title">{{ header.title }}</h4>\r\n </div>\r\n <div id="data_form" class="tab-content form-horizontal">\r\n <div class="tab-pane fade in active" id="course">\r\n <div class="icode-form-group clearfix" ms-for="field in fields">\r\n\r\n <div class="icode-form-l fl">\r\n <label>{{ field.title }}:</label>\r\n </div>\r\n \r\n <div class="icode-form-r fl" ms-if="field.type==\'input\'">\r\n <input ms-attr="{\'placeholder\':field.tip.title,\'name\':field.field}" class="icode-form-long text" type="text" required/>\r\n </div>\r\n <div class="icode-form-r fl" ms-if="field.type==\'textarea\'">\r\n <textarea ms-attr="{\'name\':field.field}" class="icode-fLine truncated
;SDC.user.manage_spec&&null!=SDC.user.manage_spec&&0==SDC.user.manage_spec.allow_custom_template&&(location.href="/tlab/exptemplate"),t&&(n.service.get_config_detial({lab_template_id:t}).done(function(e){n.data.lab_template_version_list=e.lab_template_version_list}),n.vstep_id=t,n.data.vstep_id=t,layui.use("element",function(){layui.element}),n.tools_show_fun(),n.editormd_show_fun(),n.data.isloaded=!0,this.service.check_courseExp(t).done(function(t){return null==t?void(n.data.vm_status=e.vm_status.closed):t.status===e.vm_op_status.op_failed?void(n.data.vm_status=e.vm_status.closed):t.action===e.vm_status.closed?void(n.data.vm_status=e.vm_status.closed):(t.action===e.vm_status.creating&&(n.data.vm_status=e.vm_status.creating,n.data.step.progress=t.action_info.process),void(t.action_info.is_complete&&(n.data.step.protocol=t.action_info.current_res.res_conn.filter(function(e){return 1==e.default})[0].protocol,n.data.step.instance_id=t.action_info.current_res.instance_id,n.data.step.token=t.action_info.current_res.vm_token,n.data.step.ip=t.action_info.current_res.ip,n.data.step.os_username=t.action_info.current_res.os_username,n.data.step.os_password=t.action_info.current_res.os_password,n.data.step.os_type=t.action_info.current_res.os_type.toLowerCase(),n.setvm_param({token:t.action_info.current_res.vm_token,protocol:t.action_info.current_res.res_conn.filter(function(e){return 1==e.default})[0].protocol,instance_id:t.action_info.current_res.instance_id,os_type:t.action_info.current_res.os_type.toLowerCase()}),n.data.step.res_list=t.action_info.res_list,n.setTime(t.action_info.remain_time),n.data.vm_status=e.vm_status.running)))}))},refreshData:function(e){this.setData(e)},expconsoleInit:function(t){var i=this;i.container.find('button[name="create"]').addClass("disabled"),i.service.create_vmExp({lab_template_id:Number(t)}).done(function(){i.data.vm_status=e.vm_status.creating}).fail(function(t){i.container.find('button[name="create"]').removeClass("disabled"),i.data.vm_status=e.vm_status.closed})},onInitialize:function(t){var n=this;this.initialized=!0,n.service.get_detial(t).done(function(e){n.data.lab_template=e,n.data.name=e.name}).fail(function(e){n.pushError(e)}),this.DragLeftBar(),this.DragDoc(),this.DragTime();var r=i(window).height();if(n.container.find("#displayvm").height(r),n.container.find(".console-ullist").removeClass("hide"),n.container.find(".expDesktop_head_wrap").width(.9*i(window).width()),t){n.vstep_id=t;for(var o=0;o<n.data.step.fields.length;o++){var s=n.data.step.fields[o];n["field_"+s.field]=s}localStorage.getItem(SDC.user.user_id+"exp_"+n.vstep_id)||localStorage.setItem(SDC.user.user_id+"exp_"+n.vstep_id,10),n.setData(t),n.container.delegate('button[name="create"]:not(.disabled)',"click",function(){n.imgClick=!0,n.container.find('button[name="create"]').addClass("disabled"),n.data.step.progress=25,n.data.vm_status=e.vm_status.creating,n.service.create_vmExp({lab_template_id:Number(t)}).done(function(){n.data.vm_status=e.vm_status.creating}).fail(function(t){var i=JSON.parse(t.responseText);if(n.container.find('button[name="create"]').removeClass("disabled"),i.code)switch(i.code){case 50003:case 50004:case 50005:break;default:n.data.vm_status=e.vm_status.closed}n.data.vm_status=e.vm_status.closed})}),n.container.delegate(".console_bg_img img","click",function(){var r=this;n.imgClick=!0,n.data.step.progress=25,n.data.vm_status=e.vm_status.creating,n.container.find('button[name="create"]').addClass("disabled"),n.service.create_vmExp({lab_template_id:Number(t)}).done(function(){n.data.vm_status=e.vm_status.creating,n.imgClick=!1,i(r).attr({src:"/static/public/img/console_bg_img.png"})}).fail(function(t){var a=JSON.parse(t.responseText);if(n.container.find('button[name="create"]').removeClass("disabled"),n.imgClick=!1,i(r).attr({src:"/static/public/img/console_bg_img.png"}),a.code)switch(a.code){case 50003:case 50004:case 50005:break;default:n.data.vm_status=e.vm_status.closed}n.data.vm_status=e.vm_status.closed})}),n.container.delegate(".console_bg_img","mouseover",function(){n.imgClick||i(this).find("img").attr({src:"/static/public/img/console_bg_img_hover.png"})}),n.container.delegate(".console_bg_img","mouseout",function(){n.imgClick||i(this).find("img").attr({src:"/static/public/img/console_bg_img.png"})}),n.container.delegate('button[name="close"]:not(.disabled)',"click",function(){i(this).blur(),layer.confirm("直接关闭将不会保存此次配置,建议您“保存并关闭”。",{title:n.i18n.close,btn:["保存并关闭","直接关闭"]},function(t){var r=layer.confirm("<div>配置说明:<textarea style='width: 240px;height: 50px;resize: none;vertical-align: top;' name='desc'></textarea><p class='sd-expconsole-p' style='display: none;color: red;margin-left: 70px;'>配置说明不能为空</p></div>",{title:"保存模板",btn:["确定","取消"]},function(t){n.container.find("textarea[name='desc']").keyup(function(){var e=i(this).val();""==i.trim(e)?n.container.find(".sd-expcLine truncated
if(101==(r=a.charCodeAt(M))||69==r){for(r=a.charCodeAt(++M),43!=r&&45!=r||M++,i=M;i<o&&!((r=a.charCodeAt(i))<48||r>57);i++);i==M&&P(),M=i}return+a.slice(t,M)}n&&P();var s=a.slice(M,M+4);if("true"==s)return M+=4,!0;if("fals"==s&&101==a.charCodeAt(M+4))return M+=5,!1;if("null"==s)return M+=4,null;P()}return"$"},j=function(e){var t,i;if("$"==e&&P(),"string"==typeof e){if("@"==(w?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(t=[];"]"!=(e=R());)i?","==e?"]"==(e=R())&&P():P():i=!0,","==e&&P(),t.push(j(e));return t}if("{"==e){for(t={};"}"!=(e=R());)i?","==e?"}"==(e=R())&&P():P():i=!0,","!=e&&"string"==typeof e&&"@"==(w?e.charAt(0):e[0])&&":"==R()||P(),t[e.slice(1)]=j(R());return t}P()}return e},z=function(e,t,i){var n=F(e,t,i);n===g?delete e[t]:e[t]=n},F=function(e,t,i){var n,r=e[t];if("object"==typeof r&&r)if("[object Array]"==y.call(r))for(n=r.length;n--;)z(y,x,r);else x(r,function(e){z(r,e,i)});return i.call(e,t,r)};n.parse=function(e,t){var i,n;return M=0,L=""+e,i=j(R()),"$"!=R()&&P(),M=L=null,t&&"[object Function]"==y.call(t)?F((n={},n[""]=i,n),"",t):i}}}return n.runInContext=e,n}var t="function"==typeof define&&define.amd,i={function:!0,object:!0},n=i[typeof exports]&&exports&&!exports.nodeType&&exports,r=i[typeof window]&&window||this,a=n&&i[typeof module]&&module&&!module.nodeType&&"object"==typeof global&&global;if(!a||a.global!==a&&a.window!==a&&a.self!==a||(r=a),n&&!t)e(r,n);else{var o=r.JSON,s=r.JSON3,l=!1,c=e(r,r.JSON3={noConflict:function(){return l||(l=!0,r.JSON=o,r.JSON3=s,o=s=null),c}});r.JSON={parse:c.parse,stringify:c.stringify}}t&&define("json3",[],function(){return c})}.call(this),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");if(function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.alert");r||i.data("bs.alert",r=new n(this)),"string"==typeof t&&r[t].call(i)})}var i='[data-dismiss="alert"]',n=function(t){e(t).on("click",i,this.close)};n.VERSION="3.3.2",n.TRANSITION_DURATION=150,n.prototype.close=function(t){function i(){o.detach().trigger("closed.bs.alert").remove()}var r=e(this),a=r.attr("data-target");a||(a=r.attr("href"),a=a&&a.replace(/.*(?=#[^\s]*$)/,""));var o=e(a);t&&t.preventDefault(),o.length||(o=r.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var r=e.fn.alert;e.fn.alert=t,e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.bs.alert.data-api",i,n.prototype.close)}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var n=e(this),r=n.data("bs.button"),a="object"==typeof t&&t;r||n.data("bs.button",r=new i(this,a)),"toggle"==t?r.toggle():t&&r.setState(t)})}var i=function(t,n){this.$element=e(t),this.options=e.extend({},i.DEFAULTS,n),this.isLoading=!1};i.VERSION="3.3.2",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(t){var i="disabled",n=this.$element,r=n.is("input")?"val":"html",a=n.data();t+="Text",null==a.resetText&&n.data("resetText",n[r]()),setTimeout(e.proxy(function(){n[r](null==a[t]?this.options[t]:a[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var i=this.$element.find("input");"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?e=!1:t.find(".active").removeClass("active")),e&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));e&&this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=t,e.fn.button.Constructor=i,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var n=e(i.target);n.hasClass("btn")||(n=n.closest(".btn")),t.call(n,"toggle"),i.preventDefault()}).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 n=e(this),r=n.data("bs.carousel"),a=e.extend({},i.DEFAULTS,n.data(),"object"==typeof t&&t),o="string"==typeof t?t:a.slide;r||n.data("bs.carousel",r=new i(this,a)),"number"==typeof t?r.to(t):o?r[o]():a.interval&&r.pause().cycle()})}var i=function(t,i){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.opLine truncated
;var l=e.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[o](this.$element[0][l])}}}},n.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 i=this.dimension();this.$element[i](this.$element[i]())[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")};if(!e.support.transition)return r.call(this);this.$element[i](0).one("bsTransitionEnd",e.proxy(r,this)).emulateTransitionEnd(n.TRANSITION_DURATION)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(i,n){var r=e(n);this.addAriaAndCollapsedClass(t(r),r)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(e,t){var i=e.hasClass("in");e.attr("aria-expanded",i),t.toggleClass("collapsed",!i).attr("aria-expanded",i)};var r=e.fn.collapse;e.fn.collapse=i,e.fn.collapse.Constructor=n,e.fn.collapse.noConflict=function(){return e.fn.collapse=r,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var r=e(this);r.attr("data-target")||n.preventDefault();var a=t(r),o=a.data("bs.collapse"),s=o?"toggle":e.extend({},r.data(),{trigger:this});i.call(a,s)})}(jQuery),function(e){"use strict";function t(i,n){var r=e.proxy(this.process,this);this.$body=e("body"),this.$scrollElement=e(e(i).is("body")?window:i),this.options=e.extend({},t.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",r),this.refresh(),this.process()}function i(i){return this.each(function(){var n=e(this),r=n.data("bs.scrollspy"),a="object"==typeof i&&i;r||n.data("bs.scrollspy",r=new t(this,a)),"string"==typeof i&&r[i]()})}t.VERSION="3.3.2",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="offset",i=0;e.isWindow(this.$scrollElement[0])||(t="position",i=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var n=this;this.$body.find(this.selector).map(function(){var n=e(this),r=n.data("target")||n.attr("href"),a=/^#./.test(r)&&e(r);return a&&a.length&&a.is(":visible")&&[[a[t]().top+i,r]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){n.offsets.push(this[0]),n.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),r=this.offsets,a=this.targets,o=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),t>=n)return o!=(e=a[a.length-1])&&this.activate(e);if(o&&t<r[0])return this.activeTarget=null,this.clear();for(e=r.length;e--;)o!=a[e]&&t>=r[e]&&(!r[e+1]||t<=r[e+1])&&this.activate(a[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var i=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=e.fn.scrollspy;e.fn.scrollspy=i,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=n,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);i.call(t,t.data())})})}(jQuery),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in t)if(void 0!==e.style[i])return{end:t[i]};return!1}e.fn.emulateTransitionEnd=function(t){var i=!1,n=this;e(this).one("bsTransitionEnd",function(){i=!0});var r=function(){i||e(n).trigger(e.support.transition.end)};return setTimeout(r,t),this},e(function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),define("bootstrap",["jquery"],function(){}),"undefined"==typeof jQuery)throw new Error("BootstrapValidator requires jQuery");!function(e)Line truncated
date:function(e,t,i,n){if(isNaN(e)||isNaN(t)||isNaN(i))return!1;if(i.length>2||t.length>2||e.length>4)return!1;if(i=parseInt(i,10),t=parseInt(t,10),(e=parseInt(e,10))<1e3||e>9999||t<=0||t>12)return!1;var r=[31,28,31,30,31,30,31,31,30,31,30,31];if((e%400==0||e%100!=0&&e%4==0)&&(r[1]=29),i<=0||i>r[t-1])return!1;if(!0===n){var a=new Date,o=a.getFullYear(),s=a.getMonth(),l=a.getDate();return e<o||e===o&&t-1<s||e===o&&t-1===s&&i<l}return!0},luhn:function(e){for(var t=e.length,i=0,n=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],r=0;t--;)r+=n[i][parseInt(e.charAt(t),10)],i^=1;return r%10==0&&r>0},mod11And10:function(e){for(var t=5,i=e.length,n=0;n<i;n++)t=(2*(t||10)%11+parseInt(e.charAt(n),10))%10;return 1===t},mod37And36:function(e,t){t=t||"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";for(var i=t.length,n=e.length,r=Math.floor(i/2),a=0;a<n;a++)r=(2*(r||i)%(i+1)+t.indexOf(e.charAt(a)))%i;return 1===r}}}(window.jQuery),function(e){e.fn.bootstrapValidator.i18n.base64=e.extend(e.fn.bootstrapValidator.i18n.base64||{},{default:"Please enter a valid base 64 encoded"}),e.fn.bootstrapValidator.validators.base64={validate:function(e,t,i){var n=t.val();return""===n||/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$/.test(n)}}}(window.jQuery),function(e){e.fn.bootstrapValidator.i18n.between=e.extend(e.fn.bootstrapValidator.i18n.between||{},{default:"Please enter a value between %s and %s",notInclusive:"Please enter a value between %s and %s strictly"}),e.fn.bootstrapValidator.validators.between={html5Attributes:{message:"message",min:"min",max:"max",inclusive:"inclusive"},enableByHtml5:function(e){return"range"===e.attr("type")&&{min:e.attr("min"),max:e.attr("max")}},validate:function(t,i,n){var r=i.val();if(""===r)return!0;if(r=this._format(r),!e.isNumeric(r))return!1;var a=e.isNumeric(n.min)?n.min:t.getDynamicOption(i,n.min),o=e.isNumeric(n.max)?n.max:t.getDynamicOption(i,n.max),s=this._format(a),l=this._format(o);return r=parseFloat(r),!0===n.inclusive||void 0===n.inclusive?{valid:r>=s&&r<=l,message:e.fn.bootstrapValidator.helpers.format(n.message||e.fn.bootstrapValidator.i18n.between.default,[a,o])}:{valid:r>s&&r<l,message:e.fn.bootstrapValidator.helpers.format(n.message||e.fn.bootstrapValidator.i18n.between.notInclusive,[a,o])}},_format:function(e){return(e+"").replace(",",".")}}}(window.jQuery),function(e){e.fn.bootstrapValidator.validators.blank={validate:function(e,t,i){return!0}}}(window.jQuery),function(e){e.fn.bootstrapValidator.i18n.callback=e.extend(e.fn.bootstrapValidator.i18n.callback||{},{default:"Please enter a valid value"}),e.fn.bootstrapValidator.validators.callback={html5Attributes:{message:"message",callback:"callback"},validate:function(t,i,n){var r=i.val(),a=new e.Deferred,o={valid:!0};if(n.callback){var s=e.fn.bootstrapValidator.helpers.call(n.callback,[r,t,i]);o="boolean"==typeof s?{valid:s}:s}return a.resolve(i,"callback",o),a}}}(window.jQuery),function(e){e.fn.bootstrapValidator.i18n.choice=e.extend(e.fn.bootstrapValidator.i18n.choice||{},{default:"Please enter a valid value",less:"Please choose %s options at minimum",more:"Please choose %s options at maximum",between:"Please choose %s - %s options"}),e.fn.bootstrapValidator.validators.choice={html5Attributes:{message:"message",min:"min",max:"max"},validate:function(t,i,n){var r=i.is("select")?t.getFieldElements(i.attr("data-bv-field")).find("option").filter(":selected").length:t.getFieldElements(i.attr("data-bv-field")).filter(":checked").length,a=n.min?e.isNumeric(n.min)?n.min:t.getDynamicOption(i,n.min):null,o=n.max?e.isNumeric(n.max)?n.max:t.getDynamicOption(i,n.max):null,s=!0,l=n.message||e.fn.bootstrapValidator.i18n.choice.default;switch((a&&r<parseInt(a,10)||o&&r>parseInt(o,10))&&(s=!1),!0){case!!a&&!!o:l=e.fn.bootstrapValidator.helpers.format(n.message||e.fn.bootstrapValidator.i18n.choice.between,[parseInt(a,10),parseInt(o,10)]);break;case!!a:l=e.fn.bootstrapValidator.helpers.format(n.message||e.fn.bootstrapValidator.i18n.choice.less,parseInt(a,10));break;case!!o:l=e.fn.bootstrapValidator.helpers.format(n.message||e.fn.bootstrapValidator.i18n.choice.more,parseInt(o,10))}return{valid:s,message:l}}}}(window.jQuery),function(e){e.fn.bootstrapValidator.i18n.color=e.extend(e.fn.bootstrapValidator.i18n.color||{},{default:"Please enter a valid color"}),e.fn.bootstrapValidator.validators.color={SUPPORTED_TYPES:["hex","rgb","rgba","hsl","hsla","keyword"],KEYWORD_COLORS:["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhiLine truncated
9:[[0,3],21,22],10:[[0,4],[21,24],81,82],11:[[0,2],[21,27],81]},34:{0:[0],1:[[0,4],11,[21,24],81],2:[[0,4],7,8,[21,23],25],3:[[0,4],11,[21,23]],4:[[0,6],21],5:[[0,4],6,[21,23]],6:[[0,4],21],7:[[0,3],11,21],8:[[0,3],11,[22,28],81],10:[[0,4],[21,24]],11:[[0,3],22,[24,26],81,82],12:[[0,4],21,22,25,26,82],13:[[0,2],[21,24]],14:[[0,2],[21,24]],15:[[0,3],[21,25]],16:[[0,2],[21,23]],17:[[0,2],[21,23]],18:[[0,2],[21,25],81]},35:{0:[0],1:[[0,5],11,[21,25],28,81,82],2:[[0,6],[11,13]],3:[[0,5],22],4:[[0,3],21,[23,30],81],5:[[0,5],21,[24,27],[81,83]],6:[[0,3],[22,29],81],7:[[0,2],[21,25],[81,84]],8:[[0,2],[21,25],81],9:[[0,2],[21,26],81,82]},36:{0:[0],1:[[0,5],11,[21,24]],2:[[0,3],22,81],3:[[0,2],13,[21,23]],4:[[0,3],21,[23,30],81,82],5:[[0,2],21],6:[[0,2],22,81],7:[[0,2],[21,35],81,82],8:[[0,3],[21,30],81],9:[[0,2],[21,26],[81,83]],10:[[0,2],[21,30]],11:[[0,2],[21,30],81]},37:{0:[0],1:[[0,5],12,13,[24,26],81],2:[[0,3],5,[11,14],[81,85]],3:[[0,6],[21,23]],4:[[0,6],81],5:[[0,3],[21,23]],6:[[0,2],[11,13],34,[81,87]],7:[[0,5],24,25,[81,86]],8:[[0,2],11,[26,32],[81,83]],9:[[0,3],11,21,23,82,83],10:[[0,2],[81,83]],11:[[0,3],21,22],12:[[0,3]],13:[[0,2],11,12,[21,29]],14:[[0,2],[21,28],81,82],15:[[0,2],[21,26],81],16:[[0,2],[21,26]],17:[[0,2],[21,28]]},41:{0:[0],1:[[0,6],8,22,[81,85]],2:[[0,5],11,[21,25]],3:[[0,7],11,[22,29],81],4:[[0,4],11,[21,23],25,81,82],5:[[0,3],5,6,22,23,26,27,81],6:[[0,3],11,21,22],7:[[0,4],11,21,[24,28],81,82],8:[[0,4],11,[21,23],25,[81,83]],9:[[0,2],22,23,[26,28]],10:[[0,2],[23,25],81,82],11:[[0,4],[21,23]],12:[[0,2],21,22,24,81,82],13:[[0,3],[21,30],81],14:[[0,3],[21,26],81],15:[[0,3],[21,28]],16:[[0,2],[21,28],81],17:[[0,2],[21,29]],90:[0,1]},42:{0:[0],1:[[0,7],[11,17]],2:[[0,5],22,81],3:[[0,3],[21,25],81],5:[[0,6],[25,29],[81,83]],6:[[0,2],6,7,[24,26],[82,84]],7:[[0,4]],8:[[0,2],4,21,22,81],9:[[0,2],[21,23],81,82,84],10:[[0,3],[22,24],81,83,87],11:[[0,2],[21,27],81,82],12:[[0,2],[21,24],81],13:[[0,3],21,81],28:[[0,2],22,23,[25,28]],90:[0,[4,6],21]},43:{0:[0],1:[[0,5],11,12,21,22,24,81],2:[[0,4],11,21,[23,25],81],3:[[0,2],4,21,81,82],4:[0,1,[5,8],12,[21,24],26,81,82],5:[[0,3],11,[21,25],[27,29],81],6:[[0,3],11,21,23,24,26,81,82],7:[[0,3],[21,26],81],8:[[0,2],11,21,22],9:[[0,3],[21,23],81],10:[[0,3],[21,28],81],11:[[0,3],[21,29]],12:[[0,2],[21,30],81],13:[[0,2],21,22,81,82],31:[0,1,[22,27],30]},44:{0:[0],1:[[0,7],[11,16],83,84],2:[[0,5],21,22,24,29,32,33,81,82],3:[0,1,[3,8]],4:[[0,4]],5:[0,1,[6,15],23,82,83],6:[0,1,[4,8]],7:[0,1,[3,5],81,[83,85]],8:[[0,4],11,23,25,[81,83]],9:[[0,3],23,[81,83]],12:[[0,3],[23,26],83,84],13:[[0,3],[22,24],81],14:[[0,2],[21,24],26,27,81],15:[[0,2],21,23,81],16:[[0,2],[21,25]],17:[[0,2],21,23,81],18:[[0,3],21,23,[25,27],81,82],19:[0],20:[0],51:[[0,3],21,22],52:[[0,3],21,22,24,81],53:[[0,2],[21,23],81]},45:{0:[0],1:[[0,9],[21,27]],2:[[0,5],[21,26]],3:[[0,5],11,12,[21,32]],4:[0,1,[3,6],11,[21,23],81],5:[[0,3],12,21],6:[[0,3],21,81],7:[[0,3],21,22],8:[[0,4],21,81],9:[[0,3],[21,24],81],10:[[0,2],[21,31]],11:[[0,2],[21,23]],12:[[0,2],[21,29],81],13:[[0,2],[21,24],81],14:[[0,2],[21,25],81]},46:{0:[0],1:[0,1,[5,8]],2:[0,1],3:[0,[21,23]],90:[[0,3],[5,7],[21,39]]},50:{0:[0],1:[[0,19]],2:[0,[22,38],[40,43]],3:[0,[81,84]]},51:{0:[0],1:[0,1,[4,8],[12,15],[21,24],29,31,32,[81,84]],3:[[0,4],11,21,22],4:[[0,3],11,21,22],5:[[0,4],21,22,24,25],6:[0,1,3,23,26,[81,83]],7:[0,1,3,4,[22,27],81],8:[[0,2],11,12,[21,24]],9:[[0,4],[21,23]],10:[[0,2],11,24,25,28],11:[[0,2],[11,13],23,24,26,29,32,33,81],13:[[0,4],[21,25],81],14:[[0,2],[21,25]],15:[[0,3],[21,29]],16:[[0,3],[21,23],81],17:[[0,3],[21,25],81],18:[[0,3],[21,27]],19:[[0,3],[21,23]],20:[[0,2],21,22,81],32:[0,[21,33]],33:[0,[21,38]],34:[0,1,[22,37]]},52:{0:[0],1:[[0,3],[11,15],[21,23],81],2:[0,1,3,21,22],3:[[0,3],[21,30],81,82],4:[[0,2],[21,25]],5:[[0,2],[21,27]],6:[[0,3],[21,28]],22:[0,1,[22,30]],23:[0,1,[22,28]],24:[0,1,[22,28]],26:[0,1,[22,36]],27:[[0,2],22,23,[25,32]]},53:{0:[0],1:[[0,3],[11,14],21,22,[24,29],81],3:[[0,2],[21,26],28,81],4:[[0,2],[21,28]],5:[[0,2],[21,24]],6:[[0,2],[21,30]],7:[[0,2],[21,24]],8:[[0,2],[21,29]],9:[[0,2],[21,27]],23:[0,1,[22,29],31],25:[[0,4],[22,32]],26:[0,1,[21,28]],27:[0,1,[22,30]],28:[0,1,22,23],29:[0,1,[22,32]],31:[0,2,3,[22,24]],34:[0,[21,23]],33:[0,21,[23,25]],35:[0,[21,28]]},54:{0:[0],1:[[0,2],[21,27]],21:[0,[21,29],32,33],22:[0,[21,29],[31,33]],23:[0,1,[22,38]],24:[0,[21,31]],25:[0,[21,27]],26:[0,[21,27]]},61:{0:[0],1:[[0,4],[11,16],22,[24,26]],2:[[0,4],22],3:[[0,4],[21,24],[26,31]],4:[[0,4],[22,31],81],5:[[0,2],[21,28],81,82],6:[[0,2],[21,32]],7:[[0,2],[21,30]],8:[[0,2],[21,31]],9:[[0,2],[21,29]],10:[[0,2],[21,26]]},62:{0:[0],1:[[0,5],11,[21,23]],2:[0,1],3:[[0,2],21],4:[[0,3],[21,23]],5:[[0,3],[21,25]],6:[[0,2],[21,23]],7:[[0,2],[21,25]],8:[[0,2],[21,26]],9:[[0,2],[21,24],81,82],10:[[0,2],[21,27]],11:[[0,2],[21,26]],12:[[0,2],[21,28]],24:[0,21,[24,29]],26:[0,21,[23,30]],29:[0,1,[21,27]],30:[0,1,[21,27]]},63:{0:[0],1:[[0,5],[21,23]],2:[0,2,[21,25]],21:[0,[21,23],[26,28]],22:[0,[21,24]],23:[0,[21,Line truncated
;return new RegExp("^(?:(?:"+a+")://)(?:\\S+(?::\\S*)?@)?(?:"+(r?"":"(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})")+"(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))"+(r?"?":"")+")(?::\\d{2,5})?(?:/[^\\s]*)?$","i").test(n)}}}(window.jQuery),function(e){e.fn.bootstrapValidator.i18n.uuid=e.extend(e.fn.bootstrapValidator.i18n.uuid||{},{default:"Please enter a valid UUID number",version:"Please enter a valid UUID version %s number"}),e.fn.bootstrapValidator.validators.uuid={html5Attributes:{message:"message",version:"version"},validate:function(t,i,n){var r=i.val();if(""===r)return!0;var a={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i},o=n.version?n.version+"":"all";return{valid:null===a[o]||a[o].test(r),message:n.version?e.fn.bootstrapValidator.helpers.format(n.message||e.fn.bootstrapValidator.i18n.uuid.version,n.version):n.message||e.fn.bootstrapValidator.i18n.uuid.default}}}}(window.jQuery),function(e){e.fn.bootstrapValidator.i18n.vat=e.extend(e.fn.bootstrapValidator.i18n.vat||{},{default:"Please enter a valid VAT number",countryNotSupported:"The country code %s is not supported",country:"Please enter a valid VAT number in %s",countries:{AT:"Austria",BE:"Belgium",BG:"Bulgaria",BR:"Brazil",CH:"Switzerland",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",EE:"Estonia",ES:"Spain",FI:"Finland",FR:"France",GB:"United Kingdom",GR:"Greek",EL:"Greek",HU:"Hungary",HR:"Croatia",IE:"Ireland",IS:"Iceland",IT:"Italy",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",MT:"Malta",NL:"Netherlands",NO:"Norway",PL:"Poland",PT:"Portugal",RO:"Romania",RU:"Russia",RS:"Serbia",SE:"Sweden",SI:"Slovenia",SK:"Slovakia",VE:"Venezuela",ZA:"South Africa"}}),e.fn.bootstrapValidator.validators.vat={html5Attributes:{message:"message",country:"country"},COUNTRY_CODES:["AT","BE","BG","BR","CH","CY","CZ","DE","DK","EE","EL","ES","FI","FR","GB","GR","HR","HU","IE","IS","IT","LT","LU","LV","MT","NL","NO","PL","PT","RO","RU","RS","SE","SK","SI","VE","ZA"],validate:function(t,i,n){var r=i.val();if(""===r)return!0;var a=n.country;return a?"string"==typeof a&&-1!==e.inArray(a.toUpperCase(),this.COUNTRY_CODES)||(a=t.getDynamicOption(i,a)):a=r.substr(0,2),-1===e.inArray(a,this.COUNTRY_CODES)?{valid:!1,message:e.fn.bootstrapValidator.helpers.format(e.fn.bootstrapValidator.i18n.vat.countryNotSupported,a)}:!!this[["_",a.toLowerCase()].join("")](r)||{valid:!1,message:e.fn.bootstrapValidator.helpers.format(n.message||e.fn.bootstrapValidator.i18n.vat.country,e.fn.bootstrapValidator.i18n.vat.countries[a.toUpperCase()])}},_at:function(e){if(/^ATU[0-9]{8}$/.test(e)&&(e=e.substr(2)),!/^U[0-9]{8}$/.test(e))return!1;e=e.substr(1);for(var t=0,i=[1,2,1,2,1,2,1],n=0,r=0;r<7;r++)n=parseInt(e.charAt(r),10)*i[r],n>9&&(n=Math.floor(n/10)+n%10),t+=n;return t=10-(t+4)%10,10===t&&(t=0),t+""===e.substr(7,1)},_be:function(e){return/^BE[0]{0,1}[0-9]{9}$/.test(e)&&(e=e.substr(2)),!!/^[0]{0,1}[0-9]{9}$/.test(e)&&(9===e.length&&(e="0"+e),"0"!==e.substr(1,1)&&(parseInt(e.substr(0,8),10)+parseInt(e.substr(8,2),10))%97==0)},_bg:function(t){if(/^BG[0-9]{9,10}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9,10}$/.test(t))return!1;var i=0,n=0;if(9===t.length){for(n=0;n<8;n++)i+=parseInt(t.charAt(n),10)*(n+1);if(10===(i%=11))for(i=0,n=0;n<8;n++)i+=parseInt(t.charAt(n),10)*(n+3);return(i%=10)+""===t.substr(8)}if(10===t.length){return function(t){var i=parseInt(t.substr(0,2),10)+1900,n=parseInt(t.substr(2,2),10),r=parseInt(t.substr(4,2),10);if(n>40?(i+=100,n-=40):n>20&&(i-=100,n-=20),!e.fn.bootstrapValidator.helpers.date(i,n,r))return!1;for(var a=0,o=[2,4,8,5,10,9,7,3,6],s=0;s<9;s++)a+=parseInt(t.charAt(s),10)*o[s];return(a=a%11%10)+""===t.substr(9,1)}(t)||function(e){for(var t=0,i=[21,19,17,13,11,9,7,3,1],n=0;n<9;n++)t+=parseInt(e.charAt(n),10)*i[n];return(t%=10)+""===e.substr(9,1)}(t)||function(e){for(var t=0,i=[4,3,2,7,6,5,4,3,2],n=0;n<9;n++)t+=parseInt(e.charAt(n),10)*i[n];return 10!=(t=11-t%11)&&(11===t&&(t=0),t+""===e.substr(9,1))}(t)}return!1},_br:function(e){if(""===e)return!0;var t=e.replace(/[^\d]+/g,"");if(""===t||14!==t.length)return!1;if("00000000000000"===t||"11111111111111"===t||"22222222222222"===t||"33333333333333"===t||"44444444444444"===t||"55555555555555"===t||"66666666666666"===t||"77777777777777"===t||"88888888888888"===t||"99999999999999"===t)return!1;for(var i=t.length-2,n=t.substring(0,i),r=t.substring(i),a=0,o=i-7,s=i;s>=1;s--)a+=parseInt(n.charAt(i-s),10)*o--,o<2&&(o=9);var l=a%11<2?0:11-a%11;if(l!==parseInt(r.charLine truncated
s.left+a[0]-n.width()>0?(s.tipLeft=s.left+s.width-a[0],c.css({right:12,left:"auto"})):s.tipLeft=s.left},s.where=[function(){s.autoLeft(),s.tipTop=s.top-a[1]-10,c.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left+s.width+10,s.tipTop=s.top,c.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",t.tips[1])},function(){s.autoLeft(),s.tipTop=s.top+s.height+10,c.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left-a[0]-10,s.tipTop=s.top,c.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",t.tips[1])}],s.where[u-1](),1===u?s.top-(n.scrollTop()+a[1]+16)<0&&s.where[2]():2===u?n.width()-(s.left+s.width+a[0]+16)>0||s.where[3]():3===u?s.top-n.scrollTop()+s.height+a[1]+16-n.height()>0&&s.where[0]():4===u&&a[0]+16-s.left>0&&s.where[1](),r.find("."+l[5]).css({"background-color":t.tips[1],"padding-right":t.closeBtn?"30px":""}),r.css({left:s.tipLeft-(t.fixed?n.scrollLeft():0),top:s.tipTop-(t.fixed?n.scrollTop():0)})},s.pt.move=function(){var e=this,t=e.config,r=i(document),s=e.layero,l=s.find(t.move),c=s.find(".layui-layer-resize"),u={};return t.move&&l.css("cursor","move"),l.on("mousedown",function(e){e.preventDefault(),t.move&&(u.moveStart=!0,u.offset=[e.clientX-parseFloat(s.css("left")),e.clientY-parseFloat(s.css("top"))],a.moveElem.css("cursor","move").show())}),c.on("mousedown",function(e){e.preventDefault(),u.resizeStart=!0,u.offset=[e.clientX,e.clientY],u.area=[s.outerWidth(),s.outerHeight()],a.moveElem.css("cursor","se-resize").show()}),r.on("mousemove",function(i){if(u.moveStart){var r=i.clientX-u.offset[0],a=i.clientY-u.offset[1],l="fixed"===s.css("position");if(i.preventDefault(),u.stX=l?0:n.scrollLeft(),u.stY=l?0:n.scrollTop(),!t.moveOut){var c=n.width()-s.outerWidth()+u.stX,d=n.height()-s.outerHeight()+u.stY;r<u.stX&&(r=u.stX),r>c&&(r=c),a<u.stY&&(a=u.stY),a>d&&(a=d)}s.css({left:r,top:a})}if(t.resize&&u.resizeStart){var r=i.clientX-u.offset[0],a=i.clientY-u.offset[1];i.preventDefault(),o.style(e.index,{width:u.area[0]+r,height:u.area[1]+a}),u.isResize=!0,t.resizing&&t.resizing(s)}}).on("mouseup",function(e){u.moveStart&&(delete u.moveStart,a.moveElem.hide(),t.moveEnd&&t.moveEnd(s)),u.resizeStart&&(delete u.resizeStart,a.moveElem.hide())}),e},s.pt.callback=function(){function e(){!1===(r.cancel&&r.cancel(t.index,n))||o.close(t.index)}var t=this,n=t.layero,r=t.config;t.openLayer(),r.success&&(2==r.type?n.find("iframe").on("load",function(){r.success(n,t.index)}):r.success(n,t.index)),6==o.ie&&t.IE6(n),n.find("."+l[6]).children("a").on("click",function(){var e=i(this).index();if(0===e)r.yes?r.yes(t.index,n):r.btn1?r.btn1(t.index,n):o.close(t.index);else{!1===(r["btn"+(e+1)]&&r["btn"+(e+1)](t.index,n))||o.close(t.index)}}),n.find("."+l[7]).on("click",e),r.shadeClose&&i("#layui-layer-shade"+t.index).on("click",function(){o.close(t.index)}),n.find(".layui-layer-min").on("click",function(){!1===(r.min&&r.min(n))||o.min(t.index,r)}),n.find(".layui-layer-max").on("click",function(){i(this).hasClass("layui-layer-maxmin")?(o.restore(t.index),r.restore&&r.restore(n)):(o.full(t.index,r),setTimeout(function(){r.full&&r.full(n)},100))}),r.end&&(a.end[t.index]=r.end)},a.reselect=function(){i.each(i("select"),function(e,t){var n=i(this);n.parents("."+l[0])[0]||1==n.attr("layer")&&i("."+l[0]).length<1&&n.removeAttr("layer").show(),n=null})},s.pt.IE6=function(e){i("select").each(function(e,t){var n=i(this);n.parents("."+l[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide(),n=null})},s.pt.openLayer=function(){var e=this;o.zIndex=e.config.zIndex,o.setTop=function(e){var t=function(){o.zIndex++,e.css("z-index",o.zIndex+1)};return o.zIndex=parseInt(e[0].style.zIndex),e.on("mousedown",t),o.zIndex}},a.record=function(e){var t=[e.width(),e.height(),e.position().top,e.position().left+parseFloat(e.css("margin-left"))];e.find(".layui-layer-max").addClass("layui-layer-maxmin"),e.attr({area:t})},a.rescollbar=function(e){l.html.attr("layer-full")==e&&(l.html[0].style.removeProperty?l.html[0].style.removeProperty("overflow"):l.html[0].style.removeAttribute("overflow"),l.html.removeAttr("layer-full"))},e.layer=o,o.getChildFrame=function(e,t){return t=t||i("."+l[4]).attr("times"),i("#"+l[0]+t).find("iframe").contents().find(e)},o.getFrameIndex=function(e){return i("#"+e).parents("."+l[4]).attr("times")},o.iframeAuto=function(e){if(e){var t=o.getChildFrame("html",e).outerHeight(),n=i("#"+l[0]+e),r=n.find(l[1]).outerHeight()||0,a=n.find("."+l[6]).outerHeight()||0;n.css({height:t+r+a}),n.find("iframe").css({height:t})}},o.iframeSrc=function(e,t){i("#"+l[0]+e).find("iframe").attr("src",t)},o.style=function(e,t,n){var r=i("#"+l[0]+e),o=r.find(".layui-layer-content"),s=r.attr("type"),c=r.find(l[1]).outerHeight()||0,u=r.find("."+l[6]).outerHeight()||0;r.attr("minLeft");s!==a.type[3]&&s!==a.type[4]&&(n||(parseFloat(t.widLine truncated