PageSourceSearch

https://thebestsites.com/wp-includes/js/dist/url.js?ver=6bc6a4c3049d91342459

js thebestsites.com collected 2026-10-06 13:50:10 UTC 20,743 bytes, 1,006 lines download raw bytes

1/******/ (() => { // webpackBootstrap
2/******/ 	var __webpack_modules__ = ({
3
4/***/ 9681:
5/***/ ((module) => {
6
7var characterMap = {
8	"À": "A",
9	"Á": "A",
10	"Â": "A",
11	"Ã": "A",
12	"Ä": "A",
13	"Å": "A",
14	"Ấ": "A",
15	"Ắ": "A",
16	"Ẳ": "A",
17	"Ẵ": "A",
18	"Ặ": "A",
19	"Æ": "AE",
20	"Ầ": "A",
21	"Ằ": "A",
22	"Ȃ": "A",
23	"Ả": "A",
24	"Ạ": "A",
25	"Ẩ": "A",
26	"Ẫ": "A",
27	"Ậ": "A",
28	"Ç": "C",
29	"Ḉ": "C",
30	"È": "E",
31	"É": "E",
32	"Ê": "E",
33	"Ë": "E",
34	"Ế": "E",
35	"Ḗ": "E",
36	"Ề": "E",
37	"Ḕ": "E",
38	"Ḝ": "E",
39	"Ȇ": "E",
40	"Ẻ": "E",
41	"Ẽ": "E",
42	"Ẹ": "E",
43	"Ể": "E",
44	"Ễ": "E",
45	"Ệ": "E",
46	"Ì": "I",
47	"Í": "I",
48	"Î": "I",
49	"Ï": "I",
50	"Ḯ": "I",
51	"Ȋ": "I",
52	"Ỉ": "I",
53	"Ị": "I",
54	"Ð": "D",
55	"Ñ": "N",
56	"Ò": "O",
57	"Ó": "O",
58	"Ô": "O",
59	"Õ": "O",
60	"Ö": "O",
61	"Ø": "O",
62	"Ố": "O",
63	"Ṍ": "O",
64	"Ṓ": "O",
65	"Ȏ": "O",
66	"Ỏ": "O",
67	"Ọ": "O",
68	"Ổ": "O",
69	"Ỗ": "O",
70	"Ộ": "O",
71	"Ờ": "O",
72	"Ở": "O",
73	"á» ": "O",
74	"Ớ": "O",
75	"Ợ": "O",
76	"Ù": "U",
77	"Ú": "U",
78	"Û": "U",
79	"Ü": "U",
80	"Ủ": "U",
81	"Ụ": "U",
82	"Ử": "U",
83	"á»®": "U",
84	"á»°": "U",
85	"Ý": "Y",
86	"à": "a",
87	"á": "a",
88	"â": "a",
89	"ã": "a",
90	"ä": "a",
91	"Ã¥": "a",
92	"ấ": "a",
93	"ắ": "a",
94	"ẳ": "a",
95	"ẵ": "a",
96	"ặ": "a",
97	"æ": "ae",
98	"ầ": "a",
99	"ằ": "a",
100	"ȃ": "a",
101	"ả": "a",
102	"ạ": "a",
103	"ẩ": "a",
104	"ẫ": "a",
105	"ậ": "a",
106	"ç": "c",
107	"ḉ": "c",
108	"è": "e",
109	"é": "e",
110	"ê": "e",
111	"ë": "e",
112	"ế": "e",
113	"ḗ": "e",
114	"ề": "e",
115	"ḕ": "e",
116	"ḝ": "e",
117	"ȇ": "e",
118	"ẻ": "e",
119	"ẽ": "e",
120	"ẹ": "e",
121	"ể": "e",
122	"ễ": "e",
123	"ệ": "e",
124	"ì": "i",
125	"í": "i",
126	"î": "i",
127	"ï": "i",
128	"ḯ": "i",
129	"ȋ": "i",
130	"ỉ": "i",
131	"ị": "i",
132	"ð": "d",
133	"ñ": "n",
134	"ò": "o",
135	"ó": "o",
136	"ô": "o",
137	"õ": "o",
138	"ö": "o",
139	"ø": "o",
140	"ố": "o",
141	"ṍ": "o",
142	"ṓ": "o",
143	"ȏ": "o",
144	"ỏ": "o",
145	"ọ": "o",
146	"ổ": "o",
147	"ỗ": "o",
148	"ộ": "o",
149	"ờ": "o",
150	"ở": "o",
151	"ỡ": "o",
152	"ớ": "o",
153	"ợ": "o",
154	"ù": "u",
155	"ú": "u",
156	"û": "u",
157	"ü": "u",
158	"á»§": "u",
159	"ụ": "u",
160	"á»­": "u",
161	"ữ": "u",
162	"á»±": "u",
163	"ý": "y",
164	"ÿ": "y",
165	"Ā": "A",
166	"ā": "a",
167	"Ă": "A",
168	"ă": "a",
169	"Ą": "A",
170	"ą": "a",
171	"Ć": "C",
172	"ć": "c",
173	"Ĉ": "C",
174	"ĉ": "c",
175	"Ċ": "C",
176	"ċ": "c",
177	"Č": "C",
178	"č": "c",
179	"C̆": "C",
180	"c̆": "c",
181	"Ď": "D",
182	"ď": "d",
183	"Đ": "D",
184	"đ": "d",
185	"Ē": "E",
186	"ē": "e",
187	"Ĕ": "E",
188	"ĕ": "e",
189	"Ė": "E",
190	"ė": "e",
191	"Ę": "E",
192	"ę": "e",
193	"Ě": "E",
194	"ě": "e",
195	"Ĝ": "G",
196	"Ç´": "G",
197	"ĝ": "g",
198	"ǵ": "g",
199	"Ğ": "G",
200	"ğ": "g",
201	"Ä ": "G",
202	"Ä¡": "g",
203	"Ä¢": "G",
204	"Ä£": "g",
205	"Ĥ": "H",
206	"Ä¥": "h",
207	"Ħ": "H",
208	"ħ": "h",
209	"Ḫ": "H",
210	"ḫ": "h",
211	"Ĩ": "I",
212	"Ä©": "i",
213	"Ī": "I",
214	"Ä«": "i",
215	"Ĭ": "I",
216	"Ä­": "i",
217	"Ä®": "I",
218	"į": "i",
219	"İ": "I",
220	"ı": "i",
221	"IJ": "IJ",
222	"ij": "ij",
223	"Ä´": "J",
224	"ĵ": "j",
225	"Ķ": "K",
226	"Ä·": "k",
227	"Ḱ": "K",
228	"ḱ": "k",
229	"K̆": "K",
230	"k̆": "k",
231	"Ĺ": "L",
232	"ĺ": "l",
233	"Ä»": "L",
234	"ļ": "l",
235	"Ľ": "L",
236	"ľ": "l",
237	"Ä¿": "L",
238	"ŀ": "l",
239	"Ł": "l",
240	"ł": "l",
241	"Ḿ": "M",
242	"ḿ": "m",
243	"M̆": "M",
244	"m̆": "m",
245	"Ń": "N",
246	"ń": "n",
247	"Ņ": "N",
248	"ņ": "n",
249	"Ň": "N",
250	"ň": "n",
251	"ʼn": "n",
252	"N̆": "N",
253	"n̆": "n",
254	"Ō": "O",
255	"ō": "o",
256	"Ŏ": "O",
257	"ŏ": "o",
258	"Ő": "O",
259	"ő": "o",
260	"Œ": "OE",
261	"œ": "oe",
262	"P̆": "P",
263	"p̆": "p",
264	"Ŕ": "R",
265	"ŕ": "r",
266	"Ŗ": "R",
267	"ŗ": "r",
268	"Ř": "R",
269	"ř": "r",
270	"R̆": "R",
271	"r̆": "r",
272	"Ȓ": "R",
273	"ȓ": "r",
274	"Ś": "S",
275	"ś": "s",
276	"Ŝ": "S",
277	"ŝ": "s",
278	"Ş": "S",
279	"Ș": "S",
280	"ș": "s",
281	"ş": "s",
282	"Å ": "S",
283	"Å¡": "s",
284	"Å¢": "T",
285	"Å£": "t",
286	"ț": "t",
287	"Ț": "T",
288	"Ť": "T",
289	"Å¥": "t",
290	"Ŧ": "T",
291	"ŧ": "t",
292	"T̆": "T",
293	"t̆": "t",
294	"Ũ": "U",
295	"Å©": "u",
296	"Ū": "U",
297	"Å«": "u",
298	"Ŭ": "U",
299	"Å­": "u",
300	"Å®": "U",
301	"ů": "u",
302	"Ű": "U",
303	"ű": "u",
304	"Ų": "U",
305	"ų": "u",
306	"Ȗ": "U",
307	"ȗ": "u",
308	"V̆": "V",
309	"v̆": "v",
310	"Å´": "W",
311	"ŵ": "w",
312	"Ẃ": "W",
313	"ẃ": "w",
314	"X̆": "X",
315	"x̆": "x",
316	"Ŷ": "Y",
317	"Å·": "y",
318	"Ÿ": "Y",
319	"Y̆": "Y",
320	"y̆": "y",
321	"Ź": "Z",
322	"ź": "z",
323	"Å»": "Z",
324	"ż": "z",
325	"Ž": "Z",
326	"ž": "z",
327	"Å¿": "s",
328	"ƒ": "f",
329	"Æ ": "O",
330	"Æ¡": "o",
331	"Ư": "U",
332	"ư": "u",
333	"Ǎ": "A",
334	"ǎ": "a",
335	"Ǐ": "I",
336	"ǐ": "i",
337	"Ǒ": "O",
338	"ǒ": "o",
339	"Ǔ": "U",
340	"ǔ": "u",
341	"Ǖ": "U",
342	"ǖ": "u",
343	"Ǘ": "U",
344	"ǘ": "u",
345	"Ǚ": "U",
346	"ǚ": "u",
347	"Ǜ": "U",
348	"ǜ": "u",
349	"Ứ": "U",
350	"ứ": "u",
351	"Ṹ": "U",
352	"á¹¹": "u",
353	"Ǻ": "A",
354	"Ç»": "a",
355	"Ǽ": "AE",
356	"ǽ": "ae",
357	"Ǿ": "O",
358	"Ç¿": "o",
359	"Þ": "TH",
360	"þ": "th",
361	"Ṕ": "P",
362	"ṕ": "p",
363	"Ṥ": "S",
364	"á¹¥": "s",
365	"X́": "X",
366	"x́": "x",
367	"Ѓ": "Г",
368	"ѓ": "г",
369	"Ќ": "К",
370	"ќ": "к",
371	"A̋": "A",
372	"a̋": "a",
373	"E̋": "E",
374	"e̋": "e",
375	"I̋": "I",
376	"i̋": "i",
377	"Ǹ": "N",
378	"ǹ": "n",
379	"Ồ": "O",
380	"ồ": "o",
381	"Ṑ": "O",
382	"ṑ": "o",
383	"Ừ": "U",
384	"ừ": "u",
385	"Ẁ": "W",
386	"ẁ": "w",
387	"Ỳ": "Y",
388	"ỳ": "y",
389	"Ȁ": "A",
390	"ȁ": "a",
391	"Ȅ": "E",
392	"ȅ": "e",
393	"Ȉ": "I",
394	"ȉ": "i",
395	"Ȍ": "O",
396	"ȍ": "o",
397	"Ȑ": "R",
398	"ȑ": "r",
399	"Ȕ": "U",
400	"ȕ": "u",
401	"B̌": "B",
402	"b̌": "b",
403	"Č̣": "C",
404	"č̣": "c",
405	"Ê̌": "E",
406	"ê̌": "e",
407	"F̌": "F",
408	"f̌": "f",
409	"Ǧ": "G",
410	"ǧ": "g",
411	"Ȟ": "H",
412	"ȟ": "h",
413	"J̌": "J",
414	"ǰ": "j",
415	"Ǩ": "K",
416	"Ç©": "k",
417	"M̌": "M",
418	"m̌": "m",
419	"P̌": "P",
420	"p̌": "p",
421	"Q̌": "Q",
422	"q̌": "q",
423	"Ř̩": "R",
424	"ř̩": "r",
425	"Ṧ": "S",
426	"á¹§": "s",
427	"V̌": "V",
428	"v̌": "v",
429	"W̌": "W",
430	"w̌": "w",
431	"X̌": "X",
432	"x̌": "x",
433	"Y̌": "Y",
434	"y̌": "y",
435	"A̧": "A",
436	"a̧": "a",
437	"B̧": "B",
438	"b̧": "b",
439	"Ḑ": "D",
440	"ḑ": "d",
441	"Ȩ": "E",
442	"È©": "e",
443	"Ɛ̧": "E",
444	"ɛ̧": "e",
445	"Ḩ": "H",
446	"ḩ": "h",
447	"I̧": "I",
448	"i̧": "i",
449	"Ɨ̧": "I",
450	"ɨ̧": "i",
451	"M̧": "M",
452	"m̧": "m",
453	"O̧": "O",
454	"o̧": "o",
455	"Q̧": "Q",
456	"q̧": "q",
457	"U̧": "U",
458	"u̧": "u",
459	"X̧": "X",
460	"x̧": "x",
461	"Z̧": "Z",
462	"z̧": "z",
463	"й":"и",
464	"Й":"И",
465	"ё":"е",
466	"Ё":"Е",
467};
468
469var chars = Object.keys(characterMap).join('|');
470var allAccents = new RegExp(chars, 'g');
471var firstAccent = new RegExp(chars, '');
472
473function matcher(match) {
474	return characterMap[match];
475}
476
477var removeAccents = function(string) {
478	return string.replace(allAccents, matcher);
479};
480
481var hasAccents = function(string) {
482	return !!string.match(firstAccent);
483};
484
485module.exports = removeAccents;
486module.exports.has = hasAccents;
487module.exports.remove = removeAccents;
488
489
490/***/ })
491
492/******/ 	});
493/************************************************************************/
494/******/ 	// The module cache
495/******/ 	var __webpack_module_cache__ = {};
496/******/ 	
497/******/ 	// The require function
498/******/ 	function __webpack_require__(moduleId) {
499/******/ 		// Check if module is in cache
500/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
501/******/ 		if (cachedModule !== undefined) {
502/******/ 			return cachedModule.exports;
503/******/ 		}
504/******/ 		// Create a new module (and put it into the cache)
505/******/ 		var module = __webpack_module_cache__[moduleId] = {
506/******/ 			// no module.id needed
507/******/ 			// no module.loaded needed
508/******/ 			exports: {}
509/******/ 		};
510/******/ 	
511/******/ 		// Execute the module function
512/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
513/******/ 	
514/******/ 		// Return the exports of the module
515/******/ 		return module.exports;
516/******/ 	}
517/******/ 	
518/************************************************************************/
519/******/ 	/* webpack/runtime/compat get default export */
520/******/ 	(() => {
521/******/ 		// getDefaultExport function for compatibility with non-harmony modules
522/******/ 		__webpack_require__.n = (module) => {
vendor: 1,617 bytes, lines 523-563
523/******/ 			var getter = module && module.__esModule ?
524/******/ 				() => (module['default']) :
525/******/ 				() => (module);
526/******/ 			__webpack_require__.d(getter, { a: getter });
527/******/ 			return getter;
528/******/ 		};
529/******/ 	})();
530/******/ 	
531/******/ 	/* webpack/runtime/define property getters */
532/******/ 	(() => {
533/******/ 		// define getter functions for harmony exports
534/******/ 		__webpack_require__.d = (exports, definition) => {
535/******/ 			for(var key in definition) {
536/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
537/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
538/******/ 				}
539/******/ 			}
540/******/ 		};
541/******/ 	})();
542/******/ 	
543/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
544/******/ 	(() => {
545/******/ 		__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
546/******/ 	})();
547/******/ 	
548/******/ 	/* webpack/runtime/make namespace object */
549/******/ 	(() => {
550/******/ 		// define __esModule on exports
551/******/ 		__webpack_require__.r = (exports) => {
552/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
553/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
554/******/ 			}
555/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
556/******/ 		};
557/******/ 	})();
558/******/ 	
559/************************************************************************/
560var __webpack_exports__ = {};
561// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
562(() => {
563"use strict";
564// ESM COMPAT FLAG
565__webpack_require__.r(__webpack_exports__);
566
567// EXPORTS
568__webpack_require__.d(__webpack_exports__, {
569  addQueryArgs: () => (/* reexport */ addQueryArgs),
570  buildQueryString: () => (/* reexport */ buildQueryString),
571  cleanForSlug: () => (/* reexport */ cleanForSlug),
572  filterURLForDisplay: () => (/* reexport */ filterURLForDisplay),
573  getAuthority: () => (/* reexport */ getAuthority),
574  getFilename: () => (/* reexport */ getFilename),
575  getFragment: () => (/* reexport */ getFragment),
576  getPath: () => (/* reexport */ getPath),
577  getPathAndQueryString: () => (/* reexport */ getPathAndQueryString),
578  getProtocol: () => (/* reexport */ getProtocol),
579  getQueryArg: () => (/* reexport */ getQueryArg),
580  getQueryArgs: () => (/* reexport */ getQueryArgs),
581  getQueryString: () => (/* reexport */ getQueryString),
582  hasQueryArg: () => (/* reexport */ hasQueryArg),
583  isEmail: () => (/* reexport */ isEmail),
584  isPhoneNumber: () => (/* reexport */ isPhoneNumber),
585  isURL: () => (/* reexport */ isURL),
586  isValidAuthority: () => (/* reexport */ isValidAuthority),
587  isValidFragment: () => (/* reexport */ isValidFragment),
588  isValidPath: () => (/* reexport */ isValidPath),
589  isValidProtocol: () => (/* reexport */ isValidProtocol),
590  isValidQueryString: () => (/* reexport */ isValidQueryString),
591  normalizePath: () => (/* reexport */ normalizePath),
592  prependHTTP: () => (/* reexport */ prependHTTP),
593  prependHTTPS: () => (/* reexport */ prependHTTPS),
594  removeQueryArgs: () => (/* reexport */ removeQueryArgs),
595  safeDecodeURI: () => (/* reexport */ safeDecodeURI),
596  safeDecodeURIComponent: () => (/* reexport */ safeDecodeURIComponent)
597});
598
599;// ./node_modules/@wordpress/url/build-module/is-url.js
600function isURL(url) {
601  try {
602    new URL(url);
603    return true;
604  } catch {
605    return false;
606  }
607}
608
609
610;// ./node_modules/@wordpress/url/build-module/is-email.js
611const EMAIL_REGEXP = /^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i;
612function isEmail(email) {
613  return EMAIL_REGEXP.test(email);
614}
615
616
617;// ./node_modules/@wordpress/url/build-module/is-phone-number.js
618const PHONE_REGEXP = /^(tel:)?(\+)?\d{6,15}$/;
619function isPhoneNumber(phoneNumber) {
620  phoneNumber = phoneNumber.replace(/[-.() ]/g, "");
621  return PHONE_REGEXP.test(phoneNumber);
622}
623
624
625;// ./node_modules/@wordpress/url/build-module/get-protocol.js
626function getProtocol(url) {
627  const matches = /^([^\s:]+:)/.exec(url);
628  if (matches) {
629    return matches[1];
630  }
631}
632
633
634;// ./node_modules/@wordpress/url/build-module/is-valid-protocol.js
635function isValidProtocol(protocol) {
636  if (!protocol) {
637    return false;
638  }
639  return /^[a-z\-.\+]+[0-9]*:$/i.test(protocol);
640}
641
642
643;// ./node_modules/@wordpress/url/build-module/get-authority.js
644function getAuthority(url) {
645  const matches = /^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(
646    url
647  );
648  if (matches) {
649    return matches[1];
650  }
651}
652
653
654;// ./node_modules/@wordpress/url/build-module/is-valid-authority.js
655function isValidAuthority(authority) {
656  if (!authority) {
657    return false;
658  }
659  return /^[^\s#?]+$/.test(authority);
660}
661
662
663;// ./node_modules/@wordpress/url/build-module/get-path.js
664function getPath(url) {
665  const matches = /^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(url);
666  if (matches) {
667    return matches[1];
668  }
669}
670
671
672;// ./node_modules/@wordpress/url/build-module/is-valid-path.js
673function isValidPath(path) {
674  if (!path) {
675    return false;
676  }
677  return /^[^\s#?]+$/.test(path);
678}
679
680
681;// ./node_modules/@wordpress/url/build-module/get-query-string.js
682function getQueryString(url) {
683  let query;
684  try {
685    query = new URL(url, "http://example.com").search.substring(1);
686  } catch (error) {
687  }
688  if (query) {
689    return query;
690  }
691}
692
693
694;// ./node_modules/@wordpress/url/build-module/build-query-string.js
695function buildQueryString(data) {
696  let string = "";
697  const stack = Object.entries(data);
698  let pair;
699  while (pair = stack.shift()) {
700    let [key, value] = pair;
701    const hasNestedData = Array.isArray(value) || value && value.constructor === Object;
702    if (hasNestedData) {
703      const valuePairs = Object.entries(value).reverse();
704      for (const [member, memberValue] of valuePairs) {
705        stack.unshift([`${key}[${member}]`, memberValue]);
706      }
707    } else if (value !== void 0) {
708      if (value === null) {
709        value = "";
710      }
711      string += "&" + [key, String(value)].map(encodeURIComponent).join("=");
712    }
713  }
714  return string.substr(1);
715}
716
717
718;// ./node_modules/@wordpress/url/build-module/is-valid-query-string.js
719function isValidQueryString(queryString) {
720  if (!queryString) {
721    return false;
722  }
723  return /^[^\s#?\/]+$/.test(queryString);
724}
725
726
727;// ./node_modules/@wordpress/url/build-module/get-path-and-query-string.js
728
729function getPathAndQueryString(url) {
730  const path = getPath(url);
731  const queryString = getQueryString(url);
732  let value = "/";
733  if (path) {
734    value += path;
735  }
736  if (queryString) {
737    value += `?${queryString}`;
738  }
739  return value;
740}
741
742
743;// ./node_modules/@wordpress/url/build-module/get-fragment.js
744function getFragment(url) {
745  const matches = /^\S+?(#[^\s\?]*)/.exec(url);
746  if (matches) {
747    return matches[1];
748  }
749}
750
751
752;// ./node_modules/@wordpress/url/build-module/is-valid-fragment.js
753function isValidFragment(fragment) {
754  if (!fragment) {
755    return false;
756  }
757  return /^#[^\s#?\/]*$/.test(fragment);
758}
759
760
761;// ./node_modules/@wordpress/url/build-module/safe-decode-uri-component.js
762function safeDecodeURIComponent(uriComponent) {
763  try {
764    return decodeURIComponent(uriComponent);
765  } catch (uriComponentError) {
766    return uriComponent;
767  }
768}
769
770
771;// ./node_modules/@wordpress/url/build-module/get-query-args.js
772
773
774function setPath(object, path, value) {
775  const length = path.length;
776  const lastIndex = length - 1;
777  for (let i = 0; i < length; i++) {
778    let key = path[i];
779    if (!key && Array.isArray(object)) {
780      key = object.length.toString();
781    }
782    key = ["__proto__", "constructor", "prototype"].includes(key) ? key.toUpperCase() : key;
783    const isNextKeyArrayIndex = !isNaN(Number(path[i + 1]));
784    object[key] = i === lastIndex ? (
785      // If at end of path, assign the intended value.
786      value
787    ) : (
788      // Otherwise, advance to the next object in the path, creating
789      // it if it does not yet exist.
790      object[key] || (isNextKeyArrayIndex ? [] : {})
791    );
792    if (Array.isArray(object[key]) && !isNextKeyArrayIndex) {
793      object[key] = { ...object[key] };
794    }
795    object = object[key];
796  }
797}
798function getQueryArgs(url) {
799  return (getQueryString(url) || "").replace(/\+/g, "%20").split("&").reduce((accumulator, keyValue) => {
800    const [key, value = ""] = keyValue.split("=").filter(Boolean).map(safeDecodeURIComponent);
801    if (key) {
802      const segments = key.replace(/\]/g, "").split("[");
803      setPath(accumulator, segments, value);
804    }
805    return accumulator;
806  }, /* @__PURE__ */ Object.create(null));
807}
808
809
810;// ./node_modules/@wordpress/url/build-module/add-query-args.js
811
812
813
814function addQueryArgs(url = "", args) {
815  if (!args || !Object.keys(args).length) {
816    return url;
817  }
818  const fragment = getFragment(url) || "";
819  let baseUrl = url.replace(fragment, "");
820  const queryStringIndex = url.indexOf("?");
821  if (queryStringIndex !== -1) {
822    args = Object.assign(getQueryArgs(url), args);
823    baseUrl = baseUrl.substr(0, queryStringIndex);
824  }
825  return baseUrl + "?" + buildQueryString(args) + fragment;
826}
827
828
829;// ./node_modules/@wordpress/url/build-module/get-query-arg.js
830
831function getQueryArg(url, arg) {
832  return getQueryArgs(url)[arg];
833}
834
835
836;// ./node_modules/@wordpress/url/build-module/has-query-arg.js
837
838function hasQueryArg(url, arg) {
839  return getQueryArg(url, arg) !== void 0;
840}
841
842
843;// ./node_modules/@wordpress/url/build-module/remove-query-args.js
844
845
846function removeQueryArgs(url, ...args) {
847  const fragment = url.replace(/^[^#]*/, "");
848  url = url.replace(/#.*/, "");
849  const queryStringIndex = url.indexOf("?");
850  if (queryStringIndex === -1) {
851    return url + fragment;
852  }
853  const query = getQueryArgs(url);
854  const baseURL = url.substr(0, queryStringIndex);
855  args.forEach((arg) => delete query[arg]);
856  const queryString = buildQueryString(query);
857  const updatedUrl = queryString ? baseURL + "?" + queryString : baseURL;
858  return updatedUrl + fragment;
859}
860
861
862;// ./node_modules/@wordpress/url/build-module/prepend-http.js
863
864const USABLE_HREF_REGEXP = /^(?:[a-z]+:|#|\?|\.|\/)/i;
865function prependHTTP(url) {
866  if (!url) {
867    return url;
868  }
869  url = url.trim();
870  if (!USABLE_HREF_REGEXP.test(url) && !isEmail(url)) {
871    return "http://" + url;
872  }
873  return url;
874}
875
876
877;// ./node_modules/@wordpress/url/build-module/safe-decode-uri.js
878function safeDecodeURI(uri) {
879  try {
880    return decodeURI(uri);
881  } catch (uriError) {
882    return uri;
883  }
884}
885
886
887;// ./node_modules/@wordpress/url/build-module/filter-url-for-display.js
888function filterURLForDisplay(url, maxLength = null) {
889  if (!url) {
890    return "";
891  }
892  let filteredURL = url.replace(/^[a-z\-.\+]+[0-9]*:(\/\/)?/i, "").replace(/^www\./i, "");
893  if (filteredURL.match(/^[^\/]+\/$/)) {
894    filteredURL = filteredURL.replace("/", "");
895  }
896  const fileRegexp = /\/([^\/?]+)\.(?:[\w]+)(?=\?|$)/;
897  if (!maxLength || filteredURL.length <= maxLength || !filteredURL.match(fileRegexp)) {
898    return filteredURL;
899  }
900  filteredURL = filteredURL.split("?")[0];
901  const urlPieces = filteredURL.split("/");
902  const file = urlPieces[urlPieces.length - 1];
903  if (file.length <= maxLength) {
904    return "\u2026" + filteredURL.slice(-maxLength);
905  }
906  const index = file.lastIndexOf(".");
907  const [fileName, extension] = [
908    file.slice(0, index),
909    file.slice(index + 1)
910  ];
911  const truncatedFile = fileName.slice(-3) + "." + extension;
912  return file.slice(0, maxLength - truncatedFile.length - 1) + "\u2026" + truncatedFile;
913}
914
915
916// EXTERNAL MODULE: ./node_modules/remove-accents/index.js
917var remove_accents = __webpack_require__(9681);
918var remove_accents_default = /*#__PURE__*/__webpack_require__.n(remove_accents);
919;// ./node_modules/@wordpress/url/build-module/clean-for-slug.js
920
921function cleanForSlug(string) {
922  if (!string) {
923    return "";
924  }
925  return remove_accents_default()(string).replace(/(&nbsp;|&ndash;|&mdash;)/g, "-").replace(/[\s\./]+/g, "-").replace(/&\S+?;/g, "").replace(/[^\p{L}\p{N}_-]+/gu, "").toLowerCase().replace(/-+/g, "-").replace(/(^-+)|(-+$)/g, "");
926}
927
928
929;// ./node_modules/@wordpress/url/build-module/get-filename.js
930function getFilename(url) {
931  let filename;
932  if (!url) {
933    return;
934  }
935  try {
936    filename = new URL(url, "http://example.com").pathname.split("/").pop();
937  } catch (error) {
938  }
939  if (filename) {
940    return filename;
941  }
942}
943
944
945;// ./node_modules/@wordpress/url/build-module/normalize-path.js
946function normalizePath(path) {
947  const split = path.split("?");
948  const query = split[1];
949  const base = split[0];
950  if (!query) {
951    return base;
952  }
953  return base + "?" + query.split("&").map((entry) => entry.split("=")).map((pair) => pair.map(decodeURIComponent)).sort((a, b) => a[0].localeCompare(b[0])).map((pair) => pair.map(encodeURIComponent)).map((pair) => pair.join("=")).join("&");
954}
955
956
957;// ./node_modules/@wordpress/url/build-module/prepend-https.js
958
959function prependHTTPS(url) {
960  if (!url) {
961    return url;
962  }
963  if (url.startsWith("http://")) {
964    return url;
965  }
966  url = prependHTTP(url);
967  return url.replace(/^http:/, "https:");
968}
969
970
971;// ./node_modules/@wordpress/url/build-module/index.js
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002})();
1003
1004(window.wp = window.wp || {}).url = __webpack_exports__;
1005/******/ })()
1006;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.