PageSourceSearch

http://li4e.org/js/figuration.min.js

js li4e.org collected 2026-10-06 04:59:03 UTC 111,430 bytes, 10 lines download raw bytes

vendor: 4,245 bytes, lines 1-10
1/*!
2 * Figuration (v4.1.1)
3 * http://figuration.org
4 * Copyright 2013-2021 CAST, Inc.
5 * Licensed under MIT (https://github.com/cast-org/figuration/blob/master/LICENSE)
6 * -----
7 * Portions Copyright 2011-2021  the Bootstrap Authors and Twitter, Inc.
8 * Used under MIT License (https://github.com/twbs/bootstrap/blob/master/LICENSE)
9 */
10if("undefined"==typeof jQuery)throw new Error("CAST Figuration's JavaScript requires jQuery");!function(){var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||4<=t[0])throw new Error("CAST Figuration's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),function(r){"use strict";function n(t){t&&t()}function a(t){var a=[0];return t.each(function(){var t=r(this),e=t.css("transition-duration"),t=t.css("transition-delay");if(e&&t)for(var i=e.split(","),s=t.split(","),n=i.length;n--;)a=a.concat(parseFloat(i[n])+parseFloat(s[n]))}),1e3*Math.max.apply(Math,a).toPrecision(2)}var t=!(String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)}),o="cfwTransitionEnd",t=function(){var t,e=document.createElement("div"),i={transition:"transitionend",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",WebkitTransition:"webkitTransitionEnd"};for(t in i)if(void 0!==e.style[t])return{end:i[t]};return{end:o}}();r.fn.CFW_transitionDuration=a,r.fn.CFW_transition=function(t,e){var i,s=a(this);return s?(i=!1,this.one(o,function(){i||(i=!0,n(e))}),setTimeout(function(){i||(i=!0,n(e))},s),n(t)):(n(t),n(e)),this},r.event.special[o]={bindType:t.end,delegateType:t.end,handle:function(t){if(r(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var e=void 0!==window.navigator.msMaxTouchPoints&&window.navigator.msMaxTouchPoints,t=!1;function i(t,e){MutationObserver&&((t=r(t[0].target)).is(e)||t.parents("[data-cfw-mutate]").first().triggerHandler("mutate.cfw.mutate"))}("ontouchstart"in window||e||window.DocumentTouch&&document instanceof DocumentTouch)&&(t=!0),r.CFW_isTouch=t;var s="MutationObserver"in window&&window.MutationObserver;r.fn.CFW_mutateTrigger=function(){return this.find("[data-cfw-mutate]").each(function(){r(this).triggerHandler("mutate.cfw.mutate")}),this},r.fn.CFW_mutationIgnore=function(){return s&&this.each(function(){var t=r(this).data("cfw-mutationobserver");void 0!==t&&t.disconnect(),r(this).removeData("cfw-mutationobserver").off("mutated.cfw.mutate")}),this},r.fn.CFW_mutationListen=function(){return s&&(this.CFW_mutationIgnore(),this.each(function(){var e=this,t=new MutationObserver(function(t){i(t,e)});t.observe(this,{attributes:!0,childList:!0,characterData:!1,subtree:!0,attributeFilter:["style","class"]}),r(this).data("cfw-mutationobserver",t).on("mutated.cfw.mutate",i)})),this},r.CFW_imageLoaded=function(t,e,i){var s=t[0],n=new Image,a=r(n);e=void 0===e?"":"."+e;t=function(){a.off("load.cfw.imageLoaded"+e).remove(),i()};s.complete&&void 0!==s.naturalWidth?t():(a.off("load.cfw.imageLoaded"+e).one("load.cfw.imageLoaded"+e,t),n.src=s.src)},r.fn.CFW_getID=function(t){var e=r(this),i=e.attr("id");if(void 0===i){for(;i=t+"-"+~~(1e6*Math.random()),document.getElementById(i););e.attr("id",i)}return i},r.fn.CFW_trigger=function(t,e){t=r.Event(t);return r.isPlainObject(e)&&(t=r.extend({},t,e)),r(this).trigger(t),!t.isDefaultPrevented()},r.fn.CFW_parseData=function(t,e){var i,s,n={},a=r(this).data();for(i in t=t.capitalize(),e)!Object.prototype.hasOwnProperty.call(e,i)||void 0!==a["cfw"+t+(s=i.capitalize())]&&(n[i]=a["cfw"+t+s]);return n},r.fn.CFW_getSelectorFromElement=function(t){var e=this[0].getAttribute("data-cfw-"+t+"-target");e&&"#"!==e||(e=this[0].getAttribute("href")||"");try{return document.querySelector(e)?e:null}catch(t){return null}},r.fn.CFW_getSelectorFromChain=function(t,e){var i=r(this);if(!e||"#"===e)return i.CFW_getSelectorFromElement();try{return document.querySelector(e)?e:null}catch(t){return null}},r.fn.CFW_getScrollbarSide=function(){var t=r(this);if(t.is(r("html"))){var e=/edge\/\d+/i.test(navigator.userAgent),i=/(msie|trident)/i.test(navigator.userAgent);return"rtl"===window.getComputedStyle(t[0],null).getPropertyValue("direction").toLowerCase()&&(e||i)?"left":"right"}var s=document.createElement("div");
10s.setAttribute("style","overflow-y: scroll;");e=document.createElement("p");r(s).append(e),t.append(s);i=r.CFW_measureScrollbar(),e=e.getBoundingClientRect().left;return t[0].removeChild(s),e<i?"right":"left"},r.fn.CFW_findShadowRoot=function(t){if(!document.documentElement.attachShadow)return null;if("function"!=typeof t.getRootNode)return t instanceof ShadowRoot?t:(t.parentNode,null);t=t.getRootNode();return t instanceof ShadowRoot?t:null},r.CFW_throttle=function(s,n,a){var r,o;return void 0===n&&(n=250),function(){var t=a||this,e=Number(new Date),i=arguments;r&&e<r+n?(clearTimeout(o),o=setTimeout(function(){r=e,s.apply(t,i)},n)):(r=e,s.apply(t,i))}},r.CFW_measureScrollbar=function(){var t=document.createElement("div");t.setAttribute("style"," position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll;"),document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},r.CFW_reflow=function(t){return t.offsetHeight}}(jQuery),function(a){"use strict";var r=function(t,e){this.$element=a(t),this.dragging=!1,this.dragdata={},this.instance=null,this.settings=a.extend({},r.DEFAULTS,e),this._init()};r.DEFAULTS={handle:null},r.prototype={_init:function(){this.instance=a("<div/>").CFW_getID("cfw-drag"),this._reset(),this._dragStartOn(),this.$element.CFW_trigger("init.cfw.drag")},dispose:function(){this.$element[0].detachEvent&&this.$element[0].detachEvent("ondragstart",this._dontStart),this._dragStartOff(),this.$element.removeData("cfw.drag"),this.$element=null,this.dragging=null,this.dragdata=null,this.instance=null,this.settings=null},_dragStartOn:function(){this.$element.on("mousedown.cfw.dragstart touchstart.cfw.dragstart MSPointerDown.cfw.dragstart",this._dragStart.bind(this)),this.$element[0].attachEvent&&this.$element[0].attachEvent("ondragstart",this._dontStart)},_dragStartOff:function(t){t&&t.preventDefault(),a(document).off(".cfw.dragin."+this.instance),this.$element.off(".cfw.dragstart")},_dragStart:function(t){var e,i=this;this.settings.handle&&!a(t.target).closest(this.settings.handle,t.currentTarget).not(".disabled, :disabled").length||this.$element.is(".disabled, :disabled")||(this._dragStartOff(t),this.dragging=!0,a(document).off(".cfw.dragin."+this.instance).on("mousemove.cfw.dragin."+this.instance+" touchmove.cfw.dragin."+this.instance+" MSPointerMove.cfw.dragin."+this.instance,function(t){i._drag(t)}).on("mouseup.cfw.dragin."+this.instance+" touchend.cfw.dragin."+this.instance+" MSPointerUp.cfw.dragin."+this.instance+" MSPointerCancel.cfw.dragin."+this.instance,function(){i._dragEnd(t)}),e=this._coordinates(t),this.dragdata=e,this.dragdata.originalX=t.currentTarget.offsetLeft,this.dragdata.originalY=t.currentTarget.offsetTop,e=this._properties(e,this.dragdata),this.$element.CFW_trigger("dragStart.cfw.drag",e))},_drag:function(t){this.dragging&&(t.preventDefault(),t=this._coordinates(t),t=this._properties(t,this.dragdata),this.$element.CFW_trigger("drag.cfw.drag",t))},_dragEnd:function(t){t.preventDefault(),this.dragging=!1,this.dragStart=null,a(document).off(".cfw.dragin."+this.instance);t=this._coordinates(t),t=this._properties(t,this.dragdata);this.$element.CFW_trigger("dragEnd.cfw.drag",t),this._reset(),this._dragStartOn()},_reset:function(){this.dragging=!1,this.dragdata.pageX=null,this.dragdata.pageY=null},_coordinates:function(t){var e={},i=(t=t.originalEvent?t.originalEvent:t).touches;return e.pageX=(i?i[0]:t).pageX,e.pageY=(i?i[0]:t).pageY,e},_properties:function(t,e){var i={};return i.startX=e.pageX,i.startY=e.pageY,i.pageX=t.pageX,i.pageY=t.pageY,i.deltaX=t.pageX-e.pageX,i.deltaY=t.pageY-e.pageY,i.originalX=e.originalX,i.originalY=e.originalY,i.offsetX=i.originalX+i.deltaX,i.offsetY=i.originalY+i.deltaY,i},_dontStart:function(){return!1}},a.fn.CFW_Drag=function(s){var n=[].splice.call(arguments,1);return this.each(function(){var t=a(this),e=t.data("cfw.drag"),i="object"==typeof s&&s;!e&&/dispose/.test(s)||(e||t.data("cfw.drag",e=new r(this,i)),"string"==typeof s&&e[s].apply(e,n))})},a.fn.CFW_Drag.Constructor=r}(jQuery),function(a){"use strict";var r=function(t,e){this.$element=a(t),this.$target=null,this.$triggers=null,this.inTransition=!1;t=this.$element.CFW_parseData("collapse",r.DEFAULTS);this.settings=a.extend({},r.DEFAULTS,t,e),this._init()};r.DEFAULTS={target:null,animate:!0,follow:!1,horizontal:!1},r.prototype={_init:function(){var e,t=this.$element.CFW_getSelectorFromChain("collapse",this.settings.target);t&&(this.$target=a(t),this.$element.attr({"data-cfw":"collapse","data-cfw-collapse-target":t}),this.$triggers=a('[data-cfw="collapse"][data-cfw-collapse-target="'+t+'"],[data-cfw="collapse"][href="'+t+'"]'),e="",this.$target.each(function(){var t=a(this).CFW_getID("cfw-collapse");e+=t+" "}),this.$triggers.attr("aria-controls",a.trim(e)),t=this.dimension(),this.$triggers.hasClass("open")?(this.$triggers.attr("aria-expanded","true"),this.$target.addClass("collapse in")[t]("")):(this.$triggers.attr("aria-expanded","fal
10se"),this.$target.addClass("collapse")),this.settings.horizontal&&this.$target.addClass("width"),this.$element.on("click.cfw.collapse",this.toggle.bind(this)).CFW_trigger("init.cfw.collapse"))},toggle:function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault(),this.$element.hasClass("open")||this.$target.hasClass("in")?this.hide():this.show()},dimension:function(){return this.$target.hasClass("width")||this.settings.horizontal?"width":"height"},show:function(t){var e,i,s=this;void 0===t&&(t=this.settings.follow),this.inTransition||this.$target.hasClass("in")||this.$element.CFW_trigger("beforeShow.cfw.collapse")&&(e=this.dimension(),this.inTransition=!0,this.$triggers.addClass("open"),this.$target.removeClass("collapse")[e](0),this.settings.animate&&this.$target.addClass("collapsing"),i="scroll"+(e[0].toUpperCase()+e.slice(1)),this.$target.eq(0).CFW_transition(function(){s.$target.each(function(){a(this)[e](a(this)[0][i])})},function(){s.$triggers.attr("aria-expanded","true"),s.$target.removeClass("collapsing")[e](""),s.$target.addClass("collapse in"),s.$target.CFW_mutateTrigger(),s.inTransition=!1,t&&(void 0===s.$target.first().attr("tabindex")&&s.$target.first().attr("tabindex","-1"),s.$target.eq(0).trigger("focus")),s.$element.CFW_trigger("afterShow.cfw.collapse")}))},hide:function(t){var e,i=this;void 0===t&&(t=this.settings.follow),!this.inTransition&&this.$target.hasClass("in")&&this.$element.CFW_trigger("beforeHide.cfw.collapse")&&(e=this.dimension(),this.inTransition=!0,this.$triggers.removeClass("open"),this.$target.each(function(){var t=a(this);return t[e](t[e]())[0].offsetHeight}),this.$target.removeClass("collapse in"),this.settings.animate&&this.$target.addClass("collapsing"),this.$target.eq(0).CFW_transition(function(){i.$target[e]("")},function(){i.$triggers.attr("aria-expanded","false"),i.$target.removeClass("collapsing in").addClass("collapse").CFW_mutateTrigger(),i.inTransition=!1,t&&i.$element.trigger("focus"),i.$element.CFW_trigger("afterHide.cfw.collapse")}))},animDisable:function(){this.settings.animate=!1},animEnable:function(){this.settings.animate=!0},dispose:function(){this.$element.off(".cfw.collapse").removeData("cfw.collapse"),this.$element=null,this.$target=null,this.$triggers=null,this.inTransition=null,this.settings=null}},a.fn.CFW_Collapse=function(s){var n=[].splice.call(arguments,1);return this.each(function(){var t=a(this),e=t.data("cfw.collapse"),i="object"==typeof s&&s;e||t.data("cfw.collapse",e=new r(this,i)),"string"==typeof s&&e[s].apply(e,n)})},a.fn.CFW_Collapse.Constructor=r}(jQuery),function(l){"use strict";var a=function(t,e){this.$element=l(t),this.$target=null,this.instance=null,this.timerHide=null,this.hasContainer={helper:null,parent:null,previous:null},this.inNavbar=this._insideNavbar(),this.popper=null;t=this.$element.CFW_parseData("dropdown",a.DEFAULTS);this.settings=l.extend({},a.DEFAULTS,t,e),this.settings.isTouch=l.CFW_isTouch,this.c=a.CLASSES,this._init()};function i(t){if(!t||3!==t.which)for(var e=l('[data-cfw="dropdown"]'),i=e.length;i--;){var s=l(e[i]),n=s.data("cfw.dropdown");if(n){var a=n.$target;if(null!==a&&a.hasClass("open")){if(t){if("keyup"===t.type&&9!==t.which)continue;if("click"===t.type&&(/label|input|textarea/i.test(t.target.tagName)||this===t.target||l(t.target).is('[data-cfw="dropdown"]')||l(t.target).closest(".dropdown-back").length))continue;if("mouseenter"===t.type&&(this===t.target||a[0].contains(t.target)))continue}var r={relatedTarget:s[0]};t&&"click"===t.type&&(r.clickEvent=t),s.CFW_trigger("beforeHide.cfw.dropdown",r)&&(!n.settings.isSubmenu&&l.CFW_isTouch&&l("body").children().off("mouseover",null,l.noop),s.attr("aria-expanded","false").removeClass("open"),a.removeClass("open"),s.CFW_Dropdown("containerReset").CFW_Dropdown("popperReset"),s.CFW_trigger("afterHide.cfw.dropdown",r))}}}}a.CLASSES={isMenu:"dropdown-menu",hasSubMenu:"dropdown-submenu",showSubMenu:"show-menu",backLink:"dropdown-back",hover:"dropdown-hover"},a.DEFAULTS={target:null,isSubmenu:!1,delay:350,hover:!1,backlink:!1,backtop:!1,backtext:"Back",container:!1,reference:"toggle",boundary:"scrollParent",flip:!0,display:"dynamic",popperConfig:null},a.prototype={_init:function(){var n=this;if("object"==typeof this.settings.reference&&!this._isElement(this.settings.reference)&&"function"!=typeof this.settings.reference.getBoundingClientRect)throw new Error('CFW_Dropdown: Option "reference" provided type "object" without a required "getBoundingClientRect" method.');var t=this.$element.CFW_getSelectorFromChain("dropdown",this.settings.target),t=l(t);(t=!t.length?l(this.$element.next(".dropdown-menu, ul, ol")[0]):t).length&&(this.$target=t,this._useContainer()&&(this.hasContainer={parent:this.$target.parent(),previous:this.$target.prev()}),this.$element.attr("data-cfw","dropdown"),this.instance=this.$element.CFW_getID("cfw-dropdown"),this.$target.CFW_getID("cfw-dropdown"),this.$element.attr("aria-expanded","fal
10se"),this.$target.attr("aria-labelledby",this.instance).addClass(this.c.isMenu),this.$element.on("click.cfw.dropdown",function(t){t.preventDefault(),t.stopPropagation(),n.toggle(t)}),this._addBacklink(),this.$target.children("li").children("ul, ol").parent().each(function(){var t=l(this),e=t.children("a").eq(0),i=t.children("ul, ol").eq(0),s={};e.length&&i.length&&(t.addClass(n.c.hasSubMenu),"A"===e[0].nodeName&&e.attr("role","button"),s={isSubmenu:!0,target:i.CFW_getID("cfw-dropdown")},s=l.extend({},n.settings,s),e.CFW_Dropdown(s));s=i.closest(".dropreverse, .dropend, .dropstart");s.hasClass("dropreverse")||s.hasClass("dropstart")?i.addClass("dropdown-subalign-reverse"):i.addClass("dropdown-subalign-forward")}),this.$target.find(".dropdown-divider").attr("role","separator"),this._navEnableKeyboard(),!this.settings.isTouch&&this.settings.hover&&this._navEnableHover(),this.$element.CFW_trigger("init.cfw.dropdown"))},_findMenuItems:function(){var t=this.$target.hasClass("open"),e=this.$target;return(e=!t&&this.settings.isSubmenu?this.$element.closest(".dropdown-menu"):e).children("li").find("a, .dropdown-item, button, input, textarea").filter(":not(.disabled, :disabled):not(:has(input)):not(:has(textarea)):visible")},_addBacklink:function(){var t=this;(this.settings.backlink&&this.settings.backtop&&!this.settings.isSubmenu||this.settings.backlink&&this.settings.isSubmenu)&&l('<li class="'+this.c.backLink+'"><button type="button" class="dropdown-item">'+this.settings.backtext+"</button></li>").prependTo(this.$target).children("button").on("click.cfw.dropdown.modeClick",function(){t.hide(),t.$element.focus()})},_navEnableKeyboard:function(){var e=this;l.each([this.$element,this.$target],function(){l(this).on("keydown.cfw.dropdown",function(t){e._actionsKeydown(t)})})},_actionsKeydown:function(t){var e=this.$target.hasClass("open"),i=new RegExp("^(38|39|40|37|27|32|9)$"),s=new RegExp("^(38|39|40|37)$"),n=/input|textarea/i.test(t.target.tagName),a=n&&/checkbox|radio/i.test(l(t.target).prop("type")),r=/button/i.test(t.target.tagName),o=/button/i.test(l(t.target).attr("role"));if(i.test(t.which)&&(!n&&!r||32!==t.which)&&(!n||a||!s.test(t.which))&&(e||27!==t.which&&37!==t.which||!l(t.target).is(this.$element))){n=null,s=-1;if(9===t.which){if(null===this.hasContainer.helper)return;if(!(n=this._findMenuItems()).length)return;if((s=n.index(document.activeElement))<0&&a&&(s=n.index(l(t.target).closest(".dropdown-item")[0])),!e||!l(t.target).is(this.$element)||t.shiftKey)return t.shiftKey&&0===s?(this.$element.trigger("focus"),t.preventDefault(),void t.stopPropagation()):t.shiftKey||s!==n.length-1?void 0:void this.$element.trigger("focus");t.which=40}t.preventDefault(),t.stopPropagation(),27===t.which&&(this.hide(),this.$element.trigger("focus")),this.$element.is(".disabled, :disabled")||(o&&32===t.which?this.toggle(t):(38!==t.which&&40!==t.which||e||this.settings.isSubmenu||this.show(),39===t.which&&!e&&this.settings.isSubmenu&&this.show(),37===t.which&&(this.hide(),this.$element.trigger("focus")),(n=this._findMenuItems()).length&&((s=n.index(document.activeElement))<0&&a&&(s=n.index(l(t.target).closest(".dropdown-item")[0])),38===t.which&&0<s&&s--,40===t.which&&s<n.length-1&&s++,~s||(s=0),n.eq(s).trigger("focus"))))}},_navEnableHover:function(){var e=this;this.settings.isTouch||l.each([this.$element,this.$target],function(){l(this).on("mouseenter.cfw.dropdown.modeHover",function(t){e._actionsHoverEnter(t)}),l(this).on("mouseleave.cfw.dropdown.modeHover",function(t){e._actionsHoverLeave(t)})})},_navDisableHover:function(){this.$element.off(".cfw.dropdown.modeHover"),this.$target.off(".cfw.dropdown.modeHover")},_actionsHoverEnter:function(t){clearTimeout(this.timerHide),i(t),this.show()},_actionsHoverLeave:function(t){var e=this,t=l(t.target);clearTimeout(this.timerHide),(t.is(this.$element)||t.is(this.$target)||this.$target[0].contains(t[0]))&&(this.timerHide=setTimeout(function(){e.timerHide=null,e.hide()},this.settings.delay))}
vendor: 4,875 bytes, line 10
10,_insideNavbar:function(){return 0<this.$element.closest(".navbar-collapse").length},_useContainer:function(){return!this.settings.isSubmenu&&this.settings.container},_containerPlacement:function(){var t=this.$element[0].getBoundingClientRect(),t=l.extend({},t,this.$element.offset());this.hasContainer.helper.css({top:t.top,left:t.left,width:t.width,height:t.height})},_containerSet:function(){this._useContainer()&&(this.hasContainer.helper=l(document.createElement("div")),this.hasContainer.helper.appendTo(this.settings.container).append(this.$target).addClass("dropdown-container"),l(window).on("resize.cfw.dropdown."+this.instance,this._containerPlacement.bind(this)),this._containerPlacement())},containerReset:function(){this._useContainer()&&(l(window).off("resize.cfw.dropdown."+this.instance),this.hasContainer.previous.length?this.$target.insertAfter(l(this.hasContainer.previous)):this.$target.appendTo(l(this.hasContainer.parent)),null!==this.hasContainer.helper&&(this.hasContainer.helper.off("keydown.cfw.dropdown").off("focusout.cfw.dropdown"),this.hasContainer.helper.remove()),this.hasContainer.helper=null)},_isElement:function(t){return(t[0]||t).nodeType},_getReference:function(){var t=this.$element[0];return null!==this.hasContainer.helper&&(t=this.hasContainer.helper),"parent"===this.settings.reference?t=this.$element.parent().get(0):this._isElement(this.settings.reference)?(t=this.settings.reference,void 0!==this.settings.reference.jquery&&(t=this.settings.reference[0])):"object"==typeof this.settings.reference&&(t=this.settings.reference),t},_getPlacement:function(){var t=window.getComputedStyle(this.$element[0],null).getPropertyValue("direction").toLowerCase(),e=Boolean("rtl"===t),i={AUTO:"auto",TOP:e?"top-end":"top-start",TOPEND:e?"top-start":"top-end",FORWARD:e?"left-start":"right-start",FORWARDEND:e?"left-end":"right-end",BOTTOM:e?"bottom-end":"bottom-start",BOTTOMEND:e?"bottom-start":"bottom-end",REVERSE:e?"right-start":"left-start",REVERSEEND:e?"right-end":"left-end"},s=this.$target.closest(".dropup, .dropreverse, .dropstart, .dropend"),n=s.hasClass("dropup")?"TOP":"BOTTOM",a=s.hasClass("dropreverse")?"END":"",t=s.hasClass("dropstart")||s.hasClass("dropreverse")?"REVERSE":"FORWARD",e=s.hasClass("dropup")?"END":"",a=i[n+a];return(s.hasClass("dropstart")||s.hasClass("dropend"))&&(a=i[t+e]),a=this.settings.isSubmenu?i[t+e]:a},_getPopperConfig:function(){var t={placement:this._getPlacement(),modifiers:{flip:{enabled:this.settings.flip,behavior:"flip"},preventOverflow:{boundariesElement:this.settings.boundary}}};return l.extend(!0,t,this.settings.popperConfig)},popperReset:function(){this.popper&&this.popper.destroy()},_popperLocate:function(){var t=Boolean("static"===window.getComputedStyle(this.$target[0],null).getPropertyValue("position").toLowerCase());if("dynamic"===this.settings.display&&!t){if("undefined"==typeof Popper)throw new TypeError("Figurations's Dropdown widget requires Popper (https://popper.js.org)");this.popper=new Popper(this._getReference(),this.$target[0],this._getPopperConfig())}},toggle:function(t){var e;t&&(t.preventDefault(),t.stopPropagation()),this.$element.is(".disabled, :disabled")||(e=this.$target.hasClass("open"),i(t),e?this.hide():this.show())},show:function(){var t,e=this;this.$element.is(".disabled, :disabled")||this.$target.hasClass("open")||(t={relatedTarget:this.$element[0]},this.$element.CFW_trigger("beforeShow.cfw.dropdown",t)&&(this._containerSet(),this.$element.attr("aria-expanded","true").addClass("open"),this.$target.addClass("open").find("li").redraw(),l(document).on("focusin.cfw.dropdown."+this.instance,function(t){e.$element[0]===t.target||e.$target.has(t.target).length||e.hide()}),this._popperLocate(),this.$element.CFW_trigger("afterShow.cfw.dropdown",t)))},hide:function(){var t;!this.$element.is(".disabled, :disabled")&&this.$target.hasClass("open")&&(t={relatedTarget:this.$element[0]},this.$element.CFW_trigger("beforeHide.cfw.dropdown",t)&&(l(document).off("focusin.cfw.dropdown."+this.instance),this.$element.attr("aria-expanded","false").removeClass("open"),this.$target.removeClass("open"),this.containerReset(),this.popperReset(),this.$element.CFW_trigger("afterHide.cfw.dropdown",t)))},dispose:function(){for(var t=this.$target.children("li").children("ul, ol").children("a"),e=t.length;e--;)t[e].eq(0).CFW_Dropdown("dispose");this._navDisableHover(),this.hide(),l(document).off(".cfw.dropdown."+this.instance),l(window).off(".cfw.dropdown."+this.instance),this.$target.find("."+this.c.backLink).remove(),this.$target.off(".cfw.dropdown"),this.$element.off(".cfw.dropdown").removeData("cfw.dropdown"),this.$element=null,this.$target=null,this.instance=null,this.timerHide=null,this.hasContainer=null,this.inNavbar=null,this.settings=null,this.popper&&this.popper.destroy(),this.popper=null}},l.fn.redraw=function(){return this.offsetHeight}
10,l.fn.CFW_Dropdown=function(s){var n=[].splice.call(arguments,1);return this.each(function(){var t=l(this),e=t.data("cfw.dropdown"),i="object"==typeof s&&s;e||t.data("cfw.dropdown",e=new a(this,i)),"string"==typeof s&&e[s].apply(e,n)})},l.fn.CFW_Dropdown.Constructor=a,l(window).ready(function(){l(document).on("click",i)})}(jQuery),function(a){"use strict";var r=function(t,e){this.$element=a(t),this.$target=null,this.$navElm=null;t=this.$element.CFW_parseData("tab",r.DEFAULTS);this.settings=a.extend({},r.DEFAULTS,t,e),this._init()};r.DEFAULTS={target:null,animate:!0},r.prototype={_init:function(){var e=this;this.$navElm=this.$element.closest("ul, ol, nav"),this.$navElm.attr("role","tablist");var t=a(this.settings.target);t.length||(t=a(this.$element.attr("href"))),this.$target=a(t),this.$target.length&&(this.$element.attr("data-cfw","tab"),t=this.$element.CFW_getID("cfw-tab"),this.$target.attr({role:"tabpanel","aria-labelledby":t}),this.settings.animate?this.animEnable():this.animDisable(),this.$element.attr({tabindex:-1,role:"tab","aria-selected":"false","aria-controls":this.$target.attr("id")}),this.$element.parent("li").attr("role","presentation"),this.$element.on("click.cfw.tab",function(t){t.preventDefault(),e.show(t)}),this.$element.on("keydown.cfw.tab",function(t){e._actionsKeydown(t,this)}),this.$element.hasClass("active")&&(this.$element.attr({tabindex:0,"aria-selected":"true"}),this.$target.addClass("active"),this.settings.animate&&this.$target.addClass("in")),this.$navElm.find(".active").length<=0&&(this.$element.addClass("active"),this.$element.attr({tabindex:0,"aria-selected":"true"}),this.$target.addClass("active"),this.settings.animate&&this.$target.addClass("in")),this.$element.CFW_trigger("init.cfw.tab"))},show:function(t){var e,i;t&&t.preventDefault(),this.$element.hasClass("active")||this.$element.hasClass("disabled")||this.$element[0].hasAttribute("disabled")||((e=this.$navElm.find(".active")).length&&(i=e.last().CFW_trigger("beforeHide.cfw.tab",{relatedTarget:this.$element[0]})),t=this.$element.CFW_trigger("beforeShow.cfw.tab",{relatedTarget:e.last()[0]}),i&&t&&(e.length&&e.attr({tabindex:-1,"aria-selected":"false"}),this.$element.attr({tabindex:0,"aria-selected":"true"}),this._activateTab()))},animEnable:function(){this.$target.addClass("fade"),this.$target.hasClass("active")&&this.$target.addClass("in"),this.settings.animate=!0},animDisable:function(){this.$target.removeClass("fade in"),this.settings.animate=!1},_actionsKeydown:function(t,e){var i;new RegExp("^(38|39|40|37)$").test(t.which)&&(t.stopPropagation(),t.preventDefault(),e=(i=a(e).closest('[role="tablist"]').find('[role="tab"]:visible').not(".disabled")).index(i.filter('[aria-selected="true"]')),(38===t.which||37===t.which)&&0<e&&e--,(39===t.which||40===t.which)&&e<i.length-1&&e++,~e||(e=0),i.eq(e).CFW_Tab("show").trigger("focus"))},_activateTab:function(){var t=this,e=this.$navElm.find('[role="tab"]'),i=this.$navElm.find('[role="tab"].active');e.removeClass("active"),e.each(function(){a(this).data("cfw.tab").$target.removeClass("active in")}),this.settings.animate?this.animEnable():this.animDisable(),this.$element.addClass("active"),this.$target.addClass("active");e=function(){i.last().CFW_trigger("afterHide.cfw.tab",{relatedTarget:t.$element[0]}),t.$element.CFW_trigger("afterShow.cfw.tab",{relatedTarget:i.last()[0]}),t.$element.CFW_mutateTrigger(),t.$target.CFW_mutateTrigger()};this.settings.animate?(this.$target.CFW_transition(null,e),a.CFW_reflow(this.$target),this.$target.addClass("in")):e()},dispose:function(){this.$element.off(".cfw.tab").removeData("cfw.tab"),this.$element=null,this.$target=null,this.$navElm=null,this.settings=null}},a.fn.CFW_Tab=function(s){var n=[].splice.call(arguments,1);return this.each(function(){var t=a(this),e=t.data("cfw.tab"),i="object"==typeof s&&s;e||t.data("cfw.tab",e=new r(this,i)),"string"==typeof s&&e[s].apply(e,n)})},a.fn.CFW_Tab.Constructor=r}(jQuery),function(r){"use strict";var o=function(t,e){this.$element=r(t),this.$target=null,this.affixed=null,this.unpin=null,this.pinnedOffset=null;t=this.$element.CFW_parseData("affix",o.DEFAULTS);this.settings=r.extend({},o.DEFAULTS,t,e),this._init()};o.RESET="affix affix-top affix-bottom",o.DEFAULTS={target:window,top:0,bottom:0},o.prototype={_init:function(){this.$element.attr("data-cfw","affix"),this.$target=r(this.settings.target).on("scroll.cfw.affix",this.checkPosition.bind(this)).on("click.cfw.affix",this.checkPositionDelayed.bind(this)),this.$element.CFW_trigger("init.cfw.affix"),this.checkPosition()}
10,getState:function(t,e,i,s){var n=this.$target.scrollTop(),a=this.$element.offset(),r=this.$target.height();if(null!==i&&"top"===this.affixed)return n<i&&"top";if("bottom"===this.affixed)return null!==i?!(n+this.unpin<=a.top)&&"bottom":!(n+r<=t-s)&&"bottom";var o=null===this.affixed,a=o?n:a.top;return null!==i&&n<=i?"top":null!==s&&t-s<=a+(o?r:e)&&"bottom"},getPinnedOffset:function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(o.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t,this.pinnedOffset},checkPositionDelayed:function(){setTimeout(this.checkPosition.bind(this),1)},checkPosition:function(){if(this.$element.is(":visible")){var t=this.$element.height(),e=this.settings.top,i=this.settings.bottom,s=Math.max(r(document).height(),r(document.body).height());"function"==typeof e&&(e=e(this.$element)),"function"==typeof i&&(i=i(this.$element));var n=this.getState(s,t,e,i);if(this.affixed!==n){null!==this.unpin&&this.$element.css({top:"",position:""});var a="affix"+(n?"-"+n:""),e=a+".cfw.affix";if(!this.$element.CFW_trigger(e))return;this.affixed=n,this.unpin="bottom"===n?this.getPinnedOffset():null,this.$element.removeClass(o.RESET).addClass(a).CFW_trigger(e.replace("affix","affixed"))}"bottom"===n&&this.$element.offset({top:s-t-i})}},dispose:function(){this.$target.off(".cfw.affix"),this.$element.removeClass(o.RESET).removeData("cfw.affix"),this.$element=null,this.$target=null,this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.settings=null}},r.fn.CFW_Affix=function(s){var n=[].splice.call(arguments,1);return this.each(function(){var t=r(this),e=t.data("cfw.affix"),i="object"==typeof s&&s;e||t.data("cfw.affix",e=new o(this,i)),"string"==typeof s&&e[s].apply(e,n)})},r.fn.CFW_Affix.Constructor=o}(jQuery),function(o){"use strict";function a(t,e){this._init("tooltip",t,e)}a.DEFAULTS={target:!1,placement:"top",trigger:"hover focus",display:"block",animate:!0,delay:{show:0,hide:100},container:!1,viewport:"scrollParent",padding:0,html:!1,closetext:'<span aria-hidden="true">&times;</span>',closesrtext:"Close",title:"",customClass:"",show:!1,unlink:!1,dispose:!1,template:'<div class="tooltip"><div class="tooltip-body"></div><div class="tooltip-arrow"></div></div>',gpuAcceleration:!0,popperConfig:null},a.prototype={_init:function(t,e,i){if("undefined"==typeof Popper)throw new TypeError("Figurations's Tooltip widget requires Popper (https://popper.js.org)");this.type=t,this.$element=o(e),this.$target=null,this.$arrow=null,this.$focusFirst=null,this.$focusLast=null,this.instance=null,this.isDialog=!1,this.follow=!1,this.eventTypes=null,this.delayTimer=null,this.inTransition=null,this.closeAdded=!1,this.activate=!1,this.hoverState=null,this.dynamicTip=!1,this.inserted=!1,this.flags={keyShift:!1,keyTab:!1},this.popper=null,this.settings=this.getSettings(i),this.inState={click:!1,hover:!1,focus:!1},this.disposeOnHide=this.settings.dispose,this.unlinkOnHide=this.settings.unlink,this.$element.attr("data-cfw",this.type);i=this.$element.CFW_getSelectorFromChain(this.type,this.settings.target);null!==i?this.$target=o(i):this.fixTitle(),this.settings.show&&"manual"!==this.settings.trigger&&(this.settings.trigger="click"),this.eventTypes=this.settings.trigger.split(" "),this.bindTip(!0),this.$target&&this.$target.data("cfw."+this.type,this),this.settings.show&&(this.activate=!0,this.inState.click=!0,this.show()),this.$element.CFW_trigger("init.cfw."+this.type)},getDefaults:function(){return a.DEFAULTS},getSettings:function(t){var e=this.$element.CFW_parseData(this.type,this.getDefaults()),t=o.extend({},this.getDefaults(),e,t);return t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},createTip:function(){return o(this.settings.template)},fixTitle:function(){var t=this.$element,e=void 0!==t.attr("title")?t.attr("title"):null;!e&&"string"==typeof t.attr("data-cfw-"+this.type+"-original-title")||(t.attr("data-cfw-"+this.type+"-original-title",e||""),e&&void 0===t.attr("aria-label")&&!t[0].textContent&&t.attr("aria-label",e||""),t.attr("title",""))},getTitle:function(){var t=this.$element,e=this.settings;return"function"==typeof e.title?e.title.call(t[0]):e.title||t.attr("data-cfw-"+this.t
10ype+"-original-title")},setContent:function(){var t,e=this.$target,i=e.find(".tooltip-body");this.dynamicTip&&(t=this.getTitle(),this.settings.html?i.html(t):i.text(t)),e.removeClass("fade in")},linkTip:function(){this.instance=this.$element.CFW_getID("cfw-"+this.type),this.targetID=this.$target.CFW_getID("cfw-"+this.type);var t="tooltip";"tooltip"!==this.type&&this.isDialog&&(t="dialog"),this.$target.attr({role:t,"aria-hidden":"true",tabindex:-1})},bindTip:function(t){for(var e=this,i=this.eventTypes.length;i--;){var s,n=this.eventTypes[i];"click"!==n&&"manual"!==n||(this.isDialog=!0),"click"===n?(this.$element.off("click.cfw."+this.type).on("click.cfw."+this.type,this.toggle.bind(this)),null===this.$target||this.closeAdded||this.$target.find('[data-cfw-dismiss="'+this.type+'"]').length||(o('<button type="button" class="close" data-cfw-dismiss="'+this.type+'" aria-label="'+this.settings.closesrtext+'">'+this.settings.closetext+"</button>").prependTo(this.$target),this.closeAdded=!0)):"manual"!==n&&(s="hover"===n?"mouseenter":"focusin",n="hover"===n?"mouseleave":"focusout",t?(this.$element.on(s+".cfw."+this.type,this.enter.bind(this)),this.$element.on(n+".cfw."+this.type,this.leave.bind(this))):(this.$target.off(".cfw."+this.type),this.$target.on(s+".cfw."+this.type,this.enter.bind(this)),this.$target.on(n+".cfw."+this.type,this.leave.bind(this))))}this.$target&&(this.$target.off("keydown.cfw."+this.type+".close").on("keydown.cfw."+this.type+".close",function(t){27===t.which&&(t.stopPropagation(),t.preventDefault(),0<o(".close",e.$target).length?o(".close",e.$target).eq(0).trigger("click"):e.hide(!0))}),this.$target.off("click.dismiss.cfw."+this.type,'[data-cfw-dismiss="'+this.type+'"]').on("click.dismiss.cfw."+this.type,'[data-cfw-dismiss="'+this.type+'"]',function(t){t&&t.preventDefault(),e.follow=!0,e.hide()}))},toggle:function(t){t?(t.preventDefault(),this.inState.click=!this.inState.click,this.follow=!0,this._isInState()?this.enter():this.leave()):(t=this.settings.delay,this.$target&&this.$target.hasClass("in")?(this.settings.delay.hide=0,this.leave()):(this.settings.delay.show=0,this.enter()),this.settings.delay=t)},enter:function(t){var e;t&&(this.inState["focusin"===t.type?"focus":"hover"]=!0),this.$target&&this.$target.hasClass("in")||"in"===this.hoverState?this.hoverState="in":(clearTimeout(this.delayTimer),this.hoverState="in",this.settings.delay.show?(e=this).delayTimer=setTimeout(function(){"in"===e.hoverState&&e.show()},this.settings.delay.show):this.show())},leave:function(t){var e;t&&(this.inState["focusout"===t.type?"focus":"hover"]=!1),this._isInState()||(clearTimeout(this.delayTimer),this.hoverState="out",this.settings.delay.hide?(e=this).delayTimer=setTimeout(function(){"out"===e.hoverState&&e.hide()},this.settings.delay.hide):this.hide())},show:function(){clearTimeout(this.delayTimer);var i=this;if(!this.inTransition&&(!this.$target||!this.$target.hasClass("in"))&&(this.activate||this.$element.CFW_trigger("beforeShow.cfw."+this.type))){if(this.inTransition=!0,!this.$target){var t=this.createTip();if(t.length<=0)return;this.dynamicTip=!0,this.$target=t}if(1!==this.$target.length)throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");this.$target.data("cfw."+this.type,this),this.linkTip(),this.bindTip(!1),this.setContent(),this.$target.css("display",this.settings.display),this.settings.animate&&this.$target.addClass("fade");t="function"==typeof this.settings.customClass?this.settings.customClass():this.settings.customClass;t&&this.$target.addClass(t),this.locateTip(),this.settings.container&&(this.$target.off(".cfw."+this.type+".keyflag").on("keydown.cfw."+this.type+".keyflag",function(t){i._tabSet(t)}).on("keyup.cfw."+this.type+".keyflag",function(t){9===t.which&&i._tabReset()}),this.$focusFirst||(this.$focusFirst=o(document.createElement("span")).addClass(this.type+"-focusfirst").attr("tabindex",0).prependTo(this.$target)),this.$focusFirst&&this.$focusFirst.off("focusin.cfw."+this.type+".focusFirst").on("focusin.cfw."+this.type+".focusFirst",function(t){t.stopPropagation(),t.preventDefault(),i.flags.keyTab&&(i.flags.keyShift?i.$element.trigger("focus"):i._tabNext(i.$focusFirst[0],i.$target)),i._tabReset()}),this.$focusLast||(this.$focusLast=o(document.createElement("span")).addClass(this.type+"-focuslast").attr("tabindex",0).appendTo(this.$target)),this.$focusLast&&this.$focusLast.off("focusin.cfw."+this.type+".focusLast").on("focusin.cfw."+this.type+".focusLast",function(t){t.stopPropagation(),t.preventDefault(),(i.$target.is(t.relatedTarget)||i.$target.has(t.relatedTarget).length)&&i._tabNext(i.$element[0])}),this.$element.off("focusin.cfw."+this.type+".focusStart").on("focusin.cfw."+this.type+".focusStart",function(t){var e;i.$target.hasClass("in")&&(i.$target.is(t.relatedTarget)||i.$target.has(t.relatedTarget).length||(e=i._tabItems(),(t=(t=o(t.relatedTarget)).closest(".tooltip, .popover").length?null:t)&&t.length&&e.index(i.$element)<e.index(t)&&i._tabPrev(i.$focusLast[0],i.$target)))}).off("keydown.cfw."+this.type+".focusStart").on("keydown.cfw."+this.type+".focusStart",function(t){i.$target.hasClass("in")&&(i._tabSet(t),i.flags.keyTab&&(i.flags.keyShift||i._tabItems(i.$target).length&&(t.stopPropagation(),t.preventDefault(),i._tabNext(i.$focusFirst[0],i.$target))),i._tabReset())})),o.CFW_isTouch&&o("body").children().on("mouseover",null,o.noop),this.$target.CFW_transition(null,this._showComplete.bind(this))}},hide:function(t){clearTimeout(this.delayTimer),this.$target&&((t=void 0===t?!1:t)?this._hideComplete():!this.inTransition&&this.$target.hasClass("in")&&this.$element.CFW_trigger("beforeHide.cfw."+this.type)&&(this.inTransition=!0,this.$target.removeClass("in"),this.$target.CFW_transition(null,this._hideComplete.bind(this))))},unlink:function(t){var e=this;void 0===t&&(t=!1),clearTimeout(this.delayTimer),this.$element.CFW_trigger("beforeUnl
10ink.cfw."+this.type),this.$target&&this.$target.hasClass("in")?(this.$element.one("afterHide.cfw."+this.type,function(){e._unlinkComplete()}),this.hide(t)):this._unlinkComplete()},_unlinkComplete:function(){var t=this.$element,e=this.type;this.$target&&this.$target.off(".cfw."+this.type).removeData("cfw."+this.type),this.$element.off(".cfw."+this.type).removeAttr("data-cfw").removeData("cfw."+this.type),this.$element=null,this.$target=null,this.$arrow=null,this.$focusFirst=null,this.$focusLast=null,this.instance=null,this.settings=null,this.type=null,this.isDialog=null,this.follow=null,this.eventTypes=null,this.delayTimer=null,this.inTransition=null,this.closeAdded=null,this.activate=null,this.hoverState=null,this.inState=null,this.dynamicTip=null,this.inserted=null,this.flags=null,this.popper&&this.popper.destroy(),this.popper=null,this._unlinkCompleteExt(),t.CFW_trigger("afterUnlink.cfw."+e)},_unlinkCompleteExt:function(){},dispose:function(){var t=this.type,e=this.$element,i=this.$target;o(document).one("afterUnlink.cfw."+this.type,this.$element,function(){i&&i.remove(),e.CFW_trigger("dispose.cfw."+t,{relatedTarget:i})}),this.unlink()},_insertTip:function(t){var e;this.inserted||((e=this.$target).detach(),null===o().CFW_findShadowRoot(this.$element[0])||this.settings.container||(this.settings.container="body"),"object"==typeof t&&(this.settings.container="body",e.appendTo(this.settings.container)),this.settings.container?e.appendTo(this.settings.container):e.insertAfter(this.$element),this.inserted=!0,this.$element.CFW_trigger("inserted.cfw."+this.type))},locateUpdate:function(){null!==this.popper&&this.popper.scheduleUpdate()},locateTip:function(){var t="function"==typeof this.settings.placement?this.settings.placement.call(this,this.$target[0],this.$element[0]):this.settings.placement;if(this._insertTip(t),"object"==typeof t)return this.$target.offset(t),void this.$target.addClass("in");var e=/\s?auto?\s?/i,i=e.test(this.settings.placement);(t=this.settings.placement.replace(e,"")).trim().length||(t="auto");t=this._getAttachment(t);this._addAttachmentClass(t),this.$target.addClass("in"),this.popper=new Popper(this.$element[0],this.$target[0],this._getPopperConfig(t,i))},_showComplete:function(){var t=this,e=this.hoverState;this.hoverState=null,this.$target.removeAttr("aria-hidden").CFW_mutateTrigger(),this.$target.attr("data-cfw-mutate","").CFW_mutationListen().on("mutate.cfw.mutate",function(){t.locateUpdate()}),this.$element.attr("data-cfw-mutate","").CFW_mutationListen().on("mutate.cfw.mutate",function(){o(this).is(":hidden")&&t.hide(!0)}),this.isDialog&&this.follow&&(this.$target.trigger("focus"),this.follow=!1),this.inTransition=!1,t.$element&&t.$element.attr("aria-describedby",t.targetID),this._showExt(),this.activate||this.$element.CFW_trigger("afterShow.cfw."+this.type),this.activate=!1,"out"===e&&this.leave()},_showExt:function(){},_hideComplete:function(){this._cleanTipClass(),this.$element.off(".cfw."+this.type+".focusStart").off("mutate.cfw.mutate").removeAttr("aria-describedby").removeAttr("data-cfw-mutate").CFW_mutationIgnore(),this.$target.css("display","none").off(".cfw."+this.type).off("mutate.cfw.mutate").removeClass("in").attr("aria-hidden",!0).removeAttr("data-cfw-mutate").CFW_mutationIgnore(),this.$focusFirst&&this.$focusFirst.off(".cfw."+this.type+".focusFirst"),this.$focusLast&&this.$focusLast.off(".cfw."+this.type+".focusLast"),o.CFW_isTouch&&o("body").children().off("mouseover",null,o.noop),o(document).off(".cfw."+this.type+"."+this.instance),o(window).off(".cfw."+this.type+"."+this.instance),this.inState={click:!1,hover:!1,focus:!1},this.hoverState=null,this.inTransition=!1,this.isDialog&&(this.$target.attr("tabindex",-1),this.follow&&this.$element.trigger("focus")),this.follow=!1,"in"!==this.hoverState&&this.dynamicTip&&this._removeDynamicTip(),this.popper&&this.popper.destroy(),this._hideExt(),this.$element.CFW_trigger("afterHide.cfw."+this.type),this.disposeOnHide?this.dispose():this.unlinkOnHide&&this.unlink()},_hideExt:function(){},_removeDynamicTip:function(){this._removeDynamicTipExt(),this.dynamicTip=!1,this.inserted=!1,this.closeAdded=!1,this.$arrow=null,this.$focusFirst=null,this.$focusLast=null},_removeDynamicTipExt:function(){this.$target.remove(),this.$target=null},_cleanTipClass:function(){var t=new RegExp("(^|\\s)cfw-"+this.t
10ype+"\\S+","g");if(this.$target){var e=this.$target[0].className.match(t);if(null!==e)for(var i=e.length;i--;)this.$target[0].classList.remove(e[i].trim())}},_handlePopperPlacementChange:function(t){this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement))},_addAttachmentClass:function(t){this.$target&&this.$target.addClass("cfw-"+this.type+"-"+t)},_isElement:function(t){return(t[0]||t).nodeType},_getViewport:function(){var t=this.settings.viewport;"function"==typeof t&&(t=this.settings.viewport.call(this,this.$element));var e=o(t);return t=this._isElement(e)?e[0]:t},_getAttachment:function(t){if(this.$element){var e=window.getComputedStyle(this.$element[0],null).getPropertyValue("direction").toLowerCase(),e=Boolean("rtl"===e);return{AUTO:"auto",TOP:"top",FORWARD:e?"left":"right",RIGHT:"right",BOTTOM:"bottom",REVERSE:e?"right":"left",LEFT:"left"}[t.toUpperCase()]}return a.DEFAULTS.placement},_getPopperConfig:function(t,e){var i=this,e={placement:t,modifiers:{flip:{enabled:e,behavior:"flip"},arrow:{element:"."+this.type+"-arrow"},preventOverflow:{padding:this.settings.padding,boundariesElement:this._getViewport()},computeStyle:{gpuAcceleration:this.settings.gpuAcceleration}},onCreate:function(t){t.originalPlacement!==t.placement&&i._handlePopperPlacementChange(t)},onUpdate:function(t){i._handlePopperPlacementChange(t)}};return o.extend(!0,e,this.settings.popperConfig)},_isInState:function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},_tabSet:function(t){this._tabReset(),9===t.which&&(this.flags.keyTab=!0,t.shiftKey&&(this.flags.keyShift=!0))},_tabReset:function(){this.flags={keyShift:!1,keyTab:!1}},_tabPrev:function(t,e){var i=this._tabItems(e),e=i.length-1;1!==o(t).length||0<(t=i.index(t))&&(e=t-1),i.eq(e).trigger("focus")},_tabNext:function(t,e){var i=this,s=i._tabItems(e),n=-1;1!==o(t).length||(t=s.index(t))+1<s.length&&(n=t+1),void 0===(s=void 0===e?s.filter(function(){return!o.contains(i.$target[0],this)}):s)[n]?document.activeElement.blur():s.eq(n).trigger("focus")},_focusable:function(t,e){var i,s,n,a,r=t.nodeName.toLowerCase();return"area"===r?(s=(i=t.parentNode).name,!(!t.href||!s||"map"!==i.nodeName.toLowerCase())&&(0<(s=o('img[usemap="#'+s+'"]')).length&&s.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(r)?(n=!t.disabled)&&(a=o(t).closest("fieldset")[0])&&(n=!a.disabled):n="a"===r&&t.href||e,n&&o(t).is(":visible"))},_tabItems:function(t){var i=this;return(t=void 0===t?o(document):t).find("*").filter(function(){var t=o(this).attr("tabindex"),e=isNaN(t);return(null===i.$focusFirst||this!==i.$focusFirst[0])&&((null===i.$focusLast||this!==i.$focusLast[0])&&((e||0<=t)&&i._focusable(this,!e)))})}},o.fn.CFW_Tooltip=function(s){var n=[].splice.call(arguments,1);return this.each(function(){var t=o(this),e=t.data("cfw.tooltip"),i="object"==typeof s&&s;!e&&/unlink|dispose|hide/.test(s)||(e||t.data("cfw.tooltip",e=new a(this,i)),"string"==typeof s&&e[s].apply(e,n))})},o.fn.CFW_Tooltip.Constructor=a}(jQuery),function(r){"use strict";if(void 0===r.fn.CFW_Tooltip)throw new Error("CFW_Popover requires CFW_Tooltip");function a(t,e){this.dragAdded=!1,this.keyTimer=null,this.keyDelay=750,this._init("popover",t,e)}a.DEFAULTS=r.extend({},r.fn.CFW_Tooltip.Constructor.DEFAULTS,{placement:"top",trigger:"click",content:"",drag:!1,dragtext:'<span aria-hidden="true">+</span>',dragsrtext:"Drag",dragstep:10,template:'<div class="popover"><h3 class="popover-header"></h3><div class="popover-body"></div><div class="popover-arrow"></div></div>'}),((a.prototype=r.extend({},r.fn.CFW_Tooltip.Constructor.prototype)).constructor=a).prototype.getDefaults=function(){return a.DEFAULTS},a.prototype.createTip=function(){return r(this.settings.template)},a.prototype.setContent=function(){var t,e=this.$target,i=e.find(".popover-header"),s=e.find(".popover-body");this.dynamicTip&&(e=this.getTitle(),t=this.getContent(),this.settings.html?(i.html(e),"string"==typeof t?s.html(t):s.empty().append(t)):(i.text(e),s.text(t))),i.length&&(t=i.eq(0).CFW_getID("cfw-popover"),this.$target.attr("aria-labelledby",t)),this.settings.drag&&!this.dragAdded&&this.$target.find('[data-cfw-drag="'+this.type+'"]').length<=0&&(r('<span role="button" tabindex="0" class="drag" data-cfw-drag="'+this.type+'" aria-label="'+this.settings.dragsrtext+'">'+this.settings.dragtext+"</span>").insertAfter(this.$target.find(".close").eq(0)),this.dragAdded=!0),this.$target.find('[data-cfw-drag="'+this.type+'"]').length&&(this.$target.addClass("draggable"),"manual"!==this.settings.trigger&&(this.settings.trigger="click"),this.settings.container="body",this.enableDrag()),i.html()||i.hide()},a.prototype.getContent=function(){var t=this.$element,e=this.settings;return"function"==typeof e.content?e.content.call(t[0]):e.content},a.prototype.enableDrag=function(){var a=this,t={handle:'[data-cfw-drag="'+this.type+'"]'};this.$element.on("afterShow.cfw."+this.type,function(){null!==a.popper&&a.popper.disableEventListeners(),a.$target.off("mutate.cfw.mutate").removeAttr("data-cfw-mutate").CFW_mutationIgnore(),r(window).off("resize.cfw."+a.type+"."+a.instance).on("resize.cfw."+a.type+"."+a.instance,function(){var t,e=a.$target.offset();a._isFixed()&&(t=window.getComputedStyle(a.$target[0]),e.top=parseInt(t.top,10),e.left=parseInt(t.left,10)),a.locateDragTip(e.top,e.left)})}),this.settings.gpuAcceleration=!1,this.$target.off(".cfw.drag"),this.$target.on("dragStart.cfw.drag",function(){a._updateZ(),a.$element.CFW_trigger("dragStart.cfw."+a.type)}).on("drag.cfw.drag",function(t){a.locateDragTip(t.offsetY,t.offsetX)}).on("dragEnd.cfw.drag",function(){a.$element.CFW_trigger("dragEnd.cfw."+a.type)}).on("keydown.cfw.drag",'[data-cfw-drag="'+this.type+'"]',function(t){if(new RegExp("^(38|39|40|37)$").test(t.which)){t&&(t.stopPropagation(),t.preventDefault()),a.keyTimer||a.$element.CFW_trigger("dragStart.cfw."+a.type),clearTimeout(a.keyTimer);var e=a.$target.offset(),i=Math.round(e.top),s=Math.round(e.left);a._isFixed()&&(e=window.getComputedStyle(a.$target[0]),i=parseInt(e.top,10),s=parseInt(e.left,10));var n=a.settings.dragstep;switch(t.which){case 37:s-=n;break;case 38:i-=n;break;case 39:s+=n;break;case 40:i+=n}a.locateDragTip(i,s),a.keyTimer=setTimeout(function(){a.$element.CFW_trigger("dragEnd.cfw."+a.type),a.keyTimer=null},a.keyDelay)}}),this.$target.CFW_Drag(t)},a.prototype.getParentNode=function(t){return"HTML"===t.nodeName?t:t.parentNode||t.host},a.prototype.getScrollParent=function(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=window.getComputedStyle(t);return/^(auto|scroll|overlay)$/.test(e.overflow+e.overflowX+e.overflowY)?t:this.getScrollParent(this.getParentNode(t))},a.prototype.getOwnerBody=function(t){t=t.ownerDocument;return(t||document).body},a.prototype.viewportDragLimit=function(){var t,e={},i=this._getDragViewport(),s=this.viewportScrollbarWidth(i),e=i.offset();return this._isFixed()&&(t=i[0].getBoundingClientRect(),e.top=t.top,e.bottom=t.bottom,i.is("body")&&(i=r(window),e.top=t.top+window.pageYOffset,e.left=t.left+window.pageXOffset)),e.bottom=e.top+i.outerHeight(),e.right=e.left+i.outerWidth()-s,i.is("body")&&(document.body.clientHeight<window.innerHeight&&(e.bottom=window.innerHeight),document.body.clientWidth<window.innerWidth&&(e.right=window.innerWidth-s)),e},a.prototype.viewportScrollbarWidth=function(t){var e=window.getComputedStyle(t[0]),i=/^(visible|auto|scroll)$/.test(e.overflow)||/^(visible|auto|scroll)$/.test(e.overflowY),e=t[0].scrollHeight;return t.is("body")&&i&&e>window.innerHeight||i&&e>t[0].clientHeight?r.CFW_measureScrollbar():0},a.prototype.locateDragTip=function(t,e){var i=this.$target,s=this.viewportDragLimit(),n=this.settings.padding;i.css({top:Math.min(s.bottom-n-i.outerHeight(),Math.max(s.top+n,t)),left:Math.min(s.right-n-i.outerWidth(),Math.max(s.left+n,e))})},a.prototype.hide=function(t){this.keyTimer&&(this.$element.CFW_trigger("dragEnd.cfw."+this.type),clearTimeout(this.keyTimer)),r.fn.CFW_Tooltip.Constructor.prototype.hide.call(this,t)},a.prototype._showExt=function(){this.$target.find('[data-cfw-drag="'+this.type+'"]').length&&this._isFixed()&&this._handleFixedDragScroll()},a.prototype._hideExt=function(){r(window).off("resize.cfw."+this.type+"."+this.instance).off("scroll.cfw."+this.type+"."+this.instance)},a.prototype._removeDynamicTipExt=function(){this.$target.detach(),this.$target=null,this.dragAdded=!1},a.prototype._updateZ=function(){var e=0,i=null;r(".popover:visible").each(function(){var t=parseInt(r(this).css("z-index"),10);e<t&&(e=t,i=r(this))}),this.$target[0]!==i[0]&&this.$target.css("z-index",++e)},a.prototype._arrow=function(){return this.$arrow||(this.$arrow=this.$target.find(".arrow, .popover-arrow")),this.$arrow},a.prototype._unlinkCompleteExt=function(){this.dragAdded=null,this.keyTimer=null,this.keyDelay=null},a.prototype._getDragViewport=function(){var t=this._getViewport(),e=null;
10return"window"!==(t="scrollParent"===t?this.getScrollParent(this.$target[0]):t)&&t!==window||(t=this.getOwnerBody(this.$target[0])),e=!(e=r(t)).length?r(document.body):e},a.prototype._isFixed=function(){var t=window.getComputedStyle(this.$target[0]);return/^(fixed)$/.test(t.position)},a.prototype._doFixedDragScroll=function(){var t={},e=window.getComputedStyle(this.$target[0]);t.top=parseInt(e.top,10),t.left=parseInt(e.left,10),this.locateDragTip(t.top,t.left)},a.prototype._handleFixedDragScroll=function(){var t=this._getDragViewport();r(window).off("scroll.cfw."+this.type+"."+this.instance),t.is("body")||r(window).on("scroll.cfw."+this.type+"."+this.instance,this._doFixedDragScroll.bind(this))},r.fn.CFW_Popover=function(s){var n=[].splice.call(arguments,1);return this.each(function(){var t=r(this),e=t.data("cfw.popover"),i="object"==typeof s&&s;!e&&/unlink|dispose|hide/.test(s)||(e||t.data("cfw.popover",e=new a(this,i)),"string"==typeof s&&e[s].apply(e,n))})},r.fn.CFW_Popover.Constructor=a}(jQuery),function(a){"use strict";var r=function(t,e){this.$body=a(document.body),this.$element=a(t),this.$target=null,this.$dialog=null,this.$backdrop=null,this.$focusLast=null,this.isShown=null,this.scrollbarWidth=0,this.scrollbarSide="right",this.fixedContent=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",this.stickyContent=".sticky-top",this.ignoreBackdropClick=!1;t=this.$element.CFW_parseData("modal",r.DEFAULTS);this.settings=a.extend({},r.DEFAULTS,t,e),this._init()};r.DEFAULTS={target:!1,animate:!0,unlink:!1,dispose:!1,backdrop:!0,keyboard:!0,show:!1},r.prototype={_init:function(){var t=this.$element.CFW_getSelectorFromChain("modal",this.settings.target);t&&(this.$target=a(t),this.$dialog=this.$target.find(".modal-dialog"),this.$element.attr("data-cfw","modal"),this.disposeOnHide=this.settings.dispose,this.unlinkOnHide=this.settings.unlink,t=this.$target.CFW_getID("cfw-modal"),this.$element.attr("aria-controls",t),(t=this.$target.find(".modal-title")).length&&(t=t.eq(0).CFW_getID("cfw-modal"),this.$target.attr("aria-labelledby",t)),this.$target.attr({role:"dialog","aria-hidden":"true",tabindex:-1}),this.$element.on("click.cfw.modal",this.toggle.bind(this)),this.$target.data("cfw.modal",this),this.$target.CFW_trigger("init.cfw.modal"),this.settings.show&&this.show())},toggle:function(t){t&&t.preventDefault(),this.isShown?this.hide():this.show()},show:function(){var e=this;this.isShown||this.$target.CFW_trigger("beforeShow.cfw.modal")&&(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$target.on("click.dismiss.cfw.modal",'[data-cfw-dismiss="modal"]',function(t){t&&t.preventDefault(),e.hide()}).data("cfw.modal",this),this.$dialog.on("mousedown.dismiss.cfw.modal",function(){e.$target.one("mouseup.dismiss.cfw.modal",function(t){a(t.target).is(e.$target)&&(e.ignoreBackdropClick=!0)})}),this.backdrop(function(){e._showComplete()}))},hide:function(){this.isShown&&this.$target.CFW_trigger("beforeHide.cfw.modal")&&(this.isShown=!1,a(document).off("focusin.cfw.modal"),this.$target.removeClass("in").attr("aria-hidden",!0).removeAttr("aria-modal").off(".dismiss.cfw.modal"),this.$dialog.off("mousedown.dismiss.cfw.modal"),this.$focusLast&&this.$focusLast.off(".cfw."+this.type+".focusLast"),this.$dialog.CFW_transition(null,this._hideComplete.bind(this)))},_showComplete:function(){var t=this,e=this.$dialog.find(".modal-body");this.settings.animate&&this.$target.addClass("fade"),this.$target.parent().length||this.$target.appendTo(this.$body),this.$target.css("display","block"),e.length&&e.scrollTop(0),this.$dialog.scrollTop(0),this.$target.scrollTop(0),this.adjustDialog(),a.CFW_reflow(this.$target[0]),this.$target.addClass("in").removeAttr("aria-hidden").attr("aria-modal",!0),this.$target.attr("data-cfw-mutate","").on("mutate.cfw.mutate",function(){t.handleUpdate()}),this.enforceFocus(),this.enforceFocusLast();this.$dialog.CFW_transition(null,function(){t.$target.trigger("focus"),t.$target.CFW_mutateTrigger().CFW_trigger("afterShow.cfw.modal")})},_hideComplete:function(){var t=this;this.escape(),this.resize(),this.$target.off("mutate.cfw.mutate").removeAttr("data-cfw-mutate").CFW_mutationIgnore().css("display","none"),this.$element.trigger("focus"),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$target.CFW_mutateTrigger().CFW_trigger("afterHide.cfw.modal"),t.disposeOnHide?t.dispose():t.unlinkOnHide&&t.unlink()})},enforceFocus:function(){var e=this;a(document).off("focusin.cfw.modal").on("focusin.cfw.modal",function(t){document===t.target||e.$target[0]===t.target||e.$target.has(t.target).length||e.$target.trigger("focus")})},enforceFocusLast:function(){var t=this;this.$focusLast||(this.$focusLast=a(document.createElement("span")).addClass("modal-focuslast").attr("tabindex",0).appendTo(this.$target)),this.$focusLast&&this.$focusLast.off("focusin.cfw.modal.focusLast").on("focusin.cfw.modal.focusLast",function(){t.$target.trigger("focus")})},escape:function(){var e=this;
10this.isShown||this.$target.off("keydown.dismiss.cfw.modal"),this.isShown&&this.$target.on("keydown.dismiss.cfw.modal",function(t){27===t.which&&(e.settings.keyboard?(t.preventDefault(),e.hide()):e.hideBlocked())})},resize:function(){this.isShown?a(window).on("resize.cfw.modal",this.handleUpdate.bind(this)):a(window).off("resize.cfw.modal")},handleUpdate:function(){this.settings.backdrop&&this.adjustBackdrop(),this.adjustDialog()},adjustBackdrop:function(){this.$backdrop.css("height",0).css("height",this.$target[0].scrollHeight)},adjustDialog:function(){var t=this.$target[0].scrollHeight>document.documentElement.clientHeight;this.$target.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},resetAdjustments:function(){this.$target.css({paddingLeft:"",paddingRight:""})},checkScrollbar:function(){var t=document.body.getBoundingClientRect();this.bodyIsOverflowing=Math.round(t.left+t.right)<window.innerWidth,this.scrollbarWidth=a.CFW_measureScrollbar(),this.scrollbarSide=a("html").CFW_getScrollbarSide()},setScrollbar:function(){var t,e,s=this,n=this.scrollbarSide.capitalize();this.bodyIsOverflowing&&(a(this.fixedContent).each(function(){var t=a(this),e=this.style["padding"+n],i=parseFloat(t.css("padding-"+s.scrollbarSide));t.data("cfw.padding-dim",e).css("padding-"+s.scrollbarSide,i+s.scrollbarWidth+"px")}),a(this.stickyContent).each(function(){var t=a(this),e=this.style["margin"+n],i=parseFloat(t.css("margin-"+s.scrollbarSide));t.data("cfw.margin-dim",e).css("margin-"+s.scrollbarSide,i-s.scrollbarWidth+"px")}),t=document.body.style["padding"+n],e=parseFloat(this.$body.css("padding-"+s.scrollbarSide)),this.$body.data("cfw.padding-dim",t).css("padding-"+s.scrollbarSide,e+s.scrollbarWidth+"px")),this.$target.on("touchmove.cfw.modal",this._scrollBlock.bind(this)).CFW_trigger("scrollbarSet.cfw.modal")},resetScrollbar:function(){var i=this;a(this.fixedContent).each(function(){var t=a(this),e=t.data("cfw.padding-dim");void 0!==e&&(t.css("padding-"+i.scrollbarSide,e),t.removeData("cfw.padding-dim"))}),a(this.stickyContent).each(function(){var t=a(this),e=t.data("cfw.margin-dim");void 0!==e&&(t.css("margin-"+i.scrollbarSide,e),t.removeData("cfw.margin-dim"))});var t=this.$body.data("cfw.padding-dim");void 0!==t&&(this.$body.css("padding-"+this.scrollbarSide,t),this.$body.removeData("cfw.padding-dim")),this.$target.off("touchmove.cfw.modal").CFW_trigger("scrollbarReset.cfw.modal")},_scrollBlock:function(t){var e,i,s=this.$target.find(".modal-dialog-scrollable");!s.length||s[0]!==t.target&&!s.find(".modal-body")[0].contains(t.target)?(e=this.$target[0].scrollTop,i=this.$target[0].scrollHeight,s=e+this.$target[0].offsetHeight,e<=0&&i<=s?t.preventDefault():0===e?this.$target[0].scrollTop=1:s===i&&(this.$target[0].scrollTop=e-1)):t.stopPropagation()},backdrop:function(t){var e=this,i=this.settings.animate?"fade":"";this.isShown&&this.settings.backdrop?(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$target.on("click.dismiss.cfw.modal",function(t){e.ignoreBackdropClick?e.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e.settings.backdrop?e.hideBlocked():e.hide())}),a.CFW_reflow(this.$backdrop[0]),this.$backdrop.addClass("in"),this.$backdrop.CFW_transition(null,t)):!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),this.$backdrop.CFW_transition(null,function(){e.removeBackdrop(),t&&t()})):t&&t()},removeBackdrop:function(){this.$backdrop&&(this.$backdrop.remove(),this.$backdrop=null)},hideBlocked:function(){var t=this;this.$target.CFW_trigger("beforeHide.cfw.modal")&&(this.$target.addClass("modal-blocked"),this.$dialog.CFW_transition(null,function(){t.$target.trigger("focus"),t.$target.removeClass("modal-blocked")}))},unlink:function(){var t=this;this.$target.CFW_trigger("beforeUnlink.cfw.modal"),this.isShown?(this.$target.one("afterHide.cfw.modal",function(){t._unlinkComplete()}),this.hide()):this._unlinkComplete()},_unlinkComplete:function(){var t=this.$target;this.$target.off(".cfw.modal").removeAttr("aria-labelledby").removeData("cfw.modal"),this.$element.off(".cfw.modal").removeAttr("data-cfw aria-controls").removeData("cfw.modal"),this.$body=null,this.$element=null,this.$target=null,this.$dialog=null,this.$backdrop=null,this.$focusLast=null,this.isShown=null,this.scrollbarWidth=null,this.scrollbarSide=null,this.fixedContent=null,this.ignoreBackdropClick=null,this.settings=null,t.CFW_trigger("afterUnlink.cfw.modal")},dispose:function(){a(document).one("afterUnlink.cfw.modal",this.$target,function(t){t=a(t.target);t.CFW_trigger("dispose.cfw.modal"),t.remove()}),this.unlink()}}
10,a.fn.CFW_Modal=function(s){var n=[].splice.call(arguments,1);return this.each(function(){var t=a(this),e=t.data("cfw.modal"),i="object"==typeof s&&s;!e&&/unlink|dispose/.test(s)||(e||t.data("cfw.modal",e=new r(this,i)),"string"==typeof s&&e[s].apply(e,n))})},a.fn.CFW_Modal.Constructor=r}(jQuery),function(n){"use strict";if(void 0===n.fn.CFW_Collapse)throw new Error("CFW_Accordion requires CFW_Collapse");function a(t){this.$element=n(t),this._init()}a.prototype={_init:function(){var e=this;this.$element.attr("data-cfw","accordion").on("beforeShow.cfw.collapse",function(t){t.isDefaultPrevented()||e._update(t)}).CFW_trigger("init.cfw.accordion")},_update:function(t){var e=!1,i=n(t.target),s=this.$element.find('[data-cfw="collapse"]');s.each(function(){1===n(this).data("cfw.collapse").inTransition&&(e=!0)}),e?t.preventDefault():s.not(i).CFW_Collapse("hide")},dispose:function(){this.$element.off(".cfw.collapse").removeData("cfw.accordion"),this.$element=null}},n.fn.CFW_Accordion=function(i){var s=[].splice.call(arguments,1);return this.each(function(){var t=n(this),e=t.data("cfw.accordion");e||t.data("cfw.accordion",e=new a(this)),"string"==typeof i&&e[i].apply(e,s)})},n.fn.CFW_Accordion.Constructor=a}(jQuery),function(n){"use strict";if(void 0===n.fn.CFW_Tab)throw new Error("CFW_TabResponsive requires CFW_Tab");if(void 0===n.fn.CFW_Collapse)throw new Error("CFW_TabResponsive requires CFW_Collapse");function a(t){this.$element=n(t),this._init()}a.prototype={_init:function(){var e=this;this.$element.attr("data-cfw","tabResponsive"),this.$element.on("beforeShow.cfw.tab",function(t){t.isDefaultPrevented()||e.updateCollapse(t.target)}),this.$element.on("beforeShow.cfw.collapse",function(t){t.isDefaultPrevented()||e.updateTab(t.target)}),this.$element.find('[data-cfw="tab"]').CFW_Tab("animDisable"),this.$element.find('[data-cfw="collapse"]').CFW_Collapse("animDisable");var t=this.$element.find('[data-cfw="tab"].active');this.updateCollapse(t),this.$element.CFW_trigger("init.cfw.tabResponsive")},updateCollapse:function(t){t=n(t),t=n(t).data("cfw.tab");t&&((t=t.$target).closest(".tab-content").find('[data-cfw="collapse"]').each(function(){n(this).one("afterHide.cfw.collapse",function(t){t.stopPropagation(),t.preventDefault()}).CFW_Collapse("hide")}),t.find('[data-cfw="collapse"]').one("afterShow.cfw.collapse",function(t){t.stopPropagation(),t.preventDefault()}).CFW_Collapse("show"))},updateTab:function(t){var e=n(t),i=e.closest(".tab-pane").attr("id");e.closest(".tab-content").find('[data-cfw="collapse"]').each(function(){var t=n(this);t[0]!==e[0]&&t.CFW_Collapse("hide")}),this.$element.find('[data-cfw="tab"]').each(function(){var t=n(this),e=t.attr("data-cfw-tab-target");(e=(e=e||t.attr("href")).replace(/^#/,""))===i&&t.one("beforeShow.cfw.tab",function(t){t.stopPropagation()}).CFW_Tab("show")})},dispose:function(){this.$element.off(".cfw.tab .cfw.collapse").removeData("cfw.tabResponsive"),this.$element=null,this.settings=null}},n.fn.CFW_TabResponsive=function(i){var s=[].splice.call(arguments,1);return this.each(function(){var t=n(this),e=t.data("cfw.tabResponsive");e||t.data("cfw.tabResponsive",e=new a(this)),"string"==typeof i&&e[i].apply(e,s)})},n.fn.CFW_TabResponsive.Constructor=a}(jQuery),function(a){"use strict";if(void 0===a.fn.CFW_Tab)throw new Error("CFW_Slideshow requires CFW_Tab");var r=function(t,e){this.$element=a(t),this.$navPrev=this.$element.find('[data-cfw-slideshow-nav="prev"]'),this.$navNext=this.$element.find('[data-cfw-slideshow-nav="next"]');t=this.$element.CFW_parseData("slideshow",r.DEFAULTS);this.settings=a.extend({},r.DEFAULTS,t,e),this._init()};r.DEFAULTS={loop:!1},r.prototype={_init:function(){var e=this;this.$element.attr("data-cfw","slideshow");var t=this.$element.find('[role="tab"]');t.length&&(this.$element.on("afterShow.cfw.tab",function(){e.update()}),this.$navPrev.on("click.cfw.slideshow",function(t){t.preventDefault(),a(t.target).not(".disabled, :disabled")&&e.prev()}),this.$navNext.on("click.cfw.slideshow",function(t){t.preventDefault(),a(t.target).not(".disabled, :disabled")&&e.next()}),this.settings.loop&&t.off("keydown.cfw.tab").add(this.$navPrev).add(this.$navNext).on("keydown.cfw.slideshow",function(t){e._actionsKeydown(t)}),this.update(),this.$element.CFW_trigger("init.cfw.slideshow"))},prev:function(){var t=this._getTabs(),e=this._currIndex(t);0<e&&(this.$element.CFW_trigger("prev.cfw.slideshow"),t.eq(e-1).CFW_Tab("show")),this.settings.loop&&0===e&&(this.$element.CFW_trigger("prev.cfw.slideshow"),t.eq(t.length-1).CFW_Tab("show"))},next:function(){var t=this._getTabs(),e=this._currIndex(t);e<t.length-1&&(this.$element.CFW_trigger("next.cfw.slideshow"),t.eq(e+1).CFW_Tab("show")),this.settings.loop&&e===t.length-1&&(this.$element.CFW_trigger("prev.cfw.slideshow"),t.eq(0).CFW_Tab("show"))},update:function(){this.$navPrev.removeClass("disabled"),this.$navNext.removeClass("disabled");var t=this._getTabs(),e=this._currIndex(t);e<=0&&!this.settings.loop&&this.$navPrev.addClass("disabled"),e>=t.length-1&&!this.settings.loop&&this.$navNext.addClass("disabled"),this.$element.CFW_trigger("update.cfw.slideshow")},_getTabs:function(){return this.$element.find('[role="tab"]:visible').not(".disabled")},_currIndex:function(t){var e=t.filter(".active");return t.index(e)},_actionsKeydown:function(t){var e,i;new RegExp("38|39|40|37").test(t.which)&&(t.stopPropagation(),t.preventDefault(),e=this._getTabs(),i=this._currIndex(e),38!==t.which&&37!==t.which||(0<i?i--:0===i&&(i=e.length-1)),40!==t.which&&39!==t.which||(i<e.length-1?i++:i===e.length-1&&(i=0)),~i||(i=0),e.eq(i).CFW_Tab("show").trigger("focus"))},dispose:function(){this.settings.loop&&this.$element.find('[role="tab"]').off("keydown.cfw.tab"),this.$navPrev.off(".cfw.slideshow"),this.$navNext.off(".cfw.slideshow"),this.$element.off(".cfw.tab").removeData("cfw.slideshow"),this.$element=null,this.$navPrev=null,this.$navNext=null,this.settings=null}},a.fn.CFW_Slideshow=function(s){var n=[].splice.call(arguments,1
10);return this.each(function(){var t=a(this),e=t.data("cfw.Slideshow"),i="object"==typeof s&&s;e||t.data("cfw.Slideshow",e=new r(this,i)),"string"==typeof s&&e[s].apply(e,n)})},a.fn.CFW_Slideshow.Constructor=r}(jQuery),function(a){"use strict";var r=function(t,e){this.$body=a("body"),this.$element=a(t),this.$scrollElement=this.$element.is("body")?a(window):this.$element,this.selector=null,this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0;t=this.$element.CFW_parseData("scrollspy",r.DEFAULTS);this.settings=a.extend({},r.DEFAULTS,t,e),this._init()};r.DEFAULTS={target:null,offset:10,nested:!0,throttle:100},r.prototype={_init:function(){this.$element[0]!==this.$body[0]&&this.$element.attr("tabindex",0),this.$scrollElement.on("scroll.cfw.scrollspy",a.CFW_throttle(this.process.bind(this),this.settings.throttle)),this.selector=(this.settings.target||"")+" a, "+(this.settings.target||"")+" [data-cfw-scrollspy-target]",this.$scrollElement.CFW_trigger("init.cfw.scrollspy"),this.refresh(),this.process()},getScrollHeight:function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},refresh:function(){var t=this,i="offset",s=0;null!==this.$scrollElement[0]&&this.$scrollElement[0]!==this.$scrollElement[0].window&&(i="position",s=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),this.$body.find(this.selector).map(function(){var t=a(this),e=t.attr("data-cfw-scrollspy-target")||t.attr("href"),t=/^#./.test(e)&&a(e);return t&&t.length&&t.is(":visible")?[[t[i]().top+s,e]]:null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},process:function(){var t,e=this.$scrollElement.scrollTop()+this.settings.offset,i=this.getScrollHeight(),s=this.settings.offset+i-this.$scrollElement.height(),n=this.offsets,a=this.targets,r=this.activeTarget;if(this.scrollHeight!==i&&this.refresh(),s<=e){s=a[a.length-1];r!==s&&this.activate(s)}else{if(r&&e<n[0]&&0<n[0])return this.activeTarget=null,void this.clear();for(t=n.length;t--;)r!==a[t]&&e>=n[t]&&(void 0===n[t+1]||e<n[t+1])&&this.activate(a[t])}},activate:function(t){this.activeTarget=t,this.clear();var e=this.settings.target+' [href="'+t+'"],'+this.settings.target+' [data-cfw-scrollspy-target="'+t+'"]',t=a(e).addClass("active"),e=!0===this.settings.nested||"string"==typeof this.settings.nested;t.closest(".dropdown-menu").length&&e?t=t.closest(".dropdown").find('[data-cfw="dropdown"]').addClass("active"):!0===this.settings.nested&&t.parents("ul, ol, nav").prev("li, a").addClass("active"),t.CFW_trigger("activate.cfw.scrollspy")},clear:function(){a(this.selector).filter(".active").removeClass("active")},dispose:function(){this.$scrollElement.off(".cfw.scrollspy"),this.$element.removeData("cfw.scrollspy"),this.$body=null,this.$element=null,this.$scrollElement=null,this.selector=null,this.offsets=null,this.targets=null,this.activeTarget=null,this.scrollHeight=null,this.settings=null}},a.fn.CFW_Scrollspy=function(s){var n=[].splice.call(arguments,1);return this.each(function(){var t=a(this),e=t.data("cfw.scrollspy"),i="object"==typeof s&&s;e||t.data("cfw.scrollspy",e=new r(this,i)),"string"==typeof s&&e[s].apply(e,n)})},a.fn.CFW_Scrollspy.Constructor=r}(jQuery),function(a){"use strict";var r=function(t,e){this.$element=a(t),this.$parent=null,this.inTransition=null;t=this.$element.CFW_parseData("alert",r.DEFAULTS);this.settings=a.extend({},r.DEFAULTS,t,e),this._init()};r.DEFAULTS={target:null,animate:!0},r.prototype={_init:function(){var e=this;this.findParent(),this.$element.data("cfw.alert",this).on("click.cfw.alert",function(t){e.handleClose(t)}),this.$parent.CFW_trigger("init.cfw.alert")},handleClose:function(t){t.preventDefault(),t.currentTarget!==this.$parent[0]&&a(t.currentTarget).not(".disabled, :disabled").length&&this.close()},close:function(t){var e=this;t&&t.preventDefault(),this.inTransition||this.$parent.CFW_trigger("beforeClose.cfw.alert")&&(this.settings.animate&&this.$parent.addClass("fade in"),this.inTransition=1,this.$parent.removeClass("in").CFW_mutateTrigger().CFW_transition(null,function(){e.$parent.detach().CFW_trigger("afterClose.cfw.alert"),e.$parent.remove(),e.inTransition=0}))},findParent:function(){var t=this.$element.CFW_getSelectorFromChain("alert",this.settings.target);this.$parent=t?a(t):this.$element.closest(".alert")},dispose:function(){this.$element.off(".cfw.alert").removeData("cfw.alert"),this.$element=null,this.$parent=null,this.inTransition=null,this.settings=null}}
10,a.fn.CFW_Alert=function(s){var n=[].splice.call(arguments,1);return this.each(function(){var t=a(this),e=t.data("cfw.alert"),i="object"==typeof s&&s;e||t.data("cfw.alert",e=new r(this,i)),"string"==typeof s&&e[s].apply(e,n)})},a.fn.CFW_Alert.Constructor=r,"undefined"!=typeof CFW_API&&!1===CFW_API||a(document).on("click.cfw.alert",'[data-cfw-dismiss="alert"]',function(t){a(this).CFW_Alert("handleClose",t)})}(jQuery),function(a){"use strict";var r=function(t,e){this.$element=a(t),this.$window=a(window),this.instance=null,this.inTransition=null;t=this.$element.CFW_parseData("lazy",r.DEFAULTS);this.settings=a.extend({},r.DEFAULTS,t,e),this._init()};r.DEFAULTS={src:"",throttle:250,trigger:"scroll resize mutate",delay:0,animate:!1,threshold:0,container:window,invisible:!1,placeholder:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},r.prototype={_init:function(){var t=!1;this.$element.attr("data-cfw","lazy"),this.settings.delay=parseInt(this.settings.delay,10),(isNaN(this.settings.delay)||this.settings.delay<0)&&(this.settings.delay=r.DEFAULTS.delay),""!==this.$element.attr("src")&&void 0!==this.$element.attr("src")&&!1!==this.$element.attr("src")||this.$element.is("img")&&this.$element.attr("src",this.settings.placeholder),this.instance=this.$element.CFW_getID("cfw-lazy");for(var e=this.settings.trigger.split(" "),i=e.length;i--;){var s=e[i];"scroll"===s||"resize"===s?(a(this.settings.container).on(s+".cfw.lazy."+this.instance,a.CFW_throttle(this._handleTrigger.bind(this),this.settings.throttle)),t=!0):"mutate"===s?this.$element.attr("data-cfw-mutate","").on("mutate.cfw.mutate",this._handleTrigger.bind(this)):this.$element.on(s+".cfw.lazy",this.show.bind(this))}this.$element.CFW_trigger("init.cfw.lazy"),t&&this.inViewport()&&this.show()},isVisible:function(){var t=this.$element[0];return Boolean(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},inViewport:function(){return!(!this.settings.invisible&&!this.isVisible)&&!(this.belowFold()||this.afterRight()||this.aboveTop()||this.beforeLeft())},belowFold:function(){var t=this.settings.container===window?(window.innerHeight||this.$window.height())+this.$window.scrollTop():a(this.settings.container).offset().top+a(this.settings.container).height();return t<=this.$element.offset().top-this.settings.threshold},afterRight:function(){var t=this.settings.container===window?this.$window.width()+this.$window.scrollLeft():a(this.settings.container).offset().left+a(this.settings.container).width();return t<=this.$element.offset().left-this.settings.threshold},aboveTop:function(){var t=this.settings.container===window?this.$window.scrollTop():a(this.settings.container).offset().top;return t>=this.$element.offset().top+this.settings.threshold+this.$element.height()},beforeLeft:function(){var t=this.settings.container===window?this.$window.scrollLeft():a(this.settings.container).offset().left;return t>=this.$element.offset().left+this.settings.threshold+this.$element.width()},loadSrc:function(){var e=this;this.$element.attr("src",this.settings.src),a.CFW_imageLoaded(this.$element,this.instance,function(){function t(){e.$element.removeClass("lazy in"),e.$element.CFW_trigger("afterShow.cfw.lazy"),e.dispose()}e.settings.animate&&e.$element.addClass("lazy"),setTimeout(function(){e.$element.addClass("in").CFW_transition(null,t)},15)})},show:function(){var t=this;this.inTransition||this.$element.CFW_trigger("beforeShow.cfw.lazy")&&(this.inTransition=!0,setTimeout(function(){t.loadSrc()},t.settings.delay))},_handleTrigger:function(){null!==this.$element&&this.inViewport()&&this.show()},dispose:function(){a(this.settings.container).off(".cfw.lazy."+this.instance),this.$element.off(".cfw.lazy").off("load.cfw.imageLoaded."+this.instance).off(".cfw.mutate").removeData("cfw.lazy").removeAttr("data-cfw").removeAttr("data-cfw-mutate"),this.$element=null,this.$window=null,this.instance=null,this.inTransition=null,this.settings=null}},a.fn.CFW_Lazy=function(s){var n=[].splice.call(arguments,1);return this.each(function(){var t=a(this),e=t.data("cfw.lazy"),i="object"==typeof s&&s;e||t.data("cfw.lazy",e=new r(this,i)),"string"==typeof s&&e[s].apply(e,n)})},a.fn.CFW_Lazy.Constructor=r}(jQuery),function(r){"use strict";var a=function(t,e){this.$element=r(t),this.$target=null,this.$window=r
vendor: 4,319 bytes, line 10
10(window),this.instance="";t=this.$element.CFW_parseData("equalize",a.DEFAULTS);this.settings=r.extend({},a.DEFAULTS,t,e),this._init()};a.DEFAULTS={target:"",throttle:250,stack:!1,row:!1,minimum:!1},a.prototype={_init:function(){var e=this,t=this.settings.target;void 0===t||t.length<=0||(this.$target=r(t,this.$element),this.$target.length||(this.$target=r('[data-cfw-equalize-group="'+t+'"]',this.$element)),this.$target.length&&(this.instance=r("<div/>").CFW_getID("cfw-equalize"),this._hasNested()&&this.$element.on("afterEqual.cfw.equalize",function(t){t.target!==e.$element[0]&&e._equalize()}),this.$target.CFW_mutationListen(),this.$element.attr("data-cfw-mutate","").on("mutate.cfw.mutate",this._equalize.bind(this)),this.$window.on("resize.cfw.equalize."+this.instance,r.CFW_throttle(this._equalize.bind(this),this.settings.throttle)),this.$element.attr("data-cfw","equalize"),this.$element.CFW_trigger("init.cfw.equalize"),this.update()))},_hasNested:function(){return 0<this.$element.find('[data-cfw="equalize"]').length},_isNested:function(){return 0<this.$element.parentsUntil(document.body,'[data-cfw="equalize"]').length},_isStacked:function(t){return!(!t[0]||!t[1])&&t[0].getBoundingClientRect().top!==t[1].getBoundingClientRect().top},_equalize:function(){var t=this.$target.filter(":visible");t.length&&this.$element.CFW_trigger("beforeEqual.cfw.equalize")&&(this._equalizeGroup(t),this.$element.CFW_trigger("afterEqual.cfw.equalize"))},_equalizeGroup:function(t){this.$target.CFW_mutationIgnore(),t.height(""),this.settings.row||this.settings.stack?!this.settings.stack&&this._isStacked(t)||(this.settings.row?this._equalizeByRow(t):this._applyHeight(t)):this._applyHeight(t)},_equalizeByRow:function(t){var i=this,s=t.length,n=t.first().offset().top,a=r();t.each(function(t){var e=r(this);e.offset().top!==n&&(1<a.length&&i._applyHeight(a),a=r(),n=e.offset().top),a=a.add(e),t===s-1&&i._applyHeight(a)})},_applyHeight:function(t,e){var i=t.map(function(){return r(this).outerHeight(!1)}).get(),i=(this.settings.minimum?Math.min:Math.max).apply(null,i);t.css("height",i),this.$target.CFW_mutationListen(),e&&e()},update:function(){var t=this,e=this.$element.find("img");e.length||e.each(function(){r.CFW_imageLoaded(r(this),t.instance,function(){t._equalize()})}),this._equalize()},dispose:function(){this.$window.off(".cfw.equalize."+this.instance),this.$element.off("mutate.cfw.mutate").removeAttr("data-cfw-mutate").removeData("cfw.equalize").find("img").off("load.cfw.imageLoaded."+this.instance),this.$target.CFW_mutationIgnore(),this.$element=null,this.$target=null,this.$window=null,this.instance=null,this.settings=null}},r.fn.CFW_Equalize=function(s){var n=[].splice.call(arguments,1);return this.each(function(){var t=r(this),e=t.data("cfw.equalize"),i="object"==typeof s&&s;e||t.data("cfw.equalize",e=new a(this,i)),"string"==typeof s&&e[s].apply(e,n)})},r.fn.CFW_Equalize.Constructor=a}(jQuery),function(h){"use strict";var t={audio:null,video:null};t.audio=function(){var t=document.createElement("audio"),e=!1;try{(e=!!t.canPlayType)&&((e=new Boolean(e)).ogg=t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),e.mp3=t.canPlayType("audio/mpeg;").replace(/^no$/,""),e.opus=t.canPlayType('audio/ogg; codecs="opus"')||t.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,""),e.wav=t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),e.m4a=(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(t){}return e}(),t.video=function(){var t=document.createElement("video"),e=!1;try{(e=!!t.canPlayType)&&((e=new Boolean(e)).ogg=t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),e.h264=t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),e.webm=t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),e.vp9=t.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),e.hls=t.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(t){}return e}();var a=function(t,e){this.$element=h(t),this.type="audio",this.$media=null,this.media=null,this.$player=null,this.$focus=null,this.$sources=null,this.$sliderSeek=null,this.$volSeek=null,this.activity=null,this.over=null,this.userActive=!0,this.activityTimer=null,this.mouseActivity=null,this.played=!1,this.status={duration:0,
10currentTime:0,remaining:0},this.support={mute:!0,volume:!0},this.trackValid=[],this.trackCurrent=-1,this.$captionWrapper=null,this.$scriptElm=null,this.scriptCurrent=-1,this.scriptCues=null,this.seekPoint=".player-transcript-seekpoint, .player-description-seekpoint",this.descCurrent=-1,this.descCues=null,this.trackDescription=[],this.$textDescribeElm=null,this.textDescribeCurrent=-1,this.textDescribeCues=null;t=this.$element.CFW_parseData("player",a.DEFAULTS);this.settings=h.extend({},a.DEFAULTS,t,e),this._init()};a.DEFAULTS={mediaDescribe:!1,textDescribe:-1,textDescribeAnnounce:!1,textDescribeVisible:!0,transcript:-1,transcriptScroll:!0,transcriptDescribe:!0,transcriptOption:!0},a.prototype={_init:function(){this.$media=this.$element.find("audio, video"),this.media=this.$media[0],void 0!==this.media&&("video"===this.media.nodeName.toLowerCase()&&(this.type="video"),"audio"===this.type&&!t.audio||"video"===this.type&&!t.video?this.$media.CFW_trigger("noSupport.cfw.player"):(this.$sources=this.$media.find("source"),this.$sources.length&&(this.$sources.each(function(){h(this).attr("data-src-orig",h(this).attr("src"))}),this.$element.attr("data-cfw","player").addClass("player-unstarted"),this.$player=this.$element.find('[data-cfw-player="player"]'),0<this.$player.length&&(this.media.controls=!1),this.settings.mediaDescribe&&this.description(),this.loadComplete())))},insertPlayer:function(){var t=h(document.createElement("div")).addClass("player");this.$media.after(t)},loadCheck:function(){var t=this,e=0;try{this.media.play(),this.media.pause()}catch(t){return void this.error()}var i=setInterval(function(){return 0<t.media.readyState?(clearInterval(i),void t.loadComplete()):3===t.media.networkState||75===e?(clearInterval(i),void t.error()):void e++},50)},loadComplete:function(){var e=this;this.$media.on("error",function(){e.error()}),this.$media.on("play canplay pause",function(){e.controlStatus(),e.playedStatus()}),this.$media.on("loadedmetadata loadeddata progress canplay canplaythrough timeupdate durationchange",function(){e.playedStatus(),e.timeStatus(),e.seekStatus()}),this.$media.on("ended",function(){e.seekReset()}),this.$media.on("volumechange",function(){e.muteStatus(),e.volumeStatus()}),"video"===this.type&&(h(document).on("webkitfullscreenchange mozfullscreenchange MSFullscreenChange fullscreenchange",function(){e.fullscreenStatus()}),this.$player.on("mouseenter mouseleave",function(t){switch(e.activity=!0,t.type){case"mouseenter":e.over=!0;break;case"mouseleave":e.over=!1}}),this.$element.on("mousemove mousedown mouseup keydown keyup touchmove touchstart touchend",function(t){switch(e.activity=!0,t.type){case"mousedown":case"touchstart":clearInterval(e.mouseActivity),e.mouseActivity=setInterval(function(){e.activity=!0},250);break;case"mouseup":case"touchend":clearInterval(e.mouseActivity)}}),this.$media.on("click",function(){e.toggle(),e._focusHelper()}),this.activityInit()),this.$player.on("click",'[data-cfw-player="play"]',function(t){t.preventDefault(),e.media.play(),e._focusControl(e.$player.find('[data-cfw-player="pause"]')[0])}),this.$player.on("click",'[data-cfw-player="pause"]',function(t){t.preventDefault(),e.media.pause(),e._focusControl(e.$player.find('[data-cfw-player="play"]')[0])}),this.$player.on("click",'[data-cfw-player="stop"]',function(t){t.preventDefault(),e.stop(),e._focusControl(this)}),this.$player.on("click",'[data-cfw-player="mute"]',function(t){t.preventDefault(),e.mute(),e._focusControl(this)}),this.$player.on("click",'[data-cfw-player="loop"]',function(t){t.preventDefault(),e.loop(),e._focusControl(this)}),this.$player.on("click",'[data-cfw-player="fullscreen"]',function(t){t.preventDefault(),e.fullscreen(),e._focusControl(this)}),this.$player.on("click",'[data-cfw-player="description"]',function(t){t.preventDefault(),e.description(),e._focusControl(this)}),this.$element.on("keydown",function(t){e._actionsKeydown(t)}),this.controlStatus(),this.volumeSupport(),this.timeStatus(),this.seekStatus(),this.muteStatus(),this.volumeStatus(),this.loopStatus();var t=this.$element.find('[data-cfw-player="caption-display"]');
vendor: 12,315 bytes, line 10
10t.length&&(this.$captionWrapper=t,this.captionDisplayUpdate(null)),this.trackList(),this.trackInit(),this.scriptInit(),this.textDescriptionInit(),this.$player.addClass("ready");t=document.createElement("div");t.className="player-focus sr-only",t.tabIndex="-1",this.$focus=h(t),this.$element.prepend(this.$focus),this.$media.CFW_trigger("ready.cfw.player"),this.media.autoplay&&this.media.play(),this.$element.attr("data-cfw-mutate","").CFW_mutationListen().on("mutate.cfw.mutate",function(){h(this).is(":hidden")&&e.media.pause()})},error:function(){this.$media.CFW_trigger("error.cfw.player")},toggle:function(){this.media.paused?(this.playedStatus(!0),this.media.play()):this.media.pause()},play:function(){this.playedStatus(!0),this.media.play()},pause:function(){this.media.pause()},stop:function(){this.media.pause(),this.seekTo(0)},controlStatus:function(){var t=this.$player.find('[data-cfw-player="control"]'),e=this.$player.find('[data-cfw-player="play"]'),i=this.$player.find('[data-cfw-player="pause"]');t.removeClass("pause play"),e.add(i).removeClass("on off").addClass("off"),this.media.paused?(t.addClass("pause"),e.removeClass("off").addClass("on"),this.$element.addClass("player-paused")):(t.addClass("play"),i.removeClass("off").addClass("on"),this.$element.removeClass("player-paused"))},playedStatus:function(t){void 0===t&&(t=!1),this.played||(t||0<this.media.played.length)&&(this.played=!0,this.$element.removeClass("player-unstarted"))},timeStatus:function(){this.status.duration=this.media.duration,this.status.currentTime=this.media.currentTime,this.status.remaining=this.status.duration-this.status.currentTime,this.status.remaining<0&&(this.status.remaining=0);var t=this.$player.find('[data-cfw-player="time-duration"]'),e=this.$player.find('[data-cfw-player="time-current"]'),i=this.$player.find('[data-cfw-player="time-remainder"]');0<this.status.duration?this.$player.removeClass("player-notime"):this.$player.addClass("player-notime"),this.status.duration===1/0?this.$player.addClass("player-live"):this.$player.removeClass("player-live"),t.html(this.timeSplit(this.status.duration)),e.html(this.timeSplit(this.status.currentTime)),i.html(this.timeSplit(this.status.remaining))},timeSplit:function(t){!isNaN(t)&&t!==1/0||(t=0);var e=Math.floor(t/3600),i=Math.floor(t/60)-60*e,t=Math.floor(t)-3600*e-60*i,t=this.timeDigits(i)+":"+this.timeDigits(t);return t=0===(t=0<e?e+":"+t:t).indexOf("0")?t.substr(1):t},timeDigits:function(t){return("0"+t).slice(-2)},seekStatus:function(){var t=this.$player.find('[data-cfw-player="seek"]');t.find('input[type="range"]').length?this.seekRange():t.hasClass("progress")&&this.seekProgress()},seekRange:function(){var i,t,s=this;isNaN(this.media.duration)||this.media.duration===1/0||(i=this.$player.find('[data-cfw-player="seek"]').find('input[type="range"]').eq(0),null===this.$sliderSeek&&((this.$sliderSeek=i).prop({min:0,max:this.media.duration,step:1}),i.on("change input",function(){var t=parseFloat(i.val()),e=s.media.paused;s.media.pause(),s.seekTo(t),e||s.media.play()}),i.on("keydown",function(t){"keydown"===t.type&&t.stopPropagation(),h(this).off("keyup.cfw.playerSeek"),h(this).one("keyup.cfw.playerSeek",function(t){"keyup"===t.type&&t.stopPropagation()})})),i.val(this.media.currentTime),t=this.timeSplit(this.media.currentTime)+" / "+this.timeSplit(this.media.duration),i.attr("aria-valuetext",t))},seekProgress:function(){var t,e;isNaN(this.media.duration)||this.media.duration===1/0||((t=this.$player.find('[data-cfw-player="seek-current"]')).attr("role","progressbar").attr("aria-label","Playback progress"),100<(e=this.media.currentTime/this.media.duration*100)&&(e=100),t.attr({"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e}).css("width",e+"%"))},seekReset:function(){this.media.loop?this.media.play():this.media.pause()},seekIncrement:function(t){t=this.media.currentTime+t;(t=t<0?0:t)>this.media.duration&&(t=this.media.duration),this.seekTo(t)},seekTo:function(t){var e=this.media.seekable;0<e.length&&t>=e.start(0)&&t<=e.end(0)&&(this.media.currentTime=t)},mute:function(){this.media.muted=!this.media.muted,this.muteStatus(),this.volumeStatus()},muteStatus:function(){var t=this.$player.find('[data-cfw-player="mute"]');this.support.mute?this.media.muted?t.addClass("active"):t.removeClass("active"):this._controlDisable(t)},volumeSupport:function(){var t=this.media.muted,e=this.media.volume,i=.5;.5===this.media.volume&&(i=.25),this.media.volume=i,this.media.volume!==i&&(this.support.mute=!1,this.support.volume=!1),this.media.volume=e,this.media.muted=t},volumeStatus:function(){this.$player.find('[data-cfw-player="volume"]').find('input[type="range"]').length&&this.volumeRange()},volumeRange:function(){var e,t,i=this,s=this.$player.find('[data-cfw-player="volume"]');this.support.mute?(e=s.find('input[type="range"]').eq(0),null===this.$volSeek&&((this.$volSeek=e).prop({min:0,max:1,step:.05}),e.on("change input",function(){var t=parseFloat(e.val());0===t?i.media.muted=!0:(i.media.muted=!1,i.media.volume=t)}),e.on("keydown",function(t){"keydown"===t.type&&t.stopPropagation(),h(this).off("keyup.cfw.playerSeek"),h(this).one("keyup.cfw.playerSeek",function(t){"keyup"===t.type&&t.stopPropagation()})})),this.media.muted?(e.val(0),e.attr("aria-valuetext","0%")):(e.val(this.media.volume),t=parseInt(100*this.media.volume,10),e.attr("aria-valuetext",t+"%"))):this._controlDisable(s)},volumeIncrement:function(t){t=100*this.media.volume+t;100<(t=t<0?0:t)&&(t=100),this.media.volume=parseInt(t,10)/100},loop:function(t){this.media.loop=void 0!==t?t:!this.media.loop,this.loopStatus()},speed:function(t){void 0!==t&&(this.media.playbackRate=t)},loopStatus:function(){var t=this.$player.find('[data-cfw-player="loop"]');this.media.loop?(t.addClass("active"),this._pressedState(t,!0)):(t.removeClass("active"),this._pressedState(t,!1))},isFullScreen:function(){return h(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement).is(this.$element)},fullscreen:function(){var t;"audio"!==this.type&&(this.isFullScreen()?document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():(t=this.$element[0]).requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen())},fullscreenStatus:function(){var t=this.$player.find('[data-cfw-player="fullscreen"]');this.isFullScreen()?(t.addClass("active"),this.$element.addClass("player-fulldisplay"),this.$media.CFW_trigger("enterFullscreen.cfw.player")):(t.removeClass("active"),this.$element.removeClass("player-fulldisplay"),this.$media.CFW_trigger("exitFullscreen.cfw.player"))},_srcHasAlternate:function(t){return this.$sources[0].hasAttribute("data-src-"+t)},_srcIsAlternate:function(t){return this.$sources.first().attr("data-src-"+t)===this.$sources.first().attr("src")},_srcLoadAlternate:function(t){var e=this,i=this.media.currentTime,s=this.media.paused;this.$sources.each(function(){h(this).attr("src",h(this).attr("data-src-"+t))}),this.$media.one("loadeddata",function(){e.seekTo(i),s||e.media.play()}),this.media.load()},description:function(){var t;this._srcHasAlternate("describe")&&(t=this.$player.find('[data-cfw-player="description"]'),this._srcIsAlternate("describe")?(this._srcLoadAlternate("orig"),t.removeClass("active")):(this._srcLoadAlternate("describe"),t.addClass("active")))},trackList:function(){var t=this,e=this.media.textTracks;if(!(e.length<=0)){for(var i=[],s=[],n=0;n<e.length;n++)"captions"!==e[n].kind&&"subtitles"!==e[n].kind||i.push(n),"descriptions"===e[n].kind&&s.push(n);this.trackValid=i,this.trackDescription=s,this.media.textTracks.addEventListener("change",function(){t.trackStatus()})}},trackInit:function(){var e=this,i=this.$player.find('[data-cfw-player="caption"]');if(!(i.length<=0))if(this.trackValid.length<=0)this._controlDisable(i);else{if(1===this.trackValid.length)this.$player.on("click",'[data-cfw-player="caption"]',function(t){t.preventDefault(),i.hasClass("active")?e.trackSet(-1):e.trackSet(0),e._focusControl(this)}),"showing"===this.media.textTracks[0].mode&&this.trackSet(0);else{var t=h('<ul class="player-caption-menu dropdown-menu"></ul>');i.wrap('<span class="player-caption-wrapper"></span>'),i.parent().append(t);var s=t.CFW_getID("cfw-player"),n=h('<li class="player-caption-off"><button type="button" class="dropdown-item" data-cfw-player-track="-1">Off</button></li>');t.append(n);for(var a=this.media.textTracks,r=0;r<a.length;r++)"showing"===a[r].mode&&this.trackSet(r);for(var o=0;o<this.trackValid.length;o++){var l=this.trackValid[o],n=h('<li><button type="button" class="dropdown-item" data-cfw-player-track="'+l+'">'+a[l].label+"</button></li>");t.append(n)}this.$player.on("click","[data-cfw-player-track]",function(t){t.preventDefault();t=h(this).attr("data-cfw-player-track");e.trackSet(t)}),i.CFW_Dropdown({target:"#"+s})}this.trackStatus()}},trackSet:function(t){t=parseInt(t,10);var e=this.media.textTracks;if(!(e.length<=0)){-1!==this.trackCurrent&&this._cuechangeDisable(this.trackCurrent,"captionDisplay"),this.trackCurrent=t;for(var i=0;i<e.length;i++)"showing"===e[i].mode&&(e[i].mode="hidden"),i===t&&(e[i].mode=null!==this.$captionWrapper?"hidden":"showing");-1!==this.trackCurrent&&null!==this.$captionWrapper&&this._cuechangeEnable(this.trackCurrent,"captionDisplay",this.captionDisplayUpdate),this.trackStatus()}},trackStatus:function(){var t=this.media.textTracks;if(!(t.length<=0)){var e=this.$player.find('[data-cfw-player="caption"]');if(!(e.length<=0))if(1===this.trackValid.length)-1===this.trackCurrent?(e.removeClass("active"),this._pressedState(e,!1)):(e.addClass("active"),this._pressedState(e,!0));else{var i=e.parent();e.removeClass("active"),i.removeClass("active"),i.find("[data-cfw-player-track]").removeClass("active").removeAttr("aria-pressed");for(var s=0;s<t.length;s++)s===this.trackCurrent&&(e.addClass("active"),i.addClass("active"),i.find('[data-cfw-player-track="'+s+'"]').addClass("active").attr("aria-pressed","true"))}}},scriptInit:function(){var e=this,i=this.$player.find('[data-cfw-player="transcript"]');if(!(i.length<=0))if(this.trackValid.length<=0)this._controlDisable(i);else{if(1!==this.trackValid.length||this.settings.transcriptOption){var t=h('<ul class="player-script-menu dropdown-menu"></ul>');i.wrap('<span class="player-script-wrapper"></span>'),i.parent().append(t);var s=t.CFW_getID("cfw-player"),n=h('<li class="player-script-off"><button type="button" class="dropdown-item" data-cfw-player-script="-1">Off</button></li>');t.append(n);for(var a,r=this.media.textTracks,o=0;o<this.trackValid.length;o++){var l=this.trackValid[o],n=h('<li><button type="button" class="dropdown-item" data-cfw-player-script="'+l+'">'+r[l].label+"</a></li>");t.append(n)}this.settings.transcriptOption&&(n=h('<li class="dropdown-divider"></li>'),t.append(n),a=this.settings.transcriptScroll?"checked":"",n=h('<li class="dropdown-text"><div class="form-check"><input type="checkbox" data-cfw-player-script-scroll class="form-check-input" '+a+' id="'+(a="transcriptScroll-"+s)+'"> <label class="form-check-label" for="'+a+'">Auto-scroll</label></div></li>'),t.append(n),a=this.settings.transcriptDescribe?"checked":"",n=h('<li class="dropdown-text"><div class="form-check"><input type="checkbox" data-cfw-player-script-describe class="form-check-input" '+a+' id="'+(a="transcriptDescribe-"+s)+'"> <label class="form-check-label" for="'+a+'">Show Description</label></div></li>'),t.append(n)),this.$player.on("click","[data-cfw-player-script]",function(t){t.preventDefault();t=h(this).attr("data-cfw-player-script");e.scriptSet(t)}),this.settings.transcriptOption&&(this.$player.on("click","[data-cfw-player-script-scroll]",function(){e.settings.transcriptScroll=!e.settings.transcriptScroll,h(this).prop("checked",e.settings.transcriptScroll)}),this.$player.on("click","[data-cfw-player-script-describe]",function(t){e._controlIsDisabled(h(t.target))||(e.settings.transcriptDescribe=!e.settings.transcriptDescribe,h(this).prop("checked",e.settings.transcriptDescribe),e.scriptLoad())}
10)),i.CFW_Dropdown({target:"#"+s})}else i.removeClass("active"),this._pressedState(i,!1),i.on("click",function(t){t.preventDefault(),i.hasClass("active")?e.scriptSet(-1):e.scriptSet(0),e._focusControl(this)});-1!==this.settings.transcript&&this.scriptSet(this.settings.transcript)}},scriptSet:function(t){var e,i;t=parseInt(t,10),this.trackValid.length<=0||-1===this.trackValid.indexOf(t)&&-1!==t||t!==this.scriptCurrent&&(-1!==t||null===this.$scriptElm||this.$media.CFW_trigger("beforeTranscriptHide.cfw.player"))&&this.$media.CFW_trigger("beforeTranscriptShow.cfw.player")&&(e=this.$player.find('[data-cfw-player="transcript"]'),null!==this.$scriptElm&&(this.$scriptElm.remove(),this.$scriptElm=null),this.$element.removeClass("player-scriptshow"),e.length&&(1!==this.trackValid.length||this.settings.transcriptOption?(i=e.parent(),e.removeClass("active"),i.removeClass("active"),i.find("[data-cfw-player-script]").removeClass("active").removeAttr("aria-pressed")):(e.removeClass("active"),this._pressedState(e,!1))),-1!==this.scriptCurrent&&this._cuechangeDisable(this.scriptCurrent,"transcript"),-1===(this.scriptCurrent=t)?(this.scriptCues=null,this.descCues=null,this.$media.CFW_trigger("afterTranscriptHide.cfw.player")):this.scriptLoad())},scriptLoad:function(t){var n=this;void 0===t&&(t=!1),this.$media.off("loadeddata.cfw.player.script");var e=this.media.textTracks,i=e.length;i<=0&&(this.scriptCues=null,this.descCurrent=-1,this.descCues=null);for(var s=-1===this.trackCurrent?null:e[this.trackCurrent].mode,a=0;a<i;a++)e[a].mode="hidden";null!==s&&(e[this.trackCurrent].mode=s);var r=!1;if(this.descCurrent=-1,this.descCues=null,-1!==this.scriptCurrent)for(var o=e[this.scriptCurrent].language,l=0;l<i;l++)o===e[l].language&&"descriptions"===e[l].kind&&(n.settings.transcriptDescribe&&(n.descCurrent=l),r=!0);s=this.$player.find("[data-cfw-player-script-describe]");r?this._controlEnable(s):this._controlDisable(s);for(var c=!1,h=0;h<i;h++)"descriptions"===e[h].kind&&(c=!0);s=this.$player.find('[data-cfw-player="textdescription"]');c?this._controlEnable(s):this._controlDisable(s);setTimeout(function(){!function(t){var e=n.media.textTracks,i=-1===n.scriptCurrent?null:e[n.scriptCurrent].cues,s=-1===n.descCurrent?null:e[n.descCurrent].cues,e=-1===n.textDescribeCurrent?null:e[n.textDescribeCurrent].cues;if(i&&i.length<=0&&!t)return n.$media.one("loadeddata.cfw.player.script",function(){n.scriptLoad(!0)}),n.$media.trigger("load");n.scriptCues=i,n.descCues=s,n.textDescribeCues=e,n.scriptProcess()}(t)},100)},scriptProcess:function(){var e=this;if(null!==this.scriptCues||null!==this.descCues){var t,i=function(t,e){var i=h('<span class="player-transcript-seekpoint player-transcript-caption"></span>'),s=e.getCueAsHTML();i.append(s),i.attr({"data-start":e.startTime.toString(),"data-end":e.endTime.toString()}),t.append(i),t.append("\n")},s=function(t,e){var i=h('<div class="player-description"></div>');i.append('<span class="sr-only">Description: </span>');var s=h('<span class="player-description-seekpoint player-description-caption"></span>'),n=e.getCueAsHTML();s.append(n),s.attr({"data-start":e.startTime.toString(),"data-end":e.endTime.toString()}),i.append(s),t.append(i),t.append("\n")},n=this.$player.find('[data-cfw-player="transcript"]');this.$element.addClass("player-scriptshow"),1!==this.trackValid.length||this.settings.transcriptOption?n.length&&(t=n.parent(),n.addClass("active"),t.addClass("active"),t.find('[data-cfw-player-script="'+this.scriptCurrent+'"]').addClass("active").attr("aria-pressed","true")):(n.addClass("active"),this._pressedState(n,!0)),this.$element.find(".player-transcript").remove();n=h('<div class="player-transcript"></div>');this.$element.append(n),this.$scriptElm=this.$element.find(".player-transcript");for(var a=this.scriptCues||[],r=this.descCues||[],o=0,l=0,c=null;o<a.length||l<r.length;)null!==(c=l<r.length&&o<a.length?Math.min(r[l].startTime,a[o].startTime):null)?void 0!==r[l]&&r[l].startTime===c?(s(this.$scriptElm,r[l]),l+=1):(i(this.$scriptElm,a[o]),o+=1):l<r.length?(s(this.$scriptElm,r[l]),l+=1):o<a.length&&(i(this.$scriptElm,a[o]),o+=1);this._cuechangeEnable(this.scriptCurrent,"transcript",this.scriptHighlight),h(this.seekPoint,this.$scriptElm).off("
10click.cfw.player.scriptseek").on("click.cfw.player.scriptseek",function(){var t=parseFloat(h(this).attr("data-start"));e.scriptSeek(t)}),this.$media.CFW_trigger("afterTranscriptShow.cfw.player")}},scriptHighlight:function(t){var e,i,s;h(".player-transcript-active",this.$scriptElm).removeClass("player-transcript-active"),t.length<=0||(i=t[0].startTime,(s=h('.player-transcript-caption[data-start="'+i+'"]',this.$scriptElm)).addClass("player-transcript-active"),this.settings.transcriptScroll&&(e=this.$scriptElm.scrollTop(),t=this.$scriptElm.innerHeight()/2,i=s.position().top,s=s.height()/2,(s=Math.floor(e+i-t+s))!==Math.floor(e)&&this.$scriptElm.scrollTop(s)))},scriptSeek:function(t){var e=this;t+=.01,this.media.readyState<2?(this.$media.one("canplay",function(){e.seekTo(t)}),this.$media.trigger("load")):this.seekTo(t)},textDescriptionInit:function(){var e=this,t=this.$player.find('[data-cfw-player="textdescription"]');if(!(t.length<=0))if(this.trackDescription.length<=0)this._controlDisable(t);else{var i=h('<ul class="player-text-describe-menu dropdown-menu"></ul>');t.wrap('<span class="player-text-describe-wrapper"></span>'),t.parent().append(i);var s=i.CFW_getID("cfw-player"),n=h('<li class="player-text-describe-off"><button type="button" class="dropdown-item" data-cfw-player-text-describe="-1">Off</button></li>');i.append(n);for(var a,r=this.media.textTracks,o=0;o<this.trackDescription.length;o++){var l=this.trackDescription[o],n=h('<li><button type="button" class="dropdown-item" data-cfw-player-text-describe="'+l+'">'+r[l].label+"</a></li>");i.append(n)}this.settings.transcriptOption&&(n=h('<li class="dropdown-divider"></li>'),i.append(n),a=this.settings.textDescribeAnnounce?"checked":"",n=h('<li class="dropdown-text"><div class="form-check"><input type="checkbox" data-cfw-player-text-describe-announce class="form-check-input" '+a+' id="'+(a="textDescribeAnnounce-"+s)+'"> <label class="form-check-label" for="'+a+'">Announce with Screen Reader</label></div></li>'),i.append(n),a=this.settings.textDescribeVisible?"checked":"",n=h('<li class="dropdown-text"><div class="form-check"><input type="checkbox" data-cfw-player-text-describe-visible class="form-check-input" '+a+' id="'+(a="textDescribeVisible-"+s)+'"> <label class="form-check-label" for="'+a+'">Visible Description</label></div></li>'),i.append(n)),this.$player.on("click","[data-cfw-player-text-describe]",function(t){t.preventDefault();t=h(this).attr("data-cfw-player-text-describe");e.textDescriptionSet(t)}),this.settings.transcriptOption&&(this.$player.on("click","[data-cfw-player-text-describe-announce]",function(){e.settings.textDescribeAnnounce=!e.settings.textDescribeAnnounce,h(this).prop("checked",e.settings.textDescribeAnnounce),e.textDescriptionSet(e.textDescribeCurrent)}),this.$player.on("click","[data-cfw-player-text-describe-visible]",function(t){e._controlIsDisabled(h(t.target))||(e.settings.textDescribeVisible=!e.settings.textDescribeVisible,h(this).prop("checked",e.settings.textDescribeVisible),e.textDescriptionSet(e.textDescribeCurrent))})),t.CFW_Dropdown({target:"#"+s}),this.textDescriptionSet(this.settings.textDescribe)}},textDescriptionSet:function(t){if(t=parseInt(t,10),!(this.trackDescription.length<=0||-1===this.trackDescription.indexOf(t)&&-1!==t)){if(-1===t&&null!==this.$textDescribeElm){if(!this.$media.CFW_trigger("beforeTextDescriptionHide.cfw.player"))return}else if(!this.$media.CFW_trigger("beforeTextDescriptionShow.cfw.player"))return;null!==this.$textDescribeElm&&(this.$textDescribeElm.remove(),this.$textDescribeElm=null),this.$element.removeClass("player-textdescshow"),this.$element.find(".player-textdesc-announce").remove(),this.$element.find(".player-textdesc-visible").remove();var e,i=this.$player.find('[data-cfw-player="textdescription"]');i.length&&(e=i.parent(),i.removeClass("active"),e.removeClass("active"),e.find("[data-cfw-player-text-describe]").removeClass("active").removeAttr("aria-pressed"),-1!==t&&(i.addClass("active"),e.addClass("active"),e.find('[data-cfw-player-text-describe="'+t+'"]').addClass("active").attr("aria-pressed","true"))),-1!==this.textDescribeCurrent&&this._cuechangeDisable(this.textDescribeCurrent,"textdescribe"),-1===(this.textDescribeCurrent=t)?(this.textDescribeCues=null,this.$media.
vendor: 4,930 bytes, line 10
10CFW_trigger("afterTextDescriptionHide.cfw.player")):this.scriptLoad(),-1!==t&&(e=h('<div class="player-textdesc"></div>'),(t=this.media.textTracks[t].language).length&&e.attr("lang",t),this.settings.textDescribeAnnounce&&e.attr({"aria-live":"assertive","aria-atomic":"true"}),this.settings.textDescribeVisible||e.addClass("sr-only"),this.$element.append(e),this.$textDescribeElm=this.$element.find(".player-textdesc"),this._cuechangeEnable(this.textDescribeCurrent,"textdescribe",this.textDescribeUpdate),this.$media.CFW_trigger("afterTextDescriptionShow.cfw.player"))}},textDescribeUpdate:function(t){var e;null===t||t.length<=0?this.$textDescribeElm.empty():((e=h(document.createElement("div"))).append(t[0].getCueAsHTML()),e=e.html().replace("\n","<br>"),this.$textDescribeElm.append(e))},activityInit:function(){var t=this;setInterval(function(){t.activity&&!t.over&&(t.activity=!1,clearTimeout(t.activityTimer),t.activityStatus(!0),t.activityTimer=setTimeout(function(){t.activity||t.activityStatus(!1)},1e3))},250)},activityStatus:function(t){t!==this.userActive&&((this.userActive=t)?(this.activity=!0,this.$element.removeClass("player-inactive")):(this.activity=!1,this.$element.one("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.$element.addClass("player-inactive")))},captionDisplayUpdate:function(t){var e;null!==this.$captionWrapper&&(-1===this.trackCurrent||null===t||t.length<=0?this.$captionWrapper.attr("aria-hidden","true").css("display","none").empty():((e=h(document.createElement("div"))).append(t[0].getCueAsHTML()),e=e.html().replace("\n","<br>"),this.$captionWrapper.removeAttr("aria-hidden").css("display","").append(e)))},_actionsKeydown:function(t){if(/(32|33|34|35|36|37|38|39|40|70|77)/.test(t.which)&&32!==t.which&&"button"!==t.target.tagName&&"button"!==h(t.target).attr("role"))switch(t.stopPropagation(),t.preventDefault(),t.which){case 32:this.media.paused?this.media.play():this.media.pause(),this._focusHelper();break;case 38:this.volumeIncrement(5);break;case 40:this.volumeIncrement(-5);break;case 36:this.seekTo(0);break;case 35:this.seekTo(this.media.duration);break;case 37:this.seekIncrement(-5);break;case 39:this.seekIncrement(5);break;case 33:this.seekIncrement(this.status.duration/5);break;case 34:this.seekIncrement(this.status.duration/-5);break;case 70:this.fullscreen();break;case 77:this.mute()}},_pressedState:function(t,e){var i,s;t.length<=0||(i=t.get(0).nodeName.toLowerCase(),s=t.attr("role"),"button"!==i&&"button"!==s||t.attr("aria-pressed",e))},_focusControl:function(t){var e=h(t);e.length<=0||setTimeout(function(){(e.is("a, button")?e:e.find("a:visible, button:visible").eq(0)).trigger("focus")},150)},_focusHelper:function(){var t=this,e=h(document.activeElement);setTimeout(function(){e.is(":visible")||t.$focus.trigger("focus")},10)},_controlEnable:function(t){t.removeClass("disabled").removeAttr("disabled").closest("label").removeClass("disabled")},_controlDisable:function(t){t.is("button, input")?(t.prop("disabled",!0),t.closest("label").addClass("disabled")):t.addClass("disabled")},_controlIsDisabled:function(t){return t.is(".disabled, :disabled")},_cuechangeEnable:function(e,t,i){var s,n=this;void 0!==this.media.textTracks[e].oncuechange?h(this.media.textTracks[e]).on("cuechange.cfw.player."+t,function(){i.call(n,this.activeCues)}):this.$media.on("timeupdate.cfw.player."+t,function(){var t=n.media.textTracks[e].activeCues;i.call(n,t)}),void 0!==this.media.textTracks[e].oncuechange?(s=h.Event("cuechange"),h(this.media.textTracks[e]).trigger(s)):(s=h.Event("timeupdate"),this.$media.trigger(s))},_cuechangeDisable:function(t,e){h(this.media.textTracks[t]).off("cuechange.cfw.player."+e),this.$media.off("timeupdate.cfw.player."+e)},dispose:function(){clearTimeout(this.activityTimer),this.$scriptElm&&(h(this.seekPoint,this.$scriptElm).off(".cfw.player.seekpoint"),this.$scriptElm.remove()),this.$sliderSeek&&this.$sliderSeek.off(),this.$volSeek&&this.$volSeek.off(),h.hasData(this.$player.find('[data-cfw-player="caption"]'))&&this.$player.find('[data-cfw-player="caption"]').CFW_Dropdown("dispose"),h.hasData(this.$player.find('[data-cfw-player="transcript"]'))&&this.$player.find('[data-cfw-player="transcript"]').CFW_Dropdown("dispose"),this.$player.off(),this.$media.off(),this.$element.off().removeData("cfw.player"),this.$element=null,this.type=null,this.$media=null,this.media=null,this.$player=null,this.$sources=null,this.$focus=null,this.$sliderSeek=null,this.$volSeek=null,this.activity=null,this.over=null,this.userActive=null,this.activityTimer=null,this.mouseActivity=null,this.played=null,this.status=null,this.support=null,this.trackValid=null,this.trackCurrent=null,this.$captionWrapper=null,this.$scriptElm=null,this.scriptCurrent=null,this.scriptCues=null,this.descCues=null,this.trackDescription=null,this.$textDescribeElm=null,this.textDescribeCurrent=null,this.textDescribeCues=null,this.settings=null}}
10,h.fn.CFW_Player=function(s){var n=[].splice.call(arguments,1);return this.each(function(){var t=h(this),e=t.data("cfw.player"),i="object"==typeof s&&s;e||t.data("cfw.player",e=new a(this,i)),"string"==typeof s&&e[s].apply(e,n)})},h.fn.CFW_Player.Constructor=a}(jQuery),function(i){"use strict";var s={'[data-cfw-dismisss="alert"]':"CFW_Alert",'[data-cfw="collapse"]':"CFW_Collapse",'[data-cfw="dropdown"]':"CFW_Dropdown",'[data-cfw="tab"]':"CFW_Tab",'[data-cfw="tooltip"]':"CFW_Tooltip",'[data-cfw="popover"]':"CFW_Popover",'[data-cfw="modal"]':"CFW_Modal",'[data-cfw="affix"]':"CFW_Affix",'[data-cfw="tabResponsive"]':"CFW_TabResponsive",'[data-cfw="accordion"]':"CFW_Accordion",'[data-cfw="slideshow"]':"CFW_Slideshow",'[data-cfw="scrollspy"]':"CFW_Scrollspy",'[data-cfw="lazy"]':"CFW_Lazy",'[data-cfw="equalize"]':"CFW_Equalize",'[data-cfw="player"]':"CFW_Player"};i.fn.CFW_Init=function(){var t,e=i(this);for(t in e.length||(e=i(document.body)),s)"function"==typeof i.fn[s[t]]&&e.find(t).add(e.filter(t)).each(function(){i(this)[s[t]]()});return this},i.fn.CFW_Dispose=function(){var t,e=i(this);for(t in e.length||(e=i(document.body)),s)"function"==typeof i.fn[s[t]]&&e.find(t).add(e.filter(t)).each(function(){i(this)[s[t]]("dispose")});return this},i(window).ready(function(){"undefined"!=typeof CFW_API&&!1===CFW_API||i(document.body).CFW_Init()})}(jQuery);

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.