File: /var/www/html/wptuneprotect/wp-content/plugins/woocommerce/assets/client/admin/navigation/index.js
!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;f<l;f++)p.push("$"+f);if(a=Function("binder","return function ("+p.join(",")+"){ return binder.apply(this,arguments); }")(u),i.prototype){var s=function(){};s.prototype=i.prototype,a.prototype=new s,s.prototype=null}return a}},22698:function(t,e,r){"use strict";var n=r(59748);t.exports=Function.prototype.bind||n},28487:function(t,e,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,c=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(t){u=null}var l=function(){throw new a},p=u?function(){try{return l}catch(t){try{return u(arguments,"callee").get}catch(t){return l}}}():l,f=r(72770)(),s=Object.getPrototypeOf||function(t){return t.__proto__},y={},d="undefined"==typeof Uint8Array?n:s(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?s([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":y,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?s(s([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?s((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?s((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?s(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":p,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},g=function t(e){var r;if("%AsyncFunction%"===e)r=c("async function () {}");else if("%GeneratorFunction%"===e)r=c("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=c("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(r=s(o.prototype))}return h[e]=r,r},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(22698),b=r(22786),w=v.call(Function.call,Array.prototype.concat),S=v.call(Function.apply,Array.prototype.splice),O=v.call(Function.call,String.prototype.replace),j=v.call(Function.call,String.prototype.slice),A=v.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,x=function(t){var e=j(t,0,1),r=j(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return O(t,P,(function(t,e,r,o){n[n.length]=r?O(o,E,"$1"):e||t})),n},k=function(t,e){var r,n=t;if(b(m,n)&&(n="%"+(r=m[n])[0]+"%"),b(h,n)){var i=h[n];if(i===y&&(i=g(n)),void 0===i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"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;s+=1){var d=r[s],g=j(d,0,1),m=j(d,-1);if(('"'===g||"'"===g||"`"===g||'"'===m||"'"===m||"`"===m)&&g!==m)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&y||(p=!0),b(h,c="%"+(n+="."+d)+"%"))l=h[c];else if(null!=l){if(!(d in l)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(u&&s+1>=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 U(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 _=r(50189),D=_.custom,L=$(D)?D:null;function W(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function C(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?U(e,w):w}if("bigint"==typeof e){var O=String(e)+"n";return h?U(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<nt.length;ot++)rt+=" "+nt[ot].name+"="+W(C(nt[ot].value),"double",c);return rt+=">",e.childNodes&&e.childNodes.length&&(rt+="..."),rt+"</"+S.call(String(e.nodeName))+">"}if(T(e)){if(0===e.length)return"[]";var it=Z(e,Q);return D&&!function(t){for(var e=0;e<t.length;e++)if(V(t[e],"\n")>=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]&&_)return _(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;r<n;r++)if(t[r]===e)return r;return-1}function q(t,e){if(t.length>e.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 W(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<t.length;o++)n[o]=H(t,o)?e(t[o],t):""}var i,a="function"==typeof k?k(t):[];if(I){i={};for(var c=0;c<a.length;c++)i["$"+a[c]]=a[c]}for(var u in t)H(t,u)&&(r&&String(Number(u))===u&&u<t.length||I&&i["$"+u]instanceof Symbol||(O.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if("function"==typeof k)for(var l=0;l<a.length;l++)N.call(t,a[l])&&n.push("["+e(a[l])+"]: "+e(t[a[l]],t));return n}},38243:function(t){"use strict";var e=String.prototype.replace,r=/%20/g,n="RFC3986";t.exports={default:n,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:n}},79119:function(t,e,r){"use strict";var n=r(67576),o=r(93649),i=r(38243);t.exports={formats:i,parse:o,stringify:n}},93649:function(t,e,r){"use strict";var n=r(7173),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},u=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-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<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;p.push(c[1])}return c&&p.push("["+i.slice(c.index)+"]"),function(t,e,r,n){for(var o=n?e:u(e,r),i=t.length-1;i>=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<s.length;++r)0===s[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===s[r]?d="utf-8":"utf8=%26%2310003%3B"===s[r]&&(d="iso-8859-1"),y=r,r=s.length);for(r=0;r<s.length;++r)if(r!==y){var h,g,m=s[r],v=m.indexOf("]="),b=-1===v?m.indexOf("="):v+1;-1===b?(h=e.decoder(m,a.decoder,d,"key"),g=e.strictNullHandling?null:""):(h=e.decoder(m.slice(0,b),a.decoder,d,"key"),g=n.maybeMap(u(m.slice(b+1),e),(function(t){return e.decoder(t,a.decoder,d,"value")}))),g&&e.interpretNumericEntities&&"iso-8859-1"===d&&(g=c(g)),m.indexOf("[]=")>-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;y<s.length;++y){var d=s[y],h=l(d,p[d],r,"string"==typeof t);f=n.merge(f,h,r)}return!0===r.allowSparse?f:n.compact(f)}},67576:function(t,e,r){"use strict";var n=r(44852),o=r(7173),i=r(38243),a=Object.prototype.hasOwnProperty,c={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,l=String.prototype.split,p=Array.prototype.push,f=function(t,e){p.apply(t,u(e)?e:[e])},s=Date.prototype.toISOString,y=i.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:y,formatter:i.formatters[y],indices:!1,serializeDate:function(t){return s.call(t)},skipNulls:!1,strictNullHandling:!1},h={},g=function t(e,r,i,a,c,p,s,y,g,m,v,b,w,S,O){for(var j,A=e,P=O,E=0,x=!1;void 0!==(P=P.get(h))&&!x;){var k=P.get(e);if(E+=1,void 0!==k){if(k===E)throw new RangeError("Cyclic object value");x=!0}void 0===P.get(h)&&(E=0)}if("function"==typeof s?A=s(r,A):A instanceof Date?A=m(A):"comma"===i&&u(A)&&(A=o.maybeMap(A,(function(t){return t instanceof Date?m(t):t}))),null===A){if(a)return p&&!w?p(r,d.encoder,S,"key",v):r;A=""}if("string"==typeof(j=A)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||o.isBuffer(A)){if(p){var F=w?r:p(r,d.encoder,S,"key",v);if("comma"===i&&w){for(var I=l.call(String(A),","),R="",N=0;N<I.length;++N)R+=(0===N?"":",")+b(p(I[N],d.encoder,S,"value",v));return[b(F)+"="+R]}return[b(F)+"="+b(p(A,d.encoder,S,"value",v))]}return[b(r)+"="+b(String(A))]}var M,U=[];if(void 0===A)return U;if("comma"===i&&u(A))M=[{value:A.length>0?A.join(",")||null:void 0}];else if(u(s))M=s;else{var _=Object.keys(A);M=y?_.sort(y):_}for(var D=0;D<M.length;++D){var L=M[D],W="object"==typeof L&&void 0!==L.value?L.value:A[L];if(!c||null!==W){var C=u(A)?"function"==typeof i?i(r,L):r:r+(g?"."+L:"["+L+"]");O.set(e,E);var T=n();T.set(h,O),f(U,t(W,C,i,a,c,p,s,y,g,m,v,b,w,S,T))}}return U};t.exports=function(t,e){var r,o=t,l=function(t){if(!t)return d;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||d.charset;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 r=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=i.formatters[r],o=d.filter;return("function"==typeof t.filter||u(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===t.allowDots?d.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:d.charsetSentinel,delimiter:void 0===t.delimiter?d.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:d.encode,encoder:"function"==typeof t.encoder?t.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:d.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:d.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:d.strictNullHandling}}(e);"function"==typeof l.filter?o=(0,l.filter)("",o):u(l.filter)&&(r=l.filter);var p,s=[];if("object"!=typeof o||null===o)return"";p=e&&e.arrayFormat in c?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var y=c[p];r||(r=Object.keys(o)),l.sort&&r.sort(l.sort);for(var h=n(),m=0;m<r.length;++m){var v=r[m];l.skipNulls&&null===o[v]||f(s,g(o[v],v,y,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,h))}var b=s.join(l.delimiter),w=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?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;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:c,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],a=o.obj[o.prop],c=Object.keys(a),u=0;u<c.length;++u){var l=c[u],p=a[l];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(e.push({obj:a,prop:l}),r.push(p))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r,o,i){if(0===t.length)return t;var c=t;if("symbol"==typeof t?c=Symbol.prototype.toString.call(t):"string"!=typeof t&&(c=String(t)),"iso-8859-1"===r)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",l=0;l<c.length;++l){var p=c.charCodeAt(l);45===p||46===p||95===p||126===p||p>=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<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return i(e)&&!i(r)&&(a=c(e,n)),i(e)&&i(r)?(r.forEach((function(r,i){if(o.call(e,i)){var a=e[i];a&&"object"==typeof a&&r&&"object"==typeof r?e[i]=t(a,r,n):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return o.call(e,i)?e[i]=t(e[i],a,n):e[i]=a,e}),a)}}},44852:function(t,e,r){"use strict";var n=r(28487),o=r(2864),i=r(31741),a=n("%TypeError%"),c=n("%WeakMap%",!0),u=n("%Map%",!0),l=o("WeakMap.prototype.get",!0),p=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),s=o("Map.prototype.get",!0),y=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),h=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new a("Side channel does not contain "+i(t))},get:function(n){if(c&&n&&("object"==typeof n||"function"==typeof n)){if(t)return l(t,n)}else if(u){if(e)return s(e,n)}else if(r)return function(t,e){var r=h(t,e);return r&&r.value}(r,n)},has:function(n){if(c&&n&&("object"==typeof n||"function"==typeof n)){if(t)return f(t,n)}else if(u){if(e)return d(e,n)}else if(r)return function(t,e){return!!h(t,e)}(r,n);return!1},set:function(n,o){c&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new c),p(t,n,o)):u?(e||(e=new u),y(e,n,o)):(r||(r={key:{},next:null}),function(t,e,r){var n=h(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,o))}};return n}},50189:function(){}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};!function(){"use strict";r.r(n),r.d(n,{WooNavigationItem:function(){return W},addHistoryListener:function(){return U},flattenFilters:function(){return g},getActiveFiltersFromQuery:function(){return m},getDefaultOptionValue:function(){return v},getHistory:function(){return h},getIdsFromQuery:function(){return E},getNewPath:function(){return F},getPath:function(){return S},getPersistedQuery:function(){return O},getQuery:function(){return I},getQueryExcludedScreens:function(){return j},getQueryFromActiveFilters:function(){return b},getScreenFromPath:function(){return P},getSearchWords:function(){return k},getSetOfIdsFromQuery:function(){return x},getUrlKey:function(){return w},isWCAdmin:function(){return _},navigateTo:function(){return L},onQueryChange:function(){return N},parseAdminUrl:function(){return D},pathIsExcluded:function(){return A},updateQueryString:function(){return M},useQuery:function(){return R}});var t,e=window.wp.element,o=window.wp.url,i=r(79119),a=window.lodash,c=window.wp.hooks,u=window.wp.components,l=window.wc.wcSettings;function p(){return p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},p.apply(this,arguments)}!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(t||(t={}));var f="beforeunload";function s(t){t.preventDefault(),t.returnValue=""}function y(){var t=[];return{get length(){return t.length},push:function(e){return t.push(e),function(){t=t.filter((function(t){return t!==e}))}},call:function(e){t.forEach((function(t){return t&&t(e)}))}}}let d;function h(){if(!d){const e=function(e){void 0===e&&(e={});var r=e.window,n=void 0===r?document.defaultView:r,o=n.history;function i(){var t=n.location,e=t.pathname,r=t.search,i=t.hash,a=o.state||{};return[a.idx,{pathname:e,search:r,hash:i,state:a.usr||null,key:a.key||"default"}]}var a=null;n.addEventListener("popstate",(function(){if(a)g.call(a),a=null;else{var e=t.Pop,r=i(),n=r[0],o=r[1];if(g.length){if(null!=n){var c=l-n;c&&(a={action:e,location:o,retry:function(){O(-1*c)}},O(c))}}else S(e)}}));var c=t.Pop,u=i(),l=u[0],d=u[1],h=y(),g=y();function m(t){return"string"==typeof t?t:(r=(e=t).pathname,n=void 0===r?"/":r,o=e.search,i=void 0===o?"":o,a=e.hash,c=void 0===a?"":a,i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),c&&"#"!==c&&(n+="#"===c.charAt(0)?c:"#"+c),n);var e,r,n,o,i,a,c}function v(t,e){return void 0===e&&(e=null),p({pathname:d.pathname,hash:"",search:""},"string"==typeof t?function(t){var e={};if(t){var r=t.indexOf("#");r>=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){const e=[];return t.forEach((t=>{if(t.subFilters){e.push((0,a.omit)(t,"subFilters"));const r=g(t.subFilters);e.push(...r)}else e.push(t)})),e}function m(t,e){return Object.keys(e).reduce(((r,n)=>{const o=e[n];if(o.rules){const e=o.rules.filter((e=>t.hasOwnProperty(w(n,e.value))));if(e.length)if(o.allowMultiple)e.forEach((e=>{t[w(n,e.value)].forEach((t=>{r.push({key:n,rule:e.value,value:t})}))}));else{const o=t[w(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 v(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 b(t,e,r){return{...m(e,r).reduce(((t,e)=>(t[w(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=w(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}),{})}}function w(t,e){return e&&e.length?`${t}_${e}`:t}const S=()=>h().location.pathname,O=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I();const e=(0,c.applyFilters)("woocommerce_admin_persisted_queries",["period","compare","before","after","interval","type"]);return(0,a.pick)(t,e)},j=()=>(0,c.applyFilters)("woocommerce_admin_time_excluded_screens",["stock","settings","customers","homescreen"]),A=t=>j().includes(P(t)),P=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S();return"/"===t?"homescreen":t.replace("/analytics","").replace("/","")};function E(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[...x(t)]}function x(){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 k(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I();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",",")))}function F(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I(),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)}function I(){const t=h().location.search;return t.length&&(0,i.parse)(t.substring(1))||{}}const R=()=>{const[t,r]=(0,e.useState)({}),[n,o]=(0,e.useState)(!0);return(0,e.useLayoutEffect)((()=>U((()=>{o(!0)}))),[]),(0,e.useEffect)((()=>{if(n){const t=I();r(t),o(!1)}}),[n]),t};function N(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I();switch(t){case"sort":return(t,n)=>M({orderby:t,order:n},e,r);case"compare":return(t,n,o)=>M({[n]:`compare-${t}`,[t]:o,search:void 0},e,r);default:return n=>M({[t]:n},e,r)}}function M(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I(),n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"wc-admin";const o=F(t,e,r,n);h().push(o)}const U=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)}},_=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href;return/admin.php\?page=wc-admin/.test(t)},D=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)(F({},t,{}))),L=t=>{let{url:e}=t;const r=D(e);if(_()&&_(String(r)))return window.document.documentElement.scrollTop=0,void h().push(`admin.php${r.search}`);window.location.href=String(r)},W=t=>{let{children:r,item:n}=t;return(0,e.createElement)(u.Fill,{name:"woocommerce_navigation_"+n},r)};W.Slot=t=>{let{name:r}=t;return(0,e.createElement)(u.Slot,{name:"woocommerce_navigation_"+r})}}(),(window.wc=window.wc||{}).navigation=n}();