|
|
|
(()=>{var e={545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Foundation=void 0;var i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=(i=n(609))&&i.__esModule?i:{default:i},a=n(318),s=n(857),u={version:"6.5.1",_plugins:{},_uuids:[],plugin:function(e,t){var n=t||l(e),i=d(n);this._plugins[i]=this[n]=e},registerPlugin:function(e,t){var n=t?d(t):l(e.constructor).toLowerCase();e.uuid=(0,a.GetYoDigits)(6,n),e.$element.attr("data-"+n)||e.$element.attr("data-"+n,e.uuid),e.$element.data("zfPlugin")||e.$element.data("zfPlugin",e),e.$element.trigger("init.zf."+n),this._uuids.push(e.uuid)},unregisterPlugin:function(e){var t=d(l(e.$element.data("zfPlugin").constructor));for(var n in this._uuids.splice(this._uuids.indexOf(e.uuid),1),e.$element.removeAttr("data-"+t).removeData("zfPlugin").trigger("destroyed.zf."+t),e)e[n]=null},reInit:function(e){var t=e instanceof r.default;try{if(t)e.each((function(){(0,r.default)(this).data("zfPlugin")._init()}));else{var n=void 0===e?"undefined":o(e),i=this;({object:function(e){e.forEach((function(e){e=d(e),(0,r.default)("[data-"+e+"]").foundation("_init")}))},string:function(){e=d(e),(0,r.default)("[data-"+e+"]").foundation("_init")},undefined:function(){this.object(Object.keys(i._plugins))}})[n](e)}}catch(e){console.error(e)}finally{return e}},reflow:function(e,t){void 0===t?t=Object.keys(this._plugins):"string"==typeof t&&(t=[t]);var n=this;r.default.each(t,(function(t,i){var o=n._plugins[i];(0,r.default)(e).find("[data-"+i+"]").addBack("[data-"+i+"]").each((function(){var e=(0,r.default)(this),t={};if(e.data("zfPlugin"))console.warn("Tried to initialize "+i+" on an element that already has a Foundation plugin.");else{e.attr("data-options")&&e.attr("data-options").split(";").forEach((function(e,n){var i,o=e.split(":").map((function(e){return e.trim()}));o[0]&&(t[o[0]]="true"===(i=o[1])||"false"!==i&&(isNaN(1*i)?i:parseFloat(i)))}));try{e.data("zfPlugin",new o((0,r.default)(this),t))}catch(e){console.error(e)}finally{return}}}))}))},getFnName:l,addToJquery:function(e){return e.fn.foundation=function(t){var n=void 0===t?"undefined":o(t),i=e(".no-js");if(i.length&&i.removeClass("no-js"),"undefined"===n)s.MediaQuery._init(),u.reflow(this);else{if("string"!==n)throw new TypeError("We're sorry, "+n+" is not a valid parameter. You must use a string representing the method you wish to invoke.");var r=Array.prototype.slice.call(arguments,1),a=this.data("zfPlugin");if(void 0===a||void 0===a[t])throw new ReferenceError("We're sorry, '"+t+"' is not an available method for "+(a?l(a):"this element")+".");1===this.length?a[t].apply(a,r):this.each((function(n,i){a[t].apply(e(i).data("zfPlugin"),r)}))}return this},e}};function l(e){if(void 0===Function.prototype.name){var t=/function\s([^(]{1,})\(/.exec(e.toString());return t&&t.length>1?t[1].trim():""}return void 0===e.prototype?e.constructor.name:e.prototype.constructor.name}function d(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}u.util={throttle:function(e,t){var n=null;return function(){var i=this,o=arguments;null===n&&(n=setTimeout((function(){e.apply(i,o),n=null}),t))}}},window.Foundation=u,function(){Date.now&&window.Date.now||(window.Date.now=Date.now=function(){return(new Date).getTime()});for(var e=["webkit","moz"],t=0;t<e.length&&!window.requestAnimationFrame;++t){var n=e[t];window.requestAnimationFrame=window[n+"RequestAnimationFrame"],window.cancelAnimationFrame=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"]}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var i=0;window.requestAnimationFrame=function(e){var t=Date.now(),n=Math.max(i+16,t);return setTimeout((function(){e(i=n)}),n-t)},window.cancelAnimationFrame=clearTimeout}window.performance&&window.performance.now||(window.performance={start:Date.now(),now:function(){return Date.now()-this.start}})}(
|