PHP Classes

File: wordpress/wp-includes/js/dist/url.min.js

Recommend this page to a friend!
  Classes of Faris AL-Otabi   WordPress Docker Swarm   wordpress/wp-includes/js/dist/url.min.js   Download  
File: wordpress/wp-includes/js/dist/url.min.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WordPress Docker Swarm
Deploy WordPress to multiple containers
Author: By
Last change:
Date: 27 days ago
Size: 8,375 bytes
 

Contents

Class file image Download
/*! This file is auto-generated */ (()=>{var e={9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",?:"A",?:"A",?:"A",?:"A",?:"A",Æ:"AE",?:"A",?:"A",?:"A",?:"A",?:"A",?:"A",?:"A",?:"A",Ç:"C",?:"C",È:"E",É:"E",Ê:"E",Ë:"E",?:"E",?:"E",?:"E",?:"E",?:"E",?:"E",?:"E",?:"E",?:"E",?:"E",?:"E",?:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",?:"I",?:"I",?:"I",?:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",?:"O",?:"O",?:"O",?:"O",?:"O",?:"O",?:"O",?:"O",?:"O",?:"O",?:"O",?:"O",?:"O",?:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",?:"U",?:"U",?:"U",?:"U",?:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",?:"a",?:"a",?:"a",?:"a",?:"a",æ:"ae",?:"a",?:"a",?:"a",?:"a",?:"a",?:"a",?:"a",?:"a",ç:"c",?:"c",è:"e",é:"e",ê:"e",ë:"e",?:"e",?:"e",?:"e",?:"e",?:"e",?:"e",?:"e",?:"e",?:"e",?:"e",?:"e",?:"e",ì:"i",í:"i",î:"i",ï:"i",?:"i",?:"i",?:"i",?:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",?:"o",?:"o",?:"o",?:"o",?:"o",?:"o",?:"o",?:"o",?:"o",?:"o",?:"o",?:"o",?:"o",?:"o",ù:"u",ú:"u",û:"u",ü:"u",?:"u",?:"u",?:"u",?:"u",?:"u",ý:"y",ÿ:"y",?:"A",?:"a",?:"A",?:"a",?:"A",?:"a",?:"C",?:"c",?:"C",?:"c",?:"C",?:"c",?:"C",?:"c",C?:"C",c?:"c",?:"D",?:"d",?:"D",?:"d",?:"E",?:"e",?:"E",?:"e",?:"E",?:"e",?:"E",?:"e",?:"E",?:"e",?:"G",?:"G",?:"g",?:"g",?:"G",?:"g",?:"G",?:"g",?:"G",?:"g",?:"H",?:"h",?:"H",?:"h",?:"H",?:"h",?:"I",?:"i",?:"I",?:"i",?:"I",?:"i",?:"I",?:"i",?:"I",?:"i",?:"IJ",?:"ij",?:"J",?:"j",?:"K",?:"k",?:"K",?:"k",K?:"K",k?:"k",?:"L",?:"l",?:"L",?:"l",?:"L",?:"l",?:"L",?:"l",?:"l",?:"l",?:"M",?:"m",M?:"M",m?:"m",?:"N",?:"n",?:"N",?:"n",?:"N",?:"n",?:"n",N?:"N",n?:"n",?:"O",?:"o",?:"O",?:"o",?:"O",?:"o",?:"OE",?:"oe",P?:"P",p?:"p",?:"R",?:"r",?:"R",?:"r",?:"R",?:"r",R?:"R",r?:"r",?:"R",?:"r",?:"S",?:"s",?:"S",?:"s",?:"S",?:"S",?:"s",?:"s",?:"S",?:"s",?:"T",?:"t",?:"t",?:"T",?:"T",?:"t",?:"T",?:"t",T?:"T",t?:"t",?:"U",?:"u",?:"U",?:"u",?:"U",?:"u",?:"U",?:"u",?:"U",?:"u",?:"U",?:"u",?:"U",?:"u",V?:"V",v?:"v",?:"W",?:"w",?:"W",?:"w",X?:"X",x?:"x",?:"Y",?:"y",?:"Y",Y?:"Y",y?:"y",?:"Z",?:"z",?:"Z",?:"z",?:"Z",?:"z",?:"s",?:"f",?:"O",?:"o",?:"U",?:"u",?:"A",?:"a",?:"I",?:"i",?:"O",?:"o",?:"U",?:"u",?:"U",?:"u",?:"U",?:"u",?:"U",?:"u",?:"U",?:"u",?:"U",?:"u",?:"U",?:"u",?:"A",?:"a",?:"AE",?:"ae",?:"O",?:"o",Þ:"TH",þ:"th",?:"P",?:"p",?:"S",?:"s",X?:"X",x?:"x",?:"?",?:"?",?:"?",?:"?",A?:"A",a?:"a",E?:"E",e?:"e",I?:"I",i?:"i",?:"N",?:"n",?:"O",?:"o",?:"O",?:"o",?:"U",?:"u",?:"W",?:"w",?:"Y",?:"y",?:"A",?:"a",?:"E",?:"e",?:"I",?:"i",?:"O",?:"o",?:"R",?:"r",?:"U",?:"u",B?:"B",b?:"b",??:"C",??:"c",Ê?:"E",ê?:"e",F?:"F",f?:"f",?:"G",?:"g",?:"H",?:"h",J?:"J",?:"j",?:"K",?:"k",M?:"M",m?:"m",P?:"P",p?:"p",Q?:"Q",q?:"q",??:"R",??:"r",?:"S",?:"s",V?:"V",v?:"v",W?:"W",w?:"w",X?:"X",x?:"x",Y?:"Y",y?:"y",A?:"A",a?:"a",B?:"B",b?:"b",?:"D",?:"d",?:"E",?:"e",??:"E",??:"e",?:"H",?:"h",I?:"I",i?:"i",??:"I",??:"i",M?:"M",m?:"m",O?:"O",o?:"o",Q?:"Q",q?:"q",U?:"U",u?:"u",X?:"X",x?:"x",Z?:"Z",z?:"z",?:"?",?:"?",?:"?",?:"?"},r=Object.keys(t).join("|"),n=new RegExp(r,"g"),o=new RegExp(r,"");function i(e){return t[e]}var u=function(e){return e.replace(n,i)};e.exports=u,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=u}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";function e(e){try{return new URL(e),!0}catch{return!1}}r.r(n),r.d(n,{addQueryArgs:()=>E,buildQueryString:()=>d,cleanForSlug:()=>C,filterURLForDisplay:()=>S,getAuthority:()=>s,getFilename:()=>$,getFragment:()=>m,getPath:()=>p,getPathAndQueryString:()=>A,getProtocol:()=>c,getQueryArg:()=>I,getQueryArgs:()=>U,getQueryString:()=>g,hasQueryArg:()=>b,isEmail:()=>o,isPhoneNumber:()=>u,isURL:()=>e,isValidAuthority:()=>l,isValidFragment:()=>h,isValidPath:()=>f,isValidProtocol:()=>a,isValidQueryString:()=>O,normalizePath:()=>z,prependHTTP:()=>w,prependHTTPS:()=>Q,removeQueryArgs:()=>x,safeDecodeURI:()=>R,safeDecodeURIComponent:()=>y});const t=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i;function o(e){return t.test(e)}const i=/^(tel:)?(\+)?\d{6,15}$/;function u(e){return e=e.replace(/[-.() ]/g,""),i.test(e)}function c(e){const t=/^([^\s:]+:)/.exec(e);if(t)return t[1]}function a(e){return!!e&&/^[a-z\-.\+]+[0-9]*:$/i.test(e)}function s(e){const t=/^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function l(e){return!!e&&/^[^\s#?]+$/.test(e)}function p(e){const t=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function f(e){return!!e&&/^[^\s#?]+$/.test(e)}function g(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}function d(e){let t="";const r=Object.entries(e);let n;for(;n=r.shift();){let[e,o]=n;if(Array.isArray(o)||o&&o.constructor===Object){const t=Object.entries(o).reverse();for(const[n,o]of t)r.unshift([`${e}[${n}]`,o])}else void 0!==o&&(null===o&&(o=""),t+="&"+[e,o].map(encodeURIComponent).join("="))}return t.substr(1)}function O(e){return!!e&&/^[^\s#?\/]+$/.test(e)}function A(e){const t=p(e),r=g(e);let n="/";return t&&(n+=t),r&&(n+=`?${r}`),n}function m(e){const t=/^\S+?(#[^\s\?]*)/.exec(e);if(t)return t[1]}function h(e){return!!e&&/^#[^\s#?\/]*$/.test(e)}function y(e){try{return decodeURIComponent(e)}catch(t){return e}}function U(e){return(g(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[r,n=""]=t.split("=").filter(Boolean).map(y);if(r){!function(e,t,r){const n=t.length,o=n-1;for(let i=0;i<n;i++){let n=t[i];!n&&Array.isArray(e)&&(n=e.length.toString()),n=["__proto__","constructor","prototype"].includes(n)?n.toUpperCase():n;const u=!isNaN(Number(t[i+1]));e[n]=i===o?r:e[n]||(u?[]:{}),Array.isArray(e[n])&&!u&&(e[n]={...e[n]}),e=e[n]}}(e,r.replace(/\]/g,"").split("["),n)}return e}),Object.create(null))}function E(e="",t){if(!t||!Object.keys(t).length)return e;let r=e;const n=e.indexOf("?");return-1!==n&&(t=Object.assign(U(e),t),r=r.substr(0,n)),r+"?"+d(t)}function I(e,t){return U(e)[t]}function b(e,t){return void 0!==I(e,t)}function x(e,...t){const r=e.indexOf("?");if(-1===r)return e;const n=U(e),o=e.substr(0,r);t.forEach((e=>delete n[e]));const i=d(n);return i?o+"?"+i:o}const v=/^(?:[a-z]+:|#|\?|\.|\/)/i;function w(e){return e?(e=e.trim(),v.test(e)||o(e)?e:"http://"+e):e}function R(e){try{return decodeURI(e)}catch(t){return e}}function S(e,t=null){if(!e)return"";let r=e.replace(/^[a-z\-.\+]+[0-9]*:(\/\/)?/i,"").replace(/^www\./i,"");r.match(/^[^\/]+\/$/)&&(r=r.replace("/",""));if(!t||r.length<=t||!r.match(/\/([^\/?]+)\.(?:[\w]+)(?=\?|$)/))return r;r=r.split("?")[0];const n=r.split("/"),o=n[n.length-1];if(o.length<=t)return"?"+r.slice(-t);const i=o.lastIndexOf("."),[u,c]=[o.slice(0,i),o.slice(i+1)],a=u.slice(-3)+"."+c;return o.slice(0,t-a.length-1)+"?"+a}var j=r(9681),P=r.n(j);function C(e){return e?P()(e).replace(/[\s\./]+/g,"-").replace(/[^\p{L}\p{N}_-]+/gu,"").toLowerCase().replace(/-+/g,"-").replace(/(^-+)|(-+$)/g,""):""}function $(e){let t;if(e){try{t=new URL(e,"http://example.com").pathname.split("/").pop()}catch(e){}return t||void 0}}function z(e){const t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map((e=>e.split("="))).map((e=>e.map(decodeURIComponent))).sort(((e,t)=>e[0].localeCompare(t[0]))).map((e=>e.map(encodeURIComponent))).map((e=>e.join("="))).join("&"):n}function Q(e){return e?e.startsWith("http://")?e:(e=w(e)).replace(/^http:/,"https:"):e}})(),(window.wp=window.wp||{}).url=n})();