@drincs/pixi-vn 1.0.0 → 1.0.2
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/dist/canvas/CanvasManager.cjs +1 -1
- package/dist/canvas/CanvasManager.js +1 -1
- package/dist/canvas/CanvasManagerStatic.cjs +1 -1
- package/dist/canvas/CanvasManagerStatic.js +1 -1
- package/dist/canvas/components/Container.cjs +1 -1
- package/dist/canvas/components/Container.js +1 -1
- package/dist/canvas/components/ImageContainer.cjs +1 -1
- package/dist/canvas/components/ImageContainer.js +1 -1
- package/dist/canvas/components/ImageSprite.cjs +1 -1
- package/dist/canvas/components/ImageSprite.js +1 -1
- package/dist/canvas/components/Sprite.cjs +1 -1
- package/dist/canvas/components/Sprite.js +1 -1
- package/dist/canvas/components/Text.cjs +1 -1
- package/dist/canvas/components/Text.js +1 -1
- package/dist/canvas/components/VideoSprite.cjs +1 -1
- package/dist/canvas/components/VideoSprite.js +1 -1
- package/dist/canvas/decorators/canvas-element-decorator.cjs +1 -1
- package/dist/canvas/decorators/canvas-element-decorator.js +1 -1
- package/dist/canvas/decorators/event-decorator.cjs +1 -1
- package/dist/canvas/decorators/event-decorator.d.cts +1 -3
- package/dist/canvas/decorators/event-decorator.d.ts +1 -3
- package/dist/canvas/decorators/event-decorator.js +1 -1
- package/dist/canvas/functions/canvas-effect.cjs +1 -1
- package/dist/canvas/functions/canvas-effect.js +1 -1
- package/dist/canvas/functions/canvas-import-utility.cjs +1 -1
- package/dist/canvas/functions/canvas-import-utility.js +1 -1
- package/dist/canvas/functions/canvas-property-utility.cjs +1 -1
- package/dist/canvas/functions/canvas-property-utility.js +1 -1
- package/dist/canvas/functions/canvas-transition.cjs +1 -1
- package/dist/canvas/functions/canvas-transition.js +1 -1
- package/dist/canvas/functions/image-container-utility.cjs +1 -1
- package/dist/canvas/functions/image-container-utility.js +1 -1
- package/dist/canvas/functions/image-utility.cjs +1 -1
- package/dist/canvas/functions/image-utility.js +1 -1
- package/dist/canvas/functions/ticker-utility.cjs +1 -1
- package/dist/canvas/functions/ticker-utility.js +1 -1
- package/dist/canvas/functions/video-utility.cjs +1 -1
- package/dist/canvas/functions/video-utility.js +1 -1
- package/dist/canvas/index.cjs +1 -1
- package/dist/canvas/index.js +1 -1
- package/dist/canvas/tickers/classes/TickerBase.cjs +1 -1
- package/dist/canvas/tickers/classes/TickerBase.js +1 -1
- package/dist/canvas/tickers/components/FadeAlphaTicker.cjs +1 -1
- package/dist/canvas/tickers/components/FadeAlphaTicker.js +1 -1
- package/dist/canvas/tickers/components/MoveTicker.cjs +1 -1
- package/dist/canvas/tickers/components/MoveTicker.js +1 -1
- package/dist/canvas/tickers/components/RotateTicker.cjs +1 -1
- package/dist/canvas/tickers/components/RotateTicker.js +1 -1
- package/dist/canvas/tickers/components/ZoomTicker.cjs +1 -1
- package/dist/canvas/tickers/components/ZoomTicker.js +1 -1
- package/dist/canvas/tickers/decorators/ticker-decorator.cjs +1 -1
- package/dist/canvas/tickers/decorators/ticker-decorator.d.cts +1 -3
- package/dist/canvas/tickers/decorators/ticker-decorator.d.ts +1 -3
- package/dist/canvas/tickers/decorators/ticker-decorator.js +1 -1
- package/dist/canvas/tickers/index.cjs +1 -1
- package/dist/canvas/tickers/index.js +1 -1
- package/dist/character/decorators/character-decorator.cjs +1 -1
- package/dist/character/decorators/character-decorator.d.cts +1 -3
- package/dist/character/decorators/character-decorator.d.ts +1 -3
- package/dist/character/decorators/character-decorator.js +1 -1
- package/dist/character/index.cjs +1 -1
- package/dist/character/index.js +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/history/HistoryManager.cjs +1 -1
- package/dist/history/HistoryManager.d.cts +1 -1
- package/dist/history/HistoryManager.d.ts +1 -1
- package/dist/history/HistoryManager.js +1 -1
- package/dist/history/HistoryManagerStatic.d.cts +1 -1
- package/dist/history/HistoryManagerStatic.d.ts +1 -1
- package/dist/history/index.cjs +1 -1
- package/dist/history/index.d.cts +1 -1
- package/dist/history/index.d.ts +1 -1
- package/dist/history/index.js +1 -1
- package/dist/history/interfaces/HistoryGameState.d.cts +1 -1
- package/dist/history/interfaces/HistoryGameState.d.ts +1 -1
- package/dist/history/interfaces/HistoryManagerInterface.d.cts +1 -1
- package/dist/history/interfaces/HistoryManagerInterface.d.ts +1 -1
- package/dist/{index-Bo5b5ojv.d.cts → index-A4Zf-9mB.d.cts} +4 -4
- package/dist/{index-b75SF7z8.d.ts → index-DwELdyJt.d.ts} +4 -4
- package/dist/index.cjs +101 -101
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +101 -101
- package/dist/interfaces/GameState.d.cts +1 -1
- package/dist/interfaces/GameState.d.ts +1 -1
- package/dist/interfaces/index.d.cts +1 -1
- package/dist/interfaces/index.d.ts +1 -1
- package/dist/narration/NarrationManager.cjs +32 -32
- package/dist/narration/NarrationManager.d.cts +7 -7
- package/dist/narration/NarrationManager.d.ts +7 -7
- package/dist/narration/NarrationManager.js +32 -32
- package/dist/narration/NarrationManagerStatic.cjs +51 -51
- package/dist/narration/NarrationManagerStatic.d.cts +1 -1
- package/dist/narration/NarrationManagerStatic.d.ts +1 -1
- package/dist/narration/NarrationManagerStatic.js +51 -51
- package/dist/narration/classes/ChoiceMenuOption.cjs +1 -1
- package/dist/narration/classes/ChoiceMenuOption.js +1 -1
- package/dist/narration/classes/CloseLabel.cjs +1 -1
- package/dist/narration/classes/CloseLabel.d.cts +1 -1
- package/dist/narration/classes/CloseLabel.d.ts +1 -1
- package/dist/narration/classes/CloseLabel.js +1 -1
- package/dist/narration/classes/Label.cjs +1 -1
- package/dist/narration/classes/Label.js +1 -1
- package/dist/narration/classes/LabelAbstract.cjs +1 -1
- package/dist/narration/classes/LabelAbstract.d.cts +2 -6
- package/dist/narration/classes/LabelAbstract.d.ts +2 -6
- package/dist/narration/classes/LabelAbstract.js +1 -1
- package/dist/narration/decorators/label-decorator.cjs +1 -1
- package/dist/narration/decorators/label-decorator.d.cts +17 -28
- package/dist/narration/decorators/label-decorator.d.ts +17 -28
- package/dist/narration/decorators/label-decorator.js +1 -1
- package/dist/narration/decorators/newLabel.cjs +1 -0
- package/dist/narration/decorators/newLabel.d.cts +18 -0
- package/dist/narration/decorators/newLabel.d.ts +18 -0
- package/dist/narration/decorators/newLabel.js +1 -0
- package/dist/narration/index.cjs +49 -49
- package/dist/narration/index.d.cts +3 -2
- package/dist/narration/index.d.ts +3 -2
- package/dist/narration/index.js +49 -49
- package/dist/narration/interfaces/HistoryStep.d.cts +1 -1
- package/dist/narration/interfaces/HistoryStep.d.ts +1 -1
- package/dist/narration/interfaces/NarrationGameState.d.cts +1 -1
- package/dist/narration/interfaces/NarrationGameState.d.ts +1 -1
- package/dist/narration/interfaces/NarrationManagerInterface.d.cts +7 -7
- package/dist/narration/interfaces/NarrationManagerInterface.d.ts +7 -7
- package/dist/narration/types/ChoiceMenuOptionsType.d.cts +1 -1
- package/dist/narration/types/ChoiceMenuOptionsType.d.ts +1 -1
- package/dist/pixi-devtools/additionalPositionsProperties.cjs +1 -1
- package/dist/pixi-devtools/additionalPositionsProperties.js +1 -1
- package/dist/sound/SoundManager.cjs +48 -48
- package/dist/sound/SoundManager.js +48 -48
- package/dist/sound/index.cjs +48 -48
- package/dist/sound/index.js +48 -48
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var J=Object.create;var M=Object.defineProperty;var K=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var X=Object.getPrototypeOf,Y=Object.prototype.hasOwnProperty;var A=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var N=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports);var Z=(r,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Q(t))!Y.call(r,i)&&i!==n&&M(r,i,{get:()=>t[i],enumerable:!(a=K(t,i))||a.enumerable});return r};var ee=(r,t,n)=>(n=r!=null?J(X(r)):{},Z(M(n,"default",{value:r,enumerable:true}),r));var j=N((B,$)=>{(function(r,t){typeof B=="object"?$.exports=B=t():typeof define=="function"&&define.amd?define([],t):r.CryptoJS=t();})(B,function(){var r=r||function(t,n){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof global<"u"&&global.crypto&&(a=global.crypto),!a&&typeof A=="function")try{a=A("crypto");}catch{}var i=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},g=Object.create||function(){function e(){}return function(o){var s;return e.prototype=o,s=new e,e.prototype=null,s}}(),c={},x=c.lib={},b=x.Base=function(){return {extend:function(e){var o=g(this);return e&&o.mixIn(e),(!o.hasOwnProperty("init")||this.init===o.init)&&(o.init=function(){o.$super.init.apply(this,arguments);}),o.init.prototype=o,o.$super=this,o},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var o in e)e.hasOwnProperty(o)&&(this[o]=e[o]);e.hasOwnProperty("toString")&&(this.toString=e.toString);},clone:function(){return this.init.prototype.extend(this)}}}(),y=x.WordArray=b.extend({init:function(e,o){e=this.words=e||[],o!=n?this.sigBytes=o:this.sigBytes=e.length*4;},toString:function(e){return (e||m).stringify(this)},concat:function(e){var o=this.words,s=e.words,l=this.sigBytes,d=e.sigBytes;if(this.clamp(),l%4)for(var u=0;u<d;u++){var O=s[u>>>2]>>>24-u%4*8&255;o[l+u>>>2]|=O<<24-(l+u)%4*8;}else for(var L=0;L<d;L+=4)o[l+L>>>2]=s[L>>>2];return this.sigBytes+=d,this},clamp:function(){var e=this.words,o=this.sigBytes;e[o>>>2]&=4294967295<<32-o%4*8,e.length=t.ceil(o/4);},clone:function(){var e=b.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var o=[],s=0;s<e;s+=4)o.push(i());return new y.init(o,e)}}),p=c.enc={},m=p.Hex={stringify:function(e){for(var o=e.words,s=e.sigBytes,l=[],d=0;d<s;d++){var u=o[d>>>2]>>>24-d%4*8&255;l.push((u>>>4).toString(16)),l.push((u&15).toString(16));}return l.join("")},parse:function(e){for(var o=e.length,s=[],l=0;l<o;l+=2)s[l>>>3]|=parseInt(e.substr(l,2),16)<<24-l%8*4;return new y.init(s,o/2)}},h=p.Latin1={stringify:function(e){for(var o=e.words,s=e.sigBytes,l=[],d=0;d<s;d++){var u=o[d>>>2]>>>24-d%4*8&255;l.push(String.fromCharCode(u));}return l.join("")},parse:function(e){for(var o=e.length,s=[],l=0;l<o;l++)s[l>>>2]|=(e.charCodeAt(l)&255)<<24-l%4*8;return new y.init(s,o)}},v=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},T=x.BufferedBlockAlgorithm=b.extend({reset:function(){this._data=new y.init,this._nDataBytes=0;},_append:function(e){typeof e=="string"&&(e=v.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes;},_process:function(e){var o,s=this._data,l=s.words,d=s.sigBytes,u=this.blockSize,O=u*4,L=d/O;e?L=t.ceil(L):L=t.max((L|0)-this._minBufferSize,0);var w=L*u,D=t.min(w*4,d);if(w){for(var P=0;P<w;P+=u)this._doProcessBlock(l,P);o=l.splice(0,w),s.sigBytes-=D;}return new y.init(o,D)},clone:function(){var e=b.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});x.Hasher=T.extend({cfg:b.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset();},reset:function(){T.reset.call(this),this._doReset();},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var o=this._doFinalize();return o},blockSize:512/32,_createHelper:function(e){return function(o,s){return new e.init(s).finalize(o)}},_createHmacHelper:function(e){return function(o,s){return new f.HMAC.init(e,s).finalize(o)}}});var f=c.algo={};return c}(Math);return r});});var F=N((R,U)=>{(function(r,t){typeof R=="object"?U.exports=R=t(j()):typeof define=="function"&&define.amd?define(["./core"],t):t(r.CryptoJS);})(R,function(r){return function(){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,g=t.algo,c=[],x=g.SHA1=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(b,y){for(var p=this._hash.words,m=p[0],h=p[1],v=p[2],T=p[3],C=p[4],f=0;f<80;f++){if(f<16)c[f]=b[y+f]|0;else {var e=c[f-3]^c[f-8]^c[f-14]^c[f-16];c[f]=e<<1|e>>>31;}var o=(m<<5|m>>>27)+C+c[f];f<20?o+=(h&v|~h&T)+1518500249:f<40?o+=(h^v^T)+1859775393:f<60?o+=(h&v|h&T|v&T)-1894007588:o+=(h^v^T)-899497514,C=T,T=v,v=h<<30|h>>>2,h=m,m=o;}p[0]=p[0]+m|0,p[1]=p[1]+h|0,p[2]=p[2]+v|0,p[3]=p[3]+T|0,p[4]=p[4]+C|0;},_doFinalize:function(){var b=this._data,y=b.words,p=this._nDataBytes*8,m=b.sigBytes*8;return y[m>>>5]|=128<<24-m%32,y[(m+64>>>9<<4)+14]=Math.floor(p/4294967296),y[(m+64>>>9<<4)+15]=p,b.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var b=i.clone.call(this);return b._hash=this._hash.clone(),b}});t.SHA1=i._createHelper(x),t.HmacSHA1=i._createHmacHelper(x);}(),r.SHA1});});var S;(i=>(i.log=(g,...c)=>console.log(`[Pixi\u2019VN] ${g}`,...c),i.warn=(g,...c)=>console.warn(`[Pixi\u2019VN] ${g}`,...c),i.error=(g,...c)=>console.error(`[Pixi\u2019VN] ${g}`,...c),i.info=(g,...c)=>console.info(`[Pixi\u2019VN] ${g}`,...c)))(S||={});var z=new Map,W;(n=>{function r(a){let i=z.get(a);if(!i){S.error(`Label ${a} not found`);return}return i}n.get=r;function t(a){z.set(a.id,a);}n.add=t;})(W||={});var k=W;var V="close";var q=ee(F());var _=class{constructor(t,n){this._id=t,this._onStepStart=n?.onStepStart,this._onLoadingLabel=n?.onLoadingLabel,this._onStepEnd=n?.onStepEnd;}_id;get id(){return this._id}_onStepStart;get onStepStart(){return async(t,n)=>{if(this._onLoadingLabel&&t===0&&await this._onLoadingLabel(t,n),this._onStepStart)return await this._onStepStart(t,n)}}_onLoadingLabel;get onLoadingLabel(){return this._onLoadingLabel}_onStepEnd;get onStepEnd(){return this._onStepEnd}};var I=class extends _{get stepCount(){return this.steps.length}getStepById(t){return this.steps[t]}constructor(t,n,a){super(t,a),this._steps=n;}_steps;get steps(){return typeof this._steps=="function"?this._steps():this._steps}getStepSha(t){if(t<0||t>=this.steps.length)return S.warn("stepSha not found, setting to ERROR"),"error";try{let n=this.steps[t];return (0,q.default)(n.toString().toLocaleLowerCase()).toString()}catch(n){return S.warn("stepSha not found, setting to ERROR",n),"error"}}};var te="__close-label-id__";function H(){return new I(te,[],{})}var E=class{text;_label;get label(){let t=this._label;if(typeof t=="string"){let n=k.get(t);n?t=n:(S.error(`Label ${t} not found, so it will be closed`),t=H());}return t}type;oneTime;onlyHaveNoChoice;autoSelect;choiseIndex;props={};constructor(t,n,a,i){this.text=t,this._label=n,this.type=i?.type||"call",this.oneTime=i?.oneTime||false,this.onlyHaveNoChoice=i?.onlyHaveNoChoice||false,this.autoSelect=i?.autoSelect||false,this.choiseIndex=i?.choiseIndex,a&&(this.props=a);}},G=class{label=H();text;closeCurrentLabel;type=V;oneTime;onlyHaveNoChoice;autoSelect;choiseIndex;props={};constructor(t,n){this.text=t,this.closeCurrentLabel=n?.closeCurrentLabel||false,this.oneTime=n?.oneTime||false,this.onlyHaveNoChoice=n?.onlyHaveNoChoice||false,this.autoSelect=n?.autoSelect||false,this.choiseIndex=n?.choiseIndex;}};exports.ChoiceMenuOptionClose=G;exports.default=E;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var J=Object.create;var M=Object.defineProperty;var K=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var X=Object.getPrototypeOf,Y=Object.prototype.hasOwnProperty;var A=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var N=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports);var Z=(r,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Q(t))!Y.call(r,i)&&i!==n&&M(r,i,{get:()=>t[i],enumerable:!(a=K(t,i))||a.enumerable});return r};var ee=(r,t,n)=>(n=r!=null?J(X(r)):{},Z(M(n,"default",{value:r,enumerable:true}),r));var j=N((B,$)=>{(function(r,t){typeof B=="object"?$.exports=B=t():typeof define=="function"&&define.amd?define([],t):r.CryptoJS=t();})(B,function(){var r=r||function(t,n){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof global<"u"&&global.crypto&&(a=global.crypto),!a&&typeof A=="function")try{a=A("crypto");}catch{}var i=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},g=Object.create||function(){function e(){}return function(o){var s;return e.prototype=o,s=new e,e.prototype=null,s}}(),c={},x=c.lib={},b=x.Base=function(){return {extend:function(e){var o=g(this);return e&&o.mixIn(e),(!o.hasOwnProperty("init")||this.init===o.init)&&(o.init=function(){o.$super.init.apply(this,arguments);}),o.init.prototype=o,o.$super=this,o},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var o in e)e.hasOwnProperty(o)&&(this[o]=e[o]);e.hasOwnProperty("toString")&&(this.toString=e.toString);},clone:function(){return this.init.prototype.extend(this)}}}(),y=x.WordArray=b.extend({init:function(e,o){e=this.words=e||[],o!=n?this.sigBytes=o:this.sigBytes=e.length*4;},toString:function(e){return (e||m).stringify(this)},concat:function(e){var o=this.words,s=e.words,l=this.sigBytes,d=e.sigBytes;if(this.clamp(),l%4)for(var u=0;u<d;u++){var O=s[u>>>2]>>>24-u%4*8&255;o[l+u>>>2]|=O<<24-(l+u)%4*8;}else for(var L=0;L<d;L+=4)o[l+L>>>2]=s[L>>>2];return this.sigBytes+=d,this},clamp:function(){var e=this.words,o=this.sigBytes;e[o>>>2]&=4294967295<<32-o%4*8,e.length=t.ceil(o/4);},clone:function(){var e=b.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var o=[],s=0;s<e;s+=4)o.push(i());return new y.init(o,e)}}),p=c.enc={},m=p.Hex={stringify:function(e){for(var o=e.words,s=e.sigBytes,l=[],d=0;d<s;d++){var u=o[d>>>2]>>>24-d%4*8&255;l.push((u>>>4).toString(16)),l.push((u&15).toString(16));}return l.join("")},parse:function(e){for(var o=e.length,s=[],l=0;l<o;l+=2)s[l>>>3]|=parseInt(e.substr(l,2),16)<<24-l%8*4;return new y.init(s,o/2)}},h=p.Latin1={stringify:function(e){for(var o=e.words,s=e.sigBytes,l=[],d=0;d<s;d++){var u=o[d>>>2]>>>24-d%4*8&255;l.push(String.fromCharCode(u));}return l.join("")},parse:function(e){for(var o=e.length,s=[],l=0;l<o;l++)s[l>>>2]|=(e.charCodeAt(l)&255)<<24-l%4*8;return new y.init(s,o)}},v=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},T=x.BufferedBlockAlgorithm=b.extend({reset:function(){this._data=new y.init,this._nDataBytes=0;},_append:function(e){typeof e=="string"&&(e=v.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes;},_process:function(e){var o,s=this._data,l=s.words,d=s.sigBytes,u=this.blockSize,O=u*4,L=d/O;e?L=t.ceil(L):L=t.max((L|0)-this._minBufferSize,0);var w=L*u,D=t.min(w*4,d);if(w){for(var P=0;P<w;P+=u)this._doProcessBlock(l,P);o=l.splice(0,w),s.sigBytes-=D;}return new y.init(o,D)},clone:function(){var e=b.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});x.Hasher=T.extend({cfg:b.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset();},reset:function(){T.reset.call(this),this._doReset();},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var o=this._doFinalize();return o},blockSize:512/32,_createHelper:function(e){return function(o,s){return new e.init(s).finalize(o)}},_createHmacHelper:function(e){return function(o,s){return new f.HMAC.init(e,s).finalize(o)}}});var f=c.algo={};return c}(Math);return r});});var F=N((R,U)=>{(function(r,t){typeof R=="object"?U.exports=R=t(j()):typeof define=="function"&&define.amd?define(["./core"],t):t(r.CryptoJS);})(R,function(r){return function(){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,g=t.algo,c=[],x=g.SHA1=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(b,y){for(var p=this._hash.words,m=p[0],h=p[1],v=p[2],T=p[3],C=p[4],f=0;f<80;f++){if(f<16)c[f]=b[y+f]|0;else {var e=c[f-3]^c[f-8]^c[f-14]^c[f-16];c[f]=e<<1|e>>>31;}var o=(m<<5|m>>>27)+C+c[f];f<20?o+=(h&v|~h&T)+1518500249:f<40?o+=(h^v^T)+1859775393:f<60?o+=(h&v|h&T|v&T)-1894007588:o+=(h^v^T)-899497514,C=T,T=v,v=h<<30|h>>>2,h=m,m=o;}p[0]=p[0]+m|0,p[1]=p[1]+h|0,p[2]=p[2]+v|0,p[3]=p[3]+T|0,p[4]=p[4]+C|0;},_doFinalize:function(){var b=this._data,y=b.words,p=this._nDataBytes*8,m=b.sigBytes*8;return y[m>>>5]|=128<<24-m%32,y[(m+64>>>9<<4)+14]=Math.floor(p/4294967296),y[(m+64>>>9<<4)+15]=p,b.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var b=i.clone.call(this);return b._hash=this._hash.clone(),b}});t.SHA1=i._createHelper(x),t.HmacSHA1=i._createHmacHelper(x);}(),r.SHA1});});var S;(i=>(i.log=(g,...c)=>console.log(`[Pixi\u2019VN] ${g}`,...c),i.warn=(g,...c)=>console.warn(`[Pixi\u2019VN] ${g}`,...c),i.error=(g,...c)=>console.error(`[Pixi\u2019VN] ${g}`,...c),i.info=(g,...c)=>console.info(`[Pixi\u2019VN] ${g}`,...c)))(S||={});var z=new Map,W;(n=>{function r(a){let i=z.get(a);if(!i){S.error(`Label ${a} not found`);return}return i}n.get=r;function t(a){z.set(a.id,a);}n.add=t;})(W||={});var k=W;var V="close";var q=ee(F());var _=class{constructor(t,n){this._id=t,this._onStepStart=n?.onStepStart,this._onLoadingLabel=n?.onLoadingLabel,this._onStepEnd=n?.onStepEnd;}_id;get id(){return this._id}_onStepStart;get onStepStart(){return async(t,n)=>{if(this._onLoadingLabel&&t===0&&await this._onLoadingLabel(t,n),this._onStepStart)return await this._onStepStart(t,n)}}_onLoadingLabel;get onLoadingLabel(){return this._onLoadingLabel}_onStepEnd;get onStepEnd(){return this._onStepEnd}};var I=class extends _{get stepCount(){return this.steps.length}getStepById(t){return this.steps[t]}constructor(t,n,a){super(t,a),this._steps=n;}_steps;get steps(){return typeof this._steps=="function"?this._steps():this._steps}getStepSha(t){if(t<0||t>=this.steps.length)return S.warn("stepSha not found, setting to ERROR"),"error";try{let n=this.steps[t];return (0,q.default)(n.toString().toLocaleLowerCase()).toString()}catch(n){return S.warn("stepSha not found, setting to ERROR",n),"error"}}};var te="__close-label-id__";function H(){return new I(te,[],{})}var E=class{text;_label;get label(){let t=this._label;if(typeof t=="string"){let n=k.get(t);n?t=n:(S.error(`Label ${t} not found, so it will be closed`),t=H());}return t}type;oneTime;onlyHaveNoChoice;autoSelect;choiseIndex;props={};constructor(t,n,a,i){this.text=t,this._label=n,this.type=i?.type||"call",this.oneTime=i?.oneTime||false,this.onlyHaveNoChoice=i?.onlyHaveNoChoice||false,this.autoSelect=i?.autoSelect||false,this.choiseIndex=i?.choiseIndex,a&&(this.props=a);}},G=class{label=H();text;closeCurrentLabel;type=V;oneTime;onlyHaveNoChoice;autoSelect;choiseIndex;props={};constructor(t,n){this.text=t,this.closeCurrentLabel=n?.closeCurrentLabel||false,this.oneTime=n?.oneTime||false,this.onlyHaveNoChoice=n?.onlyHaveNoChoice||false,this.autoSelect=n?.autoSelect||false,this.choiseIndex=n?.choiseIndex;}};export{G as ChoiceMenuOptionClose,E as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var M=Object.create;var O=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty;var E=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(r,i)=>(typeof require<"u"?require:r)[i]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var z=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports);var N=(n,r,i,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let d of F(r))!G.call(n,d)&&d!==i&&O(n,d,{get:()=>r[d],enumerable:!(s=U(r,d))||s.enumerable});return n};var j=(n,r,i)=>(i=n!=null?M(q(n)):{},N(O(i,"default",{value:n,enumerable:true}),n));var W=z((I,A)=>{(function(n,r){typeof I=="object"?A.exports=I=r():typeof define=="function"&&define.amd?define([],r):n.CryptoJS=r();})(I,function(){var n=n||function(r,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof global<"u"&&global.crypto&&(s=global.crypto),!s&&typeof E=="function")try{s=E("crypto");}catch{}var d=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var M=Object.create;var O=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty;var E=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(r,i)=>(typeof require<"u"?require:r)[i]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var z=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports);var N=(n,r,i,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let d of F(r))!G.call(n,d)&&d!==i&&O(n,d,{get:()=>r[d],enumerable:!(s=U(r,d))||s.enumerable});return n};var j=(n,r,i)=>(i=n!=null?M(q(n)):{},N(O(i,"default",{value:n,enumerable:true}),n));var W=z((I,A)=>{(function(n,r){typeof I=="object"?A.exports=I=r():typeof define=="function"&&define.amd?define([],r):n.CryptoJS=r();})(I,function(){var n=n||function(r,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof global<"u"&&global.crypto&&(s=global.crypto),!s&&typeof E=="function")try{s=E("crypto");}catch{}var d=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},m=Object.create||function(){function e(){}return function(t){var o;return e.prototype=t,o=new e,e.prototype=null,o}}(),f={},_=f.lib={},h=_.Base=function(){return {extend:function(e){var t=m(this);return e&&t.mixIn(e),(!t.hasOwnProperty("init")||this.init===t.init)&&(t.init=function(){t.$super.init.apply(this,arguments);}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString);},clone:function(){return this.init.prototype.extend(this)}}}(),b=_.WordArray=h.extend({init:function(e,t){e=this.words=e||[],t!=i?this.sigBytes=t:this.sigBytes=e.length*4;},toString:function(e){return (e||v).stringify(this)},concat:function(e){var t=this.words,o=e.words,a=this.sigBytes,c=e.sigBytes;if(this.clamp(),a%4)for(var u=0;u<c;u++){var P=o[u>>>2]>>>24-u%4*8&255;t[a+u>>>2]|=P<<24-(a+u)%4*8;}else for(var L=0;L<c;L+=4)t[a+L>>>2]=o[L>>>2];return this.sigBytes+=c,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=r.ceil(t/4);},clone:function(){var e=h.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],o=0;o<e;o+=4)t.push(d());return new b.init(t,e)}}),p=f.enc={},v=p.Hex={stringify:function(e){for(var t=e.words,o=e.sigBytes,a=[],c=0;c<o;c++){var u=t[c>>>2]>>>24-c%4*8&255;a.push((u>>>4).toString(16)),a.push((u&15).toString(16));}return a.join("")},parse:function(e){for(var t=e.length,o=[],a=0;a<t;a+=2)o[a>>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new b.init(o,t/2)}},y=p.Latin1={stringify:function(e){for(var t=e.words,o=e.sigBytes,a=[],c=0;c<o;c++){var u=t[c>>>2]>>>24-c%4*8&255;a.push(String.fromCharCode(u));}return a.join("")},parse:function(e){for(var t=e.length,o=[],a=0;a<t;a++)o[a>>>2]|=(e.charCodeAt(a)&255)<<24-a%4*8;return new b.init(o,t)}},S=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(y.stringify(e)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(e){return y.parse(unescape(encodeURIComponent(e)))}},g=_.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new b.init,this._nDataBytes=0;},_append:function(e){typeof e=="string"&&(e=S.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes;},_process:function(e){var t,o=this._data,a=o.words,c=o.sigBytes,u=this.blockSize,P=u*4,L=c/P;e?L=r.ceil(L):L=r.max((L|0)-this._minBufferSize,0);var B=L*u,D=r.min(B*4,c);if(B){for(var H=0;H<B;H+=u)this._doProcessBlock(a,H);t=a.splice(0,B),o.sigBytes-=D;}return new b.init(t,D)},clone:function(){var e=h.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});_.Hasher=g.extend({cfg:h.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset();},reset:function(){g.reset.call(this),this._doReset();},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:512/32,_createHelper:function(e){return function(t,o){return new e.init(o).finalize(t)}},_createHmacHelper:function(e){return function(t,o){return new l.HMAC.init(e,o).finalize(t)}}});var l=f.algo={};return f}(Math);return n});});var V=z((C,k)=>{(function(n,r){typeof C=="object"?k.exports=C=r(W()):typeof define=="function"&&define.amd?define(["./core"],r):r(n.CryptoJS);})(C,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,d=i.Hasher,m=r.algo,f=[],_=m.SHA1=d.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(h,b){for(var p=this._hash.words,v=p[0],y=p[1],S=p[2],g=p[3],w=p[4],l=0;l<80;l++){if(l<16)f[l]=h[b+l]|0;else {var e=f[l-3]^f[l-8]^f[l-14]^f[l-16];f[l]=e<<1|e>>>31;}var t=(v<<5|v>>>27)+w+f[l];l<20?t+=(y&S|~y&g)+1518500249:l<40?t+=(y^S^g)+1859775393:l<60?t+=(y&S|y&g|S&g)-1894007588:t+=(y^S^g)-899497514,w=g,g=S,S=y<<30|y>>>2,y=v,v=t;}p[0]=p[0]+v|0,p[1]=p[1]+y|0,p[2]=p[2]+S|0,p[3]=p[3]+g|0,p[4]=p[4]+w|0;},_doFinalize:function(){var h=this._data,b=h.words,p=this._nDataBytes*8,v=h.sigBytes*8;return b[v>>>5]|=128<<24-v%32,b[(v+64>>>9<<4)+14]=Math.floor(p/4294967296),b[(v+64>>>9<<4)+15]=p,h.sigBytes=b.length*4,this._process(),this._hash},clone:function(){var h=d.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA1=d._createHelper(_),r.HmacSHA1=d._createHmacHelper(_);}(),n.SHA1});});var $=j(V());var R;(d=>(d.log=(m,...f)=>console.log(`[Pixi\u2019VN] ${m}`,...f),d.warn=(m,...f)=>console.warn(`[Pixi\u2019VN] ${m}`,...f),d.error=(m,...f)=>console.error(`[Pixi\u2019VN] ${m}`,...f),d.info=(m,...f)=>console.info(`[Pixi\u2019VN] ${m}`,...f)))(R||={});var T=class{constructor(r,i){this._id=r,this._onStepStart=i?.onStepStart,this._onLoadingLabel=i?.onLoadingLabel,this._onStepEnd=i?.onStepEnd;}_id;get id(){return this._id}_onStepStart;get onStepStart(){return async(r,i)=>{if(this._onLoadingLabel&&r===0&&await this._onLoadingLabel(r,i),this._onStepStart)return await this._onStepStart(r,i)}}_onLoadingLabel;get onLoadingLabel(){return this._onLoadingLabel}_onStepEnd;get onStepEnd(){return this._onStepEnd}};var x=class extends T{get stepCount(){return this.steps.length}getStepById(r){return this.steps[r]}constructor(r,i,s){super(r,s),this._steps=i;}_steps;get steps(){return typeof this._steps=="function"?this._steps():this._steps}getStepSha(r){if(r<0||r>=this.steps.length)return R.warn("stepSha not found, setting to ERROR"),"error";try{let i=this.steps[r];return (0,$.default)(i.toString().toLocaleLowerCase()).toString()}catch(i){return R.warn("stepSha not found, setting to ERROR",i),"error"}}};var J="__close-label-id__";function K(){return new x(J,[],{})}exports.CLOSE_LABEL_ID=J;exports.default=K;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Label from './Label.cjs';
|
|
2
2
|
import '../types/LabelIdType.cjs';
|
|
3
3
|
import './LabelAbstract.cjs';
|
|
4
|
+
import '../interfaces/LabelProps.cjs';
|
|
4
5
|
import '../types/StepLabelType.cjs';
|
|
5
6
|
import '@drincs/pixi-vn';
|
|
6
|
-
import '../interfaces/LabelProps.cjs';
|
|
7
7
|
|
|
8
8
|
declare const CLOSE_LABEL_ID = "__close-label-id__";
|
|
9
9
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Label from './Label.js';
|
|
2
2
|
import '../types/LabelIdType.js';
|
|
3
3
|
import './LabelAbstract.js';
|
|
4
|
+
import '../interfaces/LabelProps.js';
|
|
4
5
|
import '../types/StepLabelType.js';
|
|
5
6
|
import '@drincs/pixi-vn';
|
|
6
|
-
import '../interfaces/LabelProps.js';
|
|
7
7
|
|
|
8
8
|
declare const CLOSE_LABEL_ID = "__close-label-id__";
|
|
9
9
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var M=Object.create;var O=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty;var E=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(r,i)=>(typeof require<"u"?require:r)[i]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var z=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports);var N=(n,r,i,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let d of F(r))!G.call(n,d)&&d!==i&&O(n,d,{get:()=>r[d],enumerable:!(s=U(r,d))||s.enumerable});return n};var j=(n,r,i)=>(i=n!=null?M(q(n)):{},N(O(i,"default",{value:n,enumerable:true}),n));var W=z((I,A)=>{(function(n,r){typeof I=="object"?A.exports=I=r():typeof define=="function"&&define.amd?define([],r):n.CryptoJS=r();})(I,function(){var n=n||function(r,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof global<"u"&&global.crypto&&(s=global.crypto),!s&&typeof E=="function")try{s=E("crypto");}catch{}var d=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},
|
|
1
|
+
var M=Object.create;var O=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty;var E=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(r,i)=>(typeof require<"u"?require:r)[i]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var z=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports);var N=(n,r,i,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let d of F(r))!G.call(n,d)&&d!==i&&O(n,d,{get:()=>r[d],enumerable:!(s=U(r,d))||s.enumerable});return n};var j=(n,r,i)=>(i=n!=null?M(q(n)):{},N(O(i,"default",{value:n,enumerable:true}),n));var W=z((I,A)=>{(function(n,r){typeof I=="object"?A.exports=I=r():typeof define=="function"&&define.amd?define([],r):n.CryptoJS=r();})(I,function(){var n=n||function(r,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof global<"u"&&global.crypto&&(s=global.crypto),!s&&typeof E=="function")try{s=E("crypto");}catch{}var d=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},m=Object.create||function(){function e(){}return function(t){var o;return e.prototype=t,o=new e,e.prototype=null,o}}(),f={},_=f.lib={},h=_.Base=function(){return {extend:function(e){var t=m(this);return e&&t.mixIn(e),(!t.hasOwnProperty("init")||this.init===t.init)&&(t.init=function(){t.$super.init.apply(this,arguments);}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString);},clone:function(){return this.init.prototype.extend(this)}}}(),b=_.WordArray=h.extend({init:function(e,t){e=this.words=e||[],t!=i?this.sigBytes=t:this.sigBytes=e.length*4;},toString:function(e){return (e||v).stringify(this)},concat:function(e){var t=this.words,o=e.words,a=this.sigBytes,c=e.sigBytes;if(this.clamp(),a%4)for(var u=0;u<c;u++){var P=o[u>>>2]>>>24-u%4*8&255;t[a+u>>>2]|=P<<24-(a+u)%4*8;}else for(var L=0;L<c;L+=4)t[a+L>>>2]=o[L>>>2];return this.sigBytes+=c,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=r.ceil(t/4);},clone:function(){var e=h.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],o=0;o<e;o+=4)t.push(d());return new b.init(t,e)}}),p=f.enc={},v=p.Hex={stringify:function(e){for(var t=e.words,o=e.sigBytes,a=[],c=0;c<o;c++){var u=t[c>>>2]>>>24-c%4*8&255;a.push((u>>>4).toString(16)),a.push((u&15).toString(16));}return a.join("")},parse:function(e){for(var t=e.length,o=[],a=0;a<t;a+=2)o[a>>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new b.init(o,t/2)}},y=p.Latin1={stringify:function(e){for(var t=e.words,o=e.sigBytes,a=[],c=0;c<o;c++){var u=t[c>>>2]>>>24-c%4*8&255;a.push(String.fromCharCode(u));}return a.join("")},parse:function(e){for(var t=e.length,o=[],a=0;a<t;a++)o[a>>>2]|=(e.charCodeAt(a)&255)<<24-a%4*8;return new b.init(o,t)}},S=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(y.stringify(e)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(e){return y.parse(unescape(encodeURIComponent(e)))}},g=_.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new b.init,this._nDataBytes=0;},_append:function(e){typeof e=="string"&&(e=S.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes;},_process:function(e){var t,o=this._data,a=o.words,c=o.sigBytes,u=this.blockSize,P=u*4,L=c/P;e?L=r.ceil(L):L=r.max((L|0)-this._minBufferSize,0);var B=L*u,D=r.min(B*4,c);if(B){for(var H=0;H<B;H+=u)this._doProcessBlock(a,H);t=a.splice(0,B),o.sigBytes-=D;}return new b.init(t,D)},clone:function(){var e=h.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});_.Hasher=g.extend({cfg:h.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset();},reset:function(){g.reset.call(this),this._doReset();},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:512/32,_createHelper:function(e){return function(t,o){return new e.init(o).finalize(t)}},_createHmacHelper:function(e){return function(t,o){return new l.HMAC.init(e,o).finalize(t)}}});var l=f.algo={};return f}(Math);return n});});var V=z((C,k)=>{(function(n,r){typeof C=="object"?k.exports=C=r(W()):typeof define=="function"&&define.amd?define(["./core"],r):r(n.CryptoJS);})(C,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,d=i.Hasher,m=r.algo,f=[],_=m.SHA1=d.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(h,b){for(var p=this._hash.words,v=p[0],y=p[1],S=p[2],g=p[3],w=p[4],l=0;l<80;l++){if(l<16)f[l]=h[b+l]|0;else {var e=f[l-3]^f[l-8]^f[l-14]^f[l-16];f[l]=e<<1|e>>>31;}var t=(v<<5|v>>>27)+w+f[l];l<20?t+=(y&S|~y&g)+1518500249:l<40?t+=(y^S^g)+1859775393:l<60?t+=(y&S|y&g|S&g)-1894007588:t+=(y^S^g)-899497514,w=g,g=S,S=y<<30|y>>>2,y=v,v=t;}p[0]=p[0]+v|0,p[1]=p[1]+y|0,p[2]=p[2]+S|0,p[3]=p[3]+g|0,p[4]=p[4]+w|0;},_doFinalize:function(){var h=this._data,b=h.words,p=this._nDataBytes*8,v=h.sigBytes*8;return b[v>>>5]|=128<<24-v%32,b[(v+64>>>9<<4)+14]=Math.floor(p/4294967296),b[(v+64>>>9<<4)+15]=p,h.sigBytes=b.length*4,this._process(),this._hash},clone:function(){var h=d.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA1=d._createHelper(_),r.HmacSHA1=d._createHmacHelper(_);}(),n.SHA1});});var $=j(V());var R;(d=>(d.log=(m,...f)=>console.log(`[Pixi\u2019VN] ${m}`,...f),d.warn=(m,...f)=>console.warn(`[Pixi\u2019VN] ${m}`,...f),d.error=(m,...f)=>console.error(`[Pixi\u2019VN] ${m}`,...f),d.info=(m,...f)=>console.info(`[Pixi\u2019VN] ${m}`,...f)))(R||={});var T=class{constructor(r,i){this._id=r,this._onStepStart=i?.onStepStart,this._onLoadingLabel=i?.onLoadingLabel,this._onStepEnd=i?.onStepEnd;}_id;get id(){return this._id}_onStepStart;get onStepStart(){return async(r,i)=>{if(this._onLoadingLabel&&r===0&&await this._onLoadingLabel(r,i),this._onStepStart)return await this._onStepStart(r,i)}}_onLoadingLabel;get onLoadingLabel(){return this._onLoadingLabel}_onStepEnd;get onStepEnd(){return this._onStepEnd}};var x=class extends T{get stepCount(){return this.steps.length}getStepById(r){return this.steps[r]}constructor(r,i,s){super(r,s),this._steps=i;}_steps;get steps(){return typeof this._steps=="function"?this._steps():this._steps}getStepSha(r){if(r<0||r>=this.steps.length)return R.warn("stepSha not found, setting to ERROR"),"error";try{let i=this.steps[r];return (0,$.default)(i.toString().toLocaleLowerCase()).toString()}catch(i){return R.warn("stepSha not found, setting to ERROR",i),"error"}}};var J="__close-label-id__";function K(){return new x(J,[],{})}export{J as CLOSE_LABEL_ID,K as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var M=Object.create;var O=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty;var H=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(r,i)=>(typeof require<"u"?require:r)[i]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var z=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports);var N=(n,r,i,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let d of F(r))!G.call(n,d)&&d!==i&&O(n,d,{get:()=>r[d],enumerable:!(s=U(r,d))||s.enumerable});return n};var j=(n,r,i)=>(i=n!=null?M(q(n)):{},N(O(i,"default",{value:n,enumerable:true}),n));var A=z((B,W)=>{(function(n,r){typeof B=="object"?W.exports=B=r():typeof define=="function"&&define.amd?define([],r):n.CryptoJS=r();})(B,function(){var n=n||function(r,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof global<"u"&&global.crypto&&(s=global.crypto),!s&&typeof H=="function")try{s=H("crypto");}catch{}var d=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},g=Object.create||function(){function e(){}return function(t){var o;return e.prototype=t,o=new e,e.prototype=null,o}}(),f={},L=f.lib={},h=L.Base=function(){return {extend:function(e){var t=g(this);return e&&t.mixIn(e),(!t.hasOwnProperty("init")||this.init===t.init)&&(t.init=function(){t.$super.init.apply(this,arguments);}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString);},clone:function(){return this.init.prototype.extend(this)}}}(),
|
|
1
|
+
'use strict';var M=Object.create;var O=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty;var H=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(r,i)=>(typeof require<"u"?require:r)[i]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var z=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports);var N=(n,r,i,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let d of F(r))!G.call(n,d)&&d!==i&&O(n,d,{get:()=>r[d],enumerable:!(s=U(r,d))||s.enumerable});return n};var j=(n,r,i)=>(i=n!=null?M(q(n)):{},N(O(i,"default",{value:n,enumerable:true}),n));var A=z((B,W)=>{(function(n,r){typeof B=="object"?W.exports=B=r():typeof define=="function"&&define.amd?define([],r):n.CryptoJS=r();})(B,function(){var n=n||function(r,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof global<"u"&&global.crypto&&(s=global.crypto),!s&&typeof H=="function")try{s=H("crypto");}catch{}var d=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},g=Object.create||function(){function e(){}return function(t){var o;return e.prototype=t,o=new e,e.prototype=null,o}}(),f={},L=f.lib={},h=L.Base=function(){return {extend:function(e){var t=g(this);return e&&t.mixIn(e),(!t.hasOwnProperty("init")||this.init===t.init)&&(t.init=function(){t.$super.init.apply(this,arguments);}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString);},clone:function(){return this.init.prototype.extend(this)}}}(),v=L.WordArray=h.extend({init:function(e,t){e=this.words=e||[],t!=i?this.sigBytes=t:this.sigBytes=e.length*4;},toString:function(e){return (e||b).stringify(this)},concat:function(e){var t=this.words,o=e.words,a=this.sigBytes,c=e.sigBytes;if(this.clamp(),a%4)for(var u=0;u<c;u++){var C=o[u>>>2]>>>24-u%4*8&255;t[a+u>>>2]|=C<<24-(a+u)%4*8;}else for(var T=0;T<c;T+=4)t[a+T>>>2]=o[T>>>2];return this.sigBytes+=c,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=r.ceil(t/4);},clone:function(){var e=h.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],o=0;o<e;o+=4)t.push(d());return new v.init(t,e)}}),p=f.enc={},b=p.Hex={stringify:function(e){for(var t=e.words,o=e.sigBytes,a=[],c=0;c<o;c++){var u=t[c>>>2]>>>24-c%4*8&255;a.push((u>>>4).toString(16)),a.push((u&15).toString(16));}return a.join("")},parse:function(e){for(var t=e.length,o=[],a=0;a<t;a+=2)o[a>>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new v.init(o,t/2)}},y=p.Latin1={stringify:function(e){for(var t=e.words,o=e.sigBytes,a=[],c=0;c<o;c++){var u=t[c>>>2]>>>24-c%4*8&255;a.push(String.fromCharCode(u));}return a.join("")},parse:function(e){for(var t=e.length,o=[],a=0;a<t;a++)o[a>>>2]|=(e.charCodeAt(a)&255)<<24-a%4*8;return new v.init(o,t)}},S=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(y.stringify(e)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(e){return y.parse(unescape(encodeURIComponent(e)))}},m=L.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new v.init,this._nDataBytes=0;},_append:function(e){typeof e=="string"&&(e=S.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes;},_process:function(e){var t,o=this._data,a=o.words,c=o.sigBytes,u=this.blockSize,C=u*4,T=c/C;e?T=r.ceil(T):T=r.max((T|0)-this._minBufferSize,0);var w=T*u,D=r.min(w*4,c);if(w){for(var P=0;P<w;P+=u)this._doProcessBlock(a,P);t=a.splice(0,w),o.sigBytes-=D;}return new v.init(t,D)},clone:function(){var e=h.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});L.Hasher=m.extend({cfg:h.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset();},reset:function(){m.reset.call(this),this._doReset();},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:512/32,_createHelper:function(e){return function(t,o){return new e.init(o).finalize(t)}},_createHmacHelper:function(e){return function(t,o){return new l.HMAC.init(e,o).finalize(t)}}});var l=f.algo={};return f}(Math);return n});});var V=z((I,k)=>{(function(n,r){typeof I=="object"?k.exports=I=r(A()):typeof define=="function"&&define.amd?define(["./core"],r):r(n.CryptoJS);})(I,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,d=i.Hasher,g=r.algo,f=[],L=g.SHA1=d.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(h,v){for(var p=this._hash.words,b=p[0],y=p[1],S=p[2],m=p[3],x=p[4],l=0;l<80;l++){if(l<16)f[l]=h[v+l]|0;else {var e=f[l-3]^f[l-8]^f[l-14]^f[l-16];f[l]=e<<1|e>>>31;}var t=(b<<5|b>>>27)+x+f[l];l<20?t+=(y&S|~y&m)+1518500249:l<40?t+=(y^S^m)+1859775393:l<60?t+=(y&S|y&m|S&m)-1894007588:t+=(y^S^m)-899497514,x=m,m=S,S=y<<30|y>>>2,y=b,b=t;}p[0]=p[0]+b|0,p[1]=p[1]+y|0,p[2]=p[2]+S|0,p[3]=p[3]+m|0,p[4]=p[4]+x|0;},_doFinalize:function(){var h=this._data,v=h.words,p=this._nDataBytes*8,b=h.sigBytes*8;return v[b>>>5]|=128<<24-b%32,v[(b+64>>>9<<4)+14]=Math.floor(p/4294967296),v[(b+64>>>9<<4)+15]=p,h.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var h=d.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA1=d._createHelper(L),r.HmacSHA1=d._createHmacHelper(L);}(),n.SHA1});});var $=j(V());var R;(d=>(d.log=(g,...f)=>console.log(`[Pixi\u2019VN] ${g}`,...f),d.warn=(g,...f)=>console.warn(`[Pixi\u2019VN] ${g}`,...f),d.error=(g,...f)=>console.error(`[Pixi\u2019VN] ${g}`,...f),d.info=(g,...f)=>console.info(`[Pixi\u2019VN] ${g}`,...f)))(R||={});var _=class{constructor(r,i){this._id=r,this._onStepStart=i?.onStepStart,this._onLoadingLabel=i?.onLoadingLabel,this._onStepEnd=i?.onStepEnd;}_id;get id(){return this._id}_onStepStart;get onStepStart(){return async(r,i)=>{if(this._onLoadingLabel&&r===0&&await this._onLoadingLabel(r,i),this._onStepStart)return await this._onStepStart(r,i)}}_onLoadingLabel;get onLoadingLabel(){return this._onLoadingLabel}_onStepEnd;get onStepEnd(){return this._onStepEnd}};var E=class extends _{get stepCount(){return this.steps.length}getStepById(r){return this.steps[r]}constructor(r,i,s){super(r,s),this._steps=i;}_steps;get steps(){return typeof this._steps=="function"?this._steps():this._steps}getStepSha(r){if(r<0||r>=this.steps.length)return R.warn("stepSha not found, setting to ERROR"),"error";try{let i=this.steps[r];return (0,$.default)(i.toString().toLocaleLowerCase()).toString()}catch(i){return R.warn("stepSha not found, setting to ERROR",i),"error"}}};module.exports=E;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var M=Object.create;var O=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty;var H=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(r,i)=>(typeof require<"u"?require:r)[i]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var z=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports);var N=(n,r,i,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let d of F(r))!G.call(n,d)&&d!==i&&O(n,d,{get:()=>r[d],enumerable:!(s=U(r,d))||s.enumerable});return n};var j=(n,r,i)=>(i=n!=null?M(q(n)):{},N(O(i,"default",{value:n,enumerable:true}),n));var A=z((B,W)=>{(function(n,r){typeof B=="object"?W.exports=B=r():typeof define=="function"&&define.amd?define([],r):n.CryptoJS=r();})(B,function(){var n=n||function(r,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof global<"u"&&global.crypto&&(s=global.crypto),!s&&typeof H=="function")try{s=H("crypto");}catch{}var d=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},g=Object.create||function(){function e(){}return function(t){var o;return e.prototype=t,o=new e,e.prototype=null,o}}(),f={},L=f.lib={},h=L.Base=function(){return {extend:function(e){var t=g(this);return e&&t.mixIn(e),(!t.hasOwnProperty("init")||this.init===t.init)&&(t.init=function(){t.$super.init.apply(this,arguments);}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString);},clone:function(){return this.init.prototype.extend(this)}}}(),
|
|
1
|
+
var M=Object.create;var O=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty;var H=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(r,i)=>(typeof require<"u"?require:r)[i]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var z=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports);var N=(n,r,i,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let d of F(r))!G.call(n,d)&&d!==i&&O(n,d,{get:()=>r[d],enumerable:!(s=U(r,d))||s.enumerable});return n};var j=(n,r,i)=>(i=n!=null?M(q(n)):{},N(O(i,"default",{value:n,enumerable:true}),n));var A=z((B,W)=>{(function(n,r){typeof B=="object"?W.exports=B=r():typeof define=="function"&&define.amd?define([],r):n.CryptoJS=r();})(B,function(){var n=n||function(r,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof global<"u"&&global.crypto&&(s=global.crypto),!s&&typeof H=="function")try{s=H("crypto");}catch{}var d=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},g=Object.create||function(){function e(){}return function(t){var o;return e.prototype=t,o=new e,e.prototype=null,o}}(),f={},L=f.lib={},h=L.Base=function(){return {extend:function(e){var t=g(this);return e&&t.mixIn(e),(!t.hasOwnProperty("init")||this.init===t.init)&&(t.init=function(){t.$super.init.apply(this,arguments);}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString);},clone:function(){return this.init.prototype.extend(this)}}}(),v=L.WordArray=h.extend({init:function(e,t){e=this.words=e||[],t!=i?this.sigBytes=t:this.sigBytes=e.length*4;},toString:function(e){return (e||b).stringify(this)},concat:function(e){var t=this.words,o=e.words,a=this.sigBytes,c=e.sigBytes;if(this.clamp(),a%4)for(var u=0;u<c;u++){var C=o[u>>>2]>>>24-u%4*8&255;t[a+u>>>2]|=C<<24-(a+u)%4*8;}else for(var T=0;T<c;T+=4)t[a+T>>>2]=o[T>>>2];return this.sigBytes+=c,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=r.ceil(t/4);},clone:function(){var e=h.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],o=0;o<e;o+=4)t.push(d());return new v.init(t,e)}}),p=f.enc={},b=p.Hex={stringify:function(e){for(var t=e.words,o=e.sigBytes,a=[],c=0;c<o;c++){var u=t[c>>>2]>>>24-c%4*8&255;a.push((u>>>4).toString(16)),a.push((u&15).toString(16));}return a.join("")},parse:function(e){for(var t=e.length,o=[],a=0;a<t;a+=2)o[a>>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new v.init(o,t/2)}},y=p.Latin1={stringify:function(e){for(var t=e.words,o=e.sigBytes,a=[],c=0;c<o;c++){var u=t[c>>>2]>>>24-c%4*8&255;a.push(String.fromCharCode(u));}return a.join("")},parse:function(e){for(var t=e.length,o=[],a=0;a<t;a++)o[a>>>2]|=(e.charCodeAt(a)&255)<<24-a%4*8;return new v.init(o,t)}},S=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(y.stringify(e)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(e){return y.parse(unescape(encodeURIComponent(e)))}},m=L.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new v.init,this._nDataBytes=0;},_append:function(e){typeof e=="string"&&(e=S.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes;},_process:function(e){var t,o=this._data,a=o.words,c=o.sigBytes,u=this.blockSize,C=u*4,T=c/C;e?T=r.ceil(T):T=r.max((T|0)-this._minBufferSize,0);var w=T*u,D=r.min(w*4,c);if(w){for(var P=0;P<w;P+=u)this._doProcessBlock(a,P);t=a.splice(0,w),o.sigBytes-=D;}return new v.init(t,D)},clone:function(){var e=h.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});L.Hasher=m.extend({cfg:h.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset();},reset:function(){m.reset.call(this),this._doReset();},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:512/32,_createHelper:function(e){return function(t,o){return new e.init(o).finalize(t)}},_createHmacHelper:function(e){return function(t,o){return new l.HMAC.init(e,o).finalize(t)}}});var l=f.algo={};return f}(Math);return n});});var V=z((I,k)=>{(function(n,r){typeof I=="object"?k.exports=I=r(A()):typeof define=="function"&&define.amd?define(["./core"],r):r(n.CryptoJS);})(I,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,d=i.Hasher,g=r.algo,f=[],L=g.SHA1=d.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(h,v){for(var p=this._hash.words,b=p[0],y=p[1],S=p[2],m=p[3],x=p[4],l=0;l<80;l++){if(l<16)f[l]=h[v+l]|0;else {var e=f[l-3]^f[l-8]^f[l-14]^f[l-16];f[l]=e<<1|e>>>31;}var t=(b<<5|b>>>27)+x+f[l];l<20?t+=(y&S|~y&m)+1518500249:l<40?t+=(y^S^m)+1859775393:l<60?t+=(y&S|y&m|S&m)-1894007588:t+=(y^S^m)-899497514,x=m,m=S,S=y<<30|y>>>2,y=b,b=t;}p[0]=p[0]+b|0,p[1]=p[1]+y|0,p[2]=p[2]+S|0,p[3]=p[3]+m|0,p[4]=p[4]+x|0;},_doFinalize:function(){var h=this._data,v=h.words,p=this._nDataBytes*8,b=h.sigBytes*8;return v[b>>>5]|=128<<24-b%32,v[(b+64>>>9<<4)+14]=Math.floor(p/4294967296),v[(b+64>>>9<<4)+15]=p,h.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var h=d.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA1=d._createHelper(L),r.HmacSHA1=d._createHmacHelper(L);}(),n.SHA1});});var $=j(V());var R;(d=>(d.log=(g,...f)=>console.log(`[Pixi\u2019VN] ${g}`,...f),d.warn=(g,...f)=>console.warn(`[Pixi\u2019VN] ${g}`,...f),d.error=(g,...f)=>console.error(`[Pixi\u2019VN] ${g}`,...f),d.info=(g,...f)=>console.info(`[Pixi\u2019VN] ${g}`,...f)))(R||={});var _=class{constructor(r,i){this._id=r,this._onStepStart=i?.onStepStart,this._onLoadingLabel=i?.onLoadingLabel,this._onStepEnd=i?.onStepEnd;}_id;get id(){return this._id}_onStepStart;get onStepStart(){return async(r,i)=>{if(this._onLoadingLabel&&r===0&&await this._onLoadingLabel(r,i),this._onStepStart)return await this._onStepStart(r,i)}}_onLoadingLabel;get onLoadingLabel(){return this._onLoadingLabel}_onStepEnd;get onStepEnd(){return this._onStepEnd}};var E=class extends _{get stepCount(){return this.steps.length}getStepById(r){return this.steps[r]}constructor(r,i,s){super(r,s),this._steps=i;}_steps;get steps(){return typeof this._steps=="function"?this._steps():this._steps}getStepSha(r){if(r<0||r>=this.steps.length)return R.warn("stepSha not found, setting to ERROR"),"error";try{let i=this.steps[r];return (0,$.default)(i.toString().toLocaleLowerCase()).toString()}catch(i){return R.warn("stepSha not found, setting to ERROR",i),"error"}}};export{E as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var d=class{constructor(t,e){this._id=t,this._onStepStart=e?.onStepStart,this._onLoadingLabel=e?.onLoadingLabel,this._onStepEnd=e?.onStepEnd;}_id;get id(){return this._id}_onStepStart;get onStepStart(){return async(t,e)=>{if(this._onLoadingLabel&&t===0&&await this._onLoadingLabel(t,e),this._onStepStart)return await this._onStepStart(t,e)}}_onLoadingLabel;get onLoadingLabel(){return this._onLoadingLabel}_onStepEnd;get onStepEnd(){return this._onStepEnd}};module.exports=d;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import LabelProps from '../interfaces/LabelProps.cjs';
|
|
1
2
|
import { LabelIdType } from '../types/LabelIdType.cjs';
|
|
2
3
|
import { StepLabelType } from '../types/StepLabelType.cjs';
|
|
3
|
-
import LabelProps from '../interfaces/LabelProps.cjs';
|
|
4
4
|
import '@drincs/pixi-vn';
|
|
5
5
|
|
|
6
6
|
declare abstract class LabelAbstract<TLabel, TProps extends {} = {}, StepIdType = number> implements LabelProps<TLabel, StepIdType> {
|
|
@@ -11,7 +11,7 @@ declare abstract class LabelAbstract<TLabel, TProps extends {} = {}, StepIdType
|
|
|
11
11
|
constructor(id: LabelIdType, props?: LabelProps<TLabel, StepIdType>);
|
|
12
12
|
private _id;
|
|
13
13
|
/**
|
|
14
|
-
* Get the id of the label. This variable is used in the system to get the label by id, {@link
|
|
14
|
+
* Get the id of the label. This variable is used in the system to get the label by id, {@link RegisteredLabels.get}
|
|
15
15
|
*/
|
|
16
16
|
get id(): LabelIdType;
|
|
17
17
|
/**
|
|
@@ -19,10 +19,6 @@ declare abstract class LabelAbstract<TLabel, TProps extends {} = {}, StepIdType
|
|
|
19
19
|
* @returns The number of steps in the label
|
|
20
20
|
*/
|
|
21
21
|
abstract get stepCount(): number;
|
|
22
|
-
/**
|
|
23
|
-
* Get the steps of the label.
|
|
24
|
-
*/
|
|
25
|
-
abstract get steps(): StepLabelType<TProps>[];
|
|
26
22
|
/**
|
|
27
23
|
* Get the sha of the step
|
|
28
24
|
* @param index Index of the step
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import LabelProps from '../interfaces/LabelProps.js';
|
|
1
2
|
import { LabelIdType } from '../types/LabelIdType.js';
|
|
2
3
|
import { StepLabelType } from '../types/StepLabelType.js';
|
|
3
|
-
import LabelProps from '../interfaces/LabelProps.js';
|
|
4
4
|
import '@drincs/pixi-vn';
|
|
5
5
|
|
|
6
6
|
declare abstract class LabelAbstract<TLabel, TProps extends {} = {}, StepIdType = number> implements LabelProps<TLabel, StepIdType> {
|
|
@@ -11,7 +11,7 @@ declare abstract class LabelAbstract<TLabel, TProps extends {} = {}, StepIdType
|
|
|
11
11
|
constructor(id: LabelIdType, props?: LabelProps<TLabel, StepIdType>);
|
|
12
12
|
private _id;
|
|
13
13
|
/**
|
|
14
|
-
* Get the id of the label. This variable is used in the system to get the label by id, {@link
|
|
14
|
+
* Get the id of the label. This variable is used in the system to get the label by id, {@link RegisteredLabels.get}
|
|
15
15
|
*/
|
|
16
16
|
get id(): LabelIdType;
|
|
17
17
|
/**
|
|
@@ -19,10 +19,6 @@ declare abstract class LabelAbstract<TLabel, TProps extends {} = {}, StepIdType
|
|
|
19
19
|
* @returns The number of steps in the label
|
|
20
20
|
*/
|
|
21
21
|
abstract get stepCount(): number;
|
|
22
|
-
/**
|
|
23
|
-
* Get the steps of the label.
|
|
24
|
-
*/
|
|
25
|
-
abstract get steps(): StepLabelType<TProps>[];
|
|
26
22
|
/**
|
|
27
23
|
* Get the sha of the step
|
|
28
24
|
* @param index Index of the step
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var d=class{constructor(t,e){this._id=t,this._onStepStart=e?.onStepStart,this._onLoadingLabel=e?.onLoadingLabel,this._onStepEnd=e?.onStepEnd;}_id;get id(){return this._id}_onStepStart;get onStepStart(){return async(t,e)=>{if(this._onLoadingLabel&&t===0&&await this._onLoadingLabel(t,e),this._onStepStart)return await this._onStepStart(t,e)}}_onLoadingLabel;get onLoadingLabel(){return this._onLoadingLabel}_onStepEnd;get onStepEnd(){return this._onStepEnd}};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var t;(e=>(e.log=(n,...a)=>console.log(`[Pixi\u2019VN] ${n}`,...a),e.warn=(n,...a)=>console.warn(`[Pixi\u2019VN] ${n}`,...a),e.error=(n,...a)=>console.error(`[Pixi\u2019VN] ${n}`,...a),e.info=(n,...a)=>console.info(`[Pixi\u2019VN] ${n}`,...a)))(t||={});var r=new Map,i;(c=>{function s(o){let e=r.get(o);if(!e){t.error(`Label ${o} not found`);return}return e}c.get=s;function p(o){r.set(o.id,o);}c.add=p;})(i||={});var b=i;module.exports=b;
|
|
@@ -1,32 +1,21 @@
|
|
|
1
|
-
import { LabelIdType } from '../types/LabelIdType.cjs';
|
|
2
|
-
import Label from '../classes/Label.cjs';
|
|
3
1
|
import LabelAbstract from '../classes/LabelAbstract.cjs';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import { LabelIdType } from '../types/LabelIdType.cjs';
|
|
3
|
+
import '../interfaces/LabelProps.cjs';
|
|
4
|
+
import '../types/StepLabelType.cjs';
|
|
6
5
|
import '@drincs/pixi-vn';
|
|
7
6
|
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
* Gets a label by its id
|
|
22
|
-
* @param id The id of the label
|
|
23
|
-
* @returns The label or undefined if it does not exist
|
|
24
|
-
*/
|
|
25
|
-
declare function getLabelById<T = Label<any>>(id: LabelIdType): T | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Saves a label in the system
|
|
28
|
-
* @param label The label to be saved
|
|
29
|
-
*/
|
|
30
|
-
declare function saveLabel<T extends LabelAbstract<any>>(label: T): void;
|
|
7
|
+
declare namespace RegisteredLabels {
|
|
8
|
+
/**
|
|
9
|
+
* Gets a label by its id
|
|
10
|
+
* @param id The id of the label
|
|
11
|
+
* @returns The label or undefined if it does not exist
|
|
12
|
+
*/
|
|
13
|
+
function get<T = LabelAbstract<any>>(id: LabelIdType): T | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Saves a label in the system
|
|
16
|
+
* @param label The label to be saved
|
|
17
|
+
*/
|
|
18
|
+
function add(label: LabelAbstract<any, any>): void;
|
|
19
|
+
}
|
|
31
20
|
|
|
32
|
-
export {
|
|
21
|
+
export { RegisteredLabels as default };
|
|
@@ -1,32 +1,21 @@
|
|
|
1
|
-
import { LabelIdType } from '../types/LabelIdType.js';
|
|
2
|
-
import Label from '../classes/Label.js';
|
|
3
1
|
import LabelAbstract from '../classes/LabelAbstract.js';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import { LabelIdType } from '../types/LabelIdType.js';
|
|
3
|
+
import '../interfaces/LabelProps.js';
|
|
4
|
+
import '../types/StepLabelType.js';
|
|
6
5
|
import '@drincs/pixi-vn';
|
|
7
6
|
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
* Gets a label by its id
|
|
22
|
-
* @param id The id of the label
|
|
23
|
-
* @returns The label or undefined if it does not exist
|
|
24
|
-
*/
|
|
25
|
-
declare function getLabelById<T = Label<any>>(id: LabelIdType): T | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Saves a label in the system
|
|
28
|
-
* @param label The label to be saved
|
|
29
|
-
*/
|
|
30
|
-
declare function saveLabel<T extends LabelAbstract<any>>(label: T): void;
|
|
7
|
+
declare namespace RegisteredLabels {
|
|
8
|
+
/**
|
|
9
|
+
* Gets a label by its id
|
|
10
|
+
* @param id The id of the label
|
|
11
|
+
* @returns The label or undefined if it does not exist
|
|
12
|
+
*/
|
|
13
|
+
function get<T = LabelAbstract<any>>(id: LabelIdType): T | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Saves a label in the system
|
|
16
|
+
* @param label The label to be saved
|
|
17
|
+
*/
|
|
18
|
+
function add(label: LabelAbstract<any, any>): void;
|
|
19
|
+
}
|
|
31
20
|
|
|
32
|
-
export {
|
|
21
|
+
export { RegisteredLabels as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var t;(e=>(e.log=(n,...a)=>console.log(`[Pixi\u2019VN] ${n}`,...a),e.warn=(n,...a)=>console.warn(`[Pixi\u2019VN] ${n}`,...a),e.error=(n,...a)=>console.error(`[Pixi\u2019VN] ${n}`,...a),e.info=(n,...a)=>console.info(`[Pixi\u2019VN] ${n}`,...a)))(t||={});var r=new Map,i;(c=>{function s(o){let e=r.get(o);if(!e){t.error(`Label ${o} not found`);return}return e}c.get=s;function p(o){r.set(o.id,o);}c.add=p;})(i||={});var b=i;export{b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var q=Object.create;var O=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,J=Object.prototype.hasOwnProperty;var E=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(r,o)=>(typeof require<"u"?require:r)[o]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var z=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports);var K=(n,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let f of N(r))!J.call(n,f)&&f!==o&&O(n,f,{get:()=>r[f],enumerable:!(i=G(r,f))||i.enumerable});return n};var Q=(n,r,o)=>(o=n!=null?q(j(n)):{},K(O(o,"default",{value:n,enumerable:true}),n));var k=z((R,W)=>{(function(n,r){typeof R=="object"?W.exports=R=r():typeof define=="function"&&define.amd?define([],r):n.CryptoJS=r();})(R,function(){var n=n||function(r,o){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof global<"u"&&global.crypto&&(i=global.crypto),!i&&typeof E=="function")try{i=E("crypto");}catch{}var f=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},v=Object.create||function(){function e(){}return function(t){var a;return e.prototype=t,a=new e,e.prototype=null,a}}(),l={},_=l.lib={},h=_.Base=function(){return {extend:function(e){var t=v(this);return e&&t.mixIn(e),(!t.hasOwnProperty("init")||this.init===t.init)&&(t.init=function(){t.$super.init.apply(this,arguments);}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString);},clone:function(){return this.init.prototype.extend(this)}}}(),b=_.WordArray=h.extend({init:function(e,t){e=this.words=e||[],t!=o?this.sigBytes=t:this.sigBytes=e.length*4;},toString:function(e){return (e||m).stringify(this)},concat:function(e){var t=this.words,a=e.words,s=this.sigBytes,c=e.sigBytes;if(this.clamp(),s%4)for(var u=0;u<c;u++){var P=a[u>>>2]>>>24-u%4*8&255;t[s+u>>>2]|=P<<24-(s+u)%4*8;}else for(var L=0;L<c;L+=4)t[s+L>>>2]=a[L>>>2];return this.sigBytes+=c,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=r.ceil(t/4);},clone:function(){var e=h.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],a=0;a<e;a+=4)t.push(f());return new b.init(t,e)}}),p=l.enc={},m=p.Hex={stringify:function(e){for(var t=e.words,a=e.sigBytes,s=[],c=0;c<a;c++){var u=t[c>>>2]>>>24-c%4*8&255;s.push((u>>>4).toString(16)),s.push((u&15).toString(16));}return s.join("")},parse:function(e){for(var t=e.length,a=[],s=0;s<t;s+=2)a[s>>>3]|=parseInt(e.substr(s,2),16)<<24-s%8*4;return new b.init(a,t/2)}},y=p.Latin1={stringify:function(e){for(var t=e.words,a=e.sigBytes,s=[],c=0;c<a;c++){var u=t[c>>>2]>>>24-c%4*8&255;s.push(String.fromCharCode(u));}return s.join("")},parse:function(e){for(var t=e.length,a=[],s=0;s<t;s++)a[s>>>2]|=(e.charCodeAt(s)&255)<<24-s%4*8;return new b.init(a,t)}},S=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(y.stringify(e)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(e){return y.parse(unescape(encodeURIComponent(e)))}},g=_.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new b.init,this._nDataBytes=0;},_append:function(e){typeof e=="string"&&(e=S.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes;},_process:function(e){var t,a=this._data,s=a.words,c=a.sigBytes,u=this.blockSize,P=u*4,L=c/P;e?L=r.ceil(L):L=r.max((L|0)-this._minBufferSize,0);var B=L*u,D=r.min(B*4,c);if(B){for(var H=0;H<B;H+=u)this._doProcessBlock(s,H);t=s.splice(0,B),a.sigBytes-=D;}return new b.init(t,D)},clone:function(){var e=h.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});_.Hasher=g.extend({cfg:h.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset();},reset:function(){g.reset.call(this),this._doReset();},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:512/32,_createHelper:function(e){return function(t,a){return new e.init(a).finalize(t)}},_createHmacHelper:function(e){return function(t,a){return new d.HMAC.init(e,a).finalize(t)}}});var d=l.algo={};return l}(Math);return n});});var $=z((C,V)=>{(function(n,r){typeof C=="object"?V.exports=C=r(k()):typeof define=="function"&&define.amd?define(["./core"],r):r(n.CryptoJS);})(C,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,f=o.Hasher,v=r.algo,l=[],_=v.SHA1=f.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(h,b){for(var p=this._hash.words,m=p[0],y=p[1],S=p[2],g=p[3],I=p[4],d=0;d<80;d++){if(d<16)l[d]=h[b+d]|0;else {var e=l[d-3]^l[d-8]^l[d-14]^l[d-16];l[d]=e<<1|e>>>31;}var t=(m<<5|m>>>27)+I+l[d];d<20?t+=(y&S|~y&g)+1518500249:d<40?t+=(y^S^g)+1859775393:d<60?t+=(y&S|y&g|S&g)-1894007588:t+=(y^S^g)-899497514,I=g,g=S,S=y<<30|y>>>2,y=m,m=t;}p[0]=p[0]+m|0,p[1]=p[1]+y|0,p[2]=p[2]+S|0,p[3]=p[3]+g|0,p[4]=p[4]+I|0;},_doFinalize:function(){var h=this._data,b=h.words,p=this._nDataBytes*8,m=h.sigBytes*8;return b[m>>>5]|=128<<24-m%32,b[(m+64>>>9<<4)+14]=Math.floor(p/4294967296),b[(m+64>>>9<<4)+15]=p,h.sigBytes=b.length*4,this._process(),this._hash},clone:function(){var h=f.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA1=f._createHelper(_),r.HmacSHA1=f._createHmacHelper(_);}(),n.SHA1});});var T;(f=>(f.log=(v,...l)=>console.log(`[Pixi\u2019VN] ${v}`,...l),f.warn=(v,...l)=>console.warn(`[Pixi\u2019VN] ${v}`,...l),f.error=(v,...l)=>console.error(`[Pixi\u2019VN] ${v}`,...l),f.info=(v,...l)=>console.info(`[Pixi\u2019VN] ${v}`,...l)))(T||={});var M=Q($());var x=class{constructor(r,o){this._id=r,this._onStepStart=o?.onStepStart,this._onLoadingLabel=o?.onLoadingLabel,this._onStepEnd=o?.onStepEnd;}_id;get id(){return this._id}_onStepStart;get onStepStart(){return async(r,o)=>{if(this._onLoadingLabel&&r===0&&await this._onLoadingLabel(r,o),this._onStepStart)return await this._onStepStart(r,o)}}_onLoadingLabel;get onLoadingLabel(){return this._onLoadingLabel}_onStepEnd;get onStepEnd(){return this._onStepEnd}};var w=class extends x{get stepCount(){return this.steps.length}getStepById(r){return this.steps[r]}constructor(r,o,i){super(r,i),this._steps=o;}_steps;get steps(){return typeof this._steps=="function"?this._steps():this._steps}getStepSha(r){if(r<0||r>=this.steps.length)return T.warn("stepSha not found, setting to ERROR"),"error";try{let o=this.steps[r];return (0,M.default)(o.toString().toLocaleLowerCase()).toString()}catch(o){return T.warn("stepSha not found, setting to ERROR",o),"error"}}};var U=new Map,F;(o=>{function n(i){let f=U.get(i);if(!f){T.error(`Label ${i} not found`);return}return f}o.get=n;function r(i){U.set(i.id,i);}o.add=r;})(F||={});var A=F;function X(n,r,o){A.get(n)&&T.info(`Label ${n} already exists, it will be overwritten`);let i=new w(n,r,o);return A.add(i),i}module.exports=X;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Label from '../classes/Label.cjs';
|
|
2
|
+
import LabelProps from '../interfaces/LabelProps.cjs';
|
|
3
|
+
import { LabelIdType } from '../types/LabelIdType.cjs';
|
|
4
|
+
import { StepLabelType } from '../types/StepLabelType.cjs';
|
|
5
|
+
import '../classes/LabelAbstract.cjs';
|
|
6
|
+
import '@drincs/pixi-vn';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new label and registers it in the system.
|
|
10
|
+
* **This function must be called at least once at system startup to register the label, otherwise the system cannot be used.**
|
|
11
|
+
* @param id The id of the label, it must be unique
|
|
12
|
+
* @param steps The steps of the label
|
|
13
|
+
* @param props The properties of the label
|
|
14
|
+
* @returns The created label
|
|
15
|
+
*/
|
|
16
|
+
declare function newLabel<T extends {} = {}>(id: LabelIdType, steps: StepLabelType<T>[] | (() => StepLabelType<T>[]), props?: LabelProps<Label<T>>): Label<T>;
|
|
17
|
+
|
|
18
|
+
export { newLabel as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Label from '../classes/Label.js';
|
|
2
|
+
import LabelProps from '../interfaces/LabelProps.js';
|
|
3
|
+
import { LabelIdType } from '../types/LabelIdType.js';
|
|
4
|
+
import { StepLabelType } from '../types/StepLabelType.js';
|
|
5
|
+
import '../classes/LabelAbstract.js';
|
|
6
|
+
import '@drincs/pixi-vn';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new label and registers it in the system.
|
|
10
|
+
* **This function must be called at least once at system startup to register the label, otherwise the system cannot be used.**
|
|
11
|
+
* @param id The id of the label, it must be unique
|
|
12
|
+
* @param steps The steps of the label
|
|
13
|
+
* @param props The properties of the label
|
|
14
|
+
* @returns The created label
|
|
15
|
+
*/
|
|
16
|
+
declare function newLabel<T extends {} = {}>(id: LabelIdType, steps: StepLabelType<T>[] | (() => StepLabelType<T>[]), props?: LabelProps<Label<T>>): Label<T>;
|
|
17
|
+
|
|
18
|
+
export { newLabel as default };
|