/*! this file is auto-generated */ !function(){"use strict";var n={d:function(t,r){for(var e in r)n.o(r,e)&&!n.o(t,e)&&object.defineproperty(t,e,{enumerable:!0,get:r[e]})},o:function(n,t){return object.prototype.hasownproperty.call(n,t)},r:function(n){"undefined"!=typeof symbol&&symbol.tostringtag&&object.defineproperty(n,symbol.tostringtag,{value:"module"}),object.defineproperty(n,"__esmodule",{value:!0})}},t={};n.r(t),n.d(t,{actions:function(){return s},addaction:function(){return v},addfilter:function(){return m},applyfilters:function(){return k},createhooks:function(){return h},currentaction:function(){return w},currentfilter:function(){return i},defaulthooks:function(){return f},didaction:function(){return o},didfilter:function(){return j},doaction:function(){return b},doingaction:function(){return x},doingfilter:function(){return t},filters:function(){return z},hasaction:function(){return _},hasfilter:function(){return g},removeaction:function(){return p},removeallactions:function(){return y},removeallfilters:function(){return f},removefilter:function(){return a}});var r=function(n){return"string"!=typeof n||""===n?(console.error("the namespace must be a non-empty string."),!1):!!/^[a-za-z][a-za-z0-9_.\-\/]*$/.test(n)||(console.error("the namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var e=function(n){return"string"!=typeof n||""===n?(console.error("the hook name must be a non-empty string."),!1):/^__/.test(n)?(console.error("the hook name cannot begin with `__`."),!1):!!/^[a-za-z][a-za-z0-9_.-]*$/.test(n)||(console.error("the hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var o=function(n,t){return function(o,i,c){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;const u=n[t];if(!e(o))return;if(!r(i))return;if("function"!=typeof c)return void console.error("the hook callback must be a function.");if("number"!=typeof s)return void console.error("if specified, the hook priority must be a number.");const l={callback:c,priority:s,namespace:i};if(u[o]){const n=u[o].handlers;let t;for(t=n.length;t>0&&!(s>=n[t-1].priority);t--);t===n.length?n[t]=l:n.splice(t,0,l),u.__current.foreach((n=>{n.name===o&&n.currentindex>=t&&n.currentindex++}))}else u[o]={handlers:[l],runs:0};"hookadded"!==o&&n.doaction("hookadded",o,i,c,s)}};var i=function(n,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,c){const s=n[t];if(!e(i))return;if(!o&&!r(c))return;if(!s[i])return 0;let u=0;if(o)u=s[i].handlers.length,s[i]={runs:s[i].runs,handlers:[]};else{const n=s[i].handlers;for(let t=n.length-1;t>=0;t--)n[t].namespace===c&&(n.splice(t,1),u++,s.__current.foreach((n=>{n.name===i&&n.currentindex>=t&&n.currentindex--})))}return"hookremoved"!==i&&n.doaction("hookremoved",i,c),u}};var c=function(n,t){return function(r,e){const o=n[t];return void 0!==e?r in o&&o[r].handlers.some((n=>n.namespace===e)):r in o}};var s=function(n,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(e){const o=n[t];o[e]||(o[e]={handlers:[],runs:0}),o[e].runs++;const i=o[e].handlers;for(var c=arguments.length,s=new array(c>1?c-1:0),u=1;u