HEX
Server: nginx/1.28.1
System: Linux VM-0-12-opencloudos 6.6.117-45.oc9.x86_64 #1 SMP Thu Dec 4 10:26:39 CST 2025 x86_64
User: www (1000)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.waciwang.com/wp-content/plugins/gutenberg/build/scripts/private-apis/index.js
"use strict";
var wp;
(wp ||= {}).privateApis = (() => {
  var __defProp = Object.defineProperty;
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  var __getOwnPropNames = Object.getOwnPropertyNames;
  var __hasOwnProp = Object.prototype.hasOwnProperty;
  var __export = (target, all) => {
    for (var name in all)
      __defProp(target, name, { get: all[name], enumerable: true });
  };
  var __copyProps = (to, from, except, desc) => {
    if (from && typeof from === "object" || typeof from === "function") {
      for (let key of __getOwnPropNames(from))
        if (!__hasOwnProp.call(to, key) && key !== except)
          __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
    }
    return to;
  };
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

  // packages/private-apis/build-module/index.mjs
  var index_exports = {};
  __export(index_exports, {
    __dangerousOptInToUnstableAPIsOnlyForCoreModules: () => __dangerousOptInToUnstableAPIsOnlyForCoreModules
  });

  // packages/private-apis/build-module/implementation.mjs
  var CORE_MODULES_USING_PRIVATE_APIS = [
    "@wordpress/block-directory",
    "@wordpress/block-editor",
    "@wordpress/block-library",
    "@wordpress/blocks",
    "@wordpress/boot",
    "@wordpress/commands",
    "@wordpress/workflows",
    "@wordpress/components",
    "@wordpress/core-commands",
    "@wordpress/core-data",
    "@wordpress/customize-widgets",
    "@wordpress/data",
    "@wordpress/edit-post",
    "@wordpress/edit-site",
    "@wordpress/edit-widgets",
    "@wordpress/editor",
    "@wordpress/font-list-route",
    "@wordpress/format-library",
    "@wordpress/patterns",
    "@wordpress/preferences",
    "@wordpress/reusable-blocks",
    "@wordpress/route",
    "@wordpress/router",
    "@wordpress/routes",
    "@wordpress/sync",
    "@wordpress/theme",
    "@wordpress/dataviews",
    "@wordpress/fields",
    "@wordpress/lazy-editor",
    "@wordpress/media-utils",
    "@wordpress/upload-media",
    "@wordpress/global-styles-ui"
  ];
  var requiredConsent = "I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.";
  var __dangerousOptInToUnstableAPIsOnlyForCoreModules = (consent, moduleName) => {
    if (!CORE_MODULES_USING_PRIVATE_APIS.includes(moduleName)) {
      throw new Error(
        `You tried to opt-in to unstable APIs as module "${moduleName}". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`
      );
    }
    if (consent !== requiredConsent) {
      throw new Error(
        `You tried to opt-in to unstable APIs without confirming you know the consequences. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on the next WordPress release.`
      );
    }
    return {
      lock,
      unlock
    };
  };
  function lock(object, privateData) {
    if (!object) {
      throw new Error("Cannot lock an undefined object.");
    }
    const _object = object;
    if (!(__private in _object)) {
      _object[__private] = {};
    }
    lockedData.set(_object[__private], privateData);
  }
  function unlock(object) {
    if (!object) {
      throw new Error("Cannot unlock an undefined object.");
    }
    const _object = object;
    if (!(__private in _object)) {
      throw new Error(
        "Cannot unlock an object that was not locked before. "
      );
    }
    return lockedData.get(_object[__private]);
  }
  var lockedData = /* @__PURE__ */ new WeakMap();
  var __private = /* @__PURE__ */ Symbol("Private API ID");
  return __toCommonJS(index_exports);
})();
//# sourceMappingURL=index.js.map