PageSourceSearch

https://logicalperformance.com/static/app/min/microsite.js?_=27967.24765.139

js logicalperformance.com collected 2026-09-24 14:46:55 UTC 57,605 bytes, 27 lines download raw bytes

1/* base/cms/parallax.js */
2function parallaxWorker(){parallaxWorker.timer||(parallaxWorker.timer=1,requestAnimationFrame(()=>{var t=window.innerHeight;parallaxWorker.timer=0,parallaxWorker.bunch.forEach(a=>{var r=a.getBoundingClientRect(),e=parseFloat(a.dataset.parallax)||0,l=r.height-2*e,r=1-2*(r.top+l+e)/(t+l),l=0;void 0===a.dataset.offset?a.dataset.offset=l=-1<r&&r<1?r:0:l=+a.dataset.offset,-1.05<r&&r<1.05&&(r=Math.round(100*(r-l)*e)/100,a.style.transform=`matrix(1, 0, 0, 1, 0, ${r})`)})}))}function parallaxScroller(){parallaxWorker.timer=0,parallaxWorker.bunch=document.querySelectorAll(".cms-parallax"),removeEventListener("scroll",parallaxWorker,{passive:!0}),removeEventListener("resize",parallaxWorker,{passive:!0}),parallaxWorker.bunch.length&&(addEventListener("scroll",parallaxWorker,{passive:!0}),addEventListener("resize",parallaxWorker,{passive:!0})),parallaxWorker()}parallaxScroller();
3
4/* base/plugins/jquery/jquery-7.0.0.js */
5((e,t)=>{"object"==typeof module&&module.exports?module.exports=t(e,!0):t(e)})(window||this,(t,e)=>{"use strict";var i,s=(e,t)=>k.init(e,t),l=t.document,r=[],p=Array.isArray,o=Array.from,a=r.push,h=r.indexOf,u=e=>r.flat.call(e),c=Object.entries,F=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,f=e=>e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),d=e=>3<=e.length&&e.startsWith("<")&&e.endsWith(">"),y=e=>(e.ownerDocument.defaultView||t).getComputedStyle(e),v=e=>[e,...e.querySelectorAll("*")],n=e=>!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length),g=new WeakMap,m=new WeakMap;class b extends Event{constructor(e,t){var{type:e,namespace:r}=O(e);if(super(e,{bubbles:!0,cancelable:!0,...t}),this.namespace=r,t)for(var n in t)n in this||(this[n]=t[n])}}function w(e){var t=!!e&&e.length;return!("function"==typeof e||e&&e===e.window)&&(p(e)||0===t||"number"==typeof t&&0<t&&t-1 in e)}function x(e){return null!==e&&"object"==typeof e&&(null===(e=Object.getPrototypeOf(e))||e===Object.prototype)}function T(){var e,t,r,n,i,o=arguments[0]||{},a=1,s=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[a]||{},a++),"object"!=typeof o&&"function"!=typeof o&&(o={}),a===s&&(o=this,a--);a<s;a++)if(null!=(e=arguments[a]))for(t in e)r=e[t],"__proto__"!==t&&o!==r&&(l&&r&&(x(r)||(n=p(r)))?(i=o[t],i=n&&!p(i)?[]:n||x(i)?i:{},n=!1,o[t]=T(l,i,r)):void 0!==r&&(o[t]=r));return o}function C(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r);return e}function E(e,t,r,n){for(var i,o=0,a=e.length;o<a;o++)if(i=e[o],"object"==typeof r)for(var s in r)t(i,s,r[s]);else t(i,r,n);return e}function j(e,t=!1){return 1<e.length&&(e=[...new Set(e)],t)&&e.sort((e,t)=>2&e.compareDocumentPosition(t)?1:-1),e}function S(e,t,r){for(var n=[],i=void 0!==r;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&s(e).is(r))break;n.push(e)}return n}function A(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function N(e,t){for(var r=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&r.push(e);return r}function P(e,r,n){return"function"==typeof r?o(e).filter((e,t)=>!!r.call(e,t,e)!==n):r.nodeType?o(e).filter(e=>e===r!==n):"string"!=typeof r?o(e).filter(e=>-1<h.call(r,e)!==n):s.filter(r,e,n)}function W(e){return"string"==typeof e?e.match(/\S+/g)||[]:p(e)?e.filter(e=>e):[]}function D(e,t,r){var n={};return r||(r=t,t=void 0),"object"==typeof r?(n=r,t=e):"object"==typeof e?n=e:n[e]=r,[t,n]}function H(o,a,e){var t,r=g.get(o);for(t in r||g.set(o,r=[]),e){let i=e[t];W(t).forEach(e=>{function t(e){var t,r;e.namespace&&e.namespace!=n||(a?(r=e.target.closest(a))&&o.contains(r)&&(t=i.call(r,e)):t=i.call(this,e),!1===t&&(e.preventDefault(),e.stopPropagation()))}var{type:e,namespace:n}=O(e);o.addEventListener(e,t),r.push({type:e,namespace:n,selector:a,fn:i,handler:t})})}}function O(e){e=e.split(".");return{type:e.shift(),namespace:e.join(".")}}function U(e){if("true"===e)return!0;if("false"===e)return!1;if("null"===e)return null;if(e===+e+"")return+e;if(/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/.test(e))try{return JSON.parse(e)}catch(e){}return e}function q(e,r,t=!0){var n=r.createDocumentFragment();return(Array.isArray(e)?e:[e]).forEach(e=>{var t;"string"==typeof e?((t=r.createElement("template")).innerHTML=e,n.appendChild(t.content)):e&&e.nodeType?n.appendChild(e):e&&w(e)&&n.appendChild(q(Array.from(e),r,!1))}
5),t?([...(e=n).querySelectorAll("script")].forEach(e=>{let t=e.ownerDocument.createElement("script");[...e.attributes].forEach(e=>t.setAttribute(e.name,e.value)),t.textContent=e.textContent,e.replaceWith(t)}),e):n}function L(r,e,n){var i;return r.length?(i=q(u(e),r[0].ownerDocument),C(r,(e,t)=>{t=t===r.length-1?i:s.clone(i,!0,!0);n(e,t)})):r}function B(e,r){var t;1===r.nodeType&&((t=g.get(e))&&(g.delete(r),t.forEach(e=>{var t=(e.namespace?e.namespace+".":"")+e.type;H(r,e.selector,{[t]:e.fn})})),m.get(e))&&m.set(r,{...m.get(e)})}function R(e,t,r){for(var n,i,o=t?s.filter(t,e):e,a=0;n=o[a++];)r||s.cleanData(v(n)),(i=n.parentNode)&&i.removeChild(n);return e}function M(e){return s.merge(new k,e)}T(s,{extend:T,uniqueSort:j,camelCase:f,isPlainObject:x,isEmptyObject:e=>{for(var t in e)return!1;return!0},isVisible:n,Event:b,swapChildren:(t,r)=>{var n=o(t.childNodes),i=Math.max(r.length,n.length);for(let e=0;e<i;e++)n[e]?r[e]?n[e].replaceWith(r[e]):t.removeChild(n[e]):t.appendChild(r[e])},toEvent:(e,t)=>{var r=e;return"string"==typeof e?r=new b(e,t):x(e)&&(r=new b(e.type,e)),r},contains:(e,t)=>{t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!e.contains(t))},each:(e,t)=>{for(var r=0,n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);return e},merge:(e,t)=>{for(var r=t.length,n=0,i=e.length;n<r;n++)e[i++]=t[n];return e.length=i,e},filter:(e,t,r)=>{for(var n,i=0,o=t.length,a=[];i<o;i++)(n=t[i])&&1===n.nodeType&&n.matches(e)===!r&&a.push(n);return a},map:(e,t)=>{var r,n=0,i=[];if(w(e))for(r=e.length;n<r;n++)i.push(t(e[n],n));else for(n in e)i.push(t(e[n],n));return u(i.filter(e=>null!=e))},attr:function(e,t,r){var n=e.nodeType;if(3!==n&&8!==n&&2!==n)return arguments.length<3?null===(n=e.getAttribute(t))?void 0:n:void(null===r||!1===r&&!t.startsWith("aria-")?e.removeAttribute(t):void 0!==r&&e.setAttribute(t,r))},removeAttr:(e,t)=>{t&&1===e.nodeType&&e.removeAttribute(t)},clone:(e,t,r)=>{var n,i=e.cloneNode(!0);return t&&(r?(n=v(i),v(e).forEach((e,t)=>B(e,n[t]))):B(e,i)),i},cleanData:e=>{for(var t,r=0;t=e[r++];)g.delete(t),m.delete(t)},style:(e,t,r)=>{if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var n=f(t),i=t.startsWith("--"),e=e.style;if(i||(t=n),void 0===r)return e[t];null!=r&&r==r&&("number"==typeof r&&/^[a-z]/.test(n=n)&&/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/.test(n[0].toUpperCase()+n.slice(1))&&(r+="px"),i?e.setProperty(t,r):e[t]=r)}},css:(e,t,r)=>{r=r||y(e);var n=t.startsWith("--");return n||(t=f(t)),r=n?r.getPropertyValue(t):r[t],r=""!==(r=n?r&&(r.trim()||void 0):r)||e.isConnected?r:s.style(e,t)},parseHTML:(e,t,r)=>{if("string"!=typeof e&&!d(e+""))return[];"boolean"==typeof t&&(r=t,t=!1);e=q(e,t=t||(new DOMParser).parseFromString("","text/html"),r);return s.merge([],e.childNodes)},param:e=>{let r=[],t=new URLSearchParams,n=p(e)?e.map(e=>e.name?[e.name,e.value]:e):e?c(e):[];for(;n.length;){let[t,e]=n.pop();null==e?r.push([t,""]):p(e)?e.forEach(e=>n.push([t+"[]",e])):"object"==typeof e?c(e).forEach(e=>n.push([`${t}[${e[0]}]`,e[1]])):r.push([t,e])}for(;r.length;){var[i,o]=r.pop();t.append(i,o)}return t.toString()},hasData:e=>m.has(e),removeData:(e,t)=>{var r;t?(r=m.get(e))&&delete r[t]:m.delete(e)},data:(e,t,r)=>{var n,i,o=m.get(e);if(o||m.set(e,o={}),"object"==typeof t)for(n in t)o[f(n)]=t[n];else{if(void 0===r){if(t)return void 0===o[n=f(t)]&&(i=e.dataset)&&void 0!==i[n]&&(o[n]=U(i[n])),o[n];if(i=e.dataset)for(n in i)n in o||(o[n]=U(i[n]));return o}o[f(t)]=r}},prop:function(e,t,r){var n=e.nodeType;if(3!==n&&8!==n&&2!==n){if(t=s.propFix[t]||t,arguments.length<3)return e[t];e[t]=r}},valHooks:{"select-multiple":{get:e=>o(e.selectedOptions,e=>e.value),set:(e,t)=>{p(t)?e.value=t:o(e.options).forEach(e=>e.selected=t.includes(e.value))}}},propFix:{for:"htmlFor",class:"className"}}),"tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" ").forEach(e=>s.propFix[e.toLowerCase()]=e);class k{length=0;static init(e,t){if("function"==typeof e)return e();var r=new k;if(!e)return r;if(e.nodeType)return r[0]=e,r.length=1,r;var n=e+"";if(d(n))n=[null,e,null];else{if("string"!=typeof e)return p(e)||w(e)?s.merge(r,e):a.call(r,e),r;n=F.exec(e)}return!n||!n[1]&&t?(!t||t instanceof k?t||i:k.init(t)).find(e):(n[1]?(t=t instanceof s?t[0]:t,s.merge(r,s.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:l,!0)),x(t)&&r.attr(t)):(e=l.getElementById(n[2]))&&(r[0]=e,r.length=1),r)}toArray(){return o(this)}get(e){return null==e?o(this):e<0?this[e+this.length]:this[e]}forEach(e){return C(this,e)}each(e){return s.each(this,e)}map(r){return M(s.map(this,(e,t)=>r.call(e,e,t)))}slice(){return M(r.slice.apply(this,arguments))}first(){return this.eq(0)}last(){return this.eq(-1)}eq(e){var t=this.length,e=+e+(e<0?t:0);return M(0<=e&&e<t?[this[e]]:[])}attr(e,t){return"object"==typeof e||1<arguments.length?E(this,s.attr,e,t):this[0]?s.attr(this[0],e):void 0}removeAttr(t){return C(this,e=>s.removeAttr(e,t))}uniqueSort(e=!0){return M(j(this,e))}find(e){var r,t,n=this.length;if("string"!=typeof e)return M(s(e).filter((e,t)=>
5{for(r=0;r<n;r++)if(s.contains(this[r],t))return!0}));for(t=[],r=0;r<n;r++)this[r].querySelectorAll&&a.apply(t,this[r].querySelectorAll(e));return M(1<n?j(t):t)}filter(e){return M(P(this,e||[],!1))}not(e){return M(P(this,e||[],!0))}is(e){return!!P(this,e||[],!1).length}visible(t=!0){return M(o(this).filter(e=>n(e)===t))}isVisible(t=!0){return o(this).some(e=>n(e)===t)}has(e){var r,n=s(e,this),i=n.length;return this.filter((e,t)=>{for(r=0;r<i;r++)if(s.contains(t,n[r]))return!0})}closest(e,t){for(var r,n=0,i=this.length,o=[],a="string"!=typeof e&&s(e);n<i;n++)for(r=this[n];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(a?-1<a.index(r):1===r.nodeType&&r.matches(e))){o.push(r);break}return M(j(o))}index(e){return e?"string"==typeof e?h.call(s(e),this[0]):h.call(this,e instanceof k?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1}add(e,t){return M(j(s.merge(this.get(),s(e,t)),!0))}data(t,r){return"object"==typeof t||1<arguments.length?C(this,e=>{s.data(e,t,r)}):this[0]?s.data(this[0],t):void 0}removeData(t){return C(this,e=>s.removeData(e,t))}prop(e,t){return"object"==typeof e||1<arguments.length?E(this,s.prop,e,t):this[0]?s.prop(this[0],e):void 0}removeProp(t){return t=s.propFix[t]||t,C(this,e=>{delete e[t]})}addClass(e){return this.toggleClass(e,!0)}removeClass(e){return this.toggleClass(e,!1)}toggleClass(e,t){var r,n=W(e);return n.length&&C(this,e=>
5{(r=e.classList)&&(void 0===t?n.forEach(e=>r.toggle(e)):t?r.add(...n):r.remove(...n))}),this}hasClass(e){var t,r=0;if(e=e.trim())for(e="."+e;t=this[r++];)if(t.matches(e))return!0;return!1}val(t){var r,e=this[0],n=s.valHooks;return arguments.length?(null==t?t="":"number"==typeof t?t+="":p(t)&&(t=t.map(e=>null==e?"":e+"")),C(this,e=>{1===e.nodeType&&((r=n[e.type])&&r.set?r.set(e,t):e.value=t)})):e?null==(e=(r=n[e.type])&&r.get?r.get(e):e.value)?"":e:void 0}trigger(e,t){let r=s.toEvent(e,t);return C(this,e=>{e.dispatchEvent(r),r.defaultPrevented||"function"!=typeof e[r.type]||e[r.type]()})}dispatch(e,t){let r=s.toEvent(e,t);return C(this,e=>e.dispatchEvent(r))}on(e,t,r){var[n,i]=D(e,t,r);return C(this,e=>H(e,n,i))}off(e,t,r){var[n,i]=D(e,t,r);return C(this,e=>{var a=e,s=n,t=i,l=g.get(a);if(l){for(var r in t){let o=t[r];r.split(" ").forEach(e=>{for(var t,{type:r,namespace:n}=O(e),i=l.length-1;0<=i;i--)t=l[i],!(r&&t.type!=r||n&&t.namespace!=n||s&&t.selector!=s||o&&t.fn!==o)&&(a.removeEventListener(t.type,t.handler),l.splice(i,1))})}l.length||g.delete(a)}})}detach(e){return R(this,e,!0)}remove(e){return R(this,e)}text(t){return void 0===t?o(this).map(e=>e.innerText).join("\n"):C(this,e=>e.textContent=t)}append(){return L(this,arguments,(e,t)=>{e.appendChild(t)})}appendTo(e){return L(s(e),this,(e,t)=>{e.appendChild(t)}),this}prepend(){return L(this,arguments,(e,t)=>{e.insertBefore(t,e.firstChild)})}before(){return L(this,arguments,(e,t)=>{e.parentNode&&e.parentNode.insertBefore(t,e)})}after(){return L(this,arguments,(e,t)=>{e.parentNode&&e.parentNode.insertBefore(t,e.nextSibling)})}replaceWith(){return L(this,arguments,(e,t)=>{e.parentNode&&e.replaceWith(t)})}wrapAll(e){var t=this[0];return t&&(e=s(e,t.ownerDocument).eq(0).clone(!0),t.parentNode&&t.parentNode.insertBefore(e[0],t),e.map(e=>{for(;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this}wrapInner(r){return C(this,e=>{var e=s(e),t=e.contents();t.length?t.wrapAll(r):e.append(r)})}wrap(t){return C(this,e=>s(e).wrapAll(t))}unwrap(e){return C(this.parent(e).not("body"),e=>{s(e).replaceWith(e.childNodes)}),this}empty(){return C(this,e=>e.replaceChildren())}swapChildren(t){return C(this,e=>s.swapChildren(e,t))}clone(t=!1,r){return r=null==r?t:r,this.map(e=>s.clone(e,t,r))}html(e){var t=this[0];return void 0!==e?this.empty().append(e):t&&1===t.nodeType?t.innerHTML:void 0}css(e,t){var r=this[0];return"object"==typeof e||1<arguments.length?E(this,s.style,e,t):r?(t=y(r),e?s.css(r,e,t):t):void 0}serialize(){return s.param(this.serializeArray())}serializeArray(){return this.map(e=>o(new FormData(e)).map(e=>({name:e[0],value:e[1]}))).get()}offset(){var e,t=this[0];if(t)return e=t.getBoundingClientRect(),t=t.ownerDocument.defaultView,{left:e.left+t.scrollX,top:e.top+t.scrollY,width:e.width,height:e.height}}offsetParent(){return this.map((e,t)=>t.offsetParent||l.documentElement)}}return k.prototype.jquery="7.0.0",k.prototype[Symbol.iterator]=r[Symbol.iterator],s.fn=s.prototype=k.prototype,i=s(l),"blur focus click submit".split(" ").forEach(e=>{s.fn[e]=function(){return this.trigger(e)}}),c({parent:e=>{e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:e=>S(e,"parentNode"),parentsUntil:(e,t)=>S(e,"parentNode",t),next:e=>A(e,"nextSibling"),prev:e=>A(e,"previousSibling"),nextAll:e=>S(e,"nextSibling"),prevAll:e=>S(e,"previousSibling"),nextUntil:(e,t)=>S(e,"nextSibling",t),prevUntil:(e,t)=>S(e,"previousSibling",t),siblings:e=>N((e.parentNode||{}).firstChild,e),children:e=>N(e.firstChild),contents:e=>e.contentDocument||s.merge([],e.childNodes)}).forEach(([e,n])=>{var i=["children","contents","next","prev"].includes(e),o=e.endsWith("Until"),a=/^(?:parents|prev(?:Until|All))/.test(e);s.fn[e]=function(t,e){var r=s.map(this,e=>n(e,t));return(e=o?e:t)&&"string"==typeof e&&(r=s.filter(e,r)),1<this.length&&(i||(r=j(r)),a)&&r.reverse(),M(r)}}),T(s,{ajax:async(e,t={})=>{var r=(t.method||"GET").toUpperCase(),n=["GET","HEAD"].includes(r)?t.cache:void 0,i=("boolean"==typeof n&&(n=n?"default":"no-cache"),{"x-requested-with":"XMLHttpRequest",...t.headers||{}}),e=(t.accept&&(i.accept=t.accept),t.contentType&&(i["content-type"]=t.contentType),i["content-type"]||!["PUT","POST","PATCH"].includes(r)||t.body instanceof FormData||(i["content-type"]="application/x-www-form-urlencoded; charset=UTF-8"),{url:e,options:{...t,method:r,headers:i,cache:n}}),t={req:e,ok:!1,status:0,statusText:"Noop",contentType:"",headers:{},body:null,error:null};try{var o=await fetch(e.url,e.options);if(t.ok=o.ok,t.status=o.status,t.statusText=o.statusText,o){var a="";if(o.headers&&(t.headers=Object.fromEntries(o.headers),t.contentType=a=t.headers["content-type"]||""),o.body)if(a.startsWith("text/"))t.body=await o.text();else if(a.startsWith("application/json"))try{t.body=await o.json()}catch(e){t.error="Cannot Parse JSON"}else t.body=await o.bytes()}
5$(l).dispatch({type:"ajax",res:t})}catch(e){t.ok=!1,t.error=e+"",$(l).dispatch({type:"ajax",res:t}),$(l).dispatch({type:"ajaxError",res:t})}return t},get:(e,t={})=>s.ajax(e,{cache:!1,...t}),post:(e,t={})=>s.ajax(e,{method:"POST",...t}),postForm:(e,t={})=>s.ajax(e,{method:"POST",body:"string"==typeof t?t:s.param(t)}),postJson:(e,t)=>s.ajax(e,{method:"POST",contentType:"application/json",body:JSON.stringify(t)})}),void 0===e&&(t.jQuery=t.$=s),s});
6
7/* base/plugins/h5video/h5video.js */
8((s,l,f)=>{const r="h5v-dragging",n="click",b=(e,t,a)=>f.max(e,f.min(t,a));var k=class k{static instances=[];static env=null;media=null;audio=!1;waveform=null;thumbstrip=null;hls=null;width=null;height=null;duration=null;fps=25;jump=5;persist=!0;exclusive=!0;extPlay=null;compact=!1;disableContextMenu=!0;disablePictureInPicture=!0;disableKeyboard=!1;disableSeeking=!1;enableRate=!1;onSeek=e=>e;chapters=null;mediaTracks=[];ccTracks=[];ccTrack=null;ccCue=-1;ccVisible=!1;tickInterval=32;tickTimer=null;onTick=null;watch=!1;watched=null;container=null;layers=null;controls=null;error=null;binds=null;seekTime=null;seekPaused=null;awaiting=!1;uiTimer=null;uiTimeout=3e3;shortcuts={play:32,fullscreen:70,mute:77,cc:67,jumpBack:37,jumpForward:39,frameBack:188,frameForward:190};rates=[75,100,125,150,175,200];constructor(e,t={}){var a=this,t=(Object.assign(a,t),a.media=e,a.audio="AUDIO"===e.nodeName,a.thumbstrip);a.thumbstrip=t&&t.url&&!a.audio?{url:t.url,width:t.width,height:t.height,count:t.count,columns:t.columns,distance:t.distance}:null,null===k.env&&(k.env=k.detect()),k.instances.push(a),$(a.media).data("h5video",a),a.init()}show(e,t=1){return e.toggleClass("h5v-none",!t)}bind(e){var t,a=this,s=$(a.media);for(t in a.binds=a.binds||{"durationchange loadedmetadata":()=>a.updateMeta(),timeupdate:()=>{a.updateTime(),a.updateProgress()},"play pause ended":()=>a.updatePlayPause(),"seeking waiting stalled":()=>a.updateSeeking(!0),loadstart:()=>a.uiLoading(!0),"canplay canplaythrough":()=>a.uiLoading(!1),"playing seeked":()=>{a.updateSeeking(!1),a.updateProgress()},progress:()=>a.updateProgress(),volumechange:()=>a.updateVolume(),ratechange:()=>a.updateRate(),error:e=>{e.code&&e.message&&a.uiError(e.message)},"fullscreenchange webkitendfullscreen webkitbeginfullscreen":()=>a.updateFullscreen(),remove:()=>a.destroy()},a.binds)t.includes("fullscreenchange")&&$(l)[e](t,a.binds[t]),s[e](t,a.binds[t])}init(){var e=this,t=e.media,a=(e.container=$("<div class='h5v h5v-ui' tabindex='0'>"),e.layers=$("<div class='h5v-layers'><div class='h5v-waveform'></div><div class='h5v-loading'></div><div class='h5v-cues'></div><div class='h5v-master'><div class='h5v-pop h5v-pop-start'></div></div></div>"),"<div class='h5v-timeline'><div class='h5v-time-float'><span><b>00:00</b></span></div><div class='h5v-rail'><div class='h5v-buffer'></div><div class='h5v-chapters'></div><div class='h5v-pos'><div class='h5v-handle'></div></div></div></div>"),a=(e.controls=$("<div class='h5v-controls'>"+(e.compact?"":a)+"<div class='h5v-buttons'><button type='button' class='h5v-btn h5v-play' aria-label='Play'></button><span class='h5v-time'><span class='h5v-current'>00:00</span> / <span class='h5v-duration'>00:00</span></span><button type='button' class='h5v-btn h5v-cc' aria-label='Subtitles'></button><button type='button' class='h5v-btn h5v-rate' aria-label='Speed'></button>"+(e.compact?a:"<div class='h5v-flex'></div>")+"<button type='button' class='h5v-btn h5v-mute' aria-label='Mute'></button><div class='h5v-volume'><div class='h5v-rail'><div class='h5v-pos'><div class='h5v-handle'></div></div></div></div><button type='button' class='h5v-btn h5v-fs' aria-label='Fullscreen'></button></div></div>"),e.thumbstrip);a&&!e.audio&&$(".h5v-time-float span",e.controls).prepend($("<div class='h5v-thumbstrip'>").css({width:a.width+"px",height:a.height+"px",backgroundImage:'url("'+a.url+'")',backgroundSize:a.columns*a.width+"px auto",backgroundPosition:"0 0"})),e.container.addClass(e.audio?"h5v-audio":"h5v-video").toggleClass("h5v-waveform-audio",!!e.waveform),e.width&&e.height&&!t.videoHeight&&$(t).css("aspectRatio",e.width+" / "+e.height),$(t).after(e.container),e.container.html([t,e.layers,e.controls]),e.updateMeta(),e.updateFullscreen(),e.updateMediaTracks(),e.updateCcTracks(),e.store(),e.updateVolume(),e.updateRate(),e.updateChapters(),e.bindUI(),e.bind("on"),e.showUI(!0),e.mediaTracks.length||e.media.src||e.uiError("Cannot Play Media")}store(e){var t=this,a=s.localStorage;t.persist&&a&&("volume"===e?a.h5v_volume=t.media.volume:"cc"===e?a.h5v_cc=t.ccTrack?"cc":"":(0<a.h5v_volume&&(t.media.volume=+a.h5v_volume),"cc"===a.h5v_cc&&t.loadCcTrack(null,e=>t.setCcTrack(e))))}updateChapters(){var t=this,e=t.chapters||[];
8$(".h5v-chapters",t.controls).html(e.filter(e=>e.time<=t.duration).map(e=>$("<b>").data("time",e.time).css("left",100*e.time/t.duration+"%")))}bindUI(){function e(e){this===i[0]&&(s.media.volume=k.normalize(e,this).pos,s.updateVolume(),"mousedown"===e.type?i.addClass(r):"mouseup"===e.type&&i.removeClass(r))}var s=this,t=k.env,a=(s.media.controls=!1,s.media.playsInline=!0,s.disablePictureInPicture&&(s.media.disablePictureInPicture=!0),s.disableContextMenu&&s.container.on("contextmenu",e=>e.preventDefault()),s.audio||(a=e=>{e.preventDefault(),s.toggleFullscreen()},$(".h5v-fs",s.controls).on(n,a),$(".h5v-master",s.layers).on("dblclick",a)),e=>{e.preventDefault(),s.uiPlayPause(),s.exclusive&&k.pauseAll(s)}),i=($(".h5v-master, .h5v-play",s.container).on(n,a),s.extPlay&&$(s.extPlay).on(n,a),t.multitouch?s.controls.on(n,()=>s.showUI(!0)):s.container.on({mousemove:()=>s.showUI(!0),mouseleave:()=>s.showUI(!1),keydown:e=>s.handleShortcuts(e),mousedown:()=>s.focus()}),s.bindTimeline(),$(".h5v-volume",s.controls));k.draggable(i[0],e,e,e),$(".h5v-mute",s.controls).on(n,e=>{s.media.muted=!s.media.muted,s.updateVolume()}),$(".h5v-rate",s.controls).on(n,e=>{var t=s.rates,a=(t.indexOf(f.round(100*s.media.playbackRate))+1)%t.length;s.media.playbackRate=t[a]/100,s.updateRate()}),$(".h5v-cc",s.controls).on(n,e=>{s.toggleCc()}),s.waveform&&k.loadWaveform(s.waveform,e=>{s.show($(".h5v-waveform",s.layers)).html(s.svgWaveform(e)),s.show(s.layers)})}svgWaveform(e,t=1e3){var a,t=f.min(t,e.length),s=1,i=new Uint8Array(t+1),r=i.length/e.length,l=(e.forEach((e,t)=>{a=f.floor(t*r),i[a]<e&&(i[a]=e,s<e)&&(s=e)}),""),n=112/s;return i.forEach((e,t)=>{l+=t+","+(128-n*e)+" "}),"<svg viewBox='0 0 "+(t-1)+" 128' preserveAspectRatio='none'><polygon points='0,128 "+l+" "+t+",128'/></svg>"}bindTimeline(){function e(e){h.disableSeeking||this!=m[0]||(h.seekPause(),h.seek(h.onSeek(h.duration*k.normalize(e,this).pos)),s(),m.removeClass(r))}function t(e){h.disableSeeking||this!=m[0]||(h.seekTime=h.onSeek(h.duration*k.normalize(e,this).pos),h.seekPause(),h.updateTime(),m.addClass(r))}function a(e){if(this==m[0]){var t,a,e=k.normalize(e,this),s=e.width,i=e.pos*e.width,r=h.duration*e.pos,e=h.thumbstrip,l=h.chapters,n=null,u=k.formatTime(r);if(i=e?(a=f.min(e.count-1,f.floor(r/e.distance)),t=-e.height*f.floor(a/e.columns),a=-e.width*(a%e.columns),n=$(".h5v-thumbstrip",v).css({backgroundPosition:a+"px "+t+"px"}),b(e.width/2,i,s-e.width/2)):(p=p||v[0].clientWidth,b(p/2,i,s-p/2)),l){g=g||$(".h5v-chapters b",m).first().offset().width;for(var o="",c=.5*h.duration*g/s,d=0;d<l.length;d++)if(l[d].time-c<=r&&r<=l[d].time+c){o=l[d].title;break}n?n.html(o?"<i>"+o+"</i>":""):o&&(u="<label>"+o+"</label><br>"+u,i=b(60,i,s-60))}v.addClass("h5v-visible").css({left:i+"px"}).find("b").html(u)}}var h=this,m=$(".h5v-timeline",h.controls),v=$(".h5v-time-float",h.controls),p=0,g=0,s=()=>{v.removeClass("h5v-visible")};k.env.multitouch?m.on("touchmove",a).on("touchend",s).on("touchstart touchmove",t).on("touchend",e):(m.on("mousemove",a).on("mouseleave",s),k.draggable(m[0],t,t,e))}showUI(e){var t=this;t.uiTimer&&(clearTimeout(t.uiTimer),t.uiTimer=null),t.container.addClass("h5v-ui"),t.show(t.controls),t.updateFullscreen(),t.media.paused||t.error||t.audio||(t.uiTimer=setTimeout(()=>{t.container.removeClass("h5v-ui"),t.updateFullscreen(),t.uiTimer=setTimeout(()=>{t.uiTimer=null,t.show(t.controls,0)},250)},e?t.uiTimeout:250))}updateMeta(){var e,t,a=this,s=a.media;(t=s.duration)&&(a.duration=t),(t=s.videoWidth)&&(a.width=t),(e=s.videoHeight)&&(a.height=e,t)&&$(s).css("aspectRatio",t+" / "+e),!a.watched&&1<a.duration&&(a.watched=new Int8Array(f.floor(a.duration))),$(".h5v-duration",a.controls).text(k.formatTime(a.duration||0))}updateMediaTracks(){this.mediaTracks=$("source",this.media).get().map(e=>({default:e.matches("[default]"),src:e.src,type:e.type}))}toggleCc(){var t=this;t.ccTrack?t.setCcTrack(null,!0):t.loadCcTrack(null,e=>t.setCcTrack(e,!0))}updateCcTracks(){this.ccTracks=$("track[srclang][kind=subtitles]",this.media).get().map(e=>({default:e.matches("[default]"),src:e.src,lang:e.srclang,label:e.label})),this.updateCc()}
8updateCc(){var e=$(".h5v-cc",this.controls);this.ccTracks.length?(this.show(e),e.toggleClass("h5v-cc-active",null!==this.ccTrack),this.updateCues()):this.show(e,0)}tick(){this.ccTrack&&this.updateCues(),this.onTick&&this.onTick()}loadCcTrack(t,a){var s=this.ccTracks.find(e=>!t||t===e.lang);s&&(s.cues?a(s):s.src&&fetch(s.src).then(e=>e.text()).then(e=>{s.cues=k.parseCues(e),a(s)}))}setCcTrack(e,t){this.ccTrack=e,this.ccCue=-1,this.updateCc(),t&&this.store("cc")}updateCues(){var e=this,t=e.ccTrack,a=-1;if(t&&t.cues){var s=e.media.currentTime-.5/e.fps,t=t.cues;if(0<=(a=e.ccCue)&&t[a].start<=s&&s<=t[a].end)return;a=t.findIndex(e=>e.start<=s&&s<=e.end)}e.showCue(a)}showCue(e){var t=this;0<=(t.ccCue=e)&&t.ccTrack?(t.ccVisible=!0,e=$("<div class='h5v-cue'>").html(t.ccTrack.cues[e].text).attr({index:e}),$(".h5v-cues",t.layers).html(e)):t.ccVisible&&(t.ccVisible=!1,$(".h5v-cues",t.layers).empty())}updateTime(){var e=this,t=null!==e.seekTime?e.seekTime:e.media.currentTime;$(".h5v-current",e.controls).text(k.formatTime(t)),e.watched[f.floor(t)]=1,e.duration&&($(".h5v-timeline .h5v-pos",e.controls).css({width:f.round(1e3*t/e.duration)/10+"%"}),e.updateCues())}getCurrentTime(){return this.media.currentTime}setCurrentTime(e){this.media.currentTime=e}play(){this.pp(!0)}pause(){this.pp(!1)}pp(e){var t=this;t.awaiting||t.media.paused!==e||(e=t.media[e?"play":"pause"](),t.awaiting=!0,e?e.then(()=>{t.awaiting=!1}).catch(()=>{}):t.awaiting=!1)}seek(e){this.media.currentTime=e,this.hlsLoad(e),this.updateTime(),this.showCue(-1)}seekPause(){var e=this;null===e.seekPaused&&(e.seekPaused=e.media.paused,e.media.paused||(e.media.pause(),e.updatePlayPause()))}updateProgress(){var e,t;this.duration&&(e=0,t=this.media.buffered)&&0<t.length&&(e=t.end(t.length-1),$(".h5v-timeline .h5v-buffer",this.controls).css({width:f.round(1e3*e/this.duration)/10+"%"}))}updatePlayPause(){var e=this,t=this.media.paused;$(".h5v-pop-start",e.layers).remove(),$(".h5v-play",e.controls).toggleClass("h5v-pause",!t),e.extPlay&&$("[icon]",e.extPlay).attr("icon",t?"play":"pause"),e.showUI(!0),t?(clearInterval(e.tickTimer),e.tickTimer=null):!e.tickTimer&&e.tickInterval&&(e.tickTimer=setInterval(()=>e.tick(),e.tickInterval))}updateVolume(){var e=this,t=$(".h5v-mute",e.controls),a=$(".h5v-volume .h5v-pos",e.controls);e.media.muted?(t.addClass("h5v-muted"),a.css({width:0})):(e.store("volume"),t.removeClass("h5v-muted"),a.css({width:f.round(100*e.media.volume)+"%"}))}updateRate(){var e=f.round(100*this.media.playbackRate);this.show($(".h5v-rate",this.controls).text(e+"%"),this.enableRate)}updateSeeking(e){var t=this;e?!1===t.seekPaused&&t.media.play():(t.seekTime=null,t.seekPaused=null),t.uiLoading(e)}uiLoading(e){$(".h5v-timeline .h5v-pos",this.controls).toggleClass("h5v-buffering",e)}uiPopLoading(e){$(".h5v-pop-start",this.layers).toggleClass("loading",e)}focus(){k.env.multitouch||this.container.focus()}isFullscreen(){return!!(l.fullscreenElement||l.webkitFullscreenElement||l.mozFullScreen)}enterFullscreen(){var e=this,t=e.container[0];if(t.requestFullscreen)t.requestFullscreen();else if(t.webkitRequestFullscreen)t.webkitRequestFullscreen();else if(t.msRequestFullscreen)t.msRequestFullscreen();else{if(!e.media.webkitEnterFullscreen)return;e.hlsLoad(e.media.currentTime),e.media.webkitEnterFullscreen(),e.media.controls=!0}setTimeout(()=>e.updateFullscreen())}exitFullscreen(){var e=this;if(l.exitFullscreen)l.exitFullscreen();else if(l.webkitExitFullscreen)l.webkitExitFullscreen();else{if(!l.msExitFullscreen)return;l.msExitFullscreen()}setTimeout(()=>e.updateFullscreen())}toggleFullscreen(){this.isFullscreen()?this.exitFullscreen():this.enterFullscreen()}updateFullscreen(){this.media.controls=!1,this.container.toggleClass("h5v-fullscreen",this.isFullscreen())}uiError(e){e&&(this.error=e,e=$("<div class='h5v-error'>").text(e),$(".h5v-master",this.layers).empty().append(e))}hlsLoad(e){this.hls&&!this.hls.autoStartLoad&&this.hls.startLoad(e)}uiPlayPause(){var e=this,t=$(".h5v-layers .h5v-master",e.container),a=e.media;e.focus(),e.error||(a.paused?(a.play(),e.hlsLoad(a.currentTime),t.html("<div class='h5v-pop h5v-pop-play h5v-fade'>
8")):(a.pause(),t.html("<div class='h5v-pop h5v-pop-pause h5v-fade'>")))}uiJump(e){var t=this,a=$(".h5v-layers .h5v-master",t.container);t.disableSeeking||(f.abs(e)===t.jump&&a.html("<div class='h5v-pop h5v-fade "+(e===t.jump?"h5v-pop-forward":"h5v-pop-backward")+"'>"),t.seekPause(),a=b(0,t.media.currentTime+e,t.media.duration),t.seek(t.onSeek(a)))}handleShortcuts(e){var t=this,a=!0,s=t.shortcuts,i=0;if(!t.disableKeyboard){switch(e.which){case s.play:t.uiPlayPause();break;case s.cc:t.toggleCc();break;case s.mute:t.media.muted=!t.media.muted;break;case s.fullscreen:t.audio||t.toggleFullscreen();break;case s.jumpBack:i=-t.jump;break;case s.jumpForward:i=t.jump;break;case s.frameBack:i=-1/t.fps;break;case s.frameForward:i=1/t.fps;break;default:a=!1}a&&(i&&t.uiJump(i),e.preventDefault())}}destroy(){var t=this;t.uiTimer&&(clearTimeout(t.uiTimer),t.uiTimer=null),t.bind("off"),t.layers.remove(),t.controls.remove(),$(t.media).removeData("h5video").unwrap(),t.media.controls=!0,t.hls&&(t.hls.autoStartLoad&&t.hls.abort(),t.hls.destroy(),t.hls=null),k.instances=k.instances.filter(e=>e!==t)}};k.re={vtt:/(\s+)(-?\d{2}:\d{2}:\d{2}\.\d{3}) --> (-?\d{2}:\d{2}:\d{2}\.\d{3})/g,srt:/(\d+)\n(-?\d{2}:\d{2}:\d{2},\d{3}) --> (-?\d{2}:\d{2}:\d{2},\d{3})/g,time:/(-?\d+):(\d{2}):(\d{2})[\.,](\d{3})/},k.parseCues=e=>{for(var t,a,e=e.split("\r").join(""),s="WEBVTT\n",i="srt",r=(e.startsWith(s)&&(e=e.slice(s.length),i="vtt"),e.split(k.re[i])),l=[],n=1,u=1,o=r.length;u<o;u+=4)t=r[u+1],a=r[u+2],l.push({id:n++,startTime:t,endTime:a,start:k.parseTime(t),end:k.parseTime(a),text:r[u+3].trim()});return l},k.parseTime=e=>{var e=k.re.time.exec(e),t=0;return t=e&&(t=3600*e[1]+60*e[2]+ +e[3]+e[4]/1e3,0===e[1].indexOf("-"))&&0<t?-t:t},k.createFromNode=(t,e)=>{if(t)return k.instances.find(e=>e.media===t)||new k(t,{...$(t).data("settings"),...e})},k.pauseAll=t=>{k.instances.forEach(e=>{e!==t&&e.pause()})},k.loadWaveform=(e,t)=>{fetch(e).then(e=>e.arrayBuffer()).then(e=>{e&&t(new Uint8Array(e))})},k.normalize=(e,t)=>{var a=e.pageX,e=e.changedTouches||e.touches,t=t.getBoundingClientRect();return e&&e.length&&(a=e[0].pageX),{pos:b(0,(a-t.x)/t.width,1),width:t.width}},k.draggable=(t,a,s,i)=>{var r=null;$(t).on("mousedown",function(e){r||this!==t||(a.call(t,e),r={mousemove:e=>{s.call(t,e)},mouseup:e=>{i.call(t,e),$(l).off(r),r=null},mouseout:e=>{"IFRAME"!==e.target.tagName||e.buttons||r.mouseup(e)}},$(l).on(r))})},k.formatTime=e=>{var t=f.floor(e/60),e=f.floor(e)%60;return(9<t?t:"0"+t)+":"+(9<e?e:"0"+e)},k.detect=()=>{var e="ontouchstart"in s||"ontouchstart"in l,t=l.createElement("video");return{touch:e,multitouch:e&&1<navigator.maxTouchPoints,fullscreen:!(!t||!(t.requestFullscreen||t.webkitRequestFullscreen||t.msRequestFullscreen||t.webkitEnterFullscreen))}},s.H5Video=k,$.fn.video=function(t){return this.each(function(){if("string"==typeof t){var e=$(this).data("h5video");if(e)return e[t].apply(e,[].slice.call(arguments,1))}else k.createFromNode(this,t)})}})(window,document,Math);
9
10/* base/core/js/plugins.js */
11(()=>{$.getCookie=e=>(document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")||[]).pop(),$.waitForCookie=(e,t,s,a)=>{var o=0,i=setInterval(()=>{o+=250,($.getCookie(e)===t.toString()||s<=o)&&(clearInterval(i),a())},250)},$.downloadUrl=(e,t,s)=>{t=$("<a>").attr({download:t||""}).appendTo("body"),e=s?URL.createObjectURL(new Blob([e],{type:s})):e;t[0].href=e,t[0].click(),s&&URL.revokeObjectURL(e),t.remove()};var e=1,o=(s,a,o,i=!1)=>{o=o||"async_"+s+"_"+e++;var r=$("html>head")[0],l="js"===s?"script":"link",n=$(l+'[name="'+o+'"]',r).first();return new Promise(e=>{var t;n.length?n.attr("data-loaded")?e():n.on("load",e):((t=$("<"+l+">","js"===s?{name:o,src:a,async:i,defer:!0}:{name:o,href:a,rel:"stylesheet",type:"text/css"})[0]).onload=()=>{t.setAttribute("data-loaded","1"),e()},r.appendChild(t))})};function s(e){var t,s,a={...$.grawler.defaults,...e},e=$("#grawler"),o="",i=null;function r(){t.css({opacity:0,height:0,minHeight:0,paddingTop:0,paddingBottom:0}),setTimeout(()=>t.remove(),1e3*a.fade)}a.message&&(e.length||(e=$("<div id='grawler'>").appendTo("body")),a.close&&(a.close=Math.max(a.message.length/18,a.close),o="<div class='grawler-timer'></div>"),(t=$("<div>"+o+"<div icon='close' class='grawler-close pointer'></div>"+a.message+"</div>").addClass("grawler-pop grawler-"+a.type+" "+a.className)).css({top:"-10px",opacity:0,transition:"all "+a.fade+"s ease-in-out"}
11).on("click",'div[icon="close"]:first-of-type',r).appendTo(e),s=$(".grawler-timer",t),a.close&&s.css({transition:"bottom "+a.close+"s linear"}),setTimeout(()=>{t.css({top:0,opacity:1,height:t.offset().height+"px",overflow:"hidden"}),a.close&&(i=setTimeout(r,1e3*(a.close+a.fade)),s.css({bottom:s[0].clientHeight+parseInt(s.css("bottom"))+"px"}),t.on("mousemove",()=>{i&&(clearTimeout(i),s.remove(),i=null)}))},1e3*a.delay+100))}$.plugin=async e=>{var t=`/static/base/plugins/${e}/`+e;$.addStyle(surl(t+".css"),e+"_css"),await $.addScript(surl(t+".js"),e+"_js")},$.addScript=(e,t,s)=>o("js",e,t,s),$.addScripts=async(e,t,s)=>{for(var a=0;a<e.length;a++)await o("js",e[a],t+"__"+a,s)},$.addStyle=(e,t)=>o("css",e,t),$.addStyles=(e,s)=>Promise.all(e.map((e,t)=>o("css",e,s+"__"+t))),$.printme=(e,t,s=!0,a=null)=>{var o,t="/api/download/page/pdf"+(t||""),i=$(e).clone(),r="",l=(i.remove("script"),s&&$("link[rel=stylesheet], style").each(function(){r+=this.outerHTML}),{title:$("head title").html(),css:r,width:a??Math.max($(e).offset().width,1e3),html:i.html()}),n=$("<form method='post' action='"+t+"'>");for(o in l)$("<input type='hidden'>").attr({name:o}).val(l[o]).appendTo(n);n.appendTo("body").submit().remove()},$.formatMessages=e=>(e||[]).map(e=>$("<div class='input-pop input-"+e.type+"'>").text(e.message)),Object.assign($.fn,{messages:function(e){return this.html($.formatMessages(e))},loading:function(e,t,s){var a=this.prop("disabled",e=!!e).find("[icon]:first-of-type").toggleClass("loading",e);return void 0!==t&&(a.toggleClass("progressing",e),a.css({"--progress-time":s?+s+"s":""}),a.css({"--progress":t||""})),this},formRestore:function(e,t){var s,a=$("input:not([type=file]), select, textarea",this),o=[],a=(a=t?a:a.filter(":not(input[type=hidden])")).filter((e,t)=>!t.readOnly&&!t.disabled);for(s in e){var i=e[s],r=a.filter("[name='"+s+"']");r.filter("input[type=radio]").prop("checked",!1),r.each((e,t)=>{var s,a=$(t);a.is("input[type=checkbox]")?(s="0"!==i,a.prop("checked")!==s&&(a.prop("checked",s),o.push(t))):a.is("input[type=radio]")?a.attr("value")===i&&(a.prop("checked",!0),o.push(t)):a.is("input,select,textarea")&&a.val()!==i&&(a.val(i),o.push(t),a.data("select2"))&&a.trigger("change.select2")})}setTimeout(()=>$(o).trigger("change"),10)},formClipboard:function(){return"form-copy-"+($(this).attr("name")||$(this).attr("id")||"all")},formCopy:function(){var t={};$(this).serializeArray().forEach(e=>t[e.name]=e.value),localStorage.setItem($(this).formClipboard(),JSON.stringify(t))},formPaste:function(){var e=localStorage.getItem($(this).formClipboard());e&&$(this).formRestore(JSON.parse(e))},autogrow:function(){return this.filter("textarea").on("input keyup",function(){$(this).css({height:"auto"});var e,t=this.scrollHeight;t>this.clientHeight&&(e=this.offsetHeight-this.clientHeight,$(this).css({height:e+t+"px"}))})}}),$.grawler={defaults:{delay:0,close:4,type:"info",message:"",className:"",fade:.4},messages:(e,t)=>{e.forEach(e=>{e&&e.message&&s({message:e.message,type:e.type,...t})})},pop:s,info:(e,t)=>s({message:e,...t}),warning:(e,t)=>s({message:e,type:"warning",...t}),error:(e,t)=>s({message:e,type:"error",...t}),success:(e,t)=>s({message:e,type:"success",...t})}})();
12
13/* base/core/js/base.js */
14function init_events(){_CONF.EVTWATCH.forEach(e=>{e.endsWith(".scroll")?scroll_percent(75,()=>post_event(e)):e.endsWith(".ping")&&post_event(e)})}function mousexy(e){var t=e.touches||e.changedTouches;return t&&t.length?t[0]:e}function watchdog(){var e=$(document),n=0,a=0,i=null,t=$(".puzzle").length,o=["touchstart mousedown keydown focusout","touchend touchcancel mouseup keyup focusin mousemove touchmove"],l=[{down:"mov",up:[],e:[],d:[]},{down:"touchstart",up:["touchend","touchcancel"],e:[],d:[],m:t},{down:"mousedown",up:["mouseup"],e:[],d:[],m:t},{down:"keydown",up:["keyup"],e:[],d:[]},{down:"focusout",up:["focusin"],e:[],d:[]}],r=()=>
14{100<++n&&(e.off(o[0],d),e.off(o[1],c))},s=e=>{e=mousexy(e),i={x:e.pageX,y:e.pageY}},d=t=>{var e=l.find(e=>e.down==t.type);!a&&e.m&&(a=1,s(t)),e.start=t.timeStamp,e.end&&(e.d.push(e.start-e.end),e.end=0)},c=t=>{var e,o=l.find(e=>e.up.includes(t.type));a&&o&&o.m&&(a=0,i=null),o&&o.start?(o.end=t.timeStamp,e=o.end-o.start,o.start=0,o.e.push(e),r()):a&&["mousemove","touchmove"].includes(t.type)&&(o=n%2?l[0].e:l[0].d,e=i,s(t),e=Math.max(Math.abs(i.x-e.x),Math.abs(i.y-e.y)),o.push(e),r())};watchdog.stats=l,e.on(o[0],d),e.on(o[1],c)}function scroll_percent(e,t){var o=document.documentElement,n=window,a=()=>{o.scrollTop+n.innerHeight>o.scrollHeight*e/100&&(t(),$(n).off("scroll",a))};$(n).on("scroll",a),a()}function strip_html(e,t){return"string"==typeof e&&e.length&&(t||-1!==e.indexOf("<"))?e.replace(/<(?:.|\n)*?>/gm," ").replace(/\n/g," ").replace(/\s\s+/g," ").trim():e}function parse_float_smart(e,t=0){var o;return"number"==typeof e?e:(e=strip_html(e),o=parseFloat(null!=e?e.replace(/[^0-9\.-]/g,""):null),isNaN(o)?t:(0<e.indexOf("k")?o*=1e3:0<e.indexOf("M")?o*=1e6:0<e.indexOf("G")&&(o*=1e9),e.startsWith("(")&&e.endsWith(")")?-o:o))}function number_format(e){for(var e=(e+"").split("."),t=e[0],e=1<e.length?"."+e[1]:"",o=/(\d+)(\d{3})/;o.test(t);)t=t.replace(o,"$1,$2");return t+e}function surl(e,t,o){return e=new URL(e,location.href),!1!==t&&e.searchParams.append("_",_CONF.APP_REVISION),o?e.href:e.pathname+e.search}function post_event(e,t,o){var n,e={event:e,payload:t},a=e=>new Blob([JSON.stringify({events:e})],{type:"application/json; with=ajax"});if(o)return fetch("/api/log",{body:a([e]),keepalive:!0,method:"POST"});post_event.attached||(post_event.attached=1,n=e=>{var t;_CONF.EVENTS.length&&(t=a(_CONF.EVENTS),e?navigator.sendBeacon("/api/log",t):fetch("/api/log",{body:t,keepalive:!0,method:"POST"}),_CONF.EVENTS=[])},navigator.sendBeacon&&document.visibilityState?document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&n(1)}):document.addEventListener("beforeunload",()=>n())),_CONF.EVENTS.push(e)}function base_ajax_setup(){$(document).on("ajaxError",e=>{var e=e.res,t=e.ok?"":e.error||e.statusText;t&&400!==e.status&&["","abort","canceled","not found","ok"].includes(t.toLowerCase())&&post_event("error.js",{url:location.href,message:"AJAX: "+t,file:e.req.url,line:0})}),window.onerror=(e,t,o,n,a)=>{return"string"==typeof t&&e&&"Script error."!=e&&0<=t.indexOf(_CONF.MASTER_DOMAIN)&&(a=a&&a.stack?"\n"+a.stack:"",post_event("error.js",{url:location.href,message:"JS: "+e+a,file:t,line:o||0,column:n||0})),!1}}function base_config_widgets(){var d=(e,t,o)=>{var n,a,i,l,r,s;e.disabled||e.readOnly||(n=e.min||"",a=e.max||"",i=(s=e.step||"1").split(".")[1]||"",l=""===(r=e.value),r=parseFloat(l?n:r)||0,s=l&&0!==r?r:Math.round(r/s)*s+(t?+s:-s),""!==n&&s<n&&(s=n),((s=""!==a&&a<s?a:s)!==r||l)&&(e.value=parseFloat(s).toFixed(i.length),e.dispatchEvent(new Event("input",{bubbles:!0})),o)&&(d.timer=setTimeout(()=>{d.interval=50,d(e,t,!0)},d.interval)))};$(document).on("keydown","input[inputmode=decimal]",function(e){"ArrowUp"!=e.key&&"ArrowDown"!=e.key||(d(this,"ArrowUp"==e.key,!1),e.preventDefault())}),$(document).on("mousedown",'.btn[rel="number-down"], .btn[rel="number-up"]',function(e){var t=$(this).is('[rel="number-up"]'),o=$(this).parent().find("input")[0];o&&(d.interval=500,d(o,t,!0),$(this).on("mouseleave mouseup",()=>clearTimeout(d.timer)))}),$(document).on("click",".tabs-nav[role=tablist] [role=tab]",function(e){var t=$(this),o=t.attr("aria-controls"),n=t.closest("[role=tablist]"),a=n.parent(),n=n.find("[role=tab][selected]"),o=a.children("[role=tabpanel]#"+o),a=a.children("[role=tabpanel]").not(o);"true"!==t.attr("aria-selected")&&(n.attr({"aria-selected":"false","aria-expanded":"false",selected:null}),t.attr({"aria-selected":"true","aria-expanded":"true",selected:!0}),a.attr("aria-hidden","true"),o.attr("aria-hidden","false")),n.length&&n.dispatch("inactive",{relatedTarget:a[0]}),t.dispatch("active",{relatedTarget:o[0]}),e.preventDefault()}),$(document).on("click",'[rel="datepicker-trigger"]',function(e){var t=$(this).closest(".grp").find("input")[0];t&&Datepicker(this,t),e.preventDefault()})}function base_destroy_widgets(e){$.fn.minicolors&&$(".minicolors",e).minicolors("close").minicolors("destroy"),$.fn.select2&&$("select.select2",e).select2("destroy"),$.fn.cke&&$(".ckeditor-initialized",e).cke("destroy")}async function init_plugin(e,t,o,n){e=$("."+t,e);e.length&&($.fn[o]||await $.plugin(n),e.removeClass(t)[o]())}function base_style_widgets(e){init_plugin(e,"i-select","select2"),init_plugin(e,"i-dropdown","popmenu"),init_plugin(e,"i-colorpicker","minicolors","minicolors"),init_plugin(e,"ii-colorpicker","colorpicker","colorpicker"),init_plugin(e,"i-uploader","uploader","h5upload"),init_plugin(e,"i-tooltip","h5tip","h5tip"),$.fn.autogrow&&setTimeout(()=>$("textarea[autogrow]",e).autogrow()),$.fn.trackable&&$(".i-trackable",e).removeClass("i-trackable").trackable().on("trackable:dirty",e=>{e=$(e.target).closest("tr.form-row");e.toggleClass("form-row-changed",e.trackableDirty())});var o=e=>
14{var e=$(e),t=e.attr("data-maxlen"),o=e.val().trim().length;e.nextAll(".maxlen").eq(0).toggleClass("red",t<o).text(o+" / "+t)},t=($(".i-maxlen[data-maxlen]",e).removeClass("i-maxlen").each((e,t)=>{$(t).on("input",()=>o(t)),o(t)}),$("textarea.html-editor",e));t.length&&$.addScript(surl("/static/base/core/js/cke.js"),"cke").then(()=>$(t).cke())}function style_widgets(e){base_style_widgets(e),base_dialog_links(e)}function base_dialog_links(e){$(e).on("click",".confirm-delete, .confirm-link",function(){var e=$(this),o=e.data("confirm"),n=o.question,a=o.href||e.attr("href")||null,i=()=>{location=a};return e.is(".confirm-delete")&&(!n&&o.name&&(n=$("<i>").text(o.name).html()),i={title:t("Delete"),buttons:[{label:"Delete",icon:"trash",class:"btn-red",onClick:i},{label:"Cancel",cancel:!0}]}),pop_confirm(n,i),!1})}function pop_alert(e,o){return pop_confirm(e,{title:o||t("Alert"),buttons:[{label:"OK",dismiss:!0}]})}function pop_remove(e,t,o){var n;return(t="string"==typeof t?{label:t}:t).class||="btn-red",t.onClick=()=>{o(),n.destroy()},n=pop_confirm(e,{buttons:[t,{label:"Cancel",cancel:!0}]})}function pop_confirm(e,o){return(o="function"==typeof o?{buttons:[{label:"Yes",icon:"ok",onClick:o},{label:"No",cancel:!0}]}:o).css=o.css||"modal-sm",o.id=o.id||"confirm-dialog",o.title=o.title||t("Confirm"),o.node||(o.node=$("<div id='confirm-dialog' class='d-flex align-items-center'>").html(["<i icon='circle_exclamation' class='red bg-icon-white mr-10 flex-shrink-1 font-300'></i>",$("<div rel='question'></div>").html(e||t("Are you sure?"))])),pop_modal(o)}function pop_modal(t){var e=t.node&&t.node.length?$(t.node):$("<div><div class='loading loading-medium'></div>"),o=t.id||e.attr("id"),n=!1!==t.dismiss,a=n&&!1!==t.outsideClose,i=!1!==t.escape,l=t.buttons||[],r=$("<div class='modal' role='dialog'><div class='modal-dialog modal-dialog-centered' role='document'><div class='modal-content'></div></div></div>"),l=l.map(e=>{var t;if("object"==typeof e)return t=e.label||"Cancel",e.icon&&(t=`<i icon='${e.icon}'></i> `+t),t=$("<button type='button' class='btn round'>").html(t),e.attr&&t.attr(e.attr),e.class&&t.addClass(e.class),e.onClick?t.on("click",e.onClick):e.submit?t.on("click",()=>{$("form",r).submit()}).attr("rel","submit"):e.cancel?t.addClass("btn-grey").attr("data-dismiss","modal"):e.dismiss&&t.attr("data-dismiss","modal"),t}),s=$(".modal-content",r).html([$("<div class='modal-header round-t'>
14").html([$("<h4>").html(t.title||e.data("title")||"Modal"),!1!==r.dismiss?$('<button type="button" class="close" icon="close_thin" data-dismiss="modal" aria-label="Close">'):null]),e.addClass("modal-body").attr("id",o),l.length?$("<div class='modal-footer round-b'>").html(l):null]),d=(o&&r.attr("aria-describedby",o),t.css&&$(".modal-dialog",r).addClass(t.css),$("body").append(r),e=>e.find("input,select,textarea,button,a[href]").not("[disabled]").filter((e,t)=>{return-1!=t.tabIndex&&"none"!=(t=getComputedStyle(t)).display&&"hidden"!=t.visibility})),c={dialog:r,title:$(".modal-header h4",s),close:$(".modal-header .close",s),body:$(".modal-body",r),footer:$(".modal-footer",r),buttons:l,trap:e=>{var t,o;"Escape"==e.key?i&&c.destroy():"Tab"==e.key&&(t=document.activeElement,o=[(o=d(r))[0],o[o.length-1]],1<(o=e.shiftKey?o.reverse():o).length)&&t==o[1]&&(o[0].focus(),e.preventDefault())},destroy:()=>{c.hide(),base_destroy_widgets(s),t.onClose&&t.onClose(c),r.remove()},hide:()=>{--pop_modal.DEPTH||$("body").removeClass("modal-open").css("padding-right",""),r.removeClass("modal-show").trigger("hide"),t.onHide&&t.onHide(c),document.removeEventListener("keydown",c.trap)},open:()=>{var e=Math.abs(window.innerWidth-document.documentElement.clientWidth);$("body").addClass("modal-open").css("padding-right",e?e+"px":""),pop_modal.DEPTH++,r.addClass("modal-show").trigger("open"),t.onOpen&&t.onOpen(c),c.autofocus(),document.addEventListener("keydown",c.trap)},autofocus:()=>{var e=d(r),e=(1<e.length?e.not("[data-dismiss]"):e)[0];e&&e.focus()}};return n||c.close.css({display:"none"}),r.on("click",e=>{(e.target===r[0]&&a||e.target.closest('button[data-dismiss="modal"]'))&&c.destroy()}),!1!==t.autoOpen&&c.open(),c}function init_menu_responsive(e,t){var o;t.length?((o=t.children().attr("data-icon"))&&e.children("[icon]").attr("icon",o),e.on("click",()=>(t.toggleClass("d-block"),!1))):e.addClass("d-none")}_CONF={MASTER_DOMAIN:"localhost",APP_REVISION:"",EVENTS:[],EVTWATCH:[],LOCALE_LANG:"en",LOCALE_TZ_OFFSET:0,...window._CONF},watchdog.render=()=>{var e=(watchdog.stats||[]).map(e=>[e.e.map(e=>Math.round(e)),e.d.map(e=>Math.round(e))]);return btoa(JSON.stringify(e)).replace(/=+$/,"")},pop_modal.DEPTH=0;
15
16/* base/core/js/locale.js */
17function tf(e,t,a){e=e||_CONF.LOCALE_LANG||"en";var e=_LOCALE[e],n=t;return _CONF.LOCALE_ENABLED&&e&&(void 0===e[t]?(e[t]="",post_event("locale.js",t)):""!==e[t]&&(n=e[t])),replace_binds(n,a)}window._CONF||(_CONF={}),window._LOCALE||(_LOCALE={}),_CONF.LOCALE_ENABLED=1;const t=(e,t)=>tf(null,e,t),tx=(e,t)=>replace_binds(e,t),tplural=(e,a,n)=>t(1==+e?a:n),txplural=(e,t,a)=>1==+e?t:a,tcount=(e,t,a)=>e+" "+tplural(e,t,a),txcount=(e,t,a)=>e+" "+txplural(e,t,a),preg_quote=(e,t)=>(e+"").replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\"+(t||"")+"-]","g"),"\\$&"),highlight_binds=(e,t)=>e.replace(/\{\w+\}/gi,"<span class='"+t+"'>$&</span>");function replace_binds(e,t){if(void 0!==e){for(var a in t)e=e.replace(new RegExp(preg_quote(a),"gi"),t[a]);return e}}function highlight_replace_binds(e,t,a){var n,s={};for(n in t)s[n]="<span class='"+a+"'>"+t[n]+"</span>";return replace_binds(e,s)}class Locale{constructor(e){for(var t=this,a=(t.now=new Date,t.midnight=(new Date).setHours(0,0,0,0),t.language=e.language||"en",t.timezone=e.timezone||"US/Central",t.timezoneOffset=e.timezoneOffset||0,t.weekFirstDay=e.weekFirstDay||0,t.dateFormat=e.dateFormat||"m/d/Y",t.timeFormat=e.timeFormat||"H:i:s",e=>e.charAt(0).toUpperCase()+e.slice(1)),n=[],s=[],r=0;r<12;r++)n[r]=a(new Date(2023,r).toLocaleString(t.language,{month:"long"}));for(var l=0;l<7;l++)s[l]=a(new Date(2023,0,l+1).toLocaleString(t.language,{weekday:"long"}));t.months=n,t.monthsShort=n.map(e=>e.slice(0,3)),t.days=s,t.daysShort=s.map(e=>e.slice(0,3)),t.daysMin=s.map(e=>e.slice(0,2)),t.keywords={now:0,today:0,tomorrow:1,yesterday:-1,last:-1,this:1,next:1,second:null,minute:null,hour:null,day:null,week:null,month:null,year:null},t.methods={year:["FullYear",1],month:["Month",1],week:["Date",7],day:["Date",1],hour:["Hours",1],minute:["Minutes",1],second:["Seconds",1]},t.keywordsRegex=new RegExp(Object.keys(t.keywords).join("|"),"i")}formatDate(e,t){t=t||this.dateFormat;for(var a,n="",s=e=>e<10?"0"+e:e,r=(e=e||new Date).getMonth(),l=r+1,o=e.getDay(),i=e.getDate(),u=e.getFullYear(),d=e.getHours(),h=d%12||12,m={j:i,d:s(i),w:o,l:this.days[o],D:this.daysShort[o],m:s(l),n:l,F:this.months[r],M:this.monthsShort[r],Y:u,y:(u+"").slice(-2),H:s(d),g:h,h:s(h),a:d<12?"am":"pm",A:d<12?"AM":"PM",i:s(e.getMinutes()),s:s(e.getSeconds())},c=0,g=t.length;c<g;c++)n+="\\"===(a=t[c])?t[++c]:"c"===a?e.toISOString():void 0!==m[a]?m[a]:a;return n}parseDateSmart(e,t){return e?this.keywordsRegex.test(e)?this.parseDateRelative(e,t):this.parseDate(e,t):null}parseInterval(e){var t;return(t=e.match(/(\d+)\:(\d+)\:(\d+)/i))?3600*t[1]+60*t[2]+ +t[3]:(t=e.match(/(\d+)\:(\d+)/i))?60*t[1]+ +t[2]:0}parseDate(e,t){if(!e)return null;var a,n,s,r;if(t=new Date(t||this.midnight),a=e.match(/^(\d{4})-(\d{1,2})-(\d{1,2})/))r=+a[1],n=+a[2]-1,s=+a[3];else if(a=e.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})/))n=+a[1]-1,s=+a[2],r=+a[3];else if(a=e.match(/^(\d{1,2})\.(\d{1,2})\.(\d{4})/))s=+a[1],n=+a[2]-1,r=+a[3];else if(a=e.match(/^(\d{1,2})[\s\/-]+([a-zA-Z]{3,})([\s\/-]+(\d{4}))?/)){for(var l=a[2].toLowerCase(),o=0;o<12&&0!==this.months[o].toLowerCase().indexOf(l);o++);if(11<o)return null;n=o,s=+a[1],a[4]&&(r=+a[4])}return n&&(n<0||11<n)||s&&(s<1||31<s)?null:(r&&t.setFullYear(r),null!=n&&t.setMonth(n),s&&t.setDate(s),(r=a?e.slice(a[0].length):e)&&(t=this._applyTime(r,t)),new Date(t))}_applyTime(e,t){var a,n,s,r;if(e=e.match(/(\d{1,2})\:(\d{1,2})(?:(?:\:(\d{1,2})(?:\.(\d{1,3}))?)?(?:\s*(am|pm)?))?/i)){if(a=+e[1],e[5]){if(a<1||12<a)return null;"am"==e[5]||"AM"==e[5]?12==a&&(a=0):12!=a&&(a+=12)}else if(24<a)return null;if(e[2]&&59<(n=+e[2]))return null;if(e[3]&&59<(s=+e[3]))return null;e[4]&&(r=Math.ceil(1e3*("1."+e[4]))-1e3)}return null!=a&&t.setHours(a),null!=n&&t.setMinutes(n),null!=s&&t.setSeconds(s),null!=r&&t.setMilliseconds(r),t}parseDateRelative(e,t){if(!e)return null;if(t=new Date(t||this.now),/^now|today|tomorrow|yesterday$/.test(e))t.setDate(t.getDate()+this.keywords[e]);else for(var a,n,s=/(last|this|next|(?:[\+-]?\d+))\s+([a-z]+)(?:\s+(ago))?/g;null!=(n=s.exec(e));)if(a=/(?:[\+-]?\d+)/.test(n[1])?(n[3]?-1:1)*+n[1]:this.keywords[n[1]],n[2]=n[2].replace(/s$/,"").toLowerCase(),l=this.methods[n[2]])t["set"+l[0]](t["get"+l[0]]()+a*l[1]);else{for(var r=0;r<7&&0!==this.days[r].toLowerCase().indexOf(n[2]);r++);if(!(r<7))return null;var l=t.getISODay()-1;r<=l&&(r+=7),t.setDate(t.getDate()+(r-l)+7*(a-1))}return new Date(t)}}window.Localize=new Locale({language:_CONF.LOCALE_LANG,timezone:_CONF.LOCALE_TZ,timezoneOffset:_CONF.LOCALE_TZ_OFFSET+60*(new Date).getTimezoneOffset(),weekFirstDay:_CONF.LOCALE_WEEK_FIRST_DAY,dateFormat:_CONF.LOCALE_DATE_FORMAT,t
17imeFormat:_CONF.LOCALE_TIME_FORMAT});
18
19/* base/cms/cms.js */
20$.fn.cms_menu=function(){$(this).not(".cms-init").addClass("cms-init").on("click",".cms-menu-trigger",function(){var e,t=$(this).closest(".cms-section"),s=$(".cms-responsive-menu-container",t);s.length||(s=$("<div class='container cms-responsive-menu-container'><div class='row'></div></div>").appendTo(t),e=$(this).closest(".cms-responsive-menu").find("p>*:not(.cms-menu-trigger):not(br)").clone(),s.find(".row").html(e).children().wrap("<div class='col-12'></div>")),t.toggleClass("cms-responsive-menu-open"),t.on("click",'a[href^="#"]',function(){t.removeClass("cms-responsive-menu-open")})})},$.fn.cms_audio=function(){$(this).not(".cms-audio-init").addClass("cms-audio-init").each((e,t)=>{H5Video.createFromNode(t,{extPlay:$(t).closest("[data-plugin]").find('a[href="#play"]')[0]})})},$.fn.cms_video=function(){$(this).not(".cms-video-init").addClass("cms-video-init").each((e,t)=>{let s=$('source[type="application/vnd.apple.mpegurl"]',t).attr("src"),i=H5Video.createFromNode(t);s&&$.addScript(surl("/static/base/plugins/hls/hls.light.min.js"),"hls",!0).then(()=>{var e;Hls.isSupported()&&((e=new Hls({autoStartLoad:"auto"===t.preload})).loadSource(s),e.attachMedia(t),i.hls=e)})})},$.fn.cms_slider=function(){$(this).not(".cms-init").addClass("cms-init").each(function(){let t=$(this),i=$(".cms-slider-items",t)[0],s=i.children.length,n=1e3*t.data("interval"),o,c,r,a=!1,l=[];function d(e){i.scrollTo({left:i.children[e%s].offsetLeft,behavior:"smooth"}),clearTimeout(o),c&&r&&(o=setTimeout(c,n))}0<n&&1<s&&new IntersectionObserver(e=>{r=0<e[0].intersectionRatio,!c&&r?(c=()=>d(a?0:l.indexOf(!0)+1),o=setTimeout(c,n),$(i).on({mouseenter:()=>clearTimeout(o),mouseleave:()=>o=setTimeout(c,n)})):r?o=setTimeout(c,n):clearTimeout(o)},{root:document,threshold:.1}).observe(i);var e,m=new IntersectionObserver(e=>{let s=$(".cms-slider-dots",t).children();e.forEach(e=>{var t=e.target.getAttribute("data-idx");l[t]=e.isIntersecting,s[t]&&s[t].classList.toggle("selected",l[t])});e=$(".cms-slider-display",t)[0];a=l[l.length-1],e.classList.toggle("first",0==i.scrollLeft),e.classList.toggle("last",a)},{root:i,threshold:.5});for(e of i.children)m.observe(e);t.on("click",".next, .prev",function(){var e=this.matches(".next")?1:-1,e=l.indexOf(!0)+e;0<=e&&e<s&&d(e)}),t.on("click",".cms-slider-dots *",function(e){return d($(e.target).index()),!1})})},$.fn.cms_marquee=function(){$(this).not(".cms-init").addClass("cms-init").each(function(){var e=$
20(".cms-marquee-items",this)[0];e.innerHTML+=e.innerHTML})};
21
22/* app/cms/cms.js */
23$.fn.cms_form=function(){watchdog(),$(this).not(".cms-init").addClass("cms-init").on("submit",function(){let t=$(this),i=$(".cms-form-messages",t),e=$("button",t);return e.loading(!0),i.html(""),$.postForm(t.attr("action"),t.serialize()).then(e=>{var o;e.ok&&($("input:not([type=hidden]), textarea",t).val(""),o=window.dataLayer)&&o.push&&o.push({event:"submit_form"}),i.html(e.body?e.body.messages:[])}).finally(()=>e.loading(!1)),!1})},function(a){let e=0,i=null;a.fn.cms_resource_player=function(){a(this).not(".cms-init").addClass("cms-init"),e||(a(document).on("click","[data-player]",function(e){e.preventDefault();var e=a(this),o=e.data("player"),e=e.closest(".row"),t=a("#resource-player");t.length&&(t.closest(".row").removeClass("selected-down"),t.remove()),i==o.cfid?i=null:(i=o.cfid,e.addClass("selected-down"),e.append('<div id="resource-player" class="col-12 py-15 c"><div class="loading loading-big opacity-100 blue px-0 py-0"></div></div>'),a.postForm("?player=1",o).then(e=>{e.ok&&(a("#resource-player").html(e.body.html),a("video, audio").cms_video())}))}),a(document).on("click",".course-fullscreen",function(e){e.preventDefault();let t=document.body,i=a(this).closest("#resource-player"),n=i.find(".iframe-course")[0],o=n.getBoundingClientRect().height,s=n.parentNode,l=a('<div class="maximized-course"><div class="header"><a href="#" class="b font-112 minimize-btn" style=\'color:#eee;\'><i icon=\'close_thin\'></i> Minimize</a></div></div>'),r=l.find(".minimize-btn")[0];r.addEventListener("click",function e(o){o.preventDefault(),i.find(".hollow-iframe").remove();o=i.find(".course-fullscreen")[0];"moveBefore"in Element.prototype?s.moveBefore(n,o):s.insertBefore(n,o),i.css("height","auto"),l.remove(),t.classList.remove("modal-open"),r.removeEventListener("click",e)}),i.css("height",o),t.classList.add("modal-open"),t.appendChild(l[0]),"moveBefore"in Element.prototype?l[0].moveBefore(n,null):l[0].insertBefore(n,null)}),e=1)}}($);
24
25/* app/microsite/default.js */
26$(function(){init_events(),base_config_widgets(),base_style_widgets($("#wrapper")),$(document).on("click","a[href='#calendly-trigger']",t=>{var e=$('<div class="calendly-overlay"></div>').appendTo("body");$.addStyle("https://assets.calendly.com/assets/external/widget.css","calendly-css"),$.addScript("https://assets.calendly.com/assets/external/widget.js","calendly-js",!0).then(()=>{e.remove(),Calendly.initPopupWidget({url:"https://calendly.com/sollahtraining/30min?hide_gdpr_banner=1"})}),t.preventDefault()}),_CONF.GTM_ID&&setTimeout(()=>{return t=_CONF.GTM_ID,(e=window)[n="dataLayer"]=e[n]||[],void(/^GTM-/.test(t)?(e[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"}),$.addScript("https://www.googletagmanager.com/gtm.js?id="+t,"google-gtm",!0)):(e.gtag=function(){e[n].push(arguments)},gtag("js",new Date),gtag("config",t,{cookie_flags:"https:"==e.location.protocol?"SameSite=None;Secure":"SameSite=None"}),$.addScript("https://www.googletagmanager.com/gtag/js?id="+t,"google-gtag",!0)));var t,e,n},4500),_CONF.CHAT_ID&&setTimeout(()=>{return e=_CONF.CHAT_ID,window.__lc=window.__lc||{},window.__lc.license=e,e=window,n=document,a=[].slice,i={_q:[],_h:null,_v:"2.0",on:function(){t(["on",a.call(arguments)])},once:function(){t(["once",a.call(arguments)])},off:function(){t(["off",a.call(arguments)])},get:function(){if(i._h)return t(["get",a.call(arguments)]);throw new Error("[LiveChatWidget] You can't use getters before load.")},call:function(){t(["call",a.call(arguments)])},init:function(){var t=n.createElement("script");t.async=!0,t.type="text/javascript",t.src="https://cdn.livechatinc.com/tracking.js",n.head.appendChild(t)}},e.__lc.asyncInit||i.init(),void(e.LiveChatWidget=e.LiveChatWidget||i);function t(t){return i._h?i._h.apply(null,t):i._q.push(t)}var e,n,a,i},4500)});
27

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