sirius-press/wp-includes/js/dist/wordcount.min.js
Silent Mode 1f173de885 WordPress 7.1.1
Pristine upstream, unpacked from the official wordpress.org tarball.

  https://wordpress.org/wordpress-7.1.1.tar.gz
  sha1   2a9d68474e8703aa3a66f80427b325e0941b6a1e  (published by wordpress.org)
  sha256 3996fee13448ef12e07e9f0c77db2f655ffa1b7cde71c80a4965d3bf1fb956b3

This branch carries nothing but upstream releases, one commit each, and is
never edited. It is the other side of the git-subtree merge that brings
security releases into SiriusPress/wordpress/ — see
SiriusPress/docs/upstream-merges.md.
2026-09-21 02:53:57 +02:00

9 lines
2.5 KiB
JavaScript

/*! This file is auto-generated */
(function() {
"use strict";var wp;(wp||={}).wordcount=(()=>{var s=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var b=(e,r)=>{for(var t in r)s(e,t,{get:r[t],enumerable:!0})},T=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of x(r))!R.call(e,o)&&o!==t&&s(e,o,{get:()=>r[o],enumerable:!(n=h(r,o))||n.enumerable});return e};var _=e=>T(s({},"__esModule",{value:!0}),e);var M={};b(M,{count:()=>L});var i={HTMLRegExp:/<\/?[a-z][^>]*?>/gi,HTMLcommentRegExp:/<!--[\s\S]*?-->/g,spaceRegExp:/&nbsp;|&#160;/gi,HTMLEntityRegExp:/&\S+?;/g,connectorRegExp:/--|\u2014/g,removeRegExp:new RegExp(["[","!-/:-@[-`{-~","\x80-\xBF\xD7\xF7","\u2000-\u2BFF","\u2E00-\u2E7F","]"].join(""),"g"),astralRegExp:/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wordsRegExp:/\S\s+/g,characters_excluding_spacesRegExp:/\S/g,characters_including_spacesRegExp:/[^\f\n\r\t\v\u00AD\u2028\u2029]/g,l10n:{type:"words"}};function a(e,r){return r.replace(e.HTMLRegExp,`
`)}function l(e,r){return r.replace(e.astralRegExp,"a")}function d(e,r){return r.replace(e.HTMLEntityRegExp,"")}function g(e,r){return r.replace(e.connectorRegExp," ")}function f(e,r){return r.replace(e.removeRegExp,"")}function c(e,r){return r.replace(e.HTMLcommentRegExp,"")}function p(e,r){return e.shortcodesRegExp?r.replace(e.shortcodesRegExp,`
`):r}function u(e,r){return r.replace(e.spaceRegExp," ")}function m(e,r){return r.replace(e.HTMLEntityRegExp,"a")}function C(e="words",r={}){let n={...{...i,...r},type:e,shortcodes:[]};return n.shortcodes=n.l10n?.shortcodes??[],n.shortcodes&&n.shortcodes.length&&(n.shortcodesRegExp=new RegExp("\\[\\/?(?:"+n.shortcodes.join("|")+")[^\\]]*?\\]","g")),n.type!=="characters_excluding_spaces"&&n.type!=="characters_including_spaces"&&(n.type="words"),n}function H(e,r,t){return e=[a.bind(null,t),c.bind(null,t),p.bind(null,t),u.bind(null,t),d.bind(null,t),g.bind(null,t),f.bind(null,t)].reduce((n,o)=>o(n),e),e=e+`
`,e.match(r)?.length??0}function E(e,r,t){return e=[a.bind(null,t),c.bind(null,t),p.bind(null,t),l.bind(null,t),u.bind(null,t),m.bind(null,t)].reduce((n,o)=>o(n),e),e=e+`
`,e.match(r)?.length??0}function L(e,r,t){let n=C(r,t),o;switch(n.type){case"words":return o=n.wordsRegExp,H(e,o,n);case"characters_including_spaces":return o=n.characters_including_spacesRegExp,E(e,o,n);case"characters_excluding_spaces":return o=n.characters_excluding_spacesRegExp,E(e,o,n);default:return 0}}return _(M);})();
(window.wp ||= {}).wordcount = wp.wordcount;
})();