@famibee/skynovel 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SysBase.js +229 -200
- package/dist/SysBase.js.map +1 -1
- package/dist/pixi.js +2128 -2770
- package/dist/pixi.js.map +1 -1
- package/dist/web.js +49 -533
- package/dist/web.js.map +1 -1
- package/dist_app/SysBase.js +229 -200
- package/dist_app/SysBase.js.map +1 -1
- package/dist_app/appMain.js +1 -21
- package/dist_app/appMain.js.map +1 -1
- package/package.json +1 -27
package/dist/web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","names":["#path_base","#now_prj","#hAppendFile"],"sources":["../node_modules/store/src/util.js","../node_modules/store/src/store-engine.js","../node_modules/store/storages/localStorage.js","../node_modules/store/storages/oldFF-globalStorage.js","../node_modules/store/storages/oldIE-userDataStorage.js","../node_modules/store/storages/cookieStorage.js","../node_modules/store/storages/sessionStorage.js","../node_modules/store/storages/memoryStorage.js","../node_modules/store/storages/all.js","../node_modules/store/plugins/lib/json2.js","../node_modules/store/plugins/json2.js","../node_modules/store/dist/store.legacy.js","../node_modules/devtools-detect/index.js","../src/sn/SysWeb.ts"],"sourcesContent":["var assign = make_assign()\nvar create = make_create()\nvar trim = make_trim()\nvar Global = (typeof window !== 'undefined' ? window : global)\n\nmodule.exports = {\n\tassign: assign,\n\tcreate: create,\n\ttrim: trim,\n\tbind: bind,\n\tslice: slice,\n\teach: each,\n\tmap: map,\n\tpluck: pluck,\n\tisList: isList,\n\tisFunction: isFunction,\n\tisObject: isObject,\n\tGlobal: Global\n}\n\nfunction make_assign() {\n\tif (Object.assign) {\n\t\treturn Object.assign\n\t} else {\n\t\treturn function shimAssign(obj, props1, props2, etc) {\n\t\t\tfor (var i = 1; i < arguments.length; i++) {\n\t\t\t\teach(Object(arguments[i]), function(val, key) {\n\t\t\t\t\tobj[key] = val\n\t\t\t\t})\n\t\t\t}\t\t\t\n\t\t\treturn obj\n\t\t}\n\t}\n}\n\nfunction make_create() {\n\tif (Object.create) {\n\t\treturn function create(obj, assignProps1, assignProps2, etc) {\n\t\t\tvar assignArgsList = slice(arguments, 1)\n\t\t\treturn assign.apply(this, [Object.create(obj)].concat(assignArgsList))\n\t\t}\n\t} else {\n\t\tfunction F() {} // eslint-disable-line no-inner-declarations\n\t\treturn function create(obj, assignProps1, assignProps2, etc) {\n\t\t\tvar assignArgsList = slice(arguments, 1)\n\t\t\tF.prototype = obj\n\t\t\treturn assign.apply(this, [new F()].concat(assignArgsList))\n\t\t}\n\t}\n}\n\nfunction make_trim() {\n\tif (String.prototype.trim) {\n\t\treturn function trim(str) {\n\t\t\treturn String.prototype.trim.call(str)\n\t\t}\n\t} else {\n\t\treturn function trim(str) {\n\t\t\treturn str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '')\n\t\t}\n\t}\n}\n\nfunction bind(obj, fn) {\n\treturn function() {\n\t\treturn fn.apply(obj, Array.prototype.slice.call(arguments, 0))\n\t}\n}\n\nfunction slice(arr, index) {\n\treturn Array.prototype.slice.call(arr, index || 0)\n}\n\nfunction each(obj, fn) {\n\tpluck(obj, function(val, key) {\n\t\tfn(val, key)\n\t\treturn false\n\t})\n}\n\nfunction map(obj, fn) {\n\tvar res = (isList(obj) ? [] : {})\n\tpluck(obj, function(v, k) {\n\t\tres[k] = fn(v, k)\n\t\treturn false\n\t})\n\treturn res\n}\n\nfunction pluck(obj, fn) {\n\tif (isList(obj)) {\n\t\tfor (var i=0; i<obj.length; i++) {\n\t\t\tif (fn(obj[i], i)) {\n\t\t\t\treturn obj[i]\n\t\t\t}\n\t\t}\n\t} else {\n\t\tfor (var key in obj) {\n\t\t\tif (obj.hasOwnProperty(key)) {\n\t\t\t\tif (fn(obj[key], key)) {\n\t\t\t\t\treturn obj[key]\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\nfunction isList(val) {\n\treturn (val != null && typeof val != 'function' && typeof val.length == 'number')\n}\n\nfunction isFunction(val) {\n\treturn val && {}.toString.call(val) === '[object Function]'\n}\n\nfunction isObject(val) {\n\treturn val && {}.toString.call(val) === '[object Object]'\n}\n","var util = require('./util')\nvar slice = util.slice\nvar pluck = util.pluck\nvar each = util.each\nvar bind = util.bind\nvar create = util.create\nvar isList = util.isList\nvar isFunction = util.isFunction\nvar isObject = util.isObject\n\nmodule.exports = {\n\tcreateStore: createStore\n}\n\nvar storeAPI = {\n\tversion: '2.0.12',\n\tenabled: false,\n\t\n\t// get returns the value of the given key. If that value\n\t// is undefined, it returns optionalDefaultValue instead.\n\tget: function(key, optionalDefaultValue) {\n\t\tvar data = this.storage.read(this._namespacePrefix + key)\n\t\treturn this._deserialize(data, optionalDefaultValue)\n\t},\n\n\t// set will store the given value at key and returns value.\n\t// Calling set with value === undefined is equivalent to calling remove.\n\tset: function(key, value) {\n\t\tif (value === undefined) {\n\t\t\treturn this.remove(key)\n\t\t}\n\t\tthis.storage.write(this._namespacePrefix + key, this._serialize(value))\n\t\treturn value\n\t},\n\n\t// remove deletes the key and value stored at the given key.\n\tremove: function(key) {\n\t\tthis.storage.remove(this._namespacePrefix + key)\n\t},\n\n\t// each will call the given callback once for each key-value pair\n\t// in this store.\n\teach: function(callback) {\n\t\tvar self = this\n\t\tthis.storage.each(function(val, namespacedKey) {\n\t\t\tcallback.call(self, self._deserialize(val), (namespacedKey || '').replace(self._namespaceRegexp, ''))\n\t\t})\n\t},\n\n\t// clearAll will remove all the stored key-value pairs in this store.\n\tclearAll: function() {\n\t\tthis.storage.clearAll()\n\t},\n\n\t// additional functionality that can't live in plugins\n\t// ---------------------------------------------------\n\n\t// hasNamespace returns true if this store instance has the given namespace.\n\thasNamespace: function(namespace) {\n\t\treturn (this._namespacePrefix == '__storejs_'+namespace+'_')\n\t},\n\n\t// createStore creates a store.js instance with the first\n\t// functioning storage in the list of storage candidates,\n\t// and applies the the given mixins to the instance.\n\tcreateStore: function() {\n\t\treturn createStore.apply(this, arguments)\n\t},\n\t\n\taddPlugin: function(plugin) {\n\t\tthis._addPlugin(plugin)\n\t},\n\t\n\tnamespace: function(namespace) {\n\t\treturn createStore(this.storage, this.plugins, namespace)\n\t}\n}\n\nfunction _warn() {\n\tvar _console = (typeof console == 'undefined' ? null : console)\n\tif (!_console) { return }\n\tvar fn = (_console.warn ? _console.warn : _console.log)\n\tfn.apply(_console, arguments)\n}\n\nfunction createStore(storages, plugins, namespace) {\n\tif (!namespace) {\n\t\tnamespace = ''\n\t}\n\tif (storages && !isList(storages)) {\n\t\tstorages = [storages]\n\t}\n\tif (plugins && !isList(plugins)) {\n\t\tplugins = [plugins]\n\t}\n\n\tvar namespacePrefix = (namespace ? '__storejs_'+namespace+'_' : '')\n\tvar namespaceRegexp = (namespace ? new RegExp('^'+namespacePrefix) : null)\n\tvar legalNamespaces = /^[a-zA-Z0-9_\\-]*$/ // alpha-numeric + underscore and dash\n\tif (!legalNamespaces.test(namespace)) {\n\t\tthrow new Error('store.js namespaces can only have alphanumerics + underscores and dashes')\n\t}\n\t\n\tvar _privateStoreProps = {\n\t\t_namespacePrefix: namespacePrefix,\n\t\t_namespaceRegexp: namespaceRegexp,\n\n\t\t_testStorage: function(storage) {\n\t\t\ttry {\n\t\t\t\tvar testStr = '__storejs__test__'\n\t\t\t\tstorage.write(testStr, testStr)\n\t\t\t\tvar ok = (storage.read(testStr) === testStr)\n\t\t\t\tstorage.remove(testStr)\n\t\t\t\treturn ok\n\t\t\t} catch(e) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\n\t\t_assignPluginFnProp: function(pluginFnProp, propName) {\n\t\t\tvar oldFn = this[propName]\n\t\t\tthis[propName] = function pluginFn() {\n\t\t\t\tvar args = slice(arguments, 0)\n\t\t\t\tvar self = this\n\n\t\t\t\t// super_fn calls the old function which was overwritten by\n\t\t\t\t// this mixin.\n\t\t\t\tfunction super_fn() {\n\t\t\t\t\tif (!oldFn) { return }\n\t\t\t\t\teach(arguments, function(arg, i) {\n\t\t\t\t\t\targs[i] = arg\n\t\t\t\t\t})\n\t\t\t\t\treturn oldFn.apply(self, args)\n\t\t\t\t}\n\n\t\t\t\t// Give mixing function access to super_fn by prefixing all mixin function\n\t\t\t\t// arguments with super_fn.\n\t\t\t\tvar newFnArgs = [super_fn].concat(args)\n\n\t\t\t\treturn pluginFnProp.apply(self, newFnArgs)\n\t\t\t}\n\t\t},\n\n\t\t_serialize: function(obj) {\n\t\t\treturn JSON.stringify(obj)\n\t\t},\n\n\t\t_deserialize: function(strVal, defaultVal) {\n\t\t\tif (!strVal) { return defaultVal }\n\t\t\t// It is possible that a raw string value has been previously stored\n\t\t\t// in a storage without using store.js, meaning it will be a raw\n\t\t\t// string value instead of a JSON serialized string. By defaulting\n\t\t\t// to the raw string value in case of a JSON parse error, we allow\n\t\t\t// for past stored values to be forwards-compatible with store.js\n\t\t\tvar val = ''\n\t\t\ttry { val = JSON.parse(strVal) }\n\t\t\tcatch(e) { val = strVal }\n\n\t\t\treturn (val !== undefined ? val : defaultVal)\n\t\t},\n\t\t\n\t\t_addStorage: function(storage) {\n\t\t\tif (this.enabled) { return }\n\t\t\tif (this._testStorage(storage)) {\n\t\t\t\tthis.storage = storage\n\t\t\t\tthis.enabled = true\n\t\t\t}\n\t\t},\n\n\t\t_addPlugin: function(plugin) {\n\t\t\tvar self = this\n\n\t\t\t// If the plugin is an array, then add all plugins in the array.\n\t\t\t// This allows for a plugin to depend on other plugins.\n\t\t\tif (isList(plugin)) {\n\t\t\t\teach(plugin, function(plugin) {\n\t\t\t\t\tself._addPlugin(plugin)\n\t\t\t\t})\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t// Keep track of all plugins we've seen so far, so that we\n\t\t\t// don't add any of them twice.\n\t\t\tvar seenPlugin = pluck(this.plugins, function(seenPlugin) {\n\t\t\t\treturn (plugin === seenPlugin)\n\t\t\t})\n\t\t\tif (seenPlugin) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tthis.plugins.push(plugin)\n\n\t\t\t// Check that the plugin is properly formed\n\t\t\tif (!isFunction(plugin)) {\n\t\t\t\tthrow new Error('Plugins must be function values that return objects')\n\t\t\t}\n\n\t\t\tvar pluginProperties = plugin.call(this)\n\t\t\tif (!isObject(pluginProperties)) {\n\t\t\t\tthrow new Error('Plugins must return an object of function properties')\n\t\t\t}\n\n\t\t\t// Add the plugin function properties to this store instance.\n\t\t\teach(pluginProperties, function(pluginFnProp, propName) {\n\t\t\t\tif (!isFunction(pluginFnProp)) {\n\t\t\t\t\tthrow new Error('Bad plugin property: '+propName+' from plugin '+plugin.name+'. Plugins should only return functions.')\n\t\t\t\t}\n\t\t\t\tself._assignPluginFnProp(pluginFnProp, propName)\n\t\t\t})\n\t\t},\n\t\t\n\t\t// Put deprecated properties in the private API, so as to not expose it to accidential\n\t\t// discovery through inspection of the store object.\n\t\t\n\t\t// Deprecated: addStorage\n\t\taddStorage: function(storage) {\n\t\t\t_warn('store.addStorage(storage) is deprecated. Use createStore([storages])')\n\t\t\tthis._addStorage(storage)\n\t\t}\n\t}\n\n\tvar store = create(_privateStoreProps, storeAPI, {\n\t\tplugins: []\n\t})\n\tstore.raw = {}\n\teach(store, function(prop, propName) {\n\t\tif (isFunction(prop)) {\n\t\t\tstore.raw[propName] = bind(store, prop)\t\t\t\n\t\t}\n\t})\n\teach(storages, function(storage) {\n\t\tstore._addStorage(storage)\n\t})\n\teach(plugins, function(plugin) {\n\t\tstore._addPlugin(plugin)\n\t})\n\treturn store\n}\n","var util = require('../src/util')\nvar Global = util.Global\n\nmodule.exports = {\n\tname: 'localStorage',\n\tread: read,\n\twrite: write,\n\teach: each,\n\tremove: remove,\n\tclearAll: clearAll,\n}\n\nfunction localStorage() {\n\treturn Global.localStorage\n}\n\nfunction read(key) {\n\treturn localStorage().getItem(key)\n}\n\nfunction write(key, data) {\n\treturn localStorage().setItem(key, data)\n}\n\nfunction each(fn) {\n\tfor (var i = localStorage().length - 1; i >= 0; i--) {\n\t\tvar key = localStorage().key(i)\n\t\tfn(read(key), key)\n\t}\n}\n\nfunction remove(key) {\n\treturn localStorage().removeItem(key)\n}\n\nfunction clearAll() {\n\treturn localStorage().clear()\n}\n","// oldFF-globalStorage provides storage for Firefox\n// versions 6 and 7, where no localStorage, etc\n// is available.\n\nvar util = require('../src/util')\nvar Global = util.Global\n\nmodule.exports = {\n\tname: 'oldFF-globalStorage',\n\tread: read,\n\twrite: write,\n\teach: each,\n\tremove: remove,\n\tclearAll: clearAll,\n}\n\nvar globalStorage = Global.globalStorage\n\nfunction read(key) {\n\treturn globalStorage[key]\n}\n\nfunction write(key, data) {\n\tglobalStorage[key] = data\n}\n\nfunction each(fn) {\n\tfor (var i = globalStorage.length - 1; i >= 0; i--) {\n\t\tvar key = globalStorage.key(i)\n\t\tfn(globalStorage[key], key)\n\t}\n}\n\nfunction remove(key) {\n\treturn globalStorage.removeItem(key)\n}\n\nfunction clearAll() {\n\teach(function(key, _) {\n\t\tdelete globalStorage[key]\n\t})\n}\n","// oldIE-userDataStorage provides storage for Internet Explorer\n// versions 6 and 7, where no localStorage, sessionStorage, etc\n// is available.\n\nvar util = require('../src/util')\nvar Global = util.Global\n\nmodule.exports = {\n\tname: 'oldIE-userDataStorage',\n\twrite: write,\n\tread: read,\n\teach: each,\n\tremove: remove,\n\tclearAll: clearAll,\n}\n\nvar storageName = 'storejs'\nvar doc = Global.document\nvar _withStorageEl = _makeIEStorageElFunction()\nvar disable = (Global.navigator ? Global.navigator.userAgent : '').match(/ (MSIE 8|MSIE 9|MSIE 10)\\./) // MSIE 9.x, MSIE 10.x\n\nfunction write(unfixedKey, data) {\n\tif (disable) { return }\n\tvar fixedKey = fixKey(unfixedKey)\n\t_withStorageEl(function(storageEl) {\n\t\tstorageEl.setAttribute(fixedKey, data)\n\t\tstorageEl.save(storageName)\n\t})\n}\n\nfunction read(unfixedKey) {\n\tif (disable) { return }\n\tvar fixedKey = fixKey(unfixedKey)\n\tvar res = null\n\t_withStorageEl(function(storageEl) {\n\t\tres = storageEl.getAttribute(fixedKey)\n\t})\n\treturn res\n}\n\nfunction each(callback) {\n\t_withStorageEl(function(storageEl) {\n\t\tvar attributes = storageEl.XMLDocument.documentElement.attributes\n\t\tfor (var i=attributes.length-1; i>=0; i--) {\n\t\t\tvar attr = attributes[i]\n\t\t\tcallback(storageEl.getAttribute(attr.name), attr.name)\n\t\t}\n\t})\n}\n\nfunction remove(unfixedKey) {\n\tvar fixedKey = fixKey(unfixedKey)\n\t_withStorageEl(function(storageEl) {\n\t\tstorageEl.removeAttribute(fixedKey)\n\t\tstorageEl.save(storageName)\n\t})\n}\n\nfunction clearAll() {\n\t_withStorageEl(function(storageEl) {\n\t\tvar attributes = storageEl.XMLDocument.documentElement.attributes\n\t\tstorageEl.load(storageName)\n\t\tfor (var i=attributes.length-1; i>=0; i--) {\n\t\t\tstorageEl.removeAttribute(attributes[i].name)\n\t\t}\n\t\tstorageEl.save(storageName)\n\t})\n}\n\n// Helpers\n//////////\n\n// In IE7, keys cannot start with a digit or contain certain chars.\n// See https://github.com/marcuswestin/store.js/issues/40\n// See https://github.com/marcuswestin/store.js/issues/83\nvar forbiddenCharsRegex = new RegExp(\"[!\\\"#$%&'()*+,/\\\\\\\\:;<=>?@[\\\\]^`{|}~]\", \"g\")\nfunction fixKey(key) {\n\treturn key.replace(/^\\d/, '___$&').replace(forbiddenCharsRegex, '___')\n}\n\nfunction _makeIEStorageElFunction() {\n\tif (!doc || !doc.documentElement || !doc.documentElement.addBehavior) {\n\t\treturn null\n\t}\n\tvar scriptTag = 'script',\n\t\tstorageOwner,\n\t\tstorageContainer,\n\t\tstorageEl\n\n\t// Since #userData storage applies only to specific paths, we need to\n\t// somehow link our data to a specific path. We choose /favicon.ico\n\t// as a pretty safe option, since all browsers already make a request to\n\t// this URL anyway and being a 404 will not hurt us here. We wrap an\n\t// iframe pointing to the favicon in an ActiveXObject(htmlfile) object\n\t// (see: http://msdn.microsoft.com/en-us/library/aa752574(v=VS.85).aspx)\n\t// since the iframe access rules appear to allow direct access and\n\t// manipulation of the document element, even for a 404 page. This\n\t// document can be used instead of the current document (which would\n\t// have been limited to the current path) to perform #userData storage.\n\ttry {\n\t\t/* global ActiveXObject */\n\t\tstorageContainer = new ActiveXObject('htmlfile')\n\t\tstorageContainer.open()\n\t\tstorageContainer.write('<'+scriptTag+'>document.w=window</'+scriptTag+'><iframe src=\"/favicon.ico\"></iframe>')\n\t\tstorageContainer.close()\n\t\tstorageOwner = storageContainer.w.frames[0].document\n\t\tstorageEl = storageOwner.createElement('div')\n\t} catch(e) {\n\t\t// somehow ActiveXObject instantiation failed (perhaps some special\n\t\t// security settings or otherwse), fall back to per-path storage\n\t\tstorageEl = doc.createElement('div')\n\t\tstorageOwner = doc.body\n\t}\n\n\treturn function(storeFunction) {\n\t\tvar args = [].slice.call(arguments, 0)\n\t\targs.unshift(storageEl)\n\t\t// See http://msdn.microsoft.com/en-us/library/ms531081(v=VS.85).aspx\n\t\t// and http://msdn.microsoft.com/en-us/library/ms531424(v=VS.85).aspx\n\t\tstorageOwner.appendChild(storageEl)\n\t\tstorageEl.addBehavior('#default#userData')\n\t\tstorageEl.load(storageName)\n\t\tstoreFunction.apply(this, args)\n\t\tstorageOwner.removeChild(storageEl)\n\t\treturn\n\t}\n}\n","// cookieStorage is useful Safari private browser mode, where localStorage\n// doesn't work but cookies do. This implementation is adopted from\n// https://developer.mozilla.org/en-US/docs/Web/API/Storage/LocalStorage\n\nvar util = require('../src/util')\nvar Global = util.Global\nvar trim = util.trim\n\nmodule.exports = {\n\tname: 'cookieStorage',\n\tread: read,\n\twrite: write,\n\teach: each,\n\tremove: remove,\n\tclearAll: clearAll,\n}\n\nvar doc = Global.document\n\nfunction read(key) {\n\tif (!key || !_has(key)) { return null }\n\tvar regexpStr = \"(?:^|.*;\\\\s*)\" +\n\t\tescape(key).replace(/[\\-\\.\\+\\*]/g, \"\\\\$&\") +\n\t\t\"\\\\s*\\\\=\\\\s*((?:[^;](?!;))*[^;]?).*\"\n\treturn unescape(doc.cookie.replace(new RegExp(regexpStr), \"$1\"))\n}\n\nfunction each(callback) {\n\tvar cookies = doc.cookie.split(/; ?/g)\n\tfor (var i = cookies.length - 1; i >= 0; i--) {\n\t\tif (!trim(cookies[i])) {\n\t\t\tcontinue\n\t\t}\n\t\tvar kvp = cookies[i].split('=')\n\t\tvar key = unescape(kvp[0])\n\t\tvar val = unescape(kvp[1])\n\t\tcallback(val, key)\n\t}\n}\n\nfunction write(key, data) {\n\tif(!key) { return }\n\tdoc.cookie = escape(key) + \"=\" + escape(data) + \"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/\"\n}\n\nfunction remove(key) {\n\tif (!key || !_has(key)) {\n\t\treturn\n\t}\n\tdoc.cookie = escape(key) + \"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/\"\n}\n\nfunction clearAll() {\n\teach(function(_, key) {\n\t\tremove(key)\n\t})\n}\n\nfunction _has(key) {\n\treturn (new RegExp(\"(?:^|;\\\\s*)\" + escape(key).replace(/[\\-\\.\\+\\*]/g, \"\\\\$&\") + \"\\\\s*\\\\=\")).test(doc.cookie)\n}\n","var util = require('../src/util')\nvar Global = util.Global\n\nmodule.exports = {\n\tname: 'sessionStorage',\n\tread: read,\n\twrite: write,\n\teach: each,\n\tremove: remove,\n\tclearAll: clearAll\n}\n\nfunction sessionStorage() {\n\treturn Global.sessionStorage\n}\n\nfunction read(key) {\n\treturn sessionStorage().getItem(key)\n}\n\nfunction write(key, data) {\n\treturn sessionStorage().setItem(key, data)\n}\n\nfunction each(fn) {\n\tfor (var i = sessionStorage().length - 1; i >= 0; i--) {\n\t\tvar key = sessionStorage().key(i)\n\t\tfn(read(key), key)\n\t}\n}\n\nfunction remove(key) {\n\treturn sessionStorage().removeItem(key)\n}\n\nfunction clearAll() {\n\treturn sessionStorage().clear()\n}\n","// memoryStorage is a useful last fallback to ensure that the store\n// is functions (meaning store.get(), store.set(), etc will all function).\n// However, stored values will not persist when the browser navigates to\n// a new page or reloads the current page.\n\nmodule.exports = {\n\tname: 'memoryStorage',\n\tread: read,\n\twrite: write,\n\teach: each,\n\tremove: remove,\n\tclearAll: clearAll,\n}\n\nvar memoryStorage = {}\n\nfunction read(key) {\n\treturn memoryStorage[key]\n}\n\nfunction write(key, data) {\n\tmemoryStorage[key] = data\n}\n\nfunction each(callback) {\n\tfor (var key in memoryStorage) {\n\t\tif (memoryStorage.hasOwnProperty(key)) {\n\t\t\tcallback(memoryStorage[key], key)\n\t\t}\n\t}\n}\n\nfunction remove(key) {\n\tdelete memoryStorage[key]\n}\n\nfunction clearAll(key) {\n\tmemoryStorage = {}\n}\n","module.exports = [\n\t// Listed in order of usage preference\n\trequire('./localStorage'),\n\trequire('./oldFF-globalStorage'),\n\trequire('./oldIE-userDataStorage'),\n\trequire('./cookieStorage'),\n\trequire('./sessionStorage'),\n\trequire('./memoryStorage')\n]\n","/* eslint-disable */\n\n// json2.js\n// 2016-10-28\n// Public Domain.\n// NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.\n// See http://www.JSON.org/js.html\n// This code should be minified before deployment.\n// See http://javascript.crockford.com/jsmin.html\n\n// USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO\n// NOT CONTROL.\n\n// This file creates a global JSON object containing two methods: stringify\n// and parse. This file provides the ES5 JSON capability to ES3 systems.\n// If a project might run on IE8 or earlier, then this file should be included.\n// This file does nothing on ES5 systems.\n\n// JSON.stringify(value, replacer, space)\n// value any JavaScript value, usually an object or array.\n// replacer an optional parameter that determines how object\n// values are stringified for objects. It can be a\n// function or an array of strings.\n// space an optional parameter that specifies the indentation\n// of nested structures. If it is omitted, the text will\n// be packed without extra whitespace. If it is a number,\n// it will specify the number of spaces to indent at each\n// level. If it is a string (such as \"\\t\" or \" \"),\n// it contains the characters used to indent at each level.\n// This method produces a JSON text from a JavaScript value.\n// When an object value is found, if the object contains a toJSON\n// method, its toJSON method will be called and the result will be\n// stringified. A toJSON method does not serialize: it returns the\n// value represented by the name/value pair that should be serialized,\n// or undefined if nothing should be serialized. The toJSON method\n// will be passed the key associated with the value, and this will be\n// bound to the value.\n\n// For example, this would serialize Dates as ISO strings.\n\n// Date.prototype.toJSON = function (key) {\n// function f(n) {\n// // Format integers to have at least two digits.\n// return (n < 10)\n// ? \"0\" + n\n// : n;\n// }\n// return this.getUTCFullYear() + \"-\" +\n// f(this.getUTCMonth() + 1) + \"-\" +\n// f(this.getUTCDate()) + \"T\" +\n// f(this.getUTCHours()) + \":\" +\n// f(this.getUTCMinutes()) + \":\" +\n// f(this.getUTCSeconds()) + \"Z\";\n// };\n\n// You can provide an optional replacer method. It will be passed the\n// key and value of each member, with this bound to the containing\n// object. The value that is returned from your method will be\n// serialized. If your method returns undefined, then the member will\n// be excluded from the serialization.\n\n// If the replacer parameter is an array of strings, then it will be\n// used to select the members to be serialized. It filters the results\n// such that only members with keys listed in the replacer array are\n// stringified.\n\n// Values that do not have JSON representations, such as undefined or\n// functions, will not be serialized. Such values in objects will be\n// dropped; in arrays they will be replaced with null. You can use\n// a replacer function to replace those with JSON values.\n\n// JSON.stringify(undefined) returns undefined.\n\n// The optional space parameter produces a stringification of the\n// value that is filled with line breaks and indentation to make it\n// easier to read.\n\n// If the space parameter is a non-empty string, then that string will\n// be used for indentation. If the space parameter is a number, then\n// the indentation will be that many spaces.\n\n// Example:\n\n// text = JSON.stringify([\"e\", {pluribus: \"unum\"}]);\n// // text is '[\"e\",{\"pluribus\":\"unum\"}]'\n\n// text = JSON.stringify([\"e\", {pluribus: \"unum\"}], null, \"\\t\");\n// // text is '[\\n\\t\"e\",\\n\\t{\\n\\t\\t\"pluribus\": \"unum\"\\n\\t}\\n]'\n\n// text = JSON.stringify([new Date()], function (key, value) {\n// return this[key] instanceof Date\n// ? \"Date(\" + this[key] + \")\"\n// : value;\n// });\n// // text is '[\"Date(---current time---)\"]'\n\n// JSON.parse(text, reviver)\n// This method parses a JSON text to produce an object or array.\n// It can throw a SyntaxError exception.\n\n// The optional reviver parameter is a function that can filter and\n// transform the results. It receives each of the keys and values,\n// and its return value is used instead of the original value.\n// If it returns what it received, then the structure is not modified.\n// If it returns undefined then the member is deleted.\n\n// Example:\n\n// // Parse the text. Values that look like ISO date strings will\n// // be converted to Date objects.\n\n// myData = JSON.parse(text, function (key, value) {\n// var a;\n// if (typeof value === \"string\") {\n// a =\n// /^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:\\.\\d*)?)Z$/.exec(value);\n// if (a) {\n// return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],\n// +a[5], +a[6]));\n// }\n// }\n// return value;\n// });\n\n// myData = JSON.parse('[\"Date(09/09/2001)\"]', function (key, value) {\n// var d;\n// if (typeof value === \"string\" &&\n// value.slice(0, 5) === \"Date(\" &&\n// value.slice(-1) === \")\") {\n// d = new Date(value.slice(5, -1));\n// if (d) {\n// return d;\n// }\n// }\n// return value;\n// });\n\n// This is a reference implementation. You are free to copy, modify, or\n// redistribute.\n\n/*jslint\n eval, for, this\n*/\n\n/*property\n JSON, apply, call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,\n getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,\n lastIndex, length, parse, prototype, push, replace, slice, stringify,\n test, toJSON, toString, valueOf\n*/\n\n\n// Create a JSON object only if one does not already exist. We create the\n// methods in a closure to avoid creating global variables.\n\nif (typeof JSON !== \"object\") {\n JSON = {};\n}\n\n(function () {\n \"use strict\";\n\n var rx_one = /^[\\],:{}\\s]*$/;\n var rx_two = /\\\\(?:[\"\\\\\\/bfnrt]|u[0-9a-fA-F]{4})/g;\n var rx_three = /\"[^\"\\\\\\n\\r]*\"|true|false|null|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?/g;\n var rx_four = /(?:^|:|,)(?:\\s*\\[)+/g;\n var rx_escapable = /[\\\\\"\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/g;\n var rx_dangerous = /[\\u0000\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/g;\n\n function f(n) {\n // Format integers to have at least two digits.\n return n < 10\n ? \"0\" + n\n : n;\n }\n\n function this_value() {\n return this.valueOf();\n }\n\n if (typeof Date.prototype.toJSON !== \"function\") {\n\n Date.prototype.toJSON = function () {\n\n return isFinite(this.valueOf())\n ? this.getUTCFullYear() + \"-\" +\n f(this.getUTCMonth() + 1) + \"-\" +\n f(this.getUTCDate()) + \"T\" +\n f(this.getUTCHours()) + \":\" +\n f(this.getUTCMinutes()) + \":\" +\n f(this.getUTCSeconds()) + \"Z\"\n : null;\n };\n\n Boolean.prototype.toJSON = this_value;\n Number.prototype.toJSON = this_value;\n String.prototype.toJSON = this_value;\n }\n\n var gap;\n var indent;\n var meta;\n var rep;\n\n\n function quote(string) {\n\n// If the string contains no control characters, no quote characters, and no\n// backslash characters, then we can safely slap some quotes around it.\n// Otherwise we must also replace the offending characters with safe escape\n// sequences.\n\n rx_escapable.lastIndex = 0;\n return rx_escapable.test(string)\n ? \"\\\"\" + string.replace(rx_escapable, function (a) {\n var c = meta[a];\n return typeof c === \"string\"\n ? c\n : \"\\\\u\" + (\"0000\" + a.charCodeAt(0).toString(16)).slice(-4);\n }) + \"\\\"\"\n : \"\\\"\" + string + \"\\\"\";\n }\n\n\n function str(key, holder) {\n\n// Produce a string from holder[key].\n\n var i; // The loop counter.\n var k; // The member key.\n var v; // The member value.\n var length;\n var mind = gap;\n var partial;\n var value = holder[key];\n\n// If the value has a toJSON method, call it to obtain a replacement value.\n\n if (value && typeof value === \"object\" &&\n typeof value.toJSON === \"function\") {\n value = value.toJSON(key);\n }\n\n// If we were called with a replacer function, then call the replacer to\n// obtain a replacement value.\n\n if (typeof rep === \"function\") {\n value = rep.call(holder, key, value);\n }\n\n// What happens next depends on the value's type.\n\n switch (typeof value) {\n case \"string\":\n return quote(value);\n\n case \"number\":\n\n// JSON numbers must be finite. Encode non-finite numbers as null.\n\n return isFinite(value)\n ? String(value)\n : \"null\";\n\n case \"boolean\":\n case \"null\":\n\n// If the value is a boolean or null, convert it to a string. Note:\n// typeof null does not produce \"null\". The case is included here in\n// the remote chance that this gets fixed someday.\n\n return String(value);\n\n// If the type is \"object\", we might be dealing with an object or an array or\n// null.\n\n case \"object\":\n\n// Due to a specification blunder in ECMAScript, typeof null is \"object\",\n// so watch out for that case.\n\n if (!value) {\n return \"null\";\n }\n\n// Make an array to hold the partial results of stringifying this object value.\n\n gap += indent;\n partial = [];\n\n// Is the value an array?\n\n if (Object.prototype.toString.apply(value) === \"[object Array]\") {\n\n// The value is an array. Stringify every element. Use null as a placeholder\n// for non-JSON values.\n\n length = value.length;\n for (i = 0; i < length; i += 1) {\n partial[i] = str(i, value) || \"null\";\n }\n\n// Join all of the elements together, separated with commas, and wrap them in\n// brackets.\n\n v = partial.length === 0\n ? \"[]\"\n : gap\n ? \"[\\n\" + gap + partial.join(\",\\n\" + gap) + \"\\n\" + mind + \"]\"\n : \"[\" + partial.join(\",\") + \"]\";\n gap = mind;\n return v;\n }\n\n// If the replacer is an array, use it to select the members to be stringified.\n\n if (rep && typeof rep === \"object\") {\n length = rep.length;\n for (i = 0; i < length; i += 1) {\n if (typeof rep[i] === \"string\") {\n k = rep[i];\n v = str(k, value);\n if (v) {\n partial.push(quote(k) + (\n gap\n ? \": \"\n : \":\"\n ) + v);\n }\n }\n }\n } else {\n\n// Otherwise, iterate through all of the keys in the object.\n\n for (k in value) {\n if (Object.prototype.hasOwnProperty.call(value, k)) {\n v = str(k, value);\n if (v) {\n partial.push(quote(k) + (\n gap\n ? \": \"\n : \":\"\n ) + v);\n }\n }\n }\n }\n\n// Join all of the member texts together, separated with commas,\n// and wrap them in braces.\n\n v = partial.length === 0\n ? \"{}\"\n : gap\n ? \"{\\n\" + gap + partial.join(\",\\n\" + gap) + \"\\n\" + mind + \"}\"\n : \"{\" + partial.join(\",\") + \"}\";\n gap = mind;\n return v;\n }\n }\n\n// If the JSON object does not yet have a stringify method, give it one.\n\n if (typeof JSON.stringify !== \"function\") {\n meta = { // table of character substitutions\n \"\\b\": \"\\\\b\",\n \"\\t\": \"\\\\t\",\n \"\\n\": \"\\\\n\",\n \"\\f\": \"\\\\f\",\n \"\\r\": \"\\\\r\",\n \"\\\"\": \"\\\\\\\"\",\n \"\\\\\": \"\\\\\\\\\"\n };\n JSON.stringify = function (value, replacer, space) {\n\n// The stringify method takes a value and an optional replacer, and an optional\n// space parameter, and returns a JSON text. The replacer can be a function\n// that can replace values, or an array of strings that will select the keys.\n// A default replacer method can be provided. Use of the space parameter can\n// produce text that is more easily readable.\n\n var i;\n gap = \"\";\n indent = \"\";\n\n// If the space parameter is a number, make an indent string containing that\n// many spaces.\n\n if (typeof space === \"number\") {\n for (i = 0; i < space; i += 1) {\n indent += \" \";\n }\n\n// If the space parameter is a string, it will be used as the indent string.\n\n } else if (typeof space === \"string\") {\n indent = space;\n }\n\n// If there is a replacer, it must be a function or an array.\n// Otherwise, throw an error.\n\n rep = replacer;\n if (replacer && typeof replacer !== \"function\" &&\n (typeof replacer !== \"object\" ||\n typeof replacer.length !== \"number\")) {\n throw new Error(\"JSON.stringify\");\n }\n\n// Make a fake root object containing our value under the key of \"\".\n// Return the result of stringifying the value.\n\n return str(\"\", {\"\": value});\n };\n }\n\n\n// If the JSON object does not yet have a parse method, give it one.\n\n if (typeof JSON.parse !== \"function\") {\n JSON.parse = function (text, reviver) {\n\n// The parse method takes a text and an optional reviver function, and returns\n// a JavaScript value if the text is a valid JSON text.\n\n var j;\n\n function walk(holder, key) {\n\n// The walk method is used to recursively walk the resulting structure so\n// that modifications can be made.\n\n var k;\n var v;\n var value = holder[key];\n if (value && typeof value === \"object\") {\n for (k in value) {\n if (Object.prototype.hasOwnProperty.call(value, k)) {\n v = walk(value, k);\n if (v !== undefined) {\n value[k] = v;\n } else {\n delete value[k];\n }\n }\n }\n }\n return reviver.call(holder, key, value);\n }\n\n\n// Parsing happens in four stages. In the first stage, we replace certain\n// Unicode characters with escape sequences. JavaScript handles many characters\n// incorrectly, either silently deleting them, or treating them as line endings.\n\n text = String(text);\n rx_dangerous.lastIndex = 0;\n if (rx_dangerous.test(text)) {\n text = text.replace(rx_dangerous, function (a) {\n return \"\\\\u\" +\n (\"0000\" + a.charCodeAt(0).toString(16)).slice(-4);\n });\n }\n\n// In the second stage, we run the text against regular expressions that look\n// for non-JSON patterns. We are especially concerned with \"()\" and \"new\"\n// because they can cause invocation, and \"=\" because it can cause mutation.\n// But just to be safe, we want to reject all unexpected forms.\n\n// We split the second stage into 4 regexp operations in order to work around\n// crippling inefficiencies in IE's and Safari's regexp engines. First we\n// replace the JSON backslash pairs with \"@\" (a non-JSON character). Second, we\n// replace all simple value tokens with \"]\" characters. Third, we delete all\n// open brackets that follow a colon or comma or that begin the text. Finally,\n// we look to see that the remaining characters are only whitespace or \"]\" or\n// \",\" or \":\" or \"{\" or \"}\". If that is so, then the text is safe for eval.\n\n if (\n rx_one.test(\n text\n .replace(rx_two, \"@\")\n .replace(rx_three, \"]\")\n .replace(rx_four, \"\")\n )\n ) {\n\n// In the third stage we use the eval function to compile the text into a\n// JavaScript structure. The \"{\" operator is subject to a syntactic ambiguity\n// in JavaScript: it can begin a block or an object literal. We wrap the text\n// in parens to eliminate the ambiguity.\n\n j = eval(\"(\" + text + \")\");\n\n// In the optional fourth stage, we recursively walk the new structure, passing\n// each name/value pair to a reviver function for possible transformation.\n\n return (typeof reviver === \"function\")\n ? walk({\"\": j}, \"\")\n : j;\n }\n\n// If the text is not JSON parseable, then a SyntaxError is thrown.\n\n throw new SyntaxError(\"JSON.parse\");\n };\n }\n}());","module.exports = json2Plugin\n\nfunction json2Plugin() {\n\trequire('./lib/json2')\n\treturn {}\n}\n","var engine = require('../src/store-engine')\n\nvar storages = require('../storages/all')\nvar plugins = [require('../plugins/json2')]\n\nmodule.exports = engine.createStore(storages, plugins)\n","/*!\ndevtools-detect\nhttps://github.com/sindresorhus/devtools-detect\nBy Sindre Sorhus\nMIT License\n*/\n\nconst devtools = {\n\tisOpen: false,\n\torientation: undefined,\n};\n\nconst threshold = 170;\n\nconst emitEvent = (isOpen, orientation) => {\n\tglobalThis.dispatchEvent(new globalThis.CustomEvent('devtoolschange', {\n\t\tdetail: {\n\t\t\tisOpen,\n\t\t\torientation,\n\t\t},\n\t}));\n};\n\nconst main = ({emitEvents = true} = {}) => {\n\tconst widthThreshold = globalThis.outerWidth - globalThis.innerWidth > threshold;\n\tconst heightThreshold = globalThis.outerHeight - globalThis.innerHeight > threshold;\n\tconst orientation = widthThreshold ? 'vertical' : 'horizontal';\n\n\tif (\n\t\t!(heightThreshold && widthThreshold)\n\t\t&& ((globalThis.Firebug && globalThis.Firebug.chrome && globalThis.Firebug.chrome.isInitialized) || widthThreshold || heightThreshold)\n\t) {\n\t\tif ((!devtools.isOpen || devtools.orientation !== orientation) && emitEvents) {\n\t\t\temitEvent(true, orientation);\n\t\t}\n\n\t\tdevtools.isOpen = true;\n\t\tdevtools.orientation = orientation;\n\t} else {\n\t\tif (devtools.isOpen && emitEvents) {\n\t\t\temitEvent(false, undefined);\n\t\t}\n\n\t\tdevtools.isOpen = false;\n\t\tdevtools.orientation = undefined;\n\t}\n};\n\nmain({emitEvents: false});\nsetInterval(main, 500);\n\nexport default devtools;\n","/* ***** BEGIN LICENSE BLOCK *****\n\tCopyright (c) 2018-2025 Famibee (famibee.blog38.fc2.com)\n\n\tThis software is released under the MIT License.\n\thttp://opensource.org/licenses/mit-license.php\n** ***** END LICENSE BLOCK ***** */\n\nimport {SysBase} from './SysBase';\nimport {CmnLib, getDateStr, argChk_Boolean, argChk_Num, type T_DIP} from './CmnLib';\nimport type {T_HTag, TTag} from './Grammar';\nimport type {T_Variable, T_Data4Vari, T_SysBaseParams, T_SysBaseLoadedParams, T_H_TMP_DATA, T_H_VAL_KIDOKU, T_H_VAL_MARK, T_H_SYS_DATA} from './CmnInterface';\n\nimport type {Application} from 'pixi.js';\nimport store from 'store';\nimport type {DevToolsEvent} from 'devtools-detect';\nimport 'devtools-detect';\n\n\nexport class SysWeb extends SysBase {\n\t#path_base;\n\tconstructor(...[hPlg = {}, arg = {cur: 'prj/', crypto: false, dip: ''}]: T_SysBaseParams) {\t// DOMContentLoaded は呼び出し側でやる\n\t\tsuper(hPlg, arg);\n\n\t\tconst a = arg.cur.split('/');\n\t\tthis.#path_base = a.length > 2 ? a.slice(0, -2).join('/') +'/' :'';\n\n\t\tvoid this.loaded(hPlg, arg);\n\t}\n\tprotected override async loaded(...[hPlg, arg]: T_SysBaseLoadedParams) {\n\t\tawait super.loaded(hPlg, arg);\n\n\t\tdocument.querySelectorAll('[data-prj]').forEach(v=> {\n\t\t\tconst elm = v.attributes.getNamedItem('data-prj');\n\t\t\tif (elm) v.addEventListener('click', ()=> {void this.runSN(elm.value)}, {passive: true});\n\t\t\t//if (elm) this.elc.add(v, 'click', ()=> this.runSN(elm.value), {passive: true});\n\t\t\t\t// ギャラリーであっても、ここには一度しか来ないので\n\t\t});\n\t\tdocument.querySelectorAll('[data-reload]').forEach(v=>\n\t\t\tv.addEventListener('click', ()=> {void this.run()}, {passive: true})\n\t\t\t//this.elc.add(v, 'click', ()=> {void this.run()}, {passive: true})\n\t\t\t\t// ギャラリーであっても、ここには一度しか来ないので\n\t\t);\n\t\tif (arg.dip) CmnLib.hDip = <T_DIP>JSON.parse(arg.dip);\n\n\t\tconst sp = new URLSearchParams(location.search);\n\t\tconst dip = sp.get('dip');\t// ディップスイッチ\n\t\tif (dip) CmnLib.hDip = <T_DIP>{...CmnLib.hDip, ...JSON.parse(dip.replaceAll('%2C', ','))};\n\t\tif (! argChk_Boolean(CmnLib.hDip, 'oninit_run', true)) return;\n\n\t\tif (argChk_Boolean(CmnLib.hDip, 'dbg', false)) {\n\t\t\tCmnLib.isDbg = true;\n\t\t\tthis.fetch = (url: string, init?: RequestInit)=> fetch(url, {...init, mode: 'cors'});\n\t\t}\n\t\tthis.extPort = argChk_Num(CmnLib.hDip, 'port', this.extPort);\n\n\t\tconst cur = sp.get('cur');\n\t\tif (cur) arg.cur = this.#path_base + cur +'/';\n\t\tawait this.run();\n\t}\n\n\t#now_prj\t= ':';\n\tasync runSN(prj: string) {\n\t\tthis.arg.cur = this.#path_base + prj +'/';\n\t\tif (this.#now_prj === this.arg.cur) return;\n\n\t\tthis.#now_prj = this.arg.cur;\n\t\tawait this.run();\n\t}\n\n\n\toverride async\tinitVal(hTmp: T_H_TMP_DATA, comp: (data: T_Data4Vari)=> void) {\n\t\t// システム情報\n\t\tconst hn = encodeURIComponent(document.location.hostname);\n\t\thTmp['const.sn.isDebugger'] = hn === 'localhost' || hn ==='127.0.0.1';\n\n\t\tconst ns = this.cfg.headNs;\n\t\tthis.flushSub = this.arg.crypto\n\t\t? async ()=> {\n\t\t\tstore.set(ns +'sys_', await this.enc(JSON.stringify(this.data.sys)));\n\t\t\tstore.set(ns +'mark_', await this.enc(JSON.stringify(this.data.mark)));\n\t\t\tstore.set(ns +'kidoku_',await this.enc(JSON.stringify(this.data.kidoku)));\n\t\t}\n\t\t: ()=> {\n\t\t\tstore.set(ns +'sys', this.data.sys);\n\t\t\tstore.set(ns +'mark', this.data.mark);\n\t\t\tstore.set(ns +'kidoku', this.data.kidoku);\n\t\t};\n\t\tconst nm = ns +(this.arg.crypto ?'sys_' :'sys');\n\t\t// eslint-disable-next-line no-cond-assign\n\t\tif (hTmp['const.sn.isFirstBoot'] = store.get(nm) === undefined) {\n\t\t\t// データがない(初回起動)場合の処理\n\t\t\tthis.data.sys = <T_H_SYS_DATA>{};\n\t\t\tthis.data.mark = {};\n\t\t\tthis.data.kidoku = {};\n\t\t\t// this.flush();\t// ここでは仮置き、外でやってもらう\n\t\t\tcomp(this.data);\n\t\t\treturn;\n\t\t}\n\n\t\t// データがある場合の処理\n\t\tif (! this.arg.crypto) {\n\t\t\tthis.data.sys = <T_H_SYS_DATA>store.get(ns +'sys');\n\t\t\tthis.data.mark = <T_H_VAL_MARK>store.get(ns +'mark');\n\t\t\tthis.data.kidoku = <T_H_VAL_KIDOKU>store.get(ns +'kidoku');\n\t\t\tcomp(this.data);\n\t\t\treturn;\n\t\t}\n\n\t\tlet mes = '';\n\t\ttry {\n\t\t\tmes = 'sys';\t// tst sys\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n\t\t\tthis.data.sys = <T_H_SYS_DATA>JSON.parse(await this.dec('json', store.get(ns +'sys_')));\n\t\t\tmes += String(this.val.getVal('sys:TextLayer.Back.Alpha', 1));\n\t\t\tmes = 'mark';\t// tst mark\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n\t\t\tthis.data.mark = <T_H_VAL_MARK>JSON.parse(await this.dec('json', store.get(ns +'mark_')));\n\t\t\tmes = 'kidoku';\t// tst kidoku\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n\t\t\tthis.data.kidoku = <T_H_VAL_KIDOKU>JSON.parse(await this.dec('json', store.get(ns +'kidoku_')));\n\t\t} catch (e) {\n\t\t\tconsole.error(`セーブデータ(${mes})が壊れています。一度クリアする必要があります(a) %o`, e);\n\t\t}\n\t\tcomp(this.data);\n\t}\n\n\toverride init(hTag: T_HTag, appPixi: Application, val: T_Variable) {\n\t\tconst aP = super.init(hTag, appPixi, val);\n\n\t\t// 全画面状態切替\n\t\t// eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\t\tconst pCvs = appPixi.view.parentElement!;\n\t\tif ('requestFullscreen' in document.body) {\n\t\t\tthis.tglFlscr_sub = this.isFullScr\n\t\t\t\t? ()=> document.exitFullscreen()\n\t\t\t\t: ()=> pCvs.requestFullscreen();\n\n\t\t\tthis.elc.add(document, 'fullscreenchange', ()=> {this.isFullScr = Boolean(document.fullscreenElement)});\t// Escの場合もあるので\n\t\t}\n\t\telse {\n\t\t\tconst doc = <{\n\t\t\t\twebkitCancelFullScreen\t: ()=> Promise<void>;\n\t\t\t\twebkitRequestFullscreen\t: ()=> Promise<void>;\n\t\t\t\twebkitFullscreenElement\t: HTMLElement | undefined;\n\t\t\t}><unknown>document;\t// Safariなど\n\t\t\tthis.tglFlscr_sub = this.isFullScr\n\t\t\t\t? ()=> doc.webkitCancelFullScreen()\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-return\n\t\t\t\t: ()=> (<any>pCvs).webkitRequestFullscreen();\n\n\t\t\tthis.elc.add(document, 'fullscreenchange', ()=> {this.isFullScr = Boolean(doc.webkitFullscreenElement)});\t// Escの場合もあるので\n\t\t}\n\n\t\t// window.addEventListener('devtoolschange', event => {});\n\t\tif (! this.cfg.oCfg.debug.devtool) this.elc.add(globalThis, 'devtoolschange', (e: DevToolsEvent)=> {\n\t\t\tif (! e.detail.isOpen) return;\n\t\t\tconsole.error('DevToolは禁止されています。許可する場合は【プロジェクト設定】の【devtool】をONに。');\n\t\t\tthis.main?.destroy();\n\t\t}, {once: true, passive: true});\n\n\t\treturn aP;\n\t}\n\n\n\toverride cvsResize() {\n\t\tsuper.cvsResize();\n\n\t\tif (! this.isFullScr) return;\n\t\tif (! this.main) return;\n\n\t\tconst s = this.main.cvs.style;\n\t\ts.width = s.height = '';\t// ブラウザ版のセンタリングに必須\n\t}\n\n\n\toverride pathBaseCnvSnPath4Dbg = '${pathbase}/';\n\n\t// プレイデータをエクスポート\n\tprotected override readonly\t_export: TTag = ()=> {\n\t\t(async ()=> {\n\t\t\tconst s = JSON.stringify({\n\t\t\t\t'sys': this.data.sys,\n\t\t\t\t'mark': this.data.mark,\n\t\t\t\t'kidoku': this.data.kidoku,\n\t\t\t});\n\t\t\tconst s2 = this.arg.crypto ?await this.enc(s) :s;\n\t\t\tconst blob = new Blob([s2], {'type':'text/json'});\n\n\t\t\tconst a = document.createElement('a');\n\t\t\ta.href = URL.createObjectURL(blob);\n\t\t\ta.download = (this.arg.crypto ?'' :'no_crypto_')\n\t\t\t\t+ this.cfg.headNs + getDateStr('-', '_', '') +'.swpd';\n\t\t\ta.click();\n\n\t\t\tif (CmnLib.debugLog) console.log('プレイデータをエクスポートしました');\n\t\t\tsetTimeout(()=> this.fire('sn:exported', new MouseEvent('click')), 10);\n\t\t\t\t// clearTimeout()不要と判断\n\t\t})();\n\n\t\treturn false;\n\t}\n\n\t// プレイデータをインポート\n\tprotected override readonly\t_import: TTag = ()=> {\n\t\tnew Promise((rs: (file: Blob)=> void, rj)=> {\n\t\t\tconst inp = document.createElement('input');\n\t\t\tinp.type = 'file';\n\t\t\tinp.accept = '.swpd, text/plain';\n\t\t\tinp.onchange = ()=> {\n\t\t\t\tconst f = inp.files?.[0];\n\t\t\t\tif (f) rs(f); else rj(new Error('ファイル選択に失敗しました'))\n\t\t\t};\n\t\t\tinp.click();\n\t\t})\n\t\t.then(async blob=> {\n\t\t\tconst s = await blob.text();\n\t\t\tconst o = <T_Data4Vari>JSON.parse(this.arg.crypto ?await this.dec('json', s) :s);\n\t\t\tif (o.sys['const.sn.cfg.ns'] !== this.cfg.oCfg.save_ns) {\n\t\t\t\tconsole.error(`別のゲーム【プロジェクト名=${o.sys['const.sn.cfg.ns']}】のプレイデータです`);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.data.sys = o.sys;\n\t\t\tthis.data.mark = o.mark;\n\t\t\tthis.data.kidoku = o.kidoku;\n\t\t\tthis.flush();\n\t\t\tthis.val.updateData(o);\n\n\t\t\tif (CmnLib.debugLog) console.log('プレイデータをインポートしました');\n\t\t\tthis.fire('sn:imported', new MouseEvent('click'));\n\t\t})\n\t\t.catch((e: unknown)=> console.error(`異常なプレイデータです ${String(e)}`));\n\n\t\treturn false;\n\t}\n\n\n\t// URLを開く\n\tprotected override readonly\tnavigate_to: TTag = hArg=> {\n\t\tconst {url} = hArg;\n\t\tif (! url) throw '[navigate_to] urlは必須です';\n\t//\tglobalThis.open(url);\t\t// 近年セキュリティ的に効かない\n\t\tglobalThis.open(url, '_blank');\t\t// 効くがポップアップブロック\n\t//\tlocation.href = url;\t// これは効くがSKYNovelが終了してしまう\n\n\t\treturn false;\n\t}\n\t// タイトル指定\n\tprotected override titleSub(txt: string) {\n\t\tdocument.title = txt;\n\t\tdocument.querySelectorAll('[data-title]').forEach(v=> {v.textContent = txt});\n\t}\n\n\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\toverride async savePic(path: string, data_url: string) {\n\t\tconst a = document.createElement('a');\n\t\ta.href = data_url;\n\t\ta.download = path;\n\t\ta.click();\n\t\tif (CmnLib.debugLog) console.log('画像ファイルをダウンロードします');\n\t}\n\n\treadonly\t#hAppendFile: {[path: string]: string} = {};\n\toverride async appendFile(path: string, data: string) {\n\t\tconst txt = (this.#hAppendFile[path] ?? '') + data;\n\t\tthis.#hAppendFile[path] = txt;\n\n\t\tawait this.outputFile(path, txt);\n\t}\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\toverride async outputFile(path: string, data: string) {\n\t\tconst blob = new Blob([data], {'type':'text/json'});\n\t\tconst a = document.createElement('a');\n\t\ta.href = URL.createObjectURL(blob);\n\t\ta.download = path;\n\t\ta.click();\n\t}\n\n}\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12],"mappings":";;;;;;CAAA,IAAI,IAAS,EAAY;CAKzB,EAAO,UAAU;EACR;EACA,QANI,EAMJ;EACF,MANI,EAMJ;EACA;EACC;EACD;EACD;EACE;EACC;EACI;EACF;EACF,QAdK,OAAO,SAAW,MAAc,SAAS;CAevD;CAEA,SAAS,IAAc;EAIrB,OAHG,OAAO,SACH,OAAO,SAEP,SAAoB,GAAK,GAAQ,GAAQ,GAAK;GACpD,KAAK,IAAI,IAAI,GAAG,IAAI,UAAU,QAAQ,KACrC,EAAK,OAAO,UAAU,EAAE,GAAG,SAAS,GAAK,G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B;CACR;CAEA,SAA4B,GAAa;EAExC,AADA,SAAS,QAAQ,GACjB,SAAS,iBAAiB,cAAc,CAAC,CAAC,SAAQ,MAAI;GAAC,EAAE,cAAc;EAAG,CAAC;CAC5E;CAIA,MAAe,QAAQ,GAAc,GAAkB;EACtD,IAAM,IAAI,SAAS,cAAc,GAAG;EAIpC,AAHA,EAAE,OAAO,GACT,EAAE,WAAW,GACb,EAAE,MAAM,GACJ,OAAO,YAAU,QAAQ,IAAI,kBAAkB;CACpD;CAEA,KAAkD,CAAC;CACnD,MAAe,WAAW,GAAc,GAAc;EACrD,IAAM,KAAO,KAAKC,GAAa,MAAS,MAAM;EAG9C,AAFA,KAAKA,GAAa,KAAQ,GAE1B,MAAM,KAAK,WAAW,GAAM,CAAG;CAChC;CAEA,MAAe,WAAW,GAAc,GAAc;EACrD,IAAM,IAAO,IAAI,KAAK,CAAC,CAAI,GAAG,EAAC,MAAO,YAAW,CAAC,GAC5C,IAAI,SAAS,cAAc,GAAG;EAGpC,AAFA,EAAE,OAAO,IAAI,gBAAgB,CAAI,GACjC,EAAE,WAAW,GACb,EAAE,MAAM;CACT;AAED"}
|
|
1
|
+
{"version":3,"file":"web.js","names":["#path_base","#now_prj","#hAppendFile"],"sources":["../src/sn/localStore.ts","../node_modules/devtools-detect/index.js","../src/sn/SysWeb.ts"],"sourcesContent":["// store.js互換の薄いlocalStorageラッパー(eval不使用・モダンブラウザ専用)\n// store.jsは9年更新なし + json2.js内でeval使用のためeval警告が出るので置き換え。\n// 単純なget/set(暗号化ケースはJSON文字列を渡すだけ)のみ対応。\n\nexport default {\n\tget(key: string): any {\n\t\tconst raw = localStorage.getItem(key);\n\t\tif (raw == null) return undefined;\n\t\ttry {\n\t\t\treturn JSON.parse(raw);\n\t\t}\n\t\tcatch {\n\t\t\treturn undefined;\n\t\t}\n\t},\n\tset(key: string, value: unknown): void {\n\t\tlocalStorage.setItem(key, JSON.stringify(value));\n\t},\n\tremove(key: string): void {\n\t\tlocalStorage.removeItem(key);\n\t},\n};\n","/*!\ndevtools-detect\nhttps://github.com/sindresorhus/devtools-detect\nBy Sindre Sorhus\nMIT License\n*/\n\nconst devtools = {\n\tisOpen: false,\n\torientation: undefined,\n};\n\nconst threshold = 170;\n\nconst emitEvent = (isOpen, orientation) => {\n\tglobalThis.dispatchEvent(new globalThis.CustomEvent('devtoolschange', {\n\t\tdetail: {\n\t\t\tisOpen,\n\t\t\torientation,\n\t\t},\n\t}));\n};\n\nconst main = ({emitEvents = true} = {}) => {\n\tconst widthThreshold = globalThis.outerWidth - globalThis.innerWidth > threshold;\n\tconst heightThreshold = globalThis.outerHeight - globalThis.innerHeight > threshold;\n\tconst orientation = widthThreshold ? 'vertical' : 'horizontal';\n\n\tif (\n\t\t!(heightThreshold && widthThreshold)\n\t\t&& ((globalThis.Firebug && globalThis.Firebug.chrome && globalThis.Firebug.chrome.isInitialized) || widthThreshold || heightThreshold)\n\t) {\n\t\tif ((!devtools.isOpen || devtools.orientation !== orientation) && emitEvents) {\n\t\t\temitEvent(true, orientation);\n\t\t}\n\n\t\tdevtools.isOpen = true;\n\t\tdevtools.orientation = orientation;\n\t} else {\n\t\tif (devtools.isOpen && emitEvents) {\n\t\t\temitEvent(false, undefined);\n\t\t}\n\n\t\tdevtools.isOpen = false;\n\t\tdevtools.orientation = undefined;\n\t}\n};\n\nmain({emitEvents: false});\nsetInterval(main, 500);\n\nexport default devtools;\n","/* ***** BEGIN LICENSE BLOCK *****\n\tCopyright (c) 2018-2025 Famibee (famibee.blog38.fc2.com)\n\n\tThis software is released under the MIT License.\n\thttp://opensource.org/licenses/mit-license.php\n** ***** END LICENSE BLOCK ***** */\n\nimport {SysBase} from './SysBase';\nimport {CmnLib, getDateStr, argChk_Boolean, argChk_Num, type T_DIP} from './CmnLib';\nimport type {T_HTag, TTag} from './Grammar';\nimport type {T_Variable, T_Data4Vari, T_SysBaseParams, T_SysBaseLoadedParams, T_H_TMP_DATA, T_H_VAL_KIDOKU, T_H_VAL_MARK, T_H_SYS_DATA} from './CmnInterface';\n\nimport type {Application} from 'pixi.js';\nimport store from './localStore';\nimport type {DevToolsEvent} from 'devtools-detect';\nimport 'devtools-detect';\n\n\nexport class SysWeb extends SysBase {\n\t#path_base;\n\tconstructor(...[hPlg = {}, arg = {cur: 'prj/', crypto: false, dip: ''}]: T_SysBaseParams) {\t// DOMContentLoaded は呼び出し側でやる\n\t\tsuper(hPlg, arg);\n\n\t\tconst a = arg.cur.split('/');\n\t\tthis.#path_base = a.length > 2 ? a.slice(0, -2).join('/') +'/' :'';\n\n\t\tvoid this.loaded(hPlg, arg);\n\t}\n\tprotected override async loaded(...[hPlg, arg]: T_SysBaseLoadedParams) {\n\t\tawait super.loaded(hPlg, arg);\n\n\t\tdocument.querySelectorAll('[data-prj]').forEach(v=> {\n\t\t\tconst elm = v.attributes.getNamedItem('data-prj');\n\t\t\tif (elm) v.addEventListener('click', ()=> {void this.runSN(elm.value)}, {passive: true});\n\t\t\t//if (elm) this.elc.add(v, 'click', ()=> this.runSN(elm.value), {passive: true});\n\t\t\t\t// ギャラリーであっても、ここには一度しか来ないので\n\t\t});\n\t\tdocument.querySelectorAll('[data-reload]').forEach(v=>\n\t\t\tv.addEventListener('click', ()=> {void this.run()}, {passive: true})\n\t\t\t//this.elc.add(v, 'click', ()=> {void this.run()}, {passive: true})\n\t\t\t\t// ギャラリーであっても、ここには一度しか来ないので\n\t\t);\n\t\tif (arg.dip) CmnLib.hDip = <T_DIP>JSON.parse(arg.dip);\n\n\t\tconst sp = new URLSearchParams(location.search);\n\t\tconst dip = sp.get('dip');\t// ディップスイッチ\n\t\tif (dip) CmnLib.hDip = <T_DIP>{...CmnLib.hDip, ...JSON.parse(dip.replaceAll('%2C', ','))};\n\t\tif (! argChk_Boolean(CmnLib.hDip, 'oninit_run', true)) return;\n\n\t\tif (argChk_Boolean(CmnLib.hDip, 'dbg', false)) {\n\t\t\tCmnLib.isDbg = true;\n\t\t\tthis.fetch = (url: string, init?: RequestInit)=> fetch(url, {...init, mode: 'cors'});\n\t\t}\n\t\tthis.extPort = argChk_Num(CmnLib.hDip, 'port', this.extPort);\n\n\t\tconst cur = sp.get('cur');\n\t\tif (cur) arg.cur = this.#path_base + cur +'/';\n\t\tawait this.run();\n\t}\n\n\t#now_prj\t= ':';\n\tasync runSN(prj: string) {\n\t\tthis.arg.cur = this.#path_base + prj +'/';\n\t\tif (this.#now_prj === this.arg.cur) return;\n\n\t\tthis.#now_prj = this.arg.cur;\n\t\tawait this.run();\n\t}\n\n\n\toverride async\tinitVal(hTmp: T_H_TMP_DATA, comp: (data: T_Data4Vari)=> void) {\n\t\t// システム情報\n\t\tconst hn = encodeURIComponent(document.location.hostname);\n\t\thTmp['const.sn.isDebugger'] = hn === 'localhost' || hn ==='127.0.0.1';\n\n\t\tconst ns = this.cfg.headNs;\n\t\tthis.flushSub = this.arg.crypto\n\t\t? async ()=> {\n\t\t\tstore.set(ns +'sys_', await this.enc(JSON.stringify(this.data.sys)));\n\t\t\tstore.set(ns +'mark_', await this.enc(JSON.stringify(this.data.mark)));\n\t\t\tstore.set(ns +'kidoku_',await this.enc(JSON.stringify(this.data.kidoku)));\n\t\t}\n\t\t: ()=> {\n\t\t\tstore.set(ns +'sys', this.data.sys);\n\t\t\tstore.set(ns +'mark', this.data.mark);\n\t\t\tstore.set(ns +'kidoku', this.data.kidoku);\n\t\t};\n\t\tconst nm = ns +(this.arg.crypto ?'sys_' :'sys');\n\t\t// eslint-disable-next-line no-cond-assign\n\t\tif (hTmp['const.sn.isFirstBoot'] = store.get(nm) === undefined) {\n\t\t\t// データがない(初回起動)場合の処理\n\t\t\tthis.data.sys = <T_H_SYS_DATA>{};\n\t\t\tthis.data.mark = {};\n\t\t\tthis.data.kidoku = {};\n\t\t\t// this.flush();\t// ここでは仮置き、外でやってもらう\n\t\t\tcomp(this.data);\n\t\t\treturn;\n\t\t}\n\n\t\t// データがある場合の処理\n\t\tif (! this.arg.crypto) {\n\t\t\tthis.data.sys = <T_H_SYS_DATA>store.get(ns +'sys');\n\t\t\tthis.data.mark = <T_H_VAL_MARK>store.get(ns +'mark');\n\t\t\tthis.data.kidoku = <T_H_VAL_KIDOKU>store.get(ns +'kidoku');\n\t\t\tcomp(this.data);\n\t\t\treturn;\n\t\t}\n\n\t\tlet mes = '';\n\t\ttry {\n\t\t\tmes = 'sys';\t// tst sys\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n\t\t\tthis.data.sys = <T_H_SYS_DATA>JSON.parse(await this.dec('json', store.get(ns +'sys_')));\n\t\t\tmes += String(this.val.getVal('sys:TextLayer.Back.Alpha', 1));\n\t\t\tmes = 'mark';\t// tst mark\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n\t\t\tthis.data.mark = <T_H_VAL_MARK>JSON.parse(await this.dec('json', store.get(ns +'mark_')));\n\t\t\tmes = 'kidoku';\t// tst kidoku\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n\t\t\tthis.data.kidoku = <T_H_VAL_KIDOKU>JSON.parse(await this.dec('json', store.get(ns +'kidoku_')));\n\t\t} catch (e) {\n\t\t\tconsole.error(`セーブデータ(${mes})が壊れています。一度クリアする必要があります(a) %o`, e);\n\t\t}\n\t\tcomp(this.data);\n\t}\n\n\toverride init(hTag: T_HTag, appPixi: Application, val: T_Variable) {\n\t\tconst aP = super.init(hTag, appPixi, val);\n\n\t\t// 全画面状態切替\n\t\t// eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\t\tconst pCvs = appPixi.view.parentElement!;\n\t\tif ('requestFullscreen' in document.body) {\n\t\t\tthis.tglFlscr_sub = this.isFullScr\n\t\t\t\t? ()=> document.exitFullscreen()\n\t\t\t\t: ()=> pCvs.requestFullscreen();\n\n\t\t\tthis.elc.add(document, 'fullscreenchange', ()=> {this.isFullScr = Boolean(document.fullscreenElement)});\t// Escの場合もあるので\n\t\t}\n\t\telse {\n\t\t\tconst doc = <{\n\t\t\t\twebkitCancelFullScreen\t: ()=> Promise<void>;\n\t\t\t\twebkitRequestFullscreen\t: ()=> Promise<void>;\n\t\t\t\twebkitFullscreenElement\t: HTMLElement | undefined;\n\t\t\t}><unknown>document;\t// Safariなど\n\t\t\tthis.tglFlscr_sub = this.isFullScr\n\t\t\t\t? ()=> doc.webkitCancelFullScreen()\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-return\n\t\t\t\t: ()=> (<any>pCvs).webkitRequestFullscreen();\n\n\t\t\tthis.elc.add(document, 'fullscreenchange', ()=> {this.isFullScr = Boolean(doc.webkitFullscreenElement)});\t// Escの場合もあるので\n\t\t}\n\n\t\t// window.addEventListener('devtoolschange', event => {});\n\t\tif (! this.cfg.oCfg.debug.devtool) this.elc.add(globalThis, 'devtoolschange', (e: DevToolsEvent)=> {\n\t\t\tif (! e.detail.isOpen) return;\n\t\t\tconsole.error('DevToolは禁止されています。許可する場合は【プロジェクト設定】の【devtool】をONに。');\n\t\t\tthis.main?.destroy();\n\t\t}, {once: true, passive: true});\n\n\t\treturn aP;\n\t}\n\n\n\toverride cvsResize() {\n\t\tsuper.cvsResize();\n\n\t\tif (! this.isFullScr) return;\n\t\tif (! this.main) return;\n\n\t\tconst s = this.main.cvs.style;\n\t\ts.width = s.height = '';\t// ブラウザ版のセンタリングに必須\n\t}\n\n\n\toverride pathBaseCnvSnPath4Dbg = '${pathbase}/';\n\n\t// プレイデータをエクスポート\n\tprotected override readonly\t_export: TTag = ()=> {\n\t\t(async ()=> {\n\t\t\tconst s = JSON.stringify({\n\t\t\t\t'sys': this.data.sys,\n\t\t\t\t'mark': this.data.mark,\n\t\t\t\t'kidoku': this.data.kidoku,\n\t\t\t});\n\t\t\tconst s2 = this.arg.crypto ?await this.enc(s) :s;\n\t\t\tconst blob = new Blob([s2], {'type':'text/json'});\n\n\t\t\tconst a = document.createElement('a');\n\t\t\ta.href = URL.createObjectURL(blob);\n\t\t\ta.download = (this.arg.crypto ?'' :'no_crypto_')\n\t\t\t\t+ this.cfg.headNs + getDateStr('-', '_', '') +'.swpd';\n\t\t\ta.click();\n\n\t\t\tif (CmnLib.debugLog) console.log('プレイデータをエクスポートしました');\n\t\t\tsetTimeout(()=> this.fire('sn:exported', new MouseEvent('click')), 10);\n\t\t\t\t// clearTimeout()不要と判断\n\t\t})();\n\n\t\treturn false;\n\t}\n\n\t// プレイデータをインポート\n\tprotected override readonly\t_import: TTag = ()=> {\n\t\tnew Promise((rs: (file: Blob)=> void, rj)=> {\n\t\t\tconst inp = document.createElement('input');\n\t\t\tinp.type = 'file';\n\t\t\tinp.accept = '.swpd, text/plain';\n\t\t\tinp.onchange = ()=> {\n\t\t\t\tconst f = inp.files?.[0];\n\t\t\t\tif (f) rs(f); else rj(new Error('ファイル選択に失敗しました'))\n\t\t\t};\n\t\t\tinp.click();\n\t\t})\n\t\t.then(async blob=> {\n\t\t\tconst s = await blob.text();\n\t\t\tconst o = <T_Data4Vari>JSON.parse(this.arg.crypto ?await this.dec('json', s) :s);\n\t\t\tif (o.sys['const.sn.cfg.ns'] !== this.cfg.oCfg.save_ns) {\n\t\t\t\tconsole.error(`別のゲーム【プロジェクト名=${o.sys['const.sn.cfg.ns']}】のプレイデータです`);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.data.sys = o.sys;\n\t\t\tthis.data.mark = o.mark;\n\t\t\tthis.data.kidoku = o.kidoku;\n\t\t\tthis.flush();\n\t\t\tthis.val.updateData(o);\n\n\t\t\tif (CmnLib.debugLog) console.log('プレイデータをインポートしました');\n\t\t\tthis.fire('sn:imported', new MouseEvent('click'));\n\t\t})\n\t\t.catch((e: unknown)=> console.error(`異常なプレイデータです ${String(e)}`));\n\n\t\treturn false;\n\t}\n\n\n\t// URLを開く\n\tprotected override readonly\tnavigate_to: TTag = hArg=> {\n\t\tconst {url} = hArg;\n\t\tif (! url) throw '[navigate_to] urlは必須です';\n\t//\tglobalThis.open(url);\t\t// 近年セキュリティ的に効かない\n\t\tglobalThis.open(url, '_blank');\t\t// 効くがポップアップブロック\n\t//\tlocation.href = url;\t// これは効くがSKYNovelが終了してしまう\n\n\t\treturn false;\n\t}\n\t// タイトル指定\n\tprotected override titleSub(txt: string) {\n\t\tdocument.title = txt;\n\t\tdocument.querySelectorAll('[data-title]').forEach(v=> {v.textContent = txt});\n\t}\n\n\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\toverride async savePic(path: string, data_url: string) {\n\t\tconst a = document.createElement('a');\n\t\ta.href = data_url;\n\t\ta.download = path;\n\t\ta.click();\n\t\tif (CmnLib.debugLog) console.log('画像ファイルをダウンロードします');\n\t}\n\n\treadonly\t#hAppendFile: {[path: string]: string} = {};\n\toverride async appendFile(path: string, data: string) {\n\t\tconst txt = (this.#hAppendFile[path] ?? '') + data;\n\t\tthis.#hAppendFile[path] = txt;\n\n\t\tawait this.outputFile(path, txt);\n\t}\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\toverride async outputFile(path: string, data: string) {\n\t\tconst blob = new Blob([data], {'type':'text/json'});\n\t\tconst a = document.createElement('a');\n\t\ta.href = URL.createObjectURL(blob);\n\t\ta.download = path;\n\t\ta.click();\n\t}\n\n}\n"],"x_google_ignoreList":[1],"mappings":";;;;AAIA,IAAA,IAAe;CACd,IAAI,GAAkB;EACrB,IAAM,IAAM,aAAa,QAAQ,CAAG;EAChC,SAAO,MACX,IAAI;GACH,OAAO,KAAK,MAAM,CAAG;EACtB,QACM;GACL;EACD;CACD;CACA,IAAI,GAAa,GAAsB;EACtC,aAAa,QAAQ,GAAK,KAAK,UAAU,CAAK,CAAC;CAChD;CACA,OAAO,GAAmB;EACzB,aAAa,WAAW,CAAG;CAC5B;AACD,GCdM,IAAW;CAChB,QAAQ;CACR,aAAa,KAAA;AACd,GAEM,IAAY,KAEZ,KAAa,GAAQ,MAAgB;CAC1C,WAAW,cAAc,IAAI,WAAW,YAAY,kBAAkB,EACrE,QAAQ;EACP;EACA;C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