From 2966512671e7382c4c8ff01754314867da0a4e80 Mon Sep 17 00:00:00 2001 From: imgix-git-robot Date: Tue, 11 Oct 2022 17:26:16 +0000 Subject: [PATCH] chore(release): 3.6.1 ## [3.6.1](https://github.com/imgix/js-core/compare/v3.6.0...v3.6.1) (2022-10-11) ### Bug Fixes * **deps:** update dependency ufo to ^0.8.0 ([6c0497b](https://github.com/imgix/js-core/commit/6c0497b3741f4f83d57def9b133a20218822cd89)) [skip ci] --- dist/imgix-js-core.umd.js | 2 +- dist/index.cjs.js | 2 +- dist/index.esm.js | 2 +- package.json | 2 +- src/constants.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/imgix-js-core.umd.js b/dist/imgix-js-core.umd.js index 3dc21504..49dbd3f6 100644 --- a/dist/imgix-js-core.umd.js +++ b/dist/imgix-js-core.umd.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).ImgixClient=e()}(this,function(){"use strict";function e(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function c(n){for(var t=1;tt.length)&&(e=t.length);for(var r=0,n=new Array(e);r{let r={};return t.forEach((t,e)=>r[t]=e),r})(s),z=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,y=String.fromCharCode.bind(String),p="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):(t,e=t=>t)=>new Uint8Array(Array.prototype.slice.call(t,0).map(e)),g=t=>t.replace(/=/g,"").replace(/[+\/]/g,t=>"+"==t?"-":"_"),b=t=>t.replace(/[^A-Za-z0-9\+\/]/g,"");var v=e=>{let r,n,o,i,a="";var t=e.length%3;for(let t=0;t>18&63]+s[r>>12&63]+s[r>>6&63]+s[63&r]}return t?a.slice(0,t-3)+"===".substring(t):a};const m=t?t=>btoa(t):i?t=>Buffer.from(t,"binary").toString("base64"):v,w=i?t=>Buffer.from(t).toString("base64"):r=>{let n=[];for(let t=0,e=r.length;te?g(w(t)):w(t),D=t=>{var e;return t.length<2?(e=t.charCodeAt(0))<128?t:e<2048?y(192|e>>>6)+y(128|63&e):y(224|e>>>12&15)+y(128|e>>>6&63)+y(128|63&e):(e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320),y(240|e>>>18&7)+y(128|e>>>12&63)+y(128|e>>>6&63)+y(128|63&e))},W=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,S=t=>t.replace(W,D),x=i?t=>Buffer.from(t,"utf8").toString("base64"):u?t=>w(u.encode(t)):t=>m(S(t)),T=(t,e=!1)=>e?g(x(t)):x(t);t=t=>T(t,!0);const H=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,M=t=>{switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return y(55296+(e>>>10))+y(56320+(1023&e));case 3:return y((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return y((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},P=t=>t.replace(H,M);var U=e=>{if(e=e.replace(/\s+/g,""),!z.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let r,n="",o,i;for(let t=0;t>16&255):64===i?y(r>>16&255,r>>8&255):y(r>>16&255,r>>8&255,255&r);return n};const B=F?t=>atob(b(t)):i?t=>Buffer.from(t,"base64").toString("binary"):U,C=i?t=>p(Buffer.from(t,"base64")):t=>p(B(t),t=>t.charCodeAt(0)),R=t=>C(E(t)),Z=i?t=>Buffer.from(t,"base64").toString("utf8"):a?t=>a.decode(C(t)):t=>P(B(t)),E=t=>b(t.replace(/[-_]/g,t=>"-"==t?"+":"/")),j=t=>Z(E(t));function _(){var t=(t,e)=>Object.defineProperty(String.prototype,t,N(e));t("fromBase64",function(){return j(this)}),t("toBase64",function(t){return T(this,t)}),t("toBase64URI",function(){return T(this,!0)}),t("toBase64URL",function(){return T(this,!0)}),t("toUint8Array",function(){return R(this)})}function q(){var t=(t,e)=>Object.defineProperty(Uint8Array.prototype,t,N(e));t("toBase64",function(t){return A(this,t)}),t("toBase64URI",function(){return A(this,!0)}),t("toBase64URL",function(){return A(this,!0)})}const N=t=>({value:t,enumerable:!1,writable:!0,configurable:!0});const Q={version:k,VERSION:"3.7.2",atob:B,atobPolyfill:U,btoa:m,btoaPolyfill:v,fromBase64:j,toBase64:T,encode:T,encodeURI:t,encodeURL:t,utob:S,btou:P,decode:j,isValid:t=>{if("string"!=typeof t)return!1;t=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:A,toUint8Array:R,extendString:_,extendUint8Array:q,extendBuiltins:()=>{_(),q()}};function V(t,e){return t(e={exports:{}},e.exports),e.exports}function $(t){return null!=t&&(K(t)||"function"==typeof(e=t).readFloatLE&&"function"==typeof e.slice&&K(e.slice(0,0))||!!t._isBuffer);var e}var G=V(function(t){var i,r;i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(t,e){return t<>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&r.rotl(t,8)|4278255360&r.rotl(t,24);for(var e=0;e>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r>>6*(3-o)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],r=0,n=0;r>>6-2*n);return e}},t.exports=r}),O={utf8:{stringToBytes:function(t){return O.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(O.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r>>24)|4278255360&(r[u]<<24|r[u]>>>8);r[e>>>5]|=128<>>9<<4)]=e;for(var s=g._ff,c=g._gg,l=g._hh,f=g._ii,u=0;u>>0,o=o+d>>>0,i=i+y>>>0,a=a+p>>>0}return b.endian([n,o,i,a])}var b,v,m,w;b=G,v=J.utf8,m=$,w=J.bin,g._ff=function(t,e,r,n,o,i,a){t=t+(e&r|~e&n)+(o>>>0)+a;return(t<>>32-i)+e},g._gg=function(t,e,r,n,o,i,a){t=t+(e&n|r&~n)+(o>>>0)+a;return(t<>>32-i)+e},g._hh=function(t,e,r,n,o,i,a){t=t+(e^r^n)+(o>>>0)+a;return(t<>>32-i)+e},g._ii=function(t,e,r,n,o,i,a){t=t+(r^(e|~n))+(o>>>0)+a;return(t<>>32-i)+e},g._blocksize=16,g._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);t=b.wordsToBytes(g(t,e));return e&&e.asBytes?t:e&&e.asString?w.bytesToString(t):b.bytesToHex(t)}});const Y=/\+/g;function tt(e=""){try{return decodeURIComponent(""+e)}catch(t){return""+e}}function et(t=""){const e={};for(const o of(t="?"===t[0]?t.substr(1):t).split("&")){var r,n=o.match(/([^=]+)=?(.*)/)||[];n.length<2||"__proto__"!==(r=tt(n[1]))&&"constructor"!==r&&(n=tt((n[2]||"").replace(Y," ")),e[r]?Array.isArray(e[r])?e[r].push(n):e[r]=[e[r],n]:e[r]=n)}return e}function rt(t,e=!1){return/^\w+:\/\/.+/.test(t)||e&&/^\/\/[^/]+/.test(t)}function nt(t){return et(I(t).search)}function I(t="",e){if(!rt(t,!0))return e?I(e+t):ot(t);const[r="",n,o]=(t.replace(/\\/g,"/").match(/([^:/]+:)?\/\/([^/@]+@)?(.*)/)||[]).splice(1);var[e="",t=""]=(o.match(/([^/?]*)(.*)?/)||[]).splice(1),{pathname:t,search:i,hash:a}=ot(t);return{protocol:r,auth:n?n.substr(0,n.length-1):"",host:e,pathname:t,search:i,hash:a}}function ot(t=""){var[t="",e="",r=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:e,hash:r}}var it=/^(?:[a-z\d\-_]{1,62}\.){0,125}(?:[a-z\d](?:\-(?=\-*[a-z\d])|[a-z]|\d){0,62}\.)[a-z\d]{1,63}$/i,at={1:75,2:50,3:35,4:23,5:20},ut=[1,2,3,4,5],st={domain:null,useHTTPS:!0,includeLibraryParam:!0,urlPrefix:"https://",secureURLToken:null};function L(t){var e=t.url,e=void 0===e?"":e,t=t.useHttps,t=void 0!==t&&t?"https://":"http://";return rt(e,!0)?I(e):L({url:t+e})}function ct(t,e){if(!Number.isInteger(t)||!Number.isInteger(e)||t<=0||e<=0||et.length)&&(e=t.length);for(var r=0,n=new Array(e);r{let r={};return t.forEach((t,e)=>r[t]=e),r})(s),z=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,y=String.fromCharCode.bind(String),p="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):(t,e=t=>t)=>new Uint8Array(Array.prototype.slice.call(t,0).map(e)),g=t=>t.replace(/=/g,"").replace(/[+\/]/g,t=>"+"==t?"-":"_"),b=t=>t.replace(/[^A-Za-z0-9\+\/]/g,"");var v=e=>{let r,n,o,i,a="";var t=e.length%3;for(let t=0;t>18&63]+s[r>>12&63]+s[r>>6&63]+s[63&r]}return t?a.slice(0,t-3)+"===".substring(t):a};const m=t?t=>btoa(t):i?t=>Buffer.from(t,"binary").toString("base64"):v,w=i?t=>Buffer.from(t).toString("base64"):r=>{let n=[];for(let t=0,e=r.length;te?g(w(t)):w(t),D=t=>{var e;return t.length<2?(e=t.charCodeAt(0))<128?t:e<2048?y(192|e>>>6)+y(128|63&e):y(224|e>>>12&15)+y(128|e>>>6&63)+y(128|63&e):(e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320),y(240|e>>>18&7)+y(128|e>>>12&63)+y(128|e>>>6&63)+y(128|63&e))},W=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,S=t=>t.replace(W,D),x=i?t=>Buffer.from(t,"utf8").toString("base64"):u?t=>w(u.encode(t)):t=>m(S(t)),T=(t,e=!1)=>e?g(x(t)):x(t);t=t=>T(t,!0);const H=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,M=t=>{switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return y(55296+(e>>>10))+y(56320+(1023&e));case 3:return y((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return y((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},P=t=>t.replace(H,M);var U=e=>{if(e=e.replace(/\s+/g,""),!z.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let r,n="",o,i;for(let t=0;t>16&255):64===i?y(r>>16&255,r>>8&255):y(r>>16&255,r>>8&255,255&r);return n};const B=F?t=>atob(b(t)):i?t=>Buffer.from(t,"base64").toString("binary"):U,C=i?t=>p(Buffer.from(t,"base64")):t=>p(B(t),t=>t.charCodeAt(0)),R=t=>C(E(t)),Z=i?t=>Buffer.from(t,"base64").toString("utf8"):a?t=>a.decode(C(t)):t=>P(B(t)),E=t=>b(t.replace(/[-_]/g,t=>"-"==t?"+":"/")),j=t=>Z(E(t));function _(){var t=(t,e)=>Object.defineProperty(String.prototype,t,N(e));t("fromBase64",function(){return j(this)}),t("toBase64",function(t){return T(this,t)}),t("toBase64URI",function(){return T(this,!0)}),t("toBase64URL",function(){return T(this,!0)}),t("toUint8Array",function(){return R(this)})}function q(){var t=(t,e)=>Object.defineProperty(Uint8Array.prototype,t,N(e));t("toBase64",function(t){return A(this,t)}),t("toBase64URI",function(){return A(this,!0)}),t("toBase64URL",function(){return A(this,!0)})}const N=t=>({value:t,enumerable:!1,writable:!0,configurable:!0});const Q={version:k,VERSION:"3.7.2",atob:B,atobPolyfill:U,btoa:m,btoaPolyfill:v,fromBase64:j,toBase64:T,encode:T,encodeURI:t,encodeURL:t,utob:S,btou:P,decode:j,isValid:t=>{return"string"==typeof t&&(t=t.replace(/\s+/g,"").replace(/={0,2}$/,""),!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t))},fromUint8Array:A,toUint8Array:R,extendString:_,extendUint8Array:q,extendBuiltins:()=>{_(),q()}};function V(t,e){return t(e={exports:{}},e.exports),e.exports}function $(t){return null!=t&&(K(t)||"function"==typeof(e=t).readFloatLE&&"function"==typeof e.slice&&K(e.slice(0,0))||!!t._isBuffer);var e}var G=V(function(t){var i,r;i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(t,e){return t<>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&r.rotl(t,8)|4278255360&r.rotl(t,24);for(var e=0;e>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r>>6*(3-o)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],r=0,n=0;r>>6-2*n);return e}},t.exports=r}),O={utf8:{stringToBytes:function(t){return O.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(O.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r>>24)|4278255360&(r[u]<<24|r[u]>>>8);r[e>>>5]|=128<>>9<<4)]=e;for(var s=g._ff,c=g._gg,l=g._hh,f=g._ii,u=0;u>>0,o=o+d>>>0,i=i+y>>>0,a=a+p>>>0}return b.endian([n,o,i,a])}var b,v,m,w;b=G,v=J.utf8,m=$,w=J.bin,g._ff=function(t,e,r,n,o,i,a){t=t+(e&r|~e&n)+(o>>>0)+a;return(t<>>32-i)+e},g._gg=function(t,e,r,n,o,i,a){t=t+(e&n|r&~n)+(o>>>0)+a;return(t<>>32-i)+e},g._hh=function(t,e,r,n,o,i,a){t=t+(e^r^n)+(o>>>0)+a;return(t<>>32-i)+e},g._ii=function(t,e,r,n,o,i,a){t=t+(r^(e|~n))+(o>>>0)+a;return(t<>>32-i)+e},g._blocksize=16,g._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);t=b.wordsToBytes(g(t,e));return e&&e.asBytes?t:e&&e.asString?w.bytesToString(t):b.bytesToHex(t)}});const Y=/\+/g;function tt(e=""){try{return decodeURIComponent(""+e)}catch(t){return""+e}}function et(t=""){const e={};for(const o of(t="?"===t[0]?t.substr(1):t).split("&")){var r,n=o.match(/([^=]+)=?(.*)/)||[];n.length<2||"__proto__"!==(r=tt(n[1]))&&"constructor"!==r&&(n=tt((n[2]||"").replace(Y," ")),e[r]?Array.isArray(e[r])?e[r].push(n):e[r]=[e[r],n]:e[r]=n)}return e}const rt=/^\w+:(\/\/)?/,nt=/^\/\/[^/]+/;function ot(t,e=!1){return rt.test(t)||e&&nt.test(t)}function it(t){return et(I(t).search)}function I(t="",e){if(!ot(t,!0))return e?I(e+t):at(t);const[r="",n,o=""]=(t.replace(/\\/g,"/").match(/([^:/]+:)?\/\/([^/@]+@)?(.*)/)||[]).splice(1);var[e="",t=""]=(o.match(/([^/?#]*)(.*)?/)||[]).splice(1),{pathname:t,search:i,hash:a}=at(t);return{protocol:r,auth:n?n.substr(0,n.length-1):"",host:e,pathname:t,search:i,hash:a}}function at(t=""){var[t="",e="",r=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:e,hash:r}}var ut=/^(?:[a-z\d\-_]{1,62}\.){0,125}(?:[a-z\d](?:\-(?=\-*[a-z\d])|[a-z]|\d){0,62}\.)[a-z\d]{1,63}$/i,st={1:75,2:50,3:35,4:23,5:20},ct=[1,2,3,4,5],lt={domain:null,useHTTPS:!0,includeLibraryParam:!0,urlPrefix:"https://",secureURLToken:null};function L(t){var e=t.url,e=void 0===e?"":e,t=t.useHttps,t=void 0!==t&&t?"https://":"http://";return ot(e,!0)?I(e):L({url:t+e})}function ft(t,e){if(!Number.isInteger(t)||!Number.isInteger(e)||t<=0||e<=0||e