@dhzh/foundry 7.1.1 → 7.1.3

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.
@@ -1,4 +1,4 @@
1
- import{r as _t,W as ug,_ as v$,u as y$,j as DO}from"./index-CNmsVI3u.js";function IO(o,e){(e==null||e>o.length)&&(e=o.length);for(var t=0,i=Array(e);t<e;t++)i[t]=o[t];return i}function S$(o){if(Array.isArray(o))return o}function L$(o,e,t){return(e=T$(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function x$(o,e){var t=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(t!=null){var i,n,s,r,a=[],l=!0,c=!1;try{if(s=(t=t.call(o)).next,e!==0)for(;!(l=(i=s.call(t)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(h){c=!0,n=h}finally{try{if(!l&&t.return!=null&&(r=t.return(),Object(r)!==r))return}finally{if(c)throw n}}return a}}function k$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{r as _t,W as ug,_ as v$,u as y$,j as DO}from"./index-Ck7D4mL-.js";function IO(o,e){(e==null||e>o.length)&&(e=o.length);for(var t=0,i=Array(e);t<e;t++)i[t]=o[t];return i}function S$(o){if(Array.isArray(o))return o}function L$(o,e,t){return(e=T$(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function x$(o,e){var t=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(t!=null){var i,n,s,r,a=[],l=!0,c=!1;try{if(s=(t=t.call(o)).next,e!==0)for(;!(l=(i=s.call(t)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(h){c=!0,n=h}finally{try{if(!l&&t.return!=null&&(r=t.return(),Object(r)!==r))return}finally{if(c)throw n}}return a}}function k$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NO(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,i)}return t}function TO(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?NO(Object(t),!0).forEach(function(i){L$(o,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):NO(Object(t)).forEach(function(i){Object.defineProperty(o,i,Object.getOwnPropertyDescriptor(t,i))})}return o}function E$(o,e){if(o==null)return{};var t,i,n=D$(o,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);for(i=0;i<s.length;i++)t=s[i],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(o,t)&&(n[t]=o[t])}return n}function D$(o,e){if(o==null)return{};var t={};for(var i in o)if({}.hasOwnProperty.call(o,i)){if(e.indexOf(i)!==-1)continue;t[i]=o[i]}return t}function I$(o,e){return S$(o)||x$(o,e)||R$(o,e)||k$()}function N$(o,e){if(typeof o!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var i=t.call(o,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function T$(o){var e=N$(o,"string");return typeof e=="symbol"?e:e+""}function R$(o,e){if(o){if(typeof o=="string")return IO(o,e);var t={}.toString.call(o).slice(8,-1);return t==="Object"&&o.constructor&&(t=o.constructor.name),t==="Map"||t==="Set"?Array.from(o):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?IO(o,e):void 0}}function M$(o,e,t){return e in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function RO(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,i)}return t}function MO(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?RO(Object(t),!0).forEach(function(i){M$(o,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):RO(Object(t)).forEach(function(i){Object.defineProperty(o,i,Object.getOwnPropertyDescriptor(t,i))})}return o}function A$(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];return function(i){return e.reduceRight(function(n,s){return s(n)},i)}}function Cp(o){return function e(){for(var t=this,i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];return n.length>=o.length?o.apply(this,n):function(){for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return e.apply(t,[].concat(n,a))}}}function AC(o){return{}.toString.call(o).includes("Object")}function O$(o){return!Object.keys(o).length}function q_(o){return typeof o=="function"}function P$(o,e){return Object.prototype.hasOwnProperty.call(o,e)}function F$(o,e){return AC(e)||zc("changeType"),Object.keys(e).some(function(t){return!P$(o,t)})&&zc("changeField"),e}function B$(o){q_(o)||zc("selectorType")}function W$(o){q_(o)||AC(o)||zc("handlerType"),AC(o)&&Object.values(o).some(function(e){return!q_(e)})&&zc("handlersType")}function V$(o){o||zc("initialIsRequired"),AC(o)||zc("initialType"),O$(o)&&zc("initialContent")}function H$(o,e){throw new Error(o[e]||o.default)}var z$={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},zc=Cp(H$)(z$),K1={changes:F$,selector:B$,handler:W$,initial:V$};function $$(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};K1.initial(o),K1.handler(e);var t={current:o},i=Cp(j$)(t,e),n=Cp(q$)(t),s=Cp(K1.changes)(o),r=Cp(U$)(t);function a(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(h){return h};return K1.selector(c),c(t.current)}function l(c){A$(i,n,s,r)(c)}return[a,l]}function U$(o,e){return q_(e)?e(o.current):e}function q$(o,e){return o.current=MO(MO({},o.current),e),e}function j$(o,e,t){return q_(e)?e(o.current):Object.keys(t).forEach(function(i){var n;return(n=e[i])===null||n===void 0?void 0:n.call(e,o.current[i])}),t}var K$={create:$$},G$={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function Y$(o){return function e(){for(var t=this,i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];return n.length>=o.length?o.apply(this,n):function(){for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return e.apply(t,[].concat(n,a))}}}function Z$(o){return{}.toString.call(o).includes("Object")}function X$(o){return o||AO("configIsRequired"),Z$(o)||AO("configType"),o.urls?(Q$(),{paths:{vs:o.urls.monacoBase}}):o}function Q$(){console.warn(aB.deprecation)}function J$(o,e){throw new Error(o[e]||o.default)}var aB={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
3
3
  You are using deprecated way of configuration.
4
4
 
Binary file
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <link rel="icon" href="/favicon.png" />
7
7
  <title>Foundry</title>
8
- <script type="module" crossorigin src="/assets/index-CNmsVI3u.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-Ck7D4mL-.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-D9JJZBZM.css">
10
10
  </head>
11
11
  <body>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dhzh/foundry",
3
3
  "type": "module",
4
- "version": "7.1.1",
4
+ "version": "7.1.3",
5
5
  "devEngines": {
6
6
  "packageManager": {
7
7
  "name": "pnpm",