PageSourceSearch

https://www.gimic.org/assets/application-b49bb5a8169b32ceb78861b8d7f2bce52da0e72f411e7f0d39bc034e8261fcc9.js

js gimic.org collected 2026-10-07 13:13:33 UTC 696,662 bytes, 22 lines download raw bytes

1function removeAndHideInput(e){inputs=e.find("[name^='answers']"),inputs.each(function(){$(this).is(":checkbox, :radio")?$(this).prop("checked",!1):$(this).val(""),$(this).change()}),e.hide()}function toggleQuestionFormat(){$("#question_format").hide(),"text_field"===$("select#question_field_type").val()&&$("#question_format").show()}function toggleQuestionChoices(){var e=["select","radio","check_box","sorting"],t=$("select#question_field_type").val();$("#question_choices").hide(),-1!=$.inArray(t,e)&&$("#question_choices").show()}function toggleQuestionRange(){$("#question_range").hide(),"numeric"===$("select#question_field_format").val()&&$("#question_range").show()}function flashTimeOut(){window.setTimeout(function(){$(".alert-custom").alert("close")},5e3)}function addSearchQuestions(){$("#form-questions-search").typeWatch({wait:500,highlight:!0,allowSubmit:!0,captureLength:3,callback:function(e){$.ajax({url:$(this).data("url"),data:{question_name:e},method:"GET",dataType:"script"})}})}function addSearchSections(){$("#form-sections-search").typeWatch({wait:500,highlight:!0,allowSubmit:!0,captureLength:3,callback:function(e){$.ajax({url:$(this).data("url"),data:{section_name:e},method:"GET",dataType:"script"})}})}function addToClipboard(){var e=new ClipboardJS(".clip-btn");e.on("success",function(e){$(e.trigger).tooltip("dispose").attr("data-original-title","Copi\xe9 !").tooltip("show"),setTimeout(function(){$(e.trigger).tooltip("dispose")},1e3)}),e.on("error",function(e){$(e.trigger).tooltip("dispose").attr("data-original-title","Erreur !").tooltip("show"),setTimeout(function(){$(e.trigger).tooltip("dispose")},1e3)})}function addSelectPicker(){$(".selectpicker").each(function(){var e=$
1(this);e.selectpicker({liveSearch:!0,liveSearchNormalize:!0,liveSearchStyle:"contains",showSubtext:!0,dropdownAlignRight:"auto",dropupAuto:!1,style:"btn-selectpicker"}),e.toggleClass("selectpicker"),e.data("select-url")&&e.ajaxSelectPicker({ajax:{url:e.data("select-url"),method:"GET",data:function(){return{q:"{{{q}}}"}}},minLength:3,preserveSelected:!1,langCode:"fr",requestDelay:300})})}function addDatePicker(){$("[data-provide='datepicker']").each(function(){$(this).datepicker({uiLibrary:"bootstrap",locale:"fr-fr",format:"dd/mm/yyyy",icons:{previousMonth:'<i class="fas fa-chevron-left"></i>',nextMonth:'<i class="fas fa-chevron-right"></i>'}})})}function duplicationCheck(){$('[data-toggle="duplication-check"]').each(function(){var t,n=$(this);n.removeAttr("data-toggle"),n.on("keyup",function(){clearTimeout(t);var e=n.val();t=setTimeout(function(){$.ajax({data:{id:n.data("id"),attribute:n.data("attribute"),value:e},type:"POST",url:n.data("url"),headers:{"X-CSRF-Token":document.querySelector("meta[name=csrf-token]").content}})},500)})})}var ready,set_positions,ready;(function(){var e=this;(function(){(function(){this.Rails={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:{selector:"button[data-remote]:not([form]), button[data-confirm]:not([form])",exclude:"form button"},inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form:not([data-turbo=true])",formInputClickSelector:"form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",formDisableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",formEnableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]"}}).call(this)}).call(e);var b=e.Rails;(function(){(function(){var t;t=null,b.loadCSPNonce=function(){var e;return t=null!=(e=document.querySelector("meta[name=csp-nonce]"))?e.content:void 0},b.cspNonce=function(){return null!=t?t:b.loadCSPNonce()}}).call(this),function(){var i,n;n=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,b.matches=function(e,t){return null!=t.exclude?n.call(e,t.selector)&&!n.call(e,t.exclude):n.call(e,t)},i="_ujsData",b.getData=function(e,t){var n;return null!=(n=e[i])?n[t]:void 0},b.setData=function(e,t,n){return null==e[i]&&(e[i]={}),e[i][t]=n},b.isContentEditable=function(e){var t;for(t=!1;;){if(e.isContentEditable){t=!0;break}if(!(e=e.parentElement))break}return t},b.$=function(e){return Array.prototype.slice.call(document.querySelectorAll(e))}}.call(this),function(){var n,i,o;n=b.$,o=b.csrfToken=function(){var e;return(e=document.querySelector("meta[name=csrf-token]"))&&e.content},i=b.csrfParam=function(){var e;return(e=document.querySelector("meta[name=csrf-param]"))&&e.content},b.CSRFProtection=function(e){var t;if(null!=(t=o()))return e.setRequestHeader("X-CSRF-Token",t)},b.refreshCSRFTokens=function(){var e,t;if(t=o(),e=i(),null!=t&&null!=e)return n('form input[name="'+e+'"]').forEach(function(e){return e.value=t})}}.call(this),function(){var o,t,r,n;r=b.matches,"function"!=typeof(o=window.CustomEvent)&&((o=function(e,t){var n;return(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}).prototype=window.Event.prototype,n=o.prototype.preventDefault,o.prototype.preventDefault=function(){var e;return e=n.call(this),this.cancelable&&!this.defaultPrevented&&Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),e}),t=b.fire=function(e,t,n){var i;return i=new o(t,{bubbles:!0,cancelable:!0,detail:n}),e.dispatchEvent(i),!i.defaultPrevented},b.stopEverything=function(e){return t(e.target,"ujs:everythingStopped"),e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()},b.delegate=function(e,n,t,i){return e.addEventListener(t,function(e){var t;for(t=e.target;t instanceof Element&&!r(t,n);)t=t.parentNode;if(t instanceof Element&&!1===i.call(t,e))return e.preventDefault(),e.stopPropagation()})}}.call(this),function(){var t,i,e,r,o,s;r=b.cspNonce,i=b.CSRFProtection,b.fire,t={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},b.ajax=function(n){var i;return n=o(n),i=e(n,function(){var e,t;return t=s(null!=(e=i.response)?e:i.responseText,i.getResponseHeader("Content-Type")),2===Math.floor(i.status/100)?"function"==typeof n.success&&n.success(t,i.statusText,i):"function"==typeof n.error&&n.error(t,i.statusText,i),"function"==typeof n.complete?n.complete(i,i.statusText):void 0}),!(null!=n.beforeSend&&!n.beforeSend(i,n))&&(i.readyState===XMLHttpRequest.OPENED?i.send(n.data):void 0)},o=function(e){return e.url=e.url||location.href,e.type=e.type.toUpperCase(),"GET"===e.type&&e.data&&(e.url.indexOf("?")<0?e.url+="?"+e.data:e.url+="&"+e.data),null==t[e.dataType]&&(e.dataType="*"),e.accept=t[e.dataType],"*"!==e.dataType&&(e.accept+=", */*; q=0.01"),e},e=function(e,t){var n;return(n=new XMLHttpRequest).open(e.type,e.url,!0),n.setRequestHeader("Accept",e.accept),"string"==typeof e.data&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),e.crossDomain||(n.setRequestHeader("X-Requested-With","XMLHttpRequest"),i(n)),n.withCredentials=!!e.withCredentials,n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE)return t(n)},n},s=function(e,t){var n,i;if("string"==typeof e&&"string"==typeof t)if(t.match(/\bjson\b/))try{e=JSON.parse(e)}catch(o){}else if(t.match(/\b(?:java|ecma)script\b/))(i=document.createElement("script")).setAttribute("nonce",r()),i.text=e,document.head.appendChild(i).parentNode.removeChild(i);else if(t.match(/\b(xml|html|svg)\b/)){n=new DOMParser,t=t.replace(/;.+/,"");try{e=n.parseFromString(e,t)}catch(o){}}return e},b.href=function(e){return e.href},b.isCrossDomain=function(e){var t,n;(t=document.createElement("a")).href=location.href,n=document.createElement("a");try{return n.href=e,!((!n.protocol||":"===n.protocol)&&!n.host||t.protocol+"//"+t.host==n.protocol+"//"+n.host)}catch(i){return i,!0}}}.call(this),function(){var o,r;
1o=b.matches,r=function(e){return Array.prototype.slice.call(e)},b.serializeElement=function(e,t){var n,i;return n=[e],o(e,"form")&&(n=r(e.elements)),i=[],n.forEach(function(t){if(t.name&&!t.disabled&&!o(t,"fieldset[disabled] *"))return o(t,"select")?r(t.options).forEach(function(e){if(e.selected)return i.push({name:t.name,value:e.value})}):t.checked||-1===["radio","checkbox","submit"].indexOf(t.type)?i.push({name:t.name,value:t.value}):void 0}),t&&i.push(t),i.map(function(e){return null!=e.name?encodeURIComponent(e.name)+"="+encodeURIComponent(e.value):e}).join("&")},b.formElements=function(e,t){return o(e,"form")?r(e.elements).filter(function(e){return o(e,t)}):r(e.querySelectorAll(t))}}.call(this),function(){var t,r,n;r=b.fire,n=b.stopEverything,b.handleConfirm=function(e){if(!t(this))return n(e)},b.confirm=function(e){return confirm(e)},t=function(e){var t,n,i;if(!(i=e.getAttribute("data-confirm")))return!0;if(t=!1,r(e,"confirm")){try{t=b.confirm(i,e)}catch(o){}n=r(e,"confirm:complete",[t])}return t&&n}}.call(this),function(){var n,i,o,r,s,a,t,l,c,d,u,p,h;u=b.matches,l=b.getData,p=b.setData,h=b.stopEverything,t=b.formElements,c=b.isContentEditable,b.handleDisabledElement=function(e){if(this.disabled)return h(e)},b.enableElement=function(e){var t;if(e instanceof Event){if(d(e))return;t=e.target}else t=e;if(!c(t))return u(t,b.linkDisableSelector)?a(t):u(t,b.buttonDisableSelector)||u(t,b.formEnableSelector)?r(t):u(t,b.formSubmitSelector)?s(t):void 0},b.disableElement=function(e){var t;if(t=e instanceof Event?e.target:e,!c(t))return u(t,b.linkDisableSelector)?o(t):u(t,b.buttonDisableSelector)||u(t,b.formDisableSelector)?n(t):u(t,b.formSubmitSelector)?i(t):void 0},o=function(e){var t;if(!l(e,"ujs:disabled"))return null!=(t=e.getAttribute("data-disable-with"))&&(p(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t),e.addEventListener("click",h),p(e,"ujs:disabled",!0)},a=function(e){var t;return null!=(t=l(e,"ujs:enable-with"))&&(e.innerHTML=t,p(e,"ujs:enable-with",null)),e.removeEventListener("click",h),p(e,"ujs:disabled",null)},i=function(e){return t(e,b.formDisableSelector).forEach(n)},n=function(e){var t;if(!l(e,"ujs:disabled"))return null!=(t=e.getAttribute("data-disable-with"))&&(u(e,"button")?(p(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t):(p(e,"ujs:enable-with",e.value),e.value=t)),e.disabled=!0,p(e,"ujs:disabled",!0)},s=function(e){return t(e,b.formEnableSelector).forEach(r)},r=function(e){var t;return null!=(t=l(e,"ujs:enable-with"))&&(u(e,"button")?e.innerHTML=t:e.value=t,p(e,"ujs:enable-with",null)),e.disabled=!1,p(e,"ujs:disabled",null)},d=function(e){var t,n;return null!=(null!=(n=null!=(t=e.detail)?t[0]:void 0)?n.getResponseHeader("X-Xhr-Redirect"):void 0)}}.call(this),function(){var l,c;c=b.stopEverything,l=b.isContentEditable,b.handleMethod=function(e){var t,n,i,o,r,s,a;if((a=(s=this).getAttribute("data-method"))&&!l(this))return r=b.href(s),n=b.csrfToken(),t=b.csrfParam(),i=document.createElement("form"),o="<input name='_method' value='"+a+"' type='hidden' />",null==t||null==n||b.isCrossDomain(r)||(o+="<input name='"+t+"' value='"+n+"' type='hidden' />"),o+='<input type="submit" />',i.method="post",i.action=r,i.target=s.target,i.innerHTML=o,i.style.display="none",document.body.appendChild(i),i.querySelector('[type="submit"]').click(),c(e)}}.call(this),function(){var l,c,d,u,p,h,f,g,m,v,y=[].slice;f=b.matches,d=b.getData,m=b.setData,c=b.fire,v=b.stopEverything,l=b.ajax,p=b.isCrossDomain,g=b.serializeElement,u=b.isContentEditable,h=function(e){var t;return null!=(t=e.getAttribute("data-remote"))&&"false"!==t},b.handleRemote=function(e){var t,n,i,o,r,s,a;return!h(o=this)||(c(o,"ajax:before")?u(o)?(c(o,"ajax:stopped"),!1):(a=o.getAttribute("data-with-credentials"),i=o.getAttribute("data-type")||"script",f(o,b.formSubmitSelector)?(t=d(o,"ujs:submit-button"),r=d(o,"ujs:submit-button-formmethod")||o.method,s=d(o,"ujs:submit-button-formaction")||o.getAttribute("action")||location.href,"GET"===r.toUpperCase()&&(s=s.replace(/\?.*$/,"")),"multipart/form-data"===o.enctype?(n=new FormData(o),null!=t&&n.append(t.name,t.value)):n=g(o,t),m(
1o,"ujs:submit-button",null),m(o,"ujs:submit-button-formmethod",null),m(o,"ujs:submit-button-formaction",null)):f(o,b.buttonClickSelector)||f(o,b.inputChangeSelector)?(r=o.getAttribute("data-method"),s=o.getAttribute("data-url"),n=g(o,o.getAttribute("data-params"))):(r=o.getAttribute("data-method"),s=b.href(o),n=o.getAttribute("data-params")),l({type:r||"GET",url:s,data:n,dataType:i,beforeSend:function(e,t){return c(o,"ajax:beforeSend",[e,t])?c(o,"ajax:send",[e]):(c(o,"ajax:stopped"),!1)},success:function(){var e;return e=1<=arguments.length?y.call(arguments,0):[],c(o,"ajax:success",e)},error:function(){var e;return e=1<=arguments.length?y.call(arguments,0):[],c(o,"ajax:error",e)},complete:function(){var e;return e=1<=arguments.length?y.call(arguments,0):[],c(o,"ajax:complete",e)},crossDomain:p(s),withCredentials:null!=a&&"false"!==a}),v(e)):(c(o,"ajax:stopped"),!1))},b.formSubmitButtonClick=function(){var e,t;if(t=(e=this).form)return e.name&&m(t,"ujs:submit-button",{name:e.name,value:e.value}),m(t,"ujs:formnovalidate-button",e.formNoValidate),m(t,"ujs:submit-button-formaction",e.getAttribute("formaction")),m(t,"ujs:submit-button-formmethod",e.getAttribute("formmethod"))},b.preventInsignificantClick=function(e){var t,n,i,o;if(o=((i=this).getAttribute("data-method")||"GET").toUpperCase(),t=i.getAttribute("data-params"),n=(e.metaKey||e.ctrlKey)&&"GET"===o&&!t,null!=e.button&&0!==e.button||n)return e.stopImmediatePropagation()}}.call(this),function(){var e,i,t,n,o,r,s,a,l,c,d,u,p,h,f;if(r=b.fire,t=b.delegate,a=b.getData,e=b.$,f=b.refreshCSRFTokens,i=b.CSRFProtection,p=b.loadCSPNonce,o=b.enableElement,n=b.disableElement,c=b.handleDisabledElement,l=b.handleConfirm,h=b.preventInsignificantClick,u=b.handleRemote,s=b.formSubmitButtonClick,d=b.handleMethod,"undefined"!=typeof jQuery&&null!==jQuery&&null!=jQuery.ajax){if(jQuery.rails)throw new Error("If you load both jquery_ujs and rails-ujs, use rails-ujs only.");jQuery.rails=b,jQuery.ajaxPrefilter(function(e,t,n){if(!e.crossDomain)return i(n)})}b.start=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",function(){return e(b.formEnableSelector).forEach(function(e){if(a(e,"ujs:disabled"))return o(e)}),e(b.linkDisableSelector).forEach(function(e){if(a(e,"ujs:disabled"))return o(e)})}),t(document,b.linkDisableSelector,"ajax:complete",o),t(document,b.linkDisableSelector,"ajax:stopped",o),t(document,b.buttonDisableSelector,"ajax:complete",o),t(document,b.buttonDisableSelector,"ajax:stopped",o),t(document,b.linkCl
1ickSelector,"click",h),t(document,b.linkClickSelector,"click",c),t(document,b.linkClickSelector,"click",l),t(document,b.linkClickSelector,"click",n),t(document,b.linkClickSelector,"click",u),t(document,b.linkClickSelector,"click",d),t(document,b.buttonClickSelector,"click",h),t(document,b.buttonClickSelector,"click",c),t(document,b.buttonClickSelector,"click",l),t(document,b.buttonClickSelector,"click",n),t(document,b.buttonClickSelector,"click",u),t(document,b.inputChangeSelector,"change",c),t(document,b.inputChangeSelector,"change",l),t(document,b.inputChangeSelector,"change",u),t(document,b.formSubmitSelector,"submit",c),t(document,b.formSubmitSelector,"submit",l),t(document,b.formSubmitSelector,"submit",u),t(document,b.formSubmitSelector,"submit",function(e){return setTimeout(function(){return n(e)},13)}),t(document,b.formSubmitSelector,"ajax:send",n),t(document,b.formSubmitSelector,"ajax:complete",o),t(document,b.formInputClickSelector,"click",h),t(document,b.formInputClickSelector,"click",c),t(document,b.formInputClickSelector,"click",l),t(document,b.formInputClickSelector,"click",s),document.addEventListener("DOMContentLoaded",f),document.addEventListener("DOMContentLoaded",p),window._rails_loaded=!0},window.Rails===b&&r(document,"rails:attachBindings")&&b.start()}.call(this)}).call(this),"object"==typeof module&&module.exports?module.exports=b:"function"==typeof define&&define.amd&&define(b)}).call(this),function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(le,e){"use strict";function g(e,t,n){var i,o,r=(n=n||we).createElement("script");if(r.text=e,t)for(i in Ce)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&r.setAttribute(i,o);n.head.appendChild(r).parentNode.removeChild(r)}function m(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ae[he.call(e)]||"object":typeof e}function a(e){var t=!!e&&"length"in e&&e.length,n=m(e);return!ye(e)&&!be(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function ce(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function t(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function n(e,n,i){return ye(n)?Se.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?Se.grep(e,function(e){return e===n!==i}):"string"!=typeof n?Se.grep(e,function(e){return-1<pe.call(n,e)!==i}):Se.filter(n,e,i)}function i(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function d(e){var n={};return Se.each(e.match(Be)||[],function(e,t){n[t]=!0}),n}function u(e){return e}function p(e){throw e}function l(e,t,n,i){var o;try{e&&ye(o=e.promise)?o.call(e).done(t).fail(n):e&&ye(o=e.then)?o.call(e,t,n):t.apply(undefined,[e].slice(i))}catch(e){n.apply(undefined,[e])}}function o(){we.removeEventListener("DOMContentLoaded",o),le.removeEventListener("load",o),Se.ready()}function r(e,t){return t.toUpperCase()}function h(e){return e.replace(Ue,"ms-").replace(Ve,r)}function s(){this.expando=Se.expando+s.uid++}function c(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Ye.test(e)?JSON.parse(e):e)}function f(e,t,n){var i;if(n===undefined&&1===e.nodeType)if(i="data-"+t.replace(Xe,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=c(n)}catch(o){}Qe.set(e,t,n)}else n=undefined;return n}function v(e,t,n,i){var o,r,s=20,a=i?function(){return i.cur()}:function(){return Se.css(e,t,"")},l=a(),c=n&&n[3]||(Se.cssNumber[t]?"":"px"),d=e.nodeType&&(Se.cssNumber[t]||"px"!==c&&+l)&&Ze.exec(Se.css(e,t));if(d&&d[3]!==c){for(l/=2,c=c||d[3],d=+l||1;s--;)Se.style(e,t,d+c),(1-r)*(1-(r=a()/l||.5))<=0&&(s=0),d/=r;d*=2,Se.style(e,t,d+c),n=n||[]}return n&&(d=+d||+l||0,o=n[1]?d+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=d,i.end=o)),o}function y(e){var t,n=e.ownerDocument,i=e.nodeName,o=rt[i];return o||(t=n.body.appendChild(n.createElement(i)),o=Se.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),rt[i]=o)}function b(e,t){for(var n,i,o=[],r=0,s=e.length;r<s;r++)(i=e[r]).style&&(n=i.style.display,t?("none"===n&&(o[r]=Ke.get(i,"display")||null,o[r]||(i.style.display="")),""===i.style.display&&ot(i)&&(o[r]=y(i))):"none"!==n&&(o[r]="none",Ke.set(i,"display",n)));for(r=0;r<s;r++)null!=o[r]&&(e[r].style.display=o[r]);return e}function w(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],t===undefined||t&&ce(e,t)?Se.merge([e],n):n}function C(e,t){for(var n=0,i=e.length;n<i;n++)Ke.set(e[n],"globalEval",!t||Ke.get(t[n],"globalEval"))}function x(e,t,n,i,o){for(var r,s,a,l,c,d,u=t.createDocumentFragment(),p=[],h=0,f=e.length;h<f;h++)if((r=e[h])||0===r)if("object"===m(r))Se.merge(p,r.nodeType?[r]:r);else if(pt.test(r)){for(s=s||u.appendChild(t.createElement("div")),a=(ct.exec(r)||["",""])[1].toLowerCase(),l=ut[a]||ut._default,s.innerHTML=l[1]+Se.htmlPrefilter(r)+l[2],d=l[0];d--;)s=s.lastChild;Se.merge(p,s.childNodes),(s=u.firstChild).textContent=""}else p.push(t.createTextNode(r));for(u.textContent="",h=0;r=p[h++];)if(i&&-1<Se.inArray(r,i))o&&o.push(r);else if(c=nt(r),s=w(u.appendChild(r),"script"),c&&C(s),n)for(d=0;r=s[d++];)dt.test(r.type||"")&&n.push(r);return u}function k(){return!0}function S(){return!1}function j(e,t,n,i,o,r){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=undefined),t)j(e,a,n,i,t[a],r);return e}if(null==i&&null==o?(o=n,i=n=undefined):null==o&&("string"==typeof n?(o=i,i=undefined):(o=i,i=n,n=undefined)),!1===o)o=S;else if(!o)return e;return 1===r&&(s=o,(o=function(e){return Se().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=Se.guid++)),e.each(function(){Se.event.add(this,t,o,i,n)})}function E(e,i,t){t?(Ke.set(e,i,!1),Se.event.add(e,i,{namespace:!1,handler:function(e){var t,n=Ke.get(this,i);if(1&e.isTrigger&&this[i]){if(n)(Se.event.special[i]||{}).delegateType&&e.stopPropagation();else if(n=ue.call(arguments),Ke.set(this,i,n),this[i](),t=Ke.get(this,i),Ke.set(this,i,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(Ke.set(this,i,Se.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=k)}}
vendor: 4,418 bytes, line 1
1)):Ke.get(e,i)===undefined&&Se.event.add(e,i,k)}function T(e,t){return ce(e,"table")&&ce(11!==t.nodeType?t:t.firstChild,"tr")&&Se(e).children("tbody")[0]||e}function I(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function A(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function D(e,t){var n,i,o,r,s,a;if(1===t.nodeType){if(Ke.hasData(e)&&(a=Ke.get(e).events))for(o in Ke.remove(t,"handle events"),a)for(n=0,i=a[o].length;n<i;n++)Se.event.add(t,o,a[o][n]);Qe.hasData(e)&&(r=Qe.access(e),s=Se.extend({},r),Qe.set(t,s))}}function _(e,t){var n=t.nodeName.toLowerCase();"input"===n&&lt.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function N(n,i,o,r){i=re(i);var e,t,s,a,l,c,d=0,u=n.length,p=u-1,h=i[0],f=ye(h);if(f||1<u&&"string"==typeof h&&!ve.checkClone&&gt.test(h))return n.each(function(e){var t=n.eq(e);f&&(i[0]=h.call(this,e,t.html())),N(t,i,o,r)});if(u&&(t=(e=x(i,n[0].ownerDocument,!1,n,r)).firstChild,1===e.childNodes.length&&(e=t),t||r)){for(a=(s=Se.map(w(e,"script"),I)).length;d<u;d++)l=e,d!==p&&(l=Se.clone(l,!0,!0),a&&Se.merge(s,w(l,"script"))),o.call(n[d],l,d);if(a)for(c=s[s.length-1].ownerDocument,Se.map(s,A),d=0;d<a;d++)l=s[d],dt.test(l.type||"")&&!Ke.access(l,"globalEval")&&Se.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?Se._evalUrl&&!l.noModule&&Se._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):g(l.textContent.replace(mt,""),l,c))}return n}function $(e,t,n){for(var i,o=t?Se.filter(t,e):e,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||Se.cleanData(w(i)),i.parentNode&&(n&&nt(i)&&C(w(i,"script")),i.parentNode.removeChild(i));return e}function L(e,t,n){var i,o,r,s,a=yt.test(t),l=e.style;return(n=n||bt(e))&&(s=n.getPropertyValue(t)||n[t],a&&s&&(s=s.replace(Ae,"$1")||undefined),""!==s||nt(e)||(s=Se.style(e,t)),!ve.pixelBoxStyles()&&vt.test(s)&&Ct.test(t)&&(i=l.width,o=l.minWidth,r=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=n.width,l.width=i,l.minWidth=o,l.maxWidth=r)),s!==undefined?s+"":s}function O(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function P(e){for(var t=e[0].toUpperCase()+e.slice(1),n=xt.length;n--;)if((e=xt[n]+t)in kt)return e}function R(e){var t=Se.cssProps[e]||St[e];return t||(e in kt?e:St[e]=P(e)||e)}function H(e,t,n){var i=Ze.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function M(e,t,n,i,o,r){var s="width"===t?1:0,a=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(c+=Se.css(e,n+et[s],!0,o)),i?("content"===n&&(l-=Se.css(e,"padding"+et[s],!0,o)),"margin"!==n&&(l-=Se.css(e,"border"+et[s]+"Width",!0,o))):(l+=Se.css(e,"padding"+et[s],!0,o),"padding"!==n?l+=Se.css(e,"border"+et[s]+"Width",!0,o):a+=Se.css(e,"border"+et[s]+"Width",!0,o));return!i&&0<=r&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-a-.5))||0),l+c}function F(e,t,n){var i=bt(e),o=(!ve.boxSizingReliable()||n)&&"border-box"===Se.css(e,"boxSizing",!1,i),r=o,s=L(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(vt.test(s)){if(!n)return s;s="auto"}return(!ve.boxSizingReliable()&&o||!ve.reliableTrDimensions()&&ce(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===Se.css(e,"display",!1,i))&&e.getClientRects().length&&(o="border-box"===Se.css(e,"boxSizing",!1,i),(r=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+M(e,t,n||(o?"border":"content"),r,i,s)+"px"}function B(e,t,n,i,o){return new B.prototype.init(e,t,n,i,o)}function z(){At&&(!1===we.hidden&&le.requestAnimationFrame?le.requestAnimationFrame(z):le.setTimeout(z,Se.fx.interval),Se.fx.tick())}function W(){return le.setTimeout(function(){It=undefined}),It=Date.now()}function q(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=et[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function U(e,t,n){for(var i,o=(K.tweeners[t]||[]).concat(K.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,t,e))return i}function V(e,t,n){var i,o,r,s,a,l,c,d,u="width"in t||"height"in t,p=this,h={},f=e.style,g=e.nodeType&&ot(e),m=Ke.get(e,"fxshow");for(i in n.queue||(null==(s=Se._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,p.always(function(){p.always(function(){s.unqueued--,Se.queue(e,"fx").length||s.empty.fire()})})),t)if(o=t[i],Nt.test(o)){if(delete t[i],r=r||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||
vendor: 4,530 bytes, line 1
1!m||m[i]===undefined)continue;g=!0}h[i]=m&&m[i]||Se.style(e,i)}if((l=!Se.isEmptyObject(t))||!Se.isEmptyObject(h))for(i in u&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=Ke.get(e,"display")),"none"===(d=Se.css(e,"display"))&&(c?d=c:(b([e],!0),c=e.style.display||c,d=Se.css(e,"display"),b([e]))),("inline"===d||"inline-block"===d&&null!=c)&&"none"===Se.css(e,"float")&&(l||(p.done(function(){f.display=c}),null==c&&(d=f.display,c="none"===d?"":d)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",p.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1,h)l||(m?"hidden"in m&&(g=m.hidden):m=Ke.access(e,"fxshow",{display:c}),r&&(m.hidden=!g),g&&b([e],!0),p.done(function(){for(i in g||b([e]),Ke.remove(e,"fxshow"),h)Se.style(e,i,h[i])})),l=U(g?m[i]:0,i,p),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}function G(e,t){var n,i,o,r,s;for(n in e)if(o=t[i=h(n)],r=e[n],Array.isArray(r)&&(o=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(s=Se.cssHooks[i])&&"expand"in s)for(n in r=s.expand(r),delete e[i],r)n in e||(e[n]=r[n],t[n]=o);else t[i]=o}function K(r,e,t){var n,s,i=0,o=K.prefilters.length,a=Se.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var e=It||W(),t=Math.max(0,c.startTime+c.duration-e),n=1-(t/c.duration||0),i=0,o=c.tweens.length;i<o;i++)c.tweens[i].run(n);return a.notifyWith(r,[c,n,t]),n<1&&o?t:(o||a.notifyWith(r,[c,1,0]),a.resolveWith(r,[c]),!1)},c=a.promise({elem:r,props:Se.extend({},e),opts:Se.extend(!0,{specialEasing:{},easing:Se.easing._default},t),originalProperties:e,originalOptions:t,startTime:It||W(),duration:t.duration,tweens:[],createTween:function(e,t){var n=Se.Tween(r,c.opts,e,t,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var t=0,n=e?c.tweens.length:0;if(s)return this;for(s=!0;t<n;t++)c.tweens[t].run(1);return e?(a.notifyWith(r,[c,1,0]),a.resolveWith(r,[c,e])):a.rejectWith(r,[c,e]),this}}),d=c.props;for(G(d,c.opts.specialEasing);i<o;i++)if(n=K.prefilters[i].call(c,r,d,c.opts))return ye(n.stop)&&(Se._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return Se.map(d,U,c),ye(c.opts.start)&&c.opts.start.call(r,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),Se.fx.timer(Se.extend(l,{elem:r,anim:c,queue:c.opts.queue})),c}function Q(e){return(e.match(Be)||[]).join(" ")}function Y(e){return e.getAttribute&&e.getAttribute("class")||""}function X(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Be)||[]}function J(n,e,i,o){var t;if(Array.isArray(e))Se.each(e,function(e,t){i||qt.test(n)?o(n,t):J(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,i,o)});else if(i||"object"!==m(e))o(n,e);else for(t in e)J(n+"["+t+"]",e[t],i,o)}function Z(r){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,o=e.toLowerCase().match(Be)||[];if(ye(t))for(;n=o[i++];)"+"===n[0]?(n=n.slice(1)||"*",(r[n]=r[n]||[]).unshift(t)):(r[n]=r[n]||[]).push(t)}}function ee(t,o,r,s){function a(e){var i;return l[e]=!0,Se.each(t[e]||[],function(e,t){var n=t(o,r,s);return"string"!=typeof n||c||l[n]?c?!(i=n):void 0:(o.dataTypes.unshift(n),a(n),!1)}),i}var l={},c=t===nn;return a(o.dataTypes[0])||!l["*"]&&a("*")}function te(e,t){var n,i,o=Se.ajaxSettings.flatOptions||{};for(n in t)t[n]!==undefined&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&Se.extend(!0,e,i),e}function ne(e,t,n){for(var i,o,r,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),i===undefined&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){r=o;break}s||(s=o)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}function ie(e,t,n,i){var o,r,s,a,l,c={},d=e.dataTypes.slice();if(d[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(r=d.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=d.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=c[l+" "+r]||c["* "+r]))for(o in c)if((a=o.split(" "))[1]===r&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[o]:!0!==c[o]&&(r=a[0],d.unshift(a[1]));break}if(!0!==s)if(s&&e["throws"])t=s(t);else try{t=s(t)}catch(u){return{state:"parsererror",error:s?u:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}var de=[],oe=Object.getPrototypeOf,ue=de.slice,re=de.flat?function(e){return de.flat.call(e)}:function(e){return de.concat.apply([],e)}
vendor: 9,188 bytes, lines 1-2
1,se=de.push,pe=de.indexOf,ae={},he=ae.toString,fe=ae.hasOwnProperty,ge=fe.toString,me=ge.call(Object),ve={},ye=function ye(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},be=function be(e){return null!=e&&e===e.window},we=le.document,Ce={type:!0,src:!0,nonce:!0,noModule:!0},xe="3.7.1",ke=/HTML$/i,Se=function(e,t){return new Se.fn.init(e,t)};Se.fn=Se.prototype={jquery:xe,constructor:Se,length:0,toArray:function(){return ue.call(this)},get:function(e){return null==e?ue.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=Se.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return Se.each(this,e)},map:function(n){return this.pushStack(Se.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ue.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(Se.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(Se.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:se,sort:de.sort,splice:de.splice},Se.extend=Se.fn.extend=function(e){var t,n,i,o,r,s,a=e||{},l=1,c=arguments.length,d=!1;for("boolean"==typeof a&&(d=a,a=arguments[l]||{},l++),"object"==typeof a||ye(a)||(a={}),l===c&&(a=this,l--);l<c;l++)if(null!=(t=arguments[l]))for(n in t)o=t[n],"__proto__"!==n&&a!==o&&(d&&o&&(Se.isPlainObject(o)||(r=Array.isArray(o)))?(i=a[n],s=r&&!Array.isArray(i)?[]:r||Se.isPlainObject(i)?i:{},r=!1,a[n]=Se.extend(d,s,o)):o!==undefined&&(a[n]=o));return a},Se.extend({expando:"jQuery"+(xe+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==he.call(e))&&(!(t=oe(e))||"function"==typeof(n=fe.call(t,"constructor")&&t.constructor
2)&&ge.call(n)===me)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){g(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(a(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},text:function(e){var t,n="",i=0,o=e.nodeType;if(!o)for(;t=e[i++];)n+=Se.text(t);return 1===o||11===o?e.textContent:9===o?e.documentElement.textContent:3===o||4===o?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(a(Object(e))?Se.merge(n,"string"==typeof e?[e]:e):se.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:pe.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!ke.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,r=e.length,s=!n;o<r;o++)!t(e[o],o)!==s&&i.push(e[o]);return i},map:function(e,t,n){var i,o,r=0,s=[];if(a(e))for(i=e.length;r<i;r++)null!=(o=t(e[r],r,n))&&s.push(o);else for(r in e)null!=(o=t(e[r],r,n))&&s.push(o);return re(s)},guid:1,support:ve}),"function"==typeof Symbol&&(Se.fn[Symbol.iterator]=de[Symbol.iterator]),Se.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ae["[object "+t+"]"]=t.toLowerCase()});var je=de.pop,Ee=de.sort,Te=de.splice,Ie="[\\x20\\t\\r\\n\\f]",Ae=new RegExp("^"+Ie+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ie+"+$","g");Se.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var De=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;Se.escapeSelector=function(e){return(e+"").replace(De,t)};var _e=we,Ne=se;!function(){function t(){try{return I.activeElement}catch(e){}}function f(e,t,n,i){var o,r,s,a,l,c,d,u=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!i&&(w(t),t=t||I,D)){if(11!==p&&(l=te.exec(e)))if(o=l[1]){if(9===p){if(!(s=t.getElementById(o)))return n;if(s.id===o)return $.call(n,s),n}else if(u&&(s=u.getElementById(o))&&f.contains(t,s)&&s.id===o)return $.call(n,s),n}else{if(l[2])return $.apply(n,t.getElementsByTagName(e)),n;if((o=l[3])&&t.getElementsByClassName)return $.apply(n,t.getElementsByClassName(o)),n}if(!(F[e+" "]||_&&_.test(e))){if(d=e,u=t,1===p&&(Q.test(e)||K.test(e))){for((u=ne.test(e)&&g(t.parentNode)||t)==t&&ve.scope||((a=t.getAttribute("id"))?a=Se.escapeSelector(a):t.setAttribute("id",a=L)),r=(c=m(e)).length;r--;)c[r]=(a?"#"+a:":scope")+" "+v(c[r]);d=c.join(",")}try{return $.apply(n,u.querySelectorAll(d)),n}catch(h){F(e,!0)}finally{a===L&&t.removeAttribute("id")}}}return k(e.replace(Ae,"$1"),t,n,i)}function e(){function n(e,t){return i.push(e+" ")>S.cacheLength&&delete n[i.shift()],n[e+" "]=t}var i=[];return n}function n(e){return e[L]=!0,e}function i(e){var t=I.createElement("fieldset");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(t){return function(e){return ce(e,"input")&&e.type===t}}function r(t){return function(e){return(ce(e,"input")||ce(e,"button"))&&e.type===t}}function s(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&se(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function a(s){return n(function(r){return r=+r,n(function(e,t){for(var n,i=s([],e.length,r),o=i.length;o--;)e[n=i[o]]&&(e[n]=!(t[n]=e[n]))})})}function g(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function w(e){var t,n=e?e.ownerDocument||e:_e;return n!=I&&9===n.nodeType&&n.documentElement&&(A=(I=n).documentElement,D=!Se.isXMLDoc(I),N=A.matches||A.webkitMatchesSelector||A.msMatchesSelector,A.msMatchesSelector&&_e!=I&&(t=I.defaultView)&&t.top!==t&&t.addEventListener("unload",re),ve.getById=i(function(e){return A.appendChild(e).id=Se.expando,!I.getElementsByName||!I.getElementsByName(Se.expando).length}),ve.disconnectedMatch=i(function(e){return N.call(e,"*")}),ve.scope=i(function(){return I.querySelectorAll(":scope")}),ve.cssHas=i(function(){try{return I.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),ve.getById?(S.filter.ID=function(e){var t=e.replace(ie,oe);return function(e){return e.getAttribute("id")===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&D){var n=t.getElementById(e);return n?[n]:[]}}):(S.filter.ID=function(e){var n=e.replace(ie,oe);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&D){var n,i,o,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(o=t.getElementsByName(e),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),S.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},S.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&D)return t.getElementsByClassName(e)},_=[],i(function(e){var t;A.appendChild(e).innerHTML="<a id='"+L+"' href='' disabled='disabled'></a><select id='"+L+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||_.push("\\["+Ie+"*(?:value|"+z+")"),e.querySelectorAll("[id~="+L+"-]").length||_.push("~="),e.querySelectorAll("a#"+L+"+*").length||_.push(".#.+[+~]"),e.querySelectorAll(":checked").length||_.push(":checked"),(t=I.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),A.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&_.push(":enabled",":disabled"),(t=I.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||_.push("\\["+Ie+"*name"+Ie+"*="+Ie+"*(?:''|\"\")")}),ve.cssHas||_.push(":has"),_=_.length&&new RegExp(_.join("|")),B=function(e,t){if(e===t)return T=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!ve.sortDetached&&t.compareDocumentPosition(e)===n?e===I||e.ownerDocument==_e&&f.contains(_e,e)?-1:t===I||t.ownerDocument==_e&&f.contains(_e,t)?1:E?pe.call(E,e)-pe.call(E,t):0:4&n?-1:1)}),I}function l(){}function m(e,t){var n,i,o,r,s,a,l,c=H[e+" "];if(c)return t?0:c.slice(0);for(s=e,a=[],l=S.preFilter;s;){for(r in n&&!(i=G.exec(s))||(i&&(s=s.slice(i[0].length)||s),a.push(o=[])),n=!1,(i=K.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(Ae," ")}),s=s.slice(n.length)),S.filter)!(i=J[r].exec(s))||l[r]&&!(i=l[r](i))||(n=i.shift(),o.push({value:n,type:r,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?f.error(e):H(e,a).slice(0)}function v(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function u(s,e,t){var a=e.dir,l=e.next,c=l||a,d=t&&"parentNode"===c,u=P++;return e.first?function(e,t,n){for(;e=e[a];)if(1===e.nodeType||d)return s(e,t,n);return!1}:function(e,t,n){var i,o,r=[O,u];if(n){for(;e=e[a];
vendor: 4,764 bytes, line 2
2)if((1===e.nodeType||d)&&s(e,t,n))return!0}else for(;e=e[a];)if(1===e.nodeType||d)if(o=e[L]||(e[L]={}),l&&ce(e,l))e=e[a]||e;else{if((i=o[c])&&i[0]===O&&i[1]===u)return r[2]=i[2];if((o[c]=r)[2]=s(e,t,n))return!0}return!1}}function p(o){return 1<o.length?function(e,t,n){for(var i=o.length;i--;)if(!o[i](e,t,n))return!1;return!0}:o[0]}function y(e,t,n){for(var i=0,o=t.length;i<o;i++)f(e,t[i],n);return n}function C(e,t,n,i,o){for(var r,s=[],a=0,l=e.length,c=null!=t;a<l;a++)(r=e[a])&&(n&&!n(r,i,o)||(s.push(r),c&&t.push(a)));return s}function b(h,f,g,m,v,e){return m&&!m[L]&&(m=b(m)),v&&!v[L]&&(v=b(v,e)),n(function(e,t,n,i){var o,r,s,a,l=[],c=[],d=t.length,u=e||y(f||"*",n.nodeType?[n]:n,[]),p=!h||!e&&f?u:C(u,l,h,n,i);if(g?g(p,a=v||(e?h:d||m)?[]:t,n,i):a=p,m)for(o=C(a,c),m(o,[],n,i),r=o.length;r--;)(s=o[r])&&(a[c[r]]=!(p[c[r]]=s));if(e){if(v||h){if(v){for(o=[],r=a.length;r--;)(s=a[r])&&o.push(p[r]=s);v(null,a=[],o,i)}for(r=a.length;r--;)(s=a[r])&&-1<(o=v?pe.call(e,s):l[r])&&(e[o]=!(t[o]=s))}}else a=C(a===t?a.splice(d,a.length):a),v?v(null,t,a,i):$.apply(t,a)})}function h(e){for(var o,t,n,i=e.length,r=S.relative[e[0].type],s=r||S.relative[" "],a=r?1:0,l=u(function(e){return e===o},s,!0),c=u(function(e){return-1<pe.call(o,e)},s,!0),d=[function(e,t,n){var i=!r&&(n||t!=j)||((o=t).nodeType?l(e,t,n):c(e,t,n));return o=null,i}];a<i;a++)if(t=S.relative[e[a].type])d=[u(p(d),t)];else{if((t=S.filter[e[a].type].apply(null,e[a].matches))[L]){for(n=++a;n<i&&!S.relative[e[n].type];n++);return b(1<a&&p(d),1<a&&v(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(Ae,"$1"),t,a<n&&h(e.slice(a,n)),n<i&&h(e=e.slice(n)),n<i&&v(e))}d.push(t)}return p(d)}function c(m,v){var y=0<v.length,b=0<m.length,e=function(e,t,n,i,o){var r,s,a,l=0,c="0",d=e&&[],u=[],p=j,h=e||b&&S.find.TAG("*",o),f=O+=null==p?1:Math.random()||.1,g=h.length;for(o&&(j=t==I||t||o);c!==g&&null!=(r=h[c]);c++){if(b&&r){for(s=0,t||r.ownerDocument==I||(w(r),n=!D);a=m[s++];)if(a(r,t||I,n)){$.call(i,r);break}o&&(O=f)}y&&((r=!a&&r)&&l--,e&&d.push(r))}if(l+=c,y&&c!==l){for(s=0;a=v[s++];)a(d,u,t,n);if(e){if(0<l)for(;c--;)d[c]||u[c]||(u[c]=je.call(i));u=C(u)}$.apply(i,u),o&&!e&&0<u.length&&1<l+v.length&&Se.uniqueSort(i)}return o&&(O=f,j=p),d};return y?n(e):e}function x(e,t){var n,i=[],o=[],r=M[e+" "];if(!r){for(t||(t=m(e)),n=t.length;n--;)(r=h(t[n]))[L]?i.push(r):o.push(r);(r=M(e,c(o,i))).selector=e}return r}function k(e,t,n,i){var o,r,s,a,l,c="function"==typeof e&&e,d=!i&&m(e=c.selector||e);if(n=n||[],1===d.length){if(2<(r=d[0]=d[0].slice(0)).length&&"ID"===(s=r[0]).type&&9===t.nodeType&&D&&S.relative[r[1].type]){if(!(t=(S.find.ID(s.matches[0].replace(ie,oe),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(o=J.needsContext.test(e)?0:r.length;o--&&(s=r[o],!S.relative[a=s.type]);)if((l=S.find[a])&&(i=l(s.matches[0].replace(ie,oe),ne.test(r[0].type)&&g(t.parentNode)||t))){if(r.splice(o,1),!(e=i.length&&v(r)))return $.apply(n,i),n;break}}return(c||x(e,d))(i,t,!D,n,!t||ne.test(e)&&g(t.parentNode)||t),n}var d,S,j,E,T,I,A,D,_,N,$=Ne,L=Se.expando,O=0,P=0,R=e(),H=e(),M=e(),F=e(),B=function(e,t){return e===t&&(T=!0),0},z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",W="(?:\\\\[\\da-fA-F]{1,6}"+Ie+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",q="\\["+Ie+"*("+W+")(?:"+Ie+"*([*^$|!~]?=)"+Ie+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+W+"))|)"+Ie+"*\\]",U=":("+W+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+q+")*)|.*)\\)|)",V=new RegExp(Ie+"+","g"),G=new RegExp("^"+Ie+"*,"+Ie+"*"),K=new RegExp("^"+Ie+"*([>+~]|"+Ie+")"+Ie+"*"),Q=new RegExp(Ie+"|>"),Y=new RegExp(U),X=new RegExp("^"+W+"$"),J={ID:new RegExp("^#("+W+")"),CLASS:new RegExp("^\\.("+W+")"),TAG:new RegExp("^("+W+"|[*])"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Ie+"*(even|odd|(([+-]|)(\\d*)n|)"+Ie+"*(?:([+-]|)"+Ie+"*(\\d+)|))"+Ie+"*\\)|)","i"),bool:new RegExp("^(?:"+z+")$","i"),needsContext:new RegExp("^"+Ie+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Ie+"*((?:-\\d)?\\d*)"+Ie+"*\\)|)(?=[^-]|$)","i")},Z=/^(?:input|select|textarea|button)$/i,ee=/^h\d$/i,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,ie=new RegExp("\\\\[\\da-fA-F]{1,6}"+Ie+"?|\\\\([^\\r\\n\\f])","g"),oe=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=function(){w()},se=u(function(e){return!0===e.disabled&&ce(e,"fieldset")},{dir:"parentNode",next:"legend"});try{$.apply(de=ue.call(_e.childNodes),_e.childNodes),de[_e.childNodes.length].nodeType}catch(ae){$={apply:function(e,t){Ne.apply(e,ue.call(t))}
vendor: 4,837 bytes, line 2
2,call:function(e){Ne.apply(e,ue.call(arguments,1))}}}for(d in f.matches=function(e,t){return f(e,null,null,t)},f.matchesSelector=function(e,t){if(w(e),D&&!F[t+" "]&&(!_||!_.test(t)))try{var n=N.call(e,t);if(n||ve.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(ae){F(t,!0)}return 0<f(t,I,null,[e]).length},f.contains=function(e,t){return(e.ownerDocument||e)!=I&&w(e),Se.contains(e,t)},f.attr=function(e,t){(e.ownerDocument||e)!=I&&w(e);var n=S.attrHandle[t.toLowerCase()],i=n&&fe.call(S.attrHandle,t.toLowerCase())?n(e,t,!D):undefined;return i!==undefined?i:e.getAttribute(t)},f.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Se.uniqueSort=function(e){var t,n=[],i=0,o=0;if(T=!ve.sortStable,E=!ve.sortStable&&ue.call(e,0),Ee.call(e,B),T){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)Te.call(e,n[i],1)}return E=null,e},Se.fn.uniqueSort=function(){return this.pushStack(Se.uniqueSort(ue.apply(this)))},(S=Se.expr={cacheLength:50,createPseudo:n,match:J,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ie,oe),e[3]=(e[3]||e[4]||e[5]||"").replace(ie,oe),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||f.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&f.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return J.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Y.test(n)&&(t=m(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ie,oe).toLowerCase();return"*"===e?function(){return!0}:function(e){return ce(e,t)}},CLASS:function(e){var t=R[e+" "];return t||(t=new RegExp("(^|"+Ie+")"+e+"("+Ie+"|$)"))&&R(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,o){return function(e){var t=f.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===o:"!="===i?t!==o:"^="===i?o&&0===t.indexOf(o):"*="===i?o&&-1<t.indexOf(o):"$="===i?o&&t.slice(-o.length)===o:"~="===i?-1<(" "+t.replace(V," ")+" ").indexOf(o):"|="===i&&(t===o||t.slice(0,o.length+1)===o+"-"))}},CHILD:function(h,e,t,f,g){var m="nth"!==h.slice(0,3),v="last"!==h.slice(-4),y="of-type"===e;return 1===f&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var i,o,r,s,a,l=m!==v?"nextSibling":"previousSibling",c=e.parentNode,d=y&&e.nodeName.toLowerCase(),u=!n&&!y,p=!1;if(c){if(m){for(;l;){for(r=e;r=r[l];)if(y?ce(r,d):1===r.nodeType)return!1;a=l="only"===h&&!a&&"nextSibling"}return!0}if(a=[v?c.firstChild:c.lastChild],v&&u){for(p=(s=(i=(o=c[L]||(c[L]={}))[h]||[])[0]===O&&i[1])&&i[2],r=s&&c.childNodes[s];r=++s&&r&&r[l]||(p=s=0)||a.pop();)if(1===r.nodeType&&++p&&r===e){o[h]=[O,s,p];break}}else if(u&&(p=s=(i=(o=e[L]||(e[L]={}))[h]||[])[0]===O&&i[1]),!1===p)for(;(r=++s&&r&&r[l]||(p=s=0)||a.pop())&&((y?!ce(r,d):1!==r.nodeType)||!++p||(u&&((o=r[L]||(r[L]={}))[h]=[O,p]),r!==e)););return(p-=g)===f||p%f==0&&0<=p/f}}},PSEUDO:function(e,r){var t,s=S.pseudos[e]||S.setFilters[e.toLowerCase()]||f.error("unsupported pseudo: "+e);return s[L]?s(r):1<s.length?(t=[e,e,"",r],S.setFilters.hasOwnProperty(e.toLowerCase())?n(function(e,t){for(var n,i=s(e,r),o=i.length;o--;)e[n=pe.call(e,i[o])]=!(t[n]=i[o])}):function(e){return s(e,0,t)}):s}},pseudos:{not:n(function(e){var i=[],o=[],a=x(e.replace(Ae,"$1"));return a[L]?n(function(e,t,n,i){for(var o,r=a(e,null,i,[]),s=e.length;s--;)(o=r[s])&&(e[s]=!(t[s]=o))}):function(e,t,n){return i[0]=e,a(i,null,n,o),i[0]=null,!o.pop()}}),has:n(function(t){return function(e){return 0<f(t,e).length}}),contains:n(function(t){return t=t.replace(ie,oe),function(e){return-1<(e.textContent||Se.text(e)).indexOf(t)}}),lang:n(function(n){return X.test(n||"")||f.error("unsupported lang: "+n),n=n.replace(ie,oe).toLowerCase(),function(e){var t;do{if(t=D?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=le.location&&le.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===A},focus:function(e){return e===t()&&I.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:s(!1),disabled:s(!0),checked:function(e){return ce(e,"input")&&!!e.checked||ce(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!S.pseudos.empty(e)},header:function(e){return ee.test(e.nodeName)}
vendor: 6,374 bytes, line 2
2,input:function(e){return Z.test(e.nodeName)},button:function(e){return ce(e,"input")&&"button"===e.type||ce(e,"button")},text:function(e){var t;return ce(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:a(function(){return[0]}),last:a(function(e,t){return[t-1]}),eq:a(function(e,t,n){return[n<0?n+t:n]}),even:a(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:a(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:a(function(e,t,n){var i;for(i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:a(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=S.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.pseudos[d]=o(d);for(d in{submit:!0,reset:!0})S.pseudos[d]=r(d);l.prototype=S.filters=S.pseudos,S.setFilters=new l,ve.sortStable=L.split("").sort(B).join("")===L,w(),ve.sortDetached=i(function(e){return 1&e.compareDocumentPosition(I.createElement("fieldset"))}),Se.find=f,Se.expr[":"]=Se.expr.pseudos,Se.unique=Se.uniqueSort,f.compile=x,f.select=k,f.setDocument=w,f.tokenize=m,f.escape=Se.escapeSelector,f.getText=Se.text,f.isXML=Se.isXMLDoc,f.selectors=Se.expr,f.support=Se.support,f.uniqueSort=Se.uniqueSort}();var $e=function(e,t,n){for(var i=[],o=n!==undefined;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&Se(e).is(n))break;i.push(e)}return i},Le=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Oe=Se.expr.match.needsContext,Pe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;Se.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?Se.find.matchesSelector(i,e)?[i]:[]:Se.find.matches(e,Se.grep(t,function(e){return 1===e.nodeType}))},Se.fn.extend({find:function(e){var t,n,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(Se(e).filter(function(){for(t=0;t<i;t++)if(Se.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)Se.find(e,o[t],n);return 1<i?Se.uniqueSort(n):n},filter:function(e){return this.pushStack(n(this,e||[],!1))},not:function(e){return this.pushStack(n(this,e||[],!0))},is:function(e){return!!n(this,"string"==typeof e&&Oe.test(e)?Se(e):e||[],!1).length}});var Re,He=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(Se.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||Re,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):ye(e)?n.ready!==undefined?n.ready(e):e(Se):Se.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:He.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof Se?t[0]:t,Se.merge(this,Se.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:we,!0)),Pe.test(i[1])&&Se.isPlainObject(t))for(i in t)ye(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=we.getElementById(i[2]))&&(this[0]=o,this.length=1),this}).prototype=Se.fn,Re=Se(we);var Me=/^(?:parents|prev(?:Until|All))/,Fe={children:!0,contents:!0,next:!0,prev:!0};Se.fn.extend({has:function(e){var t=Se(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(Se.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,o=this.length,r=[],s="string"!=typeof e&&Se(e);if(!Oe.test(e))for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&Se.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(1<r.length?Se.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?pe.call(Se(e),this[0]):pe.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Se.uniqueSort(Se.merge(this.get(),Se(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Se.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return $e(e,"parentNode")},parentsUntil:function(e,t,n){return $e(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return $e(e,"nextSibling")},prevAll:function(e){return $e(e,"previousSibling")},nextUntil:function(e,t,n){return $e(e,"nextSibling",n)},prevUntil:function(e,t,n){return $e(e,"previousSibling",n)},siblings:function(e){return Le((e.parentNode||{}).firstChild,e)},children:function(e){return Le(e.firstChild)},contents:function(e){return null!=e.contentDocument&&oe(e.contentDocument)?e.contentDocument:(ce(e,"template")&&(e=e.content||e),Se.merge([],e.childNodes))}},function(i,o){Se.fn[i]=function(e,t){var n=Se.map(this,o,e);return"Until"!==i.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=Se.filter(t,n)),1<this.length&&(Fe[i]||Se.uniqueSort(n),Me.test(i)&&n.reverse()),this.pushStack(n)}});var Be=/[^\x20\t\r\n\f]+/g;Se.Callbacks=function(i){i="string"==typeof i?d(i):Se.extend({},i);var o,e,t,n,r=[],s=[],a=-1,l=function(){for(n=n||i.once,t=o=!0;s.length;a=-1)for(e=s.shift();++a<r.length;)!1===r[a].apply(e[0],e[1])&&i.stopOnFalse&&(a=r.length,e=!1);i.memory||(e=!1),o=!1,n&&(r=e?[]:"")},c={add:function(){return r&&(e&&!o&&(a=r.length-1,s.push(e)),function n(e){Se.each(e,function(e,t){ye(t)?i.unique&&c.has(t)||r.push(t):t&&t.length&&"string"!==m(t)&&n(t)})}(arguments),e&&!o&&l()),this},remove:function(){return Se.each(arguments,function(e,t){for(var n;-1<(n=Se.inArray(t,r,n));)r.splice(n,1),n<=a&&a--}),this},has:function(e){return e?-1<Se.inArray(e,r):0<r.length},empty:function(){return r&&(r=[]),this},disable:function(){return n=s=[],r=e="",this},disabled:function(){return!r},lock:function(){return n=s=[],e||o||(r=e=""),this},locked:function(){return!!n},fireWith:function(e,t){return n||(t=[e,(t=t||[]).slice?t.slice():t],s.push(t),o||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!t}};return c},Se.extend({Deferred:function(e){var r=[["notify","progress",Se.Callbacks("memory"),Se.Callbacks("memory"),2],["resolve","done",Se.Callbacks("once memory"),Se.Callbacks("once memory"),0,"resolved"],["reject","fail",Se.Callbacks("once memory"),Se.Callbacks("once memory"),1,"rejected"]],o="pending",s={state:function(){return o},always:function(){return a.done(arguments).fail(arguments),this},"catch":function(e){return s.then(null,e)},pipe:function(){var o=arguments;return Se.Deferred(function(i){Se.each(r,function(e,t){var n=ye(o[t[4]]
vendor: 8,945 bytes, line 2
2)&&o[t[4]];a[t[1]](function(){var e=n&&n.apply(this,arguments);e&&ye(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this,n?[e]:arguments)})}),o=null}).promise()},then:function(t,n,i){function c(r,s,a,l){return function(){var n=this,i=arguments,t=function(){var e,t;if(!(r<d)){if((e=a.apply(n,i))===s.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,ye(t)?l?t.call(e,c(d,s,u,l),c(d,s,p,l)):(d++,t.call(e,c(d,s,u,l),c(d,s,p,l),c(d,s,u,s.notifyWith))):(a!==u&&(n=undefined,i=[e]),(l||s.resolveWith)(n,i))}},o=l?t:function(){try{t()}catch(e){Se.Deferred.exceptionHook&&Se.Deferred.exceptionHook(e,o.error),d<=r+1&&(a!==p&&(n=undefined,i=[e]),s.rejectWith(n,i))}};r?o():(Se.Deferred.getErrorHook?o.error=Se.Deferred.getErrorHook():Se.Deferred.getStackHook&&(o.error=Se.Deferred.getStackHook()),le.setTimeout(o))}}var d=0;return Se.Deferred(function(e){r[0][3].add(c(0,e,ye(i)?i:u,e.notifyWith)),r[1][3].add(c(0,e,ye(t)?t:u)),r[2][3].add(c(0,e,ye(n)?n:p))}).promise()},promise:function(e){return null!=e?Se.extend(e,s):s}},a={};return Se.each(r,function(e,t){var n=t[2],i=t[5];s[t[1]]=n.add,i&&n.add(function(){o=i},r[3-e][2].disable,r[3-e][3].disable,r[0][2].lock,r[0][3].lock),n.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?undefined:this,arguments),this},a[t[0]+"With"]=n.fireWith}),s.promise(a),e&&e.call(a,a),a},when:function(e){var n=arguments.length,t=n,i=Array(t),o=ue.call(arguments),r=Se.Deferred(),s=function(t){return function(e){i[t]=this,o[t]=1<arguments.length?ue.call(arguments):e,--n||r.resolveWith(i,o)}};if(n<=1&&(l(e,r.done(s(t)).resolve,r.reject,!n),"pending"===r.state()||ye(o[t]&&o[t].then)))return r.then();for(;t--;)l(o[t],s(t),r.reject);return r.promise()}});var ze=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Se.Deferred.exceptionHook=function(e,t){le.console&&le.console.warn&&e&&ze.test(e.name)&&le.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},Se.readyException=function(e){le.setTimeout(function(){throw e})};var We=Se.Deferred();Se.fn.ready=function(e){return We.then(e)["catch"](function(e){Se.readyException(e)}),this},Se.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--Se.readyWait:Se.isReady)||(Se.isReady=!0)!==e&&0<--Se.readyWait||We.resolveWith(we,[Se])}}),Se.ready.then=We.then,"complete"===we.readyState||"loading"!==we.readyState&&!we.documentElement.doScroll?le.setTimeout(Se.ready):(we.addEventListener("DOMContentLoaded",o),le.addEventListener("load",o));var qe=function(e,t,n,i,o,r,s){var a=0,l=e.length,c=null==n;if("object"===m(n))for(a in o=!0,n)qe(e,t,a,n[a],!0,r,s);else if(i!==undefined&&(o=!0,ye(i)||(s=!0),c&&(s?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(Se(e),n)})),t))for(;a<l;a++)t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)));return o?e:c?t.call(e):l?t(e[0],n):r},Ue=/^-ms-/,Ve=/-([a-z])/g,Ge=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};s.uid=1,s.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Ge(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if("string"==typeof t)o[h(t)]=n;else for(i in t)o[h(i)]=t[i];return o},get:function(e,t){return t===undefined?this.cache(e):e[this.expando]&&e[this.expando][h(t)]},access:function(e,t,n){return t===undefined||t&&"string"==typeof t&&n===undefined?this.get(e,t):(this.set(e,t,n),n!==undefined?n:t)},remove:function(e,t){var n,i=e[this.expando];if(i!==undefined){if(t!==undefined){n=(t=Array.isArray(t)?t.map(h):(t=h(t))in i?[t]:t.match(Be)||[]).length;for(;n--;)delete i[t[n]]}(t===undefined||Se.isEmptyObject(i))&&(e.nodeType?e[this.expando]=undefined:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return t!==undefined&&!Se.isEmptyObject(t)}};var Ke=new s,Qe=new s,Ye=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Xe=/[A-Z]/g;Se.extend({hasData:function(e){return Qe.hasData(e)||Ke.hasData(e)},data:function(e,t,n){return Qe.access(e,t,n)},removeData:function(e,t){Qe.remove(e,t)},_data:function(e,t,n){return Ke.access(e,t,n)},_removeData:function(e,t){Ke.remove(e,t)}}),Se.fn.extend({data:function(n,e){var t,i,o,r=this[0],s=r&&r.attributes;if(n!==undefined)return"object"==typeof n?this.each(function(){Qe.set(this,n)}):qe(this,function(e){var t;if(r&&e===undefined)return(t=Qe.get(r,n))!==undefined?t:(t=f(r,n))!==undefined?t:void 0;this.each(function(){Qe.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(o=Qe.get(r),1===r.nodeType&&!Ke.get(r,"hasDataAttrs"))){for(t=s.length;t--;)s[t]&&0===(i=s[t].name).indexOf("data-")&&(i=h(i.slice(5)),f(r,i,o[i]));Ke.set(r,"hasDataAttrs",!0)}return o},removeData:function(e){return this.each(function(){Qe.remove(this,e)})}}),Se.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=Ke.get(e,t),n&&(!i||Array.isArray(n)?i=Ke.access(e,t,Se.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=Se.queue(e,t),i=n.length,o=n.shift(),r=Se._queueHooks(e,t),s=function(){Se.dequeue(e,t)};"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,s,r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Ke.get(e,n)||Ke.access(e,n,{empty:Se.Callbacks("once memory").add(function(){Ke.remove(e,[t+"queue",n])})})}}),Se.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?Se.queue(this[0],t):n===undefined?this:this.each(function(){var e=Se.queue(this,t,n);Se._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&Se.dequeue(this,t)})},dequeue:function(e){return this.each(function(){Se.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=Se.Deferred(),r=this,s=this.length,a=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=undefined),e=e||"fx";s--;)(n=Ke.get(r[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}});var Je=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ze=new RegExp("^(?:([+-])=|)("+Je+")([a-z%]*)$","i"),et=["Top","Right","Bottom","Left"],tt=we.documentElement,nt=function(e){return Se.contains(e.ownerDocument,e)},it={composed:!0};tt.getRootNode&&(nt=function(e){return Se.contains(e.ownerDocument,e)||e.getRootNode(it)===e.ownerDocument});var ot=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&nt(e)&&"none"===Se.css(e,"display")},rt={};Se.fn.extend({show:function(){return b(this,!0)},hide:function(){return b(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ot(this)?Se(this).show():Se(this).hide()})}});var st,at,lt=/^(?:checkbox|radio)$/i,ct=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,dt=/^$|^module$|\/(?:java|ecma)script/i;st=we.createDocumentFragment().appendChild(we.createElement("div")),(at=we.createElement("input")).setAttribute("type","radio"),at.setAttribute("checked","checked"),at.setAttribute("name","t"),st.appendChild(at),ve.checkClone=st.cloneNode(!0).cloneNode(!0).lastChild.checked,st.innerHTML="<textarea>x</textarea>",ve.noCloneChecked=!!st.cloneNode(!0).lastChild.defaultValue,st.innerHTML="<option></option>",ve.option=!!st.lastChild;var ut={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ut.tbody=ut.tfoot=ut.colgroup=ut.caption=ut.thead,ut.th=ut.td,ve.option||(ut.optgroup=ut.option=[1,"<select multiple='multiple'>","</select>"]);var pt=/<|&#?\w+;/,ht=/^([^.]*)(?:\.(.+)|)/;Se.event={global:{},add:function(t,e,n,i,o){var r,s,a,l,c,d,u,p,h,f,g,m=Ke.get(t);if(Ge(t))for(n.handler&&(n=(r=n).handler,o=r.selector),o&&Se.find.matchesSelector(tt,o),n.guid||(n.guid=Se.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(e){return void 0!==Se&&Se.event.triggered!==e.type?Se.event.dispatch.apply(t,arguments):undefined}),c=(e=(e||"").match(Be)||[""]).length;c--;)h=g=(a=ht.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),h&&(u=Se.event.special[h]||{},h=(o?u.delegateType:u.bindType)||h,u=Se.event.special[h]||{},d=Se.extend({type:h,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&Se.expr.match.needsContext.test(o),namespace:f.join(".")},r),(p=l[h])||((p=l[h]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,i,f,s)||t.addEventListener&&t.addEventListener(h,s)),u.add&&(u.add.call(t,d),d.handler.guid||(d.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,d):p.push(d),Se.event.global[h]=!0)},remove:function(e,t,n,i,o){var r,s,a,l,c,d,u,p,h,f,g,m=Ke.hasData(e)&&Ke.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(Be)||[""]).length;c--;)if(h=g=(a=ht.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),h){for(u=Se.event.special[h]||{},p=l[h=(i?u.delegateType:u.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+f.
vendor: 4,176 bytes, lines 2-3
2join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=p.length;r--;)d=p[r],!o&&g!==d.origType||n&&n.guid!==d.guid||a&&!a.test(d.namespace)||i&&i!==d.selector&&("**"!==i||!d.selector)||(p.splice(r,1),d.selector&&p.delegateCount--,u.remove&&u.remove.call(e,d));s&&!p.length&&(u.teardown&&!1!==u.teardown.call(e,f,m.handle)||Se.removeEvent(e,h,m.handle),delete l[h])}else for(h in l)Se.event.remove(e,h+t[c],n,i,!0);Se.isEmptyObject(l)&&Ke.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,r,s,a=new Array(arguments.length),l=Se.event.fix(e),c=(Ke.get(this,"events")||Object.create(null))[l.type]||[],d=Se.event.special[l.type]||{};for(a[0]=l,
3t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,l)){for(s=Se.event.handlers.call(this,l,c),t=0;(o=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,(i=((Se.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,a))!==undefined&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,o,r,s,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(r=[],s={},n=0;n<l;n++)s[o=(i=t[n]).selector+" "]===undefined&&(s[o]=i.needsContext?-1<Se(o,this).index(c):Se.find(o,this,null,[c]).length),s[o]&&r.push(i);r.length&&a.push({elem:c,handlers:r})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(t,e){Object.defineProperty(Se.Event.prototype,t,{enumerable:!0,configurable:!0,get:ye(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[Se.expando]?e:new Se.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return lt.test(t.type)&&t.click&&ce(t,"input")&&E(t,"click",!0),!1},trigger:function(e){var t=this||e;return lt.test(t.type)&&t.click&&ce(t,"input")&&E(t,"click"),!0},_default:function(e){var t=e.target;return lt.test(t.type)&&t.click&&ce(t,"input")&&Ke.get(t,"click")||ce(t,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},Se.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},Se.Event=function(e,t){if(!(this instanceof Se.Event))return new Se.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===undefined&&!1===e.returnValue?k:S,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&Se.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[Se.expando]=!0},Se.Event.prototype={constructor:Se.Event,isDefaultPrevented:S,isPropagationStopped:S,isImmediatePropagationStopped:S,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=k,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=k,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=k,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},Se.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},Se.event.addProp),Se.each({focus:"focusin",blur:"focusout"},function(i,o){function r(e){if(we.documentMode){var t=Ke.get(this,"handle"),n=Se.event.fix(e);
vendor: 1,040 bytes, line 3
3n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else Se.event.simulate(o,e.target,Se.event.fix(e))}Se.event.special[i]={setup:function(){var e;if(E(this,i,!0),!we.documentMode)return!1;(e=Ke.get(this,o))||this.addEventListener(o,r),Ke.set(this,o,(e||0)+1)},trigger:function(){return E(this,i),!0},teardown:function(){var e;if(!we.documentMode)return!1;(e=Ke.get(this,o)-1)?Ke.set(this,o,e):(this.removeEventListener(o,r),Ke.remove(this,o))},_default:function(e){return Ke.get(e.target,i)},delegateType:o},Se.event.special[o]={setup:function(){var e=this.ownerDocument||this.document||this,t=we.documentMode?this:e,n=Ke.get(t,o);n||(we.documentMode?this.addEventListener(o,r):e.addEventListener(i,r,!0)),Ke.set(t,o,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=we.documentMode?this:e,n=Ke.get(t,o)-1;n?Ke.set(t,o,n):(we.documentMode?this.removeEventListener(o,r):e.removeEventListener(i,r,!0),Ke.remove(t,o))}}}),Se.each({mouseenter:"mouseover",mouseleave:"mou
3seout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,r){Se.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,n=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===n||Se.contains(n,i))||(e.type=o.origType,t=o.handler.apply(this,arguments),e.type=r),t}}}),Se.fn.extend({on:function(e,t,n,i){return j(this,e,t,n,i)},one:function(e,t,n,i){return j(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,Se(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=undefined),!1===n&&(n=S),this.each(function(){Se.event.remove(this,e,n,t)});for(o in e)this.off(o,t,e[o]);return this}});var ft=/<script|<style|<link/i,gt=/checked\s*(?:[^=]|=\s*.checked.)/i,mt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;Se.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,o,r,s,a=e.cloneNode(!0),l=nt(e);if(!(ve.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Se.isXMLDoc(e)))for(s=w(a),i=0,o=(r=w(e)).length;i<o;i++)_(r[i],s[i]);if(t)if(n)for(r=r||w(e),s=s||w(a),i=0,o=r.length;i<o;i++)D(r[i],s[i]);else D(e,a);return 0<(s=w(a,"script")).length&&C(s,!l&&w(e,"script")),a},cleanData:function(e){for(var t,n,i,o=Se.event.special,r=0;(n=e[r])!==undefined;r++)if(Ge(n)){if(t=n[Ke.expando]){if(t.events)for(i in t.events)
vendor: 5,067 bytes, line 3
3o[i]?Se.event.remove(n,i):Se.removeEvent(n,i,t.handle);n[Ke.expando]=undefined}n[Qe.expando]&&(n[Qe.expando]=undefined)}}}),Se.fn.extend({detach:function(e){return $(this,e,!0)},remove:function(e){return $(this,e)},text:function(e){return qe(this,function(e){return e===undefined?Se.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return N(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||T(this,e).appendChild(e)})},prepend:function(){return N(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return N(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return N(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(Se.cleanData(w(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return Se.clone(this,e,t)})},html:function(e){return qe(this,function(e){var t=this[0]||{},n=0,i=this.length;if(e===undefined&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ft.test(e)&&!ut[(ct.exec(e)||["",""])[1].toLowerCase()]){e=Se.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(Se.cleanData(w(t,!1)),t.innerHTML=e);t=0}catch(o){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return N(this,arguments,function(e){var t=this.parentNode;Se.inArray(this,n)<0&&(Se.cleanData(w(this)),t&&t.replaceChild(e,this))},n)}}),Se.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,s){Se.fn[e]=function(e){for(var t,n=[],i=Se(e),o=i.length-1,r=0;r<=o;r++)t=r===o?this:this.clone(!0),Se(i[r])[s](t),se.apply(n,t.get());return this.pushStack(n)}});var vt=new RegExp("^("+Je+")(?!px)[a-z%]+$","i"),yt=/^--/,bt=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=le),t.getComputedStyle(e)},wt=function(e,t,n){var i,o,r={};for(o in t)r[o]=e.style[o],e.style[o]=t[o];for(o in i=n.call(e),t)e.style[o]=r[o];return i},Ct=new RegExp(et.join("|"),"i");!function(){function e(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",tt.appendChild(l).appendChild(c);var e=le.getComputedStyle(c);n="1%"!==e.top,a=12===t(e.marginLeft),c.style.right="60%",r=36===t(e.right),i=36===t(e.width),c.style.position="absolute",o=12===t(c.offsetWidth/3),tt.removeChild(l),c=null}}function t(e){return Math.round(parseFloat(e))}var n,i,o,r,s,a,l=we.createElement("div"),c=we.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",ve.clearCloneStyle="content-box"===c.style.backgroundClip,Se.extend(ve,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),r},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),a},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,i;return null==s&&(e=we.createElement("table"),t=we.createElement("tr"),n=we.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",tt.appendChild(e).appendChild(t).appendChild(n),i=le.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,tt.removeChild(e)),s}}))}();var xt=["Webkit","Moz","ms"],kt=we.createElement("div").style,St={},jt=/^(none|table(?!-c[ea]).+)/,Et={position:"absolute",visibility:"hidden",display:"block"},Tt={letterSpacing:"0",fontWeight:"400"};Se.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=L(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,s,a=h(t),l=yt.test(t),c=e.style;if(l||(t=R(a)),s=Se.cssHooks[t]||Se.cssHooks[a],n===undefined)return s&&"get"in s&&(o=s.get(e,!1,i))!==undefined?o:c[t];"string"===(r=typeof n)&&(o=Ze.exec(n))&&o[1]&&(n=v(e,t,o),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=o&&o[3]||(Se.cssNumber[a]?"":"px")),ve.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&(n=s.set(e,n,i)
vendor: 4,550 bytes, line 3
3)===undefined||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var o,r,s,a=h(t);return yt.test(t)||(t=R(a)),(s=Se.cssHooks[t]||Se.cssHooks[a])&&"get"in s&&(o=s.get(e,!0,n)),o===undefined&&(o=L(e,t,i)),"normal"===o&&t in Tt&&(o=Tt[t]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),Se.each(["height","width"],function(e,l){Se.cssHooks[l]={get:function(e,t,n){if(t)return!jt.test(Se.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?F(e,l,n):wt(e,Et,function(){return F(e,l,n)})},set:function(e,t,n){var i,o=bt(e),r=!ve.scrollboxSize()&&"absolute"===o.position,s=(r||n)&&"border-box"===Se.css(e,"boxSizing",!1,o),a=n?M(e,l,n,s,o):0;return s&&r&&(a-=Math.ceil(e["offset"+l[0].toUpperCase()+l.slice(1)]-parseFloat(o[l])-M(e,l,"border",!1,o)-.5)),a&&(i=Ze.exec(t))&&"px"!==(i[3]||"px")&&(e.style[l]=t,t=Se.css(e,l)),H(e,t,a)}}}),Se.cssHooks.marginLeft=O(ve.reliableMarginLeft,function(e,t){if(t)return(parseFloat(L(e,"marginLeft"))||e.getBoundingClientRect().left-wt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),Se.each({margin:"",padding:"",border:"Width"},function(o,r){Se.cssHooks[o+r]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[o+et[t]+r]=i[t]||i[t-2]||i[0];return n}},"margin"!==o&&(Se.cssHooks[o+r].set=H)}),Se.fn.extend({css:function(e,t){return qe(this,function(e,t,n){var i,o,r={},s=0;if(Array.isArray(t)){for(i=bt(e),o=t.length;s<o;s++)r[t[s]]=Se.css(e,t[s],!1,i);return r}return n!==undefined?Se.style(e,t,n):Se.css(e,t)},e,t,1<arguments.length)}}),(Se.Tween=B).prototype={constructor:B,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||Se.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(Se.cssNumber[n]?"":"px")},cur:function(){var e=B.propHooks[this.prop];return e&&e.get?e.get(this):B.propHooks._default.get(this)},run:function(e){var t,n=B.propHooks[this.prop];return this.options.duration?this.pos=t=Se.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):B.propHooks._default.set(this),this}},B.prototype.init.prototype=B.prototype,B.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=Se.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){Se.fx.step[e.prop]?Se.fx.step[e.prop](e):1!==e.elem.nodeType||!Se.cssHooks[e.prop]&&null==e.elem.style[R(e.prop)]?e.elem[e.prop]=e.now:Se.style(e.elem,e.prop,e.now+e.unit)}}},B.propHooks.scrollTop=B.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Se.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},Se.fx=B.prototype.init,Se.fx.step={};var It,At,Dt,_t,Nt=/^(?:toggle|show|hide)$/,$t=/queueHooks$/;Se.Animation=Se.extend(K,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return v(n.elem,e,Ze.exec(t),n),n}]},tweener:function(e,t){ye(e)?(t=e,e=["*"]):e=e.match(Be);for(var n,i=0,o=e.length;i<o;i++)n=e[i],K.tweeners[n]=K.tweeners[n]||[],K.tweeners[n].unshift(t)},prefilters:[V],prefilter:function(e,t){t?K.prefilters.unshift(e):K.prefilters.push(e)}}),Se.speed=function(e,t,n){var i=e&&"object"==typeof e?Se.extend({},e):{complete:n||!n&&t||ye(e)&&e,duration:e,easing:n&&t||t&&!ye(t)&&t};return Se.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in Se.fx.speeds?i.duration=Se.fx.speeds[i.duration]:i.duration=Se.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){ye(i.old)&&i.old.call(this),i.queue&&Se.dequeue(this,i.queue)},i},Se.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ot).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){var o=Se.isEmptyObject(t),r=Se.speed(e,n,i),s=function(){var e=K(this,Se.extend({},t),r);(o||Ke.get(this,"finish"))&&e.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(o,e,r){var s=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof o&&(r=e,e=o,o=undefined),e&&this.queue(o||"fx",[]),this.each(function(){var e=!0,t=null!=o&&o+"queueHooks",n=Se.timers,i=Ke.get(this);if(t)i[t]&&i[t].stop&&s(i[t]);else for(t in i)i[t]&&i[t].stop&&$t.test(t)&&s(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=o&&n[t].queue!==o||(n[t].anim.stop(r),e=!1,n.splice(t,1)
vendor: 4,222 bytes, line 3
3);!e&&r||Se.dequeue(this,o)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var e,t=Ke.get(this),n=t[s+"queue"],i=t[s+"queueHooks"],o=Se.timers,r=n?n.length:0;for(t.finish=!0,Se.queue(this,s,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===s&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),Se.each(["toggle","show","hide"],function(e,i){var o=Se.fn[i];Se.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?o.apply(this,arguments):this.animate(q(i,!0),e,t,n)}}),Se.each({slideDown:q("show"),slideUp:q("hide"),slideToggle:q("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){Se.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),Se.timers=[],Se.fx.tick=function(){var e,t=0,n=Se.timers;for(It=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||Se.fx.stop(),It=undefined},Se.fx.timer=function(e){Se.timers.push(e),Se.fx.start()},Se.fx.interval=13,Se.fx.start=function(){At||(At=!0,z())},Se.fx.stop=function(){At=null},Se.fx.speeds={slow:600,fast:200,_default:400},Se.fn.delay=function(i,e){return i=Se.fx&&Se.fx.speeds[i]||i,e=e||"fx",this.queue(e,function(e,t){var n=le.setTimeout(e,i);t.stop=function(){le.clearTimeout(n)}})},Dt=we.createElement("input"),_t=we.createElement("select").appendChild(we.createElement("option")),Dt.type="checkbox",ve.checkOn=""!==Dt.value,ve.optSelected=_t.selected,(Dt=we.createElement("input")).value="t",Dt.type="radio",ve.radioValue="t"===Dt.value;var Lt,Ot=Se.expr.attrHandle;Se.fn.extend({attr:function(e,t){return qe(this,Se.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){Se.removeAttr(this,e)})}}),Se.extend({attr:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return"undefined"==typeof e.getAttribute?Se.prop(e,t,n):(1===r&&Se.isXMLDoc(e)||(o=Se.attrHooks[t.toLowerCase()]||(Se.expr.match.bool.test(t)?Lt:undefined)),n!==undefined?null===n?void Se.removeAttr(e,t):o&&"set"in o&&(i=o.set(e,n,t))!==undefined?i:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=Se.find.attr(e,t))?undefined:i)},attrHooks:{type:{set:function(e,t){if(!ve.radioValue&&"radio"===t&&ce(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,o=t&&t.match(Be);if(o&&1===e.nodeType)for(;n=o[i++];)e.removeAttribute(n)}}),Lt={set:function(e,t,n){return!1===t?Se.removeAttr(e,n):e.setAttribute(n,n),n}},Se.each(Se.expr.match.bool.source.match(/\w+/g),function(e,t){var s=Ot[t]||Se.find.attr;Ot[t]=function(e,t,n){var i,o,r=t.toLowerCase();return n||(o=Ot[r],Ot[r]=i,i=null!=s(e,t,n)?r:null,Ot[r]=o),i}});var Pt=/^(?:input|select|textarea|button)$/i,Rt=/^(?:a|area)$/i;Se.fn.extend({prop:function(e,t){return qe(this,Se.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[Se.propFix[e]||e]})}}),Se.extend({prop:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&Se.isXMLDoc(e)||(t=Se.propFix[t]||t,o=Se.propHooks[t]),n!==undefined?o&&"set"in o&&(i=o.set(e,n,t))!==undefined?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=Se.find.attr(e,"tabindex");return t?parseInt(t,10):Pt.test(e.nodeName)||Rt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ve.optSelected||(Se.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),Se.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Se.propFix[this.toLowerCase()]=this}),Se.fn.extend({addClass:function(t){var e,n,i,o,r,s;return ye(t)?this.each(function(e){Se(this).addClass(t.call(this,e,Y(this)))}):(e=X(t)).length?this.each(function(){if(i=Y(this),n=1===this.nodeType&&" "+Q(i)+" "){for(r=0;r<e.length;r++)o=e[r],n.indexOf(" "+o+" ")<0&&(n+=o+" ");s=Q(n),i!==s&&this.setAttribute("class",s)}}):this},removeClass:function(t){var e,n,i,o,r,s;
vendor: 2,004 bytes, line 3
3return ye(t)?this.each(function(e){Se(this).removeClass(t.call(this,e,Y(this)))}):arguments.length?(e=X(t)).length?this.each(function(){if(i=Y(this),n=1===this.nodeType&&" "+Q(i)+" "){for(r=0;r<e.length;r++)for(o=e[r];-1<n.indexOf(" "+o+" ");)n=n.replace(" "+o+" "," ");s=Q(n),i!==s&&this.setAttribute("class",s)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,i,o,r,s=typeof t,a="string"===s||Array.isArray(t);return ye(t)?this.each(function(e){Se(this).toggleClass(t.call(this,e,Y(this),n),n)}):"boolean"==typeof n&&a?n?this.addClass(t):this.removeClass(t):(e=X(t),this.each(function(){if(a)for(r=Se(this),o=0;o<e.length;o++)i=e[o],r.hasClass(i)?r.removeClass(i):r.addClass(i);else t!==undefined&&"boolean"!==s||((i=Y(this))&&Ke.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":Ke.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+Q(Y(n))+" ").indexOf(t))return!0;return!1}});var Ht=/\r/g;Se.fn.extend({val:function(n){var i,e,o,t=this[0];return arguments.length?(o=ye(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=o?n.call(this,e,Se(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=Se.map(t,function(e){return null==e?"":e+""})),(i=Se.valHooks[this.type]||Se.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&i.set(this,t,"value")!==undefined||(this.value=t))})):t?(i=Se.valHooks[t.type]||Se.valHooks[t.nodeName.toLowerCase()])&&"get"in i&&(e=i.get(t,"value"))!==undefined?e:"string"==typeof(e=t.value)?e.replace(Ht,""):null==e?"":e:void 0}}),Se.extend({valHooks:{option:{get:function(e){var t=Se.find.attr(e,"value");return null!=t?t:Q(Se.text(e))}},select:{get:function(e){var t,n,i,o=e.options,r=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?r+1:o.length;for(i=r<0?l:s?r:0;i<l;i++)if(((n=o[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!ce(n.parentNode,"optgroup"))){if(t=Se(n).val(),s)return t;a.push(t)}return a}
vendor: 4,305 bytes, line 3
3,set:function(e,t){for(var n,i,o=e.options,r=Se.makeArray(t),s=o.length;s--;)((i=o[s]).selected=-1<Se.inArray(Se.valHooks.option.get(i),r))&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),Se.each(["radio","checkbox"],function(){Se.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<Se.inArray(Se(e).val(),t)}},ve.checkOn||(Se.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Mt=le.location,Ft={guid:Date.now()},Bt=/\?/;Se.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new le.DOMParser).parseFromString(e,"text/xml")}catch(i){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||Se.error("Invalid XML: "+(n?Se.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var zt=/^(?:focusinfocus|focusoutblur)$/,Wt=function(e){e.stopPropagation()};Se.extend(Se.event,{trigger:function(e,t,n,i){var o,r,s,a,l,c,d,u,p=[n||we],h=fe.call(e,"type")?e.type:e,f=fe.call(e,"namespace")?e.namespace.split("."):[];if(r=u=s=n=n||we,3!==n.nodeType&&8!==n.nodeType&&!zt.test(h+Se.event.triggered)&&(-1<h.indexOf(".")&&(h=(f=h.split(".")).shift(),f.sort()),l=h.indexOf(":")<0&&"on"+h,(e=e[Se.expando]?e:new Se.Event(h,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=undefined,e.target||(e.target=n),t=null==t?[e]:Se.makeArray(t,[e]),d=Se.event.special[h]||{},i||!d.trigger||!1!==d.trigger.apply(n,t))){if(!i&&!d.noBubble&&!be(n)){for(a=d.delegateType||h,zt.test(a+h)||(r=r.parentNode);r;r=r.parentNode)p.push(r),s=r;s===(n.ownerDocument||we)&&p.push(s.defaultView||s.parentWindow||le)}for(o=0;(r=p[o++])&&!e.isPropagationStopped();)u=r,e.type=1<o?a:d.bindType||h,(c=(Ke.get(r,"events")||Object.create(null))[e.type]&&Ke.get(r,"handle"))&&c.apply(r,t),(c=l&&r[l])&&c.apply&&Ge(r)&&(e.result=c.apply(r,t),!1===e.result&&e.preventDefault());return e.type=h,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!Ge(n)||l&&ye(n[h])&&!be(n)&&((s=n[l])&&(n[l]=null),Se.event.triggered=h,e.isPropagationStopped()&&u.addEventListener(h,Wt),n[h](),e.isPropagationStopped()&&u.removeEventListener(h,Wt),Se.event.triggered=undefined,s&&(n[l]=s)),e.result}},simulate:function(e,t,n){var i=Se.extend(new Se.Event,n,{type:e,isSimulated:!0});Se.event.trigger(i,null,t)}}),Se.fn.extend({trigger:function(e,t){return this.each(function(){Se.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return Se.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Ut=/\r?\n/g,Vt=/^(?:submit|button|image|reset|file)$/i,Gt=/^(?:input|select|textarea|keygen)/i;Se.param=function(e,t){var n,i=[],o=function(e,t){var n=ye(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!Se.isPlainObject(e))Se.each(e,function(){o(this.name,this.value)});else for(n in e)J(n,e[n],t,o);return i.join("&")},Se.fn.extend({serialize:function(){return Se.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=Se.prop(this,"elements");return e?Se.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Se(this).is(":disabled")&&Gt.test(this.nodeName)&&!Vt.test(e)&&(this.checked||!lt.test(e))}).map(function(e,t){var n=Se(this).val();return null==n?null:Array.isArray(n)?Se.map(n,function(e){return{name:t.name,value:e.replace(Ut,"\r\n")}}):{name:t.name,value:n.replace(Ut,"\r\n")}}).get()}});var Kt=/%20/g,Qt=/#.*$/,Yt=/([?&])_=[^&]*/,Xt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Jt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Zt=/^(?:GET|HEAD)$/,en=/^\/\//,tn={},nn={},on="*/".concat("*"),rn=we.createElement("a");rn.href=Mt.href,Se.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Mt.href,type:"GET",isLocal:Jt.test(Mt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":on,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Se.parseXML}
vendor: 4,236 bytes, line 3
3,flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?te(te(e,Se.ajaxSettings),t):te(Se.ajaxSettings,e)},ajaxPrefilter:Z(tn),ajaxTransport:Z(nn),ajax:function(e,t){function n(e,t,n,i){var o,r,s,a,l,c=t;f||(f=!0,h&&le.clearTimeout(h),d=undefined,p=i||"",x.readyState=0<e?4:0,o=200<=e&&e<300||304===e,n&&(a=ne(m,x,n)),!o&&-1<Se.inArray("script",m.dataTypes)&&Se.inArray("json",m.dataTypes)<0&&(m.converters["text script"]=function(){}),a=ie(m,a,x,o),o?(m.ifModified&&((l=x.getResponseHeader("Last-Modified"))&&(Se.lastModified[u]=l),(l=x.getResponseHeader("etag"))&&(Se.etag[u]=l)),204===e||"HEAD"===m.type?c="nocontent":304===e?c="notmodified":(c=a.state,r=a.data,o=!(s=a.error))):(s=c,!e&&c||(c="error",e<0&&(e=0))),x.status=e,x.statusText=(t||c)+"",o?b.resolveWith(v,[r,c,x]):b.rejectWith(v,[x,c,s]),x.statusCode(C),C=undefined,g&&y.trigger(o?"ajaxSuccess":"ajaxError",[x,m,o?r:s]),w.fireWith(v,[x,c]),g&&(y.trigger("ajaxComplete",[x,m]),--Se.active||Se.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=undefined),t=t||{};var d,u,p,i,h,o,f,g,r,s,m=Se.ajaxSetup({},t),v=m.context||m,y=m.context&&(v.nodeType||v.jquery)?Se(v):Se.event,b=Se.Deferred(),w=Se.Callbacks("once memory"),C=m.statusCode||{},a={},l={},c="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(f){if(!i)for(i={};t=Xt.exec(p);)i[t[1].toLowerCase()+" "]=(i[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=i[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return f?p:null},setRequestHeader:function(e,t){return null==f&&(e=l[e.toLowerCase()]=l[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==f&&(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(f)x.always(e[x.status]);else for(t in e)C[t]=[C[t],e[t]];return this},abort:function(e){var t=e||c;return d&&d.abort(t),n(0,t),this}};if(b.promise(x),m.url=((e||m.url||Mt.href)+"").replace(en,Mt.protocol+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(Be)||[""],null==m.crossDomain){o=we.createElement("a");try{o.href=m.url,o.href=o.href,m.crossDomain=rn.protocol+"//"+rn.host!=o.protocol+"//"+o.host}catch(k){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=Se.param(m.data,m.traditional)),ee(tn,m,t,x),f)return x;for(r in(g=Se.event&&m.global)&&0==Se.active++&&Se.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Zt.test(m.type),u=m.url.replace(Qt,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(Kt,"+")):(s=m.url.slice(u.length),m.data&&(m.processData||"string"==typeof m.data)&&(u+=(Bt.test(u)?"&":"?")+m.data,delete m.data),!1===m.cache&&(u=u.replace(Yt,"$1"),s=(Bt.test(u)?"&":"?")+"_="+Ft.guid+++s),m.url=u+s),m.ifModified&&(Se.lastModified[u]&&x.setRequestHeader("If-Modified-Since",Se.lastModified[u]),Se.etag[u]&&x.setRequestHeader("If-None-Match",Se.etag[u])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&x.setRequestHeader("Content-Type",m.contentType),x.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+on+"; q=0.01":""):m.accepts["*"]),m.headers)x.setRequestHeader(r,m.headers[r]);if(m.beforeSend&&(!1===m.beforeSend.call(v,x,m)||f))return x.abort();if(c="abort",w.add(m.complete),x.done(m.success),x.fail(m.error),d=ee(nn,m,t,x)){if(x.readyState=1,g&&y.trigger("ajaxSend",[x,m]),f)return x;m.async&&0<m.timeout&&(h=le.setTimeout(function(){x.abort("timeout")},m.timeout));try{f=!1,d.send(a,n)}catch(k){if(f)throw k;n(-1,k)}}else n(-1,"No Transport");return x},getJSON:function(e,t,n){return Se.get(e,t,n,"json")},getScript:function(e,t){return Se.get(e,undefined,t,"script")}}),Se.each(["get","post"],function(e,o){Se[o]=function(e,t,n,i){return ye(t)&&(i=i||n,n=t,t=undefined),Se.ajax(Se.extend({url:e,type:o,dataType:i,data:t,success:n},Se.isPlainObject(e)&&e))}}),Se.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),Se._evalUrl=function(e,t,n){return Se.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}}
vendor: 4,920 bytes, lines 3-4
3,dataFilter:function(e){Se.globalEval(e,t,n)}})},Se.fn.extend({wrapAll:function(e){var t;return this[0]&&(ye(e)&&(e=e.call(this[0])),t=Se(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return ye(n)?this.each(function(e){Se(this).wrapInner(n.call(this,e))}):this.each(function(){var e=Se(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=ye(t);return this.each(function(e){Se(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){Se(this).replaceWith(this.childNodes)}),this}}),Se.expr.pseudos.hidden=function(e){return!Se.expr.pseudos.visible(e)},Se.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},Se.ajaxSettings.xhr=function(){try{return new le.XMLHttpRequest}catch(e){}};var sn={0:200,1223:204},an=Se.ajaxSettings.xhr();ve.cors=!!an&&"withCredentials"in an,ve.ajax=an=!!an,Se.ajaxTransport(function(r){var s,a;if(ve.cors||an&&!r.crossDomain)return{send:function(e,t){var n,i=r.xhr();if(i.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(n in r.xhrFields)i[n]=r.xhrFields[n];for(n in r.mimeType&&i.overrideMimeType&&i.overrideMimeType(r.mimeType),r.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)i.setRequestHeader(n,e[n]);s=function(e){return function(){s&&(s=a=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===e?i.abort():"error"===e?"number"!=typeof i.status?t(0,"error"):t(i.status,i.statusText):t(sn[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=s(),a=i.onerror=i.ontimeout=s("error"),i.onabort!==undefined?i.onabort=a:i.onreadystatechange=function(){4===i.readyState&&le.setTimeout(function(){s&&a()})},s=s("abort");try{i.send(r.hasContent&&r.data||null)}catch(o){if(s)throw o}},abort:function(){s&&s()}}}),Se.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),Se.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){
4return Se.globalEval(e),e}}}),Se.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),Se.ajaxTransport("script",function(n){var i,o;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){i=Se("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",o=function(e){i.remove(),o=null,e&&t("error"===e.type?404:200,e.type)}),we.head.appendChild(i[0])},abort:function(){o&&o()}}});var ln,cn=[],dn=/(=)\?(?=&|$)|\?\?/;Se.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=cn.pop()||Se.expando+"_"+Ft.guid++;return this[e]=!0,e}}),Se.ajaxPrefilter("json jsonp",function(e,t,n){var i,o,r,s=!1!==e.jsonp&&(dn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&dn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=ye(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(dn,"$1"+i):!1!==e.jsonp&&(e.url+=(Bt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return r||Se.error(i+" was not called"),r[0]},e.dataTypes[0]="json",o=le[i],le[i]=function(){r=arguments},n.always(function(){o===undefined?Se(le).removeProp(i):le[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,cn.push(i)),r&&ye(o)&&o(r[0]),r=o=undefined}),"script"}),ve.createHTMLDocument=((ln=we.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===ln.childNodes.length),Se.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(ve.createHTMLDocument?((i=(t=we.implementation.createHTMLDocument("")).createElement("base")).href=we.location.href,t.head.appendChild(i)):t=we),r=!n&&[],(o=Pe.exec(e))?[t.createElement(o[1])]:(o=x([e],t,r),r&&r.length&&Se(r).remove(),Se.merge([],o.childNodes)));var i,o,r},Se.fn.load=function(e,t,n){var i,o,r,s=this,a=e.indexOf(" ");return-1<a&&(i=Q(e.slice(a)),e=e.slice(0,a)),ye(t)?(n=t,t=undefined):t&&"object"==typeof t&&(o="POST"),0<s.length&&Se.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){r=arguments,s.html(i?Se("<div>").append(Se.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},Se.expr.pseudos.animated=function(t){return Se.grep(Se.timers,function(e){return t===e.elem}).length},Se.offset={setOffset:function(e,t,n){var i,o,r,s,a,l,c=Se.css(e,"position"),d=Se(e),u={};"static"===c&&(e.style.position="relative"),a=d.offset(),r=Se.css(e,"to
4p"),l=Se.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(r+l).indexOf("auto")?(s=(i=d.position()).top,o=i.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),ye(t)&&(t=t.call(e,n,Se.extend({},a))),null!=t.top&&(u.top=t.top-a.top+s),null!=t.left&&(u.left=t.left-a.left+o),"using"in t?t.using.call(e,u):d.css(u)}},Se.fn.extend({offset:function(t){if(arguments.length)return t===undefined?this:this.each(function(e){Se.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],o={top:0,left:0};if("fixed"===Se.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===Se.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((o=Se(e).offset()).top+=Se.css(e,"borderTopWidth",!0),o.left+=Se.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-Se.css(i,"marginTop",!0),left:t.left-o.left-Se.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===Se.css(e,"position");)e=e.offsetParent;return e||tt})}}),Se.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,o){var r="pageYOffset"===o;Se.fn[t]=function(e){return qe(this,function(e,t,n){var i;if(be(e)?i=e:9===e.nodeType&&(i=e.defaultView),n===undefined)return i?i[o]:e[t];i?i.scrollTo(r?i.pageXOffset:n,r?n:i.pageYOffset):e[t]=n},t,e,arguments.length)}}),Se.each(["top","left"],function(e,n){Se.cssHooks[n]=O(ve.pixelPosition,function(e,t){if(t)return t=L(e,n),vt.test(t)?Se(e).position()[n]+"px":t})}),Se.each({Height:"height",Width:"width"},function(s,a){Se.each({padding:"inner"+s,content:a,"":"outer"+s},function(i,r){Se.fn[r]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),o=i||(!0===e||!0===t?"margin":"border");return qe(this,function(e,t,n){var i;return be(e)?0===r.indexOf("outer")?e["inner"+s]:e.document.documentElement["client"+s]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+s],i["scroll"+s],e.body["offset"+s],i["offset"+s],i["client"+s])):n===undefined?Se.css(e,t,o):Se.style(e,t,n,o)},a,n?e:undefined,n)}})}),Se.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Se.fn[t]=function(e){return this.on(t,e)}}),Se.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),Se.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){Se.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var un=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;Se.proxy=function(e,t){var n,i,o;return"string"==typeof t&&(n=e[t],t=e,e=n),ye(e)?(i=ue.call(arguments,2),(o=function(){return e.apply(t||this,i.concat(ue.call(arguments)))}).guid=e.guid=e.guid||Se.guid++,o):undefined},Se.holdReady=function(e){e?Se.readyWait++:Se.ready(!0)},Se.isArray=Array.isArray,Se.parseJSON=JSON.parse,Se.nodeName=ce,Se.isFunction=ye,Se.isWindow=be,Se.camelCase=h,Se.type=m,Se.now=Date.now,Se.isNumeric=function(e){var t=Se.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},Se.trim=function(e){return null==e?"":(e+"").replace(un,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return Se});var pn=le.jQuery,hn=le.$;return Se.noConflict=function(e){return le.$===Se&&(le.$=hn),e&&le.jQuery===Se&&(le.jQuery=pn),Se},void 0===e&&(le.jQuery=le.$=Se),Se}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}(this,function(){"use strict";function a(e){return e&&"[object Function]"==={}.toString.call(e)}function w(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}
vendor: 4,247 bytes, line 4
4function f(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function g(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=w(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?e:g(f(e))}function m(e){return e&&e.referenceNode?e.referenceNode:e}function v(e){return 11===e?oe:10===e?re:oe||re}function b(e){if(!e)return document.documentElement;for(var t=v(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===w(n,"position")?b(n):n:e?e.ownerDocument.documentElement:document.documentElement}function l(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||b(e.firstElementChild)===e)}function c(e){return null===e.parentNode?e:c(e.parentNode)}function y(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,o=n?t:e,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var s=r.commonAncestorContainer;if(e!==s&&t!==s||i.contains(o))return l(s)?s:b(s);var a=c(e);return a.host?y(a.host,t):y(e,c(t).host)}function u(e,t){var n="top"===(1<arguments.length&&void 0!==t?arguments[1]:"top")?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"!==i&&"HTML"!==i)return e[n];var o=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||o)[n]}function C(e,t,n){var i=2<arguments.length&&void 0!==n&&arguments[2],o=u(t,"top"),r=u(t,"left"),s=i?-1:1;return e.top+=o*s,e.bottom+=o*s,e.left+=r*s,e.right+=r*s,e}function p(e,t){var n="x"===t?"Left":"Top",i="Left"==n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function o(e,t,n,i){return ee(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],v(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function x(e){var t=e.body,n=e.documentElement,i=v(10)&&getComputedStyle(n);return{height:o("Height",t,n,i),width:o("Width",t,n,i)}}function k(e){return ce({},e,{right:e.left+e.width,bottom:e.top+e.height})}function S(e){var t={};try{if(v(10)){t=e.getBoundingClientRect();var n=u(e,"top"),i=u(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(w){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r="HTML"===e.nodeName?x(e.ownerDocument):{},s=r.width||e.clientWidth||o.width,a=r.height||e.clientHeight||o.height,l=e.offsetWidth-s,c=e.offsetHeight-a;if(l||c){var d=w(e);l-=p(d,"x"),c-=p(d,"y"),o.width-=l,o.height-=c}return k(o)}function j(e,t,n){var i=2<arguments.length&&void 0!==n&&arguments[2],o=v(10),r="HTML"===t.nodeName,s=S(e),a=S(t),l=g(e),c=w(t),d=parseFloat(c.borderTopWidth),u=parseFloat(c.borderLeftWidth);i&&r&&(a.top=ee(a.top,0),a.left=ee(a.left,0));var p=k({top:s.top-a.top-d,left:s.left-a.left-u,width:s.width,height:s.height});if(p.marginTop=0,p.marginLeft=0,!o&&r){var h=parseFloat(c.marginTop),f=parseFloat(c.marginLeft);p.top-=d-h,p.bottom-=d-h,p.left-=u-f,p.right-=u-f,p.marginTop=h,p.marginLeft=f}return(o&&!i?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(p=C(p,t)),p}function E(e,t){var n=1<arguments.length&&void 0!==t&&arguments[1],i=e.ownerDocument.documentElement,o=j(e,i),r=ee(i.clientWidth,window.innerWidth||0),s=ee(i.clientHeight,window.innerHeight||0),a=n?0:u(i),l=n?0:u(i,"left");return k({top:a-o.top+o.marginTop,left:l-o.left+o.marginLeft,width:r,height:s})}function T(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===w(e,"position"))return!0;var n=f(e);return!!n&&T(n)}function I(e){if(!e||!e.parentElement||v())return document.documentElement;for(var t=e.parentElement;t&&"none"===w(t,"transform");)t=t.parentElement;return t||document.documentElement}function h(e,t,n,i,o){var r=4<arguments.length&&void 0!==o&&arguments[4],s={top:0,left:0},a=r?I(e):y(e,m(t));if("viewport"===i)s=E(a,r);else{var l;"scrollParent"===i?"BODY"===(l=g(f(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===i?e.ownerDocument.documentElement:i;var c=j(l,a,r);
vendor: 4,263 bytes, line 4
4if("HTML"!==l.nodeName||T(a))s=c;else{var d=x(e.ownerDocument),u=d.height,p=d.width;s.top+=c.top-c.marginTop,s.bottom=u+c.top,s.left+=c.left-c.marginLeft,s.right=p+c.left}}var h="number"==typeof(n=n||0);return s.left+=h?n:n.left||0,s.top+=h?n:n.top||0,s.right-=h?n:n.right||0,s.bottom-=h?n:n.bottom||0,s}function A(e){return e.width*e.height}function d(e,t,i,n,o,r){var s=5<arguments.length&&void 0!==r?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=h(i,n,s,o),l={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(l).map(function(e){return ce({key:e},l[e],{area:A(l[e])})}).sort(function(e,t){return t.area-e.area}),d=c.filter(function(e){var t=e.width,n=e.height;return t>=i.clientWidth&&n>=i.clientHeight}),u=0<d.length?d[0].key:c[0].key,p=e.split("-")[1];return u+(p?"-"+p:"")}function D(e,t,n,i){var o=3<arguments.length&&void 0!==i?arguments[3]:null;return j(n,o?I(t):y(t,m(n)),o)}function _(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function N(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function $(e,t,n){n=n.split("-")[0];var i=_(e),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),s=r?"top":"left",a=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return o[s]=t[s]+t[l]/2-i[l]/2,o[a]=n===a?t[a]-i[c]:t[N(a)],o}function L(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function i(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var i=L(e,function(e){return e[t]===n});return e.indexOf(i)}function O(e,n,t){return(void 0===t?e:e.slice(0,i(e,"name",t))).forEach(function(e){e["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e["function"]||e.fn;e.enabled&&a(t)&&(n.offsets.popper=k(n.offsets.popper),n.offsets.reference=k(n.offsets.reference),n=t(n,e))}),n}function e(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=D(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=d(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=$(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=O(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function t(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function P(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var o=t[i],r=o?""+o+n:e;if("undefined"!=typeof document.body.style[r])return r}return null}function n(){return this.state.isDestroyed=!0,t(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[P("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function r(e){var t=e.ownerDocument;return t?t.defaultView:window}function s(e,t,n,i){var o="BODY"===e.nodeName,r=o?e.ownerDocument.defaultView:e;r.addEventListener(t,n,{passive:!0}),o||s(g(r.parentNode),t,n,i),i.push(r)}function R(e,t,n,i){n.updateBound=i,r(e).addEventListener("resize",n.updateBound,{passive:!0});var o=g(e);return s(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function H(){this.state.eventsEnabled||(this.state=R(this.reference,this.options,this.state,this.scheduleUpdate))}function M(e,t){return r(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEac
vendor: 4,159 bytes, line 4
4h(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function F(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=M(this.reference,this.state))}function B(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function z(n,i){Object.keys(i).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&B(i[e])&&(t="px"),n.style[e]=i[e]+t})}function W(t,n){Object.keys(n).forEach(function(e){!1===n[e]?t.removeAttribute(e):t.setAttribute(e,n[e])})}function q(e,t){var n=e.offsets,i=n.popper,o=n.reference,r=Z,s=function(e){return e},a=r(o.width),l=r(i.width),c=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),u=t?c||d||a%2==l%2?r:J:s,p=t?r:s;return{left:u(1==a%2&&1==l%2&&!d&&t?i.left-1:i.left),top:p(i.top),bottom:p(i.bottom),right:u(i.right)}}function U(e,t,n){var i=L(e,function(e){return e.name===t}),o=!!i&&e.some(function(e){return e.name===n&&e.enabled&&e.order<i.order});if(!o){var r="`"+t+"`";console.warn("`"+n+"` modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return o}function V(e){return"end"===e?"start":"start"===e?"end":e}function G(e,t){var n=1<arguments.length&&void 0!==t&&arguments[1],i=pe.indexOf(e),o=pe.slice(i+1).concat(pe.slice(0,i));return n?o.reverse():o}function K(e,t,n,i){var o,r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+r[1],a=r[2];if(!s)return e;if(0!==a.indexOf("%"))return"vh"!==a&&"vw"!==a?s:("vh"===a?ee(document.documentElement.clientHeight,window.innerHeight||0):ee(document.documentElement.clientWidth,window.innerWidth||0))/100*s;switch(a){case"%p":o=n;break;case"%":case"%r":default:o=i}return k(o)[t]/100*s}function Q(e,o,r,t){var s=[0,0],a=-1!==["right","left"].indexOf(t),n=e.split(/(\+|\-)/).map(function(e){return e.trim()}),i=n.indexOf(L(n,function(e){return-1!==e.search(/,|\s/)}));n[i]&&-1===n[i].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1===i?[n]:[n.slice(0,i).concat([n[i].split(l)[0]]),[n[i].split(l)[1]].concat(n.slice(i+1))];return(c=c.map(function(e,t){var n=(1===t?!a:a)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return K(e,n,o,r)})})).forEach(function(n,i){n.forEach(function(e,t){B(e)&&(s[i]+=e*("-"===n[t-1]?-1:1))})}),s}function Y(e,t){var n,i=t.offset,o=e.placement,r=e.offsets,s=r.popper,a=r.reference,l=o.split("-")[0];return n=B(+i)?[+i,0]:Q(i,s,a,l),"left"===l?(s.top+=n[0],s.left-=n[1]):"right"===l?(s.top+=n[0],s.left+=n[1]):"top"===l?(s.left+=n[0],s.top-=n[1]):"bottom"===l&&(s.left+=n[0],s.top+=n[1]),e.popper=s,e}var X=Math.min,J=Math.floor,Z=Math.round,ee=Math.max,te="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,ne=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(te&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}(),ie=te&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ne))}},oe=te&&!(!window.MSInputMethodContext||!document.documentMode),re=te&&/MSIE 10/.test(navigator.userAgent),se=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ae=function(){function i(e,t){for(var n,i=0;i<t.length;i++)(n=t[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}(),le=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},ce=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},de=te&&/Firefox/i.test(navigator.userAgent),ue=["auto-start","auto","auto-end","top-start","to
4p","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],pe=ue.slice(3),he={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},fe=function(){function s(e,t,n){var i=this,o=2<arguments.length&&void 0!==n?arguments[2]:{};se(this,s),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=ie(this.update.bind(this)),this.options=ce({},s.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(ce({},s.Defaults.modifiers,o.modifiers)).forEach(function(e){i.options.modifiers[e]=ce({},s.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return ce({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&a(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)}),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return ae(s,[{key:"update",value:function(){return e.call(this)}},{key:"destroy",value:function(){return n.call(this)}},{key:"enableEventListeners",value:function(){return H.call(this)}},{key:"disableEventListeners",value:function(){return F.call(this)}}]),s}();return fe.Utils=("undefined"==typeof window?global:window).PopperUtils,fe.placements=ue,fe.Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var o=e.offsets,r=o.reference,s=o.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",d={start:le({},l,r[l]),end:le({},l,r[l]+r[c]-s[c])};e.offsets.popper=ce({},s,d[i])}return e}},offset:{order:200,enabled:!0,fn:Y,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,i){var t=i.boundariesElement||b(e.instance.popper);e.instance.reference===t&&(t=b(t));var n=P("transform"),o=e.instance.popper.style,r=o.top,s=o.left,a=o[n];o.top="",o.left="",o[n]="";var l=h(e.instance.popper,e.instance.reference,i.padding,t,e.positionFixed);o.top=r,o.left=s,o[n]=a,i.boundaries=l;var c=i.priority,d=e.offsets.popper,u={primary:function(e){var t=d[e];return d[e]<l[e]&&!i.escapeWithReference&&(t=ee(d[e],l[e])),le({},e,t)},secondary:function(e){var t="right"===e?"left":"top",n=d[t];return d[e]>l[e]&&!i.escapeWithReference&&(n=X(d[t],l[e]-("right"===e?d.width:d.height))),le({},t,n)}};return c.forEach(function(e){var t=-1===["left","top"].indexOf(e)?"secondary":"primary";d=ce({},d,u[t](e))}),e.offsets.popper=d,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,o=e.placement.split("-")[0],r=J,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<r(i[l])&&(e.offsets.popper[l]=r(i[l])-n[c]),n[l]>r(i[a])&&(e.offsets.popper[l]=r(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!U(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],r=e.offsets,s=r.popper,a=r.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",d=l?"Top":"Left",u=d.toLowerCase(),p=l?"left"
vendor: 5,034 bytes, line 4
4:"top",h=l?"bottom":"right",f=_(i)[c];a[h]-f<s[u]&&(e.offsets.popper[u]-=s[u]-(a[h]-f)),a[u]+f>s[h]&&(e.offsets.popper[u]+=a[u]+f-s[h]),e.offsets.popper=k(e.offsets.popper);var g=a[u]+a[c]/2-f/2,m=w(e.instance.popper),v=parseFloat(m["margin"+d]),y=parseFloat(m["border"+d+"Width"]),b=g-e.offsets.popper[u]-v-y;return b=ee(X(s[c]-f,b),0),e.arrowElement=i,e.offsets.arrow=(le(n={},u,Z(b)),le(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(g,m){if(t(g.instance.modifiers,"inner"))return g;if(g.flipped&&g.placement===g.originalPlacement)return g;var v=h(g.instance.popper,g.instance.reference,m.padding,m.boundariesElement,g.positionFixed),y=g.placement.split("-")[0],b=N(y),w=g.placement.split("-")[1]||"",C=[];switch(m.behavior){case he.FLIP:C=[y,b];break;case he.CLOCKWISE:C=G(y);break;case he.COUNTERCLOCKWISE:C=G(y,!0);break;default:C=m.behavior}return C.forEach(function(e,t){if(y!==e||C.length===t+1)return g;y=g.placement.split("-")[0],b=N(y);var n=g.offsets.popper,i=g.offsets.reference,o=J,r="left"===y&&o(n.right)>o(i.left)||"right"===y&&o(n.left)<o(i.right)||"top"===y&&o(n.bottom)>o(i.top)||"bottom"===y&&o(n.top)<o(i.bottom),s=o(n.left)<o(v.left),a=o(n.right)>o(v.right),l=o(n.top)<o(v.top),c=o(n.bottom)>o(v.bottom),d="left"===y&&s||"right"===y&&a||"top"===y&&l||"bottom"===y&&c,u=-1!==["top","bottom"].indexOf(y),p=!!m.flipVariations&&(u&&"start"===w&&s||u&&"end"===w&&a||!u&&"start"===w&&l||!u&&"end"===w&&c),h=!!m.flipVariationsByContent&&(u&&"start"===w&&a||u&&"end"===w&&s||!u&&"start"===w&&c||!u&&"end"===w&&l),f=p||h;(r||d||f)&&(g.flipped=!0,(r||d)&&(y=C[t+1]),f&&(w=V(w)),g.placement=y+(w?"-"+w:""),g.offsets.popper=ce({},g.offsets.popper,$(g.instance.popper,g.offsets.reference,g.placement)),g=O(g.instance.modifiers,g,"flip"))}),g},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,o=i.popper,r=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[s?"left":"top"]=r[n]-(a?o[s?"width":"height"]:0),e.placement=N(t),e.offsets.popper=k(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!U(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=L(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,o=e.offsets.popper,r=L(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s,a,l=void 0===r?t.gpuAcceleration:r,c=b(e.instance.popper),d=S(c),u={position:o.position},p=q(e,window.devicePixelRatio<2||!de),h="bottom"===n?"top":"bottom",f="right"===i?"left":"right",g=P("transform");if(a="bottom"==h?"HTML"===c.nodeName?-c.clientHeight+p.bottom:-d.height+p.bottom:p.top,s="right"==f?"HTML"===c.nodeName?-c.clientWidth+p.right:-d.width+p.right:p.left,l&&g)u[g]="translate3d("+s+"px, "+a+"px, 0)",u[h]=0,u[f]=0,u.willChange="transform";else{var m="bottom"==h?-1:1,v="right"==f?-1:1;u[h]=a*m,u[f]=s*v,u.willChange=h+", "+f}var y={"x-placement":e.placement};return e.attributes=ce({},y,e.attributes),e.styles=ce({},u,e.styles),e.arrowStyles=ce({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return z(e.instance.popper,e.styles),W(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&z(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,o){var r=D(o,t,e,n.positionFixed),s=d(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),z(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},fe}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],t):t(e.bootstrap={},e.jQuery,e.Popper)}(this,function(e,t,A){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function D(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}
4))),i.forEach(function(e){o(t,e,n[e])})}return t}function u(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}t=t&&t.hasOwnProperty("default")?t["default"]:t,A=A&&A.hasOwnProperty("default")?A["default"]:A;var p,n,h,f,r,s,a,l,g,m,c,d,v,y,b,w,C,x,k,S,j,E,T,I,N,$,L,O,P,R,H,M,F,B,z,W,q,U,V,G,K,Q,Y,X,J,Z,ee,te,ne,ie,oe,re,se,ae,le,ce,de,ue,pe,he,fe,ge,me,ve,ye,be,we,Ce,xe,ke,Se,je,Ee,Te,Ie,Ae,De,_e,Ne,$e,Le,Oe,Pe,Re,He,Me,Fe,Be,ze,We,qe,Ue,Ve,Ge,Ke,Qe,Ye,Xe,Je,Ze,et,tt,nt,it,ot,rt,st,at,lt,ct,dt,ut,pt,ht,ft,gt,mt,vt,yt,bt,wt,Ct,xt,kt,St,jt,Et,Tt,It,At,Dt,_t,Nt,$t,Lt,Ot,Pt,Rt,Ht,Mt,Ft,Bt,zt,Wt,qt=function(i){function a(e){return{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}function e(){return{bindType:o,delegateType:o,handle:function t(e){return i(e.target).is(this)?e.handleObj.handler.apply(this,arguments):undefined}}}function t(e){var t=this,n=!1;return i(this).one(l.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||l.triggerTransitionEnd(t)},e),this}function n(){i.fn.emulateTransitionEnd=t,i.event.special[l.TRANSITION_END]=e()}var o="transitionend",r=1e6,s=1e3,l={TRANSITION_END:"bsTransitionEnd",getUID:function c(e){for(;e+=~~(Math.random()*r),document.getElementById(e););return e},getSelectorFromElement:function d(e){var t=e.getAttribute("data-target");t&&"#"!==t||(t=e.getAttribute("href")||"");try{return document.querySelector(t)?t:null}catch(n){return null}},getTransitionDurationFromElement:function u(e){if(!e)return 0;var t=i(e).css("transition-duration");return parseFloat(t)?(t=t.split(",")[0],parseFloat(t)*s):0},reflow:function p(e){return e.offsetHeight},triggerTransitionEnd:function h(e){i(e).trigger(o)},supportsTransitionEnd:function f(){return Boolean(o)},isElement:function g(e){return(e[0]||e).nodeType},typeCheckConfig:function m(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=t[i],s=r&&l.isElement(r)?"element":a(r);if(!new RegExp(o).test(s))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}}};return n(),l}(t),Ut=(n="alert",h="4.1.3",r="."+(f="bs.alert"),s=".data-api",a=(p=t).fn[n],l={DISMISS:'[data-dismiss="alert"]'},g={CLOSE:"close"+r,CLOSED:"closed"+r,CLICK_DATA_API:"click"+r+s},m={ALERT:"alert",FADE:"fade",SHOW:"show"},c=function(){function i(e){this._element=e}var e=i.prototype;return e.close=function n(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},e.dispose=function t(){p.removeData(this._element,f),this._element=null},e._getRootElement=function o(e){var t=qt.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n||(n=p(e).closest("."+m.ALERT)[0]),n},e._triggerCloseEvent=function r(e){var t=p.Event(g.CLOSE);return p(e).trigger(t),t},e._removeElement=function s(t){var n=this;if(p(t).removeClass(m.SHOW),p(t).hasClass(m.FADE)){var e=qt.getTransitionDurationFromElement(t);p(t).one(qt.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(e)}else this._destroyElement(t)},e._destroyElement=function a(e){p(e).detach().trigger(g.CLOSED).remove()},i._jQueryInterface=function l(n){return this.each(function(){var e=p(this),t=e.data(f);t||(t=new i(this),e.data(f,t)),"close"===n&&t[n](this)})},i._handleDismiss=function c(t){return function(e){e&&e.preventDefault(),t.close(this)}},D(i,null,[{key:"VERSION",get:function d(){return h}}]),i}(),p(document).on(g.CLICK_DATA_API,l.DISMISS,c._handleDismiss(new c)),p.fn[n]=c._jQueryInterface,p.fn[n].Constructor=c,p.fn[n].noConflict=function(){return p.fn[n]=a,c._jQueryInterface},c),Vt=(v="button",y="4.1.3",w="."+(b="bs.button"),C=".data-api",x=(d=t).fn[v],k={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},S={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},j={CLICK_DATA_API:"click"+w+C,FOCUS_BLUR_DATA_API:"focus"+w+C+" blur"+w+C},E=function(){function n(e){this._element=e}var e=n.prototype;return e.toggle=function r(){var e=!0,t=!0,n=d(this._element).closest(S.DATA_TOGGLE)[0];if(n){var i=this._element.querySelector(S.INPUT);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(k.ACTIVE))e=!1;else{var o=n.querySelector(S.ACTIVE);o&&d(o).removeClass(k.ACTIVE)}if(e){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!this._element.classList.contains(k.ACTIVE),d(i).trigger(
5"change")}i.focus(),t=!1}}t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(k.ACTIVE)),e&&d(this._element).toggleClass(k.ACTIVE)},e.dispose=function t(){d.removeData(this._element,b),this._element=null},n._jQueryInterface=function i(t){return this.each(function(){var e=d(this).data(b);e||(e=new n(this),d(this).data(b,e)),"toggle"===t&&e[t]()})},D(n,null,[{key:"VERSION",get:function o(){return y}}]),n}(),d(document).on(j.CLICK_DATA_API,S.DATA_TOGGLE_CARROT,function(e){e.preventDefault();var t=e.target;d(t).hasClass(k.BUTTON)||(t=d(t).closest(S.BUTTON)),E._jQueryInterface.call(d(t),"toggle")}).on(j.FOCUS_BLUR_DATA_API,S.DATA_TOGGLE_CARROT,function(e){var t=d(e.target).closest(S.BUTTON)[0];d(t).toggleClass(k.FOCUS,/^focus(in)?$/.test(e.type))}),d.fn[v]=E._jQueryInterface,d.fn[v].Constructor=E,d.fn[v].noConflict=function(){return d.fn[v]=x,E._jQueryInterface},E),Gt=(I="carousel",N="4.1.3",L="."+($="bs.carousel"),O=".data-api",P=(T=t).fn[I],R=37,H=39,F={interval:5e3,keyboard:!0,slide:!(M=500),pause:"hover",wrap:!0},B={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},z={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},W={SLIDE:"slide"+L,SLID:"slid"+L,KEYDOWN:"keydown"+L,MOUSEENTER:"mouseenter"+L,MOUSELEAVE:"mouseleave"+L,TOUCHEND:"touchend"+L,LOAD_DATA_API:"load"+L+O,CLICK_DATA_API:"click"+L+O}
5,q={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},U={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},V=function(){function r(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(t),this._element=T(e)[0],this._indicatorsElement=this._element.querySelector(U.INDICATORS),this._addEventListeners()}var e=r.prototype;return e.next=function t(){this._isSliding||this._slide(z.NEXT)},e.nextWhenVisible=function n(){!document.hidden&&T(this._element).is(":visible")&&"hidden"!==T(this._element).css("visibility")&&this.next()},e.prev=function i(){this._isSliding||this._slide(z.PREV)},e.pause=function o(e){e||(this._isPaused=!0),this._element.querySelector(U.NEXT_PREV)&&(qt.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function s(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function a(e){var t=this;this._activeElement=this._element.querySelector(U.ACTIVE_ITEM);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)T(this._element).one(W.SLID,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();var i=n<e?z.NEXT:z.PREV;this._slide(i,this._items[e])}},e.dispose=function l(){T(this._element).off(L),T.removeData(this._element,$),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function c(e){return e=_({},F,e),qt.typeCheckConfig(I,e,B),e},e._addEventListeners=function d(){var t=this;this._config.keyboard&&T(this._element).on(W.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&(T(this._element).on(W.MOUSEENTER,function(e){return t.pause(e)}).on(W.MOUSELEAVE,function(e){return t.cycle(e)}),"ontouchstart"in document.documentElement&&T(this._element).on(W.TOUCHEND,function(){t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},M+t._config.interval)}))},e._keydown=function u(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case R:e.preventDefault(),this.prev();break;case H:e.preventDefault(),this.next()}},e._getItemIndex=function p(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(U.ITEM)):[],this._items.indexOf(e)},e._getItemByDirection=function h(e,t){var n=e===z.NEXT,i=e===z.PREV,o=this._getItemIndex(t),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return t;var s=(o+(e===z.PREV?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},e._triggerSlideEvent=function f(e,t){var n=this._getItemIndex(e),i=this._getItemIndex(this._element.querySelector(U.ACTIVE_ITEM)),o=T.Event(W.SLIDE,{relatedTarget:e,direction:t,from:i,to:n});return T(this._element).trigger(o),o},e._setActiveIndicatorElement=function g(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(U.ACTIVE));T(t).removeClass(q.ACTIVE);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&T(n).addClass(q.ACTIVE)}},e._slide=function m(e,t){var n,i,o,r=this,s=this._element.querySelector(U.ACTIVE_ITEM),a=this._getItemIndex(s),l=t||s&&this._getItemByDirection(e,s),c=this._getItemIndex(l),d=Boolean(this._interval);if(e===z.NEXT?(n=q.LEFT,i=q.NEXT,o=z.LEFT):(n=q.RIGHT,i=q.PREV,o=z.RIGHT),l&&T(l).hasClass(q.ACTIVE))this._isSliding=!1;else if(!this._triggerSlideEvent(l,o).isDefaultPrevented()&&s&&l){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(l);var u=T.Event(W.SLID,{relatedTarget:l,direction:o,from:a,to:c});if(T(this._element).hasClass(q.SLIDE)){T(l).addClass(i),qt.reflow(l),T(s).addClass(n),T(l).addClass(n);var p=qt.getTransitionDurationFromElement(s);T(s).one(qt.TRANSITION_END,function(){T(l).removeClass(n+" "+i).addClass(q.ACTIVE),T(s).removeClass(q.ACTIVE+" "+i+" "+n),r._isSliding=!1,setTimeout(function(){return T(r._element).trigger(u)},0)}).emulateTransitionEnd(p)}else T(s).removeClass(q.ACTIVE),T(l).addClass(q.ACTIVE),this._isSliding=!1,T(this._element).trigger(u);d&&this.cycle()}},r._jQueryInterface=function v(i){return this.each(function(){var e=T(this).data($),t=_({},F,T(this).data());"object"==typeof i&&(t=_({}
5,t,i));var n="string"==typeof i?i:t.slide;if(e||(e=new r(this,t),T(this).data($,e)),"number"==typeof i)e.to(i);else if("string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method named "'+n+'"');e[n]()}else t.interval&&(e.pause(),e.cycle())})},r._dataApiClickHandler=function y(e){var t=qt.getSelectorFromElement(this);if(t){var n=T(t)[0];if(n&&T(n).hasClass(q.CAROUSEL)){var i=_({},T(n).data(),T(this).data()),o=this.getAttribute("data-slide-to");o&&(i.interval=!1),r._jQueryInterface.call(T(n),i),o&&T(n).data($).to(o),e.preventDefault()}}},D(r,null,[{key:"VERSION",get:function b(){return N}},{key:"Default",get:function b(){return F}}]),r}(),T(document).on(W.CLICK_DATA_API,U.DATA_SLIDE,V._dataApiClickHandler),T(window).on(W.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(U.DATA_RIDE)),t=0,n=e.length;t<n;t++){var i=T(e[t]);V._jQueryInterface.call(i,i.data())}}),T.fn[I]=V._jQueryInterface,T.fn[I].Constructor=V,T.fn[I].noConflict=function(){return T.fn[I]=P,V._jQueryInterface},V),Kt=(K="collapse",Q="4.1.3",X="."+(Y="bs.collapse"),J=".data-api",Z=(G=t).fn[K],ee={toggle:!0,parent:""},te={toggle:"boolean",parent:"(string|element)"},ne={SHOW:"show"+X,SHOWN:"shown"+X,HIDE:"hide"+X,HIDDEN:"hidden"+X,CLICK_DATA_API:"click"+X+J},ie={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},oe={WIDTH:"width",HEIGHT:"height"},re={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},se=function(){function l(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=G.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(re.DATA_TOGGLE)),i=0,o=n.length;i<o;i++){var r=n[i],s=qt.getSelectorFromElement(r),a=[].slice.call(document.querySelectorAll(s)).filter(function(e){return e===t});null!==s&&0<a.length&&(this._selector=s,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=l.prototype;return e.toggle=function t(){G(this._element).hasClass(ie.SHOW)?this.hide():this.show()},e.show=function c(){var e,t,n=this;if(!this._isTransitioning&&!G(this._element).hasClass(ie.SHOW)&&(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(re.ACTIVES)).filter(function(e){return e.getAttribute("data-parent")===n._config.parent})).length&&(e=null),!(e&&(t=G(e).not(this._selector).data(Y))&&t._isTransitioning))){var i=G.Event(ne.SHOW);if(G(this._element).trigger(i),!i.isDefaultPrevented()){e&&(l._jQueryInterface.call(G(e).not(this._selector),"hide"),t||G(e).data(Y,null));var o=this._getDimension();G(this._element).removeClass(ie.COLLAPSE).addClass(ie.COLLAPSING),this._element.style[o]=0,this._triggerArray.length&&G(this._triggerArray).removeClass(ie.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var r=function r(){G(n._element).removeClass(ie.COLLAPSING).addClass(ie.COLLAPSE).addClass(ie.SHOW),n._element.style[o]="",n.setTransitioning(!1),G(n._element).trigger(ne.SHOWN)},s="scroll"+(o[0].toUpperCase()+o.slice(1)),a=qt.getTransitionDurationFromElement(this._element);G(this._element).one(qt.TRANSITION_END,r).emulateTransitionEnd(a),this._element.style[o]=this._element[s]+"px"}}},e.hide=function d(){var e=this;if(!this._isTransitioning&&G(this._element).hasClass(ie.SHOW)){var t=G.Event(ne.HIDE);if(G(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",qt.reflow(this._element),G(this._element).addClass(ie.COLLAPSING).removeClass(ie.COLLAPSE).removeClass(ie.SHOW);var i=this._triggerArray.length;if(0<i)for(var o=0;o<i;o++){var r=this._triggerArray[o],s=qt.getSelectorFromElement(r);if(null!==s)G([].slice.call(document.querySelectorAll(s))).hasClass(ie.SHOW)||G(r).addClass(ie.COLLAPSED).attr("aria-expanded",!1)}this.setTransitioning(!0);var a=function a(){e.setTransitioning(!1),G(e._element).removeClass(ie.COLLAPSING).addClass(ie.COLLAPSE).trigger(ne.HIDDEN)};this._element.style[n]="";var l=qt.getTransitionDurationFromElement(this._element);G(this._element).one(qt.TRANSITION_END,a).emulateTransitionEnd(l)}}},e.setTransitioning=function n(e){this._isTransitioning=e},e.dispose=function i(){G.removeData(this._element,Y),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function o(e){return(e=_({},ee,e)).toggle=Boolean(e.toggle),qt.typeCheckConfig(K,e,te),e},e._getDimension=function r(){return G(this._element).hasClass(oe.WIDTH)?oe.WIDTH:oe.HEIGHT},e._getParent=function s(){var n=this,e=null;qt.isElement(this._config.parent)?(e=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var t='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',i=[].slice.call(e.querySelectorAll(t));return G(i).each(function(e,t){n._addAriaAndCollapsedClass(l._getTargetFromElement(t),[t])}),e},e._addAriaAndCollapsedClass=function a(e,t){if(e){var n=G(e).hasClass(ie.SHOW);t.length&&G(t).toggleClass(ie.COLLAPSED,!n).attr("aria-expanded",n)}},l._getTargetFromElement=function u(e){var t=qt.getSelectorFromElement(e);return t?document.querySelector(t):null},l._jQueryInterface=function p(i){return this.each(function(){var e=G
5(this),t=e.data(Y),n=_({},ee,e.data(),"object"==typeof i&&i?i:{});if(!t&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),t||(t=new l(this,n),e.data(Y,t)),"string"==typeof i){if("undefined"==typeof t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},D(l,null,[{key:"VERSION",get:function h(){return Q}},{key:"Default",get:function h(){return ee}}]),l}(),G(document).on(ne.CLICK_DATA_API,re.DATA_TOGGLE,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var n=G(this),t=qt.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(t));G(i).each(function(){var e=G(this),t=e.data(Y)?"toggle":n.data();se._jQueryInterface.call(e,t)})}),G.fn[K]=se._jQueryInterface,G.fn[K].Constructor=se,G.fn[K].noConflict=function(){return G.fn[K]=Z,se._jQueryInterface},se),Qt=(le="dropdown",ce="4.1.3",ue="."+(de="bs.dropdown"),pe=".data-api",he=(ae=t).fn[le],fe=27,ge=32,me=9,ve=38,ye=40,be=3,we=new RegExp(ve+"|"+ye+"|"+fe),Ce={HIDE:"hide"+ue,HIDDEN:"hidden"+ue,SHOW:"show"+ue,SHOWN:"shown"+ue,CLICK:"click"+ue,CLICK_DATA_API:"click"+ue+pe,KEYDOWN_DATA_API:"keydown"+ue+pe,KEYUP_DATA_API:"keyup"+ue+pe},xe={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",DROPRIGHT:"dropright",DROPLEFT:"dropleft",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",POSITION_STATIC:"position-static"},ke={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)"},Se={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end",RIGHT:"right-start",RIGHTEND:"right-end",LEFT:"left-start",LEFTEND:"left-end"},je={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},Ee={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},Te=function(){function c(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=c.prototype;return e.toggle=function r(){if(!this._element.disabled&&!ae(this._element).hasClass(xe.DISABLED)){var e=c._getParentFromElement(this._element),t=ae(this._menu).hasClass(xe.SHOW);if(c._clearMenus(),!t){var n={relatedTarget:this._element},i=ae.Event(Ce.SHOW,n);if(ae(e).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar){if(void 0===A)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var o=this._element;"parent"===this._config.reference?o=e:qt.isElement(this._config.reference)&&(o=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(o=this._config.reference[0])),"scrollParent"!==this._config.boundary&&ae(e).addClass(xe.POSITION_STATIC),this._popper=new A(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===ae(e).closest(ke.NAVBAR_NAV).length&&ae(document.body).children().on("mouseover",null,ae.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),ae(this._menu).toggleClass(xe.SHOW),ae(e).toggleClass(xe.SHOW).trigger(ae.Event(Ce.SHOWN,n))}}}},e.dispose=function t(){ae.removeData(this._element,de),ae(this._element).off(ue),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function n(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function i(){var t=this;ae(this._element).on(Ce.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},e._getConfig=function o(e){return e=_({},this.constructor.Default,ae(this._element).data(),e),qt.typeCheckConfig(le,e,this.constructor.DefaultType),e},e._getMenuElement=function s(){if(!this._menu){var e=c._getParentFromElement(this._element);e&&(this._menu=e.querySelector(ke.MENU))}return this._menu},e._getPlacement=function a(){var e=ae(this._element.parentNode),t=Se.BOTTOM;return e.hasClass(xe.DROPUP)?(t=Se.TOP,ae(this._menu).hasClass(xe.MENURIGHT)&&(t=Se.TOPEND)):e.hasClass(xe.DROPRIGHT)?t=Se.RIGHT:e.hasClass(xe.DROPLEFT)?t=Se.LEFT:ae(this._menu).hasClass(xe.MENURIGHT)&&(t=Se.BOTTOMEND),t},e._detectNavbar=function l(){return 0<ae(this._element).closest(".
5navbar").length},e._getPopperConfig=function d(){var t=this,e={};"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=_({},e.offsets,t._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset;var n={placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),n},c._jQueryInterface=function u(t){return this.each(function(){var e=ae(this).data(de);if(e||(e=new c(this,"object"==typeof t?t:null),ae(this).data(de,e)),"string"==typeof t){if("undefined"==typeof e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},c._clearMenus=function p(e){if(!e||e.which!==be&&("keyup"!==e.type||e.which===me))for(var t=[].slice.call(document.querySelectorAll(ke.DATA_TOGGLE)),n=0,i=t.length;n<i;n++){var o=c._getParentFromElement(t[n]),r=ae(t[n]).data(de),s={relatedTarget:t[n]};if(e&&"click"===e.type&&(s.clickEvent=e),r){var a=r._menu;if(ae(o).hasClass(xe.SHOW)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&e.which===me)&&ae.contains(o,e.target))){var l=ae.Event(Ce.HIDE,s);ae(o).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&ae(document.body).children().off("mouseover",null,ae.noop),t[n].setAttribute("aria-expanded","false"),ae(a).removeClass(xe.SHOW),ae(o).removeClass(xe.SHOW).trigger(ae.Event(Ce.HIDDEN,s)))}}}},c._getParentFromElement=function h(e){var t,n=qt.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},c._dataApiKeydownHandler=function f(e){if((/input|textarea/i.test(e.target.tagName)?!(e.which===ge||e.which!==fe&&(e.which!==ye&&e.which!==ve||ae(e.target).closest(ke.MENU).length)):we.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!ae(this).hasClass(xe.DISABLED))){var t=c._getParentFromElement(this),n=ae(t).hasClass(xe.SHOW);if((n||e.which===fe&&e.which===ge)&&(!n||e.which!==fe&&e.which!==ge)){var i=[].slice.call(t.querySelectorAll(ke.VISIBLE_ITEMS));if(0!==i.length){var o=i.indexOf(e.target);e.which===ve&&0<o&&o--,e.which===ye&&o<i.length-1&&o++,o<0&&(o=0),i[o].focus()}}else{if(e.which===fe){var r=t.querySelector(ke.DATA_TOGGLE);ae(r).trigger("focus")}ae(this).trigger("click")}}},D(c,null,[{key:"VERSION",get:function g(){return ce}},{key:"Default",get:function g(){return je}},{key:"DefaultType",get:function g(){return Ee}}]),c}(),ae(document).on(Ce.KEYDOWN_DATA_API,ke.DATA_TOGGLE,Te._dataApiKeydownHandler).on(Ce.KEYDOWN_DATA_API,ke.MENU,Te._dataApiKeydownHandler).on(Ce.CLICK_DATA_API+" "+Ce.KEYUP_DATA_API,Te._clearMenus).on(Ce.CLICK_DATA_API,ke.DATA_TOGGLE,function(e){e.preventDefault(),e.stopPropagation(),Te._jQueryInterface.call(ae(this),"toggle")}).on(Ce.CLICK_DATA_API,ke.FORM_CHILD,function(e){e.stopPropagation()}),ae.fn[le]=Te._jQueryInterface,ae.fn[le].Constructor=Te,ae.fn[le].noConflict=function(){return ae.fn[le]=he,Te._jQueryInterface},Te),Yt=(Ae="modal",De="4.1.3",Ne="."+(_e="bs.modal"),$e=".data-api",Le=(Ie=t).fn[Ae],Oe=27,Pe={backdrop:!0,keyboard:!0,focus:!0,show:!0},Re={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},He={HIDE:"hide"+Ne,HIDDEN:"hidden"+Ne,SHOW:"show"+Ne,SHOWN:"shown"+Ne,FOCUSIN:"focusin"+Ne,RESIZE:"resize"+Ne,CLICK_DISMISS:"click.dismiss"+Ne,KEYDOWN_DISMISS:"keydown.dismiss"+Ne,MOUSEUP_DISMISS:"mouseup.dismiss"+Ne,MOUSEDOWN_DISMISS:"mousedown.dismiss"+Ne,CLICK_DATA_API:"click"+Ne+$e},Me={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},Fe={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top"},Be=function(){function o(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(Fe.DIALOG),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}var e=o.prototype;return e.toggle=function t(e){return this._isShown?this.hide():this.show(e)},e.show=function i(e){var t=this;if(!this._isTransitioning&&!this._isShown){Ie(this._element).hasClass(Me.FADE)&&(this._isTransitioning=!0);var n=Ie.Event(He.SHOW,{relatedTarget:e});Ie(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),Ie(document.body).addClass(Me.OPEN),this._setEscapeEvent(),this._setResizeEvent(),Ie(this._element).on(He.CLICK_DISMISS,Fe.DATA_DISMISS,function(e){return t.hide(e)}),Ie(this._dialog).on(He.MOUSEDOWN_DISMISS,function(){Ie(t._element).one(He.MOUSEUP_DISMISS,function(e){Ie(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(e)}))}},e.hide=function r(e){var t=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var n=Ie.Event(He.HIDE);if(Ie(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=Ie(this._element).hasClass(Me.FADE);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),Ie(document).off(He.FOCUSIN),Ie(this._element).removeClass(Me.SHOW),Ie(this._element).off(He.CLICK_DISMISS),Ie(this._dialog).off(He.MOUSEDOWN_DISMISS),i){var o=qt.getTransitionDurationFromElement(this._element);Ie(this._element).one(qt.TRANSITION_END,function(e){return t._hideModal(e)}).emulateTransitionEnd(o)}else this._hideModal()}}},e.dispose=function n(){Ie.removeData(this._element,_e),Ie(window,document,this._element,this._backdrop).off(Ne),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},e.handleUpdate=function s(){this._adjustDialog()},e._getConfig=function a(e){return e=_({},Pe,e),qt.typeCheckConfig(Ae,e,Re),e},e._showElement=function l(e){var t=this,n=Ie(this._element).hasClass(Me.FADE);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,n&&qt.reflow(this._element),Ie(this._element).addClass(Me.SHOW),this._config.focus&&this._enforceFocus();var i=Ie.Event(He.SHOWN,{relatedTarget:e}),o=function o(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,Ie(t._element).trigger(i)};if(n){var r=qt.getTransitionDurationFromElement(this._element);Ie(this._dialog).one(qt.TRANSITION_END,o).emulateTransitionEnd(r)}else o()},e._enforceFocus=function c(){var t=this;Ie(document).off(He.FOCUSIN).on(He.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===Ie(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function d(){var t=this;this._isShown&&this._config.keyboard?Ie(this._element).on(He.KEYDOWN_DISMISS,function(e){e.which===Oe&&(e.preventDefault(),t.hide())}):this._isShown||Ie(this._element).off(He.KEYDOWN_DISMISS)},e._setResizeEvent=function u(){var t=this;this._isShown?Ie(window).on(He.RESIZE,function(e){return t.handleUpdate(e)}):Ie(window).off(He.RESIZE)},e._hideModal=function p(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){Ie(document.body).removeClass(Me.OPEN),e._resetAdjustments(),e._resetScrollbar(),Ie(e._element).trigger(He.HIDDEN)})},e._removeBackdrop=function h(){this._backdrop&&(Ie(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function f(e){var t=this,n=Ie(this._element).hasClass(Me.FADE)?Me.FADE:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=Me.BACKDROP,n&&this._backdrop.classList.add(n),Ie(this._backdrop).appendTo(document.body),Ie(this._element).on(He.CLICK_DISMISS,function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===t._config.backdrop?t._element.focus():t.hide())}),n&&qt.reflow(this._backdrop),Ie(this._backdrop).addClass(Me.SHOW),!e)return;if(!n)return void e();var i=qt.getTransitionDurationFromElement(this._backdrop);Ie(this._backdrop).one(qt.TRANSITION_END,e).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){Ie(this._backdrop).removeClass(Me.SHOW);var o=function o(){t._removeBackdrop(),e&&e()};if(Ie(this._element).hasClass(Me.FADE)){var r=qt.getTransitionDurationFromElement(this._backdrop);Ie(this._backdrop).one(qt.TRANSITION_END,o).emulateTransitionEnd(r)}else o()}else e&&e()},e._adjustDialog=function g(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function m(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function v(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function y(){var o=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(Fe.FIXED_CONTENT)),t=[].slice.call(document.querySelectorAll(Fe.STICKY_CONTENT));Ie(e).each(function(e,t){var n=t.style.paddingRight,i=Ie(t).css("padding-right");Ie(t).data("padding-right",n).css("padding-right",parseFloat(i)+o._scrollbarWidth+"px")}),Ie(t).each(function(e,t){var n=t.style.marginRight,i=Ie(t).css("margin-right");Ie(t).data("margin-right",n).css("margin-right",parseFloat(i)-o._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=Ie(document.body).css("padding-right");Ie(document.body).data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}},e._resetScrollbar=function b(){var e=[].slice.call(document.querySelectorAll(Fe.FIXED_CONTENT));Ie(e).each(function(e,t){var n=Ie(t).data("padding-right");Ie(t).removeData("padding-right"),t.style.paddingRight=n||""});var t=[].slice.call(document.querySelectorAll(""+Fe.STICKY_CONTENT));Ie(t).each(function(e,t){var n=Ie(t).data("margin-right");void 0!==n&&Ie(t).css("margin-right",n).removeData("margin-right")});var n=Ie(document.body).data("padding-right");Ie(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function w(){var e=document.createElement("div");e.className=Me.SCROLLBAR_MEASURER,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},o._jQueryInterface=function C(n,i){return this.each(function(){var e=Ie(this).data(_e),t=_({},Pe,Ie(this).data(),"object"==typeof n&&n?n:{});if(e||(e=new o(this,t),Ie(this).data(_e,e)),"string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method n
5amed "'+n+'"');e[n](i)}else t.show&&e.show(i)})},D(o,null,[{key:"VERSION",get:function x(){return De}},{key:"Default",get:function x(){return Pe}}]),o}(),Ie(document).on(He.CLICK_DATA_API,Fe.DATA_TOGGLE,function(e){var t,n=this,i=qt.getSelectorFromElement(this);i&&(t=document.querySelector(i));var o=Ie(t).data(_e)?"toggle":_({},Ie(t).data(),Ie(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var r=Ie(t).one(He.SHOW,function(e){e.isDefaultPrevented()||r.one(He.HIDDEN,function(){Ie(n).is(":visible")&&n.focus()})});Be._jQueryInterface.call(Ie(t),o,this)}),Ie.fn[Ae]=Be._jQueryInterface,Ie.fn[Ae].Constructor=Be,Ie.fn[Ae].noConflict=function(){return Ie.fn[Ae]=Le,Be._jQueryInterface},Be),Xt=(We="tooltip",qe="4.1.3",Ve="."+(Ue="bs.tooltip"),Ge=(ze=t).fn[We],Ke="bs-tooltip",Qe=new RegExp("(^|\\s)"+Ke+"\\S+","g"),Je={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!(Xe={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!(Ye={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"}),placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},Ze={SHOW:"show",OUT:"out"},et={HIDE:"hide"+Ve,HIDDEN:"hidden"+Ve,SHOW:"show"+Ve,SHOWN:"shown"+Ve,INSERTED:"inserted"+Ve,CLICK:"click"+Ve,FOCUSIN:"focusin"+Ve,FOCUSOUT:"focusout"+Ve,MOUSEENTER:"mouseenter"+Ve,MOUSELEAVE:"mouseleave"+Ve},tt={FADE:"fade",SHOW:"show"},nt={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},it={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},ot=function(){function i(e,t){if(void 0===A)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var e=i.prototype;return e.enable=function t(){this._isEnabled=!0},e.disable=function n(){this._isEnabled=!1},e.toggleEnabled=function o(){this._isEnabled=!this._isEnabled},e.toggle=function r(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=ze(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),ze(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(ze(this.getTipElement()).hasClass(tt.SHOW))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function s(){clearTimeout(this._timeout),ze.removeData(this.element,this.constructor.DATA_KEY),ze(this.element).off(this.constructor.EVENT_KEY),ze(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&ze(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function p(){var t=this;if("none"===ze(this.element).css("display"))throw new Error("Please use show on visible elements");var e=ze.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){ze(this.element).trigger(e);var n=ze.contains(this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!n)return;var i=this.getTipElement(),o=qt.getUID(this.constructor.NAME);i.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&ze(i).addClass(tt.FADE);var r="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,s=this._getAttachment(r);this.addAttachmentClass(s);var a=!1===this.config.container?document.body:ze(document).find(this.config.container);ze(i).data(this.constructor.DATA_KEY,this),ze.contains(this.element.ownerDocument.documentElement,this.tip)||ze(i).appendTo(a),ze(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new A(this.element,i,{placement:s,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:nt.ARROW}
5,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function d(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function u(e){t._handlePopperPlacementChange(e)}}),ze(i).addClass(tt.SHOW),"ontouchstart"in document.documentElement&&ze(document.body).children().on("mouseover",null,ze.noop);var l=function l(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,ze(t.element).trigger(t.constructor.Event.SHOWN),e===Ze.OUT&&t._leave(null,t)};if(ze(this.tip).hasClass(tt.FADE)){var c=qt.getTransitionDurationFromElement(this.tip);ze(this.tip).one(qt.TRANSITION_END,l).emulateTransitionEnd(c)}else l()}},e.hide=function a(e){var t=this,n=this.getTipElement(),i=ze.Event(this.constructor.Event.HIDE),o=function o(){t._hoverState!==Ze.SHOW&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),ze(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(ze(this.element).trigger(i),!i.isDefaultPrevented()){if(ze(n).removeClass(tt.SHOW),"ontouchstart"in document.documentElement&&ze(document.body).children().off("mouseover",null,ze.noop),this._activeTrigger[it.CLICK
5]=!1,this._activeTrigger[it.FOCUS]=!1,this._activeTrigger[it.HOVER]=!1,ze(this.tip).hasClass(tt.FADE
6)){var r=qt.getTransitionDurationFromElement(n);ze(n).one(qt.TRANSITION_END,o).emulateTransitionEnd(r)}else o();this._hoverState=""}},e.update=function l(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function c(){return Boolean(this.getTitle())},e.addAttachmentClass=function d(e){ze(this.getTipElement()).addClass(Ke+"-"+e)},e.getTipElement=function u(){return this.tip=this.tip||ze(this.config.template)[0],this.tip},e.setContent=function h(){var e=this.getTipElement();this.setElementContent(ze(e.querySelectorAll(nt.TOOLTIP_INNER)),this.getTitle()),ze(e).removeClass(tt.FADE+" "+tt.SHOW)},e.setElementContent=function f(e,t){var n=this.config.html;"object"==typeof t&&(t.nodeType||t.jquery)?n?ze(t).parent().is(e)||e.empty().append(t):e.text(ze(t).text()):e[n?"html":"text"](t)},e.getTitle=function g(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},e._getAttachment=function m(e){return Xe[e.toUpperCase()]},e._setListeners=function v(){var i=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)ze(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)});else if(e!==it.MANUAL){var t=e===it.HOVER?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=e===it.HOVER?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;ze(i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(n,i.config.selector,function(e){return i._leave(e)})}ze(i.element).closest(".modal").on("hide.bs.modal",function(){return i.hide()})}),this.config.selector?this.config=_({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function y(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function b(e,t){var n=this.constructor.DATA_KEY;(t=t||ze(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),ze(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?it.FOCUS:it.HOVER]=!0),ze(t.getTipElement()).hasClass(tt.SHOW)||t._hoverState===Ze.SHOW?t._hoverState=Ze.SHOW:(clearTimeout(t._timeout),t._hoverState=Ze.SHOW,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===Ze.SHOW&&t.show()},t.config.delay.show):t.show())},e._leave=function w(e,t){var n=this.constructor.DATA_KEY;(t=t||ze(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),ze(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?it.FOCUS:it.HOVER]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=Ze.OUT,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===Ze.OUT&&t.hide()},t.config.delay.hide):t.hide())},e._isWithActiveTrigger=function C(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},e._getConfig=function x(e){return"number"==typeof(e=_({},this.constructor.Default,ze(this.element).data(),"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),qt.typeCheckConfig(We,e,this.constructor.DefaultType),e},e._getDelegateConfig=function k(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},e._cleanTipClass=function S(){var e=ze(this.getTipElement()),t=e.attr("class").match(Qe);null!==t&&t.length&&e.removeClass(t.join(""))},e._handlePopperPlacementChange=function j(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},e._fixTransition=function E(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(ze(e).removeClass(tt.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},i._jQueryInterface=function T(n){return this.each(function(){var e=ze(this).data(Ue),t="object"==typeof n&&n;if((e||!/dispose|hide/.test(n))&&(e||(e=new i(this,t),ze(this).data(Ue,e)),"string"==typeof n)){if("undefined"==typeof e[n])throw new TypeError('No method n
6amed "'+n+'"');e[n]()}})},D(i,null,[{key:"VERSION",get:function I(){return qe}},{key:"Default",get:function I(){return Je}},{key:"NAME",get:function I(){return We}},{key:"DATA_KEY",get:function I(){return Ue}},{key:"Event",get:function I(){return et}},{key:"EVENT_KEY",get:function I(){return Ve}},{key:"DefaultType",get:function I(){return Ye}}]),i}(),ze.fn[We]=ot._jQueryInterface,ze.fn[We].Constructor=ot,ze.fn[We].noConflict=function(){return ze.fn[We]=Ge,ot._jQueryInterface},ot),Jt=(st="popover",at="4.1.3",ct="."+(lt="bs.popover"),dt=(rt=t).fn[st],ut="bs-popover",pt=new RegExp("(^|\\s)"+ut+"\\S+","g"),ht=_({},Xt.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),ft=_({},Xt.DefaultType,{content:"(string|element|function)"}),gt={FADE:"fade",SHOW:"show"},mt={TITLE:".popover-header",CONTENT:".popover-body"},vt={HIDE:"hide"+ct,HIDDEN:"hidden"+ct,SHOW:"show"+ct,SHOWN:"shown"+ct,INSERTED:"inserted"+ct,CLICK:"click"+ct,FOCUSIN:"focusin"+ct,FOCUSOUT:"focusout"+ct,MOUSEENTER:"mouseenter"+ct,MOUSELEAVE:"mouseleave"+ct},yt=function(e){function i(){return e.apply(this,arguments)||this}u(i,e);var t=i.prototype;return t.isWithContent=function n(){return this.getTitle()||this._getContent()},t.addAttachmentClass=function o(e){rt(this.getTipElement()).addClass(ut+"-"+e)},t.getTipElement=function r(){return this.tip=this.tip||rt(this.config.template)[0],this.tip},t.setContent=function s(){var e=rt(this.getTipElement());this.setElementContent(e.find(mt.TITLE),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(mt.CONTENT),t),e.removeClass(gt.FADE+" "+gt.SHOW)},t._getContent=function a(){return this.element.getAttribute("data-content")||this.config.content},t._cleanTipClass=function l(){var e=rt(this.getTipElement()),t=e.attr("class").match(pt);null!==t&&0<t.length&&e.removeClass(t.join(""))},i._jQueryInterface=function c(n){return this.each(function(){var e=rt(this).data(lt),t="object"==typeof n?n:null;if((e||!/destroy|hide/.test(n))&&(e||(e=new i(this,t),rt(this).data(lt,e)),"string"==typeof n)){if("undefined"==typeof e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},D(i,null,[{key:"VERSION",get:function d(){return at}},{key:"Default",get:function d(){return ht}},{key:"NAME",get:function d(){return st}},{key:"DATA_KEY",get:function d(){return lt}},{key:"Event",get:function d(){return vt}},{key:"EVENT_KEY",get:function d(){return ct}},{key:"DefaultType",get:function d(){return ft}}]),i}(Xt),rt.fn[st]=yt._jQueryInterface,rt.fn[st].Constructor=yt,rt.fn[st].noConflict=function(){return rt.fn[st]=dt,yt._jQueryInterface},yt),Zt=(wt="scrollspy",Ct="4.1.3",kt="."+(xt="bs.scrollspy"),St=".data-api",jt=(bt=t).fn[wt],Et={offset:10,method:"auto",target:""},Tt={offset:"number",method:"string",target:"(string|element)"},It={ACTIVATE:"activate"+kt,SCROLL:"scroll"+kt,LOAD_DATA_API:"load"+kt+St},At={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},Dt={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},_t={OFFSET:"offset",POSITION:"position"},Nt=function(){function n(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+Dt.NAV_LINKS+","+this._config.target+" "+Dt.LIST_ITEMS+","+this._config.target+" "+Dt.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,bt(this._scrollElement).on(It.SCROLL,function(e){return n._process(e)}),this.refresh(),this._process()}var e=n.prototype;return e.refresh=function i(){var t=this,e=this._scrollElement===this._scrollElement.window?_t.OFFSET:_t.POSITION,o="auto"===this._config.method?e:this._config.method,r=o===_t.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var t,n=qt.getSelectorFromElement(e);
6if(n&&(t=document.querySelector(n)),t){var i=t.getBoundingClientRect();if(i.width||i.height)return[bt(t)[o]().top+r,n]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function t(){bt.removeData(this._element,xt),bt(this._scrollElement).off(kt),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function o(e){if("string"!=typeof(e=_({},Et,"object"==typeof e&&e?e:{})).target){var t=bt(e.target).attr("id");t||(t=qt.getUID(wt),bt(e.target).attr("id",t)),e.target="#"+t}return qt.typeCheckConfig(wt,e,Tt),e},e._getScrollTop=function r(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function s(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function a(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function l(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),n<=e){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&e>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||e<this._offsets[o+1])&&this._activate(this._targets[o])}}},e._activate=function c(t){this._activeTarget=t,this._clear();var e=this._selector.split(",");e=e.map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'});var n=bt([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass(At.DROPDOWN_ITEM)?(n.closest(Dt.DROPDOWN).find(Dt.DROPDOWN_TOGGLE).addClass(At.ACTIVE),n.addClass(At.ACTIVE)):(n.addClass(At.ACTIVE),n.parents(Dt.NAV_LIST_GROUP).prev(Dt.NAV_LINKS+", "+Dt.LIST_ITEMS).addClass(At.ACTIVE),n.parents(Dt.NAV_LIST_GROUP).prev(Dt.NAV_ITEMS).children(Dt.NAV_LINKS).addClass(At.ACTIVE)),bt(this._scrollElement).trigger(It.ACTIVATE,{relatedTarget:t})},e._clear=function d(){var e=[].slice.call(document.querySelectorAll(this._selector));bt(e).filter(Dt.ACTIVE).removeClass(At.ACTIVE)},n._jQueryInterface=function u(t){return this.each(function(){var e=bt(this).data(xt);if(e||(e=new n(this,"object"==typeof t&&t),bt(this).data(xt,e)),"string"==typeof t){if("undefined"==typeof e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},D(n,null,[{key:"VERSION",get:function p(){return Ct}},{key:"Default",get:function p(){return Et}}]),n}(),bt(window).on(It.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(Dt.DATA_SPY)),t=e.length;t--;){var n=bt(e[t]);Nt._jQueryInterface.call(n,n.data())}}),bt.fn[wt]=Nt._jQueryInterface,bt.fn[wt].Constructor=Nt,bt.fn[wt].noConflict=function(){return bt.fn[wt]=jt,Nt._jQueryInterface},Nt),en=(Lt="tab",Ot="4.1.3",Rt="."+(Pt="bs.tab"),Ht=".data-api",Mt=($t=t).fn[Lt],Ft={HIDE:"hide"+Rt,HIDDEN:"hidden"+Rt,SHOW:"show"+Rt,SHOWN:"shown"+Rt,CLICK_DATA_API:"click"+Rt+Ht},Bt={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},zt={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",ACTIVE_UL:"> li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},Wt=function(){function i(e){this._element=e}var e=i.prototype;return e.show=function c(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&$t(this._element).hasClass(Bt.ACTIVE)||$t(this._element).hasClass(Bt.DISABLED))){var e,i,t=$t(this._element).closest(zt.NAV_LIST_GROUP)[0],o=qt.getSelectorFromElement(this._element);if(t){var r="UL"===t.nodeName?zt.ACTIVE_UL:zt.ACTIVE;i=(i=$t.makeArray($t(t).find(r)))[i.length-1]}var s=$t.Event(Ft.HIDE,{relatedTarget:this._element}),a=$t.Event(Ft.SHOW,{relatedTarget:i});if(i&&$t(i).trigger(s),$t(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(e=document.querySelector(o)),this._activate(this._element,t);var l=function l(){var e=$t.Event(Ft.HIDDEN,{relatedTarget:n._element}),t=$t.Event(Ft.SHOWN,{relatedTarget:i});$t(i).trigger(e),$t(n._element).trigger(t)};e?this._activate(e,e.parentNode,l):l()}}},e.dispose=function t(){$t.removeData(this._element,Pt),this._element=null},e._activate=function l(e,t,n){var i=this,o=("UL"===t.nodeName?$t(t).find(zt.ACTIVE_UL):$t(t).children(zt.ACTIVE))[0],r=n&&o&&$t(o).hasClass(Bt.FADE),s=function s(){return i._transitionComplete(e,o,n)};if(o&&r){var a=qt.getTransitionDurationFromElement(o);$t(o).one(qt.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},e._transitionComplete=function s(e,t,n){if(t){$t(t).removeClass(Bt.SHOW+" "+Bt.ACTIVE);var i=$t(t.parentNode).find(zt.DROPDOWN_ACTIVE_CHILD)[0];i&&$t(i).removeClass(Bt.ACTIVE),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if($t(e).addClass(Bt.ACTIVE),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),qt.reflow(e),$t(e).addClass(Bt.SHOW),e.parentNode&&$t(e.parentNode).hasClass(Bt.DROPDOWN_MENU)){var o=$t(e).closest(zt.DROPDOWN)[0];if(o){var r=[].slice.call(o.querySelectorAll(zt.DROPDOWN_TOGGLE));$t(r).addClass(Bt.ACTIVE)}e.setAttribute("aria-expanded",!0)}n&&n()},i._jQueryInterface=function o(n){return this.each(function(){var e=$t(this),t=e.data(Pt);
6if(t||(t=new i(this),e.data(Pt,t)),"string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},D(i,null,[{key:"VERSION",get:function n(){return Ot}}]),i}(),$t(document).on(Ft.CLICK_DATA_API,zt.DATA_TOGGLE,function(e){e.preventDefault(),Wt._jQueryInterface.call($t(this),"show")}),$t.fn[Lt]=Wt._jQueryInterface,$t.fn[Lt].Constructor=Wt,$t.fn[Lt].noConflict=function(){return $t.fn[Lt]=Mt,Wt._jQueryInterface},Wt);!function(e){if(void 0===e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=e.fn.jquery.split(" ")[0].split("."),n=1,i=2,o=9,r=1,s=4;if(t[0]<i&&t[1]<o||t[0]===n&&t[1]===o&&t[2]<r||t[0]>=s)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(t),e.Util=qt,e.Alert=Ut,e.Button=Vt,e.Carousel=Gt,e.Collapse=Kt,e.Dropdown=Qt,e.Modal=Yt,e.Popover=Jt,e.Scrollspy=Zt,e.Tab=en,e.Tooltip=Xt,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){e===undefined&&window!==undefined&&(e=window),"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(e){!function(W){"use strict";function D(e,n){return e.length===n.length&&e.every(function(e,t){return e===n[t]})}function j(e){var t,n=[],i=e&&e.options;if(e.multiple)for(var o=0,r=i.length;o<r;o++)(t=i[o]).selected&&n.push(t.value||t.text);else n=e.value;return n}function k(e,t,n,i){for(var o=["content","subtext","tokens"],r=!1,s=0;s<o.length;s++){var a=o[s],l=e[a];if(l&&(l=l.toString(),"content"===a&&(l=l.replace(/<[^>]+>/g,"")),i&&(l=c(l)),l=l.toUpperCase(),r="contains"===n?0<=l.indexOf(t):l.startsWith(t)))break}return r}function A(e){return parseInt(e,10)||0}function c(e){var t=[{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}];return W.each(t,function(){e=e?e.replace(this.re,this.ch):""}),e}function t(e){var r,s=arguments,a=e;if([].shift.apply(s),!U.success){try{U.full=(W.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(n){U.full=u.BootstrapVersion.split(" ")[0].split(".")}U.major=U.full[0],U.success=!0,"4"===U.major&&(V.DIVIDER="dropdown-divider",V.SHOW="show",V.BUTTONCLASS="btn-light",u.DEFAULTS.style=V.BUTTONCLASS="btn-light",V.POPOVERHEADER="popover-header")}var t=this.each(function(){var e=W(this);if(e.is("select")){var t=e.data("selectpicker"),n="object"==typeof a&&a;if(t){if(n)for(var i in n)n.hasOwnProperty(i)&&(t.options[i]=n[i])}else{var o=W.extend({},u.DEFAULTS,W.fn.selectpicker.defaults||{},e.data(),n);o.template=W.extend({},u.DEFAULTS.template,W.fn.selectpicker.defaults?W.fn.selectpicker.defaults.template:{},e.data().template,n.template),e.data("selectpicker",t=new u(this,o))}"string"==typeof a&&(r=t[a]instanceof Function?t[a].apply(t,s):t.options[a])}});return void 0!==r?r:t}var e,d,n,i=document.createElement("_");if(i.classList.toggle("c3",!1),i.classList.contains("c3")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(e=function(){try{var e={},t=Object.defineProperty,n=t(e,e,e)&&t}catch(i){}return n}(),d={}.toString,n=function(e,t){if(null==this)throw new TypeError;var n=String(this);if(e&&"[object RegExp]"==d.call(e))throw new TypeError;var i=n.length,o=String(e),r=o.length,s=1<arguments.length?t:undefined,a=s?Number(s):0;a!=a&&(a=0);var l=Math.min(Math.max(a,0),i);if(i<r+l)return!1;for(var c=-1;++c<r;)if(n.charCodeAt(l+c)!=o.charCodeAt(c))return!1;return!0},e?e(String.prototype,"startsWith",{value:n,configurable:!0,writable:!0}):String.prototype.startsWith=n),Object.keys||(Object.keys=function(e,t,n){for(t in n=[],e)n.hasOwnProperty.call(e,t)&&n.push(t);return n});var r={useDefault:!1,_set:W.valHooks.select.set};W.valHooks.select.set=function(e,t){return t&&!r.useDefault&&W(e).data("selected",!0),r._set.apply(this,arguments)};var E=null,s=function(){try{return new Event("change"),!0}catch(e){return!1}}();W.fn.triggerNative=function(e){var t,n=this[0];n.dispatchEvent?(s?t=new Event(e,{bubbles:!0}):(t=document.createEvent("Event")).initEvent(e,!0,!1),n.dispatchEvent(t)):n.fireEvent?((t=document.createEventObject()).eventType=e,n.fireEvent("on"+e,t)):this.trigger(e)};var a={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x60;":"`"},l=function(t){var n=function(e){return t[e]},e="(?:"+Object.keys(t).join("|")+")",i=RegExp(e),o=RegExp(e,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(o,n):e}},q=l({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"}),f=l(a),S={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84
6:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},T={ESCAPE:27,ENTER:13,SPACE:32,TAB:9,ARROW_UP:38,ARROW_DOWN:40},U={success:!1,major:"3"};try{U.full=(W.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split("."),U.major=U.full[0],U.success=!0}catch(h){console.warn("There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.",h)}var V={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title"},I={MENU:"."+V.MENU};"4"===U.major&&(V.DIVIDER="dropdown-divider",V.SHOW="show",V.BUTTONCLASS="btn-light",V.POPOVERHEADER="popover-header");var _=new RegExp(T.ARROW_UP+"|"+T.ARROW_DOWN),N=new RegExp("^"+T.TAB+"$|"+T.ESCAPE),u=(new RegExp(T.ENTER+"|"+T.SPACE),function(e,t){var n=this;r.useDefault||(W.valHooks.select.set=r._set,r.useDefault=!0),this.$element=W(e),this.$newElement=null,this.$button=null,this.$menu=null,this.options=t,this.selectpicker={main:{map:{newIndex:{},originalIndex:{}}},current:{map:{}},search:{map:{}},view:{},keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout(function(){n.selectpicker.keydown.keyHistory=""},800)}}}},null===this.options.title&&(this.options.title=this.$element.attr("title"));var i=this.options.windowPadding;"number"==typeof i&&(this.options.windowPadding=[i,i,i,i]),this.val=u.prototype.val,this.render=u.prototype.render,this.refresh=u.prototype.refresh,this.setStyle=u.prototype.setStyle,this.selectAll=u.prototype.selectAll,this.deselectAll=u.prototype.deselectAll,this.destroy=u.prototype.destroy,this.remove=u.prototype.remove,this.show=u.prototype.show,this.hide=u.prototype.hide,this.init()});u.VERSION="1.13.2",u.BootstrapVersion=U.major,u.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(e){return 1==e?"{0} item selected":"{0} items selected"},maxOptionsText:function(e,t){return[1==e?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==t?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:V.BUTTONCLASS,size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:"glyphicon",tickIcon:"glyphicon-ok",showTick:!1,template:{caret:'<span class="caret"></span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1},"4"===U.major&&(u.DEFAULTS.style="btn-light",u.DEFAULTS.iconBase="",u.DEFAULTS.tickIcon="bs-ok-default"),u.prototype={constructor:u,init:function(){var n=this,e=this.$element.attr("id");this.$element.addClass("bs-select-hidden"),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$newElement=this.createDropdown(),this.createLi(),this.$element.after(this.$newElement).prependTo(this.$newElement),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(I.MENU),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$element.removeClass("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu.addClass(V.MENURIGHT),void 0!==e&&this.$button.attr("data-id",e),this.checkDisabled(),this.clickListener(),this.options.liveSearch&&this.liveSearchListener(),this.render(),this.setStyle(),this.setWidth(),this.options.container?this.selectPosition():this.$element.on("hide.bs.select",function(){if(n.isVirtual()){var e=n.$menuInner[0],t=e.firstChild.cloneNode(!1);e.replaceChild(t,e.firstChild),e.scrollTop=0}}),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(e){n.$menuInner.attr("aria-expanded",!1),n.$element.trigger("hide.bs.select",e)},"hidden.bs.dropdown":function(e){n.$element.trigger("hidden.bs.select",e)},"show.bs.dropdown":function(e){n.$menuInner.attr("aria-expanded",!0),n.$element.trigger("show.bs.select",e)},"shown.bs.dropdown":function(e){n.$element.trigger("shown.bs.select",e)}}),n.$element[0].hasAttribute("required")&&this.$element.on("invalid",function(){n.$button.addClass("bs-invalid"),n.$element.on({"shown.bs.select":function(){n.$element.val(n.$element.val()).off("shown.bs.select")},"rendered.bs.select":function(){this.validity.valid&&n.$button.removeClass("bs-invalid"),n.$element.off("rendered.bs.select")}}),n.$button.on("blur.bs.select",function(){n.$element.focus().blur(),n.$button.off("blur.bs.select")})}),setTimeout(function(){n.$element.trigger("loaded.bs.select")})},createDropdown:function(){var e=this.multiple||this.options.showTick?" show-tick":"",t=this.autofocus?" autofocus":"",n=this.options.header?'<div class="'+V.POPOVERHEADER+'"><button type="button" class="close" aria-hidden="true">&times;</button>'+this.options.header+"</div>":"",i=this.options.liveSearch?'<div class="bs-searchbox"><input type="text" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+q(this.options.liveSearchPlaceholder)+'"')+' role="textbox" aria-label="Search"></div>':"",o=this.multiple&&this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn '+V.BUTTONCLASS+'">'+this.options.selectAllText+'</button><button type="button" class="actions-btn bs-deselect-all btn '+V.BUTTONCLASS+'">'+this.options.deselectAllText+"</button></div></div>":"",r=this.multiple&&this.options.doneButton?'<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm '+V.BUTTONCLASS+'">'+this.options.doneButtonText+"</button></div></div>":"",s='<div class="dropdown bootstrap-select'+e+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" '+("static"===this.options.display?'data-display="static"':"")+'data-toggle="dropdown"'+t+' role="button"><div class="filter-option"><div class="filter-option-inner"><div class="filter-option-inner-inner"></div></div> </div>'+("4"===U.major?"":'<span class="bs-caret">'+this.options.template.caret+"</span>")+'</button><div class="'+V.MENU+" "+("4"===U.major?"":V.SHOW)+'" role="combobox">'+n+i+o+'<div class="inner '+V.SHOW+'" role="listbox" aria-expanded="false" tabindex="-1"><ul class="'+V.MENU+" inner "+("4"===U.major?V.SHOW:"")+'"></ul></div>'+r+"</div></div>";return W(s)},setPositionData:function(){this.selectpicker.view.canHighlight=[];for(var e=0;e<this.selectpicker.current.data.length;e++){var t=this.selectpicker.current.data[e],n=!0;"divider"===t.type?(n=!1,t.height=this.sizeInfo.dividerHeight):"optgroup-label"===t.type?(n=!1,t.height=this.sizeInfo.dropdownHeaderHeight):t.height=this.sizeInfo.liHeight,t.disabled&&(n=!1),this.selectpicker.view.canHighlight.push(n),t.position=(0===e?0:this.selectpicker.current.data[e-1].position)+t.height}},isVirtual:function(){return!1!==this.options.virtualScroll&&this.selectpicker.main.elements.length>=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(j,e){function n(e,t){var n,i,o,r,s,a,l,c=E.selectpicker.current.elements.length,d=[],u=undefined,p=!0,h=E.isVirtual();E.selectpicker.view.scrollTop=e,!0===h&&E.sizeInfo.hasScrollBar&&E.$menu[0].offsetWidth>E.sizeInfo.totalMenuWidth&&(E.sizeInfo.menuWidth=E.$menu[0].offsetWidth,E.sizeInfo.totalMenuWidth=E.sizeInfo.menuWidth+E.sizeInfo.scrollBarWidth,E.$menu.css("min-width",E.sizeInfo.menuWidth)),n=Math.ceil(E.sizeInfo.menuInnerHeight/E.sizeInfo.liHeight*1.5),i=Math.round(c/n)||1;for(var f=0;f<i;f++){var g=(f+1)*n;if(f===i-1&&(g=c),d[f]=[f*n+(f?1:0),g],!c)break;u===undefined&&e<=E.selectpicker.current.data[g-1].position-E.sizeInfo.menuInnerHeight&&(u=f)}if(u===undefined&&(u=0),s=[E.selectpicker.view.position0,E.selectpicker.view.position1],o=Math.max(0,u-1),r=Math.min(i-1,u+1),E.selectpicker.view.position0=Math.max(0,d[o][0])||0,E.selectpicker.view.position1=Math.min(c,d[r][1])||0,a=s[0]!==E.selectpicker.view.position0||s[1]!==E.selectpicker.view.position1,E.activeIndex!==undefined&&(I=E.selectpicker.current.elements[E.selectpicker.current.map.newIndex[E.prevActiveIndex]],A=E.selectpicker.current.elements[E.selectpicker.current.map.newIndex[E.activeIndex]],T=E.selectpicker.current.elements[E.selectpicker.current.map.newIndex[E.selectedIndex]],t&&(E.activeIndex!==E.selectedIndex&&(A.classList.remove("active"),A.firstChild&&A.firstChild.classList.remove("active")),E.activeIndex=undefined),E.activeIndex&&E.activeIndex!==E.selectedIndex&&T&&T.length&&(T.classList.remove("active"),T.firstChild&&T.firstChild.classList.remove("active"))),E.prevActiveIndex!==undefined&&E.prevActiveIndex!==E.activeIndex&&E.prevActiveIndex!==E.selectedIndex&&I&&I.length&&(I.classList.remove("active"),I.firstChild&&I.firstChild.classList.remove("active")),(t||a)&&(l=E.selectpicker.view.visibleElements?E.selectpicker.view.visibleElements.slice():[],E.selectpicker.view.visibleElements=E.selectpicker.current.elements.slice(E.selectpicker.view.position0,E.selectpicker.view.position1),E.setOptionStatus(),(j||!1===h&&t)&&(p=!D(l,E.selectpicker.view.visibleElements)),(t||!0===h)&&p)){var m,v,y=E.$menuInner[0],b=document.createDocumentFragment(),w=y.firstChild.cloneNode(!1),C=!0===h?E.selectpicker.view.visibleElements:E.selectpicker.current.elements;y.replaceChild(w,y.firstChild);f=0;for(var x=C.length;f<x;f++)b.appendChild(C[f]);!0===h&&(m=0===E.selectpicker.view.position0?0:E.selectpicker.current.data[E.selectpicker.view.position0-1].position,v=E.selectpicker.view.position1>c-1?0:E.selectpicker.current.data[c-1].position-E.selectpicker.current.data[E.selectpicker.view.position1-1].position,y.firstChild.style.marginTop=m+"px",y.firstChild.style.marginBottom=v+"px"),y.firstChild.appendChild(b)}if(E.prevActiveIndex=E.activeIndex,E.options.liveSearch){if(j&&t){var k,S=0;E.selectpicker.view.canHighlight[S]||(S=1+E.selectpicker.view.canHighlight.slice(1).indexOf(!0)),k=E.selectpicker.view.visibleElements[S],E.selectpicker.view.currentActive&&(E.selectpicker.view.currentActive.classList.remove("active"),E.selectpicker.view.currentActive.firstChild&&E.selectpicker.view.currentActive.firstChild.classList.remove("active")),k&&(k.classList.add("active"),k.firstChild&&k.firstChild.classList.add("active")),E.activeIndex=E.selectpicker.current.map.originalIndex[S]}}else E.$menuInner.focus()}e=e||0;var E=this;this.selectpicker.current=j?this.selectpicker.search:this.selectpicker.main;var T,I,A=[];this.setPositionData(),n(e,!0),this.$menuInner.off("scroll.createView").on("scroll.createView",function(e,t){E.noScroll||n(this.scrollTop,t),E.noScroll=!1}),W(window).off("resize.createView").on("resize.createView",function(){n(E.$menuInner[0].scrollTop)})},createLi:function(){var A,D=this,_=[],N=0,$=0,L=[],O=0,P=0,R=-1;this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option"));var r={span:document.createElement("span"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode("\xa0")},e=r.span.cloneNode(!1),s=document.createDocumentFragment();e.className=D.options.iconBase+" "+D.options.tickIcon+" check-mark",r.a.appendChild(e),r.a.setAttribute("role","option"),r.subtext.className="text-muted",r.text=r.span.cloneNode(!1),r.text.className="text";var H=function(e,t,n,i){var o=r.li.cloneNode(!1);return e&&(1===e.nodeType||11===e.nodeType?o.appendChild(e):o.innerHTML=e),void 0!==n&&""!==n&&(o.className=n),null!=i&&o.classList.add("optgroup-"+i),o},M=function(e,t,n){var i=r.a.cloneNode(!0);return e&&(11===e.nodeType?i.appendChild(e):i.insertAdjacentHTML("beforeend",e)),void 0!==t&""!==t&&(i.className=t),"4"===U.major&&i.classList.add("dropdown-item"),n&&i.setAttribute("style",n),i},F=function(e){var t,n,i=r.text.cloneNode(!1);if(e.optionContent)i.innerHTML=e.optionContent;else{if(i.textContent=e.text,e.optionIcon){var o=r.whitespace.cloneNode(!1);(n=r.span.cloneNode(!1)).className=D.options.iconBase+" "+e.optionIcon,s.appendChild(n),s.appendChild(o)}e.optionSubtext&&((t=r.subtext.cloneNode(!1)).innerHTML=e.optionSubtext,i.appendChild(t))}return s.appendChild(i),s},B=function(e){var t,n,i=r.text.cloneNode(!1);if(i.innerHTML=e.labelEscaped,e.labelIcon){var o=r.whitespace.cloneNode(!1);(n=r.span.cloneNode(!1)).className=D.options.iconBase+" "+e.labelIcon,s.appendChild(n),s.appendChild(o)}return e.labelSubtext&&((t=r.subtext.cloneNode(!1)).textContent=e.labelSubtext,i.appendChild(t)),s.appendChild(i),s};if(
7this.options.title&&!this.multiple){R--;var t=this.$element[0],n=!1,i=!this.selectpicker.view.titleOption.parentNode;if(i)this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",n=W(t.options[t.selectedIndex]).attr("selected")===undefined&&this.$element.data("selected")===undefined;(i||0!==this.selectpicker.view.titleOption.index)&&t.insertBefore(this.selectpicker.view.titleOption,t.firstChild),n&&(t.selectedIndex=0)}var z=this.$element.find("option");z.each(function(e){var t=W(this);if(R++,!t.hasClass("bs-title-option")){var n,i,o=t.data(),r=this.className||"",s=q(this.style.cssText),a=o.content,l=this.textContent,c=o.tokens,d=o.subtext,u=o.icon,p=t.parent(),h=p[0],f="OPTGROUP"===h.tagName,g=f&&h.disabled,m=this.disabled||g,v=this.previousElementSibling&&"OPTGROUP"===this.previousElementSibling.tagName,y=p.data();if(!0===o.hidden||D.options.hideDisabled&&(m&&!f||g)){n=o.prevHiddenIndex,t.next().data("prevHiddenIndex",n!==undefined?n:e),R--,v||n!==undefined&&(E=z[n].previousElementSibling)&&"OPTGROUP"===E.tagName&&!E.disabled&&(v=!0),v&&"divider"!==L[L.length-1].type&&(R++,_.push(H(!1,null,V.DIVIDER,O+"div")),L.push({type:"divider",optID:O}))}else{if(f&&!0!==o.divider){if(D.options.hideDisabled&&m){if(y.allOptionsDisabled===undefined){var b=p.children();p.data("allOptionsDisabled",b.filter(":disabled").length===b.length)}if(p.data("allOptionsDisabled"))return void R--}var w=" "+h.className||"";if(!this.previousElementSibling){O+=1;
7var C=h.label,x=q(C),k=y.subtext,S=y.icon;0!==e&&0<_.length&&(R++,_.push(H(!1,null,V.DIVIDER,O+"div")),L.push({type:"divider",optID:O})),R++;var j=B({labelEscaped:x,labelSubtext:k,labelIcon:S});_.push(H(j,null,"dropdown-header"+w,O)),L.push({content:x,subtext:k,type:"optgroup-label",optID:O}),P=R-1}if(D.options.hideDisabled&&m||!0===o.hidden)return void R--;i=F({text:l,optionContent:a,optionSubtext:d,optionIcon:u}),_.push(H(M(i,"opt "+r+w,s),e,"",O)),L.push({content:a||l,subtext:d,tokens:c,type:"option",optID:O,headerIndex:P,lastIndex:P+h.childElementCount,originalIndex:e,data:o}),N++}else if(!0===o.divider)_.push(H(!1,e,V.DIVIDER)),L.push({type:"divider",originalIndex:e,data:o});else{var E;if(!v&&D.options.hideDisabled)if((n=o.prevHiddenIndex)!==undefined)(E=z[n].previousElementSibling)&&"OPTGROUP"===E.tagName&&!E.disabled&&(v=!0);v&&"divider"!==L[L.length-1].type&&(R++,_.push(H(!1,null,V.DIVIDER,O+"div")),L.push({type:"divider",optID:O})),i=F({text:l,optionContent:a,optionSubtext:d,optionIcon:u}),_.push(H(M(i,r,s),e)),L.push({content:a||l,subtext:d,tokens:c,type:"option",originalIndex:e,data:o}),N++}D.selectpicker.main.map.newIndex[e]=R,D.selectpicker.main.map.originalIndex[R]=e;var T=L[L.length-1];T.disabled=m;var I=0;T.content&&(I+=T.content.length),T.subtext&&(I+=T.subtext.length),u&&(I+=1),$<I&&($=I,A=_[_.length-1])}}}),this.selectpicker.main.elements=_,this.selectpicker.main.data=L,this.selectpicker.current=this.selectpicker.main,this.selectpicker.view.widestOption=A,this.selectpicker.view.availableOptionsCount=N},findLis:function(){return this.$menuInner.find(".inner > li")},render:function(){var e=this,t=this.$element.find("option"),n=[],i=[];this.togglePlaceholder(),this.tabIndex();for(var o=0,r=this.selectpicker.main.elements.length;o<r;o++){var s=t[this.selectpicker.main.map.originalIndex[o]];if(s&&s.selected&&(n.push(s),i.length<100&&"count"!==e.options.selectedTextFormat||1===n.length)){if(e.options.hideDisabled&&(s.disabled||"OPTGROUP"===s.parentNode.tagName&&s.parentNode.disabled))return;var a,l,c=this.selectpicker.main.data[o].data,d=c.icon&&e.options.showIcon?'<i class="'+e.options.iconBase+" "+c.icon+'"></i> ':"";a=e.options.showSubtext&&c.subtext&&!e.multiple?' <small class="text-muted">'+c.subtext+"</small>":"",l=s.title?s.title:c.content&&e.options.showContent?c.content.toString():d+s.innerHTML.trim()+a,i.push(l)}}var u=this.multiple?i.join(this.options.multipleSeparator):i[0];if(50<n.length&&(u+="..."),this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")){var p=this.options.selectedTextFormat.split(">");if(1<p.length&&n.length>p[1]||1===p.length&&2<=n.length){var h=this.selectpicker.view.availableOptionsCount;u=("function"==typeof this.options.countSelectedText?this.options.countSelectedText(n.length,h):this.options.countSelectedText).replace("{0}",n.length.toString()).replace("{1}",h.toString())}}this.options.title==undefined&&(this.options.title=this.$element.attr("title")),"static"==this.options.selectedTextFormat&&(u=this.options.title),u||(u="undefined"!=typeof this.options.title?this.options.title:this.options.noneSelectedText),this.$button[0].title=f(u.replace(/<[^>]*>?/g,"").trim()),this.$button.find(".filter-option-inner-inner")[0].innerHTML=u,this.$element.trigger("rendered.bs.select")},setStyle:function(e,t){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));var n=e||this.options.style;"add"==t?this.$button.addClass(n):"remove"==t?this.$button.removeClass(n):(this.$button.removeClass(this.options.style),this.$button.addClass(n))},liHeight:function(e){if(e||!1!==this.options.size&&!this.sizeInfo){this.sizeInfo||(this.sizeInfo={});var t=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div"),o=document.createElement("ul"),r=document.createElement("li"),s=document.createElement("li"),a=document.createElement("li"),l=document.createElement("a"),c=document.createElement("span"),d=this.options.header&&0<this.$menu.find("."+V.POPOVERHEADER).length?this.$menu.find("."+V.POPOVERHEADER)[0].cloneNode(!0):null,u=this.options.liveSearch?document.createElement("div"):null,p=this.options.actionsBox&&this.multiple&&0<this.$menu.find(".bs-actionsbox").length?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,h=this.options.doneButton&&this.multiple&&0<this.$menu.find(".bs-donebutton").length?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null,f=this.$element.find("option")[0];if(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,c.className="text",l.className="dropdown-item "+(f?f.className:""),t.className=this.$menu[0].parentNode.className+" "+V.SHOW,t.style.width=this.sizeInfo.selectWidth+"px","auto"===this.options.width&&(n.style.minWidth=0),n.className=V.MENU+" "+V.SHOW,i.className="inner "+V.SHOW,o.className=V.MENU+" inner "+("4"===U.major?V.SHOW:""),r.className=V.DIVIDER,s.className="dropdown-header",c.appendChild(document.createTextNode("Inner text")),l.appendChild(c),a.appendChild(l),s.appendChild(c.cloneNode(!0)),this.selectpicker.view.widestOption&&o.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),o.appendChild(a),o.appendChild(r),o.appendChild(s),d&&n.appendChild(d),u){var g=document.createElement("input");u.className="bs-searchbox",g.className="form-control",u.appendChild(g),n.appendChild(u)}p&&n.appendChild(p),i.appendChild(o),n.appendChild(i),h&&n.appendChild(h),t.appendChild(n),document.body.appendChild(t);var m,v=l.offsetHeight,y=s?s.offsetHeight:0,b=d?d.offsetHeight:0,w=u?u.offsetHeight:0,C=p?p.offsetHeight:0,x=h?h.offsetHeight:0,k=W(r).outerHeight(!0),S=!!window.getComputedStyle&&window.getComputedStyle(n),j=n.offsetWidth,E=S?null:W(n),T={vert:A(S?S.paddingTop:E.css("paddingTop"))+A(S?S.paddingBottom:E.css("paddingBottom"))+A(S?S.borderTopWidth:E.css("borderTopWidth"))+A(S?S.borderBottomWidth:E.css("borderBottomWidth")),horiz:A(S?S.paddingLeft:E.css("paddingLeft"))+A(S?S.paddingRight:E.css("paddingRight"))+A(S?S.borderLeftWidth:E.css("borderLeftWidth"))+A(S?S.borderRightWidth:E.css("borderRightWidth"))},I={vert:T.vert+A(S?S.marginTop:E.css("marginTop"))+A(S?S.marginBottom:E.css("marginBottom"))+2,horiz:T.horiz+A(S?S.marginLeft:E.css("marginLeft"))+A(S?S.marginRight:E.css("marginRight"))+2};i.style.overflowY="scroll",m=n.offsetWidth-j,document.body.removeChild(t),this.sizeInfo.liHeight=v,this.sizeInfo.dropdownHeaderHeight=y,this.sizeInfo.headerHeight=b,this.sizeInfo.searchHeight=w,this.sizeInfo.actionsHeight=C,this.sizeInfo.doneButtonHeight=x,this.sizeInfo.dividerHeight=k,this.sizeInfo.menuPadding=T,this.sizeInfo.menuExtras=I,this.sizeInfo.menuWidth=j,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth,this.sizeInfo.scrollBarWidth=m,this.sizeInfo.selectHeight=this.$newElement[0].offsetHeight,this.setPositionData()}},getSelectPosition:function(){var e,t=this,n=W(window),i=t.$newElement.offset(),o=W(t.options.container);t.options.container&&!o.is("body")?((e=o.offset()).top+=parseInt(o.css("borderTopWidth")),e.left+=parseInt(o.css("borderLeftWidth"))):e={top:0,left:0};var r=t.options.windowPadding;this.sizeInfo.selectOffsetTop=i.top-e.top-n.scrollTop(),this.sizeInfo.selectOffsetBot=n.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-e.top-r[2],this.sizeInfo.selectOffsetLeft=i.left-e.left-n.scrollLeft(),this.sizeInfo.selectOffsetRight=n.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-e.left-r[1],this.sizeInfo.selectOffsetTop-=r[0],this.sizeInfo.selectOffsetLeft-=r[3]}
7,setMenuSize:function(){this.getSelectPosition();var e,t,n,i,o,r,s,a=this.sizeInfo.selectWidth,l=this.sizeInfo.liHeight,c=this.sizeInfo.headerHeight,d=this.sizeInfo.searchHeight,u=this.sizeInfo.actionsHeight,p=this.sizeInfo.doneButtonHeight,h=this.sizeInfo.dividerHeight,f=this.sizeInfo.menuPadding,g=0;if(this.options.dropupAuto&&(s=l*this.selectpicker.current.elements.length+f.vert,this.$newElement.toggleClass(V.DROPUP,this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&s+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot)),"auto"===this.options.size)i=3<this.selectpicker.current.elements.length?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,t=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,n=i+c+d+u+p,r=Math.max(i-f.vert,0),this.$newElement.hasClass(V.DROPUP)&&(t=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),e=(o=t)-c-d-u-p-f.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(var m=0;m<this.options.size;m++)"divider"===this.selectpicker.current.data[m].type&&g++;e=(t=l*this.options.size+g*h+f.vert)-f.vert,o=t+c+d+u+p,n=r=""}"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(V.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.$menu[0].offsetWidth-a),this.$menu.css({"max-height":o+"px",overflow:"hidden","min-height":n+"px"}),this.$menuInner.css({"max-height":e+"px","overflow-y":"auto","min-height":r+"px"}),this.sizeInfo.menuInnerHeight=e,this.selectpicker.current.data.length&&this.selectpicker.current.data[this.selectpicker.current.data.length-1].position>this.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth,this.$menu.css("min-width",this.sizeInfo.totalMenuWidth)),this.dropdown&&this.dropdown._popper&&this.dropdown._popper.update()},setSize:function(e){if(this.liHeight(e),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var t,n=this,i=W(window),o=0;this.setMenuSize(),"auto"===this.options.size?(this.$searchbox.off("input.setMenuSize propertychange.setMenuSize").on("input.setMenuSize propertychange.setMenuSize",function(){return n.setMenuSize()}),i.off("resize.setMenuSize scroll.setMenuSize").on("resize.setMenuSize scroll.setMenuSize",function(){return n.setMenuSize()})):this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&(this.$searchbox.off("input.setMenuSize propertychange.setMenuSize"),i.off("resize.setMenuSize scroll.setMenuSize")),e?o=this.$menuInner[0].scrollTop:n.multiple||"number"==typeof(t=n.selectpicker.main.map.newIndex[n.$element[0].selectedIndex])&&!1!==n.options.size&&(o=(o=n.sizeInfo.liHeight*t)-n.sizeInfo.menuInnerHeight/2+n.sizeInfo.liHeight/2),n.createView(!1,o)}},setWidth:function(){var n=this;"auto"===this.options.width?requestAnimationFrame(function(){n.$menu.css("min-width","0"),n.liHeight(),n.setMenuSize();var e=n.$newElement.clone().appendTo("body"),t=e.css("width","auto").children("button").outerWidth();e.remove(),n.sizeInfo.selectWidth=Math.max(n.sizeInfo.totalMenuWidth,t),n.$newElement.css("width",n.sizeInfo.selectWidth+"px")}):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width","")),this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement.removeClass("fit-width")},selectPosition:function(){this.$bsContainer=W('<div class="bs-container" />');var i,o,r,s=this,a=W(this.options.container),e=function(e){var t={},n=s.options.display||W.fn.dropdown.Constructor.Default.display;s.$bsContainer.addClass(e.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(V.DROPUP,e.hasClass(V.DROPUP)),i=e.offset(),a.is("body")?o={top:0,left:0}:((o=a.offset()).top+=parseInt(a.css("borderTopWidth"))-a.scrollTop(),o.left+=parseInt(a.css("borderLeftWidth"))-a.scrollLeft()),r=e.hasClass(V.DROPUP)?0:e[0].offsetHeight,(U.major<4||"static"===n)&&(t.top=i.top-o.top+r,t.left=i.left-o.left),t.width=e[0].offsetWidth,s.$bsContainer.css(t)};this.$button.on("click.bs.dropdown.data-api",function(){s.isDisabled()||(e(s.$newElement),s.$bsContainer.appendTo(s.options.container).toggleClass(V.SHOW,!s.$button.hasClass(V.SHOW)).append(s.$menu))}),W(window).on("resize scroll",function(){e(s.$newElement)}),this.$element.on("hide.bs.select",function(){s.$menu.data("height",s.$menu.height()),s.$bsContainer.detach()})},setOptionStatus:function(){var e=this,t=this.$element.find("option");if(e.noScroll=!1,e.selectpicker.view.visibleElements&&e.selectpicker.view.visibleElements.length)for(var n=0;n<e.selectpicker.view.visibleElements.length;n++){var i=e.selectpicker.current.map.originalIndex[n+e.selectpicker.view.position0],o=t[i];if(o){var r=this.selectpicker.main.map.newIndex[i],s=this.selectpicker.main.elements[r];e.setDisabled(i,o.disabled||"OPTGROUP"===o.parentNode.tagName&&o.parentNode.disabled,r,s),e.setSelected(i,o.selected,r,s)}}},setSelected:function(e,t,n,i){var o,r,s,a=this.activeIndex!==undefined,l=this.activeIndex===e||t&&!this.multiple&&!a;n||(n=this.selectpicker.main.map.newIndex[e]),i||(i=this.selectpicker.main.elements[n]),s=i.firstChild,t&&(this.selectedIndex=e),i.classList.toggle("selected",t),i.classList.toggle("active",l),l&&(this.selectpicker.view.currentActive=i,this.activeIndex=e),s&&(s.classList.toggle("selected",t),s.classList.toggle("active",l),s.setAttribute("aria-selected",t)),l||!a&&t&&this.prevActiveIndex!==undefined&&(o=this.selectpicker.main.map.newIndex[this.prevActiveIndex],(r=this.selectpicker.main.elements[o]).classList.toggle("selected",t),r.classList.remove("active"),r.firstChild&&(r.firstChild.classList.toggle("selected",t),r.firstChild.classList.remove("active")))},setDisabled:function(e,t,n,i){var o;n||(n=this.selectpicker.main.map.newIndex[e]),i||(i=this.selectpicker.main.elements[n]),o=i.firstChild,i.classList.toggle(V.DISABLED,t),o&&("4"===U.major&&o.classList.toggle(V.DISABLED,t),o.setAttribute("aria-disabled",t),t?o.setAttribute("tabindex",-1):o.setAttribute("tabindex",0))},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var e=this;this.isDisabled()?(this.$newElement.addClass(V.DISABLED),this.$button.addClass(V.DISABLED).attr("tabindex",-1).attr("aria-disabled",!0)):(this.$button.hasClass(V.DISABLED)&&(this.$newElement.removeClass(V.DISABLED),this.$button.removeClass(V.DISABLED).attr("aria-disabled",!1)),-1!=this.$button.attr("tabindex")||this.$element.data("tabindex")||this.$button.removeAttr("tabindex")),this.$button.click(function(){return!e.isDisabled()})},togglePlaceholder:function(){var e=this.$element[0],t=e.selectedIndex,n=-1===t;n||e.options[t].value||(n=!0),this.$button.toggleClass("bs-placeholder",n)},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&-98!==this.$element.attr("tabindex")&&"-98"!==this.$element.attr("tabindex")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex"))),this.$element.attr("tabindex",-98)},clickListener:function(){function e(){S.options.liveSearch?S.$searchbox.focus():S.$menuInner.focus()}function t(){S.dropdown&&S.dropdown._popper&&S.dropdown._popper.state.isCreated?e():requestAnimationFrame(t)}var S=this,n=W(document);n.data("spaceSelect",!1),this.$button.on("keyup",function(e){/(32)/.test(e.keyCode.toString(10))&&n.data("spaceSelect")&&(e.preventDefault(),n.data("spaceSelect",!1))}),this.$newElement.on("show.bs.dropdown",function(){3<U.major&&!S.dropdown&&(S.dropdown=S.$button.data("bs.dropdown"),S.dropdown._menu=S.$menu[0])}),this.$button.on("click.bs.dropdown.data-api",function(){S.$newElement.hasClass(V.SHOW)||S.setSize()}),this.$element.on("shown.bs.select",function(){S.$menuInner[0].scrollTop!==S.selectpicker.view.scrollTop&&(S.$menuInner[0].scrollTop=S.selectpicker.view.scrollTop),3<U.major?requestAnimationFrame(t):e()}),this.$menuInner.on("click","li a",function(e,t){var n=W(this),i=S.isVirtual()?S.selectpicker.view.position0:0,o=S.selectpicker.current.map.originalIndex[n.parent().index()+i],r=j(S.$element[0]),s=S.$element.prop("selectedIndex"),a=!0;if(S.multiple&&1!==S.options.maxOptions&&e.stopPropagation(),e.preventDefault(),!S.isDisabled()&&!n.parent().hasClass(V.DISABLED)){var l=S.$element.find("option"),c=l.eq(o),d=c.prop("selected"),u=c.parent("optgroup"),p=u.find("option"),h=S.options.maxOptions,f=u.data("maxOptions")||!1;if(o===S.activeIndex&&(t=!0),t||(S.prevActiveIndex=S.activeIndex,S.activeIndex=undefined),S.multiple){if(c.prop("selected",!d),S.setSelected(o,!d),n.blur(),!1!==h||!1!==f){var g=h<l.filter(":selected").length,m=f<u.find("option:selected").length;if(h&&g||f&&m)if(h&&1==h){l.prop("selected",!1),c.prop("selected",!0);for(var v=0;v<l.length;v++)S.setSelected(v,!1);S.setSelected(o,!0)}else if(f&&1==f){u.find("option:selected").prop("selected",!1),c.prop("selected",!0);for(v=0;v<p.length;v++){var y=p[v];S.setSelected(l.index(y),!1)}S.setSelected(o,!0)}else{var b="string"==typeof S.options.maxOptionsText?[S.options.maxOptionsText,S.options.maxOptionsText]:S.options.maxOptionsText,w="function"==typeof b?b(h,f):b,C=w[0].replace("{n}",h),x=w[1].replace("{n}",f),k=W('<div class="notify"></div>');w[2]&&(C=C.replace("{var}",w[2][1<h?0:1]),x=x.replace("{var}",w[2][1<f?0:1])),c.prop("selected",!1),S.$menu.append(k),h&&g&&(k.append(W("<div>"+C+"</div>")),a=!1,S.$element.trigger("maxReached.bs.select")),f&&m&&(k.append(W("<div>"+x+"</div>")),a=!1,S.$element.trigger("maxReachedGrp.bs.select")),setTimeout(function(){S.setSelected(o,!1)},10),k.delay(750).fadeOut(300,function(){W(this).remove()})}}}else l.prop("selected",!1),c.prop("selected",!0),S.setSelected(o,!0);!S.multiple||S.multiple&&1===S.options.maxOptions?S.$button.focus():S.options.liveSearch&&S.$searchbox.focus(),a&&(r!=j(S.$element[0])&&S.multiple||s!=S.$element.prop("selectedIndex")&&!S.multiple)&&(E=[o,
7c.prop("selected"),r],S.$element.triggerNative("change"))}}),this.$menu.on("click","li."+V.DISABLED+" a, ."+V.POPOVERHEADER+", ."+V.POPOVERHEADER+" :not(.close)",function(e){e.currentTarget==this&&(e.preventDefault(),e.stopPropagation(),S.options.liveSearch&&!W(e.target).hasClass("close")?S.$searchbox.focus():S.$button.focus())}),this.$menuInner.on("click",".divider, .dropdown-header",function(e){e.preventDefault(),e.stopPropagation(),S.options.liveSearch?S.$searchbox.focus():S.$button.focus()}),this.$menu.on("click","."+V.POPOVERHEADER+" .close",function(){S.$button.click()}),this.$searchbox.on("click",function(e){e.stopPropagation()}),this.$menu.on("click",".actions-btn",function(e){S.options.liveSearch?S.$searchbox.focus():S.$button.focus(),e.preventDefault(),e.stopPropagation(),W(this).hasClass("bs-select-all")?S.selectAll():S.deselectAll()}),this.$element.on({change:function(){S.render(),S.$element.trigger("changed.bs.select",E),E=null},focus:function(){S.$button.focus()}})},liveSearchListener:function(){var h=this,f=document.createElement("li");this.$button.on("click.bs.dropdown.data-api",function(){h.$searchbox.val()&&h.$searchbox.val("")}
7),this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",function(e){e.stopPropagation()}),this.$searchbox.on("input propertychange",function(){var e=h.$searchbox.val();if(h.selectpicker.search.map.newIndex={},h.selectpicker.search.map.originalIndex={},h.selectpicker.search.elements=[],h.selectpicker.search.data=[],e){var t=[],n=e.toUpperCase(),i={},o=[],r=h._searchStyle(),s=h.options.liveSearchNormalize;h._$lisSelected=h.$menuInner.find(".selected");for(var a=0;a<h.selectpicker.main.data.length;a++){var l=h.selectpicker.main.data[a];i[a]||(i[a]=k(l,n,r,s)),i[a]&&l.headerIndex!==undefined&&-1===o.indexOf(l.headerIndex)&&(0<l.headerIndex&&(i[l.headerIndex-1]=!0,o.push(l.headerIndex-1)),i[l.headerIndex]=!0,o.push(l.headerIndex),i[l.lastIndex+1]=!0),i[a]&&"optgroup-label"!==l.type&&o.push(a)}a=0;for(var c=o.length;a<c;a++){var d=o[a],u=o[a-1],p=(l=h.selectpicker.main.data[d],h.selectpicker.main.data[u]);("divider"!==l.type||"divider"===l.type&&p&&"divider"!==p.type&&c-1!==a)&&(h.selectpicker.search.data.push(l),t.push(h.selectpicker.main.elements[d]),l.hasOwnProperty("originalIndex")&&(h.selectpicker.search.map.newIndex[l.originalIndex]=t.length-1,h.selectpicker.search.map.originalIndex[t.length-1]=l.originalIndex))}h.activeIndex=undefined,h.noScroll=!0,h.$menuInner.scrollTop(0),h.selectpicker.search.elements=t,h.createView(!0),t.length||(f.className="no-results",f.innerHTML=h.options.noneResultsText.replace("{0}",'"'+q(e)+'"'),h.$menuInner[0].firstChild.appendChild(f))}else h.$menuInner.scrollTop(0),h.createView(!1)})},_searchStyle:function(){return this.options.liveSearchStyle||"contains"},val:function(e){return void 0!==e?(this.$element.val(e).triggerNative("change"),this.$element):this.$element.val()},changeAll:function(e){if(this.multiple){void 0===e&&(e=!0);var t=this.$element.find("option"),n=0,i=0,o=j(this.$element[0]);this.$element.addClass("bs-select-hidden");for(var r=0;r<this.selectpicker.current.elements.length;r++){var s=this.selectpicker.current.data[r],a=t[this.selectpicker.current.map.originalIndex[r]];a&&!a.disabled&&"divider"!==s.type&&(a.selected&&n++,a.selected=e,a.selected&&i++)}this.$element.removeClass("bs-select-hidden"),n!==i&&(this.setOptionStatus(),this.togglePlaceholder(),E=[null,null,o],this.$element.triggerNative("change"))}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(e){(e=e||window.event)&&e.stopPropagation(),this.$button.trigger("click.bs.dropdown.data-api")},keydown:function(e){var t,n,i,o,r,s=W(this),a=s.hasClass("dropdown-toggle"),l=(a?s.closest(".dropdown"):s.closest(I.MENU)).data("this"),c=l.findLis(),d=!1,u=e.which===T.TAB&&!a&&!l.options.selectOnTab,p=_.test(e.which)||u,h=l.$menuInner[0].scrollTop,f=l.isVirtual(),g=!0===f?l.selectpicker.view.position0:0;if(!(n=l.$newElement.hasClass(V.SHOW))&&(p||48<=e.which&&e.which<=57||96<=e.which&&e.which<=105||65<=e.which&&e.which<=90)&&l.$button.trigger("click.bs.dropdown.data-api"),e.which===T.ESCAPE&&n&&(e.preventDefault(),l.$button.trigger("click.bs.dropdown.data-api").focus()),p){if(!c.length)return;(t=!0===f?c.index(c.filter(".active")):l.selectpicker.current.map.newIndex[l.activeIndex])===undefined&&(t=-1),-1!==t&&((i=l.selectpicker.current.elements[t+g]).classList.remove("active"),i.firstChild&&i.firstChild.classList.remove("active")),e.which===T.ARROW_UP?(-1!==t&&t--,t+g<0&&(t+=c.length),l.selectpicker.view.canHighlight[t+g]||-1===(t=l.selectpicker.view.canHighlight.slice(0,t+g).lastIndexOf(!0)-g)&&(t=c.length-1)):(e.which===T.ARROW_DOWN||u)&&(++t+g>=l.selectpicker.view.canHighlight.length&&(t=0),l.selectpicker.view.canHighlight[t+g]||(t=t+1+l.selectpicker.view.canHighlight.slice(t+g+1).indexOf(!0))),e.preventDefault();var m=g+t;e.which===T.ARROW_UP?0===g&&t===c.length-1?(l.$menuInner[0].scrollTop=l.$menuInner[0].scrollHeight,m=l.selectpicker.current.elements.length-1):d=(r=(o=l.selectpicker.current.data[m]).position-o.height)<h:(e.which===T.ARROW_DOWN||u)&&(0===t?m=l.$menuInner[0].scrollTop=0:d=h<(r=(o=l.selectpicker.current.data[m]).position-l.sizeInfo.menuInnerHeight)),(i=l.selectpicker.current.elements[m])&&(i.classList.add("active"),i.firstChild&&i.firstChild.classList.add("active")),l.activeIndex=l.selectpicker.current.map.originalIndex[m],l.selectpicker.view.currentActive=i,d&&(l.$menuInner[0].scrollTop=r),l.options.liveSearch?l.$searchbox.focus():s.focus()}else if(!s.is("input")&&!N.test(e.which)||e.which===T.SPACE&&l.selectpicker.keydown.keyHistory){var v,y,b=[];e.preventDefault(),l.selectpicker.keydown.keyHistory+=S[e.which],l.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(l.selectpicker.keydown.resetKeyHistory.cancel),l.selectpicker.keydown.resetKeyHistory.cancel=l.selectpicker.keydown.resetKeyHistory.start(),y=l.selectpicker.keydown.keyHistory,/^(.)\1+$/.test(y)&&(y=y.charAt(0));for(var w=0;w<l.selectpicker.current.data.length;w++){var C=l.selectpicker.current.data[w];k(C,y,"startsWith",!0)&&l.selectpicker.view.canHighlight[w]&&(C.index=w,b.push(C.originalIndex))}if(b.length){var x=0;c.removeClass("active").find("a").removeClass("active"),1===y.length&&(-1===(x=b.indexOf(l.activeIndex))||x===b.length-1?x=0:x++),v=l.selectpicker.current.map.newIndex[b[x]],0<h-(o=l.selectpicker.current.data[v]).position?(r=o.position-o.height,d=!0):(r=o.position-l.sizeInfo.menuInnerHeight,d=o.position>h+l.sizeInfo.menuInnerHeight),(i=l.selectpicker.current.elements[v]).classList.add("active"),i.firstChild&&i.firstChild.classList.add("active"),l.activeIndex=b[x],i.firstChild.focus(),d&&(l.$menuInner[0].scrollTop=r),s.focus()}}n&&(e.which===T.SPACE&&!l.selectpicker.keydown.keyHistory||e.which===T.ENTER||e.which===T.TAB&&l.options.selectOnTab)&&(e.which!==T.SPACE&&e.preventDefault(),l.options.liveSearch&&e.which===T.SPACE||(l.$menuInner.find(".active a").trigger("click",!0),s.focus(),l.options.liveSearch||(e.preventDefault(),W(document).data("spaceSelect",!0))))},mobile:function(){this.$element.addClass("mobile-device")},refresh:function(){var e=W.extend({},this.options,this.$element.data());this.options=e,this.selectpicker.main.map.newIndex={},this.selectpicker.main.map.originalIndex={},this.createLi(),this.checkDisabled(),this.render(),this.setStyle(),this.setWidth(),this.setSize(!0),this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.$element.off(".bs.select").removeData("selectpicker").removeClass("bs-select-hidden selectpicker")}};var p=W.fn.selectpicker;W.fn.selectpicker=t,W.fn.selectpicker.Constructor=u,W.fn.selectpicker.noConflict=function(){return W.fn.selectpicker=p,this},W(document).off("keydown.bs.dropdown.data-api").on("keydown.bs.select",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bs-searchbox input',u.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bs-searchbox input',function(e){e.stopPropagation()}),W(window).on("load.bs.select.data-api",function(){W(".selectpicker").each(function(){var e=W(this);t.call(e,e.data())})})}(e)}
vendor: 13,375 bytes, lines 7-8
7),function(e,t){e===undefined&&window!==undefined&&(e=window),"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(e){e.fn.selectpicker.defaults={noneSelectedText:"Aucune s\xe9lection",noneResultsText:"Aucun r\xe9sultat pour {0}",countSelectedText:function(e){return 1<e?"{0} \xe9l\xe9ments s\xe9lectionn\xe9s":"{0} \xe9l\xe9ment s\xe9lectionn\xe9"},maxOptionsText:function(e,t){return[1<e?"Limite atteinte ({n} \xe9l\xe9ments max)":"Limite atteinte ({n} \xe9l\xe9ment max)",1<t?"Limite du groupe atteinte ({n} \xe9l\xe9ments max)":"Limite du groupe atteinte ({n} \xe9l\xe9ment max)"]},multipleSeparator:", ",selectAllText:"Tout s\xe9lectionner",deselectAllText:"Tout d\xe9s\xe9lectionner"}}),function(w,C){var e=function(e,t){var n,i,o=this;t=t||{},this.$element=w(e),this.options=w.extend(!0,{},w.fn.ajaxSelectPicker.defaults,t),this.LOG_ERROR=1,this.LOG_WARNING=2,this.LOG_INFO=3,this.LOG_DEBUG=4,this.lastRequest=!1,this.previousQuery="",this.query="",this.request=!1;var r=[{from:"ajaxResultsPreHook",to:"preprocessData"},{from:"ajaxSearchUrl",to:{ajax:{url:"{{{value}}}"}}},{from:"ajaxOptions",to:"ajax"},{from:"debug",to:function(e){var t={};t.log=Boolean(o.options[e.from])?o.LOG_DEBUG:0,o.options=w.extend(!0,{},o.options,t),delete o.options[e.from],o.log(o.LOG_WARNING,'Deprecated option "'+e.from+'". Update code to use:',t)}},{from:"mixWithCurrents",to:"preserveSelected"},{from:"placeHolderOption",to:{locale:{emptyTitle:"{{{value}}}"}}}];r.length&&w.map(r,function(e){if(o.options[e.from])if(w.isPlainObject(e.to))o.replaceValue(e.to,"{{{value}}}",o.options[e.from]),o.options=w.extend(!0,{},o.options,e.to),o.log(o.LOG_WARNING,'Deprecated option "'+e.from+'". Update code to use:',e.to),delete o.options[e.from];else if(w.isFunction(e.to))e.to.apply(o,[e]);else{var t={};t[e.to]=o.options[e.from],o.options=w.extend(!0,{},o.options,t),o.log(o.LOG_WARNING,'Deprecated option "'+e.from+'". Update code to use:',t),delete o.options[e.from]}});var s=this.$element.data();s.searchUrl&&(o.log(o.LOG_WARNING,'Deprecated attribute name: "data-search-url". Update markup to use: \' data-abs-ajax-url="'+s.searchUrl+"\" '"),this.options.ajax.url=s.searchUrl);var a=function(e,t){return t.toLowerCase()},l=function(e,t,n){var i=[].concat(e),o=i.length,r=n||{};if(o){var s=i.shift();r[s]=l(i,t,r[s])}return o?r:t},c=Object.keys(s).filter(/./.test.bind(new RegExp("^abs[A-Z]")));if(c.length){var d={},u=["locale"];for(n=0,i=c.length;n<i;n++){var p=c[n].replace(/^abs([A-Z])/,a).replace(/([A-Z])/g,"-$1").toLowerCase(),h=p.split("-");if(h[0]&&1<h.length&&-1!==u.indexOf(h[0])){for(var f=[h.shift()],g="",m=0;m<h.length;m++)g+=0===m?h[m]:h[m].charAt(0).toUpperCase()+h[m].slice(1);f.push(g),h=f}this.log(this.LOG_DEBUG,'Processing data attribute "data-abs-'+p+'":',s[c[n]]),l(h,s[c[n]],d)}this.options=w.extend(!0,{},this.options,d),this.log(this.LOG_DEBUG,"Merged in the data attribute options: ",d,this.options)}if(this.selectpicker=s.selectpicker,!this.selectpicker)return this.log(this.LOG_ERROR,"Cannot instantiate an AjaxBootstrapSelect instance without selectpicker first being initialized!"),null;if(!this.options.ajax.url)return this.log(this.LOG_ERROR,'Option "ajax.url" must be set! Options:',this.options),null;if(this.locale=w.extend(!0,{},w.fn.ajaxSelectPicker.locale),this.options.langCode=this.options.langCode||C.navigator.userLanguage||C.navigator.language||"en",!this.locale[this.options.langCode]){var v=this.options.langCode;this.options.langCode="en";var y=v.split("-");for(n=0,i=y.length;n<i;n++){var b=y.join("-");if(b.length&&this.locale[b]){this.options.langCode=b;break}y.pop()}this.log(this.LOG_WARNING,'Unknown langCode option: "'+v+'". Using the following langCode instead: "'+this.options.langCode+'".')}this.locale[this.options.langCode]=w.extend(!0,{},this.locale[this.options.langCode],this.options.locale),this.list=new C.AjaxBootstrapSelectList(this),this.list.refresh(),setTimeout(function(){o.init()},500)};e.prototype.init=function(){var i,o=this;this.options.preserveSelected&&this.selectpicker.$menu.off("click",".actions-btn").on("click",".actions-btn",function(e){o.selectpicker.options.liveSearch?o.selectpicker.$searchbox.focus():o.selectpicker.$button.focus(),e.preventDefault(),e.stopPropagation(),w(this).is(".bs-select-all")?(null===o.selectpicker.$lis&&(o.selectpicker.$lis=o.selectpicker.$menu.find("li")),o.$element.find("option:enabled").prop("selected",!0),w(o.selectpicker.$lis).not(".disabled").addClass("selected")):(null===o.selectpicker.$lis&&(o.selectpicker.$lis=o.selectpicker.$menu.find("li")),o.$element.find("option:enabled").prop("selected",!1),w(o.selectpicker.$lis).not(".disabled").removeClass("selected")),o.selectpicker.render(),o.selectpicker.$element.change()}),this.selectpicker.$searchbox.attr("placeholder",this.t(
8"searchPlaceholder")).off("input propertychange"),this.selectpicker.$searchbox.on(this.options.bindEvent,function(e){var t=o.selectpicker.$searchbox.val();if(o.log(o.LOG_DEBUG,'Bind event fired: "'+o.options.bindEvent+'", keyCode:',e.keyCode,e),o.options.cache||(o.options.ignoredKeys[13]="enter"),o.options.ignoredKeys[e.keyCode])o.log(o.LOG_DEBUG,"Key ignored.");else if(t.length<o.options.minLength)o.list.setStatus(o.t("statusTooShort"));else if(clearTimeout(i),t.length||(o.options.clearOnEmpty&&o.list.destroy(),o.options.emptyRequest)){if(o.previousQuery=o.query,o.query=t,o.options.cache&&13!==e.keyCode){var n=o.list.cacheGet(o.query);if(n)return o.list.setStatus(n.length?"":o.t("statusNoResults")),o.list.replaceOptions(n),void o.log(o.LOG_INFO,"Rebuilt options from cached data.")}i=setTimeout(function(){o.lastRequest&&o.lastRequest.jqXHR&&w.isFunction(o.lastRequest.jqXHR.abort)&&o.lastRequest.jqXHR.abort(),o.request=new C.AjaxBootstrapSelectRequest(o),o.request.jqXHR.always(function(){o.lastRequest=o.request,o.request=!1})},o.options.requestDelay||300)}})},e.prototype.log=function(e,t){if(C.console&&this.options.log){if("number"!=typeof this.options.log)switch("string"==typeof this.options.log&&(this.options.log=this.options.log.toLowerCase()),this.options.log){case!0:case"debug":this.options.log=this.LOG_DEBUG;break;case"info":this.options.log=this.LOG_INFO;break;case"warn":case"warning":this.options.log=this.LOG_WARNING;break;default:case!1:case"error":this.options.log=this.LOG_ERROR}if(e<=this.options.log){var n=[].slice.apply(arguments,[2]);switch(e){case this.LOG_DEBUG:e="debug";break;case this.LOG_INFO:e="info";break;case this.LOG_WARNING:e="warn";break;default:case this.LOG_ERROR:e="error"}var i="["+e.toUpperCase()+"] AjaxBootstrapSelect:";"string"==typeof t?n.unshift(i+" "+t):(n.unshift(t),n.unshift(i)),C.console[e].apply(C.console,n)}}},e.prototype.replaceValue=function(n,i,o,r){var s=this;r=w.extend({recursive:!0,depth:!1,limit:!1},r),w.each(n,function(e,t){if(!1!==r.limit&&"number"==typeof r.limit&&r.limit<=0)return!1;w.isArray(n[e])||w.isPlainObject(n[e])?(r.recursive&&!1===r.depth||r.recursive&&"number"==typeof r.depth&&0<r.depth)&&s.replaceValue(n[e],i,o,r):t===i&&(!1!==r.limit&&"number"==typeof r.limit&&r.limit--,n[e]=o)})},e.prototype.t=function(e,t){return t=t||this.options.langCode,this.locale[t]&&this.locale[t].hasOwnProperty(e)?this.locale[t][e]:(this.log(this.LOG_WARNING,"Unknown translation key:",e),e)},C.AjaxBootstrapSelect=C.AjaxBootstrapSelect||e;var t=function(n){var i=this;this.$status=w(n.options.templates.status).hide().appendTo(n.selectpicker.$menu);var e=n.t("statusInitialized");e&&e.length&&this.setStatus(e),this.cache={},this.plugin=n,this.selected=[],this.title=null,this.selectedTextFormat=n.selectpicker.options.selectedTextFormat;var o=[];n.$element.find("option").each(function(){var e=w(this),t=e.attr("value");o.push({value:t,text:e.text(),"class":e.attr("class")||"",data:e.data()||{},preserved:n.options.preserveSelected,selected:!!e.attr("selected")})}),this.cacheSet("",o),n.options.preserveSelected&&(i.selected=o,n.$element.on("change.abs.preserveSelected",function(){var e=n.$element.find(":selected");i.selected=[],n.selectpicker.multiple||(e=e.last()),e.each(function(){var e=w(this),t=e.attr("value");i.selected.push({value:t,text:e.text(),"class":e.attr("class")||"",data:e.data()||{},preserved:!0,selected:!0})}),i.replaceOptions(i.cacheGet(i.plugin.query))}))};t.prototype.build=function(e){var t,n,i=e.length,o=w("<select/>"),r=w("<optgroup/>").attr("label",this.plugin.t("currentlySelected"));for(this.plugin.log(this.plugin.LOG_DEBUG,"Building the select list options from data:",e),n=0;n<i;n++){var s=e[n],a=w("<option/>").appendTo(s.preserved?r:o);if(s.hasOwnProperty("divider"))a.attr("data-divider","true");else for(t in a.val(s.value).text(s.text).attr("title",s.text),s["class"].length&&a.attr("class",s["class"]),s.disabled&&a.attr("disabled",!0),s.selected&&!this.plugin.selectpicker.multiple&&o.find(":selected").prop("selected",!1),s.selected&&a.attr("selected",!0),s.data)s.data.hasOwnProperty(t)&&a.attr("data-"+t,s.data[t])}r.find("option").length&&r["before"===this.plugin.options.preserveSelectedPosition?"prependTo":"appendTo"](o);var l=o.html();return this.plugin.log(this.plugin.LOG_DEBUG,l),l},t.prototype.cacheGet=function(e,t){var n=this.cache[e]||t;return this.plugin.log(this.LOG_DEBUG,"Retrieving cache:",e,n),n},t.prototype.cacheSet=function(e,t){this.cache[e]=t,this.plugin.log(this.LOG_DEBUG,"Saving to cache:",e,t)},t.prototype.destroy=function(){this.replaceOptions(),this.plugin.list.setStatus(),this.plugin.log(this.plugin.LOG_DEBUG,"Destroyed select list.")},t.prototype.refresh=function(e){this.plugin.selectpicker.$menu.css("minHeight",0),this.plugin.selectpicker.$menu.find("> .inner").css("minHeight",0);var t=this.plugin.t("emptyTitle");!this.plugin.$element.find("option").length&&t&&t.length?this.setTitle(t):(this.title||"static"!==this.selectedTextFormat&&this.selectedTextFormat!==this.plugin.selectpicker.options.selectedTextFormat)&&this.restoreTitle(),this.plugin.selectpicker.refresh(),this.plugin.selectpicker.findLis(),e&&(this.plugin.log(this.plugin.LOG_DEBUG,"Triggering Change"),this.plugin.$element.trigger("change.$")),this.plugin.log(this.plugin.LOG_DEBUG,"Refreshed select list.")},t.prototype.replaceOptions=function(e){var t,n,i,o="",r=[],s=[],a=[];if(e=e||[],this.selected&&this.selected.length){for(this.plugin.log(this.plugin.LOG_INFO,"Processing preserved selections:",this.selected),n=(s=[].concat(this.selected,e)).length,t=0;t<n;t++)(i=s[t]).hasOwnProperty("value")&&-1===a.indexOf(i.value+"")?(a.push(i.value+""),r.push(i)):this.plugin.log(this.plugin.LOG_DEBUG,"Duplicate item found, ignoring.");e=r}e.length&&(o=this.plugin.list.build(e)),this.plugin.$element.html(o),this.refresh(),this.plugin.log(this.plugin.LOG_DEBUG,"Replaced options with data:",e)},t.prototype.restore=function(){var e=this.plugin.list.cacheGet(this.plugin.previousQuery);return e&&this.plugin.list.replaceOptions(e)&&this.plugin.log(this.plugin.LOG_DEBUG,"Restored select list to the previous query: ",this.plugin.previousQuery),this.plugin.log(this.plugin.LOG_DEBUG,"Unable to restore select list to the previous query:",this.plugin.previousQuery),!1},t.prototype.restoreTitle=function(){this.plugin.request||(this.plugin.selectpicker.options.selectedTextFormat=this.selectedTextFormat,this.title?this.plugin.$element.attr("title",this.title):this.plugin.$element.removeAttr("title"),this.title=null)},t.prototype.setTitle=function(e){this.plugin.request||(this.title=this.plugin.$element.attr("title"),this.plugin.selectpicker.options.selectedTextFormat="static",this.plugin.$element.attr("title",e))},t.prototype.setStatus=function(e){(e=e||"").length?this.$status.html(e).show():this.$status.html("").hide()},C.AjaxBootstrapSelectList=C.AjaxBootstrapSelectList||t;var n=function(e){var t,n=this,i=function(e){return function(){n.plugin.log(n.plugin.LOG_INFO,"Invoking AjaxBootstrapSelectRequest."+e+" callback:",arguments),n[e].apply(n,arguments),n.callbacks[e]&&(n.plugin.log(n.plugin.LOG_INFO,"Invoking ajax."+e+" callback:",arguments),n.callbacks[e].apply(n,arguments))}},o=["beforeSend","success","error","complete"],r=o.length;for(this.plugin=e,this.options=w.extend(!0,{},e.options.ajax),this.callbacks={},t=0;t<r;t++){var s=o[t];this.options[s]&&w.isFunction(this.options[s])&&(this.callbacks[s]=this.options[s]),this.options[s]=i(s)}this.options.data&&w.isFunction(this.options.data)&&(this.options.data=this.options.data.apply(this)||{q:"{{{q}}}"}),this.plugin.replaceValue(this.options.data,"{{{q}}}",this.plugin.query),this.jqXHR=w.ajax(this.options)};n.prototype.beforeSend=function(){this.plugin.list.destroy(),this.plugin.list.setStatus(this.plugin.t("statusSearching"))},n.prototype.complete=function(e,t){if("abort"!==t){var n=this.plugin.list.cacheGet(this.plugin.query);if(n){if(!n.length)return this.plugin.list.destroy(),this.plugin.list.setStatus(this.plugin.t("statusNoResults")),void this.plugin.log(this.plugin.LOG_INFO,"No results were returned.");this.plugin.list.setStatus()}this.plugin.list.refresh(!0)}},n.prototype.error=function(e,t){"abort"!==t&&(this.plugin.list.cacheSet(this.plugin.query),this.plugin.options.clearOnError&&this.plugin.list.destroy(),this.plugin.list.setStatus(this.plugin.t("errorText")),this.plugin.options.restoreOnError&&(this.plugin.list.restore(
8),this.plugin.list.setStatus()))},n.prototype.process=function(e){var t,n,i,o,r,s,a=[],l=[];if(this.plugin.log(this.plugin.LOG_INFO,"Processing raw data for:",this.plugin.query,e),r=e,w.isFunction(this.plugin.options.preprocessData)&&(this.plugin.log(this.plugin.LOG_DEBUG,"Invoking preprocessData callback:",this.plugin.options.processData),null!=(i=this.plugin.options.preprocessData.apply(this,[r]))&&!1!==i&&(r=i)),!w.isArray(r))return this.plugin.log(this.plugin.LOG_ERROR,'The data returned is not an Array. Use the "preprocessData" callback option to parse the results and construct a proper array for this plugin.',r),!1;for(n=r.length,t=0;t<n;t++)o=r[t],this.plugin.log(this.plugin.LOG_DEBUG,"Processing item:",o),w.isPlainObject(o)&&(o.hasOwnProperty("divider")||o.hasOwnProperty("data")&&w.isPlainObject(o.data)&&o.data.divider?(this.plugin.log(this.plugin.LOG_DEBUG,"Item is a divider, ignoring provided data."),a.push({divider:!0})):o.hasOwnProperty("value")?-1===l.indexOf(o.value+"")?(l.push(o.value+""),o=w.extend({text:o.value,"class":"",data:{},disabled:!1,selected:!1},o),a.push(o)):this.plugin.log(this.plugin.LOG_DEBUG,"Duplicate item found, ignoring."):this.plugin.log(this.plugin.LOG_DEBUG,'Data item must have a "value" property, skipping.'));if(s=[].concat(a),w.isFunction(this.plugin.options.processData)&&(this.plugin.log(this.plugin.LOG_DEBUG,"Invoking processData callback:",this.plugin.options.processData),null!=(i=this.plugin.options.processData.apply(this,[s]))&&!1!==i)){if(!w.isArray(i))return this.plugin.log(this.plugin.LOG_ERROR,"The processData callback did not return an array.",i),!1;s=i}return this.plugin.list.cacheSet(this.plugin.query,s),this.plugin.log(this.plugin.LOG_INFO,"Processed data:",s),s},n.prototype.success=function(e){if(!w.isArray(e)&&!w.isPlainObject(e))return this.plugin.log(this.plugin.LOG_ERROR,"Request did not return a JSON Array or Object.",e),void this.plugin.list.destroy();var t=this.process(e);this.plugin.list.replaceOptions(t)},C.AjaxBootstrapSelectRequest=C.AjaxBootstrapSelectRequest||n,w.fn.ajaxSelectPicker=function(e){return this.each(function(){w(this).data("AjaxBootstrapSelect")||w(this).data("AjaxBootstrapSelect",new C.AjaxBootstrapSelect(this,e))})},w.fn.ajaxSelectPicker.locale={},w.fn.ajaxSelectPicker.defaults={ajax:{url:null,type:"POST",dataType:"json",data:{q:"{{{q}}}"}},minLength:0,bindEvent:"keyup",cache:!0,clearOnEmpty:!0,clearOnError:!0,emptyRequest:!1,ignoredKeys:{9:"tab",16:"shift",17:"ctrl",18:"alt",27:"esc",37:"left",39:"right",38:"up",40:"down",91:"meta"},langCode:null,locale:null,log:"error",preprocessData:function(){},preserveSelected:!0,preserveSelectedPosition:"after",processData:function(){},requestDelay:300,restoreOnError:!1,templates:{status:'<div class="status"></div>'}},w.fn.ajaxSelectPicker.locale["en-US"]={currentlySelected:"Currently Selected",emptyTitle:"Select and begin typing",errorText:"Unable to retrieve results",searchPlaceholder:"Search...",statusInitialized:"Start typing a search query",statusNoResults:"No Results",statusSearching:"Searching...",statusTooShort:"Please enter more characters"},w.fn.ajaxSelectPicker.locale.en=w.fn.ajaxSelectPicker.locale["en-US"]}(jQuery,window),function(e){e.fn.ajaxSelectPicker.locale["fr-FR"]={currentlySelected:"Actuellement s\xe9lectionn\xe9",emptyTitle:"S\xe9lectionner et commencer \xe0 taper",errorText:"Impossible de r\xe9cup\xe9rer les r\xe9sultats",searchPlaceholder:"Rechercher...",statusInitialized:"Commencer \xe0 taper une recherche",statusNoResults:"Aucun r\xe9sultat",statusSearching:"Recherche en cours...",statusTooShort:"Entrez plus de caract\xe8res"},e.fn.ajaxSelectPicker.locale.fr=e.fn.ajaxSelectPicker.locale["fr-FR"]}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(a){function i(e,t){var n,i,o,r=e.nodeName.toLowerCase();return"area"===r?(i=(n=e.parentNode).name,!(!e.href||!i||"map"!==n.nodeName.toLowerCase())&&(!!(o=a("img[usemap='#"+i+"']")[0])&&s(o))):(/^(input|select|textarea|button|object)$/.test(r)?!e.disabled:"a"===r&&e.href||t)&&s(e)}function s(e){return a.expr.filters.visible(e)&&!a(e).parents().addBack().filter(function(){return"hidden"===a.css(this,"visibility")}).length}var e,t,n,o;a.ui=a.ui||{},a.extend(a.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),a.fn.extend({scrollParent:function(e){var t=this.css("position"),n="absolute"===t,i=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=a(this);return(!n||"static"!==e.css("position"))&&i.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==t&&o.length?o:a(this[0].ownerDocument||document)},uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id
8)&&a(this).removeAttr("id")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(t){return function(e){return!!a.data(e,t)}}):function(e,t,n){return!!a.data(e,n[3])},focusable:function(e){return i(e,!isNaN(a.attr(e,"tabindex")))},tabbable:function(e){var t=a.attr(e,"tabindex"),n=isNaN(t);return(n||0<=t)&&i(e,!n)}}),a("<a>").outerWidth(1).jquery||a.each(["Width","Height"],function(e,n){function i(e,t,n,i){return a.each(o,function(){t-=parseFloat(a.css(e,"padding"+this))||0,n&&(t-=parseFloat(a.css(e,"border"+this+"Width"))||0),i&&(t-=parseFloat(a.css(e,"margin"+this))||0)}),t}var o="Width"===n?["Left","Right"]:["Top","Bottom"],r=n.toLowerCase(),s={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+n]=function(e){return e===undefined?s["inner"+n].call(this):this.each(function(){a(this).css(r,i(this,e)+"px")})},a.fn["outer"+n]=function(e,t){return"number"!=typeof e?s["outer"+n].call(this,e):this.each(function(){a(this).css(r,i(this,e,!0,t)+"px")})}}),a.fn.addBack||(a.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),a("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(a.fn.removeData=(t=a.fn.removeData,function(e){return arguments.length?t.call(this,a.camelCase(e)):t.call(this)})),a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),a.fn.extend({focus:(o=a.fn.focus,function(t,n){return"number"==typeof t?this.each(function(){var e=this;setTimeout(function(){a(e).focus(),n&&n.call(e)},t)}):o.apply(this,arguments)}),disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.bind(n+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(e!==undefined)return this.css("zIndex",e);if(this.length)for(var t,n,i=a(this[0]);i.length&&i[0]!==document;){if(("absolute"===(t=i.css("position"))||"relative"===t||"fixed"===t)&&(n=parseInt(i.css("zIndex"),10),!isNaN(n)&&0!==n))return n;i=i.parent()}return 0}}),a.ui.plugin={add:function(e,t,n){var i,o=a.ui[e].prototype;for(i in n)o.plugins[i]=o.plugins[i]||[],o.plugins[i].push([t,n[i]])},call:function(e,t,n,i){var o,r=e.plugins[t];if(r&&(i||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(o=0;o<r.length;o++)e.options[r[o][0]]&&r[o][1].apply(e.element,n)}}}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(d){var r,n=0,a=Array.prototype.slice;return d.cleanData=(r=d.cleanData,function(e){var t,n,i;for(i=0;null!=(n=e[i]);i++)try{(t=d._data(n,"events"))&&t.remove&&d(n).triggerHandler("remove")}catch(o){}r(e)}),d.widget=function(e,n,t){var i,o,r,s,a={},l=e.split(".")[0];return e=e.split(".")[1],i=l+"-"+e,t||(t=n,n=d.Widget),d.expr[":"][i.toLowerCase()]=function(e){return!!d.data(e,i)},d[l]=d[l]||{},o=d[l][e],r=d[l][e]=function(e,t){if(!this._createWidget)return new r(e,t);arguments.length&&this._createWidget(e,t)},d.extend(r,o,{version:t.version,_proto:d.extend({},t),_childConstructors:[]}),(s=new n).options=d.widget.extend({},s.options),d.each(t,function(t,i){var o,r;d.isFunction(i)?a[t]=(o=function(){return n.prototype[t].apply(this,arguments)},r=function(e){return n.prototype[t].apply(this,e)},function(){var e,t=this._super,n=this._superApply;return this._super=o,this._superApply=r,e=i.apply(this,arguments),this._super=t,this._superApply=n,e}):a[t]=i}),r.prototype=d.widget.extend(s,{widgetEventPrefix:o&&s.widgetEventPrefix||e},a,{constructor:r,namespace:l,widgetName:e,widgetFullName:i}),o?(d.each(o._childConstructors,function(e,t){var n=t.prototype;d.widget(n.namespace+"."+n.widgetName,r,t._proto)}),delete o._childConstructors):n._childConstructors.push(r),d.widget.bridge(e,r),r},d.widget.extend=function(e){for(var t,n,i=a.call(arguments,1),o=0,r=i.length;o<r;o++)for(t in i[o])n=i[o][t],i[o].hasOwnProperty(t)&&n!==undefined&&(d.isPlainObject(n)?e[t]=d.isPlainObject(e[t])?d.widget.extend({},e[t],n):d.widget.extend({},n):e[t]=n);return e},d.widget.bridge=function(r,t){var s=t.prototype.widgetFullName||r;d.fn[r]=function(n){var e="string"==typeof n,i=a.call(arguments,1
vendor: 6,642 bytes, line 8
8),o=this;return e?this.each(function(){var e,t=d.data(this,s);return"instance"===n?(o=t,!1):t?d.isFunction(t[n])&&"_"!==n.charAt(0)?(e=t[n].apply(t,i))!==t&&e!==undefined?(o=e&&e.jquery?o.pushStack(e.get()):e,!1):void 0:d.error("no such method '"+n+"' for "+r+" widget instance"):d.error("cannot call methods on "+r+" prior to initialization; attempted to call method '"+n+"'")}):(i.length&&(n=d.widget.extend.apply(null,[n].concat(i))),this.each(function(){var e=d.data(this,s);e?(e.option(n||{}),e._init&&e._init()):d.data(this,s,new t(n,this))})),o}},d.Widget=function(){},d.Widget._childConstructors=[],d.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,t){t=d(t||this.defaultElement||this)[0],this.element=d(t),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=d(),this.hoverable=d(),this.focusable=d(),t!==this&&(d.data(t,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===t&&this.destroy()}}),this.document=d(t.style?t.ownerDocument:t.document||t),this.window=d(this.document[0].defaultView||this.document[0].parentWindow)),this.options=d.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:d.noop,_getCreateEventData:d.noop,_create:d.noop,_init:d.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(d.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:d.noop,widget:function(){return this.element},option:function(e,t){var n,i,o,r=e;if(0===arguments.length)return d.widget.extend({},this.options);if("string"==typeof e)if(r={},e=(n=e.split(".")).shift(),n.length){for(i=r[e]=d.widget.extend({},this.options[e]),o=0;o<n.length-1;o++)i[n[o]]=i[n[o]]||{},i=i[n[o]];if(e=n.pop(),1===arguments.length)return i[e]===undefined?null:i[e];i[e]=t}else{if(1===arguments.length)return this.options[e]===undefined?null:this.options[e];r[e]=t}return this._setOptions(r),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),t&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(s,a,e){var l,c=this;"boolean"!=typeof s&&(e=a,a=s,s=!1),e?(a=l=d(a),this.bindings=this.bindings.add(a)):(e=a,a=this.element,l=this.widget()),d.each(e,function(e,t){function n(){if(s||!0!==c.options.disabled&&!d(this).hasClass("ui-state-disabled"))return("string"==typeof t?c[t]:t).apply(c,arguments)}"string"!=typeof t&&(n.guid=t.guid=t.guid||n.guid||d.guid++);var i=e.match(/^([\w:-]*)\s*(.*)$/),o=i[1]+c.eventNamespace,r=i[2];r?l.delegate(r,o,n):a.bind(o,n)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t),this.bindings=d(this.bindings.not(e).get()),this.focusable=d(this.focusable.not(e).get()),this.hoverable=d(this.hoverable.not(e).get())},_delay:function(e,t){function n(){return("string"==typeof e?i[e]:e).apply(i,arguments)}var i=this;return setTimeout(n,t||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){d(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){d(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){d(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){d(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,t,n){var i,o,r=this.options[e];if(n=n||{},(t=d.Event(t)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),t.target=this.element[0],o=t.originalEvent)for(i in o)i in t||(t[i]=o[i]);return this.element.trigger(t,n),!(d.isFunction(r)&&!1===r.apply(this.element[0],[t].concat(n))||t.isDefaultPrevented())}},d.each({show:"fadeIn",hide:"fadeOut"},function(r,s){d.Widget.prototype["_"+r]=function(t,e,n){"string"==typeof e&&(e={effect:e});var i,o=e?!0===e||"number"==typeof e?s:e.effect||s:r;"number"==typeof(e=e||{})&&(e={duration:e}),i=!d.isEmptyObject(e),e.complete=n,e.delay&&t.delay(e.delay),i&&d.effects&&d.effects.effect[o]?t[r](e):o!==r&&t[o]?t[o](e.duration,e.easing,n):t.queue(function(e){d(this)[r](),n&&n.call(t[0]),e()})}}),d.widget}),function(e){"function"==typeof define&&define.amd?define(["jquery","./widget"],e):e(jQuery)}(function(o){var r=!1;return o(document).mouseup(function(){r=!1}),o.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(e){if(!0===o.data(e.target,t.widgetName+".preventClickEvent"))return o.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!r){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var t=this,n=1===e.which,i=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&o(e.target).closest(this.options.cancel).length;return!(n&&!i&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===o.data(e.target,this.widgetName+".preventClickEvent")&&o.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),r
vendor: 11,521 bytes, lines 8-9
8=!0))}},_mouseMove:function(e){if(this._mouseMoved){if(o.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&o.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),r=!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}})}),function(e){"function"==typeof define&&define.amd?define(["jquery","./core","./mouse","./widget"],e):e(jQuery)}(function(h){return h.widget("ui.sortable",h.ui.mouse,{version:"1.11.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,n){return t<=e&&e<t+n},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle"),h.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle"),this._mouseDestroy();for(var e=this.items.length-1;0<=e;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,t){var n=null,i=!1,o=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),h(e.target).parents().each(function(){if(h.data(this,o.widgetName+"-item")===o)return n=h(this),!1}),h.data(e.target,o.widgetName+"-item")===o&&(n=h(e.target)),!!n&&(!(this.options.handle&&!t&&(h(this.options.handle,n).find("*").addBack().each(function(){this===e.target&&(i=!0)}),!i))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,t,n){var i,o,r=this.options;if((this.currentContainer=this).refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},h.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",r.cursor),this.storedStylesheet=h("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(o)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(i=this.containers.length-1;0<=i;i--)this.containers[i]._trigger("activate",e,this._uiHash(this));return h.ui.ddmanager&&(h.ui.ddmanager.current=this),h.ui.ddmanager&&!r.dropBehaviour&&h.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var t,n,i,o,r=this.options,s=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<r.scrollSensitivity?this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+r.scrollSpeed:e.pageY-this.overflowOffset.top<r.scrollSensitivity&&(this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-r.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<r.scrollSensitivity?this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+r.scrollSpeed:e.pageX-this.overflowOffset.left<r.scrollSensitivity&&(this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-r.scrollSpeed)):(e.pageY-this.document.scrollTop()<r.scrollSensitivity?s=this.document.scrollTop(this.document.scrollTop()-r.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<r.scrollSensitivity&&(s=this.document.scrollTop(this.document.scrollTop()+r.scrollSpeed)),e.pageX-this.document.scrollLeft()<r.scrollSensitivity?s=this.document.scrollLeft(this.document.scrollLeft()-r.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<r.scrollSensitivity&&(s=this.document.scrollLeft(this.document.scrollLeft()+r.scrollSpeed))),!1!==s&&h.ui.ddmanager&&!r.dropBehaviour&&h.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),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"),t=this.items.length-1;0<=t;t--)if(i=(n=this.items[t]).item[0],(o=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(i===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===i||h.contains(this.placeholder[0],i)||"semi-dynamic"===this.options.type&&h.contains(this.element[0],i))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),h.ui.ddmanager&&h.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,t){if(e){if(h.ui.ddmanager&&!this.options.dropBehaviour&&h.ui.ddmanager.drop(this,e),this.options.revert){var n=this,i=this.placeholder.offset(),o=this.options.axis,r={};o&&"x"!==o||(r.left=i.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(r.top=i.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,h(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,t);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS
9).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;0<=e;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),h.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?h(this.domPosition.prev).after(this.currentItem):h(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var e=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},h(e).each(function(){var e=(h(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);e&&n.push((t.key||e[1]+"[]")+"="+(t.key&&t.expression?e[1]:e[2]))}),!n.length&&t.key&&n.push(t.key+"="),n.join("&")},toArray:function(e){var t=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t.each(function(){n.push(h(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(e){var t=this.positionAbs.left,n=t+this.helperProportions.width,i=this.positionAbs.top,o=i+this.helperProportions.height,r=e.left,s=r+e.width,a=e.top,l=a+e.height,c=this.offset.click.top,d=this.offset.click.left,u="x"===this.options.axis||a<i+c&&i+c<l,p="y"===this.options.axis||r<t+d&&t+d<s,h=u&&p;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?h:r<t+this.helperProportions.width/2&&n-this.helperProportions.width/2<s&&a<i+this.helperProportions.height/2&&o-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var t="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),n="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width),i=t&&n,o=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return!!i&&(this.floating?r&&"right"===r||"down"===o?2:1:o&&("down"===o?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),n=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),i=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return this.floating&&o?"right"===o&&n||"left"===o&&!n:i&&("down"===i&&t||"up"===i&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(0<e?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(0<e?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;
9return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(e){function t(){s.push(this)}var n,i,o,r,s=[],a=[],l=this._connectWith();if(l&&e)for(n=l.length-1;0<=n;n--)for(i=(o=h(l[n],this.document[0])).length-1;0<=i;i--)(r=h.data(o[i],this.widgetFullName))&&r!==this&&!r.options.disabled&&a.push([h.isFunction(r.options.items)?r.options.items.call(r.element):h(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);for(a.push([h.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):h(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=a.length-1;0<=n;n--)a[n][0].each(t);return h(s)},_removeCurrentsFromItems:function(){var n=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=h.grep(this.items,function(e){for(var t=0;t<n.length;t++)if(n[t]===e.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var t,n,i,o,r,s,a,l,c=this.items,d=[[h.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):h(this.options.items,this.element),this]],u=this._connectWith();if(u&&this.ready)for(t=u.length-1;0<=t;t--)for(n=(i=h(u[t],this.document[0])).length-1;0<=n;n--)(o=h.data(i[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&(d.push([h.isFunction(o.options.items)?o.options.items.call(o.element[0],e,{item:this.currentItem}):h(o.options.items,o.element),o]),this.containers.push(o));for(t=d.length-1;0<=t;t--)for(r=d[t][1],n=0,l=(s=d[t][0]).length;n<l;n++)(a=h(s[n])).data(this.widgetName+"-item",r),c.push({item:a,instance:r,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var t,n,i,o;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),t=this.items.length-1;0<=t;t--)(n=this.items[t]).instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(i=this.options.toleranceElement?h(this.options.toleranceElement,n.item):n.item,e||(n.width=i.outerWidth(),n.height=i.outerHeight()),o=i.offset(),n.left=o.left,n.top=o.top);
vendor: 21,587 bytes, line 9
9if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;0<=t;t--)o=this.containers[t].element.offset(),this.containers[t].containerCache.left=o.left,this.containers[t].containerCache.top=o.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(n){var i,o=(n=n||this).options;o.placeholder&&o.placeholder.constructor!==String||(i=o.placeholder,o.placeholder={element:function(){var e=n.currentItem[0].nodeName.toLowerCase(),t=h("<"+e+">",n.document[0]).addClass(i||n.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tbody"===e?n._createTrPlaceholder(n.currentItem.find("tr").eq(0),h("<tr>",n.document[0]).appendTo(t)):"tr"===e?n._createTrPlaceholder(n.currentItem,t):"img"===e&&t.attr("src",n.currentItem.attr("src")),i||t.css("visibility","hidden"),t},update:function(e,t){i&&!o.forcePlaceholderSize||(t.height()||t.height(n.currentItem.innerHeight()-parseInt(n.currentItem.css("paddingTop")||0,10)-parseInt(n.currentItem.css("paddingBottom")||0,10)),t.width()||t.width(n.currentItem.innerWidth()-parseInt(n.currentItem.css("paddingLeft")||0,10)-parseInt(n.currentItem.css("paddingRight")||0,10)))}}),n.placeholder=h(o.placeholder.element.call(n.element,n.currentItem)),n.currentItem.after(n.placeholder),o.placeholder.update(n,n.placeholder)},_createTrPlaceholder:function(e,t){var n=this;e.children().each(function(){h("<td>&#160;</td>",n.document[0]).attr("colspan",h(this).attr("colspan")||1).appendTo(t)})},_contactContainers:function(e){var t,n,i,o,r,s,a,l,c,d,u=null,p=null;for(t=this.containers.length-1;0<=t;t--)if(!h.contains(this.currentItem[0],this.containers[t].element[0]))if(this._intersectsWith(this.containers[t].containerCache)){if(u&&h.contains(this.containers[t].element[0],u.element[0]))continue;u=this.containers[t],p=t}else this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",e,this._uiHash(this)),this.containers[t].containerCache.over=0);if(u)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(i=1e4,o=null,r=(c=u.floating||this._isFloating(this.currentItem))?"left":"top",s=c?"width":"height",d=c?"clientX":"clientY",n=this.items.length-1;0<=n;n--)h.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(a=this.items[n].item.offset()[r],l=!1,e[d]-a>this.items[n][s]/2&&(l=!0),Math.abs(e[d]-a)<i&&(i=Math.abs(e[d]-a),o=this.items[n],this.direction=l?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var t=this.options,n=h.isFunction(t.helper)?h(t.helper.apply(this.element[0],[e,this.currentItem])):"clone"===t.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||h("parent"!==t.appendTo?t.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),n[0].style.width&&!t.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!t.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),h.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&h.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&h.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,t,n,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.width():this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(e=h(i.containment)[0],t=h(i.containment).offset(),n="hidden"!==h(e).css("overflow"),this.containment=[t.left+(parseInt(h(e).css("borderLeftWidth"),10)||0)+(parseInt(h(e).css("paddingLeft"),10)||0)-this.margins.left,t.top+(parseInt(h(e).css("borderTopWidth"),10)||0)+(parseInt(h(e).css("paddingTop"),10)||0)-this.margins.top,t.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(h(e).css("borderLeftWidth"),10)||0)-(parseInt(h(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,t.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(h(e).css("borderTopWidth"),10)||0)-(parseInt(h(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,t){t||(t=this.position);var n="absolute"===e?1:-1,i="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&h.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(i[0].tagName);return{top:t.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:i.scrollTop())*n,left:t.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:i.scrollLeft())*n}},_generatePosition:function(e){var t,n,i=this.options,o=e.pageX,r=e.pageY,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&h.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(s[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),i.grid&&(t=this.originalPageY+Math.round((r-this.originalPageY)/i.grid[1])*i.grid[1],r=this.containment?t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-i.grid[1]:t+i.grid[1]:t,n=this.originalPageX+Math.round((o-this.originalPageX)/i.grid[0])*i.grid[0],o=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-i.grid[0]:n+i.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:s.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:s.scrollLeft())}},_rearrange:function(e,t,n,i){n?n[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 o=this.counter;this._delay(function(){o===this.counter&&this.refreshPositions(!i)})},_clear:function(e,t){function n(t,n,i){return function(e){i._trigger(t,e,n._uiHash(n))}}this.reverting=!1;var i,o=[];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&&o.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||o.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(t||(o.push(function(e){this._trigger("remove",e,this._uiHash())}),o.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),o.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;0<=i;i--)t||o.push(n("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(o.push(n("out",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,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;i<o.length;i++)o[i].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===h.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var t=e||this;return{helper:t.helper,placeholder:t.placeholder||h([]),position:t.position,originalPosition:t.originalPosition,offset:t.positionAbs,item:t.currentItem,sender:e?e.element:null}}})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(u){var n,a="ui-effects-",i=u;return u.effects={effect:{}},function(d,u){function p(e,t,n){var i=m[t.type]||{};return null==e?n||!t.def?null:t.def:(e=i.floor?~~e:parseFloat(e),isNaN(e)?t.def:i.mod?(e+i.mod)%i.mod:e<0?0:i.max<e?i.max:e)}function a(s){var a=f(),l=a._rgba=[];return s=s.toLowerCase(),y(t,function(e,t){var n,i=t.re.exec(s),o=i&&t.parse(i),r=t.space||"rgba";if(o)return n=a[r](o),a[g[r].cache]=n[g[r].cache],l=a._rgba=n._rgba,!1}),l.length?("0,0,0,0"===l.join()&&d.extend(l,c.transparent),a):c[s]}function l(e,t,n){return 6*(n=(n+1)%1)<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}var c,e="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",h=/^([\-+])=\s*(\d+\.?\d*)/,t=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],f=d.Color=function(e,t,n,i){return new d.Color.fn.parse(e,t,n,i)},g={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},m={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},v=f.support={},n=d("<p>")[0],y=d.each;n.style.cssText="background-color:rgba(1,1,1,.5)",v.rgba=-1<n.style.backgroundColor.indexOf("rgba"),y(g,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),f.fn=d.extend(f.prototype,{parse:function(o,e,t,n){if(o===u)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=d(o).css(e),e=u);var r=this,i=d.type(o),s=this._rgba=[];return e!==u&&(o=[o,e,t,n],i="array"),"string"===i?this.parse(a(o)||c._default):"array"===i?(y(g.rgba.props,function(e,t){s[t.idx]=p(o[t.idx],t)}),this):"object"===i?(y(g,o instanceof f?function(e,t){o[t.cache]&&(r[t.cache]=o[t.cache].slice())}:function(e,n){var i=n.cache;y(n.props,function(e,t){if(!r[i]&&n.to){if("alpha"===e||null==o[e])return;r[i]=n.to(r._rgba)}r[i][t.idx]=p(o[e],t,!0)}),r[i]&&d.inArray(null,r[i].slice(0,3))<0&&(r[i][3]=1,n.from&&(r._rgba=n.from(r[i])))}),this):void 0},is:function(e){var o=f(e),r=!0,s=this;return y(g,function(e,t){var n,i=o[t.cache];return i&&(n=s[t.cache]||t.to&&t.to(s._rgba)||[],y(t.props,function(e,t){if(null!=i[t.idx])return r=i[t.idx]===n[t.idx]})),r}),r},_space:function(){var n=[],i=this;return y(g,function(e,t){i[t.cache]&&n.push(e)}),n.pop()},transition:function(e,s){var a=f(e),t=a._space(),n=g[t],i=0===this.alpha()?f("transparent"):this,l=i[n.cache]||n.to(i._rgba),c=l.slice();return a=a[n.cache],y(n.props,function(e,t){var n=t.idx,i=l[n],o=a[n],r=m[t.type]||{};null!==o&&(null===i?c[n]=o:(r.mod&&(o-i>r.mod/2?i+=r.mod:i-o>r.mod/2&&(i-=r.mod)),c[n]=p((o-i)*s+i,t)))}),this[t](c)},blend:function(e){if(1===this._rgba[3])return this;var t=this._rgba.slice(),n=t.pop(),i=f(e)._rgba;return f(d.map(t,function(e,t){return(1-n)*i[t]+n*e}))},toRgbaString:function(){var e="rgba(",t=d.map(this._rgba,function(e,t){return null==e?2<t?1:0:e});return 1===t[3]&&(t.pop(),e="rgb("),e+t.join()+")"},toHslaString:function(){var e="hsla(",t=d.map(this.hsla(),function(e,t){return null==e&&(e=2<t?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e});return 1===t[3]&&(t.pop(),e="hsl("),e+t.join()+")"},toHexString:function(e){var t=this._rgba.slice(),n=t.pop();return e&&t.push(~~(255*n)),"#"+d.map(t,function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),f.fn.parse.prototype=f.fn,g.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,n,i=e[0]/255,o=e[1]/255,r=e[2]/255,s=e[3],a=Math.max(i,o,r),l=Math.min(i,o,r),c=a-l,d=a+l,u=.5*d;return t=l===a?0:i===a?60*(o-r)/c+360:o===a?60*(r-i)/c+120:60*(i-o)/c+240,n=0===c?0:u<=.5?c/d:c/(2-d),[Math.round(t)%360,n,u,null==s?1:s]},g.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,n=e[1],i=e[2],o=e[3],r=i<=.5?i*(1+n):i+n-i*n,s=2*i-r;return[Math.round(255*l(s,r,t+1/3)),Math.round(255*l(s,r,t)),Math.round(255*l(s,r,t-1/3)),o]},y(g,function(l,e){var n=e.props,s=e.cache,a=e.to,c=e.from;f.fn[l]=function(e){if(a&&!this[s]&&(this[s]=a(this._rgba)),e===u)return this[s].slice();var t,i=d.type(e),o="array"===i||"object"===i?e:arguments,r=this[s].slice();return y(n,function(e,t){var n=o["object"===i?e:t.idx];null==n&&(n=r[t.idx]),r[t.idx]=p(n,t)}),c?((t=f(c(r)))[s]=r,t):f(r)},y(n,function(s,a){f.fn[s]||(f.fn[s]=function(e){var t,n=d.type(e),i="alpha"===s?this._hsla?"hsla":"rgba":l,o=this[i](),r=o[a.idx];return"undefined"===n?r:("function"===n&&(e=e.call(this,r),n=d.type(e)),null==e&&a.empty?this:("string"===n&&(t=h.exec(e))&&(e=r+parseFloat(t[2])*("+"===t[1]?1:-1)),o[a.idx]=e,this[i](o)))})})}),f.hook=function(e){var t=e.split(" ");y(t,function(e,s){d.cssHooks[s]={set:function(e,t){var n,i,o="";if("transparent"!==t&&("string"!==d.type(t)||(n=a(t)))){if(t=f(n||t),!v.rgba&&1!==t._rgba[3]){for(i="backgroundColor"===s?e.parentNode:e;(""===o||"transparent"===o)&&i&&i.style;)try{o=d.css(i,"backgroundColor"),i=i.parentNode}catch(r){}t=t.blend(o&&"transparent"!==o?o:"_default")}t=t.toRgbaString()}try{e.style[s]=t}catch(r){}}},d.fx.step[s]=function(e){e.colorInit||(e.start=f(e.elem,s),e.end=f(e.end),e.colorInit=!0),d.cssHooks[s].set(e.elem,e.start.transition(e.end,e.pos))}})},f.hook(e),d.cssHooks.borderColor={expand:function(n){var i={};return y(["Top","Right","Bottom","Left"],function(e,t){i["border"+t+"Color"]=n}),i}},c=d.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(i),function(){function s(e){var t,n,i=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(i&&i.length&&i[0]&&i[i[0]])for(n=i.length;n--;)"string"==typeof i[t=i[n]]&&(o[u.camelCase(t)]=i[t]);else for(t in i)"string"==typeof i[t]&&(o[t]=i[t]);return o}function a(e,t){var n,i,o={};for(n in t)i=t[n],e[n]!==i&&(d[n]||!u.fx.step[n]&&isNaN(parseFloat(i))||(o[n]=i));return o}var r,o,l,c=["add","remove","toggle"],d={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};u.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,t){u.fx.step[t]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(i.style(e.elem,t,e.end),e.setAttr=!0)}}),u.fn.addBack||(u.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),u.effects.animateClass=function(o,e,t,n){var r=u.speed(e,t,n);return this.queue(function(){var e,n=u(this),t=n.attr("class")||"",i=r.children?n.find("*").addBack():n;i=i.map(function(){return{el:u(this),start:s(this)}}),(e=function(){u.each(c,function(e,t){o[t]&&n[t+"Class"](o[t])})})(),i=i.map(function(){return this.end=s(this.el[0]),this.diff=a(this.start,this.end),this}),n.attr("class",t),i=i.map(function(){var e=this,t=u.Deferred(),n=u.extend({},r,{queue:!1,complete:function(){t.resolve(e)}});return this.el.animate(this.diff,n),t.promise()}),u.when.apply(u,i.get()).done(function(){e(),u.each(arguments,function(){var t=this.el;u.each(this.diff,function(e){t.css(e,"")})}),r.complete.call(n[0])})})},u.fn.extend({addClass:(l=u.fn.addClass,function(e,t,n,i){return t?u.effects.animateClass.call(this,{add:e},t,n,i):l.apply(this,arguments)}),removeClass:(o=u.fn.removeClass,function(e,t,n,i){return 1<arguments.length?u.effects.animateClass.call(this,{remove:e},t,n,i):o.apply(this,arguments)}),toggleClass:(r=u.fn.toggleClass,function(e,t,n,i,o){return"boolean"==typeof t||t===undefined?n?u.effects.animateClass.call(this,t?{add:e}:{remove:e},n,i,o):r.apply(this,arguments):u.effects.animateClass.call(this,{toggle:e},t,n,i)}),switchClass:function(e,t,n,i,o){return u.effects.animateClass.call(this,{add:t,remove:e},n,i,o)}})}(),function(){function i(e,t,n,i){return u.isPlainObject(e)&&(e=(t=e).effect),e={effect:e},null==t&&(t={}),u.isFunction(t)&&(i=t,n=null,t={}),("number"==typeof t||u.fx.speeds[t])&&(i=n,n=t,t={}),u.isFunction(n)&&(i=n,n=null),t&&u.extend(e,t),n=n||t.duration,e.duration=u.fx.off?0:"number"==typeof n?n:n in u.fx.speeds?u.fx.speeds[n]:u.fx.speeds._default,e.complete=i||t.complete,e}function n(e){return!(e&&"number"!=typeof e&&!u.fx.speeds[e])||("string"==typeof e&&!u.effects.effect[e]||(!!u.isFunction(e)||"object"==typeof e&&!e.effect))}var o,r,s;u.extend(u.effects,{version:"1.11.4",save:function(e,t){for(var n=0;n<t.length;n++)null!==t[n]&&e.data(a+t[n],e[0].style[t[n]])},restore:function(e,t){var n,i;for(i=0;i<t.length;
9i++)null!==t[i]&&((n=e.data(a+t[i]))===undefined&&(n=""),e.css(t[i],n))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},getBaseline:function(e,t){var n,i;switch(e[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=e[0]/t.height}switch(e[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=e[1]/t.width}return{x:i,y:n}},createWrapper:function(n){if(n.parent().is(".ui-effects-wrapper"))return n.parent();var i={width:n.outerWidth(!0),height:n.outerHeight(!0),"float":n.css("float")},e=u("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),t={width:n.width(),height:n.height()},o=document.activeElement;try{o.id}catch(r){o=document.body}return n.wrap(e),(n[0]===o||u.contains(n[0],o))&&u(o).focus(),e=n.parent(),"static"===n.css("position")?(e.css({position:"relative"}),n.css({position:"relative"})):(u.extend(i,{position:n.css("position"),zIndex:n.css("z-index")}),u.each(["top","left","bottom","right"],function(e,t){i[t]=n.css(t),isNaN(parseInt(i[t],10))&&(i[t]="auto")}),n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(t),e.css(i).show()},removeWrapper:function(e){var t=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===t||u.contains(e[0],t))&&u(t).focus()),e},setTransition:function(i,e,o,r){return r=r||{},u.each(e,function(e,t){var n=i.cssUnit(t);0<n[0]&&(r[t]=n[0]*o+n[1])}),r}}),u.fn.extend({effect:function(){function e(e){function t(){u.isFunction(i)&&i.call(n[0]),u.isFunction(e)&&e()}var n=u(this),i=r.complete,o=r.mode;(n.is(":hidden")?"hide"===o:"show"===o)?(n[o](),t()):s.call(n[0],r,t)}var r=i.apply(this,arguments),t=r.mode,n=r.queue,s=u.effects.effect[r.effect];return u.fx.off||!s?t?this[t](r.duration,r.complete):this.each(function(){r.complete&&r.complete.call(this)}):!1===n?this.each(e):this.queue(n||"fx",e)},show:(s=u.fn.show,function(e){if(n(e))return s.apply(this,arguments);var t=i.apply(this,arguments);return t.mode="show",this.effect.call(this,t)}),hide:(r=u.fn.hide,function(e){if(n(e))return r.apply(this,arguments);var t=i.apply(this,arguments);return t.mode="hide",this.effect.call(this,t)}),toggle:(o=u.fn.toggle,function(e){if(n(e)||"boolean"==typeof e)return o.apply(this,arguments);var t=i.apply(this,arguments);return t.mode="toggle",this.effect.call(this,t)}),cssUnit:function(e){var n=this.css(e),i=[];return u.each(["em","px","%","pt"],function(e,t){0<n.indexOf(t)&&(i=[parseFloat(n),t])}),i}})}(),n={},u.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,e){n[e]=function(e){return Math.pow(e,t+2)}}),u.extend(n,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}}),u.each(n,function(e,t){u.easing["easeIn"+e]=t,u.easing["easeOut"+e]=function(e){return 1-t(1-e)},u.easing["easeInOut"+e]=function(e){return e<.5?t(2*e)/2:1-t(-2*e+2)/2}}),u.effects}),function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(v){return v.effects.effect.blind=function(e,t){var n,i,o,r=v(this),s=/up|down|vertical/,a=/up|left|vertical|horizontal/,l=["position","top","bottom","left","right","height","width"],c=v.effects.setMode(r,e.mode||"hide"),d=e.direction||"up",u=s.test(d),p=u?"height":"width",h=u?"top":"left",f=a.test(d),g={},m="show"===c;r.parent().is(".ui-effects-wrapper")?v.effects.save(r.parent(),l):v.effects.save(r,l),r.show(),i=(n=v.effects.createWrapper(r).css({overflow:"hidden"}))[p](),o=parseFloat(n.css(h))||0,g[p]=m?i:0,f||(r.css(u?"bottom":"right",0).css(u?"top":"left","auto").css({position:"absolute"}),g[h]=m?o:i+o),m&&(n.css(p,0),f||n.css(h,o+i)),n.animate(g,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){"hide"===c&&r.hide(),v.effects.restore(r,l),v.effects.removeWrapper(r),t()}})}}),function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(w){return w.effects.effect.bounce=function(e,t){var n,i,o,r=w(this),s=["position","top","bottom","left","right","height","width"],a=w.effects.setMode(r,e.mode||"effect"),l="hide"===a,c="show"===a,d=e.direction||"up",u=e.distance,p=e.times||5,h=2*p+(c||l?1:0),f=e.duration/h,g=e.easing,m="up"===d||"down"===d?"top":"left",v="up"===d||"left"===d,y=r.queue(),b=y.length;for((c||l)&&s.push("opacity"),w.effects.save(r,s),r.show(),w.effects.createWrapper(r),u||(u=r["top"===m?"outerHeight":"outerWidth"]()/3),c&&((o={opacity:1})[m]=0,r.css("opacity",0).css(m,v?2*-u:2*u).animate(o,f,g)),l&&(u/=Math.pow(2,p-1)),n=(o={})[m]=0;n<p;n++)(i={})[m]=(v?"-=":"+=")+u,r.animate(i,f,g).animate(o,f,g),u=l?2*u:u/2;l&&((i={opacity:0}
vendor: 5,210 bytes, lines 9-10
9)[m]=(v?"-=":"+=")+u,r.animate(i,f,g)),r.queue(function(){l&&r.hide(),w.effects.restore(r,s),w.effects.removeWrapper(r),t()}),1<b&&y.splice.apply(y,[1,0].concat(y.splice(b,h+1))),r.dequeue()}}),function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(p){return p.effects.effect.clip=function(e,t){var n,i,o,r=p(this),s=["position","top","bottom","left","right","height","width"],a="show"===p.effects.setMode(r,e.mode||"hide"),l="vertical"===(e.direction||"vertical"),c=l?"height":"width",d=l?"top":"left",u={};p.effects.save(r,s),r.show(),n=p.effects.createWrapper(r).css({overflow:"hidden"}),o=(i="IMG"===r[0].tagName?n:r)[c](),a&&(i.css(c,0),i.css(d,o/2)),u[c]=a?o:0,u[d]=a?0:o/2,i.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){a||r.hide(),p.effects.restore(r,s),
10p.effects.removeWrapper(r),t()}})}}),function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(u){return u.effects.effect.drop=function(e,t){var n,i=u(this),o=["position","top","bottom","left","right","opacity","height","width"],r=u.effects.setMode(i,e.mode||"hide"),s="show"===r,a=e.direction||"left",l="up"===a||"down"===a?"top":"left",c="up"===a||"left"===a?"pos":"neg",d={opacity:s?1:0};u.effects.save(i,o),i.show(),u.effects.createWrapper(i),n=e.distance||i["top"===l?"outerHeight":"outerWidth"](!0)/2,s&&i.css("opacity",0).css(l,"pos"===c?-n:n),d[l]=(s?"pos"===c?"+=":"-=":"pos"===c?"-=":"+=")+n,i.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===r&&i.hide(),u.effects.restore(i,o),u.effects.removeWrapper(i),t()}})}}),function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(y){return y.effects.effect.explode=function(e,t){function n(){v.push(this),v.length===d*u&&i()}function i(){p.css({visibility:"visible"}),y(v).remove(),h||p.hide(),t()}var o,r,s,a,l,c,d=e.pieces?Math.round(Math.sqrt(e.pieces)):3,u=d,p=y(this),h="show"===y.effects.setMode(p,e.mode||"hide"),f=p.show().css("visibility","hidden").offset(),g=Math.ceil(p.outerWidth()/u),m=Math.ceil(p.outerHeight()/d),v=[];for(o=0;o<d;o++)for(a=f.top+o*m,c=o-(d-1)/2,r=0;r<u;r++)s=f.left+r*g,l=r-(u-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-r*g,top:-o*m}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g,height:m,left:s+(h?l*g:0),top:a+(h?c*m:0),opacity:h?0:1}).animate({left:s+(h?0:l*g),top:a+(h?0:c*m),opacity:h?1:0},e.duration||500,e.easing,n)}}),function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(o){return o.effects.effect.fade=function(e,t){var n=o(this),i=o.effects.setMode(n,e.mode||"toggle");n.animate({opacity:i},{queue:!1,duration:e.duration,easing:e.easing,complete:t})}}),function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(v){return v.effects.effect.fold=function(e,t){var n,i,o=v(this),r=["position","top","bottom","left","right","height","width"],s=v.effects.setMode(o,e.mode||"hide"),a="show"===s,l="hide"===s,c=e.size||15,d=/([0-9]+)%/.exec(c),u=!!e.horizFirst,p=a!==u,h=p?["width","height"]:["height","width"],f=e.duration/2,g={},m={};v.effects.save(o,r),o.show(),n=v.effects.createWrapper(o).css({overflow:"hidden"}),i=p?[n.width(),n.height()]:[n.height(),n.width()],d&&(c=parseInt(d[1],10)/100*i[l?0:1]),a&&n.css(u?{height:0,width:c}:{height:c,width:0}),g[h[0]]=a?i[0]:c,m[h[1]]=a?i[1]:0,n.animate(g,f,e.easing).animate(m,f,e.easing,function(){l&&o.hide(),v.effects.restore(o,r),v.effects.removeWrapper(o),t()})}}),function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(s){return s.effects.effect.highlight=function(e,t){var n=s(this),i=["backgroundImage","backgroundColor","opacity"],o=s.effects.setMode(n,e.mode||"show"),r={backgroundColor:n.css("backgroundColor")};"hide"===o&&(r.opacity=0),s.effects.save(n,i),n.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&n.hide(),s.effects.restore(n,i),t()}})}}),function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(b){return b.effects.effect.size=function(n,e){var t,i,o,r=b(this),s=["position","top","bottom","left","right","width","height","overflow","opacity"],a=["position","top","bottom","left","right","overflow","opacity"],l=["width","height","overflow"],c=["fontSize"],d=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],u=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=b.effects.setMode(r,n.mode||"effect"),h=n.restore||"effect"!==p,f=n.scale||"both",g=n.origin||["middle","center"],m=r.css("position"),v=h?s:a,y={height:0,width:0,outerHeight:0,outerWidth:0};"show"===p&&r.show(),t={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()},"toggle"===n.mode&&"show"===p?(r.from=n.to||y,r.to=n.from||t):(r.from=n.from||("show"===p?y:t),r.to=n.to||("hide"===p?y:t)),o={from:{y:r.from.height/t.height,x:r.from.width/t.width}
vendor: 1,942 bytes, line 10
10,to:{y:r.to.height/t.height,x:r.to.width/t.width}},"box"!==f&&"both"!==f||(o.from.y!==o.to.y&&(v=v.concat(d),r.from=b.effects.setTransition(r,d,o.from.y,r.from),r.to=b.effects.setTransition(r,d,o.to.y,r.to)),o.from.x!==o.to.x&&(v=v.concat(u),r.from=b.effects.setTransition(r,u,o.from.x,r.from),r.to=b.effects.setTransition(r,u,o.to.x,r.to))),"content"!==f&&"both"!==f||o.from.y!==o.to.y&&(v=v.concat(c).concat(l),r.from=b.effects.setTransition(r,c,o.from.y,r.from),r.to=b.effects.setTransition(r,c,o.to.y,r.to)),b.effects.save(r,v),r.show(),b.effects.createWrapper(r),r.css("overflow","hidden").css(r.from),g&&(i=b.effects.getBaseline(g,t),r.from.top=(t.outerHeight-r.outerHeight())*i.y,r.from.left=(t.outerWidth-r.outerWidth())*i.x,r.to.top=(t.outerHeight-r.to.outerHeight)*i.y,r.to.left=(t.outerWidth-r.to.outerWidth)*i.x),r.css(r.from),"content"!==f&&"both"!==f||(d=d.concat(["marginTop","marginBottom"]).concat(c),u=u.concat(["marginLeft","marginRight"]),l=s.concat(d).concat(u),r.find("*[width]").each(function(){var e=b(this),t={height:e.height(),width:e.width(),outerHeight:e.outerHeight(),outerWidth:e.outerWidth()};h&&b.effects.save(e,l),e.from={height:t.height*o.from.y,width:t.width*o.from.x,outerHeight:t.outerHeight*o.from.y,outerWidth:t.outerWidth*o.from.x},e.to={height:t.height*o.to.y,width:t.width*o.to.x,outerHeight:t.height*o.to.y,outerWidth:t.width*o.to.x},o.from.y!==o.to.y&&(e.from=b.effects.setTransition(e,d,o.from.y,e.from),e.to=b.effects.setTransition(e,d,o.to.y,e.to)),o.from.x!==o.to.x&&(e.from=b.effects.setTransition(e,u,o.from.x,e.from),e.to=b.effects.setTransition(e,u,o.to.x,e.to)),e.css(e.from),e.animate(e.to,n.duration,n.easing,function(){h&&b.effects.restore(e,l)})})),r.animate(r.to,{queue:!1,duration:n.duration,easing:n.easing,complete:function(){0===r.to.opacity&&r.css("opacity",r.from.opacity),"hide"===p&&r.hide(),b.effects.restore(r,v),h||("static"===m?r.css({position:"relative",top:r.to.top,left
10:r.to.left}):b.each(["top","left"],function(o,e){r.css(e,function(e,t){var n=parseInt(t,10),i=o?r.to.left:r.to.top;return"auto"===t?i+"px":n+i+"px"})})),b.effects.removeWrapper(r),e()}})}}),function(e){"function"==typeof define&&define.amd?define(["jquery","./effect","./effect-size"],e):e(jQuery)}(function(d){return d.effects.effect.scale=function(e,t){var n=d(this),i=d.extend(!0,{},e),o=d.effects.setMode(n,e.mode||"effect"),r=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"hide"===o?0:100),s=e.direction||"both",a=e.origin,l={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()},c={y:"horizontal"!==s?r/100:1,x:"vertical"!==s?r/100:1};i.effect="size",i.queue=!1,i.complete=t,"effect"!==o&&(i.origin=a||["middle","center"],i.restore=!0),i.from=e.from||("show"===o?{height:0,width:0,outerHeight:0,outerWidth:0}:l),i.to={height:l.height*c.y,width:l.width*c.x,outerHeight:l.outerHeight*c.y,outerWidth:l.outerWidth*c.x},i.fade&&("show"===o&&(i.from.opacity=0,i.to.opacity=1),"hide"===o&&(i.from.opacity=1,i.to.opacity=0)),n.effect(i)}}),function(e){"function"==typeof define&&define.amd?define(["jquery","./effect","./effect-scale"],e):e(jQuery)}(function(l){return l.effects.effect.puff=function(e,t){var n=l(this),i=l.effects.setMode(n,e.mode||"hide"),o="hide"===i,r=parseInt(e.percent,10)||150,s=r/100,a={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};l.extend(e,{effect:"scale",queue:!1,fade:!0,mode:i,complete:t,percent:o?r:100,from:o?a:{height:a.height*s,width:a.width*s,outerHeight:a.outerHeight*s,outerWidth:a.outerWidth*s}}),n.effect(e)}}),function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(h){return h.effects.effect.pulsate=function(e,t){var n,i=h(this),o=h.effects.setMode(i,e.mode||"show"),r="show"===o,s="hide"===o,a=r||"hide"===o,l=2*(e.times||5)+(a?1:0),c=e.duration/l,d=0,u=i.queue(),p=u.length;for(!r&&i.is(":visible")||(i.css("opacity",0).show(),d=1),n=1;n<l;n++)i.animate({opacity:d},c,e.easing),d=1-d;i.animate({opacity:d},c,e.easing),i.queue(function(){s&&i.hide(),t()}),1<p&&u.splice.apply(u,[1,0].concat(u.splice(p,l+1))),i.dequeue()}}),function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(y){return y.effects.effect.shake=function(e,t){var n,i=y(this),o=["position","top","bottom","left","right","height","width"],r=y.effects.setMode(i,e.mode||"effect"),s=e.direction||"left",a=e.distance||20,l=e.times||3,c=2*l+1,d=Math.round(e.duration/c),u="up"===s||"down"===s?"top":"left",p="up"===s||"left"===s,h={},f={},g={},m=i.queue(),v=m.length;for(y.effects.save(i,o),i.show(),y.effects.createWrapper(i),h[u]=(p?"-=":"+=")+a,f[u]=(p?"+=":"-=")+2*a,g[u]=(p?"-=":"+=")+2*a,i.animate(h,d,e.easing),n=1;n<l;n++)i.animate(f,d,e.easing).animate(g,d,e.easing);i.animate(f,d,e.easing).animate(h,d/2,e.easing).queue(function(){"hide"===r&&i.hide(),y.effects.restore(i,o),y.effects.removeWrapper(i),t()}),1<v&&m.splice.apply(m,[1,0].concat(m.splice(v,c+1))),i.dequeue()}}),function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(u){return u.effects.effect.slide=function(e,t){var n,i=u(this),o=["position","top","bottom","left","right","width","height"],r=u.effects.setMode(i,e.mode||"show"),s="show"===r,a=e.direction||"left",l="up"===a||"down"===a?"top":"left",c="up"===a||"left"===a,d={};u.effects.save(i,o),i.show(),n=e.distance||i["top"===l?"outerHeight":"outerWidth"](!0),u.effects.createWrapper(i).css({overflow:"hidden"}),s&&i.css(l,c?isNaN(n)?"-"+n:-n:n),d[l]=(s?c?"+=":"-=":c?"-=":"+=")+n,i.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===r&&i.hide(),u.effects.restore(i,o),u.effects.removeWrapper(i),t()}})}}),function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(p){return p.effects.effect.transfer=function(e,t){var n=p(this),i=p(e.to),o="fixed"===i.css("position"),r=p("body"),s=o?r.scrollTop():0,a=o?r.scrollLeft():0,l=i.offset(),c={top:l.top-s,left:l.left-a,height:i.innerHeight(),width:i.innerWidth()},d=n.offset(),u=p("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(e.className).css({top:d.top-s,left:d.left-a,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){u.remove(),t()})}}),set_positions=function(e){e.find(".sortable-element").each(function(e){$(this).attr("data-position",e+1)})},$(document).on("turbolinks:load",function(){var i=!1,o=40;$(".sortable").sortable({handle:".handle",scroll:!0,scrollSensitivity:10,scrollSpeed:80,sort:function(e){if(!i){var t=$(window).height(),n=e.clientY;n<o?(i=!0,$("html, body").animate({scrollTop:"-="+t/2+"px"},400,function(){i=!1})):t-o<n&&(i=!0,$("html, body").animate({scrollTop:"+="+t/2+"px"},400,function(){i=!1}))}}}),$(".sortable").disableSelection(),$(".sortable").sortable().bind("sortupdate",function(e,t){var n=$(this);updated_order=[],set_positions(n),n.find(".sortable-element").each(function(e){updated_order.push({id:$(this).data("id"),position:e+1}),position_input=$(this).find(".position-input").first(),position_input&&position_input.val(e+1)}
10),n.data("sort-url")&&$.ajax({type:"PUT",url:n.data("sort-url"),data:{order:updated_order},headers:{"X-CSRF-Token":document.querySelector("meta[name=csrf-token]").content},success:function(){t.item.effect("highlight",{color:"#fcf8e3"},3e3)}})})}),function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ClipboardJS=t():e.ClipboardJS=t()}(this,function(){return function(n){function o(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var i={};return o.m=n,o.c=i,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function n(){return e["default"]}:function i(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function p(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}var h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}(),g=i(n(1)),m=i(n(3)),v=i(n(4)),o=function(){function i(e,t){c(this,i);var n=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return n.resolveOptions(t),n.listenClick(e),n}return u(i,m["default"]),f(i,[{key:"resolveOptions",value:function n(e){var t=0<arguments.length&&e!==undefined?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===h(t.container)?t.container:document.body}},{key:"listenClick",value:function o(e){var t=this;this.listener=(0,v["default"])(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function r(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new g["default"]({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function t(e){return p("action",e)}},{key:"defaultTarget",value:function s(e){var t=p("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function a(e){return p("text",e)}},{key:"destroy",value:function e(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function l(e){var t=0<arguments.length&&e!==undefined?arguments[0]:["copy","cut"],n="string"==typeof t?[t]:t,i=!!document.queryCommandSupported;
vendor: 4,442 bytes, line 10
10return n.forEach(function(e){i=i&&!!document.queryCommandSupported(e)}),i}}]),i}();e.exports=o},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}(),g=i(n(2)),o=function(){function t(e){p(this,t),this.resolveOptions(e),this.initSelection()}return f(t,[{key:"resolveOptions",value:function n(e){var t=0<arguments.length&&e!==undefined?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function e(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function i(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,g["default"])(this.fakeElem),this.copyText()}},{key:"removeFake",value:function o(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function r(){this.selectedText=(0,g["default"])(this.target),this.copyText()}},{key:"copyText",value:function s(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function a(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function l(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function c(){this.removeFake()}},{key:"action",set:function d(e){var t=0<arguments.length&&e!==undefined?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function u(){return this._action}},{key:"target",set:function d(e){if(e!==undefined){if(!e||"object"!==(void 0===e?"undefined":h(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function u(){return this._target}}]),t}();e.exports=o},function(e){function t(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),o=document.createRange();o.selectNodeContents(e),i.removeAllRanges(),i.addRange(o),t=i.toString()}return t}e.exports=t},function(e){function t(){}t.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function i(){o.off(e,i),t.apply(n,arguments)}var o=this;return i._=t,this.on(e,i,n)}
vendor: 1,138 bytes, line 10
10,emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,o=n.length;i<o;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],o=[];if(i&&t)for(var r=0,s=i.length;r<s;r++)i[r].fn!==t&&i[r].fn._!==t&&o.push(i[r]);return o.length?n[e]=o:delete n[e],this}},e.exports=t},function(e,t,n){function i(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!a.string(t))throw new TypeError("Second argument must be a String");if(!a.fn(n))throw new TypeError("Third argument must be a Function");if(a.node(e))return o(e,t,n);if(a.nodeList(e))return r(e,t,n);if(a.string(e))return s(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function o(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function r(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function s(e,t,n){return l(document.body,e,t,n)}var a=n(5),l=n(6);e.exports=i}
10,function(e,n){n.node=function(e){return e!==undefined&&e instanceof HTMLElement&&1===e.nodeType},n.nodeList=function(e){var t=Object.prototype.toString.call(e);return e!==undefined&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||n.node(e[0]))},n.string=function(e){return"string"==typeof e||e instanceof String},n.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){function r(e,t,n,i,o){var r=s.apply(this,arguments);return e.addEventListener(n,r,o),{destroy:function(){e.removeEventListener(n,r,o)}}}function i(e,t,n,i,o){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return r(e,t,n,i,o)}))}function s(t,n,e,i){return function(e){e.delegateTarget=o(e.target,n),e.delegateTarget&&i.call(t,e)}}var o=n(7);e.exports=i},function(e){function t(e,t){for(;e&&e.nodeType!==n;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}var n=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}e.exports=t}])}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(e.jQuery)}(this,function(o){"use strict";o.fn.typeWatch=function(e){function a(e,t){var n="DIV"===e.type?jQuery(e.el).html():jQuery(e.el).val();(n.length>=i.captureLength&&n!=e.text||t&&(n.length>=i.captureLength||i.allowSubmit)||0==n.length&&e.text)&&(e.text=n,e.cb.call(e.el,n))}function t(e){var r=(e.type||e.nodeName).toUpperCase();if(0<=jQuery.inArray(r,i.inputTypes)){var s={timer:null,text:"DIV"===r?jQuery(e).html():jQuery(e).val(),cb:i.callback,el:e,type:r,wait:i.wait};i.highlight&&"DIV"!==r&&jQuery(e).focus(function(){this.select()});var t=function(e){var t=s.wait,n=!1,i=r;"undefined"!=typeof e.keyCode&&13==e.keyCode&&"TEXTAREA"!==i&&"DIV"!==r&&(t=1,n=!0);var o=function(){a(s,n)};clearTimeout(s.timer),s.timer=setTimeout(o,t)};jQuery(e).on("keydown paste cut input",t)}}var n=["TEXT","TEXTAREA","PASSWORD","TEL","SEARCH","URL","EMAIL","DATETIME","DATE","MONTH","WEEK","TIME","DATETIME-LOCAL","NUMBER","RANGE","DIV"],i=o.extend({wait:750,callback:function(){},highlight:!0,captureLength:2,allowSubmit:!1,inputTypes:n},e);return this.each(function(){t(this)})}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t((e=e||self).jQuery)}(this,function(C){"use strict";function t(e){return e[0]}function o(e){return e[e.length-1]}function n(e){return e.slice(1)}function r(e,t){return!!(e&&e.length&&t)&&-1!==e.indexOf(t)}function s(e){return e&&C(e).hasClass("note-editable")}function e(t){return t=t.toUpperCase(),function(e){return e&&e.nodeName.toUpperCase()===t}}function a(e){return e&&3===e.nodeType}function i(e){return e&&/^BR|^IMG|^HR|^IFRAME|^BUTTON|^INPUT|^AUDIO|^VIDEO|^EMBED/.test(e.nodeName.toUpperCase())}function l(e){return!s(e)&&e&&/^DIV|^P|^LI|^H[1-7]/.test(e.nodeName.toUpperCase())}function c(e){return!(p(e)||d(e)||ke(e)||l(e)||Ce(e)||Se(e)||xe(e))}function d(e){return e&&/^UL|^OL/.test(e.nodeName.toUpperCase())}function u(e){return e&&/^TD|^TH/.test(e.nodeName.toUpperCase())}function p(e){return u(e)||Se(e)||s(e)}function h(e){return a(e)?e.nodeValue.length:e?e.childNodes.length:0}function f(e){var t=h(e);return 0===t||!a(e)&&1===t&&e.innerHTML===Te||!(!ve.all(e.childNodes,a)||""!==e.innerHTML)}function g(e){i(e)||h(e)||(e.innerHTML=Te)}function m(e,t){for(;e;){if(t(e))return e;if(s(e))break;e=e.parentNode}return null}function v(e,t){t=t||me.fail;var n=[];return m(e,function(e){return s(e)||n.push(e),t(e)}),n}function y(e,t){t=t||me.fail;for(var n=[];e&&!t(e);)n.push(e),e=e.nextSibling;return n}function b(e,t){var n=t.nextSibling,i=t.parentNode;return n?i.insertBefore(e,n):i.appendChild(e),e}function w(n,e){return C.each(e,function(e,t){n.appendChild(t)}),n}function x(e){return 0===e.offset}function k(e){return e.offset===h(e.node)}function S(e){return x(e)||k(e)}function j(e,t){for(;e&&e!==t;){if(0!==T(e))return!1;e=e.parentNode}return!0}function E(e,t){if(!t)return!1;for(;e&&e!==t;){if(T(e)!==h(e.parentNode)-1)return!1;e=e.parentNode}return!0}function T(e){for(var t=0;e=e.previousSibling;)t+=1;return t}function I(e){return!!(e&&e.childNodes&&e.childNodes.length)}function A(e,t){var n,i;if(0===e.offset){if(s(e.node))return null;n=e.node.parentNode,i=T(e.node)}
10else i=I(e.node)?h(n=e.node.childNodes[e.offset-1]):(n=e.node,t?0:e.offset-1);return{node:n,offset:i}}function D(e,t){var n,i;if(h(e.node)===e.offset){if(s(e.node))return null;n=e.node.parentNode,i=T(e.node)+1}else i=I(e.node)?(n=e.node.childNodes[e.offset],0):(n=e.node,t?h(e.node):e.offset+1);return{node:n,offset:i}}function _(e,t){return e.node===t.node&&e.offset===t.offset}function N(e,t){var n=t&&t.isSkipPaddingBlankHTML,i=t&&t.isNotSplitEdgePoint,o=t&&t.isDiscardEmptySplits;if(o&&(n=!0),S(e)&&(a(e.node)||i)){if(x(e))return e.node;if(k(e))return e.node.nextSibling}if(a(e.node))return e.node.splitText(e.offset);var r=e.node.childNodes[e.offset],s=b(e.node.cloneNode(!1),e.node);return w(s,y(r)),n||(g(e.node),g(s)),o&&(f(e.node)&&P(e.node),f(s))?(P(s),e.node.nextSibling):s}function L(e,n,i){var t=v(n.node,me.eq(e));return t.length?1===t.length?N(n,i):t.reduce(function(e,t){return e===n.node&&(e=N(n,i)),N({node:t,offset:e?T(e):h(t)},i)}):null}function O(e){return document.createElement(e)}function P(e,t){if(e&&e.parentNode){if(e.removeNode)return e.removeNode(t);var n=e.parentNode;if(!t){for(var i=[],o=0,r=e.childNodes.length;o<r;o++)i.push(e.childNodes[o]);for(o=0,r=i.length;o<r;o++)n.insertBefore(i[o],e)}n.removeChild(e)}}function R(e,t){var n=Ie(e[0])?e.val():e.html();return t?n.replace(/[\n\r]/g,""):n}function H(e,t){var n,i,o=e.parentElement(),r=document.body.createTextRange(),s=ve.from(o.childNodes);for(n=0;n<s.length;n++)if(!Ae.isText(s[n])){if(r.moveToElementText(s[n]),0<=r.compareEndPoints("StartToStart",e))break;i=s[n]}if(0!==n&&Ae.isText(s[n-1])){var a=document.body.createTextRange(),l=null;a.moveToElementText(i||o),a.collapse(!i),l=i?i.nextSibling:o.firstChild;var c=e.duplicate();c.setEndPoint("StartToStart",a);for(var d=c.text.replace(/[\r\n]/g,"").length;d>l.nodeValue.length&&l.nextSibling;)d-=l.nodeValue.length,l=l.nextSibling;l.nodeValue,t&&l.nextSibling&&Ae.isText(l.nextSibling)&&d===l.nodeValue.length&&(d-=l.nodeValue.length,l=l.nextSibling),o=l,n=d}return{cont:o,offset:n}}function M(e){var s=function(e,t){var n,i;if(Ae.isText(e)){var o=Ae.listPrev(e,me.not(Ae.isText)),r=ve.last(o).previousSibling;n=r||e.parentNode,t+=ve.sum(ve.tail(o),Ae.nodeLength),i=!r}else{if(n=e.childNodes[t]||e,Ae.isText(n))return s(n,0);t=0,i=!1}return{node:n,collapseToStart:i,offset:t}},t=document.body.createTextRange(),n=s(e.node,e.offset);return t.moveToElementText(n.node),t.collapse(n.collapseToStart),t.moveStart("character",n.offset),t}C=C&&C.hasOwnProperty("default")?C["default"]:C;var F=function(){function e(e,t,n,i){this.markup=e,this.children=t,this.options=n,this.callback=i}return e.prototype.render=function(e){var n=C(this.markup);if(this.options&&this.options.contents&&n.html(this.options.contents),this.options&&this.options.className&&n.addClass(this.options.className),this.options&&this.options.data&&C.each(this.options.data,function(e,t){n.attr("data-"+e,t)}),this.options&&this.options.click&&n.on("click",this.options.click),this.children){var t=n.find(".note-children-container");this.children.forEach(function(e){e.render(t.length?t:n)})}return this.callback&&this.callback(n,this.options),this.options&&this.options.callback&&this.options.callback(n),e&&e.append(n),n},e}(),B=function(o,r){return function(e,t){var n="object"==typeof t?arguments[1]:arguments[0],i=Array.isArray(arguments[0])?arguments[0]:[];return n&&n.children&&(i=n.children),new F(o,i,n,r)}},z=B('<div class="note-editor note-frame card"/>'),W=B('<div class="note-toolbar card-header" role="toolbar"></div>'),q=B('<div class="note-editing-area"/>'),U=B('<textarea class="note-codable" role="textbox" aria-multiline="true"/>'),V=B('<div class="note-editable card-block" contentEditable="true" role="textbox" aria-multiline="true"/>'),G=B(['<output class="note-status-output" aria-live="polite"/>','<div class="note-statusbar" role="status">','  <output class="note-status-output" aria-live="polite"></output>','  <div class="note-resizebar" role="seperator" aria-orientation="horizontal" aria-label="Resize">','    <div class="note-icon-bar"/>','    <div class="note-icon-bar"/>','    <div class="note-icon-bar"/>',"  </div>","</div>"].join("")),K=B('<div class="note-editor"/>'),Q=B(['<div class="note-editable" contentEditable="true" role="textbox" aria-multiline="true"/>','<output class="note-status-output" aria-live="polite"/>'].join("")),Y=B('<div class="note-btn-group btn-group">'),X=B('<div class="dropdown-menu" role="list">',function(e,o){var t=Array.isArray(o.items)?o.items.map(function(e){var t="string"==typeof e?e:e.value||"",n=o.template?o.template(e):e,i="object"==typeof e?e.o
10ption:void 0;return'<a class="dropdown-item" href="#" data-value="'+t+'"'+(void 0!==i?' data-option="'+i+'"':"")+' role="listitem" aria-label="'+t+'">'+n+"</a>"}).join(""):o.items;e.html(t).attr({"aria-label":o.title})}),J=B('<div class="dropdown-menu note-check" role="list">',function(e,i){var t=Array.isArray(i.items)?i.items.map(function(e){var t="string"==typeof e?e:e.value||"",n=i.template?i.template(e):e;return'<a class="dropdown-item" href="#" data-value="'+t+'" role="listitem" aria-label="'+e+'">'+ie(i.checkClassName)+" "+n+"</a>"}).join(""):i.items;e.html(t).attr({"aria-label":i.title})}),Z=B('<div class="note-color-palette"/>',function(e,t){for(var n=[],i=0,o=t.colors.length;i<o;i++){for(var r=t.eventName,s=t.colors[i],a=t.colorsName[i],l=[],c=0,d=s.length;c<d;c++){var u=s[c],p=a[c];l.push(['<button type="button" class="note-color-btn"','style="background-color:',u,'" ','data-event="',r,'" ','data-value="',u,'" ','title="',p,'" ','aria-label="',p,'" ','data-toggle="button" tabindex="-1"></button>'].join(""))}n.push('<div class="note-color-row">'+l.join("")+"</div>")}e.html(n.join("")),t.tooltip&&e.find(".note-color-btn").tooltip({container:t.container,trigger:"hover",placement:"bottom"})}),ee=B('<div class="modal" aria-hidden="false" tabindex="-1" role="dialog"/>',function(e,t){t.fade&&e.addClass("fade"),e.attr({"aria-label":t.title}),e.html(['<div class="modal-dialog">','  <div class="modal-content">',t.title?'    <div class="modal-header">      <h4 class="modal-title">'+t.title+'</h4>      <button type="button" class="close" data-dismiss="modal" aria-label="Close" aria-hidden="true">&times;</button>    </div>':"",'    <div class="modal-body">'+t.body+"</div>",t.footer?'    <div class="modal-footer">'+t.footer+"</div>":"","  </div>","</div>"].join(""))}),te=B(['<div class="note-popover popover in">','  <div class="arrow"/>','  <div class="popover-content note-children-container"/>',"</div>"].join(""),function(e,t){var n=void 0!==t.direction?t.direction:"bottom";e.addClass(n),t.hideArrow&&e.find(".arrow").hide()}),ne=B('<div class="form-check"></div>',function(e,t){e.html(['<label class="form-check-label"'+(t.id?' for="'+t.id+'"':"")+">",
11' <input role="checkbox" type="checkbox" class="form-check-input"'+(t.id?' id="'+t.id+'"':""),t.checked?" checked":"",' aria-label="'+(t.text?t.text:"")+'"',' aria-checked="'+(t.checked?"true":"false")+'"/>'," "+(t.text?t.text:"")+"</label>"].join(""))}),ie=function(e,t){return"<"+(t=t||"i")+' class="'+e+'"/>'},oe={editor:z,toolbar:W,editingArea:q,codable:U,editable:V,statusbar:G,airEditor:K,airEditable:Q,buttonGroup:Y,dropdown:X,dropdownButtonContents:function(e){return e},dropdownCheck:J,palette:Z,dialog:ee,popover:te,icon:ie,checkbox:ne,options:{},button:function(e,t){return B('<button type="button" class="note-btn btn btn-light btn-sm" role="button" tabindex="-1">',function(e,t){t&&t.tooltip&&e.attr({title:t.tooltip,"aria-label":t.tooltip}).tooltip({container:void 0!==t.container?t.container:"body",trigger:"hover",placement:"bottom"}).on("click",function(e){C(e.currentTarget).tooltip("hide")})})(e,t)},toggleBtn:function(e,t){e.toggleClass("disabled",!t),e.attr("disabled",!t)},toggleBtnActive:function(e,t){e.toggleClass("active",t)},onDialogShown:function(e,t){e.one("shown.bs.modal",t)},onDialogHidden:function(e,t){e.one("hidden.bs.modal",t)},showDialog:function(e){e.modal("show")},hideDialog:function(e){e.modal("hide")},createLayout:function(e,t){var n=(t.airMode?oe.airEditor([oe.editingArea([oe.airEditable()])]):oe.editor([oe.toolbar(),oe.editingArea([oe.codable(),oe.editable()]),oe.statusbar()])).render();return n.insertAfter(e),{note:e,editor:n,toolbar:n.find(".note-toolbar"),editingArea:n.find(".note-editing-area"),editable:n.find(".note-editable"),codable:n.find(".note-codable"),statusbar:n.find(".note-statusbar")}},removeLayout:function(e,t){e.html(t.editable.html()),t.editor.remove(),e.show()}};C.summernote=C.summernote||{lang:{}},C.extend(C.summernote.lang,{"en-US":{font:{bold:"Bold",italic:"Italic",underline:"Underline",clear:"Remove Font Style",height:"Line Height",name:"Font Family",strikethrough:"Strikethrough",subscript:"Subscript",superscript:"Superscript",size:"Font Size"},image:{image:"Picture",insert:"Insert Image",resizeFull:"Resize full",resizeHalf:"Resize half",resizeQuarter:"Resize quarter",resizeNone:"Original size",floatLeft:"Float Left",floatRight:"Float Right",floatNone:"Remove float",shapeRounded:"Shape: Rounded",shapeCircle:"Shape: Circle",shapeThumbnail:"Shape: Thumbnail",shapeNone:"Shape: None",dragImageHere:"Drag image or text here",dropImage:"Drop image or Text",selectFromFiles:"Select from files",maximumFileSize:"Maximum file size",maximumFileSizeError:"Maximum file size exceeded.",url:"Image URL",remove:"Remove Image",original:"Original"},video:{video:"Video",videoLink:"Video Link",insert:"Insert Video",url:"Video URL",providers:"(YouTube, Vimeo, Vine, Instagram, DailyMotion or Youku)"},link:{link:"Link",insert:"Insert Link",unlink:"Unlink",edit:"Edit",textToDisplay:"Text to display",url:"To what URL should this link go?",openInNewWindow:"Open in new window"},table:{table:"Table",addRowAbove:"Add row above",addRowBelow:"Add row below",addColLeft:"Add column left",addColRight:"Add column right",delRow:"Delete row",delCol:"Delete column",delTable:"Delete table"},hr:{insert:"Insert Horizontal Rule"},style:{style:"Style",p:"Normal",blockquote:"Quote",pre:"Code",h1:"Header 1",h2:"Header 2",h3:"Header 3",h4:"Header 4",h5:"Header 5",h6:"Header 6"},lists:{unordered:"Unordered list",ordered:"Ordered list"},options:{help:"Help",fullscreen:"Full Screen",codeview:"Code View"},paragraph:{paragraph:"Paragraph",outdent:"Outdent",indent:"Indent",left:"Align left",center:"Align center",right:"Align right",justify:"Justify full"}
11,color:{recent:"Recent Color",more:"More Color",background:"Background Color",foreground:"Foreground Color",transparent:"Transparent",setTransparent:"Set transparent",reset:"Reset",resetToDefault:"Reset to default",cpSelect:"Select"},shortcut:{shortcuts:"Keyboard shortcuts",close:"Close",textFormatting:"Text formatting",action:"Action",paragraphFormatting:"Paragraph formatting",documentStyle:"Document Style",extraKeys:"Extra keys"},help:{insertParagraph:"Insert Paragraph",undo:"Undoes the last command",redo:"Redoes the last command",tab:"Tab",untab:"Untab",bold:"Set a bold style",italic:"Set a italic style",underline:"Set a underline style",strikethrough:"Set a strikethrough style",removeFormat:"Clean a style",justifyLeft:"Set left align",justifyCenter:"Set center align",justifyRight:"Set right align",justifyFull:"Set full align",insertUnorderedList:"Toggle unordered list",insertOrderedList:"Toggle ordered list",outdent:"Outdent on current paragraph",indent:"Indent on current paragraph",formatPara:"Change current block's format as a paragraph(P tag)",formatH1:"Change current block's format as H1",formatH2:"Change current block's format as H2",formatH3:"Change current block's format as H3",formatH4:"Change current block's format as H4",formatH5:"Change current block's format as H5",formatH6:"Change current block's format as H6",insertHorizontalRule:"Insert horizontal rule","linkDialog.show":"Show Link Dialog"},history:{undo:"Undo",redo:"Redo"},specialChar:{specialChar:"SPECIAL CHARACTERS",select:"Select Special characters"}}});var re,se="function"==typeof define&&define.amd,ae=navigator.userAgent,le=/MSIE|Trident/i.test(ae);if(le){var ce=/MSIE (\d+[.]\d+)/.exec(ae);ce&&(re=parseFloat(ce[1])),(ce=/Trident\/.*rv:([0-9]{1,}[.0-9]{0,})/.exec(ae))&&(re=parseFloat(ce[1]))}var de=/Edge\/\d+/.test(ae),ue=!!window.CodeMirror,pe="ontouchstart"in window||0<navigator.MaxTouchPoints||0<navigator.msMaxTouchPoints,he=le||de?"DOMCharacterDataModified DOMSubtreeModified DOMNodeInserted":"input",fe={isMac:-1<navigator.appVersion.indexOf("Mac"),isMSIE:le,isEdge:de,isFF:!de&&/firefox/i.test(ae),isPhantom:/PhantomJS/i.test(ae),isWebkit:!de&&/webkit/i.test(ae),isChrome:!de&&/chrome/i.test(ae),isSafari:!de&&/safari/i.test(ae),browserVersion:re,jqueryVersion:parseFloat(C.fn.jquery),isSupportAmd:se,isSupportTouch:pe,hasCodeMirror:ue,isFontInstalled:function(e){var t="Comic Sans MS"===e?"Courier New":"Comic Sans MS",n="mmmmmmmmmmwwwww",i=document.createElement("canvas").getContext("2d");i.font="200px '"+t+"'";var o=i.measureText(n).width;return i.font="200px '"+e+"', '"+t+"'",o!==i.measureText(n).width},isW3CRangeSupport:!!document.createRange,inputEventName:he},ge=0,me={eq:function(t){return function(e){return t===e}},eq2:function(e,t){return e===t},peq2:function(n){return function(e,t){return e[n]===t[n]}},ok:function(){return!0},fail:function(){return!1},self:function(e){return e},not:function(e){return function(){return!e.apply(e,arguments)}},and:function(t,n){return function(e){return t(e)&&n(e)}},invoke:function(e,t){return function(){return e[t].apply(e,arguments)}},uniqueId:function(e){var t=++ge+"";return e?e+t:t},rect2bnd:function(e){var t=$(document);return{top:e.top+t.scrollTop(),left:e.left+t.scrollLeft(),width:e.right-e.left,height:e.bottom-e.top}},invertObject:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t},namespaceToCamel:function(e,t){return(t=t||"")+e.split(".").map(function(e){return e.substring(0,1).toUpperCase()+e.substring(1)}).join("")},debounce:function(i,o,r){var s;return function(){var e=this,t=arguments,n=r&&!s;clearTimeout(s),s=setTimeout(function(){s=null,r||i.apply(e,t)},o),n&&i.apply(e,t)}},isValidUrl:function(e){return/[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/gi.test(e)}},ve={head:t,last:o,initial:function(e){return e.slice(0,e.length-1)},tail:n,prev:function(e,t){if(e&&e.length&&t){var n=e.indexOf(t);return-1===n?null:e[n-1]}return null},next:function(e,t){if(e&&e.length&&t){var n=e.indexOf(t);return-1===n?null:e[n+1]}return null},find:function(e,t){for(var n=0,i=e.length;n<i;n++){var o=e[n];if(t(o))return o}},contains:r,all:function(e,t){for(var n=0,i=e.length;n<i;
11n++)if(!t(e[n]))return!1;return!0},sum:function(e,n){return n=n||me.self,e.reduce(function(e,t){return e+n(t)},0)},from:function(e){for(var t=[],n=e.length,i=-1;++i<n;)t[i]=e[i];return t},isEmpty:function(e){return!e||!e.length},clusterBy:function(e,i){return e.length?n(e).reduce(function(e,t){var n=o(e);return i(o(n),t)?n[n.length]=t:e[e.length]=[t],e},[[t(e)]]):[]},compact:function(e){for(var t=[],n=0,i=e.length;n<i;n++)e[n]&&t.push(e[n]);return t},unique:function(e){for(var t=[],n=0,i=e.length;n<i;n++)r(t,e[n])||t.push(e[n]);return t}},ye=String.fromCharCode(160),be=e("PRE"),we=e("LI"),Ce=e("TABLE"),xe=e("DATA"),ke=e("HR"),Se=e("BLOCKQUOTE"),je=e("A"),Ee=e("BODY"),Te=fe.isMSIE&&fe.browserVersion<11?"&nbsp;":"<br>",Ie=e("TEXTAREA"),Ae={NBSP_CHAR:ye,ZERO_WIDTH_NBSP_CHAR:"\ufeff",blank:Te,emptyPara:"<p>"+Te+"</p>",makePredByNodeName:e,isEditable:s,isControlSizing:function(e){return e&&C(e).hasClass("note-control-sizing")},isText:a,isElement:function(e){return e&&1===e.nodeType},isVoid:i,isPara:l,isPurePara:function(e){return l(e)&&!we(e)},isHeading:function(e){return e&&/^H[1-7]/.test(e.nodeName.toUpperCase())},isInline:c,isBlock:me.not(c),isBodyInline:function(e){return c(e)&&!m(e,l)},isBody:Ee,isParaInline:function(e){return c(e)&&!!m(e,l)},isPre:be,isList:d,isTable:Ce,isData:xe,isCell:u,isBlockquote:Se,isBodyContainer:p,isAnchor:je,isDiv:e("DIV"),isLi:we,isBR:e("BR"),isSpan:e("SPAN"),isB:e("B"),isU:e("U"),isS:e("S"),isI:e("I"),isImg:e("IMG"),isTextarea:Ie,isEmpty:f,isEmptyAnchor:me.and(je,f),isClosestSibling:function(e,t){return e.nextSibling===t||e.previousSibling===t},withClosestSiblings:function(e,t){t=t||me.ok;var n=[];return e.previousSibling&&t(e.previousSibling)&&n.push(e.previousSibling),n.push(e),e.nextSibling&&t(e.nextSibling)&&n.push(e.nextSibling),n},nodeLength:h,isLeftEdgePoint:x,isRightEdgePoint:k,isEdgePoint:S,isLeftEdgeOf:j,isRightEdgeOf:E,isLeftEdgePointOf:function(e,t){return x(e)&&j(e.node,t)},isRightEdgePointOf:function(e,t){return k(e)&&E(e.node,t)},prevPoint:A,nextPoint:D,isSamePoint:_,isVisiblePoint:function(e){if(a(e.node)||!I(e.node)||f(e.node))return!0;var t=e.node.childNodes[e.offset-1],n=e.node.childNodes[e.offset];return!(t&&!i(t)||n&&!i(n))},prevPointUntil:function(e,t){for(;e;){if(t(e))return e;e=A(e)}return null},nextPointUntil:function(e,t){for(;e;){if(t(e))return e;e=D(e)}return null},isCharPoint:function(e){if(!a(e.node))return!1;var t=e.node.nodeValue.charAt(e.offset-1);return t&&" "!==t&&t!==ye},walkPoint:function(e,t,n,i){for(var o=e;o&&(n(o),!_(o,t));)o=D(o,i&&e.node!==o.node&&t.node!==o.node)},ancestor:m,singleChildAncestor:function(e,t){for(e=e.parentNode;e&&1===h(e);){if(t(e))return e;if(s(e))break;e=e.parentNode}return null},listAncestor:v,lastAncestor:function(e,t){var n=v(e);return ve.last(n.filter(t))},listNext:y,listPrev:function(e,t){t=t||me.fail;for(var n=[];e&&!t(e);)n.push(e),e=e.previousSibling;return n},listDescendant:function(i,o){var r=[];return o=o||me.ok,function s(e){i!==e&&o(e)&&r.push(e);for(var t=0,n=e.childNodes.length;t<n;t++)s(e.childNodes[t])}(i),r},commonAncestor:function(e,t){for(var n=v(e),i=t;i;i=i.parentNode)if(-1<n.indexOf(i))return i;return null},wrap:function(e,t){var n=e.parentNode,i=C("<"+t+">")[0];return n.insertBefore(i,e),i.appendChild(e),i},insertAfter:b,appendChildNodes:w,position:T,hasChildren:I,makeOffsetPath:function(e,t){return v(t,me.eq(e)).map(T).reverse()},fromOffsetPath:function(e,t){for(var n=e,i=0,o=t.length;i<o;i++)n=n.childNodes.length<=t[i]?n.childNodes[n.childNodes.length-1]:n.childNodes[t[i]];return n},splitTree:L,splitPoint:function(e,t){var n,i,o=t?l:p,r=v(e.node,o),s=ve.last(r)||e.node;i=o(s)?(n=r[r.length-2],s):(n=s).parentNode;var a=n&&L(n,e,{isSkipPaddingBlankHTML:t,isNotSplitEdgePoint:t});return a||i!==e.node||(a=e.node.childNodes[e.offset]),{rightNode:a,container:i}},create:O,createText:function(e){return document.createTextNode(e)},remove:P,removeWhile:function(e,t){for(;e&&!s(e)&&t(e);){var n=e.parentNode;P(e),e=n}},replace:function(e,t){if(e.nodeName.toUpperCase()===t.toUpperCase())return e;var n=O(t);return e.style.cssText&&(n.style.cssText=e.style.cssText),w(n,ve.from(e.childNodes)),b(n,e),P(e),n},html:function(e,t){var n=R(e);return t&&(n=(n=n.replace(/<(\/?)(\b(?!!)[^>\s]*)(.*?)(\s*\/?>)/g,function(e,t,n){n=n.toUpperCase();var i=/^DIV|^TD|^TH|^P|^LI|^H[1-7]/.test(n)&&!!t,o=/^BLOCKQUOTE|^TABLE|^TBODY|^TR|^HR|^UL|^OL/.test(n);return e+(i||o?"\n":"")})).trim()),n},value:R,posFromPlaceholder:function(e){var t=C(e),n=t.offset(),i=t.outerHeight(!0);return{left:n.left,top:n.top+i}}
11,attachEvents:function(t,n){Object.keys(n).forEach(function(e){t.on(e,n[e])})},detachEvents:function(t,n){Object.keys(n).forEach(function(e){t.off(e,n[e])})},isCustomStyleTag:function(e){return e&&!a(e)&&ve.contains(e.classList,"note-styletag")}},De=function(){function e(e,t){this.ui=C.summernote.ui,this.$note=e,this.memos={},this.modules={},this.layoutInfo={},this.options=t,this.initialize()}return e.prototype.initialize=function(){return this.layoutInfo=this.ui.createLayout(this.$note,this.options),this._initialize(),this.$note.hide(),this},e.prototype.destroy=function(){this._destroy(),this.$note.removeData("summernote"),this.ui.removeLayout(this.$note,this.layoutInfo)},e.prototype.reset=function(){var e=this.isDisabled();this.code(Ae.emptyPara),this._destroy(),this._initialize(),e&&this.disable()},e.prototype._initialize=function(){var t=this,n=C.extend({},this.options.buttons);Object.keys(n).forEach(function(e){t.memo("button."+e,n[e])});var i=C.extend({},this.options.modules,C.summernote.plugins||{});Object.keys(i).forEac
11h(function(e){t.module(e,i[e],!0)}),Object.keys(this.modules).forEach(function(e){t.initializeModule(e)})},e.prototype._destroy=function(){var t=this;Object.keys(this.modules).reverse().forEach(function(e){t.removeModule(e)}),Object.keys(this.memos).forEach(function(e){t.removeMemo(e)}),this.triggerEvent("destroy",this)},e.prototype.code=function(e){var t=this.invoke("codeview.isActivated");if(void 0===e)return this.invoke("codeview.sync"),t?this.layoutInfo.codable.val():this.layoutInfo.editable.html();t?this.layoutInfo.codable.val(e):this.layoutInfo.editable.html(e),this.$note.val(e),this.triggerEvent("change",e,this.layoutInfo.editable)},e.prototype.isDisabled=function(){return"false"===this.layoutInfo.editable.attr("contenteditable")},e.prototype.enable=function(){this.layoutInfo.editable.attr("contenteditable",!0),this.invoke("toolbar.activate",!0),this.triggerEvent("disable",!1)},e.prototype.disable=function(){this.invoke("codeview.isActivated")&&this.invoke("codeview.deactivate"),this.layoutInfo.editable.attr("contenteditable",!1),this.invoke("toolbar.deactivate",!0),this.triggerEvent("disable",!0)},e.prototype.triggerEvent=function(){var e=ve.head(arguments),t=ve.tail(ve.from(arguments)),n=this.options.callbacks[me.namespaceToCamel(e,"on")];n&&n.apply(this.$note[0],t),this.$note.trigger("summernote."+e,t)},e.prototype.initializeModule=function(e){var t=this.modules[e];t.shouldInitialize=t.shouldInitialize||me.ok,t.shouldInitialize()&&(t.initialize&&t.initialize(),t.events&&Ae.attachEvents(this.$note,t.events))},e.prototype.module=function(e,t,n){if(1===arguments.length)return this.modules[e];this.modules[e]=new t(this),n||this.initializeModule(e)},e.prototype.removeModule=function(e){var t=this.modules[e];t.shouldInitialize()&&(t.events&&Ae.detachEvents(this.$note,t.events),t.destroy&&t.destroy()),delete this.modules[e]},e.prototype.memo=function(e,t){if(1===arguments.length)return this.memos[e];this.memos[e]=t},e.prototype.removeMemo=function(e){this.memos[e]&&this.memos[e].destroy&&this.memos[e].destroy(),delete this.memos[e]},e.prototype.createInvokeHandlerAndUpdateState=function(t,n){var i=this;return function(e){i.createInvokeHandler(t,n)(e),i.invoke("buttons.updateCurrentStyle")}},e.prototype.createInvokeHandler=function(n,i){var o=this;return function(e){e.preventDefault();var t=C(e.target);o.invoke(n,i||t.closest("[data-value]").data("value"),t)}},e.prototype.invoke=function(){var e=ve.head(arguments),t=ve.tail(ve.from(arguments)),n=e.split("."),i=1<n.length,o=i&&ve.head(n),r=i?ve.last(n):ve.head(n),s=this.modules[o||"editor"];return!o&&this[r]?this[r].apply(this,t):s&&s[r]&&s.shouldInitialize()?s[r].apply(s,t):void 0},e}();C.fn.extend({summernote:function(){var e=C.type(ve.head(arguments)),t="string"===e,n="object"===e,o=C.extend({},C.summernote.options,n?ve.head(arguments):{});o.langInfo=C.extend(!0,{},C.summernote.lang["en-US"],C.summernote.lang[o.lang]),o.icons=C.extend(!0,{},C.summernote.options.icons,o.icons),o.tooltip="auto"===o.tooltip?!fe.isSupportTouch:o.tooltip,this.each(function(e,t){var n=C(t);if(!n.data("summernote")){var i=new De(n,o);n.data("summernote",i),n.data("summernote").triggerEvent("init",i.layoutInfo)}});var i=this.first();if(i.length){var r=i.data("summernote");if(t)return r.invoke.apply(r,ve.from(arguments));o.focus&&r.invoke("editor.focus")}return this}});var _e=function(){function r(e,t,n,i){this.sc=e,this.so=t,this.ec=n,this.eo=i,this.isOnEditable=this.makeIsOn(Ae.isEditable),this.isOnList=this.makeIsOn(Ae.isList),this.isOnAnchor=this.makeIsOn(Ae.isAnchor),this.isOnCell=this.makeIsOn(Ae.isCell),this.isOnData=this.makeIsOn(Ae.isData)}return r.prototype.nativeRange=function(){if(fe.isW3CRangeSupport){var e=document.createRange();return e.setStart(this.sc,this.sc.data&&this.so>this.sc.data.length?0:this.so),e.setEnd(this.ec,this.sc.data?Math.min(this.eo,this.sc.data.length):this.eo),e}var t=M({node:this.sc,offset:this.so});return t.setEndPoint("EndToEnd",M({node:this.ec,offset:this.eo})),t},r.prototype.getPoints=function(){return{sc:this.sc,so:this.so,ec:this.ec,eo:this.eo}},r.prototype.getStartPoint=function(){return{node:this.sc,offset:this.so}},r.prototype.getEndPoint=function(){return{node:this.ec,offset:this.eo}},r.prototype.select=function(){var e=this.nativeRange();if(fe.isW3CRangeSupport){var t=document.getSelection();0<t.rangeCount&&t.removeAllRanges(),t.addRange(e)}else e.select();return this},r.prototype.scrollIntoView=function(e){var t=C(e).height();return e.scrollTop+t<this.sc.offsetTop&&(e.scrollTop+=Math.abs(e.scrollTop+t-this.sc.offsetTop)),this},r.prototype.normalize=function(){var e=function(e,t){if(Ae.isVisiblePoint(e)&&(!Ae.isEdgePoint(e)||Ae.isRightEdgePoint(e)&&!t||Ae.isLeft
11EdgePoint(e)&&t||Ae.isRightEdgePoint(e)&&t&&Ae.isVoid(e.node.nextSibling)||Ae.isLeftEdgePoint(e)&&!t&&Ae.isVoid(e.node.previousSibling)||Ae.isBlock(e.node)&&Ae.isEmpty(e.node)))return e;var n=Ae.ancestor(e.node,Ae.isBlock);if((Ae.isLeftEdgePointOf(e,n)||Ae.isVoid(Ae.prevPoint(e).node))&&!t||(Ae.isRightEdgePointOf(e,n)||Ae.isVoid(Ae.nextPoint(e).node))&&t){if(Ae.isVisiblePoint(e))return e;t=!t}return(t?Ae.nextPointUntil(Ae.nextPoint(e),Ae.isVisiblePoint):Ae.prevPointUntil(Ae.prevPoint(e),Ae.isVisiblePoint))||e},t=e(this.getEndPoint(),!1),n=this.isCollapsed()?t:e(this.getStartPoint(),!0);return new r(n.node,n.offset,t.node,t.offset)},r.prototype.nodes=function(n,e){n=n||me.ok;var i=e&&e.includeAncestor,o=e&&e.fullyContains,t=this.getStartPoint(),r=this.getEndPoint(),s=[],a=[];return Ae.walkPoint(t,r,function(e){var t;Ae.isEditable(e.node)||(o?(Ae.isLeftEdgePoint(e)&&a.push(e.node),Ae.isRightEdgePoint(e)&&ve.contains(a,e.node)&&(t=e.node)):t=i?Ae.ancestor(e.node,n):e.node,t&&n(t)&&s.push(t))},!0),ve.unique(s)},r.prototype.commonAncestor=function(){return Ae.commonAncestor(this.sc,this.ec)},r.prototype.expand=function(e){var t=Ae.ancestor(this.sc,e),n=Ae.ancestor(this.ec,e);if(!t&&!n)return new r(this.sc,this.so,this.ec,this.eo);var i=this.getPoints();return t&&(i.sc=t,i.so=0),n&&(i.ec=n,i.eo=Ae.nodeLength(n)),new r(i.sc,i.so,i.ec,i.eo)},r.prototype.collapse=function(e){return e?new r(this.sc,this.so,this.sc,this.so):new r(this.ec,this.eo,this.ec,this.eo)},r.prototype.splitText=function(){var e=this.sc===this.ec,t=this.getPoints();return Ae.isText(this.ec)&&!Ae.isEdgePoint(this.getEndPoint())&&this.ec.splitText(this.eo),Ae.isText(this.sc)&&!Ae.isEdgePoint(this.getStartPoint())&&
11(t.sc=this.sc.splitText(this.so),t.so=0,e&&(t.ec=t.sc,t.eo=this.eo-this.so)),new r(t.sc,t.so,t.ec,t.eo)},r.prototype.deleteContents=function(){if(this.isCollapsed())return this;var e=this.splitText(),t=e.nodes(null,{fullyContains:!0}),i=Ae.prevPointUntil(e.getStartPoint(),function(e){return!ve.contains(t,e.node)}),o=[];return C.each(t,function(e,t){var n=t.parentNode;i.node!==n&&1===Ae.nodeLength(n)&&o.push(n),Ae.remove(t,!1)}),C.each(o,function(e,t){Ae.remove(t,!1)}),new r(i.node,i.offset,i.node,i.offset).normalize()},r.prototype.makeIsOn=function(t){return function(){var e=Ae.ancestor(this.sc,t);return!!e&&e===Ae.ancestor(this.ec,t)}},r.prototype.isLeftEdgeOf=function(e){if(!Ae.isLeftEdgePoint(this.getStartPoint()))return!1;var t=Ae.ancestor(this.sc,e);return t&&Ae.isLeftEdgeOf(this.sc,t)},r.prototype.isCollapsed=function(){return this.sc===this.ec&&this.so===this.eo},r.prototype.wrapBodyInlineWithPara=function(){if(Ae.isBodyContainer(this.sc)&&Ae.isEmpty(this.sc))return this.sc.innerHTML=Ae.emptyPara,new r(this.sc.firstChild,0,this.sc.firstChild,0);var e,t=this.normalize();if(Ae.isParaInline(this.sc)||Ae.isPara(this.sc))return t;if(Ae.isInline(t.sc)){var n=Ae.listAncestor(t.sc,me.not(Ae.isInline));e=ve.last(n),Ae.isInline(e)||(e=n[n.length-2]||t.sc.childNodes[t.so])}else e=t.sc.childNodes[0<t.so?t.so-1:0];var i=Ae.listPrev(e,Ae.isParaInline).reverse();if((i=i.concat(Ae.listNext(e.nextSibling,Ae.isParaInline))).length){var o=Ae.wrap(ve.head(i),"p");Ae.appendChildNodes(o,ve.tail(i))}return this.normalize()},r.prototype.insertNode=function(e){var t=this.wrapBodyInlineWithPara().deleteContents(),n=Ae.splitPoint(t.getStartPoint(),Ae.isInline(e));return n.rightNode?n.rightNode.parentNode.insertBefore(e,n.rightNode):n.container.appendChild(e),e},r.prototype.pasteHTML=function(e){var t=C("<div></div>").html(e)[0],n=ve.from(t.childNodes),i=this.wrapBodyInlineWithPara().deleteContents();return 0<i.so&&(n=n.reverse()),n=n.map(function(e){return i.insertNode(e)}),0<i.so&&(n=n.reverse()),n},r.prototype.toString=function(){var e=this.nativeRange();return fe.isW3CRangeSupport?e.toString():e.text},r.prototype.getWordRange=function(e){var t=this.getEndPoint();if(!Ae.isCharPoint(t))return this;var n=Ae.prevPointUntil(t,function(e){return!Ae.isCharPoint(e)});return e&&(t=Ae.nextPointUntil(t,function(e){return!Ae.isCharPoint(e)})),new r(n.node,n.offset,t.node,t.offset)},r.prototype.bookmark=function(e){return{s:{path:Ae.makeOffsetPath(e,this.sc),offset:this.so},e:{path:Ae.makeOffsetPath(e,this.ec),offset:this.eo}}},r.prototype.paraBookmark=function(e){return{s:{path:ve.tail(Ae.makeOffsetPath(ve.head(e),this.sc)),offset:this.so},e:{path:ve.tail(Ae.makeOffsetPath(ve.last(e),this.ec)),offset:this.eo}}},r.prototype.getClientRects=function(){return this.nativeRange().getClientRects()},r}(),Ne={create:function(e,t,n,i){if(4===arguments.length)return new _e(e,t,n,i);if(2===arguments.length)return new _e(n=e,i=t,n,i);var o=this.createFromSelection();return o||1!==arguments.length?o:(o=this.createFromNode(e)).collapse(Ae.emptyPara===e.innerHTML)},createFromSelection:function(){var e,t,n,i;if(fe.isW3CRangeSupport){var o=document.getSelection();if(!o||0===o.rangeCount)return null;if(Ae.isBody(o.anchorNode))return null;var r=o.getRangeAt(0);e=r.startContainer,t=r.startOffset,n=r.endContainer,i=r.endOffset}else{var s=document.selection.createRange(),a=s.duplicate();a.collapse(!1);var l=s;l.collapse(!0);var c=H(l,!0),d=H(a,!1);Ae.isText(c.node)&&Ae.isLeftEdgePoint(c)&&Ae.isTextNode(d.node)&&Ae.isRightEdgePoint(d)&&d.node.nextSibling===c.node&&(c=d),e=c.cont,t=c.offset,n=d.cont,i=d.offset}return new _e(e,t,n,i)},createFromNode:function(e){var t=e,n=0,i=e,o=Ae.nodeLength(i);return Ae.isVoid(t)&&(n=Ae.listPrev(t).length-1,t=t.parentNode),Ae.isBR(i)?(o=Ae.listPrev(i).length-1,i=i.parentNode):Ae.isVoid(i)&&(o=Ae.listPrev(i).length,i=i.parentNode),this.create(t,n,i,o)},createFromNodeBefore:function(e){return this.createFromNode(e).collapse(!0)},createFromNodeAfter:function(e){return this.createFromNode(e).collapse()},createFromBookmark:function(e,t){var n=Ae.fromOffsetPath(e,t.s.path),i=t.s.offset,o=Ae.fromOffsetPath(e,t.e.path),r=t.e.offset;return new _e(n,i,o,r)},createFromParaBookmark:function(e,t){var n=e.s.offset,i=e.e.offset,o=Ae.fromOffsetPath(ve.head(t),e.s.path),r=Ae.fromOffsetPath(ve.last(t),e.e.path);return new _e(o,n,r,i)}},$e={BACKSPACE:8,TAB:9,ENTER:13,SPACE:32,DELETE:46,LEFT:37,UP:38,RIGHT:39,DOWN:40,NUM0:48,NUM1:49,NUM2:50,NUM3:51,NUM4:52,NUM5:53,NUM6:54,NUM7:55,NUM8:56,B:66,E:69,I:73,J:74,K:75,L:76,R:82,S:83,U:85,V:86,Y:89,Z:90,SLASH:191,LEFTBRACKET:219,BACKSLASH:220,RIGHTBRACKET:221},Le={isEdit:function(e){return ve.contains([$e.BACKSPACE,$e.TAB,$e.ENTER,$e.SPACE,$e.DELETE],e)},isMove:function(e){return ve.contains([$e.LEFT,$e.UP,$e.RIGHT,$e.DOWN],e)},nameFromCode:me.invertObject($e),code:$e},Oe=function(){function e(e){this.stack=[],this.stackOffset=-1,this.$editable=e,this.editable=e[0]}return e.prototype.makeSnapshot=function(){var e=Ne.create(this.editable);return{contents:this.$editable.html(),bookmark:e&&e.isOnEditable()?e.bookmark(this.editable):{s:{path:[],offset:0},e:{path:[],offset:0}}}}
11,e.prototype.applySnapshot=function(e){null!==e.contents&&this.$editable.html(e.contents),null!==e.bookmark&&Ne.createFromBookmark(this.editable,e.bookmark).select()},e.prototype.rewind=function(){this.$editable.html()!==this.stack[this.stackOffset].contents&&this.recordUndo(),this.stackOffset=0,this.applySnapshot(this.stack[this.stackOffset])},e.prototype.commit=function(){this.stack=[],this.stackOffset=-1,this.recordUndo()},e.prototype.reset=function(){this.stack=[],this.stackOffset=-1,this.$editable.html(""),this.recordUndo()},e.prototype.undo=function(){this.$editable.html()!==this.stack[this.stackOffset].contents&&this.recordUndo(),0<this.stackOffset&&(this.stackOffset--,this.applySnapshot(this.stack[this.stackOffset]))},e.prototype.redo=function(){this.stack.length-1>this.stackOffset&&(this.stackOffset++,this.applySnapshot(this.stack[this.stackOffset]))},e.prototype.recordUndo=function(){this.stackOffset++,this.stack.length>this.stackOffset&&(this.stack=this.stack.slice(0,this.stackOffset)),this.stack.push(this.makeSnapshot())},e}(),Pe=function(){function e(){}return e.prototype.jQueryCSS=function(n,e){if(fe.jqueryVersion<1.9){var i={};return C.each(e,function(e,t){i[t]=n.css(t)}),i}return n.css(e)},e.prototype.fromNode=function(e){var t=this.jQueryCSS(e,["font-family","font-size","text-align","list-style-type","line-height"])||{};
11return t["font-size"]=parseInt(t["font-size"],10),t},e.prototype.stylePara=function(e,n){C.each(e.nodes(Ae.isPara,{includeAncestor:!0}),function(e,t){C(t).css(n)})},e.prototype.styleNodes=function(e,t){e=e.splitText();var n=t&&t.nodeName||"SPAN",i=!(!t||!t.expandClosestSibling),o=!(!t||!t.onlyPartialContains);if(e.isCollapsed())return[e.insertNode(Ae.create(n))];var r=Ae.makePredByNodeName(n),s=e.nodes(Ae.isText,{fullyContains:!0}).map(function(e){return Ae.singleChildAncestor(e,r)||Ae.wrap(e,n)});if(i){if(o){var a=e.nodes();r=me.and(r,function(e){return ve.contains(a,e)})}return s.map(function(e){var t=Ae.withClosestSiblings(e,r),n=ve.head(t),i=ve.tail(t);return C.each(i,function(e,t){Ae.appendChildNodes(n,t.childNodes),Ae.remove(t)}),ve.head(t)})}return s},e.prototype.current=function(e){var t=C(Ae.isElement(e.sc)?e.sc:e.sc.parentNode),n=this.fromNode(t);try{n=C.extend(n,{"font-bold":document.queryCommandState("bold")?"bold":"normal","font-italic":document.queryCommandState("italic")?"italic":"normal","font-underline":document.queryCommandState("underline")?"underline":"normal","font-subscript":document.queryCommandState("subscript")?"subscript":"normal","font-superscript":document.queryCommandState("superscript")?"superscript":"normal","font-strikethrough":document.queryCommandState("strikethrough")?"strikethrough":"normal","font-family":document.queryCommandValue("fontname")||n["font-family"]})}catch(e){}if(e.isOnList()){var i=-1<["circle","disc","disc-leading-zero","square"].indexOf(n["list-style-type"]);n["list-style"]=i?"unordered":"ordered"}else n["list-style"]="none";var o=Ae.ancestor(e.sc,Ae.isPara);if(o&&o.style["line-height"])n["line-height"]=o.style.lineHeight;else{var r=parseInt(n["line-height"],10)/parseInt(n["font-size"],
1110);n["line-height"]=r.toFixed(1)}return n.anchor=e.isOnAnchor()&&Ae.ancestor(e.sc,Ae.isAnchor),n.ancestors=Ae.listAncestor(e.sc,Ae.isEditable),n.range=e,n},e}(),Re=function(){function e(){}return e.prototype.insertOrderedList=function(e){this.toggleList("OL",e)},e.prototype.insertUnorderedList=function(e){this.toggleList("UL",e)},e.prototype.indent=function(e){var o=this,t=Ne.create(e).wrapBodyInlineWithPara(),n=t.nodes(Ae.isPara,{includeAncestor:!0}),i=ve.clusterBy(n,me.peq2("parentNode"));C.each(i,function(e,t){var n=ve.head(t);if(Ae.isLi(n)){var i=o.findList(n.previousSibling);i?t.map(function(e){return i.appendChild(e)}):(o.wrapList(t,n.parentNode.nodeName),t.map(function(e){return e.parentNode}).map(function(e){return o.appendToPrevious(e)}))}else C.each(t,function(e,t){C(t).css("marginLeft",function(e,t){return(parseInt(t,10)||0)+25})})}),t.select()},e.prototype.outdent=function(e){var i=this,t=Ne.create(e).wrapBodyInlineWithPara(),n=t.nodes(Ae.isPara,{includeAncestor:!0}),o=ve.clusterBy(n,me.peq2("parentNode"));C.each(o,function(e,t){var n=ve.head(t);Ae.isLi(n)?i.releaseList([t]):C.each(t,function(e,t){C(t).css("marginLeft",function(e,t){return 25<(t=parseInt(t,10)||0)?t-25:""})})}),t.select()},e.prototype.toggleList=function(n,e){var i=this,t=Ne.create(e).wrapBodyInlineWithPara(),o=t.nodes(Ae.isPara,{includeAncestor:!0}),r=t.paraBookmark(o),s=ve.clusterBy(o,me.peq2("parentNode"));if(ve.find(o,Ae.isPurePara)){var a=[];C.each(s,function(e,t){a=a.concat(i.wrapList(t,n))}),o=a}else{var l=t.nodes(Ae.isList,{includeAncestor:!0}).filter(function(e){return!C.nodeName(e,n)});l.length?C.each(l,function(e,t){Ae.replace(t,n)}):o=this.releaseList(s,!0)}Ne.createFromParaBookmark(r,o).select()},e.prototype.wrapList=function(e,t){var n=ve.head(e),i=ve.last(e),o=Ae.isList(n.previousSibling)&&n.previousSibling,r=Ae.isList(i.nextSibling)&&i.nextSibling,s=o||Ae.insertAfter(Ae.create(t||"UL"),i);return e=e.map(function(e){return Ae.isPurePara(e)?Ae.replace(e,"LI"):e}),Ae.appendChildNodes(s,e),r&&(Ae.appendChildNodes(s,ve.from(r.childNodes)),Ae.remove(r)),e},e.prototype.releaseList=function(e,c){var d=this,u=[];return C.each(e,function(e,t){var n=ve.head(t),i=ve.last(t),o=c?Ae.lastAncestor(n,Ae.isList):n.parentNode,r=o.parentNode;if("LI"===o.parentNode.nodeName)t.map(function(e){var t=d.findNextSiblings(e);r.nextSibling?r.parentNode.insertBefore(e,r.nextSibling):r.parentNode.appendChild(e),t.length&&(d.wrapList(t,o.nodeName),e.a
11ppendChild(t[0].parentNode))}),0===o.children.length&&r.removeChild(o),0===r.childNodes.length&&r.parentNode.removeChild(r);else{var s=1<o.childNodes.length?Ae.splitTree(o,{node:i.parentNode,offset:Ae.position(i)+1},{isSkipPaddingBlankHTML:!0}):null,a=Ae.splitTree(o,{node:n.parentNode,offset:Ae.position(n)},{isSkipPaddingBlankHTML:!0});t=c?Ae.listDescendant(a,Ae.isLi):ve.from(a.childNodes).filter(Ae.isLi),!c&&Ae.isList(o.parentNode)||(t=t.map(function(e){return Ae.replace(e,"P")})),C.each(ve.from(t).reverse(),function(e,t){Ae.insertAfter(t,o)});var l=ve.compact([o,a,s]);C.each(l,function(e,t){var n=[t].concat(Ae.listDescendant(t,Ae.isList));C.each(n.reverse(),function(e,t){Ae.nodeLength(t)||Ae.remove(t,!0)})})}u=u.concat(t)}),u},e.prototype.appendToPrevious=function(e){return e.previousSibling?Ae.appendChildNodes(e.previousSibling,[e]):this.wrapList([e],"LI")},e.prototype.findList=function(e){return e?ve.find(e.children,function(e){return-1<["OL","UL"].indexOf(e.nodeName)}):null},e.prototype.findNextSiblings=function(e){for(var t=[];e.nextSibling;)t.push(e.nextSibling),e=e.nextSibling;return t},e}(),He=function(){function e(e){this.bullet=new Re,this.options=e.options}return e.prototype.insertTab=function(e,t){var n=Ae.createText(new Array(t+1).join(Ae.NBSP_CHAR));(e=e.deleteContents()).insertNode(n,!0),(e=Ne.create(n,t)).select()},e.prototype.insertParagraph=function(e,t){t=(t=(t=t||Ne.create(e)).deleteContents()).wrapBodyInlineWithPara();var n,i=Ae.ancestor(t.sc,Ae.isPara);if(i){if(Ae.isEmpty(i)&&Ae.isLi(i))return void this.bullet.toggleList(i.parentNode.nodeName);var o=null;if(1===this.options.blockquoteBreakingLevel?o=Ae.ancestor(i,Ae.isBlockquote):2===this.options.blockquoteBreakingLevel&&(o=Ae.lastAncestor(i,Ae.isBlockquote)),o){n=C(Ae.emptyPara)[0],Ae.isRightEdgePoint(t.getStartPoint())&&Ae.isBR(t.sc.nextSibling)&&C(t.sc.nextSibling).remove();var r=Ae.splitTree(o,t.getStartPoint(),{isDiscardEmptySplits:!0});r?r.parentNode.insertBefore(n,r):Ae.insertAfter(n,o)}else{n=Ae.splitTree(i,t.getStartPoint());var s=Ae.listDescendant(i,Ae.isEmptyAnchor);s=s.concat(Ae.listDescendant(n,Ae.isEmptyAnchor)),
12C.each(s,function(e,t){Ae.remove(t)}),(Ae.isHeading(n)||Ae.isPre(n)||Ae.isCustomStyleTag(n))&&Ae.isEmpty(n)&&(n=Ae.replace(n,"p"))}}else{var a=t.sc.childNodes[t.so];n=C(Ae.emptyPara)[0],a?t.sc.insertBefore(n,a):t.sc.appendChild(n)}Ne.create(n,0).normalize().select().scrollIntoView(e)},e}(),Me=function(e,p,h,o){function f(e,t,n,i,o,r,s){var a={baseRow:n,baseCell:i,isRowSpan:o,isColSpan:r,isVirtual:s};w[e]||(w[e]=[]),w[e][t]=a}function g(e,t){if(!w[e])return t;if(!w[e][t])return t;for(var n=t;w[e][n];)if(n++,!w[e][n])return n}function r(e,t){var n=g(e.rowIndex,t.cellIndex),i=1<t.colSpan,o=1<t.rowSpan,r=e.rowIndex===b.rowPos&&t.cellIndex===b.colPos;f(e.rowIndex,n,e,t,o,i,!1);var s=t.attributes.rowSpan?parseInt(t.attributes.rowSpan.value,10):0;if(1<s)for(var a=1;a<s;a++){var l=e.rowIndex+a;m(l,n,t,r),f(l,n,e,t,!0,i,!0)}var c=t.attributes.colSpan?parseInt(t.attributes.colSpan.value,10):0;if(1<c)for(var d=1;d<c;d++){var u=g(e.rowIndex,n+d);m(e.rowIndex,u,t,r),f(e.rowIndex,u,e,t,o,!0,!0)}}function m(e,t,n,i){e===b.rowPos&&b.colPos>=n.cellIndex&&n.cellIndex<=t&&!i&&b.colPos++}function v(e){switch(p){case Me.where.Column:if(e.isColSpan)return Me.resultAction.SubtractSpanCount;break;case Me.where.Row:if(!e.isVirtual&&e.isRowSpan)return Me.resultAction.AddCell;if(e.isRowSpan)return Me.resultAction.SubtractSpanCount}return Me.resultAction.RemoveCell}function y(e){switch(p){case Me.where.Column:if(e.isColSpan)return Me.resultAction.SumSpanCount;if(e.isRowSpan&&e.isVirtual)return Me.resultAction.Ignore;break;case Me.where.Row:if(e.isRowSpan)return Me.resultAction.SumSpanCount;if(e.isColSpan&&e.isVirtual)return Me.resultAction.Ignore}return Me.resultAction.AddCell}var b={colPos:0,rowPos:0},w=[],C=[];this.getActionList=function(){for(var e,t,n,i=p===Me.where.Row?b.rowPos:-1,o=p===Me.where.Column?b.colPos:-1,r=0,s=!0;s;){var a=0<=i?i:r,l=0<=o?o:r,c=w[a];if(!c)return s=!1,C;var d=c[l];if(!d)return s=!1,C;var u=Me.resultAction.Ignore;switch(h){case Me.requestAction.Add:u=y(d);break;case Me.requestAction.Delete:u=v(d)}C.push((e=u,t=a,n=l,{baseCell:d.baseCell,action:e,virtualTable:{rowIndex:t,cellIndex:n}})),r++}return C},e&&e.tagName&&("td"===e.tagName.toLowerCase()||"th"===e.tagName.toLowerCase())?(b.colPos=e.cellIndex,e.parentElement&&e.parentElement.tagName&&"tr"===e.parentElement.tagName.toLowerCase()?b.rowPos=e.parentElement.rowIndex:console.error("Impossible to identify start Row point.",e)):console.error("Impossible to identify start Cell point.",e),function(){for(var e=o.rows,t=0;t<e.length;t++)for(var n=e[t].cells,i=0;i<n.length;i++)r(e[t],n[i])}()};Me.where={Row:0,Column:1},Me.requestAction={Add:0,Delete:1},Me.resultAction={Ignore:0,SubtractSpanCount:1,RemoveCell:2,AddCell:3,SumSpanCount:4};var Fe,Be=function(){function e(){}return e.prototype.tab=function(e,t){var n=Ae.ancestor(e.commonAncestor(),Ae.isCell),i=Ae.ancestor(n,Ae.isTable),o=Ae.listDescendant(i,Ae.isCell),r=ve[t?"prev":"next"](o,n);r&&Ne.create(r,0).select()},e.prototype.addRow=function(e,t){for(var n=Ae.ancestor(e.commonAncestor(),Ae.isCell),i=C(n).closest("tr"),o=this.recoverAttributes(i),r=C("<tr"+o+"></tr>"),s=new Me(n,Me.where.Row,Me.requestAction.Add,C(i).closest("table")[0]).getActionList(),a=0;a<s.length;a++){var l=s[a],c=this.recoverAttributes(l.baseCell);switch(l.action){case Me.resultAction.AddCell:r.append("<td"+c+">"+Ae.blank+"</td>");break;case Me.resultAction.SumSpanCount:if("top"===t&&(l.baseCell.parent?l.baseCell.closest("tr").rowIndex:0)<=i[0].rowIndex){var d=C("<div></div>").append(C("<td"+c+">"+Ae.blank+"</td>").removeAttr("rowspan")).html();r.append(d);break}var u=parseInt(l.baseCell.rowSpan,10);u++,l.baseCell.setAttribute("rowSpan",u)}}if("top"===t)i.before(r);else{if(1<n.rowSpan){var p=i[0].rowIndex+(n.rowSpan-2);return void C(C(i).parent().find("tr")[p]).after(C(r))}i.after(r)}},e.prototype.addCol=function(e,t){var n=Ae.ancestor(e.commonAncestor(),Ae.isCell),i=C(n).closest("tr");C(i).siblings().push(i);for(var o=new Me(n,Me.where.Column,Me.requestAction.Add,C(i).closest("table")[0]).getActionList(),r=0;r<o.length;r++){var s=o[r],a=this.recoverAttributes(s.baseCell);switch(s.action){case Me.resultAction.AddCell:"right"===t?C(s.baseCell).after("<td"+a+">"+Ae.blank+"</td>"):C(s.baseCell).before("<td"+a+">"+Ae.blank+"</td>");break;case Me.resultAction.SumSpanCount:if("right"===t){var l=parseInt(s.baseCell.colSpan,10);l++,s.baseCell.setAttribute("colSpan",l)}else C(s.baseCell).before("<td"+a+">"+Ae.blank+"</td>")}}},e.prototype.recoverAttributes=function(e){var t="";if(!e)return t;for(var n=e.attributes||[],i=0;i<n.length;
12i++)"id"!==n[i].name.toLowerCase()&&n[i].specified&&(t+=" "+n[i].name+"='"+n[i].value+"'");return t},e.prototype.deleteRow=function(e){for(var t=Ae.ancestor(e.commonAncestor(),Ae.isCell),n=C(t).closest("tr"),i=n.children("td, th").index(C(t)),o=n[0].rowIndex,r=new Me(t,Me.where.Row,Me.requestAction.Delete,C(n).closest("table")[0]).getActionList(),s=0;s<r.length;s++)if(r[s]){var a=r[s].baseCell,l=r[s].virtualTable,c=a.rowSpan&&1<a.rowSpan,d=c?parseInt(a.rowSpan,10):0;switch(r[s].action){case Me.resultAction.Ignore:continue;case Me.resultAction.AddCell:var u=n.next("tr")[0];if(!u)continue;var p=n[0].cells[i];c&&(2<d?(d--,u.insertBefore(p,u.cells[i]),u.cells[i].setAttribute("rowSpan",d),u.cells[i].innerHTML=""):2===d&&(u.insertBefore(p,u.cells[i]),u.cells[i].removeAttribute("rowSpan"),u.cells[i].innerHTML=""));continue;case Me.resultAction.SubtractSpanCount:c&&(2<d?(d--,a.setAttribute("rowSpan",d),l.rowIndex!==o&&a.cellIndex===i&&(a.innerHTML="")):2===d&&(a.removeAttribute("rowSpan"),l.rowIndex!==o&&a.cellIndex===i&&(a.innerHTML="")));continue;case Me.resultAction.RemoveCell:continue}}n.remove()},e.prototype.deleteCol=function(e){for(var t=Ae.ancestor(e.commonAncestor(),Ae.isCell),n=C(t).closest("tr"),i=n.children("td, th").index(C(t)),o=new Me(t,Me.where.Column,Me.requestAction.Delete,C(n).closest("table")[0]).getActionList(),r=0;r<o.length;r++)if(o[r])switch(o[r].action){case Me.resultAction.Ignore:continue;case Me.resultAction.SubtractSpanCount:var s=o[r].baseCell;if(s.colSpan&&1<s.colSpan){var a=s.colSpan?parseInt(s.colSpan,10):0;2<a?(a--,s.setAttribute("colSpan",a),s.cellIndex===i&&(s.innerHTML="")):2===a&&(s.removeAttribute("colSpan"),s.cellIndex===i&&(s.innerHTML=""))}continue;case Me.resultAction.RemoveCell:Ae.remove(o[r].baseCell,!0);continue}},e.prototype.createTable=function(e,t,n){for(var i,o=[],r=0;r<e;r++)o.push("<td>"+Ae.blank+"</td>");i=o.join("");for(var s,a=[],l=0;l<t;l++)a.push("<tr>"+i+"</tr>");s=a.join("");var c=C("<table>"+s+"</table>");return n&&n.tableClassName&&c.addClass(n.tableClassName),c[0]},e.prototype.deleteTable=function(e){var t=Ae.ancestor(e.commonAncestor(),Ae.isCell);C(t).closest("table").remove()},e}(),ze=function(){function e(e){var u=this;this.context=e,this.$note=e.layoutInfo.note,this.$editor=e.layoutInfo.editor,this.$editable=e.layoutInfo.editable,this.options=e.options,this.lang=this.options.langInfo,this.editable=this.$editable[0],this.lastRange=null,this.style=new Pe,this.table=new Be,this.typing=new He(e),this.bullet=new Re,this.history=new Oe(this.$editable),this.context.memo("help.undo",this.lang.help.undo),this.context.memo("help.redo",this.lang.help.redo),this.context.memo("help.tab",this.lang.help.tab),this.context.memo("help.untab",this.lang.help.untab),this.context.memo("help.insertParagraph",this.lang.help.insertParagraph),this.context.memo("help.insertOrderedList",this.lang.help.insertOrderedList),this.context.memo("help.insertUnorderedList",this.lang.help.insertUnorderedList),this.context.memo("help.indent",this.lang.help.indent),this.context.memo("help.outdent",this.lang.help.outdent),this.context.memo("help.formatPara",this.lang.help.formatPara),this.context.memo("help.insertHorizontalRule",this.lang.help.insertHorizontalRule),this.context.memo("help.fontName",this.lang.help.fontName);for(var t=["bold","italic","underline","strikethrough","superscript","subscript","justifyLeft","justifyCenter","justifyRight","justifyFull","formatBlock","removeFormat","backColor"],n=0,i=t.length;n<i;n++)this[t[n]]=function(t){return function(e){u.beforeCommand(),document.execCommand(t,!1,e),u.afterCommand(!0)}}(t[n]),this.context.memo("help."+t[n],this.lang.help[t[n]]);for(this.fontName=this.wrapCommand(function(e){return u.fontStyling("font-family","'"+e+"'")}),this.fontSize=this.wrapCommand(function(e){return u.fontStyling("font-size",e+"px")}),n=1;n<=6;n++)this["formatH"+n]=function(e){return function(){u.formatBlock("H"+e)}}(n),this.context.memo("help.formatH"+n,this.lang.help["formatH"+n]);this.insertParagraph=this.wrapCommand(function(){u.typing.insertParagraph(u.editable)}),this.insertOrderedList=this.wrapCommand(function(){u.bullet.insertOrderedList(u.editable)}),this.insertUnorderedList=this.wrapCommand(function(){u.bullet.insertUnorderedList(u.editable)}),this.indent=this.wrapCommand(function(){u.bullet.indent(u.editable)}),this.outdent=this.wrapCommand(function(){u.bullet.outdent(u.editable)}),this.insertNode=this.wrapCommand(function(e){u.isLimited(C(e).text().length)||(u.getLastRange().insertNode(e),Ne.createFromNodeAfter(e).select(),u.setLastRange())}),this.insertText=this.wrapCommand(function(e){if(!u.isLimited(e.length)){var t=u.getLastRange().insertNode(Ae.createText(e));Ne.create(t,Ae.nodeLength(t)).select(),u.setLastRange()}}),this.pasteHTML=this.wrapCommand(function(e){if(!u.isLimited(e.length)){e=u.context.
12invoke("codeview.purify",e);var t=u.getLastRange().pasteHTML(e);Ne.createFromNodeAfter(ve.last(t)).select(),u.setLastRange()}}),this.formatBlock=this.wrapCommand(function(e,t){var n=u.options.callbacks.onApplyCustomStyle;n?n.call(u,t,u.context,u.onFormatBlock):u.onFormatBlock(e,t)}),this.insertHorizontalRule=this.wrapCommand(function(){var e=u.getLastRange().insertNode(Ae.create("HR"));e.nextSibling&&(Ne.create(e.nextSibling,0).normalize().select(),u.setLastRange())}),this.lineHeight=this.wrapCommand(function(e){u.style.stylePara(u.getLastRange(),{lineHeight:e})}),this.createLink=this.wrapCommand(function(e){var n=e.url,t=e.text,i=e.isNewWindow,o=e.range||u.getLastRange(),r=t.length-o.toString().length;if(!(0<r&&u.isLimited(r))){var s=o.toString()!==t;"string"==typeof n&&(n=n.trim()),n=u.options.onCreateLink?u.options.onCreateLink(n):/^([A-Za-z][A-Za-z0-9+-.]*\:|#|\/)/.test(n)?n:"http://"+n;var a=[];if(s){var l=(o=o.deleteContents()).insertNode(C("<A>"+t+"</A>")[0]);a.push(l)}else a=u.style.styleNodes(o,{nodeName:"A",expandClosestSibling:!0,onlyPartialContains:!0});C.each(a,function(e,t){C(t).attr("href",n),i?C(t).attr("target","_blank"):C(t).removeAttr("target")});var c=Ne.createFromNodeBefore(ve.head(a)).getStartPoint(),d=Ne.createFromNodeAfter(ve.last(a)).getEndPoint();Ne.create(c.node,c.offset,d.node,d.offset).select(),u.setLastRange()}}),this.color=this.wrapCommand(function(e){var t=e.foreColor,n=e.backColor;t&&document.execCommand("foreColor",!1,t),n&&document.execCommand("backColor",!1,n)}),this.foreColor=this.wrapCommand(function(e){document.execCommand("styleWithCSS",!1,!0),document.execCommand("foreColor",!1,e)}),this.insertTable=this.wrapCommand(function(e){var t=e.split("x");u.getLastRange().deleteContents().insertNode(u.table.createTable(t[0],t[1],u.options))}),this.removeMedia=this.wrapCommand(function(){var e=C(u.restoreTarget()).parent();e.parent("figure").length?e.parent("figure").remove():e=C(u.restoreTarget()).detach(),u.context.triggerEvent("media.delete",e,u.$editable)}),this.floatMe=this.wrapCommand(function(e){var t=C(u.restoreTarget());t.toggleClass("note-float-left","left"===e),t.toggleClass("note-float-right","right"===e),t.css("float","none"===e?"":e)}),this.resize=this.wrapCommand(function(e){var t=C(u.restoreTarget());0===(e=parseFloat(e))?t.css("width",""):t.css({width:100*e+"%",height:""})})}return e.prototype.initialize=function(){var t=this;this.$editable.on("keydown",function(e){if(e.keyCode===Le.code.ENTER&&t.context.triggerEvent("enter",e),t.context.triggerEvent("keydown",e),e.isDefaultPrevented()||(t.options.shortcuts?t.handleKeyMap(e):t.preventDefaultEditableShortCuts(e)),t.isLimited(1,e))return!1}).on("keyup",function(e){t.setLastRange(),t.context.triggerEvent("keyup",e)}).on("focus",function(e){t.setLastRange(),t.context.triggerEvent("focus",e)}).on("blur",function(e){t.context.triggerEvent("blur",e)}).on("mousedown",function(e){t.context.triggerEvent("mousedown",e)}).on("mouseup",function(e){t.setLastRange(),t.context.triggerEvent("mouseup",e)}).on("scroll",function(e){t.context.triggerEvent("scroll",e)}).on("paste",function(e){t.setLastRange(),t.context.triggerEvent("paste",e)}),this.$editable.attr("spellcheck",this.options.spellCheck),this.$editable.html(Ae.html(this.$note)||Ae.emptyPara),this.$editable.on(fe.inputEventName,me.debounce(function(){t.context.triggerEvent("change",t.$editable.html(),t.$editable)},10)),this.$editor.on("focusin",function(e){t.context.triggerEvent("focusin",e)}).on("focusout",function(e){t.context.triggerEvent("focusout",e)}),this.options.airMode||(this.options.width&&this.$editor.outerWidth(this.options.width),this.options.height&&this.$editable.outerHeight(this.options.height),this.options.maxHeight&&this.$editable.css("max-height",this.options.maxHeight),this.options.minHeight&&this.$editable.css("min-height",this.options.minHeight)),this.history.recordUndo(),this.setLastRange()},e.prototype.destroy=function(){this.$editable.off()},e.prototype.handleKeyMap=function(e){var t=this.options.keyMap[fe.isMac?"mac":"pc"],n=[];e.metaKey&&n.push("CMD"),e.ctrlKey&&!e.altKey&&n.push("CTRL"),e.shiftKey&&n.push("SHIFT");var i=Le.nameFromCode[e.keyCode];i&&n.push(i);var o=t[n.join("+")];
12o?!1!==this.context.invoke(o)&&e.preventDefault():Le.isEdit(e.keyCode)&&this.afterCommand()},e.prototype.preventDefaultEditableShortCuts=function(e){(e.ctrlKey||e.metaKey)&&ve.contains([66,73,85],e.keyCode)&&e.preventDefault()},e.prototype.isLimited=function(e,t){return e=e||0,(void 0===t||!(Le.isMove(t.keyCode)||t.ctrlKey||t.metaKey||ve.contains([Le.code.BACKSPACE,Le.code.DELETE],t.keyCode)))&&0<this.options.maxTextLength&&this.$editable.text().length+e>=this.options.maxTextLength},e.prototype.createRange=function(){return this.focus(),this.setLastRange(),this.getLastRange()},e.prototype.setLastRange=function(){this.lastRange=Ne.create(this.editable)},e.prototype.getLastRange=function(){return this.lastRange||this.setLastRange(),this.lastRange},e.prototype.saveRange=function(e){e&&this.getLastRange().collapse().select()},e.prototype.restoreRange=function(){this.lastRange&&(this.lastRange.select(),this.focus())},e.prototype.saveTarget=function(e){this.$editable.data("target",e)},e.prototype.clearTarget=function(){this.$editable.removeData("target")},e.prototype.restoreTarget=function(){return this.$editable.data("target")},e.prototype.currentStyle=function(){var e=Ne.create();return e&&(e=e.normalize()),e?this.style.current(e):this.style.fromNode(this.$editable)},e.prototype.styleFromNode=function(e){return this.style.fromNode(e)},e.prototype.undo=function(){this.context.triggerEvent("before.command",this.$editable.html()),this.history.undo(),this.context.triggerEvent("change",this.$editable.html(),this.$editable)},e.prototype.commit=function(){this.context.triggerEvent("before.command",this.$editable.html()),this.history.commit(),this.context.triggerEvent("change",this.$editable.html(),this.$editable)},e.prototype.redo=function(){this.context.triggerEvent("before.command",this.$editable.html()),this.history.redo(),this.context.triggerEvent("change",this.$editable.html(),this.$editable)},e.prototype.beforeCommand=function(){this.context.triggerEvent("before.command",this.$editable.html()),this.focus()},e.prototype.afterCommand=function(e){this.normalizeContent(),this.history.recordUndo(),e||this.context.triggerEvent("change",this.$editable.html(),this.$editable)},e.prototype.tab=function(){var e=this.getLastRange();if(e.isCollapsed()&&e.isOnCell())this.table.tab(e);else{if(0===this.options.tabSize)return!1;this.isLimited(this.options.tabSize)||(this.beforeCommand(),this.typing.insertTab(e,this.options.tabSize),this.afterCommand())}},e.prototype.untab=function(){var e=this.getLastRange();if(e.isCollapsed()&&e.isOnCell())this.table.tab(e,!0);else if(0===this.options.tabSize)return!1},e.prototype.wrapCommand=function(e){return function(){this.beforeCommand(),e.apply(this,arguments),this.afterCommand()}},e.prototype.insertImage=function(e,t){var n,i=this;return(n=e,C.Deferred(function(e){var t=C("<img>");t.one("load",function(){t.off("error abort"),e.resolve(t)}).one("error abort",function(){t.off("load").detach(),e.reject(t)}).css({display:"none"}).appendTo(document.body).attr("src",n)}).promise()).then(function(e){i.beforeCommand(),"function"==typeof t?t(e):("string"==typeof t&&e.attr("data-filename",t),e.css("width",Math.min(i.$editable.width(),e.width()))),e.show(),Ne.create(i.editable).insertNode(e[0]),Ne.createFromNodeAfter(e[0]).select(),i.setLastRange(),i.afterCommand()}).fail(function(e){i.context.triggerEvent("image.upload.error",e)})},e.prototype.insertImagesAsDataURL=function(e){var o=this;C.each(e,function(e,t){var i,n=t.name;o.options.maximumImageFileSize&&o.options.maximumImageFileSize<t.size?o.context.triggerEvent("image.upload.error",o.lang.image.maximumFileSizeError):(i=t,C.Deferred(function(n){C.extend(new FileReader,{onload:function(e){var t=e.target.result;n.resolve(t)},onerror:function(e){n.reject(e)}}).readAsDataURL(i)}).promise()).then(function(e){return o.insertImage(e,n)}).fail(function(){o.context.triggerEvent("image.upload.error")})})},e.prototype.insertImagesOrCallback=function(e){this.options.callbacks.onImageUpload?this.context.triggerEvent("image.upload",e):this.insertImagesAsDataURL(e)},e.prototype.getSelectedText=function(){var e=this.getLastRange();return e.isOnAnchor()&&(e=Ne.createFromNode(Ae.ancestor(e.sc,Ae.isAnchor))),e.toString()},e.prototype.onFormatBlock=function(e,t){if(document.execCommand("FormatBlock",!1,fe.isMSIE?"<"+e+">":e),t&&t.length&&(t[0].tagName.toUpperCase()!==e.toUpperCase()&&(t=t.find(e)),t&&t.length)){var n=t[0].className||"";if(n){var i=this.createRange();C([i.sc,i.ec]).closest(e).addClass(n)}}},e.prototype.formatPara=function(){this.formatBlock("P")},e.prototype.fontStyling=function(e,t){var n=this.getLastRange();if(n){var i=this.style.styleNodes(n);if(C(i).css(e,t),n.isCollapsed()){var o=ve.head(i);o&&!Ae.nodeLength(o)&&(o.innerHTML=Ae.ZERO_WIDTH_NBSP_CHAR,Ne.createFromNodeAfter(o.firstChild).select(),this.setLastRange(),this.$editable.data("bogus",o))}}},e.prototype.unlink=function(){var e=this.getLastRange();if(e.isOnAnchor()){var t=Ae.ancestor(e.sc,Ae.isAnchor);(e=Ne.createFromNode(t)).select(),this.setLastRange(),this.beforeCommand(),document.execCommand("unlink"),this.afterCommand()}},e.prototype.getLinkInfo=function(){var e=this.getLastRange().expand(Ae.isAnchor),t=C(ve.head(e.n
12odes(Ae.isAnchor))),n={range:e,text:e.toString(),url:t.length?t.attr("href"):""};return t.length&&(n.isNewWindow="_blank"===t.attr("target")),n},e.prototype.addRow=function(e){var t=this.getLastRange(this.$editable);t.isCollapsed()&&t.isOnCell()&&(this.beforeCommand(),this.table.addRow(t,e),this.afterCommand())},e.prototype.addCol=function(e){var t=this.getLastRange(this.$editable);t.isCollapsed()&&t.isOnCell()&&(this.beforeCommand(),this.table.addCol(t,e),this.afterCommand())},e.prototype.deleteRow=function(){var e=this.getLastRange(this.$editable);e.isCollapsed()&&e.isOnCell()&&(this.beforeCommand(),this.table.deleteRow(e),this.afterCommand())},e.prototype.deleteCol=function(){var e=this.getLastRange(this.$editable);e.isCollapsed()&&e.isOnCell()&&(this.beforeCommand(),this.table.deleteCol(e),this.afterCommand())},e.prototype.deleteTable=function(){var e=this.getLastRange(this.$editable);e.isCollapsed()&&e.isOnCell()&&(this.beforeCommand(),this.table.deleteTable(e),this.afterCommand())},e.prototype.resizeTo=function(e,t,n){var i;if(n){var o=e.y/e.x,r=t.data("ratio");i={width:o<r?e.x:e.y/r,height:o<r?e.x*r:e.y}}else i={width:e.x,height:e.y};t.css(i)},e.prototype.hasFocus=function(){return this.$editable.is(":focus")},e.prototype.focus=function(){this.hasFocus()||this.$editable.focus()},e.prototype.isEmpty=function(){return Ae.isEmpty(this.$editable[0])||Ae.emptyPara===this.$editable.html()},e.prototype.empty=function(){this.context.invoke("code",Ae.emptyPara)},e.prototype.normalizeContent=function(){this.$editable[0].normalize()},e}(),We=function(){function e(e){this.context=e,this.$editable=e.layoutInfo.editable}return e.prototype.initialize=function(){this.$editable.on("paste",this.pasteByEvent.bind(this))},e.prototype.pasteByEvent=function(e){var t=e.originalEvent.clipboardData;if(t&&t.items&&t.items.length){var n=1<t.items.length?t.items[1]:ve.head(t.items);"file"===n.kind&&-1!==n.type.indexOf("image/")&&this.context.invoke("editor.insertImagesOrCallback",[n.getAsFile()]),this.context.invoke("editor.afterCommand")}},e}(),qe=function(){function e(e){this.context=e,this.$eventListener=C(document),this.$editor=e.layoutInfo.editor,this.$editable=e.layoutInfo.editable,this.options=e.options,this.lang=this.options.langInfo,this.documentEventHandlers={},this.$dropzone=C(['<div class="note-dropzone">','  <div class="note-dropzone-message"/>',"</div>"].join("")).prependTo(this.$editor)}return e.prototype.initialize=function(){this.options.disableDragAndDrop?(this.documentEventHandlers.onDrop=function(e){e.preventDefault()},this.$eventListener=this.$dropzone,this.$eventListener.on("drop",this.documentEventHandlers.onDrop)):this.attachDragAndDropEvent()},e.prototype.attachDragAndDropEvent=function(){var o=this,i=C(),r=this.$dropzone.find(".note-dropzone-message");this.documentEventHandlers.onDragenter=function(e){var t=o.context.invoke("codeview.isActivated"),n=0<o.$editor.width()&&0<o.$editor.height();t||i.length||!n||(o.$editor.addClass("dragover"),o.$dropzone.width(o.$editor.width()),o.$dropzone.height(o.$editor.height()),r.text(o.lang.image.dragImageHere)),i=i.add(e.target)},this.documentEventHandlers.onDragleave=function(e){(i=i.not(e.target)).length||o.$editor.removeClass("dragover")},this.documentEventHandlers.onDrop=function(){i=C(),o.$editor.removeClass("dragover")},this.$eventListener.on("dragenter",this.documentEventHandlers.onDragenter).on("dragleave",this.documentEventHandlers.onDragleave).on("drop",this.documentEventHandlers.onDrop),this.$dropzone.on("dragenter",function(){o.$dropzone.addClass("hover"),r.text(o.lang.image.dropImage)}).on("dragleave",function(){o.$dropzone.removeClass("hover"),r.text(o.lang.image.dragImageHere)}),this.$dropzone.on("drop",function(e){var i=e.originalEvent.dataTransfer;e.preventDefault(),i&&i.files&&i.files.length?(o.$editable.focus(),o.context.invoke("editor.insertImagesOrCallback",i.files)):C.each(i.types,function(e,t){var n=i.getData(t);-1<t.toLowerCase().indexOf("text")?o.context.invoke("editor.pasteHTML",n):C(n).each(function(e,t){o.context.invoke("editor.insertNode",t)})})}).on("dragover",!1)},e.prototype.destroy=function(){var t=this;
12Object.keys(this.documentEventHandlers).forEach(function(e){t.$eventListener.off(e.substr(2).toLowerCase(),t.documentEventHandlers[e])}),this.documentEventHandlers={}},e}();fe.hasCodeMirror&&(Fe=window.CodeMirror);var Ue=function(){function e(e){this.context=e,this.$editor=e.layoutInfo.editor,this.$editable=e.layoutInfo.editable,this.$codable=e.layoutInfo.codable,this.options=e.options}return e.prototype.sync=function(){this.isActivated()&&fe.hasCodeMirror&&this.$codable.data("cmEditor").save()},e.prototype.isActivated=function(){return this.$editor.hasClass("codeview")},e.prototype.toggle=function(){this.isActivated()?this.deactivate():this.activate(),this.context.triggerEvent("codeview.toggled")},e.prototype.purify=function(e){if(this.options.codeviewFilter&&(e=e.replace(this.options.codeviewFilterRegex,""),this.options.codeviewIframeFilter)){var o=this.options.codeviewIframeWhitelistSrc.concat(this.options.codeviewIframeWhitelistSrcBase);e=e.replace(/(<iframe.*?>.*?(?:<\/iframe>)?)/gi,function(e){if(/<.+src(?==?('|"|\s)?)[\s\S]+src(?=('|"|\s)?)[^>]*?>/i.test(e))return"";for(var t=0,n=o;t<n.length;t++){var i=n[t];if(new RegExp('src="(https?:)?//'+i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+'/(.+)"').test(e))return e}return""})}return e},e.prototype.activate=function(){var t=this;if(this.$codable.val(Ae.html(this.$editable,this.options.prettifyHtml)),this.$codable.height(this.$editable.height()),this.context.invoke("toolbar.updateCodeview",!0),this.$editor.addClass("codeview"),this.$codable.focus(),fe.hasCodeMirror){var n=Fe.fromTextArea(this.$codable[0],this.options.codemirror);if(this.options.codemirror.tern){var i=new Fe.TernServer(this.options.codemirror.tern);n.ternServer=i,n.on("cursorActivity",function(e){i.updateArgHints(e)})}n.on("blur",function(e){t.context.triggerEvent("blur.codeview",n.getValue(),e)}),n.on("change",function(){t.context.triggerEvent("change.codeview",n.getValue(),n)}),n.setSize(null,this.$editable.outerHeight()),this.$codable.data("cmEditor",n)}else this.$codable.on("blur",function(e){t.context.triggerEvent("blur.codeview",t.$codable.val(),e)}),this.$codable.on("input",function(){t.context.triggerEvent("change.codeview",t.$codable.val(),t.$codable)})},e.prototype.deactivate=function(){if(fe.hasCodeMirror){var e=this.$codable.data("cmEditor");this.$codable.val(e.getValue()),e.toTextArea()}var t=this.purify(Ae.value(this.$codable,this.options.prettifyHtml)||Ae.emptyPara),n=this.$editable.html()!==t;this.$editable.html(t),this.$editable.height(this.options.height?this.$codable.height():"auto"),this.$editor.removeClass("codeview"),n&&this.context.triggerEvent("change",this.$editable.html(),this.$editable),this.$editable.focus(),this.context.invoke("toolbar.updateCodeview",!1)},e.prototype.destroy=function(){this.isActivated()&&this.deactivate()},e}(),Ve=function(){function e(e){this.$document=C(document),this.$statusbar=e.layoutInfo.statusbar,this.$editable=e.layoutInfo.editable,this.options=e.options}return e.prototype.initialize=function(){var i=this;this.options.airMode||this.options.disableResizeEditor?this.destroy():this.$statusbar.on("mousedown",function(e){e.preventDefault(),e.stopPropagation();var n=i.$editable.offset().top-i.$document.scrollTop(),t=function(e){var t=e.clientY-(n+24);t=0<i.options.minheight?Math.max(t,i.options.minheight):t,t=0<i.options.maxHeight?Math.min(t,i.options.maxHeight):t,i.$editable.height(t)};i.$document.on("mousemove",t).one("mouseup",function(){i.$document.off("mousemove",t)})})},e.prototype.destroy=function(){this.$statusbar.off(),this.$statusbar.addClass("locked")},e}(),Ge=function(){function e(e){var t=this;this.context=e,this.$editor=e.layoutInfo.editor,this.$toolbar=e.layoutInfo.toolbar,this.$editable=e.layoutInfo.editable,this.$codable=e.layoutInfo.codable,this.$window=C(window),this.$scrollbar=C("html, body"),this.onResize=function(){t.resizeTo({h:t.$window.height()-t.$toolbar.outerHeight()})}}return e.prototype.resizeTo=function(e){this.$editable.css("height",e.h),this.$codable.css("height",e.h),this.$codable.data("cmeditor")&&this.$codable.data("cmeditor").setsize(null,e.h)},e.prototype.toggle=function(){this.$editor.toggleClass("fullscreen"),this.isFullscreen()?(this.$editable.data("orgHeight",this.$editable.css("height")),this.$editable.data("orgMaxHeight",this.$editable.css("maxHeight")),this.$editable.css("maxHeight",""),this.$window.on("resize",this.onResize).trigger("resize"),this.$scrollbar.css("overflow","hidden")):(this.$window.off("resize",this.onResize),this.resizeTo({h:this.$editable.data("orgHeight")}),this.$editable.css("maxHeight",this.$editable.css("orgMaxHeight")),this.$scrollbar.css("overflow","visible")),this.context.
12invoke("toolbar.updateFullscreen",this.isFullscreen())},e.prototype.isFullscreen=function(){return this.$editor.hasClass("fullscreen")},e}(),Ke=function(){function e(e){var n=this;this.context=e,this.$document=C(document),this.$editingArea=e.layoutInfo.editingArea,this.options=e.options,this.lang=this.options.langInfo,this.events={"summernote.mousedown":function(e,t){n.update(t.target,t)&&t.preventDefault()},"summernote.keyup summernote.scroll summernote.change summernote.dialog.shown":function(){n.update()},"summernote.disable":function(){n.hide()},"summernote.codeview.toggled":function(){n.update()}}}return e.prototype.initialize=function(){var r=this;this.$handle=C(['<div class="note-handle">','<div class="note-control-selection">','<div class="note-control-selection-bg"></div>','<div class="note-control-holder note-control-nw"></div>','<div class="note-control-holder note-control-ne"></div>','<div class="note-control-holder note-control-sw"></div>','<div class="',this.options.disableResizeImage?"note-control-holder":"note-control-sizing",' note-control-se"></div>',this.options.disableResizeImage?"":'<div class="note-control-selection-info"></div>',"</div>","</div>"].join("")).prependTo(this.$editingArea),this.$handle.on("mousedown",function(e){if(Ae.isControlSizing(e.target)){e.preventDefault(),e.stopPropagation();var t=r.$handle.find(".note-control-selection").data("target"),n=t.offset(),i=r.$document.scrollTop(),o=function(e){r.context.invoke("editor.resizeTo",{x:e.clientX-n.left,y:e.clientY-(n.top-i)},t,!e.shiftKey),r.update(t[0])};r.$document.on("mousemove",o).one("mouseup",function(e){e.preventDefault(),r.$document.off("mousemove",o),r.context.
12invoke("editor.afterCommand")}),t.data("ratio")||t.data("ratio",t.height()/t.width())}}),this.$handle.on("wheel",function(e){e.preventDefault(),r.update()})},e.prototype.destroy=function(){this.$handle.remove()},e.prototype.update=function(e,t){if(this.context.isDisabled())return!1;var n=Ae.isImg(e),i=this.$handle.find(".note-control-selection");if(this.context.invoke("imagePopover.update",e,t),n){var o=C(e),r=o.position(),s={left:r.left+parseInt(o.css("marginLeft"),10),top:r.top+parseInt(o.css("marginTop"),10)},a={w:o.outerWidth(!1),h:o.outerHeight(!1)};i.css({display:"block",left:s.left,top:s.top,width:a.w,height:a.h}).data("target",o);var l=new Image;l.src=o.attr("src");var c=a.w+"x"+a.h+" ("+this.lang.image.original+": "+l.width+"x"+l.height+")";i.find(".note-control-selection-info").text(c),this.context.invoke("editor.saveTarget",e)}else this.hide();return n},e.prototype.hide=function(){this.context.invoke("editor.clearTarget"),this.$handle.children().hide()},e}(),Qe=/^([A-Za-z][A-Za-z0-9+-.]*\:[\/]{2}|mailto:[A-Z0-9._%+-]+@)?(www\.)?(.+)$/i,Ye=function(){function e(e){var n=this;this.context=e,this.events={"summernote.keyup":function(e,t){t.isDefaultPrevented()||n.handleKeyup(t)},"summernote.keydown":function(e,t){n.handleKeydown(t)}}}return e.prototype.initialize=function(){this.lastWordRange=null},e.prototype.destroy=function(){this.lastWordRange=null},e.prototype.replace=function(){if(this.lastWordRange){var e=this.lastWordRange.toString(),t=e.match(Qe);if(t&&(t[1]||t[2])){var n=t[1]?e:"http://"+e,i=C("<a />").html(e).attr("href",n)[0];this.context.options.linkTargetBlank&&C(i).attr("target","_blank"),this.lastWordRange.insertNode(i),this.lastWordRange=null,this.context.invoke("editor.focus")}}},e.prototype.handleKeydown=function(e){if(ve.contains([Le.code.ENTER,Le.code.SPACE],e.keyCode)){var t=this.context.invoke("editor.createRange").getWordRange();this.lastWordRange=t}},e.prototype.handleKeyup=function(e){ve.contains([Le.code.ENTER,Le.code.SPACE],e.keyCode)&&this.replace()},e}(),Xe=function(){function e(e){var t=this;this.$note=e.layoutInfo.note,this.events={"summernote.change":function(){t.$note.val(e.invoke("code"))}}}return e.prototype.shouldInitialize=function(){return Ae.isTextarea(this.$note[0])},e}(),Je=function(){function e(e){var n=this;this.context=e,this.options=e.options.replace||{},this.keys=[Le.code.ENTER,Le.code.SPACE,Le.code.PERIOD,Le.code.COMMA,Le.code.SEMICOLON,Le.code.SLASH],this.previousKeydownCode=null,this.events={"summernote.keyup":function(e,t){t.isDefaultPrevented()||n.handleKeyup(t)},"summernote.keydown":function(e,t){n.handleKeydown(t)}}}return e.prototype.shouldInitialize=function(){return!!this.options.match},e.prototype.initialize=function(){this.lastWord=null},e.prototype.destroy=function(){this.lastWord=null},e.prototype.replace=function(){if(this.lastWord){var n=this,e=this.lastWord.toString();this.options.match(e,function(e){if(e){var t="";if("string"==typeof e?t=Ae.createText(e):e instanceof jQuery?t=e[0]:e instanceof Node&&(t=e),!t)return;n.lastWord.insertNode(t),n.lastWord=null,n.context.invoke("editor.focus")}})}},e.prototype.handleKeydown=function(e){if(this.previousKeydownCode&&ve.contains(this.keys,this.previousKeydownCode))this.previousKeydownCode=e.keyCode;else{if(ve.contains(this.keys,e.keyCode)){var t=this.context.invoke(
13"editor.createRange").getWordRange();this.lastWord=t}this.previousKeydownCode=e.keyCode}},e.prototype.handleKeyup=function(e){ve.contains(this.keys,e.keyCode)&&this.replace()},e}(),Ze=function(){function e(e){var t=this;this.context=e,this.$editingArea=e.layoutInfo.editingArea,this.options=e.options,this.events={"summernote.init summernote.change":function(){t.update()},"summernote.codeview.toggled":function(){t.update()}}}return e.prototype.shouldInitialize=function(){return!!this.options.placeholder},e.prototype.initialize=function(){var e=this;this.$placeholder=C('<div class="note-placeholder">'),this.$placeholder.on("click",function(){e.context.invoke("focus")}).html(this.options.placeholder).prependTo(this.$editingArea),this.update()},e.prototype.destroy=function(){this.$placeholder.remove()}
13,e.prototype.update=function(){var e=!this.context.invoke("codeview.isActivated")&&this.context.invoke("editor.isEmpty");this.$placeholder.toggle(e)},e}(),et=function(){function e(e){this.ui=C.summernote.ui,this.context=e,this.$toolbar=e.layoutInfo.toolbar,this.options=e.options,this.lang=this.options.langInfo,this.invertedKeyMap=me.invertObject(this.options.keyMap[fe.isMac?"mac":"pc"])}return e.prototype.representShortcut=function(e){var t=this.invertedKeyMap[e];return this.options.shortcuts&&t?(fe.isMac&&(t=t.replace("CMD","\u2318").replace("SHIFT","\u21e7"))," ("+(t=t.replace("BACKSLASH","\\").replace("SLASH","/").replace("LEFTBRACKET","[").replace("RIGHTBRACKET","]"))+")"):""},e.prototype.button=function(e){return!this.options.tooltip&&e.tooltip&&delete e.tooltip,e.container=this.options.container,this.ui.button(e)},e.prototype.initialize=function(){this.addToolbarButtons(),this.addImagePopoverButtons(),this.addLinkPopoverButtons(),this.addTablePopoverButtons(),this.fontInstalledMap={}},e.prototype.destroy=function(){delete this.fontInstalledMap},e.prototype.isFontInstalled=function(e){return this.fontInstalledMap.hasOwnProperty(e)||(this.fontInstalledMap[e]=fe.isFontInstalled(e)||ve.contains(this.options.fontNamesIgnoreCheck,e)),this.fontInstalledMap[e]},e.prototype.isFontDeservedToAdd=function(e){return""!==(e=e.toLowerCase())&&this.isFontInstalled(e)&&-1===["sans-serif","serif","monospace","cursive","fantasy"].indexOf(e)},e.prototype.colorPalette=function(p,e,n,i){var h=this;return this.ui.buttonGroup({className:"note-color "+p,children:[this.button({className:"note-current-color-button",contents:this.ui.icon(this.options.icons.font+" note-recent-color"),tooltip:e,click:function(e){var t=C(e.currentTarget);n&&i?h.context.invoke("editor.color",{backColor:t.attr("data-backColor"),foreColor:t.attr("data-foreColor")}):n?h.context.invoke("editor.color",{backColor:t.attr("data-backColor")}):i&&h.context.invoke("editor.color",{foreColor:t.attr("data-foreColor")})},callback:function(e){var t=e.find(".note-recent-color");n&&(t.css("background-color",h.options.colorButton.backColor),e.attr("data-backColor",h.options.colorButton.backColor)),i?(t.css("color",h.options.colorButton.foreColor),e.attr("data-foreColor",h.options.colorButton.foreColor)):t.css("color","transparent")}}),this.button({className:"dropdown-toggle",contents:this.ui.dropdownButtonContents("",this.options),tooltip:this.lang.color.more,data:{toggle:"dropdown"}}),this.ui.dropdown({items:(n?['<div class="note-palette">','  <div class="note-palette-title">'+this.lang.color.background+"</div>","  <div>",'    <button type="button" class="note-color-reset btn btn-light" data-event="backColor" data-value="inherit">',this.lang.color.transparent,"    </button>","  </div>",'  <div class="note-holder" data-event="backColor"/>',"  <div>",'    <button type="button" class="note-color-select btn" data-event="openPalette" data-value="backColorPicker">',this.lang.color.cpSelect,"    </button>",'    <input type="color" id="backColorPicker" class="note-btn note-color-select-btn" value="'+this.options.colorButton.backColor+'" data-event="backColorPalette">',"  </div>",'  <div class="note-holder-custom" id="backColorPalette" data-event="backColor"/>',"</div>"].join(""):"")+(i?['<div class="note-palette">','  <div class="note-palette-title">'+this.lang.color.foreground+"</div>","  <div>",'    <button type="button" class="note-color-reset btn btn-light" data-event="removeFormat" data-value="foreColor">',this.lang.color.resetToDefault,"    </button>","  </div>",'  <div class="note-holder" data-event="foreColor"/>',"  <div>",'    <button type="button" class="note-color-select btn" data-event="openPalette" data-value="foreColorPicker">',this.lang.color.cpSelect,"    </button>",'    <input type="color" id="foreColorPicker" class="note-btn note-color-select-btn" value="'+this.options.colorButton.foreColor+'" data-event="foreColorPalette">','  <div class="note-holder-custom" id="foreColorPalette" data-event="foreColor"/>',"</div>"].join(""):""),callback:function(n){n.find(".note-holder").each(function(e,t){var n=C(t);n.append(h.ui.palette({colors:h.options.colors,colorsName:h.options.colorsName,eventName:n.data("event"),container:h.options.container,tooltip:h.options.tooltip}).render())});var i=[["#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF"]];n.find(".note-holder-custom").each(function(e,t){var n=C(t);n.append(h.ui.palette({colors:i,colorsName:i,eventName:n.data("event"),container:h.options.container,tooltip:h.options.tooltip}).render())}),n.find("input[type=color]").each(function(e,t){C(t).change(function(){var e=n.find("#"+C(this).data("event")).find(".note-color-btn").first(),t=this.value.toUpperCase();e.css("background-color",t).attr("aria-label",t).attr("data-value",t).attr("data-original-title",t),e.click()})})},click:function(e){e.stopPropagation();var t=C("."+p),n=C(e.target),i=n.data("event"),o=n.attr("data-value");if("openPalette"===i){var r=t.find("#"+o),s=C(t.find("#"+r.data("event")).find(".note-color-row")[0]),a=s.find(".note-color-btn").last().detach(),l=r.val();a.css("background-color",l).attr("aria-label",l).attr("data-value",l).attr("data-original-title",l),s.prepend(a),r.click()}else if(ve.contains(["backColor","foreColor"],i)){var c="backColor"===i?"background-color":"color",d=n.closest(".
13note-color").find(".note-recent-color"),u=n.closest(".note-color").find(".note-current-color-button");d.css(c,o),u.attr("data-"+i,o),h.context.invoke("editor."+i,o)}}})]}).render()},e.prototype.addToolbarButtons=function(){var i=this;this.context.memo("button.style",function(){return i.ui.buttonGroup([i.button({className:"dropdown-toggle",contents:i.ui.dropdownButtonContents(i.ui.icon(i.options.icons.magic),i.options),tooltip:i.lang.style.style,data:{toggle:"dropdown"}}),i.ui.dropdown({className:"dropdown-style",items:i.options.styleTags,title:i.lang.style.style,template:function(e){"string"==typeof e&&(e={tag:e,title:i.lang.style.hasOwnProperty(e)?i.lang.style[e]:e});var t=e.tag,n=e.title;return"<"+t+(e.style?' style="'+e.style+'" ':"")+(e.className?' class="'+e.className+'"':"")+">"+n+"</"+t+">"},click:i.context.createInvokeHandler("editor.formatBlock")})]).render()});for(var e=function(e){var t=n.options.styleTags[e];n.context.memo("button.style."+t,function(){return i.button({className:"note-btn-style-"+t,contents:'<div data-value="'+t+'">'+t.toUpperCase()+"</div>",tooltip:i.lang.style[t],click:i.context.createInvokeHandler("editor.formatBlock")}).render()})},n=this,t=0,o=this.options.styleTags.length;t<o;t++)e(t);this.context.memo("button.bold",function(){return i.button({className:"note-btn-bold",contents:i.ui.icon(i.options.icons.bold),tooltip:i.lang.font.bold+i.representShortcut("bold"),click:i.context.createInvokeHandlerAndUpdateState("editor.bold")}).render()}),this.context.memo("button.italic",function(){return i.button({className:"note-btn-italic",contents:i.ui.icon(i.options.icons.italic),tooltip:i.lang.font.italic+i.representShortcut("italic"),click:i.context.createInvokeHandlerAndUpdateState("editor.italic")}).render()}),this.context.memo("button.underline",function(){return i.button({className:"note-btn-underline",contents:i.ui.icon(i.options.icons.underline),tooltip:i.lang.font.underline+i.representShortcut("underline"),click:i.context.createInvokeHandlerAndUpdateState("editor.underline")}).render()}),this.context.memo("button.clear",function(){return i.button({contents:i.ui.icon(i.options.icons.eraser),tooltip:i.lang.font.clear+i.representShortcut("removeFormat"),click:i.context.createInvokeHandler("editor.removeFormat")}).render()}),this.context.memo("button.strikethrough",function(){return i.button({className:"note-btn-strikethrough",contents:i.ui.icon(i.options.icons.strikethrough),tooltip:i.lang.font.strikethrough+i.representShortcut("strikethrough"),click:i.context.createInvokeHandlerAndUpdateState("editor.strikethrough")}).render()}),this.context.memo("button.superscript",function(){return i.button({className:"note-btn-superscript",contents:i.ui.icon(i.options.icons.superscript),tooltip:i.lang.font.superscript,click:i.context.createInvokeHandlerAndUpdateState("editor.superscript")}).render()}),this.context.memo("button.subscript",function(){return i.button({className:"note-btn-subscript",contents:i.ui.icon(i.options.icons.subscript),tooltip:i.lang.font.subscript,click:i.context.createInvokeHandlerAndUpdateState("editor.subscript")}).render()}),this.context.memo("button.fontname",function(){var e=i.context.invoke("editor.currentStyle");return C.each(e["font-family"].split(","),function(e,t){t=t.trim().replace(/['"]+/g,""),i.isFontDeservedToAdd(t)&&-1===i.options.fontNames.indexOf(t)&&i.options.fontNames.push(t)}),i.ui.buttonGroup([i.button({className:"dropdown-toggle",contents:i.ui.dropdownButtonContents('<span class="note-current-fontname"/>',i.options),tooltip:i.lang.font.name,data:{toggle:"dropdown"}}),i.ui.dropdownCheck({className:"dropdown-fontname",checkClassName:i.options.icons.menuCheck,items:i.options.fontNames.filter(i.isFontInstalled.bind(i)),title:i.lang.font.name,template:function(e){return"<span style=\"font-family: '"+e+"'\">"+e+"</span>"},click:i.context.createInvokeHandlerAndUpdateState("editor.fontName")})]).render()}),this.context.memo("button.fontsize",function(){return i.ui.buttonGroup([i.button({className:"dropdown-toggle",contents:i.ui.dropdownButtonContents('<span class="note-current-fontsize"/>',i.options),tooltip:i.lang.font.size,data:{toggle:"dropdown"}}),i.ui.dropdownCheck({className:"dropdown-fontsize",checkClassName:i.options.icons.menuCheck,items:i.options.fontSizes,title:i.lang.font.size,click:i.context.createInvokeHandlerAndUpdateState("editor.fontSize")})]).render()}),this.context.memo("button.color",function(){return i.colorPalette
vendor: 6,430 bytes, line 13
13("note-color-all",i.lang.color.recent,!0,!0)}),this.context.memo("button.forecolor",function(){return i.colorPalette("note-color-fore",i.lang.color.foreground,!1,!0)}),this.context.memo("button.backcolor",function(){return i.colorPalette("note-color-back",i.lang.color.background,!0,!1)}),this.context.memo("button.ul",function(){return i.button({contents:i.ui.icon(i.options.icons.unorderedlist),tooltip:i.lang.lists.unordered+i.representShortcut("insertUnorderedList"),click:i.context.createInvokeHandler("editor.insertUnorderedList")}).render()}),this.context.memo("button.ol",function(){return i.button({contents:i.ui.icon(i.options.icons.orderedlist),tooltip:i.lang.lists.ordered+i.representShortcut("insertOrderedList"),click:i.context.createInvokeHandler("editor.insertOrderedList")}).render()});var r=this.button({contents:this.ui.icon(this.options.icons.alignLeft),tooltip:this.lang.paragraph.left+this.representShortcut("justifyLeft"),click:this.context.createInvokeHandler("editor.justifyLeft")}),s=this.button({contents:this.ui.icon(this.options.icons.alignCenter),tooltip:this.lang.paragraph.center+this.representShortcut("justifyCenter"),click:this.context.createInvokeHandler("editor.justifyCenter")}),a=this.button({contents:this.ui.icon(this.options.icons.alignRight),tooltip:this.lang.paragraph.right+this.representShortcut("justifyRight"),click:this.context.createInvokeHandler("editor.justifyRight")}),l=this.button({contents:this.ui.icon(this.options.icons.alignJustify),tooltip:this.lang.paragraph.justify+this.representShortcut("justifyFull"),click:this.context.createInvokeHandler("editor.justifyFull")}),c=this.button({contents:this.ui.icon(this.options.icons.outdent),tooltip:this.lang.paragraph.outdent+this.representShortcut("outdent"),click:this.context.createInvokeHandler("editor.outdent")}),d=this.button({contents:this.ui.icon(this.options.icons.indent),tooltip:this.lang.paragraph.indent+this.representShortcut("indent"),click:this.context.createInvokeHandler("editor.indent")});this.context.memo("button.justifyLeft",me.invoke(r,"render")),this.context.memo("button.justifyCenter",me.invoke(s,"render")),this.context.memo("button.justifyRight",me.invoke(a,"render")),this.context.memo("button.justifyFull",me.invoke(l,"render")),this.context.memo("button.outdent",me.invoke(c,"render")),this.context.memo("button.indent",me.invoke(d,"render")),this.context.memo("button.paragraph",function(){return i.ui.buttonGroup([i.button({className:"dropdown-toggle",contents:i.ui.dropdownButtonContents(i.ui.icon(i.options.icons.alignLeft),i.options),tooltip:i.lang.paragraph.paragraph,data:{toggle:"dropdown"}}),i.ui.dropdown([i.ui.buttonGroup({className:"note-align",children:[r,s,a,l]}),i.ui.buttonGroup({className:"note-list",children:[c,d]})])]).render()}),this.context.memo("button.height",function(){return i.ui.buttonGroup([i.button({className:"dropdown-toggle",contents:i.ui.dropdownButtonContents(i.ui.icon(i.options.icons.textHeight),i.options),tooltip:i.lang.font.height,data:{toggle:"dropdown"}}),i.ui.dropdownCheck({items:i.options.lineHeights,checkClassName:i.options.icons.menuCheck,className:"dropdown-line-height",title:i.lang.font.height,click:i.context.createInvokeHandler("editor.lineHeight")})]).render()}),this.context.memo("button.table",function(){return i.ui.buttonGroup([i.button({className:"dropdown-toggle",contents:i.ui.dropdownButtonContents(i.ui.icon(i.options.icons.table),i.options),tooltip:i.lang.table.table,data:{toggle:"dropdown"}}),i.ui.dropdown({title:i.lang.table.table,className:"note-table",items:['<div class="note-dimension-picker">','  <div class="note-dimension-picker-mousecatcher" data-event="insertTable" data-value="1x1"/>','  <div class="note-dimension-picker-highlighted"/>','  <div class="note-dimension-picker-unhighlighted"/>',"</div>",'<div class="note-dimension-display">1 x 1</div>'].join("")})],{callback:function(e){e.find(".note-dimension-picker-mousecatcher").css({width:i.options.insertTableMaxSize.col+"em",height:i.options.insertTableMaxSize.row+"em"}).mousedown(i.context.createInvokeHandler("editor.insertTable")).on("mousemove",i.tableMoveHandler.bind(i))}}).render()}),this.context.memo("button.link",function(){return i.button({contents:i.ui.icon(i.options.icons.link),tooltip:i.lang.link.link+i.representShortcut("linkDialog.show"),click:i.context.createInvokeHandler("linkDialog.show")}).render()}),this.context.memo("button.picture",function(){return i.button({contents:i.ui.icon(i.options.icons.picture),tooltip:i.lang.image.image,click:i.context.createInvokeHandler("imageDialog.show")}).render()}),this.context.memo("button.video",function(){return i.button({contents:i.ui.icon(i.options.icons.video),tooltip:i.lang.video.video,click:i.context.createInvokeHandler("videoDialog.show")}).render()}),this.context.memo("button.hr",function(){return i.button({contents:i.ui.icon(i.options.icons.minus),tooltip:i.lang.hr.insert+i.representShortcut("insertHorizontalRule"),click:i.context.createInvokeHandler("editor.insertHorizontalRule")}).render()}),this.context.memo("button.fullscreen",function(){return i.button({className:"btn-fullscreen",contents:i.ui.icon(i.options.icons.arrowsAlt),tooltip:i.lang.options.fullscreen,click:i.context.createInvokeHandler("fullscreen.toggle")}).render()}),this.context.memo("button.codeview",function(){return i.button({className:"btn-codeview",contents:i.ui.icon(i.options.icons.code),tooltip:i.lang.options.codeview,click:i.context.createInvokeHandler("codeview.toggle")}).render()}),this.context.memo("button.redo",function(){return i.button({contents:i.ui.icon(i.options.icons.redo),tooltip:i.lang.history.redo+i.representShortcut("redo"),click:i.context.createInvokeHandler("editor.redo")}).render()}),this.context.memo("button.undo",function(){return i.button({contents:i.ui.icon(i.options.icons.undo),tooltip:i.lang.history.undo+i.representShortcut("undo"),click:i.context.createInvokeHandler("editor.undo")}).render()}),this.context.memo("button.help",function(){return i.button({contents:i.ui.icon(i.options.icons.question),tooltip:i.lang.options.help,click:i.context.createInvokeHandler("helpDialog.show")}).render()})},e.prototype.addImagePopoverButtons=function(){var e=this;this.context.memo("button.resizeFull",function(){return e.button({contents:'<span class="note-fontsize-10">100%</span>',tooltip:e.lang.image.resizeFull,click:e.context.createInvokeHandler("editor.resize","1")}
13).render()}),this.context.memo("button.resizeHalf",function(){return e.button({contents:'<span class="note-fontsize-10">50%</span>',tooltip:e.lang.image.resizeHalf,click:e.context.createInvokeHandler("editor.resize","0.5")}).render()}),this.context.memo("button.resizeQuarter",function(){return e.button({contents:'<span class="note-fontsize-10">25%</span>',tooltip:e.lang.image.resizeQuarter,click:e.context.createInvokeHandler("editor.resize","0.25")}).render()}),this.context.memo("button.resizeNone",function(){return e.button({contents:e.ui.icon(e.options.icons.rollback),tooltip:e.lang.image.resizeNone,click:e.context.createInvokeHandler("editor.resize","0")}).render()}),this.context.memo("button.floatLeft",function(){return e.button({contents:e.ui.icon(e.options.icons.floatLeft),tooltip:e.lang.image.floatLeft,click:e.context.createInvokeHandler("editor.floatMe","left")}).render()}),this.context.memo("button.floatRight",function(){return e.button({contents:e.ui.icon(e.options.icons.floatRight),tooltip:e.lang.image.floatRight,click:e.context.createInvokeHandler("editor.floatMe","right")}).render()}),this.context.memo("button.floatNone",function(){return e.button({contents:e.ui.icon(e.options.icons.rollback),tooltip:e.lang.image.floatNone,click:e.context.createInvokeHandler("editor.floatMe","none")}).render()}),this.context.memo("button.removeMedia",function(){return e.button({contents:e.ui.icon(e.options.icons.trash),tooltip:e.lang.image.remove,click:e.context.createInvokeHandler("editor.removeMedia")}).render()})},e.prototype.addLinkPopoverButtons=function(){var e=this;this.context.memo("button.linkDialogShow",function(){return e.button({contents:e.ui.icon(e.options.icons.link),tooltip:e.lang.link.edit,click:e.context.createInvokeHandler("linkDialog.show")}).render()}),this.context.memo("button.unlink",function(){return e.button({contents:e.ui.icon(e.options.icons.unlink),tooltip:e.lang.link.unlink,click:e.context.createInvokeHandler("editor.unlink")}).render()})},e.prototype.addTablePopoverButtons=function(){var e=this;this.context.memo("button.addRowUp",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.rowAbove),tooltip:e.lang.table.addRowAbove,click:e.context.createInvokeHandler("editor.addRow","top")}).render()}),this.context.memo("button.addRowDown",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.rowBelow),tooltip:e.lang.table.addRowBelow,click:e.context.createInvokeHandler("editor.addRow","bottom")}).render()}),this.context.memo("button.addColLeft",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.colBefore),tooltip:e.lang.table.addColLeft,click:e.context.createInvokeHandler("editor.addCol","left")}).render()}),this.context.memo("button.addColRight",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.colAfter),tooltip:e.lang.table.addColRight,click:e.context.createInvokeHandler("editor.addCol","right")}).render()}),this.context.memo("button.deleteRow",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.rowRemove),tooltip:e.lang.table.delRow,click:e.context.createInvokeHandler("editor.deleteRow")}).render()}),this.context.memo("button.deleteCol",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.colRemove),tooltip:e.lang.table.delCol,click:e.context.createInvokeHandler("editor.deleteCol")}).render()}),this.context.memo("button.deleteTable",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.trash),tooltip:e.lang.table.delTable,click:e.context.createInvokeHandler("editor.deleteTable")}).render()})},e.prototype.build=function(e,t){for(var n=0,i=t.length;n<i;n++){for(var o=t[n],r=Array.isArray(o)?o[0]:o,s=Array.isArray(o)?1===o.length?[o[0]]:o[1]:[o],a=this.ui.buttonGroup({className:"note-"+r}).render(),l=0,c=s.length;l<c;l++){var d=this.context.memo("button."+s[l]);d&&a.append("function"==typeof d?d():d)}a.appendTo(e)}},e.prototype.updateCurrentStyle=function(e){var i=this,t=e||this.$toolbar,n=this.context.
13invoke("editor.currentStyle");if(this.updateBtnStates(t,{".note-btn-bold":function(){return"bold"===n["font-bold"]},".note-btn-italic":function(){return"italic"===n["font-italic"]},".note-btn-underline":function(){return"underline"===n["font-underline"]},".note-btn-subscript":function(){return"subscript"===n["font-subscript"]},".note-btn-superscript":function(){return"superscript"===n["font-superscript"]},".note-btn-strikethrough":function(){return"strikethrough"===n["font-strikethrough"]}}),n["font-family"]){var o=n["font-family"].split(",").map(function(e){return e.replace(/[\'\"]/g,"").replace(/\s+$/,"").replace(/^\s+/,"")}),r=ve.find(o,this.isFontInstalled.bind(this));t.find(".dropdown-fontname a").each(function(e,t){var n=C(t),i=n.data("value")+""==r+"";n.toggleClass("checked",i)}),t.find(".note-current-fontname").text(r).css("font-family",r)}if(n["font-size"]){var s=n["font-size"];t.find(".dropdown-fontsize a").each(function(e,t){var n=C(t),i=n.data("value")+""==s+"";n.toggleClass("checked",i)}),t.find(".note-current-fontsize").text(s)}if(n["line-height"]){var a=n["line-height"];t.find(".dropdown-line-height li a").each(function(e,t){var n=C(t).data("value")+""==a+"";i.className=n?"checked":""})}},e.prototype.updateBtnStates=function(n,e){var i=this;C.each(e,function(e,t){i.ui.toggleBtnActive(n.find(e),t())})},e.prototype.tableMoveHandler=function(e){var t,n=C(e.target.parentNode),i=n.next(),o=n.find(".note-dimension-picker-mousecatcher"),r=n.find(".note-dimension-picker-highlighted"),s=n.find(".note-dimension-picker-unhighlighted");if(void 0===e.offsetX){var a=C(e.target).offset();t={x:e.pageX-a.left,y:e.pageY-a.top}}else t={x:e.offsetX,y:e.offsetY};var l=Math.ceil(t.x/18)||1,c=Math.ceil(t.y/18)||1;r.css({width:l+"em",height:c+"em"}),o.data("value",l+"x"+c),3<l&&l<this.options.insertTableMaxSize.col&&s.css({width:l+1+"em"}),3<c&&c<this.options.insertTableMaxSize.row&&s.css({height:c+1+"em"}),i.html(l+" x "+c)},e}(),tt=function(){function e(e){this.context=e,this.$window=C(window),this.$document=C(document),this.ui=C.summernote.ui,this.$note=e.layoutInfo.note,this.$editor=e.layoutInfo.editor,this.$toolbar=e.layoutInfo.toolbar,this.$editable=e.layoutInfo.editable,this.$statusbar=e.layoutInfo.statusbar,this.options=e.options,this.isFollowing=!1,this.followScroll=this.followScroll.bind(this)}return e.prototype.shouldInitialize=function(){return!this.options.airMode},e.prototype.initialize=function(){var e=this;this.options.toolbar=this.options.toolbar||[],this.options.toolbar.length?this.context.invoke("buttons.build",this.$toolbar,this.options.toolbar):this.$toolbar.hide(),this.options.toolbarContainer&&this.$toolbar.appendTo(this.options.toolbarContainer),this.changeContainer(!1),this.$note.on("summernote.keyup summernote.mouseup summernote.change",function(){e.context.invoke("buttons.updateCurrentStyle")}),this.context.invoke("buttons.updateCurrentStyle"),this.options.followingToolbar&&this.$window.on("scroll resize",this.followScroll)},e.prototype.destroy=function(){this.$toolbar.children().remove(),this.options.followingToolbar&&this.$window.off("scroll resize",this.followScroll)},e.prototype.followScroll=function(){if(this.$editor.hasClass("fullscreen"))return!1;var e=this.$editor.outerHeight(),t=this.$editor.width(),n=this.$toolbar.height(),i=this.$statusbar.height(),o=0;this.options.otherStaticBar&&(o=C(this.options.otherStaticBar).outerHeight());var r=this.$document.scrollTop(),s=this.$editor.offset().top,a=s-o,l=s+e-o-n-i;!this.isFollowing&&a<r&&r<l-n?(this.isFollowing=!0,this.$toolbar.css({position:"fixed",top:o,width:t}),this.$editable.css({marginTop:this.$toolbar.height()+5})):this.isFollowing&&(r<a||l<r)&&(this.isFollowing=!1,this.$toolbar.css({position:"relative",top:0,width:"100%"}),this.$editable.css({marginTop:""}))},e.prototype.changeContainer=function(e){e?this.$toolbar.prependTo(this.$editor):this.options.toolbarContainer&&this.$toolbar.appendTo(this.options.toolbarContainer),this.followScroll()},e.prototype.updateFullscreen=function(e){this.ui.toggleBtnActive(this.$toolbar.find(".btn-fullscreen"),e),this.changeContainer(e)},e.prototype.updateCodeview=function(e){this.ui.toggleBtnActive(this.$toolbar.find(".btn-codeview"),e),e?this.deactivate():this.activate()},e.prototype.activate=function(e){var t=this.$toolbar.find("button");e||(t=t.not(".btn-codeview")),this.ui.toggleBtn(t,!0)},e.prototype.deactivate=function(e){var t=this.$toolbar.find("button");e||(t=t.not(".btn-codeview")),this.ui.toggleBtn(t,!1)},e}(),nt=function(){function e(e){this.context=e,this.ui=C.summernote.ui,this.$body=C(document.body),this.$editor=e.layoutInfo.editor,this.options=e.options,this.lang=this.options.langInfo,e.memo("help.linkDialog.show",this.options.langInfo.help["linkDialog.show"])}return e.prototype.initialize=function(){var e=this.options.dialogsInBody?this.$body:this.$editor,t=['<div class="form-group note-form-group">','<label class="note-form-label">'+this.lang.link.textToDisplay+"</label>",'<input class="note-link-text form-control note-form-control note-input" type="text" />',"</div>",'<div class="form-group note-form-group">','<label class="note-form-label">'+this.lang.link.url+"</label>",'<input class="note-link-url form-control note-form-control note-input" type="text" value="http://" />',"</div>",this.options.disableLinkTarget?"":C("<div/>").append(this.ui.checkbox({className:"sn-checkbox-open-in-new-window",text:this.lang.link.openInNewWindow,checked:!0}).render()).html()].join(""),n='<input type="button" href="#" class="btn btn-primary note-btn note-btn-primary note-link-btn" value="'+this.lang.link.insert+'" disabled>';this.$dialog=this.ui.dialog({className:"link-dialog",title:this.lang.link.insert,fade:this.options.dialogsFade,body:t,footer
13:n}).render().appendTo(e)},e.prototype.destroy=function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()},e.prototype.bindEnterKey=function(e,t){e.on("keypress",function(e){e.keyCode===Le.code.ENTER&&(e.preventDefault(),t.trigger("click"))})},e.prototype.toggleLinkBtn=function(e,t,n){this.ui.toggleBtn(e,t.val()&&n.val())},e.prototype.showLinkDialog=function(s){var a=this;return C.Deferred(function(t){var n=a.$dialog.find(".note-link-text"),i=a.$dialog.find(".note-link-url"),o=a.$dialog.find(".note-link-btn"),r=a.$dialog.find(".sn-checkbox-open-in-new-window input[type=checkbox]");a.ui.onDialogShown(a.$dialog,function(){a.context.triggerEvent("dialog.shown"),!s.url&&me.isValidUrl(s.text)&&(s.url=s.text),n.on("input paste propertychange",function(){s.text=n.val(),a.toggleLinkBtn(o,n,i)}).val(s.text),i.on("input paste propertychange",function(){s.text||n.val(i.val()),a.toggleLinkBtn(o,n,i)}).val(s.url),fe.isSupportTouch||i.trigger("focus"),a.toggleLinkBtn(o,n,i),a.bindEnterKey(i,o),a.bindEnterKey(n,o);var e=void 0!==s.isNewWindow?s.isNewWindow:a.context.options.linkTargetBlank;r.prop("checked",e),o.one("click",function(e){e.preventDefault(),t.resolve({range:s.range,url:i.val(),text:n.val(),isNewWindow:r.is(":checked")}),a.ui.hideDialog(a.$dialog)})}),a.ui.onDialogHidden(a.$dialog,function(){n.off(),i.off(),o.off(),"pending"===t.state()&&t.reject()}),a.ui.showDialog(a.$dialog)}).promise()},e.prototype.show=function(){var t=this,e=this.context.invoke("editor.getLinkInfo");this.context.invoke("editor.saveRange"),this.showLinkDialog(e).then(function(e){t.context.
13invoke("editor.restoreRange"),t.context.invoke("editor.createLink",e)}).fail(function(){t.context.invoke("editor.restoreRange")})},e}(),it=function(){function e(e){var t=this;this.context=e,this.ui=C.summernote.ui,this.options=e.options,this.events={"summernote.keyup summernote.mouseup summernote.change summernote.scroll":function(){t.update()},"summernote.disable summernote.dialog.shown":function(){t.hide()}}}return e.prototype.shouldInitialize=function(){return!ve.isEmpty(this.options.popover.link)},e.prototype.initialize=function(){this.$popover=this.ui.popover({className:"note-link-popover",callback:function(e){e.find(".popover-content,.note-popover-content").prepend('<span><a target="_blank"></a>&nbsp;</span>')}}).render().appendTo(this.options.container);var e=this.$popover.find(".popover-content,.note-popover-content");this.context.invoke("buttons.build",e,this.options.popover.link)},e.prototype.destroy=function(){this.$popover.remove()},e.prototype.update=function(){if(this.context.invoke("editor.hasFocus")){var e=this.context.invoke("editor.getLastRange");if(e.isCollapsed()&&e.isOnAnchor()){var t=Ae.ancestor(e.sc,Ae.isAnchor),n=C(t).attr("href");this.$popover.find("a").attr("href",n).html(n);var i=Ae.posFromPlaceholder(t);this.$popover.css({display:"block",left:i.left,top:i.top})}else this.hide()}else this.hide()},e.prototype.hide=function(){this.$popover.hide()},e}(),ot=function(){function e(e){this.context=e,this.ui=C.summernote.ui,this.$body=C(document.body),this.$editor=e.layoutInfo.editor,this.options=e.options,this.lang=this.options.langInfo}return e.prototype.initialize=function(){var e=this.options.dialogsInBody?this.$body:this.$editor,t="";if(this.options.maximumImageFileSize){var n=Math.floor(Math.log(this.options.maximumImageFileSize)/Math.log(1024)),i=1*(this.options.maximumImageFileSize/Math.pow(1024,n)).toFixed(2)+" "+" KMGTP"[n]+"B";t="<small>"+this.lang.image.maximumFileSize+" : "+i+"</small>"}var o=['<div class="form-group note-form-group note-group-select-from-files">','<label class="note-form-label">'+this.lang.image.selectFromFiles+"</label>",'<input class="note-image-input form-control-file note-form-control note-input" ',' type="file" name="files" accept="image/*" multiple="multiple" />',t,"</div>",'<div class="form-group note-group-image-url" style="overflow:auto;">','<label class="note-form-label">'+this.lang.image.url+"</label>",'<input class="note-image-url form-control note-form-control note-input ',' col-md-12" type="text" />',"</div>"].join(""),r='<input type="button" href="#" class="btn btn-primary note-btn note-btn-primary note-image-btn" value="'+this.lang.image.insert+'" disabled>';this.$dialog=this.ui.dialog({title:this.lang.image.insert,fade:this.options.dialogsFade,body:o,footer:r}).render().appendTo(e)},e.prototype.destroy=function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()},e.prototype.bindEnterKey=function(e,t){e.on("keypress",function(e){e.keyCode===Le.code.ENTER&&(e.preventDefault(),t.trigger("click"))})},e.prototype.show=function(){var t=this;this.context.invoke("editor.saveRange"),this.showImageDialog().then(function(e){t.ui.hideDialog(t.$dialog),t.context.invoke("editor.restoreRange"),"string"==typeof e?t.options.callbacks.onImageLinkInsert?t.context.triggerEvent("image.link.insert",e):t.context.invoke("editor.insertImage",e):t.context.invoke("editor.insertImagesOrCallback",e)}).fail(function(){t.context.invoke("editor.restoreRange")})},e.prototype.showImageDialog=function(){var o=this;return C.Deferred(function(t){var e=o.$dialog.find(".note-image-input"),n=o.$dialog.find(".note-image-url"),i=o.$dialog.find(".note-image-btn");o.ui.onDialogShown(o.$dialog,function(){o.context.triggerEvent("dialog.shown"),e.replaceWith(e.clone().on("change",function(e){t.resolve(e.target.files||e.target.value)}).val("")),n.on("input paste propertychange",function(){o.ui.toggleBtn(i,n.val())}).val(""),fe.isSupportTouch||n.trigger("focus"),i.click(function(e){e.preventDefault(),t.resolve(n.val())}),o.bindEnterKey(n,i)}),o.ui.onDialogHidden(o.$dialog,function(){e.off(),n.off(),i.off(),"pending"===t.state()&&t.reject()}),o.ui.showDialog(o.$dialog)})},e}(),rt=function(){function e(e){var t=this
14;this.context=e,this.ui=C.summernote.ui,this.editable=e.layoutInfo.editable[0],this.options=e.options,this.events={"summernote.disable":function(){t.hide()}}}return e.prototype.shouldInitialize=function(){return!ve.isEmpty(this.options.popover.image)},e.prototype.initialize=function(){this.$popover=this.ui.popover({className:"note-image-popover"}).render().appendTo(this.options.container);var e=this.$popover.find(".popover-content,.note-popover-content");
14this.context.invoke("buttons.build",e,this.options.popover.image)},e.prototype.destroy=function(){this.$popover.remove()},e.prototype.update=function(e,t){if(Ae.isImg(e)){var n=Ae.posFromPlaceholder(e),i=Ae.posFromPlaceholder(this.editable);this.$popover.css({display:"block",left:this.options.popatmouse?t.pageX-20:n.left,top:this.options.popatmouse?t.pageY:Math.min(n.top,i.top)})}else this.hide()},e.prototype.hide=function(){this.$popover.hide()},e}(),st=function(){function e(e){var n=this;this.context=e,this.ui=C.summernote.ui,this.options=e.options,this.events={"summernote.mousedown":function(e,t){n.update(t.target)},"summernote.keyup summernote.scroll summernote.change":function(){n.update()},"summernote.disable":function(){n.hide()}}}return e.prototype.shouldInitialize=function(){return!ve.isEmpty(this.options.popover.table)},e.prototype.initialize=function(){this.$popover=this.ui.popover({className:"note-table-popover"}).render().appendTo(this.options.container);var e=this.$popover.find(".popover-content,.note-popover-content");this.context.invoke("buttons.build",e,this.options.popover.table),fe.isFF&&document.execCommand("enableInlineTableEditing",!1,!1)},e.prototype.destroy=function(){this.$popover.remove()},e.prototype.update=function(e){if(this.context.isDisabled())return!1;var t=Ae.isCell(e);if(t){var n=Ae.posFromPlaceholder(e);this.$popover.css({display:"block",left:n.left,top:n.top})}else this.hide();return t},e.prototype.hide=function(){this.$popover.hide()},e}(),at=function(){function e(e){this.context=e,this.ui=C.summernote.ui,this.$body=C(document.body),this.$editor=e.layoutInfo.editor,this.options=e.options,this.lang=this.options.langInfo}return e.prototype.initialize=function(){var e=this.options.dialogsInBody?this.$body:this.$editor,t=['<div class="form-group note-form-group row-fluid">','<label class="note-form-label">'+this.lang.video.url+' <small class="text-muted">'+this.lang.video.providers+"</small></label>",'<input class="note-video-url form-control note-form-control note-input" type="text" />',"</div>"].join(""),n='<input type="button" href="#" class="btn btn-primary note-btn note-btn-primary note-video-btn" value="'+this.lang.video.insert+'" disabled>';this.$dialog=this.ui.dialog({title:this.lang.video.insert,fade:this.options.dialogsFade,body:t,footer:n}).render().appendTo(e)},e.prototype.destroy=function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()},e.prototype.bindEnterKey=function(e,t){e.on("keypress",function(e){e.keyCode===Le.code.ENTER&&(e.preventDefault(),t.trigger("click"))})},e.prototype.createVideoNode=function(e){var t,n=e.match(/\/\/(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))([\w|-]{11})(?:(?:[\?&]t=)(\S+))?$/),i=e.match(/(?:www\.|\/\/)instagram\.com\/p\/(.[a-zA-Z0-9_-]*)/),o=e.match(/\/\/vine\.co\/v\/([a-zA-Z0-9]+)/),r=e.match(/\/\/(player\.)?vimeo\.com\/([a-z]*\/)*(\d+)[?]?.*/),s=e.match(/.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/),a=e.match(/\/\/v\.youku\.com\/v_show\/id_(\w+)=*\.html/),l=e.match(/\/\/v\.qq\.com.*?vid=(.+)/),c=e.match(/\/\/v\.qq\.com\/x?\/?(page|cover).*?\/([^\/]+)\.html\??.*/),d=e.match(/^.+.(mp4|m4v)$/),u=e.match(/^.+.(ogg|ogv)$/),p=e.match(/^.+.(webm)$/),h=e.match(/(?:www\.|\/\/)facebook\.com\/([^\/]+)\/videos\/([0-9]+)/);if(n&&11===n[1].length){var f=n[1],g=0;if(void 0!==n[2]){var m=n[2].match(/^(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?$/);if(m)for(var v=[3600,60,1],y=0,b=v.length;y<b;y++)g+=void 0!==m[y+1]?v[y]*parseInt(m[y+1],10):0}t=C("<iframe>").attr("frameborder",0).attr("src","//www.youtube.com/embed/"+f+(0<g?"?start="+g:"")).attr("width","640").attr("height","360")}else if(i&&i[0].length)t=C("<iframe>").attr("frameborder",0).attr("src","https://instagram.com/p/"+i[1]+"/embed/").attr("width","612").attr("height","710").attr("scrolling","no").attr("allowtransparency","true");else if(o&&o[0].length)t=C("<iframe>").attr("frameborder",0).attr("src",o[0]+"/embed/simple").attr("width","600").attr("height","600").attr("class","vine-embed");else if(r&&r[3].length)t=C("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("src","//player.vimeo.com/video/"+r[3]).attr("width","640").attr("height","360");else if(s&&s[2].length)t=C("<iframe>").attr("frameborder",0).attr("src","//www.dailymotion.com/embed/video/"+s[2]).attr("width","640").attr("height","360");else if(a&&a[1].length)t=C("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("height","498").attr("width","510").attr("src","//player.youku.com/embed/"+a[1]);else if(l&&l[1].length||c&&c[2].length){var w=l&&l[1].length?l[1]:c[2];t=C("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("height","310").attr("width","500").attr("src","http://v.qq.com/iframe/player.html?vid="+w+"&amp;auto=0")}else if(d||u||p)t=C("<video controls>").attr("src",e).attr("width","640").attr("height","360");else{if(!h||!h[0].length)return!1;t=C("<iframe>").attr("frameborder",0).attr("src","https://www.facebook.com/plugins/video.php?href="+encodeURIComponent(h[0])+"&show_text=0&width=560").attr("width","560").attr("height","301").attr("scrolling","no").attr("allowtransparency","true")}return t.addClass("note-video-clip"),t[0]}
14,e.prototype.show=function(){var n=this,e=this.context.invoke("editor.getSelectedText");this.context.invoke("editor.saveRange"),this.showVideoDialog(e).then(function(e){n.ui.hideDialog(n.$dialog),n.context.invoke("editor.restoreRange");var t=n.createVideoNode(e);t&&n.context.invoke("editor.insertNode",t)}).fail(function(){n.context.invoke("editor.restoreRange")})},e.prototype.showVideoDialog=function(){var i=this;return C.Deferred(function(t){var n=i.$dialog.find(".note-video-url"),e=i.$dialog.find(".note-video-btn");i.ui.onDialogShown(i.$dialog,function(){i.context.triggerEvent("dialog.shown"),n.on("input paste propertychange",function(){i.ui.toggleBtn(e,n.val())}),fe.isSupportTouch||n.trigger("focus"),e.click(function(e){e.preventDefault(),t.resolve(n.val())}),i.bindEnterKey(n,e)}),i.ui.onDialogHidden(i.$dialog,function(){n.off(),e.off(),"pending"===t.state()&&t.reject()}),i.ui.showDialog(i.$dialog)})},e}(),lt=function(){function e(e){this.context=e,this.ui=C.summernote.ui,this.$body=C(document.body),this.$editor=e.layoutInfo.editor,this.options=e.options,this.lang=this.options.langInfo}return e.prototype.initialize=function(){var e=this.options.dialogsInBody?this.$body:this.$editor,t=['<p class="text-center">','<a href="http://summernote.org/" target="_blank">Summernote 0.8.12</a> \xb7 ','<a href="https://github.com/summernote/summernote" target="_blank">Project</a> \xb7 ','<a href="https://github.com/summernote/summernote/issues" target="_blank">Issues</a>',"</p>"].join("");this.$dialog=this.ui.dialog({title:this.lang.options.help,fade:this.options.dialogsFade,body:this.createShortcutList(),footer:t,callback:function(e){e.find(".modal-body,.note-modal-body").css({"max-height":300,overflow:"scroll"})}}).render().appendTo(e)},e.prototype.destroy=function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()},e.prototype.createShortcutList=function(){var i=this,o=this.options.keyMap[fe.isMac?"mac":"pc"];return Object.keys(o).map(function(e){var t=o[e],n=C('<div><div class="help-list-item"/></div>');return n.append(C("<label><kbd>"+e+"</kdb></label>").css({width:180,"margin-right":10})).append(C("<span/>").html(i.context.memo("help."+t)||t)),n.html()}).join("")},e.prototype.showHelpDialog=function(){var t=this;return C.Deferred(function(e){t.ui.onDialogShown(t.$dialog,function(){t.context.triggerEvent("dialog.shown"),e.resolve()}),t.ui.showDialog(t.$dialog)}).promise()},e.prototype.show=function(){var e=this;this.context.invoke("editor.saveRange"),this.showHelpDialog().then(function(){e.context.invoke("editor.restoreRange")})},e}(),ct=function(){function e(e){var n=this;this.context=e,this.ui=C.summernote.ui,this.options=e.options,this.events={"summernote.keyup summernote.mouseup summernote.scroll":function(){n.update()},"summernote.disable summernote.change summernote.dialog.shown":function(){n.hide()},"summernote.focusout":function(e,t){fe.isFF||t.relatedTarget&&Ae.ancestor(t.relatedTarget,me.eq(n.$popover[0]))||n.hide()}}}return e.prototype.shouldInitialize=function(){return this.options.airMode&&!ve.isEmpty(this.options.popover.air)},e.prototype.initialize=function(){this.$popover=this.ui.popover({className:"note-air-popover"}).render().appendTo(this.options.container);var e=this.$popover.find(".popover-content");this.context.invoke("buttons.build",e,this.options.popover.air)},e.prototype.destroy=function(){this.$popover.remove()},e.prototype.update=function(){var e=this.context.invoke("editor.currentStyle");if(e.range&&!e.range.isCollapsed()){var t=ve.last(e.range.getClientRects());if(t){var n=me.rect2bnd(t);this.$popover.css({display:"block",left:Math.max(n.left+n.width/2,0)-20,top:n.top+n.height}),this.context.invoke("buttons.updateCurrentStyle",this.$popover)}}else this.hide()},e.prototype.hide=function(){this.$popover.hide()},e}(),dt=function(){function e(e){var n=this;this.context=e,this.ui=C.summernote.ui,this.$editable=e.layoutInfo.editable,this.options=e.options,this.hint=this.options.hint||[],this.direction=this.options.hintDirection||"bottom",this.hints=Array.isArray(this.hint)?this.hint:[this.hint],this.events={"summernote.keyup":function(e,t){t.isDefaultPrevented()||n.handleKeyup(t)},"summernote.keydown":function(e,t){n.handleKeydown(t)},"summernote.disable summernote.dialog.shown":function(){n.hide()}}}return e.prototype.shouldInitialize=function(){return 0<this.hints.length},e.prototype.initialize=function(){var t=this;this.lastWordRange=null,this.$popover=this.ui.popover({className:"note-hint-popover",hideArrow:!0,direction:""}).render().appendTo(this.options.container),this.$popover.hide(),this.$content=this.$popover.find(".popover-content,.note-popover-content"),this.$content.on("click",".note-hint-item",function(e){t.$content.find(".active").removeClass("active"),C(e.currentTarget).addClass("active"),t.replace()})},e.prototype.destroy=function(){this.$popover.remove()},e.prototype.selectItem=function(e){this.$content.find(".active").removeClass("active"),e.addClass("active"),this.$content[0].scrollTop=e[0].offsetTop-this.$content.innerHe
14ight()/2},e.prototype.moveDown=function(){var e=this.$content.find(".note-hint-item.active"),t=e.next();if(t.length)this.selectItem(t);else{var n=e.parent().next();n.length||(n=this.$content.find(".note-hint-group").first()),this.selectItem(n.find(".note-hint-item").first())}},e.prototype.moveUp=function(){var e=this.$content.find(".note-hint-item.active"),t=e.prev();if(t.length)this.selectItem(t);else{var n=e.parent().prev();n.length||(n=this.$content.find(".note-hint-group").last()),this.selectItem(n.find(".note-hint-item").last())}},e.prototype.replace=function(){var e=this.$content.find(".note-hint-item.active");if(e.length){var t=this.nodeFromItem(e);this.lastWordRange.insertNode(t),Ne.createFromNode(t).collapse().select(),this.lastWordRange=null,this.hide(),this.context.triggerEvent("change",this.$editable.html(),this.$editable[0]),this.context.invoke("editor.focus")}},e.prototype.nodeFromItem=function(e){var t=this.hints[e.data("index")],n=e.data("item"),i=t.content?t.content(n):n;return"string"==typeof i&&(i=Ae.createText(i)),i},e.prototype.createItemTemplates=function(n,e){var i=this.hints[n];return e.map(function(e){var t=C('<div class="note-hint-item"/>');return t.append(i.template?i.template(e):e+""),t.data({index:n,item:e}),t})},e.prototype.handleKeydown=function(e){this.$popover.is(":visible")&&(e.keyCode===Le.code.ENTER?(e.preventDefault(),this.replace()):e.keyCode===Le.code.UP?(e.preventDefault(),this.moveUp()):e.keyCode===Le.code.DOWN&&(e.preventDefault(),this.moveDown()))},e.prototype.searchKeyword=function(e,t,n){var i=this.hints[e];if(i&&i.match.test(t)&&i.search){var o=i.match.exec(t);i.search(o[1],n)}else n()},e.prototype.createGroup=function(t,e){var n=this,i=C('<div class="note-hint-group note-hint-group-'+t+'"/>');return this.searchKeyword(t,e,function(e){(e=e||[]).length&&(i.html(n.createItemTemplates(t,e)),n.show())}),i},e.prototype.handleKeyup=function(e){var n=this;if(!ve.contains([Le.code.ENTER,Le.code.UP,Le.code.DOWN],e.keyCode)){var t=this.context.invoke("editor.getLastRange").getWordRange(),i=t.toString();if(this.hints.length&&i){this.$content.empty();var o=me.rect2bnd(ve.last(t.getClientRects()));o&&(this.$popover.hide(),this.lastWordRange=t,this.hints.forEach(function(e,t){e.match.test(i)&&n.createGroup(t,i).appendTo(n.$content)}),this.$content.find(".note-hint-item:first").addClass("active"),"top"===this.direction?this.$popover.css({left:o.left,top:o.top-this.$popover.outerHeight()-5}):this.$popover.css({left:o.left,top:o.top+o.height+5}))}else this.hide()}},e.prototype.show=function(){this.$popover.show()},e.prototype.hide=function(){this.$popover.hide()},e}();C.summernote=C.extend(C.summernote,{version:"0.8.12",plugins:{},dom:Ae,range:Ne,options:{langInfo:C.summernote.lang["en-US"],modules:{editor:ze,clipboard:We,dropzone:qe,codeview:Ue,statusbar:Ve,fullscreen:Ge,handle:Ke,hintPopover:dt,autoLink:Ye,autoSync:Xe,autoReplace:Je,placeholder:Ze,buttons:et,toolbar:tt,linkDialog:nt,linkPopover:it,imageDialog:ot,imagePopover:rt,tablePopover:st,videoDialog:at,helpDialog:lt,airPopover:ct},buttons:{},lang:"en-US",followingToolbar:!1,otherStaticBar:"",toolbar:[["style",["style"]],["font",["bold","underline","clear"]],["fontname",["fontname"]],["color",["color"]],["para",["ul","ol","paragraph"]],["table",["table"]],["insert",["link","picture","video"]],["view",["fullscreen","codeview","help"]]],popatmouse:!0,popover:{image:[["resize",["resizeFull","resizeHalf","resizeQuarter","resizeNone"]],["float",["floatLeft","floatRight","floatNone"]],["remove",["removeMedia"]]],link:[["link",["linkDialogShow","unlink"]]],table:[["add",["addRowDown","addRowUp","addColLeft","addColRight"]],["delete",["deleteRow","deleteCol","deleteTable"]]],air:[["color",["color"]],["font",["bold","underline","clear"]],["para",["ul","paragraph"]],["table",["table"]],["insert",["link","picture"]]]},airMode:!1,width:null,height:null,linkTargetBlank:!0,focus:!1,tabSize:4,styleWithSpan:!0,shortcuts:!0,textareaAutoSync:!0,hintDirection:"bottom",tooltip:"auto",container:"body",maxTextLength:0,blockquoteBreakingLevel:2,spellCheck:!0,styleTags:["p","blockquote","pre","h1","h2","h3","h4","h5","h6"],fontNames:["Arial","Arial Black","Comic Sans MS","Courier New","Helvetica Neue","Helvetica","Impact","Lucida Grande","Tahoma","Times New Roman","Verdana"],fontNamesIgnoreCheck:[],fontSizes:["8","9","10","11","12","14","18","24","36"],colors:[["#000000","#424242","#636363","#9C9C94","#CEC6CE","#EFEFEF","#F7F7F7","#FFFFFF"],["#FF0000","#FF9C00","#FFFF00","#00FF00","#00FFFF","#0000FF","#9C00FF","#FF00FF"],["#F7C6CE","#FFE7CE","#FFEFC6","#D6EFD6","#CEDEE7","#CEE7F7","#D6D6E7","#E7D6DE"],["#E79C9C","#FFC69C","#FFE79C","#B5D6A5","#A5C6CE","#9CC6EF","#B5A5D6","#D6A5BD"],["#E76363","#F7AD6B","#FFD663","#94BD7B","#73A5AD","#6BADDE","#8C7BC6","#C67BA5"],["#CE0000","#E79439","#EFC631","#6BA54A","#4A7B8C","#3984C6","#634AA5","#A54A7B"],["#9C0000","#B56308","#BD9400","#397B21","#104A5A","#085294","#311873","#731842"],["#630000","#7B3900","#846300","#295218","#083139","#003163","#21104A","#4A1031"]],colorsName:[["Black","Tundora","Dove Gray","Star Dust","Pale Slate","Gallery","Alabaster","White"],["Red","Orange Peel","Yellow","Green","Cyan","Blue","Electric Violet","Magenta"],["Azalea","Karry","Egg White","Zanah","Botticelli","Tropical Blue","Mischka","Twilight"],["Tonys Pink","Peach Orange","Cream Brulee","Sprout","Casper","Perano","Cold Purple","Careys Pink"],["Mandy","Rajah","Dandelion","Olivine","Gulf Stream","Viking","Blue Marguerite","Puce"],["Guardsman Red","Fire Bush","Golden Dream","Chelsea Cucumber","Smalt Blue","Boston Blue","Butterfly Bush","Cadillac"],["Sangria","Mai Tai","Buddha Gold","Forest Green","Eden","Venice Blue","Meteorite","Claret"],["Rosewood","Cinnamon","Olive","Parsley","Tiber","Midnight Blue","Valentino","Loulou"]],colorButton:{foreColor:"#000000",backColor:"#FFFF00"},lineHeights:["1.0","1.2","1.4","1.5","1.6","1.8","2.0","3.0"],tableClassName:"table table-bordered",insertTableMaxSize:{col:10,row:10}
14,dialogsInBody:!1,dialogsFade:!1,maximumImageFileSize:null,callbacks:{onBeforeCommand:null,onBlur:null,onBlurCodeview:null,onChange:null,onChangeCodeview:null,onDialogShown:null,onEnter:null,onFocus:null,onImageLinkInsert:null,onImageUpload:null,onImageUploadError:null,onInit:null,onKeydown:null,onKeyup:null,onMousedown:null,onMouseup:null,onPaste:null,onScroll:null},codemirror:{mode:"text/html",htmlMode:!0,lineNumbers:!0},codeviewFilter:!1,codeviewFilterRegex:/<\/*(?:applet|b(?:ase|gsound|link)|embed|frame(?:set)?|ilayer|l(?:ayer|ink)|meta|object|s(?:cript|tyle)|t(?:itle|extarea)|xml)[^>]*?>/gi,codeviewIframeFilter:!0,codeviewIframeWhitelistSrc:[],codeviewIframeWhitelistSrcBase:["www.youtube.com","www.youtube-nocookie.com","www.facebook.com","vine.co","instagram.com","player.vimeo.com","www.dailymotion.com","player.youku.com","v.qq.com"],keyMap:{pc:{ENTER:"insertParagraph","CTRL+Z":"undo","CTRL+Y":"redo",TAB:"tab","SHIFT+TAB":"untab","CTRL+B":"bold","CTRL+I":"italic","CTRL+U":"underline","CTRL+SHIFT+S":"strikethrough","CTRL+BACKSLASH":"removeFormat","CTRL+SHIFT+L":"justifyLeft","CTRL+SHIFT+E":"justifyCenter","CTRL+SHIFT+R":"justifyRight","CTRL+SHIFT+J":"justifyFull","CTRL+SHIFT+NUM7":"insertUnorderedList","CTRL+SHIFT+NUM8":"insertOrderedList","CTRL+LEFTBRACKET":"outdent","CTRL+RIGHTBRACKET":"indent","CTRL+NUM0":"formatPara","CTRL+NUM1":"formatH1","CTRL+NUM2":"formatH2","CTRL+NUM3":"formatH3","CTRL+NUM4":"formatH4","CTRL+NUM5":"formatH5","CTRL+NUM6":"formatH6","CTRL+ENTER":"insertHorizontalRule","CTRL+K":"linkDialog.show"},mac:{ENTER:"insertParagraph","CMD+Z":"undo","CMD+SHIFT+Z":"redo",TAB:"tab","SHIFT+TAB":"untab","CMD+B":"bold","CMD+I":"italic","CMD+U":"underline","CMD+SHIFT+S":"strikethrough","CMD+BACKSLASH":"removeFormat","CMD+SHIFT+L":"justifyLeft","CMD+SHIFT+E":"justifyCenter","CMD+SHIFT+R":"justifyRight","CMD+SHIFT+J":"justifyFull","CMD+SHIFT+NUM7":"insertUnorderedList","CMD+SHIFT+NUM8":"insertOrderedList","CMD+LEFTBRACKET":"outdent","CMD+RIGHTBRACKET":"indent","CMD+NUM0":"formatPara","CMD+NUM1":"formatH1","CMD+NUM2":"formatH2","CMD+NUM3":"formatH3","CMD+NUM4":"formatH4","CMD+NUM5":"formatH5","CMD+NUM6":"formatH6","CMD+ENTER":"insertHorizontalRule","CMD+K":"linkDialog.show"}},icons:{align:"note-icon-align",alignCenter:"note-icon-align-center",alignJustify:"note-icon-align-justify",alignLeft:"note-icon-align-left",alignRight:"note-icon-align-right",rowBelow:"note-icon-row-below",colBefore:"note-icon-col-before",colAfter:"note-icon-col-after",rowAbove:"note-icon-row-above",rowRemove:"note-icon-row-remove",colRemove:"note-icon-col-remove",indent:"note-icon-align-indent",outdent:"note-icon-align-outdent",arrowsAlt:"note-icon-arrows-alt",bold:"note-icon-bold",caret:"note-icon-caret",circle:"note-icon-circle",close:"note-icon-close",code:"note-icon-code",eraser:"note-icon-eraser",floatLeft:"note-icon-float-left",floatRight:"note-icon-float-right",font:"note-icon-font",frame:"note-icon-frame",italic:"note-icon-italic",link:"note-icon-link",unlink:"note-icon-chain-broken",magic:"note-icon-magic",menuCheck:"note-icon-menu-check",minus:"note-icon-minus",orderedlist:"note-icon-orderedlist",pencil:"note-icon-pencil",picture:"note-icon-picture",question:"note-icon-question",redo:"note-icon-redo",rollback:"note-icon-rollback",square:"note-icon-square",strikethrough:"note-icon-strikethrough",subscript:"note-icon-subscript",superscript:"note-icon-superscript",table:"note-icon-table",textHeight:"note-icon-text-height",trash:"note-icon-trash",underline:"note-icon-underline",undo:"note-icon-undo",unorderedlist:"note-icon-unorderedlist",video:"note-icon-video"}}}),C.summernote=C.extend(C.summernote,{ui:oe}),C.summernote.options.styleTags=["p",{title:"Blockquote",tag:"blockquote",className:"blockquote",value:"blockquote"},"pre","h1","h2","h3","h4","h5","h6"]}),function(e){e.extend(e.summernote.lang,{"fr-FR":{font:{bold:"Gras",italic:"Italique",underline:"Soulign\xe9",clear:"Effacer la mise en forme",height:"Interligne",name:"Famille de police",strikethrough:"Barr\xe9",superscript:"Exposant",subscript:"Indice",size:"Taille de police"},image:{image:"Image",insert:"Ins\xe9rer une image",resizeFull:"Taille originale",resizeHalf:"Redimensionner \xe0 50 %",resizeQuarter:"Redimensionner \xe0 25 %",floatLeft:"Align\xe9 \xe0 gauche",floatRight:"Align\xe9 \xe0 droite",floatNone:"Pas d'alignement",shapeRounded:"Forme: Rectangle arrondi",shapeCircle:"Forme: Cercle",shapeThumbnail:"Forme: Vignette",shapeNone:"Forme: Aucune",dragImageHere:"Faites glisser une image ou un texte dans ce cadre",dropImage:"Lac
14hez l'image ou le texte",selectFromFiles:"Choisir un fichier",maximumFileSize:"Taille de fichier maximale",maximumFileSizeError:"Taille maximale du fichier d\xe9pass\xe9e",url:"URL de l'image",remove:"Supprimer l'image",original:"Original"},video:{video:"Vid\xe9o",videoLink:"Lien vid\xe9o",insert:"Ins\xe9rer une vid\xe9o",url:"URL de la vid\xe9o",providers:"(YouTube, Vimeo, Vine, Instagram, DailyMotion ou Youku)"},link:{link:"Lien",insert:"Ins\xe9rer un lien",unlink:"Supprimer un lien",edit:"Modifier",textToDisplay:"Texte \xe0 afficher",url:"URL du lien",openInNewWindow:"Ouvrir dans une nouvelle fen\xeatre"},table:{table:"Tableau",addRowAbove:"Ajouter une ligne au-dessus",addRowBelow:"Ajouter une ligne en dessous",addColLeft:"Ajouter une colonne \xe0 gauche",addColRight:"Ajouter une colonne \xe0 droite",delRow:"Supprimer la ligne",delCol:"Supprimer la colonne",delTable:"Supprimer le tableau"},hr:{insert:"Ins\xe9rer une ligne horizontale"},style:{style:"Style",p:"Normal",blockquote:"Citation",pre:"Code source",h1:"Titre 1",h2:"Titre 2",h3:"Titre 3",h4:"Titre 4",h5:"Titre 5",h6:"Titre 6"},lists:{unordered:"Liste \xe0 puces",ordered:"Liste num\xe9rot\xe9e"},options:{help:"Aide",fullscreen:"Plein \xe9cran",codeview:"Afficher le code HTML"},paragraph:{paragraph:"Paragraphe",outdent:"Diminuer le retrait",indent:"Augmenter le retrait",left:"Aligner \xe0 gauche",center:"Centrer",right:"Aligner \xe0 droite",justify:"Justifier"},color:{recent:"Derni\xe8re couleur s\xe9lectionn\xe9e",more:"Plus de couleurs",background:"Couleur de fond",foreground:"Couleur de police",transparent:"Transparent",setTransparent:"D\xe9finir la transparence",reset:"Restaurer",resetToDefault:"Restaurer la couleur par d\xe9faut"},shortcut:{shortcuts:"Raccourcis",close:"Fermer",textFormatting:"Mise en forme du texte",action:"Action",paragraphFormatting:"Mise en forme des paragraphes",documentStyle:"Style du document",extraKeys:"Touches suppl\xe9mentaires"},help:{insertParagraph:"Ins\xe9rer paragraphe",undo:"D\xe9faire la derni\xe8re commande",redo:"Refaire la derni\xe8re commande",tab:"Tabulation",untab:"Tabulation arri\xe8re",bold:"Mettre en caract\xe8re gras",italic:"Mettre en italique",underline:"Mettre en soulign\xe9",strikethrough:"Mettre en texte barr\xe9",removeFormat:"Nettoyer les styles",justifyLeft:"Aligner \xe0 gauche",justifyCenter:"Centrer",justifyRight:"Aligner \xe0 droite",justifyFull:"Justifier \xe0 gauche et \xe0 droite",insertUnorderedList:"Basculer liste \xe0 puces",insertOrderedList:"Basculer liste ordonn\xe9e",outdent:"Diminuer le retrait du paragraphe",indent:"Augmenter le retrait du paragraphe",formatPara:"Changer le paragraphe en cours en normal (P)",formatH1:"Changer le paragraphe en cours en ent\xeate H1",formatH2:"Changer le paragraphe en cours en ent\xeate H2",formatH3:"Changer le paragraphe en cours en ent\xeate H3",formatH4:"Changer le paragraphe en cours en ent\xeate H4",formatH5:"Changer le paragraphe en cours en ent\xeate H5",formatH6:"Changer le paragraphe en cours en ent\xeate H6",insertHorizontalRule:"Ins\xe9rer s\xe9paration horizontale","linkDialog.show":"Afficher fen\xeatre d'hyperlien"},history:{undo:"Annuler la derni\xe8re action",redo:"Restaurer la derni\xe8re action annul\xe9e"},specialChar:{specialChar:"Caract\xe8res sp\xe9ciaux",select:"Choisir des caract\xe8res sp\xe9ciaux"}}})}(jQuery),function(){var e=this;(function(){(function(){this.Turbolinks={supported:null!=window.history.pushState&&null!=window.requestAnimationFrame&&null!=window.addEventListener,visit:function(e,t){return d.controller.visit(e,t)},clearCache:function(){return d.controller.clearCache()},setProgressBarDelay:function(e){return d.controller.setProgressBarDelay(e)}}}).call(this)}).call(e);var d=e.Turbolinks;(function(){(function(){var n,i,l,e,t,o,r,s,a,c=[].slice;d.copyObject=function(e){var t,n,i;for(t in n={},e)i=e[t],n[t]=i;return n},d.closest=function(e,t){return n.call(e,t)},n=null!=(a=document.documentElement.closest)?a:function(e){var t;for(t=this;t;){if(t.nodeType===Node.ELEMENT_NODE&&i.call(t,e))return t;t=t.parentNode}},d.defer=function(e){return setTimeout(e,1)},d.throttle=function(n){var i;return i=null,function(){var e,t;return e=1<=arguments.length?c.call(arguments,0):[],null!=i?i:i=requestAnimationFrame((t=this,function(){return i=null,n.apply(t,e)}))}},d.dispatch=function(e,t){var n,i,o,r,s,a;return a=(s=null!=t?t:{}).target,n=s.cancelable,i=s.data,(o=document.createEvent("Events")).initEvent(e,!0,!0===n),o.data=null!=i?i:{},o.cancelable&&!l&&(r=o.preventDefault,o.preventDefault=function(){return this.defaultPrevented||Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),r.call(this)}),(null!=a?a:document).dispatchEvent(o),o},(s=document.createEvent("Events")).initEvent("test",!0,!0),s.preventDefault(),l=s.defaultPrevented,d.match=function(e,t){return i.call(e,t)},i=null!=(t=null!=(o=null!=(r=(e=document.documentElement).matchesSelector)?r:e.webkitMatchesSelector)?o:e.msMatchesSelector)?t:e.mozMatchesSelector,d.uuid=function(){var e,t,n;for(n="",e=t=1;t<=36;e=++t)n+=9===e||14===e||19===e||24===e?"-":15===e?"4":20===e?(Math.floor(4*Math.random())+8).toString(16):Math.floor(15*Math.random()).toString(16);return n}}).call(this),function(){d.Location=function(){function e(e){var t,n;null==e&&(e=""),(n=document.createElement("a")).href=e.toString(),this.absoluteURL=n.href,(t=n.hash.length)<2?this.requestURL=this.absoluteURL:(this.requestURL=this.absoluteURL.slice(0,-t),this.anchor=n.hash.slice(1))}var t,n,i,o;return e.wrap=function(e){return e instanceof this?e:new this(e)},e.prototype.getOrigin=function(){return this.absoluteURL.split("/",3).join("/")},e.prototype.getPath=function(){var e,t;return null!=(e=null!=(t=this.requestURL.match(/\/\/[^\/]*(\/[^?;]*)/))?t[1]:void 0)?e:"/"},e.prototype.getPathComponents=function(){return this.getPath().split("/").slice(1)},e.prototype.getLastPathComponent=function(){return this.getPathComponents().slice(-1)[0]},e.prototype.getExtension=function(){var e,t;return null!=(e=null!=(t=this.getLastPathComponent().match(/\.[^.]*$/))?t[0]:void 0)?e:""},e.prototype.isHTML=function(){return this.getExtension().match(/^(?:|\.(?:htm|html|xhtml))$/)},e.prototype.isPrefixedBy=function(e){var t;return t=n(e),this.isEqualTo(e)||o(this.absoluteURL,t)},e.prototype.isEqualTo=function(e){return this.absoluteURL===(null!=e?e.absoluteURL:void 0)},e.prototype.toCacheKey=function(){return this.requestURL},e.prototype.toJSON=function(){return this.absoluteURL},e.prototype.toString=function(){return this.absoluteURL},e.prototype.valueOf=function(){return this.absoluteURL},n=function(e){return t(e.getOrigin()+e.getPath())},t=function(e){return i(e,"/")?e:e+"/"},o=function(e,t){return e.slice(0,t.length)===t},i=function(e,t){return e.slice(-t.length)===t},e}()}.call(this),function(){var i=function(e,t){return function(){return e.apply(t,arguments)}};d.HttpRequest=function(){function e(e,t,n){this.delegate=e,this.requestCanceled=i(this.requestCanceled,this),this.requestTimedOut=i(this.requestTimedOut,this),this.requestFailed=i(this.requestFailed,this),this.requestLoaded=i(this.requestLoaded,this),this.requestProgressed=i(this.requestProgressed,this),this.url=d.Location.wrap(t).requestURL,this.referrer=d.Location.wrap(n).absoluteURL,this.createXHR()}return e.NETWORK_FAILURE=0,e.TIMEOUT_FAILURE=-1,e.timeout=60,e.prototype.send=function(){var e;return this.xhr&&!this.sent?(this.notifyApplicationBeforeRequestStart(),this.setProgress(0),this.xhr.send(),this.sent=!0,"function"==typeof(e=this.delegate).requestStarted?e.requestStarted():void 0):void 0},e.prototype.cancel=function(){return this.xhr&&this.sent?this.xhr.abort():void 0},e.prototype.requestProgressed=function(e){return e.lengthComputable?this.setProgress(e.loaded/e.total):void 0},e.prototype.requestLoaded=function(){return this.endRequest((t=this,function(){var e;return 200<=(e=t.xhr.status)&&e<300?t.delegate.requestCompletedWithResponse(t.xhr.responseText,t.xhr.getResponseHeader("Turbolinks-Location")):(t.failed=!0,t.delegate.requestFailedWithStatusCode(t.xhr.status,t.xhr.responseText))}));var t}
vendor: 7,252 bytes, lines 14-15
14,e.prototype.requestFailed=function(){return this.endRequest((e=this,function(){return e.failed=!0,e.delegate.requestFailedWithStatusCode(e.constructor.NETWORK_FAILURE)}));var e},e.prototype.requestTimedOut=function(){return this.endRequest((e=this,function(){return e.failed=!0,e.delegate.requestFailedWithStatusCode(e.constructor.TIMEOUT_FAILURE)}));var e},e.prototype.requestCanceled=function(){return this.endRequest()},e.prototype.notifyApplicationBeforeRequestStart=function(){return d.dispatch("turbolinks:request-start",{data:{url:this.url,xhr:this.xhr}})},e.prototype.notifyApplicationAfterRequestEnd=function(){return d.dispatch("turbolinks:request-end",{data:{url:this.url,xhr:this.xhr}})},e.prototype.createXHR=function(){return this.xhr=new XMLHttpRequest,this.xhr.open("GET",this.url,!0),this.xhr.timeout=1e3*this.constructor.timeout,this.xhr.setRequestHeader("Accept","text/html, application/xhtml+xml"),this.xhr.setRequestHeader("Turbolinks-Referrer",this.referrer),this.xhr.onprogress=this.requestProgressed,this.xhr.onload=this.requestLoaded,this.xhr.onerror=this.requestFailed,this.xhr.ontimeout=this.requestTimedOut,this.xhr.onabort=this.requestCanceled},e.prototype.endRequest=function(e){return this.xhr?(this.notifyApplicationAfterRequestEnd(),null!=e&&e.call(this),this.destroy()):void 0},e.prototype.setProgress=function(e){var t;return this.progress=e,"function"==typeof(t=this.delegate).requestProgressed?t.requestProgressed(this.progress):void 0},e.prototype.destroy=function(){var e;return this.setProgress(1),"function"==typeof(e=this.delegate).requestFinished&&e.requestFinished(),this.delegate=null,this.xhr=null},e}()}.call(this),function(){var n=function(e,t){return function(){return e.apply(t,arguments)}};d.ProgressBar=function(){function e(){this.trickle=n(this.trickle,this),this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement()}var t;return t=300,e.defaultCSS=".turbolinks-progress-bar {\n  position: fixed;\n  display: block;\n  top: 0;\n  left: 0;\n  height: 3px;\n  background: #0076ff;\n  z-index: 9999;\n  transition: width "+t+"ms ease-out, opacity "+t/2+"ms "+t/2+"ms ease-in;\n  transform: translate3d(0, 0, 0);\n}",e.prototype.show=function(){return this.visible?void 0:(this.visible=!0,this.installStylesheetElement(),this.installProgressElement(),this.startTrickling())},e.prototype.hide=function(){return this.visible&&!this.hiding?(this.hiding=!0,this.fadeProgressElement((e=this,function(){return e.uninstallProgressElement(),e.stopTrickling(),e.visible=!1,e.hiding=!1}))):void 0;var e},e.prototype.setValue=function(e){return this.value=e,this.refresh()},e.prototype.installStylesheetElement=function(){return document.head.insertBefore(this.stylesheetElement,document.head.firstChild)},e.prototype.installProgressElement=function(){return this.progressElement.style.width=0,this.progressElement.style.opacity=1,document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()},e.prototype.fadeProgressElement=function(e){return this.progressElement.style.opacity=0,setTimeout(e,1.5*t)},e.prototype.uninstallProgressElement=function(){return this.progressElement.parentNode?document.documentElement.removeChild(this.progressElement
15):void 0},e.prototype.startTrickling=function(){return null!=this.trickleInterval?this.trickleInterval:this.trickleInterval=setInterval(this.trickle,t)},e.prototype.stopTrickling=function(){return clearInterval(this.trickleInterval),this.trickleInterval=null},e.prototype.trickle=function(){return this.setValue(this.value+Math.random()/100)},e.prototype.refresh=function(){return requestAnimationFrame((e=this,function(){return e.progressElement.style.width=10+90*e.value+"%"}));var e},e.prototype.createStylesheetElement=function(){var e;return(e=document.createElement("style")).type="text/css",e.textContent=this.constructor.defaultCSS,e},e.prototype.createProgressElement=function(){var e;return(e=document.createElement("div")).className="turbolinks-progress-bar",e},e}()}.call(this),function(){var o=function(e,t){return function(){return e.apply(t,arguments)}};d.BrowserAdapter=function(){function e(e){this.controller=e,this.showProgressBar=o(this.showProgressBar,this),this.progressBar=new d.ProgressBar}var n,i,t;return t=d.HttpRequest,n=t.NETWORK_FAILURE,i=t.TIMEOUT_FAILURE,e.prototype.visitProposedToLocationWithAction=function(e,t){return this.controller.startVisitToLocationWithAction(e,t)},e.prototype.visitStarted=function(e){return e.issueRequest(),e.changeHistory(),e.loadCachedSnapshot()},e.prototype.visitRequestStarted=function(e){return this.progressBar.setValue(0),e.hasCachedSnapshot()||"restore"!==e.action?this.showProgressBarAfterDelay():this.showProgressBar()},e.prototype.visitRequestProgressed=function(e){return this.progressBar.setValue(e.progress)},e.prototype.visitRequestCompleted=function(e){return e.loadResponse()},e.prototype.visitRequestFailedWithStatusCode=function(e,t){switch(t){case n:case i:return this.reload();default:return e.loadResponse()}},e.prototype.visitRequestFinished=function(){return this.hideProgressBar()},e.prototype.visitCompleted=function(e){return e.followRedirect()},e.prototype.pageInvalidated=function(){return this.reload()},e.prototype.showProgressBarAfterDelay=function(){return this.progressBarTimeout=setTimeout(this.showProgressBar,this.controller.progressBarDelay)},e.prototype.showProgressBar=function(){return this.progressBar.show()},e.prototype.hideProgressBar=function(){return this.progressBar.hide(),clearTimeout(this.progressBarTimeout)},e.prototype.reload=function(){return window.location.reload()},e}()}.call(this),function(){var t=function(e,t){return function(){return e.apply(t,arguments)}};d.History=function(){function e(e){this.delegate=e,this.onPageLoad=t(this.onPageLoad,this),this.onPopState=t(this.onPopState,this)}return e.prototype.start=function(){return this.started?void 0:(addEventListener("popstate",this.onPopState,!1),addEventListener("load",this.onPageLoad,!1),this.started=!0)},e.prototype.stop=function(){return this.started?(removeEventListener("popstate",this.onPopState,!1),removeEventListener("load",this.onPageLoad,!1),this.started=!1):void 0},e.prototype.push=function(e,t){return e=d.Location.wrap(e),this.update("push",e,t)},e.prototype.replace=function(e,t){return e=d.Location.wrap(e),this.update("replace",e,t)},e.prototype.onPopState=function(e){var t,n,i,o;return this.shouldHandlePopState()&&(o=null!=(n=e.state)?n.turbolinks:void 0)?(t=d.Location.wrap(window.location),i=o.restorationIdentifier,this.delegate.historyPoppedToLocationWithRestorationIdentifier(t,i)):void 0},e.prototype.onPageLoad=function(){return d.defer((e=this,function(){return e.pageLoaded=!0}));var e},e.prototype.shouldHandlePopState=function(){return this.pageIsLoaded()},e.prototype.pageIsLoaded=function(){return this.pageLoaded||"complete"===document.readyState},e.prototype.update=function(e,t,n){var i;return i={turbolinks:{restorationIdentifier:n}},history[e+"State"](i,null,t)},e}()}.call(this),function(){d.HeadDetails=function(){function e(e){var t,n,i,o,r;for(this.elements={},n=0,o=e.length;n<o;n++)(r=e[n]).nodeType===Node.ELEMENT_NODE&&(i=r.outerHTML,(null!=(t=this.elements)[i]?t[
15i]:t[i]={type:a(r),tracked:s(r),elements:[]}).elements.push(r))}var r,t,n,s,a;return e.fromHeadElement=function(e){var t;return new this(null!=(t=null!=e?e.childNodes:void 0)?t:[])},e.prototype.hasElementWithKey=function(e){return e in this.elements},e.prototype.getTrackedElementSignature=function(){var n;return function(){var e,t;for(n in t=[],e=this.elements)e[n].tracked&&t.push(n);return t}.call(this).join("")},e.prototype.getScriptElementsNotInDetails=function(e){return this.getElementsMatchingTypeNotInDetails("script",e)},e.prototype.getStylesheetElementsNotInDetails=function(e){return this.getElementsMatchingTypeNotInDetails("stylesheet",e)},e.prototype.getElementsMatchingTypeNotInDetails=function(e,t){var n,i,o,r,s,a;for(i in s=[],o=this.elements)a=(r=o[i]).type,n=r.elements,a!==e||t.hasElementWithKey(i)||s.push(n[0]);return s},e.prototype.getProvisionalElements=function(){var e,t,n,i,o,r,s;for(t in n=[],i=this.elements)s=(o=i[t]).type,r=o.tracked,e=o.elements,null!=s||r?1<e.length&&n.push.apply(n,e.slice(1)):n.push.apply(n,e);return n},e.prototype.getMetaValue=function(e){var t;return null!=(t=this.findMetaElementByName(e))?t.getAttribute("content"):void 0},e.prototype.findMetaElementByName=function(e){var t,n,i,o;for(i in t=void 0,o=this.elements)n=o[i].elements,r(n[0],e)&&(t=n[0]);return t},a=function(e){return t(e)?"script":n(e)?"stylesheet":void 0},s=function(e){return"reload"===e.getAttribute("data-turbolinks-track")},t=function(e){return"script"===e.tagName.toLowerCase()},n=function(e){var t;return"style"===(t=e.tagName.toLowerCase())||"link"===t&&"stylesheet"===e.getAttribute("rel")},r=function(e,t){return"meta"===e.tagName.toLowerCase()&&e.getAttribute("name")===t},e}()}.call(this),function(){d.Snapshot=function(){function e(e,t){this.headDetails=e,this.bodyElement=t}return e.wrap=function(e){return e instanceof this?e:"string"==typeof e?this.fromHTMLString(e):this.fromHTMLElement(e)},e.fromHTMLString=function(e){var t;return(t=document.createElement("html")).innerHTML=e,this.fromHTMLElement(t)},e.fromHTMLElement=function(e){var t,n,i;return n=e.querySelector("head"),t=null!=(i=e.querySelector("body"))?i:document.createElement("body"),new this(d.HeadDetails.fromHeadElement(n),t)},e.prototype.clone=function(){return new this.constructor(this.headDetails,this.bodyElement.cloneNode(!0))},e.prototype.getRootLocation=function(){var e,t;return t=null!=(e=this.getSetting("root"))?e:"/",new d.Location(t)},e.prototype.getCacheControlValue=function(){return this.getSetting("cache-control")},e.prototype.getElementForAnchor=function(e){try{return this.bodyElement.querySelector("[id='"+e+"'], a[name='"+e+"']")}catch(d){}},e.prototype.getPermanentElements=function(){return this.bodyElement.querySelectorAll("[id][data-turbolinks-permanent]")},e.prototype.getPermanentElementById=function(e){return this.bodyElement.querySelector("#"+e+"[data-turbolinks-permanent]")},e.prototype.getPermanentElementsPresentInSnapshot=function(e){var t,n,i,o,r;for(r=[],n=0,i=(o=this.getPermanentElements()).length;n<i;n++)t=o[n],e.getPermanentElementById(t.id)&&r.push(t);return r},e.prototype.findFirstAutofocusableElement=function(){return this.bodyElement.querySelector("[autofocus]")},e.prototype.hasAnchor=function(e){return null!=this.getElementForAnchor(e)},e.prototype.isPreviewable=function(){return"no-preview"!==this.getCacheControlValue()},e.prototype.isCacheable=function(){return"no-cache"!==this.getCacheControlValue()},e.prototype.isVisitable=function(){return"reload"!==this.getSetting("visit-control")},e.prototype.getSetting=function(e){return this.headDetails.getMetaValue("turbolinks-"+e)},e}()}.call(this),function(){var r=[].slice;d.Renderer=function(){function e(){}var n;return e.render=function(e,t){var n,i,o;return i=e,n=t,(o=function(e,t,n){n.prototype=e.prototype;var i=new n,o=e.apply(i,t);return Object(o)===o?o:i}(this,3<=arguments.length?r.call(arguments,2):[],function(){})).delegate=i,o.render(n),o},e.prototype.renderView=function(e){return this.delegate.viewWillRender(this.newBody),e(),this.delegate.viewRendered(this.newBody)},e.prototype.invalidateView=function(){return this.delegate.viewInvalidated()},e.prototype.createScriptElement=function(e){var t;return"false"===e.getAttribute("data-turbolinks-eval")?e:((t=document.createElement("script")).textContent=e.textContent,t.async=!1,n(t,e),t)},n=function(e,t){var n,i,o,r,s,a,l;for(a=[],n=0,i=(r=t.attributes).length;n<i;n++)o=(s=r[n]).name,l=s.value,a.push(e.setAttribute(o,l));return a},e}()}.call(this),function(){var a,l,n=function(e,t){function n(){this.constructor=e}for(var i in t)o.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;d.SnapshotRenderer=function(e){function t(e,t,n){this.currentSnapshot=e,this.newSnapsh
15ot=t,this.isPreview=n,this.currentHeadDetails=this.currentSnapshot.headDetails,this.newHeadDetails=this.newSnapshot.headDetails,this.currentBody=this.currentSnapshot.bodyElement,this.newBody=this.newSnapshot.bodyElement}return n(t,e),t.prototype.render=function(e){return this.shouldRender()?(this.mergeHead(),this.renderView((t=this,function(){return t.replaceBody(),t.isPreview||t.focusFirstAutofocusableElement(),e()}))):this.invalidateView();var t},t.prototype.mergeHead=function(){return this.copyNewHeadStylesheetElements(),this.copyNewHeadScriptElements(),this.removeCurrentHeadProvisionalElements(),this.copyNewHeadProvisionalElements()},t.prototype.replaceBody=function(){var e;return e=this.relocateCurrentBodyPermanentElements(),this.activateNewBodyScriptElements(),this.assignNewBody(),this.replacePlaceholderElementsWithClonedPermanentElements(e)},t.prototype.shouldRender=function(){return this.newSnapshot.isVisitable()&&this.trackedElementsAreIdentical()},t.prototype.trackedElementsAreIdentical=function(){return this.currentHeadDetails.getTrackedElementSignature()===this.newHeadDetails.getTrackedElementSignature()},t.prototype.copyNewHeadStylesheetElements=function(){var e,t,n,i,o;for(o=[],t=0,n=(i=this.getNewHeadStylesheetElements()).length;t<n;t++)e=i[t],o.push(document.head.appendChild(e));return o},t.prototype.copyNewHeadScriptElements=function(){var e,t,n,i,o;for(o=[],t=0,n=(i=this.getNewHeadScriptElements()).length;t<n;t++)e=i[t],o.push(document.head.appendChild(this.createScriptElement(e)));return o},t.prototype.removeCurrentHeadProvisionalElements=function(){var e,t,n,i,o;for(o=[],t=0,n=(i=this.getCurrentHeadProvisionalElements()).length;t<n;t++)e=i[t],o.push(document.head.removeChild(e));return o},t.prototype.copyNewHeadProvisionalElements=function(){var e,t,n,i,o;for(o=[],t=0,n=(i=this.getNewHeadProvisionalElements()).length;t<n;t++)e=i[t],o.push(document.head.appendChild(e));return o},t.prototype.relocateCurrentBodyPermanentElements=function(){var e,t,n,i,o,r,s;for(s=[],e=0,t=(r=this.getCurrentBodyPermanentElements()).length;e<t;e++)i=r[e],o=a(i),n=this.newSnapshot.getPermanentElementById(i.id),l(i,o.element),l(n,i),s.push(o);return s},t.prototype.replacePlaceholderElementsWithClonedPermanentElements=function(e){var t,n,i,o,r,s;for(s=[],i=0,o=e.length;i<o;i++)n=(r=e[i]).element,t=r.permanentElement.cloneNode(!0),s.push(l(n,t));return s},t.prototype.activateNewBodyScriptElements=function(){var e,t,n,i,o,r;for(r=[],t=0,i=(o=this.getNewBodyScriptElements()).length;t<i;t++)n=o[t],e=this.createScriptElement(n),r.push(l(n,e));return r},t.prototype.assignNewBody=function(){return document.body=this.newBody},t.prototype.focusFirstAutofocusableElement=function(){var e;return null!=(e=this.newSnapshot.findFirstAutofocusableElement())?e.focus():void 0},t.prototype.getNewHeadStylesheetElements=function(){return this.newHeadDetails.getStylesheetElementsNotInDetails(this.currentHeadDetails)},t.prototype.getNewHeadScriptElements=function(){return this.newHeadDetails.getScriptElementsNotInDetails(this.currentHeadDetails)},t.prototype.getCurrentHeadProvisionalElements=function(){return this.currentHeadDetails.getProvisionalElements()},t.prototype.getNewHeadProvisionalElements=function(){return this.newHeadDetails.getProvisionalElements()},t.prototype.getCurrentBodyPermanentElements=function(){return this.currentSnapshot.getPermanentElementsPresentInSnapshot(this.newSnapshot)},t.prototype.getNewBodyScriptElements=function(){return this.newBody.querySelectorAll("script")},t}(d.Renderer),a=function(e){var t;return(t=document.createElement("meta")).setAttribute("name","turbolinks-permanent-placeholder"),t.setAttribute("content",e.id),{element:t,permanentElement:e}},l=function(e,t){var n;return(n=e.parentNode)?n.replaceChild(t,e):void 0}}.call(this),function(){var n=function(e,t){function n(){this.constructor=e}for(var i in t)o.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;d.ErrorRenderer=function(e){function t(e){var t;(t=document.createElement("html")).innerHTML=e,this.newHead=t.querySelector("head"),this.newBody=t.querySelector("body")}return n(t,e),t.prototype.render=function(e){return this.renderView((t=this,function(){return t.replaceHeadAndBody(),t.activateBodyScriptElements(),e()}));var t},t.prototype.replaceHeadAndBody=function(){var e,t;return t=document.head,e=document.body,t.parentNode.replaceChild(this.newHead,t),e.parentNode.replaceChild(this.newBody,e)},t.prototype.activateBodyScriptElements=function(){var e,t,n,i,o,r;for(r=[],t=0,n=(i=this.getScriptElements()).length;t<n;t++)o=i[t],e=this.createScriptElement(o),r.push(o.parentNode.replaceChild(e,o));return r},t.prototype.getScriptElements=function(){return document.documentElement.querySelectorAll("script")},t}(d.Renderer)}.call(this),function(){d.View=function(){function e(e){this.delegate=e,this.htmlElement=document.documentElement}
vendor: 4,734 bytes, line 15
15return e.prototype.getRootLocation=function(){return this.getSnapshot().getRootLocation()},e.prototype.getElementForAnchor=function(e){return this.getSnapshot().getElementForAnchor(e)},e.prototype.getSnapshot=function(){return d.Snapshot.fromHTMLElement(this.htmlElement)},e.prototype.render=function(e,t){var n,i,o;return o=e.snapshot,n=e.error,i=e.isPreview,this.markAsPreview(i),null!=o?this.renderSnapshot(o,i,t):this.renderError(n,t)},e.prototype.markAsPreview=function(e){return e?this.htmlElement.setAttribute("data-turbolinks-preview",""):this.htmlElement.removeAttribute("data-turbolinks-preview")},e.prototype.renderSnapshot=function(e,t,n){return d.SnapshotRenderer.render(this.delegate,n,this.getSnapshot(),d.Snapshot.wrap(e),t)},e.prototype.renderError=function(e,t){return d.ErrorRenderer.render(this.delegate,t,e)},e}()}.call(this),function(){var t=function(e,t){return function(){return e.apply(t,arguments)}};d.ScrollManager=function(){function e(e){this.delegate=e,this.onScroll=t(this.onScroll,this),this.onScroll=d.throttle(this.onScroll)}return e.prototype.start=function(){return this.started?void 0:(addEventListener("scroll",this.onScroll,!1),this.onScroll(),this.started=!0)},e.prototype.stop=function(){return this.started?(removeEventListener("scroll",this.onScroll,!1),this.started=!1):void 0},e.prototype.scrollToElement=function(e){return e.scrollIntoView()},e.prototype.scrollToPosition=function(e){var t,n;return t=e.x,n=e.y,window.scrollTo(t,n)},e.prototype.onScroll=function(){return this.updatePosition({x:window.pageXOffset,y:window.pageYOffset})},e.prototype.updatePosition=function(e){var t;return this.position=e,null!=(t=this.delegate)?t.scrollPositionChanged(this.position):void 0},e}()}.call(this),function(){d.SnapshotCache=function(){function e(e){this.size=e,this.keys=[],this.snapshots={}}var i;return e.prototype.has=function(e){return i(e)in this.snapshots},e.prototype.get=function(e){var t;if(this.has(e))return t=this.read(e),this.touch(e),t},e.prototype.put=function(e,t){return this.write(e,t),this.touch(e),t},e.prototype.read=function(e){var t;return t=i(e),this.snapshots[t]},e.prototype.write=function(e,t){var n;return n=i(e),this.snapshots[n]=t},e.prototype.touch=function(e){var t,n;return n=i(e),-1<(t=this.keys.indexOf(n))&&this.keys.splice(t,1),this.keys.unshift(n),this.trim()},e.prototype.trim=function(){var e,t,n,i,o;for(o=[],e=0,n=(i=this.keys.splice(this.size)).length;e<n;e++)t=i[e],o.push(delete this.snapshots[t]);return o},i=function(e){return d.Location.wrap(e).toCacheKey()},e}()}.call(this),function(){var i=function(e,t){return function(){return e.apply(t,arguments)}};d.Visit=function(){function e(e,t,n){this.controller=e,this.action=n,this.performScroll=i(this.performScroll,this),this.identifier=d.uuid(),this.location=d.Location.wrap(t),this.adapter=this.controller.adapter,this.state="initialized",this.timingMetrics={}}var n;return e.prototype.start=function(){return"initialized"===this.state?(this.recordTimingMetric("visitStart"),this.state="started",this.adapter.visitStarted(this)):void 0},e.prototype.cancel=function(){var e;return"started"===this.state?(null!=(e=this.request)&&e.cancel(),this.cancelRender(),this.state="canceled"):void 0},e.prototype.complete=function(){var e;return"started"===this.state?(this.recordTimingMetric("visitEnd"),this.state="completed","function"==typeof(e=this.adapter).visitCompleted&&e.visitCompleted(this),this.controller.visitCompleted(this)):void 0},e.prototype.fail=function(){var e;return"started"===this.state?(this.state="failed","function"==typeof(e=this.adapter).visitFailed?e.visitFailed(this):void 0):void 0},e.prototype.changeHistory=function(){var e,t;return this.historyChanged?void 0:(e=this.location.isEqualTo(this.referrer)?"replace":this.action,t=n(e),this.controller[t](this.location,this.restorationIdentifier),this.historyChanged=!0)},e.prototype.issueRequest=function(){return this.shouldIssueRequest()&&null==this.request?(this.progress=0,this.request=new d.HttpRequest(this,this.location,this.referrer),this.request.send()):void 0},e.prototype.getCachedSnapshot=function(){var e;return!(e=this.controller.getCachedSnapshotForLocation(this.location))||null!=this.location.anchor&&!e.hasAnchor(this.location.anchor)||"restore"!==this.action&&!e.isPreviewable()?void 0:e},e.prototype.hasCachedSnapshot=function(){return null!=this.getCachedSnapshot()},e.prototype.loadCachedSnapshot=function(){var t,n;return(n=this.getCachedSnapshot())?(t=this.shouldIssueRequest(),this.render(function(){var e;return this.cacheSnapshot(),this.controller.render({snapshot:n,isPreview:t},this.performScroll),"function"==typeof(e=this.adapter).visitRendered&&e.visitRendered(this),t?void 0:this.complete()}
15)):void 0},e.prototype.loadResponse=function(){return null!=this.response?this.render(function(){var e,t;return this.cacheSnapshot(),this.request.failed?(this.controller.render({error:this.response},this.performScroll),"function"==typeof(e=this.adapter).visitRendered&&e.visitRendered(this),this.fail()):(this.controller.render({snapshot:this.response},this.performScroll),"function"==typeof(t=this.adapter).visitRendered&&t.visitRendered(this),this.complete())}):void 0},e.prototype.followRedirect=function(){return this.redirectedToLocation&&!this.followedRedirect?(this.location=this.redirectedToLocation,this.controller.replaceHistoryWithLocationAndRestorationIdentifier(this.redirectedToLocation,this.restorationIdentifier),this.followedRedirect=!0):void 0},e.prototype.requestStarted=function(){var e;return this.recordTimingMetric("requestStart"),"function"==typeof(e=this.adapter).visitRequestStarted?e.visitRequestStarted(this):void 0},e.prototype.requestProgressed=function(e){var t;return this.progress=e,"function"==typeof(t=this.adapter).visitRequestProgressed?t.visitRequestProgressed(this):void 0},e.prototype.requestCompletedWithResponse=function(e,t){return this.response=e,null!=t&&(this.redirectedToLocation=d.Location.wrap(t)),this.adapter.visitRequestCompleted(this)},e.prototype.requestFailedWithStatusCode=function(e,t){return this.response=t,this.adapter.visitRequestFailedWithStatusCode(this,e)},e.prototype.requestFinished=function(){var e;return this.recordTimingMetric("requestEnd"),"function"==typeof(e=this.adapter).visitRequestFinished?e.visitRequestFinished(this):void 0},e.prototype.performScroll=function(){return this.scrolled?void 0:("restore"===this.action?this.scrollToRestoredPosition()||this.scrollToTop():this.scrollToAnchor()||this.scrollToTop(),this.scrolled=!0)},e.prototype.scrollToRestoredPosition=function(){var e,t;return null!=(e=null!=(t=this.restorationData)?t.scrollPosition:void 0)?(this.controller.scrollToPosition(e),!0):void 0},e.prototype.scrollToAnchor=function(){return null!=this.location.anchor?(this.controller.scrollToAnchor(this.location.anchor),!0):void 0},e.prototype.scrollToTop=function(){return this.controller.scrollToPosition({x:0,y:0})},e.prototype.recordTimingMetric=function(e){var t;return null!=(t=this.timingMetrics)[e]?t[e]:t[e]=(new Date).getTime()},e.prototype.getTimingMetrics=function(){return d.copyObject(this.timingMetrics)},n=function(e){switch(e){case"replace":return"replaceHistoryWithLocationAndRestorationIdentifier";case"advance":case"restore":return"pushHistoryWithLocationAndRestorationIdentifier"}},e.prototype.shouldIssueRequest=function(){return"restore"!==this.action||!this.hasCachedSnapshot()},e.prototype.cacheSnapshot=function(){return this.snapshotCached?void 0:(this.controller.cacheSnapshot(),this.snapshotCached=!0)},e.prototype.render=function(e){return this.cancelRender(),this.frame=requestAnimationFrame((t=this,function(){return t.frame=null,e.call(t)}));var t},e.prototype.cancelRender=function(){return this.frame?cancelAnimationFrame(this.frame):void 0},e}()}.call(this),function(){var t=function(e,t){return function(){return e.apply(t,arguments)}};d.Controller=function(){function e(){this.clickBubbled=t(this.clickBubbled,this),this.clickCaptured=t(this.clickCaptured,this),this.pageLoaded=t(this.pageLoaded,this),this.history=new d.History(this),this.view=new d.View(this),this.scrollManager=new d.ScrollManager(this),this.restorationData={},this.clearCache(),this.setProgressBarDelay(500)}return e.prototype.start=function(){return d.supported&&!this.started?(addEventListener("click",this.clickCaptured,!0),addEventListener("DOMContentLoaded",this.pageLoaded,!1),this.scrollManager.start(),this.startHistory(),this.started=!0,this.enabled=!0):void 0},e.prototype.disable=function(){return this.enabled=!1},e.prototype.stop=function(){return this.started?(removeEventListener("click",this.clickCaptured,!0),removeEventListener("DOMContentLoaded",this.pageLoaded,!1),this.scrollManager.stop(),this.stopHistory(),this.started=!1):void 0},e.prototype.clearCache=function(){return this.cache=new d.SnapshotCache(10)},e.prototype.visit=function(e,t){var n,i;return null==t&&(t={}),e=d.Location.wrap(e),this.applicationAllowsVisitingLocation(e)?this.locationIsVisitable(e)?(n=null!=(i=t.action)?i:"advance",this.adapter.visitProposedToLocationWithAction(e,n)):window.location=e:void 0},e.prototype.startVisitToLocationWithAction=function(e,t,n){var i;return d.supported?(i=this.getRestorationDataForIdentifier(n),this.startVisit(e,t,{restorationData:i})):window.location=e},e.prototype.setProgressBarDelay=function(e){return this.progressBarDelay=e},e.prototype.startHistory=function(){return this.location=d.Location.wrap(window.location),this.restorationIdentifier=d.uuid(),this.history.start(),this.history.replace(this.location,this.restorationIdentifier)},e.prototype.stopHistory=function(){return this.history.stop()},e.prototype.pushHistoryWithLocationAndRestorationIdentifier=function(e,t){return this.restorationIdentifier=t,this.location=d.Location.wrap(e),this.history.push(this.location,this.restorationIdentifier)},e.prototype.replaceHistoryWithLocationAndRestorationIdentifier=function(e,t){return this.restorationIdentifier=t,this.location=d.Location.wrap(e),this.history.replace(this.location,this.restorationIdentifier)},e.prototype.historyPoppedToLocationWithRestorationIdentifier=function(e,t){var n;return this.restorationIdentifier=t,this.enabled?(n=this.getRestorationDataForIdentifier(this.restorationIdentifier),this.startVisit(e,"restore",{restorationIdentifier:this.restorationIdentifier,restorationData:n,historyChanged:!0}),this.location=d.Location.wrap(e)):this.adapter.pageInvalidated()},e.prototype.getCachedSnapshotForLocation=function(e){var t;return null!=(t=this.cache.get(e))?t.clone():void 0},e.prototype.shouldCacheSnapshot=function(){return this.view.getSnapshot().isCacheable()},e.prototype.cacheSnapshot=function(){var e,t,n;return this.shouldCacheSnapshot()?(this.notifyApplicationBeforeCachingSnapshot(),t=this.view.getSnapshot(),e=this.lastRenderedLocation,d.defer((n=this,function(){return n.cache.put(e,t.clone())}))):void 0},e.prototype.scrollToAnchor=function(e){var t;return(t=this.view.getElementForAnchor(e))?this.scrollToElement(t):this.scrollToPosition({x:0,y:0})},e.prototype.scrollToElement=function(e){return this.scrollManager.scrollToElement(e)},e.prototype.scrollToPosition=function(e){return this.scrollManager.scrollToPosition(e)},e.prototype.scrollPositionChanged=function(e){return this.getCurrentRestorationData().scrollPosition=e},e.prototype.render=function(e,t){return this.view.render(e,t)},e.prototype.viewInvalidated=function(){return this.adapter.pageInvalidated()},e.prototype.viewWillRender=function(e){return this.notifyApplicationBeforeRender(e)},e.prototype.viewRendered=function(){return this.lastRenderedLocation=this.currentVisit.location,this.notifyApplicationAfterRender()},e.prototype.pageLoaded=function(){return this.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()},e.prototype.clickCaptured=function(){return removeEventListener("click",this.clickBubbled,!1),addEventListener("click",this.clickBubbled,!1)},e.prototype.clickBubbled=function(e){var t,n,i;return this.enabled&&this.clickEventIsSignificant(e)&&(n=this.getVisitableLinkForNode(e.target))&&(i=this.getVisitableLocationForLink(n))&&this.applicationAllowsFollowingLinkToLocation(n,i)?(e.preventDefault(),t=this.getActionForLink(n),this.visit(i,{action:t})):void 0},e.prototype.applicationAllowsFollowingLinkToLocation=function(e,t){return!this.notifyApplicationAfterClickingLinkToLocation(e,t).defaultPrevented},e.prototype.applicationAllowsVisitingLocation=function(e){return!this.notifyApplicationBeforeVisitingLocation(e).defaultPrevented},e.prototype.notifyApplicationAfterClickingLinkToLocation=function(e,t){return d.dispatch("turbolinks:click",{target:e,data:{url:t.absoluteURL},cancelable:!0})},e.prototype.notifyApplicationBeforeVisitingLocation=function(e){return d.dispatch("turbolinks:before-visit",{data:{url:e.absoluteURL},cancelable:!0})},e.prototype.notifyApplicationAfterVisitingLocation=function(e){return d.dispatch("turbolinks:visit",{data:{url:e.absoluteURL}})},e.prototype.notifyApplicationBeforeCachingSnapshot=function(){return d.dispatch("turbolinks:before-cache")},e.prototype.notifyApplicationBeforeRender=function(e){return d.dispatch("turbolinks:before-render",{data:{newBody:e}})},e.prototype.notifyApplicationAfterRender=function(){return d.dispatch("turbolinks:render")},e.prototype.notifyApplicationAfterPageLoad=function(e){return null==e&&(e={}),d.dispatch("turbolinks:load",{data:{url:this.location.absoluteURL,timing:e}})},e.prototype.startVisit=function(e,t,n){var i;return null!=(i=this.currentVisit)&&i.cancel(),this.currentVisit=this.createVisit(e,t,n),this.currentVisit.start(),this.notifyApplicationAfterVisitingLocation(e)},e.prototype.createVisit=function(e,t,n){var i,o,r,s,a;return s=(o=null!=n?n:{}).restorationIdentifier,r=o.restorationData,i=o.historyChanged,(a=new d.Visit(this,e,t)).restorationIdentifier=null!=s?s:d.uuid(),a.restorationData=d.copyObject(r),a.historyChanged=i,a.referrer=this.location,a},e.prototype.visitCompleted=function(e){return this.notifyApplicationAfterPageLoad(e.getTimingMetrics())},e.prototype.clickEventIsSignificant=function(e){return!(e.defaultPrevented||e.target.isContentEditable||1<e.which||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)},e.prototype.getVisitableLinkForNode=function(e){return this.nodeIsVisitable(e)?d.closest(e,"a[href]:not([target]):not([download])"):void 0},e.prototype.getVisitableLocationForLink=function(e){var t;return t=new d.Location(e.getAttribute("href")),this.locationIsVisitable(t)?t:void 0},e.prototype.getActionForLink=function(e){var t;return null!=(t=e.getAttribute("data-turbolinks-action"))?t:"advance"},e.prototype.nodeIsVisitable=function(e){var t;return!(t=d.closest(e,"[data-turbolinks]"))||"false"!==t.getAttribute("data-turbolinks")},e.prototype.locationIsVisitable=function(e){return e.isPrefixedBy(this.view.getRootLocation())&&e.isHTML()},e.prototype.getCurrentRestorationData=function(){return this.getRestorationDataForIdentifier(this.restorationIdentifier)},e.prototype.getRestorationDataForIdentifier=function(e){var t;return null!=(t=this.restorationData)[e]?t[e]:t[e]={}},e}()}.call(this),function(){!function(){var e,t;if((e=t=document.currentScript)&&!t.hasAttribute("data-turbolinks-suppress-warning"))for(;e=e.parentNode;)if(e===document.body)return console.warn("You are loading Turbolinks from a <script> element inside the <body> element. This is probably not what you meant to do!\n\nLoad your application\u2019s JavaScript bundle inside the <head> element instead. <script> elements in <body> are evaluated with each page change.\n\nFor more information, see: https://github.com/turbolinks/turbolinks#working-with-script-elements\n\n\u2014\u2014\nSuppress this warning by adding a `data-turbolinks-suppress-warning` attribute to: %s",t.outerHTML)}()}.call(this),function(){var e,t,n;d.start=function(){return t()?(null==d.controller&&(d.controller=e()),d.controller.start()):void 0},t=function(){return null==window.Turbolinks&&(window.Turbolinks=d),n()},e=function(){var e;return(e=new d.Controller).adapter=new d.BrowserAdapter(e),e},(n=function(){return window.Turbolinks===d})()&&d.start()}.call(this)}).call(this),"object"==typeof module&&module.exports?module.exports=d:"function"==typeof define&&define.amd&&define(d)}.call(this),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.ActionCable={})}(this,function(e){"use strict";function s(e){if("function"==typeof e&&(e=e()),!e||/^wss?:/i.test(e))return e;var t=document.createElement("a");return t.href=e,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href}function t(e){var t=0<arguments.length&&e!==undefined?arguments[0]:n("url")||i.default_mount_path;return new o(t)}function n(e){var t=document.head.querySelector("meta[name='action-cable-"+e+"']");if(t)return t.getAttribute("content")}var h={logger:self.console,WebSocket:self.WebSocket},g={log:function r(){if(this.enabled){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];n.push(Date.now()),(e=h.logger).log.apply(e,["[ActionCable]"].concat(n))}}},f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}(),v=function v(){return(new Date).getTime()},y=function y(e){return(v()-e)/1e3},b=function b(e,t,n){return Math.max(t,Math.min(n,e))},w=function(){function t(e){m(this,t),this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=e,this.reconnectAttempts=0}return t.prototype.start=function e(){this.isRunning()||(this.startedAt=v(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),g.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms"))},t.prototype.stop=function n(){this.isRunning()&&(this.stoppedAt=v(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),g.log("ConnectionMonitor stopped"))},t.prototype.isRunning=function i(){return this.startedAt&&!this.stoppedAt},t.prototype.recordPing=function o(){this.pingedAt=v()},t.prototype.recordConnect=function r(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,g.log("ConnectionMonitor recorded connect")},t.prototype.recordDisconnect=function s(){this.disconnectedAt=v(),g.log("ConnectionMonitor recorded disconnect")},t.prototype.startPolling=function a(){this.stopPolling(),this.poll()},t.prototype.stopPolling=function l(){clearTimeout(this.pollTimeout)},t.prototype.poll=function c(){var e=this
16;this.pollTimeout=setTimeout(function(){e.reconnectIfStale(),e.poll()},this.getPollInterval())},t.prototype.getPollInterval=function d(){var e=this.constructor.pollInterval,t=e.min,n=e.max,i=e.multiplier*Math.log(this.reconnectAttempts+1);return Math.round(1e3*b(i,t,n))},t.prototype.reconnectIfStale=function u(){this.connectionIsStale()&&(g.log("ConnectionMonitor detected stale c
16onnection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+y(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?g.log("ConnectionMonitor skipping reopening recent disconnect"):(g.log("ConnectionMonitor reopening"),this.connection.reopen()))},t.prototype.connectionIsStale=function p(){return y(this.pingedAt?this.pingedAt:this.startedAt)>this.constructor.staleThreshold},t.prototype.disconnectedRecently=function h(){return this.disconnectedAt&&y(this.disconnectedAt)<this.constructor.staleThreshold},t.prototype.visibilityDidChange=function f(){var e=this;"visible"===document.visibilityState&&setTimeout(function(){!e.connectionIsStale()&&e.connection.isOpen()||(g.log("ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = "+document.visibilityState),e.connection.reopen())},200)},t}();w.pollInterval={min:3,max:30,multiplier:5},w.staleThreshold=6;var i={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},l=i.message_types,C=i.protocols,x=C.slice(0,C.length-1),k=[].indexOf,c=function(){function t(e){m(this,t),this.open=this.open.bind(this),this.consumer=e,this.subscriptions=this.consumer.subscriptions,this.monitor=new w(this),this.disconnected=!0}return t.prototype.send=function n(e){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(e)),!0)},t.prototype.open=function e(){return this.isActive()?(g.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(g.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+C),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new h.WebSocket(this.consumer.url,C),this.installEventHandlers(),this.monitor.start(),!0)},t.prototype.close=function i(e){if((0<arguments.length&&e!==undefined?arguments[0]:{allowReconnect:!0}).allowReconnect||this.monitor.stop(),this.isActive())return this.webSocket.close()},t.prototype.reopen=function o(){if(g.log("Reopening WebSocket, current state is "+this.getState()),!this.isActive())return this.open();try{return this.close()}catch(e){g.log("Failed to reopen WebSocket",e)}finally{g.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}},t.prototype.getProtocol=function r(){if(this.webSocket)return this.webSocket.protocol},t.prototype.isOpen=function s(){return this.isState("open")},t.prototype.isActive=function a(){return this.isState("open","connecting")},t.prototype.isProtocolSupported=function l(){return 0<=k.call(x,this.getProtocol())},t.prototype.isState=function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0<=k.call(t,this.getState())},t.prototype.getState=function d(){if(this.webSocket)for(var e in h.WebSocket)if(h.WebSocket[e]===this.webSocket.readyState)return e.toLowerCase();return null},t.prototype.installEventHandlers=function u(){for(var e in this.events){var t=this.events[e].bind(this);this.webSocket["on"+e]=t}},t.prototype.uninstallEventHandlers=function p(){for(var e in this.events)this.webSocket["on"+e]=function(){}},t}();c.reopenDelay=500,c.prototype.events={message:function e(t){if(this.isProtocolSupported()){var n=JSON.parse(t.data),i=n.identifier,e=n.message,o=n.reason,r=n.reconnect;switch(n.type){case l.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case l.disconnect:return g.log("Disconnecting. Reason: "+o),this.close({allowReconnect:r});case l.ping:return this.monitor.recordPing();case l.confirmation:return this.subscriptions.confirmSubscription(i),this.subscriptions.notify(i,"connected");case l.rejection:return this.subscriptions.reject(i);default:return this.subscriptions.notify(i,"received",e)}}},open:function p(){if(g.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupp
16orted())return g.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function E(){if(g.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function T(){g.log("WebSocket onerror event")}};var d=function d(e,t){if(null!=t)for(var n in t){var i=t[n];e[n]=i}return e},S=function(){function r(e,t,n){var i=1<arguments.length&&t!==undefined?arguments[1]:{},o=n;m(this,r),this.consumer=e,this.identifier=JSON.stringify(i),d(this,o)}return r.prototype.perform=function i(e,t){var n=1<arguments.length&&t!==undefined?arguments[1]:{};return n.action=e,this.send(n)},r.prototype.send=function t(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})},r.prototype.unsubscribe=function e(){return this.consumer.subscriptions.remove(this)},r}(),j=function(){function t(e){m(this,t),this.subscriptions=e,this.pendingSubscriptions=[]}return t.prototype.guarantee=function n(e){-1==this.pendingSubscriptions.indexOf(e)?(g.log("SubscriptionGuarantor guaranteeing "+e.identifier),this.pendingSubscriptions.push(e)):g.log("SubscriptionGuarantor already guaranteeing "+e.identifier),this.startGuaranteeing()},t.prototype.forget=function e(t){g.log("SubscriptionGuarantor forgetting "+t.identifier),this.pendingSubscriptions=this.pendingSubscriptions.filter(function(e){return e!==t})},t.prototype.startGuaranteeing=function i(){this.stopGuaranteeing(),this.retrySubscribing()},t.prototype.stopGuaranteeing=function o(){clearTimeout(this.retryTimeout)},t.prototype.retrySubscribing=function r(){var t=this;this.retryTimeout=setTimeout(function(){t.subscriptions&&"function"==typeof t.subscriptions.subscribe&&t.pendingSubscriptions.map(function(e){g.log("SubscriptionGuarantor resubscribing "+e.identifier),t.subscriptions.subscribe(e)})},500)},t}(),u=function(){function t(e){m(this,t),this.consumer=e,this.guarantor=new j(this),this.subscriptions=[]}return t.prototype.create=function r(e,t){var n=e,i="object"===(void 0===n?"undefined":f(n))?n:{channel:n},o=new S(this.consumer,i,t);return this.add(o)},t.prototype.add=function n(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.subscribe(e),e},t.prototype.remove=function i(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e},t.prototype.reject=function o(e){var t=this;return this.findAll(e).map(function(e){return t.forget(e),t.notify(e,"rejected"),e})},t.prototype.forget=function e(t){return this.guarantor.forget(t),this.subscriptions=this.subscriptions.filter(function(e){return e!==t}),t},t.prototype.findAll=function s(t){return this.subscriptions.filter(function(e){return e.identifier===t})},t.prototype.reload=function a(){var t=this;return this.subscriptions.map(function(e){return t.subscribe(e)})},t.prototype.notifyAll=function l(t){for(var n=this,e=arguments.length,i=Array(1<e?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return this.subscriptions.map(function(e){return n.notify.apply(n,[e,t].concat(i))})},t.prototype.notify=function c(e,t){for(var n=arguments.length,i=Array(2<n?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return("string"==typeof e?this.findAll(e):[e]).map(function(e){return"function"==typeof e[t]?e[t].apply(e,i):undefined})},t.prototype.subscribe=function d(e){this.sendCommand(e,"subscribe")&&this.guarantor.guarantee(e)},t.prototype.confirmSubscription=function u(e){var t=this;g.log("Subscription confirmed "+e),this.findAll(e).map(function(e){return t.guarantor.forget(e)})},t.prototype.sendCommand=function p(e,t){var n=e.identifier;return this.consumer.send({command:t,identifier:n})},t}(),o=function(){function t(e){m(this,t),this._url=e,this.subscriptions=new u(this),this.connection=new c(this)}return t.prototype.send=function n(e){return this.connection.send(e)},t.prototype.connect=function e(){return this.connection.open()},t.prototype.disconnect=function i(){return this.connection.close({allowReconnect:!1})},t.prototype.ensureActiveConnection=function o(){if(!this.connection.isActive())return this.connection.open()},a(t,[{key:"url",get:function r(){return s(this._url)}}]),t}();e.Connection=c,e.ConnectionMonitor=w,e.Consumer=o,e.INTERNAL=i,e.Subscription=S,e.Subscriptions=u,e.SubscriptionGuarantor=j,e.adapters=h,e.createWebSocketURL=s,e.logger=g,e.createConsumer=t,e.getConfig=n,Object.defineProperty(e,"__esMo
16dule",{value:!0})}),function(){this.App||(this.App={}),App.cable=ActionCable.createConsumer()}.call(this),$(document).on("turbolinks:load",function(){$("select[id^='answerer_answers_']").change(function(){if($(this).closest('[id^="question_"]').length){var e=".related_"+$(this).closest('[id^="question_"]').attr("id").split("_")[1],t=$(this).val();$(e).each(function(){$(this).hasClass("value_"+t)?$(this).show():removeAndHideInput($(this))})}}).change(),$("[type='radio'][id^='answerer_answers_']").change(function(){if($(this).closest('[id^="question_"]').length){var e=".related_"+$(this).closest('[id^="question_"]').attr("id").split("_")[1],t=$(this).val();$(this).is(":checked")?$(e).each(function(){$(this).hasClass("value_"+t)?$(this).show():removeAndHideInput($(this))}):$(e).each(function(){$(this).hasClass("value_"+t)&&removeAndHideInput($(this))})}}).change(),$("[type='checkbox'][id^='answerer_answers_']").change(function(){if(console.log("1"),$(this).closest('[id^="question_"]').length){console.log("2");var e=".related_"+$(this).closest('[id^="question_"]').attr("id").split("_")[1],t=$(this).val(),n=$(this).is(":checked");$(e).each(function(){console.log("3"),$(this).hasClass("value_"+t)&&(n?(console.log("4"),$(this).show()):(console.log("5"),removeAndHideInput($(this))))})}})}),$(document).on("turbolinks:load",function(){var e=0,t=function(){return(new Date).getTime()+e++};$(".nested-fields-wrapper .add-nested-fields").on("click",function(e){e.preventDefault(),new_id=t(),field_name=$(this).data("nested-field-name"),content=$(".nested-fields-wrapper .nested-fields:last").prop("outerHTML"),regexp_braced=new RegExp("(\\["+field_name+"_attributes\\])(\\[.*?\\])","g"),regexp_underscord=new RegExp("("+field_name+"_attributes)(_.*?_)","g"),new_content=content.replace(regexp_braced,"$1["+new_id+"]"),new_content=new_content.replace(regexp_underscord,"$1_"+new_id+"_"),new_element=$(new_content),new_element.show(),new_element.attr("id",""),new_element.find('input[type="text"], input[type="hidden"]').each(function(){$(this).val(""),$(this).attr("readonly",!1)}),new_element.find("select").each(function(){$(this).find("option:selected").removeAttr("selected")}),$(".nested-fields-wrapper .nested-fields-list").append(new_element),addSelectPicker()}),$(".nested-fields-wrapper").on("click","a.delete-nested-fields",function(e){e.preventDefault();var t=$(this).parents(".nested-fields");t.attr("id")||1==$(".nested-fields-wrapper .nested-fields").length?(t.find(".nested-fields-deleted-at").val(new Date),t.hide()):t.remove()})}),$(document).on("turbolinks:load",function(){$("select#question_field_type").change(function(){toggleQuestionFormat(),toggleQuestionChoices()}).change(),$("select#question_field_format").change(function(){toggleQuestionRange()}).change(),$("#question_related").change(function(){$(this).is(":checked")?($(".question_related_wrapper").show(),$("#question_spreadsheet").prop("checked",!1).change()):$(".question_related_wrapper").hide()}).change(),$("#question_spreadsheet").change(function(){$(this).is(":checked")?($(".question_spreadsheet_wrapper").show(),$("#question_related").prop("checked",!1).change()):$(".question_spreadsheet_wrapper").hide()}).change(),$("#question_master_id").on("change",function(){return $(this).val()&&$.getJSON($(this).data("url")+"/questions/"+$(this).val()+"/choices.json",{},function(e){var n=$("#question_master_value");n.find("option").remove(),$.each(e,function(e,t){option=new Option(t.text,t.value),n.append(option),t.value==parseInt(n.data("choice-id"))&&n.val(n.data("choice-id"))})}),!1}).change()}),function(){$(document).on("turbolinks:load",function(){return $('[data-provider="summernote"]').each(function(){return $(this).summernote({height:300,lang:"fr-FR",toolbar:[["style",["bold","italic","underline","clear","color"]],["para",["ul","ol","paragraph","link"]]]})})})}.call(this),ready=function(){$(".table-with-clickable-rows tbody").on("click","tr",function(e){if(!($(e.target).hasClass("exception-link")||$(e.target).parents(".exception-link").length)&&$(this).data("url"))if(e.shiftKey||e.ctrlKey||e.metaKey){var t=window.open($(this).data("url"),"_blank");
16t?t.focus():Turbolinks.visit($(this).data("url"))}else $(this).data("remote-url")?$.ajax({url:$(this).data("url"),method:"GET",dataType:"script"}):Turbolinks.visit($(this).data("url"))})},$(document).ready(ready),$(document).on("turbolinks:load",ready),$(document).on("ajax:complete",ready),$(document).ajaxComplete(ready),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):e.bootbox=t(e.jQuery)}(this,function a(c,d){"use strict";function s(e){var t=o[r.locale];return t?t[e]:o.en[e]}function l(e,t,n){e.stopPropagation(),e.preventDefault(),c.isFunction(n)&&!1===n.call(t,e)||t.modal("hide")}function t(e){var t,n=0;for(t in e)n++;return n}function u(e,n){var i=0;c.each(e,function(e,t){n(e,t,i++)})}function p(e){var i,o;if("object"!=typeof e)throw new Error("Please supply an object of options");if(!e.message)throw new Error("Please specify a message");return(e=c.extend({},r,e)).buttons||(e.buttons={}),i=e.buttons,o=t(i),u(i,function(e,t,n){if(c.isFunction(t)&&(t=i[e]={callback:t}),"object"!==c.type(t))throw new Error("button with key "+e+" must be an object");t.label||(t.label=e),t.className||(t.className=o<=2&&n===o-1?"btn-primary":"btn-default")}),e}function i(e,t){var n=e.length,i={};if(n<1||2<n)throw new Error("Invalid argument length");return 2===n||"string"==typeof e[0]?(i[t[0]]=e[0],i[t[1]]=e[1]):i=e[0],i}function h(e,t,n){return c.extend(!0,{},e,i(t,n))}function n(e,t,n,i){return g(h({className:"bootbox-"+e,buttons:f.apply(null,t)},i,n),t)}function f(){for(var e={},t=0,n=arguments.length;t<n;t++){var i=arguments[t],o=i.toLowerCase(),r=i.toUpperCase();e[o]={label:s(r)}}return e}function g(e,t){var n={};return u(t,function(e,t){n[t]=!0}),u(e.buttons,function(e){if(n[e]===d)throw new Error("button key "+e+" is not allowed (options are "+t.join("\n")+")")}),e}var m={dialog:"<div class='bootbox modal' tabindex='-1' role='dialog'><div class='modal-dialog'><div class='modal-content'><div class='modal-body'><div class='bootbox-body'></div></div></div></div></div>",header:"<div class='modal-header'><h4 class='modal-title'></h4></div>",footer:"<div class='modal-footer'></div>",closeButton:"<button type='button' class='bootbox-close-button close' data-dismiss='modal' aria-hidden='true'>&times;</button>",form:"<form class='bootbox-form'></form>",inputs:{text:"<input class='bootbox-input bootbox-input-text form-control' autocomplete=off type=text />",textarea:"<textarea class='bootbox-input bootbox-input-textarea form-control'></textarea>",email:"<input class='bootbox-input bootbox-input-email form-control' autocomplete='off' type='email' />",select:"<select class='bootbox-input bootbox-input-select form-control'></select>",checkbox:"<div class='checkbox'><label>
16<input class='bootbox-input bootbox-input-checkbox' type='checkbox' /></label></div>",date:"<input class='bootbox-input bootbox-input-date form-control' autocomplete=off type='date' />",time:"<input class='bootbox-input bootbox-input-time form-control' autocomplete=off type='time' />",number:"<input class='bootbox-input bootbox-input-number form-control' autocomplete=off type='number' />",password:"<input class='bootbox-input bootbox-input-password form-control' autocomplete='off' type='password' />"}},r={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body"},v={alert:function(){var e;if((e=n("alert",["ok"],["message","callback"],arguments)).callback&&!c.isFunction(e.callback))throw new Error("alert requires callback property to be a function when provided");return e.buttons.ok.callback=e.onEscape=function(){return!c.isFunction(e.callback)||e.callback.call(this)},v.dialog(e)},confirm:function(){var e;if((e=n("confirm",["cancel","confirm"],["message","callback"],arguments)).buttons.cancel.callback=e.onEscape=function(){return e.callback.call(this,!1)},e.buttons.confirm.callback=function(){return e.callback.call(this,!0)},!c.isFunction(e.callback))throw new Error("confirm requires a callback");return v.dialog(e)},prompt:function(){var t,e,n,i,o,r,s;if(i=c(m.form),e={className:"bootbox-prompt",buttons:f("cancel","confirm"),value:"",inputType:"text"},r=(t=g(h(e,arguments,["title","callback"]),["cancel","confirm"])).show===d||t.show,t.message=i,t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,null)},t.buttons.confirm.callback=function(){var n;switch(t.inputType){case"text":case"textarea":case"email":case"select":case"date":case"time":case"number":case"password":n=o.val();break;case"checkbox":var e=o.find("input:checked");n=[],u(e,function(e,t){n.push(c(t).val())})}return t.callback.call(this,n)},t.show=!1,!t.title)throw new Error("prompt requires a title");if(!c.isFunction(t.callback))throw new Error("prompt requires a callback");if(!m.inputs[t.inputType])throw new Error("invalid prompt type");switch(o=c(m.inputs[t.inputType]),t.inputType){case"text":case"textarea":case"email":case"date":case"time":case"number":case"password":o.val(t.value);break;case"select":var a={};if(s=t.inputOptions||[],!c.isArray(s))throw new Error("Please pass an array of input options");if(!s.length)throw new Error("prompt with select requires options");u(s,function(e,t){var n=o;if(t.value===d||t.text===d)throw new Error("given options in wrong format");t.group&&(a[t.group]||(a[t.group]=c("<optgroup/>").attr("label",t.group)),n=a[t.group]),n.append("<option value='"+t.value+"'>"+t.text+"</option>")}),u(a,function(e,t){o.append(t)}),o.val(t.value);break;case"checkbox":var l=c.isArray(t.value)?t.value:[t.value];if(!(s=t.inputOptions||[]).length)throw new Error("prompt with checkbox requires options");if(!s[0].value||!s[0].text)throw new Error("given options in wrong format");o=c("<div/>"),u(s,function(e,n){var i=c(m.inputs[t.inputType]);i.find("input").attr("value",n.value),i.find("label").append(n.text),u(l,function(e,t){t===n.value&&i.find("input").prop("checked",!0)}),o.append(i)})}return t.placeholder&&o.attr("placeholder",t.placeholder),t.pattern&&o.attr("pattern",t.pattern),t.maxlength&&o.attr("maxlength",t.maxlength),i.append(o),i.on("submit",function(e){e.preventDefault(),e.stopPropagation(),n.find(".btn-primary").click()}),(n=v.dialog(t)).off("shown.bs.modal"),n.on("shown.bs.modal",function(){o.focus()}),!0===r&&n.modal("show"),n},dialog:function(e){e=p(e);var n=c(m.dialog),t=n.find(".modal-dialog"),i=n.find(".modal-body"),o=e.buttons,r="",s={onEscape:e.onEscape};if(c.fn.modal===d)throw new Error("$.fn.modal is not defined; please double check you have included the Bootstrap JavaScript library. See http://getbootstrap.com/javascript/ for more details.");if(u(o,function(e,t){r+="<button data-bb-handler='"+e+"' type='button' class='btn "+t.className+"'>"+t.label+"</button>",s[e]=t.callback}),i.find(".bootbox-body").html(e.message),!0===e.animate&&n.addClass("fade"),e.className&&n.addClass(e.className),"large"===e.size?t.addClass("modal-lg"):"small"===e.size&&t.addClass("modal-sm"),e.title&&i.before(m.header),e.closeButton){var a=c(m.closeButton);
16e.title?n.find(".modal-header").prepend(a):a.css("margin-top","-10px").prependTo(i)}return e.title&&n.find(".modal-title").html(e.title),r.length&&(i.after(m.footer),n.find(".modal-footer").html(r)),n.on("hidden.bs.modal",function(e){e.target===this&&n.remove()}),n.on("shown.bs.modal",function(){n.find(".btn-primary:first").focus()}),"static"!==e.backdrop&&n.on("click.dismiss.bs.modal",function(e){n.children(".modal-backdrop").length&&(e.currentTarget=n.children(".modal-backdrop").get(0)),e.target===e.currentTarget&&n.trigger("escape.close.bb")}),n.on("escape.close.bb",function(e){s.onEscape&&l(e,n,s.onEscape)}),n.on("click",".modal-footer button",function(e){var t=c(this).data("bb-handler");l(e,n,s[t])}),n.on("click",".bootbox-close-button",function(e){l(e,n,s.onEscape)}),n.on("keyup",function(e){27===e.which&&n.trigger("escape.close.bb")}),c(e.container).append(n),n.modal({backdrop:!!e.backdrop&&"static",keyboard:!1,show:!1}),e.show&&n.modal("show"),n},setDefaults:function(e,t){var n={};2===arguments.length?n[e]=t:n=arguments[0],c.extend(r,n)},hideAll:function(){return c(".bootbox").modal("hide"),v}},o={bg_BG:{OK:"\u041e\u043a",CANCEL:"\u041e\u0442\u043a\u0430\u0437",CONFIRM:"\u041f\u043e\u0442\u0432\u044a\u0440\u0436\u0434\u0430\u0432\u0430\u043c"},br:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Sim"},cs:{OK:"OK",CANCEL:"Zru\u0161it",CONFIRM:"Potvrdit"},da:{OK:"OK",CANCEL:"Annuller",CONFIRM:"Accepter"},de:{OK:"OK",CANCEL:"Abbrechen",CONFIRM:"Akzeptieren"},el:{OK:"\u0395\u03bd\u03c4\u03ac\u03be\u03b5\u03b9",CANCEL:"\u0391\u03ba\u03cd\u03c1\u03c9\u03c3\u03b7",CONFIRM:"\u0395\u03c0\u03b9\u03b2\u03b5\u03b2\u03b1\u03af\u03c9\u03c3\u03b7"},en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},es:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Aceptar"},et:{OK:"OK",CANCEL:"Katkesta",CONFIRM:"OK"},fa:{OK:"\u0642\u0628\u0648\u0644",CANCEL:"\u0644\u063a\u0648",CONFIRM:"\u062a\u0627\u06cc\u06cc\u062f"},fi:{OK:"OK",CANCEL:"Peruuta",CONFIRM:"OK"},fr:{OK:"OK",CANCEL:"Annuler",CONFIRM:"D'accord"},he:{OK:"\u05d0\u05d9\u05e9\u05d5\u05e8",CANCEL:"\u05d1\u05d9\u05d8\u05d5\u05dc",CONFIRM:"\u05d0\u05d9\u05e9\u05d5\u05e8"},hu:{OK:"OK",CANCEL:"M\xe9gsem",CONFIRM:"Meger\u0151s\xedt"},hr:{OK:"OK",CANCEL:"Odustani",CONFIRM:"Potvrdi"},id:{OK:"OK",CANCEL:"Batal",CONFIRM:"OK"},it:{OK:"OK",CANCEL:"Annulla",CONFIRM:"Conferma"},ja:{OK:"OK",CANCEL:"\u30ad\u30e3\u30f3\u30bb\u30eb",CONFIRM:"\u78ba\u8a8d"},lt:{OK:"Gerai",CANCEL:"At\u0161aukti",CONFIRM:"Patvirtinti"},lv:{OK:"Labi",CANCEL:"Atcelt",CONFIRM:"Apstiprin\u0101t"},nl:{OK:"OK",CANCEL:"Annuleren",CONFIRM:"Accepteren"},no:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},pl:{OK:"OK",CANCEL:"Anuluj",CONFIRM:"Potwierd\u017a"},pt:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Confirmar"},ru:{OK:"OK",CANCEL:"\u041e\u0442\u043c\u0435\u043d\u0430",CONFIRM:"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c"},sq:{OK:"OK",CANCEL:"Anulo",CONFIRM:"Prano"},sv:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},th:{OK:"\u0e15\u0e01\u0e25\u0e07",CANCEL:"\u0e22\u0e01\u0e40\u0e25\u0e34\u0e01",CONFIRM:"\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19"},tr:{OK:"Tamam",CANCEL:"\u0130ptal",CONFIRM:"Onayla"},zh_CN:{OK:"OK",CANCEL:"\u53d6\u6d88",CONFIRM:"\u786e\u8ba4"},zh_TW:{OK:"OK",CANCEL:"\u53d6\u6d88",CONFIRM:"\u78ba\u8a8d"}};return v.addLocale=function(e,n){return c.each(["OK","CANCEL","CONFIRM"],function(e,t){if(!n[t])throw new Error("Please supply a translation for '"+t+"'")}),o[e]={OK:n.OK,CANCEL:n.CANCEL,CONFIRM:n.CONFIRM},v},v.removeLocale=function(e){return delete o[e],v},v.setLocale=function(e){return v.setDefaults("locale",e)},v.init=function(e){return a(e||c)},v});var gj={widget:function(){var e=this;e.xhr=null,e.generateGUID=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},e.mouseX=function(e){if(e){if(e.pageX)return e.pageX;if(e.clientX)return e.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft);if(e.touches&&e.touches.length)return e.touches[0].pageX;if(e.changedTouches&&e.changedTouches.length)return e.changedTouches[0].pageX;if(e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length)return e.originalEvent.touches[0].pageX;if(e.originalEvent&&e.originalEvent.changedTouches&&e.originalEvent.changedTouches.length)return e.originalEvent.touches[0].pageX}return null},e.mouseY=function(e){if(e){if(e.pageY)return e.pageY;if(e.clientY)return e.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop);if(e.touches&&e.touches.length)return e.touches[0].pageY;if(e.changedTouches&&e.changedTouches.length)return e.changedTouches[0].pageY;if(e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length)return e.originalEvent.touches[0].pageY;if(e.originalEvent&&e.originalEvent.changedTouches&&e.originalEvent.changedTouches.length)return e.originalEvent.touches[0].pageY}return null}}};gj.widget.prototype.init=function(e,t){var n,i,o;for(n in this.attr("data-type",t),i=$.extend(!0,{},this.getHTMLConfig()||{}),$.extend(!0,i,e||{}),o=this.getConfig(i,t),this.attr("data-guid",o.guid),this.data(o),o)gj[t].events.hasOwnProperty(n)&&(this.on(n,o[n]),delete o[n]);for(plugin in gj[t].plugins)gj[t].plugins.hasOwnProperty(plugin)&&gj[t].plugins[plugin].configure(this,o,i);return this},gj.widget.prototype.getConfig=function(e,t){var n,i,o,r;for(r in n=$.extend(!0,{},gj[t].config.base),i=e.hasOwnProperty("uiLibrary")?e.uiLibrary:n.uiLibrary,gj[t].config[i]&&$.extend(!0,n,gj[t].config[i]),o=e.hasOwnProperty("iconsLibrary")?e.iconsLibrary:n.iconsLibrary,gj[t].config[o]&&$.extend(!0,n,gj[t].config[o]),gj[t].plugins)gj[t].plugins.hasOwnProperty(r)&&($.extend(!0,n,gj[t].plugins[r].config.base),gj[t].plugins[r].config[i]&&$.extend(!0,n,gj[t].plugins[r].config[i]),gj[t].plugins[r].config[o]&&$.extend(!0,n,gj[t].plugins[r].config[o]));return $.extend(!0,n,e),n.guid||(n.guid=this.generateGUID()),n},gj.widget.prototype.getHTMLConfig=function(){var e=this.data(),t=this[0].attributes;return t.width&&(e.width=t.width.value),t.height&&(e.height=t.height.value),t.value&&(e.value=t.value.value),t.align&&(e.align=t.align.value),e&&e.source&&(e.dataSource=e.source,delete e.source),e},gj.widget.prototype.createDoneHandler=function(){var t=this;return function(e){"string"==typeof e&&JSON&&(e=JSON.parse(e)),gj[t.data("type")].methods.render(t,e)}},gj.widget.prototype.createErrorHandler=function(){return function(e){e&&e.statusText&&"abort"!==e.statusText&&alert(e.statusText)}},gj.widget.prototype.reload=function(e){var t,n,i=this.data(),o=this.data("type");return i.dataSource===undefined&&gj[o].methods.useHtmlDataSource(this,i),$.extend(i.params,e),$.isArray(i.dataSource)?(n=gj[o].methods.filter(this),gj[o].methods.render(this,n)):"string"==typeof i.dataSource?(t={url:i.dataSource,data:i.params},this.xhr&&this.xhr.abort(),this.xhr=$.ajax(t).done(this.createDoneHandler()).fail(this.createErrorHandler())):"object"==typeof i.dataSource&&(i.dataSource.data||(i.dataSource.data={}),$.extend(i.dataSource.data,i.params),"json"===(t=$.extend(!0,{},i.dataSource)).dataType&&"object"==typeof t.data&&(t.data=JSON.stringify(t.data)),t.success||(t.success=this.createDoneHandler()),t.error||(t.error=this.createErrorHandler()),this.xhr&&this.xhr.abort(),this.xhr=$.ajax(t)),this},gj.documentManager={events:{},subscribeForEvent:function(e,t,n){if(gj.documentManager.events[e]&&0!==gj.documentManager.events[e].length){if(gj.documentManager.events[e][t])throw"Event "+e+' for widget with guid="'+t+'" is already attached.';gj.documentManager.events[e].push({widgetId:t,callback:n})}else gj.documentManager.events[e]=[{widgetId:t,callback:n}],$(document).on(e,gj.documentManager.executeCallbacks)},executeCallbacks:function(e){var t=gj.documentManager.events[e.type];if(t)for(var n=0;n<t.length;n++)t[n].callback(e)},unsubscribeForEvent:function(e,t){var n=!1,i=gj.documentManager.events[e];if(i)for(var o=0;o<i.length;o++)i[o].widgetId===t&&(i.splice(o,1),n=!0,0===i.length&&($(document).off(e),delete gj.documentManager.events[e]));if(!n)throw'The "'+e+'" for widget with guid="'+t+"\" can't be removed."}},gj.core={messages:{"en-us":{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthShortNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekDaysMin:["S","M","T","W","T","F","S"],weekDaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekDays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
vendor: 7,367 bytes, lines 16-17
16ay","Saturday"],am:"AM",pm:"PM",ok:"Ok",cancel:"Cancel",titleFormat:"mmmm yyyy"}},parseDate:function(e,t,n){var i,o,r,s,a=0,l=0,c=1,d=0,u=0;if(e&&"string"==typeof e){if(/^\d+$/.test(e))s=new Date(e);else if(-1<e.indexOf("/Date("))s=new Date(parseInt(e.substr(6),10));else if(e){for(r=t.split(/[\s,-\.//\:]+/),(o=e.split(/[\s]+/)).length!=r.length&&(o=e.split(/[\s,-\.//\:]+/)),i=0;i<r.length;i++)-1<["d","dd"].indexOf(r[i])?c=parseInt(o[i],10):-1<["m","mm"].indexOf(r[i])?l=parseInt(o[i],10)-1:"mmm"===r[i]?l=gj.core.messages[n||"en-us"].monthShortNames.indexOf(o[i]):"mmmm"===r[i]?l=gj.core.messages[n||"en-us"].monthNames.indexOf(o[i]):-1<["yy","yyyy"].indexOf(r[i])?(a=parseInt(o[i],10),"yy"===r[i]&&(a+=2e3)):-1<["h","hh","H","HH"].indexOf(r[i])?d=parseInt(o[i],10):-1<["M","MM"].indexOf(r[i])&&(u=parseInt(o[i],10));s=new Date(a,l,c,d,u)}}else"number"==typeof e?s=new Date(e):e instanceof Date&&(s=e);return s},formatDate:function(e,t,n){var o,r,s="",a=t.split(/[\s,-\.//\:]+/),l=t.split(/s+|M+|H+|h+|t+|T+|d+|m+|y+/);for(l=l.splice(1,l.length-2),i=0;i<a.length;i++)switch(o=l[i]||"",a[i]){case"s":s+=e.getSeconds()+o;break;case"ss":s+=gj.core.pad(e.getSeconds())+o;break;case"M":s+=e.getMinutes()+o;break;case"MM":s+=gj.core.pad(e.getMinutes())+o;break;case"H":s+=e.getHours()+o;break;case"HH":s+=gj.core.pad(e.getHours())+o;break;case"h":s+=(r=12<e.getHours()?e.getHours()%12:e.getHours())+o;break;case"hh":r=12<e.getHours()?e.getHours()%12:e.getHours(),s+=gj.core.pad(r)+o;break;case"tt":s+=(12<=e.getHours()?"pm":"am")+o;break;case"TT":s+=(12<=e.getHours()?"PM":"AM")+o;break;case"d":s+=e.getDate()+o;break;case"dd":s+=gj.core.pad(e.getDate())+o;break;case"ddd":s+=gj.core.messages[n||"en-us"].weekDaysShort[e.getDay()]+o;break;case"dddd":s+=gj.core.messages[n||"en-us"].weekDays[e.getDay()]+o;break;case"m":s+=e.getMonth()+1+o;break;case"mm":s+=gj.core.pad(e.getMonth()+1)+o;break;case"mmm":s+=gj.core.messages[n||"en-us"].monthShortNames[e.getMonth()]+o;break;case"mmmm":s+=gj.core.messages[n||"en-us"].monthNames[e.getMonth()]+o;break;case"yy":s+=e.getFullYear().toString().substr(2)+o;break;case"yyyy":s+=e.getFullYear()+o}return s},pad:function(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e},center:function(e){var t=$(window).width()/2-e.width()/2,n=$(window).height()/2-e.height()/2;e.css("position","absolute"),e.css("left",0<t?t:0),e.css("top",0<n?n:0)},isIE:function(){return!!navigator.userAgent.match(/Trident/g)||!!navigator.userAgent.match(/MSIE/g)},setChildPosition:function(e,t){var n=e.getBoundingClientRect(),i=gj.core.height(e,!0),o=gj.core.height(t,!0),r=gj.core.width(e,!0),s=gj.core.width(t,!0),a=window.scrollY||window.pageYOffset||0,l=window.scrollX||window.pageXOffset||0;n.top+i+o>window.innerHeight&&n.top>o?t.style.top=Math.round(n.top+a-o-3)+"px":t.style.top=Math.round(n.top+a+i+3)+"px",n.left+s>document.body.clientWidth?t.style.left=Math.round(n.left+l+r-s)+"px":t.style.left=Math.round(n.left+l)+"px"},height:function(e,t){var n,i=window.getComputedStyle(e);return"border-box"===i.boxSizing?(n=parseInt(i.height,10),gj.core.isIE()&&(n+=parseInt(i.paddingTop||0,10)+parseInt(i.paddingBottom||0,10),n+=parseInt(i.borderTopWidth||0,10)+parseInt(i.borderBottomWidth||0,10))):(n=parseInt(i.height,10),n+=parseInt(i.paddingTop||0,10)+parseInt(i.paddingBottom||0,10),n+=parseInt(i.borderTopWidth||0,10)+parseInt(i.borderBottomWidth||0,10)),t&&(n+=parseInt(i.marginTop||0,10)+parseInt(i.marginBottom||0,10)),n},width:function(e,t){var n,i=window.getComputedStyle(e);return"border-box"===i.boxSizing?n=parseInt(i.width,10):(n=parseInt(i.width,10),n+=parseInt(i.paddingLeft||0,10)+parseInt(i.paddingRight||0,10),n+=parseInt(i.borderLeftWidth||0,10)+parseInt(i.borderRightWidth||0,10)),t&&(n+=parseInt(i.marginLeft||0,10)+parseInt(i.marginRight||0,10)),n},
17addClasses:function(e,t){var n,i;if(t)for(i=t.split(" "),n=0;n<i.length;n++)e.classList.add(i[n])},position:function(e){for(var t,n,i=0,o=0,r=gj.core.height(e),s=gj.core.width(e);e;)"BODY"==e.tagName?(t=e.scrollLeft||document.documentElement.scrollLeft,n=e.scrollTop||document.documentElement.scrollTop,i+=e.offsetLeft-t,o+=e.offsetTop-n):(i+=e.offsetLeft-e.scrollLeft,o+=e.offsetTop-e.scrollTop),e=e.offsetParent;return{top:o,left:i,bottom:o+r,right:i+s}},setCaretAtEnd:function(e){var t;if(e)if(t=e.value.length,document.selection){e.focus();var n=document.selection.createRange();n.moveStart("character",-t),n.moveStart("character",t),n.moveEnd("character",0),n.select()}else(e.selectionStart||"0"==e.selectionStart)&&(e.selectionStart=t,e.selectionEnd=t,e.focus())},getScrollParent:function(e){return null==e?null:e.scrollHeight>e.clientHeight?e:gj.core.getScrollParent(e.parentNode)}},gj.picker={messages:{"en-us":{}}},gj.picker.methods={initialize:function(e,t,n){var i,o=n.createPicker(e,t),r=e.parent('div[role="wrapper"]');(i="bootstrap"===t.uiLibrary?$('<span class="input-group-addon">'+t.icons.rightIcon+"</span>"):"bootstrap4"===t.uiLibrary?$('<span class="input-group-append"><button class="btn btn-outline-secondary border-left-0" type="button">'+t.icons.rightIcon+"</button></span>"):$(t.icons.rightIcon)).attr("role","right-icon"),0===r.length?(r=$('<div role="wrapper" />').addClass(t.style.wrapper),e.wrap(r)):r.addClass(t.style.wrapper),r=e.parent('div[role="wrapper"]'),t.width&&r.css("width",t.width),e.val(t.value).addClass(t.style.input).attr("role","input"),t.fontSize&&e.css("font-size",t.fontSize),"bootstrap"===t.uiLibrary||"bootstrap4"===t.uiLibrary?"small"===t.size?(r.addClass("input-group-sm"),e.addClass("form-control-sm")):"large"===t.size&&(r.addClass("input-group-lg"),e.addClass("form-control-lg")):"small"===t.size?r.addClass("small"):"large"===t.size&&r.addClass("large"),i.on("click",function(){o.is(":visible")?e.close():e.open()}),r.append(i),!0!==t.footer&&(e.on("blur",function(){e.timeout=setTimeout(function(){e.close()},500)}),o.mousedown(function(){return clearTimeout(e.timeout),e.focus(),!1}),o.on("click",function(){clearTimeout(e.timeout),e.focus()}))}},gj.picker.widget=function(e){var t=this,n=gj.picker.methods;return t.destroy=function(){return n.destroy(this)},e},gj.picker.widget.prototype=new gj.widget,gj.picker.widget.constructor=gj.picker.widget,gj.picker.widget.prototype.init=function(e,t){return gj.widget.prototype.init.call(this,e,t),this.attr("data-"+t,"true"),gj.picker.methods.initialize(this,this.data(),gj[t].methods),this},gj.picker.widget.prototype.open=function(e){var t=this.data(),n=$("body").find('[role="picker"][guid="'+this.attr("data-guid")+'"]');return n.show(),n.closest('div[role="modal"]').show(),t.modal?gj.core.center(n):(gj.core.setChildPosition(this[0],n[0]),this.focus()),clearTimeout(this.timeout),gj[e].events.open(this),this},gj.picker.widget.prototype.close=function(e){var t=$("body").find('[role="picker"][guid="'+this.attr("data-guid")+'"]');return t.hide(),t.closest('div[role="modal"]').hide(),gj[e].events.close(this),this},gj.picker.widget.prototype.destroy=function(e){var t=this.data(),n=this.parent(),i=$("body").find('[role="picker"][guid="'+this.attr("data-guid")+'"]');return t&&(this.off(),0<i.parent('[role="modal"]').length&&i.unwrap(),i.remove(),this.removeData(),this.removeAttr("data-type").removeAttr("data-guid").removeAttr("data-"+e),this.removeClass(),n.children('[role="right-icon"]').remove(),this.unwrap()),this},gj.dialog={plugins:{},messages:{}}
17,gj.dialog.config={base:{autoOpen:!0,closeButtonInHeader:!0,closeOnEscape:!0,draggable:!0,height:"auto",locale:"en-us",maxHeight:undefined,maxWidth:undefined,minHeight:undefined,minWidth:undefined,modal:!1,resizable:!1,scrollable:!1,title:undefined,uiLibrary:undefined,width:300,style:{modal:"gj-modal",content:"gj-dialog-md",header:"gj-dialog-md-header gj-unselectable",headerTitle:"gj-dialog-md-title",headerCloseButton:"gj-dialog-md-close",body:"gj-dialog-md-body",footer:"gj-dialog-footer gj-dialog-md-footer"}},bootstrap:{style:{modal:"modal",content:"modal-content gj-dialog-bootstrap",header:"modal-header",headerTitle:"modal-title",headerCloseButton:"close",body:"modal-body",footer:"gj-dialog-footer modal-footer"}},bootstrap4:{style:{modal:"modal",content:"modal-content gj-dialog-bootstrap4",header:"modal-header",headerTitle:"modal-title",headerCloseButton:"close",body:"modal-body",footer:"gj-dialog-footer modal-footer"}}},gj.dialog.events={initialized:function(e){e.trigger("initialized")},opening:function(e){e.trigger("opening")},opened:function(e){e.trigger("opened")},closing:function(e){e.trigger("closing")},closed:function(e){e.trigger("closed")},drag:function(e){e.trigger("drag")},dragStart:function(e){e.trigger("dragStart")},dragStop:function(e){e.trigger("dragStop")},resize:function(e){e.trigger("resize")},resizeStart:function(e){e.trigger("resizeStart")},resizeStop:function(e){e.trigger("resizeStop")}},gj.dialog.methods={init:function(e){return gj.widget.prototype.init.call(this,e,"dialog"),gj.dialog.methods.localization(this),gj.dialog.methods.initialize(this),gj.dialog.events.initialized(this),this},localization:function(e){var t=e.data();"undefined"==typeof t.title&&(t.title=gj.dialog.messages[t.locale].DefaultTitle)},getHTMLConfig:function(){var e=gj.widget.prototype.getHTMLConfig.call(this),t=this[0].attributes;return t.title&&(e.title=t.title.value),e},initialize:function(t){var e,n,i,o=t.data();t.addClass(o.style.content),gj.dialog.methods.setSize(t),o.closeOnEscape&&$(document).keyup(function(e){27===e.keyCode&&t.close()}),0===(n=t.children('div[data-role="body"]')).length?(n=$('<div data-role="body"/>').addClass(o.style.body),t.wrapInner(n)):n.addClass(o.style.body),e=gj.dialog.methods.renderHeader(t),i=t.children('div[data-role="footer"]').addClass(o.style.footer),t.find('[data-role="close"]').on("click",function(){t.close()}),gj.draggable&&(o.draggable&&gj.dialog.methods.draggable(t,e),o.resizable&&gj.dialog.methods.resizable(t)),o.scrollable&&o.height&&(t.addClass("gj-dialog-scrollable"),t.on("opened",function(){t.children('div[data-role="body"]').css("height",o.height-e.outerHeight()-(i.length?i.outerHeight():0))})),gj.core.center(t),o.modal&&t.wrapAll('<div data-role="modal" class="'+o.style.modal+'"/>'),o.autoOpen&&t.open()},setSize:function(e){var t=e.data();t.width&&e.css("width",t.width),t.height&&e.css("height",t.height)},renderHeader:function(e){var t,n,i,o=e.data();return 0===(t=e.children('div[data-role="header"]')).length&&(t=$('<div data-role="header" />'),e.prepend(t)),t.addClass(o.style.header),0===(n=t.find('[data-role="title"]')).length&&(n=$('<h4 data-role="title">'+o.title+"</h4>"),t.append(n)),n.addClass(o.style.headerTitle),0===(i=t.find('[data-role="close"]')).length&&o.closeButtonInHeader?((i=$('<button type="button" data-role="close" title="'+gj.dialog.messages[o.locale].Close+'"><span>\xd7</span></button>')).addClass(o.style.headerCloseButton),t.append(i)):0<i.length&&!1===o.closeButtonInHeader?i.hide():i.addClass(o.style.headerCloseButton),t},draggable:function(e,t){e.appendTo("body"),t.addClass("gj-draggable"),e.draggable({handle:t,start:function(){e.addClass("gj-unselectable"),gj.dialog.events.dragStart(e)},stop:function(){e.removeClass("gj-unselectable"),gj.dialog.events.dragStop(e)}})},resizable:function(e){var t={drag:gj.dialog.methods.resize,start:function(){e.addClass("gj-unselectable"),gj.dialog.events.resizeStart(e)},stop:function(){this.removeAttribute("style"),e.removeClass("gj-unselectable"),gj.dialog.events.resizeStop(e)}};e.append($('<div class="gj-resizable-handle gj-resizable-n"></div>').draggable($.extend(!0,{horizontal:!1},t))),e.append($('<div class="gj-resizable-handle gj-resizable-e"></div>').draggable($.extend(!0,{vertical:!1},t))),e.append($('<div class="gj-resizable-handle gj-resizable-s"></div>').draggable($.extend(!0,{horizontal:!1},t))),e.append($('<div class="gj-resizable-handle gj-resizable-w"></div>').draggable($.extend(!0,{vertical:!1},t))),e.append($('<div class="gj-resizable-handle gj-resizable-ne"></div>').draggable($.extend(!0,{},t))),e.append($('<div class="gj-resizable-handle gj-resizable-nw"></div>').draggable($.extend(!0,{},t))),e.append($('<div class="gj-resizable-handle gj-resizable-sw"></div>').draggable($.extend(!0,{},t))),e.append($('<div class="gj-resizable-handle gj-resizable-se"></div>').draggable($.extend(!0,{},t)))},resize:function(e,t){var n,i,o,r,s,a,l,c,d=!1;return i=(n=$(this)).parent(),o=gj.core.position(this),offset={top:t.top-o.top,left
vendor: 9,900 bytes, line 17
17:t.left-o.left},r=i.data(),n.hasClass("gj-resizable-n")?(s=i.height()-offset.top,l=i.offset().top+offset.top):n.hasClass("gj-resizable-e")?a=i.width()+offset.left:n.hasClass("gj-resizable-s")?s=i.height()+offset.top:n.hasClass("gj-resizable-w")?(a=i.width()-offset.left,c=i.offset().left+offset.left):n.hasClass("gj-resizable-ne")?(s=i.height()-offset.top,l=i.offset().top+offset.top,a=i.width()+offset.left):n.hasClass("gj-resizable-nw")?(s=i.height()-offset.top,l=i.offset().top+offset.top,a=i.width()-offset.left,c=i.offset().left+offset.left):n.hasClass("gj-resizable-se")?(s=i.height()+offset.top,a=i.width()+offset.left):n.hasClass("gj-resizable-sw")&&(s=i.height()+offset.top,a=i.width()-offset.left,c=i.offset().left+offset.left),s&&(!r.minHeight||s>=r.minHeight)&&(!r.maxHeight||s<=r.maxHeight)&&(i.height(s),l&&i.css("top",l),d=!0),a&&(!r.minWidth||a>=r.minWidth)&&(!r.maxWidth||a<=r.maxWidth)&&(i.width(a),c&&i.css("left",c),d=!0),d&&gj.dialog.events.resize(i),d},open:function(e,t){var n;return gj.dialog.events.opening(e),e.css("display","block"),e.closest('div[data-role="modal"]').css("display","block"),(n=e.children('div[data-role="footer"]')).length&&n.outerHeight()&&e.children('div[data-role="body"]').css("margin-bottom",n.outerHeight()),t!==undefined&&e.find('[data-role="title"]').html(t),gj.dialog.events.opened(e),e},close:function(e){return e.is(":visible")&&(gj.dialog.events.closing(e),e.css("display","none"),e.closest('div[data-role="modal"]').css("display","none"),gj.dialog.events.closed(e)),e},isOpen:function(e){return e.is(":visible")},content:function(e,t){var n=e.children('div[data-role="body"]');return void 0===t?n.html():n.html(t)},destroy:function(e,t){var n=e.data();return n&&(!1===t?e.remove():(e.close(),e.off(),e.removeData(),e.removeAttr("data-type"),e.removeClass(n.style.content),e.find('[data-role="header"]').removeClass(n.style.header),e.find('[data-role="title"]').removeClass(n.style.headerTitle),e.find('[data-role="close"]').remove(),e.find('[data-role="body"]').removeClass(n.style.body),e.find('[data-role="footer"]').removeClass(n.style.footer))),e}},gj.dialog.widget=function(e,t){var n=this,i=gj.dialog.methods;return n.open=function(e){return i.open(this,e)},n.close=function(){return i.close(this)},n.isOpen=function(){return i.isOpen(this)},n.content=function(e){return i.content(this,e)},n.destroy=function(e){return i.destroy(this,e)},$.extend(e,n),"dialog"!==e.attr("data-type")&&i.init.call(e,t),e},gj.dialog.widget.prototype=new gj.widget,gj.dialog.widget.constructor=gj.dialog.widget,gj.dialog.widget.prototype.getHTMLConfig=gj.dialog.methods.getHTMLConfig,jQuery.fn.dialog=function(e){var t;if(this&&this.length){if("object"!=typeof e&&e){if((t=new gj.dialog.widget(this,null))[e])return t[e].apply(this,Array.prototype.slice.call(arguments,1));throw"Method "+e+" does not exist."}return new gj.dialog.widget(this,e)}},gj.dialog.messages["en-us"]={Close:"Close",DefaultTitle:"Dialog"},gj.draggable={plugins:{}},gj.draggable.config={base:{handle:undefined,vertical:!0,horizontal:!0,containment:undefined}},gj.draggable.methods={init:function(e){var t,n,i=this;return gj.widget.prototype.init.call(this,e,"draggable"),n=this.data(),i.attr("data-draggable","true"),(t=gj.draggable.methods.getHandleElement(i)).on("touchstart mousedown",function(){var e=gj.core.position(i[0]);i[0].style.top=e.top+"px",i[0].style.left=e.left+"px",i[0].style.position="fixed",i.attr("draggable-dragging",!0),i.removeAttr("draggable-x").removeAttr("draggable-y"),gj.documentManager.subscribeForEvent("touchmove",i.data("guid"),gj.draggable.methods.createMoveHandler(i,t,n)),gj.documentManager.subscribeForEvent("mousemove",i.data("guid"),gj.draggable.methods.createMoveHandler(i,t,n))}),gj.documentManager.subscribeForEvent("mouseup",i.data("guid"),gj.draggable.methods.createUpHandler(i)),gj.documentManager.subscribeForEvent("touchend",i.data("guid"),gj.draggable.methods.createUpHandler(i)),gj.documentManager.subscribeForEvent("touchcancel",i.data("guid"),gj.draggable.methods.createUpHandler(i)),i},getHandleElement:function(e){var t=e.data("handle");return t&&t.length?t:e},createUpHandler:function(t){return function(e){"true"===t.attr("draggable-dragging")&&(t.attr("draggable-dragging",!1),gj.documentManager.unsubscribeForEvent("mousemove",t.data("guid")),gj.documentManager.unsubscribeForEvent("touchmove",t.data("guid")),gj.draggable.events.stop(t,{x:t.mouseX(e),y:t.mouseY(e)}))}},createMoveHandler:function(a,e,l){return function(e){var t,n,i,o,r,s;"true"===a.attr("draggable-dragging")&&(t=Math.round(a.mouseX(e)),n=Math.round(a.mouseY(e)),r=a.attr("draggable-x"),s=a.attr("draggable-y"),r&&s?(i=l.horizontal?t-parseInt(r,10):0,o=l.vertical?n-parseInt(s,10):0,gj.draggable.methods.move(a[0],l,i,o,t,n)):gj.draggable.events.start(a,t,n),a.attr("draggable-x",t),a.attr("draggable-y",n))}},move:function(e,t,n,i,o,r){var s,a,l,c=gj.core.position(e),d=c.top+i,u=c.left+n;t.containment&&(a=(s=gj.core.position(t.containment)).top+gj.core.height(t.containment)-gj.core.height(e),l=s.left+gj.core.width(t.containment)-gj.core.width(e),d>s.top&&d<a?(s.top>=r||s.bottom<=r)&&(d=c.top):d=d<=s.top?s.top+1:a-1,u>s.left&&u<l?(s.left>=o||s.right<=o)&&(u=c.left):u=u<=s.left?s.left+1:l-1),!1!==gj.draggable.events.drag($(e),u,d,o,r)&&(e.style.top=d+"px",e.style.left=u+"px")},destroy:function(e){return"true"===e.attr("data-draggable")&&(gj.documentManager.unsubscribeForEvent("mouseup",e.data("guid")),e.removeData(),e.removeAttr("data-guid").removeAttr("data-type").removeAttr("data-draggable"),e.removeAttr("draggable-x").removeAttr("draggable-y").removeAttr("draggable-dragging"),e[0].style.top="",e[0].style.left="",e[0].style.position="",e.off("drag").off("start").off("stop"),gj.draggable.methods.getHandleElement(e).off("mousedown")),e}},gj.draggable.events={drag:function(e,t,n,i,o){return e.triggerHandler("drag",[{left:t,top:n},{x:i,y:o}])},start:function(e,t,n){e.triggerHandler("start",[{x:t,y:n}])},stop:function(e,t){e.triggerHandler("stop",[t])}},gj.draggable.widget=function(e,t){var n=this,i=gj.draggable.methods;return e.destroy||(n.destroy=function(){return i.destroy(this)}),$.extend(e,n),"true"!==e.attr("data-draggable")&&i.init.call(e,t),e},gj.draggable.widget.prototype=new gj.widget,gj.draggable.widget.constructor=gj.draggable.widget,jQuery.fn.draggable=function(e){var t;if(this&&this.length){if("object"!=typeof e&&e){if((t=new gj.draggable.widget(this,null))[e])return t[e].apply(this,Array.prototype.slice.call(arguments,1));throw"Method "+e+" does not exist."}return new gj.draggable.widget(this,e)}},gj.droppable={plugins:{}},gj.droppable.config={hoverClass:undefined},gj.droppable.methods={init:function(e){var t=this;return gj.widget.prototype.init.call(this,e,"droppable"),t.attr("data-droppable","true"),gj.documentManager.subscribeForEvent("mousedown",t.data("guid"),gj.droppable.methods.createMouseDownHandler(t)),gj.documentManager.subscribeForEvent("mousemove",t.data("guid"),gj.droppable.methods.createMouseMoveHandler(t)),gj.documentManager.subscribeForEvent("mouseup",t.data("guid"),gj.droppable.methods.createMouseUpHandler(t)),t},createMouseDownHandler:function(e){return function(){e.isDragging=!0}},createMouseMoveHandler:function(o){return function(e){if(o.isDragging){var t=o.data("hoverClass"),n={x:o.mouseX(e),y:o.mouseY(e)},i=gj.droppable.methods.isOver(o,n);i!=o.isOver&&(i?(t&&o.addClass(t),gj.droppable.events.over(o,n)):(t&&o.removeClass(t),gj.droppable.events.out(o))),o.isOver=i}}},createMouseUpHandler:function(n){return function(e){var t={left:n.mouseX(e),top:n.mouseY(e)};n.isDragging=!1,gj.droppable.methods.isOver(n,t)&&gj.droppable.events.drop(n)}},isOver:function(e,t){var n=e.offset().top,i=e.offset().left;return t.x>i&&t.x<i+e.outerWidth(!0)&&t.y>n&&t.y<n+e.outerHeight(!0)},destroy:function(e){return"true"===e.attr("data-droppable")&&(gj.documentManager.unsubscribeForEvent("mousedown",e.data("guid")),gj.documentManager.unsubscribeForEvent("mousemove",e.data("guid")),gj.documentManager.unsubscribeForEvent("mouseup",e.data("guid")),e.removeData(),e.removeAttr("data-guid"),e.removeAttr("data-droppable"),e.off("drop").off("over").off("out")),e}},gj.droppable.events={drop:function(e,t,n){e.trigger("drop",[{top:n,left:t}])},over:function(e,t){e.trigger("over",[t])},out:function(e){e.trigger("out")}},gj.droppable.widget=function(e,t){var n=this,i=gj.droppable.methods;return n.isOver=!1,n.isDragging=!1,n.destroy=function(){return i.destroy(this)},n.isOver=function(e){return i.isOver(this,e)},$.extend(e,n),"true"!==e.attr("data-droppable")&&i.init.call(e,t),e},gj.droppable.widget.prototype=new gj.widget,gj.droppable.widget.constructor=gj.droppable.widget,jQuery.fn.droppable=function(e){var t;if(this&&this.length){if("object"!=typeof e&&e){if((t=new gj.droppable.widget(this,null))[e])return t[e].apply(this,Array.prototype.slice.call(arguments,1));throw"Method "+e+" does not exist."}return new gj.droppable.widget(this,e)}},gj.grid={plugins:{},messages:{}},gj.grid.config={base:{dataSource:undefined,columns:[],autoGenerateColumns:!1,defaultColumnSettings:{hidden:!1,width:undefined,sortable:!1,type:"text",title:undefined,field:undefined,align:undefined,cssClass:undefined,headerCssClass:undefined,tooltip:undefined,icon:undefined,events:undefined,format:"mm/dd/yyyy",decimalDigits:undefined,tmpl:undefined,stopPropagation:!1,renderer:undefined,filter:undefined},mapping:{dataField:"records",totalRecordsField:"total"},params:{},paramNames:{sortBy:"sortBy",direction:"direction"},uiLibrary:"materialdesign",iconsLibrary:"materialicons",selectionType:"single",selectionMethod:"basic",autoLoad:!0,notFoundText:undefined,width:undefined,minWidth:undefined,headerRowHeight:"fixed",bodyRowHeight:"autogrow",fontSize:undefined,primaryKey:undefined,locale:"en-us",defaultIconColumnWidth:70,defaultCheckBoxColumnWidth:70,style:{wrapper:"gj-grid-wrapper",table:"gj-grid gj-gri
17d-md",loadingCover:"gj-grid-loading-cover",loadingText:"gj-grid-loading-text",header:{cell:undefined,sortable:"gj-cursor-pointer gj-unselectable"},content:{rowSelected:"gj-grid-md-select"}},icons:{asc:"\u25b2",desc:"\u25bc"}},bootstrap:{style:{wrapper:"gj-grid-wrapper",table:"gj-grid gj-grid-bootstrap gj-grid-bootstrap-3 table table-bordered table-hover",content:{rowSelected:"active"}},iconsLibrary:"glyphicons",defaultIconColumnWidth:34,defaultCheckBoxColumnWidth:36},bootstrap4:{style:{wrapper:"gj-grid-wrapper",table:"gj-grid gj-grid-bootstrap gj-grid-bootstrap-4 table table-bordered table-hover",content:{rowSelected:"active"}},defaultIconColumnWidth:42,defaultCheckBoxColumnWidth:44},materialicons:{icons:{asc:'<i class="gj-icon arrow-upward" />',desc:'<i class="gj-icon arrow-downward" />'}},fontawesome:{icons:{asc:'<i class="fa fa-sort-amount-asc" aria-hidden="true"></i>',desc:'<i class="fa fa-sort-amount-desc" aria-hidden="true"></i>'}},glyphicons:{icons:{asc:'<span class="glyphicon glyphicon-sort-by-alphabet" />',desc:'<span class="glyphicon glyphicon-sort-by-alphabet-alt" />'}}},gj.grid.events={beforeEmptyRowInsert:function(e,t){return e.triggerHandler("beforeEmptyRowInsert",[t])},dataBinding:function(e,t){return e.triggerHandler("dataBinding",[t])},dataBound:function(e,t,n){return e.triggerHandler("dataBound",[t,n])},rowDataBound:function(e,t,n,i){return e.triggerHandler("rowDataBound",[t,n,i])},cellDataBound:function(e,t,n,i,o){return e.triggerHandler("cellDataBound",[t,n,i,o])},rowSelect:function(e,t,n,i){return e.triggerHandler("rowSelect",[t,n,i])},rowUnselect:function(e,t,n,i){return e.triggerHandler("rowUnselect",[t,n,i])},rowRemoving:function(e,t,n,i){return e.triggerHandler("rowRemoving",[t,n,i])},destroying:function(e){return e.triggerHandler("destroying")},columnHide:function(e,t){return e.triggerHandler("columnHide",[t])},columnShow:function(e,t){return e.triggerHandler("columnShow",[t])},initialized:function(e){return e.triggerHandler("initialized")},dataFiltered:function(e,t){return e.triggerHandler("dataFiltered",[t])}},gj.grid.methods={init:function(e){return gj.widget.prototype.init.call(this,e,"grid"),gj.grid.methods.initialize(this),this.data("autoLoad")&&this.reload(),this},getConfig:function(e,t){var n=gj.widget.prototype.getConfig.call(this,e,t);return gj.grid.methods.setDefaultColumnConfig(n.columns,n.defaultColumnSettings),n},setDefaultColumnConfig:function(e,t){var n,i;if(e&&e.length)for(i=0;i<e.length;i++)n=$.extend(!0,{},t),$.extend(!0,n,e[i]),e[i]=n},getHTMLConfig:function(){var i=gj.widget.prototype.getHTMLConfig.call(this);return i.columns=[],this.find("thead > tr >
17 th").each(function(){var e=$(this),t=e.text(),n=gj.widget.prototype.getHTMLConfig.call(e);n.title=t,n.field||(n.field=t),n.events&&(n.events=gj.grid.methods.eventsParser(n.events)),i.columns.push(n)}),i},eventsParser:function(events){var result={},list,i,key,func,position;for(list=events.split(","),i=0;i<list.length;i++)position=list[i].indexOf(":"),0<position&&(key=$.trim(list[i].substr(0,position)),func=$.trim(list[i].substr(position+1,list[i].length)),result[key]=eval("window."+func));return result},initialize:function(t){var e=t.data(),n=t.parent('div[data-role="wrapper"]');gj.grid.methods.localization(e),0===n.length?(n=$('<div data-role="wrapper" />').addClass(e.style.wrapper),t.wrap(n)):n.addClass(e.style.wrapper),e.width&&t.parent().css("width",e.width),e.minWidth&&t.css("min-width",e.minWidth),e.fontSize&&t.css("font-size",e.fontSize),"autogrow"===e.headerRowHeight&&t.addClass("autogrow-header-row"),"fixed"===e.bodyRowHeight&&t.addClass("fixed-body-rows"),t.addClass(e.style.table),"checkbox"===e.selectionMethod&&e.columns.splice(gj.grid.methods.getColumnPositionNotInRole(t),0,{title:"",width:e.defaultCheckBoxColumnWidth,align:"center",type:"checkbox",role:"selectRow",events:{click:function(e){gj.grid.methods.setSelected(t,e.data.id,$(this).closest("tr"))}},headerCssClass:"gj-grid-select-all",stopPropagation:!0}),0===t.children("tbody").length&&t.append($("<tbody/>")),gj.grid.methods.renderHeader(t),gj.grid.methods.appendEmptyRow(t,"&nbsp;"),gj.grid.events.initialized(t)},localization:function(e){e.notFoundText||(e.notFoundText=gj.grid.messages[e.locale].NoRecordsFound)},renderHeader:function(e){var t,n,i,o,r,s,a,l,c;for(n=(t=e.data()).columns,i=t.style.header,0===(o=e.children("thead")).length&&(o=$("<thead />"),e.prepend(o)),r=$('<tr data-role="caption" />'),l=0;l<n.length;l+=1)s=$('<th data-field="'+(n[l].field||"")+'" />'),n[l].width?s.attr("width",n[l].width):"checkbox"===n[l].type&&s.attr("width",t.defaultIconColumnWidth),s.addClass(i.cell),n[l].headerCssClass&&s.addClass(n[l].headerCssClass),s.css("text-align",n[l].align||"left"),"checkbox"===t.selectionMethod&&"multiple"===t.selectionType&&"checkbox"===n[l].type&&"selectRow"===n[l].role?(0===(c=s.find('input[data-role="selectAll"]')).length&&(c=$('<input type="checkbox" data-role="selectAll" />'),s.append(c),c.checkbox({uiLibrary:t.uiLibrary})),c.off("click").on("click",function(){this.checked?e.selectAll():e.unSelectAll()})):(a=$('<div data-role="title"/>').html("undefined"==typeof n[l].title?n[l].field:n[l].title),s.append(a),n[l].sortable&&(a.addClass(i.sortable),a.on("click",gj.grid.methods.createSortHandler(e,n[l])))),n[l].hidden&&s.hide(),r.append(s);o.empty().append(r)},createSortHandler:function(n,i){return function(){var e,t={};0<n.count()&&(t[(e=n.data()).paramNames.sortBy]=i.field,i.direction="asc"===i.direction?"desc":"asc",t[e.paramNames.direction]=i.direction,n.reload(t))}},updateHeader:function(e){var t,n,i=e.data(),o=i.params[i.paramNames.sortBy],r=i.params[i.paramNames.direction];e.find('thead tr th [data-role="sorticon"]').remove(),o&&(position=gj.grid.methods.getColumnPosition(e.data("columns"),o),-1<position&&(n=e.find("thead tr th:eq("+position+') div[data-role="title"]'),t=$('<div data-role="sorticon" class="gj-unselectable" />').append("desc"===r?i.icons.desc:i.icons.asc),n.after(t)))},useHtmlDataSource:function(e,t){var n,i,o,r,s=[],a=e.find('tbody tr[data-role != "empty"]');for(n=0;n<a.length;n++){for(o=$(a[n]).find("td"),r={},i=0;i<o.length;i++)r[t.columns[i].field]=$(o[i]).html();s.push(r)}t.dataSource=s},startLoading:function(e){var t,n,i,o,r,s,a;gj.grid.methods.stopLoading(e),a=e.data(),0!==e.outerHeight()&&(o=(t=e.children("tbody")).outerWidth(!1),r=t.outerHeight(!1),s=Math.abs(e.parent().offset().top-t.offset().top),n=$('<div data-role="loading-cover" />').addClass(a.style.loadingCover).css({width:o,height:r,top:s}),(i=$('<div data-role="loading-text">'+gj.grid.messages[a.locale].Loading+"</div>").addClass(a.style.loadingText)).insertAfter(e),n.insertAfter(e),i.css({top:s+r/2-i.outerHeight(!1)/2,left:o/2-i.outerWidth(!1)/2}))},stopLoading:function(e){e.parent().find('div[data-role="loading-cover"]').remove(),e.parent().find('div[data-role="loading-text"]').remove()},appendEmptyRow:function(e,t){var n,i,o,r;n=e.data(),i=$('<tr data-role="empty"/>'),(o=$("<td/>").css({width:"100%","text-align":"center"})).attr("colspan",gj.grid.methods.countVisibleColumns(e)),r=$("<div />").html(t||n.notFoundText),o.append(r),i.append(o),gj.grid.events.beforeEmptyRowInsert(e,i),e.append(i)},autoGenerateColumns:function(e,t){var n,i,o,r,s=e.data();if(s.columns=[],0<t.length){for(n=Object.getOwnPropertyNames(t[0]),r=0;r<n.length;r++)o="text",(i=t[0][n[r]])&&("number"==typeof i?o="number":-1<i.indexOf("/Date(")&&(o="date")),s.columns.push({f
vendor: 13,691 bytes, lines 17-18
17ield:n[r],type:o});gj.grid.methods.setDefaultColumnConfig(s.columns,s.defaultColumnSettings)}gj.grid.methods.renderHeader(e)},loadData:function(e){var t,n,i,o,r,s,a,l;for(t=e.data(),n=e.getAll(),gj.grid.events.dataBinding(e,n),o=n.length,gj.grid.methods.stopLoading(e),t.autoGenerateColumns&&gj.grid.methods.autoGenerateColumns(e,n),s=e.children("tbody"),"checkbox"===t.selectionMethod&&"multiple"===t.selectionType&&e.find('thead input[data-role="selectAll"]').prop("checked",!1),s.children("tr").not('[data-role="row"]').remove(),0===o&&(s.empty(),gj.grid.methods.appendEmptyRow(e)),r=(a=s.children("tr")).length,i=0;i<r;i++){if(!(i<o)){s.find('tr[data-role="row"]:gt('+(i-1)+")").remove();break}l=a.eq(i),gj.grid.methods.renderRow(e,l,n[i],i)}for(i=r;i<o;i++)gj.grid.methods.renderRow(e,null,n[i],i);gj.grid.events.dataBound(e,n,t.totalRecords)},getId:function(e,t,n){return t&&e[t]?e[t]:n},renderRow:function(e,t,n,i){var o,r,s,a,l;for(a=e.data(),t&&0!==t.length?(l="update",t.removeClass(a.style.content.rowSelected).removeAttr("data-selected").off("click")):(l="create",t=$('<tr data-role="row"/>'),e.children("tbody").append(t)),o=gj.grid.methods.getId(n,a.primaryKey,i+1),t.attr("data-position",i+1),"checkbox"!==a.selectionMethod&&t.on("click",gj.grid.methods.createRowClickHandler(e,o)),s=0;s<a.columns.length;s++)"update"===l?(r=t.find("td:eq("+s+")"),gj.grid.methods.renderCell(e,r,a.columns[s],n,o)):(r=gj.grid.methods.renderCell(e,null,a.columns[s],n,o),t.append(r));gj.grid.events.rowDataBound(e,t,o,n)},renderCell:function(e,t,n,i,o,r){var s,a;if(t&&0!==t.length?(s=t.find('div[data-role="display"]'),r="update"):(t=$("<td/>"),s=$('<div data-role="display" />'),n.align&&t.css("text-align",n.align),n.cssClass&&t.addClass(n.cssClass),t.append(s),r="create"),gj.grid.methods.renderDisplayElement(e,s,n,i,o,r),"update"===r&&(t.off(),s.off()),n.events)for(a in n.events)n.events.hasOwnProperty(a)&&t.on(a,{id:o,field:n.field,record:i},gj.grid.methods.createCellEventHandler(n,n.events[a]));return n.hidden&&t.hide(),gj.grid.events.cellDataBound(e,s,o,n,i),t},createCellEventHandler:function(t,n){return function(e){t.stopPropagation&&e.stopPropagation(),n.call(this,e)}},renderDisplayElement:function(e,t,n,i,o,r){var s,a;"checkbox"===n.type&&gj.checkbox?"create"===r?(a=$('<input type="checkbox" />').val(o).prop("checked",!!i[n.field]),n.role&&a.attr("data-role",n.role),t.append(a),a.checkbox({uiLibrary:e.data("uiLibrary")}),"selectRow"===n.role?a.on("click",function(){return!1}):a.prop("disabled",!0)):t.find('input[type="checkbox"]').val(o).prop("checked",!!i[n.field]):"icon"===n.type?"create"===r&&(t.append($("<span/>").addClass(n.icon).css({cursor:"pointer"})),"bootstrap"===e.data().uiLibrary&&t.children("span").addClass("glyphicon"),n.stopPropagation=!0):n.tmpl?(s=n.tmpl,n.tmpl.replace(/\{(.+?)\}/g,function(e,t){s=s.replace(e,gj.grid.methods.formatText(i[t],n))}),t.html(s)):n.renderer&&"function"==typeof n.renderer?(s=n.renderer(i[n.field],i,t.parent(),t,o,e))&&t.html(s):(i[n.field]=gj.grid.methods.formatText(i[n.field],n),!n.tooltip&&i[n.field]&&t.attr("title",i[n.field]),t.html(i[n.field])),n.tooltip&&"create"===r&&t.attr("title",n.tooltip)},formatText:function(e,t){return e=e&&-1<["date","time","datetime"].indexOf(t.type)?gj.core.formatDate(gj.core.parseDate(e,t.format),t.format):null==e?"":e.toString(),t.decimalDigits&&e&&(e=parseFloat(e).toFixed(t.decimalDigits)),e},setRecordsData:function(e,t){var n=[],i=0,o=e.data();return $.isArray(t)?i=(n=t).length:o&&o.mapping&&$.isArray(t[o.mapping.dataField])&&(n=t[o.mapping.dataField],(i=t[o.mapping.totalRecordsField])&&!isNaN(i)||(i=0)),e.data("records",n),e.data("totalRecords",i),n},createRowClickHandler:function(e,t){return function(){gj.grid.methods.setSelected(e,t,$(this))}},selectRow:function(e,t,n,i){var o;return n.addClass(t.style.content.rowSelected),n.attr("data-selected","true"),"checkbox"===t.selectionMethod&&((o=n.find('input[type="checkbox"][data-role="selectRow"]')).length&&!o.prop("checked")&&o.prop("checked",!0),"multiple"===t.selectionType&&e.getSelections().length===e.count(!1)&&e.find('thead input[data-role="selectAll"]').prop("checked",!0)),gj.grid.events.rowSelect(e,n,i,e.getById(i))},unselectRow:function(e,t,n,i){var o;if("true"===n.attr("data-selected"))return n.removeClass(t.style.content.rowSelected),"checkbox"===t.selectionMethod&&((o=n.find('td input[type="checkbox"][data-role="selectRow"]')).length&&o.prop("checked")&&o.prop("checked",!1),"multiple"===t.selectionType&&e.find('thead input[data-role="selectAll"]').prop("checked",!1)),n.removeAttr("data-selected"),gj.grid.events.rowUnselect(e,n,i,e.getById(i))},setSelected:function(n,e,t){var i=n.data();return t&&t.length||(t=gj.grid.methods.getRowById(n,e)),t&&("true"===t.attr("data-selected")?gj.grid.methods.unselectRow(n,i,t,e):("single"===i.selectionType&&t.siblings('[data-selected="true"]').each(function(){var e=$(this),t=gj.grid.methods.getId(e,i.primaryKey,e.data("position"));gj.grid.methods.unselectRow(n,i,e,t)}),gj.grid.methods.selectRow(n,i,t,e))),n},selectAll:function(o){var r=o.data();return o.find('tbody tr[data-role="row"]').each(function(){var e=$(this),t=e.data("position"),n=o.get(t),i=gj.grid.methods.getId(n,r.primaryKey,t);gj.grid.methods.selectRow(o,r,e,i)}),o.find('thead input[data-role="selectAll"]').prop("checked",!0),o},unSelectAll:function(o){var r=o.data();return o.find("tbody tr").each(function(){var e=$(this),t=e.data("position"),n=o.get(t),i=gj.grid.methods.getId(n,r.primaryKey,t);gj.grid.methods.unselectRow(o,r,e,i),e.find('input[type="checkbox"][data-role="selectRow"]').prop("checked",!1)}),o.find('thead input[data-role="selectAll"]').prop("checked",!1),o},getSelected:function(e){var t,n,i,o=null;return 0<(t=e.find('tbody>tr[data-selected="true"]')).length&&(i=$(t[0]).data("position"),n=e.get(i),o=gj.grid.methods.getId(n,e.data().primaryKey,i)),o},getSelectedRows:function(e){e.data();return e.find('tbody>tr[data-selected="true"]')},getSelections:function(e){var t,n,i=[],o=e.data(),r=gj.grid.methods.getSelectedRows(e);return 0<r.length&&r.each(function(){t=$(this).data("position"),n=e.get(t),i.push(gj.grid.methods.getId(n,o.primaryKey,t))}),i},getById:function(e,t){var n,i=null,o=e.data("primaryKey"),r=e.data("records");if(o){for(n=0;n<r.length;n++)if(r[n][o]==t){i=r[n];break}}else i=e.get(t);return i},getRecVPosById:function(e,t){var n,i=t,o=e.data();if(o.primaryKey)for(n=0;n<o.dataSource.length;n++)if(o.dataSource[n][o.primaryKey]==t){i=n;break}return i},getRowById:function(e,t){var n,i,o=e.getAll(!1),r=e.data("primaryKey"),s=undefined;if(r){for(i=0;i<o.length;i++)if(o[i][r]==t){n=i+1;break}}else n=t;return n&&(s=e.children("tbody").children('tr[data-position="'+n+'"]')),s},getByPosition:function(e,t){return e.getAll(!1)[t-1]},getColumnPosition:function(e,t){
18var n,i=-1;for(n=0;n<e.length;n++)if(e[n].field===t){i=n;break}return i},getColumnInfo:function(e,t){var n,i={},o=e.data();for(n=0;n<o.columns.length;n+=1)if(o.columns[n].field===t){i=o.columns[n];break}return i},getCell:function(e,t,n){var i,o=null;return-1<(i=gj.grid.methods.getColumnPosition(e.data("columns"),n))&&(o=gj.grid.methods.getRowById(e,t).find("td:eq("+i+') div[data-role="display"]')),o},setCellContent:function(e,t,n,i){var o,r=gj.grid.methods.getCell(e,t,n);r&&(r.empty(),"object"==typeof i?r.append(i):(o=gj.grid.methods.getColumnInfo(e,n),gj.grid.methods.renderDisplayElement(e,r,o,e.getById(t),t,"update")))},clone:function(e){var t=[];return $.each(e,function(){t.push(this.clone())}),t},getAll:function(e){return e.data("records")},countVisibleColumns:function(e){var t,n,i;for(t=e.data().columns,i=n=0;i<t.length;i++)!0!==t[i].hidden&&n++;return n},clear:function(e,t){var n=e.data();return e.xhr&&e.xhr.abort(),e.children("tbody").empty(),n.records=[],gj.grid.methods.stopLoading(e),gj.grid.methods.appendEmptyRow(e,t?n.notFoundText:"&nbsp;"),gj.grid.events.dataBound(e,[],0),e},render:function(e,t){return t&&(gj.grid.methods.setRecordsData(e,t),gj.grid.methods.updateHeader(e),gj.grid.methods.loadData(e)),e},filter:function(e){var i,o,r=e.data(),t=r.dataSource.slice();for(i in r.params[r.paramNames.sortBy]&&(o=gj.grid.methods.getColumnInfo(e,r.params[r.paramNames.sortBy]),t.sort(o.sortable.sorter?o.sortable.sorter(o.direction,o):gj.grid.methods.createDefaultSorter(o.direction,o.field))),r.params)r.params[i]&&!r.paramNames[i]&&(o=gj.grid.methods.getColumnInfo(e,i),t=$.grep(t,function(e){var t=e[i]||"",n=r.params[i]||"";return o&&"function"==typeof o.filter?o.filter(t,n):-1<t.toUpperCase().indexOf(n.toUpperCase())}));return gj.grid.events.dataFiltered(e,t),t},createDefaultSorter:function(o,r){return function(e,t){var n=(e[r]||"").toString(),i=(t[r]||"").toString();return"asc"===o?n.localeCompare(i):i.localeCompare(n)}},destroy:function(e,t,n){return e.data()&&(gj.grid.events.destroying(e),gj.grid.methods.stopLoading(e),e.xhr&&e.xhr.abort(),e.off(),!1===n&&0<e.parent('div[data-role="wrapper"]').length&&e.unwrap(),e.removeData(),!1===t?e.remove():e.removeClass().empty(),e.removeAttr("data-type")),e},showColumn:function(e,t){var n,i=e.data(),o=gj.grid.methods.getColumnPosition(i.columns,t);return-1<o&&(e.find("thead>tr").each(function(){$(this).children("th").eq(o).show()}),$.each(e.find("tbody>tr"),function(){$(this).children("td").eq(o).show()}),i.columns[o].hidden=!1,(n=e.find('tbody > tr[data-role="empty"] > td'))&&n.length&&n.attr("colspan",gj.grid.methods.countVisibleColumns(e)),gj.grid.events.columnShow(e,i.columns[o])),e},hideColumn:function(e,t){var n,i=e.data(),o=gj.grid.methods.getColumnPosition(i.columns,t);return-1<o&&(e.find("thead>tr").each(function(){$(this).children("th").eq(o).hide()}),$.each(e.find("tbody>tr"),function(){$(this).children("td").eq(o).hide()}),i.columns[o].hidden=!0,(n=e.find('tbody > tr[data-role="empty"] > td'))&&n.length&&n.attr("colspan",gj.grid.methods.countVisibleColumns(e)),gj.grid.events.columnHide(e,i.columns[o])),e},isLastRecordVisible:function(){return!0},addRow:function(e,t){var n=e.data();return n.totalRecords=e.data("totalRecords")+1,gj.grid.events.dataBinding(e,[t]),n.records.push(t),$.isArray(n.dataSource)&&n.dataSource.push(t),1===n.totalRecords&&e.children("tbody").empty(),gj.grid.methods.isLastRecordVisible(e)&&gj.grid.methods.renderRow(e,null,t,e.count()-1),gj.grid.events.dataBound(e,[t],n.totalRecords),e},updateRow:function(e,t,n){var i,o=gj.grid.methods.getRowById(e,t),r=e.data();return r.records[o.data("position")-1]=n,$.isArray(r.dataSource)&&(i=gj.grid.methods.getRecVPosById(e,t),r.dataSource[i]=n),gj.grid.methods.renderRow(e,o,n,o.index()),e},removeRow:function(e,t){var n,i=e.data(),o=gj.grid.methods.getRowById(e,t);return gj.grid.events.rowRemoving(e,o,t,e.getById(t)),$.isArray(i.dataSource)&&(n=gj.grid.methods.getRecVPosById(e,t),i.dataSource.splice(n,1)),e.reload(),e},count:function(e,t){return t?e.data().totalRecords:e.getAll().length},getColumnPositionByRole:function(e,t){var n,i,o=e.data("columns");for(n=0;n<o.length;n++)if(o[n].role===t){i=n;break}return i},getColumnPositionNotInRole:function(e){var t,n=0,i=e.data("columns");for(t=0;t<i.length;t++)if(!i[t].role){n=t;break}return n}},gj.grid.widget=function(t,e){var n=this,i=gj.grid.methods;return n.reload=function(e){return i.startLoading(this),gj.widget.prototype.reload.call(this,e)},n.clear=function(e){return i.clear(this,e)},n.count=function(e){return i.count(this,e)},n.render=function(e){return i.render(t,e)},n.destroy=function(e,t){return i.destroy(this,e,t)},n.setSelected=function(e){return i.setSelected(this,e)},n.getSelected=function(){return i.getSelected(this)},n.getSelections=function(){return i.getSelections(this)},n.selectAll=function(){return i.selectAll(this)},n.unSelectAll=function(){return i.unSelectAll(this)},n.getById=function(e){return i.getById(this,e)},n.get=function(e){return i.getByPosition(this,e)},n.getAll=function(e){return i.getAll(this,e)},n.showColumn=function(e){return i.showColumn(this,e)},n.hideColumn=function(e){return i.hideColumn(this,e)},n.addRow=function(e){return i.addRow(this,e)},n.updateRow=function(e,t){return i.updateRow(this,e,t)},n.setCellContent=function(e,t,n){i.setCellContent(this,e,t,n)},n.removeRow=function(e){return i.removeRow(this,e)},$.extend(t,n),"grid"!==t.attr("data-type")&&i.init.call(t,e),t},gj.grid.widget.prototype=new gj.widget,gj.grid.widget.constructor=gj.grid.widget,gj.grid.widget.prototype.getConfig=gj.grid.methods.getConfig,gj.grid.widget.prototype.getHTMLConfig=gj.grid.methods.getHTMLConfig,jQuery.fn.grid=function(e){var t;if(this&&this.length){if("object"!=typeof e&&e){if((t=new gj.grid.widget(this,null))[e])return t[e].apply(this,Array.prototype.slice.call(arguments,1));throw"Method "+e+" does not exist."}return new gj.grid.widget(this,e)}},gj.grid.plugins.fixedHeader={config:{base:{fixedHeader:!1,height:300}},"private":{init:function(e){var t=e.data(),n=e.children("tbody"),i=e.children("thead"),o=t.height-i.outerHeight()-(e.children("tfoot").outerHeight()||0);e.addClass("gj-grid-scrollable"),n.css("width",i.outerWidth()),n.height(o)},refresh:function(e){e.data();var t,n,i=e.children("tbody"),o=e.children("thead"),r=e.find('tbody tr[data-role="row"] td'),s=e.find('thead tr[data-role="caption"] th');for(e.children("tbody").height()<gj.grid.plugins.fixedHeader["private"].getRowsHeight(e)?i.css("width",o.outerWidth()+gj.grid.plugins.fixedHeader["private"].getScrollBarWidth()+(-1<navigator.userAgent.toLowerCase().indexOf("firefox")?1:0)):i.css("width",o.outerWidth()),t=0;t<s.length;t++)n=$(s[t]).outerWidth(),0===t&&gj.core.isIE()&&(n-=1),$(r[t]).attr("width",n)},getRowsHeight:function(e){var t=0;return e.find("tbody tr").each(function(){t+=$(this).height()}),t}
18,getScrollBarWidth:function(){var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var i=e.offsetWidth;return n==i&&(i=t.clientWidth),document.body.removeChild(t),n-i}},"public":{},events:{},configure:function(e,t,n){$.extend(!0,e,gj.grid.plugins.fixedHeader["public"]);e.data();n.fixedHeader&&(e.on("initialized",function(){gj.grid.plugins.fixedHeader["private"].init(e)}),e.on("dataBound",function(){gj.grid.plugins.fixedHeader["private"].refresh(e)}),e.on("resize",function(){gj.grid.plugins.fixedHeader["private"].refresh(e)}))}},gj.grid.plugins.expandCollapseRows={config:{base:{detailTemplate:undefined,keepExpandedRows:!0,expandedRows:[],icons:{expandRow:'<i class="gj-icon chevron-right" />',collapseRow:'<i class="gj-icon chevron-down" />'}},fontawesome:{icons:{expandRow:'<i class="fa fa-angle-right" aria-hidden="true"></i>',collapseRow:'<i class="fa fa-angle-down" aria-hidden="true"></i>'}},glyphicons:{icons:{expandRow:'<span class="glyphicon glyphicon-chevron-right" />',collapseRow:'<span class="glyphicon glyphicon-chevron-down" />'}}},"private":{expandDetail:function(e,t,n){var i=t.closest("tr"),o=$('<tr data-role="details" />'),r=$('<td colspan="'+gj.grid.methods.countVisibleColumns(e)+'" />'),s=$('<div data-role="display" />'),a=e.data(),l=i.data("position"),c=e.get(l),d=gj.grid.plugins.expandCollapseRows;typeof n===undefined&&(n=gj.grid.methods.getId(c,a.primaryKey,c)),o.append(r.append(s.append(i.data("details")))),o.insertAfter(i),t.children('div[data-role="display"]').empty().append(a.icons.collapseRow),e.updateDetails(i),d["private"].keepSelection(e,n),d.events.detailExpand(e,o.find("td>div"),n)},collapseDetail:function(e,t,n){var i=t.closest("tr").next('tr[data-role="details"]'),o=e.data(),r=gj.grid.plugins.expandCollapseRows;typeof n===undefined&&(n=gj.grid.methods.getId(record,o.primaryKey,record)),i.remove(),t.children('div[data-role="display"]').empty().append(o.icons.expandRow),r["private"].removeSelection(e,n),r.events.detailCollapse(e,i.find("td>div"),n)},keepSelection:function(e,t){var n=e.data();n.keepExpandedRows&&($.isArray(n.expandedRows)?-1==n.expandedRows.indexOf(t)&&n.expandedRows.push(t):n.expandedRows=[t])},removeSelection:function(e,t){var n=e.data();n.keepExpandedRows&&$.isArray(n.expandedRows)&&-1<n.expandedRows.indexOf(t)&&n.expandedRows.splice(n.expandedRows.indexOf(t),1)},updateDetailsColSpan:function(e){var t=e.find('tbody > tr[data-role="details"] > td');t&&t.length&&t.attr("colspan",gj.grid.methods.countVisibleColumns(e))}},"public":{collapseAll:function(){var e,t=this,n=t.data();return"undefined"!=typeof n.detailTemplate&&(e=gj.grid.methods.getColumnPositionByRole(t,"expander"),t.find('tbody tr[data-role="row"]').each(function(){gj.grid.plugins.expandCollapseRows["private"].collapseDetail(t,$(this).find("td:eq("+e+")"))})),"undefined"!=typeof n.grouping&&t.find('tbody tr[role="group"]').each(function(){gj.grid.plugins.grouping["private"].collapseGroup(n,$(this).find("td:eq(0)"))}),t},expandAll:function(){var e,t=this,n=t.data();return"undefined"!=typeof n.detailTemplate&&(e=gj.grid.methods.getColumnPositionByRole(t,"expander"),t.find('tbody tr[data-role="row"]').each(function(){gj.grid.plugins.expandCollapseRows["private"].expandDetail(t,$(this).find("td:eq("+e+")"))})),"undefined"!=typeof n.grouping&&t.find('tbody tr[role="group"]').each(function(){gj.grid.plugins.grouping["private"].expandGroup(n,$(this).find("td:eq(0)"))}),t},updateDetails:function(e){var i=this,t=e.data("details"),o=t.html(),r=i.get(e.data("position"));return r&&o&&(t.html().replace(/\{(.+?)\}/g,function(e,t){var n=gj.grid.methods.getColumnInfo(i,t);o=o.replace(e,gj.grid.methods.formatText(r[t],n))}),t.html(o)),i}},events:{detailExpand:function(e,t,n){e.triggerHandler("detailExpand",[t,n])},detailCollapse:function(e,t,n){e.triggerHandler("detailCollapse",[t,n])}},configure:function(r){var e,n=r.data();$.extend(!0,r,gj.grid.plugins.expandCollapseRows["public"]),"undefined"!=typeof n.detailTemplate&&(e={title:"",width:n.defaultIconColumnWidth,align:"center",stopPropagation:!0,cssClass:"gj-cursor-pointer gj-unselectable",tmpl:n.icons.expandRow,role:"expander",events:{click:function(e){var t=$(this),n=gj.grid.plugins.expandCollapseRows["private"];"details"===t.closest("tr").next().attr("data-role")?n.collapseDetail(r,t,e.data.id):n.expandDetail(r,$(this),e.data.id)}}},n.columns=[e].concat(n.columns),r.on("rowDataBound",function(e,t){t.data("details",$(n.detailTemplate))}),r.on("columnShow",function(){gj.grid.plugins.expandCollapseRows["private"].updateDetailsColSpan(r)}),r.on("columnHide",function(){gj.grid.plugins.expandCollapseRows["private"].updateDetailsColSpan(r)}),r.on("rowRemoving",function(e,t,n){gj.grid.plugins.expandCollapseRows["private"].collapseDetail(r,t.children("td").first(),n)}),r.on("dataBinding",function(){r.collapseAll()}),r.on("pageChanging",function(){r.collapseAll()}),r.on("dataBound",function(){var e,t,n,i,o=r.data();if(o.keepExpandedRows&&$.isArray(o.expandedRows))for(e=0;e<o.expandedRows.length;e++)(n=gj.grid.methods.getRowById(r,o.expandedRows[e]))&&n.length&&(i=gj.grid.methods.getColumnPositionByRole(r,"expander"),(t=n.children("td:eq("+i+")"))&&t.length&&gj.grid.plugins.expandCollapseRows["private"].exp
18andDetail(r,t))}))}},gj.grid.plugins.inlineEditing={renderers:{editManager:function(e,t,n,i,o,r){var s=r.data(),a=$(s.inlineEditing.editButton).attr("key",o),l=$(s.inlineEditing.deleteButton).attr("key",o),c=$(s.inlineEditing.updateButton).attr("key",o).hide(),d=$(s.inlineEditing.cancelButton).attr("key",o).hide();a.on("click",function(){r.edit($(this).attr("key"))}),l.on("click",function(){r.removeRow($(this).attr("key"))}),c.on("click",function(){r.update($(this).attr("key"))}),d.on("click",function(){r.cancel($(this).attr("key"))}),i.empty().append(a).append(l).append(c).append(d)}}},gj.grid.plugins.inlineEditing.config={base:{defaultColumnSettings:{editor:undefined,editField:undefined,mode:"readEdit"},inlineEditing:{mode:"click",managementColumn:!0,managementColumnConfig:{width:300,role:"managementColumn",align:"center",renderer:gj.grid.plugins.inlineEditing.renderers.editManager,cssClass:"gj-grid-management-column"}}},bootstrap:{inlineEditing:{managementColumnConfig:{width:200,role:"managementColumn",align:"center",renderer:gj.grid.plugins.inlineEditing.renderers.editManager,cssClass:"gj-grid-management-column"}}},bootstrap4:{inlineEditing:{managementColumnConfig:{width:280,role:"managementColumn",align:"center",renderer:gj.grid.plugins.inlineEditing.renderers.editManager,cssClass:"gj-grid-management-column"}}}},gj.grid.plugins.inlineEditing["private"]={localization:function(e){"bootstrap"===e.uiLibrary?(e.inlineEditing.editButton='<button role="edit" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> '+gj.grid.messages[e.locale].Edit+"</button>",e.inlineEditing.deleteButton='<button role="delete" class="btn btn-default btn-sm gj-margin-left-10"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> '+gj.grid.messages[e.locale].Delete+"</button>",e.inlineEditing.updateButton='<button role="update" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> '+gj.grid.messages[e.locale].Update+"</button>",e.inlineEditing.cancelButton='<button role="cancel" class="btn btn-default btn-sm gj-margin-left-10"><span class="glyphicon glyphicon-ban-circle" aria-hidden="true"></span> '+gj.grid.messages[e.locale].Cancel+"</button>"):(e.inlineEditing.editButton='<button role="edit" class="gj-button-md"><i class="gj-icon pencil" /> '+gj.grid.messages[e.locale].Edit.toUpperCase()+"</button>",e.inlineEditing.deleteButton='<button role="delete" class="gj-button-md"><i class="gj-icon delete" /> '+gj.grid.messages[e.locale].Delete.toUpperCase()+"</button>",e.inlineEditing.updateButton='<button role="update" class="gj-button-md"><i class="gj-icon check-circle" /> '+gj.grid.messages[e.locale].Update.toUpperCase()+"</button>",e.inlineEditing.cancelButton='<button role="cancel" class="gj-button-md"><i class="gj-icon cancel" /> '+gj.grid.messages[e.locale].Cancel.toUpperCase()+"</button>")},editMode:function(t,n,i,o){var e,r,s,a,l,c=t.data();if("edit"!==n.attr("data-mode"))if(i.editor){if(gj.grid.plugins.inlineEditing["private"].updateOtherCells(t,i.mode),e=n.find('div[data-role="display"]').hide(),0===(r=n.find('div[data-role="edit"]').show()).length&&(r=$('<div data-role="edit" />'),n.append(r)),a=o[i.editField||i.field],(s=r.find("input, select, textarea").first()).length)switch(i.type){case"checkbox":s.prop("checked",a);break;case"dropdown":s=s.dropdown("value",a);break;default:s.val(a)}else{if("function"==typeof i.editor)i.editor(r,a,o),s=r.find("input, select, textarea").first();else if((l="object"==typeof i.editor?i.editor:{}).uiLibrary=c.uiLibrary,l.iconsLibrary=c.iconsLibrary,l.fontSize=t.css("font-size"),l.showOnFocus=!1,"checkbox"===i.type&&gj.checkbox)s=$('<input type="checkbox" />').prop("checked",a),r.append(s),s.checkbox(l);else if("date"===i.type&&gj.datepicker||"time"===i.type&&gj.timepicker||"datetime"===i.type&&gj.datetimepicker){switch(s=$('<input type="text" width="100%"/>'),r.append(s),i.format&&(l.format=i.format),i.type){case"date":s=s.datepicker(l);break;case"time":s=s.timepicker(l);break;case"datetime":s=s.datetimepicker(l)}s.value&&s.value(e.html())}
vendor: 2,230 bytes, line 18
18else"dropdown"===i.type&&gj.dropdown?(s=$('<select type="text" width="100%"/>'),r.append(s),l.dataBound=function(){var e=$(this).dropdown();i.editField?e.value(o[i.editField]):e.value(o[i.field])},s=s.dropdown(l)):(s=$('<input type="text" value="'+a+'" class="gj-width-full"/>'),"materialdesign"===c.uiLibrary&&s.addClass("gj-textbox-md").css("font-size",t.css("font-size")),r.append(s));"command"!==c.inlineEditing.mode&&"editOnly"!==i.mode&&(s=r.find("input, select, textarea").first()).on("keyup",function(e){13!==e.keyCode&&27!==e.keyCode||gj.grid.plugins.inlineEditing["private"].displayMode(t,n,i)})}"INPUT"===s.prop("tagName").toUpperCase()&&"TEXT"===s.prop("type").toUpperCase()?gj.core.setCaretAtEnd(s[0]):s.focus(),n.attr("data-mode","edit")}else"managementColumn"===i.role&&(n.find('[role="edit"]').hide(),n.find('[role="delete"]').hide(),n.find('[role="update"]').show(),n.find('[role="cancel"]').show())},displayMode:function(e,t,n,i){var o,r,s,a,l,c,d;"editOnly"!==n.mode&&("edit"===t.attr("data-mode")&&(o=t.find('div[data-role="edit"]'),r=t.find('div[data-role="display"]'),"SELECT"===(s=o.find("input, select, textarea").first())[0].tagName.toUpperCase()&&-1<s[0].selectedIndex?(a=s[0].options[s[0].selectedIndex].innerHTML,l=s[0].value):a="INPUT"===s[0].tagName.toUpperCase()&&"CHECKBOX"===s[0].type.toUpperCase()?s[0].checked:s.val(),d=t.parent().data("position"),c=e.get(d),!0!==i&&a!==c[n.field]&&(c[n.field]="date"===n.type?gj.core.parseDate(a,n.format):a,n.editField&&(c[n.editField]=l||a),"editOnly"!==n.mode&&(gj.grid.methods.renderDisplayElement(e,r,n,c,gj.grid.methods.getId(c,e.data("primaryKey"),d),"update"),0===t.find("span.gj-dirty").length&&t.prepend($('<span class="gj-dirty" />'))),gj.grid.plugins.inlineEditing.events.cellDataChanged(e,t,n,c,a),gj.grid.plugins.inlineEditing["private"].updateChanges(e,n,c,a)),o.hide(),r.show(),t.attr("data-mode","display")),"managementColumn"===n.role&&(t.find('[role="update"]').hide(),t.find('[role="cancel"]').hide(),t.find('[role="edit"]').show(),t.find('[role="delete"]').show()))},updateOtherCells:function(n,e){var i=n.data();"command"!==i.inlineEditing.mode&&"editOnly"!==e&&n.find('div[data-role="edit"]:visible').parent("td").each(function(){var e=$
18(this),t=i.columns[e.index()];gj.grid.plugins.inlineEditing["private"].displayMode(n,e,t)})},updateChanges:function(e,t,n,i){var o,r,s,a=e.data();a.guid||(a.guid=gj.grid.plugins.inlineEditing["private"].generateGUID()),a.primaryKey&&((o=JSON.parse(sessionStorage.getItem("gj.grid."+a.guid)))?r=o.filter(function(e){return e[a.primaryKey]===n[a.primaryKey]}):o=[],r&&1===r.length?r[0][t.field]=i:((s={})[a.primaryKey]=n[a.primaryKey],a.primaryKey!==t.field&&(s[t.field]=i),o.push(s)),sessionStorage.setItem("gj.grid."+a.guid,JSON.stringify(o)))},generateGUID:function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}},gj.grid.plugins.inlineEditing["public"]={getChanges:function(){return JSON.parse(sessionStorage.getItem("gj.grid."+this.data().guid))},edit:function(e){var t,n=this.getById(e),i=gj.grid.methods.getRowById(this,e).children("td"),o=this.data("columns");for(t=0;t<i.length;t++)gj.grid.plugins.inlineEditing["private"].editMode(this,$(i[t]),o[t],n);return this},update:function(e){var t,n=this.getById(e),i=gj.grid.methods.getRowById(this,e).children("td"),o=this.data("columns");for(t=0;t<i.length;t++)gj.grid.plugins.inlineEditing["private"].displayMode(this,$(i[t]),o[t],!1);return gj.grid.plugins.inlineEditing.events.rowDataChanged(this,e,n),this},cancel:function(e){this.getById(e);var t,n=gj.grid.methods.getRowById(this,e).children("td"),i=this.data("columns");for(t=0;t<n.length;t++)gj.grid.plugins.inlineEditing["private"].displayMode(this,$(n[t]),i[t],!0);return this}},gj.grid.plugins.inlineEditing.events={cellDataChanged:function(e,t,n,i,o,r){e.triggerHandler("cellDataChanged",[t,n,i,o,r])},rowDataChanged:function(e,t,n){e.triggerHandler("rowDataChanged",[t,n])}},gj.grid.plugins.inlineEditing.configure=function(r,e,t){var s=r.data();$.extend(!0,r,gj.grid.plugins.inlineEditing["public"]),t.inlineEditing&&(r.on("dataBound",function(){r.find("span.gj-dirty").remove()}),r.on("rowDataBound",function(e,t,n){r.cancel(n)})),"command"===s.inlineEditing.mode?(gj.grid.plugins.inlineEditing["private"].localization(s),e.inlineEditing.managementColumn&&s.columns.push(e.inlineEditing.managementColumnConfig)):r.on("cellDataBound",function(e,t,n,i,o){i.editor&&("editOnly"===i.mode?gj.grid.plugins.inlineEditing["private"].editMode(r,t.parent(),i,o):t.parent("td").on("dblclick"===s.inlineEditing.mode?"dblclick":"click",function(){gj.grid.plugins.inlineEditing["private"].editMode(r,t.parent(),i,o)}))})},gj.grid.plugins.optimisticPersistence={config:{base:{optimisticPersistence:{localStorage:undefined,sessionStorage:undefined}}},"private":{applyParams:function(e){var t,n=e.data(),i={};(t=JSON.parse(sessionStorage.getItem("gj.grid."+n.guid)))&&t.optimisticPersistence&&$.extend(i,t.optimisticPersistence),(t=JSON.parse(localStorage.getItem("gj.grid."+n.guid)))&&t.optimisticPersistence&&$.extend(i,t.optimisticPersistence),$.extend(n.params,i)},saveParams:function(e){var t,n,i=e.data(),o={optimisticPersistence:{}};if(i.optimisticPersistence.sessionStorage){for(t=0;t<i.optimisticPersistence.sessionStorage.length;t++)n=i.optimisticPersistence.sessionStorage[t],o.optimisticPersistence[n]=i.params[n];o=$.extend(!0,JSON.parse(sessionStorage.getItem("gj.grid."+i.guid)),o),sessionStorage.setItem("gj.grid."+i.guid,JSON.stringify(o))}if(i.optimisticPersistence.localStorage){for(o={optimisticPersistence:{}},t=0;t<i.optimisticPersistence.localStorage.length;t++)n=i.optimisticPersistence.localStorage[t],o.optimisticPersistence[n]=i.params[n];o=$.extend(!0,JSON.parse(localStorage.getItem("gj.grid."+i.guid)),o),localStorage.setItem("gj.grid."+i.guid,JSON.stringify(o))}}},configure:function(e,t){t.guid&&(t.optimisticPersistence.localStorage||t.optimisticPersistence.sessionStorage)&&(gj.grid.plugins.optimisticPersistence["private"].applyParams(e),e.on("dataBound",function(){gj.grid.plugins.optimisticPersistence["private"].saveParams(e)}))}},gj.grid.plugins.pagination={config:{base:{style:{pager:{panel:"",stateDisabled:"",activeButton:""}},paramNames:{page:"page",limit:"limit"},pager:{limit:10,sizes:[5,10,20,100],leftControls:undefined,right
18Controls:undefined}},bootstrap:{style:{pager:{panel:"",stateDisabled:""}}},bootstrap4:{style:{pager:{panel:"btn-toolbar",stateDisabled:""}}},glyphicons:{icons:{first:'<span class="glyphicon glyphicon-step-backward"></span>',previous:'<span class="glyphicon glyphicon-backward"></span>',next:'<span class="glyphicon glyphicon-forward"></span>',last:'<span class="glyphicon glyphicon-step-forward"></span>',refresh:'<span class="glyphicon glyphicon-refresh"></span>'}},materialicons:{icons:{first:'<i class="gj-icon first-page" />',previous:'<i class="gj-icon chevron-left" />',next:'<i class="gj-icon chevron-right" />',last:'<i class="gj-icon last-page" />',refresh:'<i class="gj-icon refresh" />'}},fontawesome:{icons:{first:'<i class="fa fa-fast-backward" aria-hidden="true"></i>',previous:'<i class="fa fa-backward" aria-hidden="true"></i>',next:'<i class="fa fa-forward" aria-hidden="true"></i>',last:'<i class="fa fa-fast-forward" aria-hidden="true"></i>',refresh:'<i class="fa fa-refresh" aria-hidden="true"></i>'}}},"private":{init:function(e){var t,n,i,o,r,s,a,l,c,d;if((i=e.data()).pager)for(i.params[i.paramNames.page]||(i.params[i.paramNames.page]=1),i.params[i.paramNames.limit]||(i.params[i.paramNames.limit]=i.pager.limit),gj.grid.plugins.pagination["private"].localization(i),t=$('<tr data-role="pager"/>'),n=$("<th/>"),t.append(n),r=$('<div data-role="display" />').addClass(i.style.pager.panel).css({"float":"left"}),s=$('<div data-role="display" />').addClass(i.style.pager.panel).css({"float":"right"}),n.append(r).append(s),a=$("<tfoot />").append(t),e.append(a),gj.grid.plugins.pagination["private"].updatePagerColSpan(e),l=gj.grid.methods.clone(i.pager.leftControls),$.each(l,function(){r.append(this)}),c=gj.grid.methods.clone(i.pager.rightControls),$.each(c,function(){s.append(this)}),o=e.find("tfoot [data-role]"),d=0;d<o.length;d++)gj.grid.plugins.pagination["private"].initPagerControl($(o[d]),e)},localization:function(e){"bootstrap"===e.uiLibrary?gj.grid.plugins.pagination["private"].localizationBootstrap(e):"bootstrap4"===e.uiLibrary?gj.grid.plugins.pagination["private"].localizationBootstrap4(e):gj.grid.plugins.pagination["private"].localizationMaterialDesign(e)},localizationBootstrap:function(e){var t=gj.grid.messages[e.locale];"undefined"==typeof e.pager.leftControls&&(e.pager.leftControls=[$('<button type="button" class="btn btn-default btn-sm">'+(e.icons.first||t.First)+"</button>").attr("title",t.FirstPageTooltip).attr("data-role","page-first"),$('<button type="button" class="btn btn-default btn-sm">'+(e.icons.previous||t.Previous)+"</button>").attr("title",t.PreviousPageTooltip).attr("data-role","page-previous"),$("<div>"+t.Page+"</div>"),$('<input data-role="page-number" class="form-control input-sm" type="text" value="0">
18'),$("<div>"+t.Of+"</div>"),$('<div data-role="page-label-last">0</div>'),$('<button type="button" class="btn btn-default btn-sm">'+(e.icons.next||t.Next)+"</button>").attr("title",t.NextPageTooltip).attr("data-role","page-next"),$('<button type="button" class="btn btn-default btn-sm">'+(e.icons.last||t.Last)+"</button>").attr("title",t.LastPageTooltip).attr("data-role","page-last"),$('<button type="button" class="btn btn-default btn-sm">'+(e.icons.refresh||t.Refresh)+"</button>").attr("title",t.Refresh).attr("data-role","page-refresh"),$('<select data-role="page-size" class="form-control input-sm" width="60"></select>')]),"undefined"==typeof e.pager.rightControls&&(e.pager.rightControls=[$("<div>"+t.DisplayingRecords+"</div>"),$('<div data-role="record-first">0</div>'),$("<div>-</div>"),$('<div data-role="record-last">0</div>'),$("<div>"+t.Of+"</div>"),$('<div data-role="record-total">0</div>')])},localizationBootstrap4:function(e){var t=gj.grid.messages[e.locale];"undefined"==typeof e.pager.leftControls&&(e.pager.leftControls=[$('<button class="btn btn-default btn-sm gj-cursor-pointer">'+(e.icons.first||t.First)+"</button>").attr("title",t.FirstPageTooltip).attr("data-role","page-first"),$('<button class="btn btn-default btn-sm gj-cursor-pointer">'+(e.icons.previous||t.Previous)+"</button>").attr("title",t.PreviousPageTooltip).attr("data-role","page-previous"),$("<div>"+t.Page+"</div>"),$('<div class="input-group"><input data-role="page-number" class="form-control form-control-sm" type="text" value="0"></div>'),$("<div>"+t.Of+"</div>"),$('<div data-role="page-label-last">0</div>'),$('<button class="btn btn-default btn-sm gj-cursor-pointer">'+(e.icons.next||t.Next)+"</button>").attr("title",t.NextPageTooltip).attr("data-role","page-next"),$('<button class="btn btn-default btn-sm gj-cursor-pointer">'+(e.icons.last||t.Last)+"</button>").attr("title",t.LastPageTooltip).attr("data-role","page-last"),$('<button class="btn btn-default btn-sm gj-cursor-pointer">'+(e.icons.refresh||t.Refresh)+"</button>").attr("title",t.Refresh).attr("data-role","page-refresh"),$('<select data-role="page-size" class="form-control input-sm" width="60"></select>')]),"undefined"==typeof e.pager.rightControls&&(e.pager.rightControls=[$("<div>"+t.DisplayingRecords+"&nbsp;</div>"),$('<div data-role="record-first">0</div>'),$("<div>-</div>"),$('<div data-role="record-last">0</div>'),$("<div>"+t.Of+"</div>"),$('<div data-role="record-total">0</div>')])},localizationMaterialDesign:function(e){var t=gj.grid.messages[e.locale];"undefined"==typeof e.pager.leftControls&&(e.pager.leftControls=[]),"undefined"==typeof e.pager.rightControls&&(e.pager.rightControls=[$('<span class="">'+t.RowsPerPage+"</span>"),$('<select data-role="page-size" class="gj-grid-md-limit-select" width="52"></select></div>'),$('<span class="gj-md-spacer-32">&nbsp;</span>'),$('<span data-role="record-first" class="">0</span>'),$('<span class="">-</span>'),$('<span data-role="record-last" class="">0</span>'),$('<span class="gj-grid-mdl-pager-label">'+t.Of+"</span>"),$('<span data-role="record-total" class="">0</span>'),$('<span class="gj-md-spacer-32">&nbsp;</span>'),$('<button class="gj-button-md">'+(e.icons.previous||t.Previous)+"</button>").attr("title",t.PreviousPageTooltip).attr("data-role","page-previous").addClass(e.icons.first?"gj-button-md-icon":""),$('<span class="gj-md-spacer-24">&nbsp;</span>'),$('<button class="gj-button-md">'+(e.icons.next||t.Next)+"</button>").attr("title",t.NextPageTooltip).attr("data-role","page-next").addClass(e.icons.first?"gj-button-md-icon":"")])},initPagerControl:function(e,t){var n=t.data();switch(e.data("role")){case"page-size":n.pager.sizes&&0<n.pager.sizes.length?(e.show(),$.each(n.pager.sizes,function(){e.append($("<option/>").attr("value",this.toString()).text(this.toString()))}),e.change(function(){var e=parseInt(this.value,10);n.params[n.paramNames.limit]=e,gj.grid.plugins.pagination["private"].changePage(t,1),gj.grid.plugins.pagination.events.pageSizeChange(t,e)}),e.val(n.params[n.paramNames.limit]),gj.dropdown&&e.dropdown({uiLibrary:n.uiLibrary,iconsLibrary:n.iconsLibrary,fontSize:e.css("font-size"),style:{presenter:"btn btn-default btn-sm"}})):e.hide();break;case"page-refresh":e.on("click",function(){t.reload()})}},reloadPager:function(e,t){var n,i,o,r,s,a,l,c;if((a=e.data()).pager){for(n=0===t?0:parseInt(a.params[a.paramNames.page],10),i=parseInt(a.params[a.paramNames.limit],10),o=Math.ceil(t/i),s=t<(r=0===n?0:i*(n-1)+1)+i?t:r+i-1,l=e.find("TFOOT [data-role]"),c=0;c<l.length;c++)gj.grid.plugins.pagination["private"].reloadPagerControl($(l[c]),e,n,o,r,s,t);gj.grid.plugins.pagination["private"].updatePagerColSpan(e)}},reloadPagerControl:function(e,t,n,i,o,r,s){var a;switch(e.data("role")){case"page-first":gj.grid.plugins.pagination["private"].assignPageHandler(t,e,1,n<2);break;case"page-previous":gj.grid.plugins.pagination["private"].assignPageHandler(t,e,n-1,n<2);break;case"page-number":e.val(n).off("change").on("change",gj.grid.plugins.pagination["private"].createChangePageHandler(t,n));break;case"page-label-last":e.text(i);break;case"page-next":gj.grid.plugins.pagination["private"].assignPageHandler(t,e,n+1,i===n);break;case"page-last":gj.grid.plugins.pagination["private"].assignPageHandler(t,e,i,i===n);break;
18case"page-button-one":a=1===n?1:n==i?n-2:n-1,gj.grid.plugins.pagination["private"].assignButtonHandler(t,e,n,a,i);break;case"page-button-two":a=1===n?2:n==i?i-1:n,gj.grid.plugins.pagination["private"].assignButtonHandler(t,e,n,a,i);break;case"page-button-three":a=1===n?n+2:n==i?n:n+1,gj.grid.plugins.pagination["private"].assignButtonHandler(t,e,n,a,i);break;case"record-first":e.text(o);break;case"record-last":e.text(r);break;case"record-total":e.text(s)}},assignPageHandler:function(e,t,n,i){var o=e.data().style.pager;i?t.addClass(o.stateDisabled).prop("disabled",!0).off("click"):t.removeClass(o.stateDisabled).prop("disabled",!1).off("click").on("click",function(){gj.grid.plugins.pagination["private"].changePage(e,n)})},assignButtonHandler:function(e,t,n,i,o){var r=e.data().style.pager;i<1||o<i?t.hide():(t.show().off("click").text(i),i===n?t.addClass(r.activeButton):t.removeClass(r.activeButton).on("click",function(){gj.grid.plugins.pagination["private"].changePage(e,i)}))},createChangePageHandler:function(t){return function(){t.data();var e=parseInt(this.value,10);gj.grid.plugins.pagination["private"].changePage(t,e)}},changePage:function(e,t){var n=e.data();!1===gj.grid.plugins.pagination.events.pageChanging(e,t)||isNaN(t)||(e.find('TFOOT [data-role="page-number"]').val(t),n.params[n.paramNames.page]=t),e.reload()},updatePagerColSpan:function(e){var t=e.find('tfoot > tr[data-role="pager"] > th');t&&t.length&&t.attr("colspan",gj.grid.methods.countVisibleColumns(e))},isLastRecordVisible:function(e){var t=!0,n=e.data(),i=parseInt(n.params[n.paramNames.limit],10),o=parseInt(n.params[n.paramNames.page],10),r=e.count();return i&&o&&(t=(o-1)*i+r===n.totalRecords),t}},"public":{getAll:function(e){var t,n,i=this.data()
19;return $.isArray(i.dataSource)?e?i.dataSource:i.params[i.paramNames.limit]&&i.params[i.paramNames.page]?(t=parseInt(i.params[i.paramNames.limit],10),n=(parseInt(i.params[i.paramNames.page],10)-1)*t,i.records.slice(n,n+t)):i.records:i.records}},events:{pageSizeChange:function(e,t){e.triggerHandler("pageSizeChange",[t])},pageChanging:function(e,t){e.triggerHandler("pageChanging",[t])}},configure:function(i,e,t){$.extend(!0,i,gj.grid.plugins.pagination["public"]);i.data();t.pager&&(gj.grid.methods.isLastRecordVisible=gj.grid.plugins.pagination["private"].isLastRecordVisible,i.on("initialized",function(){gj.grid.plugins.pagination["private"].init(i)}),i.on("dataBound",function(e,t,n){gj.grid.plugins.pagination["private"].reloadPager(i,n)}),i.on("columnShow",function(){gj.grid.plugins.pagination["private"].updatePagerColSpan(i)}),i.on("columnHide",function(){gj.grid.plugins.pagination["private"].updatePagerColSpan(i)}))}},gj.grid.plugins.responsiveDesign={config:{base:{resizeCheckInterval:500,responsive:!1,showHiddenColumnsAsDetails:!1,defaultColumn:{priority:undefined,minWidth:250},style:{rowDetailItem:""}},bootstrap:{style:{rowDetailItem:"col-lg-4"}}},"private":{orderColumns:function(e){var t=[];if(e.columns&&e.columns.length){for(i=0;i<e.columns.length;i++)t.push({position:i,field:e.columns[i].field,minWidth:e.columns[i].width||e.columns[i].minWidth||e.defaultColumn.minWidth,priority:e.columns[i].priority||0});t.sort(function(e,t){var n=0;return e.priority<t.priority?n=-1:e.priority>t.priority&&(n=1),n})}return t},updateDetails:function(e){var t,n,i,o,r,s,a,l,c;for(t=e.find('tbody > tr[data-role="row"]'),n=e.data(),i=0;i<t.length;i++){for(s=(r=$(t[i])).data("details"),o=0;o<n.columns.length;o++)l=n.columns[o],a=s&&s.find('div[data-id="'+l.field+'"]'),n.columns[o].hidden?(c="<b>"+(l.title||l.field)+"</b>: {"+l.field+"}",a&&a.length?a.empty().html(c):((a=$('<div data-id="'+l.field+'"/>').html(c)).addClass(n.style.rowDetailItem),s&&s.length||(s=$('<div class="row"/>')),s.append(a))):a&&a.length&&a.remove();e.updateDetails(r)}}},"public":{oldWidth:undefined,resizeCheckIntervalId:undefined,makeResponsive:function(){var e,t,n=0,i=this.data(),o=gj.grid.plugins.responsiveDesign["private"].orderColumns(i);for(e=0;e<o.length;e++)(t=this.find("thead>tr>th:eq("+o[e].position+")")).is(":visible")&&o[e].minWidth<t.width()&&(n+=t.width()-o[e].minWidth);if(n)for(e=0;e<o.length;e++)!(t=this.find("thead>tr>th:eq("+o[e].position+")")).is(":visible")&&o[e].minWidth<=n&&(this.showColumn(o[e].field),n-=t.width());for(e=o.length-1;0<=e;e--)(t=this.find("thead>tr>th:eq("+o[e].position+")")).is(":visible")&&o[e].priority&&o[e].minWidth>t.outerWidth()&&this.hideColumn(o[e].field);return this}},events:{resize:function(e,t,n){e.triggerHandler("resize",[t,n])}},configure:function(t,e){$.extend(!0,t,gj.grid.plugins.responsiveDesign["public"]),e.responsive&&(t.on("initialized",function(){t.makeResponsive(),t.oldWidth=t.width(),t.resizeCheckIntervalId=setInterval(function(){var e=t.width();e!==t.oldWidth&&gj.grid.plugins.responsiveDesign.events.resize(t,e,t.oldWidth),t.oldWidth=e},e.resizeCheckInterval)}),t.on("destroy",function(){t.resizeCheckIntervalId&&clearInterval(t.resizeCheckIntervalId)}),t.on("resize",function(){t.makeResponsive()})),e.showHiddenColumnsAsDetails&&gj.grid.plugins.expandCollapseRows&&(t.on("dataBound",function(){gj.grid.plugins.responsiveDesign["private"].updateDetails(t)}),t.on("columnHide",function(){gj.grid.plugins.responsiveDesign["private"].updateDetails(t)}),t.on("columnShow",function(){gj.grid.plugins.responsiveDesign["private"].updateDetails(t)}),t.on("rowDataBound",function(){gj.grid.plugins.responsiveDesign["private"].updateDetails(t)}))}}
19,gj.grid.plugins.toolbar={config:{base:{toolbarTemplate:undefined,title:undefined,style:{toolbar:"gj-grid-md-toolbar"}},bootstrap:{style:{toolbar:"gj-grid-bootstrap-toolbar"}},bootstrap4:{style:{toolbar:"gj-grid-bootstrap-4-toolbar"}}},"private":{init:function(e){var t,n,i;t=e.data(),n=e.prev('div[data-role="toolbar"]'),("undefined"!=typeof t.toolbarTemplate||"undefined"!=typeof t.title||0<n.length)&&(0===n.length&&(n=$('<div data-role="toolbar"></div>'),e.before(n)),n.addClass(t.style.toolbar),0===n.children().length&&t.toolbarTemplate&&n.append(t.toolbarTemplate),0===(i=n.find('[data-role="title"]')).length&&(i=$('<div data-role="title"/>'),n.prepend(i)),t.title&&i.text(t.title),t.minWidth&&n.css("min-width",t.minWidth))}},"public":{title:function(e){var t=this.parent().find('div[data-role="toolbar"] [data-role="title"]');return void 0!==e?(t.text(e),this):t.text()}},configure:function(e){$.extend(!0,e,gj.grid.plugins.toolbar["public"]),e.on("initialized",function(){gj.grid.plugins.toolbar["private"].init(e)}),e.on("destroying",function(){e.prev('[data-role="toolbar"]').remove()})}},gj.grid.plugins.resizableColumns={config:{base:{resizableColumns:!1}},"private":{init:function(e,t){var n,i,o,r,s,a;if((n=e.find('thead tr[data-role="caption"] th')).length){for(o=0;o<n.length-1;o++)i=$(n[o]),r=$('<div class="gj-grid-column-resizer-wrapper" />'),a=parseInt(i.css("padding-right"),10)+3,(s=$('<span class="gj-grid-column-resizer" />').css("margin-right","-"+a+"px")).draggable({start:function(){e.addClass("gj-unselectable"),e.addClass("gj-grid-resize-cursor")},stop:function(){e.removeClass("gj-unselectable"),e.removeClass("gj-grid-resize-cursor"),this.style.removeProperty("top"),this.style.removeProperty("left"),this.style.removeProperty("position")},drag:gj.grid.plugins.resizableColumns["private"].createResizeHandle(e,i,t.columns[o])}),i.append(r.append(s));for(o=0;o<n.length;o++)(i=$(n[o])).attr("width")||i.attr("width",i.outerWidth())}},createResizeHandle:function(u,p,h){var f=u.data();return function(e,t){var n,i,o,r,s,a,l=parseInt(p.attr("width"),10),c=gj.core.position(this),d={top:t.top-c.top,left:t.left-c.left};if(l||(l=p.outerWidth()),d.left&&(s=l+d.left,h.width=s,p.attr("width",s),i=p[0].cellIndex,r=p[0].parentElement.children[i+1],a=parseInt($(r).attr("width"),10)-d.left,r.setAttribute("width",a),f.resizableColumns))for(o=u[0].tBodies[0].children,n=0;n<o.length;n++)o[n].cells[i].setAttribute("width",s),(r=o[n].cells[i+1]).setAttribute("width",a)}}},"public":{},configure:function(e,t){$.extend(!0,e,gj.grid.plugins.resizableColumns["public"]),t.resizableColumns&&gj.draggable&&e.on("initialized",function(){gj.grid.plugins.resizableColumns["private"].init(e,t)})}},gj.grid.plugins.rowReorder={config:{base:{rowReorder:!1,rowReorderColumn:undefined,orderNumberField:undefined,style:{targetRowIndicatorTop:"gj-grid-row-reorder-indicator-top",targetRowIndicatorBottom:"gj-grid-row-reorder-indicator-bottom"}}},"private":{init:function(e){var t,n,i,o=e.find('tbody tr[data-role="row"]');for(e.data("rowReorderColumn")&&(n=gj.grid.methods.getColumnPosition(e.data("columns"),e.data("rowReorderColumn"))),t=0;t<o.length;t++)i=$(o[t]),void 0!==n?i.find("td:eq("+n+")").on("mousedown",gj.grid.plugins.rowReorder["private"].createRowMouseDownHandler(e,i)):i.on("mousedown",gj.grid.plugins.rowReorder["private"].createRowMouseDownHandler(e,i))},createRowMouseDownHandler:function(o,r){return function(){var e,t,n=o.clone(),i=o.data("columns");for(o.addClass("gj-unselectable"),$("body").append(n),n.attr("data-role","draggable-clone").css("cursor","move"),n.children("thead").remove().children("tfoot").remove(),n.find('tbody tr:not([data-position="'+r.data("position")+'"])').remove(),t=n.find("tbody tr td"),e=0;e<t.length;e++)i[e].width&&t[e].setAttribute("width",i[e].width);n.draggable({stop:gj.grid.plugins.rowReorder["private"].createDragStopHandler(o,r)}),n.css({position:"absolute",top:r.offset().top,left:r.offset().left,width:r.width(),zIndex:1}),"true"===r.attr("data-droppable")&&r.droppable("destroy"),r.siblings('tr[data-role="row"]').each(function(){var e=$
vendor: 1,201 bytes, line 19
19(this);"true"===e.attr("data-droppable")&&e.droppable("destroy"),e.droppable({over:gj.grid.plugins.rowReorder["private"].createDroppableOverHandler(r),out:gj.grid.plugins.rowReorder["private"].droppableOut})}),n.trigger("mousedown")}},createDragStopHandler:function(d,u){return function(e,c){$('table[data-role="draggable-clone"]').draggable("destroy").remove(),d.removeClass("gj-unselectable"),u.siblings('tr[data-role="row"]').each(function(){var e,t,n,i,o,r=$(this),s=r.data("position"),a=u.data("position"),l=d.data();if(r.droppable("isOver",c)){for(s<a?r.before(u):r.after(u),l.records.splice(s-1,0,l.records.splice(a-1,1)[0]),e=r.parent().find('tr[data-role="row"]'),n=0;n<e.length;n++)$(e[n]).attr("data-position",n+1);if(l.orderNumberField){for(n=0;n<l.records.length;n++)l.records[n][l.orderNumberField]=n+1;for(n=0;n<e.length;n++)t=$(e[n]),o=gj.grid.methods.getId(t,l.primaryKey,t.attr("data-position")),i=gj.grid.methods.getByPosition(d,t.attr("data-position")),d.setCellContent(o,l.orderNumberField,i[l.orderNumberField])}}r.removeClass("gj-grid-top-border"),r.removeClass("gj-grid-bottom-border"),r.droppable("destroy")})}},createDroppableOverHandler:function(t){return function(){var e=$
19(this);e.data("position")<t.data("position")?e.addClass("gj-grid-top-border"):e.addClass("gj-grid-bottom-border")}},droppableOut:function(){$(this).removeClass("gj-grid-top-border"),$(this).removeClass("gj-grid-bottom-border")}},"public":{},configure:function(e,t){$.extend(!0,e,gj.grid.plugins.rowReorder["public"]),t.rowReorder&&gj.draggable&&gj.droppable&&e.on("dataBound",function(){gj.grid.plugins.rowReorder["private"].init(e)})}},gj.grid.plugins["export"]={config:{base:{}},"public":{getCSV:function(e){var t,n,i="",o="",r=this.data().columns,s=this.getAll(e);if(s.length){for(t=0;t<r.length;t++)gj.grid.plugins["export"]["public"].isColumnApplicable(r[t])&&(i+='"'+(r[t].title||r[t].field).replace(/<[^>]+>/g," ")+'",');for(o+=i.slice(0,i.length-1)+"\r\n",t=0;t<s.length;t++){for(i="",n=0;n<r.length;n++)gj.grid.plugins["export"]["public"].isColumnApplicable(r[n])&&(i+='"'+s[t][r[n].field]+'",');o+=i.slice(0,i.length-1)+"\r\n"}}return o},downloadCSV:function(e,t){var n=document.createElement("a");return document.body.appendChild(n),n.download=e||"griddata.csv",-1<window.navigator.userAgent.indexOf("Edge")?n.href=URL.createObjectURL(new Blob([this.getCSV(t)],{type:"text/csv;charset=utf-8;"})):n.href="data:text/csv;charset=utf-8,"+escape(this.getCSV(t)),n.click(),document.body.removeChild(n),this},isColumnApplicable:function(e){return!0!==e.hidden&&!e.role}},configure:function(e){$.extend(!0,e,gj.grid.plugins["export"]["public"])}},gj.grid.plugins.columnReorder={config:{base:{columnReorder:!1,dragReady:!1,style:{targetRowIndicatorTop:"gj-grid-row-reorder-indicator-top",targetRowIndicatorBottom:"gj-grid-row-reorder-indicator-bottom"}}},"private":{init:function(e){var t,n,i=e.find("thead tr th");for(t=0;t<i.length;t++)(n=$(i[t])).on("mousedown",gj.grid.plugins.columnReorder["private"].createMouseDownHandler(e,n)),n.on("mousemove",gj.grid.plugins.columnReorder["private"].createMouseMoveHandler(e,n)),n.on("mouseup",gj.grid.plugins.columnReorder["private"].createMouseUpHandler(e,n))},createMouseDownHandler:function(e){return function(){e.timeout=setTimeout(function(){e.data("dragReady",!0)},100)}},createMouseUpHandler:function(e){return function(){clearTimeout(e.timeout),e.data("dragReady",!1)}},createMouseMoveHandler:function(n,i){return function(){var e,t;n.data("dragReady")&&(n.data("dragReady",!1),e=n.clone(),t=i.index(),n.addClass("gj-unselectable"),$("body").append(e),e.attr("data-role","draggable-clone").css("cursor","move"),e.find("thead tr th:eq("+t+")").siblings().remove(),e.find('tbody tr[data-role != "row"]').remove(),e.find("tbody tr td:nth-child("+(t+1)+")").siblings().remove(),e.find("tfoot").remove(),e.draggable({stop:gj.grid.plugins.columnReorder["private"].createDragStopHandler(n,i)}),e.css({position:"absolute",top:i.offset().top,left:i.offset().left,width:i.width(),zIndex:1}),"true"===i.attr("data-droppable")&&i.droppable("destroy"),i.siblings("th").each(function(){var e=$
vendor: 1,292 bytes, line 19
19(this);"true"===e.attr("data-droppable")&&e.droppable("destroy"),e.droppable({over:gj.grid.plugins.columnReorder["private"].createDroppableOverHandler(n,i),out:gj.grid.plugins.columnReorder["private"].droppableOut})}),e.trigger("mousedown"))}},createDragStopHandler:function(r,s){return function(e,o){$('table[data-role="draggable-clone"]').draggable("destroy").remove(),r.removeClass("gj-unselectable"),s.siblings("th").each(function(){var e=$(this),t=r.data(),n=gj.grid.methods.getColumnPosition(t.columns,e.data("field")),i=gj.grid.methods.getColumnPosition(t.columns,s.data("field"));e.removeClass("gj-grid-left-border").removeClass("gj-grid-right-border"),e.closest("table").find('tbody tr[data-role="row"] td:nth-child('+(e.index()+1)+")").removeClass("gj-grid-left-border").removeClass("gj-grid-right-border"),e.droppable("isOver",o)&&(n<i?e.before(s):e.after(s),gj.grid.plugins.columnReorder["private"].moveRowCells(r,i,n),t.columns.splice(n,0,t.columns.splice(i,1)[0])),e.droppable("destroy")})}},moveRowCells:function(e,t,n){var i,o,r=e.find('tbody tr[data-role="row"]');for(i=0;i<r.length;i++)o=$(r[i]),n<t?o.find("td:eq("+n+")").before(o.find("td:eq("+t+")")):o.find("td:eq("+n+")").after(o.find("td:eq("+t+")"))},createDroppableOverHandler:function(n,i){return function(){var e=$
19(this),t=n.data();gj.grid.methods.getColumnPosition(t.columns,e.data("field"))<gj.grid.methods.getColumnPosition(t.columns,i.data("field"))?(e.addClass("gj-grid-left-border"),n.find('tbody tr[data-role="row"] td:nth-child('+(e.index()+1)+")").addClass("gj-grid-left-border")):(e.addClass("gj-grid-right-border"),n.find('tbody tr[data-role="row"] td:nth-child('+(e.index()+1)+")").addClass("gj-grid-right-border"))}},droppableOut:function(){var e=$(this);e.removeClass("gj-grid-left-border").removeClass("gj-grid-right-border"),e.closest("table").find('tbody tr[data-role="row"] td:nth-child('+(e.index()+1)+")").removeClass("gj-grid-left-border").removeClass("gj-grid-right-border")}},"public":{},configure:function(e,t){$.extend(!0,e,gj.grid.plugins.columnReorder["public"]),t.columnReorder&&e.on("initialized",function(){gj.grid.plugins.columnReorder["private"].init(e)})}},gj.grid.plugins.headerFilter={config:{base:{defaultColumnSettings:{filterable:!0},headerFilter:{type:"onenterkeypress"}}},"private":{init:function(t){var e,n,i,o=t.data(),r=$('<tr data-role="filter"/>');for(e=0;e<o.columns.length;e++)n=$("<th/>"),o.columns[e].filterable&&(i=$('<input data-field="'+o.columns[e].field+'" class="gj-width-full" />'),"onchange"===o.headerFilter.type?i.on("input propertychange",function(){gj.grid.plugins.headerFilter["private"].reload(t,$(this))}):(i.on("keypress",function(e){13==e.which&&gj.grid.plugins.headerFilter["private"].reload(t,$(this))}),i.on("blur",function(){gj.grid.plugins.headerFilter["private"].reload(t,$(this))})),n.append(i)),o.columns[e].hidden&&n.hide(),r.append(n);t.children("thead").append(r)},reload:function(e,t){var n={};n[t.data("field")]=t.val(),e.reload(n)}},"public":{},events:{},configure:function(e,t,n){$.extend(!0,e,gj.grid.plugins.headerFilter["public"]);e.data();n.headerFilter&&e.on("initialized",function(){gj.grid.plugins.headerFilter["private"].init(e)})}},gj.grid.plugins.grouping={config:{base:{paramNames:{groupBy:"groupBy",groupByDirection:"groupByDirection"},grouping:{groupBy:undefined,direction:"asc"},icons:{expandGroup:'<i class="gj-icon plus" />',collapseGroup:'<i class="gj-icon minus" />'}},fontawesome:{icons:{expandGroup:'<i class="fa fa-plus" aria-hidden="true"></i>',collapseGroup:'<i class="fa fa-minus" aria-hidden="true"></i>'}},glyphicons:{icons:{expandGroup:'<span class="glyphicon glyphicon-plus" />',collapseGroup:'<span class="glyphicon glyphicon-minus" />'}}},"private":{init:function(a){var l,c=a.data();l=undefined,a.on("rowDataBound",function(e,t,n,i){if(l!==i[c.grouping.groupBy]||1===t[0].rowIndex){var o=gj.grid.methods.countVisibleColumns(a)-1,r=$('<tr role="group" />'),s=$('<td class="gj-text-align-center gj-unselectable gj-cursor-pointer" />');s.append('<div data-role="display">'+c.icons.collapseGroup+"</div>"),s.on("click",gj.grid.plugins.grouping["private"].createExpandCollapseHandler(c)),r.append(s),r.append('<td colspan="'+o+'"><div data-role="display">'+c.grouping.groupBy+": "+i[c.grouping.groupBy]+"</div></td>"),r.insertBefore(t),l=i[c.grouping.groupBy]}t.show()}),c.params[c.paramNames.groupBy]=c.grouping.groupBy,c.params[c.paramNames.groupByDirection]=c.grouping.direction},grouping:function(e,t){var n=e.data();t.sort(gj.grid.methods.createDefaultSorter(n.grouping.direction,n.grouping.groupBy))},createExpandCollapseHandler:function(n){return function(){var e=$
19(this),t=gj.grid.plugins.grouping["private"];"row"===e.closest("tr").next(":visible").data("role")?t.collapseGroup(n,e):t.expandGroup(n,e)}},collapseGroup:function(e,t){var n=t.children('div[data-role="display"]');t.closest("tr").nextUntil('[role="group"]').hide(),n.empty().append(e.icons.expandGroup)},expandGroup:function(e,t){var n=t.children('div[data-role="display"]');t.closest("tr").nextUntil('[role="group"]').show(),n.empty().append(e.icons.collapseGroup)}},"public":{},configure:function(n){var e,t=n.data();$.extend(!0,n,gj.grid.plugins.grouping["public"]),t.grouping&&t.grouping.groupBy&&(e={title:"",width:t.defaultIconColumnWidth,align:"center",stopPropagation:!0,cssClass:"gj-cursor-pointer gj-unselectable"},t.columns=[e].concat(t.columns),n.on("initialized",function(){gj.grid.plugins.grouping["private"].init(n)}),n.on("dataFiltered",function(e,t){gj.grid.plugins.grouping["private"].grouping(n,t)}))}},gj.grid.messages["en-us"]={First:"First",Previous:"Previous",Next:"Next",Last:"Last",Page:"Page",FirstPageTooltip:"First Page",PreviousPageTooltip:"Previous Page",NextPageTooltip:"Next Page",LastPageTooltip:"Last Page",Refresh:"Refresh",Of:"of",DisplayingRecords:"Displaying records",RowsPerPage:"Rows per page:",Edit:"Edit",Delete:"Delete",Update:"Update",Cancel:"Cancel",NoRecordsFound:"No records found.",Loading:"Loading..."},gj.tree={plugins:{}},gj.tree.config={base:{params:{},autoLoad:!0,selectionType:"single",cascadeSelection:!1,dataSource:undefined,primaryKey:undefined,textField:"text",childrenField:"children",hasChildrenField:"hasChildren",imageCssClassField:"imageCssClass",imageUrlField:"imageUrl",imageHtmlField:"imageHtml",disabledField:"disabled",width:undefined,border:!1,uiLibrary:"materialdesign",iconsLibrary:"materialicons",autoGenId:1,autoGenFieldName:"autoId_b5497cc5-7ef3-49f5-a7dc-4a932e1aee4a",indentation:24,style:{wrapper:"gj-unselectable",list:"gj-list gj-list-md",item:undefined,active:"gj-list-md-active",leafIcon:undefined,border:"gj-tree-md-border"},icons:{expand:'<i class="gj-icon chevron-right" />',collapse:'<i class="gj-icon chevron-down" />'}},bootstrap:{style:{wrapper:"gj-unselectable gj-tree-bootstrap-3",list:"gj-list gj-list-bootstrap list-group",item:"list-group-item",active:"active",border:"gj-tree-bootstrap-border"},iconsLibrary:"glyphicons"},bootstrap4:{style:{wrapper:"gj-unselectable gj-tree-bootstrap-4",list:"gj-list gj-list-bootstrap",item:"list-group-item",active:"active",border:"gj-tree-bootstrap-border"},icons:{expand:'<i class="gj-icon plus" />',collapse:'<i class="gj-icon minus" />'}},materialicons:{style:{expander:"gj-tree-material-icons-expander"}},fontawesome:{style:{expander:"gj-tree-font-awesome-expander"},icons:{expand:'<i class="fa fa-plus" aria-hidden="true"></i>',collapse:'<i class="fa fa-minus" aria-hidden="true"></i>'}},glyphicons:{style:{expander:"gj-tree-glyphicons-expander"},icons:{expand:'<span class="glyphicon glyphicon-plus" />',collapse:'<span class="glyphicon glyphicon-minus" />'}}},gj.tree.events={initialized:function(e){e.triggerHandler("initialized")},dataBinding:function(e){e.triggerHandler("dataBinding")},dataBound:function(e){e.triggerHandler("dataBound")},select:function(e,t,n){return e.triggerHandler("select",[t,n])},unselect:function(e,t,n){return e.triggerHandler("unselect",[t,n])},expand:function(e,t,n){return e.triggerHandler("expand",[t,n])},collapse:function(e,t,n){return e.triggerHandler("collapse",[t,n])},enable:function(e,t){return e.triggerHandler("enable",[t])},disable:function(e,t){return e.triggerHandler("disable",[t])},destroying:function(e){return e.triggerHandler("destroying")},nodeDataBound:function(e,t,n,i){return e.triggerHandler("nodeDataBound",[t,n,i])}},gj.tree.methods={init:function(e){return gj.widget.prototype.init.call(this,e,"tree"),gj.tree.methods.initialize.call(this),this.data("autoLoad")&&this.reload(),this},initialize:function(){var e=this.data(),t=$('<ul class="'+e.style.list+'"/>');this.empty().addClass(e.style.wrapper).append(t),e.width&&this.width(e.width),e.border&&this.addClass(e.style.border),gj.tree.events.initialized(this)},useHtmlDataSource:function(e,t){t.dataSource=[]},render:function(e,t){var n;return t&&("string"==typeof t&&JSON&&(t=JSON.parse(t)),(n=e.data()).records=t,n.primaryKey||gj.tree.methods.genAutoId(n,n.records),gj.tree.methods.loadData(e)),e},filter:function(e){return e.data().dataSource},genAutoId:function(e,t){var n;for(n=0;n<t.length;n++)t[n][e.autoGenFieldName]=e.autoGenId++,t[n][e.childrenField]&&t[n][e.childrenField].length&&gj.tree.methods.genAutoId(e,t[n][e.childrenField])}
vendor: 10,224 bytes, line 19
19,loadData:function(e){var t,n=e.data("records"),i=e.children("ul");for(gj.tree.events.dataBinding(e),i.off().empty(),t=0;t<n.length;t++)gj.tree.methods.appendNode(e,i,n[t],1);gj.tree.events.dataBound(e)},appendNode:function(e,t,n,i,o){var r,s,a,l,c,d=e.data(),u=d.primaryKey?n[d.primaryKey]:n[d.autoGenFieldName];if(s=$('<li data-id="'+u+'" data-role="node" />').addClass(d.style.item),$wrapper=$('<div data-role="wrapper" />'),$expander=$('<span data-role="expander" data-mode="close"></span>').addClass(d.style.expander),$display=$('<span data-role="display">'+n[d.textField]+"</span>"),hasChildren="undefined"!=typeof n[d.hasChildrenField]&&"true"===n[d.hasChildrenField].toString().toLowerCase(),disabled="undefined"!=typeof n[d.disabledField]&&"true"===n[d.disabledField].toString().toLowerCase(),d.indentation&&$wrapper.append('<span data-role="spacer" style="width: '+d.indentation*(i-1)+'px;"></span>'),disabled?gj.tree.methods.disableNode(e,s):($expander.on("click",gj.tree.methods.expanderClickHandler(e)),$display.on("click",gj.tree.methods.displayClickHandler(e))),$wrapper.append($expander),$wrapper.append($display),s.append($wrapper),o?t.find("li:eq("+(o-1)+")").before(s):t.append(s),d.imageCssClassField&&n[d.imageCssClassField]?(l=$('<span data-role="image"><span class="'+n[d.imageCssClassField]+'"></span></span>')).insertBefore($display):d.imageUrlField&&n[d.imageUrlField]?((l=$('<span data-role="image"></span>')).insertBefore($display),(c=$('<img src="'+n[d.imageUrlField]+'"></img>')).attr("width",l.width()).attr("height",l.height()),l.append(c)):d.imageHtmlField&&n[d.imageHtmlField]&&(l=$('<span data-role="image">'+n[d.imageHtmlField]+"</span>")).insertBefore($display),n[d.childrenField]&&n[d.childrenField].length||hasChildren){if($expander.empty().append(d.icons.expand),a=$("<ul />").addClass(d.style.list).addClass("gj-hidden"),s.append(a),n[d.childrenField]&&n[d.childrenField].length)for(r=0;r<n[d.childrenField].length;r++)gj.tree.methods.appendNode(e,a,n[d.childrenField][r],i+1)}else d.style.leafIcon?$expander.addClass(d.style.leafIcon):$expander.html("&nbsp;");gj.tree.events.nodeDataBound(e,s,n.id,n)},expanderClickHandler:function(n){return function(){var e=$(this),t=e.closest("li");"close"===e.attr("data-mode")?n.expand(t):n.collapse(t)}},expand:function(e,t,n){var i,o,r=t.find('>[data-role="wrapper"]>[data-role="expander"]'),s=e.data(),a=t.attr("data-id"),l=t.children("ul");if(!1!==gj.tree.events.expand(e,t,a)&&l&&l.length&&(l.show(),r.attr("data-mode","open"),r.empty().append(s.icons.collapse),n))for(i=t.find("ul>li"),o=0;o<i.length;o++)gj.tree.methods.expand(e,$(i[o]),n);return e},collapse:function(e,t,n){var i,o,r=t.find('>[data-role="wrapper"]>[data-role="expander"]'),s=e.data(),a=t.attr("data-id"),l=t.children("ul");if(!1!==gj.tree.events.collapse(e,t,a)&&l&&l.length&&(l.hide(),r.attr("data-mode","close"),r.empty().append(s.icons.expand),n))for(i=t.find("ul>li"),o=0;o<i.length;o++)gj.tree.methods.collapse(e,$(i[o]),n);return e},expandAll:function(e){var t,n=e.find("ul>li");for(t=0;t<n.length;t++)gj.tree.methods.expand(e,$(n[t]),!0);return e},collapseAll:function(e){var t,n=e.find("ul>li");for(t=0;t<n.length;t++)gj.tree.methods.collapse(e,$(n[t]),!0);return e},displayClickHandler:function(n){return function(){var e=$(this).closest("li"),t=n.data().cascadeSelection;"true"===e.attr("data-selected")?gj.tree.methods.unselect(n,e,t):("single"===n.data("selectionType")&&gj.tree.methods.unselectAll(n),gj.tree.methods.select(n,e,t))}},selectAll:function(e){var t,n=e.find("ul>li");for(t=0;t<n.length;t++)gj.tree.methods.select(e,$(n[t]),!0);return e},select:function(e,t,n){var i,o,r=e.data();if("true"!==t.attr("data-selected")&&!1!==gj.tree.events.select(e,t,t.attr("data-id"))&&(t.addClass(r.style.active).attr("data-selected","true"),n))for(o=t.find("ul>li"),i=0;i<o.length;i++)gj.tree.methods.select(e,$(o[i]),n)},unselectAll:function(e){var t,n=e.find("ul>li");for(t=0;t<n.length;t++)gj.tree.methods.unselect(e,$(n[t]),!0);return e},unselect:function(e,t,n){var i,o;e.data();if("true"===t.attr("data-selected")&&!1!==gj.tree.events.unselect(e,t,t.attr("data-id"))&&(t.removeClass(e.data().style.active).removeAttr("data-selected"),n))for(o=t.find("ul>li"),i=0;i<o.length;i++)gj.tree.methods.unselect(e,$(o[i]),n)},getSelections:function(e){var t,n,i,o=[],r=e.children("li");if(r&&r.length)for(t=0;t<r.length;t++)"true"===(n=$(r[t])).attr("data-selected")?o.push(n.attr("data-id")):n.has("ul")&&(i=gj.tree.methods.getSelections(n.children("ul"))).length&&(o=o.concat(i));return o},getDataById:function(e,t,n){var i,o=e.data(),r=undefined;for(i=0;i<n.length;i++){if(o.primaryKey&&n[i][o.primaryKey]==t){r=n[i];break}if(n[i][o.autoGenFieldName]==t){r=n[i];break}if(n[i][o.childrenField]&&n[i][o.childrenField].length&&(r=gj.tree.methods.getDataById(e,t,n[i][o.childrenField])))break}return r},getDataByText:function(e,t,n){var i,o=undefined,r=e.data();for(i=0;i<n.length;i++){if(t===n[i][r.textField]){o=n[i];break}if(n[i][r.childrenField]&&n[i][r.childrenField].length&&(o=gj.tree.methods.getDataByText(e,t,n[i][r.childrenField])))break}return o},getNodeById:function(e,t){var n,i,o=undefined,r=e.children("li");if(r&&r.length)for(n=0;n<r.length;n++){if(t==(i=$(r[n])).attr("data-id")){o=i;break}if(i.has("ul")&&(o=gj.tree.methods.getNodeById(i.children("ul"),t)))break}return o},getNodeByText:function(e,t){var n,i,o=undefined,r=e.children("li");if(r&&r.length)for(n=0;n<r.length;n++){if(t===(i=$(r[n])).find('>[data-role="wrapper"]>[data-role="display"]').text()){o=i;break}if(i.has("ul")&&(o=gj.tree.methods.getNodeByText(i.children("ul"),t)))break}return o},addNode:function(e,t,n,i){var o,r,s=e.data();return n&&n.length?("li"===n[0].tagName.toLowerCase()&&(0===n.children("ul").length&&(n.find('[data-role="expander"]').empty().append(s.icons.collapse),n.append($("<ul />").addClass(s.style.list))),n=n.children("ul")),(r=e.getDataById(n.parent().data("id")))[s.childrenField]||(r[s.childrenField]=[]),r[s.childrenField].push(t)):(n=e.children("ul"),e.data("records").push(t)),o=n.parentsUntil('[data-type="tree"]',"ul").length+1,s.primaryKey||gj.tree.methods.genAutoId(s,[t]),gj.tree.methods.appendNode(e,n,t,o,i),e},remove:function(e,t){return gj.tree.methods.removeDataById(e,t.attr("data-id"),e.data("records")),t.remove(),e},removeDataById:function(e,t,n){var i,o=e.data();for(i=0;i<n.length;i++){if(o.primaryKey&&n[i][o.primaryKey]==t){n.splice(i,1);break}if(n[i][o.autoGenFieldName]==t){n.splice(i,1);break}n[i][o.childrenField]&&n[i][o.childrenField].length&&gj.tree.methods.removeDataById(e,t,n[i][o.childrenField])}},update:function(e,t,n){var i=e.data(),o=e.getNodeById(t);e.getDataById(t);return n,o.find('>[data-role="wrapper"]>[data-role="display"]').html(n[i.textField]),gj.tree.events.nodeDataBound(e,o,t,n),e},getChildren:function(e,t,n){var i,o,r=[];for(o=(n=void 0===n||n)?t.find("ul li"):t.find(">ul>li"),i=0;i<o.length;i++)r.push($(o[i]).data("id"));return r},enableAll:function(e){var t,n=e.find("ul>li");for(t=0;t<n.length;t++)gj.tree.methods.enableNode(e,$(n[t]),!0);return e},enableNode:function(e,t,n){var i,o,r=t.find('>[data-role="wrapper"]>[data-role="expander"]'),s=t.find('>[data-role="wrapper"]>[data-role="display"]');n=void 0===n||n;if(t.removeClass("disabled"),r.on("click",gj.tree.methods.expanderClickHandler(e)),s.on("click",gj.tree.methods.displayClickHandler(e)),gj.tree.events.enable(e,t),n)for(o=t.find("ul>li"),i=0;i<o.length;i++)gj.tree.methods.enableNode(e,$(o[i]),n)},disableAll:function(e){var t,n=e.find("ul>li");for(t=0;t<n.length;t++)gj.tree.methods.disableNode(e,$(n[t]),!0);return e},disableNode:function(e,t,n){var i,o,r=t.find('>[data-role="wrapper"]>[data-role="expander"]'),s=t.find('>[data-role="wrapper"]>[data-role="display"]');n=void 0===n||n;if(t.addClass("disabled"),r.off("click"),s.off("click"),gj.tree.events.disable(e,t),n)for(o=t.find("ul>li"),i=0;i<o.length;i++)gj.tree.methods.disableNode(e,$(o[i]),n)},destroy:function(e){return e.data()&&(gj.tree.events.destroying(e),e.xhr&&e.xhr.abort(),e.off(),e.removeData(),e.removeAttr("data-type"),e.removeClass().empty()),e},pathFinder:function(e,t,n,i){var o,r=!1;for(o=0;o<t.length;o++){if(t[o].id==n){r=!0;break}if(gj.tree.methods.pathFinder(e,t[o][e.childrenField],n,i)){i.push(t[o].data[e.textField]),r=!0;break}}return r}},gj.tree.widget=function(e,t){var n=this,i=gj.tree.methods;return n.reload=function(e){return gj.widget.prototype.reload.call(this,e)},n.render=function(e){return i.render(this,e)},n.addNode=function(e,t,n){return i.addNode(this,e,t,n)},n.removeNode=function(e){return i.remove(this,e)},n.updateNode=function(e,t){return i.update(this,e,t)},n.destroy=function(){return i.destroy(this)},n.expand=function(e,t){return i.expand(this,e,t)},n.collapse=function(e,t){return i.collapse(this,e,t)},n.expandAll=function(){return i.expandAll(this)},n.collapseAll=function(){return i.collapseAll(this)},n.getDataById=function(e){return i.getDataById(this,e,this.data("records"))},n.getDataByText=function(e){return i.getDataByText(this,e,this.data("records"))},n.getNodeById=function(e){return i.getNodeById(this.children("ul"),e)},n.getNodeByText=function(e){return i.getNodeByText(this.children("ul"),e)},n.getAll=function(){return this.data("records")},n.select=function(e){return i.select(this,e)},n.unselect=function(e){return i.unselect(this,e)},n.selectAll=function(){return i.selectAll(this)},n.unselectAll=function(){return i.unselectAll(this)},n.getSelections=function(){return i.getSelections(this.children("ul"))},n.getChildren=function(e,t){return i.getChildren(this,e,t)},n.parents=function(e){var t=[],n=this.data();return i.pathFinder(n,n.records,e,t),t.reverse()},n.enable=function(e,t){return i.enableNode(this,e,t)},n.enableAll=function(){return i.enableAll(this)},n.disable=function(e,t){return i.disableNode(this,e,t)},n.disableAll=function(){return i.disableAll(this)},$.extend(e,n),"tree"!==e.attr("data-type")&&i.init.call(e,t),e},gj.tree.widget.prototype=new gj.widget,gj.tree.widget.constructor=gj.tree.widget,jQuery.fn.tree=function(e){var t;if(this&&this.length){if("object"!=typeof e&&e){if((t=new gj.tree.widget(this,null))[e])return t[e].apply(this,Array.prototype.slice.call(arguments,1
19));throw"Method "+e+" does not exist."}return new gj.tree.widget(this,e)}},gj.tree.plugins.checkboxes={config:{base:{checkboxes:undefined,checkedField:"checked",cascadeCheck:!0}},"private":{dataBound:function(e){var t;e.data("cascadeCheck")&&(t=e.find('li[data-role="node"]'),$.each(t,function(){var e=$(this),t=e.find('[data-role="checkbox"] input[type="checkbox"]').checkbox("state");"checked"===t&&(gj.tree.plugins.checkboxes["private"].updateChildrenState(e,t),gj.tree.plugins.checkboxes["private"].updateParentState(e,t))}))},nodeDataBound:function(e,t,n,i){var o,r,s,a,l;0===t.find('> [data-role="wrapper"] > [data-role="checkbox"]').length&&(o=e.data(),r=t.find('> [data-role="wrapper"] > [data-role="expander"]'),s=$('<input type="checkbox"/>'),a=$('<span data-role="checkbox"></span>').append(s),l="undefined"!=typeof i[o.disabledField]&&"true"===i[o.disabledField].toString().toLowerCase(),s=s.checkbox({uiLibrary:o.uiLibrary,iconsLibrary:o.iconsLibrary,change:function(){gj.tree.plugins.checkboxes.events.checkboxChange(e,t,i,s.state())}}),l&&s.prop("disabled",!0),i[o.checkedField]&&s.state("checked"),s.on("click",function(){var e=s.closest("li"),t=s.state();o.cascadeCheck&&(gj.tree.plugins.checkboxes["private"].updateChildrenState(e,t),gj.tree.plugins.checkboxes["private"].updateParentState(e,t))}),r.after(a))},
20updateParentState:function(e,t){var n,i,o,r,s,a;1===(n=e.parent("ul").parent("li")).length&&(i=e.parent("ul").parent("li").find('> [data-role="wrapper"] > [data-role="checkbox"] input[type="checkbox"]'),o=e.siblings().find('> [data-role="wrapper"] > span[data-role="checkbox"] input[type="checkbox"]'),r="checked"===t,s="unchecked"===t,a="indeterminate",$.each(o,function(){var e=$
20(this).checkbox("state");r&&"checked"!==e&&(r=!1),s&&"unchecked"!==e&&(s=!1)}),r&&!s&&(a="checked"),!r&&s&&(a="unchecked"),i.checkbox("state",a),gj.tree.plugins.checkboxes["private"].updateParentState(n,i.checkbox("state")))},updateChildrenState:function(e,t){var n=e.find('ul li [data-role="wrapper"] [data-role="checkbox"] input[type="checkbox"]');0<n.length&&$.each(n,function(){$(this).checkbox("state",t)})},update:function(e,t,n){var i=t.find('[data-role="checkbox"] input[type="checkbox"]').first();$(i).checkbox("state",n),e.data().cascadeCheck&&(gj.tree.plugins.checkboxes["private"].updateChildrenState(t,n),gj.tree.plugins.checkboxes["private"].updateParentState(t,n))}},"public":{getCheckedNodes:function(){var t=[],e=this.find('li [data-role="checkbox"] input[type="checkbox"]');return $.each(e,function(){var e=$(this);"checked"===e.checkbox("state")&&t.push(e.closest("li").data("id"))}),t},checkAll:function(){var e=this.find('li [data-role="checkbox"] input[type="checkbox"]');return $.each(e,function(){$(this).checkbox("state","checked")}),this},uncheckAll:function(){var e=this.find('li [data-role="checkbox"] input[type="checkbox"]');return $.each(e,function(){$(this).checkbox("state","unchecked")}),this},check:function(e){return gj.tree.plugins.checkboxes["private"].update(this,e,"checked"),this},uncheck:function(e){return gj.tree.plugins.checkboxes["private"].update(this,e,"unchecked"),this}},events:{checkboxChange:function(e,t,n,i){return e.triggerHandler("checkboxChange",[t,n,i])}},configure:function(o){o.data("checkboxes")&&gj.checkbox&&($.extend(!0,o,gj.tree.plugins.checkboxes["public"]),o.on("nodeDataBound",function(e,t,n,i){gj.tree.plugins.checkboxes["private"].nodeDataBound(o,t,n,i)}),o.on("dataBound",function(){gj.tree.plugins.checkboxes["private"].dataBound(o)}),o.on("enable",function(e,t){t.find('>[data-role="wrapper"]>[data-role="checkbox"] input[type="checkbox"]').prop("disabled",!1)}),o.on("disable",function(e,t){t.find('>[data-role="wrapper"]>[data-role="checkbox"] input[type="checkbox"]').prop("disabled",!0)}))}},gj.tree.plugins.dragAndDrop={config:{base:{dragAndDrop:undefined,style:{dragEl:"gj-tree-drag-el gj-tree-md-drag-el",dropAsChildIcon:"gj-cursor-pointer gj-icon plus",dropAbove:"gj-tree-drop-above",dropBelow:"gj-tree-drop-below"}},bootstrap:{style:{dragEl:"gj-tree-drag-el gj-tree-bootstrap-drag-el",dropAsChildIcon:"glyphicon glyphicon-plus",dropAbove:"drop-above",dropBelow:"drop-below"}},bootstrap4:{style:{dragEl:"gj-tree-drag-el gj-tree-bootstrap-drag-el",dropAsChildIcon:"gj-cursor-pointer gj-icon plus",dropAbove:"drop-above",dropBelow:"drop-below"}}},"private":{nodeDataBound:function(e,t){var n=t.children('[data-role="wrapper"]'),i=t.find('>[data-role="wrapper"]>[data-role="display"]');n.length&&i.length&&(i.on("mousedown",gj.tree.plugins.dragAndDrop["private"].createNodeMouseDownHandler(e)),i.on("mousemove",gj.tree.plugins.dragAndDrop["private"].createNodeMouseMoveHandler(e,t,i)),i.on("mouseup",gj.tree.plugins.dragAndDrop["private"].createNodeMouseUpHandler(e)))},createNodeMouseDownHandler:function(e){return function(){e.data("dragReady",!0)}},createNodeMouseUpHandler:function(e){return function(){e.data("dragReady",!1)}},createNodeMouseMoveHandler:function(r,s,a){return function(){if(r.data("dragReady")){var e,t,n,i,o=r.data();r.data("dragReady",!1),e=a.clone().wrap('<div data-role="wrapper"/>').closest("div").wrap('<li class="'+o.style.item+'" />').closest("li").wrap('<ul class="'+o.style.list+'" />').closest("ul"),$("body").append(e),e.attr("data-role","draggable-clone").addClass("gj-unselectable").addClass(o.style.dragEl),e.find('[data-role="wrapper"]').prepend('<span data-role="indicator" />'),e.draggable({drag:gj.tree.plugins.dragAndDrop["private"].createDragHandler(r,s,a),stop:gj.tree.plugins.dragAndDrop["private"].createDragStopHandler(r,s,a)}),t=a.parent(),n=a.offset().top,n-=parseInt(t.css("border-top-width"))+parseInt(t.css("margin-top"))+parseInt(t.css("padding-top")),i=a.offset().left,i-=parseInt(t.css("border-left-width"))+parseInt(t.css("margin-left"))+parseInt(t.css("padding-left")),i-=e.find('[data-role="indicator"]').outerWidth(!0),e.css({position:"absolute",top:n,left:i,width:a.outerWidth(!0)}),"true"===a.attr("data-droppable")&&a.droppable("destroy"),gj.tree.plugins.dragAndDrop["private"].getTargetDisplays(r,s,a).each(function(){var e=$
20(this);"true"===e.attr("data-droppable")&&e.droppable("destroy"),e.droppable()}),gj.tree.plugins.dragAndDrop["private"].getTargetDisplays(r,s).each(function(){var e=$(this);"true"===e.attr("data-droppable")&&e.droppable("destroy"),e.droppable()}),e.trigger("mousedown")}}},getTargetDisplays:function(e,t,n){return e.find('[data-role="display"]').not(n).not(t.find('[data-role="display"]'))},getTargetWrappers:function(e,t){return e.find('[data-role="wrapper"]').not(t.find('[data-role="wrapper"]'))},createDragHandler:function(e,t,n){var r=gj.tree.plugins.dragAndDrop["private"].getTargetDisplays(e,t,n),s=gj.tree.plugins.dragAndDrop["private"].getTargetWrappers(e,t),a=e.data();return function(e,t,n){var i=$(this),o=!1;r.each(function(){var e;if($(this).droppable("isOver",n))return e=i.find('[data-role="indicator"]'),a.style.dropAsChildIcon?e.addClass(a.style.dropAsChildIcon):e.text("+"),!(o=!0);i.find('[data-role="indicator"]').removeClass(a.style.dropAsChildIcon).empty()}),s.each(function(){var e,t=$(this);!o&&t.droppable("isOver",n)?(e=t.position().top+t.outerHeight()/2,n.y<e?t.addClass(a.style.dropAbove).removeClass(a.style.dropBelow):t.addClass(a.style.dropBelow).removeClass(a.style.dropAbove)):t.removeClass(a.style.dropAbove).removeClass(a.style.dropBelow)})}},createDragStopHandler:function(l,c,e){var t=gj.tree.plugins.dragAndDrop["private"].getTargetDisplays(l,c,e),d=gj.tree.plugins.dragAndDrop["private"].getTargetWrappers(l,c),u=l.data();return function(e,o){var r,s,a,n,i=!1;$(this).draggable("destroy").remove(),t.each(function(){var e,t=$(this);if(t.droppable("isOver",o))return s=t.closest("li"),a=c.parent("ul").parent("li"),0===(e=s.children("ul")).length&&(e=$("<ul />").addClass(u.style.list),s.append(e)),!1!==gj.tree.plugins.dragAndDrop.events.nodeDrop(l,c.data("id"),s.data("id"),e.children("li").length+1)&&(e.append(c),r=l.getDataById(c.data("id")),gj.tree.methods.removeDataById(l,c.data("id"),u.records),(n=l.getDataById(e.parent().data("id")))[u.childrenField]===undefined&&(n[u.childrenField]=[]),n[u.childrenField].push(r),gj.tree.plugins.dragAndDrop["private"].refresh(l,c,s,a)),!(i=!0);t.droppable("destroy")}),i||d.each(function(){var e,t,n,i=$(this);if(i.droppable("isOver",o))return s=i.closest("li"),a=c.parent("ul").parent("li"),e=o.y<i.position().top+i.outerHeight()/2,n=c.data("id"),t=s.prevAll('li:not([data-id="'+n+'"])').length+(e?1:2),!1!==gj.tree.plugins.dragAndDrop.events.nodeDrop(l,n,s.parent("ul").parent("li").data("id"),t)&&(r=l.getDataById(c.data("id")),gj.tree.methods.removeDataById(l,c.data("id"),u.records),l.getDataById(s.parent().data("id"))[u.childrenField].splice(s.index()+(e?0:1),0,r),e?c.insertBefore(s):c.insertAfter(s),gj.tree.plugins.dragAndDrop["private"].refresh(l,c,s,a)),!1;i.droppable("destroy")})}},refresh:function(e,t,n,i){var o=e.data();gj.tree.plugins.dragAndDrop["private"].refreshNode(e,n),gj.tree.plugins.dragAndDrop["private"].refreshNode(e,i),gj.tree.plugins.dragAndDrop["private"].refreshNode(e,t),t.find('li[data-role="node"]').each(function(){gj.tree.plugins.dragAndDrop["private"].refreshNode(e,$(this))}),n.children('[data-role="wrapper"]').removeClass(o.style.dropAbove).removeClass(o.style.dropBelow)},refreshNode:function(e,t){var n=t.children('[data-role="wrapper"]'),i=n.children('[data-role="expander"]'),o=n.children('[data-role="spacer"]'),r=t.children("ul"),s=e.data(),a=t.parentsUntil('[data-type="tree"]',"ul").length;r.length&&r.children().length?r.is(":visible")?i.empty().append(s.icons.collapse):i.empty().append(s.icons.expand):i.empty(),n.removeClass(s.style.dropAbove).removeClass(s.style.dropBelow),o.css("width",s.indentation*(a-1))}},"public":{},events:{nodeDrop:function(e,t,n,i){return e.triggerHandler("nodeDrop",[t,n,i])}},configure:function(n){$.extend(!0,n,gj.tree.plugins.dragAndDrop["public"]),n.data("dragAndDrop")&&gj.draggable&&gj.droppable&&n.on("nodeDataBound",function(e,t){gj.tree.plugins.dragAndDrop["private"].nodeDataBound(n,t)})}},gj.tree.plugins.lazyLoading={config:{base:{paramNames:{parentId:"parentId"},lazyLoading:!1}},"private":{nodeDataBound:function(e,t,n,i){var o=e.data(),r=t.find('> [data-role="wrapper"] > [data-role="expander"]');i.hasChildren&&r.empty().append(o.icons.expand)},createDoneHandler:function(r,s){return function(e){var t,n,i,o=r.data();if("string"==typeof e&&JSON&&(e=JSON.parse(e)),e&&e.length){for(0===(i=s.children("ul")).length&&(i=$("<ul />").addClass(o.style.list),s.append(i)),t=0;t<e.length;t++)r.addNode(e[t],i);(n=s.find('>[data-role="wrapper"]>[data-role="expander"]')).attr("data-mode","open"),n.empty().append(o.icons.collapse),gj.tree.events.dataBound(r)}}},expand:function(e,t,n){var i,o=e.data(),r={},s=t.find(">ul>li");s&&s.length||"string"==typeof o.dataSource&&(r[o.paramNames.parentId]=n,i={url:o.dataSource,data:r},e.xhr&&e.xhr.abort(),e.xhr=$.ajax(i).done(gj.tree.plugins.lazyLoading["private"].createDoneHandler(e,t)).fail(e.createErrorHandler()))}},"public":{},events:{},configure:function(o,e,t){t.lazyLoading&&(o.on("nodeDataBound",function(e,t,n,i){gj.tree.plugins.lazyLoading["private"].nodeDataBound(o,t,n,i)}),o.on("expand",function(e,t,n){gj.tree.plugins.lazyLoading["private"].exp
20and(o,t,n)}))}},gj.checkbox={plugins:{}},gj.checkbox.config={base:{uiLibrary:"materialdesign",iconsLibrary:"materialicons",style:{wrapperCssClass:"gj-checkbox-md",spanCssClass:undefined}},bootstrap:{style:{wrapperCssClass:"gj-checkbox-bootstrap"},iconsLibrary:"glyphicons"},bootstrap4:{style:{wrapperCssClass:"gj-checkbox-bootstrap gj-checkbox-bootstrap-4"},iconsLibrary:"materialicons"},materialicons:{style:{iconsCssClass:"gj-checkbox-material-icons",spanCssClass:"gj-icon"}},glyphicons:{style:{iconsCssClass:"gj-checkbox-glyphicons",spanCssClass:""}},fontawesome:{style:{iconsCssClass:"gj-checkbox-fontawesome",spanCssClass:"fa"}}},gj.checkbox.methods={init:function(e){var t=this;return gj.widget.prototype.init.call(this,e,"checkbox"),t.attr("data-checkbox","true"),gj.checkbox.methods.initialize(t),t},initialize:function(e){var t,n,i=e.data();i.style.wrapperCssClass&&(t=$('<label class="'+i.style.wrapperCssClass+" "+i.style.iconsCssClass+'"></label>'),e.attr("id")&&t.attr("for",e.attr("id")),e.wrap(t),n=$("<span />"),i.style.spanCssClass&&n.addClass(i.style.spanCssClass),e.parent().append(n))},state:function(e,t){return t?("checked"===t?(e.prop("indeterminate",!1),e.prop("checked",!0)):"unchecked"===t?(e.prop("indeterminate",!1),e.prop("checked",!1)):"indeterminate"===t&&(e.prop("checked",!0),e.prop("indeterminate",!0)),gj.checkbox.events.change(e,t),e):t=e.prop("indeterminate")?"indeterminate":e.prop("checked")?"checked":"unchecked"},toggle:function(e){return"checked"==e.state()?e.state("unchecked"):e.state("checked"),e},destroy:function(e){return"true"===e.attr("data-checkbox")&&(e.removeData(),e.removeAttr("data-guid"),e.removeAttr("data-checkbox"),e.off(),e.next("span").remove(),e.unwrap()),e}},gj.checkbox.events={change:function(e,t){return e.triggerHandler("change",[t])}},gj.checkbox.widget=function(e,t){var n=this,i=gj.checkbox.methods;return n.toggle=function(){return i.toggle(this)},n.state=function(e){return i.state(this,e)},n.destroy=function(){return i.destroy(this)},$.extend(e,n),"true"!==e.attr("data-checkbox")&&i.init.call(e,t),e},gj.checkbox.widget.prototype=new gj.widget,gj.checkbox.widget.constructor=gj.checkbox.widget,jQuery.fn.checkbox=function(e){var t;if(this&&this.length){if("object"!=typeof e&&e){if((t=new gj.checkbox.widget(this,null))[e])return t[e].apply(this,Array.prototype.slice.call(arguments,1));throw"Method "+e+" does not exist."}return new gj.checkbox.widget(this,e)}},gj.editor={plugins:{},messages:{}},gj.editor.config={base:{height:300,width:undefined,uiLibrary:"materialdesign",iconsLibrary:"materialicons",locale:"en-us",buttons:undefined,style:{wrapper:"gj-editor gj-editor-md",buttonsGroup:"gj-button-md-group",button:"gj-button-md",buttonActive:"active"}},bootstrap:{style:{wrapper:"gj-editor gj-editor-bootstrap",buttonsGroup:"btn-group",button:"btn btn-default gj-cursor-pointer",buttonActive:"active"}},bootstrap4:{style:{wrapper:"gj-editor gj-editor-bootstrap",buttonsGroup:"btn-group",button:"btn btn-outline-secondary gj-cursor-pointer",buttonActive:"active"}},materialicons:{icons:{bold:'<i class="gj-icon bold" />',italic:'<i class="gj-icon italic" />',strikethrough:'<i class="gj-icon strikethrough" />',underline:'<i class="gj-icon underlined" />',listBulleted:'<i class="gj-icon list-bulleted" />',listNumbered:'<i class="gj-icon list-numbered" />',indentDecrease:'<i class="gj-icon indent-decrease" />',indentIncrease:'<i class="gj-icon indent-increase" />',alignLeft:'<i class="gj-icon align-left" />',alignCenter:'<i class="gj-icon align-center" />',alignRight:'<i class="gj-icon align-right" />',alignJustify:'<i class="gj-icon align-justify" />',undo:'<i class="gj-icon undo" />',redo:'<i class="gj-icon redo" />'}},fontawesome:{icons:{bold:'<i class="fa fa-bold" aria-hidden="true"></i>',italic:'<i class="fa fa-italic" aria-hidden="true"></i>',strikethrough:'<i class="fa fa-strikethrough" aria-hidden="true"></i>',underline:'<i class="fa fa-underline" aria-hidden="true"></i>',listBulleted:'<i class="fa fa-list-ul" aria-hidden="true"></i>',listNumbered:'<i class="fa fa-list-ol" aria-hidden="true"></i>',indentDecrease:'<i class="fa fa-indent" aria-hidden="true"></i>',indentIncrease:'<i class="fa fa-outdent" aria-hidden="true"></i>',alignLeft:'<i class="fa fa-align-left" aria-hidden="true"></i>',alignCenter:'<i class="fa fa-align-center" aria-hidden="true"></i>',alignRight:'<i class="fa fa-align-right" aria-hidden="true"></i>',alignJustify:'<i class="fa fa-align-justify" aria-hidden="true"></i>',undo:'<i class="fa fa-undo" aria-hidden="true"></i>',redo:'<i class="fa fa-repeat" aria-hidden="true"></i>'}}},gj.editor.methods={init:function(e){return gj.widget.prototype.init.call(this,e,"editor"),this.attr("data-editor","true"),gj.editor.methods.initialize(this),this},initialize:function(n){var e,t,i,o,r,s=this,a=n.data();if(n.hide(),"wrapper"!==n[0].parentElement.attributes.role&&((i=document.createElement("div")).setAttribute("role","wrapper"),n[0].parentNode.insertBefore(i,n[0]),i.appendChild(n[0])),gj.editor.methods.localization(a),$(i).addClass(a.style.wrapper),a.width&&$(i).width(a.width),0===(o=$(i).children('div[role="body"]')).length&&(o=$('<div role="body"></div>'),$(i).append(o),n[0].innerText&&(o[0].innerHTML=n[0].innerText)),o.attr("contenteditable",!0),o.on("keydown",function(e){var t=event.keyCode||event.charCode;!1===gj.editor.events.changing(n)&&8!==t&&46!==t&&e.preventDefault()}),o.on("mouseup keyup mouseout cut paste",function(){s.updateToolbar(n,r),gj.editor.events.changed(n),n.html(o.html())}),0===(r=$(i).children('div[role="toolbar"]')).length)for(var l in r=$('<div role="toolbar"></div>'),o.before(r),a.buttons){for(var c in e=$("<div />").addClass(a.style.buttonsGroup),a.buttons[l])(t=$(a.buttons[l][c])).on("click",function(){gj.editor.methods.executeCmd(n,o,r,$(this))}),e.append(t);r.append(e)}
20o.height(a.height-gj.core.height(r[0],!0))},localization:function(e){var t=gj.editor.messages[e.locale];"undefined"==typeof e.buttons&&(e.buttons=[['<button type="button" class="'+e.style.button+'" title="'+t.bold+'" role="bold">'+e.icons.bold+"</button>",'<button type="button" class="'+e.style.button+'" title="'+t.italic+'" role="italic">'+e.icons.italic+"</button>",'<button type="button" class="'+e.style.button+'" title="'+t.strikethrough+'" role="strikethrough">'+e.icons.strikethrough+"</button>",'<button type="button" class="'+e.style.button+'" title="'+t.underline+'" role="underline">'+e.icons.underline+"</button>"],['<button type="button" class="'+e.style.button+'" title="'+t.listBulleted+'" role="insertunorderedlist">'+e.icons.listBulleted+"</button>",'<button type="button" class="'+e.style.button+'" title="'+t.listNumbered+'" role="insertorderedlist">'+e.icons.listNumbered+"</button>",'<button type="button" class="'+e.style.button+'" title="'+t.indentDecrease+'" role="outdent">'+e.icons.indentDecrease+"</button>",'<button type="button" class="'+e.style.button+'" title="'+t.indentIncrease+'" role="indent">'+e.icons.indentIncrease+"</button>"],['<button type="button" class="'+e.style.button+'" title="'+t.alignLeft+'" role="justifyleft">'+e.icons.alignLeft+"</button>",'<button type="button" class="'+e.style.button+'" title="'+t.alignCenter+'" role="justifycenter">'+e.icons.alignCenter+"</button>",'<button type="button" class="'+e.style.button+'" title="'+t.alignRight+'" role="justifyright">'+e.icons.alignRight+"</button>",'<button type="button" class="'+e.style.button+'" title="'+t.alignJustify+'" role="justifyfull">'+e.icons.alignJustify+"</button>"],['<button type="button" class="'+e.style.button+'" title="'+t.undo+'" role="undo">'+e.icons.undo+"</button>",'<button type="button" class="'+e.style.button+'" title="'+t.redo+'" role="redo">'+e.icons.redo+"</button>"]])},updateToolbar:function(e,t){var n=e.data();
vendor: 22,932 bytes, lines 20-21
20$buttons=t.find("[role]").each(function(){var e=$(this),t=e.attr("role");t&&document.queryCommandEnabled(t)&&"true"===document.queryCommandValue(t)?e.addClass(n.style.buttonActive):e.removeClass(n.style.buttonActive)})},executeCmd:function(e,t,n,i){t.focus(),document.execCommand(i.attr("role"),!1),gj.editor.methods.updateToolbar(e,n)},content:function(e,t){var n=e.parent().children('div[role="body"]');return void 0===t?n.html():n.html(t)},destroy:function(e){var t;return"true"===e.attr("data-editor")&&((t=e.parent()).children('div[role="body"]').remove(),t.children('div[role="toolbar"]').remove(),e.unwrap(),e.removeData(),e.removeAttr("data-guid"),e.removeAttr("data-editor"),e.off(),e.show()),e}},gj.editor.events={changing:function(e){return e.triggerHandler("changing")},changed:function(e){return e.triggerHandler("changed")}},gj.editor.widget=function(e,t){var n=this,i=gj.editor.methods;return n.content=function(e){return i.content(this,e)},n.destroy=function(){return i.destroy(this)},$.extend(e,n),"true"!==e.attr("data-editor")&&i.init.call(e,t),e},gj.editor.widget.prototype=new gj.widget,gj.editor.widget.constructor=gj.editor.widget,jQuery.fn.editor=function(e){var t;if(this&&this.length){if("object"!=typeof e&&e){if((t=new gj.editor.widget(this,null))[e])return t[e].apply(this,Array.prototype.slice.call(arguments,1));throw"Method "+e+" does not exist."}return new gj.editor.widget(this,e)}},gj.editor.messages["en-us"]={bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",listBulleted:"List Bulleted",listNumbered:"List Numbered",indentDecrease:"Indent Decrease",indentIncrease:"Indent Increase",alignLeft:"Align Left",alignCenter:"Align Center",alignRight:"Align Right",alignJustify:"Align Justify",undo:"Undo",redo:"Redo"},gj.dropdown={plugins:{}},gj.dropdown.config={base:{dataSource:undefined,textField:"text",valueField:"value",selectedField:"selected",width:undefined,maxHeight:"auto",placeholder:undefined,fontSize:undefined,uiLibrary:"materialdesign",iconsLibrary:"materialicons",icons:{dropdown:'<i class="gj-icon arrow-dropdown" />',dropup:'<i class="gj-icon arrow-dropup" />'},style:{wrapper:"gj-dropdown gj-dropdown-md gj-unselectable",list:"gj-list gj-list-md gj-dropdown-list-md",active:"gj-list-md-active"}},bootstrap:{style:{wrapper:"gj-dropdown gj-dropdown-bootstrap gj-dropdown-bootstrap-3 gj-unselectable",presenter:"btn btn-default",list:"gj-list gj-list-bootstrap gj-dropdown-list-bootstrap list-group",item:"list-group-item",active:"active"},iconsLibrary:"glyphicons"},bootstrap4:{style:{wrapper:"gj-dropdown gj-dropdown-bootstrap gj-dropdown-bootstrap-4 gj-unselectable",presenter:"btn btn-outline-secondary",list:"gj-list gj-list-bootstrap gj-dropdown-list-bootstrap list-group",item:"list-group-item",active:"active"}},materialicons:{style:{expander:"gj-dropdown-expander-mi"}},fontawesome:{icons:{dropdown:'<i class="fa fa-caret-down" aria-hidden="true"></i>',dropup:'<i class="fa fa-caret-up" aria-hidden="true"></i>'},style:{expander:"gj-dropdown-expander-fa"}},glyphicons:{icons:{dropdown:'<span class="caret"></span>',dropup:'<span class="dropup"><span class="caret" ></span></span>'},style:{expander:"gj-dropdown-expander-glyphicons"}}},gj.dropdown.methods={init:function(e){return gj.widget.prototype.init.call(this,e,"dropdown"),this.attr("data-dropdown","true"),gj.dropdown.methods.initialize(this),this},getHTMLConfig:function(){var e=gj.widget.prototype.getHTMLConfig.call(this),t=this[0].attributes;return t.placeholder&&(e.placeholder=t.placeholder.value),e},initialize:function(e){var t=e.data(),n=e.parent('div[role="wrapper"]'),i=$('<span role="display"></span>'),o=$('<span role="expander">'+t.icons.dropdown+"</span>").addClass(t.style.expander),r=$('<button role="presenter" type="button"></button>').addClass(t.style.presenter),s=$('<ul role="list" class="'+t.style.list+'"></ul>').attr("guid",e.attr("data-guid"));0===n.length?(n=$('<div role="wrapper" />').addClass(t.style.wrapper),e.wrap(n)):n.addClass(t.style.wrapper),t.fontSize&&r.css("font-size",t.fontSize),r.on("click",function(){s.is(":visible")?gj.dropdown.methods.close(e,s):gj.dropdown.methods.open(e,s)}),r.on("blur",function(){setTimeout(function(){gj.dropdown.methods.close(e,s)},500)}),r.append(i).append(o),e.hide(),e.after(r),$("body").append(s),s.hide(),e.reload()},setListPosition:function(e,t,n){var i,o,r,s,a=e.getBoundingClientRect(),l=window.scrollY||window.pageYOffset||0;window.scrollX||window.pageXOffset;t.style.overflow="",t.style.overflowX="",t.style.height="",gj.core.setChildPosition(e,t),i=gj.core.height(t,!0),s=t.getBoundingClientRect(),o=gj.core.height(e,!0),"auto"===n.maxHeight?a.top<s.top?a.top+i+o>window.innerHeight&&(r=window.innerHeight-a.top-o-3):0<a.top-i-3?t.style.top=Math.round(a.top+l-i-3)+"px":(t.style.top=l+"px",r=a.top-3):!isNaN(n.maxHeight)&&n.maxHeight<i&&(r=n.maxHeight),r&&(t.style.overflow="scroll",t.style.overflowX="hidden",t.style.height=r+"px")},useHtmlDataSource:function(e,t){var n,i,o=[],r=e.find("option");for(n=0;n<r.length;n++)(i={})[t.valueField]=r[n].value,i[t.textField]=r[n].innerHTML,i[t.selectedField]=e[0].value===r[n].value,o.push(i);t.dataSource=o},filter:function(e){var t,n,i=e.data();if(i.dataSource){if("string"==typeof i.dataSource[0])for(t=0;t<i.dataSource.length;t++)(n={})[i.valueField]=i.dataSource[t],n[i.textField]=i.dataSource[t],i.dataSource[t]=n}else i.dataSource=[];return i.dataSource},render:function(o,e){var r=[],s=o.data(),t=o.parent(),a=$("body").children('[role="list"][guid="'+o.attr("data-guid")+'"]'),n=t.children('[role="presenter"]'),l=(n.children('[role="expander"]'),n.children('[role="display"]'));if(o.data("records",e),o.empty(),a.empty(),e&&e.length)if($.each(e,function(){var e,t=this[s.valueField],n=this[s.textField],i=this[s.selectedField]&&"true"===this[s.selectedField].toString().toLowerCase();(e=$('<li value="'+t+'"><div data-role="wrapper"><span data-role="display">'+n+"</span></div></li>")).addClass(s.style.item),e.on("click",function(){gj.dropdown.methods.select(o,t)}),a.append(e),o.append('<option value="'+t+'">'+n+"</option>"),i&&r.push(t)}),0===r.length)o.prepend('<option value=""></option>'),o[0].selectedIndex=0,s.placeholder&&(l[0].innerHTML='<span class="placeholder">'+s.placeholder+"</span>");else for(i=0;i<r.length;i++)gj.dropdown.methods.select(o,r[i]);return s.width&&(t.css("width",s.width),n.css("width",s.width)),s.fontSize&&a.children("li").css("font-size",s.fontSize),gj.dropdown.events.dataBound(o),o},open:function(e,t){var n=e.data(),i=e.parent().find('[role="expander"]'),o=e.parent().find('[role="presenter"]'),r=gj.core.getScrollParent(e[0]);t.css("width",gj.core.width(o[0])),t.show(),gj.dropdown.methods.setListPosition(o[0],t[0],n),i.html(n.icons.dropup),r&&(n.parentScrollHandler=function(){gj.dropdown.methods.setListPosition(o[0],t[0],n)},gj.dropdown.methods.addParentsScrollListener(r,n.parentScrollHandler))},close:function(e,t){var n=e.data(),i=e.parent().find('[role="expander"]'),o=gj.core.getScrollParent(e[0]);i.html(n.icons.dropdown),o&&n.parentScrollHandler&&gj.dropdown.methods.removeParentsScrollListener(o,n.parentScrollHandler),t.hide()},addParentsScrollListener:function(e,t){var n=gj.core.getScrollParent(e.parentNode);e.addEventListener("scroll",t),n&&gj.dropdown.methods.addParentsScrollListener(n,t)},removeParentsScrollListener:function(e,t){var n=gj.core.getScrollParent(e.parentNode);e.removeEventListener("scroll",t),n&&gj.dropdown.methods.removeParentsScrollListener(n,t)},select:function(e,t){var n=e.data(),i=$("body").children('[role="list"][guid="'+e.attr("data-guid")+'"]'),o=i.children('li[value="'+t+'"]'),r=e.next('[role="presenter"]').find('[role="display"]'),s=gj.dropdown.methods.getRecordByValue(e,t);return i.children("li").removeClass(n.style.active),s?(o.addClass(n.style.active),e[0].value=t,r[0].innerHTML=s[n.textField]):(n.placeholder&&(r[0].innerHTML='<span class="placeholder">'+n.placeholder+"</span>"),e[0].value=""),gj.dropdown.events.change(e),gj.dropdown.methods.close(e,i),e},getRecordByValue:function(e,t){var n,i=e.data(),o=undefined;for(n=0;n<i.records.length;n++)if(i.records[n][i.valueField]===t){o=i.records[n];break}return o},value:function(e,t){return void 0===t?e.val():(gj.dropdown.methods.select(e,t),e)},destroy:function(e){var t=e.data(),n=e.parent('div[role="wrapper"]');return t&&(e.xhr&&e.xhr.abort(),e.off(),e.removeData(),e.removeAttr("data-type").removeAttr("data-guid").removeAttr("data-dropdown"),e.removeClass(),0<n.length&&(n.children('[role="presenter"]').remove(),n.children('[role="list"]').remove(),e.unwrap()),e.show()),e}},gj.dropdown.events={change:function(e){return e.triggerHandler("change")},dataBound:function(e){return e.triggerHandler("dataBound")}},gj.dropdown.widget=function(e,t){var n=this,i=gj.dropdown.methods;return n.value=function(e){return i.value(this,e)},n.enable=function(){return i.enable(this)},n.disable=function(){return i.disable(this)},n.destroy=function(){return i.destroy(this)},$.extend(e,n),"true"!==e.attr("data-dropdown")&&i.init.call(e,t),e},gj.dropdown.widget.prototype=new gj.widget,gj.dropdown.widget.constructor=gj.dropdown.widget,gj.dropdown.widget.prototype.getHTMLConfig=gj.dropdown.methods.getHTMLConfig,jQuery.fn.dropdown=function(e){var t;if(this&&this.length){if("object"!=typeof e&&e){if((t=new gj.dropdown.widget(this,null))[e])return t[e].apply(this,Array.prototype.slice.call(arguments,1));throw"Method "+e+" does not exist."}return new gj.dropdown.widget(this,e)}},gj.datepicker={plugins:{}},gj.datepicker.config={base:{showOtherMonths:!1,selectOtherMonths:!0,width:undefined,minDate:undefined,maxDate:undefined,format:"mm/dd/yyyy",uiLibrary:"materialdesign",iconsLibrary:"materialicons",value:undefined,weekStartDay:0,disableDates:undefined,disableDaysOfWeek:undefined,calendarWeeks:!1,keyboardNavigation:!0,locale:"en-us",icons:{rightIcon:'<i class="gj-icon">event</i>',previousMonth:'<i class="gj-icon chevron-left"></i>',nextMonth:'<i class="gj-icon chevron-right"></i>'},fontSize:undefined,size:"default",modal:!1,header:!1,footer:!1,showOnFocus:!0,showRightIcon:!0,style:{modal:"gj-modal",wrapper:"gj-datepicker gj-datepicker-md gj-unselectable",input:"gj-textbox-md",calendar:"gj-picker gj-picker-md datepicker gj-unselectable",footer:"",button:"gj-button-md"}},bootstrap:{style:{wrapper:"gj-datepicker gj-datepicker-bootstrap gj-unselectable input-group",input:"form-control",calendar:"gj-picker gj-picker-bootstrap datepicker gj-unselectable",footer:"modal-footer",button:"btn btn-default"},iconsLibrary:"glyphicons",showOtherMonths:!0},bootstrap4:{style:{wrapper:"gj-datepicker gj-datepicker-bootstrap gj-unselectable input-group",input:"form-control",calendar:"gj-picker gj-picker-bootstrap datepicker gj-unselectable",footer:"modal-footer",button:"btn btn-default"},showOtherMonths:!0},fontawesome:{icons:{rightIcon:'<i class="fa fa-calendar" aria-hidden="true"></i>',previousMonth:'<i class="fa fa-chevron-left" aria-hidden="true"></i>',nextMonth:'<i class="fa fa-chevron-right" aria-hidden="true"></i>'}},glyphicons:{icons:{rightIcon:'<span class="glyphicon glyphicon-calendar"></span>',previousMonth:'<span class="glyphicon glyphicon-chevron-left"></span>',nextMonth:'<span class="glyphicon glyphicon-chevron-right"></span>'}}},gj.datepicker.methods={init:function(e){return gj.widget.prototype.init.call(this,e,"datepicker"),this.attr("data-datepicker","true"),gj.datepicker.methods.initialize(this,this.data()),this},initialize:function(e,t){var n,i,o=e.parent('div[role="wrapper"]');0===o.length?(o=$('<div role="wrapper" />').addClass(t.style.wrapper),e.wrap(o)):o.addClass(t.style.wrapper),o=e.parent('div[role="wrapper"]'),t.width&&o.css("width",t.width),e.val(t.value).addClass(t.style.input).attr("role","input"),t.fontSize&&e.css("font-size",t.fontSize),"bootstrap"===t.uiLibrary||"bootstrap4"===t.uiLibrary?"small"===t.size?(o.addClass("input-group-sm"),e.addClass("form-control-sm")):"large"===t.size&&(o.addClass("input-group-lg"),e.addClass("form-control-lg")):"small"===t.size?o.addClass("small"):"large"===t.size&&o.addClass("large"),t.showRightIcon&&((i="bootstrap"===t.uiLibrary?$('<span class="input-group-addon">'+t.icons.rightIcon+"</span>"):"bootstrap4"===t.uiLibrary?$('<span class="input-group-append"><button class="btn btn-outline-secondary border-left-0" type="button">'+t.icons.rightIcon+"</button></span>"):$(t.icons.rightIcon)).attr("role","right-icon"),i.on("click",function(){$("body").find('[role="calendar"][guid="'+e.attr("data-guid")+'"]').is(":visible")?gj.datepicker.methods.close(e):gj.datepicker.methods.open(e,t)}),o.append(i)),t.showOnFocus&&e.on("focus",function(){gj.datepicker.methods.open(e,t)}),n=gj.datepicker.methods.createCalendar(e,t),!0!==t.footer&&(e.on("blur",function(){e.timeout=setTimeout(function(){gj.datepicker.methods.close(e)},500)}),n.mousedown(function(){return clearTimeout(e.timeout),document.activeElement!==e[0]&&e.focus(),!1}),n.on("click",function(){clearTimeout(e.timeout),document.activeElement!==e[0]&&e.focus()})),t.keyboardNavigation&&$(document).on("keydown",gj.datepicker.methods.createKeyDownHandler(e,n,t))},createCalendar:function(i,o){var e,t,n,r,s,a=$('<div role="calendar" type="month"/>').addClass(o.style.calendar).attr("guid",i.attr("data-guid"));return o.fontSize&&a.css("font-size",o.fontSize),!(e=gj.core.parseDate(o.value,o.format,o.locale))||isNaN(e.getTime())?e=new Date:i.attr("day",e.getFullYear()+"-"+e.getMonth()+"-"+e.getDate()),a.attr("month",e.getMonth()),a.attr("year",e.getFullYear()),gj.datepicker.methods.renderHeader(i,a,o,e),t=$('<div role="body" />'),a.append(t),o.footer&&(n=$('<div role="footer" class="'+o.style.footer+'" />'),(r=$('<button class="'+o.style.button+'">'+gj.core.messages[o.locale].cancel+"</button>")).on("click",function(){i.close()}),n.append(r),(s=$('<button class="'+o.style.button+'">'+gj.core.messages[o.locale].ok+"</button>")).on("click",function(){var e,t,n=a.attr("selectedDay");n?(t=n.split("-"),e=new Date(t[0],t[1],t[2],a.attr("hour")||0,a.attr("minute")||0),gj.datepicker.methods.change(i,a,o,e)):i.close()}),n.append(s),a.append(n)),a.hide(),$("body").append(a),o.modal&&(a.wrapAll('<div role="modal" class="'+o.style.modal+'"/>'),gj.core.center(a)),a},renderHeader:function(e,t,n,i){var o,r,s;n.header&&(o=$('<div role="header" />'),(s=$('<div role="year" />').on("click",function(){gj.datepicker.methods.renderDecade(e,t,n),s.addClass("selected"),r.removeClass("selected")})).html(gj.core.formatDate(i,"yyyy",n.locale)),o.append(s),(r=$('<div role="date" class="selected" />').on("click",function(){gj.datepicker.methods.renderMonth(e,t,n),r.addClass("selected"),s.removeClass("selected")})).html(gj.core.formatDate(i,"ddd, mmm dd",n.locale)),o.append(r),t.append(o))},updateHeader:function(e,t,n){e.find('[role="header"] [role="year"]').removeClass("selected").html(gj.core.formatDate(n,"yyyy",t.locale)),e.find('[role="header"] [role="date"]').addClass("selected").html(gj.core.formatDate(n,"ddd, mmm dd",t.locale)),e.find('[role="header"] [role="hour"]'
21).removeClass("selected").html(gj.core.formatDate(n,"HH",t.locale)),e.find('[role="header"] [role="minute"]').removeClass("selected").html(gj.core.formatDate(n,"MM",t.locale))},createNavigation:function(e,t,n,o){var r,s,a=$("<thead/>");for((s=$('<div role="navigator" />')).append($("<div>"+o.icons.previousMonth+"</div>").on("click",gj.datepicker.methods.prev(e,o))),s.append($('<div role="period"></div>').on("click",gj.datepicker.methods.changePeriod(e,o))),s.append($("<div>"+o.icons.nextMonth+"</div>").on("click",gj.datepicker.methods.next(e,o))),t.append(s),r=$('<tr role="week-days" />'),o.calendarWeeks&&r.append("<th><div>&nbsp;</div></th>"),i=o.weekStartDay;i<gj.core.messages[o.locale].weekDaysMin.length;i++)r.append("<th><div>"+gj.core.messages[o.locale].weekDaysMin[i]+"</div></th>");for(i=0;i<o.weekStartDay;i++)r.append("<th><div>"+gj.core.messages[o.locale].weekDaysMin[i]+"</div></th>");a.append(r),n.append(a)},renderMonth:function(e,t,n){var i,o,r,s,a,l,c,d,u,p,h,f,g,m,v,y=t.children('[role="body"]'),b=$("<table/>"),w=$("<tbody/>"),C=gj.core.messages[n.locale].titleFormat;for(y.off().empty(),gj.datepicker.methods.createNavigation(e,y,b,n),s=parseInt(t.attr("month"),10),a=parseInt(t.attr("year"),10),t.attr("type","month"),C=C.replace("mmmm",gj.core.messages[n.locale].monthNames[s]).replace("yyyy",a),t.find('div[role="period"]').text(C),l=new Array(31,28,31,30,31,30,31,31,30,31,30,31),a%4==0&&1900!=a&&(l[1]=29),c=l[s],d=(new Date(a,s,1).getDay()+7-n.weekStartDay)%7,i=0,$row=$("<tr />"),h=gj.datepicker.methods.getPrevMonth(s,a),u=1;u<=d;u++)r=l[h.month]-d+u,v=new Date(h.year,h.month,r),n.calendarWeeks&&1===u&&$row.append('<td class="calendar-week"><div>'+gj.datepicker.methods.getWeekNumber(v)+"</div></td>"),g=$('<td class="other-month" />'),n.showOtherMonths&&(m=$("<div>"+r+"</div>"),g.append(m),n.selectOtherMonths&&gj.datepicker.methods.isSelectable(n,v)?(g.addClass("gj-cursor-pointer").attr("day",r).attr("month",h.month).attr("year",h.year),m.on("click",gj.datepicker.methods.dayClickHandler(e,t,n,v)),m.on("mousedown",function(e){e.stopPropagation()})):g.addClass("disabled")),$row.append(g),i++;for(1<u&&w.append($row),p=new Date,u=1;u<=c;u++)v=new Date(a,s,u),0==i&&($row=$("<tr>"),n.calendarWeeks&&$row.append('<td class="calendar-week"><div>'+gj.datepicker.methods.getWeekNumber(v)+"</div></td>")),g=$('<td day="'+u+'" month="'+s+'" year="'+a+'" />'),a===p.getFullYear()&&s===p.getMonth()&&u===p.getDate()?g.addClass("today"):g.addClass("current-month"),m=$("<div>"+u+"</div>"),gj.datepicker.methods.isSelectable(n,v)?(g.addClass("gj-cursor-pointer"),m.on("click",gj.datepicker.methods.dayClickHandler(e,t,n,v)),m.on("mousedown",function(e){e.stopPropagation()})):g.addClass("disabled"),g.append(m),$row.append(g),7==++i&&(w.append($row),i=0);for(f=gj.datepicker.methods.getNextMonth(s,a),u=1;0!=i;u++)v=new Date(f.year,f.month,u),g=$('<td class="other-month" />'),n.showOtherMonths&&(m=$("<div>"+u+"</div>"),n.selectOtherMonths&&gj.datepicker.methods.isSelectable(n,v)?(g.addClass("gj-cursor-pointer").attr("day",u).attr("month",f.month).attr("year",f.year),m.on("click",gj.datepicker.methods.dayClickHandler(e,t,n,v)),m.on("mousedown",function(e){e.stopPropagation()})):g.addClass("disabled"),g.append(m)),$row.append(g),7==++i&&(w.append($row),i=0);b.append(w),y.append(b),t.attr("selectedDay")&&(o=t.attr("selectedDay").split("-"),v=new Date(o[0],o[1],o[2],t.attr("hour")||0,t.attr("minute")||0),t.find('tbody td[day="'+o[2]+'"][month="'+o[1]+'"]').addClass("selected"),gj.datepicker.methods.updateHeader(t,n,v))},renderYear:function(e,t,n){var i,o,r,s,a=t.find('>[role="body"]>table'),l=a.children("tbody");for(a.children("thead").hide(),i=parseInt(t.attr("year"),10),t.attr("type","year"),t.find('div[role="period"]').text(i),l.empty(),o=0;o<3;o++){for($row=$("<tr />"),r=4*o;r<=4*o+3;r++)(s=$("<div>"+gj.core.messages[n.locale].monthShortNames[r]+"</div>")).on("click",gj.datepicker.methods.selectMonth(e,t,n,r)),$cell=$("<td></td>").append(s),$row.append($cell);l.append($row)}},renderDecade:function(e,t,n){var i,o,r,s,a,l=t.find('>[role="body"]>table'),c=l.children("tbody");for(l.children("thead").hide(),o=(i=parseInt(t.attr("year"),10))-i%10,t.attr("type","decade"),t.find('div[role="period"]').text(o+" - "+(o+9)),c.empty(),r=o-1;r<=o+10;r+=4){for($row=$("<tr />"),s=r;s<=r+3;s++)(a=$("<div>"+s+"</div>")).on("click",gj.datepicker.methods.selectYear(e,t,n,s)),$cell=$("<td></td>").append(a),$row.append($cell);c.append($row)}},renderCentury:function(e,t,n){var i,o,r,s,a,l=t.find('>[role="body"]>table'),c=l.children("tbody");for(l.children("thead").hide(),o=(i=parseInt(t.attr("year"),10))-i%100,t.attr("type","century"),t.find('div[role="period"]').text(o+" - "+(o+99)),c.empty(),r=o-10;r<o+100;r+=40){for($row=$("<tr />"),s=r;s<=r+30;s+=10)(a=$("<div>"+s+"</div>")).on("click",gj.datepicker.methods.selectDecade(e,t,n,s)),$cell=$("<td></td>").append(a),$row.append($cell);c.append($row)}},getWeekNumber:function(e){var t=new Date(e.valueOf());t.setDate(t.getDate()+6),(t=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()))).setUTCDate(t.getUTCDate()+4-(t.getUTCDay()||7));var n=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t-n)/864e5+1)/7)},getMinDate:function(e){var t;return e.minDate&&("string"==typeof e.minDate?t=gj.core.parseDate(e.minDate,e.format,e.locale):"function"==typeof e.minDate?"string"==typeof(t=e.minDate())&&(t=gj.core.parseDate(t,e.format,e.locale)):"function"==typeof e.minDate.getMonth&&(t=e.minDate)),t},getMaxDate:function(e){var t;return e.maxDate&&("string"==typeof e.maxDate?t=gj.core.parseDate(e.maxDate,e.format,e.locale):"function"==typeof e.maxDate?"string"==typeof(t=e.maxDate())&&(t=gj.core.parseDate(t,e.format,e.locale)):"function"==typeof e.maxDate.getMonth&&(t=e.maxDate)),t},isSelectable:function(e,t){var n,i=!0,o=gj.datepicker.methods.getMinDate(e),r=gj.datepicker.methods.getMaxDate(e);if(o&&t<o?i=!1:r&&r<t&&(i=!1),i){if(e.disableDates)if($.isArray(e.disableDates))for(n=0;n<e.disableDates.length;n++)e.disableDates[n]instanceof Date&&e.disableDates[n].getTime()===t.getTime()?i=!1:"string"==typeof e.disableDates[n]&&gj.core.parseDate(e.disableDates[n],e.format,e.locale).getTime()===t.getTime()&&(i=!1);else e.disableDates instanceof Function&&(i=e.disableDates(t));$.isArray(e.disableDaysOfWeek)&&-1<e.disableDaysOfWeek.indexOf(t.getDay())&&(i=!1)}return i},getPrevMonth:function(e,t){return date=new Date(t,e,1),date.setMonth(date.getMonth()-1),{month:date.getMonth(),year:date.getFullYear()}},getNextMonth:function(e,t){return date=new Date(t,e,1),date.setMonth(date.getMonth()+1),{month:date.getMonth(),year:date.getFullYear()}},prev:function(s,a){return function(){var e,t,n,i,o,r=$("body").find('[role="calendar"][guid="'+s.attr("data-guid")+'"]');switch(n=parseInt(r.attr("year"),10),r.attr("type")){case"month":t=parseInt(r.attr("month"),10),e=gj.datepicker.methods.getPrevMonth(t,n),r.attr("month",e.month),r.attr("year",e.year),gj.datepicker.methods.renderMonth(s,r,a);break;case"year":r.attr("year",n-1),gj.datepicker.methods.renderYear(s,r,a);break;case"decade":i=n-n%10,r.attr("year",i-10),gj.datepicker.methods.renderDecade(s,r,a);break;case"century":o=n-n%100,r.attr("year",o-100),gj.datepicker.methods.renderCentury(s,r,a)}}},next:function(s,a){return function(){var e,t,n,i,o,r=$("body").find('[role="calendar"][guid="'+s.attr("data-guid")+'"]');switch(n=parseInt(r.attr("year"),10),r.attr("type")){case"month":t=parseInt(r.attr("month"),10),e=gj.datepicker.methods.getNextMonth(t,n),r.attr("month",e.month),r.attr("year",e.year),gj.datepicker.methods.renderMonth(s,r,a);break;case"year":r.attr("year",n+1),gj.datepicker.methods.renderYear(s,r,a);break;case"decade":i=n-n%10,r.attr("year",i+10),gj.datepicker.methods.renderDecade(s,r,a);break;case"century":o=n-n%100,r.attr("year",o+100),gj.datepicker.methods.renderCentury(s,r,a)}}}
21,changePeriod:function(t,n){return function(){var e=$("body").find('[role="calendar"][guid="'+t.attr("data-guid")+'"]');switch(e.attr("type")){case"month":gj.datepicker.methods.renderYear(t,e,n);break;case"year":gj.datepicker.methods.renderDecade(t,e,n);break;case"decade":gj.datepicker.methods.renderCentury(t,e,n)}}},dayClickHandler:function(t,n,i,o){return function(e){return e&&e.stopPropagation(),gj.datepicker.methods.selectDay(t,n,i,o),!0!==i.footer&&!1!==i.autoClose&&gj.datepicker.methods.change(t,n,i,o),t}},change:function(e,t,n,i){i.getDate();var o=i.getMonth(),r=i.getFullYear(),s=gj.core.formatDate(i,n.format,n.locale);t.attr("month",o),t.attr("year",r),e.val(s),gj.datepicker.events.change(e),"none"!==window.getComputedStyle(t[0]).display&&gj.datepicker.methods.close(e)},selectDay:function(e,t,n,i){var o=i.getDate(),r=i.getMonth(),s=i.getFullYear();t.attr("selectedDay",s+"-"+r+"-"+o),t.find("tbody td").removeClass("selected"),t.find('tbody td[day="'+o+'"][month="'+r+'"]').addClass("selected"),gj.datepicker.methods.updateHeader(t,n,i),gj.datepicker.events.select(e,"day")},selectMonth:function(e,t,n,i){return function(){t.attr("month",i),gj.datepicker.methods.renderMonth(e,t,n),gj.datepicker.events.select(e,"month")}},selectYear:function(e,t,n,i){return function(){t.attr("year",i),gj.datepicker.methods.renderYear(e,t,n),gj.datepicker.events.select(e,"year")}},selectDecade:function(e,t,n,i){return function(){t.attr("year",i),gj.datepicker.methods.renderDecade(e,t,n),gj.datepicker.events.select(e,"decade")}},open:function(e,t){var n,i=$("body").find('[role="calendar"][guid="'+e.attr("data-guid")+'"]');switch(e.val()?e.value(e.val()):(n=new Date,i.attr("month",n.getMonth()),i.attr("year",n.getFullYear())),i.attr("type")){case"month":gj.datepicker.methods.renderMonth(e,i,t);break;case"year":gj.datepicker.methods.renderYear(e,i,t);break;case"decade":gj.datepicker.methods.renderDecade(e,i,t);break;case"century":gj.datepicker.methods.renderCentury(e,i,t)}i.show(),i.closest('div[role="modal"]').show(),t.modal?gj.core.center(i):(gj.core.setChildPosition(e[0],i[0]),document.activeElement!==e[0]&&e.focus()),clearTimeout(e.timeout),gj.datepicker.events.open(e)},close:function(e){var t=$("body").find('[role="calendar"][guid="'+e.attr("data-guid")+'"]');t.hide(),t.closest('div[role="modal"]').hide(),gj.datepicker.events.close(e)},createKeyDownHandler:function(a,l,c){return function(e){var t,n,i,o,r,s;e=e||window.event;"none"!==window.getComputedStyle(l[0]).display&&(s=gj.datepicker.methods.getActiveCell(l),"38"==e.keyCode?(o=s.index(),(r=s.closest("tr").prev("tr").find("td:eq("+o+")")).is("[day]")||(gj.datepicker.methods.prev(a,c)(),(r=l.find("tbody tr").last().find("td:eq("+o+")")).is(":empty")&&(r=l.find("tbody tr").last().prev().find("td:eq("+o+")"))),r.is("[day]")&&(r.addClass("focused"),s.removeClass("focused"))):"40"==e.keyCode?(o=s.index(),(r=s.closest("tr").next("tr").find("td:eq("+o+")")).is("[day]")||(gj.datepicker.methods.next(a,c)(),(r=l.find("tbody tr").first().find("td:eq("+o+")")).is("[day]")||(r=l.find("tbody tr:eq(1)").find("td:eq("+o+")"))),r.is("[day]")&&(r.addClass("focused"),s.removeClass("focused"))):"37"==e.keyCode?(0===(r=s.prev("td[day]:not(.disabled)")).length&&(r=s.closest("tr").prev("tr").find("td[day]").last()),0===r.length&&(gj.datepicker.methods.prev(a,c)(),r=l.find("tbody tr").last().find("td[day]").last()),0<r.length&&(r.addClass("focused"),s.removeClass("focused"))):"39"==e.keyCode?(0===(r=s.next("[day]:not(.disabled)")).length&&(r=s.closest("tr").next("tr").find("td[day]").first()),0===r.length&&(gj.datepicker.methods.next(a,c)(),r=l.find("tbody tr").first().find("td[day]").first()),0<r.length&&(r.addClass("focused"),s.removeClass("focused"))):"13"==e.keyCode?(i=parseInt(s.attr("day"),10),t=parseInt(s.attr("month"),10),n=parseInt(s.attr("year"),10),gj.datepicker.methods.dayClickHandler(a,l,c,new Date(n,t,i))()):"27"==e.keyCode&&a.close())}},getActiveCell:function(e){var t=e.find("td[day].focused");return 0===t.length&&0===(t=e.find("td[day].selected")).length&&0===(t=e.find("td[day].today")).length&&(t=e.find("td[day]:not(.disabled)").first()),t},value:function(e,t){var n,i,o=e.data();return void 0===t?e.val():((i=gj.core.parseDate(t,o.format,o.locale))&&i.getTime()?(n=$("body").find('[role="calendar"][guid="'+e.attr("data-guid")+'"]'),gj.datepicker.methods.dayClickHandler(e,n,o,i)()):e.val(""),e)},destroy:function(e){var t=e.data(),n=e.parent(),i=$("body").find('[role="calendar"][guid="'+e.attr("data-guid")+'"]');return t&&(e.off(),0<i.parent('[role="modal"]').length&&i.unwrap(),i.remove(),e.removeData(),e.removeAttr("data-type").removeAttr("data-guid").removeAttr("data-datepicker"),e.removeClass(),n.children('[role="right-icon"]').remove(),e.unwrap()),e}},gj.datepicker.events={change:function(e){return e.triggerHandler("change")},select:function(e,t){return e.triggerHandler("select",[t])},open:function(e){return e.triggerHandler("open")},close:function(e){return e.triggerHandler("close")}},gj.datepicker.widget=function(e,t){var n=this,i=gj.datepicker.methods;return n.value=function(e){return i.value(this,e)},n.destroy=function(){return i.destroy(this)},n.open=function(){return i.open(this,this.data())},n.close=function(){return i.close(this)},$.extend(e,n),"true"!==e.attr("data-datepicker")&&i.init.call(e,t),e},gj.datepicker.widget.prototype=new gj.widget,gj.datepicker.widget.constructor=gj.datepicker.widget,jQuery.fn.datepicker=function(e){var t;if(this&&this.length){if("object"!=typeof e&&e){if((t=new gj.datepicker.widget(this,null))[e])return t[e].apply(this,Array.prototype.slice.call(arguments,1
vendor: 1,824 bytes, line 21
21));throw"Method "+e+" does not exist."}return new gj.datepicker.widget(this,e)}},gj.timepicker={plugins:{}},gj.timepicker.config={base:{width:undefined,modal:!0,header:!0,footer:!0,format:"HH:MM",uiLibrary:"materialdesign",value:undefined,mode:"ampm",locale:"en-us",size:"default",icons:{rightIcon:'<i class="gj-icon clock" />'},style:{modal:"gj-modal",wrapper:"gj-timepicker gj-timepicker-md gj-unselectable",input:"gj-textbox-md",clock:"gj-picker gj-picker-md timepicker",footer:"",button:"gj-button-md"}},bootstrap:{style:{wrapper:"gj-timepicker gj-timepicker-bootstrap gj-unselectable input-group",input:"form-control",clock:"gj-picker gj-picker-bootstrap timepicker",footer:"modal-footer",button:"btn btn-default"},iconsLibrary:"glyphicons"},bootstrap4:{style:{wrapper:"gj-timepicker gj-timepicker-bootstrap gj-unselectable input-group",input:"form-control border",clock:"gj-picker gj-picker-bootstrap timepicker",footer:"modal-footer",button:"btn btn-default"}}},gj.timepicker.methods={init:function(e){return gj.picker.widget.prototype.init.call(this,e,"timepicker"),this},initialize:function(){},initMouse:function(e,t,n,i){e.off(),e.on("mousedown",gj.timepicker.methods.mouseDownHandler(t,n)),e.on("mousemove",gj.timepicker.methods.mouseMoveHandler(t,n,i)),e.on("mouseup",gj.timepicker.methods.mouseUpHandler(t,n,i))},createPicker:function(t){var e,n=t.data(),i=$('<div role="picker" />').addClass(n.style.clock).attr("guid",t.attr("data-guid")),o=$('<div role="hour" />'),r=$('<div role="minute" />'),s=$('<div role="header" />'),a=$('<div role="mode" />'),l=$('<div role="body" />'),c=$('<button class="'+n.style.button+'">'+gj.core.messages[n.locale].ok+"</button>"),d=$('<button class="'+n.style.button+'">'+gj.core.messages[n.locale].cancel+"</button>"),u=$('<div role="footer" class="'+n.style.footer+'" />');
21return!(e=gj.core.parseDate(n.value,n.format,n.locale))||isNaN(e.getTime())?e=new Date:t.attr("hours",e.getHours()),gj.timepicker.methods.initMouse(l,t,i,n),n.header&&(o.on("click",function(){gj.timepicker.methods.renderHours(t,i,n)}),r.on("click",function(){gj.timepicker.methods.renderMinutes(t,i,n)}),s.append(o).append(":").append(r),"ampm"===n.mode&&(a.append($('<span role="am">'+gj.core.messages[n.locale].am+"</span>").on("click",function(){var e=gj.timepicker.methods.getHour(i);i.attr("mode","am"),$(this).addClass("selected"),$(this).parent().children('[role="pm"]').removeClass("selected"),12<=e&&i.attr("hour",e-12),n.modal||(clearTimeout(t.timeout),t.focus())})),a.append("<br />"),a.append($('<span role="pm">'+gj.core.messages[n.locale].pm+"</span>").on("click",function(){var e=gj.timepicker.methods.getHour(i);i.attr("mode","pm"),$(this).addClass("selected"),$(this).parent().children('[role="am"]').removeClass("selected"),e<12&&i.attr("hour",e+12),n.modal||(clearTimeout(t.timeout),t.focus())})),s.append(a)),i.append(s)),i.append(l),n.footer&&(d.on("click",function(){t.close()}),u.append(d),c.on("click",gj.timepicker.methods.setTime(t,i)),u.append(c),i.append(u)),i.hide(),$("body").append(i),n.modal&&(i.wrapAll('<div role="modal" class="'+n.style.modal+'"/>'),gj.core.center(i)),i},getHour:function(e){return parseInt(e.attr("hour"),10)||0},getMinute:function(e){return parseInt(e.attr("minute"),10)||0},setTime:function(s,a){return function(){var e=gj.timepicker.methods.getHour(a),t=gj.timepicker.methods.getMinute(a),n=a.attr("mode"),i=new Date(0,0,0,12===e&&"am"===n?0:e,t),o=s.data(),r=gj.core.formatDate(i,o.format,o.locale);s.value(r),s.close()}},getPointerValue:function(e,t,n){var i,o,r=256,s=Math.atan2(r/2-e,r/2-t)/Math.PI*180;switch(s<0&&(s=360+s),n){case"ampm":return 0===(i=12-Math.round(12*s/360))?12:i;case"24hr":return o=Math.sqrt(Math.pow(r/2-e,2)+Math.pow(r/2-t,2)),0===(i=12-Math.round(12*s/360))&&(i=12),o<r/2-32&&(i=12===i?0:i+12),i;case"minutes":return 60===(i=Math.round(60-60*s/360))?0:i}},updateArrow:function(e,t,n,i){var o,r,s=t.mouseX(e),a=t.mouseY(e),l=window.scrollY||window.pageYOffset||0,c=window.scrollX||window.pageXOffset||0;o=e.target.getBoundingClientRect(),"hours"==i.dialMode?(r=gj.timepicker.methods.getPointerValue(s-c-o.left,a-l-o.top,i.mode),n.attr("hour","ampm"===i.mode&&"pm"===n.attr("mode")&&r<12?r+12:r)):"minutes"==i.dialMode&&(r=gj.timepicker.methods.getPointerValue(s-c-o.left,a-l-o.top,"minutes"),n.attr("minute",r)),gj.timepicker.methods.update(t,n,i)},update:function(e,t,n){var i,o,r,s,a,l;i=gj.timepicker.methods.getHour(t),o=gj.timepicker.methods.getMinute(t),r=t.find('[role="arrow"]'),"hours"==n.dialMode&&(0==i||12<i)&&"24hr"===n.mode?r.css("width","calc(50% - 52px)"):r.css("width","calc(50% - 20px)"),"hours"==n.dialMode?r.css("transform","rotate("+(30*i-90).toString()+"deg)"):r.css("transform","rotate("+(6*o-90).toString()+"deg)"),r.show(),s="ampm"===n.mode&&12<i?i-12:0==i?12:i,(l=t.find('[role="body"] span')).removeClass("selected"),l.filter(function(){return"hours"==n.dialMode?parseInt($(this).text(),10)==s:parseInt($(this).text(),10)==o}).addClass("selected"),n.header&&((a=t.find('[role="header"]')).find('[role="hour"]').text(s),a.find('[role="minute"]').text(gj.core.pad(o)),"ampm"===n.mode&&(12<=i?(a.find('[role="pm"]').addClass("selected"),a.find('[role="am"]').removeClass("selected")):(a.find('[role="am"]').addClass("selected"),a.find('[role="pm"]').removeClass("selected"))))},mouseDownHandler:function(e){return function(){e.mouseMove=!0}},mouseMoveHandler:function(t,n,i){return function(e){t.mouseMove&&gj.timepicker.methods.updateArrow(e,t,n,i)}},mouseUpHandler:function(t,n,i){return function(e){gj.timepicker.methods.updateArrow(e,t,n,i),t.mouseMove=!1,i.modal||(clearTimeout(t.timeout),t.focus()),"hours"==i.dialMode?setTimeout(function(){gj.timepicker.events.select(t,"hour"),gj.timepicker.methods.renderMinutes(t,n,i)},1e3):"minutes"==i.dialMode&&(!0!==i.footer&&!1!==i.autoClose&&gj.timepicker.methods.setTime(t,n)(),gj.timepicker.events.select(t,"minute"))}},renderHours:function(e,t,n){var i,o=t.find('[role="body"]');clearTimeout(e.timeout),o.empty(),(i=$('<div role="dial"></div>')).append('<div role="arrow" style="transform: rotate(-90deg); display: none;"><div class="arrow-begin"></div><div class="arrow-end"></div></div>'),i.append('<span role="hour" style="transform: translate(54px, -93.5307px);">1</span>'),i.append('<span role="hour" style="transform: translate(93.5307px, -54px);">2</span>'),i.append('<span role="hour" style="transform: translate(108px, 0px);">3</span>'),i.append('<span role="hour" style="transform: translate(93.5307px, 54px);">4</span>'),i.append('<span role="hour" style="transform: translate(54px, 93.5307p
21x);">5</span>'),i.append('<span role="hour" style="transform: translate(6.61309e-15px, 108px);">6</span>'),i.append('<span role="hour" style="transform: translate(-54px, 93.5307px);">7</span>'),i.append('<span role="hour" style="transform: translate(-93.5307px, 54px);">8</span>'),i.append('<span role="hour" style="transform: translate(-108px, 1.32262e-14px);">9</span>'),i.append('<span role="hour" style="transform: translate(-93.5307px, -54px);">10</span>'),i.append('<span role="hour" style="transform: translate(-54px, -93.5307px);">11</span>'),i.append('<span role="hour" style="transform: translate(-1.98393e-14px, -108px);">12</span>'),"24hr"===n.mode&&(i.append('<span role="hour" style="transform: translate(38px, -65.8179px);">13</span>'),i.append('<span role="hour" style="transform: translate(65.8179px, -38px);">14</span>'),i.append('<span role="hour" style="transform: translate(76px, 0px);">15</span>'),i.append('<span role="hour" style="transform: translate(65.8179px, 38px);">16</span>'),i.append('<span role="hour" style="transform: translate(38px, 65.8179px);">17</span>'),i.append('<span role="hour" style="transform: translate(4.65366e-15px, 76px);">18</span>'),i.append('<span role="hour" style="transform: translate(-38px, 65.8179px);">19</span>'),i.append('<span role="hour" style="transform: translate(-65.8179px, 38px);">20</span>'),i.append('<span role="hour" style="transform: translate(-76px, 9.30732e-15px);">21</span>'),i.append('<span role="hour" style="transform: translate(-65.8179px, -38px);">22</span>'),i.append('<span role="hour" style="transform: translate(-38px, -65.8179px);">23</span>'),i.append('<span role="hour" style="transform: translate(-1.3961e-14px, -76px);">00</span>')),o.append(i),t.find('[role="header"] [role="hour"]').addClass("selected"),t.find('[role="header"] [role="minute"]').removeClass("selected"),n.dialMode="hours",gj.timepicker.methods.update(e,t,n)},renderMinutes:function(e,t,n){var i=t.find('[role="body"]');clearTimeout(e.timeout),i.empty(),$dial=$('<div role="dial"></div>'),$dial.append('<div role="arrow" style="transform: rotate(-90deg); display: none;"><div class="arrow-begin"></div><div class="arrow-end"></div></div>'),$dial.append('<span role="hour" style="transform: translate(54px, -93.5307px);">5</span>'),$dial.append('<span role="hour" style="transform: translate(93.5307px, -54px);">10</span>'),$dial.append('<span role="hour" style="transform: translate(108px, 0px);">15</span>'),$dial.append('<span role="hour" style="transform: translate(93.5307px, 54px);">20</span>'),$dial.append('<span role="hour" style="transform: translate(54px, 93.5307px);">25</span>'),$dial.append('<span role="hour" style="transform: translate(6.61309e-15px, 108px);">30</span>'),$dial.append('<span role="hour" style="transform: translate(-54px, 93.5307px);">35</span>'),$dial.append('<span role="hour" style="transform: translate(-93.5307px, 54px);">40</span>'),$dial.append('<span role="hour" style="transform: translate(-108px, 1.32262e-14px);">45</span>'),$dial.append('<span role="hour" style="transform: translate(-93.5307px, -54px);">50</span>'),$dial.append('<span role="hour" style="transform: translate(-54px, -93.5307px);">55</span>'),$dial.append('<span role="hour" style="transform: translate(-1.98393e-14px, -108px);">00</span>'),i.append($dial),t.find('[role="header"] [role="hour"]').removeClass("selected"),t.find('[role="header"] [role="minute"]').addClass("selected"),n.dialMode="minutes",gj.timepicker.methods.update(e,t,n)},open:function(e){var t,n,i=e.data(),o=$("body").find('[role="picker"][guid="'+e.attr("data-guid")+'"]');return n=(t=e.value()?gj.core.parseDate(e.value(),i.format,i.locale):new Date).getHours(),"ampm"===i.mode&&o.attr("mode",12<n?"pm":"am"),o.attr("hour",n),o.attr("minute",t.getMinutes()),gj.timepicker.methods.renderHours(e,o,i),gj.picker.widget.prototype.open.call(e,"timepicker"),e},value:function(e,t){e.data();return void 0===t?e.val():(e.val(t),gj.timepicker.events.change(e),e)}},gj.timepicker.events={change:function(e){return e.triggerHandler("change")},select:function(e,t){return e.triggerHandler("select",[t])},open:function(e){return e.triggerHandler("open")},close:function(e){return e.triggerHandler("close")}},gj.timepicker.widget=function(e,t){var n=this,i=gj.timepicker.methods;return n.mouseMove=!1,n.value=function(e){return i.value(this,e)},n.destroy=function(){return gj.picker.widget.prototype.destroy.call(this,"timepicker")},n.open=function(){return gj.timepicker.methods.open(this)},n.close=function(){return gj.picker.widget.prototype.close.call(this,"timepicker")},$.extend(e,n),"true"!==e.attr("data-timepicker")&&i.init.call(e,t),e},gj.timepicker.widget.prototype=new gj.picker.widget,gj.timepicker.widget.constructor=gj.timepicker.widget,jQuery.fn.timepicker=function(e){var t;if(this&&this.length){if("object"!=typeof e&&e){if((t=new gj.timepicker.widget(this,null))[e])return t[e].apply(this,Array.prototype.slice.call(arguments,1
vendor: 6,951 bytes, line 21
21));throw"Method "+e+" does not exist."}return new gj.timepicker.widget(this,e)}},gj.datetimepicker={plugins:{},messages:{"en-us":{}}},gj.datetimepicker.config={base:{datepicker:gj.datepicker.config.base,timepicker:gj.timepicker.config.base,uiLibrary:"materialdesign",value:undefined,format:"HH:MM mm/dd/yyyy",width:undefined,modal:!1,footer:!1,size:"default",locale:"en-us",icons:{},style:{calendar:"gj-picker gj-picker-md datetimepicker gj-unselectable"}},bootstrap:{style:{calendar:"gj-picker gj-picker-bootstrap datetimepicker gj-unselectable"},iconsLibrary:"glyphicons"},bootstrap4:{style:{calendar:"gj-picker gj-picker-bootstrap datetimepicker gj-unselectable"}}},gj.datetimepicker.methods={init:function(e){return gj.widget.prototype.init.call(this,e,"datetimepicker"),this.attr("data-datetimepicker","true"),gj.datetimepicker.methods.initialize(this),this},getConfig:function(e,t){var n=gj.widget.prototype.getConfig.call(this,e,t);return uiLibrary=e.hasOwnProperty("uiLibrary")?e.uiLibrary:n.uiLibrary,gj.datepicker.config[uiLibrary]&&$.extend(!0,n.datepicker,gj.datepicker.config[uiLibrary]),gj.timepicker.config[uiLibrary]&&$.extend(!0,n.timepicker,gj.timepicker.config[uiLibrary]),iconsLibrary=e.hasOwnProperty("iconsLibrary")?e.iconsLibrary:n.iconsLibrary,gj.datepicker.config[iconsLibrary]&&$.extend(!0,n.datepicker,gj.datepicker.config[iconsLibrary]),gj.timepicker.config[iconsLibrary]&&$.extend(!0,n.timepicker,gj.timepicker.config[iconsLibrary]),n},initialize:function(o){var r,e,t,n,i,s,a,l,c=o.data();c.datepicker.uiLibrary=c.uiLibrary,c.datepicker.iconsLibrary=c.iconsLibrary,c.datepicker.width=c.width,c.datepicker.format=c.format,c.datepicker.locale=c.locale,c.datepicker.modal=c.modal,c.datepicker.footer=c.footer,c.datepicker.style.calendar=c.style.calendar,c.datepicker.value=c.value,c.datepicker.size=c.size,c.datepicker.autoClose=!1,gj.datepicker.methods.initialize(o,c.datepicker),o.on("select",function(e,t){var n,i;"day"===t?gj.datetimepicker.methods.createShowHourHandler(o,r,c)():"minute"===t&&r.attr("selectedDay")&&!0!==c.footer&&(selectedDay=r.attr("selectedDay").split("-"),n=new Date(selectedDay[0],selectedDay[1],selectedDay[2],r.attr("hour")||0,r.attr("minute")||0),i=gj.core.formatDate(n,c.format,c.locale),o.val(i),gj.datetimepicker.events.change(o),gj.datetimepicker.methods.close(o))}),o.on("open",function(){var e=r.children('[role="header"]');e.find('[role="calendarMode"]').addClass("selected"),e.find('[role="clockMode"]').removeClass("selected")}),r=$("body").find('[role="calendar"][guid="'+o.attr("data-guid")+'"]'),i=c.value?gj.core.parseDate(c.value,c.format,c.locale):new Date,r.attr("hour",i.getHours()),r.attr("minute",i.getMinutes()),c.timepicker.uiLibrary=c.uiLibrary,c.timepicker.iconsLibrary=c.iconsLibrary,c.timepicker.format=c.format,c.timepicker.locale=c.locale,c.timepicker.header=!0,c.timepicker.footer=c.footer,c.timepicker.size=c.size,c.timepicker.mode="24hr",c.timepicker.autoClose=!1,e=$('<div role="header" />'),(t=$('<div role="date" class="selected" />')).on("click",gj.datetimepicker.methods.createShowDateHandler(o,r,c)),t.html(gj.core.formatDate(new Date,"ddd, mmm dd",c.locale)),e.append(t),s=$('<div role="switch"></div>'),(a=$('<i class="gj-icon selected" role="calendarMode">event</i>')).on("click",gj.datetimepicker.methods.createShowDateHandler(o,r,c)),s.append(a),(n=$('<div role="time" />')).append($('<div role="hour" />').on("click",gj.datetimepicker.methods.createShowHourHandler(o,r,c)).html(gj.core.formatDate(new Date,"HH",c.locale))),n.append(":"),n.append($('<div role="minute" />').on("click",gj.datetimepicker.methods.createShowMinuteHandler(o,r,c)).html(gj.core.formatDate(new Date,"MM",c.locale))),s.append(n),(l=$('<i class="gj-icon" role="clockMode">clock</i>')).on("click",gj.datetimepicker.methods.createShowHourHandler(o,r,c)),s.append(l),e.append(s),r.prepend(e)},createShowDateHandler:function(t,n,i){return function(){var e=n.children('[role="header"]');e.find('[role="calendarMode"]').addClass("selected"),e.find('[role="date"]').addClass("selected"),e.find('[role="clockMode"]').removeClass("selected"),e.find('[role="hour"]').removeClass("selected"),e.find('[role="minute"]').removeClass("selected"),gj.datepicker.methods.renderMonth(t,n,i.datepicker)}},createShowHourHandler:function(t,n,i){return function(){var e=n.children('[role="header"]');e.find('[role="calendarMode"]').removeClass("selected"),e.find('[role="date"]').removeClass("selected"),e.find('[role="clockMode"]').addClass("selected"),e.find('[role="hour"]').addClass("selected"),e.find('[role="minute"]').removeClass("selected"),gj.timepicker.methods.initMouse(n.children('[role="body"]'),t,n,i.timepicker),gj.timepicker.methods.renderHours(t,n,i.timepicker)}},createShowMinuteHandler:function(t,n,i){return function(){var e=n.children('[role="header"]');e.find('[role="calendarMode"]').removeClass("selected"),e.find('[role="date"]').removeClass("selected"),e.find('[role="clockMode"]').addClass("selected"),e.find('[role="hour"]').removeClass("selected"),e.find('[role="minute"]').addClass("selected"),gj.timepicker.methods.initMouse(n.children('[role="body"]'),t,n,i.timepicker),gj.timepicker.methods.renderMinutes(t,n,i.timepicker)}},close:function(e){var t=$("body").find('[role="calendar"][guid="'+e.attr("data-guid")+'"]');t.hide(),t.closest('div[role="modal"]').hide()},value:function(e,t){var n,i,o,r=e.data();return void 0===t?e.val():((i=gj.core.parseDate(t,r.format,r.locale))?(n=$("body").find('[role="calendar"][guid="'+e.attr("data-guid")+'"]'),gj.datepicker.methods.dayClickHandler(e,n,r,i)(),o=i.getHours(),"ampm"===r.mode&&n.attr("mode",12<o?"pm":"am"),n.attr("hour",o),n.attr("minute",i.getMinutes()),e.val(t)):e.val(""),e)},destroy:function(e){var t=e.data(),n=e.parent(),i=$("body").find('[role="calendar"][guid="'+e.attr("data-guid")+'"]');return t&&(e.off(),0<i.parent('[role="modal"]').length&&i.unwrap(),i.remove(),e.removeData(),e.removeAttr("data-type").removeAttr("data-guid").removeAttr("data-datetimepicker"),e.removeClass(),n.children('[role="right-icon"]').remove(),e.unwrap()),e}},gj.datetimepicker.events={change:function(e){return e.triggerHandler("change")}},gj.datetimepicker.widget=function(e,t){var n=this,i=gj.datetimepicker.methods;return n.mouseMove=!1,n.value=function(e){return i.value(this,e)},n.open=function(){gj.datepicker.methods.open(this,this.data().datepicker)},n.close=function(){gj.datepicker.methods.close(this)},n.destroy=function(){return i.destroy(this)},$.extend(e,n),"true"!==e.attr("data-datetimepicker")&&i.init.call(e,t),e},gj.datetimepicker.widget.prototype=new gj.widget,gj.datetimepicker.widget.constructor=gj.datetimepicker.widget,gj.datetimepicker.widget.prototype.getConfig=gj.datetimepicker.methods.getConfig,jQuery.fn.datetimepicker=function(e){var t;if(this&&this.length){if("object"!=typeof e&&e){if((t=new gj.datetimepicker.widget(this,null))[e])return t[e].apply(this,Array.prototype.slice.call(arguments,1
21));throw"Method "+e+" does not exist."}return new gj.datetimepicker.widget(this,e)}},gj.slider={plugins:{},messages:{"en-us":{}}},gj.slider.config={base:{min:0,max:100,width:undefined,uiLibrary:"materialdesign",value:undefined,icons:{},style:{wrapper:"gj-slider gj-slider-md",progress:undefined,track:undefined}},bootstrap:{style:{wrapper:"gj-slider gj-slider-bootstrap gj-slider-bootstrap-3",progress:"progress-bar",track:"progress"}},bootstrap4:{style:{wrapper:"gj-slider gj-slider-bootstrap gj-slider-bootstrap-4",progress:"progress-bar",track:"progress"}}},gj.slider.methods={init:function(e){return gj.widget.prototype.init.call(this,e,"slider"),this.attr("data-slider","true"),gj.slider.methods.initialize(this,this.data()),this},
22initialize:function(e,t){var n,i,o,r;e[0].style.display="none","wrapper"!==e[0].parentElement.attributes.role?((n=document.createElement("div")).setAttribute("role","wrapper"),e[0].parentNode.insertBefore(n,e[0]),n.appendChild(e[0])):n=e[0].parentElement,t.width&&(n.style.width=t.width+"px"),gj.core.addClasses(n,t.style.wrapper),null==(i=e[0].querySelector('[role="track"]'))&&((i=document.createElement("div")).setAttribute("role","track"),n.appendChild(i)),gj.core.addClasses(i,t.style.track),null==(o=e[0].querySelector('[role="handle"]'))&&((o=document.createElement("div")).setAttribute("role","handle"),n.appendChild(o)),null==(r=e[0].querySelector('[role="progress"]'))&&((r=document.createElement("div")).setAttribute("role","progress"),n.appendChild(r)),gj.core.addClasses(r,t.style.progress),t.value||(t.value=t.min),gj.slider.methods.value(e,t,t.value),gj.documentManager.subscribeForEvent("mouseup",e.data("guid"),gj.slider.methods.createMouseUpHandler(e,o,t)),o.addEventListener("mousedown",gj.slider.methods.createMouseDownHandler(o,t)),gj.documentManager.subscribeForEvent("mousemove",e.data("guid"),gj.slider.methods.createMouseMoveHandler(e,i,o,r,t)),o.addEventListener("click",function(e){e.stopPropagation()}),n.addEventListener("click",gj.slider.methods.createClickHandler(e,i,o,t))},createClickHandler:function(s,a,l,c){return function(e){var t,n,i,o,r;"true"!==l.getAttribute("drag")&&(t=gj.core.position(s[0].parentElement),n=(new gj.widget).mou
vendor: 4,487 bytes, line 22
22seX(e)-t.left,i=gj.core.width(l)/2,o=gj.core.width(a)/(c.max-c.min),r=Math.round((n-i)/o)+c.min,gj.slider.methods.value(s,c,r))}},createMouseUpHandler:function(e,t){return function(){"true"===t.getAttribute("drag")&&(t.setAttribute("drag","false"),gj.slider.events.change(e))}},createMouseDownHandler:function(e){return function(){e.setAttribute("drag","true")}},createMouseMoveHandler:function(l,c,d,e,u){return function(e){var t,n,i,o,r,s,a;"true"===d.getAttribute("drag")&&(t=gj.core.position(l[0].parentElement),n=(new gj.widget).mouseX(e)-t.left,i=gj.core.width(c),o=gj.core.width(d)/2,r=i/(u.max-u.min),s=(u.value-u.min)*r,o<=n&&n<=i+o&&(s+r/2<n||n<s-r/2)&&(a=Math.round((n-o)/r)+u.min,gj.slider.methods.value(l,u,a)))}},value:function(e,t,n){var i,o;return void 0===n?e[0].value:(e[0].setAttribute("value",n),t.value=n,o=e.parent().children('[role="track"]')[0],i=gj.core.width(o)/(t.max-t.min),e.parent().children('[role="handle"]')[0].style.left=(n-t.min)*i+"px",e.parent().children('[role="progress"]')[0].style.width=(n-t.min)*i+"px",gj.slider.events.slide(e,n),e)},destroy:function(e){var t=e.data(),n=e.parent();return t&&(n.children('[role="track"]').remove(),n.children('[role="handle"]').remove(),n.children('[role="progress"]').remove(),e.unwrap(),e.off(),e.removeData(),e.removeAttr("data-type").removeAttr("data-guid").removeAttr("data-slider"),e.removeClass(),e.show()),e}},gj.slider.events={change:function(e){return e.triggerHandler("change")},slide:function(e,t){return e.triggerHandler("slide",[t])}},gj.slider.widget=function(e,t){var n=this,i=gj.slider.methods;return n.value=function(e){return i.value(this,this.data(),e)},n.destroy=function(){return i.destroy(this)},$.extend(e,n),"true"!==e.attr("data-slider")&&i.init.call(e,t),e},gj.slider.widget.prototype=new gj.widget,gj.slider.widget.constructor=gj.slider.widget,jQuery.fn.slider=function(e){var t;if(this&&this.length){if("object"!=typeof e&&e){if((t=new gj.slider.widget(this,null))[e])return t[e].apply(this,Array.prototype.slice.call(arguments,1));throw"Method "+e+" does not exist."}return new gj.slider.widget(this,e)}},gj.colorpicker={plugins:{},messages:{"en-us":{}}},gj.colorpicker.config={base:{uiLibrary:"materialdesign",value:undefined,icons:{rightIcon:'<i class="gj-icon">event</i>'},style:{modal:"gj-modal",wrapper:"gj-colorpicker gj-colorpicker-md gj-unselectable",input:"gj-textbox-md",picker:"gj-picker gj-picker-md colorpicker gj-unselectable",footer:"",button:"gj-button-md"}},bootstrap:{style:{}},bootstrap4:{style:{}}},gj.colorpicker.methods={init:function(e){return gj.picker.widget.prototype.init.call(this,e,"colorpicker"),gj.colorpicker.methods.initialize(this),this},initialize:function(){},createPicker:function(e,t){var n=$('<div role="picker" />').addClass(t.style.picker).attr("guid",e.attr("data-guid"));return n.html("test"),n.hide(),$("body").append(n),n},open:function(e){return e.val()&&e.value(e.val()),gj.picker.widget.prototype.open.call(e,"colorpicker")}},gj.colorpicker.events={change:function(e){return e.triggerHandler("change")},select:function(e){return e.triggerHandler("select")},open:function(e){return e.triggerHandler("open")},close:function(e){return e.triggerHandler("close")}},gj.colorpicker.widget=function(e,t){var n=this,i=gj.colorpicker.methods;return n.value=function(e){return i.value(this,e)},n.destroy=function(){return gj.picker.widget.prototype.destroy.call(this,"colorpicker")},n.open=function(){return i.open(this)},n.close=function(){return gj.picker.widget.prototype.close.call(this,"colorpicker")},$.extend(e,n),"true"!==e.attr("data-colorpicker")&&i.init.call(e,t),e},gj.colorpicker.widget.prototype=new gj.picker.widget,gj.colorpicker.widget.constructor=gj.colorpicker.widget,jQuery.fn.colorpicker=function(e){var t;if(this&&this.length){if("object"!=typeof e&&e){if((t=new gj.colorpicker.widget(this,null))[e])return t[e].apply(this,Array.prototype.slice.call(arguments,1));throw"Method "+e+" does not exist."}return new gj.colorpicker.widget(this,e)}},gj.dialog.messages["fr-fr"]={Close:"Fermer",DefaultTitle:"Dialogue"},gj.grid.messages["fr-fr"]={First:"Premier",Previous:"Pr\xe9c\xe9dent",Next:"Prochain",Last:"Dernier",Page:"Page",FirstPageTooltip:"Premi\xe8re page",PreviousPageTooltip:"Page pr\xe9c\xe9dente",NextPageTooltip:"Page suivante",LastPageTooltip:"Derni\xe8re page",Refresh:"Rafra\xeechir",Of:"de",DisplayingRecords:"R\xe9sultats",RowsPerPage:"Lignes par page:",Edit:"Modifier",Delete:"Effacer",Update:"Mettre \xe0 j
22our",Cancel:"Annuler",NoRecordsFound:"Aucun enregistrement trouv\xe9.",Loading:"Chargement..."},gj.editor.messages["fr-fr"]={bold:"Gras",italic:"Italique",strikethrough:"Barr\xe9",underline:"Soulign\xe9",listBulleted:"Puces",listNumbered:"Num\xe9rotation",indentDecrease:"Diminuer le retrait",indentIncrease:"Augmenter le retrait",alignLeft:"Aligner \xe0 gauche",alignCenter:"Centrer",alignRight:"Aligner \xe0 droite",alignJustify:"Justifier",undo:"Annuler",redo:"R\xe9tablir"},gj.core.messages["fr-fr"]={monthNames:["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"],monthShortNames:["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],weekDaysMin:["D","L","M","M","J","V","S"],weekDaysShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],weekDays:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],am:"AM",pm:"PM",ok:"OK",cancel:"Annuler",titleFormat:"mmmm yyyy"},$(document).on("turbolinks:load",function(){$("#menu-toggle").click(function(e){e.preventDefault(),$("#wrapper").toggleClass("toggled")}),feather.replace(),flashTimeOut(),addSelectPicker(),addSearchSections(),$('[data-toggle="tooltip"]').tooltip(),$(".checkall").on("change",function(){$(this).parents("form").find(":checkbox").prop("checked",this.checked)}),addSearchQuestions(),$("#form-members-select, #report-members-select").on("changed.bs.select",function(){$(this).parents("form").first().find("input[type=submit]").click()}),$("#form-members-search, #report-members-search").on("input propertychange paste",function(){$(this).parents("form").first().find("input[type=submit]").click()}),$("a[data-provide='show-search']").on("click",function(e){return e.preventDefault(),$(this).parent().toggleClass("active"),$(".search-content").toggleClass("col-md-12 col-md-9"),$(".search-sidebar").toggleClass("search-sidebar-collapsed"),setTimeout(function(){reflowCharts()},300),!1}),addDatePicker(),addToClipboard(),$("form.submit-on-change select").change(function(){$(this).closest("form").submit()}),$(".number-mask").on("blur",function(){if(""===window.getSelection().toString()){var e,t=$(this);e=(e=(e=(e=(e=t.val()).replace(/[^0-9\,\.\-]+/g,"")).replace(/[\s]+/g,"")).replace(/[\,]+/g,"."))?parseFloat(e):"",t.val(function(){return e.toLocaleString("fr-FR").replace("\u202f"," ")})}}
22),$(".scroll-to-question").on("click",function(){var e=$(this);id=e.data("question"),console.log(id),question=$(id),sectionTop=question.offset().top-60,window.scrollTo({top:sectionTop,behavior:"smooth"})}),duplicationCheck()}),$(document).ajaxComplete(function(){addSelectPicker()}),$(document).on("ajax:complete",function(){addSelectPicker()});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.