!function(){var t={2864:function(t,e,r){"use strict";var n=r(28487),o=r(25592),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o(r):r}},25592:function(t,e,r){"use strict";var n=r(22698),o=r(28487),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||n.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),l=o("%Object.defineProperty%",!0),p=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(t){l=null}t.exports=function(t){var e=c(n,a,arguments);if(u&&l){var r=u(e,"length");r.configurable&&l(e,"length",{value:1+p(0,t.length-(arguments.length-1))})}return e};var f=function(){return c(n,i,arguments)};l?l(t.exports,"apply",{value:f}):t.exports.apply=f},59748:function(t){"use strict";var e="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,o="[object Function]";t.exports=function(t){var i=this;if("function"!=typeof i||n.call(i)!==o)throw new TypeError(e+i);for(var a,c=r.call(arguments,1),u=function(){if(this instanceof a){var e=i.apply(this,c.concat(r.call(arguments)));return Object(e)===e?e:this}return i.apply(t,c.concat(r.call(arguments)))},l=Math.max(0,i.length-c.length),p=[],f=0;f1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=x(t),n=r.length>0?r[0]:"",i=k("%"+n+"%",e),c=i.name,l=i.value,p=!1,f=i.alias;f&&(n=f[0],S(r,w([0,1],f)));for(var s=1,y=!0;s=r.length){var v=u(l,d);l=(y=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:l[d]}else y=b(l,d),l=l[d];y&&!p&&(h[c]=l)}}return l}},72770:function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(69578);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},69578:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},22786:function(t,e,r){"use strict";var n=r(22698);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},31741:function(t,e,r){var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=c&&u&&"function"==typeof u.get?u.get:null,p=c&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,s="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,g=Function.prototype.toString,m=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,O=RegExp.prototype.test,j=Array.prototype.concat,A=Array.prototype.join,P=Array.prototype.slice,E=Math.floor,x="function"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,R="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,N=Object.prototype.propertyIsEnumerable,M=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function _(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||O.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-E(-t):E(t);if(n!==t){var o=String(n),i=v.call(e,o.length+1);return b.call(o,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(e,r,"$&_")}var U=r(50189),D=U.custom,L=$(D)?D:null;function C(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function W(t){return b.call(String(t),/"/g,""")}function T(t){return!("[object Array]"!==G(t)||R&&"object"==typeof t&&R in t)}function B(t){return!("[object RegExp]"!==G(t)||R&&"object"==typeof t&&R in t)}function $(t){if(I)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!F)return!1;try{return F.call(t),!0}catch(t){}return!1}t.exports=function t(e,r,n,o){var c=r||{};if(H(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!H(c,"customInspect")||c.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=c.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return q(e,c);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var w=String(e);return h?_(e,w):w}if("bigint"==typeof e){var O=String(e)+"n";return h?_(e,O):O}var E=void 0===c.depth?5:c.depth;if(void 0===n&&(n=0),n>=E&&E>0&&"object"==typeof e)return T(e)?"[Array]":"[Object]";var k,D=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=A.call(Array(t.indent+1)," ")}return{base:r,prev:A.call(Array(e+1),r)}}(c,n);if(void 0===o)o=[];else if(V(o,e)>=0)return"[Circular]";function Q(e,r,i){if(r&&(o=P.call(o)).push(r),i){var a={depth:c.depth};return H(c,"quoteStyle")&&(a.quoteStyle=c.quoteStyle),t(e,a,n+1,o)}return t(e,c,n+1,o)}if("function"==typeof e&&!B(e)){var z=function(t){if(t.name)return t.name;var e=m.call(g.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),tt=Z(e,Q);return"[Function"+(z?": "+z:" (anonymous)")+"]"+(tt.length>0?" { "+A.call(tt,", ")+" }":"")}if($(e)){var et=I?b.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):F.call(e);return"object"!=typeof e||I?et:J(et)}if((k=e)&&"object"==typeof k&&("undefined"!=typeof HTMLElement&&k instanceof HTMLElement||"string"==typeof k.nodeName&&"function"==typeof k.getAttribute)){for(var rt="<"+S.call(String(e.nodeName)),nt=e.attributes||[],ot=0;ot"}if(T(e)){if(0===e.length)return"[]";var it=Z(e,Q);return D&&!function(t){for(var e=0;e=0)return!1;return!0}(it)?"["+Y(it,D)+"]":"[ "+A.call(it,", ")+" ]"}if(function(t){return!("[object Error]"!==G(t)||R&&"object"==typeof t&&R in t)}(e)){var at=Z(e,Q);return"cause"in Error.prototype||!("cause"in e)||N.call(e,"cause")?0===at.length?"["+String(e)+"]":"{ ["+String(e)+"] "+A.call(at,", ")+" }":"{ ["+String(e)+"] "+A.call(j.call("[cause]: "+Q(e.cause),at),", ")+" }"}if("object"==typeof e&&u){if(L&&"function"==typeof e[L]&&U)return U(e,{depth:E-n});if("symbol"!==u&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{l.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var ct=[];return a.call(e,(function(t,r){ct.push(Q(r,e,!0)+" => "+Q(t,e))})),X("Map",i.call(e),ct,D)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var ut=[];return p.call(e,(function(t){ut.push(Q(t,e))})),X("Set",l.call(e),ut,D)}if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{s.call(t,s)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return K("WeakMap");if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t,s);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return K("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(e))return K("WeakRef");if(function(t){return!("[object Number]"!==G(t)||R&&"object"==typeof t&&R in t)}(e))return J(Q(Number(e)));if(function(t){if(!t||"object"!=typeof t||!x)return!1;try{return x.call(t),!0}catch(t){}return!1}(e))return J(Q(x.call(e)));if(function(t){return!("[object Boolean]"!==G(t)||R&&"object"==typeof t&&R in t)}(e))return J(d.call(e));if(function(t){return!("[object String]"!==G(t)||R&&"object"==typeof t&&R in t)}(e))return J(Q(String(e)));if(!function(t){return!("[object Date]"!==G(t)||R&&"object"==typeof t&&R in t)}(e)&&!B(e)){var lt=Z(e,Q),pt=M?M(e)===Object.prototype:e instanceof Object||e.constructor===Object,ft=e instanceof Object?"":"null prototype",st=!pt&&R&&Object(e)===e&&R in e?v.call(G(e),8,-1):ft?"Object":"",yt=(pt||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(st||ft?"["+A.call(j.call([],st||[],ft||[]),": ")+"] ":"");return 0===lt.length?yt+"{}":D?yt+"{"+Y(lt,D)+"}":yt+"{ "+A.call(lt,", ")+" }"}return String(e)};var Q=Object.prototype.hasOwnProperty||function(t){return t in this};function H(t,e){return Q.call(t,e)}function G(t){return h.call(t)}function V(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return q(v.call(t,0,e.maxStringLength),e)+n}return C(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,z),"single",e)}function z(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function J(t){return"Object("+t+")"}function K(t){return t+" { ? }"}function X(t,e,r,n){return t+" ("+e+") {"+(n?Y(r,n):A.call(r,", "))+"}"}function Y(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+A.call(t,","+r)+"\n"+e.prev}function Z(t,e){var r=T(t),n=[];if(r){n.length=t.length;for(var o=0;o-1?t.split(","):t},l=function(t,e,r,n){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,c=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=c?i.slice(0,c.index):i,p=[];if(l){if(!r.plainObjects&&o.call(Object.prototype,l)&&!r.allowPrototypes)return;p.push(l)}for(var f=0;r.depth>0&&null!==(c=a.exec(i))&&f=0;--i){var a,c=t[i];if("[]"===c&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var l="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,p=parseInt(l,10);r.parseArrays||""!==l?!isNaN(p)&&c!==l&&String(p)===l&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(a=[])[p]=o:"__proto__"!==l&&(a[l]=o):a={0:o}}o=a}return o}(p,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var p="string"==typeof t?function(t,e){var r,l={},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,s=p.split(e.delimiter,f),y=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(g=i(g)?[g]:g),o.call(l,h)?l[h]=n.combine(l[h],g):l[h]=g}return l}(t,r):t,f=r.plainObjects?Object.create(null):{},s=Object.keys(p),y=0;y0?A.join(",")||null:void 0}];else if(u(s))M=s;else{var U=Object.keys(A);M=y?U.sort(y):U}for(var D=0;D0?w+b:""}},7173:function(t,e,r){"use strict";var n=r(38243),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),c=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var n=[],o=0;o=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===n.RFC1738&&(40===p||41===p)?u+=c.charAt(l):p<128?u+=a[p]:p<2048?u+=a[192|p>>6]+a[128|63&p]:p<55296||p>=57344?u+=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p]:(l+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(l)),u+=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],n=0;n=0&&(e.hash=t.substr(r),t=t.substr(0,r));var n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}(t):t,{state:e,key:Math.random().toString(36).substr(2,8)})}function b(t,e){return[{usr:t.state,key:t.key,idx:e},m(t)]}function w(t,e,r){return!g.length||(g.call({action:t,location:e,retry:r}),!1)}function S(t){c=t;var e=i();l=e[0],d=e[1],h.call({action:c,location:d})}function O(t){o.go(t)}return null==l&&(l=0,o.replaceState(p({},o.state,{idx:l}),"")),{get action(){return c},get location(){return d},createHref:m,push:function e(r,i){var a=t.Push,c=v(r,i);if(w(a,c,(function(){e(r,i)}))){var u=b(c,l+1),p=u[0],f=u[1];try{o.pushState(p,"",f)}catch(t){n.location.assign(f)}S(a)}},replace:function e(r,n){var i=t.Replace,a=v(r,n);if(w(i,a,(function(){e(r,n)}))){var c=b(a,l),u=c[0],p=c[1];o.replaceState(u,"",p),S(i)}},go:O,back:function(){O(-1)},forward:function(){O(1)},listen:function(t){return h.push(t)},block:function(t){var e=g.push(t);return 1===g.length&&n.addEventListener(f,s),function(){e(),g.length||n.removeEventListener(f,s)}}}}();d={get action(){return e.action},get location(){const{location:t}=e,r=(0,i.parse)(t.search.substring(1));let n;return r&&"string"==typeof r.path?n=r.path:r&&r.path&&"string"!=typeof r.path?(console.warn(`Query path parameter should be a string but instead was: ${r.path}, undefined behaviour may occur.`),n=r.path):n="/",{...t,pathname:n}},createHref:e.createHref,push:e.push,replace:e.replace,go:e.go,back:e.back,forward:e.forward,block:e.block,listen(t){return e.listen((()=>{t({action:this.action,location:this.location})}))}}}return d}function g(t,e){return e&&e.length?`${t}_${e}`:t}function m(t){const e=[];return t.forEach((t=>{if(t.subFilters){e.push((0,a.omit)(t,"subFilters"));const r=m(t.subFilters);e.push(...r)}else e.push(t)})),e}function v(t,e){return Object.keys(e).reduce(((r,n)=>{const o=e[n];if(o.rules){const e=o.rules.filter((e=>t.hasOwnProperty(g(n,e.value))));if(e.length)if(o.allowMultiple)e.forEach((e=>{t[g(n,e.value)].forEach((t=>{r.push({key:n,rule:e.value,value:t})}))}));else{const o=t[g(n,e[0].value)];r.push({key:n,rule:e[0].value,value:o})}}else t[n]&&(o.allowMultiple?t[n].forEach((t=>{r.push({key:n,value:t})})):r.push({key:n,value:t[n]}));return r}),[])}function b(t,e){const{defaultOption:r}=t.input;if(t.input.defaultOption){const n=(0,a.find)(e,{value:r});return n?n.value:void console.warn(`invalid defaultOption ${r} supplied to ${t.labels.add}`)}return(0,a.get)(e,[0,"value"])}function w(t,e,r){return{...v(e,r).reduce(((t,e)=>(t[g(e.key,e.rule)]=void 0,t)),{}),...t.reduce(((t,e)=>{if("between"===e.rule&&(!Array.isArray(e.value)||e.value.some((t=>!t))))return t;if(e.value){const n=g(e.key,e.rule);r[e.key]&&r[e.key].allowMultiple?(t.hasOwnProperty(n)||(t[n]=[]),t[n].push(e.value)):t[n]=e.value}return t}),{})}}var S=window.wp.i18n;const O=(t,r,n)=>{const o=(0,e.useMemo)((()=>null!=n?n:(0,S.__)("Changes you made may not be saved.","woocommerce")),[n]),i=h();(0,e.useEffect)((()=>{if(t){const t=i.push;return i.push=function(){const e=i.location,n=C(arguments.length<=0?void 0:arguments[0]);if("function"==typeof r&&!r(n,e))return void t(...arguments);const a=window.confirm(o);!1!==a&&t(...arguments)},()=>{i.push=t}}}),[i,t,o]),(0,e.useEffect)((()=>{if(t){function t(t){return t.preventDefault(),t.returnValue=o}return window.addEventListener("beforeunload",t,{capture:!0}),()=>{window.removeEventListener("beforeunload",t,{capture:!0})}}}),[t,o])},j=()=>h().location.pathname;function A(){const t=h().location.search;return t.length&&(0,i.parse)(t.substring(1))||{}}function P(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A(),n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"wc-admin";const i={page:n,...r,...t};return"/"!==e&&(i.path=e),(0,o.addQueryArgs)("admin.php",i)}const E=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A();const e=(0,c.applyFilters)("woocommerce_admin_persisted_queries",["period","compare","before","after","interval","type"]);return(0,a.pick)(t,e)},x=()=>(0,c.applyFilters)("woocommerce_admin_time_excluded_screens",["stock","settings","customers","homescreen"]),k=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j();return"/"===t?"homescreen":t.replace("/analytics","").replace("/","")};function F(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new Set(t.split(",").map((t=>parseInt(t,10))).filter((t=>!isNaN(t))))}function I(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A(),n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"wc-admin";const o=P(t,e,r,n);h().push(o)}const R=t=>{var e;return window.wcNavigation=null!==(e=window.wcNavigation)&&void 0!==e?e:{},window.wcNavigation.historyPatched||(t=>{const e=t.pushState,r=t.replaceState;t.pushState=function(r){const n=new CustomEvent("pushstate",{state:r});return window.dispatchEvent(n),e.apply(t,arguments)},t.replaceState=function(e){const n=new CustomEvent("replacestate",{state:e});return window.dispatchEvent(n),r.apply(t,arguments)},window.wcNavigation.historyPatched=!0})(window.history),window.addEventListener("popstate",t),window.addEventListener("pushstate",t),window.addEventListener("replacestate",t),()=>{window.removeEventListener("popstate",t),window.removeEventListener("pushstate",t),window.removeEventListener("replacestate",t)}},N=t=>x().includes(k(t));function M(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[...F(t)]}function _(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A();if("object"!=typeof t)throw new Error("Invalid parameter passed to getSearchWords, it expects an object or no parameters.");const{search:e}=t;if(!e)return[];if("string"!=typeof e)throw new Error("Invalid 'search' type. getSearchWords expects query's 'search' property to be a string.");return e.split(",").map((t=>t.replace("%2C",",")))}const U=()=>{const[t,r]=(0,e.useState)({}),[n,o]=(0,e.useState)(!0);return(0,e.useLayoutEffect)((()=>R((()=>{o(!0)}))),[]),(0,e.useEffect)((()=>{if(n){const t=A();r(t),o(!1)}}),[n]),t};function D(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A();switch(t){case"sort":return(t,n)=>I({orderby:t,order:n},e,r);case"compare":return(t,n,o)=>I({[n]:`compare-${t}`,[t]:o,search:void 0},e,r);default:return n=>I({[t]:n},e,r)}}const L=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href;return/admin.php\?page=wc-admin/.test(t)},C=t=>t.startsWith("http")?new URL(t):/^\/?[a-z0-9]+.php/i.test(t)?new URL(`${window.wcSettings.adminUrl}${t}`):new URL((0,l.getAdminLink)(P({},t,{}))),W=t=>{let{url:e}=t;const r=C(e);if(L()&&L(String(r)))return window.document.documentElement.scrollTop=0,void h().push(`admin.php${r.search}`);window.location.href=String(r)},T=t=>{let{children:r,item:n}=t;return(0,e.createElement)(u.Fill,{name:"woocommerce_navigation_"+n},r)};T.Slot=t=>{let{name:r}=t;return(0,e.createElement)(u.Slot,{name:"woocommerce_navigation_"+r})}}(),(window.wc=window.wc||{}).navigation=n}();