/*!jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ "undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e \x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1> "))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1> ")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s})!jQuery(document).ready(function($){var isSimpleBannerTextSet=simpleBannerScriptParams.simple_banner_text!="";var isDisabledByPagePath=simpleBannerScriptParams.simple_banner_disabled_page_paths?simpleBannerScriptParams.simple_banner_disabled_page_paths.split(',').filter(Boolean).some(path=>{var pathname=path.trim();if(pathname.at(0)==='*'&&pathname.at(-1)==='*'){return window.location.pathname.includes(pathname.slice(1,-1));} if(pathname.at(0)==='*'){return window.location.pathname.endsWith(pathname.slice(1));} if(pathname.at(-1)==='*'){return window.location.pathname.startsWith(pathname.slice(0,-1));} return window.location.pathname===pathname;}):false;var isSimpleBannerEnabledOnPage=!simpleBannerScriptParams.pro_version_enabled||(simpleBannerScriptParams.pro_version_enabled&&!simpleBannerScriptParams.disabled_on_current_page&&!isDisabledByPagePath);var isSimpleBannerVisible=isSimpleBannerTextSet&&isSimpleBannerEnabledOnPage;if(isSimpleBannerVisible){if(!simpleBannerScriptParams.wp_body_open||!simpleBannerScriptParams.wp_body_open_enabled){var closeButton=simpleBannerScriptParams.close_button_enabled?' ':'';var prependElement=document.querySelector(simpleBannerScriptParams.simple_banner_insert_inside_element||simpleBannerScriptParams.simple_banner_prepend_element||'body');$('
' +simpleBannerScriptParams.simple_banner_text +'
'+closeButton+'
').prependTo(prependElement||'body');} var bodyPaddingLeft=$('body').css('padding-left') var bodyPaddingRight=$('body').css('padding-right') if(bodyPaddingLeft!="0px"){$('head').append(' ');} if(bodyPaddingRight!="0px"){$('head').append(' ');} function scrollClass(){var scroll=document.documentElement.scrollTop;if(scroll>$("#simple-banner").height()){$("#simple-banner").addClass("simple-banner-scrolling");}else{$("#simple-banner").removeClass("simple-banner-scrolling");}} document.addEventListener("scroll",scrollClass);} function closeBanner(){if(!simpleBannerScriptParams.keep_site_custom_css&&document.getElementById('simple-banner-site-custom-css'))document.getElementById('simple-banner-site-custom-css').remove();if(!simpleBannerScriptParams.keep_site_custom_js&&document.getElementById('simple-banner-site-custom-js'))document.getElementById('simple-banner-site-custom-js').remove();if(document.getElementById('simple-banner-header-margin'))document.getElementById('simple-banner-header-margin').remove();if(document.getElementById('simple-banner-header-padding'))document.getElementById('simple-banner-header-padding').remove();if(document.getElementById('simple-banner'))document.getElementById('simple-banner').remove();} if(isSimpleBannerVisible){var sbCookie="simplebannerclosed";if(simpleBannerScriptParams.close_button_enabled){if(getCookie(sbCookie)==="true"){closeBanner();setCookie(sbCookie,"true",simpleBannerScriptParams.close_button_expiration);}else{document.getElementById("simple-banner-close-button").onclick=function(){closeBanner();setCookie(sbCookie,"true",simpleBannerScriptParams.close_button_expiration);};}}else{if(getCookie(sbCookie)==="true"){document.cookie="simplebannerclosed=true!expires=Thu, 01 Jan 1970 00:00:00 UTC!path=/;";}}} function setCookie(cname,cvalue,expiration){var d;if(expiration===''||expiration==='0'||parseFloat(expiration)){var exdays=parseFloat(expiration)||0;d=new Date();d.setTime(d.getTime()+(exdays*24*60*60*1000));}else{d=new Date(expiration);} var expires="expires="+d.toUTCString();document.cookie=cname+"="+cvalue+";"+expires+";path=/";} function getCookie(cname){var name=cname+"=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(';');for(var i=0;i {const t=new Map;return t.largestIndex=0,t.set=function(e,n){""===e?e=t.largestIndex++:/^[0-9]+$/.test(e)&&(e=parseInt(e),t.largestIndex<=e&&(t.largestIndex=e+1)),Map.prototype.set.call(t,e,n)},t};this.tree=e();const n=/^(? [a-z][-a-z0-9_:]*)(? (?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i;for(const[t,i]of this.formData){const s=t.match(n);if(s)if(""===s.groups.array)this.tree.set(s.groups.name,i);else{const t=[...s.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map((([t,e])=>e));t.unshift(s.groups.name);const n=t.pop();t.reduce(((t,n)=>{if(/^[0-9]+$/.test(n)&&(n=parseInt(n)),t.get(n)instanceof Map)return t.get(n);const i=e();return t.set(n,i),i}),this.tree).set(n,i)}}}t.r(e),t.d(e,{date:function(){return f},dayofweek:function(){return h},email:function(){return a},enum:function(){return u},file:function(){return m},maxdate:function(){return z},maxfilesize:function(){return I},maxitems:function(){return v},maxlength:function(){return x},maxnumber:function(){return b},mindate:function(){return A},minfilesize:function(){return $},minitems:function(){return g},minlength:function(){return w},minnumber:function(){return y},number:function(){return c},required:function(){return o},requiredfile:function(){return r},tel:function(){return l},time:function(){return d},url:function(){return p}}),n.prototype.entries=function(){return this.tree.entries()},n.prototype.get=function(t){return this.tree.get(t)},n.prototype.getAll=function(t){if(!this.has(t))return[];const e=t=>{const n=[];if(t instanceof Map)for(const[i,s]of t)n.push(...e(s));else""!==t&&n.push(t);return n};return e(this.get(t))},n.prototype.has=function(t){return this.tree.has(t)},n.prototype.keys=function(){return this.tree.keys()},n.prototype.values=function(){return this.tree.values()};var i=n;function s({rule:t,field:e,error:n,...i}){this.rule=t,this.field=e,this.error=n,this.properties=i}const o=function(t){if(0===t.getAll(this.field).length)throw new s(this)},r=function(t){if(0===t.getAll(this.field).length)throw new s(this)},a=function(t){if(!t.getAll(this.field).every((t=>{if((t=t.trim()).length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;const[e,n]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(e))return!1;if(/\.{2,}/.test(n))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(n))return!1;const i=n.split(".");if(i.length<2)return!1;for(const t of i){if(/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t))return!1;if(!/^[a-z0-9-]+$/i.test(t))return!1}return!0})))throw new s(this)},p=function(t){const e=t.getAll(this.field);if(!e.every((t=>{if(""===(t=t.trim()))return!1;try{return(t=>-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(t))(new URL(t).protocol.replace(/:$/,""))}catch{return!1}})))throw new s(this)},l=function(t){if(!t.getAll(this.field).every((t=>(t=(t=t.trim()).replaceAll(/[()/.*#\s-]+/g,""),/^[+]?[0-9]+$/.test(t)))))throw new s(this)},c=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)))))throw new s(this)},f=function(t){if(!t.getAll(this.field).every((t=>{if(t=t.trim(),!/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t))return!1;const e=new Date(t);return!Number.isNaN(e.valueOf())})))throw new s(this)},d=function(t){if(!t.getAll(this.field).every((t=>{const e=t.trim().match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/);if(!e)return!1;const n=parseInt(e[1]),i=parseInt(e[2]),s=e[3]?parseInt(e[3]):0;return 0<=n&&n<=23&&0<=i&&i<=59&&0<=s&&s<=59})))throw new s(this)},m=function(t){if(!t.getAll(this.field).every((t=>t instanceof File&&this.accept?.some((e=>/^\.[a-z0-9]+$/i.test(e)?t.name.toLowerCase().endsWith(e.toLowerCase()):(t=>{const e=[],n=t.match(/^(? [a-z]+)\/(? [*]|[a-z0-9.+-]+)$/i);if(n){const t=n.groups.toplevel.toLowerCase(),i=n.groups.sub.toLowerCase();for(const[s,o]of(()=>{const t=new Map;return t.set("jpg|jpeg|jpe","image/jpeg"),t.set("gif","image/gif"),t.set("png","image/png"),t.set("bmp","image/bmp"),t.set("tiff|tif","image/tiff"),t.set("webp","image/webp"),t.set("ico","image/x-icon"),t.set("heic","image/heic"),t.set("asf|asx","video/x-ms-asf"),t.set("wmv","video/x-ms-wmv"),t.set("wmx","video/x-ms-wmx"),t.set("wm","video/x-ms-wm"),t.set("avi","video/avi"),t.set("divx","video/divx"),t.set("flv","video/x-flv"),t.set("mov|qt","video/quicktime"),t.set("mpeg|mpg|mpe","video/mpeg"),t.set("mp4|m4v","video/mp4"),t.set("ogv","video/ogg"),t.set("webm","video/webm"),t.set("mkv","video/x-matroska"),t.set("3gp|3gpp","video/3gpp"),t.set("3g2|3gp2","video/3gpp2"),t.set("txt|asc|c|cc|h|srt","text/plain"),t.set("csv","text/csv"),t.set("tsv","text/tab-separated-values"),t.set("ics","text/calendar"),t.set("rtx","text/richtext"),t.set("css","text/css"),t.set("htm|html","text/html"),t.set("vtt","text/vtt"),t.set("dfxp","application/ttaf+xml"),t.set("mp3|m4a|m4b","audio/mpeg"),t.set("aac","audio/aac"),t.set("ra|ram","audio/x-realaudio"),t.set("wav","audio/wav"),t.set("ogg|oga","audio/ogg"),t.set("flac","audio/flac"),t.set("mid|midi","audio/midi"),t.set("wma","audio/x-ms-wma"),t.set("wax","audio/x-ms-wax"),t.set("mka","audio/x-matroska"),t.set("rtf","application/rtf"),t.set("js","application/javascript"),t.set("pdf","application/pdf"),t.set("swf","application/x-shockwave-flash"),t.set("class","application/java"),t.set("tar","application/x-tar"),t.set("zip","application/zip"),t.set("gz|gzip","application/x-gzip"),t.set("rar","application/rar"),t.set("7z","application/x-7z-compressed"),t.set("exe","application/x-msdownload"),t.set("psd","application/octet-stream"),t.set("xcf","application/octet-stream"),t.set("doc","application/msword"),t.set("pot|pps|ppt","application/vnd.ms-powerpoint"),t.set("wri","application/vnd.ms-write"),t.set("xla|xls|xlt|xlw","application/vnd.ms-excel"),t.set("mdb","application/vnd.ms-access"),t.set("mpp","application/vnd.ms-project"),t.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),t.set("docm","application/vnd.ms-word.document.macroEnabled.12"),t.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),t.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),t.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),t.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),t.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),t.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),t.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),t.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),t.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),t.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),t.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),t.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),t.set("potm","application/vnd.ms-powerpoint.template.macroEnabled.12"),t.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),t.set("sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),t.set("sldm","application/vnd.ms-powerpoint.slide.macroEnabled.12"),t.set("onetoc|onetoc2|onetmp|onepkg","application/onenote"),t.set("oxps","application/oxps"),t.set("xps","application/vnd.ms-xpsdocument"),t.set("odt","application/vnd.oasis.opendocument.text"),t.set("odp","application/vnd.oasis.opendocument.presentation"),t.set("ods","application/vnd.oasis.opendocument.spreadsheet"),t.set("odg","application/vnd.oasis.opendocument.graphics"),t.set("odc","application/vnd.oasis.opendocument.chart"),t.set("odb","application/vnd.oasis.opendocument.database"),t.set("odf","application/vnd.oasis.opendocument.formula"),t.set("wp|wpd","application/wordperfect"),t.set("key","application/vnd.apple.keynote"),t.set("numbers","application/vnd.apple.numbers"),t.set("pages","application/vnd.apple.pages"),t})())("*"===i&&o.startsWith(t+"/")||o===n[0])&&e.push(...s.split("|"))}return e})(e).some((e=>(e="."+e.trim(),t.name.toLowerCase().endsWith(e.toLowerCase())))))))))throw new s(this)},u=function(t){if(!t.getAll(this.field).every((t=>this.accept?.some((e=>t===String(e))))))throw new s(this)},h=function(t){if(!t.getAll(this.field).every((t=>{const e=0===(n=new Date(t).getDay())?7:n;var n;return this.accept?.some((t=>e===parseInt(t)))})))throw new s(this)},g=function(t){if(t.getAll(this.field).length {"string"==typeof t&&(n+=t.length)})),0!==n&&n {"string"==typeof t&&(n+=t.length)})),parseInt(this.threshold) !(parseFloat(t) !(parseFloat(this.threshold) (t=t.trim(),!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&t (t=t.trim(),!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold {t instanceof File&&(n+=t.size)})),n {t instanceof File&&(n+=t.size)})),parseInt(this.threshold) {const r=(t.rules??[]).filter((({rule:t,...n})=>"function"==typeof e[t]&&("function"!=typeof e[t].matches||e[t].matches(n,o))));if(!r.length)return new Map;const a=new i(n),p=r.reduce(((t,n)=>{const{rule:i,...o}=n;if(t.get(o.field)?.error)return t;try{e[i].call({rule:i,...o},a)}catch(e){if(e instanceof s)return t.set(o.field,e)}return t}),new Map);for(const t of a.keys())p.has(t)||p.set(t,{validInputs:a.getAll(t)});return p},...null!==(E=window.swv)&&void 0!==E?E:{}}}()!!function(){"use strict";const e=e=>Math.abs(parseInt(e,10)),t=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},a=(e,a)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);n.has(a)&&(a=n.get(a)),Array.from(n.values()).includes(a)||(a=`custom-${a=(a=a.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");if(e.wpcf7.status=a,e.setAttribute("data-status",a),e.classList.add(a),r&&r!==a){e.classList.remove(r);const a={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,prevStatus:r};t(e,"statuschanged",a)}return a},n=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return r.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:o,path:c,endpoint:s,headers:i,body:l,data:d,...p}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),c=r?n+"/"+r:n),"string"==typeof c&&(-1!==t.indexOf("?")&&(c=c.replace("?","&")),c=c.replace(/^\//,""),o=t+c),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],d&&(l=JSON.stringify(d),i["Content-Type"]="application/json");const u={code:"fetch_error",message:"You are probably offline."},f={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(o||c||window.location.href,{...p,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw f}));throw f}))),(()=>{throw u}))}))(e)},r=[];function o(e,t={}){var n;const{target:r,scope:o=e,...l}=t;if(void 0===e.wpcf7?.schema)return;const d={...e.wpcf7.schema};if(void 0!==r){if(!e.contains(r))return;if(!r.closest(".wpcf7-form-control-wrap[data-name]"))return;if(r.closest(".novalidate"))return}const p=new FormData,u=[];for(const e of o.querySelectorAll(".wpcf7-form-control-wrap"))if(!e.closest(".novalidate")&&(e.querySelectorAll(":where( input, textarea, select ):enabled").forEach((e=>{if(e.name)switch(e.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":e.checked&&p.append(e.name,e.value);break;case"select-multiple":for(const t of e.selectedOptions)p.append(e.name,t.value);break;case"file":for(const t of e.files)p.append(e.name,t);break;default:p.append(e.name,e.value)}})),e.dataset.name&&(u.push(e.dataset.name),e.setAttribute("data-under-validation","1"),e.contains(r))))break;d.rules=(null!==(n=d.rules)&&void 0!==n?n:[]).filter((({field:e})=>u.includes(e)));const f=e.getAttribute("data-status");Promise.resolve(a(e,"validating")).then((a=>{if(void 0!==swv){const a=swv.validate(d,p,t);for(const[t,{error:n,validInputs:r}]of a)s(e,t),void 0!==n&&c(e,t,n,{scope:o}),i(e,t,null!=r?r:[])}})).finally((()=>{a(e,f),e.querySelectorAll(".wpcf7-form-control-wrap[data-under-validation]").forEach((e=>{e.removeAttribute("data-under-validation")}))}))}n.use=e=>{r.unshift(e)};const c=(e,t,a,n)=>{const{scope:r=e,...o}=null!=n?n:{},c=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),s=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",c),s&&s.id?t.insertAdjacentHTML("beforeend",` ${a}`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),r.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((t=>{if("validating"===e.getAttribute("data-status")&&!t.dataset.underValidation)return;const n=document.createElement("span");n.classList.add("wpcf7-not-valid-tip"),n.setAttribute("aria-hidden","true"),n.insertAdjacentText("beforeend",a),t.appendChild(n),t.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),t.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",c),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{n.setAttribute("style","display: none")})),n.addEventListener("click",(e=>{n.setAttribute("style","display: none")})))}))}))},s=(e,t)=>{const a=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${a}`)?.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{e.querySelector(".wpcf7-not-valid-tip")?.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},i=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function l(e,r={}){if(wpcf7.blocked)return d(e),void a(e,"submitting");const o=new FormData(e);r.submitter&&r.submitter.name&&o.append(r.submitter.name,r.submitter.value);const s={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(o,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:o};n({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:o,wpcf7:{endpoint:"feedback",form:e,detail:s}}).then((n=>{const r=a(e,n.status);return s.status=n.status,s.apiResponse=n,["invalid","unaccepted","spam","aborted"].includes(r)?t(e,r,s):["sent","failed"].includes(r)&&t(e,`mail${r}`,s),t(e,"submit",s),n})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{c(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}n.use(((e,n)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:n,detail:r}=e.wpcf7;d(n),t(n,"beforesubmit",r),a(n,"submitting")}return n(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&s(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function p(e){const r=new FormData(e),o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(r,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:r};n({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:o}}).then((n=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,a(e,"mail_sent")):a(e,"init"),o.apiResponse=n,t(e,"reset",o)})).catch((e=>console.error(e)))}n.use(((e,t)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:t,detail:n}=e.wpcf7;d(t),a(t,"resetting")}return t(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},f=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function m(t){const a=new FormData(t);t.wpcf7={id:e(a.get("_wpcf7")),status:t.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:e(a.get("_wpcf7_container_post")),parent:t.closest(".wpcf7"),schema:void 0},t.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",' ')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(t),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(t),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(t),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(t),(t=>{const a=(t,a)=>{const n=e(t.getAttribute("data-starting-value")),r=e(t.getAttribute("data-maximum-value")),o=e(t.getAttribute("data-minimum-value")),c=t.classList.contains("down")?n-a.value.length:a.value.length;t.setAttribute("data-current-value",c),t.innerText=c,r&&r {e={init:!1,...e},t.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),o=t.querySelector(`[name="${r}"]`);o&&(o.value=o.defaultValue,a(n,o),e.init&&o.addEventListener("keyup",(e=>{a(n,o)})))}))};n({init:!0}),t.addEventListener("wpcf7reset",(e=>{n()}))})(t),window.addEventListener("load",(e=>{wpcf7.cached&&t.reset()})),t.addEventListener("reset",(e=>{wpcf7.reset(t)})),t.addEventListener("submit",(e=>{wpcf7.submit(t,{submitter:e.submitter}),e.preventDefault()})),t.addEventListener("wpcf7submit",(e=>{e.detail.apiResponse.captcha&&u(t,e.detail.apiResponse.captcha),e.detail.apiResponse.quiz&&f(t,e.detail.apiResponse.quiz)})),t.addEventListener("wpcf7reset",(e=>{e.detail.apiResponse.captcha&&u(t,e.detail.apiResponse.captcha),e.detail.apiResponse.quiz&&f(t,e.detail.apiResponse.quiz)})),n({endpoint:`contact-forms/${t.wpcf7.id}/feedback/schema`,method:"GET"}).then((e=>{t.wpcf7.schema=e})),t.addEventListener("change",(e=>{e.target.closest(".wpcf7-form-control")&&wpcf7.validate(t,{target:e.target})})),t.addEventListener("wpcf7statuschanged",(e=>{const a=e.detail.status;t.querySelectorAll(".active-on-any").forEach((e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")})),t.querySelectorAll(`.inert-on-${a}`).forEach((e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")}))}))}document.addEventListener("DOMContentLoaded",(e=>{var t;"undefined"!=typeof wpcf7?void 0!==wpcf7.api?"function"==typeof window.fetch?"function"==typeof window.FormData?"function"==typeof NodeList.prototype.forEach?"function"==typeof String.prototype.replaceAll?(wpcf7={init:m,submit:l,reset:p,validate:o,...null!==(t=wpcf7)&&void 0!==t?t:{}},document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}))):console.error("Your browser does not support String.replaceAll()."):console.error("Your browser does not support NodeList.forEach()."):console.error("Your browser does not support window.FormData()."):console.error("Your browser does not support window.fetch()."):console.error("wpcf7.api is not defined."):console.error("wpcf7 is not defined.")}))}()!window.socialWarfare=window.socialWarfare||{};(function(window,$){"use strict";if(typeof $!="function"){if(typeof jQuery=="function"){var $=jQuery}else{console.log("Social Warfare requires jQuery, or $ as an alias of jQuery.Please make sure your theme provides access to jQuery before activating Social Warfare.");return}}function isString(maybeString){return typeof maybeString=="string"&&maybeString.length>0}socialWarfare.paddingTop=parseInt($("body").css("padding-top"));socialWarfare.paddingBottom=parseInt($("body").css("padding-bottom"));socialWarfare.initPlugin=function(){$("body").css({paddingTop:socialWarfare.paddingTop,paddingBottom:socialWarfare.paddingBottom});socialWarfare.establishPanels();socialWarfare.establishBreakpoint();if(!socialWarfare.panels.staticHorizontal&&!socialWarfare.panels.floatingSide&&!socialWarfare.panels.floatingHorizontal){return}socialWarfare.emphasizeButtons();socialWarfare.createFloatHorizontalPanel();socialWarfare.positionFloatSidePanel();socialWarfare.activateHoverStates();socialWarfare.handleButtonClicks();socialWarfare.updateFloatingButtons();socialWarfare.closeLightboxOverlay();socialWarfare.preloadPinterestImages();if(typeof swpPinIt=="object"&&swpPinIt.enabled==true){socialWarfare.createHoverSaveButton();socialWarfare.triggerImageListeners()}setTimeout(function(){socialWarfare.checkListeners(0,5)},2e3);var time=Date.now();var scrollDelay=50;$(window).on("scroll",function(){if(time+scrollDelay-Date.now()<0){socialWarfare.updateFloatingButtons();time=Date.now()}})};var resizeWait;socialWarfare.onWindowResize=function(){clearTimeout(resizeWait);resizeWait=setTimeout(socialWarfare.initPlugin,100)};socialWarfare.establishPanels=function(){socialWarfare.panels={staticHorizontal:null,floatingSide:null,floatingHorizontal:null};socialWarfare.panels.staticHorizontal=$(".swp_social_panel").not(".swp_social_panelSide");socialWarfare.panels.floatingSide=$(".swp_social_panelSide");return socialWarfare.panels};socialWarfare.emphasizeButtons=function(){if(typeof socialWarfare.variables.emphasizeIcons=="undefined"){return}if(socialWarfare.isMobile()){return}jQuery(".swp_social_panel:not(.swp_social_panelSide)").each(function(i,panel){jQuery(panel).find(".nc_tweetContainer:not(.total_shares)").each(function(index,button){if(index 0){event.preventDefault();window.print();return}if(true===$(this).hasClass("pinterest_multi_image_select")){event.preventDefault();socialWarfare.openMultiPinterestOverlay($(this));return}if($(this).parent(".swp_more").length>0){event.preventDefault();socialWarfare.openMoreOptions($(this));return}if($(this).hasClass("noPop")){return event}if("undefined"==typeof $(this).data("link")&&false===$(this).is(".swp-hover-pin-button")){return event}event.preventDefault();var href=$(this).data("link").replace("'","'");var height,width,top,left,instance,windowAttributes,network;height=270;width=500;if($(this).is(".swp_pinterest a, .buffer_link a, .flipboard a, .swp-hover-pin-button")){height=550;width=775}if($(this).hasClass("nc_tweet")){network=$(this).parents(".nc_tweetContainer").data("network")}else if($(this).hasClass("swp_CTT")){network="ctt"}top=window.screenY+(window.innerHeight-height)/2;left=window.screenX+(window.innerWidth-width)/2;windowAttributes="height="+height+",width="+width+",top="+top+",left="+left;instance=window.open(href,network,windowAttributes);socialWarfare.trackClick(network)})};socialWarfare.openMultiPinterestOverlay=function(element){if($(".pinterest-overlay").length>0){$(".pinterest-overlay").fadeIn();$(".swp-lightbox-inner").scrollTop(0);return}var html="";var pin_data=element.data("pins");var pin_images="";pin_data.images.forEach(function(image){var share_url="https://pinterest.com/pin/create/button/?url="+pin_data.url+"&media="+image+"&description="+encodeURIComponent(pin_data.description);var pin_html="";pin_html+='
';pin_html+=' ';pin_html+=' Save';pin_html+="
";pin_images+=pin_html});html+='
';html+=' ';html+='
';html+="
Which image would you like to pin?
";html+='
';html+=pin_images;html+="
";html+=socialWarfare.buildPoweredByLink();html+="
";$("body").append(html);$(".pinterest-overlay").hide().fadeIn();socialWarfare.handleButtonClicks();var max_height=999999;var iteration=0,images=$(".pinterest-overlay .pin_images_wrapper img");images.load(function(){if(++iteration===images.length){images.each(function(){if($(this).height() ';anchor_tag_close=""}html='
'+anchor_tag_open+' Powered by '+anchor_tag_close+"
"}return html};socialWarfare.preloadPinterestImages=function(){if($(".pinterest_multi_image_select").length<1){return}var pin_data=$(".pinterest_multi_image_select").data("pins");pin_data.images.forEach(function(image_url){var image_object=new Image;image_object.src=image_url})};socialWarfare.openMoreOptions=function(element){if($(".swp-more-wrapper").length>0){$(".swp-more-wrapper").fadeIn();return}var post_id=element.parents(".swp_social_panel").data("post-id");var data={action:"swp_buttons_panel",post_id:post_id,_ajax_nonce:swp_nonce};jQuery.post(swp_ajax_url,data,function(response){$("body").append(response);$(".swp-lightbox-wrapper").hide().fadeIn();socialWarfare.activateHoverStates();socialWarfare.handleButtonClicks()})};socialWarfare.closeLightboxOverlay=function(){$("body").on("click",".swp-lightbox-close",function(){$(".swp-lightbox-wrapper").fadeOut()});$(document).on("keyup",function(e){if(e.key==="Escape"){$(".swp-lightbox-wrapper").fadeOut()}})};socialWarfare.createFloatHorizontalPanel=function(){if(!socialWarfare.panels.staticHorizontal.length){return}var floatLocation=socialWarfare.panels.staticHorizontal.data("float");var mobileFloatLocation=socialWarfare.panels.staticHorizontal.data("float-mobile");var backgroundColor=socialWarfare.panels.staticHorizontal.data("float-color");var wrapper=$('
');var barLocation="";if($(".nc_wrapper").length){$(".nc_wrapper").remove()}if($(".swp_floating_horizontal_wrapper").length){$(".swp_floating_horizontal_wrapper").remove()}if(floatLocation!="top"&&floatLocation!="bottom"&&mobileFloatLocation!="top"&&mobileFloatLocation!="bottom"){return}if(socialWarfare.isMobile()){barLocation=mobileFloatLocation}else{barLocation=floatLocation}wrapper.addClass(barLocation).hide().appendTo("body");socialWarfare.panels.floatingHorizontal=socialWarfare.panels.staticHorizontal.first().clone();socialWarfare.panels.floatingHorizontal.addClass("nc_floater").appendTo(wrapper);socialWarfare.updateFloatingHorizontalDimensions();$(".swp_social_panel .swp_count").css({transition:"padding .1s linear"})};socialWarfare.updateFloatingHorizontalDimensions=function(){if(!socialWarfare.panels.staticHorizontal.length){return}if(!socialWarfare.panels.floatingHorizontal){return}var width="100%";var left=0;var panel=socialWarfare.panels.staticHorizontal;var parent=panel.parent();if(parent.hasClass("swp-hidden-panel-wrap")){parent=parent.parent()}if("undefined"!==typeof panel.offset().left){left=panel.offset().left}if("undefined"!==typeof panel.width()){width=panel.width()}if(left==0){left=parent.offset().left}if(width==100||width==0){width=parent.width()}socialWarfare.panels.floatingHorizontal.css({width:width,left:left})};socialWarfare.staticPanelIsVisible=function(){var visible=false;var scrollPos=$(window).scrollTop();$(".swp_social_panel").not(".swp_social_panelSide, .nc_floater").each(function(index){var offset=$(this).offset();if(typeof socialWarfare.floatBeforeContent!="undefined"&&"1"!=socialWarfare.floatBeforeContent){var theContent=$(".swp-content-locator").parent();if(index===0&&theContent.length&&theContent.offset().top>scrollPos+$(window).height()){visible=true}}if($(this).is(":visible")&&offset.top+$(this).height()>scrollPos&&offset.top 0};socialWarfare.toggleFloatingHorizontalPanel=function(){if(!socialWarfare.hasReferencePanel()){return}if(!socialWarfare.panels.floatingHorizontal){return}var panel=socialWarfare.panels.floatingHorizontal.first();var location=socialWarfare.isMobile()?$(panel).data("float-mobile"):$(panel).data("float");var newPadding=location=="bottom"?socialWarfare.paddingBottom:socialWarfare.paddingTop;var paddingProp="padding-"+location;if(location=="off"){return}if(socialWarfare.staticPanelIsVisible()){$(".nc_wrapper, .swp_floating_horizontal_wrapper").hide();if(socialWarfare.isMobile()&&$("#wpadminbar").length){$("#wpadminbar").css("top",0)}}else{newPadding+=50;$(".nc_wrapper, .swp_floating_horizontal_wrapper").show();if(socialWarfare.isMobile()&&location=="top"&&$("#wpadminbar").length){$("#wpadminbar").css("top",panel.parent().height())}}$("body").css(paddingProp,newPadding)};socialWarfare.positionFloatSidePanel=function(){var panelHeight,windowHeight,offset;var sidePanel=socialWarfare.panels.floatingSide;if(!sidePanel||!sidePanel.length){return}if(sidePanel.hasClass("swp_side_top")||sidePanel.hasClass("swp_side_bottom")){return}panelHeight=sidePanel.outerHeight();windowHeight=window.innerHeight;if(panelHeight>windowHeight){return sidePanel.css("top",0)}offset=(windowHeight-panelHeight)/2;sidePanel.css("top",offset)};socialWarfare.createHoverSaveButton=function(){if($(".tve_editor_page").length){$(".sw-pinit-button").remove();$(".sw-pinit").each(function(){var inner_content=$(".sw-pinit").contents();$(this).replaceWith(inner_content)});return}var button=$(document.createElement("a"));button.css("display: none");button.addClass("swp-hover-pin-button");button.text("Save");socialWarfare.hoverSaveButton=$(button);return button};socialWarfare.triggerImageListeners=function(){$(".swp-content-locator").parent().find("img").off("mouseenter",socialWarfare.renderPinterestSaveButton);$(".swp-content-locator").parent().find("img").on("mouseenter",socialWarfare.renderPinterestSaveButton);setTimeout(socialWarfare.triggerImageListeners,2e3)};socialWarfare.getPinMedia=function(image){if(isString(swpPinIt.image_source)){return swpPinIt.image_source}if(isString(image.attr("src"))){return image.attr("src")}var dataSources=["src","lazy-src","media"];var media="";dataSources.some(function(maybeSource){if(isString(image.data(maybeSource))){media=image.data(maybeSource);return true}});if(media==""){return}var i=$(" ");i.attr("src",media);return i.prop("src")};socialWarfare.getPinDescription=function(image){if(isString(image.data("pin-description"))){return image.data("pin-description")}if(isString(swpPinIt.image_description)){return swpPinIt.image_description}if(isString(image.attr("title"))){return image.attr("title")}if(isString(image.attr("alt"))){return image.attr("alt")}if(isString(swpPinIt.post_title)){return swpPinIt.post_title}};socialWarfare.enablePinterestSaveButtons=function(){jQuery("img").on("mouseenter",function(){var pinterestBrowserButtons=socialWarfare.findPinterestBrowserSaveButtons();if(typeof pinterestBrowserButtons!="undefined"&&pinterestBrowserButtons){socialWarfare.removePinterestBrowserSaveButtons(pinterestBrowserButtons)}})};socialWarfare.toggleHoverSaveDisplay=function(image){var top=image.offset().top;var left=image.offset().left;var vMargin=15;var hMargin=15;var button_size=swpPinIt.button_size||1;var buttonHeight=24;var buttonWidth=120;switch(swpPinIt.vLocation){case"top":top+=vMargin;break;case"middle":var offset=image.height()/2-vMargin/2-buttonHeight/2;top+=offset;break;case"bottom":top+=image.height()-vMargin-buttonHeight;break}switch(swpPinIt.hLocation){case"left":left+=hMargin;break;case"center":var offset=image.width()/2-hMargin/2-buttonWidth/2;left+=offset;break;case"right":left+=image.width()-hMargin-buttonWidth;break}socialWarfare.hoverSaveButton.css({top:top,left:left,transform:"scale("+button_size+")","transform-origin":swpPinIt.vLocation+" "+swpPinIt.hLocation});image.on("mouseleave",function(event){if(event.relatedTarget!=null&&event.relatedTarget.className=="swp-hover-pin-button"){return}$(".swp-hover-pin-button").remove()});$(document.body).append(socialWarfare.hoverSaveButton)};socialWarfare.renderPinterestSaveButton=function(event){if(event.relatedTarget&&event.relatedTarget.className=="swp-hover-pin-button"){return}if($(".swp-hover-pin-button").length>0){return}var image=$(event.target);if(typeof swpPinIt.disableOnAnchors!=undefined&&swpPinIt.disableOnAnchors){if(image.parents().filter("a").length){return}}if(image.outerHeight() limit){return}var panel=$(".swp_social_panel");if(panel.length>0&&panel.find(".swp_pinterest")){socialWarfare.handleButtonClicks();return}setTimeout(function(){socialWarfare.checkListeners(++count,limit)},2e3)};socialWarfare.establishBreakpoint=function(){var panel=$(".swp_social_panel");socialWarfare.breakpoint=1100;if(panel.length&&panel.data("min-width")||panel.data("min-width")==0){socialWarfare.breakpoint=parseInt(panel.data("min-width"))}};socialWarfare.isMobile=function(){return $(window).width() ').attr($.extend(args(this),{'type':'text'}));} $replacement.removeAttr('name').data({'placeholder-password':$input,'placeholder-id':id}).bind('focus.placeholder',clearPlaceholder);$input.data({'placeholder-textinput':$replacement,'placeholder-id':id}).before($replacement);} $input=$input.removeAttr('id').hide().prev().attr('id',id).show();} $input.addClass('placeholder');$input[0].value=$input.attr('placeholder');}else{$input.removeClass('placeholder');}} function safeActiveElement(){try{return document.activeElement;}catch(exception){}}}(this,document,jQuery));(function($){$('input, textarea').placeholder();})(jQuery)!jQuery(function(){jQuery('body').prepend('
');var scrollButtonEl=jQuery('.scroll-top');scrollButtonEl.hide();jQuery(window).scroll(function(){if(jQuery(window).scrollTop()<20){jQuery('.scroll-top').fadeOut();}else{jQuery('.scroll-top').fadeIn();}});scrollButtonEl.click(function(){jQuery("html, body").animate({scrollTop:0},300);return false;});})!jQuery(document).ready(function($){var stickyHeaderTop=$('.menu-box-container').offset().top;$(window).scroll(function(){if($(window).scrollTop()>stickyHeaderTop){$('.menu-box-wrapper').addClass("sticky-nav");}else{$('.menu-box-wrapper').removeClass("sticky-nav");}});})!window.selectnav=(function(){"use strict";var selectnav=function(element,options){element=document.getElementById(element);if(!element){return;} if(!islist(element)){return;} document.documentElement.className+=" js";var o=options||{},activeclass=o.activeclass||'active',autoselect=typeof(o.autoselect)==="boolean"?o.autoselect:true,nested=typeof(o.nested)==="boolean"?o.nested:true,indent=o.indent||"→",label=o.label||HappenStanceSiteParameters.message_menu,level=0,selected=" selected ";element.insertAdjacentHTML('afterend',parselist(element));var nav=document.getElementById(id());if(nav.addEventListener){nav.addEventListener('change',goTo);} if(nav.attachEvent){nav.attachEvent('onchange',goTo);} return nav;function goTo(e){var targ;if(!e)e=window.event;if(e.target)targ=e.target;else if(e.srcElement)targ=e.srcElement;if(targ.nodeType===3) targ=targ.parentNode;if(targ.value)window.location.href=targ.value;} function islist(list){var n=list.nodeName.toLowerCase();return(n==='ul'||n==='ol');} function id(nextId){for(var j=1;document.getElementById('selectnav'+j);j++);return(nextId)?'selectnav'+j:'selectnav'+(j-1);} function parselist(list){level++;var length=list.children.length,html='',prefix='',k=level-1;if(!length){return;} if(k){while(k--){prefix+=indent;} prefix+=" ";} for(var i=0;i '+prefix+text+'';if(nested){var subElement=list.children[i].children[1];if(subElement&&islist(subElement)){html+=parselist(subElement);}}}} if(level===1&&label){html=' '+html;} if(level===1){html=' ';} level--;return html;}};return function(element,options){selectnav(element,options);};})()!selectnav('nav');selectnav('nav-2')!document.addEventListener("DOMContentLoaded",(e=>{var t;wpcf7_recaptcha={...null!==(t=wpcf7_recaptcha)&&void 0!==t?t:{}};const c=wpcf7_recaptcha.sitekey,{homepage:n,contactform:a}=wpcf7_recaptcha.actions,o=e=>{const{action:t,func:n,params:a}=e;grecaptcha.execute(c,{action:t}).then((e=>{const c=new CustomEvent("wpcf7grecaptchaexecuted",{detail:{action:t,token:e}});document.dispatchEvent(c)})).then((()=>{"function"==typeof n&&n(...a)})).catch((e=>console.error(e)))};if(grecaptcha.ready((()=>{o({action:n})})),document.addEventListener("change",(e=>{o({action:a})})),"undefined"!=typeof wpcf7&&"function"==typeof wpcf7.submit){const e=wpcf7.submit;wpcf7.submit=(t,c={})=>{o({action:a,func:e,params:[t,c]})}}document.addEventListener("wpcf7grecaptchaexecuted",(e=>{const t=document.querySelectorAll('form.wpcf7-form input[name="_wpcf7_recaptcha_response"]');for(let c=0;c e.length)&&(t=e.length);for(var n=0,r=new Array(t);n ]+/g,type:"g1"},floats:{regex:/[\b\W](-?((?:\d+\.\d+|\.\d+|\d+\.)(?:e[+-]?\d+)?)|\d+(?:e[+-]?\d+))/gi,type:"n0"},complex:{regex:/[\b\W](?:-?(?:(?:\d+\.\d+|\.\d+|\d+\.|\d+)(?:e[+-]?\d+)?)|\d+(?:e[+-]?\d+))[ij]/gi,type:"n5"},int:{regex:/[\b\W](-?\d+)(?!\.)\b/g,type:"n1"},hex:{regex:/[\b\W](-?0x[A-F0-9]+)\b/gi,type:"n2"},bin:{regex:/[\b\W](-?0b[01]+)\b/gi,type:"n3"},octal:{regex:/[\b\W](-?0[0-7]+)(?!\.)\b/g,type:"n4"},prop:{regex:/[\w\])]\.(\w+)\b/g,type:"m3"},fCalls:{regex:/\b([\w]+)\s*\(/gm,type:"m0"},mCalls:{regex:/\.([\w]+)\s*\(/gm,type:"m1"},boolean:{regex:/\b(true|false)\b/gi,type:"e0"},null:{regex:/\b(null)\b/gi,type:"e1"}};function b(e,t,n,r,i){return{text:e,type:t,index:r||0,end:e.length+r,filter:n||null,priority:i||0}}function B(){(console.error||console.log||function(){}).apply(void 0,arguments)}function Z(e,t,n){for(var r=2 =c?t.type[c-1]:s,g=Array.isArray(t.filter)&&t.filter.length>=c?t.filter[c-1]:o,u=r[0].indexOf(r[c],p),i.push(b(r[c],l,g,r.index+(p=u),n)));else i.push(b(r[0],s,o,r.index,n))}}return i}(e,s,a),i=i.concat(o)}catch(e){B(e)}}i=i.sort(function(e,t){return e.index==t.index?e.priority =g){u=f-1,y=!0;break}if(!1===y)break}return g )/gi,type:["g1","x1","text","g1"],filter:[null,null,function(e){return f(e,c.dqStrings.regex,function(e){return[b(e[0],"s0")]})},null]},{regex:/(<\/)([A-Z:_][A-Z0-9:.-]*\s*)(>)/gi,type:["g1","x1","g1"]},{regex:/^\s*([A-Z]\w+)\b/gm,type:"k0"},{regex:/%\{\w+\}/g,type:"k7"},{regex:/\b(on|off)\b/gi,type:"e0"},c.int]}}],[{key:"alias",value:function(){return["apacheconf","httpd","htaccess"]}}]),t}(),M=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[{regex:/(;.*)$/gm,type:"co0"},{regex:/(\$.*)$/gm,type:"k4"},c.sqStrings,c.dqStrings,{regex:/(^|:)\s*?(\w+)\s+/gm,type:"k0"},{regex:/^\s*?([A-Z?_][A-Z0-9?_]+:)\s*?/gim,type:"k6"},{regex:/@\w+/gi,type:"k9"},{regex:/#\w+/gi,type:"k9"},{regex:/[A-F0-9][A-F0-9$]+?H/gi,type:"n2"},{regex:/\d[\d$]+?D/gi,type:"n1"},{regex:/[01][01$]+?B/gi,type:"n3"},{regex:/[0-7][0-7$]+?(?:Q|O)/gi,type:"nu4"},{regex:/(0x[A-F0-9]+|\$[A-F0-9]+)/gi,type:"n2"},{regex:/(0b[01]+)/g,type:"n3"},{regex:/\b(\d+)/g,type:"n1"},c.fCalls]}}],[{key:"alias",value:function(){return["asm"]}}]),t}(),U=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[{regex:/(;.*)$/gm,type:"co0"},c.sqStrings,c.dqStrings,{regex:/^\s*?\.\w+\s+/gm,type:"kw4"},{regex:/\b(r\d{1,2})/gi,type:"kw0"},{regex:/(@[0-9])/gi,type:"k2"},{regex:/^\s*?(\w+:)\s*?/gm,type:"kw6"},{regex:/(^|:)\s*?(\w+)\s+/gm,type:"kw0"},{regex:/(0x[A-F0-9]+|\$[A-F0-9]+)/gi,type:"nu2"},c.bin,c.int,c.fCalls,{regex:/\b[A-Z]{2,}[0-9]?[0-9]?\b/g,type:"kw9"}]}}],[{key:"alias",value:function(){return["avrasm"]}}]),t}(),G=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.dqStrings,{regex:/(?:^|\b)(REM)(.*)?$/gim,type:["k0","c0"]},{regex:/^(::.*)$/gim,type:"c0"},{regex:/%%\w+/gi,type:"s4"},{regex:/(%[\d*])\b/gi,type:"k9"},{regex:/(%\w+%)/gi,type:"k7"},{regex:/\b(\w+)=/gi,type:["k0","k7"]},{regex:/\s(\/\w)\s/gi,type:"k8"},{regex:/\b(echo)\s+(.*)$/gim,type:["k1","text"]},{regex:/\s*(:[\w_]+)\s*/gi,type:"k6"},{regex:/\b(goto)\s+([\w_]+)\b/gi,type:["k1","k6"]},{regex:/\b(if|else|for|in|do|echo|goto)\b/gi,type:"k1"},{regex:/\b(set)\b/gi,type:"k0"},{regex:/\b(not@equ)\b/gi,type:"k3"},{regex:/\b(on|off)\b/gi,type:"e0"},{regex:/\b(nul)\b/gi,type:"e1"},c.mCalls,c.int]}}],[{key:"alias",value:function(){return["bat","cmd"]}}]),t}(),H=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.dqStrings,c.char,{regex:/@[\W\w_][\w]+/gm,type:"k11"},c.boolean,c.null,c.prop,{regex:/#.*$/gm,type:"k4"},{regex:/\b(break|case|catch|continue|do|else|for|if|goto|switch|try|throw|while)\b/g,type:"k1"},{regex:/\b(__[A-Z][A-Z0-9_]+__|__cplusplus)\b/g,type:"e3"},{regex:/\b(\w+\d+?_t)\b/g,type:"k5"},{regex:/\b(bool|char|double|float|int|long|short|void)\b/g,type:"k5"},{regex:/\b(enum|struct|typedef|union)\b/g,type:"k2"},{regex:/\b(const|volatile|unsigned|signed|restrict)\b/g,type:"k8"},{regex:/\b(asm|auto|class|auto|default|explicit|export|extern|friend|inline|thread_local|static_assert|nullptr|noexcept|friend|decltype|constexpr|alignof|alignas|virtual|using|typename|typeid|this|template|static|return|register|public|protected|private|operator|namespace|mutable|inline)\b/g,type:"k0"},{regex:/\b(new|delete|cast|const_cast|dynamic_cast|static_cast|reinterpret_cast|sizeof|and|bitand|and_eq|not|not_eq|or|bitor|or_eq|xor|xor_eq|compl)\b/g,type:"k3"},c.mCalls,c.fCalls,c.slashComments,c.blockComments,c.octal,c.bin,c.hex,c.floats,c.brackets]}}],[{key:"alias",value:function(){return["c++","c"]}}]),t}(),V=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[{regex:/\$("(?:[^"\\]|\\.)*")/g,type:"s0",filter:function(e){return f(e,/\{.*?}/g,function(e){return[b(e[0],"s3")]})}},c.dqStrings,c.char,c.null,c.boolean,c.prop,{regex:/\b(bool|byte|char|decimal|double|float|int|long|sbyte|short|uint|ulong|ushort|void|string)\b/g,type:"k5"},{regex:/\b(while|try|throw|switch|if|goto|foreach|for|finally|else|do|continue|catch|case|break)\b/g,type:"k1"},{regex:/^((?:using|namespace)\s+)(\w[\w._]+[;{\n])/gm,type:["k0","k10"]},{regex:/\b(enum|struct|var)\b/g,type:"k2"},{regex:/\b(const|in|out)\b/g,type:"k8"},{regex:/\b(using|volatile|virtual|using|unsafe|unchecked|static|stackalloc|sealed|return|ref|readonly|public|protected|private|params|override|operator|object|namespace|lock|is|internal|interface|implicit|fixed|extern|explicit|event|delegate|default|class|checked|base|as|abstract)\b/g,type:"k0"},{regex:/\b(add|alias|ascending|async|await|by|descending|dynamic|equals|from|get|global|group|into|join|let|nameof|on|orderby|partial|remove|select|set|unmanaged|value|var|when|where|yield)\b/g,type:"k0"},{regex:/\b(this)\b/g,type:"k9"},{regex:/\b(new|sizeof|typeof)\b/g,type:"k3"},c.fCalls,c.mCalls,c.slashComments,c.blockComments,c.docComments,c.int,c.floats,c.bin,c.hex,c.octal,c.brackets]}}],[{key:"alias",value:function(){return["c#"]}}]),t}(),d={pseudoElements:{regex:/[\w\])](::?[\w-]+)\b/g,type:"x15"},idSelector:{regex:/(#[\w-]+)/g,type:"x10"},classSelector:{regex:/(\.[\w-]+)/g,type:"x11"},elementSelector:{regex:/\b([\w-]+)/g,type:"x16"}},h=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){var t=[d.pseudoElements,d.idSelector,d.classSelector,d.elementSelector,c.dqStrings,c.sqStrings];this.rules=[{regex:/(?:^|}|\*\/|;|{)\s*([^{};/]+?)\s*{/g,type:"text",filter:function(e){return Z(e.text,t)}},c.dqStrings,c.sqStrings,{regex:/\W@(charset|import|namespace|page|font-face|keyframes|viewport|document|supports)\b/gi,type:"k4"},{regex:/(url\s*)(\(.*?\))/gi,type:["m0","s0"]},{regex:/(#[a-z0-9]+)\W/gi,type:"x14"},{regex:/(-?\.?\d+[.\d]*(%|[a-z]{2,4})?)/gim,type:"x13"},{regex:/([\w-]+)\s*:/g,type:"x12"},c.blockComments,c.brackets]}}],[{key:"alias",value:function(){return["styles"]}}]),t}(),J=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[{regex:/^("""[\s\S]*?"""|'''[\s\S]*?''')/gm,type:"c9"},{regex:/("""[\s\S]*?"""|'''[\s\S]*?''')/g,type:"s5"},c.dqStrings,c.sqStrings,{regex:/\b(__[a-z]+__)\b/g,type:"e3"},{regex:/[^;]\s*(from\s+)([\w.]+)(\s+import)/gi,type:["k0","k10","k0"]},{regex:/\b(raise|while|try|if|for|finally|else|elif|continue|break)\b/g,type:"k1"},{regex:/\b(yield|with|return|pass|lambda|is|in|import|global|from|except|def|class|assert|as|async|await)\b/g,type:"k0"},{regex:/\b(and|or|not|del)\b/g,type:"k3"},{regex:/\b(True|False)\b/g,type:"e0"},{regex:/\b(None)\b/g,type:"e1"},c.mCalls,c.fCalls,c.poundComments,c.int,c.hex,c.floats,c.octal,c.brackets]}}],[{key:"alias",value:function(){return["py"]}}]),t}(),Y=function(){i(t,J);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){l(a(t.prototype),"setupLanguage",this).call(this);this.rules=[{regex:/\b(bool|char|double|float|int|long|short|void)\b/g,type:"k5"},{regex:/\b(enum|struct|typedef|union|object)\b/g,type:"k2"},{regex:/\b(const|volatile|unsigned|signed|restrict)\b/g,type:"k8"},{regex:/\b(readonly|extern|namespace|public|privat|include|cimport|pyximport|cythonize|cdef|cpdef|ctypedef|property|IF|ELIF|ELSE|DEF)\b/g,type:"k0"}].concat(this.rules)}}],[{key:"alias",value:function(){return[]}}]),t}(),X=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.poundComments,c.brackets,{regex:/\[(\w+)\]/gm,type:"k9"},{regex:/\{([\w_-]+)\s*(?::\s*(.*?))?}/gm,type:["k7","s0"]}]}}]),t}(),K=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){function e(e){return f(e,/\\(x[A-F0-9]{2}|u[A-F0-9]{4}|.)/gi,function(e){return[b(e[0],"s4")]})}this.rules=[{regex:/@[\W\w_][\w]+/gm,type:"k11"},{regex:c.sqStrings.regex,type:"s0",filter:e},{regex:c.dqStrings.regex,type:"s0",filter:e},{regex:/`(?:[^`\\]|\\.)*`/g,type:"s2",filter:function(e){return f(e,/\$\{.*?}/g,function(e){return[b(e[0],"s3")]})}},c.boolean,c.null,c.prop,{regex:/\b(var|dynamic|enum|const)\b/g,type:"k2"},{regex:/\b(bool|int|num|double|String|Number|Map|List|Set|Symbol|Boolean|void|Object)\b/g,type:"k5"},{regex:/\b(break|case|catch|continue|do|else|finally|for|if|switch|try|while|throw|rethrow)\b/g,type:"k1"},{regex:/\b(abstract|as|assert|async|await|class|covariant|default|deferred|export|extends|extension|external|factory|false|final|from|Function|get|hide|implements|import|in|inferface|is|late|library|mixin|null|on|operator|part|required|return|set|show|static|sync|true|typedef|with|yield)\b/g,type:"k0"},{regex:/\b(this|super)\b/g,type:"k9"},{regex:/\W(=>)\W/g,type:"k3"},{regex:/\.{3}/g,type:"k3"},c.slashComments,c.blockComments,c.docComments,{regex:/(?:^|[^\\])(\/\/\/.*)$/gm,type:"c1"},c.mCalls,c.fCalls,c.octal,c.bin,c.hex,c.floats,c.int,c.brackets]}}]),t}(),Q=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[{regex:/^([+-]{3}.*)$/gm,type:"c0"},{regex:/^(@@.*@@\s*)/gm,type:"t2"},{regex:/^(\+.*)/gm,type:"t5"},{regex:/^(-.*)/gm,type:"t6"}]}}]),t}(),ee=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.dqStrings,{regex:/\$\{\w+\}/gi,type:"k7"},{regex:/ARG\s+(\w+)(?:(=)(.*?)$)?/gim,type:["k7","k3","s0"]},{regex:/ENV\s+(\w+)(?:(\s+|=)(.*?)$)?/gim,type:["k7","k3","s0"]},{regex:/(?:^|[^\\])#\s*\w+=.*$/gm,type:"k4"},c.poundComments,{regex:/^([a-z]+)\b/gim,type:"k0"},{regex:/\b(AS)\b/gi,type:"k0"},{regex:/^\s+(&&)/gim,type:"k3"},c.brackets]}}],[{key:"alias",value:function(){return["docker"]}}]),t}(),te=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.dqStrings,c.bqStrings,c.char,c.boolean,{regex:/\b(nil)\b/gi,type:"e1"},c.prop,{regex:/\b(var)\b/g,type:"k2"},{regex:/\b(case|break|default|else|goto|switch|if|continue|for)\b/g,type:"k1"},{regex:/\b(func|interface|select|defer|go|map|chan|package|fallthrough|range|import|return)\b/g,type:"k0"},{regex:/\b(iota)\b/g,type:"k9"},{regex:/\b(bool|string|u?int(8|16|32|64)?|uintptr|byte|rune|float32|float64|complex64|complex128)\b/g,type:"k5"},{regex:/\b(struct|type)\b/g,type:"k2"},{regex:/\b(const)\b/g,type:"k8"},c.mCalls,c.fCalls,c.slashComments,c.octal,c.int,c.complex,c.floats,c.hex,c.brackets]}}],[{key:"alias",value:function(){return["golang"]}}]),t}(),ne=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[{regex:/("""[\s\S]*?"""|'''[\s\S]*?''')/g,type:"s5"},c.dqStrings,c.sqStrings,c.char,c.slashComments,c.blockComments,c.docComments,{regex:/(\/(?:[^/\\]|\\.)*\/)/g,type:"s5"},c.prop,{regex:/\b(byte|char|short|int|long|float|double|String)\b/g,type:"k5"},{regex:/\b(break|case|catch|continue|default|do|else|finally|for|goto|if|switch|throw|try|while)\b/g,type:"k1"},{regex:/^(package|import)(\s+[\w.]+)/gm,type:["k0","k10"]},{regex:/\b(const|enum|def)\b/g,type:"k2"},{regex:/\b(as|assert|class|extends|goto|implements|in|interface|return|thows|trait)\b/g,type:"k0"},{regex:/\b(this|super)\b/g,type:"k9"},{regex:/\b(instanceof|new)\b/g,type:"k3"},c.fCalls,c.mCalls,c.null,c.boolean,{regex:/^#.*/g,type:"k9"},{regex:/[\b\W](-?0[0-7][0-7_]+[GLIDF]?)\b/gi,type:"n4"},{regex:/[\b\W](-?\d[\d_]*[GLIDF]?)(?!\.)\b/gi,type:"n1"},{regex:/[\b\W](-?0x[A-F0-9][A-F0-9_]+[GLIDF]?)\b/gi,type:"n2"},{regex:/[\b\W](-?0b[01][01_]+[GLIDF]?)\b/gi,type:"n3"},{regex:/(-?((?:\d+\.\d+|\.\d+|\d+\.)(?:e[+-]?\d+)?)|\d+(?:e[+-]?\d+)?)/gi,type:"n0"},c.brackets]}}]),t}(),re=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.dqStrings,{regex:/(;.*)$/gm,type:"c0"},c.poundComments,{regex:/^\s*?(\[.*])\s*?$/gm,type:"t2"},{regex:/^(\s*?[a-z0-9._-]+\s*?)(=)/gim,type:["k2","k3"]},{regex:/\b(true|false|on|off|yes|no)\b/gim,type:"e0"},c.octal,c.bin,c.hex,c.floats,c.brackets]}}],[{key:"alias",value:function(){return["conf","cnf"]}}]),t}(),ie=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.dqStrings,c.char,{regex:/@[\W\w_][\w]+/gm,type:"k11"},c.prop,{regex:/\b(boolean|byte|char|short|int|long|float|double|String|void|Integer|Double|BigInt|Float|Boolean|Byte|Char|Long)\b/g,type:"k5"},{regex:/\b(while|try|catch|case|else|throw|break|if|do|goto|switch|for|continue)\b/g,type:"k1"},{regex:/^(package|import)(\s+[\w.]+)/gm,type:["k0","k10"]},{regex:/\b(enum)\b/g,type:"k2"},{regex:/\b(const)\b/g,type:"k8"},{regex:/\b(native|volatile|strictfp|finally|class|static|interface|final|extends|transient|return|throws|public|protected|implements|private|synchronized|default|assert|abstract)\b/g,type:"k0"},{regex:/\b(this|super)\b/g,type:"k9"},{regex:/\b(instanceof|new)\b/g,type:"k3"},c.fCalls,c.mCalls,c.null,c.boolean,c.slashComments,c.blockComments,c.docComments,c.int,c.floats,c.bin,c.hex,c.octal,c.brackets]}}]),t}(),x=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){function e(e){return f(e,/\\(x[A-F0-9]{2}|u[A-F0-9]{4}|.)/gi,function(e){return[b(e[0],"s4")]})}this.rules=[{regex:c.sqStrings.regex,type:"s0",filter:e},{regex:c.dqStrings.regex,type:"s0",filter:e},{regex:/`(?:[^`\\]|\\.)*`/g,type:"s2",filter:function(e){return f(e,/\$\{.*?}/g,function(e){return[b(e[0],"s3")]})}},c.boolean,c.null,c.prop,{regex:/\b(var|let|enum|const)\b/g,type:"k2"},{regex:/\b(document|window|console)\b/g,type:"k9"},{regex:/\b(break|case|catch|continue|do|else|finally|for|if|switch|try|while|throw)\b/g,type:"k1"},{regex:/\b(as|async|class|constructor|debugger|default|export|extends|function|import|return|with|yield|implements|package|protected|static|interface|private|public|await|module)\b/g,type:"k0"},{regex:/\b(this|super)\b/g,type:"k9"},{regex:/\b(instanceof|new|delete|typeof|void|in)\b/g,type:"k3"},{regex:/\W(=>)\W/g,type:"k3"},c.slashComments,c.blockComments,{regex:/\W(\/(?:[^/\\\n]|\\.)*\/\w*)/g,type:"e2"},c.mCalls,c.fCalls,{regex:/\{|}|\(|\)|\[|]/g,type:"g1"},{regex:/[\b\W](-?0o[0-7]+)(?!\.)\b/g,type:"n4"},c.bin,c.hex,c.floats,c.int]}}],[{key:"alias",value:function(){return["js"]}}]),t}(),ae=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[{regex:/"(?:[^"\\]|\\.)*"\s*:/g,type:"k2"},c.dqStrings,c.boolean,c.null,{regex:/\{|}|\(|\)|\[|]/g,type:"g1"},c.int,c.floats,{regex:/,|:/g,type:"g0"}]}}]),t}(),se=function(){i(t,x);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){l(a(t.prototype),"setupLanguage",this).call(this);this.rules=this.rules.concat([{regex:/(<)([A-Z:_][A-Z0-9:.-]*)([\s\S]*?)(\/?>)/gi,type:["g1","x1","text","g1"],filter:[null,null,null,null]},{regex:/(<\/)([A-Z:_][A-Z0-9:.-]*\s*)(>)/gi,type:["g1","x1","g1"]}])}}],[{key:"alias",value:function(){return[]}}]),t}(),oe=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){function e(e){return f(e,/\$(?:\{.*?}|\w+)/g,function(e){return[b(e[0],"s3")]})}this.rules=[{regex:/"""[\s\S]*?"""/g,type:"s5",filter:e},{regex:c.dqStrings.regex,type:"s0",filter:e},c.char,c.prop,{regex:/\b(Double|Float|Long|Int|Short|Byte|Any|String|Array)\b/g,type:"k5"},{regex:/\b(break|continue|do|else|for|if|throw|try|when|while|catch|finally)\b/g,type:"k1"},{regex:/^(package|import)(\s+[\w.]+)/gm,type:["k0","k10"]},{regex:/\b(enum|typealias|object|companion|val|var)\b/g,type:"k2"},{regex:/\b(actual|abstract|annotation|companion|crossinline|data|expect|external|final|infix|inline|inner|internal|lateinit|noinline|open|operator|out|override|private|protected|public|reified|sealed|suspend|tailrec|vararg)\b/g,type:"k8"},{regex:/\b(as|class|fun|in|interface|is|return|by|constructor|delegate|dynamic|field|file|get|init|param|property|receiver|set|setparam|where|field|it)\b/g,type:"k0"},{regex:/\b(this|super)\b/g,type:"k9"},{regex:/\b(instanceof|new)\b/g,type:"k3"},{regex:/(@\w+|\w+@)/gm,type:"k6"},c.fCalls,c.mCalls,c.null,c.boolean,c.slashComments,c.blockComments,{regex:/[\b\W](-?\d[\d_]*L?)(?!\.)\b/g,type:"n1"},c.floats,{regex:/[\b\W](-?0x[A-F0-9][A-F0-9_]+)\b/gi,type:"n2"},{regex:/[\b\W](-?0b[01][01_]+)\b/gi,type:"n3"},c.brackets]}}]),t}(),le=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[{regex:/(?:^|[^\\])%.*$/gm,type:"c0"},{regex:/(?:^|[^\\])(\\\w+)(?:[\W\s])/gm,type:"k0"},{regex:/[$()]/g,type:["s3"]},c.int,c.floats,c.brackets]}}],[{key:"alias",value:function(){return["tex"]}}]),t}(),ge=function(){i(t,h);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){l(a(t.prototype),"setupLanguage",this).call(this),this.rules.shift(),this.rules=this.rules.concat([c.slashComments,d.pseudoElements,d.idSelector,d.classSelector,{regex:/\b([\w][\w-]+)\s*\(/gm,type:"m0"},{regex:/@[\w-]+\b/g,type:"k7"},{regex:/&/gi,type:"k3"}])}}],[{key:"alias",value:function(){return[]}}]),t}(),ue=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.dqStrings,c.poundComments,{regex:/[\w\])]\.([\w-]+)\b/g,type:"m3"},{regex:/\b(else)\b/g,type:"k1"},{regex:/\s\$[A-Z_]+/g,type:"k7"},{regex:/(==|!=|=~|!~)/g,type:"k3"},{regex:/\b(\w[\w-]+)\.\w/g,type:"k9"},c.int,c.brackets]}}],[{key:"alias",value:function(){return[]}}]),t}(),pe=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[{regex:/---\[\[[\s\S]*?(]])/g,type:"c1"},{regex:/--\[\[[\s\S]*?]]/g,type:"c1"},{regex:/(--.*)$/gm,type:"c0"},c.dqStrings,c.sqStrings,{regex:/(\[(=*)\[[\S\s]*?]\2])/g,type:"s5"},{regex:/\b(true|false)\b/gi,type:"e0"},{regex:/\b(nil)\b/gi,type:"e1"},{regex:/\b(local)\b/g,type:"k2"},{regex:/\b(break|do|else|elseif|end|for|if|repeat|then|until|while)\b/g,type:"k1"},{regex:/\b(function|return|and|in|or|not)\b/g,type:"k0"},c.brackets,c.floats,c.mCalls,c.fCalls]}}]),t}(),m=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.blockComments,{regex:/--.*$/gm,type:"c0"},c.null,c.sqStrings,{regex:/\b(NOT NULL|UNIQUE|PRIMARY KEY|FOREIGN KEY|CHECK|DEFAULT|INDEX)\b/gi,type:"k4"},{regex:/`\S+?`(?:\.`\S+?`)*/g,type:"k9"},{regex:/\b(all|and|any|between|exists|in|like|not|or|is null|is not null|=|!=|<>|>|<|>=|<=|!<|!>)\b/gi,type:"k3"},{regex:/\b(SELECT|INSERT|UPDATE|DELETE|INTO|FROM|CREATE|TABLE|VIEW|WHERE|TRIGGER|ALTER|ORDER BY|DESC|ASC|AS|BETWEEN|JOIN|LEFT|RIGHT|INNER|OUTER|USING|ON|UNION)\b/gi,type:"k0"},{regex:/\b[A-Z]+\b/g,type:"k0"},c.int,c.floats]}}]),t}(),ce=function(){i(t,m);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){l(a(t.prototype),"setupLanguage",this).call(this),this.rules=this.rules.concat([c.poundComments,{regex:/\b(tinyint|smallint|mediumint|bigint|int|integer|boolean|decimal|number|float|double|bit|double precision|real|dec|numeric|fixed)\b/g,type:"k5"},{regex:/\b(unsigned|signed|zerofill)\b/g,type:"k8"}])}}],[{key:"alias",value:function(){return["mysql"]}}]),t}(),ye=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[{regex:/[\r|\n](```[a-z_-]*[\r|\n][\S\s]+?```)/gi,type:"t8"},{regex:/^\s*#{1,6}.+$/gm,type:"t1"},{regex:/(.+[\r|\n][=-]{3,})[\r|\n]/g,type:"t1"},{regex:/`.+?`/g,type:"t8"},{regex:/^(?:\*|_|-){3,}$/gm,type:"t2"},{regex:/\W(\*\*|\*|~~|~|__|_)(.*?\1)\W/gm,type:"t4"},{regex:/!?\[.*?]\(.*?\)/g,type:"t3"}]}}],[{key:"alias",value:function(){return["md","gfm"]}}]),t}(),fe=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[{regex:/%.*$/gm,type:"c0"},{regex:/%%.*$/gm,type:"c1"},c.sqStrings,c.dqStrings,c.boolean,c.mCalls,c.prop,{regex:/\b(break|case|catch|continue|do|else|elseif|end|end_try_catch|endfor|endif|endmethods|endparfor|endproperties|endswitch|endwhile|for|if|switch|try|until|while)\b/gi,type:"k1"},{regex:/\b(__FILE__|__LINE__|classdef|end_unwind_protect|endclassdef|endenumeration|endevents|endfunctionenumeration|events|function|global|methods|otherwise|parfor|persistent|properties|return|static|unwind_protect|unwind_protect_cleanup)\b/gi,type:"k0"},{regex:/(@[\w]+)\s*/gm,type:"k7"},c.fCalls,c.floats,c.brackets]}}]),t}(),be=function(){i(t,m);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){l(a(t.prototype),"setupLanguage",this).call(this);this.rules=this.rules.concat([])}}],[{key:"alias",value:function(){return[]}}]),t}(),de=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.dqStrings,c.sqStrings,c.poundComments,{regex:/([a-z]+)\s*\{/g,type:"k9"},{regex:/^\s*([a-z]\w+)\s/gm,type:"k0"},{regex:/\W([a-z]+:\/\/.*?);/g,type:"k9"},{regex:/\b(\d+\.\d+\.\d+\.\d+(?::\d+))\b/g,type:"k9"},{regex:/(?:\W)\$[a-z_]+/g,type:"k7"},{regex:/[\b\W](\d+[kmgdyw])\b/g,type:"n0"},c.int,c.brackets]}}],[{key:"alias",value:function(){return[]}}]),t}(),he=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.dqStrings,c.sqStrings,c.bqStrings,{regex:/^\s*(Var(\s+\\GLOBAL)?)(\s+\w+)\b/g,type:["k2","k7"]},{regex:/\W(\$\{\w+})\W/g,type:"k9"},{regex:/\W(\$\w+)\b/g,type:"k7"},{regex:/^\s*([A-Z]\w+)\s+/gm,type:"k0"},{regex:/\b[A-Z][A-Z_]*[A-Z]\b/g,type:"e3"},{regex:/^\s*(!\w+)\s+/gm,type:"k4"},{regex:/^\s*(\w+:)\s*$/gim,type:"k6"},{regex:/\b(admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/gi,type:"k9"},c.blockComments,{regex:/[#;].*?$/gm,type:"c0"},c.int,c.hex,c.octal,c.brackets]}}]),t}(),xe=function(){i(t,m);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){l(a(t.prototype),"setupLanguage",this).call(this);this.rules=this.rules.concat([])}}],[{key:"alias",value:function(){return["oracle"]}}]),t}(),me=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.sqStrings,c.dqStrings,c.heredoc,c.boolean,c.null,{regex:/(->)([\w]+)/gim,type:["k3","m1"]},{regex:/(::)([\w]+)/gim,type:["k3","m2"]},{regex:/(self|parent|\$this)/gi,type:"k9"},{regex:/\b(as|break|case|catch|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|finally|for|foreach|goto|if|switch|throw|try|while)\b/g,type:"k1"},{regex:/\b__[A-Z][A-Z0-9_]+__\b/g,type:"e3"},{regex:/\b(__halt_compiler|abstract|array|callable|class|const|continue|declare|default|die|echo|empty|eval|exit|extends|final|function|global|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|print|private|protected|public|require|require_once|return|static|trait|use|var|yield)\b/g,type:"k0"},{regex:/\b(and|or|xor|clone|new|unset)\b/g,type:"k3"},{regex:/\b(int|float|bool|string|resource|object|mixed|numeric)\b/g,type:"k5"},c.slashComments,c.poundComments,c.blockComments,{regex:/\$[^\s=;()'">:-]+/gim,type:"k7"},{regex:/\b(\w[^\s('"]+)\s*\(/gm,type:"m0"},c.octal,c.bin,c.hex,c.floats,c.int,c.brackets]}}]),t}(),ke=function(){i(t,m);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){l(a(t.prototype),"setupLanguage",this).call(this);this.rules=this.rules.concat([])}}],[{key:"alias",value:function(){return["postgres"]}}]),t}(),ve=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){function e(e){return f(e,/\$(?:\w+|\(.*?\))/g,function(e){return[b(e[0],"k7")]})}this.rules=[{regex:/"(?:[^"`]|`.)*"/g,type:"s2",filter:e},c.sqStrings,{regex:/@"[\S\s]*?\n\s*"@/g,type:"s5",filter:e},{regex:/@'[\S\s]*?\n\s*'@/g,type:"s5"},{regex:/\b(Begin|Break|Catch|Continue|Else|Elseif|End|Finally|For|ForEach|If|Switch|Throw|Try|Until|While)\b/gi,type:"k1"},{regex:/\b(Data|Do|DynamicParam|Exit|Filter|From|Function|In|InlineScript|Hidden|Parallel|Param|Process|Return|Sequence|Trap|Workflow)\b/gi,type:"k0"},{regex:/\b([A-Z]\w+(?:-\w+)+)\b/gi,type:"m0"},{regex:/<#[\S\s]+?#>/gi,type:"c1"},c.poundComments,{regex:/\$[A-Z_][\w]*/gim,type:"k7"},c.mCalls,c.fCalls,c.int,c.floats,c.brackets]}}]),t}(),we=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[{regex:/(%.*)$/gm,type:"c0"},c.blockComments,c.dqStrings,c.sqStrings,{regex:/^(\w+)(?:\(.*?\))?\s*(?::-|\.)/gm,type:"k9"},{regex:/\b(true|false|Yes|No|not|fail)\b/gi,type:"e0"},{regex:/\b(catch|throw|repeat)\b/g,type:"k1"},{regex:/^(\?-)/g,type:"k9"},{regex:/\b(is)\b/g,type:"k3"},{regex:/[A-Z_][\w]*/g,type:"k7"},c.brackets,c.floats,c.int,c.fCalls]}}]),t}(),Ce=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.int,c.floats,{regex:/[\b\W](-?\$[A-F0-9]+)\b/gi,type:"n2"},{regex:/[\b\W](-?%[01]+)\b/gi,type:"n3"},{regex:/[\b\W](\*\w+)\b/gi,type:"text"},c.dqStrings,{regex:/[[\]()]+/g,type:"g0"},{regex:/#\w+/gim,type:"g0"},{regex:/[@?]\w+/gim,type:"g1"},{regex:/(IncludeFile|XIncludeFile|IncludeBinary|IncludePath) (.*?)$/gim,type:"k0"},{regex:/\b(Break|Case|Continue|Default|Else|ElseIf|End|EndIf|EndSelect|For|ForEver|ForEach|Gosub|Goto|If|Next|Repeat|Return|FakeReturn|Select|Until|Wend|While|To|Step)\b/gi,type:"k1"},{regex:/\b(Array|List|Map|Procedure(?:C|Dll|CDll)?|ProcedureReturn|EndProcedure|Declare(?:C|Dll|CDll)?|ImportC?|EndImport|As|Macro|MacroExpandedCount|EndMacro|UndefineMacro|DeclareModule|EndDeclareModule|Module|EndModule|UseModule|UnuseModule|With|EndWith|PrototypeC?|Runtime|Swap|Data|DataSection|EndDataSection|Read|Restore)\b/gi,type:"k2"},{regex:/\b(ReDim|Dim|NewList|NewMap|Enumeration|EndEnumeration|Interface|Extends|EndInterface|Structure(?:Union)?|EndStructure(?:Union)?)\b/gi,type:"k4"},{regex:/\b(?:ReDim|Dim|NewList|NewMap)\s*([\w]+)\(/gim,type:"text"},{regex:/\b(Define|Global|Protected|Shared|Static|Threaded)\b/gi,type:"k3"},{regex:/[\w\])]\.(s{\d+}|(?:p-ascii|p-utf8|p-bstr|p-unicode|p-variant)|\w+)(?:\([\d,]*\))?/gi,type:"k4"},{regex:/\b(CompilerIf|CompilerElse|CompilerElseIf|CompilerEndIf|CompilerSelect|CompilerCase|CompilerDefault|CompilerEndSelect|CompilerError|CompilerWarning|EnableExplicit|DisableExplicit|EnableASM|DisableASM|EnableDebugger|DisableDebugger|Debug|DebugLevel|CallDebugger)\b/gi,type:"k5"},{regex:/\W(And|Not|Or|Xor)\W/gi,type:"k6"},{regex:/(<=|=<|>=|=>|<>|<<|>>|=|-|\+|\/|%|<|>|&|\||!|~)/gi,type:"k6"},{regex:/(\*)(?:\d|\s*(?:\b|-|\(|%|\$|\*))/gi,type:"k6"},{regex:/(\w+)::/gi,type:"k7"},{regex:/(\w+):/gi,type:"k8"},c.fCalls,{regex:/;.*$/gm,type:"c0"},{regex:/\\(\w+)\b/g,type:"m3"}]}}],[{key:"alias",value:function(){return["pb"]}}]),t}(),Se=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.dqStrings,c.prop,{regex:/\b([A-Z]\w+)\b/g,type:"k5"},{regex:/^(import)(\s+[\w.]+)/gm,type:["k0","k5"]},{regex:/\b(bool|char|double|float|int|long|short|void|string)\b/g,type:"k5"},c.mCalls,c.null,c.boolean,c.slashComments,c.blockComments,c.int,c.floats,c.brackets]}}]),t}(),_e=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,null,[{key:"alias",value:function(){return[]}}]),t}(),Ee=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[{regex:/^(.*?)$/g,type:"text"}]}}]),t}(),Le=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.dqStrings,{regex:/("[\s\S]*?")/g,type:"s5"},{regex:/\b(yes|no)\b/gi,type:"e0"},{regex:/\b([\w-]+)(=)/gi,type:["k6","k3"]},{regex:/[^\b](:local|:global)\s/gm,type:"k2"},{regex:/^\/\w+(?:\s+[a-z-]+)*\s*$/gm,type:"k10"},{regex:/\b(add|set|print|enable|disable|export|find|get|move|remove)\b/gi,type:"k9"},{regex:/[^\b](:[a-z-]+)\s/gm,type:"k0"},{regex:/\$[\w]*/gi,type:"k7"},{regex:/(?:[a-f0-9]{2}:){5}(?:[a-f0-9]{2})/gi,type:"s0"},{regex:/(?:\d{1,3}\.){3}(?:\d{1,3})(?:\/\d{1,2})?/gi,type:"s0"},c.poundComments,{regex:/[\b\W](-?\d+)([a-z]{1,4})?[\b\W]/gi,type:"n0"},c.int,c.hex,c.brackets]}}],[{key:"alias",value:function(){return["mikrotik","mt","switchos","ros"]}}]),t}(),Ae=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){function e(e){return e.text.match(/^%r/)?e.type="e2":e.text.match(/^%x/)&&(e.type="e4"),[e]}this.rules=[c.dqStrings,c.sqStrings,c.heredoc,{regex:/(`(?:[^`\\]|\\.)*`)/g,type:"e4"},c.boolean,{regex:/\b(nil)\b/gi,type:"e1"},c.fCalls,c.prop,{regex:/@{1,2}[A-Za-z_]\w*\W/g,type:"k7"},{regex:/[^:](:[\w]+)\b/g,type:"k6"},{regex:/(\$[a-z0-9_-]+|\$.)\W/gi,type:"k9"},{regex:/\b(begin|break|case|do|else|elsif|end|ensure|for|if|in|next|redo|rescue|retry|then|unless|until|when|while)\b/gi,type:"k1"},{regex:/\b((?:__)?[A-Z][A-Z0-9_]+)\b/g,type:"e3"},{regex:/\b(alias|class|defined\?|undef|def|module|return|self|super|yield)\W/gi,type:"k0"},{regex:/\b(and|not|or)\b/gi,type:"k3"},c.poundComments,{regex:/^=begin[\S\s]*?^=end/gim,type:"c2"},{regex:/(%[iqrswx](\W)(?:[^\2\n\\]|\\.)*\2[iomx]*)/gim,type:"s2",filter:e},{regex:/(%[iqrswx]?(\{(?:[^}\\]|\\.)*}|\[(?:[^}\\]|\\.)*]|\((?:[^)\\]|\\.)*\))[iomx]*)/gim,type:"s2",filter:e},{regex:/\W(\/(?:[^/\\]|\\.)*\/\w*)\W/g,type:"e2"},{regex:/\W\?(?:\w|\\M|\\C)(?:-\w|-\\M|-\\C)*\b/g,type:"n1"},{regex:/[\b\W](-?\d[\d_]+?)(?!\.)\b/g,type:"n1"},{regex:/[\b\W](-?0x[A-F0-9][A-F0-9_]+)\b/gi,type:"n2"},{regex:/[\b\W](-?0b[01][01_]+)\b/gi,type:"n3"},{regex:/[\b\W](-?[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?[ji]?)\b/gi,type:"n0"},c.brackets]}}]),t}(),qe=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.char,{regex:/r((#+)".*?"\2)/gm,type:"s0"},{regex:/("(?:\\.|\\\s*\n|\\s*\r\n|[^\\"])*")/g,type:"s0"},{regex:/^\s*#.*$/gm,type:"k4"},{regex:/fn\s+([\w]+)\s*(<\w+\s*>)?\(/gm,type:"k0"},{regex:/\b\.?([\w]+)\s*(\(|::)/gm,type:"k1"},{regex:/\b([\w]+)!/gm,type:"k9"},{regex:/\bself\b/gi,type:"k9"},c.boolean,{regex:/\b(while|loop|in|for|if|else|do|continue|break)\b/g,type:"k1"},{regex:/\b(type|struct|let|enum)\b/g,type:"k2"},{regex:/\b(const)\b/g,type:"k8"},{regex:/\b(yield|where|virtual|use|unsized|unsafe|trait|super|static|return|ref|pure|pub|proc|priv|override|offsetof|mut|move|mod|match|macro|impl|fn|final|extern|crate|box|become|as|alignof|abstract)\b/g,type:"k0"},{regex:/\b(sizeof|typeof)\b/g,type:"k3"},{regex:/\b([0-9_]+\.?[0-9_]+?(e\+[0-9_]+)?)(?:f32|f64)?\b/gim,type:"n0"},{regex:/\b([0-9_]+|0o[0-9_]+|0x[A-F0-9_]+|0b[0-1_]+)(?:u8|i8|u16|i16|u32|i32|u64|i64|isize|usize)?\b/gim,type:"n1"},c.slashComments,c.blockComments,{regex:/(?:^|[^\\])\/\/[/!].*$/gm,type:"c2"},{regex:/\/\*[*!][\s\S]*?\*\//gm,type:"c2"},c.brackets,{regex:/\W(&)\w/g,type:"k3"}]}}]),t}(),Ne=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.dqStrings,c.char,{regex:/s"(?:[^"\\]|\\.)*"/g,type:"s2"},{regex:/`(?:[^`\\]|\\.)*`/g,type:"k7"},{regex:/@[\W\w_][\w]+/g,type:"k11"},{regex:/\b([A-Z]\w*)\b/g,type:"k5"},{regex:/\b(while|try|catch|else|throw|break|if|do|goto|switch|for|match)\b/g,type:"k1"},{regex:/(package|import)(\s+[\w.]+)/gm,type:["k0","k10"]},{regex:/[\b\w\s)](_|:|@|#|<-|←|<:|<%|=|=>|⇒|>:)[\b\w\s]/g,type:"k3"},{regex:/\b(abstract|class|case|extends|final|finally|forSome|implicit|lazy|object|override|private|protected|return|sealed|trait|with|yield)\b/g,type:"k0"},{regex:/\b(def)\s+(\w+)\b/gm,type:["k2","m0"]},{regex:/\b(type)\s+(\w+)\b/gm,type:["k2","k5"]},{regex:/\b(val)\s+(\w+)\b/gm,type:["k2","k7"]},{regex:/\b(var)\s+(\w+)\b/gm,type:["k2","k7"]},{regex:/\b(this|super)\b/g,type:"k9"},{regex:/\b(new)\b/g,type:"k3"},c.mCalls,c.fCalls,c.null,c.boolean,c.slashComments,c.blockComments,c.docComments,c.int,c.floats,c.bin,c.brackets]}}]),t}(),Ie=function(){i(t,h);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){l(a(t.prototype),"setupLanguage",this).call(this),this.rules.shift(),this.rules=this.rules.concat([c.slashComments,d.pseudoElements,d.idSelector,d.classSelector,{regex:/\b([\w-]+)\s*\(/gm,type:"m0"},{regex:/\$[\w-]+\b/g,type:"k7"},{regex:/@[\w-]+\b/g,type:"k9"},{regex:/&/gi,type:"k3"}])}}],[{key:"alias",value:function(){return["sass"]}}]),t}(),We=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[{regex:/(^#!.*?)\n/gi,type:"k4"},{regex:/(?:^|[^\\\S])(#.*)$/gm,type:"c0"},{regex:/[^\\]("(?:[^"\\]|\\.)*")/g,type:"s0"},{regex:/[^\\]('(?:[^'\\]|\\.)*')/g,type:"s0"},{regex:/`.*?`/gm,type:"s2"},{regex:/(\$)\(/gm,type:"s2"},{regex:/(\$\d)\b/gim,type:"k9"},{regex:/(\$\w+)\b/gim,type:"k7"},{regex:/^(\s*\w+)=/gm,type:"k7"},{regex:/^\s*\w+\)\s*$/gm,type:"k6"},{regex:/\b(if|fi|then|elif|else|for|do|done|until|while|break|continue|case|esac|in|eq|ne|gt|lt|ge|le)\b/gi,type:"k1"},{regex:/\b(return|function)\b/gi,type:"k0"},{regex:/^\s*\w+\(\)\s*\{/gm,type:"k0"},c.int]}}],[{key:"alias",value:function(){return["bash","sh","zsh"]}}]),t}(),$e=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.dqStrings,{regex:c.sqStrings.regex,type:"n0"},c.prop,c.slashComments,c.poundComments,c.blockComments,c.brackets,{regex:/\b(const|enum|local)\b/g,type:"k2"},{regex:/\b(break|case|catch|continue|else|for|foreach|if|switch|while|try|do)\b/g,type:"k1"},{regex:/\b(base|class|clone|constructor|default|extends|false|function|null|resume|return|static|this|throw|true|yield)\b/g,type:"k0"},{regex:/\b(delete|in|instanceof|typeof)\b/g,type:"k3"},c.mCalls,c.fCalls,c.octal,c.hex,c.floats,c.int]}}]),t}(),Oe=function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.dqStrings,c.boolean,{regex:/#.*$/gm,type:"k4"},c.prop,{regex:/(import )(.*?)$/gm,type:["k0","k10"]},{regex:/\b(nil)\b/gi,type:"e1"},{regex:/\b(break|case|continue|default|do|else|for|if|switch|while|catch|throw|try)\b/g,type:"k1"},{regex:/\b(var|let|enum|struct)\b/g,type:"k2"},{regex:/\b(Int|UInt|Float|Double|Bool|String|Character|Optional|Array|Dictionary)\b/g,type:"k5"},{regex:/\b(associatedtype|class|deinit|extension|func|init|inout|internal|operator|private|protocol|public|static|subscript|typealias|defer|fallthrough|guard|in|as|repeat|return|where|dynamicType|is|rethrows|super|self|Self|throws|associativity|convenience|dynamic|didSet|final|get|infix|indirect|lazy|left|mutating|none|nonmutating|optional|override|postfix|precedence|prefix|Protocol|required|right|set|Type|unowned|weak|willSet)\b/g,type:"k0"},c.mCalls,c.fCalls,{regex:/(?:^|[^\\])\/\/\/.*$/gm,type:"c2"},c.docComments,c.slashComments,c.blockComments,{regex:/[\b\W](-?0b[01_]+)\b/gi,type:"n3"},{regex:/[\b\W](-?0x[A-F0-9_]+)(?!\.)\b/gi,type:"n2"},{regex:/[\b\W](-?0o[0-7_]+)(?!\.)\b/g,type:"n4"},{regex:/[\b\W](-?[\d_]+)(?!\.)\b/g,type:"n1"},{regex:/(-?(?:[\d_]+\.[\d_]+(?:e[+-]?[\d_]+)?))/gi,type:"n0"},{regex:/(-?0x(?:[A-F0-9_]+\.[A-F0-9_]+(?:p[+-]?[A-F0-9_]+)?))/gi,type:"n2"},c.brackets]}}]),t}(),De=function(){i(t,x);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){l(a(t.prototype),"setupLanguage",this).call(this);this.rules=[{regex:/\b(boolean|number|string|any|void|undefined|never|symbol)\b/g,type:"k5"},{regex:/\b(type|interface)\b/g,type:"k2"},{regex:/\b(abstract|implements|readonly)\b/g,type:"k8"},{regex:/\b(declare|namespace)\b/g,type:"k0"},{regex:/\b([\w]+)\s*]/g,type:"g1"}].concat(this.rules)}}],[{key:"alias",value:function(){return[]}}]),t}(),k=Object.freeze({__proto__:null,generic:y,abap:t,apache:P,assembly:M,avrassembly:U,batch:G,cpp:H,csharp:V,css:h,cython:Y,cordpro:X,dart:K,diff:Q,dockerfile:ee,go:te,groovy:ne,ini:re,java:ie,javascript:x,json:ae,jsx:se,kotlin:oe,latex:le,less:ge,lighttpd:ue,lua:pe,mariadb:ce,markdown:ye,matlab:fe,mssql:be,nginx:de,nsis:he,oracledb:xe,php:me,postgresql:ke,powershell:ve,prolog:we,purebasic:Ce,python:J,qml:Se,r:_e,raw:Ee,routeros:Le,ruby:Ae,rust:qe,scala:Ne,scss:Ie,shell:We,sql:m,squirrel:$e,swift:Oe,typescript:De,vhdl:function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[{regex:/((?:^\s*|\s+)--.*$)/gm,type:"c0"},{regex:/^\s*(?:use|library)\s*(\S+);/gim,type:"k9"},c.fCalls,{regex:/\*\*|\*|\/|\+|-|&|=|\/=|<|<=|>|>=/g,type:"g0"},c.dqStrings,{regex:/('.')/g,type:"s0"},c.brackets,{regex:/\b(alias|array|variable|downto|range|to|type|units)\b/g,type:"k2"},{regex:/\b(array|buffer|bus|file)\b/g,type:"k5"},{regex:/\b(if|else|elsif|end|for|while|loop|when|begin|block|case|exit|next|then)\b/g,type:"k1"},{regex:/\b(access|after|all|architecture|attribute|assert|body|component|configuration|constant|disconnect|entity|function|generate|generic|group|guarded|impure|in|inertial|inout|is|label|library|linkage|literal|map|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|record|return|select|severity|signal|shared|subtype|transport|unaffected|use|vaiable|with|wait|until)\b/g,type:"k0"},{regex:/\b(abs|not|mod|rem|sll|srl|sla|sra|rol|ror|and|or|nand|nor|xor|xnor|new)\b/g,type:"k3"},c.floats]}}]),t}(),visualbasic:function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.dqStrings,c.boolean,c.prop,{regex:/(#.*?)(?:'|$)/gim,type:"k4"},{regex:/\b(Case|Catch|Continue|Each|Else|ElseIf|End|EndIf|Do|Finally|For|If|Loop|Next|OrElse|Then|Throw|Try|When|While)\b/g,type:"k1"},{regex:/(Imports )(.*?)$/gm,type:["k0","k10"]},{regex:/\b(Boolean|Byte|CBool|CByte|CChar|CDate|CDbl|CDec|Char|CInt|CLng|CObj|CSByte|CShort|CSng|CStr|CType|CUInt|CULng|CUShort|Decimal|Double|Integer|Long|ParamArray|SByte|Short|Single|String|UInteger|ULong|UShort)\b/g,type:"k5"},{regex:/\b(Dim|Enum|Let|ReDim)\b/g,type:"k2"},{regex:/\b(Const|Shared|Static)\b/g,type:"k8"},{regex:/\b(AddHandler|AddressOf|Alias|As|ByRef|ByVal|Call|Class|Date|Declare|Default|Delegate|DirectCast|Erase|Error|Event|Exit|Friend|Function|Get|GetType|GetXMLNamespace|Global|GoSub|GoTo|Handles|Implements|In|Inherits|Interface|Lib|Like|Me|Module|MustInherit|MustOverride|MyBase|MyClass|Namespace|Narrowing|Nothing|NotInheritable|NotOverridable|Object|Of|On|Operator|Option|Optional|Out|Overloads|Overridable|Overrides|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|REM|RemoveHandler|Resume|Return|Select|Set|Shadows|Step|Stop|Structure|Sub|SyncLock|To|TryCast|Using|Variant|Wend|Widening|With|WithEvents|WriteOnly)\b/gi,type:"k0"},{regex:/\b(And|AndAlso|Is|IsNot|Mod|New|Not|Or|TypeOf|Xor)\b/g,type:"k3"},c.mCalls,c.fCalls,{regex:/'.*$/gm,type:"c0"},c.int,c.floats,c.brackets]}}],[{key:"alias",value:function(){return["vb"]}}]),t}(),xml:function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[{regex://g,type:"k9"},{regex:/<\?xml[\s\S]+\?>/gi,type:"k4"},{regex:/ /g,type:"c1"},{regex:/( )/gim,type:["c9","text","c9"]},{regex:/(<)([A-Z:_][A-Z0-9:.-]*)([\s\S]*?)(\/?>)/gi,type:["g1","x1","text","g1"],filter:[null,null,function(e){return f(e,/\b([^\s\0"'>/=]+)(\s*=\s*)((['"]).*?\4|[^'" \t]+)/gi,function(e){return[b(e[1],"x2"),b(e[2],"k3"),b(e[3],"s0")]})},null]},{regex:/(<\/)([A-Z:_][A-Z0-9:.-]*\s*)(>)/gi,type:["g1","x1","g1"]}]}}],[{key:"alias",value:function(){return["html"]}}]),t}(),yaml:function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.poundComments,c.boolean,c.null,{regex:/^%[A-Z]+\s+.*$/gm,type:"k4"},{regex:/\b!{1,2}[A-Z]+\b/gi,type:"k5"},{regex:/\b[a-z][a-z0-9_-]*:/gim,type:"k7"},{regex:/\{|}|\(|\)|\[|]/g,type:"g1"},c.dqStrings,c.sqStrings,c.floats,c.int]}}]),t}(),verilog:function(){i(t,y);var e=o(t);function t(){return n(this,t),e.apply(this,arguments)}return r(t,[{key:"setupLanguage",value:function(){this.rules=[c.dqStrings,{regex:/`\w*\b/g,type:"k4"},{regex:/\[( *\d+(?: *\: *\d+) *)\]/g,type:"e3"},{regex:/\b(for|generate|if|else|repeat|case|endcase|begin|end|ifnone)\b/g,type:"k1"},{regex:/\b(output|input|inout|reg|wire|assign)\b/g,type:"k5"},{regex:/\b(module|endmodule|always|function|endfunction)\b/g,type:"k2"},{regex:/\b(or|rpmos|tranif1|and|initial|rtran|tri|parameter|rtranif0|tri0|pmos|rtranif1|tri1|buf|endprimitive|integer|posedge|scalared|triand|bufif0|endspecify|join|primitive|small|trior|bufif1|endtable|large|pull0|specify|trireg|endtask|macromodule|pull1|specparam|vectored|casex|event|medium|pullup|strong0|wait|casez|pulldown|strong1|wand|cmos|force|nand|rcmos|supply0|weak0|deassign|forever|negedge|real|supply1|weak1|default|nmos|realtime|table|defparam|nor|task|disable|highz0|not|release|time|wor|edge|highz1|notif0|tran|xnor|notif1|rnmos|tranif0|xor)\b/g,type:"k0"},c.slashComments,c.blockComments,{regex:/-?\d*'s?d[0-9_xz]+\b/gi,type:"n1"},{regex:/-?\d*'s?h[0-9a-f_xz]+\b/gi,type:"n2"},{regex:/-?\d*'s?b[01_xz]+\b/gi,type:"n3"},{regex:/-?\d*'s?o[0-7_xz]+\b/gi,type:"n4"},c.int,c.brackets]}}]),t}()}),Te={standard:"generic"},v={},Re=!1;function Fe(e){if(!Re)for(var t in Re=!0,k)if("function"==typeof k[t].alias){var n,r=function(e,t){var n,r,i,a,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return r=!(n=!0),{s:function(){s=s.call(e)},n:function(){var e=s.next();return n=e.done,e},e:function(e){r=!0,i=e},f:function(){try{n||null==s.return||s.return()}finally{if(r)throw i}}};if(Array.isArray(e)||(s=z(e))||t&&e&&"number"==typeof e.length)return s&&(e=s),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(k[t].alias());try{for(r.s();!(n=r.n()).done;){var i=n.value;Te[i]=t}}catch(e){r.e(e)}finally{r.f()}}return Te[e]}function je(e){return e=Fe(e=(e||"").toLowerCase())||e,k[e]?e:null}t={document:document,window:window};function w(){return document}function C(){return window}function S(e){e.style.display=!0===(!(1 /g,">");e.document.body.innerHTML="
"+t+"
",e.document.title="Sourcecode | EnlighterJS Syntax Highlighter"}})},website:function(){return L(W,{name:"website",tooltip:"EnlighterJS 3 Syntax Highlighter",onClick:Qe})},collapse:function(e){return L(W,{name:"collapse",tooltip:"Expand",onClick:function(){e.toggleClass("enlighter-collapse-full")}})}});function $(t){var e=function(e){for(var t,n=[],r=/{BTN_([A-Z_]+)}/g;null!=(t=r.exec(e));)n.push(t[1].toLowerCase());return n}(t.layout).map(function(e){return et[e]?L(et[e],{getRawCode:t.getRawCode,toggleClass:t.toggleClass}):null}).filter(function(e){return null!==e});return L(I,{name:"toolbar-"+t.name,className:"enlighter-toolbar"},e)}function tt(e,t){return L("div",{className:"enlighter-raw"},t)}function nt(e){var t=null,n=e[0].params,r=["enlighter-default","enlighter-v-standard","enlighter-t-"+n.theme,"enlighter-l-"+e[0].resolvedLanguage];function i(e){Ue(t,e)}function a(){return e[0].code}return!0===n.linehover&&r.push("enlighter-hover"),!0===n.linenumbers&&r.push("enlighter-linenumbers"),"scroll"===n.textOverflow&&r.push("enlighter-overflow-scroll"),!0===n.collapse&&r.push("enlighter-collapse"),0 /gim,">").replace(/ /gim," "),!0===i.ampersandCleanup&&(t=t.replace(/&/gim,"&")),n=i.indent,t=!1!==n&&-1 49?function(){f(s,{timeout:o}),o!==i.ricTimeout&&(o=i.ricTimeout)}:M((function(){d(s)}),!0);return function(e){var i;(e=!0===e)&&(o=33),t||(t=!0,(i=r-(n.now()-a))<0&&(i=0),e||i<9?l():d(l,i))}},x=function(e){var t,a,i=99,r=function(){t=null,e()},o=function(){var e=n.now()-a;e 0)&&"visible"!=E(i,"overflow")&&(a=i.getBoundingClientRect(),o=U>a.left&&j a.top-1&&I 500&&r.clientWidth>500?500:370:i.expand,a._defEx=v,y=v*i.expFactor,h=i.hFac,J=null,Y 2&&k>2&&!t.hidden?(Y=y,ee=0):Y=k>1&&ee>1&&Z<6?v:X),m!==d&&($=innerWidth+d*h,q=innerHeight+d,u=-1*d,m=d),o=z[n].getBoundingClientRect(),(G=o.bottom)>=u&&(I=o.top)<=q&&(U=o.right)>=u*h&&(j=o.left)<=$&&(G||U||j||I)&&(i.loadHidden||ne(z[n]))&&(P&&Z<3&&!f&&(k<3||ee<4)||ae(z[n],d))){if(fe(z[n]),c=!0,Z>9)break}else!c&&P&&!s&&Z<4&&ee<4&&k>2&&(R[0]||i.preloadAfterLoad)&&(R[0]||!f&&(G||U||j||I||"auto"!=z[n][l](i.sizesAttr)))&&(s=R[0]||z[n]);s&&!c&&fe(s)}},re=N(ie),oe=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(te(e),p(t,i.loadedClass),g(t,i.loadingClass),C(t,le),b(t,"lazyloaded"))},se=M(oe),le=function(e){se({target:e.target})},ce=function(e,t){var n=e.getAttribute("data-load-mode")||i.iframeLoadMode;0==n?e.contentWindow.location.replace(t):1==n&&(e.src=t)},de=function(e){var t,n=e[l](i.srcsetAttr);(t=i.customMedia[e[l]("data-media")||e[l]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)},ue=M((function(e,t,n,a,r){var o,s,c,u,f,v;(f=b(e,"lazybeforeunveil",t)).defaultPrevented||(a&&(n?p(e,i.autosizesClass):e.setAttribute("sizes",a)),s=e[l](i.srcsetAttr),o=e[l](i.srcAttr),r&&(u=(c=e.parentNode)&&m.test(c.nodeName||"")),v=t.firesLoad||"src"in e&&(s||o||u),f={target:e},p(e,i.loadingClass),v&&(clearTimeout(D),D=d(te,2500),C(e,le,!0)),u&&h.call(c.getElementsByTagName("source"),de),s?e.setAttribute("srcset",s):o&&!u&&(Q.test(e.nodeName)?ce(e,o):e.src=o),r&&(s||u)&&A(e,{src:o})),e._lazyRace&&delete e._lazyRace,g(e,i.lazyClass),w((function(){var t=e.complete&&e.naturalWidth>1;v&&!t||(t&&p(e,i.fastLoadedClass),oe(f),e._lazyCache=!0,d((function(){"_lazyCache"in e&&delete e._lazyCache}),9)),"lazy"==e.loading&&Z--}),!0)})),fe=function(e){if(!e._lazyRace){var t,n=K.test(e.nodeName),a=n&&(e[l](i.sizesAttr)||e[l]("sizes")),r="auto"==a;(!r&&P||!n||!e[l]("src")&&!e.srcset||e.complete||z(e,i.errorClass)||!z(e,i.lazyClass))&&(t=b(e,"lazyunveilread").detail,r&&W.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,Z++,ue(e,t,r,a,n))}},me=x((function(){i.loadMode=3,re()})),ve=function(){3==i.loadMode&&(i.loadMode=2),me()},ye=function(){P||(n.now()-H<999?d(ye,999):(P=!0,i.loadMode=3,re(),c("scroll",ve,!0)))},{_:function(){H=n.now(),a.elements=t.getElementsByClassName(i.lazyClass),R=t.getElementsByClassName(i.lazyClass+" "+i.preloadClass),c("scroll",re,!0),c("resize",re,!0),c("pageshow",(function(e){if(e.persisted){var n=t.querySelectorAll("."+i.loadingClass);n.length&&n.forEach&&u((function(){n.forEach((function(e){e.complete&&fe(e)}))}))}})),e.MutationObserver?new MutationObserver(re).observe(r,{childList:!0,subtree:!0,attributes:!0}):(r[s]("DOMNodeInserted",re,!0),r[s]("DOMAttrModified",re,!0),setInterval(re,999)),c("hashchange",re,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(e){t[s](e,re,!0)})),/d$|^c/.test(t.readyState)?ye():(c("load",ye),t[s]("DOMContentLoaded",re),d(ye,2e4)),a.elements.length?(ie(),w._lsFlush()):re()},checkElems:re,unveil:fe,_aLSL:ve}),W=(T=M((function(e,t,n,a){var i,r,o;if(e._lazysizesWidth=a,a+="px",e.setAttribute("sizes",a),m.test(t.nodeName||""))for(r=0,o=(i=t.getElementsByTagName("source")).length;r ":">",'"':""","'":"'","`":"`"},qn=Pn(t),t=Pn(An(t)),Un=m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Wn=/(.)^/,zn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ln=/\\|'|\r|\n|\u2028|\u2029/g;function $n(n){return"\\"+zn[n]}var Cn=/^\s*(\w|\$)+\s*$/;var Kn=0;function Jn(n,r,t,e,u){return e instanceof r?(e=En(n.prototype),o(r=n.apply(e,u))?r:e):n.apply(t,u)}var M=l(function(u,o){function i(){for(var n=0,r=o.length,t=Array(r),e=0;e /g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(t){if(document.getElementById("tmpl-"+e))return(n=n||_.template(s("#tmpl-"+e).html(),a))(t);throw new Error("Template not found: #tmpl-"+e)}}),wp.ajax={settings:t.ajax||{},post:function(t,e){return wp.ajax.send({data:_.isObject(t)?t:_.extend(e||{},{action:t})})},send:function(a,t){var e,n;return _.isObject(a)?t=a:(t=t||{}).data=_.extend(t.data||{},{action:a}),t=_.defaults(t||{},{type:"POST",url:wp.ajax.settings.url,context:this}),(e=(n=s.Deferred(function(n){t.success&&n.done(t.success),t.error&&n.fail(t.error),delete t.success,delete t.error,n.jqXHR=s.ajax(t).done(function(t){var e;"1"!==t&&1!==t||(t={success:!0}),_.isObject(t)&&!_.isUndefined(t.success)?(e=this,n.done(function(){a&&a.data&&"query-attachments"===a.data.action&&n.jqXHR.hasOwnProperty("getResponseHeader")&&n.jqXHR.getResponseHeader("X-WP-Total")?e.totalAttachments=parseInt(n.jqXHR.getResponseHeader("X-WP-Total"),10):e.totalAttachments=0}),n[t.success?"resolveWith":"rejectWith"](this,[t.data])):n.rejectWith(this,[t])}).fail(function(){n.rejectWith(this,arguments)})})).promise()).abort=function(){return n.jqXHR.abort(),this},e}}}(jQuery)!!function(a){function l(t,e){return"function"==typeof t?t.call(e):t}function h(t,e){this.$element=a(t),this.options=e,this.enabled=!0,this.fixTitle()}h.prototype={show:function(){var t=this.getTitle();if(t&&this.enabled){var e,i=this.tip(),s=(i.find(".tipsy-inner")[this.options.html?"html":"text"](t),i[0].className="tipsy",i.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body),a.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})),n=i[0].offsetWidth,o=i[0].offsetHeight,t=l(this.options.gravity,this.$element[0]);switch(t.charAt(0)){case"n":e={top:s.top+s.height+this.options.offset,left:s.left+s.width/2-n/2};break;case"s":e={top:s.top-o-this.options.offset,left:s.left+s.width/2-n/2};break;case"e":e={top:s.top+s.height/2-o/2,left:s.left-n-this.options.offset};break;case"w":(extra_gap=0) ').html('
'),this.$tip.data("tipsy-pointee",this.$element[0])),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},a.fn.tipsy=function(i){var t,e;return!0===i?this.data("tipsy"):("string"==typeof i?(t=this.data("tipsy"))&&t[i]():((i=a.extend({},a.fn.tipsy.defaults,i)).on||this.each(function(){s(this)}),"manual"!=i.trigger&&(t="hover"==i.trigger?"mouseenter":"focus",e="hover"==i.trigger?"mouseleave":"blur",i.on?a(document).on(t,this.selector,n).on(e,this.selector,o):this.on(t,n).on(e,o))),this);function s(t){var e=a.data(t,"tipsy");return e||(e=new h(t,a.fn.tipsy.elementOptions(t,i)),a.data(t,"tipsy",e)),e}function n(){var t=s(this);t.hoverState="in",0==i.delayIn?t.show():(t.fixTitle(),setTimeout(function(){"in"==t.hoverState&&t.show()},i.delayIn))}function o(){var t=s(this);t.hoverState="out",0==i.delayOut?t.hide():setTimeout(function(){"out"==t.hoverState&&t.hide()},i.delayOut)}},a.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:.8,title:"title",trigger:"hover"},a.fn.tipsy.revalidate=function(){a(".tipsy").each(function(){var t=a.data(this,"tipsy-pointee");t&&function(t){for(;t=t.parentNode;)if(t==document)return 1}(t)||a(this).remove()})},a.fn.tipsy.elementOptions=function(t,e){return a.metadata?a.extend({},e,a(t).metadata()):e},a.fn.tipsy.autoNS=function(){return a(this).offset().top>a(document).scrollTop()+a(window).height()/2?"s":"n"},a.fn.tipsy.autoWE=function(){return a(this).offset().left>a(document).scrollLeft()+a(window).width()/2?"e":"w"},a.fn.tipsy.autoBounds=function(n,o){return function(){var t={ns:o[0],ew:1 '),$(u.$root[0],"hidden",!0),u.$holder=h(a()).appendTo(u.$root),l(),s.formatSubmit&&(!0===s.hiddenName?(e=r.name,r.name=""):e=(e=["string"==typeof s.hiddenPrefix?s.hiddenPrefix:"","string"==typeof s.hiddenSuffix?s.hiddenSuffix:"_submit"])[0]+r.name+e[1],u._hidden=h(' ")[0],c.on("change."+d.id,function(){u._hidden.value=r.value?u.get("select",s.formatSubmit):""})),c.data(t,u).addClass(i.input).val(c.data("value")?u.get("select",s.format):r.value).on("focus."+d.id+" click."+d.id,function(o,r,i){var a;return function(){var e=this,t=arguments,n=i&&!a;clearTimeout(a),a=setTimeout(function(){a=null,i||o.apply(e,t)},r),n&&o.apply(e,t)}}(function(e){e.preventDefault(),u.open()},100)),s.editable||c.on("keydown."+d.id,p),$(r,{haspopup:!0,expanded:!1,readonly:!1,owns:r.id+"_root"}),s.containerHidden?h(s.containerHidden).append(u._hidden):c.after(u._hidden),s.container?h(s.container).append(u.$root):c.after(u.$root),u.on({start:u.component.onStart,render:u.component.onRender,stop:u.component.onStop,open:u.component.onOpen,close:u.component.onClose,set:u.component.onSet}).on({start:s.onStart,render:s.onRender,stop:s.onStop,open:s.onOpen,close:s.onClose,set:s.onSet}),o=function(e){var t,n="position";e.currentStyle?t=e.currentStyle[n]:window.getComputedStyle&&(t=getComputedStyle(e)[n]);return"fixed"==t}(u.$holder[0]),r.autofocus&&u.open(),u.trigger("start").trigger("render"))},render:function(e){return e?(u.$holder=h(a()),l(),u.$root.html(u.$holder)):u.$root.find("."+i.box).html(u.component.nodes(d.open)),u.trigger("render")},stop:function(){return d.start&&(u.close(),u._hidden&&u._hidden.parentNode.removeChild(u._hidden),u.$root.remove(),c.removeClass(i.input).removeData(t),setTimeout(function(){c.off("."+d.id)},0),r.type=d.type,r.readOnly=!1,u.trigger("stop"),d.methods={},d.start=!1),u},open:function(e){return d.open?u:(c.addClass(i.active),$(r,"expanded",!0),setTimeout(function(){u.$root.addClass(i.opened),$(u.$root[0],"hidden",!1)},0),!1!==e&&(d.open=!0,o&&h("body").css("overflow","hidden").css("padding-right","+="+y()),o&&g?u.$holder.find("."+i.frame).one("transitionend",function(){u.$holder.eq(0).focus()}):setTimeout(function(){u.$holder.eq(0).focus()},0),m.on("click."+d.id+" focusin."+d.id,function(e){var t=_(e,r);e.isSimulated||t==r||t==document||3==e.which||u.close(t===u.$holder[0])}).on("keydown."+d.id,function(e){var t=e.keyCode,n=u.component.key[t],o=_(e,r);27==t?u.close(!0):o!=u.$holder[0]||!n&&13!=t?h.contains(u.$root[0],o)&&13==t&&(e.preventDefault(),o.click()):(e.preventDefault(),n?v._.trigger(u.component.key.go,u,[v._.trigger(n)]):u.$root.find("."+i.highlighted).hasClass(i.disabled)||(u.set("select",u.component.item.highlight),s.closeOnSelect&&u.close(!0)))})),u.trigger("open"))},close:function(e){return e&&(s.editable?r.focus():(u.$holder.off("focus.toOpen").focus(),setTimeout(function(){u.$holder.on("focus.toOpen",f)},0))),c.removeClass(i.active),$(r,"expanded",!1),setTimeout(function(){u.$root.removeClass(i.opened+" "+i.focused),$(u.$root[0],"hidden",!0)},0),d.open?(d.open=!1,o&&h("body").css("overflow","").css("padding-right","-="+y()),m.off("."+d.id),u.trigger("close")):u},clear:function(e){return u.set("clear",null,e)},set:function(e,t,n){var o,r,i=h.isPlainObject(e),a=i?e:{};if(n=i&&h.isPlainObject(t)?t:n||{},e){for(o in i||(a[e]=t),a)r=a[o],o in u.component.item&&(void 0===r&&(r=null),u.component.set(o,r,n)),"select"!=o&&"clear"!=o||!s.updateInput||c.val("clear"==o?"":u.get(o,s.format)).trigger("change");u.render()}return n.muted?u:u.trigger("set",a)},get:function(e,t){if(null!=d[e=e||"value"])return d[e];if("valueSubmit"==e){if(u._hidden)return u._hidden.value;e="value"}var n;return"value"==e?r.value:e in u.component.item?"string"==typeof t?(n=u.component.get(e))?v._.trigger(u.component.formats.toString,u.component,[t,n]):"":u.component.get(e):void 0},on:function(e,t,n){var o,r,i=h.isPlainObject(e),a=i?e:{};if(e)for(o in i||(a[e]=t),a)r=a[o],d.methods[o=n?"_"+o:o]=d.methods[o]||[],d.methods[o].push(r);return u},off:function(){var e,t=arguments,n=0;for(namesCount=t.length;n ').appendTo("body"),t=e[0].offsetWidth;e.css("overflow","scroll");var n=h('
').appendTo(e)[0].offsetWidth;return e.remove(),t-n}function _(e,t){var n=[];return e.path&&(n=e.path),(n=e.originalEvent&&e.originalEvent.path?e.originalEvent.path:n)&&0 "+(t=h.isArray(t)?t.join(""):t)+" ":""},lead:function(e){return(e<10?"0":"")+e},trigger:function(e,t,n){return"function"==typeof e?e.apply(t,n||[]):e},digits:function(e){return/\d/.test(e[1])?2:1},isDate:function(e){return-1<{}.toString.call(e).indexOf("Date")&&this.isInteger(e.getDate())},isInteger:function(e){return-1<{}.toString.call(e).indexOf("Number")&&e%1==0},ariaAttr:function(e,t){h.isPlainObject(e)||(e={attribute:t});for(var n in t="",e){var o=("role"==n?"":"aria-")+n,r=e[n];t+=null==r?"":o+'="'+e[n]+'"'}return t}},v.extend=function(o,r){h.fn[o]=function(e,t){var n=this.data(o);return"picker"==e?n:n&&"string"==typeof e?v._.trigger(n[e],n,[t]):this.each(function(){h(this).data(o)||new v(this,o,r,e)})},h.fn[o].defaults=r.defaults},v})!!function(e){"function"==typeof define&&define.amd?define(["./picker","jquery"],e):"object"==typeof exports?module.exports=e(require("./picker.js"),require("jquery")):e(Picker,jQuery)}(function(e,p){var t,y=e._;function a(t,a){function e(){return r.currentStyle?"rtl"==r.currentStyle.direction:"rtl"==getComputedStyle(t.$root[0]).direction}var n,i=this,r=t.$node[0],o=r.value,s=t.$node.data("value"),o=s||o,s=s?a.formatSubmit:a.format;i.settings=a,i.$node=t.$node,i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.disable=(a.disable||[]).slice(0),i.item.enable=-(!0===(n=i.item.disable)[0]?n.shift():-1),i.set("min",a.min).set("max",a.max).set("now"),o?i.set("select",o,{format:s,defaultValue:!0}):i.set("select",null).set("highlight",i.item.now),i.key={40:7,38:-7,39:function(){return e()?-1:1},37:function(){return e()?1:-1},go:function(e){var t=i.item.highlight,t=new Date(t.year,t.month,t.date+e);i.set("highlight",t,{interval:e}),this.render()}},t.on("render",function(){t.$root.find("."+a.klass.selectMonth).on("change",function(){var e=this.value;e&&(t.set("highlight",[t.get("view").year,e,t.get("highlight").date]),t.$root.find("."+a.klass.selectMonth).trigger("focus"))}),t.$root.find("."+a.klass.selectYear).on("change",function(){var e=this.value;e&&(t.set("highlight",[e,t.get("view").month,t.get("highlight").date]),t.$root.find("."+a.klass.selectYear).trigger("focus"))})},1).on("open",function(){var e="";i.disabled(i.get("now"))&&(e=":not(."+a.klass.buttonToday+")"),t.$root.find("button"+e+", select").attr("disabled",!1)},1).on("close",function(){t.$root.find("button, select").attr("disabled",!0)},1)}function n(e,t,a){e=e.match(/[^\x00-\x7F]+|\w+/)[0];return a.mm||a.m||(a.m=t.indexOf(e)+1),e.length}function i(e){return e.match(/\w+/)[0].length}a.prototype.set=function(t,a,n){var i=this,e=i.item;return null===a?e[t="clear"==t?"select":t]=a:(e["enable"==t?"disable":"flip"==t?"enable":t]=i.queue[t].split(" ").map(function(e){return a=i[e](t,a,n)}).pop(),"select"==t?i.set("highlight",e.select,n):"highlight"==t?i.set("view",e.highlight,n):t.match(/^(flip|min|max|disable|enable)$/)&&(e.select&&i.disabled(e.select)&&i.set("select",e.select,n),e.highlight)&&i.disabled(e.highlight)&&i.set("highlight",e.highlight,n)),i},a.prototype.get=function(e){return this.item[e]},a.prototype.create=function(e,t,a){var n,i=this;return(t=void 0===t?e:t)==-1/0||t==1/0?n=t:t=p.isPlainObject(t)&&y.isInteger(t.pick)?t.obj:p.isArray(t)?(t=new Date(t[0],t[1],t[2]),y.isDate(t)?t:i.create().obj):y.isInteger(t)||y.isDate(t)?i.normalize(new Date(t),a):i.now(e,t,a),{year:n||t.getFullYear(),month:n||t.getMonth(),date:n||t.getDate(),day:n||t.getDay(),obj:n||t,pick:n||t.getTime()}},a.prototype.createRange=function(e,t){function a(e){return!0===e||p.isArray(e)||y.isDate(e)?n.create(e):e}var n=this;return y.isInteger(e)||(e=a(e)),y.isInteger(t)||(t=a(t)),y.isInteger(e)&&p.isPlainObject(t)?e=[t.year,t.month,t.date+e]:y.isInteger(t)&&p.isPlainObject(e)&&(t=[e.year,e.month,e.date+t]),{from:a(e),to:a(t)}},a.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},a.prototype.overlapRanges=function(e,t){var a=this;return e=a.createRange(e.from,e.to),t=a.createRange(t.from,t.to),a.withinRange(e,t.from)||a.withinRange(e,t.to)||a.withinRange(t,e.from)||a.withinRange(t,e.to)},a.prototype.now=function(e,t,a){return t=new Date,a&&a.rel&&t.setDate(t.getDate()+a.rel),this.normalize(t,a)},a.prototype.navigate=function(e,t,a){var n,i,r,o=p.isArray(t),s=p.isPlainObject(t),l=this.item.view;if(o||s){for(r=s?(n=t.year,i=t.month,t.date):(n=+t[0],i=+t[1],+t[2]),a&&a.nav&&l&&l.month!==i&&(n=l.year,i=l.month),n=(o=new Date(n,i+(a&&a.nav?a.nav:0),1)).getFullYear(),i=o.getMonth();new Date(n,i,r).getMonth()!==i;)--r;t=[n,i,r]}return t},a.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},a.prototype.measure=function(e,t){return y.isInteger(t)?t=this.now(e,t,{rel:t}):t?"string"==typeof t&&(t=this.parse(e,t)):t="min"==e?-1/0:1/0,t},a.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},a.prototype.validate=function(e,a,t){var n,i,r,o,s=this,l=a,c=t&&t.interval?t.interval:1,d=-1===s.item.enable,u=s.item.min,h=s.item.max,m=d&&s.item.disable.filter(function(e){var t;return p.isArray(e)&&((t=s.create(e).pick) a.pick&&(i=!0)),y.isInteger(e)}).length;if((!t||!t.nav&&!t.defaultValue)&&(!d&&s.disabled(a)||d&&s.disabled(a)&&(m||n||i)||!d&&(a.pick<=u.pick||a.pick>=h.pick)))for(d&&!m&&(!i&&0 l.month)&&(a=l,c=0 =h.pick&&(o=!0,c=-1,a=s.create([h.year,h.month,h.date+(a.pick===h.pick?0:1)])),!r||!o);)a=s.create([a.year,a.month,a.date+c]);return a},a.prototype.disabled=function(t){var a=this,e=(e=a.item.disable.filter(function(e){return y.isInteger(e)?t.day===(a.settings.firstDay?e:e-1)%7:p.isArray(e)||y.isDate(e)?t.pick===a.create(e).pick:p.isPlainObject(e)?a.withinRange(e,t):void 0})).length&&!e.filter(function(e){return p.isArray(e)&&"inverted"==e[3]||p.isPlainObject(e)&&e.inverted}).length;return-1===a.item.enable?!e:e||t.pick a.item.max.pick},a.prototype.parse=function(e,n,t){var i=this,r={};return n&&"string"==typeof n?(t&&t.format||((t=t||{}).format=i.settings.format),i.formats.toArray(t.format).map(function(e){var t=i.formats[e],a=t?y.trigger(t,i,[n,r]):e.replace(/^!/,"").length;t&&(r[e]=n.substr(0,a)),n=n.substr(a)}),[r.yyyy||r.yy,+(r.mm||r.m)-1,r.dd||r.d]):n},a.prototype.formats={d:function(e,t){return e?y.digits(e):t.date},dd:function(e,t){return e?2:y.lead(t.date)},ddd:function(e,t){return e?i(e):this.settings.weekdaysShort[t.day]},dddd:function(e,t){return e?i(e):this.settings.weekdaysFull[t.day]},m:function(e,t){return e?y.digits(e):t.month+1},mm:function(e,t){return e?2:y.lead(t.month+1)},mmm:function(e,t){var a=this.settings.monthsShort;return e?n(e,a,t):a[t.month]},mmmm:function(e,t){var a=this.settings.monthsFull;return e?n(e,a,t):a[t.month]},yy:function(e,t){return e?2:(""+t.year).slice(2)},yyyy:function(e,t){return e?4:t.year},toArray:function(e){return e.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(e,t){var a=this;return a.formats.toArray(e).map(function(e){return y.trigger(a.formats[e],a,[0,t])||e.replace(/^!/,"")}).join("")}},a.prototype.isDateExact=function(e,t){return y.isInteger(e)&&y.isInteger(t)||"boolean"==typeof e&&"boolean"==typeof t?e===t:(y.isDate(e)||p.isArray(e))&&(y.isDate(t)||p.isArray(t))?this.create(e).pick===this.create(t).pick:!(!p.isPlainObject(e)||!p.isPlainObject(t))&&this.isDateExact(e.from,t.from)&&this.isDateExact(e.to,t.to)},a.prototype.isDateOverlap=function(e,t){var a=this.settings.firstDay?1:0;return y.isInteger(e)&&(y.isDate(t)||p.isArray(t))?(e=e%7+a)===this.create(t).day+1:y.isInteger(t)&&(y.isDate(e)||p.isArray(e))?(t=t%7+a)===this.create(e).day+1:!(!p.isPlainObject(e)||!p.isPlainObject(t))&&this.overlapRanges(e,t)},a.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},a.prototype.deactivate=function(e,t){var n=this,i=n.item.disable.slice(0);return"flip"==t?n.flipEnable():!1===t?(n.flipEnable(1),i=[]):!0===t?(n.flipEnable(-1),i=[]):t.map(function(e){for(var t,a=0;a =f.year&&h.month>=f.month||!e&&h.year<=p.year&&h.month<=p.month?" "+l.klass.navDisabled:""),"data-nav="+(e||-1)+" "+y.ariaAttr({role:"button",controls:s.$node[0].id+"_table"})+' title="'+(e?l.labelMonthNext:l.labelMonthPrev)+'"')}function t(){var t=l.showMonthsShort?l.monthsShort:l.monthsFull;return l.selectMonths?y.node("select",y.group({min:0,max:11,i:1,node:"option",item:function(e){return[t[e],0,"value="+e+(h.month==e?" selected":"")+(h.year==p.year&&e f.month?" disabled":"")]}}),l.klass.selectMonth,(o?"":"disabled")+" "+y.ariaAttr({controls:s.$node[0].id+"_table"})+' title="'+l.labelMonthSelect+'"'):y.node("div",t[h.month],l.klass.month)}function a(){var e,t,a,n,i=h.year,r=!0===l.selectYears?5:~~(l.selectYears/2);return r?(a=p.year,e=f.year,t=i+r,(r=i-r) f.pick,r=y.trigger(s.formats.toString,s,[l.format,e]);return[y.node("div",e.date,((t=[l.klass.day]).push(h.month==e.month?l.klass.infocus:l.klass.outfocus),c.pick==e.pick&&t.push(l.klass.now),a&&t.push(l.klass.selected),n&&t.push(l.klass.highlighted),i&&t.push(l.klass.disabled),t.join(" ")),"data-pick="+e.pick+" "+y.ariaAttr({role:"gridcell",label:r,selected:!(!a||s.$node.val()!==r)||null,activedescendant:!!n||null,disabled:!!i||null})),"",y.ariaAttr({role:"presentation"})]}})]}})),l.klass.table,'id="'+s.$node[0].id+'_table" '+y.ariaAttr({role:"grid",controls:s.$node[0].id,readonly:!0}))+y.node("div",y.node("button",l.today,l.klass.buttonToday,"type=button data-pick="+c.pick+(o&&!s.disabled(c)?"":" disabled")+" "+y.ariaAttr({controls:s.$node[0].id}))+y.node("button",l.clear,l.klass.buttonClear,"type=button data-clear=1"+(o?"":" disabled")+" "+y.ariaAttr({controls:s.$node[0].id}))+y.node("button",l.close,l.klass.buttonClose,"type=button data-close=true "+(o?"":" disabled")+" "+y.ariaAttr({controls:s.$node[0].id})),l.klass.footer)},a.defaults={labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,updateInput:!0,format:"d mmmm, yyyy",klass:{table:(t=e.klasses().picker+"__")+"table",header:t+"header",navPrev:t+"nav--prev",navNext:t+"nav--next",navDisabled:t+"nav--disabled",month:t+"month",year:t+"year",selectMonth:t+"select--month",selectYear:t+"select--year",weekdays:t+"weekday",day:t+"day",disabled:t+"day--disabled",selected:t+"day--selected",highlighted:t+"day--highlighted",now:t+"day--today",infocus:t+"day--infocus",outfocus:t+"day--outfocus",footer:t+"footer",buttonClear:t+"button--clear",buttonToday:t+"button--today",buttonClose:t+"button--close"}},e.extend("pickadate",a)})!!function(t){"function"==typeof define&&define.amd?define(["./picker","jquery"],t):"object"==typeof exports?module.exports=t(require("./picker.js"),require("jquery")):t(Picker,jQuery)}(function(t,l){var e,m=60,n=1440,h=t._;function i(n,a){var t,e=this,i=n.$node[0].value,r=n.$node.data("value"),i=r||i,r=r?a.formatSubmit:a.format;e.settings=a,e.$node=n.$node,e.queue={interval:"i",min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse create validate",view:"parse create validate",disable:"deactivate",enable:"activate"},e.item={},e.item.clear=null,e.item.interval=a.interval||30,e.item.disable=(a.disable||[]).slice(0),e.item.enable=-(!0===(t=e.item.disable)[0]?t.shift():-1),e.set("min",a.min).set("max",a.max).set("now"),i?e.set("select",i,{format:r}):e.set("select",null).set("highlight",e.item.now),e.key={40:1,38:-1,39:1,37:-1,go:function(t){e.set("highlight",e.item.highlight.pick+t*e.item.interval,{interval:t*e.item.interval}),this.render()}},n.on("render",function(){function t(e,i){r("transform").map(function(t){e.css(t,i)}),r("transition").map(function(t){e.css(t,i)})}var e=n.$root.children(),i=e.find("."+a.klass.viewset),r=function(e){return["webkit","moz","ms","o",""].map(function(t){return(t?"-"+t+"-":"")+e})};i.length&&(t(e,"none"),e[0].scrollTop=~~i.position().top-2*i[0].clientHeight,t(e,""))},1).on("open",function(){n.$root.find("button").attr("disabled",!1)},1).on("close",function(){n.$root.find("button").attr("disabled",!0)},1)}i.prototype.set=function(e,i,r){var n=this,t=n.item;return null===i?t[e="clear"==e?"select":e]=i:(t["enable"==e?"disable":"flip"==e?"enable":e]=n.queue[e].split(" ").map(function(t){return i=n[t](e,i,r)}).pop(),"select"==e?n.set("highlight",t.select,r):"highlight"==e?n.set("view",t.highlight,r):"interval"==e?n.set("min",t.min,r).set("max",t.max,r):e.match(/^(flip|min|max|disable|enable)$/)&&(t.select&&n.disabled(t.select)&&n.set("select",i,r),t.highlight&&n.disabled(t.highlight)&&n.set("highlight",i,r),"min"==e)&&n.set("max",t.max,r)),n},i.prototype.get=function(t){return this.item[t]},i.prototype.create=function(t,e,i){var r=this;return h.isDate(e=void 0===e?t:e)&&(e=[e.getHours(),e.getMinutes()]),l.isPlainObject(e)&&h.isInteger(e.pick)?e=e.pick:l.isArray(e)?e=+e[0]*m+ +e[1]:h.isInteger(e)||(e=r.now(t,e,i)),"max"==t&&e =t.from.pick&&e.pick<=t.to.pick},i.prototype.overlapRanges=function(t,e){var i=this;return t=i.createRange(t.from,t.to),e=i.createRange(e.from,e.to),i.withinRange(t,e.from)||i.withinRange(t,e.to)||i.withinRange(e,t.from)||i.withinRange(e,t.to)},i.prototype.now=function(t,e){var i,r=this.item.interval,n=new Date,n=n.getHours()*m+n.getMinutes();return n-=n%r,i=e<0&&r*e+n<=-r,n+="min"==t&&i?0:r,h.isInteger(e)&&(n+=r*(i&&"max"!=t?e+1:e)),n},i.prototype.normalize=function(t,e){var i=this.item.interval,r=this.item.min&&this.item.min.pick||0;return e-="min"==t?0:(e-r)%i},i.prototype.measure=function(t,e,i){return"string"==typeof(e=e||("min"==t?[0,0]:[23,59]))?e=this.parse(t,e):!0===e||h.isInteger(e)?e=this.now(t,e,i):l.isPlainObject(e)&&h.isInteger(e.pick)&&(e=this.normalize(t,e.pick,i)),e},i.prototype.validate=function(t,e,i){var r=this,i=(i&&i.interval?i:r.item).interval;return r.disabled(e)&&(e=r.shift(e,i)),e=r.scope(e),e=r.disabled(e)?r.shift(e,-1*i):e},i.prototype.disabled=function(e){var i=this,t=(t=i.item.disable.filter(function(t){return h.isInteger(t)?e.hour==t:l.isArray(t)||h.isDate(t)?e.pick==i.create(t).pick:l.isPlainObject(t)?i.withinRange(t,e):void 0})).length&&!t.filter(function(t){return l.isArray(t)&&"inverted"==t[2]||l.isPlainObject(t)&&t.inverted}).length;return-1===i.item.enable?!t:t||e.pick i.item.max.pick},i.prototype.shift=function(t,e){var i=this,r=i.item.min.pick,n=i.item.max.pick;for(e=e||i.item.interval;i.disabled(t)&&!((t=i.create(t.pick+=e)).pick<=r||t.pick>=n););return t},i.prototype.scope=function(t){var e=this.item.min.pick,i=this.item.max.pick;return this.create(t.pick>i?i:t.pick t.length)&&(e=t.length);for(var i=0,a=new Array(e);i t.width?3===i?o=t.height*e:h=t.width/e:3===i?h=t.width/e:o=t.height*e,{aspectRatio:e,naturalWidth:n,naturalHeight:a,width:o,height:h});this.canvasData=e,this.limited=1===i||2===i,this.limitCanvas(!0,!0),e.width=Math.min(Math.max(e.width,e.minWidth),e.maxWidth),e.height=Math.min(Math.max(e.height,e.minHeight),e.maxHeight),e.left=(t.width-e.width)/2,e.top=(t.height-e.height)/2,e.oldLeft=e.left,e.oldTop=e.top,this.initialCanvasData=g({},e)},limitCanvas:function(t,e){var i=this.options,a=this.containerData,n=this.canvasData,o=this.cropBoxData,h=i.viewMode,r=n.aspectRatio,s=this.cropped&&o;t&&(t=Number(i.minCanvasWidth)||0,i=Number(i.minCanvasHeight)||0,1 =a.width&&(n.minLeft=Math.min(0,r),n.maxLeft=Math.max(0,r)),n.height>=a.height)&&(n.minTop=Math.min(0,t),n.maxTop=Math.max(0,t))):(n.minLeft=-n.width,n.minTop=-n.height,n.maxLeft=a.width,n.maxTop=a.height))},renderCanvas:function(t,e){var i,a,n,o,h=this.canvasData,r=this.imageData;e&&(e={width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0},r=e.width,o=e.height,e=e.degree,i=90==(e=Math.abs(e)%180)?{width:o,height:r}:(a=e%90*Math.PI/180,i=Math.sin(a),n=r*(a=Math.cos(a))+o*i,r=r*i+o*a,90 h.maxWidth||h.width h.maxHeight||h.height e.width?a.height=a.width/i:a.width=a.height*i),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*t),a.height=Math.max(a.minHeight,a.height*t),a.left=e.left+(e.width-a.width)/2,a.top=e.top+(e.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=g({},a)},limitCropBox:function(t,e){var i,a,n=this.options,o=this.containerData,h=this.canvasData,r=this.cropBoxData,s=this.limited,c=n.aspectRatio;t&&(t=Number(n.minCropBoxWidth)||0,n=Number(n.minCropBoxHeight)||0,i=s?Math.min(o.width,h.width,h.width+h.left,o.width-h.left):o.width,a=s?Math.min(o.height,h.height,h.height+h.top,o.height-h.top):o.height,t=Math.min(t,o.width),n=Math.min(n,o.height),c&&(t&&n?t i.maxWidth||i.width i.maxHeight||i.height =e.width&&i.height>=e.height?q:I),f(this.cropBox,g({width:i.width,height:i.height},x({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),y(this.element,tt,this.getData())}},i={initPreview:function(){var t=this.element,i=this.crossOrigin,e=this.options.preview,a=i?this.crossOriginUrl:this.url,n=t.alt||"The image to preview",o=document.createElement("img");i&&(o.crossOrigin=i),o.src=a,o.alt=n,this.viewBox.appendChild(o),this.viewBoxImage=o,e&&("string"==typeof(o=e)?o=t.ownerDocument.querySelectorAll(e):e.querySelector&&(o=[e]),z(this.previews=o,function(t){var e=document.createElement("img");w(t,m,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),i&&(e.crossOrigin=i),e.src=a,e.alt=n,e.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(e)}))},resetPreview:function(){z(this.previews,function(e){var i=Bt(e,m),i=(f(e,{width:i.width,height:i.height}),e.innerHTML=i.html,e),e=m;if(o(i[e]))try{delete i[e]}catch(t){i[e]=void 0}else if(i.dataset)try{delete i.dataset[e]}catch(t){i.dataset[e]=void 0}else i.removeAttribute("data-".concat(Dt(e)))})},preview:function(){var h=this.imageData,t=this.canvasData,e=this.cropBoxData,r=e.width,s=e.height,c=h.width,d=h.height,l=e.left-t.left-h.left,p=e.top-t.top-h.top;this.cropped&&!this.disabled&&(f(this.viewBoxImage,g({width:c,height:d},x(g({translateX:-l,translateY:-p},h)))),z(this.previews,function(t){var e=Bt(t,m),i=e.width,e=e.height,a=i,n=e,o=1;r&&(n=s*(o=i/r)),s&&e Math.abs(a-1)?i:a)&&(t.restore&&(o=this.getCanvasData(),h=this.getCropBoxData()),this.render(),t.restore)&&(this.setCanvasData(z(o,function(t,e){o[e]=t*n})),this.setCropBoxData(z(h,function(t,e){h[e]=t*n}))))},dblclick:function(){var t,e;this.disabled||this.options.dragMode===_||this.setDragMode((t=this.dragBox,e=Q,(t.classList?t.classList.contains(e):-1 y&&(D.x=y-f);break;case k:p+D.x x&&(D.y=x-v)}}var i,a,o,n=this.options,h=this.canvasData,r=this.containerData,s=this.cropBoxData,c=this.pointers,d=this.action,l=n.aspectRatio,p=s.left,m=s.top,u=s.width,g=s.height,f=p+u,v=m+g,w=0,b=0,y=r.width,x=r.height,M=!0,C=(!l&&t.shiftKey&&(l=u&&g?u/g:1),this.limited&&(w=s.minLeft,b=s.minTop,y=w+Math.min(r.width,h.width,h.left+h.width),x=b+Math.min(r.height,h.height,h.top+h.height)),c[Object.keys(c)[0]]),D={x:C.endX-C.startX,y:C.endY-C.startY};switch(d){case I:p+=D.x,m+=D.y;break;case B:0<=D.x&&(y<=f||l&&(m<=b||x<=v))?M=!1:(e(B),(u+=D.x)<0&&(d=k,p-=u=-u),l&&(m+=(s.height-(g=u/l))/2));break;case T:D.y<=0&&(m<=b||l&&(p<=w||y<=f))?M=!1:(e(T),g-=D.y,m+=D.y,g<0&&(d=O,m-=g=-g),l&&(p+=(s.width-(u=g*l))/2));break;case k:D.x<=0&&(p<=w||l&&(m<=b||x<=v))?M=!1:(e(k),u-=D.x,p+=D.x,u<0&&(d=B,p-=u=-u),l&&(m+=(s.height-(g=u/l))/2));break;case O:0<=D.y&&(x<=v||l&&(p<=w||y<=f))?M=!1:(e(O),(g+=D.y)<0&&(d=T,m-=g=-g),l&&(p+=(s.width-(u=g*l))/2));break;case E:if(l){if(D.y<=0&&(m<=b||y<=f)){M=!1;break}e(T),g-=D.y,m+=D.y,u=g*l}else e(T),e(B),!(0<=D.x)||f Math.abs(o)&&(o=i)})}),o),t),M=!1;break;case U:D.x&&D.y?(i=Wt(this.cropper),p=C.startX-i.left,m=C.startY-i.top,u=s.minWidth,g=s.minHeight,0 or element.");this.element=t,this.options=g({},ut,u(e)&&e),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var t,e,i;return t=n,i=[{key:"noConflict",value:function(){return window.Cropper=Pt,n}},{key:"setDefaults",value:function(t){g(ut,u(t)&&t)}}],(e=[{key:"init",value:function(){var t,e=this.element,i=e.tagName.toLowerCase();if(!e[c]){if(e[c]=this,"img"===i){if(this.isImg=!0,t=e.getAttribute("src")||"",!(this.originalUrl=t))return;t=e.src}else"canvas"===i&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e,i,a,n,o,h,r=this;t&&(this.url=t,this.imageData={},e=this.element,(i=this.options).rotatable||i.scalable||(i.checkOrientation=!1),i.checkOrientation&&window.ArrayBuffer?lt.test(t)?pt.test(t)?this.read((h=(h=t).replace(Xt,""),a=atob(h),h=new ArrayBuffer(a.length),z(n=new Uint8Array(h),function(t,e){n[e]=a.charCodeAt(e)}),h)):this.clone():(o=new XMLHttpRequest,h=this.clone.bind(this),this.reloading=!0,(this.xhr=o).onabort=h,o.onerror=h,o.ontimeout=h,o.onprogress=function(){o.getResponseHeader("content-type")!==ct&&o.abort()},o.onload=function(){r.read(o.response)},o.onloadend=function(){r.reloading=!1,r.xhr=null},i.checkCrossOrigin&&Lt(t)&&e.crossOrigin&&(t=zt(t)),o.open("GET",t,!0),o.responseType="arraybuffer",o.withCredentials="use-credentials"===e.crossOrigin,o.send()):this.clone())}},{key:"read",value:function(t){var e=this.options,i=this.imageData,a=Rt(t),n=0,o=1,h=1;1
&#37329;&#23453;&#25615;&#49;&#56;&#56;&#98;&#101;&#97;&#116;&#32593;&#30331;&#24405;&#97;&#112;&#112;',o=(n=n.querySelector(".".concat(c,"-container"))).querySelector(".".concat(c,"-canvas")),h=n.querySelector(".".concat(c,"-drag-box")),s=(r=n.querySelector(".".concat(c,"-crop-box"))).querySelector(".".concat(c,"-face")),this.container=a,this.cropper=n,this.canvas=o,this.dragBox=h,this.cropBox=r,this.viewBox=n.querySelector(".".concat(c,"-view-box")),this.face=s,o.appendChild(i),v(t,L),a.insertBefore(n,t.nextSibling),X(i,Z),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,v(r,L),e.guides||v(r.getElementsByClassName("".concat(c,"-dashed")),L),e.center||v(r.getElementsByClassName("".concat(c,"-center")),L),e.background&&v(n,"".concat(c,"-bg")),e.highlight||v(s,G),e.cropBoxMovable&&(v(s,V),w(s,d,I)),e.cropBoxResizable||(v(r.getElementsByClassName("".concat(c,"-line")),L),v(r.getElementsByClassName("".concat(c,"-point")),L)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),l(e.ready)&&b(t,"ready",e.ready,{once:!0}),y(t,"ready"))}},{key:"unbuild",value:function(){var t;this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),(t=this.cropper.parentNode)&&t.removeChild(this.cropper),X(this.element,L))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&j(t.prototype,e),i&&j(t,i),Object.defineProperty(t,"prototype",{writable:!1}),n}();return g(It.prototype,t,i,e,St,jt,At),It})!"object"!=typeof window.UM&&(window.UM={}),"object"!=typeof UM.frontend&&(UM.frontend={}),UM.frontend={cropper:{obj:null,init:function(){var o=jQuery(".um-modal .um-single-image-preview img").first();if(o.length&&""!==o.attr("src")){UM.frontend.cropper.obj&&UM.frontend.cropper.destroy();var t=jQuery(".um-modal .um-single-image-preview"),r=o.parent().data("crop"),n=o.parent().data("min_width"),i=o.parent().data("min_height"),a=o.parent().data("ratio"),d=jQuery(".um-modal").find("#um_upload_single").data("ratio"),d=(d&&(a=d.split(":")[0]),jQuery(window).height()-(jQuery(".um-modal-footer a").height()+20)-50-jQuery(".um-modal-header:visible").height());o.css({height:"auto"}),t.css({height:"auto"}),jQuery(window).height()<=400?(t.css({height:d+"px","max-height":d+"px"}),o.css({height:"auto"})):(o.css({height:"auto","max-height":d+"px"}),t.css({height:o.height(),"max-height":d+"px"}));let e;"square"===r?e={minWidth:n,minHeight:i,dragCrop:!1,aspectRatio:1,zoomable:!1,rotatable:!1,dashed:!1}:"cover"===r?(0 '),jQuery(".um").hasClass("um-editing"))&&jQuery(".um-cover-overlay").show(),jQuery(".um-single-image-preview[data-key="+i+"]").fadeIn().find("img").attr("src",e.data.image.source_url+"?"+a.getTime()),um_remove_modal(),jQuery("img.cropper-invisible").remove(),jQuery(".um-single-image-preview[data-key="+i+"]").parents(".um-field").find(".um-btn-auto-width").html(t.attr("data-change")),jQuery(".um-single-image-preview[data-key="+i+"]").parents(".um-field").find('input[type="hidden"]').val(e.data.image.filename))}})):(a=new Date,jQuery(".um-single-image-preview[data-key="+i+"]").fadeIn().find("img").attr("src",u+"?"+a.getTime()),um_remove_modal(),jQuery(".um-single-image-preview[data-key="+i+"]").parents(".um-field").find(".um-btn-auto-width").html(t.attr("data-change")),jQuery(".um-single-image-preview[data-key="+i+"]").parents(".um-field").find("input[type=hidden]").val(r))}),jQuery(document.body).on("click",'a[data-modal^="um_"], span[data-modal^="um_"]',function(e){var a=jQuery(this).attr("data-modal"),t="normal";jQuery(this).data("modal-size")&&(t=jQuery(this).data("modal-size")),jQuery(this).data("modal-copy")&&(jQuery("#"+a).html(jQuery(this).parents(".um-field").find(".um-modal-hidden-content").html()),jQuery(this).parents(".um-profile-photo").attr("data-user_id")&&jQuery("#"+a).attr("data-user_id",jQuery(this).parents(".um-profile-photo").attr("data-user_id")),jQuery(this).parents(".um-cover").attr("data-ratio")&&jQuery("#"+a).attr("data-ratio",jQuery(this).parents(".um-cover").attr("data-ratio")),jQuery(this).parents(".um-cover").attr("data-user_id")&&jQuery("#"+a).attr("data-user_id",jQuery(this).parents(".um-cover").attr("data-user_id")),0 ").get(0).files,h.formdata=void 0!==window.FormData,!!L.fn.prop);function a(e){var t=e.data;e.isDefaultPrevented()||(e.preventDefault(),L(e.target).ajaxSubmit(t))}function r(e){var t=e.target,a=L(t);if(!a.is("[type=submit],[type=image]")){var r=a.closest("[type=submit]");if(0===r.length)return;t=r[0]}var n=this;"image"==(n.clk=t).type&&(void 0!==e.offsetX?(n.clk_x=e.offsetX,n.clk_y=e.offsetY):"function"==typeof L.fn.offset?(r=a.offset(),n.clk_x=e.pageX-r.left,n.clk_y=e.pageY-r.top):(n.clk_x=e.pageX-t.offsetLeft,n.clk_y=e.pageY-t.offsetTop)),setTimeout(function(){n.clk=n.clk_x=n.clk_y=null},100)}function M(){var e;L.fn.ajaxSubmit.debug&&(e="[jquery.form] "+Array.prototype.join.call(arguments,""),window.console&&window.console.log?window.console.log(e):window.opera&&window.opera.postError&&window.opera.postError(e))}L.fn.attr2=function(){var e;return t&&((e=this.prop.apply(this,arguments))&&e.jquery||"string"==typeof e)?e:this.attr.apply(this,arguments)},L.fn.ajaxSubmit=function(c){if(this.length){var A,E=this,e=("function"==typeof c?c={success:c}:void 0===c&&(c={}),A=c.type||this.attr2("method"),e=(e=(e="string"==typeof(e=c.url||this.attr2("action"))?L.trim(e):"")||window.location.href||"")&&(e.match(/^([^#]+)/)||[])[1],c=L.extend(!0,{url:e,success:L.ajaxSettings.success,type:A||L.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},c),{});if(this.trigger("form-pre-serialize",[this,c,e]),e.veto)M("ajaxSubmit: submit vetoed via form-pre-serialize trigger");else if(c.beforeSerialize&&!1===c.beforeSerialize(this,c))M("ajaxSubmit: submit aborted via beforeSerialize callback");else{var t=c.traditional,n=(void 0===t&&(t=L.ajaxSettings.traditional),[]),a=this.formToArray(c.semantic,n);if(c.data&&(c.extraData=c.data,u=L.param(c.data,t)),c.beforeSubmit&&!1===c.beforeSubmit(a,this,c))M("ajaxSubmit: submit aborted via beforeSubmit callback");else if(this.trigger("form-submit-validate",[a,this,c,e]),e.veto)M("ajaxSubmit: submit vetoed via form-submit-validate trigger");else{var r,o,i,e=L.param(a,t),s=(u&&(e=e?e+"&"+u:u),"GET"==c.type.toUpperCase()?(c.url+=(0<=c.url.indexOf("?")?"&":"?")+e,c.data=null):c.data=e,[]);c.resetForm&&s.push(function(){E.resetForm()}),c.clearForm&&s.push(function(){E.clearForm(c.includeHidden)}),!c.dataType&&c.target?(r=c.success||function(){},s.push(function(e){var t=c.replaceTarget?"replaceWith":"html";L(c.target)[t](e).each(r,arguments)})):c.success&&s.push(c.success),c.success=function(e,t,a){for(var r=c.context||this,n=0,o=s.length;n ')).css({position:"absolute",top:"-1000px",left:"-1000px"}),m=f[0],p={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var t="timeout"===e?"timeout":"aborted";M("aborting upload..."+t),this.aborted=1;try{m.contentWindow.document.execCommand&&m.contentWindow.document.execCommand("Stop")}catch(e){}f.attr("src",l.iframeSrc),p.error=t,l.error&&l.error.call(l.context,p,t,e),u&&L.event.trigger("ajaxError",[p,l,t]),l.complete&&l.complete.call(l.context,p,t)}},(u=l.global)&&0==L.active++&&L.event.trigger("ajaxStart"),u&&L.event.trigger("ajaxSend",[p,l]),l.beforeSend&&!1===l.beforeSend.call(l.context,p,l)?(l.global&&L.active--,S.reject()):p.aborted?S.reject():((e=s.clk)&&(a=e.name)&&!e.disabled&&(l.extraData=l.extraData||{},l.extraData[a]=e.value,"image"==e.type)&&(l.extraData[a+".x"]=s.clk_x,l.extraData[a+".y"]=s.clk_y),g=1,v=2,e=L("meta[name=csrf-token]").attr("content"),(a=L("meta[name=csrf-param]").attr("content"))&&e&&(l.extraData=l.extraData||{},l.extraData[a]=e),l.forceSync?r():setTimeout(r,10),y=50,j=L.parseXML||function(e,t){return window.ActiveXObject?((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},i=L.parseJSON||function(e){return window.eval("("+e+")")},w=function(e,t,a){var r=e.getResponseHeader("content-type")||"",n="xml"===t||!t&&0<=r.indexOf("xml"),e=n?e.responseXML:e.responseText;return n&&"parsererror"===e.documentElement.nodeName&&L.error&&L.error("parsererror"),"string"==typeof(e=a&&a.dataFilter?a.dataFilter(e,t):e)&&("json"===t||!t&&0<=r.indexOf("json")?e=i(e):("script"===t||!t&&0<=r.indexOf("javascript"))&&L.globalEval(e)),e}),S;function k(t){var a=null;try{t.contentWindow&&(a=t.contentWindow.document)}catch(e){M("cannot get iframe.contentWindow document: "+e)}if(!a)try{a=t.contentDocument||t.document}catch(e){M("cannot get iframe.contentDocument: "+e),a=t.document}return a}function r(){var e=E.attr2("target"),t=E.attr2("action"),a=E.attr("enctype")||E.attr("encoding")||"multipart/form-data";s.setAttribute("target",o),A&&!/post/i.test(A)||s.setAttribute("method","POST"),t!=l.url&&s.setAttribute("action",l.url),l.skipEncodingOverride||A&&!/post/i.test(A)||E.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),l.timeout&&(h=setTimeout(function(){d=!0,D(g)},l.timeout));var r=[];try{if(l.extraData)for(var n in l.extraData)l.extraData.hasOwnProperty(n)&&(L.isPlainObject(l.extraData[n])&&l.extraData[n].hasOwnProperty("name")&&l.extraData[n].hasOwnProperty("value")?r.push(L(' ').val(l.extraData[n].value).appendTo(s)[0]):r.push(L(' ').val(l.extraData[n]).appendTo(s)[0]));l.iframeTarget||f.appendTo("body"),m.attachEvent?m.attachEvent("onload",D):m.addEventListener("load",D,!1),setTimeout(function e(){try{var t=k(m).readyState;M("state = "+t),t&&"uninitialized"==t.toLowerCase()&&setTimeout(e,50)}catch(e){M("Server abort: ",e," (",e.name,")"),D(v),h&&clearTimeout(h),h=void 0}},15);try{s.submit()}catch(e){document.createElement("form").submit.apply(s)}}finally{s.setAttribute("action",t),s.setAttribute("enctype",a),e?s.setAttribute("target",e):E.removeAttr("target"),L(r).remove()}}function D(t){if(!p.aborted&&!T)if((b=k(m))||(M("cannot access response document"),t=v),t===g&&p)p.abort("timeout"),S.reject(p,"timeout");else if(t==v&&p)p.abort("server abort"),S.reject(p,"error","server abort");else if(b&&b.location.href!=l.iframeSrc||d){m.detachEvent?m.detachEvent("onload",D):m.removeEventListener("load",D,!1);var a,t="success";try{if(d)throw"timeout";var e="xml"==l.dataType||b.XMLDocument||L.isXMLDoc(b);if(M("isXml="+e),!e&&window.opera&&(null===b.body||!b.body.innerHTML)&&--y)return M("requeing onLoad callback, DOM not available"),void setTimeout(D,250);var r,n,o,i=b.body||b.documentElement,s=(p.responseText=i?i.innerHTML:null,p.responseXML=b.XMLDocument||b,e&&(l.dataType="xml"),p.getResponseHeader=function(e){return{"content-type":l.dataType}[e.toLowerCase()]},i&&(p.status=Number(i.getAttribute("status"))||p.status,p.statusText=i.getAttribute("statusText")||p.statusText),(l.dataType||"").toLowerCase()),c=/(json|script|text)/.test(s);c||l.textarea?(r=b.getElementsByTagName("textarea")[0])?(p.responseText=r.value,p.status=Number(r.getAttribute("status"))||p.status,p.statusText=r.getAttribute("statusText")||p.statusText):c&&(n=b.getElementsByTagName("pre")[0],o=b.getElementsByTagName("body")[0],n?p.responseText=n.textContent||n.innerText:o&&(p.responseText=o.textContent||o.innerText)):"xml"==s&&!p.responseXML&&p.responseText&&(p.responseXML=j(p.responseText));try{x=w(p,s,l)}catch(e){t="parsererror",p.error=a=e||t}}catch(e){M("error caught: ",e),t="error",p.error=a=e||t}p.aborted&&(M("upload aborted"),t=null),"success"===(t=p.status?200<=p.status&&p.status<300||304===p.status?"success":"error":t)?(l.success&&l.success.call(l.context,x,"success",p),S.resolve(p.responseText,"success",p),u&&L.event.trigger("ajaxSuccess",[p,l])):t&&(void 0===a&&(a=p.statusText),l.error&&l.error.call(l.context,p,t,a),S.reject(p,"error",a),u)&&L.event.trigger("ajaxError",[p,l,a]),u&&L.event.trigger("ajaxComplete",[p,l]),u&&!--L.active&&L.event.trigger("ajaxStop"),l.complete&&l.complete.call(l.context,p,t),T=!0,l.timeout&&clearTimeout(h),setTimeout(function(){l.iframeTarget?f.attr("src",l.iframeSrc):f.remove(),p.responseXML=null},100)}}}},L.fn.ajaxForm=function(e){var t;return(e=e||{}).delegation=e.delegation&&L.isFunction(L.fn.on),e.delegation||0!==this.length?e.delegation?(L(document).off("submit.form-plugin",this.selector,a).off("click.form-plugin",this.selector,r).on("submit.form-plugin",this.selector,e,a).on("click.form-plugin",this.selector,e,r),this):this.ajaxFormUnbind().bind("submit.form-plugin",e,a).bind("click.form-plugin",e,r):(t={s:this.selector,c:this.context},!L.isReady&&t.s?(M("DOM not ready, queuing ajaxForm"),L(function(){L(t.s,t.c).ajaxForm(e)})):M("terminating!zero elements found by selector"+(L.isReady?"":" (DOM not ready)")),this)},L.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},L.fn.formToArray=function(e,t){var a=[];if(0!==this.length){var r=this[0],n=this.attr("id"),o=e?r.getElementsByTagName("*"):r.elements;if(o&&!/MSIE [678]/.test(navigator.userAgent)&&(o=L(o).get()),(o=n&&(n=L(':input[form="'+n+'"]').get()).length?(o||[]).concat(n):o)&&o.length){for(var i,s,c,l,u,f,m=0,p=o.length;m ").get(0).files!==undefined;a.formdata=window.FormData!==undefined;b.fn.uploadFile=function(t){var r=b.extend({url:"",method:"POST",enctype:"multipart/form-data",formData:null,returnType:null,allowedTypes:"*",fileName:"file",formData:{},dynamicFormData:function(){return{}},maxFileSize:-1,maxFileCount:-1,multiple:true,dragDrop:true,autoSubmit:true,showCancel:true,showAbort:true,showDone:true,showDelete:false,showError:true,showStatusAfterSuccess:true,showStatusAfterError:true,showFileCounter:true,fileCounterStyle:").",showProgress:false,onSelect:function(s){return true},onSubmit:function(s,u){},onSuccess:function(u,s,v){},onError:function(v,s,u){},deleteCallback:false,afterUploadAll:false,uploadButtonClass:"upload",dragDropStr:"",abortStr:"Abort",cancelStr:"Cancel",deletelStr:"Delete",doneStr:"Done",multiDragErrorStr:"Multiple File Drag & Drop is not allowed.",extErrorStr:"",sizeErrorStr:"",uploadErrorStr:"Upload is not allowed",maxFileCountErrorStr:""},t);this.fileCounter=1;this.selectedFiles=0;this.fCounter=0;this.sCounter=0;this.tCounter=0;var d="upload-"+(new Date().getTime());this.formGroup=d;this.hide();this.errorLog=b("
");this.after(this.errorLog);this.responses=[];if(!a.formdata){r.dragDrop=false}if(!a.formdata){r.multiple=false}var m=this;var e=b("
"+b(this).html()+"
");b(e).addClass(r.uploadButtonClass);(function k(){if(b.fn.ajaxForm){if(r.dragDrop){var s=b('
');b(m).before(s);b(s).append(e);b(s).prepend(b(r.dragDropStr));f(m,r,s)}else{b(m).before(e)}q(m,d,r,e)}else{window.setTimeout(k,10)}})();this.startUpload=function(){b("."+this.formGroup).each(function(u,s){if(b(this).is("form")){b(this).submit()}})};this.stopUpload=function(){b(".upload-red").each(function(u,s){if(b(this).hasClass(m.formGroup)){b(this).click()}})};this.getResponses=function(){return this.responses};var g=false;function j(){if(r.afterUploadAll&&!g){g=true;(function s(){if(m.sCounter!=0&&(m.sCounter+m.fCounter==m.tCounter)){r.afterUploadAll(m);g=false}else{window.setTimeout(s,100)}})()}}function f(w,u,v){v.on("dragenter",function(s){s.stopPropagation();s.preventDefault();b(this).css("border","2px dashed #ddd")});v.on("dragover",function(s){s.stopPropagation();s.preventDefault()});v.on("drop",function(x){b(this).css("border","2px dashed #ddd");x.preventDefault();w.errorLog.html("");var s=x.originalEvent.dataTransfer.files;if(!u.multiple&&s.length>1){if(u.showError){b("
"+u.multiDragErrorStr+"
").appendTo(w.errorLog)}return}if(u.onSelect(s)==false){return}l(u,w,s)});b(document).on("dragenter",function(s){s.stopPropagation();s.preventDefault()});b(document).on("dragover",function(s){s.stopPropagation();s.preventDefault();v.css("border","2px dashed #ddd")});b(document).on("drop",function(s){s.stopPropagation();s.preventDefault();v.css("border","2px dashed #ddd")})}function i(s){var v="";var u=s/1024;if(parseInt(u)>1024){var w=u/1024;v=w.toFixed(2)+" MB"}else{v=u.toFixed(2)+" KB"}return v}function o(x){var y=[];if(jQuery.type(x)=="string"){y=x.split("&")}else{y=b.param(x).split("&")}var u=y.length;var s=[];var w,v;for(w=0;w "+H.extErrorStr+"").appendTo(B.errorLog)}continue}if(H.maxFileSize!=-1&&u[C].size>H.maxFileSize){if(H.showError){b("
"+H.sizeErrorStr+"
").appendTo(B.errorLog)}continue}if(H.maxFileCount!=-1&&B.selectedFiles>=H.maxFileCount){if(H.showError){b("
"+H.maxFileCountErrorStr+"
").appendTo(B.errorLog)}continue}B.selectedFiles++;var D=H;var w=new FormData();var A=H.fileName.replace("[]","");w.append(A,u[C]);var y=H.formData;if(y){var F=o(y);for(var z=0;z ");v.appendTo("body");var x=[];x.push(u[C].name);n(v,D,E,x,B);B.fileCounter++}}function c(w,v,y){var x=v.allowedTypes.toLowerCase().split(",");var u=y.split(".").pop().toLowerCase();if(v.allowedTypes!="*"&&jQuery.inArray(u,x)<0){return false}return true}function h(u,w){if(u.showFileCounter){var v=b(".upload-filename").length;w.fileCounter=v+1;b(".upload-filename").each(function(A,y){var s=b(this).html().split(u.fileCounterStyle);var x=parseInt(s[0])-1;var z=v+u.fileCounterStyle+s[1];b(this).html(z);v--})}}function q(y,B,D,u){var A="ajax-upload-id-"+(new Date().getTime());var w=b("
");var v=" ";if(D.multiple){if(D.fileName.indexOf("[]")!=D.fileName.length-2){D.fileName+="[]"}v=" "}var z=b(v).appendTo(w);z.change(function(){y.errorLog.html("");var K=D.allowedTypes.toLowerCase().split(",");var G=[];if(this.files){for(H=0;H "+D.extErrorStr+"").appendTo(y.errorLog)}return}F.push({name:I,size:"NA"});if(D.onSelect(F)==false){return}}h(D,y);u.unbind("click");w.hide();q(y,B,D,u);w.addClass(B);if(a.fileapi&&a.formdata){w.removeClass(B);var J=this.files;l(D,y,J)}else{var E="";for(var H=0;H "}else{E+=G[H]+"
"}y.fileCounter++}if(D.maxFileCount!=-1&&(y.selectedFiles+G.length)>D.maxFileCount){if(D.showError){b("
"+D.maxFileCountErrorStr+"
").appendTo(y.errorLog)}return}y.selectedFiles+=G.length;var s=new p(y,D);s.filename.html(E);n(w,D,s,G,y)}});w.css({margin:0,padding:0});var C=b(u).width()+10;if(C==10){C=120}var x=u.height()+10;if(x==10){x=35}u.css({position:"relative",overflow:"hidden",cursor:"default"});z.css({position:"absolute",cursor:"pointer",top:"0px",width:'100%',height:'34px',left:"0px","z-index":"100",opacity:"0.0",filter:"alpha(opacity=0)","-ms-filter":"alpha(opacity=0)","-khtml-opacity":"0.0","-moz-opacity":"0.0"});w.appendTo(u)}function p(v,u){this.statusbar=b("
");this.progressDiv=b("
").appendTo(this.statusbar).hide();this.progressbar=b("
").appendTo(this.progressDiv);this.abort=b("
"+u.abortStr+"
").appendTo(this.statusbar).hide();this.cancel=b("
"+u.cancelStr+"
").appendTo(this.statusbar).hide();this.done=b("
"+u.doneStr+"
").appendTo(this.statusbar).hide();this.del=b("
"+u.deletelStr+"
").appendTo(this.statusbar).hide();v.errorLog.after(this.statusbar);return this}function n(z,y,u,w,A){var x=null;var v={cache:false,contentType:false,processData:false,forceSync:false,data:y.formData,formData:y.fileData,dataType:y.returnType,beforeSubmit:function(F,C,E){if(y.onSubmit.call(this,w)!=false){var B=y.dynamicFormData();if(B){var s=o(B);if(s){for(var D=0;D "+y.uploadErrorStr+"
");u.cancel.show();z.remove();u.cancel.click(function(){u.statusbar.remove()});return false},beforeSend:function(B,s){u.progressDiv.show();u.cancel.hide();u.done.hide();if(y.showAbort){u.abort.show();u.abort.click(function(){B.abort();A.selectedFiles-=w.length})}if(!a.formdata){u.progressbar.width("5%")}else{u.progressbar.width("1%")}},uploadProgress:function(E,s,D,C){if(C>98){C=98}var B=C+"%";if(C>1){u.progressbar.width(B)}if(y.showProgress){u.progressbar.html(B);u.progressbar.css("text-align","center")}},success:function(B,s,C){A.responses.push(B);u.progressbar.width("100%");if(y.showProgress){u.progressbar.html("100%");u.progressbar.css("text-align","center")}u.abort.hide();y.onSuccess.call(this,w,B,C);if(y.showStatusAfterSuccess){if(y.showDone){u.done.show();u.done.click(function(){u.statusbar.hide("slow");u.statusbar.remove()})}else{u.done.hide()}if(y.showDelete){u.del.show();u.del.click(function(){u.statusbar.hide().remove();if(y.deleteCallback){y.deleteCallback.call(this,B,u)}A.selectedFiles-=w.length;h(y,A)})}else{u.del.hide()}}else{u.statusbar.hide("slow");u.statusbar.remove()}z.remove();A.sCounter+=w.length},error:function(C,s,B){u.abort.hide();if(C.statusText=="abort"){u.statusbar.hide("slow").remove();h(y,A)}else{y.onError.call(this,w,s,B);if(y.showStatusAfterError){u.progressDiv.hide();u.statusbar.append(" ERROR: "+B+"")}else{u.statusbar.hide();u.statusbar.remove()}A.selectedFiles-=w.length}z.remove();A.fCounter+=w.length}};if(y.autoSubmit){z.ajaxSubmit(v)}else{if(y.showCancel){u.cancel.show();u.cancel.click(function(){z.remove();u.statusbar.remove();A.selectedFiles-=w.length;h(y,A)})}z.ajaxForm(v)}}return this}}(jQuery))!function UM_domenus(){jQuery(".um-dropdown").each(function(e,o){UM.dropdown.setPosition(o)})}function UM_check_password_matched(){jQuery(document).on("keyup","input[data-key=user_password],input[data-key=confirm_user_password]",function(e){var o=jQuery("input[data-key=user_password]").val(),a=jQuery("input[data-key=confirm_user_password]").val(),t=jQuery("input[data-key=user_password],input[data-key=confirm_user_password]");o||a?o!==a?t.removeClass("um-validate-matched").addClass("um-validate-not-matched"):t.removeClass("um-validate-not-matched").addClass("um-validate-matched"):t.removeClass("um-validate-matched").removeClass("um-validate-not-matched")})}function um_responsive(){jQuery(".um").each(function(){(element_width=jQuery(this).width())<=340?(jQuery(this).removeClass("uimob340"),jQuery(this).removeClass("uimob500"),jQuery(this).removeClass("uimob800"),jQuery(this).removeClass("uimob960"),jQuery(this).addClass("uimob340")):element_width<=500?(jQuery(this).removeClass("uimob340"),jQuery(this).removeClass("uimob500"),jQuery(this).removeClass("uimob800"),jQuery(this).removeClass("uimob960"),jQuery(this).addClass("uimob500")):element_width<=800?(jQuery(this).removeClass("uimob340"),jQuery(this).removeClass("uimob500"),jQuery(this).removeClass("uimob800"),jQuery(this).removeClass("uimob960"),jQuery(this).addClass("uimob800")):element_width<=960?(jQuery(this).removeClass("uimob340"),jQuery(this).removeClass("uimob500"),jQuery(this).removeClass("uimob800"),jQuery(this).removeClass("uimob960"),jQuery(this).addClass("uimob960")):960 '+d.data("upload_help_text")+"":"",icon=d.data("icon")?' ':"",upload_text=d.data("upload_text")?' '+d.data("upload_text")+"":"";var e=0;jQuery("#um_upload_single:visible").data("user_id")&&(e=jQuery("#um_upload_single:visible").data("user_id")),d.uploadFile({url:wp.ajax.settings.url,method:"POST",multiple:!1,formData:{action:"um_imageupload",key:d.data("key"),set_id:d.data("set_id"),set_mode:d.data("set_mode"),_wpnonce:d.data("nonce"),timestamp:d.data("timestamp"),user_id:e},fileName:d.data("key"),allowedTypes:d.data("allowed_types"),maxFileSize:d.data("max_size"),dragDropStr:icon+upload_text+upload_help_text,sizeErrorStr:d.data("max_size_error"),extErrorStr:d.data("extension_error"),maxFileCountErrorStr:d.data("max_files_error"),maxFileCount:1,showDelete:!1,showAbort:!1,showDone:!1,showFileCounter:!1,showStatusAfterSuccess:!0,returnType:"json",onSubmit:function(e){d.parents(".um-modal-body").find(".um-error-block").remove()},onSuccess:function(e,o,a){d.selectedFiles=0,o.success&&0==o.success||void 0!==o.data.error?(d.parents(".um-modal-body").append('
'+o.data.error+"
"),d.parents(".um-modal-body").find(".upload-statusbar").hide(0),um_modal_responsive()):jQuery.each(o.data,function(e,o){var a=d.parents(".um-modal-body").find(".um-single-image-preview img"),t=d.parents(".um-modal-body").find(".um-single-image-preview"),i=new Date;a.attr("src",o.url+"?"+i.getTime()),a.data("file",o.file),a.on("load",function(){d.parents(".um-modal-body").find(".um-modal-btn.um-finish-upload.disabled").removeClass("disabled"),d.parents(".um-modal-body").find(".ajax-upload-dragdrop,.upload-statusbar").hide(0),t.show(0),um_modal_responsive()})})},onError:function(e){console.log(e)}})}function initFileUpload_UM(t){upload_help_text=t.data("upload_help_text")?' '+t.data("upload_help_text")+"":"",icon=t.data("icon")?' ':"",upload_text=t.data("upload_text")?' '+t.data("upload_text")+"":"",jQuery("#um_upload_single:visible").data("user_id")&&(user_id=jQuery("#um_upload_single:visible").data("user_id")),t.uploadFile({url:wp.ajax.settings.url,method:"POST",multiple:!1,formData:{action:"um_fileupload",key:t.data("key"),set_id:t.data("set_id"),user_id:t.data("user_id"),set_mode:t.data("set_mode"),_wpnonce:t.data("nonce"),timestamp:t.data("timestamp")},fileName:t.data("key"),allowedTypes:t.data("allowed_types"),maxFileSize:t.data("max_size"),dragDropStr:icon+upload_text+upload_help_text,sizeErrorStr:t.data("max_size_error"),extErrorStr:t.data("extension_error"),maxFileCountErrorStr:t.data("max_files_error"),maxFileCount:1,showDelete:!1,showAbort:!1,showDone:!1,showFileCounter:!1,showStatusAfterSuccess:!0,onSubmit:function(e){t.parents(".um-modal-body").find(".um-error-block").remove()},onSuccess:function(e,o,a){t.selectedFiles=0,o.success&&0==o.success||void 0!==o.data.error?(t.parents(".um-modal-body").append('
'+o.data.error+"
"),t.parents(".um-modal-body").find(".upload-statusbar").hide(0)):jQuery.each(o.data,function(e,o){t.parents(".um-modal-body").find(".um-modal-btn.um-finish-upload.disabled").removeClass("disabled"),t.parents(".um-modal-body").find(".ajax-upload-dragdrop,.upload-statusbar").hide(0),t.parents(".um-modal-body").find(".um-single-file-preview").show(0),"icon"==e?t.parents(".um-modal-body").find(".um-single-fileinfo i").removeClass().addClass(o):"icon_bg"==e?t.parents(".um-modal-body").find(".um-single-fileinfo span.icon").css({"background-color":o}):"filename"==e?t.parents(".um-modal-body").find(".um-single-fileinfo a").attr("data-file",o):"original_name"==e?(t.parents(".um-modal-body").find(".um-single-fileinfo a").attr("data-orignal-name",o),t.parents(".um-modal-body").find(".um-single-fileinfo span.filename").html(o)):"url"==e&&t.parents(".um-modal-body").find(".um-single-fileinfo a").attr("href",o)}),setTimeout(function(){um_modal_responsive()},1e3)},onError:function(e){console.log(e)}})}function um_new_modal(e,o,a,t){var i,d,s,r=jQuery(".um-modal-overlay"),r=(0!==r.length&&(r.hide(),r.next(".um-modal").hide()),UM.common.tipsy.hide(),UM.dropdown.hideAll(),jQuery("body,html,textarea").css("overflow","hidden"),jQuery(document).bind("touchmove",function(e){e.preventDefault()}),jQuery(".um-modal").on("touchmove",function(e){e.stopPropagation()}),jQuery('
')),u=r.filter(".um-modal");u.append(jQuery("#"+e)),jQuery("body").append(r),a?(i=jQuery(' '),d=jQuery(window).width()-60,s=jQuery(window).height()-.25*jQuery(window).height(),i.on("load",function(){u.find(".um-modal-photo").html(i),u.addClass("is-photo").css({width:i.width(),"margin-left":"-"+i.width()/2+"px"}).show().children().show(),i.css({opacity:0,"max-width":d,"max-height":s}).animate({opacity:1},1e3),um_modal_responsive()})):(u.addClass("no-photo").show().children().show(),um_modal_size(o),initImageUpload_UM(jQuery(".um-modal:visible .um-single-image-upload")),initFileUpload_UM(jQuery(".um-modal:visible .um-single-file-upload")),um_modal_responsive())}function um_modal_responsive(){var e,o,a,t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,i=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,d=jQuery(".um-modal:visible").not(".um-modal-hidden"),s=d.find(".um-modal-body.photo:visible");(s.length||d.length)&&(e=(i-d.innerHeight())/2+"px",d.removeClass("uimob340").removeClass("uimob500"),s.length?(s=t-60,a=i-.25*i,(o=jQuery(".um-modal-photo img")).css({opacity:0}),o.css({"max-width":s}),o.css({"max-height":a}),d.css({width:o.width(),"margin-left":"-"+o.width()/2+"px"}),o.animate({opacity:1},1e3),d.animate({bottom:e},300)):d.length&&(t<=340?d.addClass("uimob340"):t<=500&&d.addClass("uimob500"),UM.frontend.cropper.init(),t<=500||i-parseInt(e)>i?d.animate({bottom:0},300):d.animate({bottom:e},300)))}function um_remove_modal(){wp.hooks.doAction("um_remove_modal"),jQuery("body,html,textarea").css("overflow","auto"),jQuery(document).unbind("touchmove"),jQuery('body > .um-modal div[id^="um_"]').hide().appendTo("body"),jQuery("body > .um-modal, body > .um-modal-overlay").remove()}function um_modal_size(e){jQuery(".um-modal:visible").not(".um-modal-hidden").addClass(e)}function prepare_Modal(){0==jQuery(".um-popup-overlay").length&&(jQuery("body").append('
'),jQuery("body").append('
'),jQuery(".um-popup").addClass("loading"),jQuery("body,html").css({overflow:"hidden"}))}function remove_Modal(){jQuery(".um-popup-overlay").length&&(wp.hooks.doAction("um_before_modal_removed",jQuery(".um-popup")),UM.common.tipsy.hide(),jQuery(".um-popup").empty().remove(),jQuery(".um-popup-overlay").empty().remove(),jQuery("body,html").css({overflow:"auto"}))}function show_Modal(e){jQuery(".um-popup-overlay").length&&(jQuery(".um-popup").removeClass("loading").html(e),UM.common.tipsy.init())}function responsive_Modal(){jQuery(".um-popup-overlay").length&&(350<(ag_height=jQuery(window).height()-jQuery(".um-popup .um-popup-header").outerHeight()-jQuery(".um-popup .um-popup-footer").outerHeight()-80)&&(ag_height=350),jQuery(".um-popup-autogrow:visible").length?jQuery(".um-popup-autogrow:visible").css({height:ag_height+"px"}):jQuery(".um-popup-autogrow2:visible").length&&jQuery(".um-popup-autogrow2:visible").css({"max-height":ag_height+"px"}))}function um_reset_field(e){jQuery(e).find("div.um-field-area").find("input,textarea,select").not(":button, :submit, :reset, :hidden").val("").prop("checked",!1).prop("selected",!1)}"object"!=typeof window.UM&&(window.UM={}),UM.dropdown={hide:function(e){e=jQuery(e);e.parents("div").find("a").removeClass("active"),e.hide()},hideAll:function(){var e=jQuery(".um-dropdown");e.parents("div").find("a").removeClass("active"),e.hide()},setPosition:function(e){var o,a=jQuery(e),t=200,e=jQuery("html").attr("dir"),i=a.attr("data-element"),d=a.attr("data-position"),s=a.attr("data-trigger"),r=i&&jQuery(i).length?jQuery(i):a.siblings("a").length?a.siblings("a").first():a.parent(),u=(r.addClass("um-trigger-menu-on-"+s),0),n=(r.outerWidth()-t)/2,l=r.outerHeight(),i=r.offset();switch(r.is(".um-profile-photo")&&(o=r.find(".um-profile-photo-img"),l=r.closest("div.uimob500").length?r.outerHeight()-o.outerHeight()/4:(n=(o.outerWidth()-t)/2,o.outerHeight()/4)),r.is(".um-cover")&&(o=r.find(".um-cover-e"),l=r.closest("div.uimob500").length?(n=(o.outerWidth()-t)/2,o.outerHeight()/2+24):(n=(o.outerWidth()-t)/2,o.outerHeight()/2+46)),"lc"===d&&"rtl"===e&&(d="rc"),r.outerWidth() parseInt(i.value)?u[i.owner][e]=!0:u[i.owner][e]=!1),"less than"===i.operator&&(n=Array.isArray(a)&&1===a.length?a[0]:a,jQuery.isNumeric(i.value)&&parseInt(n) ":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},r.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},r.__cache={};var n=0;return r.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},r.StoreData=function(e,t,n){var i=r.GetUniqueElementId(e);r.__cache[i]||(r.__cache[i]={}),r.__cache[i][t]=n},r.GetData=function(e,t){var n=r.GetUniqueElementId(e);return t?r.__cache[n]&&null!=r.__cache[n][t]?r.__cache[n][t]:o(e).data(t):r.__cache[n]},r.RemoveData=function(e){var t=r.GetUniqueElementId(e);null!=r.__cache[t]&&delete r.__cache[t],e.removeAttribute("data-select2-id")},r}),e.define("select2/results",["jquery","./utils"],function(h,f){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return f.Extend(i,f.Observable),i.prototype.render=function(){var e=h('
    ');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h(' '),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n ",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},i.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var r=t.eq(i);r.trigger("mouseenter");var o=l.$results.offset().top,s=r.offset().top,a=l.$results.scrollTop()+(s-o);0===i?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var r=l.$results.offset().top+l.$results.outerHeight(!1),o=i.offset().top+i.outerHeight(!1),s=l.$results.scrollTop()+o-r;0===n?l.$results.scrollTop(0):r this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),r=n(e,t);null==r?t.style.display="none":"string"==typeof r?t.innerHTML=i(r):h(t).append(r)},i}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,i,r){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return i.Extend(o,i.Observable),o.prototype.render=function(){var e=n(' ');return this._tabindex=0,null!=i.GetData(this.$element[0],"old-tabindex")?this._tabindex=i.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,i=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===r.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&i.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html(' '),e},r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e(" ")},r.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var r=t.title||t.text;r?n.attr("title",r):n.removeAttr("title")}else this.clear()},r}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(r,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}return l.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('
      '),e},n.prototype.bind=function(e,t){var i=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){i.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!i.isDisabled()){var t=r(this).parent(),n=l.GetData(t[0],"data");i.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return r('
    • ×
    • ')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n ×');a.StoreData(i[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(i)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(i,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=i(' ');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var i=this,r=t.id+"-results";e.call(this,t,n),t.on("open",function(){i.$search.attr("aria-controls",r),i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),t.on("disable",function(){i.$search.prop("disabled",!0)}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===i.$search.val()){var t=i.$searchContainer.prev(".select2-selection__choice");if(0 this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(){i._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected(function(){e.call(i,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var i=this;this.current(function(e){var t=null!=e?e.length:0;0 =i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t(' ');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=o(' ');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var i=this,r=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.attr("aria-controls",r),i.$search.trigger("focus"),window.setTimeout(function(){i.$search.trigger("focus")},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.val(""),i.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||i.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('
    • '),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f(" "),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.select2."+t.id,r="resize.select2."+t.id,o="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),s.on(i,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(i+" "+r+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,i="resize.select2."+t.id,r="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+i+" "+r)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),i=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=r.top,o.bottom=r.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a r.bottom+s,d={left:r.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(f.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(i="below"),u||!c||t?!c&&u&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(d.top=o.top-h.top-s),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i ');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("select2/compat/utils",["jquery"],function(s){return{syncCssClasses:function(e,t,n){var i,r,o=[];(i=s.trim(e.attr("class")))&&s((i=""+i).split(/\s+/)).each(function(){0===this.indexOf("select2-")&&o.push(this)}),(i=s.trim(t.attr("class")))&&s((i=""+i).split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(r=n(this))&&o.push(r)}),e.attr("class",o.join(" "))}}}),e.define("select2/compat/containerCss",["jquery","./utils"],function(s,a){function l(e){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("containerCssClass")||"";s.isFunction(n)&&(n=n(this.$element));var i=this.options.get("adaptContainerCssClass");if(i=i||l,-1!==n.indexOf(":all:")){n=n.replace(":all:","");var r=i;i=function(e){var t=r(e);return null!=t?t+" "+e:e}}var o=this.options.get("containerCss")||{};return s.isFunction(o)&&(o=o(this.$element)),a.syncCssClasses(t,this.$element,i),t.css(o),t.addClass(n),t},e}),e.define("select2/compat/dropdownCss",["jquery","./utils"],function(s,a){function l(e){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("dropdownCssClass")||"";s.isFunction(n)&&(n=n(this.$element));var i=this.options.get("adaptDropdownCssClass");if(i=i||l,-1!==n.indexOf(":all:")){n=n.replace(":all:","");var r=i;i=function(e){var t=r(e);return null!=t?t+" "+e:e}}var o=this.options.get("dropdownCss")||{};return s.isFunction(o)&&(o=o(this.$element)),a.syncCssClasses(t,this.$element,i),t.css(o),t.addClass(n),t},e}),e.define("select2/compat/initSelection",["jquery"],function(i){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method.This method is now called multiple times instead of a single time when the instance is initialized.Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=n.get("initSelection"),this._isInitialized=!1,e.call(this,t,n)}return e.prototype.current=function(e,t){var n=this;this._isInitialized?e.call(this,t):this.initSelection.call(null,this.$element,function(e){n._isInitialized=!0,i.isArray(e)||(e=[e]),t(e)})},e}),e.define("select2/compat/inputData",["jquery","../utils"],function(s,i){function e(e,t,n){this._currentData=[],this._valueSeparator=n.get("valueSeparator")||",","hidden"===t.prop("type")&&n.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future.It is recommended to use a `
      Baidu
      map