UNPKG

nimble-ui

Version:
1 lines 27.3 kB
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s="ZUHL")}({"+mCz":function(t,e){},"/yfX":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAA1BMVEVHcEyC+tLSAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII="},"0Zk/":function(t,e,n){"use strict";e.a=function(t,e){return Object(r.a)(t,e).replace(/^[a-z]/,function(t){return t.toUpperCase()})};var r=n("lXuC")},"4Lki":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r={viewWidth:"undefined"!=typeof window&&window.innerWidth||0,viewHeight:"undefined"!=typeof window&&window.innerHeight||0,preLoadTop:0,preLoad:1.3}},"5fCB":function(t,e,n){"use strict";var r=n("E5mE"),i=n("eY/N");e.a=function t(){for(var e=!0,n=void 0,o=arguments.length,a=Array(o),c=0;c<o;c++)a[c]=arguments[c];if(a instanceof Array&&(n=a.slice(0,1)[0]),"boolean"==typeof n&&(e=n,a.splice(0,1),e||(n=a.splice(0,1)[0])),a&&a.length<1)return"boolean"==typeof n?a[1]:n;e&&(n=null);for(var u=0;u<a.length;u++){var s=a[u];if(s instanceof Object)if(e){for(var l in n&&n instanceof Object||(n=s instanceof Array?[]:{}),s)if(s.hasOwnProperty(l)){var f=s[l];if(h(f)){var p=h(n[l])&&n[l]||(f instanceof Array?[]:{});n[l]=t(p,f)}else void 0!==f?n[l]=f:void 0!==n[l]&&(n[l]=f)}}else n=n&&n instanceof Object?Object.assign(n,s):s}return n;function h(t){return t&&(Object(r.a)(t,"Array")||Object(i.a)(t))||!1}}},"6+6x":function(t,e,n){"use strict";var r="undefined"!=typeof window&&"IntersectionObserver"in window;e.a=r},"9B2K":function(t,e,n){"use strict";e.a=function(t,e,n){t=((t||"")+"").replace(/\s+/g,"");var c=n||window,u=e?"on":"";if(u+t in c)return t;var s=u?t:Object(r.a)(t);s=s.replace(/(start$|end$|animation|frame$)/gi,function(t,e){return Object(r.a)(e)});for(var l=0;l<o.length;l++){var f=o[l],p=f+s,h=f+t;if(u+p in c)return o=[f],a[t]=p,p;if(u+h in c)return o=[f],a[t]=h,h}var d=Object(i.a)("transition-property",!0);d&&u+d+s in c&&(t=d+s);return e?t:""};var r=n("0Zk/"),i=n("shrL"),o=["Moz","moz","Webkit","webkit","O","o","MS","ms"],a={}},E5mE:function(t,e,n){"use strict";e.a=function(t,e){var n=!1;try{n=Object.prototype.toString.call(t)==="[object "+e+"]"}catch(t){}return n}},FNmr:function(t,e,n){"use strict";e.a=function(t,e){var n="";if(t&&e)if(e.name){var i="$s"+(n=Object(r.a)(e.name));t.prototype&&!t.prototype[i]&&function(t,e,n){if(t&&e&&n){t[n]=e;try{Object.defineProperty(t,n,{get:function(){var t=this;return e._getParent=function(){return t},e},enumerable:!1,configurable:!1})}catch(t){}}}(t.prototype,e,i)}else console.error("Mount is not defined for the image name");return n};var r=n("0Zk/")},ImqO:function(t,e,n){"use strict";var r=function(){var t=!1;if("undefined"==typeof window)return t;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",function(){},e)}catch(t){}return t}();e.a=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"add",o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=o;"remove"!==i&&(o instanceof Object||!r||(a={capture:o,passive:!0}));e instanceof Array?e.forEach(function(t){c(t)}):c(e);function c(e){e&&t&&t[i+"EventListener"](e,n,a)}}},MEnT:function(t,e,n){"use strict";e.a=function(t){if("undefined"==typeof HTMLElement||!(t instanceof HTMLElement))return window;var e=t;for(;e&&e!==document.body&&e!==document.documentElement;){if(e!==t){if(e._isScroll)return e;if(!e.parentNode)break;if(!1!==e._isScroll){if(/(scroll|auto)/.test(i(e)))return e._isScroll=!0,e;e._isScroll=!1}}e=e.parentNode}return window};var r=n("fk+x");function i(t){return Object(r.a)(t,"overflow")+Object(r.a)(t,"overflow-y")+Object(r.a)(t,"overflow-x")}},PBGU:function(t,e,n){"use strict";var r=n("PEFE"),i=n("PDNl"),o=n("6+6x"),a=n("zagf"),c={};var u=n("uGS0");var s={};function l(t,e,n){t&&n&&t.classList&&(n.lazyLoadCla&&t.classList.remove(n.lazyLoadCla),n.lazyErrCla&&t.classList.remove(n.lazyErrCla),e&&t.classList.add(e))}var f,p=Object.assign({},i.a,{onlyCut:!1,loadingSrc:null,errorSrc:null,loading:null,attempt:1,attemptFilter:null,isWrap:!1,loadData:function(t,e,n){var r=t,i=0;!function t(o){o!==r.loadingSrc&&o||e(d.LOAD_END,{data:{src:o,naturalWidth:0,naturalHeight:0}}),function(t,e){return new Promise(function(n,r){if(t){var i="";i="string"==typeof t?t:"";var o=new Image,u=Object(a.a)(e,[o,t])||!1;if(i&&c[i])return o=null,void n(c[i]);o.onload=function(){o.onload=null,o.onerror=null;var t={naturalHeight:o.naturalHeight||o.height,naturalWidth:o.naturalWidth||o.width,src:o.src,image:o};i&&(c[i]=t),n(t),o=null},o.onerror=function(t){r(t),o=null},u||(o.src=t)}else r(new Error("src不能为:"+t))})}(o||"",function(t,n){n!==r.loadingSrc&&(e(d.START),e(d.LOADED))}).then(function(t){e(d.LOAD_END,{data:t})},function(r){i+=1,Object(u.a)(n,[o,i]).then(function(n){n?(e(d.RELOAD,{}),t(n)):e(d.LOAD_ERROR,{data:r})})})}(r.src)},lazyWrapCla:null,lazyCla:null,srcAttr:"src",isSetStyle:!1,accessHeight:!1}),h=Object.assign({},p||{},{imgFilter:null,intersectionPattern:o.a,imgRenderer:function(t){if(t){var e=t.options,n=t.data||{},r=t.el;if(r&&e){if(t.type===d.DESTROYED)return;switch(t.type+""){case d.LOAD_END:i(r,n.src||e.src,e,!0);break;case d.LOAD_ERROR:l(r,e.lazyErrCla||"",e),i(r,e.errorSrc,e);break;default:l(r,e.lazyCla||"",e),l(r,e.lazyLoadCla||"",e),i(r,e.loadingSrc,e)}}}function i(t,e,n,r){var i=(n&&n.srcAttr||"src")+"",o=/background/i.test(i);t&&e&&(o?t.style.backgroundImage="url("+e+")":t[i]=e,"src"!==i.toLowerCase()&&(t._src=e),n&&n.onlyCut||(r?function(t,e){if(t&&e){e.isSetStyle&&(t.style.width=e.width+"px",t.style.height=e.height+"px");var n=t.parentNode;t.classList&&(e.lazyCla&&t.classList.remove(e.lazyCla),e.lazyLoadCla&&t.classList.remove(e.lazyLoadCla),e.lazyErrCla&&t.classList.remove(e.lazyErrCla)),e.lazyWrapCla&&n&&n.classList&&n.classList.remove(e.lazyWrapCla),t._isWrap&&n&&(n.parentNode.replaceChild(t,n),t._isWrap=null)}}(t,n):function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"div",r=t.parentNode;if(e&&r&&!t._isWrap){if(e.isWrap){s[n]=s[n]||document.createElement(n);var i=s[n].cloneNode();e.width&&(i.style.width=e.width+"px"),e.height&&(i.style.height=e.height+"px"),t._isWrap=!0,r.replaceChild(i,t),i.appendChild(t),r=i}e.lazyWrapCla&&r&&r.classList.add(e.lazyWrapCla)}}(t,n)))}}});!function(t){t.LOADING="loading"}(f||(f={}));var d={INIT:"init",UPDATE:"update",START:"loadStart",LOADED:"loaded",RELOAD:"reload",LOAD_END:"loadEnd",LOAD_ERROR:"loadError",DESTROYED:"destroyed"};var v=function(t){function e(n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,r));i.defaultOption=p,i.isDel=!1,i.state=d.INIT,i._$scroll=null,i.oldSrc=null,i._errorCount=0;var o=i;return o.setDefaultOptions(r),o.content=n,setTimeout(function(){o._init&&o._init()},0),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.display=function(){var t=this,e=t.defaultOption;return Object(a.a)(e.loadData,[e,function(e,n){t._stateHandler(e,n)},function(t,n){var r=e&&e.attempt||0;return!!(r&&r-1>n)&&Object(u.a)(e.attemptFilter,[t,n,e])}],e),t},e.prototype.viewDisplay=function(t){var e=this.getOptions(t||{});if(this.isDel||this.state===d.START||this.state===d.LOADED||this.state===d.RELOAD||this.state===d.LOAD_ERROR&&-1!==e.errorCount&&(!e.errorCount||"number"==typeof this._errorCount&&this._errorCount>=e.errorCount))return!0;this.state===d.LOAD_ERROR&&(this._errorCount+=1);var n=this.checkInView(t);return n?(this.display(),n):n},e.prototype.update=function(t,e){if((e=e||{}).src===this.oldSrc)return!1;this.content=t,this.isDel=!1,this.oldSrc=e.src,this.setDefaultOptions(e),this._stateHandler(d.UPDATE)},e.prototype.destroyed=function(){this._$scroll=null,this.oldSrc=null,this._stateHandler(d.DESTROYED),this.content=null,this._events={}},e.prototype._stateHandler=function(t,e){var n=this.defaultOption;switch(this._init&&this._init(),this.state=t,t){case d.DESTROYED:case d.LOAD_END:this.isDel=!0}var r=Object.assign(e||{},{type:t,options:n,el:this.content});this.oldSrc&&(r.oldSrc=this.oldSrc),this.$emit(f.LOADING,r),Object(a.a)(n.loading,[r])},e.prototype._init=function(){this._init=function(){},this._stateHandler(d.INIT)},e}(r.a),y=n("qd2b"),O=n("kVEp"),b=n("yhx/");var w=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));r.defaultOption=h,r.name="LazyLoadImg";var i=r;return i.setDefaultOptions(n),i._intersection=i._init(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._init=function(){var t=this.defaultOption,e=void 0;return e=t&&t.intersectionPattern?new O.a(t):new b.a(t),this._init=function(){return e},e},e.prototype.push=function(t,e){return this._queueHandler(t,e)},e.prototype.update=function(t,e){return this._queueHandler(t,e,!0)},e.prototype.remove=function(t){var e=this._intersection;if(e){var n=e.getListener(t);n&&e.removeItem(n.index)}},e.prototype._queueHandler=function(t,e,n){var r=this,i=r._urlFormatter(e),o=function(){var e=new v(t,i);return e.$on(f.LOADING,function(t){r.$emit(f.LOADING,t),Object(a.a)(i&&i.imgRenderer,[t],i)}),e},c=r._intersection;return c&&(n?c.updateQueue(t,i,o):c.addQueue(o))},e.prototype._urlFormatter=function(t){for(var e in t)t.hasOwnProperty(e)&&void 0===t[e]&&delete t[e];var n=this.getOptions(t);n.src||console.error("imgLazy 传入参数不包含src",t),!n.errorSrc&&n.loadingSrc&&(n.errorSrc=n.loadingSrc),!n.onlyCut&&n.loadingSrc||(n.loadingSrc=n.src);var r=n.imgFilter;if(r){var i=Object(a.a)(r,[n],n);void 0!==i?n=i:console.error("imgLazy imgFilter必须有返回值")}return n},e}(y.a);n.d(e,!1,function(){return w});e.a=function(t){return w.instance(t)}},PDNl:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return r});var r,i=n("4Lki"),o=n("9B2K"),a=Object.assign({isShiftOut:!1,listenEvents:["scroll","wheel","mousewheel","resize",Object(o.a)("animationend",!0),Object(o.a)("transitionend",!0),"touchmove"],throttleWait:100,observerOptions:{threshold:0}},i.a);!function(t){t.UNOBSERVE="unobserve"}(r||(r={}))},PEFE:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("4Lki");var i=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));o.defaultOption=r.a,o.content=null,o._lastRun=0;var a=o;return a.setDefaultOptions(i),a.content=n,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getRect=function(t){var e=this.content;if(e){var n=Date.now(),r=n-(this._lastRun||0);(t||!this._rect||r>100)&&(this._lastRun=n,this._rect=e&&e.getBoundingClientRect()||{})}return this._rect},e.prototype.checkInView=function(t){t&&this.setDefaultOptions(!1,t);var e=this.defaultOption||{},n=this.getRect(!!t),r=e.preLoad||0,i=r,o=e.viewHeight||1024,a=e.viewWidth||800,c=Math.max(0,Math.ceil(e.realHeight/2)||0),u=Math.max(0,Math.ceil(e.realWidth/2)||0),s=(n.top||0)-c,l=(n.bottom||0)+c,f=(n.left||0)-u,p=(n.right||0)+u,h=e&&e.displayScale||0;if("number"==typeof h&&Math.abs(h)>0){var d=(n.height||0)*h,v=(n.width||0)*h;s+=d,l-=d,f+=v,p-=v}return s>=0-o*r&&s<o*i&&l>e.preLoadTop&&f>=0-a*r&&f<a*i&&p>0},e}(n("qd2b").a)},XAAj:function(t,e,n){"use strict";e.a=function(t){var e=document.createEvent("undefined"!=typeof MouseEvent?"MouseEvents":"Event");return e.initEvent(t,!0,!1),e}},Z05q:function(t,e,n){"use strict";e.a=function(t,e,n){if(t&&(t.tagName||t===window||t===document)&&e&&"string"==typeof e){var o=Object(r.a)(e);o._constructed=!0,o=Object(i.a)(!1,o,n),t.dispatchEvent(o)}};var r=n("XAAj"),i=n("5fCB")},ZMJv:function(t,e,n){"use strict";var r=n("uGS0");e.a=r.a},ZUHL:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("PBGU"),i=n("rRBi"),o=n("ZMJv"),a=n("wYIa"),c=(n("+mCz"),n("/yfX")),u=n.n(c),s={name:"lazy",initLazy:function(t){t=(t=t||{}).Lazy||t;var e=Object(i.a)({},{attempt:1,loadingSrc:u.a,errorSrc:u.a,imgFilter:null,isWrap:!0,lazyWrapCla:"nus_lazy-imgBox",lazyCla:"nus_lazy-img",isSetStyle:!0,getImageInfo:function(t){return{src:t}}},t),n=Object(r.a)(e);return{directive:{name:"lazy",bind:function(t,r){var o=r.value;o&&(o.width||o.height)&&c(r,t).then(function(r){n.defaultOption.imgRenderer({el:t,type:"init",options:Object(i.a)({},e,r)}),n.push(t,r)})},inserted:function(t,e){var r=e.value;r&&(r.width||r.height)||Object(a.a)(t,function(t){t&&c(e,t).then(function(e){n.update(t,e)})},{count:20,time:50})},update:function(t,e){c(e,t).then(function(e){n.update(t,e)})},unbind:function(t){n.remove(t)}},Lazy:n};function c(t,n){var r=function(t){var e=t;"string"==typeof t&&(e={src:t});return e}(t.value);return new Promise(function(a,c){var u=n.parentNode;Object(o.a)(e.getImageInfo,[r.src,Object(i.a)({width:u,height:u},r)]).then(function(e){var i=Object.assign({},r,e,function(t){var e={};t&&(t.poster?e.srcAttr="poster":(t.background||t.backgroundImage||t.bg)&&(e.srcAttr="background"));return e}(t.modifiers));n.src!==e.src&&n._src!==e.src&&a(i)})})}}};var l=n("p84V");e.default=Object(l.a)(function(t){return s.initLazy(t)},"lazy")},eETc:function(t,e,n){"use strict";var r,i={INIT:"init",UPDATE:"update"};!function(t){t.PUSH="pushListener",t.UPDATE="updateListener",t.REMOVE="removeListener",t.CLEAR="clearQueue"}(r||(r={}));var o=n("qd2b"),a=n("zagf");n.d(e,"b",function(){return c}),n.d(e,!1,function(){return i}),n.d(e,"a",function(){return r});var c=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));return r.listenerQueue=[],r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addQueue=function(t){var e=Object(a.a)(t,[],t);return t&&(this.listenerQueue.push(e),this.$emit(r.PUSH,e)),{listener:t,isUpdata:!1}},e.prototype.updateQueue=function(t,e,n){var o=this.listenerQueue.find(function(e){return e&&e.content===t});if(o){var c=o.state;return Object(a.a)(o.update,[t,e],o),c!==i.INIT&&c!==i.UPDATE&&this.$emit(r.UPDATE,o),{listener:o,isUpdata:!0}}return this.addQueue(n)},e.prototype.clearQueue=function(){var t=this,e=!1,n=t.listenerQueue.filter(function(n,r){return n.isDel&&(e=!0,t.removeItem(r,n)),!n.isDel});e&&(t.listenerQueue=n,t.$emit(r.CLEAR,n))},e.prototype.removeItem=function(t,e){if(!e){var n=this.listenerQueue.splice(t,1);n&&n.length&&(e=n[0])}this.$emit(r.REMOVE,e),Object(a.a)(e&&e.destroyed,[],e)},e.prototype.getListener=function(t){var e=this.listenerQueue;if(t&&e&&e.length)for(var n=0;n<e.length;n++){var r=e[n];if(r&&r.content===t)return{listener:r,index:n}}},e}(o.a)},"eY/N":function(t,e,n){"use strict";e.a=function(t){if(!Object(r.a)(t,"Object"))return!1;var e=Object.getPrototypeOf(t);if(!e)return!0;var n=i.call(e,"constructor")&&e.constructor;return"function"==typeof n&&i.toString.call(n)===i.toString.call(Object)};var r=n("E5mE"),i=Object.prototype.hasOwnProperty},ekq3:function(t,e,n){"use strict";var r=n("zagf");e.a=r.a},"fk+x":function(t,e,n){"use strict";e.a=function(t,e){return("undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e])||""}},kVEp:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("5fCB"),i=n("PDNl"),o=n("eETc"),a=n("zagf");var c=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));o.defaultOption=i.a,o._observer=null;var a=Object(r.a)({},i.a,n),c=function(t){return Math.max(0,Math.ceil(t*(a.preLoad-1||0)))},u=c(a.viewWidth),s=c(a.viewHeight);a.observerOptions=Object(r.a)({rootMargin:s+"px "+u+"px "+s+"px "+u+"px",threshold:0},a.observerOptions);var l=o;return l.setDefaultOptions(a),l._init(),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._init=function(){var t=this._initIntersectionObserver();this.$on(o.a.PUSH,function(e){t&&e.content&&t.observe(e.content),setTimeout(function(){Object(a.a)(e.viewDisplay,[null,!1],e)},50)}),this.$on(o.a.UPDATE,function(t){Object(a.a)(t.viewDisplay,[],t)}),this.$on(i.b.UNOBSERVE,function(e){e&&t&&t.unobserve(e)}),this.$on(o.a.REMOVE,function(e){e.content&&t&&t.unobserve(e.content)})},e.prototype._initIntersectionObserver=function(){var t=this,e=t.defaultOption,n=null;try{n=new IntersectionObserver(function(e){t._loadObserver(e)},e.observerOptions)}catch(t){n=null}return t._initIntersectionObserver=function(){return n},n},e.prototype._loadObserver=function(t){var e=this,n=e.defaultOption;t&&(t.forEach(function(t){(t.isIntersecting||t.intersectionRatio>0||n&&n.isShiftOut)&&e.listenerQueue.forEach(function(n){if(n.content===t.target){if(n.isDel)return e.$emit(i.b.UNOBSERVE,n.content);t.isIntersecting||t.intersectionRatio>0?Object(a.a)(n.display,[null],n):Object(a.a)(n.shiftOut,[null],n)}})}),e.clearQueue())},e}(o.b)},lXuC:function(t,e,n){"use strict";e.a=function(t,e){var n="("+(e||"_|-")+")";return t=(t=(t=(t+"").replace(new RegExp(n+"?(?:(?:[A-Z]{2,}[A-Z]"+n+"*$)|(?:[A-Z]{2,}(?=[A-Z])))","g"),function(t){return(((e||"")+"").split("|")[0]||"-")+(t=t.replace(new RegExp(n),"")).toLowerCase()})).replace(new RegExp("(?:^"+n+"?([a-z]))|(?:"+n+"$)","gi"),function(t,e,n){return(n||"").toLowerCase()})).replace(new RegExp(n+"([a-z])","gi"),function(t,e,n){return(n||"").toUpperCase()})}},p84V:function(t,e,n){"use strict";e.a=function(t,e){t&&!t.install&&(t.install=function(n,i){var o=n.directive(e);if(!o){var a=Object(r.a)(t,[i]);a&&n.directive(e,a.directive||a)}});return t};var r=n("ekq3")},qd2b:function(t,e,n){"use strict";var r=n("5fCB"),i=n("Z05q"),o=n("zagf");var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._events={}}return t.prototype.$dispatchEvent=function(t,e,n){return Object(i.a)(t,e,n)},t.prototype.$on=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push([e,n])},t.prototype.$once=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,r=this,i=!1,o=function o(){r.$off(t,o),i||(i=!0,e.apply(n,arguments))};o.fn=e,r.$on(t,o)},t.prototype.$off=function(t,e){var n=this._events&&this._events[t];if(n)for(var r=n.length;r--;)(n[r][0]===e||n[r][0]&&n[r][0].fn===e)&&(n[r][0]=void 0)},t.prototype.$emit=function(t){var e=this._events&&this._events[t];if(e){for(var n=e.length,r=[].concat(e),i=arguments.length,a=Array(i>1?i-1:0),c=1;c<i;c++)a[c-1]=arguments[c];for(var u=0;u<n;u++){var s=r[u],l=s[0],f=s[1];Object(o.a)(l,a,f)}}},t}(),c=n("FNmr");n.d(e,"a",function(){return u});var u=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return r.name="",r.defaultOption={},r.setDefaultOptions(!0,n),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.singleton=function(t){var e=this._singleton||this.instance(t);return this._singleton=e,e},e.instance=function(t){return new this(t)},e.install=function(t,e){var n=this.instance(e);return t&&t.use instanceof Function&&t.use(n,e),n},e.prototype.getParent=function(){return Object(o.a)(this._getParent||this._vue&&this._vue.prototype||null,[],this)},e.prototype.install=function(t,e){this._vue=this._vue||t;var n=Object(c.a)(t,this);return this.setDefaultOptions(e&&n&&e[n]||e),this},e.prototype.setDefaultOptions=function(t){var e=void 0,n=!0;"boolean"==typeof t?(n=t,e=arguments[1]||{}):e=t,e&&(this.defaultOption=Object(r.a)(n,this.defaultOption||{},e))},e.prototype.getOptions=function(){for(var t=[{},this.defaultOption||{}],e=!0,n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return"boolean"==typeof i[0]&&(e=i[0],i.splice(0,1)),i&&i.length>0&&(t=t.concat(i)),r.a.apply(void 0,[e].concat(t))},e.prototype.preload=function(){var t=this;return new Promise(function(e,n){e(t)})},e}(a)},rRBi:function(t,e,n){"use strict";var r=n("5fCB");e.a=r.a},shrL:function(t,e,n){"use strict";e.a=function(t,e){if(t=Object(r.a)(((t||"")+"").replace(/\s+/g,"")),!e&&c[t])return c[t];if(!e&&t in o)return t;for(var n=Object(i.a)(t),u=0;u<a.length;u++){var s=a[u],l=s+n;if(l in o)return a=[s],c[t]=l,e?s:l}return e?"":t};var r=n("lXuC"),i=n("0Zk/"),o=document.createElement("div").style,a=["Moz","webkit","O","ms"],c={}},uGS0:function(t,e,n){"use strict";e.a=function(t,e,n,o){var a=t;!e||e instanceof Array||(e=[e]);return new Promise(function(c,u){(a=Object(r.a)(t||a,e,o||null))instanceof Promise||Object(i.a)(a,"Promise")||a&&a.then instanceof Function?a.then(c,u):c(n?{default:a}:a)})};var r=n("zagf"),i=n("E5mE")},wYIa:function(t,e,n){"use strict";var r=n("ekq3");e.a=function(t,e,n){var i=0,o=(n=n||{}).count||5,a=n.time||50,c=t&&t.parentNode;return new Promise(function(n,u){!function u(){c=c||t&&t.parentNode,i>=o||!t||c&&(c.clientHeight||c.clientWidth)?(Object(r.a)(e,[t,i+1]),n({el:t,total:i+1}),c=null):setTimeout(function(){Object(r.a)(u)},a),i+=1}()})}},yY2C:function(t,e,n){"use strict";e.a=function(t,e,n,r){var i=null,o=0;return function(){for(var a=arguments.length,c=Array(a),u=0;u<a;u++)c[u]=arguments[u];if(i){if(r)return;clearTimeout(i),i=null}var s=Date.now()-o;function l(){o=Date.now(),i=!1,t.apply(n,c)}r&&s>=e?l():i=setTimeout(l,e)}}},"yhx/":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("MEnT"),i=n("yY2C"),o=n("ImqO"),a=n("PDNl"),c=n("eETc"),u=n("zagf");var s=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));r.defaultOption=a.a,r.scrollList=[];var i=r;return i.setDefaultOptions(n),i._setViewSize(),i._init(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._init=function(){var t=this,e=t.defaultOption;t._listenerHandler=e.throttleWait&&Object(i.a)(t._loadHandler,e.throttleWait,t)||t._loadHandler,t._addScrollList(document.body,null),window.addEventListener("resize",function(){var e=t._setViewSize();e&&t._listenerHandler(e)}),window.addEventListener("orientationchange",function(){Object(i.a)(function(){var e=window.orientation;if(e>85&&e<95||e>175&&e<185){var n=t._setViewSize();n&&t._listenerHandler(n)}},200,window)}),t.$on(c.a.PUSH,function(e){e&&e.content&&(t._addScrollList(e.content,e),t._listenerHandler())}),t.$on(c.a.UPDATE,function(e){t._listenerHandler()}),t.$on(c.a.REMOVE,function(e){t._removeScrollList(e)})},e.prototype._setViewSize=function(){var t=this.defaultOption,e=window.innerWidth,n=window.innerHeight,r=void 0;return t.viewHeight!==n&&t.viewHeight<n&&n>10&&((r=r||{}).viewHeight=n),t.viewWidth!==e&&t.viewWidth<e&&e>10&&((r=r||{}).viewWidth=e),this.setDefaultOptions(!1,r),r},e.prototype._listenerHandler=function(){},e.prototype._eventListenerHandler=function(){},e.prototype._loadHandler=function(t){var e=!0,n=this.defaultOption;this.listenerQueue.forEach(function(r){var i=Object(u.a)(r.viewDisplay,[t,e],r),o=r;o&&"boolean"==typeof i&&n&&n.isShiftOut&&(!i&&o._isShowFlag_&&Object(u.a)(r.shiftOut,[null],r),o._isShowFlag_=i),e=!1}),this.clearQueue()},e.prototype._initListener=function(t,e){var n=this,r=n.defaultOption;n._eventListenerHandler=function(){n._listenerHandler()},Object(o.a)(t,r.listenEvents,n._eventListenerHandler,e?"add":"remove")},e.prototype._addScrollList=function(t,e){var n=Object(r.a)(t);if(n){var i=this.scrollList.find(function(t){return t.el===n});i?i.childrenCount+=1:(i={el:n,childrenCount:1},this.scrollList.push(i),this._initListener(n,!0)),e&&(e._$scroll=i)}},e.prototype._removeScrollList=function(t){var e=t._$scroll;if(e&&(e.childrenCount-=1,e.childrenCount<=0)){var n=e.el;this._initListener(n,!1),this.scrollList=this.scrollList.filter(function(t){return t.el!==n})}},e}(c.b)},zagf:function(t,e,n){"use strict";e.a=function(t,e,n){var r=t;t instanceof Function&&(r=t.apply(n,e));return r}}});