var BANNER_SLIDER=function(){"use strict";Date.now||(Date.now=function(){return+new Date}),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(r.prototype=this.prototype),i.prototype=new r,i});var e=function(e){var t,n=[],r=document,i=r.documentElement,o=i.doScroll,s="DOMContentLoaded",a="addEventListener",l="onreadystatechange",c="readyState",u=(o?/^loaded|^c/:/^loaded|c/).test(r[c]);function f(e){for(u=1;e=n.shift();)e()}return r[a]&&r[a](s,t=function(){r.removeEventListener(s,t,!1),f()},!1),o&&r.attachEvent(l,t=function(){/^c/.test(r[c])&&(r.detachEvent(l,t),f())}),e=o?function(t){self!=top?u?t():n.push(t):function(){try{i.doScroll("left")}catch(n){return setTimeout(function(){e(t)},50)}t()}()}:function(e){u?e():n.push(e)}},t=e();function n(e,t,n){var r=this;if(window.addEventListener)return e.addEventListener(t,function(e){n.call(r,e)},!1);e.attachEvent("on"+t,function(){var e=window.event;e.target=e.srcElement,n.call(r,e)})}function r(e){var t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}function i(e){return"[object Array]"===Object.prototype.toString.call(e)}function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function s(e){return"[object String]"===Object.prototype.toString.call(e)}function a(e){if(i(e))return 0===e.length;if(s(e))return""===e;if(o(e)){var t=0;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){t++;break}return 0===t}return!1}function l(e){return null===e||e===undefined}function c(){function e(e){var t,n=1,r=0;if(e)for(n=0,t=e.length-1;t>=0;t--)n=0!=(r=266338304&(n=(n<<6&268435455)+(r=e.charCodeAt(t))+(r<<14)))?n^r>>21:n;return n}return(""+e(document.referrer)+(new Date).getTime()+e(document.cookie)).substr(0,32)}var u="QIHOO__WEB__SO__BANNER_SLIDER",f={multiColumnScene:{adNum:12}};window.QIHOO__WEB__UID||(window.QIHOO__WEB__UID=c()),window[u]||(window[u]={},window[u].UID=c(),window[u].displayShowId=[],window[u].elementName="qihoobannerslider"),window.QIHOO__WEB__DOUDI||(window.QIHOO__WEB__DOUDI={});var p=window[u],d=window.QIHOO__WEB__DOUDI,h=window.QIHOO__WEB__UID,_="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(e,t){return e(t={exports:{}},t.exports),t.exports}var g=m(function(e,t){e.exports=function(){return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var l="function"==typeof _dereq_&&_dereq_;if(!a&&l)return l(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[s]={exports:{}};t[s][0].call(u.exports,function(e){var n=t[s][1][e];return i(n||e)},u,u.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof _dereq_&&_dereq_,s=0;s0;){var t=e.shift();if("function"==typeof t){var n=e.shift(),r=e.shift();t.call(n,r)}else t._settlePromises()}},a.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},a.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},a.prototype._reset=function(){this._isTickUsed=!1},t.exports=a,t.exports.firstLineError=r},{"./queue":26,"./schedule":29,"./util":36}],3:[function(e,t,n){t.exports=function(e,t,n,r){var i=!1,o=function(e,t){this._reject(t)},s=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(o,o,null,this,e)},a=function(e,t){0==(50397184&this._bitField)&&this._resolveCallback(t.target)},l=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(o){i||(i=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var c=n(o),u=new e(t);u._propagateFrom(this,1);var f=this._target();if(u._setBoundTo(c),c instanceof e){var p={promiseRejectionQueued:!1,promise:u,target:f,bindingPromise:c};f._then(t,s,undefined,u,p),c._then(a,l,undefined,u,p),u._setOnCancel(c)}else u._resolveCallback(f);return u},e.prototype._setBoundTo=function(e){e!==undefined?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},{}],4:[function(e,t,n){var r;"undefined"!=typeof Promise&&(r=Promise);var i=e("./promise")();i.noConflict=function(){try{Promise===i&&(Promise=r)}catch(e){}return i},t.exports=i},{"./promise":22}],5:[function(e,t,n){var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}t.exports=function(t){var n=e("./util"),r=n.canEvaluate;function i(e){var r=this.pop(),i=function(e,r){var i;if(null!=e&&(i=e[r]),"function"!=typeof i){var o="Object "+n.classString(e)+" has no method '"+n.toString(r)+"'";throw new t.TypeError(o)}return i}(e,r);return i.apply(e,this)}function o(e){return e[this]}function s(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}n.isIdentifier,t.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(i,undefined,undefined,t,undefined)},t.prototype.get=function(e){var t,n="number"==typeof e;if(n)t=s;else if(r){var i=(void 0)(e);t=null!==i?i:o}else t=o;return this._then(t,undefined,undefined,e,undefined)}}},{"./util":36}],6:[function(e,t,n){t.exports=function(t,n,r,i){var o=e("./util"),s=o.tryCatch,a=o.errorObj,l=t._async;t.prototype["break"]=t.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===undefined||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),l.invoke(this._cancelPromises,this,undefined))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=undefined},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(o.isArray(e))for(var n=0;n=0?n[e]:undefined}return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},r.prototype._pushContext=function(){this._trace!==undefined&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(this._trace!==undefined){var e=n.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},r.CapturedTrace=null,r.create=function(){if(t)return new r},r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var n=e.prototype._pushContext,o=e.prototype._popContext,s=e._peekContext,a=e.prototype._peekContext,l=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=o,e._peekContext=s,e.prototype._peekContext=a,e.prototype._promiseCreated=l,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=i,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},r}},{}],9:[function(e,t,n){t.exports=function(t,n){var r,i,o,s=t._getDomain,a=t._async,l=e("./errors").Warning,c=e("./util"),u=c.canAttachTrace,f=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,p=/\((?:timers\.js):\d+:\d+\)/,d=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,h=null,_=null,m=!1,g=!(0==c.env("BLUEBIRD_DEBUG")),v=!(0==c.env("BLUEBIRD_WARNINGS")||!g&&!c.env("BLUEBIRD_WARNINGS")),y=!(0==c.env("BLUEBIRD_LONG_STACK_TRACES")||!g&&!c.env("BLUEBIRD_LONG_STACK_TRACES")),b=0!=c.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(v||!!c.env("BLUEBIRD_W_FORGOTTEN_RETURN"));t.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},t.prototype._ensurePossibleRejectionHandled=function(){if(0==(524288&this._bitField)){this._setRejectionIsUnhandled();var e=this;setTimeout(function(){e._notifyUnhandledRejection()},1)}},t.prototype._notifyUnhandledRejectionIsHandled=function(){z("rejectionHandled",r,undefined,this)},t.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},t.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},t.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),z("unhandledRejection",i,e,this)}},t.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},t.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},t.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},t.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},t.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},t.prototype._warn=function(e,t,n){return H(e,t,n||this)},t.onPossiblyUnhandledRejection=function(e){var t=s();i="function"==typeof e?null===t?e:c.domainBind(t,e):undefined},t.onUnhandledRejectionHandled=function(e){var t=s();r="function"==typeof e?null===t?e:c.domainBind(t,e):undefined};var w=function(){};t.longStackTraces=function(){if(a.haveItemsQueued()&&!Y.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!Y.longStackTraces&&q()){var e=t.prototype._captureStackTrace,r=t.prototype._attachExtraTrace;Y.longStackTraces=!0,w=function(){if(a.haveItemsQueued()&&!Y.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");t.prototype._captureStackTrace=e,t.prototype._attachExtraTrace=r,n.deactivateLongStackTraces(),a.enableTrampoline(),Y.longStackTraces=!1},t.prototype._captureStackTrace=B,t.prototype._attachExtraTrace=D,n.activateLongStackTraces(),a.disableTrampolineIfNecessary()}},t.hasLongStackTraces=function(){return Y.longStackTraces&&q()};var x=function(){try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return c.global.dispatchEvent(e),function(e,t){var n=new CustomEvent(e.toLowerCase(),{detail:t,cancelable:!0});return!c.global.dispatchEvent(n)}}if("function"==typeof Event){var e=new Event("CustomEvent");return c.global.dispatchEvent(e),function(e,t){var n=new Event(e.toLowerCase(),{cancelable:!0});return n.detail=t,!c.global.dispatchEvent(n)}}var e=document.createEvent("CustomEvent");return e.initCustomEvent("testingtheevent",!1,!0,{}),c.global.dispatchEvent(e),function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!c.global.dispatchEvent(n)}}catch(t){}return function(){return!1}}(),k=c.isNode?function(){return process.emit.apply(process,arguments)}:c.global?function(e){var t="on"+e.toLowerCase(),n=c.global[t];return!!n&&(n.apply(c.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function C(e,t){return{promise:t}}var E={promiseCreated:C,promiseFulfilled:C,promiseRejected:C,promiseResolved:C,promiseCancelled:C,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:C},j=function(e){var t=!1;try{t=k.apply(null,arguments)}catch(r){a.throwLater(r),t=!0}var n=!1;try{n=x(e,E[e].apply(null,arguments))}catch(r){a.throwLater(r),n=!0}return n||t};function T(){return!1}function F(e,t,n){var r=this;try{e(t,n,function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+c.toString(e));r._attachCancellationCallback(e)})}catch(i){return i}}function S(e){if(!this._isCancellable())return this;var t=this._onCancel();t!==undefined?c.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function O(){return this._onCancelField}function I(e){this._onCancelField=e}function R(){this._cancellationParent=undefined,this._onCancelField=undefined}function A(e,t){if(0!=(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;n===undefined&&(n=0),e._branchesRemainingToCancel=n+1}0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}t.config=function(e){if("longStackTraces"in(e=Object(e))&&(e.longStackTraces?t.longStackTraces():!e.longStackTraces&&t.hasLongStackTraces()&&w()),"warnings"in e){var n=e.warnings;Y.warnings=!!n,b=Y.warnings,c.isObject(n)&&"wForgottenReturn"in n&&(b=!!n.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!Y.cancellation){if(a.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");t.prototype._clearCancellationData=R,t.prototype._propagateFrom=A,t.prototype._onCancel=O,t.prototype._setOnCancel=I,t.prototype._attachCancellationCallback=S,t.prototype._execute=F,P=A,Y.cancellation=!0}return"monitoring"in e&&(e.monitoring&&!Y.monitoring?(Y.monitoring=!0,t.prototype._fireEvent=j):!e.monitoring&&Y.monitoring&&(Y.monitoring=!1,t.prototype._fireEvent=T)),t},t.prototype._fireEvent=T,t.prototype._execute=function(e,t,n){try{e(t,n)}catch(r){return r}},t.prototype._onCancel=function(){},t.prototype._setOnCancel=function(e){},t.prototype._attachCancellationCallback=function(e){},t.prototype._captureStackTrace=function(){},t.prototype._attachExtraTrace=function(){},t.prototype._clearCancellationData=function(){},t.prototype._propagateFrom=function(e,t){};var P=function(e,t){0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)};function N(){var e=this._boundTo;return e!==undefined&&e instanceof t?e.isFulfilled()?e.value():undefined:e}function B(){this._trace=new X(this._peekContext())}function D(e,t){if(u(e)){var n=this._trace;if(n!==undefined&&t&&(n=n._parent),n!==undefined)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var r=M(e);c.notEnumerableProp(e,"stack",r.message+"\n"+r.stack.join("\n")),c.notEnumerableProp(e,"__stackCleaned__",!0)}}}function H(e,n,r){if(Y.warnings){var i,o=new l(e);if(n)r._attachExtraTrace(o);else if(Y.longStackTraces&&(i=t._peekContext()))i.attachExtraTrace(o);else{var s=M(o);o.stack=s.message+"\n"+s.stack.join("\n")}j("warning",o)||V(o,"",!0)}}function L(e){for(var t=[],n=0;n0?function(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n0&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}(e):[" (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:L(t)}}function V(e,t,n){if("undefined"!=typeof console){var r;if(c.isObject(e)){var i=e.stack;r=t+_(i,e)}else r=t+String(e);"function"==typeof o?o(r,n):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function z(e,t,n,r){var i=!1;try{"function"==typeof t&&(i=!0,"rejectionHandled"===e?t(r):t(n,r))}catch(o){a.throwLater(o)}"unhandledRejection"===e?j(e,n,r)||i||V(n,"Unhandled rejection "):j(e,r)}function U(e){var t,n;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{if(t=e&&"function"==typeof e.toString?e.toString():c.toString(e),/\[object [a-zA-Z0-9$_]+\]/.test(t))try{var r=JSON.stringify(e);t=r}catch(i){}0===t.length&&(t="(empty array)")}return"(<"+((n=t).length<41?n:n.substr(0,38)+"...")+">, no stack trace)"}function q(){return"function"==typeof G}var W=function(){return!1},Q=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function $(e){var t=e.match(Q);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function X(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(e===undefined?0:e._length);G(this,X),t>32&&this.uncycle()}c.inherits(X,Error),n.CapturedTrace=X,X.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},r=0,i=this;i!==undefined;++r)t.push(i),i=i._parent;for(var r=(e=this._length=r)-1;r>=0;--r){var o=t[r].stack;n[o]===undefined&&(n[o]=r)}for(var r=0;r0&&(t[a-1]._parent=undefined,t[a-1]._length=1),t[r]._parent=undefined,t[r]._length=1;var l=r>0?t[r-1]:this;a=0;--u)t[u]._length=c,c++;return}}}},X.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=M(e),n=t.message,r=[t.stack],i=this;i!==undefined;)r.push(L(i.stack.split("\n"))),i=i._parent;!function(e){for(var t=e[0],n=1;n=0;--a)if(r[a]===o){s=a;break}for(var a=s;a>=0;--a){var l=r[a];if(t[i]!==l)break;t.pop(),i--}t=r}}(r),function(e){for(var t=0;t=0)return h=/@/,_=t,m=!0,function(e){e.stack=(new Error).stack};try{throw new Error}catch(o){r="stack"in o}return"stack"in i||!r||"number"!=typeof Error.stackTraceLimit?(_=function(e,t){return"string"==typeof e?e:"object"!=typeof t&&"function"!=typeof t||t.name===undefined||t.message===undefined?U(t):t.toString()},null):(h=e,_=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(o){e.stack=o.stack}Error.stackTraceLimit-=6})}();"undefined"!=typeof console&&"undefined"!=typeof console.warn&&(o=function(e){console.warn(e)},c.isNode&&process.stderr.isTTY?o=function(e,t){var n=t?"":"";console.warn(n+e+"\n")}:c.isNode||"string"!=typeof(new Error).stack||(o=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var Y={warnings:v,longStackTraces:!1,cancellation:!1,monitoring:!1};return y&&t.longStackTraces(),{longStackTraces:function(){return Y.longStackTraces},warnings:function(){return Y.warnings},cancellation:function(){return Y.cancellation},monitoring:function(){return Y.monitoring},propagateFromFunction:function(){return P},boundValueFunction:function(){return N},checkForgottenReturns:function(e,t,n,r,i){if(e===undefined&&null!==t&&b){if(i!==undefined&&i._returnedNonUndefined())return;if(0==(65535&r._bitField))return;n&&(n+=" ");var o="",s="";if(t._trace){for(var a=t._trace.stack.split("\n"),l=L(a),c=l.length-1;c>=0;--c){var u=l[c];if(!p.test(u)){var f=u.match(d);f&&(o="at "+f[1]+":"+f[2]+":"+f[3]+" ");break}}if(l.length>0)for(var h=l[0],c=0;c0&&(s="\n"+a[c-1]);break}}var _="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+s;r._warn(_,!0,t)}},setBounds:function(e,t){if(q()){for(var n,r,i=e.stack.split("\n"),o=t.stack.split("\n"),s=-1,a=-1,l=0;l=a||(W=function(e){if(f.test(e))return!0;var t=$(e);return!!(t&&t.fileName===n&&s<=t.line&&t.line<=a)})}},warn:H,deprecated:function(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),H(n)},CapturedTrace:X,fireDomEvent:x,fireGlobalEvent:k}}},{"./errors":12,"./util":36}],10:[function(e,t,n){t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype["return"]=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,undefined,undefined,{value:n},undefined)},e.prototype["throw"]=e.prototype.thenThrow=function(e){return this._then(n,undefined,undefined,{reason:e},undefined)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(undefined,n,undefined,{reason:e},undefined);var t=arguments[1];return this.caught(e,function(){throw t})},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(undefined,t,undefined,{value:n},undefined);var r=arguments[1];return r instanceof e&&r.suppressUnhandledRejections(),this.caught(n,function(){return r})}}},{}],11:[function(e,t,n){t.exports=function(e,t){var n=e.reduce,r=e.all;function i(){return r(this)}e.prototype.each=function(e){return n(this,e,t,0)._then(i,undefined,undefined,this,undefined)},e.prototype.mapSeries=function(e){return n(this,e,t,t)},e.each=function(e,r){return n(e,r,t,0)._then(i,undefined,undefined,e,undefined)},e.mapSeries=function(e,r){return n(e,r,t,t)}}},{}],12:[function(e,t,n){var r,i,o=e("./es5"),s=o.freeze,a=e("./util"),l=a.inherits,c=a.notEnumerableProp;function u(e,t){function n(r){if(!(this instanceof n))return new n(r);c(this,"message","string"==typeof r?r:t),c(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return l(n,Error),n}var f=u("Warning","warning"),p=u("CancellationError","cancellation error"),d=u("TimeoutError","timeout error"),h=u("AggregateError","aggregate error");try{r=TypeError,i=RangeError}catch(b){r=u("TypeError","type error"),i=u("RangeError","range error")}for(var _="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),m=0;m<_.length;++m)"function"==typeof Array.prototype[_[m]]&&(h.prototype[_[m]]=Array.prototype[_[m]]);o.defineProperty(h.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),h.prototype.isOperational=!0;var g=0;function v(e){if(!(this instanceof v))return new v(e);c(this,"name","OperationalError"),c(this,"message",e),this.cause=e,this.isOperational=!0,e instanceof Error?(c(this,"message",e.message),c(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}h.prototype.toString=function(){var e=Array(4*g+1).join(" "),t="\n"+e+"AggregateError of:\n";g++,e=Array(4*g+1).join(" ");for(var n=0;n1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function f(){return d.call(this,this.promise._target()._settledValue())}function p(e){if(!u(this,e))return s.e=e,s}function d(e){var i=this.promise,a=this.handler;if(!this.called){this.called=!0;var l=this.isFinallyHandler()?a.call(i._boundValue()):a.call(i._boundValue(),e);if(l===r)return l;if(l!==undefined){i._setReturnedNonUndefined();var d=n(l,i);if(d instanceof t){if(null!=this.cancelPromise){if(d._isCancelled()){var h=new o("late cancellation observer");return i._attachExtraTrace(h),s.e=h,s}d.isPending()&&d._attachCancellationCallback(new c(this))}return d._then(f,p,undefined,this,undefined)}}}return i.isRejected()?(u(this),s.e=e,s):(u(this),e)}return l.prototype.isFinallyHandler=function(){return 0===this.type},c.prototype._resultCancelled=function(){u(this.finallyHandler)},t.prototype._passThrough=function(e,t,n,r){return"function"!=typeof e?this.then():this._then(n,r,undefined,new l(this,t,e),undefined)},t.prototype.lastly=t.prototype["finally"]=function(e){return this._passThrough(e,0,d,d)},t.prototype.tap=function(e){return this._passThrough(e,1,d)},t.prototype.tapCatch=function(e){var n=arguments.length;if(1===n)return this._passThrough(e,1,undefined,d);var r,o=new Array(n-1),s=0;for(r=0;r0&&"function"==typeof arguments[t]&&(e=arguments[t]);var r=[].slice.call(arguments);e&&r.pop();var i=new n(r).promise();return e!==undefined?i.spread(e):i}}},{"./util":36}],18:[function(e,t,n){t.exports=function(t,n,r,i,o,s){var a=t._getDomain,l=e("./util"),c=l.tryCatch,u=l.errorObj,f=t._async;function p(e,t,n,r){this.constructor$(e),this._promise._captureStackTrace();var i=a();this._callback=null===i?t:l.domainBind(i,t),this._preservedValues=r===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],f.invoke(this._asyncInit,this,undefined)}function d(e,n,i,o){if("function"!=typeof n)return r("expecting a function but got "+l.classString(n));var s=0;if(i!==undefined){if("object"!=typeof i||null===i)return t.reject(new TypeError("options argument must be an object but it is "+l.classString(i)));if("number"!=typeof i.concurrency)return t.reject(new TypeError("'concurrency' must be a number but it is "+l.classString(i.concurrency)));s=i.concurrency}return s="number"==typeof s&&isFinite(s)&&s>=1?s:0,new p(e,n,s,o).promise()}l.inherits(p,n),p.prototype._asyncInit=function(){this._init$(undefined,-2)},p.prototype._init=function(){},p.prototype._promiseFulfilled=function(e,n){var r=this._values,o=this.length(),a=this._preservedValues,l=this._limit;if(n<0){if(r[n=-1*n-1]=e,l>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(l>=1&&this._inFlight>=l)return r[n]=e,this._queue.push(n),!1;null!==a&&(a[n]=e);var f=this._promise,p=this._callback,d=f._boundValue();f._pushContext();var h=c(p).call(d,e,n,o),_=f._popContext();if(s.checkForgottenReturns(h,_,null!==a?"Promise.filter":"Promise.map",f),h===u)return this._reject(h.e),!0;var m=i(h,this._promise);if(m instanceof t){var g=(m=m._target())._bitField;if(0==(50397184&g))return l>=1&&this._inFlight++,r[n]=m,m._proxy(this,-1*(n+1)),!1;if(0==(33554432&g))return 0!=(16777216&g)?(this._reject(m._reason()),!0):(this._cancel(),!0);h=m._value()}r[n]=h}var v=++this._totalResolved;return v>=o&&(null!==a?this._filter(r,a):this._resolve(r),!0)},p.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,n=this._values;e.length>0&&this._inFlight1){o.deprecated("calling Promise.try with more than 1 argument");var c=arguments[1],u=arguments[2];r=s.isArray(c)?a(e).apply(u,c):a(e).call(u,c)}else r=a(e)();var f=l._popContext();return o.checkForgottenReturns(r,f,"Promise.try",l),l._resolveFromSyncValue(r),l},t.prototype._resolveFromSyncValue=function(e){e===s.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(e,t,n){var r=e("./util"),i=r.maybeWrapAsError,o=e("./errors"),s=o.OperationalError,a=e("./es5"),l=/^(?:name|message|stack|cause)$/;function c(e){var t,n;if((n=e)instanceof Error&&a.getPrototypeOf(n)===Error.prototype){(t=new s(e)).name=e.name,t.message=e.message,t.stack=e.stack;for(var i=a.keys(e),o=0;o1){var n,r=new Array(t-1),o=0;for(n=0;n0&&"function"!=typeof e&&"function"!=typeof t){var n=".then() only accepts functions but was passed: "+l.classString(e);arguments.length>1&&(n+=", "+l.classString(t)),this._warn(n)}return this._then(e,t,undefined,undefined,undefined)},F.prototype.done=function(e,t){var n=this._then(e,t,undefined,undefined,undefined);n._setIsFinal()},F.prototype.spread=function(e){return"function"!=typeof e?i("expecting a function but got "+l.classString(e)):this.all()._then(e,undefined,undefined,m,undefined)},F.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:undefined,rejectionReason:undefined};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},F.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new y(this).promise()},F.prototype.error=function(e){return this.caught(l.originatesFromRejection,e)},F.getNewLibraryCopy=t.exports,F.is=function(e){return e instanceof F},F.fromNode=F.fromCallback=function(e){var t=new F(_);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=T(e)(E(t,n));return r===j&&t._rejectCallback(r.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},F.all=function(e){return new y(e).promise()},F.cast=function(e){var t=v(e);return t instanceof F||((t=new F(_))._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},F.resolve=F.fulfilled=F.cast,F.reject=F.rejected=function(e){var t=new F(_);return t._captureStackTrace(),t._rejectCallback(e,!0),t},F.setScheduler=function(e){if("function"!=typeof e)throw new d("expecting a function but got "+l.classString(e));return f.setScheduler(e)},F.prototype._then=function(e,t,n,r,i){var o=i!==undefined,a=o?i:new F(_),c=this._target(),u=c._bitField;o||(a._propagateFrom(this,3),a._captureStackTrace(),r===undefined&&0!=(2097152&this._bitField)&&(r=0!=(50397184&u)?this._boundValue():c===this?undefined:this._boundTo),this._fireEvent("promiseChained",this,a));var p=s();if(0!=(50397184&u)){var d,m,g=c._settlePromiseCtx;0!=(33554432&u)?(m=c._rejectionHandler0,d=e):0!=(16777216&u)?(m=c._fulfillmentHandler0,d=t,c._unsetRejectionIsUnhandled()):(g=c._settlePromiseLateCancellationObserver,m=new h("late cancellation observer"),c._attachExtraTrace(m),d=t),f.invoke(g,c,{handler:null===p?d:"function"==typeof d&&l.domainBind(p,d),promise:a,receiver:r,value:m})}else c._addCallbacks(e,t,a,r,p);return a},F.prototype._length=function(){return 65535&this._bitField},F.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},F.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},F.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},F.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},F.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},F.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},F.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},F.prototype._isFinal=function(){return(4194304&this._bitField)>0},F.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},F.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},F.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},F.prototype._setAsyncGuaranteed=function(){f.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},F.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];return t===a?undefined:t===undefined&&this._isBound()?this._boundValue():t},F.prototype._promiseAt=function(e){return this[4*e-4+2]},F.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},F.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},F.prototype._boundValue=function(){},F.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,n=e._rejectionHandler0,r=e._promise0,i=e._receiverAt(0);i===undefined&&(i=a),this._addCallbacks(t,n,r,i,null)},F.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),r=e._rejectionHandlerAt(t),i=e._promiseAt(t),o=e._receiverAt(t);o===undefined&&(o=a),this._addCallbacks(n,r,i,o,null)},F.prototype._addCallbacks=function(e,t,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"==typeof e&&(this._fulfillmentHandler0=null===i?e:l.domainBind(i,e)),"function"==typeof t&&(this._rejectionHandler0=null===i?t:l.domainBind(i,t));else{var s=4*o-4;this[s+2]=n,this[s+3]=r,"function"==typeof e&&(this[s+0]=null===i?e:l.domainBind(i,e)),"function"==typeof t&&(this[s+1]=null===i?t:l.domainBind(i,t))}return this._setLength(o+1),o},F.prototype._proxy=function(e,t){this._addCallbacks(undefined,undefined,t,e,null)},F.prototype._resolveCallback=function(e,t){if(0==(117506048&this._bitField)){if(e===this)return this._rejectCallback(n(),!1);var r=v(e,this);if(!(r instanceof F))return this._fulfill(e);t&&this._propagateFrom(r,2);var i=r._target();if(i!==this){var o=i._bitField;if(0==(50397184&o)){var s=this._length();s>0&&i._migrateCallback0(this);for(var a=1;a>>16)){if(e===this){var r=n();return this._attachExtraTrace(r),this._reject(r)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(0!=(134217728&t)?this._settlePromises():f.settlePromises(this))}},F.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return f.fatalError(e,l.isNode);(65535&t)>0?f.settlePromises(this):this._ensurePossibleRejectionHandled()}},F.prototype._fulfillPromises=function(e,t){for(var n=1;n0){if(0!=(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,e),this._fulfillPromises(t,r)}this._setLength(0)}this._clearCancellationData()},F.prototype._settledValue=function(){var e=this._bitField;return 0!=(33554432&e)?this._rejectionHandler0:0!=(16777216&e)?this._fulfillmentHandler0:void 0},F.defer=F.pending=function(){x.deprecated("Promise.defer","new Promise");var e=new F(_);return{promise:e,resolve:S,reject:O}},l.notEnumerableProp(F,"_makeSelfResolutionError",n),e("./method")(F,_,v,i,x),e("./bind")(F,_,v,x),e("./cancel")(F,y,i,x),e("./direct_resolve")(F),e("./synchronous_inspection")(F),e("./join")(F,y,v,_,f,s),F.Promise=F,F.version="3.5.1",e("./map.js")(F,y,i,v,_,x),e("./call_get.js")(F),e("./using.js")(F,i,v,w,_,x),e("./timers.js")(F,_,x),e("./generators.js")(F,i,_,v,o,x),e("./nodeify.js")(F),e("./promisify.js")(F,_),e("./props.js")(F,y,v,i),e("./race.js")(F,_,v,i),e("./reduce.js")(F,y,i,v,_,x),e("./settle.js")(F,y,x),e("./some.js")(F,y,i),e("./filter.js")(F,_),e("./each.js")(F,_),e("./any.js")(F),l.toFastProperties(F),l.toFastProperties(F.prototype),I({a:1}),I({b:2}),I({c:3}),I(1),I(function(){}),I(undefined),I(!1),I(new F(_)),x.setBounds(u.firstLineError,l.lastLineError),F}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(e,t,n){t.exports=function(t,n,r,i,o){var s=e("./util");function a(e){var r=this._promise=new t(n);e instanceof t&&r._propagateFrom(e,3),r._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(undefined,-2)}return s.isArray,s.inherits(a,o),a.prototype.length=function(){return this._length},a.prototype.promise=function(){return this._promise},a.prototype._init=function l(e,n){var o=r(this._values,this._promise);if(o instanceof t){var a=(o=o._target())._bitField;if(this._values=o,0==(50397184&a))return this._promise._setAsyncGuaranteed(),o._then(l,this._reject,undefined,this,n);if(0==(33554432&a))return 0!=(16777216&a)?this._reject(o._reason()):this._cancel();o=o._value()}if(null!==(o=s.asArray(o)))0!==o.length?this._iterate(o):-5===n?this._resolveEmptyArray():this._resolve(function(e){switch(e){case-2:return[];case-3:return{};case-6:return new Map}}(n));else{var c=i("expecting an array or an iterable object but got "+s.classString(o)).reason();this._promise._rejectCallback(c,!1)}},a.prototype._iterate=function(e){var n=this.getActualLength(e.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,s=null,a=0;a=this._length&&(this._resolve(this._values),!0)},a.prototype._promiseCancelled=function(){return this._cancel(),!0},a.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},a.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var n=0;n=this._length){var r;if(this._isMap)r=function(e){for(var t=new o,n=e.length/2|0,r=0;r>1},t.prototype.props=function(){return f(this)},t.props=function(e){return f(e)}}},{"./es5":13,"./util":36}],26:[function(e,t,n){function r(e){this._capacity=e,this._length=0,this._front=0}r.prototype._willBeOverCapacity=function(e){return this._capacity=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseFulfilled=function(e,t){var n=new i;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},s.prototype._promiseRejected=function(e,t){var n=new i;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},t.settle=function(e){return r.deprecated(".settle()",".reflect()"),new s(e).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(e,t,n){t.exports=function(t,n,r){var i=e("./util"),o=e("./errors").RangeError,s=e("./errors").AggregateError,a=i.isArray,l={};function c(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function u(e,t){if((0|t)!==t||t<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new c(e),i=n.promise();return n.setHowMany(t),n.init(),i}i.inherits(c,n),c.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(undefined,-5);var e=a(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},c.prototype.init=function(){this._initialized=!0,this._init()},c.prototype.setUnwrap=function(){this._unwrap=!0},c.prototype.howMany=function(){return this._howMany},c.prototype.setHowMany=function(e){this._howMany=e},c.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},c.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},c.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(l),this._checkOutcome())},c.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new s,t=this.length();t0?this._reject(e):this._cancel(),!0}return!1},c.prototype._fulfilled=function(){return this._totalResolved},c.prototype._rejected=function(){return this._values.length-this.length()},c.prototype._addRejected=function(e){this._values.push(e)},c.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},c.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},c.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new o(t)},c.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(e,t){return u(e,t)},t.prototype.some=function(e){return u(this,e)},t._SomePromiseArray=c}},{"./errors":12,"./util":36}],32:[function(e,t,n){t.exports=function(e){function t(e){e!==undefined?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():undefined):(this._bitField=0,this._settledValueField=undefined)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},o=t.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},s=t.prototype.isPending=function(){return 0==(50397184&this._bitField)},a=t.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},e.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},e.prototype.isPending=function(){return s.call(this._target())},e.prototype.isRejected=function(){return o.call(this._target())},e.prototype.isFulfilled=function(){return i.call(this._target())},e.prototype.isResolved=function(){return a.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),r.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],33:[function(e,t,n){t.exports=function(t,n){var r=e("./util"),i=r.errorObj,o=r.isObject,s={}.hasOwnProperty;return function(e,a){if(o(e)){if(e instanceof t)return e;var l=function(e){try{return e.then}catch(t){return i.e=t,i}}(e);if(l===i){a&&a._pushContext();var c=t.reject(l.e);return a&&a._popContext(),c}if("function"==typeof l){if(function(e){try{return s.call(e,"_promise0")}catch(t){return!1}}(e)){var c=new t(n);return e._then(c._fulfill,c._reject,undefined,c,null),c}return function(e,o,s){var a=new t(n),l=a;s&&s._pushContext(),a._captureStackTrace(),s&&s._popContext();var c=!0,u=r.tryCatch(o).call(e,function(e){a&&(a._resolveCallback(e),a=null)},function(e){a&&(a._rejectCallback(e,c,!0),a=null)});return c=!1,a&&u===i&&(a._rejectCallback(u.e,!0,!0),a=null),l}(e,l,a)}}return e}}},{"./util":36}],34:[function(e,t,n){t.exports=function(t,n,r){var i=e("./util"),o=t.TimeoutError;function s(e){this.handle=e}s.prototype._resultCancelled=function(){clearTimeout(this.handle)};var a=function(e){return l(+this).thenReturn(e)},l=t.delay=function(e,i){var o,l;return i!==undefined?(o=t.resolve(i)._then(a,null,null,e,undefined),r.cancellation()&&i instanceof t&&o._setOnCancel(i)):(o=new t(n),l=setTimeout(function(){o._fulfill()},+e),r.cancellation()&&o._setOnCancel(new s(l)),o._captureStackTrace()),o._setAsyncGuaranteed(),o};function c(e){return clearTimeout(this.handle),e}function u(e){throw clearTimeout(this.handle),e}t.prototype.delay=function(e){return l(e,this)},t.prototype.timeout=function(e,t){var n,a;e=+e;var l=new s(setTimeout(function(){var e,r,s,l;n.isPending()&&(e=n,s=a,l="string"!=typeof(r=t)?r instanceof Error?r:new o("operation timed out"):new o(r),i.markAsOriginatingFromRejection(l),e._attachExtraTrace(l),e._reject(l),null!=s&&s.cancel())},e));return r.cancellation()?(a=this.then(),(n=a._then(c,u,undefined,l,undefined))._setOnCancel(l)):n=this._then(c,u,undefined,l,undefined),n}}},{"./util":36}],35:[function(e,t,n){t.exports=function(t,n,r,i,o,s){var a=e("./util"),l=e("./errors").TypeError,c=e("./util").inherits,u=a.errorObj,f=a.tryCatch,p={};function d(e){setTimeout(function(){throw e},0)}function h(e,n){var i=0,s=e.length,a=new t(o);return function l(){if(i>=s)return a._fulfill();var o,c,u=(o=e[i++],(c=r(o))!==o&&"function"==typeof o._isDisposable&&"function"==typeof o._getDisposer&&o._isDisposable()&&c._setDisposable(o._getDisposer()),c);if(u instanceof t&&u._isDisposable()){try{u=r(u._getDisposer().tryDispose(n),e.promise)}catch(f){return d(f)}if(u instanceof t)return u._then(l,d,null,null,null)}l()}(),a}function _(e,t,n){this._data=e,this._promise=t,this._context=n}function m(e,t,n){this.constructor$(e,t,n)}function g(e){return _.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function v(e){this.length=e,this.promise=null,this[e-1]=null}_.prototype.data=function(){return this._data},_.prototype.promise=function(){return this._promise},_.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():p},_.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;n!==undefined&&n._pushContext();var r=t!==p?this.doDispose(t,e):null;return n!==undefined&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},_.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},c(m,_),m.prototype.doDispose=function(e,t){var n=this.data();return n.call(e,e,t)},v.prototype._resultCancelled=function(){for(var e=this.length,n=0;n0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=undefined},t.prototype.disposer=function(e){if("function"==typeof e)return new m(e,this,i());throw new l}}},{"./errors":12,"./util":36}],36:[function(e,t,n){var r=e("./es5"),i="undefined"==typeof navigator,o={e:{}},s,a="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==_?_:this!==undefined?this:null;function l(){try{var e=s;return s=null,e.apply(this,arguments)}catch(t){return o.e=t,o}}function c(e){return s=e,l}var u=function(e,t){var n={}.hasOwnProperty;function r(){for(var r in this.constructor=e,this.constructor$=t,t.prototype)n.call(t.prototype,r)&&"$"!==r.charAt(r.length-1)&&(this[r+"$"]=t.prototype[r])}return r.prototype=t.prototype,e.prototype=new r,e.prototype};function f(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function p(e){return"function"==typeof e||"object"==typeof e&&null!==e}function d(e){return f(e)?new Error(j(e)):e}function h(e,t){var n,r=e.length,i=new Array(r+1);for(n=0;n1,i=t.length>0&&!(1===t.length&&"constructor"===t[0]),o=b.test(e+"")&&r.names(e).length>0;if(n||i||o)return!0}return!1}catch(s){return!1}}function x(e){return e}var k=/^[a-z$_][a-z$_0-9]*$/i;function C(e){return k.test(e)}function E(e,t,n){for(var r=new Array(e),i=0;i10||z[0]>0),V.isNode&&V.toFastProperties(process);try{throw new Error}catch(U){V.lastLineError=U}t.exports=V},{"./es5":13}]},{},[4])(4)}(),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)}),v=1e3,y=60*v,b=60*y,w=24*b,x=365.25*w,k=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return C(e);if("number"===n&&!1===isNaN(e))return t["long"]?j(e):E(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function C(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*x;case"days":case"day":case"d":return n*w;case"hours":case"hour":case"hrs":case"hr":case"h":return n*b;case"minutes":case"minute":case"mins":case"min":case"m":return n*y;case"seconds":case"second":case"secs":case"sec":case"s":return n*v;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return undefined}}}}function E(e){return e>=w?Math.round(e/w)+"d":e>=b?Math.round(e/b)+"h":e>=y?Math.round(e/y)+"m":e>=v?Math.round(e/v)+"s":e+"ms"}function j(e){return T(e,w,"day")||T(e,b,"hour")||T(e,y,"minute")||T(e,v,"second")||e+" ms"}function T(e,t,n){if(!(e=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(n())}),H=D.log,L=D.formatArgs,M=D.save,V=D.load,z=D.useColors,U=D.storage,q=D.colors,W=D("jsonp"),Q=G,$=0;function X(){}function G(e,t,n){"function"==typeof t&&(n=t,t={}),t||(t={});var r,i,o=t.prefix||"__jp",s=t.name||o+$++,a=t.param||"callback",l=null!=t.timeout?t.timeout:6e4,c=encodeURIComponent,u=document.getElementsByTagName("script")[0]||document.head;function f(){r.parentNode&&r.parentNode.removeChild(r),window[s]=X,i&&clearTimeout(i)}return l&&(i=setTimeout(function(){f(),n&&n(new Error("Timeout"))},l)),window[s]=function(e){W("jsonp got",e),f(),n&&n(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+a+"="+c(s)).replace("?&","?"),W('jsonp req "%s"',e),(r=document.createElement("script")).src=e,u.parentNode.insertBefore(r,u),function(){window[s]&&f()}}function Y(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n+"="+encodeURIComponent(e[n]));return t.join("&")}function J(e){e=e||"yyyyMMddhhmmss";return Date.prototype.format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[n]:("00"+t[n]).substr((""+t[n]).length)));return e},(new Date).format(e)}function Z(e,t){for(var n,r,i=e.slice(0),o=e.length,s=o-t;o-- >s;)n=i[r=Math.floor((o+1)*Math.random())],i[r]=i[o],i[o]=n;return i.slice(s)}function K(){}K.prototype.next=function(e){var t={t:J("yyyyMMdd")},n=document.location.protocol+"//s3m.mediav.com/datashare/dormer.js?"+Y(t);return new g(function(e,t){if(d.isSend){var r=window.setInterval(function(){d.data&&(e(d.data),window.clearInterval(r))},100);return!1}d.isSend||(d.isSend=!0),d.data?e(d.data):Q(n,{param:"callback",name:"get360mvDormerAd",timeout:5e3},function(t,n){t&&(d.data?e(d.data):(d.data=[],e([])));var r=[];if(n){for(var i in n)for(var o=0;o=t||n<0||f&&e-c>=o}function _(){var e,n,r=fe();if(h(r))return m(r);a=setTimeout(_,(n=t-((e=r)-l),f?qe(n,o-(e-c)):n))}function m(e){return a=undefined,p&&r?d(e):(r=i=undefined,s)}function g(){var e,n=fe(),o=h(n);if(r=arguments,i=this,l=n,o){if(a===undefined)return c=e=l,a=setTimeout(_,t),u?d(e):s;if(f)return a=setTimeout(_,t),d(l)}return a===undefined&&(a=setTimeout(_,t)),s}return t=Ve(t)||0,ie(n)&&(u=!!n.leading,o=(f="maxWait"in n)?Ue(Ve(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),g.cancel=function(){a!==undefined&&clearTimeout(a),c=0,r=l=i=a=undefined},g.flush=function(){return a===undefined?s:m(fe())},g}var Qe=We,$e=function(e,t,n){return n=n||/\{([^\{\}]*)\}/g,e.replace(n,function(e,n){var r=n.split("."),i=t;try{for(var o in r)r.hasOwnProperty(o)&&(i=i[r[o]])}catch(s){i=e}return"string"==typeof i||"number"==typeof i?i:e})},Xe='\r\n {title}\r\n \r\n {price}\r\n ¥{price}\r\n {subtitle}\r\n\r\n',Ge="info-div{\r\n display: block;\r\n}\r\n.gouwu-bottom{\r\n width: {width}px;\r\n float: left;\r\n margin-bottom: 18px;\r\n}\r\n.bottom-content{\r\n float: left;\r\n margin-right: 13px;\r\n *margin-right: 11px;\r\n margin-bottom: 13px;\r\n width: {itemWidth}px;\r\n height: 110px;\r\n border: 1px solid #f6f6f6;\r\n overflow: hidden;\r\n position: relative;\r\n cursor: pointer;\r\n}\r\n.bottom-content .title{\r\n position: absolute;\r\n top: 10px;\r\n left: 0;\r\n width: 88%;\r\n height: 22px;\r\n line-height: 22px;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n font-size: 14px;\r\n color: #000;\r\n font-weight: 700;\r\n padding: 0 5px;\r\n}\r\n.bottom-content .img{\r\n position: absolute;\r\n right: 4px;\r\n bottom: 4px;\r\n height: 65px;\r\n width: 65px;\r\n}\r\n.bottom-content .brand{\r\n position: absolute;\r\n top: 80px;\r\n left: 5px;\r\n font-size: 13px;\r\n color: white;\r\n background-color: #d21a1a;\r\n padding: 4px 3px;\r\n border-radius: 6px;\r\n}\r\n.bottom-content .price{\r\n position: absolute;\r\n top: 80px;\r\n left: 5px;\r\n font-size: 13px;\r\n color: #c30;\r\n}\r\n.bottom-content .subtitle{\r\n position: absolute;\r\n top: 40px;\r\n left: 0;\r\n font-size: 12px;\r\n color: #666;\r\n padding: 0 5px;\r\n width:88%;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n}\r\n.bottom-content .img-title:hover {\r\n color:red;\r\n}\r\n.bottom-content.hover {\r\n background: #e7e7e7;\r\n}\r\n\r\n.slide-column-pageup{\r\n width: 26px;\r\n height: 46px;\r\n margin-top: -35px;\r\n left: 0;\r\n position: absolute;\r\n top: 50%;\r\n z-index: 5;\r\n cursor: pointer;\r\n display: none;\r\n}\r\n.slide-column-pageup .arrowLeft{\r\n /* background-position: 0 0; */\r\n width: 26px;\r\n height: 46px;\r\n left: 0;\r\n top: 0;\r\n position: absolute;\r\n background-image: url(https://p2.ssl.qhimg.com/t01522ece2ff580414e.png);\r\n background-repeat: no-repeat;\r\n /* line-height: 200px; */\r\n overflow: hidden;\r\n z-index: 1;\r\n}\r\n.slide-column-pagedown .arrowRight{\r\n /* background-position: -40px 0; */\r\n width: 26px;\r\n height: 46px;\r\n left: 0;\r\n top: 0;\r\n position: absolute;\r\n background-image: url(https://p5.ssl.qhimg.com/t019fff14884580db69.png);\r\n background-repeat: no-repeat;\r\n /* line-height: 200px; */\r\n overflow: hidden;\r\n z-index: 1;\r\n}\r\n/* .slide-column-pageup .bg, .slide-column-pagedown .bg{\r\n width: 40px;\r\n height: 40px;\r\n opacity: .3;\r\n left: 0;\r\n top: 0;\r\n position: absolute;\r\n background-color: #000;\r\n filter: alpha(opacity=30);\r\n} */\r\n.slide-column-pagedown{\r\n width: 26px;\r\n height: 46px;\r\n margin-top: -35px;\r\n right: 0;\r\n position: absolute;\r\n top: 50%;\r\n z-index: 5;\r\n cursor: pointer;\r\n display: none;\r\n}\r\n";function Ye(e,t){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"").replace(/([\.?(\w|\d|:|_|\-|\s)+][,\.?(\w|\d|:|_|\-|\s)+]*){/g,function(e,n){for(var r=n.split(","),i="",o=0;o-1){var i=e.desc.split("】");r.subtitle=i[0].split("【")[1].substr(0,4);var o=e.desc.split("】");r.title=o[1],/^[\u3220-\uFA29]+$/.test(e.price)?(r.brandTag="block",r.priceTag="none"):(r.brandTag="none",r.priceTag="block")}else r.subtitle=e.desc.substr(0,4),r.title=e.desc,/^[\u3220-\uFA29]+$/.test(e.price)?(r.brandTag="block",r.priceTag="none"):(r.brandTag="none",r.priceTag="block");return $e(Xe,r)}function Ke(e,t,n){var r={prefix:t,itemWidth:e.blockWidth,width:e.w,brandTag:"none",priceTag:"block"};return Ye($e(Ge,r),t)}var et='\r\n \r\n \r\n {title}\r\n 去看看\r\n \r\n\r\n',tt="info-div{\r\n display: block;\r\n}\r\n.gouwu-bottom{\r\n width: {width}px;\r\n float: left;\r\n margin-bottom: 18px;\r\n}\r\n.blockItem{\r\n float: left;\r\n margin: {margin}px;\r\n /*margin-top: {marginTop}px;\r\n margin-left: {marginLeft}px;*/\r\n width: {itemWidth}px;\r\n height: {itemWidth}px;\r\n border: 1px solid #f6f6f6;\r\n overflow: hidden;\r\n position: relative;\r\n cursor: pointer;\r\n background: #ccc;\r\n}\r\n.blockItem .img:hover {\r\n transform: scale(1.05);\r\n transition: transform .2s ease-out;\r\n}\r\n\r\n.blockItem .img{\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n transition: transform .2s ease-out;\r\n height: {itemWidth}px;\r\n width: {itemWidth}px;\r\n}\r\n.blockItem .blockItem-text{\r\n text-align: center;\r\n background: rgba(255, 255, 255, 0.6);\r\n height: 45px;\r\n position: absolute;\r\n bottom: -30px;\r\n width: {itemWidth}px;\r\n padding: 5px;\r\n color: #ffffff;\r\n transition: bottom 0.5s ease;\r\n -webkit-transition: bottom 0.5s ease;\r\n -moz-transition: bottom 0.5s ease;\r\n -o-transition: bottom 0.5s ease;\r\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e6ffffff', endColorstr='#e6ffffff',GradientType=0 );\r\n}\r\n.blockItem:hover .blockItem-text {\r\n bottom: 0;\r\n background: url(https://p3.ssl.qhimg.com/t01f4e523f75d0d0ce8.gif) center center, rgba(255, 255, 255, 0.6);\r\n *background: #ffffff url(https://p3.ssl.qhimg.com/t01f4e523f75d0d0ce8.gif) center center;\r\n}\r\n\r\n.old-ie .item:hover .item-text:before {\r\n position: absolute;\r\n top: 0;\r\n left: -15px;\r\n right: 0;\r\n bottom: 0;\r\n content: url(https://p3.ssl.qhimg.com/t01f4e523f75d0d0ce8.gif); /* heart arise */\r\n}\r\n.blockItem .blockItem-title {\r\n text-overflow: ellipsis;\r\n font-size: 13px;\r\n color: #333333;\r\n line-height: 18px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-align: center;\r\n}\r\n.blockItem .blockItem-action {\r\n text-align: center;\r\n font-size: 14px;\r\n color: #1db69a;\r\n line-height: 18px;\r\n border: 1px solid #1db69a;\r\n /* width: 90%; */\r\n /* margin: auto; */\r\n margin-top: 5px;\r\n display: inline-block;\r\n padding: 0 10px;\r\n}\r\n\r\n\r\n\r\n\r\n\r\n.slide-column-pageup{\r\n width: 26px;\r\n height: 46px;\r\n margin-top: -35px;\r\n left: 0;\r\n position: absolute;\r\n top: 50%;\r\n z-index: 5;\r\n cursor: pointer;\r\n display: none;\r\n}\r\n.slide-column-pageup .arrowLeft{\r\n /* background-position: 0 0; */\r\n width: 26px;\r\n height: 46px;\r\n left: 0;\r\n top: 0;\r\n position: absolute;\r\n background-image: url(https://p2.ssl.qhimg.com/t01522ece2ff580414e.png);\r\n background-repeat: no-repeat;\r\n /* line-height: 200px; */\r\n overflow: hidden;\r\n z-index: 1;\r\n}\r\n.slide-column-pagedown .arrowRight{\r\n /* background-position: -40px 0; */\r\n width: 26px;\r\n height: 46px;\r\n left: 0;\r\n top: 0;\r\n position: absolute;\r\n background-image: url(https://p5.ssl.qhimg.com/t019fff14884580db69.png);\r\n background-repeat: no-repeat;\r\n /* line-height: 200px; */\r\n overflow: hidden;\r\n z-index: 1;\r\n}\r\n/* .slide-column-pageup .bg, .slide-column-pagedown .bg{\r\n width: 40px;\r\n height: 40px;\r\n opacity: .3;\r\n left: 0;\r\n top: 0;\r\n position: absolute;\r\n background-color: #000;\r\n filter: alpha(opacity=30);\r\n} */\r\n.slide-column-pagedown{\r\n width: 26px;\r\n height: 46px;\r\n margin-top: -35px;\r\n right: 0;\r\n position: absolute;\r\n top: 50%;\r\n z-index: 5;\r\n cursor: pointer;\r\n display: none;\r\n}\r\n";function nt(e,t,n){if(e){var r={title:e.desc,curl:e.curl,prefix:t,price:e.price,img:e.img,marginTop:n.marginTop};try{if(e.desc.indexOf("【")>-1){var i=e.desc.split("】");r.subtitle=i[0].split("【")[1].substr(0,4);var o=e.desc.split("】");r.title=o[1],/^[\u3220-\uFA29]+$/.test(e.price)?(r.brandTag="block",r.priceTag="none"):(r.brandTag="none",r.priceTag="block")}else r.subtitle=e.desc.substr(0,4),r.title=e.desc,/^[\u3220-\uFA29]+$/.test(e.price)?(r.brandTag="block",r.priceTag="none"):(r.brandTag="none",r.priceTag="block")}catch(s){}return $e(et,r)}}function rt(e,t,n){var r={prefix:t,itemWidth:e.blockWidth,margin:e.margin-1,width:e.w,brandTag:"none",priceTag:"block",marginTop:e.marginTop,marginLeft:e.marginLeft};return Ye($e(tt,r),t)}function it(e,t){if(i(e))for(var n=0;n=0;)n=n.replace(" "+t+" "," ");e.className=n.replace(/^\s+|\s+$/g,"")}return e}}function ct(e,t){var r=document.getElementById(e),i="",o="",s={};n(r,"mousedown",function(e){var t,n,o,a,l;t=e.clientX,n=e.clientY,o=r.getBoundingClientRect(),a=t-o.left,l=n-o.top,s={x:a,y:l};var c=/msie [7|8]/i.test(navigator.userAgent);c=c?1:0,parseInt(e.button,10)===c&&(i=(new Date).getTime())}),n(r,"mouseup",function(e){var t=/msie [7|8]/i.test(navigator.userAgent);t=t?1:0;var n=e.target;if(o=(new Date).getTime(),parseInt(e.button,10)===t){for(;-1===n.className.indexOf("clk")&&-1===n.className.indexOf(p.elementName);)n=n.parentNode;if(n.className.indexOf("clk")>-1){var r=n.getAttribute("data-href");if(r=r.replace("__EVENT_TIME_START__",i).replace("__EVENT_TIME_END__",o).replace("__OFFSET_X__",parseInt(s.x)).replace("__OFFSET_Y__",parseInt(s.y)),at(n.children[0],"visited"),window.open(r,"mediav"+o),n.getAttribute("data-clk")){var a=n.getAttribute("data-clk");it((a=a.replace("__EVENT_TIME_START__",i).replace("__EVENT_TIME_END__",o).replace("__OFFSET_X__",parseInt(s.x)).replace("__OFFSET_Y__",parseInt(s.y))).split(","),ot)}}}}),n(r,"mouseover",function(n){try{for(var r=n.target;-1===r.className.indexOf("clk")&&-1===r.className.indexOf(p.elementName);)r=r.parentNode;at(r,"hover"),t.silder>1&&!t.BlockSlider&&(document.getElementById(e+"sliderLeft").style.display="block",document.getElementById(e+"sliderRight").style.display="block")}catch(i){}}),n(r,"mouseout",function(n){try{for(var r=n.target;-1===r.className.indexOf("clk")&&-1===r.className.indexOf(p.elementName);)r=r.parentNode;lt(r,"hover"),t.silder>1&&!t.BlockSlider&&(document.getElementById(e+"sliderLeft").style.display="none",document.getElementById(e+"sliderRight").style.display="none")}catch(i){}})}function ut(){return window.innerHeight||document.documentElement.clientHeight}function ft(e,t){var n=e.getBoundingClientRect().top,r=n+e.clientHeight,i=n>=0&&n=0&&r0,c=i?Math.min(e.clientHeight,ut()-n):r;if(c=Math.min(c,ut()),i||o||s){for(var u=t.style.marginLeft,f=[],p=t.children["0px"==u?0:1].children,d=0;d=0)it(m.split(","),ot),_.removeAttribute("data-pv")}}}}function pt(e,t,r){var i=document.getElementById(e),o=document.getElementById(t);if(ft(i,o),n(window,"scroll",Qe(ft.bind(this,i,o),10)),r.fId){var s=document.getElementById(r.fId);n(s,"scroll",Qe(ft.bind(this,s,o),10))}}var dt={initDOM:function(e,t){switch(this.css="",t.layout){case"multiColumnScene":this.fontSize=12,this.indexs=f.multiColumnScene.index,this.feedNum=f.multiColumnScene.feedNum,this.adNum=f.multiColumnScene.adNum,l(t.userConf)?this.userConf={titleFontSize:14,titleFontColor:"#000000",contentBackground:"#ffffff",titleHover:"red",titleFontFamily:"Microsoft YaHei",isShowTab:!0,tabFontColor:"#000",tabFontSize:14,tabFontFamily:"Microsoft YaHei",tabBackground:"#ffffff",tabActive:"#d43d3d",tabHover:"red"}:this.userConf=t.userConf,this.css+=Ke(t,e,this.userConf);break;case"magicCubeScene":this.fontSize=12,this.indexs=f.multiColumnScene.index,this.feedNum=f.multiColumnScene.feedNum,this.adNum=f.multiColumnScene.adNum,l(t.userConf)?this.userConf={titleFontSize:14,titleFontColor:"#000000",contentBackground:"#ffffff",titleHover:"red",titleFontFamily:"Microsoft YaHei",isShowTab:!0,tabFontColor:"#000",tabFontSize:14,tabFontFamily:"Microsoft YaHei",tabBackground:"#ffffff",tabActive:"#d43d3d",tabHover:"red"}:this.userConf=t.userConf,this.css+=rt(t,e,this.userConf)}document.getElementById(e).style.fontSize=this.fontSize+"px",r(this.css),this.hasScroll=!1,this.update(e,t)},renderFeed:function(e,t,n){var r=[];switch(n.layout){case"multiColumnScene":it(e,function(e){var i=Ze(e,t,n);i=ee.fill(i,e),r.push(i)});break;case"magicCubeScene":it(e,function(e){var i=nt(e,t,n);i=ee.fill(i,e),r.push(i)})}return r.join("")},update:function(e,t){document.getElementById(e);var n=this;g.all([ee.next(e),ne.next(this.adNum,t.showid,p[e].selectTab,t.rshowid,e,t)]).then(function(n){n[0].length||(n[0]=d.data);var r=n[0]||[],i=n[1];if(l(i.ads)||a(i.ads.length)){var o=p[e].onFail;if(!l(o))return void o.call(null)}var s=this.dealFinalData(i,r,e,t);document.getElementById(e+"-info-content").innerHTML=''+s+' ',document.getElementById(e+"-loading").style.display="none",setTimeout(function(){pt(e+"-info",e+"-wrapper",t)},1e3),t.silder>1&&!t.BlockSlider&&this.sliderShow(e,t)}.bind(this)).caught(function(r){var i=p[e].onFail;l(i)?p[e].timeout&&(p[e].reTryTimes||(p[e].reTryTimes=0),p[e].reTryTimes<=2?(n.update(e,t),p[e].reTryTimes++):p[e].reTryTimes=null):i.call(null)})},scroll:function(e){},dealFinalData:function(e,t,n,r){var i=[],o=[],s=[];if(0!==e.length){for(var a=0;a0?o.push(e.ads.shift()):o.push(t.shift());for(a=0;a0?s.push(e.ads.shift()):s.push(t.shift());i.push(o,s)}else{for(a=0;a'),i[a]&&c.push(this.renderFeed(i[a],n,r)),c.push(""),l.push(c.join(""))}return l.join("")},initEvent:function(e,t){document.getElementById(e);ct(e,t)},sliderShow:function(e,t){var r,i=t,o=0,s=document.getElementById(e+"-info"),a=document.getElementById(e+"-wrapper")||!1;function l(t){var n=document.getElementById(e+"-wrapper");if(!n)return!1;var r=parseInt(n.style.marginLeft),i=setInterval(function(){r>=0?(o-=100)<=-t&&(o=-t,clearInterval(i)):r<0&&(o+=100)>=0&&(o=0,clearInterval(i)),n.style.marginLeft=o+"px"},10)}function c(){r=setInterval(function(){l(i.w)||clearInterval(r),setTimeout(function(){ft(s,a)},500)},5e3)}c(),n(document.getElementById(e+"sliderLeft"),"click",function(e){l(i.w),setTimeout(function(){ft(s,a)},500)}),n(document.getElementById(e+"sliderRight"),"click",function(e){l(i.w),setTimeout(function(){ft(s,a)},500)}),n(document.getElementById(e),"mouseenter",function(e){clearInterval(r)}),n(document.getElementById(e),"mouseleave",function(e){c()}),n(document,"visibilitychange",function(e){"hidden"==document.visibilityState?clearInterval(r):"visible"==document.visibilityState&&c()})}},ht='.floatbar{\r\n width: {w}px;\r\n height: 18px;\r\n line-height: 18px;\r\n position: relative;\r\n}\r\n\r\n.floatbar .btn{\r\n cursor: pointer;\r\n position: absolute;\r\n height: 18px;\r\n line-height: 18px;\r\n width: 54px;\r\n right: 0px;\r\n top: 0;\r\n background-image: url("https://p1.ssl.qhimg.com/t016758aefbdb8d04fa.jpg");\r\n}\r\n';function _t(){}_t.prototype.render=function(e,t,n,r){return''},_t.prototype.getStyle=function(e,t,n,r){return Ye($e(ht,{w:e}),r)};var mt=new _t;function gt(e){n(document.getElementById(e),"click",function(t){var n=t.target;s(n.className)&&n.className.indexOf("btn")>-1&&(document.getElementById(e).style.display="none")})}var vt={initDOM:function(e,t){switch(this.css="",t.layout){case"multiColumnScene":this.fontSize=12,this.indexs=f.multiColumnScene.index,this.feedNum=f.multiColumnScene.feedNum,this.adNum=f.multiColumnScene.adNum,l(t.userConf)?this.userConf={titleFontSize:14,titleFontColor:"#000000",contentBackground:"#ffffff",titleHover:"red",titleFontFamily:"Microsoft YaHei",isShowTab:!0,tabFontColor:"#000",tabFontSize:14,tabFontFamily:"Microsoft YaHei",tabBackground:"#ffffff",tabActive:"#d43d3d",tabHover:"red"}:this.userConf=t.userConf;try{this.css+=Ke(t,e,this.userConf)}catch(n){console.log(n)}break;case"magicCubeScene":this.fontSize=12,this.indexs=f.multiColumnScene.index,this.feedNum=f.multiColumnScene.feedNum,this.adNum=f.multiColumnScene.adNum,l(t.userConf)?this.userConf={titleFontSize:14,titleFontColor:"#000000",contentBackground:"#ffffff",titleHover:"red",titleFontFamily:"Microsoft YaHei",isShowTab:!0,tabFontColor:"#000",tabFontSize:14,tabFontFamily:"Microsoft YaHei",tabBackground:"#ffffff",tabActive:"#d43d3d",tabHover:"red"}:this.userConf=t.userConf,this.css+=rt(t,e,this.userConf)}document.getElementById(e).style.fontSize=this.fontSize+"px",this.options=t,document.getElementById(e+"-floatbar").innerHTML=mt.render(this.options.w,this.options.h,this.userConf,e),this.css+=mt.getStyle(t.w,t.h,this.userConf,e),r(this.css),this.hasScroll=!1,this.update(e)},renderFeed:function(e,t,n){var r=[];switch(n.layout){case"multiColumnScene":it(e,function(e){var i=Ze(e,t,n);i=ee.fill(i,e),r.push(i)});break;case"magicCubeScene":it(e,function(e){var i=nt(e,t,n);i=ee.fill(i,e),r.push(i)})}return r.join("")},update:function(e){document.getElementById(e);g.all([ee.next(e),ne.next(this.adNum,this.options.showid,p[e].selectTab,this.options.rshowid,e)]).then(function(t){t[0].length||(t[0]=p[e].doudiData);var n=t[1],r=t[0],i=this.dealFinalData(n,r,e);document.getElementById(e+"-info-content").innerHTML=''+i+' ',document.getElementById(e+"-loading").style.display="none",pt(e+"-info",e+"-wrapper"),this.sliderShow(e)}.bind(this)).caught(function(e){})},scroll:function(e){},dealFinalData:function(e,t,n){var r=[],i=[],o=[];if(0!==e.length){for(var s in e.ads)e.ads[s].impurl=e.impurl;for(s=0;s0?i.push(e.ads.shift()):i.push(t.shift());for(s=0;s0?o.push(e.ads.shift()):o.push(t.shift());r.push(i,o)}else{for(s=0;s'),r[s]&&l.push(this.renderFeed(r[s],n,this.options)),l.push(""),a.push(l.join(""))}return a.join("")},initEvent:function(e){document.getElementById(e);ct(e),gt(e,this.update.bind(this)),this.setPosition(e,this.options),n(window,"resize",this.setPosition.bind(this,e,this.options))},sliderShow:function(e){var t,r=this.options,i=0,o=document.getElementById(e+"-info"),s=document.getElementById(e+"-wrapper");function a(t){var n=document.getElementById(e+"-wrapper"),r=parseInt(n.style.marginLeft),o=setInterval(function(){r>=0?(i-=100)<=-t&&(i=-t,clearInterval(o)):r<0&&(i+=100)>=0&&(i=0,clearInterval(o)),n.style.marginLeft=i+"px"},10)}function l(){t=setInterval(function(){a(r.w),setTimeout(function(){track(o,s)},500)},5e3)}l(),n(document.getElementById(e+"sliderLeft"),"click",function(e){a(r.w),track(o,s)}),n(document.getElementById(e+"sliderRight"),"click",function(e){a(r.w),track(o,s)}),n(document.getElementById(e),"mouseenter",function(e){clearInterval(t)}),n(document.getElementById(e),"mouseleave",function(e){l()})},setPosition:function(e,t){var n=document.getElementById(e);n.style.position="fixed",n.style.top=(window.innerHeight||document.documentElement.clientHeight)-t.h+"px","left"===t.pos?n.style.left=0:n.style.right=0}};function yt(e){e.createElement("info-div")}function bt(e){if(window!=window.parent){for(var n=["WJl6id","1ALO80","69CrhT","8PjTGe","ov66Ob","NlgTaR","Dd8aJ2","zrSBIo","7fZPEq","6vWQYd","AT0w7M","FEFA5e","IEJAW2","pyQYw4","CDY8AI","qiqHjy","EcBJKn","8KIsWA","5m7dUK","GVpbj1","L5U9lg","kAx9iQ","i22r6v","hlRNVS","bP6CZI","Et052Y","o2Pd8T","3hJc8A","6u80A0","4bfZxH","aEMdtm","P0HpvT","wnAXE4","mU3Uws","KbFhjH","mAIA7Q","OO0Uwt","wtP1dr","dsibCD","VDllGl","btlb3x","cHJAYA","4TYo3X","OzXDcg","IoN6a8","3fCA93","z0dt2h","0dzsow","3Eqyc3","cjBzGn","4JEwyY","rppPsg","g6fzZe","Uzm2KI","TgW0Ff","CHEpJ2","9sQkQi","mzsIUv","UAJvko","rT9G5Q","HwOiH6","1QIVqp","HRv7p1","MXpuvY","YfeAYK","JmTl90","VWB9DB","s9a3mH","954wnf","BdQiwY","E2lCEB","YZN8Sw","u95oeU","hInmBh","JBWJ9B","I5gAey","zZLlqE","3n242m","Pp8iBt","NgpTzz","aGXcdz","vgvAsZ","3mGZWU","4whRLl","HtwYlo","EqMWpK","OLE7sc","PlcGpI","P0nqVL","Etz8QW","CvDRuA","SZNrfg","VYD0I1","fWRsnI","vphGB7","pi8vJX","btse1g","opEwCz","rdOGrr","lNTOHT","WzsQI9","0J3Xv8","ZQ4vMu","4abDVH"],i=!1,o=0;o"+n+""):t(function(){try{document.getElementById(e.placeholderId).innerHTML=""+n+""}catch(t){}})};if("magicCard"==s){if(e.w<150)return void c("宽度不能小于 150");if(e.w>1800)return void c("宽度不能超过 1800");if(e.h<126)return void c("高度不能小于 126");if(e.h>630)return void c("高度不能超过 630")}else if("magicCube"==s){if(e.w<110)return void c("宽度不能小于 110");if(e.w>1200)return void c("宽度不能超过 1200")}}if(!(p.displayShowId.join(",").indexOf(e.showid)>-1)){p.displayShowId.push(e.showid);var d=e.inject||"inlay",h=e.style||"magicCard";if("magicCard"==h){e.w<150&&(e.w=150),e.w>1800&&(e.w=1800),e.h<126&&(e.h=126),e.h>630&&(e.h=630);for(o=0;o=Je.w[o][0]&&e.w<=Je.w[o][1]){e.blocks=Je.w[o][2],e.blockWidth=e.w/e.blocks-15,e.blocks>4?(e.silder=1,f.multiColumnScene.adNum=e.blocks):(e.silder=2,f.multiColumnScene.adNum=2*e.blocks);break}e.row=parseInt(e.h/126),e.row>5&&(e.row=5),e.height=e.h,e.h=126*e.row,e.blocks*e.row>4?(e.silder=1,f.multiColumnScene.adNum=f.multiColumnScene.adNum*e.row,e.blocks=e.blocks*e.row):(e.silder=2,f.multiColumnScene.adNum=f.multiColumnScene.adNum*e.row,e.blocks=e.blocks*e.row)}else if("magicCube"==h){e.w>1200&&(e.w=1200),e.w<110&&(e.w=110),(!e.line||e.line<=0)&&(e.line=1),(!e.row||e.row<=0)&&(e.row=1);var _=e.row,m=e.line,g=e.w/m;e.h=g*_,e.margin=5,e.blocks=_*m,e.height=e.h,e.blockWidth=g-2*e.margin,e.blocks>4?(f.multiColumnScene.adNum=e.blocks,e.silder=1):(f.multiColumnScene.adNum=2*e.blocks,e.silder=2),e.marginTop=(e.h-g*_)/(_+1),e.marginLeft=(e.w-g*m)/(m+1),e.marginTop<5&&(e.marginTop=4),e.marginLeft<5&&(e.marginLeft=4)}document.createElement(p.elementName),r(p.elementName+"{display:block;} "+p.elementName+" .img{background-size:cover;background-repeat:no-repeat;}"),yt(document);var v=u+(new Date).getTime();p[v]={},p[v].onFail=e.onFail;var y=[];switch(h){case"magicCube":y.push(' '),y.push(' '),y.push(' 正在为您努力加载...'),y.push(" "),y.push(' '),y.push(" "),y.push(' ');break;case"magicCard":e.marginTop=(e.height-126*e.row)/(e.row+1),y.push(' '),y.push(' '),y.push(' 正在为您努力加载...'),y.push(" "),y.push(' '),y.push(" "),y.push(' ')}switch(d){case"inlay":(w=[]).push("<"+p.elementName+' class="'+p.elementName+' {id}" id="{id}" style="width:{width}px;height:{boxHeight}px;font-size:14px;overflow:hidden;display:block;margin:0;padding:0;overflow:hidden;position:relative;text-align:left;">'),w.push(y.join("")),w.push("");var b=$e(w.join(""),{id:v,width:e.w,height:e.h,boxHeight:e.height,marginTop:e.marginTop||12,infoHeight:e.userConf&&!e.userConf.isShowTab?e.h:e.h-42});a(e.placeholderId)||l(e.placeholderId)?(document.write(b),dt.initDOM(v,e),dt.initEvent(v,e)):t(function(e,t,n){try{document.getElementById(e.placeholderId).innerHTML=n,t.initDOM(v,e),t.initEvent(v,e)}catch(r){}}.bind(this,e,dt,b));break;case"float":var w;(w=[]).push("<"+p.elementName+' class="'+p.elementName+' {id}" id="{id}" style="width:{width}px;height:{boxHeight}px;font-size:14px;overflow:hidden;display:block;margin:0;padding:0;overflow:hidden;position:relative;text-align:left;">'),w.push(''),w.push(y.join("")),w.push("");b=$e(w.join(""),{id:v,width:e.w,height:e.h,boxHeight:e.height,marginTop:e.marginTop||12,infoHeight:e.userConf&&!e.userConf.isShowTab?e.h:e.h-42});t(function(e,t){var n=document.createElement("div");document.body.appendChild(n),n.innerHTML=t,vt.initDOM(v,e),vt.initEvent(v,e)}.bind(this,e,b))}}}return bt}();