forked from cloudinary/pkg-cloudinary-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudinary-core-shrinkwrap.min.js
5 lines (5 loc) · 96.2 KB
/
cloudinary-core-shrinkwrap.min.js
1
2
3
4
5
var slice=[].slice,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;!function(root,factory){var name,ref,results,value;if("function"==typeof define&&define.amd)return define(factory);if("object"==typeof exports)return module.exports=factory();root.cloudinary||(root.cloudinary={}),ref=factory(),results=[];for(name in ref)value=ref[name],results.push(root.cloudinary[name]=value);return results}(this,function(){var ArrayParam,BaseUtil,ClientHintsMetaTag,Cloudinary,Condition,Configuration,Expression,ExpressionParam,HtmlTag,ImageTag,Layer,LayerParam,Param,RangeParam,RawParam,SubtitlesLayer,TextLayer,Transformation,TransformationBase,TransformationParam,Util,VideoTag,addClass,allStrings,augmentWidthOrHeight,camelCase,cloudinary,contains,convertKeys,crc32,cssExpand,cssValue,curCSS,defaults,domStyle,getAttribute,getData,getStyles,getWidthOrHeight,hasClass,isNumberLike,m,parameters,pnum,reWords,removeAttribute,rnumnonpx,setAttribute,setAttributes,setData,smartEscape,snakeCase,utf8_encode,width,withCamelCaseKeys,withSnakeCaseKeys,without;_=function(){function addMapEntry(map,pair){return map.set(pair[0],pair[1]),map}function addSetEntry(set,value){return set.add(value),set}function apply(func,thisArg,args){var length=args?args.length:0;switch(length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2])}return func.apply(thisArg,args)}function arrayEach(array,iteratee){for(var index=-1,length=array.length;++index<length&&iteratee(array[index],index,array)!==!1;);return array}function arrayFilter(array,predicate){for(var index=-1,length=array.length,resIndex=-1,result=[];++index<length;){var value=array[index];predicate(value,index,array)&&(result[++resIndex]=value)}return result}function arrayIncludes(array,value){return!!array.length&&baseIndexOf(array,value,0)>-1}function arrayIncludesWith(array,value,comparator){for(var index=-1,length=array.length;++index<length;)if(comparator(value,array[index]))return!0;return!1}function arrayMap(array,iteratee){for(var index=-1,length=array.length,result=Array(length);++index<length;)result[index]=iteratee(array[index],index,array);return result}function arrayPush(array,values){for(var index=-1,length=values.length,offset=array.length;++index<length;)array[offset+index]=values[index];return array}function arrayReduce(array,iteratee,accumulator,initAccum){var index=-1,length=array.length;for(initAccum&&length&&(accumulator=array[++index]);++index<length;)accumulator=iteratee(accumulator,array[index],index,array);return accumulator}function baseIndexOf(array,value,fromIndex){if(value!==value)return indexOfNaN(array,fromIndex);for(var index=fromIndex-1,length=array.length;++index<length;)if(array[index]===value)return index;return-1}function baseTimes(n,iteratee){for(var index=-1,result=Array(n);++index<n;)result[index]=iteratee(index);return result}function baseUnary(func){return function(value){return func(value)}}function baseValues(object,props){return arrayMap(props,function(key){return object[key]})}function charsStartIndex(strSymbols,chrSymbols){for(var index=-1,length=strSymbols.length;++index<length&&baseIndexOf(chrSymbols,strSymbols[index],0)>-1;);return index}function charsEndIndex(strSymbols,chrSymbols){for(var index=strSymbols.length;index--&&baseIndexOf(chrSymbols,strSymbols[index],0)>-1;);return index}function checkGlobal(value){return value&&value.Object===Object?value:null}function deburrLetter(letter){return deburredLetters[letter]}function indexOfNaN(array,fromIndex,fromRight){for(var length=array.length,index=fromIndex+(fromRight?0:-1);fromRight?index--:++index<length;){var other=array[index];if(other!==other)return index}return-1}function isHostObject(value){var result=!1;if(null!=value&&"function"!=typeof value.toString)try{result=!!(value+"")}catch(e){}return result}function isIndex(value,length){return value="number"==typeof value||reIsUint.test(value)?+value:-1,length=null==length?MAX_SAFE_INTEGER:length,value>-1&&value%1==0&&value<length}function iteratorToArray(iterator){for(var data,result=[];!(data=iterator.next()).done;)result.push(data.value);return result}function mapToArray(map){var index=-1,result=Array(map.size);return map.forEach(function(value,key){result[++index]=[key,value]}),result}function setToArray(set){var index=-1,result=Array(set.size);return set.forEach(function(value){result[++index]=value}),result}function stringSize(string){if(!string||!reHasComplexSymbol.test(string))return string.length;for(var result=reComplexSymbol.lastIndex=0;reComplexSymbol.test(string);)result++;return result}function stringToArray(string){return string.match(reComplexSymbol)}function lodash(){}function Hash(){}function hashDelete(hash,key){return hashHas(hash,key)&&delete hash[key]}function hashGet(hash,key){if(nativeCreate){var result=hash[key];return result===HASH_UNDEFINED?undefined:result}return hasOwnProperty.call(hash,key)?hash[key]:undefined}function hashHas(hash,key){return nativeCreate?hash[key]!==undefined:hasOwnProperty.call(hash,key)}function hashSet(hash,key,value){hash[key]=nativeCreate&&value===undefined?HASH_UNDEFINED:value}function MapCache(values){var index=-1,length=values?values.length:0;for(this.clear();++index<length;){var entry=values[index];this.set(entry[0],entry[1])}}function mapClear(){this.__data__={hash:new Hash,map:Map?new Map:[],string:new Hash}}function mapDelete(key){var data=this.__data__;return isKeyable(key)?hashDelete("string"==typeof key?data.string:data.hash,key):Map?data.map.delete(key):assocDelete(data.map,key)}function mapGet(key){var data=this.__data__;return isKeyable(key)?hashGet("string"==typeof key?data.string:data.hash,key):Map?data.map.get(key):assocGet(data.map,key)}function mapHas(key){var data=this.__data__;return isKeyable(key)?hashHas("string"==typeof key?data.string:data.hash,key):Map?data.map.has(key):assocHas(data.map,key)}function mapSet(key,value){var data=this.__data__;return isKeyable(key)?hashSet("string"==typeof key?data.string:data.hash,key,value):Map?data.map.set(key,value):assocSet(data.map,key,value),this}function SetCache(values){var index=-1,length=values?values.length:0;for(this.__data__=new MapCache;++index<length;)this.push(values[index])}function cacheHas(cache,value){var map=cache.__data__;if(isKeyable(value)){var data=map.__data__,hash="string"==typeof value?data.string:data.hash;return hash[value]===HASH_UNDEFINED}return map.has(value)}function cachePush(value){var map=this.__data__;if(isKeyable(value)){var data=map.__data__,hash="string"==typeof value?data.string:data.hash;hash[value]=HASH_UNDEFINED}else map.set(value,HASH_UNDEFINED)}function Stack(values){var index=-1,length=values?values.length:0;for(this.clear();++index<length;){var entry=values[index];this.set(entry[0],entry[1])}}function stackClear(){this.__data__={array:[],map:null}}function stackDelete(key){var data=this.__data__,array=data.array;return array?assocDelete(array,key):data.map.delete(key)}function stackGet(key){var data=this.__data__,array=data.array;return array?assocGet(array,key):data.map.get(key)}function stackHas(key){var data=this.__data__,array=data.array;return array?assocHas(array,key):data.map.has(key)}function stackSet(key,value){var data=this.__data__,array=data.array;array&&(array.length<LARGE_ARRAY_SIZE-1?assocSet(array,key,value):(data.array=null,data.map=new MapCache(array)));var map=data.map;return map&&map.set(key,value),this}function assocDelete(array,key){var index=assocIndexOf(array,key);if(index<0)return!1;var lastIndex=array.length-1;return index==lastIndex?array.pop():splice.call(array,index,1),!0}function assocGet(array,key){var index=assocIndexOf(array,key);return index<0?undefined:array[index][1]}function assocHas(array,key){return assocIndexOf(array,key)>-1}function assocIndexOf(array,key){for(var length=array.length;length--;)if(eq(array[length][0],key))return length;return-1}function assocSet(array,key,value){var index=assocIndexOf(array,key);index<0?array.push([key,value]):array[index][1]=value}function assignInDefaults(objValue,srcValue,key,object){return objValue===undefined||eq(objValue,objectProto[key])&&!hasOwnProperty.call(object,key)?srcValue:objValue}function assignMergeValue(object,key,value){(value===undefined||eq(object[key],value))&&("number"!=typeof key||value!==undefined||key in object)||(object[key]=value)}function assignValue(object,key,value){var objValue=object[key];eq(objValue,value)&&(!eq(objValue,objectProto[key])||hasOwnProperty.call(object,key))&&(value!==undefined||key in object)||(object[key]=value)}function baseAssign(object,source){return object&©Object(source,keys(source),object)}function baseClone(value,isDeep,customizer,key,object,stack){var result;if(customizer&&(result=object?customizer(value,key,object,stack):customizer(value)),result!==undefined)return result;if(!isObject(value))return value;var isArr=isArray(value);if(isArr){if(result=initCloneArray(value),!isDeep)return copyArray(value,result)}else{var tag=getTag(value),isFunc=tag==funcTag||tag==genTag;if(tag!=objectTag&&tag!=argsTag&&(!isFunc||object))return cloneableTags[tag]?initCloneByTag(value,tag,isDeep):object?value:{};if(isHostObject(value))return object?value:{};if(result=initCloneObject(isFunc?{}:value),!isDeep)return copySymbols(value,baseAssign(result,value))}stack||(stack=new Stack);var stacked=stack.get(value);return stacked?stacked:(stack.set(value,result),(isArr?arrayEach:baseForOwn)(value,function(subValue,key){assignValue(result,key,baseClone(subValue,isDeep,customizer,key,value,stack))}),isArr?result:copySymbols(value,result))}function baseDifference(array,values,iteratee,comparator){var index=-1,includes=arrayIncludes,isCommon=!0,length=array.length,result=[],valuesLength=values.length;if(!length)return result;iteratee&&(values=arrayMap(values,baseUnary(iteratee))),comparator?(includes=arrayIncludesWith,isCommon=!1):values.length>=LARGE_ARRAY_SIZE&&(includes=cacheHas,isCommon=!1,values=new SetCache(values));outer:for(;++index<length;){var value=array[index],computed=iteratee?iteratee(value):value;if(isCommon&&computed===computed){for(var valuesIndex=valuesLength;valuesIndex--;)if(values[valuesIndex]===computed)continue outer;result.push(value)}else includes(values,computed,comparator)||result.push(value)}return result}function baseFlatten(array,isDeep,isStrict,result){result||(result=[]);for(var index=-1,length=array.length;++index<length;){var value=array[index];isArrayLikeObject(value)&&(isStrict||isArray(value)||isArguments(value))?isDeep?baseFlatten(value,isDeep,isStrict,result):arrayPush(result,value):isStrict||(result[result.length]=value)}return result}function baseForOwn(object,iteratee){return object&&baseFor(object,iteratee,keys)}function baseFunctions(object,props){return arrayFilter(props,function(key){return isFunction(object[key])})}function baseHas(object,key){return hasOwnProperty.call(object,key)||"object"==typeof object&&key in object&&null===getPrototypeOf(object)}function baseKeys(object){return nativeKeys(Object(object))}function baseKeysIn(object){object=null==object?object:Object(object);var result=[];for(var key in object)result.push(key);return result}function baseMerge(object,source,srcIndex,customizer,stack){if(object!==source){var props=isArray(source)||isTypedArray(source)?undefined:keysIn(source);arrayEach(props||source,function(srcValue,key){if(props&&(key=srcValue,srcValue=source[key]),isObject(srcValue))stack||(stack=new Stack),baseMergeDeep(object,source,key,srcIndex,baseMerge,customizer,stack);else{var newValue=customizer?customizer(object[key],srcValue,key+"",object,source,stack):undefined;newValue===undefined&&(newValue=srcValue),assignMergeValue(object,key,newValue)}})}}function baseMergeDeep(object,source,key,srcIndex,mergeFunc,customizer,stack){var objValue=object[key],srcValue=source[key],stacked=stack.get(srcValue)||stack.get(objValue);if(stacked)return void assignMergeValue(object,key,stacked);var newValue=customizer?customizer(objValue,srcValue,key+"",object,source,stack):undefined,isCommon=newValue===undefined;isCommon&&(newValue=srcValue,isArray(srcValue)||isTypedArray(srcValue)?newValue=isArray(objValue)?srcIndex?copyArray(objValue):objValue:isArrayLikeObject(objValue)?copyArray(objValue):baseClone(srcValue):isPlainObject(srcValue)||isArguments(srcValue)?newValue=isArguments(objValue)?toPlainObject(objValue):!isObject(objValue)||srcIndex&&isFunction(objValue)?baseClone(srcValue):srcIndex?baseClone(objValue):objValue:isCommon=!1),stack.set(srcValue,newValue),isCommon&&mergeFunc(newValue,srcValue,srcIndex,customizer,stack),assignMergeValue(object,key,newValue)}function baseProperty(key){return function(object){return null==object?undefined:object[key]}}function cloneBuffer(buffer){var Ctor=buffer.constructor,result=new Ctor(buffer.byteLength),view=new Uint8Array(result);return view.set(new Uint8Array(buffer)),result}function cloneMap(map){var Ctor=map.constructor;return arrayReduce(mapToArray(map),addMapEntry,new Ctor)}function cloneRegExp(regexp){var Ctor=regexp.constructor,result=new Ctor(regexp.source,reFlags.exec(regexp));return result.lastIndex=regexp.lastIndex,result}function cloneSet(set){var Ctor=set.constructor;return arrayReduce(setToArray(set),addSetEntry,new Ctor)}function cloneSymbol(symbol){return Symbol?Object(symbolValueOf.call(symbol)):{}}function cloneTypedArray(typedArray,isDeep){var buffer=typedArray.buffer,Ctor=typedArray.constructor;return new Ctor(isDeep?cloneBuffer(buffer):buffer,typedArray.byteOffset,typedArray.length)}function copyArray(source,array){var index=-1,length=source.length;for(array||(array=Array(length));++index<length;)array[index]=source[index];return array}function copyObject(source,props,object){return copyObjectWith(source,props,object)}function copyObjectWith(source,props,object,customizer){object||(object={});for(var index=-1,length=props.length;++index<length;){var key=props[index],newValue=customizer?customizer(object[key],source[key],key,object,source):source[key];assignValue(object,key,newValue)}return object}function copySymbols(source,object){return copyObject(source,getSymbols(source),object)}function createAssigner(assigner){return rest(function(object,sources){var index=-1,length=sources.length,customizer=length>1?sources[length-1]:undefined,guard=length>2?sources[2]:undefined;for(customizer="function"==typeof customizer?(length--,customizer):undefined,guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=length<3?undefined:customizer,length=1),object=Object(object);++index<length;){var source=sources[index];source&&assigner(object,source,index,customizer)}return object})}function createBaseFor(fromRight){return function(object,iteratee,keysFunc){for(var index=-1,iterable=Object(object),props=keysFunc(object),length=props.length;length--;){var key=props[fromRight?length:++index];if(iteratee(iterable[key],key,iterable)===!1)break}return object}}function createCaseFirst(methodName){return function(string){string=toString(string);var strSymbols=reHasComplexSymbol.test(string)?stringToArray(string):undefined,chr=strSymbols?strSymbols[0]:string.charAt(0),trailing=strSymbols?strSymbols.slice(1).join(""):string.slice(1);return chr[methodName]()+trailing}}function createCompounder(callback){return function(string){return arrayReduce(words(deburr(string)),callback,"")}}function getNative(object,key){var value=null==object?undefined:object[key];return isNative(value)?value:undefined}function getTag(value){return objectToString.call(value)}function initCloneArray(array){var length=array.length,result=array.constructor(length);return length&&"string"==typeof array[0]&&hasOwnProperty.call(array,"index")&&(result.index=array.index,result.input=array.input),result}function initCloneObject(object){var Ctor=object.constructor;return baseCreate(isFunction(Ctor)?Ctor.prototype:undefined)}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return cloneBuffer(object);case boolTag:case dateTag:return new Ctor(+object);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:return cloneTypedArray(object,isDeep);case mapTag:return cloneMap(object);case numberTag:case stringTag:return new Ctor(object);case regexpTag:return cloneRegExp(object);case setTag:return cloneSet(object);case symbolTag:return cloneSymbol(object)}}function indexKeys(object){var length=object?object.length:undefined;return isLength(length)&&(isArray(object)||isString(object)||isArguments(object))?baseTimes(length,String):null}function isIterateeCall(value,index,object){if(!isObject(object))return!1;var type=typeof index;return!!("number"==type?isArrayLike(object)&&isIndex(index,object.length):"string"==type&&index in object)&&eq(object[index],value)}function isKeyable(value){var type=typeof value;return"number"==type||"boolean"==type||"string"==type&&"__proto__"!==value||null==value}function isPrototype(value){var Ctor=value&&value.constructor,proto="function"==typeof Ctor&&Ctor.prototype||objectProto;return value===proto}function compact(array){for(var index=-1,length=array?array.length:0,resIndex=-1,result=[];++index<length;){var value=array[index];value&&(result[++resIndex]=value)}return result}function includes(collection,value,fromIndex,guard){collection=isArrayLike(collection)?collection:values(collection),fromIndex=fromIndex&&!guard?toInteger(fromIndex):0;var length=collection.length;return fromIndex<0&&(fromIndex=nativeMax(length+fromIndex,0)),isString(collection)?fromIndex<=length&&collection.indexOf(value,fromIndex)>-1:!!length&&baseIndexOf(collection,value,fromIndex)>-1}function size(collection){if(null==collection)return 0;if(isArrayLike(collection)){var result=collection.length;return result&&isString(collection)?stringSize(collection):result}return keys(collection).length}function rest(func,start){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return start=nativeMax(start===undefined?func.length-1:toInteger(start),0),function(){for(var args=arguments,index=-1,length=nativeMax(args.length-start,0),array=Array(length);++index<length;)array[index]=args[start+index];switch(start){case 0:return func.call(this,array);case 1:return func.call(this,args[0],array);case 2:return func.call(this,args[0],args[1],array)}var otherArgs=Array(start+1);for(index=-1;++index<start;)otherArgs[index]=args[index];return otherArgs[start]=array,apply(func,this,otherArgs)}}function cloneDeep(value){return baseClone(value,!0)}function eq(value,other){return value===other||value!==value&&other!==other}function isArguments(value){return isArrayLikeObject(value)&&hasOwnProperty.call(value,"callee")&&(!propertyIsEnumerable.call(value,"callee")||objectToString.call(value)==argsTag)}function isArrayLike(value){return null!=value&&!("function"==typeof value&&isFunction(value))&&isLength(getLength(value))}function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value)}function isElement(value){return!!value&&1===value.nodeType&&isObjectLike(value)&&!isPlainObject(value)}function isEmpty(value){return!isObjectLike(value)||isFunction(value.splice)?!size(value):!keys(value).length}function isFunction(value){var tag=isObject(value)?objectToString.call(value):"";return tag==funcTag||tag==genTag}function isLength(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function isObjectLike(value){return!!value&&"object"==typeof value}function isNative(value){return null!=value&&(isFunction(value)?reIsNative.test(funcToString.call(value)):isObjectLike(value)&&(isHostObject(value)?reIsNative:reIsHostCtor).test(value))}function isPlainObject(value){if(!isObjectLike(value)||objectToString.call(value)!=objectTag||isHostObject(value))return!1;var proto=objectProto;if("function"==typeof value.constructor&&(proto=getPrototypeOf(value)),null===proto)return!0;var Ctor=proto.constructor;return"function"==typeof Ctor&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString}function isString(value){return"string"==typeof value||!isArray(value)&&isObjectLike(value)&&objectToString.call(value)==stringTag}function isSymbol(value){return"symbol"==typeof value||isObjectLike(value)&&objectToString.call(value)==symbolTag}function isTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[objectToString.call(value)]}function toInteger(value){if(!value)return 0===value?value:0;if(value=toNumber(value),value===INFINITY||value===-INFINITY){var sign=value<0?-1:1;return sign*MAX_INTEGER}var remainder=value%1;return value===value?remainder?value-remainder:value:0}function toNumber(value){if(isObject(value)){var other=isFunction(value.valueOf)?value.valueOf():value;value=isObject(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=value.replace(reTrim,"");var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value}function toPlainObject(value){return copyObject(value,keysIn(value))}function toString(value){if("string"==typeof value)return value;if(null==value)return"";if(isSymbol(value))return Symbol?symbolToString.call(value):"";var result=value+"";return"0"==result&&1/value==-INFINITY?"-0":result}function functions(object){return null==object?[]:baseFunctions(object,keys(object))}function keys(object){var isProto=isPrototype(object);if(!isProto&&!isArrayLike(object))return baseKeys(object);var indexes=indexKeys(object),skipIndexes=!!indexes,result=indexes||[],length=result.length;for(var key in object)!baseHas(object,key)||skipIndexes&&("length"==key||isIndex(key,length))||isProto&&"constructor"==key||result.push(key);return result}function keysIn(object){for(var index=-1,isProto=isPrototype(object),props=baseKeysIn(object),propsLength=props.length,indexes=indexKeys(object),skipIndexes=!!indexes,result=indexes||[],length=result.length;++index<propsLength;){var key=props[index];skipIndexes&&("length"==key||isIndex(key,length))||"constructor"==key&&(isProto||!hasOwnProperty.call(object,key))||result.push(key)}return result}function values(object){return object?baseValues(object,keys(object)):[]}function capitalize(string){return upperFirst(toString(string).toLowerCase())}function deburr(string){return string=toString(string),string&&string.replace(reLatin1,deburrLetter).replace(reComboMark,"")}function trim(string,chars,guard){if(string=toString(string),!string)return string;if(guard||chars===undefined)return string.replace(reTrim,"");if(chars+="",!chars)return string;var strSymbols=stringToArray(string),chrSymbols=stringToArray(chars);return strSymbols.slice(charsStartIndex(strSymbols,chrSymbols),charsEndIndex(strSymbols,chrSymbols)+1).join("")}function words(string,pattern,guard){return string=toString(string),pattern=guard?undefined:pattern,pattern===undefined&&(pattern=reHasComplexWord.test(string)?reComplexWord:reBasicWord),string.match(pattern)||[]}function identity(value){return value}var undefined,VERSION="4.0.1",LARGE_ARRAY_SIZE=200,FUNC_ERROR_TEXT="Expected a function",HASH_UNDEFINED="__lodash_hash_undefined__",INFINITY=1/0,MAX_SAFE_INTEGER=9007199254740991,MAX_INTEGER=1.7976931348623157e308,NAN=NaN,argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reTrim=/^\s+|\s+$/g,reFlags=/\w*$/,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsHostCtor=/^\[object .+?Constructor\]$/,reIsOctal=/^0o[0-7]+$/i,reIsUint=/^(?:0|[1-9]\d*)$/,reLatin1=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f\\ufe20-\\ufe23",rsComboSymbolsRange="\\u20d0-\\u20f0",rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsQuoteRange="\\u2018\\u2019\\u201c\\u201d",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsQuoteRange+rsSpaceRange,rsAstral="["+rsAstralRange+"]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboMarksRange+rsComboSymbolsRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsLowerMisc="(?:"+rsLower+"|"+rsMisc+")",rsUpperMisc="(?:"+rsUpper+"|"+rsMisc+")",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")",reComboMark=RegExp(rsCombo,"g"),reComplexSymbol=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g"),reHasComplexSymbol=RegExp("["+rsZWJ+rsAstralRange+rsComboMarksRange+rsComboSymbolsRange+rsVarRange+"]"),reBasicWord=/[a-zA-Z0-9]+/g,reComplexWord=RegExp([rsUpper+"?"+rsLower+"+(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsUpperMisc+"+(?="+[rsBreak,rsUpper+rsLowerMisc,"$"].join("|")+")",rsUpper+"?"+rsLowerMisc+"+",rsUpper+"+",rsDigits,rsEmoji].join("|"),"g"),reHasComplexWord=/[a-z][A-Z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;var deburredLetters={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},objectTypes={function:!0,object:!0},freeParseInt=parseInt,freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType?exports:null,freeModule=objectTypes[typeof module]&&module&&!module.nodeType?module:null,freeGlobal=checkGlobal(freeExports&&freeModule&&"object"==typeof global&&global),freeSelf=checkGlobal(objectTypes[typeof self]&&self),freeWindow=checkGlobal(objectTypes[typeof window]&&window),thisGlobal=checkGlobal(objectTypes[typeof this]&&this),root=freeGlobal||freeWindow!==(thisGlobal&&thisGlobal.window)&&freeWindow||freeSelf||thisGlobal||Function("return this")(),arrayProto=Array.prototype,objectProto=Object.prototype,funcToString=Function.prototype.toString,hasOwnProperty=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object),objectToString=objectProto.toString,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Reflect=root.Reflect,Symbol=root.Symbol,Uint8Array=root.Uint8Array,enumerate=Reflect?Reflect.enumerate:undefined,getPrototypeOf=Object.getPrototypeOf,getOwnPropertySymbols=Object.getOwnPropertySymbols,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice,nativeKeys=Object.keys,nativeMax=Math.max,Map=getNative(root,"Map"),Set=getNative(root,"Set"),nativeCreate=getNative(Object,"create"),mapCtorString=Map?funcToString.call(Map):"",setCtorString=Set?funcToString.call(Set):"",symbolProto=Symbol?Symbol.prototype:undefined,symbolValueOf=Symbol?symbolProto.valueOf:undefined,symbolToString=Symbol?symbolProto.toString:undefined,baseCreate=function(){function object(){}return function(prototype){if(isObject(prototype)){object.prototype=prototype;var result=new object;object.prototype=undefined}return result||{}}}(),baseFor=createBaseFor();enumerate&&!propertyIsEnumerable.call({valueOf:1},"valueOf")&&(baseKeysIn=function(object){return iteratorToArray(enumerate(object))});var getLength=baseProperty("length"),getSymbols=getOwnPropertySymbols||function(){return[]};(Map&&getTag(new Map)!=mapTag||Set&&getTag(new Set)!=setTag)&&(getTag=function(value){var result=objectToString.call(value),Ctor=result==objectTag?value.constructor:null,ctorString="function"==typeof Ctor?funcToString.call(Ctor):"";if(ctorString){if(ctorString==mapCtorString)return mapTag;if(ctorString==setCtorString)return setTag}return result});var difference=rest(function(array,values){return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,!1,!0)):[]}),isArray=Array.isArray,assign=createAssigner(function(object,source){copyObject(source,keys(source),object)}),assignInWith=createAssigner(function(object,source,srcIndex,customizer){copyObjectWith(source,keysIn(source),object,customizer)}),defaults=rest(function(args){return args.push(undefined,assignInDefaults),apply(assignInWith,undefined,args)}),merge=createAssigner(function(object,source,srcIndex){baseMerge(object,source,srcIndex)}),camelCase=createCompounder(function(result,word,index){return word=word.toLowerCase(),result+(index?capitalize(word):word)}),upperFirst=createCaseFirst("toUpperCase"),snakeCase=createCompounder(function(result,word,index){return result+(index?"_":"")+word.toLowerCase()});return Hash.prototype=nativeCreate?nativeCreate(null):objectProto,MapCache.prototype.clear=mapClear,MapCache.prototype.delete=mapDelete,MapCache.prototype.get=mapGet,
MapCache.prototype.has=mapHas,MapCache.prototype.set=mapSet,SetCache.prototype.push=cachePush,Stack.prototype.clear=stackClear,Stack.prototype.delete=stackDelete,Stack.prototype.get=stackGet,Stack.prototype.has=stackHas,Stack.prototype.set=stackSet,lodash.assign=assign,lodash.assignInWith=assignInWith,lodash.compact=compact,lodash.defaults=defaults,lodash.difference=difference,lodash.functions=functions,lodash.keys=keys,lodash.keysIn=keysIn,lodash.merge=merge,lodash.rest=rest,lodash.toPlainObject=toPlainObject,lodash.values=values,lodash.words=words,lodash.extendWith=assignInWith,lodash.camelCase=camelCase,lodash.capitalize=capitalize,lodash.cloneDeep=cloneDeep,lodash.deburr=deburr,lodash.eq=eq,lodash.identity=identity,lodash.includes=includes,lodash.isArguments=isArguments,lodash.isArray=isArray,lodash.isArrayLike=isArrayLike,lodash.isArrayLikeObject=isArrayLikeObject,lodash.isElement=isElement,lodash.isEmpty=isEmpty,lodash.isFunction=isFunction,lodash.isLength=isLength,lodash.isNative=isNative,lodash.isObject=isObject,lodash.isObjectLike=isObjectLike,lodash.isPlainObject=isPlainObject,lodash.isString=isString,lodash.isSymbol=isSymbol,lodash.isTypedArray=isTypedArray,lodash.size=size,lodash.snakeCase=snakeCase,lodash.toInteger=toInteger,lodash.toNumber=toNumber,lodash.toString=toString,lodash.trim=trim,lodash.upperFirst=upperFirst,lodash.VERSION=VERSION,(freeWindow||freeSelf||{})._=lodash,lodash}.call(this);return allStrings=function(list){var item,j,len;for(j=0,len=list.length;j<len;j++)if(item=list[j],!Util.isString(item))return!1;return!0},without=function(array,item){var i,length,newArray;for(newArray=[],i=-1,length=array.length;++i<length;)array[i]!==item&&newArray.push(array[i]);return newArray},isNumberLike=function(value){return null!=value&&!isNaN(parseFloat(value))},smartEscape=function(string,unsafe){return null==unsafe&&(unsafe=/([^a-zA-Z0-9_.\-\/:]+)/g),string.replace(unsafe,function(match){return match.split("").map(function(c){return"%"+c.charCodeAt(0).toString(16).toUpperCase()}).join("")})},defaults=function(){var destination,sources;return destination=arguments[0],sources=2<=arguments.length?slice.call(arguments,1):[],sources.reduce(function(dest,source){var key,value;for(key in source)value=source[key],void 0===dest[key]&&(dest[key]=value);return dest},destination)},reWords=function(){var lower,upper;return upper="[A-Z]",lower="[a-z]+",RegExp(upper+"+(?="+upper+lower+")|"+upper+"?"+lower+"|"+upper+"+|[0-9]+","g")}(),camelCase=function(source){var i,word,words;return words=source.match(reWords),words=function(){var j,len,results;for(results=[],i=j=0,len=words.length;j<len;i=++j)word=words[i],word=word.toLocaleLowerCase(),i?results.push(word.charAt(0).toLocaleUpperCase()+word.slice(1)):results.push(word);return results}(),words.join("")},snakeCase=function(source){var i,word,words;return words=source.match(reWords),words=function(){var j,len,results;for(results=[],i=j=0,len=words.length;j<len;i=++j)word=words[i],results.push(word.toLocaleLowerCase());return results}(),words.join("_")},convertKeys=function(source,converter){var key,result,value;null==converter&&(converter=Util.identity),result={};for(key in source)value=source[key],key=converter(key),Util.isEmpty(key)||(result[key]=value);return result},withCamelCaseKeys=function(source){return convertKeys(source,Util.camelCase)},withSnakeCaseKeys=function(source){return convertKeys(source,Util.snakeCase)},BaseUtil={allStrings:allStrings,camelCase:camelCase,convertKeys:convertKeys,defaults:defaults,snakeCase:snakeCase,without:without,isNumberLike:isNumberLike,smartEscape:smartEscape,withCamelCaseKeys:withCamelCaseKeys,withSnakeCaseKeys:withSnakeCaseKeys},getData=function(element,name){var ref;switch(!1){case!(null==element):return;case!_.isFunction(element.getAttribute):return element.getAttribute("data-"+name);case!_.isFunction(element.getAttr):return element.getAttr("data-"+name);case!_.isFunction(element.data):return element.data(name);case!(_.isFunction("undefined"!=typeof jQuery&&null!==jQuery&&null!=(ref=jQuery.fn)?ref.data:void 0)&&_.isElement(element)):return jQuery(element).data(name)}},setData=function(element,name,value){var ref;switch(!1){case!(null==element):return;case!_.isFunction(element.setAttribute):return element.setAttribute("data-"+name,value);case!_.isFunction(element.setAttr):return element.setAttr("data-"+name,value);case!_.isFunction(element.data):return element.data(name,value);case!(_.isFunction("undefined"!=typeof jQuery&&null!==jQuery&&null!=(ref=jQuery.fn)?ref.data:void 0)&&_.isElement(element)):return jQuery(element).data(name,value)}},getAttribute=function(element,name){switch(!1){case!(null==element):return;case!_.isFunction(element.getAttribute):return element.getAttribute(name);case!_.isFunction(element.attr):return element.attr(name);case!_.isFunction(element.getAttr):return element.getAttr(name)}},setAttribute=function(element,name,value){switch(!1){case!(null==element):return;case!_.isFunction(element.setAttribute):return element.setAttribute(name,value);case!_.isFunction(element.attr):return element.attr(name,value);case!_.isFunction(element.setAttr):return element.setAttr(name,value)}},removeAttribute=function(element,name){switch(!1){case!(null==element):return;case!_.isFunction(element.removeAttribute):return element.removeAttribute(name);default:return setAttribute(element,void 0)}},setAttributes=function(element,attributes){var name,results,value;results=[];for(name in attributes)value=attributes[name],null!=value?results.push(setAttribute(element,name,value)):results.push(removeAttribute(element,name));return results},hasClass=function(element,name){if(_.isElement(element))return element.className.match(new RegExp("\\b"+name+"\\b"))},addClass=function(element,name){if(!element.className.match(new RegExp("\\b"+name+"\\b")))return element.className=_.trim(element.className+" "+name)},getStyles=function(elem){return elem.ownerDocument.defaultView.opener?elem.ownerDocument.defaultView.getComputedStyle(elem,null):window.getComputedStyle(elem,null)},cssExpand=["Top","Right","Bottom","Left"],contains=function(a,b){var adown,bup;return adown=9===a.nodeType?a.documentElement:a,bup=b&&b.parentNode,a===bup||!(!bup||1!==bup.nodeType||!adown.contains(bup))},domStyle=function(elem,name){if(elem&&3!==elem.nodeType&&8!==elem.nodeType&&elem.style)return elem.style[name]},curCSS=function(elem,name,computed){var maxWidth,minWidth,ret,rmargin,style,width;return rmargin=/^margin/,width=void 0,minWidth=void 0,maxWidth=void 0,ret=void 0,style=elem.style,computed=computed||getStyles(elem),computed&&(ret=computed.getPropertyValue(name)||computed[name]),computed&&(""!==ret||contains(elem.ownerDocument,elem)||(ret=domStyle(elem,name)),rnumnonpx.test(ret)&&rmargin.test(name)&&(width=style.width,minWidth=style.minWidth,maxWidth=style.maxWidth,style.minWidth=style.maxWidth=style.width=ret,ret=computed.width,style.width=width,style.minWidth=minWidth,style.maxWidth=maxWidth)),void 0!==ret?ret+"":ret},cssValue=function(elem,name,convert,styles){var val;return val=curCSS(elem,name,styles),convert?parseFloat(val):val},augmentWidthOrHeight=function(elem,name,extra,isBorderBox,styles){var j,len,side,sides,val;if(extra===(isBorderBox?"border":"content"))return 0;for(sides="width"===name?["Right","Left"]:["Top","Bottom"],val=0,j=0,len=sides.length;j<len;j++)side=sides[j],"margin"===extra&&(val+=cssValue(elem,extra+side,!0,styles)),isBorderBox?("content"===extra&&(val-=cssValue(elem,"padding"+side,!0,styles)),"margin"!==extra&&(val-=cssValue(elem,"border"+side+"Width",!0,styles))):(val+=cssValue(elem,"padding"+side,!0,styles),"padding"!==extra&&(val+=cssValue(elem,"border"+side+"Width",!0,styles)));return val},pnum=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i"),getWidthOrHeight=function(elem,name,extra){var isBorderBox,styles,val,valueIsBorderBox;if(valueIsBorderBox=!0,val="width"===name?elem.offsetWidth:elem.offsetHeight,styles=getStyles(elem),isBorderBox="border-box"===cssValue(elem,"boxSizing",!1,styles),val<=0||null==val){if(val=curCSS(elem,name,styles),(val<0||null==val)&&(val=elem.style[name]),rnumnonpx.test(val))return val;valueIsBorderBox=isBorderBox&&val===elem.style[name],val=parseFloat(val)||0}return val+augmentWidthOrHeight(elem,name,extra||(isBorderBox?"border":"content"),valueIsBorderBox,styles)},width=function(element){return getWidthOrHeight(element,"width","content")},Util=_.assign(BaseUtil,{hasClass:hasClass,addClass:addClass,getAttribute:getAttribute,setAttribute:setAttribute,removeAttribute:removeAttribute,setAttributes:setAttributes,getData:getData,setData:setData,width:width,isString:_.isString,isArray:_.isArray,isEmpty:_.isEmpty,assign:_.assign,merge:_.merge,cloneDeep:_.cloneDeep,compact:_.compact,contains:_.includes,difference:_.difference,isFunction:_.isFunction,functions:_.functions,identity:_.identity,isPlainObject:_.isPlainObject,trim:_.trim}),utf8_encode=function(argString){var c1,enc,end,n,start,string,stringl,utftext;if(null===argString||"undefined"==typeof argString)return"";for(string=argString+"",utftext="",start=void 0,end=void 0,stringl=0,start=end=0,stringl=string.length,n=0;n<stringl;)c1=string.charCodeAt(n),enc=null,c1<128?end++:enc=c1>127&&c1<2048?String.fromCharCode(c1>>6|192,63&c1|128):String.fromCharCode(c1>>12|224,c1>>6&63|128,63&c1|128),null!==enc&&(end>start&&(utftext+=string.slice(start,end)),utftext+=enc,start=end=n+1),n++;return end>start&&(utftext+=string.slice(start,stringl)),utftext},crc32=function(str){var crc,i,iTop,table,x,y;for(str=utf8_encode(str),table="00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D",crc=0,x=0,y=0,crc^=-1,i=0,iTop=str.length;i<iTop;)y=255&(crc^str.charCodeAt(i)),x="0x"+table.substr(9*y,8),crc=crc>>>8^x,i++;return crc^=-1,crc<0&&(crc+=4294967296),crc},Layer=function(){function Layer(options){this.options={},null!=options&&["resourceType","type","publicId","format"].forEach(function(_this){return function(key){var ref;return _this.options[key]=null!=(ref=options[key])?ref:options[Util.snakeCase(key)]}}(this))}return Layer.prototype.resourceType=function(value){return this.options.resourceType=value,this},Layer.prototype.type=function(value){return this.options.type=value,this},Layer.prototype.publicId=function(value){return this.options.publicId=value,this},Layer.prototype.getPublicId=function(){var ref;return null!=(ref=this.options.publicId)?ref.replace(/\//g,":"):void 0},Layer.prototype.getFullPublicId=function(){return null!=this.options.format?this.getPublicId()+"."+this.options.format:this.getPublicId()},Layer.prototype.format=function(value){return this.options.format=value,this},Layer.prototype.toString=function(){var components;if(components=[],null==this.options.publicId)throw"Must supply publicId";return"image"!==this.options.resourceType&&components.push(this.options.resourceType),"upload"!==this.options.type&&components.push(this.options.type),components.push(this.getFullPublicId()),Util.compact(components).join(":")},Layer}(),TextLayer=function(superClass){function TextLayer(options){var keys;TextLayer.__super__.constructor.call(this,options),keys=["resourceType","resourceType","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textAlign","stroke","letterSpacing","lineSpacing","text"],null!=options&&keys.forEach(function(_this){return function(key){var ref;return _this.options[key]=null!=(ref=options[key])?ref:options[Util.snakeCase(key)]}}(this)),this.options.resourceType="text"}return extend(TextLayer,superClass),TextLayer.prototype.resourceType=function(resourceType){throw"Cannot modify resourceType for text layers"},TextLayer.prototype.type=function(type){throw"Cannot modify type for text layers"},TextLayer.prototype.format=function(format){throw"Cannot modify format for text layers"},TextLayer.prototype.fontFamily=function(fontFamily){return this.options.fontFamily=fontFamily,this},TextLayer.prototype.fontSize=function(fontSize){return this.options.fontSize=fontSize,this},TextLayer.prototype.fontWeight=function(fontWeight){return this.options.fontWeight=fontWeight,this},TextLayer.prototype.fontStyle=function(fontStyle){return this.options.fontStyle=fontStyle,this},TextLayer.prototype.textDecoration=function(textDecoration){return this.options.textDecoration=textDecoration,this},TextLayer.prototype.textAlign=function(textAlign){return this.options.textAlign=textAlign,this},TextLayer.prototype.stroke=function(stroke){return this.options.stroke=stroke,this},TextLayer.prototype.letterSpacing=function(letterSpacing){return this.options.letterSpacing=letterSpacing,this},TextLayer.prototype.lineSpacing=function(lineSpacing){return this.options.lineSpacing=lineSpacing,this},TextLayer.prototype.text=function(text){return this.options.text=text,this},TextLayer.prototype.toString=function(){var components,hasPublicId,hasStyle,publicId,re,res,start,style,text,textSource;if(style=this.textStyleIdentifier(),null!=this.options.publicId&&(publicId=this.getFullPublicId()),null!=this.options.text){if(hasPublicId=!Util.isEmpty(publicId),hasStyle=!Util.isEmpty(style),hasPublicId&&hasStyle||!hasPublicId&&!hasStyle)throw"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay, but not both!";for(re=/\$\([a-zA-Z]\w*\)/g,start=0,textSource=Util.smartEscape(this.options.text,/[,\/]/g),text="";res=re.exec(textSource);)text+=Util.smartEscape(textSource.slice(start,res.index)),text+=res[0],start=res.index+res[0].length;text+=Util.smartEscape(textSource.slice(start))}return components=[this.options.resourceType,style,publicId,text],Util.compact(components).join(":")},TextLayer.prototype.textStyleIdentifier=function(){var components;if(components=[],"normal"!==this.options.fontWeight&&components.push(this.options.fontWeight),"normal"!==this.options.fontStyle&&components.push(this.options.fontStyle),"none"!==this.options.textDecoration&&components.push(this.options.textDecoration),components.push(this.options.textAlign),"none"!==this.options.stroke&&components.push(this.options.stroke),Util.isEmpty(this.options.letterSpacing)&&!Util.isNumberLike(this.options.letterSpacing)||components.push("letter_spacing_"+this.options.letterSpacing),Util.isEmpty(this.options.lineSpacing)&&!Util.isNumberLike(this.options.lineSpacing)||components.push("line_spacing_"+this.options.lineSpacing),!Util.isEmpty(Util.compact(components))){if(Util.isEmpty(this.options.fontFamily))throw"Must supply fontFamily. "+components;if(Util.isEmpty(this.options.fontSize)&&!Util.isNumberLike(this.options.fontSize))throw"Must supply fontSize."}return components.unshift(this.options.fontFamily,this.options.fontSize),components=Util.compact(components).join("_")},TextLayer}(Layer),SubtitlesLayer=function(superClass){function SubtitlesLayer(options){SubtitlesLayer.__super__.constructor.call(this,options),this.options.resourceType="subtitles"}return extend(SubtitlesLayer,superClass),SubtitlesLayer}(TextLayer),Param=function(){function Param(name,shortName,process){null==process&&(process=cloudinary.Util.identity),this.name=name,this.shortName=shortName,this.process=process}return Param.prototype.set=function(origValue){return this.origValue=origValue,this},Param.prototype.serialize=function(){var val,valid;return val=this.value(),valid=cloudinary.Util.isArray(val)||cloudinary.Util.isPlainObject(val)||cloudinary.Util.isString(val)?!cloudinary.Util.isEmpty(val):null!=val,null!=this.shortName&&valid?this.shortName+"_"+val:""},Param.prototype.value=function(){return this.process(this.origValue)},Param.norm_color=function(value){return null!=value?value.replace(/^#/,"rgb:"):void 0},Param.prototype.build_array=function(arg){return null==arg&&(arg=[]),cloudinary.Util.isArray(arg)?arg:[arg]},Param.process_video_params=function(param){var video;switch(param.constructor){case Object:return video="","codec"in param&&(video=param.codec,"profile"in param&&(video+=":"+param.profile,"level"in param&&(video+=":"+param.level))),video;case String:return param;default:return null}},Param}(),ArrayParam=function(superClass){function ArrayParam(name,shortName,sep,process){null==sep&&(sep="."),this.sep=sep,ArrayParam.__super__.constructor.call(this,name,shortName,process)}return extend(ArrayParam,superClass),ArrayParam.prototype.serialize=function(){var arrayValue,flat,t;return null!=this.shortName?(arrayValue=this.value(),cloudinary.Util.isEmpty(arrayValue)?"":cloudinary.Util.isString(arrayValue)?this.shortName+"_"+arrayValue:(flat=function(){var j,len,results;for(results=[],j=0,len=arrayValue.length;j<len;j++)t=arrayValue[j],cloudinary.Util.isFunction(t.serialize)?results.push(t.serialize()):results.push(t);return results}(),this.shortName+"_"+flat.join(this.sep))):""},ArrayParam.prototype.value=function(){var j,len,ref,results,v;if(cloudinary.Util.isArray(this.origValue)){for(ref=this.origValue,results=[],j=0,len=ref.length;j<len;j++)v=ref[j],results.push(this.process(v));return results}return this.process(this.origValue)},ArrayParam.prototype.set=function(origValue){return null==origValue||cloudinary.Util.isArray(origValue)?ArrayParam.__super__.set.call(this,origValue):ArrayParam.__super__.set.call(this,[origValue])},ArrayParam}(Param),TransformationParam=function(superClass){function TransformationParam(name,shortName,sep,process){null==shortName&&(shortName="t"),null==sep&&(sep="."),this.sep=sep,TransformationParam.__super__.constructor.call(this,name,shortName,process)}return extend(TransformationParam,superClass),TransformationParam.prototype.serialize=function(){var joined,result,t;return cloudinary.Util.isEmpty(this.value())?"":cloudinary.Util.allStrings(this.value())?(joined=this.value().join(this.sep),cloudinary.Util.isEmpty(joined)?"":this.shortName+"_"+joined):(result=function(){var j,len,ref,results;for(ref=this.value(),results=[],j=0,len=ref.length;j<len;j++)t=ref[j],null!=t&&(cloudinary.Util.isString(t)&&!cloudinary.Util.isEmpty(t)?results.push(this.shortName+"_"+t):cloudinary.Util.isFunction(t.serialize)?results.push(t.serialize()):cloudinary.Util.isPlainObject(t)&&!cloudinary.Util.isEmpty(t)?results.push(new Transformation(t).serialize()):results.push(void 0));return results}.call(this),cloudinary.Util.compact(result))},TransformationParam.prototype.set=function(origValue1){return this.origValue=origValue1,cloudinary.Util.isArray(this.origValue)?TransformationParam.__super__.set.call(this,this.origValue):TransformationParam.__super__.set.call(this,[this.origValue])},TransformationParam}(Param),RangeParam=function(superClass){function RangeParam(name,shortName,process){null==process&&(process=this.norm_range_value),RangeParam.__super__.constructor.call(this,name,shortName,process)}return extend(RangeParam,superClass),RangeParam.norm_range_value=function(value){var modifier,offset;return offset=String(value).match(new RegExp("^"+offset_any_pattern+"$")),offset&&(modifier=null!=offset[5]?"p":"",value=(offset[1]||offset[4])+modifier),value},RangeParam}(Param),RawParam=function(superClass){function RawParam(name,shortName,process){null==process&&(process=cloudinary.Util.identity),RawParam.__super__.constructor.call(this,name,shortName,process)}return extend(RawParam,superClass),RawParam.prototype.serialize=function(){return this.value()},RawParam}(Param),LayerParam=function(superClass){function LayerParam(){return LayerParam.__super__.constructor.apply(this,arguments)}var LAYER_KEYWORD_PARAMS;return extend(LayerParam,superClass),LayerParam.prototype.value=function(){var layerOptions,result;return layerOptions=this.origValue,result=cloudinary.Util.isPlainObject(layerOptions)?"text"===layerOptions.resource_type||null!=layerOptions.text?new cloudinary.TextLayer(layerOptions).toString():"subtitles"===layerOptions.resource_type?new cloudinary.SubtitlesLayer(layerOptions).toString():new cloudinary.Layer(layerOptions).toString():layerOptions},LAYER_KEYWORD_PARAMS=[["font_weight","normal"],["font_style","normal"],["text_decoration","none"],["text_align",null],["stroke","none"],["letter_spacing",null],["line_spacing",null]],LayerParam.prototype.textStyle=function(layer){return new cloudinary.TextLayer(layer).textStyleIdentifier()},LayerParam}(Param),ExpressionParam=function(superClass){function ExpressionParam(){return ExpressionParam.__super__.constructor.apply(this,arguments)}return extend(ExpressionParam,superClass),ExpressionParam.prototype.serialize=function(){return Expression.normalize(ExpressionParam.__super__.serialize.call(this))},ExpressionParam}(Param),parameters={},parameters.Param=Param,parameters.ArrayParam=ArrayParam,parameters.RangeParam=RangeParam,parameters.RawParam=RawParam,parameters.TransformationParam=TransformationParam,parameters.LayerParam=LayerParam,parameters.ExpressionParam=ExpressionParam,Expression=function(){function Expression(expressionStr){this.expressions=[],null!=expressionStr&&this.expressions.push(Expression.normalize(expressionStr))}var faceCount;return Expression.OPERATORS={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub"},Expression.PREDEFINED_VARS={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialHeight:"ih",initialWidth:"iw",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"},Expression.BOUNDRY="[ _]+",Expression.new=function(expressionStr){return new this(expressionStr)},Expression.normalize=function(expression){var operators,pattern,replaceRE;return null==expression?expression:(expression=String(expression),operators="\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*",pattern="(("+operators+")(?=[ _])|"+Object.keys(Expression.PREDEFINED_VARS).join("|")+")",replaceRE=new RegExp(pattern,"g"),expression=expression.replace(replaceRE,function(match){return Expression.OPERATORS[match]||Expression.PREDEFINED_VARS[match]}),expression.replace(/[ _]+/g,"_"))},Expression.prototype.serialize=function(){return Expression.normalize(this.expressions.join("_"))},Expression.prototype.toString=function(){return this.serialize()},Expression.prototype.getParent=function(){return this.parent},Expression.prototype.setParent=function(parent){return this.parent=parent,this},Expression.prototype.predicate=function(name,operator,value){return null!=Expression.OPERATORS[operator]&&(operator=Expression.OPERATORS[operator]),this.expressions.push(name+"_"+operator+"_"+value),this},Expression.prototype.and=function(){return this.expressions.push("and"),this},Expression.prototype.or=function(){return this.expressions.push("or"),this},Expression.prototype.then=function(){return this.getParent().if(this.toString())},Expression.prototype.height=function(operator,value){return this.predicate("h",operator,value)},Expression.prototype.width=function(operator,value){return this.predicate("w",operator,value)},Expression.prototype.aspectRatio=function(operator,value){return this.predicate("ar",operator,value)},Expression.prototype.pageCount=function(operator,value){return this.predicate("pc",operator,value)},Expression.prototype.faceCount=function(operator,value){return this.predicate("fc",operator,value)},Expression.prototype.value=function(value){return this.expressions.push(value),this},Expression.variable=function(name,value){return new this(name).value(value)},Expression.width=function(){return new this("width")},Expression.height=function(){return new this("height")},Expression.initialWidth=function(){return new this("initialWidth")},Expression.initialHeight=function(){return new this("initialHeight")},Expression.aspectRatio=function(){return new this("aspectRatio")},Expression.initialAspectRatio=function(){return new this("initialAspectRatio")},Expression.pageCount=function(){return new this("pageCount")},faceCount=function(){return new this("faceCount")},Expression.currentPage=function(){return new this("currentPage")},Expression.tags=function(){return new this("tags")},Expression.pageX=function(){return new this("pageX")},Expression.pageY=function(){return new this("pageY")},Expression}(),Condition=function(superClass){function Condition(conditionStr){Condition.__super__.constructor.call(this,conditionStr)}return extend(Condition,superClass),Condition.prototype.height=function(operator,value){return this.predicate("h",operator,value)},Condition.prototype.width=function(operator,value){return this.predicate("w",operator,value)},Condition.prototype.aspectRatio=function(operator,value){return this.predicate("ar",operator,value)},Condition.prototype.pageCount=function(operator,value){return this.predicate("pc",operator,value)},Condition.prototype.faceCount=function(operator,value){return this.predicate("fc",operator,value)},Condition}(Expression),Configuration=function(){function Configuration(options){null==options&&(options={}),this.configuration=Util.cloneDeep(options),Util.defaults(this.configuration,DEFAULT_CONFIGURATION_PARAMS)}var DEFAULT_CONFIGURATION_PARAMS,ref;return DEFAULT_CONFIGURATION_PARAMS={responsive_class:"cld-responsive",responsive_use_breakpoints:!0,round_dpr:!0,secure:"https:"===("undefined"!=typeof window&&null!==window&&null!=(ref=window.location)?ref.protocol:void 0)},Configuration.CONFIG_PARAMS=["api_key","api_secret","callback","cdn_subdomain","cloud_name","cname","private_cdn","protocol","resource_type","responsive","responsive_class","responsive_use_breakpoints","responsive_width","round_dpr","secure","secure_cdn_subdomain","secure_distribution","shorten","type","upload_preset","url_suffix","use_root_path","version"],Configuration.prototype.init=function(){return this.fromEnvironment(),this.fromDocument(),this},Configuration.prototype.set=function(name,value){return this.configuration[name]=value,this},Configuration.prototype.get=function(name){return this.configuration[name]},Configuration.prototype.merge=function(config){return null==config&&(config={}),Util.assign(this.configuration,Util.cloneDeep(config)),this},Configuration.prototype.fromDocument=function(){var el,j,len,meta_elements;if(meta_elements="undefined"!=typeof document&&null!==document?document.querySelectorAll('meta[name^="cloudinary_"]'):void 0)for(j=0,len=meta_elements.length;j<len;j++)el=meta_elements[j],this.configuration[el.getAttribute("name").replace("cloudinary_","")]=el.getAttribute("content");return this},Configuration.prototype.fromEnvironment=function(){var cloudinary_url,j,k,len,query,ref1,ref2,ref3,uri,uriRegex,v,value;if(cloudinary_url="undefined"!=typeof process&&null!==process&&null!=(ref1=process.env)?ref1.CLOUDINARY_URL:void 0,null!=cloudinary_url&&(uriRegex=/cloudinary:\/\/(?:(\w+)(?:\:(\w+))?@)?([\w\.-]+)(?:\/([^?]*))?(?:\?(.+))?/,uri=uriRegex.exec(cloudinary_url),uri&&(null!=uri[3]&&(this.configuration.cloud_name=uri[3]),null!=uri[1]&&(this.configuration.api_key=uri[1]),null!=uri[2]&&(this.configuration.api_secret=uri[2]),null!=uri[4]&&(this.configuration.private_cdn=null!=uri[4]),null!=uri[4]&&(this.configuration.secure_distribution=uri[4]),query=uri[5],null!=query)))for(ref2=query.split("&"),j=0,len=ref2.length;j<len;j++)value=ref2[j],ref3=value.split("="),k=ref3[0],v=ref3[1],null==v&&(v=!0),this.configuration[k]=v;return this},Configuration.prototype.config=function(new_config,new_value){switch(!1){case void 0===new_value:return this.set(new_config,new_value),this.configuration;case!Util.isString(new_config):return this.get(new_config);case!Util.isPlainObject(new_config):return this.merge(new_config),this.configuration;default:return this.configuration}},Configuration.prototype.toOptions=function(){return Util.cloneDeep(this.configuration)},Configuration}(),TransformationBase=function(){function TransformationBase(options){var parent,trans;null==options&&(options={}),parent=void 0,trans={},this.toOptions||(this.toOptions=function(withChain){var key,list,opt,ref,ref1,tr,value;null==withChain&&(withChain=!0),opt={};for(key in trans)value=trans[key],opt[key]=value.origValue;ref=this.otherOptions;for(key in ref)value=ref[key],void 0!==value&&(opt[key]=value);if(withChain&&!Util.isEmpty(this.chained)){list=function(){var j,len,ref1,results;for(ref1=this.chained,results=[],j=0,len=ref1.length;j<len;j++)tr=ref1[j],results.push(tr.toOptions());return results}.call(this),list.push(opt),opt={},ref1=this.otherOptions;for(key in ref1)value=ref1[key],void 0!==value&&(opt[key]=value);opt.transformation=list}return opt}),this.setParent||(this.setParent=function(object){return parent=object,null!=object&&this.fromOptions("function"==typeof object.toOptions?object.toOptions():void 0),this}),this.getParent||(this.getParent=function(){return parent}),this.param||(this.param=function(value,name,abbr,defaultValue,process){return null==process&&(process=Util.isFunction(defaultValue)?defaultValue:Util.identity),trans[name]=new Param(name,abbr,process).set(value),this}),this.rawParam||(this.rawParam=function(value,name,abbr,defaultValue,process){return null==process&&(process=Util.identity),process=lastArgCallback(arguments),trans[name]=new RawParam(name,abbr,process).set(value),this}),this.rangeParam||(this.rangeParam=function(value,name,abbr,defaultValue,process){return null==process&&(process=Util.identity),process=lastArgCallback(arguments),trans[name]=new RangeParam(name,abbr,process).set(value),this}),this.arrayParam||(this.arrayParam=function(value,name,abbr,sep,defaultValue,process){return null==sep&&(sep=":"),null==defaultValue&&(defaultValue=[]),null==process&&(process=Util.identity),process=lastArgCallback(arguments),trans[name]=new ArrayParam(name,abbr,sep,process).set(value),this}),this.transformationParam||(this.transformationParam=function(value,name,abbr,sep,defaultValue,process){
return null==sep&&(sep="."),null==process&&(process=Util.identity),process=lastArgCallback(arguments),trans[name]=new TransformationParam(name,abbr,sep,process).set(value),this}),this.layerParam||(this.layerParam=function(value,name,abbr){return trans[name]=new LayerParam(name,abbr).set(value),this}),this.getValue||(this.getValue=function(name){var ref,ref1;return null!=(ref=null!=(ref1=trans[name])?ref1.value():void 0)?ref:this.otherOptions[name]}),this.get||(this.get=function(name){return trans[name]}),this.remove||(this.remove=function(name){var temp;switch(!1){case null==trans[name]:return temp=trans[name],delete trans[name],temp.origValue;case null==this.otherOptions[name]:return temp=this.otherOptions[name],delete this.otherOptions[name],temp;default:return null}}),this.keys||(this.keys=function(){var key;return function(){var results;results=[];for(key in trans)null!=key&&results.push(key.match(VAR_NAME_RE)?key:Util.snakeCase(key));return results}().sort()}),this.toPlainObject||(this.toPlainObject=function(){var hash,key,list,tr;hash={};for(key in trans)hash[key]=trans[key].value(),Util.isPlainObject(hash[key])&&(hash[key]=Util.cloneDeep(hash[key]));return Util.isEmpty(this.chained)||(list=function(){var j,len,ref,results;for(ref=this.chained,results=[],j=0,len=ref.length;j<len;j++)tr=ref[j],results.push(tr.toPlainObject());return results}.call(this),list.push(hash),hash={transformation:list}),hash}),this.chain||(this.chain=function(){var names,tr;return names=Object.getOwnPropertyNames(trans),0!==names.length&&(tr=new this.constructor(this.toOptions(!1)),this.resetTransformations(),this.chained.push(tr)),this}),this.resetTransformations||(this.resetTransformations=function(){return trans={},this}),this.otherOptions||(this.otherOptions={}),this.chained=[],Util.isEmpty(options)||this.fromOptions(options)}var VAR_NAME_RE,lastArgCallback,processVar;return VAR_NAME_RE=/^\$[a-zA-Z0-9]+$/,TransformationBase.prototype.trans_separator="/",TransformationBase.prototype.param_separator=",",lastArgCallback=function(args){var callback;return callback=null!=args?args[args.length-1]:void 0,Util.isFunction(callback)?callback:void 0},TransformationBase.prototype.fromOptions=function(options){var key,opt;if(options instanceof TransformationBase)this.fromTransformation(options);else{options||(options={}),(Util.isString(options)||Util.isArray(options))&&(options={transformation:options}),options=Util.cloneDeep(options,function(value){if(value instanceof TransformationBase)return new value.constructor(value.toOptions())}),options.if&&(this.set("if",options.if),delete options.if);for(key in options)opt=options[key],key.match(VAR_NAME_RE)?"$attr"!==key&&this.set("variable",key,opt):this.set(key,opt)}return this},TransformationBase.prototype.fromTransformation=function(other){var j,key,len,ref;if(other instanceof TransformationBase)for(ref=other.keys(),j=0,len=ref.length;j<len;j++)key=ref[j],this.set(key,other.get(key).origValue);return this},TransformationBase.prototype.set=function(){var camelKey,key,values;return key=arguments[0],values=2<=arguments.length?slice.call(arguments,1):[],camelKey=Util.camelCase(key),Util.contains(Transformation.methods,camelKey)?this[camelKey].apply(this,values):this.otherOptions[key]=values[0],this},TransformationBase.prototype.hasLayer=function(){return this.getValue("overlay")||this.getValue("underlay")},TransformationBase.prototype.serialize=function(){var ifParam,j,len,paramList,ref,ref1,ref2,ref3,ref4,resultArray,t,tr,transformationList,transformationString,transformations,value,variables,vars;for(resultArray=function(){var j,len,ref,results;for(ref=this.chained,results=[],j=0,len=ref.length;j<len;j++)tr=ref[j],results.push(tr.serialize());return results}.call(this),paramList=this.keys(),transformations=null!=(ref=this.get("transformation"))?ref.serialize():void 0,ifParam=null!=(ref1=this.get("if"))?ref1.serialize():void 0,variables=processVar(null!=(ref2=this.get("variables"))?ref2.value():void 0),paramList=Util.difference(paramList,["transformation","if","variables"]),vars=[],transformationList=[],j=0,len=paramList.length;j<len;j++)t=paramList[j],t.match(VAR_NAME_RE)?vars.push(t+"_"+Expression.normalize(null!=(ref3=this.get(t))?ref3.value():void 0)):transformationList.push(null!=(ref4=this.get(t))?ref4.serialize():void 0);switch(!1){case!Util.isString(transformations):transformationList.push(transformations);break;case!Util.isArray(transformations):resultArray=resultArray.concat(transformations)}return transformationList=function(){var l,len1,results;for(results=[],l=0,len1=transformationList.length;l<len1;l++)value=transformationList[l],(Util.isArray(value)&&!Util.isEmpty(value)||!Util.isArray(value)&&value)&&results.push(value);return results}(),transformationList=vars.sort().concat(variables).concat(transformationList.sort()),"if_end"===ifParam?transformationList.push(ifParam):Util.isEmpty(ifParam)||transformationList.unshift(ifParam),transformationString=Util.compact(transformationList).join(this.param_separator),Util.isEmpty(transformationString)||resultArray.push(transformationString),Util.compact(resultArray).join(this.trans_separator)},TransformationBase.prototype.listNames=function(){return Transformation.methods},TransformationBase.prototype.toHtmlAttributes=function(){var attrName,height,j,key,len,options,ref,ref1,ref2,ref3,value;options={},ref=this.otherOptions;for(key in ref)value=ref[key],Util.contains(Transformation.PARAM_NAMES,Util.snakeCase(key))||(attrName=/^html_/.test(key)?key.slice(5):key,options[attrName]=value);for(ref1=this.keys(),j=0,len=ref1.length;j<len;j++)key=ref1[j],/^html_/.test(key)&&(options[Util.camelCase(key.slice(5))]=this.getValue(key));return this.hasLayer()||this.getValue("angle")||Util.contains(["fit","limit","lfill"],this.getValue("crop"))||(width=null!=(ref2=this.get("width"))?ref2.origValue:void 0,height=null!=(ref3=this.get("height"))?ref3.origValue:void 0,parseFloat(width)>=1&&null==options.width&&(options.width=width),parseFloat(height)>=1&&null==options.height&&(options.height=height)),options},TransformationBase.prototype.isValidParamName=function(name){return Transformation.methods.indexOf(Util.camelCase(name))>=0},TransformationBase.prototype.toHtml=function(){var ref;return null!=(ref=this.getParent())&&"function"==typeof ref.toHtml?ref.toHtml():void 0},TransformationBase.prototype.toString=function(){return this.serialize()},processVar=function(varArray){var j,len,name,ref,results,v;if(Util.isArray(varArray)){for(results=[],j=0,len=varArray.length;j<len;j++)ref=varArray[j],name=ref[0],v=ref[1],results.push(name+"_"+Expression.normalize(v));return results}return varArray},TransformationBase}(),Transformation=function(superClass){function Transformation(options){null==options&&(options={}),Transformation.__super__.constructor.call(this,options)}return extend(Transformation,superClass),Transformation.new=function(args){return new Transformation(args)},Transformation.prototype.angle=function(value){return this.arrayParam(value,"angle","a",".",Expression.normalize)},Transformation.prototype.audioCodec=function(value){return this.param(value,"audio_codec","ac")},Transformation.prototype.audioFrequency=function(value){return this.param(value,"audio_frequency","af")},Transformation.prototype.aspectRatio=function(value){return this.param(value,"aspect_ratio","ar",Expression.normalize)},Transformation.prototype.background=function(value){return this.param(value,"background","b",Param.norm_color)},Transformation.prototype.bitRate=function(value){return this.param(value,"bit_rate","br")},Transformation.prototype.border=function(value){return this.param(value,"border","bo",function(border){return Util.isPlainObject(border)?(border=Util.assign({},{color:"black",width:2},border),border.width+"px_solid_"+Param.norm_color(border.color)):border})},Transformation.prototype.color=function(value){return this.param(value,"color","co",Param.norm_color)},Transformation.prototype.colorSpace=function(value){return this.param(value,"color_space","cs")},Transformation.prototype.crop=function(value){return this.param(value,"crop","c")},Transformation.prototype.defaultImage=function(value){return this.param(value,"default_image","d")},Transformation.prototype.delay=function(value){return this.param(value,"delay","dl")},Transformation.prototype.density=function(value){return this.param(value,"density","dn")},Transformation.prototype.duration=function(value){return this.rangeParam(value,"duration","du")},Transformation.prototype.dpr=function(value){return this.param(value,"dpr","dpr",function(_this){return function(dpr){return dpr=dpr.toString(),(null!=dpr?dpr.match(/^\d+$/):void 0)?dpr+".0":Expression.normalize(dpr)}}(this))},Transformation.prototype.effect=function(value){return this.arrayParam(value,"effect","e",":",Expression.normalize)},Transformation.prototype.else=function(){return this.if("else")},Transformation.prototype.endIf=function(){return this.if("end")},Transformation.prototype.endOffset=function(value){return this.rangeParam(value,"end_offset","eo")},Transformation.prototype.fallbackContent=function(value){return this.param(value,"fallback_content")},Transformation.prototype.fetchFormat=function(value){return this.param(value,"fetch_format","f")},Transformation.prototype.format=function(value){return this.param(value,"format")},Transformation.prototype.flags=function(value){return this.arrayParam(value,"flags","fl",".")},Transformation.prototype.gravity=function(value){return this.param(value,"gravity","g")},Transformation.prototype.height=function(value){return this.param(value,"height","h",function(_this){return function(){return _this.getValue("crop")||_this.getValue("overlay")||_this.getValue("underlay")?Expression.normalize(value):null}}(this))},Transformation.prototype.htmlHeight=function(value){return this.param(value,"html_height")},Transformation.prototype.htmlWidth=function(value){return this.param(value,"html_width")},Transformation.prototype.if=function(value){var i,ifVal,j,ref,trIf,trRest;switch(null==value&&(value=""),value){case"else":return this.chain(),this.param(value,"if","if");case"end":for(this.chain(),i=j=ref=this.chained.length-1;j>=0&&(ifVal=this.chained[i].getValue("if"),"end"!==ifVal)&&(null==ifVal||(trIf=Transformation.new().if(ifVal),this.chained[i].remove("if"),trRest=this.chained[i],this.chained[i]=Transformation.new().transformation([trIf,trRest]),"else"===ifVal));i=j+=-1);return this.param(value,"if","if");case"":return Condition.new().setParent(this);default:return this.param(value,"if","if",function(value){return Condition.new(value).toString()})}},Transformation.prototype.keyframeInterval=function(value){return this.param(value,"keyframe_interval","ki")},Transformation.prototype.offset=function(value){var end_o,ref,start_o;if(ref=Util.isFunction(null!=value?value.split:void 0)?value.split(".."):Util.isArray(value)?value:[null,null],start_o=ref[0],end_o=ref[1],null!=start_o&&this.startOffset(start_o),null!=end_o)return this.endOffset(end_o)},Transformation.prototype.opacity=function(value){return this.param(value,"opacity","o",Expression.normalize)},Transformation.prototype.overlay=function(value){return this.layerParam(value,"overlay","l")},Transformation.prototype.page=function(value){return this.param(value,"page","pg")},Transformation.prototype.poster=function(value){return this.param(value,"poster")},Transformation.prototype.prefix=function(value){return this.param(value,"prefix","p")},Transformation.prototype.quality=function(value){return this.param(value,"quality","q",Expression.normalize)},Transformation.prototype.radius=function(value){return this.param(value,"radius","r",Expression.normalize)},Transformation.prototype.rawTransformation=function(value){return this.rawParam(value,"raw_transformation")},Transformation.prototype.size=function(value){var height,ref;if(Util.isFunction(null!=value?value.split:void 0))return ref=value.split("x"),width=ref[0],height=ref[1],this.width(width),this.height(height)},Transformation.prototype.sourceTypes=function(value){return this.param(value,"source_types")},Transformation.prototype.sourceTransformation=function(value){return this.param(value,"source_transformation")},Transformation.prototype.startOffset=function(value){return this.rangeParam(value,"start_offset","so")},Transformation.prototype.streamingProfile=function(value){return this.param(value,"streaming_profile","sp")},Transformation.prototype.transformation=function(value){return this.transformationParam(value,"transformation","t")},Transformation.prototype.underlay=function(value){return this.layerParam(value,"underlay","u")},Transformation.prototype.variable=function(name,value){return this.param(value,name,name)},Transformation.prototype.variables=function(values){return this.arrayParam(values,"variables")},Transformation.prototype.videoCodec=function(value){return this.param(value,"video_codec","vc",Param.process_video_params)},Transformation.prototype.videoSampling=function(value){return this.param(value,"video_sampling","vs")},Transformation.prototype.width=function(value){return this.param(value,"width","w",function(_this){return function(){return _this.getValue("crop")||_this.getValue("overlay")||_this.getValue("underlay")?Expression.normalize(value):null}}(this))},Transformation.prototype.x=function(value){return this.param(value,"x","x",Expression.normalize)},Transformation.prototype.y=function(value){return this.param(value,"y","y",Expression.normalize)},Transformation.prototype.zoom=function(value){return this.param(value,"zoom","z",Expression.normalize)},Transformation}(TransformationBase),Transformation.methods||(Transformation.methods=Util.difference(Util.functions(Transformation.prototype),Util.functions(TransformationBase.prototype))),Transformation.PARAM_NAMES||(Transformation.PARAM_NAMES=function(){var j,len,ref,results;for(ref=Transformation.methods,results=[],j=0,len=ref.length;j<len;j++)m=ref[j],results.push(Util.snakeCase(m));return results}().concat(Configuration.CONFIG_PARAMS)),HtmlTag=function(){function HtmlTag(name,publicId,options){var transformation;this.name=name,this.publicId=publicId,null==options&&(Util.isPlainObject(publicId)?(options=publicId,this.publicId=void 0):options={}),transformation=new Transformation(options),transformation.setParent(this),this.transformation=function(){return transformation}}var toAttribute;return HtmlTag.new=function(name,publicId,options){return new this(name,publicId,options)},toAttribute=function(key,value){return value?value===!0?key:key+'="'+value+'"':void 0},HtmlTag.prototype.htmlAttrs=function(attrs){var key,pairs,value;return pairs=function(){var results;results=[];for(key in attrs)value=attrs[key],value&&results.push(toAttribute(key,value));return results}().sort().join(" ")},HtmlTag.prototype.getOptions=function(){return this.transformation().toOptions()},HtmlTag.prototype.getOption=function(name){return this.transformation().getValue(name)},HtmlTag.prototype.attributes=function(){return this.transformation().toHtmlAttributes()},HtmlTag.prototype.setAttr=function(name,value){return this.transformation().set("html_"+name,value),this},HtmlTag.prototype.getAttr=function(name){return this.attributes()["html_"+name]||this.attributes()[name]},HtmlTag.prototype.removeAttr=function(name){var ref;return null!=(ref=this.transformation().remove("html_"+name))?ref:this.transformation().remove(name)},HtmlTag.prototype.content=function(){return""},HtmlTag.prototype.openTag=function(){return"<"+this.name+" "+this.htmlAttrs(this.attributes())+">"},HtmlTag.prototype.closeTag=function(){return"</"+this.name+">"},HtmlTag.prototype.toHtml=function(){return this.openTag()+this.content()+this.closeTag()},HtmlTag.prototype.toDOM=function(){var element,name,ref,value;if(!Util.isFunction("undefined"!=typeof document&&null!==document?document.createElement:void 0))throw"Can't create DOM if document is not present!";element=document.createElement(this.name),ref=this.attributes();for(name in ref)value=ref[name],element[name]=value;return element},HtmlTag.isResponsive=function(tag,responsiveClass){var dataSrc;return dataSrc=Util.getData(tag,"src-cache")||Util.getData(tag,"src"),Util.hasClass(tag,responsiveClass)&&/\bw_auto\b/.exec(dataSrc)},HtmlTag}(),ImageTag=function(superClass){function ImageTag(publicId,options){null==options&&(options={}),ImageTag.__super__.constructor.call(this,"img",publicId,options)}return extend(ImageTag,superClass),ImageTag.prototype.closeTag=function(){return""},ImageTag.prototype.attributes=function(){var attr,options,srcAttribute;return attr=ImageTag.__super__.attributes.call(this)||[],options=this.getOptions(),srcAttribute=options.responsive&&!options.client_hints?"data-src":"src",null==attr[srcAttribute]&&(attr[srcAttribute]=new Cloudinary(this.getOptions()).url(this.publicId)),attr},ImageTag}(HtmlTag),VideoTag=function(superClass){function VideoTag(publicId,options){null==options&&(options={}),options=Util.defaults({},options,Cloudinary.DEFAULT_VIDEO_PARAMS),VideoTag.__super__.constructor.call(this,"video",publicId.replace(/\.(mp4|ogv|webm)$/,""),options)}var DEFAULT_POSTER_OPTIONS,DEFAULT_VIDEO_SOURCE_TYPES,VIDEO_TAG_PARAMS;return extend(VideoTag,superClass),VIDEO_TAG_PARAMS=["source_types","source_transformation","fallback_content","poster"],DEFAULT_VIDEO_SOURCE_TYPES=["webm","mp4","ogv"],DEFAULT_POSTER_OPTIONS={format:"jpg",resource_type:"video"},VideoTag.prototype.setSourceTransformation=function(value){return this.transformation().sourceTransformation(value),this},VideoTag.prototype.setSourceTypes=function(value){return this.transformation().sourceTypes(value),this},VideoTag.prototype.setPoster=function(value){return this.transformation().poster(value),this},VideoTag.prototype.setFallbackContent=function(value){return this.transformation().fallbackContent(value),this},VideoTag.prototype.content=function(){var cld,fallback,innerTags,mimeType,sourceTransformation,sourceTypes,src,srcType,transformation,videoType;return sourceTypes=this.transformation().getValue("source_types"),sourceTransformation=this.transformation().getValue("source_transformation"),fallback=this.transformation().getValue("fallback_content"),Util.isArray(sourceTypes)?(cld=new Cloudinary(this.getOptions()),innerTags=function(){var j,len,results;for(results=[],j=0,len=sourceTypes.length;j<len;j++)srcType=sourceTypes[j],transformation=sourceTransformation[srcType]||{},src=cld.url(""+this.publicId,Util.defaults({},transformation,{resource_type:"video",format:srcType})),videoType="ogv"===srcType?"ogg":srcType,mimeType="video/"+videoType,results.push("<source "+this.htmlAttrs({src:src,type:mimeType})+">");return results}.call(this)):innerTags=[],innerTags.join("")+fallback},VideoTag.prototype.attributes=function(){var a,attr,j,len,poster,ref,ref1,sourceTypes;for(sourceTypes=this.getOption("source_types"),poster=null!=(ref=this.getOption("poster"))?ref:{},Util.isPlainObject(poster)&&(defaults=null!=poster.public_id?Cloudinary.DEFAULT_IMAGE_PARAMS:DEFAULT_POSTER_OPTIONS,poster=new Cloudinary(this.getOptions()).url(null!=(ref1=poster.public_id)?ref1:this.publicId,Util.defaults({},poster,defaults))),attr=VideoTag.__super__.attributes.call(this)||[],j=0,len=attr.length;j<len;j++)a=attr[j],Util.contains(VIDEO_TAG_PARAMS)||(attr=a);return Util.isArray(sourceTypes)||(attr.src=new Cloudinary(this.getOptions()).url(this.publicId,{resource_type:"video",format:sourceTypes})),null!=poster&&(attr.poster=poster),attr},VideoTag}(HtmlTag),ClientHintsMetaTag=function(superClass){function ClientHintsMetaTag(options){ClientHintsMetaTag.__super__.constructor.call(this,"meta",void 0,Util.assign({"http-equiv":"Accept-CH",content:"DPR, Viewport-Width, Width"},options))}return extend(ClientHintsMetaTag,superClass),ClientHintsMetaTag.prototype.closeTag=function(){return""},ClientHintsMetaTag}(HtmlTag),Cloudinary=function(){function Cloudinary(options){var configuration;this.devicePixelRatioCache={},this.responsiveConfig={},this.responsiveResizeInitialized=!1,configuration=new Configuration(options),this.config=function(newConfig,newValue){return configuration.config(newConfig,newValue)},this.fromDocument=function(){return configuration.fromDocument(),this},this.fromEnvironment=function(){return configuration.fromEnvironment(),this},this.init=function(){return configuration.init(),this}}var AKAMAI_SHARED_CDN,CF_SHARED_CDN,DEFAULT_POSTER_OPTIONS,DEFAULT_VIDEO_SOURCE_TYPES,OLD_AKAMAI_SHARED_CDN,SHARED_CDN,VERSION,absolutize,applyBreakpoints,cdnSubdomainNumber,closestAbove,cloudinaryUrlPrefix,defaultBreakpoints,finalizeResourceType,findContainerWidth,maxWidth,updateDpr;return VERSION="2.3.0",CF_SHARED_CDN="d3jpl91pxevbkh.cloudfront.net",OLD_AKAMAI_SHARED_CDN="cloudinary-a.akamaihd.net",AKAMAI_SHARED_CDN="res.cloudinary.com",SHARED_CDN=AKAMAI_SHARED_CDN,DEFAULT_POSTER_OPTIONS={format:"jpg",resource_type:"video"},DEFAULT_VIDEO_SOURCE_TYPES=["webm","mp4","ogv"],Cloudinary.DEFAULT_IMAGE_PARAMS={resource_type:"image",transformation:[],type:"upload"},Cloudinary.DEFAULT_VIDEO_PARAMS={fallback_content:"",resource_type:"video",source_transformation:{},source_types:DEFAULT_VIDEO_SOURCE_TYPES,transformation:[],type:"upload"},Cloudinary.new=function(options){return new this(options)},finalizeResourceType=function(resourceType,type,urlSuffix,useRootPath,shorten){var options;if(Util.isPlainObject(resourceType)&&(options=resourceType,resourceType=options.resource_type,type=options.type,urlSuffix=options.url_suffix,useRootPath=options.use_root_path,shorten=options.shorten),null==type&&(type="upload"),null!=urlSuffix)if("image"===resourceType&&"upload"===type)resourceType="images",type=null;else{if("raw"!==resourceType||"upload"!==type)throw new Error("URL Suffix only supported for image/upload and raw/upload");resourceType="files",type=null}if(useRootPath){if(("image"!==resourceType||"upload"!==type)&&"images"!==resourceType)throw new Error("Root path only supported for image/upload");resourceType=null,type=null}return shorten&&"image"===resourceType&&"upload"===type&&(resourceType="iu",type=null),[resourceType,type].join("/")},absolutize=function(url){var prefix;return url.match(/^https?:\//)||(prefix=document.location.protocol+"//"+document.location.host,"?"===url[0]?prefix+=document.location.pathname:"/"!==url[0]&&(prefix+=document.location.pathname.replace(/\/[^\/]*$/,"/")),url=prefix+url),url},Cloudinary.prototype.url=function(publicId,options){var error,prefix,ref,resourceTypeAndType,transformation,transformationString,url,version;if(null==options&&(options={}),!publicId)return publicId;if(options instanceof Transformation&&(options=options.toOptions()),options=Util.defaults({},options,this.config(),Cloudinary.DEFAULT_IMAGE_PARAMS),"fetch"===options.type&&(options.fetch_format=options.fetch_format||options.format,publicId=absolutize(publicId)),transformation=new Transformation(options),transformationString=transformation.serialize(),!options.cloud_name)throw"Unknown cloud_name";if(options.url_suffix&&!options.private_cdn)throw"URL Suffix only supported in private CDN";if(publicId.search("/")>=0&&!publicId.match(/^v[0-9]+/)&&!publicId.match(/^https?:\//)&&!(null!=(ref=options.version)?ref.toString():void 0)&&(options.version=1),publicId.match(/^https?:/))"upload"===options.type||"asset"===options.type?url=publicId:publicId=encodeURIComponent(publicId).replace(/%3A/g,":").replace(/%2F/g,"/");else{try{publicId=decodeURIComponent(publicId)}catch(error1){error=error1}if(publicId=encodeURIComponent(publicId).replace(/%3A/g,":").replace(/%2F/g,"/"),options.url_suffix){if(options.url_suffix.match(/[\.\/]/))throw"url_suffix should not include . or /";publicId=publicId+"/"+options.url_suffix}options.format&&(options.trust_public_id||(publicId=publicId.replace(/\.(jpg|png|gif|webp)$/,"")),publicId=publicId+"."+options.format)}return prefix=cloudinaryUrlPrefix(publicId,options),resourceTypeAndType=finalizeResourceType(options.resource_type,options.type,options.url_suffix,options.use_root_path,options.shorten),version=options.version?"v"+options.version:"",url||Util.compact([prefix,resourceTypeAndType,transformationString,version,publicId]).join("/").replace(/([^:])\/+/g,"$1/")},Cloudinary.prototype.video_url=function(publicId,options){return options=Util.assign({resource_type:"video"},options),this.url(publicId,options)},Cloudinary.prototype.video_thumbnail_url=function(publicId,options){return options=Util.assign({},DEFAULT_POSTER_OPTIONS,options),this.url(publicId,options)},Cloudinary.prototype.transformation_string=function(options){return new Transformation(options).serialize()},Cloudinary.prototype.image=function(publicId,options){var client_hints,img,ref,ref1;return null==options&&(options={}),img=this.imageTag(publicId,options),client_hints=null!=(ref=null!=(ref1=options.client_hints)?ref1:this.config("client_hints"))&&ref,null!=options.src||client_hints||img.setAttr("src",""),img=img.toDOM(),client_hints||(Util.setData(img,"src-cache",this.url(publicId,options)),this.cloudinary_update(img,options)),img},Cloudinary.prototype.imageTag=function(publicId,options){var tag;return tag=new ImageTag(publicId,this.config()),tag.transformation().fromOptions(options),tag},Cloudinary.prototype.video_thumbnail=function(publicId,options){return this.image(publicId,Util.merge({},DEFAULT_POSTER_OPTIONS,options))},Cloudinary.prototype.facebook_profile_image=function(publicId,options){return this.image(publicId,Util.assign({type:"facebook"},options))},Cloudinary.prototype.twitter_profile_image=function(publicId,options){return this.image(publicId,Util.assign({type:"twitter"},options))},Cloudinary.prototype.twitter_name_profile_image=function(publicId,options){return this.image(publicId,Util.assign({type:"twitter_name"},options))},Cloudinary.prototype.gravatar_image=function(publicId,options){return this.image(publicId,Util.assign({type:"gravatar"},options))},Cloudinary.prototype.fetch_image=function(publicId,options){return this.image(publicId,Util.assign({type:"fetch"},options))},Cloudinary.prototype.video=function(publicId,options){return null==options&&(options={}),this.videoTag(publicId,options).toHtml()},Cloudinary.prototype.videoTag=function(publicId,options){return options=Util.defaults({},options,this.config()),new VideoTag(publicId,options)},Cloudinary.prototype.sprite_css=function(publicId,options){return options=Util.assign({type:"sprite"},options),publicId.match(/.css$/)||(options.format="css"),this.url(publicId,options)},Cloudinary.prototype.responsive=function(options,bootstrap){var ref,ref1,ref2,responsiveClass,responsiveResize,timeout;if(null==bootstrap&&(bootstrap=!0),this.responsiveConfig=Util.merge(this.responsiveConfig||{},options),responsiveClass=null!=(ref=this.responsiveConfig.responsive_class)?ref:this.config("responsive_class"),bootstrap&&this.cloudinary_update("img."+responsiveClass+", img.cld-hidpi",this.responsiveConfig),responsiveResize=null==(ref1=null!=(ref2=this.responsiveConfig.responsive_resize)?ref2:this.config("responsive_resize"))||ref1,responsiveResize&&!this.responsiveResizeInitialized)return this.responsiveConfig.resizing=this.responsiveResizeInitialized=!0,timeout=null,window.addEventListener("resize",function(_this){return function(){var debounce,ref3,ref4,reset,run,wait,waitFunc;return debounce=null!=(ref3=null!=(ref4=_this.responsiveConfig.responsive_debounce)?ref4:_this.config("responsive_debounce"))?ref3:100,reset=function(){if(timeout)return clearTimeout(timeout),timeout=null},run=function(){return _this.cloudinary_update("img."+responsiveClass,_this.responsiveConfig)},waitFunc=function(){return reset(),run()},wait=function(){return reset(),timeout=setTimeout(waitFunc,debounce)},debounce?wait():run()}}(this))},Cloudinary.prototype.calc_breakpoint=function(element,width,steps){var breakpoints,point;return breakpoints=Util.getData(element,"breakpoints")||Util.getData(element,"stoppoints")||this.config("breakpoints")||this.config("stoppoints")||defaultBreakpoints,Util.isFunction(breakpoints)?breakpoints(width,steps):(Util.isString(breakpoints)&&(breakpoints=function(){var j,len,ref,results;for(ref=breakpoints.split(","),results=[],j=0,len=ref.length;j<len;j++)point=ref[j],results.push(parseInt(point));return results}().sort(function(a,b){return a-b})),closestAbove(breakpoints,width))},Cloudinary.prototype.calc_stoppoint=Cloudinary.prototype.calc_breakpoint,Cloudinary.prototype.device_pixel_ratio=function(roundDpr){var dpr,dprString;return null==roundDpr&&(roundDpr=!0),dpr=("undefined"!=typeof window&&null!==window?window.devicePixelRatio:void 0)||1,roundDpr&&(dpr=Math.ceil(dpr)),(dpr<=0||NaN===dpr)&&(dpr=1),dprString=dpr.toString(),dprString.match(/^\d+$/)&&(dprString+=".0"),dprString},defaultBreakpoints=function(width,steps){return null==steps&&(steps=100),steps*Math.ceil(width/steps)},closestAbove=function(list,value){var i;for(i=list.length-2;i>=0&&list[i]>=value;)i--;return list[i+1]},cdnSubdomainNumber=function(publicId){return crc32(publicId)%5+1},cloudinaryUrlPrefix=function(publicId,options){var cdnPart,host,path,protocol,ref,subdomain;return 0===(null!=(ref=options.cloud_name)?ref.indexOf("/"):void 0)?"/res"+options.cloud_name:(protocol="http://",cdnPart="",subdomain="res",host=".cloudinary.com",path="/"+options.cloud_name,options.protocol&&(protocol=options.protocol+"//"),options.private_cdn&&(cdnPart=options.cloud_name+"-",path=""),options.cdn_subdomain&&(subdomain="res-"+cdnSubdomainNumber(publicId)),options.secure?(protocol="https://",options.secure_cdn_subdomain===!1&&(subdomain="res"),null!=options.secure_distribution&&options.secure_distribution!==OLD_AKAMAI_SHARED_CDN&&options.secure_distribution!==SHARED_CDN&&(cdnPart="",subdomain="",host=options.secure_distribution)):options.cname&&(protocol="http://",cdnPart="",subdomain=options.cdn_subdomain?"a"+(crc32(publicId)%5+1)+".":"",host=options.cname),[protocol,cdnPart,subdomain,host,path].join(""))},Cloudinary.prototype.processImageTags=function(nodes,options){var images,imgOptions,node,publicId,url;return null==options&&(options={}),Util.isEmpty(nodes)?this:(options=Util.defaults({},options,this.config()),images=function(){var j,len,ref,results;for(results=[],j=0,len=nodes.length;j<len;j++)node=nodes[j],"IMG"===(null!=(ref=node.tagName)?ref.toUpperCase():void 0)&&(imgOptions=Util.assign({width:node.getAttribute("width"),height:node.getAttribute("height"),src:node.getAttribute("src")},options),publicId=imgOptions.source||imgOptions.src,delete imgOptions.source,delete imgOptions.src,url=this.url(publicId,imgOptions),imgOptions=new Transformation(imgOptions).toHtmlAttributes(),Util.setData(node,"src-cache",url),node.setAttribute("width",imgOptions.width),node.setAttribute("height",imgOptions.height),results.push(node));return results}.call(this),this.cloudinary_update(images,options),this)},applyBreakpoints=function(tag,width,steps,options){var ref,ref1,ref2,responsive_use_breakpoints;return responsive_use_breakpoints=null!=(ref=null!=(ref1=null!=(ref2=options.responsive_use_breakpoints)?ref2:options.responsive_use_stoppoints)?ref1:this.config("responsive_use_breakpoints"))?ref:this.config("responsive_use_stoppoints"),!responsive_use_breakpoints||"resize"===responsive_use_breakpoints&&!options.resizing?width:this.calc_breakpoint(tag,width,steps)},findContainerWidth=function(element){var containerWidth,style;for(containerWidth=0;(element=null!=element?element.parentNode:void 0)instanceof Element&&!containerWidth;)style=window.getComputedStyle(element),/^inline/.test(style.display)||(containerWidth=Util.width(element));return containerWidth},updateDpr=function(dataSrc,roundDpr){return dataSrc.replace(/\bdpr_(1\.0|auto)\b/g,"dpr_"+this.device_pixel_ratio(roundDpr))},maxWidth=function(requiredWidth,tag){var imageWidth;return imageWidth=Util.getData(tag,"width")||0,requiredWidth>imageWidth&&(imageWidth=requiredWidth,Util.setData(tag,"width",requiredWidth)),imageWidth},Cloudinary.prototype.cloudinary_update=function(elements,options){
var containerWidth,dataSrc,j,len,match,ref,ref1,ref2,ref3,ref4,ref5,requiredWidth,responsive,responsiveClass,roundDpr,setUrl,tag;if(null==options&&(options={}),null===elements)return this;for(responsive=null!=(ref=null!=(ref1=options.responsive)?ref1:this.config("responsive"))&&ref,elements=function(){switch(!1){case!Util.isArray(elements):return elements;case"NodeList"!==elements.constructor.name:return elements;case!Util.isString(elements):return document.querySelectorAll(elements);default:return[elements]}}(),responsiveClass=null!=(ref2=null!=(ref3=this.responsiveConfig.responsive_class)?ref3:options.responsive_class)?ref2:this.config("responsive_class"),roundDpr=null!=(ref4=options.round_dpr)?ref4:this.config("round_dpr"),j=0,len=elements.length;j<len;j++)if(tag=elements[j],(null!=(ref5=tag.tagName)?ref5.match(/img/i):void 0)&&(setUrl=!0,responsive&&Util.addClass(tag,responsiveClass),dataSrc=Util.getData(tag,"src-cache")||Util.getData(tag,"src"),!Util.isEmpty(dataSrc))){if(dataSrc=updateDpr.call(this,dataSrc,roundDpr),HtmlTag.isResponsive(tag,responsiveClass))if(containerWidth=findContainerWidth(tag),0!==containerWidth){switch(!1){case!/w_auto:breakpoints/.test(dataSrc):requiredWidth=maxWidth(containerWidth,tag),dataSrc=dataSrc.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/,"w_auto:breakpoints$1:"+requiredWidth);break;case!(match=/w_auto(:(\d+))?/.exec(dataSrc)):requiredWidth=applyBreakpoints.call(this,tag,containerWidth,match[2],options),requiredWidth=maxWidth(requiredWidth,tag),dataSrc=dataSrc.replace(/w_auto[^,\/]*/g,"w_"+requiredWidth)}Util.removeAttribute(tag,"width"),options.responsive_preserve_height||Util.removeAttribute(tag,"height")}else setUrl=!1;setUrl&&Util.setAttribute(tag,"src",dataSrc)}return this},Cloudinary.prototype.transformation=function(options){return Transformation.new(this.config()).fromOptions(options).setParent(this)},Cloudinary}(),cloudinary={utf8_encode:utf8_encode,crc32:crc32,Util:Util,Condition:Condition,Transformation:Transformation,Configuration:Configuration,HtmlTag:HtmlTag,ImageTag:ImageTag,VideoTag:VideoTag,ClientHintsMetaTag:ClientHintsMetaTag,Layer:Layer,TextLayer:TextLayer,SubtitlesLayer:SubtitlesLayer,Cloudinary:Cloudinary,VERSION:"2.3.0"}});
//# sourceMappingURL=cloudinary-core-shrinkwrap.min.js.map