function helperGetResolution(){return window.screen.width+"x"+window.screen.height}function replaceURLWithHTMLLinks(n){return n.replace(/(\b(https?):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,"<a target='_blank' href='$1'>$1<\/a>")}function setCaretAtEnd(n){var r=$(n)[0],t,i;document.createRange&&(t=document.createRange(),t.selectNodeContents(r),t.collapse(!1),i=window.getSelection(),i.removeAllRanges(),i.addRange(t))}function stringEndsWith(n,t){return n.toLowerCase().substr(n.length-t.length)===t.toLowerCase()}function stringStartsWith(n,t){return n.toLowerCase().substr(0,t.length)===t.toLowerCase()}function browserIsIE(){return/Edge\/|Trident\/|MSIE /.test(window.navigator.userAgent)?!0:!1}function isPortrait(){var n=screen.msOrientation||(screen.orientation||screen.mozOrientation||{}).type;return n===undefined?window.innerWidth<window.innerHeight:n==="portrait-secondary"||n==="portrait-primary"?!0:!1}function isMobile(){return window.innerHeight<700||window.innerWidth<700}function isMobileTouch(){try{return document.createEvent("TouchEvent"),!0}catch(n){return!1}}function isIPhoneOrIPad(){return navigator.platform.indexOf("iPhone")!=-1||navigator.platform.indexOf("iPad")!=-1}function isAndroidDevice(){return/(android)/i.test(navigator.userAgent)}function generateChatRestTimeStamp(n){return n+"?dt="+(new Date).getTime()}function parseResult(n){try{return $.parseJSON(n)}catch(t){return null}}function restAppendChatDetailsRequest(n,t){t.prechatDetails.push({label:"Chat_Origin",value:"Chat",entityMaps:[{entityName:"Contact",fieldName:"Origin"}],transcriptFields:["caseOrigin__c"],displayToAgent:!0});t.prechatDetails.push({label:"Label",value:ChatGlobalSettings.label,entityMaps:[{entityName:"Case",fieldName:"Label__c"}],transcriptFields:["Label__c"],displayToAgent:!0});t.prechatDetails.push({label:"IP Adres",value:$("#hf-client-address").val(),entityMaps:[],transcriptFields:[],displayToAgent:!0});t.prechatDetails.push({label:"Description",value:"Chat via "+ChatGlobalSettings.label,entityMaps:[{entityName:"Case",fieldName:"Description"}],transcriptFields:["description__c"],displayToAgent:!0});t.prechatEntities.push({entityName:"Case",showOnCreate:!0,saveToTranscript:"Case",entityFieldsMaps:[{fieldName:"Origin",label:"Chat_Origin",doFind:!1,isExactMatch:!1,doCreate:!0},{fieldName:"Description",label:"Description",doFind:!1,isExactMatch:!1,doCreate:!0},{fieldName:"Label__c",label:"Label",doFind:!1,isExactMatch:!1,doCreate:!0}]});n!==null&&(t.prechatDetails.push({label:"ClientNumber",value:n.relnr,entityMaps:[],transcriptFields:[],displayToAgent:!0,doKnowledgeSearch:!1}),t.prechatEntities.push({entityName:"Contact",saveToTranscript:"ContactId",showOnCreate:!1,linkToEntityName:"Case",linkToEntityField:"ContactId",entityFieldsMaps:[{fieldName:"Client_Number__c",label:"ClientNumber",doFind:!0,isExactMatch:!0,doCreate:!1}]}),t.prechatEntities.push({entityName:"Account",saveToTranscript:"AccountId",showOnCreate:!0,linkToEntityName:"Case",linkToEntityField:"AccountId",entityFieldsMaps:[{fieldName:"Client_Number__c",label:"ClientNumber",doFind:!0,isExactMatch:!0,doCreate:!1}]}))}function requestAbortedByUser(n){return!n.getAllResponseHeaders()}function restCheckChatAvailableRequest(n,t){var r=ChatGlobalSettings.salesforce,i={req:{IsPost:!1,Method:t===!0?"Visitor/AvailabilityCached":"Visitor/Availability"}};$.ajax({type:"POST",cache:!1,url:generateChatRestTimeStamp(ProxyServiceURL),contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(i),success:function(t,i,r){if(r.status!==200)n(!1);else{var f=parseResult(t.ResultJSON),u=!1;$.each(f.messages,function(n,t){t.type==="Availability"&&t.message!==null&&$.each(t.message.results,function(n,t){t.isAvailable===!0&&(u=!0)})});n(u)}},error:function(){n(!1)}})}function restGetVisitorID(n){var t=ChatGlobalSettings.salesforce;$.ajax({type:"POST",cache:!1,url:generateChatRestTimeStamp(ProxyServiceURL),contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify({req:{IsPost:!1,Method:"Visitor/VisitorId"}}),success:function(t,i,r){var f=parseResult(t.ResultJSON),u;if(r.status===200)try{u=f.messages[0].message.sessionId;n(u)}catch(e){n(!1)}else n(!1)},error:function(){n(!1)}})}function restInitChat(n,t){var u=ChatGlobalSettings.salesforce,i={userAgent:navigator.userAgent,screenResolution:helperGetResolution(),visitorName:"",prechatDetails:[],prechatEntities:[],receiveQueueUpdates:!0,isPost:!0,trackingId:""},r;restAppendChatDetailsRequest(n,i);r={req:{IsPost:!1,Method:"System/SessionId"}};$.ajax({type:"POST",cache:!1,url:generateChatRestTimeStamp(ProxyServiceURL),contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(r),success:function(n,r,u){var f,e;if(u.status!==200){t(!1);return}f=parseResult(n.ResultJSON);i.sessionId=f.id;e={req:{IsPost:!0,Method:"Chasitor/ChasitorInit",RequestJSON:JSON.stringify(i),HeaderSequence:"1",HeaderAffinity:f.affinityToken,HeaderSessionKey:f.key}};$.ajax({type:"POST",cache:!1,url:generateChatRestTimeStamp(ProxyServiceURL),contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(e),success:function(n,i,r){r.status===200?n.ResultCode===200?t({session:f,success:!0}):t(!1):t(!1)},error:function(n){n.status===406?t(406):t(!1)}})},error:function(){t(!1)}})}function restGetChatMessages(n){var r=ChatGlobalSettings.salesforce,t=SalesforceSessionModule.getSalesforceSession(),i;if(t===undefined||t===null){n(!1);return}i={req:{IsPost:!1,Method:"System/Messages",HeaderAffinity:t.affinityToken,HeaderSessionKey:t.key}};getMessageRestRequest=$.ajax({type:"POST",cache:!1,url:generateChatRestTimeStamp(ProxyServiceURL),contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(i),success:function(t,i,r){if(r.status===200)try{if(t.ResultCode===200){var u=parseResult(t.ResultJSON);n(u)}else t.ResultCode===204?n(!0):t.ResultCode===409?n("duplicate"):n(!1)}catch(f){n(!1)}else n(!1)},error:function(t){requestAbortedByUser(t)||n(!1)}})}function restExitChat(n){var r=ChatGlobalSettings.salesforce,t=SalesforceSessionModule.getSalesforceSession(),i;t!==undefined&&t!==null&&(i={req:{IsPost:!0,Method:"Chasitor/ChatEnd",HeaderAffinity:t.affinityToken,HeaderSessionKey:t.key,HeaderSequence:SalesforceSessionModule.getSequenceNumber(),RequestJSON:JSON.stringify({reason:"client"})}},$.ajax({type:"POST",cache:!1,url:generateChatRestTimeStamp(ProxyServiceURL),contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(i),success:function(t,i,r){n(r.status===200&&t.ResultCode===200)},error:function(){n(!1)}}))}function restSetChatBreadcrumb(n){var r=ChatGlobalSettings.salesforce,t=SalesforceSessionModule.getSalesforceSession(),i;if(t===undefined){n(!1);return}i={req:{IsPost:!0,SessionID:t.id,Method:"Visitor/Breadcrumb",RequestJSON:JSON.stringify({location:window.location.href})}};$.ajax({type:"POST",cache:!1,url:generateChatRestTimeStamp(ProxyServiceURL),contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(i),success:function(t,i,r){n(r.status===200&&t.ResultCode===200)},error:function(){n(!1)}})}function restSendSneakPeek(n){var u=ChatGlobalSettings.salesforce,t=SalesforceSessionModule.getSalesforceSession(),i,r;t!==undefined&&n!==undefined&&n!==null&&n.length!==0&&(i={text:n,position:0},r={req:{IsPost:!0,Method:"Chasitor/ChasitorSneakPeek",HeaderAffinity:t.affinityToken,HeaderSessionKey:t.key,RequestJSON:JSON.stringify(i)}},$.ajax({type:"POST",cache:!1,url:generateChatRestTimeStamp(ProxyServiceURL),contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(r),error:function(){console.log("fail:  chat peek.")}}))}function restSendTypingMessage(){var i=ChatGlobalSettings.salesforce,n=SalesforceSessionModule.getSalesforceSession(),t;n!==undefined&&(t={req:{IsPost:!0,Method:"Chasitor/ChasitorTyping",HeaderAffinity:n.affinityToken,HeaderSessionKey:n.key}},$.ajax({type:"POST",cache:!1,url:generateChatRestTimeStamp(ProxyServiceURL),contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(t),error:function(){console.log("fail:  chat peek fail.")}}))}function restUploadFile(n,t,i,r){var o,e,f,u;try{if(o=ChatGlobalSettings.salesforce,e=SalesforceSessionModule.getSalesforceSession(),e===undefined){r(!1);return}f=new XMLHttpRequest;f.file=t;f.onreadystatechange=function(n){if(this.readyState===4)try{var t=$.parseJSON(n.target.responseText);r(this.status===200&&t.ResultCode===200?200:this.status)}catch(n){r(this.status)}};f.open("POST",ProxyServiceUploadURL,!0);u=new FormData;u.append("file",t);u.append("filename",t.name);u.append("filetype",t.type);u.append("uploadurl",n);u.append("chatKey",e.id);u.append("filetoken",i);f.send(u)}catch(s){r(!1)}}function restSendChatMessage(n,t){var u=ChatGlobalSettings.salesforce,i=SalesforceSessionModule.getSalesforceSession(),r;if(i===undefined||i===null){t({success:!1});return}r={req:{IsPost:!0,Method:"Chasitor/ChatMessage",HeaderAffinity:i.affinityToken,HeaderSessionKey:i.key,HeaderSequence:SalesforceSessionModule.getSequenceNumber(),RequestJSON:JSON.stringify({text:n})}};$.ajax({type:"POST",cache:!1,url:generateChatRestTimeStamp(ProxyServiceURL),contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(r),success:function(n,i,r){t({success:r.status===200&&n.ResultCode===200})},error:function(){t({success:!1})}})}function reloadConnectorBlocks(){$(".inlay").each(function(){var n,t,r;for($(".usp-wrap-circle",this).remove(),n=$(".usp-item-wrap",this),i=0;i<n.length-1;i++)$(n[i]).append(plusHtml);t=$(window).width();clearBlocks(this);t>=992?equalBlocks(this):($(".usp-item-title, .usp-item-icon, .usp-item-usptext, .usp-item-uspsubtext ",this).css({height:"auto"}),t<992&&t>=768&&$(this).hasClass("inlay-quarter-width")&&n.length>=2&&(equalBlocks(this),$(this).css("position","relative"),$(".usp-wrap-circle",this).remove(),r=$(plusHtml),$(r).addClass(n.length===2?"usp-sm-normal-circle":"usp-sm-large-circle"),$(this).append(r)))})}function initAanvraagFormulierScript(){function r(){if(typeof SupportDateType=="function"){var n=SupportDateType;n&&typeof n=="function"&&(SupportDateType=function(){return!1})}}function t(n,t){return(n.match(/-?\d+/gi)||[]).join("").replace(/\B(?=(\d{3})+(?!\d))/g,t===!0?".":"")}function n(n,i,r){var u=n.val(),c;if(u!==""){var e=n.attr("data-type"),l=u.length,o=n.prop("selectionStart");if(u.indexOf(",")>=0&&r>0){var h=u.indexOf(","),s=u.substring(0,h),f=u.substring(h);s=t(s,!0);f=t(f,!1);i===!0&&e==="datatype-bedrag"&&(f+="00");f=f.substring(0,r);u=e==="datatype-bedrag"?"€ "+s+","+f:s+","+f}else u=t(u),e==="datatype-bedrag"&&(u="€ "+u),blur===!0&&e==="datatype-bedrag"&&(u+=",00");n.val(u);c=u.length;o=c-l+o;n[0].setSelectionRange(o,o)}}function f(){$(".publiek-aanvraag-formulier textarea[class*='machtigingtext-']").each(function(){var n=$(this).attr("maxlength");typeof n!=typeof undefined&&n!==!1&&($(this).keyup(i),$(this).keydown(i))})}function i(){var t=$(this).val().length,i=$(this).attr("maxlength"),n=$(this).closest(".form-group").find(".text-counter-label");$(n).fadeIn(500);$(n).text("Resterende tekens: "+Math.max(i-t,0))}function e(){$('.publiek-aanvraag-formulier input[type="number"]').on("keyup",function(){var n=parseInt($(this).val()),t=parseInt($(this).attr("min")),i=parseInt($(this).attr("max"));n<t?$(this).val(t):n>i&&$(this).val(i)});$(".publiek-aanvraag-formulier input[data-type='datatype-bedrag']").on({keyup:function(){n($(this),!1,2)},blur:function(){n($(this),!0,2)}});$(".publiek-aanvraag-formulier input[data-type='datatype-integer']").on({keyup:function(){n($(this),!1,0)},blur:function(){n($(this),!0,0)}});$(".publiek-aanvraag-formulier input[data-type='datatype-decimaal']").on({keyup:function(){n($(this),!1,4)},blur:function(){n($(this),!0,4)}})}var u=Sys.WebForms.PageRequestManager.getInstance();u.add_pageLoaded(function(){r();e();f()});$(document).on("keypress",function(n){try{if(n.which==13)if($(n.target).is('[class*="machtigingtext-multiple"]')===!1)n.preventDefault();else{var t=$(n.target).val().split(/\r\n|\r|\n/).length;t>40&&n.preventDefault()}}catch(n){console.log(n)}})}function DataBinder(n){var t=jQuery({}),i="bind-"+n,u="visible-"+n,r=n+":change";jQuery(document).on("change","[data-"+i+"]",function(){var n=jQuery(this);t.trigger(r,[n.data(i),n.val()])});t.on(r,function(n,t,r){jQuery("[data-"+i+"="+t+"]").each(function(){var n=jQuery(this);n.is("input, textarea, select")?n.val(r):n.html(htmlEscape(r))});jQuery("[data-"+u+"="+t+"]").each(function(){var n=jQuery(this);r?n.css({display:""}):n.css({display:"none"})})});return t}function htmlEscape(n){return n?String(n).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\//g,"&#x2F;"):""}function PostcodeEnWoonplaats(){var t=new DataBinder("aw"),n;adresNotFound=function(){$(document).trigger("adresNotFound")};adresFound=function(){$(document).trigger("adresFound")};n={attributes:{postcodenummers:"",postcodeletters:"",huisnr:"",woonplaats:"",straat:""},set:function(n,i){this.attributes[n]=i;t.trigger("aw:change",[n,i,this])},get:function(n){return this.attributes[n]},_binder:t};t.on("aw:change",function(t,i,r,u){if((i=="postcodenummers"||i=="postcodeletters"||i=="huisnr")&&u==n){n.set("woonplaats","");n.set("straat","");var f=!0,e=n.get("postcodenummers"),o=n.get("postcodeletters"),s=n.get("huisnr");e!=""&&o!=""&&s!=""&&$.ajax({type:"POST",url:"/Services/Websites/PubliekeSites/Validatie.asmx/HaalAdres",data:"{postcode:'"+e+o+"', huisnummer:"+s+"}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(t){f=t.d.IsValid;f?(n.set("woonplaats",t.d.Plaats),n.set("straat",t.d.Straat),adresFound()):(n.set("woonplaats",""),n.set("straat",""),adresNotFound())}});arguments.IsValid=f}else u!==n&&n.set(i,r)})}var dateFormat,getMessageRestRequest,ss_set,ss_icons,ss_keywords,i,plusHtml,initEqualizeHeights;if(!function(n,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){"use strict";function br(n,t,i){var r,e,u=(i=i||f).createElement("script");if(u.text=n,t)for(r in ee)(e=t[r]||t.getAttribute&&t.getAttribute(r))&&u.setAttribute(r,e);i.head.appendChild(u).parentNode.removeChild(u)}function it(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ri[pr.call(n)]||"object":typeof n}function pi(n){var t=!!n&&"length"in n&&n.length,i=it(n);return!u(n)&&!tt(n)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in n)}function c(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function bi(n,t,r){return u(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):"string"!=typeof t?i.grep(n,function(n){return-1<ii.call(t,n)!==r}):i.filter(t,n,r)}function uu(n,t){while((n=n[t])&&1!==n.nodeType);return n}function ut(n){return n}function fi(n){throw n;}function fu(n,t,i,r){var f;try{n&&u(f=n.promise)?f.call(n).done(t).fail(i):n&&u(f=n.then)?f.call(n,t,i):t.apply(void 0,[n].slice(r))}catch(n){i.apply(void 0,[n])}}function oi(){f.removeEventListener("DOMContentLoaded",oi);n.removeEventListener("load",oi);i.ready()}function ce(n,t){return t.toUpperCase()}function y(n){return n.replace(se,"ms-").replace(he,ce)}function pt(){this.expando=i.expando+pt.uid++}function ou(n,t,i){var u,r;if(void 0===i&&1===n.nodeType)if(u="data-"+t.replace(ae,"-$&").toLowerCase(),"string"==typeof(i=n.getAttribute(u))){try{i="true"===(r=i)||"false"!==r&&("null"===r?null:r===+r+""?+r:le.test(r)?JSON.parse(r):r)}catch(n){}o.set(n,t,i)}else i=void 0;return i}function hu(n,t,r,u){var s,h,c=20,l=u?function(){return u.cur()}:function(){return i.css(n,t,"")},o=l(),e=r&&r[3]||(i.cssNumber[t]?"":"px"),f=n.nodeType&&(i.cssNumber[t]||"px"!==e&&+o)&&wt.exec(i.css(n,t));if(f&&f[3]!==e){for(o/=2,e=e||f[3],f=+o||1;c--;)i.style(n,t,f+e),(1-h)*(1-(h=l()/o||.5))<=0&&(c=0),f/=h;f*=2;i.style(n,t,f+e);r=r||[]}return r&&(f=+f||+o||0,s=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=e,u.start=f,u.end=s)),s}function et(n,t){for(var h,f,a,s,c,l,e,o=[],u=0,v=n.length;u<v;u++)(f=n[u]).style&&(h=f.style.display,t?("none"===h&&(o[u]=r.get(f,"display")||null,o[u]||(f.style.display="")),""===f.style.display&&kt(f)&&(o[u]=(e=c=s=void 0,c=(a=f).ownerDocument,l=a.nodeName,(e=di[l])||(s=c.body.appendChild(c.createElement(l)),e=i.css(s,"display"),s.parentNode.removeChild(s),"none"===e&&(e="block"),di[l]=e)))):"none"!==h&&(o[u]="none",r.set(f,"display",h)));for(u=0;u<v;u++)null!=o[u]&&(n[u].style.display=o[u]);return n}function s(n,t){var r;return r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):[],void 0===t||t&&c(n,t)?i.merge([n],r):r}function gi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function vu(n,t,r,u,f){for(var e,o,p,a,w,v,c=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if((e=n[l])||0===e)if("object"===it(e))i.merge(y,e.nodeType?[e]:e);else if(au.test(e)){for(o=o||c.appendChild(t.createElement("div")),p=(cu.exec(e)||["",""])[1].toLowerCase(),a=h[p]||h._default,o.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)o=o.lastChild;i.merge(y,o.childNodes);(o=c.firstChild).textContent=""}else y.push(t.createTextNode(e));for(c.textContent="",l=0;e=y[l++];)if(u&&-1<i.inArray(e,u))f&&f.push(e);else if(w=ft(e),o=s(c.appendChild(e),"script"),w&&gi(o),r)for(v=0;e=o[v++];)lu.test(e.type||"")&&r.push(e);return c}function ot(){return!0}function st(){return!1}function we(n,t){return n===function(){try{return f.activeElement}catch(n){}}()==("focus"===t)}function nr(n,t,r,u,f,e){var o,s;if("object"==typeof t){for(s in"string"!=typeof r&&(u=u||r,r=void 0),t)nr(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),!1===f)f=st;else if(!f)return n;return 1===e&&(o=f,(f=function(n){return i().off(n),o.apply(this,arguments)}).guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function hi(n,t,u){u?(r.set(n,t,!1),i.event.add(n,t,{namespace:!1,handler:function(n){var o,e,f=r.get(this,t);if(1&n.isTrigger&&this[t]){if(f.length)(i.event.special[t]||{}).delegateType&&n.stopPropagation();else if(f=b.call(arguments),r.set(this,t,f),o=u(this,t),this[t](),f!==(e=r.get(this,t))||o?r.set(this,t,!1):e={},f!==e)return n.stopImmediatePropagation(),n.preventDefault(),e.value}else f.length&&(r.set(this,t,{value:i.event.trigger(i.extend(f[0],i.Event.prototype),f.slice(1),this)}),n.stopImmediatePropagation())}})):void 0===r.get(n,t)&&i.event.add(n,t,ot)}function pu(n,t){return c(n,"table")&&c(11!==t.nodeType?t:t.firstChild,"tr")&&i(n).children("tbody")[0]||n}function no(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function to(n){return"true/"===(n.type||"").slice(0,5)?n.type=n.type.slice(5):n.removeAttribute("type"),n}function wu(n,t){var u,c,f,s,h,l,a,e;if(1===t.nodeType){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),e=s.events))for(f in delete h.handle,h.events={},e)for(u=0,c=e[f].length;u<c;u++)i.event.add(t,f,e[f][u]);o.hasData(n)&&(l=o.access(n),a=i.extend({},l),o.set(t,a))}}function ht(n,t,f,o){t=yr.apply([],t);var a,w,l,v,h,b,c=0,y=n.length,d=y-1,p=t[0],k=u(p);if(k||1<y&&"string"==typeof p&&!e.checkClone&&de.test(p))return n.each(function(i){var r=n.eq(i);k&&(t[0]=p.call(this,i,r.html()));ht(r,t,f,o)});if(y&&(w=(a=vu(t,n[0].ownerDocument,!1,n,o)).firstChild,1===a.childNodes.length&&(a=w),w||o)){for(v=(l=i.map(s(a,"script"),no)).length;c<y;c++)h=a,c!==d&&(h=i.clone(h,!0,!0),v&&i.merge(l,s(h,"script"))),f.call(n[c],h,c);if(v)for(b=l[l.length-1].ownerDocument,i.map(l,to),c=0;c<v;c++)h=l[c],lu.test(h.type||"")&&!r.access(h,"globalEval")&&i.contains(b,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?i._evalUrl&&!h.noModule&&i._evalUrl(h.src,{nonce:h.nonce||h.getAttribute("nonce")}):br(h.textContent.replace(ge,""),h,b))}return n}function bu(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;null!=(u=e[f]);f++)r||1!==u.nodeType||i.cleanData(s(u)),u.parentNode&&(r&&ft(u)&&gi(s(u,"script")),u.parentNode.removeChild(u));return n}function ni(n,t,r){var o,s,h,f,u=n.style;return(r=r||ci(n))&&(""!==(f=r.getPropertyValue(t)||r[t])||ft(n)||(f=i.style(n,t)),!e.pixelBoxStyles()&&tr.test(f)&&io.test(t)&&(o=u.width,s=u.minWidth,h=u.maxWidth,u.minWidth=u.maxWidth=u.width=f,f=r.width,u.width=o,u.minWidth=s,u.maxWidth=h)),void 0!==f?f+"":f}function ku(n,t){return{get:function(){if(!n())return(this.get=t).apply(this,arguments);delete this.get}}}function ir(n){var t=i.cssProps[n]||nf[n];return t||(n in gu?n:nf[n]=function(n){for(var i=n[0].toUpperCase()+n.slice(1),t=du.length;t--;)if((n=du[t]+i)in gu)return n}(n)||n)}function uf(n,t,i){var r=wt.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function rr(n,t,r,u,f,e){var o="width"===t?1:0,h=0,s=0;if(r===(u?"border":"content"))return 0;for(;o<4;o+=2)"margin"===r&&(s+=i.css(n,r+w[o],!0,f)),u?("content"===r&&(s-=i.css(n,"padding"+w[o],!0,f)),"margin"!==r&&(s-=i.css(n,"border"+w[o]+"Width",!0,f))):(s+=i.css(n,"padding"+w[o],!0,f),"padding"!==r?s+=i.css(n,"border"+w[o]+"Width",!0,f):h+=i.css(n,"border"+w[o]+"Width",!0,f));return!u&&0<=e&&(s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-e-s-h-.5))||0),s}function ff(n,t,r){var f=ci(n),o=(!e.boxSizingReliable()||r)&&"border-box"===i.css(n,"boxSizing",!1,f),s=o,u=ni(n,t,f),h="offset"+t[0].toUpperCase()+t.slice(1);if(tr.test(u)){if(!r)return u;u="auto"}return(!e.boxSizingReliable()&&o||"auto"===u||!parseFloat(u)&&"inline"===i.css(n,"display",!1,f))&&n.getClientRects().length&&(o="border-box"===i.css(n,"boxSizing",!1,f),(s=h in n)&&(u=n[h])),(u=parseFloat(u)||0)+rr(n,t,r||(o?"border":"content"),s,f,u)+"px"}function a(n,t,i,r,u){return new a.prototype.init(n,t,i,r,u)}function ur(){li&&(!1===f.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ur):n.setTimeout(ur,i.fx.interval),i.fx.tick())}function hf(){return n.setTimeout(function(){ct=void 0}),ct=Date.now()}function ai(n,t){var u,r=0,i={height:n};for(t=t?1:0;r<4;r+=2-t)i["margin"+(u=w[r])]=i["padding"+u]=n;return t&&(i.opacity=i.width=n),i}function cf(n,t,i){for(var u,f=(v.tweeners[t]||[]).concat(v.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function v(n,t,r){var o,s,h=0,a=v.prefilters.length,e=i.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var o=ct||hf(),t=Math.max(0,f.startTime+f.duration-o),i=1-(t/f.duration||0),r=0,u=f.tweens.length;r<u;r++)f.tweens[r].run(i);return e.notifyWith(n,[f,i,t]),i<1&&u?t:(u||e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f]),!1)},f=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:ct||hf(),duration:r.duration,tweens:[],createTween:function(t,r){var u=i.Tween(n,f.opts,t,r,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(u),u},stop:function(t){var i=0,r=t?f.tweens.length:0;if(s)return this;for(s=!0;i<r;i++)f.tweens[i].run(1);return t?(e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f,t])):e.rejectWith(n,[f,t]),this}}),c=f.props;for(!function(n,t){var r,f,e,u,o;for(r in n)if(e=t[f=y(r)],u=n[r],Array.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),(o=i.cssHooks[f])&&"expand"in o)for(r in u=o.expand(u),delete n[f],u)r in n||(n[r]=u[r],t[r]=e);else t[f]=e}(c,f.opts.specialEasing);h<a;h++)if(o=v.prefilters[h].call(f,n,c,f.opts))return u(o.stop)&&(i._queueHooks(f.elem,f.opts.queue).stop=o.stop.bind(o)),o;return i.map(c,cf,f),u(f.opts.start)&&f.opts.start.call(n,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),i.fx.timer(i.extend(l,{elem:n,anim:f,queue:f.opts.queue})),f}function g(n){return(n.match(l)||[]).join(" ")}function nt(n){return n.getAttribute&&n.getAttribute("class")||""}function fr(n){return Array.isArray(n)?n:"string"==typeof n&&n.match(l)||[]}function hr(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||fo.test(n)?u(n,i):hr(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==it(t))u(n,t);else for(f in t)hr(n+"["+f+"]",t[f],r,u)}function df(n){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,f=0,e=t.toLowerCase().match(l)||[];if(u(i))while(r=e[f++])"+"===r[0]?(r=r.slice(1)||"*",(n[r]=n[r]||[]).unshift(i)):(n[r]=n[r]||[]).push(i)}}function gf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===cr;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ar(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}var d=[],f=n.document,ue=Object.getPrototypeOf,b=d.slice,yr=d.concat,yi=d.push,ii=d.indexOf,ri={},pr=ri.toString,ui=ri.hasOwnProperty,wr=ui.toString,fe=wr.call(Object),e={},u=function(n){return"function"==typeof n&&"number"!=typeof n.nodeType},tt=function(n){return null!=n&&n===n.window},ee={type:!0,src:!0,nonce:!0,noModule:!0},kr="3.4.1",i=function(n,t){return new i.fn.init(n,t)},oe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,k,wi,nu,tu,iu,ru,l,eu,ei,yt,kt,ki,di,gt,si,au,ct,li,lt,ef,of,sf,lf,at,af,vf,yf,er,or,ne,vt,te,vr,vi,ie,re;i.fn=i.prototype={jquery:kr,constructor:i,length:0,toArray:function(){return b.call(this)},get:function(n){return null==n?b.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(b.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(0<=t&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:yi,sort:d.sort,splice:d.splice};i.extend=i.fn.extend=function(){var s,f,e,t,o,c,n=arguments[0]||{},r=1,l=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[r]||{},r++),"object"==typeof n||u(n)||(n={}),r===l&&(n=this,r--);r<l;r++)if(null!=(s=arguments[r]))for(f in s)t=s[f],"__proto__"!==f&&n!==t&&(h&&t&&(i.isPlainObject(t)||(o=Array.isArray(t)))?(e=n[f],c=o&&!Array.isArray(e)?[]:o||i.isPlainObject(e)?e:{},o=!1,n[f]=i.extend(h,c,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(kr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isPlainObject:function(n){var t,i;return!(!n||"[object Object]"!==pr.call(n))&&(!(t=ue(n))||"function"==typeof(i=ui.call(t,"constructor")&&t.constructor)&&wr.call(i)===fe)},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},globalEval:function(n,t){br(n,{nonce:t&&t.nonce})},each:function(n,t){var r,i=0;if(pi(n)){for(r=n.length;i<r;i++)if(!1===t.call(n[i],i,n[i]))break}else for(i in n)if(!1===t.call(n[i],i,n[i]))break;return n},trim:function(n){return null==n?"":(n+"").replace(oe,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(pi(Object(n))?i.merge(r,"string"==typeof n?[n]:n):yi.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:ii.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u=[],r=0,f=n.length,e=!i;r<f;r++)!t(n[r],r)!==e&&u.push(n[r]);return u},map:function(n,t,i){var e,u,r=0,f=[];if(pi(n))for(e=n.length;r<e;r++)null!=(u=t(n[r],r,i))&&f.push(u);else for(r in n)null!=(u=t(n[r],r,i))&&f.push(u);return yr.apply([],f)},guid:1,support:e});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=d[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){ri["[object "+t+"]"]=t.toLowerCase()});k=function(n){function u(n,t,r,u){var s,p,l,v,w,d,g,y=t&&t.ownerDocument,a=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==a&&9!==a&&11!==a)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(11!==a&&(w=ar.exec(n)))if(s=w[1]){if(9===a){if(!(l=t.getElementById(s)))return r;if(l.id===s)return r.push(l),r}else if(y&&(l=y.getElementById(s))&&et(t,l)&&l.id===s)return r.push(l),r}else{if(w[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=w[3])&&e.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(e.qsa&&!lt[n+" "]&&(!o||!o.test(n))&&(1!==a||"object"!==t.nodeName.toLowerCase())){if(g=n,y=t,1===a&&er.test(n)){for((v=t.getAttribute("id"))?v=v.replace(yi,pi):t.setAttribute("id",v=f),p=(d=ft(n)).length;p--;)d[p]="#"+v+" "+pt(d[p]);g=d.join(",");y=ti.test(n)&&ri(t.parentNode)||t}try{return k.apply(r,y.querySelectorAll(g)),r}catch(t){lt(n,!0)}finally{v===f&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function yt(){var n=[];return function i(r,u){return n.push(r+" ")>t.cacheLength&&delete i[n.shift()],i[r+" "]=u}}function l(n){return n[f]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function bi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function yr(n){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===n}}function pr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function ki(n){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&vr(t)===n:t.disabled===n:"label"in t&&t.disabled===n}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function di(){}function pt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function wt(n,t,i){var r=t.dir,u=t.next,e=u||r,o=i&&"parentNode"===e,s=gi++;return t.first?function(t,i,u){while(t=t[r])if(1===t.nodeType||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,a,y=[v,s];if(h){while(t=t[r])if((1===t.nodeType||o)&&n(t,i,h))return!0}else while(t=t[r])if(1===t.nodeType||o)if(l=(a=t[f]||(t[f]={}))[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[e])&&c[0]===v&&c[1]===s)return y[2]=c[2];if((l[e]=y)[2]=n(t,i,h))return!0}return!1}}function ui(n){return 1<n.length?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function bt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;f<s;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function fi(n,t,i,r,e,o){return r&&!r[f]&&(r=fi(r)),e&&!e[f]&&(e=fi(e,o)),l(function(f,o,s,h){var a,l,v,w=[],p=[],b=o.length,d=f||function(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}(t||"*",s.nodeType?[s]:s,[]),y=!n||!f&&t?d:bt(d,w,n,s,h),c=i?e||(f?n:b||r)?[]:o:y;if(i&&i(y,c,s,h),r)for(a=bt(c,p),r(a,[],s,h),l=a.length;l--;)(v=a[l])&&(c[p[l]]=!(y[p[l]]=v));if(f){if(e||n){if(e){for(a=[],l=c.length;l--;)(v=c[l])&&a.push(y[l]=v);e(null,c=[],a,h)}for(l=c.length;l--;)(v=c[l])&&-1<(a=e?nt(f,v):w[l])&&(f[a]=!(o[a]=v))}}else c=bt(c===o?c.splice(b,c.length):c),e?e(null,o,c,h):k.apply(o,c)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=wt(function(n){return n===o},c,!0),a=wt(function(n){return-1<nt(o,n)},c,!0),e=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])e=[wt(ui(e),u)];else{if((u=t.filter[n[i].type].apply(null,n[i].matches))[f]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(1<i&&ui(e),1<i&&pt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&pt(n))}e.push(u)}return ui(e)}var rt,e,t,st,oi,ft,kt,si,ht,w,ut,b,i,s,h,o,d,ct,et,f="sizzle"+1*new Date,c=n.document,v=0,gi=0,hi=yt(),ci=yt(),li=yt(),lt=yt(),dt=function(n,t){return n===t&&(ut=!0),0},nr={}.hasOwnProperty,g=[],tr=g.pop,ir=g.push,k=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},gt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",vi="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",ni=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+vi+")*)|.*)\\)|)",rr=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),ur=new RegExp("^"+r+"*,"+r+"*"),fr=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),er=new RegExp(r+"|>"),or=new RegExp(ni),sr=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+ni),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+gt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},hr=/HTML$/i,cr=/^(?:input|select|textarea|button)$/i,lr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,ar=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ti=/[+~]/,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!=r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},yi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,pi=function(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},wi=function(){b()},vr=wt(function(n){return!0===n.disabled&&"fieldset"===n.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{k.apply(g=ai.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(rt){k={apply:g.length?function(n,t){ir.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}for(rt in e=u.support={},oi=u.isXML=function(n){var i=n.namespaceURI,t=(n.ownerDocument||n).documentElement;return!hr.test(i||t&&t.nodeName||"HTML")},b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l!==i&&9===l.nodeType&&l.documentElement&&(s=(i=l).documentElement,h=!oi(i),c!==i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",wi,!1):u.attachEvent&&u.attachEvent("onunload",wi)),e.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=ot.test(i.getElementsByClassName),e.getById=a(function(n){return s.appendChild(n).id=f,!i.getElementsByName||!i.getElementsByName(f).length}),e.getById?(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i=t.getElementById(n);return i?[i]:[]}}):(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var r,u,f,i=t.getElementById(n);if(i){if((r=i.getAttributeNode("id"))&&r.value===n)return[i];for(f=t.getElementsByName(n),u=0;i=f[u++];)if((r=i.getAttributeNode("id"))&&r.value===n)return[i]}return[]}}),t.find.TAG=e.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):e.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=e.getElementsByClassName&&function(n,t){if("undefined"!=typeof t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(e.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+gt+")");n.querySelectorAll("[id~="+f+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+f+"+*").length||o.push(".#.+[+~]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");2!==n.querySelectorAll(":enabled").length&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;2!==n.querySelectorAll(":disabled").length&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(e.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){e.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",ni)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},dt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1)||!e.sortDetached&&t.compareDocumentPosition(n)===r?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:4&r?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return bi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?bi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0}),i},u.matches=function(n,t){return u(n,null,null,t)},u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),e.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||e.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(n){lt(t,!0)}return 0<u(t,i,null,[n]).length},u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)},u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var f=t.attrHandle[r.toLowerCase()],u=f&&nr.call(t.attrHandle,r.toLowerCase())?f(n,r,!h):void 0;return void 0!==u?u:e.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null},u.escape=function(n){return(n+"").replace(yi,pi)},u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);},u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!e.detectDuplicates,w=!e.sortStable&&n.slice(0),n.sort(dt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n},st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=st(r);return i},(t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&or.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:!t||(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&-1<f.indexOf(i):"$="===t?i&&f.slice(-i.length)===i:"~="===t?-1<(" "+f.replace(rr," ")+" ").indexOf(i):"|="===t&&(f===i||f.slice(0,i.length+1)===i+"-"))}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,d,y,c,a,w,b=s!==o?"nextSibling":"previousSibling",k=t.parentNode,nt=e&&t.nodeName.toLowerCase(),g=!h&&!e,l=!1;if(k){if(s){while(b){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?k.firstChild:k.lastChild],o&&g){for(l=(a=(p=(d=(y=(c=k)[f]||(c[f]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1])&&p[2],c=a&&k.childNodes[a];c=++a&&c&&c[b]||(l=a=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){d[n]=[v,a,l];break}}else if(g&&(l=a=(p=(d=(y=(c=t)[f]||(c[f]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1]),!1===l)while(c=++a&&c&&c[b]||(l=a=0)||w.pop())if((e?c.nodeName.toLowerCase()===nt:1===c.nodeType)&&++l&&(g&&((d=(y=c[f]||(c[f]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]=[v,l]),c===t))break;return(l-=u)===r||l%r==0&&0<=l/r}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):1<r.length?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var e,u=r(n,i),f=u.length;f--;)n[e=nt(n,u[f])]=!(t[e]=u[f])}):function(n){return r(n,0,e)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=kt(n.replace(at,"$1"));return i[f]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return 0<u(n,t).length}}),contains:l(function(n){return n=n.replace(y,p),function(t){return-1<(t.textContent||st(t)).indexOf(n)}}),lang:l(function(n){return sr.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:ki(!1),disabled:ki(!0),checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,!0===n.selected},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return lr.test(n.nodeName)},input:function(n){return cr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:t<i?t:i;0<=--r;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}}).pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=yr(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=pr(rt);return di.prototype=t.filters=t.pseudos,t.setFilters=new di,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){for(o in e&&!(f=ur.exec(r))||(f&&(r=r.slice(f[0].length)||r),h.push(s=[])),e=!1,(f=fr.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length)),t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},kt=u.compile=function(n,r){var s,c,a,o,y,p,w=[],d=[],e=li[n+" "];if(!e){for(r||(r=ft(n)),s=r.length;s--;)(e=ei(r[s]))[f]?w.push(e):d.push(e);(e=li(n,(c=d,o=0<(a=w).length,y=0<c.length,p=function(n,r,f,e,s){var l,nt,d,g=0,p="0",tt=n&&[],w=[],it=ht,rt=n||y&&t.find.TAG("*",s),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(s&&(ht=r===i||r||s);p!==ft&&null!=(l=rt[p]);p++){if(y&&l){for(nt=0,r||l.ownerDocument===i||(b(l),f=!h);d=c[nt++];)if(d(l,r||i,f)){e.push(l);break}s&&(v=ut)}o&&((l=!d&&l)&&g--,n&&tt.push(l))}if(g+=p,o&&p!==g){for(nt=0;d=a[nt++];)d(tt,w,r,f);if(n){if(0<g)while(p--)tt[p]||w[p]||(w[p]=tr.call(e));w=bt(w)}k.apply(e,w);s&&!n&&0<w.length&&1<g+a.length&&u.uniqueSort(e)}return s&&(v=ut,ht=it),tt},o?l(p):p))).selector=n}return e},si=u.select=function(n,i,r,u){var o,f,e,l,a,c="function"==typeof n&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],1===s.length){if(2<(f=s[0]=s[0].slice(0)).length&&"ID"===(e=f[0]).type&&9===i.nodeType&&h&&t.relative[f[1].type]){if(!(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0]))return r;c&&(i=i.parentNode);n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],t.relative[l=e.type])break;if((a=t.find[l])&&(u=a(e.matches[0].replace(y,p),ti.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),!(n=u.length&&pt(f)))return k.apply(r,u),r;break}}}return(c||kt(n,s))(u,i,!h,r,!i||ti.test(n)&&ri(i.parentNode)||i),r},e.sortStable=f.split("").sort(dt).join("")===f,e.detectDuplicates=!!ut,b(),e.sortDetached=a(function(n){return 1&n.compareDocumentPosition(i.createElement("fieldset"))}),a(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),e.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ii("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),a(function(n){return null==n.getAttribute("disabled")})||ii(gt,function(n,t,i){var r;if(!i)return!0===n[t]?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=k;i.expr=k.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=k.uniqueSort;i.text=k.getText;i.isXMLDoc=k.isXML;i.contains=k.contains;i.escapeSelector=k.escape;var rt=function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},dr=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},gr=i.expr.match.needsContext;wi=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return 1<u?i.uniqueSort(r):r},filter:function(n){return this.pushStack(bi(this,n||[],!1))},not:function(n){return this.pushStack(bi(this,n||[],!0))},is:function(n){return!!bi(this,"string"==typeof n&&gr.test(n)?i(n):n||[],!1).length}});tu=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(i.fn.init=function(n,t,r){var e,o;if(!n)return this;if(r=r||nu,"string"==typeof n){if(!(e="<"===n[0]&&">"===n[n.length-1]&&3<=n.length?[null,n,null]:tu.exec(n))||!e[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(e[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(e[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),wi.test(e[1])&&i.isPlainObject(t))for(e in t)u(this[e])?this[e](t[e]):this.attr(e,t[e]);return this}return(o=f.getElementById(e[2]))&&(this[0]=o,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):u(n)?void 0!==r.ready?r.ready(n):n(i):i.makeArray(n,this)}).prototype=i.fn;nu=i(f);iu=/^(?:parents|prev(?:Until|All))/;ru={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e="string"!=typeof n&&i(n);if(!gr.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?-1<e.index(r):1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(1<u.length?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?ii.call(i(n),this[0]):ii.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return rt(n,"parentNode")},parentsUntil:function(n,t,i){return rt(n,"parentNode",i)},next:function(n){return uu(n,"nextSibling")},prev:function(n){return uu(n,"previousSibling")},nextAll:function(n){return rt(n,"nextSibling")},prevAll:function(n){return rt(n,"previousSibling")},nextUntil:function(n,t,i){return rt(n,"nextSibling",i)},prevUntil:function(n,t,i){return rt(n,"previousSibling",i)},siblings:function(n){return dr((n.parentNode||{}).firstChild,n)},children:function(n){return dr(n.firstChild)},contents:function(n){return"undefined"!=typeof n.contentDocument?n.contentDocument:(c(n,"template")&&(n=n.content||n),i.merge([],n.childNodes))}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),1<this.length&&(ru[n]||i.uniqueSort(f),iu.test(n)&&f.reverse()),this.pushStack(f)}});l=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){var a,h;n="string"==typeof n?(a=n,h={},i.each(a.match(l)||[],function(n,t){h[t]=!0}),h):i.extend({},n);var o,r,v,f,t=[],s=[],e=-1,y=function(){for(f=f||n.once,v=o=!0;s.length;e=-1)for(r=s.shift();++e<t.length;)!1===t[e].apply(r[0],r[1])&&n.stopOnFalse&&(e=t.length,r=!1);n.memory||(r=!1);o=!1;f&&(t=r?[]:"")},c={add:function(){return t&&(r&&!o&&(e=t.length-1,s.push(r)),function f(r){i.each(r,function(i,r){u(r)?n.unique&&c.has(r)||t.push(r):r&&r.length&&"string"!==it(r)&&f(r)})}(arguments),r&&!o&&y()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;-1<(u=i.inArray(r,t,u));)t.splice(u,1),u<=e&&e--}),this},has:function(n){return n?-1<i.inArray(n,t):0<t.length},empty:function(){return t&&(t=[]),this},disable:function(){return f=s=[],t=r="",this},disabled:function(){return!t},lock:function(){return f=s=[],r||o||(t=r=""),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=[n,(t=t||[]).slice?t.slice():t],s.push(t),o||y()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!v}};return c};i.extend({Deferred:function(t){var f=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],o="pending",e={state:function(){return o},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return e.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(f,function(i,f){var e=u(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&u(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,e){function s(t,r,f,e){return function(){var h=this,c=arguments,l=function(){var n,i;if(!(t<o)){if((n=f.apply(h,c))===r.promise())throw new TypeError("Thenable self-resolution");i=n&&("object"==typeof n||"function"==typeof n)&&n.then;u(i)?e?i.call(n,s(o,r,ut,e),s(o,r,fi,e)):(o++,i.call(n,s(o,r,ut,e),s(o,r,fi,e),s(o,r,ut,r.notifyWith))):(f!==ut&&(h=void 0,c=[n]),(e||r.resolveWith)(h,c))}},a=e?l:function(){try{l()}catch(l){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(l,a.stackTrace);o<=t+1&&(f!==fi&&(h=void 0,c=[l]),r.rejectWith(h,c))}};t?a():(i.Deferred.getStackHook&&(a.stackTrace=i.Deferred.getStackHook()),n.setTimeout(a))}}var o=0;return i.Deferred(function(n){f[0][3].add(s(0,n,u(e)?e:ut,n.notifyWith));f[1][3].add(s(0,n,u(t)?t:ut));f[2][3].add(s(0,n,u(r)?r:fi))}).promise()},promise:function(n){return null!=n?i.extend(n,e):e}},r={};return i.each(f,function(n,t){var i=t[2],u=t[5];e[t[1]]=i.add;u&&i.add(function(){o=u},f[3-n][2].disable,f[3-n][3].disable,f[0][2].lock,f[0][3].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this};r[t[0]+"With"]=i.fireWith}),e.promise(r),t&&t.call(r,r),r},when:function(n){var e=arguments.length,t=e,o=Array(t),f=b.call(arguments),r=i.Deferred(),s=function(n){return function(t){o[n]=this;f[n]=1<arguments.length?b.call(arguments):t;--e||r.resolveWith(o,f)}};if(e<=1&&(fu(n,r.done(s(t)).resolve,r.reject,!e),"pending"===r.state()||u(f[t]&&f[t].then)))return r.then();while(t--)fu(f[t],s(t),r.reject);return r.promise()}});eu=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&eu.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};ei=i.Deferred();i.fn.ready=function(n){return ei.then(n)["catch"](function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(!0===n?--i.readyWait:i.isReady)||(i.isReady=!0)!==n&&0<--i.readyWait||ei.resolveWith(f,[i])}});i.ready.then=ei.then;"complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll?n.setTimeout(i.ready):(f.addEventListener("DOMContentLoaded",oi),n.addEventListener("load",oi));var p=function(n,t,r,f,e,o,s){var h=0,l=n.length,c=null==r;if("object"===it(r))for(h in e=!0,r)p(n,t,h,r[h],!0,o,s);else if(void 0!==f&&(e=!0,u(f)||(s=!0),c&&(s?(t.call(n,f),t=null):(c=t,t=function(n,t,r){return c.call(i(n),r)})),t))for(;h<l;h++)t(n[h],r,s?f:f.call(n[h],h,t(n[h],r)));return e?n:c?t.call(n):l?t(n[0],r):o},se=/^-ms-/,he=/-([a-z])/g;yt=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};pt.uid=1;pt.prototype={cache:function(n){var t=n[this.expando];return t||(t={},yt(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,i){var r,u=this.cache(n);if("string"==typeof t)u[y(t)]=i;else for(r in t)u[y(r)]=t[r];return u},get:function(n,t){return void 0===t?this.cache(n):n[this.expando]&&n[this.expando][y(t)]},access:function(n,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(n,t):(this.set(n,t,i),void 0!==i?i:t)},remove:function(n,t){var u,r=n[this.expando];if(void 0!==r){if(void 0!==t)for(u=(t=Array.isArray(t)?t.map(y):(t=y(t))in r?[t]:t.match(l)||[]).length;u--;)delete r[t[u]];(void 0===t||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return void 0!==t&&!i.isEmptyObject(t)}};var r=new pt,o=new pt,le=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ae=/[A-Z]/g;i.extend({hasData:function(n){return o.hasData(n)||r.hasData(n)},data:function(n,t,i){return o.access(n,t,i)},removeData:function(n,t){o.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var f,u,e,i=this[0],s=i&&i.attributes;if(void 0===n){if(this.length&&(e=o.get(i),1===i.nodeType&&!r.get(i,"hasDataAttrs"))){for(f=s.length;f--;)s[f]&&0===(u=s[f].name).indexOf("data-")&&(u=y(u.slice(5)),ou(i,u,e[u]));r.set(i,"hasDataAttrs",!0)}return e}return"object"==typeof n?this.each(function(){o.set(this,n)}):p(this,function(t){var r;if(i&&void 0===t)return void 0!==(r=o.get(i,n))?r:void 0!==(r=ou(i,n))?r:void 0;this.each(function(){o.set(this,n,t)})},null,t,1<arguments.length,null,!0)},removeData:function(n){return this.each(function(){o.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||Array.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t);"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,function(){i.dequeue(n,t)},f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";s--;)(u=r.get(f[s],n+"queueHooks"))&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var su=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,wt=new RegExp("^(?:([+-])=|)("+su+")([a-z%]*)$","i"),w=["Top","Right","Bottom","Left"],bt=f.documentElement,ft=function(n){return i.contains(n.ownerDocument,n)},ve={composed:!0};bt.getRootNode&&(ft=function(n){return i.contains(n.ownerDocument,n)||n.getRootNode(ve)===n.ownerDocument});kt=function(n,t){return"none"===(n=t||n).style.display||""===n.style.display&&ft(n)&&"none"===i.css(n,"display")};ki=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];for(u in f=i.apply(n,r||[]),t)n.style[u]=e[u];return f};di={};i.fn.extend({show:function(){return et(this,!0)},hide:function(){return et(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){kt(this)?i(this).show():i(this).hide()})}});var dt=/^(?:checkbox|radio)$/i,cu=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,lu=/^$|^module$|\/(?:java|ecma)script/i,h={option:[1,"<select multiple='multiple'>","<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};h.optgroup=h.option;h.tbody=h.tfoot=h.colgroup=h.caption=h.thead;h.th=h.td;au=/<|&#?\w+;/;gt=f.createDocumentFragment().appendChild(f.createElement("div"));(si=f.createElement("input")).setAttribute("type","radio");si.setAttribute("checked","checked");si.setAttribute("name","t");gt.appendChild(si);e.checkClone=gt.cloneNode(!0).cloneNode(!0).lastChild.checked;gt.innerHTML="<textarea>x<\/textarea>";e.noCloneChecked=!!gt.cloneNode(!0).lastChild.defaultValue;var ye=/^key/,pe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,yu=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var p,v,k,y,w,h,s,c,o,b,d,a=r.get(n);if(a)for(u.handler&&(u=(p=u).handler,e=p.selector),e&&i.find.matchesSelector(bt,e),u.guid||(u.guid=i.guid++),(y=a.events)||(y=a.events={}),(v=a.handle)||(v=a.handle=function(t){if("undefined"!=typeof i&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),w=(t=(t||"").match(l)||[""]).length;w--;)o=d=(k=yu.exec(t[w])||[])[1],b=(k[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},h=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:b.join(".")},p),(c=y[o])||((c=y[o]=[]).delegateCount=0,s.setup&&!1!==s.setup.call(n,f,b,v)||n.addEventListener&&n.addEventListener(o,v)),s.add&&(s.add.call(n,h),h.handler.guid||(h.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,h):c.push(h),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,h,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(p=(t=(t||"").match(l)||[""]).length;p--;)if(o=d=(c=yu.exec(t[p])||[])[1],b=(c[2]||"").split(".").sort(),o){for(h=i.event.special[o]||{},a=v[o=(f?h.delegateType:h.bindType)||o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],!e&&d!==s.origType||u&&u.guid!==s.guid||c&&!c.test(s.namespace)||f&&f!==s.selector&&("**"!==f||!s.selector)||(a.splice(y,1),s.selector&&a.delegateCount--,h.remove&&h.remove.call(n,s));k&&!a.length&&(h.teardown&&!1!==h.teardown.call(n,b,w.handle)||i.removeEvent(n,o,w.handle),delete v[o])}else for(o in v)i.event.remove(n,o+t[p],u,f,!0);i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var u,h,c,e,f,l,t=i.event.fix(n),s=new Array(arguments.length),a=(r.get(this,"events")||{})[t.type]||[],o=i.event.special[t.type]||{};for(s[0]=t,u=1;u<arguments.length;u++)s[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||!1!==o.preDispatch.call(this,t)){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,h=0;(f=e.handlers[h++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!1!==f.namespace&&!t.rnamespace.test(f.namespace)||(t.handleObj=f,t.data=f.data,void 0!==(c=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,s))&&!1===(t.result=c)&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,h,u,e,o,c=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&!("click"===n.type&&1<=n.button))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&("click"!==n.type||!0!==r.disabled)){for(e=[],o={},f=0;f<s;f++)void 0===o[u=(h=t[f]).selector+" "]&&(o[u]=h.needsContext?-1<i(u,this).index(r):i.find(u,this,null,[r]).length),o[u]&&e.push(h);e.length&&c.push({elem:r,handlers:e})}return r=this,s<t.length&&c.push({elem:r,handlers:t.slice(s)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:u(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},click:{setup:function(n){var t=this||n;return dt.test(t.type)&&t.click&&c(t,"input")&&hi(t,"click",ot),!1},trigger:function(n){var t=this||n;return dt.test(t.type)&&t.click&&c(t,"input")&&hi(t,"click"),!0},_default:function(n){var t=n.target;return dt.test(t.type)&&t.click&&c(t,"input")&&r.get(t,"click")||c(t,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&!1===n.returnValue?ot:st,this.target=n.target&&3===n.target.nodeType?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||Date.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:st,isPropagationStopped:st,isImmediatePropagationStopped:st,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ot;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ot;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=ot;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.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:function(n){var t=n.button;return null==n.which&&ye.test(n.type)?null!=n.charCode?n.charCode:n.keyCode:!n.which&&void 0!==t&&pe.test(n.type)?1&t?1:2&t?3:4&t?2:0:n.which}},i.event.addProp);i.each({focus:"focusin",blur:"focusout"},function(n,t){i.event.special[n]={setup:function(){return hi(this,n,we),!1},trigger:function(){return hi(this,n),!0},delegateType:t}});i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,r=n.relatedTarget,f=n.handleObj;return r&&(r===this||i.contains(this,r))||(n.type=f.origType,u=f.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return nr(this,n,t,i,r)},one:function(n,t,i,r){return nr(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=st),this.each(function(){i.event.remove(this,n,r,t)})}});var be=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ke=/<script|<style|<link/i,de=/checked\s*(?:[^=]|=\s*.checked.)/i,ge=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(be,"<$1><\/$2>")},clone:function(n,t,r){var u,c,o,f,l,a,v,h=n.cloneNode(!0),y=ft(n);if(!(e.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=s(h),u=0,c=(o=s(n)).length;u<c;u++)l=o[u],a=f[u],void 0,"input"===(v=a.nodeName.toLowerCase())&&dt.test(l.type)?a.checked=l.checked:"input"!==v&&"textarea"!==v||(a.defaultValue=l.defaultValue);if(t)if(r)for(o=o||s(n),f=f||s(h),u=0,c=o.length;u<c;u++)wu(o[u],f[u]);else wu(n,h);return 0<(f=s(h,"script")).length&&gi(f,!y&&s(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,e=0;void 0!==(t=n[e]);e++)if(yt(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=void 0}t[o.expando]&&(t[o.expando]=void 0)}}});i.fn.extend({detach:function(n){return bu(this,n,!0)},remove:function(n){return bu(this,n)},text:function(n){return p(this,function(n){return void 0===n?i.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)})},null,n,arguments.length)},append:function(){return ht(this,arguments,function(n){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||pu(this,n).appendChild(n)})},prepend:function(){return ht(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return ht(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return ht(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(i.cleanData(s(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null!=n&&n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return p(this,function(n){var t=this[0]||{},r=0,u=this.length;if(void 0===n&&1===t.nodeType)return t.innerHTML;if("string"==typeof n&&!ke.test(n)&&!h[(cu.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)1===(t=this[r]||{}).nodeType&&(i.cleanData(s(t,!1)),t.innerHTML=n);t=0}catch(n){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return ht(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(s(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),yi.apply(f,u.get());return this.pushStack(f)}});var tr=new RegExp("^("+su+")(?!px)[a-z%]+$","i"),ci=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},io=new RegExp(w.join("|"),"i");!function(){function r(){if(t){o.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";t.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";bt.appendChild(o).appendChild(t);var i=n.getComputedStyle(t);s="1%"!==i.top;a=12===u(i.marginLeft);t.style.right="60%";l=36===u(i.right);h=36===u(i.width);t.style.position="absolute";c=12===u(t.offsetWidth/3);bt.removeChild(o);t=null}}function u(n){return Math.round(parseFloat(n))}var s,h,c,l,a,o=f.createElement("div"),t=f.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===t.style.backgroundClip,i.extend(e,{boxSizingReliable:function(){return r(),h},pixelBoxStyles:function(){return r(),l},pixelPosition:function(){return r(),s},reliableMarginLeft:function(){return r(),a},scrollboxSize:function(){return r(),c}}))}();var du=["Webkit","Moz","ms"],gu=f.createElement("div").style,nf={};var ro=/^(none|table(?!-c[ea]).+)/,tf=/^--/,uo={position:"absolute",visibility:"hidden",display:"block"},rf={letterSpacing:"0",fontWeight:"400"};i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=ni(n,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!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,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var f,h,o,c=y(t),l=tf.test(t),s=n.style;if(l||(t=ir(c)),o=i.cssHooks[t]||i.cssHooks[c],void 0===r)return o&&"get"in o&&void 0!==(f=o.get(n,!1,u))?f:s[t];"string"==(h=typeof r)&&(f=wt.exec(r))&&f[1]&&(r=hu(n,t,f),h="number");null!=r&&r==r&&("number"!==h||l||(r+=f&&f[3]||(i.cssNumber[c]?"":"px")),e.clearCloneStyle||""!==r||0!==t.indexOf("background")||(s[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(n,r,u))||(l?s.setProperty(t,r):s[t]=r))}},css:function(n,t,r,u){var f,e,o,s=y(t);return tf.test(t)||(t=ir(s)),(o=i.cssHooks[t]||i.cssHooks[s])&&"get"in o&&(f=o.get(n,!0,r)),void 0===f&&(f=ni(n,t,u)),"normal"===f&&t in rf&&(f=rf[t]),""===r||r?(e=parseFloat(f),!0===r||isFinite(e)?e||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return!ro.test(i.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?ff(n,t,u):ki(n,uo,function(){return ff(n,t,u)})},set:function(n,r,u){var s,f=ci(n),h=!e.scrollboxSize()&&"absolute"===f.position,c=(h||u)&&"border-box"===i.css(n,"boxSizing",!1,f),o=u?rr(n,t,u,c,f):0;return c&&h&&(o-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(f[t])-rr(n,t,"border",!1,f)-.5)),o&&(s=wt.exec(r))&&"px"!==(s[3]||"px")&&(n.style[t]=r,r=i.css(n,t)),uf(0,r,o)}}});i.cssHooks.marginLeft=ku(e.reliableMarginLeft,function(n,t){if(t)return(parseFloat(ni(n,"marginLeft"))||n.getBoundingClientRect().left-ki(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];r<4;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};"margin"!==n&&(i.cssHooks[n+t].set=uf)});i.fn.extend({css:function(n,t){return p(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ci(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,1<arguments.length)}});((i.Tween=a).prototype={constructor:a,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=a.propHooks[this.prop];return n&&n.get?n.get(this):a.propHooks._default.get(this)},run:function(n){var t,r=a.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):a.propHooks._default.set(this),this}}).init.prototype=a.prototype;(a.propHooks={_default:{get:function(n){var t;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""))&&"auto"!==t?t:0},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||!i.cssHooks[n.prop]&&null==n.elem.style[ir(n.prop)]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}}).scrollTop=a.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=a.prototype.init;i.fx.step={};of=/^(?:toggle|show|hide)$/;sf=/queueHooks$/;i.Animation=i.extend(v,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return hu(i.elem,n,wt.exec(t),i),i}]},tweener:function(n,t){u(n)?(t=n,n=["*"]):n=n.match(l);for(var i,r=0,f=n.length;r<f;r++)i=n[r],v.tweeners[i]=v.tweeners[i]||[],v.tweeners[i].unshift(t)},prefilters:[function(n,t,u){var f,y,w,c,b,h,o,l,k="width"in t||"height"in t,v=this,p={},s=n.style,a=n.nodeType&&kt(n),e=r.get(n,"fxshow");for(f in u.queue||(null==(c=i._queueHooks(n,"fx")).unqueued&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})})),t)if(y=t[f],of.test(y)){if(delete t[f],w=w||"toggle"===y,y===(a?"hide":"show")){if("show"!==y||!e||void 0===e[f])continue;a=!0}p[f]=e&&e[f]||i.style(n,f)}if((h=!i.isEmptyObject(t))||!i.isEmptyObject(p))for(f in k&&1===n.nodeType&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],null==(o=e&&e.display)&&(o=r.get(n,"display")),"none"===(l=i.css(n,"display"))&&(o?l=o:(et([n],!0),o=n.style.display||o,l=i.css(n,"display"),et([n]))),("inline"===l||"inline-block"===l&&null!=o)&&"none"===i.css(n,"float")&&(h||(v.done(function(){s.display=o}),null==o&&(l=s.display,o="none"===l?"":l)),s.display="inline-block")),u.overflow&&(s.overflow="hidden",v.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]})),h=!1,p)h||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&et([n],!0),v.done(function(){for(f in a||et([n]),r.remove(n,"fxshow"),p)i.style(n,f,p[f])})),h=cf(a?e[f]:0,f,v),f in e||(e[f]=h.start,a&&(h.end=h.start,h.start=0))}],prefilter:function(n,t){t?v.prefilters.unshift(n):v.prefilters.push(n)}});i.speed=function(n,t,r){var f=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||u(n)&&n,duration:n,easing:r&&t||t&&!u(t)&&t};return i.fx.off?f.duration=0:"number"!=typeof f.duration&&(f.duration=f.duration in i.fx.speeds?i.fx.speeds[f.duration]:i.fx.speeds._default),null!=f.queue&&!0!==f.queue||(f.queue="fx"),f.old=f.complete,f.complete=function(){u(f.old)&&f.old.call(this);f.queue&&i.dequeue(this,f.queue)},f};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(kt).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=v(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||!1===o.queue?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=t,t=n,n=void 0),t&&!1!==n&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=null!=n&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&sf.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem!==this||null!=n&&o[t].queue!==n||(o[t].anim.stop(u),s=!1,o.splice(t,1));!s&&u||i.dequeue(this,n)})},finish:function(n){return!1!==n&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(ai(t,!0),n,i,u)}});i.each({slideDown:ai("show"),slideUp:ai("hide"),slideToggle:ai("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(ct=Date.now();n<t.length;n++)(r=t[n])()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();ct=void 0};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){li||(li=!0,ur())};i.fx.stop=function(){li=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx&&i.fx.speeds[t]||t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})};lt=f.createElement("input");ef=f.createElement("select").appendChild(f.createElement("option"));lt.type="checkbox";e.checkOn=""!==lt.value;e.optSelected=ef.selected;(lt=f.createElement("input")).value="t";lt.type="radio";e.radioValue="t"===lt.value;at=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return p(this,i.attr,n,t,1<arguments.length)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return"undefined"==typeof n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(u=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?lf:void 0)),void 0!==r?null===r?void i.removeAttr(n,t):u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):u&&"get"in u&&null!==(f=u.get(n,t))?f:null==(f=i.find.attr(n,t))?void 0:f)},attrHooks:{type:{set:function(n,t){if(!e.radioValue&&"radio"===t&&c(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(l);if(r&&1===n.nodeType)while(i=r[u++])n.removeAttribute(i)}});lf={set:function(n,t,r){return!1===t?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=at[t]||i.find.attr;at[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=at[u],at[u]=f,f=null!=r(n,t,i)?u:null,at[u]=e),f}});af=/^(?:input|select|textarea|button)$/i;vf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return p(this,i.prop,n,t,1<arguments.length)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):af.test(n.nodeName)||vf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});e.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var o,t,r,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).addClass(n.call(this,t,nt(this)))});if((o=fr(n)).length)while(t=this[c++])if(f=nt(t),r=1===t.nodeType&&" "+g(f)+" "){for(s=0;e=o[s++];)r.indexOf(" "+e+" ")<0&&(r+=e+" ");f!==(h=g(r))&&t.setAttribute("class",h)}return this},removeClass:function(n){var o,r,t,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).removeClass(n.call(this,t,nt(this)))});if(!arguments.length)return this.attr("class","");if((o=fr(n)).length)while(r=this[c++])if(f=nt(r),t=1===r.nodeType&&" "+g(f)+" "){for(s=0;e=o[s++];)while(-1<t.indexOf(" "+e+" "))t=t.replace(" "+e+" "," ");f!==(h=g(t))&&r.setAttribute("class",h)}return this},toggleClass:function(n,t){var f=typeof n,e="string"===f||Array.isArray(n);return"boolean"==typeof t&&e?t?this.addClass(n):this.removeClass(n):u(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,nt(this),t),t)}):this.each(function(){var t,o,u,s;if(e)for(o=0,u=i(this),s=fr(n);t=s[o++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else void 0!==n&&"boolean"!==f||((t=nt(this))&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===n?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&-1<(" "+g(nt(t))+" ").indexOf(i))return!0;return!1}});yf=/\r/g;i.fn.extend({val:function(n){var t,r,e,f=this[0];return arguments.length?(e=u(n),this.each(function(r){var u;1===this.nodeType&&(null==(u=e?n.call(this,r,i(this).val()):n)?u="":"number"==typeof u?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),(t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):f?(t=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(f,"value"))?r:"string"==typeof(r=f.value)?r.replace(yf,""):null==r?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:g(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f="select-one"===n.type,s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(((t=o[r]).selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!c(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var r,u,f=n.options,e=i.makeArray(t),o=f.length;o--;)((u=f[o]).selected=-1<i.inArray(i.valHooks.option.get(u),e))&&(r=!0);return r||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=-1<i.inArray(i(n).val(),t)}};e.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});e.focusin="onfocusin"in n;er=/^(?:focusinfocus|focusoutblur)$/;or=function(n){n.stopPropagation()};i.extend(i.event,{trigger:function(t,e,o,s){var k,c,l,d,v,y,a,p,w=[o||f],h=ui.call(t,"type")?t.type:t,b=ui.call(t,"namespace")?t.namespace.split("."):[];if(c=p=l=o=o||f,3!==o.nodeType&&8!==o.nodeType&&!er.test(h+i.event.triggered)&&(-1<h.indexOf(".")&&(h=(b=h.split(".")).shift(),b.sort()),v=h.indexOf(":")<0&&"on"+h,(t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),e=null==e?[t]:i.makeArray(e,[t]),a=i.event.special[h]||{},s||!a.trigger||!1!==a.trigger.apply(o,e))){if(!s&&!a.noBubble&&!tt(o)){for(d=a.delegateType||h,er.test(d+h)||(c=c.parentNode);c;c=c.parentNode)w.push(c),l=c;l===(o.ownerDocument||f)&&w.push(l.defaultView||l.parentWindow||n)}for(k=0;(c=w[k++])&&!t.isPropagationStopped();)p=c,t.type=1<k?d:a.bindType||h,(y=(r.get(c,"events")||{})[t.type]&&r.get(c,"handle"))&&y.apply(c,e),(y=v&&c[v])&&y.apply&&yt(c)&&(t.result=y.apply(c,e),!1===t.result&&t.preventDefault());return t.type=h,s||t.isDefaultPrevented()||a._default&&!1!==a._default.apply(w.pop(),e)||!yt(o)||v&&u(o[h])&&!tt(o)&&((l=o[v])&&(o[v]=null),i.event.triggered=h,t.isPropagationStopped()&&p.addEventListener(h,or),o[h](),t.isPropagationStopped()&&p.removeEventListener(h,or),i.event.triggered=void 0,l&&(o[v]=l)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});e.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var ti=n.location,pf=Date.now(),sr=/\?/;i.parseXML=function(t){var r;if(!t||"string"!=typeof t)return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){r=void 0}return r&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var fo=/\[\]$/,wf=/\r?\n/g,eo=/^(?:submit|button|image|reset|file)$/i,oo=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,f=[],e=function(n,t){var i=u(t)?t():t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==i?"":i)};if(null==n)return"";if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(r in n)hr(r,n[r],t,e);return f.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&oo.test(this.nodeName)&&!eo.test(n)&&(this.checked||!dt.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(wf,"\r\n")}}):{name:t.name,value:r.replace(wf,"\r\n")}}).get()}});var so=/%20/g,ho=/#.*$/,co=/([?&])_=[^&]*/,lo=/^(.*?):[ \t]*([^\r\n]*)$/gm,ao=/^(?:GET|HEAD)$/,vo=/^\/\//,bf={},cr={},kf="*/".concat("*"),lr=f.createElement("a");return lr.href=ti.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ti.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ti.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":kf,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":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ar(ar(n,i.ajaxSettings),t):ar(i.ajaxSettings,n)},ajaxPrefilter:df(bf),ajaxTransport:df(cr),ajax:function(t,r){function b(t,r,f,c){var v,rt,b,p,g,l=r;s||(s=!0,d&&n.clearTimeout(d),a=void 0,k=c||"",e.readyState=0<t?4:0,v=200<=t&&t<300||304===t,f&&(p=function(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}(u,e,f)),p=function(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(!(f=o[e+" "+u]||o["* "+u]))for(h in o)if((s=h.split(" "))[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){!0===f?f=o[h]:!0!==o[h]&&(u=s[0],c.unshift(s[1]));break}if(!0!==f)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(n){return{state:"parsererror",error:f?n:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}(u,p,e,v),v?(u.ifModified&&((g=e.getResponseHeader("Last-Modified"))&&(i.lastModified[o]=g),(g=e.getResponseHeader("etag"))&&(i.etag[o]=g)),204===t||"HEAD"===u.type?l="nocontent":304===t?l="notmodified":(l=p.state,rt=p.data,v=!(b=p.error))):(b=l,!t&&l||(l="error",t<0&&(t=0))),e.status=t,e.statusText=(r||l)+"",v?tt.resolveWith(h,[rt,l,e]):tt.rejectWith(h,[e,l,b]),e.statusCode(w),w=void 0,y&&nt.trigger(v?"ajaxSuccess":"ajaxError",[e,u,v?rt:b]),it.fireWith(h,[e,l]),y&&(nt.trigger("ajaxComplete",[e,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var a,o,k,v,d,c,s,y,g,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=u.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!v)for(v={};t=lo.exec(k);)v[t[1].toLowerCase()+" "]=(v[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=v[n.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return null==s&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return null==s&&(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return a&&a.abort(t),b(0,t),this}};if(tt.promise(e),u.url=((t||u.url||ti.href)+"").replace(vo,ti.protocol+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(l)||[""],null==u.crossDomain){c=f.createElement("a");try{c.href=u.url;c.href=c.href;u.crossDomain=lr.protocol+"//"+lr.host!=c.protocol+"//"+c.host}catch(t){u.crossDomain=!0}}if(u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),gf(bf,u,r,e),s)return e;for(g in(y=i.event&&u.global)&&0==i.active++&&i.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!ao.test(u.type),o=u.url.replace(ho,""),u.hasContent?u.data&&u.processData&&0===(u.contentType||"").indexOf("application/x-www-form-urlencoded")&&(u.data=u.data.replace(so,"+")):(p=u.url.slice(o.length),u.data&&(u.processData||"string"==typeof u.data)&&(o+=(sr.test(o)?"&":"?")+u.data,delete u.data),!1===u.cache&&(o=o.replace(co,"$1"),p=(sr.test(o)?"&":"?")+"_="+pf+++p),u.url=o+p),u.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o])),(u.data&&u.hasContent&&!1!==u.contentType||r.contentType)&&e.setRequestHeader("Content-Type",u.contentType),e.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+kf+"; q=0.01":""):u.accepts["*"]),u.headers)e.setRequestHeader(g,u.headers[g]);if(u.beforeSend&&(!1===u.beforeSend.call(h,e,u)||s))return e.abort();if(ft="abort",it.add(u.complete),e.done(u.success),e.fail(u.error),a=gf(cr,u,r,e)){if(e.readyState=1,y&&nt.trigger("ajaxSend",[e,u]),s)return e;u.async&&0<u.timeout&&(d=n.setTimeout(function(){e.abort("timeout")},u.timeout));try{s=!1;a.send(rt,b)}catch(t){if(s)throw t;b(-1,t)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,f,e){return u(r)&&(e=e||f,f=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:e,data:r,success:f},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n,t){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(n){i.globalEval(n,t)}})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(u(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return u(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=u(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},ne={0:200,1223:204},vt=i.ajaxSettings.xhr(),e.cors=!!vt&&"withCredentials"in vt,e.ajax=vt=!!vt,i.ajaxTransport(function(t){var i,r;if(e.cors||vt&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];for(o in t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType),t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest"),u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.ontimeout=e.onreadystatechange=null,"abort"===n?e.abort():"error"===n?"number"!=typeof e.status?f(0,"error"):f(e.status,e.statusText):f(ne[e.status]||e.status,e.statusText,"text"!==(e.responseType||"text")||"string"!=typeof e.responseText?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=e.ontimeout=i("error");void 0!==e.onabort?e.onabort=r:e.onreadystatechange=function(){4===e.readyState&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(u){if(i)throw u;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){var r,t;if(n.crossDomain||n.scriptAttrs)return{send:function(u,e){r=i("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e("error"===n.type?404:200,n.type)});f.head.appendChild(r[0])},abort:function(){t&&t()}}}),vr=[],vi=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=vr.pop()||i.expando+"_"+pf++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,f){var e,o,s,h=!1!==t.jsonp&&(vi.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&vi.test(t.data)&&"data");if(h||"jsonp"===t.dataTypes[0])return e=t.jsonpCallback=u(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,h?t[h]=t[h].replace(vi,"$1"+e):!1!==t.jsonp&&(t.url+=(sr.test(t.url)?"&":"?")+t.jsonp+"="+e),t.converters["script json"]=function(){return s||i.error(e+" was not called"),s[0]},t.dataTypes[0]="json",o=n[e],n[e]=function(){s=arguments},f.always(function(){void 0===o?i(n).removeProp(e):n[e]=o;t[e]&&(t.jsonpCallback=r.jsonpCallback,vr.push(e));s&&u(o)&&o(s[0]);s=o=void 0}),"script"}),e.createHTMLDocument=((te=f.implementation.createHTMLDocument("").body).innerHTML="<form><\/form><form><\/form>",2===te.childNodes.length),i.parseHTML=function(n,t,r){return"string"!=typeof n?[]:("boolean"==typeof t&&(r=t,t=!1),t||(e.createHTMLDocument?((s=(t=f.implementation.createHTMLDocument("")).createElement("base")).href=f.location.href,t.head.appendChild(s)):t=f),u=!r&&[],(o=wi.exec(n))?[t.createElement(o[1])]:(o=vu([n],t,u),u&&u.length&&i(u).remove(),i.merge([],o.childNodes)));var s,o,u},i.fn.load=function(n,t,r){var f,s,h,e=this,o=n.indexOf(" ");return-1<o&&(f=g(n.slice(o)),n=n.slice(0,o)),u(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),0<e.length&&i.ajax({url:n,type:s||"GET",dataType:"html",data:t}).done(function(n){h=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).always(r&&function(n,t){e.each(function(){r.apply(this,h||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var v,o,s,h,f,c,l=i.css(n,"position"),a=i(n),e={};"static"===l&&(n.style.position="relative");f=a.offset();s=i.css(n,"top");c=i.css(n,"left");("absolute"===l||"fixed"===l)&&-1<(s+c).indexOf("auto")?(h=(v=a.position()).top,o=v.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);u(t)&&(t=t.call(n,r,i.extend({},f)));null!=t.top&&(e.top=t.top-f.top+h);null!=t.left&&(e.left=t.left-f.left+o);"using"in t?t.using.call(n,e):a.css(e)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,t=this[0];if(t)return t.getClientRects().length?(r=t.getBoundingClientRect(),u=t.ownerDocument.defaultView,{top:r.top+u.pageYOffset,left:r.left+u.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var n,r,u,t=this[0],f={top:0,left:0};if("fixed"===i.css(t,"position"))r=t.getBoundingClientRect();else{for(r=this.offset(),u=t.ownerDocument,n=t.offsetParent||u.documentElement;n&&(n===u.body||n===u.documentElement)&&"static"===i.css(n,"position");)n=n.parentNode;n&&n!==t&&1===n.nodeType&&((f=i(n).offset()).top+=i.css(n,"borderTopWidth",!0),f.left+=i.css(n,"borderLeftWidth",!0))}return{top:r.top-f.top-i.css(t,"marginTop",!0),left:r.left-f.left-i.css(t,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&"static"===i.css(n,"position");)n=n.offsetParent;return n||bt})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return p(this,function(n,i,u){var f;if(tt(n)?f=n:9===n.nodeType&&(f=n.defaultView),void 0===u)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=ku(e.pixelPosition,function(n,r){if(r)return r=ni(n,t),tr.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||"boolean"!=typeof f),s=r||(!0===f||!0===e?"margin":"border");return p(this,function(t,r,f){var e;return tt(t)?0===u.indexOf("outer")?t["inner"+n]:t.document.documentElement["client"+n]:9===t.nodeType?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):void 0===f?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:void 0,o)}})}),i.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(n,t){i.fn[t]=function(n,i){return 0<arguments.length?this.on(t,null,n,i):this.trigger(t)}}),i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}}),i.proxy=function(n,t){var r,f,e;if("string"==typeof t&&(r=n[t],t=n,n=r),u(n))return f=b.call(arguments,2),(e=function(){return n.apply(t||this,f.concat(b.call(arguments)))}).guid=n.guid=n.guid||i.guid++,e},i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=c,i.isFunction=u,i.isWindow=tt,i.camelCase=y,i.type=it,i.now=Date.now,i.isNumeric=function(n){var t=i.type(n);return("number"===t||"string"===t)&&!isNaN(n-parseFloat(n))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),ie=n.jQuery,re=n.$,i.noConflict=function(t){return n.$===i&&(n.$=re),t&&n.jQuery===i&&(n.jQuery=ie),i},t||(n.jQuery=n.$=i),i}),window.Modernizr=function(n,t,i){function a(n){c.cssText=n}function vt(n,t){return a(y.join(n+";")+(t||""))}function h(n,t){return typeof n===t}function v(n,t){return!!~(""+n).indexOf(t)}function lt(n,t){var u,r;for(u in n)if(r=n[u],!v(r,"-")&&c[r]!==i)return t=="pfx"?r:!0;return!1}function yt(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:h(u,"function")?u.bind(r||t):u;return!1}function f(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+ot.join(r+" ")+r).split(" ");return h(t,"string")||h(t,"undefined")?lt(u,t):(u=(n+" "+st.join(r+" ")+r).split(" "),yt(u,t,i))}function pt(){u.input=function(i){for(var r=0,u=i.length;r<u;r++)w[i[r]]=!!(i[r]in o);return w.list&&(w.list=!!(t.createElement("datalist")&&n.HTMLDataListElement)),w}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));u.inputtypes=function(n){for(var u=0,r,f,e,h=n.length;u<h;u++)o.setAttribute("type",f=n[u]),r=o.type!=="text",r&&(o.value=g,o.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&o.style.WebkitAppearance!==i?(s.appendChild(o),e=t.defaultView,r=e.getComputedStyle&&e.getComputedStyle(o,null).WebkitAppearance!=="textfield"&&o.offsetHeight!==0,s.removeChild(o)):/^(search|tel)$/.test(f)||(r=/^(url|email)$/.test(f)?o.checkValidity&&o.checkValidity()===!1:o.value!=g)),ht[n[u]]=!!r;return ht}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var u={},d=!0,s=t.documentElement,e="modernizr",ut=t.createElement(e),c=ut.style,o=t.createElement("input"),g=":)",ft={}.toString,y=" -webkit- -moz- -o- -ms- ".split(" "),et="Webkit Moz O ms",ot=et.split(" "),st=et.toLowerCase().split(" "),p={svg:"http://www.w3.org/2000/svg"},r={},ht={},w={},nt=[],tt=nt.slice,b,l=function(n,i,r,u){var l,a,c,v,f=t.createElement("div"),h=t.body,o=h||t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=u?u[r]:e+(r+1),f.appendChild(c);return l=["&#173;",'<style id="s',e,'">',n,"<\/style>"].join(""),f.id=e,(h?f:o).innerHTML+=l,o.appendChild(f),h||(o.style.background="",o.style.overflow="hidden",v=s.style.overflow,s.style.overflow="hidden",s.appendChild(o)),a=i(f,n),h?f.parentNode.removeChild(f):(o.parentNode.removeChild(o),s.style.overflow=v),!!a},at=function(t){var i=n.matchMedia||n.msMatchMedia,r;return i?i(t)&&i(t).matches||!1:(l("@media "+t+" { #"+e+" { position: absolute; } }",function(t){r=(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position=="absolute"}),r)},ct=function(){function r(r,u){u=u||t.createElement(n[r]||"div");r="on"+r;var f=r in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(r,""),f=h(u[r],"function"),h(u[r],"undefined")||(u[r]=i),u.removeAttribute(r))),u=null,f}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r}(),it={}.hasOwnProperty,rt,k;rt=h(it,"undefined")||h(it.call,"undefined")?function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")}:function(n,t){return it.call(n,t)};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=tt.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(tt.call(arguments))),Object(u)===u)?u:e:t.apply(n,i.concat(tt.call(arguments)))},r});r.flexbox=function(){return f("flexWrap")};r.flexboxlegacy=function(){return f("boxDirection")};r.canvas=function(){var n=t.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))};r.canvastext=function(){return!!(u.canvas&&h(t.createElement("canvas").getContext("2d").fillText,"function"))};r.webgl=function(){return!!n.WebGLRenderingContext};r.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:l(["@media (",y.join("touch-enabled),("),e,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=n.offsetTop===9}),i};r.geolocation=function(){return"geolocation"in navigator};r.postmessage=function(){return!!n.postMessage};r.websqldatabase=function(){return!!n.openDatabase};r.indexedDB=function(){return!!f("indexedDB",n)};r.hashchange=function(){return ct("hashchange",n)&&(t.documentMode===i||t.documentMode>7)};r.history=function(){return!!(n.history&&history.pushState)};r.draganddrop=function(){var n=t.createElement("div");return"draggable"in n||"ondragstart"in n&&"ondrop"in n};r.websockets=function(){return"WebSocket"in n||"MozWebSocket"in n};r.rgba=function(){return a("background-color:rgba(150,255,150,.5)"),v(c.backgroundColor,"rgba")};r.hsla=function(){return a("background-color:hsla(120,40%,100%,.5)"),v(c.backgroundColor,"rgba")||v(c.backgroundColor,"hsla")};r.multiplebgs=function(){return a("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(c.background)};r.backgroundsize=function(){return f("backgroundSize")};r.borderimage=function(){return f("borderImage")};r.borderradius=function(){return f("borderRadius")};r.boxshadow=function(){return f("boxShadow")};r.textshadow=function(){return t.createElement("div").style.textShadow===""};r.opacity=function(){return vt("opacity:.55"),/^0.55$/.test(c.opacity)};r.cssanimations=function(){return f("animationName")};r.csscolumns=function(){return f("columnCount")};r.cssgradients=function(){var n="background-image:";return a((n+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+n)+y.join("linear-gradient(left top,#9f9, white);"+n)).slice(0,-n.length)),v(c.backgroundImage,"gradient")};r.cssreflections=function(){return f("boxReflect")};r.csstransforms=function(){return!!f("transform")};r.csstransforms3d=function(){var n=!!f("perspective");return n&&"webkitPerspective"in s.style&&l("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){n=t.offsetLeft===9&&t.offsetHeight===3}),n};r.csstransitions=function(){return f("transition")};r.fontface=function(){var n;return l('@font-face {font-family:"font";src:url("https://")}',function(i,r){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"";n=/src/i.test(e)&&e.indexOf(r.split(" ")[0])===0}),n};r.generatedcontent=function(){var n;return l(["#",e,"{font:0/0 a}#",e,':after{content:"',g,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){n=t.offsetHeight>=3}),n};r.video=function(){var i=t.createElement("video"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=i.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=i.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n};r.audio=function(){var i=t.createElement("audio"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=i.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=i.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n};r.localstorage=function(){try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(n){return!1}};r.sessionstorage=function(){try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(n){return!1}};r.webworkers=function(){return!!n.Worker};r.applicationcache=function(){return!!n.applicationCache};r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(p.svg,"svg").createSVGRect};r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==p.svg};r.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(ft.call(t.createElementNS(p.svg,"animate")))};r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(ft.call(t.createElementNS(p.svg,"clipPath")))};for(k in r)rt(r,k)&&(b=k.toLowerCase(),u[b]=r[k](),nt.push((u[b]?"":"no-")+b));return u.input||pt(),u.addTest=function(n,t){if(typeof n=="object")for(var r in n)rt(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t=typeof t=="function"?t():t;typeof d!="undefined"&&d&&(s.className+=" "+(t?"":"no-")+n);u[n]=t}return u},a(""),ut=o=null,function(n,t){function p(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function c(){var n=r.elements;return typeof n=="string"?n.split(" "):n}function o(n){var t=h[n[s]];return t||(t={},e++,n[s]=e,h[e]=t),t}function l(n,r,u){if(r||(r=t),i)return r.createElement(n);u||(u=o(r));var f;return f=u.cache[n]?u.cache[n].cloneNode():y.test(n)?(u.cache[n]=u.createElem(n)).cloneNode():u.createElem(n),f.canHaveChildren&&!v.test(n)&&!f.tagUrn?u.frag.appendChild(f):f}function w(n,r){if(n||(n=t),i)return n.createDocumentFragment();r=r||o(n);for(var f=r.frag.cloneNode(),u=0,e=c(),s=e.length;u<s;u++)f.createElement(e[u]);return f}function b(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(i){return r.shivMethods?l(i,n,t):t.createElem(i)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+c().join().replace(/[\w\-]+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(r,t.frag)}function a(n){n||(n=t);var u=o(n);return!r.shivCSS||f||u.hasCSS||(u.hasCSS=!!p(n,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),i||b(n,u),n}var u=n.html5||{},v=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,y=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,s="_html5shiv",e=0,h={},i,r;(function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";f="hidden"in n;i=n.childNodes.length==1||function(){t.createElement("a");var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()}catch(r){f=!0;i=!0}})();r={elements:u.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:u.shivCSS!==!1,supportsUnknownElements:i,shivMethods:u.shivMethods!==!1,type:"default",shivDocument:a,createElement:l,createDocumentFragment:w};n.html5=r;a(t)}(this,t),u._version="2.8.3",u._prefixes=y,u._domPrefixes=st,u._cssomPrefixes=ot,u.mq=at,u.hasEvent=ct,u.testProp=function(n){return lt([n])},u.testAllProps=f,u.testStyles=l,u.prefixed=function(n,t,i){return t?f(n,t,i):f(n,"pfx")},s.className=s.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(d?" js "+nt.join(" "):""),u}(this,this.document),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4");}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(void 0!==i.style[n])return{end:t[n]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t();n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));"string"==typeof i&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.7";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,""));r=n("#"===u?[]:u);i&&i.preventDefault();r.length||(r=f.closest(".alert"));r.trigger(i=n.Event("close.bs.alert"));i.isDefaultPrevented()||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f));"toggle"==i?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.7";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var i="disabled",r=this.$element,f=r.is("input")?"val":"html",u=r.data();t+="Text";null==u.resetText&&r.data("resetText",r[f]());setTimeout(n.proxy(function(){r[f](null==u[t]?this.options[t]:u[t]);"loadingText"==t?(this.isLoading=!0,r.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(i).removeAttr(i).prop(i,!1))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target).closest(".btn");i.call(r,"toggle");n(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));"number"==typeof i?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.7";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f="prev"==n&&0===i||"next"==n&&i==this.$items.length-1,r,u;return f&&!this.options.wrap?t:(r="prev"==n?-1:1,u=(i+r)%this.$items.length,this.$items.eq(u))};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1||n<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f="next"==i?"left":"right",a=this,o,s,h,c;return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),(this.$element.trigger(s),!s.isDefaultPrevented())?((this.sliding=!0,l&&this.pause(),this.$indicators.length)&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this):void 0)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i);!r&&f.toggle&&/show|hide/.test(i)&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.7";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!(r&&r.length&&(f=r.data("bs.collapse"),f&&f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented()))){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented()))return i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},n.support.transition?void this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION):u.call(this)};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":u.data();i.call(f,o)})}(jQuery);+function(n){"use strict";function r(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function u(t){t&&3===t.which||(n(o).remove(),n(i).each(function(){var u=n(this),i=r(u),f={relatedTarget:this};i.hasClass("open")&&(t&&"click"==t.type&&/input|textarea/i.test(t.target.tagName)&&n.contains(i[0],t.target)||(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented()||(u.attr("aria-expanded","false"),i.removeClass("open").trigger(n.Event("hidden.bs.dropdown",f)))))}))}function e(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));"string"==typeof i&&u[i].call(r)})}var o=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.7";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=r(f),o=i.hasClass("open"),u(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",u),e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger(n.Event("shown.bs.dropdown",e))}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,u;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=r(e),s=o.hasClass("open"),!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(i).trigger("focus"),e.trigger("click");h=" li:not(.disabled):visible a";f=o.find(".dropdown-menu"+h);f.length&&(u=f.index(t.target),38==t.which&&u>0&&u--,40==t.which&&u<f.length-1&&u++,~u||(u=0),f.eq(u).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=e;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",u).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",t.prototype.keydown)}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),"object"==typeof i&&i);u||f.data("bs.modal",u=new t(this,e));"string"==typeof i?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$dialog=this.$element.find(".modal-dialog");this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=!1;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.7";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(u);this.isShown||u.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})}),this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in");r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)}))};t.prototype.hide=function(i){i&&i.preventDefault();i=n.Event("hide.bs.modal");this.$element.trigger(i);this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){document===n.target||this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){27==n.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){this.isShown?n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this)):n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){if(r=n.support.transition&&f,this.$backdrop=n(document.createElement("div")).addClass("modal-backdrop "+f).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.adjustDialog()};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){var n=window.innerWidth,t;n||(t=document.documentElement.getBoundingClientRect(),n=t.right-Math.abs(t.left));this.bodyIsOverflowing=document.body.clientWidth<n;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){n.isDefaultPrevented()||u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f="object"==typeof i&&i;!r&&/destroy|hide/.test(i)||(r||u.data("bs.tooltip",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init("tooltip",n,t)},i;t.VERSION="3.3.7";t.TRANSITION_DURATION=150;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,i,r){var f,e,u,o,s;if(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(n.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(o="hover"==u?"mouseenter":"focusin",s="hover"==u?"mouseleave":"focusout",this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState["focusin"==t.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())};t.prototype.isInStateTrue=function(){for(var n in this.inState)if(this.inState[n])return!0;return!1};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState["focusout"==t.type?"focus":"hover"]=!1),!i.isInStateTrue())return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()};t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,e,w,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent();r.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&r.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;y&&(p=i,e=this.getPosition(this.$viewport),i="bottom"==i&&f.bottom+s>e.bottom?"top":"top"==i&&f.top-s<e.top?"bottom":"right"==i&&f.right+o>e.width?"left":"left"==i&&f.left-o<e.left?"right":i,r.removeClass(p).addClass(i));w=this.getCalculatedOffset(i,f,o,s);this.applyPlacement(w,i);h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;"out"==n&&u.leave(u)};n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(t.TRANSITION_DURATION):h()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top+=o;t.left+=s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;"top"==i&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?2*u.left-l+h:2*u.top-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(i){function f(){"in"!=r.hoverState&&u.detach();r.$element&&r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type);i&&i()}var r=this,u=n(this.$tip),e=n.Event("hide.bs."+this.type);if(this.$element.trigger(e),!e.isDefaultPrevented())return u.removeClass("in"),n.support.transition&&u.hasClass("fade")?u.one("bsTransitionEnd",f).emulateTransitionEnd(t.TRANSITION_DURATION):f(),this.hoverState=null,this};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||"string"!=typeof n.attr("data-original-title"))&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var r=t[0],u="BODY"==r.tagName,i=r.getBoundingClientRect();null==i.width&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=window.SVGElement&&r instanceof window.SVGElement,e=u?{top:0,left:0}:f?null:t.offset(),o={scroll:u?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},s=u?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,o,s,e)};t.prototype.getCalculatedOffset=function(n,t,i,r){return"bottom"==n?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==n?{top:t.top-r,left:t.left+t.width/2-i/2}:"left"==n?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.right&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n};t.prototype.tip=function(){if(!this.$tip&&(this.$tip=n(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type);n.$tip&&n.$tip.detach();n.$tip=null;n.$arrow=null;n.$viewport=null;n.$element=null})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f="object"==typeof i&&i;!r&&/destroy|hide/.test(i)||(r||u.data("bs.popover",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.7";t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof t?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||("function"==typeof n.content?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){this.$body=n(document.body);this.$scrollElement=n(n(i).is(document.body)?window:i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this));this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==typeof i&&i;r||u.data("bs.scrollspy",r=new t(this,f));"string"==typeof i&&r[i]()})}t.VERSION="3.3.7";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var t=this,i="offset",r=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var n,i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(void 0===t[n+1]||i<t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));"string"==typeof i&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.7";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);o?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);u&&u()}var f=r.find("> .active"),o=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&o?f.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f="object"==typeof i&&i;r||u.data("bs.affix",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.7";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(null!=i&&"top"==this.affixed)return u<i&&"top";if("bottom"==this.affixed)return null!=i?!(u+this.unpin<=f.top)&&"bottom":!(u+e<=n-r)&&"bottom";var o=null==this.affixed,s=o?u:f.top,h=o?e:t;return null!=i&&u<=i?"top":null!=r&&s+h>=n-r&&"bottom"};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=Math.max(n(document).height(),n(document.body).height());if("object"!=typeof r&&(u=f=r),"function"==typeof f&&(f=r.top(this.$element)),"function"==typeof u&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(null!=this.unpin&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin="bottom"==i?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}"bottom"==i&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom);null!=t.offsetTop&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery);dateFormat=function(){var t=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,i=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,r=/[^-+\dA-Z]/g,n=function(n,t){for(n=String(n),t=t||2;n.length<t;)n="0"+n;return n};return function(u,f,e){var h=dateFormat;if(arguments.length!=1||Object.prototype.toString.call(u)!="[object String]"||/\d/.test(u)||(f=u,u=undefined),u=u?new Date(u):new Date,isNaN(u))throw SyntaxError("invalid date");f=String(h.masks[f]||f||h.masks["default"]);f.slice(0,4)=="UTC:"&&(f=f.slice(4),e=!0);var o=e?"getUTC":"get",c=u[o+"Date"](),y=u[o+"Day"](),l=u[o+"Month"](),p=u[o+"FullYear"](),s=u[o+"Hours"](),w=u[o+"Minutes"](),b=u[o+"Seconds"](),a=u[o+"Milliseconds"](),v=e?0:u.getTimezoneOffset(),k={d:c,dd:n(c),ddd:h.i18n.dayNames[y],dddd:h.i18n.dayNames[y+7],m:l+1,mm:n(l+1),mmm:h.i18n.monthNames[l],mmmm:h.i18n.monthNames[l+12],yy:String(p).slice(2),yyyy:p,h:s%12||12,hh:n(s%12||12),H:s,HH:n(s),M:w,MM:n(w),s:b,ss:n(b),l:n(a,3),L:n(a>99?Math.round(a/10):a),t:s<12?"a":"p",tt:s<12?"am":"pm",T:s<12?"A":"P",TT:s<12?"AM":"PM",Z:e?"UTC":(String(u).match(i)||[""]).pop().replace(r,""),o:(v>0?"-":"+")+n(Math.floor(Math.abs(v)/60)*100+Math.abs(v)%60,4),S:["th","st","nd","rd"][c%10>3?0:(c%100-c%10!=10)*c%10]};return f.replace(t,function(n){return n in k?k[n]:n.slice(1,n.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(n,t){return dateFormat(this,n,t)},function(n){var t,r,i;typeof define=="function"&&define.amd&&(define(n),t=!0);typeof exports=="object"&&(module.exports=n(),t=!0);t||(r=window.Cookies,i=window.Cookies=n(),i.noConflict=function(){return window.Cookies=r,i})}(function(){function n(){for(var n=0,r={},t,i;n<arguments.length;n++){t=arguments[n];for(i in t)r[i]=t[i]}return r}function t(i){function r(t,u,f){var c,s,o,v,e,h;if(typeof document!="undefined"){if(arguments.length>1){f=n({path:"/"},r.defaults,f);typeof f.expires=="number"&&(f.expires=new Date(new Date*1+f.expires*864e5));f.expires=f.expires?f.expires.toUTCString():"";try{c=JSON.stringify(u);/^[\{\[]/.test(c)&&(u=c)}catch(w){}u=i.write?i.write(u,t):encodeURIComponent(String(u)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent);t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);s="";for(o in f)f[o]&&(s+="; "+o,f[o]!==!0)&&(s+="="+f[o].split(";")[0]);return document.cookie=t+"="+u+s}for(var l={},y=function(n){return n.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)},p=document.cookie?document.cookie.split("; "):[],a=0;a<p.length;a++){v=p[a].split("=");e=v.slice(1).join("=");this.json||e.charAt(0)!=='"'||(e=e.slice(1,-1));try{if(h=y(v[0]),e=(i.read||i)(e,h)||y(e),this.json)try{e=JSON.parse(e)}catch(w){}if(l[h]=e,t===h)break}catch(w){}}return t?l[t]:l}}return r.set=r,r.get=function(n){return r.call(r,n)},r.getJSON=function(n){return r.call({json:!0},n)},r.remove=function(t,i){r(t,"",n(i,{expires:-1}))},r.defaults={},r.withConverter=t,r}return t(function(){})}),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):typeof module!="undefined"&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){"use strict";function r(t){return!t.nodeName||n.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])!==-1}function i(t){return n.isFunction(t)||n.isPlainObject(t)?t:{top:t,left:t}}var t=n.scrollTo=function(t,i,r){return n(window).scrollTo(t,i,r)};return t.defaults={axis:"xy",duration:0,limit:!0},n.fn.scrollTo=function(u,f,e){typeof f=="object"&&(e=f,f=0);typeof e=="function"&&(e={onAfter:e});u==="max"&&(u=9e9);e=n.extend({},t.defaults,e);f=f||e.duration;var o=e.queue&&e.axis.length>1;return o&&(f/=2),e.offset=i(e.offset),e.over=i(e.over),this.each(function(){function p(t){var i=n.extend({},e,{queue:!0,duration:f,complete:t&&function(){t.call(c,s,e)}});a.animate(h,i)}var y;if(u!==null){var l=r(this),c=l?this.contentWindow||window:this,a=n(c),s=u,h={},v;switch(typeof s){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(s)){s=i(s);break}s=l?n(s):n(s,c);case"object":if(s.length===0)return;(s.is||s.style)&&(v=(s=n(s)).offset())}y=n.isFunction(e.offset)&&e.offset(c,s)||e.offset;n.each(e.axis.split(""),function(n,i){var w=i==="x"?"Left":"Top",u=w.toLowerCase(),r="scroll"+w,b=a[r](),k=t.max(c,i),f;v?(h[r]=v[u]+(l?0:b-a.offset()[u]),e.margin&&(h[r]-=parseInt(s.css("margin"+w),10)||0,h[r]-=parseInt(s.css("border"+w+"Width"),10)||0),h[r]+=y[u]||0,e.over[u]&&(h[r]+=s[i==="x"?"width":"height"]()*e.over[u])):(f=s[u],h[r]=f.slice&&f.slice(-1)==="%"?parseFloat(f)/100*k:f);e.limit&&/^\d+$/.test(h[r])&&(h[r]=h[r]<=0?0:Math.min(h[r],k));!n&&e.axis.length>1&&(b===h[r]?h={}:o&&(p(e.onAfterFirst),h={}))});p(e.onAfter)}})},t.max=function(t,i){var u=i==="x"?"Width":"Height",f="scroll"+u;if(!r(t))return t[f]-n(t)[u.toLowerCase()]();var e="client"+u,o=t.ownerDocument||t.document,s=o.documentElement,h=o.body;return Math.max(s[f],h[f])-Math.min(s[e],h[e])},n.Tween.propHooks.scrollLeft=n.Tween.propHooks.scrollTop={get:function(t){return n(t.elem)[t.prop]()},set:function(t){var r=this.get(t),i;if(t.options.interrupt&&t._last&&t._last!==r)return n(t.elem).stop();i=Math.round(t.now);r!==i&&(n(t.elem)[t.prop](i),t._last=this.get(t))}},t});!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SimpleBar=t():n.SimpleBar=t()}(this,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=27)}([function(n,t,i){var r=i(23)("wks"),e=i(12),u=i(1).Symbol,f="function"==typeof u;(n.exports=function(n){return r[n]||(r[n]=f&&u[n]||(f?u:e)("Symbol."+n))}).store=r},function(n){var t=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(n){var t={}.hasOwnProperty;n.exports=function(n,i){return t.call(n,i)}},function(n){var t=n.exports={version:"2.5.1"};"number"==typeof __e&&(__e=t)},function(n,t,i){var r=i(5),u=i(11);n.exports=i(7)?function(n,t,i){return r.f(n,t,u(1,i))}:function(n,t,i){return n[t]=i,n}},function(n,t,i){var r=i(6),u=i(33),f=i(34),e=Object.defineProperty;t.f=i(7)?Object.defineProperty:function(n,t,i){if(r(n),t=f(t,!0),r(i),u)try{return e(n,t,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(n[t]=i.value),n}},function(n,t,i){var r=i(10);n.exports=function(n){if(!r(n))throw TypeError(n+" is not an object!");return n}},function(n,t,i){n.exports=!i(16)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(n){var t=Math.ceil,i=Math.floor;n.exports=function(n){return isNaN(n=+n)?0:(n>0?i:t)(n)}},function(n){n.exports=function(n){if(void 0==n)throw TypeError("Can't call method on  "+n);return n}},function(n){n.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},function(n){n.exports=function(n,t){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:t}}},function(n){var t=0,i=Math.random();n.exports=function(n){return"Symbol(".concat(void 0===n?"":n,")_",(++t+i).toString(36))}},function(n){n.exports={}},function(n,t,i){var r=i(23)("keys"),u=i(12);n.exports=function(n){return r[n]||(r[n]=u(n))}},function(n,t,i){var u=i(1),f=i(3),o=i(4),s=i(18),e=i(19),r=function(n,t,i){var c,v,h,p,k=n&r.F,y=n&r.G,d=n&r.S,w=n&r.P,g=n&r.B,l=y?u:d?u[t]||(u[t]={}):(u[t]||{}).prototype,a=y?f:f[t]||(f[t]={}),b=a.prototype||(a.prototype={});y&&(i=t);for(c in i)v=!k&&l&&void 0!==l[c],h=(v?l:i)[c],p=g&&v?e(h,u):w&&"function"==typeof h?e(Function.call,h):h,l&&s(l,c,h,n&r.U),a[c]!=h&&o(a,c,p),w&&b[c]!=h&&(b[c]=h)};u.core=f;r.F=1;r.G=2;r.S=4;r.P=8;r.B=16;r.W=32;r.U=64;r.R=128;n.exports=r},function(n){n.exports=function(n){try{return!!n()}catch(n){return!0}}},function(n,t,i){var u=i(10),r=i(1).document,f=u(r)&&u(r.createElement);n.exports=function(n){return f?r.createElement(n):{}}},function(n,t,i){var o=i(1),r=i(4),e=i(2),u=i(12)("src"),f=Function.toString,s=(""+f).split("toString");i(3).inspectSource=function(n){return f.call(n)};(n.exports=function(n,t,i,f){var h="function"==typeof i;h&&(e(i,"name")||r(i,"name",t));n[t]!==i&&(h&&(e(i,u)||r(i,u,n[t]?""+n[t]:s.join(String(t)))),n===o?n[t]=i:f?n[t]?n[t]=i:r(n,t,i):(delete n[t],r(n,t,i)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||f.call(this)})},function(n,t,i){var r=i(35);n.exports=function(n,t,i){if(r(n),void 0===t)return n;switch(i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)}}return function(){return n.apply(t,arguments)}}},function(n,t,i){var r=i(41),u=i(9);n.exports=function(n){return r(u(n))}},function(n){var t={}.toString;n.exports=function(n){return t.call(n).slice(8,-1)}},function(n,t,i){var r=i(8),u=Math.min;n.exports=function(n){return n>0?u(r(n),9007199254740991):0}},function(n,t,i){var r=i(1),u=r["__core-js_shared__"]||(r["__core-js_shared__"]={});n.exports=function(n){return u[n]||(u[n]={})}},function(n){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,t,i){var u=i(5).f,f=i(2),r=i(0)("toStringTag");n.exports=function(n,t,i){n&&!f(n=i?n:n.prototype,r)&&u(n,r,{configurable:!0,value:t})}},function(n,t,i){var r=i(9);n.exports=function(n){return Object(r(n))}},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function o(n,t,i){return t&&f(n.prototype,t),i&&f(n,i),n}var u;Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;i(28);var s=r(i(53)),h=r(i(54)),c=r(i(56));i(57);Object.assign=i(58);u=function(){function n(t,i){e(this,n);this.el=t;this.flashTimeout;this.contentEl;this.scrollContentEl;this.dragOffset={x:0,y:0};this.isVisible={x:!0,y:!0};this.scrollOffsetAttr={x:"scrollLeft",y:"scrollTop"};this.sizeAttr={x:"offsetWidth",y:"offsetHeight"};this.scrollSizeAttr={x:"scrollWidth",y:"scrollHeight"};this.offsetAttr={x:"left",y:"top"};this.globalObserver;this.mutationObserver;this.resizeObserver;this.currentAxis;this.isRtl;this.options=Object.assign({},n.defaultOptions,i);this.classNames=this.options.classNames;this.scrollbarWidth=s.default();this.offsetSize=20;this.flashScrollbar=this.flashScrollbar.bind(this);this.onDragY=this.onDragY.bind(this);this.onDragX=this.onDragX.bind(this);this.onScrollY=this.onScrollY.bind(this);this.onScrollX=this.onScrollX.bind(this);this.drag=this.drag.bind(this);this.onEndDrag=this.onEndDrag.bind(this);this.onMouseEnter=this.onMouseEnter.bind(this);this.recalculate=h.default(this.recalculate,100,{leading:!0});this.init()}return o(n,[{key:"init",value:function(){this.el.SimpleBar=this;this.initDOM();this.scrollbarX=this.trackX.querySelector(".".concat(this.classNames.scrollbar));this.scrollbarY=this.trackY.querySelector(".".concat(this.classNames.scrollbar));this.isRtl="rtl"===getComputedStyle(this.contentEl).direction;this.scrollContentEl.style[this.isRtl?"paddingLeft":"paddingRight"]="".concat(this.scrollbarWidth||this.offsetSize,"px");this.scrollContentEl.style.marginBottom="-".concat(2*this.scrollbarWidth||this.offsetSize,"px");this.contentEl.style.paddingBottom="".concat(this.scrollbarWidth||this.offsetSize,"px");0!==this.scrollbarWidth&&(this.contentEl.style[this.isRtl?"marginLeft":"marginRight"]="-".concat(this.scrollbarWidth,"px"));this.recalculate();this.initListeners()}},{key:"initDOM",value:function(){var i=this,n,t;if(Array.from(this.el.children).filter(function(n){return n.classList.contains(i.classNames.scrollContent)}).length)this.trackX=this.el.querySelector(".".concat(this.classNames.track,".horizontal")),this.trackY=this.el.querySelector(".".concat(this.classNames.track,".vertical")),this.scrollContentEl=this.el.querySelector(".".concat(this.classNames.scrollContent)),this.contentEl=this.el.querySelector(".".concat(this.classNames.content));else{for(this.scrollContentEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.scrollContentEl.classList.add(this.classNames.scrollContent),this.contentEl.classList.add(this.classNames.content);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.scrollContentEl.appendChild(this.contentEl);this.el.appendChild(this.scrollContentEl)}this.trackX&&this.trackY||(n=document.createElement("div"),t=document.createElement("div"),n.classList.add(this.classNames.track),t.classList.add(this.classNames.scrollbar),n.appendChild(t),this.trackX=n.cloneNode(!0),this.trackX.classList.add("horizontal"),this.trackY=n.cloneNode(!0),this.trackY.classList.add("vertical"),this.el.insertBefore(this.trackX,this.el.firstChild),this.el.insertBefore(this.trackY,this.el.firstChild));this.el.setAttribute("data-simplebar","init")}},{key:"initListeners",value:function(){var n=this;this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter);this.scrollbarY.addEventListener("mousedown",this.onDragY);this.scrollbarX.addEventListener("mousedown",this.onDragX);this.scrollContentEl.addEventListener("scroll",this.onScrollY);this.contentEl.addEventListener("scroll",this.onScrollX);"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver(function(t){t.forEach(function(t){(n.isChildNode(t.target)||t.addedNodes.length)&&n.recalculate()})}),this.mutationObserver.observe(this.el,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));this.resizeObserver=new c.default(this.recalculate.bind(this));this.resizeObserver.observe(this.el)}},{key:"removeListeners",value:function(){this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter);this.scrollbarX.removeEventListener("mousedown",this.onDragX);this.scrollbarY.removeEventListener("mousedown",this.onDragY);this.scrollContentEl.removeEventListener("scroll",this.onScrollY);this.contentEl.removeEventListener("scroll",this.onScrollX);this.mutationObserver.disconnect();this.resizeObserver.disconnect()}},{key:"onDragX",value:function(n){this.onDrag(n,"x")}},{key:"onDragY",value:function(n){this.onDrag(n,"y")}},{key:"onDrag",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",i,r;n.preventDefault();i="y"===t?this.scrollbarY:this.scrollbarX;r="y"===t?n.pageY:n.pageX;this.dragOffset[t]=r-i.getBoundingClientRect()[this.offsetAttr[t]];this.currentAxis=t;document.addEventListener("mousemove",this.drag);document.addEventListener("mouseup",this.onEndDrag)}},{key:"drag",value:function(n){var i,t,r;n.preventDefault();"y"===this.currentAxis?(i=n.pageY,t=this.trackY,r=this.scrollContentEl):(i=n.pageX,t=this.trackX,r=this.contentEl);var u=i-t.getBoundingClientRect()[this.offsetAttr[this.currentAxis]]-this.dragOffset[this.currentAxis],f=u/t[this.sizeAttr[this.currentAxis]],e=f*this.contentEl[this.scrollSizeAttr[this.currentAxis]];r[this.scrollOffsetAttr[this.currentAxis]]=e}},{key:"onEndDrag",value:function(){document.removeEventListener("mousemove",this.drag);document.removeEventListener("mouseup",this.onEndDrag)}},{key:"resizeScrollbar",value:function(){var u,n,f,r,t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";"x"===i?(u=this.trackX,n=this.scrollbarX,f=this.contentEl[this.scrollOffsetAttr[i]],r=this.contentSizeX,t=this.scrollbarXSize):(u=this.trackY,n=this.scrollbarY,f=this.scrollContentEl[this.scrollOffsetAttr[i]],r=this.contentSizeY,t=this.scrollbarYSize);var s=t/r,h=f/(r-t),e=Math.max(~~(s*t),this.options.scrollbarMinSize),o=~~((t-e)*h);this.isVisible[i]=t<r;this.isVisible[i]||this.options.forceVisible?(u.style.visibility="visible",n.style.visibility=this.options.forceVisible?"hidden":"visible","x"===i?(n.style.left="".concat(o,"px"),n.style.width="".concat(e,"px")):(n.style.top="".concat(o,"px"),n.style.height="".concat(e,"px"))):u.style.visibility="hidden"}},{key:"onScrollX",value:function(){this.flashScrollbar("x")}},{key:"onScrollY",value:function(){this.flashScrollbar("y")}},{key:"onMouseEnter",value:function(){this.flashScrollbar("x");this.flashScrollbar("y")}},{key:"flashScrollbar",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.resizeScrollbar(n);this.showScrollbar(n)}},{key:"showScrollbar",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.isVisible[n]&&("x"===n?this.scrollbarX.classList.add("visible"):this.scrollbarY.classList.add("visible"),this.options.autoHide&&("number"==typeof this.flashTimeout&&window.clearTimeout(this.flashTimeout),this.flashTimeout=window.setTimeout(this.hideScrollbar.bind(this),1e3)))}},{key:"hideScrollbar",value:function(){this.scrollbarX.classList.remove("visible");this.scrollbarY.classList.remove("visible");"number"==typeof this.flashTimeout&&window.clearTimeout(this.flashTimeout)}},{key:"recalculate",value:function(){this.contentSizeX=this.contentEl[this.scrollSizeAttr.x];this.contentSizeY=this.contentEl[this.scrollSizeAttr.y]-(this.scrollbarWidth||this.offsetSize);this.scrollbarXSize=this.trackX[this.sizeAttr.x];this.scrollbarYSize=this.trackY[this.sizeAttr.y];this.resizeScrollbar("x");this.resizeScrollbar("y");this.options.autoHide||(this.showScrollbar("x"),this.showScrollbar("y"))}},{key:"getScrollElement",value:function(){return"y"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y")?this.scrollContentEl:this.contentEl}},{key:"getContentElement",value:function(){return this.contentEl}},{key:"unMount",value:function(){this.removeListeners();this.el.SimpleBar=null}},{key:"isChildNode",value:function(n){return null!==n&&(n===this.el||this.isChildNode(n.parentNode))}}],[{key:"initHtmlApi",value:function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this);"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(function(t){t.forEach(function(t){Array.from(t.addedNodes).forEach(function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?!t.SimpleBar&&new n(t,n.getElOptions(t)):Array.from(t.querySelectorAll("[data-simplebar]")).forEach(function(t){t.SimpleBar||new n(t,n.getElOptions(t))}))});Array.from(t.removedNodes).forEach(function(n){1===n.nodeType&&(n.hasAttribute("data-simplebar")?n.SimpleBar&&n.SimpleBar.unMount():Array.from(n.querySelectorAll("[data-simplebar]")).forEach(function(n){n.SimpleBar&&n.SimpleBar.unMount()}))})})}),this.globalObserver.observe(document,{childList:!0,subtree:!0}));"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements.bind(this)):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))}},{key:"getElOptions",value:function(t){return Object.keys(n.htmlAttributes).reduce(function(i,r){var u=n.htmlAttributes[r];return t.hasAttribute(u)&&(i[r]=JSON.parse(t.getAttribute(u)||!0)),i},{})}},{key:"removeObserver",value:function(){this.globalObserver.disconnect()}},{key:"initDOMLoadedElements",value:function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements);window.removeEventListener("load",this.initDOMLoadedElements);Array.from(document.querySelectorAll("[data-simplebar]")).forEach(function(t){t.SimpleBar||new n(t,n.getElOptions(t))})}},{key:"defaultOptions",get:function(){return{autoHide:!0,forceVisible:!1,classNames:{content:"simplebar-content",scrollContent:"simplebar-scroll-content",scrollbar:"simplebar-scrollbar",track:"simplebar-track"},scrollbarMinSize:25}}},{key:"htmlAttributes",get:function(){return{autoHide:"data-simplebar-auto-hide",forceVisible:"data-simplebar-force-visible",scrollbarMinSize:"data-simplebar-scrollbar-min-size"}}}]),n}();t.default=u;u.initHtmlApi()},function(n,t,i){i(29);i(46);n.exports=i(3).Array.from},function(n,t,i){"use strict";var r=i(30)(!0);i(31)(String,"String",function(n){this._t=String(n);this._i=0},function(){var n,t=this._t,i=this._i;return i>=t.length?{value:void 0,done:!0}:(n=r(t,i),this._i+=n.length,{value:n,done:!1})})},function(n,t,i){var r=i(8),u=i(9);n.exports=function(n){return function(t,i){var e,s,o=String(u(t)),f=r(i),h=o.length;return f<0||f>=h?n?"":void 0:(e=o.charCodeAt(f),e<55296||e>56319||f+1===h||(s=o.charCodeAt(f+1))<56320||s>57343?n?o.charAt(f):e:n?o.slice(f,f+2):s-56320+(e-55296<<10)+65536)}}},function(n,t,i){"use strict";var e=i(32),u=i(15),c=i(18),o=i(4),l=i(2),s=i(13),a=i(36),v=i(25),y=i(45),r=i(0)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};n.exports=function(n,t,i,p,w,b,k){a(i,t,p);var tt,rt,it,ut=function(n){if(!f&&n in d)return d[n];switch(n){case"keys":case"values":return function(){return new i(this,n)}}return function(){return new i(this,n)}},ot=t+" Iterator",ft="values"==w,et=!1,d=n.prototype,g=d[r]||d["@@iterator"]||w&&d[w],nt=g||ut(w),ht=w?ft?ut("entries"):nt:void 0,st="Array"==t?d.entries||g:g;if(st&&(it=y(st.call(new n)))!==Object.prototype&&it.next&&(v(it,ot,!0),e||l(it,r)||o(it,r,h)),ft&&g&&"values"!==g.name&&(et=!0,nt=function(){return g.call(this)}),e&&!k||!f&&!et&&d[r]||o(d,r,nt),s[t]=nt,s[ot]=h,w)if(tt={values:ft?nt:ut("values"),keys:b?nt:ut("keys"),entries:ht},k)for(rt in tt)rt in d||c(d,rt,tt[rt]);else u(u.P+u.F*(f||et),t,tt);return tt}},function(n){n.exports=!1},function(n,t,i){n.exports=!i(7)&&!i(16)(function(){return 7!=Object.defineProperty(i(17)("div"),"a",{get:function(){return 7}}).a})},function(n,t,i){var r=i(10);n.exports=function(n,t){if(!r(n))return n;var i,u;if(t&&"function"==typeof(i=n.toString)&&!r(u=i.call(n))||"function"==typeof(i=n.valueOf)&&!r(u=i.call(n))||!t&&"function"==typeof(i=n.toString)&&!r(u=i.call(n)))return u;throw TypeError("Can't convert object to primitive value");}},function(n){n.exports=function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}},function(n,t,i){"use strict";var u=i(37),f=i(11),e=i(25),r={};i(4)(r,i(0)("iterator"),function(){return this});n.exports=function(n,t,i){n.prototype=u(r,{next:f(1,i)});e(n,t+" Iterator")}},function(n,t,i){var e=i(6),o=i(38),f=i(24),s=i(14)("IE_PROTO"),u=function(){},r=function(){var n,t=i(17)("iframe"),u=f.length;for(t.style.display="none",i(44).appendChild(t),t.src="javascript:",n=t.contentWindow.document,n.open(),n.write("<script>document.F=Object<\/script>"),n.close(),r=n.F;u--;)delete r.prototype[f[u]];return r()};n.exports=Object.create||function(n,t){var i;return null!==n?(u.prototype=e(n),i=new u,u.prototype=null,i[s]=n):i=r(),void 0===t?i:o(i,t)}},function(n,t,i){var r=i(5),u=i(6),f=i(39);n.exports=i(7)?Object.defineProperties:function(n,t){u(n);for(var i,e=f(t),s=e.length,o=0;s>o;)r.f(n,i=e[o++],t[i]);return n}},function(n,t,i){var r=i(40),u=i(24);n.exports=Object.keys||function(n){return r(n,u)}},function(n,t,i){var r=i(2),u=i(20),f=i(42)(!1),e=i(14)("IE_PROTO");n.exports=function(n,t){var i,s=u(n),h=0,o=[];for(i in s)i!=e&&r(s,i)&&o.push(i);for(;t.length>h;)r(s,i=t[h++])&&(~f(o,i)||o.push(i));return o}},function(n,t,i){var r=i(21);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(n){return"String"==r(n)?n.split(""):Object(n)}},function(n,t,i){var r=i(20),u=i(22),f=i(43);n.exports=function(n){return function(t,i,e){var c,s=r(t),h=u(s.length),o=f(e,h);if(n&&i!=i){for(;h>o;)if((c=s[o++])!=c)return!0}else for(;h>o;o++)if((n||o in s)&&s[o]===i)return n||o||0;return!n&&-1}}},function(n,t,i){var r=i(8),u=Math.max,f=Math.min;n.exports=function(n,t){return n=r(n),n<0?u(n+t,0):f(n,t)}},function(n,t,i){var r=i(1).document;n.exports=r&&r.documentElement},function(n,t,i){var u=i(2),f=i(26),r=i(14)("IE_PROTO"),e=Object.prototype;n.exports=Object.getPrototypeOf||function(n){return n=f(n),u(n,r)?n[r]:"function"==typeof n.constructor&&n instanceof n.constructor?n.constructor.prototype:n instanceof Object?e:null}},function(n,t,i){"use strict";var f=i(19),r=i(15),e=i(26),o=i(47),s=i(48),h=i(22),u=i(49),c=i(50);r(r.S+r.F*!i(52)(function(n){Array.from(n)}),"Array",{from:function(n){var a,i,v,y,r=e(n),p="function"==typeof this?this:Array,k=arguments.length,l=k>1?arguments[1]:void 0,w=void 0!==l,t=0,b=c(r);if(w&&(l=f(l,k>2?arguments[2]:void 0,2)),void 0==b||p==Array&&s(b))for(a=h(r.length),i=new p(a);a>t;t++)u(i,t,w?l(r[t],t):r[t]);else for(y=b.call(r),i=new p;!(v=y.next()).done;t++)u(i,t,w?o(y,l,[v.value,t],!0):v.value);return i.length=t,i}})},function(n,t,i){var r=i(6);n.exports=function(n,t,i,u){try{return u?t(r(i)[0],i[1]):t(i)}catch(t){var f=n.return;throw void 0!==f&&r(f.call(n)),t;}}},function(n,t,i){var r=i(13),u=i(0)("iterator"),f=Array.prototype;n.exports=function(n){return void 0!==n&&(r.Array===n||f[u]===n)}},function(n,t,i){"use strict";var r=i(5),u=i(11);n.exports=function(n,t,i){t in n?r.f(n,t,u(0,i)):n[t]=i}},function(n,t,i){var r=i(51),u=i(0)("iterator"),f=i(13);n.exports=i(3).getIteratorMethod=function(n){if(void 0!=n)return n[u]||n["@@iterator"]||f[r(n)]}},function(n,t,i){var r=i(21),u=i(0)("toStringTag"),f="Arguments"==r(function(){return arguments}()),e=function(n,t){try{return n[t]}catch(n){}};n.exports=function(n){var t,i,o;return void 0===n?"Undefined":null===n?"Null":"string"==typeof(i=e(t=Object(n),u))?i:f?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},function(n,t,i){var r=i(0)("iterator"),f=!1,u;try{u=[7][r]();u.return=function(){f=!0};Array.from(u,function(){throw 2;})}catch(n){}n.exports=function(n,t){var u,i,e;if(!t&&!f)return!1;u=!1;try{i=[7];e=i[r]();e.next=function(){return{done:u=!0}};i[r]=function(){return e};n(i)}catch(n){}return u}},function(n,t){var i,r,u;!function(f,e){r=[];i=e;void 0!==(u="function"==typeof i?i.apply(t,r):i)&&(n.exports=u)}(0,function(){"use strict";function n(){if("undefined"==typeof document)return 0;var i,r=document.body,t=document.createElement("div"),n=t.style;return n.position="absolute",n.top=n.left="-9999px",n.width=n.height="100px",n.overflow="scroll",r.appendChild(t),i=t.offsetWidth-t.clientWidth,r.removeChild(t),i}return n})},function(n,t,i){(function(t){function e(n,t,f){function w(t){var i=s,r=c;return s=c=void 0,a=t,l=n.apply(r,i)}function rt(n){return a=n,e=setTimeout(y,t),it?w(n):l}function ut(n){var r=n-o,u=n-a,i=t-r;return v?tt(i,p-u):i}function d(n){var i=n-o,r=n-a;return void 0===o||i>=t||i<0||v&&r>=p}function y(){var n=r();if(d(n))return g(n);e=setTimeout(y,ut(n))}function g(n){return e=void 0,k&&s?w(n):(s=c=void 0,l)}function ft(){void 0!==e&&clearTimeout(e);a=0;s=o=c=e=void 0}function et(){return void 0===e?l:g(r())}function b(){var n=r(),i=d(n);if(s=arguments,c=this,o=n,i){if(void 0===e)return rt(o);if(v)return e=setTimeout(y,t),w(o)}return void 0===e&&(e=setTimeout(y,t)),l}var s,c,p,l,e,o,a=0,it=!1,v=!1,k=!0;if("function"!=typeof n)throw new TypeError(h);return t=u(t)||0,i(f)&&(it=!!f.leading,v="maxWait"in f,p=v?nt(u(f.maxWait)||0,t):p,k="trailing"in f?!!f.trailing:k),b.cancel=ft,b.flush=et,b}function i(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function o(n){return!!n&&"object"==typeof n}function s(n){return"symbol"==typeof n||o(n)&&g.call(n)==c}function u(n){var t,r;return"number"==typeof n?n:s(n)?f:(i(n)&&(t="function"==typeof n.valueOf?n.valueOf():n,n=i(t)?t+"":t),"string"!=typeof n)?0===n?n:+n:(n=n.replace(l,""),r=v.test(n),r||y.test(n)?p(n.slice(2),r?2:8):a.test(n)?f:+n)}var h="Expected a function",f=NaN,c="[object Symbol]",l=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,y=/^0o[0-7]+$/i,p=parseInt,w="object"==typeof t&&t&&t.Object===Object&&t,b="object"==typeof self&&self&&self.Object===Object&&self,k=w||b||Function("return this")(),d=Object.prototype,g=d.toString,nt=Math.max,tt=Math.min,r=function(){return k.Date.now()};n.exports=e}).call(t,i(55))},function(n){var t=function(){return this}();try{t=t||Function("return this")()||eval("this")}catch(n){"object"==typeof window&&(t=window)}n.exports=t},function(n,t){"use strict";function u(n){return parseFloat(n)||0}function c(n){return Array.prototype.slice.call(arguments,1).reduce(function(t,i){return t+u(n["border-"+i+"-width"])},0)}function w(n){for(var i,e,r={},t=0,f=["top","right","bottom","left"];t<f.length;t+=1)i=f[t],e=n["padding-"+i],r[i]=u(e);return r}function b(n){var t=n.getBBox();return f(0,0,t.width,t.height)}function k(n){var o=n.clientWidth,s=n.clientHeight,a,y;if(!o&&!s)return v;var t=getComputedStyle(n),i=w(t),h=i.left+i.right,l=i.top+i.bottom,r=u(t.width),e=u(t.height);return("border-box"===t.boxSizing&&(Math.round(r+h)!==o&&(r-=c(t,"left","right")+h),Math.round(e+l)!==s&&(e-=c(t,"top","bottom")+l)),d(n))||(a=Math.round(r+h)-o,y=Math.round(e+l)-s,1!==Math.abs(a)&&(r-=a),1!==Math.abs(y)&&(e-=y)),f(i.left,i.top,r,e)}function d(n){return n===document.documentElement}function g(n){return o?ot(n)?b(n):k(n):v}function nt(n){var t=n.x,i=n.y,r=n.width,u=n.height,e="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,f=Object.create(e.prototype);return a(f,{x:t,y:i,width:r,height:u,top:i,right:t+r,bottom:u+i,left:t}),f}function f(n,t,i,r){return{x:n,y:t,width:i,height:r}}var y,r,h,e,p;Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function n(n,t){var i=-1;return n.some(function(n,r){return n[0]===t&&(i=r,!0)}),i}return"undefined"!=typeof Map?Map:function(){function t(){this.__entries__=[]}var i={size:{}};return i.size.get=function(){return this.__entries__.length},t.prototype.get=function(t){var r=n(this.__entries__,t),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(t,i){var r=n(this.__entries__,t);~r?this.__entries__[r][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,r=n(i,t);~r&&i.splice(r,1)},t.prototype.has=function(t){return!!~n(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,t){var i,r,u;for(void 0===t&&(t=null),i=0,r=this.__entries__;i<r.length;i+=1)u=r[i],n.call(t,u[1],u[0])},Object.defineProperties(t.prototype,i),t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,tt=function(){return"function"==typeof requestAnimationFrame?requestAnimationFrame:function(n){return setTimeout(function(){return n(Date.now())},1e3/60)}}(),it=2,rt=function(n,t){function e(){i&&(i=!1,n());r&&u()}function o(){tt(e)}function u(){var n=Date.now();if(i){if(n-f<it)return;r=!0}else i=!0,r=!1,setTimeout(o,t);f=n}var i=!1,r=!1,f=0;return u},ut=["top","right","bottom","left","width","height","size","weight"],ft="undefined"!=typeof navigator&&/Trident\/.*rv:11/.test(navigator.userAgent),et="undefined"!=typeof MutationObserver&&!ft,i=function(){this.connected_=!1;this.mutationEventsAdded_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=rt(this.refresh.bind(this),20)};i.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n);this.connected_||this.connect_()};i.prototype.removeObserver=function(n){var t=this.observers_,i=t.indexOf(n);~i&&t.splice(i,1);!t.length&&this.connected_&&this.disconnect_()};i.prototype.refresh=function(){this.updateObservers_()&&this.refresh()};i.prototype.updateObservers_=function(){var n=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return n.forEach(function(n){return n.broadcastActive()}),n.length>0};i.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),et?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)};i.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)};i.prototype.onTransitionEnd_=function(n){var t=n.propertyName;ut.some(function(n){return!!~t.indexOf(n)})&&this.refresh()};i.getInstance=function(){return this.instance_||(this.instance_=new i),this.instance_};i.instance_=null;var a=function(n,t){for(var u,i=0,r=Object.keys(t);i<r.length;i+=1)u=r[i],Object.defineProperty(n,u,{value:t[u],enumerable:!1,writable:!1,configurable:!0});return n},v=f(0,0,0,0),ot=function(){return"undefined"!=typeof SVGGraphicsElement?function(n){return n instanceof SVGGraphicsElement}:function(n){return n instanceof SVGElement&&"function"==typeof n.getBBox}}(),s=function(n){this.broadcastWidth=0;this.broadcastHeight=0;this.contentRect_=f(0,0,0,0);this.target=n};s.prototype.isActive=function(){var n=g(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight};s.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n};y=function(n,t){var i=nt(t);a(this,{target:n,contentRect:i})};r=function(n,t,i){if("function"!=typeof n)throw new TypeError("The callback provided as parameter 1 is not a function.");this.activeObservations_=[];this.observations_=new l;this.callback_=n;this.controller_=t;this.callbackCtx_=i};r.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(n instanceof Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(n)||(t.set(n,new s(n)),this.controller_.addObserver(this),this.controller_.refresh())}};r.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(n instanceof Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(n)&&(t.delete(n),t.size||this.controller_.removeObserver(this))}};r.prototype.disconnect=function(){this.clearActive();this.observations_.clear();this.controller_.removeObserver(this)};r.prototype.gatherActive=function(){var n=this;this.clearActive();this.observations_.forEach(function(t){t.isActive()&&n.activeObservations_.push(t)})};r.prototype.broadcastActive=function(){if(this.hasActive()){var n=this.callbackCtx_,t=this.activeObservations_.map(function(n){return new y(n.target,n.broadcastRect())});this.callback_.call(n,t,n);this.clearActive()}};r.prototype.clearActive=function(){this.activeObservations_.splice(0)};r.prototype.hasActive=function(){return this.activeObservations_.length>0};h="undefined"!=typeof WeakMap?new WeakMap:new l;e=function(n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=i.getInstance(),u=new r(n,t,this);h.set(this,u)};["observe","unobserve","disconnect"].forEach(function(n){e.prototype[n]=function(){return(t=h.get(this))[n].apply(t,arguments);var t}});p=function(){return"undefined"!=typeof ResizeObserver?ResizeObserver:e}();t.default=p},function(){},function(n){"use strict";function i(n){if(null===n||void 0===n)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;n.exports=function(){var i,t,n,r;try{if(!Object.assign||(i=new String("abc"),i[5]="de","5"===Object.getOwnPropertyNames(i)[0]))return!1;for(t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;return"0123456789"!==Object.getOwnPropertyNames(t).map(function(n){return t[n]}).join("")?!1:(r={},"abcdefghijklmnopqrst".split("").forEach(function(n){r[n]=n}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join(""))}catch(i){return!1}}()?Object.assign:function(n){for(var f,o,c,e,s=i(n),h=1;h<arguments.length;h++){f=Object(arguments[h]);for(c in f)r.call(f,c)&&(s[c]=f[c]);if(t)for(o=t(f),e=0;e<o.length;e++)u.call(f,o[e])&&(s[o[e]]=f[o[e]])}return s}}]).default});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).marked=t()}(this,function(){"use strict";function nt(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function tt(n,t,i){return t&&nt(n.prototype,t),i&&nt(n,i),n}function it(n){return yt[n]}function rt(n){return n.replace(pt,function(n,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function ti(n,t){c[" "+n]||(c[" "+n]=dt.test(n)?n+"/":ut(n,"/",!0));var i=-1===(n=c[" "+n]).indexOf(":");return"//"===t.substring(0,2)?i?t:n.replace(gt,"$1")+t:"/"===t.charAt(0)?i?t:n.replace(ni,"$1")+t:n+t}function ut(n,t,i){var u=n.length,r,f;if(0===u)return"";for(r=0;r<u;)if(f=n.charAt(u-r-1),f!==t||i){if(f===t||!i)break;r++}else r++;return n.substr(0,u-r)}function i(n,t,r){if(null==n)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof n)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected");if(r||"function"==typeof t){var u=function(){function u(n){if(n)return t.highlight=o,r(n);var i;try{i=w.parse(f,t)}catch(i){n=i}return t.highlight=o,n?r(n):r(null,i)}r||(r=t,t=null);t=g({},i.defaults,t||{});ht(t);var f,e,o=t.highlight,s=0;try{f=v.lex(n,t)}catch(s){return{v:r(s)}}if(e=f.length,!o||o.length<3)return{v:u()};if(delete t.highlight,!e)return{v:u()};for(;s<f.length;s++)!function(n){"code"!==n.type?--e||u():o(n.text,n.lang,function(t,i){return t?u(t):null==i||i===n.text?--e||u():(n.text=i,n.escaped=!0,void(--e||u()))})}(f[s]);return{v:void 0}}();if("object"==typeof u)return u.v}try{return t=g({},i.defaults,t||{}),ht(t),w.parse(v.lex(n,t),t)}catch(u){if(u.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||i.defaults).silent)return"<p>An error occurred:<\/p><pre>"+bi(u.message+"",!0)+"<\/pre>";throw u;}}var b,f=(function(n){function t(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}}n.exports={defaults:t(),getDefaults:t,changeDefaults:function(t){n.exports.defaults=t}}}(b={exports:{}},b.exports),b.exports),ct=(f.defaults,f.getDefaults,f.changeDefaults,/[&<>"']/),lt=/[&<>"']/g,at=/[<>"']|&(?!#?\w+;)/,vt=/[<>"']|&(?!#?\w+;)/g,yt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},pt=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,wt=/(^|[^\[])\^/g,bt=/[^\w:]/g,kt=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,c={},dt=/^[^:]+:\/*[^/]*$/,gt=/^([^:]+:)[\s\S]*$/,ni=/^([^:]+:\/*[^/]*)[\s\S]*$/,l=function(n,t){if(t){if(ct.test(n))return n.replace(lt,it)}else if(at.test(n))return n.replace(vt,it);return n},ii=rt,ri=function(n,t,i){if(n){var r;try{r=decodeURIComponent(rt(i)).replace(bt,"").toLowerCase()}catch(n){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!kt.test(i)&&(i=ti(t,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(n){return null}return i},k=function(n){for(var i,t,r=1;r<arguments.length;r++)for(t in i=arguments[r])Object.prototype.hasOwnProperty.call(i,t)&&(n[t]=i[t]);return n},ui=function(n,t){var i=n.replace(/\|/g,function(n,t,i){for(var r=!1,u=t;0<=--u&&"\\"===i[u];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(/\\\|/g,"|");return i},fi=ut,ei=function(n,t){if(-1===n.indexOf(t[1]))return-1;for(var u=n.length,r=0,i=0;i<u;i++)if("\\"===n[i])i++;else if(n[i]===t[0])r++;else if(n[i]===t[1]&&--r<0)return i;return-1},oi=function(n){n&&n.sanitize&&!n.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},o={exec:function(){}},r=function(n,t){n=n.source||n;t=t||"";var i={replace:function(t,r){return r=(r=r.source||r).replace(wt,"$1"),n=n.replace(t,r),i},getRegex:function(){return new RegExp(n,t)}};return i},e=k,t={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:<\/\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|<\/?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|<\/(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:o,table:o,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/},n;t.def=r(t.def).replace("label",t._label).replace("title",t._title).getRegex();t.bullet=/(?:[*+-]|\d{1,9}\.)/;t.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/;t.item=r(t.item,"gm").replace(/bull/g,t.bullet).getRegex();t.list=r(t.list).replace(/bull/g,t.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+t.def.source+")").getRegex();t._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";t._comment=/<!--(?!-?>)[\s\S]*?-->/;t.html=r(t.html,"i").replace("comment",t._comment).replace("tag",t._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();t.paragraph=r(t._paragraph).replace("hr",t.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","<\/?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",t._tag).getRegex();t.blockquote=r(t.blockquote).replace("paragraph",t.paragraph).getRegex();t.normal=e({},t);t.gfm=e({},t.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/});t.pedantic=e({},t.normal,{html:r("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?<\/\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",t._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:o,paragraph:r(t.normal._paragraph).replace("hr",t.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",t.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});n={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:o,tag:"^comment|^<\/[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:o,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,_punctuation:"!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~"};n.em=r(n.em).replace(/punctuation/g,n._punctuation).getRegex();n._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;n._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;n._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;n.autolink=r(n.autolink).replace("scheme",n._scheme).replace("email",n._email).getRegex();n._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;n.tag=r(n.tag).replace("comment",t._comment).replace("attribute",n._attribute).getRegex();n._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;n._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/;n._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;n.link=r(n.link).replace("label",n._label).replace("href",n._href).replace("title",n._title).getRegex();n.reflink=r(n.reflink).replace("label",n._label).getRegex();n.normal=e({},n);n.pedantic=e({},n.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:r(/^!?\[(label)\]\((.*?)\)/).replace("label",n._label).getRegex(),reflink:r(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",n._label).getRegex()});n.gfm=e({},n.normal,{escape:r(n.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/});n.gfm.url=r(n.gfm.url,"i").replace("email",n.gfm._extended_email).getRegex();n.breaks=e({},n.gfm,{br:r(n.br).replace("{2,}","*").getRegex(),text:r(n.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var ft={block:t,inline:n},si=f.defaults,s=ft.block,hi=fi,a=ui,ci=l,v=function(){function n(n){this.tokens=[];this.tokens.links=Object.create(null);this.options=n||si;this.rules=s.normal;this.options.pedantic?this.rules=s.pedantic:this.options.gfm&&(this.rules=s.gfm)}n.lex=function(t,i){return new n(i).lex(t)};var t=n.prototype;return t.lex=function(n){return n=n.replace(/\r\n|\r/g,"\n").replace(/\t/g,"    "),this.token(n,!0)},t.token=function(n,t){var o,e,i,h,c,r,l,v,p,w,u,b,f,d,g,k,y;for(n=n.replace(/^ +$/gm,"");n;)if((i=this.rules.newline.exec(n))&&(n=n.substring(i[0].length),1<i[0].length&&this.tokens.push({type:"space"})),i=this.rules.code.exec(n))y=this.tokens[this.tokens.length-1],n=n.substring(i[0].length),y&&"paragraph"===y.type?y.text+="\n"+i[0].trimRight():(i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?i:hi(i,"\n")}));else if(i=this.rules.fences.exec(n))n=n.substring(i[0].length),this.tokens.push({type:"code",lang:i[2]?i[2].trim():i[2],text:i[3]||""});else if(i=this.rules.heading.exec(n))n=n.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if((i=this.rules.nptable.exec(n))&&(r={type:"table",header:a(i[1].replace(/^ *| *\| *$/g,"")),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3]?i[3].replace(/\n$/,"").split("\n"):[]}).header.length===r.align.length){for(n=n.substring(i[0].length),u=0;u<r.align.length;u++)r.align[u]=/^ *-+: *$/.test(r.align[u])?"right":/^ *:-+: *$/.test(r.align[u])?"center":/^ *:-+ *$/.test(r.align[u])?"left":null;for(u=0;u<r.cells.length;u++)r.cells[u]=a(r.cells[u],r.header.length);this.tokens.push(r)}else if(i=this.rules.hr.exec(n))n=n.substring(i[0].length),this.tokens.push({type:"hr"});else if(i=this.rules.blockquote.exec(n))n=n.substring(i[0].length),this.tokens.push({type:"blockquote_start"}),i=i[0].replace(/^ *> ?/gm,""),this.token(i,t),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(n)){for(n=n.substring(i[0].length),l={type:"list_start",ordered:d=1<(h=i[2]).length,start:d?+h:"",loose:!1},this.tokens.push(l),o=!(v=[]),f=(i=i[0].match(this.rules.item)).length,u=0;u<f;u++)w=(r=i[u]).length,~(r=r.replace(/^ *([*+-]|\d+\.) */,"")).indexOf("\n ")&&(w-=r.length,r=this.options.pedantic?r.replace(/^ {1,4}/gm,""):r.replace(new RegExp("^ {1,"+w+"}","gm"),"")),u!==f-1&&(c=s.bullet.exec(i[u+1])[0],(1<h.length?1===c.length:1<c.length||this.options.smartLists&&c!==h)&&(n=i.slice(u+1).join("\n")+n,u=f-1)),e=o||/\n\n(?!\s*$)/.test(r),u!==f-1&&(o="\n"===r.charAt(r.length-1),e=e||o),e&&(l.loose=!0),k=void 0,(g=/^\[[ xX]\] /.test(r))&&(k=" "!==r[1],r=r.replace(/^\[[ xX]\] +/,"")),p={type:"list_item_start",task:g,checked:k,loose:e},v.push(p),this.tokens.push(p),this.token(r,!1),this.tokens.push({type:"list_item_end"});if(l.loose)for(f=v.length,u=0;u<f;u++)v[u].loose=!0;this.tokens.push({type:"list_end"})}else if(i=this.rules.html.exec(n))n=n.substring(i[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===i[1]||"script"===i[1]||"style"===i[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):ci(i[0]):i[0]});else if(t&&(i=this.rules.def.exec(n)))n=n.substring(i[0].length),i[3]&&(i[3]=i[3].substring(1,i[3].length-1)),b=i[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[b]||(this.tokens.links[b]={href:i[2],title:i[3]});else if((i=this.rules.table.exec(n))&&(r={type:"table",header:a(i[1].replace(/^ *| *\| *$/g,"")),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3]?i[3].replace(/\n$/,"").split("\n"):[]}).header.length===r.align.length){for(n=n.substring(i[0].length),u=0;u<r.align.length;u++)r.align[u]=/^ *-+: *$/.test(r.align[u])?"right":/^ *:-+: *$/.test(r.align[u])?"center":/^ *:-+ *$/.test(r.align[u])?"left":null;for(u=0;u<r.cells.length;u++)r.cells[u]=a(r.cells[u].replace(/^ *\| *| *\| *$/g,""),r.header.length);this.tokens.push(r)}else if(i=this.rules.lheading.exec(n))n=n.substring(i[0].length),this.tokens.push({type:"heading",depth:"="===i[2].charAt(0)?1:2,text:i[1]});else if(t&&(i=this.rules.paragraph.exec(n)))n=n.substring(i[0].length),this.tokens.push({type:"paragraph",text:"\n"===i[1].charAt(i[1].length-1)?i[1].slice(0,-1):i[1]});else if(i=this.rules.text.exec(n))n=n.substring(i[0].length),this.tokens.push({type:"text",text:i[0]});else if(n)throw new Error("Infinite loop on byte: "+n.charCodeAt(0));return this.tokens},tt(n,null,[{key:"rules",get:function(){return s}}]),n}(),li=f.defaults,et=ri,y=l,d=function(){function t(n){this.options=n||li}var n=t.prototype;return n.code=function(n,t,i){var u=(t||"").match(/\S*/)[0],r;return this.options.highlight&&(r=this.options.highlight(n,u),null!=r&&r!==n&&(i=!0,n=r)),u?'<pre><code class="'+this.options.langPrefix+y(u,!0)+'">'+(i?n:y(n,!0))+"<\/code><\/pre>\n":"<pre><code>"+(i?n:y(n,!0))+"<\/code><\/pre>"},n.blockquote=function(n){return"<blockquote>\n"+n+"<\/blockquote>\n"},n.html=function(n){return n},n.heading=function(n,t,i,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(i)+'">'+n+"<\/h"+t+">\n":"<h"+t+">"+n+"<\/h"+t+">\n"},n.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},n.list=function(n,t,i){var r=t?"ol":"ul";return"<"+r+(t&&1!==i?' start="'+i+'"':"")+">\n"+n+"<\/"+r+">\n"},n.listitem=function(n){return"<li>"+n+"<\/li>\n"},n.checkbox=function(n){return"<input "+(n?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},n.paragraph=function(n){return"<p>"+n+"<\/p>\n"},n.table=function(n,t){return"<table>\n<thead>\n"+n+"<\/thead>\n"+(t=t&&"<tbody>"+t+"<\/tbody>")+"<\/table>\n"},n.tablerow=function(n){return"<tr>\n"+n+"<\/tr>\n"},n.tablecell=function(n,t){var i=t.header?"th":"td";return(t.align?"<"+i+' align="'+t.align+'">':"<"+i+">")+n+"<\/"+i+">\n"},n.strong=function(n){return"<strong>"+n+"<\/strong>"},n.em=function(n){return"<em>"+n+"<\/em>"},n.codespan=function(n){return"<code>"+n+"<\/code>"},n.br=function(){return this.options.xhtml?"<br/>":"<br>"},n.del=function(n){return"<del>"+n+"<\/del>"},n.link=function(n,t,i){if(null===(n=et(this.options.sanitize,this.options.baseUrl,n)))return i;var r='<a href="'+y(n)+'"';return t&&(r+=' title="'+t+'"'),r+(">"+i+"<\/a>")},n.image=function(n,t,i){if(null===(n=et(this.options.sanitize,this.options.baseUrl,n)))return i;var r='<img src="'+n+'" alt="'+i+'"';return t&&(r+=' title="'+t+'"'),r+(this.options.xhtml?"/>":">")},n.text=function(n){return n},t}(),ot=function(){function n(){this.seen={}}return n.prototype.slug=function(n){var t=n.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-"),i;if(this.seen.hasOwnProperty(t))for(i=t;this.seen[i]++,t=i+"-"+this.seen[i],this.seen.hasOwnProperty(t););return this.seen[t]=0,t},n}(),ai=f.defaults,h=ft.inline,vi=ei,u=l,p=function(){function n(n,t){if(this.options=t||ai,this.links=n,this.rules=h.normal,this.options.renderer=this.options.renderer||new d,this.renderer=this.options.renderer,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=h.pedantic:this.options.gfm&&(this.rules=this.options.breaks?h.breaks:h.gfm)}n.output=function(t,i,r){return new n(i,r).output(t)};var t=n.prototype;return t.output=function(t){for(var e,o,f,h,i,c,s,l,r="";t;)if(i=this.rules.escape.exec(t))t=t.substring(i[0].length),r+=u(i[1]);else if(i=this.rules.tag.exec(t))!this.inLink&&/^<a /i.test(i[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(i[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(this.inRawBlock=!1),t=t.substring(i[0].length),r+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):u(i[0]):i[0];else if(i=this.rules.link.exec(t))s=vi(i[2],"()"),-1<s&&(l=(0===i[0].indexOf("!")?5:4)+i[1].length+s,i[2]=i[2].substring(0,s),i[0]=i[0].substring(0,l).trim(),i[3]=""),t=t.substring(i[0].length),this.inLink=!0,f=i[2],h=this.options.pedantic?(e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(f))?(f=e[1],e[3]):"":i[3]?i[3].slice(1,-1):"",f=f.trim().replace(/^<([\s\S]*)>$/,"$1"),r+=this.outputLink(i,{href:n.escapes(f),title:n.escapes(h)}),this.inLink=!1;else if((i=this.rules.reflink.exec(t))||(i=this.rules.nolink.exec(t))){if(t=t.substring(i[0].length),e=(i[2]||i[1]).replace(/\s+/g," "),!(e=this.links[e.toLowerCase()])||!e.href){r+=i[0].charAt(0);t=i[0].substring(1)+t;continue}this.inLink=!0;r+=this.outputLink(i,e);this.inLink=!1}else if(i=this.rules.strong.exec(t))t=t.substring(i[0].length),r+=this.renderer.strong(this.output(i[4]||i[3]||i[2]||i[1]));else if(i=this.rules.em.exec(t))t=t.substring(i[0].length),r+=this.renderer.em(this.output(i[6]||i[5]||i[4]||i[3]||i[2]||i[1]));else if(i=this.rules.code.exec(t))t=t.substring(i[0].length),r+=this.renderer.codespan(u(i[2].trim(),!0));else if(i=this.rules.br.exec(t))t=t.substring(i[0].length),r+=this.renderer.br();else if(i=this.rules.del.exec(t))t=t.substring(i[0].length),r+=this.renderer.del(this.output(i[1]));else if(i=this.rules.autolink.exec(t))t=t.substring(i[0].length),f="@"===i[2]?"mailto:"+(o=u(this.mangle(i[1]))):o=u(i[1]),r+=this.renderer.link(f,null,o);else if(!this.inLink&&(i=this.rules.url.exec(t))){if("@"===i[2])f="mailto:"+(o=u(i[0]));else{for(;c=i[0],i[0]=this.rules._backpedal.exec(i[0])[0],c!==i[0];);o=u(i[0]);f="www."===i[1]?"http://"+o:o}t=t.substring(i[0].length);r+=this.renderer.link(f,null,o)}else if(i=this.rules.text.exec(t))t=t.substring(i[0].length),r+=this.inRawBlock?this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):u(i[0]):i[0]):this.renderer.text(u(this.smartypants(i[0])));else if(t)throw new Error("Infinite loop on byte: "+t.charCodeAt(0));return r},n.escapes=function(t){return t?t.replace(n.rules._escapes,"$1"):t},t.outputLink=function(n,t){var i=t.href,r=t.title?u(t.title):null;return"!"!==n[0].charAt(0)?this.renderer.link(i,r,this.output(n[1])):this.renderer.image(i,r,u(n[1]))},t.smartypants=function(n){return this.options.smartypants?n.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):n},t.mangle=function(n){if(!this.options.mangle)return n;for(var t,u=n.length,r="",i=0;i<u;i++)t=n.charCodeAt(i),.5<Math.random()&&(t="x"+t.toString(16)),r+="&#"+t+";";return r},tt(n,null,[{key:"rules",get:function(){return h}}]),n}(),st=function(){function t(){}var n=t.prototype;return n.strong=function(n){return n},n.em=function(n){return n},n.codespan=function(n){return n},n.del=function(n){return n},n.text=function(n){return n},n.link=function(n,t,i){return""+i},n.image=function(n,t,i){return""+i},n.br=function(){return""},t}(),yi=f.defaults,pi=k,wi=ii,w=function(){function t(n){this.tokens=[];this.token=null;this.options=n||yi;this.options.renderer=this.options.renderer||new d;this.renderer=this.options.renderer;this.renderer.options=this.options;this.slugger=new ot}t.parse=function(n,i){return new t(i).parse(n)};var n=t.prototype;return n.parse=function(n){this.inline=new p(n.links,this.options);this.inlineText=new p(n.links,pi({},this.options,{renderer:new st}));this.tokens=n.reverse();for(var t="";this.next();)t+=this.tok();return t},n.next=function(){return this.token=this.tokens.pop(),this.token},n.peek=function(){return this.tokens[this.tokens.length-1]||0},n.parseText=function(){for(var n=this.token.text;"text"===this.peek().type;)n+="\n"+this.next().text;return this.inline.output(n)},n.tok=function(){var n="",t,f,i,r,e,h,c,o,s;switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,wi(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":for(e="",i="",t=0;t<this.token.header.length;t++)i+=this.renderer.tablecell(this.inline.output(this.token.header[t]),{header:!0,align:this.token.align[t]});for(e+=this.renderer.tablerow(i),t=0;t<this.token.cells.length;t++){for(f=this.token.cells[t],i="",r=0;r<f.length;r++)i+=this.renderer.tablecell(this.inline.output(f[r]),{header:!1,align:this.token.align[r]});n+=this.renderer.tablerow(i)}return this.renderer.table(e,n);case"blockquote_start":for(n="";"blockquote_end"!==this.next().type;)n+=this.tok();return this.renderer.blockquote(n);case"list_start":for(n="",h=this.token.ordered,c=this.token.start;"list_end"!==this.next().type;)n+=this.tok();return this.renderer.list(n,h,c);case"list_item_start":n="";var l=this.token.loose,u=this.token.checked,a=this.token.task;for(this.token.task&&(l?"text"===this.peek().type?(o=this.peek(),o.text=this.renderer.checkbox(u)+" "+o.text):this.tokens.push({type:"text",text:this.renderer.checkbox(u)}):n+=this.renderer.checkbox(u));"list_item_end"!==this.next().type;)n+=l||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(n,a,u);case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:if(s='Token with "'+this.token.type+'" type was not found.',!this.options.silent)throw new Error(s);console.log(s)}},t}(),g=k,ht=oi,bi=l,ki=f.getDefaults,di=f.changeDefaults,gi=f.defaults;return i.options=i.setOptions=function(n){return g(i.defaults,n),di(i.defaults),i},i.getDefaults=ki,i.defaults=gi,i.Parser=w,i.parser=w.parse,i.Renderer=d,i.TextRenderer=st,i.Lexer=v,i.lexer=v.lex,i.InlineLexer=p,i.inlineLexer=p.output,i.Slugger=ot,i.parse=i});ChatbotModule=new function(){function r(){t!==null&&clearInterval(t);t=setInterval(a,ChatbotSettings.GeenReactieTimeOut*1e3)}function s(){return $(".modalContainer.embeddedServiceSidebar").length>0}function a(){if(!s()){t!==null&&clearInterval(t);t=setInterval(v,ChatbotSettings.GeenReactieTimeOutFeedback*1e3);var i={Responses:[{Type:"aanwezig",Text:ChatbotSettings.Texts.ReactieTimeOutVraagAanwezig}]};n(i,!1)}}function v(){var i,r,u;s()||(t!==null&&clearInterval(t),i=e(),i!==undefined&&i.FeedbackReactieAantal<ChatbotSettings.FeedbackGeenReactieMaxAantalKeer&&(r=$(".chatbot-content-list *").filter(function(){return $(this).data("interaction")!==undefined}),r!==undefined&&r.length>1&&(i.FeedbackReactieAantal++,c(i),u={RequestFeedback:!0,FeedbackTypeCustom:!0,InteractionId:$(r[r.length-1]).data("interaction")},n(u,!1))))}function y(){Cookies.remove(ChatbotSettings.CookieName,{secure:!0,domain:h()})}function h(){var n=document.domain.split(".");return n.length===1?n[0]:"."+n[n.length-2]+"."+n[n.length-1]}function e(){return Cookies.getJSON(ChatbotSettings.CookieName)}function c(n){Cookies.set(ChatbotSettings.CookieName,n,{secure:!0,domain:h()})}function p(n){var t={SessionId:n,AgentName:ChatbotVariables.AgentName,Started:(new Date).toLocaleString("nl-NL",{hour:"numeric",minute:"numeric",hour12:!0}),Domain:h(),FeedbackReactieAantal:0};c(t)}function l(){var n=e();$(".chatbot-header h3").text(ChatbotSettings.Texts.HeaderTitel+" "+n.AgentName);$(".chatbot-header span").text(ChatbotSettings.Texts.HeaderSubTitel+" "+n.Started)}function w(){return $(".chatbot-messages-panel .simplebar-scroll-content")}function o(){return $(".chatbot-messages-panel .simplebar-content div.chatbot-content-list")}function f(){var n=w();$(n).animate({scrollTop:$(n)[0].scrollHeight},1e3)}function n(n,t){var i=o(),r;t===!0&&i.html("");n!==undefined&&n.RequestFeedback===!0&&(n.Responses===undefined&&(n.Responses=[]),n.FeedbackTypeCustom===!0?(n.Responses.push({Text:ChatbotSettings.Texts.ReactieTimeOutVraagHelpen,Type:"answer"}),n.Responses.push({Text:ChatbotSettings.Texts.ReactieTimeOutVraagHelpenKnop_Ja,Type:"feedbackbutton",InteractionId:n.InteractionId,FeedbackType:"J_C"}),n.Responses.push({Text:ChatbotSettings.Texts.ReactieTimeOutVraagHelpenKnop_Nee,Type:"feedbackbutton",InteractionId:n.InteractionId,FeedbackType:"N_C"})):(n.Responses.push({Text:ChatbotSettings.Texts.FeedbackVraag,Type:"answer"}),n.Responses.push({Text:ChatbotSettings.Texts.FeedbackKeuzeKnop_Ja,Type:"feedbackbutton",InteractionId:n.InteractionId,FeedbackType:"J"}),n.Responses.push({Text:ChatbotSettings.Texts.FeedbackKeuzeKnop_Nee,Type:"feedbackbutton",InteractionId:n.InteractionId,FeedbackType:"N"})));n!==undefined&&n.Responses!==undefined&&(n.Errormessage!=null?(r="<div class='chatbot-message-row'><div class='chatbot-warning'><div class='warning-icon'><\/div>"+n.Errormessage+"<\/div><\/div>",i.append(r)):$.each(n.Responses,function(t,r){if(r.Text.length===0)return!0;var u="<div class='chatbot-message-row'>";r.Type==="answer"?u+=$(i).find(".chatbot-message").length===0?"<div class='chatbot-message' data-interaction='"+n.InteractionId+"'><div class='chatbot-icon'><\/div>"+marked(r.Text)+"<\/div>":"<div class='chatbot-message' data-interaction='"+n.InteractionId+"'>"+marked(r.Text)+"<\/div>":r.Type==="chatboterror"?u+="<div class='chatbot-error'><div class='error-icon'><\/div>"+r.Text+"<\/div>":r.Type==="relatedFAQs"?u+="<div class='chatbot-faq' data-faqID='"+r.Id+"'>"+r.Text+"<\/div>":r.Type==="dialogoption"?u+="<div class='chatbot-dialog' data-dialogPath='"+r.DialogPath+"'>"+r.Text+"<\/div>":r.Type==="feedbackbutton"?u+="<div class='chatbot-dialog' data-interaction='"+r.InteractionId+"' data-feedbacktype='"+r.FeedbackType+"'>"+r.Text+"<\/div>":r.Type==="usermessage"?u+="<div class='user-message'>"+r.Text+"<\/div>":r.Type==="feedback"?(u+="<div class='chatbot-message chatbot-feedback' data-custom='"+n.IsCustom+"' data-interaction='"+r.InteractionId+"'>"+r.Text,u+="<textarea class='feedback-tekst' autocomplete='off' placeholder='"+ChatbotSettings.Texts.FeedbackPlaceholderText+"' maxlength='"+ChatbotSettings.FeedbackMaxLength+"'><\/textarea>",u+="<div class='text-counter-label'>"+ChatbotSettings.Texts.ResterendeTekens+" "+ChatbotSettings.FeedbackMaxLength+"<\/div>",u+="<div class='chatbot-verstuur-error'>"+ChatbotSettings.Texts.FeedbackVerstuurError+"<\/div>",u+="<div class='chatbot-verstuur'>"+ChatbotSettings.Texts.FeedbackVerstuurKnop+"<\/div>",u+="<a class='chatbot-overslaan'>"+ChatbotSettings.Texts.FeedbackOverslaanKnop+"<\/a><\/div>"):r.Type==="aanwezig"&&$(".chatbot-content-list .chatbot-message-row").last().find(".chatbot-hand-wave").length===0&&(u+="<div class='chatbot-message chatbot-reactie'><img class='chatbot-hand-wave' src='/Resources/Shared/images/waving-hand.svg'>"+marked(r.Text)+"<\/div>");u+="<\/div>";i.append(u)}));n!==undefined&&n.ShowLiveAgent===!0&&ChatbotSettings.ToonLiveAgent===!0&&s()===!1?b("IsBinnenOpeningsTijd",ChatbotSettings.BedrijfAfk,function(t){var r,u,e;t==="true"&&($(".chatbot-message-row > .embeddedServiceHelpButton:not(:last)").remove(),r=$(".embeddedServiceHelpButton"),r&&(r.removeAttr("style"),u=r.find("button.uiButton"),u.removeAttr("href"),u.attr("type","button"),n.ShowLiveAgentTekst&&(e=ChatbotSettings.Texts.LiveAgentTekst.trim(),e.length>0&&i.append("<div class='chatbot-message-row'><div class='chatbot-message'>"+e+"<\/div><\/div>")),i.append($("<div class='chatbot-message-row'><\/div>").append(r.first().show())),i=o(),sessionStorage.setItem("ChatbotHistory",i.html()),f()))}):(i=o(),sessionStorage.setItem("ChatbotHistory",i.html()),f())}function i(t){var i={Responses:[{Type:"chatboterror",Text:t}]};n(i,!1)}function b(n,t,i){$.ajax({url:ChatbotSettings.ServiceUrl+"/"+n+"/"+t,type:"GET",cache:!1,success:function(n){i(n)},error:function(){i(!1)}})}function u(n,t,i){var r,u,f;try{r=e();u=null;r!==undefined&&(u=r.SessionId);f={request:{Eventname:t.Eventname!==undefined?t.Eventname:"",Input:t.Input!==undefined?t.Input:"",FaqId:t.FaqId!==undefined?t.FaqId:"",DialogPath:t.DialogPath!==undefined?t.DialogPath:"",Interaction:t.InteractionId!==undefined?t.InteractionId:"",Score:t.Score!==undefined?t.Score:"",Label:t.Label!==undefined?t.Label:"",Feedback:t.Feedback!==undefined?t.Feedback:"",SessionId:u,MerkCode:ChatbotSettings.BedrijfAfk,Link:t.Link,LinkId:t.LinkId}};$.ajax({type:"POST",cache:!1,url:ChatbotSettings.ServiceUrl+"/"+n,contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(f),success:function(t,r,u){var f=$.parseJSON(t);if(u.status===200)try{n!=="ChatbotEvent"&&f.OrignalInput!==undefined&&f.OrignalInput!==null&&f.OrignalInput.length>0&&f.Responses.unshift({Type:"usermessage",Text:f.OrignalInput});i(f)}catch(e){i(!1)}else i(!1)},error:function(){i(!1)}})}catch(o){i(!1)}}var t=null;return{initChatbot:function(){var r=e(),t;r===undefined&&ChatbotSettings.StartEvent!==undefined?u("ChatbotEvent",{Eventname:ChatbotSettings.StartEvent},function(t){t!==!1?(p(t.SessionId),l(),n(t,!0)):i(ChatbotSettings.Texts.FoutMeldingChatbot)}):(l(),t=o(),$(t).html(sessionStorage.getItem("ChatbotHistory")),f())},resetChatbot:function(){y()},sendQuestion:function(t){var f,e;if(r(),!($.active>0)){if(f=$(t).val(),f==="GIMME-THE-ERROR"){i(ChatbotSettings.Texts.FoutMeldingChatbot);$(t).val("");return}if(f==="GIMME-THE-HUMANS"){e={ShowLiveAgent:!0,Responses:[]};n(e,!1);$(t).val("");return}f.length>0&&u("ChatbotAsk",{Input:f},function(r){r!==!1?(n(r,!1),$(t).val("")):i(ChatbotSettings.Texts.FoutMeldingChatbot)})}},sendFrequentAsked:function(t){if(r(),!($.active>0)){var f=$(t).data("faqid");Number.isInteger(f)?u("ChatbotFaq",{FaqId:f},function(t){t!==!1?n(t,!1):i(ChatbotSettings.Texts.FoutMeldingChatbot)}):i(ChatbotSettings.Texts.FoutMeldingChatbot)}},sendDialogResult:function(t){if(r(),!($.active>0)){var f=$(t).data("dialogpath"),e=$(t).text();f!==undefined&&f.length>0?u("ChatbotAsk",{Input:e,DialogPath:f},function(t){t!==!1?n(t,!1):i(ChatbotSettings.Texts.FoutMeldingChatbot)}):i(ChatbotSettings.Texts.FoutMeldingChatbot)}},postLinkClicked:function(n){r();var t=$(n).attr("href"),f=$(n).attr("target"),i=$(n).data("linkid"),e=$(n).closest(".chatbot-message").data("interaction");t!==undefined&&i!==undefined&&u("ChatbotLinkClick",{InteractionId:e,Link:t,LinkId:i},function(){f==="_blank"?window.open(t,"_blank","noopener"):window.location=href})},postFeedbackKeuze:function(t,i){var o,s;r();var h=$(t).parent().data("interaction"),c=$(t).parent().data("custom")===!0,e=i===!0?$(t).siblings("textarea").val():"";i===!1||e.length>ChatbotSettings.FeedbackMinLength&&e.length<ChatbotSettings.FeedbackMaxLength?(o=ChatbotSettings.FeedbackScore_Nee,s=i===!0?ChatbotSettings.Texts.FeedbackVerstuurBedankt:ChatbotSettings.Texts.FeedbackVerstuurOverslaan,c&&(o=i?ChatbotSettings.FeedbackGeenReactieScore_Verstuur:ChatbotSettings.FeedbackGeenReactieScore_Overslaan,s=i?ChatbotSettings.Texts.FeedbackGeenReactieVerstuurTekst:ChatbotSettings.Texts.FeedbackGeenReactieOverslaanTekst),u("ChatbotFeedback",{Score:o,InteractionId:h,Label:ChatbotSettings.Texts.FeedbackKeuzeKnop_Nee,Feedback:e},function(i){var r={Responses:[{Type:"answer",Text:s}]};r.ShowLiveAgent=ChatbotSettings.ToonLiveAgent;r.ShowLiveAgentTekst=!0;i.Errormessage!=null?($(t).siblings("textarea").addClass("input-error"),$(".chatbot-verstuur-error").text(i.Errormessage),$(t).siblings(".chatbot-verstuur-error").fadeIn(500,function(){$(".chatbot-feedback textarea").focusin(function(){$(this).siblings(".chatbot-verstuur-error").fadeOut(500,function(){$(t).siblings("textarea").removeClass("input-error");ChatbotModule.scrollEinde()})});f()})):$(t).closest(".chatbot-feedback").slideUp(500,function(){$(t).closest(".chatbot-message-row").remove();n(r,!1)})})):($(t).siblings("textarea").addClass("input-error"),$(".chatbot-verstuur-error").html(ChatbotSettings.Texts.FeedbackVerstuurError),$(t).siblings(".chatbot-verstuur-error").fadeIn(500,function(){$(".chatbot-feedback textarea").focusin(function(){$(this).siblings(".chatbot-verstuur-error").fadeOut(500,function(){$(t).siblings("textarea").removeClass("input-error");ChatbotModule.scrollEinde()})});f()}))},scrollEinde:function(){f()},handleFeedbackKeuze:function(t){var e,o,f;r();e=$(t).data("feedbacktype");o=$(t).data("interaction");e==="J"?(f={Responses:[{Type:"answer",Text:ChatbotSettings.Texts.FeedbackAntwoordKeuze_Ja}]},u("ChatbotFeedback",{Score:ChatbotSettings.FeedbackScore_Ja,InteractionId:o,Label:ChatbotSettings.Texts.FeedbackKeuzeKnop_Ja},function(t){t!==!1?n(f,!1):i(ChatbotSettings.Texts.FoutMeldingChatbot)})):e==="N"?(f={Responses:[{Type:"feedback",Text:ChatbotSettings.Texts.FeedbackVraagKeuze_Nee,InteractionId:o}]},n(f,!1)):e==="J_C"?(f={Responses:[{Type:"answer",Text:ChatbotSettings.Texts.ReactieTimeOutVraagHelpenJaTekst}]},n(f,!1)):e==="N_C"&&(f={IsCustom:!0,Responses:[{Type:"feedback",Text:ChatbotSettings.Texts.FeedbackGeenReactieVraagTekst,InteractionId:o}]},n(f,!1))},updateTextCounter:function(n){r();var i=$(n).val().length,u=$(n).attr("maxlength"),t=$(n).closest(".chatbot-feedback").find(".text-counter-label");$(t).fadeIn(500);$(t).text(ChatbotSettings.Texts.ResterendeTekens+" "+Math.max(u-i,0))}}};String.prototype.formatString=function(){var n=this,t;for(t in arguments)n=n.replace(new RegExp("\\{"+t+"\\}","g"),arguments[t]);return n};SalesforceChatModule=new function(){var u=!0,e=null,o=new Date,r=null,f=null,n=null,i=null,t=null;return isActiveTab=function(){var n=sessionStorage.getItem(ChatGlobalSettings.usersession.chatActive);return n===null?null:n==="true"},setActiveTab=function(n){sessionStorage.setItem(ChatGlobalSettings.usersession.chatActive,n)},setFocusUserChatInput=function(){setTimeout(function(){$("#txt-userchat-text").scrollLeft(1e4);$("#txt-userchat-text").focus();setCaretAtEnd($("#txt-userchat-text"))},100)},toggleChatPanel=function(){$("#pnl-chatcontrol").toggleClass("chatpanel-open");isActiveTab()!==null&&(SalesforceSessionModule.setVariable(r.unreadcount,null),SalesforceSessionModule.setVariable(r.windowopen,chatPanelVisible()));$("#div-chatbutton-counter-pulse").fadeOut(500);$("#div-chatbutton-counter-back").fadeOut(500);var t=sessionStorage.getItem(ChatGlobalSettings.usersession.chatActive),i=SalesforceSessionModule.getVariable(r.chatmode);chatPanelVisible()&&t==="true"&&i===n.chatting&&setFocusUserChatInput()},chatPanelVisible=function(){return $("#pnl-chatcontrol").hasClass("chatpanel-open")},setChatWindow=function(i){var s,o;i!==n.quit&&i!==n.duplicate&&SalesforceSessionModule.setVariable(r.chatmode,i);var u=null,f=null,e=null;switch(i){case n.chatended_user:u=t.ended_user_title;f=t.ended_user_text;e={download:!0,quit:!0};break;case n.chatended_agent:u=t.ended_agent_title;f=t.ended_agent_text;e={download:!0,quit:!0};break;case n.chatended_disconnect:u=t.error_agentdisconnect_title;f=t.error_agentdisconnect_text;e={download:!0,quit:!0,retry:!0};break;case n.error_generic:u=t.error_generic_title;f=t.error_generic_text;e={download:!0,quit:!0,retry:!0};break;case n.error_initfail:u=t.error_chatrequest_title;f=t.error_chatrequest_text;e={quit:!0,retry:!0};break;case n.error_init_waitmore:u=t.error_init_waitmore_title;f=t.error_init_waitmore_text;e={quit:!0};break;case n.error_sendmessage:u=t.error_sendmessage_title;f=t.error_sendmessage_text;e={download:!0,quit:!0,retry:!0};break;case n.error_retrievemessage:u=t.error_retrievemessage_title;f=t.error_retrievemessage_text;e={download:!0,quit:!0,retry:!0};break;case n.error_upload:u=t.error_upload_title;f=t.error_upload_text;e={download:!0,quit:!0,retry:!0};break;case n.error_notavailable:u=t.error_notavailable_title;f=t.error_notavailable_text;e={quit:!0}}u!==null&&f!==null&&setEndedText(u,f);e!==null&&setEndedButtons(e);s=$("#pnl-chatcontrol #pnl-chatpanel .active");s.length>0&&$(s).removeClass("active");o=i;o.indexOf("error")===0?o="chatended":o.indexOf("_")>0&&(o=o.substr(0,o.indexOf("_")));i===n.connecting&&(isMobileTouch()===!0&&isIPhoneOrIPad()===!0?($("#pnl-sfchat-connecting #lbl-connect-mobilewarning").show(),$("#pnl-sfchat-startchat #lbl-startchat-mobilewarning").show()):($("#pnl-sfchat-connecting #lbl-connect-mobilewarning").hide(),$("#pnl-sfchat-startchat #lbl-startchat-mobilewarning").hide()));$("#pnl-chatcontrol #pnl-chatpanel #pnl-sfchat-"+o).addClass("active")},setEndedText=function(n,t){$("#pnl-chatcontrol #pnl-chatpanel  #lbl-ended-title").text(n);$("#pnl-chatcontrol #pnl-chatpanel  #lbl-ended-text").text(t)},setEndedButtons=function(n){n===undefined?$("#pnl-chatcontrol #pnl-chatpanel #pnl-sfchat-chatended button").hide():(n.retry===!0?$("#pnl-chatcontrol #pnl-chatpanel #pnl-sfchat-chatended #btn-chatended-retry").show():$("#pnl-chatcontrol #pnl-chatpanel #pnl-sfchat-chatended #btn-chatended-retry").hide(),n.quit===!0?$("#pnl-chatcontrol #pnl-chatpanel #pnl-sfchat-chatended #btn-chatended-quit").show():$("#pnl-chatcontrol #pnl-chatpanel #pnl-sfchat-chatended #btn-chatended-quit").hide(),n.download===!0?$("#pnl-chatcontrol #pnl-chatpanel #pnl-sfchat-chatended #btn-chatended-download").show():$("#pnl-chatcontrol #pnl-chatpanel #pnl-sfchat-chatended #btn-chatended-download").hide())},setAgentName=function(n){SalesforceSessionModule.setVariable(r.agentname,n);$("#pnl-chatcontrol #lbl-chatagent-name").text(n)},refreshAgentName=function(){var n=SalesforceSessionModule.getVariable(r.agentname);$("#pnl-chatcontrol #lbl-chatagent-name").text(n)},parseChatText=function(n,t){if(n===undefined||n===""||t===undefined)return n;if(t===f.from_userinput||t===f.to_chatwindow||t===f.to_history)return $.each(ChatSmileMapping,function(i,r){$.each(r.codes,function(i,u){n.indexOf(u)>=0&&(n=t===f.from_userinput?n.replace(u,"<span><i class='"+r.faclass+"' icon-code='"+r.faclass+"' />&nbsp;<\/span>"):n.replace(u,"<i class='"+r.faclass+"' icon-code='"+r.faclass+"' />"))})}),t===f.to_chatwindow&&(n=replaceURLWithHTMLLinks(n)),n;if(t===f.to_agent||t===f.to_transcript){var i=$("<div>{0}<\/div>".formatString(n));return $.each(ChatSmileMapping,function(n,t){$(i).find("[icon-code="+t.faclass+"]").replaceWith(t.codes[0])}),$(i).text()}return n},incrementNewMessages=function(){if($("#chatbutton-counter-label").text(""),chatPanelVisible())SalesforceSessionModule.setVariable(r.unreadcount,0);else{var n=SalesforceSessionModule.getVariable(r.unreadcount);(n===null||n===undefined)&&(n=0);n=n+1;SalesforceSessionModule.setVariable(r.unreadcount,n);$("#chatbutton-counter-label").text(n);$("#div-chatbutton-counter-pulse").is(":hidden")===!0&&($("#div-chatbutton-counter-pulse").fadeIn(500),$("#div-chatbutton-counter-back").fadeIn(500));$("#chatbutton-counter-label").fadeOut(500,function(){n===1?$("#div-chatbutton-counter-back").attr("title",ChatGlobalSettings.texts.button_ongelezen_een):$("#div-chatbutton-counter-back").attr("title",ChatGlobalSettings.texts.button_ongelezen_meerdere.formatString(n));$("#chatbutton-counter-label").fadeIn(500)})}},messageAppendToChatWindow=function(n,t,r){if(t.length===0)return"";var u=null,e=dateFormat(new Date,"HH:MM:ss"),o=parseChatText(t,f.to_chatwindow);return n===i.from_user?u="<div class='chat-message-user'><p>{0}<span class='time-stamp'>{1}<\/span><\/p><\/div>".formatString(o,e):n===i.from_agent?u="<div class='chat-message-agent'><img src='/Resources/Shared/Images/{0}-chat-icoon.png' class='agent-icon' /><p>{1}<span class='time-stamp'>{2}<\/span><\/p><\/div>".formatString(ChatGlobalSettings.label,o,e):n===i.upload_request?u=$("#template-uploaditem").html().formatString(r,o,e):n===i.message?u="<div class='chat-message-message'><p>{0}<span class='time-stamp'>{1}<\/span><\/p><\/div>".formatString(o,e):n===i.success?u="<div class='chat-message-success'><p>{0}<span class='time-stamp'>{1}<\/span><\/p><\/div>".formatString(o,e):n===i.warning?u="<div class='chat-message-warning'><p>{0}<span class='time-stamp'>{1}<\/span><\/p><\/div>".formatString(o,e):n===i.error&&(u="<div class='chat-message-error'><p>{0}<span class='time-stamp'>{1}<\/span><\/p><\/div>".formatString(o,e)),u!==null&&($("#pnl-sfchat-chatting .chat-chatcontent .simplebar-content").append(u),messageAppendToChatHistory(u),messageAppendToChatTranscript(n,parseChatText(t,f.to_transcript))),$("#pnl-sfchat-chatting .simplebar-scroll-content").scrollTop($("#pnl-sfchat-chatting .simplebar-scroll-content")[0].scrollHeight),u},getTranscriptText=function(){var n=ChatGlobalSettings.usersession.transcriptName;return sessionStorage.getItem(n)},messageAppendToChatTranscript=function(n,u){var h=ChatGlobalSettings.usersession.transcriptName,o=sessionStorage.getItem(h),c=new Date,s=SalesforceSessionModule.getVariable(r.agentname),l=dateFormat(c,"dd-mm-yyyy HH:MM:ss"),e=dateFormat(c,"HH:MM:ss"),f="";(o===null||o==="")&&(o="",f=t.shared_transcriptheader.formatString(l,s));n===i.from_user?f+="\r\n{0} U: {1}".formatString(e,u):n===i.from_agent?f+="\r\n{0} {1}: {2}".formatString(e,s,u):n===i.upload_request?f+="\r\n{0} {1}: {2}".formatString(e,s,ChatGlobalSettings.texts.trans_uploadverzoek):n===i.message?f+="\r\n{0} Info: {1}".formatString(e,u):n===i.success?f+="\r\n{0} Success: {1}".formatString(e,u):n===i.warning?f+="\r\n{0} Waarschuwing: {1}".formatString(e,u):n===i.error&&(f+="\r\n{0} Fout opgetreden: {1}".formatString(e,u));o+=f.replace(/<br\s*\/?>/mg,"\r\n");sessionStorage.setItem(h,o)},setQPositionConnecting=function(n){n===null?$("#lbl-connect-status").text(t.connecting_unknowninline):n<=1?$("#lbl-connect-status").text(t.connecting_first):$("#lbl-connect-status").text(t.connecting_xinline.formatString(n))},messageAppendToChatHistory=function(n){var i,t,r;n!==null&&(i=ChatGlobalSettings.usersession.historyName,t=sessionStorage.getItem(i),t===null&&(t=""),r=$(n),$(".chatmessage-upload-block",r).remove(),t+=r[0].outerHTML,sessionStorage.setItem(i,t))},getChatHistory=function(){var n=ChatGlobalSettings.usersession.historyName;return sessionStorage.getItem(n)},handelChatMessages=function(u){if(u===""||u==="undefined"||u===null)return!1;var f=!0;return $.each(u.messages,function(u,o){if(o.type==="FileTransfer")o.message.type==="Requested"?(e=o.message.uploadServletUrl,messageAppendToChatWindow(i.upload_request,t.chatting_uploadreq,o.message.fileToken)):o.message.type==="Canceled"&&messageAppendToChatWindow(i.warning,t.chatting_uploadcancelled),incrementNewMessages();else if(o.type==="AgentDisconnect")f=!1,setChatWindow(n.chatended_disconnect),incrementNewMessages();else if(o.type==="AgentNotTyping")$("#pnl-agent-typing span").css("opacity","0");else if(o.type==="AgentTyping")$("#pnl-agent-typing span").css("opacity","1");else if(o.type!=="ChasitorSessionData")if(o.type==="ChatEnded")f=!1,setChatWindow(n.chatended_agent),incrementNewMessages();else if(o.type==="ChatEstablished")setAgentName(o.message.name),setChatWindow(n.chatting),restSetChatBreadcrumb(function(){}),incrementNewMessages(),isMobileTouch()&&messageAppendToChatWindow(i.warning,t.warning_mobileconnect);else if(o.type==="ChatMessage")setAgentName(o.message.name),messageAppendToChatWindow(i.from_agent,o.message.text),$("#pnl-agent-typing span").css("opacity","0"),incrementNewMessages();else if(o.type==="ChatRequestFail")f=!1,setChatWindow(n.error_initfail),incrementNewMessages();else if(o.type==="ChatRequestSuccess")SalesforceSessionModule.setVariable(r.qposition,o.message.queuePosition),setQPositionConnecting(o.message.queuePosition),incrementNewMessages();else if(o.type==="ChatTransferred"){setAgentName(o.message.name);var s=t.chatting_transfered.formatString(o.message.name);messageAppendToChatWindow(i.warning,s);incrementNewMessages()}else o.type==="QueueUpdate"&&(SalesforceSessionModule.setVariable(r.qposition,o.message.position),setQPositionConnecting(o.message.position))}),f},clearChatWindow=function(){$("#pnl-chatcontrol #pnl-chatpanel #pnl-sfchat-chatting .chat-chatcontent .simplebar-content").html("")},getCurrentUser=function(){return ChatGlobalSettings.user.isset===!1?null:ChatGlobalSettings.user},messagePollingLoop=function(){u!==!0&&restGetChatMessages(function(t){t===undefined||t===!1?(u=!0,setChatWindow(n.error_retrievemessage)):t===!0?messagePollingLoop():t==="duplicate"?(u=!0,setActiveTab(!1),setChatWindow(n.duplicate)):handelChatMessages(t)===!0?messagePollingLoop():u=!0})},{initSettings:function(){r=ChatGLobalEnums.ChatSesionVariable;f=ChatGLobalEnums.ParseTextTypes;t=ChatGlobalSettings.texts;n=ChatGLobalEnums.ChatModes;i=ChatGLobalEnums.ChatMessageTypes},initChat:function(){var f=sessionStorage.getItem(ChatGlobalSettings.usersession.chatActive),t=SalesforceSessionModule.getVariable(r.chatmode),i=SalesforceSessionModule.getVariable(r.domain),e,o,s;(t===n.chatting||t===n.connecting)&&f===null&&i===document.domain&&(t=n.duplicate,setActiveTab(!1));t!==undefined&&(e=i!==document.domain,(f!==null||e)&&(setActiveTab(!0),i!==document.domain&&SalesforceSessionModule.setVariable(r.domain,i),t===n.chatting||t===n.quit?(refreshAgentName(),$("#pnl-chatcontrol #pnl-chatpanel #pnl-sfchat-chatting .chat-chatcontent .simplebar-content").html(getChatHistory()),$("#pnl-sfchat-chatting .simplebar-scroll-content").scrollTop($("#pnl-sfchat-chatting .simplebar-scroll-content")[0].scrollHeight),u=!1,messagePollingLoop()):t===n.connecting?($("#txt-userchat-text").html(""),o=SalesforceSessionModule.getVariable(r.qposition),setQPositionConnecting(o),u=!1,messagePollingLoop()):(u=!0,SalesforceSessionModule.clearUserSession())),s=SalesforceSessionModule.getVariable(r.windowopen),s===!0&&(f!==null||e)&&($("#pnl-chatcontrol").addClass("chatpanel-open"),$("#pnl-chatcontrol").addClass("force"),setTimeout(function(){$("#pnl-chatcontrol").removeClass("force")},50)),setChatWindow(t))},getChatMode:function(){return SalesforceSessionModule.getVariable(r.chatmode)},setLiveChatOvergang:function(t){setActiveTab(!0);setChatWindow(n.chatting);$("#pnl-chatcontrol #btn-chatbutton").show();setAgentName(t);u=!1;messagePollingLoop();var i=sessionStorage.getItem("chatPopupStatus");i!==undefined&&i==="open"&&toggleChatPanel()},checkChatAvailability:function(t,i){restCheckChatAvailableRequest(function(i){var u=SalesforceSessionModule.getVariable(r.chatmode);i===!0||u===n.connecting||u===n.chatting?$("#pnl-chatcontrol #btn-chatbutton").show():$("#pnl-chatcontrol #btn-chatbutton").hide();t(i)},i)},startChatRequest:function(t){$(t).prop("disabled",!0);restCheckChatAvailableRequest(function(i){i===!0?restInitChat(getCurrentUser(),function(i){$(t).prop("disabled",!1);i===!1?(SalesforceSessionModule.clearUserSession(),setChatWindow(n.error_initfail)):i===406?(SalesforceSessionModule.clearUserSession(),setChatWindow(n.error_init_waitmore)):(setChatWindow(n.connecting),SalesforceSessionModule.createUserSession(i.session,1),u=!1,messagePollingLoop(),setActiveTab(!0))}):($(t).prop("disabled",!1),SalesforceSessionModule.clearUserSession(),setChatWindow(n.error_notavailable))})},handleChatButton:function(){var i=sessionStorage.getItem(ChatGlobalSettings.usersession.chatActive),t=SalesforceSessionModule.getVariable(r.chatmode);if(t===undefined){if($("#txt-userchat-text").html(""),isMobile()&&isMobileTouch()&&!isPortrait()){$("#pnl-mobile-orientation").show(200);return}clearChatWindow();toggleChatPanel();setChatWindow(n.startchat)}else{if(stringStartsWith(t,"error")&&chatPanelVisible()){SalesforceSessionModule.clearUserSession();toggleChatPanel();return}if(isMobile()&&isMobileTouch()&&!isPortrait()){$("#pnl-mobile-orientation").show(200);return}(i===null||i===!1)&&(t===n.connecting||t===n.chatting)&&setChatWindow(n.duplicate);toggleChatPanel()}},cancelChatRequest:function(){restExitChat(function(){});toggleChatPanel();u=!0;SalesforceSessionModule.clearUserSession()},miniMe:function(){toggleChatPanel()},exitChat:function(){setChatWindow(n.quit)},sendChatMessage:function(t){var r=$(t).html().trim(),e;r.length!==0&&(e=parseChatText(r,f.to_agent),restSendChatMessage(e,function(f){f.success===!0?(messageAppendToChatWindow(i.from_user,r),$(t).html("")):(u=!0,setChatWindow(n.error_sendmessage))}))},parseChatUserInput:function(n){var t=$(n).html().trim(),i=parseChatText(t,f.from_userinput),r=!1,u=new Date,e,s;o!==undefined&&(e=(u.getTime()-o.getTime())/1e3,e>1&&(r=!0,o=u));r===!0&&ChatGlobalSettings.enablesneakpeek&&(s=parseChatText(t,f.to_agent),restSendSneakPeek(s));t!==i&&($(n).html(i),setCaretAtEnd(n),$(n).scrollLeft(1e4))},setBreadCrumb:function(){var n=SalesforceSessionModule.getVariable(r.chatmode);n!==undefined&&restSetChatBreadcrumb(function(){})},uploadFileToAgent:function(t){var o=$(t).attr("data-uploadref"),r,f;if(o===undefined||e===null){$("#input-chat-upload").val("");messageAppendToChatWindow(i.error,ChatGlobalSettings.texts.upload_error_user);restSendChatMessage(ChatGlobalSettings.texts.upload_error_agent,function(t){t===!1&&(u=!0,setChatWindow(n.error_upload))});$(".chatmessage-uploading",t).fadeOut(500);$(".chatmessage-upload-fail",t).fadeIn(500);return}if(r=$("#input-chat-upload")[0].files[0],r.size>ChatGlobalSettings.uploadMaxSize){$("#input-chat-upload").val("");messageAppendToChatWindow(i.error,ChatGlobalSettings.texts.upload_error_filesize);return}if(f=!1,$.each(ChatGlobalSettings.uploadExtensions,function(n,t){return f=stringEndsWith(r.name,t),f===!0?!1:void 0}),f===!1){$("#input-chat-upload").val("");messageAppendToChatWindow(i.error,ChatGlobalSettings.texts.upload_error_filetype);return}$(".chatmessage-upload-button",t).fadeOut(500);$(".chatmessage-uploading",t).fadeIn(500);restUploadFile(e,r,o,function(r){if($("#input-chat-upload").val(""),$(".chatmessage-uploading",t).fadeOut(500),r===200)$(".chatmessage-upload-ok",t).fadeIn(500),messageAppendToChatWindow(i.success,ChatGlobalSettings.texts.upload_succes),isIPhoneOrIPad()&&messagePollingLoop();else{$(".chatmessage-upload-fail",t).fadeIn(500);var f=ChatGlobalSettings.texts.upload_error_user,e=ChatGlobalSettings.texts.upload_error_agent;r===406&&(f=ChatGlobalSettings.texts.upload_error_user_virusfile,e=ChatGlobalSettings.texts.upload_error_agent_virusfile);messageAppendToChatWindow(i.error,f);restSendChatMessage(e,function(t){t===!1&&(u=!0,setChatWindow(n.error_upload))})}})},exitChatConfirm:function(){u=!0;restExitChat(function(){});setChatWindow(n.chatended_user)},exitChatCancel:function(){setChatWindow(n.chatting)},retry:function(){SalesforceSessionModule.clearUserSession();restCheckChatAvailableRequest(function(t){t===!0?(setChatWindow(n.connecting),restInitChat(getCurrentUser(),function(t){t===!1?setChatWindow(n.error_initfail):(SalesforceSessionModule.createUserSession(t.session,1),u=!1,messagePollingLoop())})):setChatWindow(n.error_notavailable)})},download:function(){var t=getTranscriptText(),i,n;t&&(browserIsIE()===!0?(i=new Blob([t],{type:"text/plain"}),window.navigator.msSaveBlob(i,"Chatlog.txt")):(n=document.createElement("a"),n.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(t)),n.setAttribute("download","Chatlog.txt"),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)))},quit:function(){SalesforceSessionModule.clearUserSession();toggleChatPanel()},setFocusChatInput:function(){setFocusUserChatInput()},checkMobileStatus:function(){isMobile()&&isMobileTouch()&&(isPortrait()?$("#pnl-mobile-orientation").hide(200):chatPanelVisible()&&(toggleChatPanel(),$("#pnl-mobile-orientation").show(200)))}}};getMessageRestRequest=null;var ChatGLobalEnums=Object.freeze({ChatModes:{startchat:"startchat",connecting:"connecting",chatting:"chatting",chatended_user:"chatended_user",chatended_agent:"chatended_agent",chatended_disconnect:"chatended_disconnect",quit:"quit",error_generic:"error_generic",error_retrievemessage:"error_retrievemessage",error_initfail:"error_initfail",error_init_waitmore:"error_init_waitmore",error_sendmessage:"error_sendmessage",error_upload:"error_upload",error_notavailable:"error_notavailable",duplicate:"duplicate"},ChatMessageTypes:{from_user:0,from_agent:1,upload_request:2,message:3,warning:4,error:5,success:6},ParseTextTypes:{from_userinput:0,to_chatwindow:1,to_agent:2,to_transcript:3,to_history:4},ChatSesionVariable:{agentname:0,chatmode:1,sequence:2,unreadcount:3,visitorid:4,qposition:5,windowopen:6,domain:7}}),ProxyServiceURL=null,ProxyServiceURL=null,ProxyServiceUploadURL=null,ChatSmileMapping=Object.freeze({smile:{codes:[":-)",":)"],faclass:"chaticon-smiley"},meh:{codes:[":-|",":|"],faclass:"chaticon-meh"},sad:{codes:[":-(",":("],faclass:"chaticon-sad"},heart:{codes:["<3","&lt;3"],faclass:"chaticon-heart"},thumbup:{codes:["[tu]"],faclass:"chaticon-thumbup"},thumbdown:{codes:["[td]"],faclass:"chaticon-thumbdown"}});if(SalesforceSessionModule=new function(){var n=null;return getChatDomain=function(){var n=document.domain.split(".");return n.length===1?n[0]:"."+n[n.length-2]+"."+n[n.length-1]},{initSettings:function(){n=ChatGlobalSettings.usersession.cookieName},clearUserSession:function(){var n=getChatDomain();if(Cookies.remove(ChatGlobalSettings.usersession.cookieName,{secure:!0,domain:n}),sessionStorage.removeItem(ChatGlobalSettings.usersession.transcriptName),sessionStorage.removeItem(ChatGlobalSettings.usersession.historyName),sessionStorage.removeItem(ChatGlobalSettings.usersession.chatActive),getMessageRestRequest!==null)try{getMessageRestRequest.abort()}catch(t){}},createUserSession:function(t,i){this.clearUserSession();var r={session:t,chatmode:ChatGLobalEnums.ChatModes.connecting,sequenceNumber:i,agentname:null,qposition:null,windowopen:!0,domain:document.domain},u=getChatDomain();Cookies.set(n,r,{secure:!0,domain:u})},getSalesforceSession:function(){var t=Cookies.getJSON(n);return t!==undefined?t.session:undefined},getSequenceNumber:function(){var t=ChatGLobalEnums.ChatSesionVariable.sequence,n=this.getVariable(t);return n=n+1,this.setVariable(t,n),n},setVariable:function(t,i){var r=Cookies.getJSON(n),u;r!==undefined&&(t===ChatGLobalEnums.ChatSesionVariable.chatmode?r.chatmode=i:t===ChatGLobalEnums.ChatSesionVariable.agentname?r.agentname=i:t===ChatGLobalEnums.ChatSesionVariable.sequence?r.sequenceNumber=i:t===ChatGLobalEnums.ChatSesionVariable.unreadcount?r.unreadcount=i:t===ChatGLobalEnums.ChatSesionVariable.qposition?r.qposition=i:t===ChatGLobalEnums.ChatSesionVariable.windowopen?r.windowopen=i:t===ChatGLobalEnums.ChatSesionVariable.domain&&(r.domain=i),u=getChatDomain(),Cookies.set(n,r,{secure:!0,domain:u}))},getVariable:function(t){var i=Cookies.getJSON(n);return i===undefined?undefined:t===ChatGLobalEnums.ChatSesionVariable.chatmode?i.chatmode:t===ChatGLobalEnums.ChatSesionVariable.agentname?i.agentname:t===ChatGLobalEnums.ChatSesionVariable.sequence?i.sequenceNumber:t===ChatGLobalEnums.ChatSesionVariable.unreadcount?i.unreadcount:t===ChatGLobalEnums.ChatSesionVariable.qposition?i.qposition:t===ChatGLobalEnums.ChatSesionVariable.windowopen?i.windowopen:t===ChatGLobalEnums.ChatSesionVariable.domain?i.domain:undefined}}},new function(n){var i=n.separator||"&",t=n.spaces===!1?!1:!0,e=n.suffix===!1?"":"[]",r=n.prefix===!1?!1:!0,u=r?n.hash===!0?"#":"?":"",f=n.numbers===!1?!1:!0;jQuery.query=new function(){var n=function(n,t){return n!=undefined&&n!==null&&(!t?!0:n.constructor==t)},o=function(n){for(var t,u=/\[([^[]*)\]/g,i=/^([^[]+)(\[.*\])?$/.exec(n),f=i[1],r=[];t=u.exec(i[2]);)r.push(t[1]);return[f,r]},r=function(t,i,u){var o=i.shift(),e,s,f;if(typeof t!="object"&&(t=null),o==="")if(t||(t=[]),n(t,Array))t.push(i.length==0?u:r(null,i.slice(0),u));else if(n(t,Object)){for(f=0;t[f++]!=null;);t[--f]=i.length==0?u:r(t[f],i.slice(0),u)}else t=[],t.push(i.length==0?u:r(null,i.slice(0),u));else if(o&&o.match(/^\s*[0-9]+\s*$/))e=parseInt(o,10),t||(t=[]),t[e]=i.length==0?u:r(t[e],i.slice(0),u);else if(o){if(e=o.replace(/^\s*|\s*$/g,""),t||(t={}),n(t,Array)){for(s={},f=0;f<t.length;++f)s[f]=t[f];t=s}t[e]=i.length==0?u:r(t[e],i.slice(0),u)}else return u;return t},e=function(n){var t=this;return t.keys={},n.queryObject?jQuery.each(n.get(),function(n,i){t.SET(n,i)}):t.parseNew.apply(t,arguments),t};return e.prototype={queryObject:!0,parseNew:function(){var n=this;return n.keys={},jQuery.each(arguments,function(){var i=""+this;i=i.replace(/^[?#]/,"");i=i.replace(/[;&]$/,"");t&&(i=i.replace(/[+]/g," "));jQuery.each(i.split(/[&;]/),function(){var i=decodeURIComponent(this.split("=")[0]||""),t=decodeURIComponent(this.split("=")[1]||"");i&&(f&&(/^[+-]?[0-9]+\.[0-9]*$/.test(t)?t=parseFloat(t):/^[+-]?[1-9][0-9]*$/.test(t)&&(t=parseInt(t,10))),t=!t&&t!==0?!0:t,n.SET(i,t))})}),n},has:function(t,i){var r=this.get(t);return n(r,i)},GET:function(t){if(!n(t))return this.keys;for(var r=o(t),f=r[0],u=r[1],i=this.keys[f];i!=null&&u.length!=0;)i=i[u.shift()];return typeof i=="number"?i:i||""},get:function(t){var i=this.GET(t);return n(i,Object)?jQuery.extend(!0,{},i):n(i,Array)?i.slice(0):i},SET:function(t,i){var e=n(i)?i:null,u=o(t),f=u[0],s=u[1],h=this.keys[f];return this.keys[f]=r(h,s.slice(0),e),this},set:function(n,t){return this.copy().SET(n,t)},REMOVE:function(t,i){var r,u;if(i)if(r=this.GET(t),n(r,Array)){for(tval in r)r[tval]=r[tval].toString();if(u=$.inArray(i,r),u>=0)t=r.splice(u,1),t=t[u];else return}else if(i!=r)return;return this.SET(t,null).COMPACT()},remove:function(n,t){return this.copy().REMOVE(n,t)},EMPTY:function(){var n=this;return jQuery.each(n.keys,function(t){delete n.keys[t]}),n},load:function(n){var t=n.replace(/^.*?[#](.+?)(?:\?.+)?$/,"$1"),i=n.replace(/^.*?[?](.+?)(?:#.+)?$/,"$1");return new e(n.length==i.length?"":i,n.length==t.length?"":t)},empty:function(){return this.copy().EMPTY()},copy:function(){return new e(this)},COMPACT:function(){function t(i){var r=typeof i=="object"?n(i,Array)?[]:{}:i;if(typeof i=="object"){function u(t,i,r){n(t,Array)?t.push(r):t[i]=r}jQuery.each(i,function(i,f){if(!n(f))return!0;u(r,i,t(f))})}return r}return this.keys=t(this.keys),this},compact:function(){return this.copy().COMPACT()},toString:function(){var r=[],f=[],h=this,e=function(n){return n=n+"",n=encodeURIComponent(n),t&&(n=n.replace(/%20/g,"+")),n},s=function(t,i,r){if(n(r)&&r!==!1){var u=[e(i)];r!==!0&&(u.push("="),u.push(e(r)));t.push(u.join(""))}},o=function(n,t){var i=function(n){return!t||t==""?[n].join(""):[t,"[",n,"]"].join("")};jQuery.each(n,function(n,t){typeof t=="object"?o(t,i(n)):s(f,i(n),t)})};return o(this.keys),f.length>0&&r.push(u),r.push(f.join(i)),r.join("")}},new e(location.search,location.hash)}}(jQuery.query||{}),/(MSIE [7-9]\.|Opera.*Version\/(11|12)\.|Chrome\/([5-9]|10)\.|Version\/(4)[\.0-9]+ Safari\/|Version\/(4|5\.0)[\.0-9]+? Mobile\/.*Safari\/)/.test(navigator.userAgent)){if(typeof ss_legacy!="function"){!function(n,t){typeof module!="undefined"?module.exports=t():typeof define=="function"&&typeof define.amd=="object"?define(t):this[n]=t()}("ss_ready",function(n){function f(n){for(u=1;n=r.shift();)n()}var r=[],i,e=!1,t=document,o=t.documentElement,s=o.doScroll,h="DOMContentLoaded",c="addEventListener",l="onreadystatechange",a="readyState",u=/^loade|c/.test(t[a]);return t[c]&&t[c](h,i=function(){t.removeEventListener(h,i,e);f()},e),s&&t.attachEvent(l,i=function(){/^c/.test(t[a])&&(t.detachEvent(l,i),f())}),n=s?function(t){self!=top?u?t():r.push(t):function(){try{o.doScroll("left")}catch(i){return setTimeout(function(){n(t)},50)}t()}()}:function(n){u?n():r.push(n)}});var ss_legacy=function(n){if(!n instanceof Object)return!1;if(n.length){for(var t=0;t<n.length;t++)ss_legacy(n[t]);return}n.value?n.value=ss_liga(n.value):n.nodeValue?n.nodeValue=ss_liga(n.nodeValue):n.innerHTML&&(n.innerHTML=ss_liga(n.innerHTML))},ss_getElementsByClassName=function(n,t){for(var u=[],e=new RegExp("(^| )"+t+"( |$)"),r=n.getElementsByTagName("*"),i=0,f=r.length;i<f;i++)e.test(r[i].className)&&u.push(r[i]);return u},ss_liga=function(n){var t=new RegExp(ss_keywords.join("|"),"gi");return n.replace(t,function(n){return ss_icons[n.toLowerCase()]})};ss_ready(function(){document.getElementsByClassName?ss_legacy(document.getElementsByClassName("ss-icon")):ss_legacy(ss_getElementsByClassName(document.body,"ss-icon"))})}if(ss_set={foursquare:"",googleplus:"",wordpress:"",pinterest:"",posterous:"",instagram:"",dribbble:"",linkedin:"",envelope:"✉",facebook:"",twitter:"",blogger:"","google+":"",behance:"",youtube:"",tumblr:"",github:"",paypal:"",flickr:"",skype:"",email:"✉",vimeo:"",mail:"✉"},typeof ss_icons!="object"||typeof ss_icons!="object"){ss_icons=ss_set;ss_keywords=[];for(i in ss_set)ss_keywords.push(i)}else for(i in ss_set)ss_icons[i]=ss_set[i],ss_keywords.push(i)}if(/(MSIE [7-9]\.|Opera.*Version\/(11|12)\.|Chrome\/([5-9]|10)\.|Version\/(4)[\.0-9]+ Safari\/|Version\/(4|5\.0)[\.0-9]+? Mobile\/.*Safari\/)/.test(navigator.userAgent)){if(typeof ss_legacy!="function"){!function(n,t){typeof module!="undefined"?module.exports=t():typeof define=="function"&&typeof define.amd=="object"?define(t):this[n]=t()}("ss_ready",function(n){function f(n){for(u=1;n=r.shift();)n()}var r=[],i,e=!1,t=document,o=t.documentElement,s=o.doScroll,h="DOMContentLoaded",c="addEventListener",l="onreadystatechange",a="readyState",u=/^loade|c/.test(t[a]);return t[c]&&t[c](h,i=function(){t.removeEventListener(h,i,e);f()},e),s&&t.attachEvent(l,i=function(){/^c/.test(t[a])&&(t.detachEvent(l,i),f())}),n=s?function(t){self!=top?u?t():r.push(t):function(){try{o.doScroll("left")}catch(i){return setTimeout(function(){n(t)},50)}t()}()}:function(n){u?n():r.push(n)}});var ss_legacy=function(n){if(!n instanceof Object)return!1;if(n.length){for(var t=0;t<n.length;t++)ss_legacy(n[t]);return}n.value?n.value=ss_liga(n.value):n.nodeValue?n.nodeValue=ss_liga(n.nodeValue):n.innerHTML&&(n.innerHTML=ss_liga(n.innerHTML))},ss_getElementsByClassName=function(n,t){for(var u=[],e=new RegExp("(^| )"+t+"( |$)"),r=n.getElementsByTagName("*"),i=0,f=r.length;i<f;i++)e.test(r[i].className)&&u.push(r[i]);return u},ss_liga=function(n){var t=new RegExp(ss_keywords.join("|"),"gi");return n.replace(t,function(n){return ss_icons[n.toLowerCase()]})};ss_ready(function(){document.getElementsByClassName?ss_legacy(document.getElementsByClassName("ss-icon")):ss_legacy(ss_getElementsByClassName(document.body,"ss-icon"))})}if(ss_set={"notifications disabled":"🔕",notificationsdisabled:"🔕","notification disabled":"🔕",notificationdisabled:"🔕","telephone disabled":"",telephonedisabled:"","writing disabled":"","pencil disabled":"","calendar remove":"","remove calendar":"",writingdisabled:"","calendar check":"",pencildisabled:"",removecalendar:"","cloud download":"","navigate right":"▻",calendarremove:"","phone disabled":"","medium battery":"","check calendar":"","battery medium":"","female avatar":"👧",mediumbattery:"",phonedisabled:"",navigateright:"▻","navigate left":"◅","call disabled":"",notifications:"🔔","empty battery":"","bell disabled":"🔕",checkcalendar:"",clouddownload:"","shopping cart":"","navigate down":"",batterymedium:"","battery empty":"",calendarcheck:"",emptybattery:"",femaleavatar:"👧",navigatedown:"","battery high":"",shoppingcart:"","rotate right":"↻","battery full":"🔋","mobile phone":"📱","add calendar":"","full battery":"🔋","skip forward":"⏭","fast forward":"⏩","cloud upload":"",belldisabled:"🔕",navigateleft:"◅",batteryempty:"",notification:"🔔","high battery":"",calldisabled:"","calendar add":"","credit card":"💳","battery low":"",batteryfull:"🔋",rotateright:"↻",information:"ℹ",addcalendar:"",photographs:"🌄",calendaradd:"",mobilephone:"📱","rotate left":"↺","male avatar":"👤",skipforward:"⏭",batteryhigh:"","low battery":"",fastforward:"⏩","female user":"👧","thumbs down":"👎",highbattery:"",cloudupload:"",videocamera:"📹","volume high":"🔊","high volume":"🔊",fullbattery:"🔋","navigate up":"","remove date":"",navigation:"",femaleuser:"👧","cell phone":"📱",screenshot:"⌖","down right":"⬊",directions:"",rotateleft:"↺",disapprove:"👎",eyedropper:"","check date":"",thumbsdown:"👎",visibility:"👀",attachment:"📎",creditcard:"💳",microphone:"🎤",removedate:"",connection:"","volume low":"🔉",lowbattery:"","low volume":"🔉",volumehigh:"🔊",smartphone:"📱",highvolume:"🔊","half heart":"",maleavatar:"👤",navigateup:"","pull quote":"“",photograph:"🌄",batterylow:"","male user":"👤",pullquote:"“",dashboard:"",musicnote:"♫","skip back":"⏮",stopwatch:"⏱",checkmark:"✓",crosshair:"⌖",cellphone:"📱","down left":"⬋","pie chart":"","bar chart":"📊",volumelow:"🔉",lowvolume:"🔉",telephone:"📞",checkdate:"","half star":"",briefcase:"💼",halfheart:"","thumbs up":"👍",backspace:"⌫",downright:"⬊",paperclip:"📎",envelope:"✉",database:"",barchart:"📊","add date":"",skipback:"⏮",maleuser:"👤",location:"",facetime:"","end call":"",signpost:"",notebook:"📓",dropdown:"▾",halfstar:"",favorite:"⋆",subtract:"-",computer:"💻",settings:"⚙",thumbsup:"👍",bookmark:"🔖",keywords:"",trashcan:"",previous:"◅",pictures:"🌄",download:"",insecure:"🔓",unlocked:"🔓","up right":"⬈",navigate:"",downleft:"⬋",question:"❓",contract:"",calendar:"📆",document:"📄",piechart:"",typeface:"",upright:"⬈",forward:"➡",airplay:"",picture:"🌄",checked:"✓",shuffle:"🔀",windows:"",compose:"📝",retweet:"",columns:"",desktop:"💻",adddate:"",display:"💻",monitor:"💻",package:"📦",approve:"👍",private:"🔒",dictate:"🎤",caution:"⛔",warning:"⚠",refresh:"↻",visible:"👀",battery:"🔋",speaker:"🔈",dislike:"👎",syncing:"",loading:"",avatars:"👥","up left":"⬉",comment:"💬",printer:"⎙",endcall:"",keyword:"",compass:"",pencil:"✎",photos:"🌄",eraser:"✐",volume:"🔈",cursor:"",videos:"📹",upleft:"⬉",locate:"",locked:"🔒",laptop:"",tablet:"",remove:"-",hyphen:"-",attach:"📎",record:"●",upload:"",iphone:"📱",mobile:"📱",rewind:"⏪",avatar:"👤",target:"◎",sample:"",secure:"🔒","delete":"␡",unlock:"🔓",layers:"",camera:"📷",expand:"⤢",action:"",repeat:"🔁",layout:"",folder:"📁",tagged:"",search:"🔎",public:"🔓",images:"🌄",replay:"↺",timer:"⏱",print:"⎙",quote:"“",write:"✎",erase:"✐",right:"➡",trash:"",heart:"♥",share:"",visit:"",nodes:"",zelda:"",cloud:"☁",phone:"📞",reply:"↩",email:"✉",alert:"⚠",merge:"",inbox:"📥",users:"👥",globe:"🌎",earth:"🌎",minus:"-",world:"🌎",clock:"⏲",music:"♫",check:"✓",audio:"♫",eject:"⏏",sound:"🔈",close:"␡",image:"🌄",photo:"🌄",video:"📹",pause:"",call:"📞",play:"▶",bell:"🔔",view:"👀",stop:"■",skip:"⏭",back:"⬅",undo:"↺",grid:"",rows:"",time:"⏲",left:"⬅",text:"",look:"👀",date:"📆",ipad:"",cell:"📱",link:"🔗",home:"⌂",down:"⬇",cart:"",plus:"+",user:"👤",talk:"💬",chat:"💬",fork:"",redo:"↻",mail:"✉",info:"ℹ",move:"",gear:"⚙",sync:"",crop:"",star:"⋆",work:"💼",help:"❓",wifi:"",love:"♥",list:"",like:"👍",next:"▻",flag:"⚑",tags:"",page:"📄",file:"📄",lock:"🔒",font:"",box:"📦",ban:"🚫",tag:"",out:"",fax:"📠",rss:"",key:"🔑",add:"+",map:"",pin:"📍",mic:"🎤",eye:"👀",cog:"⚙",up:"⬆"},typeof ss_icons!="object"||typeof ss_icons!="object"){ss_icons=ss_set;ss_keywords=[];for(i in ss_set)ss_keywords.push(i)}else for(i in ss_set)ss_icons[i]=ss_set[i],ss_keywords.push(i)}(function(){if(document.cookie.indexOf("device_pixel_ratio")==-1&&"devicePixelRatio"in window&&window.devicePixelRatio==2){var n=new Date;n.setTime(n.getTime()+36e5);document.cookie="device_pixel_ratio="+window.devicePixelRatio+"; expires="+n.toUTCString()+"; path=/";document.cookie.indexOf("device_pixel_ratio")!=-1&&window.location.reload()}})(jQuery),function(n){function t(){n("section.video").each(function(){var t=n(this);n(".playbutton",t).click(function(){n(".videowrapper",t).append('<iframe src="'+n(this).data("iframe-src")+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe>');n(this).hide();n("img",t).hide()})});n(".video .videowrapper iframe").each(function(){n(this).attr("src",n(this).data("src"))})}n(document).ready(function(){t()})}(jQuery);plusHtml='<div class="usp-wrap-circle"><div class="usp-wrap-inner"><span>+<\/span><\/div><\/div>';$(window).on("load",function(){reloadConnectorBlocks()});$(window).on("orientationchange",function(){setTimeout(function(){reloadConnectorBlocks()},500)});var equalBlocks=function(n){$(".usp-item-title",n).height(maxHeight($(".usp-item-title",n)));$(".usp-item-icon",n).height(maxHeight($(".usp-item-icon",n)));$(".usp-item-usptext",n).height(maxHeight($(".usp-item-usptext",n)));$(".usp-item-uspsubtext",n).height(maxHeight($(".usp-item-uspsubtext",n)))},clearBlocks=function(n){$(".usp-item-title, .usp-item-icon, .usp-item-usptext, .usp-item-uspsubtext",n).css("height","auto")},maxHeight=function(n){return Math.max.apply(null,n.map(function(){return $(this).height()}).get())};(function(n){initTypeAhead=function(t,i,r,u){function o(t){return n.ajax({type:"GET",url:"/services/websites/publiekesites/search.svc/typeahead/"+encodeURIComponent(t),contentType:"application/json; charset=utf-8",dataType:"json"})}function f(t){var i=encodeURIComponent(n("#"+t).val().trim());window.location=i==""?r:r+"?search="+i}var e=u;n("#"+t).typeahead({highlight:!0,hint:!0,minLength:2},{name:"typeahead",displayKey:function(n){return n},templates:{empty:[e],suggestion:function(n){return'<span class="tt-suggestionfirstelement">'+n+"<\/span>"}},source:function(n,t){o(n).done(function(n){t(n.Results)})}}).on("typeahead:cursorchanged",function(){}).on("typeahead:selected",function(){f(t)}).on("typeahead:opened typeahead:closed",function(){}).on("keypress",function(n){n.which==13&&(n.preventDefault(),f(t))});n("#"+i).click(function(n){n.preventDefault();f(t)})};initSearchMore=function(t,i,r,u){function f(t,i,r){return n.ajax({type:"GET",url:"/services/websites/publiekesites/search.svc/search/"+encodeURIComponent(t)+"/"+i+"/"+r,contentType:"application/json; charset=utf-8",dataType:"json"})}function e(t){var i=n("#"+t),o=i.data("search"),e=parseInt(i.data("rows")),r=parseInt(i.data("startrow"))+e,s=n('<div class="result"><h3><a><\/a><\/h3><p><\/p><a><\/a><\/div>');f(o,e,r).done(function(t){var s,f,o;for(i.data("startrow",r),t.TotalResults<=r+e&&i.hide(),s=0,f=0;f<t.Results.length;f++)o=n('<div class="result"><h3><a><\/a><\/h3><p><\/p><a class="arrow-inline"><\/a><\/div>'),o.find(">h3").before("<!-- "+t.Results[f].Score+" -->"),o.find(">h3>a").attr("href",t.Results[f].Url),o.find(">h3>a").text(t.Results[f].PageTitle),o.find(">p").text(t.Results[f].PageMetaDescription&&t.Results[f].PageMetaDescription.length>0?t.Results[f].PageMetaDescription:t.Results[f].PageContent),o.find(">a").attr("href",t.Results[f].Url),o.find(">a").text(u.length>0?u:t.Results[f].Url),i.before(o),f==0&&(s=o.offset().top);i.data("startrow",r);n("html, body").animate({scrollTop:s},1500)})}n("#"+i).click(function(n){n.preventDefault();e(t)})};n(document).ready(function(){n(".modal.searchbar").on("shown.bs.modal",function(t){n(t.target).find("input").focus();var i=n(t.target).data("virtual-url");try{i.length>0&&trackVirtualPageView(window.location.pathname+i)}catch(t){}})})})(jQuery),function(n){trackVirtualPageView=function(n){var t,i;typeof dataLayer!="undefined"&&typeof n!="undefined"&&((t=n.split("#"),t.length<=0)||(t=t.reverse(),i=new VirtualPageEvent("Virtual Page Event: Accordion Element Expanded - "+t[0]+", "+encodeURIComponent(window.location.host+n)),i.trigger(),dataLayer.push({event:"sendVirtualPageview",vpv:""+n+""})))};n(document).ready(function(){n(".panel-collapse").on("hidden.bs.collapse",function(){});n(".panel-collapse").on("shown.bs.collapse",function(){var i=n(this).closest(".panel.panel-default"),t=n(i).data("virtual-url");try{t.length>0&&trackVirtualPageView(window.location.pathname+t)}catch(r){}});n('a[data-toggle="tab"]').on("hidden.bs.tab",function(){});n('a[data-toggle="tab"]').on("shown.bs.tab",function(t){var i=n(t.target).data("virtual-url");try{i.length>0&&trackVirtualPageView(window.location.pathname+i)}catch(t){}})})}(jQuery),function(n){function r(i){i!=null&&i.length!=0&&i.each(function(){var i=n(this).data("equalize-group");i=i==null?"":i;t[i]==null&&(t[i]=[]);t[i].push(this)})}function i(){t!=null&&t.length!=0&&n.each(t,function(t,i){var u,r;i!=null&&i.length!=0&&(i=n(i),u=window.innerWidth||n(window).width(),i.css("height","auto"),r=i.first().data("equalize-min-width"),r=isNaN(r)?0:r,u>=r&&i.equalizeHeights())})}n.fn.equalizeHeights=function(){var t=this.map(function(t,i){return n(i).height()}).get();return this.height(Math.max.apply(this,t))};var t={};initEqualizeHeights=function(){t={};r(n(".equalize-height"));i()};n(document).ready(function(){setTimeout(function(){initEqualizeHeights()},100)});n(window).on("resize",function(){i()})}(jQuery),function(n){function t(){n("p.comments-added").length==1&&(n("#commentlist").hide(),window.setTimeout(function(){n.get(document.location,function(t){n("#commentlist").html(n(t).find("#commentlist"));n("#commentlist").slideDown(500);n("p.comments-added").hide()})},7500))}n(document).ready(function(){t()})}(jQuery)