-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPandora.min.js
19 lines (16 loc) · 63 KB
/
Pandora.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
Pandora.js 2.0.0 - Front-end common function set
E-mail:work@pandorastudio.cn Web:https://www.pandorajs.com
Copyright (C) 2015-2021 袁涛
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";var _createClass=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}!function(n){var r={};function i(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=n,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===(void 0===t?"undefined":_typeof(t))&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(module,exports,__webpack_require__){var OSSBase64=__webpack_require__(1),icoConfig=__webpack_require__(2),Alphabet=["active","local","localhost","pandorajs.com","127.0.0.1","192.168","inherit","\u63d0\u793a","\u9519\u8bef","\u8b66\u544a"];window.enableTrack=!0,window.pdDialogs=[],null==window.resetAlert&&(window.resetAlert=!0),null==window.resetConfirm&&(window.resetConfirm=!0);var isCooling=!1,trackCooler=void 0,canTrack=function(){var e=document.domain||Alphabet[1];return!!(window.enableTrack&&e.indexOf(Alphabet[3])<0&&e.indexOf(Alphabet[5])<0&&e!=Alphabet[1]&&e!=Alphabet[2]&&e!=Alphabet[4])};canTrack()&&console.info("["+Alphabet[7]+"] \u542f\u7528\u8ddf\u8e2a\uff0c\u5173\u95ed\u8bf7\u4fee\u6539 window.enableTrack (\u7c7b\u578b\uff1a\u5e03\u5c14)"),window.requestAnimationFrame||(window.requestAnimationFrame=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-lastTime)),r=setTimeout(function(){e(t+n)},n);return lastTime=t+n,r},window.cancelAnimationFrame=function(e){clearTimeout(e)});var getRoot=function(e){return window.getComputedStyle(document.documentElement).getPropertyValue("--"+e)},rootText="";getRoot("alertTheme")||(rootText+="/*alert\u80cc\u666f*/--alertTheme:"+Alphabet[6]+";"),getRoot("alertBg")||(rootText+="/*alert\u906e\u7f69*/--alertBg:"+Alphabet[6]+";"),getRoot("alertFontSize")||(rootText+="/*alert\u5b57\u4f53\u5927\u5c0f*/--alertFontSize:1rem;"),getRoot("alertColor")||(rootText+="/*alert\u5b57\u4f53\u989c\u8272*/--alertColor:#000;"),getRoot("confirmTheme")||(rootText+="/*confirm\u80cc\u666f*/--confirmTheme:"+Alphabet[6]+";"),getRoot("confirmBg")||(rootText+="/*confirm\u906e\u7f69*/--confirmBg:"+Alphabet[6]+";"),getRoot("confirmBtnBg")||(rootText+="/*confirm\u6309\u94ae\u80cc\u666f*/--confirmBtnBg:#b6c781;"),getRoot("confirmFontSize")||(rootText+="/*confirm\u5b57\u4f53\u5927\u5c0f*/--confirmFontSize:1rem;"),getRoot("confirmColor")||(rootText+="/*confirm\u5b57\u4f53\u989c\u8272*/--confirmColor:#000;"),getRoot("confirmBtnColor")||(rootText+="/*confirm\u6309\u94ae\u5b57\u4f53\u989c\u8272*/--confirmBtnColor:#fff;");var style=document.createElement("style");style.innerHTML=":root{"+rootText+"}",document.querySelector("head").appendChild(style);var isMaskShow=!1,setGlobalCSS=function(e,t,n,r){e.style.cssText="\n position:fixed;\n top:0;\n left:0;\n z-index:999999999;\n width:100%;\n height:100%;\n display:flex;\n justify-content:center;\n background:"+Alphabet[6]+";\n background:"+t,n.style.cssText=r.style.cssText="position:absolute;top:0;left:0;right:0;bottom:0",r.style.cssText+="background:"+Alphabet[6]+";filter:blur(10px) saturate(2)",t&&(r.style.cssText+="background:rgba(255,255,255,.66)")};window.resetAlert&&(window.alert=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:800,n=void 0,r=document.createElement("div"),i=isMaskShow?null:getRoot("alertBg"),o=document.createElement("div"),a=document.createElement("p"),l=document.createElement("div"),c=document.createElement("div"),s=getRoot("alertTheme"),u=getRoot("alertFontSize"),d=getRoot("alertColor");setGlobalCSS(r,i,l,c),r.style.cssText+="align-items:flex-end",o.style.cssText="\n background:"+Alphabet[6]+";\n background:"+s+";\n text-align:center;\n color:"+d+";\n font-size:"+u+";\n padding:1em 2em;\n line-height:1.5;\n transition:opacity .4s ease-out;\n margin-bottom:5vh;\n box-shadow:0 8px 16px rgba(0,0,0,.25);\n border:1px solid rgba(0,0,0,.1);\n border-radius:6px;\n position:relative;\n overflow:hidden",o.className="Pd_alert",a.style.cssText="margin:0;position:relative",a.innerText=e?e.toString():"",o.appendChild(l),o.appendChild(c),o.appendChild(a),r.appendChild(o),document.body.appendChild(r),r.onclick=function(){clearTimeout(n),document.body.removeChild(r),r=o=n=d=null},clearTimeout(n),n=setTimeout(function(){o.style.opacity="0",o.addEventListener("transitionend",function(){document.body.removeChild(r),r=o=n=d=null})},t)}),window.resetConfirm&&(window.confirm=function(e){var t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,a=document.createElement("div"),l=document.createElement("div"),c=document.createElement("div"),s=document.createElement("div"),u=document.createElement("p"),d=document.createElement("button"),h=document.createElement("button"),f=isMaskShow?null:getRoot("confirmBg"),g=getRoot("confirmBtnBg"),y=getRoot("confirmTheme"),p=getRoot("confirmFontSize"),M=getRoot("confirmColor"),m=getRoot("confirmBtnColor"),v=null==e.showConfirm||e.showConfirm,z=null==e.showCancel||e.showCancel;setGlobalCSS(a,f,c,s),a.style.cssText+="align-items: center;",l.style.cssText="\n background:"+Alphabet[6]+";\n background:"+y+";\n text-align:center;\n color:"+M+";\n font-size:"+p+";\n padding:1.5em;\n max-width:75vw;\n box-shadow:0 8px 16px rgba(0,0,0,.25);\n border:1px solid rgba(0,0,0,.1);\n border-radius:6px;\n position:relative;\n overflow:hidden",l.className="Pd_confirm",u.style.cssText="margin:0;position:relative;line-height:2",d.style.cssText=h.style.cssText="position:relative;margin:2.5em 1em 0 1em;font-size:.8em;appearance:none;background:"+g+";color:"+m+";border:none;padding:1em 3em;cursor:pointer;outline:none";function b(){document.body.removeChild(a),isMaskShow=!1}return e.content?(t=e.content,n=e.confirmText,r=e.cancelText,i=e.success,o=e.fail):t=e.toString(),u.innerText=t?t.toString():"",l.appendChild(c),l.appendChild(s),l.appendChild(u),v&&(d.innerText=n?n.toString():"\u786e\u8ba4",l.appendChild(d)),z&&(h.innerText=r?r.toString():"\u53d6\u6d88",l.appendChild(h)),a.appendChild(l),document.body.appendChild(a),isMaskShow=!0,new Promise(function(e,t){v&&(d.onclick=function(){b(),(i||e)()}),z&&(h.onclick=function(){b(),(o||t)()})})});var LoadingName="Pd_loader";window.showLoading=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=document.createElement("div"),n=new Image,r=document.createElement("em");n.src=icoConfig.load,t.id=""+LoadingName,t.style.cssText="font-size:18px;width:100%;height:100%;position:fixed;z-index:999999999;top:0;left:0;background:rgba(0,0,0,.65);display:flex;align-items:center;justify-content:center;flex-direction:column",document.querySelector("#"+LoadingName)&&document.body.removeChild(document.querySelector("#"+LoadingName)),n.style.width=n.style.height="3em",t.appendChild(n),null!==e&&(r.style.fontStyle="normal",r.style.color="#fff",r.style.marginTop=".5em",r.style.fontSize="1em",r.innerText=e,t.appendChild(r)),document.body.appendChild(t)},window.hideLoading=function(){document.querySelector("#"+LoadingName)&&document.body.removeChild(document.querySelector("#"+LoadingName))};var PandoraAPI=function PandoraAPI(){var _this=this,input=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;_classCallCheck(this,PandoraAPI),this.getInput=function(e){return Array.isArray(e)?e:-1!==["[object Window]","[object HTMLDocument]"].indexOf(e+"")?window:document.querySelectorAll(e)?1<document.querySelectorAll(e).length?document.querySelectorAll(e):document.querySelector(e):console.error("["+Alphabet[8]+"] \u672a\u627e\u5230 "+e+"\uff01")},this.get=this.getInput(input),this.guid=function(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return"PandoraAPI_"+e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},this.pid=this.guid(),this.extend=function(t,n){return n?Object.keys(t).forEach(function(e){void 0===n[e]&&(n[e]=t[e])}):n=t,n},this.eq=function(e){try{_this.getInput(input).length?_this.get=_this.getInput(input)[e]:_this.get=_this.getInput(input)}catch(e){console.error("["+Alphabet[8]+"] \u672a\u627e\u5230\u8be5\u4e0b\u6807\uff01\n"+e)}return _this},this.child=function(e){var t=_this.get;try{1<t.querySelectorAll(e).length?_this.get=t.querySelectorAll(e):_this.get=t.querySelectorAll(e)[0]}catch(e){console.error("["+Alphabet[8]+"] \u672a\u627e\u5230\u8be5\u5b50\u7ea7\uff01\n"+e)}return _this},this.parent=function(){var e=_this.get;try{_this.get=e.parentElement}catch(e){console.error("["+Alphabet[8]+"] \u672a\u627e\u5230\u8be5\u7236\u7ea7\uff01\n"+e)}return _this},this.siblings=function(e){var t=_this.get,n=_this.parent(),r=[],i=!0,o=!1,a=void 0;try{for(var l,c=n.child(e).get[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var s=l.value;t!=s&&r.push(s)}}catch(e){o=!0,a=e}finally{try{!i&&c.return&&c.return()}finally{if(o)throw a}}return _this.get=r,_this},this.prev=function(){var e=_this.get;return _this.get=e.previousElementSibling,_this},this.next=function(){var e=_this.get;return _this.get=e.nextElementSibling,_this},this.first=function(){return _this.eq(0)},this.last=function(){var e=_this.get;return e.length?_this.eq(e.length-1):_this.first()},this.each=function(e){var t=_this.get;if(t.length)for(var n=0;n<t.length;n++)e&&e(_this.eq(n),n);else e&&e(_this.first(),0);return _this},this.css=function(t){var n=_this.get,r=[];if(!(r=t))return window.getComputedStyle(n).getPropertyValue("*");if("string"==typeof r)return(n.length?window.getComputedStyle(n[0]):window.getComputedStyle(n)).getPropertyValue(r);if(n.length){var e=!0,i=!1,t=void 0;try{for(var o,a=n[Symbol.iterator]();!(e=(o=a.next()).done);e=!0)!function(){var t=o.value;Object.keys(r).forEach(function(e){t.style[e]=r[e]})}()}catch(e){i=!0,t=e}finally{try{!e&&a.return&&a.return()}finally{if(i)throw t}}}else Object.keys(r).forEach(function(e){n.style[e]=r[e]})},this.offset=function(){var e=_this.get;return(e.length?e[0]:e).getBoundingClientRect()},this.width=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=_this.get;if(!e)return(t.length?t[0]:t).offsetWidth;if(t.length){var n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0)o.value.style.width=e}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}else t.style.width=e},this.height=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=_this.get;if(!e)return(t.length?t[0]:t).offsetHeight;if(t.length){var n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0)o.value.style.height=e}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}else t.style.height=e},this.text=function(e){var t=_this.get;if(null==e)return(t.length?t[0]:t).innerText;if(t.length){var n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0)o.value.innerText=e.toString()}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}else t.innerText=e.toString();return _this},this.html=function(e){var t=_this.get;if(!e)return(t.length?t[0]:t).innerHTML;if(_this.empty(),t.length){var n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0)o.value.innerHTML=e}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}else t.innerHTML=e;return _this},this.val=function(e){var t=_this.get;if(t.length){if(null==e)return t[0].value;var n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0)o.value.value=e}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}else{if(null==e)return t.value;t.value=e}return _this},this.prepend=function(e){var t=_this.get;if(t.length)if("select"==t.nodeName.toLowerCase())"object"==(void 0===e?"undefined":_typeof(e))?t.insertBefore(e,t.firstChild):t.innerHTML=""+e+t.innerHTML;else{var n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var l=o.value;"object"==(void 0===e?"undefined":_typeof(e))?l.insertBefore(e,l.firstChild):l.innerHTML=""+e+l.innerHTML}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}else"object"==(void 0===e?"undefined":_typeof(e))?t.insertBefore(e,t.firstChild):t.innerHTML=""+e+t.innerHTML;return _this},this.append=function(e){var t=_this.get;if(1<t.length)if("select"==t.nodeName.toLowerCase())"object"==(void 0===e?"undefined":_typeof(e))?t.appendChild(e):t.innerHTML+=e;else{var n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var l=o.value;"object"==(void 0===e?"undefined":_typeof(e))?l.appendChild(e):l.innerHTML+=e}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}else"object"==(void 0===e?"undefined":_typeof(e))?t.appendChild(e):t.innerHTML+=e;return _this},this.empty=function(){var e=_this.get;if(e.length){var t=!0,n=!1,r=void 0;try{for(var i,o=e[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)for(var a=i.value;a.firstChild;)a.removeChild(a.firstChild)}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}else for(;e.firstChild;)e.removeChild(e.firstChild);return _this},this.remove=function(){var e=_this.get;if(e.length){var t=!0,n=!1,r=void 0;try{for(var i,o=e[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;try{a.parentElement.removeChild(a)}catch(e){console.error("["+Alphabet[8]+"] \u672a\u627e\u5230\u5143\u7d20\uff01\n"+e)}}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}else try{e.parentElement.removeChild(e)}catch(e){console.error("["+Alphabet[8]+"] \u672a\u627e\u5230\u5143\u7d20\uff01\n"+e)}return _this},this.addClass=function(n){function e(e){var t=e.classList.value;t?t.indexOf(n)<0&&(e.className=t+" "+n.trim()):e.className=n.trim()}var t=_this.get;if(t.length){var r=!0,i=!1,o=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done);r=!0)e(a.value)}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}}else e(t);return _this},this.removeClass=function(r){function e(e){var n,t;e.classList.value&&(t=void 0,(n=e.classList.value.split(" ")).map(function(e,t){e===r&&n.splice(t,1)}),t=n.join(" "),e.className=t)}var t=_this.get;if(t.length){var n=!0,i=!1,o=void 0;try{for(var a,l=t[Symbol.iterator]();!(n=(a=l.next()).done);n=!0)e(a.value)}catch(e){i=!0,o=e}finally{try{!n&&l.return&&l.return()}finally{if(i)throw o}}}else e(t);return _this},this.hasClass=function(e){var t=_this.get;return-1<(-1<t.classList.value.indexOf(" ")?t.classList.value.split(" "):t.classList.value).indexOf(e)},this.attr=function(e,t){var n,r=_this.get;if(r.length){if("object"==(void 0===e?"undefined":_typeof(e))){var i=!0,o=!1,a=void 0;try{for(var l,c=r[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var s,u=l.value;for(s in e)u.setAttribute(s,e[s])}}catch(e){o=!0,a=e}finally{try{!i&&c.return&&c.return()}finally{if(o)throw a}}return _this}if(t){var d=!0,o=!1,a=void 0;try{for(var h,f=r[Symbol.iterator]();!(d=(h=f.next()).done);d=!0)h.value.setAttribute(e,t)}catch(e){o=!0,a=e}finally{try{!d&&f.return&&f.return()}finally{if(o)throw a}}return _this}return r[0].getAttribute(e)}if("object"!=(void 0===e?"undefined":_typeof(e)))return t?(r.setAttribute(e,t),_this):r.getAttribute(e);for(n in e)r.setAttribute(n,e[n]);return _this},this.removeAttr=function(e){var t=_this.get;if(t.length){var n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0)o.value.removeAttribute(e)}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}else t.removeAttribute(e);return _this},this.bind=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=_this.get;if(r.length){var i=!0,o=!1,a=void 0;try{for(var l,c=r[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var s=l.value;s.addEventListener(e,t,n),s.eventList=[],s.eventList.push({name:e,callback:t})}}catch(e){o=!0,a=e}finally{try{!i&&c.return&&c.return()}finally{if(o)throw a}}}else r.addEventListener(e,t,n),r.eventList=[],r.eventList.push({name:e,callback:t});return _this},this.unbind=function(r){var n=_this.get;if(n.length){var e=!0,t=!1,i=void 0;try{for(var o,a=n[Symbol.iterator]();!(e=(o=a.next()).done);e=!0)!function(){var n=o.value;n.eventList&&n.eventList.map(function(e,t){e.name===r&&(n.removeEventListener(r,e.callback),n.eventList.splice(t,1))})}()}catch(e){t=!0,i=e}finally{try{!e&&a.return&&a.return()}finally{if(t)throw i}}}else n.eventList&&n.eventList.map(function(e,t){e.name===r&&(n.removeEventListener(r,e.callback),n.eventList.splice(t,1))});return _this},this.blur=function(){var e=_this.get;if(e.length){var t=!0,n=!1,r=void 0;try{for(var i,o=e[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)i.value.blur()}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}else e.blur();return _this},this.click=function(t){var n=_this.get;if(n.length)for(var e=0;e<n.length;e++)!function(e){n[e].onclick=function(){_this.get=n[e],t(_this,e)}}(e);else n.onclick=function(){t(_this,null)};return _this},this.taping=function(t){var n=_this.get,e=void 0;try{window.ontouchstart}catch(e){return n.onclick=t,_this}function r(){t(),e=requestAnimationFrame(r)}return n.ontouchstart=function(e){e.preventDefault(),cancelAnimationFrame(r),r()},n.ontouchend=function(){cancelAnimationFrame(e)},_this},this.show=function(e){return _this.attr("beforeHide")?_this.css({display:_this.attr("beforeHide")}):_this.css({display:"block"}),e&&setTimeout(e),_this},this.hide=function(e){return _this.attr("beforeHide")||_this.attr("beforeHide","none"==_this.css("display")?"block":_this.css("display")),_this.css({display:"none"}),e&&setTimeout(e),_this},this.fadeIn=function(){function e(){if(i<100){switch(t){case"fast":i+=5;break;case"slow":i++;break;default:i+=t}o=requestAnimationFrame(e)}else n&&n(),cancelAnimationFrame(o);r.css({opacity:i/100})}var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"fast",n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=_this,i=0,o=void 0;return r.show(function(){r.css({opacity:0}),e()}),_this},this.fadeOut=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"fast",n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=_this,i=100,o=void 0;return function e(){if(0<i){switch(t){case"fast":i-=5;break;case"slow":i--;break;default:i-=t}o=requestAnimationFrame(e)}else r.hide(function(){n&&n(),cancelAnimationFrame(o)});r.css({opacity:i/100})}(),_this},this.ajax=function(e){var t=_this.extend(t={url:null,type:"get",async:!1,headers:{"Content-type":"application/x-www-form-urlencoded"},dataType:"json",data:null,success:null,error:null,progress:null},e),n=new XMLHttpRequest,r=t.url,i=t.type,o=t.async,a=t.headers,e=t.dataType,l=t.data,c=t.success,s=t.error,u=t.progress,t=void 0;if("json"==e?l&&(t=Object.keys(l).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(l[e])}).join("&")):t=l,n.onload=function(e){if(200===n.status||"OK"===n.statusText){var t=n.responseText||n.response;try{JSON.parse(t)}catch(e){return c&&c(t),!1}c&&c(JSON.parse(t))}else s&&s(e)},n.open(i.toUpperCase(),r,o),n.upload.onprogress=function(e){e.lengthComputable&&u&&u(Math.floor(e.loaded/e.total*100))},a)for(var d in a)n.setRequestHeader(d,a[d]);n.send(t)},this.fetch=function(e){var t,n=(t=_this.extend(t={url:null,headers:{"Content-type":"application/x-www-form-urlencoded"},type:"get",data:null,returnData:function(e){return e.json()},success:null,error:null},e)).url,r=t.data,i=t.headers,e=t.type,o=t.success,a=t.error,l=t.returnData;fetch(n,{body:r?JSON.stringify(r):null,headers:i,method:e.toLocaleUpperCase()}).then(function(e){return e.ok?l(e):void console.error("["+Alphabet[8]+"] \u8bf7\u6c42\u9519\u8bef\uff01\n"+e)}).then(function(e){o&&o(e)}).catch(function(e){a&&a(e)})},this.serialize=function(){var e=_this.get,t={},n=!0,r=!1,i=void 0;try{for(var o,a=e.querySelectorAll("*")[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var l,c=o.value;!c.getAttribute("name")||(l=c.getAttribute("name"))&&("radio"!==c.type||c.checked)&&(t[l]=c.value)}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return t},this.usingTrack=function(e){var t=navigator.userAgent,n=window.location.href;canTrack()&&(isCooling?(clearTimeout(trackCooler),trackCooler=setTimeout(function(){isCooling=!1},1e3)):_this.fetch({url:"https://api."+Alphabet[3]+"/Pd_track?usageFunction="+e+"&usagePlatform="+t+"&usageDomain="+n,success:function(){isCooling=!0}}))},this.globalData={},this.setData=function(r){return new Promise(function(e,t){for(var n in r)try{_this.globalData[n]=r[n]}catch(e){console.error("["+Alphabet[8]+" - Mush] \u53d8\u91cf\u4fee\u6539\u5931\u8d25\uff01"+e),t(e)}e()})},this.getData=function(e){return _this.globalData[e]||(console.error("["+Alphabet[8]+" - Mush] \u83b7\u53d6\u7684\u53d8\u91cf\u4e0d\u5b58\u5728\uff01"),null)},this.template=function(route,container){return new Promise(function(_success,fail){var temp=function(){for(var e=void 0,t=document.querySelectorAll("template"),n=0;n<t.length;n++)t[n].getAttribute("route")==route&&(e=t[n]);return e}(),url,that;temp?(_this.empty(),url=temp.getAttribute("src"),that=_this,url?that.fetch({url:url,headers:{"Content-type":"text/html"},returnData:function(e){return e.text()},success:function success(res){var node=document.createElement("template");node.innerHTML=res,container.appendChild(document.importNode(node.content,!0));var _iteratorNormalCompletion21=!0,_didIteratorError21=!1,_iteratorError21=void 0;try{for(var _iterator21=node.content.querySelectorAll("script")[Symbol.iterator](),_step21;!(_iteratorNormalCompletion21=(_step21=_iterator21.next()).done);_iteratorNormalCompletion21=!0){var script=_step21.value;script.getAttribute("src")?that.fetch({url:script.src,headers:{"Content-type":"text/html"},returnData:function(e){return e.text()},success:function success(res){eval(res)}}):eval(script.innerHTML)}}catch(err){_didIteratorError21=!0,_iteratorError21=err}finally{try{!_iteratorNormalCompletion21&&_iterator21.return&&_iterator21.return()}finally{if(_didIteratorError21)throw _iteratorError21}}_success()},error:function(e){console.error("["+Alphabet[8]+" - Router] \u4e0d\u5b58\u5728\u4ee5\u4e0b\u8def\u7531\uff1a"+e.target.responseURL),fail(""+route)}}):(container.appendChild(document.importNode(temp.content,!0)),_success())):(console.error("["+Alphabet[8]+" - Router] \u4e0d\u5b58\u5728\u4ee5\u4e0b\u8def\u7531\uff1a"+route),fail(""+route))})},this.getParams=function(){var e=location.href.split("?");if(-1<location.href.indexOf("?")){var t={};return e[1].split("&")?e[1].split("&").map(function(e){t[e.split("=")[0]]=e.split("=")[1]}):t[e[1].split("=")[0]]=t[e[1].split("=")[1]],t}return null},this.hashChange=function(e,t){e(-1<location.hash.indexOf("#")&&(null===location.hash.match(/#(\S*)\?/)?location.hash.match(/#(\S*)/):location.hash.match(/#(\S*)\?/)).input.replace("#","")||t[0].path)},this.Array={originals:this.get,Random:function(){for(var e=this.originals,t=0;t<e.length;t++)e[t]=e[t];return e.sort(function(){return.5-Math.random()}),e},hasRepeat:function(){var e,t=this.originals,n={};for(e in t){if(n[t[e]])return!0;n[t[e]]=!0}return!1},Sum:function(){for(var e=this.originals,t=0,n=e.length-1;0<=n;n--)t+=e[n];return t}}},PandoraJs=function(e){return _inherits(t,e),_createClass(t,[{key:"Mush",value:function(e){function n(e){var t={},n=!0,r=!1,i=void 0;try{for(var o,a=Object.keys(e)[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var l=o.value;t[l]=e[l]}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return t}var r,t=this.extend(t={data:null,Init:null,Update:null},e),c=this.html(),s=c,u=void 0,d=this,h=t.data,i=t.Init,o=t.Update,a=new RegExp("{{.*?}}","g"),f=new RegExp("{{.*?}}");r=[],c.match(a).forEach(function(e,t){r[t]=e.split("{{")[1].split("}}")[0]});function l(){return new Promise(function(e){c=s;var t=!0,n=!1,r=void 0;try{for(var i,o=u[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a,l=i.value;for(a in h)l===a&&(c=c.replace(f,h[l].toString()||""))}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}d.html(c),e()})}return function(e){for(var t=[],n=0,r=e.length;n<r;n++){for(var i=n+1;i<r;i++)e[n]==e[i]&&++n;t.push(e[n])}return t}(u=r).forEach(function(t){Object.defineProperty(d.globalData,t,{set:function(e){h[t]=e,l().then(function(){o&&o(n(d.globalData))}).catch(function(e){console.error("["+Alphabet[8]+" - Mush] \u53d8\u91cf\u66f4\u65b0\u5931\u8d25\uff1a"+e)})},get:function(){return h[t]},enumerable:!0})}),l().then(function(){i&&i(n(d.globalData))}).catch(function(e){console.error("["+Alphabet[8]+" - Mush] \u521d\u59cb\u6e32\u67d3\u5931\u8d25\uff1a"+e)}),this}},{key:"Router",value:function(e){function t(e){e?JSON.stringify(i).indexOf(e.split("?")[0])<0?console.error("["+Alphabet[8]+" - Router] "+e.split("?")[0]+" \u4e0d\u5b58\u5728\u4e8eroutes\uff01"):i.forEach(function(t){e.split("?")[0]==t.path&&r.template(e.split("?")[0],r.get).then(function(){window.location.href="#"+e;try{t.callback&&t.callback(r.getParams())}catch(e){t.error&&t.error(e),console.error("["+Alphabet[8]+" - Router] "+e)}}).catch(function(e){t.error&&t.error(e),console.error("["+Alphabet[8]+" - Router] "+e)})}):console.error("["+Alphabet[8]+" - Router] \u4e0d\u5b58\u5728\u4efb\u4f55\u8def\u7531\uff01")}var n=this.extend(n={routes:null},e),r=this,i=n.routes;return this.navigateTo=function(e){window.location.href="#"+e},window.onhashchange=function(){r.hashChange(t,i)},i?t(i[0].path):console.error("["+Alphabet[8]+" - Router] \u4e0d\u5b58\u5728\u4efb\u4f55\u8def\u7531\uff01"),this}},{key:"Switcher",value:function(e){this.usingTrack("Switcher");function t(){var e=z.parentElement.getBoundingClientRect(),l=e.width,c=e.height;w=a,new Promise(function(e){if("fade"===y){var t=!0,n=!1,r=void 0;try{for(var i,o=v[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;a.style.transition="opacity "+f+"s "+g,a.style.position="absolute"}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}else"vertical"===p?(z.style.width=l+"px",z.style.height=c*I+"px",z.style.flexDirection="column",z.style.cssText+="touch-action: pan-x"):(z.style.width=l*I+"px",z.style.height=c+"px",z.style.flexDirection="row",z.style.cssText+="touch-action: pan-y"),z.style.display="flex",z.style.transition="transform "+f+"s "+g;e()}).then(function(){return new Promise(function(e){N(a),R(),n&&z.removeEventListener("touchmove",O),o&&z.removeEventListener("mousewheel",Y),z.removeEventListener("touchstart",_),z.removeEventListener("touchend",P),e()})}).then(function(){n&&z.addEventListener("touchmove",O),o&&z.addEventListener("mousewheel",Y),z.addEventListener("touchstart",_),z.addEventListener("touchend",P),i&&(z.addEventListener("mouseover",function(){clearTimeout(x),cancelAnimationFrame(U)}),z.addEventListener("mouseout",R))})}var h={Speed:1,Curve:"ease",Effect:"slider",Direction:"horizontal",Inertia:!0,Distance:3,AutoSpeed:0,Pagination:!1,Hover:!1,Scroll:!1,InitPage:0,Loop:!1,onChange:null,AutoResize:!1},e=h=this.extend(h,e),f=e.Speed,g=e.Curve,y=e.Effect,p=e.Direction,n=e.Inertia,M=e.Distance,r=e.AutoSpeed,m=e.Pagination,i=e.Hover,o=e.Scroll,a=e.InitPage,l=e.Loop,c=e.onChange,e=e.AutoResize,v=this.get,z=v[0].parentElement,b=v[0].offsetWidth,A=v[0].offsetHeight,I=v.length,s=function e(){u&&(u=!1,z.removeEventListener("transitionend",e))},w=a,x=void 0,u=!1,N=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;if(d(w="number"==typeof t?t:w),c&&c(w),"fade"===y){var e=!0,n=!1,t=void 0;try{for(var r,i=v[Symbol.iterator]();!(e=(r=i.next()).done);e=!0)r.value.style.opacity=0}catch(e){n=!0,t=e}finally{try{!e&&i.return&&i.return()}finally{if(n)throw t}}v[w].style.opacity=1}else z.style.transform="vertical"===p?"translate3d(0,"+A*w*-1+"px,0)":"translate3d("+b*w*-1+"px,0,0)";!l&&(0===w||w===I-1)?s():z.addEventListener("transitionend",s)},d=function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=v[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;a.className=a.className.replace(Alphabet[0],"").trim()}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}if(v[w].className?v[w].className+=" "+Alphabet[0]:v[w].className+=Alphabet[0],m){z.parentElement.querySelector(".Pd-pagination")&&z.parentElement.removeChild(z.parentElement.querySelector(".Pd-pagination"));var l=document.createElement("div");l.className="Pd-pagination";for(var c=0;c<I;c++){var s=document.createElement("a"),u=v[c].getAttribute("data-title")?document.createTextNode(v[c].getAttribute("data-title")):document.createTextNode(c);s.setAttribute("href","javascript:void 0"),c===e&&(s.className=Alphabet[0]),s.appendChild(u),l.appendChild(s)}z.parentElement.insertBefore(l,z.nextElementSibling);for(var d=0;d<z.parentElement.querySelectorAll(".Pd-pagination a").length;d++)!function(e){var t=z.parentElement.querySelectorAll(".Pd-pagination a")[e],n=e;t.onclick=function(){w=n,N()}}(d)}},j=function(){w<I&&0<w?w--:0===w&&l?w=I-1:u=!1,N()},T=function(){w<I-1?w++:w=w===I-1&&l?0:I-1,N()},C=void 0,S=void 0,D=void 0,L=void 0,k=void 0,E=void 0,_=function(e){if(e.target.getAttribute("switch-cancel"))return!1;clearTimeout(x),cancelAnimationFrame(U);var t=e.changedTouches[0],n=t.pageX,r=t.pageY,e=z.parentElement.getBoundingClientRect(),t=e.left,e=e.top;"vertical"===h.Direction?S=r-e:C=n-t,z.style.transition=null},O=function(t){if(t.target.getAttribute("switch-cancel"))return!1;var e=t.changedTouches[0],n=e.pageX,r=e.pageY,t=z.parentElement.getBoundingClientRect(),e=t.left,t=t.top;if(k=n-e,E=r-t,"fade"===y){var i=!0,r=!1,t=void 0;try{for(var o,a=v[Symbol.iterator]();!(i=(o=a.next()).done);i=!0)o.value.style.transition="opacity "+f+"s linear"}catch(e){r=!0,t=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw t}}}else"vertical"===p?E<S?w!=I-1&&(z.style.transform="translate3d(0,"+-1*(S-E+A*w)+"px,0)"):0!=w&&(z.style.transform="translate3d(0,"+(A*w*-1+Math.abs(E-S))+"px,0)"):z.style.transform=k<C?"translate3d("+-1*(C-k+b*w)+"px,0,0)":"translate3d("+(b*w*-1+Math.abs(k-C))+"px,0,0)"},P=function(t){if(t.target.getAttribute("switch-cancel"))return!1;clearTimeout(x),R(),z.style.transition="transform "+f+"s "+g;var n=t.changedTouches[0],r=n.pageX,i=n.pageY,t=z.parentElement.getBoundingClientRect(),n=t.left,t=t.top;if("vertical"===p)if(L=i-t,"fade"===y){S-L>A/h.Distance&&w===I-1?w=0:S-L>A/h.Distance&&w<I-1?T():L-S>A/h.Distance&&j();var e=!0,i=!1,t=void 0;try{for(var o,a=v[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){var l=o.value;l.style.transition="opacity "+h.Speed+"s "+h.Curve,l.style.opacity=0}}catch(e){i=!0,t=e}finally{try{!e&&a.return&&a.return()}finally{if(i)throw t}}v[w].style.opacity=1,N()}else S-L>A/h.Distance&&w<I-1&&T(),L-S>A/h.Distance&&j(),z.style.transform="translate3d(0,"+A*w*-1+"px,0)";else if(D=r-n,"fade"===y){b/M<C-D&&w===I-1?w=0:b/M<C-D&&w<I-1?T():b/M<D-C&&j();var c=!0,r=!1,n=void 0;try{for(var s,u=v[Symbol.iterator]();!(c=(s=u.next()).done);c=!0){var d=s.value;d.style.transition="opacity "+f+"s "+g,d.style.opacity=0}}catch(e){r=!0,n=e}finally{try{!c&&u.return&&u.return()}finally{if(r)throw n}}v[w].style.opacity=1,N()}else b/M<C-D&&w<I-1&&T(),b/M<D-C&&j(),z.style.transform="translate3d("+b*w*-1+"px,0,0)"},Y=function(e){e.preventDefault(),20<e.deltaY&&!u&&(u=!0,T()),e.deltaY<-20&&!u&&(u=!0,j())},U=void 0,R=function e(){0<r&&(x=setTimeout(function(){T(),clearTimeout(x),U=requestAnimationFrame(e)},1e3*r))};return this.prev=j,this.next=T,this.direct=N,this.disable=function(){n&&z.removeEventListener("touchmove",O),o&&z.removeEventListener("mousewheel",Y),z.removeEventListener("touchstart",_),z.removeEventListener("touchend",P),clearTimeout(x),cancelAnimationFrame(U)},this.enable=function(){t()},t(),e&&(window.onresize=t),this}},{key:"AutoSize",value:function(t){var e=this.extend(e={PageSize:"device-width",InitScale:1,MinScale:1,MaxScale:1,Ratio:1},t),n=document.createElement("meta"),r=e.PageSize,i=e.InitScale,o=e.MinScale,t=e.MaxScale,a=e.Ratio;n.setAttribute("name","viewport"),"number"!=typeof r?n.setAttribute("content","width="+r+",initial-scale="+i+",minimum-scale="+o+",maximum-scale="+t+",user-scalable=no,viewport-fit=cover"):n.setAttribute("content","width="+r+",user-scalable=no,viewport-fit=cover");var l=!0,o=!1,t=void 0;try{for(var c,s=document.getElementsByTagName("meta")[Symbol.iterator]();!(l=(c=s.next()).done);l=!0){var u=c.value;"viewport"==u.name&&u.parentElement.removeChild(u)}}catch(e){o=!0,t=e}finally{try{!l&&s.return&&s.return()}finally{if(o)throw t}}new PandoraAPI("head").get.appendChild(n);n=function(){var t=navigator.userAgent.toLowerCase(),n=!1;["iphone","android"].forEach(function(e){return!n&&(0<t.indexOf(e)&&"device-width"!==r?(n=!0,new PandoraAPI("html").css({"font-size":window.screen.width/3.75*a+"px"})):(n=!1,new PandoraAPI("html").css({"font-size":new PandoraAPI("html").css("font-size")})),void new PandoraAPI("html").attr("isMobile",n))})};return n(),window.onresize=n,this}},{key:"Dialog",value:function(e){var l=this;this.usingTrack("Dialog");var t=this.extend(t={mask:!0,maskColor:"rgba(0,0,0,.85)",maskOut:!0,Speed:180,Curve:"ease-out",Direction:"zoom",In:null,Out:null,Confirm:{btn:null,callback:null},Cancel:{btn:null,callback:null}},e),c=document.createElement("div"),n=this.get.parentElement,s=t.mask,r=t.maskColor,u=t.maskOut,i=t.Speed,e=t.Curve,d=t.Direction,o=t.In,a=t.Out,h=t.Confirm,f=t.Cancel;c.className="Pd-Mask";var g=h.btn?new PandoraAPI(h.btn):null,y=f.btn?new PandoraAPI(f.btn):null;"none"!==d&&this.css({transition:"all "+i+"ms "+e});var p=function(){return new Promise(function(e){if("block"==l.css("display")||"flex"==l.css("display"))if(M("out"),"none"===d){try{s&&n.removeChild(c)}catch(e){}l.css({display:"none"}),e()}else l.bind("transitionend",function(){try{s&&n.removeChild(c)}catch(e){}l.css({display:"none"}),l.unbind("transitionend"),e()});else e();h.btn&&g.unbind("click"),f.btn&&y.unbind("click"),window.onresize=null})},M=function(e){switch(s&&"in"===e&&(n.insertBefore(c,l.get.nextElementSibling),new PandoraAPI(".Pd-Mask").css({width:"100vw",height:"100vh",background:r,position:"fixed",top:0,left:0,"z-index":998})),e){case"in":switch(l.css({display:"block"}),d){case"top":l.css({transform:"translate3d(0,-100%,0)"});break;case"bottom":l.css({transform:"translate3d(0,100%,0)"});break;default:l.css({transform:"translate3d(0,0,0) scale(0)"})}o&&o();break;case"out":switch(d){case"none":l.css({display:"none"});break;case"top":l.css({transform:"translate3d(0,-100%,0)"});break;case"bottom":l.css({transform:"translate3d(0,100%,0)"});break;default:l.css({transform:"translate3d(0,0,0) scale(0)"})}a&&a()}};return this.close=p,this.open=function(r){l.unbind("transitionend");var e=!0,t=!1,n=void 0;try{for(var i,o=window.pdDialogs[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var a=i.value;a!=l&&a.close()}}catch(e){t=!0,n=e}finally{try{!e&&o.return&&o.return()}finally{if(t)throw n}}return M("in"),new Promise(function(e){function t(){var e=parseInt(l.css("height"))/2,t=parseInt(l.css("width"))/2;switch(d){case"none":l.css({position:"fixed",top:"calc(50% - "+e+"px)",left:"calc(50% - "+t+"px)","z-index":999});break;case"top":l.css({position:"fixed",top:0,left:"calc(50% - "+t+"px)","z-index":999,transform:"translate3d(0,0,0) scale(1)"});break;case"bottom":l.css({position:"fixed",bottom:0,left:"calc(50% - "+t+"px)","z-index":999,transform:"translate3d(0,0,0) scale(1)"});break;default:l.css({position:"fixed",top:"calc(50% - "+e+"px)",left:"calc(50% - "+t+"px)","z-index":999,transform:"translate3d(0,0,0) scale(1)"})}}t(),window.onresize=function(){l.bind("transitionend",t)},s&&u&&(c.onclick=p);var n=l.close;h.btn&&g.bind("click",function(){h.callback({param:r||null,close:n})}),f.btn&&y.bind("click",function(){f.callback({param:r||null,close:n})}),e()})},window.pdDialogs.push(this),this}},{key:"ImgLoader",value:function(e){var b=this;this.usingTrack("ImgLoader");var t,n=(t=this.extend(t={lazy:!0,loading:null,callback:null,error:function(e){console.error("["+Alphabet[8]+" - ImgLoader] \u8d44\u6e90\u52a0\u8f7d\u9519\u8bef\uff01\n"+e),alert("\u8d44\u6e90\u52a0\u8f7d\u9519\u8bef\uff01")}},e)).lazy,r=t.loading,i=t.callback,o=t.error,A=[],a=0,l=0,c=0,s=0,I=function(e){return-1<e.indexOf("url")&&"none"!=e&&e.indexOf("data:")<0&&e.indexOf("blob:")<0};this.get?function(e){var t=new RegExp('".*?"',"g"),n=new RegExp(/'.*?'/,"g"),r=new RegExp(/\(.*?\)/,"g"),i=!0,o=!1,a=void 0;try{for(var l,c=e.querySelectorAll("*")[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var s=l.value;"img"==s.nodeName.toLowerCase()&&s.src&&A.push(s.src);var u,d,h,f,g=window.getComputedStyle(s).getPropertyValue("background-image");I(g)&&(u=g.match(t),d=g.match(n),h=g.match(r),u&&A.push(u[0].toString().replace(/"/g,"")),d&&A.push(d[0].toString().replace(/'/g,"")),h&&((f=(f=h[0].toString().replace(/\(/,"").replace(/\)/,"")).match(t)?f.match(t)[0].toString().replace(/"/g,""):f).match(n)&&(f=f.match(n)[0].toString().replace(/'/g,"")),A.push(f)))}}catch(e){o=!0,a=e}finally{try{!i&&c.return&&c.return()}finally{if(o)throw a}}}(this.get):function(){function d(e,t){var n=void 0;switch(e){case 1:n=t.split("background-image: url(")[1].split(")")[0];break;case 2:n=t.split("background: url(")[1].split(")")[0]}return-1<n.indexOf('"')?n.replace(/"/g,""):-1<n.indexOf("'")?n.replace(/'/g,""):n}var h=new RegExp("background-image: url(.*?)*","g"),f=new RegExp("background: url(.*?)*","g"),g=[];document.querySelectorAll("link").forEach(function(e){"stylesheet"==e.getAttribute("rel")&&b.ajax({url:e.getAttribute("href"),success:function(e){if(e.match(h)){var t=!0,n=!1,r=void 0;try{for(var i,o=e.match(h)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;I(a)&&g.push(d(1,a))}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}if(e.match(f)){var l=!0,n=!1,r=void 0;try{for(var c,s=e.match(f)[Symbol.iterator]();!(l=(c=s.next()).done);l=!0){var u=c.value;I(u)&&g.push(d(2,u))}}catch(e){n=!0,r=e}finally{try{!l&&s.return&&s.return()}finally{if(n)throw r}}}}})}),document.querySelectorAll("style").forEach(function(e){e=e.innerText;if(e.match(h)){var t=!0,n=!1,r=void 0;try{for(var i,o=e.match(h)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;I(a)&&g.push(d(1,a))}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}if(e.match(f)){var l=!0,n=!1,r=void 0;try{for(var c,s=e.match(f)[Symbol.iterator]();!(l=(c=s.next()).done);l=!0){var u=c.value;I(u)&&g.push(d(2,u))}}catch(e){n=!0,r=e}finally{try{!l&&s.return&&s.return()}finally{if(n)throw r}}}});var e=document.body.innerHTML;if(e.match(h)){var t=!0,n=!1,r=void 0;try{for(var i,o=e.match(h)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;I(a)&&g.push(d(1,a))}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}if(e.match(f)){var l=!0,c=!1,s=void 0;try{for(var u,y=e.match(f)[Symbol.iterator]();!(l=(u=y.next()).done);l=!0){var p=u.value;I(p)&&g.push(d(2,p))}}catch(e){c=!0,s=e}finally{try{!l&&y.return&&y.return()}finally{if(c)throw s}}}var M=!0,c=!1,s=void 0;try{for(var m,v=document.querySelectorAll("img")[Symbol.iterator]();!(M=(m=v.next()).done);M=!0){var z=m.value;z.src&&A.push(z.src)}}catch(e){c=!0,s=e}finally{try{!M&&v.return&&v.return()}finally{if(c)throw s}}A=g}();var a=A.length,u=void 0;return Promise.all(A.map(function(e){return r=e,new Promise(function(e,t){var n=new Image;n.src=r,n.onerror=t,n.complete?(l++,e()):n.onload=function(){l++,e()}});var r})).catch(function(e){cancelAnimationFrame(u),o(e)}),function e(){c=Math.floor(l/a*100),s<100&&(s<c&&(n?s++:s=c),r&&r(s),100===s?(cancelAnimationFrame(u),n?i&&i():setTimeout(i)):u=requestAnimationFrame(e))}(),this}},{key:"ImgUpload",value:function(e){var r=this,t=this.extend(t={apiUrl:null,Format:"*",type:"default",Max:1,Quality:100,Clip:{width:null,height:null},alwaysCover:!1,Events:{overMax:null,ready:null,progress:null,success:null,fail:function(){console.error("["+Alphabet[8]+" - ImgUpload] \u4e0a\u4f20\u5931\u8d25\uff01")}},Uid:null},e),i=this,n=this.html(),o=t.apiUrl,a=t.Format,e=t.type,l=t.Max,c=t.Quality,s=t.Clip,u=t.alwaysCover,d=t.Events,t=t.Uid;this.empty(),this.get.insertAdjacentHTML("afterbegin",'<label for="Pd_imgUpload_'+this.pid+'" style="width:100%;height:100%;display:block"></label>');var h=document.createElement("input"),f=void 0,g=0,y=0,p=0,M=0,m=0,f=t||document.domain+"_"+this.pid;h.type="file",h.accept="image/"+a,h.id="Pd_imgUpload_"+this.pid,h.setAttribute("capture",e),h.style.display="none",1<l&&(h.multiple=!0);e=this.get.querySelector("label");e.innerHTML=n,e.append(h);function v(n){var e=Array.prototype.slice.call(n);(m=M=p=y=g=0)===l||e.length<=l?(h.disabled=!0,0<(g=e.length)&&e.forEach(function(e,t){z(n[t])})):(d.overMax&&d.overMax(),console.info("["+Alphabet[7]+" - ImgUpload] \u8d85\u8fc7\u6700\u5927\u6570\u91cf:"+l+"\uff01"))}var z=function(e){var t=new FormData,n=e;u&&(n=new File([e],"cover."+e.name.split(".")[1],{type:e.type})),t.append("images",n),t.append("uid",f),t.append("width",s.width),t.append("height",s.height),t.append("quality",c),d.ready?d.ready():d.ready||window.showLoading(),r.ajax({url:""+o,async:!0,type:"post",dataType:"form",headers:null,data:t,progress:function(e){1<g?(100==e&&y++,p=Math.floor(y/g*100),d.progress(p)):(M=e,d.progress(M))},success:function(e){i.usingTrack("ImgUpload"),e?(m=1<g?p:M,h.setAttribute("data-progress",m),100===m&&(e={src:e.images},h.disabled=!1,h.value="",d.ready||window.hideLoading(),d.success&&d.success(e))):(alert("\u53d1\u751f\u9519\u8bef\uff01"),console.error("["+Alphabet[8]+" - ImgUpload] \u670d\u52a1\u7aef\u9519\u8bef\uff01"))},error:function(){h.disabled=!1,h.value="",d.ready||window.hideLoading(),d.fail&&d.fail()}})};return h.addEventListener("change",function(e){e.preventDefault(),v(e.target.files)}),this.bind("dragover",function(e){e.preventDefault()}),this.bind("drop",function(e){e.preventDefault(),v(e.dataTransfer.files)}),this}},{key:"ImgTransit",value:function(t){var n=this;this.usingTrack("ImgTransit");var M={icon:!0,iconSize:30,border:!0,Gesture:!1,padding:10,scale:{enable:!0,min:80,max:150,rate:1},rotate:{enable:!0,rate:1},delete:!0,bounds:!0,outBounds:0,callback:null},M=this.extend(M,t),r=this.get,i="transition:opacity .2s ease-in",e=r.querySelectorAll("img");this.hide(),document.querySelector(".PD-TransitBox")||(r.insertAdjacentHTML("afterend","<div class='PD-TransitBox'></div>"),new Pandora(".PD-TransitBox").css({"touch-action":"none",position:"relative"}));var d=document.querySelector(".PD-TransitBox"),o=!0,t=!1,r=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done);o=!0){var c=a.value;d.appendChild(c),c.parentNode.removeChild(c)}}catch(e){t=!0,r=e}finally{try{!o&&l.return&&l.return()}finally{if(t)throw r}}function s(){var e=d.querySelectorAll(".Pd-ImgTransit"),t=d.querySelectorAll(".Pd-ImgTransit-btn"),n=!0,r=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var l=o.value;l.style.border="none",l.style.zIndex=1}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}var c=!0,r=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(c=(s=u.next()).done);c=!0)s.value.style.opacity=0}catch(e){r=!0,i=e}finally{try{!c&&u.return&&u.return()}finally{if(r)throw i}}}var t=function(e){var t;return'<a class="Pd-ImgTransit-btn Pd-'+(t=n.extend(t={top:null,left:null,right:null,bottom:null,name:null},e)).name+'" style="width:'+M.iconSize+"px;height:"+M.iconSize+"px;background:#fff url('"+icoConfig[t.name]+"');background-position:center;background-repeat:no-repeat;background-size:65%;position:absolute;border-radius:50%;top:"+t.top+"px;left:"+t.left+"px;right:"+t.right+"px;bottom:"+t.bottom+"px;z-index:2;"+i+'" href="javascript:void 0"></a>'},u=t({left:"-"+M.iconSize/2,bottom:"-"+M.iconSize/2,name:"resize"}),h=t({right:"-"+M.iconSize/2,top:"-"+M.iconSize/2,name:"rotate"}),f=t({left:"-"+M.iconSize/2,top:"-"+M.iconSize/2,name:"delete"}),m=function(e,t){var n=!0,r=!1,i=void 0;try{for(var o,a=e.querySelectorAll(".Pd-ImgTransit-btn")[Symbol.iterator]();!(n=(o=a.next()).done);n=!0)o.value.style.transform="scale("+1/(t.scale/100)+") rotate("+-1*t.rotate+"deg)"}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return e.style.transform="translate3d("+t.translate+") scale("+t.scale/100+") rotate("+t.rotate+"deg)"},v=function(e){return{x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2}},g=function(e,t){var n=t.pageX-e.pageX,e=t.pageY-e.pageY;return Math.sqrt(n*n+e*e)},y=function(e,t){var n=e.pageX-t.pageX,t=e.pageY-t.pageY;return 180*Math.atan2(t,n)/Math.PI},z=function(r){var i={},o=!1,a=[];return r.addEventListener("touchstart",function(e){2<=e.touches.length&&(o=!0,a=e.touches,i.gesturestart&&i.gesturestart.call(r))},!1),document.addEventListener("touchmove",function(e){var t,n;e.preventDefault(),2<=e.touches.length&&o&&(n=e.touches,t=g(n[0],n[1])/g(a[0],a[1]),n=y(n[0],n[1])-y(a[0],a[1]),e.scale=t.toFixed(2),e.rotation=n.toFixed(2),i.gesturemove&&i.gesturemove.call(r,e))},!1),document.addEventListener("touchend",function(){o&&(o=!1,i.gestureend&&i.gestureend.call(r))},!1),i},p=!0,r=!1,t=void 0;try{for(var b,A=e[Symbol.iterator]();!(p=(b=A.next()).done);p=!0){var I=b.value,w="";M.icon&&(M.scale.enable&&(w+=u),M.rotate.enable&&(w+=h),M.delete&&(w+=f));var x=document.createElement("div");x.className="Pd-ImgTransit pd_child_"+I.alt,x.style.position="absolute",I.style.transition="transform .4s ease-in",x.innerHTML=w,x.appendChild(I),d.appendChild(x),function(e){var t,n,r,i,o,a,l=void 0,c=void 0,s=0,u=0,d=0,h=0,f=100,g=e,y={translate:"0,0,0",scale:100,rotate:0},p=g.offsetWidth,e=g.offsetHeight;g.style.width=p+"px",g.style.height=e+"px",m(g,y),g.style.position="absolute",g.style.top=g.style.left="50%",g.style.margin="-"+(e/2+M.padding)+"px 0 0 -"+(p/2+M.padding)+"px",g.style.padding=M.padding+"px",t=function(e){e.preventDefault(),e.target.className.indexOf("pd_child")<0&&(d=e.changedTouches[0].pageX-s,h=e.changedTouches[0].pageY-u,e.target.style.transform="scale(1.04)",M.callback&&M.callback({type:"choose",obj:e.target.parentElement}))},n=function(e){e.target.className.indexOf("pd_child")<0&&(e.target.style.transform="scale(1)")},r=function(e){var t,n,r,i,o,a;e.touches.length<2&&e.target.className.indexOf("pd_child")<0&&(t=e.changedTouches[0].pageX,n=e.changedTouches[0].pageY,r=e.target.getBoundingClientRect().width,i=e.target.getBoundingClientRect().height,o=e.target.parentElement.querySelectorAll(".Pd-ImgTransit-btn")[0].getBoundingClientRect().width/2,a=e.target.parentElement.parentElement.getBoundingClientRect(),e=M.bounds?a.width+M.outBounds:a.width,a=M.bounds?a.height+M.outBounds:a.height,s=t-d,u=n-h,M.bounds&&(Math.abs(s)>=e/2-r/2-o&&(s=s<0?-1*(e/2-r/2-o):e/2-r/2-o),Math.abs(u)>=a/2-i/2-o&&(u=u<0?-1*(a/2-i/2-o):a/2-i/2-o)),y.translate=s+"px,"+u+"px,0",m(g,y),M.callback&&M.callback({type:"move",obj:g}))},i=function(e){e.stopImmediatePropagation(),e.preventDefault();var t=e.changedTouches[0].pageX-g.getBoundingClientRect().left;0<t&&y.scale>M.scale.min&&(y.scale-=M.scale.rate),t<0&&y.scale<M.scale.max&&(y.scale+=M.scale.rate),2<=e.touches.length&&(M.scale.enable&&(f=100*e.scale,y.scale=f),M.rotate.enable&&(y.rotate=e.rotation)),m(g,y),M.callback&&M.callback({type:"resize",obj:g})},o=function(e){e.stopImmediatePropagation(),e.preventDefault();e=Math.atan2(e.changedTouches[0].pageY-l.y,e.changedTouches[0].pageX-l.x);y.rotate=Math.floor(180*(e-c)/Math.PI)*M.rotate.rate,m(g,y),M.callback&&M.callback({type:"rotate",obj:g})},a=function(e){e.stopImmediatePropagation(),e.preventDefault(),y.translate="0,0,0",y.rotate=0,y.scale=100,m(g,y),g.style.display="none",M.callback&&M.callback({type:"delete",obj:g})},g.addEventListener("touchstart",t),g.addEventListener("touchend",n),g.addEventListener("touchmove",r),M.scale.enable&&M.rotate.enable&&M.Gesture&&(z(g).gesturemove=function(e){i(e),o(e)}),M.icon&&M.scale.enable&&g.querySelectorAll(".Pd-resize")[0].addEventListener("touchmove",i),M.icon&&M.rotate.enable&&(g.querySelectorAll(".Pd-rotate")[0].addEventListener("touchstart",function(e){l=v(g),c=Math.atan2(e.changedTouches[0].pageY-l.y,e.changedTouches[0].pageX-l.x)-y.rotate*Math.PI/180}),g.querySelectorAll(".Pd-rotate")[0].addEventListener("touchmove",o)),M.icon&&M.delete&&g.querySelectorAll(".Pd-delete")[0].addEventListener("touchstart",a)}(x)}}catch(e){r=!0,t=e}finally{try{!p&&A.return&&A.return()}finally{if(r)throw t}}return s(),d.addEventListener("touchstart",function(e){s(),e.target!==d&&e.target.className.indexOf("pd_child")<0&&(M.icon?function(e){var t=e.querySelectorAll(".Pd-ImgTransit-btn"),n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0)o.value.style.opacity=1,M.border&&(e.style.border="2px dashed white"),e.style.zIndex=2}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}(e.target.parentElement):s(),e.target.zIndex=1)}),this}},{key:"wxSDK",value:function(e){var t=this;this.usingTrack("wxSDK");var n={apiUrl:null,sdk:"https://res.wx.qq.com/open/js/jweixin-1.6.0.js",title:["Share to Timeline","Share to Friends"],desc:"Simple this",shareIcon:"https://"+Alphabet[3]+"/share_ico.jpg",shareLinks:window.location.href,debug:!1,jsApiList:null,openTagList:null,callback:{ready:null,success:null,error:null}},n=this.extend(n,e),r=document.createElement("script"),i=n.apiUrl,o=n.sdk,a=n.title,l=n.desc,c=n.shareLinks,s=n.debug,u=n.jsApiList,e=n.openTagList,h=n.callback,d=n.shareIcon;r.id="Pd_share",r.src=o+"?"+(new Date).getTime(),new PandoraAPI("#Pd_share").get&&new PandoraAPI("#Pd_share").remove(),document.body.appendChild(r);var f=!1,n=function(e){return"object"===(void 0===e?"undefined":_typeof(e))};document.querySelectorAll("link").forEach(function(e){"shortcut icon"==e.getAttribute("rel")&&(f=!0,d=e.href)}),f&&((o=document.createElement("link")).rel="shortcut icon",o.href=n(d)?d[0]:d,o.type="image/x-icon",document.querySelector("head").appendChild(o));var g=["onMenuShareTimeline","onMenuShareAppMessage","updateTimelineShareData","updateAppMessageShareData"],y=["wx-open-launch-app"];u&&u.map(function(e){g.push(e)}),e&&e.map(function(e){y.push(e)});function p(e){var t=e.appId,n=e.timestamp,r=e.nonceStr,e=e.signature;wx.config({debug:s,appId:t,timestamp:n,nonceStr:r,signature:e,jsApiList:g,openTagList:y}),wx.ready(function(){new Promise(function(e){var t,n,r,i,o,a,l,c,s,u,d;wx.onMenuShareTimeline?(t=M.title,n=M.link,r=M.imgUrl,i=h.success,o=h.error,wx.onMenuShareTimeline({title:t,link:n,imgUrl:r,success:i,error:o})):(t=M.title,n=M.link,r=M.imgUrl,i=h.success,o=h.error,wx.updateTimelineShareData({title:t,link:n,imgUrl:r,success:i,error:o})),wx.onMenuShareAppMessage?(a=m.title,c=m.link,s=m.imgUrl,l=m.desc,u=h.success,d=h.error,wx.onMenuShareAppMessage({title:a,desc:l,link:c,imgUrl:s,success:u,error:d})):(a=m.title,l=m.link,c=m.imgUrl,s=m.desc,u=h.success,d=h.error,wx.updateAppMessageShareData({title:a,desc:s,link:l,imgUrl:c,success:u,error:d})),e()}).then(h.ready)})}var M={title:n(a)?a[0]:a,link:n(c)?c[0]:c,imgUrl:n(d)?d[0]:d},m={title:n(a)?a[1]:a,link:n(c)?c[1]:c,imgUrl:n(d)?d[1]:d,desc:l};return r.onload=function(){t.ajax({url:""+i+encodeURIComponent(window.location.href.split("#")[0]),success:p})},this}},{key:"LazyLoad",value:function(t){this.usingTrack("LazyLoad");var n={width:100,height:100,icon:icoConfig.load},n=this.extend(n,t),e=this.child("img").get,r=n.width,i=n.height,o=n.icon,a=0,l=[],c=!0,t=!1,n=void 0;try{for(var s,u=e[Symbol.iterator]();!(c=(s=u.next()).done);c=!0){var d=s.value;d.dataset.src&&(d.width=r,d.height=i,d.style.background='url("'+o+'") no-repeat center,black',d.style.backgroundSize="20%",l.push(d))}}catch(e){t=!0,n=e}finally{try{!c&&u.return&&u.return()}finally{if(t)throw n}}var h=function(e){return e.getBoundingClientRect().y-window.innerHeight<0&&e},n=function r(){l.forEach(function(n){h(n)&&!n.src&&n.complete&&(n.src=h(n).dataset.src,n.style.transition="all .8s ease",n.onload=function(){var e=Number(n.dataset.width)||n.naturalWidth,t=Number(n.dataset.height)||n.naturalHeight;n.dataset.width&&(t=e/n.naturalWidth*n.naturalHeight),n.dataset.height&&(e=t/n.naturalHeight*n.naturalWidth),n.width=e,n.height=t,n.removeAttribute("data-src"),n.style.background=null,n.dataset.width&&n.removeAttribute("data-width"),n.dataset.height&&n.removeAttribute("data-height"),++a==l.length&&window.removeEventListener("scroll",r),n.addEventListener("transitionend",function(){n.style.transition=null})},n.onerror=function(){console.error("["+Alphabet[8]+" - LazyLoad] \u53d1\u751f\u9519\u8bef\uff1a"+n.src+"\uff01"),a++})})};return window.addEventListener("scroll",n),n(),this}},{key:"OSSupload",value:function(e){this.usingTrack("OSSupload");var t=this.extend(t={AccessId:null,AccessKey:null,Endpoint:null,invalidTime:3,maxSize:2},e),u=this,d=t.AccessId,n=t.AccessKey,h=t.Endpoint,r=t.invalidTime,f=t.maxSize;try{Crypto}catch(e){return console.error("["+Alphabet[8]+"] \u7f3a\u5c11Crypto\u5de5\u5177\u65b9\u6cd5")}if(!Crypto.HMAC)return console.error("["+Alphabet[8]+"] \u7f3a\u5c11Crypto\u5de5\u5177\u7684HMAC\u65b9\u6cd5");if(!Crypto.SHA1)return console.error("["+Alphabet[8]+"] \u7f3a\u5c11Crypto\u5de5\u5177\u7684SHA1\u65b9\u6cd5");if(!d)return console.error("["+Alphabet[8]+"] \u7f3a\u5931\u963f\u91cc\u4e91\u8d26\u53f7AccessId");if(!n)return console.error("["+Alphabet[8]+"] \u7f3a\u5931\u963f\u91cc\u4e91\u8d26\u53f7AccessKey");if(!h)return console.error("["+Alphabet[8]+"] \u7f3a\u5931OSS Bucket \u5916\u7f51\u57df\u540d");function i(e){return e.toString().padStart(2,0)}var o,a,g={expiration:(o=(new Date).getFullYear(),a=(new Date).getMonth()+1,e=(new Date).getDate(),24<=(t=(new Date).getHours())+r?o+"-"+i(a)+"-"+i(e)+"T"+i(t+r-24)+":00:00.000Z":o+"-"+i(a)+"-"+i(e)+"T"+i(t)+":00:00.000Z"),conditions:[["content-length-range",0,1024*f*1024]]},y=function(e){return e.substring(e.lastIndexOf("."))};return this.start=function(i){var o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",l=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,c=OSSBase64.encode(JSON.stringify(g)),e=Crypto.HMAC(Crypto.SHA1,c,n,{asBytes:!0}),s=Crypto.util.bytesToBase64(e),o=o||u.guid();return new Promise(function(e,t){if(!i)return t("noFile"),console.warn("["+Alphabet[9]+"] \u8bf7\u9009\u62e9\u9700\u8981\u4e0a\u4f20\u7684\u6587\u4ef6");if(i.size>1024*f*1024)return t("overSize"),console.error("["+Alphabet[8]+"] \u6587\u4ef6\u5927\u5c0f\u8d85\u51fa\u6700\u5927\u9650\u5236");var n=new FormData;n.append("name",""+o+y(i.name));var r=new File([i],""+o+y(i.name),{type:i.type});i=r,n.append("key",a?a+"/${filename}":"${filename}"),n.append("policy",c),n.append("OSSAccessKeyId",d),n.append("success_action_status","200"),n.append("signature",s),n.append("file",i),u.ajax({url:h,type:"post",headers:null,async:!0,dataType:"form",data:n,success:function(){e({code:200,msg:"\u4e0a\u4f20\u6210\u529f",url:""!=a?h+"/"+a+"/"+i.name:h+"/"+i.name})},progress:l,error:function(e){t(e)}})})},this}}]),t;function t(e){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}},Pandora=(_inherits(S9,PandoraJs(PandoraAPI)),S9);function S9(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;return _classCallCheck(this,S9),_possibleConstructorReturn(this,(S9.__proto__||Object.getPrototypeOf(S9)).call(this,e))}window.Pandora=Pandora;try{jQuery,console.warn("["+Alphabet[9]+"] \u68c0\u6d4b\u5230JQuery,\u8bf7\u6539\u7528 new Pandora()")}catch(err){window.$=function(e){return new Pandora(e)}}},function(e,t,n){var s={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t,n,r,i,o,a,l="",c=0;for(e=s._utf8_encode(e);c<e.length;)r=(a=e.charCodeAt(c++))>>2,i=(3&a)<<4|(t=e.charCodeAt(c++))>>4,o=(15&t)<<2|(n=e.charCodeAt(c++))>>6,a=63&n,isNaN(t)?o=a=64:isNaN(n)&&(a=64),l=l+this._keyStr.charAt(r)+this._keyStr.charAt(i)+this._keyStr.charAt(o)+this._keyStr.charAt(a);return l},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):(127<r&&r<2048?t+=String.fromCharCode(r>>6|192):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128)),t+=String.fromCharCode(63&r|128))}return t}};e.exports=s},function(e){e.exports=JSON.parse('{"load":"data:image/svg+xml;base64,PCEtLSBCeSBTYW0gSGVyYmVydCAoQHNoZXJiKSwgZm9yIGV2ZXJ5b25lLiBNb3JlIEAgaHR0cDovL2dvby5nbC83QUp6YkwgLS0+Cjxzdmcgd2lkdGg9IjM4IiBoZWlnaHQ9IjM4IiB2aWV3Qm94PSIwIDAgMzggMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2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