代码拉取完成,页面将自动刷新
同步操作将从 宁争胜/合成大西瓜CocosCretor开发源码 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
!function i(a,c,u){function s(t,e){if(!c[t]){if(!a[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(l)return l(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var o=c[t]={exports:{}};a[t][0].call(o.exports,function(e){return s(a[t][1][e]||e)},o,o.exports,i,a,c,u)}return c[t].exports}for(var l="function"==typeof require&&require,e=0;e<u.length;e++)s(u[e]);return s}({1:[function(e,t,n){},{}],2:[function(e,t,n){"use strict";var r=cc.Audio;r&&Object.assign(r.prototype,{_createElement:function(){var e=this._src._nativeAsset;this._element||(this._element=__globalAdapter.createInnerAudioContext()),this._element.src=e.src},destroy:function(){this._element&&(this._element.destroy(),this._element=null)},setCurrentTime:function(e){this._element?(this._nextTime=0,this._element.seek(e)):this._nextTime=e},stop:function(){this._element&&(this._element.seek(0),this._element.stop(),this._unbindEnded(),this.emit("stop"),this._state=r.State.STOPPED)},_bindEnded:function(e){e=e||this._onended;var t=this._element;t&&t.onEnded&&t.onEnded(e)},_unbindEnded:function(){var e=this._element;e&&e.offEnded&&e.offEnded()},_touchToPlay:function(){},_forceUpdatingState:function(){}})},{}],3:[function(e,t,n){"use strict";cc&&cc.audioEngine&&(cc.audioEngine._maxAudioInstance=10)},{}],4:[function(e,t,n){"use strict";var r=cc.internal.inputManager,o=window.__globalAdapter;Object.assign(r,{setAccelerometerEnabled:function(e){var t=cc.director.getScheduler();t.enableForTarget(this),e?(this._registerAccelerometerEvent(),t.scheduleUpdate(this)):(this._unregisterAccelerometerEvent(),t.unscheduleUpdate(this))},_registerAccelerometerEvent:function(){this._accelCurTime=0;var t=this;this._acceleration=new cc.Acceleration,o.startAccelerometer(function(e){t._acceleration.x=e.x,t._acceleration.y=e.y,t._acceleration.z=e.y})},_unregisterAccelerometerEvent:function(){this._accelCurTime=0,o.stopAccelerometer()}})},{}],5:[function(e,t,n){"use strict";!function(){if(cc&&cc.EditBox){var r=cc.EditBox,e=cc.js,o=r.KeyboardReturnType,t=null,n=r._ImplClass;e.extend(i,n),r._ImplClass=i,Object.assign(i.prototype,{init:function(e){e?this._delegate=e:cc.error("EditBox init failed")},beginEditing:function(){if(t!==this){var e=this._delegate;if(t)t._eventListeners.onKeyboardComplete(),__globalAdapter.updateKeyboard&&__globalAdapter.updateKeyboard({value:e._string});else this._showKeyboard();this._registerKeyboardEvent(),this._editing=!0,t=this,e.editBoxEditingDidBegan()}},endEditing:function(){this._hideKeyboard();var e=this._eventListeners;e.onKeyboardComplete&&e.onKeyboardComplete()},_registerKeyboardEvent:function(){var n=this,r=this._delegate,e=this._eventListeners;e.onKeyboardInput=function(e){r._string!==e.value&&r.editBoxTextChanged(e.value)},e.onKeyboardConfirm=function(e){r.editBoxEditingReturn();var t=n._eventListeners;t.onKeyboardComplete&&t.onKeyboardComplete()},e.onKeyboardComplete=function(){n._editing=!1,t=null,n._unregisterKeyboardEvent(),r.editBoxEditingDidEnded()},__globalAdapter.onKeyboardInput(e.onKeyboardInput),__globalAdapter.onKeyboardConfirm(e.onKeyboardConfirm),__globalAdapter.onKeyboardComplete(e.onKeyboardComplete)},_unregisterKeyboardEvent:function(){var e=this._eventListeners;e.onKeyboardInput&&(__globalAdapter.offKeyboardInput(e.onKeyboardInput),e.onKeyboardInput=null),e.onKeyboardConfirm&&(__globalAdapter.offKeyboardConfirm(e.onKeyboardConfirm),e.onKeyboardConfirm=null),e.onKeyboardComplete&&(__globalAdapter.offKeyboardComplete(e.onKeyboardComplete),e.onKeyboardComplete=null)},_showKeyboard:function(){var e=this._delegate,t=e.inputMode===r.InputMode.ANY,n=e.maxLength<0?65535:e.maxLength;__globalAdapter.showKeyboard({defaultValue:e._string,maxLength:n,multiple:t,confirmHold:!1,confirmType:function(e){switch(e){case o.DEFAULT:case o.DONE:return"done";case o.SEND:return"send";case o.SEARCH:return"search";case o.GO:return"go";case o.NEXT:return"next"}return"done"}(e.returnType),success:function(){},fail:function(e){cc.warn(e.errMsg)}})},_hideKeyboard:function(){__globalAdapter.hideKeyboard({success:function(){},fail:function(e){cc.warn(e.errMsg)}})}})}function i(){n.call(this),this._eventListeners={onKeyboardInput:null,onKeyboardConfirm:null,onKeyboardComplete:null}}}()},{}],6:[function(e,t,n){"use strict";var r=cc.internal.inputManager,o=cc.renderer,i=cc.game,a=cc.dynamicAtlasManager;Object.assign(i,{setFrameRate:function(e){this.config.frameRate=e,__globalAdapter.setPreferredFramesPerSecond?__globalAdapter.setPreferredFramesPerSecond(e):(this._intervalId&&window.cancelAnimFrame(this._intervalId),this._intervalId=0,this._paused=!0,this._setAnimFrame(),this._runMainLoop())},_runMainLoop:function(){var e,t=this,n=t.config,r=cc.director,o=!0,i=n.frameRate;cc.debug.setDisplayStats(n.showFPS),e=function(){if(!t._paused){if(t._intervalId=window.requestAnimFrame(e),30===i&&!__globalAdapter.setPreferredFramesPerSecond&&(o=!o))return;r.mainLoop()}},t._intervalId=window.requestAnimFrame(e),t._paused=!1},_initRenderer:function(){if(!this._rendererInitialized){var e;if(this.frame=this.container=document.createElement("DIV"),e=__globalAdapter.isSubContext?window.sharedCanvas||__globalAdapter.getSharedCanvas():canvas,this.canvas=e,this._determineRenderType(),this.renderType===this.RENDER_TYPE_WEBGL){var t={stencil:!0,antialias:cc.macro.ENABLE_WEBGL_ANTIALIAS,alpha:cc.macro.ENABLE_TRANSPARENT_CANVAS,preserveDrawingBuffer:!1};o.initWebGL(e,t),this._renderContext=o.device._gl,!cc.macro.CLEANUP_IMAGE_CACHE&&a&&(a.enabled=!0)}this._renderContext||(this.renderType=this.RENDER_TYPE_CANVAS,o.initCanvas(e),this._renderContext=o.device._ctx),this._rendererInitialized=!0}},_initEvents:function(){this.config.registerSystemEvent&&r.registerSystemEvent(this.canvas);var t=!1;__globalAdapter.onShow&&__globalAdapter.onShow(function(e){t&&(t=!1,i.emit(i.EVENT_SHOW,e))}),__globalAdapter.onHide&&__globalAdapter.onHide(function(){t||(t=!0,i.emit(i.EVENT_HIDE))}),this.on(i.EVENT_HIDE,function(){i.pause()}),this.on(i.EVENT_SHOW,function(){i.resume()})},end:function(){}}),__globalAdapter.onError&&__globalAdapter.onError(function e(t){__globalAdapter.offError&&__globalAdapter.offError(e);var n=Math.random()<.001;if(!__globalAdapter.isSubContext&&n){var r=__globalAdapter.getSystemInfoSync();if(r){var o=cc.Canvas.instance.node;if(o){var i=new cc.Node;i.color=cc.Color.BLACK,i.parent=o;var a=i.addComponent(cc.Label);i.height=o.height-60,i.width=o.width-60,a.overflow=cc.Label.Overflow.SHRINK,a.horizontalAlign=cc.Label.HorizontalAlign.LEFT,a.verticalAlign=cc.Label.VerticalAlign.TOP,a.fontSize=24,cc.LabelOutline&&(i.addComponent(cc.LabelOutline).color=cc.Color.WHITE),a.string="请截屏发送以下信息反馈给游戏开发者(Please send this screen shot to the game developer)\n",a.string+="Device: "+r.brand+" "+r.model+"\nSystem: "+r.system+"\nPlatform: WeChat "+r.version+"\nEngine: Cocos Creator v"+window.CocosEngine+"\nError:\n"+t.message,cc.director.pause(),i.once("touchend",function(){i.destroy(),setTimeout(function(){cc.director.resume()},1e3)})}}}})},{}],7:[function(e,t,n){"use strict";var r=cc.internal.inputManager,o={left:0,top:0,width:window.innerWidth,height:window.innerHeight};r&&Object.assign(r,{_updateCanvasBoundingRect:function(){},registerSystemEvent:function(){if(!this._isRegisterEvent){this._glView=cc.view;var n=this,r={onTouchStart:this.handleTouchesBegin,onTouchMove:this.handleTouchesMove,onTouchEnd:this.handleTouchesEnd,onTouchCancel:this.handleTouchesCancel},e=function(e){var t=r[e];__globalAdapter[e](function(e){e.changedTouches&&t.call(n,n.getTouchesByEvent(e,o))})};for(var t in r)e(t);this._isRegisterEvent=!0}}})},{}],8:[function(e,t,n){"use strict";function r(e){var t=e.url;return __globalAdapter.loadFont(t)||"Arial"}function o(e){if(e._owner instanceof cc.Asset)return null;var t=e.content,n=e.rawUrl,r=e.texture||new cc.Texture2D;return r._uuid=e.uuid,r.url=n,r._setRawAsset(n,!1),r._nativeAsset=t,r}function c(e,t,n){void 0===n&&(n=!0);var r=e.url,o=new Image;function i(){o.removeEventListener("load",i),o.removeEventListener("error",a),o.id=e.id,t(null,o)}function a(){o.removeEventListener("load",i),o.removeEventListener("error",a),"https:"!==window.location.protocol&&o.crossOrigin&&"anonymous"===o.crossOrigin.toLowerCase()?c(e,t,!1):t(new Error(cc.debug.getError(4930,r)))}n&&"file:"!==window.location.protocol?o.crossOrigin="anonymous":o.crossOrigin=null,o.addEventListener("load",i),o.addEventListener("error",a),o.src=r}function i(e,t){if(0===cc.sys.__audioSupport.format.length)return new Error(cc.debug.getError(4927));var n=document.createElement("audio");n.addEventListener("load",function(){t(null,n)}),n.addEventListener("error",function(){t(new Error("load audio failed "+e.url),null)}),n.src=e.url}function a(e,t){t(null,e.url)}function u(e,t){t(null,e.url)}cc.loader.downloader.loadSubpackage=function(e,t,n){!n&&t&&(n=t,t=null);var r=__globalAdapter.loadSubpackage({name:e,success:function(){n&&n()},fail:function(){n&&n(new Error("Failed to load subpackage ".concat(e)))}});t&&r.onProgressUpdate(t)},cc.loader.downloader.addHandlers({js:function(e,t,n){__cocos_require__(e.url),t(null,e.url)},png:c,jpg:c,bmp:c,jpeg:c,gif:c,ico:c,tiff:c,webp:c,image:c,mp3:i,ogg:i,wav:i,m4a:i,mp4:a,avi:a,mov:a,mpg:a,mpeg:a,rm:a,rmvb:a}),cc.loader.loader.addHandlers({mp4:u,avi:u,mov:u,mpg:u,mpeg:u,rm:u,rmvb:u,png:o,jpg:o,bmp:o,jpeg:o,gif:o,ico:o,tiff:o,webp:o,image:o,font:r,eot:r,ttf:r,woff:r,svg:r,ttc:r})},{}],9:[function(e,t,n){"use strict";Object.assign(cc.screen,{autoFullScreen:function(){}})},{}],10:[function(e,t,n){"use strict";var r=cc.Texture2D;r&&Object.assign(r.prototype,{initWithElement:function(e){e&&(this._image=e,this.handleLoadedTexture())}})},{}],11:[function(e,t,n){"use strict";t.exports=function(e,t){t=t||__globalAdapter.getSystemInfoSync(),e.isNative=!1,e.isBrowser=!1,e.isMobile=!0,e.language=t.language.substr(0,2),e.languageCode=t.language.toLowerCase();var n=t.system.toLowerCase(),r=t.platform;"android"===(r=r.toLowerCase())?e.os=e.OS_ANDROID:"ios"===r&&(e.os=e.OS_IOS),"android p"===n&&(n="android p 9.0");var o=/[\d\.]+/.exec(n);e.osVersion=o?o[0]:n,e.osMainVersion=parseInt(e.osVersion),e.browserVersion=t.version;var i=t.windowWidth,a=t.windowHeight,c=t.pixelRatio||1;e.windowPixelResolution={width:c*i,height:c*a},e.localStorage=window.localStorage;var u=!1,s=!1;try{var l=document.createElement("canvas");u=l.getContext("webgl"),s=l.toDataURL("image/webp").startsWith("data:image/webp")}catch(e){}e.capabilities={canvas:!0,opengl:!!u,webp:s},e.__audioSupport={ONLY_ONE:!1,WEB_AUDIO:!1,DELAY_CREATE_CTX:!1,format:[".mp3"]}}},{}],12:[function(e,t,n){"use strict";t.exports=function(e){e._setupContainer=function(e,t,n){var r=cc.game.canvas,o=e._devicePixelRatio=1;e.isRetinaEnabled()&&(o=e._devicePixelRatio=Math.min(e._maxPixelRatio,window.devicePixelRatio||1)),t*=o,n*=o,r.width===t&&r.height===n||(r.width=t,r.height=n)}}},{}],13:[function(e,t,n){"use strict";t.exports=function(e){Object.assign(e,{_adjustViewportMeta:function(){},setRealPixelResolution:function(e,t,n){this.setDesignResolutionSize(e,t,n)},enableAutoFullScreen:function(){cc.warn("cc.view.enableAutoFullScreen() is not supported on minigame platform.")},isAutoFullScreenEnabled:function(){return!1},setCanvasSize:function(){cc.warn("cc.view.setCanvasSize() is not supported on minigame platform.")},setFrameSize:function(){cc.warn("frame size is readonly on minigame platform.")},_initFrameSize:function(){var e=this._frameSize;if(__globalAdapter.isSubContext){var t=window.sharedCanvas||__globalAdapter.getSharedCanvas();e.width=t.width,e.height=t.height}else e.width=window.innerWidth,e.height=window.innerHeight}})}},{}],14:[function(e,t,n){"use strict";var r=window.__globalAdapter;Object.assign(r,{adaptSys:e("./BaseSystemInfo"),adaptView:e("./View"),adaptContainerStrategy:e("./ContainerStrategy")})},{"./BaseSystemInfo":11,"./ContainerStrategy":12,"./View":13}],15:[function(e,t,n){"use strict";e("./Audio"),e("./AudioEngine"),e("./DeviceMotionEvent"),e("./Editbox"),e("./Game"),e("./InputManager"),e("./Loader"),e("./Screen"),e("./Texture2D")},{"./Audio":2,"./AudioEngine":3,"./DeviceMotionEvent":4,"./Editbox":5,"./Game":6,"./InputManager":7,"./Loader":8,"./Screen":9,"./Texture2D":10}],16:[function(e,t,n){"use strict";var r="RemoteDownloader",s=window.fsUtils,i=/^\w+:\/\/.*/,o=__globalAdapter.isSubContext,a=null,l=null,c=null,f=null,u=!1,d=/the maximum size of the file storage/,p={};function h(){this.id=r,this.async=!0,this.pipeline=null,this.REMOTE_SERVER_ROOT="",this.SUBCONTEXT_ROOT=""}function m(e,t){!e.type||T(e.type)>=O.LOADABLE_MIN?function(n,r){var o=n.url,e=s.readText;T(n.type)===O.BIN&&(e=s.readArrayBuffer);var t=e(o,function(e,t){e?r(e):t?(n.states[cc.loader.downloader.id]=cc.Pipeline.ItemState.COMPLETE,r(null,t)):r(new Error("Empty file: "+o))});t&&r(t)}(e,t):t(null,null)}h.ID=r,h.prototype.init=function(){if(!o){this.cacheDir=s.getUserDataPath()+"/gamecaches",this.cachedFileName="cacheList.json",this.cacheAsset=!0,this.cachePeriod=500,this.outOfStorage=!1,this.writeFilePeriod=2e3,f={},a={};var e=this.cacheDir+"/"+this.cachedFileName;(l=s.readJsonSync(e))instanceof Error&&(l={},s.makeDirSync(this.cacheDir,!0),s.writeFileSync(e,JSON.stringify(l),"utf8"))}},h.prototype.handle=function(e,t){if("js"===e.type)return null;if("uuid"===e.type){var n=cc.Pipeline.Downloader.PackDownloader.load(e,t);if(void 0!==n)return n||void 0}if(o)return i.test(e.url)?null:(e.url=this.SUBCONTEXT_ROOT+"/"+e.url,s.checkFsValid()?null:void m(e,t));!function(t,n){var e=s.checkFsValid();if(e)return n(e);var r=v.getCacheName(t.url);if(r in l)p[r]=!0,t.url=v.cacheDir+"/"+r,y(t,r),m(t,n);else{var o=function(e){if(e)m(t,n);else{if(!v.REMOTE_SERVER_ROOT)return void n(null,null);!function(n,r){var e=n.url;if(i.test(e))return r(null,null);var t=v.REMOTE_SERVER_ROOT+"/"+e;n.url=t;var o=v.getCacheName(e);cc.sys.os===cc.sys.OS_ANDROID&&n.type&&T(n.type)===O.IMAGE?(v.cacheAsset&&(g(t,!1,o),y(n,o)),r(null,null)):s.downloadFile(t,void 0,function(e,t){e?r(e,null):(n.url=t,v.cacheAsset&&(g(t,!0,o),y(n,o)),m(n,r))})}(t,n)}};t.url in a?o(a[t.url]):s.exists(t.url,function(e){a[t.url]=e,o(e)})}}(e,t)},h.prototype.cleanOldAssets=function(){return cc.warn("remoteDownloader.cleanOldAssets has been deprecated, please use remoteDownloader.cleanOldCaches instead!"),this.cleanOldCaches()},h.prototype.cleanOldCaches=function(){this.cleanAllCaches(p,function(e){if(e)cc.warn(e);else{for(var t in p)cc.log("reserve local file: "+t);cc.log("Clean old Assets successfully!")}})},h.prototype.getCacheName=function(e){return e.replace(/\//g,"-")},h.prototype.getCachedFileList=function(){return l},h.prototype.cleanCache=function(e){if(e in l){var t=this;delete l[e],E(function(){e in l||s.deleteFile(t.cacheDir+"/"+e,function(e){e||(t.outOfStorage=!1)})})}},h.prototype.cleanAllAssets=function(){cc.warn("remoteDownloader.cleanAllAssets has been deprecated, please use cleanAllCaches instead!"),this.cleanAllCaches(null,function(e){e&&cc.error(e.message)})},h.prototype.cleanAllCaches=function(a,c){a=a||{};var u=this,e=s.readDir(u.cacheDir,function(e,t){if(e)c&&c(e);else{for(var r=[],n=0,o=t.length;n<o;n++){var i=t[n];i!==u.cachedFileName&&(i in a||(i in f?delete f[i]:(delete l[i],r.push(i))))}E(function(){for(var t=0,e=0,n=r.length;e<n;e++)r[e]in l?++t===n&&(u.outOfStorage=!1,c&&c(null)):s.deleteFile(u.cacheDir+"/"+r[e],function(e){++t===n&&(u.outOfStorage=!1,c&&c(null))})})}});e&&c(e)};var v=window.remoteDownloader=new h;function y(e,t){cc.LoadingItems.getQueue(e).addListener(e.id,function(e){e.error&&(e.url in f?delete f[e.url]:v.cleanCache(t))})}function g(e,t,n){if(f[e]={isCopy:t,cachePath:n},!u){u=!0,setTimeout(function t(){for(var n in f){if(v.outOfStorage)u=!1;else{var r=f[n],e=v.cacheDir+"/"+r.cachePath,o=s.copyFile;r.isCopy||(o=s.downloadFile),o(n,e,function(e){if(u=!1,e){if(d.test(e.message))return void(v.outOfStorage=!0)}else l[r.cachePath]=1,delete f[n],E();cc.js.isEmptyObject(f)||(u=!0,setTimeout(t,v.cachePeriod))})}return}u=!1},v.cachePeriod)}}var b=[],_=[],w=!1;function E(e){c?e&&b.push(e):(c=setTimeout(function(){w=!(c=null),s.writeFile(v.cacheDir+"/"+v.cachedFileName,JSON.stringify(l),"utf8",function(){w=!1;for(var e=0,t=b.length;e<t;e++)b[e]();b.length=0,b.push.apply(b,_),_.length=0})},v.writeFilePeriod),!0===w?e&&_.push(e):e&&b.push(e))}function T(e){return S[e]||O.DEFAULT}var O={IMAGE:1,FONT:2,AUDIO:3,SCRIPT:4,VIDEO:5,TEXT:6,BIN:7,DEFAULT:8,LOADABLE_MIN:6},S={js:O.SCRIPT,png:O.IMAGE,jpg:O.IMAGE,bmp:O.IMAGE,jpeg:O.IMAGE,gif:O.IMAGE,ico:O.IMAGE,tiff:O.IMAGE,webp:O.IMAGE,image:O.IMAGE,mp3:O.AUDIO,ogg:O.AUDIO,wav:O.AUDIO,m4a:O.AUDIO,mp4:O.VIDEO,avi:O.VIDEO,mov:O.VIDEO,mpg:O.VIDEO,mpeg:O.VIDEO,rm:O.VIDEO,rmvb:O.VIDEO,txt:O.TEXT,xml:O.TEXT,vsh:O.TEXT,fsh:O.TEXT,atlas:O.TEXT,tmx:O.TEXT,tsx:O.TEXT,json:O.TEXT,ExportJson:O.TEXT,plist:O.TEXT,fnt:O.TEXT,font:O.FONT,eot:O.FONT,ttf:O.FONT,woff:O.FONT,svg:O.FONT,ttc:O.FONT,binary:O.BIN,dbbin:O.BIN,skel:O.BIN,bin:O.BIN,pvr:O.BIN,pkm:O.BIN}},{}],17:[function(e,t,n){"use strict";t.exports={cloneMethod:function(e,t,n,r){t[n]&&(e[r=r||n]=t[n].bind(t))}}},{}],18:[function(e,t,n){"use strict";function r(e){this.options=e||{locator:{}}}function l(){this.cdata=!1}function f(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function d(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function o(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function p(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}r.prototype.parseFromString=function(e,t){var n=this.options,r=new m,o=n.domBuilder||new l,i=n.errorHandler,a=n.locator,c=n.xmlns||{},u=/\/x?html?$/.test(t),s=u?h.entityMap:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return a&&o.setDocumentLocator(a),r.errorHandler=function(r,e,o){if(!r){if(e instanceof l)return e;r=e}var i={},a=r instanceof Function;function t(t){var n=r[t];!n&&a&&(n=2==r.length?function(e){r(t,e)}:r),i[t]=n&&function(e){n("[xmldom "+t+"]\t"+e+d(o))}||function(){}}return o=o||{},t("warning"),t("error"),t("fatalError"),i}(i,o,a),r.domBuilder=n.domBuilder||o,u&&(c[""]="http://www.w3.org/1999/xhtml"),c.xml=c.xml||"http://www.w3.org/XML/1998/namespace",e?r.parse(e,c,s):r.errorHandler.error("invalid doc source"),o.doc},l.prototype={startDocument:function(){this.doc=(new i).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var o=this.doc,i=o.createElementNS(e,n||t),a=r.length;p(this,i),this.currentElement=i,this.locator&&f(this.locator,i);for(var c=0;c<a;c++){e=r.getURI(c);var u=r.getValue(c),s=(n=r.getQName(c),o.createAttributeNS(e,n));this.locator&&f(r.getLocator(c),s),s.value=s.nodeValue=u,i.setAttributeNode(s)}},endElement:function(){var e=this.currentElement;e.tagName;this.currentElement=e.parentNode},startPrefixMapping:function(){},endPrefixMapping:function(){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&f(this.locator,n),p(this,n)},ignorableWhitespace:function(){},characters:function(e,t,n){if(e=o.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&f(this.locator,r)}},skippedEntity:function(){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=o.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&f(this.locator,r),p(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var o=r.createDocumentType(e,t,n);this.locator&&f(this.locator,o),p(this,o)}},warning:function(e){console.warn("[xmldom warning]\t"+e,d(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,d(this.locator))},fatalError:function(e){throw console.error("[xmldom fatalError]\t"+e,d(this.locator)),e}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){l.prototype[e]=function(){return null}});var h=e("./entities"),m=e("./sax").XMLReader,i=n.DOMImplementation=e("./dom").DOMImplementation;n.XMLSerializer=e("./dom").XMLSerializer,n.DOMParser=r},{"./dom":19,"./entities":20,"./sax":21}],19:[function(e,t,n){"use strict";function d(e){return(d="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})(e)}function r(e,t){for(var n in e)t[n]=e[n]}function o(e,t){var n=e.prototype;if(!(n instanceof t)){var r=function(){};for(var o in r.prototype=t.prototype,r=new r,n)r[o]=n[o];e.prototype=n=r}n.constructor!=e&&("function"!=typeof e&&console.error("unknow Class:"+e),n.constructor=e)}var y="http://www.w3.org/1999/xhtml",i={},g=i.ELEMENT_NODE=1,b=i.ATTRIBUTE_NODE=2,_=i.TEXT_NODE=3,w=i.CDATA_SECTION_NODE=4,E=i.ENTITY_REFERENCE_NODE=5,a=i.ENTITY_NODE=6,T=i.PROCESSING_INSTRUCTION_NODE=7,O=i.COMMENT_NODE=8,S=i.DOCUMENT_NODE=9,x=i.DOCUMENT_TYPE_NODE=10,N=i.DOCUMENT_FRAGMENT_NODE=11,c=i.NOTATION_NODE=12,u={},s={},l=(u.INDEX_SIZE_ERR=(s[1]="Index size error",1),u.DOMSTRING_SIZE_ERR=(s[2]="DOMString size error",2),u.HIERARCHY_REQUEST_ERR=(s[3]="Hierarchy request error",3)),f=(u.WRONG_DOCUMENT_ERR=(s[4]="Wrong document",4),u.INVALID_CHARACTER_ERR=(s[5]="Invalid character",5),u.NO_DATA_ALLOWED_ERR=(s[6]="No data allowed",6),u.NO_MODIFICATION_ALLOWED_ERR=(s[7]="No modification allowed",7),u.NOT_FOUND_ERR=(s[8]="Not found",8)),p=(u.NOT_SUPPORTED_ERR=(s[9]="Not supported",9),u.INUSE_ATTRIBUTE_ERR=(s[10]="Attribute in use",10));u.INVALID_STATE_ERR=(s[11]="Invalid state",11),u.SYNTAX_ERR=(s[12]="Syntax error",12),u.INVALID_MODIFICATION_ERR=(s[13]="Invalid modification",13),u.NAMESPACE_ERR=(s[14]="Invalid namespace",14),u.INVALID_ACCESS_ERR=(s[15]="Invalid access",15);function h(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,s[e]),this.message=s[e],Error.captureStackTrace&&Error.captureStackTrace(this,h);return n.code=e,t&&(this.message=this.message+": "+t),n}function m(){}function v(e,t){this._node=e,this._refresh=t,A(this)}function A(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);for(var r in oe(e,"length",n.length),n)e[r]=n[r];e._inc=t}}function M(){}function C(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function P(e,t,n,r){if(r?t[C(t,r)]=n:t[t.length++]=n,e){var o=(n.ownerElement=e).ownerDocument;o&&(r&&F(o,e,r),a=e,c=n,(i=o)&&i._inc++,"http://www.w3.org/2000/xmlns/"==c.namespaceURI&&(a._nsMap[c.prefix?c.localName:""]=c.value))}var i,a,c}function D(e,t,n){var r=C(t,n);if(!(0<=r))throw h(f,new Error(e.tagName+"@"+n));for(var o=t.length-1;r<o;)t[r]=t[++r];if(t.length=o,e){var i=e.ownerDocument;i&&(F(i,e,n),n.ownerElement=null)}}function I(e){if(this._features={},e)for(var t in e)this._features=e[t]}function L(){}function j(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function R(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(R(e,t))return!0}while(e=e.nextSibling)}function k(){}function F(e,t,n){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete t._nsMap[n.prefix?n.localName:""]}function H(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var o=t.firstChild,i=0;o;)o=(r[i++]=o).nextSibling;r.length=i}}}function U(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,H(e.ownerDocument,e),t}function V(e,t,n){var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===N){var o=t.firstChild;if(null==o)return t;var i=t.lastChild}else o=i=t;var a=n?n.previousSibling:e.lastChild;for(o.previousSibling=a,i.nextSibling=n,a?a.nextSibling=o:e.firstChild=o,null==n?e.lastChild=i:n.previousSibling=i;o.parentNode=e,o!==i&&(o=o.nextSibling););return H(e.ownerDocument||e,e),t.nodeType==N&&(t.firstChild=t.lastChild=null),t}function B(){this._nsMap={}}function W(){}function G(){}function K(){}function q(){}function $(){}function z(){}function X(){}function Y(){}function J(){}function Q(){}function Z(){}function ee(){}function te(e,t){var n=[],r=9==this.nodeType&&this.documentElement||this,o=r.prefix,i=r.namespaceURI;if(i&&null==o&&null==(o=r.lookupPrefix(i)))var a=[{namespace:i,prefix:null}];return re(this,n,e,t,a),n.join("")}function ne(e,t,n){var r=e.prefix||"",o=e.namespaceURI;if(!r&&!o)return!1;if("xml"===r&&"http://www.w3.org/XML/1998/namespace"===o||"http://www.w3.org/2000/xmlns/"==o)return!1;for(var i=n.length;i--;){var a=n[i];if(a.prefix==r)return a.namespace!=o}return!0}function re(e,t,n,r,o){if(r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case g:o=o||[];var i=e.attributes,a=i.length,c=e.firstChild,u=e.tagName;n=y===e.namespaceURI||n,t.push("<",u);for(var s=0;s<a;s++){"xmlns"==(l=i.item(s)).prefix?o.push({prefix:l.localName,namespace:l.value}):"xmlns"==l.nodeName&&o.push({prefix:"",namespace:l.value})}for(s=0;s<a;s++){var l;if(ne(l=i.item(s),0,o)){var f=l.prefix||"",d=l.namespaceURI,p=f?" xmlns:"+f:" xmlns";t.push(p,'="',d,'"'),o.push({prefix:f,namespace:d})}re(l,t,n,r,o)}if(ne(e,0,o)){f=e.prefix||"",d=e.namespaceURI,p=f?" xmlns:"+f:" xmlns";t.push(p,'="',d,'"'),o.push({prefix:f,namespace:d})}if(c||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){if(t.push(">"),n&&/^script$/i.test(u))for(;c;)c.data?t.push(c.data):re(c,t,n,r,o),c=c.nextSibling;else for(;c;)re(c,t,n,r,o),c=c.nextSibling;t.push("</",u,">")}else t.push("/>");return;case S:case N:for(c=e.firstChild;c;)re(c,t,n,r,o),c=c.nextSibling;return;case b:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,j),'"');case _:return t.push(e.data.replace(/[<&]/g,j));case w:return t.push("<![CDATA[",e.data,"]]>");case O:return t.push("\x3c!--",e.data,"--\x3e");case x:var h=e.publicId,m=e.systemId;if(t.push("<!DOCTYPE ",e.name),h)t.push(' PUBLIC "',h),m&&"."!=m&&t.push('" "',m),t.push('">');else if(m&&"."!=m)t.push(' SYSTEM "',m,'">');else{var v=e.internalSubset;v&&t.push(" [",v,"]"),t.push(">")}return;case T:return t.push("<?",e.target," ",e.data,"?>");case E:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function oe(e,t,n){e[t]=n}h.prototype=Error.prototype,r(u,h),m.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)re(this[r],n,e,t);return n.join("")}},v.prototype.item=function(e){return A(this),this[e]},o(v,m),M.prototype={length:0,item:m.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new h(p);var n=this.getNamedItem(e.nodeName);return P(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new h(p);return t=this.getNamedItemNS(e.namespaceURI,e.localName),P(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return D(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return D(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},I.prototype={hasFeature:function(e,t){var n=this._features[e.toLowerCase()];return!(!n||t&&!(t in n))},createDocument:function(e,t,n){var r=new k;if(r.implementation=this,r.childNodes=new m,(r.doctype=n)&&r.appendChild(n),t){var o=r.createElementNS(e,t);r.appendChild(o)}return r},createDocumentType:function(e,t,n){var r=new z;return r.name=e,r.nodeName=e,r.publicId=t,r.systemId=n,r}},L.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return V(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return U(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,n,r){var o=new n.constructor;for(var i in n){var a=n[i];"object"!=d(a)&&a!=o[i]&&(o[i]=a)}n.childNodes&&(o.childNodes=new m);o.ownerDocument=t;switch(o.nodeType){case g:var c=n.attributes,u=o.attributes=new M,s=c.length;u._ownerElement=o;for(var l=0;l<s;l++)o.setAttributeNode(e(t,c.item(l),!0));break;case b:r=!0}if(r)for(var f=n.firstChild;f;)o.appendChild(e(t,f,r)),f=f.nextSibling;return o}(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==_&&e.nodeType==_?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return 0<this.attributes.length},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var r in n)if(n[r]==e)return r;t=t.nodeType==b?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==b?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},r(i,L),r(i,L.prototype),k.prototype={nodeName:"#document",nodeType:S,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType!=N)return null==this.documentElement&&e.nodeType==g&&(this.documentElement=e),V(this,e,t),e.ownerDocument=this,e;for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),U(this,e)},importNode:function(e,t){return function e(t,n,r){var o;switch(n.nodeType){case g:(o=n.cloneNode(!1)).ownerDocument=t;case N:break;case b:r=!0}o=o||n.cloneNode(!1);o.ownerDocument=t;o.parentNode=null;if(r)for(var i=n.firstChild;i;)o.appendChild(e(t,i,r)),i=i.nextSibling;return o}(this,e,t)},getElementById:function(t){var n=null;return R(this.documentElement,function(e){if(e.nodeType==g&&e.getAttribute("id")==t)return n=e,!0}),n},createElement:function(e){var t=new B;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new m,(t.attributes=new M)._ownerElement=t},createDocumentFragment:function(){var e=new Q;return e.ownerDocument=this,e.childNodes=new m,e},createTextNode:function(e){var t=new K;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new q;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new $;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Z;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new W;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new J;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new B,r=t.split(":"),o=n.attributes=new M;return n.childNodes=new m,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,o._ownerElement=n},createAttributeNS:function(e,t){var n=new W,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},o(k,L),k.prototype.getElementsByTagName=(B.prototype={nodeType:g,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===N?this.insertBefore(e,null):function(e,t){var n=t.parentNode;if(n){var r=e.lastChild;n.removeChild(t);r=e.lastChild}return r=e.lastChild,t.parentNode=e,t.previousSibling=r,t.nextSibling=null,r?r.nextSibling=t:e.firstChild=t,e.lastChild=t,H(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(r){return new v(this,function(t){var n=[];return R(t,function(e){e===t||e.nodeType!=g||"*"!==r&&e.tagName!=r||n.push(e)}),n})},getElementsByTagNameNS:function(r,o){return new v(this,function(t){var n=[];return R(t,function(e){e===t||e.nodeType!==g||"*"!==r&&e.namespaceURI!==r||"*"!==o&&e.localName!=o||n.push(e)}),n})}}).getElementsByTagName,k.prototype.getElementsByTagNameNS=B.prototype.getElementsByTagNameNS,o(B,L),W.prototype.nodeType=b,o(W,L),G.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(){throw new Error(s[l])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},o(G,L),K.prototype={nodeName:"#text",nodeType:_,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},o(K,G),q.prototype={nodeName:"#comment",nodeType:O},o(q,G),$.prototype={nodeName:"#cdata-section",nodeType:w},o($,G),z.prototype.nodeType=x,o(z,L),X.prototype.nodeType=c,o(X,L),Y.prototype.nodeType=a,o(Y,L),J.prototype.nodeType=E,o(J,L),Q.prototype.nodeName="#document-fragment",Q.prototype.nodeType=N,o(Q,L),Z.prototype.nodeType=T,o(Z,L),ee.prototype.serializeToString=function(e,t,n){return te.call(e,t,n)},L.prototype.toString=te;try{if(Object.defineProperty){Object.defineProperty(v.prototype,"length",{get:function(){return A(this),this.$$length}}),Object.defineProperty(L.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case g:case N:var n=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}}(this)},set:function(e){switch(this.nodeType){case g:case N:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),oe=function(e,t,n){e["$$"+t]=n}}}catch(e){}n.DOMImplementation=I,n.XMLSerializer=ee},{}],20:[function(e,t,n){"use strict";n.entityMap={lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},{}],21:[function(e,t,n){"use strict";var r=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,o=new RegExp("[\\-\\.0-9"+r.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+r.source+o.source+"*(?::"+r.source+o.source+"*)?$"),f=0,d=1,p=2,h=3,m=4,v=5,y=6,g=7;function a(){}function C(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function P(e,t,n,r,o,i){for(var a,c=++t,u=f;;){var s=e.charAt(c);switch(s){case"=":if(u===d)a=e.slice(t,c),u=h;else{if(u!==p)throw new Error("attribute equal must after attrName");u=h}break;case"'":case'"':if(u===h||u===d){if(u===d&&(i.warning('attribute value must after "="'),a=e.slice(t,c)),t=c+1,!(0<(c=e.indexOf(s,t))))throw new Error("attribute value no end '"+s+"' match");l=e.slice(t,c).replace(/&#?\w+;/g,o),n.add(a,l,t-1),u=v}else{if(u!=m)throw new Error('attribute value must after "="');l=e.slice(t,c).replace(/&#?\w+;/g,o),n.add(a,l,t),i.warning('attribute "'+a+'" missed start quot('+s+")!!"),t=c+1,u=v}break;case"/":switch(u){case f:n.setTagName(e.slice(t,c));case v:case y:case g:u=g,n.closed=!0;case m:case d:case p:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return i.error("unexpected end of input"),u==f&&n.setTagName(e.slice(t,c)),c;case">":switch(u){case f:n.setTagName(e.slice(t,c));case v:case y:case g:break;case m:case d:"/"===(l=e.slice(t,c)).slice(-1)&&(n.closed=!0,l=l.slice(0,-1));case p:u===p&&(l=a),u==m?(i.warning('attribute "'+l+'" missed quot(")!!'),n.add(a,l.replace(/&#?\w+;/g,o),t)):("http://www.w3.org/1999/xhtml"===r[""]&&l.match(/^(?:disabled|checked|selected)$/i)||i.warning('attribute "'+l+'" missed value!! "'+l+'" instead!!'),n.add(l,l,t));break;case h:throw new Error("attribute value missed!!")}return c;case"":s=" ";default:if(s<=" ")switch(u){case f:n.setTagName(e.slice(t,c)),u=y;break;case d:a=e.slice(t,c),u=p;break;case m:var l=e.slice(t,c).replace(/&#?\w+;/g,o);i.warning('attribute "'+l+'" missed quot(")!!'),n.add(a,l,t);case v:u=y}else switch(u){case p:n.tagName;"http://www.w3.org/1999/xhtml"===r[""]&&a.match(/^(?:disabled|checked|selected)$/i)||i.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),n.add(a,a,t),t=c,u=d;break;case v:i.warning('attribute space is required"'+a+'"!!');case y:u=d,t=c;break;case h:u=m,t=c;break;case g:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function D(e,t,n){for(var r=e.tagName,o=null,i=e.length;i--;){var a=e[i],c=a.qName,u=a.value;if(0<(d=c.indexOf(":")))var s=a.prefix=c.slice(0,d),l=c.slice(d+1),f="xmlns"===s&&l;else s=null,f="xmlns"===(l=c)&&"";a.localName=l,!1!==f&&(null==o&&(o={},b(n,n={})),n[f]=o[f]=u,a.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(f,u))}for(i=e.length;i--;){(s=(a=e[i]).prefix)&&("xml"===s&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==s&&(a.uri=n[s||""]))}var d;l=0<(d=r.indexOf(":"))?(s=e.prefix=r.slice(0,d),e.localName=r.slice(d+1)):(s=null,e.localName=r);var p=e.uri=n[s||""];if(t.startElement(p,l,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=o,!0;if(t.endElement(p,l,r),o)for(s in o)t.endPrefixMapping(s)}function I(e,t,n,r,o){if(/^(?:script|textarea)$/i.test(n)){var i=e.indexOf("</"+n+">",t),a=e.substring(t+1,i);if(/[&<]/.test(a))return/^script$/i.test(n)||(a=a.replace(/&#?\w+;/g,r)),o.characters(a,0,a.length),i}return t+1}function L(e,t,n,r){var o=r[n];return null==o&&((o=e.lastIndexOf("</"+n+">"))<t&&(o=e.lastIndexOf("</"+n)),r[n]=o),o<t}function b(e,t){for(var n in e)t[n]=e[n]}function j(e,t,n,r){switch(e.charAt(t+2)){case"-":return"-"!==e.charAt(t+3)?-1:t<(o=e.indexOf("--\x3e",t+4))?(n.comment(e,t+4,o-t-4),o+3):(r.error("Unclosed comment"),-1);default:if("CDATA["==e.substr(t+3,6)){var o=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,o-t-9),n.endCDATA(),o+3}var i=function(e,t){var n,r=[],o=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;o.lastIndex=t,o.exec(e);for(;n=o.exec(e);)if(r.push(n),n[1])return r}(e,t),a=i.length;if(1<a&&/!doctype/i.test(i[0][0])){var c=i[1][0],u=3<a&&/^public$/i.test(i[2][0])&&i[3][0],s=4<a&&i[4][0],l=i[a-1];return n.startDTD(c,u&&u.replace(/^(['"])(.*?)\1$/,"$2"),s&&s.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),l.index+l[0].length}}return-1}function R(e,t,n){var r=e.indexOf("?>",t);if(r){var o=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(o){o[0].length;return n.processingInstruction(o[1],o[2]),r+2}return-1}return-1}function k(e){}a.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),b(t,t={}),function(n,e,r,o,i){function a(e){var t=e.slice(1,-1);return t in r?r[t]:"#"===t.charAt(0)?function(e){if(65535<e){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(i.error("entity not found:"+e),e)}function t(e){if(h<e){var t=n.substring(h,e).replace(/&#?\w+;/g,a);f&&c(h),o.characters(t,0,e-h),h=e}}function c(e,t){for(;s<=e&&(t=l.exec(n));)u=t.index,s=u+t[0].length,f.lineNumber++;f.columnNumber=e-u+1}var u=0,s=0,l=/.*(?:\r\n?|\n)|.*$/g,f=o.locator,d=[{currentNSMap:e}],p={},h=0;for(;;){try{var m=n.indexOf("<",h);if(m<0){if(!n.substr(h).match(/^\s*$/)){var v=o.doc,y=v.createTextNode(n.substr(h));v.appendChild(y),o.currentElement=y}return}switch(h<m&&t(m),n.charAt(m+1)){case"/":var g=n.indexOf(">",m+3),b=n.substring(m+2,g),_=d.pop();g<0?(b=n.substring(m+2).replace(/[\s<].*/,""),i.error("end tag name: "+b+" is not complete:"+_.tagName),g=m+1+b.length):b.match(/\s</)&&(b=b.replace(/[\s<].*/,""),i.error("end tag name: "+b+" maybe not complete"),g=m+1+b.length);var w=_.localNSMap,E=_.tagName==b;if(E||_.tagName&&_.tagName.toLowerCase()==b.toLowerCase()){if(o.endElement(_.uri,_.localName,b),w)for(var T in w)o.endPrefixMapping(T);E||i.fatalError("end tag name: "+b+" is not match the current start tagName:"+_.tagName)}else d.push(_);g++;break;case"?":f&&c(m),g=R(n,m,o);break;case"!":f&&c(m),g=j(n,m,o,i);break;default:f&&c(m);var O=new k,S=d[d.length-1].currentNSMap,x=(g=P(n,m,O,S,a,i),O.length);if(!O.closed&&L(n,g,O.tagName,p)&&(O.closed=!0,r.nbsp||i.warning("unclosed xml attribute")),f&&x){for(var N=C(f,{}),A=0;A<x;A++){var M=O[A];c(M.offset),M.locator=C(f,{})}o.locator=N,D(O,o,S)&&d.push(O),o.locator=f}else D(O,o,S)&&d.push(O);"http://www.w3.org/1999/xhtml"!==O.uri||O.closed?g++:g=I(n,g,O.tagName,a,o)}}catch(e){i.error("element parse error: "+e),g=-1}h<g?h=g:t(Math.max(m,h)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},k.prototype={setTagName:function(e){if(!i.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},add:function(e,t,n){if(!i.test(e))throw new Error("invalid attribute:"+e);this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},n.XMLReader=a},{}],22:[function(e,t,n){"use strict";var r=GameGlobal,o=r.__globalAdapter={};Object.assign(o,{init:function(){e("./wrapper/builtin"),r.DOMParser=e("../../common/xmldom/dom-parser").DOMParser,e("./wrapper/unify"),e("./wrapper/fs-utils"),e("../../common/remote-downloader"),e("../../common/engine/globalAdapter"),e("./wrapper/systemInfo")},adaptEngine:function(){e("../../common/engine"),e("./wrapper/engine"),e("./wrapper/sub-context-adapter")}})},{"../../common/engine":15,"../../common/engine/globalAdapter":14,"../../common/remote-downloader":16,"../../common/xmldom/dom-parser":18,"./wrapper/builtin":45,"./wrapper/engine":53,"./wrapper/fs-utils":55,"./wrapper/sub-context-adapter":1,"./wrapper/systemInfo":56,"./wrapper/unify":57}],23:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e("./HTMLAudioElement"))&&r.__esModule?r:{default:r};function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(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)}}function c(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=s(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=1,d={},p=function(){function o(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=c(this,s(o).call(this)))._$sn=f++,t.HAVE_NOTHING=0,t.HAVE_METADATA=1,t.HAVE_CURRENT_DATA=2,t.HAVE_FUTURE_DATA=3,t.HAVE_ENOUGH_DATA=4,t.readyState=0;var n=wx.createInnerAudioContext();return d[t._$sn]=n,t._canplayEvents=["load","loadend","canplay","canplaythrough","loadedmetadata"],n.onCanplay(function(){t._loaded=!0,t.readyState=t.HAVE_CURRENT_DATA,t._canplayEvents.forEach(function(e){t.dispatchEvent({type:e})})}),n.onPlay(function(){t._paused=d[t._$sn].paused,t.dispatchEvent({type:"play"})}),n.onPause(function(){t._paused=d[t._$sn].paused,t.dispatchEvent({type:"pause"})}),n.onEnded(function(){t._paused=d[t._$sn].paused,!1===d[t._$sn].loop&&t.dispatchEvent({type:"ended"}),t.readyState=4}),n.onError(function(){t._paused=d[t._$sn].paused,t.dispatchEvent({type:"error"})}),e?t.src=e:t._src="",t._loop=n.loop,t._autoplay=n.autoplay,t._paused=n.paused,t._volume=n.volume,t._muted=!1,t}var e,t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(o,i["default"]),e=o,(t=[{key:"addEventListener",value:function(e,t,n){var r=2<arguments.length&&void 0!==n?n:{};u(s(o.prototype),"addEventListener",this).call(this,e,t,r),e=String(e).toLowerCase(),this._loaded&&-1!==this._canplayEvents.indexOf(e)&&this.dispatchEvent({type:e})}},{key:"load",value:function(){}},{key:"play",value:function(){d[this._$sn].play()}},{key:"resume",value:function(){d[this._$sn].resume()}},{key:"pause",value:function(){d[this._$sn].pause()}},{key:"stop",value:function(){d[this._$sn].stop()}},{key:"destroy",value:function(){d[this._$sn].destroy()}},{key:"canPlayType",value:function(e){var t=0<arguments.length&&void 0!==e?e:"";return"string"!=typeof t?"":-1<t.indexOf("audio/mpeg")||t.indexOf("audio/mp4")?"probably":""}},{key:"cloneNode",value:function(){var e=new o;return e.loop=this.loop,e.autoplay=this.autoplay,e.src=this.src,e}},{key:"currentTime",get:function(){return d[this._$sn].currentTime},set:function(e){d[this._$sn].seek(e)}},{key:"duration",get:function(){return d[this._$sn].duration}},{key:"src",get:function(){return this._src},set:function(e){this._src=e,this._loaded=!1,this.readyState=this.HAVE_NOTHING,d[this._$sn].src=e}},{key:"loop",get:function(){return this._loop},set:function(e){this._loop=e,d[this._$sn].loop=e}},{key:"autoplay",get:function(){return this.autoplay},set:function(e){this._autoplay=e,d[this._$sn].autoplay=e}},{key:"paused",get:function(){return this._paused}},{key:"volume",get:function(){return this._volume},set:function(e){this._volume=e,this._muted||(d[this._$sn].volume=e)}},{key:"muted",get:function(){return this._muted},set:function(e){this._muted=e,d[this._$sn].volume=e?0:this._volume}}])&&a(e.prototype,t),n&&a(e,n),o}();n.default=p,t.exports=n.default},{"./HTMLAudioElement":31}],24:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){var e=wx.createCanvas();e.type="canvas";e.getContext;return e.getBoundingClientRect=function(){return{top:0,left:0,width:window.innerWidth,height:window.innerHeight}},e.style={top:"0px",left:"0px",width:r.innerWidth+"px",height:r.innerHeight+"px"},e.addEventListener=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};document.addEventListener(e,t,n)},e.removeEventListener=function(e,t){document.removeEventListener(e,t)},e.dispatchEvent=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};console.log("canvas.dispatchEvent",e.type,e)},Object.defineProperty(e,"clientWidth",{enumerable:!0,get:function(){return r.innerWidth}}),Object.defineProperty(e,"clientHeight",{enumerable:!0,get:function(){return r.innerHeight}}),e};var r=e("./WindowProperties");t.exports=n.default},{"./WindowProperties":42}],25:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e("./Node"))&&r.__esModule?r:{default:r};function i(e){return(i="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})(e)}function a(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=function(){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=a(this,c(t).call(this))).className="",e.children=[],e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,o["default"]),t}();n.default=s,t.exports=n.default},{"./Node":39}],26:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t.exports=n.default},{}],27:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e("../util/index.js");function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this.touches=[],this.targetTouches=[],this.changedTouches=[],this.preventDefault=r.noop,this.stopPropagation=r.noop,this.type=e,this.target=window.canvas,this.currentTarget=window.canvas}function i(n){return function(e){var t=new o(n);t.touches=e.touches,t.targetTouches=Array.prototype.slice.call(e.touches),t.changedTouches=e.changedTouches,t.timeStamp=e.timeStamp,document.dispatchEvent(t)}}n.default=o,wx.onTouchStart(i("touchstart")),wx.onTouchMove(i("touchmove")),wx.onTouchEnd(i("touchend")),wx.onTouchCancel(i("touchcancel")),t.exports=n.default},{"../util/index.js":49}],28:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"TouchEvent",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"MouseEvent",{enumerable:!0,get:function(){return o.default}});var r=i(e("./TouchEvent")),o=i(e("./MouseEvent"));function i(e){return e&&e.__esModule?e:{default:e}}},{"./MouseEvent":26,"./TouchEvent":27}],29:[function(e,t,n){"use strict";function o(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)}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=new WeakMap,r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i.set(this,{})}var t,n,r;return t=e,(n=[{key:"addEventListener",value:function(e,t,n){var r=2<arguments.length&&void 0!==n?n:{},o=i.get(this);o||(o={},i.set(this,o)),o[e]||(o[e]=[]),o[e].push(t),r.capture,r.once,r.passive}},{key:"removeEventListener",value:function(e,t){var n=i.get(this);if(n){var r=n[e];if(r&&0<r.length)for(var o=r.length;o--;)if(r[o]===t){r.splice(o,1);break}}}},{key:"dispatchEvent",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},n=i.get(this)[t.type];if(n)for(var r=0;r<n.length;r++)n[r](t)}}])&&o(t.prototype,n),r&&o(t,r),e}();n.default=r,t.exports=n.default},{}],30:[function(e,t,n){"use strict";function o(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)}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"construct",value:function(){}}])&&o(t.prototype,n),r&&o(t,r),e}();n.default=r,t.exports=n.default},{}],31:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e("./HTMLMediaElement"))&&r.__esModule?r:{default:r};function i(e){return(i="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})(e)}function a(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,c(e).call(this,"audio"))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(e,o["default"]),e}();n.default=s,t.exports=n.default},{"./HTMLMediaElement":35}],32:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e("./Canvas"));o(e("./HTMLElement"));function o(e){return e&&e.__esModule?e:{default:e}}GameGlobal.screencanvas=GameGlobal.screencanvas||new r.default;var i=GameGlobal.screencanvas.constructor;n.default=i,t.exports=n.default},{"./Canvas":24,"./HTMLElement":33}],33:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e("./Element"))&&r.__esModule?r:{default:r},i=e("./util/index.js"),a=e("./WindowProperties");function c(e){return(c="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})(e)}function u(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)}}function s(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(){function n(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(e=s(this,l(n).call(this))).className="",e.childern=[],e.style={width:"".concat(a.innerWidth,"px"),height:"".concat(a.innerHeight,"px")},e.insertBefore=i.noop,e.innerHTML="",e.tagName=t.toUpperCase(),e}var e,t,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(n,o["default"]),e=n,(t=[{key:"setAttribute",value:function(e,t){this[e]=t}},{key:"getAttribute",value:function(e){return this[e]}},{key:"getBoundingClientRect",value:function(){return{top:0,left:0,width:a.innerWidth,height:a.innerHeight}}},{key:"focus",value:function(){}},{key:"clientWidth",get:function(){var e=parseInt(this.style.fontSize,10)*this.innerHTML.length;return Number.isNaN(e)?0:e}},{key:"clientHeight",get:function(){var e=parseInt(this.style.fontSize,10);return Number.isNaN(e)?0:e}}])&&u(e.prototype,t),r&&u(e,r),n}();n.default=d,t.exports=n.default},{"./Element":25,"./WindowProperties":42,"./util/index.js":49}],34:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r;(r=e("./HTMLElement"))&&r.__esModule;var o=wx.createImage().constructor;n.default=o,t.exports=n.default},{"./HTMLElement":33}],35:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e("./HTMLElement"))&&r.__esModule?r:{default:r};function i(e){return(i="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})(e)}function a(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)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,u(t).call(this,e))}var e,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,o["default"]),e=t,(n=[{key:"addTextTrack",value:function(){}},{key:"captureStream",value:function(){}},{key:"fastSeek",value:function(){}},{key:"load",value:function(){}},{key:"pause",value:function(){}},{key:"play",value:function(){}}])&&a(e.prototype,n),r&&a(e,r),t}();n.default=l,t.exports=n.default},{"./HTMLElement":33}],36:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e("./HTMLMediaElement"))&&r.__esModule?r:{default:r};function i(e){return(i="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})(e)}function a(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,c(e).call(this,"video"))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(e,o["default"]),e}();n.default=s,t.exports=n.default},{"./HTMLMediaElement":35}],37:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return wx.createImage()};var r;(r=e("./HTMLImageElement"))&&r.__esModule;t.exports=n.default},{"./HTMLImageElement":34}],38:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t.exports=n.default},{}],39:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e("./EventTarget.js"))&&r.__esModule?r:{default:r};function i(e){return(i="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})(e)}function a(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)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=c(this,u(t).call(this))).childNodes=[],e}var e,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,o["default"]),e=t,(n=[{key:"appendChild",value:function(e){this.childNodes.push(e)}},{key:"cloneNode",value:function(){var e=Object.create(this);return Object.assign(e,this),e}},{key:"removeChild",value:function(t){var e=this.childNodes.findIndex(function(e){return e===t});return-1<e?this.childNodes.splice(e,1):null}}])&&a(e.prototype,n),r&&a(e,r),t}();n.default=l,t.exports=n.default},{"./EventTarget.js":29}],40:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t.exports=n.default},{}],41:[function(e,t,n){"use strict";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)}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=new WeakMap,o=function(){function o(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];if(!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this.binaryType="",this.bufferedAmount=0,this.extensions="",this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this.protocol="",this.readyState=3,"string"!=typeof e||!/(^ws:\/\/)|(^wss:\/\/)/.test(e))throw new TypeError("Failed to construct 'WebSocket': The URL '".concat(e,"' is invalid"));this.url=e,this.readyState=o.CONNECTING;var r=wx.connectSocket({url:e,protocols:Array.isArray(n)?n:[n],tcpNoDelay:!0});return i.set(this,r),r.onClose(function(e){t.readyState=o.CLOSED,"function"==typeof t.onclose&&t.onclose(e)}),r.onMessage(function(e){"function"==typeof t.onmessage&&t.onmessage(e)}),r.onOpen(function(){t.readyState=o.OPEN,"function"==typeof t.onopen&&t.onopen()}),r.onError(function(e){"function"==typeof t.onerror&&t.onerror(new Error(e.errMsg))}),this}var e,t,n;return e=o,(t=[{key:"close",value:function(e,t){this.readyState=o.CLOSING,i.get(this).close({code:e,reason:t})}},{key:"send",value:function(e){if("string"!=typeof e&&!(e instanceof ArrayBuffer))throw new TypeError("Failed to send message: The data ".concat(e," is invalid"));i.get(this).send({data:e})}}])&&r(e.prototype,t),n&&r(e,n),o}();(n.default=o).CONNECTING=0,o.OPEN=1,o.CLOSING=2,o.CLOSED=3,t.exports=n.default},{}],42:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ontouchend=n.ontouchmove=n.ontouchstart=n.performance=n.screen=n.devicePixelRatio=n.innerHeight=n.innerWidth=void 0;var r=wx.getSystemInfoSync(),o=r.screenWidth,i=r.screenHeight,a=r.devicePixelRatio;n.devicePixelRatio=a;var c=o,u=i,s={width:o,height:i,availWidth:n.innerWidth=c,availHeight:n.innerHeight=u,availLeft:0,availTop:0};n.screen=s;var l={now:Date.now};n.performance=l;n.ontouchstart=null;n.ontouchmove=null;n.ontouchend=null},{}],43:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e("./EventTarget.js"))&&r.__esModule?r:{default:r};function i(e){return(i="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})(e)}function a(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)}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,m=new WeakMap;function v(e){if("function"==typeof this["on".concat(e)]){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this["on".concat(e)].apply(this,n)}}function y(e){this.readyState=e,v.call(this,"readystatechange")}var u=function(){function u(){var e,t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),t=this,(e=!(n=c(u).call(this))||"object"!==i(n)&&"function"!=typeof n?s(t):n).onabort=null,e.onerror=null,e.onload=null,e.onloadstart=null,e.onprogress=null,e.ontimeout=null,e.onloadend=null,e.onreadystatechange=null,e.readyState=0,e.response=null,e.responseText=null,e.responseType="",e.responseXML=null,e.status=0,e.statusText="",e.upload={},e.withCredentials=!1,p.set(s(e),{"content-type":"application/x-www-form-urlencoded"}),h.set(s(e),{}),e}var e,t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(u,o["default"]),e=u,(t=[{key:"abort",value:function(){var e=m.get(this);e&&e.abort()}},{key:"getAllResponseHeaders",value:function(){var t=h.get(this);return Object.keys(t).map(function(e){return"".concat(e,": ").concat(t[e])}).join("\n")}},{key:"getResponseHeader",value:function(e){return h.get(this)[e]}},{key:"open",value:function(e,t){d.set(this,e),f.set(this,t),y.call(this,u.OPENED)}},{key:"overrideMimeType",value:function(){}},{key:"send",value:function(e){var c=this,t=0<arguments.length&&void 0!==e?e:"";if(this.readyState!==u.OPENED)throw new Error("Failed to execute 'send' on 'XMLHttpRequest': The object's state must be OPENED.");var n=wx.request({data:t,url:f.get(this),method:d.get(this),header:p.get(this),dataType:"other",responseType:"arraybuffer"===this.responseType?"arraybuffer":"text",success:function(e){var t=e.data,n=e.statusCode,r=e.header;switch(c.status=n,h.set(c,r),v.call(c,"loadstart"),y.call(c,u.HEADERS_RECEIVED),y.call(c,u.LOADING),c.responseType){case"json":c.responseText=t;try{c.response=JSON.parse(t)}catch(e){c.response=null}break;case"":case"text":c.responseText=c.response=t;break;case"arraybuffer":c.response=t,c.responseText="";for(var o=new Uint8Array(t),i=o.byteLength,a=0;a<i;a++)c.responseText+=String.fromCharCode(o[a]);break;default:c.response=null}y.call(c,u.DONE),v.call(c,"load"),v.call(c,"loadend")},fail:function(e){var t=e.errMsg;-1!==t.indexOf("abort")?v.call(c,"abort"):-1!==t.indexOf("timeout")?v.call(c,"timeout"):v.call(c,"error",t),v.call(c,"loadend")}});m.set(this,n)}},{key:"setRequestHeader",value:function(e,t){var n=p.get(this);n[e]=t,p.set(this,n)}},{key:"addEventListener",value:function(e,t){if("function"==typeof t){var n=this;this["on"+e]=function(e){t.call(n,e)}}}}])&&a(e.prototype,t),n&&a(e,n),u}();(n.default=u).UNSEND=0,u.OPENED=1,u.HEADERS_RECEIVED=2,u.LOADING=3,u.DONE=4,t.exports=n.default},{"./EventTarget.js":29}],44:[function(e,t,n){"use strict";function a(e){return(a="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})(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(e("./window")),o=l(e("./HTMLElement")),i=l(e("./HTMLVideoElement")),c=l(e("./Image")),u=l(e("./Audio")),s=l(e("./Canvas"));function l(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}e("./EventIniter/index.js");var d={},p={readyState:"complete",visibilityState:"visible",documentElement:r,hidden:!1,style:{},location:r.location,ontouchstart:null,ontouchmove:null,ontouchend:null,head:new o.default("head"),body:new o.default("body"),createElement:function(e){return"canvas"===e?new s.default:"audio"===e?new u.default:"img"===e?new c.default:"video"===e?new i.default:new o.default(e)},createElementNS:function(e,t){return this.createElement(t)},getElementById:function(e){return e===r.canvas.id?r.canvas:null},getElementsByTagName:function(e){return"head"===e?[p.head]:"body"===e?[p.body]:"canvas"===e?[r.canvas]:[]},getElementsByName:function(e){return"head"===e?[p.head]:"body"===e?[p.body]:"canvas"===e?[r.canvas]:[]},querySelector:function(e){return"head"===e?p.head:"body"===e?p.body:"canvas"===e?r.canvas:e==="#".concat(r.canvas.id)?r.canvas:null},querySelectorAll:function(e){return"head"===e?[p.head]:"body"===e?[p.body]:"canvas"===e?[r.canvas]:[]},addEventListener:function(e,t){d[e]||(d[e]=[]),d[e].push(t)},removeEventListener:function(e,t){var n=d[e];if(n&&0<n.length)for(var r=n.length;r--;)if(n[r]===t){n.splice(r,1);break}},dispatchEvent:function(e){var t=d[e.type];if(t)for(var n=0;n<t.length;n++)t[n](e)}},h=p;n.default=h,t.exports=n.default},{"./Audio":23,"./Canvas":24,"./EventIniter/index.js":28,"./HTMLElement":33,"./HTMLVideoElement":36,"./Image":37,"./window":50}],45:[function(e,t,n){"use strict";function a(e){return(a="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})(e)}var c=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(e("./window")),u=r(e("./document"));r(e("./HTMLElement"));function r(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=GameGlobal;GameGlobal.__isAdapterInjected||(GameGlobal.__isAdapterInjected=!0,function(){c.document=u.default,c.addEventListener=function(e,t){c.document.addEventListener(e,t)},c.removeEventListener=function(e,t){c.document.removeEventListener(e,t)},c.dispatchEvent=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};console.log("window.dispatchEvent",e.type,e)};var e=wx.getSystemInfoSync().platform;if("undefined"==typeof __devtoolssubcontext&&"devtools"===e){for(var t in c){var n=Object.getOwnPropertyDescriptor(l,t);n&&!0!==n.configurable||Object.defineProperty(window,t,{value:c[t]})}for(var r in c.document){var o=Object.getOwnPropertyDescriptor(l.document,r);o&&!0!==o.configurable||Object.defineProperty(l.document,r,{value:c.document[r]})}window.parent=window}else{for(var i in c)l[i]=c[i];l.window=c,window=l,window.top=window.parent=window}}())},{"./HTMLElement":33,"./document":44,"./window":50}],46:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r={get length(){return wx.getStorageInfoSync().keys.length},key:function(e){return wx.getStorageInfoSync().keys[e]},getItem:function(e){return wx.getStorageSync(e)},setItem:function(e,t){return wx.setStorageSync(e,t)},removeItem:function(e){wx.removeStorageSync(e)},clear:function(){wx.clearStorageSync()}};n.default=r,t.exports=n.default},{}],47:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r={href:"game.js",reload:function(){}};n.default=r,t.exports=n.default},{}],48:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e("./util/index.js"),o=wx.getSystemInfoSync();console.log(o);var i=o.system,a=o.platform,c=o.language,u=o.version,s=-1!==i.toLowerCase().indexOf("android")?"Android; CPU ".concat(i):"iPhone; CPU iPhone OS ".concat(i," like Mac OS X"),l="Mozilla/5.0 (".concat(s,") AppleWebKit/603.1.30 (KHTML, like Gecko) Mobile/14E8301 MicroMessenger/").concat(u," MiniGame NetType/WIFI Language/").concat(c),f={platform:a,language:c,appVersion:"5.0 (".concat(s,") AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"),userAgent:l,onLine:!0,geolocation:{getCurrentPosition:r.noop,watchPosition:r.noop,clearWatch:r.noop}};wx.onNetworkStatusChange&&wx.onNetworkStatusChange(function(e){f.onLine=e.isConnected});var d=f;n.default=d,t.exports=n.default},{"./util/index.js":49}],49:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.noop=function(){}},{}],50:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={canvas:!0,setTimeout:!0,setInterval:!0,clearTimeout:!0,clearInterval:!0,requestAnimationFrame:!0,cancelAnimationFrame:!0,navigator:!0,XMLHttpRequest:!0,WebSocket:!0,Image:!0,ImageBitmap:!0,Audio:!0,FileReader:!0,HTMLElement:!0,HTMLImageElement:!0,HTMLCanvasElement:!0,HTMLMediaElement:!0,HTMLAudioElement:!0,HTMLVideoElement:!0,WebGLRenderingContext:!0,TouchEvent:!0,MouseEvent:!0,DeviceMotionEvent:!0,localStorage:!0,location:!0};Object.defineProperty(n,"navigator",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"XMLHttpRequest",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"WebSocket",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(n,"Image",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"ImageBitmap",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"Audio",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"FileReader",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(n,"HTMLElement",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(n,"HTMLImageElement",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(n,"HTMLCanvasElement",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(n,"HTMLMediaElement",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(n,"HTMLAudioElement",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(n,"HTMLVideoElement",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(n,"WebGLRenderingContext",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(n,"TouchEvent",{enumerable:!0,get:function(){return b.TouchEvent}}),Object.defineProperty(n,"MouseEvent",{enumerable:!0,get:function(){return b.MouseEvent}}),Object.defineProperty(n,"DeviceMotionEvent",{enumerable:!0,get:function(){return b.DeviceMotionEvent}}),Object.defineProperty(n,"localStorage",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(n,"location",{enumerable:!0,get:function(){return w.default}}),n.cancelAnimationFrame=n.requestAnimationFrame=n.clearInterval=n.clearTimeout=n.setInterval=n.setTimeout=n.canvas=void 0;var o=T(e("./Canvas")),i=T(e("./navigator")),a=T(e("./XMLHttpRequest")),c=T(e("./WebSocket")),u=T(e("./Image")),s=T(e("./ImageBitmap")),l=T(e("./Audio")),f=T(e("./FileReader")),d=T(e("./HTMLElement")),p=T(e("./HTMLImageElement")),h=T(e("./HTMLCanvasElement")),m=T(e("./HTMLMediaElement")),v=T(e("./HTMLAudioElement")),y=T(e("./HTMLVideoElement")),g=T(e("./WebGLRenderingContext")),b=e("./EventIniter/index.js"),_=T(e("./localStorage")),w=T(e("./location")),E=e("./WindowProperties");function T(e){return e&&e.__esModule?e:{default:e}}Object.keys(E).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(n,e,{enumerable:!0,get:function(){return E[e]}}))}),GameGlobal.screencanvas=GameGlobal.screencanvas||new o.default;var O=GameGlobal.screencanvas;n.canvas=O;var S=GameGlobal,x=S.setTimeout,N=S.setInterval,A=S.clearTimeout,M=S.clearInterval,C=S.requestAnimationFrame,P=S.cancelAnimationFrame;n.cancelAnimationFrame=P,n.requestAnimationFrame=C,n.clearInterval=M,n.clearTimeout=A,n.setInterval=N,n.setTimeout=x},{"./Audio":23,"./Canvas":24,"./EventIniter/index.js":28,"./FileReader":30,"./HTMLAudioElement":31,"./HTMLCanvasElement":32,"./HTMLElement":33,"./HTMLImageElement":34,"./HTMLMediaElement":35,"./HTMLVideoElement":36,"./Image":37,"./ImageBitmap":38,"./WebGLRenderingContext":40,"./WebSocket":41,"./WindowProperties":42,"./XMLHttpRequest":43,"./localStorage":46,"./location":47,"./navigator":48}],51:[function(e,t,n){"use strict";function r(e,t){if(0===cc.sys.__audioSupport.format.length)return new Error(cc.debug.getError(4927));var n=document.createElement("audio");n.src=e.url,t(null,n)}cc.loader.downloader.addHandlers({mp3:r,ogg:r,wav:r,m4a:r})},{}],52:[function(e,t,n){"use strict";!function(){if(cc&&cc.VideoPlayer&&cc.VideoPlayer.Impl&&__globalAdapter.createVideo){var v=cc.Mat4,y=cc.mat4(),g=cc.mat4(),r=cc.VideoPlayer.Impl,e=cc.VideoPlayer.Impl.prototype;cc.VideoPlayer.prototype._updateVideoSource=function(){var n=this,r=this._clip;this.resourceType===cc.VideoPlayer.ResourceType.REMOTE?this._impl.setURL(this.remoteURL,this._mute||0===this._volume):r&&(r._nativeAsset?this._impl.setURL(r._nativeAsset,this._mute||0===this._volume):cc.loader.load(r.nativeUrl,function(e,t){e?console.error(e):(r._nativeAsset=t,n._impl.setURL(t,n._mute||0===n._volume))}))},e._bindEvent=function(){var e=this._video,t=this;e&&(e.onPlay(function(){t._video===e&&(t._playing=!0,t._dispatchEvent(r.EventType.PLAYING))}),e.onEnded(function(){t._video===e&&(t._playing=!1,t._currentTime=t._duration,t._dispatchEvent(r.EventType.COMPLETED))}),e.onPause(function(){t._video===e&&(t._playing=!1,t._dispatchEvent(r.EventType.PAUSED))}),e.onTimeUpdate(function(e){t._duration=e.duration,t._currentTime=e.position}))},e._unbindEvent=function(){var e=this._video;e&&(e.offPlay(),e.offEnded(),e.offPause(),e.offTimeUpdate())},e.setVisible=function(e){var t=this._video;t&&this._visible!==e&&(t.width=e&&this._actualWidth||0,this._visible=e)},e.createDomElementIfNeeded=function(){__globalAdapter.createVideo?this._video||(this._video=__globalAdapter.createVideo(),this._video.showCenterPlayBtn=!1,this._video.controls=!1,this._duration=-1,this._currentTime=-1,this._loaded=!1,this.setVisible(!1),this._bindEvent()):cc.warn("VideoPlayer not supported")},e.setURL=function(e){var t=this._video;if(t&&t.src!==e){t.stop(),this._unbindEvent(),t.autoplay=!0,t.src=e,t.muted=!0;var n=this;this._loaded=!1,t.onPlay(function(){t.offPlay(),n._bindEvent(),t.stop(),t.muted=!1,n._loaded=!0,n._playing=!1,n._currentTime=0,n._dispatchEvent(r.EventType.READY_TO_PLAY),t.autoplay=!1})}},e.getURL=function(){var e=this._video;return e?e.src:""},e.play=function(){var e=this._video;e&&this._visible&&!this._playing&&e.play()},e.setStayOnBottom=function(e){},e.pause=function(){var e=this._video;this._playing&&e&&e.pause()},e.resume=function(){var e=this._video;!this._playing&&e&&e.play()},e.stop=function(){var t=this,n=this._video;n&&this._visible&&n.stop().then(function(e){!e.errMsg||e.errMsg.includes("ok")?(t._currentTime=0,n.seek(0),t._playing=!1,t._dispatchEvent(r.EventType.STOPPED)):console.error("failed to stop video player")})},e.setVolume=function(e){},e.seekTo=function(e){var t=this._video;t&&this._loaded&&t.seek(e)},e.isPlaying=function(){return this._playing},e.duration=function(){return this._duration},e.currentTime=function(){return this._currentTime},e.setKeepAspectRatioEnabled=function(e){console.warn("On wechat game videoPlayer is always keep the aspect ratio")},e.isKeepAspectRatioEnabled=function(){return!0},e.isFullScreenEnabled=function(){return this._fullScreenEnabled},e.setFullScreenEnabled=function(e){var t=this._video;t&&this._fullScreenEnabled!==e&&(e?t.requestFullScreen():t.exitFullScreen(),this._fullScreenEnabled=e)},e.enable=function(){this.setVisible(!0)},e.disable=function(){this._playing&&this._video.pause(),this.setVisible(!1)},e.destroy=function(){this.disable(),this._unbindEvent(),this._video&&(this._video.destroy(),this._video=void 0)},e.updateMatrix=function(e){if(this._video&&this._visible&&(e.getWorldMatrix(y),this._m00!==y.m[0]||this._m01!==y.m[1]||this._m04!==y.m[4]||this._m05!==y.m[5]||this._m12!==y.m[12]||this._m13!==y.m[13]||this._w!==e._contentSize.width||this._h!==e._contentSize.height)){this._m00=y.m[0],this._m01=y.m[1],this._m04=y.m[4],this._m05=y.m[5],this._m12=y.m[12],this._m13=y.m[13],this._w=e._contentSize.width,this._h=e._contentSize.height,cc.Camera.findCamera(e).getWorldToScreenMatrix2D(g),v.multiply(g,g,y);var t=cc.view._scaleX,n=cc.view._scaleY,r=cc.view._devicePixelRatio;t/=r,n/=r;var o=g.m[0]*t,i=g.m[5]*n,a=this._w*o,c=this._h*i,u=a*e._anchorPoint.x,s=c*e._anchorPoint.y,l=cc.view._viewportRect,f=l.x/r,d=l.y/r,p=g.m[12]*t-u+f,h=g.m[13]*n-s+d,m=cc.view.getFrameSize().height;this._video.x=p,this._video.y=m-c-h,this._actualWidth=this._video.width=a,this._video.height=c}}}}()},{}],53:[function(e,t,n){"use strict";e("./Loader"),e("./VideoPlayer"),e("./pc-adapter")},{"./Loader":51,"./VideoPlayer":52,"./pc-adapter":54}],54:[function(e,t,n){"use strict";var r=wx.getSystemInfoSync(),i=cc.internal.inputManager,a=cc.internal.eventManager,c=cc.Event.EventKeyboard,u=cc.Event.EventMouse;"windows"===r.platform&&(i.registerSystemEvent=function(){var t,o;this._isRegisterEvent||(this._glView=cc.view,t={Backspace:8,Tab:9,Enter:13,Shift:16,Control:17,Alt:18,CapsLock:20,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Insert:45,Delete:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,"*":106,"+":107,"-":109,"/":111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NumLock:144,ScrollLock:145,";":186,"=":187,",":188,".":190,"`":192,"[":219,"\\":220,"]":221,'"':222},wx.onKeyDown(function(e){return a.dispatchEvent(new c(t[e.key]||0,!0))}),wx.onKeyUp(function(e){return a.dispatchEvent(new c(t[e.key]||0,!1))}),o={top:0,left:0,width:window.innerWidth,height:window.innerHeight},e("onMouseDown",u.DOWN,function(e,t){i._mousePressed=!0,i.handleTouchesBegin([i.getTouchByXY(e.x,e.y,o)])}),e("onMouseUp",u.UP,function(e,t){i._mousePressed=!1,i.handleTouchesEnd([i.getTouchByXY(e.x,e.y,o)])}),e("onMouseMove",u.MOVE,function(e,t){i.handleTouchesMove([i.getTouchByXY(e.x,e.y,o)]),i._mousePressed||t.setButton(null)}),e("onWheel",u.SCROLL,function(e,t){t.setScrollData(0,-e.deltaY)}),this._isRegisterEvent=!0);function e(e,n,r){wx[e](function(e){var t=i.getMouseEvent(e,o,n);t.setButton(e.button||0),r(e,t),a.dispatchEvent(t)})}})},{}],55:[function(e,t,n){"use strict";var i=wx.getFileSystemManager?wx.getFileSystemManager():null;function a(){return i?null:(console.warn("can not get the file system!"),new Error("file system does not exist!"))}function r(e,t){var n=a();if(n)return n;i.unlink({filePath:e,success:function(){cc.log("Removed local file "+e+" successfully!"),t&&t(null)},fail:function(e){console.warn(e.errMsg),t&&t(new Error(e.errMsg))}})}function o(e,t,n){var r=a();if(r)return r;i.readFile({filePath:e,encoding:t,success:n?function(e){n(null,e.data)}:void 0,fail:function(e){console.warn(e.errMsg),n&&n(new Error(e.errMsg),null)}})}window.fsUtils=t.exports={fs:i,getUserDataPath:function(){return wx.env.USER_DATA_PATH},checkFsValid:a,readDir:function(e,t){var n=a();if(n)return n;i.readdir({dirPath:e,success:t?function(e){t(null,e.files)}:void 0,fail:t?function(e){t(new Error(e.errMsg),null)}:void 0})},exists:function(e,t){var n=a();if(n)return n;i.access({path:e,success:t?function(){t(!0)}:void 0,fail:t?function(){t(!1)}:void 0})},copyFile:function(e,t,n){var r=a();if(r)return r;i.copyFile({srcPath:e,destPath:t,success:function(){cc.log("copy file finished:"+t),n&&n(null)},fail:function(e){cc.log("copy file failed:"+e.errMsg),n&&n(new Error(e.errMsg))}})},downloadFile:function(t,e,n){wx.downloadFile({url:t,filePath:e,success:function(e){200===e.statusCode?n&&n(null,e.tempFilePath||e.filePath):(e.filePath&&r(e.filePath),console.warn("Download file failed: "+t),n&&n(new Error(e.errMsg),null))},fail:function(e){console.warn(e.errMsg),n&&n(new Error(e.errMsg),null)}})},readText:function(e,t){return o(e,"utf8",t)},readArrayBuffer:function(e,t){return o(e,"",t)},saveFile:function(e,t,n){wx.saveFile({tempFilePath:e,filePath:t,success:function(e){cc.log("save file finished:"+t),n&&n(null,e.savedFilePath)},fail:function(e){cc.log("save file failed:"+e.errMsg),n&&n(new Error(e.errMsg),null)}})},writeFile:function(e,t,n,r){var o=a();if(o)return o;i.writeFile({filePath:e,encoding:n,data:t,success:r?function(){r(null)}:void 0,fail:function(e){console.warn(e.errMsg),r&&r(new Error(e.errMsg))}})},deleteFile:r,writeFileSync:function(e,t,n){var r=a();if(r)return r;try{return i.writeFileSync(e,t,n),null}catch(e){return console.warn(e.message),new Error(e.message)}},readJsonSync:function(e){var t=a();if(t)return t;try{var n=i.readFileSync(e,"utf8");return JSON.parse(n)}catch(e){return console.warn(e.message),new Error(e.message)}},makeDirSync:function(e,t){var n=a();if(n)return n;try{return i.mkdirSync(e,t),null}catch(e){return console.warn(e.message),new Error(e.message)}}}},{}],56:[function(e,t,n){"use strict";var r=window.__globalAdapter,o=wx.getSystemInfoSync(),i=r.adaptSys;Object.assign(r,{adaptSys:function(e){if(i.call(this,e),"windows"===o.platform)e.isMobile=!1,e.os=e.OS_WINDOWS;else if("devtools"===o.platform){var t=o.system.toLowerCase();-1<t.indexOf("android")?e.os=e.OS_ANDROID:-1<t.indexOf("ios")&&(e.os=e.OS_IOS)}wx.getOpenDataContext?(e.platform=e.WECHAT_GAME,e.browserType=e.BROWSER_TYPE_WECHAT_GAME):(e.platform=e.WECHAT_GAME_SUB,e.browserType=e.BROWSER_TYPE_WECHAT_GAME_SUB),e.glExtension=function(e){return"OES_texture_float"!==e&&!!cc.renderer.device.ext(e)}}})},{}],57:[function(e,t,n){"use strict";var r=e("../../../common/utils");if(window.__globalAdapter){var o=window.__globalAdapter;r.cloneMethod(o,wx,"getSystemInfoSync"),r.cloneMethod(o,wx,"onTouchStart"),r.cloneMethod(o,wx,"onTouchMove"),r.cloneMethod(o,wx,"onTouchEnd"),r.cloneMethod(o,wx,"onTouchCancel"),r.cloneMethod(o,wx,"createInnerAudioContext"),r.cloneMethod(o,wx,"createVideo"),r.cloneMethod(o,wx,"setPreferredFramesPerSecond"),r.cloneMethod(o,wx,"showKeyboard"),r.cloneMethod(o,wx,"hideKeyboard"),r.cloneMethod(o,wx,"updateKeyboard"),r.cloneMethod(o,wx,"onKeyboardInput"),r.cloneMethod(o,wx,"onKeyboardConfirm"),r.cloneMethod(o,wx,"onKeyboardComplete"),r.cloneMethod(o,wx,"offKeyboardInput"),r.cloneMethod(o,wx,"offKeyboardConfirm"),r.cloneMethod(o,wx,"offKeyboardComplete"),r.cloneMethod(o,wx,"getOpenDataContext"),r.cloneMethod(o,wx,"onMessage"),o.isSubContext=void 0===o.getOpenDataContext,r.cloneMethod(o,wx,"loadSubpackage"),r.cloneMethod(o,wx,"getSharedCanvas"),r.cloneMethod(o,wx,"loadFont"),r.cloneMethod(o,wx,"onShow"),r.cloneMethod(o,wx,"onHide"),r.cloneMethod(o,wx,"onError"),r.cloneMethod(o,wx,"offError");var a=!1,c=1,i=wx.getSystemInfoSync(),u=i.windowWidth,s=i.windowHeight<u;wx.onDeviceOrientationChange&&wx.onDeviceOrientationChange(function(e){"landscape"===e.value?c=1:"landscapeReverse"===e.value&&(c=-1)}),Object.assign(o,{startAccelerometer:function(i){a?wx.startAccelerometer&&wx.startAccelerometer({fail:function(e){console.error("start accelerometer failed",e)}}):(a=!0,wx.onAccelerometerChange&&wx.onAccelerometerChange(function(e){var t={},n=e.x,r=e.y;if(s){var o=n;n=-r,r=o}t.x=n*c,t.y=r*c,t.z=e.z,i&&i(t)}))},stopAccelerometer:function(){wx.stopAccelerometer&&wx.stopAccelerometer({fail:function(e){console.error("stop accelerometer failed",e)}})}})}},{"../../../common/utils":17}]},{},[22]);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。