(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4806,9944],{3839:(t,e,r)=>{"use strict";r.d(e,{o:()=>h});var i=r(37876),s=r(14232),n=r(45855);let a=(0,s.createContext)(null);var o=r(66724),u=r(18792);let l=t=>!t.isLayoutDirty&&t.willUpdate(!1),c=t=>!0===t,d=t=>c(!0===t)||"id"===t,h=({children:t,id:e,inherit:r=!0})=>{let h=(0,s.useContext)(n.L),f=(0,s.useContext)(a),[p,g]=function(){let t=function(){let t=(0,s.useRef)(!1);return(0,o.E)(()=>(t.current=!0,()=>{t.current=!1}),[]),t}(),[e,r]=(0,s.useState)(0),i=(0,s.useCallback)(()=>{t.current&&r(e+1)},[e]);return[(0,s.useCallback)(()=>u.Gt.postRender(i),[i]),e]}(),m=(0,s.useRef)(null),y=h.id||f;null===m.current&&(d(r)&&y&&(e=e?y+"-"+e:y),m.current={id:e,group:c(r)&&h.group||function(){let t=new Set,e=new WeakMap,r=()=>t.forEach(l);return{add:i=>{t.add(i),e.set(i,i.addEventListener("willUpdate",r))},remove:i=>{t.delete(i);let s=e.get(i);s&&(s(),e.delete(i)),r()},dirty:r}}()});let v=(0,s.useMemo)(()=>({...m.current,forceRender:p}),[g]);return(0,i.jsx)(n.L.Provider,{value:v,children:t})}},4103:function(t){var e;e=function(){var t=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xa2":"cent","\xa3":"pound","\xa4":"currency","\xa5":"yen","\xa9":"(c)","\xaa":"a","\xae":"(r)","\xba":"o","\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xc6":"AE","\xc7":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xde":"TH","\xdf":"ss","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xe6":"ae","\xe7":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xfe":"th","\xff":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","ǈ":"LJ","ǉ":"lj","ǋ":"NJ","ǌ":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E\'","Ը":"Y\'","Թ":"T\'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C\'","Կ":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}'),e=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"\xc4":"AE","\xe4":"ae","\xd6":"OE","\xf6":"oe","\xdc":"UE","\xfc":"ue","\xdf":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xa2":"centavos","\xa3":"libras","\xa4":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xa2":"centime","\xa3":"livre","\xa4":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xa2":"centavo","∑":"soma","\xa3":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"\xd8":"OE","\xf8":"oe","\xc5":"AA","\xe5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xf8rre end"},"nb":{"&":"og","\xc5":"AA","\xc6":"AE","\xd8":"OE","\xe5":"aa","\xe6":"ae","\xf8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xc5":"AA","\xc4":"AE","\xd6":"OE","\xe5":"aa","\xe4":"ae","\xf6":"oe"}}');function r(r,i){if("string"!=typeof r)throw Error("slugify: string argument expected");var s=e[(i="string"==typeof i?{replacement:i}:i||{}).locale]||{},n=void 0===i.replacement?"-":i.replacement,a=void 0===i.trim||i.trim,o=r.normalize().split("").reduce(function(e,r){var a=s[r];return void 0===a&&(a=t[r]),void 0===a&&(a=r),a===n&&(a=" "),e+a.replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return i.strict&&(o=o.replace(/[^A-Za-z0-9\s]/g,"")),a&&(o=o.trim()),o=o.replace(/\s+/g,n),i.lower&&(o=o.toLowerCase()),o}return r.extend=function(e){Object.assign(t,e)},r},t.exports=e(),t.exports.default=e()},14906:(t,e,r)=>{var i=r(27314).k5;t.exports.H=function(t){return i({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Circle_Question"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M11.411,12.459a1.547,1.547,0,0,1,.341-.6,2.644,2.644,0,0,1,.535-.417,2.2,2.2,0,0,0,.363-.286,1.2,1.2,0,0,0,.256-.363A1.084,1.084,0,0,0,13,10.341a.923.923,0,0,0-.142-.517.938.938,0,0,0-.374-.338,1.123,1.123,0,0,0-.519-.119,1.173,1.173,0,0,0-.495.107.934.934,0,0,0-.389.335.884.884,0,0,0-.111.224.516.516,0,0,1-.483.359h0a.506.506,0,0,1-.479-.675,1.661,1.661,0,0,1,.178-.349,1.8,1.8,0,0,1,.748-.634,2.437,2.437,0,0,1,1.031-.215,2.4,2.4,0,0,1,1.082.231,1.737,1.737,0,0,1,.721.641,1.772,1.772,0,0,1,.257.96,1.841,1.841,0,0,1-.118.678,1.685,1.685,0,0,1-.334.536,2.289,2.289,0,0,1-.52.417,2.277,2.277,0,0,0-.462.369,1.113,1.113,0,0,0-.256.455,2.344,2.344,0,0,0-.045.283.487.487,0,0,1-.483.429h0a.484.484,0,0,1-.483-.531A2.931,2.931,0,0,1,11.411,12.459Z"},child:[]},{tag:"circle",attr:{cx:"11.793",cy:"14.891",r:"0.587"},child:[]}]},{tag:"path",attr:{d:"M12,21.931A9.934,9.934,0,1,1,21.934,12,9.945,9.945,0,0,1,12,21.931ZM12,3.064A8.934,8.934,0,1,0,20.934,12,8.943,8.943,0,0,0,12,3.064Z"},child:[]}]}]}]})(t)}},54733:(t,e,r)=>{"use strict";r.d(e,{x:()=>u});var i=r(37876),s=r(14232),n=r(21374),a=r(70444),o=r(16027);function u({children:t,isValidProp:e,...r}){e&&(0,a.D)(e),(r={...(0,s.useContext)(n.Q),...r}).isStatic=(0,o.M)(()=>r.isStatic);let u=(0,s.useMemo)(()=>r,[JSON.stringify(r.transition),r.transformPagePoint,r.reducedMotion]);return(0,i.jsx)(n.Q.Provider,{value:u,children:t})}},64806:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(14232);function s(t,e){if(!t)throw Error("Invariant failed")}var n=new Map([["Win","Meta"],["Scroll","ScrollLock"],["Spacebar"," "],["Down","ArrowDown"],["Left","ArrowLeft"],["Right","ArrowRight"],["Up","ArrowUp"],["Del","Delete"],["Crsel","CrSel"],["Exsel","ExSel"],["Apps","ContextMenu"],["Esc","Escape"],["Decimal","."],["Multiply","*"],["Add","+"],["Subtract","-"],["Divide","/"]]),a=function(t){if(n.has(t.key)){var e=n.get(t.key);Object.defineProperty(t,"key",{configurable:!0,enumerable:!0,get:function(){return e}})}},o=function(t,e){Array.isArray(t)||"string"==typeof t||s(!1),Array.isArray(t)&&t.forEach(function(t,e){"string"!=typeof t&&s(!1)}),"function"!=typeof e&&null!=e&&s(!1);var r=(0,i.useRef)();(0,i.useEffect)(function(){r.current=function(r){a(r),(Array.isArray(t)?t.includes(r.key):t===r.key)&&(null==e||e(r))}},[t,e]),(0,i.useEffect)(function(){var t=function(t){r.current(t)};return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}},[])}},75028:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var i=r(14232);let s=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.filter((t,e,r)=>!!t&&""!==t.trim()&&r.indexOf(t)===e).join(" ").trim()};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,i.forwardRef)((t,e)=>{let{color:r="currentColor",size:s=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:l="",children:c,iconNode:d,...h}=t;return(0,i.createElement)("svg",{ref:e,...a,width:s,height:s,stroke:r,strokeWidth:u?24*Number(o)/Number(s):o,className:n("lucide",l),...h},[...d.map(t=>{let[e,r]=t;return(0,i.createElement)(e,r)}),...Array.isArray(c)?c:[c]])}),u=((t,e)=>{let r=(0,i.forwardRef)((r,a)=>{let{className:u,...l}=r;return(0,i.createElement)(o,{ref:a,iconNode:e,className:n("lucide-".concat(s(t)),u),...l})});return r.displayName="".concat(t),r})("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},87965:(t,e,r)=>{"use strict";r.d(e,{T:()=>P});class i{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return null!=t&&""!==t}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(t=>this.hasValue(t)),this}setDelimiter(t){return this.delimiter=t,this}}class s extends Error{constructor(t="Unsupported"){super(t)}}function n(){return this._qualifierModel||{error:new s(`unsupported qualifier ${this.constructor.name}`)}}class a{constructor(){this._qualifierModel={}}toJson(){return n.apply(this)}}class o extends a{constructor(t,e){super(),this.delimiter="_",this.key=t,e instanceof i?this.qualifierValue=e:(this.qualifierValue=new i,this.qualifierValue.addValue(e))}toString(){let{key:t,delimiter:e,qualifierValue:r}=this;return`${t}${e}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}}class u extends o{constructor(t,e){let r;super("fl",e?new i([t,`${e}`]).setDelimiter(":"):t),this.flagValue=e}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function l(){var t,e,r;let i=this._actionModel&&Object.keys(this._actionModel).length,n=null===(r=null===(e=null===(t=this._actionModel)||void 0===t?void 0:t.source)||void 0===e?void 0:e.transformation)||void 0===r?void 0:r.error;return n&&n instanceof Error?{error:n}:i?this._actionModel:{error:new s(`unsupported action ${this.constructor.name}`)}}class c{constructor(){this._actionModel={}}toJson(){return l.apply(this)}}class d extends c{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),(function(t,e){let r=Array.from(t.entries());return e.forEach(t=>{r.push(["fl",t])}),r.sort().map(t=>t[1])})(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if("string"==typeof t){let[e,r]=t.toLowerCase().split("_");"fl"===e?this.flags.push(new u(r)):this.qualifiers.set(e,new o(e,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return"string"==typeof t?this.flags.push(new u(t)):t instanceof u&&this.flags.push(t),this}addValueToQualifier(t,e){return this.qualifiers.get(t).addValue(e),this}}class h extends d{constructor(t){super(),this._actionModel={},this.addQualifier(new o("b",new i(function(t){return t&&t.match(/^#/)?`rgb:${t.substr(1)}`:t}(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){let{color:e}=t;return new this(e)}}class f{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:new s(`unsupported action ${this.constructor.name}`)}}}class p extends i{constructor(t){super(t),this.val=t}getValue(){return this.val}}function g(t){let e={};return Object.keys(t).forEach(r=>{e[t[r]]=r}),e}g({444:"CHROMA_444",420:"CHROMA_420"}),g({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"}),g({limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"});let m=g({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"});g({redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"}),g({autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"}),g({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class y extends d{constructor(t,e,r){let i;super(),this._actionModel={},i=e instanceof p?e.getValue():e,this._actionModel.actionType=m[t],this._actionModel[r]=i,this.addQualifier(new o(t,e))}}class v extends u{constructor(t){super("progressive",t)}}class A extends y{constructor(t,e){super(t,e,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new u("lossy")),this}progressive(t){return t instanceof v?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(new u("progressive",t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new u("preserve_transparency")),this}static fromJson(t){let e;let{formatType:r,lossy:i,progressive:s,preserveTransparency:n}=t;return e=r?new this("f",r):new this("f"),s&&(s.mode?e.progressive(s.mode):e.progressive()),i&&e.lossy(),n&&e.preserveTransparency(),e}}class w{constructor(){this.actions=[]}addAction(t){let e;if("string"==typeof t){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";e=new f(t)}else e=t;return this.actions.push(e),this}addTransformation(t){return t instanceof w?this.actions=this.actions.concat(t.actions):this.actions.push(new f(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new A("q",t)),this}format(t){return this.addAction(new A("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new h(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){let e=new d,r=t;return"string"==typeof t&&(r=new u(t)),e.addQualifier(r),this.addAction(e)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){let t=[];for(let e of this.actions){let r=e.toJson();if("error"in r&&r.error)return r;t.push(r)}return{actions:t}}}class C extends w{}class k{filterOutNonSupportedKeys(t,e){let r=Object.create({});return"object"!=typeof t||t instanceof Array?Object.create({}):(Object.keys(t).forEach(i=>{e.indexOf(i)>=0?r[i]=t[i]:console.warn("Warning - unsupported key provided to configuration: ",i)}),r)}}let S=k,E=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class b extends S{constructor(t){super(),Object.assign(this,{secure:!0},this.filterOutNonSupportedKeys(t,E))}extend(t){return new b(Object.assign({},this,this.filterOutNonSupportedKeys(t,E)))}setCname(t){return this.cname=t,this}setSecureDistribution(t){return this.secureDistribution=t,this}setPrivateCdn(t){return this.privateCdn=t,this}setSignUrl(t){return this.signUrl=t,this}setLongUrlSignature(t){return this.longUrlSignature=t,this}setShorten(t){return this.shorten=t,this}setUseRootPath(t){return this.useRootPath=t,this}setSecure(t){return this.secure=t,this}setForceVersion(t){return this.forceVersion=t,this}setQueryParams(t){return this.queryParams=t,this}}function x(t,e,r){let i=e>>0,s=String(void 0!==r?r:" ");return t.length>i?String(t):((i-=t.length)>s.length&&(s+=function(t,e){let r=e,i="";for(;r>0;)i+=t,r--;return i}(s,i/s.length)),s.slice(0,i)+String(t))}let O={},T=0;function U(t){let e="",r=t.split(".").length,i=parseInt((function(t){if(t.split(".").length<2)throw Error("invalid semVer, must have at least two segments");return t.split(".").map(t=>{let e=+t;if(isNaN(e)||e<0)throw"Invalid version number provided";return x(t,2,"0")}).join(".")})(function(t){if(t.split(".").length<2)throw Error("invalid semVer, must have at least two segments");return t.split(".").reverse().join(".")}(t)).split(".").join("")).toString(2);if((i=x(i,6*r,"0")).length%6!=0)throw"Version must be smaller than 43.21.26)";return i.match(/.{1,6}/g).forEach(t=>{e+=O[t]}),e}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(t=>{let e=T.toString(2);O[e=x(e,6,"0")]=t,T++});var j=r(99742);function _(t){let e=function(t){let e={sdkSemver:t.sdkSemver,techVersion:t.techVersion,sdkCode:t.sdkCode,product:t.product,feature:"0",osType:t.osType,osVersion:t.osVersion};return t.accessibility&&(e.feature="D"),t.lazyload&&(e.feature="C"),t.responsive&&(e.feature="A"),t.placeholder&&(e.feature="B"),e}(function(t){let e={techVersion:function(){let t="0.0.0";if("undefined"!=typeof window)return t;try{return j.versions.node||t}catch(e){return t}}(),sdkCode:"T",sdkSemver:"1.21.0".split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return t?Object.assign(Object.assign({},e),t):e}(t));try{let t=function(t){let e=t.split(".");return`${e[0]}.${e[1]}`}(e.techVersion),r=U(e.sdkSemver),i=U(t),s=function(t){let[e,r]=t.split("."),i=parseInt(e).toString(2),s=parseInt(r).toString(2),n=i.padStart(6,"0"),a=s.padStart(6,"0");return O[n]+O[a]}(e.osVersion),n=e.feature,a=e.sdkCode,{product:o,osType:u}=e;return`D${o}${a}${r}${i}${u}${s}${n}`}catch(t){return"E"}}let R={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class L{constructor(t,e={},r){this.setPublicID(t),this.setCloudConfig(e),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new b(t),this}setCloudConfig(t){return this.cloudName=t.cloudName,this.apiKey=t.apiKey,this.apiSecret=t.apiSecret,this.authToken=t.authToken,this}setPublicID(t){return this.publicID=t?t.toString():"",this}setDeliveryType(t){return this.deliveryType=t,this}setSuffix(t){return this.suffix=t,this}setSignature(t){return this.signature=t,this}setVersion(t){return t&&(this.version=t),this}setAssetType(t){return t&&(this.assetType=t),this}sign(){return this}toURL(t={}){return this.createCloudinaryURL(null,t.trackedAnalytics)}validateAssetForURLCreation(){if(void 0===this.cloudName)throw"You must supply a cloudName when initializing the asset";let t=this.suffix&&this.suffix.indexOf(".")>=0,e=this.suffix&&this.suffix.indexOf("/")>=0;if(t||e)throw"`suffix`` should not include . or /"}getResourceType(){var t,e;let r=(t=this.assetType)?t:"image",i=(e=this.deliveryType)?e:"upload",s=!!this.suffix,n=`${r}/${i}`,a=R[`${r}/${i}`],o=this.urlConfig.useRootPath,u=this.urlConfig.shorten;if(o){if("image/upload"===n)return"";throw Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${n} instead`)}if(u&&"image/upload"===n)return"iu";if(s){if(a)return a;throw Error(`URL Suffix only supported for ${Object.keys(R).join(", ")}, Provided: ${n} instead`)}return n}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,e){var r,i,s;if(!this.publicID)return"";this.validateAssetForURLCreation();let n=function(t,e){let r=e.secure,i=e.privateCdn,s=e.cname,n=e.secureDistribution;return r||s?r&&!n&&i?`https://${t}-res.cloudinary.com`:r&&!n?`https://res.cloudinary.com/${t}`:r&&n&&i?`https://${n}`:r&&n?`https://${n}/${t}`:!r&&s?`http://${s}/${t}`:"ERROR":`http://res.cloudinary.com/${t}`}(this.cloudName,this.urlConfig),a=t?t.toString():"",o=(r=this.publicID,i=this.version,s=this.urlConfig.forceVersion,i?`v${i}`:r.match(/^v[0-9]+/)||r.match(/^https?:\//)||0>r.indexOf("/")?"":!1!==s?"v1":""),u=this.publicID;if("string"==typeof t)return[n,this.getResourceType(),this.getSignature(),a,o,u.replace(/,/g,"%2C"),this.suffix].filter(t=>t).join("/");{let t=[encodeURI(n),this.getResourceType(),this.getSignature(),encodeURI(a),o,encodeURI(u).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(t=>t).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),r=!1!==this.urlConfig.analytics&&!u.includes("?"),i="";if("object"==typeof this.urlConfig.queryParams)try{let t=new URLSearchParams(this.urlConfig.queryParams);r&&t.set("_a",_(e)),i=t.toString()}catch(t){console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else i=this.urlConfig.queryParams||"",r&&(i+=`${i.length>0?"&":""}_a=${_(e)}`);return i?`${t}?${i}`:t}}}class M extends L{constructor(t,e,r,i){super(t,e,r),this.transformation=i}animated(t){return this.transformation.animated(t),this}border(t){return this.transformation.border(t),this}reshape(t){return this.transformation.reshape(t),this}resize(t){return this.transformation.resize(t),this}quality(t){return this.addAction(new A("q",t)),this}format(t){return this.addAction(new A("f",t)),this}roundCorners(t){return this.transformation.roundCorners(t),this}overlay(t){return this.transformation.overlay(t),this}addVariable(t){return this.transformation.addVariable(t),this}conditional(t){return this.transformation.conditional(t),this}effect(t){return this.transformation.effect(t),this}adjust(t){return this.transformation.adjust(t),this}rotate(t){return this.transformation.rotate(t),this}namedTransformation(t){return this.transformation.namedTransformation(t),this}delivery(t){return this.transformation.delivery(t),this}backgroundColor(t){return this.transformation.backgroundColor(t),this}psdTools(t){return this.transformation.psdTools(t),this}extract(t){return this.transformation.extract(t),this}addFlag(t){return this.transformation.addFlag(t),this}customFunction(t){return this.transformation.customFunction(t),this}addAction(t){return this.transformation.addAction(t),this}addTransformation(t){return this.transformation.addTransformation(t),this}toString(){return this.transformation.toString()}underlay(t){return this.transformation.underlay(t),this}toURL(t={}){return this.createCloudinaryURL(this.transformation,null==t?void 0:t.trackedAnalytics)}}class V extends M{constructor(t,e,r){super(t,e,r,new C)}}class $ extends w{}class D extends M{constructor(t,e,r){super(t,e,r,new $),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class P{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new V(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new D(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}}}]);