All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.primefaces.core.core.polyfill.replaceall.min.js Maven / Gradle / Ivy

There is a newer version: 14.0.0
Show newest version
// polyfill for String.prototype.replaceall
// minified version of https://github.com/es-shims/String.prototype.replaceAll
!function(){return function t(e,r,n){function o(a,c){if(!r[a]){if(!e[a]){var p="function"==typeof require&&require;if(!c&&p)return p(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=r[a]={exports:{}};e[a][0].call(l.exports,function(t){return o(e[a][1][t]||t)},l,l.exports,t,e,r,n)}return r[a].exports}for(var i="function"==typeof require&&require,a=0;a-1?o(r):r}},{"./":4,"get-intrinsic":29}],4:[function(t,e,r){"use strict";var n=t("function-bind"),o=t("get-intrinsic"),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||n.call(a,i),p=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}e.exports=function(t){var e=c(n,a,arguments);p&&u&&(p(e,"length").configurable&&u(e,"length",{value:1+l(0,t.length-(arguments.length-1))}));return e};var f=function(){return c(n,i,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},{"function-bind":28,"get-intrinsic":29}],5:[function(t,e,r){"use strict";var n=t("object-keys"),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,c=Object.defineProperty,p=c&&function(){var t={};try{for(var e in c(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),u=function(t,e,r,n){var o;e in t&&("function"!=typeof(o=n)||"[object Function]"!==i.call(o)||!n())||(p?c(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},l=function(t,e){var r=arguments.length>2?arguments[2]:{},i=n(e);o&&(i=a.call(i,Object.getOwnPropertySymbols(e)));for(var c=0;c2?arguments[2]:[];if(!a(r))throw new i("Assertion failed: optional `argumentsList`, if provided, must be a List");return c(t,e,r)}},{"./IsArray":11,"call-bind/callBound":3,"get-intrinsic":29}],7:[function(t,e,r){"use strict";var n=t("get-intrinsic")("%TypeError%"),o=t("object-inspect"),i=t("./IsPropertyKey"),a=t("./Type");e.exports=function(t,e){if("Object"!==a(t))throw new n("Assertion failed: Type(O) is not Object");if(!i(e))throw new n("Assertion failed: IsPropertyKey(P) is not true, got "+o(e));return t[e]}},{"./IsPropertyKey":14,"./Type":18,"get-intrinsic":29,"object-inspect":35}],8:[function(t,e,r){"use strict";var n=t("get-intrinsic")("%TypeError%"),o=t("./GetV"),i=t("./IsCallable"),a=t("./IsPropertyKey");e.exports=function(t,e){if(!a(e))throw new n("Assertion failed: IsPropertyKey(P) is not true");var r=o(t,e);if(null!=r){if(!i(r))throw new n(e+"is not a function");return r}}},{"./GetV":10,"./IsCallable":12,"./IsPropertyKey":14,"get-intrinsic":29}],9:[function(t,e,r){"use strict";var n=t("get-intrinsic")("%TypeError%"),o=t("call-bind/callBound"),i=t("../helpers/regexTester"),a=t("../helpers/every"),c=o("String.prototype.charAt"),p=o("String.prototype.slice"),u=o("String.prototype.indexOf"),l=parseInt,f=i(/^[0-9]$/),y=t("object-inspect"),s=t("./Get"),b=t("./IsArray"),g=t("./IsInteger"),d=t("./ToObject"),h=t("./ToString"),v=t("./Type"),m=0 in[void 0],S=function(t,e,r){return"String"===v(t)||(m?!(e in r):"Undefined"===v(t))};e.exports=function(t,e,r,o,i,m){if("String"!==v(t))throw new n("Assertion failed: `matched` must be a String");var j=t.length;if("String"!==v(e))throw new n("Assertion failed: `str` must be a String");var A=e.length;if(!g(r)||r<0||r>A)throw new n("Assertion failed: `position` must be a nonnegative integer, and less than or equal to the length of `string`, got "+y(r));if(!b(o)||!a(o,S))throw new n("Assertion failed: `captures` must be a List of Strings, got "+y(o));if("String"!==v(m))throw new n("Assertion failed: `replacement` must be a String");var O=r+j,w=o.length;"Undefined"!==v(i)&&(i=d(i));for(var P="",x=0;x=m.length,F=x+2>=m.length;if("$"!==I||E)P+=c(m,x);else{var R=c(m,x+1);if("$"===R)P+="$",x+=1;else if("&"===R)P+=t,x+=1;else if("`"===R)P+=0===r?"":p(e,0,r-1),x+=1;else if("'"===R)P+=O>=A?"":p(e,O),x+=1;else{var T=F?null:c(m,x+2);if(!f(R)||"0"===R||!F&&f(T))if(f(R)&&(F||f(T))){var k=R+T,U=l(k,10)-1;P+=k<=w&&"Undefined"===v(o[U])?"":o[U],x+=2}else if("<"===R)if("Undefined"===v(i))P+="$<",x+=2;else{var N=u(m,">",x);if(N>-1){var $=p(m,x+"$<".length,N),M=s(i,$);"Undefined"!==v(M)&&(P+=h(M)),x+=("<"+$+">").length}}else P+="$";else{var B=l(R,10);P+=B<=w&&"Undefined"===v(o[B-1])?"":o[B-1],x+=1}}}}return P}},{"../helpers/every":23,"../helpers/regexTester":26,"./Get":7,"./IsArray":11,"./IsInteger":13,"./ToObject":16,"./ToString":17,"./Type":18,"call-bind/callBound":3,"get-intrinsic":29,"object-inspect":35}],10:[function(t,e,r){"use strict";var n=t("get-intrinsic")("%TypeError%"),o=t("./IsPropertyKey"),i=t("./ToObject");e.exports=function(t,e){if(!o(e))throw new n("Assertion failed: IsPropertyKey(P) is not true");return i(t)[e]}},{"./IsPropertyKey":14,"./ToObject":16,"get-intrinsic":29}],11:[function(t,e,r){"use strict";var n=t("get-intrinsic")("%Array%"),o=!n.isArray&&t("call-bind/callBound")("Object.prototype.toString");e.exports=n.isArray||function(t){return"[object Array]"===o(t)}},{"call-bind/callBound":3,"get-intrinsic":29}],12:[function(t,e,r){"use strict";e.exports=t("is-callable")},{"is-callable":33}],13:[function(t,e,r){"use strict";var n=t("./abs"),o=t("./floor"),i=t("../helpers/isNaN"),a=t("../helpers/isFinite");e.exports=function(t){if("number"!=typeof t||i(t)||!a(t))return!1;var e=n(t);return o(e)===e}},{"../helpers/isFinite":24,"../helpers/isNaN":25,"./abs":19,"./floor":20}],14:[function(t,e,r){"use strict";e.exports=function(t){return"string"==typeof t||"symbol"==typeof t}},{}],15:[function(t,e,r){"use strict";e.exports=t("../5/CheckObjectCoercible")},{"../5/CheckObjectCoercible":21}],16:[function(t,e,r){"use strict";var n=t("get-intrinsic")("%Object%"),o=t("./RequireObjectCoercible");e.exports=function(t){return o(t),n(t)}},{"./RequireObjectCoercible":15,"get-intrinsic":29}],17:[function(t,e,r){"use strict";var n=t("get-intrinsic"),o=n("%String%"),i=n("%TypeError%");e.exports=function(t){if("symbol"==typeof t)throw new i("Cannot convert a Symbol value to a string");return o(t)}},{"get-intrinsic":29}],18:[function(t,e,r){"use strict";var n=t("../5/Type");e.exports=function(t){return"symbol"==typeof t?"Symbol":"bigint"==typeof t?"BigInt":n(t)}},{"../5/Type":22}],19:[function(t,e,r){"use strict";var n=t("get-intrinsic")("%Math.abs%");e.exports=function(t){return n(t)}},{"get-intrinsic":29}],20:[function(t,e,r){"use strict";var n=Math.floor;e.exports=function(t){return n(t)}},{}],21:[function(t,e,r){"use strict";var n=t("get-intrinsic")("%TypeError%");e.exports=function(t,e){if(null==t)throw new n(e||"Cannot call method on "+t);return t}},{"get-intrinsic":29}],22:[function(t,e,r){"use strict";e.exports=function(t){return null===t?"Null":void 0===t?"Undefined":"function"==typeof t||"object"==typeof t?"Object":"number"==typeof t?"Number":"boolean"==typeof t?"Boolean":"string"==typeof t?"String":void 0}},{}],23:[function(t,e,r){"use strict";e.exports=function(t,e){for(var r=0;r1&&"boolean"!=typeof e)throw new i('"allowMissing" argument must be a boolean');var r=function(t){var e=j(t,0,1),r=j(t,-1);if("%"===e&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new n("invalid intrinsic syntax, expected opening `%`");var o=[];return S(t,A,function(t,e,r,n){o[o.length]=r?S(n,O,"$1"):e||t}),o}(t),o=r.length>0?r[0]:"",a=w("%"+o+"%",e),p=a.name,u=a.value,l=!1,f=a.alias;f&&(o=f[0],m(r,v([0,1],f)));for(var y=1,s=!0;y=r.length){var x=c(u,g);u=(s=!!x)&&"get"in x&&!("originalValue"in x.get)?x.get:u[g]}else s=h(u,g),u=u[g];s&&!l&&(b[p]=u)}}return u}},{"function-bind":28,has:32,"has-symbols":30}],30:[function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=t("./shams");e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},{"./shams":31}],31:[function(t,e,r){"use strict";e.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}},{}],32:[function(t,e,r){"use strict";var n=t("function-bind");e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":28}],33:[function(t,e,r){"use strict";var n,o,i=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{n=Object.defineProperty({},"length",{get:function(){throw o}}),o={},a(function(){throw 42},null,n)}catch(t){t!==o&&(a=null)}else a=null;var c=/^\s*class\b/,p=function(t){try{var e=i.call(t);return c.test(e)}catch(t){return!1}},u=Object.prototype.toString,l="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,f="object"==typeof document&&void 0===document.all&&void 0!==document.all?document.all:{};e.exports=a?function(t){if(t===f)return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;try{a(t,null,n)}catch(t){if(t!==o)return!1}return!p(t)}:function(t){if(t===f)return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(l)return function(t){try{return!p(t)&&(i.call(t),!0)}catch(t){return!1}}(t);if(p(t))return!1;var e=u.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e}},{}],34:[function(t,e,r){"use strict";var n,o,i,a,c=t("call-bind/callBound"),p=t("has-symbols/shams")()&&!!Symbol.toStringTag;if(p){n=c("Object.prototype.hasOwnProperty"),o=c("RegExp.prototype.exec"),i={};var u=function(){throw i};a={toString:u,valueOf:u},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=u)}var l=c("Object.prototype.toString"),f=Object.getOwnPropertyDescriptor;e.exports=p?function(t){if(!t||"object"!=typeof t)return!1;var e=f(t,"lastIndex");if(!(e&&n(e,"value")))return!1;try{o(t,a)}catch(t){return t===i}}:function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&"[object RegExp]"===l(t)}},{"call-bind/callBound":3,"has-symbols/shams":31}],35:[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,p=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=c&&p&&"function"==typeof p.get?p.get:null,l=c&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,y="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,s="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,b=Boolean.prototype.valueOf,g=Object.prototype.toString,d=Function.prototype.toString,h=String.prototype.match,v="function"==typeof BigInt?BigInt.prototype.valueOf:null,m=Object.getOwnPropertySymbols,S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,j="function"==typeof Symbol&&"object"==typeof Symbol.iterator,A=Object.prototype.propertyIsEnumerable,O=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),w=t("./util.inspect").custom,P=w&&R(w)?w:null,x="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function I(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function E(t){return String(t).replace(/"/g,""")}function F(t){return!("[object Array]"!==U(t)||x&&"object"==typeof t&&x in t)}function R(t){if(j)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!S)return!1;try{return S.call(t),!0}catch(t){}return!1}e.exports=function t(e,r,n,o){var c=r||{};if(k(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(k(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 p=!k(c,"customInspect")||c.customInspect;if("boolean"!=typeof p)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(k(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,r){if(e.length>r.maxStringLength){var n=e.length-r.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return t(e.slice(0,r.maxStringLength),r)+o}var i=e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,$);return I(i,"single",r)}(e,c);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var g=void 0===c.depth?5:c.depth;if(void 0===n&&(n=0),n>=g&&g>0&&"object"==typeof e)return F(e)?"[Array]":"[Object]";var m=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=Array(t.indent+1).join(" ")}return{base:r,prev:Array(e+1).join(r)}}(c,n);if(void 0===o)o=[];else if(N(o,e)>=0)return"[Circular]";function A(e,r,i){if(r&&(o=o.slice()).push(r),i){var a={depth:c.depth};return k(c,"quoteStyle")&&(a.quoteStyle=c.quoteStyle),t(e,a,n+1,o)}return t(e,c,n+1,o)}if("function"==typeof e){var w=function(t){if(t.name)return t.name;var e=h.call(d.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),T=G(e,A);return"[Function"+(w?": "+w:" (anonymous)")+"]"+(T.length>0?" { "+T.join(", ")+" }":"")}if(R(e)){var _=j?String(e).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):S.call(e);return"object"!=typeof e||j?_:M(_)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var D="<"+String(e.nodeName).toLowerCase(),q=e.attributes||[],L=0;L"}if(F(e)){if(0===e.length)return"[]";var V=G(e,A);return m&&!function(t){for(var e=0;e=0)return!1;return!0}(V)?"["+W(V,m)+"]":"[ "+V.join(", ")+" ]"}if(function(t){return!("[object Error]"!==U(t)||x&&"object"==typeof t&&x in t)}(e)){var K=G(e,A);return 0===K.length?"["+String(e)+"]":"{ ["+String(e)+"] "+K.join(", ")+" }"}if("object"==typeof e&&p){if(P&&"function"==typeof e[P])return e[P]();if("function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{u.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var z=[];return a.call(e,function(t,r){z.push(A(r,e,!0)+" => "+A(t,e))}),C("Map",i.call(e),z,m)}if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{u.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var J=[];return l.call(e,function(t){J.push(A(t,e))}),C("Set",u.call(e),J,m)}if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{y.call(t,y)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return B("WeakMap");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{y.call(t,y);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return B("WeakSet");if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{return s.call(t),!0}catch(t){}return!1}(e))return B("WeakRef");if(function(t){return!("[object Number]"!==U(t)||x&&"object"==typeof t&&x in t)}(e))return M(A(Number(e)));if(function(t){if(!t||"object"!=typeof t||!v)return!1;try{return v.call(t),!0}catch(t){}return!1}(e))return M(A(v.call(e)));if(function(t){return!("[object Boolean]"!==U(t)||x&&"object"==typeof t&&x in t)}(e))return M(b.call(e));if(function(t){return!("[object String]"!==U(t)||x&&"object"==typeof t&&x in t)}(e))return M(A(String(e)));if(!function(t){return!("[object Date]"!==U(t)||x&&"object"==typeof t&&x in t)}(e)&&!function(t){return!("[object RegExp]"!==U(t)||x&&"object"==typeof t&&x in t)}(e)){var H=G(e,A),X=O?O(e)===Object.prototype:e instanceof Object||e.constructor===Object,Y=e instanceof Object?"":"null prototype",Q=!X&&x&&Object(e)===e&&x in e?U(e).slice(8,-1):Y?"Object":"",Z=(X||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(Q||Y?"["+[].concat(Q||[],Y||[]).join(": ")+"] ":"");return 0===H.length?Z+"{}":m?Z+"{"+W(H,m)+"}":Z+"{ "+H.join(", ")+" }"}return String(e)};var T=Object.prototype.hasOwnProperty||function(t){return t in this};function k(t,e){return T.call(t,e)}function U(t){return g.call(t)}function N(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r0&&!o.call(t,0))for(var g=0;g0)for(var d=0;d=0&&"[object Function]"===n.call(t.callee)),r}},{}],39:[function(t,e,r){"use strict";var n=t("es-abstract/2020/Call"),o=t("es-abstract/2020/GetMethod"),i=t("es-abstract/2020/GetSubstitution"),a=t("es-abstract/2020/IsCallable"),c=t("es-abstract/2020/IsInteger"),p=t("es-abstract/2020/RequireObjectCoercible"),u=t("es-abstract/2020/ToString"),l=t("es-abstract/2020/Type"),f=t("get-intrinsic"),y=t("call-bind/callBound"),s=t("has-symbols")(),b=t("is-regex"),g=f("%Math.max%"),d=f("%TypeError%"),h=y("Array.prototype.push"),v=y("String.prototype.slice"),m=y("String.prototype.indexOf"),S=y("String.prototype.replace");function j(t,e,r){if("String"!==l(t)||"String"!==l(e))throw new d("Assertion failed: string and searchValue must both be Strings");if(!c(r)||r<0)throw new d("Assertion failed: fromIndex must be a nonnegative integer");var n=t.length;if(""===e&&r<=n)return r;var o=e.length;if(r>n)return-1;for(var i=r;i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy