(function(root, factory) {
  if (typeof define === 'function' && define.amd) {
    // AMD
    define([], factory);
  } else if (typeof exports === 'object' && typeof module !== 'undefined') {
    // CommonJS
    module.exports = factory();
  } else {
    // Browser global
    root.useblocks = factory();
  }
})(typeof globalThis !== 'undefined' ? globalThis : typeof self !== 'undefined' ? self : this, function() {
  'use strict';

var e=window.__useblocks__||(window.__useblocks__={});(function(){"use strict";if(e!==void 0&&e.define)return;e===void 0&&(window.__amdEnv={});var t={},n={},r={},i={},a={},o=`./`,s={};function c(e,t){var n=Error(`[AMD] Failed to load module "`+e+`"`+(t?`: `+t.message:``));return n.moduleId=e,n.cause=t,n}function l(e,t,n){var r=Error(`[AMD] Failed to resolve dependency "`+t+`" for module "`+e+`"`+(n?`: `+n.message:``));return r.moduleId=e,r.dependencyId=t,r.cause=n,r}function u(e){for(var t=String(e||``).split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];if(!(!i||i===`.`)){if(i===`..`){n.length>0&&n.pop();continue}n.push(i)}}return n.join(`/`)}function d(e){var t=String(e||``).replace(/\\/g,`/`),n=String(o||`./`).replace(/\\/g,`/`);return n=n.replace(/^\.\/+/,``),n=n.replace(/^\/+/,``),n&&n.slice(-1)!==`/`&&(n+=`/`),n&&t.indexOf(n)===0&&(t=t.slice(n.length)),t.indexOf(`./`)===0&&(t=t.slice(2)),t}function f(e,t){var n=String(e||``);if(!n)return n;if(!(n.indexOf(`./`)===0||n.indexOf(`../`)===0))return d(u(n));var r=u(t||``),i=r?r.split(`/`):[];i.length>0&&i.pop();for(var a=n.split(`/`),o=0;o<a.length;o++){var s=a[o];if(!(!s||s===`.`)){if(s===`..`){i.length>0&&i.pop();continue}i.push(s)}}return d(i.join(`/`))}function p(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e)||e.indexOf(`//`)===0}function m(e){var t=String(e||``);if(!t||p(t))return t;try{var n=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return n?new URL(t,n).href:t}catch{return t}}function h(){var t=String(o||`./`);if(t.slice(-1)!==`/`&&(t+=`/`),p(t)||t.charAt(0)===`/`)return t;if(e!==void 0&&e&&e.publicPath)try{return new URL(t,m(e.publicPath)).href}catch{}return m(t)}function g(e,t){var n=f(e,t),r=h(),i=Object.prototype.hasOwnProperty.call(s,n)?String(s[n]||``):n;i.slice(-3)!==`.js`&&(i+=`.js`);try{return new URL(i,r).href}catch{return r+i}}function _(){if(typeof document>`u`)return``;var e=document.currentScript;if(e){var t=e.getAttribute(`data-amd-module-id`);if(t)return t}return``}function v(e,n,r){if(Array.isArray(e)?(r=n,n=e,e=_()):typeof e==`function`?(r=e,n=[],e=_()):typeof n==`function`&&(r=n,n=[]),!e)throw Error(`[AMD] Anonymous define() could not be associated with a module id`);e in t||(t[e]={deps:n||[],factory:r})}v.amd={async:!0};function y(){return function(){}}function b(e,t){return{id:e,exports:t,uri:g(e)}}function x(e,t,n,r){if(Array.isArray(e)){var i=Promise.all(e.map(function(e){return C(e,r)})).then(function(e){return t&&t.apply(null,e),e});return n&&i.catch(n),i}return C(e,r)}function S(e,o){if(Array.isArray(e))throw Error(`[AMD] syncRequire does not support dependency arrays`);var s=f(e,o);if(s in a)throw a[s];if(s in n)return n[s];if(s in r||s in i)throw c(s,Error(`Module is still loading asynchronously`));if(!(s in t))throw c(s,Error(`Module is not available for syncRequire`));return T(s)}function C(e,i){var o=f(e,i);return o in a?Promise.reject(a[o]):o in n?Promise.resolve(n[o]):o in r?r[o]:o in t?(r[o]=w(o),r[o]):(r[o]=D(o).then(function(){if(!(o in t)){var e=c(o,Error(`Module not defined after script load`));throw a[o]=e,e}return w(o)}).catch(function(e){delete r[o];var t=c(o,e);throw a[o]=t,t}),r[o])}function w(e){var i=t[e],o=E(e),s=y(),c=b(e,s);return Promise.all(i.deps.map(function(t){return t===`exports`?s:t===`require`?o:t===`module`?c:C(t,e).catch(function(n){throw l(e,t,n)})})).then(function(t){var a=i.factory.apply(null,t);return a&&typeof a.then==`function`?a.then(function(t){return n[e]=t===void 0?c.exports:t,delete r[e],n[e]}):(n[e]=a===void 0?c.exports:a,delete r[e],n[e])}).catch(function(t){throw delete r[e],a[e]=t,t})}function T(e){var r=t[e],i=E(e),o=y(),s=b(e,o);try{var u=r.deps.map(function(t){if(t===`exports`)return o;if(t===`require`)return i;if(t===`module`)return s;try{return S(t,e)}catch(n){throw l(e,t,n)}}),d=r.factory.apply(null,u);if(d&&typeof d.then==`function`)throw c(e,Error(`Module resolved asynchronously and cannot be syncRequired`));return n[e]=d===void 0?s.exports:d,n[e]}catch(t){throw a[e]=t,t}}function E(e){var r=function(r,i,a){if(Array.isArray(r))return x(r,i,a,e);var o=f(r,e);return o in n?n[o]:o in t?S(r,e):C(r,e)};return r.resolve=function(t){return f(t,e)},r.toUrl=function(t){return g(t,e)},r.sync=function(t){return S(t,e)},r}function D(e){if(e in i)return i[e];var t=g(e);return document.querySelector(`script[src="`+t+`"]`)?(i[e]=Promise.resolve(),i[e]):(i[e]=new Promise(function(n,r){var a=document.createElement(`script`);a.src=t,a.setAttribute(`data-amd-module-id`,e),a.async=!0,a.onload=function(){n()},a.onerror=function(){delete i[e],r(Error(`Failed to load script: `+t))},document.head.appendChild(a)}),i[e])}x.config=function(e){if(e.baseUrl&&(o=e.baseUrl),e.paths)for(var t in e.paths)Object.prototype.hasOwnProperty.call(e.paths,t)&&(s[t]=e.paths[t])},x.modules=t,x.resolved=n,x.errors=a,x.toUrl=g,x.sync=S,e.define=v,e.require=x,e.syncRequire=S})(),e.require.config({baseUrl:`./`,paths:{core:`useblocks-core.c589fcf1.js`}});

// PublicPath (script detection via document.currentScript)
if (!__useblocks__.publicPath) {
__useblocks__.publicPath = (function() {
  var rawPath = (function() {
    if (typeof document === 'undefined') {
      return './';
    }
    var scripts = document.getElementsByTagName('script');
    var currentScript = document.currentScript || scripts[scripts.length - 1];
    if (currentScript && currentScript.src) {
      return currentScript.src.substring(0, currentScript.src.lastIndexOf('/') + 1);
    }
    return './';
  })();
  if (!rawPath) {
    rawPath = './';
  }
  try {
    var normalizedPath = String(rawPath);
    if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(normalizedPath) || normalizedPath.indexOf('//') === 0) {
      return normalizedPath;
    }
    var baseUrl =
      typeof document !== 'undefined' && document.baseURI
        ? document.baseURI
        : (typeof window !== 'undefined' && window.location ? window.location.href : '');
    return baseUrl ? new URL(normalizedPath, baseUrl).href : normalizedPath;
  } catch (e) {
    return String(rawPath);
  }
})();
}

// assetUrl helper
if (!__useblocks__.assetUrl) {
  __useblocks__.assetUrl = function(fileName) {
    function toAbsoluteUrl(url) {
      try {
        var baseUrl =
          typeof document !== 'undefined' && document.baseURI
            ? document.baseURI
            : (typeof window !== 'undefined' && window.location ? window.location.href : '');
        return baseUrl ? new URL(String(url || ''), baseUrl).href : String(url || '');
      } catch (e) {
        return String(url || '');
      }
    }
    var rawFileName = String(fileName || '');
    if (!rawFileName) {
      return '';
    }
    if (/^(?:data:|blob:)/.test(rawFileName)) {
      return rawFileName;
    }
    if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(rawFileName) || rawFileName.indexOf('//') === 0 || rawFileName.charAt(0) === '/') {
      return toAbsoluteUrl(rawFileName);
    }
    var normalizedFileName = rawFileName.replace(/^\.\/+/, '').replace(/^\/+/, '');
    var normalizedMediaDir = "static/media".replace(/^\.\/+/, '').replace(/^\/+/, '').replace(/\/+$/, '');
    var relativePath = normalizedMediaDir && normalizedFileName.indexOf(normalizedMediaDir + '/') !== 0
      ? normalizedMediaDir + '/' + normalizedFileName
      : normalizedFileName;
    var publicPath = __useblocks__.publicPath || './';
    try {
      return new URL(relativePath, publicPath).href;
    } catch (e) {
      if (publicPath.slice(-1) !== '/') {
        publicPath += '/';
      }
      return toAbsoluteUrl(publicPath + relativePath);
    }
  };
}

(function() {
  "use strict";
  var ns = window["__useblocks__"] = window["__useblocks__"] || {};

// PublicPath (script detection via document.currentScript)
if (!__useblocks__.publicPath) {
__useblocks__.publicPath = (function() {
  var rawPath = (function() {
    if (typeof document === 'undefined') {
      return './';
    }
    var scripts = document.getElementsByTagName('script');
    var currentScript = document.currentScript || scripts[scripts.length - 1];
    if (currentScript && currentScript.src) {
      return currentScript.src.substring(0, currentScript.src.lastIndexOf('/') + 1);
    }
    return './';
  })();
  if (!rawPath) {
    rawPath = './';
  }
  try {
    var normalizedPath = String(rawPath);
    if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(normalizedPath) || normalizedPath.indexOf('//') === 0) {
      return normalizedPath;
    }
    var baseUrl =
      typeof document !== 'undefined' && document.baseURI
        ? document.baseURI
        : (typeof window !== 'undefined' && window.location ? window.location.href : '');
    return baseUrl ? new URL(normalizedPath, baseUrl).href : normalizedPath;
  } catch (e) {
    return String(rawPath);
  }
})();
}

// assetUrl helper
if (!__useblocks__.assetUrl) {
  __useblocks__.assetUrl = function(fileName) {
    function toAbsoluteUrl(url) {
      try {
        var baseUrl =
          typeof document !== 'undefined' && document.baseURI
            ? document.baseURI
            : (typeof window !== 'undefined' && window.location ? window.location.href : '');
        return baseUrl ? new URL(String(url || ''), baseUrl).href : String(url || '');
      } catch (e) {
        return String(url || '');
      }
    }
    var rawFileName = String(fileName || '');
    if (!rawFileName) {
      return '';
    }
    if (/^(?:data:|blob:)/.test(rawFileName)) {
      return rawFileName;
    }
    if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(rawFileName) || rawFileName.indexOf('//') === 0 || rawFileName.charAt(0) === '/') {
      return toAbsoluteUrl(rawFileName);
    }
    var normalizedFileName = rawFileName.replace(/^\.\/+/, '').replace(/^\/+/, '');
    var normalizedMediaDir = "static/media".replace(/^\.\/+/, '').replace(/^\/+/, '').replace(/\/+$/, '');
    var relativePath = normalizedMediaDir && normalizedFileName.indexOf(normalizedMediaDir + '/') !== 0
      ? normalizedMediaDir + '/' + normalizedFileName
      : normalizedFileName;
    var publicPath = __useblocks__.publicPath || './';
    try {
      return new URL(relativePath, publicPath).href;
    } catch (e) {
      if (publicPath.slice(-1) !== '/') {
        publicPath += '/';
      }
      return toAbsoluteUrl(publicPath + relativePath);
    }
  };
}

  var modules = ns.modules = Object.create(null);

  var runtimePromise = import("./runtime/index.js");
  var uiKitPromise = import("./ui-kit/index.js");

  modules["React"] = runtimePromise.then(function(m) { return m["React"]; });
  modules["ReactDom"] = runtimePromise.then(function(m) { return m["ReactDom"]; });
  modules["ReactDomClient"] = runtimePromise.then(function(m) { return m["ReactDomClient"]; });
  modules["ReactJsxRuntime"] = runtimePromise.then(function(m) { return m["ReactJsxRuntime"]; });
  modules["ReactJsxDevRuntime"] = runtimePromise.then(function(m) { return m["ReactJsxDevRuntime"]; });
  modules["PropTypes"] = runtimePromise.then(function(m) { return m["PropTypes"]; });
  modules["ReactRouterDom"] = runtimePromise.then(function(m) { return m["ReactRouterDom"]; });
  modules["Antd"] = runtimePromise.then(function(m) { return m["Antd"]; });
  modules["AntDesignIcons"] = runtimePromise.then(function(m) { return m["AntDesignIcons"]; });
  modules["AntDesignCssinjs"] = runtimePromise.then(function(m) { return m["AntDesignCssinjs"]; });
  modules["Classnames"] = runtimePromise.then(function(m) { return m["Classnames"]; });
  modules["Dayjs"] = runtimePromise.then(function(m) { return m["Dayjs"]; });
  modules["Uuid"] = runtimePromise.then(function(m) { return m["Uuid"]; });
  modules["UiKit"] = uiKitPromise.then(function(m) { return m["UiKit"] !== undefined ? m["UiKit"] : m; });

  var modulesReady = Promise.all([runtimePromise, uiKitPromise]).then(function(__parts) {
    var runtime = __parts[0] || Object.create(null);
    var merged = Object.create(null);
    for (var key in runtime) {
      if (Object.prototype.hasOwnProperty.call(runtime, key)) {
        merged[key] = runtime[key];
      }
    }
    var uiKitMod = __parts[1] || Object.create(null);
    merged["UiKit"] = uiKitMod["UiKit"] !== undefined ? uiKitMod["UiKit"] : uiKitMod;
    // Hydrate modules for sync UMD/globals externals (`ns.modules.Antd`, etc.).
    for (var __hydrateKey in merged) {
      if (Object.prototype.hasOwnProperty.call(merged, __hydrateKey)) {
        modules[__hydrateKey] = merged[__hydrateKey];
      }
    }
    return merged;
  });

  var _modules = modules;
  var _modulesPromise = modulesReady;

  var __prevPrefetch = typeof ns.prefetch === "function" ? ns.prefetch : undefined;
  ns.prefetch = function() {
    return modulesReady.then(function() {
      if (typeof __prevPrefetch === "function") {
        return __prevPrefetch.call(ns);
      }
      return undefined;
    });
  };

if (typeof ns.define === 'function') {
  var __interopWeakMap = typeof WeakMap !== 'undefined' ? new WeakMap() : null;
  function __toSharedEsModule(value) {
    if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
      return value;
    }
    if (value.__esModule) {
      return value;
    }
    if (__interopWeakMap) {
      var cached = __interopWeakMap.get(value);
      if (cached) {
        return cached;
      }
    }
    var wrapped = Object.create(null);
    Object.defineProperties(wrapped, {
      __esModule: { value: true },
      [Symbol.toStringTag]: { value: 'Module' },
    });
    var keys = Reflect.ownKeys(value);
    for (var i = 0; i < keys.length; i++) {
      var key = keys[i];
      if (key === '__esModule') {
        continue;
      }
      var descriptor = Object.getOwnPropertyDescriptor(value, key);
      if (descriptor) {
        Object.defineProperty(wrapped, key, descriptor);
      }
    }
    if (!Object.prototype.hasOwnProperty.call(wrapped, 'default')) {
      Object.defineProperty(wrapped, 'default', { enumerable: true, value: value, writable: false });
    }
    if (__interopWeakMap) {
      __interopWeakMap.set(value, wrapped);
    }
    return wrapped;
  }
    ns.define("react", [], function() {
      var value = _modules["React"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["React"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["React"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("useblocks/runtime/react", [], function() {
      var value = _modules["React"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["React"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["React"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("react-dom", [], function() {
      var value = _modules["ReactDom"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactDom"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactDom"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("useblocks/runtime/react-dom", [], function() {
      var value = _modules["ReactDom"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactDom"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactDom"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("react-dom/client", [], function() {
      var value = _modules["ReactDomClient"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactDomClient"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactDomClient"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("useblocks/runtime/react-dom/client", [], function() {
      var value = _modules["ReactDomClient"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactDomClient"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactDomClient"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("react/jsx-runtime", [], function() {
      var value = _modules["ReactJsxRuntime"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactJsxRuntime"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactJsxRuntime"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("useblocks/runtime/react/jsx-runtime", [], function() {
      var value = _modules["ReactJsxRuntime"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactJsxRuntime"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactJsxRuntime"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("react/jsx-dev-runtime", [], function() {
      var value = _modules["ReactJsxDevRuntime"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactJsxDevRuntime"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactJsxDevRuntime"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("useblocks/runtime/react/jsx-dev-runtime", [], function() {
      var value = _modules["ReactJsxDevRuntime"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactJsxDevRuntime"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactJsxDevRuntime"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("prop-types", [], function() {
      var value = _modules["PropTypes"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["PropTypes"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["PropTypes"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("useblocks/runtime/prop-types", [], function() {
      var value = _modules["PropTypes"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["PropTypes"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["PropTypes"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("react-router-dom", [], function() {
      var value = _modules["ReactRouterDom"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactRouterDom"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactRouterDom"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("useblocks/runtime/react-router-dom", [], function() {
      var value = _modules["ReactRouterDom"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactRouterDom"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["ReactRouterDom"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("antd", [], function() {
      var value = _modules["Antd"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["Antd"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["Antd"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("useblocks/runtime/antd", [], function() {
      var value = _modules["Antd"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["Antd"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["Antd"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("@ant-design/icons", [], function() {
      var value = _modules["AntDesignIcons"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["AntDesignIcons"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["AntDesignIcons"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("useblocks/runtime/@ant-design/icons", [], function() {
      var value = _modules["AntDesignIcons"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["AntDesignIcons"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["AntDesignIcons"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("@ant-design/cssinjs", [], function() {
      var value = _modules["AntDesignCssinjs"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["AntDesignCssinjs"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["AntDesignCssinjs"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("useblocks/runtime/@ant-design/cssinjs", [], function() {
      var value = _modules["AntDesignCssinjs"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["AntDesignCssinjs"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["AntDesignCssinjs"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("classnames", [], function() {
      var value = _modules["Classnames"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["Classnames"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["Classnames"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("useblocks/runtime/classnames", [], function() {
      var value = _modules["Classnames"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["Classnames"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["Classnames"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("dayjs", [], function() {
      var value = _modules["Dayjs"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["Dayjs"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["Dayjs"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("useblocks/runtime/dayjs", [], function() {
      var value = _modules["Dayjs"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["Dayjs"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["Dayjs"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("uuid", [], function() {
      var value = _modules["Uuid"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["Uuid"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["Uuid"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("useblocks/runtime/uuid", [], function() {
      var value = _modules["Uuid"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["Uuid"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["Uuid"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("useblocks-ui-kit", [], function() {
      var value = _modules["UiKit"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["UiKit"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["UiKit"];
          return __toSharedEsModule(originalValue);
      });
    });
    ns.define("useblocks/ui-kit", [], function() {
      var value = _modules["UiKit"];
      if (value && typeof value.then === 'function') {
        return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["UiKit"];
          return __toSharedEsModule(originalValue);
        });
      }
      if (value !== undefined) {
        return __toSharedEsModule(value);
      }
      return _modulesPromise.then(function(barrel) {
          var originalValue = barrel["UiKit"];
          return __toSharedEsModule(originalValue);
      });
    });
}

  globalThis.__SHARED_RUNTIME_INIT_SENTINEL__ = "@shared-runtime:init-complete";
})();


__useblocks__.define(`useblocks.js`,[`require`,`exports`,`module`],function(e,t,n){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var r=Object.defineProperty,i=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),a=(e,t)=>{let n={};for(var i in e)r(n,i,{get:e[i],enumerable:!0});return t||r(n,Symbol.toStringTag,{value:`Module`}),n},o=class e{_inner;_isDisposed=!1;constructor(e=[]){this._inner=e}addDisposable(t){return this._inner.push(t),t instanceof e&&t.addDispose(()=>{this.removeDisposable(t)}),t}addDispose(e){this.addDisposable({dispose:e})}removeDisposable(e){let t=this._inner.indexOf(e);t>=0&&this._inner.splice(t,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(let e of[...this._inner])e.dispose()}}};function s(e){return`service_container_${e}`}var c=class e extends o{_parent;_injectCallbacks=[];_injections=Object.create(null);_runCallbacks(e){this._injectCallbacks.forEach(t=>t(e))}constructor(e=null){super(),this._parent=e,e&&this.addDisposable(e.onInject(e=>this._runCallbacks(e)))}onInject=e=>(this._injectCallbacks.push(e),{dispose:()=>{let t=this._injectCallbacks.indexOf(e);t>=0&&this._injectCallbacks.splice(t,1)}});inject(e,t){this._injections[e]=()=>t,this._runCallbacks(e)}injectFactory(e,t,n){let r=this._injections[e],i=typeof r==`function`?r():r,a=this._injections[e]=()=>(i=t(this,i),i);n&&a(),this._runCallbacks(e)}_find(e,t=!0){return this._injections[e]||t&&this._parent?._find(e)}_onInject(e,t,n=new o){return n.addDisposable(this.onInject(r=>{e===r&&(n.dispose(),t(this.getInstance(r)))})),this._parent&&n.addDisposable(this._parent._onInject(e,t,n)),this.addDisposable(n),n}getInstance(e,t=!0){let n=this._find(e,t);if(typeof n==`function`)return n()}getOrCreateInstance(e,t){let n=this._find(e);if(typeof n==`function`)return n();let r=t(this);return this.inject(e,r),r}getInstanceAsync(e){let t=this._find(e);return typeof t==`function`?Promise.resolve(t()):new Promise(t=>this._onInject(e,()=>t(this.getInstance(e))))}addService(e,t){let n=s(e);this.injectFactory(n,(e,n=[])=>n.indexOf(t)<0?[...n,t]:n);let r=new o;return r.addDispose(()=>{this.injectFactory(n,(e,n=[])=>n.filter(e=>e!==t))}),r}addServiceFactory(e,t,n){let r=s(e),i;this.injectFactory(r,(e,n=[])=>(i=t(e,i),i===void 0?n:n.indexOf(i)<0?[...n,i]:n),n);let a=new o;return a.addDispose(()=>{this.injectFactory(r,(e,t=[])=>i===void 0?t:t.filter(e=>e!==i))}),a}getServices(e){let t=s(e);return[...this.getInstance(t,!1)||[],...this._parent?.getServices(e)||[]]}createChild(){return new e(this)}getOrCreateIsolatedContainer(t){return this.getOrCreateInstance(t,()=>{let n=this._parent?.getOrCreateIsolatedContainer(t);return new e(n)})}dispose(){this._injections=Object.create(null)}};function l(e){return e.startsWith(`__`)?e:`__${e}__`}function u(e){if(typeof globalThis>`u`)throw Error(`[di] globalThis is required for namespace container access.`);let t=l(e),n=globalThis;return n[t]??={}}function ee(e){return typeof e==`object`&&!!e&&typeof e.inject==`function`&&typeof e.getInstance==`function`}function te(e){return l(e||`useblocks`)}function d(e){let t=u(te(e));if(ee(t.container))return t.container;let n=new c(null);return t.container=n,n}function ne(e){return d(e)}function re(){let e=new Date().getTime(),t=typeof performance<`u`&&performance.now&&performance.now()*1e3||0;return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,function(n){let r=Math.random()*16;return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),(n===`x`?r:r&3|8).toString(16)})}function ie(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():re()}function f(e=ie()){return e}function p(){return`umd`}function m(e){if(typeof globalThis>`u`)return;let t=p(),n=globalThis[e]??{};globalThis[e]=n;let r=n.__diagnostics??={},i=r.diModuleEval??={evalCount:0,records:[],duplicateWarned:!1};i.records.push({buildSource:t,timestamp:Date.now(),stack:Error().stack}),i.evalCount+=1,!(i.evalCount<=1||i.duplicateWarned)&&(i.duplicateWarned=!0,i.evalCount,i.records)}function h(){return`__useblocks__`}function g(e,t){if(m(t),typeof globalThis>`u`)return e;let n=p(),r=globalThis,i=r[t]=r[t]||{},a=i.__diagnostics=i.__diagnostics||{},o=a.dependencyResolver=a.dependencyResolver||{entries:[],warnings:[]},s={container:e,source:`packages/runtime-core/di/index.ts`,buildSource:n,timestamp:Date.now(),stack:Error().stack};if(o.entries.push(s),o.entries.length>1){let e=o.entries[0];if(o.entries.some(t=>t.container!==e.container)&&!o.duplicateWarningShown){o.duplicateWarningShown=!0;let e={message:`[di] Multiple DependencyResolver instances detected on namespace`,namespaceKey:t,buildSource:n,entries:o.entries};o.warnings.push(e)}}return e}var _;function v(){if(_)return _;let e=h();return _=g(d(e),e),_}new Proxy({},{get(e,t,n){let r=v(),i=Reflect.get(r,t,n);return typeof i==`function`?i.bind(r):i}});var y=class e extends Error{code;httpStatus;details;constructor(t,n,r,i){super(t),this.name=`FileManagerApiError`,this.code=n,this.httpStatus=r,this.details=i;let a=Error.captureStackTrace;a&&a(this,e)}};function b(e,t=`BackendError`){switch(e){case 400:return`ValidationError`;case 401:return`AuthenticationFailed`;case 403:return`AuthorizationFailed`;case 404:return`FileNotFound`;case 413:return`PayloadTooLarge`;case 415:return`UnsupportedMediaType`;case 429:return`RateLimitExceeded`;case 500:return`BackendError`;case 503:return`ServiceUnavailable`;case 504:return`Timeout`;default:return t}}var ae=class{_plugins=new Map;_listeners=new Map;_getOrCreateEntry(e){let t=this._plugins.get(e);return t||(t={overrides:[]},this._plugins.set(e,t)),t}_applyOverrides(e,t){let n=this._plugins.get(e);if(n?.overrides)for(let e of n.overrides)t=e(t)||t;return t}_notifyListeners(e,t){let n=this._listeners.get(e);if(!n||n.length===0)return;for(let e of n)try{e.callback(t)}catch{}let r=n.filter(e=>!e.once);r.length>0?this._listeners.set(e,r):this._listeners.delete(e)}get(e){let t=this._plugins.get(e);if(t?.ctor)return this._applyOverrides(e,t.ctor)}async getAsync(e){let t=this._plugins.get(e);if(t?.ctor)return this._applyOverrides(e,t.ctor);if(t?.loading){let n=await t.loading;return this._applyOverrides(e,n)}if(t?.factory){let n=Promise.resolve(t.factory()).then(n=>(t.ctor=n,t.loading=void 0,this._notifyListeners(e,n),n));t.loading=n;let r=await n;return this._applyOverrides(e,r)}return new Promise(t=>{this.on(e,n=>t(this._applyOverrides(e,n)))})}add(e,t){let n=this._getOrCreateEntry(e);n.ctor=t,this._notifyListeners(e,t)}addAll(e){for(let t of Object.keys(e)){let n=e[t];n!==void 0&&this.add(t,n)}}addAsync(e,t){let n=this._getOrCreateEntry(e);return n.factory=t,{dispose:()=>{n.ctor||(n.factory=void 0)}}}has(e){let t=this._plugins.get(e);return!!(t?.ctor||t?.factory)}isLoaded(e){return!!this._plugins.get(e)?.ctor}override(e,t){let n=this._getOrCreateEntry(e);return n.overrides.push(t),{dispose:()=>{let e=n.overrides.indexOf(t);e>=0&&n.overrides.splice(e,1)}}}on(e,t){let n=this.get(e);n&&t(n);let r=this._listeners.get(e);r||(r=[],this._listeners.set(e,r));let i={callback:t,once:!1};return r.push(i),{dispose:()=>this._removeListener(e,t)}}once(e,t){let n=this.get(e);if(n)return t(n),{dispose:()=>{}};let r=this._listeners.get(e);r||(r=[],this._listeners.set(e,r));let i={callback:t,once:!0};return r.push(i),{dispose:()=>this._removeListener(e,t)}}off(e,t){this._removeListener(e,t)}_removeListener(e,t){let n=this._listeners.get(e);if(n){let r=n.findIndex(e=>e.callback===t);r>=0&&n.splice(r,1),n.length===0&&this._listeners.delete(e)}}keys(){return Array.from(this._plugins.keys())}forContext(){let e=this;return{add(t,n){e.add(t,n)}}}},oe=class{resolveRegistry;constructor(e){this.resolveRegistry=e}target(){return this.resolveRegistry()}get(e){return this.target().get(e)}getAsync(e){return this.target().getAsync(e)}add(e,t){return this.target().add(e,t)}addAll(e){return this.target().addAll(e)}addAsync(e,t){return this.target().addAsync(e,t)}has(e){return this.target().has(e)}isLoaded(e){return this.target().isLoaded(e)}override(e,t){return this.target().override(e,t)}on(e,t){return this.target().on(e,t)}once(e,t){return this.target().once(e,t)}off(e,t){return this.target().off(e,t)}keys(){return this.target().keys()}forContext(){return this.target().forContext()}},x=null,se=`core`;function ce(){return typeof __useblocks__?.require==`function`?new Promise((e,t)=>{__useblocks__.require([se],t=>e(t),e=>t(e instanceof Error?e:Error(`[loadEngine] Failed to require core module`)))}):Promise.reject(Error(`[loadEngine] AMD loader is unavailable`))}function S(){return x||=ce(),x}var C=null,w=null;async function le(e){typeof e?.prefetch==`function`&&await e.prefetch()}function T(){return C||=S().then(()=>{}),C}function E(e){return w||=le(e),w}function D(e){return Promise.all([T(),E(e)]).then(()=>{})}function O(e){let t=e?.startupPrefetchMode;return t===`eager`||t===`idle`||t===`manual`||t===`off`?t:`eager`}function k(e){Promise.resolve().then(()=>D(e)).catch(()=>{})}function A(e){Promise.resolve().then(()=>E(e)).catch(()=>{})}function j(e){let t=O(e);if(t===`eager`)k(e);else if(t===`idle`){let t=window.requestIdleCallback;typeof t==`function`?t(()=>k(e),{timeout:1500}):setTimeout(()=>k(e),0)}}var M=`PluginRegistry`;function N(e=ne()){return e.getOrCreateInstance(M,()=>new ae)}var P=new oe(()=>N()),F=new WeakMap,I=`data-useblocks-config-styles`;function L(e){return typeof e==`string`?e.trim():``}function R(e,t){if(e.firstChild){e.insertBefore(t,e.firstChild);return}e.appendChild(t)}function z(e,t,n){if(!e||typeof document>`u`)return null;let r=L(t),i=F.get(e),a=n||e;if(!r)return i&&(i.remove(),F.delete(e)),null;if(i)return i.textContent!==r&&(i.textContent=r),(i.parentNode!==a||i!==a.firstChild)&&R(a,i),i;let o=document.createElement(`style`);return o.setAttribute(I,`true`),o.textContent=r,R(a,o),F.set(e,o),o}function B(e){if(!e)return;let t=F.get(e);t&&(t.remove(),F.delete(e))}function V(e,t){if(typeof e<`u`)if(typeof e==`string`){if(e=document.querySelector(e),e)return e;let n=t.addDisposable(new o);return new Promise((t,r)=>{let i=new MutationObserver(()=>{e=document.querySelector(e),e&&(n.dispose(),t(e))});i.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),n.addDisposable({dispose:()=>i.disconnect()})})}else return e;else return e}var H=new Map;function U(){return!1}var W=`
.blocks-app-initial-spinner-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blocks-app-initial-spinner {
  width: 28px;
  height: 28px;
  border: 4px solid rgb(231 212 228 / 100%);
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation_loader 1s linear infinite;
  will-change: transform;
  border-bottom-color: transparent;
}

@keyframes rotation_loader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}`;function ue(){return()=>{}}function de(e,t){if(!U()||!e||typeof document>`u`)return ue();e.querySelectorAll(`.blocks-app-initial-spinner-wrapper`).forEach(e=>{e.remove()});let n=document.createElement(`div`);n.classList.add(`blocks-app-initial-spinner-wrapper`);let r=document.createElement(`div`);r.classList.add(`blocks-app-initial-spinner`),n.appendChild(r);let i=document.createElement(`style`);i.setAttribute(t,`true`),i.textContent=W,document.head?.appendChild(i),e.appendChild(n);let a=!1;return()=>{a||(a=!0,n.remove(),i.remove())}}function G(e){return f(e)}G(`HANDLE_ATOM_INSERT`),G(`SETTINGS_PANEL_EVENT`),G(`MODAL_SHOW_EVENT`),G(`MODAL_CLOSE_EVENT`),G(`MODAL_UPDATE_EVENT`);var fe=i((e=>{var t={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},n=Object.assign,r={};function i(e,n,i){this.props=e,this.context=n,this.refs=r,this.updater=i||t}i.prototype.isReactComponent={},i.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},i.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function a(){}a.prototype=i.prototype;function o(e,n,i){this.props=e,this.context=n,this.refs=r,this.updater=i||t}var s=o.prototype=new a;s.constructor=o,n(s,i.prototype),s.isPureReactComponent=!0,Array.isArray}));i(((e,t)=>{t.exports=fe()}))();function K(e){return f(e)}var pe;(function(e){e.BEFORE_SAVE_EMAIL=K(),e.ON_SAVEBUTTON_CLICK_ID=K(),e.ON_NEXTBUTTON_CLICK_ID=K(),e.ON_PREVIOUSBUTTON_CLICK_ID=K(),e.ON_MODEL_CHANGE=K(),e.WILL_EMAIL_INIT_ID=K(),e.ON_EMAIL_INIT_ID=K(),e.ON_BLOCK_INIT_ID=K(),e.ON_CONTENT_CHANGED_ID=K(),e.ON_PREHEADER_CHANGED_ID=K(),e.ON_SUBJECT_CHANGED_ID=K(),e.ON_EMAIL_CHANGED_ID=K(),e.ON_BLOCK_CHANGED_ID=K(),e.ON_CHUNKS_LOADED=K(),e.ON_SEND_TESTEMAIL_ID=K(),e.ON_SEND_LIVEPREVIEW_ID=K(),e.ON_SHARE_ID=K(),e.ON_SHOW_PREVIEW_ID=K(),e.ON_EMAIL_CLONE_ID=K(),e.ON_SEND_EMAIL_MODAL_ID=K(),e.ON_NOTIFICATION=K(),e.READ_LOCALE=K(),e.ON_TRANSLATE_ID=K(),e.ON_CODE_VALIDATE_ID=K(),e.UPLOAD_EVENT_ID=K(),e.PROXY_URL_EVENT_ID=K(),e.FILE_PROXY_EVENT_ID=K(),e.ON_LIMIT_ID=K(),e.ON_GLOBAL_BLOCK_PROPAGATE_UPDATE_ID=K(),e.ON_BROWSER_EXTENSION_DETECTED_ID=K()})(pe||={}),K(`APP_LOAD_EVENT`),K(`CONFIG_CHANGED_EVENT`);function q(e){for(;e.endsWith(`/`);)e=e.slice(0,e.length-1);return/\/wp-json$/i.test(e)?e:`${e}/wp-json`}q(`https://app.useblocks.io/api`);var me;(function(e){let t=`https://racs.rest/v3`;function n(e,n){let r={method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},body:JSON.stringify(n)};return fetch(`${t}?resource=${e}&dataset=${document.location.hostname}`,r)}e.post=n;async function r(e,n=0){let r={method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},body:`{"filter":{},"limit":${n}}`};return await(await fetch(`${t}/get?resource=${e}&dataset=${document.location.hostname}`,r)).json()}e.getAll=r})(me||={});var J=new Map,Y=new WeakMap;function X(e){return q(String(e||``).trim()||`https://app.useblocks.io/api`)}async function he(e){if(!e.getAuthToken)return;let t=await e.getAuthToken(e.user,e.project,void 0);return t?`Bearer ${t}`:void 0}function ge(e){return async({baseUrl:t})=>{let n=X(t);if(!n)throw Error(`[Loader] appInit warmup requires baseUrl or REACT_APP_OPENAPI_BASE_URL`);let r=new Headers({Accept:`application/json`,"Content-Type":`application/x-www-form-urlencoded;charset=UTF-8`}),i=await he(e);i&&r.set(`authorization`,i);let a=await fetch(`${n}/app/v1/app_init`,{method:`POST`,headers:r,body:new URLSearchParams,credentials:`same-origin`});if(!a.ok)throw Error(`[Loader] appInit request failed: ${a.status} ${a.statusText}`);return a.json()}}function _e(e){return JSON.stringify({baseUrl:X(e.baseUrl)||``,project:e.project??``,userId:e.user?.id??``})}function ve(e){return async t=>{let n=_e(t),r=J.get(n);if(r)return r;let i=Promise.resolve(e(t)).catch(e=>{throw J.delete(n),e});return J.set(n,i),i}}function ye(e){if(e.standaloneKey)return e;let t=e.appInit||ge(e),n=Y.get(t);return n||(n=ve(t),Y.set(t,n)),Promise.resolve(n({baseUrl:e.baseUrl,user:e.user,project:e.project,prevApp:void 0})).catch(e=>{}),{...e,appInit:n}}var Z=new WeakMap;function be(e){let t=null;return async(n,r,i)=>(t||=Promise.resolve(e(n,r,i)).finally(()=>{t=null}),t)}function xe(e){if(e.standaloneKey)return e;let t=e.getAuthToken;if(!t)return e;let n=Z.get(t);return n||(n=be(t),Z.set(t,n)),Promise.resolve(n(e.user,e.project,void 0)).catch(e=>{}),{...e,getAuthToken:n}}var Q=a({FileManagerApiError:()=>y}),Se=a({mapHttpStatusToErrorCode:()=>b});function Ce(e,t){return{...e,element:t}}function $(){return()=>{}}function we(e){let t=e.element;return!t||typeof t==`string`||typeof document>`u`?$():(z(t,e.config?.styles,t),()=>{B(t)})}function Te(e){if(!U()||e.initialSpinner===!1||typeof document>`u`)return{options:e,cleanup:$()};let t=e.element;if(!t||typeof t==`string`)return{options:e,cleanup:$()};t.querySelectorAll(`.blocks-app-initial-spinner-wrapper`).forEach(e=>{e.remove()});let n=de(t,`data-useblocks`),r=e.handleChunkLoaded;return{options:{...e,handleChunkLoaded:()=>{n(),r?.()}},cleanup:n}}function Ee(e){return e?.length?e.some(e=>Array.isArray(e)?!1:!!(e&&typeof e==`object`&&`url`in e)):!1}var De=`1.1.6`;async function Oe(e){await D(typeof __useblocks__<`u`?__useblocks__:void 0)}async function ke(e){let t=new o,n=await V(e.element,t);t.dispose();let r=ye(xe(Ce(e,n)));if(n){let e=H.get(n);if(e)try{let t=await e;if(t.getElement()===n)return t.reset(r)}catch{H.get(n)===e&&H.delete(n)}}let i=we(r),a=Te(r),s=a.options;await T();let c=typeof __useblocks__<`u`?__useblocks__:void 0;Ee(s.plugins)?await E(c):A(c);let l=S().then(e=>e.init(s));n&&H.set(n,l);try{let e=await l;return n&&H.set(n,e),e}catch(e){throw i(),a.cleanup(),n&&H.get(n)===l&&H.delete(n),e}}async function Ae(e){return(await S()).parseAMP(e)}typeof window<`u`&&j(typeof __useblocks__<`u`?__useblocks__:void 0),Object.defineProperty(t,"errors",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(t,"helpers",{enumerable:!0,get:function(){return Se}}),t.init=ke,t.parseAMP=Ae,t.pluginRegistry=P,t.preload=Oe,t.version=De});

  // Возвращаем API из entry модуля
  return __useblocks__.syncRequire("useblocks.js");
});