@famibee/skynovel 1.25.7 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/codeql-analysis.yml +0 -5
- package/CHANGELOG.md +46 -0
- package/app.js +192 -120
- package/appMain.js +31 -16
- package/core/lib/appMain.d.ts +1 -1
- package/core/lib/appMain.d.ts.map +1 -1
- package/core/lib/preload.d.ts +1 -1
- package/core/lib/preload.d.ts.map +1 -1
- package/core/lib/preload.js +1 -1
- package/core/lib/sn/CmnInterface.d.ts +3 -2
- package/core/lib/sn/CmnInterface.d.ts.map +1 -1
- package/core/lib/sn/CmnTween.d.ts +1 -1
- package/core/lib/sn/CmnTween.d.ts.map +1 -1
- package/core/lib/sn/DebugMng.d.ts +2 -1
- package/core/lib/sn/DebugMng.d.ts.map +1 -1
- package/core/lib/sn/DesignCast.d.ts +2 -2
- package/core/lib/sn/DesignCast.d.ts.map +1 -1
- package/core/lib/sn/EventMng.d.ts.map +1 -1
- package/core/lib/sn/FocusMng.d.ts +1 -1
- package/core/lib/sn/FocusMng.d.ts.map +1 -1
- package/core/lib/sn/FrameMng.d.ts.map +1 -1
- package/core/lib/sn/Grammar.d.ts +1 -1
- package/core/lib/sn/Grammar.d.ts.map +1 -1
- package/core/lib/sn/GrpLayer.d.ts +6 -3
- package/core/lib/sn/GrpLayer.d.ts.map +1 -1
- package/core/lib/sn/Layer.d.ts +3 -0
- package/core/lib/sn/Layer.d.ts.map +1 -1
- package/core/lib/sn/LayerMng.d.ts.map +1 -1
- package/core/lib/sn/SoundMng.d.ts.map +1 -1
- package/core/lib/sn/SysApp.d.ts.map +1 -1
- package/core/lib/sn/SysBase.d.ts +1 -1
- package/core/lib/sn/TxtStage.d.ts +1 -1
- package/core/lib/sn/TxtStage.d.ts.map +1 -1
- package/core/lib/sn/Variable.d.ts.map +1 -1
- package/package.json +7 -7
- package/web.js +182 -107
package/web.js
CHANGED
|
@@ -35049,7 +35049,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35049
35049
|
/* harmony export */ "Sound": () => (/* binding */ A),
|
|
35050
35050
|
/* harmony export */ "SoundLibrary": () => (/* binding */ E),
|
|
35051
35051
|
/* harmony export */ "SoundLoader": () => (/* binding */ _),
|
|
35052
|
-
/* harmony export */ "SoundSprite": () => (/* binding */
|
|
35052
|
+
/* harmony export */ "SoundSprite": () => (/* binding */ b),
|
|
35053
35053
|
/* harmony export */ "filters": () => (/* binding */ k),
|
|
35054
35054
|
/* harmony export */ "htmlaudio": () => (/* binding */ L),
|
|
35055
35055
|
/* harmony export */ "sound": () => (/* binding */ I),
|
|
@@ -35061,14 +35061,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35061
35061
|
/* harmony import */ var _pixi_ticker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/ticker */ "./node_modules/@pixi/ticker/dist/esm/ticker.js");
|
|
35062
35062
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
35063
35063
|
/*!
|
|
35064
|
-
* @pixi/sound - v4.0
|
|
35064
|
+
* @pixi/sound - v4.2.0
|
|
35065
35065
|
* https://github.com/pixijs/pixi-sound
|
|
35066
|
-
* Compiled Wed,
|
|
35066
|
+
* Compiled Wed, 05 Jan 2022 14:56:00 UTC
|
|
35067
35067
|
*
|
|
35068
35068
|
* @pixi/sound is licensed under the MIT license.
|
|
35069
35069
|
* http://www.opensource.org/licenses/mit-license
|
|
35070
35070
|
*/
|
|
35071
|
-
var r;function s(){return r}var u=function(t,e){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=function(){return(c=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},p=["mp3","ogg","oga","opus","mpeg","wav","m4a","aiff","wma","mid","caf"],h={};function l(t){var e=c({m4a:"audio/mp4",oga:"audio/ogg",opus:'audio/ogg; codecs="opus"',caf:'audio/x-caf; codecs="opus"'},t||{}),n=document.createElement("audio"),o={},i=/^no$/;p.forEach((function(t){var r=n.canPlayType("audio/"+t).replace(i,""),s=e[t]?n.canPlayType(e[t]).replace(i,""):"";o[t]=!!r||!!s})),Object.assign(h,o)}l();var f=/\.(\{([^\}]+)\})(\?.*)?$/;function d(t){var e=f,n="string"==typeof t?t:t.url;if(!e.test(n))return n;for(var o=e.exec(n),i=o[2].split(","),r=i[i.length-1],s=0,u=i.length;s<u;s++){var a=i[s];if(h[a]){r=a;break}}var c=n.replace(o[1],r);if("string"!=typeof t){var p=t;p.extension=r,p.url=c}return c}var _=function(){function e(){}return e.add=function(){e.setLegacy(s().useLegacy)},e.setLegacy=function(e){var n=p;e?n.forEach((function(e){_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionXhrType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.XHR_RESPONSE_TYPE.DEFAULT),_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionLoadType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.LOAD_TYPE.AUDIO)})):n.forEach((function(e){_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionXhrType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.XHR_RESPONSE_TYPE.BUFFER),_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionLoadType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.LOAD_TYPE.XHR)}))},e.pre=function(t,e){d(t),e()},e.use=function(t,e){t.data&&p.indexOf(t.extension)>-1?t.sound=s().add(t.name,{loaded:e,preload:!0,url:t.url,source:t.data}):e()},e}(),y=0,m=function(t){function e(e){var n=t.call(this)||this;return n.id=y++,n.init(e),n}return a(e,t),e.prototype.set=function(t,e){if(void 0===this[t])throw new Error("Property with name "+t+" does not exist.");switch(t){case"speed":this.speed=e;break;case"volume":this.volume=e;break;case"paused":this.paused=e;break;case"loop":this.loop=e;break;case"muted":this.muted=e}return this},Object.defineProperty(e.prototype,"progress",{get:function(){return this._source.currentTime/this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),e.prototype._onPlay=function(){this._playing=!0},e.prototype._onPause=function(){this._playing=!1},e.prototype.init=function(t){this._playing=!1,this._duration=t.source.duration;var e=this._source=t.source.cloneNode(!1);e.src=t.parent.url,e.onplay=this._onPlay.bind(this),e.onpause=this._onPause.bind(this),t.context.on("refresh",this.refresh,this),t.context.on("refreshPaused",this.refreshPaused,this),this._media=t},e.prototype._internalStop=function(){this._source&&this._playing&&(this._source.onended=null,this._source.pause())},e.prototype.stop=function(){this._internalStop(),this._source&&this.emit("stop")},Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){var t=this._media.context,e=this._media.parent;this._source.loop=this._loop||e.loop;var n=t.volume*(t.muted?0:1),o=e.volume*(e.muted?0:1),i=this._volume*(this._muted?0:1);this._source.volume=i*n*o,this._source.playbackRate=this._speed*t.speed*e.speed},e.prototype.refreshPaused=function(){var t=this._media.context,e=this._media.parent,n=this._paused||e.paused||t.paused;n!==this._pausedReal&&(this._pausedReal=n,n?(this._internalStop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._source.currentTime,end:this._end,volume:this._volume,speed:this._speed,loop:this._loop})),this.emit("pause",n))},e.prototype.play=function(t){var n=this,i=t.start,r=t.end,s=t.speed,u=t.loop,a=t.volume,c=t.muted;this._speed=s,this._volume=a,this._loop=!!u,this._muted=c,this.refresh(),this.loop&&null!==r&&(this.loop=!1),this._start=i,this._end=r||this._duration,this._start=Math.max(0,this._start-e.PADDING),this._end=Math.min(this._end+e.PADDING,this._duration),this._source.onloadedmetadata=function(){n._source&&(n._source.currentTime=i,n._source.onloadedmetadata=null,n.emit("progress",i,n._duration),_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.add(n._onUpdate,n))},this._source.onended=this._onComplete.bind(this),this._source.play(),this.emit("start")},e.prototype._onUpdate=function(){this.emit("progress",this.progress,this._duration),this._source.currentTime>=this._end&&!this._source.loop&&this._onComplete()},e.prototype._onComplete=function(){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._onUpdate,this),this._internalStop(),this.emit("progress",1,this._duration),this.emit("end",this)},e.prototype.destroy=function(){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._onUpdate,this),this.removeAllListeners();var t=this._source;t&&(t.onended=null,t.onplay=null,t.onpause=null,this._internalStop()),this._source=null,this._speed=1,this._volume=1,this._loop=!1,this._end=null,this._start=0,this._duration=0,this._playing=!1,this._pausedReal=!1,this._paused=!1,this._muted=!1,this._media&&(this._media.context.off("refresh",this.refresh,this),this._media.context.off("refreshPaused",this.refreshPaused,this),this._media=null)},e.prototype.toString=function(){return"[HTMLAudioInstance id="+this.id+"]"},e.PADDING=.1,e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(t){this.parent=t,this._source=t.options.source||new Audio,t.url&&(this._source.src=t.url)},e.prototype.create=function(){return new m(this)},Object.defineProperty(e.prototype,"isPlayable",{get:function(){return!!this._source&&4===this._source.readyState},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._source.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.parent.context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.removeAllListeners(),this.parent=null,this._source&&(this._source.src="",this._source.load(),this._source=null)},Object.defineProperty(e.prototype,"source",{get:function(){return this._source},enumerable:!1,configurable:!0}),e.prototype.load=function(t){var e=this._source,n=this.parent;if(4!==e.readyState)if(n.url){e.src=n.url;var o=function(){s(),n.isLoaded=!0;var e=n.autoPlayStart();t&&t(null,n,e)},i=function(){s(),t&&t(new Error("Sound loading has been aborted"))},r=function(){s();var n="Failed to load audio element (code: "+e.error.code+")";t&&t(new Error(n))},s=function(){e.removeEventListener("canplaythrough",o),e.removeEventListener("load",o),e.removeEventListener("abort",i),e.removeEventListener("error",r)};e.addEventListener("canplaythrough",o,!1),e.addEventListener("load",o,!1),e.addEventListener("abort",i,!1),e.addEventListener("error",r,!1),e.load()}else t(new Error("sound.url or sound.source must be set"));else{n.isLoaded=!0;var u=n.autoPlayStart();t&&setTimeout((function(){t(null,n,u)}),0)}},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),g=function(){function t(t,e){this.parent=t,Object.assign(this,e),this.duration=this.end-this.start}return t.prototype.play=function(t){return this.parent.play({complete:t,speed:this.speed||this.parent.speed,end:this.end,start:this.start,loop:this.loop})},t.prototype.destroy=function(){this.parent=null},t}(),v=function(){function t(){}return t.setParamValue=function(t,e){if(t.setValueAtTime){var n=s().context;t.setValueAtTime(e,n.audioContext.currentTime)}else t.value=e;return e},t}(),P=0,x=function(t){function e(e){var n=t.call(this)||this;return n.id=P++,n._media=null,n._paused=!1,n._muted=!1,n._elapsed=0,n.init(e),n}return a(e,t),e.prototype.set=function(t,e){if(void 0===this[t])throw new Error("Property with name "+t+" does not exist.");switch(t){case"speed":this.speed=e;break;case"volume":this.volume=e;break;case"muted":this.muted=e;break;case"loop":this.loop=e;break;case"paused":this.paused=e}return this},e.prototype.stop=function(){this._source&&(this._internalStop(),this.emit("stop"))},Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh(),this._update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){if(this._source){var t=this._media.context,e=this._media.parent;this._source.loop=this._loop||e.loop;var n=t.volume*(t.muted?0:1),o=e.volume*(e.muted?0:1),i=this._volume*(this._muted?0:1);v.setParamValue(this._gain.gain,i*o*n),v.setParamValue(this._source.playbackRate,this._speed*e.speed*t.speed)}},e.prototype.refreshPaused=function(){var t=this._media.context,e=this._media.parent,n=this._paused||e.paused||t.paused;n!==this._pausedReal&&(this._pausedReal=n,n?(this._internalStop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._elapsed%this._duration,end:this._end,speed:this._speed,loop:this._loop,volume:this._volume})),this.emit("pause",n))},e.prototype.play=function(t){var e=t.start,n=t.end,o=t.speed,i=t.loop,r=t.volume,s=t.muted;this._paused=!1;var u=this._media.nodes.cloneBufferSource(),a=u.source,c=u.gain;this._source=a,this._gain=c,this._speed=o,this._volume=r,this._loop=!!i,this._muted=s,this.refresh();var p=this._source.buffer.duration;this._duration=p,this._end=n,this._lastUpdate=this._now(),this._elapsed=e,this._source.onended=this._onComplete.bind(this),this._loop?(this._source.loopEnd=n,this._source.loopStart=e,this._source.start(0,e)):n?this._source.start(0,e,n-e):this._source.start(0,e),this.emit("start"),this._update(!0),this.enableTicker(!0)},e.prototype.enableTicker=function(t){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._updateListener,this),t&&_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.add(this._updateListener,this)},Object.defineProperty(e.prototype,"progress",{get:function(){return this._progress},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.removeAllListeners(),this._internalStop(),this._gain&&(this._gain.disconnect(),this._gain=null),this._media&&(this._media.context.events.off("refresh",this.refresh,this),this._media.context.events.off("refreshPaused",this.refreshPaused,this),this._media=null),this._end=null,this._speed=1,this._volume=1,this._loop=!1,this._elapsed=0,this._duration=0,this._paused=!1,this._muted=!1,this._pausedReal=!1},e.prototype.toString=function(){return"[WebAudioInstance id="+this.id+"]"},e.prototype._now=function(){return this._media.context.audioContext.currentTime},e.prototype._updateListener=function(){this._update()},e.prototype._update=function(t){if(void 0===t&&(t=!1),this._source){var e=this._now(),n=e-this._lastUpdate;if(n>0||t){var o=this._source.playbackRate.value;this._elapsed+=n*o,this._lastUpdate=e;var i=this._duration,r=void 0;if(this._source.loopStart){var s=this._source.loopEnd-this._source.loopStart;r=(this._source.loopStart+this._elapsed%s)/i}else r=this._elapsed%i/i;this._progress=r,this.emit("progress",this._progress,i)}}},e.prototype.init=function(t){this._media=t,t.context.events.on("refresh",this.refresh,this),t.context.events.on("refreshPaused",this.refreshPaused,this)},e.prototype._internalStop=function(){if(this._source){this.enableTicker(!1),this._source.onended=null,this._source.stop(0),this._source.disconnect();try{this._source.buffer=null}catch(t){}this._source=null}},e.prototype._onComplete=function(){if(this._source){this.enableTicker(!1),this._source.onended=null,this._source.disconnect();try{this._source.buffer=null}catch(t){}}this._source=null,this._progress=1,this.emit("progress",1,this._duration),this.emit("end",this)},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),O=function(){function t(t,e){this._output=e,this._input=t}return Object.defineProperty(t.prototype,"destination",{get:function(){return this._input},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this._filters},set:function(t){var e=this;if(this._filters&&(this._filters.forEach((function(t){t&&t.disconnect()})),this._filters=null,this._input.connect(this._output)),t&&t.length){this._filters=t.slice(0),this._input.disconnect();var n=null;t.forEach((function(t){null===n?e._input.connect(t.destination):n.connect(t.destination),n=t})),n.connect(this._output)}},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.filters=null,this._input=null,this._output=null},t}(),j=function(t){function e(e){var n=this,o=e.audioContext,i=o.createBufferSource(),r=o.createGain(),s=o.createAnalyser();return i.connect(s),s.connect(r),r.connect(e.destination),(n=t.call(this,s,r)||this).context=e,n.bufferSource=i,n.gain=r,n.analyser=s,n}return a(e,t),Object.defineProperty(e.prototype,"script",{get:function(){return this._script||(this._script=this.context.audioContext.createScriptProcessor(e.BUFFER_SIZE),this._script.connect(this.context.destination)),this._script},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.bufferSource.disconnect(),this._script&&this._script.disconnect(),this.gain.disconnect(),this.analyser.disconnect(),this.bufferSource=null,this._script=null,this.gain=null,this.analyser=null,this.context=null},e.prototype.cloneBufferSource=function(){var t=this.bufferSource,e=this.context.audioContext.createBufferSource();e.buffer=t.buffer,v.setParamValue(e.playbackRate,t.playbackRate.value),e.loop=t.loop;var n=this.context.audioContext.createGain();return e.connect(n),n.connect(this.destination),{source:e,gain:n}},Object.defineProperty(e.prototype,"bufferSize",{get:function(){return this.script.bufferSize},enumerable:!1,configurable:!0}),e.BUFFER_SIZE=0,e}(O),w=function(){function t(){}return t.prototype.init=function(t){this.parent=t,this._nodes=new j(this.context),this._source=this._nodes.bufferSource,this.source=t.options.source},t.prototype.destroy=function(){this.parent=null,this._nodes.destroy(),this._nodes=null;try{this._source.buffer=null}catch(t){}this._source=null,this.source=null},t.prototype.create=function(){return new x(this)},Object.defineProperty(t.prototype,"context",{get:function(){return this.parent.context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlayable",{get:function(){return!!this._source&&!!this._source.buffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this._nodes.filters},set:function(t){this._nodes.filters=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._source.buffer.duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffer",{get:function(){return this._source.buffer},set:function(t){this._source.buffer=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nodes",{get:function(){return this._nodes},enumerable:!1,configurable:!0}),t.prototype.load=function(t){this.source?this._decode(this.source,t):this.parent.url?this._loadUrl(t):t&&t(new Error("sound.url or sound.source must be set"))},t.prototype._loadUrl=function(t){var e=this,n=new XMLHttpRequest,o=this.parent.url;n.open("GET",o,!0),n.responseType="arraybuffer",n.onload=function(){e.source=n.response,e._decode(n.response,t)},n.send()},t.prototype._decode=function(t,e){var n=this;this.parent.context.decode(t,(function(t,o){if(t)e&&e(t);else{n.parent.isLoaded=!0,n.buffer=o;var i=n.parent.autoPlayStart();e&&e(null,n.parent,i)}}))},t}(),A=function(){function t(t,e){this.media=t,this.options=e,this._instances=[],this._sprites={},this.media.init(this);var n=e.complete;this._autoPlayOptions=n?{complete:n}:null,this.isLoaded=!1,this.isPlaying=!1,this.autoPlay=e.autoPlay,this.singleInstance=e.singleInstance,this.preload=e.preload||this.autoPlay,this.url=e.url,this.speed=e.speed,this.volume=e.volume,this.loop=e.loop,e.sprites&&this.addSprites(e.sprites),this.preload&&this._preload(e.loaded)}return t.from=function(e){var n={};return"string"==typeof e?n.url=e:e instanceof ArrayBuffer||e instanceof HTMLAudioElement?n.source=e:n=e,(n=c({autoPlay:!1,singleInstance:!1,url:null,source:null,preload:!1,volume:1,speed:1,complete:null,loaded:null,loop:!1},n)).url&&(n.url=d(n.url)),Object.freeze(n),new t(s().useLegacy?new b:new w,n)},Object.defineProperty(t.prototype,"context",{get:function(){return s().context},enumerable:!1,configurable:!0}),t.prototype.pause=function(){return this.isPlaying=!1,this.paused=!0,this},t.prototype.resume=function(){return this.isPlaying=this._instances.length>0,this.paused=!1,this},Object.defineProperty(t.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this.media.filters},set:function(t){this.media.filters=t},enumerable:!1,configurable:!0}),t.prototype.addSprites=function(t,e){if("object"==typeof t){var n={};for(var o in t)n[o]=this.addSprites(o,t[o]);return n}var i=new g(this,e);return this._sprites[t]=i,i},t.prototype.destroy=function(){this._removeInstances(),this.removeSprites(),this.media.destroy(),this.media=null,this._sprites=null,this._instances=null},t.prototype.removeSprites=function(t){if(t){var e=this._sprites[t];void 0!==e&&(e.destroy(),delete this._sprites[t])}else for(var n in this._sprites)this.removeSprites(n);return this},Object.defineProperty(t.prototype,"isPlayable",{get:function(){return this.isLoaded&&this.media&&this.media.isPlayable},enumerable:!1,configurable:!0}),t.prototype.stop=function(){if(!this.isPlayable)return this.autoPlay=!1,this._autoPlayOptions=null,this;this.isPlaying=!1;for(var t=this._instances.length-1;t>=0;t--)this._instances[t].stop();return this},t.prototype.play=function(t,e){var n,o=this;"string"==typeof t?n={sprite:r=t,loop:this.loop,complete:e}:"function"==typeof t?(n={}).complete=t:n=t;if((n=c({complete:null,loaded:null,sprite:null,end:null,start:0,volume:1,speed:1,muted:!1,loop:!1},n||{})).sprite){var i=n.sprite,r=this._sprites[i];n.start=r.start+(n.start||0),n.end=r.end,n.speed=r.speed||1,n.loop=r.loop||n.loop,delete n.sprite}if(n.offset&&(n.start=n.offset),!this.isLoaded)return new Promise((function(t,e){o.autoPlay=!0,o._autoPlayOptions=n,o._preload((function(o,i,r){o?e(o):(n.loaded&&n.loaded(o,i,r),t(r))}))}));this.singleInstance&&this._removeInstances();var s=this._createInstance();return this._instances.push(s),this.isPlaying=!0,s.once("end",(function(){n.complete&&n.complete(o),o._onComplete(s)})),s.once("stop",(function(){o._onComplete(s)})),s.play(n),s},t.prototype.refresh=function(){for(var t=this._instances.length,e=0;e<t;e++)this._instances[e].refresh()},t.prototype.refreshPaused=function(){for(var t=this._instances.length,e=0;e<t;e++)this._instances[e].refreshPaused()},Object.defineProperty(t.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),t.prototype._preload=function(t){this.media.load(t)},Object.defineProperty(t.prototype,"instances",{get:function(){return this._instances},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sprites",{get:function(){return this._sprites},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this.media.duration},enumerable:!1,configurable:!0}),t.prototype.autoPlayStart=function(){var t;return this.autoPlay&&(t=this.play(this._autoPlayOptions)),t},t.prototype._removeInstances=function(){for(var t=this._instances.length-1;t>=0;t--)this._poolInstance(this._instances[t]);this._instances.length=0},t.prototype._onComplete=function(t){if(this._instances){var e=this._instances.indexOf(t);e>-1&&this._instances.splice(e,1),this.isPlaying=this._instances.length>0}this._poolInstance(t)},t.prototype._createInstance=function(){if(t._pool.length>0){var e=t._pool.pop();return e.init(this.media),e}return this.media.create()},t.prototype._poolInstance=function(e){e.destroy(),t._pool.indexOf(e)<0&&t._pool.push(e)},t._pool=[],t}(),F=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.speed=1,e.muted=!1,e.volume=1,e.paused=!1,e}return a(e,t),e.prototype.refresh=function(){this.emit("refresh")},e.prototype.refreshPaused=function(){this.emit("refreshPaused")},Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"audioContext",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.toggleMute=function(){return this.muted=!this.muted,this.refresh(),this.muted},e.prototype.togglePause=function(){return this.paused=!this.paused,this.refreshPaused(),this.paused},e.prototype.destroy=function(){this.removeAllListeners()},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),C=function(t){function e(){var o=this,i=window,r=new e.AudioContext,s=r.createDynamicsCompressor(),u=r.createAnalyser();return u.connect(s),s.connect(r.destination),(o=t.call(this,u,s)||this)._ctx=r,o._offlineCtx=new e.OfflineAudioContext(1,2,i.OfflineAudioContext?r.sampleRate:44100),o._unlocked=!1,o.compressor=s,o.analyser=u,o.events=new _pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter,o.volume=1,o.speed=1,o.muted=!1,o.paused=!1,"running"!==r.state&&(o._unlock(),o._unlock=o._unlock.bind(o),document.addEventListener("mousedown",o._unlock,!0),document.addEventListener("touchstart",o._unlock,!0),document.addEventListener("touchend",o._unlock,!0)),o}return a(e,t),e.prototype._unlock=function(){this._unlocked||(this.playEmptySound(),"running"===this._ctx.state&&(document.removeEventListener("mousedown",this._unlock,!0),document.removeEventListener("touchend",this._unlock,!0),document.removeEventListener("touchstart",this._unlock,!0),this._unlocked=!0))},e.prototype.playEmptySound=function(){var t=this._ctx.createBufferSource();t.buffer=this._ctx.createBuffer(1,1,22050),t.connect(this._ctx.destination),t.start(0,0,0),"suspended"===t.context.state&&t.context.resume()},Object.defineProperty(e,"AudioContext",{get:function(){var t=window;return t.AudioContext||t.webkitAudioContext||null},enumerable:!1,configurable:!0}),Object.defineProperty(e,"OfflineAudioContext",{get:function(){var t=window;return t.OfflineAudioContext||t.webkitOfflineAudioContext||null},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this);var e=this._ctx;void 0!==e.close&&e.close(),this.events.removeAllListeners(),this.analyser.disconnect(),this.compressor.disconnect(),this.analyser=null,this.compressor=null,this.events=null,this._offlineCtx=null,this._ctx=null},Object.defineProperty(e.prototype,"audioContext",{get:function(){return this._ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offlineContext",{get:function(){return this._offlineCtx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){t&&"running"===this._ctx.state?this._ctx.suspend():t||"suspended"!==this._ctx.state||this._ctx.resume(),this._paused=t},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){this.events.emit("refresh")},e.prototype.refreshPaused=function(){this.events.emit("refreshPaused")},e.prototype.toggleMute=function(){return this.muted=!this.muted,this.refresh(),this.muted},e.prototype.togglePause=function(){return this.paused=!this.paused,this.refreshPaused(),this._paused},e.prototype.decode=function(t,e){var n=function(t){e(new Error(t.message||"Unable to decode file"))},o=this._offlineCtx.decodeAudioData(t,(function(t){e(null,t)}),n);o&&o.catch(n)},e}(O),E=function(){function t(){this.init()}return t.prototype.init=function(){return this.supported&&(this._webAudioContext=new C),this._htmlAudioContext=new F,this._sounds={},this.useLegacy=!this.supported,this},Object.defineProperty(t.prototype,"context",{get:function(){return this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filtersAll",{get:function(){return this.useLegacy?[]:this._context.filters},set:function(t){this.useLegacy||(this._context.filters=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"supported",{get:function(){return null!==C.AudioContext},enumerable:!1,configurable:!0}),t.prototype.add=function(t,e){if("object"==typeof t){var n={};for(var o in t){var i=this._getOptions(t[o],e);n[o]=this.add(o,i)}return n}if(e instanceof A)return this._sounds[t]=e,e;var r=this._getOptions(e),s=A.from(r);return this._sounds[t]=s,s},t.prototype._getOptions=function(t,e){var n;return n="string"==typeof t?{url:t}:t instanceof ArrayBuffer||t instanceof HTMLAudioElement?{source:t}:t,n=c(c({},n),e||{})},Object.defineProperty(t.prototype,"useLegacy",{get:function(){return this._useLegacy},set:function(t){_.setLegacy(t),this._useLegacy=t,this._context=!t&&this.supported?this._webAudioContext:this._htmlAudioContext},enumerable:!1,configurable:!0}),t.prototype.remove=function(t){return this.exists(t,!0),this._sounds[t].destroy(),delete this._sounds[t],this},Object.defineProperty(t.prototype,"volumeAll",{get:function(){return this._context.volume},set:function(t){this._context.volume=t,this._context.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speedAll",{get:function(){return this._context.speed},set:function(t){this._context.speed=t,this._context.refresh()},enumerable:!1,configurable:!0}),t.prototype.togglePauseAll=function(){return this._context.togglePause()},t.prototype.pauseAll=function(){return this._context.paused=!0,this._context.refreshPaused(),this},t.prototype.resumeAll=function(){return this._context.paused=!1,this._context.refreshPaused(),this},t.prototype.toggleMuteAll=function(){return this._context.toggleMute()},t.prototype.muteAll=function(){return this._context.muted=!0,this._context.refresh(),this},t.prototype.unmuteAll=function(){return this._context.muted=!1,this._context.refresh(),this},t.prototype.removeAll=function(){for(var t in this._sounds)this._sounds[t].destroy(),delete this._sounds[t];return this},t.prototype.stopAll=function(){for(var t in this._sounds)this._sounds[t].stop();return this},t.prototype.exists=function(t,e){return void 0===e&&(e=!1),!!this._sounds[t]},t.prototype.find=function(t){return this.exists(t,!0),this._sounds[t]},t.prototype.play=function(t,e){return this.find(t).play(e)},t.prototype.stop=function(t){return this.find(t).stop()},t.prototype.pause=function(t){return this.find(t).pause()},t.prototype.resume=function(t){return this.find(t).resume()},t.prototype.volume=function(t,e){var n=this.find(t);return void 0!==e&&(n.volume=e),n.volume},t.prototype.speed=function(t,e){var n=this.find(t);return void 0!==e&&(n.speed=e),n.speed},t.prototype.duration=function(t){return this.find(t).duration},t.prototype.close=function(){return this.removeAll(),this._sounds=null,this._webAudioContext&&(this._webAudioContext.destroy(),this._webAudioContext=null),this._htmlAudioContext&&(this._htmlAudioContext.destroy(),this._htmlAudioContext=null),this._context=null,this},t}(),L={HTMLAudioContext:F,HTMLAudioMedia:b,HTMLAudioInstance:m},S=function(){function t(t,e){this.init(t,e)}return t.prototype.init=function(t,e){this.destination=t,this.source=e||t},t.prototype.connect=function(t){this.source.connect(t)},t.prototype.disconnect=function(){this.source.disconnect()},t.prototype.destroy=function(){this.disconnect(),this.destination=null,this.source=null},t}(),k={Filter:S,EqualizerFilter:function(t){function e(n,o,i,r,u,a,c,p,h,l){void 0===n&&(n=0),void 0===o&&(o=0),void 0===i&&(i=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===a&&(a=0),void 0===c&&(c=0),void 0===p&&(p=0),void 0===h&&(h=0),void 0===l&&(l=0);var f=this;if(!s().useLegacy){var d=[{f:e.F32,type:"lowshelf",gain:n},{f:e.F64,type:"peaking",gain:o},{f:e.F125,type:"peaking",gain:i},{f:e.F250,type:"peaking",gain:r},{f:e.F500,type:"peaking",gain:u},{f:e.F1K,type:"peaking",gain:a},{f:e.F2K,type:"peaking",gain:c},{f:e.F4K,type:"peaking",gain:p},{f:e.F8K,type:"peaking",gain:h},{f:e.F16K,type:"highshelf",gain:l}].map((function(t){var e=s().context.audioContext.createBiquadFilter();return e.type=t.type,v.setParamValue(e.Q,1),e.frequency.value=t.f,v.setParamValue(e.gain,t.gain),e}));(f=t.call(this,d[0],d[d.length-1])||this).bands=d,f.bandsMap={};for(var _=0;_<f.bands.length;_++){var y=f.bands[_];_>0&&f.bands[_-1].connect(y),f.bandsMap[y.frequency.value]=y}return f}f=t.call(this,null)||this}return a(e,t),e.prototype.setGain=function(t,e){if(void 0===e&&(e=0),!this.bandsMap[t])throw new Error("No band found for frequency "+t);v.setParamValue(this.bandsMap[t].gain,e)},e.prototype.getGain=function(t){if(!this.bandsMap[t])throw new Error("No band found for frequency "+t);return this.bandsMap[t].gain.value},Object.defineProperty(e.prototype,"f32",{get:function(){return this.getGain(e.F32)},set:function(t){this.setGain(e.F32,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f64",{get:function(){return this.getGain(e.F64)},set:function(t){this.setGain(e.F64,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f125",{get:function(){return this.getGain(e.F125)},set:function(t){this.setGain(e.F125,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f250",{get:function(){return this.getGain(e.F250)},set:function(t){this.setGain(e.F250,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f500",{get:function(){return this.getGain(e.F500)},set:function(t){this.setGain(e.F500,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f1k",{get:function(){return this.getGain(e.F1K)},set:function(t){this.setGain(e.F1K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f2k",{get:function(){return this.getGain(e.F2K)},set:function(t){this.setGain(e.F2K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f4k",{get:function(){return this.getGain(e.F4K)},set:function(t){this.setGain(e.F4K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f8k",{get:function(){return this.getGain(e.F8K)},set:function(t){this.setGain(e.F8K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f16k",{get:function(){return this.getGain(e.F16K)},set:function(t){this.setGain(e.F16K,t)},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.bands.forEach((function(t){v.setParamValue(t.gain,0)}))},e.prototype.destroy=function(){this.bands.forEach((function(t){t.disconnect()})),this.bands=null,this.bandsMap=null},e.F32=32,e.F64=64,e.F125=125,e.F250=250,e.F500=500,e.F1K=1e3,e.F2K=2e3,e.F4K=4e3,e.F8K=8e3,e.F16K=16e3,e}(S),DistortionFilter:function(t){function e(e){void 0===e&&(e=0);var n=this;if(!s().useLegacy){var o=s().context.audioContext.createWaveShaper();return(n=t.call(this,o)||this)._distortion=o,n.amount=e,n}n=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"amount",{get:function(){return this._amount},set:function(t){t*=1e3,this._amount=t;for(var e,n=44100,o=new Float32Array(n),i=Math.PI/180,r=0;r<n;++r)e=2*r/n-1,o[r]=(3+t)*e*20*i/(Math.PI+t*Math.abs(e));this._distortion.curve=o,this._distortion.oversample="4x"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this._distortion=null,t.prototype.destroy.call(this)},e}(S),StereoFilter:function(t){function e(e){void 0===e&&(e=0);var n=this;if(!s().useLegacy){var o,i,r,u=s().context.audioContext;return u.createStereoPanner?r=o=u.createStereoPanner():((i=u.createPanner()).panningModel="equalpower",r=i),(n=t.call(this,r)||this)._stereo=o,n._panner=i,n.pan=e,n}n=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"pan",{get:function(){return this._pan},set:function(t){this._pan=t,this._stereo?v.setParamValue(this._stereo.pan,t):this._panner.setPosition(t,0,1-Math.abs(t))},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this._stereo=null,this._panner=null},e}(S),ReverbFilter:function(t){function e(e,n,o){void 0===e&&(e=3),void 0===n&&(n=2),void 0===o&&(o=!1);var i=this;if(!s().useLegacy)return(i=t.call(this,null)||this)._seconds=i._clamp(e,1,50),i._decay=i._clamp(n,0,100),i._reverse=o,i._rebuild(),i;i=t.call(this,null)||this}return a(e,t),e.prototype._clamp=function(t,e,n){return Math.min(n,Math.max(e,t))},Object.defineProperty(e.prototype,"seconds",{get:function(){return this._seconds},set:function(t){this._seconds=this._clamp(t,1,50),this._rebuild()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"decay",{get:function(){return this._decay},set:function(t){this._decay=this._clamp(t,0,100),this._rebuild()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"reverse",{get:function(){return this._reverse},set:function(t){this._reverse=t,this._rebuild()},enumerable:!1,configurable:!0}),e.prototype._rebuild=function(){for(var t,e=s().context.audioContext,n=e.sampleRate,o=n*this._seconds,i=e.createBuffer(2,o,n),r=i.getChannelData(0),u=i.getChannelData(1),a=0;a<o;a++)t=this._reverse?o-a:a,r[a]=(2*Math.random()-1)*Math.pow(1-t/o,this._decay),u[a]=(2*Math.random()-1)*Math.pow(1-t/o,this._decay);var c=s().context.audioContext.createConvolver();c.buffer=i,this.init(c)},e}(S),MonoFilter:function(t){function e(){var e=this;if(!s().useLegacy){var n=s().context.audioContext,o=n.createChannelSplitter(),i=n.createChannelMerger();return i.connect(o),(e=t.call(this,i,o)||this)._merger=i,e}e=t.call(this,null)||this}return a(e,t),e.prototype.destroy=function(){this._merger.disconnect(),this._merger=null,t.prototype.destroy.call(this)},e}(S),TelephoneFilter:function(t){function e(){if(!s().useLegacy){var e=s().context.audioContext,n=e.createBiquadFilter(),o=e.createBiquadFilter(),i=e.createBiquadFilter(),r=e.createBiquadFilter();return n.type="lowpass",v.setParamValue(n.frequency,2e3),o.type="lowpass",v.setParamValue(o.frequency,2e3),i.type="highpass",v.setParamValue(i.frequency,500),r.type="highpass",v.setParamValue(r.frequency,500),n.connect(o),o.connect(i),i.connect(r),t.call(this,n,r)||this}t.call(this,null)}return a(e,t),e}(S)},M={WebAudioMedia:w,WebAudioInstance:x,WebAudioNodes:j,WebAudioContext:C,WebAudioUtils:v},T=0;var G={playOnce:function(t,e){var n="alias"+T++;return s().add(n,{url:t,preload:!0,autoPlay:!0,loaded:function(t){t&&(s().remove(n),e&&e(t))},complete:function(){s().remove(n),e&&e(null)}}),n},render:function(t,e){var n=document.createElement("canvas");e=c({width:512,height:128,fill:"black"},e||{}),n.width=e.width,n.height=e.height;var o=_pixi_core__WEBPACK_IMPORTED_MODULE_3__.BaseTexture.from(n);if(!(t.media instanceof w))return o;var r=t.media,s=n.getContext("2d");s.fillStyle=e.fill;for(var u=r.buffer.getChannelData(0),a=Math.ceil(u.length/e.width),p=e.height/2,h=0;h<e.width;h++){for(var l=1,f=-1,d=0;d<a;d++){var _=u[h*a+d];_<l&&(l=_),_>f&&(f=_)}s.fillRect(h,(1+l)*p,1,Math.max(1,(f-l)*p))}return o},resolveUrl:d,sineTone:function(t,e){void 0===t&&(t=200),void 0===e&&(e=1);var n=A.from({singleInstance:!0});if(!(n.media instanceof w))return n;for(var o=n.media,i=n.context.audioContext.createBuffer(1,48e3*e,48e3),r=i.getChannelData(0),s=0;s<r.length;s++){var u=t*(s/i.sampleRate)*Math.PI;r[s]=2*Math.sin(u)}return o.buffer=i,n.isLoaded=!0,n},supported:h,extensions:p,validateFormats:l},I=function(t){return r=t,t}(new E);_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.Loader.registerPlugin(_);
|
|
35071
|
+
var r;function s(){return r}var u=function(t,e){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=function(){return(c=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},l=["mp3","ogg","oga","opus","mpeg","wav","m4a","aiff","wma","mid","caf"],p={};function h(t){var e=c({m4a:"audio/mp4",oga:"audio/ogg",opus:'audio/ogg; codecs="opus"',caf:'audio/x-caf; codecs="opus"'},t||{}),n=document.createElement("audio"),o={},i=/^no$/;l.forEach((function(t){var r=n.canPlayType("audio/".concat(t)).replace(i,""),s=e[t]?n.canPlayType(e[t]).replace(i,""):"";o[t]=!!r||!!s})),Object.assign(p,o)}h();var f=/\.(\{([^\}]+)\})(\?.*)?$/;function d(t){var e=f,n="string"==typeof t?t:t.url;if(!e.test(n))return n;for(var o=e.exec(n),i=o[2].split(","),r=i[i.length-1],s=0,u=i.length;s<u;s++){var a=i[s];if(p[a]){r=a;break}}var c=n.replace(o[1],r);if("string"!=typeof t){var l=t;l.extension=r,l.url=c}return c}var _=function(){function e(){}return e.add=function(){e.setLegacy(s().useLegacy)},e.setLegacy=function(e){var n=l;e?n.forEach((function(e){_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionXhrType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.XHR_RESPONSE_TYPE.DEFAULT),_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionLoadType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.LOAD_TYPE.AUDIO)})):n.forEach((function(e){_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionXhrType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.XHR_RESPONSE_TYPE.BUFFER),_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionLoadType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.LOAD_TYPE.XHR)}))},e.pre=function(t,e){d(t),e()},e.use=function(t,e){t.data&&l.indexOf(t.extension)>-1?t.sound=s().add(t.name,{loaded:e,preload:!0,url:t.url,source:t.data}):e()},e}(),y=0,m=function(t){function e(e){var n=t.call(this)||this;return n.id=y++,n.init(e),n}return a(e,t),e.prototype.set=function(t,e){if(void 0===this[t])throw new Error("Property with name ".concat(t," does not exist."));switch(t){case"speed":this.speed=e;break;case"volume":this.volume=e;break;case"paused":this.paused=e;break;case"loop":this.loop=e;break;case"muted":this.muted=e}return this},Object.defineProperty(e.prototype,"progress",{get:function(){return this._source.currentTime/this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),e.prototype._onPlay=function(){this._playing=!0},e.prototype._onPause=function(){this._playing=!1},e.prototype.init=function(t){this._playing=!1,this._duration=t.source.duration;var e=this._source=t.source.cloneNode(!1);e.src=t.parent.url,e.onplay=this._onPlay.bind(this),e.onpause=this._onPause.bind(this),t.context.on("refresh",this.refresh,this),t.context.on("refreshPaused",this.refreshPaused,this),this._media=t},e.prototype._internalStop=function(){this._source&&this._playing&&(this._source.onended=null,this._source.pause())},e.prototype.stop=function(){this._internalStop(),this._source&&this.emit("stop")},Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){var t=this._media.context,e=this._media.parent;this._source.loop=this._loop||e.loop;var n=t.volume*(t.muted?0:1),o=e.volume*(e.muted?0:1),i=this._volume*(this._muted?0:1);this._source.volume=i*n*o,this._source.playbackRate=this._speed*t.speed*e.speed},e.prototype.refreshPaused=function(){var t=this._media.context,e=this._media.parent,n=this._paused||e.paused||t.paused;n!==this._pausedReal&&(this._pausedReal=n,n?(this._internalStop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._source.currentTime,end:this._end,volume:this._volume,speed:this._speed,loop:this._loop})),this.emit("pause",n))},e.prototype.play=function(t){var n=this,i=t.start,r=t.end,s=t.speed,u=t.loop,a=t.volume,c=t.muted;this._speed=s,this._volume=a,this._loop=!!u,this._muted=c,this.refresh(),this.loop&&null!==r&&(this.loop=!1),this._start=i,this._end=r||this._duration,this._start=Math.max(0,this._start-e.PADDING),this._end=Math.min(this._end+e.PADDING,this._duration),this._source.onloadedmetadata=function(){n._source&&(n._source.currentTime=i,n._source.onloadedmetadata=null,n.emit("progress",i,n._duration),_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.add(n._onUpdate,n))},this._source.onended=this._onComplete.bind(this),this._source.play(),this.emit("start")},e.prototype._onUpdate=function(){this.emit("progress",this.progress,this._duration),this._source.currentTime>=this._end&&!this._source.loop&&this._onComplete()},e.prototype._onComplete=function(){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._onUpdate,this),this._internalStop(),this.emit("progress",1,this._duration),this.emit("end",this)},e.prototype.destroy=function(){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._onUpdate,this),this.removeAllListeners();var t=this._source;t&&(t.onended=null,t.onplay=null,t.onpause=null,this._internalStop()),this._source=null,this._speed=1,this._volume=1,this._loop=!1,this._end=null,this._start=0,this._duration=0,this._playing=!1,this._pausedReal=!1,this._paused=!1,this._muted=!1,this._media&&(this._media.context.off("refresh",this.refresh,this),this._media.context.off("refreshPaused",this.refreshPaused,this),this._media=null)},e.prototype.toString=function(){return"[HTMLAudioInstance id=".concat(this.id,"]")},e.PADDING=.1,e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(t){this.parent=t,this._source=t.options.source||new Audio,t.url&&(this._source.src=t.url)},e.prototype.create=function(){return new m(this)},Object.defineProperty(e.prototype,"isPlayable",{get:function(){return!!this._source&&4===this._source.readyState},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._source.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.parent.context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.removeAllListeners(),this.parent=null,this._source&&(this._source.src="",this._source.load(),this._source=null)},Object.defineProperty(e.prototype,"source",{get:function(){return this._source},enumerable:!1,configurable:!0}),e.prototype.load=function(t){var e=this._source,n=this.parent;if(4!==e.readyState)if(n.url){e.src=n.url;var o=function(){s(),n.isLoaded=!0;var e=n.autoPlayStart();t&&t(null,n,e)},i=function(){s(),t&&t(new Error("Sound loading has been aborted"))},r=function(){s();var n="Failed to load audio element (code: ".concat(e.error.code,")");t&&t(new Error(n))},s=function(){e.removeEventListener("canplaythrough",o),e.removeEventListener("load",o),e.removeEventListener("abort",i),e.removeEventListener("error",r)};e.addEventListener("canplaythrough",o,!1),e.addEventListener("load",o,!1),e.addEventListener("abort",i,!1),e.addEventListener("error",r,!1),e.load()}else t(new Error("sound.url or sound.source must be set"));else{n.isLoaded=!0;var u=n.autoPlayStart();t&&setTimeout((function(){t(null,n,u)}),0)}},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),b=function(){function t(t,e){this.parent=t,Object.assign(this,e),this.duration=this.end-this.start}return t.prototype.play=function(t){return this.parent.play({complete:t,speed:this.speed||this.parent.speed,end:this.end,start:this.start,loop:this.loop})},t.prototype.destroy=function(){this.parent=null},t}(),v=function(){function t(){}return t.setParamValue=function(t,e){if(t.setValueAtTime){var n=s().context;t.setValueAtTime(e,n.audioContext.currentTime)}else t.value=e;return e},t}(),P=0,x=function(t){function e(e){var n=t.call(this)||this;return n.id=P++,n._media=null,n._paused=!1,n._muted=!1,n._elapsed=0,n.init(e),n}return a(e,t),e.prototype.set=function(t,e){if(void 0===this[t])throw new Error("Property with name ".concat(t," does not exist."));switch(t){case"speed":this.speed=e;break;case"volume":this.volume=e;break;case"muted":this.muted=e;break;case"loop":this.loop=e;break;case"paused":this.paused=e}return this},e.prototype.stop=function(){this._source&&(this._internalStop(),this.emit("stop"))},Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh(),this._update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return this._filters},set:function(t){var e;this._filters&&(null===(e=this._filters)||void 0===e||e.filter((function(t){return t})).forEach((function(t){return t.disconnect()})),this._filters=null,this._source.connect(this._gain)),this._filters=(null==t?void 0:t.length)?t.slice(0):null,this.refresh()},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){if(this._source){var t=this._media.context,e=this._media.parent;this._source.loop=this._loop||e.loop;var n=t.volume*(t.muted?0:1),o=e.volume*(e.muted?0:1),i=this._volume*(this._muted?0:1);v.setParamValue(this._gain.gain,i*o*n),v.setParamValue(this._source.playbackRate,this._speed*e.speed*t.speed),this.applyFilters()}},e.prototype.applyFilters=function(){var t;if(null===(t=this._filters)||void 0===t?void 0:t.length){this._source.disconnect();var e=this._source;this._filters.forEach((function(t){e.connect(t.destination),e=t})),e.connect(this._gain)}},e.prototype.refreshPaused=function(){var t=this._media.context,e=this._media.parent,n=this._paused||e.paused||t.paused;n!==this._pausedReal&&(this._pausedReal=n,n?(this._internalStop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._elapsed%this._duration,end:this._end,speed:this._speed,loop:this._loop,volume:this._volume})),this.emit("pause",n))},e.prototype.play=function(t){var e=t.start,n=t.end,o=t.speed,i=t.loop,r=t.volume,s=t.muted,u=t.filters;this._paused=!1;var a=this._media.nodes.cloneBufferSource(),c=a.source,l=a.gain;this._source=c,this._gain=l,this._speed=o,this._volume=r,this._loop=!!i,this._muted=s,this._filters=u,this.refresh();var p=this._source.buffer.duration;this._duration=p,this._end=n,this._lastUpdate=this._now(),this._elapsed=e,this._source.onended=this._onComplete.bind(this),this._loop?(this._source.loopEnd=n,this._source.loopStart=e,this._source.start(0,e)):n?this._source.start(0,e,n-e):this._source.start(0,e),this.emit("start"),this._update(!0),this.enableTicker(!0)},e.prototype.enableTicker=function(t){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._updateListener,this),t&&_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.add(this._updateListener,this)},Object.defineProperty(e.prototype,"progress",{get:function(){return this._progress},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){var t;this.removeAllListeners(),this._internalStop(),this._gain&&(this._gain.disconnect(),this._gain=null),this._media&&(this._media.context.events.off("refresh",this.refresh,this),this._media.context.events.off("refreshPaused",this.refreshPaused,this),this._media=null),null===(t=this._filters)||void 0===t||t.forEach((function(t){return t.disconnect()})),this._filters=null,this._end=null,this._speed=1,this._volume=1,this._loop=!1,this._elapsed=0,this._duration=0,this._paused=!1,this._muted=!1,this._pausedReal=!1},e.prototype.toString=function(){return"[WebAudioInstance id=".concat(this.id,"]")},e.prototype._now=function(){return this._media.context.audioContext.currentTime},e.prototype._updateListener=function(){this._update()},e.prototype._update=function(t){if(void 0===t&&(t=!1),this._source){var e=this._now(),n=e-this._lastUpdate;if(n>0||t){var o=this._source.playbackRate.value;this._elapsed+=n*o,this._lastUpdate=e;var i=this._duration,r=void 0;if(this._source.loopStart){var s=this._source.loopEnd-this._source.loopStart;r=(this._source.loopStart+this._elapsed%s)/i}else r=this._elapsed%i/i;this._progress=r,this.emit("progress",this._progress,i)}}},e.prototype.init=function(t){this._media=t,t.context.events.on("refresh",this.refresh,this),t.context.events.on("refreshPaused",this.refreshPaused,this)},e.prototype._internalStop=function(){if(this._source){this.enableTicker(!1),this._source.onended=null,this._source.stop(0),this._source.disconnect();try{this._source.buffer=null}catch(t){}this._source=null}},e.prototype._onComplete=function(){if(this._source){this.enableTicker(!1),this._source.onended=null,this._source.disconnect();try{this._source.buffer=null}catch(t){}}this._source=null,this._progress=1,this.emit("progress",1,this._duration),this.emit("end",this)},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),O=function(){function t(t,e){this._output=e,this._input=t}return Object.defineProperty(t.prototype,"destination",{get:function(){return this._input},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this._filters},set:function(t){var e=this;if(this._filters&&(this._filters.forEach((function(t){t&&t.disconnect()})),this._filters=null,this._input.connect(this._output)),t&&t.length){this._filters=t.slice(0),this._input.disconnect();var n=null;t.forEach((function(t){null===n?e._input.connect(t.destination):n.connect(t.destination),n=t})),n.connect(this._output)}},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.filters=null,this._input=null,this._output=null},t}(),j=function(t){function e(e){var n=this,o=e.audioContext,i=o.createBufferSource(),r=o.createGain(),s=o.createAnalyser();return i.connect(s),s.connect(r),r.connect(e.destination),(n=t.call(this,s,r)||this).context=e,n.bufferSource=i,n.gain=r,n.analyser=s,n}return a(e,t),Object.defineProperty(e.prototype,"script",{get:function(){return this._script||(this._script=this.context.audioContext.createScriptProcessor(e.BUFFER_SIZE),this._script.connect(this.context.destination)),this._script},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.bufferSource.disconnect(),this._script&&this._script.disconnect(),this.gain.disconnect(),this.analyser.disconnect(),this.bufferSource=null,this._script=null,this.gain=null,this.analyser=null,this.context=null},e.prototype.cloneBufferSource=function(){var t=this.bufferSource,e=this.context.audioContext.createBufferSource();e.buffer=t.buffer,v.setParamValue(e.playbackRate,t.playbackRate.value),e.loop=t.loop;var n=this.context.audioContext.createGain();return e.connect(n),n.connect(this.destination),{source:e,gain:n}},Object.defineProperty(e.prototype,"bufferSize",{get:function(){return this.script.bufferSize},enumerable:!1,configurable:!0}),e.BUFFER_SIZE=0,e}(O),w=function(){function t(){}return t.prototype.init=function(t){this.parent=t,this._nodes=new j(this.context),this._source=this._nodes.bufferSource,this.source=t.options.source},t.prototype.destroy=function(){this.parent=null,this._nodes.destroy(),this._nodes=null;try{this._source.buffer=null}catch(t){}this._source=null,this.source=null},t.prototype.create=function(){return new x(this)},Object.defineProperty(t.prototype,"context",{get:function(){return this.parent.context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlayable",{get:function(){return!!this._source&&!!this._source.buffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this._nodes.filters},set:function(t){this._nodes.filters=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._source.buffer.duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffer",{get:function(){return this._source.buffer},set:function(t){this._source.buffer=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nodes",{get:function(){return this._nodes},enumerable:!1,configurable:!0}),t.prototype.load=function(t){this.source?this._decode(this.source,t):this.parent.url?this._loadUrl(t):t&&t(new Error("sound.url or sound.source must be set"))},t.prototype._loadUrl=function(t){var e=this,n=new XMLHttpRequest,o=this.parent.url;n.open("GET",o,!0),n.responseType="arraybuffer",n.onload=function(){e.source=n.response,e._decode(n.response,t)},n.send()},t.prototype._decode=function(t,e){var n=this,o=function(t,o){if(t)e&&e(t);else{n.parent.isLoaded=!0,n.buffer=o;var i=n.parent.autoPlayStart();e&&e(null,n.parent,i)}};t instanceof AudioBuffer?o(null,t):this.parent.context.decode(t,o)},t}(),A=function(){function t(t,e){this.media=t,this.options=e,this._instances=[],this._sprites={},this.media.init(this);var n=e.complete;this._autoPlayOptions=n?{complete:n}:null,this.isLoaded=!1,this.isPlaying=!1,this.autoPlay=e.autoPlay,this.singleInstance=e.singleInstance,this.preload=e.preload||this.autoPlay,this.url=e.url,this.speed=e.speed,this.volume=e.volume,this.loop=e.loop,e.sprites&&this.addSprites(e.sprites),this.preload&&this._preload(e.loaded)}return t.from=function(e){var n={};return"string"==typeof e?n.url=e:e instanceof ArrayBuffer||e instanceof AudioBuffer||e instanceof HTMLAudioElement?n.source=e:n=e,(n=c({autoPlay:!1,singleInstance:!1,url:null,source:null,preload:!1,volume:1,speed:1,complete:null,loaded:null,loop:!1},n)).url&&(n.url=d(n.url)),Object.freeze(n),new t(s().useLegacy?new g:new w,n)},Object.defineProperty(t.prototype,"context",{get:function(){return s().context},enumerable:!1,configurable:!0}),t.prototype.pause=function(){return this.isPlaying=!1,this.paused=!0,this},t.prototype.resume=function(){return this.isPlaying=this._instances.length>0,this.paused=!1,this},Object.defineProperty(t.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this.media.filters},set:function(t){this.media.filters=t},enumerable:!1,configurable:!0}),t.prototype.addSprites=function(t,e){if("object"==typeof t){var n={};for(var o in t)n[o]=this.addSprites(o,t[o]);return n}var i=new b(this,e);return this._sprites[t]=i,i},t.prototype.destroy=function(){this._removeInstances(),this.removeSprites(),this.media.destroy(),this.media=null,this._sprites=null,this._instances=null},t.prototype.removeSprites=function(t){if(t){var e=this._sprites[t];void 0!==e&&(e.destroy(),delete this._sprites[t])}else for(var n in this._sprites)this.removeSprites(n);return this},Object.defineProperty(t.prototype,"isPlayable",{get:function(){return this.isLoaded&&this.media&&this.media.isPlayable},enumerable:!1,configurable:!0}),t.prototype.stop=function(){if(!this.isPlayable)return this.autoPlay=!1,this._autoPlayOptions=null,this;this.isPlaying=!1;for(var t=this._instances.length-1;t>=0;t--)this._instances[t].stop();return this},t.prototype.play=function(t,e){var n,o=this;"string"==typeof t?n={sprite:r=t,loop:this.loop,complete:e}:"function"==typeof t?(n={}).complete=t:n=t;if((n=c({complete:null,loaded:null,sprite:null,end:null,start:0,volume:1,speed:1,muted:!1,loop:!1},n||{})).sprite){var i=n.sprite,r=this._sprites[i];n.start=r.start+(n.start||0),n.end=r.end,n.speed=r.speed||1,n.loop=r.loop||n.loop,delete n.sprite}if(n.offset&&(n.start=n.offset),!this.isLoaded)return new Promise((function(t,e){o.autoPlay=!0,o._autoPlayOptions=n,o._preload((function(o,i,r){o?e(o):(n.loaded&&n.loaded(o,i,r),t(r))}))}));(this.singleInstance||n.singleInstance)&&this._removeInstances();var s=this._createInstance();return this._instances.push(s),this.isPlaying=!0,s.once("end",(function(){n.complete&&n.complete(o),o._onComplete(s)})),s.once("stop",(function(){o._onComplete(s)})),s.play(n),s},t.prototype.refresh=function(){for(var t=this._instances.length,e=0;e<t;e++)this._instances[e].refresh()},t.prototype.refreshPaused=function(){for(var t=this._instances.length,e=0;e<t;e++)this._instances[e].refreshPaused()},Object.defineProperty(t.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),t.prototype._preload=function(t){this.media.load(t)},Object.defineProperty(t.prototype,"instances",{get:function(){return this._instances},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sprites",{get:function(){return this._sprites},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this.media.duration},enumerable:!1,configurable:!0}),t.prototype.autoPlayStart=function(){var t;return this.autoPlay&&(t=this.play(this._autoPlayOptions)),t},t.prototype._removeInstances=function(){for(var t=this._instances.length-1;t>=0;t--)this._poolInstance(this._instances[t]);this._instances.length=0},t.prototype._onComplete=function(t){if(this._instances){var e=this._instances.indexOf(t);e>-1&&this._instances.splice(e,1),this.isPlaying=this._instances.length>0}this._poolInstance(t)},t.prototype._createInstance=function(){if(t._pool.length>0){var e=t._pool.pop();return e.init(this.media),e}return this.media.create()},t.prototype._poolInstance=function(e){e.destroy(),t._pool.indexOf(e)<0&&t._pool.push(e)},t._pool=[],t}(),F=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.speed=1,e.muted=!1,e.volume=1,e.paused=!1,e}return a(e,t),e.prototype.refresh=function(){this.emit("refresh")},e.prototype.refreshPaused=function(){this.emit("refreshPaused")},Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"audioContext",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.toggleMute=function(){return this.muted=!this.muted,this.refresh(),this.muted},e.prototype.togglePause=function(){return this.paused=!this.paused,this.refreshPaused(),this.paused},e.prototype.destroy=function(){this.removeAllListeners()},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),C=function(t){function e(){var o=this,i=window,r=new e.AudioContext,s=r.createDynamicsCompressor(),u=r.createAnalyser();return u.connect(s),s.connect(r.destination),(o=t.call(this,u,s)||this)._ctx=r,o._offlineCtx=new e.OfflineAudioContext(1,2,i.OfflineAudioContext?r.sampleRate:44100),o._unlocked=!1,o.compressor=s,o.analyser=u,o.events=new _pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter,o.volume=1,o.speed=1,o.muted=!1,o.paused=!1,"running"!==r.state&&(o._unlock(),o._unlock=o._unlock.bind(o),document.addEventListener("mousedown",o._unlock,!0),document.addEventListener("touchstart",o._unlock,!0),document.addEventListener("touchend",o._unlock,!0)),o}return a(e,t),e.prototype._unlock=function(){this._unlocked||(this.playEmptySound(),"running"===this._ctx.state&&(document.removeEventListener("mousedown",this._unlock,!0),document.removeEventListener("touchend",this._unlock,!0),document.removeEventListener("touchstart",this._unlock,!0),this._unlocked=!0))},e.prototype.playEmptySound=function(){var t=this._ctx.createBufferSource();t.buffer=this._ctx.createBuffer(1,1,22050),t.connect(this._ctx.destination),t.start(0,0,0),"suspended"===t.context.state&&t.context.resume()},Object.defineProperty(e,"AudioContext",{get:function(){var t=window;return t.AudioContext||t.webkitAudioContext||null},enumerable:!1,configurable:!0}),Object.defineProperty(e,"OfflineAudioContext",{get:function(){var t=window;return t.OfflineAudioContext||t.webkitOfflineAudioContext||null},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this);var e=this._ctx;void 0!==e.close&&e.close(),this.events.removeAllListeners(),this.analyser.disconnect(),this.compressor.disconnect(),this.analyser=null,this.compressor=null,this.events=null,this._offlineCtx=null,this._ctx=null},Object.defineProperty(e.prototype,"audioContext",{get:function(){return this._ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offlineContext",{get:function(){return this._offlineCtx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){t&&"running"===this._ctx.state?this._ctx.suspend():t||"suspended"!==this._ctx.state||this._ctx.resume(),this._paused=t},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){this.events.emit("refresh")},e.prototype.refreshPaused=function(){this.events.emit("refreshPaused")},e.prototype.toggleMute=function(){return this.muted=!this.muted,this.refresh(),this.muted},e.prototype.togglePause=function(){return this.paused=!this.paused,this.refreshPaused(),this._paused},e.prototype.decode=function(t,e){var n=function(t){e(new Error(t.message||"Unable to decode file"))},o=this._offlineCtx.decodeAudioData(t,(function(t){e(null,t)}),n);o&&o.catch(n)},e}(O),E=function(){function t(){this.init()}return t.prototype.init=function(){return this.supported&&(this._webAudioContext=new C),this._htmlAudioContext=new F,this._sounds={},this.useLegacy=!this.supported,this},Object.defineProperty(t.prototype,"context",{get:function(){return this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filtersAll",{get:function(){return this.useLegacy?[]:this._context.filters},set:function(t){this.useLegacy||(this._context.filters=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"supported",{get:function(){return null!==C.AudioContext},enumerable:!1,configurable:!0}),t.prototype.add=function(t,e){if("object"==typeof t){var n={};for(var o in t){var i=this._getOptions(t[o],e);n[o]=this.add(o,i)}return n}if(e instanceof A)return this._sounds[t]=e,e;var r=this._getOptions(e),s=A.from(r);return this._sounds[t]=s,s},t.prototype._getOptions=function(t,e){var n;return n="string"==typeof t?{url:t}:t instanceof ArrayBuffer||t instanceof AudioBuffer||t instanceof HTMLAudioElement?{source:t}:t,n=c(c({},n),e||{})},Object.defineProperty(t.prototype,"useLegacy",{get:function(){return this._useLegacy},set:function(t){_.setLegacy(t),this._useLegacy=t,this._context=!t&&this.supported?this._webAudioContext:this._htmlAudioContext},enumerable:!1,configurable:!0}),t.prototype.remove=function(t){return this.exists(t,!0),this._sounds[t].destroy(),delete this._sounds[t],this},Object.defineProperty(t.prototype,"volumeAll",{get:function(){return this._context.volume},set:function(t){this._context.volume=t,this._context.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speedAll",{get:function(){return this._context.speed},set:function(t){this._context.speed=t,this._context.refresh()},enumerable:!1,configurable:!0}),t.prototype.togglePauseAll=function(){return this._context.togglePause()},t.prototype.pauseAll=function(){return this._context.paused=!0,this._context.refreshPaused(),this},t.prototype.resumeAll=function(){return this._context.paused=!1,this._context.refreshPaused(),this},t.prototype.toggleMuteAll=function(){return this._context.toggleMute()},t.prototype.muteAll=function(){return this._context.muted=!0,this._context.refresh(),this},t.prototype.unmuteAll=function(){return this._context.muted=!1,this._context.refresh(),this},t.prototype.removeAll=function(){for(var t in this._sounds)this._sounds[t].destroy(),delete this._sounds[t];return this},t.prototype.stopAll=function(){for(var t in this._sounds)this._sounds[t].stop();return this},t.prototype.exists=function(t,e){return void 0===e&&(e=!1),!!this._sounds[t]},t.prototype.find=function(t){return this.exists(t,!0),this._sounds[t]},t.prototype.play=function(t,e){return this.find(t).play(e)},t.prototype.stop=function(t){return this.find(t).stop()},t.prototype.pause=function(t){return this.find(t).pause()},t.prototype.resume=function(t){return this.find(t).resume()},t.prototype.volume=function(t,e){var n=this.find(t);return void 0!==e&&(n.volume=e),n.volume},t.prototype.speed=function(t,e){var n=this.find(t);return void 0!==e&&(n.speed=e),n.speed},t.prototype.duration=function(t){return this.find(t).duration},t.prototype.close=function(){return this.removeAll(),this._sounds=null,this._webAudioContext&&(this._webAudioContext.destroy(),this._webAudioContext=null),this._htmlAudioContext&&(this._htmlAudioContext.destroy(),this._htmlAudioContext=null),this._context=null,this},t}(),L={__proto__:null,HTMLAudioMedia:g,HTMLAudioInstance:m,HTMLAudioContext:F},S=function(){function t(t,e){this.init(t,e)}return t.prototype.init=function(t,e){this.destination=t,this.source=e||t},t.prototype.connect=function(t){this.source.connect(t)},t.prototype.disconnect=function(){this.source.disconnect()},t.prototype.destroy=function(){this.disconnect(),this.destination=null,this.source=null},t}(),k={__proto__:null,Filter:S,EqualizerFilter:function(t){function e(n,o,i,r,u,a,c,l,p,h){void 0===n&&(n=0),void 0===o&&(o=0),void 0===i&&(i=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===a&&(a=0),void 0===c&&(c=0),void 0===l&&(l=0),void 0===p&&(p=0),void 0===h&&(h=0);var f=this;if(!s().useLegacy){var d=[{f:e.F32,type:"lowshelf",gain:n},{f:e.F64,type:"peaking",gain:o},{f:e.F125,type:"peaking",gain:i},{f:e.F250,type:"peaking",gain:r},{f:e.F500,type:"peaking",gain:u},{f:e.F1K,type:"peaking",gain:a},{f:e.F2K,type:"peaking",gain:c},{f:e.F4K,type:"peaking",gain:l},{f:e.F8K,type:"peaking",gain:p},{f:e.F16K,type:"highshelf",gain:h}].map((function(t){var e=s().context.audioContext.createBiquadFilter();return e.type=t.type,v.setParamValue(e.Q,1),e.frequency.value=t.f,v.setParamValue(e.gain,t.gain),e}));(f=t.call(this,d[0],d[d.length-1])||this).bands=d,f.bandsMap={};for(var _=0;_<f.bands.length;_++){var y=f.bands[_];_>0&&f.bands[_-1].connect(y),f.bandsMap[y.frequency.value]=y}return f}f=t.call(this,null)||this}return a(e,t),e.prototype.setGain=function(t,e){if(void 0===e&&(e=0),!this.bandsMap[t])throw new Error("No band found for frequency ".concat(t));v.setParamValue(this.bandsMap[t].gain,e)},e.prototype.getGain=function(t){if(!this.bandsMap[t])throw new Error("No band found for frequency ".concat(t));return this.bandsMap[t].gain.value},Object.defineProperty(e.prototype,"f32",{get:function(){return this.getGain(e.F32)},set:function(t){this.setGain(e.F32,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f64",{get:function(){return this.getGain(e.F64)},set:function(t){this.setGain(e.F64,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f125",{get:function(){return this.getGain(e.F125)},set:function(t){this.setGain(e.F125,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f250",{get:function(){return this.getGain(e.F250)},set:function(t){this.setGain(e.F250,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f500",{get:function(){return this.getGain(e.F500)},set:function(t){this.setGain(e.F500,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f1k",{get:function(){return this.getGain(e.F1K)},set:function(t){this.setGain(e.F1K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f2k",{get:function(){return this.getGain(e.F2K)},set:function(t){this.setGain(e.F2K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f4k",{get:function(){return this.getGain(e.F4K)},set:function(t){this.setGain(e.F4K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f8k",{get:function(){return this.getGain(e.F8K)},set:function(t){this.setGain(e.F8K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f16k",{get:function(){return this.getGain(e.F16K)},set:function(t){this.setGain(e.F16K,t)},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.bands.forEach((function(t){v.setParamValue(t.gain,0)}))},e.prototype.destroy=function(){this.bands.forEach((function(t){t.disconnect()})),this.bands=null,this.bandsMap=null},e.F32=32,e.F64=64,e.F125=125,e.F250=250,e.F500=500,e.F1K=1e3,e.F2K=2e3,e.F4K=4e3,e.F8K=8e3,e.F16K=16e3,e}(S),DistortionFilter:function(t){function e(e){void 0===e&&(e=0);var n=this;if(!s().useLegacy){var o=s().context.audioContext.createWaveShaper();return(n=t.call(this,o)||this)._distortion=o,n.amount=e,n}n=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"amount",{get:function(){return this._amount},set:function(t){this._amount=t;for(var e,n=1e3*t,o=44100,i=new Float32Array(o),r=Math.PI/180,s=0;s<o;++s)e=2*s/o-1,i[s]=(3+n)*e*20*r/(Math.PI+n*Math.abs(e));this._distortion.curve=i,this._distortion.oversample="4x"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this._distortion=null,t.prototype.destroy.call(this)},e}(S),StereoFilter:function(t){function e(e){void 0===e&&(e=0);var n=this;if(!s().useLegacy){var o,i,r,u=s().context.audioContext;return u.createStereoPanner?r=o=u.createStereoPanner():((i=u.createPanner()).panningModel="equalpower",r=i),(n=t.call(this,r)||this)._stereo=o,n._panner=i,n.pan=e,n}n=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"pan",{get:function(){return this._pan},set:function(t){this._pan=t,this._stereo?v.setParamValue(this._stereo.pan,t):this._panner.setPosition(t,0,1-Math.abs(t))},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this._stereo=null,this._panner=null},e}(S),ReverbFilter:function(t){function e(e,n,o){void 0===e&&(e=3),void 0===n&&(n=2),void 0===o&&(o=!1);var i=this;if(!s().useLegacy)return(i=t.call(this,null)||this)._seconds=i._clamp(e,1,50),i._decay=i._clamp(n,0,100),i._reverse=o,i._rebuild(),i;i=t.call(this,null)||this}return a(e,t),e.prototype._clamp=function(t,e,n){return Math.min(n,Math.max(e,t))},Object.defineProperty(e.prototype,"seconds",{get:function(){return this._seconds},set:function(t){this._seconds=this._clamp(t,1,50),this._rebuild()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"decay",{get:function(){return this._decay},set:function(t){this._decay=this._clamp(t,0,100),this._rebuild()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"reverse",{get:function(){return this._reverse},set:function(t){this._reverse=t,this._rebuild()},enumerable:!1,configurable:!0}),e.prototype._rebuild=function(){for(var t,e=s().context.audioContext,n=e.sampleRate,o=n*this._seconds,i=e.createBuffer(2,o,n),r=i.getChannelData(0),u=i.getChannelData(1),a=0;a<o;a++)t=this._reverse?o-a:a,r[a]=(2*Math.random()-1)*Math.pow(1-t/o,this._decay),u[a]=(2*Math.random()-1)*Math.pow(1-t/o,this._decay);var c=s().context.audioContext.createConvolver();c.buffer=i,this.init(c)},e}(S),MonoFilter:function(t){function e(){var e=this;if(!s().useLegacy){var n=s().context.audioContext,o=n.createChannelSplitter(),i=n.createChannelMerger();return i.connect(o),(e=t.call(this,i,o)||this)._merger=i,e}e=t.call(this,null)||this}return a(e,t),e.prototype.destroy=function(){this._merger.disconnect(),this._merger=null,t.prototype.destroy.call(this)},e}(S),StreamFilter:function(t){function e(){var e=this;if(!s().useLegacy){var n=s().context.audioContext,o=n.createMediaStreamDestination(),i=n.createMediaStreamSource(o.stream);return(e=t.call(this,o,i)||this)._stream=o.stream,e}e=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"stream",{get:function(){return this._stream},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this._stream=null,t.prototype.destroy.call(this)},e}(S),TelephoneFilter:function(t){function e(){if(!s().useLegacy){var e=s().context.audioContext,n=e.createBiquadFilter(),o=e.createBiquadFilter(),i=e.createBiquadFilter(),r=e.createBiquadFilter();return n.type="lowpass",v.setParamValue(n.frequency,2e3),o.type="lowpass",v.setParamValue(o.frequency,2e3),i.type="highpass",v.setParamValue(i.frequency,500),r.type="highpass",v.setParamValue(r.frequency,500),n.connect(o),o.connect(i),i.connect(r),t.call(this,n,r)||this}t.call(this,null)}return a(e,t),e}(S)},M={__proto__:null,WebAudioMedia:w,WebAudioInstance:x,WebAudioNodes:j,WebAudioContext:C,WebAudioUtils:v},T=0;var G={__proto__:null,playOnce:function(t,e){var n="alias".concat(T++);return s().add(n,{url:t,preload:!0,autoPlay:!0,loaded:function(t){t&&(s().remove(n),e&&e(t))},complete:function(){s().remove(n),e&&e(null)}}),n},get PLAY_ID(){return T},render:function(t,e){var n=document.createElement("canvas");e=c({width:512,height:128,fill:"black"},e||{}),n.width=e.width,n.height=e.height;var o=_pixi_core__WEBPACK_IMPORTED_MODULE_3__.BaseTexture.from(n);if(!(t.media instanceof w))return o;var r=t.media,s=n.getContext("2d");s.fillStyle=e.fill;for(var u=r.buffer.getChannelData(0),a=Math.ceil(u.length/e.width),l=e.height/2,p=0;p<e.width;p++){for(var h=1,f=-1,d=0;d<a;d++){var _=u[p*a+d];_<h&&(h=_),_>f&&(f=_)}s.fillRect(p,(1+h)*l,1,Math.max(1,(f-h)*l))}return o},resolveUrl:d,sineTone:function(t,e){void 0===t&&(t=200),void 0===e&&(e=1);var n=A.from({singleInstance:!0});if(!(n.media instanceof w))return n;for(var o=n.media,i=n.context.audioContext.createBuffer(1,48e3*e,48e3),r=i.getChannelData(0),s=0;s<r.length;s++){var u=t*(s/i.sampleRate)*Math.PI;r[s]=2*Math.sin(u)}return o.buffer=i,n.isLoaded=!0,n},validateFormats:h,supported:p,extensions:l},I=function(t){return r=t,t}(new E);_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.Loader.registerPlugin(_);
|
|
35072
35072
|
//# sourceMappingURL=pixi-sound.esm.js.map
|
|
35073
35073
|
|
|
35074
35074
|
|
|
@@ -47516,7 +47516,7 @@ name: moveable
|
|
|
47516
47516
|
license: MIT
|
|
47517
47517
|
author: Daybrush
|
|
47518
47518
|
repository: git+https://github.com/daybrush/moveable.git
|
|
47519
|
-
version: 0.27.
|
|
47519
|
+
version: 0.27.3
|
|
47520
47520
|
*/
|
|
47521
47521
|
|
|
47522
47522
|
|
|
@@ -47905,9 +47905,7 @@ function (_super) {
|
|
|
47905
47905
|
|
|
47906
47906
|
_this.tempElement = document.createElement("div");
|
|
47907
47907
|
|
|
47908
|
-
var nextOptions = __assign({
|
|
47909
|
-
container: parentElement || document.body
|
|
47910
|
-
}, options);
|
|
47908
|
+
var nextOptions = __assign({}, options);
|
|
47911
47909
|
|
|
47912
47910
|
var events = {};
|
|
47913
47911
|
EVENTS.forEach(function (name) {
|
|
@@ -67293,8 +67291,8 @@ class Button extends pixi_js_1.Container {
|
|
|
67293
67291
|
this.getBtnBounds = () => __classPrivateFieldGet(this, _Button_rctBtnTxt, "f");
|
|
67294
67292
|
_Button_rctBtnTxt.set(this, new pixi_js_1.Rectangle);
|
|
67295
67293
|
_Button_idc.set(this, void 0);
|
|
67296
|
-
_Button_sp_b_pic.set(this,
|
|
67297
|
-
_Button_sp_pic.set(this,
|
|
67294
|
+
_Button_sp_b_pic.set(this, undefined);
|
|
67295
|
+
_Button_sp_pic.set(this, undefined);
|
|
67298
67296
|
_Button_normal.set(this, () => { });
|
|
67299
67297
|
_Button_hover.set(this, () => false);
|
|
67300
67298
|
_Button_clicked.set(this, () => { });
|
|
@@ -68069,7 +68067,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
68069
68067
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
68070
68068
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
68071
68069
|
};
|
|
68072
|
-
var _DebugMng_instances, _a, _DebugMng_scrItr, _DebugMng_hTag, _DebugMng_title, _DebugMng_spnDbg, _DebugMng_first, _DebugMng_log, _DebugMng_trace,
|
|
68070
|
+
var _DebugMng_instances, _a, _DebugMng_scrItr, _DebugMng_hTag, _DebugMng_title, _DebugMng_spnDbg, _DebugMng_first, _DebugMng_log, _DebugMng_trace, _DebugMng_st_trace, _DebugMng_dspDbg;
|
|
68073
68071
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
68074
68072
|
exports.DebugMng = void 0;
|
|
68075
68073
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -68098,7 +68096,30 @@ class DebugMng {
|
|
|
68098
68096
|
destroy() {
|
|
68099
68097
|
__classPrivateFieldSet(DebugMng, _a, () => false, "f", _DebugMng_title);
|
|
68100
68098
|
document.body.removeChild(__classPrivateFieldGet(DebugMng, _a, "f", _DebugMng_spnDbg));
|
|
68101
|
-
DebugMng.myTrace =
|
|
68099
|
+
DebugMng.myTrace = DebugMng.trace_beforeNew;
|
|
68100
|
+
}
|
|
68101
|
+
static trace_beforeNew(txt, lvl = 'E') {
|
|
68102
|
+
let mes = `{${lvl}} ` + txt;
|
|
68103
|
+
let sty = '';
|
|
68104
|
+
switch (lvl) {
|
|
68105
|
+
case 'D':
|
|
68106
|
+
sty = `color:#${CmnLib_1.CmnLib.isDarkMode ? '49F' : '05A'};`;
|
|
68107
|
+
break;
|
|
68108
|
+
case 'W':
|
|
68109
|
+
sty = 'color:#FF8800;';
|
|
68110
|
+
break;
|
|
68111
|
+
case 'F':
|
|
68112
|
+
sty = 'color:#BB0000;';
|
|
68113
|
+
break;
|
|
68114
|
+
case 'ET': throw mes;
|
|
68115
|
+
case 'E':
|
|
68116
|
+
console.error('%c' + mes, 'color:#FF3300;');
|
|
68117
|
+
return;
|
|
68118
|
+
default:
|
|
68119
|
+
sty = 'color:black;';
|
|
68120
|
+
mes = ' ' + mes;
|
|
68121
|
+
}
|
|
68122
|
+
console.info('%c' + mes, sty);
|
|
68102
68123
|
}
|
|
68103
68124
|
;
|
|
68104
68125
|
}
|
|
@@ -68115,28 +68136,6 @@ _a = DebugMng, _DebugMng_first = new WeakMap(), _DebugMng_instances = new WeakSe
|
|
|
68115
68136
|
}, _DebugMng_trace = function _DebugMng_trace(hArg) {
|
|
68116
68137
|
DebugMng.myTrace(hArg.text || `(text is ${hArg.text})`, 'I');
|
|
68117
68138
|
return false;
|
|
68118
|
-
}, _DebugMng_trace_beforeNew = function _DebugMng_trace_beforeNew(txt, lvl = 'E') {
|
|
68119
|
-
let mes = `{${lvl}} ` + txt;
|
|
68120
|
-
let sty = '';
|
|
68121
|
-
switch (lvl) {
|
|
68122
|
-
case 'D':
|
|
68123
|
-
sty = `color:#${CmnLib_1.CmnLib.isDarkMode ? '49F' : '05A'};`;
|
|
68124
|
-
break;
|
|
68125
|
-
case 'W':
|
|
68126
|
-
sty = 'color:#FF8800;';
|
|
68127
|
-
break;
|
|
68128
|
-
case 'F':
|
|
68129
|
-
sty = 'color:#BB0000;';
|
|
68130
|
-
break;
|
|
68131
|
-
case 'ET': throw mes;
|
|
68132
|
-
case 'E':
|
|
68133
|
-
console.error('%c' + mes, 'color:#FF3300;');
|
|
68134
|
-
return;
|
|
68135
|
-
default:
|
|
68136
|
-
sty = 'color:black;';
|
|
68137
|
-
mes = ' ' + mes;
|
|
68138
|
-
}
|
|
68139
|
-
console.info('%c' + mes, sty);
|
|
68140
68139
|
}, _DebugMng_st_trace = function _DebugMng_st_trace(txt, lvl = 'E') {
|
|
68141
68140
|
let mes = `{${lvl}} `;
|
|
68142
68141
|
if (__classPrivateFieldGet(DebugMng, _a, "f", _DebugMng_scrItr) && __classPrivateFieldGet(DebugMng, _a, "f", _DebugMng_scrItr).lineNum > 0)
|
|
@@ -68196,7 +68195,7 @@ _DebugMng_scrItr = { value: void 0 };
|
|
|
68196
68195
|
_DebugMng_hTag = { value: void 0 };
|
|
68197
68196
|
_DebugMng_title = { value: void 0 };
|
|
68198
68197
|
_DebugMng_spnDbg = { value: void 0 };
|
|
68199
|
-
DebugMng.myTrace =
|
|
68198
|
+
DebugMng.myTrace = DebugMng.trace_beforeNew;
|
|
68200
68199
|
|
|
68201
68200
|
|
|
68202
68201
|
/***/ }),
|
|
@@ -68255,8 +68254,8 @@ class DesignCast {
|
|
|
68255
68254
|
'height': 0,
|
|
68256
68255
|
};
|
|
68257
68256
|
this.fncLay = () => { };
|
|
68258
|
-
this.mov =
|
|
68259
|
-
this.div =
|
|
68257
|
+
this.mov = undefined;
|
|
68258
|
+
this.div = undefined;
|
|
68260
68259
|
this.lx = 0;
|
|
68261
68260
|
this.ly = 0;
|
|
68262
68261
|
this.rect = pixi_js_1.Rectangle.EMPTY;
|
|
@@ -68318,9 +68317,9 @@ class DesignCast {
|
|
|
68318
68317
|
s.height = `${CmnLib_1.CmnLib.stageH * CmnLib_1.CmnLib.cvsScale}px`;
|
|
68319
68318
|
}
|
|
68320
68319
|
destroy() {
|
|
68321
|
-
this.div =
|
|
68320
|
+
this.div = undefined;
|
|
68322
68321
|
this.mov?.destroy();
|
|
68323
|
-
this.mov =
|
|
68322
|
+
this.mov = undefined;
|
|
68324
68323
|
}
|
|
68325
68324
|
gethArg() { return this.hArg; }
|
|
68326
68325
|
sethArg(hArg) {
|
|
@@ -69661,6 +69660,7 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
69661
69660
|
}
|
|
69662
69661
|
return false;
|
|
69663
69662
|
}, _EventMng_wait = function _EventMng_wait(hArg) {
|
|
69663
|
+
const time = (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN);
|
|
69664
69664
|
if (this.scrItr.skip4page)
|
|
69665
69665
|
return false;
|
|
69666
69666
|
if (this.val.getVal('tmp:sn.skip.enabled')) {
|
|
@@ -69675,7 +69675,7 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
69675
69675
|
tw.end();
|
|
69676
69676
|
}, "f");
|
|
69677
69677
|
const tw = new tween_js_1.Tween({})
|
|
69678
|
-
.to({},
|
|
69678
|
+
.to({}, time)
|
|
69679
69679
|
.onComplete(() => {
|
|
69680
69680
|
__classPrivateFieldSet(this, _EventMng_cancelWait, () => { }, "f");
|
|
69681
69681
|
tw.stop();
|
|
@@ -69866,12 +69866,12 @@ class FocusMng {
|
|
|
69866
69866
|
}
|
|
69867
69867
|
getFocus() {
|
|
69868
69868
|
if (__classPrivateFieldGet(this, _FocusMng_idx, "f") < 0)
|
|
69869
|
-
return
|
|
69869
|
+
return undefined;
|
|
69870
69870
|
__classPrivateFieldGet(this, _FocusMng_instances, "m", _FocusMng_allOff).call(this);
|
|
69871
69871
|
if (__classPrivateFieldGet(this, _FocusMng_idx, "f") >= __classPrivateFieldGet(this, _FocusMng_aBtn, "f").length)
|
|
69872
69872
|
__classPrivateFieldSet(this, _FocusMng_idx, 0, "f");
|
|
69873
69873
|
const b = __classPrivateFieldGet(this, _FocusMng_aBtn, "f")[__classPrivateFieldGet(this, _FocusMng_idx, "f")];
|
|
69874
|
-
return b.on() ? b.btn :
|
|
69874
|
+
return b.on() ? b.btn : undefined;
|
|
69875
69875
|
}
|
|
69876
69876
|
blur() { __classPrivateFieldGet(this, _FocusMng_instances, "m", _FocusMng_allOff).call(this); __classPrivateFieldSet(this, _FocusMng_idx, -1, "f"); globalThis.focus(); }
|
|
69877
69877
|
}
|
|
@@ -70024,7 +70024,7 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
70024
70024
|
this.val.setVal_Nochk('tmp', frmnm + '.visible', v);
|
|
70025
70025
|
const win = ifrm.contentWindow;
|
|
70026
70026
|
__classPrivateFieldGet(this, _FrameMng_evtMng, "f").resvFlameEvent(win);
|
|
70027
|
-
(win.sn_repRes)?.((img) => GrpLayer_1.GrpLayer.loadPic2Img((img.dataset.src ?? '')
|
|
70027
|
+
(win.sn_repRes)?.((img) => GrpLayer_1.GrpLayer.loadPic2Img((img.dataset.src ?? ''), img));
|
|
70028
70028
|
this.main.resume();
|
|
70029
70029
|
};
|
|
70030
70030
|
});
|
|
@@ -70295,7 +70295,7 @@ function splitAmpersand(token) {
|
|
|
70295
70295
|
return {
|
|
70296
70296
|
name: equa[0].replaceAll('=', '==').replaceAll('≠', '!='),
|
|
70297
70297
|
text: equa[1].replaceAll('=', '==').replaceAll('≠', '!='),
|
|
70298
|
-
cast: ((cnt_equa === 3) ? equa[2].trim() :
|
|
70298
|
+
cast: ((cnt_equa === 3) ? equa[2].trim() : undefined)
|
|
70299
70299
|
};
|
|
70300
70300
|
}
|
|
70301
70301
|
exports.splitAmpersand = splitAmpersand;
|
|
@@ -70437,7 +70437,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
70437
70437
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
70438
70438
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
70439
70439
|
};
|
|
70440
|
-
var _a, _GrpLayer_elc, _GrpLayer_hFace, _GrpLayer_main, _GrpLayer_cfg, _GrpLayer_sys, _GrpLayer_glbVol, _GrpLayer_movVol, _GrpLayer_evtMng, _GrpLayer_idc, _GrpLayer_csvFn, _GrpLayer_sBkFn, _GrpLayer_sBkFace, _GrpLayer_width, _GrpLayer_height, _GrpLayer_dec2cache, _GrpLayer_sortAFrameName, _GrpLayer_dec2cache4Cripto, _GrpLayer_mkSprite, _GrpLayer_hAEncImg, _GrpLayer_hEncImgOUrl;
|
|
70440
|
+
var _a, _GrpLayer_elc, _GrpLayer_hFace, _GrpLayer_main, _GrpLayer_cfg, _GrpLayer_appPixi, _GrpLayer_sys, _GrpLayer_glbVol, _GrpLayer_movVol, _GrpLayer_evtMng, _GrpLayer_idc, _GrpLayer_csvFn, _GrpLayer_sBkFn, _GrpLayer_sBkFace, _GrpLayer_width, _GrpLayer_height, _GrpLayer_dec2cache, _GrpLayer_sortAFrameName, _GrpLayer_dec2cache4Cripto, _GrpLayer_mkSprite, _GrpLayer_rtTsy, _GrpLayer_spTsy, _GrpLayer_fncRender, _GrpLayer_hAEncImg, _GrpLayer_hEncImgOUrl;
|
|
70441
70441
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
70442
70442
|
exports.GrpLayer = void 0;
|
|
70443
70443
|
const Layer_1 = __webpack_require__(/*! ./Layer */ "./core/src/sn/Layer.ts");
|
|
@@ -70462,6 +70462,9 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
70462
70462
|
});
|
|
70463
70463
|
_GrpLayer_width.set(this, 0);
|
|
70464
70464
|
_GrpLayer_height.set(this, 0);
|
|
70465
|
+
_GrpLayer_rtTsy.set(this, void 0);
|
|
70466
|
+
_GrpLayer_spTsy.set(this, void 0);
|
|
70467
|
+
_GrpLayer_fncRender.set(this, () => { });
|
|
70465
70468
|
this.record = () => Object.assign(super.record(), {
|
|
70466
70469
|
sBkFn: __classPrivateFieldGet(this, _GrpLayer_sBkFn, "f"),
|
|
70467
70470
|
sBkFace: __classPrivateFieldGet(this, _GrpLayer_sBkFace, "f"),
|
|
@@ -70473,9 +70476,10 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
70473
70476
|
this.cvsResize = () => { super.cvsResize(); __classPrivateFieldGet(this, _GrpLayer_idc, "f").cvsResize(); };
|
|
70474
70477
|
}
|
|
70475
70478
|
}
|
|
70476
|
-
static init(main, cfg, sys, sndMng) {
|
|
70479
|
+
static init(main, cfg, appPixi, sys, sndMng) {
|
|
70477
70480
|
__classPrivateFieldSet(GrpLayer, _a, main, "f", _GrpLayer_main);
|
|
70478
70481
|
__classPrivateFieldSet(GrpLayer, _a, cfg, "f", _GrpLayer_cfg);
|
|
70482
|
+
__classPrivateFieldSet(GrpLayer, _a, appPixi, "f", _GrpLayer_appPixi);
|
|
70479
70483
|
__classPrivateFieldSet(GrpLayer, _a, sys, "f", _GrpLayer_sys);
|
|
70480
70484
|
const fnc = () => {
|
|
70481
70485
|
const vol = __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_glbVol) * __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_movVol);
|
|
@@ -70588,6 +70592,7 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
70588
70592
|
const fncLoaded = (hRes) => {
|
|
70589
70593
|
for (const v of aComp) {
|
|
70590
70594
|
const sp = __classPrivateFieldGet(GrpLayer, _a, "m", _GrpLayer_mkSprite).call(GrpLayer, v.fn, hRes);
|
|
70595
|
+
sp.name = v.fn;
|
|
70591
70596
|
parent?.addChild(sp);
|
|
70592
70597
|
v.fnc(sp);
|
|
70593
70598
|
}
|
|
@@ -70624,6 +70629,40 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
70624
70629
|
hve.addEventListener('ended', fnc, { once: true, passive: true });
|
|
70625
70630
|
return __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_evtMng).waitEvent(() => { hve.pause(); fnc(); }, (0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true), (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false));
|
|
70626
70631
|
}
|
|
70632
|
+
renderStart() {
|
|
70633
|
+
__classPrivateFieldSet(this, _GrpLayer_rtTsy, pixi_js_1.RenderTexture.create({
|
|
70634
|
+
width: CmnLib_1.CmnLib.stageW,
|
|
70635
|
+
height: CmnLib_1.CmnLib.stageH,
|
|
70636
|
+
}), "f");
|
|
70637
|
+
__classPrivateFieldSet(this, _GrpLayer_spTsy, new pixi_js_1.Sprite(__classPrivateFieldGet(this, _GrpLayer_rtTsy, "f")), "f");
|
|
70638
|
+
__classPrivateFieldGet(this, _GrpLayer_spTsy, "f").visible = false;
|
|
70639
|
+
this.spLay.addChildAt(__classPrivateFieldGet(this, _GrpLayer_spTsy, "f"), 0);
|
|
70640
|
+
__classPrivateFieldGet(this, _GrpLayer_spTsy, "f").position.set(-this.spLay.x, -this.spLay.y);
|
|
70641
|
+
let fncRenderFore = () => {
|
|
70642
|
+
const a = this.spLay.alpha;
|
|
70643
|
+
this.spLay.alpha = 1;
|
|
70644
|
+
this.spLay.children.forEach(s => s.visible = true);
|
|
70645
|
+
__classPrivateFieldGet(this, _GrpLayer_spTsy, "f").visible = false;
|
|
70646
|
+
__classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_appPixi).renderer.render(this.spLay, { renderTexture: __classPrivateFieldGet(this, _GrpLayer_rtTsy, "f") });
|
|
70647
|
+
this.spLay.alpha = a;
|
|
70648
|
+
this.spLay.children.forEach(s => s.visible = false);
|
|
70649
|
+
};
|
|
70650
|
+
if (!this.containMovement) {
|
|
70651
|
+
let oldFnc = fncRenderFore;
|
|
70652
|
+
fncRenderFore = () => { fncRenderFore = () => { }; oldFnc(); };
|
|
70653
|
+
}
|
|
70654
|
+
__classPrivateFieldSet(this, _GrpLayer_fncRender, () => {
|
|
70655
|
+
fncRenderFore();
|
|
70656
|
+
__classPrivateFieldGet(this, _GrpLayer_spTsy, "f").visible = true;
|
|
70657
|
+
}, "f");
|
|
70658
|
+
__classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_appPixi).ticker.add(__classPrivateFieldGet(this, _GrpLayer_fncRender, "f"));
|
|
70659
|
+
}
|
|
70660
|
+
renderEnd() {
|
|
70661
|
+
__classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_appPixi).ticker.remove(__classPrivateFieldGet(this, _GrpLayer_fncRender, "f"));
|
|
70662
|
+
this.spLay.removeChild(__classPrivateFieldGet(this, _GrpLayer_spTsy, "f"));
|
|
70663
|
+
this.spLay.children.forEach(s => s.visible = true);
|
|
70664
|
+
__classPrivateFieldGet(this, _GrpLayer_spTsy, "f").destroy(true);
|
|
70665
|
+
}
|
|
70627
70666
|
static loadPic2Img(src, img, onload) {
|
|
70628
70667
|
const oUrl = __classPrivateFieldGet(this, _a, "f", _GrpLayer_hEncImgOUrl)[src];
|
|
70629
70668
|
if (oUrl) {
|
|
@@ -70678,7 +70717,7 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
70678
70717
|
throw '一つのname(' + name + ')に対して同じ画像を複数割り当てられません';
|
|
70679
70718
|
const fn = hArg.fn ?? name;
|
|
70680
70719
|
__classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_hFace)[name] = {
|
|
70681
|
-
fn
|
|
70720
|
+
fn,
|
|
70682
70721
|
dx: (0, CmnLib_1.argChk_Num)(hArg, 'dx', 0) * CmnLib_1.CmnLib.retinaRate,
|
|
70683
70722
|
dy: (0, CmnLib_1.argChk_Num)(hArg, 'dy', 0) * CmnLib_1.CmnLib.retinaRate,
|
|
70684
70723
|
blendmode: Layer_1.Layer.getBlendmodeNum(hArg.blendmode || '')
|
|
@@ -70686,6 +70725,12 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
70686
70725
|
return false;
|
|
70687
70726
|
}
|
|
70688
70727
|
static clearFace2Name() { __classPrivateFieldSet(GrpLayer, _a, {}, "f", _GrpLayer_hFace); }
|
|
70728
|
+
get containMovement() {
|
|
70729
|
+
if (__classPrivateFieldGet(this, _GrpLayer_csvFn, "f") === '')
|
|
70730
|
+
return false;
|
|
70731
|
+
const c = this.spLay.children;
|
|
70732
|
+
return __classPrivateFieldGet(this, _GrpLayer_csvFn, "f").split(',').some((fn, i) => c[i] instanceof pixi_js_1.AnimatedSprite || GrpLayer.hFn2VElm[fn]);
|
|
70733
|
+
}
|
|
70689
70734
|
clearLay(hArg) {
|
|
70690
70735
|
super.clearLay(hArg);
|
|
70691
70736
|
for (const c of this.spLay.removeChildren())
|
|
@@ -70713,7 +70758,7 @@ class GrpLayer extends Layer_1.Layer {
|
|
|
70713
70758
|
showDesignCast() { __classPrivateFieldGet(this, _GrpLayer_idc, "f").visible = true; }
|
|
70714
70759
|
}
|
|
70715
70760
|
exports.GrpLayer = GrpLayer;
|
|
70716
|
-
_a = GrpLayer, _GrpLayer_idc = new WeakMap(), _GrpLayer_csvFn = new WeakMap(), _GrpLayer_sBkFn = new WeakMap(), _GrpLayer_sBkFace = new WeakMap(), _GrpLayer_width = new WeakMap(), _GrpLayer_height = new WeakMap(), _GrpLayer_sortAFrameName = function _GrpLayer_sortAFrameName(aFn) {
|
|
70761
|
+
_a = GrpLayer, _GrpLayer_idc = new WeakMap(), _GrpLayer_csvFn = new WeakMap(), _GrpLayer_sBkFn = new WeakMap(), _GrpLayer_sBkFace = new WeakMap(), _GrpLayer_width = new WeakMap(), _GrpLayer_height = new WeakMap(), _GrpLayer_rtTsy = new WeakMap(), _GrpLayer_spTsy = new WeakMap(), _GrpLayer_fncRender = new WeakMap(), _GrpLayer_sortAFrameName = function _GrpLayer_sortAFrameName(aFn) {
|
|
70717
70762
|
const a_base_name = /([^\d]+)\d+\.(\w+)/.exec(aFn[0]);
|
|
70718
70763
|
if (!a_base_name)
|
|
70719
70764
|
return;
|
|
@@ -70795,6 +70840,7 @@ _GrpLayer_elc = { value: new EventListenerCtn_1.EventListenerCtn };
|
|
|
70795
70840
|
_GrpLayer_hFace = { value: {} };
|
|
70796
70841
|
_GrpLayer_main = { value: void 0 };
|
|
70797
70842
|
_GrpLayer_cfg = { value: void 0 };
|
|
70843
|
+
_GrpLayer_appPixi = { value: void 0 };
|
|
70798
70844
|
_GrpLayer_sys = { value: void 0 };
|
|
70799
70845
|
_GrpLayer_glbVol = { value: 1 };
|
|
70800
70846
|
_GrpLayer_movVol = { value: 1 };
|
|
@@ -70901,6 +70947,9 @@ class Layer {
|
|
|
70901
70947
|
return bmn;
|
|
70902
70948
|
throw `${bm_name} はサポートされない blendmode です`;
|
|
70903
70949
|
}
|
|
70950
|
+
get containMovement() { return false; }
|
|
70951
|
+
renderStart() { }
|
|
70952
|
+
renderEnd() { }
|
|
70904
70953
|
clearLay(hArg) {
|
|
70905
70954
|
this.spLay.alpha = 1;
|
|
70906
70955
|
this.spLay.blendMode = pixi_js_1.BLEND_MODES.NORMAL;
|
|
@@ -71038,10 +71087,10 @@ class Layer {
|
|
|
71038
71087
|
static setXYByPos(base, pos, ret) {
|
|
71039
71088
|
if (pos === 'stay')
|
|
71040
71089
|
return;
|
|
71041
|
-
if (base ===
|
|
71042
|
-
throw 'setXYByPos base ===
|
|
71043
|
-
if (ret ===
|
|
71044
|
-
throw 'setXYByPos result ===
|
|
71090
|
+
if (base === undefined)
|
|
71091
|
+
throw 'setXYByPos base === undefined';
|
|
71092
|
+
if (ret === undefined)
|
|
71093
|
+
throw 'setXYByPos result === undefined';
|
|
71045
71094
|
const rct_base = base.getBounds();
|
|
71046
71095
|
const r_absclX = (ret.scale.x < 0) ? -ret.scale.x : ret.scale.x;
|
|
71047
71096
|
const b_width = (r_absclX === 1) ? rct_base.width : rct_base.width * r_absclX;
|
|
@@ -71159,7 +71208,7 @@ class LayerMng {
|
|
|
71159
71208
|
_LayerMng_modeLn.set(this, '');
|
|
71160
71209
|
_LayerMng_modeLnSub.set(this, '');
|
|
71161
71210
|
this.getFrmDisabled = (id) => __classPrivateFieldGet(this, _LayerMng_frmMng, "f").getFrmDisabled(id);
|
|
71162
|
-
_LayerMng_grpCover.set(this,
|
|
71211
|
+
_LayerMng_grpCover.set(this, undefined);
|
|
71163
71212
|
_LayerMng_evtMng.set(this, void 0);
|
|
71164
71213
|
_LayerMng_cmdTxt.set(this, (cmd, tl = this.currentTxtlayForeNeedErr, _record = true) => tl.tagCh('| 《' + cmd + '》'));
|
|
71165
71214
|
this.goTxt = () => { };
|
|
@@ -71217,7 +71266,7 @@ void main(void) {
|
|
|
71217
71266
|
}));
|
|
71218
71267
|
_LayerMng_spTransFore.set(this, new pixi_js_1.Sprite(__classPrivateFieldGet(this, _LayerMng_rtTransFore, "f")));
|
|
71219
71268
|
_LayerMng_aBackTransAfter.set(this, []);
|
|
71220
|
-
_LayerMng_tiTrans.set(this, { tw:
|
|
71269
|
+
_LayerMng_tiTrans.set(this, { tw: undefined, resume: false });
|
|
71221
71270
|
_LayerMng_hTwInf.set(this, {});
|
|
71222
71271
|
_LayerMng_getTxtLayer.set(this, (_hArg) => { __classPrivateFieldGet(this, _LayerMng_chkTxtLay, "f").call(this); throw 0; });
|
|
71223
71272
|
_LayerMng_current.set(this, (_hArg) => { __classPrivateFieldGet(this, _LayerMng_chkTxtLay, "f").call(this); throw 0; });
|
|
@@ -71250,7 +71299,7 @@ void main(void) {
|
|
|
71250
71299
|
}
|
|
71251
71300
|
CmnLib_1.CmnLib.cvsResize(cvs);
|
|
71252
71301
|
TxtLayer_1.TxtLayer.init(cfg, hTag, val, (txt) => this.recText(txt), (me) => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[me.layname].fore === me);
|
|
71253
|
-
GrpLayer_1.GrpLayer.init(main, cfg, sys, sndMng);
|
|
71302
|
+
GrpLayer_1.GrpLayer.init(main, cfg, appPixi, sys, sndMng);
|
|
71254
71303
|
Button_1.Button.init(cfg);
|
|
71255
71304
|
__classPrivateFieldSet(this, _LayerMng_frmMng, new FrameMng_1.FrameMng(this.cfg, this.hTag, this.appPixi, this.val, main, this.sys, __classPrivateFieldGet(this, _LayerMng_hTwInf, "f")), "f");
|
|
71256
71305
|
sys.hFactoryCls.grp = () => new GrpLayer_1.GrpLayer;
|
|
@@ -71336,7 +71385,7 @@ void main(void) {
|
|
|
71336
71385
|
if (__classPrivateFieldGet(this, _LayerMng_grpCover, "f")) {
|
|
71337
71386
|
__classPrivateFieldGet(this, _LayerMng_stage, "f").removeChild(__classPrivateFieldGet(this, _LayerMng_grpCover, "f"));
|
|
71338
71387
|
__classPrivateFieldGet(this, _LayerMng_grpCover, "f").destroy();
|
|
71339
|
-
__classPrivateFieldSet(this, _LayerMng_grpCover,
|
|
71388
|
+
__classPrivateFieldSet(this, _LayerMng_grpCover, undefined, "f");
|
|
71340
71389
|
}
|
|
71341
71390
|
if (visible)
|
|
71342
71391
|
__classPrivateFieldGet(this, _LayerMng_stage, "f").addChild((__classPrivateFieldSet(this, _LayerMng_grpCover, new pixi_js_1.Graphics, "f"))
|
|
@@ -71646,22 +71695,45 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71646
71695
|
const ease = CmnTween_1.CmnTween.ease(hArg.ease);
|
|
71647
71696
|
__classPrivateFieldSet(this, _LayerMng_aBackTransAfter, [], "f");
|
|
71648
71697
|
const hTarget = {};
|
|
71649
|
-
|
|
71650
|
-
__classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_getLayers).call(this).forEach(lay_nm =>
|
|
71698
|
+
const aFore = [];
|
|
71699
|
+
__classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_getLayers).call(this, hArg.layer).forEach(lay_nm => {
|
|
71700
|
+
hTarget[lay_nm] = true;
|
|
71701
|
+
aFore.push(__classPrivateFieldGet(this, _LayerMng_hPages, "f")[lay_nm].fore);
|
|
71702
|
+
});
|
|
71703
|
+
const aBack = [];
|
|
71704
|
+
__classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_getLayers).call(this).forEach(lay_nm => {
|
|
71705
|
+
const lay = __classPrivateFieldGet(this, _LayerMng_hPages, "f")[lay_nm][hTarget[lay_nm] ? 'back' : 'fore'];
|
|
71706
|
+
__classPrivateFieldGet(this, _LayerMng_aBackTransAfter, "f").push(lay.spLay);
|
|
71707
|
+
aBack.push(lay);
|
|
71708
|
+
});
|
|
71651
71709
|
__classPrivateFieldGet(this, _LayerMng_rtTransBack, "f").resize(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
|
|
71652
71710
|
this.appPixi.renderer.render(__classPrivateFieldGet(this, _LayerMng_back, "f"), { renderTexture: __classPrivateFieldGet(this, _LayerMng_rtTransBack, "f") });
|
|
71653
|
-
|
|
71654
|
-
this.appPixi.renderer.render(__classPrivateFieldGet(this, _LayerMng_fore, "f"), { renderTexture: __classPrivateFieldGet(this, _LayerMng_rtTransFore, "f") });
|
|
71655
|
-
const fncRender = () => {
|
|
71711
|
+
let fncRenderBack = () => {
|
|
71656
71712
|
__classPrivateFieldGet(this, _LayerMng_back, "f").visible = true;
|
|
71657
|
-
__classPrivateFieldGet(this, _LayerMng_aBackTransAfter, "f").forEach(
|
|
71658
|
-
this.appPixi.renderer.render(
|
|
71713
|
+
__classPrivateFieldGet(this, _LayerMng_aBackTransAfter, "f").forEach(spLay => {
|
|
71714
|
+
this.appPixi.renderer.render(spLay, { renderTexture: __classPrivateFieldGet(this, _LayerMng_rtTransBack, "f"), clear: false });
|
|
71659
71715
|
});
|
|
71660
71716
|
__classPrivateFieldGet(this, _LayerMng_back, "f").visible = false;
|
|
71661
|
-
|
|
71717
|
+
};
|
|
71718
|
+
if (!aBack.some(lay => lay.containMovement)) {
|
|
71719
|
+
let oldFnc = fncRenderBack;
|
|
71720
|
+
fncRenderBack = () => { fncRenderBack = () => { }; oldFnc(); };
|
|
71721
|
+
}
|
|
71722
|
+
__classPrivateFieldGet(this, _LayerMng_rtTransFore, "f").resize(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
|
|
71723
|
+
this.appPixi.renderer.render(__classPrivateFieldGet(this, _LayerMng_fore, "f"), { renderTexture: __classPrivateFieldGet(this, _LayerMng_rtTransFore, "f") });
|
|
71724
|
+
let fncRenderFore = () => {
|
|
71662
71725
|
__classPrivateFieldGet(this, _LayerMng_fore, "f").visible = true;
|
|
71663
71726
|
this.appPixi.renderer.render(__classPrivateFieldGet(this, _LayerMng_fore, "f"), { renderTexture: __classPrivateFieldGet(this, _LayerMng_rtTransFore, "f") });
|
|
71664
71727
|
__classPrivateFieldGet(this, _LayerMng_fore, "f").visible = false;
|
|
71728
|
+
};
|
|
71729
|
+
if (!aFore.some(lay => lay.containMovement)) {
|
|
71730
|
+
let oldFnc = fncRenderFore;
|
|
71731
|
+
fncRenderFore = () => { fncRenderFore = () => { }; oldFnc(); };
|
|
71732
|
+
}
|
|
71733
|
+
const fncRender = () => {
|
|
71734
|
+
fncRenderBack();
|
|
71735
|
+
__classPrivateFieldGet(this, _LayerMng_spTransBack, "f").visible = true;
|
|
71736
|
+
fncRenderFore();
|
|
71665
71737
|
__classPrivateFieldGet(this, _LayerMng_spTransFore, "f").visible = true;
|
|
71666
71738
|
};
|
|
71667
71739
|
__classPrivateFieldGet(this, _LayerMng_spTransFore, "f").alpha = 1;
|
|
@@ -71691,9 +71763,9 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71691
71763
|
__classPrivateFieldGet(this, _LayerMng_tiTrans, "f").tw?.stop();
|
|
71692
71764
|
if (__classPrivateFieldGet(this, _LayerMng_tiTrans, "f").resume)
|
|
71693
71765
|
this.main.resume();
|
|
71694
|
-
__classPrivateFieldSet(this, _LayerMng_tiTrans, { tw:
|
|
71766
|
+
__classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: undefined, resume: false }, "f");
|
|
71695
71767
|
};
|
|
71696
|
-
__classPrivateFieldSet(this, _LayerMng_tiTrans, { tw:
|
|
71768
|
+
__classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: undefined, resume: false }, "f");
|
|
71697
71769
|
const time = (0, CmnLib_1.argChk_Num)(hArg, 'time', 0);
|
|
71698
71770
|
if (time === 0 || __classPrivateFieldGet(this, _LayerMng_evtMng, "f").isSkippingByKeyDown()) {
|
|
71699
71771
|
comp();
|
|
@@ -71729,7 +71801,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71729
71801
|
}
|
|
71730
71802
|
if (!hArg.rule)
|
|
71731
71803
|
throw 'ruleが指定されていません';
|
|
71732
|
-
GrpLayer_1.GrpLayer.csv2Sprites(hArg.rule,
|
|
71804
|
+
GrpLayer_1.GrpLayer.csv2Sprites(hArg.rule, undefined, sp => {
|
|
71733
71805
|
flt.uniforms.rule = sp.texture;
|
|
71734
71806
|
sp.destroy();
|
|
71735
71807
|
__classPrivateFieldGet(this, _LayerMng_tiTrans, "f").tw?.start();
|
|
@@ -71767,6 +71839,9 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71767
71839
|
return __classPrivateFieldGet(this, _LayerMng_evtMng, "f").waitLimitedEvent(hArg, () => __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_finish_trans).call(this));
|
|
71768
71840
|
}, _LayerMng_finish_trans = function _LayerMng_finish_trans() { __classPrivateFieldGet(this, _LayerMng_tiTrans, "f").tw?.end(); return false; }, _LayerMng_quake = function _LayerMng_quake(hArg) {
|
|
71769
71841
|
__classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_finish_trans).call(this);
|
|
71842
|
+
const time = (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN);
|
|
71843
|
+
if (time === 0)
|
|
71844
|
+
return false;
|
|
71770
71845
|
if (this.val.getVal('tmp:sn.skip.enabled'))
|
|
71771
71846
|
return false;
|
|
71772
71847
|
if (__classPrivateFieldGet(this, _LayerMng_evtMng, "f").isSkippingByKeyDown())
|
|
@@ -71783,7 +71858,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71783
71858
|
};
|
|
71784
71859
|
__classPrivateFieldGet(this, _LayerMng_spTransFore, "f").visible = true;
|
|
71785
71860
|
__classPrivateFieldGet(this, _LayerMng_spTransFore, "f").alpha = 1;
|
|
71786
|
-
const ease = CmnTween_1.CmnTween.ease(hArg.ease);
|
|
71787
71861
|
const h = (0, CmnLib_1.uint)((0, CmnLib_1.argChk_Num)(hArg, 'hmax', 10));
|
|
71788
71862
|
const v = (0, CmnLib_1.uint)((0, CmnLib_1.argChk_Num)(hArg, 'vmax', 10));
|
|
71789
71863
|
const fncH = (h === 0)
|
|
@@ -71795,9 +71869,9 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71795
71869
|
__classPrivateFieldGet(this, _LayerMng_spTransFore, "f").filters = [];
|
|
71796
71870
|
const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
|
|
71797
71871
|
const tw = new tween_js_1.Tween(__classPrivateFieldGet(this, _LayerMng_spTransFore, "f"))
|
|
71798
|
-
.to({ x: 0, y: 0 },
|
|
71872
|
+
.to({ x: 0, y: 0 }, time)
|
|
71799
71873
|
.delay((0, CmnLib_1.argChk_Num)(hArg, 'delay', 0))
|
|
71800
|
-
.easing(ease)
|
|
71874
|
+
.easing(CmnTween_1.CmnTween.ease(hArg.ease))
|
|
71801
71875
|
.onUpdate(() => { fncH(); fncV(); })
|
|
71802
71876
|
.repeat(repeat === 0 ? Infinity : (repeat - 1))
|
|
71803
71877
|
.yoyo((0, CmnLib_1.argChk_Boolean)(hArg, 'yoyo', false))
|
|
@@ -71810,23 +71884,28 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71810
71884
|
__classPrivateFieldGet(this, _LayerMng_tiTrans, "f").tw?.stop();
|
|
71811
71885
|
if (__classPrivateFieldGet(this, _LayerMng_tiTrans, "f").resume)
|
|
71812
71886
|
this.main.resume();
|
|
71813
|
-
__classPrivateFieldSet(this, _LayerMng_tiTrans, { tw:
|
|
71887
|
+
__classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: undefined, resume: false }, "f");
|
|
71814
71888
|
})
|
|
71815
71889
|
.start();
|
|
71816
|
-
__classPrivateFieldSet(this, _LayerMng_tiTrans, { tw
|
|
71890
|
+
__classPrivateFieldSet(this, _LayerMng_tiTrans, { tw, resume: false }, "f");
|
|
71817
71891
|
this.appPixi.ticker.add(fncRender);
|
|
71818
71892
|
return false;
|
|
71819
71893
|
}, _LayerMng_tsy = function _LayerMng_tsy(hArg) {
|
|
71820
71894
|
if (!hArg.layer)
|
|
71821
71895
|
throw 'layerは必須です';
|
|
71822
71896
|
const layer = __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_argChk_layer).call(this, hArg);
|
|
71823
|
-
|
|
71897
|
+
let foreLay = __classPrivateFieldGet(this, _LayerMng_hPages, "f")[layer].fore;
|
|
71898
|
+
let finishBlendLayer = () => { };
|
|
71899
|
+
const isSkip = __classPrivateFieldGet(this, _LayerMng_evtMng, "f").isSkippingByKeyDown();
|
|
71900
|
+
if (!isSkip && 'render' in hArg) {
|
|
71901
|
+
foreLay.renderStart();
|
|
71902
|
+
finishBlendLayer = () => foreLay.renderEnd();
|
|
71903
|
+
}
|
|
71824
71904
|
const hTo = (0, CmnLib_1.cnvTweenArg)(hArg, foreLay);
|
|
71825
71905
|
const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
|
|
71826
71906
|
const tw_nm = hArg.name ?? hArg.layer;
|
|
71827
71907
|
const tw = new tween_js_1.Tween(foreLay)
|
|
71828
|
-
.to(hTo, (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN) * (Boolean(this.val.getVal('tmp:sn.skip.enabled')
|
|
71829
|
-
|| __classPrivateFieldGet(this, _LayerMng_evtMng, "f").isSkippingByKeyDown()) ? 0 : 1))
|
|
71908
|
+
.to(hTo, (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN) * (Boolean(this.val.getVal('tmp:sn.skip.enabled') || isSkip) ? 0 : 1))
|
|
71830
71909
|
.delay((0, CmnLib_1.argChk_Num)(hArg, 'delay', 0))
|
|
71831
71910
|
.easing(CmnTween_1.CmnTween.ease(hArg.ease))
|
|
71832
71911
|
.repeat(repeat === 0 ? Infinity : (repeat - 1))
|
|
@@ -71835,6 +71914,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71835
71914
|
const ti = __classPrivateFieldGet(this, _LayerMng_hTwInf, "f")[tw_nm];
|
|
71836
71915
|
if (!ti)
|
|
71837
71916
|
return;
|
|
71917
|
+
finishBlendLayer();
|
|
71838
71918
|
delete __classPrivateFieldGet(this, _LayerMng_hTwInf, "f")[tw_nm];
|
|
71839
71919
|
ti.tw?.stop();
|
|
71840
71920
|
if (ti.resume)
|
|
@@ -71852,7 +71932,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71852
71932
|
tw.start();
|
|
71853
71933
|
const arrive = (0, CmnLib_1.argChk_Boolean)(hArg, 'arrive', false);
|
|
71854
71934
|
const backlay = (0, CmnLib_1.argChk_Boolean)(hArg, 'backlay', false);
|
|
71855
|
-
__classPrivateFieldGet(this, _LayerMng_hTwInf, "f")[tw_nm] = { tw
|
|
71935
|
+
__classPrivateFieldGet(this, _LayerMng_hTwInf, "f")[tw_nm] = { tw, resume: false, onEnd: () => {
|
|
71856
71936
|
if (arrive)
|
|
71857
71937
|
Object.assign(foreLay, hTo);
|
|
71858
71938
|
if (backlay) {
|
|
@@ -73361,7 +73441,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
|
|
|
73361
73441
|
for (let i = len - 1; i >= 0; --i) {
|
|
73362
73442
|
const cs = __classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f")[i];
|
|
73363
73443
|
const hMp = cs.csArg[':hMp'];
|
|
73364
|
-
const from_macro_nm = hMp ? hMp[':タグ名'] :
|
|
73444
|
+
const from_macro_nm = hMp ? hMp[':タグ名'] : undefined;
|
|
73365
73445
|
const call_nm = cs.csArg[':タグ名'] ?? '';
|
|
73366
73446
|
const lc = __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_cnvIdx2lineCol).call(this, __classPrivateFieldGet(this, _ScriptIterator_hScript, "f")[cs.fn], cs.idx);
|
|
73367
73447
|
console.info(`${len - i}つ前のコール元 fn:${cs.fn} line:${lc.ln} col:${lc.col_s + 1}` + (from_macro_nm ? '([' + from_macro_nm + ']マクロ内)' : ' ') +
|
|
@@ -74085,18 +74165,21 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74085
74165
|
this.val.setVal_Nochk('save', 'const.sn.sound.' + buf + '.fn', '');
|
|
74086
74166
|
}
|
|
74087
74167
|
this.val.flush();
|
|
74088
|
-
|
|
74168
|
+
const time = (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN);
|
|
74169
|
+
const delay = (0, CmnLib_1.argChk_Num)(hArg, 'delay', 0);
|
|
74170
|
+
if ((time === 0 && delay === 0)
|
|
74171
|
+
|| this.val.getVal('tmp:sn.skip.enabled')
|
|
74172
|
+
|| __classPrivateFieldGet(this, _SoundMng_evtMng, "f").isSkippingByKeyDown()) {
|
|
74089
74173
|
oSb.snd.volume = vol;
|
|
74090
74174
|
if (stop)
|
|
74091
74175
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, hArg);
|
|
74092
74176
|
return false;
|
|
74093
74177
|
}
|
|
74094
|
-
const ease = CmnTween_1.CmnTween.ease(hArg.ease);
|
|
74095
74178
|
const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
|
|
74096
74179
|
oSb.twFade = new tween_js_1.Tween({ v: oSb.snd.volume })
|
|
74097
|
-
.to({ v: vol },
|
|
74098
|
-
.delay(
|
|
74099
|
-
.easing(ease)
|
|
74180
|
+
.to({ v: vol }, time)
|
|
74181
|
+
.delay(delay)
|
|
74182
|
+
.easing(CmnTween_1.CmnTween.ease(hArg.ease))
|
|
74100
74183
|
.repeat(repeat === 0 ? Infinity : (repeat - 1))
|
|
74101
74184
|
.yoyo((0, CmnLib_1.argChk_Boolean)(hArg, 'yoyo', false))
|
|
74102
74185
|
.onUpdate(o => { if (oSb.playing())
|
|
@@ -74430,7 +74513,7 @@ class SysBase {
|
|
|
74430
74513
|
this.reso4frame = 1;
|
|
74431
74514
|
this.data = { sys: {}, mark: {}, kidoku: {} };
|
|
74432
74515
|
this.extPort = 3776;
|
|
74433
|
-
_SysBase_sk.set(this,
|
|
74516
|
+
_SysBase_sk.set(this, undefined);
|
|
74434
74517
|
_SysBase_hHook.set(this, {
|
|
74435
74518
|
auth: o => {
|
|
74436
74519
|
if (o.t !== this.cfg.oCfg.debuger_token) {
|
|
@@ -74636,7 +74719,7 @@ class SysBase {
|
|
|
74636
74719
|
}
|
|
74637
74720
|
end() {
|
|
74638
74721
|
__classPrivateFieldGet(this, _SysBase_sk, "f")?.disconnect();
|
|
74639
|
-
__classPrivateFieldSet(this, _SysBase_sk,
|
|
74722
|
+
__classPrivateFieldSet(this, _SysBase_sk, undefined, "f");
|
|
74640
74723
|
}
|
|
74641
74724
|
toast(nm) {
|
|
74642
74725
|
const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
|
|
@@ -74757,7 +74840,7 @@ class SysWeb extends SysBase_1.SysBase {
|
|
|
74757
74840
|
}
|
|
74758
74841
|
__classPrivateFieldSet(this, _SysWeb_main, new Main_1.Main(this), "f");
|
|
74759
74842
|
};
|
|
74760
|
-
_SysWeb_main.set(this,
|
|
74843
|
+
_SysWeb_main.set(this, undefined);
|
|
74761
74844
|
this.pathBaseCnvSnPath4Dbg = '${pathbase}/';
|
|
74762
74845
|
this._export = () => {
|
|
74763
74846
|
(async () => {
|
|
@@ -74896,7 +74979,7 @@ class SysWeb extends SysBase_1.SysBase {
|
|
|
74896
74979
|
if (!__classPrivateFieldGet(this, _SysWeb_main, "f"))
|
|
74897
74980
|
return;
|
|
74898
74981
|
__classPrivateFieldGet(this, _SysWeb_main, "f").destroy();
|
|
74899
|
-
__classPrivateFieldSet(this, _SysWeb_main,
|
|
74982
|
+
__classPrivateFieldSet(this, _SysWeb_main, undefined, "f");
|
|
74900
74983
|
}
|
|
74901
74984
|
async loadPath(hPathFn2Exts, cfg) {
|
|
74902
74985
|
await super.loadPath(hPathFn2Exts, cfg);
|
|
@@ -75050,7 +75133,7 @@ class TxtLayer extends Layer_1.Layer {
|
|
|
75050
75133
|
_TxtLayer_b_color.set(this, 0x000000);
|
|
75051
75134
|
_TxtLayer_b_alpha.set(this, 0);
|
|
75052
75135
|
_TxtLayer_b_alpha_isfixed.set(this, false);
|
|
75053
|
-
_TxtLayer_b_do.set(this,
|
|
75136
|
+
_TxtLayer_b_do.set(this, undefined);
|
|
75054
75137
|
_TxtLayer_b_pic.set(this, '');
|
|
75055
75138
|
_TxtLayer_txs.set(this, new TxtStage_1.TxtStage(this.spLay, () => this.canFocus()));
|
|
75056
75139
|
_TxtLayer_rbSpl.set(this, new RubySpliter_1.RubySpliter);
|
|
@@ -75306,7 +75389,7 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
|
|
|
75306
75389
|
_TxtLayer_cumDelay.set(this, 0);
|
|
75307
75390
|
_TxtLayer_firstCh.set(this, true);
|
|
75308
75391
|
_TxtLayer_aSpan.set(this, []);
|
|
75309
|
-
_TxtLayer_aSpan_bk.set(this,
|
|
75392
|
+
_TxtLayer_aSpan_bk.set(this, undefined);
|
|
75310
75393
|
_TxtLayer_aSpan_link.set(this, '');
|
|
75311
75394
|
_TxtLayer_hSpanBk.set(this, {
|
|
75312
75395
|
ch_in_style: '',
|
|
@@ -75330,8 +75413,8 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
|
|
|
75330
75413
|
this.record = () => Object.assign(super.record(), {
|
|
75331
75414
|
enabled: this.enabled,
|
|
75332
75415
|
r_align: __classPrivateFieldGet(this, _TxtLayer_r_align, "f"),
|
|
75333
|
-
b_do: (__classPrivateFieldGet(this, _TxtLayer_b_do, "f") ===
|
|
75334
|
-
?
|
|
75416
|
+
b_do: (__classPrivateFieldGet(this, _TxtLayer_b_do, "f") === undefined)
|
|
75417
|
+
? undefined
|
|
75335
75418
|
: (__classPrivateFieldGet(this, _TxtLayer_b_do, "f") instanceof pixi_js_1.Sprite ? 'Sprite' : 'Graphics'),
|
|
75336
75419
|
b_pic: __classPrivateFieldGet(this, _TxtLayer_b_pic, "f"),
|
|
75337
75420
|
b_color: __classPrivateFieldGet(this, _TxtLayer_b_color, "f"),
|
|
@@ -75419,7 +75502,7 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
|
|
|
75419
75502
|
destroy() {
|
|
75420
75503
|
if (__classPrivateFieldGet(this, _TxtLayer_b_do, "f")) {
|
|
75421
75504
|
this.spLay.removeChild(__classPrivateFieldGet(this, _TxtLayer_b_do, "f")).destroy();
|
|
75422
|
-
__classPrivateFieldSet(this, _TxtLayer_b_do,
|
|
75505
|
+
__classPrivateFieldSet(this, _TxtLayer_b_do, undefined, "f");
|
|
75423
75506
|
}
|
|
75424
75507
|
this.clearText();
|
|
75425
75508
|
__classPrivateFieldGet(this, _TxtLayer_txs, "f").destroy();
|
|
@@ -75516,7 +75599,7 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
|
|
|
75516
75599
|
__classPrivateFieldSet(this, _TxtLayer_cumDelay, 0, "f");
|
|
75517
75600
|
__classPrivateFieldSet(this, _TxtLayer_firstCh, true, "f");
|
|
75518
75601
|
__classPrivateFieldSet(this, _TxtLayer_aSpan, [], "f");
|
|
75519
|
-
__classPrivateFieldSet(this, _TxtLayer_aSpan_bk,
|
|
75602
|
+
__classPrivateFieldSet(this, _TxtLayer_aSpan_bk, undefined, "f");
|
|
75520
75603
|
__classPrivateFieldSet(this, _TxtLayer_page_text, '', "f");
|
|
75521
75604
|
__classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_recText).call(TxtLayer, '', true);
|
|
75522
75605
|
}
|
|
@@ -75807,7 +75890,7 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
|
|
|
75807
75890
|
return;
|
|
75808
75891
|
__classPrivateFieldGet(this, _TxtLayer_aSpan_bk, "f").push(__classPrivateFieldGet(this, _TxtLayer_aSpan, "f"), '</span>');
|
|
75809
75892
|
__classPrivateFieldSet(this, _TxtLayer_aSpan, Array.prototype.concat.apply([], __classPrivateFieldGet(this, _TxtLayer_aSpan_bk, "f")), "f");
|
|
75810
|
-
__classPrivateFieldSet(this, _TxtLayer_aSpan_bk,
|
|
75893
|
+
__classPrivateFieldSet(this, _TxtLayer_aSpan_bk, undefined, "f");
|
|
75811
75894
|
__classPrivateFieldGet(this, _TxtLayer_instances, "m", _TxtLayer_set_ch_in).call(this, { in_style: __classPrivateFieldGet(this, _TxtLayer_hSpanBk, "f").ch_in_style });
|
|
75812
75895
|
__classPrivateFieldGet(this, _TxtLayer_instances, "m", _TxtLayer_set_ch_out).call(this, { out_style: __classPrivateFieldGet(this, _TxtLayer_hSpanBk, "f").ch_out_style });
|
|
75813
75896
|
__classPrivateFieldSet(this, _TxtLayer_r_align, __classPrivateFieldGet(this, _TxtLayer_hSpanBk, "f").r_align, "f");
|
|
@@ -75883,18 +75966,18 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
75883
75966
|
_TxtStage_isTategaki.set(this, false);
|
|
75884
75967
|
_TxtStage_padTx4x.set(this, 0);
|
|
75885
75968
|
_TxtStage_padTx4y.set(this, 0);
|
|
75886
|
-
_TxtStage_ch_filter.set(this,
|
|
75969
|
+
_TxtStage_ch_filter.set(this, undefined);
|
|
75887
75970
|
_TxtStage_aSpTw.set(this, []);
|
|
75888
75971
|
_TxtStage_aRect.set(this, []);
|
|
75889
75972
|
_TxtStage_lenHtmTxt.set(this, 0);
|
|
75890
|
-
_TxtStage_beforeHTMLElm.set(this,
|
|
75973
|
+
_TxtStage_beforeHTMLElm.set(this, undefined);
|
|
75891
75974
|
_TxtStage_REGDS.set(this, /animation\-duration: (?<ms>\d+)ms;/);
|
|
75892
75975
|
_TxtStage_fncEndChIn.set(this, () => { });
|
|
75893
75976
|
_TxtStage_isChInIng.set(this, false);
|
|
75894
75977
|
_TxtStage_lh_half.set(this, 0);
|
|
75895
75978
|
_TxtStage_fi_easing.set(this, 'Quadratic.Out');
|
|
75896
75979
|
_TxtStage_fo_easing.set(this, 'Quadratic.Out');
|
|
75897
|
-
_TxtStage_sss.set(this,
|
|
75980
|
+
_TxtStage_sss.set(this, undefined);
|
|
75898
75981
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").classList.add('sn_tx');
|
|
75899
75982
|
__classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.position = 'absolute';
|
|
75900
75983
|
__classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_cvs).parentElement.appendChild(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f"));
|
|
@@ -76183,7 +76266,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76183
76266
|
__classPrivateFieldGet(this, _TxtStage_fncEndChIn, "f").call(this);
|
|
76184
76267
|
return;
|
|
76185
76268
|
}
|
|
76186
|
-
let le =
|
|
76269
|
+
let le = undefined;
|
|
76187
76270
|
for (let i = len_chs - 1; i >= 0; --i) {
|
|
76188
76271
|
const v = chs[i];
|
|
76189
76272
|
if (v.className === 'sn_ch')
|
|
@@ -76355,7 +76438,7 @@ class TxtStage extends pixi_js_1.Container {
|
|
|
76355
76438
|
snapshot_end() {
|
|
76356
76439
|
if (__classPrivateFieldGet(this, _TxtStage_sss, "f")) {
|
|
76357
76440
|
__classPrivateFieldGet(this, _TxtStage_cntTxt, "f").removeChild(__classPrivateFieldGet(this, _TxtStage_sss, "f"));
|
|
76358
|
-
__classPrivateFieldSet(this, _TxtStage_sss,
|
|
76441
|
+
__classPrivateFieldSet(this, _TxtStage_sss, undefined, "f");
|
|
76359
76442
|
}
|
|
76360
76443
|
}
|
|
76361
76444
|
makeDesignCast(gdc) {
|
|
@@ -76662,7 +76745,7 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
|
|
|
76662
76745
|
.easing(ease)
|
|
76663
76746
|
.delay((add.wait ?? 0) + (arg.delay ?? 0))
|
|
76664
76747
|
.onComplete(() => {
|
|
76665
|
-
st.tw =
|
|
76748
|
+
st.tw = undefined;
|
|
76666
76749
|
})
|
|
76667
76750
|
.start(),
|
|
76668
76751
|
};
|
|
@@ -76958,14 +77041,6 @@ class Variable {
|
|
|
76958
77041
|
const a = [];
|
|
76959
77042
|
Object.keys(__classPrivateFieldGet(this, _Variable_data, "f").mark).sort().forEach(k => {
|
|
76960
77043
|
const o = { ...__classPrivateFieldGet(this, _Variable_data, "f").mark[k].json };
|
|
76961
|
-
for (const key in o) {
|
|
76962
|
-
const v = o[key];
|
|
76963
|
-
if (typeof v !== 'string')
|
|
76964
|
-
continue;
|
|
76965
|
-
if (v.slice(0, 10) !== 'userdata:/')
|
|
76966
|
-
continue;
|
|
76967
|
-
o[key] = cfg.searchPath(v);
|
|
76968
|
-
}
|
|
76969
77044
|
o.place = k;
|
|
76970
77045
|
a.push(o);
|
|
76971
77046
|
});
|