@drincs/pixi-vn-json 1.14.0 → 1.16.1
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/README.md +1 -3
- package/dist/{PixiVNJsonLabelStep-Bce6KGwp.d.ts → PixiVNJsonLabelStep-BrRDO4iZ.d.ts} +570 -10
- package/dist/{PixiVNJsonLabelStep-GNKlmb4l.d.cts → PixiVNJsonLabelStep-D1MiCvp5.d.cts} +570 -10
- package/dist/actions.cjs +2 -2
- package/dist/actions.d.cts +7 -5
- package/dist/actions.d.ts +7 -5
- package/dist/actions.mjs +2 -2
- package/dist/constants.cjs +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.cts +6 -1
- package/dist/core.d.ts +6 -1
- package/dist/core.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +2 -2
- package/dist/interpreter.cjs +1 -1
- package/dist/interpreter.d.cts +2 -1
- package/dist/interpreter.d.ts +2 -1
- package/dist/interpreter.mjs +1 -1
- package/dist/schema.d.cts +3 -2
- package/dist/schema.d.ts +3 -2
- package/dist/translator.d.cts +2 -1
- package/dist/translator.d.ts +2 -1
- package/package.json +2 -2
- package/scripts/generate-entrance-transition-schemas.mjs +28 -2
- package/scripts/schema-generator.mjs +13 -1
package/dist/actions.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {JsonUnifier}from'@drincs/pixi-vn-json/core';import {Assets,canvas,ImageSprite,showImage,VideoSprite,showVideo,ImageContainer,showImageContainer,Text,showText,shakeEffect,pushIn,zoomIn,moveIn,showWithFade,showWithDissolve,pushOut,zoomOut,moveOut,removeWithDissolve,removeWithFade}from'@drincs/pixi-vn/canvas';import {translator}from'@drincs/pixi-vn-json/translator';import {NarrationManagerStatic,narration}from'@drincs/pixi-vn/narration';import {sound}from'@drincs/pixi-vn/sound';import {createExportableElement,PixiError}from'@drincs/pixi-vn';import {storage}from'@drincs/pixi-vn/storage';async function je(e){let i=JsonUnifier.getLogichValue(e,{});if(i)switch(i.type){case "assets":switch(i.operationType){case "load":await Assets.load(i.aliases);break;case "lazyload":Assets.backgroundLoad(i.aliases);break}break;case "bundle":switch(i.operationType){case "load":await Assets.loadBundle(i.aliases);break;case "lazyload":Assets.backgroundLoadBundle(i.aliases);break}break}}var a;(o=>(o.log=(r,...p)=>console.log(`[Pixi\u2019VN Json] ${r}`,...p),o.warn=(r,...p)=>console.warn(`[Pixi\u2019VN Json] ${r}`,...p),o.error=(r,...p)=>console.error(`[Pixi\u2019VN Json] ${r}`,...p),o.info=(r,...p)=>console.info(`[Pixi\u2019VN Json] ${r}`,...p)))(a||={});async function J(e,i,t){switch(t.type){case "fade":await showWithFade(i.alias,e,t.props,t.priority);break;case "dissolve":await showWithDissolve(i.alias,e,t.props,t.priority);break;case "movein":case "moveout":await moveIn(i.alias,e,t.props,t.priority);break;case "zoomin":case "zoomout":await zoomIn(i.alias,e,t.props,t.priority);break;case "pushin":case "pushout":await pushIn(i.alias,e,t.props,t.priority);break}}function v(e){if(e.transition)switch(e.transition.type){case "fade":removeWithFade(e.alias,e.transition.props,e.transition.priority);break;case "dissolve":removeWithDissolve(e.alias,e.transition.props,e.transition.priority);break;case "movein":case "moveout":moveOut(e.alias,e.transition.props,e.transition.priority);break;case "zoomin":case "zoomout":zoomOut(e.alias,e.transition.props,e.transition.priority);break;case "pushin":case "pushout":pushOut(e.alias,e.transition.props,e.transition.priority);break}else canvas.remove(e.alias);}async function Re(e){switch(e.operationType){case "show":if(e.transition){let i=new ImageSprite(e.props,e.url||e.alias);await J(i,e,e.transition);}else await showImage(e.alias,e.url,e.props);break;case "edit":{let i=canvas.find(e.alias);i?e.props&&await i.setMemory({...i.memory,...e.props}):a.error(`Image with alias ${e.alias} not found.`);break}case "remove":v(e);break}}async function ze(e){switch(e.operationType){case "show":if(e.transition){let i=new VideoSprite(e.props,e.url||e.alias);await J(i,e,e.transition);}else await showVideo(e.alias,e.url,e.props);break;case "edit":{let i=canvas.find(e.alias);i?e.props&&await i.setMemory({...i.memory,...e.props}):a.error(`Video with alias ${e.alias} not found.`);break}case "remove":v(e);break;case "pause":case "resume":{let i=canvas.find(e.alias);i?i.paused=e.operationType==="pause":a.error(`Video with alias ${e.alias} not found.`);break}}}async function De(e){switch(e.operationType){case "show":if(e.transition){let i=new ImageContainer(e.props,e.urls);await J(i,e,e.transition);}else await showImageContainer(e.alias,e.urls,e.props);break;case "edit":{let i=canvas.find(e.alias);i?e.props&&await i.setMemory({...i.memory,...e.props}):a.error(`ImageContainer with alias ${e.alias} not found.`);break}case "remove":v(e);break}}async function _e(e){switch(e.operationType){case "show":if(e.props=e.props||{},e.props.text=translator.t(e.text),e.transition){let i=new Text(e.props);await J(i,e,e.transition);}else showText(e.alias,e.text,e.props);break;case "edit":{let i=canvas.find(e.alias);i?e.props&&await i.setMemory({...i.memory,...e.props}):a.error(`Text with alias ${e.alias} not found.`);break}case "remove":v(e);break}}async function Me(e){switch(e.operationType){case "edit":try{let i=canvas.find(e.alias);i?e.props&&i.setMemory({...i.memory,...e.props}):a.error(`Canvas Element with alias ${e.alias} not found.`);}catch(i){a.error(`There was an error while trying to edit the canvas element with alias ${e.alias}.`,i);}break;case "remove":v(e);break}}function Ge(e){e.operationType==="clear"&&canvas.removeAll();}async function $e(e){e.type==="shake"&&await shakeEffect(e.alias,e.props,e.priority);}function Fe(e){switch(e.type){case "animate":canvas.animate(e.alias,e.keyframes,e.options,e.priority);break;case "animate-sequence":canvas.animate(e.alias,e.sequence,e.options,e.priority);break}}var ue={type:"object",properties:{isRenderGroup:{type:"boolean"},blendMode:{enum:["inherit","normal","add","multiply","screen","darken","lighten","erase","color-dodge","color-burn","linear-burn","linear-dodge","linear-light","hard-light","soft-light","pin-light","difference","exclusion","overlay","saturation","color","luminosity","normal-npm","add-npm","screen-npm","none","subtract","divide","vivid-light","hard-mix","negation","min","max"]},tint:{type:["string","number","object"]},alpha:{type:"number"},angle:{type:"number"},children:{type:"object"},parent:{type:"object"},renderable:{type:"boolean"},rotation:{type:"number"},scale:{type:["number","object"]},pivot:{type:["number","object"]},origin:{type:["number","object"]},position:{type:"object"},skew:{type:"object"},visible:{type:"boolean"},x:{type:"number"},y:{type:"number"},boundsArea:{type:"object"},accessible:{type:"boolean"},accessibleTitle:{type:"string"},accessibleHint:{type:"string"},tabIndex:{type:"number"},accessibleType:{enum:["object","label","a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]},accessiblePointerEvents:{enum:["inherit","none","auto","visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all"]},accessibleText:{type:"string"},accessibleChildren:{type:"boolean"},cullArea:{type:"object"},cullable:{type:"boolean"},cullableChildren:{type:"boolean"},cursor:{anyOf:[{const:"none"},{const:"progress"},{const:"auto"},{const:"default"},{const:"context-menu"},{const:"help"},{const:"pointer"},{const:"wait"},{const:"cell"},{const:"crosshair"},{const:"text"},{const:"vertical-text"},{const:"alias"},{const:"copy"},{const:"move"},{const:"no-drop"},{const:"not-allowed"},{const:"e-resize"},{const:"n-resize"},{const:"ne-resize"},{const:"nw-resize"},{const:"s-resize"},{const:"se-resize"},{const:"sw-resize"},{const:"w-resize"},{const:"ns-resize"},{const:"ew-resize"},{const:"nesw-resize"},{const:"col-resize"},{const:"nwse-resize"},{const:"row-resize"},{const:"all-scroll"},{const:"zoom-in"},{const:"zoom-out"},{const:"grab"},{const:"grabbing"},{type:"string"}]},eventMode:{enum:["none","auto","passive","static","dynamic"]},interactive:{type:"boolean"},interactiveChildren:{type:"boolean"},hitArea:{type:"object"},width:{type:"number"},height:{type:"number"},mask:{type:["number","object"]},filters:{type:"object"},label:{type:"string"},zIndex:{type:"number"},sortDirty:{type:"boolean"},sortableChildren:{type:"boolean"},pixivnId:{type:"string"},index:{type:"number"},parentLabel:{type:"string"},onEvents:{type:"object"},align:{type:["number","object"]},xAlign:{type:"number"},yAlign:{type:"number"},percentagePosition:{type:["number","object"]},percentageX:{type:"number"},percentageY:{type:"number"}},required:["pixivnId"],additionalProperties:false};var me={dissolve:{type:"object",properties:{completeOnContinue:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},fade:{type:"object",properties:{completeOnContinue:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},movein:{type:"object",properties:{direction:{enum:["left","right","up","down"]},completeOnContinue:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},zoomin:{type:"object",properties:{direction:{enum:["left","right","up","down"]},completeOnContinue:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},pushin:{type:"object",properties:{direction:{enum:["left","right","up","down"]},completeOnContinue:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false}};var Ye=["dissolve","fade","movein","zoomin","pushin"];async function Ke(e,i,t,n){switch(t){case "dissolve":return showWithDissolve(e,i,n);case "fade":return showWithFade(e,i,n);case "movein":return moveIn(e,i,n);case "zoomin":return zoomIn(e,i,n);case "pushin":return pushIn(e,i,n)}}function tt(e){switch(e.type){case "input":narration.input.request({type:e.valueType},e.defaultValue);break;case "dialogue":narration.dialogue=void 0;break}}function at(e){switch(e.operationType){case "play":e.url?sound.play(e.alias,e.url,e.props):sound.play(e.alias,e.props);break;case "stop":switch(e.type){case "sound":sound.stop(e.alias);break;case "all":sound.stopAll();break}break;case "pause":switch(e.type){case "sound":sound.pause(e.alias);break;case "channel":sound.channels.find(e.alias).pauseAll();break;case "all":sound.pauseAll();break}break;case "resume":switch(e.type){case "sound":sound.resume(e.alias);break;case "channel":sound.channels.find(e.alias).resumeAll();break;case "all":sound.resumeAll();break}break;case "edit":Object.entries(e.props).forEach(([i,t])=>{let n=sound.find(e.alias);n&&(i==="volume"?n.volume.value=t:n.paused=t);});break}}var w="___param___";var h=class e{static init(i){i.loadAssets&&(e._loadAssets=i.loadAssets),i.soundOperation&&(e._soundOperation=i.soundOperation),i.imageOperation&&(e._imageOperation=i.imageOperation),i.videoOperation&&(e._videoOperation=i.videoOperation),i.imageContainerOperation&&(e._imageContainerOperation=i.imageContainerOperation),i.textOperation&&(e._textOperation=i.textOperation),i.canvasElementOperation&&(e._canvasElementOperation=i.canvasElementOperation),i.setStorageValue&&(e._setStorageValue=i.setStorageValue),i.setInitialStorageValue&&(e._setInitialStorageValue=i.setInitialStorageValue),i.narrationOperation&&(e._narrationOperation=i.narrationOperation),i.effectOperation&&(e._effectOperation=i.effectOperation),i.animateOperation&&(e._animateOperation=i.animateOperation),i.canvasOperation&&(e._canvasOperation=i.canvasOperation),i.getLogichValue&&(e._getLogichValue=i.getLogichValue),i.getConditionalStep&&(e._getConditionalStep=i.getConditionalStep);}static _loadAssets=()=>{};static get loadAssets(){return e._loadAssets}static _soundOperation=()=>{throw a.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get soundOperation(){return e._soundOperation}static _imageOperation=()=>{throw a.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get imageOperation(){return e._imageOperation}static _videoOperation=()=>{throw a.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get videoOperation(){return e._videoOperation}static _imageContainerOperation=()=>{throw a.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get imageContainerOperation(){return e._imageContainerOperation}static _textOperation=()=>{throw a.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get textOperation(){return e._textOperation}static _canvasElementOperation=()=>{throw a.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get canvasElementOperation(){return e._canvasElementOperation}static _setStorageValue=()=>{throw a.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get setStorageValue(){return e._setStorageValue}static _setInitialStorageValue=()=>{throw a.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get setInitialStorageValue(){return e._setInitialStorageValue}static _narrationOperation=()=>{throw a.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get narrationOperation(){return e._narrationOperation}static _effectOperation=()=>{throw a.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get effectOperation(){return e._effectOperation}static _animateOperation=()=>{throw a.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get animateOperation(){return e._animateOperation}static _canvasOperation=()=>{throw a.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get canvasOperation(){return e._canvasOperation}static _getLogichValue=()=>{throw a.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get getLogichValue(){return e._getLogichValue}static _getConditionalStep=()=>{throw a.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get getConditionalStep(){return e._getConditionalStep}};function z(e,i){if(i&&typeof i=="object"&&typeof e.functionName=="string"&&e.functionName in i){let t=i[e.functionName];if(typeof t=="function"){let n=e.args.map(o=>h.getLogichValue(o,i));return t(...n)}else a.warn(`getLogichValue function ${e.functionName} not found in props`);}}function D(e,i){let t=JsonUnifier.getLogichValue(e,i);return t&&typeof t=="object"&&"type"in t?JsonUnifier.getLogichValue(t,i):t}function wt(e,i={}){let t=D(e.value,i);switch(e.storageType){case "flagStorage":storage.flags.set(e.key,e.value);break;case "storage":storage.set(e.key,t);break;case "tempstorage":storage.temp.set(e.key,t);break;case "params":{let n=storage.get(`${w}${narration.labels.opened.length-1}`)||[];n.length>e.key&&(n[e.key]=t),storage.temp.set(`${w}${narration.labels.opened.length-1}`,n);break}}}function St(e,i={}){let t=D(e.value,i);switch(e.storageType){case "storage":case "tempstorage":storage.default={[e.key]:t};break}}function A(e,i={}){let t=k(e,i);if(t&&typeof t=="object"&&"type"in t)switch(t.type){case "value":return Pe(t,i);case "arithmetic":case "arithmeticsingle":return Ve(t,i);case "compare":case "union":return ve(t,i);case "function":return z(t,i)}return t}function Ve(e,i){let t=JsonUnifier.getLogichValue(e.leftValue,i);switch(e.type){case "arithmetic":{let n=JsonUnifier.getLogichValue(e.rightValue,i);switch(e.operator){case "*":return t*n;case "/":return t/n;case "+":return typeof t=="string"||typeof n=="string"?`${t}${n}`:Array.isArray(t)&&Array.isArray(n)?[...t,...n]:Array.isArray(t)?[...t,n]:Array.isArray(n)?[t,...n]:t+n;case "-":if(Array.isArray(t)&&Array.isArray(n))return t.filter(o=>!n.includes(o));if(Array.isArray(t))return t.filter(o=>o!==n);if(Array.isArray(n)){a.warn("getValueFromArithmeticOperations cannot subtract array from non-array");return}return t-n;case "%":return t%n;case "POW":return t**n;case "RANDOM":return narration.getRandomNumber(t,n);case "INTERSECTION":if(Array.isArray(t)&&Array.isArray(n))return t.filter(o=>n.includes(o));a.warn("getValueFromArithmeticOperations cannot intersect non-array values");return;default:a.warn("getValueFromArithmeticOperations unknown operator",e);return}}case "arithmeticsingle":switch(e.operator){case "INT":return Number(t);case "FLOOR":return Math.floor(t);}break}}function Pe(e,i){if(e&&typeof e=="object"&&"type"in e&&e.type==="value"&&e.storageOperationType==="get")switch(e.storageType){case "storage":case "tempstorage":return e.key==="_input_value_"?narration.input.value:storage.get(e.key);case "flagStorage":return storage.flags.get(e.key);case "label":return narration.queries.timesLabelOpened(e.label);case "choice":return narration.queries.timesChoiceMade(e.index);case "logic":return JsonUnifier.getLogichValue(e.operation,i);case "params":{let t=storage.get(`${w}${narration.labels.opened.length-1}`)||[];if(t&&t.length>e.key)return t[e.key];a.warn("getValue params not found");return}}return e}function ve(e,i){if(!e)return false;if(typeof e!="object"||!("type"in e))return !!e;switch(e.type){case "compare":{let t=JsonUnifier.getLogichValue(e.leftValue,i),n=JsonUnifier.getLogichValue(e.rightValue,i);switch(e.operator){case "==":return Array.isArray(t)&&Array.isArray(n)?t.length===n.length&&t.every(o=>n.includes(o)):t===n;case "!=":return Array.isArray(t)&&Array.isArray(n)?t.length!==n.length||!t.every(o=>n.includes(o)):t!==n;case "<":return typeof t=="string"&&typeof n=="string"?t.localeCompare(n)<0:Array.isArray(t)&&Array.isArray(n)?t.length<n.length:t<n;case "<=":return typeof t=="string"&&typeof n=="string"?t.localeCompare(n)<=0:Array.isArray(t)&&Array.isArray(n)?t.length<=n.length:t<=n;case ">":return typeof t=="string"&&typeof n=="string"?t.localeCompare(n)>0:Array.isArray(t)&&Array.isArray(n)?t.length>n.length:t>n;case ">=":return typeof t=="string"&&typeof n=="string"?t.localeCompare(n)>=0:Array.isArray(t)&&Array.isArray(n)?t.length>=n.length:t>=n;case "CONTAINS":return Array.isArray(t)&&Array.isArray(n)?n.every(o=>t.includes(o)):Array.isArray(t)?t.includes(n):t.toString().includes(n.toString())}break}case "value":{let t=JsonUnifier.getLogichValue(e,i);return Array.isArray(t)?t.length>0:t&&typeof t=="object"?Object.keys(t).length>0:!!t}case "union":return Ne(e,i)}return !!e}function Ne(e,i){if(e.unionType==="not"){let n=A(e.condition,i);return Array.isArray(n)?n.length===0:n&&typeof n=="object"?Object.keys(n).length===0:!n}let t=n=>JsonUnifier.getLogichValue(n,i)||false;return e.unionType==="and"?e.conditions.every(t):e.conditions.some(t)}function Te(e,i){return Math.floor(Math.random()*(i-e+1)+e)}function k(e,i={}){if(Array.isArray(e)||!e)return e;if(e&&typeof e=="object"&&"type"in e)switch(e.type){case "resulttocombine":return Je(e,i);case "ifelse":return JsonUnifier.getLogichValue(e.condition,i)?JsonUnifier.getLogichValue(e.then,i):JsonUnifier.getLogichValue(e.else,i);case "stepswitch":{let t=JsonUnifier.getLogichValue(e.elements,i)||[];if(t.length===0){a.error("getValueFromConditionalStatements elements.length === 0");return}switch(e.choiceType){case "random":{let n=Te(0,t.length-1);return JsonUnifier.getLogichValue(t[n],i)}case "loop":{let n=NarrationManagerStatic.getCurrentStepTimesCounter(e.nestedId)-1;return n>t.length-1?(n=n%t.length,JsonUnifier.getLogichValue(t[n],i)):JsonUnifier.getLogichValue(t[n],i)}case "sequential":{let n,o=NarrationManagerStatic.getCurrentStepTimesCounter(e.nestedId)-1;return e.end==="lastItem"&&(n=JsonUnifier.getLogichValue(t[t.length-1],i)),o>t.length-1?n:JsonUnifier.getLogichValue(t[o],i)}case "sequentialrandom":{let n=NarrationManagerStatic.getRandomNumber(0,t.length-1,{nestedId:e.nestedId,onceOnly:true});if(n===void 0&&e.end==="lastItem"){let o=NarrationManagerStatic.getCurrentStepTimesCounterData(e.nestedId);if(!o?.usedRandomNumbers){a.warn("getValueFromConditionalStatements randomIndexWhitExclude == undefined");return}let r=o.usedRandomNumbers[`0-${t.length-1}`];return JsonUnifier.getLogichValue(t[r[r.length-1]],i)}if(n===void 0){a.warn("getValueFromConditionalStatements randomIndexWhitExclude == undefined");return}return JsonUnifier.getLogichValue(t[n],i)}}}}return e}function _(e,i={}){if(e.conditionalStep){let t=createExportableElement(JsonUnifier.getLogichValue(e.conditionalStep,i));if(t?.glueEnabled===void 0&&delete t?.glueEnabled,t?.goNextStep===void 0&&delete t?.goNextStep,t?.end===void 0&&delete t?.end,t?.choices===void 0&&delete t?.choices,t?.dialogue===void 0&&delete t?.dialogue,t?.labelToOpen===void 0&&delete t?.labelToOpen,t?.operations===void 0&&delete t?.operations,t){let n={...e,conditionalStep:void 0,...t};return _(n,i)}else narration.dialogGlue&&(narration.dialogGlue=false);}return e}function Je(e,i){let t=e.firstItem,n=(e.secondConditionalItem??[]).flatMap(r=>Array.isArray(r)?r.map(p=>JsonUnifier.getLogichValue(p,i)):[JsonUnifier.getLogichValue(r,i)]),o=t?[t,...n]:n;if(o.length===0){a.warn("combinateResult toCheck.length === 0");return}if(typeof o[0]=="string")return translator.t(o);if(typeof o[0]=="object"){let r=o,p,V=false,P=r.map((c,f)=>{c=_(c,i);let l=JsonUnifier.getLogichValue(c.dialogue,i)||"";return f===0?(p=JsonUnifier.getLogichValue(c.glueEnabled,i)||false,l):(typeof l=="object"&&"text"in l&&(l=`${l.character}: ${l.text}`),p===false&&V&&(l=`
|
|
1
|
+
import {JsonUnifier}from'@drincs/pixi-vn-json/core';import {Assets,canvas,AnimatedSprite,showAnimatedSprite,transitions,ImageSprite,showImage,VideoSprite,showVideo,ImageContainer,showImageContainer,Text,showText,effects}from'@drincs/pixi-vn/canvas';import {translator}from'@drincs/pixi-vn-json/translator';import {NarrationManagerStatic,narration}from'@drincs/pixi-vn/narration';import {sound}from'@drincs/pixi-vn/sound';import {createExportableElement,PixiError}from'@drincs/pixi-vn';import {storage}from'@drincs/pixi-vn/storage';async function xe(e){let t=JsonUnifier.getLogichValue(e,{});if(t)switch(t.type){case "assets":switch(t.operationType){case "load":await Assets.load(t.aliases);break;case "lazyload":Assets.backgroundLoad(t.aliases);break}break;case "bundle":switch(t.operationType){case "load":await Assets.loadBundle(t.aliases);break;case "lazyload":Assets.backgroundLoadBundle(t.aliases);break}break}}var r;(a=>(a.log=(o,...y)=>console.log(`[Pixi\u2019VN Json] ${o}`,...y),a.warn=(o,...y)=>console.warn(`[Pixi\u2019VN Json] ${o}`,...y),a.error=(o,...y)=>console.error(`[Pixi\u2019VN Json] ${o}`,...y),a.info=(o,...y)=>console.info(`[Pixi\u2019VN Json] ${o}`,...y)))(r||={});async function N(e,t,n){let{alias:i}=t,{props:a,priority:o}=n;switch(n.type){case "fade":await transitions.showWithFade(i,e,a,o);break;case "dissolve":await transitions.showWithDissolve(i,e,a,o);break;case "movein":case "moveout":await transitions.moveIn(i,e,a,o);break;case "zoomin":case "zoomout":await transitions.zoomIn(i,e,a,o);break;case "pushin":case "pushout":await transitions.pushIn(i,e,a,o);break;case "wipein":case "wipeout":await transitions.wipeIn(i,e,a,o);break;case "irisin":case "irisout":await transitions.irisIn(i,e,a,o);break;case "splitin":case "splitout":await transitions.splitIn(i,e,a,o);break;case "blurin":case "blurout":await transitions.blurIn(i,e,a,o);break;case "pixelatein":case "pixelateout":await transitions.pixelateIn(i,e,a,o);break;case "flashin":case "flashout":await transitions.flashIn(i,e,a,o);break;case "glitchin":case "glitchout":await transitions.glitchIn(i,e,a,o);break;case "twistin":case "twistout":await transitions.twistIn(i,e,a,o);break;case "warpin":case "warpout":await transitions.warpIn(i,e,a,o);break;case "ripplein":case "rippleout":await transitions.rippleIn(i,e,a,o);break;case "noisedissolvein":case "noisedissolveout":await transitions.noiseDissolveIn(i,e,a,o);break;case "tvin":case "tvout":await transitions.tvIn(i,e,a,o);break;case "pinchin":case "pinchout":await transitions.pinchIn(i,e,a,o);break}}async function je(e){switch(e.operationType){case "show":if(e.transition){let t=e.source,n;typeof t=="string"?n={spritesheet:t}:t?.spritesheet||t?.frames?.length?n=t:n={...t,spritesheet:e.alias};let i=new AnimatedSprite({autoPlay:true,...e.props},n);await i.load(),await N(i,e,e.transition);}else await showAnimatedSprite(e.alias,e.source,e.props);break;case "edit":{let t=canvas.find(e.alias);t&&e.props?await t.setMemory({...t.memory,...e.props}):t||r.error(`AnimatedSprite with alias ${e.alias} not found.`);break}case "remove":P(e);break;case "pause":case "resume":{let t=canvas.find(e.alias);t?e.operationType==="pause"?t.stop():t.play():r.error(`AnimatedSprite with alias ${e.alias} not found.`);break}case "goto":{if(!Number.isInteger(e.frame)||e.frame<0)throw new RangeError("AnimatedSprite frame must be a non-negative integer.");let t=canvas.find(e.alias);if(t){if(!t.haveEmptyTexture&&e.frame>=t.totalFrames)throw new RangeError(`AnimatedSprite frame must be less than ${t.totalFrames}.`);t.setFrame(e.frame);}else r.error(`AnimatedSprite with alias ${e.alias} not found.`);break}}}function P(e){let{transition:t,alias:n}=e;if(!t){canvas.remove(n);return}let{props:i,priority:a}=t;switch(t.type){case "fade":transitions.removeWithFade(n,i,a);break;case "dissolve":transitions.removeWithDissolve(n,i,a);break;case "movein":case "moveout":transitions.moveOut(n,i,a);break;case "zoomin":case "zoomout":transitions.zoomOut(n,i,a);break;case "pushin":case "pushout":transitions.pushOut(n,i,a);break;case "wipein":case "wipeout":transitions.wipeOut(n,i,a);break;case "irisin":case "irisout":transitions.irisOut(n,i,a);break;case "splitin":case "splitout":transitions.splitOut(n,i,a);break;case "blurin":case "blurout":transitions.blurOut(n,i,a);break;case "pixelatein":case "pixelateout":transitions.pixelateOut(n,i,a);break;case "flashin":case "flashout":transitions.flashOut(n,i,a);break;case "glitchin":case "glitchout":transitions.glitchOut(n,i,a);break;case "twistin":case "twistout":transitions.twistOut(n,i,a);break;case "warpin":case "warpout":transitions.warpOut(n,i,a);break;case "ripplein":case "rippleout":transitions.rippleOut(n,i,a);break;case "noisedissolvein":case "noisedissolveout":transitions.noiseDissolveOut(n,i,a);break;case "tvin":case "tvout":transitions.tvOut(n,i,a);break;case "pinchin":case "pinchout":transitions.pinchOut(n,i,a);break}}async function Ne(e){switch(e.operationType){case "show":if(e.transition){let t=new ImageSprite(e.props,e.url||e.alias);await N(t,e,e.transition);}else await showImage(e.alias,e.url,e.props);break;case "edit":{let t=canvas.find(e.alias);t?e.props&&await t.setMemory({...t.memory,...e.props}):r.error(`Image with alias ${e.alias} not found.`);break}case "remove":P(e);break}}async function Se(e){switch(e.operationType){case "show":if(e.transition){let t=new VideoSprite(e.props,e.url||e.alias);await N(t,e,e.transition);}else await showVideo(e.alias,e.url,e.props);break;case "edit":{let t=canvas.find(e.alias);t?e.props&&await t.setMemory({...t.memory,...e.props}):r.error(`Video with alias ${e.alias} not found.`);break}case "remove":P(e);break;case "pause":case "resume":{let t=canvas.find(e.alias);t?t.paused=e.operationType==="pause":r.error(`Video with alias ${e.alias} not found.`);break}}}async function Te(e){switch(e.operationType){case "show":if(e.transition){let t=new ImageContainer(e.props,e.urls);await N(t,e,e.transition);}else await showImageContainer(e.alias,e.urls,e.props);break;case "edit":{let t=canvas.find(e.alias);t?e.props&&await t.setMemory({...t.memory,...e.props}):r.error(`ImageContainer with alias ${e.alias} not found.`);break}case "remove":P(e);break}}async function ke(e){switch(e.operationType){case "show":if(e.props=e.props||{},e.props.text=translator.t(e.text),e.transition){let t=new Text(e.props);await N(t,e,e.transition);}else showText(e.alias,e.text,e.props);break;case "edit":{let t=canvas.find(e.alias);t?e.props&&await t.setMemory({...t.memory,...e.props}):r.error(`Text with alias ${e.alias} not found.`);break}case "remove":P(e);break}}async function Ce(e){switch(e.operationType){case "edit":try{let t=canvas.find(e.alias);t?e.props&&t.setMemory({...t.memory,...e.props}):r.error(`Canvas Element with alias ${e.alias} not found.`);}catch(t){r.error(`There was an error while trying to edit the canvas element with alias ${e.alias}.`,t);}break;case "remove":P(e);break}}function Ie(e){e.operationType==="clear"&&canvas.removeAll();}async function Je(e){switch(e.type){case "shake":await effects.shakeEffect(e.alias,e.props,e.priority);break;case "bounce":await effects.bounceEffect(e.alias,e.props,e.priority);break;case "pulse":await effects.pulseEffect(e.alias,e.props,e.priority);break;case "hop":await effects.hopEffect(e.alias,e.props,e.priority);break;case "wiggle":await effects.wiggleEffect(e.alias,e.props,e.priority);break;case "nod":await effects.nodEffect(e.alias,e.props,e.priority);break;case "sway":await effects.swayEffect(e.alias,e.props,e.priority);break;case "punch":await effects.punchEffect(e.alias,e.props,e.priority);break;case "glitch":await effects.glitchEffect(e.alias,e.props,e.priority);break;case "chromatic-aberration":await effects.chromaticAberrationEffect(e.alias,e.props,e.priority);break;case "shockwave":await effects.shockwaveEffect(e.alias,e.props,e.priority);break;case "radial-blur":await effects.radialBlurEffect(e.alias,e.props,e.priority);break;case "blur-pulse":await effects.blurPulseEffect(e.alias,e.props,e.priority);break;case "vignette-pulse":await effects.vignettePulseEffect(e.alias,e.props,e.priority);break;case "desaturate":await effects.desaturateEffect(e.alias,e.props,e.priority);break;case "glow-pulse":await effects.glowPulseEffect(e.alias,e.props,e.priority);break}}function Ae(e){switch(e.type){case "animate":canvas.animate(e.alias,e.keyframes,e.options,e.priority);break;case "animate-sequence":canvas.animate(e.alias,e.sequence,e.options,e.priority);break}}var oe={type:"object",properties:{isRenderGroup:{type:"boolean"},blendMode:{enum:["inherit","normal","add","multiply","screen","darken","lighten","erase","color-dodge","color-burn","linear-burn","linear-dodge","linear-light","hard-light","soft-light","pin-light","difference","exclusion","overlay","saturation","color","luminosity","normal-npm","add-npm","screen-npm","none","subtract","divide","vivid-light","hard-mix","negation","min","max"]},tint:{type:["string","number","object"]},alpha:{type:"number"},angle:{type:"number"},children:{type:"object"},parent:{type:"object"},renderable:{type:"boolean"},rotation:{type:"number"},scale:{type:["number","object"]},pivot:{type:["number","object"]},origin:{type:["number","object"]},position:{type:"object"},skew:{type:"object"},visible:{type:"boolean"},x:{type:"number"},y:{type:"number"},boundsArea:{type:"object"},accessible:{type:"boolean"},accessibleTitle:{type:"string"},accessibleHint:{type:"string"},tabIndex:{type:"number"},accessibleType:{enum:["object","label","a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]},accessiblePointerEvents:{enum:["inherit","none","auto","visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all"]},accessibleText:{type:"string"},accessibleChildren:{type:"boolean"},cullArea:{type:"object"},cullable:{type:"boolean"},cullableChildren:{type:"boolean"},cursor:{anyOf:[{const:"none"},{const:"progress"},{const:"auto"},{const:"default"},{const:"context-menu"},{const:"help"},{const:"pointer"},{const:"wait"},{const:"cell"},{const:"crosshair"},{const:"text"},{const:"vertical-text"},{const:"alias"},{const:"copy"},{const:"move"},{const:"no-drop"},{const:"not-allowed"},{const:"e-resize"},{const:"n-resize"},{const:"ne-resize"},{const:"nw-resize"},{const:"s-resize"},{const:"se-resize"},{const:"sw-resize"},{const:"w-resize"},{const:"ns-resize"},{const:"ew-resize"},{const:"nesw-resize"},{const:"col-resize"},{const:"nwse-resize"},{const:"row-resize"},{const:"all-scroll"},{const:"zoom-in"},{const:"zoom-out"},{const:"grab"},{const:"grabbing"},{type:"string"}]},eventMode:{enum:["none","auto","passive","static","dynamic"]},interactive:{type:"boolean"},interactiveChildren:{type:"boolean"},hitArea:{type:"object"},width:{type:"number"},height:{type:"number"},mask:{type:["number","object"]},filters:{type:"object"},label:{type:"string"},zIndex:{type:"number"},sortDirty:{type:"boolean"},sortableChildren:{type:"boolean"},pixivnId:{type:"string"},index:{type:"number"},parentLabel:{type:"string"},onEvents:{type:"object"},align:{type:["number","object"]},xAlign:{type:"number"},yAlign:{type:"number"},percentagePosition:{type:["number","object"]},percentageX:{type:"number"},percentageY:{type:"number"}},required:["pixivnId"],additionalProperties:false};var re={dissolve:{type:"object",properties:{completeOnContinue:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},fade:{type:"object",properties:{completeOnContinue:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},movein:{type:"object",properties:{direction:{enum:["left","right","up","down"]},motionBlur:{anyOf:[{type:"number"},{const:false},{const:true}]},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},zoomin:{type:"object",properties:{direction:{enum:["left","right","up","down"]},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},pushin:{type:"object",properties:{direction:{enum:["left","right","up","down"]},motionBlur:{anyOf:[{type:"number"},{const:false},{const:true}]},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},wipein:{type:"object",properties:{angle:{type:"number"},direction:{enum:["left","right","up","down"]},invert:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},irisin:{type:"object",properties:{origin:{type:"object"},aspect:{type:"number"},direction:{enum:["expand","contract"]},invert:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},splitin:{type:"object",properties:{direction:{enum:["inward","outward"]},orientation:{enum:["horizontal","vertical"]},origin:{type:"number"},invert:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},blurin:{type:"object",properties:{strength:{type:"number"},quality:{type:"number"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},pixelatein:{type:"object",properties:{pixelSize:{type:"number"},direction:{enum:["up-left","up-right","down-left","down-right"]},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},flashin:{type:"object",properties:{color:{type:["string","number","object"]},maxAlpha:{type:"number"},holdDuration:{type:"number"},pulses:{type:"number"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},glitchin:{type:"object",properties:{strength:{type:"number"},bursts:{type:"number"},slices:{type:"number"},rgbSplit:{type:"number"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},twistin:{type:"object",properties:{angle:{type:"number"},radius:{type:"number"},origin:{type:"object"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},warpin:{type:"object",properties:{strength:{type:"number"},origin:{type:"object"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},ripplein:{type:"object",properties:{origin:{type:"object"},amplitude:{type:"number"},wavelength:{type:"number"},speed:{type:"number"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},noisedissolvein:{type:"object",properties:{edge:{enum:["hard","soft"]},noiseScale:{type:"number"},seed:{type:"number"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},tvin:{type:"object",properties:{lineThickness:{type:"number"},brightness:{type:"number"},scanlines:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},pinchin:{type:"object",properties:{strength:{type:"number"},mode:{enum:["pinch","bulge"]},radius:{type:"number"},origin:{type:"object"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false}};var _e=["dissolve","fade","movein","zoomin","pushin","wipein","irisin","splitin","blurin","pixelatein","flashin","glitchin","twistin","warpin","ripplein","noisedissolvein","tvin","pinchin"];async function Ge(e,t,n,i){switch(n){case "dissolve":return transitions.showWithDissolve(e,t,i);case "fade":return transitions.showWithFade(e,t,i);case "movein":return transitions.moveIn(e,t,i);case "zoomin":return transitions.zoomIn(e,t,i);case "pushin":return transitions.pushIn(e,t,i);case "wipein":return transitions.wipeIn(e,t,i);case "irisin":return transitions.irisIn(e,t,i);case "splitin":return transitions.splitIn(e,t,i);case "blurin":return transitions.blurIn(e,t,i);case "pixelatein":return transitions.pixelateIn(e,t,i);case "flashin":return transitions.flashIn(e,t,i);case "glitchin":return transitions.glitchIn(e,t,i);case "twistin":return transitions.twistIn(e,t,i);case "warpin":return transitions.warpIn(e,t,i);case "ripplein":return transitions.rippleIn(e,t,i);case "noisedissolvein":return transitions.noiseDissolveIn(e,t,i);case "tvin":return transitions.tvIn(e,t,i);case "pinchin":return transitions.pinchIn(e,t,i)}}function Ue(e){switch(e.type){case "input":narration.input.request({type:e.valueType},e.defaultValue);break;case "dialogue":narration.dialogue=void 0;break}}function Be(e){switch(e.operationType){case "play":e.url?sound.play(e.alias,e.url,e.props):sound.play(e.alias,e.props);break;case "stop":switch(e.type){case "sound":sound.stop(e.alias);break;case "all":sound.stopAll();break}break;case "pause":switch(e.type){case "sound":sound.pause(e.alias);break;case "channel":sound.channels.find(e.alias).pauseAll();break;case "all":sound.pauseAll();break}break;case "resume":switch(e.type){case "sound":sound.resume(e.alias);break;case "channel":sound.channels.find(e.alias).resumeAll();break;case "all":sound.resumeAll();break}break;case "edit":{let t=sound.find(e.alias);if(!t)break;for(let[n,i]of Object.entries(e.props))switch(n){case "volume":t.volume.value=i;break;case "playbackRate":t.playbackRate=i;break;case "mute":t.mute=i;break;case "loop":t.loop=i;break;case "paused":t.paused=i;break}break}}}var k="___param___";var O=class e{static init(t){t.loadAssets&&(e._loadAssets=t.loadAssets),t.soundOperation&&(e._soundOperation=t.soundOperation),t.imageOperation&&(e._imageOperation=t.imageOperation),t.videoOperation&&(e._videoOperation=t.videoOperation),t.animatedSpriteOperation&&(e._animatedSpriteOperation=t.animatedSpriteOperation),t.imageContainerOperation&&(e._imageContainerOperation=t.imageContainerOperation),t.textOperation&&(e._textOperation=t.textOperation),t.canvasElementOperation&&(e._canvasElementOperation=t.canvasElementOperation),t.setStorageValue&&(e._setStorageValue=t.setStorageValue),t.setInitialStorageValue&&(e._setInitialStorageValue=t.setInitialStorageValue),t.narrationOperation&&(e._narrationOperation=t.narrationOperation),t.effectOperation&&(e._effectOperation=t.effectOperation),t.animateOperation&&(e._animateOperation=t.animateOperation),t.canvasOperation&&(e._canvasOperation=t.canvasOperation),t.getLogichValue&&(e._getLogichValue=t.getLogichValue),t.getConditionalStep&&(e._getConditionalStep=t.getConditionalStep);}static _loadAssets=()=>{};static get loadAssets(){return e._loadAssets}static _soundOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get soundOperation(){return e._soundOperation}static _imageOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get imageOperation(){return e._imageOperation}static _videoOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get videoOperation(){return e._videoOperation}static _animatedSpriteOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get animatedSpriteOperation(){return e._animatedSpriteOperation}static _imageContainerOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get imageContainerOperation(){return e._imageContainerOperation}static _textOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get textOperation(){return e._textOperation}static _canvasElementOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get canvasElementOperation(){return e._canvasElementOperation}static _setStorageValue=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get setStorageValue(){return e._setStorageValue}static _setInitialStorageValue=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get setInitialStorageValue(){return e._setInitialStorageValue}static _narrationOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get narrationOperation(){return e._narrationOperation}static _effectOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get effectOperation(){return e._effectOperation}static _animateOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get animateOperation(){return e._animateOperation}static _canvasOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get canvasOperation(){return e._canvasOperation}static _getLogichValue=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get getLogichValue(){return e._getLogichValue}static _getConditionalStep=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get getConditionalStep(){return e._getConditionalStep}};function _(e,t){if(t&&typeof t=="object"&&typeof e.functionName=="string"&&e.functionName in t){let n=t[e.functionName];if(typeof n=="function"){let i=e.args.map(a=>O.getLogichValue(a,t));return n(...i)}else r.warn(`getLogichValue function ${e.functionName} not found in props`);}}function G(e,t){let n=JsonUnifier.getLogichValue(e,t);return n&&typeof n=="object"&&"type"in n?JsonUnifier.getLogichValue(n,t):n}function ft(e,t={}){let n=G(e.value,t);switch(e.storageType){case "flagStorage":storage.flags.set(e.key,e.value);break;case "storage":storage.set(e.key,n);break;case "tempstorage":storage.temp.set(e.key,n);break;case "params":{let i=storage.get(`${k}${narration.labels.opened.length-1}`)||[];i.length>e.key&&(i[e.key]=n),storage.temp.set(`${k}${narration.labels.opened.length-1}`,i);break}}}function gt(e,t={}){let n=G(e.value,t);switch(e.storageType){case "storage":case "tempstorage":storage.default={[e.key]:n};break}}function D(e,t={}){let n=E(e,t);if(n&&typeof n=="object"&&"type"in n)switch(n.type){case "value":return ue(n,t);case "arithmetic":case "arithmeticsingle":return ce(n,t);case "compare":case "union":return ye(n,t);case "function":return _(n,t)}return n}function ce(e,t){let n=JsonUnifier.getLogichValue(e.leftValue,t);switch(e.type){case "arithmetic":{let i=JsonUnifier.getLogichValue(e.rightValue,t);switch(e.operator){case "*":return n*i;case "/":return n/i;case "+":return typeof n=="string"||typeof i=="string"?`${n}${i}`:Array.isArray(n)&&Array.isArray(i)?[...n,...i]:Array.isArray(n)?[...n,i]:Array.isArray(i)?[n,...i]:n+i;case "-":if(Array.isArray(n)&&Array.isArray(i))return n.filter(a=>!i.includes(a));if(Array.isArray(n))return n.filter(a=>a!==i);if(Array.isArray(i)){r.warn("getValueFromArithmeticOperations cannot subtract array from non-array");return}return n-i;case "%":return n%i;case "POW":return n**i;case "RANDOM":return narration.getRandomNumber(n,i);case "INTERSECTION":if(Array.isArray(n)&&Array.isArray(i))return n.filter(a=>i.includes(a));r.warn("getValueFromArithmeticOperations cannot intersect non-array values");return;default:r.warn("getValueFromArithmeticOperations unknown operator",e);return}}case "arithmeticsingle":switch(e.operator){case "INT":return Number(n);case "FLOOR":return Math.floor(n);}break}}function ue(e,t){if(e&&typeof e=="object"&&"type"in e&&e.type==="value"&&e.storageOperationType==="get")switch(e.storageType){case "storage":case "tempstorage":return e.key==="_input_value_"?narration.input.value:storage.get(e.key);case "flagStorage":return storage.flags.get(e.key);case "label":return narration.queries.timesLabelOpened(e.label);case "choice":return narration.queries.timesChoiceMade(e.index);case "logic":return JsonUnifier.getLogichValue(e.operation,t);case "params":{let n=storage.get(`${k}${narration.labels.opened.length-1}`)||[];if(n&&n.length>e.key)return n[e.key];r.warn("getValue params not found");return}}return e}function ye(e,t){if(!e)return false;if(typeof e!="object"||!("type"in e))return !!e;switch(e.type){case "compare":{let n=JsonUnifier.getLogichValue(e.leftValue,t),i=JsonUnifier.getLogichValue(e.rightValue,t);switch(e.operator){case "==":return Array.isArray(n)&&Array.isArray(i)?n.length===i.length&&n.every(a=>i.includes(a)):n===i;case "!=":return Array.isArray(n)&&Array.isArray(i)?n.length!==i.length||!n.every(a=>i.includes(a)):n!==i;case "<":return typeof n=="string"&&typeof i=="string"?n.localeCompare(i)<0:Array.isArray(n)&&Array.isArray(i)?n.length<i.length:n<i;case "<=":return typeof n=="string"&&typeof i=="string"?n.localeCompare(i)<=0:Array.isArray(n)&&Array.isArray(i)?n.length<=i.length:n<=i;case ">":return typeof n=="string"&&typeof i=="string"?n.localeCompare(i)>0:Array.isArray(n)&&Array.isArray(i)?n.length>i.length:n>i;case ">=":return typeof n=="string"&&typeof i=="string"?n.localeCompare(i)>=0:Array.isArray(n)&&Array.isArray(i)?n.length>=i.length:n>=i;case "CONTAINS":return Array.isArray(n)&&Array.isArray(i)?i.every(a=>n.includes(a)):Array.isArray(n)?n.includes(i):n.toString().includes(i.toString())}break}case "value":{let n=JsonUnifier.getLogichValue(e,t);return Array.isArray(n)?n.length>0:n&&typeof n=="object"?Object.keys(n).length>0:!!n}case "union":return le(e,t)}return !!e}function le(e,t){if(e.unionType==="not"){let i=D(e.condition,t);return Array.isArray(i)?i.length===0:i&&typeof i=="object"?Object.keys(i).length===0:!i}let n=i=>JsonUnifier.getLogichValue(i,t)||false;return e.unionType==="and"?e.conditions.every(n):e.conditions.some(n)}function me(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function E(e,t={}){if(Array.isArray(e)||!e)return e;if(e&&typeof e=="object"&&"type"in e)switch(e.type){case "resulttocombine":return be(e,t);case "ifelse":return JsonUnifier.getLogichValue(e.condition,t)?JsonUnifier.getLogichValue(e.then,t):JsonUnifier.getLogichValue(e.else,t);case "stepswitch":{let n=JsonUnifier.getLogichValue(e.elements,t)||[];if(n.length===0){r.error("getValueFromConditionalStatements elements.length === 0");return}switch(e.choiceType){case "random":{let i=me(0,n.length-1);return JsonUnifier.getLogichValue(n[i],t)}case "loop":{let i=NarrationManagerStatic.getCurrentStepTimesCounter(e.nestedId)-1;return i>n.length-1?(i=i%n.length,JsonUnifier.getLogichValue(n[i],t)):JsonUnifier.getLogichValue(n[i],t)}case "sequential":{let i,a=NarrationManagerStatic.getCurrentStepTimesCounter(e.nestedId)-1;return e.end==="lastItem"&&(i=JsonUnifier.getLogichValue(n[n.length-1],t)),a>n.length-1?i:JsonUnifier.getLogichValue(n[a],t)}case "sequentialrandom":{let i=NarrationManagerStatic.getRandomNumber(0,n.length-1,{nestedId:e.nestedId,onceOnly:true});if(i===void 0&&e.end==="lastItem"){let a=NarrationManagerStatic.getCurrentStepTimesCounterData(e.nestedId);if(!a?.usedRandomNumbers){r.warn("getValueFromConditionalStatements randomIndexWhitExclude == undefined");return}let o=a.usedRandomNumbers[`0-${n.length-1}`];return JsonUnifier.getLogichValue(n[o[o.length-1]],t)}if(i===void 0){r.warn("getValueFromConditionalStatements randomIndexWhitExclude == undefined");return}return JsonUnifier.getLogichValue(n[i],t)}}}}return e}function $(e,t={}){if(e.conditionalStep){let n=createExportableElement(JsonUnifier.getLogichValue(e.conditionalStep,t));if(n?.glueEnabled===void 0&&delete n?.glueEnabled,n?.goNextStep===void 0&&delete n?.goNextStep,n?.end===void 0&&delete n?.end,n?.choices===void 0&&delete n?.choices,n?.dialogue===void 0&&delete n?.dialogue,n?.labelToOpen===void 0&&delete n?.labelToOpen,n?.operations===void 0&&delete n?.operations,n){let i={...e,conditionalStep:void 0,...n};return $(i,t)}else narration.dialogGlue&&(narration.dialogGlue=false);}return e}function be(e,t){let n=e.firstItem,i=(e.secondConditionalItem??[]).flatMap(o=>Array.isArray(o)?o.map(y=>JsonUnifier.getLogichValue(y,t)):[JsonUnifier.getLogichValue(o,t)]),a=n?[n,...i]:i;if(a.length===0){r.warn("combinateResult toCheck.length === 0");return}if(typeof a[0]=="string")return translator.t(a);if(typeof a[0]=="object"){let o=a,y,w=false,j=o.map((c,v)=>{c=$(c,t);let b=JsonUnifier.getLogichValue(c.dialogue,t)||"";return v===0?(y=JsonUnifier.getLogichValue(c.glueEnabled,t)||false,b):(typeof b=="object"&&"text"in b&&(b=`${b.character}: ${b.text}`),y===false&&w&&(b=`
|
|
2
2
|
|
|
3
|
-
${
|
|
3
|
+
${b}`),b&&(w=true),y=JsonUnifier.getLogichValue(c.glueEnabled,t)||false,b)}),x=JsonUnifier.getLogichValue(j[0],t),V=typeof x=="object"&&"character"in x?x.character:void 0,S=j.flatMap(c=>{let v;c&&typeof c=="object"&&"text"in c?v=c.text:v=c;let b;return Array.isArray(v)?b=v.map(U=>{let W=JsonUnifier.getLogichValue(U,t);return translator.t(`${W}`)}):b=JsonUnifier.getLogichValue(v,t)||"",translator.t(b)}),I=o.find(c=>c.end),F=o.find(c=>c.choices),R=false,L=false;o.length>0&&(o[0].glueEnabled&&o[0].goNextStep&&o[0].dialogue===void 0&&(narration.dialogGlue=true),R=o[o.length-1].glueEnabled,L=o.reverse().find(c=>!(c.operations&&(!c.dialogue||!c.choices)))?.goNextStep);let q=o.find(c=>c.labelToOpen),J=[];return o.forEach(c=>{c.operations&&(J=[...J,...c.operations]);}),{dialogue:V?{character:V,text:S}:S,end:I?.end,choices:F?.choices,glueEnabled:R,goNextStep:L,labelToOpen:q?.labelToOpen,operations:J}}}var de;(a=>{let e=new Set;function t(o){e.add(o);}a.add=t;function n(){e.clear();}a.clear=n;function i(o,y={}){let w=V=>D(V,y)??void 0,j=E(o,y);if(e.size===0)return w(j);let x=w;for(let V of e){let S=x;x=I=>V(I,S)??void 0;}return x(j)}a.getLogichValue=i;})(de||={});export{_e as ENTRANCE_TRANSITION_TYPES,de as VariableGetter,Ae as animateOperation,je as animatedSpriteOperation,Ce as canvasElementOperation,Ie as canvasOperation,oe as containerMemorySchema,Je as effectOperation,re as entranceTransitionKeySchemas,Ge as executeEntranceTransition,$ as getConditionalStep,D as getLogichValue,E as getValueFromConditionalStatements,Te as imageContainerOperation,Ne as imageOperation,xe as loadAssets,Ue as narrationOperation,gt as setInitialStorageValue,ft as setStorageValue,Be as soundOperation,ke as textOperation,Se as videoOperation};
|
package/dist/constants.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var s={version:"1.
|
|
1
|
+
'use strict';var s={version:"1.16.1"};var r="___param___",o=`https://pixi-vn.com/schemas/${s.version}/schema.json`,n=["==","!=","<","<=",">",">=","CONTAINS"];
|
|
2
2
|
exports.PIXIVNJSON_PARAM_ID=r;exports.PIXIVNJSON_SCHEMA_URL=o;exports.PixiVNJsonComparationOperators=n;
|
package/dist/constants.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var s={version:"1.
|
|
1
|
+
var s={version:"1.16.1"};var r="___param___",o=`https://pixi-vn.com/schemas/${s.version}/schema.json`,n=["==","!=","<","<=",">",">=","CONTAINS"];
|
|
2
2
|
export{r as PIXIVNJSON_PARAM_ID,o as PIXIVNJSON_SCHEMA_URL,n as PixiVNJsonComparationOperators};
|
package/dist/core.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var pixiVn=require('@drincs/pixi-vn');var t;(r=>(r.log=(a,...n)=>console.log(`[Pixi\u2019VN Json] ${a}`,...n),r.warn=(a,...n)=>console.warn(`[Pixi\u2019VN Json] ${a}`,...n),r.error=(a,...n)=>console.error(`[Pixi\u2019VN Json] ${a}`,...n),r.info=(a,...n)=>console.info(`[Pixi\u2019VN Json] ${a}`,...n)))(t||={});var s=class
|
|
1
|
+
'use strict';var pixiVn=require('@drincs/pixi-vn');var t;(r=>(r.log=(a,...n)=>console.log(`[Pixi\u2019VN Json] ${a}`,...n),r.warn=(a,...n)=>console.warn(`[Pixi\u2019VN Json] ${a}`,...n),r.error=(a,...n)=>console.error(`[Pixi\u2019VN Json] ${a}`,...n),r.info=(a,...n)=>console.info(`[Pixi\u2019VN Json] ${a}`,...n)))(t||={});var s=class i{static init(e){e.loadAssets&&(i._loadAssets=e.loadAssets),e.soundOperation&&(i._soundOperation=e.soundOperation),e.imageOperation&&(i._imageOperation=e.imageOperation),e.videoOperation&&(i._videoOperation=e.videoOperation),e.animatedSpriteOperation&&(i._animatedSpriteOperation=e.animatedSpriteOperation),e.imageContainerOperation&&(i._imageContainerOperation=e.imageContainerOperation),e.textOperation&&(i._textOperation=e.textOperation),e.canvasElementOperation&&(i._canvasElementOperation=e.canvasElementOperation),e.setStorageValue&&(i._setStorageValue=e.setStorageValue),e.setInitialStorageValue&&(i._setInitialStorageValue=e.setInitialStorageValue),e.narrationOperation&&(i._narrationOperation=e.narrationOperation),e.effectOperation&&(i._effectOperation=e.effectOperation),e.animateOperation&&(i._animateOperation=e.animateOperation),e.canvasOperation&&(i._canvasOperation=e.canvasOperation),e.getLogichValue&&(i._getLogichValue=e.getLogichValue),e.getConditionalStep&&(i._getConditionalStep=e.getConditionalStep);}static _loadAssets=()=>{};static get loadAssets(){return i._loadAssets}static _soundOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get soundOperation(){return i._soundOperation}static _imageOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get imageOperation(){return i._imageOperation}static _videoOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get videoOperation(){return i._videoOperation}static _animatedSpriteOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get animatedSpriteOperation(){return i._animatedSpriteOperation}static _imageContainerOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get imageContainerOperation(){return i._imageContainerOperation}static _textOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get textOperation(){return i._textOperation}static _canvasElementOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get canvasElementOperation(){return i._canvasElementOperation}static _setStorageValue=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get setStorageValue(){return i._setStorageValue}static _setInitialStorageValue=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get setInitialStorageValue(){return i._setInitialStorageValue}static _narrationOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get narrationOperation(){return i._narrationOperation}static _effectOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get effectOperation(){return i._effectOperation}static _animateOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get animateOperation(){return i._animateOperation}static _canvasOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get canvasOperation(){return i._canvasOperation}static _getLogichValue=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get getLogichValue(){return i._getLogichValue}static _getConditionalStep=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get getConditionalStep(){return i._getConditionalStep}};exports.JsonUnifier=s;
|
package/dist/core.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ImageSpriteMemory, VideoSpriteMemory, ContainerMemory, ContainerChild, StepLabelPropsType, StorageElementType } from '@drincs/pixi-vn';
|
|
2
2
|
import { P as PixiVNJsonIfElse, a as PixiVNJsonValueSet, b as PixiVNJsonOnlyStorageSet, c as PixiVNJsonValueGet, d as PixiVNJsonArithmeticOperations, e as PixiVNJsonConditions, f as PixiVNJsonConditionalStatements } from './PixiVNJsonIfElse-CgOnelja.cjs';
|
|
3
|
-
import { P as PixiVNJsonOperation, a as PixiVNJsonOperationString, b as PixiVNJsonSound, c as PixiVNJsonCanvasImageVideoShow, d as PixiVNJsonImageEdit, e as PixiVNJsonCanvasRemove, f as PixiVNJsonVideoEdit, g as PixiVNJsonVideoPauseResume, h as
|
|
3
|
+
import { P as PixiVNJsonOperation, a as PixiVNJsonOperationString, b as PixiVNJsonSound, c as PixiVNJsonCanvasImageVideoShow, d as PixiVNJsonImageEdit, e as PixiVNJsonCanvasRemove, f as PixiVNJsonVideoEdit, g as PixiVNJsonVideoPauseResume, h as PixiVNJsonCanvasAnimatedSpriteShow, i as PixiVNJsonAnimatedSpriteEdit, j as PixiVNJsonAnimatedSpriteControl, k as PixiVNJsonCanvasImageContainerShow, l as PixiVNJsonImageContainerEdit, m as PixiVNJsonCanvasTextShow, n as PixiVNJsonTextEdit, o as PixiVNJsonUnknownEdit, p as PixiVNJsonNarration, q as PixiVNJsonCanvasEffect, r as PixiVNJsonCanvasAnimate, s as PixiVNJsonCanvasClear, t as PixiVNJsonLabelStep } from './PixiVNJsonLabelStep-D1MiCvp5.cjs';
|
|
4
4
|
import '@drincs/pixi-vn/motion';
|
|
5
5
|
import 'pixi.js';
|
|
6
|
+
import '@drincs/pixi-vn/canvas';
|
|
6
7
|
|
|
7
8
|
declare class JsonUnifier {
|
|
8
9
|
/**
|
|
@@ -17,6 +18,7 @@ declare class JsonUnifier {
|
|
|
17
18
|
soundOperation?: (operation: PixiVNJsonSound) => void;
|
|
18
19
|
imageOperation?: (operation: PixiVNJsonCanvasImageVideoShow | PixiVNJsonImageEdit | PixiVNJsonCanvasRemove) => Promise<void>;
|
|
19
20
|
videoOperation?: (operation: PixiVNJsonCanvasImageVideoShow | PixiVNJsonCanvasRemove | PixiVNJsonVideoEdit | PixiVNJsonVideoPauseResume) => Promise<void>;
|
|
21
|
+
animatedSpriteOperation?: (operation: PixiVNJsonCanvasAnimatedSpriteShow | PixiVNJsonAnimatedSpriteEdit | PixiVNJsonAnimatedSpriteControl | PixiVNJsonCanvasRemove) => Promise<void>;
|
|
20
22
|
imageContainerOperation?: (operation: PixiVNJsonCanvasRemove | PixiVNJsonCanvasImageContainerShow | PixiVNJsonImageContainerEdit) => Promise<void>;
|
|
21
23
|
textOperation?: (operation: PixiVNJsonCanvasRemove | PixiVNJsonCanvasTextShow | PixiVNJsonTextEdit) => Promise<void>;
|
|
22
24
|
canvasElementOperation?: (operation: PixiVNJsonCanvasRemove | PixiVNJsonUnknownEdit<ImageSpriteMemory | VideoSpriteMemory | ContainerMemory<ContainerChild>>) => Promise<void>;
|
|
@@ -41,6 +43,9 @@ declare class JsonUnifier {
|
|
|
41
43
|
private static _videoOperation;
|
|
42
44
|
/** Registered handler for {@link VideoSprite} show/edit/remove/pause/resume operations. */
|
|
43
45
|
static get videoOperation(): (operation: PixiVNJsonCanvasImageVideoShow | PixiVNJsonCanvasRemove | PixiVNJsonVideoEdit | PixiVNJsonVideoPauseResume) => Promise<void>;
|
|
46
|
+
private static _animatedSpriteOperation;
|
|
47
|
+
/** Registered handler for AnimatedSprite show/edit/remove/pause/resume/goto operations. */
|
|
48
|
+
static get animatedSpriteOperation(): (operation: PixiVNJsonCanvasAnimatedSpriteShow | PixiVNJsonAnimatedSpriteEdit | PixiVNJsonAnimatedSpriteControl | PixiVNJsonCanvasRemove) => Promise<void>;
|
|
44
49
|
private static _imageContainerOperation;
|
|
45
50
|
static get imageContainerOperation(): (operation: PixiVNJsonCanvasRemove | PixiVNJsonCanvasImageContainerShow | PixiVNJsonImageContainerEdit) => Promise<void>;
|
|
46
51
|
private static _textOperation;
|
package/dist/core.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ImageSpriteMemory, VideoSpriteMemory, ContainerMemory, ContainerChild, StepLabelPropsType, StorageElementType } from '@drincs/pixi-vn';
|
|
2
2
|
import { P as PixiVNJsonIfElse, a as PixiVNJsonValueSet, b as PixiVNJsonOnlyStorageSet, c as PixiVNJsonValueGet, d as PixiVNJsonArithmeticOperations, e as PixiVNJsonConditions, f as PixiVNJsonConditionalStatements } from './PixiVNJsonIfElse-CgOnelja.js';
|
|
3
|
-
import { P as PixiVNJsonOperation, a as PixiVNJsonOperationString, b as PixiVNJsonSound, c as PixiVNJsonCanvasImageVideoShow, d as PixiVNJsonImageEdit, e as PixiVNJsonCanvasRemove, f as PixiVNJsonVideoEdit, g as PixiVNJsonVideoPauseResume, h as
|
|
3
|
+
import { P as PixiVNJsonOperation, a as PixiVNJsonOperationString, b as PixiVNJsonSound, c as PixiVNJsonCanvasImageVideoShow, d as PixiVNJsonImageEdit, e as PixiVNJsonCanvasRemove, f as PixiVNJsonVideoEdit, g as PixiVNJsonVideoPauseResume, h as PixiVNJsonCanvasAnimatedSpriteShow, i as PixiVNJsonAnimatedSpriteEdit, j as PixiVNJsonAnimatedSpriteControl, k as PixiVNJsonCanvasImageContainerShow, l as PixiVNJsonImageContainerEdit, m as PixiVNJsonCanvasTextShow, n as PixiVNJsonTextEdit, o as PixiVNJsonUnknownEdit, p as PixiVNJsonNarration, q as PixiVNJsonCanvasEffect, r as PixiVNJsonCanvasAnimate, s as PixiVNJsonCanvasClear, t as PixiVNJsonLabelStep } from './PixiVNJsonLabelStep-BrRDO4iZ.js';
|
|
4
4
|
import '@drincs/pixi-vn/motion';
|
|
5
5
|
import 'pixi.js';
|
|
6
|
+
import '@drincs/pixi-vn/canvas';
|
|
6
7
|
|
|
7
8
|
declare class JsonUnifier {
|
|
8
9
|
/**
|
|
@@ -17,6 +18,7 @@ declare class JsonUnifier {
|
|
|
17
18
|
soundOperation?: (operation: PixiVNJsonSound) => void;
|
|
18
19
|
imageOperation?: (operation: PixiVNJsonCanvasImageVideoShow | PixiVNJsonImageEdit | PixiVNJsonCanvasRemove) => Promise<void>;
|
|
19
20
|
videoOperation?: (operation: PixiVNJsonCanvasImageVideoShow | PixiVNJsonCanvasRemove | PixiVNJsonVideoEdit | PixiVNJsonVideoPauseResume) => Promise<void>;
|
|
21
|
+
animatedSpriteOperation?: (operation: PixiVNJsonCanvasAnimatedSpriteShow | PixiVNJsonAnimatedSpriteEdit | PixiVNJsonAnimatedSpriteControl | PixiVNJsonCanvasRemove) => Promise<void>;
|
|
20
22
|
imageContainerOperation?: (operation: PixiVNJsonCanvasRemove | PixiVNJsonCanvasImageContainerShow | PixiVNJsonImageContainerEdit) => Promise<void>;
|
|
21
23
|
textOperation?: (operation: PixiVNJsonCanvasRemove | PixiVNJsonCanvasTextShow | PixiVNJsonTextEdit) => Promise<void>;
|
|
22
24
|
canvasElementOperation?: (operation: PixiVNJsonCanvasRemove | PixiVNJsonUnknownEdit<ImageSpriteMemory | VideoSpriteMemory | ContainerMemory<ContainerChild>>) => Promise<void>;
|
|
@@ -41,6 +43,9 @@ declare class JsonUnifier {
|
|
|
41
43
|
private static _videoOperation;
|
|
42
44
|
/** Registered handler for {@link VideoSprite} show/edit/remove/pause/resume operations. */
|
|
43
45
|
static get videoOperation(): (operation: PixiVNJsonCanvasImageVideoShow | PixiVNJsonCanvasRemove | PixiVNJsonVideoEdit | PixiVNJsonVideoPauseResume) => Promise<void>;
|
|
46
|
+
private static _animatedSpriteOperation;
|
|
47
|
+
/** Registered handler for AnimatedSprite show/edit/remove/pause/resume/goto operations. */
|
|
48
|
+
static get animatedSpriteOperation(): (operation: PixiVNJsonCanvasAnimatedSpriteShow | PixiVNJsonAnimatedSpriteEdit | PixiVNJsonAnimatedSpriteControl | PixiVNJsonCanvasRemove) => Promise<void>;
|
|
44
49
|
private static _imageContainerOperation;
|
|
45
50
|
static get imageContainerOperation(): (operation: PixiVNJsonCanvasRemove | PixiVNJsonCanvasImageContainerShow | PixiVNJsonImageContainerEdit) => Promise<void>;
|
|
46
51
|
private static _textOperation;
|
package/dist/core.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {PixiError}from'@drincs/pixi-vn';var t;(r=>(r.log=(a,...n)=>console.log(`[Pixi\u2019VN Json] ${a}`,...n),r.warn=(a,...n)=>console.warn(`[Pixi\u2019VN Json] ${a}`,...n),r.error=(a,...n)=>console.error(`[Pixi\u2019VN Json] ${a}`,...n),r.info=(a,...n)=>console.info(`[Pixi\u2019VN Json] ${a}`,...n)))(t||={});var s=class
|
|
1
|
+
import {PixiError}from'@drincs/pixi-vn';var t;(r=>(r.log=(a,...n)=>console.log(`[Pixi\u2019VN Json] ${a}`,...n),r.warn=(a,...n)=>console.warn(`[Pixi\u2019VN Json] ${a}`,...n),r.error=(a,...n)=>console.error(`[Pixi\u2019VN Json] ${a}`,...n),r.info=(a,...n)=>console.info(`[Pixi\u2019VN Json] ${a}`,...n)))(t||={});var s=class i{static init(e){e.loadAssets&&(i._loadAssets=e.loadAssets),e.soundOperation&&(i._soundOperation=e.soundOperation),e.imageOperation&&(i._imageOperation=e.imageOperation),e.videoOperation&&(i._videoOperation=e.videoOperation),e.animatedSpriteOperation&&(i._animatedSpriteOperation=e.animatedSpriteOperation),e.imageContainerOperation&&(i._imageContainerOperation=e.imageContainerOperation),e.textOperation&&(i._textOperation=e.textOperation),e.canvasElementOperation&&(i._canvasElementOperation=e.canvasElementOperation),e.setStorageValue&&(i._setStorageValue=e.setStorageValue),e.setInitialStorageValue&&(i._setInitialStorageValue=e.setInitialStorageValue),e.narrationOperation&&(i._narrationOperation=e.narrationOperation),e.effectOperation&&(i._effectOperation=e.effectOperation),e.animateOperation&&(i._animateOperation=e.animateOperation),e.canvasOperation&&(i._canvasOperation=e.canvasOperation),e.getLogichValue&&(i._getLogichValue=e.getLogichValue),e.getConditionalStep&&(i._getConditionalStep=e.getConditionalStep);}static _loadAssets=()=>{};static get loadAssets(){return i._loadAssets}static _soundOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get soundOperation(){return i._soundOperation}static _imageOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get imageOperation(){return i._imageOperation}static _videoOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get videoOperation(){return i._videoOperation}static _animatedSpriteOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get animatedSpriteOperation(){return i._animatedSpriteOperation}static _imageContainerOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get imageContainerOperation(){return i._imageContainerOperation}static _textOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get textOperation(){return i._textOperation}static _canvasElementOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get canvasElementOperation(){return i._canvasElementOperation}static _setStorageValue=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get setStorageValue(){return i._setStorageValue}static _setInitialStorageValue=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get setInitialStorageValue(){return i._setInitialStorageValue}static _narrationOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get narrationOperation(){return i._narrationOperation}static _effectOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get effectOperation(){return i._effectOperation}static _animateOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get animateOperation(){return i._animateOperation}static _canvasOperation=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get canvasOperation(){return i._canvasOperation}static _getLogichValue=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get getLogichValue(){return i._getLogichValue}static _getConditionalStep=()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get getConditionalStep(){return i._getConditionalStep}};export{s as JsonUnifier};
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var actions=require('@drincs/pixi-vn-json/actions'),core=require('@drincs/pixi-vn-json/core'),interpreter=require('@drincs/pixi-vn-json/interpreter'),translator=require('@drincs/pixi-vn-json/translator');var t={version:"1.
|
|
2
|
-
Object.defineProperty(exports,"VariableGetter",{enumerable:true,get:function(){return actions.VariableGetter}});exports.PIXIVNJSON_PARAM_ID=e;exports.PIXIVNJSON_SCHEMA_URL=i;exports.PixiVNJsonComparationOperators=r;exports.init=
|
|
1
|
+
'use strict';var actions=require('@drincs/pixi-vn-json/actions'),core=require('@drincs/pixi-vn-json/core'),interpreter=require('@drincs/pixi-vn-json/interpreter'),translator=require('@drincs/pixi-vn-json/translator');var t={version:"1.16.1"};var e="___param___",i=`https://pixi-vn.com/schemas/${t.version}/schema.json`,r=["==","!=","<","<=",">",">=","CONTAINS"];function I(){core.JsonUnifier.init({animateOperation:actions.animateOperation,animatedSpriteOperation:actions.animatedSpriteOperation,canvasElementOperation:actions.canvasElementOperation,canvasOperation:actions.canvasOperation,effectOperation:actions.effectOperation,imageContainerOperation:actions.imageContainerOperation,imageOperation:actions.imageOperation,textOperation:actions.textOperation,narrationOperation:actions.narrationOperation,loadAssets:actions.loadAssets,soundOperation:actions.soundOperation,videoOperation:actions.videoOperation,setStorageValue:actions.setStorageValue,setInitialStorageValue:actions.setInitialStorageValue,getLogichValue:actions.VariableGetter.getLogichValue,getConditionalStep:actions.getConditionalStep});}
|
|
2
|
+
Object.defineProperty(exports,"VariableGetter",{enumerable:true,get:function(){return actions.VariableGetter}});exports.PIXIVNJSON_PARAM_ID=e;exports.PIXIVNJSON_SCHEMA_URL=i;exports.PixiVNJsonComparationOperators=r;exports.init=I;Object.keys(interpreter).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return interpreter[k]}})});Object.keys(translator).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return translator[k]}})});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export { PIXIVNJSON_PARAM_ID, PIXIVNJSON_SCHEMA_URL, PixiVNJsonComparationOperators } from './constants.cjs';
|
|
2
2
|
export { PixiVNJson, PixiVNJsonLabels } from './schema.cjs';
|
|
3
3
|
export { d as PixiVNJsonArithmeticOperations, g as PixiVNJsonArithmeticOperationsArithmetic, h as PixiVNJsonArithmeticOperationsArithmeticSingle, i as PixiVNJsonChoiceGet, j as PixiVNJsonComparation, k as PixiVNJsonComparationOperatorsType, l as PixiVNJsonConditionalResultToCombine, f as PixiVNJsonConditionalStatements, e as PixiVNJsonConditions, m as PixiVNJsonFunction, P as PixiVNJsonIfElse, n as PixiVNJsonLabelGet, o as PixiVNJsonLogicGet, b as PixiVNJsonOnlyStorageSet, p as PixiVNJsonParamGet, q as PixiVNJsonStepSwitch, r as PixiVNJsonStepSwitchElementType, s as PixiVNJsonStepSwitchElementsType, t as PixiVNJsonStorageGet, u as PixiVNJsonUnionCondition, c as PixiVNJsonValueGet, a as PixiVNJsonValueSet } from './PixiVNJsonIfElse-CgOnelja.cjs';
|
|
4
|
-
export { D as DissolveTransition,
|
|
4
|
+
export { B as BlurInOutTransition, u as BlurTransitionProps, D as DissolveTransition, v as DissolveTransitionProps, F as FadeTransition, w as FadeTransitionProps, x as FlashInOutTransition, y as FlashTransitionProps, G as GlitchInOutTransition, z as GlitchTransitionProps, I as IrisInOutTransition, A as IrisTransitionProps, M as MoveInOutTransition, C as MoveInOutTransitionProps, N as NoiseDissolveInOutTransition, E as NoiseDissolveTransitionProps, H as PinchInOutTransition, J as PinchTransitionProps, K as PixelateInOutTransition, L as PixelateTransitionProps, O as PixiVNJsonAnimateBase, Q as PixiVNJsonAnimateBaseOptions, R as PixiVNJsonAnimateSequence, S as PixiVNJsonAnimateSequenceOptions, j as PixiVNJsonAnimatedSpriteControl, i as PixiVNJsonAnimatedSpriteEdit, T as PixiVNJsonCanvas, r as PixiVNJsonCanvasAnimate, h as PixiVNJsonCanvasAnimatedSpriteShow, s as PixiVNJsonCanvasClear, U as PixiVNJsonCanvasEdit, q as PixiVNJsonCanvasEffect, k as PixiVNJsonCanvasImageContainerShow, V as PixiVNJsonCanvasImageContainerShowProps, c as PixiVNJsonCanvasImageVideoShow, W as PixiVNJsonCanvasImageVideoShowProps, e as PixiVNJsonCanvasRemove, X as PixiVNJsonCanvasShow, m as PixiVNJsonCanvasTextShow, Y as PixiVNJsonCanvasTextShowProps, Z as PixiVNJsonChoice, _ as PixiVNJsonChoices, $ as PixiVNJsonConditionalOperation, a0 as PixiVNJsonDialog, a1 as PixiVNJsonDialogText, a2 as PixiVNJsonDialogue, a3 as PixiVNJsonEffectBlurPulse, a4 as PixiVNJsonEffectBounce, a5 as PixiVNJsonEffectChromaticAberration, a6 as PixiVNJsonEffectDesaturate, a7 as PixiVNJsonEffectGlitch, a8 as PixiVNJsonEffectGlowPulse, a9 as PixiVNJsonEffectHop, aa as PixiVNJsonEffectNod, ab as PixiVNJsonEffectPulse, ac as PixiVNJsonEffectPunch, ad as PixiVNJsonEffectRadialBlur, ae as PixiVNJsonEffectShake, af as PixiVNJsonEffectShockwave, ag as PixiVNJsonEffectSway, ah as PixiVNJsonEffectVignettePulse, ai as PixiVNJsonEffectWiggle, l as PixiVNJsonImageContainerEdit, d as PixiVNJsonImageEdit, aj as PixiVNJsonInputRequest, t as PixiVNJsonLabelStep, ak as PixiVNJsonLabelToOpen, al as PixiVNJsonMediaTransiotions, p as PixiVNJsonNarration, P as PixiVNJsonOperation, a as PixiVNJsonOperationString, b as PixiVNJsonSound, am as PixiVNJsonSoundEdit, an as PixiVNJsonSoundEditProps, ao as PixiVNJsonSoundPauseResume, ap as PixiVNJsonSoundPlay, aq as PixiVNJsonSoundPlayProps, ar as PixiVNJsonSoundRemove, n as PixiVNJsonTextEdit, o as PixiVNJsonUnknownEdit, f as PixiVNJsonVideoEdit, g as PixiVNJsonVideoPauseResume, as as PushInOutTransition, at as PushInOutTransitionProps, au as RippleInOutTransition, av as RippleTransitionProps, aw as SplitInOutTransition, ax as SplitTransitionProps, ay as TvInOutTransition, az as TvTransitionProps, aA as TwistInOutTransition, aB as TwistTransitionProps, aC as WarpInOutTransition, aD as WarpTransitionProps, aE as WipeInOutTransition, aF as WipeTransitionProps, aG as ZoomInOutTransition, aH as ZoomInOutTransitionProps } from './PixiVNJsonLabelStep-D1MiCvp5.cjs';
|
|
5
5
|
export { V as VariableGetter, a as VariableGetterHandler } from './VariableGetter-ZDA6kdah.cjs';
|
|
6
6
|
export { LabelJson, importPixiVNJson } from './interpreter.cjs';
|
|
7
7
|
export { ReplaceHandler, ReplaceHandlerOptions, TextReplaces, translator } from './translator.cjs';
|
|
8
8
|
import '@drincs/pixi-vn';
|
|
9
9
|
import '@drincs/pixi-vn/motion';
|
|
10
10
|
import 'pixi.js';
|
|
11
|
+
import '@drincs/pixi-vn/canvas';
|
|
11
12
|
import '@drincs/pixi-vn/narration';
|
|
12
13
|
import 'zod';
|
|
13
14
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export { PIXIVNJSON_PARAM_ID, PIXIVNJSON_SCHEMA_URL, PixiVNJsonComparationOperators } from './constants.js';
|
|
2
2
|
export { PixiVNJson, PixiVNJsonLabels } from './schema.js';
|
|
3
3
|
export { d as PixiVNJsonArithmeticOperations, g as PixiVNJsonArithmeticOperationsArithmetic, h as PixiVNJsonArithmeticOperationsArithmeticSingle, i as PixiVNJsonChoiceGet, j as PixiVNJsonComparation, k as PixiVNJsonComparationOperatorsType, l as PixiVNJsonConditionalResultToCombine, f as PixiVNJsonConditionalStatements, e as PixiVNJsonConditions, m as PixiVNJsonFunction, P as PixiVNJsonIfElse, n as PixiVNJsonLabelGet, o as PixiVNJsonLogicGet, b as PixiVNJsonOnlyStorageSet, p as PixiVNJsonParamGet, q as PixiVNJsonStepSwitch, r as PixiVNJsonStepSwitchElementType, s as PixiVNJsonStepSwitchElementsType, t as PixiVNJsonStorageGet, u as PixiVNJsonUnionCondition, c as PixiVNJsonValueGet, a as PixiVNJsonValueSet } from './PixiVNJsonIfElse-CgOnelja.js';
|
|
4
|
-
export { D as DissolveTransition,
|
|
4
|
+
export { B as BlurInOutTransition, u as BlurTransitionProps, D as DissolveTransition, v as DissolveTransitionProps, F as FadeTransition, w as FadeTransitionProps, x as FlashInOutTransition, y as FlashTransitionProps, G as GlitchInOutTransition, z as GlitchTransitionProps, I as IrisInOutTransition, A as IrisTransitionProps, M as MoveInOutTransition, C as MoveInOutTransitionProps, N as NoiseDissolveInOutTransition, E as NoiseDissolveTransitionProps, H as PinchInOutTransition, J as PinchTransitionProps, K as PixelateInOutTransition, L as PixelateTransitionProps, O as PixiVNJsonAnimateBase, Q as PixiVNJsonAnimateBaseOptions, R as PixiVNJsonAnimateSequence, S as PixiVNJsonAnimateSequenceOptions, j as PixiVNJsonAnimatedSpriteControl, i as PixiVNJsonAnimatedSpriteEdit, T as PixiVNJsonCanvas, r as PixiVNJsonCanvasAnimate, h as PixiVNJsonCanvasAnimatedSpriteShow, s as PixiVNJsonCanvasClear, U as PixiVNJsonCanvasEdit, q as PixiVNJsonCanvasEffect, k as PixiVNJsonCanvasImageContainerShow, V as PixiVNJsonCanvasImageContainerShowProps, c as PixiVNJsonCanvasImageVideoShow, W as PixiVNJsonCanvasImageVideoShowProps, e as PixiVNJsonCanvasRemove, X as PixiVNJsonCanvasShow, m as PixiVNJsonCanvasTextShow, Y as PixiVNJsonCanvasTextShowProps, Z as PixiVNJsonChoice, _ as PixiVNJsonChoices, $ as PixiVNJsonConditionalOperation, a0 as PixiVNJsonDialog, a1 as PixiVNJsonDialogText, a2 as PixiVNJsonDialogue, a3 as PixiVNJsonEffectBlurPulse, a4 as PixiVNJsonEffectBounce, a5 as PixiVNJsonEffectChromaticAberration, a6 as PixiVNJsonEffectDesaturate, a7 as PixiVNJsonEffectGlitch, a8 as PixiVNJsonEffectGlowPulse, a9 as PixiVNJsonEffectHop, aa as PixiVNJsonEffectNod, ab as PixiVNJsonEffectPulse, ac as PixiVNJsonEffectPunch, ad as PixiVNJsonEffectRadialBlur, ae as PixiVNJsonEffectShake, af as PixiVNJsonEffectShockwave, ag as PixiVNJsonEffectSway, ah as PixiVNJsonEffectVignettePulse, ai as PixiVNJsonEffectWiggle, l as PixiVNJsonImageContainerEdit, d as PixiVNJsonImageEdit, aj as PixiVNJsonInputRequest, t as PixiVNJsonLabelStep, ak as PixiVNJsonLabelToOpen, al as PixiVNJsonMediaTransiotions, p as PixiVNJsonNarration, P as PixiVNJsonOperation, a as PixiVNJsonOperationString, b as PixiVNJsonSound, am as PixiVNJsonSoundEdit, an as PixiVNJsonSoundEditProps, ao as PixiVNJsonSoundPauseResume, ap as PixiVNJsonSoundPlay, aq as PixiVNJsonSoundPlayProps, ar as PixiVNJsonSoundRemove, n as PixiVNJsonTextEdit, o as PixiVNJsonUnknownEdit, f as PixiVNJsonVideoEdit, g as PixiVNJsonVideoPauseResume, as as PushInOutTransition, at as PushInOutTransitionProps, au as RippleInOutTransition, av as RippleTransitionProps, aw as SplitInOutTransition, ax as SplitTransitionProps, ay as TvInOutTransition, az as TvTransitionProps, aA as TwistInOutTransition, aB as TwistTransitionProps, aC as WarpInOutTransition, aD as WarpTransitionProps, aE as WipeInOutTransition, aF as WipeTransitionProps, aG as ZoomInOutTransition, aH as ZoomInOutTransitionProps } from './PixiVNJsonLabelStep-BrRDO4iZ.js';
|
|
5
5
|
export { V as VariableGetter, a as VariableGetterHandler } from './VariableGetter-ZDA6kdah.js';
|
|
6
6
|
export { LabelJson, importPixiVNJson } from './interpreter.js';
|
|
7
7
|
export { ReplaceHandler, ReplaceHandlerOptions, TextReplaces, translator } from './translator.js';
|
|
8
8
|
import '@drincs/pixi-vn';
|
|
9
9
|
import '@drincs/pixi-vn/motion';
|
|
10
10
|
import 'pixi.js';
|
|
11
|
+
import '@drincs/pixi-vn/canvas';
|
|
11
12
|
import '@drincs/pixi-vn/narration';
|
|
12
13
|
import 'zod';
|
|
13
14
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {getConditionalStep,VariableGetter,setInitialStorageValue,setStorageValue,videoOperation,soundOperation,loadAssets,narrationOperation,textOperation,imageOperation,imageContainerOperation,effectOperation,canvasOperation,canvasElementOperation,animateOperation}from'@drincs/pixi-vn-json/actions';export{VariableGetter}from'@drincs/pixi-vn-json/actions';import {JsonUnifier}from'@drincs/pixi-vn-json/core';export*from'@drincs/pixi-vn-json/interpreter';export*from'@drincs/pixi-vn-json/translator';var t={version:"1.
|
|
2
|
-
export{e as PIXIVNJSON_PARAM_ID,i as PIXIVNJSON_SCHEMA_URL,r as PixiVNJsonComparationOperators,
|
|
1
|
+
import {getConditionalStep,VariableGetter,setInitialStorageValue,setStorageValue,videoOperation,soundOperation,loadAssets,narrationOperation,textOperation,imageOperation,imageContainerOperation,effectOperation,canvasOperation,canvasElementOperation,animatedSpriteOperation,animateOperation}from'@drincs/pixi-vn-json/actions';export{VariableGetter}from'@drincs/pixi-vn-json/actions';import {JsonUnifier}from'@drincs/pixi-vn-json/core';export*from'@drincs/pixi-vn-json/interpreter';export*from'@drincs/pixi-vn-json/translator';var t={version:"1.16.1"};var e="___param___",i=`https://pixi-vn.com/schemas/${t.version}/schema.json`,r=["==","!=","<","<=",">",">=","CONTAINS"];function I(){JsonUnifier.init({animateOperation:animateOperation,animatedSpriteOperation:animatedSpriteOperation,canvasElementOperation:canvasElementOperation,canvasOperation:canvasOperation,effectOperation:effectOperation,imageContainerOperation:imageContainerOperation,imageOperation:imageOperation,textOperation:textOperation,narrationOperation:narrationOperation,loadAssets:loadAssets,soundOperation:soundOperation,videoOperation:videoOperation,setStorageValue:setStorageValue,setInitialStorageValue:setInitialStorageValue,getLogichValue:VariableGetter.getLogichValue,getConditionalStep:getConditionalStep});}
|
|
2
|
+
export{e as PIXIVNJSON_PARAM_ID,i as PIXIVNJSON_SCHEMA_URL,r as PixiVNJsonComparationOperators,I as init};
|