diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..ed896bd --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,8 @@ +# These owners will be the default owners for everything in the repo. Unless a later match takes precedence, @10up/open-source-practice, as primary maintainers will be requested for review when someone opens a Pull Request. +* @10up/open-source-practice + +# GitHub and WordPress.org specifics +/.github/ @jeffpaul +/.wordpress-org/ @jeffpaul +CODE_OF_CONDUCT.md @jeffpaul +LICENSE.md @jeffpaul diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 0e72a00..0702800 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -16,5 +16,9 @@ jobs: steps: - name: 'Checkout Repository' uses: actions/checkout@v3 - - name: 'Dependency Review' - uses: actions/dependency-review-action@v1 + - name: Dependency Review + uses: actions/dependency-review-action@v3 + with: + license-check: true + vulnerability-check: false + config-file: 10up/.github/.github/dependency-review-config.yml@trunk diff --git a/.gitignore b/.gitignore index a372113..1e5b55c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ node_modules npm-debug.log +dist/ # Mac OSX .DS_Store diff --git a/CHANGELOG.md b/CHANGELOG.md index 496dc51..3ccb4d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,25 @@ All notable changes to this project will be documented in this file, per [the Ke ## [Unreleased] - TBD +## [1.1.0] - 2023-06-21 +### Added +- `View element` link to highlight and auto-scroll to the insecure element (props [@cadic](https://github.com/cadic), [@peterwilsoncc](https://github.com/peterwilsoncc), [@psorensen](https://github.com/psorensen), [@adamsilverstein](https://github.com/adamsilverstein), [@dkotter](https://github.com/dkotter) via [#73](https://github.com/10up/insecure-content-warning/pull/73)). + +### Changed +- Bump WordPress "tested up to" version 6.2 (props [@Sidsector9](https://github.com/Sidsector9), [@iamdharmesh](https://github.com/iamdharmesh) via [#117](hthttps://github.com/10up/insecure-content-warning/pull/117)). +- Update the Dependency Review GitHub Action (props [@jeffpaul](https://github.com/jeffpaul), [@Sidsector9](https://github.com/Sidsector9) via [#122](https://github.com/10up/insecure-content-warning/pull/122)). + +### Fixed +- Update dependencies of javascript assets (props [@cadic](https://github.com/cadic), [@peterwilsoncc](https://github.com/peterwilsoncc), [@psorensen](https://github.com/psorensen), [@adamsilverstein](https://github.com/adamsilverstein), [@dkotter](https://github.com/dkotter) via [#73](https://github.com/10up/insecure-content-warning/pull/73)). +- Ensure that HTML blocks and converted classic editor blocks are correctly checked for insecure content (props [@nateconley](https://github.com/nateconley), [@Sidsector9](https://github.com/Sidsector9) via [#108](https://github.com/10up/insecure-content-warning/pull/108)). + +### Security +- Bump `simple-git` from 3.15.1 to 3.16.0 (props [@dependabot](https://github.com/apps/dependabot) via [#107](https://github.com/10up/insecure-content-warning/pull/107)). +- Bump `json5` from 1.0.1 to 1.0.2 (props [@dependabot](https://github.com/apps/dependabot) via [#110](https://github.com/10up/insecure-content-warning/pull/110)). +- Bump `ua-parser-js` from 1.0.2 to 1.0.33 and `browser-sync` from 2.27.11 to 2.28.1 (props [@dependabot](https://github.com/apps/dependabot) via [#111](https://github.com/10up/insecure-content-warning/pull/111)). +- Bump `engine.io` from 6.4.1 to 6.4.2 (props [@dependabot](https://github.com/apps/dependabot) via [#119](https://github.com/10up/insecure-content-warning/pull/119)). +- Bump `socket.io-parser` from 4.2.2 to 4.2.3 (props [@dependabot](https://github.com/apps/dependabot) via [#121](https://github.com/10up/insecure-content-warning/pull/121)). + ## [1.0.3] - 2023-01-09 **Note that this release bumps the WordPress minimum version from 5.3 to 5.7 and the PHP minimum version from 7.0 to 7.4.** @@ -51,6 +70,7 @@ All notable changes to this project will be documented in this file, per [the Ke - Initial public release! 🎉 [Unreleased]: https://github.com/10up/insecure-content-warning/compare/trunk...develop +[1.1.0]: https://github.com/10up/insecure-content-warning/compare/1.0.3...1.1.0 [1.0.3]: https://github.com/10up/insecure-content-warning/compare/1.0.2...1.0.3 [1.0.2]: https://github.com/10up/insecure-content-warning/compare/1.0.1...1.0.2 [1.0.1]: https://github.com/10up/insecure-content-warning/compare/1.0.0...1.0.1 diff --git a/CREDITS.md b/CREDITS.md index c445d94..2acb6ea 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -10,7 +10,7 @@ The following individuals are responsible for curating the list of issues, respo Thank you to all the people who have already contributed to this repository via bug reports, code, design, ideas, project management, translation, testing, etc. -[Peter Sorensen (@psorensen)](https://github.com/psorensen), [Curtis Loisel (@csloisel)](https://github.com/csloisel), [David Green (@davidrgreen)](https://github.com/davidrgreen), [Taylor Lovett (@tlovett1)](https://github.com/tlovett1), [Adam Silverstein (@adamsilverstein)](https://github.com/adamsilverstein), [William Patton (@pattonwebz)](https://github.com/pattonwebz), [Helen Hou-Sandi (@helen)](https://github.com/helen), [Zachary Brown (@TheLastCicada)](https://github.com/TheLastCicada), [Jeffrey Paul (@jeffpaul)](https://github.com/jeffpaul), [Darin Kotter (@dkotter)](https://github.com/dkotter), [Tung Du (@dinhtungdu)](https://github.com/dinhtungdu), [Thrijith Thankachan (@thrijith)](https://github.com/thrijith), [David Chandra Purnama (@turtlepod)](https://github.com/turtlepod), [Cassi Goozen (@cgoozen)](https://profiles.wordpress.org/cgoozen/), [Mohit Dadhich (@mohitwp)](https://github.com/mohitwp), [Peter Wilson (@peterwilsoncc)](https://github.com/peterwilsoncc), [Dharmesh Patel (@iamdharmesh)](https://github.com/iamdharmesh), [Siddharth Thevaril (@Sidsector9)](https://github.com/Sidsector9), [Vikram Moparthy (@vikrampm1)](https://github.com/vikrampm1), [Jayedul Kabir (@jayedul)](https://github.com/jayedul), [Max Lyuchin (@cadic)](https://github.com/cadic). +[Peter Sorensen (@psorensen)](https://github.com/psorensen), [Curtis Loisel (@csloisel)](https://github.com/csloisel), [David Green (@davidrgreen)](https://github.com/davidrgreen), [Taylor Lovett (@tlovett1)](https://github.com/tlovett1), [Adam Silverstein (@adamsilverstein)](https://github.com/adamsilverstein), [William Patton (@pattonwebz)](https://github.com/pattonwebz), [Helen Hou-Sandi (@helen)](https://github.com/helen), [Zachary Brown (@TheLastCicada)](https://github.com/TheLastCicada), [Jeffrey Paul (@jeffpaul)](https://github.com/jeffpaul), [Darin Kotter (@dkotter)](https://github.com/dkotter), [Tung Du (@dinhtungdu)](https://github.com/dinhtungdu), [Thrijith Thankachan (@thrijith)](https://github.com/thrijith), [David Chandra Purnama (@turtlepod)](https://github.com/turtlepod), [Cassi Goozen (@cgoozen)](https://profiles.wordpress.org/cgoozen/), [Mohit Dadhich (@mohitwp)](https://github.com/mohitwp), [Peter Wilson (@peterwilsoncc)](https://github.com/peterwilsoncc), [Dharmesh Patel (@iamdharmesh)](https://github.com/iamdharmesh), [Siddharth Thevaril (@Sidsector9)](https://github.com/Sidsector9), [Vikram Moparthy (@vikrampm1)](https://github.com/vikrampm1), [Jayedul Kabir (@jayedul)](https://github.com/jayedul), [Max Lyuchin (@cadic)](https://github.com/cadic), [Nate Conley (@nateconley)](https://github.com/nateconley), [GitHub Dependabot (@dependabot)](https://github.com/apps/dependabot). ## Libraries diff --git a/config/webpack.config.common.js b/config/webpack.config.common.js index a9bd463..c296322 100644 --- a/config/webpack.config.common.js +++ b/config/webpack.config.common.js @@ -6,6 +6,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const StyleLintPlugin = require('stylelint-webpack-plugin'); const WebpackBar = require('webpackbar'); const ImageminPlugin = require('imagemin-webpack-plugin').default; +const DependencyExtractorWebpackPlugin = require('@wordpress/dependency-extraction-webpack-plugin'); const isProduction = process.env.NODE_ENV === 'production'; @@ -47,7 +48,6 @@ module.exports = { // External objects. externals: { - jquery: 'jQuery', lodash: 'lodash', _: 'underscore', }, @@ -154,5 +154,15 @@ module.exports = { // Fancy WebpackBar. new WebpackBar(), + + new DependencyExtractorWebpackPlugin( { + injectPolyfill: false, + combineAssets: false, + requestToExternal( request ) { + if ( request === 'underscore' ) { + return '_'; + } + }, + } ), ], }; diff --git a/config/webpack.settings.js b/config/webpack.settings.js index 7aaf6f7..7a344df 100644 --- a/config/webpack.settings.js +++ b/config/webpack.settings.js @@ -7,6 +7,7 @@ module.exports = { // CSS files. 'admin-style': './src/css/admin.css', + 'editor-style': './src/css/editor.css', }, filename: { js: 'js/[name].js', diff --git a/dist/css/admin-style.css b/dist/css/admin-style.css deleted file mode 100644 index 184c8ca..0000000 --- a/dist/css/admin-style.css +++ /dev/null @@ -1,59 +0,0 @@ -:root { - --c-green: #228b22; - --c-red: #950e0d; -} - -.insecure-warnings-panel { - -ms-flex-wrap: wrap; - flex-wrap: wrap -} - -.insecure-warnings-panel p { - font-weight: bolder; - margin: 10px 0 0; - } - -.icw-list-item { - -webkit-hyphens: auto; - -ms-hyphens: auto; - hyphens: auto; - word-break: break-word; - word-wrap: break-word -} - -.icw-list-item .js-icw-check { - display: block; - margin: 5px 0; - } - -.icw-list-item .js-icw-error, - .icw-list-item .js-icw-fixed { - display: none; - font-weight: bolder; - } - -.icw-list-item .js-icw-error { - color: #950e0d; - color: var(--c-red); - } - -.icw-list-item .js-icw-fixed { - color: #228b22; - color: var(--c-green); - } - -.js-icw-spinner { - display: none; - padding-left: 4px; - vertical-align: bottom; -} - -.gutenberg-js-icw-check { - display: block; - height: auto; - margin: 5px 0; - padding: 5px; -} - - -/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3NzL2FkbWluLXN0eWxlLmNzcyIsInNvdXJjZXMiOlsid2VicGFjazovLy9hZG1pbi5jc3MiXSwic291cmNlc0NvbnRlbnQiOlsiOnJvb3Qge1xuXHQtLWMtZ3JlZW46ICMyMjhiMjI7XG5cdC0tYy1yZWQ6ICM5NTBlMGQ7XG59XG5cbi5pbnNlY3VyZS13YXJuaW5ncy1wYW5lbCB7XG5cdGZsZXgtd3JhcDogd3JhcDtcblxuXHQmIHAge1xuXHRcdGZvbnQtd2VpZ2h0OiBib2xkZXI7XG5cdFx0bWFyZ2luOiAxMHB4IDAgMDtcblx0fVxufVxuXG4uaWN3LWxpc3QtaXRlbSB7XG5cdGh5cGhlbnM6IGF1dG87XG5cdHdvcmQtYnJlYWs6IGJyZWFrLXdvcmQ7XG5cdHdvcmQtd3JhcDogYnJlYWstd29yZDtcblxuXHQmIC5qcy1pY3ctY2hlY2sge1xuXHRcdGRpc3BsYXk6IGJsb2NrO1xuXHRcdG1hcmdpbjogNXB4IDA7XG5cdH1cblxuXHQmIC5qcy1pY3ctZXJyb3IsXG5cdCYgLmpzLWljdy1maXhlZCB7XG5cdFx0ZGlzcGxheTogbm9uZTtcblx0XHRmb250LXdlaWdodDogYm9sZGVyO1xuXHR9XG5cblx0JiAuanMtaWN3LWVycm9yIHtcblx0XHRjb2xvcjogdmFyKC0tYy1yZWQpO1xuXHR9XG5cblx0JiAuanMtaWN3LWZpeGVkIHtcblx0XHRjb2xvcjogdmFyKC0tYy1ncmVlbik7XG5cdH1cbn1cblxuLmpzLWljdy1zcGlubmVyIHtcblx0ZGlzcGxheTogbm9uZTtcblx0cGFkZGluZy1sZWZ0OiA0cHg7XG5cdHZlcnRpY2FsLWFsaWduOiBib3R0b207XG59XG5cbi5ndXRlbmJlcmctanMtaWN3LWNoZWNrIHtcblx0ZGlzcGxheTogYmxvY2s7XG5cdGhlaWdodDogYXV0bztcblx0bWFyZ2luOiA1cHggMDtcblx0cGFkZGluZzogNXB4O1xufVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBTUE7QUFDQTtBQUxBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFvQkE7QUFDQTtBQW5CQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Iiwic291cmNlUm9vdCI6IiJ9*/ \ No newline at end of file diff --git a/dist/js/classic-editor.js b/dist/js/classic-editor.js deleted file mode 100644 index 180ed40..0000000 --- a/dist/js/classic-editor.js +++ /dev/null @@ -1 +0,0 @@ -!function(n){var t={};function r(e){if(t[e])return t[e].exports;var u=t[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},r.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,t){if(1&t&&(n=r(n)),8&t)return n;if(4&t&&"object"===typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var u in n)r.d(e,u,function(t){return n[t]}.bind(null,u));return e},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="",r(r.s=97)}([function(n,t,r){"use strict";(function(n){r.d(t,"e",(function(){return e})),r.d(t,"p",(function(){return u})),r.d(t,"a",(function(){return o})),r.d(t,"c",(function(){return i})),r.d(t,"d",(function(){return c})),r.d(t,"o",(function(){return f})),r.d(t,"q",(function(){return a})),r.d(t,"t",(function(){return l})),r.d(t,"i",(function(){return s})),r.d(t,"r",(function(){return p})),r.d(t,"s",(function(){return d})),r.d(t,"k",(function(){return v})),r.d(t,"m",(function(){return h})),r.d(t,"j",(function(){return g})),r.d(t,"l",(function(){return y})),r.d(t,"g",(function(){return b})),r.d(t,"f",(function(){return x})),r.d(t,"h",(function(){return m})),r.d(t,"n",(function(){return w})),r.d(t,"b",(function(){return j}));var e="1.12.1",u="object"==typeof self&&self.self===self&&self||"object"==typeof n&&n.global===n&&n||Function("return this")()||{},o=Array.prototype,i=Object.prototype,c="undefined"!==typeof Symbol?Symbol.prototype:null,f=o.push,a=o.slice,l=i.toString,s=i.hasOwnProperty,p="undefined"!==typeof ArrayBuffer,d="undefined"!==typeof DataView,v=Array.isArray,h=Object.keys,g=Object.create,y=p&&ArrayBuffer.isView,b=isNaN,x=isFinite,m=!{toString:null}.propertyIsEnumerable("toString"),w=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],j=Math.pow(2,53)-1}).call(this,r(25))},function(n,t,r){(function(t){var r=function(n){return n&&n.Math==Math&&n};n.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")()}).call(this,r(25))},function(n,t){n.exports=function(n){try{return!!n()}catch(n){return!0}}},function(n,t,r){var e=r(5);n.exports=function(n){if(!e(n))throw TypeError(String(n)+" is not an object");return n}},function(n,t,r){var e=r(2);n.exports=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(n,t){n.exports=function(n){return"object"===typeof n?null!==n:"function"===typeof n}},function(n,t,r){var e=r(1),u=r(36),o=r(7),i=r(37),c=r(43),f=r(67),a=u("wks"),l=e.Symbol,s=f?l:l&&l.withoutSetter||i;n.exports=function(n){return o(a,n)||(c&&o(l,n)?a[n]=l[n]:a[n]=s("Symbol."+n)),a[n]}},function(n,t){var r={}.hasOwnProperty;n.exports=function(n,t){return r.call(n,t)}},function(n,t,r){var e=r(4),u=r(30),o=r(3),i=r(29),c=Object.defineProperty;t.f=e?c:function(n,t,r){if(o(n),t=i(t,!0),o(r),u)try{return c(n,t,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(n[t]=r.value),n}},function(n,t){n.exports=function(n){if(void 0==n)throw TypeError("Can't call method on "+n);return n}},function(n,t,r){var e=r(4),u=r(8),o=r(27);n.exports=e?function(n,t,r){return u.f(n,t,o(1,r))}:function(n,t,r){return n[t]=r,n}},function(n,t){var r={}.toString;n.exports=function(n){return r.call(n).slice(8,-1)}},function(n,t,r){var e=r(1),u=r(10),o=r(7),i=r(19),c=r(32),f=r(34),a=f.get,l=f.enforce,s=String(String).split("String");(n.exports=function(n,t,r,c){var f=!!c&&!!c.unsafe,a=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof r&&("string"!=typeof t||o(r,"name")||u(r,"name",t),l(r).source=s.join("string"==typeof t?t:"")),n!==e?(f?!p&&n[t]&&(a=!0):delete n[t],a?n[t]=r:u(n,t,r)):a?n[t]=r:i(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&a(this).source||c(this)}))},function(n,t,r){var e=r(14),u=Math.min;n.exports=function(n){return n>0?u(e(n),9007199254740991):0}},function(n,t){var r=Math.ceil,e=Math.floor;n.exports=function(n){return isNaN(n=+n)?0:(n>0?e:r)(n)}},function(n,t,r){"use strict";var e=r(23),u=r(44),o=RegExp.prototype.exec,i=String.prototype.replace,c=o,f=function(){var n=/a/,t=/b*/g;return o.call(n,"a"),o.call(t,"a"),0!==n.lastIndex||0!==t.lastIndex}(),a=u.UNSUPPORTED_Y||u.BROKEN_CARET,l=void 0!==/()??/.exec("")[1];(f||l||a)&&(c=function(n){var t,r,u,c,s=this,p=a&&s.sticky,d=e.call(s),v=s.source,h=0,g=n;return p&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),g=String(n).slice(s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==n[s.lastIndex-1])&&(v="(?: "+v+")",g=" "+g,h++),r=new RegExp("^(?:"+v+")",d)),l&&(r=new RegExp("^"+v+"$(?!\\s)",d)),f&&(t=s.lastIndex),u=o.call(p?r:s,g),p?u?(u.input=u.input.slice(h),u[0]=u[0].slice(h),u.index=s.lastIndex,s.lastIndex+=u[0].length):s.lastIndex=0:f&&u&&(s.lastIndex=s.global?u.index+u[0].length:t),l&&u&&u.length>1&&i.call(u[0],r,(function(){for(c=1;c=0&&r<=u.b}}function N(n){return function(t){return null==t?void 0:t[n]}}var D=N("byteLength"),B=C(D),U=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var F=u.r?function(n){return u.l?Object(u.l)(n)&&!_(n):B(n)&&U.test(u.t.call(n))}:T(!1),$=N("length");function q(n,t){t=function(n){for(var t={},r=n.length,e=0;e":">",'"':""","'":"'","`":"`"},$n=Un(Fn),qn=Un(ln(Fn)),Ln=z.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Vn=/(.)^/,Wn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},zn=/\\|'|\r|\n|\u2028|\u2029/g;function Kn(n){return"\\"+Wn[n]}var Gn=/^\s*(\w|\$)+\s*$/;function Yn(n,t,r){!t&&r&&(t=r),t=hn({},t,z.templateSettings);var e=RegExp([(t.escape||Vn).source,(t.interpolate||Vn).source,(t.evaluate||Vn).source].join("|")+"|$","g"),u=0,o="__p+='";n.replace(e,(function(t,r,e,i,c){return o+=n.slice(u,c).replace(zn,Kn),u=c+t.length,r?o+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?o+="'+\n((__t=("+e+"))==null?'':__t)+\n'":i&&(o+="';\n"+i+"\n__p+='"),t})),o+="';\n";var i,c=t.variable;if(c){if(!Gn.test(c))throw new Error(c)}else o="with(obj||{}){\n"+o+"}\n",c="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{i=new Function(c,"_",o)}catch(n){throw n.source=o,n}var f=function(n){return i.call(this,n,z)};return f.source="function("+c+"){\n"+o+"}",f}function Qn(n,t,r){var e=(t=wn(t)).length;if(!e)return w(r)?r.call(n):r;for(var u=0;u1)ut(c,t-1,r,e),u=e.length;else for(var f=0,a=c.length;ft?(e&&(clearTimeout(e),e=null),c=a,i=n.apply(u,o),e||(u=o=null)):e||!1===r.trailing||(e=setTimeout(f,l)),i};return a.cancel=function(){clearTimeout(e),c=0,e=u=o=null},a}function lt(n,t,r){var e,u,i,c,f,a=function(){var o=Bn()-u;t>o?e=setTimeout(a,t-o):(e=null,r||(c=n.apply(f,i)),e||(i=f=null))},l=o((function(o){return f=this,i=o,u=Bn(),e||(e=setTimeout(a,t),r&&(c=n.apply(f,i))),c}));return l.cancel=function(){clearTimeout(e),e=i=f=null},l}function st(n,t){return tt(t,n)}function pt(n){return function(){return!n.apply(this,arguments)}}function dt(){var n=arguments,t=n.length-1;return function(){for(var r=t,e=n[t].apply(this,arguments);r--;)e=n[r].call(this,e);return e}}function vt(n,t){return function(){if(--n<1)return t.apply(this,arguments)}}function ht(n,t){var r;return function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=null),r}}var gt=tt(ht,2);function yt(n,t,r){t=In(t,r);for(var e,u=L(n),o=0,i=u.length;o0?0:u-1;o>=0&&o0?c=i>=0?i:Math.max(i+f,c):f=i>=0?Math.min(i+1,f):i+f+1;else if(r&&i&&f)return e[i=r(e,o)]===o?i:-1;if(o!==o)return(i=t(u.q.call(e,c,f),M))>=0?i+c:-1;for(i=n>0?c:f-1;i>=0&&i0?0:i-1;for(u||(e=t[o?o[c]:c],c+=n);c>=0&&c=3;return t(n,Rn(r,u,4),e,o)}}var kt=Pt(1),It=Pt(-1);function Mt(n,t,r){var e=[];return t=In(t,r),At(n,(function(n,r,u){t(n,r,u)&&e.push(n)})),e}function Tt(n,t,r){return Mt(n,pt(In(t)),r)}function Ct(n,t,r){t=In(t,r);for(var e=!et(n)&&L(n),u=(e||n).length,o=0;o=0}var Bt=o((function(n,t,r){var e,u;return w(t)?u=t:(t=wn(t),e=t.slice(0,-1),t=t[t.length-1]),Rt(n,(function(n){var o=u;if(!o){if(e&&e.length&&(n=jn(n,e)),null==n)return;o=n[t]}return null==o?o:o.apply(n,r)}))}));function Ut(n,t){return Rt(n,An(t))}function Ft(n,t){return Mt(n,_n(t))}function $t(n,t,r){var e,u,o=-1/0,i=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof n[0]&&null!=n)for(var c=0,f=(n=et(n)?n:fn(n)).length;co&&(o=e);else t=In(t,r),At(n,(function(n,r,e){((u=t(n,r,e))>i||u===-1/0&&o===-1/0)&&(o=n,i=u)}));return o}function qt(n,t,r){var e,u,o=1/0,i=1/0;if(null==t||"number"==typeof t&&"object"!=typeof n[0]&&null!=n)for(var c=0,f=(n=et(n)?n:fn(n)).length;ce||void 0===r)return 1;if(r1&&(e=Rn(e,t[1])),t=Q(n)):(e=Zt,t=ut(t,!1,!1),n=Object(n));for(var u=0,o=t.length;u1&&(r=t[1])):(t=Rt(ut(t,!1,!1),String),e=function(n,r){return!Dt(t,r)}),nr(n,e,r)}));function rr(n,t,r){return u.q.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))}function er(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[0]:rr(n,n.length-t)}function ur(n,t,r){return u.q.call(n,null==t||r?1:t)}function or(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[n.length-1]:ur(n,Math.max(0,n.length-t))}function ir(n){return Mt(n,Boolean)}function cr(n,t){return ut(n,t,!1)}var fr=o((function(n,t){return t=ut(t,!0,!0),Mt(n,(function(n){return!Dt(t,n)}))})),ar=o((function(n,t){return fr(n,t)}));function lr(n,t,r,e){a(t)||(e=r,r=t,t=!1),null!=r&&(r=In(r,e));for(var u=[],o=[],i=0,c=$(n);if;)e(c,r=t[f++])&&(~o(a,r)||a.push(r));return a}},function(n,t,r){var e=r(2),u=/#|\.prototype\./,o=function(n,t){var r=c[i(n)];return r==a||r!=f&&("function"==typeof t?e(t):!!t)},i=o.normalize=function(n){return String(n).replace(u,".").toLowerCase()},c=o.data={},f=o.NATIVE="N",a=o.POLYFILL="P";n.exports=o},function(n,t){n.exports=function(n){if("function"!=typeof n)throw TypeError(String(n)+" is not a function");return n}},function(n,t,r){var e=r(9);n.exports=function(n){return Object(e(n))}},function(n,t,r){var e=r(2);n.exports=!!Object.getOwnPropertySymbols&&!e((function(){return!String(Symbol())}))},function(n,t,r){"use strict";var e=r(2);function u(n,t){return RegExp(n,t)}t.UNSUPPORTED_Y=e((function(){var n=u("a","y");return n.lastIndex=2,null!=n.exec("abcd")})),t.BROKEN_CARET=e((function(){var n=u("^r","gy");return n.lastIndex=2,null!=n.exec("str")}))},function(n,t,r){"use strict";r(22);var e=r(12),u=r(2),o=r(6),i=r(15),c=r(10),f=o("species"),a=!u((function(){var n=/./;return n.exec=function(){var n=[];return n.groups={a:"7"},n},"7"!=="".replace(n,"$")})),l="$0"==="a".replace(/./,"$0"),s=o("replace"),p=!!/./[s]&&""===/./[s]("a","$0"),d=!u((function(){var n=/(?:)/,t=n.exec;n.exec=function(){return t.apply(this,arguments)};var r="ab".split(n);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));n.exports=function(n,t,r,s){var v=o(n),h=!u((function(){var t={};return t[v]=function(){return 7},7!=""[n](t)})),g=h&&!u((function(){var t=!1,r=/a/;return"split"===n&&((r={}).constructor={},r.constructor[f]=function(){return r},r.flags="",r[v]=/./[v]),r.exec=function(){return t=!0,null},r[v](""),!t}));if(!h||!g||"replace"===n&&(!a||!l||p)||"split"===n&&!d){var y=/./[v],b=r(v,""[n],(function(n,t,r,e,u){return t.exec===i?h&&!u?{done:!0,value:y.call(t,r,e)}:{done:!0,value:n.call(r,t,e)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),x=b[0],m=b[1];e(String.prototype,n,x),e(RegExp.prototype,v,2==t?function(n,t){return m.call(n,this,t)}:function(n){return m.call(n,this)})}s&&c(RegExp.prototype[v],"sham",!0)}},function(n,t,r){var e=r(5),u=r(11),o=r(6)("match");n.exports=function(n){var t;return e(n)&&(void 0!==(t=n[o])?!!t:"RegExp"==u(n))}},function(n,t,r){"use strict";var e=r(75).charAt;n.exports=function(n,t,r){return t+(r?e(n,t).length:1)}},function(n,t,r){var e=r(11),u=r(15);n.exports=function(n,t){var r=n.exec;if("function"===typeof r){var o=r.call(n,t);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==e(n))throw TypeError("RegExp#exec called on incompatible receiver");return u.call(n,t)}},function(n,t,r){"use strict";r.d(t,"a",(function(){return u}));r(22),r(73);var e=r(16),u=function(n){var t=[],r=0;return Object(e.b)(n,(function(n){if("object"!==Object(e.c)(n,"dataset.mceObject")){if(n.src&&"https://"!==n.src.substr(0,8)){r+=1;var u=n.src.split("?")[0];t.push(u)}if(n.srcset&&"https://"!==n.srcset.substr(0,8)){r+=1;var o=n.srcset.split("?")[0];t.push(o)}if("object"===n.nodeName.toLowerCase()&&n.data&&"http://"===n.data.substr(0,7)){r+=1;var i=n.data.split("?")[0];t.push(i)}}else if(n.dataset.mcePData&&"http://"===n.dataset.mcePData.substr(0,7)){r+=1;var c=n.dataset.mcePData.split("?")[0];t.push(c)}})),{insecureElementURLs:t,insecure:r}}},function(n,t,r){"use strict";r(76),r(22),r(81),r(82);var e=r(51),u=r.n(e),o=jQuery;t.a=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=n.replace("http://","https://"),r=new RegExp(n,"g");if(o("#wp-content-wrap").hasClass("html-active")){var e=document.getElementById("content"),i=e.value;e.value=i.replace(r,t)}else if("object"===("undefined"===typeof tinyMCE?"undefined":u()(tinyMCE)))if(tinyMCE.activeEditor){var c=tinyMCE.activeEditor.getContent(),f=c.replace(r,t);tinyMCE.activeEditor.setContent(f)}else{var a=wp.data.select("core/editor").getEditedPostAttribute("content"),l=a.replace(r,t);wp.data.dispatch("core/block-editor").resetBlocks(wp.blocks.parse(l)),setTimeout((function(){o(document).trigger("recheck-contents")}),1e3)}}},function(n,t){function r(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?n.exports=r=function(n){return typeof n}:n.exports=r=function(n){return n&&"function"===typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},r(t)}n.exports=r},function(n,t,r){var e=r(64),u=r(28),o=r(42),i=r(13),c=r(65),f=[].push,a=function(n){var t=1==n,r=2==n,a=3==n,l=4==n,s=6==n,p=5==n||s;return function(d,v,h,g){for(var y,b,x=o(d),m=u(x),w=e(v,h,3),j=i(m.length),S=0,E=g||c,O=t?E(d,j):r?E(d,0):void 0;j>S;S++)if((p||S in m)&&(b=w(y=m[S],S,x),n))if(t)O[S]=b;else if(b)switch(n){case 3:return!0;case 5:return y;case 6:return S;case 2:f.call(O,y)}else if(l)return!1;return s?-1:a||l?l:O}};n.exports={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6)}},function(n,t,r){var e=r(4),u=r(2),o=r(7),i=Object.defineProperty,c={},f=function(n){throw n};n.exports=function(n,t){if(o(c,n))return c[n];t||(t={});var r=[][n],a=!!o(t,"ACCESSORS")&&t.ACCESSORS,l=o(t,0)?t[0]:f,s=o(t,1)?t[1]:void 0;return c[n]=!!r&&!u((function(){if(a&&!e)return!0;var n={length:-1};a?i(n,1,{enumerable:!0,get:f}):n[1]=1,r.call(n,l,s)}))}},function(n,t,r){"use strict";var e=r(24),u=r(52).find,o=r(68),i=r(53),c=!0,f=i("find");"find"in[]&&Array(1).find((function(){c=!1})),e({target:"Array",proto:!0,forced:c||!f},{find:function(n){return u(this,n,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(n,t,r){"use strict";var e={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,o=u&&!e.call({1:2},1);t.f=o?function(n){var t=u(this,n);return!!t&&t.enumerable}:e},function(n,t,r){var e=r(1),u=r(32),o=e.WeakMap;n.exports="function"===typeof o&&/native code/.test(u(o))},function(n,t){n.exports=!1},function(n,t,r){var e=r(7),u=r(59),o=r(26),i=r(8);n.exports=function(n,t){for(var r=u(t),c=i.f,f=o.f,a=0;al;)if((c=f[l++])!=c)return!0}else for(;a>l;l++)if((n||l in f)&&f[l]===r)return n||l||0;return!n&&-1}};n.exports={includes:i(!0),indexOf:i(!1)}},function(n,t,r){var e=r(14),u=Math.max,o=Math.min;n.exports=function(n,t){var r=e(n);return r<0?u(r+t,0):o(r,t)}},function(n,t){t.f=Object.getOwnPropertySymbols},function(n,t,r){var e=r(41);n.exports=function(n,t,r){if(e(n),void 0===t)return n;switch(r){case 0:return function(){return n.call(t)};case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)}}return function(){return n.apply(t,arguments)}}},function(n,t,r){var e=r(5),u=r(66),o=r(6)("species");n.exports=function(n,t){var r;return u(n)&&("function"!=typeof(r=n.constructor)||r!==Array&&!u(r.prototype)?e(r)&&null===(r=r[o])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},function(n,t,r){var e=r(11);n.exports=Array.isArray||function(n){return"Array"==e(n)}},function(n,t,r){var e=r(43);n.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(n,t,r){var e=r(6),u=r(69),o=r(8),i=e("unscopables"),c=Array.prototype;void 0==c[i]&&o.f(c,i,{configurable:!0,value:u(null)}),n.exports=function(n){c[i][n]=!0}},function(n,t,r){var e,u=r(3),o=r(70),i=r(21),c=r(20),f=r(72),a=r(31),l=r(35),s=l("IE_PROTO"),p=function(){},d=function(n){return"