slice-machine-ui 2.18.1-beta.6 → 2.18.1-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/404.html +1 -1
- package/out/_next/static/U9WVTg1pSTJVt94SbRE5Y/_buildManifest.js +1 -0
- package/out/_next/static/chunks/{248-43faecb386a16518.js → 248-a9c33f7fbe2da2f1.js} +1 -1
- package/out/_next/static/chunks/256-07f768a2b19b0a0e.js +4 -0
- package/out/_next/static/chunks/34-50c64778da33cff6.js +1 -0
- package/out/_next/static/chunks/344-fdb3008f4bb3b0c1.js +1 -0
- package/out/_next/static/chunks/429-aab52070cad2884b.js +3 -0
- package/out/_next/static/chunks/484-3e011e79c41f0342.js +1 -0
- package/out/_next/static/chunks/{489-234ed5471aa694b3.js → 489-a046ae0fa4f74435.js} +1 -1
- package/out/_next/static/chunks/500-d3989390f5e8da53.js +1 -0
- package/out/_next/static/chunks/52d4c156-89c6ec6efca0a0bb.js +1 -0
- package/out/_next/static/chunks/{630-bb6e3db525588f16.js → 630-eae75e90b30f201a.js} +1 -1
- package/out/_next/static/chunks/pages/{_app-174a369b49b73427.js → _app-1b4541325b4a29ab.js} +105 -105
- package/out/_next/static/chunks/pages/{changelog-ba55ed247c20dc21.js → changelog-3901f2fc937d9648.js} +1 -1
- package/out/_next/static/chunks/pages/changes-c58a60af39167147.js +1 -0
- package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-816acb31b652239b.js → [customTypeId]-af9376721beb489e.js} +1 -1
- package/out/_next/static/chunks/pages/{labs-78ac01d97ab02cd7.js → labs-dd04033db23a58f3.js} +1 -1
- package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-669d5479e81b638b.js → [pageTypeId]-a24665e91b882169.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/{simulator-b127d948a17968d3.js → simulator-f237aaa755dc9a99.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-c8c3e7ffb898261c.js +1 -0
- package/out/_next/static/chunks/pages/slices-0aaae79dcc7b8c55.js +1 -0
- package/out/_next/static/css/{303dad78be1eb854.css → bc89f2cd4e4781f5.css} +1 -1
- package/out/_next/static/css/e8e03c0d4003d1eb.css +1 -0
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +3 -3
- package/src/features/auth/LogoutButton.tsx +42 -36
- package/src/features/builder/fields/contentRelationship/ContentRelationshipFieldPicker.tsx +3 -3
- package/src/features/changes/StatusBadge.tsx +1 -9
- package/src/features/customTypes/customTypesBuilder/PageSnippetDialog/PageSnippetDialog.tsx +3 -3
- package/src/features/customTypes/customTypesTable/CustomTypesTablePage.tsx +3 -3
- package/src/features/environments/actions/useSetEnvironment.ts +22 -0
- package/src/features/environments/useActiveEnvironment.ts +17 -9
- package/src/features/environments/useEnvironments.ts +11 -8
- package/src/features/errorBoundaries/AppStateErrorBoundary.tsx +108 -0
- package/src/{ErrorBoundary.tsx → features/errorBoundaries/DefaultErrorBoundary.tsx} +2 -2
- package/src/features/errorBoundaries/index.ts +2 -0
- package/src/features/labs/labsList/LabsPage.tsx +3 -3
- package/src/features/navigation/Navigation.tsx +7 -8
- package/src/features/slices/sliceBuilder/FloatingBackButton.tsx +3 -3
- package/src/features/sync/AutoSyncProvider.tsx +2 -2
- package/src/features/sync/getUnSyncChanges.ts +1 -3
- package/src/legacy/components/AppLayout/index.tsx +10 -85
- package/src/legacy/components/ChangesEmptyState/UnauthenticatedView.tsx +31 -0
- package/src/legacy/components/ChangesEmptyState/index.ts +1 -1
- package/src/legacy/components/ChangesItems/ChangesItems.tsx +3 -3
- package/src/legacy/components/LoginModal/index.tsx +14 -6
- package/src/legacy/components/Navigation/ChangesItem.tsx +44 -100
- package/src/legacy/components/Navigation/Environment.tsx +2 -7
- package/src/legacy/components/Navigation/SideNavEnvironmentSelector/SideNavEnvironmentSelector.tsx +3 -8
- package/src/legacy/components/Simulator/index.tsx +3 -3
- package/src/legacy/lib/builders/CustomTypeBuilder/TabZone/index.tsx +3 -3
- package/src/modules/userContext/index.ts +5 -5
- package/src/modules/userContext/types.ts +2 -3
- package/src/pages/_app.tsx +93 -95
- package/src/pages/changes.tsx +4 -5
- package/src/queryClient.tsx +24 -0
- package/test/__testutils__/index.tsx +13 -10
- package/out/_next/static/AMILL72qfLjZDeK2IRMSB/_buildManifest.js +0 -1
- package/out/_next/static/chunks/157-54b8336d20b41933.js +0 -3
- package/out/_next/static/chunks/34-8d9d9b2944824750.js +0 -1
- package/out/_next/static/chunks/349-7118116b93278f73.js +0 -4
- package/out/_next/static/chunks/50-586dc7ab5e584e76.js +0 -1
- package/out/_next/static/chunks/pages/changes-4c23263cdc8e59c6.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-11802744e89707f7.js +0 -1
- package/out/_next/static/chunks/pages/slices-f6552e2fbc491c4d.js +0 -1
- package/out/_next/static/css/cdee5b195444f185.css +0 -1
- package/src/features/environments/actions/setEnvironment.ts +0 -18
- package/src/legacy/components/ChangesEmptyState/AuthErrorPage.tsx +0 -44
- /package/out/_next/static/{AMILL72qfLjZDeK2IRMSB → U9WVTg1pSTJVt94SbRE5Y}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[797],{44005:function(t,e,n){var r,o=n(48834).lW,i=n(34406);r=function(t,e,n,r,u,a,c,s,l,f,p,h,y,d){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e||4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,(function(e){return t[e]}).bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="./src/namespace/cloudinary-core.js")}({"./src/namespace/cloudinary-core.js":function(t,e,n){"use strict";n.r(e),n.d(e,"ClientHintsMetaTag",function(){return nS}),n.d(e,"Cloudinary",function(){return nI}),n.d(e,"Condition",function(){return ec}),n.d(e,"Configuration",function(){return ep}),n.d(e,"crc32",function(){return b}),n.d(e,"Expression",function(){return eo}),n.d(e,"FetchLayer",function(){return eA}),n.d(e,"HtmlTag",function(){return e2}),n.d(e,"ImageTag",function(){return ni}),n.d(e,"Layer",function(){return eh}),n.d(e,"PictureTag",function(){return nd}),n.d(e,"SubtitlesLayer",function(){return ew}),n.d(e,"TextLayer",function(){return em}),n.d(e,"Transformation",function(){return e1}),n.d(e,"utf8_encode",function(){return m}),n.d(e,"Util",function(){return v}),n.d(e,"VideoTag",function(){return nk});var r,u,a,c,s,l,f,p,h,y,d={};n.r(d),n.d(d,"VERSION",function(){return to}),n.d(d,"CF_SHARED_CDN",function(){return ti}),n.d(d,"OLD_AKAMAI_SHARED_CDN",function(){return tu}),n.d(d,"AKAMAI_SHARED_CDN",function(){return ta}),n.d(d,"SHARED_CDN",function(){return tc}),n.d(d,"DEFAULT_TIMEOUT_MS",function(){return ts}),n.d(d,"DEFAULT_POSTER_OPTIONS",function(){return tl}),n.d(d,"DEFAULT_VIDEO_SOURCE_TYPES",function(){return tf}),n.d(d,"SEO_TYPES",function(){return tp}),n.d(d,"DEFAULT_IMAGE_PARAMS",function(){return th}),n.d(d,"DEFAULT_VIDEO_PARAMS",function(){return ty}),n.d(d,"DEFAULT_VIDEO_SOURCES",function(){return td}),n.d(d,"DEFAULT_EXTERNAL_LIBRARIES",function(){return tv}),n.d(d,"PLACEHOLDER_IMAGE_MODES",function(){return tm}),n.d(d,"ACCESSIBILITY_MODES",function(){return tb}),n.d(d,"URL_KEYS",function(){return tg});var v={};n.r(v),n.d(v,"getSDKAnalyticsSignature",function(){return E}),n.d(v,"getAnalyticsOptions",function(){return A}),n.d(v,"assign",function(){return S.a}),n.d(v,"cloneDeep",function(){return C.a}),n.d(v,"compact",function(){return B.a}),n.d(v,"difference",function(){return R.a}),n.d(v,"functions",function(){return F.a}),n.d(v,"identity",function(){return z.a}),n.d(v,"includes",function(){return V.a}),n.d(v,"isArray",function(){return M.a}),n.d(v,"isPlainObject",function(){return H.a}),n.d(v,"isString",function(){return $.a}),n.d(v,"merge",function(){return Y.a}),n.d(v,"contains",function(){return V.a}),n.d(v,"isIntersectionObserverSupported",function(){return te}),n.d(v,"isNativeLazyLoadSupported",function(){return tn}),n.d(v,"detectIntersection",function(){return tr}),n.d(v,"omit",function(){return tw}),n.d(v,"allStrings",function(){return tO}),n.d(v,"without",function(){return tk}),n.d(v,"isNumberLike",function(){return tE}),n.d(v,"smartEscape",function(){return tA}),n.d(v,"defaults",function(){return tD}),n.d(v,"objectProto",function(){return tS}),n.d(v,"objToString",function(){return tj}),n.d(v,"isObject",function(){return tC}),n.d(v,"funcTag",function(){return tP}),n.d(v,"reWords",function(){return tx}),n.d(v,"camelCase",function(){return tR}),n.d(v,"snakeCase",function(){return tT}),n.d(v,"convertKeys",function(){return tF}),n.d(v,"withCamelCaseKeys",function(){return tI}),n.d(v,"withSnakeCaseKeys",function(){return tz}),n.d(v,"base64Encode",function(){return tL}),n.d(v,"base64EncodeURL",function(){return tV}),n.d(v,"extractUrlParams",function(){return tN}),n.d(v,"patchFetchFormat",function(){return tM}),n.d(v,"optionConsume",function(){return tU}),n.d(v,"isEmpty",function(){return tH}),n.d(v,"isAndroid",function(){return t$}),n.d(v,"isEdge",function(){return tq}),n.d(v,"isChrome",function(){return tY}),n.d(v,"isSafari",function(){return tQ}),n.d(v,"isElement",function(){return K.a}),n.d(v,"isFunction",function(){return X.a}),n.d(v,"trim",function(){return J.a}),n.d(v,"getData",function(){return tK}),n.d(v,"setData",function(){return tG}),n.d(v,"getAttribute",function(){return tX}),n.d(v,"setAttribute",function(){return tZ}),n.d(v,"removeAttribute",function(){return tJ}),n.d(v,"setAttributes",function(){return t0}),n.d(v,"hasClass",function(){return t1}),n.d(v,"addClass",function(){return t6}),n.d(v,"getStyles",function(){return t2}),n.d(v,"cssExpand",function(){return t3}),n.d(v,"domStyle",function(){return t4}),n.d(v,"curCSS",function(){return t8}),n.d(v,"cssValue",function(){return t9}),n.d(v,"augmentWidthOrHeight",function(){return t5}),n.d(v,"getWidthOrHeight",function(){return et}),n.d(v,"width",function(){return ee});var m=function(t){var e,n,r,o,i,u,a,c;if(null==t)return"";for(u=t+"",c="",i=void 0,r=void 0,a=0,i=r=0,a=u.length,o=0;o<a;)e=u.charCodeAt(o),n=null,e<128?r++:n=e>127&&e<2048?String.fromCharCode(e>>6|192,63&e|128):String.fromCharCode(e>>12|224,e>>6&63|128,63&e|128),null!==n&&(r>i&&(c+=u.slice(i,r)),c+=n,i=r=o+1),o++;return r>i&&(c+=u.slice(i,a)),c},b=function(t){var e,n,r,o,i,u;for(t=m(t),o="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",i=0,u=0,e=-1,n=0,r=t.length;n<r;)u=(e^t.charCodeAt(n))&255,e=e>>>8^(i="0x"+o.substr(9*u,8)),n++;return(e^=-1)<0&&(e+=4294967296),e};function g(t,e,n){return(e>>=0,n=String(void 0!==n?n:" "),t.length>e)?String(t):((e-=t.length)>n.length&&(n+=function(t,e){for(var n="";e>0;)n+=t,e--;return n}(n,e/n.length)),n.slice(0,e)+String(t))}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var w=0,O={};function k(t){var e="",n=t.split(".").length,r=parseInt((function(t){if(t.split(".").length<2)throw Error("invalid semVer, must have at least two segments");return t.split(".").reverse().map(function(t){return g(t,2,"0")}).join(".")})(t).split(".").join("")).toString(2);if((r=g(r,6*n,"0")).length%6!=0)throw"Version must be smaller than 43.21.26)";return r.match(/.{1,6}/g).forEach(function(t){e+=O[t]}),e}function E(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{var e,n=(e=t.techVersion.split("."),"".concat(e[0],".").concat(e[1])),r=k(t.sdkSemver),o=k(n),i=t.feature,u=t.sdkCode;return"".concat("A").concat(u).concat(r).concat(o).concat(i)}catch(t){return"E"}}function A(t){var e={sdkSemver:t.sdkSemver,techVersion:t.techVersion,sdkCode:t.sdkCode,feature:"0"};return t.urlAnalytics?(t.accessibility&&(e.feature="D"),"lazy"===t.loading&&(e.feature="C"),t.responsive&&(e.feature="A"),t.placeholder&&(e.feature="B"),e):{}}((function(t){if(Array.isArray(t))return _(t)})(r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return _(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,void 0)}}(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach(function(t){var e=w.toString(2);O[e=g(e,6,"0")]=t,w++});var D=n("lodash/assign"),S=n.n(D),j=n("lodash/cloneDeep"),C=n.n(j),P=n("lodash/compact"),B=n.n(P),x=n("lodash/difference"),R=n.n(x),T=n("lodash/functions"),F=n.n(T),I=n("lodash/identity"),z=n.n(I),L=n("lodash/includes"),V=n.n(L),N=n("lodash/isArray"),M=n.n(N),U=n("lodash/isPlainObject"),H=n.n(U),W=n("lodash/isString"),$=n.n(W),q=n("lodash/merge"),Y=n.n(q),Q=n("lodash/isElement"),K=n.n(Q),G=n("lodash/isFunction"),X=n.n(G),Z=n("lodash/trim"),J=n.n(Z);function tt(t){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function te(){return("undefined"==typeof window?"undefined":tt(window))==="object"&&window.IntersectionObserver}function tn(){return("undefined"==typeof HTMLImageElement?"undefined":tt(HTMLImageElement))==="object"&&HTMLImageElement.prototype.loading}function tr(t,e){try{if(tn()||!te()){e();return}var n=new IntersectionObserver(function(t){t.forEach(function(t){t.isIntersecting&&(e(),n.unobserve(t.target))})},{threshold:[0,.01]});n.observe(t)}catch(t){e()}}var to="2.5.0",ti="d3jpl91pxevbkh.cloudfront.net",tu="cloudinary-a.akamaihd.net",ta="res.cloudinary.com",tc=ta,ts=1e4,tl={format:"jpg",resource_type:"video"},tf=["webm","mp4","ogv"],tp={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"},th={resource_type:"image",transformation:[],type:"upload"},ty={fallback_content:"",resource_type:"video",source_transformation:{},source_types:tf,transformation:[],type:"upload"},td=[{type:"mp4",codecs:"hev1",transformations:{video_codec:"h265"}},{type:"webm",codecs:"vp9",transformations:{video_codec:"vp9"}},{type:"mp4",transformations:{video_codec:"auto"}},{type:"webm",transformations:{video_codec:"auto"}}],tv={seeThru:"https://unpkg.com/seethru@4/dist/seeThru.min.js"},tm={blur:[{effect:"blur:2000",quality:1,fetch_format:"auto"}],pixelate:[{effect:"pixelate",quality:1,fetch_format:"auto"}],"predominant-color-pixel":[{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:1,height:1,gravity:"north_east"},{fetch_format:"auto",quality:"auto"}],"predominant-color":[{variables:[["$currWidth","w"],["$currHeight","h"]]},{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:10,height:10,gravity:"north_east"},{width:"$currWidth",height:"$currHeight",crop:"fill"},{fetch_format:"auto",quality:"auto"}],vectorize:[{effect:"vectorize:3:0.1",fetch_format:"svg"}]},tb={darkmode:"tint:75:black",brightmode:"tint:50:white",monochrome:"grayscale",colorblind:"assist_colorblind"},tg=["accessibility","api_secret","auth_token","cdn_subdomain","cloud_name","cname","format","placeholder","private_cdn","resource_type","secure","secure_cdn_subdomain","secure_distribution","shorten","sign_url","signature","ssl_detected","type","url_suffix","use_root_path","version"];function t_(t){return(t_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tw(t,e){var n=Object.keys(t=t||{}).filter(function(t){return!V()(e,t)}),r={};return n.forEach(function(e){return r[e]=t[e]}),r}var tO=function(t){return t.length&&t.every($.a)},tk=function(t,e){return t.filter(function(t){return t!==e})},tE=function(t){return null!=t&&!isNaN(parseFloat(t))},tA=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/([^a-zA-Z0-9_.\-\/:]+)/g;return t.replace(e,function(t){return t.split("").map(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}).join("")})},tD=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.reduce(function(t,e){var n,r;for(n in e)r=e[n],void 0===t[n]&&(t[n]=r);return t},t)},tS=Object.prototype,tj=tS.toString,tC=function(t){var e;return e=t_(t),!!t&&("object"===e||"function"===e)},tP="[object Function]",tB=function(t){return tC(t)&&tj.call(t)===tP},tx=RegExp((a="[A-Z]")+"+(?="+a+(u="[a-z]+")+")|"+a+"?"+u+"|"+a+"+|[0-9]+","g"),tR=function(t){var e=t.match(tx);return(e=e.map(function(t){return t.charAt(0).toLocaleUpperCase()+t.slice(1).toLocaleLowerCase()}))[0]=e[0].toLocaleLowerCase(),e.join("")},tT=function(t){var e=t.match(tx);return(e=e.map(function(t){return t.toLocaleLowerCase()})).join("_")},tF=function(t,e){var n,r;for(var o in n={},t)r=t[o],e&&(o=e(o)),tH(o)||(n[o]=r);return n},tI=function(t){return tF(t,tR)},tz=function(t){return tF(t,tT)},tL="undefined"!=typeof btoa&&tB(btoa)?btoa:void 0!==o&&tB(o)?function(t){return t instanceof o||(t=new o.from(String(t),"binary")),t.toString("base64")}:function(t){throw Error("No base64 encoding function found")},tV=function(t){try{t=decodeURI(t)}finally{t=encodeURI(t)}return tL(t)};function tN(t){return tg.reduce(function(e,n){return null!=t[n]&&(e[n]=t[n]),e},{})}function tM(t){null==t&&(t={}),"fetch"===t.type&&null==t.fetch_format&&(t.fetch_format=tU(t,"format"))}function tU(t,e,n){var r=t[e];return(delete t[e],null!=r)?r:n}function tH(t){if(null==t)return!0;if("number"==typeof t.length)return 0===t.length;if("number"==typeof t.size)return 0===t.size;if("object"==t_(t)){for(var e in t)if(t.hasOwnProperty(e))return!1}return!0}function tW(){return navigator&&navigator.userAgent||""}function t$(){var t=tW();return/Android/i.test(t)}function tq(){var t=tW();return/Edg/i.test(t)}function tY(){var t=tW();return!tq()&&(/Chrome/i.test(t)||/CriOS/i.test(t))}function tQ(){var t=tW();return/Safari/i.test(t)&&!tY()&&!t$()&&!tq()}var tK=function(t,e){switch(!1){case null!=t:return;case!X()(t.getAttribute):return t.getAttribute("data-".concat(e));case!X()(t.getAttr):return t.getAttr("data-".concat(e));case!X()(t.data):return t.data(e);case!(X()("undefined"!=typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&K()(t)):return jQuery(t).data(e)}},tG=function(t,e,n){switch(!1){case null!=t:return;case!X()(t.setAttribute):return t.setAttribute("data-".concat(e),n);case!X()(t.setAttr):return t.setAttr("data-".concat(e),n);case!X()(t.data):return t.data(e,n);case!(X()("undefined"!=typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&K()(t)):return jQuery(t).data(e,n)}},tX=function(t,e){switch(!1){case null!=t:return;case!X()(t.getAttribute):return t.getAttribute(e);case!X()(t.attr):return t.attr(e);case!X()(t.getAttr):return t.getAttr(e)}},tZ=function(t,e,n){switch(!1){case null!=t:return;case!X()(t.setAttribute):return t.setAttribute(e,n);case!X()(t.attr):return t.attr(e,n);case!X()(t.setAttr):return t.setAttr(e,n)}},tJ=function(t,e){switch(!1){case null!=t:return;case!X()(t.removeAttribute):return t.removeAttribute(e);default:return tZ(t,void 0)}},t0=function(t,e){var n,r,o;for(n in r=[],e)null!=(o=e[n])?r.push(tZ(t,n,o)):r.push(tJ(t,n));return r},t1=function(t,e){if(K()(t))return t.className.match(new RegExp("\\b".concat(e,"\\b")))},t6=function(t,e){if(!t.className.match(new RegExp("\\b".concat(e,"\\b"))))return t.className=J()("".concat(t.className," ").concat(e))},t2=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):window.getComputedStyle(t,null)},t3=["Top","Right","Bottom","Left"];c=function(t,e){var n,r;return n=9===t.nodeType?t.documentElement:t,t===(r=e&&e.parentNode)||!!(r&&1===r.nodeType&&n.contains(r))};var t4=function(t,e){if(!(!t||3===t.nodeType||8===t.nodeType||!t.style))return t.style[e]},t8=function(t,e,n){var r,o,i,u,a,s;return(u=/^margin/,s=void 0,o=void 0,r=void 0,i=void 0,a=t.style,(n=n||t2(t))&&(i=n.getPropertyValue(e)||n[e]),n&&(""!==i||c(t.ownerDocument,t)||(i=t4(t,e)),t7.test(i)&&u.test(e)&&(s=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=i,i=n.width,a.width=s,a.minWidth=o,a.maxWidth=r)),void 0!==i)?i+"":i},t9=function(t,e,n,r){var o;return(o=t8(t,e,r),n)?parseFloat(o):o},t5=function(t,e,n,r,o){var i,u,a,c,s;if(n===(r?"border":"content"))return 0;for(i=0,s=0,u=(c="width"===e?["Right","Left"]:["Top","Bottom"]).length;i<u;i++)a=c[i],"margin"===n&&(s+=t9(t,n+a,!0,o)),r?("content"===n&&(s-=t9(t,"padding".concat(a),!0,o)),"margin"!==n&&(s-=t9(t,"border".concat(a,"Width"),!0,o))):(s+=t9(t,"padding".concat(a),!0,o),"padding"!==n&&(s+=t9(t,"border".concat(a,"Width"),!0,o)));return s},t7=RegExp("^("+/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source+")(?!px)[a-z%]+$","i"),et=function(t,e,n){var r,o,i,u;if(u=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=t2(t),r="border-box"===t9(t,"boxSizing",!1,o),i<=0||null==i){if(((i=t8(t,e,o))<0||null==i)&&(i=t.style[e]),t7.test(i))return i;u=r&&i===t.style[e],i=parseFloat(i)||0}return i+t5(t,e,n||(r?"border":"content"),u,o)},ee=function(t){return et(t,"width","content")};function en(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var er=function(){var t,e;function n(t){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,n),this.expressions=[],null!=t&&this.expressions.push(n.normalize(t))}return t=[{key:"serialize",value:function(){return n.normalize(this.expressions.join("_"))}},{key:"toString",value:function(){return this.serialize()}},{key:"getParent",value:function(){return this.parent}},{key:"setParent",value:function(t){return this.parent=t,this}},{key:"predicate",value:function(t,e,r){return null!=n.OPERATORS[e]&&(e=n.OPERATORS[e]),this.expressions.push("".concat(t,"_").concat(e,"_").concat(r)),this}},{key:"and",value:function(){return this.expressions.push("and"),this}},{key:"or",value:function(){return this.expressions.push("or"),this}},{key:"then",value:function(){return this.getParent().if(this.toString())}},{key:"height",value:function(t,e){return this.predicate("h",t,e)}},{key:"width",value:function(t,e){return this.predicate("w",t,e)}},{key:"aspectRatio",value:function(t,e){return this.predicate("ar",t,e)}},{key:"pageCount",value:function(t,e){return this.predicate("pc",t,e)}},{key:"faceCount",value:function(t,e){return this.predicate("fc",t,e)}},{key:"value",value:function(t){return this.expressions.push(t),this}}],e=[{key:"new",value:function(t){return new this(t)}},{key:"normalize",value:function(t){if(null==t)return t;t=String(t);var e=RegExp("((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^)(?=[ _]))","g");t=t.replace(e,function(t){return n.OPERATORS[t]});var r="("+Object.keys(n.PREDEFINED_VARS).map(function(t){return":".concat(t,"|").concat(t)}).join("|")+")",o=RegExp("".concat("(\\$_*[^_ ]+)","|").concat(r),"g");return(t=t.replace(o,function(t){return n.PREDEFINED_VARS[t]||t})).replace(/[ _]+/g,"_")}},{key:"variable",value:function(t,e){return new this(t).value(e)}},{key:"width",value:function(){return new this("width")}},{key:"height",value:function(){return new this("height")}},{key:"initialWidth",value:function(){return new this("initialWidth")}},{key:"initialHeight",value:function(){return new this("initialHeight")}},{key:"aspectRatio",value:function(){return new this("aspectRatio")}},{key:"initialAspectRatio",value:function(){return new this("initialAspectRatio")}},{key:"pageCount",value:function(){return new this("pageCount")}},{key:"faceCount",value:function(){return new this("faceCount")}},{key:"currentPage",value:function(){return new this("currentPage")}},{key:"tags",value:function(){return new this("tags")}},{key:"pageX",value:function(){return new this("pageX")}},{key:"pageY",value:function(){return new this("pageY")}}],t&&en(n.prototype,t),e&&en(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();er.OPERATORS={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub","^":"pow"},er.PREDEFINED_VARS={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp",duration:"du",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_duration:"idu",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialDuration:"idu",initialHeight:"ih",initialWidth:"iw",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"},er.BOUNDRY="[ _]+";var eo=er;function ei(t){return(ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function eu(t,e){return(eu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ea(t){return(ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ec=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&eu(t,e)}(o,t);var e,n,r=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=ea(o);return t=e?Reflect.construct(n,arguments,ea(this).constructor):n.apply(this,arguments),function(t,e){if(e&&("object"===ei(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function o(t){return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,o),r.call(this,t)}return n=[{key:"height",value:function(t,e){return this.predicate("h",t,e)}},{key:"width",value:function(t,e){return this.predicate("w",t,e)}},{key:"aspectRatio",value:function(t,e){return this.predicate("ar",t,e)}},{key:"pageCount",value:function(t,e){return this.predicate("pc",t,e)}},{key:"faceCount",value:function(t,e){return this.predicate("fc",t,e)}},{key:"duration",value:function(t,e){return this.predicate("du",t,e)}},{key:"initialDuration",value:function(t,e){return this.predicate("idu",t,e)}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(o.prototype,n),Object.defineProperty(o,"prototype",{writable:!1}),o}(eo);function es(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var el=function(){var t;function e(t){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),this.configuration=null==t?{}:C()(t),tD(this.configuration,ef)}return t=[{key:"init",value:function(){return this.fromEnvironment(),this.fromDocument(),this}},{key:"set",value:function(t,e){return this.configuration[t]=e,this}},{key:"get",value:function(t){return this.configuration[t]}},{key:"merge",value:function(t){return S()(this.configuration,C()(t)),this}},{key:"fromDocument",value:function(){var t,e,n,r;if(r="undefined"!=typeof document&&null!==document?document.querySelectorAll('meta[name^="cloudinary_"]'):void 0)for(e=0,n=r.length;e<n;e++)t=r[e],this.configuration[t.getAttribute("name").replace("cloudinary_","")]=t.getAttribute("content");return this}},{key:"fromEnvironment",value:function(){var t,e,n,r=this;return null!=i&&i.env&&i.env.CLOUDINARY_URL&&(t=i.env.CLOUDINARY_URL,(n=/cloudinary:\/\/(?:(\w+)(?:\:([\w-]+))?@)?([\w\.-]+)(?:\/([^?]*))?(?:\?(.+))?/.exec(t))&&(null!=n[3]&&(this.configuration.cloud_name=n[3]),null!=n[1]&&(this.configuration.api_key=n[1]),null!=n[2]&&(this.configuration.api_secret=n[2]),null!=n[4]&&(this.configuration.private_cdn=null!=n[4]),null!=n[4]&&(this.configuration.secure_distribution=n[4]),null!=(e=n[5])&&e.split("&").forEach(function(t){var e,n=function(t){if(Array.isArray(t))return t}(e=t.split("="))||function(t,e){var n,r,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],u=!0,a=!1;try{for(o=o.call(t);!(u=(n=o.next()).done)&&(i.push(n.value),2!==i.length);u=!0);}catch(t){a=!0,r=t}finally{try{u||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,2)||function(t,e){if(t){if("string"==typeof t)return es(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return es(t,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=n[0],i=n[1];null==i&&(i=!0),r.configuration[o]=i}))),this}},{key:"config",value:function(t,e){switch(!1){case void 0===e:return this.set(t,e),this.configuration;case!$()(t):return this.get(t);case!H()(t):return this.merge(t),this.configuration;default:return this.configuration}}},{key:"toOptions",value:function(){return C()(this.configuration)}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(),ef={responsive_class:"cld-responsive",responsive_use_breakpoints:!0,round_dpr:!0,secure:("undefined"!=typeof window&&null!==window&&window.location?window.location.protocol:void 0)==="https:"};el.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","externalLibraries","max_timeout_ms"];var ep=el,eh=function(){var t;function e(t){var n=this;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),this.options={},null!=t&&["resourceType","type","publicId","format"].forEach(function(e){var r;return n.options[e]=null!=(r=t[e])?r:t[tT(e)]})}return t=[{key:"resourceType",value:function(t){return this.options.resourceType=t,this}},{key:"type",value:function(t){return this.options.type=t,this}},{key:"publicId",value:function(t){return this.options.publicId=t,this}},{key:"getPublicId",value:function(){var t;return null!=(t=this.options.publicId)?t.replace(/\//g,":"):void 0}},{key:"getFullPublicId",value:function(){return null!=this.options.format?this.getPublicId()+"."+this.options.format:this.getPublicId()}},{key:"format",value:function(t){return this.options.format=t,this}},{key:"toString",value:function(){var t;if(t=[],null==this.options.publicId)throw"Must supply publicId";return"image"!==this.options.resourceType&&t.push(this.options.resourceType),"upload"!==this.options.type&&t.push(this.options.type),t.push(this.getFullPublicId()),B()(t).join(":")}},{key:"clone",value:function(){return new this.constructor(this.options)}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}();function ey(t){return(ey="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ed(t,e){return(ed=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ev(t){return(ev=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var em=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ed(t,e)}(o,t);var e,n,r=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=ev(o);return t=e?Reflect.construct(n,arguments,ev(this).constructor):n.apply(this,arguments),function(t,e){if(e&&("object"===ey(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function o(t){var e,n;return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,o),e=r.call(this,t),n=["resourceType","resourceType","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textAlign","stroke","letterSpacing","lineSpacing","fontHinting","fontAntialiasing","text","textStyle"],null!=t&&n.forEach(function(n){var r;return e.options[n]=null!=(r=t[n])?r:t[tT(n)]}),e.options.resourceType="text",e}return n=[{key:"resourceType",value:function(t){throw"Cannot modify resourceType for text layers"}},{key:"type",value:function(t){throw"Cannot modify type for text layers"}},{key:"format",value:function(t){throw"Cannot modify format for text layers"}},{key:"fontFamily",value:function(t){return this.options.fontFamily=t,this}},{key:"fontSize",value:function(t){return this.options.fontSize=t,this}},{key:"fontWeight",value:function(t){return this.options.fontWeight=t,this}},{key:"fontStyle",value:function(t){return this.options.fontStyle=t,this}},{key:"textDecoration",value:function(t){return this.options.textDecoration=t,this}},{key:"textAlign",value:function(t){return this.options.textAlign=t,this}},{key:"stroke",value:function(t){return this.options.stroke=t,this}},{key:"letterSpacing",value:function(t){return this.options.letterSpacing=t,this}},{key:"lineSpacing",value:function(t){return this.options.lineSpacing=t,this}},{key:"fontHinting",value:function(t){return this.options.fontHinting=t,this}},{key:"fontAntialiasing",value:function(t){return this.options.fontAntialiasing=t,this}},{key:"text",value:function(t){return this.options.text=t,this}},{key:"textStyle",value:function(t){return this.options.textStyle=t,this}},{key:"toString",value:function(){var t,e,n,r,o,i,u,a,c,s;if(a=this.textStyleIdentifier(),null!=this.options.publicId&&(r=this.getFullPublicId()),null!=this.options.text){if(e=!tH(r),n=!tH(a),e&&n||!e&&!n)throw"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay, but not both!";for(o=/\$\([a-zA-Z]\w*\)/g,u=0,s=tA(this.options.text,/[,\/]/g),c="";i=o.exec(s);)c+=tA(s.slice(u,i.index))+i[0],u=i.index+i[0].length;c+=tA(s.slice(u))}return t=[this.options.resourceType,a,r,c],B()(t).join(":")}},{key:"textStyleIdentifier",value:function(){var t;if(!tH(this.options.textStyle))return this.options.textStyle;if(t=[],"normal"!==this.options.fontWeight&&t.push(this.options.fontWeight),"normal"!==this.options.fontStyle&&t.push(this.options.fontStyle),"none"!==this.options.textDecoration&&t.push(this.options.textDecoration),t.push(this.options.textAlign),"none"!==this.options.stroke&&t.push(this.options.stroke),tH(this.options.letterSpacing)&&!tE(this.options.letterSpacing)||t.push("letter_spacing_"+this.options.letterSpacing),tH(this.options.lineSpacing)&&!tE(this.options.lineSpacing)||t.push("line_spacing_"+this.options.lineSpacing),tH(this.options.fontAntialiasing)||t.push("antialias_"+this.options.fontAntialiasing),tH(this.options.fontHinting)||t.push("hinting_"+this.options.fontHinting),!tH(B()(t))){if(tH(this.options.fontFamily))throw"Must supply fontFamily. ".concat(t);if(tH(this.options.fontSize)&&!tE(this.options.fontSize))throw"Must supply fontSize."}return t.unshift(this.options.fontFamily,this.options.fontSize),t=B()(t).join("_")}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(o.prototype,n),Object.defineProperty(o,"prototype",{writable:!1}),o}(eh);function eb(t){return(eb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function eg(t,e){return(eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function e_(t){return(e_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ew=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&eg(t,e)}(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=e_(r);return t=e?Reflect.construct(n,arguments,e_(this).constructor):n.apply(this,arguments),function(t,e){if(e&&("object"===eb(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function r(t){var e;return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this,t)).options.resourceType="subtitles",e}return Object.defineProperty(r,"prototype",{writable:!1}),r}(em);function eO(t){return(eO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ek(t,e){return(ek=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function eE(t){return(eE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var eA=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ek(t,e)}(o,t);var e,n,r=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=eE(o);return t=e?Reflect.construct(n,arguments,eE(this).constructor):n.apply(this,arguments),function(t,e){if(e&&("object"===eO(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function o(t){var e;return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,o),e=r.call(this,t),$()(t)?e.options.url=t:(null!=t?t.url:void 0)&&(e.options.url=t.url),e}return n=[{key:"url",value:function(t){return this.options.url=t,this}},{key:"toString",value:function(){return"fetch:".concat(tV(this.options.url))}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(o.prototype,n),Object.defineProperty(o,"prototype",{writable:!1}),o}(eh);function eD(t){return(eD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function eS(){return(eS="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=eB(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function ej(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&eC(t,e)}function eC(t,e){return(eC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function eP(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=eB(t);return n=e?Reflect.construct(r,arguments,eB(this).constructor):r.apply(this,arguments),function(t,e){if(e&&("object"===eD(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function eB(t){return(eB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ex(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}function eR(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function eT(t,e,n){return e&&eR(t.prototype,e),n&&eR(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var eF=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z.a;ex(this,t),this.name=e,this.shortName=n,this.process=r}return eT(t,[{key:"set",value:function(t){return this.origValue=t,this}},{key:"serialize",value:function(){var t,e;return(t=this.value(),e=M()(t)||H()(t)||$()(t)?!tH(t):null!=t,null!=this.shortName&&e)?"".concat(this.shortName,"_").concat(t):""}},{key:"value",value:function(){return this.process(this.origValue)}}],[{key:"norm_color",value:function(t){return null!=t?t.replace(/^#/,"rgb:"):void 0}},{key:"build_array",value:function(t){return null==t?[]:M()(t)?t:[t]}},{key:"process_video_params",value:function(t){var e;switch(t.constructor){case Object:return e="","codec"in t&&(e=t.codec,"profile"in t&&(e+=":"+t.profile,"level"in t&&(e+=":"+t.level,"b_frames"in t&&!1===t.b_frames&&(e+=":bframes_no")))),e;case String:return t;default:return null}}}]),t}(),eI=function(t){ej(n,t);var e=eP(n);function n(t,r){var o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return ex(this,n),(o=e.call(this,t,r,u)).sep=i,o}return eT(n,[{key:"serialize",value:function(){if(null==this.shortName)return"";var t=this.value();if(tH(t))return"";if($()(t))return"".concat(this.shortName,"_").concat(t);var e=t.map(function(t){return X()(t.serialize)?t.serialize():t}).join(this.sep);return"".concat(this.shortName,"_").concat(e)}},{key:"value",value:function(){var t=this;return M()(this.origValue)?this.origValue.map(function(e){return t.process(e)}):this.process(this.origValue)}},{key:"set",value:function(t){return null==t||M()(t)?eS(eB(n.prototype),"set",this).call(this,t):eS(eB(n.prototype),"set",this).call(this,[t])}}]),n}(eF),ez=function(t){ej(n,t);var e=eP(n);function n(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"t",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return ex(this,n),(r=e.call(this,t,o,u)).sep=i,r}return eT(n,[{key:"serialize",value:function(){var t=this,e="",n=this.value();if(tH(n))return e;if(tO(n)){var r=n.join(this.sep);tH(r)||(e="".concat(this.shortName,"_").concat(r))}else e=n.map(function(e){return $()(e)&&!tH(e)?"".concat(t.shortName,"_").concat(e):X()(e.serialize)?e.serialize():H()(e)&&!tH(e)?new e1(e).serialize():void 0}).filter(function(t){return t});return e}},{key:"set",value:function(t){return(this.origValue=t,M()(this.origValue))?eS(eB(n.prototype),"set",this).call(this,this.origValue):eS(eB(n.prototype),"set",this).call(this,[this.origValue])}}]),n}(eF),eL=function(t){ej(n,t);var e=eP(n);function n(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.norm_range_value;return ex(this,n),e.call(this,t,r,o)}return eT(n,null,[{key:"norm_range_value",value:function(t){var e=String(t).match(RegExp("^(([0-9]*)\\.([0-9]+)|([0-9]+))([%pP])?$"));if(e){var n=null!=e[5]?"p":"";t=(e[1]||e[4])+n}return eo.normalize(t)}}]),n}(eF),eV=function(t){ej(n,t);var e=eP(n);function n(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z.a;return ex(this,n),e.call(this,t,r,o)}return eT(n,[{key:"serialize",value:function(){return this.value()}}]),n}(eF),eN=function(t){ej(n,t);var e=eP(n);function n(){return ex(this,n),e.apply(this,arguments)}return eT(n,[{key:"value",value:function(){if(null==this.origValue)return"";if(this.origValue instanceof eh)t=this.origValue;else if(H()(this.origValue)){var t,e=tI(this.origValue);t="text"===e.resourceType||null!=e.text?new em(e):"subtitles"===e.resourceType?new ew(e):"fetch"===e.resourceType||null!=e.url?new eA(e):new eh(e)}else t=$()(this.origValue)?/^fetch:.+/.test(this.origValue)?new eA(this.origValue.substr(6)):this.origValue:"";return t.toString()}}],[{key:"textStyle",value:function(t){return new em(t).textStyleIdentifier()}}]),n}(eF);function eM(t){return(eM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function eU(t,e){return(eU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function eH(t){return(eH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function eW(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n,r,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],u=!0,a=!1;try{for(o=o.call(t);!(u=(n=o.next()).done)&&(i.push(n.value),!e||i.length!==e);u=!0);}catch(t){a=!0,r=t}finally{try{u||null==o.return||o.return()}finally{if(a)throw r}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return e$(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e$(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e$(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function eq(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}function eY(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function eQ(t,e,n){return e&&eY(t.prototype,e),n&&eY(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function eK(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.forEach(function(e){Object.keys(e).forEach(function(n){null!=e[n]&&(t[n]=e[n])})}),t}var eG=function(){function t(e){var n,r;eq(this,t),n=void 0,r={},this.toOptions=function(t){var e={};if(null==t&&(t=!0),Object.keys(r).forEach(function(t){return e[t]=r[t].origValue}),eK(e,this.otherOptions),t&&!tH(this.chained)){var n=this.chained.map(function(t){return t.toOptions()});n.push(e),eK(e={},this.otherOptions),e.transformation=n}return e},this.setParent=function(t){return n=t,null!=t&&this.fromOptions("function"==typeof t.toOptions?t.toOptions():void 0),this},this.getParent=function(){return n},this.param=function(t,e,n,o,i){return null==i&&(i=X()(o)?o:z.a),r[e]=new eF(e,n,i).set(t),this},this.rawParam=function(t,e,n,o,i){return i=eZ(arguments),r[e]=new eV(e,n,i).set(t),this},this.rangeParam=function(t,e,n,o,i){return i=eZ(arguments),r[e]=new eL(e,n,i).set(t),this},this.arrayParam=function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:":";arguments.length>4&&void 0!==arguments[4]&&arguments[4];var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;return i=eZ(arguments),r[e]=new eI(e,n,o,i).set(t),this},this.transformationParam=function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".";arguments.length>4&&void 0!==arguments[4]&&arguments[4];var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;return i=eZ(arguments),r[e]=new ez(e,n,o,i).set(t),this},this.layerParam=function(t,e,n){return r[e]=new eN(e,n).set(t),this},this.getValue=function(t){var e=r[t]&&r[t].value();return null!=e?e:this.otherOptions[t]},this.get=function(t){return r[t]},this.remove=function(t){var e;switch(!1){case null==r[t]:return e=r[t],delete r[t],e.origValue;case null==this.otherOptions[t]:return e=this.otherOptions[t],delete this.otherOptions[t],e;default:return null}},this.keys=function(){var t;return(function(){var e;for(t in e=[],r)null!=t&&e.push(t.match(eX)?t:tT(t));return e})().sort()},this.toPlainObject=function(){var t,e,n;for(e in t={},r)t[e]=r[e].value(),H()(t[e])&&(t[e]=C()(t[e]));return tH(this.chained)||((n=this.chained.map(function(t){return t.toPlainObject()})).push(t),t={transformation:n}),t},this.chain=function(){var t;return 0!==Object.getOwnPropertyNames(r).length&&(t=new this.constructor(this.toOptions(!1)),this.resetTransformations(),this.chained.push(t)),this},this.resetTransformations=function(){return r={},this},this.otherOptions={},this.chained=[],this.fromOptions(e)}return eQ(t,[{key:"fromOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e instanceof t)this.fromTransformation(e);else for(var n in($()(e)||M()(e))&&(e={transformation:e}),(e=C()(e,function(e){if(e instanceof t||e instanceof Layer)return new e.clone})).if&&(this.set("if",e.if),delete e.if),e){var r=e[n];null!=r&&(n.match(eX)?"$attr"!==n&&this.set("variable",n,r):this.set(n,r))}return this}},{key:"fromTransformation",value:function(e){var n=this;return e instanceof t&&e.keys().forEach(function(t){return n.set(t,e.get(t).origValue)}),this}},{key:"set",value:function(t){var e;e=tR(t);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return V()(e0.methods,e)?this[e].apply(this,r):this.otherOptions[t]=r[0],this}},{key:"hasLayer",value:function(){return this.getValue("overlay")||this.getValue("underlay")}},{key:"serialize",value:function(){var t,e,n,r,o,i,u,a,c,s,l,f,p,h,y,d,v;for(e=0,s=this.chained.map(function(t){return t.serialize()}),r=this.keys(),h=null!=(o=this.get("transformation"))?o.serialize():void 0,t=null!=(i=this.get("if"))?i.serialize():void 0,d=function(t){var e,n,r,o,i;if(!M()(t))return t;for(e=0,o=[],n=t.length;e<n;e++){var u=eW(t[e],2);r=u[0],i=u[1],o.push("".concat(r,"_").concat(eo.normalize(i)))}return o}(null!=(u=this.get("variables"))?u.value():void 0),r=R()(r,["transformation","if","variables"]),v=[],f=[],n=r.length;e<n;e++)(l=r[e]).match(eX)?v.push(l+"_"+eo.normalize(null!=(a=this.get(l))?a.value():void 0)):f.push(null!=(c=this.get(l))?c.serialize():void 0);switch(!1){case!$()(h):f.push(h);break;case!M()(h):s=s.concat(h)}return f=function(){var t,e,n;for(t=0,n=[],e=f.length;t<e;t++)y=f[t],(M()(y)&&!tH(y)||!M()(y)&&y)&&n.push(y);return n}(),f=v.sort().concat(d).concat(f.sort()),"if_end"===t?f.push(t):tH(t)||f.unshift(t),tH(p=B()(f).join(this.param_separator))||s.push(p),B()(s).join(this.trans_separator)}},{key:"toHtmlAttributes",value:function(){var t,e,n,r,o,i,u,a=this;return e={},Object.keys(this.otherOptions).forEach(function(t){o=a.otherOptions[t],u=tT(t),V()(e0.PARAM_NAMES,u)||V()(tg,u)||(e[/^html_/.test(t)?t.slice(5):t]=o)}),this.keys().forEach(function(t){/^html_/.test(t)&&(e[tR(t.slice(5))]=a.getValue(t))}),!(this.hasLayer()||this.getValue("angle")||V()(["fit","limit","lfill"],this.getValue("crop")))&&(i=null!=(n=this.get("width"))?n.origValue:void 0,t=null!=(r=this.get("height"))?r.origValue:void 0,parseFloat(i)>=1&&null==e.width&&(e.width=i),parseFloat(t)>=1&&null==e.height&&(e.height=t)),e}},{key:"toHtml",value:function(){var t;return null!=(t=this.getParent())&&"function"==typeof t.toHtml?t.toHtml():void 0}},{key:"toString",value:function(){return this.serialize()}},{key:"clone",value:function(){return new this.constructor(this.toOptions(!0))}}],[{key:"listNames",value:function(){return e0.methods}},{key:"isValidParamName",value:function(t){return e0.methods.indexOf(tR(t))>=0}}]),t}(),eX=/^\$[a-zA-Z0-9]+$/;function eZ(t){var e;return(e=null!=t?t[t.length-1]:void 0,X()(e))?e:void 0}function eJ(t){var e=t.function_type,n=t.source;return"remote"===e?[e,btoa(n)].join(":"):"wasm"===e?[e,n].join(":"):void 0}eG.prototype.trans_separator="/",eG.prototype.param_separator=",";var e0=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&eU(t,e)}(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=eH(r);return t=e?Reflect.construct(n,arguments,eH(this).constructor):n.apply(this,arguments),function(t,e){if(e&&("object"===eM(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function r(t){return eq(this,r),n.call(this,t)}return eQ(r,[{key:"angle",value:function(t){return this.arrayParam(t,"angle","a",".",eo.normalize)}},{key:"audioCodec",value:function(t){return this.param(t,"audio_codec","ac")}},{key:"audioFrequency",value:function(t){return this.param(t,"audio_frequency","af")}},{key:"aspectRatio",value:function(t){return this.param(t,"aspect_ratio","ar",eo.normalize)}},{key:"background",value:function(t){return this.param(t,"background","b",eF.norm_color)}},{key:"bitRate",value:function(t){return this.param(t,"bit_rate","br")}},{key:"border",value:function(t){return this.param(t,"border","bo",function(t){return H()(t)?(t=S()({},{color:"black",width:2},t),"".concat(t.width,"px_solid_").concat(eF.norm_color(t.color))):t})}},{key:"color",value:function(t){return this.param(t,"color","co",eF.norm_color)}},{key:"colorSpace",value:function(t){return this.param(t,"color_space","cs")}},{key:"crop",value:function(t){return this.param(t,"crop","c")}},{key:"customFunction",value:function(t){return this.param(t,"custom_function","fn",function(){return eJ(t)})}},{key:"customPreFunction",value:function(t){if(!this.get("custom_function"))return this.rawParam(t,"custom_function","",function(){return(t=eJ(t))?"fn_pre:".concat(t):t})}},{key:"defaultImage",value:function(t){return this.param(t,"default_image","d")}},{key:"delay",value:function(t){return this.param(t,"delay","dl")}},{key:"density",value:function(t){return this.param(t,"density","dn")}},{key:"duration",value:function(t){return this.rangeParam(t,"duration","du")}},{key:"dpr",value:function(t){return this.param(t,"dpr","dpr",function(t){return(null!=(t=t.toString())?t.match(/^\d+$/):void 0)?t+".0":eo.normalize(t)})}},{key:"effect",value:function(t){return this.arrayParam(t,"effect","e",":",eo.normalize)}},{key:"else",value:function(){return this.if("else")}},{key:"endIf",value:function(){return this.if("end")}},{key:"endOffset",value:function(t){return this.rangeParam(t,"end_offset","eo")}},{key:"fallbackContent",value:function(t){return this.param(t,"fallback_content")}},{key:"fetchFormat",value:function(t){return this.param(t,"fetch_format","f")}},{key:"format",value:function(t){return this.param(t,"format")}},{key:"flags",value:function(t){return this.arrayParam(t,"flags","fl",".")}},{key:"gravity",value:function(t){return this.param(t,"gravity","g")}},{key:"fps",value:function(t){return this.param(t,"fps","fps",function(t){return $()(t)?t:M()(t)?t.join("-"):t})}},{key:"height",value:function(t){var e=this;return this.param(t,"height","h",function(){return e.getValue("crop")||e.getValue("overlay")||e.getValue("underlay")?eo.normalize(t):null})}},{key:"htmlHeight",value:function(t){return this.param(t,"html_height")}},{key:"htmlWidth",value:function(t){return this.param(t,"html_width")}},{key:"if",value:function(){var t,e,n,o,i,u,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(a){case"else":return this.chain(),this.param(a,"if","if");case"end":for(this.chain(),t=n=o=this.chained.length-1;n>=0&&"end"!==(e=this.chained[t].getValue("if"))&&(null==e||(i=r.new().if(e),this.chained[t].remove("if"),u=this.chained[t],this.chained[t]=r.new().transformation([i,u]),"else"===e));t=n+=-1);return this.param(a,"if","if");case"":return ec.new().setParent(this);default:return this.param(a,"if","if",function(t){return ec.new(t).toString()})}}},{key:"keyframeInterval",value:function(t){return this.param(t,"keyframe_interval","ki")}},{key:"ocr",value:function(t){return this.param(t,"ocr","ocr")}},{key:"offset",value:function(t){var e,n,r=eW(X()(null!=t?t.split:void 0)?t.split(".."):M()(t)?t:[null,null],2);if(n=r[0],e=r[1],null!=n&&this.startOffset(n),null!=e)return this.endOffset(e)}},{key:"opacity",value:function(t){return this.param(t,"opacity","o",eo.normalize)}},{key:"overlay",value:function(t){return this.layerParam(t,"overlay","l")}},{key:"page",value:function(t){return this.param(t,"page","pg")}},{key:"poster",value:function(t){return this.param(t,"poster")}},{key:"prefix",value:function(t){return this.param(t,"prefix","p")}},{key:"quality",value:function(t){return this.param(t,"quality","q",eo.normalize)}},{key:"radius",value:function(t){return this.arrayParam(t,"radius","r",":",eo.normalize)}},{key:"rawTransformation",value:function(t){return this.rawParam(t,"raw_transformation")}},{key:"size",value:function(t){var e,n;if(X()(null!=t?t.split:void 0)){var r=eW(t.split("x"),2);return n=r[0],e=r[1],this.width(n),this.height(e)}}},{key:"sourceTypes",value:function(t){return this.param(t,"source_types")}},{key:"sourceTransformation",value:function(t){return this.param(t,"source_transformation")}},{key:"startOffset",value:function(t){return this.rangeParam(t,"start_offset","so")}},{key:"streamingProfile",value:function(t){return this.param(t,"streaming_profile","sp")}},{key:"transformation",value:function(t){return this.transformationParam(t,"transformation","t")}},{key:"underlay",value:function(t){return this.layerParam(t,"underlay","u")}},{key:"variable",value:function(t,e){return this.param(e,t,t)}},{key:"variables",value:function(t){return this.arrayParam(t,"variables")}},{key:"videoCodec",value:function(t){return this.param(t,"video_codec","vc",eF.process_video_params)}},{key:"videoSampling",value:function(t){return this.param(t,"video_sampling","vs")}},{key:"width",value:function(t){var e=this;return this.param(t,"width","w",function(){return e.getValue("crop")||e.getValue("overlay")||e.getValue("underlay")?eo.normalize(t):null})}},{key:"x",value:function(t){return this.param(t,"x","x",eo.normalize)}},{key:"y",value:function(t){return this.param(t,"y","y",eo.normalize)}},{key:"zoom",value:function(t){return this.param(t,"zoom","z",eo.normalize)}}],[{key:"new",value:function(t){return new r(t)}}]),r}(eG);e0.methods=["angle","audioCodec","audioFrequency","aspectRatio","background","bitRate","border","color","colorSpace","crop","customFunction","customPreFunction","defaultImage","delay","density","duration","dpr","effect","else","endIf","endOffset","fallbackContent","fetchFormat","format","flags","gravity","fps","height","htmlHeight","htmlWidth","if","keyframeInterval","ocr","offset","opacity","overlay","page","poster","prefix","quality","radius","rawTransformation","size","sourceTypes","sourceTransformation","startOffset","streamingProfile","transformation","underlay","variable","variables","videoCodec","videoSampling","width","x","y","zoom"],e0.PARAM_NAMES=e0.methods.map(tT).concat(ep.CONFIG_PARAMS);var e1=e0;function e6(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var e2=function(){var t,e;function n(t,e,r){var o;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,n),this.name=t,this.publicId=e,null==r&&(H()(e)?(r=e,this.publicId=void 0):r={}),(o=new e1(r)).setParent(this),this.transformation=function(){return o}}return t=[{key:"htmlAttrs",value:function(t){var e,n;return(function(){var r,o;for(e in r=[],t)o=t[e],(n=$()(o)?o.replace('"',""").replace("'","'"):o)&&r.push(n?!0===n?e:"".concat(e,'="').concat(n,'"'):void 0);return r})().sort().join(" ")}},{key:"getOptions",value:function(){return this.transformation().toOptions()}},{key:"getOption",value:function(t){return this.transformation().getValue(t)}},{key:"attributes",value:function(){var t=this.transformation().toHtmlAttributes();return Object.keys(t).forEach(function(e){H()(t[e])&&delete t[e]}),t.attributes&&(Y()(t,t.attributes),delete t.attributes),t}},{key:"setAttr",value:function(t,e){return this.transformation().set("html_".concat(t),e),this}},{key:"getAttr",value:function(t){return this.attributes()["html_".concat(t)]||this.attributes()[t]}},{key:"removeAttr",value:function(t){var e;return null!=(e=this.transformation().remove("html_".concat(t)))?e:this.transformation().remove(t)}},{key:"content",value:function(){return""}},{key:"openTag",value:function(){var t="<"+this.name,e=this.htmlAttrs(this.attributes());return e&&e.length>0&&(t+=" "+e),t+">"}},{key:"closeTag",value:function(){return"</".concat(this.name,">")}},{key:"toHtml",value:function(){return this.openTag()+this.content()+this.closeTag()}},{key:"toDOM",value:function(){var t,e,n,r;if(!X()("undefined"!=typeof document&&null!==document?document.createElement:void 0))throw"Can't create DOM if document is not present!";for(e in t=document.createElement(this.name),n=this.attributes())r=n[e],t.setAttribute(e,r);return t}}],e=[{key:"new",value:function(t,e,n){return new this(t,e,n)}},{key:"isResponsive",value:function(t,e){var n;return n=tK(t,"src-cache")||tK(t,"src"),t1(t,e)&&/\bw_auto\b/.exec(n)}}],t&&e6(n.prototype,t),e&&e6(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}(),e3=["placeholder","accessibility"];function e4(t){return!!t&&!!t.match(/^https?:\//)}function e8(t){return encodeURIComponent(t).replace(/%3A/g,":").replace(/%2F/g,"/")}function e9(t){var e,n,r,o,i,u,a,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return t;(e=c)instanceof e1&&(e=e.toOptions()),"fetch"===(e=tD({},e,s,th)).type&&(e.fetch_format=e.fetch_format||e.format),c=e,n=t,r=c.type,t=e4(n)||"fetch"!==r?n:(o=document.location.protocol+"//"+document.location.host,"?"===n[0]?o+=document.location.pathname:"/"!==n[0]&&(o+=document.location.pathname.replace(/\/[^\/]*$/,"/")),o+n);var l=(u=(i=c).cloud_name,a=i.url_suffix,u?a&&a.match(/[\.\/]/)?"url_suffix should not include . or /":void 0:"Unknown cloud_name");if(l)throw l;var f=function(t,e){if(e4(t)&&("upload"===e.type||"asset"===e.type))return t;var n,r,o,i,u,a,c,s,l,f=(n=t,r=e.force_version||void 0===e.force_version,o=0>n.indexOf("/")||n.match(/^v[0-9]+/)||e4(n)||e.version,r&&!o&&(e.version=1),e.version?"v".concat(e.version):""),p=(u=(i=e||{}).placeholder,a=i.accessibility,c=new e1(function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(i,e3)),a&&tb[a]&&c.chain().effect(tb[a]),u&&("predominant-color"===u&&c.getValue("width")&&c.getValue("height")&&(u+="-pixel"),(tm[u]||tm.blur).forEach(function(t){return c.chain().transformation(t)})),c.serialize()),h=function(t,e){if(e.cloud_name&&"/"===e.cloud_name[0])return"/res"+e.cloud_name;var n="http://",r="",o="res",i=".cloudinary.com",u="/"+e.cloud_name;return e.protocol&&(n=e.protocol+"//"),e.private_cdn&&(r=e.cloud_name+"-",u=""),e.cdn_subdomain&&(o="res-"+(b(t)%5+1)),e.secure?(n="https://",!1===e.secure_cdn_subdomain&&(o="res"),null!=e.secure_distribution&&e.secure_distribution!==tu&&e.secure_distribution!==tc&&(r="",o="",i=e.secure_distribution)):e.cname&&(n="http://",r="",o=e.cdn_subdomain?"a"+(b(t)%5+1)+".":"",i=e.cname),[n,r,o,i,u].join("")}(t,e),y=(l=!(s=e.signature)||0===s.indexOf("s--")&&"--"===s.substr(-2),delete e.signature,l?s:"s--".concat(s,"--")),d=function(t){var e,n=t.resource_type,r=t.type,o=void 0===r?"upload":r,i=t.url_suffix,u=t.use_root_path,a=t.shorten,c=void 0===n?"image":n;if(H()(c)&&(c=(e=c).resource_type,o=e.type,a=e.shorten),null==o&&(o="upload"),null!=i&&(c=tp["".concat(c,"/").concat(o)],o=null,null==c))throw Error("URL Suffix only supported for ".concat(Object.keys(tp).join(", ")));if(u){if("image"===c&&"upload"===o||"images"===c)c=null,o=null;else throw Error("Root path only supported for image/upload")}return a&&"image"===c&&"upload"===o&&(c="iu",o=null),[c,o].join("/")}(e);return t=function(t,e){if(e4(t))t=e8(t);else{try{t=decodeURIComponent(t)}catch(t){}t=e8(t),e.url_suffix&&(t=t+"/"+e.url_suffix),e.format&&(e.trust_public_id||(t=t.replace(/\.(jpg|png|gif|webp)$/,"")),t=t+"."+e.format)}return t}(t,e),B()([h,d,y,p,f,t]).join("/").replace(/([^:])\/+/g,"$1/").replace(" ","%20")}(t,c);if(c.urlAnalytics){var p=E(A(c)),h="?";f.indexOf("?")>=0&&(h="&"),f="".concat(f).concat(h,"_a=").concat(p)}if(c.auth_token){var y=f.indexOf("?")>=0?"&":"?";f="".concat(f).concat(y,"__cld_token__=").concat(c.auth_token)}return f}function e5(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var e7=tH;function nt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={};if(e7(n))return o;var i=!e.sizes&&!0===n.sizes,u=!e.srcset;if(u||i){var a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return arguments.length>2&&void 0!==arguments[2]&&arguments[2],function(t){var e,n=t.breakpoints||[];if(n.length)return n;var r=function(t){if(Array.isArray(t))return t}(e=[t.min_width,t.max_width,t.max_images].map(Number))||function(t,e){var n,r,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],u=!0,a=!1;try{for(o=o.call(t);!(u=(n=o.next()).done)&&(i.push(n.value),3!==i.length);u=!0);}catch(t){a=!0,r=t}finally{try{u||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,3)||function(t,e){if(t){if("string"==typeof t)return e5(t,3);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e5(t,3)}}(e,3)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=r[0],i=r[1],u=r[2];if([o,i,u].some(isNaN))throw"Either (min_width, max_width, max_images) or breakpoints must be provided to the image srcset attribute";if(o>i)throw"min_width must be less than max_width";if(u<=0)throw"max_images must be a positive integer";1===u&&(o=i);for(var a=Math.ceil((i-o)/Math.max(u-1,1)),c=o;c<i;c+=a)n.push(c);return n.push(i),n}(e)}(t,n,r);if(u){var c,s=n.transformation,l=(c=r,tM(c=C.a(c)),a.map(function(e){return"".concat(function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=tN(r);return n=n||r,o.raw_transformation=new e1([Y.a({},n),{crop:"scale",width:e}]).toString(),e9(t,o)}(t,e,s,c)," ").concat(e,"w")}).join(", "));e7(l)||(o.srcset=l)}if(i){var f=null==a?"":a.map(function(t){return"(max-width: ".concat(t,"px) ").concat(t,"px")}).join(", ");e7(f)||(o.sizes=f)}}return o}function ne(t){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nn(){return(nn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=no(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function nr(t,e){return(nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function no(t){return(no=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ni=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nr(t,e)}(o,t);var e,n,r=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=no(o);return t=e?Reflect.construct(n,arguments,no(this).constructor):n.apply(this,arguments),function(t,e){if(e&&("object"===ne(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,o),r.call(this,"img",t,e)}return n=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){t=nn(no(o.prototype),"attributes",this).call(this)||{},e=this.getOptions();var t,e,n,r=this.getOption("attributes")||{},i=this.getOption("srcset")||r.srcset,u={};return $()(i)?u.srcset=i:u=nt(this.publicId,r,i,e),tH(u)||(delete t.width,delete t.height),Y()(t,u),null==t[n=e.responsive&&!e.client_hints?"data-src":"src"]&&(t[n]=e9(this.publicId,this.getOptions())),t}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(o.prototype,n),Object.defineProperty(o,"prototype",{writable:!1}),o}(e2);function nu(t){return(nu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function na(){return(na="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ns(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function nc(t,e){return(nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ns(t){return(ns=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var nl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nc(t,e)}(o,t);var e,n,r=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=ns(o);return t=e?Reflect.construct(n,arguments,ns(this).constructor):n.apply(this,arguments),function(t,e){if(e&&("object"===nu(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,o),r.call(this,"source",t,e)}return n=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var t,e,n=this.getOption("srcset"),r=na(ns(o.prototype),"attributes",this).call(this)||{},i=this.getOptions();return Y()(r,nt(this.publicId,r,n,i)),r.srcset||(r.srcset=e9(this.publicId,i)),!r.media&&i.media&&(r.media=(t=i.media,e=[],null!=t&&(null!=t.min_width&&e.push("(min-width: ".concat(t.min_width,"px)")),null!=t.max_width&&e.push("(max-width: ".concat(t.max_width,"px)"))),e.join(" and "))),r}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(o.prototype,n),Object.defineProperty(o,"prototype",{writable:!1}),o}(e2);function nf(t){return(nf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function np(){return(np="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ny(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function nh(t,e){return(nh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ny(t){return(ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var nd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nh(t,e)}(o,t);var e,n,r=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=ny(o);return t=e?Reflect.construct(n,arguments,ny(this).constructor):n.apply(this,arguments),function(t,e){if(e&&("object"===nf(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function o(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,o),(e=r.call(this,"picture",t,n)).widthList=i,e}return n=[{key:"content",value:function(){var t=this;return this.widthList.map(function(e){var n=e.min_width,r=e.max_width,o=e.transformation,i=t.getOptions(),u=new e1(i);return u.chain().fromOptions("string"==typeof o?{raw_transformation:o}:o),(i=tN(i)).media={min_width:n,max_width:r},i.transformation=u,new nl(t.publicId,i).toHtml()}).join("")+new ni(this.publicId,this.getOptions()).toHtml()}},{key:"attributes",value:function(){var t=np(ny(o.prototype),"attributes",this).call(this);return delete t.width,delete t.height,t}},{key:"closeTag",value:function(){return"</"+this.name+">"}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(o.prototype,n),Object.defineProperty(o,"prototype",{writable:!1}),o}(e2);function nv(t){return(nv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nm(){return(nm="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ng(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function nb(t,e){return(nb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ng(t){return(ng=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var n_=["source_types","source_transformation","fallback_content","poster","sources"],nw=["webm","mp4","ogv"],nO={format:"jpg",resource_type:"video"},nk=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nb(t,e)}(o,t);var e,n,r=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=ng(o);return t=e?Reflect.construct(n,arguments,ng(this).constructor):n.apply(this,arguments),function(t,e){if(e&&("object"===nv(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,o),e=tD({},e,ty),r.call(this,"video",t.replace(/\.(mp4|ogv|webm)$/,""),e)}return n=[{key:"setSourceTransformation",value:function(t){return this.transformation().sourceTransformation(t),this}},{key:"setSourceTypes",value:function(t){return this.transformation().sourceTypes(t),this}},{key:"setPoster",value:function(t){return this.transformation().poster(t),this}},{key:"setFallbackContent",value:function(t){return this.transformation().fallbackContent(t),this}},{key:"content",value:function(){var t=this,e=this.transformation().getValue("source_types"),n=this.transformation().getValue("source_transformation"),r=this.transformation().getValue("fallback_content"),o=this.getOption("sources"),i=[];return M()(o)&&!tH(o)?i=o.map(function(e){var n=e9(t.publicId,tD({},e.transformations||{},{resource_type:"video",format:e.type}),t.getOptions());return t.createSourceTag(n,e.type,e.codecs)}):(tH(e)&&(e=nw),M()(e)&&(i=e.map(function(e){var r=e9(t.publicId,tD({},n[e]||{},{resource_type:"video",format:e}),t.getOptions());return t.createSourceTag(r,e)}))),i.join("")+r}},{key:"attributes",value:function(){var t=this.getOption("source_types"),e=this.getOption("poster");if(void 0===e&&(e={}),H()(e)){var n=null!=e.public_id?th:nO;e=e9(e.public_id||this.publicId,tD({},e,n,this.getOptions()))}var r=nm(ng(o.prototype),"attributes",this).call(this)||{};return r=tw(r,n_),!tH(this.getOption("sources"))||tH(t)||M()(t)||(r.src=e9(this.publicId,this.getOptions(),{resource_type:"video",format:t})),null!=e&&(r.poster=e),r}},{key:"createSourceTag",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=null;return tH(e)||(r="video/"+("ogv"===e?"ogg":e),tH(n)||(r+="; codecs="+(M()(n)?n.join(", "):n))),"<source "+this.htmlAttrs({src:t,type:r})+">"}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(o.prototype,n),Object.defineProperty(o,"prototype",{writable:!1}),o}(e2);function nE(t){return(nE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nA(t,e){return(nA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function nD(t){return(nD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var nS=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nA(t,e)}(o,t);var e,n,r=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=nD(o);return t=e?Reflect.construct(n,arguments,nD(this).constructor):n.apply(this,arguments),function(t,e){if(e&&("object"===nE(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function o(t){return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,o),r.call(this,"meta",void 0,S()({"http-equiv":"Accept-CH",content:"DPR, Viewport-Width, Width"},t))}return n=[{key:"closeTag",value:function(){return""}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(o.prototype,n),Object.defineProperty(o,"prototype",{writable:!1}),o}(e2);function nj(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var nC=function(t,e){t.transformation?t.transformation.push({flags:[e]}):(t.flags||(t.flags=[]),"string"==typeof t.flags&&(t.flags=[t.flags]),t.flags.push(e))},nP=function(t){t.autoplay=!0,t.muted=!0,t.controls=!1,t.max_timeout_ms=t.max_timeout_ms||ts,t.class=t.class||"",t.class+=" cld-transparent-video",t.externalLibraries=t.externalLibraries||{},t.externalLibraries.seeThru||(t.externalLibraries.seeThru=tv.seeThru),nC(t,"alpha")},nB=function(t){var e=t.autoplay,n=t.playsinline,r=t.loop,o=t.muted,i=t.poster,u=t.blobURL,a=t.videoURL,c=document.createElement("video");return c.style.visibility="hidden",c.position="absolute",c.x=0,c.y=0,c.src=u,c.setAttribute("data-video-url",a),e&&c.setAttribute("autoplay",e),n&&c.setAttribute("playsinline",n),r&&c.setAttribute("loop",r),o&&c.setAttribute("muted",o),o&&(c.muted=o),i&&c.setAttribute("poster",i),c.onload=function(){URL.revokeObjectURL(u)},c},nx=function(t,e,n,r){var o=window,i=o.seeThru,u=o.setTimeout,a=o.clearTimeout;return new Promise(function(o,c){var s=u(function(){c({status:"error",message:"Timeout instantiating seeThru instance"})},e);if(i)var l=i.create(t).ready(function(){a(s);var t=l.getCanvas();t.style.width="100%",t.className+=" "+n,r&&l.play(),o(l)});else c({status:"error",message:"Error instantiating seeThru instance"})})},nR=function(t,e,n){var r=n.poster,o=n.autoplay,i=n.playsinline,u=n.loop,a=n.muted;return e+=".mp4",new Promise(function(c,s){var l,f,p;(l=n.externalLibraries.seeThru,f=n.max_timeout_ms,p=window.seeThru,new Promise(function(t,e){if(p)t();else{var n=document.createElement("script");n.src=l;var r=setTimeout(function(){e({status:"error",message:"Timeout loading script ".concat(l)})},f);n.onerror=function(){clearTimeout(r),e({status:"error",message:"Error loading ".concat(l)})},n.onload=function(){clearTimeout(r),t()},document.head.appendChild(n)}})).then(function(){var l,f;(l=e,f=n.max_timeout_ms,new Promise(function(t,e){var n=setTimeout(function(){e({status:"error",message:"Timeout loading Blob URL"})},f);("undefined"!=typeof fetch&&fetch?function(t){return new Promise(function(e,n){fetch(t).then(function(t){t.blob().then(function(t){e(t)})}).catch(function(){n("error")})})}:function(t){return new Promise(function(e,n){var r=new XMLHttpRequest;r.responseType="blob",r.onload=function(t){e(r.response)},r.onerror=function(){n("error")},r.open("GET",t,!0),r.send()})})(l).then(function(e){t({status:"success",payload:{blobURL:URL.createObjectURL(e)}})}).catch(function(){e({status:"error",message:"Error loading Blob URL"})}).finally(function(){clearTimeout(n)})})).then(function(l){var f=nB({blobURL:l.payload.blobURL,videoURL:e,poster:r,autoplay:o,playsinline:i,loop:u,muted:a});t.appendChild(f),nx(f,n.max_timeout_ms,n.class,n.autoplay).then(function(){c(t)}).catch(function(t){s(t)})}).catch(function(t){s({status:t.status,message:t.message})})}).catch(function(t){s({status:t.status,message:t.message})})})};function nT(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return e*Math.ceil(t/e)},l=function(t,e){var n;for(n=t.length-2;n>=0&&t[n]>=e;)n--;return t[n+1]},s=function(t,e,n,r){var o,i,u,a;return(a=null!=(o=null!=(i=null!=(u=r.responsive_use_breakpoints)?u:r.responsive_use_stoppoints)?i:this.config("responsive_use_breakpoints"))?o:this.config("responsive_use_stoppoints"))&&("resize"!==a||r.resizing)?this.calc_breakpoint(t,e,n):e},p=function(t){var e,n;for(e=0;(t=null!=t?t.parentNode:void 0)instanceof Element&&!e;)n=window.getComputedStyle(t),/^inline/.test(n.display)||(e=ee(t));return e},y=function(t,e){return t.replace(/\bdpr_(1\.0|auto)\b/g,"dpr_"+this.device_pixel_ratio(e))},h=function(t,e){var n;return t>(n=tK(e,"width")||0)&&(n=t,tG(e,"width",t)),n};var nF=function(){var t,e;function n(t){var e;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,n),this.devicePixelRatioCache={},this.responsiveConfig={},this.responsiveResizeInitialized=!1,e=new ep(t),this.config=function(t,n){return e.config(t,n)},this.fromDocument=function(){return e.fromDocument(),this},this.fromEnvironment=function(){return e.fromEnvironment(),this},this.init=function(){return e.init(),this}}return t=[{key:"url",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e9(t,e,this.config())}},{key:"video_url",value:function(t,e){return e=S()({resource_type:"video"},e),this.url(t,e)}},{key:"video_thumbnail_url",value:function(t,e){return e=S()({},tl,e),this.url(t,e)}},{key:"transformation_string",value:function(t){return new e1(t).serialize()}},{key:"image",value:function(t){var e,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=this.imageTag(t,o),e=null!=(r=null!=o.client_hints?o.client_hints:this.config("client_hints"))&&r,null!=o.src||e||n.setAttr("src",""),n=n.toDOM(),e||(tG(n,"src-cache",this.url(t,o)),this.cloudinary_update(n,o)),n}},{key:"imageTag",value:function(t,e){var n;return(n=new ni(t,this.config())).transformation().fromOptions(e),n}},{key:"pictureTag",value:function(t,e,n){var r;return(r=new nd(t,this.config(),n)).transformation().fromOptions(e),r}},{key:"sourceTag",value:function(t,e){var n;return(n=new nl(t,this.config())).transformation().fromOptions(e),n}},{key:"video_thumbnail",value:function(t,e){return this.image(t,Y()({},tl,e))}},{key:"facebook_profile_image",value:function(t,e){return this.image(t,S()({type:"facebook"},e))}},{key:"twitter_profile_image",value:function(t,e){return this.image(t,S()({type:"twitter"},e))}},{key:"twitter_name_profile_image",value:function(t,e){return this.image(t,S()({type:"twitter_name"},e))}},{key:"gravatar_image",value:function(t,e){return this.image(t,S()({type:"gravatar"},e))}},{key:"fetch_image",value:function(t,e){return this.image(t,S()({type:"fetch"},e))}},{key:"video",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videoTag(t,e).toHtml()}},{key:"videoTag",value:function(t,e){return new nk(t,e=tD({},e,this.config()))}},{key:"sprite_css",value:function(t,e){return e=S()({type:"sprite"},e),t.match(/.css$/)||(e.format="css"),this.url(t,e)}},{key:"responsive",value:function(t){var e,n,r,o,i,u=this,a=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(this.responsiveConfig=Y()(this.responsiveConfig||{},t),o=null!=(e=this.responsiveConfig.responsive_class)?e:this.config("responsive_class"),a&&this.cloudinary_update("img.".concat(o,", img.cld-hidpi"),this.responsiveConfig),(null==(n=null!=(r=this.responsiveConfig.responsive_resize)?r:this.config("responsive_resize"))||n)&&!this.responsiveResizeInitialized){this.responsiveConfig.resizing=this.responsiveResizeInitialized=!0,i=null;var c=function(){var t,e,n,r,a,c,s;return(t=null!=(e=null!=(n=u.responsiveConfig.responsive_debounce)?n:u.config("responsive_debounce"))?e:100,r=function(){i&&(clearTimeout(i),i=null)},a=function(){return u.cloudinary_update("img.".concat(o),u.responsiveConfig)},s=function(){return r(),a()},c=function(){r(),i=setTimeout(s,t)},t)?c():a()};return window.addEventListener("resize",c),function(){return window.removeEventListener("resize",c)}}}},{key:"calc_breakpoint",value:function(t,e,n){var r=tK(t,"breakpoints")||tK(t,"stoppoints")||this.config("breakpoints")||this.config("stoppoints")||f;return X()(r)?r(e,n):($()(r)&&(r=r.split(",").map(function(t){return parseInt(t)}).sort(function(t,e){return t-e})),l(r,e))}},{key:"calc_stoppoint",value:function(t,e,n){return this.calc_breakpoint(t,e,n)}},{key:"device_pixel_ratio",value:function(t){t=null==t||t;var e=("undefined"!=typeof window&&null!==window?window.devicePixelRatio:void 0)||1;t&&(e=Math.ceil(e)),(e<=0||e===0/0)&&(e=1);var n=e.toString();return n.match(/^\d+$/)&&(n+=".0"),n}},{key:"processImageTags",value:function(t,e){if(tH(t))return this;e=tD({},e||{},this.config());var n=t.filter(function(t){return/^img$/i.test(t.tagName)}).map(function(t){var n=S()({width:t.getAttribute("width"),height:t.getAttribute("height"),src:t.getAttribute("src")},e),r=n.source||n.src;delete n.source,delete n.src;var o=new e1(n).toHtmlAttributes();return tG(t,"src-cache",e9(r,n)),t.setAttribute("width",o.width),t.setAttribute("height",o.height),t});return this.cloudinary_update(n,e),this}},{key:"cloudinary_update",value:function(t,e){var n,r,o,i,u,a,c=this;if(null===t)return this;null==e&&(e={});var l=null!=e.responsive?e.responsive:this.config("responsive");n=t,t=M()(n)?n:"NodeList"===n.constructor.name?function(t){if(Array.isArray(t))return nj(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return nj(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nj(t,void 0)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():$()(n)?Array.prototype.slice.call(document.querySelectorAll(n),0):[n],a=this.responsiveConfig&&null!=this.responsiveConfig.responsive_class?this.responsiveConfig.responsive_class:null!=e.responsive_class?e.responsive_class:this.config("responsive_class");var f=null!=e.round_dpr?e.round_dpr:this.config("round_dpr");return t.forEach(function(n){if(/img/i.test(n.tagName)){var d=!0;if(l&&t6(n,a),!tH(o=tK(n,"src-cache")||tK(n,"src"))){o=y.call(c,o,f),e2.isResponsive(n,a)&&(0!==(r=p(n))?(/w_auto:breakpoints/.test(o)?(u=h(r,n))?o=o.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/,"w_auto:breakpoints$1:".concat(u)):d=!1:(i=/w_auto(:(\d+))?/.exec(o))&&((u=h(u=s.call(c,n,r,i[2],e),n))?o=o.replace(/w_auto[^,\/]*/g,"w_".concat(u)):d=!1),tJ(n,"width"),e.responsive_preserve_height||tJ(n,"height")):d=!1);var v="lazy"===e.loading&&!c.isNativeLazyLoadSupported()&&c.isLazyLoadSupported()&&!t[0].getAttribute("src");(d||v)&&c.setAttributeIfExists(t[0],"width","data-width"),d&&!v&&tZ(n,"src",o)}}}),this}},{key:"setAttributeIfExists",value:function(t,e,n){var r=t.getAttribute(n);null!=r&&tZ(t,e,r)}},{key:"isLazyLoadSupported",value:function(){return window&&"IntersectionObserver"in window}},{key:"isNativeLazyLoadSupported",value:function(){return"loading"in HTMLImageElement.prototype}},{key:"transformation",value:function(t){return e1.new(this.config()).fromOptions(t).setParent(this)}},{key:"injectTransparentVideoElement",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(function(o,i){t||i({status:"error",message:"Expecting htmlElContainer to be HTMLElement"}),nP(r);var u=n.video_url(e,r);new Promise(function(t,e){tQ()&&t(!1);var n=document.createElement("video"),r=n.canPlayType&&n.canPlayType('video/webm; codecs="vp9"');t("maybe"===r||"probably"===r)}).then(function(a){var c;a?(c=new Promise(function(o,i){t.innerHTML=n.videoTag(e,r).toHtml(),t.querySelector(".cld-transparent-video").style.width="100%",o(t)}),o(t)):c=nR(t,u,r),c.then(function(){o(t)}).catch(function(t){i({status:t.status,message:t.message})})}).catch(function(t){i({status:t.status,message:t.message})})})}}],e=[{key:"new",value:function(t){return new this(t)}}],t&&nT(n.prototype,t),e&&nT(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();S()(nF,d);var nI=nF;e.default={ClientHintsMetaTag:nS,Cloudinary:nI,Condition:ec,Configuration:ep,crc32:b,Expression:eo,FetchLayer:eA,HtmlTag:e2,ImageTag:ni,Layer:eh,PictureTag:nd,SubtitlesLayer:ew,TextLayer:em,Transformation:e1,utf8_encode:m,Util:v,VideoTag:nk}},"lodash/assign":function(e,n){e.exports=t},"lodash/cloneDeep":function(t,n){t.exports=e},"lodash/compact":function(t,e){t.exports=n},"lodash/difference":function(t,e){t.exports=r},"lodash/functions":function(t,e){t.exports=u},"lodash/identity":function(t,e){t.exports=a},"lodash/includes":function(t,e){t.exports=c},"lodash/isArray":function(t,e){t.exports=s},"lodash/isElement":function(t,e){t.exports=l},"lodash/isFunction":function(t,e){t.exports=f},"lodash/isPlainObject":function(t,e){t.exports=p},"lodash/isString":function(t,e){t.exports=h},"lodash/merge":function(t,e){t.exports=y},"lodash/trim":function(t,e){t.exports=d}})},t.exports=r(n(60019),n(9850),n(60417),n(17335),n(1910),n(23059),n(11886),n(86152),n(92301),n(61049),n(97030),n(85505),n(98537),n(5648))}}]);
|