PluginProbe
SureCookie – GDPR Cookie Consent Banner, Cookie Scanner & Script Blocking / trunk
SureCookie – GDPR Cookie Consent Banner, Cookie Scanner & Script Blocking vtrunk
1.5.0 1.4.0 1.3.0 1.3.1 trunk 0.0.0-alpha.1 0.0.0-alpha.2 0.0.0-alpha.3 0.0.1-beta.1 0.0.1-beta.2 0.0.1-beta.3 0.0.1-beta.4 1.0.0 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4
surecookie / build / admin.js

admin.js in SureCookie – GDPR Cookie Consent Banner, Cookie Scanner & Script Blocking trunk, at build/admin.js

110 lines 2.7 MB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (()=>{var e={2793(e,t,n){"use strict";var r={};n.r(r),n.d(r,{ACCURACY:()=>fC,APP_VERSION:()=>E_,BASE_PATH:()=>DC,BASE_PATH_IS_MIN:()=>UC,BR:()=>gC,CLIPBOARD_ID:()=>QC,COMMAND_KEYS:()=>mC,EMULATE_DBLCLICK_TIMEOUT:()=>SC,ES:()=>N_,FAT_MODE:()=>P_,HOMEPAGE:()=>M_,INSEPARABLE_TAGS:()=>J_,INSERT_AS_HTML:()=>jC,INSERT_AS_TEXT:()=>NC,INSERT_CLEAR_HTML:()=>EC,INSERT_ONLY_TEXT:()=>IC,INVISIBLE_SPACE:()=>U_,INVISIBLE_SPACE_REG_EXP:()=>z_,INVISIBLE_SPACE_REG_EXP_END:()=>Q_,INVISIBLE_SPACE_REG_EXP_START:()=>H_,IS_BLOCK:()=>$_,IS_ES_MODERN:()=>I_,IS_ES_NEXT:()=>F_,IS_IE:()=>xC,IS_INLINE:()=>Y_,IS_MAC:()=>TC,IS_PROD:()=>T_,IS_TEST:()=>L_,KEY_ALIASES:()=>LC,KEY_ALT:()=>sC,KEY_BACKSPACE:()=>nC,KEY_DELETE:()=>AC,KEY_DOWN:()=>uC,KEY_ENTER:()=>oC,KEY_ESC:()=>iC,KEY_F3:()=>hC,KEY_LEFT:()=>aC,KEY_META:()=>tC,KEY_RIGHT:()=>cC,KEY_SPACE:()=>dC,KEY_TAB:()=>rC,KEY_UP:()=>lC,LIST_TAGS:()=>Z_,MARKER_CLASS:()=>BC,MODE_SOURCE:()=>bC,MODE_SPLIT:()=>wC,MODE_WYSIWYG:()=>vC,NBSP_SPACE:()=>R_,NEARBY:()=>pC,NO_EMPTY_TAGS:()=>eC,PARAGRAPH:()=>yC,PASSIVE_EVENTS:()=>qC,SAFE_COUNT_CHANGE_CALL:()=>FC,SET_TEST:()=>O_,SOURCE_CONSUMER:()=>HC,SPACE_REG_EXP:()=>q_,SPACE_REG_EXP_END:()=>K_,SPACE_REG_EXP_START:()=>V_,TEMP_ATTR:()=>RC,TEXT_HTML:()=>_C,TEXT_PLAIN:()=>kC,TEXT_RTF:()=>CC,TOKENS:()=>D_,globalDocument:()=>G_,globalWindow:()=>W_,lang:()=>zC});var o={};n.r(o),n.d(o,{$$:()=>$S,CamelCaseToKebabCase:()=>hB,ConfigDeepFlatten:()=>bj,ConfigFlatten:()=>yj,ConfigMerge:()=>vj,ConfigProto:()=>gj,ConnectionError:()=>jB,LimitedStack:()=>Fj,NUMBER_FIELDS_REG:()=>gB,OptionsError:()=>EB,UNSAFE_PROTO_KEYS:()=>fj,abort:()=>SB,alignElement:()=>aj,alreadyLoadedList:()=>CS,appendScriptAsync:()=>SS,appendStyleAsync:()=>jS,applyStyles:()=>tj,asArray:()=>WS,assert:()=>cB,attr:()=>kB,browser:()=>lj,buildQuery:()=>cj,call:()=>LB,callPromise:()=>OB,callThis:()=>PB,camelCase:()=>bB,cleanFromWord:()=>nj,clearAlign:()=>sj,clearCenterAlign:()=>xB,clearTimeout:()=>mS,cns:()=>Bj,colorToHex:()=>mB,completeUrl:()=>_S,connection:()=>IB,convertMediaUrlToVideoEmbed:()=>xj,css:()=>wB,cssPath:()=>XS,ctrlKey:()=>kj,dataBind:()=>BB,defaultLanguage:()=>_j,error:()=>NB,fastClone:()=>pj,fuzzySearchIndex:()=>iE,get:()=>JC,getClassName:()=>dS,getContentWidth:()=>Zj,getDataTransfer:()=>zB,getFixedPositionOffset:()=>Jj,getPropertyDescriptor:()=>QB,getScrollParent:()=>eE,getXPathByElement:()=>YS,hAlignElement:()=>ij,hasBrowserColorPicker:()=>VB,hasContainer:()=>JB,htmlspecialchars:()=>rj,humanSizeToBytes:()=>Cj,i18n:()=>lE,inView:()=>Ej,innerWidth:()=>tE,isAbortError:()=>KB,isArray:()=>$C,isAtom:()=>Aj,isBoolean:()=>pB,isDestructable:()=>XB,isEqual:()=>GB,isFastEqual:()=>$B,isFunction:()=>VC,isHTML:()=>rB,isHtmlFromWord:()=>YB,isInitable:()=>ZB,isInt:()=>eS,isJoditObject:()=>tS,isLicense:()=>nS,isMarker:()=>rS,isNativeFunction:()=>GC,isNumber:()=>oS,isNumeric:()=>fB,isPlainObject:()=>dB,isPromise:()=>TB,isSet:()=>oB,isString:()=>YC,isStringArray:()=>ZC,isURL:()=>iS,isUnsafeProtoKey:()=>mj,isValidName:()=>sS,isViewObject:()=>_B,isVoid:()=>XC,isWindow:()=>uB,kebabCase:()=>AB,keepNames:()=>uS,keys:()=>UB,loadImage:()=>DB,loadNext:()=>ES,loadNextStyle:()=>NS,markAsAtomic:()=>hj,markDeprecated:()=>Sj,markOwner:()=>MB,memorizeExec:()=>RB,nl2br:()=>oj,normalizeColor:()=>qj,normalizeCssNumericValue:()=>yB,normalizeCssValue:()=>vB,normalizeKeyAliases:()=>Vj,normalizeLicense:()=>Kj,normalizePath:()=>Wj,normalizeRelativePath:()=>Gj,normalizeSize:()=>$j,normalizeUrl:()=>Yj,offset:()=>rE,options:()=>FB,parseQuery:()=>wj,position:()=>oE,previewBox:()=>jj,refs:()=>ZS,reset:()=>tB,resolveElement:()=>JS,safeHTML:()=>Pj,sanitizeHTMLElement:()=>Uj,scrollIntoViewIfNeeded:()=>Nj,set:()=>Ij,setTimeout:()=>fS,size:()=>nE,splitArray:()=>yS,sprintf:()=>aE,stringify:()=>WB,stripTags:()=>Hj,toArray:()=>nB,trim:()=>iB,trimChars:()=>sB,trimInv:()=>aB,ucfirst:()=>sE});var i={};n.r(i),n.d(i,{autobind:()=>KC,cache:()=>lS,cacheHTML:()=>cS,cached:()=>aS,component:()=>hS,debounce:()=>AE,derive:()=>pE,getComponentClass:()=>pS,hook:()=>fE,idle:()=>mE,nonenumerable:()=>gE,persistent:()=>yE,throttle:()=>hE,wait:()=>vE,watch:()=>kE});var s={};n.r(s),n.d(s,{required:()=>VE,url:()=>KE});var a={};n.r(a),n.d(a,{Ajax:()=>CE,Alert:()=>QN,Async:()=>gS,AsyncStorage:()=>SN,Button:()=>LE,CommitStyle:()=>jF,Component:()=>uE,Confirm:()=>HN,ContextMenu:()=>WN,Create:()=>vN,Dialog:()=>zN,Dom:()=>qB,EventEmitter:()=>wS,EventHandlersStore:()=>bS,Eventify:()=>PS,FileBrowser:()=>CI,Helpers:()=>o,History:()=>II,Icon:()=>jE,ImageEditor:()=>pI,IndexedDBProvider:()=>bN,LazyWalker:()=>MS,LocalStorageProvider:()=>CN,MemoryStorageProvider:()=>BN,Plugin:()=>SI,PluginSystem:()=>LS,Popup:()=>gN,ProgressBar:()=>yN,Prompt:()=>qN,Response:()=>_E,STATUSES:()=>WC,Selection:()=>IF,Snapshot:()=>EI,StatusBar:()=>FI,Storage:()=>EN,StorageKey:()=>"Jodit_",Table:()=>LI,ToolbarButton:()=>OI,ToolbarCollection:()=>zI,ToolbarContent:()=>DI,ToolbarEditorCollection:()=>QI,ToolbarSelect:()=>UI,UIBlock:()=>qE,UIButton:()=>TE,UIButtonGroup:()=>DE,UIButtonState:()=>FE,UICheckbox:()=>iN,UIElement:()=>NE,UIFileInput:()=>sN,UIForm:()=>JE,UIGroup:()=>OE,UIInput:()=>YE,UIList:()=>pN,UIMessages:()=>IN,UISelect:()=>XE,UISeparator:()=>aN,UISpacer:()=>lN,UITextArea:()=>nN,UITooltip:()=>HE,Uploader:()=>$I,View:()=>LN,ViewComponent:()=>dE,ViewWithToolbar:()=>DN,canUseIndexedDB:()=>kN,canUsePersistentStorage:()=>_N,clearUseIndexedDBCache:()=>xN,defaultNameSpace:()=>vS,observable:()=>xE});var l={};n.r(l),n.d(l,{angle_down:()=>UF,angle_left:()=>RF,angle_right:()=>zF,angle_up:()=>QF,bin:()=>HF,cancel:()=>qF,center:()=>VF,check:()=>KF,chevron:()=>WF,dots:()=>GF,eye:()=>$F,file:()=>YF,folder:()=>ZF,info_circle:()=>XF,left:()=>JF,lock:()=>eT,ok:()=>tT,pencil:()=>nT,plus:()=>rT,resize_handler:()=>oT,right:()=>iT,save:()=>sT,settings:()=>aT,unlock:()=>lT,update:()=>cT,upload:()=>uT,valign:()=>dT});var c={};n.r(c),n.d(c,{removeExtraBr:()=>tL});var u={};n.r(u),n.d(u,{checkBlockNesting:()=>nL});var d={};n.r(d),n.d(d,{allowAttributes:()=>AL,convertUnsafeEmbeds:()=>hL,fillEmptyParagraph:()=>fL,removeEmptyTextNode:()=>mL,removeInvTextNodes:()=>gL,replaceOldTags:()=>yL,safeLinksTarget:()=>vL,sandboxIframesInContent:()=>kL,sanitizeAttributes:()=>_L,sanitizeStyles:()=>CL,tryRemoveNode:()=>BL});var A={};n.r(A),n.d(A,{ar:()=>NL,cs_cz:()=>IL,de:()=>FL,es:()=>TL,fa:()=>LL,fi:()=>PL,fr:()=>ML,he:()=>OL,hu:()=>DL,id:()=>UL,it:()=>RL,ja:()=>zL,ko:()=>QL,mn:()=>HL,nl:()=>qL,pl:()=>VL,pt_br:()=>KL,ru:()=>WL,tr:()=>GL,zh_cn:()=>$L,zh_tw:()=>YL});var h={};n.r(h),n.d(h,{default:()=>BP});var p={};n.r(p),n.d(p,{default:()=>SP});var f={};n.r(f),n.d(f,{default:()=>jP});var m={};n.r(m),n.d(m,{default:()=>EP});var g={};n.r(g),n.d(g,{default:()=>NP});var y={};n.r(y),n.d(y,{default:()=>IP});var v={};n.r(v),n.d(v,{default:()=>FP});var b={};n.r(b),n.d(b,{default:()=>TP});var w={};n.r(w),n.d(w,{default:()=>LP});var x={};n.r(x),n.d(x,{default:()=>PP});var k={};n.r(k),n.d(k,{default:()=>MP});var _={};n.r(_),n.d(_,{default:()=>OP});var C={};n.r(C),n.d(C,{default:()=>DP});var B={};n.r(B),n.d(B,{default:()=>UP});var S={};n.r(S),n.d(S,{default:()=>RP});var j={};n.r(j),n.d(j,{default:()=>zP});var E={};n.r(E),n.d(E,{default:()=>QP});var N={};n.r(N),n.d(N,{default:()=>HP});var I={};n.r(I),n.d(I,{default:()=>qP});var F={};n.r(F),n.d(F,{default:()=>VP});var T={};n.r(T),n.d(T,{default:()=>KP});var L={};n.r(L),n.d(L,{default:()=>WP});var P={};n.r(P),n.d(P,{default:()=>GP});var M={};n.r(M),n.d(M,{ar:()=>h,cs_cz:()=>p,de:()=>f,es:()=>m,fa:()=>g,fi:()=>y,fr:()=>v,he:()=>b,hu:()=>w,id:()=>x,it:()=>k,ja:()=>_,ko:()=>C,mn:()=>B,nl:()=>S,pl:()=>j,pt_br:()=>E,ru:()=>N,sk:()=>I,tr:()=>F,ua:()=>T,zh_cn:()=>L,zh_tw:()=>P});var O={};n.r(O),n.d(O,{default:()=>DM});var D={};n.r(D),n.d(D,{default:()=>UM});var U={};n.r(U),n.d(U,{default:()=>RM});var R={};n.r(R),n.d(R,{default:()=>zM});var z={};n.r(z),n.d(z,{default:()=>QM});var Q={};n.r(Q),n.d(Q,{default:()=>HM});var H={};n.r(H),n.d(H,{default:()=>qM});var q={};n.r(q),n.d(q,{default:()=>VM});var V={};n.r(V),n.d(V,{default:()=>KM});var K={};n.r(K),n.d(K,{default:()=>WM});var W={};n.r(W),n.d(W,{default:()=>GM});var G={};n.r(G),n.d(G,{default:()=>$M});var $={};n.r($),n.d($,{default:()=>YM});var Y={};n.r(Y),n.d(Y,{default:()=>ZM});var Z={};n.r(Z),n.d(Z,{default:()=>XM});var X={};n.r(X),n.d(X,{default:()=>JM});var J={};n.r(J),n.d(J,{default:()=>eO});var ee={};n.r(ee),n.d(ee,{default:()=>tO});var te={};n.r(te),n.d(te,{default:()=>nO});var ne={};n.r(ne),n.d(ne,{default:()=>rO});var re={};n.r(re),n.d(re,{default:()=>oO});var oe={};n.r(oe),n.d(oe,{default:()=>iO});var ie={};n.r(ie),n.d(ie,{default:()=>sO});var se={};n.r(se),n.d(se,{default:()=>aO});var ae={};n.r(ae),n.d(ae,{ar:()=>O,cs_cz:()=>D,de:()=>U,es:()=>R,fa:()=>z,fi:()=>Q,fr:()=>H,he:()=>q,hu:()=>V,id:()=>K,it:()=>W,ja:()=>G,ko:()=>$,mn:()=>Y,nl:()=>Z,no:()=>X,pl:()=>J,pt_br:()=>ee,ru:()=>te,sk:()=>ne,tr:()=>re,ua:()=>oe,zh_cn:()=>ie,zh_tw:()=>se});var le={};n.r(le),n.d(le,{default:()=>dO});var ce={};n.r(ce),n.d(ce,{default:()=>AO});var ue={};n.r(ue),n.d(ue,{default:()=>hO});var de={};n.r(de),n.d(de,{default:()=>pO});var Ae={};n.r(Ae),n.d(Ae,{default:()=>fO});var he={};n.r(he),n.d(he,{default:()=>mO});var pe={};n.r(pe),n.d(pe,{default:()=>gO});var fe={};n.r(fe),n.d(fe,{default:()=>yO});var me={};n.r(me),n.d(me,{default:()=>vO});var ge={};n.r(ge),n.d(ge,{default:()=>bO});var ye={};n.r(ye),n.d(ye,{default:()=>wO});var ve={};n.r(ve),n.d(ve,{default:()=>xO});var be={};n.r(be),n.d(be,{default:()=>kO});var we={};n.r(we),n.d(we,{default:()=>_O});var xe={};n.r(xe),n.d(xe,{default:()=>CO});var ke={};n.r(ke),n.d(ke,{default:()=>BO});var _e={};n.r(_e),n.d(_e,{default:()=>SO});var Ce={};n.r(Ce),n.d(Ce,{default:()=>jO});var Be={};n.r(Be),n.d(Be,{default:()=>EO});var Se={};n.r(Se),n.d(Se,{default:()=>NO});var je={};n.r(je),n.d(je,{default:()=>IO});var Ee={};n.r(Ee),n.d(Ee,{default:()=>FO});var Ne={};n.r(Ne),n.d(Ne,{ar:()=>le,cs_cz:()=>ce,de:()=>ue,es:()=>de,fa:()=>Ae,fi:()=>he,fr:()=>pe,he:()=>fe,hu:()=>me,id:()=>ge,it:()=>ye,ja:()=>ve,ko:()=>be,mn:()=>we,nl:()=>xe,pl:()=>ke,pt_br:()=>_e,ru:()=>Ce,tr:()=>Be,ua:()=>Se,zh_cn:()=>je,zh_tw:()=>Ee});var Ie={};n.r(Ie),n.d(Ie,{default:()=>PO});var Fe={};n.r(Fe),n.d(Fe,{default:()=>MO});var Te={};n.r(Te),n.d(Te,{en:()=>Ie,es:()=>Fe});var Le={};n.r(Le),n.d(Le,{default:()=>KO});var Pe={};n.r(Pe),n.d(Pe,{default:()=>WO});var Me={};n.r(Me),n.d(Me,{default:()=>GO});var Oe={};n.r(Oe),n.d(Oe,{default:()=>$O});var De={};n.r(De),n.d(De,{default:()=>YO});var Ue={};n.r(Ue),n.d(Ue,{default:()=>ZO});var Re={};n.r(Re),n.d(Re,{default:()=>XO});var ze={};n.r(ze),n.d(ze,{default:()=>JO});var Qe={};n.r(Qe),n.d(Qe,{default:()=>eD});var He={};n.r(He),n.d(He,{default:()=>tD});var qe={};n.r(qe),n.d(qe,{default:()=>nD});var Ve={};n.r(Ve),n.d(Ve,{default:()=>rD});var Ke={};n.r(Ke),n.d(Ke,{default:()=>oD});var We={};n.r(We),n.d(We,{default:()=>iD});var Ge={};n.r(Ge),n.d(Ge,{default:()=>sD});var $e={};n.r($e),n.d($e,{default:()=>aD});var Ye={};n.r(Ye),n.d(Ye,{default:()=>lD});var Ze={};n.r(Ze),n.d(Ze,{default:()=>cD});var Xe={};n.r(Xe),n.d(Xe,{default:()=>uD});var Je={};n.r(Je),n.d(Je,{default:()=>dD});var et={};n.r(et),n.d(et,{default:()=>AD});var tt={};n.r(tt),n.d(tt,{default:()=>hD});var nt={};n.r(nt),n.d(nt,{default:()=>pD});var rt={};n.r(rt),n.d(rt,{default:()=>fD});var ot={};n.r(ot),n.d(ot,{ar:()=>Le,cs_cz:()=>Pe,de:()=>Me,es:()=>Oe,fa:()=>De,fi:()=>Ue,fr:()=>Re,he:()=>ze,hu:()=>Qe,id:()=>He,it:()=>qe,ja:()=>Ve,ko:()=>Ke,mn:()=>We,nl:()=>Ge,no:()=>$e,pl:()=>Ye,pt_br:()=>Ze,ru:()=>Xe,sk:()=>Je,tr:()=>et,ua:()=>tt,zh_cn:()=>nt,zh_tw:()=>rt});var it={};n.r(it),n.d(it,{Button:()=>tz,CaptionLabel:()=>nz,Chevron:()=>rz,Day:()=>oz,DayButton:()=>iz,Dropdown:()=>sz,DropdownNav:()=>az,Footer:()=>lz,Month:()=>cz,MonthCaption:()=>uz,MonthGrid:()=>dz,Months:()=>Az,MonthsDropdown:()=>hz,Nav:()=>pz,NextMonthButton:()=>fz,Option:()=>mz,PreviousMonthButton:()=>gz,Root:()=>yz,Select:()=>vz,Week:()=>bz,WeekNumber:()=>kz,WeekNumberHeader:()=>_z,Weekday:()=>wz,Weekdays:()=>xz,Weeks:()=>Cz,YearsDropdown:()=>Bz});var st={};n.r(st),n.d(st,{formatCaption:()=>jz,formatDay:()=>Nz,formatMonthCaption:()=>Ez,formatMonthDropdown:()=>Iz,formatWeekNumber:()=>Tz,formatWeekNumberHeader:()=>Lz,formatWeekdayName:()=>Fz,formatYearCaption:()=>Mz,formatYearDropdown:()=>Pz});var at={};n.r(at),n.d(at,{labelCaption:()=>Rz,labelDay:()=>Dz,labelDayButton:()=>Oz,labelGrid:()=>Uz,labelGridcell:()=>zz,labelMonthDropdown:()=>Qz,labelNav:()=>Hz,labelNext:()=>qz,labelPrevious:()=>Vz,labelWeekNumber:()=>Wz,labelWeekNumberHeader:()=>Gz,labelWeekday:()=>Kz,labelYearDropdown:()=>$z});var lt={};n.r(lt),n.d(lt,{scaleBand:()=>w1,scaleDiverging:()=>J8,scaleDivergingLog:()=>e6,scaleDivergingPow:()=>n6,scaleDivergingSqrt:()=>r6,scaleDivergingSymlog:()=>t6,scaleIdentity:()=>X5,scaleImplicit:()=>v1,scaleLinear:()=>Z5,scaleLog:()=>a4,scaleOrdinal:()=>b1,scalePoint:()=>k1,scalePow:()=>m4,scaleQuantile:()=>B4,scaleQuantize:()=>S4,scaleRadial:()=>v4,scaleSequential:()=>K8,scaleSequentialLog:()=>W8,scaleSequentialPow:()=>$8,scaleSequentialQuantile:()=>Z8,scaleSequentialSqrt:()=>Y8,scaleSequentialSymlog:()=>G8,scaleSqrt:()=>g4,scaleSymlog:()=>d4,scaleThreshold:()=>j4,scaleTime:()=>Q8,scaleUtc:()=>H8,tickFormat:()=>$5});const ct=window.wp.element;let ut=1;const dt=new class{#e;#t;constructor(){this.#e=[],this.#t=[]}subscribe(e){return this.#t.push(e),()=>{this.#t=this.#t.filter(t=>t!==e)}}publish(e){this.#t.forEach(t=>t(e))}add(e){this.#e.push(e),this.publish(e)}remove(e){return this.#e=this.#e.filter(t=>t.id!==e),e}create(e){const{id:t,message:n="",jsx:r,...o}=e;if(!n&&"function"!=typeof r)return;const i="number"==typeof t?t:ut++;return this.#e.find(e=>e.id===i)&&(this.#e=this.#e.map(e=>e.id===i?(this.publish({...e,title:n,jsx:r,...o}),{...e,title:n,jsx:r,...o}):e)),this.add({id:i,title:n,jsx:r,...o}),i}update(e,t){const{render:n}=t;let r=t;switch(typeof n){case"function":r={jsx:n,...t};break;case"string":r={title:n,...t}}this.#e=this.#e.map(t=>t.id===e?(this.publish({...t,...r}),{...t,...r}):t)}dismiss(e){return e||this.#e.forEach(e=>this.#t.forEach(t=>t({id:e.id,dismiss:!0}))),this.#t.forEach(t=>t({id:e,dismiss:!0})),e}history(){return this.#e}default(e="",t={}){return this.create({message:e,type:"neutral",...t})}success(e="",t={}){return this.create({message:e,type:"success",...t})}error(e="",t={}){return this.create({message:e,type:"error",...t})}warning(e="",t={}){return this.create({message:e,type:"warning",...t})}info(e="",t={}){return this.create({message:e,type:"info",...t})}custom(e,t={}){return this.create({jsx:e,type:"custom",...t})}},At=Object.seal(Object.assign((e,t)=>dt.default(e,t),{success:dt.success.bind(dt),error:dt.error.bind(dt),warning:dt.warning.bind(dt),info:dt.info.bind(dt),custom:dt.custom.bind(dt),dismiss:dt.dismiss.bind(dt),update:dt.update.bind(dt)},{getHistory:dt.history.bind(dt)})),ht=window.wp.hooks,pt=window.wp.i18n,ft=window.React;var mt=n.t(ft,2),gt=n.n(ft);const yt=window.ReactJSXRuntime;var vt=ft.createContext(void 0),bt=e=>{const t=ft.useContext(vt);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},wt=({client:e,children:t})=>(ft.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,yt.jsx)(vt.Provider,{value:e,children:t})),xt={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},kt=new class{#n=xt;#r=!1;setTimeoutProvider(e){this.#n=e}setTimeout(e,t){return this.#n.setTimeout(e,t)}clearTimeout(e){this.#n.clearTimeout(e)}setInterval(e,t){return this.#n.setInterval(e,t)}clearInterval(e){this.#n.clearInterval(e)}},_t="undefined"==typeof window||"Deno"in globalThis;function Ct(){}function Bt(e){return"number"==typeof e&&e>=0&&e!==1/0}function St(e,t){return Math.max(e+(t||0)-Date.now(),0)}function jt(e,t){return"function"==typeof e?e(t):e}function Et(e,t){return"function"==typeof e?e(t):e}function Nt(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s)if(r){if(t.queryHash!==Ft(s,t.options))return!1}else if(!Lt(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof a&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function It(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Tt(t.options.mutationKey)!==Tt(i))return!1}else if(!Lt(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Ft(e,t){return(t?.queryKeyHashFn||Tt)(e)}function Tt(e){return JSON.stringify(e,(e,t)=>Ut(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Lt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!Lt(e[n],t[n]))return!1;return!0}const n=Object.keys(t);for(const r of n)if(!Lt(e[r],t[r]))return!1;return!0}return!1}var Pt=Object.prototype.hasOwnProperty;function Mt(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Dt(e)&&Dt(t);if(!(r||Ut(e)&&Ut(t)))return t;const o=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),s=i.length,a=r?new Array(s):{};let l=0;for(let c=0;c<s;c++){const s=r?c:i[c],u=e[s],d=t[s];if(u===d){a[s]=u,(r?c<o:Pt.call(e,s))&&l++;continue}if(null===u||null===d||"object"!=typeof u||"object"!=typeof d){a[s]=d;continue}const A=Mt(u,d,n+1);a[s]=A,A===u&&l++}return o===s&&l===o?e:a}function Ot(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Dt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ut(e){if(!Rt(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Rt(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function Rt(e){return"[object Object]"===Object.prototype.toString.call(e)}function zt(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Mt(e,t):t}function Qt(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ht(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var qt=Symbol();function Vt(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==qt?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function Kt(e,t){return"function"==typeof e?e(...t):!!e}var Wt=function(e){setTimeout(e,0)},Gt=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=Wt;const i=r=>{t?e.push(r):o(()=>{n(r)})};return{batch:i=>{let s;t++;try{s=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{r(()=>{t.forEach(e=>{n(e)})})})})()}return s},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),$t=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Yt=new class extends $t{#o;#i;#s;constructor(){super(),this.#s=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#i||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#i?.(),this.#i=void 0)}setEventListener(e){this.#s=e,this.#i?.(),this.#i=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#o!==e&&(this.#o=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#o?this.#o:"hidden"!==globalThis.document?.visibilityState}},Zt=new class extends $t{#a=!0;#i;#s;constructor(){super(),this.#s=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#i||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#i?.(),this.#i=void 0)}setEventListener(e){this.#s=e,this.#i?.(),this.#i=e(this.setOnline.bind(this))}setOnline(e){this.#a!==e&&(this.#a=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#a}};function Xt(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}var Jt=(()=>{let e=()=>_t;return{isServer:()=>e(),setIsServer(t){e=t}}})();function en(e){return Math.min(1e3*2**e,3e4)}function tn(e){return"online"!==(e??"online")||Zt.isOnline()}var nn=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function rn(e){let t,n=!1,r=0;const o=Xt(),i=()=>"pending"!==o.status,s=()=>Yt.isFocused()&&("always"===e.networkMode||Zt.isOnline())&&e.canRun(),a=()=>tn(e.networkMode)&&e.canRun(),l=e=>{i()||(t?.(),o.resolve(e))},c=e=>{i()||(t?.(),o.reject(e))},u=()=>new Promise(n=>{t=e=>{(i()||s())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,i()||e.onContinue?.()}),d=()=>{if(i())return;let t;const o=0===r?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch(t=>{if(i())return;const o=e.retry??(Jt.isServer()?0:3),a=e.retryDelay??en,l="function"==typeof a?a(r,t):a,A=!0===o||"number"==typeof o&&r<o||"function"==typeof o&&o(r,t);var h;!n&&A?(r++,e.onFail?.(r,t),(h=l,new Promise(e=>{kt.setTimeout(e,h)})).then(()=>s()?void 0:u()).then(()=>{n?c(t):d()})):c(t)})};return{promise:o,status:()=>o.status,cancel:t=>{if(!i()){const n=new nn(t);c(n),e.onCancel?.(n)}},continue:()=>(t?.(),o),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:a,start:()=>(a()?d():u().then(d),o)}}var on=class{#l;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Bt(this.gcTime)&&(this.#l=kt.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Jt.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#l&&(kt.clearTimeout(this.#l),this.#l=void 0)}};function sn(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let n=!1;const c=e=>{!function(e,n,r){let o,i=!1;Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??=t.signal,i||(i=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)})}(e,0,()=>n=!0)},u=Vt(t.options,t.fetchOptions),d=async(e,r,o)=>{if(n)return Promise.reject(t.signal.reason);if(null==r&&e.pages.length)return Promise.resolve(e);const i=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:o?"backward":"forward",meta:t.options.meta};return c(e),e})(),s=await u(i),{maxPages:a}=t.options,l=o?Ht:Qt;return{pages:l(e.pages,s,a),pageParams:l(e.pageParams,r,a)}};if(o&&i.length){const e="backward"===o,t={pages:i,pageParams:s},n=(e?ln:an)(r,t);a=await d(t,n,e)}else{const t=e??i.length;do{const e=0===l?s[0]??r.initialPageParam:an(r,a);if(l>0&&null==e)break;a=await d(a,e),l++}while(l<t)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function an(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ln(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var cn=class extends on{#c;#u;#d;#A;#h;#p;#f;#m;constructor(e){super(),this.#m=!1,this.#f=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#h=e.client,this.#A=this.#h.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#u=An(this.options),this.state=e.state??this.#u,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#c}get promise(){return this.#p?.promise}setOptions(e){if(this.options={...this.#f,...e},e?._type&&(this.#c=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=An(this.options);void 0!==e.data&&(this.setState(dn(e.data,e.dataUpdatedAt)),this.#u=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#A.remove(this)}setData(e,t){const n=zt(this.state.data,e,this.options);return this.#g({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#g({type:"setState",state:e})}cancel(e){const t=this.#p?.promise;return this.#p?.cancel(e),t?t.then(Ct).catch(Ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#u}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==Et(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qt||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===jt(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!St(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#p?.continue()}onOnline(){const e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#p?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#A.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#p&&(this.#m||this.#y()?this.#p.cancel({revert:!0}):this.#p.cancelRetry()),this.scheduleGc()),this.#A.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#y(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#g({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#p?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#p)return this.#p.continueRetry(),this.#p.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#m=!0,n.signal)})},o=()=>{const e=Vt(this.options,t),n=(()=>{const e={client:this.#h,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#m=!1,this.options.persister?this.options.persister(e,n,this):e(n)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#h,state:this.state,fetchFn:o};return r(e),e})(),s="infinite"===this.#c?sn(this.options.pages):this.options.behavior;s?.onFetch(i,this),this.#d=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#g({type:"fetch",meta:i.fetchOptions?.meta}),this.#p=rn({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:e=>{e instanceof nn&&e.revert&&this.setState({...this.#d,fetchStatus:"idle"}),n.abort()},onFail:(e,t)=>{this.#g({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#g({type:"pause"})},onContinue:()=>{this.#g({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const e=await this.#p.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#A.config.onSuccess?.(e,this),this.#A.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof nn){if(e.silent)return this.#p.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#g({type:"error",error:e}),this.#A.config.onError?.(e,this),this.#A.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#g(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...un(t.data,this.options),fetchMeta:e.meta??null};case"success":const n={...t,...dn(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#d=e.manual?n:void 0,n;case"error":const r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Gt.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#A.notify({query:this,type:"updated",action:e})})}};function un(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tn(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function dn(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function An(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var hn=class extends $t{constructor(e={}){super(),this.config=e,this.#v=new Map}#v;build(e,t,n){const r=t.queryKey,o=t.queryHash??Ft(r,t);let i=this.get(o);return i||(i=new cn({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#v.has(e.queryHash)||(this.#v.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#v.get(e.queryHash);t&&(e.destroy(),t===e&&this.#v.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Gt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#v.get(e)}getAll(){return[...this.#v.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Nt(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Nt(e,t)):t}notify(e){Gt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Gt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Gt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},pn=class extends on{#h;#b;#w;#p;constructor(e){super(),this.#h=e.client,this.mutationId=e.mutationId,this.#w=e.mutationCache,this.#b=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#b.includes(e)||(this.#b.push(e),this.clearGcTimeout(),this.#w.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#b=this.#b.filter(t=>t!==e),this.scheduleGc(),this.#w.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#b.length||("pending"===this.state.status?this.scheduleGc():this.#w.remove(this))}continue(){return this.#p?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#g({type:"continue"})},n={client:this.#h,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#p=rn({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#g({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#g({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#w.canRun(this)});const r="pending"===this.state.status,o=!this.#p.canStart();try{if(r)t();else{this.#g({type:"pending",variables:e,isPaused:o}),this.#w.config.onMutate&&await this.#w.config.onMutate(e,this,n);const t=await(this.options.onMutate?.(e,n));t!==this.state.context&&this.#g({type:"pending",context:t,variables:e,isPaused:o})}const i=await this.#p.start();return await(this.#w.config.onSuccess?.(i,e,this.state.context,this,n)),await(this.options.onSuccess?.(i,e,this.state.context,n)),await(this.#w.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n)),await(this.options.onSettled?.(i,null,e,this.state.context,n)),this.#g({type:"success",data:i}),i}catch(t){try{await(this.#w.config.onError?.(t,e,this.state.context,this,n))}catch(e){Promise.reject(e)}try{await(this.options.onError?.(t,e,this.state.context,n))}catch(e){Promise.reject(e)}try{await(this.#w.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n))}catch(e){Promise.reject(e)}try{await(this.options.onSettled?.(void 0,t,e,this.state.context,n))}catch(e){Promise.reject(e)}throw this.#g({type:"error",error:t}),t}finally{this.#w.runNext(this)}}#g(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Gt.batch(()=>{this.#b.forEach(t=>{t.onMutationUpdate(e)}),this.#w.notify({mutation:this,type:"updated",action:e})})}},fn=class extends $t{constructor(e={}){super(),this.config=e,this.#x=new Set,this.#k=new Map,this.#_=0}#x;#k;#_;build(e,t,n){const r=new pn({client:e,mutationCache:this,mutationId:++this.#_,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#x.add(e);const t=mn(e);if("string"==typeof t){const n=this.#k.get(t);n?n.push(e):this.#k.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#x.delete(e)){const t=mn(e);if("string"==typeof t){const n=this.#k.get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#k.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=mn(e);if("string"==typeof t){const n=this.#k.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}return!0}runNext(e){const t=mn(e);if("string"==typeof t){const n=this.#k.get(t)?.find(t=>t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}return Promise.resolve()}clear(){Gt.batch(()=>{this.#x.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#x.clear(),this.#k.clear()})}getAll(){return Array.from(this.#x)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>It(t,e))}findAll(e={}){return this.getAll().filter(t=>It(e,t))}notify(e){Gt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return Gt.batch(()=>Promise.all(e.map(e=>e.continue().catch(Ct))))}};function mn(e){return e.options.scope?.id}const gn=new class{#C;#w;#f;#B;#S;#j;#E;#N;constructor(e={}){this.#C=e.queryCache||new hn,this.#w=e.mutationCache||new fn,this.#f=e.defaultOptions||{},this.#B=new Map,this.#S=new Map,this.#j=0}mount(){this.#j++,1===this.#j&&(this.#E=Yt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#C.onFocus())}),this.#N=Zt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#C.onOnline())}))}unmount(){this.#j--,0===this.#j&&(this.#E?.(),this.#E=void 0,this.#N?.(),this.#N=void 0)}isFetching(e){return this.#C.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#w.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#C.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#C.build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(jt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#C.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#C.get(r.queryHash),i=o?.state.data,s=function(e,t){return"function"==typeof e?e(t):e}(t,i);if(void 0!==s)return this.#C.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Gt.batch(()=>this.#C.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#C.get(t.queryHash)?.state}removeQueries(e){const t=this.#C;Gt.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=this.#C;return Gt.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Gt.batch(()=>this.#C.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Ct).catch(Ct)}invalidateQueries(e,t={}){return Gt.batch(()=>(this.#C.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Gt.batch(()=>this.#C.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Ct)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(Ct)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=this.#C.build(this,t);return n.isStaleByTime(jt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ct).catch(Ct)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ct).catch(Ct)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Zt.isOnline()?this.#w.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#C}getMutationCache(){return this.#w}getDefaultOptions(){return this.#f}setDefaultOptions(e){this.#f=e}setQueryDefaults(e,t){this.#B.set(Tt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#B.values()],n={};return t.forEach(t=>{Lt(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#S.set(Tt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#S.values()],n={};return t.forEach(t=>{Lt(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#f.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ft(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===qt&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#f.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#C.clear(),this.#w.clear()}}({defaultOptions:{queries:{staleTime:6e4,gcTime:6e5,retry:2,retryDelay:e=>Math.min(1e3*2**e,3e4),refetchOnWindowFocus:!1},mutations:{retry:0}}});var yn=class extends $t{constructor(e,t){super(),this.options=t,this.#h=e,this.#I=null,this.#F=Xt(),this.bindMethods(),this.setOptions(t)}#h;#T=void 0;#L=void 0;#P=void 0;#M;#O;#F;#I;#D;#U;#R;#z;#Q;#H;#q=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#T.addObserver(this),vn(this.#T,this.options)?this.#V():this.updateResult(),this.#K())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bn(this.#T,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bn(this.#T,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#W(),this.#G(),this.#T.removeObserver(this)}setOptions(e){const t=this.options,n=this.#T;if(this.options=this.#h.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Et(this.options.enabled,this.#T))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#$(),this.#T.setOptions(this.options),t._defaulted&&!Ot(this.options,t)&&this.#h.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#T,observer:this});const r=this.hasListeners();r&&wn(this.#T,n,this.options,t)&&this.#V(),this.updateResult(),!r||this.#T===n&&Et(this.options.enabled,this.#T)===Et(t.enabled,this.#T)&&jt(this.options.staleTime,this.#T)===jt(t.staleTime,this.#T)||this.#Y();const o=this.#Z();!r||this.#T===n&&Et(this.options.enabled,this.#T)===Et(t.enabled,this.#T)&&o===this.#H||this.#X(o)}getOptimisticResult(e){const t=this.#h.getQueryCache().build(this.#h,e),n=this.createResult(t,e);return function(e,t){return!Ot(e.getCurrentResult(),t)}(this,n)&&(this.#P=n,this.#O=this.options,this.#M=this.#T.state),n}getCurrentResult(){return this.#P}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),"promise"===n&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#F.status||this.#F.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,n))})}trackProp(e){this.#q.add(e)}getCurrentQuery(){return this.#T}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#h.defaultQueryOptions(e),n=this.#h.getQueryCache().build(this.#h,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#V({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#P))}#V(e){this.#$();let t=this.#T.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Ct)),t}#Y(){this.#W();const e=jt(this.options.staleTime,this.#T);if(Jt.isServer()||this.#P.isStale||!Bt(e))return;const t=St(this.#P.dataUpdatedAt,e)+1;this.#z=kt.setTimeout(()=>{this.#P.isStale||this.updateResult()},t)}#Z(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#T):this.options.refetchInterval)??!1}#X(e){this.#G(),this.#H=e,!Jt.isServer()&&!1!==Et(this.options.enabled,this.#T)&&Bt(this.#H)&&0!==this.#H&&(this.#Q=kt.setInterval(()=>{(this.options.refetchIntervalInBackground||Yt.isFocused())&&this.#V()},this.#H))}#K(){this.#Y(),this.#X(this.#Z())}#W(){void 0!==this.#z&&(kt.clearTimeout(this.#z),this.#z=void 0)}#G(){void 0!==this.#Q&&(kt.clearInterval(this.#Q),this.#Q=void 0)}createResult(e,t){const n=this.#T,r=this.options,o=this.#P,i=this.#M,s=this.#O,a=e!==n?e.state:this.#L,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&vn(e,t),s=o&&wn(e,n,t,r);(i||s)&&(u={...u,...un(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:A,errorUpdatedAt:h,status:p}=u;c=u.data;let f=!1;if(void 0!==t.placeholderData&&void 0===c&&"pending"===p){let e;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(e=o.data,f=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#R?.state.data,this.#R):t.placeholderData,void 0!==e&&(p="success",c=zt(o?.data,e,t),d=!0)}if(t.select&&void 0!==c&&!f)if(o&&c===i?.data&&t.select===this.#D)c=this.#U;else try{this.#D=t.select,c=t.select(c),c=zt(o?.data,c,t),this.#U=c,this.#I=null}catch(e){this.#I=e}this.#I&&(A=this.#I,c=this.#U,h=Date.now(),p="error");const m="fetching"===u.fetchStatus,g="pending"===p,y="error"===p,v=g&&m,b=void 0!==c,w={status:p,fetchStatus:u.fetchStatus,isPending:g,isSuccess:"success"===p,isError:y,isInitialLoading:v,isLoading:v,data:c,dataUpdatedAt:u.dataUpdatedAt,error:A,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:u.dataUpdateCount>a.dataUpdateCount||u.errorUpdateCount>a.errorUpdateCount,isFetching:m,isRefetching:m&&!g,isLoadingError:y&&!b,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:y&&b,isStale:xn(e,t),refetch:this.refetch,promise:this.#F,isEnabled:!1!==Et(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=void 0!==w.data,r="error"===w.status&&!t,o=e=>{r?e.reject(w.error):t&&e.resolve(w.data)},i=()=>{const e=this.#F=w.promise=Xt();o(e)},s=this.#F;switch(s.status){case"pending":e.queryHash===n.queryHash&&o(s);break;case"fulfilled":(r||w.data!==s.value)&&i();break;case"rejected":r&&w.error===s.reason||i()}}return w}updateResult(){const e=this.#P,t=this.createResult(this.#T,this.options);this.#M=this.#T.state,this.#O=this.options,void 0!==this.#M.data&&(this.#R=this.#T),Ot(t,e)||(this.#P=t,this.#J({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#q.size)return!0;const r=new Set(n??this.#q);return this.options.throwOnError&&r.add("error"),Object.keys(this.#P).some(t=>{const n=t;return this.#P[n]!==e[n]&&r.has(n)})})()}))}#$(){const e=this.#h.getQueryCache().build(this.#h,this.options);if(e===this.#T)return;const t=this.#T;this.#T=e,this.#L=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#K()}#J(e){Gt.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#P)}),this.#h.getQueryCache().notify({query:this.#T,type:"observerResultsUpdated"})})}};function vn(e,t){return function(e,t){return!1!==Et(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===Et(t.retryOnMount,e))}(e,t)||void 0!==e.state.data&&bn(e,t,t.refetchOnMount)}function bn(e,t,n){if(!1!==Et(t.enabled,e)&&"static"!==jt(t.staleTime,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&xn(e,t)}return!1}function wn(e,t,n,r){return(e!==t||!1===Et(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&xn(e,n)}function xn(e,t){return!1!==Et(t.enabled,e)&&e.isStaleByTime(jt(t.staleTime,e))}var kn=ft.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),Cn=ft.createContext(!1),Bn=(Cn.Provider,(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()}));function Sn(e,t){return function(e,t,n){const r=ft.useContext(Cn),o=ft.useContext(kn),i=bt(n),s=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(s);const a=i.getQueryCache().get(s.queryHash),l=!1!==e.subscribed;s._optimisticResults=r?"isRestoring":l?"optimistic":void 0,(e=>{if(e.suspense){const t=1e3,n=e=>"static"===e?e:Math.max(e??t,t),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>n(r(...e)):n(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(s),((e,t,n)=>{const r=n?.state.error&&"function"==typeof e.throwOnError?Kt(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))})(s,o,a),(e=>{ft.useEffect(()=>{e.clearReset()},[e])})(o);const c=!i.getQueryCache().get(s.queryHash),[u]=ft.useState(()=>new t(i,s)),d=u.getOptimisticResult(s),A=!r&&l;if(ft.useSyncExternalStore(ft.useCallback(e=>{const t=A?u.subscribe(Gt.batchCalls(e)):Ct;return u.updateResult(),t},[u,A]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),ft.useEffect(()=>{u.setOptions(s)},[s,u]),((e,t)=>e?.suspense&&t.isPending)(s,d))throw Bn(s,u,o);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&void 0===e.data||Kt(n,[e.error,r])))({result:d,errorResetBoundary:o,throwOnError:s.throwOnError,query:a,suspense:s.suspense}))throw d.error;if(i.getDefaultOptions().queries?._experimental_afterQuery?.(s,d),s.experimental_prefetchInRender&&!Jt.isServer()&&((e,t)=>e.isLoading&&e.isFetching&&!t)(d,r)){const e=c?Bn(s,u,o):a?.promise;e?.catch(Ct).finally(()=>{u.updateResult()})}return s.notifyOnChangeProps?d:u.trackResult(d)}(e,yn,t)}var jn=class extends $t{#h;#P=void 0;#ee;#te;constructor(e,t){super(),this.#h=e,this.setOptions(t),this.bindMethods(),this.#ne()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#h.defaultMutationOptions(e),Ot(this.options,t)||this.#h.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#ee,observer:this}),t?.mutationKey&&this.options.mutationKey&&Tt(t.mutationKey)!==Tt(this.options.mutationKey)?this.reset():"pending"===this.#ee?.state.status&&this.#ee.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#ee?.removeObserver(this)}onMutationUpdate(e){this.#ne(),this.#J(e)}getCurrentResult(){return this.#P}reset(){this.#ee?.removeObserver(this),this.#ee=void 0,this.#ne(),this.#J()}mutate(e,t){return this.#te=t,this.#ee?.removeObserver(this),this.#ee=this.#h.getMutationCache().build(this.#h,this.options),this.#ee.addObserver(this),this.#ee.execute(e)}#ne(){const e=this.#ee?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#P={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#J(e){Gt.batch(()=>{if(this.#te&&this.hasListeners()){const t=this.#P.variables,n=this.#P.context,r={client:this.#h,meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===e?.type){try{this.#te.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#te.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if("error"===e?.type){try{this.#te.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#te.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#P)})})}};function En(e,t){const n=bt(t),[r]=ft.useState(()=>new jn(n,e));ft.useEffect(()=>{r.setOptions(e)},[r,e]);const o=ft.useSyncExternalStore(ft.useCallback(e=>r.subscribe(Gt.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=ft.useCallback((e,t)=>{r.mutate(e,t).catch(Ct)},[r]);if(o.error&&Kt(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const Nn={settings:{all:["settings"],detail:()=>[...Nn.settings.all,"detail"],exportSections:["settings","exportSections"]},consentLogs:{all:["consentLogs"],list:e=>[...Nn.consentLogs.all,"list",e],recent:e=>[...Nn.consentLogs.all,"recent",e],uniqueCountries:["consentLogs","uniqueCountries"]},cookies:{all:["cookies"],scanned:()=>[...Nn.cookies.all,"scanned"]},scanHistory:{all:["scanHistory"],latest:()=>[...Nn.scanHistory.all,"latest"],list:e=>[...Nn.scanHistory.all,"list",e]},autoScan:{all:["autoScan"],nextRun:()=>[...Nn.autoScan.all,"nextRun"]},conflictingPlugins:{all:["conflictingPlugins"],list:()=>[...Nn.conflictingPlugins.all,"list"]},pluginManagement:{all:["pluginManagement"],promotional:()=>[...Nn.pluginManagement.all,"promotional"]},cookieCategories:{all:["cookieCategories"],list:()=>[...Nn.cookieCategories.all,"list"],detail:e=>[...Nn.cookieCategories.all,"detail",e]},customCookies:{all:["customCookies"],list:()=>[...Nn.customCookies.all,"list"],detail:e=>[...Nn.customCookies.all,"detail",e]},siteScanner:{all:["siteScanner"],status:()=>[...Nn.siteScanner.all,"status"],logs:()=>[...Nn.siteScanner.all,"logs"],quota:()=>[...Nn.siteScanner.all,"quota"]},scannedResources:{all:["scannedResources"],list:()=>[...Nn.scannedResources.all,"list"]},knownServices:{all:["knownServices"],list:()=>[...Nn.knownServices.all,"list"]},cookiePolicyPage:{all:["cookiePolicyPage"],detail:e=>[...Nn.cookiePolicyPage.all,"detail",e]},privacyPolicyPage:{all:["privacyPolicyPage"],state:e=>[...Nn.privacyPolicyPage.all,"state",e]}},In=window.wp.apiFetch;var Fn=n.n(In);const Tn=window.wp.url,Ln={},Pn=(e,t="policy")=>(Ln[t]&&Ln[t].abort(),Ln[t]=new AbortController,Fn()({path:(0,Tn.addQueryArgs)("/surecookie/v1/posts/search",{search:e,per_page:20,context:t}),method:"GET",signal:Ln[t].signal}).then(e=>e?.data||[])),Mn=(e="policy")=>{Ln[e]&&(Ln[e].abort(),Ln[e]=null)},On=async()=>await Fn()({method:"GET",path:"/surecookie/v1/site-scanner/get-logs"}),Dn=async({refresh:e=!1}={})=>{const t=e?"/surecookie/v1/site-scanner/quota?refresh=1":"/surecookie/v1/site-scanner/quota";return await Fn()({method:"GET",path:t})},Un=async({token:e})=>await Fn()({method:"POST",path:"/surecookie/v1/assisted-scan/finish",data:{token:e}}),Rn=()=>Fn()({method:"POST",path:"/surecookie/v1/privacy-policy/generate-page"}),zn=()=>Fn()({method:"GET",path:"/surecookie/v1/privacy-policy/state"}),Qn=()=>Fn()({method:"POST",path:"/surecookie/v1/privacy-policy/publish"}),Hn=()=>Fn()({path:"/surecookie/v1/auth"}),qn=()=>Fn()({method:"GET",path:"/surecookie/v1/auto-scan/next-run"}),Vn=e=>{if(!e)return{};const t={...e};return"string"==typeof t.preview_enabled?t.preview_enabled="1"===t.preview_enabled||"true"===t.preview_enabled||!0===t.preview_enabled:"boolean"!=typeof t.preview_enabled&&(t.preview_enabled=!1),t.banner_design_template||(t.banner_design_template="default"),Object.keys(t).forEach(e=>{"banner_design_template"!==e&&(null!==t[e]&&void 0!==t[e]||Array.isArray(t[e])||"object"==typeof t[e]||(t[e]=""))}),t},Kn=()=>{const e=bt();return En({mutationFn:async e=>{const t=await(e=>Fn()({method:"POST",path:"/surecookie/v1/admin/settings",data:{data:e}}))(e);if(!t.success)throw new Error(t.data||(0,pt.__)("Failed to save settings","surecookie"));return t},onSuccess:()=>{e.invalidateQueries({queryKey:Nn.settings.all}),e.invalidateQueries({queryKey:Nn.cookieCategories.all})}})},Wn=({totalAccepted:e,totalDeclined:t,totalPartial:n})=>[{fill:"#377A00",name:(0,pt.__)("Accepted","surecookie"),count:e||0},{fill:"#FBBF24",name:(0,pt.__)("Partially Accepted","surecookie"),count:n||0},{fill:"#F97316",name:(0,pt.__)("Declined","surecookie"),count:t||0}],Gn=({page:e=1,perPage:t=50,enabled:n=!0,filters:r={}}={})=>Sn({queryKey:Nn.consentLogs.list({page:e,perPage:t,filters:r}),queryFn:async()=>{const n=await((e,t,n={})=>{const r={page:e,limit:t};return n.search&&(r.search=n.search),n.action&&(r.log_action=n.action),n.country&&(r.country=n.country),n.dateFrom&&(r.date_from=n.dateFrom),n.dateTo&&(r.date_to=n.dateTo),Fn()({method:"GET",path:(0,Tn.addQueryArgs)("/surecookie/v1/consent-logs/get-logs",r)})})(e,t,r);if(!n.success)throw new Error(n.data||(0,pt.__)("Failed to load consent logs","surecookie"));return n.data},enabled:n,staleTime:6e4,select:e=>({logs:e?.logs||[],total:e?.count?.total||0,chartData:Wn({totalAccepted:e?.count?.total_accepted,totalDeclined:e?.count?.total_declined,totalPartial:e?.count?.total_partial})})}),$n=()=>Sn({queryKey:Nn.cookies.scanned(),queryFn:async()=>{const e=await(async()=>await Fn()({method:"GET",path:"/surecookie/v1/cookies/scanned-results"}))();if(!e.success)throw new Error(e.message||"Failed to load scanned cookies");return{cookies:e.cookies||[],scanning_details:e.scanning_details||{success:!0}}},staleTime:3e5}),Yn=()=>Sn({queryKey:Nn.conflictingPlugins.list(),queryFn:async()=>{const e=await Fn()({method:"GET",path:"/surecookie/v1/plugin/get-conflicts"});if(!e.success)throw new Error(e.data||(0,pt.__)("Failed to load conflicting plugins","surecookie"));return e.plugins||[]},staleTime:12e4,retry:1}),Zn=e=>{[Nn.cookieCategories.all,Nn.customCookies.all,Nn.settings.all].forEach(t=>e.invalidateQueries({queryKey:t}))},Xn=e=>({queryKey:Nn.cookieCategories.list(),queryFn:async()=>{const e=await Fn()({method:"GET",path:"/surecookie/v1/cookies/categories"});if(!e.success)throw new Error(e.message||(0,pt.__)("Failed to load cookie categories","surecookie"));return{categories:Array.isArray(e.categories)?e.categories:Object.values(e.categories||{}),inUse:Array.isArray(e.in_use)?e.in_use:[],usage:e.usage&&"object"==typeof e.usage?e.usage:{}}},select:e,staleTime:3e5,retry:2}),Jn=()=>Sn(Xn(e=>e?.categories??[])),er=()=>Sn(Xn(e=>({inUse:e?.inUse??[],usage:e?.usage??{}}))),tr=({enabled:e=!0}={})=>Sn({queryKey:Nn.siteScanner.status(),queryFn:async()=>{const e=await(async()=>await Fn()({method:"GET",path:"/surecookie/v1/site-scanner/status"}))();if(!e.success)throw new Error(e.message||"Failed to fetch scan status");const t=e.data||{in_progress:!1,status:"idle",message:"No active scan"};let n=!1;return t.in_progress&&"number"==typeof t.seconds_since_last_progress&&(n=t.seconds_since_last_progress>=300),{...t,isStuck:n}},refetchInterval:e=>{const t=e.state.data;if(!t?.in_progress)return!1;const n=t?.progress?.current_phase,r=t.elapsed||0,o="capturing"===n||"analyzing"===n;return r>=600?2e4:r>=120?o?5e3:1e4:o?3e3:6e3},refetchIntervalInBackground:!0,staleTime:0,enabled:e,retry:3,retryDelay:e=>Math.min(1e3*2**e,1e4)}),nr=()=>Sn({queryKey:Nn.scanHistory.latest(),queryFn:async()=>(await Fn()({method:"GET",path:"/surecookie/v1/auto-scan/history"}))?.history||{}}),rr=()=>{const e=bt();return En({mutationFn:async(...e)=>{const t=await(async()=>await Fn()({method:"POST",path:"/surecookie/v1/site-scanner/cancel"}))(...e);if(!t?.success)throw new Error(t?.message||(0,pt.__)("Failed to cancel scan.","surecookie"));return t},onSuccess:()=>{At.success((0,pt.__)("Scan cancelled.","surecookie")),e.invalidateQueries({queryKey:Nn.siteScanner.status()})},onError:()=>{At.error((0,pt.__)("Failed to cancel scan.","surecookie"))}})};function or(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=or(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ir(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=or(e))&&(r&&(r+=" "),r+=t);return r}const sr=ir,ar=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),lr="-",cr=[],ur=e=>{const t=hr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return Ar(e);const n=e.split(lr),r=""===n[0]&&n.length>1?1:0;return dr(n,r,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=r[e],o=n[e];return t?o?((e,t)=>{const n=new Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n})(o,t):t:o||cr}return n[e]||cr}}},dr=(e,t,n)=>{if(0===e.length-t)return n.classGroupId;const r=e[t],o=n.nextPart.get(r);if(o){const n=dr(e,t+1,o);if(n)return n}const i=n.validators;if(null===i)return;const s=0===t?e.join(lr):e.slice(t).join(lr),a=i.length;for(let e=0;e<a;e++){const t=i[e];if(t.validator(s))return t.classGroupId}},Ar=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?"arbitrary.."+r:void 0})(),hr=e=>{const{theme:t,classGroups:n}=e;return pr(n,t)},pr=(e,t)=>{const n=ar();for(const r in e){const o=e[r];fr(o,n,r,t)}return n},fr=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const o=e[i];mr(o,t,n,r)}},mr=(e,t,n,r)=>{"string"!=typeof e?"function"!=typeof e?vr(e,t,n,r):yr(e,t,n,r):gr(e,t,n)},gr=(e,t,n)=>{(""===e?t:br(t,e)).classGroupId=n},yr=(e,t,n,r)=>{wr(e)?fr(e(r),t,n,r):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(n,e)))},vr=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let e=0;e<i;e++){const[i,s]=o[e];fr(s,br(t,i),n,r)}},br=(e,t)=>{let n=e;const r=t.split(lr),o=r.length;for(let e=0;e<o;e++){const t=r[e];let o=n.nextPart.get(t);o||(o=ar(),n.nextPart.set(t,o)),n=o}return n},wr=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,xr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(o,i)=>{n[o]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(o(e,t),t):void 0},set(e,t){e in n?n[e]=t:o(e,t)}}},kr=[],_r=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Cr=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,i=0;const s=e.length;for(let a=0;a<s;a++){const s=e[a];if(0===r&&0===o){if(":"===s){t.push(e.slice(i,a)),i=a+1;continue}if("/"===s){n=a;continue}}"["===s?r++:"]"===s?r--:"("===s?o++:")"===s&&o--}const a=0===t.length?e:e.slice(i);let l=a,c=!1;return a.endsWith("!")?(l=a.slice(0,-1),c=!0):a.startsWith("!")&&(l=a.slice(1),c=!0),_r(t,c,l,n&&n>i?n-i:void 0)};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):_r(kr,!1,t,void 0,!0)}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},Br=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{const n=[];let r=[];for(let o=0;o<e.length;o++){const i=e[o],s="["===i[0],a=t.has(i);s||a?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(i)):r.push(i)}return r.length>0&&(r.sort(),n.push(...r)),n}},Sr=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},jr=/\s+/,Er=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Er(e[r]))&&(n&&(n+=" "),n+=t);return n},Nr=(e,...t)=>{let n,r,o,i;const s=e=>{const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:s}=t,a=[],l=e.trim().split(jr);let c="";for(let e=l.length-1;e>=0;e-=1){const t=l[e],{isExternal:u,modifiers:d,hasImportantModifier:A,baseClassName:h,maybePostfixModifierPosition:p}=n(t);if(u){c=t+(c.length>0?" "+c:c);continue}let f,m=!!p;if(m){f=r(h.substring(0,p));const e=f&&s[f]?r(h):void 0;e&&e!==f&&(f=e,m=!1)}else f=r(h);if(!f){if(!m){c=t+(c.length>0?" "+c:c);continue}if(f=r(h),!f){c=t+(c.length>0?" "+c:c);continue}m=!1}const g=0===d.length?"":1===d.length?d[0]:i(d).join(":"),y=A?g+"!":g,v=y+f;if(a.indexOf(v)>-1)continue;a.push(v);const b=o(f,m);for(let e=0;e<b.length;++e){const t=b[e];a.push(y+t)}c=t+(c.length>0?" "+c:c)}return c})(e,n);return o(e,i),i};return i=a=>{const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:xr(e.cacheSize),parseClassName:Cr(e),sortModifiers:Br(e),postfixLookupClassGroupIds:Sr(e),...ur(e)}))(l),r=n.cache.get,o=n.cache.set,i=s,s(a)},(...e)=>i(((...e)=>{let t,n,r=0,o="";for(;r<e.length;)(t=e[r++])&&(n=Er(t))&&(o&&(o+=" "),o+=n);return o})(...e))},Ir=[],Fr=e=>{const t=t=>t[e]||Ir;return t.isThemeGetter=!0,t},Tr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Lr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Pr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Mr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Or=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Dr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ur=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Rr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zr=e=>Pr.test(e),Qr=e=>!!e&&!Number.isNaN(Number(e)),Hr=e=>!!e&&Number.isInteger(Number(e)),qr=e=>e.endsWith("%")&&Qr(e.slice(0,-1)),Vr=e=>Mr.test(e),Kr=()=>!0,Wr=e=>Or.test(e)&&!Dr.test(e),Gr=()=>!1,$r=e=>Ur.test(e),Yr=e=>Rr.test(e),Zr=e=>!eo(e)&&!lo(e),Xr=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),Jr=e=>go(e,wo,Gr),eo=e=>Tr.test(e),to=e=>go(e,xo,Wr),no=e=>go(e,ko,Qr),ro=e=>go(e,Co,Kr),oo=e=>go(e,_o,Gr),io=e=>go(e,vo,Gr),so=e=>go(e,bo,Yr),ao=e=>go(e,Bo,$r),lo=e=>Lr.test(e),co=e=>yo(e,xo),uo=e=>yo(e,_o),Ao=e=>yo(e,vo),ho=e=>yo(e,wo),po=e=>yo(e,bo),fo=e=>yo(e,Bo,!0),mo=e=>yo(e,Co,!0),go=(e,t,n)=>{const r=Tr.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},yo=(e,t,n=!1)=>{const r=Lr.exec(e);return!!r&&(r[1]?t(r[1]):n)},vo=e=>"position"===e||"percentage"===e,bo=e=>"image"===e||"url"===e,wo=e=>"length"===e||"size"===e||"bg-size"===e,xo=e=>"length"===e,ko=e=>"number"===e,_o=e=>"family-name"===e,Co=e=>"number"===e||"weight"===e,Bo=e=>"shadow"===e,So=Nr((Symbol.toStringTag,()=>{const e=Fr("color"),t=Fr("font"),n=Fr("text"),r=Fr("font-weight"),o=Fr("tracking"),i=Fr("leading"),s=Fr("breakpoint"),a=Fr("container"),l=Fr("spacing"),c=Fr("radius"),u=Fr("shadow"),d=Fr("inset-shadow"),A=Fr("text-shadow"),h=Fr("drop-shadow"),p=Fr("blur"),f=Fr("perspective"),m=Fr("aspect"),g=Fr("ease"),y=Fr("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",lo,eo],b=()=>[lo,eo,l],w=()=>[zr,"full","auto",...b()],x=()=>[Hr,"none","subgrid",lo,eo],k=()=>["auto",{span:["full",Hr,lo,eo]},Hr,lo,eo],_=()=>[Hr,"auto",lo,eo],C=()=>["auto","min","max","fr",lo,eo],B=()=>["auto",...b()],S=()=>[zr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],j=()=>[zr,"screen","full","dvw","lvw","svw","min","max","fit",...b()],E=()=>[zr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...b()],N=()=>[e,lo,eo],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Ao,io,{position:[lo,eo]}],F=()=>["auto","cover","contain",ho,Jr,{size:[lo,eo]}],T=()=>[qr,co,to],L=()=>["","none","full",c,lo,eo],P=()=>["",Qr,co,to],M=()=>[Qr,qr,Ao,io],O=()=>["","none",p,lo,eo],D=()=>["none",Qr,lo,eo],U=()=>["none",Qr,lo,eo],R=()=>[Qr,lo,eo],z=()=>[zr,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Vr],breakpoint:[Vr],color:[Kr],container:[Vr],"drop-shadow":[Vr],ease:["in","out","in-out"],font:[Zr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Vr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Vr],shadow:[Vr],spacing:["px",Qr],text:[Vr],"text-shadow":[Vr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",zr,eo,lo,m]}],container:["container"],"container-type":[{"@container":["","normal","size",lo,eo]}],"container-named":[Xr],columns:[{columns:[Qr,eo,lo,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[Hr,"auto",lo,eo]}],basis:[{basis:[zr,"full","auto",a,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Qr,zr,"auto","initial","none",eo]}],grow:[{grow:["",Qr,lo,eo]}],shrink:[{shrink:["",Qr,lo,eo]}],order:[{order:[Hr,"first","last","none",lo,eo]}],"grid-cols":[{"grid-cols":x()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":x()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:S()}],"inline-size":[{inline:["auto",...j()]}],"min-inline-size":[{"min-inline":["auto",...j()]}],"max-inline-size":[{"max-inline":["none",...j()]}],"block-size":[{block:["auto",...E()]}],"min-block-size":[{"min-block":["auto",...E()]}],"max-block-size":[{"max-block":["none",...E()]}],w:[{w:[a,"screen",...S()]}],"min-w":[{"min-w":[a,"screen","none",...S()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...S()]}],h:[{h:["screen","lh",...S()]}],"min-h":[{"min-h":["screen","lh","none",...S()]}],"max-h":[{"max-h":["screen","lh",...S()]}],"font-size":[{text:["base",n,co,to]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,mo,ro]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",qr,eo]}],"font-family":[{font:[uo,oo,t]}],"font-features":[{"font-features":[eo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,lo,eo]}],"line-clamp":[{"line-clamp":[Qr,"none",lo,no]}],leading:[{leading:[i,...b()]}],"list-image":[{"list-image":["none",lo,eo]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",lo,eo]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Qr,"from-font","auto",lo,to]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[Qr,"auto",lo,eo]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"tab-size":[{tab:[Hr,lo,eo]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",lo,eo]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",lo,eo]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Hr,lo,eo],radial:["",lo,eo],conic:[Hr,lo,eo]},po,so]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-bs":[{"border-bs":N()}],"border-color-be":[{"border-be":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Qr,lo,eo]}],"outline-w":[{outline:["",Qr,co,to]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",u,fo,ao]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",d,fo,ao]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[Qr,to]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",A,fo,ao]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[Qr,lo,eo]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Qr]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[lo,eo]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Qr]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",lo,eo]}],filter:[{filter:["","none",lo,eo]}],blur:[{blur:O()}],brightness:[{brightness:[Qr,lo,eo]}],contrast:[{contrast:[Qr,lo,eo]}],"drop-shadow":[{"drop-shadow":["","none",h,fo,ao]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",Qr,lo,eo]}],"hue-rotate":[{"hue-rotate":[Qr,lo,eo]}],invert:[{invert:["",Qr,lo,eo]}],saturate:[{saturate:[Qr,lo,eo]}],sepia:[{sepia:["",Qr,lo,eo]}],"backdrop-filter":[{"backdrop-filter":["","none",lo,eo]}],"backdrop-blur":[{"backdrop-blur":O()}],"backdrop-brightness":[{"backdrop-brightness":[Qr,lo,eo]}],"backdrop-contrast":[{"backdrop-contrast":[Qr,lo,eo]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Qr,lo,eo]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Qr,lo,eo]}],"backdrop-invert":[{"backdrop-invert":["",Qr,lo,eo]}],"backdrop-opacity":[{"backdrop-opacity":[Qr,lo,eo]}],"backdrop-saturate":[{"backdrop-saturate":[Qr,lo,eo]}],"backdrop-sepia":[{"backdrop-sepia":["",Qr,lo,eo]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",lo,eo]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Qr,"initial",lo,eo]}],ease:[{ease:["linear","initial",g,lo,eo]}],delay:[{delay:[Qr,lo,eo]}],animate:[{animate:["none",y,lo,eo]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,lo,eo]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:D()}],"rotate-x":[{"rotate-x":D()}],"rotate-y":[{"rotate-y":D()}],"rotate-z":[{"rotate-z":D()}],scale:[{scale:U()}],"scale-x":[{"scale-x":U()}],"scale-y":[{"scale-y":U()}],"scale-z":[{"scale-z":U()}],"scale-3d":["scale-3d"],skew:[{skew:R()}],"skew-x":[{"skew-x":R()}],"skew-y":[{"skew-y":R()}],transform:[{transform:[lo,eo,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],zoom:[{zoom:[Hr,lo,eo]}],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",lo,eo]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":N()}],"scrollbar-track-color":[{"scrollbar-track":N()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",lo,eo]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[Qr,co,to,no]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}})),jo=(...e)=>So(sr(...e)),Eo=e=>Array.isArray(e)?e:e&&"object"==typeof e?Object.values(e):[],No=e=>{const t=e||"";let n,r,o;const i=/^#?([a-f\d]{3}|[a-f\d]{6})$/i.exec(t);if(i){const e=3===i[1].length?i[1].replace(/(.)/g,"$1$1"):i[1];n=parseInt(e.slice(0,2),16),r=parseInt(e.slice(2,4),16),o=parseInt(e.slice(4,6),16)}else{const e=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(0|1|1\.0+|0?\.\d{1,4})\s*\)$/i.exec(t.trim());if(!e)return!1;const i=parseFloat(e[4]);if(Number(e[1])>255||Number(e[2])>255||Number(e[3])>255)return!1;n=Math.round(Number(e[1])*i+255*(1-i)),r=Math.round(Number(e[2])*i+255*(1-i)),o=Math.round(Number(e[3])*i+255*(1-i))}return(.299*n+.587*r+.114*o)/255<.5},Io=(e,{source:t=window.location?.hostname||"surecookie_plugin",medium:n="wordpress_plugin",campaign:r="core_plugin",content:o}={})=>{if(!e)return e;try{const i=new URL(e);return i.searchParams.set("utm_source",t),i.searchParams.set("utm_medium",n),i.searchParams.set("utm_campaign",r),o&&i.searchParams.set("utm_content",o),i.toString()}catch(t){return e}},Fo=e=>{switch(e){case"accepted":return(0,pt.__)("Accepted","surecookie");case"declined":return(0,pt.__)("Declined","surecookie");case"partially_accepted":return(0,pt.__)("Partially Accepted","surecookie");default:return e}},To=e=>!0===e||1===e||"1"===e||"true"===e,Lo=e=>{switch(e){case"accepted":return"green";case"declined":return"red";case"partially_accepted":return"yellow";default:return"neutral"}},Po=e=>1===Number(e?.is_forwarded)&&!!e?.origin_site,Mo=e=>(e=>{if(!e)return[];try{const t="string"==typeof e?JSON.parse(e):e;return Array.isArray(t)?t.filter(e=>"string"==typeof e):[]}catch{return[]}})(e?.forwarded_to),Oo=e=>e?e.includes(".")&&!e.includes(":")?e.replace(/\.\d+$/,".XXX"):e.includes(":")?e.replace(/::$/,"::XXXX").replace(/:0+(?=:|$)/g,":XXXX"):e:"N/A",Do=e=>{switch(e){case"Localhost":return(0,pt.__)("Localhost","surecookie");case"Private Network":return(0,pt.__)("Private Network","surecookie");case"":case null:case void 0:case"Unknown":return(0,pt.__)("Unknown","surecookie");default:return e}},Uo=e=>e||(0,pt.__)("Unknown","surecookie"),Ro=()=>{const e=window?.surecookieAdminData?.consent_log_ip_enabled;return null==e||!1!==e&&""!==e&&"0"!==e&&0!==e},zo=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Qo=(e,{includeTimezone:t=!1}={})=>{let n;if(e instanceof Date)n=e;else{if("string"!=typeof e)return null;{let t=e.trim();if(t.endsWith("Z")||/[+-]\d{2}:\d{2}$/.test(t)||(t=t.replace(" ","T")+"Z"),n=new Date(t),isNaN(n.getTime())){const e=Date.parse(t);if(isNaN(e))return null;n=new Date(e)}}}if(isNaN(n.getTime()))return null;const{siteTimezone:r,gmtOffset:o}=(()=>{const e=window.surecookieAdminData,t=window.surecookiePublicSettings;return{siteTimezone:e?.siteTimezone||t?.siteTimezone,gmtOffset:e?.gmtOffset??t?.gmtOffset}})();let i,s,a,l,c,u,d,A;if("string"==typeof r&&r.includes("/")){const e=new Intl.DateTimeFormat("en-GB",{timeZone:r,day:"2-digit",month:"2-digit",year:"numeric"}).formatToParts(n),t=new Intl.DateTimeFormat("en-GB",{timeZone:r,hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(n);i=e.find(e=>"day"===e.type)?.value,a=parseInt(e.find(e=>"month"===e.type)?.value,10)-1,s=zo[a],l=e.find(e=>"year"===e.type)?.value,c=t.find(e=>"hour"===e.type)?.value,u=t.find(e=>"minute"===e.type)?.value,d=t.find(e=>"second"===e.type)?.value;const o=new Intl.DateTimeFormat("en-US",{timeZone:r,timeZoneName:"short"}).formatToParts(n);A=o.find(e=>"timeZoneName"===e.type)?.value||""}else if("number"==typeof o){const e=36e5*o,t=new Date(n.getTime()+e);i=String(t.getUTCDate()).padStart(2,"0"),a=t.getUTCMonth(),s=zo[a],l=t.getUTCFullYear(),c=String(t.getUTCHours()).padStart(2,"0"),u=String(t.getUTCMinutes()).padStart(2,"0"),d=String(t.getUTCSeconds()).padStart(2,"0"),A=(e=>{if(0===e)return"UTC";const t=e>=0?"+":"-",n=Math.abs(e);return`(UTC${t}${String(Math.floor(n)).padStart(2,"0")}:${String(Math.round(n%1*60)).padStart(2,"0")})`})(o)}else{i=String(n.getDate()).padStart(2,"0"),a=n.getMonth(),s=zo[a],l=n.getFullYear(),c=String(n.getHours()).padStart(2,"0"),u=String(n.getMinutes()).padStart(2,"0"),d=String(n.getSeconds()).padStart(2,"0");const e=new Intl.DateTimeFormat("en-US",{timeZoneName:"short"}).formatToParts(n);A=e.find(e=>"timeZoneName"===e.type)?.value||""}const h=`${i} ${s} ${l}, ${c}:${u}:${d}`;return t&&A?`${h} ${A}`:h},Ho=e=>{if(!(e instanceof Date)||isNaN(e.getTime()))return"";const t=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${e.getFullYear()}-${t}-${n}`},qo=e=>{if("string"!=typeof e||!/^\d{4}-\d{2}-\d{2}$/.test(e))return;const[t,n,r]=e.split("-").map(Number),o=new Date(t,n-1,r);return isNaN(o.getTime())?void 0:o},Vo=["auth_required","auth_token_invalid","license_verification_failed","user_verification_failed"],Ko=["verification_failed","registration_failed","site_not_verified","requires_reregistration"],Wo=window?.surecookieAdminData?.cookieCategories,Go=(Array.isArray(Wo),["essential","functional","analytics","marketing","uncategorized"]),$o="bottom-right",Yo=window?.surecookieAdminData?.colorPalettes||{},Zo=Object.values(Yo),Xo="[surecookie_reconsent_button]",Jo="shortcode",ei="floating-widget",ti=Io("https://surecookie.com/share-usage-data/",{content:"usage_optin"}),ni=(e,t="")=>{const n=window?.surecookieAdminData||window?.surecookieOnboardingData||window?.surecookiePublicSettings;return e&&n?.website_links?.[e]?n.website_links[e]:Io(`https://surecookie.com/${t}`,{content:e})},ri=[{value:"30_days",label:(0,pt.__)("30 days","surecookie")},{value:"60_days",label:(0,pt.__)("60 days","surecookie")},{value:"90_days",label:(0,pt.__)("90 days","surecookie")},{value:"365_days",label:(0,pt.__)("365 days","surecookie")},{value:"never",label:(0,pt.__)("Never","surecookie")}],oi=e=>{const t=Number(e)||0;return Sn({queryKey:Nn.cookiePolicyPage.detail(t),queryFn:async()=>{const e=await(e=>{const t=parseInt(e,10);return!t||t<=0?Promise.reject(new Error("Invalid post ID")):Fn()({path:`/surecookie/v1/posts/${t}`,method:"GET"})})(t);return{id:e?.id,title:e?.title||"",status:e?.status,link:e?.link||"",type:e?.type,typeLabel:e?.type_label}},enabled:t>0,staleTime:3e5,retry:!1})},ii=(0,ct.createContext)(),si=()=>{const e=(0,ct.useContext)(ii);if(!e)throw new Error("useSettings must be used within a SettingsProvider");return e},ai=["gcm_enabled","banner_enabled","blocking_enabled","resource_category_overrides","excluded_scan_resources"],li=({children:e})=>{const[t,n]=(0,ct.useState)({}),[r,o]=(0,ct.useState)(!1),i=bt(),{data:s={},isLoading:a,isError:l,error:c,refetch:u}=Sn({queryKey:Nn.settings.detail(),queryFn:async()=>{const e=await Fn()({method:"GET",path:"/surecookie/v1/admin/settings"});if(!e.success)throw new Error(e.data||(0,pt.__)("Failed to load settings","surecookie"));return e.data},staleTime:3e5,select:Vn}),d=Kn(),A=(0,ct.useCallback)((e,t)=>{n(n=>({...n,[e]:t})),o(!0)},[]),h=(0,ct.useCallback)(async()=>{if(0===Object.keys(t).length)return{success:!0,message:"No changes to save"};try{const e=await d.mutateAsync(t);i.setQueryData(Nn.settings.detail(),e=>({...e,...t}));const r=ai.some(e=>Object.hasOwn(t,e));r&&i.invalidateQueries({queryKey:Nn.scannedResources.all});const s=["auto_scan_enabled","auto_scan_frequency","auto_scan_scope","auto_scan_pages"].some(e=>Object.hasOwn(t,e));if(s&&i.invalidateQueries({queryKey:Nn.autoScan.all}),o(!1),n({}),"undefined"!=typeof window&&window.dispatchEvent){const e=new CustomEvent("surecookie_settings_changed",{detail:t});window.dispatchEvent(e)}const a=e?.redirect_url||e?.data?.redirect_url;return a&&window.setTimeout(()=>{window.location.href=a},2e3),{success:!0,message:"Settings saved",redirectUrl:a}}catch(e){return"AbortError"===e.name?{success:!1,message:"Request timed out. Please try again."}:{success:!1,message:e.message||"Network error occurred"}}},[t,d,i]),p=(0,ct.useCallback)(e=>Object.hasOwn(t,e)?t[e]:s[e],[t,s]),f=(0,ct.useCallback)(e=>Object.hasOwn(t,e),[t]),m=(0,ct.useCallback)(async()=>{try{await u()}catch(e){}},[u]),g={settings:{...s,...t},hasChanges:r,isSaving:d.isPending,isLoading:a,isLoaded:!a,isError:l,error:c,updateSetting:A,saveSettings:h,getCurrentValue:p,hasPendingChange:f,loadSettings:m,refetch:u};return(0,yt.jsx)(ii.Provider,{value:g,children:e})};function ci(){return ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ci.apply(null,arguments)}var ui;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(ui||(ui={}));const di="popstate";function Ai(e,t){if(!1===e||null==e)throw new Error(t)}function hi(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function pi(e,t){return{usr:e.state,key:e.key,idx:t}}function fi(e,t,n,r){return void 0===n&&(n=null),ci({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?gi(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function mi(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function gi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var yi;function vi(e,t,n){return void 0===n&&(n="/"),function(e,t,n,r){let o=Si(("string"==typeof t?gi(t):t).pathname||"/",n);if(null==o)return null;let i=bi(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let s=null,a=function(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return hi(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}(o);for(let e=0;null==s&&e<i.length;++e)s=Ci(i[e],a,r);return s}(e,t,n,!1)}function bi(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let s={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};s.relativePath.startsWith("/")&&(Ai(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let a=Li([r,s.relativePath]),l=n.concat(s);e.children&&e.children.length>0&&(Ai(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),bi(e.children,t,l,a)),(null!=e.path||e.index)&&t.push({path:a,score:_i(a,e.index),routesMeta:l})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of wi(e.path))o(e,t,n);else o(e,t)}),t}function wi(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let s=wi(r.join("/")),a=[];return a.push(...s.map(e=>""===e?i:[i,e].join("/"))),o&&a.push(...s),a.map(t=>e.startsWith("/")&&""===t?"/":t)}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(yi||(yi={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const xi=/^:[\w-]+$/,ki=e=>"*"===e;function _i(e,t){let n=e.split("/"),r=n.length;return n.some(ki)&&(r+=-2),t&&(r+=2),n.filter(e=>!ki(e)).reduce((e,t)=>e+(xi.test(t)?3:""===t?1:10),r)}function Ci(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},i="/",s=[];for(let e=0;e<r.length;++e){let a=r[e],l=e===r.length-1,c="/"===i?t:t.slice(i.length)||"/",u=Bi({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},c),d=a.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=Bi({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),s.push({params:o,pathname:Li([i,u.pathname]),pathnameBase:Pi(Li([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=Li([i,u.pathnameBase]))}return s}function Bi(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),hi("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1),l=r.reduce((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=a[n]||"";s=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=a[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{});return{params:l,pathname:i,pathnameBase:s,pattern:e}}function Si(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}const ji=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Ei(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function Ni(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function Ii(e,t){let n=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function Fi(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=gi(e):(o=ci({},e),Ai(!o.pathname||!o.pathname.includes("?"),Ni("?","pathname","search",o)),Ai(!o.pathname||!o.pathname.includes("#"),Ni("#","pathname","hash",o)),Ai(!o.search||!o.search.includes("#"),Ni("#","search","hash",o)));let i,s=""===e||""===o.pathname,a=s?"/":o.pathname;if(null==a)i=n;else{let e=t.length-1;if(!r&&a.startsWith("..")){let t=a.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let n,{pathname:r,search:o="",hash:i=""}="string"==typeof e?gi(e):e;if(r)if((e=>ji.test(e))(r))n=r;else{if(r.includes("//")){let e=r;r=Ti(r),hi(!1,"Pathnames cannot have embedded double slashes - normalizing "+e+" -> "+r)}n=r.startsWith("/")?Ei(r.substring(1),"/"):Ei(r,t)}else n=t;return{pathname:n,search:Mi(o),hash:Oi(i)}}(o,i),c=a&&"/"!==a&&a.endsWith("/"),u=(s||"."===a)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const Ti=e=>e.replace(/\/\/+/g,"/"),Li=e=>Ti(e.join("/")),Pi=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Mi=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Oi=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const Di=["post","put","patch","delete"],Ui=(new Set(Di),["get",...Di]);function Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ri.apply(null,arguments)}new Set(Ui),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const zi=ft.createContext(null),Qi=ft.createContext(null),Hi=ft.createContext(null),qi=ft.createContext(null),Vi=ft.createContext({outlet:null,matches:[],isDataRoute:!1}),Ki=ft.createContext(null);function Wi(){return null!=ft.useContext(qi)}function Gi(){return Wi()||Ai(!1),ft.useContext(qi).location}function $i(e){ft.useContext(Hi).static||ft.useLayoutEffect(e)}function Yi(){let{isDataRoute:e}=ft.useContext(Vi);return e?function(){let{router:e}=function(){let e=ft.useContext(zi);return e||Ai(!1),e}(rs.UseNavigateStable),t=is(os.UseNavigateStable),n=ft.useRef(!1);$i(()=>{n.current=!0});let r=ft.useCallback(function(r,o){void 0===o&&(o={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,Ri({fromRouteId:t},o)))},[e,t]);return r}():function(){Wi()||Ai(!1);let e=ft.useContext(zi),{basename:t,future:n,navigator:r}=ft.useContext(Hi),{matches:o}=ft.useContext(Vi),{pathname:i}=Gi(),s=JSON.stringify(Ii(o,n.v7_relativeSplatPath)),a=ft.useRef(!1);$i(()=>{a.current=!0});let l=ft.useCallback(function(n,o){if(void 0===o&&(o={}),!a.current)return;if("number"==typeof n)return void r.go(n);let l=Fi(n,JSON.parse(s),i,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Li([t,l.pathname])),(o.replace?r.replace:r.push)(l,o.state,o)},[t,r,s,i,e]);return l}()}function Zi(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=ft.useContext(Hi),{matches:o}=ft.useContext(Vi),{pathname:i}=Gi(),s=JSON.stringify(Ii(o,r.v7_relativeSplatPath));return ft.useMemo(()=>Fi(e,JSON.parse(s),i,"path"===n),[e,s,i,n])}function Xi(e,t,n,r){Wi()||Ai(!1);let{navigator:o}=ft.useContext(Hi),{matches:i}=ft.useContext(Vi),s=i[i.length-1],a=s?s.params:{},l=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let c,u=Gi();if(t){var d;let e="string"==typeof t?gi(t):t;"/"===l||(null==(d=e.pathname)?void 0:d.startsWith(l))||Ai(!1),c=e}else c=u;let A=c.pathname||"/",h=A;if("/"!==l){let e=l.replace(/^\//,"").split("/");h="/"+A.replace(/^\//,"").split("/").slice(e.length).join("/")}let p=vi(e,{pathname:h}),f=function(e,t,n,r){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var i;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(i=r)&&i.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let s=e,a=null==(o=n)?void 0:o.errors;if(null!=a){let e=s.findIndex(e=>e.route.id&&void 0!==(null==a?void 0:a[e.route.id]));e>=0||Ai(!1),s=s.slice(0,Math.min(s.length,e+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){l=!0,s=c>=0?s.slice(0,c+1):[s[0]];break}}}return s.reduceRight((e,r,o)=>{let i,u=!1,d=null,A=null;n&&(i=a&&r.route.id?a[r.route.id]:void 0,d=r.route.errorElement||es,l&&(c<0&&0===o?(function(e){!1||ss[e]||(ss[e]=!0)}("route-fallback"),u=!0,A=null):c===o&&(u=!0,A=r.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,o+1)),p=()=>{let t;return t=i?d:u?A:r.route.Component?ft.createElement(r.route.Component,null):r.route.element?r.route.element:e,ft.createElement(ns,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?ft.createElement(ts,{location:n.location,revalidation:n.revalidation,component:d,error:i,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}(p&&p.map(e=>Object.assign({},e,{params:Object.assign({},a,e.params),pathname:Li([l,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Li([l,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,n,r);return t&&f?ft.createElement(qi.Provider,{value:{location:Ri({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:ui.Pop}},f):f}function Ji(){let e=function(){var e;let t=ft.useContext(Ki),n=function(){let e=ft.useContext(Qi);return e||Ai(!1),e}(os.UseRouteError),r=is(os.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[r]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return ft.createElement(ft.Fragment,null,ft.createElement("h2",null,"Unexpected Application Error!"),ft.createElement("h3",{style:{fontStyle:"italic"}},t),n?ft.createElement("pre",{style:r},n):null,null)}const es=ft.createElement(Ji,null);class ts extends ft.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?ft.createElement(Vi.Provider,{value:this.props.routeContext},ft.createElement(Ki.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ns(e){let{routeContext:t,match:n,children:r}=e,o=ft.useContext(zi);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),ft.createElement(Vi.Provider,{value:t},r)}var rs=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(rs||{}),os=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(os||{});function is(e){let t=function(){let e=ft.useContext(Vi);return e||Ai(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||Ai(!1),n.route.id}const ss={};function as(e){let{to:t,replace:n,state:r,relative:o}=e;Wi()||Ai(!1);let{future:i,static:s}=ft.useContext(Hi),{matches:a}=ft.useContext(Vi),{pathname:l}=Gi(),c=Yi(),u=Fi(t,Ii(a,i.v7_relativeSplatPath),l,"path"===o),d=JSON.stringify(u);return ft.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:o}),[c,d,o,n,r]),null}function ls(e){Ai(!1)}function cs(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ui.Pop,navigator:i,static:s=!1,future:a}=e;Wi()&&Ai(!1);let l=t.replace(/^\/*/,"/"),c=ft.useMemo(()=>({basename:l,navigator:i,static:s,future:Ri({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);"string"==typeof r&&(r=gi(r));let{pathname:u="/",search:d="",hash:A="",state:h=null,key:p="default"}=r,f=ft.useMemo(()=>{let e=Si(u,l);return null==e?null:{location:{pathname:e,search:d,hash:A,state:h,key:p},navigationType:o}},[l,u,d,A,h,p,o]);return null==f?null:ft.createElement(Hi.Provider,{value:c},ft.createElement(qi.Provider,{children:n,value:f}))}function us(e){let{children:t,location:n}=e;return Xi(ds(t),n)}function ds(e,t){void 0===t&&(t=[]);let n=[];return ft.Children.forEach(e,(e,r)=>{if(!ft.isValidElement(e))return;let o=[...t,r];if(e.type===ft.Fragment)return void n.push.apply(n,ds(e.props.children,o));e.type!==ls&&Ai(!1),e.props.index&&e.props.children&&Ai(!1);let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=ds(e.props.children,o)),n.push(i)}),n}ft.startTransition,new Promise(()=>{}),ft.Component;const As=window.ReactDOM;function hs(){return hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hs.apply(null,arguments)}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const ps=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}new Map;const fs=ft.startTransition;function ms(e){let{basename:t,children:n,future:r,window:o}=e,i=ft.useRef();null==i.current&&(i.current=function(e){return void 0===e&&(e={}),function(e,t,n,r){void 0===r&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=ui.Pop,l=null,c=u();function u(){return(s.state||{idx:null}).idx}function d(){a=ui.Pop;let e=u(),t=null==e?null:e-c;c=e,l&&l({action:a,location:h.location,delta:t})}function A(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:mi(e);return n=n.replace(/ $/,"%20"),Ai(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==c&&(c=0,s.replaceState(ci({},s.state,{idx:c}),""));let h={get action(){return a},get location(){return e(o,s)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(di,d),l=e,()=>{o.removeEventListener(di,d),l=null}},createHref:e=>t(o,e),createURL:A,encodeLocation(e){let t=A(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){a=ui.Push;let r=fi(h.location,e,t);n&&n(r,e),c=u()+1;let d=pi(r,c),A=h.createHref(r);try{s.pushState(d,"",A)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(A)}i&&l&&l({action:a,location:h.location,delta:1})},replace:function(e,t){a=ui.Replace;let r=fi(h.location,e,t);n&&n(r,e),c=u();let o=pi(r,c),d=h.createHref(r);s.replaceState(o,"",d),i&&l&&l({action:a,location:h.location,delta:0})},go:e=>s.go(e)};return h}(function(e,t){let{pathname:n="/",search:r="",hash:o=""}=gi(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),fi("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:mi(t))},function(e,t){hi("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}({window:o,v5Compat:!0}));let s=i.current,[a,l]=ft.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=ft.useCallback(e=>{c&&fs?fs(()=>l(e)):l(e)},[l,c]);return ft.useLayoutEffect(()=>s.listen(u),[s,u]),ft.useEffect(()=>{return null==(e=r)||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),void(t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation));var e,t},[r]),ft.createElement(cs,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}As.flushSync,ft.useId;const gs="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,ys=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vs=ft.forwardRef(function(e,t){let n,{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=e,A=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,ps),{basename:h}=ft.useContext(Hi),p=!1;if("string"==typeof c&&ys.test(c)&&(n=c,gs))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=Si(t.pathname,h);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:p=!0}catch(e){}let f=function(e,t){let{relative:n}=void 0===t?{}:t;Wi()||Ai(!1);let{basename:r,navigator:o}=ft.useContext(Hi),{hash:i,pathname:s,search:a}=Zi(e,{relative:n}),l=s;return"/"!==r&&(l="/"===s?r:Li([r,s])),o.createHref({pathname:l,search:a,hash:i})}(c,{relative:o}),m=function(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:a}=void 0===t?{}:t,l=Yi(),c=Gi(),u=Zi(e,{relative:s});return ft.useCallback(t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:mi(c)===mi(u);l(e,{replace:n,state:o,preventScrollReset:i,relative:s,viewTransition:a})}},[c,l,u,r,o,n,e,i,s,a])}(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:o,viewTransition:d});return ft.createElement("a",hs({},A,{href:n||f,onClick:p||i?r:function(e){r&&r(e),e.defaultPrevented||m(e)},ref:t,target:l}))});var bs,ws;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(bs||(bs={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(ws||(ws={}));const xs=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ks=(...e)=>e.filter((e,t,n)=>Boolean(e)&&n.indexOf(e)===t).join(" ");var _s={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"};const Cs=(0,ft.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>(0,ft.createElement)("svg",{ref:l,..._s,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:ks("lucide",o),...a},[...s.map(([e,t])=>(0,ft.createElement)(e,t)),...Array.isArray(i)?i:[i]])),Bs=(e,t)=>{const n=(0,ft.forwardRef)(({className:n,...r},o)=>(0,ft.createElement)(Cs,{ref:o,iconNode:t,className:ks(`lucide-${xs(e)}`,n),...r}));return n.displayName=`${e}`,n},Ss=Bs("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),js=e=>{const t=Fs(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Es(n,t)||Is(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Es=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Es(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},Ns=/^\[(.+)\]$/,Is=e=>{if(Ns.test(e)){const t=Ns.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Fs=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Ms(Object.entries(e.classGroups),n).forEach(([e,n])=>{Ts(n,r,e,t)}),r},Ts=(e,t,n,r)=>{e.forEach(e=>{if("string"!=typeof e)return"function"==typeof e?Ps(e)?void Ts(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n}):void Object.entries(e).forEach(([e,o])=>{Ts(o,Ls(t,e),n,r)});(""===e?t:Ls(t,e)).classGroupId=n})},Ls=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Ps=e=>e.isThemeGetter,Ms=(e,t)=>t?e.map(([e,n])=>{const r=n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e);return[e,r]}):e,Os=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Ds=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,s=e=>{const n=[];let s,a=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===a){if(u===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(l,c)),l=c+i;continue}if("/"===u){s=c;continue}}"["===u?a++:"]"===u&&a--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:s&&s>l?s-l:void 0}};return n?e=>n({className:e,parseClassName:s}):s},Us=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},Rs=/\s+/;function zs(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Qs(e))&&(r&&(r+=" "),r+=t);return r}const Qs=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Qs(e[r]))&&(n&&(n+=" "),n+=t);return n};function Hs(e,...t){let n,r,o,i=function(a){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:Os(e.cacheSize),parseClassName:Ds(e),...js(e)}))(l),r=n.cache.get,o=n.cache.set,i=s,s(a)};function s(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(Rs);let a="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let A=Boolean(d),h=r(A?u.substring(0,d):u);if(!h){if(!A){a=t+(a.length>0?" "+a:a);continue}if(h=r(u),!h){a=t+(a.length>0?" "+a:a);continue}A=!1}const p=Us(l).join(":"),f=c?p+"!":p,m=f+h;if(i.includes(m))continue;i.push(m);const g=o(h,A);for(let e=0;e<g.length;++e){const t=g[e];i.push(f+t)}a=t+(a.length>0?" "+a:a)}return a})(e,n);return o(e,i),i}return function(){return i(zs.apply(null,arguments))}}const qs=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Vs=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ks=/^\d+\/\d+$/,Ws=new Set(["px","full","screen"]),Gs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$s=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ys=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Zs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Js=e=>ta(e)||Ws.has(e)||Ks.test(e),ea=e=>pa(e,"length",fa),ta=e=>Boolean(e)&&!Number.isNaN(Number(e)),na=e=>pa(e,"number",ta),ra=e=>Boolean(e)&&Number.isInteger(Number(e)),oa=e=>e.endsWith("%")&&ta(e.slice(0,-1)),ia=e=>Vs.test(e),sa=e=>Gs.test(e),aa=new Set(["length","size","percentage"]),la=e=>pa(e,aa,ma),ca=e=>pa(e,"position",ma),ua=new Set(["image","url"]),da=e=>pa(e,ua,ya),Aa=e=>pa(e,"",ga),ha=()=>!0,pa=(e,t,n)=>{const r=Vs.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},fa=e=>$s.test(e)&&!Ys.test(e),ma=()=>!1,ga=e=>Zs.test(e),ya=e=>Xs.test(e),va=(Symbol.toStringTag,()=>{const e=qs("colors"),t=qs("spacing"),n=qs("blur"),r=qs("brightness"),o=qs("borderColor"),i=qs("borderRadius"),s=qs("borderSpacing"),a=qs("borderWidth"),l=qs("contrast"),c=qs("grayscale"),u=qs("hueRotate"),d=qs("invert"),A=qs("gap"),h=qs("gradientColorStops"),p=qs("gradientColorStopPositions"),f=qs("inset"),m=qs("margin"),g=qs("opacity"),y=qs("padding"),v=qs("saturate"),b=qs("scale"),w=qs("sepia"),x=qs("skew"),k=qs("space"),_=qs("translate"),C=()=>["auto",ia,t],B=()=>[ia,t],S=()=>["",Js,ea],j=()=>["auto",ta,ia],E=()=>["","0",ia],N=()=>[ta,ia];return{cacheSize:500,separator:":",theme:{colors:[ha],spacing:[Js,ea],blur:["none","",sa,ia],brightness:N(),borderColor:[e],borderRadius:["none","","full",sa,ia],borderSpacing:B(),borderWidth:S(),contrast:N(),grayscale:E(),hueRotate:N(),invert:E(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[oa,ea],inset:C(),margin:C(),opacity:N(),padding:B(),saturate:N(),scale:N(),sepia:E(),skew:N(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",ia]}],container:["container"],columns:[{columns:[sa]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",ia]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ra,ia]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ia]}],grow:[{grow:E()}],shrink:[{shrink:E()}],order:[{order:["first","last","none",ra,ia]}],"grid-cols":[{"grid-cols":[ha]}],"col-start-end":[{col:["auto",{span:["full",ra,ia]},ia]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[ha]}],"row-start-end":[{row:["auto",{span:[ra,ia]},ia]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ia]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ia]}],gap:[{gap:[A]}],"gap-x":[{"gap-x":[A]}],"gap-y":[{"gap-y":[A]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ia,t]}],"min-w":[{"min-w":[ia,t,"min","max","fit"]}],"max-w":[{"max-w":[ia,t,"none","full","min","max","fit","prose",{screen:[sa]},sa]}],h:[{h:[ia,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ia,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ia,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ia,t,"auto","min","max","fit"]}],"font-size":[{text:["base",sa,ea]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",na]}],"font-family":[{font:[ha]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ia]}],"line-clamp":[{"line-clamp":["none",ta,na]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Js,ia]}],"list-image":[{"list-image":["none",ia]}],"list-style-type":[{list:["none","disc","decimal",ia]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Js,ea]}],"underline-offset":[{"underline-offset":["auto",Js,ia]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ia]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ia]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",ca]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",la]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},da]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Js,ia]}],"outline-w":[{outline:[Js,ea]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Js,ea]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",sa,Aa]}],"shadow-color":[{shadow:[ha]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",sa,ia]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ia]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",ia]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",ia]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[ra,ia]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[x]}],"skew-y":[{"skew-y":[x]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ia]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ia]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ia]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Js,ea,na]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),ba=Hs(va),wa=(...e)=>ba(ir(...e)),xa=(...e)=>(...t)=>e.filter(Boolean).forEach(e=>e?.(...t)),ka=e=>{const t={0:"gap-0",xxs:"gap-1",xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-5",xl:"gap-6","2xl":"gap-8"};return t[e]||t.md},_a={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},Ca=e=>e<1024?`${e} bytes`:e<1048576?`${(e/1024).toFixed(2)} KB`:e<1073741824?`${(e/1048576).toFixed(2)} MB`:`${(e/1073741824).toFixed(2)} GB`,Ba=(e,t)=>{if(!(typeof window>"u"))try{localStorage.setItem(e,JSON.stringify(t))}catch(e){console.error(e)}},Sa=e=>{if(typeof window>"u")return null;try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch(e){return console.error(e),null}},ja=Bs("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Ea=Bs("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Na=Bs("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Ia=Bs("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Fa=(0,ft.forwardRef)((e,t)=>{const{variant:n="primary",size:r="md",type:o="button",tag:i="button",className:s,children:a,disabled:l=!1,destructive:c=!1,icon:u=null,iconPosition:d="left",loading:A=!1,...h}=e,p=c&&"focus:ring-focus-error",f=A?"opacity-50 disabled:cursor-not-allowed":"",m={primary:"text-text-on-color bg-button-primary hover:bg-button-primary-hover outline-button-primary hover:outline-button-primary-hover shadow-xs disabled:shadow-none focus:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",secondary:"text-text-on-color bg-button-secondary hover:bg-button-secondary-hover outline-button-secondary hover:outline-button-secondary-hover shadow-xs focus:shadow-none disabled:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",outline:"text-button-tertiary-color outline-border-subtle bg-button-tertiary shadow-sm focus:shadow-none hover:bg-button-tertiary-hover hover:outline-border-subtle disabled:bg-button-tertiary disabled:outline-border-disabled",ghost:"text-text-primary bg-transparent outline-transparent hover:bg-button-tertiary-hover",link:"outline-none text-link-primary bg-transparent hover:text-link-primary-hover hover:underline p-0 border-0 leading-none"}[n],g=c&&!l?{primary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",secondary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",outline:"text-button-danger outline outline-1 outline-button-danger hover:outline-button-danger bg-button-tertiary hover:bg-field-background-error",ghost:"text-button-danger hover:bg-field-background-error",link:"text-button-danger hover:text-button-danger-secondary"}[n]:"",y={xs:"p-1 rounded [&>svg]:size-4",sm:"p-2 rounded [&>svg]:size-4 gap-0.5",md:"p-2.5 rounded-md text-sm [&>svg]:size-5 gap-1",lg:"p-3 rounded-lg text-base [&>svg]:size-6 gap-1"}[r];let v,b=null,w="";return u&&(w="flex items-center justify-center","left"===d?v=u:b=u),(0,yt.jsxs)(i,{ref:t,type:o,className:wa(w,"outline outline-1 border-none cursor-pointer transition-colors duration-300 ease-in-out text-xs font-semibold focus:ring-2 focus:ring-toggle-on focus:ring-offset-2 disabled:text-text-disabled",y,m,g,p,f,{"cursor-default":l},s),disabled:l,"aria-disabled":l,...A&&{"aria-busy":!0},...h,children:[(0,yt.jsx)(ft.Fragment,{children:v},"left-icon"),a?(0,yt.jsx)("span",{className:"px-1",children:a}):null,(0,yt.jsx)(ft.Fragment,{children:b},"right-icon")]})});Fa.displayName="Button";const Ta="light",La="neutral",Pa=({icon:e,theme:t=Ta,variant:n=La})=>{const r="[&>svg]:h-5 [&>svg]:w-5",o=(({theme:e=Ta,variant:t=La})=>{let n="light"===e?"text-icon-secondary":"text-icon-inverse";return n={info:"light"===e?"text-support-info":"text-support-info-inverse",success:"light"===e?"text-support-success":"text-support-success-inverse",warning:"light"===e?"text-support-warning":"text-support-warning-inverse",error:"light"===e?"text-support-error":"text-support-error-inverse"}[t]||n,n})({theme:t,variant:n});if(e&&(0,ft.isValidElement)(e))return(0,ft.cloneElement)(e,{className:wa(r,o,e?.props?.className??"")});const i={neutral:(0,yt.jsx)(ja,{className:wa(r,o)}),info:(0,yt.jsx)(ja,{className:wa(r,o)}),success:(0,yt.jsx)(Ea,{className:wa(r,o)}),warning:(0,yt.jsx)(Na,{className:wa(r,o)}),error:(0,yt.jsx)(Ia,{className:wa(r,o)})};return i[n]||i.neutral},Ma=({actionType:e="button",onAction:t=()=>{},actionLabel:n="",theme:r=Ta})=>{const o="focus:ring-0 focus:ring-offset-0 ring-offset-0 focus:outline-none";let i="text-button-primary border-button-primary hover:border-button-primary hover:text-button-primary-hover";switch("dark"===r&&(i="text-text-inverse border-text-inverse hover:border-text-inverse hover:text-text-inverse"),e){case"button":return(0,yt.jsx)(Fa,{variant:"outline",size:"xs",onClick:t,className:wa("rounded",o,i,"dark"===r?"bg-transparent hover:bg-transparent":"bg-white hover:bg-white"),children:n});case"link":return(0,yt.jsx)(Fa,{variant:"link",size:"xs",onClick:t,className:wa(o,i),children:n});default:return null}},Oa=({theme:e=Ta,title:t="",inline:n=!1})=>t?(0,yt.jsx)("span",{className:wa("block",{light:"text-text-primary",dark:"text-text-inverse"}[e],"text-sm leading-5 font-semibold",n?"inline":"block"),children:t}):null,Da=({theme:e=Ta,content:t="",inline:n=!1})=>t?(0,yt.jsx)("span",{className:wa({light:"text-text-primary",dark:"text-text-inverse"}[e],"block text-sm [&_*]:text-sm leading-5 [&_*]:leading-5 font-normal [word-break:break-word]",n?"inline":"block"),children:t}):null,Ua=(...e)=>t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})},Ra={"top-left":"top-0 bottom-0 start-0 justify-start items-start","top-right":"top-0 bottom-0 end-0 justify-start items-end","bottom-left":"top-0 bottom-0 start-0 justify-end items-start","bottom-right":"top-0 bottom-0 end-0 justify-end items-end"},za={neutral:"border-alert-border-neutral bg-alert-background-neutral",custom:"border-alert-border-neutral bg-alert-background-neutral",info:"border-alert-border-info bg-alert-background-info",success:"border-alert-border-green bg-alert-background-green",warning:"border-alert-border-warning bg-alert-background-warning",error:"border-alert-border-danger bg-alert-background-danger"},Qa="bg-background-inverse border-background-inverse",Ha={light:"text-icon-secondary",dark:"text-icon-inverse"},qa=(0,ft.createContext)({});function Va(e){const t=(0,ft.useRef)(null);return null===t.current&&(t.current=e()),t.current}const Ka="undefined"!=typeof window?ft.useLayoutEffect:ft.useEffect,Wa=(0,ft.createContext)(null),Ga=e=>"object"==typeof e&&null!==e;function $a(e){return Ga(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const Ya=(0,ft.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Za(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class Xa extends ft.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if($a(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){const e=t.offsetParent,n=$a(e)&&e.offsetWidth||0,r=$a(e)&&e.offsetHeight||0,o=getComputedStyle(t),i=this.props.sizeRef.current;i.height=parseFloat(o.height),i.width=parseFloat(o.width),i.top=t.offsetTop,i.left=t.offsetLeft,i.right=n-i.width-i.left,i.bottom=r-i.height-i.top,i.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function Ja({children:e,isPresent:t,anchorX:n,anchorY:r,root:o,pop:i}){const s=(0,ft.useId)(),a=(0,ft.useRef)(null),l=(0,ft.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=(0,ft.useContext)(Ya),u=!1!==i?e.props?.ref??e?.ref:void 0,d=function(...e){return ft.useCallback(function(...e){return t=>{let n=!1;const r=e.map(e=>{const r=Za(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Za(e[t],null)}}}}(...e),e)}(a,u);return(0,ft.useInsertionEffect)(()=>{const{width:e,height:u,top:d,left:A,right:h,bottom:p,direction:f}=l.current;if(t||!1===i||!a.current||!e||!u)return;const m="rtl"===f,g="left"===n?m?`right: ${h}`:`left: ${A}`:m?`left: ${A}`:`right: ${h}`,y="bottom"===r?`bottom: ${p}`:`top: ${d}`;a.current.dataset.motionPopId=s;const v=document.createElement("style");c&&(v.nonce=c);const b=o??document.head;return b.appendChild(v),v.sheet&&v.sheet.insertRule(`\n [data-motion-pop-id="${s}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${u}px !important;\n ${g}px !important;\n ${y}px !important;\n }\n `),()=>{a.current?.removeAttribute("data-motion-pop-id"),b.contains(v)&&b.removeChild(v)}},[t]),(0,yt.jsx)(Xa,{isPresent:t,childRef:a,sizeRef:l,pop:i,children:!1===i?e:ft.cloneElement(e,{ref:d})})}const el=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,anchorY:l,root:c})=>{const u=Va(tl),d=(0,ft.useId)(),A=(0,ft.useRef)(n),h=(0,ft.useRef)(r);Ka(()=>{A.current=n,h.current=r});let p=!0,f=(0,ft.useMemo)(()=>(p=!1,{id:d,initial:t,isPresent:n,custom:o,onExitComplete:e=>{u.set(e,!0);for(const e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!A.current&&!u.size&&h.current?.()})}),[n,u,r]);return i&&p&&(f={...f}),(0,ft.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),ft.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,yt.jsx)(Ja,{pop:"popLayout"===s,isPresent:n,anchorX:a,anchorY:l,root:c,children:e}),(0,yt.jsx)(Wa.Provider,{value:f,children:e})};function tl(){return new Map}function nl(e=!0){const t=(0,ft.useContext)(Wa);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=(0,ft.useId)();(0,ft.useEffect)(()=>{if(e)return o(i)},[e]);const s=(0,ft.useCallback)(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const rl=e=>e.key||"";function ol(e){const t=[];return ft.Children.forEach(e,e=>{(0,ft.isValidElement)(e)&&t.push(e)}),t}const il=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",anchorY:l="top",root:c})=>{const[u,d]=nl(s),A=(0,ft.useMemo)(()=>ol(e),[e]),h=s&&!u?[]:A.map(rl),p=(0,ft.useRef)(!0),f=(0,ft.useRef)(A),m=Va(()=>new Map),g=(0,ft.useRef)(new Set),[y,v]=(0,ft.useState)(A),[b,w]=(0,ft.useState)(A);Ka(()=>{p.current=!1,f.current=A;for(let e=0;e<b.length;e++){const t=rl(b[e]);h.includes(t)?(m.delete(t),g.current.delete(t)):!0!==m.get(t)&&m.set(t,!1)}},[b,h.length,h.join("-")]);const x=[];if(A!==y){let e=[...A];for(let t=0;t<b.length;t++){const n=b[t],r=rl(n);h.includes(r)||(e.splice(t,0,n),x.push(n))}return"wait"===i&&x.length&&(e=x),w(ol(e)),v(A),null}const{forceRender:k}=(0,ft.useContext)(qa);return(0,yt.jsx)(yt.Fragment,{children:b.map(e=>{const y=rl(e),v=!(s&&!u)&&(A===b||h.includes(y));return(0,yt.jsx)(el,{isPresent:v,initial:!(p.current&&!n)&&void 0,custom:t,presenceAffectsLayout:o,mode:i,root:c,onExitComplete:v?void 0:()=>{if(g.current.has(y))return;if(!m.has(y))return;g.current.add(y),m.set(y,!0);let e=!0;m.forEach(t=>{t||(e=!1)}),e&&(k?.(),w(f.current),s&&d?.(),r&&r())},anchorX:a,anchorY:l,children:e},y)})})},sl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],al=(()=>new Set([...sl,"pathRotation"]))(),ll=(e,t,n)=>n>t?t:n<e?e:n,cl={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ul={...cl,transform:e=>ll(0,1,e)},dl={...cl,default:1},Al=e=>Math.round(1e5*e)/1e5,hl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,pl=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fl=(e,t)=>n=>Boolean("string"==typeof n&&pl.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),ml=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[o,i,s,a]=r.match(hl);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},gl={...cl,transform:e=>Math.round((e=>ll(0,255,e))(e))},yl={test:fl("rgb","red"),parse:ml("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+gl.transform(e)+", "+gl.transform(t)+", "+gl.transform(n)+", "+Al(ul.transform(r))+")"},vl={test:fl("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:yl.transform},bl=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),wl=bl("deg"),xl=bl("%"),kl=bl("px"),_l=bl("vh"),Cl=bl("vw"),Bl=(()=>({...xl,parse:e=>xl.parse(e)/100,transform:e=>xl.transform(100*e)}))(),Sl={test:fl("hsl","hue"),parse:ml("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+xl.transform(Al(t))+", "+xl.transform(Al(n))+", "+Al(ul.transform(r))+")"},jl={test:e=>yl.test(e)||vl.test(e)||Sl.test(e),parse:e=>yl.test(e)?yl.parse(e):Sl.test(e)?Sl.parse(e):vl.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?yl.transform(e):Sl.transform(e),getAnimatableNone:e=>{const t=jl.parse(e);return t.alpha=0,jl.transform(t)}},El=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Nl="number",Il="color",Fl=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Tl(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(Fl,e=>(jl.test(e)?(r.color.push(i),o.push(Il),n.push(jl.parse(e))):e.startsWith("var(")?(r.var.push(i),o.push("var"),n.push(e)):(r.number.push(i),o.push(Nl),n.push(parseFloat(e))),++i,"${}")).split("${}");return{values:n,split:s,indexes:r,types:o}}function Ll({split:e,types:t}){const n=e.length;return r=>{let o="";for(let i=0;i<n;i++)if(o+=e[i],void 0!==r[i]){const e=t[i];o+=e===Nl?Al(r[i]):e===Il?jl.transform(r[i]):r[i]}return o}}const Pl={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(hl)?.length||0)+(e.match(El)?.length||0)>0},parse:function(e){return Tl(e).values},createTransformer:function(e){return Ll(Tl(e))},getAnimatableNone:function(e){const t=Tl(e);return Ll(t)(t.values.map((e,n)=>((e,t)=>{return"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof(n=e)?0:jl.test(n)?jl.getAnimatableNone(n):n;var n})(e,t.split[n])))}},Ml=new Set(["brightness","contrast","saturate","opacity"]);function Ol(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(hl)||[];if(!r)return e;const o=n.replace(r,"");let i=Ml.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Dl=/\b([a-z-]*)\(.*?\)/gu,Ul={...Pl,getAnimatableNone:e=>{const t=e.match(Dl);return t?t.map(Ol).join(" "):e}},Rl={...Pl,getAnimatableNone:e=>{const t=Pl.parse(e);return Pl.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},zl={...cl,transform:Math.round},Ql={borderWidth:kl,borderTopWidth:kl,borderRightWidth:kl,borderBottomWidth:kl,borderLeftWidth:kl,borderRadius:kl,borderTopLeftRadius:kl,borderTopRightRadius:kl,borderBottomRightRadius:kl,borderBottomLeftRadius:kl,width:kl,maxWidth:kl,height:kl,maxHeight:kl,top:kl,right:kl,bottom:kl,left:kl,inset:kl,insetBlock:kl,insetBlockStart:kl,insetBlockEnd:kl,insetInline:kl,insetInlineStart:kl,insetInlineEnd:kl,padding:kl,paddingTop:kl,paddingRight:kl,paddingBottom:kl,paddingLeft:kl,paddingBlock:kl,paddingBlockStart:kl,paddingBlockEnd:kl,paddingInline:kl,paddingInlineStart:kl,paddingInlineEnd:kl,margin:kl,marginTop:kl,marginRight:kl,marginBottom:kl,marginLeft:kl,marginBlock:kl,marginBlockStart:kl,marginBlockEnd:kl,marginInline:kl,marginInlineStart:kl,marginInlineEnd:kl,fontSize:kl,backgroundPositionX:kl,backgroundPositionY:kl,rotate:wl,pathRotation:wl,rotateX:wl,rotateY:wl,rotateZ:wl,scale:dl,scaleX:dl,scaleY:dl,scaleZ:dl,skew:wl,skewX:wl,skewY:wl,distance:kl,translateX:kl,translateY:kl,translateZ:kl,x:kl,y:kl,z:kl,perspective:kl,transformPerspective:kl,opacity:ul,originX:Bl,originY:Bl,originZ:kl,zIndex:zl,fillOpacity:ul,strokeOpacity:ul,numOctaves:zl},Hl={...Ql,color:jl,backgroundColor:jl,outlineColor:jl,fill:jl,stroke:jl,borderColor:jl,borderTopColor:jl,borderRightColor:jl,borderBottomColor:jl,borderLeftColor:jl,filter:Ul,WebkitFilter:Ul,mask:Rl,WebkitMask:Rl},ql=e=>Hl[e],Vl=()=>({x:{min:0,max:0},y:{min:0,max:0}}),Kl=e=>Boolean(e&&e.getVelocity),Wl=new Set(["width","height","top","left","right","bottom",...sl]),Gl=e=>t=>t.test(e),$l=[cl,kl,xl,wl,Cl,_l,{test:e=>"auto"===e,parse:e=>e}],Yl=e=>$l.find(Gl(e)),Zl=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Xl=e=>t=>"string"==typeof t&&t.startsWith(e),Jl=Xl("--"),ec=Xl("var(--"),tc=e=>!!ec(e)&&nc.test(e.split("/*")[0].trim()),nc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function rc(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}const oc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ic(e,t,n=1){const[r,o]=function(e){const t=oc.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return Zl(e)?parseFloat(e):e}return tc(o)?ic(o,t,n+1):o}const sc=e=>180*e/Math.PI,ac=e=>{const t=sc(Math.atan2(e[1],e[0]));return cc(t)},lc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ac,rotateZ:ac,skewX:e=>sc(Math.atan(e[1])),skewY:e=>sc(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},cc=e=>((e%=360)<0&&(e+=360),e),uc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),dc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ac={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:uc,scaleY:dc,scale:e=>(uc(e)+dc(e))/2,rotateX:e=>cc(sc(Math.atan2(e[6],e[5]))),rotateY:e=>cc(sc(Math.atan2(-e[2],e[0]))),rotateZ:ac,rotate:ac,skewX:e=>sc(Math.atan(e[4])),skewY:e=>sc(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function hc(e){return e.includes("scale")?1:0}function pc(e,t){if(!e||"none"===e)return hc(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Ac,o=n;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=lc,o=t}if(!o)return hc(t);const i=r[t],s=o[1].split(",").map(fc);return"function"==typeof i?i(s):s[i]}function fc(e){return parseFloat(e.trim())}const mc=e=>e===cl||e===kl,gc=new Set(["x","y","z"]),yc=sl.filter(e=>!gc.has(e)),vc={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const o=e.max-e.min;return"border-box"===r?o:o-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const o=e.max-e.min;return"border-box"===r?o:o-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>pc(t,"x"),y:(e,{transform:t})=>pc(t,"y")};vc.translateX=vc.x,vc.translateY=vc.y;const bc=e=>e,wc={},xc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function kc(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=xc.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(t){i.has(t)&&(l.schedule(t),e()),t(s)}const l={schedule:(e,o=!1,s=!1)=>{const a=s&&r?t:n;return o&&i.add(e),a.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{if(s=e,r)return void(o=!0);r=!0;const i=t;t=n,n=i,t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(e))}};return l}(i),e),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:A,render:h,postRender:p}=s,f=()=>{const i=wc.useManualTiming,s=i?o.timestamp:performance.now();n=!1,i||(o.delta=r?1e3/60:Math.max(Math.min(s-o.timestamp,40),1)),o.timestamp=s,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),A.process(o),h.process(o),p.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(f))},m=xc.reduce((t,i)=>{const a=s[i];return t[i]=(t,i=!1,s=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(f)),a.schedule(t,i,s)),t},{});return{schedule:m,cancel:e=>{for(let t=0;t<xc.length;t++)s[xc[t]].cancel(e)},state:o,steps:s}}const{schedule:_c,cancel:Cc,state:Bc,steps:Sc}=kc("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:bc,!0),jc=new Set;let Ec=!1,Nc=!1,Ic=!1;function Fc(){if(Nc){const e=Array.from(jc).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=function(e){const t=[];return yc.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}Nc=!1,Ec=!1,jc.forEach(e=>e.complete(Ic)),jc.clear()}function Tc(){jc.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Nc=!0)})}class Lc{constructor(e,t,n,r,o,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(jc.add(this),Ec||(Ec=!0,_c.read(Tc),_c.resolveKeyframes(Fc))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){const o=r?.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),jc.delete(this)}cancel(){"scheduled"===this.state&&(jc.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const Pc=e=>/^0[^.\s]+$/u.test(e);function Mc(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||Pc(e)}const Oc=new Set([Ul,Rl]);function Dc(e,t){let n=ql(e);return Oc.has(n)||(n=Pl),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Uc=new Set(["auto","none","0"]);class Rc extends Lc{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),tc(r))){const o=ic(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Wl.has(n)||2!==e.length)return;const[r,o]=e,i=Yl(r),s=Yl(o);if(rc(r)!==rc(o)&&vc[n])this.needsMeasurement=!0;else if(i!==s)if(mc(i)&&mc(s))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else vc[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||Mc(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!Uc.has(t)&&Tl(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=Dc(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=vc[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){const{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;const r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);const o=n.length-1,i=n[o];n[o]=vc[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}const zc=e=>1e3*e,Qc=e=>e/1e3;function Hc(e,t){-1===e.indexOf(t)&&e.push(t)}function qc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Vc{constructor(){this.subscriptions=[]}add(e){return Hc(this.subscriptions,e),()=>qc(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Kc(e,t,n){(e=>e.startsWith("--"))(t)?e.style.setProperty(t,n):e.style[t]=n}function Wc(e){let t;return()=>(void 0===t&&(t=e()),t)}const Gc={};function $c(e,t){const n=Wc(e);return()=>Gc[t]??n()}const Yc=$c(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),Zc=e=>null!==e;function Xc(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(Zc),s=o<0||t&&"loop"!==n&&t%2==1?0:i.length-1;return s&&void 0!==r?r:i[s]}class Jc{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const eu=e=>Array.isArray(e)&&"number"==typeof e[0],tu=$c(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),nu=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=Math.round(1e4*e(t/(o-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},ru=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ou={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ru([0,.65,.55,1]),circOut:ru([.55,0,1,.45]),backIn:ru([.31,.01,.66,-.59]),backOut:ru([.33,1.53,.69,.99])};function iu(e,t){return e?"function"==typeof e?tu()?nu(e,t):"ease-out":eu(e)?ru(e):Array.isArray(e)?e.map(e=>iu(e,t)||ou.easeOut):ou[e]:void 0}function su(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=iu(a,o);Array.isArray(d)&&(u.easing=d);const A={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"};return c&&(A.pseudoElement=c),e.animate(u,A)}function au(e){return"function"==typeof e&&"applyToOptions"in e}class lu extends Jc{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:o,allowFlatten:i=!1,finalKeyframe:s,onComplete:a}=e;this.isPseudoElement=Boolean(o),this.allowFlatten=i,this.options=e,e.type;const l=function({type:e,...t}){return au(e)&&tu()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=su(t,n,r,l,o),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const e=Xc(r,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Kc(t,n,e),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return Qc(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Qc(e)}get time(){return Qc(Number(this.animation.currentTime)||0)}set time(e){const t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=zc(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Yc()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),bc):r(this)}}const cu=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:uu,cancel:du}=kc(queueMicrotask,!1);let Au;function hu(){Au=void 0}const pu={now:()=>(void 0===Au&&pu.set(Bc.isProcessing||wc.useManualTiming?Bc.timestamp:performance.now()),Au),set:e=>{Au=e,queueMicrotask(hu)}},fu=(e,t)=>t?e*(1e3/t):0,mu={current:void 0};class gu{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{const t=pu.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=pu.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(e=>!isNaN(parseFloat(e)))(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Vc);const n=this.events[e].add(t);return"change"===e?()=>{n(),_c.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return mu.current&&mu.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=pu.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return fu(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yu(e,t){return new gu(e,t)}const vu=[...$l,jl,Pl],bu=new WeakMap;function wu(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function xu(e){return"string"==typeof e||Array.isArray(e)}const ku=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_u=["initial",...ku];function Cu(e){return wu(e.animate)||_u.some(t=>xu(e[t]))}function Bu(e){return Boolean(Cu(e)||e.variants)}const Su={current:null},ju={current:!1},Eu="undefined"!=typeof window;function Nu(e){const t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Iu(e,t,n,r){if("function"==typeof t){const[o,i]=Nu(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=Nu(r);t=t(void 0!==n?n:e.custom,o,i)}return t}const Fu=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Tu={};function Lu(e){Tu=e}class Pu{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Lc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=pu.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,_c.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=o,this.options=a,this.blockInitialAnimation=Boolean(i),this.isControllingVariants=Cu(t),this.isVariantNode=Bu(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&Kl(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(const e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,bu.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ju.current||function(){if(ju.current=!0,Eu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Su.current=e.matches;e.addEventListener("change",t),t()}else Su.current=!1}(),this.shouldReduceMotion=Su.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Cc(this.notifyUpdate),Cc(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&cu.has(e)&&this.current instanceof HTMLElement){const{factory:n,keyframes:r,times:o,ease:i,duration:s}=t.accelerate,a=new lu({element:this.current,name:e,keyframes:r,times:o,ease:i,duration:zc(s)}),l=n(a);return void this.valueSubscriptions.set(e,()=>{l(),a.cancel()})}const n=al.has(e);n&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&_c.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;"undefined"!=typeof window&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),o&&o()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Tu){const t=Tu[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Fu.length;t++){const n=Fu[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Kl(o))e.addValue(r,o);else if(Kl(i))e.addValue(r,yu(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,yu(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=yu(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(Zl(n)||Pc(n))?n=parseFloat(n):(r=n,!vu.find(Gl(r))&&Pl.test(t)&&(n=Dc(e,t))),this.setBaseTarget(e,Kl(n)?n.get():n)),Kl(n)?n.get():n;var r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let n;if("string"==typeof t||"object"==typeof t){const r=Iu(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&void 0!==n)return n;const r=this.getBaseTargetFromProps(this.props,e);return void 0===r||Kl(r)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new Vc),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){uu.render(this.render)}}class Mu extends Pu{constructor(){super(...arguments),this.KeyframeResolver=Rc}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){const n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Kl(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function Ou(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Du=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Uu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ru=sl.length;function zu(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const e in t){const n=t[e];if(al.has(e))s=!0;else if(Jl(e))o[e]=n;else{const t=Du(n,Ql[e]);e.startsWith("origin")?(a=!0,i[e]=t):r[e]=t}}if(t.transform||(s||n?r.transform=function(e,t,n){let r="",o=!0;for(let i=0;i<Ru;i++){const s=sl[i],a=e[s];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===(s.startsWith("scale")?1:0);else{const e=parseFloat(a);l=s.startsWith("scale")?1===e:0===e}if(!l||n){const e=Du(a,Ql[s]);l||(o=!1,r+=`${Uu[s]||s}(${e}) `),n&&(t[s]=e)}}const i=e.pathRotation;return i&&(o=!1,r+=`rotate(${Du(i,Ql.pathRotation)}) `),r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;r.transformOrigin=`${e} ${t} ${n}`}}const Qu={offset:"stroke-dashoffset",array:"stroke-dasharray"},Hu={offset:"strokeDashoffset",array:"strokeDasharray"},qu=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Vu(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,c,u){if(zu(e,a,c),l)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:d,style:A}=e;d.transform&&(A.transform=d.transform,delete d.transform),(A.transform||d.transformOrigin)&&(A.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),A.transform&&(A.transformBox=u?.transformBox??"fill-box",delete d.transformBox);for(const e of qu)void 0!==d[e]&&(A[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==o&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Qu:Hu;e[i.offset]=""+-r,e[i.array]=`${t} ${n}`}(d,o,i,s,!1)}const Ku=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Wu=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Gu(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];for(s in o?.applyProjectionStyles(i,r),n)i.setProperty(s,n[s])}const $u=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Yu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Zu={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!kl.test(e))return e;e=parseFloat(e)}return`${Yu(e,t.target.x)}% ${Yu(e,t.target.y)}%`}},Xu=(e,t,n)=>e+(t-e)*n,Ju={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Pl.parse(e);if(o.length>5)return r;const i=Pl.createTransformer(e),s="number"!=typeof o[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=Xu(a,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=c),"number"==typeof o[3+s]&&(o[3+s]/=c),i(o)}},ed={borderRadius:{...Zu,applyTo:[...$u]},borderTopLeftRadius:Zu,borderTopRightRadius:Zu,borderBottomLeftRadius:Zu,borderBottomRightRadius:Zu,boxShadow:Ju};function td(e,{layout:t,layoutId:n}){return al.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!ed[e]||"opacity"===e)}function nd(e,t,n){const r=e.style,o=t?.style,i={};if(!r)return i;for(const t in r)(Kl(r[t])||o&&Kl(o[t])||td(t,e)||void 0!==n?.getValue(t)?.liveStyle)&&(i[t]=r[t]);return i}function rd(e,t,n){const r=nd(e,t,n);for(const n in e)(Kl(e[n])||Kl(t[n]))&&(r[-1!==sl.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class od extends Mu{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Vl}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(al.has(t)){const e=ql(t);return e&&e.default||0}return t=Ku.has(t)?t:Ou(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return rd(e,t,n)}build(e,t,n){Vu(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){!function(e,t,n,r){Gu(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Ku.has(n)?n:Ou(n),t.attrs[n])}(e,t,0,r)}mount(e){this.isSVGTag=Wu(e.tagName),super.mount(e)}}function id({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function sd(e){return void 0===e||1===e}function ad({scale:e,scaleX:t,scaleY:n}){return!sd(e)||!sd(t)||!sd(n)}function ld(e){return ad(e)||cd(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function cd(e){return ud(e.x)||ud(e.y)}function ud(e){return e&&"0%"!==e}function dd(e,t,n){return n+t*(e-n)}function Ad(e,t,n,r,o){return void 0!==o&&(e=dd(e,o,r)),dd(e,n,r)+t}function hd(e,t=0,n=1,r,o){e.min=Ad(e.min,t,n,r,o),e.max=Ad(e.max,t,n,r,o)}function pd(e,{x:t,y:n}){hd(e.x,t.translate,t.scale,t.originPoint),hd(e.y,n.translate,n.scale,n.originPoint)}const fd=.999999999999,md=1.0000000000001;function gd(e,t){e.min+=t,e.max+=t}function yd(e,t,n,r,o=.5){hd(e,t,n,Xu(e.min,e.max,o),r)}function vd(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function bd(e,t,n){const r=n??e;yd(e.x,vd(t.x,r.x),t.scaleX,t.scale,t.originX),yd(e.y,vd(t.y,r.y),t.scaleY,t.scale,t.originY)}function wd(e,t){return id(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class xd extends Mu{constructor(){super(...arguments),this.type="html",this.renderInstance=Gu}mount(e){Boolean(e.style),super.mount(e)}readValueFromInstance(e,t){if(al.has(t))return this.projection?.isProjecting?hc(t):((e,t)=>{const{transform:n="none"}=getComputedStyle(e);return pc(n,t)})(e,t);{const r=(n=e,window.getComputedStyle(n)),o=(Jl(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return wd(e,t)}build(e,t,n){zu(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return nd(e,t,n)}}const kd=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function _d(e){return"string"==typeof e&&!e.includes("-")&&!!(kd.indexOf(e)>-1||/[A-Z]/u.test(e))}const Cd=(e,t)=>t.isSVG??_d(e)?new od(t):new xd(t,{allowProjection:e!==ft.Fragment}),Bd=(0,ft.createContext)({strict:!1}),Sd=(0,ft.createContext)({});function jd(e){return Array.isArray(e)?e.join(" "):e}function Ed(e,t,n){for(const r in t)Kl(t[r])||td(r,n)||(e[r]=t[r])}function Nd(e,t){const n={},r=function(e,t){const n={};return Ed(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,ft.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return zu(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function Id(e,t,n,r){const o=(0,ft.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Vu(n,t,Wu(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};Ed(t,e.style,e),o.style={...t,...o.style}}return o}const Fd=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Td(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Fd.has(e)}let Ld=e=>!Td(e);try{"function"==typeof(Pd=require("@emotion/is-prop-valid").default)&&(Ld=e=>e.startsWith("on")?!Td(e):Pd(e))}catch{}var Pd;function Md(e,t,n,{latestValues:r},o,i=!1,s){const a=(s??_d(e)?Id:Nd)(t,r,o,e),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||Kl(e[o])||(Ld(o)||!0===n&&Td(o)||!t&&!Td(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(t,"string"==typeof e,i),c=e!==ft.Fragment?{...l,...a,ref:n}:{},{children:u}=t,d=(0,ft.useMemo)(()=>Kl(u)?u.get():u,[u]);return(0,ft.createElement)(e,{...c,children:d})}function Od(e){return Kl(e)?e.get():e}function Dd(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Od(i[e]);let{initial:s,animate:a}=e;const l=Cu(e),c=Bu(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const d=u?a:s;if(d&&"boolean"!=typeof d&&!wu(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=Iu(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];Array.isArray(t)&&(t=t[u?t.length-1:0]),null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const Ud=e=>(t,n)=>{const r=(0,ft.useContext)(Sd),o=(0,ft.useContext)(Wa),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Dd(n,r,o,e),renderState:t()}}(e,t,r,o);return n?i():Va(i)},Rd=Ud({scrapeMotionValuesFromProps:nd,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})}),zd=Ud({scrapeMotionValuesFromProps:rd,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}})}),Qd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Hd=!1;function qd(){return function(){if(Hd)return;const e={};for(const t in Qd)e[t]={isEnabled:e=>Qd[t].some(t=>!!e[t])};Lu(e),Hd=!0}(),Tu}const Vd=Symbol.for("motionComponentSymbol");function Kd(e,t,n){const r=(0,ft.useRef)(n);(0,ft.useInsertionEffect)(()=>{r.current=n});const o=(0,ft.useRef)(null);return(0,ft.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());const i=r.current;if("function"==typeof i)if(n){const e=i(n);"function"==typeof e&&(o.current=e)}else o.current?(o.current(),o.current=null):i(n);else i&&(i.current=n)},[t])}const Wd="data-"+Ou("framerAppearId"),Gd=(0,ft.createContext)({});function $d(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Yd(e,t,n,r,o,i){const{visualElement:s}=(0,ft.useContext)(Sd),a=(0,ft.useContext)(Bd),l=(0,ft.useContext)(Wa),c=(0,ft.useContext)(Ya),u=c.reducedMotion,d=c.skipAnimations,A=(0,ft.useRef)(null),h=(0,ft.useRef)(!1);r=r||a.renderer,!A.current&&r&&(A.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u,skipAnimations:d,isSVG:i}),h.current&&A.current&&(A.current.manuallyAnimateOnMount=!0));const p=A.current,f=(0,ft.useContext)(Gd);!p||p.projection||!o||"html"!==p.type&&"svg"!==p.type||function(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Zd(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||a&&$d(a),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}(A.current,n,o,f);const m=(0,ft.useRef)(!1);(0,ft.useInsertionEffect)(()=>{p&&m.current&&p.update(n,l)});const g=n[Wd],y=(0,ft.useRef)(Boolean(g)&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return Ka(()=>{h.current=!0,p&&(m.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),y.current&&p.animationState&&p.animationState.animateChanges())}),(0,ft.useEffect)(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),y.current=!1),p.enteringChildren=void 0)}),p}function Zd(e){if(e)return!1!==e.options.allowProjection?e.projection:Zd(e.parent)}function Xd(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&function(e){const t=qd();for(const n in e)t[n]={...t[n],...e[n]};Lu(t)}(r);const i=n?"svg"===n:_d(e),s=i?zd:Rd;function a(n,r){let a;const l={...(0,ft.useContext)(Ya),...n,layoutId:Jd(n)},{isStatic:c}=l,u=function(e){const{initial:t,animate:n}=function(e,t){if(Cu(e)){const{initial:t,animate:n}=e;return{initial:!1===t||xu(t)?t:void 0,animate:xu(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,ft.useContext)(Sd));return(0,ft.useMemo)(()=>({initial:t,animate:n}),[jd(t),jd(n)])}(n),d=s(n,c);if(!c&&"undefined"!=typeof window){(0,ft.useContext)(Bd).strict;const t=function(e){const t=qd(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}(l);a=t.MeasureLayout,u.visualElement=Yd(e,d,l,o,t.ProjectionNode,i)}return(0,yt.jsxs)(Sd.Provider,{value:u,children:[a&&u.visualElement?(0,yt.jsx)(a,{visualElement:u.visualElement,...l}):null,Md(e,n,Kd(d,u.visualElement,r),d,c,t,i)]})}a.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;const l=(0,ft.forwardRef)(a);return l[Vd]=e,l}function Jd({layoutId:e}){const t=(0,ft.useContext)(qa).id;return t&&void 0!==e?t+"-"+e:e}function eA(e,t){if("undefined"==typeof Proxy)return Xd;const n=new Map,r=(n,r)=>Xd(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(o,i)=>"create"===i?r:(n.has(i)||n.set(i,Xd(i,void 0,e,t)),n.get(i))})}class tA{constructor(e){this.isMounted=!1,this.node=e}update(){}}function nA(e,t,n){const r=e.getProps();return Iu(r,t,void 0!==n?n:r.custom,e)}function rA(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function oA(e,t){const n=e?.[t]??e?.default??e;return n!==e?rA(n,e):n}const iA=e=>Array.isArray(e);function sA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yu(n))}function aA(e){return iA(e)?e[e.length-1]||0:e}function lA(e,t){const n=e.getValue("willChange");if(function(e){return Boolean(Kl(e)&&e.add)}(n))return n.add(t);if(!n&&wc.WillChange){const n=new wc.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function cA(e){return e.props[Wd]}const uA=(...e)=>e.reduce((e,t)=>n=>t(e(n)));function dA(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function AA(e,t){return n=>n>0?t:e}const hA=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},pA=[vl,yl,Sl];function fA(e){const t=(n=e,pA.find(e=>e.test(n)));var n;if(Boolean(t),!Boolean(t))return!1;let r=t.parse(e);return t===Sl&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=dA(a,r,e+1/3),i=dA(a,r,e),s=dA(a,r,e-1/3)}else o=i=s=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*s),alpha:r}}(r)),r}const mA=(e,t)=>{const n=fA(e),r=fA(t);if(!n||!r)return AA(e,t);const o={...n};return e=>(o.red=hA(n.red,r.red,e),o.green=hA(n.green,r.green,e),o.blue=hA(n.blue,r.blue,e),o.alpha=Xu(n.alpha,r.alpha,e),yl.transform(o))},gA=new Set(["none","hidden"]);function yA(e,t){return n=>Xu(e,t,n)}function vA(e){return"number"==typeof e?yA:"string"==typeof e?tc(e)?AA:jl.test(e)?mA:xA:Array.isArray(e)?bA:"object"==typeof e?jl.test(e)?mA:wA:AA}function bA(e,t){const n=[...e],r=n.length,o=e.map((e,n)=>vA(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function wA(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=vA(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const xA=(e,t)=>{const n=Pl.createTransformer(t),r=Tl(e),o=Tl(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?gA.has(e)&&!o.values.length||gA.has(t)&&!r.values.length?function(e,t){return gA.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):uA(bA(function(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}(r,o),o.values),n):AA(e,t)};function kA(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?Xu(e,t,n):vA(e)(e,t)}const _A=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>_c.update(t,e),stop:()=>Cc(t),now:()=>Bc.isProcessing?Bc.timestamp:pu.now()}};function CA(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}const BA=.01,SA=2,jA=.005,EA=.5;function NA(e,t){return e*Math.sqrt(1-t*t)}const IA=["duration","bounce"],FA=["stiffness","damping","mass"];function TA(e,t){return t.some(t=>void 0!==e[t])}function LA(e=.3,t=.3){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:A,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!TA(e,FA)&&TA(e,IA))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,i=2*ll(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:1,stiffness:o,damping:i}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let o,i;zc(10);let s=1-t;s=ll(.05,1,s),e=ll(.01,10,Qc(e)),s<1?(o=t=>{const r=t*s,o=r*e;return.001-(r-n)/NA(t,s)*Math.exp(-o)},i=t=>{const r=t*s*e,i=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=NA(Math.pow(t,2),s);return(.001-o(t)>0?-1:1)*((i-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=zc(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-Qc(n.velocity||0)}),p=A||0,f=c/(2*Math.sqrt(l*u)),m=s-i,g=Qc(Math.sqrt(l/u)),y=Math.abs(m)<5;let v,b,w,x,k,_;if(r||(r=y?BA:SA),o||(o=y?jA:EA),f<1)w=NA(g,f),x=(p+f*g*m)/w,v=e=>{const t=Math.exp(-f*g*e);return s-t*(x*Math.sin(w*e)+m*Math.cos(w*e))},k=f*g*x+m*w,_=f*g*m-x*w,b=e=>Math.exp(-f*g*e)*(k*Math.sin(w*e)+_*Math.cos(w*e));else if(1===f){v=e=>s-Math.exp(-g*e)*(m+(p+g*m)*e);const e=p+g*m;b=t=>Math.exp(-g*t)*(g*e*t-p)}else{const e=g*Math.sqrt(f*f-1);v=t=>{const n=Math.exp(-f*g*t),r=Math.min(e*t,300);return s-n*((p+f*g*m)*Math.sinh(r)+e*m*Math.cosh(r))/e};const t=(p+f*g*m)/e,n=f*g*t-m*e,r=f*g*m-t*e;b=t=>{const o=Math.exp(-f*g*t),i=Math.min(e*t,300);return o*(n*Math.sinh(i)+r*Math.cosh(i))}}const C={calculatedDuration:h&&d||null,velocity:e=>zc(b(e)),next:e=>{if(!h&&f<1){const t=Math.exp(-f*g*e),n=Math.sin(w*e),i=Math.cos(w*e),l=s-t*(x*n+m*i),c=zc(t*(k*n+_*i));return a.done=Math.abs(c)<=r&&Math.abs(s-l)<=o,a.value=a.done?s:l,a}const t=v(e);if(h)a.done=e>=d;else{const n=zc(b(e));a.done=Math.abs(n)<=r&&Math.abs(s-t)<=o}return a.value=a.done?s:t,a},toString:()=>{const e=Math.min(CA(C),2e4),t=nu(t=>C.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return C}function PA(e,t,n){const r=Math.max(t-5,0);return fu(n-e(r),t-r)}function MA({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],A={done:!1,value:d},h=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let p=n*t;const f=d+p,m=void 0===s?f:s(f);m!==f&&(p=m-d);const g=e=>-p*Math.exp(-e/r),y=e=>m+g(e),v=e=>{const t=g(e),n=y(e);A.done=Math.abs(t)<=c,A.value=A.done?m:n};let b,w;const x=e=>{var t;t=A.value,(void 0!==a&&t<a||void 0!==l&&t>l)&&(b=e,w=LA({keyframes:[A.value,h(A.value)],velocity:PA(y,e,A.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==b||(t=!0,v(e),x(e)),void 0!==b&&e>=b?w.next(e-b):(!t&&v(e),A)}}}LA.applyToOptions=e=>{const t=function(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(CA(r),2e4);return{type:"keyframes",ease:e=>r.next(o*e).value/t,duration:Qc(o)}}(e,100,LA);return e.ease=t.ease,e.duration=zc(t.duration),e.type="keyframes",e};const OA=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function DA(e,t,n,r){if(e===t&&n===r)return bc;return o=>0===o||1===o?o:OA(function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=OA(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>1e-7&&++a<12);return s}(o,0,1,e,n),t,r)}const UA=DA(.42,0,1,1),RA=DA(0,0,.58,1),zA=DA(.42,0,.58,1),QA=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,HA=e=>t=>1-e(1-t),qA=DA(.33,1.53,.69,.99),VA=HA(qA),KA=QA(VA),WA=e=>e>=1?1:(e*=2)<1?.5*VA(e):.5*(2-Math.pow(2,-10*(e-1))),GA=e=>1-Math.sin(Math.acos(e)),$A=HA(GA),YA=QA(GA),ZA={linear:bc,easeIn:UA,easeInOut:zA,easeOut:RA,circIn:GA,circInOut:YA,circOut:$A,backIn:VA,backInOut:KA,backOut:qA,anticipate:WA},XA=e=>{if(eu(e)){e.length;const[t,n,r,o]=e;return DA(t,n,r,o)}return"string"==typeof e?ZA[e]:e},JA=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};function eh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(XA):XA(r),i={done:!1,value:t[0]},s=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=JA(0,t,r);e.push(Xu(n,1,o))}}(t,e.length-1),t}(t),e),a=function(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(t.length,1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const r=[],o=n||wc.mix||kA,i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||bc:t;i=uA(e,i)}r.push(i)}return r}(t,r,o),l=a.length,c=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const o=JA(e[r],e[r+1],n);return a[r](o)};return n?t=>c(ll(e[0],e[i-1],t)):c}(s,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||zA).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}const th={decay:MA,inertia:MA,tween:eh,keyframes:eh,spring:LA};function nh(e){"string"==typeof e.type&&(e.type=th[e.type])}const rh=e=>e/100;class oh extends Jc{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:e}=this.options;e&&e.updatedAt!==pu.now()&&this.tick(pu.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:e}=this;nh(e);const{type:t=eh,repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=e;let{keyframes:s}=e;const a=t||eh;a!==eh&&"number"!=typeof s[0]&&(this.mixKeyframes=uA(rh,kA(s[0],s[1])),s=[0,100]);const l=a({...e,keyframes:s});"mirror"===o&&(this.mirroredGenerator=a({...e,keyframes:[...s].reverse(),velocity:-i})),null===l.calculatedDuration&&(l.calculatedDuration=CA(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:n,totalDuration:r,mixKeyframes:o,mirroredGenerator:i,resolvedDuration:s,calculatedDuration:a}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:c,repeat:u,repeatType:d,repeatDelay:A,type:h,onUpdate:p,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const m=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?m<0:m>r;this.currentTime=Math.max(m,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let y,v=this.currentTime,b=n;if(u){const e=Math.min(this.currentTime,r)/s;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,u+1),Boolean(t%2)&&("reverse"===d?(n=1-n,A&&(n-=A/s)):"mirror"===d&&(b=i)),v=ll(0,1,n)*s}g?(this.delayState.value=c[0],y=this.delayState):y=b.next(v),o&&!g&&(y.value=o(y.value));let{done:w}=y;g||null===a||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return x&&h!==MA&&(y.value=Xc(c,this.options,f,this.speed)),p&&p(y.value),x&&this.finish(),y}then(e,t){return this.finished.then(e,t)}get duration(){return Qc(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Qc(e)}get time(){return Qc(this.currentTime)}set time(e){e=zc(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;return e<=0?this.options.velocity||0:this.generator.velocity?this.generator.velocity(e):PA(e=>this.generator.next(e).value,e,this.generator.next(e).value)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(pu.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Qc(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=_A,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();const n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(pu.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}const ih={anticipate:WA,backInOut:KA,circInOut:YA};class sh extends lu{constructor(e){var t;"string"==typeof(t=e).ease&&function(e){return e in ih}(t.ease)&&(t.ease=ih[t.ease]),nh(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:n,onComplete:r,element:o,...i}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);const s=new oh({...i,autoplay:!1}),a=Math.max(10,pu.now()-this.startTime),l=ll(0,10,a-10),c=s.sample(a).value,{name:u}=this.options;o&&u&&Kc(o,u,c),t.setWithVelocity(s.sample(Math.max(0,a-l)).value,c,l),s.stop()}}const ah=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!Pl.test(e)&&"0"!==e||e.startsWith("url(")));function lh(e){e.duration=0,e.type="keyframes"}const ch=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,uh=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),dh=Wc(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class Ah extends Jc{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",keyframes:s,name:a,motionValue:l,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=pu.now();const d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,name:a,motionValue:l,element:c,...u},A=c?.KeyframeResolver||Lc;this.keyframeResolver=new A(s,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),a,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;const{name:o,type:i,velocity:s,delay:a,isHandoff:l,onUpdate:c}=n;this.resolvedAt=pu.now();let u=!0;(function(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],s=ah(o,t),a=ah(i,t);return!(!s||!a)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||au(n))&&r)})(e,o,i,s)||(u=!1,!wc.instantAnimations&&a||c?.(Xc(e,n,t)),e[0]=e[e.length-1],lh(n),n.repeat=0);const d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},A=u&&!l&&function(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s,keyframes:a}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement||l instanceof SVGElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return dh()&&n&&(cu.has(n)||uh.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&ch.test(e[t]))return!0;return!1}(a))&&("transform"!==n||!u)&&!c&&!r&&"mirror"!==o&&0!==i&&"inertia"!==s}(d),h=d.motionValue?.owner?.current;let p;if(A)try{p=new sh({...d,element:h})}catch{p=new oh(d)}else p=new oh(d);p.finished.then(()=>{this.notifyFinished()}).catch(bc),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ic=!0,Tc(),Fc(),Ic=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const hh={type:"spring",stiffness:500,damping:25,restSpeed:10},ph={type:"keyframes",duration:.8},fh={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},mh=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),gh=(e,t,n,r={},o,i)=>s=>{const a=oA(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c-=zc(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function(e){for(const t in e)if(!mh.has(t))return!0;return!1})(a)||Object.assign(u,((e,{keyframes:t})=>t.length>2?ph:al.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:hh:fh)(e,u)),u.duration&&(u.duration=zc(u.duration)),u.repeatDelay&&(u.repeatDelay=zc(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(lh(u),0===u.delay&&(d=!0)),(wc.instantAnimations||wc.skipAnimations||o?.shouldSkipAnimations||a.skipAnimations)&&(d=!0,lh(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&void 0!==t.get()){const e=Xc(u.keyframes,a);if(void 0!==e)return void _c.update(()=>{u.onUpdate(e),u.onComplete()})}return a.isSync?new oh(u):new Ah(u)};function yh({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function vh(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i,transitionEnd:s,...a}=t;const l=e.getDefaultTransition();i=i?rA(i,l):l;const c=i?.reduceMotion,u=i?.skipAnimations;r&&(i=r);const d=[],A=o&&e.animationState&&e.animationState.getState()[o],h=i?.path;h&&h.animateVisualElement(e,a,i,n,d);for(const t in a){const r=e.getValue(t,e.latestValues[t]??null),o=a[t];if(void 0===o||A&&yh(A,t))continue;const s={delay:n,...oA(i||{},t)};u&&(s.skipAnimations=!0);const l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(o)&&o===l&&!s.velocity){_c.update(()=>r.set(o));continue}let h=!1;if(window.MotionHandoffAnimation){const n=cA(e);if(n){const e=window.MotionHandoffAnimation(n,t,_c);null!==e&&(s.startTime=e,h=!0)}}lA(e,t);const p=c??e.shouldReduceMotion;r.start(gh(t,r,o,p&&Wl.has(t)?{type:!1}:s,e,h));const f=r.animation;f&&d.push(f)}if(s){const t=()=>_c.update(()=>{s&&function(e,t){const n=nA(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)sA(e,t,aA(i[t]))}(e,s)});d.length?Promise.all(d).then(t):t()}return d}function bh(e,t,n,r=0,o=1){const i=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),s=e.size,a=(s-1)*r;return"function"==typeof n?n(i,s):1===o?i*r:a-i*r}function wh(e,t,n={}){const r=nA(e,t,"exit"===n.type?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(vh(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(wh(l,t,{...s,delay:n+("function"==typeof r?0:r)+bh(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,r,i,s,a,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[e,t]="beforeChildren"===a?[i,s]:[s,i];return e().then(()=>t())}return Promise.all([i(),s(n.delay)])}const xh=_u.length;function kh(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&kh(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<xh;n++){const r=_u[n],o=e.props[r];(xu(o)||!1===o)&&(t[r]=o)}return t}function _h(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Ch=[...ku].reverse(),Bh=ku.length;function Sh(e){let t=function(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map(t=>wh(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=wh(e,t,n);else{const o="function"==typeof t?nA(e,t,n.custom):t;r=Promise.all(vh(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}(e,t,n)))}(e),n=Nh(),r=!0,o=!1;const i=t=>(n,r)=>{const o=nA(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(o){const{transition:e,transitionEnd:t,...r}=o;n={...n,...r,...t}}return n};function s(s){const{props:a}=e,l=kh(e.parent)||{},c=[],u=new Set;let d={},A=1/0;for(let t=0;t<Bh;t++){const h=Ch[t],p=n[h],f=void 0!==a[h]?a[h]:l[h],m=xu(f),g=h===s?p.isActive:null;!1===g&&(A=t);let y=f===l[h]&&f!==a[h]&&m;if(y&&(r||o)&&e.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...d},!p.isActive&&null===g||!f&&!p.prevProp||wu(f)||"boolean"==typeof f)continue;if("exit"===h&&p.isActive&&!0!==g){p.prevResolvedValues&&(d={...d,...p.prevResolvedValues});continue}const v=jh(p.prevProp,f);let b=v||h===s&&p.isActive&&!y&&m||t>A&&m,w=!1;const x=Array.isArray(f)?f:[f];let k=x.reduce(i(h),{});!1===g&&(k={});const{prevResolvedValues:_={}}=p,C={..._,...k},B=t=>{b=!0,u.has(t)&&(w=!0,u.delete(t)),p.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in C){const t=k[e],n=_[e];if(d.hasOwnProperty(e))continue;let r=!1;r=iA(t)&&iA(n)?!_h(t,n)||v:t!==n,r?null!=t?B(e):u.add(e):void 0!==t&&u.has(e)?B(e):p.protectedKeys[e]=!0}p.prevProp=f,p.prevResolvedValues=k,p.isActive&&(d={...d,...k}),(r||o)&&e.blockInitialAnimation&&(b=!1);const S=y&&v;b&&(!S||w)&&c.push(...x.map(t=>{const n={type:h};if("string"==typeof t&&(r||o)&&!S&&e.manuallyAnimateOnMount&&e.parent){const{parent:r}=e,o=nA(r,t);if(r.enteringChildren&&o){const{delayChildren:t}=o.transition||{};n.delay=bh(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){const t={};if("boolean"!=typeof a.initial){const n=nA(e,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let h=Boolean(c.length);return!r||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(h=!1),r=!1,o=!1,h?t(c):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;const o=s(t);for(const e in n)n[e].protectedKeys={};return o},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Nh(),o=!0}}}function jh(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!_h(t,e)}function Eh(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Nh(){return{animate:Eh(!0),whileInView:Eh(),whileHover:Eh(),whileTap:Eh(),whileDrag:Eh(),whileFocus:Eh(),exit:Eh()}}let Ih=0;const Fh={animation:{Feature:class extends tA{constructor(e){super(e),e.animationState||(e.animationState=Sh(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();wu(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends tA{constructor(){super(...arguments),this.id=Ih++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){const{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){const n=nA(this.node,e,t);if(n){const{transition:e,transitionEnd:t,...r}=n;for(const e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);return void(this.isExitComplete=!1)}const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}},Th={x:!1,y:!1};function Lh(){return Th.x||Th.y}function Ph(e){return[e("x"),e("y")]}function Mh(e){return e.max-e.min}function Oh(e,t,n,r=.5){e.origin=r,e.originPoint=Xu(t.min,t.max,e.origin),e.scale=Mh(n)/Mh(t),e.translate=Xu(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function Dh(e,t,n,r){Oh(e.x,t.x,n.x,r?r.originX:void 0),Oh(e.y,t.y,n.y,r?r.originY:void 0)}function Uh(e,t,n,r=0){const o=r?Xu(n.min,n.max,r):n.min;e.min=o+t.min,e.max=e.min+Mh(t)}function Rh(e,t,n,r=0){const o=r?Xu(n.min,n.max,r):n.min;e.min=t.min-o,e.max=e.min+Mh(t)}function zh(e,t,n,r){Rh(e.x,t.x,n.x,r?.x),Rh(e.y,t.y,n.y,r?.y)}const Qh=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),Hh=new Set(["INPUT","SELECT","TEXTAREA"]);function qh(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function Vh(e){return Ga(e)&&"ownerSVGElement"in e}function Kh(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(e=>null!=e)}const Wh=new WeakMap;let Gh;const $h=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:Vh(r)&&"getBBox"in r?r.getBBox()[t]:r[n],Yh=$h("inline","width","offsetWidth"),Zh=$h("block","height","offsetHeight");function Xh({target:e,borderBoxSize:t}){Wh.get(e)?.forEach(n=>{n(e,{get width(){return Yh(e,t)},get height(){return Zh(e,t)}})})}function Jh(e){e.forEach(Xh)}const ep=new Set;let tp;function np(e,t){return"function"==typeof e?(n=e,ep.add(n),tp||(tp=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ep.forEach(t=>t(e))},window.addEventListener("resize",tp)),()=>{ep.delete(n),ep.size||"function"!=typeof tp||(window.removeEventListener("resize",tp),tp=void 0)}):function(e,t){Gh||"undefined"!=typeof ResizeObserver&&(Gh=new ResizeObserver(Jh));const n=Kh(e);return n.forEach(e=>{let n=Wh.get(e);n||(n=new Set,Wh.set(e,n)),n.add(t),Gh?.observe(e)}),()=>{n.forEach(e=>{const n=Wh.get(e);n?.delete(t),n?.size||Gh?.unobserve(e)})}}(e,t);var n}const rp=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function op(e){return{point:{x:e.pageX,y:e.pageY}}}function ip(e,t,n,r){return qh(e,t,(e=>t=>rp(t)&&e(t,op(t)))(n),r)}const sp=({current:e})=>e?e.ownerDocument.defaultView:null,ap=(e,t)=>Math.abs(e-t),lp=new Set(["auto","scroll"]);class cp{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:o=!1,distanceThreshold:i=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=up(this.lastRawMoveEventInfo,this.transformPagePoint));const e=Ap(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=ap(e.x,t.x),r=ap(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Bc;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=up(t,this.transformPagePoint),_c.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(!this.dragSnapToOrigin&&this.startEvent||o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Ap("pointercancel"===e.type?this.lastMoveEventInfo:up(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!rp(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=i,this.contextWindow=r||window;const a=up(op(e),this.transformPagePoint),{point:l}=a,{timestamp:c}=Bc;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=t;u&&u(e,Ap(a,this.history));const d={passive:!0,capture:!0};this.removeListeners=uA(ip(this.contextWindow,"pointermove",this.handlePointerMove,d),ip(this.contextWindow,"pointerup",this.handlePointerUp,d),ip(this.contextWindow,"pointercancel",this.handlePointerUp,d)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){const e=getComputedStyle(t);(lp.has(e.overflowX)||lp.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const t=this.scrollPositions.get(e);if(!t)return;const n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o=r.x-t.x,i=r.y-t.y;0===o&&0===i||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o,this.lastMoveEventInfo.point.y+=i):this.history.length>0&&(this.history[0].x-=o,this.history[0].y-=i),this.scrollPositions.set(e,r),_c.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Cc(this.updatePoint)}}function up(e,t){return t?{point:t(e.point)}:e}function dp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ap({point:e},t){return{point:e,delta:dp(e,pp(t)),offset:dp(e,hp(t)),velocity:fp(t,.1)}}function hp(e){return e[0]}function pp(e){return e[e.length-1]}function fp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=pp(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>zc(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>2*zc(t)&&(r=e[1]);const i=Qc(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function mp(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function gp(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function yp(e,t,n){return{min:vp(e,t),max:vp(e,n)}}function vp(e,t){return"number"==typeof e?e:e[t]||0}const bp=new WeakMap;class xp{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:o}=this.getProps();this.panSession=new cp(e,{onSessionStart:e=>{t&&this.snapToCursor(op(e).point),this.stopAnimation()},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=n)||"y"===i?Th[i]?null:(Th[i]=!0,()=>{Th[i]=!1}):Th.x||Th.y?null:(Th.x=Th.y=!0,()=>{Th.x=Th.y=!1}),!this.openDragLock))return;var i;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ph(e=>{let t=this.getAxisMotionValue(e).get()||0;if(xl.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=Mh(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),o&&_c.update(()=>o(e,t),!1,!0),lA(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),i&&_c.update(()=>i(e,t),!1,!0)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{const{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,distanceThreshold:n,contextWindow:sp(this.visualElement),element:this.visualElement.current})}stop(e,t){const n=e||this.latestPointerEvent,r=t||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!r||!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&_c.postRender(()=>s(n,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!_p(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?Xu(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Xu(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&$d(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:mp(e.x,n,o),y:mp(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:yp(e,"left","right"),y:yp(e,"top","bottom")}}(t),r!==this.constraints&&!$d(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Ph(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!$d(e))return!1;const n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());const o=function(e,t,n){const r=wd(e,n),{scroll:o}=t;return o&&(gd(r.x,o.offset.x),gd(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:gp(e.x,t.x),y:gp(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=id(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Ph(s=>{if(!_p(s,t,this.currentDirection))return;let l=a&&a[s]||{};!0!==i&&i!==s||(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,d)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return lA(this.visualElement,e),n.start(gh(e,n,0,t,this.visualElement,!1))}stopAnimation(){Ph(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Ph(t=>{const{drag:n}=this.getProps();if(!_p(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t],s=o.get()||0;o.set(e[t]-Xu(n,i,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!$d(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ph(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=Mh(e),o=Mh(t);return o>r?n=JA(t.min,t.max-r,e.min):r>o&&(n=JA(e.min,e.max-o,t.min)),ll(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Ph(t=>{if(!_p(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Xu(o,i,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;bp.set(this.visualElement,this);const e=this.visualElement.current,t=ip(e,"pointerdown",t=>{const{drag:n,dragListener:r=!0}=this.getProps(),o=t.target,i=o!==e&&function(e){return Hh.has(e.tagName)||!0===e.isContentEditable}(o);n&&r&&!i&&this.start(t)});let n;const r=()=>{const{dragConstraints:t}=this.getProps();$d(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||(n=function(e,t,n){const r=np(e,kp(n)),o=np(t,kp(n));return()=>{r(),o()}}(e,t.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),_c.read(r);const s=qh(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Ph(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),t(),i(),a&&a(),n&&n()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function kp(e){let t=!0;return()=>{t?t=!1:e()}}function _p(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Cp=e=>(t,n)=>{e&&_c.update(()=>e(t,n),!1,!0)},Bp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Sp=!1;class jp extends ft.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),Sp&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Bp.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,{projection:i}=n;return i?(i.isPresent=o,e.layoutDependency!==t&&i.setOptions({...i.options,layoutDependency:t}),Sp=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==o?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||_c.postRender(()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),uu.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Sp=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ep(e){const[t,n]=nl(),r=(0,ft.useContext)(qa);return(0,yt.jsx)(jp,{...e,layoutGroup:r,switchLayoutGroup:(0,ft.useContext)(Gd),isPresent:t,safeToRemove:n})}const Np={value:null,addProjectionMetrics:null};const Ip=$u.length,Fp=e=>"string"==typeof e?parseFloat(e):e,Tp=e=>"number"==typeof e||kl.test(e);function Lp(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Pp=Op(0,.5,$A),Mp=Op(.5,.95,bc);function Op(e,t,n){return r=>r<e?0:r>t?1:n(JA(e,t,r))}function Dp(e,t){e.min=t.min,e.max=t.max}function Up(e,t){Dp(e.x,t.x),Dp(e.y,t.y)}function Rp(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function zp(e,t,n,r,o){return e=dd(e-=t,1/n,r),void 0!==o&&(e=dd(e,1/o,r)),e}function Qp(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){if(xl.test(t)&&(t=parseFloat(t),t=Xu(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=Xu(i.min,i.max,r);e===i&&(a-=t),e.min=zp(e.min,t,n,a,o),e.max=zp(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const Hp=["x","scaleX","originX"],qp=["y","scaleY","originY"];function Vp(e,t,n,r){Qp(e.x,t,Hp,n?n.x:void 0,r?r.x:void 0),Qp(e.y,t,qp,n?n.y:void 0,r?r.y:void 0)}function Kp(e){return 0===e.translate&&1===e.scale}function Wp(e){return Kp(e.x)&&Kp(e.y)}function Gp(e,t){return e.min===t.min&&e.max===t.max}function $p(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Yp(e,t){return $p(e.x,t.x)&&$p(e.y,t.y)}function Zp(e){return Mh(e.x)/Mh(e.y)}function Xp(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Jp{constructor(){this.members=[]}add(e){Hc(this.members,e);for(let t=this.members.length-1;t>=0;t--){const n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;const r=n.instance;r&&!1!==r.isConnected||n.snapshot||(qc(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(qc(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent&&!1!==e.instance?.isConnected)return this.promote(e),!0}return!1}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();const{layoutDependency:r}=n.options,{layoutDependency:o}=e.options;void 0!==r&&r===o||(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const ef=(e,t)=>e.depth-t.depth;class tf{constructor(){this.children=[],this.isDirty=!1}add(e){Hc(this.children,e),this.isDirty=!0}remove(e){qc(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ef),this.isDirty=!1,this.children.forEach(e)}}const nf={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},rf=["","X","Y","Z"];let of=0;function sf(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function af(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=cA(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",_c,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&af(r)}function lf({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=t?.()){this.id=of++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Np.value&&(nf.nodes=nf.calculatedTargetDeltas=nf.calculatedProjections=0),this.nodes.forEach(df),this.nodes.forEach(bf),this.nodes.forEach(wf),this.nodes.forEach(Af),Np.addProjectionMetrics&&Np.addProjectionMetrics(nf)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new tf)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Vc),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;var n;this.isSVG=Vh(t)&&!(Vh(n=t)&&"svg"===n.tagName),this.instance=t;const{layoutId:r,layout:o,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(o||r)&&(this.isLayoutDirty=!0),e){let n,r=0;const o=()=>this.root.updateBlockedByResize=!1;_c.read(()=>{r=window.innerWidth}),e(t,()=>{const e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=pu.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Cc(r),e(i-t))};return _c.setup(r,!0),()=>Cc(r)}(o,250),Bp.hasAnimatedSinceResize&&(Bp.hasAnimatedSinceResize=!1,this.nodes.forEach(vf)))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||i.getDefaultTransition()||Sf,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=i.getProps(),l=!this.targetLayout||!Yp(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const t={...oA(o,"layout"),onPlay:s,onComplete:a};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c,t.path)}else t||vf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Cc(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(xf),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&af(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,"string"!=typeof t.latestValues.x&&"string"!=typeof t.latestValues.y||(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const e=this.updateBlockedByResize;return this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(ff),void this.nodes.forEach(pf)}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(mf);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(gf),this.nodes.forEach(yf),this.nodes.forEach(cf),this.nodes.forEach(uf)):this.nodes.forEach(mf),this.clearAllSnapshots();const e=pu.now();Bc.delta=ll(0,1e3/60,e-Bc.timestamp),Bc.timestamp=e,Bc.isProcessing=!0,Sc.update.process(Bc),Sc.preRender.process(Bc),Sc.render.process(Bc),Bc.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,uu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hf),this.sharedNodes.forEach(kf)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,_c.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){_c.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||Mh(this.snapshot.measuredBox.x)||Mh(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}}),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Wp(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||ld(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Nf((r=n).x),Nf(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox();if(!this.scroll?.wasRoot&&!this.path.some(Ff)){const{scroll:e}=this.root;e&&(gd(t.x,e.offset.x),gd(t.y,e.offset.y))}return t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};if(Up(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;r!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&Up(t,e),gd(t.x,o.offset.x),gd(t.y,o.offset.y))}return t}applyTransform(e,t=!1,n){const r=n||{x:{min:0,max:0},y:{min:0,max:0}};Up(r,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(gd(r.x,-n.scroll.offset.x),gd(r.y,-n.scroll.offset.y)),ld(n.latestValues)&&bd(r,n.latestValues,n.layout?.layoutBox)}return ld(this.latestValues)&&bd(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Up(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!ld(n.latestValues))continue;let r;n.instance&&(ad(n.latestValues)&&n.updateSnapshot(),r=Vl(),Up(r,n.measurePageBox())),Vp(t,n.latestValues,n.snapshot?.layoutBox,r)}return ld(this.latestValues)&&Vp(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Bc.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){const t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:r,layoutId:o}=this.options;if(!this.layout||!r&&!o)return;this.resolvedRelativeTargetAt=Bc.timestamp;const i=this.getClosestProjectingParent();var s,a,l,c;i&&this.linkedParentVersion!==i.layoutVersion&&!i.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&i&&i.layout?this.createRelativeTarget(i,this.layout.layoutBox,i.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,c=this.options.layoutAnchor||void 0,Uh(s.x,a.x,l.x,c?.x),Uh(s.y,a.y,l.y,c?.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.applyTransform(this.layout.layoutBox,!1,this.target):Up(this.target,this.layout.layoutBox),pd(this.target,this.targetDelta)):Up(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&i&&Boolean(i.resumingFrom)===Boolean(this.resumingFrom)&&!i.options.layoutScroll&&i.target&&1!==this.animationProgress?this.createRelativeTarget(i,this.target,i.target):this.relativeParent=this.relativeTarget=void 0),Np.value&&nf.calculatedTargetDeltas++)}getClosestProjectingParent(){if(this.parent&&!ad(this.parent.latestValues)&&!cd(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},zh(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Up(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const e=this.getLead(),t=Boolean(this.resumingFrom)||this!==e;let n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Bc.timestamp&&(n=!1),n)return;const{layout:r,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!o)return;Up(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,s;t.x=t.y=1;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(gd(e.x,-i.scroll.offset.x),gd(e.y,-i.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,pd(e,s)),r&&ld(i.latestValues)&&bd(e,i.latestValues,i.layout?.layoutBox))}t.x<md&&t.x>fd&&(t.x=1),t.y<md&&t.y>fd&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,t),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:a}=e;a?(this.projectionDelta&&this.prevProjectionDelta?(Rp(this.prevProjectionDelta.x,this.projectionDelta.x),Rp(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Dh(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===i&&this.treeScale.y===s&&Xp(this.projectionDelta.x,this.prevProjectionDelta.x)&&Xp(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),Np.value&&nf.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1,n){const r=this.snapshot,o=r?r.latestValues:{},i={...this.latestValues},s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a={x:{min:0,max:0},y:{min:0,max:0}},l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),u=!c||c.members.length<=1,d=Boolean(l&&!u&&!0===this.options.crossfade&&!this.path.some(Bf));let A;this.animationProgress=0;const h=n?.interpolateProjection(e);this.mixTargetDelta=t=>{const n=t/1e3,r=h?.(n);r?(s.x.translate=r.x,s.x.scale=Xu(e.x.scale,1,n),s.x.origin=e.x.origin,s.x.originPoint=e.x.originPoint,s.y.translate=r.y,s.y.scale=Xu(e.y.scale,1,n),s.y.origin=e.y.origin,s.y.originPoint=e.y.originPoint):(_f(s.x,e.x,n),_f(s.y,e.y,n)),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zh(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),function(e,t,n,r){Cf(e.x,t.x,n.x,r),Cf(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),A&&function(e,t){return Gp(e.x,t.x)&&Gp(e.y,t.y)}(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A={x:{min:0,max:0},y:{min:0,max:0}}),Up(A,this.relativeTarget)),l&&(this.animationValues=i,function(e,t,n,r,o,i){o?(e.opacity=Xu(0,n.opacity??1,Pp(r)),e.opacityExit=Xu(t.opacity??1,0,Mp(r))):i&&(e.opacity=Xu(t.opacity??1,n.opacity??1,r));for(let o=0;o<Ip;o++){const i=$u[o];let s=Lp(t,i),a=Lp(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||Tp(s)===Tp(a)?(e[i]=Math.max(Xu(Fp(s),Fp(a),r),0),(xl.test(a)||xl.test(s))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=Xu(t.rotate||0,n.rotate||0,r))}(i,o,this.latestValues,n,d,u)),r&&void 0!==r.rotate&&(this.animationValues||(this.animationValues=i),this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Cc(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_c.update(()=>{Bp.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=yu(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(e,t,n){const r=Kl(e)?e:yu(e);return r.start(gh("",r,[0,1e3],n)),r.animation}(this.motionValue,0,{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&If(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Mh(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Mh(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Up(t,n),bd(t,o),Dh(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Jp),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){const{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&sf("z",e,r,this.animationValues);for(let t=0;t<rf.length;t++)sf(`rotate${rf[t]}`,e,r,this.animationValues),sf(`skew${rf[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(e.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=Od(t?.pointerEvents)||"",void(e.transform=n?n(this.latestValues,""):"none");const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target)return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Od(t?.pointerEvents)||""),void(this.hasProjected&&!ld(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1));e.visibility="";const o=r.animationValues||r.latestValues;this.applyTransformsToTarget();let i=function(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,pathRotation:o,rotateX:i,rotateY:s,skewX:a,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotate(${o}deg) `),i&&(r+=`rotateX(${i}deg) `),s&&(r+=`rotateY(${s}deg) `),a&&(r+=`skewX(${a}deg) `),l&&(r+=`skewY(${l}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return 1===a&&1===l||(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,o);n&&(i=n(o,i)),e.transform=i;const{x:s,y:a}=this.projectionDelta;e.transformOrigin=`${100*s.origin}% ${100*a.origin}% 0`,r.animationValues?e.opacity=r===this?o.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:e.opacity=r===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0;for(const t in ed){if(void 0===o[t])continue;const{correct:n,applyTo:s,isCSSVariable:a}=ed[t],l="none"===i?o[t]:n(o[t],r);if(s){const t=s.length;for(let n=0;n<t;n++)e[s[n]]=l}else a?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?Od(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(pf),this.root.sharedNodes.clear()}}}function cf(e){e.updateLayout()}function uf(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;if("size"===o)Ph(e=>{const r=i?t.measuredBox[e]:t.layoutBox[e],o=Mh(r);r.min=n[e].min,r.max=r.min+o});else if("x"===o||"y"===o){const e="x"===o?"y":"x";Dp(i?t.measuredBox[e]:t.layoutBox[e],n[e])}else If(o,t.layoutBox,n)&&Ph(r=>{const o=i?t.measuredBox[r]:t.layoutBox[r],s=Mh(n[r]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Dh(s,n,t.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?Dh(a,e.applyTransform(r,!0),t.measuredBox):Dh(a,n,t.layoutBox);const l=!Wp(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s=e.options.layoutAnchor||void 0,a={x:{min:0,max:0},y:{min:0,max:0}};zh(a,t.layoutBox,o.layoutBox,s);const l={x:{min:0,max:0},y:{min:0,max:0}};zh(l,n,i.layoutBox,s),Yp(a,l)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function df(e){Np.value&&nf.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Af(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hf(e){e.clearSnapshot()}function pf(e){e.clearMeasurements()}function ff(e){e.isLayoutDirty=!0,e.updateLayout()}function mf(e){e.isLayoutDirty=!1}function gf(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function yf(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function vf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function bf(e){e.resolveTargetDelta()}function wf(e){e.calcProjection()}function xf(e){e.resetSkewAndRotation()}function kf(e){e.removeLeadSnapshot()}function _f(e,t,n){e.translate=Xu(t.translate,0,n),e.scale=Xu(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Cf(e,t,n,r){e.min=Xu(t.min,n.min,r),e.max=Xu(t.max,n.max,r)}function Bf(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Sf={duration:.45,ease:[.4,0,.1,1]},jf=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ef=jf("applewebkit/")&&!jf("chrome/")?Math.round:bc;function Nf(e){e.min=Ef(e.min),e.max=Ef(e.max)}function If(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t){return Math.abs(e-t)<=.2}(Zp(t),Zp(n))}function Ff(e){return e!==e.root&&e.scroll?.wasRoot}const Tf=lf({attachResizeListener:(e,t)=>qh(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Lf={current:void 0},Pf=lf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Lf.current){const e=new Tf({});e.mount(window),e.setOptions({layoutScroll:!0}),Lf.current=e}return Lf.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Mf={pan:{Feature:class extends tA{constructor(){super(...arguments),this.removePointerDownListener=bc}onPointerDown(e){this.session=new cp(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sp(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Cp(e),onStart:Cp(t),onMove:Cp(n),onEnd:(e,t)=>{delete this.session,r&&_c.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=ip(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends tA{constructor(e){super(e),this.removeGroupControls=bc,this.removeListeners=bc,this.controls=new xp(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bc}update(){const{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:Pf,MeasureLayout:Ep}};function Of(e,t){const n=Kh(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Df(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&_c.postRender(()=>o(t,op(t)))}const Uf=(e,t)=>!!t&&(e===t||Uf(e,t.parentElement)),Rf=new WeakSet;function zf(e){return t=>{"Enter"===t.key&&e(t)}}function Qf(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function Hf(e){return rp(e)&&!Lh()}const qf=new WeakSet;function Vf(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&_c.postRender(()=>o(t,op(t)))}const Kf=new WeakMap,Wf=new WeakMap,Gf=e=>{const t=Kf.get(e.target);t&&t(e)},$f=e=>{e.forEach(Gf)};const Yf={some:0,all:1},Zf={inView:{Feature:class extends tA{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Yf[r]};this.stopObserver=function(e,t,n){const r=function({root:e,...t}){const n=e||document;Wf.has(n)||Wf.set(n,{});const r=Wf.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver($f,{root:e,...t})),r[o]}(t);return Kf.set(e,n),r.observe(e),()=>{Kf.delete(e),r.unobserve(e)}}(this.node.current,i,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends tA{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){const[r,o,i]=Of(e,n),s=e=>{const r=e.currentTarget;if(!Hf(e))return;if(qf.has(e))return;Rf.add(r),n.stopPropagation&&qf.add(e);const i=t(r,e),s={...o,capture:!0},a=(e,t)=>{window.removeEventListener("pointerup",l,s),window.removeEventListener("pointercancel",c,s),Rf.has(r)&&Rf.delete(r),Hf(e)&&"function"==typeof i&&i(e,{success:t})},l=e=>{a(e,r===window||r===document||n.useGlobalTarget||Uf(r,e.target))},c=e=>{a(e,!1)};window.addEventListener("pointerup",l,s),window.addEventListener("pointercancel",c,s)};return r.forEach(e=>{var t;(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,o),$a(e)&&(e.addEventListener("focus",e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=zf(()=>{if(Rf.has(n))return;Qf(n,"down");const e=zf(()=>{Qf(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>Qf(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,o)),t=e,Qh.has(t.tagName)||!0===t.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),i}(e,(e,t)=>(Vf(this.node,t,"Start"),(e,{success:t})=>Vf(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:!1===n?.tap})}unmount(){}}},focus:{Feature:class extends tA{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=uA(qh(this.node.current,"focus",()=>this.onFocus()),qh(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends tA{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=Of(e,n);return r.forEach(e=>{let n,r=!1,i=!1;const s=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},a=e=>{r=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),i&&(i=!1,s(e))},l=e=>{"touch"!==e.pointerType&&(r?i=!0:s(e))};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||Lh())return;i=!1;const s=t(e,r);"function"==typeof s&&(n=s,e.addEventListener("pointerleave",l,o))},o),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",a,o),window.addEventListener("pointercancel",a,o)},o)}),i}(e,(e,t)=>(Df(this.node,t,"Start"),e=>Df(this.node,e,"End"))))}unmount(){}}}},Xf=eA({...Fh,...Zf,...Mf,layout:{ProjectionNode:Pf,MeasureLayout:Ep}},Cd);let Jf=!1;const em=({toastItem:e,title:t="",content:n="",autoDismiss:r=!0,dismissAfter:o=5e3,theme:i="light",design:s="stack",icon:a,variant:l="neutral",removeToast:c})=>{const u=(0,ft.useRef)(0),d=(0,ft.useRef)(0),A=(0,ft.useRef)(),h=(e,t=o)=>{if(r&&!(o<0))return u.current=(new Date).getTime(),setTimeout(()=>{"function"==typeof c&&c(e.id)},t)};(0,ft.useEffect)(()=>{const t=o;return A.current=h(e,t),()=>{clearTimeout(A.current)}},[]),(0,ft.useEffect)(()=>{!e?.dismiss||"function"!=typeof c||c(e.id)},[e]);const p=()=>{"function"==typeof c&&e?.action?.onClick?.(()=>c(e.id))};let f=null;return"stack"===s&&(f=(0,yt.jsx)("div",{className:wa("flex items-center justify-start p-4 gap-2 relative border border-solid rounded-md shadow-lg","dark"===i?Qa:za?.[l],"w-[22.5rem]"),onMouseEnter:()=>{clearTimeout(A.current),d.current=(new Date).getTime()},onMouseLeave:()=>{A.current=h(e,o-(d.current-u.current))},children:"custom"!==e.type?(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Pa({variant:l,icon:a,theme:i})}),(0,yt.jsxs)("div",{className:"flex flex-col items-start justify-start gap-0.5 me-6",children:[Oa({title:t,theme:i}),Da({content:n,theme:i}),e?.action?.label&&"function"==typeof e?.action?.onClick&&(0,yt.jsx)("div",{className:"mt-2.5",children:Ma({actionLabel:e?.action?.label,actionType:e?.action?.type??"button",onAction:p,theme:i})})]}),(0,yt.jsx)("div",{className:"absolute end-4 top-4 [&_svg]:size-5",children:(0,yt.jsx)("button",{className:wa("inline-flex bg-transparent m-0 p-0 border-none focus:outline-none focus-visible:ring-2 focus-visible:ring-toggle-on focus-visible:ring-offset-2 active:outline-none cursor-pointer rounded",Ha[i]??Ha.light),"aria-label":"Dismiss notification",onClick:t=>{t.preventDefault(),t.stopPropagation(),"function"==typeof c&&c(e.id)},children:(0,yt.jsx)(Ss,{"aria-hidden":"true"})})})]}):e?.jsx?.({close:()=>c(e.id),action:e?.action?{...e?.action,onClick:p}:null})})),"inline"===s&&(f=(0,yt.jsxs)("div",{className:wa("flex items-center justify-start p-3 gap-2 relative border border-solid rounded-md shadow-lg","dark"===i?Qa:za?.[l],"lg:w-[47.5rem] w-full"),children:[(0,yt.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Pa({variant:l,icon:a,theme:i})}),(0,yt.jsxs)("div",{className:"flex items-start justify-start gap-1 me-10 [&>span:first-child]:shrink-0",children:[Oa({title:t,theme:i}),Da({content:n,theme:i})]}),(0,yt.jsx)("div",{className:"absolute end-3 top-3 [&_svg]:size-5",children:(0,yt.jsx)("button",{className:wa("bg-transparent m-0 p-0 border-none focus:outline-none focus-visible:ring-2 focus-visible:ring-toggle-on focus-visible:ring-offset-2 active:outline-none cursor-pointer rounded",Ha[i]??Ha.light),"aria-label":"Dismiss notification",onClick:()=>c(e.id),children:(0,yt.jsx)(Ss,{"aria-hidden":"true"})})})]})),f},tm=(e=>(0,ft.memo)(t=>{const n=t.singleTon;return Jf&&n?null:(Jf=!0,(0,yt.jsx)(e,{...t}))}))(({position:e="top-right",design:t="stack",theme:n="light",className:r="",autoDismiss:o=!0,dismissAfter:i=5e3})=>{const[s,a]=(0,ft.useState)([]);(0,ft.useEffect)(()=>{dt.subscribe(e=>{e?.dismiss?a(t=>t.map(t=>t.id===e.id?{...t,dismiss:!0}:t)):setTimeout(()=>{(0,As.flushSync)(()=>a(t=>-1!==t.findIndex(t=>t.id===e.id)?t.map(t=>t.id===e.id?{...t,...e}:t):[...t,e]))})})},[]);const l=e=>{a(t=>t.filter(t=>t.id!==e))};return(0,yt.jsx)("ul",{"aria-live":"polite","aria-label":"Notifications",className:wa("fui-toast-container fixed flex flex-col list-none z-20 p-10 pointer-events-none [&>li]:pointer-events-auto gap-3",Ra[e]??Ra["top-right"],r),children:(0,yt.jsx)(il,{initial:!1,children:s.map(e=>(0,yt.jsx)(Xf.li,{initial:{opacity:0,y:50,scale:.7},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.6,transition:{duration:.15}},layoutId:`toast-${e.id}`,children:(0,yt.jsx)(em,{toastItem:e,title:e.title,content:e?.description,icon:e?.icon??void 0,design:e?.design??t,autoDismiss:e?.autoDismiss??o,dismissAfter:e?.dismissAfter??i,removeToast:l,variant:e.type,theme:e?.theme??n})},e.id))})})});let nm=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};const rm=Bs("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),om=Bs("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),im=Bs("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),sm=({type:e="simple",defaultValue:t=[],autoClose:n=!1,disabled:r=!1,children:o,className:i})=>{const[s,a]=(0,ft.useState)(Array.isArray(t)?t:[t]);return(0,yt.jsx)("div",{className:wa("boxed"===e?"space-y-3":"",i),children:ft.Children.map(o,t=>{if(ft.isValidElement(t)&&"value"in t.props){const o=!1!==t.props.collapsible,i=!o||s.includes(t.props.value);return ft.cloneElement(t,{isOpen:i,onToggle:o?()=>(e=>{a(t=>n?t.includes(e)?[]:[e]:t.includes(e)?t.filter(t=>t!==e):[...t,e])})(t.props.value):void 0,type:e,disabled:r||t.props.disabled})}return t})})};sm.displayName="Accordion";const am=({isOpen:e,onToggle:t,type:n="simple",disabled:r=!1,children:o,className:i})=>{const s=(0,ft.useMemo)(()=>`accordion-content-${nm()}`,[]),a=(0,ft.useMemo)(()=>`accordion-trigger-${nm()}`,[]),l={simple:"border-0",separator:"border-0 border-b border-solid border-border-subtle",boxed:"border border-solid border-border-subtle rounded-md"}[n];return(0,yt.jsx)("div",{className:wa(l,i),children:ft.Children.map(o,o=>ft.isValidElement(o)?ft.cloneElement(o,{isOpen:e,onToggle:t,type:n,disabled:r,contentId:s,triggerId:a}):o)})};am.displayName="Accordion.Item";const lm=({onClick:e,onToggle:t,isOpen:n,iconType:r="arrow",collapsible:o=!0,disabled:i=!1,tag:s="h3",type:a="simple",children:l,className:c,contentId:u,triggerId:d,...A})=>{const h={simple:"px-2 py-3",separator:"px-2 py-4",boxed:"px-3 py-4"}[a];return(0,yt.jsx)(s,{className:"flex m-0 hover:bg-background-secondary transition duration-150 ease-in-out",children:(0,yt.jsxs)("button",{id:d,className:wa("flex w-full items-center justify-between text-sm font-medium transition-all appearance-none bg-transparent border-0 cursor-pointer gap-3",h,i&&"cursor-not-allowed opacity-40",c),onClick:xa(e,!i&&o?t:void 0),"aria-expanded":n,"aria-controls":u,"aria-disabled":i,disabled:i,...A,children:[(0,yt.jsx)("div",{className:"flex items-center gap-2 text-text-primary font-semibold text-left",children:l}),o?"arrow"===r?(0,yt.jsx)(rm,{className:wa("flex-shrink-0 text-icon-secondary size-5 transition-transform duration-300 ease-in-out",n?"rotate-180":"rotate-0"),"aria-hidden":"true"}):"plus-minus"===r?(0,yt.jsx)(Xf.span,{initial:{opacity:0,rotate:n?-180:0},animate:{opacity:1,rotate:n?0:180},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"flex items-center flex-shrink-0 text-icon-secondary","aria-hidden":"true",children:n?(0,yt.jsx)(om,{}):(0,yt.jsx)(im,{})},n?"minus":"plus"):null:null]})})};lm.displayName="Accordion.Trigger";const cm=({isOpen:e,disabled:t=!1,type:n="simple",children:r,className:o,contentId:i,triggerId:s})=>{const a={simple:"px-2 pb-3",separator:"px-2 pb-4",boxed:"px-3 pb-4"}[n];return(0,yt.jsx)("div",{className:wa("text-text-secondary w-full text-sm box-border",t&&"opacity-40",o),role:"region",id:i,"aria-labelledby":s,"aria-hidden":!e,children:(0,yt.jsx)(il,{initial:!1,children:e&&(0,yt.jsx)(Xf.div,{variants:{open:{height:"auto",opacity:1,overflow:"unset",transition:{overflow:{delay:1}}},closed:{height:0,opacity:0,overflow:"hidden"}},initial:"closed",animate:"open",exit:"closed",transition:{duration:.3,ease:"easeInOut"},children:(0,yt.jsx)("div",{className:wa(a),children:r})},"content")})})};cm.displayName="Accordion.Content";const um=Object.assign(sm,{Item:am,Trigger:lm,Content:cm}),dm=Bs("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]),Am=Bs("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);function hm(){return"undefined"!=typeof window}function pm(e){return gm(e)?(e.nodeName||"").toLowerCase():"#document"}function fm(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function mm(e){var t;return null==(t=(gm(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function gm(e){return!!hm()&&(e instanceof Node||e instanceof fm(e).Node)}function ym(e){return!!hm()&&(e instanceof Element||e instanceof fm(e).Element)}function vm(e){return!!hm()&&(e instanceof HTMLElement||e instanceof fm(e).HTMLElement)}function bm(e){return!(!hm()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof fm(e).ShadowRoot)}function wm(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Im(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function xm(e){return/^(table|td|th)$/.test(pm(e))}function km(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const _m=/transform|translate|scale|rotate|perspective|filter/,Cm=/paint|layout|strict|content/,Bm=e=>!!e&&"none"!==e;let Sm;function jm(e){const t=ym(e)?Im(e):e;return Bm(t.transform)||Bm(t.translate)||Bm(t.scale)||Bm(t.rotate)||Bm(t.perspective)||!Em()&&(Bm(t.backdropFilter)||Bm(t.filter))||_m.test(t.willChange||"")||Cm.test(t.contain||"")}function Em(){return null==Sm&&(Sm="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Sm}function Nm(e){return/^(html|body|#document)$/.test(pm(e))}function Im(e){return fm(e).getComputedStyle(e)}function Fm(e){return ym(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Tm(e){if("html"===pm(e))return e;const t=e.assignedSlot||e.parentNode||bm(e)&&e.host||mm(e);return bm(t)?t.host:t}function Lm(e){const t=Tm(e);return Nm(t)?(e.ownerDocument||e).body:vm(t)&&wm(t)?t:Lm(t)}function Pm(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Lm(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=fm(o);if(i){const e=Mm(s);return t.concat(s,s.visualViewport||[],wm(o)?o:[],e&&n?Pm(e):[])}return t.concat(o,Pm(o,[],n))}function Mm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Om(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Dm(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&bm(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Um(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Rm(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function zm(e){return!(0!==e.mozInputSource||!e.isTrusted)||(qm()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Qm(e){return!Rm().includes("jsdom/")&&(!qm()&&0===e.width&&0===e.height||qm()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function Hm(){return/apple/i.test(navigator.vendor)}function qm(){const e=/android/i;return e.test(Um())||e.test(Rm())}function Vm(){return Um().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Km(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Wm(e){return(null==e?void 0:e.ownerDocument)||document}function Gm(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function $m(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ym(e){return vm(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function Zm(e){e.preventDefault(),e.stopPropagation()}function Xm(e){return!!e&&"combobox"===e.getAttribute("role")&&Ym(e)}const Jm=Math.min,eg=Math.max,tg=Math.round,ng=Math.floor,rg=e=>({x:e,y:e}),og={left:"right",right:"left",bottom:"top",top:"bottom"};function ig(e,t,n){return eg(e,Jm(t,n))}function sg(e,t){return"function"==typeof e?e(t):e}function ag(e){return e.split("-")[0]}function lg(e){return e.split("-")[1]}function cg(e){return"x"===e?"y":"x"}function ug(e){return"y"===e?"height":"width"}function dg(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function Ag(e){return cg(dg(e))}function hg(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const pg=["left","right"],fg=["right","left"],mg=["top","bottom"],gg=["bottom","top"];function yg(e){const t=ag(e);return og[t]+e.slice(t.length)}function vg(e){return"number"!=typeof e?function(e){var t,n,r,o;return{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}}(e):{top:e,right:e,bottom:e,left:e}}function bg(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var wg=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),xg="undefined"==typeof Element,kg=xg?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,_g=!xg&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},Cg=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):Cg(e.parentNode))},Bg=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!Cg(i,!1))if("SLOT"===i.tagName){var s=i.assignedElements(),a=s.length?s:i.children,l=Bg(a,!0,n);n.flatten?r.push.apply(r,l):r.push({scopeParent:i,candidates:l})}else{kg.call(i,wg)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var c=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),u=!Cg(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&u){var d=Bg(!0===c?i.children:c.children,!0,n);n.flatten?r.push.apply(r,d):r.push({scopeParent:i,candidates:d})}else o.unshift.apply(o,i.children)}}return r},Sg=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},jg=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Sg(e)?0:e.tabIndex},Eg=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ng=function(e){return"INPUT"===e.tagName},Ig=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Fg=function(e,t){return!(t.disabled||function(e){return Ng(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var o=getComputedStyle(e).visibility;if("hidden"===o||"collapse"===o)return!0;var i=kg.call(e,"details>summary:first-of-type")?e.parentElement:e;if(kg.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Ig(e)}else{if("function"==typeof r){for(var s=e;e;){var a=e.parentElement,l=_g(e);if(a&&!a.shadowRoot&&!0===r(a))return Ig(e);e=e.assignedSlot?e.assignedSlot:a||l===e.ownerDocument?a:l.host}e=s}if(function(e){var t,n,r,o,i=e&&_g(e),s=null===(t=i)||void 0===t?void 0:t.host,a=!1;if(i&&i!==e)for(a=!!(null!==(n=s)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(s)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!a&&s;){var l,c,u;a=!(null===(c=s=null===(l=i=_g(s))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(s))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!kg.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Tg=function(e,t){return!(function(e){return function(e){return Ng(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||_g(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||jg(t)<0||!Fg(e,t))},Lg=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Pg=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,s=function(e,t){var n=jg(e);return n<0&&t&&!Sg(e)?0:n}(i,o),a=o?Pg(e.candidates):i;0===s?o?t.push.apply(t,a):t.push(i):n.push({documentOrder:r,tabIndex:s,item:e,isScope:o,content:a})}),n.sort(Eg).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Mg=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Bg([e],t.includeContainer,{filter:Tg.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Lg}):function(e,t,n){if(Cg(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(wg));return t&&kg.call(e,wg)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,Tg.bind(null,t)),Pg(n)};function Og(e,t,n){let{reference:r,floating:o}=e;const i=dg(t),s=Ag(t),a=ug(s),l=ag(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,A=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}const p=lg(t);return p&&(h[s]+=A*("end"===p?1:-1)*(n&&c?-1:1)),h}async function Dg(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:A=!1,padding:h=0}=sg(t,e),p=vg(h),f=a[A?"floating"===d?"reference":"floating":d],m=bg(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(f)))||n?f:f.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),g="floating"===d?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),v=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=bg(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:l}):g);return{top:(m.top-b.top+p.top)/v.y,bottom:(b.bottom-m.bottom+p.bottom)/v.y,left:(m.left-b.left+p.left)/v.x,right:(b.right-m.right+p.right)/v.x}}const Ug=new Set(["left","top"]);function Rg(e){const t=Im(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=vm(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=tg(n)!==i||tg(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function zg(e){return ym(e)?e:e.contextElement}function Qg(e){const t=zg(e);if(!vm(t))return rg(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Rg(t);let s=(i?tg(n.width):n.width)/r,a=(i?tg(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Hg=rg(0);function qg(e){const t=fm(e);return Em()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Hg}function Vg(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=zg(e);let s=rg(1);t&&(r?ym(r)&&(s=Qg(r)):s=Qg(e));const a=function(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===fm(e)}(i,n,r)?qg(i):rg(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i&&r){const e=fm(i),t=ym(r)?fm(r):r;let n=e,o=Mm(n);for(;o&&t!==n;){const e=Qg(o),t=o.getBoundingClientRect(),r=Im(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=s,n=fm(o),o=Mm(n)}}return bg({width:u,height:d,x:l,y:c})}function Kg(e,t){const n=Fm(e).scrollLeft;return t?t.left+n:Vg(mm(e)).left+n}function Wg(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Kg(e,n),y:n.top+t.scrollTop}}function Gg(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");const r="layoutViewport"===n,o=fm(e),i=mm(e),s=o.visualViewport;let a=i.clientWidth,l=i.clientHeight,c=0,u=0;if(s){const e=!Em()||"fixed"===t;r?e||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,e&&(c=s.offsetLeft,u=s.offsetTop))}if(Kg(i)<=0){const e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),s="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;s<=25&&(a-=s)}return{width:a,height:l,x:c,y:u}}(e,n,t);else if("document"===t)r=function(e){const t=Fm(e),n=e.ownerDocument.body,r=eg(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=eg(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Kg(e);const s=-t.scrollTop;return"rtl"===Im(n).direction&&(i+=eg(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:s}}(mm(e));else if(ym(t))r=function(e,t){const n=Vg(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Qg(e);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=qg(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return bg(r)}function $g(e,t,n){const r=vm(t),o=mm(t),i="fixed"===n,s=Vg(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=rg(0);if((r||!i)&&(("body"!==pm(t)||wm(o))&&(a=Fm(t)),r)){const e=Vg(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!r&&o&&(l.x=Kg(o));const c=!o||r||i?rg(0):Wg(o,a);return{x:s.left+a.scrollLeft-l.x-c.x,y:s.top+a.scrollTop-l.y-c.y,width:s.width,height:s.height}}function Yg(e){return"static"===Im(e).position}function Zg(e,t){if(!vm(e)||"fixed"===Im(e).position)return null;if(t)return t(e);let n=e.offsetParent;return mm(e)===n&&(n=n.ownerDocument.body),n}function Xg(e,t){const n=fm(e);if(km(e))return n;if(!vm(e)){let t=Tm(e);for(;t&&!Nm(t);){if(ym(t)&&!Yg(t))return t;t=Tm(t)}return n}let r=Zg(e,t);for(;r&&xm(r)&&Yg(r);)r=Zg(r,t);return r&&Nm(r)&&Yg(r)&&!jm(r)?n:r||function(e){let t=Tm(e);for(;vm(t)&&!Nm(t);){if(jm(t))return t;if(km(t))return null;t=Tm(t)}return null}(e)||n}const Jg={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=mm(r),a=!!t&&km(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=rg(1);const u=rg(0),d=vm(r);if((d||!i)&&(("body"!==pm(r)||wm(s))&&(l=Fm(r)),d)){const e=Vg(r);c=Qg(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const A=!s||d||i?rg(0):Wg(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+A.x,y:n.y*c.y-l.scrollTop*c.y+u.y+A.y}},getDocumentElement:mm,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?km(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Pm(e,[],!1).filter(e=>ym(e)&&"body"!==pm(e)),o=null;const i="fixed"===Im(e).position;let s=i?Tm(e):e;for(;ym(s)&&!Nm(s);){const e=Im(s),t=jm(s),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==s),s=Tm(s)}return t.set(e,r),r}(t,this._c):[].concat(n),s=[...i,r],a=Gg(t,s[0],o);let l=a.top,c=a.right,u=a.bottom,d=a.left;for(let e=1;e<s.length;e++){const n=Gg(t,s[e],o);l=eg(n.top,l),c=Jm(n.right,c),u=Jm(n.bottom,u),d=eg(n.left,d)}return{width:c-d,height:u-l,x:d,y:l}},getOffsetParent:Xg,getElementRects:async function(e){const t=this.getOffsetParent||Xg,n=this.getDimensions,r=await n(e.floating);return{reference:$g(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:n}=Rg(e);return{width:t,height:n}},getScale:Qg,isElement:ym,isRTL:function(e){return"rtl"===Im(e).direction}};function ey(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ty(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=zg(e),u=o||i?[...c?Pm(c):[],...t?Pm(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n),i&&e.addEventListener("resize",n)});const d=c&&a?function(e,t,n){let r,o=null;const i=mm(e);function s(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function a(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:d,width:A,height:h}=c;if(n||t(),!A||!h)return;const p={rootMargin:-ng(d)+"px "+-ng(i.clientWidth-(u+A))+"px "+-ng(i.clientHeight-(d+h))+"px "+-ng(u)+"px",threshold:eg(0,Jm(1,l))||1};let f=!0;function m(t){const n=t[0].intersectionRatio;if(!ey(c,e.getBoundingClientRect()))return a();if(n!==l){if(!f)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}f=!1}try{o=new IntersectionObserver(m,{...p,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(m,p)}o.observe(e)}const l=fm(e),c=()=>a(n);return l.addEventListener("resize",c),a(!0),()=>{l.removeEventListener("resize",c),s()}}(c,n,i):null;let A,h=-1,p=null;s&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!l&&p.observe(c),t&&p.observe(t));let f=l?Vg(e):null;return l&&function t(){const r=Vg(e);f&&!ey(f,r)&&n(),f=r,A=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(A)}}const ny=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:A,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:f=!0,...m}=sg(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=ag(o),y=dg(a),v=ag(a)===a,b=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=A||(v||!f?[yg(a)]:function(e){const t=yg(e);return[hg(e),t,hg(t)]}(a)),x="none"!==p;!A&&x&&w.push(...function(e,t,n,r){const o=lg(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?fg:pg:t?pg:fg;case"left":case"right":return t?mg:gg;default:return[]}}(ag(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(hg)))),i}(a,f,p,b));const k=[a,...w],_=await l.detectOverflow(t,m),C=[];let B=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&C.push(_[g]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=lg(e),o=Ag(e),i=ug(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=yg(s)),[s,yg(s)]}(o,s,b);C.push(_[e[0]],_[e[1]])}if(B=[...B,{placement:o,overflows:C}],!C.every(e=>e<=0)){var S,j;const e=((null==(S=i.flip)?void 0:S.index)||0)+1,t=k[e];if(t&&("alignment"!==d||y===dg(t)||B.every(e=>dg(e.placement)!==y||e.overflows[0]>0)))return{data:{index:e,overflows:B},reset:{placement:t}};let n=null==(j=B.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:j.placement;if(!n)switch(h){case"bestFit":{var E;const e=null==(E=B.filter(e=>{if(x){const t=dg(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:E[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},ry=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=sg(e,t)||{};if(null==c)return{};const d=vg(u),A={x:n,y:r},h=Ag(o),p=ug(h),f=await s.getDimensions(c),m="y"===h,g=m?"top":"left",y=m?"bottom":"right",v=m?"clientHeight":"clientWidth",b=i.reference[p]+i.reference[h]-A[h]-i.floating[p],w=A[h]-i.reference[h],x=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let k=x?x[v]:0;k&&await(null==s.isElement?void 0:s.isElement(x))||(k=a.floating[v]||i.floating[p]);const _=b/2-w/2,C=k/2-f[p]/2-1,B=Jm(d[g],C),S=Jm(d[y],C),j=k-f[p]-S,E=k/2-f[p]/2+_,N=ig(B,E,j),I=!l.arrow&&null!=lg(o)&&E!==N&&i.reference[p]/2-(E<B?B:S)-f[p]/2<0,F=I?E<B?E-B:E-j:0;return{[h]:A[h]+F,data:{[h]:N,centerOffset:E-N-F,...I&&{alignmentOffset:F}},reset:I}}}),oy=(e,t,n)=>{const r=new Map,o=null!=n?n:{},i={...Jg,...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:Dg},l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Og(c,r,l),A=r,h=0;const p={};for(let n=0;n<i.length;n++){const f=i[n];if(!f)continue;const{name:m,fn:g}=f,{x:y,y:v,data:b,reset:w}=await g({x:u,y:d,initialPlacement:r,placement:A,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=y?y:u,d=null!=v?v:d,p[m]={...p[m],...b},w&&h<50&&(h++,"object"==typeof w&&(w.placement&&(A=w.placement),w.rects&&(c=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=Og(c,A,l))),n=-1)}return{x:u,y:d,placement:A,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var iy="undefined"!=typeof document?ft.useLayoutEffect:function(){};function sy(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!sy(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||sy(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function ay(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ly(e,t){const n=ay(e);return Math.round(t*n)/n}function cy(e){const t=ft.useRef(e);return iy(()=>{t.current=e}),t}const uy=(e,t)=>{const n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=ag(n),a=lg(n),l="y"===dg(n),c=Ug.has(s)?-1:1,u=i&&l?-1:1,d=sg(t,e);let{mainAxis:A,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof p&&(h="end"===a?-1*p:p),l?{x:h*u,y:A*c}:{x:A*c,y:h*u}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},dy=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=sg(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),A=dg(o),h=cg(A);let p=u[h],f=u[A];const m=(e,t)=>ig(t+d["y"===e?"top":"left"],t,t-d["y"===e?"bottom":"right"]);s&&(p=m(h,p)),a&&(f=m(A,f));const g=l.fn({...t,[h]:p,[A]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:s,[A]:a}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ay=(e,t)=>{const n=ny(e);return{name:n.name,fn:n.fn,options:[e,t]}},hy=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=sg(e,t),l=await o.detectOverflow(t,a),c=ag(n),u=lg(n),d="y"===dg(n),{width:A,height:h}=r.floating;let p,f;"top"===c||"bottom"===c?(p=c,f=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(f=c,p="end"===u?"top":"bottom");const m=h-l.top-l.bottom,g=A-l.left-l.right,y=Jm(h-l[p],m),v=Jm(A-l[f],g),b=t.middlewareData.shift,w=!b;let x=y,k=v;null!=b&&b.enabled.x&&(k=g),null!=b&&b.enabled.y&&(x=m),w&&!u&&(d?k=A-2*eg(l.left,l.right):x=h-2*eg(l.top,l.bottom)),await s({...t,availableWidth:k,availableHeight:x});const _=await o.getDimensions(i.floating);return A!==_.width||h!==_.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},py=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?ry({element:n.current,padding:r}).fn(t):{}:n?ry({element:n,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}},fy={...mt},my=fy.useInsertionEffect||(e=>e());function gy(e){const t=ft.useRef(()=>{});return my(()=>{t.current=e}),ft.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}const yy="ArrowUp",vy="ArrowDown",by="ArrowLeft",wy="ArrowRight";function xy(e,t,n){return Math.floor(e/t)!==n}function ky(e,t){return t<0||t>=e.current.length}function _y(e,t){return By(e,{disabledIndices:t})}function Cy(e,t){return By(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function By(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t;const s=e.current;let a=n;do{a+=r?-i:i}while(a>=0&&a<=s.length-1&&Ey(s,a,o));return a}function Sy(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e),s=t[e];switch(o){case"tl":return i;case"tr":return s?i+s.width-1:i;case"bl":return s?i+(s.height-1)*r:i;case"br":return n.lastIndexOf(e)}}function jy(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Ey(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}var Ny="undefined"!=typeof document?ft.useLayoutEffect:ft.useEffect;function Iy(){return Iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iy.apply(this,arguments)}let Fy=!1,Ty=0;const Ly=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Ty++,Py=fy.useId||function(){const[e,t]=ft.useState(()=>Fy?Ly():void 0);return Ny(()=>{null==e&&t(Ly())},[]),ft.useEffect(()=>{Fy=!0},[]),e},My=ft.forwardRef(function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:i}},width:s=14,height:a=7,tipRadius:l=0,strokeWidth:c=0,staticOffset:u,stroke:d,d:A,style:{transform:h,...p}={},...f}=e,m=Py(),[g,y]=ft.useState(!1);if(Ny(()=>{r&&"rtl"===Im(r).direction&&y(!0)},[r]),!r)return null;const[v,b]=n.split("-"),w="top"===v||"bottom"===v;let x=u;(w&&null!=i&&i.x||!w&&null!=i&&i.y)&&(x=null);const k=2*c,_=k/2,C=s/2*(l/-8+1),B=a/2*l/4,S=!!A,j=x&&"end"===b?"bottom":"top";let E=x&&"end"===b?"right":"left";x&&g&&(E="end"===b?"left":"right");const N=null!=(null==o?void 0:o.x)?x||o.x:"",I=null!=(null==o?void 0:o.y)?x||o.y:"",F=A||"M0,0 H"+s+" L"+(s-C)+","+(a-B)+" Q"+s/2+","+a+" "+C+","+(a-B)+" Z",T={top:S?"rotate(180deg)":"",left:S?"rotate(90deg)":"rotate(-90deg)",bottom:S?"":"rotate(180deg)",right:S?"rotate(-90deg)":"rotate(90deg)"}[v];return ft.createElement("svg",Iy({},f,{"aria-hidden":!0,ref:t,width:S?s:s+k,height:s,viewBox:"0 0 "+s+" "+(a>s?a:s),style:{position:"absolute",pointerEvents:"none",[E]:N,[j]:I,[v]:w||S?"100%":"calc(100% - "+k/2+"px)",transform:[T,h].filter(e=>!!e).join(" "),...p}}),k>0&&ft.createElement("path",{clipPath:"url(#"+m+")",fill:"none",stroke:d,strokeWidth:k+(A?0:1),d:F}),ft.createElement("path",{stroke:k&&!A?f.fill:"none",d:F}),ft.createElement("clipPath",{id:m},ft.createElement("rect",{x:-_,y:_*(S?-1:1),width:s+k,height:s})))});const Oy=ft.createContext(null),Dy=ft.createContext(null),Uy=()=>{var e;return(null==(e=ft.useContext(Oy))?void 0:e.id)||null},Ry=()=>ft.useContext(Dy);function zy(e){return"data-floating-ui-"+e}function Qy(e){const t=(0,ft.useRef)(e);return Ny(()=>{t.current=e}),t}const Hy=zy("safe-polygon");function qy(e,t,n){return n&&!Km(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let Vy=0;function Ky(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Vy);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():Vy=requestAnimationFrame(i)}function Wy(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(r);return n}let Gy=new WeakMap,$y=new WeakSet,Yy={},Zy=0;const Xy=e=>e&&(e.host||Xy(e.parentNode));function Jy(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=Wm(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,s=(a=t,e.map(e=>{if(a.contains(e))return e;const t=Xy(e);return a.contains(t)?t:null}).filter(e=>null!=e));var a;const l=new Set,c=new Set(s),u=[];Yy[o]||(Yy[o]=new WeakMap);const d=Yy[o];return s.forEach(function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!c.has(t)&&[].forEach.call(t.children,t=>{if("script"!==pm(t))if(l.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(Gy.get(t)||0)+1,s=(d.get(t)||0)+1;Gy.set(t,r),d.set(t,s),u.push(t),1===r&&n&&$y.add(t),1===s&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}})}(t),l.clear(),Zy++,()=>{u.forEach(e=>{const t=(Gy.get(e)||0)-1,n=(d.get(e)||0)-1;Gy.set(e,t),d.set(e,n),t||(!$y.has(e)&&i&&e.removeAttribute(i),$y.delete(e)),n||e.removeAttribute(o)}),Zy--,Zy||(Gy=new WeakMap,Gy=new WeakMap,$y=new WeakSet,Yy={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const ev=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function tv(e,t){const n=Mg(e,ev());"prev"===t&&n.reverse();const r=n.indexOf(Om(Wm(e)));return n.slice(r+1)[0]}function nv(){return tv(document.body,"next")}function rv(){return tv(document.body,"prev")}function ov(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Dm(n,r)}function iv(e){Mg(e,ev()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function sv(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}const av={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function lv(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const cv=ft.forwardRef(function(e,t){const[n,r]=ft.useState();Ny(()=>(Hm()&&r("button"),document.addEventListener("keydown",lv),()=>{document.removeEventListener("keydown",lv)}),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[zy("focus-guard")]:"",style:av};return ft.createElement("span",Iy({},e,o))}),uv=ft.createContext(null),dv=zy("portal");function Av(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=Py(),o=hv(),[i,s]=ft.useState(null),a=ft.useRef(null);return Ny(()=>()=>{null==i||i.remove(),queueMicrotask(()=>{a.current=null})},[i]),Ny(()=>{if(!r)return;if(a.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(dv,""),e.appendChild(n),a.current=n,s(n)},[t,r]),Ny(()=>{if(null===n)return;if(!r)return;if(a.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!ym(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const l=document.createElement("div");l.id=r,l.setAttribute(dv,""),e=i||e,e.appendChild(l),a.current=l,s(l)},[t,n,r,o]),i}({id:n,root:r}),[s,a]=ft.useState(null),l=ft.useRef(null),c=ft.useRef(null),u=ft.useRef(null),d=ft.useRef(null),A=null==s?void 0:s.modal,h=null==s?void 0:s.open,p=!!s&&!s.modal&&s.open&&o&&!(!r&&!i);return ft.useEffect(()=>{if(i&&o&&!A)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){i&&ov(e)&&("focusin"===e.type?sv:iv)(i)}},[i,o,A]),ft.useEffect(()=>{i&&(h||sv(i))},[h,i]),ft.createElement(uv.Provider,{value:ft.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:d,portalNode:i,setFocusManagerState:a}),[o,i])},p&&i&&ft.createElement(cv,{"data-type":"outside",ref:l,onFocus:e=>{if(ov(e,i)){var t;null==(t=u.current)||t.focus()}else{const e=rv()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),p&&i&&ft.createElement("span",{"aria-owns":i.id,style:av}),i&&As.createPortal(t,i),p&&i&&ft.createElement(cv,{"data-type":"outside",ref:c,onFocus:e=>{if(ov(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=nv()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const hv=()=>ft.useContext(uv),pv="data-floating-ui-focusable";function fv(e){return e?e.hasAttribute(pv)?e:e.querySelector("["+pv+"]")||e:null}let mv=[];function gv(e){mv=mv.filter(e=>e.isConnected);let t=e;if(t&&"body"!==pm(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==kg.call(e,wg)&&Tg(t,e)}(t,ev())){const e=Mg(t,ev())[0];e&&(t=e)}mv.push(t),mv.length>20&&(mv=mv.slice(-20))}}function yv(){return mv.slice().reverse().find(e=>e.isConnected)}const vv=ft.forwardRef(function(e,t){return ft.createElement("button",Iy({},e,{type:"button",ref:t,tabIndex:-1,style:av}))});function bv(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:s=0,returnFocus:a=!0,restoreFocus:l=!1,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:d=!0}=e,{open:A,refs:h,nodeId:p,onOpenChange:f,events:m,dataRef:g,floatingId:y,elements:{domReference:v,floating:b}}=t,w="number"==typeof s&&s<0,x=Xm(v)&&w,k="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||i,_=Qy(o),C=Qy(s),B=Qy(a),S=Ry(),j=hv(),E=ft.useRef(null),N=ft.useRef(null),I=ft.useRef(!1),F=ft.useRef(!1),T=ft.useRef(-1),L=null!=j,P=fv(b),M=gy(function(e){return void 0===e&&(e=P),e?Mg(e,ev()):[]}),O=gy(e=>{const t=M(e);return _.current.map(e=>v&&"reference"===e?v:P&&"floating"===e?P:t).filter(Boolean).flat()});function D(e){return!r&&u&&c?ft.createElement(vv,{ref:"start"===e?E:N,onClick:e=>f(!1,e.nativeEvent)},"string"==typeof u?u:"Dismiss"):null}ft.useEffect(()=>{if(r)return;if(!c)return;function e(e){if("Tab"===e.key){Dm(P,Om(Wm(P)))&&0===M().length&&!x&&Zm(e);const t=O(),n=$m(e);"reference"===_.current[0]&&n===v&&(Zm(e),e.shiftKey?Ky(t[t.length-1]):Ky(t[1])),"floating"===_.current[1]&&n===P&&e.shiftKey&&(Zm(e),Ky(t[0]))}}const t=Wm(P);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,v,P,c,_,x,M,O]),ft.useEffect(()=>{if(!r&&b)return b.addEventListener("focusin",e),()=>{b.removeEventListener("focusin",e)};function e(e){const t=$m(e),n=M().indexOf(t);-1!==n&&(T.current=n)}},[r,b,M]),ft.useEffect(()=>{if(!r&&d)return b&&vm(v)?(v.addEventListener("focusout",t),v.addEventListener("pointerdown",e),b.addEventListener("focusout",t),()=>{v.removeEventListener("focusout",t),v.removeEventListener("pointerdown",e),b.removeEventListener("focusout",t)}):void 0;function e(){F.current=!0,setTimeout(()=>{F.current=!1})}function t(e){const t=e.relatedTarget;queueMicrotask(()=>{const n=!(Dm(v,t)||Dm(b,t)||Dm(t,b)||Dm(null==j?void 0:j.portalNode,t)||null!=t&&t.hasAttribute(zy("focus-guard"))||S&&(Wy(S.nodesRef.current,p).find(e=>{var n,r;return Dm(null==(n=e.context)?void 0:n.elements.floating,t)||Dm(null==(r=e.context)?void 0:r.elements.domReference,t)})||function(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){const t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(S.nodesRef.current,p).find(e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t})));if(l&&n&&Om(Wm(P))===Wm(P).body){vm(P)&&P.focus();const e=T.current,t=M(),n=t[e]||t[t.length-1]||P;vm(n)&&n.focus()}!x&&c||!t||!n||F.current||t===yv()||(I.current=!0,f(!1,e,"focus-out"))})}},[r,v,b,P,c,p,S,j,f,d,l,M,x]),ft.useEffect(()=>{var e;if(r)return;const t=Array.from((null==j||null==(e=j.portalNode)?void 0:e.querySelectorAll("["+zy("portal")+"]"))||[]);if(b){const e=[b,...t,E.current,N.current,_.current.includes("reference")||x?v:null].filter(e=>null!=e),n=c||x?Jy(e,k,!k):Jy(e);return()=>{n()}}},[r,v,b,c,_,j,x,k]),Ny(()=>{if(r||!vm(P))return;const e=Om(Wm(P));queueMicrotask(()=>{const t=O(P),n=C.current,r=("number"==typeof n?t[n]:n.current)||P,o=Dm(P,e);w||o||!A||Ky(r,{preventScroll:r===P})})},[r,A,P,w,O,C]),Ny(()=>{if(r||!P)return;let e=!1;const t=Wm(P),n=Om(t);let o=g.current.openEvent;function i(t){let{open:n,reason:r,event:i,nested:s}=t;n&&(o=i),"escape-key"===r&&h.domReference.current&&gv(h.domReference.current),"hover"===r&&"mouseleave"===i.type&&(I.current=!0),"outside-press"===r&&(s?(I.current=!1,e=!0):I.current=!(zm(i)||Qm(i)))}gv(n),m.on("openchange",i);const s=t.createElement("span");return s.setAttribute("tabindex","-1"),s.setAttribute("aria-hidden","true"),Object.assign(s.style,av),L&&v&&v.insertAdjacentElement("afterend",s),()=>{m.off("openchange",i);const n=Om(t),r=Dm(b,n)||S&&Wy(S.nodesRef.current,p).some(e=>{var t;return Dm(null==(t=e.context)?void 0:t.elements.floating,n)});(r||o&&["click","mousedown"].includes(o.type))&&h.domReference.current&&gv(h.domReference.current);const a="boolean"==typeof B.current?yv()||s:B.current.current||s;queueMicrotask(()=>{B.current&&!I.current&&vm(a)&&(a===n||n===t.body||r)&&a.focus({preventScroll:e}),s.remove()})}},[r,b,P,B,g,h,m,S,p,L,v]),ft.useEffect(()=>{queueMicrotask(()=>{I.current=!1})},[r]),Ny(()=>{if(!r&&j)return j.setFocusManagerState({modal:c,closeOnFocusOut:d,open:A,onOpenChange:f,refs:h}),()=>{j.setFocusManagerState(null)}},[r,j,c,A,f,h,d]),Ny(()=>{if(r)return;if(!P)return;if("function"!=typeof MutationObserver)return;if(w)return;const e=()=>{const e=P.getAttribute("tabindex"),t=M(),n=Om(Wm(b)),r=t.indexOf(n);-1!==r&&(T.current=r),_.current.includes("floating")||n!==h.domReference.current&&0===t.length?"0"!==e&&P.setAttribute("tabindex","0"):"-1"!==e&&P.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(P,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[r,b,P,h,_,M,w]);const U=!r&&k&&(!c||!x)&&(L||c);return ft.createElement(ft.Fragment,null,U&&ft.createElement(cv,{"data-type":"inside",ref:null==j?void 0:j.beforeInsideRef,onFocus:e=>{if(c){const e=O();Ky("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=j&&j.preserveTabOrder&&j.portalNode)if(I.current=!1,ov(e,j.portalNode)){const e=nv()||v;null==e||e.focus()}else{var t;null==(t=j.beforeOutsideRef.current)||t.focus()}}}),!x&&D("start"),n,D("end"),U&&ft.createElement(cv,{"data-type":"inside",ref:null==j?void 0:j.afterInsideRef,onFocus:e=>{if(c)Ky(O()[0]);else if(null!=j&&j.preserveTabOrder&&j.portalNode)if(d&&(I.current=!0),ov(e,j.portalNode)){const e=rv()||v;null==e||e.focus()}else{var t;null==(t=j.afterOutsideRef.current)||t.focus()}}}))}let wv=0,xv=()=>{};const kv=ft.forwardRef(function(e,t){const{lockScroll:n=!1,...r}=e;return Ny(()=>{if(n)return wv++,1===wv&&(xv=function(){const e=/iP(hone|ad|od)|iOS/.test(Um()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,o=t.left?parseFloat(t.left):window.scrollX,i=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var s,a;const e=(null==(s=window.visualViewport)?void 0:s.offsetLeft)||0,n=(null==(a=window.visualViewport)?void 0:a.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(i-Math.floor(n))+"px",left:-(o-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(o,i))}}()),()=>{wv--,0===wv&&xv()}},[n]),ft.createElement("div",Iy({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))});function _v(e){return vm(e.target)&&"BUTTON"===e.target.tagName}function Cv(e){return Ym(e)}function Bv(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:s=!0,event:a="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0,stickIfOpen:d=!0}=t,A=ft.useRef(),h=ft.useRef(!1),p=ft.useMemo(()=>({onPointerDown(e){A.current=e.pointerType},onMouseDown(e){const t=A.current;0===e.button&&"click"!==a&&(Km(t,!0)&&c||(!n||!l||o.current.openEvent&&d&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=A.current;"mousedown"===a&&A.current?A.current=void 0:Km(t,!0)&&c||(!n||!l||o.current.openEvent&&d&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){A.current=void 0,e.defaultPrevented||!u||_v(e)||(" "!==e.key||Cv(i)||(e.preventDefault(),h.current=!0),"Enter"===e.key&&r(!n||!l,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||_v(e)||Cv(i)||" "===e.key&&h.current&&(h.current=!1,r(!n||!l,e.nativeEvent,"click"))}}),[o,i,a,c,u,r,n,d,l]);return ft.useMemo(()=>s?{reference:p}:{},[s,p])}const Sv={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},jv={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ev=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Nv(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:A=!1,bubbles:h,capture:p}=t,f=Ry(),m=gy("function"==typeof l?l:()=>!1),g="function"==typeof l?m:l,y=ft.useRef(!1),v=ft.useRef(!1),{escapeKey:b,outsidePress:w}=Ev(h),{escapeKey:x,outsidePress:k}=Ev(p),_=ft.useRef(!1),C=gy(e=>{var t;if(!n||!s||!a||"Escape"!==e.key)return;if(_.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,l=f?Wy(f.nodesRef.current,o):[];if(!b&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),B=gy(e=>{var t;const n=()=>{var t;C(e),null==(t=$m(e))||t.removeEventListener("keydown",n)};null==(t=$m(e))||t.addEventListener("keydown",n)}),S=gy(e=>{var t;const n=y.current;y.current=!1;const s=v.current;if(v.current=!1,"click"===c&&s)return;if(n)return;if("function"==typeof g&&!g(e))return;const a=$m(e),l="["+zy("inert")+"]",u=Wm(o.floating).querySelectorAll(l);let d=ym(a)?a:null;for(;d&&!Nm(d);){const e=Tm(d);if(Nm(e)||!ym(e))break;d=e}if(u.length&&ym(a)&&!a.matches("html,body")&&!Dm(a,o.floating)&&Array.from(u).every(e=>!Dm(d,e)))return;if(vm(a)&&N){const t=a.clientWidth>0&&a.scrollWidth>a.clientWidth,n=a.clientHeight>0&&a.scrollHeight>a.clientHeight;let r=n&&e.offsetX>a.clientWidth;if(n&&"rtl"===Im(a).direction&&(r=e.offsetX<=a.offsetWidth-a.clientWidth),r||t&&e.offsetY>a.clientHeight)return}const A=null==(t=i.current.floatingContext)?void 0:t.nodeId,h=f&&Wy(f.nodesRef.current,A).some(t=>{var n;return Gm(e,null==(n=t.context)?void 0:n.elements.floating)});if(Gm(e,o.floating)||Gm(e,o.domReference)||h)return;const p=f?Wy(f.nodesRef.current,A):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),j=gy(e=>{var t;const n=()=>{var t;S(e),null==(t=$m(e))||t.removeEventListener(c,n)};null==(t=$m(e))||t.addEventListener(c,n)});ft.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=b,i.current.__outsidePressBubbles=w;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function l(){window.clearTimeout(e),_.current=!0}function u(){e=window.setTimeout(()=>{_.current=!1},Em()?5:0)}const d=Wm(o.floating);a&&(d.addEventListener("keydown",x?B:C,x),d.addEventListener("compositionstart",l),d.addEventListener("compositionend",u)),g&&d.addEventListener(c,k?j:S,k);let h=[];return A&&(ym(o.domReference)&&(h=Pm(o.domReference)),ym(o.floating)&&(h=h.concat(Pm(o.floating))),!ym(o.reference)&&o.reference&&o.reference.contextElement&&(h=h.concat(Pm(o.reference.contextElement)))),h=h.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),h.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{a&&(d.removeEventListener("keydown",x?B:C,x),d.removeEventListener("compositionstart",l),d.removeEventListener("compositionend",u)),g&&d.removeEventListener(c,k?j:S,k),h.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,a,g,c,n,r,A,s,b,w,C,x,B,S,k,j]),ft.useEffect(()=>{y.current=!1},[g,c]);const E=ft.useMemo(()=>({onKeyDown:C,[Sv[d]]:e=>{u&&r(!1,e.nativeEvent,"reference-press")}}),[C,r,u,d]),N=ft.useMemo(()=>({onKeyDown:C,onMouseDown(){v.current=!0},onMouseUp(){v.current=!0},[jv[c]]:()=>{y.current=!0}}),[C,c]);return ft.useMemo(()=>s?{reference:E,floating:N}:{},[s,E,N])}function Iv(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Py(),i=ft.useRef({}),[s]=ft.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}()),a=null!=Uy(),[l,c]=ft.useState(r.reference),u=gy((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)}),d=ft.useMemo(()=>({setPositionReference:c}),[]),A=ft.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return ft.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:A,events:s,floatingId:o,refs:d}),[t,u,A,s,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=ft.useState(null),[a,l]=ft.useState(null),c=(null==o?void 0:o.domReference)||i,u=ft.useRef(null),d=Ry();Ny(()=>{c&&(u.current=c)},[c]);const A=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=ft.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[A,h]=ft.useState(r);sy(A,r)||h(r);const[p,f]=ft.useState(null),[m,g]=ft.useState(null),y=ft.useCallback(e=>{e!==x.current&&(x.current=e,f(e))},[]),v=ft.useCallback(e=>{e!==k.current&&(k.current=e,g(e))},[]),b=i||p,w=s||m,x=ft.useRef(null),k=ft.useRef(null),_=ft.useRef(u),C=null!=l,B=cy(l),S=cy(o),j=cy(c),E=ft.useCallback(()=>{if(!x.current||!k.current)return;const e={placement:t,strategy:n,middleware:A};S.current&&(e.platform=S.current),oy(x.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==j.current};N.current&&!sy(_.current,t)&&(_.current=t,As.flushSync(()=>{d(t)}))})},[A,t,n,S,j]);iy(()=>{!1===c&&_.current.isPositioned&&(_.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);const N=ft.useRef(!1);iy(()=>(N.current=!0,()=>{N.current=!1}),[]),iy(()=>{if(b&&(x.current=b),w&&(k.current=w),b&&w){if(B.current)return B.current(b,w,E);E()}},[b,w,E,B,C]);const I=ft.useMemo(()=>({reference:x,floating:k,setReference:y,setFloating:v}),[y,v]),F=ft.useMemo(()=>({reference:b,floating:w}),[b,w]),T=ft.useMemo(()=>{const e={position:n,left:0,top:0};if(!F.floating)return e;const t=ly(F.floating,u.x),r=ly(F.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...ay(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,F.floating,u.x,u.y]);return ft.useMemo(()=>({...u,update:E,refs:I,elements:F,floatingStyles:T}),[u,E,I,F,T])}({...e,elements:{...o,...a&&{reference:a}}}),h=ft.useCallback(e=>{const t=ym(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),A.refs.setReference(t)},[A.refs]),p=ft.useCallback(e=>{(ym(e)||null===e)&&(u.current=e,s(e)),(ym(A.refs.reference.current)||null===A.refs.reference.current||null!==e&&!ym(e))&&A.refs.setReference(e)},[A.refs]),f=ft.useMemo(()=>({...A.refs,setReference:p,setPositionReference:h,domReference:u}),[A.refs,p,h]),m=ft.useMemo(()=>({...A.elements,domReference:c}),[A.elements,c]),g=ft.useMemo(()=>({...A,...r,refs:f,elements:m,nodeId:t}),[A,f,m,t,r]);return Ny(()=>{r.dataRef.current.floatingContext=g;const e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=g)}),ft.useMemo(()=>({...A,context:g,refs:f,elements:m}),[A,f,m,g])}const Fv="active",Tv="selected";function Lv(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[Fv]:t,[Tv]:__,...n}=e;i=n}return{..."floating"===n&&{tabIndex:-1,[pv]:""},...i,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var s;o&&[Fv,Tv].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function Pv(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),o=ft.useCallback(t=>Lv(t,e,"reference"),t),i=ft.useCallback(t=>Lv(t,e,"floating"),n),s=ft.useCallback(t=>Lv(t,e,"item"),r);return ft.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}let Mv=!1;function Ov(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Dv(e,t){return Ov(t,e===yy||e===vy,e===by||e===wy)}function Uv(e,t,n){return Ov(t,e===vy,n?e===by:e===wy)||"Enter"===e||" "===e||""===e}function Rv(e,t,n){return Ov(t,n?e===wy:e===by,e===yy)}function zv(e,t){const{open:n,onOpenChange:r,elements:o}=e,{listRef:i,activeIndex:s,onNavigate:a=()=>{},enabled:l=!0,selectedIndex:c=null,allowEscape:u=!1,loop:d=!1,nested:A=!1,rtl:h=!1,virtual:p=!1,focusItemOnOpen:f="auto",focusItemOnHover:m=!0,openOnArrowKeyDown:g=!0,disabledIndices:y,orientation:v="vertical",cols:b=1,scrollItemIntoView:w=!0,virtualItemRef:x,itemSizes:k,dense:_=!1}=t,C=Qy(fv(o.floating)),B=Uy(),S=Ry(),j=gy(a),E=Xm(o.domReference),N=ft.useRef(f),I=ft.useRef(null!=c?c:-1),F=ft.useRef(null),T=ft.useRef(!0),L=ft.useRef(j),P=ft.useRef(!!o.floating),M=ft.useRef(n),O=ft.useRef(!1),D=ft.useRef(!1),U=Qy(y),R=Qy(n),z=Qy(w),Q=Qy(c),[H,q]=ft.useState(),[V,K]=ft.useState(),W=gy(function(e,t,n){function r(e){p?(q(e.id),null==S||S.events.emit("virtualfocus",e),x&&(x.current=e)):Ky(e,{preventScroll:!0,sync:!(!Vm()||!Hm())&&(Mv||O.current)})}void 0===n&&(n=!1);const o=e.current[t.current];o&&r(o),requestAnimationFrame(()=>{const i=e.current[t.current]||o;if(!i)return;o||r(i);const s=z.current;s&&$&&(n||!T.current)&&(null==i.scrollIntoView||i.scrollIntoView("boolean"==typeof s?{block:"nearest",inline:"nearest"}:s))})});Ny(()=>{document.createElement("div").focus({get preventScroll(){return Mv=!0,!1}})},[]),Ny(()=>{l&&(n&&o.floating?N.current&&null!=c&&(D.current=!0,I.current=c,j(c)):P.current&&(I.current=-1,L.current(null)))},[l,n,o.floating,c,j]),Ny(()=>{if(l&&n&&o.floating)if(null==s){if(O.current=!1,null!=Q.current)return;if(P.current&&(I.current=-1,W(i,I)),(!M.current||!P.current)&&N.current&&(null!=F.current||!0===N.current&&null==F.current)){let e=0;const t=()=>{null==i.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(I.current=null==F.current||Uv(F.current,v,h)||A?_y(i,U.current):Cy(i,U.current),F.current=null,j(I.current))};t()}}else ky(i,s)||(I.current=s,W(i,I,D.current),D.current=!1)},[l,n,o.floating,s,Q,A,i,v,h,j,W,U]),Ny(()=>{var e;if(!l||o.floating||!S||p||!P.current)return;const t=S.nodesRef.current,n=null==(e=t.find(e=>e.id===B))||null==(e=e.context)?void 0:e.elements.floating,r=Om(Wm(o.floating)),i=t.some(e=>e.context&&Dm(e.context.elements.floating,r));n&&!i&&T.current&&n.focus({preventScroll:!0})},[l,o.floating,S,B,p]),Ny(()=>{if(l&&S&&p&&!B)return S.events.on("virtualfocus",e),()=>{S.events.off("virtualfocus",e)};function e(e){K(e.id),x&&(x.current=e)}},[l,S,p,B,x]),Ny(()=>{L.current=j,P.current=!!o.floating}),Ny(()=>{n||(F.current=null)},[n]),Ny(()=>{M.current=n},[n]);const G=null!=s,$=ft.useMemo(()=>{function e(e){if(!n)return;const t=i.current.indexOf(e);-1!==t&&j(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...m&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;T.current&&"touch"!==t&&(I.current=-1,W(i,I),j(null),p||Ky(C.current,{preventScroll:!0}))}}}},[n,C,W,m,i,j,p]),Y=gy(e=>{if(T.current=!1,O.current=!0,229===e.which)return;if(!R.current&&e.currentTarget===C.current)return;if(A&&Rv(e.key,v,h))return Zm(e),r(!1,e.nativeEvent,"list-navigation"),void(vm(o.domReference)&&(p?null==S||S.events.emit("virtualfocus",o.domReference):o.domReference.focus()));const t=I.current,s=_y(i,y),a=Cy(i,y);if(E||("Home"===e.key&&(Zm(e),I.current=s,j(I.current)),"End"===e.key&&(Zm(e),I.current=a,j(I.current))),b>1){const t=k||Array.from({length:i.current.length},()=>({width:1,height:1})),n=function(e,t,n){const r=[];let o=0;return e.forEach((e,i)=>{let{width:s,height:a}=e,l=!1;for(n&&(o=0);!l;){const e=[];for(let n=0;n<s;n++)for(let r=0;r<a;r++)e.push(o+n+r*t);o%t+s<=t&&e.every(e=>null==r[e])?(e.forEach(e=>{r[e]=i}),l=!0):o++}}),[...r]}(t,b,_),r=n.findIndex(e=>null!=e&&!Ey(i.current,e,y)),o=n.reduce((e,t,n)=>null==t||Ey(i.current,t,y)?e:n,-1),l=n[function(e,t){let{event:n,orientation:r,loop:o,rtl:i,cols:s,disabledIndices:a,minIndex:l,maxIndex:c,prevIndex:u,stopEvent:d=!1}=t,A=u;if(n.key===yy){if(d&&Zm(n),-1===u)A=c;else if(A=By(e,{startingIndex:A,amount:s,decrement:!0,disabledIndices:a}),o&&(u-s<l||A<0)){const e=u%s,t=c%s,n=c-(t-e);A=t===e?c:t>e?n:n-s}ky(e,A)&&(A=u)}if(n.key===vy&&(d&&Zm(n),-1===u?A=l:(A=By(e,{startingIndex:u,amount:s,disabledIndices:a}),o&&u+s>c&&(A=By(e,{startingIndex:u%s-s,amount:s,disabledIndices:a}))),ky(e,A)&&(A=u)),"both"===r){const t=ng(u/s);n.key===(i?by:wy)&&(d&&Zm(n),u%s!==s-1?(A=By(e,{startingIndex:u,disabledIndices:a}),o&&xy(A,s,t)&&(A=By(e,{startingIndex:u-u%s-1,disabledIndices:a}))):o&&(A=By(e,{startingIndex:u-u%s-1,disabledIndices:a})),xy(A,s,t)&&(A=u)),n.key===(i?wy:by)&&(d&&Zm(n),u%s!==0?(A=By(e,{startingIndex:u,decrement:!0,disabledIndices:a}),o&&xy(A,s,t)&&(A=By(e,{startingIndex:u+(s-u%s),decrement:!0,disabledIndices:a}))):o&&(A=By(e,{startingIndex:u+(s-u%s),decrement:!0,disabledIndices:a})),xy(A,s,t)&&(A=u));const r=ng(c/s)===t;ky(e,A)&&(A=o&&r?n.key===(i?wy:by)?c:By(e,{startingIndex:u-u%s-1,disabledIndices:a}):u)}return A}({current:n.map(e=>null!=e?i.current[e]:null)},{event:e,orientation:v,loop:d,rtl:h,cols:b,disabledIndices:jy([...y||i.current.map((e,t)=>Ey(i.current,t)?t:void 0),void 0],n),minIndex:r,maxIndex:o,prevIndex:Sy(I.current>a?s:I.current,t,n,b,e.key===vy?"bl":e.key===(h?by:wy)?"tr":"tl"),stopEvent:!0})];if(null!=l&&(I.current=l,j(I.current)),"both"===v)return}if(Dv(e.key,v)){if(Zm(e),n&&!p&&Om(e.currentTarget.ownerDocument)===e.currentTarget)return I.current=Uv(e.key,v,h)?s:a,void j(I.current);Uv(e.key,v,h)?I.current=d?t>=a?u&&t!==i.current.length?-1:s:By(i,{startingIndex:t,disabledIndices:y}):Math.min(a,By(i,{startingIndex:t,disabledIndices:y})):I.current=d?t<=s?u&&-1!==t?i.current.length:a:By(i,{startingIndex:t,decrement:!0,disabledIndices:y}):Math.max(s,By(i,{startingIndex:t,decrement:!0,disabledIndices:y})),ky(i,I.current)?j(null):j(I.current)}}),Z=ft.useMemo(()=>p&&n&&G&&{"aria-activedescendant":V||H},[p,n,G,V,H]),X=ft.useMemo(()=>({"aria-orientation":"both"===v?void 0:v,...!Xm(o.domReference)&&Z,onKeyDown:Y,onPointerMove(){T.current=!0}}),[Z,Y,o.domReference,v]),J=ft.useMemo(()=>{function e(e){"auto"===f&&zm(e.nativeEvent)&&(N.current=!0)}return{...Z,onKeyDown(e){T.current=!1;const t=e.key.startsWith("Arrow"),o=["Home","End"].includes(e.key),s=t||o,a=function(e,t,n){return Ov(t,n?e===by:e===wy,e===vy)}(e.key,v,h),l=Rv(e.key,v,h),u=Dv(e.key,v),d=(A?a:u)||"Enter"===e.key||""===e.key.trim();if(p&&n){const t=null==S?void 0:S.nodesRef.current.find(e=>null==e.parentId),n=S&&t?function(e,t){let n,r=-1;return function t(o,i){i>r&&(n=o,r=i),Wy(e,o).forEach(e=>{t(e.id,i+1)})}(t,0),e.find(e=>e.id===n)}(S.nodesRef.current,t.id):null;if(s&&n&&x){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(a||l){var f,m;const r=(null==(f=n.context)?void 0:f.elements.domReference)===e.currentTarget,o=l&&!r?null==(m=n.context)?void 0:m.elements.domReference:a?i.current.find(e=>(null==e?void 0:e.id)===H):null;o&&(Zm(e),o.dispatchEvent(t),K(void 0))}var y;if((u||o)&&n.context&&n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return Zm(e),void(null==(y=n.context.elements.domReference)||y.dispatchEvent(t))}return Y(e)}(n||g||!t)&&(d&&(F.current=A&&u?null:e.key),A?a&&(Zm(e),n?(I.current=_y(i,U.current),j(I.current)):r(!0,e.nativeEvent,"list-navigation")):u&&(null!=c&&(I.current=c),Zm(e),!n&&g?r(!0,e.nativeEvent,"list-navigation"):Y(e),n&&j(I.current)))},onFocus(){n&&!p&&j(null)},onPointerDown:function(e){N.current=f,"auto"===f&&Qm(e.nativeEvent)&&(N.current=!0)},onMouseDown:e,onClick:e}},[H,Z,Y,U,f,i,A,j,r,n,g,v,h,c,S,p,x]);return ft.useMemo(()=>l?{reference:J,floating:X,item:$}:{},[l,J,X,$])}const Qv=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Hv(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:s="dialog"}=t,a=null!=(n=Qv.get(s))?n:s,l=Py(),c=null!=Uy(),u=ft.useMemo(()=>"tooltip"===a||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===a?"dialog":a,"aria-controls":r?o:void 0,..."listbox"===a&&{role:"combobox"},..."menu"===a&&{id:l},..."menu"===a&&c&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[a,o,c,r,l,s]),d=ft.useMemo(()=>{const e={id:o,...a&&{role:a}};return"tooltip"===a||"label"===s?e:{...e,..."menu"===a&&{"aria-labelledby":l}}},[a,o,l,s]),A=ft.useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:o+"-option"}};switch(s){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}},[o,s]);return ft.useMemo(()=>i?{reference:u,floating:d,item:A}:{},[i,u,d,A])}const qv=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function Vv(e,t){return"function"==typeof e?e(t):e}function Kv(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,s=i-1;e<i;s=e++){const[i,a]=t[e]||[0,0],[l,c]=t[s]||[0,0];a>=r!=c>=r&&n<=(l-i)*(r-a)/(c-a)+i&&(o=!o)}return o}function Wv(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,s=null,a=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:A,nodeId:h,tree:p}=e;return function(e){function f(){clearTimeout(o),A()}if(clearTimeout(o),!d.domReference||!d.floating||null==u||null==n||null==c)return;const{clientX:m,clientY:g}=e,y=[m,g],v=$m(e),b="mouseleave"===e.type,w=Dm(d.floating,v),x=Dm(d.domReference,v),k=d.domReference.getBoundingClientRect(),_=d.floating.getBoundingClientRect(),C=u.split("-")[0],B=n>_.right-_.width/2,S=c>_.bottom-_.height/2,j=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,k),E=_.width>k.width,N=_.height>k.height,I=(E?k:_).left,F=(E?k:_).right,T=(N?k:_).top,L=(N?k:_).bottom;if(w&&(i=!0,!b))return;if(x&&(i=!1),x&&!b)return void(i=!0);if(b&&ym(e.relatedTarget)&&Dm(d.floating,e.relatedTarget))return;if(p&&Wy(p.nodesRef.current,h).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===C&&c>=k.bottom-1||"bottom"===C&&c<=k.top+1||"left"===C&&n>=k.right-1||"right"===C&&n<=k.left+1)return f();let P=[];switch(C){case"top":P=[[I,k.top+1],[I,_.bottom-1],[F,_.bottom-1],[F,k.top+1]];break;case"bottom":P=[[I,_.top+1],[I,k.bottom-1],[F,k.bottom-1],[F,_.top+1]];break;case"left":P=[[_.right-1,L],[_.right-1,T],[k.left+1,T],[k.left+1,L]];break;case"right":P=[[k.right-1,L],[k.right-1,T],[_.left+1,T],[_.left+1,L]]}if(!Kv([m,g],P)){if(i&&!j)return f();if(!b&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===s||null===a||0===r)return s=e,a=t,l=n,null;const o=e-s,i=t-a,c=Math.sqrt(o*o+i*i);return s=e,a=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return f()}Kv([m,g],function(e){let[n,r]=e;switch(C){case"top":return[[E?n+t/2:B?n+4*t:n-4*t,r+t+1],[E?n-t/2:B?n+4*t:n-4*t,r+t+1],[_.left,B||E?_.bottom-t:_.top],[_.right,B?E?_.bottom-t:_.top:_.bottom-t]];case"bottom":return[[E?n+t/2:B?n+4*t:n-4*t,r-t],[E?n-t/2:B?n+4*t:n-4*t,r-t],[_.left,B||E?_.top+t:_.bottom],[_.right,B?E?_.top+t:_.bottom:_.top+t]];case"left":{const e=[n+t+1,N?r+t/2:S?r+4*t:r-4*t],o=[n+t+1,N?r-t/2:S?r+4*t:r-4*t];return[[S||N?_.right-t:_.left,_.top],[S?N?_.right-t:_.left:_.right-t,_.bottom],e,o]}case"right":return[[n-t,N?r+t/2:S?r+4*t:r-4*t],[n-t,N?r-t/2:S?r+4*t:r-4*t],[S||N?_.left+t:_.right,_.top],[S?N?_.left+t:_.right:_.left+t,_.bottom]]}}([n,c]))?!i&&r&&(o=window.setTimeout(f,40)):f()}}};return c.__options={blockPointerEvents:n},c}const Gv=({variant:e="dark",placement:t="bottom",title:n="",content:r,arrow:o=!1,open:i,setOpen:s,children:a,className:l,tooltipPortalRoot:c,tooltipPortalId:u,boundary:d="clippingAncestors",strategy:A="fixed",offset:h=8,triggers:p=["hover","focus"],interactive:f=!1})=>{const m=(0,ft.useMemo)(()=>"boolean"==typeof i&&"function"==typeof s,[i,s]),[g,y]=(0,ft.useState)(!1),v=(0,ft.useRef)(null),{refs:b,floatingStyles:w,context:x}=Iv({open:m?i:g,onOpenChange:m?s:y,placement:t,strategy:A,middleware:[uy(h),Ay({boundary:d}),dy({boundary:d}),py({element:v})],whileElementsMounted:ty}),k=Bv(x,{enabled:!m&&p.includes("click")}),_=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:s}=e,{enabled:a=!0,delay:l=0,handleClose:c=null,mouseOnly:u=!1,restMs:d=0,move:A=!0}=t,h=Ry(),p=Uy(),f=Qy(c),m=Qy(l),g=Qy(n),y=ft.useRef(),v=ft.useRef(-1),b=ft.useRef(),w=ft.useRef(-1),x=ft.useRef(!0),k=ft.useRef(!1),_=ft.useRef(()=>{}),C=ft.useRef(!1),B=ft.useCallback(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[o]);ft.useEffect(()=>{if(a)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(v.current),clearTimeout(w.current),x.current=!0,C.current=!1)}},[a,i]),ft.useEffect(()=>{if(!a)return;if(!f.current)return;if(!n)return;function e(e){B()&&r(!1,e,"hover")}const t=Wm(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[s.floating,n,r,a,f,B]);const S=ft.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=qy(m.current,"close",y.current);o&&!b.current?(clearTimeout(v.current),v.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(clearTimeout(v.current),r(!1,e,n))},[m,r]),j=gy(()=>{_.current(),b.current=void 0}),E=gy(()=>{if(k.current){const e=Wm(s.floating).body;e.style.pointerEvents="",e.removeAttribute(Hy),k.current=!1}}),N=gy(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));ft.useEffect(()=>{if(a&&ym(s.domReference)){var e;const r=s.domReference;return n&&r.addEventListener("mouseleave",l),null==(e=s.floating)||e.addEventListener("mouseleave",l),A&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",i),()=>{var e;n&&r.removeEventListener("mouseleave",l),null==(e=s.floating)||e.removeEventListener("mouseleave",l),A&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",i)}}function t(e){if(clearTimeout(v.current),x.current=!1,u&&!Km(y.current)||d>0&&!qy(m.current,"open"))return;const t=qy(m.current,"open",y.current);t?v.current=window.setTimeout(()=>{g.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function i(e){if(N())return;_.current();const t=Wm(s.floating);if(clearTimeout(w.current),C.current=!1,f.current&&o.current.floatingContext){n||clearTimeout(v.current),b.current=f.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){E(),j(),N()||S(e,!0,"safe-polygon")}});const r=b.current;return t.addEventListener("mousemove",r),void(_.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==y.current||!Dm(s.floating,e.relatedTarget))&&S(e)}function l(e){N()||o.current.floatingContext&&(null==f.current||f.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){E(),j(),N()||S(e)}})(e))}},[s,a,e,u,d,A,S,j,E,r,n,g,h,m,f,o,N]),Ny(()=>{var e;if(a&&n&&null!=(e=f.current)&&e.__options.blockPointerEvents&&B()){k.current=!0;const e=s.floating;if(ym(s.domReference)&&e){var t;const n=Wm(s.floating).body;n.setAttribute(Hy,"");const r=s.domReference,o=null==h||null==(t=h.nodesRef.current.find(e=>e.id===p))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[a,n,p,s,h,f,B]),Ny(()=>{n||(y.current=void 0,C.current=!1,j(),E())},[n,j,E]),ft.useEffect(()=>()=>{j(),clearTimeout(v.current),clearTimeout(w.current),E()},[a,s.domReference,j,E]);const I=ft.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){x.current||g.current||r(!0,t,"hover")}u&&!Km(y.current)||n||0===d||C.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(w.current),"touch"===y.current?o():(C.current=!0,w.current=window.setTimeout(o,d)))}}},[u,r,n,g,d]),F=ft.useMemo(()=>({onMouseEnter(){clearTimeout(v.current)},onMouseLeave(e){N()||S(e.nativeEvent,!1)}}),[S,N]);return ft.useMemo(()=>a?{reference:I,floating:F}:{},[a,I,F])}(x,{move:!1,enabled:!m&&p.includes("hover"),...f&&{handleClose:Wv()}}),C=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:s}=e,{enabled:a=!0,visibleOnly:l=!0}=t,c=ft.useRef(!1),u=ft.useRef(),d=ft.useRef(!0);ft.useEffect(()=>{if(!a)return;const e=fm(s.domReference);function t(){!n&&vm(s.domReference)&&s.domReference===Om(Wm(s.domReference))&&(c.current=!0)}function r(){d.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}},[s.domReference,n,a]),ft.useEffect(()=>{if(a)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(c.current=!0)}},[o,a]),ft.useEffect(()=>()=>{clearTimeout(u.current)},[]);const A=ft.useMemo(()=>({onPointerDown(e){Qm(e.nativeEvent)||(d.current=!1)},onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=$m(e.nativeEvent);if(l&&ym(t))try{if(Hm()&&Vm())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!d.current&&!Ym(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=ym(t)&&t.hasAttribute(zy("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout(()=>{var e;const a=Om(s.domReference?s.domReference.ownerDocument:document);(t||a!==s.domReference)&&(Dm(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,a)||Dm(s.domReference,a)||o||r(!1,n,"focus"))})}}),[i,s.domReference,r,l]);return ft.useMemo(()=>a?{reference:A}:{},[a,A])}(x,{enabled:!m&&p.includes("focus")}),B=Nv(x),S=Hv(x,{role:"tooltip"}),{getReferenceProps:j,getFloatingProps:E}=Pv([k,_,C,B,S]),{isMounted:N,styles:I}=function(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:o,common:i,duration:s=250}=t,a=e.placement,l=a.split("-")[0],c=ft.useMemo(()=>({side:l,placement:a}),[l,a]),u="number"==typeof s,d=(u?s:s.open)||0,A=(u?s:s.close)||0,[h,p]=ft.useState(()=>({...Vv(i,c),...Vv(n,c)})),{isMounted:f,status:m}=function(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,i=("number"==typeof o?o:o.close)||0,[s,a]=ft.useState("unmounted"),l=function(e,t){const[n,r]=ft.useState(e);return e&&!n&&r(!0),ft.useEffect(()=>{if(!e&&n){const e=setTimeout(()=>r(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}(n,i);return l||"close"!==s||a("unmounted"),Ny(()=>{if(r){if(n){a("initial");const e=requestAnimationFrame(()=>{a("open")});return()=>{cancelAnimationFrame(e)}}a("close")}},[n,r]),{isMounted:l,status:s}}(e,{duration:s}),g=Qy(n),y=Qy(r),v=Qy(o),b=Qy(i);return Ny(()=>{const e=Vv(g.current,c),t=Vv(v.current,c),n=Vv(b.current,c),r=Vv(y.current,c)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===m&&p(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===m&&p({transitionProperty:Object.keys(r).map(qv).join(","),transitionDuration:d+"ms",...n,...r}),"close"===m){const r=t||e;p({transitionProperty:Object.keys(r).map(qv).join(","),transitionDuration:A+"ms",...n,...r})}},[A,v,g,y,b,d,m,c]),{isMounted:f,styles:h}}(x,{duration:150,initial:{opacity:0},open:{opacity:1},close:{opacity:0}}),F={light:"bg-tooltip-background-light text-text-primary",dark:"bg-tooltip-background-dark text-text-on-color"}[e],T="dark"===e?"text-tooltip-background-dark":"text-tooltip-background-light";return(0,yt.jsxs)(ft.Fragment,{children:[(0,ft.isValidElement)(a)&&(0,yt.jsx)(ft.Fragment,{children:(0,ft.cloneElement)(a,{ref:Ua(a.ref,b.setReference),className:wa(a.props.className),...j()})},"tooltip-reference"),(0,yt.jsx)(Av,{id:u,root:c,children:N&&(0,yt.jsxs)("div",{className:wa("absolute z-20 py-2 px-3 rounded-md text-xs leading-4 shadow-soft-shadow-lg",F,"max-w-80 w-fit",l),ref:b.setFloating,style:{...w,...I},...E(),children:[(0,yt.jsxs)("div",{children:[!!n&&(0,yt.jsx)("span",{className:"font-semibold",children:n},"tooltip-title"),!!r&&(0,yt.jsx)("div",{className:"font-normal",children:r},"tooltip-content")]}),o&&(0,yt.jsx)(My,{ref:v,context:x,className:wa("fill-current",T)})]})})]})};Gv.displayName="Tooltip";const $v=(0,ft.createContext)({isCollapsed:!1,setIsCollapsed:()=>{},collapsible:!0}),Yv=({children:e,className:t,onCollapseChange:n,collapsible:r=!0,borderOn:o=!0,collapsed:i=!1,...s})=>{const a=(0,ft.useRef)(null),[l,c]=(0,ft.useState)(()=>!r&&i?i:Sa("sidebar-collapsed")||(typeof window>"u"?i:window.innerWidth<1280));return(0,ft.useEffect)(()=>{"function"==typeof n&&n(l)},[l,n]),(0,ft.useEffect)(()=>{if(!r&&i)return;const e=()=>{const e=window.innerWidth<1280;if(r)if(e)c(!0),Ba("sidebar-collapsed",!0);else{const e=Sa("sidebar-collapsed");c(e||!1)}else c(!1),(e=>{if(!(typeof window>"u"))try{localStorage.removeItem(e)}catch(e){console.error(e)}})("sidebar-collapsed")};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[r]),(0,yt.jsx)($v.Provider,{value:{isCollapsed:l,setIsCollapsed:c,collapsible:r},children:(0,yt.jsx)("nav",{ref:a,"aria-label":"Sidebar",className:wa("h-full overflow-auto w-72 px-4 py-4 gap-4 flex flex-col bg-background-primary",o&&"border-0 border-r border-solid border-border-subtle","transition-all duration-200",l&&"w-16 px-2",t),...s,children:e})})};Yv.displayName="Sidebar";const Zv=({children:e})=>(0,yt.jsx)("div",{className:"space-y-2",children:e});Zv.displayName="Sidebar.Header";const Xv=({children:e})=>(0,yt.jsx)("div",{className:wa("space-y-4 grow items-start"),children:e});Xv.displayName="Sidebar.Body";const Jv=({children:e})=>{const{isCollapsed:t,setIsCollapsed:n,collapsible:r}=(0,ft.useContext)($v);return(0,yt.jsxs)("div",{className:"space-y-4",children:[e,r&&(0,yt.jsx)("button",{className:wa("bg-transparent w-full border-0 p-0 m-0 flex items-center gap-2 text-base cursor-pointer",t&&"justify-center"),onClick:()=>{n(!t),Ba("sidebar-collapsed",!t)},"aria-label":t?"Expand sidebar":"Collapse sidebar",children:t?(0,yt.jsx)(yt.Fragment,{children:(0,yt.jsx)(Gv,{title:"Expand",children:(0,yt.jsx)(dm,{className:"size-5"})})}):(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(Am,{className:"size-5"})," Collapse"]})})]})};Jv.displayName="Sidebar.Footer";const eb=({children:e,className:t})=>(0,yt.jsx)("div",{className:wa("w-full",t),children:e});eb.displayName="Sidebar.Item";const tb=Object.assign(Yv,{Header:Zv,Body:Xv,Footer:Jv,Item:eb}),nb=e=>{const t=e?.accept_all_enabled;return!0===t||1===t||"1"===t},rb=(e,{acceptAllEnabled:t})=>{const n=Array.isArray(e)?e.slice():String(e||"").split(",").map(e=>e.trim()).filter(Boolean);return t?n:n.filter(e=>"accept_all"!==e)},ob=e=>{const t=e?.hide_unused_categories;return!0===t||1===t||"1"===t},ib=new Set(["a","strong","em","b","i","u","s","br","hr","p","ul","ol","li","span","h1","h2","h3","h4","h5","h6","blockquote","pre"]),sb={a:new Set(["href","title","target","rel"]),span:new Set(["style"]),strong:new Set,em:new Set,b:new Set,i:new Set,u:new Set,br:new Set,hr:new Set,p:new Set(["style"]),ul:new Set,ol:new Set,li:new Set},ab=e=>{if(!e)return!1;const t=e.trim();if(t.startsWith("/")||t.startsWith("#")||t.startsWith("?"))return!0;try{const e=new URL(t,window.location.origin);return["http:","https:","mailto:","tel:"].includes(e.protocol)}catch{return!1}},lb=e=>{if(3===e.nodeType&&e.nodeValue)e.nodeValue=e.nodeValue.replace(/\u00a0/g," ");else for(const t of[...e.childNodes])lb(t)},cb=(e,t)=>{if(1!==e.nodeType)return;const n=e.tagName.toLowerCase();if(!ib.has(n)){for(const n of[...e.childNodes])cb(n,t);const n=t.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.firstChild);return void e.replaceWith(n)}for(const t of[...e.attributes]){const r=t.name.toLowerCase();(sb[n]||new Set).has(r)?"a"!==n||"href"!==r||ab(t.value)?"a"===n&&"target"===r&&"_blank"!==t.value&&e.removeAttribute("target"):e.removeAttribute("href"):e.removeAttribute(t.name)}if("a"===n){const t=e.getAttribute("rel")||"",n=new Set(t.split(/\s+/).map(e=>e.trim().toLowerCase()).filter(Boolean));"_blank"===e.getAttribute("target")&&(n.add("noopener"),n.add("noreferrer")),n.add("nofollow"),e.setAttribute("rel",[...n].join(" "))}for(const n of[...e.childNodes])cb(n,t)},ub=e=>{if(!e)return"";if("undefined"==typeof window||"undefined"==typeof DOMParser)return"";const t=String(e),n=(new DOMParser).parseFromString(`<div>${t}</div>`,"text/html"),r=n.body.firstElementChild;if(!r)return"";lb(r);for(const e of[...r.childNodes])cb(e,n);return r.innerHTML},db=async e=>{if(window.navigator?.clipboard&&window.isSecureContext)return window.navigator.clipboard.writeText(e);const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-9999px",document.body.appendChild(t),t.focus(),t.select();try{if(!document.execCommand("copy"))throw new Error("execCommand copy failed")}finally{document.body.removeChild(t)}},Ab=["offline_error","fetch_error"],hb=({path:e,children:t,handlePathChange:n,activePath:r})=>{const o=r===e;return(0,yt.jsx)("button",{onClick:()=>n(e),className:jo("flex items-center justify-start gap-2.5 py-2 pl-2.5 pr-2 text-text-secondary [&_svg]:text-icon-secondary hover:bg-background-secondary rounded-md text-sm font-normal no-underline cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-primary-600 focus-visible:ring-offset-1 transition ease-in-out duration-150 w-full text-left submenu-item",o&&"bg-brand-50 text-text-primary [&_svg]:text-brand-primary-600 active-submenu-item"),role:"menuitem",tabIndex:0,children:t})},pb=({label:e,icon:t,submenu:n,handlePathChange:r,activePath:o})=>{const i=n?.some(e=>o===e.path),[s,a]=(0,ct.useState)(!0);return(0,ct.useEffect)(()=>{i&&a(!0)},[i]),(0,yt.jsxs)(um.Item,{isOpen:s,className:"border-0",children:[(0,yt.jsxs)(um.Trigger,{tag:"div",iconType:"arrow",className:jo("p-2 pl-2.5 text-sm font-medium [&_svg]:text-icon-secondary hover:bg-background-secondary rounded-md no-underline cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-primary-600 focus-visible:ring-offset-1 transition ease-in-out duration-150 [&_div]:font-medium [&_div]:text-text-secondary",i&&"[&_.surecookie-submenu-icon]:text-brand-primary-600 [&_div]:text-text-primary"),"aria-label":(0,pt.sprintf)(/* translators: %s: navigation group label */ /* translators: %s: navigation group label */
2 (0,pt.__)("%s submenu","surecookie"),e),onClick:e=>{e.preventDefault(),e.stopPropagation();const t=!s;a(t),t&&!i&&n?.[0]?.path&&r(n[0].path)},children:[t&&(0,yt.jsx)(t,{className:"size-4 surecookie-submenu-icon"}),e]}),(0,yt.jsx)(um.Content,{className:"px-2 pt-2 pb-3 [&>div>div]:pb-0",children:(0,yt.jsx)("div",{className:"border-l border-solid border-r-0 border-t-0 border-b-0 border-border-subtle pl-2 ml-1 space-y-0.5",role:"menu",children:n.map(({path:e,label:t,icon:n})=>(0,yt.jsxs)(hb,{path:e,handlePathChange:r,activePath:o,children:[n&&(0,yt.jsx)(n,{className:"size-4"}),t]},e))})})]})},fb=({section:e,links:t,handlePathChange:n,activePath:r})=>t?.length?(0,yt.jsx)(tb.Item,{arrow:!0,heading:e,open:!0,className:"space-y-1",children:t.map(({path:e,label:t,icon:o,submenu:i})=>i?.length?(0,yt.jsx)(pb,{label:t,icon:o,submenu:i,handlePathChange:n,activePath:r},e||t):(0,yt.jsxs)(hb,{path:e,handlePathChange:n,activePath:r,children:[o&&(0,yt.jsx)(o,{className:"size-4"}),t]},e))},e):null,mb=({navLinks:e=[],handlePathChange:t,activePath:n,className:r})=>(0,yt.jsx)("div",{className:jo("w-full",r),children:(0,yt.jsx)(tb,{borderOn:!0,className:"!h-auto min-h-full w-full p-4",children:(0,yt.jsx)(tb.Body,{children:(0,yt.jsx)(tb.Item,{children:e.map(({section:e,links:r})=>(0,yt.jsx)(fb,{section:e,links:r,handlePathChange:t,activePath:n},e))})})})}),gb=e=>{const{fill:t="#0FA961",...n}=e;return(0,yt.jsxs)("svg",{width:"25",height:"25",viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[(0,yt.jsx)("path",{d:"M97.0156 9.74499C120.404 0.0570803 146.141 -2.47884 170.971 2.45983C195.8 7.39873 218.609 19.59 236.51 37.4911L200.307 73.6942C189.566 62.9535 175.88 55.64 160.982 52.6766C146.085 49.7134 130.643 51.233 116.609 57.0458C102.576 62.8586 90.5814 72.7032 82.1426 85.3329C73.7038 97.9625 69.1992 112.811 69.1992 128.001C69.1992 140.594 72.2983 152.952 78.166 164.007C78.2596 164.006 78.3534 164.001 78.4473 164.001C89.4146 164.001 98.5033 172.026 100.17 182.524C105.185 179.335 111.141 177.497 117.525 177.518C133.572 177.572 146.835 189.36 149.221 204.729C153.155 204.564 157.087 204.1 160.982 203.325C175.88 200.362 189.566 193.046 200.307 182.306L236.51 218.511C218.609 236.412 195.8 248.603 170.971 253.542C146.141 258.48 120.404 255.945 97.0156 246.257C73.6273 236.569 53.6369 220.163 39.5723 199.114C25.5075 178.065 18 153.317 18 128.001C18 102.685 25.5074 77.9371 39.5723 56.8876C53.6369 35.8385 73.6272 19.433 97.0156 9.74499Z",fill:t}),(0,yt.jsx)("path",{d:"M164 140.001C170.627 140.001 176 145.373 176 152.001C176 158.628 170.627 164.001 164 164.001C157.373 164.001 152 158.628 152 152.001C152 145.373 157.373 140.001 164 140.001Z",fill:t}),(0,yt.jsx)("path",{d:"M108 108.001C114.627 108.001 120 113.373 120 120.001C120 126.628 114.627 132.001 108 132.001C101.373 132.001 96.0004 126.628 96 120.001C96 113.373 101.373 108.001 108 108.001Z",fill:t}),(0,yt.jsx)("path",{d:"M152 76.0008C158.627 76.0008 164 81.3734 164 88.0008C164 94.6279 158.627 100.001 152 100.001C145.373 100.001 140 94.6279 140 88.0008C140 81.3734 145.373 76.0008 152 76.0008Z",fill:t})]})},yb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),vb=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},bb=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),wb=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var xb={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"};const kb=(0,ft.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>(0,ft.createElement)("svg",{ref:l,...xb,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:bb("lucide",o),...!i&&!wb(a)&&{"aria-hidden":"true"},...a},[...s.map(([e,t])=>(0,ft.createElement)(e,t)),...Array.isArray(i)?i:[i]])),_b=(e,t)=>{const n=(0,ft.forwardRef)(({className:n,...r},o)=>(0,ft.createElement)(kb,{ref:o,iconNode:t,className:bb(`lucide-${yb(vb(e))}`,`lucide-${e}`,n),...r}));return n.displayName=vb(e),n},Cb=_b("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]),Bb=_b("scan",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]]),Sb=_b("boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]),jb=_b("cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]),Eb=_b("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]),Nb=_b("radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]),Ib=_b("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),Fb=_b("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),Tb=_b("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]),Lb=_b("scale",[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"m19 8 3 8a5 5 0 0 1-6 0zV7",key:"zcdpyk"}],["path",{d:"M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1",key:"1yorad"}],["path",{d:"m5 8 3 8a5 5 0 0 1-6 0zV7",key:"eua70x"}],["path",{d:"M7 21h10",key:"1b0cd5"}]]),Pb=_b("gallery-vertical-end",[["path",{d:"M7 2h10",key:"nczekb"}],["path",{d:"M5 6h14",key:"u2x4p"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}]]),Mb=_b("bolt",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]),Ob=_b("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Db=_b("handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]),Ub=_b("tool-case",[["path",{d:"M10 15h4",key:"192ueg"}],["path",{d:"m14.817 10.995-.971-1.45 1.034-1.232a2 2 0 0 0-2.025-3.238l-1.82.364L9.91 3.885a2 2 0 0 0-3.625.748L6.141 6.55l-1.725.426a2 2 0 0 0-.19 3.756l.657.27",key:"xbnumr"}],["path",{d:"m18.822 10.995 2.26-5.38a1 1 0 0 0-.557-1.318L16.954 2.9a1 1 0 0 0-1.281.533l-.924 2.122",key:"eaw7gc"}],["path",{d:"M4 12.006A1 1 0 0 1 4.994 11H19a1 1 0 0 1 1 1v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z",key:"1vaooh"}]]),Rb=_b("logs",[["path",{d:"M3 5h1",key:"1mv5vm"}],["path",{d:"M3 12h1",key:"lp3yf2"}],["path",{d:"M3 19h1",key:"w6f3n9"}],["path",{d:"M8 5h1",key:"1nxr5w"}],["path",{d:"M8 12h1",key:"1con00"}],["path",{d:"M8 19h1",key:"k7p10e"}],["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}]]),zb=_b("file-user",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M16 22a4 4 0 0 0-8 0",key:"7a83pg"}],["circle",{cx:"12",cy:"15",r:"3",key:"g36mzq"}]]),Qb=_b("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]),Hb=()=>{const e=[{section:(0,pt.__)("Dashboard","surecookie"),sectionId:"dashboard",links:[{label:(0,pt.__)("Dashboard","surecookie"),path:"/dashboard",icon:Cb,withoutSidebar:!0}]},{section:(0,pt.__)("Tracking Manager","surecookie"),sectionId:"cookie-manager",links:[{label:(0,pt.__)("Scanning","surecookie"),path:"/cookie-manager/scan",icon:Bb,submenu:[{path:"/cookie-manager/scan",label:(0,pt.__)("Manual","surecookie")},{path:"/cookie-manager/auto-scan",label:(0,pt.__)("Automatic","surecookie")}]},{label:(0,pt.__)("Known Services","surecookie"),path:"/cookie-manager/known-services",icon:Sb,fullWidth:!0},{label:(0,pt.__)("All Cookies","surecookie"),path:"/cookie-manager/create",icon:jb,fullWidth:!0},{label:(0,pt.__)("Scripts and Embeds","surecookie"),path:"/cookie-manager/scripts-and-embeds",icon:Eb,fullWidth:!0},{label:(0,pt.__)("Geographic Rules","surecookie"),path:"/cookie-manager/geo-rules",icon:Nb},{label:(0,pt.__)("Consent Sharing","surecookie"),path:"/cookie-manager/consent-sharing",icon:Ib}]},{section:(0,pt.__)("Compliance","surecookie"),sectionId:"compliance",links:[{label:(0,pt.__)("Compliance Check","surecookie"),path:"/compliance/check",icon:Fb},{label:(0,pt.__)("Business Details","surecookie"),path:"/compliance/business-details",icon:Tb},{label:(0,pt.__)("Legal Pages","surecookie"),path:"/compliance/cookie-policy",icon:Lb,submenu:[{path:"/compliance/cookie-policy",label:(0,pt.__)("Cookie Policy","surecookie")},{path:"/compliance/privacy-policy",label:(0,pt.__)("Privacy Policy","surecookie")}]}]},{section:(0,pt.__)("Settings","surecookie"),sectionId:"settings",links:[{label:(0,pt.__)("Banner","surecookie"),path:"/banner",icon:Pb,submenu:[{path:"/banner/content",label:(0,pt.__)("Content","surecookie")},{path:"/banner/layout",label:(0,pt.__)("Layout","surecookie")},{path:"/banner/visibility",label:(0,pt.__)("Visibility","surecookie")},{path:"/banner/re-consent",label:(0,pt.__)("Re-Consent","surecookie")},{path:"/banner/custom-css",label:(0,pt.__)("Custom CSS","surecookie")}]},{label:(0,pt.__)("General","surecookie"),path:"/settings/general",icon:Mb,submenu:[{path:"/settings/general/consent-data",label:(0,pt.__)("Consent & Data","surecookie")},{path:"/settings/general/preferences",label:(0,pt.__)("Preferences","surecookie")}]},{label:(0,pt.__)("Advanced","surecookie"),path:"/settings/advanced",icon:Ob,submenu:[{path:"/settings/advanced/blocked-content-ui",label:(0,pt.__)("Blocked Content UI","surecookie")}]},{label:(0,pt.__)("Consent Frameworks","surecookie"),path:"/settings/framework/google-consent-mode",icon:Db,submenu:[{path:"/settings/framework/google-consent-mode",label:(0,pt.__)("Google Consent Mode","surecookie")},{path:"/settings/framework/additional-consent",label:(0,pt.__)("Additional Consent","surecookie")},{path:"/settings/framework/iab-tcf",label:(0,pt.__)("IAB-TCF","surecookie")}]},{label:(0,pt.__)("Tools","surecookie"),path:"/settings/tools/import-export",icon:Ub,submenu:[{path:"/settings/tools/mcp",label:(0,pt.__)("MCP","surecookie")},{path:"/settings/tools/import-export",label:(0,pt.__)("Import / Export","surecookie")}]}]},{section:(0,pt.__)("Consent Logs","surecookie"),sectionId:"analytics",links:[{label:(0,pt.__)("Consent Logs","surecookie"),path:"/analytics/logs",icon:Rb,fullWidth:!0,withoutSidebar:!0}]},{section:(0,pt.__)("Data Requests","surecookie"),sectionId:"data-requests",links:[{label:(0,pt.__)("Data Requests","surecookie"),path:"/data-requests",icon:zb,fullWidth:!0,withoutSidebar:!0}]},{section:(0,pt.__)("Learn","surecookie"),sectionId:"learn",links:[{label:(0,pt.__)("Learn","surecookie"),path:"/learn",icon:Qb,withoutSidebar:!0}]}],t=(0,ht.applyFilters)("surecookie.adminNavLinks",e);return(Array.isArray(t)?t:e).map(e=>{if(!Array.isArray(e?.links))return e;const t=new Set;return e.links.forEach(e=>{Array.isArray(e?.submenu)&&e.submenu.forEach(e=>{e?.path&&t.add(e.path)})}),t.size?{...e,links:e.links.filter(e=>Array.isArray(e?.submenu)||!t.has(e?.path))}:e})},qb=({children:e,gap:t="lg",className:n,...r})=>(0,yt.jsx)("header",{className:wa("w-full box-border flex items-center justify-between bg-background-primary p-5 min-h-16",ka(t),n),...r,children:e});qb.displayName="Topbar";const Vb=({gap:e="sm",children:t,className:n})=>(0,yt.jsx)("div",{className:wa("flex items-center",ka(e),n),children:t});Vb.displayName="Topbar.Left";const Kb=({gap:e="md",children:t,align:n="center",className:r})=>{const o={left:"justify-start",center:"justify-center",right:"justify-end"}[n];return(0,yt.jsx)("div",{className:wa("flex items-center grow",ka(e),o,r),children:t})};Kb.displayName="Topbar.Middle";const Wb=({gap:e="sm",children:t,className:n})=>(0,yt.jsx)("div",{className:wa("flex items-center",ka(e),n),children:t});Wb.displayName="Topbar.Right";const Gb=({children:e,className:t})=>(0,yt.jsx)("div",{className:wa("flex items-center [&>svg]:block h-full",t),children:e});Gb.displayName="Topbar.Item",qb.Left=Vb,qb.Middle=Kb,qb.Right=Wb,qb.Item=Gb;const $b=(0,ft.forwardRef)(({children:e=null,tag:t="label",size:n="sm",className:r="",variant:o="neutral",required:i=!1,...s},a)=>{if(!e)return null;let l="";return i&&(l="after:content-['*'] after:text-field-required after:ml-0.5"),(0,yt.jsx)(t,{ref:a,className:wa("font-medium text-field-label flex items-center gap-0.5",{xs:"text-xs [&>*]:text-xs [&>svg]:h-3 [&>svg]:w-3",sm:"text-sm [&>*]:text-sm [&>svg]:h-4 [&>svg]:w-4",md:"text-base [&>*]:text-base [&>svg]:h-5 [&>svg]:w-5"}[n],{neutral:"text-field-label [&>*]:text-field-label",help:"text-field-helper [&>*]:text-field-helper",error:"text-support-error [&>*]:text-support-error",disabled:"text-field-color-disabled disabled cursor-not-allowed [&>*]:text-field-color-disabled"}[o],l,{neutral:"",help:"font-normal",error:"font-normal",disabled:""}?.[o],r),...s,children:e})});$b.displayName="Label";const Yb=({label:e,switchId:t,disabled:n=!1,children:r,size:o})=>{const i={xs:"text-xs leading-4 font-medium",sm:"text-sm leading-5 font-medium",md:"text-base leading-6 font-medium"},s={xs:"text-xs leading-4 font-normal",sm:"text-sm leading-5 font-normal",md:"text-sm leading-5 font-normal"},a={xs:"space-y-0.5",sm:"space-y-0.5",md:"space-y-1"};if((0,ft.isValidElement)(e))return(0,yt.jsxs)("div",{className:wa("inline-flex items-center gap-3","items-start"),children:[r,e]});const l=!e?.heading&&!e?.description,c=e?.heading&&e?.description?"items-start":"items-center";return l?r:(0,yt.jsxs)("div",{className:wa("inline-flex",c,"gap-3"),children:[r,(()=>{const{heading:r="",description:l=""}=e||{};return(0,yt.jsxs)("div",{className:wa("space-y-0.5",a[o]),children:[r&&(0,yt.jsx)($b,{htmlFor:t,className:wa("m-0",i[o]),...n&&{variant:"disabled"},children:r}),l&&(0,yt.jsx)($b,{tag:"p",variant:"help",className:wa("text-sm font-normal leading-5 m-0",s[o]),...n&&{variant:"disabled"},children:l})]})})()]})},Zb=(0,ft.forwardRef)(({id:e,onChange:t,value:n,defaultValue:r=!1,size:o="sm",disabled:i=!1,label:s={heading:"",description:""},name:a,className:l,...c},u)=>{const d="lg"===o?"md":o,A=(0,ft.useMemo)(()=>typeof n<"u",[n]),h=(0,ft.useMemo)(()=>e||`switch-${nm()}`,[]),[p,f]=(0,ft.useState)(r),m="primary",g=(0,ft.useCallback)(()=>A?n:p,[A,n,p]),y={primary:{input:"bg-toggle-off checked:bg-toggle-on focus:ring focus:ring-toggle-on focus:ring-offset-2 border border-solid border-toggle-off-border checked:border-toggle-on-border shadow-toggleContainer focus:outline-none checked:focus:border-toggle-on-border focus:border-toggle-off-border",toggleDial:"bg-toggle-dial-background shadow-toggleDial"}},v={md:{container:"w-11 h-6",toggleDial:"size-4 peer-checked:translate-x-5"},sm:{container:"w-10 h-5",toggleDial:"size-3 peer-checked:translate-x-5"},xs:{container:"w-8 h-4",toggleDial:"size-2.5 peer-checked:translate-x-3.75"}};return(0,yt.jsx)(Yb,{label:s,switchId:h,disabled:i,size:d,children:(0,yt.jsxs)("div",{className:wa("relative group/switch inline-block cursor-pointer rounded-full shrink-0",v[d].container,l),children:[(0,yt.jsx)("input",{ref:u,id:h,type:"checkbox",role:"switch",className:wa("peer appearance-none absolute rounded-full cursor-pointer transition-colors duration-300 h-full w-full before:content-[''] checked:before:content-[''] m-0 checked:[background-image:none]",y[m].input,i&&"bg-toggle-off-disabled disabled:border-transparent disabled:cursor-not-allowed checked:disabled:bg-toggle-on-disabled disabled:shadow-toggle-disabled",!i&&{primary:{input:"group-hover/switch:bg-toggle-off-hover checked:group-hover/switch:bg-toggle-on-hover checked:group-hover/switch:border-toggle-on-border"}}[m].input),checked:g(),onChange:e=>{if(i)return;const n=e.target.checked;A||f(n),"function"==typeof t&&t(n)},disabled:i,name:a,...c}),(0,yt.jsx)("span",{"aria-hidden":"true",className:wa("peer/toggle-dial pointer-events-none bg-white border rounded-full absolute cursor-pointer shadow-md before:content[''] before:transition-opacity before:opacity-0 hover:before:opacity-10 before:hidden border-none transition-all duration-300 top-2/4 not-rtl:left-1 rtl:right-1 -translate-y-2/4 before:w-10 before:h-10 before:rounded-full before:absolute before:top-2/4 not-rtl:before:left-2/4 rtl:before:right-2/4 before:-translate-y-2/4 before:-translate-x-2/4",v[d].toggleDial,y[m].toggleDial,i&&"peer-disabled:cursor-not-allowed",!i&&{md:"group-hover/switch:size-5 group-focus-within/switch:size-5 not-rtl:group-focus-within/switch:left-0.5 rtl:group-focus-within/switch:right-0.5 not-rtl:group-hover/switch:left-0.5 rtl:group-hover/switch:right-0.5",sm:"group-hover/switch:size-4 group-focus-within/switch:size-4 not-rtl:group-focus-within/switch:left-0.5 rtl:group-focus-within/switch:right-0.5 not-rtl:group-hover/switch:left-0.5 rtl:group-hover/switch:right-0.5",xs:"group-hover/switch:size-3.25 group-focus-within/switch:size-3.25 not-rtl:group-focus-within/switch:left-0.5 rtl:group-focus-within/switch:right-0.5 not-rtl:group-hover/switch:left-0.5 rtl:group-hover/switch:right-0.5"}[d])})]})})});Zb.displayName="Switch";const Xb=(0,ft.createContext)({}),Jb=Xb.Provider,ew=()=>(0,ft.useContext)(Xb),tw=(e,t,n)=>{if(!e||!t)return{open:()=>({}),closed:()=>({})};const r=e?.getBoundingClientRect(),o=t?.getBoundingClientRect(),i=n?r?.x-o?.x+r?.width/2:o?.width-(o?.right-r?.x)+r?.width/2,s=r?.y-o?.y+r?.height/2;return{open:(e=1e3)=>({clipPath:`circle(${2*e+200}px at ${i}px ${s}px)`,background:"rgb(255, 255, 255, 1)",transition:{type:"spring",stiffness:20,restDelta:2,background:{duration:0}}}),closed:{clipPath:`circle(${r?.width/2}px at ${i}px ${s}px)`,background:"rgb(255, 255, 255, 0)",transition:{delay:.5,type:"spring",stiffness:400,damping:40,background:{duration:0,delay:1e3}}}}},nw=e=>(0,yt.jsx)(Xf.path,{className:"stroke-icon-primary",fill:"transparent",strokeWidth:"3",strokeLinecap:"round",...e}),rw=({className:e})=>{const{toggleOpen:t,setTriggerRef:n,isOpen:r}=ew();return(0,yt.jsx)(Fa,{ref:n,className:wa("relative z-[1] rounded-full hover:shadow-sm focus:[box-shadow:none] pointer-events-auto bg-background-primary",e),variant:"ghost",size:"xs",onClick:t,"aria-label":"Toggle menu","aria-expanded":r,icon:(0,yt.jsxs)(Xf.svg,{className:"shrink-0 stroke-icon-primary",width:"23",height:"23",variants:{open:{viewBox:"0 0 20 20"},closed:{viewBox:"0 0 23 18"}},children:[(0,yt.jsx)(nw,{variants:{closed:{d:"M 2 2.5 L 20 2.5"},open:{d:"M 3 16.5 L 17 2.5"}}}),(0,yt.jsx)(nw,{d:"M 2 9.423 L 20 9.423",variants:{closed:{opacity:1},open:{opacity:0}},transition:{duration:.1}}),(0,yt.jsx)(nw,{variants:{closed:{d:"M 2 16.346 L 20 16.346"},open:{d:"M 3 2.5 L 17 16.346"}}})]})})},ow={open:{transition:{staggerChildren:.07,delayChildren:.2}},closed:{transition:{staggerChildren:.05,staggerDirection:-1}}},iw=({tag:e="a",active:t,icon:n,iconPosition:r="left",className:o,children:i,...s})=>{let a=null,l=null;const c=n&&(0,ft.isValidElement)(n)?(0,ft.cloneElement)(n,{key:"left-icon",className:wa("size-5",t?"text-brand-800":"text-icon-secondary",n.props?.className??"")}):null;switch(r){case"left":a=c;break;case"right":l=c;break;default:a=null,l=null}return(0,yt.jsx)(aw,{children:(0,yt.jsxs)(e,{className:wa("w-full no-underline hover:no-underline text-text-primary text-lg font-medium flex items-center gap-2 px-2.5 py-1.5 rounded-md hover:bg-background-secondary hover:text-text-primary focus:outline-none focus:shadow-none transition ease-in-out duration-150",t?"text-text-primary bg-background-secondary":"text-text-secondary",o),...s,children:[!!a&&a,(0,yt.jsx)("span",{className:"contents",children:i}),!!l&&l]})})},sw={open:{y:0,opacity:1,transition:{y:{stiffness:1e3,velocity:-100}}},closed:{y:50,opacity:0,transition:{y:{stiffness:1e3}}}},aw=({children:e})=>(0,yt.jsx)(Xf.li,{className:"m-0 p-0 flex items-center justify-start w-full",variants:sw,whileHover:{scale:1.05},whileTap:{scale:.95},children:e}),lw=({children:e,className:t})=>{const{triggerRef:n,triggerOnRight:r,triggerOnLeft:o}=ew(),[i,s]=(0,ft.useState)(null);return n?(0,yt.jsxs)(Xf.div,{ref:s,className:wa("absolute top-0 bottom-0 w-80 h-screen",r?"right-0":"left-0",t),children:[i&&(0,yt.jsx)(Xf.div,{className:wa("bg-background-primary shadow-lg absolute top-0 bottom-0 w-80 border-y-0 border-l-0 border-r border-solid border-border-subtle",r?"right-0":"left-0"),variants:tw(n,i,o??!1)}),(0,yt.jsx)(Xf.ul,{variants:ow,className:wa("relative mt-14 mb-0 w-full px-5 pb-5 pt-2 flex flex-col items-start justify-start gap-0.5",t),children:e})]}):null},cw=({className:e,children:t})=>{const[n,r]=function(...e){const t=(0,ft.useRef)(0),[n,r]=(0,ft.useState)(e[t.current]),o=(0,ft.useCallback)(n=>{t.current="number"!=typeof n?((e,t,n)=>{const r=t-0;return((n-0)%r+r)%r+0})(0,e.length,t.current+1):n,r(e[t.current])},[e.length,...e]);return[n,o]}(!1,!0),[o,i]=(0,ft.useState)(null),s=(0,ft.useRef)(null),{height:a}=(e=>{const t=(0,ft.useRef)({width:0,height:0});return(0,ft.useEffect)(()=>{e.current&&(t.current.width=e.current.offsetWidth,t.current.height=e.current.offsetHeight)},[]),t.current})(s),{isRight:l=!1,isLeft:c=!0}=(e=>{if(!e)return{error:"Element not found."};const t=e.getBoundingClientRect(),n=window.innerWidth,r=n/2,o=t.right<r,i=t.left>r;return{isLeft:o,isRight:i,isCenter:!o&&!i,elementRect:{left:t.left,right:t.right,width:t.width},viewport:{width:n,center:r}}})(o);return(0,yt.jsx)(Jb,{value:{isOpen:n,toggleOpen:r,setTriggerRef:e=>{(0,ft.startTransition)(()=>{i(e)})},triggerRef:o,triggerOnRight:l,triggerOnLeft:c},children:(0,yt.jsx)("div",{className:wa("size-6 z-[1]",e),children:(0,yt.jsx)(Xf.nav,{className:"h-full",initial:!1,animate:n?"open":"closed",custom:a,variants:{open:{pointerEvents:"auto"},closed:{pointerEvents:"none"}},ref:s,children:t})})})};cw.displayName="HamburgerMenu",rw.displayName="HamburgerMenu.Toggle",lw.displayName="HamburgerMenu.Options",iw.displayName="HamburgerMenu.Option",cw.Options=lw,cw.Option=iw,cw.Toggle=rw;const uw=(0,ft.forwardRef)(({label:e="",size:t="sm",className:n="",type:r="pill",variant:o="neutral",icon:i=null,disabled:s=!1,onClose:a=()=>{},closable:l=!1,onMouseDown:c=()=>{},disableHover:u=!1},d)=>{const A={neutral:"bg-badge-background-gray text-badge-color-gray border-badge-border-gray",red:"bg-badge-background-red text-badge-color-red border-badge-border-red",yellow:"bg-badge-background-yellow text-badge-color-yellow border-badge-border-yellow",green:"bg-badge-background-green text-badge-color-green border-badge-border-green",blue:"bg-badge-background-sky text-badge-color-sky border-badge-border-sky",inverse:"bg-background-inverse text-text-inverse border-background-inverse",disabled:"bg-badge-background-disabled text-badge-color-disabled border-badge-border-disabled disabled cursor-not-allowed"};let h="",p="group relative justify-center flex items-center cursor-pointer";const f={xxs:"[&>svg]:size-3",xs:"[&>svg]:size-3",sm:"[&>svg]:size-3",md:"[&>svg]:size-4",lg:"[&>svg]:size-5"};return s?(h=A.disabled,p+=" cursor-not-allowed disabled"):h=A[o],e?(0,yt.jsxs)("span",{className:wa("font-medium border-badge-border-gray flex items-center justify-center border border-solid box-border max-w-full transition-colors duration-150 ease-in-out",{xxs:"py-0.5 px-0.5 text-xs h-4",xs:"py-0.5 px-1 text-xs h-5",sm:"py-1 px-1.5 text-xs h-6",md:"py-1 px-1.5 text-sm h-7",lg:"py-1 px-1.5 text-base h-8"}[t],{pill:"rounded-full",rounded:"rounded"}[r],"gap-0.5",h,!u&&{neutral:"hover:bg-badge-hover-gray",red:"hover:bg-badge-hover-red",yellow:"hover:bg-badge-hover-yellow",green:"hover:bg-badge-hover-green",blue:"hover:bg-badge-hover-sky",inverse:"hover:bg-badge-hover-inverse",disabled:"hover:bg-badge-hover-disabled"}[o],n),ref:d,children:[i?(0,yt.jsx)("span",{className:wa("justify-center flex items-center",f[t]),children:i}):null,(0,yt.jsx)("span",{className:"px-1 truncate inline-block",children:e}),l&&(0,yt.jsxs)("button",{type:"button",className:wa(p,f[t],"bg-transparent border-none p-0 m-0"),onMouseDown:c,"aria-label":`Remove ${e}`,disabled:s,...!s&&{onClick:a},children:[(0,yt.jsx)(Ss,{"aria-hidden":"true"}),(0,yt.jsx)("span",{className:"absolute -inset-1"})]})]}):null});uw.displayName="Badge";const dw=(0,ft.createContext)({}),Aw=()=>(0,ft.useContext)(dw),hw={open:{opacity:1},exit:{opacity:0}},pw={duration:.2},fw=({open:e,setOpen:t,children:n,trigger:r=null,className:o,exitOnClickOutside:i=!1,exitOnEsc:s=!0,design:a="simple",scrollLock:l=!0})=>{const c=void 0!==e&&void 0!==t,[u,d]=(0,ft.useState)(!1),A=(0,ft.useRef)(null),h=(0,ft.useRef)(null),p=(0,ft.useId)(),f=`${p}-title`,m=`${p}-description`,g=(0,ft.useRef)(!1),y=(0,ft.useRef)(!1),v=(0,ft.useMemo)(()=>c?e:u,[e,u]),b=(0,ft.useMemo)(()=>c?t:d,[d,t]),{refs:w,context:x}=Iv({open:v,onOpenChange:b}),k=Bv(x),_=Nv(x,{enabled:i||s,escapeKey:s,outsidePress:e=>!!i&&!e?.target?.closest("ul.fui-toast-container")}),C=Hv(x,{role:"dialog"}),{getFloatingProps:B}=Pv([k,_,C]),S=()=>{v||b(!0)},j=(0,ft.useCallback)(()=>(0,ft.isValidElement)(r)?(0,ft.cloneElement)(r,{onClick:xa(S,r?.props?.onClick),ref:w.setReference,"aria-haspopup":"dialog","aria-expanded":v}):"function"==typeof r?r({onClick:S,"aria-haspopup":"dialog","aria-expanded":v}):null,[r,S,w.setReference,v]);return(0,yt.jsxs)(yt.Fragment,{children:[j(),(0,yt.jsx)(dw.Provider,{value:{open:v,setOpen:b,handleClose:()=>{v&&b(!1)},design:a,context:x,getFloatingProps:B,refs:w,dialogContainerRef:h,dialogRef:A,scrollLock:l,className:o,titleId:f,descriptionId:m,hasTitleRef:g,hasDescriptionRef:y},children:n})]})};fw.displayName="Dialog";const mw=({children:e,className:t,ariaLabel:n})=>{const{open:r,handleClose:o,context:i,getFloatingProps:s,dialogRef:a,scrollLock:l,dialogContainerRef:c,className:u,refs:d,titleId:A,descriptionId:h,hasTitleRef:p,hasDescriptionRef:f}=Aw();return(0,yt.jsx)(il,{children:r&&(0,yt.jsx)(kv,{ref:c,lockScroll:l,className:wa("z-999999",u),"aria-modal":"true",children:(0,yt.jsx)(bv,{context:i,...d?.reference&&{returnFocus:d.reference},children:(0,yt.jsx)(Xf.div,{className:"fixed inset-0 overflow-y-auto",initial:"exit",animate:"open",exit:"exit",variants:hw,role:"dialog","aria-modal":"true","aria-label":p?.current?void 0:n,"aria-labelledby":p?.current?A:void 0,"aria-describedby":f?.current?h:void 0,transition:pw,children:(0,yt.jsx)("div",{className:"flex items-center justify-center min-h-full",children:(0,yt.jsx)("div",{ref:e=>{e&&(a.current=e,i&&i.refs.setFloating(e))},...s?.(),className:wa("flex flex-col gap-5 w-120 h-fit bg-background-primary border border-solid border-border-subtle rounded-xl shadow-soft-shadow-2xl my-5 overflow-hidden",t),children:"function"==typeof e?e({close:o}):e})})})})})})};mw.displayName="Dialog.Panel";const gw=({children:e,...t})=>(0,yt.jsx)(Av,{...t,children:e});gw.displayName="Dialog.Portal";const yw=({className:e,...t})=>{const{open:n,dialogContainerRef:r}=Aw();return r?.current?(0,yt.jsx)(yt.Fragment,{children:(0,As.createPortal)((0,yt.jsx)(il,{children:n&&(0,yt.jsx)(Xf.div,{className:wa("fixed inset-0 -z-10 bg-background-inverse/90",e),...t,initial:"exit",animate:"open",exit:"exit",variants:hw,transition:pw})}),r.current)}):null};yw.displayName="Dialog.Backdrop";const vw=({children:e,className:t,...n})=>(0,yt.jsx)("div",{className:wa("space-y-2 px-5 pt-5 pb-1",t),...n,children:e});vw.displayName="Dialog.Header";const bw=({children:e,as:t="h3",className:n,...r})=>{const{titleId:o,hasTitleRef:i}=Aw();return(0,ft.useEffect)(()=>(i&&(i.current=!0),()=>{i&&(i.current=!1)}),[i]),(0,yt.jsx)(t,{id:o,className:wa("text-base font-semibold text-text-primary m-0 p-0",n),...r,children:e})};bw.displayName="Dialog.Title";const ww=({children:e,as:t="p",className:n,...r})=>{const{descriptionId:o,hasDescriptionRef:i}=Aw();return(0,ft.useEffect)(()=>(i&&(i.current=!0),()=>{i&&(i.current=!1)}),[i]),(0,yt.jsx)(t,{id:o,className:wa("text-sm font-normal text-text-secondary my-0 ml-0 mr-1 p-0",n),...r,children:e})};ww.displayName="Dialog.Description";const xw=({className:e,...t})=>(0,yt.jsx)("button",{className:wa("bg-transparent inline-flex justify-center items-center border-0 p-1 m-0 cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-border-strong outline-none shadow-none",e),"aria-label":"Close dialog",...t,children:(0,yt.jsx)(Ss,{className:"size-4 text-text-primary shrink-0"})}),kw=({children:e,as:t=ft.Fragment,...n})=>{const{handleClose:r}=Aw();return e?t===ft.Fragment?"function"==typeof e?e({close:r}):(0,ft.cloneElement)(e,{onClick:r}):(0,yt.jsx)(t,{...n,onClick:r,"aria-label":"Close dialog",children:e}):(0,yt.jsx)(xw,{onClick:r,...n})};kw.displayName="Dialog.CloseButton";const _w=({children:e,className:t,...n})=>(0,yt.jsx)("div",{className:wa("px-5",t),...n,children:e});_w.displayName="Dialog.Body";const Cw=({children:e,className:t})=>{const{design:n,handleClose:r}=Aw();return(0,yt.jsx)("div",{className:wa("p-4 flex justify-end gap-3",{"bg-background-secondary":"footer-divided"===n},t),children:e?"function"==typeof e?e({close:r}):e:null})};Cw.displayName="Dialog.Footer",fw.Panel=mw,fw.Portal=gw,fw.Title=bw,fw.Description=ww,fw.CloseButton=kw,fw.Header=vw,fw.Body=_w,fw.Footer=Cw,fw.Backdrop=yw;const Bw={400:"font-normal",500:"font-medium",600:"font-semibold",700:"font-bold"},Sw={36:"text-4xl",30:"text-3xl",24:"text-2xl",20:"text-xl",18:"text-lg",16:"text-base",14:"text-sm",12:"text-xs"},jw={44:"leading-11",38:"leading-9.5",32:"leading-8",30:"leading-7.5",28:"leading-7",24:"leading-6",20:"leading-5",16:"leading-4"},Ew={2:"tracking-2"},Nw={brand600:"text-brand-primary-600",link:"text-link-primary",primary:"text-text-primary",secondary:"text-text-secondary",tertiary:"text-text-tertiary",disabled:"text-text-disabled",help:"text-field-helper",label:"text-field-label",info:"text-support-info",success:"text-support-success",warning:"text-support-warning",error:"text-support-error",inverse:"text-text-on-color"},Iw=(0,ft.forwardRef)(function({as:e,children:t,weight:n,size:r,lineHeight:o,letterSpacing:i,color:s="primary",className:a,...l},c){return(0,yt.jsx)(e||"p",{ref:c,className:wa("m-0 p-0",n?Bw[n]:"",r?Sw[r]:"",o?jw[o]:"",i?Ew[i]:"",s?Nw[s]:"",a),...l,children:t})}),Fw=Bs("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Tw=({variant:e="primary",size:t="md",icon:n=null,className:r=""})=>{const o={primary:"text-brand-primary-600",secondary:"text-background-primary"}[e],i={sm:"[&>svg]:size-4",md:"[&>svg]:size-5",lg:"[&>svg]:size-6",xl:"[&>svg]:size-8"}[t];return(0,yt.jsx)("span",{role:"status","aria-label":"Loading",className:wa("flex",i,o,r),children:n||(0,yt.jsx)(Fw,{className:"animate-spin shrink-0","aria-hidden":"true"})})};var Lw;function Pw(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:s,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);const o=s.prototype,i=Object.keys(o);for(let e=0;e<i.length;e++){const t=i[e];t in n||(n[t]=o[t].bind(n))}}const o=n?.Parent??Object;class i extends o{}function s(e){var t;const o=n?.Parent?new i:this;r(o,e),(t=o._zod).deferred??(t.deferred=[]);for(const e of o._zod.deferred)e();return o}return Object.defineProperty(i,"name",{value:e}),Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:t=>!!(n?.Parent&&t instanceof n.Parent)||t?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}Symbol("zod_brand");class Mw extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ow extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(Lw=globalThis).__zod_globalConfig??(Lw.__zod_globalConfig={});const Dw=globalThis.__zod_globalConfig;function Uw(e){return e&&Object.assign(Dw,e),Dw}function Rw(e){const t=Object.values(e).filter(e=>"number"==typeof e),n=Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t);return n}function zw(e,t){return"bigint"==typeof t?t.toString():t}function Qw(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Hw(e){return null==e}function qw(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const Vw=Symbol("evaluating");function Kw(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Vw)return void 0===r&&(r=Vw,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Ww(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Gw(...e){const t={};for(const n of e){const e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function $w(e){return JSON.stringify(e)}const Yw="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Zw(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}const Xw=Qw(()=>{if(Dw.jitless)return!1;if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function Jw(e){if(!1===Zw(e))return!1;const t=e.constructor;if(void 0===t)return!0;if("function"!=typeof t)return!0;const n=t.prototype;return!1!==Zw(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}function ex(e){return Jw(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const tx=new Set(["string","number","symbol"]);function nx(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function rx(e,t,n){const r=new e._zod.constr(t??e._zod.def);return t&&!n?.parent||(r._zod.parent=e),r}function ox(e){const t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(void 0!==t?.message){if(void 0!==t?.error)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,"string"==typeof t.error?{...t,error:()=>t.error}:t}function ix(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(!0!==e.issues[n]?.continue)return!0;return!1}function sx(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(!1===e.issues[n]?.continue)return!0;return!1}function ax(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function lx(e){return"string"==typeof e?e:e?.message}function cx(e,t,n){const r=e.message?e.message:lx(e.inst?._zod.def?.error?.(e))??lx(t?.error?.(e))??lx(n.customError?.(e))??lx(n.localeError?.(e))??"Invalid input",{inst:o,continue:i,input:s,...a}=e;return a.path??(a.path=[]),a.message=r,t?.reportInput&&(a.input=s),a}function ux(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function dx(...e){const[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,Number.MAX_VALUE,Number.MAX_VALUE;const Ax=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,zw,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},hx=Pw("$ZodError",Ax),px=Pw("$ZodError",Ax,{Parent:Error}),fx=(e,t)=>{hx.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>function(e,t=e=>e.message){const n={_errors:[]},r=(e,o=[])=>{for(const i of e.issues)if("invalid_union"===i.code&&i.errors.length)i.errors.map(e=>r({issues:e},[...o,...i.path]));else if("invalid_key"===i.code)r({issues:i.issues},[...o,...i.path]);else if("invalid_element"===i.code)r({issues:i.issues},[...o,...i.path]);else{const e=[...o,...i.path];if(0===e.length)n._errors.push(t(i));else{let r=n,o=0;for(;o<e.length;){const n=e[o];o===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(i))):r[n]=r[n]||{_errors:[]},r=r[n],o++}}}};return r(e),n}(e,t)},flatten:{value:t=>function(e,t=e=>e.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,zw,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,zw,2)}},isEmpty:{get:()=>0===e.issues.length}})},mx=Pw("ZodError",fx),gx=Pw("ZodError",fx,{Parent:Error}),yx={focusOnError:!1,validationMode:"onSubmit",reValidateMode:"onChange",defaultValues:void 0,focusOrder:void 0},vx=({createMutation:e,updateMutation:t,deleteMutation:n})=>{const r=(0,ct.useMemo)(()=>(e?.isPending??!1)||(t?.isPending??!1),[e?.isPending,t?.isPending]),o=(0,ct.useMemo)(()=>n?.isPending??!1,[n?.isPending]),i=(0,ct.useMemo)(()=>r||o,[r,o]),s=e?.error??null,a=t?.error??null,l=n?.error??null,c=(0,ct.useMemo)(()=>!!(s||a||l),[s,a,l]);return{isSaving:r,isDeleting:o,isLoading:i,hasError:c,createError:s,updateError:a,deleteError:l,mutations:{create:e,update:t,delete:n}}};Object.freeze({FINISH:"finish",USER_DETAILS_NEXT:"user_details_next",USER_DETAILS_SKIP:"user_details_skip"});new Set,(()=>{const{ai_authenticated:e}=window.surecookieOnboardingData||{}})();let bx={isAuthenticated:!0===window?.surecookieAdminData?.ai_authenticated||"true"===window?.surecookieAdminData?.ai_authenticated||"1"===window?.surecookieAdminData?.ai_authenticated||1===window?.surecookieAdminData?.ai_authenticated,email:window?.surecookieAdminData?.ai_auth_email||""};const wx=new Set,xx=e=>{bx={...bx,...e},wx.forEach(e=>e())},kx=e=>(wx.add(e),()=>wx.delete(e)),Cx=()=>bx,Bx=()=>{const e=(0,ct.useSyncExternalStore)(kx,Cx),[t,n]=(0,ct.useState)(!1),r=(0,ct.useCallback)(async()=>{try{const e=await Hn();e?.success&&e?.is_authenticated&&(xx({isAuthenticated:!0,email:e?.email||""}),window?.surecookieAdminData&&(window.surecookieAdminData.ai_authenticated=!0,window.surecookieAdminData.ai_auth_email=e?.email||""))}catch(e){console.error("SureCookie: Auth verification failed after successful polling.",e)}n(!1)},[]),o=(0,ct.useCallback)(()=>{n(!1)},[]),{openAuthPopup:i}=((e,t=null,n={})=>{const{pollingInterval:r=2e3,maxPollingTime:o=3e5}=n,i=(0,ct.useRef)(null),s=(0,ct.useRef)(null),a=(0,ct.useRef)(null),l=(0,ct.useRef)(!1),c=(0,ct.useRef)(null),u=(0,ct.useRef)(!1);(0,ct.useEffect)(()=>()=>{i.current&&clearInterval(i.current),c.current&&clearInterval(c.current)},[]);const d=()=>{i.current&&(clearInterval(i.current),i.current=null),c.current&&(clearInterval(c.current),c.current=null),a.current=null,l.current=!1},A=async()=>{try{if(Date.now()-a.current>o)return d(),At.error((0,pt.__)("Authentication timeout. Please try again.","surecookie")),void(t&&t());const n=await Fn()({path:"/surecookie/v1/auth"});if(!n?.success)return;n?.is_authenticated&&(u.current=!0,d(),s.current&&!s.current.closed&&s.current.close(),e&&e(),At.success((0,pt.__)("Authentication successful!","surecookie")))}catch(e){At.error((0,pt.__)("An error occurred during authentication","surecookie"),{description:e?.message||"",autoDismiss:!1})}},h=(e=null)=>{d(),l.current=!1,u.current=!1,e&&(s.current=e),a.current=Date.now(),i.current=setInterval(A,r),s.current&&(c.current=setInterval(async()=>{s.current?.closed&&(l.current=!0,c.current&&(clearInterval(c.current),c.current=null),await A(),u.current||(d(),At.error((0,pt.__)("Authentication cancelled. Please try again.","surecookie")),t&&t()))},1e3))},p=(e,t)=>{const n=document.createElement("form");n.action=e.action_url,n.method=(e.method||"POST").toUpperCase(),t&&(n.target=t),n.style.display="none",Object.entries(e.fields).forEach(([e,t])=>{const r=document.createElement("input");r.type="hidden",r.name=e,r.value=t,n.appendChild(r)}),document.body.appendChild(n),n.submit(),document.body.removeChild(n)},f=null!==i.current;return{startPolling:h,stopPolling:d,openAuthPopup:e=>{if(!e||!e.action_url||!e.fields)return null;const t="surecookie_auth",n=window.open("about:blank",t,"fullscreen=yes,scrollbars=yes,resizable=yes");return!n||n.closed?(p(e,null),null):(p(e,t),h(n),n)},isPolling:f}})(r,o),s=(0,ct.useCallback)(async()=>{if(!t&&!e.isAuthenticated){n(!0);try{const e=await Hn();if(e?.success&&e?.is_authenticated)return xx({isAuthenticated:!0,email:e?.email||""}),window?.surecookieAdminData&&(window.surecookieAdminData.ai_authenticated=!0,window.surecookieAdminData.ai_auth_email=e?.email||""),void n(!1);e?.success&&e?.action_url?i(e):n(!1)}catch(e){n(!1)}}},[t,e.isAuthenticated,i]);return{isAuthenticated:e.isAuthenticated,email:e.email,isConnecting:t,handleConnect:s}},Sx=({title:e,description:t,className:n,titleAction:r})=>(0,yt.jsxs)("div",{className:jo("space-y-0.5",n),children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,yt.jsx)(Iw,{as:"h2",size:20,weight:600,color:"primary",children:e}),r]}),t&&(0,yt.jsx)(Iw,{as:"p",size:14,color:"secondary",children:t})]}),jx=({isOpen:e,onClose:t,onConfirm:n,title:r,description:o,isDeleting:i=!1,cancelLabel:s,confirmLabel:a,className:l="gap-4 w-[512px]",children:c})=>(0,yt.jsxs)(fw,{open:e,setOpen:e=>{e||i||t()},children:[(0,yt.jsx)(fw.Backdrop,{}),(0,yt.jsxs)(fw.Panel,{className:l,children:[(0,yt.jsxs)(fw.Header,{children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,yt.jsx)(fw.Title,{children:r}),(0,yt.jsx)(fw.CloseButton,{type:"button"})]}),(0,yt.jsx)(fw.Description,{children:o})]}),c&&(0,yt.jsx)(fw.Body,{children:c}),(0,yt.jsxs)(fw.Footer,{children:[(0,yt.jsx)(Fa,{variant:"outline",onClick:()=>{i||t()},children:s||(0,pt.__)("Cancel","surecookie")}),(0,yt.jsx)(Fa,{onClick:()=>{i||n()},destructive:!0,icon:i?(0,yt.jsx)(Tw,{variant:"secondary"}):null,iconPosition:"left",children:a||(0,pt.__)("Delete","surecookie")})]})]})]}),Ex=(e={})=>{const t={isOpen:!1,entity:null,deleting:!1,...e},[n,r]=(0,ct.useState)(t),o=(0,ct.useCallback)((e,t={})=>{r({isOpen:!0,entity:e,deleting:!1,...t})},[]),i=(0,ct.useCallback)(()=>{r(t)},[t]),s=(0,ct.useCallback)((e=!0)=>{r(t=>({...t,deleting:e}))},[]),a=(0,ct.useCallback)(async(e,t)=>{if(n.entity){r(e=>({...e,deleting:!0}));try{await e(t),i()}catch(e){throw r(e=>({...e,deleting:!1})),e}}},[n.entity,i]),l=(0,ct.useCallback)(e=>{r(t=>"function"==typeof e?e(t):{...t,...e})},[]);return{...n,setDialog:r,open:o,close:i,setDeleting:s,confirmDelete:a,update:l}},Nx={left:{open:{x:0},exit:{x:"-100%"}},right:{open:{x:0},exit:{x:"100%"}}},Ix=({children:e,className:t,ariaLabel:n})=>{const{open:r,position:o,handleClose:i,transitionDuration:s,getFloatingProps:a,drawerContainerRef:l,scrollLock:c,context:u,className:d,refs:A,titleId:h,descriptionId:p,hasTitleRef:f,hasDescriptionRef:m}=Qx();return u&&a?(0,yt.jsx)(il,{children:r&&(0,yt.jsx)(kv,{ref:l,lockScroll:c,className:wa("z-50",d),children:(0,yt.jsx)(bv,{context:u,modal:!0,...A?.reference&&{returnFocus:A.reference},children:(0,yt.jsx)("div",{className:"fixed inset-0 overflow-hidden",children:(0,yt.jsx)("div",{className:"relative inset-0 h-full flex items-center",children:(0,yt.jsx)("div",{className:wa("flex items-center justify-center h-full w-full",{"justify-start":"left"===o,"justify-end":"right"===o}),children:(0,yt.jsx)(Xf.div,{className:wa("flex flex-col w-120 h-full bg-background-primary shadow-2xl overflow-hidden z-20",t),initial:"exit",animate:"open",exit:"exit",variants:Nx[o],transition:s,ref:e=>{setTimeout(()=>{A?.setFloating(e)},1e3*((s?.duration||.3)+.1))},"aria-label":f?.current?void 0:n,"aria-labelledby":f?.current?h:void 0,"aria-describedby":m?.current?p:void 0,role:"dialog","aria-modal":"true",...a?.(),children:"function"==typeof e?e({close:i}):e})})})})})})}):null};Ix.displayName="Drawer.Panel";const Fx=({children:e,className:t,...n})=>(0,yt.jsx)("div",{className:wa("space-y-2 px-5 pt-5 pb-4",t),...n,children:e});Fx.displayName="Drawer.Header";const Tx=({children:e,as:t="h3",className:n,...r})=>{const{titleId:o,hasTitleRef:i}=Qx();return(0,ft.useEffect)(()=>(i&&(i.current=!0),()=>{i&&(i.current=!1)}),[i]),(0,yt.jsx)(t,{id:o,className:wa("text-base font-semibold text-text-primary m-0 p-0",n),...r,children:e})};Tx.displayName="Drawer.Title";const Lx=({children:e,as:t="p",className:n,...r})=>{const{descriptionId:o,hasDescriptionRef:i}=Qx();return(0,ft.useEffect)(()=>(i&&(i.current=!0),()=>{i&&(i.current=!1)}),[i]),(0,yt.jsx)(t,{id:o,className:wa("text-sm font-normal text-text-secondary my-0 ml-0 mr-1 p-0",n),...r,children:e})};Lx.displayName="Drawer.Description";const Px=({children:e,className:t,...n})=>(0,yt.jsx)("div",{className:wa("px-5 pb-4 pt-2 flex flex-col flex-1 overflow-y-auto overflow-x-hidden",t),...n,children:e});Px.displayName="Drawer.Body";const Mx=({children:e,className:t})=>{const{design:n,handleClose:r}=Qx();return(0,yt.jsx)("div",{className:wa("px-5 py-4 flex justify-end gap-3 mt-auto",{"bg-background-secondary":"footer-divided"===n,"border-t border-b-0 border-x-0 border-solid border-border-subtle":"footer-bordered"===n},t),children:e?"function"==typeof e?e({close:r}):e:null})};Mx.displayName="Drawer.Footer";const Ox=({className:e,...t})=>(0,yt.jsx)("button",{className:wa("bg-transparent inline-flex justify-center items-center border-0 p-1 m-0 cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-border-strong outline-none shadow-none",e),"aria-label":"Close drawer",...t,children:(0,yt.jsx)(Ss,{className:"size-4 text-text-primary shrink-0"})}),Dx=({children:e,as:t=ft.Fragment,...n})=>{const{handleClose:r}=Qx();return e?t===ft.Fragment?"function"==typeof e?e({close:r}):(0,ft.isValidElement)(e)?(0,ft.cloneElement)(e,{onClick:r}):(0,yt.jsx)(Ox,{onClick:r,...n}):(0,yt.jsx)(t,{...n,onClick:r,children:e}):(0,yt.jsx)(Ox,{onClick:r,...n})};Dx.displayName="Drawer.CloseButton";const Ux={open:{opacity:1},exit:{opacity:0}},Rx=({className:e,...t})=>{const{open:n,drawerContainerRef:r,transitionDuration:o}=Qx(),[i,s]=(0,ft.useState)(null);(0,ft.useEffect)(()=>{r?.current&&s(r.current)},[n,r]);const a=(0,yt.jsx)(il,{mode:"wait",children:n&&(0,ft.createElement)(Xf.div,{className:wa("fixed inset-0 -z-10 bg-background-inverse/90",e),...t,initial:"exit",animate:"open",exit:"exit",variants:Ux,transition:o,key:"backdrop"})});return i?(0,As.createPortal)(a,i):a};Rx.displayName="Drawer.Backdrop";const zx=(0,ft.createContext)({}),Qx=()=>(0,ft.useContext)(zx),Hx=({open:e,setOpen:t,children:n,trigger:r,className:o,exitOnClickOutside:i=!1,exitOnEsc:s=!0,design:a="simple",position:l="right",transitionDuration:c=.2,scrollLock:u=!0})=>{const d=void 0!==e&&void 0!==t,[A,h]=(0,ft.useState)(!1),p=(0,ft.useRef)(null),f=(0,ft.useId)(),m=`${f}-title`,g=`${f}-description`,y=(0,ft.useRef)(!1),v=(0,ft.useRef)(!1),b=(0,ft.useMemo)(()=>d?e:A,[e,A,d]),w=(0,ft.useMemo)(()=>d?t:h,[t,h,d]),x=()=>{b||w(!0)},{refs:k,context:_}=Iv({open:b,onOpenChange:w,transform:!1}),C=Nv(_,{enabled:s||i,escapeKey:s,outsidePress:e=>!!i&&!e?.target?.closest("ul.fui-toast-container")}),B=Hv(_,{role:"dialog"}),S=Bv(_),{getFloatingProps:j}=Pv([C,B,S]),E=(0,ft.useCallback)(()=>(0,ft.isValidElement)(r)?(0,ft.cloneElement)(r,{onClick:xa(x,r.props.onClick),ref:k.setReference,"aria-haspopup":"dialog","aria-expanded":b}):"function"==typeof r?r({onClick:x,"aria-haspopup":"dialog","aria-expanded":b}):null,[r,x,k.setReference]);return(0,yt.jsxs)(yt.Fragment,{children:[E(),(0,yt.jsx)(zx.Provider,{value:{open:b,setOpen:w,handleClose:()=>{b&&w(!1)},design:a,position:l,drawerContainerRef:p,transitionDuration:{duration:c},getFloatingProps:j,scrollLock:u,context:_,className:o,refs:k,titleId:m,descriptionId:g,hasTitleRef:y,hasDescriptionRef:v},children:n})]})};Hx.displayName="Drawer",Hx.Panel=Ix,Hx.Header=Fx,Hx.Title=Tx,Hx.Description=Lx,Hx.Body=Px,Hx.CloseButton=Dx,Hx.Footer=Mx,Hx.Backdrop=Rx,Hx.Portal=({children:e,...t})=>(0,yt.jsx)(Av,{...t,children:e});const qx=({isOpen:e,setIsOpen:t,title:n,description:r,saveLabel:o,cancelLabel:i,onSave:s,onCancel:a,isSaving:l=!1,bodyClassName:c="overflow-x-hidden py-6 px-5 space-y-4 flex-none",panelClassName:u="",headerClassName:d="",headerActions:A,children:h})=>{const p=(0,ct.useId)();return(0,yt.jsxs)(Hx,{design:"simple",exitOnEsc:!0,position:"right",scrollLock:!0,setOpen:t,open:e,transitionDuration:.15,className:"z-999999",children:[(0,yt.jsxs)(Hx.Panel,{className:jo("overflow-y-auto max-h-full",u),"aria-labelledby":p,children:[(0,yt.jsxs)(Hx.Header,{className:jo("border-b border-border-subtle",d),children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,yt.jsx)(Hx.Title,{id:p,children:n}),(0,yt.jsxs)("div",{className:"flex items-center gap-2",children:[A,(0,yt.jsx)(Hx.CloseButton,{})]})]}),r&&(0,yt.jsx)(Iw,{as:"p",size:12,color:"tertiary",children:r})]}),(0,yt.jsx)(Hx.Body,{className:c,children:h}),s&&a&&(0,yt.jsxs)(Hx.Footer,{className:"mt-0 justify-start pt-2",children:[(0,yt.jsx)(Fa,{size:"sm",onClick:()=>{"function"!=typeof s||l||s()},variant:"primary",icon:l?(0,yt.jsx)(Tw,{variant:"secondary"}):null,iconPosition:"left",children:o||(0,pt.__)("Save","surecookie")}),(0,yt.jsx)(Fa,{size:"sm",onClick:()=>{"function"!=typeof a||l||a()},variant:"outline",children:i||(0,pt.__)("Cancel","surecookie")})]})]}),(0,yt.jsx)(Hx.Backdrop,{})]})},Vx=({schema:e,defaultValues:t,idKey:n="id",formOptions:r={}})=>{const[o,i]=(0,ct.useState)(!1),[s,a]=(0,ct.useState)("add"),[l,c]=(0,ct.useState)(null),{formData:u,errors:d,validateForm:A,updateField:h,setFormDataWithReset:p,register:f,handleSubmit:m,setFocus:g}=((e,t={},n={})=>{const r={...yx,...n},{focusOnError:o,validationMode:i,reValidateMode:s,defaultValues:a,focusOrder:l}=r,c=(0,ct.useMemo)(()=>a||t,[a,t]),[u,d]=(0,ct.useState)(c),[A,h]=(0,ct.useState)({}),[p,f]=(0,ct.useState)(new Set),[m,g]=(0,ct.useState)(new Set),[y,v]=(0,ct.useState)(!1),[b,w]=(0,ct.useState)(0),x=(0,ct.useRef)([]),k=(0,ct.useRef)({}),_=(0,ct.useCallback)(e=>{if(e&&"object"==typeof e&&"issues"in e){const t={};return(e.issues||e.errors||[]).forEach(e=>{const n=e.path?e.path.join("."):"root";t[n]=e.message}),t}if(e instanceof mx){const t={};return e.issues.forEach(e=>{const n=e.path?e.path.join("."):"root";t[n]=e.message}),t}return{}},[]),C=(0,ct.useCallback)(e=>{const t=k.current[e];t&&"function"==typeof t.focus&&t.focus()},[]),B=(0,ct.useCallback)(e=>{const t=l&&Array.isArray(l)&&l.length>0?l:x.current,n=Object.keys(e)[0],r=t.find(t=>e[t])||n;r&&C(r)},[l,C]),S=(0,ct.useCallback)((t=u,{shouldFocus:n=o}={})=>{const r=e.safeParse(t);if(r.success)return h({}),!0;const i=_(r.error);return h(i),n&&o&&B(i),!1},[u,B,o,_,e]),j=(0,ct.useCallback)((e,t,{shouldValidate:n=!1}={})=>{if(d(n=>({...n,[e]:t})),g(t=>{const n=new Set(t);return n.add(e),n}),A[e]&&h(t=>{const n={...t};return delete n[e],n}),n){const n={...u,[e]:t};S(n,{shouldFocus:!1})}},[A,u,S]),E=(0,ct.useCallback)((e,{shouldValidate:t=!1}={})=>{if(d(t=>({...t,...e})),g(t=>{const n=new Set(t);return Object.keys(e).forEach(e=>n.add(e)),n}),Object.keys(A).length>0){const t={...A};Object.keys(e).forEach(e=>{delete t[e]}),h(t)}if(t){const t={...u,...e};S(t,{shouldFocus:!1})}},[A,u,S]),N=(0,ct.useCallback)((e=c)=>{d(e),h({}),f(new Set),g(new Set)},[c]),I=(0,ct.useCallback)(e=>{N(e)},[N]),F=(0,ct.useCallback)((e,t)=>{h(n=>({...n,[e]:t}))},[]),T=(0,ct.useCallback)(e=>{if(!e)return void h({});const t=Array.isArray(e)?e:[e];h(e=>{const n={...e};return t.forEach(e=>delete n[e]),n})},[]),L=(0,ct.useCallback)(()=>u,[u]),P=(0,ct.useCallback)((e,t,{shouldValidate:n=!1,shouldDirty:r=!0}={})=>{j(e,t,{shouldValidate:n}),r&&g(t=>{const n=new Set(t);return n.add(e),n})},[j]),M=(0,ct.useCallback)((e,t={})=>{x.current.includes(e)||x.current.push(e);const n=t.setValueAs,r="onChange"===i||y&&"onChange"===s,o="onBlur"===i||y&&"onBlur"===s;return{name:e,value:u?.[e]??"",onChange:t=>{const o="function"==typeof n?n(t):t;j(e,o,{shouldValidate:r})},onBlur:()=>{f(t=>{const n=new Set(t);return n.add(e),n}),o&&S(void 0,{shouldFocus:!1})},ref:t=>{k.current[e]=t}}},[u,y,s,j,S,i]),O=(0,ct.useCallback)((e,t)=>n=>{if(n&&"function"==typeof n.preventDefault&&n.preventDefault(),w(e=>e+1),v(!0),S(void 0,{shouldFocus:o}))return e?.(u),u;t?.(A)},[A,o,u,S]),D=(0,ct.useMemo)(()=>({isDirty:m.size>0,dirtyFields:m,touchedFields:p,submitCount:b,isSubmitted:y,isValid:0===Object.keys(A).length}),[m,A,y,b,p]);return{formData:u,setFormData:d,errors:A,setErrors:h,validateForm:S,updateField:j,updateFields:E,resetForm:N,setFormDataWithReset:I,setError:F,clearErrors:T,setValue:P,getValues:L,setFocus:C,handleSubmit:O,register:M,formState:D}})(e,t,{focusOnError:!0,validationMode:"onSubmit",reValidateMode:"onChange",...r}),y=(0,ct.useCallback)((e={})=>{a("add"),c(null),p({...t,...e}),i(!0)},[t,p]),v=(0,ct.useCallback)(e=>{a("edit"),c(e[n]);const r=Object.keys(t).reduce((n,r)=>(n[r]=e[r]??t[r],n),{});p(r),i(!0)},[t,n,p]),b=(0,ct.useCallback)(()=>{i(!1),p(t),c(null)},[t,p]),w=(0,ct.useCallback)((e,t)=>{h(e,t)},[h]);return{isOpen:o,setIsOpen:i,mode:s,entityId:l,formData:u,errors:d,register:f,handleSubmit:m,setFocus:g,validateForm:A,updateFormData:w,openForAdd:y,openForEdit:v,close:b}},Kx=Bs("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),Wx=Bs("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Gx={sm:{icon:"[&>svg]:size-4",searchIcon:"[&>svg]:size-4",selectButton:"px-2.5 py-2 rounded text-xs font-medium leading-4 min-h-[2rem]",multiSelect:"pl-2 pr-2 py-1.5",displaySelected:"text-xs font-normal",dropdown:"rounded-md",dropdownItemsWrapper:"p-1.5",searchbarWrapper:"p-3 flex items-center gap-0.5",searchbar:"font-medium text-sm",searchbarIcon:"size-4",label:"text-sm font-medium"},md:{icon:"[&>svg]:size-5",searchIcon:"[&>svg]:size-5",selectButton:"px-3.5 py-2.5 rounded-md text-sm font-medium leading-4 min-h-[2.5rem]",multiSelect:"pl-2 pr-2.5 py-2",displaySelected:"text-sm font-normal",dropdown:"rounded-lg",dropdownItemsWrapper:"p-2",searchbarWrapper:"p-2.5 flex items-center gap-1",searchbar:"font-medium text-sm",searchbarIcon:"size-5",label:"text-sm font-medium"},lg:{icon:"[&>svg]:size-6",searchIcon:"[&>svg]:size-5",selectButton:"px-4 py-3 rounded-lg text-sm font-medium leading-5 min-h-[3rem]",multiSelect:"pl-2.5 pr-3 py-2.5",displaySelected:"text-base font-normal",dropdown:"rounded-lg",dropdownItemsWrapper:"p-2",searchbarWrapper:"p-2.5 flex items-center gap-1",searchbar:"font-medium text-sm",searchbarIcon:"size-5",label:"text-base font-medium"}},$x="group disabled:outline-field-border-disabled [&:hover:has(:disabled)]:outline-field-border-disabled disabled:cursor-default",Yx="group-disabled:text-field-color-disabled",Zx={sm:"w-[calc(100%+0.75rem)] translate-x-[-0.375rem]",md:"w-[calc(100%+1rem)] translate-x-[-0.5rem]",lg:"w-[calc(100%+1rem)] translate-x-[-0.5rem]"},Xx={sm:"py-1.5 px-2 text-xs font-normal",md:"p-2 text-sm font-normal",lg:"p-2 text-base font-normal"},Jx=e=>null===e||"boolean"==typeof e?"":"string"==typeof e||"number"==typeof e?e.toString():Array.isArray(e)?e.map(Jx).join(" ").trim():(0,ft.isValidElement)(e)?e.props&&e.props.children?Jx(e.props.children):"":"object"==typeof e&&"textContent"in e?e.textContent?.toString().toLowerCase()||"":"object"==typeof e&&"children"in e?Jx(e.children):"",ek=(0,ft.createContext)({}),tk=()=>(0,ft.useContext)(ek),nk=(0,ft.forwardRef)(({children:e,icon:t=null,placeholder:n="Select an option",optionIcon:r=null,render:o,label:i,className:s,...a},l)=>{const{sizeValue:c,getReferenceProps:u,getValues:d,selectId:A,refs:h,isOpen:p,multiple:f,combobox:m,inlineSearch:g,setSelected:y,onChange:v,isControlled:b,disabled:w,by:x,searchKeyword:k,setSearchKeyword:_,searchPlaceholder:C,context:B,activeIndex:S,optionValuesRef:j,handleSelect:E}=tk(),N={sm:"xs",md:"sm",lg:"md"}[c],I=(0,ft.useRef)(null),[F,T]=(0,ft.useState)(!1);(0,ft.useEffect)(()=>{p||T(!1)},[p]);const L=(0,ft.useMemo)(()=>{if(!g||f)return"";const e=d();if(!e)return"";if("function"==typeof o){const t=o(e);if("string"==typeof t)return t}if("string"==typeof e||"number"==typeof e)return String(e);const t=e.name;return"string"==typeof t?t:""},[g,f,d,o]),P=(0,ft.useCallback)(()=>{if(t)return t;const e="text-field-placeholder group-disabled:text-icon-disabled";return m?(0,yt.jsx)(Kx,{className:e}):(0,yt.jsx)(rm,{className:e})},[t]),M=(0,ft.useCallback)(()=>{const t=d();if(!t)return null;if(f)return t.map((e,t)=>(0,yt.jsx)(uw,{className:"cursor-default",icon:r,type:"rounded",size:N,onMouseDown:O(e),label:"function"==typeof o?o(e):e.toString(),closable:!0,disabled:w},t));let n="string"==typeof t?t:"";if("function"==typeof o&&(n=o(t)),"function"==typeof e&&"function"!=typeof o){const r={value:t,...f?{onClose:O(t)}:{}};n=e(r)}return((0,ft.isValidElement)(e)||"string"==typeof e)&&"function"!=typeof o&&(n=e),(0,yt.jsx)("span",{className:wa("truncate",Gx[c].displaySelected,Yx),children:n})},[d,w]),O=e=>t=>{t?.preventDefault(),t?.stopPropagation();const n=[...d()??[]],r=n.findIndex(t=>null!==t&&null!==e&&"object"==typeof t?t[x]===e[x]:t===e);-1!==r&&(n.splice(r,1),b||y(n),"function"==typeof v&&v(n))};if(g){let e="";!f&&d()?e=p&&F?k:L:p&&(e=k);const t=f?!d()?.length:!d()&&!k;return(0,yt.jsxs)("div",{className:"w-full flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[!!i&&(0,yt.jsx)("label",{className:wa(Gx[c]?.label,"text-field-label"),htmlFor:A,children:i}),(0,yt.jsxs)("div",{ref:h.setPositionReference,className:wa("flex flex-wrap items-center justify-between w-full box-border transition-[outline,background-color,color,box-shadow] duration-200 bg-white cursor-text","outline outline-1 outline-field-border border-none","focus-within:ring-2 focus-within:ring-offset-2 focus-within:outline-focus-border focus-within:ring-focus","[&:hover:not(:focus-within):not(:has(:disabled))]:outline-border-strong",Gx[c].selectButton,f&&Gx[c].multiSelect,$x,s),onMouseDown:e=>{e.target!==I.current&&(e.preventDefault(),I.current?.focus())},children:[(0,yt.jsxs)("div",{className:"flex-1 flex flex-wrap items-center gap-1.5 overflow-hidden",children:[f&&M(),(0,yt.jsx)("input",{ref:Ua(h.setReference,I),id:A,type:"text",autoComplete:"off","aria-autocomplete":"list",disabled:w,placeholder:t?C:"",value:e,className:wa("flex-1 min-w-[4rem] bg-transparent border-0 outline-none focus:ring-0 p-0","placeholder:text-field-placeholder",Gx[c].displaySelected,Yx),...u({onFocus:()=>{p||B.onOpenChange(!0)},onClick:()=>{p||B.onOpenChange(!0)},onChange:e=>{T(!0),_(e.target.value),p||B.onOpenChange(!0)},onKeyDown:t=>{if("Enter"===t.key&&null!==S&&S>=0){t.preventDefault();const e=j.current[S];return void(void 0!==e&&E(S,e))}if("Backspace"===t.key&&!e&&f){t.preventDefault();const e=d()??[];e.length&&O(e[e.length-1])()}}})})]}),(0,yt.jsx)("div",{className:wa("flex items-center [&>svg]:shrink-0",Gx[c].icon),children:P()})]})]})}return(0,yt.jsxs)("div",{className:"w-full flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[!!i&&(0,yt.jsx)("label",{className:wa(Gx[c]?.label,"text-field-label"),htmlFor:A,children:i}),(0,yt.jsxs)("button",{id:A,ref:Ua(h.setReference,l),className:wa("flex items-center justify-between w-full box-border transition-[outline,background-color,color,box-shadow] duration-200 bg-white","outline outline-1 outline-field-border border-none cursor-pointer",!p&&"focus:ring-2 focus:ring-offset-2 focus:outline-focus-border focus:ring-focus [&:hover:not(:focus):not(:disabled)]:outline-border-strong",Gx[c].selectButton,f&&Gx[c].multiSelect,$x,s),tabIndex:0,disabled:w,...a,...u(),children:[(0,yt.jsxs)("div",{className:wa("flex-1 grid items-center justify-start gap-1.5 overflow-hidden",d()&&"flex flex-wrap"),children:[M(),(f?!d()?.length:!d())&&(0,yt.jsx)("div",{className:wa("[grid-area:1/1/2/3] text-field-input px-1",Gx[c].displaySelected,Yx),children:n})]}),(0,yt.jsx)("div",{className:wa("flex items-center [&>svg]:shrink-0",Gx[c].icon),children:P()})]})]})});function rk({label:e,children:t,className:n,...r}){const{index:o,totalGroups:i}=r,{sizeValue:s}=tk();return(0,yt.jsxs)(ft.Fragment,{children:[(0,yt.jsxs)("div",{className:"flex flex-col",role:"group","aria-label":e,children:[(0,yt.jsx)("div",{className:wa("p-2 font-normal text-text-tertiary",{sm:"text-xs",md:"text-xs",lg:"text-sm"}[s],n),id:`group-${e?.toLowerCase().replace(/\s+/g,"-")}`,children:e}),(0,yt.jsx)("div",{className:"flex flex-col",role:"presentation","aria-labelledby":`group-${e?.toLowerCase().replace(/\s+/g,"-")}`,children:t})]}),o<i&&!!(t&&ft.Children.count(t)>0)&&(0,yt.jsx)("hr",{className:wa("h-px my-2 w-full border-border-subtle border-b border-t-0 border-solid",Zx[s])})]})}function ok({children:e,className:t}){const{isOpen:n,context:r,refs:o,combobox:i,inlineSearch:s,floatingStyles:a,getFloatingProps:l,sizeValue:c,setSearchKeyword:u,setActiveIndex:d,setSelectedIndex:A,value:h,selected:p,getValues:f,searchKeyword:m,listContentRef:g,by:y,searchPlaceholder:v,activeIndex:b,searchFn:w,debounceDelay:x,selectId:k,optionValuesRef:_}=tk(),C=(0,ft.useMemo)(()=>{const t=f();let n=-1;if(t){let r=ft.Children.toArray(e);r.length>0&&(0,ft.isValidElement)(r[0])&&r[0].type===rk&&(r=ft.Children.toArray(e).map(e=>(0,ft.isValidElement)(e)?ft.Children.toArray(e.props.children):[]).flat()),n=r.findIndex(e=>{if(!(0,ft.isValidElement)(e))return!1;const n=e.props.value;return"object"==typeof n&&"object"==typeof t?n[y]===t[y]:n===t})}return n},[h,p,e,y]);(0,ft.useLayoutEffect)(()=>{n||(d(C),A(C))},[C,n]),(0,ft.useLayoutEffect)(()=>{n&&(i&&[-1,null].includes(b)||d(-1))},[m,n]);const B=(0,ft.useMemo)(()=>{let t=0,n=0;ft.Children.forEach(e,e=>{if((0,ft.isValidElement)(e)&&e.type===rk){let n=!1;if(m&&!w){const t=m.toLowerCase(),r=(e.props.label?.toLowerCase()||"").includes(t),o=ft.Children.toArray(e.props.children).some(e=>!!(0,ft.isValidElement)(e)&&(Jx(e.props.children)?.toLowerCase()).includes(t));n=r||o}else n=!0;n&&t++}}),n=Math.max(0,t-1);let r=0,o=0;return _.current=[],ft.Children.map(e,e=>{if(!(0,ft.isValidElement)(e))return null;if(e.type===rk){let t=!1;if(m&&!w){const n=m.toLowerCase();t=(e.props.label?.toLowerCase()||"").includes(n)}const i=ft.Children.map(e.props.children,e=>{if(!(0,ft.isValidElement)(e))return null;if(t){const t=r++;_.current[t]=e.props.value;const n={...e.props,index:t,id:`${k}-option-${t}`};return(0,ft.cloneElement)(e,n)}if(m&&!w){const t=Jx(e.props.children)?.toLowerCase(),n=m.toLowerCase();if(!t?.includes(n))return null}const n=r++;_.current[n]=e.props.value;const o={...e.props,index:n,id:`${k}-option-${n}`};return(0,ft.cloneElement)(e,o)});if(!i?.some(e=>null!==e))return null;const s={...e.props,children:i,index:o,totalGroups:n};return o++,(0,ft.cloneElement)(e,s)}if(m&&!w){const t=Jx(e.props?.children)?.toLowerCase(),n=m.toLowerCase();if(!t?.includes(n))return null}const t=r++;return _.current[t]=e.props.value,(0,ft.cloneElement)(e,{...e.props,index:t,id:`${k}-option-${t}`})})},[m,h,p,e,w,k,_]),S=ft.Children.count(B);(0,ft.useEffect)(()=>{g.current=[];let t=ft.Children.toArray(e);t&&(0,ft.isValidElement)(t[0])&&t[0].type===rk&&(t=ft.Children.toArray(t).map(e=>(0,ft.isValidElement)(e)?e.props.children:null).filter(Boolean)),ft.Children.forEach(t,e=>{if(!(0,ft.isValidElement)(e))return;const t=Jx(e.props?.children)?.toLowerCase();if(m&&!w){const e=m.toLowerCase();if(!t?.includes(e))return}g.current.push(t)})},[m,w]);const[j,E]=(0,ft.useState)(!1),N=(0,ft.useCallback)(async()=>{if(w&&"function"==typeof w&&!j){E(!0);try{await w(m)}catch(e){console.error(e)}finally{E(!1)}}},[m]),I=((e,t=500)=>{const n=(0,ft.useRef)(null);return(0,ft.useCallback)((...r)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>e(...r),t)},[e,t])})(N,x);(0,ft.useEffect)(()=>{"function"==typeof w&&I()},[I]);const F=(0,yt.jsxs)("div",{ref:o.setFloating,className:wa("box-border [&_*]:box-border w-full bg-white outline-none shadow-lg outline outline-1 outline-border-subtle",i&&!s&&"grid grid-cols-1 grid-rows-[auto_1fr] divide-y divide-x-0 divide-solid divide-border-subtle",Gx[c].dropdown,!(i&&!s)&&"h-auto",i&&!s?"overflow-hidden":"overflow-y-auto overflow-x-hidden",t),style:{...a,zIndex:1},...l(),children:[i&&!s&&(0,yt.jsxs)("div",{className:wa(Gx[c].searchbarWrapper),children:[j?(0,yt.jsx)(Tw,{className:Gx[c].searchbarIcon}):(0,yt.jsx)(Wx,{className:wa("text-icon-secondary shrink-0",Gx[c].searchbarIcon)}),(0,yt.jsx)("input",{className:wa("px-1 w-full placeholder:text-field-placeholder border-0 focus:outline-none focus:shadow-none",Gx[c].searchbar),type:"search",name:"keyword","aria-label":"Search options",placeholder:v,onChange:e=>u(e.target.value),value:m,autoComplete:"off"})]}),(0,yt.jsxs)("div",{className:wa("overflow-y-auto overflow-x-hidden",!(i&&!s)&&"w-full h-full",Gx[c].dropdownItemsWrapper),children:[!!S&&B,!S&&(0,yt.jsx)("div",{className:wa("p-2 text-center font-medium text-field-placeholder",Xx[c]),children:"No items found"})]})]});return(0,yt.jsx)(yt.Fragment,{children:n&&(0,yt.jsx)(yt.Fragment,{children:s?F:(0,yt.jsx)(bv,{context:r,modal:!1,visuallyHiddenDismiss:!0,children:F})})})}function ik({children:e,root:t,id:n}){return(0,yt.jsx)(Av,{id:n,root:t,children:e})}function sk({value:e,selected:t,children:n,className:r,...o}){const{sizeValue:i,getItemProps:s,onKeyDownItem:a,onClickItem:l,activeIndex:c,selectedIndex:u,updateListRef:d,getValues:A,by:h,multiple:p,inlineSearch:f}=tk(),{index:m,id:g}=o,y=(0,ft.useRef)(m),v=(0,ft.useMemo)(()=>{if(!p)return!1;const t=A();return!!t&&t.some(t=>null!==t&&null!==e&&"object"==typeof t?t[h]===e[h]:t===e)},[e,A]),b=(0,ft.useMemo)(()=>"boolean"==typeof t?t:p?v:m===u,[v,u,t]);let w;return f||(w=m===c?0:-1),(0,yt.jsxs)("div",{id:g,className:wa("w-full flex items-center justify-between text-text-primary hover:bg-button-tertiary-hover rounded-md transition-all duration-150 cursor-pointer focus:outline-none focus-within:outline-none outline-none",Xx[i],m===c&&"bg-button-tertiary-hover",r),ref:e=>{d(m,e)},role:"option",tabIndex:w,"aria-selected":b&&m===c,...s({onClick(){l(y.current,e)},onKeyDown(t){a(t,y.current,e)}}),children:[(0,yt.jsx)("span",{className:"w-full truncate",children:n}),b&&(0,yt.jsx)(Ea,{className:wa("text-icon-on-color-disabled",{sm:"size-4",md:"size-4",lg:"size-5"}[i])})]})}const ak=({id:e,size:t="md",value:n,defaultValue:r,onChange:o,by:i="id",children:s,multiple:a=!1,combobox:l=!1,inlineSearch:c=!1,disabled:u=!1,searchPlaceholder:d="Search...",searchFn:A,debounceDelay:h=500})=>{const p=(0,ft.useMemo)(()=>e||`select-${nm()}`,[e]),f=(0,ft.useMemo)(()=>typeof n<"u",[n]),[m,g]=(0,ft.useState)(r),[y,v]=(0,ft.useState)(""),b=(0,ft.useCallback)(()=>f?n:m,[f,n,m]),[w,x]=(0,ft.useState)(!1),[k,_]=(0,ft.useState)(null),[C,B]=(0,ft.useState)(null),S={sm:l&&!c?256:172,md:l&&!c?256:216,lg:l&&!c?256:216},{refs:j,floatingStyles:E,context:N}=Iv({strategy:"fixed",placement:"bottom-start",open:w,onOpenChange:x,whileElementsMounted:ty,middleware:[uy(5),Ay({padding:10}),hy({apply({rects:e,elements:n,availableHeight:r}){Object.assign(n.floating.style,{maxHeight:`min(${r}px, ${S[t]}px)`,maxWidth:`${e.reference.width}px`})},padding:10})]}),I=(0,ft.useRef)([]),F=(0,ft.useRef)([]),T=(0,ft.useRef)(!1),L=(0,ft.useRef)([]);(0,ft.useEffect)(()=>{w||v("")},[w]);const P=Bv(N,{event:"mousedown",enabled:!c}),M=Nv(N),O=Hv(N,{role:"listbox"}),D=zv(N,{listRef:I,activeIndex:k,selectedIndex:C,onNavigate:_,loop:!0,virtual:c}),U=function(e,t){var n;const{open:r,dataRef:o}=e,{listRef:i,activeIndex:s,onMatch:a,onTypingChange:l,enabled:c=!0,findMatch:u=null,resetMs:d=750,ignoreKeys:A=[],selectedIndex:h=null}=t,p=ft.useRef(),f=ft.useRef(""),m=ft.useRef(null!=(n=null!=h?h:s)?n:-1),g=ft.useRef(null),y=gy(a),v=gy(l),b=Qy(u),w=Qy(A);Ny(()=>{r&&(clearTimeout(p.current),g.current=null,f.current="")},[r]),Ny(()=>{var e;r&&""===f.current&&(m.current=null!=(e=null!=h?h:s)?e:-1)},[r,h,s]);const x=gy(e=>{e?o.current.typing||(o.current.typing=e,v(e)):o.current.typing&&(o.current.typing=e,v(e))}),k=gy(e=>{function t(e,t,n){const r=b.current?b.current(t,n):t.find(e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase())));return r?e.indexOf(r):-1}const n=i.current;if(f.current.length>0&&" "!==f.current[0]&&(-1===t(n,n,f.current)?x(!1):" "===e.key&&Zm(e)),null==n||w.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;r&&" "!==e.key&&(Zm(e),x(!0)),n.every(e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())})&&f.current===e.key&&(f.current="",m.current=g.current),f.current+=e.key,clearTimeout(p.current),p.current=setTimeout(()=>{f.current="",m.current=g.current,x(!1)},d);const o=m.current,s=t(n,[...n.slice((o||0)+1),...n.slice(0,(o||0)+1)],f.current);-1!==s?(y(s),g.current=s):" "!==e.key&&(f.current="",x(!1))}),_=ft.useMemo(()=>({onKeyDown:k}),[k]),C=ft.useMemo(()=>({onKeyDown:k,onKeyUp(e){" "===e.key&&x(!1)}}),[k,x]);return ft.useMemo(()=>c?{reference:_,floating:C}:{},[c,_,C])}(N,{listRef:F,activeIndex:k,selectedIndex:C,onMatch:w?_:B,onTypingChange(e){T.current=e}}),{getReferenceProps:R,getFloatingProps:z,getItemProps:Q}=Pv([M,O,D,P,...l||c?[]:[U]]),H=(e,t)=>{if(a)return((e,t)=>{const n=[...b()??[]];-1===n.findIndex(e=>null!==e&&null!==t&&"object"==typeof e?e[i]===t[i]:e===t)&&(n.push(t),f||g(n),B(e),(j.domReference.current??j.reference.current)?.focus(),x(!1),v(""),"function"==typeof o&&o(n))})(e,t);B(e),f||g(t),(j.domReference.current??j.reference.current)?.focus(),x(!1),v(""),"function"==typeof o&&o(t)},q=(0,ft.useCallback)((e,t)=>{I.current[e]=t},[]);return(0,yt.jsx)(ek.Provider,{value:{selectedIndex:C,setSelectedIndex:B,activeIndex:k,setActiveIndex:_,selected:m,setSelected:g,handleSelect:H,combobox:l,inlineSearch:c,optionValuesRef:L,sizeValue:t,multiple:a,onChange:o,isTypingRef:T,getItemProps:Q,onClickItem:(e,t)=>{H(e,t)},onKeyDownItem:(e,t,n)=>{"Enter"===e.key&&(e.preventDefault(),H(t,n))," "===e.key&&!T.current&&(e.preventDefault(),H(t,n))},getValues:b,selectId:p,getReferenceProps:R,isOpen:w,value:n,updateListRef:q,refs:j,listContentRef:F,by:i,getFloatingProps:z,floatingStyles:E,context:N,searchKeyword:y,setSearchKeyword:v,disabled:u,isControlled:f,searchPlaceholder:d,searchFn:A,debounceDelay:h},children:s})};ak.displayName="Select";const lk=Object.assign(ak,{Portal:ik,Button:nk,Options:ok,Option:sk,OptionGroup:rk});ik.displayName="Select.Portal",nk.displayName="Select.Button",ok.displayName="Select.Options",sk.displayName="Select.Option",rk.displayName="Select.OptionGroup";const ck=(0,ct.forwardRef)(({id:e,searchFn:t,size:n="md",combobox:r,multiple:o=!1,label:i,placeholder:s,value:a,onChange:l,options:c=[],by:u="value",groupBy:d},A)=>{const[h,p]=(0,ct.useState)(c),f=(0,ct.useCallback)(async e=>{"function"==typeof t&&p(await t(e))},[t]),m=(0,ct.useMemo)(()=>{const e=(Array.isArray(a)?a:[a]).filter(Boolean);if(0===e.length)return h;const t=new Set(h.map(e=>String(e?.value))),n=e.filter(e=>!t.has(String(e?.value)));return n.length?[...n,...h]:h},[a,h]);return(0,yt.jsxs)(lk,{id:e,size:n,by:u,combobox:r,multiple:o,value:a,onChange:l,...r&&"function"==typeof t&&{searchFn:f},children:[(0,yt.jsx)(lk.Button,{label:i,render:e=>e?.label,placeholder:s,type:"button",ref:A}),(0,yt.jsx)(lk.Options,{children:(()=>{if(0===m.length)return(0,yt.jsx)(lk.Option,{value:"",disabled:!0,children:(0,pt.__)("No options available","surecookie")});const e=d?[...new Set(m.map(e=>e[d]||""))]:[];return!d||e.length<2?m.map(e=>(0,yt.jsx)(lk.Option,{value:e,children:e.label},e.value)):e.flatMap(e=>{const t=m.filter(t=>(t[d]||"")===e).map(e=>(0,yt.jsx)(lk.Option,{value:e,children:e.label},e.value));return e?(0,yt.jsx)(lk.OptionGroup,{label:e,children:t},e):t})})()})]})}),uk=ck,dk=_b("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Ak=_b("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),hk=_b("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),pk=({title:e="",message:t="",showIcon:n=!1,className:r="",color:o="success",footer:i=null,footerAsideTitle:s=!1,renderIcon:a=null,action:l=null,...c})=>{const u={success:"border-alert-border-green",error:"border-alert-border-danger",warning:"border-alert-border-warning",info:"border-alert-border-info"}[o]||"border-alert-border-green",d={success:"bg-alert-background-green",error:"bg-alert-background-danger",warning:"bg-alert-background-warning",info:"bg-alert-background-info"}[o]||"bg-alert-background-green",A={success:"text-support-success",error:"text-support-error",warning:"text-support-warning",info:"text-support-info"}[o]||"text-support-success",h={success:dk,error:Ak,warning:Ak,info:hk}[o]||dk,p=e?(0,yt.jsx)(Iw,{size:14,weight:600,color:"primary",className:"leading-[1.43]",children:e}):null;return(0,yt.jsxs)("div",{className:jo("flex flex-row self-stretch gap-2 p-3 border border-solid rounded-lg",u,d,r),role:"alert",...c,children:[!!a&&a,n&&!a&&(0,yt.jsx)(h,{className:jo(A,"shrink-0"),size:20}),(0,yt.jsxs)("div",{className:"flex flex-col gap-3 pl-1 py-0 flex-1",children:[(0,yt.jsxs)("div",{className:"flex flex-col justify-center self-stretch gap-0.5",children:[i&&s?(0,yt.jsxs)("div",{className:"flex flex-row items-center justify-between gap-2",children:[p,(0,yt.jsx)("div",{className:"shrink-0",children:i})]}):p,t&&(0,yt.jsx)(Iw,{size:14,weight:400,color:"primary",className:"self-stretch",children:t})]}),i&&!s&&i]}),l]})},fk=_b("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),mk=({value:e,description:t="",copiedMessage:n="",className:r=""})=>{const[o,i]=(0,ct.useState)(!1),s=o?dk:fk;return(0,yt.jsxs)("div",{className:`flex items-center justify-between p-3 gap-2 ring-1 rounded-lg ring-alert-border-neutral bg-background-secondary ${r}`,children:[(0,yt.jsxs)("div",{className:"flex flex-col gap-0.5 flex-1 min-w-0",children:[(0,yt.jsx)(Iw,{size:14,lineHeight:20,color:"primary",weight:500,className:"break-all",children:e}),t&&(0,yt.jsx)(Iw,{size:12,lineHeight:16,color:"secondary",children:t})]}),(0,yt.jsx)(s,{className:"w-5 h-5 text-text-primary cursor-pointer hover:opacity-70 transition-opacity flex-shrink-0",onClick:async()=>{try{await db(e),i(!0),At.success(n||(0,pt.__)("Copied!","surecookie")),setTimeout(()=>i(!1),2e3)}catch{At.error((0,pt.__)("Could not copy to clipboard. Please copy it manually.","surecookie"))}},"aria-label":o?(0,pt.__)("Copied!","surecookie"):(0,pt.__)("Copy","surecookie")})]})},gk=(0,ct.memo)(()=>((0,ct.useEffect)(()=>{const e=new URLSearchParams(window.location.search),t=e.get("auth");if(!t)return;e.delete("auth");const n=e.toString(),r=window.location.pathname+(n?`?${n}`:"");let o;return window.history.replaceState({},document.title,r),"success"===t?(At.success((0,pt.__)("Authentication successful","surecookie"),{description:(0,pt.__)("Authentication completed successfully. Closing tab in 3 seconds…","surecookie")}),o=setTimeout(()=>{window.close()},3e3)):"fail"===t&&At.error((0,pt.__)("Authentication failed","surecookie"),{description:(0,pt.__)("Please return to the SureCookie dashboard and try again.","surecookie")}),()=>{o&&clearTimeout(o)}},[]),null)),yk={sm:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},md:{1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},lg:{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"}},vk={sm:{xs:"gap-2",sm:"gap-4",md:"gap-5",lg:"gap-6",xl:"gap-6","2xl":"gap-8"},md:{xs:"md:gap-2",sm:"md:gap-4",md:"md:gap-5",lg:"md:gap-6",xl:"md:gap-6","2xl":"md:gap-8"},lg:{xs:"lg:gap-2",sm:"lg:gap-4",md:"lg:gap-5",lg:"lg:gap-6",xl:"lg:gap-6","2xl":"lg:gap-8"}},bk={sm:{xs:"gap-x-2",sm:"gap-x-4",md:"gap-x-5",lg:"gap-x-6",xl:"gap-x-6","2xl":"gap-x-8"},md:{xs:"md:gap-x-2",sm:"md:gap-x-4",md:"md:gap-x-5",lg:"md:gap-x-6",xl:"md:gap-x-6","2xl":"md:gap-x-8"},lg:{xs:"lg:gap-x-2",sm:"lg:gap-x-4",md:"lg:gap-x-5",lg:"lg:gap-x-6",xl:"lg:gap-x-6","2xl":"lg:gap-x-8"}},wk={sm:{xs:"gap-y-2",sm:"gap-y-4",md:"gap-y-5",lg:"gap-y-6",xl:"gap-y-6","2xl":"gap-y-8"},md:{xs:"md:gap-y-2",sm:"md:gap-y-4",md:"md:gap-y-5",lg:"md:gap-y-6",xl:"md:gap-y-6","2xl":"md:gap-y-8"},lg:{xs:"lg:gap-y-2",sm:"lg:gap-y-4",md:"lg:gap-y-5",lg:"lg:gap-y-6",xl:"lg:gap-y-6","2xl":"lg:gap-y-8"}},xk={sm:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12"}},kk={sm:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12"},md:{1:"md:col-start-1",2:"md:col-start-2",3:"md:col-start-3",4:"md:col-start-4",5:"md:col-start-5",6:"md:col-start-6",7:"md:col-start-7",8:"md:col-start-8",9:"md:col-start-9",10:"md:col-start-10",11:"md:col-start-11",12:"md:col-start-12"},lg:{1:"lg:col-start-1",2:"lg:col-start-2",3:"lg:col-start-3",4:"lg:col-start-4",5:"lg:col-start-5",6:"lg:col-start-6",7:"lg:col-start-7",8:"lg:col-start-8",9:"lg:col-start-9",10:"lg:col-start-10",11:"lg:col-start-11",12:"lg:col-start-12"}},_k={sm:{row:"grid-flow-row",column:"grid-flow-col","row-dense":"grid-flow-row-dense","column-dense":"grid-flow-col-dense"},md:{row:"md:grid-flow-row",column:"md:grid-flow-col","row-dense":"md:grid-flow-row-dense","column-dense":"md:grid-flow-col-dense"},lg:{row:"lg:grid-flow-row",column:"lg:grid-flow-col","row-dense":"lg:grid-flow-row-dense","column-dense":"lg:grid-flow-col-dense"}},Ck={sm:{normal:"justify-normal",start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},md:{normal:"md:justify-normal",start:"md:justify-start",end:"md:justify-end",center:"md:justify-center",between:"md:justify-between",around:"md:justify-around",evenly:"md:justify-evenly",stretch:"md:justify-stretch"},lg:{normal:"lg:justify-normal",start:"lg:justify-start",end:"lg:justify-end",center:"lg:justify-center",between:"lg:justify-between",around:"lg:justify-around",evenly:"lg:justify-evenly",stretch:"lg:justify-stretch"}},Bk={sm:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},md:{start:"md:items-start",end:"md:items-end",center:"md:items-center",baseline:"md:items-baseline",stretch:"md:items-stretch"},lg:{start:"lg:items-start",end:"lg:items-end",center:"lg:items-center",baseline:"lg:items-baseline",stretch:"lg:items-stretch"}},Sk={sm:{start:"self-start",end:"self-end",center:"self-center",baseline:"self-baseline",stretch:"self-stretch"},md:{start:"md:self-start",end:"md:self-end",center:"md:self-center",baseline:"md:self-baseline",stretch:"md:self-stretch"},lg:{start:"lg:self-start",end:"lg:self-end",center:"lg:self-center",baseline:"lg:self-baseline",stretch:"lg:self-stretch"}},jk={sm:{auto:"justify-self-auto",start:"justify-self-start",end:"justify-self-end",center:"justify-self-center",baseline:"justify-self-baseline",stretch:"justify-self-stretch"},md:{auto:"md:justify-self-auto",start:"md:justify-self-start",end:"md:justify-self-end",center:"md:justify-self-center",baseline:"md:justify-self-baseline",stretch:"md:justify-self-stretch"},lg:{auto:"lg:justify-self-auto",start:"lg:justify-self-start",end:"lg:justify-self-end",center:"lg:justify-self-center",baseline:"lg:justify-self-baseline",stretch:"lg:justify-self-stretch"}},Ek={sm:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},md:{row:"md:flex-row","row-reverse":"md:flex-row-reverse",column:"md:flex-col","column-reverse":"md:flex-col-reverse"},lg:{row:"lg:flex-row","row-reverse":"lg:flex-row-reverse",column:"lg:flex-col","column-reverse":"lg:flex-col-reverse"}},Nk={sm:{wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},md:{wrap:"md:flex-wrap","wrap-reverse":"md:flex-wrap-reverse",nowrap:"md:flex-nowrap"},lg:{wrap:"lg:flex-wrap","wrap-reverse":"lg:flex-wrap-reverse",nowrap:"lg:flex-nowrap"}},Ik={sm:{1:"w-full",2:"w-1/2",3:"w-1/3",4:"w-1/4",5:"w-1/5",6:"w-1/6",7:"w-1/7",8:"w-1/8",9:"w-1/9",10:"w-1/10",11:"w-1/11",12:"w-1/12"},md:{1:"md:w-full",2:"md:w-1/2",3:"md:w-1/3",4:"md:w-1/4",5:"md:w-1/5",6:"md:w-1/6",7:"md:w-1/7",8:"md:w-1/8",9:"md:w-1/9",10:"md:w-1/10",11:"md:w-1/11",12:"md:w-1/12"},lg:{1:"lg:w-full",2:"lg:w-1/2",3:"lg:w-1/3",4:"lg:w-1/4",5:"lg:w-1/5",6:"lg:w-1/6",7:"lg:w-1/7",8:"lg:w-1/8",9:"lg:w-1/9",10:"lg:w-1/10",11:"lg:w-1/11",12:"lg:w-1/12"}},Fk={sm:{1:"order-1",2:"order-2",3:"order-3",4:"order-4",5:"order-5",6:"order-6",7:"order-7",8:"order-8",9:"order-9",10:"order-10",11:"order-11",12:"order-12",first:"order-first",last:"order-last",none:"order-none"},md:{1:"md:order-1",2:"md:order-2",3:"md:order-3",4:"md:order-4",5:"md:order-5",6:"md:order-6",7:"md:order-7",8:"md:order-8",9:"md:order-9",10:"md:order-10",11:"md:order-11",12:"md:order-12",first:"md:order-first",last:"md:order-last",none:"md:order-none"},lg:{1:"lg:order-1",2:"lg:order-2",3:"lg:order-3",4:"lg:order-4",5:"lg:order-5",6:"lg:order-6",7:"lg:order-7",8:"lg:order-8",9:"lg:order-9",10:"lg:order-10",11:"lg:order-11",12:"lg:order-12",first:"lg:order-first",last:"lg:order-last",none:"lg:order-none"}},Tk={sm:{0:"grow-0",1:"grow"},md:{0:"md:grow-0",1:"md:grow"},lg:{0:"lg:grow-0",1:"lg:grow"}},Lk={sm:{0:"shrink-0",1:"shrink"},md:{0:"md:shrink-0",1:"md:shrink"},lg:{0:"lg:shrink-0",1:"lg:shrink"}},Pk=(e,t,n,r="sm")=>{const o=[];switch(typeof e){case"object":for(const[r,i]of Object.entries(e))t[r]&&o.push(t?.[r]?.[i]??t?.[r]?.[n?.[r]]??"");break;case"string":case"number":const i=r;o.push(t?.[i]?.[e]??t?.[i]?.[n?.[i]]??"");break;default:if(void 0===e)break;o.push(t?.[r]?.[n]??"")}return o.join(" ")},Mk=({className:e,cols:t,gap:n,gapX:r,gapY:o,align:i,justify:s,gridFlow:a,colsSubGrid:l=!1,rowsSubGrid:c=!1,autoRows:u=!1,autoCols:d=!1,children:A,...h})=>{const p=Pk(t,yk,1),f=Pk(n,vk,"sm"),m=Pk(r,bk,""),g=Pk(o,wk,""),y=Pk(i,Bk,""),v=Pk(s,Ck,""),b=Pk(a,_k,"");return(0,yt.jsx)("div",{className:wa("grid",{"grid-cols-subgrid":l,"grid-rows-subgrid":c,"auto-cols-auto":d,"auto-rows-auto":u},p,f,m,g,y,v,b,e),...h,children:A})};Mk.Item=({className:e,children:t,colSpan:n,colStart:r,alignSelf:o,justifySelf:i,...s})=>{const a=Pk(n,xk,0),l=Pk(r,kk,0),c=Pk(o,Sk,""),u=Pk(i,jk,"");return(0,yt.jsx)("div",{className:wa(a,l,c,u,e),...s,children:t})};const Ok=(0,ft.createContext)({}),Dk=({containerType:e="flex",gap:t="sm",gapX:n,gapY:r,direction:o,justify:i,align:s,wrap:a,cols:l,className:c,children:u,...d})=>{if("grid"===e)return(0,yt.jsx)(Ok.Provider,{value:{containerType:e},children:(0,yt.jsx)(Mk,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:u,align:s,justify:i,...d})});const A=Pk(a,Nk,""),h=Pk(t,vk,"sm"),p=Pk(n,bk,""),f=Pk(r,wk,""),m=Pk(o,Ek,""),g=Pk(i,Ck,""),y=Pk(s,Bk,""),v=wa("flex",A,h,p,f,m,g,y,c);return(0,yt.jsx)(Ok.Provider,{value:{containerType:e,cols:l},children:"flex"===e?(0,yt.jsx)("div",{className:v,children:u}):(0,yt.jsx)(Mk,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:u,align:s,justify:i,...d})})},Uk=({grow:e,shrink:t,order:n,alignSelf:r,justifySelf:o,className:i,children:s,...a})=>{const{containerType:l,cols:c}=(0,ft.useContext)(Ok);if("grid"===l)return(0,yt.jsx)(Mk.Item,{className:i,alignSelf:r,justifySelf:o,children:s,...a});const u=Pk(r,Sk,""),d=Pk(o,jk,""),A=Pk(e,Tk,0),h=Pk(t,Lk,0),p=Pk(n,Fk,0),f=Pk(c,Ik,1);return(0,yt.jsx)("div",{className:wa("box-border",A,h,p,u,d,f,i),children:s})};Dk.Item=Uk,Dk.displayName="Container",Uk.displayName="Container.Item";const Rk=e=>(0,yt.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,yt.jsx)("path",{d:"M13.1667 10C13.1667 11.7489 11.7489 13.1667 10 13.1667C8.25113 13.1667 6.83337 11.7489 6.83337 10C6.83337 8.25113 8.25113 6.83337 10 6.83337C11.7489 6.83337 13.1667 8.25113 13.1667 10Z",fill:"currentColor"})}),zk=e=>(0,yt.jsxs)("svg",{width:"176",height:"176",viewBox:"0 0 176 176",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,yt.jsx)("path",{d:"M114.361 91.0994C114.361 91.0994 117.04 102.422 110.311 104.104C103.581 105.785 93.7273 107.33 93.7273 107.33L96.3596 132.112H58.7859",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M83.8859 90.8274C83.8859 90.8274 73.9767 90.8274 74.1635 105.224C74.3503 119.621 75.4711 147.29 75.4711 147.29C69.6759 148.037 67.4299 155.518 67.4299 155.518H93.481L92.8102 132.112",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M53.5978 152.151H93.4853",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M67.7654 90.8274C67.7654 90.8274 57.8562 90.8274 58.043 105.224C58.2298 119.621 59.3506 147.29 59.3506 147.29C53.5554 148.037 51.3094 155.518 51.3094 155.518H74.4905",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M154.308 84.9473H21.692V90.8274H154.308V84.9473Z",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M78.32 33.011C78.32 33.011 78.7488 37.8298 78.0822 40.5979C77.4157 43.366 76.1335 50.8468 86.7433 50.2354",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M85.0408 36.3647C84.5059 38.5215 83.5337 40.5722 82.1963 42.3468C83.4785 42.6525 84.8286 42.6568 86.1107 42.3553",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M84.9984 46.3166C86.4419 46.2869 87.8642 45.6033 88.7855 44.491",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M96.4402 44.9918C97.8922 45.0469 99.3739 45.0979 100.779 44.72C102.184 44.3422 103.53 43.4676 104.112 42.1302C104.694 40.7928 104.282 39.0012 102.991 38.3219C104.711 37.6808 105.908 35.8467 105.797 34.0126C105.721 32.7771 105.246 31.3336 104.43 30.3826C103.717 29.5462 102.422 29.2278 101.879 28.2513C101.301 27.2154 101.628 25.7719 101.204 24.6383C100.758 23.4453 99.947 22.3754 98.8984 21.6494C96.7883 20.1804 93.0989 19.9723 91.0737 21.7767C90.0208 22.715 90.5005 23.1099 89.0188 23.0165C87.4352 22.9188 85.8643 21.9848 84.2085 21.8871C82.1409 21.764 79.9332 22.3159 78.5024 23.8189C76.4518 25.9799 76.9018 29.7627 80.0776 30.5015C81.3852 30.8072 82.8415 30.3656 83.7585 29.3891C83.6863 31.3166 85.0662 33.1338 86.9215 33.6645C88.7768 34.1952 90.9378 33.3206 91.9016 31.6435",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M96.5167 50.2693C96.5167 50.2693 108.837 51.492 114.081 64.4114L117.748 84.5807H109.542C107.5 82.0732 102.703 76.7163 99.6256 75.6905",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M101.178 76.5069C98.9791 75.1398 96.2619 74.6304 93.7187 75.1059C91.1756 75.5814 88.8235 77.0376 87.2697 79.1053",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M95.7651 78.095C91.6766 78.2308 87.7494 80.74 85.9153 84.3955",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M97.1069 81.7505C94.3684 80.8462 91.0696 82.2175 89.7789 84.7946",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M82.7735 84.9472L81.3894 71.4844H96.3807L96.1556 74.9361",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M98.2108 68.2578H79.5555V71.4887H98.2108V68.2578Z",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M66.462 60.1062H36.4115L41.9478 84.9473H71.9982L66.462 60.1062ZM54.7993 76.8934C53.101 77.267 51.1777 76.0145 50.5069 74.0913C49.8361 72.168 50.6725 70.3084 52.3708 69.9348C54.069 69.5612 55.9923 70.8136 56.6631 72.7369C57.3339 74.6602 56.4975 76.5197 54.7993 76.8934Z",fill:"#111827",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M92.6361 37.9825C92.8271 36.5432 94.4235 35.5073 95.8457 35.8045C97.268 36.0974 98.304 37.5579 98.2403 39.0099C98.1766 40.4577 97.1152 41.7738 95.7523 42.2748C95.9901 45.718 96.2236 49.1654 96.4614 52.6086C96.4614 52.6086 94.7419 57.8987 87.7706 56.6759C81.5508 55.589 82.2003 51.6534 82.2003 51.6534C82.2003 51.6534 71.2 52.3072 67.0308 62.641",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M94.0202 110.086H122.402C124.156 110.086 125.582 108.663 125.582 106.906C125.582 105.152 124.16 103.726 122.402 103.726H111.359L93.7273 107.326L94.0202 110.082V110.086Z",fill:"#111827",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M113.053 110.086L119.991 155.518",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M104.307 110.086L100.703 155.518",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M59.3549 147.29H93.2476",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M30.6673 90.8274L26.9269 149.909",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M145.923 90.8274L149.464 149.909",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M26.9268 155.518C28.4767 155.518 29.7332 154.261 29.7332 152.711C29.7332 151.161 28.4767 149.905 26.9268 149.905C25.3769 149.905 24.1205 151.161 24.1205 152.711C24.1205 154.261 25.3769 155.518 26.9268 155.518Z",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M149.638 155.518C151.188 155.518 152.444 154.261 152.444 152.711C152.444 151.161 151.188 149.905 149.638 149.905C148.088 149.905 146.831 151.161 146.831 152.711C146.831 154.261 148.088 155.518 149.638 155.518Z",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M81.3302 38.1014C81.8086 38.1014 82.1963 37.7136 82.1963 37.2352C82.1963 36.7569 81.8086 36.3691 81.3302 36.3691C80.8519 36.3691 80.4641 36.7569 80.4641 37.2352C80.4641 37.7136 80.8519 38.1014 81.3302 38.1014Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M88.7897 38.1014C89.268 38.1014 89.6558 37.7136 89.6558 37.2352C89.6558 36.7569 89.268 36.3691 88.7897 36.3691C88.3113 36.3691 87.9236 36.7569 87.9236 37.2352C87.9236 37.7136 88.3113 38.1014 88.7897 38.1014Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M76.5114 52.6892C76.5114 52.6892 84.7393 67.897 98.2107 57.9241",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M60.3314 98.4526C60.655 98.4526 60.9173 98.1902 60.9173 97.8667C60.9173 97.5431 60.655 97.2808 60.3314 97.2808C60.0078 97.2808 59.7455 97.5431 59.7455 97.8667C59.7455 98.1902 60.0078 98.4526 60.3314 98.4526Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M60.3314 101.403C60.655 101.403 60.9173 101.141 60.9173 100.818C60.9173 100.494 60.655 100.232 60.3314 100.232C60.0078 100.232 59.7455 100.494 59.7455 100.818C59.7455 101.141 60.0078 101.403 60.3314 101.403Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M60.3314 104.358C60.655 104.358 60.9173 104.096 60.9173 103.772C60.9173 103.449 60.655 103.187 60.3314 103.187C60.0078 103.187 59.7455 103.449 59.7455 103.772C59.7455 104.096 60.0078 104.358 60.3314 104.358Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M60.3314 107.313C60.655 107.313 60.9173 107.051 60.9173 106.727C60.9173 106.404 60.655 106.142 60.3314 106.142C60.0078 106.142 59.7455 106.404 59.7455 106.727C59.7455 107.051 60.0078 107.313 60.3314 107.313Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M60.3314 110.269C60.655 110.269 60.9173 110.006 60.9173 109.683C60.9173 109.359 60.655 109.097 60.3314 109.097C60.0078 109.097 59.7455 109.359 59.7455 109.683C59.7455 110.006 60.0078 110.269 60.3314 110.269Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M60.3314 113.223C60.655 113.223 60.9173 112.961 60.9173 112.637C60.9173 112.314 60.655 112.052 60.3314 112.052C60.0078 112.052 59.7455 112.314 59.7455 112.637C59.7455 112.961 60.0078 113.223 60.3314 113.223Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M60.3314 116.178C60.655 116.178 60.9173 115.916 60.9173 115.592C60.9173 115.269 60.655 115.006 60.3314 115.006C60.0078 115.006 59.7455 115.269 59.7455 115.592C59.7455 115.916 60.0078 116.178 60.3314 116.178Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M60.3314 119.133C60.655 119.133 60.9173 118.871 60.9173 118.548C60.9173 118.224 60.655 117.962 60.3314 117.962C60.0078 117.962 59.7455 118.224 59.7455 118.548C59.7455 118.871 60.0078 119.133 60.3314 119.133Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M60.3314 122.088C60.655 122.088 60.9173 121.826 60.9173 121.502C60.9173 121.179 60.655 120.917 60.3314 120.917C60.0078 120.917 59.7455 121.179 59.7455 121.502C59.7455 121.826 60.0078 122.088 60.3314 122.088Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M60.3314 125.043C60.655 125.043 60.9173 124.781 60.9173 124.457C60.9173 124.133 60.655 123.871 60.3314 123.871C60.0078 123.871 59.7455 124.133 59.7455 124.457C59.7455 124.781 60.0078 125.043 60.3314 125.043Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M60.3314 127.998C60.655 127.998 60.9173 127.736 60.9173 127.412C60.9173 127.089 60.655 126.826 60.3314 126.826C60.0078 126.826 59.7455 127.089 59.7455 127.412C59.7455 127.736 60.0078 127.998 60.3314 127.998Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M60.3314 130.953C60.655 130.953 60.9173 130.691 60.9173 130.367C60.9173 130.044 60.655 129.781 60.3314 129.781C60.0078 129.781 59.7455 130.044 59.7455 130.367C59.7455 130.691 60.0078 130.953 60.3314 130.953Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M62.9041 95.4977C63.2277 95.4977 63.49 95.2354 63.49 94.9118C63.49 94.5882 63.2277 94.3259 62.9041 94.3259C62.5806 94.3259 62.3182 94.5882 62.3182 94.9118C62.3182 95.2354 62.5806 95.4977 62.9041 95.4977Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M62.9041 98.4526C63.2277 98.4526 63.49 98.1902 63.49 97.8667C63.49 97.5431 63.2277 97.2808 62.9041 97.2808C62.5806 97.2808 62.3182 97.5431 62.3182 97.8667C62.3182 98.1902 62.5806 98.4526 62.9041 98.4526Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M62.9041 101.403C63.2277 101.403 63.49 101.141 63.49 100.817C63.49 100.494 63.2277 100.231 62.9041 100.231C62.5806 100.231 62.3182 100.494 62.3182 100.817C62.3182 101.141 62.5806 101.403 62.9041 101.403Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M62.9041 104.358C63.2277 104.358 63.49 104.096 63.49 103.772C63.49 103.449 63.2277 103.186 62.9041 103.186C62.5806 103.186 62.3182 103.449 62.3182 103.772C62.3182 104.096 62.5806 104.358 62.9041 104.358Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M62.9041 107.313C63.2277 107.313 63.49 107.051 63.49 106.727C63.49 106.404 63.2277 106.142 62.9041 106.142C62.5806 106.142 62.3182 106.404 62.3182 106.727C62.3182 107.051 62.5806 107.313 62.9041 107.313Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M62.9041 110.268C63.2277 110.268 63.49 110.006 63.49 109.683C63.49 109.359 63.2277 109.097 62.9041 109.097C62.5806 109.097 62.3182 109.359 62.3182 109.683C62.3182 110.006 62.5806 110.268 62.9041 110.268Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M62.9041 113.223C63.2277 113.223 63.49 112.961 63.49 112.637C63.49 112.313 63.2277 112.051 62.9041 112.051C62.5806 112.051 62.3182 112.313 62.3182 112.637C62.3182 112.961 62.5806 113.223 62.9041 113.223Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M62.9041 116.178C63.2277 116.178 63.49 115.916 63.49 115.592C63.49 115.269 63.2277 115.006 62.9041 115.006C62.5806 115.006 62.3182 115.269 62.3182 115.592C62.3182 115.916 62.5806 116.178 62.9041 116.178Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M62.9041 119.133C63.2277 119.133 63.49 118.871 63.49 118.547C63.49 118.224 63.2277 117.961 62.9041 117.961C62.5806 117.961 62.3182 118.224 62.3182 118.547C62.3182 118.871 62.5806 119.133 62.9041 119.133Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M62.9041 122.088C63.2277 122.088 63.49 121.826 63.49 121.502C63.49 121.179 63.2277 120.916 62.9041 120.916C62.5806 120.916 62.3182 121.179 62.3182 121.502C62.3182 121.826 62.5806 122.088 62.9041 122.088Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M62.9041 125.043C63.2277 125.043 63.49 124.781 63.49 124.457C63.49 124.133 63.2277 123.871 62.9041 123.871C62.5806 123.871 62.3182 124.133 62.3182 124.457C62.3182 124.781 62.5806 125.043 62.9041 125.043Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M62.9041 127.998C63.2277 127.998 63.49 127.736 63.49 127.412C63.49 127.088 63.2277 126.826 62.9041 126.826C62.5806 126.826 62.3182 127.088 62.3182 127.412C62.3182 127.736 62.5806 127.998 62.9041 127.998Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M62.9041 130.953C63.2277 130.953 63.49 130.69 63.49 130.367C63.49 130.043 63.2277 129.781 62.9041 129.781C62.5806 129.781 62.3182 130.043 62.3182 130.367C62.3182 130.69 62.5806 130.953 62.9041 130.953Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M65.4813 92.5431C65.8049 92.5431 66.0672 92.2808 66.0672 91.9572C66.0672 91.6337 65.8049 91.3713 65.4813 91.3713C65.1577 91.3713 64.8954 91.6337 64.8954 91.9572C64.8954 92.2808 65.1577 92.5431 65.4813 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M65.4813 95.498C65.8049 95.498 66.0672 95.2356 66.0672 94.9121C66.0672 94.5885 65.8049 94.3262 65.4813 94.3262C65.1577 94.3262 64.8954 94.5885 64.8954 94.9121C64.8954 95.2356 65.1577 95.498 65.4813 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M65.4813 98.4528C65.8049 98.4528 66.0672 98.1905 66.0672 97.8669C66.0672 97.5433 65.8049 97.281 65.4813 97.281C65.1577 97.281 64.8954 97.5433 64.8954 97.8669C64.8954 98.1905 65.1577 98.4528 65.4813 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M65.4813 101.404C65.8049 101.404 66.0672 101.141 66.0672 100.818C66.0672 100.494 65.8049 100.232 65.4813 100.232C65.1577 100.232 64.8954 100.494 64.8954 100.818C64.8954 101.141 65.1577 101.404 65.4813 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M65.4813 104.359C65.8049 104.359 66.0672 104.096 66.0672 103.773C66.0672 103.449 65.8049 103.187 65.4813 103.187C65.1577 103.187 64.8954 103.449 64.8954 103.773C64.8954 104.096 65.1577 104.359 65.4813 104.359Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M65.4813 107.314C65.8049 107.314 66.0672 107.051 66.0672 106.728C66.0672 106.404 65.8049 106.142 65.4813 106.142C65.1577 106.142 64.8954 106.404 64.8954 106.728C64.8954 107.051 65.1577 107.314 65.4813 107.314Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M65.4813 110.268C65.8049 110.268 66.0672 110.006 66.0672 109.683C66.0672 109.359 65.8049 109.097 65.4813 109.097C65.1577 109.097 64.8954 109.359 64.8954 109.683C64.8954 110.006 65.1577 110.268 65.4813 110.268Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M65.4813 113.223C65.8049 113.223 66.0672 112.961 66.0672 112.637C66.0672 112.314 65.8049 112.052 65.4813 112.052C65.1577 112.052 64.8954 112.314 64.8954 112.637C64.8954 112.961 65.1577 113.223 65.4813 113.223Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M65.4813 116.178C65.8049 116.178 66.0672 115.916 66.0672 115.592C66.0672 115.269 65.8049 115.007 65.4813 115.007C65.1577 115.007 64.8954 115.269 64.8954 115.592C64.8954 115.916 65.1577 116.178 65.4813 116.178Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M65.4813 119.133C65.8049 119.133 66.0672 118.871 66.0672 118.548C66.0672 118.224 65.8049 117.962 65.4813 117.962C65.1577 117.962 64.8954 118.224 64.8954 118.548C64.8954 118.871 65.1577 119.133 65.4813 119.133Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M65.4813 122.088C65.8049 122.088 66.0672 121.826 66.0672 121.502C66.0672 121.179 65.8049 120.917 65.4813 120.917C65.1577 120.917 64.8954 121.179 64.8954 121.502C64.8954 121.826 65.1577 122.088 65.4813 122.088Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M65.4813 125.043C65.8049 125.043 66.0672 124.781 66.0672 124.457C66.0672 124.134 65.8049 123.871 65.4813 123.871C65.1577 123.871 64.8954 124.134 64.8954 124.457C64.8954 124.781 65.1577 125.043 65.4813 125.043Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M65.4813 127.998C65.8049 127.998 66.0672 127.736 66.0672 127.412C66.0672 127.089 65.8049 126.826 65.4813 126.826C65.1577 126.826 64.8954 127.089 64.8954 127.412C64.8954 127.736 65.1577 127.998 65.4813 127.998Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M65.4813 130.953C65.8049 130.953 66.0672 130.691 66.0672 130.367C66.0672 130.044 65.8049 129.781 65.4813 129.781C65.1577 129.781 64.8954 130.044 64.8954 130.367C64.8954 130.691 65.1577 130.953 65.4813 130.953Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M68.0583 92.5431C68.3819 92.5431 68.6442 92.2808 68.6442 91.9572C68.6442 91.6337 68.3819 91.3713 68.0583 91.3713C67.7347 91.3713 67.4724 91.6337 67.4724 91.9572C67.4724 92.2808 67.7347 92.5431 68.0583 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M68.0583 95.498C68.3819 95.498 68.6442 95.2356 68.6442 94.9121C68.6442 94.5885 68.3819 94.3262 68.0583 94.3262C67.7347 94.3262 67.4724 94.5885 67.4724 94.9121C67.4724 95.2356 67.7347 95.498 68.0583 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M68.0583 98.4528C68.3819 98.4528 68.6442 98.1905 68.6442 97.8669C68.6442 97.5433 68.3819 97.281 68.0583 97.281C67.7347 97.281 67.4724 97.5433 67.4724 97.8669C67.4724 98.1905 67.7347 98.4528 68.0583 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M68.0583 101.404C68.3819 101.404 68.6442 101.141 68.6442 100.818C68.6442 100.494 68.3819 100.232 68.0583 100.232C67.7347 100.232 67.4724 100.494 67.4724 100.818C67.4724 101.141 67.7347 101.404 68.0583 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M68.0583 104.359C68.3819 104.359 68.6442 104.096 68.6442 103.773C68.6442 103.449 68.3819 103.187 68.0583 103.187C67.7347 103.187 67.4724 103.449 67.4724 103.773C67.4724 104.096 67.7347 104.359 68.0583 104.359Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M68.0583 107.314C68.3819 107.314 68.6442 107.051 68.6442 106.728C68.6442 106.404 68.3819 106.142 68.0583 106.142C67.7347 106.142 67.4724 106.404 67.4724 106.728C67.4724 107.051 67.7347 107.314 68.0583 107.314Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M68.0583 110.268C68.3819 110.268 68.6442 110.006 68.6442 109.683C68.6442 109.359 68.3819 109.097 68.0583 109.097C67.7347 109.097 67.4724 109.359 67.4724 109.683C67.4724 110.006 67.7347 110.268 68.0583 110.268Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M68.0583 113.223C68.3819 113.223 68.6442 112.961 68.6442 112.637C68.6442 112.314 68.3819 112.052 68.0583 112.052C67.7347 112.052 67.4724 112.314 67.4724 112.637C67.4724 112.961 67.7347 113.223 68.0583 113.223Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M68.0583 116.178C68.3819 116.178 68.6442 115.916 68.6442 115.592C68.6442 115.269 68.3819 115.007 68.0583 115.007C67.7347 115.007 67.4724 115.269 67.4724 115.592C67.4724 115.916 67.7347 116.178 68.0583 116.178Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M68.0583 119.133C68.3819 119.133 68.6442 118.871 68.6442 118.548C68.6442 118.224 68.3819 117.962 68.0583 117.962C67.7347 117.962 67.4724 118.224 67.4724 118.548C67.4724 118.871 67.7347 119.133 68.0583 119.133Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M68.0583 122.088C68.3819 122.088 68.6442 121.826 68.6442 121.502C68.6442 121.179 68.3819 120.917 68.0583 120.917C67.7347 120.917 67.4724 121.179 67.4724 121.502C67.4724 121.826 67.7347 122.088 68.0583 122.088Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M68.0583 125.043C68.3819 125.043 68.6442 124.781 68.6442 124.457C68.6442 124.134 68.3819 123.871 68.0583 123.871C67.7347 123.871 67.4724 124.134 67.4724 124.457C67.4724 124.781 67.7347 125.043 68.0583 125.043Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M68.0583 127.998C68.3819 127.998 68.6442 127.736 68.6442 127.412C68.6442 127.089 68.3819 126.826 68.0583 126.826C67.7347 126.826 67.4724 127.089 67.4724 127.412C67.4724 127.736 67.7347 127.998 68.0583 127.998Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M68.0583 130.953C68.3819 130.953 68.6442 130.691 68.6442 130.367C68.6442 130.044 68.3819 129.781 68.0583 129.781C67.7347 129.781 67.4724 130.044 67.4724 130.367C67.4724 130.691 67.7347 130.953 68.0583 130.953Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M70.6311 92.5431C70.9546 92.5431 71.217 92.2808 71.217 91.9572C71.217 91.6337 70.9546 91.3713 70.6311 91.3713C70.3075 91.3713 70.0452 91.6337 70.0452 91.9572C70.0452 92.2808 70.3075 92.5431 70.6311 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M70.6311 95.498C70.9546 95.498 71.217 95.2356 71.217 94.9121C71.217 94.5885 70.9546 94.3262 70.6311 94.3262C70.3075 94.3262 70.0452 94.5885 70.0452 94.9121C70.0452 95.2356 70.3075 95.498 70.6311 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M70.6311 98.4528C70.9546 98.4528 71.217 98.1905 71.217 97.8669C71.217 97.5433 70.9546 97.281 70.6311 97.281C70.3075 97.281 70.0452 97.5433 70.0452 97.8669C70.0452 98.1905 70.3075 98.4528 70.6311 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M70.6311 101.404C70.9546 101.404 71.217 101.141 71.217 100.818C71.217 100.494 70.9546 100.232 70.6311 100.232C70.3075 100.232 70.0452 100.494 70.0452 100.818C70.0452 101.141 70.3075 101.404 70.6311 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M70.6311 104.359C70.9546 104.359 71.217 104.096 71.217 103.773C71.217 103.449 70.9546 103.187 70.6311 103.187C70.3075 103.187 70.0452 103.449 70.0452 103.773C70.0452 104.096 70.3075 104.359 70.6311 104.359Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M70.6311 107.314C70.9546 107.314 71.217 107.051 71.217 106.728C71.217 106.404 70.9546 106.142 70.6311 106.142C70.3075 106.142 70.0452 106.404 70.0452 106.728C70.0452 107.051 70.3075 107.314 70.6311 107.314Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M70.6311 110.268C70.9546 110.268 71.217 110.006 71.217 109.683C71.217 109.359 70.9546 109.097 70.6311 109.097C70.3075 109.097 70.0452 109.359 70.0452 109.683C70.0452 110.006 70.3075 110.268 70.6311 110.268Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M70.6311 113.223C70.9546 113.223 71.217 112.961 71.217 112.637C71.217 112.314 70.9546 112.052 70.6311 112.052C70.3075 112.052 70.0452 112.314 70.0452 112.637C70.0452 112.961 70.3075 113.223 70.6311 113.223Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M70.6311 116.178C70.9546 116.178 71.217 115.916 71.217 115.592C71.217 115.269 70.9546 115.007 70.6311 115.007C70.3075 115.007 70.0452 115.269 70.0452 115.592C70.0452 115.916 70.3075 116.178 70.6311 116.178Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M70.6311 119.133C70.9546 119.133 71.217 118.871 71.217 118.548C71.217 118.224 70.9546 117.962 70.6311 117.962C70.3075 117.962 70.0452 118.224 70.0452 118.548C70.0452 118.871 70.3075 119.133 70.6311 119.133Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M70.6311 122.088C70.9546 122.088 71.217 121.826 71.217 121.502C71.217 121.179 70.9546 120.917 70.6311 120.917C70.3075 120.917 70.0452 121.179 70.0452 121.502C70.0452 121.826 70.3075 122.088 70.6311 122.088Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M70.6311 125.043C70.9546 125.043 71.217 124.781 71.217 124.457C71.217 124.134 70.9546 123.871 70.6311 123.871C70.3075 123.871 70.0452 124.134 70.0452 124.457C70.0452 124.781 70.3075 125.043 70.6311 125.043Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M70.6311 127.998C70.9546 127.998 71.217 127.736 71.217 127.412C71.217 127.089 70.9546 126.826 70.6311 126.826C70.3075 126.826 70.0452 127.089 70.0452 127.412C70.0452 127.736 70.3075 127.998 70.6311 127.998Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M70.6311 130.953C70.9546 130.953 71.217 130.691 71.217 130.367C71.217 130.044 70.9546 129.781 70.6311 129.781C70.3075 129.781 70.0452 130.044 70.0452 130.367C70.0452 130.691 70.3075 130.953 70.6311 130.953Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M73.2082 92.5431C73.5318 92.5431 73.7941 92.2808 73.7941 91.9572C73.7941 91.6337 73.5318 91.3713 73.2082 91.3713C72.8846 91.3713 72.6223 91.6337 72.6223 91.9572C72.6223 92.2808 72.8846 92.5431 73.2082 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M73.2082 95.498C73.5318 95.498 73.7941 95.2356 73.7941 94.9121C73.7941 94.5885 73.5318 94.3262 73.2082 94.3262C72.8846 94.3262 72.6223 94.5885 72.6223 94.9121C72.6223 95.2356 72.8846 95.498 73.2082 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M73.2082 98.4528C73.5318 98.4528 73.7941 98.1905 73.7941 97.8669C73.7941 97.5433 73.5318 97.281 73.2082 97.281C72.8846 97.281 72.6223 97.5433 72.6223 97.8669C72.6223 98.1905 72.8846 98.4528 73.2082 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M73.2082 101.404C73.5318 101.404 73.7941 101.141 73.7941 100.818C73.7941 100.494 73.5318 100.232 73.2082 100.232C72.8846 100.232 72.6223 100.494 72.6223 100.818C72.6223 101.141 72.8846 101.404 73.2082 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M73.2082 104.359C73.5318 104.359 73.7941 104.096 73.7941 103.773C73.7941 103.449 73.5318 103.187 73.2082 103.187C72.8846 103.187 72.6223 103.449 72.6223 103.773C72.6223 104.096 72.8846 104.359 73.2082 104.359Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M73.2082 107.314C73.5318 107.314 73.7941 107.051 73.7941 106.728C73.7941 106.404 73.5318 106.142 73.2082 106.142C72.8846 106.142 72.6223 106.404 72.6223 106.728C72.6223 107.051 72.8846 107.314 73.2082 107.314Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M73.2082 110.268C73.5318 110.268 73.7941 110.006 73.7941 109.683C73.7941 109.359 73.5318 109.097 73.2082 109.097C72.8846 109.097 72.6223 109.359 72.6223 109.683C72.6223 110.006 72.8846 110.268 73.2082 110.268Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M73.2082 113.223C73.5318 113.223 73.7941 112.961 73.7941 112.637C73.7941 112.314 73.5318 112.052 73.2082 112.052C72.8846 112.052 72.6223 112.314 72.6223 112.637C72.6223 112.961 72.8846 113.223 73.2082 113.223Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M73.2082 116.178C73.5318 116.178 73.7941 115.916 73.7941 115.592C73.7941 115.269 73.5318 115.007 73.2082 115.007C72.8846 115.007 72.6223 115.269 72.6223 115.592C72.6223 115.916 72.8846 116.178 73.2082 116.178Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M73.2082 119.133C73.5318 119.133 73.7941 118.871 73.7941 118.548C73.7941 118.224 73.5318 117.962 73.2082 117.962C72.8846 117.962 72.6223 118.224 72.6223 118.548C72.6223 118.871 72.8846 119.133 73.2082 119.133Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M73.2082 122.088C73.5318 122.088 73.7941 121.826 73.7941 121.502C73.7941 121.179 73.5318 120.917 73.2082 120.917C72.8846 120.917 72.6223 121.179 72.6223 121.502C72.6223 121.826 72.8846 122.088 73.2082 122.088Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M73.2082 125.043C73.5318 125.043 73.7941 124.781 73.7941 124.457C73.7941 124.134 73.5318 123.871 73.2082 123.871C72.8846 123.871 72.6223 124.134 72.6223 124.457C72.6223 124.781 72.8846 125.043 73.2082 125.043Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M73.2082 127.998C73.5318 127.998 73.7941 127.736 73.7941 127.412C73.7941 127.089 73.5318 126.826 73.2082 126.826C72.8846 126.826 72.6223 127.089 72.6223 127.412C72.6223 127.736 72.8846 127.998 73.2082 127.998Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M73.2082 130.953C73.5318 130.953 73.7941 130.691 73.7941 130.367C73.7941 130.044 73.5318 129.781 73.2082 129.781C72.8846 129.781 72.6223 130.044 72.6223 130.367C72.6223 130.691 72.8846 130.953 73.2082 130.953Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M75.7852 92.5431C76.1088 92.5431 76.3711 92.2808 76.3711 91.9572C76.3711 91.6337 76.1088 91.3713 75.7852 91.3713C75.4617 91.3713 75.1993 91.6337 75.1993 91.9572C75.1993 92.2808 75.4617 92.5431 75.7852 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M75.7852 95.498C76.1088 95.498 76.3711 95.2356 76.3711 94.9121C76.3711 94.5885 76.1088 94.3262 75.7852 94.3262C75.4617 94.3262 75.1993 94.5885 75.1993 94.9121C75.1993 95.2356 75.4617 95.498 75.7852 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M75.7852 98.4528C76.1088 98.4528 76.3711 98.1905 76.3711 97.8669C76.3711 97.5433 76.1088 97.281 75.7852 97.281C75.4617 97.281 75.1993 97.5433 75.1993 97.8669C75.1993 98.1905 75.4617 98.4528 75.7852 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M75.7852 101.404C76.1088 101.404 76.3711 101.141 76.3711 100.818C76.3711 100.494 76.1088 100.232 75.7852 100.232C75.4617 100.232 75.1993 100.494 75.1993 100.818C75.1993 101.141 75.4617 101.404 75.7852 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M75.7852 104.359C76.1088 104.359 76.3711 104.096 76.3711 103.773C76.3711 103.449 76.1088 103.187 75.7852 103.187C75.4617 103.187 75.1993 103.449 75.1993 103.773C75.1993 104.096 75.4617 104.359 75.7852 104.359Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M75.7852 107.314C76.1088 107.314 76.3711 107.051 76.3711 106.728C76.3711 106.404 76.1088 106.142 75.7852 106.142C75.4617 106.142 75.1993 106.404 75.1993 106.728C75.1993 107.051 75.4617 107.314 75.7852 107.314Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M75.7852 110.268C76.1088 110.268 76.3711 110.006 76.3711 109.683C76.3711 109.359 76.1088 109.097 75.7852 109.097C75.4617 109.097 75.1993 109.359 75.1993 109.683C75.1993 110.006 75.4617 110.268 75.7852 110.268Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M75.7852 113.223C76.1088 113.223 76.3711 112.961 76.3711 112.637C76.3711 112.314 76.1088 112.052 75.7852 112.052C75.4617 112.052 75.1993 112.314 75.1993 112.637C75.1993 112.961 75.4617 113.223 75.7852 113.223Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M75.7852 116.178C76.1088 116.178 76.3711 115.916 76.3711 115.592C76.3711 115.269 76.1088 115.007 75.7852 115.007C75.4617 115.007 75.1993 115.269 75.1993 115.592C75.1993 115.916 75.4617 116.178 75.7852 116.178Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M75.7852 119.133C76.1088 119.133 76.3711 118.871 76.3711 118.548C76.3711 118.224 76.1088 117.962 75.7852 117.962C75.4617 117.962 75.1993 118.224 75.1993 118.548C75.1993 118.871 75.4617 119.133 75.7852 119.133Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M75.7852 122.088C76.1088 122.088 76.3711 121.826 76.3711 121.502C76.3711 121.179 76.1088 120.917 75.7852 120.917C75.4617 120.917 75.1993 121.179 75.1993 121.502C75.1993 121.826 75.4617 122.088 75.7852 122.088Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M75.7852 125.043C76.1088 125.043 76.3711 124.781 76.3711 124.457C76.3711 124.134 76.1088 123.871 75.7852 123.871C75.4617 123.871 75.1993 124.134 75.1993 124.457C75.1993 124.781 75.4617 125.043 75.7852 125.043Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M75.7852 127.998C76.1088 127.998 76.3711 127.736 76.3711 127.412C76.3711 127.089 76.1088 126.826 75.7852 126.826C75.4617 126.826 75.1993 127.089 75.1993 127.412C75.1993 127.736 75.4617 127.998 75.7852 127.998Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M75.7852 130.953C76.1088 130.953 76.3711 130.691 76.3711 130.367C76.3711 130.044 76.1088 129.781 75.7852 129.781C75.4617 129.781 75.1993 130.044 75.1993 130.367C75.1993 130.691 75.4617 130.953 75.7852 130.953Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M78.3582 92.5431C78.6818 92.5431 78.9441 92.2808 78.9441 91.9572C78.9441 91.6337 78.6818 91.3713 78.3582 91.3713C78.0346 91.3713 77.7723 91.6337 77.7723 91.9572C77.7723 92.2808 78.0346 92.5431 78.3582 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M78.3582 95.498C78.6818 95.498 78.9441 95.2356 78.9441 94.9121C78.9441 94.5885 78.6818 94.3262 78.3582 94.3262C78.0346 94.3262 77.7723 94.5885 77.7723 94.9121C77.7723 95.2356 78.0346 95.498 78.3582 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M78.3582 98.4528C78.6818 98.4528 78.9441 98.1905 78.9441 97.8669C78.9441 97.5433 78.6818 97.281 78.3582 97.281C78.0346 97.281 77.7723 97.5433 77.7723 97.8669C77.7723 98.1905 78.0346 98.4528 78.3582 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M78.3582 101.404C78.6818 101.404 78.9441 101.141 78.9441 100.818C78.9441 100.494 78.6818 100.232 78.3582 100.232C78.0346 100.232 77.7723 100.494 77.7723 100.818C77.7723 101.141 78.0346 101.404 78.3582 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M78.3582 104.359C78.6818 104.359 78.9441 104.096 78.9441 103.773C78.9441 103.449 78.6818 103.187 78.3582 103.187C78.0346 103.187 77.7723 103.449 77.7723 103.773C77.7723 104.096 78.0346 104.359 78.3582 104.359Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M78.3582 107.314C78.6818 107.314 78.9441 107.051 78.9441 106.728C78.9441 106.404 78.6818 106.142 78.3582 106.142C78.0346 106.142 77.7723 106.404 77.7723 106.728C77.7723 107.051 78.0346 107.314 78.3582 107.314Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M78.3582 110.268C78.6818 110.268 78.9441 110.006 78.9441 109.683C78.9441 109.359 78.6818 109.097 78.3582 109.097C78.0346 109.097 77.7723 109.359 77.7723 109.683C77.7723 110.006 78.0346 110.268 78.3582 110.268Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M78.3582 113.223C78.6818 113.223 78.9441 112.961 78.9441 112.637C78.9441 112.314 78.6818 112.052 78.3582 112.052C78.0346 112.052 77.7723 112.314 77.7723 112.637C77.7723 112.961 78.0346 113.223 78.3582 113.223Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M78.3582 116.178C78.6818 116.178 78.9441 115.916 78.9441 115.592C78.9441 115.269 78.6818 115.007 78.3582 115.007C78.0346 115.007 77.7723 115.269 77.7723 115.592C77.7723 115.916 78.0346 116.178 78.3582 116.178Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M78.3582 119.133C78.6818 119.133 78.9441 118.871 78.9441 118.548C78.9441 118.224 78.6818 117.962 78.3582 117.962C78.0346 117.962 77.7723 118.224 77.7723 118.548C77.7723 118.871 78.0346 119.133 78.3582 119.133Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M78.3582 122.088C78.6818 122.088 78.9441 121.826 78.9441 121.502C78.9441 121.179 78.6818 120.917 78.3582 120.917C78.0346 120.917 77.7723 121.179 77.7723 121.502C77.7723 121.826 78.0346 122.088 78.3582 122.088Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M78.3582 125.043C78.6818 125.043 78.9441 124.781 78.9441 124.457C78.9441 124.134 78.6818 123.871 78.3582 123.871C78.0346 123.871 77.7723 124.134 77.7723 124.457C77.7723 124.781 78.0346 125.043 78.3582 125.043Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M78.3582 127.998C78.6818 127.998 78.9441 127.736 78.9441 127.412C78.9441 127.089 78.6818 126.826 78.3582 126.826C78.0346 126.826 77.7723 127.089 77.7723 127.412C77.7723 127.736 78.0346 127.998 78.3582 127.998Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M78.3582 130.953C78.6818 130.953 78.9441 130.691 78.9441 130.367C78.9441 130.044 78.6818 129.781 78.3582 129.781C78.0346 129.781 77.7723 130.044 77.7723 130.367C77.7723 130.691 78.0346 130.953 78.3582 130.953Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M80.9353 92.5431C81.2588 92.5431 81.5212 92.2808 81.5212 91.9572C81.5212 91.6337 81.2588 91.3713 80.9353 91.3713C80.6117 91.3713 80.3494 91.6337 80.3494 91.9572C80.3494 92.2808 80.6117 92.5431 80.9353 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M80.9353 95.498C81.2588 95.498 81.5212 95.2356 81.5212 94.9121C81.5212 94.5885 81.2588 94.3262 80.9353 94.3262C80.6117 94.3262 80.3494 94.5885 80.3494 94.9121C80.3494 95.2356 80.6117 95.498 80.9353 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M80.9353 98.4528C81.2588 98.4528 81.5212 98.1905 81.5212 97.8669C81.5212 97.5433 81.2588 97.281 80.9353 97.281C80.6117 97.281 80.3494 97.5433 80.3494 97.8669C80.3494 98.1905 80.6117 98.4528 80.9353 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M80.9353 101.404C81.2588 101.404 81.5212 101.141 81.5212 100.818C81.5212 100.494 81.2588 100.232 80.9353 100.232C80.6117 100.232 80.3494 100.494 80.3494 100.818C80.3494 101.141 80.6117 101.404 80.9353 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M80.9353 104.359C81.2588 104.359 81.5212 104.096 81.5212 103.773C81.5212 103.449 81.2588 103.187 80.9353 103.187C80.6117 103.187 80.3494 103.449 80.3494 103.773C80.3494 104.096 80.6117 104.359 80.9353 104.359Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M80.9353 107.314C81.2588 107.314 81.5212 107.051 81.5212 106.728C81.5212 106.404 81.2588 106.142 80.9353 106.142C80.6117 106.142 80.3494 106.404 80.3494 106.728C80.3494 107.051 80.6117 107.314 80.9353 107.314Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M80.9353 110.268C81.2588 110.268 81.5212 110.006 81.5212 109.683C81.5212 109.359 81.2588 109.097 80.9353 109.097C80.6117 109.097 80.3494 109.359 80.3494 109.683C80.3494 110.006 80.6117 110.268 80.9353 110.268Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M80.9353 113.223C81.2588 113.223 81.5212 112.961 81.5212 112.637C81.5212 112.314 81.2588 112.052 80.9353 112.052C80.6117 112.052 80.3494 112.314 80.3494 112.637C80.3494 112.961 80.6117 113.223 80.9353 113.223Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M80.9353 116.178C81.2588 116.178 81.5212 115.916 81.5212 115.592C81.5212 115.269 81.2588 115.007 80.9353 115.007C80.6117 115.007 80.3494 115.269 80.3494 115.592C80.3494 115.916 80.6117 116.178 80.9353 116.178Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M80.9353 119.133C81.2588 119.133 81.5212 118.871 81.5212 118.548C81.5212 118.224 81.2588 117.962 80.9353 117.962C80.6117 117.962 80.3494 118.224 80.3494 118.548C80.3494 118.871 80.6117 119.133 80.9353 119.133Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M80.9353 122.088C81.2588 122.088 81.5212 121.826 81.5212 121.502C81.5212 121.179 81.2588 120.917 80.9353 120.917C80.6117 120.917 80.3494 121.179 80.3494 121.502C80.3494 121.826 80.6117 122.088 80.9353 122.088Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M80.9353 125.043C81.2588 125.043 81.5212 124.781 81.5212 124.457C81.5212 124.134 81.2588 123.871 80.9353 123.871C80.6117 123.871 80.3494 124.134 80.3494 124.457C80.3494 124.781 80.6117 125.043 80.9353 125.043Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M80.9353 127.998C81.2588 127.998 81.5212 127.736 81.5212 127.412C81.5212 127.089 81.2588 126.826 80.9353 126.826C80.6117 126.826 80.3494 127.089 80.3494 127.412C80.3494 127.736 80.6117 127.998 80.9353 127.998Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M80.9353 130.953C81.2588 130.953 81.5212 130.691 81.5212 130.367C81.5212 130.044 81.2588 129.781 80.9353 129.781C80.6117 129.781 80.3494 130.044 80.3494 130.367C80.3494 130.691 80.6117 130.953 80.9353 130.953Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M83.5124 92.5431C83.836 92.5431 84.0983 92.2808 84.0983 91.9572C84.0983 91.6337 83.836 91.3713 83.5124 91.3713C83.1888 91.3713 82.9265 91.6337 82.9265 91.9572C82.9265 92.2808 83.1888 92.5431 83.5124 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M83.5125 95.498C83.8361 95.498 84.0984 95.2356 84.0984 94.9121C84.0984 94.5885 83.8361 94.3262 83.5125 94.3262C83.1889 94.3262 82.9266 94.5885 82.9266 94.9121C82.9266 95.2356 83.1889 95.498 83.5125 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M83.5125 98.4528C83.8361 98.4528 84.0984 98.1905 84.0984 97.8669C84.0984 97.5433 83.8361 97.281 83.5125 97.281C83.1889 97.281 82.9266 97.5433 82.9266 97.8669C82.9266 98.1905 83.1889 98.4528 83.5125 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M83.5125 101.404C83.8361 101.404 84.0984 101.141 84.0984 100.818C84.0984 100.494 83.8361 100.232 83.5125 100.232C83.1889 100.232 82.9266 100.494 82.9266 100.818C82.9266 101.141 83.1889 101.404 83.5125 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M83.5125 104.359C83.8361 104.359 84.0984 104.096 84.0984 103.773C84.0984 103.449 83.8361 103.187 83.5125 103.187C83.1889 103.187 82.9266 103.449 82.9266 103.773C82.9266 104.096 83.1889 104.359 83.5125 104.359Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M83.5125 107.314C83.8361 107.314 84.0984 107.051 84.0984 106.728C84.0984 106.404 83.8361 106.142 83.5125 106.142C83.1889 106.142 82.9266 106.404 82.9266 106.728C82.9266 107.051 83.1889 107.314 83.5125 107.314Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M83.5125 110.268C83.8361 110.268 84.0984 110.006 84.0984 109.683C84.0984 109.359 83.8361 109.097 83.5125 109.097C83.1889 109.097 82.9266 109.359 82.9266 109.683C82.9266 110.006 83.1889 110.268 83.5125 110.268Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M83.5125 113.223C83.8361 113.223 84.0984 112.961 84.0984 112.637C84.0984 112.314 83.8361 112.052 83.5125 112.052C83.1889 112.052 82.9266 112.314 82.9266 112.637C82.9266 112.961 83.1889 113.223 83.5125 113.223Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M83.5125 116.178C83.8361 116.178 84.0984 115.916 84.0984 115.592C84.0984 115.269 83.8361 115.007 83.5125 115.007C83.1889 115.007 82.9266 115.269 82.9266 115.592C82.9266 115.916 83.1889 116.178 83.5125 116.178Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M83.5125 119.133C83.8361 119.133 84.0984 118.871 84.0984 118.548C84.0984 118.224 83.8361 117.962 83.5125 117.962C83.1889 117.962 82.9266 118.224 82.9266 118.548C82.9266 118.871 83.1889 119.133 83.5125 119.133Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M83.5125 122.088C83.8361 122.088 84.0984 121.826 84.0984 121.502C84.0984 121.179 83.8361 120.917 83.5125 120.917C83.1889 120.917 82.9266 121.179 82.9266 121.502C82.9266 121.826 83.1889 122.088 83.5125 122.088Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M83.5125 125.043C83.8361 125.043 84.0984 124.781 84.0984 124.457C84.0984 124.134 83.8361 123.871 83.5125 123.871C83.1889 123.871 82.9266 124.134 82.9266 124.457C82.9266 124.781 83.1889 125.043 83.5125 125.043Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M83.5125 127.998C83.8361 127.998 84.0984 127.736 84.0984 127.412C84.0984 127.089 83.8361 126.826 83.5125 126.826C83.1889 126.826 82.9266 127.089 82.9266 127.412C82.9266 127.736 83.1889 127.998 83.5125 127.998Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M83.5125 130.953C83.8361 130.953 84.0984 130.691 84.0984 130.367C84.0984 130.044 83.8361 129.781 83.5125 129.781C83.1889 129.781 82.9266 130.044 82.9266 130.367C82.9266 130.691 83.1889 130.953 83.5125 130.953Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M86.0852 92.5431C86.4087 92.5431 86.6711 92.2808 86.6711 91.9572C86.6711 91.6337 86.4087 91.3713 86.0852 91.3713C85.7616 91.3713 85.4993 91.6337 85.4993 91.9572C85.4993 92.2808 85.7616 92.5431 86.0852 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M86.0852 95.498C86.4087 95.498 86.6711 95.2356 86.6711 94.9121C86.6711 94.5885 86.4087 94.3262 86.0852 94.3262C85.7616 94.3262 85.4993 94.5885 85.4993 94.9121C85.4993 95.2356 85.7616 95.498 86.0852 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M86.0852 98.4528C86.4087 98.4528 86.6711 98.1905 86.6711 97.8669C86.6711 97.5433 86.4087 97.281 86.0852 97.281C85.7616 97.281 85.4993 97.5433 85.4993 97.8669C85.4993 98.1905 85.7616 98.4528 86.0852 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M86.0852 101.404C86.4087 101.404 86.6711 101.141 86.6711 100.818C86.6711 100.494 86.4087 100.232 86.0852 100.232C85.7616 100.232 85.4993 100.494 85.4993 100.818C85.4993 101.141 85.7616 101.404 86.0852 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M86.0852 104.359C86.4087 104.359 86.6711 104.096 86.6711 103.773C86.6711 103.449 86.4087 103.187 86.0852 103.187C85.7616 103.187 85.4993 103.449 85.4993 103.773C85.4993 104.096 85.7616 104.359 86.0852 104.359Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M86.0852 107.314C86.4087 107.314 86.6711 107.051 86.6711 106.728C86.6711 106.404 86.4087 106.142 86.0852 106.142C85.7616 106.142 85.4993 106.404 85.4993 106.728C85.4993 107.051 85.7616 107.314 86.0852 107.314Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M86.0852 110.268C86.4087 110.268 86.6711 110.006 86.6711 109.683C86.6711 109.359 86.4087 109.097 86.0852 109.097C85.7616 109.097 85.4993 109.359 85.4993 109.683C85.4993 110.006 85.7616 110.268 86.0852 110.268Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M86.0852 113.223C86.4087 113.223 86.6711 112.961 86.6711 112.637C86.6711 112.314 86.4087 112.052 86.0852 112.052C85.7616 112.052 85.4993 112.314 85.4993 112.637C85.4993 112.961 85.7616 113.223 86.0852 113.223Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M86.0852 116.178C86.4087 116.178 86.6711 115.916 86.6711 115.592C86.6711 115.269 86.4087 115.007 86.0852 115.007C85.7616 115.007 85.4993 115.269 85.4993 115.592C85.4993 115.916 85.7616 116.178 86.0852 116.178Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M86.0852 119.133C86.4087 119.133 86.6711 118.871 86.6711 118.548C86.6711 118.224 86.4087 117.962 86.0852 117.962C85.7616 117.962 85.4993 118.224 85.4993 118.548C85.4993 118.871 85.7616 119.133 86.0852 119.133Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M86.0852 122.088C86.4087 122.088 86.6711 121.826 86.6711 121.502C86.6711 121.179 86.4087 120.917 86.0852 120.917C85.7616 120.917 85.4993 121.179 85.4993 121.502C85.4993 121.826 85.7616 122.088 86.0852 122.088Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M86.0852 125.043C86.4087 125.043 86.6711 124.781 86.6711 124.457C86.6711 124.134 86.4087 123.871 86.0852 123.871C85.7616 123.871 85.4993 124.134 85.4993 124.457C85.4993 124.781 85.7616 125.043 86.0852 125.043Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M86.0852 127.998C86.4087 127.998 86.6711 127.736 86.6711 127.412C86.6711 127.089 86.4087 126.826 86.0852 126.826C85.7616 126.826 85.4993 127.089 85.4993 127.412C85.4993 127.736 85.7616 127.998 86.0852 127.998Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M86.0852 130.953C86.4087 130.953 86.6711 130.691 86.6711 130.367C86.6711 130.044 86.4087 129.781 86.0852 129.781C85.7616 129.781 85.4993 130.044 85.4993 130.367C85.4993 130.691 85.7616 130.953 86.0852 130.953Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M88.6623 92.5431C88.9859 92.5431 89.2482 92.2808 89.2482 91.9572C89.2482 91.6337 88.9859 91.3713 88.6623 91.3713C88.3387 91.3713 88.0764 91.6337 88.0764 91.9572C88.0764 92.2808 88.3387 92.5431 88.6623 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M88.6623 95.498C88.9859 95.498 89.2482 95.2356 89.2482 94.9121C89.2482 94.5885 88.9859 94.3262 88.6623 94.3262C88.3387 94.3262 88.0764 94.5885 88.0764 94.9121C88.0764 95.2356 88.3387 95.498 88.6623 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M88.6623 98.4528C88.9859 98.4528 89.2482 98.1905 89.2482 97.8669C89.2482 97.5433 88.9859 97.281 88.6623 97.281C88.3387 97.281 88.0764 97.5433 88.0764 97.8669C88.0764 98.1905 88.3387 98.4528 88.6623 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M88.6623 101.404C88.9859 101.404 89.2482 101.141 89.2482 100.818C89.2482 100.494 88.9859 100.232 88.6623 100.232C88.3387 100.232 88.0764 100.494 88.0764 100.818C88.0764 101.141 88.3387 101.404 88.6623 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M88.6623 104.359C88.9859 104.359 89.2482 104.096 89.2482 103.773C89.2482 103.449 88.9859 103.187 88.6623 103.187C88.3387 103.187 88.0764 103.449 88.0764 103.773C88.0764 104.096 88.3387 104.359 88.6623 104.359Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M88.6623 107.314C88.9859 107.314 89.2482 107.051 89.2482 106.728C89.2482 106.404 88.9859 106.142 88.6623 106.142C88.3387 106.142 88.0764 106.404 88.0764 106.728C88.0764 107.051 88.3387 107.314 88.6623 107.314Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M88.6623 110.268C88.9859 110.268 89.2482 110.006 89.2482 109.683C89.2482 109.359 88.9859 109.097 88.6623 109.097C88.3387 109.097 88.0764 109.359 88.0764 109.683C88.0764 110.006 88.3387 110.268 88.6623 110.268Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M88.6623 113.223C88.9859 113.223 89.2482 112.961 89.2482 112.637C89.2482 112.314 88.9859 112.052 88.6623 112.052C88.3387 112.052 88.0764 112.314 88.0764 112.637C88.0764 112.961 88.3387 113.223 88.6623 113.223Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M88.6623 116.178C88.9859 116.178 89.2482 115.916 89.2482 115.592C89.2482 115.269 88.9859 115.007 88.6623 115.007C88.3387 115.007 88.0764 115.269 88.0764 115.592C88.0764 115.916 88.3387 116.178 88.6623 116.178Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M88.6623 119.133C88.9859 119.133 89.2482 118.871 89.2482 118.548C89.2482 118.224 88.9859 117.962 88.6623 117.962C88.3387 117.962 88.0764 118.224 88.0764 118.548C88.0764 118.871 88.3387 119.133 88.6623 119.133Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M88.6623 122.088C88.9859 122.088 89.2482 121.826 89.2482 121.502C89.2482 121.179 88.9859 120.917 88.6623 120.917C88.3387 120.917 88.0764 121.179 88.0764 121.502C88.0764 121.826 88.3387 122.088 88.6623 122.088Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M88.6623 125.043C88.9859 125.043 89.2482 124.781 89.2482 124.457C89.2482 124.134 88.9859 123.871 88.6623 123.871C88.3387 123.871 88.0764 124.134 88.0764 124.457C88.0764 124.781 88.3387 125.043 88.6623 125.043Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M88.6623 127.998C88.9859 127.998 89.2482 127.736 89.2482 127.412C89.2482 127.089 88.9859 126.826 88.6623 126.826C88.3387 126.826 88.0764 127.089 88.0764 127.412C88.0764 127.736 88.3387 127.998 88.6623 127.998Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M88.6623 130.953C88.9859 130.953 89.2482 130.691 89.2482 130.367C89.2482 130.044 88.9859 129.781 88.6623 129.781C88.3387 129.781 88.0764 130.044 88.0764 130.367C88.0764 130.691 88.3387 130.953 88.6623 130.953Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M91.2393 92.5431C91.5629 92.5431 91.8252 92.2808 91.8252 91.9572C91.8252 91.6337 91.5629 91.3713 91.2393 91.3713C90.9158 91.3713 90.6534 91.6337 90.6534 91.9572C90.6534 92.2808 90.9158 92.5431 91.2393 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M91.2393 95.498C91.5629 95.498 91.8252 95.2356 91.8252 94.9121C91.8252 94.5885 91.5629 94.3262 91.2393 94.3262C90.9158 94.3262 90.6534 94.5885 90.6534 94.9121C90.6534 95.2356 90.9158 95.498 91.2393 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M91.2393 98.4528C91.5629 98.4528 91.8252 98.1905 91.8252 97.8669C91.8252 97.5433 91.5629 97.281 91.2393 97.281C90.9158 97.281 90.6534 97.5433 90.6534 97.8669C90.6534 98.1905 90.9158 98.4528 91.2393 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M91.2393 101.404C91.5629 101.404 91.8252 101.141 91.8252 100.818C91.8252 100.494 91.5629 100.232 91.2393 100.232C90.9158 100.232 90.6534 100.494 90.6534 100.818C90.6534 101.141 90.9158 101.404 91.2393 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M91.2393 104.359C91.5629 104.359 91.8252 104.096 91.8252 103.773C91.8252 103.449 91.5629 103.187 91.2393 103.187C90.9158 103.187 90.6534 103.449 90.6534 103.773C90.6534 104.096 90.9158 104.359 91.2393 104.359Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M91.2393 107.314C91.5629 107.314 91.8252 107.051 91.8252 106.728C91.8252 106.404 91.5629 106.142 91.2393 106.142C90.9158 106.142 90.6534 106.404 90.6534 106.728C90.6534 107.051 90.9158 107.314 91.2393 107.314Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M91.2393 110.268C91.5629 110.268 91.8252 110.006 91.8252 109.683C91.8252 109.359 91.5629 109.097 91.2393 109.097C90.9158 109.097 90.6534 109.359 90.6534 109.683C90.6534 110.006 90.9158 110.268 91.2393 110.268Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M91.2393 113.223C91.5629 113.223 91.8252 112.961 91.8252 112.637C91.8252 112.314 91.5629 112.052 91.2393 112.052C90.9158 112.052 90.6534 112.314 90.6534 112.637C90.6534 112.961 90.9158 113.223 91.2393 113.223Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M91.2393 116.178C91.5629 116.178 91.8252 115.916 91.8252 115.592C91.8252 115.269 91.5629 115.007 91.2393 115.007C90.9158 115.007 90.6534 115.269 90.6534 115.592C90.6534 115.916 90.9158 116.178 91.2393 116.178Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M91.2393 119.133C91.5629 119.133 91.8252 118.871 91.8252 118.548C91.8252 118.224 91.5629 117.962 91.2393 117.962C90.9158 117.962 90.6534 118.224 90.6534 118.548C90.6534 118.871 90.9158 119.133 91.2393 119.133Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M91.2393 122.088C91.5629 122.088 91.8252 121.826 91.8252 121.502C91.8252 121.179 91.5629 120.917 91.2393 120.917C90.9158 120.917 90.6534 121.179 90.6534 121.502C90.6534 121.826 90.9158 122.088 91.2393 122.088Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M91.2393 125.043C91.5629 125.043 91.8252 124.781 91.8252 124.457C91.8252 124.134 91.5629 123.871 91.2393 123.871C90.9158 123.871 90.6534 124.134 90.6534 124.457C90.6534 124.781 90.9158 125.043 91.2393 125.043Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M91.2393 127.998C91.5629 127.998 91.8252 127.736 91.8252 127.412C91.8252 127.089 91.5629 126.826 91.2393 126.826C90.9158 126.826 90.6534 127.089 90.6534 127.412C90.6534 127.736 90.9158 127.998 91.2393 127.998Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M91.2393 130.953C91.5629 130.953 91.8252 130.691 91.8252 130.367C91.8252 130.044 91.5629 129.781 91.2393 129.781C90.9158 129.781 90.6534 130.044 90.6534 130.367C90.6534 130.691 90.9158 130.953 91.2393 130.953Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M93.8123 92.5431C94.1359 92.5431 94.3982 92.2808 94.3982 91.9572C94.3982 91.6337 94.1359 91.3713 93.8123 91.3713C93.4888 91.3713 93.2264 91.6337 93.2264 91.9572C93.2264 92.2808 93.4888 92.5431 93.8123 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M93.8122 95.498C94.1358 95.498 94.3981 95.2356 94.3981 94.9121C94.3981 94.5885 94.1358 94.3262 93.8122 94.3262C93.4886 94.3262 93.2263 94.5885 93.2263 94.9121C93.2263 95.2356 93.4886 95.498 93.8122 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M93.8122 98.4528C94.1358 98.4528 94.3981 98.1905 94.3981 97.8669C94.3981 97.5433 94.1358 97.281 93.8122 97.281C93.4886 97.281 93.2263 97.5433 93.2263 97.8669C93.2263 98.1905 93.4886 98.4528 93.8122 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M93.8122 101.404C94.1358 101.404 94.3981 101.141 94.3981 100.818C94.3981 100.494 94.1358 100.232 93.8122 100.232C93.4886 100.232 93.2263 100.494 93.2263 100.818C93.2263 101.141 93.4886 101.404 93.8122 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M93.8122 104.359C94.1358 104.359 94.3981 104.096 94.3981 103.773C94.3981 103.449 94.1358 103.187 93.8122 103.187C93.4886 103.187 93.2263 103.449 93.2263 103.773C93.2263 104.096 93.4886 104.359 93.8122 104.359Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M93.8122 107.314C94.1358 107.314 94.3981 107.051 94.3981 106.728C94.3981 106.404 94.1358 106.142 93.8122 106.142C93.4886 106.142 93.2263 106.404 93.2263 106.728C93.2263 107.051 93.4886 107.314 93.8122 107.314Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M93.8122 110.268C94.1358 110.268 94.3981 110.006 94.3981 109.683C94.3981 109.359 94.1358 109.097 93.8122 109.097C93.4886 109.097 93.2263 109.359 93.2263 109.683C93.2263 110.006 93.4886 110.268 93.8122 110.268Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M93.8122 113.223C94.1358 113.223 94.3981 112.961 94.3981 112.637C94.3981 112.314 94.1358 112.052 93.8122 112.052C93.4886 112.052 93.2263 112.314 93.2263 112.637C93.2263 112.961 93.4886 113.223 93.8122 113.223Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M93.8122 116.178C94.1358 116.178 94.3981 115.916 94.3981 115.592C94.3981 115.269 94.1358 115.007 93.8122 115.007C93.4886 115.007 93.2263 115.269 93.2263 115.592C93.2263 115.916 93.4886 116.178 93.8122 116.178Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M93.8122 119.133C94.1358 119.133 94.3981 118.871 94.3981 118.548C94.3981 118.224 94.1358 117.962 93.8122 117.962C93.4886 117.962 93.2263 118.224 93.2263 118.548C93.2263 118.871 93.4886 119.133 93.8122 119.133Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M93.8122 122.088C94.1358 122.088 94.3981 121.826 94.3981 121.502C94.3981 121.179 94.1358 120.917 93.8122 120.917C93.4886 120.917 93.2263 121.179 93.2263 121.502C93.2263 121.826 93.4886 122.088 93.8122 122.088Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M93.8122 125.043C94.1358 125.043 94.3981 124.781 94.3981 124.457C94.3981 124.134 94.1358 123.871 93.8122 123.871C93.4886 123.871 93.2263 124.134 93.2263 124.457C93.2263 124.781 93.4886 125.043 93.8122 125.043Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M93.8122 127.998C94.1358 127.998 94.3981 127.736 94.3981 127.412C94.3981 127.089 94.1358 126.826 93.8122 126.826C93.4886 126.826 93.2263 127.089 93.2263 127.412C93.2263 127.736 93.4886 127.998 93.8122 127.998Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M93.8122 130.953C94.1358 130.953 94.3981 130.691 94.3981 130.367C94.3981 130.044 94.1358 129.781 93.8122 129.781C93.4886 129.781 93.2263 130.044 93.2263 130.367C93.2263 130.691 93.4886 130.953 93.8122 130.953Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M96.3892 92.5431C96.7128 92.5431 96.9751 92.2808 96.9751 91.9572C96.9751 91.6337 96.7128 91.3713 96.3892 91.3713C96.0657 91.3713 95.8033 91.6337 95.8033 91.9572C95.8033 92.2808 96.0657 92.5431 96.3892 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M96.3894 95.498C96.7129 95.498 96.9753 95.2356 96.9753 94.9121C96.9753 94.5885 96.7129 94.3262 96.3894 94.3262C96.0658 94.3262 95.8035 94.5885 95.8035 94.9121C95.8035 95.2356 96.0658 95.498 96.3894 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M96.3894 98.4528C96.7129 98.4528 96.9753 98.1905 96.9753 97.8669C96.9753 97.5433 96.7129 97.281 96.3894 97.281C96.0658 97.281 95.8035 97.5433 95.8035 97.8669C95.8035 98.1905 96.0658 98.4528 96.3894 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M96.3894 101.404C96.7129 101.404 96.9753 101.141 96.9753 100.818C96.9753 100.494 96.7129 100.232 96.3894 100.232C96.0658 100.232 95.8035 100.494 95.8035 100.818C95.8035 101.141 96.0658 101.404 96.3894 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M96.3894 104.359C96.7129 104.359 96.9753 104.096 96.9753 103.773C96.9753 103.449 96.7129 103.187 96.3894 103.187C96.0658 103.187 95.8035 103.449 95.8035 103.773C95.8035 104.096 96.0658 104.359 96.3894 104.359Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M98.9665 92.5431C99.2901 92.5431 99.5524 92.2808 99.5524 91.9572C99.5524 91.6337 99.2901 91.3713 98.9665 91.3713C98.6429 91.3713 98.3806 91.6337 98.3806 91.9572C98.3806 92.2808 98.6429 92.5431 98.9665 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M98.9665 95.498C99.2901 95.498 99.5524 95.2356 99.5524 94.9121C99.5524 94.5885 99.2901 94.3262 98.9665 94.3262C98.6429 94.3262 98.3806 94.5885 98.3806 94.9121C98.3806 95.2356 98.6429 95.498 98.9665 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M98.9665 98.4528C99.2901 98.4528 99.5524 98.1905 99.5524 97.8669C99.5524 97.5433 99.2901 97.281 98.9665 97.281C98.6429 97.281 98.3806 97.5433 98.3806 97.8669C98.3806 98.1905 98.6429 98.4528 98.9665 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M98.9665 101.404C99.2901 101.404 99.5524 101.141 99.5524 100.818C99.5524 100.494 99.2901 100.232 98.9665 100.232C98.6429 100.232 98.3806 100.494 98.3806 100.818C98.3806 101.141 98.6429 101.404 98.9665 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M98.9665 104.359C99.2901 104.359 99.5524 104.096 99.5524 103.773C99.5524 103.449 99.2901 103.187 98.9665 103.187C98.6429 103.187 98.3806 103.449 98.3806 103.773C98.3806 104.096 98.6429 104.359 98.9665 104.359Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M101.539 92.5431C101.863 92.5431 102.125 92.2808 102.125 91.9572C102.125 91.6337 101.863 91.3713 101.539 91.3713C101.216 91.3713 100.953 91.6337 100.953 91.9572C100.953 92.2808 101.216 92.5431 101.539 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M101.539 95.498C101.863 95.498 102.125 95.2356 102.125 94.9121C102.125 94.5885 101.863 94.3262 101.539 94.3262C101.216 94.3262 100.953 94.5885 100.953 94.9121C100.953 95.2356 101.216 95.498 101.539 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M101.539 98.4528C101.863 98.4528 102.125 98.1905 102.125 97.8669C102.125 97.5433 101.863 97.281 101.539 97.281C101.216 97.281 100.953 97.5433 100.953 97.8669C100.953 98.1905 101.216 98.4528 101.539 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M101.539 101.404C101.863 101.404 102.125 101.141 102.125 100.818C102.125 100.494 101.863 100.232 101.539 100.232C101.216 100.232 100.953 100.494 100.953 100.818C100.953 101.141 101.216 101.404 101.539 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M101.539 104.359C101.863 104.359 102.125 104.096 102.125 103.773C102.125 103.449 101.863 103.187 101.539 103.187C101.216 103.187 100.953 103.449 100.953 103.773C100.953 104.096 101.216 104.359 101.539 104.359Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M104.116 92.5431C104.44 92.5431 104.702 92.2808 104.702 91.9572C104.702 91.6337 104.44 91.3713 104.116 91.3713C103.793 91.3713 103.53 91.6337 103.53 91.9572C103.53 92.2808 103.793 92.5431 104.116 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M104.116 95.498C104.44 95.498 104.702 95.2356 104.702 94.9121C104.702 94.5885 104.44 94.3262 104.116 94.3262C103.793 94.3262 103.53 94.5885 103.53 94.9121C103.53 95.2356 103.793 95.498 104.116 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M104.116 98.4528C104.44 98.4528 104.702 98.1905 104.702 97.8669C104.702 97.5433 104.44 97.281 104.116 97.281C103.793 97.281 103.53 97.5433 103.53 97.8669C103.53 98.1905 103.793 98.4528 104.116 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M104.116 101.404C104.44 101.404 104.702 101.141 104.702 100.818C104.702 100.494 104.44 100.232 104.116 100.232C103.793 100.232 103.53 100.494 103.53 100.818C103.53 101.141 103.793 101.404 104.116 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M104.116 104.359C104.44 104.359 104.702 104.096 104.702 103.773C104.702 103.449 104.44 103.187 104.116 103.187C103.793 103.187 103.53 103.449 103.53 103.773C103.53 104.096 103.793 104.359 104.116 104.359Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M106.693 92.5431C107.017 92.5431 107.279 92.2808 107.279 91.9572C107.279 91.6337 107.017 91.3713 106.693 91.3713C106.37 91.3713 106.108 91.6337 106.108 91.9572C106.108 92.2808 106.37 92.5431 106.693 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M106.693 95.498C107.017 95.498 107.279 95.2356 107.279 94.9121C107.279 94.5885 107.017 94.3262 106.693 94.3262C106.37 94.3262 106.108 94.5885 106.108 94.9121C106.108 95.2356 106.37 95.498 106.693 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M106.693 98.4528C107.017 98.4528 107.279 98.1905 107.279 97.8669C107.279 97.5433 107.017 97.281 106.693 97.281C106.37 97.281 106.108 97.5433 106.108 97.8669C106.108 98.1905 106.37 98.4528 106.693 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M106.693 101.404C107.017 101.404 107.279 101.141 107.279 100.818C107.279 100.494 107.017 100.232 106.693 100.232C106.37 100.232 106.108 100.494 106.108 100.818C106.108 101.141 106.37 101.404 106.693 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M106.693 104.359C107.017 104.359 107.279 104.096 107.279 103.773C107.279 103.449 107.017 103.187 106.693 103.187C106.37 103.187 106.108 103.449 106.108 103.773C106.108 104.096 106.37 104.359 106.693 104.359Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M109.266 92.5431C109.59 92.5431 109.852 92.2808 109.852 91.9572C109.852 91.6337 109.59 91.3713 109.266 91.3713C108.943 91.3713 108.68 91.6337 108.68 91.9572C108.68 92.2808 108.943 92.5431 109.266 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M109.266 95.498C109.59 95.498 109.852 95.2356 109.852 94.9121C109.852 94.5885 109.59 94.3262 109.266 94.3262C108.942 94.3262 108.68 94.5885 108.68 94.9121C108.68 95.2356 108.942 95.498 109.266 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M109.266 98.4528C109.59 98.4528 109.852 98.1905 109.852 97.8669C109.852 97.5433 109.59 97.281 109.266 97.281C108.942 97.281 108.68 97.5433 108.68 97.8669C108.68 98.1905 108.942 98.4528 109.266 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M109.266 101.404C109.59 101.404 109.852 101.141 109.852 100.818C109.852 100.494 109.59 100.232 109.266 100.232C108.942 100.232 108.68 100.494 108.68 100.818C108.68 101.141 108.942 101.404 109.266 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M109.266 104.252C109.59 104.252 109.852 103.99 109.852 103.666C109.852 103.343 109.59 103.081 109.266 103.081C108.942 103.081 108.68 103.343 108.68 103.666C108.68 103.99 108.942 104.252 109.266 104.252Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M111.843 92.5431C112.167 92.5431 112.429 92.2808 112.429 91.9572C112.429 91.6337 112.167 91.3713 111.843 91.3713C111.52 91.3713 111.257 91.6337 111.257 91.9572C111.257 92.2808 111.52 92.5431 111.843 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M111.843 95.498C112.167 95.498 112.429 95.2356 112.429 94.9121C112.429 94.5885 112.167 94.3262 111.843 94.3262C111.52 94.3262 111.257 94.5885 111.257 94.9121C111.257 95.2356 111.52 95.498 111.843 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M111.843 98.4528C112.167 98.4528 112.429 98.1905 112.429 97.8669C112.429 97.5433 112.167 97.281 111.843 97.281C111.52 97.281 111.257 97.5433 111.257 97.8669C111.257 98.1905 111.52 98.4528 111.843 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M111.843 101.404C112.167 101.404 112.429 101.141 112.429 100.818C112.429 100.494 112.167 100.232 111.843 100.232C111.52 100.232 111.257 100.494 111.257 100.818C111.257 101.141 111.52 101.404 111.843 101.404Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M114.42 92.5431C114.744 92.5431 115.006 92.2808 115.006 91.9572C115.006 91.6337 114.744 91.3713 114.42 91.3713C114.097 91.3713 113.835 91.6337 113.835 91.9572C113.835 92.2808 114.097 92.5431 114.42 92.5431Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M114.42 95.498C114.744 95.498 115.006 95.2356 115.006 94.9121C115.006 94.5885 114.744 94.3262 114.42 94.3262C114.097 94.3262 113.835 94.5885 113.835 94.9121C113.835 95.2356 114.097 95.498 114.42 95.498Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M114.42 98.4528C114.744 98.4528 115.006 98.1905 115.006 97.8669C115.006 97.5433 114.744 97.281 114.42 97.281C114.097 97.281 113.835 97.5433 113.835 97.8669C113.835 98.1905 114.097 98.4528 114.42 98.4528Z",fill:"#111827"}),(0,yt.jsx)("path",{d:"M32.5354 57.924L28.5446 55.3044",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M32.5353 64.4116L26.9269 67.6468",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M37.7703 56.6162V49.6958",stroke:"#111827",strokeWidth:"2",strokeMiterlimit:"10"}),(0,yt.jsx)("path",{d:"M129 57.3334C129 57.3334 139.667 52.0001 139.667 44.0001V34.6667L129 30.6667L118.333 34.6667V44.0001C118.333 52.0001 129 57.3334 129 57.3334Z",stroke:"#111827",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,yt.jsx)("path",{d:"M125 43.9999L127.667 46.6666L133 41.3333",stroke:"#111827",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Qk=({onClickGetStarted:e,onClickLearnMore:t,heading:n,subheading:r})=>{const[o,i]=(0,ct.useState)(!1),s=(0,ht.applyFilters)("surecookie.auth_button_config",{buttonText:(0,pt.__)("Let's Get Started","surecookie"),onClick:null}),a=[{id:1,text:(0,pt.__)("Automatic Cookie Detection","surecookie")},{id:2,text:(0,pt.__)("Smart Categorization","surecookie")},{id:3,text:(0,pt.__)("Compliance Recommendations","surecookie")}];return(0,yt.jsx)("div",{className:"flex flex-col items-center self-stretch gap-3 px-5 py-8",children:(0,yt.jsxs)(Dk,{className:"flex flex-col justify-center items-center gap-8 mx-auto max-w-[24.75rem]",children:[(0,yt.jsx)(gb,{className:"size-8"}),(0,yt.jsxs)("div",{className:"flex flex-col items-center self-stretch gap-3",children:[(0,yt.jsx)(Iw,{size:18,weight:600,color:"primary",className:"text-center",children:n||(0,pt.__)("Connect to scan your website","surecookie")}),(0,yt.jsx)(Iw,{size:14,weight:400,color:"secondary",className:"text-center self-stretch",children:r||(0,pt.__)("Connect your SureCookie account to automatically detect cookies on your website, categorize them, and get compliance recommendations.","surecookie")})]}),(0,yt.jsx)("div",{className:"flex flex-row self-stretch flex-wrap justify-center gap-6 py-2",children:a.map(e=>(0,yt.jsxs)("div",{className:"flex flex-col items-center gap-2 max-w-28",children:[(0,yt.jsx)(jb,{width:16,height:16,className:"text-icon-interactive"}),(0,yt.jsx)(Iw,{size:14,weight:500,color:"primary",className:"text-center",children:e.text})]},e.id))}),(0,yt.jsxs)("div",{className:"flex flex-col w-full gap-2 p-2",children:[(0,yt.jsx)(Fa,{variant:"primary",onClick:async()=>{s.onClick?s.onClick():o||"function"!=typeof e||(i(!0),await e(),i(!1))},className:"[&>span]:flex [&>span]:items-center [&>span]:justify-center [&>span]:gap-2",icon:o&&(0,yt.jsx)(Tw,{size:"sm",variant:"secondary"}),disabled:o,children:s.buttonText}),(0,yt.jsx)(Fa,{variant:"ghost",className:"w-fit mx-auto hover:bg-transparent focus:[box-shadow:none] text-text-tertiary hover:text-text-secondary font-normal",onClick:()=>{"function"==typeof t&&t()},children:(0,pt.__)("Learn more","surecookie")})]})]})})},Hk=_b("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]),qk=({onClickUpgrade:e,utmContent:t="upgrade_cpt",title:n=(0,pt.__)("Free Plan Limit Reached","surecookie"),description:r=(0,pt.__)("You've used all available AI requests in your Free Plan. Upgrade to SureCookie premium to keep using AI features.","surecookie"),buttonText:o=(0,pt.__)("Upgrade Now","surecookie"),showButton:i=!0})=>(0,yt.jsx)("div",{className:"bg-background-secondary rounded-lg p-2",children:(0,yt.jsxs)("div",{className:"bg-background-primary rounded-md p-4 flex flex-col items-center gap-3",children:[(0,yt.jsx)(Hk,{className:"text-text-primary size-6"}),(0,yt.jsxs)("div",{className:"text-center",children:[(0,yt.jsx)(Iw,{as:"h3",size:16,weight:600,color:"primary",children:n}),(0,yt.jsx)(Iw,{color:"secondary",className:"mt-1",children:r})]}),i&&(0,yt.jsx)(Fa,{variant:"primary",size:"md",onClick:()=>{"function"!=typeof e?window.open(ni(`pricing_${t}`,"pricing/"),"_blank","noopener,noreferrer"):e()},children:o})]})}),Vk=_b("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]),Kk=(e="upgrade_notice")=>{const t=window?.surecookieAdminData||{},n=!!t.is_pro_active,r=!!t.license_activated,o=!!t.is_pro_installed;return n&&!r?{label:(0,pt.__)("Add License","surecookie"),href:t.license_admin_url||"",target:"_self",isProActive:n,isLicensed:r,isPricing:!1}:!n&&o?{label:(0,pt.__)("Activate SureCookie Pro","surecookie"),href:`${t.adminUrl||""}plugins.php`,target:"_self",isProActive:n,isLicensed:r,isPricing:!1}:{label:(0,pt.__)("Upgrade Now","surecookie"),href:ni(`pricing_${e}`,"pricing/"),target:"_blank",isProActive:n,isLicensed:r,isPricing:!n}},Wk=({title:e=(0,pt.__)("Unlock this feature","surecookie"),description:t=(0,pt.__)("Upgrade to SureCookie premium to access this feature.","surecookie"),buttonLabel:n,buttonHref:r,utmContent:o="upgrade_notice",className:i="",target:s})=>{const a=Kk(o),l=n||a.label,c=r||a.href,u=s||a.target;return(0,yt.jsxs)("div",{className:jo("flex flex-row items-center gap-2 p-3 rounded-lg border border-solid border-brand-primary-200 bg-brand-background-50",i),role:"banner",children:[(0,yt.jsxs)("div",{className:"flex flex-col gap-1 flex-1",children:[(0,yt.jsx)(Iw,{size:14,weight:600,color:"primary",lineHeight:20,children:e}),(0,yt.jsx)(Iw,{size:14,weight:400,color:"secondary",lineHeight:20,children:t})]}),(0,yt.jsx)("div",{className:"flex items-center gap-2",children:(0,yt.jsx)(Fa,{tag:"a",href:c,target:u,rel:"_blank"===u?"noopener noreferrer":void 0,variant:"link",size:"md",className:"no-underline ring-0",icon:(0,yt.jsx)(Vk,{className:"w-5 h-5"}),iconPosition:"right",children:l})})]})};class Gk extends ct.Component{constructor(e){super(e),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){this.setState({error:e,errorInfo:t})}render(){return this.state.hasError?(0,yt.jsxs)("div",{className:"p-6 bg-red-50 border border-red-200 rounded-lg",children:[(0,yt.jsx)("h2",{className:"text-lg font-medium text-red-800",children:"Something went wrong"}),(0,yt.jsx)("p",{className:"text-red-600 mt-2",children:"An error occurred while loading this component. Please try refreshing the page."}),(0,yt.jsx)("button",{className:"mt-4 px-4 py-2 bg-button-primary text-white rounded hover:bg-button-primary-hover",onClick:()=>{this.setState({hasError:!1,error:null,errorInfo:null}),window.location.reload()},children:"Reload Page"}),!1]}):this.props.children}}const $k=Gk,Yk=({title:e="",description:t="",bannerImage:n="",installButtonProps:r,renderInstallButton:o})=>(0,yt.jsxs)("div",{className:"flex flex-col gap-4 p-5 bg-background-primary rounded-2xl border border-border-subtle shadow-sm",children:[(0,yt.jsx)("div",{className:"h-auto w-full rounded-md shadow-lg object-cover bg-background-secondary overflow-clip border border-border-subtle",children:(0,yt.jsx)("img",{src:n,alt:e})}),(0,yt.jsxs)("div",{className:"flex flex-col gap-1 px-1",children:[(0,yt.jsx)(Iw,{as:"p",size:16,weight:600,className:"text-text-primary",children:e}),(0,yt.jsx)(Iw,{as:"p",size:14,weight:400,className:"text-text-secondary",children:t})]}),(0,yt.jsx)("div",{className:"flex mt-1",children:(0,ct.isValidElement)(o)?o:"function"==typeof o?o():(0,yt.jsx)(Fa,{variant:"secondary",type:"button",size:"sm",onClick:()=>{"function"==typeof r.onClick&&r?.onClick?.()},...r,children:r?.label})})]}),Zk=({variant:e="rectangular",className:t,...n})=>{const r={circular:"rounded-full bg-gray-200 ",rectangular:"rounded-md bg-gray-200"}[e],o={circular:"size-10",rectangular:"w-96 h-3"}[e];return(0,yt.jsx)("div",{role:"status","aria-label":"Loading",className:wa(r,"animate-pulse",o,t),...n})},Xk=()=>{const[e,t]=(0,ct.useState)(null),[n,r]=(0,ct.useState)(!0),o=(()=>{const e=bt();return En({mutationFn:async e=>{const t=e.split("/")[0];if(!wp.updates)throw new Error((0,pt.__)("WordPress updates API not available.","surecookie"));return new Promise((n,r)=>{wp.updates.installPlugin({slug:t,success:()=>{Fn()({path:"/surecookie/v1/plugin/activate",method:"POST",data:{plugin_path:e}}).then(e=>{e.success?n(e):r(new Error(e.message||(0,pt.__)("Plugin activation failed.","surecookie")))}).catch(e=>{r(new Error(e.message||(0,pt.__)("Plugin activation failed.","surecookie")))})},error:e=>{r(new Error(e.errorMessage||(0,pt.__)("Plugin installation failed.","surecookie")))}})})},onSuccess:()=>{e.invalidateQueries({queryKey:Nn.pluginManagement.promotional()}),At.success((0,pt.__)("Plugin installed and activated successfully.","surecookie"))},onError:e=>{At.error(e.message||(0,pt.__)("Failed to install and activate plugin.","surecookie"))}})})(),i=(()=>{const e=bt();return En({mutationFn:async e=>{const t=await Fn()({path:"/surecookie/v1/plugin/activate",method:"POST",data:{plugin_path:e}});if(!t.success)throw t;return t},onSuccess:()=>{e.invalidateQueries({queryKey:Nn.pluginManagement.promotional()}),At.success((0,pt.__)("Plugin activated successfully.","surecookie"))},onError:e=>{At.error(e.message||(0,pt.__)("Failed to activate plugin.","surecookie"))}})})(),{data:s}=Sn({queryKey:Nn.pluginManagement.promotional(),queryFn:async()=>await Fn()({path:"/surecookie/v1/plugin/get-promotions",method:"GET"}),staleTime:3e5}),a=window.surecookieAdminData?.promotionalPlugins||{},l=window.surecookieAdminData?.promotionalShuffleId??0,c=(0,ct.useMemo)(()=>Object.entries(a),[a]);if((0,ct.useEffect)(()=>{if(Object.keys(a).length>0){const e=l%c.length,[n,o]=c[e];t({pluginPath:n,...o}),r(!1)}else r(!1)},[a,l]),(0,ct.useEffect)(()=>{if(s?.plugins&&e){const n=s.plugins[e.pluginPath];n&&t(e=>({...e,status:n.status}))}},[s,e?.pluginPath]),!e||!c.length)return null;const{pluginPath:u,status:d,name:A,description:h,bannerImage:p}=e,f=(()=>{const e=o.isPending||i.isPending;switch(d){case"not-installed":default:return{label:(0,pt.__)("Install and Activate","surecookie"),onClick:()=>o.mutate(u),className:e?"opacity-50":"",icon:e?(0,yt.jsx)(Tw,{size:"sm"}):null};case"inactive":return{label:(0,pt.__)("Activate","surecookie"),onClick:()=>i.mutate(u),className:e?"opacity-50":"",icon:e?(0,yt.jsx)(Tw,{size:"sm"}):null};case"active":return{label:(0,pt.__)("Activated","surecookie"),onClick:()=>{},className:"opacity-50"}}})();return(0,yt.jsx)(Yk,{title:A,description:h,bannerImage:p,installButtonProps:f,renderInstallButton:n&&(0,yt.jsx)(Zk,{className:"h-8 w-32"})})},Jk=_b("book-open-text",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M16 12h2",key:"7q9ll5"}],["path",{d:"M16 8h2",key:"msurwy"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}],["path",{d:"M6 12h2",key:"32wvfc"}],["path",{d:"M6 8h2",key:"30oboj"}]]),e_=e=>{const[t,n]=(0,ct.useState)(null);return(0,ct.useEffect)(()=>{n(document.querySelector(".surecookie-styles"))},[]),!!t&&(0,yt.jsx)(Gv,{...e,arrow:!0,tooltipPortalRoot:t})},t_=({href:e})=>{if(!e)return null;const t=(0,pt.__)("Learn More","surecookie");return(0,yt.jsx)(e_,{content:t,placement:"bottom",children:(0,yt.jsx)(Fa,{size:"xs",tag:"a",variant:"outline",className:"shrink-0 -mr-1 text-icon-secondary hover:text-icon-primary p-2",href:e,target:"_blank",rel:"noreferrer noopener","aria-label":t,icon:(0,yt.jsx)(Jk,{strokeWidth:"1.5"})})})},n_=({pageTitle:e,pageDescription:t,children:n,className:r,contentWrapperClassName:o,docLink:i,renderActions:s,renderNotice:a})=>{const l=void 0===i?((e=(()=>{const e=(window.location?.hash||"").replace(/^#/,"").split(/[?#]/)[0];return e.startsWith("/")?e:`/${e}`})())=>{const t=window?.surecookieAdminData?.page_doc_links;return e&&t&&(t[e]||t[e.replace(/\/+$/,"")])||""})():i;return(0,yt.jsxs)("div",{className:jo("space-y-6",r),children:[(0,yt.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,yt.jsx)(Sx,{className:"flex-1 min-w-0",title:e,description:t,titleAction:(0,yt.jsx)(t_,{href:l})}),"function"==typeof s?s():s]}),"function"==typeof a?a():a,(0,yt.jsx)("div",{className:jo("bg-background-primary border border-border-subtle rounded-lg shadow-sm p-6 space-y-6",o),children:n})]})},r_=Bs("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]),o_=Bs("ImageOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]]),i_=Bs("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]),s_={sm:{image:"w-8 h-8",name:"text-xs",fileIcon:"h-8",uploadText:"text-xs"},md:{image:"w-10 h-10",name:"text-sm",fileIcon:"h-10",uploadText:"text-xs"},lg:{image:"w-10 h-10",name:"text-sm",fileIcon:"h-10",uploadText:"text-xs"}},a_=({file:e,onRemove:t,error:n,disabled:r,size:o="sm"})=>(0,yt.jsx)("div",{className:wa("w-full flex items-start justify-between rounded mt-2 bg-field-primary-background p-2 gap-3",n&&"border-alert-border-danger bg-alert-background-danger"),children:(0,yt.jsxs)("div",{className:"flex items-center gap-3 w-full",children:[e.type.startsWith("image")?(0,yt.jsx)("div",{className:wa("rounded-sm flex items-center justify-center shrink-0",n&&"bg-gray-200"),children:n?(0,yt.jsx)(o_,{className:"size-6 text-field-helper"}):(0,yt.jsx)("img",{src:"url"in e?e.url:URL.createObjectURL(e),alt:"Preview",className:wa("w-full object-contain rounded-sm",s_[o].image)})}):(0,yt.jsx)("span",{className:wa("inline-flex self-start p-0.5",s_[o].fileIcon),children:(0,yt.jsx)(r_,{className:"size-5 text-icon-primary"})}),(0,yt.jsxs)("div",{className:"text-left flex flex-col gap-0 w-[calc(100%_-_5.5rem)]",children:[(0,yt.jsx)("span",{className:wa(s_[o].name,"font-medium text-field-label truncate"),children:e.name}),e.size&&e.size>0&&(0,yt.jsx)("span",{className:wa(s_[o].uploadText,"text-xs text-field-helper",n&&"text-support-error"),children:Ca(e.size)})]}),!r&&(0,yt.jsx)("button",{onClick:()=>t(e),className:"inline-flex cursor-pointer bg-transparent border-0 p-1 my-0 ml-auto mr-0 focus:outline-none focus-visible:ring-2 focus-visible:ring-support-error focus-visible:ring-offset-1 rounded self-start shadow-none","aria-label":"Remove file",children:(0,yt.jsx)(i_,{className:"size-4 text-support-error"})})]})}),l_=new Map,c_=()=>(0,yt.jsx)(Zk,{className:"h-14 w-full"}),u_=({imageId:e,imageUrl:t,onRemove:n})=>{let r=(({imageId:e="",imageUrl:t=""})=>{if(l_.has(e||t))return l_.get(e||t);const n=(e=>{let t,n="pending";const r=e.then(e=>{n="success",t=e},e=>{n="error",t=e});return{read(){if("pending"===n)throw r;if("error"===n)throw t;if("success"===n)return t}}})(new Promise(n=>{if(!e&&!t)return void n({});const r=e=>{if(!e)return void n({});const t=(e=>wp.media.attachment(e).fetch())(e);t&&"function"==typeof t.then?t.then(()=>{n(t)}).catch(()=>{n({})}):n(t)};t?(async e=>{if(!e)return null;const t=new URL(e).pathname.split("/").pop().split("?")[0],n=t.replace(/-\d+x\d+\.(jpg|jpeg|png|gif|webp)$/i,"").replace(/-scaled\.(jpg|jpeg|png|gif|webp)$/i,"").replace(/\.(webp)$/i,"").replace(/(-optimized|-compressed)/i,""),r=[{search:t},{search:n},{search:t.replace(/\.[^/.]+$/,"")},{search:n.replace(/\.[^/.]+$/,"")}];for(const e of r)try{const r=await Fn()({path:(0,Tn.addQueryArgs)("/wp/v2/media",{search:e.search,media_type:"image",slug:e.search,per_page:20}),method:"GET"});if(r&&r.length>0)return r.find(e=>{const r=e.source_url||e.url,o=r.split("/").pop().split("?")[0];return o===t||r.includes(n)||o.includes(n)})||r[0]}catch(e){continue}try{const e=n.split("-")[0],t=await Fn()({path:(0,Tn.addQueryArgs)("/wp/v2/media",{search:e,media_type:"image",per_page:50}),method:"GET"});if(t&&t.length>0)return t[0]}catch(e){}return null})(t).then(e=>{e?r(e.id):n({})}).catch(()=>{n({})}):e?r(e):n({})}));return l_.set(e||t,n),n})({imageId:e,imageUrl:t}).read()||{};"attributes"in r&&(r=r.attributes);const o=r.filename||"",i=r.filesizeInBytes||"",s=r.url||"",a=r.type||"";return(0,yt.jsx)("div",{className:"[&>div]:m-0",children:(0,yt.jsx)(a_,{file:{name:o,url:s,type:a,size:i},onRemove:n,size:"md"})})},d_=(0,ct.memo)(({imageId:e,imageUrl:t,onRemove:n})=>((0,ct.useEffect)(()=>{const n=()=>{(e||t)&&l_.delete(e||t)};return window.addEventListener("beforeunload",n),()=>{window.removeEventListener("beforeunload",n)}},[e,t]),e||t?(0,yt.jsx)($k,{children:(0,yt.jsx)(ct.Suspense,{fallback:(0,yt.jsx)(c_,{}),children:(0,yt.jsx)(u_,{imageId:e,imageUrl:t,onRemove:n})})}):null)),A_=({pageTitle:e,pageDescription:t,noticeTitle:n,noticeDescription:r,utmContent:o})=>{const{isProActive:i}=Kk(o);return(0,yt.jsx)(n_,{pageTitle:e,pageDescription:t,children:i?(0,yt.jsx)(pk,{color:"info",showIcon:!0,title:(0,pt.__)("Coming soon","surecookie"),message:r}):(0,yt.jsx)(Wk,{title:n,description:r,buttonLabel:(0,pt.__)("View Plans","surecookie"),buttonHref:ni(o,"pricing/")})})},h_=({validateSettings:e})=>{const{hasChanges:t,isSaving:n,saveSettings:r}=si();return(0,yt.jsx)(yt.Fragment,{children:(0,yt.jsx)("div",{className:"flex justify-start gap-3 mt-6 mb-4",children:(0,yt.jsx)(Fa,{type:"button",onClick:async()=>{if(n||!t)return;if("function"==typeof e&&!e())return;const o=await r();o.success?(At.success((0,pt.__)("Settings saved!","surecookie"),{description:(0,pt.__)("Your settings have been successfully saved.","surecookie")}),setTimeout(()=>{const e=new CustomEvent("settingsSaved");window.dispatchEvent(e)},100)):At.error((0,pt.__)("Save failed!","surecookie"),{description:o?.message??(0,pt.__)("There was an error saving your settings. Please try again.","surecookie")})},className:jo({"cursor-not-allowed opacity-50":!t}),icon:n?(0,yt.jsx)(Tw,{variant:"secondary"}):t?(0,yt.jsx)(Rk,{}):null,children:n?(0,pt.__)("Saving…","surecookie"):(0,pt.__)("Save","surecookie")})})})},p_=(0,ft.createContext)(null);const f_=e=>!e.isLayoutDirty&&e.willUpdate(!1);function m_(){const e=new Set,t=new WeakMap,n=()=>e.forEach(f_);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);const o=t.get(r);o&&(o(),t.delete(r)),n()},dirty:n}}const g_=e=>!0===e,y_=({children:e,id:t,inherit:n=!0})=>{const r=(0,ft.useContext)(qa),o=(0,ft.useContext)(p_),[i,s]=function(){const e=function(){const e=(0,ft.useRef)(!1);return Ka(()=>(e.current=!0,()=>{e.current=!1}),[]),e}(),[t,n]=(0,ft.useState)(0),r=(0,ft.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,ft.useCallback)(()=>_c.postRender(r),[r]),t]}(),a=(0,ft.useRef)(null),l=r.id||o;null===a.current&&((e=>g_(!0===e)||"id"===e)(n)&&l&&(t=t?l+"-"+t:l),a.current={id:t,group:g_(n)&&r.group||m_()});const c=(0,ft.useMemo)(()=>({...a.current,forceRender:i}),[s]);return(0,yt.jsx)(qa.Provider,{value:c,children:e})},v_=(0,ft.createContext)({}),b_=()=>(0,ft.useContext)(v_),w_=(0,ft.createContext)(null),x_=({children:e,activeItem:t=null,onChange:n,className:r,size:o="sm",orientation:i="horizontal",variant:s="pill",iconPosition:a="left",width:l="full","aria-label":c})=>{const u=(0,ft.useMemo)(()=>nm(),[]),d=b_(),A="activeItem"in d,h=d?.activeItem||t,p=(0,ft.useCallback)((e,t)=>{n&&n({event:e,value:t})},[n]);let f,m="rounded-full",g="p-1",y="ring-1 ring-tab-border";"vertical"===i?f="gap-0.5":("rounded"===s||"pill"===s)&&("xs"===o||"sm"===o?f="gap-0.5":("md"===o||"lg"===o)&&(f="gap-1")),"rounded"===s||"vertical"===i?m="rounded-md":"underline"===s&&(m="rounded-none",g="p-0",y="border-t-0 border-r-0 border-l-0 border-b border-solid border-tab-border","xs"===o?f="gap-0":"sm"===o?f="gap-2.5":("md"===o||"lg"===o)&&(f="gap-3"));const v=wa(`box-border [&>*]:box-border flex items-center ${"full"===l?"w-full":""} ${"vertical"===i?"flex-col":""}`,m,g,f,y,"underline"!==s?"bg-tab-background":"",r);return(0,yt.jsx)("div",{className:v,role:"tablist","aria-orientation":i,...c&&{"aria-label":c},onKeyDown:e=>{const t=Array.from(e.currentTarget.querySelectorAll('[role="tab"]:not([disabled])')),n=t.findIndex(t=>t===e.currentTarget.ownerDocument.activeElement);if(-1===n)return;const r="vertical"!==i,o=r?"ArrowLeft"===e.key:"ArrowUp"===e.key,s=r?"ArrowRight"===e.key:"ArrowDown"===e.key;if(!o&&!s&&"Home"!==e.key&&"End"!==e.key)return;e.preventDefault();let a=n;o?a=n<=0?t.length-1:n-1:s?a=n>=t.length-1?0:n+1:"Home"===e.key?a=0:"End"===e.key&&(a=t.length-1),t[a].focus()},children:(0,yt.jsx)(w_.Provider,{value:{activeItem:h,onChange:p,size:o,variant:s,orientation:i,iconPosition:a,width:l,hasPanels:A},children:(0,yt.jsx)(y_,{id:u,children:ft.Children.map(e,e=>(0,ft.isValidElement)(e)?ft.cloneElement(e):null)})})})};x_.displayName="Tabs.Group";const k_=(0,ft.forwardRef)(({slug:e,text:t,icon:n,className:r,disabled:o=!1,badge:i=null,...s},a)=>{const l=(0,ft.useContext)(w_);if(!l)throw new Error("Tab should be used inside Tabs Group");const{activeItem:c,onChange:u,size:d,variant:A,orientation:h,iconPosition:p,width:f,hasPanels:m}=l,g={xs:"px-1.5 py-0.5 text-xs [&_svg]:size-3",sm:"underline"===A?"py-1.5 text-sm [&_svg]:size-4":"px-3 py-1.5 text-sm [&_svg]:size-4",md:"underline"===A?"py-2 text-base [&_svg]:size-5":"px-3.5 py-1.5 text-base [&_svg]:size-5",lg:"underline"===A?"p-2.5 text-lg [&_svg]:size-6":"px-3.5 py-1.5 text-lg [&_svg]:size-6"}[d],y=wa("relative border-none bg-transparent text-text-secondary cursor-pointer flex items-center justify-center transition-[box-shadow,color,background-color] duration-200","full"===f?"flex-1":"","vertical"===h?"w-full justify-between":"");let v="rounded-full";"rounded"===A?v="rounded-md":"underline"===A&&(v="rounded-none");const b=wa(y,"border-none",v,"hover:text-text-primary","focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-strong",g,c===e?"bg-background-primary text-text-primary shadow-sm":"",o?"text-text-disabled cursor-not-allowed hover:text-text-disabled":"",r),w=wa("flex items-center gap-1");return(0,yt.jsxs)(Xf.button,{ref:a,className:b,disabled:o,onClick:n=>{u(n,{slug:e,text:t})},layoutRoot:!0,role:"tab","aria-selected":c===e,...m&&{"aria-controls":`panel-${e}`},id:`tab-${e}`,tabIndex:c===e?0:-1,...s,children:[c===e&&"underline"===A&&(0,yt.jsx)(Xf.span,{layoutId:"underline",layoutDependency:c,className:"absolute right-0 left-0 -bottom-px h-px bg-border-interactive"}),(0,yt.jsxs)("span",{className:w,children:["left"===p&&n&&(0,yt.jsx)("span",{className:"mr-1 contents center-center transition duration-150",children:n}),t,"right"===p&&n&&(0,yt.jsx)("span",{className:"ml-1 contents center-center transition duration-150",children:n})]}),i&&(0,ft.isValidElement)(i)&&i]})});k_.displayName="Tabs.Tab";const C_=({activeItem:e,children:t})=>(0,yt.jsx)(v_.Provider,{value:{activeItem:e},children:t}),B_=({slug:e,children:t})=>{const n=b_();if(!n)throw new Error("TabPanel should be used inside Tabs");return e!==n.activeItem?null:(0,yt.jsx)("div",{role:"tabpanel",id:`panel-${e}`,"aria-labelledby":`tab-${e}`,tabIndex:0,children:t})};B_.displayName="Tabs.Panel",C_.Group=x_,C_.Tab=k_,C_.Panel=B_;const S_=Bs("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]),j_=(0,ft.forwardRef)(({id:e,type:t="text",defaultValue:n="",value:r,size:o="sm",className:i="",disabled:s=!1,onChange:a=()=>{},error:l=!1,onError:c=()=>{},prefix:u=null,suffix:d=null,label:A="",...h},p)=>{const f=(0,ft.useRef)(null),m=(0,ft.useMemo)(()=>e||`input-${t}-${nm()}`,[e]),g=(0,ft.useMemo)(()=>typeof r<"u",[r]),[y,v]=(0,ft.useState)(n),[b,w]=(0,ft.useState)(null),x=(0,ft.useCallback)(()=>g?r:y,[g,r,y]),k=e=>{if(s)return;let n;"file"===t?(n=e.target.files,n&&n.length>0?w(n[0].name):w(null)):n=e.target.value,!g&&"file"!==t&&v(n),"function"==typeof a&&a(n)},_=()=>{w(null),f.current&&(f.current.value=""),a(null)},C="bg-field-secondary-background font-normal placeholder-text-tertiary text-text-primary w-full outline outline-1 outline-border-subtle border-none transition-[color,box-shadow,outline] duration-200",B={xs:"px-2 py-1 rounded",sm:"p-3 py-2 rounded",md:"p-3.5 py-2.5 rounded-md",lg:"p-4 py-3 rounded-lg"},S={xs:"text-xs font-medium",sm:"text-sm font-medium",md:"text-sm font-medium",lg:"text-base font-medium"},j={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-base"},E={sm:u?"pl-8":"",md:u?"pl-9":"",lg:u?"pl-10":""},N={sm:d?"pr-8":"",md:d?"pr-9":"",lg:d?"pr-10":""},I=s?"hover:outline-border-disabled":"hover:outline-border-strong",F="focus:outline-focus-border focus:ring-2 focus:ring-toggle-on focus:ring-offset-2",T=l?"focus:outline-focus-error-border focus:ring-field-color-error outline-focus-error-border":"",L=l?"focus:outline-focus-error-border focus:ring-field-color-error outline-focus-error-border":"",P=s?"outline-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled":"",M=s?"outline-border-disabled cursor-not-allowed text-text-disabled file:text-text-tertiary":"",O="font-normal placeholder-text-tertiary text-text-primary pointer-events-none absolute inset-y-0 flex flex-1 items-center [&>svg]:h-4 [&>svg]:w-4",D=s?"font-normal placeholder-text-tertiary text-icon-disabled pointer-events-none absolute inset-y-0 flex flex-1 items-center":"font-normal placeholder-text-tertiary text-field-placeholder pointer-events-none absolute inset-y-0 flex flex-1 items-center",U={xs:"[&>svg]:size-4",sm:"[&>svg]:size-4",md:"[&>svg]:size-5",lg:"[&>svg]:size-6"},R=(0,ft.useMemo)(()=>A?(0,yt.jsx)($b,{className:wa(S[o]),htmlFor:m,...h?.required&&{required:!0},children:A}):null,[A,o,m]),z=b?"file:border-0 file:bg-transparent pr-10":"text-text-tertiary file:border-0 file:bg-transparent pr-10";return"file"===t?(0,yt.jsxs)("div",{className:"flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[R,(0,yt.jsxs)("div",{className:wa("w-full relative flex focus-within:z-10",i),children:[(0,yt.jsx)("input",{ref:Ua(f,p),id:m,type:"file",className:wa(C,M,B[o],j[o],F,I,L,z),disabled:s,onChange:k,onInvalid:c,...l&&{"aria-invalid":!0},...h}),(0,yt.jsx)("div",{className:wa(D,"right-0 pr-3",U[o]),"aria-hidden":"true",children:(0,yt.jsx)(S_,{})})]})]}):(0,yt.jsxs)("div",{className:"flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[R,(0,yt.jsxs)("div",{className:wa("w-full relative flex focus-within:z-10",i),children:[u?(0,yt.jsx)("div",{className:wa(O,"left-0 pl-3",j[o]),children:u}):null,(0,yt.jsx)("input",{ref:Ua(f,p),id:m,type:t,className:wa(C,P,B[o],j[o],E[o],N[o],F,I,T),disabled:s,onChange:k,onInvalid:c,value:x(),...l&&{"aria-invalid":!0},...h}),"file"===t?b?(0,yt.jsx)("div",{className:wa(D,"right-0 pr-3 cursor-pointer z-20 pointer-events-auto",U[o]),onClick:_,role:"button",tabIndex:0,"aria-label":"Remove file",onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&_()},children:(0,yt.jsx)(Ss,{"aria-hidden":"true"})}):(0,yt.jsx)("div",{className:wa(D,"right-0 pr-3",U[o]),"aria-hidden":"true",children:(0,yt.jsx)(S_,{})}):d?(0,yt.jsx)("div",{className:wa(O,"right-0 pr-3",j[o]),children:d}):null]})]})});j_.displayName="Input";const E_="4.13.16",N_="es2020",I_=!0,F_=!0,T_=!0;let L_=!1;const P_=!0,M_="https://xdsoft.net/jodit/",O_=()=>L_=!0,D_={},U_="\ufeff",R_=" ",z_=()=>/[\uFEFF]/g,Q_=()=>/[\uFEFF]+$/g,H_=()=>/^[\uFEFF]+/g,q_=()=>/[\s\n\t\r\uFEFF\u200b]+/g,V_=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,K_=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,W_="undefined"!=typeof window?window:void 0,G_="undefined"!=typeof document?document:void 0,$_=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,Y_=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,Z_=new Set(["ul","ol"]),X_=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],J_=new Set([...X_,"br","hr"]),eC=new Set(X_),tC="Meta",nC="Backspace",rC="Tab",oC="Enter",iC="Escape",sC="Alt",aC="ArrowLeft",lC="ArrowUp",cC="ArrowRight",uC="ArrowDown",dC="Space",AC="Delete",hC="F3",pC=5,fC=10,mC=[tC,nC,AC,lC,uC,cC,aC,oC,iC,hC,rC],gC="br",yC="p",vC=1,bC=2,wC=3,xC="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),kC=xC?"text":"text/plain",_C=xC?"html":"text/html",CC=xC?"rtf":"text/rtf",BC="jodit-selection_marker",SC=300,jC="insert_as_html",EC="insert_clear_html",NC="insert_as_text",IC="insert_only_text",FC=10,TC=void 0!==W_&&/Mac|iPod|iPhone|iPad/.test(W_.navigator.platform),LC={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:TC?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},PC=e=>{const t=e.split("/"),n=!1;return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:n}:{basePath:e,isMin:n}},{basePath:MC,isMin:OC}=(()=>{if("undefined"==typeof document)return{basePath:"",isMin:Boolean(!1)};const e=G_.currentScript;if(e)return PC(e.src);const t=G_.querySelectorAll("script[src]");return t&&t.length?PC(t[t.length-1].src):PC(W_.location.href)})(),DC=MC,UC=OC,RC="data-jodit-temp",zC={},QC="clipboard",HC="source-consumer",qC=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);function VC(e){return"function"==typeof e}function KC(e,t,n){if(!VC(n.value))throw new TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);const r=n.value;return{configurable:!0,get(){const e=r.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}const WC={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"};function GC(e){return Boolean(e)&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(e)))}function $C(e){return Array.isArray(e)}function YC(e){return"string"==typeof e}function ZC(e){return $C(e)&&YC(e[0])}function XC(e){return null==e}function JC(e,t){if(!YC(e)||!e.length)return null;const n=e.split(".");let r=t;try{for(const e of n){if(XC(r[e]))return null;r=r[e]}}catch(e){return null}return XC(r)?null:r}const eB={};function tB(e){var t,n;if(!(e in eB)){const n=G_.createElement("iframe");try{if(n.src="about:blank",G_.body.appendChild(n),!n.contentWindow)return null;const t=JC(e,n.contentWindow),r=JC(e.split(".").slice(0,-1).join("."),n.contentWindow);VC(t)&&(eB[e]=t.bind(r))}catch(e){if(!T_)throw e}finally{null===(t=n.parentNode)||void 0===t||t.removeChild(n)}}return null!==(n=eB[e])&&void 0!==n?n:null}const nB=function(...e){var t;return(GC(Array.from)?Array.from:null!==(t=tB("Array.from"))&&void 0!==t?t:Array.from).apply(Array,e)},rB=e=>YC(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""));function oB(e){return Boolean(e)&&VC(e.has)&&VC(e.add)&&VC(e.delete)}function iB(e){return e.replace(K_(),"").replace(V_(),"")}function sB(e,t){return e.replace(RegExp(`[${t}]+$`),"").replace(RegExp(`^[${t}]+`),"")}function aB(e){return e.replace(Q_(),"").replace(H_(),"")}class lB extends Error{constructor(e){super(e),this.name="AssertionError"}}function cB(e,t){if(!e)throw new lB(`Assertion failed: ${t}`)}function uB(e){return null!=e&&e===e.window}function dB(e){return!(!e||"object"!=typeof e||e.nodeType||uB(e)||e.constructor&&!{}.hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}const AB=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),hB=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function pB(e){return"boolean"==typeof e}function fB(e){if(YC(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}const mB=e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;const t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";const n=parseInt(t[2],10),r=parseInt(t[3],10);let o=(parseInt(t[4],10)|r<<8|n<<16).toString(16).toUpperCase();for(;o.length<6;)o="0"+o;return t[1]+"#"+o},gB=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function yB(e,t){return!XC(t)&&gB.test(e)&&fB(t.toString())?parseInt(t.toString(),10)+"px":t}function vB(e,t){if("font-weight"===AB(e)){switch(t.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return fB(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&mB(t.toString())||t}const bB=e=>e.replace(/([-_])(.)/g,(e,t,n)=>n.toUpperCase());function wB(e,t,n,r=!1){if(pB(n)&&(r=n,n=void 0),dB(t)||void 0!==n){const r=(e,t,n)=>{void 0===(n=yB(t,n))||null!=n&&wB(e,t,!0)===vB(t,n)||(e.style[t]=n)};if(dB(t)){const n=Object.keys(t);for(let o=0;o<n.length;o+=1)r(e,bB(n[o]),t[n[o]])}else r(e,bB(t),n);return""}const o=AB(t),i=e.ownerDocument||document,s=!!i&&(i.defaultView||i.parentWindow),a=e.style[t];let l="";return void 0!==a&&""!==a?l=a:s&&!r&&(l=s.getComputedStyle(e).getPropertyValue(o)),gB.test(t)&&/^[-+]?[0-9.]+px$/.test(l.toString())&&(l=parseInt(l.toString(),10)),vB(t,l)}const xB=e=>{"block"===wB(e,"display")&&wB(e,"display","");const{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")};function kB(e,t,n){if(!e||!VC(e.getAttribute))return null;if(!YC(t))return Object.keys(t).forEach(n=>{const r=t[n];dB(r)&&"style"===n?wB(e,r):("className"===n&&(n="class"),kB(e,n,r))}),null;let r=hB(t);if(/^-/.test(r)){const t=kB(e,`data${r}`);if(t)return t;r=r.substr(1)}if(void 0!==n){if(null!=n){let t=n.toString();return"IMG"!==e.nodeName||"width"!==r&&"height"!==r||(t=t.replace("px","")),e.setAttribute(r,t),t}e.hasAttribute(r)&&e.removeAttribute(r)}return e.getAttribute(r)}function _B(e){return Boolean(e&&e instanceof Object&&VC(e.constructor)&&e.isView)}const CB=new WeakMap,BB=(e,t,n)=>{let r=CB.get(e);if(!r){r={},CB.set(e,r);let t=null;_B(e.j)&&(t=e.j.e),_B(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{CB.delete(e)})}return void 0===n?r[t]:(r[t]=n,n)};function SB(e="Aborted"){return new DOMException(e,"AbortError")}class jB extends Error{constructor(e){super(e),Object.setPrototypeOf(this,jB.prototype)}}class EB extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,EB.prototype)}}function NB(e){return new TypeError(e)}function IB(e){return new jB(e)}function FB(e){return new EB(e)}function TB(e){return e&&"function"==typeof e.then}function LB(e,...t){return e(...t)}function PB(e,t,...n){return e.apply(t,n)}function MB(e,t){kB(t,"data-editor_id",e.id),!t.component&&Object.defineProperty(t,"jodit",{value:e})}function OB(e,t){return TB(e)?e.then(e=>e,()=>null).finally(t):null==t?void 0:t()}const DB=(e,t)=>t.async.promise((n,r)=>{const o=new Image,i=()=>{t.e.off(o),null==r||r()},s=()=>{t.e.off(o),n(o)};t.e.one(o,"load",s).one(o,"error",i).one(o,"abort",i),o.src=e,o.complete&&s()}),UB=(e,t=!0)=>{if(t)return Object.keys(e);const n=[];for(const t in e)n.push(t);return n},RB=(e,t,{control:n},r)=>{var o;const i=`button${n.command}`;let s=null!==(o=n.args&&n.args[0])&&void 0!==o?o:BB(e,i);if(XC(s))return!1;BB(e,i,s),r&&(s=r(s)),e.execCommand(n.command,!1,null!=s?s:void 0)},zB=e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}};function QB(e,t){let n;do{n=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e)}while(!n&&e);return n}const HB=new RegExp(`<([a-z]+)[^>]+${RC}[^>]*>(.+?)</\\1>`,"gi");class qB{constructor(){throw new Error("Dom is static module")}static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,n){let r;const o=e;let i=e;n.s.save();let s=!1;do{s=!1,r=i.nextSibling,!r||qB.isBlock(r)||qB.isTag(r,"br")||(s=!0,i=r)}while(s);return qB.__wrapElements(t,n,o,i)}static __wrapElements(e,t,n,r){const o=YC(e)?t.createInside.element(e):e;n.parentNode&&n.parentNode.insertBefore(o,n);let i=n;for(;i&&(i=n.nextSibling,o.appendChild(n),n!==r&&i);)n=i;return t.s.restore(),o}static wrapInline(e,t,n){let r,o=e,i=e;n.s.save();let s=!1;do{s=!1,r=o.previousSibling,r&&!qB.isBlock(r)&&(s=!0,o=r)}while(s);do{s=!1,r=i.nextSibling,r&&!qB.isBlock(r)&&(s=!0,i=r)}while(s);return qB.__wrapElements(t,n,o,i)}static wrap(e,t,n){const r=YC(t)?n.element(t):t;if(qB.isNode(e)){if(!e.parentNode)throw NB("Element should be in DOM");e.parentNode.insertBefore(r,e),r.appendChild(e)}else{const t=e.extractContents();e.insertNode(r),r.appendChild(t)}return r}static unwrap(e){const t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);qB.safeRemove(e)}}static between(e,t,n){let r=e;for(;r&&r!==t&&(e===r||!n(r));){let e=r.firstChild||r.nextSibling;if(!e){for(;r&&!r.nextSibling;)if(r=r.parentNode,r===t)return;e=null==r?void 0:r.nextSibling}r=e}}static replace(e,t,n,r=!1,o=!1){let i;if(rB(t)&&(cB(n,"Need create instance for new tag"),t=n.fromHTML(t)),YC(t)?(cB(n,"Need create instance for new tag"),i=n.element(t)):i=t,!o)for(;e.firstChild;)i.appendChild(e.firstChild);return r&&qB.isElement(e)&&qB.isElement(i)&&nB(e.attributes).forEach(e=>{i.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(i,e),i}static isEmptyTextNode(e){return qB.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(z_(),"").trim().length)}static isEmptyContent(e){return qB.each(e,e=>qB.isEmptyTextNode(e))}static isContentEditable(e,t){return qB.isNode(e)&&!qB.closest(e,e=>qB.isElement(e)&&"false"===e.getAttribute("contenteditable"),t)}static isEmpty(e,t=eC){if(!e)return!0;let n;n=VC(t)?t:e=>t.has(e.nodeName.toLowerCase());const r=e=>null==e.nodeValue||0===iB(e.nodeValue).length;return qB.isText(e)?r(e):!(qB.isElement(e)&&n(e))&&qB.each(e,e=>{if(qB.isText(e)&&!r(e)||qB.isElement(e)&&n(e))return!1})}static isNode(e){return Boolean(e&&YC(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&VC(e.appendChild))}static isCell(e){return qB.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return qB.isTag(e,Z_)}static isLeaf(e){return qB.isTag(e,"li")}static isImage(e){return qB.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!XC(e)&&"object"==typeof e&&qB.isNode(e)&&$_.test(e.nodeName)}static isText(e){return Boolean(e&&e.nodeType===Node.TEXT_NODE)}static isComment(e){return Boolean(e&&e.nodeType===Node.COMMENT_NODE)}static isElement(e){return!!qB.isNode(e)&&e.nodeType===Node.ELEMENT_NODE}static isFragment(e){return!!qB.isNode(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(e){var t;if(!qB.isNode(e))return!1;const n=null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;return e instanceof(n?n.HTMLElement:HTMLElement)}static isInlineBlock(e){return qB.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf(wB(e,"display").toString())}static canSplitBlock(e){return!XC(e)&&qB.isHTMLElement(e)&&qB.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static first(e,t){let n=null==e?void 0:e.firstChild;if(!n)return null;do{if(t(n))return n;let r=n.firstChild;if(r||(r=n.nextSibling),!r&&n.parentNode!==e){do{n=n.parentNode}while(n&&!(null==n?void 0:n.nextSibling)&&n.parentNode!==e);r=null==n?void 0:n.nextSibling}n=r}while(n);return null}static last(e,t){let n=null==e?void 0:e.lastChild;if(!n)return null;do{if(t(n))return n;let r=n.lastChild;if(r||(r=n.previousSibling),!r&&n.parentNode!==e){do{n=n.parentNode}while(n&&!(null==n?void 0:n.previousSibling)&&n.parentNode!==e);r=null==n?void 0:n.previousSibling}n=r}while(n);return null}static prev(e,t,n,r=!0){return qB.find(e,t,n,!1,r)}static next(e,t,n,r=!0){return qB.find(e,t,n,!0,r)}static prevWithClass(e,t){return qB.prev(e,e=>qB.isElement(e)&&e.classList.contains(t),e.parentNode)}static nextWithClass(e,t){return qB.next(e,e=>qB.isElement(e)&&e.classList.contains(t),e.parentNode)}static find(e,t,n,r=!0,o=!0){const i=this.nextGen(e,n,r,o);let s=i.next();for(;!s.done;){if(t(s.value))return s.value;s=i.next()}return null}static*nextGen(e,t,n=!0,r=!0){const o=[];let i=e;do{let t=n?i.nextSibling:i.previousSibling;for(;t;)o.push(t),t=n?t.nextSibling:t.previousSibling;o.reverse(),yield*this.runInStack(e,o,n,r),i=i.parentNode}while(i&&i!==t);return null}static each(e,t,n=!0){const r=this.eachGen(e,n);let o=r.next();for(;!o.done;){if(!1===t(o.value))return!1;o=r.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,n,r=!0){for(;t.length;){const o=t.pop();if(r){let e=n?o.lastChild:o.firstChild;for(;e;)t.push(e),e=n?e.previousSibling:e.nextSibling}e!==o&&(yield o)}}static findWithCurrent(e,t,n,r="nextSibling",o="firstChild"){let i=e;do{if(t(i))return i||null;if(o&&i&&i[o]){const e=qB.findWithCurrent(i[o],t,i,r,o);if(e)return e}for(;i&&!i[r]&&i!==n;)i=i.parentNode;i&&i[r]&&i!==n&&(i=i[r])}while(i&&i!==n);return null}static findSibling(e,t=!0,n=e=>!qB.isEmptyTextNode(e)){let r=qB.sibling(e,t);for(;r&&!n(r);)r=qB.sibling(r,t);return r&&n(r)?r:null}static findNotEmptySibling(e,t){return qB.findSibling(e,t,e=>{var t;return!qB.isEmptyTextNode(e)&&Boolean(!qB.isText(e)||(null===(t=e.nodeValue)||void 0===t?void 0:t.length)&&iB(e.nodeValue))})}static findNotEmptyNeighbor(e,t,n){return LB(t?qB.prev:qB.next,e,e=>Boolean(e&&(!(qB.isText(e)||qB.isComment(e))||iB((null==e?void 0:e.nodeValue)||"").length)),n)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,n,r=!1){let o=e;if(!o)return null;do{if(t(o))return o;if(o===n||!o.parentNode)break;o=o.parentNode}while(o&&o!==n);return o===n&&r&&t(o)?o:null}static closest(e,t,n){let r;const o=e=>e.toLowerCase();if(VC(t))r=t;else if($C(t)||oB(t)){const e=oB(t)?t:new Set(t.map(o));r=t=>Boolean(t&&e.has(o(t.nodeName)))}else r=e=>Boolean(e&&o(t)===o(e.nodeName));return qB.up(e,r,n)}static furthest(e,t,n){let r=null,o=null==e?void 0:e.parentElement;for(;o&&o!==n;)t(o)&&(r=o),o=null==o?void 0:o.parentElement;return r}static appendChildFirst(e,t){const n=e.firstChild;n?n!==t&&e.insertBefore(t,n):e.appendChild(t)}static after(e,t){const{parentNode:n}=e;n&&(n.lastChild===e?n.appendChild(t):n.insertBefore(t,e.nextSibling))}static before(e,t){const{parentNode:n}=e;n&&n.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){$C(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,n=!1,r=()=>!0){const o=(e.ownerDocument||G_).createDocumentFragment();nB(e.childNodes).filter(e=>!!r(e)||(qB.safeRemove(e),!1)).forEach(e=>{o.appendChild(e)}),n&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o)}static isOrContains(e,t,n=!1){return e===t?!n:Boolean(t&&e&&this.up(t,t=>t===e,e,!0))}static safeRemove(...e){e.forEach(e=>qB.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();const n=qB.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&qB.isTag(e.startContainer,J_)?qB.after(e.startContainer,t):(e.insertNode(t),n&&e.setStartBefore(n)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>qB.isText(e)&&!e.nodeValue&&qB.safeRemove(e))}static hide(e){e&&(BB(e,"__old_display",e.style.display),e.style.display="none")}static show(e){if(!e)return;const t=BB(e,"__old_display");"none"===e.style.display&&(e.style.display=t||"")}static isTag(e,t){if(Array.isArray(t))throw new TypeError("Dom.isTag does not support array");if(!this.isElement(e))return!1;const n=e.tagName.toLowerCase();return t instanceof Set?t.has(n)||t.has(e.tagName.toUpperCase()):n===t||e.tagName.toUpperCase()===t}static markTemporary(e,t){return t&&kB(e,t),kB(e,RC,!0),e}static isTemporary(e){return!!qB.isElement(e)&&(qB.isMarker(e)||"true"===kB(e,RC))}static isMarker(e){return qB.isNode(e)&&qB.isTag(e,"span")&&e.hasAttribute("data-"+BC)}static replaceTemporaryFromString(e){return e.replace(HB,"$2")}static temporaryList(e){return nB(e.querySelectorAll(`[${RC}]`))}}function VB(){let e=!0;try{const t=G_.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}function KB(e){return Boolean(e)&&e instanceof DOMException&&"AbortError"===e.name}function WB(e,t={}){if("object"!=typeof e)return String(e);const n=new Set(t.excludeKeys),r=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!n.has(e)){if("object"==typeof t&&null!=t){if(r.get(t))return"[refObject]";r.set(t,!0)}return t}},t.prettify)}function GB(e,t){return e===t||WB(e)===WB(t)}function $B(e,t){return e===t}function YB(e){return-1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/<meta[^>]*?ProgId[^>]*?(Word|Excel)\./i)||-1!==e.search(/<meta[^>]*?(LibreOffice|OpenOffice)/i)||-1!==e.search(/urn:schemas-microsoft-com:office:(word|excel)/)||-1!==e.search(/<\w[^>]*\sclass=("|')?Mso/)||-1!==e.search(/style='[^']*mso-/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}function ZB(e){return!XC(e)&&VC(e.init)}function XB(e){return!XC(e)&&VC(e.destruct)}function JB(e){return!XC(e)&&qB.isElement(e.container)}function eS(e){return YC(e)&&fB(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}function tS(e){return Boolean(e&&e instanceof Object&&VC(e.constructor)&&("undefined"!=typeof Jodit&&e instanceof Jodit||e.isJodit))}const nS=e=>YC(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e);function rS(e){return qB.isMarker(e)}function oS(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function iS(e){if(e.includes(" "))return!1;if("undefined"!=typeof URL)try{const t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}const t=G_.createElement("a");return t.href=e,Boolean(t.hostname)}function sS(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}function aS(e,t){const n=Object.getOwnPropertyDescriptor(e,t);return!n||VC(n.get)?null:n.value}function lS(e,t,n){const r=n.get;if(!r)throw NB("Getter property descriptor expected");n.get=function(){const e=r.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:n.configurable,enumerable:n.enumerable,writable:!1,value:e}),e}}function cS(e,t,n){const r=n.value;if(!VC(r))throw NB("Handler must be a Function");let o=!0;const i=new WeakMap;n.value=function(...e){var t;if(o&&i.has(this.constructor))return null===(t=i.get(this.constructor))||void 0===t?void 0:t.cloneNode(!0);const n=r.apply(this,e);return o&&qB.isElement(n)&&i.set(this.constructor,n),o?n.cloneNode(!0):n},e.hookStatus(WC.ready,e=>{const t=_B(e)?e:e.jodit;o=Boolean(t.options.cache)})}const uS=new Map,dS=e=>{var t;if(VC(e.className))return e.className();const n=(null===(t=e.constructor)||void 0===t?void 0:t.originalConstructor)||e.constructor;if(uS.has(n))return uS.get(n);if(n.name)return n.name;const r=new RegExp(/^\s*function\s*(\S*)\s*\(/),o=n.toString().match(r);return o?o[1]:""},AS=new Map;function hS(e){class t extends e{constructor(...e){super(...e),this.constructor===t&&(this instanceof t||Object.setPrototypeOf(this,t.prototype),this.setStatus("ready"))}}const n=dS(e.prototype);if(AS.has(n)&&!T_)throw new Error(`Component with name "${n}" is already registered`);return AS.set(n,t),t}function pS(e){return AS.get(e)}function fS(e,t,...n){return t?W_.setTimeout(e,t,...n):(e.call(null,...n),0)}function mS(e){W_.clearTimeout(e)}class gS{constructor(){var e,t,n,r,o;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!==(e=null===queueMicrotask||void 0===queueMicrotask?void 0:queueMicrotask.bind(window))&&void 0!==e?e:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.__requestsIdle=new Set,this.__controllers=new Set,this.__requestsRaf=new Set,this.__requestIdleCallbackNative=null!==(n=null===(t=window.requestIdleCallback)||void 0===t?void 0:t.bind(window))&&void 0!==n?n:(e,t)=>{var n;const r=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-r))})},null!==(n=null==t?void 0:t.timeout)&&void 0!==n?n:1)},this.__cancelIdleCallbackNative=null!==(o=null===(r=window.cancelIdleCallback)||void 0===r?void 0:r.bind(window))&&void 0!==o?o:e=>{this.clearTimeout(e)},this.isDestructed=!1}delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...n){if(this.isDestructed)return 0;let r={};XC(t)&&(t=0),oS(t)||(r=t,t=r.timeout||0),r.label&&this.clearLabel(r.label);const o=fS(e,t,...n),i=r.label||o;return this.timers.set(i,o),this.__callbacks.set(i,e),o}updateTimeout(e,t){if(cB(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;const n=this.__callbacks.get(e);return cB(VC(n),"Callback is not a function"),this.setTimeout(n,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&(mS(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if(YC(e))return this.clearLabel(e);mS(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,n=!1){let r=0,o=!1;const i=[],s=(...t)=>{if(!o){r=0;const n=e(...t);if(o=!0,i.length){const e=()=>{i.forEach(e=>e()),i.length=0};TB(n)?n.finally(e):e()}}},a=(...i)=>{o=!1,t?(!r&&n&&s(...i),mS(r),r=this.setTimeout(()=>s(...i),VC(t)?t():t),this.timers.set(e,r)):s(...i)};return dB(t)&&t.promisify?(...e)=>{const t=this.promise(e=>{i.push(e)}).catch(e=>{if(KB(e))return null;throw e});return a(...e),t}:a}microDebounce(e,t=!1){let n,r=!1,o=!0;return(...i)=>{n=i,r?o=!0:(o=!0,t&&(o=!1,e(...n)),r=!0,this.__queueMicrotaskNative(()=>{r=!1,this.isDestructed||o&&e(...n)}))}}throttle(e,t,n=!1){let r,o,i,s=null;return(...n)=>{r=!0,i=n,t?s||(o=()=>{r?(e(...i),r=!1,s=this.setTimeout(o,VC(t)?t():t),this.timers.set(o,s)):s=null},o()):e(...i)}}promise(e){let t=()=>{};const n=new Promise((n,r)=>{t=()=>r(SB("Abort async")),this.promisesRejections.add(t),e(n,r)});return n.finally||"undefined"==typeof process||F_||(n.finally=e=>(n.then(e).catch(e),n)),n.finally(()=>{this.promisesRejections.delete(t)}).catch(()=>null),n.rejectCallback=t,n}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise(t=>{e.then(e=>(t("fulfilled"),e),e=>{throw t("rejected"),e}),this.setTimeout(()=>{t("pending")},100)});const t={};return Promise.race([e,t]).then(e=>e===t?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(e,t={timeout:100}){const n=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(n),n}requestIdlePromise(e){return this.promise(t=>{const n=this.requestIdleCallback(()=>t(n),e)})}schedulerPostTask(e,t={delay:0,priority:"user-visible"}){const n=new AbortController;if(t.signal&&t.signal.addEventListener("abort",()=>n.abort()),this.__controllers.add(n),void 0!==globalThis.scheduler){const r=globalThis.scheduler.postTask(e,{...t,signal:n.signal});return r.finally(()=>{this.__controllers.delete(n)}).catch(()=>null),r}return this.promise((r,o)=>{const i=this.setTimeout(()=>{try{r(e())}catch(e){o(e)}this.__controllers.delete(n)},t.delay||1);n.signal.addEventListener("abort",()=>{this.clearTimeout(i),this.__controllers.delete(n),o(SB())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}requestAnimationFrame(e){const t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}cancelAnimationFrame(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.__requestsIdle.forEach(e=>this.cancelIdleCallback(e)),this.__requestsRaf.forEach(e=>this.cancelAnimationFrame(e)),this.__controllers.forEach(e=>e.abort()),this.timers.forEach(e=>mS(this.timers.get(e))),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}}function yS(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}const vS="JoditEventDefaultNamespace";class bS{constructor(){this.__store=new Map}get(e,t){if(this.__store.has(t)){const n=this.__store.get(t);return cB(n,"-"),n[e]}}indexOf(e,t,n){const r=this.get(e,t);if(r)for(let e=0;e<r.length;e+=1)if(r[e].originalCallback===n)return e;return!1}namespaces(e=!1){const t=nB(this.__store.keys());return e?t.filter(e=>e!==vS):t}events(e){const t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,n,r=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),r?o[e].unshift(n):o[e].push(n)}clear(){this.__store.clear()}clearEvents(e,t){const n=this.__store.get(e);n&&n[t]&&(delete n[t],Object.keys(n).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}}class wS{mute(e){return this.__mutedEvents.add(null!=e?e:"*"),this}isMuted(e){return!(!e||!this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}__eachEvent(e,t){yS(e).map(e=>e.trim()).forEach(e=>{const n=e.split("."),r=n[1]||vS;t.call(this,n[0],r)})}__getStore(e){if(!e)throw NB("Need subject");if(void 0===e[this.__key]){const t=new bS;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}__removeStoreFromSubject(e){void 0!==e[this.__key]&&delete e[this.__key]}__triggerNativeEvent(e,t){const n=this.__doc.createEvent("HTMLEvents");YC(t)?n.initEvent(t,!0,!0):(n.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(e=>{Object.defineProperty(n,e,{value:t[e],enumerable:!0})}),Object.defineProperty(n,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(n)}get current(){return this.currents[this.currents.length-1]}on(e,t,n,r){let o,i,s,a;if(YC(e)||ZC(e)?(o=this,i=e,s=t,a=n):(o=e,i=t,s=n,a=r),!YC(i)&&!ZC(i)||0===i.length)throw NB("Need events names");if(!VC(s))throw NB("Need event handler");if($C(o))return o.forEach(e=>{this.on(e,i,s,a)}),this;const l=o,c=this.__getStore(l),u=this;let d=function(e,...t){if(!u.isMuted(e))return s&&s.call(this,...t)};return xS(l)&&(d=function(e){if(!u.isMuted(e.type))return u.__prepareEvent(e),s&&!1===s.call(this,e)?(e.preventDefault(),e.stopImmediatePropagation(),!1):void 0}),this.__eachEvent(i,(e,t)=>{var n,r;if(0===e.length)throw NB("Need event name");if(!1===c.indexOf(e,t,s)){const o={event:e,originalCallback:s,syntheticCallback:d};if(c.set(e,t,o,null==a?void 0:a.top),xS(l)){const t=qC.has(e)?{passive:!0,capture:null!==(n=null==a?void 0:a.capture)&&void 0!==n&&n}:null!==(r=null==a?void 0:a.capture)&&void 0!==r&&r;d.options=t,l.addEventListener(e,d,t),this.__memoryDOMSubjectToHandler(l,d)}}}),this}__memoryDOMSubjectToHandler(e,t){const n=this.__domEventsMap.get(e)||new Set;n.add(t),this.__domEventsMap.set(e,n)}__unmemoryDOMSubjectToHandler(e,t){const n=this.__domEventsMap,r=n.get(e)||new Set;r.delete(t),r.size?n.set(e,r):n.delete(e)}one(e,t,n,r){let o,i,s,a;YC(e)||ZC(e)?(o=this,i=e,s=t,a=n):(o=e,i=t,s=n,a=r);const l=(...e)=>(this.off(o,i,l),s(...e));return this.on(o,i,l,a),this}off(e,t,n){let r,o,i;if(YC(e)||ZC(e)?(r=this,o=e,i=t):(r=e,o=t,i=n),$C(r))return r.forEach(e=>{this.off(e,o,i)}),this;const s=r,a=this.__getStore(s);if(!YC(o)&&!ZC(o)||0===o.length)return a.namespaces().forEach(e=>{this.off(s,"."+e)}),this.__removeStoreFromSubject(s),this;const l=e=>{var t;xS(s)&&(s.removeEventListener(e.event,e.syntheticCallback,null!==(t=e.syntheticCallback.options)&&void 0!==t&&t),this.__unmemoryDOMSubjectToHandler(s,e.syntheticCallback))},c=(e,t)=>{if(""===e)return void a.events(t).forEach(e=>{""!==e&&c(e,t)});const n=a.get(e,t);if(n&&n.length)if(VC(i)){const r=a.indexOf(e,t,i);!1!==r&&(l(n[r]),n.splice(r,1),n.length||a.clearEvents(t,e))}else n.forEach(l),n.length=0,a.clearEvents(t,e)};return this.__eachEvent(o,(e,t)=>{t===vS?a.namespaces().forEach(t=>{c(e,t)}):c(e,t)}),a.isEmpty()&&this.__removeStoreFromSubject(s),this}stopPropagation(e,t){const n=YC(e)?this:e,r=YC(e)?e:t;if("string"!=typeof r)throw NB("Need event names");const o=this.__getStore(n);this.__eachEvent(r,(e,t)=>{const r=o.get(e,t);r&&this.__stopped.push(r),t===vS&&o.namespaces(!0).forEach(t=>this.stopPropagation(n,e+"."+t))})}__removeStop(e){if(e){const t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}__isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...n){let r,o;const i=YC(e)?this:e,s=YC(e)?e:t,a=YC(e)?[t,...n]:n;if(!xS(i)&&!YC(s))throw NB("Need events names");const l=this.__getStore(i);return!YC(s)&&xS(i)?this.__triggerNativeEvent(i,t):this.__eachEvent(s,(e,t)=>{if(xS(i))this.__triggerNativeEvent(i,e);else{const n=l.get(e,t);if(n)try{[...n].every(t=>!this.__isStopped(n)&&(this.currents.push(e),o=t.syntheticCallback.call(i,e,...a),this.currents.pop(),void 0!==o&&(r=o),!0))}finally{this.__removeStop(n)}t!==vS||xS(i)||l.namespaces().filter(e=>e!==t).forEach(t=>{const n=this.fire.apply(this,[i,e+"."+t,...a]);void 0!==n&&(r=n)})}}),r}constructor(e){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=G_,this.__prepareEvent=e=>{e.cancelBubble||(e.composed&&VC(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})}),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,e&&(this.__doc=e),this.__key+=(new Date).getTime()}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((e,t)=>{this.off(t)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}}function xS(e){return e&&VC(e.addEventListener)}const kS=new wS,_S=e=>("file:"===W_.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e),CS=new Map,BS=e=>(t,n)=>{if(CS.has(n))return CS.get(n);const r=e(t,n);return CS.set(n,r),r},SS=BS((e,t)=>e.async.promise((n,r)=>{if(e.isInDestruct)return r();const o=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:_S(t)});e.o.nonce&&o.setAttribute("nonce",e.o.nonce),e.e.one(o,"error",r).one(o,"load",n),e.od.body.appendChild(o)})),jS=BS((e,t)=>e.async.promise((n,r)=>{if(e.isInDestruct)return r();const o=e.c.element("link");o.rel="stylesheet",o.media="all",o.crossOrigin="anonymous",e.o.nonce&&o.setAttribute("nonce",e.o.nonce),!e.isInDestruct&&e.e.on(o,"load",()=>n(o)).on(o,"error",r),o.href=_S(t),e.o.shadowRoot?e.o.shadowRoot.appendChild(o):e.od.body.appendChild(o)}));function ES(e,t,n=0){return YC(t[n])?SS(e,t[n]).then(()=>ES(e,t,n+1)):Promise.resolve()}function NS(e,t,n=0){return YC(t[n])?jS(e,t[n]).then(()=>NS(e,t,n+1)):Promise.resolve()}function IS(e){return AB(e).toLowerCase()}const FS=new Set;function TS(e,t,n){t=AB(t);const r=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+r+"."+(n?"js":"css")}class LS{constructor(e){this.opts=e,this.__items=new Map}get size(){return this.__items.size}add(e,t){this.__items.set(IS(e),t),kS.fire(`plugin:${e}:ready`)}get(e){return this.__items.get(IS(e))}remove(e){this.__items.delete(IS(e))}__getFullPluginsList(e){const t=[];return this.__items.forEach((n,r)=>{e&&!e.has(r)||t.push([r,n])}),t}__init(e){const{extraList:t,disableList:n,filter:r}=function(e){const t=e.o.extraPlugins.map(e=>YC(e)?{name:e}:e);return{extraList:t,disableList:new Set(yS(e.o.disablePlugins).map(IS)),filter:e.o.safeMode?new Set(e.o.safePluginsList):null}}(e),o=new Map,i={},s=new Set;e.__plugins=i;const a=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(r).forEach(([r,a])=>{if(n.has(r)||o.has(r))return;const l=null==a?void 0:a.requires;if(l&&$C(l)&&l.length){if(l.some(e=>n.has(e)))return;if(!l.every(e=>o.has(e)))return void s.add(r)}t=!0;const c=function(e,t){try{try{return VC(t)?new t(e):t}catch(n){if(VC(t)&&!t.prototype)return t(e)}}catch(e){if(console.error(e),!T_)throw e}return null}(e,a);if(!c)return o.set(r,null),void s.delete(r);(function(e,t,n,r,o,i,s){if(ZB(r))try{r.init(e)}catch(e){if(console.error(e),!T_)throw e}o.set(t,r),i.delete(t),r.hasStyle&&async function(e,t){const n=TS(e,t,!1);if(!FS.has(n))return FS.add(n),jS(e,n)}(e,t).catch(e=>{!T_&&console.error(e)}),r.styles&&(s(e,t,"style").innerHTML=r.styles)})(e,r,0,c,o,s,this.opts.getContainer),i[r]=c}),t&&(e.e.fire("updatePlugins"),a())};t&&t.length&&function(e,t,n,r){try{const o=n.filter(t=>!e.has(IS(t.name)));o.length&&function(e,t,n){t.map(t=>{const r=t.url||TS(e,t.name,!0);return SS(e,r).then(n).catch(()=>null)})}(t,o,r)}catch(e){if(!T_)throw e}}(this.__items,e,t,a),a(),function(e,t){e.e.on("beforeDestruct",()=>{Object.keys(t).forEach(n=>{const r=t[n];XB(r)&&r.destruct(e),delete t[n]}),delete e.__plugins})}(e,i),!T_&&s.size&&console.warn("After init plugin waiting list is not clean:",s)}wait(e){return new Promise(t=>{if(this.get(e))return t();const n=()=>{t(),kS.off(`plugin:${e}:ready`,n)};kS.on(`plugin:${e}:ready`,n)})}}class PS{constructor(){this.__map=new Map}on(e,t){var n;return this.__map.has(e)||this.__map.set(e,new Set),null===(n=this.__map.get(e))||void 0===n||n.add(t),this}off(e,t){var n;return this.__map.has(e)&&(null===(n=this.__map.get(e))||void 0===n||n.delete(t)),this}destruct(){this.__map.clear()}emit(e,...t){var n;let r;return this.__map.has(e)&&(null===(n=this.__map.get(e))||void 0===n||n.forEach(e=>{r=e(...t)})),r}}class MS extends PS{setWork(e){return this.isWorked?this.break():this.stop(),this.workNodes=qB.eachGen(e,!this.options.reverse),this.isFinished=!1,this.hadAffect=!1,this._requestStarting(),this}constructor(e,t={}){super(),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.__schedulerController=null}_requestStarting(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(()=>null)}break(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){var e;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null===(e=this.__schedulerController)||void 0===e||e.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){var e;if(this.workNodes){this.isWorked=!0;let t=0;const n=null!==(e=this.options.timeoutChunkSize)&&void 0!==e?e:50;for(;!this.isFinished&&t<n;){const e=this.workNodes.next();if(t+=1,this.visitNode(e.value)&&(this.hadAffect=!0),e.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(e){var t;return!(!e||void 0!==this.options.whatToShow&&e.nodeType!==this.options.whatToShow)&&null!==(t=this.emit("visit",e))&&void 0!==t&&t}}!function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([KC],MS.prototype,"__workPerform",null);const OS={};let DS=1;const US=new Set,RS=new LS({getContainer:qS}),zS={},QS=e=>{Object.keys(e).forEach(t=>{zC[t]?Object.assign(zC[t],e[t]):zC[t]=e[t]})},HS=new WeakMap;function qS(e,t,n="div",r=!1){const o=YC(t)?t:t?dS(t.prototype):"jodit-utils",i=HS.get(e)||{},s=o+n,a=_B(e)?e:e.j;let l=null;if(!i[s]){let t=a.c;if(l=VS(a.o,a.container,e.od.body),r&&tS(e)&&e.od!==e.ed){t=e.createInside;const r="style"===n?e.ed.head:e.ed.body;l=tS(e)&&e.o.shadowRoot?e.o.shadowRoot:r}const c=t.element(n,{className:`jodit jodit-${AB(o)}-container jodit-box`});!a.o.nonce||"style"!==n&&"script"!==n||c.setAttribute("nonce",a.o.nonce),c.classList.add(`jodit_theme_${a.o.theme||"default"}`),l.appendChild(c),i[s]=c,e.hookStatus("beforeDestruct",()=>{a.events.off(c),qB.safeRemove(c),delete i[s],Object.keys(i).length&&HS.delete(e)}),HS.set(e,i),a.events.fire("getContainer",c)}return i[s].classList.remove("jodit_theme_default","jodit_theme_dark"),i[s].classList.add(`jodit_theme_${a.o.theme||"default"}`),i[s]}function VS(e,t,n){var r,o,i;return null!==(i=null!==(o=null!==(r=e.popupRoot)&&void 0!==r?r:e.shadowRoot)&&void 0!==o?o:qB.closest(t,e=>qB.isHTMLElement(e)&&(qB.isTag(e,"dialog")||["fixed","absolute"].includes(wB(e,"position"))),n))&&void 0!==i?i:n}const KS=kS,WS=e=>$C(e)?e:[e];let GS=1;function $S(e,t){let n;if(F_||!/:scope/.test(e)||!xC||t&&t.nodeType===Node.DOCUMENT_NODE)n=t.querySelectorAll(e);else{const r=t.id,o=r||"_selector_id_"+String(Math.random()).slice(2)+(GS++,GS);e=e.replace(/:scope/g,"#"+o),!r&&t.setAttribute("id",o),n=t.parentNode.querySelectorAll(e),r||t.removeAttribute("id")}return[].slice.call(n)}const YS=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE)return"";if(!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";const n=[].filter.call(e.parentNode.childNodes,t=>t.nodeName===e.nodeName);return YS(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(n.length>1?"["+(nB(n).indexOf(e)+1)+"]":"")},ZS=e=>("container"in e&&(e=e.container),$S("[ref],[data-ref]",e).reduce((e,t)=>{const n=kB(t,"-ref");return n&&YC(n)&&(e[bB(n)]=t,e[n]=t),e},{})),XS=e=>{if(!qB.isElement(e))return null;const t=[];let n=e;for(;n&&n.nodeType===Node.ELEMENT_NODE;){let e=n.nodeName.toLowerCase();if(n.id){e+="#"+n.id,t.unshift(e);break}{let t=n,r=1;do{t=t.previousElementSibling,t&&t.nodeName.toLowerCase()===e&&r++}while(t);e+=":nth-of-type("+r+")"}t.unshift(e),n=n.parentNode}return t.join(" > ")};function JS(e,t){let n=e;if(YC(e))try{n=t.querySelector(e)}catch(t){throw NB('String "'+e+'" should be valid HTML selector')}if(!n||"object"!=typeof n||!qB.isElement(n)||!n.cloneNode)throw NB('Element "'+e+'" should be string or HTMLElement instance');return n}function ej(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(e,t,n)=>{switch(n.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function tj(e){const t=/<html(?:\s[^>]*)?>/i.exec(e);if(!t)return e;const n=(e=e.substring(t.index)).toLowerCase().lastIndexOf("</html>");-1!==n&&(e=e.substring(0,n+7));const r=G_.createElement("iframe");r.style.display="none",G_.body.appendChild(r);let o="",i=[];try{const t=r.contentDocument||(r.contentWindow?r.contentWindow.document:null);if(t){t.open(),t.write(e),t.close(),qB.each(t.body,e=>{qB.isElement(e)&&/mso-list:\s*ignore/i.test(e.getAttribute("style")||"")&&qB.safeRemove(e)});try{for(let e=0;e<t.styleSheets.length;e+=1){const n=t.styleSheets[e].cssRules;for(let e=0;e<n.length;e+=1)""!==n[e].selectorText&&(i=$S(n[e].selectorText,t.body),i.forEach(t=>{t.style.cssText=ej(n[e].style.cssText+";"+t.style.cssText)}))}}catch(e){if(!T_)throw e}qB.each(t.body,e=>{if(qB.isElement(e)){const t=e,n=t.getAttribute("style");n&&(t.style.cssText=ej(n)),t.hasAttribute("style")&&!t.getAttribute("style")&&t.removeAttribute("style")}}),o=t.firstChild?iB(t.body.innerHTML):""}}catch(e){}finally{qB.safeRemove(r)}return o&&(e=o),iB(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}function nj(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{const n=G_.createElement("div");n.innerHTML=e;const r=[];n.firstChild&&qB.each(n,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":r.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":qB.unwrap(e);break;default:if(/mso-list:\s*ignore/i.test(e.getAttribute("style")||"")){r.push(e);break}nB(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&e.removeAttribute(t.name)})}break;case Node.TEXT_NODE:break;default:r.push(e)}}),qB.safeRemove.apply(null,r),t=n.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(iB).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}function rj(e){const t=G_.createElement("div");return t.textContent=e,t.innerHTML}function oj(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}function ij(e,t){t&&"normal"!==t?"center"!==t?(wB(e,"float",t),xB(e)):wB(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):(wB(e,"float")&&-1!==["right","left"].indexOf(wB(e,"float").toString().toLowerCase())&&wB(e,"float",""),xB(e))}function sj(e){qB.each(e,e=>{qB.isHTMLElement(e)&&e.style.textAlign&&(e.style.textAlign="",e.style.cssText.trim().length||e.removeAttribute("style"))})}function aj(e,t){if(qB.isNode(t)&&qB.isElement(t))switch(sj(t),e.toLowerCase()){case"justifyfull":t.style.textAlign="justify";break;case"justifyright":t.style.textAlign="right";break;case"justifyleft":t.style.textAlign="left";break;case"justifycenter":t.style.textAlign="center"}}const lj=e=>{const t=navigator.userAgent.toLowerCase(),n=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||t.indexOf("compatible")<0||[];return"version"===e?n[2]:"webkit"===e?"chrome"===n[1]||"webkit"===n[1]:"ff"===e?"firefox"===n[1]:"msie"===e?"trident"===n[1]||"msie"===n[1]:n[1]===e},cj=(e,t)=>{const n=[],r=encodeURIComponent;for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=t?t+"["+o+"]":o,s=e[o];n.push(dB(s)?cj(s,i):r(i)+"="+r(s))}return n.join("&")};let uj={};class dj{constructor(){this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=G_,this.ownerWindow=W_,this.shadowRoot=null,this.nonce="",this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.allowCommandsInReadOnly=["selectall","preview","print"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.asyncStorage={},this.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=jC,this.enter=yC,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:yC,this.defaultMode=vC,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0,Object.assign(this,uj)}static get defaultOptions(){return dj.__defaultOptions||(dj.__defaultOptions=new dj),dj.__defaultOptions}}function Aj(e){return e&&e.isAtom}function hj(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function pj(e){return JSON.parse(WB(e))}uj=dj.prototype,dj.prototype.controls={};const fj=["__proto__","constructor","prototype"];function mj(e){return-1!==fj.indexOf(e)}function gj(e,t,n=0){if(Object.getPrototypeOf(e)!==Object.prototype)return e;const r=dj.defaultOptions;if(YC(e.preset)){if(void 0!==r.presets[e.preset]){const t=r.presets[e.preset];Object.keys(t).forEach(n=>{XC(e[n])&&(e[n]=t[n])})}delete e.preset}const o={};return Object.keys(e).forEach(r=>{if(mj(r))return;const i=e[r],s=t?t[r]:null;dB(i)&&dB(s)&&!Aj(i)?o[r]=gj(i,s,n+1):0!==n&&$C(i)&&!Aj(i)&&$C(s)?o[r]=[...i,...s.slice(i.length)]:o[r]=i}),Object.setPrototypeOf(o,t),o}function yj(e){return UB(e,!1).reduce((t,n)=>(t[n]=e[n],t),{})}function vj(e,t){Object.keys(t).forEach(n=>{if(mj(n))return;const r=t[n],o=e[n];dB(r)&&dB(o)&&!Aj(r)?vj(o,r):e[n]=r})}function bj(e){return UB(e,!1).reduce((t,n)=>(t[n]=dB(e[n])?bj(e[n]):e[n],t),{})}const wj=e=>{const t={},n=e.substring(1).split("&");for(let e=0;e<n.length;e+=1){const r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1]||"")}return t},xj=(e,{width:t=400,height:n=345}={})=>{if(!iS(e))return e;const r=G_.createElement("a");r.href=e,t||(t=400),n||(n=345);const o=r.protocol||"";switch(r.hostname){case"www.vimeo.com":case"vimeo.com":{const i=r.pathname.split("/").filter(Boolean),s=i.findIndex(e=>/^\d+$/.test(e));if(-1===s)return e;let a=i[s];const l=i[s+1];return l&&0===s&&(a+="/"+l),'<iframe width="'+t+'" height="'+n+'" src="'+o+"//player.vimeo.com/video/"+a+'" frameborder="0" allowfullscreen></iframe>'}case"youtube.com":case"www.youtube.com":case"m.youtube.com":case"music.youtube.com":case"youtu.be":case"www.youtu.be":{let i=(r.search?wj(r.search):{}).v||r.pathname.substring(1);return i=i.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""),i?'<iframe width="'+t+'" height="'+n+'" src="'+o+"//www.youtube.com/embed/"+i+'" frameborder="0" allowfullscreen></iframe>':e}}return e},kj=e=>{if("undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1},_j=(e,t="en")=>"auto"!==e&&YC(e)?e:G_.documentElement&&G_.documentElement.lang?G_.documentElement.lang:navigator.language?navigator.language.substring(0,2):t,Cj=e=>{if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);const t=e.substr(-2,2).toUpperCase(),n=["KB","MB","GB","TB"],r=parseFloat(e.substr(0,e.length-2));return-1!==n.indexOf(t)?r*Math.pow(1024,n.indexOf(t)+1):parseInt(e,10)},Bj=console;function Sj(e,t=[""],n=null){return(...r)=>(Bj.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(n,...r))}function jj(e,t,n="px",r=null){const o=[],i=function(e,t){const n=[];try{$S("img",e.editor).forEach(r=>{const o=[kB(r,"width"),kB(r,"height"),r.src];kB(r,{width:r.offsetWidth+t,height:r.offsetHeight+t});const i=e.createInside.a();e.ed.body.appendChild(i),i.href=r.src,r.src=i.href,qB.safeRemove(i),n.push(()=>{var e;r.src=null!==(e=o[2])&&void 0!==e?e:"",kB(r,{width:o[0]||null,height:o[1]||null})})})}catch(e){throw n.forEach(e=>e()),n.length=0,e}return n}(e,n);try{const i=e.e.fire("beforePreviewBox",t,n);if(null!=i)return i;let s=e.c.div("jodit__preview-box jodit-context");r&&r.appendChild(s),wB(s,{position:"relative",padding:16});const a=e.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${e.i18n("Empty")}</div>`;if(e.iframe){const t=e.create.element("iframe");wB(t,{minWidth:800,minHeight:600,border:0}),s.appendChild(t);const n=t.contentWindow;if(n&&(e.e.fire("generateDocumentStructure.iframe",n.document,e),s=n.document.body,"function"==typeof ResizeObserver)){let r=!1;const i=n.document.body,s=new ResizeObserver(e.async.debounce(()=>{s.unobserve(i),t.style.height=`${i.offsetHeight+20}px`,e.async.requestAnimationFrame(()=>{!r&&s.observe(i)})},100)),a=()=>{r=!0,s.unobserve(i),s.disconnect(),e.e.off("beforeDestruct",a)};o.push(a),e.e.on("beforeDestruct",a)}}else wB(s,{minWidth:1024,minHeight:600,border:0});const l=(t,n)=>{const r=YC(n)?e.c.div():n;YC(n)&&(r.innerHTML=n);for(let e=0;e<r.childNodes.length;e+=1){const n=r.childNodes[e];if(qB.isElement(n)){const e=t.ownerDocument.createElement(n.nodeName);for(let t=0;t<n.attributes.length;t+=1)kB(e,n.attributes[t].nodeName,n.attributes[t].nodeValue);0===n.childNodes.length||qB.isTag(n,"table")?"SCRIPT"===n.nodeName?n.textContent&&(e.textContent=n.textContent):n.innerHTML&&(e.innerHTML=n.innerHTML):l(e,n);try{t.appendChild(e)}catch(e){}}else try{t.appendChild(n.cloneNode(!0))}catch(e){}}};return l(s,a),e.e.fire("afterPreviewBox",s),[s,()=>{o.forEach(e=>e())}]}finally{i.forEach(e=>e())}}function Ej(e,t,n){let r=e.getBoundingClientRect(),o=e;const i=r.top,s=r.height;for(;o&&o!==t&&o.parentNode;){if(o=o.parentNode,r=o.getBoundingClientRect(),i+s>r.bottom&&i>r.top)return!1;if(i+s<=r.top)return!1}return(i+s<=(n.documentElement&&n.documentElement.clientHeight||0)||i<=0)&&i+s>=0}function Nj(e,t,n){if(qB.isHTMLElement(e)&&!Ej(e,t,n)){if(t.clientHeight!==t.scrollHeight){const n=e.offsetTop+e.offsetHeight-t.clientHeight;t.scrollTop=t.scrollTop<n?n:e.offsetTop}Ej(e,t,n)||e.scrollIntoView()}}function Ij(e,t,n){if(!YC(e)||!e.length)return;const r=e.split(".");if(r.some(mj))return;let o=n,i=r[0];for(let e=0;e<r.length-1;e+=1)i=r[e],$C(o[i])||dB(o[i])||(o[i]=fB(r[e+1])?[]:{}),o=o[i];o&&(o[r[r.length-1]]=t)}class Fj{constructor(e){this.limit=e,this.stack=[]}push(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(e){return this.stack.find(e)}}const Tj=new Set(["foreignobject","annotation-xml","desc","title"]);function Lj(e){if("http://www.w3.org/1999/xhtml"!==e.namespaceURI||null==e.closest("math,svg"))return!1;for(let t=e.parentElement;t;t=t.parentElement){const e=t.nodeName.toLowerCase();if("math"===e||"svg"===e)break;if(Tj.has(e))return!1}return!0}function Pj(e,t){var n;if(!qB.isElement(e)&&!qB.isFragment(e))return;const r=e.querySelectorAll("math *, svg *");for(let t=0;t<r.length;t++)e.contains(r[t])&&Lj(r[t])&&qB.safeRemove(r[t]);const o=null!==(n=t.removeEventAttributes)&&void 0!==n?n:t.removeOnError,i=e=>{if(qB.isElement(e)&&(o&&function(e){if(!qB.isElement(e))return!1;let t=!1;const n=[];for(let t=0;t<e.attributes.length;t++)e.attributes[t].name.toLowerCase().startsWith("on")&&n.push(e.attributes[t].name);for(const r of n)e.removeAttribute(r),t=!0}(e),Uj(e,t),t.safeLinksTarget&&"A"===e.nodeName&&"_blank"===e.getAttribute("target"))){const t=(e.getAttribute("rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),kB(e,"rel",t.join(" "))}};i(e),qB.each(e,i)}const Mj=["src","data","action","formaction","poster","background","xlink:href"],Oj=new Set(["iframe","frame","object","embed"]);function Dj(e,t){const n=e.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!/^(?:javascript|vbscript|livescript|mocha):/.test(n)||!!/^data:(?:text\/html|application\/xhtml)/.test(n)||/^data:image\/svg/.test(n)&&Oj.has(t)}function Uj(e,{safeJavaScriptLink:t,removeOnError:n}={safeJavaScriptLink:!0,removeOnError:!0}){if(!qB.isElement(e))return!1;let r=!1;n&&e.hasAttribute("onerror")&&(kB(e,"onerror",null),r=!0);const o=e.nodeName.toLowerCase(),i=e.getAttribute("href");if(t&&i&&Dj(i,o)&&(kB(e,"href",("undefined"!=typeof location?location.protocol:"http:")+"//"+i),r=!0),t){e.hasAttribute("srcdoc")&&(kB(e,"srcdoc",null),r=!0);for(const t of Mj){const n=e.getAttribute(t);n&&Dj(n,o)&&(kB(e,t,null),r=!0)}}return r}const Rj=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),zj=new Set(["script","style"]),Qj=new Set(["br","hr","input"]);function Hj(e,t=document,n=null,r=!1){const o=t.createElement("div");return YC(e)?o.innerHTML=e:o.appendChild(e),$S("*",o).forEach(e=>{const o=e.parentNode;if(!o)return;if(n&&qB.isTag(e,n)){const o=e.nodeName.toLowerCase(),i=qB.isTag(e,Qj)?`%%%jodit-single-${o}%%%`:`%%%jodit-${o}%%%${Hj(e.innerHTML,t,n,r)}%%%/jodit-${o}%%%`;return qB.before(e,t.createTextNode(i)),void qB.safeRemove(e)}if(qB.isTag(e,zj))return void qB.safeRemove(e);if(!qB.isTag(e,Rj))return;const i=e.nextSibling;qB.isText(i)&&/^\s/.test(i.nodeValue||"")||i&&o.insertBefore(t.createTextNode(r?"%%%jodit-single-br%%%":" "),i)}),iB(o.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,n,r)=>`<${t?"/":""}${r}>`)}const qj=e=>{const t=["#"];let n=mB(e);if(!n)return!1;if(n=iB(n.toUpperCase()),n=n.substring(1),3===n.length){for(let e=0;e<3;e+=1)t.push(n[e]),t.push(n[e]);return t.join("")}return n.length>6&&(n=n.slice(0,6)),"#"+n};function Vj(e){const t={},n={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(e=>iB(e.toLowerCase())).map(e=>LC[e]||e).sort((e,t)=>n[e]&&!n[t]?-1:!n[e]&&n[t]?1:n[e]&&n[t]?n[e]-n[t]:e>t?1:-1).filter(e=>!t[e]&&""!==e&&(t[e]=!0)).join("+")}const Kj=(e,t=8)=>{const n=[];for(;e.length;)n.push(e.substr(0,t)),e=e.substr(t);return n[1]=n[1].replace(/./g,"*"),n[2]=n[2].replace(/./g,"*"),n.join("-")},Wj=(...e)=>e.filter(e=>iB(e).length).map((t,n)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),n&&(t=t.replace(/^\//,"")),n!==e.length-1&&(t=t.replace(/\/$/,"")),t)).join("/"),Gj=e=>e.split("/").reduce((e,t)=>{switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e},[]).join("/")+(e.endsWith("/")?"/":""),$j=(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString(),Yj=(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/"),Zj=(e,t)=>{const n=e=>parseInt(e,10),r=t.getComputedStyle(e);return e.offsetWidth-n(r.getPropertyValue("padding-left")||"0")-n(r.getPropertyValue("padding-right")||"0")};function Xj(e){return""!==e.transform&&"none"!==e.transform||""!==e.perspective&&"none"!==e.perspective||""!==e.filter&&"none"!==e.filter||"transform"===e.willChange||"perspective"===e.willChange||"filter"===e.willChange||"paint"===e.contain||"layout"===e.contain||"strict"===e.contain||"content"===e.contain}function Jj(e){var t;const n=null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;let r=e.parentElement;for(;n&&r;){if(Xj(n.getComputedStyle(r))){const e=r.getBoundingClientRect();return{x:e.left,y:e.top}}r=r.parentElement}return{x:0,y:0}}function eE(e){if(!e)return null;const t=qB.isHTMLElement(e),n=t&&wB(e,"overflowY");return t&&"visible"!==n&&"hidden"!==n&&e.scrollHeight>=e.clientHeight?e:eE(e.parentNode)||G_.scrollingElement||G_.body}const tE=(e,t)=>{const n=t.getComputedStyle(e);let r=e.clientWidth;return r-=parseFloat(n.paddingLeft||"0")+parseFloat(n.paddingRight||"0"),r};function nE(e){return YC(e)||$C(e)?e.length:dB(e)?Object.keys(e).length:0}const rE=(e,t,n,r=!1)=>{let o;try{o=e.getBoundingClientRect()}catch(e){o={top:0,bottom:0,left:0,right:0,width:0,height:0}}const i=n.body,s=n.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},a=n.defaultView||n.parentWindow,l=a.pageYOffset||s.scrollTop||i.scrollTop,c=a.pageXOffset||s.scrollLeft||i.scrollLeft,u=s.clientTop||i.clientTop||0,d=s.clientLeft||i.clientLeft||0;let A,h;const p=t.iframe;if(!r&&t&&t.options&&t.o.iframe&&p){const{top:e,left:n}=rE(p,t,t.od,!0);A=o.top+e,h=o.left+n}else A=o.top+l-u,h=o.left+c-d;return{top:Math.round(A),left:Math.round(h),width:o.width,height:o.height}};function oE(e,t,n=!1){var r,o;const i=e.getBoundingClientRect();let s=i.left,a=i.top;if(tS(t)&&t.iframe&&t.ed.body.contains(e)&&!n){const{left:e,top:n}=oE(t.iframe,t,!0);s+=e,a+=n}return{left:Math.round(s),top:Math.round(a),width:Math.round(null!==(r=e.offsetWidth)&&void 0!==r?r:i.width),height:Math.round(null!==(o=e.offsetHeight)&&void 0!==o?o:i.height)}}function iE(e,t,n=0,r=1){let o=0,i=0,s=-1,a=0,l=0;for(i=n;o<e.length&&i<t.length;)e[o].toLowerCase()===t[i].toLowerCase()?(o++,a++,l=0,-1===s&&(s=i)):o>0&&(l>=r&&t[i]!==U_?(o=0,s=-1,a=0,l=0,i--):(l++,a++)),i++;return o===e.length?[s,a]:[-1,0]}function sE(e){return e.length?e[0].toUpperCase()+e.substring(1):""}const aE=(e,t)=>{if(!t||!t.length)return e;const n=/%([sd])/g;let r=n.exec(e),o=e,i=0;for(;r&&void 0!==t[i];)o=o.replace(r[0],t[i].toString()),i+=1,r=n.exec(e);return o};function lE(e,t,n){if(!YC(e))throw NB("i18n: Need string in first argument");if(!e.length)return e;const r=Boolean(null==n?void 0:n.debugLanguage);let o={};const i=e=>t&&t.length?aE(e,t):e,s=_j(dj.defaultOptions.language,dj.defaultOptions.language),a=_j(null==n?void 0:n.language,s),l=t=>{if(!t)return;if(YC(t[e]))return i(t[e]);const n=e.toLowerCase();if(YC(t[n]))return i(t[n]);const r=sE(e);return YC(t[r])?i(t[r]):void 0};void 0!==zC[a]?o=zC[a]:r||(o=void 0!==zC[s]?zC[s]:zC.en);const c=null==n?void 0:n.i18n;if(c&&c[a]){const e=l(c[a]);if(e)return e}return l(o)||(!r&&zC.en&&YC(zC.en[e])&&zC.en[e]?i(zC.en[e]):r?"{"+e+"}":(T_||"en"===a||console.warn(`i18n need "${e}" in "${a}"`),i(e)))}const cE=new Map;class uE{get componentName(){return this.__componentName||(this.__componentName="jodit-"+AB((VC(this.className)?this.className():"")||dS(this))),this.__componentName}getFullElName(e,t,n){const r=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),r.push(`__${e}`)),t&&(r.push("_",t),r.push("_",XC(n)?"true":n.toString())),r.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return JC(e,t||this)}get isReady(){return this.componentStatus===WC.ready}get isDestructed(){return this.componentStatus===WC.destructed}get isInDestruct(){return WC.beforeDestruct===this.componentStatus||WC.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(WC.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}constructor(){this.async=new gS,this.ownerWindow=window,this.__componentStatus=WC.beforeInit,this.uid="jodit-uid-"+function(){function e(){return DS+=10*(Math.random()+1),Math.round(DS).toString(16)}let t=e();for(;US.has(t);)t=e();return US.add(t),t}()}destruct(){this.setStatus(WC.destructed),this.async&&(this.async.destruct(),this.async=void 0),cE.get(this)&&cE.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(e){this.setStatus(e)}setStatus(e){return this.setStatusComponent(e,this)}setStatusComponent(e,t){if(e===this.__componentStatus)return;t===this&&(this.__componentStatus=e);const n=Object.getPrototypeOf(this);n&&VC(n.setStatusComponent)&&n.setStatusComponent(e,t);const r=cE.get(this),o=null==r?void 0:r[e];o&&o.length&&o.forEach(e=>e(t))}hookStatus(e,t){let n=cE.get(this);n||(n={},cE.set(this,n)),n[e]||(n[e]=[]),n[e].push(t)}static isInstanceOf(e,t){return e instanceof t}}uE.STATUSES=WC;class dE extends uE{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.ow&&(this.ownerWindow=e.ow),e.components.add(this),this}constructor(e){super(),this.setParentView(e)}destruct(){return this.j.components.delete(this),super.destruct()}}function AE(e,t=!1,n="debounce"){return(r,o)=>{const i=r[o];if(!VC(i))throw NB("Handler must be a Function");return r.hookStatus(WC.ready,r=>{const{async:i}=r;cB(null!=i,`Component ${r.componentName||r.constructor.name} should have "async:IAsync" field`);const s=VC(e)?e(r):e,a=oS(s)||dB(s)?s:r.defaultTimeout;Object.defineProperty(r,o,{configurable:!0,value:i[n](r[o].bind(r),a,t)})}),{configurable:!0,get(){return i.bind(this)}}}}function hE(e,t=!1){return AE(e,t,"throttle")}function pE(...e){return t=>{const n=t.prototype;for(let t=0;t<e.length;t++){const r=e[t],o=Object.getOwnPropertyNames(r.prototype);for(let e=0;e<o.length;e++){const t=o[e],i=Object.getOwnPropertyDescriptor(r.prototype,t);null!=i&&VC(i.value)&&!VC(n[t])&&Object.defineProperty(n,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return i.value.call(this,...e)}})}}}}function fE(e){return(t,n)=>{if(!VC(t[n]))throw NB("Handler must be a Function");t.hookStatus(e,e=>{e[n].call(e)})}}function mE(){return(e,t)=>{if(!VC(e[t]))throw NB("Handler must be a Function");e.hookStatus(WC.ready,e=>{const{async:n}=e,r=e[t];e[t]=(...t)=>n.requestIdleCallback(r.bind(e,...t))})}}const gE=(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})};function yE(e,t){e.hookStatus(WC.ready,e=>{const n=_B(e)?e:e.jodit,r=`${n.options.namespace}${e.componentName}_prop_${t}`,o=e[t];Object.defineProperty(e,t,{get(){var e;return null!==(e=n.storage.get(r))&&void 0!==e?e:o},set(e){n.storage.set(r,e)}})})}function vE(e){return(t,n)=>{if(!VC(t[n]))throw NB("Handler must be a Function");t.hookStatus(WC.ready,t=>{const{async:r}=t,o=t[n];let i=0;Object.defineProperty(t,n,{configurable:!0,value:function n(...s){r.clearTimeout(i),e(t)?o.apply(t,s):i=r.setTimeout(()=>n(...s),10)}})})}}const bE=Symbol("observable-object");function wE(e){return void 0!==e[bE]}function xE(e){if(wE(e))return e;const t={},n={},r=(t,o)=>$C(t)?(t.map(e=>r(e,o)),e):(n[t]||(n[t]=[]),n[t].push(o),e),o=(r,...i)=>{if($C(r))r.map(e=>o(e,...i));else try{!t[r]&&n[r]&&(t[r]=!0,n[r].forEach(t=>t.call(e,...i)))}finally{t[r]=!1}},i=(t,n=[])=>{const s={};wE(t)||(Object.defineProperty(t,bE,{enumerable:!1,value:!0}),Object.keys(t).forEach(r=>{const a=r,l=n.concat(a).filter(e=>e.length);s[a]=t[a];const c=QB(t,a);Object.defineProperty(t,a,{set:t=>{const n=s[a];if(!$B(s[a],t)){o(["beforeChange",`beforeChange.${l.join(".")}`],a,t),dB(t)&&i(t,l),c&&c.set?c.set.call(e,t):s[a]=t;const r=[];o(["change",...l.reduce((e,t)=>(r.push(t),e.push(`change.${r.join(".")}`),e),[])],l.join("."),n,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):s[a],enumerable:!0,configurable:!0}),dB(s[a])&&i(s[a],l)}),Object.defineProperty(e,"on",{value:r}))};return i(e),e}function kE(e,t){return(n,r)=>{var o;if(!VC(n[r]))throw NB("Handler must be a Function");const i=null===(o=null==t?void 0:t.immediately)||void 0===o||o,s=null==t?void 0:t.context,a=t=>{const o=_B(t)?t:t.jodit;let a=(e,...n)=>{if(!t.isInDestruct)return t[r](e,...n)};i||(a=t.async.microDebounce(a,!0)),yS(e).forEach(e=>{if(/:/.test(e)){const[n,r]=e.split(":");let i=s;return n.length&&(i=t.get(n)),VC(i)&&(i=i(t)),o.events.on(i||t,r,a),i||o.events.on(r,a),void t.hookStatus("beforeDestruct",()=>{o.events.off(i||t,r,a).off(r,a)})}const r=e.split("."),[i]=r,l=r.slice(1);let c=t[i];dB(c)&&xE(c).on(`change.${l.join(".")}`,a);const u=QB(n,i);Object.defineProperty(t,i,{configurable:!0,set(e){const n=c;n!==e&&(c=e,u&&u.set&&u.set.call(t,e),dB(c)&&(c=xE(c),c.on(`change.${l.join(".")}`,a)),a(i,n,c))},get:()=>u&&u.get?u.get.call(t):c})})};VC(n.hookStatus)?n.hookStatus(WC.ready,a):a(n)}}dj.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr:()=>new XMLHttpRequest};class _E{get url(){return this.request.url}constructor(e,t,n,r){this.request=e,this.status=t,this.statusText=n,this.body=r}async json(){return JSON.parse(this.body)}text(){return Promise.resolve(this.body)}async blob(){return this.body}}class CE{className(){return"Ajax"}constructor(e,t=dj.prototype.defaultAjaxOptions){this.__async=new gS,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=gj(e||{},t),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}__buildParams(e,t){return dB(e)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(e):VC(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):YC(e)||e instanceof W_.FormData||"object"==typeof e&&null!=e&&VC(e.append)?e:cj(e)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(e){}return this}send(){this.__activated=!0;const{xhr:e,o:t}=this,n=this.prepareRequest();return this.__async.promise(async(r,o)=>{var i;const s=()=>{this.__isFulfilled=!0,o(IB("Connection error"))},a=()=>{this.__isFulfilled=!0,r(new _E(n,e.status,e.statusText,e.responseType?e.response:e.responseText))};e.onload=a,e.onabort=()=>{this.__isFulfilled=!0,o(SB("Abort connection"))},e.onerror=s,e.ontimeout=s,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{var t,n;let r=0;e.lengthComputable&&(r=e.loaded/e.total*100),null===(n=(t=this.options).onProgress)||void 0===n||n.call(t,r)},e.onreadystatechange=()=>{var n,r;null===(r=(n=this.options).onProgress)||void 0===r||r.call(n,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?a():e.statusText&&(this.__isFulfilled=!0,o(IB(e.statusText))))},e.withCredentials=null!==(i=t.withCredentials)&&void 0!==i&&i;const{url:l,data:c,method:u}=n;e.open(u,l,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:d}=t;VC(d)&&(d=await d.call(this)),d&&e.setRequestHeader&&Object.keys(d).forEach(t=>{e.setRequestHeader(t,d[t])}),this.__async.setTimeout(()=>{e.send(c?this.__buildParams(c):void 0)},0)})}async*stream(){var e;this.__activated=!0;const{xhr:t,o:n}=this,r=this.prepareRequest();let o=0,i="";const s=[];let a=null,l=!1,c=null;const u=()=>{if(a){const e=a;a=null,e()}},d=e=>{var n;const r=t.responseText;i+=r.substring(o),o=r.length;const a=i.split("\n\n");i=e?"":null!==(n=a.pop())&&void 0!==n?n:"";for(const e of a){const t=e.trim();if(!t)continue;const n=[];for(const e of t.split("\n"))e.startsWith("data: ")?n.push(e.slice(6)):e.startsWith("data:")&&n.push(e.slice(5));n.length&&s.push(n.join("\n"))}u()};t.onprogress=()=>d(!1),t.onload=()=>{d(!0),l=!0,this.__isFulfilled=!0,u()},t.onerror=()=>{c=IB("Connection error"),l=!0,this.__isFulfilled=!0,u()},t.onabort=()=>{c=SB("Abort connection"),l=!0,this.__isFulfilled=!0,u()},t.withCredentials=null!==(e=n.withCredentials)&&void 0!==e&&e;const{url:A,data:h,method:p}=r;t.open(p,A,!0),n.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",n.contentType);let{headers:f}=n;VC(f)&&(f=await f.call(this)),f&&t.setRequestHeader&&Object.keys(f).forEach(e=>{t.setRequestHeader(e,f[e])}),t.send(h?this.__buildParams(h):void 0);try{for(;;)if(s.length>0)yield s.shift();else{if(l)break;await new Promise(e=>{a=e})}}finally{this.__isFulfilled||this.abort()}if(c)throw c}prepareRequest(){if(!this.o.url)throw NB("Need URL for AJAX request");let e=this.o.url;const t=this.o.data,n=(this.o.method||"get").toLowerCase();if("get"===n&&t&&dB(t)){const n=e.indexOf("?");if(-1!==n){const r=wj(e.substring(n));e=e.substring(0,n)+"?"+cj({...r,...t})}else e+="?"+cj(this.o.data)}const r={url:e,method:n,data:t};return CE.log.splice(100),CE.log.push(r),r}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}}CE.log=[],function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([KC],CE.prototype,"destruct",null);class BE{getElm(e){return this.container.querySelector(`.${this.getFullElName(e)}`)}getElms(e){return nB(this.container.querySelectorAll(`.${this.getFullElName(e)}`))}}class SE{afterSetMod(e,t){}setMod(e,t,n){e=e.toLowerCase();const r=this.mods[e];if(r===t)return this;const o=`${this.componentName}_${e}_`,i=(n||this.container).classList;return null!=r&&i.remove(`${o}${r.toString().toLowerCase()}`),!XC(t)&&""!==t&&i.add(`${o}${t.toString().toLowerCase()}`),this.mods[e]=t,this.afterSetMod(e,t),this}getMod(e){var t;return null!==(t=this.mods[e])&&void 0!==t?t:null}}class jE{static getIcon(e){if(/<svg/i.test(e))return e;const t=jE.icons[e]||jE.icons[e.replace(/-/g,"_")]||jE.icons[e.replace(/_/g,"-")]||jE.icons[bB(e)]||jE.icons[AB(e)]||jE.icons[e.toLowerCase()];return T_||t||console.warn(`Icon "${e}" not found`),t}static exists(e){return void 0!==this.getIcon(e)}static get(e,t="<span></span>"){return this.getIcon(e)||t}static set(e,t){return this.icons[e.replace("_","-")]=t,this}static makeIcon(e,t){var n,r,o,i;if(!t)return;let s;const{name:a,iconURL:l,fill:c,scale:u}=t,d=a.replace(/[^a-zA-Z0-9]/g,"_");let A;/<svg/.test(a)||(A=null===(r=(n=e.o).getIcon)||void 0===r?void 0:r.call(n,a,d));const h=`${a}${l}${c}${null!=u?u:""}${null!=A?A:""}`;if(e.o.cache&&this.__cache.has(h))return null===(o=this.__cache.get(h))||void 0===o?void 0:o.cloneNode(!0);if(l)s=e.c.span(),wB(s,"backgroundImage","url("+l.replace("{basePath}",(null==e?void 0:e.basePath)||"")+")");else{const t=A||jE.get(a,"")||(null===(i=e.o.extraIcons)||void 0===i?void 0:i[a]);t&&(s=jE.toIconElement(e,t.trim()),/^<svg/i.test(a)||s.classList.add("jodit-icon_"+d))}return s&&(s.classList.add("jodit-icon"),s.style.fill=c,null!=u&&(s.style.transform=`scale(${u})`),e.o.cache&&this.__cache.set(h,s.cloneNode(!0))),s}static toIconElement(e,t){const n=e.c.fromHTML(t);return qB.isElement(n)?n:e.c.span("jodit-icon_text",n)}}jE.icons={},jE.__cache=new Map;var EE;let NE=EE=class extends dE{getRole(){var e;return(null===(e=this.options)||void 0===e?void 0:e.role)||""}get parentElement(){return this.__parentElement}set parentElement(e){this.__parentElement=e,e&&e.hookStatus("beforeDestruct",()=>this.destruct()),this.updateParentElement(this)}bubble(e){let t=this.parentElement;for(;t;)e(t),t=t.parentElement;return this}updateParentElement(e){var t;return null===(t=this.__parentElement)||void 0===t||t.updateParentElement(e),this}get(e,t){return super.get(e,t)||this.getElm(e)}closest(e){const t="object"==typeof e?t=>t===e:t=>uE.isInstanceOf(t,e);let n=this.__parentElement;for(;n;){if(t(n))return n;n=!n.parentElement&&n.container.parentElement?EE.closestElement(n.container.parentElement,EE):n.parentElement}return null}static closestElement(e,t){const n=qB.up(e,e=>{if(e){const{component:n}=e;return n&&uE.isInstanceOf(n,t)}return!1});return n?null==n?void 0:n.component:null}update(){}appendTo(e){return e.appendChild(this.container),this}clearName(e){return e.replace(/[^a-zA-Z0-9]/g,"_")}render(e){return this.j.c.div(this.componentName)}createContainer(e){const t=this.render(e);if(YC(t)){const e=this.parseTemplate(t);return e.classList.add(this.componentName),e}return t}parseTemplate(e){return this.j.c.fromHTML(e.replace(/\*([^*]+?)\*/g,(e,t)=>jE.get(t)||"").replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,(e,t)=>this.i18n(t)))}constructor(e,t){super(e),this.name="",this.__parentElement=null,this.mods={},this.options=t,this.container=this.createContainer(t);const n=this.getRole();n&&kB(this.container,"role",n),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}destruct(){return qB.safeRemove(this.container),this.parentElement=null,super.destruct()}};NE=EE=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([pE(SE,BE)],NE);var IE=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};const FE=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:"",scale:void 0},tooltip:"",text:"",tabIndex:void 0});let TE=class extends NE{className(){return"UIButton"}setState(e){return Object.assign(this.state,e),this}get text(){const e=this.getElm("text");return cB(e,"Text element not found"),e}get icon(){const e=this.getElm("icon");return cB(e,"Icon element not found"),e}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){kB(this.container,"type",this.state.type)}onChangeRole(){kB(this.container,"role",this.state.role)}updateSize(){const e=pS("UIList"),t=this.closest(e);t&&(this.state.size=t.buttonSize)}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text),this.updateAriaLabel()}onChangeTextSetMode(){this.setMod("text-icons",Boolean(this.state.text.trim().length))}onChangeDisabled(){kB(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){kB(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,kB(this.container,"data-ref",this.state.name),kB(this.container,"ref",this.state.name)}onChangeTooltip(){const e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&kB(this.container,"title",e),kB(this.container,"aria-label",e),this.updateAriaLabel()}updateAriaLabel(){const e=this.state.text.trim().length>0,t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;kB(this.container,"aria-label",t),kB(this.button,"aria-label",e?null:t)}onChangeTabIndex(){kB(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){const e=this.get("j.o.textIcons");if(!0===e||VC(e)&&e(this.state.name))return;qB.detach(this.icon);const t=jE.makeIcon(this.j,this.state.icon);t&&this.icon.appendChild(t)}focus(){this.container.focus()}isFocused(){const{activeElement:e}=this.od;return Boolean(e&&qB.isOrContains(this.container,e))}createContainer(){const e=this.componentName,t=this.j.c.element("button",{class:e,type:"button",role:"button",ariaPressed:!1}),n=this.j.c.span(e+"__icon"),r=this.j.c.span(e+"__text");return t.appendChild(n),t.appendChild(r),t}constructor(e,t){super(e),this.isButton=!0,this.state=FE(),this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),t&&this.hookStatus(WC.ready,()=>{this.setState(t)})}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(e){return this.actionHandlers.push(e),this}__onActionFire(e){e.buffer={actionTrigger:this},this.actionHandlers.forEach(t=>t.call(this,e)),this.j.e.fire(this,"click",e)}};function LE(e,t,n,r){const o=new TE(e);return o.state.tabIndex=e.o.allowTabNavigation?0:-1,YC(t)?(o.state.icon.name=t,o.state.name=t,r&&(o.state.variant=r),n&&(o.state.text=n)):o.setState(t),o}IE([lS],TE.prototype,"text",null),IE([lS],TE.prototype,"icon",null),IE([kE("state.size",{immediately:!1})],TE.prototype,"onChangeSize",null),IE([kE("state.type",{immediately:!1})],TE.prototype,"onChangeType",null),IE([kE("state.role",{immediately:!1})],TE.prototype,"onChangeRole",null),IE([kE("parentElement")],TE.prototype,"updateSize",null),IE([kE("state.variant",{immediately:!1})],TE.prototype,"onChangeStatus",null),IE([kE("state.text",{immediately:!1})],TE.prototype,"onChangeText",null),IE([kE("state.text",{immediately:!1})],TE.prototype,"onChangeTextSetMode",null),IE([kE("state.disabled")],TE.prototype,"onChangeDisabled",null),IE([kE("state.activated")],TE.prototype,"onChangeActivated",null),IE([kE("state.name",{immediately:!1})],TE.prototype,"onChangeName",null),IE([kE("state.tooltip",{immediately:!1})],TE.prototype,"onChangeTooltip",null),IE([kE("state.tabIndex",{immediately:!1})],TE.prototype,"onChangeTabIndex",null),IE([kE("state.icon",{immediately:!1})],TE.prototype,"onChangeIcon",null),IE([cS],TE.prototype,"createContainer",null),IE([kE("button:click")],TE.prototype,"__onActionFire",null),TE=IE([hS],TE);var PE,ME=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};let OE=PE=class extends NE{className(){return"UIGroup"}getRole(){var e;return(null===(e=this.options)||void 0===e?void 0:e.role)||"list"}get allChildren(){const e=[],t=[...this.elements];for(;t.length;){const n=t.shift();$C(n)?t.push(...n):uE.isInstanceOf(n,PE)?t.push(...n.elements):n&&e.push(n)}return e}update(){this.elements.forEach(e=>e.update()),this.setMod("size",this.buttonSize)}append(e,t){if($C(e)){if("number"==typeof t)throw new Error("You can not use index when append array of elements");return e.forEach(e=>this.append(e,t)),this}const n=e;let r;if("number"==typeof t?(r=Math.min(Math.max(0,t),this.elements.length),this.elements.splice(r,0,n)):this.elements.push(n),n.name&&n.container.classList.add(this.getFullElName(n.name)),t&&"string"==typeof t){const e=this.getElm(t);if(null==e)throw new Error("Element does not exist");e.appendChild(n.container)}else this.appendChildToContainer(n.container,r);return n.parentElement=this,this}afterSetMod(e,t){this.syncMod&&this.elements.forEach(n=>n.setMod(e,t))}appendChildToContainer(e,t){void 0===t||t<0||t>this.elements.length-1||null==this.container.children[t]?this.container.appendChild(e):this.container.insertBefore(e,this.container.children[t])}remove(e){const t=this.elements.indexOf(e);return-1!==t&&(this.elements.splice(t,1),qB.safeRemove(e.container),e.parentElement=null),this}clear(){return this.elements.forEach(e=>e.destruct()),this.elements.length=0,this}constructor(e,t,n){super(e,n),this.options=n,this.syncMod=!1,this.elements=[],this.buttonSize="middle",null==t||t.forEach(e=>e&&this.append(e)),(null==n?void 0:n.name)&&(this.name=n.name)}setParentView(e){var t;return null===(t=this.elements)||void 0===t||t.forEach(t=>t.setParentView(e)),super.setParentView(e)}destruct(){return this.clear(),super.destruct()}};ME([kE("buttonSize")],OE.prototype,"update",null),OE=PE=ME([hS],OE);let DE=class extends OE{className(){return"UIButtonGroup"}render(e){return`<div>\n\t\t\t<div class="&__label">~${e.label}~</div>\n\t\t\t<div class="&__options"></div>\n\t\t</div>`}appendChildToContainer(e){const t=this.getElm("options");cB(null!=t,"Options does not exist"),t.appendChild(e)}constructor(e,t={radio:!0}){var n,r;super(e,null===(n=t.options)||void 0===n?void 0:n.map(t=>{const n=new TE(e,{text:t.text,value:t.value,variant:"primary"});return n.onAction(()=>{this.select(t.value)}),n}),t),this.options=t,this.select(null!==(r=t.value)&&void 0!==r?r:0)}select(e){var t,n;this.elements.forEach((t,n)=>{n===e||t.state.value===e?t.state.activated=!0:this.options.radio&&(t.state.activated=!1)});const r=this.elements.filter(e=>e.state.activated).map(e=>({text:e.state.text,value:e.state.value}));this.jodit.e.fire(this,"select",r),null===(n=(t=this.options).onChange)||void 0===n||n.call(t,r)}};DE=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([hS],DE);var UE,RE=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};const zE=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],QE=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"];let HE=UE=class extends NE{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}constructor(e){super(e),this.__isOpened=!1,this.__attachedContainers=new Set,this.__listenClose=!1,this.__currentTarget=null,this.__delayShowTimeout=0,this.__hideTimeout=0,e.o.textIcons||!e.o.showTooltip||e.o.useNativeTooltip||(this.j.e.on("getContainer",e=>{this.__onAttach(e)}),e.hookStatus(WC.ready,()=>{this.__onAttach(this.j.container)}))}__onAttach(e){qS(this.j,UE).appendChild(this.container),this.__attachedContainers.add(e),this.__attachedContainers.add(this.j.container),this.j.e.on(e,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(e,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}__addListenersOnEnter(){if(this.__listenClose)return;this.__listenClose=!0;const e=this.j;e.e.on(e.ow,zE,this.__hide).on(QE,this.__hide)}__removeListenersOnLeave(){if(!this.__listenClose)return;this.__listenClose=!1;const e=this.j;e.e.off(e.ow,zE,this.__hide).off(QE,this.__hide)}__onMouseLeave(e){this.__currentTarget===e.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(e){if(!qB.isHTMLElement(e.target))return;const t=kB(e.target,"aria-label");if(!t)return;if(Boolean(kB(e.target,"disabled")))return;if(!e.target.className.includes("jodit"))return;this.__currentTarget=e.target;const n=e.target;this.__open(()=>{const e=oE(n);return{x:e.left+e.width/2,y:e.top+e.height}},t)}__open(e,t){this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);const n=this.j.o.showTooltipDelay||this.j.defaultTimeout;n?this.__delayShowTimeout=this.j.async.setTimeout(()=>this.__show(e,t),n):this.__show(e,t)}__show(e,t){this.setMod("visible",!0),this.setMod("above",!1),this.getElm("content").innerHTML=t;const n=e(),r=Jj(this.container);wB(this.container,{left:n.x-r.x,top:n.y-r.y});const o=oE(this.container),i=this.j.ow.innerHeight;if(o.top+o.height>i){const e=oE(this.__currentTarget);this.setMod("above",!0),wB(this.container,{top:e.top-o.height-r.y})}}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),this.getElm("content").innerHTML="",wB(this.container,{left:-5e3}))}__hideDelay(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.__attachedContainers.forEach(e=>{this.j.e.off(e,"mouseenter.tooltip",this.__onMouseEnter).off(e,"mouseleave.tooltip",this.__onMouseLeave)}),this.__hide(),super.destruct()}};RE([KC],HE.prototype,"__onMouseLeave",null),RE([KC],HE.prototype,"__onMouseEnter",null),RE([KC],HE.prototype,"__hide",null),RE([KC],HE.prototype,"__hideDelay",null),HE=UE=RE([hS],HE);let qE=class extends OE{className(){return"UIBlock"}constructor(e,t,n={align:"left"}){super(e,t),this.options=n,this.setMod("align",this.options.align||"left"),this.setMod("width",this.options.width||""),this.options.mod&&this.setMod(this.options.mod,!0),this.options.className&&this.container.classList.add(this.options.className),kB(this.container,"data-ref",n.ref),kB(this.container,"ref",n.ref)}};qE=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([hS],qE);const VE=function(e){return!!iB(e.value).length||(e.error="Please fill out this field",!1)},KE=function(e){return!!iS(iB(e.value))||(e.error="Please enter a web address",!1)},WE=function(e){return!!iB(e.value).length||(e.error="Please fill out this field",!1)};var GE,$E=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};let YE=GE=class extends NE{className(){return"UIInput"}onChangeClear(){this.state.clearButton?qB.after(this.nativeInput,this.clearButton):qB.safeRemove(this.clearButton)}onChangeClassName(e,t){t&&this.container.classList.remove(t),this.state.className&&this.container.classList.add(this.state.className)}onChangeState(){this.name=this.state.name;const e=this.nativeInput,{name:t,icon:n,type:r,ref:o,required:i,placeholder:s,autocomplete:a,label:l}=this.state;kB(e,"name",t),kB(e,"type",r),kB(e,"data-ref",o||t),kB(e,"ref",o||t),kB(e,"required",i||null),kB(e,"autocomplete",a?null:"off"),kB(e,"placeholder",s?this.j.i18n(s):""),n&&jE.exists(n)?(qB.before(e,this.icon),this.icon.innerHTML=jE.get(n)):qB.safeRemove(this.icon),l?(qB.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(l)):qB.safeRemove(this.label),this.updateValidators()}updateValidators(){var e;this.validators.clear(),this.state.required&&this.validators.add(VE),null===(e=this.state.validators)||void 0===e||e.forEach(e=>{const t=s[e];t&&this.validators.add(t)})}set error(e){this.setMod("has-error",Boolean(e)),e?(this.__errorBox.innerText=this.j.i18n(e,this.j.i18n(this.state.label||"")),this.container.appendChild(this.__errorBox)):qB.safeRemove(this.__errorBox)}get value(){return this.nativeInput.value}set value(e){this.value!==e&&(this.nativeInput.value=e,this.onChangeValue())}onChangeStateValue(){const e=this.state.value.toString();e!==this.value&&(this.value=e)}onChangeValue(){var e,t;const{value:n}=this;this.state.value!==n&&(this.state.value=n,this.j.e.fire(this,"change",n),null===(t=(e=this.state).onChange)||void 0===t||t.call(e,n))}validate(){this.error="";const e=nB(this.validators).every(e=>e(this));return this.__markInputInvalid(),e}__markInputInvalid(){var e,t,n,r;this.error?(this.nativeInput.setAttribute("aria-invalid","true"),null===(t=(e=this.nativeInput).setCustomValidity)||void 0===t||t.call(e,this.error)):(this.nativeInput.removeAttribute("aria-invalid"),null===(r=(n=this.nativeInput).setCustomValidity)||void 0===r||r.call(n,""))}createContainer(e){const t=super.createContainer();this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());const{nativeInput:n}=this;return n.classList.add(this.getFullElName("input")),this.wrapper.appendChild(n),t.appendChild(this.wrapper),kB(n,"dir",this.j.o.direction||"auto"),t}createNativeInput(e){return this.j.create.element("input")}constructor(e,t){super(e,t),this.label=this.j.c.span(this.getFullElName("label")),this.icon=this.j.c.span(this.getFullElName("icon")),this.clearButton=this.j.c.span(this.getFullElName("clear"),jE.get("cancel")),this.state={...GE.defaultState},this.__errorBox=this.j.c.span(this.getFullElName("error")),this.validators=new Set([]),void 0!==(null==t?void 0:t.value)&&(t.value=t.value.toString()),Object.assign(this.state,t),void 0!==this.state.clearButton&&(this.j.e.on(this.clearButton,"click",e=>{e.preventDefault(),this.nativeInput.value="",this.j.e.fire(this.nativeInput,"input"),this.focus()}).on(this.nativeInput,"input",()=>{this.state.clearButton=Boolean(this.value.length)}),this.state.clearButton=Boolean(this.value.length)),this.j.e.on(this.nativeInput,"focus blur",()=>{this.onChangeFocus()}).on(this.nativeInput,"input change",this.onChangeValue),this.onChangeState(),this.onChangeClassName(),this.onChangeStateValue()}focus(){this.nativeInput.focus()}get isFocused(){return this.nativeInput===this.j.od.activeElement}onChangeFocus(){this.setMod("focused",this.isFocused)}};YE.defaultState={className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]},$E([kE("state.clearButton")],YE.prototype,"onChangeClear",null),$E([kE("state.className")],YE.prototype,"onChangeClassName",null),$E([kE(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"],{immediately:!1}),AE()],YE.prototype,"onChangeState",null),$E([kE("state.value")],YE.prototype,"onChangeStateValue",null),$E([KC],YE.prototype,"onChangeValue",null),YE=GE=$E([hS],YE);var ZE;let XE=ZE=class extends YE{className(){return"UISelect"}createContainer(e){var t;const n=super.createContainer(e),{j:r}=this,{nativeInput:o}=this,i=()=>r.create.element("option");if(void 0!==e.placeholder){const t=i();t.value="",t.text=r.i18n(e.placeholder),o.add(t)}return null===(t=e.options)||void 0===t||t.forEach(e=>{const t=i();t.value=e.value.toString(),t.text=r.i18n(e.text),o.add(t)}),e.size&&e.size>0&&kB(o,"size",e.size),e.multiple&&kB(o,"multiple",""),n}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(VE),this.validators.add(WE))}constructor(e,t){super(e,t),this.state={...ZE.defaultState},Object.assign(this.state,t)}};XE.defaultState={...YE.defaultState,options:[],size:1,multiple:!1},XE=ZE=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([hS],XE);let JE=class extends OE{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){const e=this.allChildren.filter(e=>uE.isInstanceOf(e,YE));for(const t of e)if(!t.validate())return!1;const t=this.allChildren.filter(e=>uE.isInstanceOf(e,XE));for(const e of t)if(!e.validate())return!1;return!0}onSubmit(e){return this.j.e.on(this.container,"submit",()=>{const t=this.allChildren.filter(e=>uE.isInstanceOf(e,YE));return!!this.validate()&&(e(t.reduce((e,t)=>(e[t.state.name]=t.value,e),{})),!1)}),this}createContainer(){const e=this.j.c.element("form");return e.classList.add(this.componentName),kB(e,"dir",this.j.o.direction||"auto"),kB(e,"novalidate",""),e}constructor(...e){var t,n;super(...e),(null===(t=this.options)||void 0===t?void 0:t.className)&&this.container.classList.add(null===(n=this.options)||void 0===n?void 0:n.className)}};JE=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([hS],JE);var eN,tN=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};let nN=eN=class extends YE{className(){return"UITextArea"}createNativeInput(e){return this.j.create.element("textarea")}constructor(e,t){super(e,t),this.state={...eN.defaultState},Object.assign(this.state,t),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}onChangeStateSize(){const{size:e,resizable:t}=this.state;this.nativeInput.style.resize=t?"auto":"none",this.nativeInput.rows=null!=e?e:5}};nN.defaultState={...YE.defaultState,size:5,resizable:!0},tN([kE(["state.size","state.resizable"])],nN.prototype,"onChangeStateSize",null),nN=eN=tN([hS],nN);var rN,oN=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};let iN=rN=class extends YE{className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}constructor(e,t){super(e,{...t,type:"checkbox"}),this.state={...rN.defaultState},Object.assign(this.state,t)}onChangeChecked(){this.value=this.state.checked.toString(),this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}onChangeNativeCheckBox(){this.state.checked=this.nativeInput.checked}onChangeSwitch(){this.setMod("switch",this.state.switch);let e=this.getElm("switch-slider");this.state.switch?(e||(e=this.j.c.div(this.getFullElName("switch-slider"))),qB.after(this.nativeInput,e)):qB.safeRemove(e)}};iN.defaultState={...YE.defaultState,checked:!1,switch:!1},oN([kE("state.checked"),fE("ready")],iN.prototype,"onChangeChecked",null),oN([kE("nativeInput:change")],iN.prototype,"onChangeNativeCheckBox",null),oN([kE("state.switch"),fE("ready")],iN.prototype,"onChangeSwitch",null),iN=rN=oN([hS],iN);let sN=class extends YE{className(){return"UIFileInput"}createContainer(e){this.button=new TE(this.j,{tooltip:e.tooltip,icon:{name:"plus"}});const{container:t}=this.button;this.nativeInput||(this.nativeInput=this.createNativeInput(e));const{nativeInput:n}=this;return n.classList.add(this.getFullElName("input")),t.classList.add(this.componentName),t.appendChild(n),t}createNativeInput(e){return this.j.create.fromHTML(`<input\n\t\t\ttype="file"\n\t\t\taccept="${e.onlyImages?"image/*":"*"}"\n\t\t\ttabindex="-1"\n\t\t\tdir="auto"\n\t\t\tmultiple=""\n\t\t/>`)}constructor(e,t){super(e,{type:"file",...t}),this.state={...YE.defaultState,type:"file",onlyImages:!0}}};sN=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([hS],sN);let aN=class extends NE{className(){return"UISeparator"}};aN=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([hS],aN);let lN=class extends NE{className(){return"UISpacer"}};lN=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([hS],lN);const cN=e=>$C(e.buttons);function uN(e,t){const n=t.getRegisteredButtonGroups();return new Set(e.reduce((e,t)=>{var r;return cN(t)?e=e.concat([...t.buttons,...null!==(r=n[t.group])&&void 0!==r?r:[]]):e.push(t),e},[]))}function dN(e,t){let n;return t||(t=dj.defaultOptions.controls),YC(e)?n=AN(e,t)||{name:e,command:e,tooltip:e}:(n={name:"empty",...yj(e)},void 0!==t[n.name]&&(n={...yj(t[n.name]),...yj(n)})),n}function AN(e,t){let[n,r]=e.split(/\./),o=t;return null!=r?void 0!==t[n]&&(o=t[n]):r=n,o[r]?{name:r,...yj(o[r])}:void 0}var hN=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};let pN=class extends OE{constructor(){super(...arguments),this.mode="horizontal",this.removeButtons=[]}className(){return"UIList"}getRole(){return"list"}__onChangeMode(){this.setMod("mode",this.mode)}makeGroup(e){return new OE(this.jodit,[],e?{role:e}:void 0)}get buttons(){return this.allChildren.filter(e=>uE.isInstanceOf(e,TE))}getButtonsNames(){return this.buttons.map(e=>e instanceof TE&&e.state.name||"").filter(e=>""!==e)}setRemoveButtons(e){return this.removeButtons=e||[],this}build(e,t=null){e=yS(e),this.clear();let n,r=!1,o=this.makeGroup("group");this.append(o),o.setMod("line",!0);const i=e=>{let i=null;switch(e.name){case"\n":o=this.makeGroup("group"),o.setMod("line",!0),n=this.makeGroup(),o.append(n),this.append(o);break;case"|":r||(r=!0,i=new aN(this.j));break;case"---":{n.setMod("before-spacer",!0);const e=new lN(this.j);o.append(e),n=this.makeGroup(),o.append(n),r=!1;break}default:r=!1,i="select"===e.component?this.makeSelect(e,t):this.makeButton(e,t)}i&&(n||(n=this.makeGroup(),o.append(n)),n.append(i))},s=e=>{var t;return!this.removeButtons.includes(e.name)&&(!e.isVisible||(null===(t=e.isVisible)||void 0===t?void 0:t.call(e,this.j,e)))};return e.forEach(e=>{if(cN(e)){const t=e.buttons.filter(e=>e);t.length&&(n=this.makeGroup(),n.setMod("separated",!0).setMod("group",e.group),o.append(n),function(e,t){const n=$C(e)?e:UB(e,!1).map(t=>gj({name:t},e[t]||{}));return n.map(e=>dN(e,t||dj.defaultOptions.controls))}(t,this.j.o.controls).filter(s).forEach(i))}else{n||(n=this.makeGroup(),o.append(n));const t=dN(e,this.j.o.controls);s(t)&&i(t)}}),this.update(),this}makeSelect(e,t){throw new Error("Not implemented behaviour")}makeButton(e,t){return new TE(this.j,{name:e.name})}};hN([kE("mode"),fE("ready")],pN.prototype,"__onChangeMode",null),pN=hN([hS],pN);var fN=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};const mN=["escape","cut","delete","backSpaceAfterDelete","beforeCommandDelete"];class gN extends OE{className(){return"Popup"}appendChildToContainer(e){const t=this.getElm("content");cB(t,"Content element should exist"),t.appendChild(e)}updateParentElement(e){return e!==this&&uE.isInstanceOf(e,gN)&&(this.__childrenPopups.forEach(t=>{!e.closest(t)&&t.isOpened&&t.close()}),this.__childrenPopups.has(e)||this.j.e.on(e,"beforeClose",()=>{this.__childrenPopups.delete(e)}),this.__childrenPopups.add(e)),super.updateParentElement(e)}setContent(e){if(this.allChildren.length)throw new Error("Remove children");if(uE.isInstanceOf(e,NE))this.append(e);else{const t=YC(e)?this.j.c.fromHTML(e):e;this.appendChildToContainer(t)}return this.updatePosition(),this}open(e,t=!1,n){if(MB(this.jodit,this.container),this.container.classList.add(`jodit_theme_${this.jodit.o.theme}`),this.__calculateZIndex(),this.isOpened=!0,this.__addGlobalListeners(),this.__targetBound=t?this.getKeepBound(e):e,n)n.appendChild(this.container);else{const e=qS(this.jodit,gN);n!==this.container.parentElement&&e.appendChild(this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this.j.e.fire("afterOpenPopup",this),this}__calculateZIndex(){if(this.container.style.zIndex)return;const e=e=>{const t=e.container.style.zIndex||e.o.zIndex;return!!t&&(this.setZIndex(1+parseInt(t.toString(),10)),!0)},{j:t}=this;if(e(t))return;let n=this.parentElement;for(;n;){if(e(n.j))return;if(n.container.style.zIndex)return void this.setZIndex(1+parseInt(n.container.style.zIndex.toString(),10));if(!n.parentElement&&n.container.parentElement){const e=NE.closestElement(n.container.parentElement,NE);if(e){n=e;continue}}n=n.parentElement}}getKeepBound(e){var t;const n=e(),r=(null!==(t=this.j.o.shadowRoot)&&void 0!==t?t:this.od).elementFromPoint(n.left,n.top);if(!r)return e;const o=qB.isHTMLElement(r)?r:r.parentElement,i=oE(o,this.j);return()=>{const t=e(),n=oE(o,this.j);return{...t,top:t.top+(n.top-i.top),left:t.left+(n.left-i.left)}}}updatePosition(){if(!this.isOpened)return this;const[e,t]=this.__calculatePosition(this.__targetBound(),this.viewBound(),oE(this.container,this.j));this.setMod("strategy",t);const n=Jj(this.container);return wB(this.container,{left:e.left-n.x,top:e.top-n.y}),this.__childrenPopups.forEach(e=>e.updatePosition()),this}__throttleUpdatePosition(){this.updatePosition()}__calculatePosition(e,t,n,r=this.strategy){const o={left:e.left,right:e.left-(n.width-e.width)},i={bottom:e.top+e.height,top:e.top-n.height},s=Object.keys(o).reduce((e,t)=>e.concat(Object.keys(i).map(e=>`${t}${sE(e)}`)),[]),a=e=>{const[t,r]=AB(e).split("-");return{left:o[t],top:i[r],width:n.width,height:n.height}},l=e=>{let t=null;return t=gN.boxInView(a(r),e)?r:s.find(t=>{if(gN.boxInView(a(t),e))return t})||null,t};let c=l(oE(this.j.container,this.j));return c&&gN.boxInView(a(c),t)||(c=l(t)||c||r),[a(c),c]}static boxInView(e,t){return e.top-t.top>=-2&&e.left-t.left>=-2&&t.top+t.height-(e.top+e.height)>=-2&&t.left+t.width-(e.left+e.width)>=-2}close(){return this.isOpened?(this.isOpened=!1,this.__childrenPopups.forEach(e=>e.close()),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.__removeGlobalListeners(),qB.safeRemove(this.container),this):this}__closeOnOutsideClick(e){this.isOpened&&!this.isOwnClick(e)&&this.close()}isOwnClick(e){if(!e.target)return!1;const t=NE.closestElement(e.target,gN);return Boolean(t&&(this===t||t.closest(this)))}__addGlobalListeners(){const e=this.__throttleUpdatePosition,t=this.ow;KS.on("closeAllPopups",this.close),this.smart&&this.j.e.on(mN,this.close).on("mousedown touchstart",this.__closeOnOutsideClick).on(t,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",e).on(this.container,"scroll mousewheel",e).on(t,"scroll",e).on(t,"resize",e),qB.up(this.j.container,t=>{t&&this.j.e.on(t,"scroll mousewheel",e)})}__removeGlobalListeners(){const e=this.__throttleUpdatePosition,t=this.ow;KS.off("closeAllPopups",this.close),this.smart&&this.j.e.off(mN,this.close).off("mousedown touchstart",this.__closeOnOutsideClick).off(t,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",e).off(this.container,"scroll mousewheel",e).off(t,"scroll",e).off(t,"resize",e),this.j.container.isConnected&&qB.up(this.j.container,t=>{t&&this.j.e.off(t,"scroll mousewheel",e)})}setZIndex(e){this.container.style.zIndex=e.toString()}constructor(e,t=!0){super(e),this.smart=t,this.isOpened=!1,this.strategy="leftBottom",this.viewBound=()=>({left:0,top:0,width:this.ow.innerWidth,height:this.ow.innerHeight}),this.__childrenPopups=new Set,kB(this.container,"role","popup")}render(){return'<div>\n\t\t\t<div class="&__content"></div>\n\t\t</div>'}destruct(){return this.close(),super.destruct()}}fN([KC],gN.prototype,"updatePosition",null),fN([hE(10),KC],gN.prototype,"__throttleUpdatePosition",null),fN([KC],gN.prototype,"close",null),fN([KC],gN.prototype,"__closeOnOutsideClick",null);class yN extends NE{constructor(){super(...arguments),this.__animationElement=null}className(){return"ProgressBar"}render(){return"<div><div></div></div>"}show(){return(this.j.workplace||this.j.container).appendChild(this.container),this}hide(){return qB.safeRemove(this.container),this}progress(e){return this.container.style.width=e.toFixed(2)+"%",this}showFileUploadAnimation(e,t){this.__cleanUpAnimation();const n=qS(this.j,yN),r=oE(this.j.container,this.j),o=this.j.c.div(this.getFullElName("file-animation")),i=jE.get("file","");i&&(o.innerHTML=i);const s=null!=e?e:{x:r.width/2,y:0},a=null!=t?t:{x:s.x+60,y:s.y-80};wB(o,{left:r.left+s.x,top:r.top+s.y}),n.appendChild(o),this.__animationElement=o,o.offsetWidth,wB(o,{left:r.left+a.x,top:r.top+a.y,opacity:0,transform:"scale(0.4)"});const l=()=>{o.removeEventListener("transitionend",l),this.__cleanUpAnimation()};o.addEventListener("transitionend",l)}__cleanUpAnimation(){this.__animationElement&&(qB.safeRemove(this.__animationElement),this.__animationElement=null)}destruct(){return this.__cleanUpAnimation(),this.hide(),super.destruct()}}class vN{get doc(){return VC(this.document)?this.document():this.document}constructor(e,t){this.document=e,this.createAttributes=t}element(e,t,n){const r=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(r),t&&(dB(t)?kB(r,t):n=t),n&&WS(n).forEach(e=>r.appendChild(YC(e)?this.fromHTML(e):e)),r}div(e,t,n){const r=this.element("div",t,n);return e&&(r.className=e),r}sandbox(){var e;const t=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(t);const n=null===(e=t.contentWindow)||void 0===e?void 0:e.document;if(cB(n,"iframe.contentWindow.document"),!n)throw Error("Iframe error");return n.open(),n.write("<!DOCTYPE html><html><head></head><body></body></html>"),n.close(),[n.body,t]}span(e,t,n){const r=this.element("span",t,n);return e&&(r.className=e),r}a(e,t,n){const r=this.element("a",t,n);return e&&(r.className=e),r}text(e){return this.doc.createTextNode(e)}fake(){return this.text(U_)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){const n=this.div();n.innerHTML=e.toString();const r=n.firstChild===n.lastChild&&n.firstChild?n.firstChild:n;if(qB.safeRemove(r),t){const e=ZS(r);Object.keys(t).forEach(n=>{const r=e[n];r&&!1===t[n]&&qB.hide(r)})}return r}applyCreateAttributes(e){if(this.createAttributes){const t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){const n=t[e.tagName.toLowerCase()];VC(n)?n(e):dB(n)&&kB(e,n)}}}}class bN{constructor(e="JoditDB",t="keyValueStore"){this.dbName=e,this.dbPromise=null,this.DB_VERSION=1,this.storeName=t}getDB(){return this.dbPromise||(this.dbPromise=new Promise((e,t)=>{const n=indexedDB.open(this.dbName,this.DB_VERSION);n.onerror=()=>{t(n.error)},n.onsuccess=()=>{e(n.result)},n.onupgradeneeded=e=>{const t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName)}})),this.dbPromise}async performTransaction(e,t){try{const n=t((await this.getDB()).transaction([this.storeName],e).objectStore(this.storeName));return new Promise((e,t)=>{n.onsuccess=()=>{e(n.result)},n.onerror=()=>{t(n.error)}})}catch(e){return Promise.reject(e)}}async set(e,t){try{await this.performTransaction("readwrite",n=>n.put(t,e))}catch(e){T_||console.error(e)}return this}async delete(e){try{await this.performTransaction("readwrite",t=>t.delete(e))}catch(e){}return this}async get(e){try{return await this.performTransaction("readonly",t=>t.get(e))}catch(e){return}}async exists(e){try{const t=await this.performTransaction("readonly",t=>t.get(e));return void 0!==t}catch(e){return!1}}async clear(){try{await this.performTransaction("readwrite",e=>e.clear())}catch(e){}return this}async close(){if(this.dbPromise){try{(await this.dbPromise).close()}catch(e){}this.dbPromise=null}}async keys(){try{let e=await this.performTransaction("readonly",e=>e.getAllKeys());return e&&"object"==typeof e&&"then"in e&&(e=await e),e.map(e=>String(e))}catch(e){return[]}}async values(){try{let e=await this.performTransaction("readonly",e=>e.getAll());return e&&"object"==typeof e&&"then"in e&&(e=await e),e}catch(e){return[]}}async entries(){try{const[e,t]=await Promise.all([this.keys(),this.values()]);return e.map((e,n)=>[e,t[n]])}catch(e){return[]}}}let wN=null;function xN(){wN=null}async function kN(){if(null!=wN)return wN;try{if("undefined"==typeof indexedDB)return wN=!1,!1;const e="___Jodit___"+Math.random().toString(),t=indexedDB.open(e);return wN=await new Promise(n=>{t.onerror=()=>{n(!1)},t.onsuccess=()=>{indexedDB.deleteDatabase(e),n(!0)}}),wN}catch(e){return wN=!1,!1}}const _N=(e="localStorage")=>{const t=new Map;return(()=>{if(t.has(e))return t.get(e);const n="___Jodit___"+Math.random().toString(),r="sessionStorage"===e?sessionStorage:localStorage;try{r.setItem(n,"1");const o="1"===r.getItem(n);return r.removeItem(n),t.set(e,o),o}catch(e){}return t.set(e,!1),!1})()};class CN{get storage(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}set(e,t){try{const n=this.storage.getItem(this.rootKey),r=n?JSON.parse(n):{};r[e]=t,this.storage.setItem(this.rootKey,JSON.stringify(r))}catch(e){}return this}delete(e){try{const t=this.storage.getItem(this.rootKey);if(t){const n=JSON.parse(t);delete n[e],this.storage.setItem(this.rootKey,JSON.stringify(n))}}catch(e){}return this}get(e){try{const t=this.storage.getItem(this.rootKey),n=t?JSON.parse(t):{};return void 0!==n[e]?n[e]:void 0}catch(e){}}exists(e){return null!=this.get(e)}constructor(e,t="localStorage"){this.rootKey=e,this.strategy=t}clear(){try{this.storage.removeItem(this.rootKey)}catch(e){}return this}}class BN{constructor(){this.data=new Map}set(e,t){return this.data.set(e,t),this}delete(e){return this.data.delete(e),this}get(e){return this.data.get(e)}exists(e){return this.data.has(e)}clear(){return this.data.clear(),this}}class SN{constructor(e,t){this.provider=e,this.prefix="Jodit_",t&&(this.prefix+=t)}async set(e,t){const n=await this.provider;return await n.set(bB(this.prefix+e),t),this}async delete(e){const t=await this.provider;return await t.delete(bB(this.prefix+e)),this}async get(e){return(await this.provider).get(bB(this.prefix+e))}async exists(e){return(await this.provider).exists(bB(this.prefix+e))}async clear(){const e=await this.provider;return await e.clear(),this}async close(){const e=await this.provider;"close"in e&&"function"==typeof e.close&&await e.close()}static makeStorage(e=!1,t,n){let r,o=null;const i=null==n?void 0:n.defaultProvider;return null!=i?(r="local"===i?_N("localStorage")?new CN("Jodit_"+(t||"")):new BN:"memory"===i?new BN:i,new SN(Promise.resolve(r),t)):("localStorage"===e||"sessionStorage"===e?_N(e)&&(r=new CN("Jodit_"+(t||""),e)):"indexedDB"!==e&&!0!==e||(r=kN().then(e=>e?new bN("Jodit_"+(t||""),"keyValueStore"):new BN)),r||(r=new BN),o=new SN(Promise.resolve(r),t),o)}}const jN="Jodit_";class EN{set(e,t){return this.provider.set(bB(this.prefix+e),t),this}delete(e){return this.provider.delete(bB(this.prefix+e)),this}get(e){return this.provider.get(bB(this.prefix+e))}exists(e){return this.provider.exists(bB(this.prefix+e))}clear(){return this.provider.clear(),this}constructor(e,t){this.provider=e,this.prefix=jN,t&&(this.prefix+=t)}static makeStorage(e=!1,t){let n;return"localStorage"===e||"sessionStorage"===e?_N(e)&&(n=new CN(jN+(t||""),e)):!0===e&&_N("localStorage")&&(n=new CN(jN+(t||""))),n||(n=new BN),new EN(n,t)}}let NN=class extends NE{className(){return"UIMessage"}constructor(e,t){super(e),this.setMod("active",!0),this.setMod("variant",t.variant),this.container.textContent=t.text}};NN=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([hS],NN);let IN=class extends OE{className(){return"UIMessages"}constructor(e,t,n={defaultTimeout:3e3,defaultOffset:5}){super(e),this.__box=t,this.options=n,this.__messages=new Set}info(e,t){this.__message(e,"info",t)}success(e,t){this.__message(e,"success",t)}error(e,t){this.__message(e,"error",t)}message(e,t,n){this.__message(e,t,n)}__message(e,t="info",n){const r=e+":"+t;if(this.__messages.has(r))return void this.async.updateTimeout(r,n||this.options.defaultTimeout);if(!this.__box)throw new Error("Container is not defined: "+r);this.__box.appendChild(this.container);const o=new NN(this.j,{text:e,variant:t});this.append(o),this.__calcOffsets(),this.__messages.add(r);const i=this.__getRemoveCallback(o,r);this.j.e.on(o.container,"pointerdown",i),this.async.setTimeout(i,{label:r,timeout:n||this.options.defaultTimeout})}__getRemoveCallback(e,t){const n=r=>{r&&r.preventDefault(),e.isInDestruct||(this.async.clearTimeout(t),this.j.e.off(e.container,"pointerdown",n),this.__messages.delete(t),e.setMod("active",!1),this.async.setTimeout(()=>{this.remove(e),e.destruct(),this.__calcOffsets()},300))};return n}__calcOffsets(){let e=5;this.elements.forEach(t=>{wB(t.container,"bottom",e+"px"),e+=t.container.offsetHeight+this.options.defaultOffset})}};IN=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([hS],IN);var FN,TN=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};let LN=FN=class extends uE{constructor(e,t=!1){var n;super(),this.isJodit=t,this.isView=!0,this.parent=null,this.mods={},this.components=new Set,this.OPTIONS=FN.defaultOptions,this.__isFullSize=!1,this.__whoLocked="",this.isLockedNotBy=e=>this.isLocked&&this.__whoLocked!==e,this.__modulesInstances=new Map,this.id=(new Date).getTime().toString(),this.initOptions(e),this.initOwners(),this.events=null!==(n=null==e?void 0:e.eventEmmiter)&&void 0!==n?n:new wS(this.od),this.create=new vN(this.od),this.__container=this.c.div(`jodit ${this.componentName}`)}get basePath(){return this.o.basePath?this.o.basePath:DC}get minified(){return void 0!==this.o.minified?this.o.minified:UC}get defaultTimeout(){return XC(this.o.defaultTimeout)?100:this.o.defaultTimeout}get buffer(){return EN.makeStorage()}get message(){return this.getMessageModule(this.container)}getMessageModule(e){return new IN(this,e)}get storage(){return EN.makeStorage(!0,this.id)}get asyncStorage(){return SN.makeStorage(!0,this.id,this.o.asyncStorage)}get c(){return this.create}get container(){return this.__container}set container(e){this.__container=e}get e(){return this.events}get progressbar(){return new yN(this)}get options(){return this.__options}set options(e){this.__options=e}get o(){return this.options}i18n(e,...t){return lE(e,t,this.options)}toggleFullSize(e){void 0===e&&(e=!this.__isFullSize),e!==this.__isFullSize&&(this.__isFullSize=e,this.e.fire("toggleFullSize",e))}get isLocked(){return""!==this.__whoLocked}lock(e="any"){return!this.isLocked&&(this.__whoLocked=e,!0)}unlock(){return!!this.isLocked&&(this.__whoLocked="",!0)}get isFullSize(){return this.__isFullSize}getVersion(){return FN.version}static getVersion(){return FN.version}initOptions(e){this.options=gj(e||{},gj(this.options||{},FN.defaultOptions))}initOwners(){var e;this.ownerWindow=null!==(e=this.o.ownerWindow)&&void 0!==e?e:window}attachEvents(e){if(!e)return;const t=null==e?void 0:e.events;t&&Object.keys(t).forEach(e=>this.e.on(e,t[e]))}getInstance(e,t){const n=VC(e)?e.prototype.className():e,r=this.e.fire(bB("getInstance_"+n),t);if(r)return r;const o=VC(e)?e:zS[n],i=this.__modulesInstances;if(!VC(o))throw NB("Need real module name");if(!i.has(n)){const e=o.prototype instanceof dE?new o(this,t):new o(t);this.components.add(e),i.set(n,e)}return i.get(n)}addDisclaimer(e){this.container.appendChild(e)}beforeDestruct(){this.e.fire(WC.beforeDestruct,this),this.components.forEach(e=>{XB(e)&&!e.isInDestruct&&e.destruct()}),this.components.clear()}destruct(){var e,t,n,r;this.isDestructed||(null===(e=aS(this,"progressbar"))||void 0===e||e.destruct(),null===(t=aS(this,"message"))||void 0===t||t.destruct(),null===(n=aS(this,"asyncStorage"))||void 0===n||n.close(),this.events&&(this.events.destruct(),this.events=void 0),null===(r=aS(this,"buffer"))||void 0===r||r.clear(),qB.safeRemove(this.container),super.destruct())}};function PN(e,t){const n=pS("ToolbarCollection"),r=pS("ToolbarEditorCollection"),o=tS(e)?new r(e):new n(e);return e.o.textIcons&&o.container.classList.add("jodit_text_icons"),t&&(o.parentElement=t),e.o.toolbarButtonSize&&(o.buttonSize=e.o.toolbarButtonSize),o}function MN(e,t,n=null){if(VC(t.getContent))return new(pS("ToolbarContent"))(e,t,n);const r=new(pS("ToolbarButton"))(e,t,n);return r.state.tabIndex=e.o.allowTabNavigation?0:-1,r}LN.ES=N_,LN.version=E_,LN.esNext=F_,LN.esModern=I_,TN([lS],LN.prototype,"buffer",null),TN([lS],LN.prototype,"message",null),TN([lS],LN.prototype,"storage",null),TN([lS],LN.prototype,"asyncStorage",null),TN([lS],LN.prototype,"c",null),TN([lS],LN.prototype,"e",null),TN([lS],LN.prototype,"progressbar",null),TN([fE(WC.beforeDestruct)],LN.prototype,"beforeDestruct",null),LN=FN=TN([pE(SE,BE)],LN),LN.defaultOptions={extraButtons:[],cache:!0,textIcons:!1,namespace:"",removeButtons:[],zIndex:100002,defaultTimeout:100,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullSize:!0,language:"auto"};var ON=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class DN extends LN{get toolbarContainer(){return this.o.fullsize||!YC(this.o.toolbar)&&!qB.isHTMLElement(this.o.toolbar)?(this.o.toolbar&&this.__appendToolbarBox(),this.__defaultToolbarContainer):JS(this.o.toolbar,this.o.shadowRoot||this.od)}__appendToolbarBox(){const e=this.__defaultToolbarContainer;let t=this.container.firstElementChild;for(;t&&t!==e&&t.hasAttribute("data-jodit-above-toolbar");)t=t.nextElementSibling;t!==e&&this.container.insertBefore(e,t)}setPanel(e){this.o.toolbar=e,this.buildToolbar()}buildToolbar(){var e;if(!this.o.toolbar)return;const t=this.o.buttons?yS(this.o.buttons):[];null===(e=this.toolbar)||void 0===e||e.setRemoveButtons(this.o.removeButtons).build(t.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}getRegisteredButtonGroups(){return this.groupToButtons}registerButton(e){var t;this.registeredButtons.add(e);const n=null!==(t=e.group)&&void 0!==t?t:"other";return this.groupToButtons[n]||(this.groupToButtons[n]=[]),null!=e.position?this.groupToButtons[n][e.position]=e.name:this.groupToButtons[n].push(e.name),this}unregisterButton(e){var t;this.registeredButtons.delete(e);const n=null!==(t=e.group)&&void 0!==t?t:"other",r=this.groupToButtons[n];if(r){const t=r.indexOf(e.name);-1!==t&&r.splice(t,1),0===r.length&&delete this.groupToButtons[n]}return this}beforeToolbarBuild(e){if(Object.keys(this.groupToButtons).length)return e.map(e=>cN(e)&&e.group&&this.groupToButtons[e.group]?{group:e.group,buttons:[...e.buttons,...this.groupToButtons[e.group]]}:e)}constructor(e,t=!1){super(e,t),this.toolbar=PN(this),this.__defaultToolbarContainer=this.c.div("jodit-toolbar__box"),this.registeredButtons=new Set,this.groupToButtons={},this.isJodit=!1,this.__tooltip=new HE(this),this.isJodit=t,this.e.on("beforeToolbarBuild",this.beforeToolbarBuild)}destruct(){this.isDestructed||(this.setStatus(WC.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.__tooltip.destruct(),this.toolbar.destruct(),this.toolbar=void 0,super.destruct())}}ON([kE(":rebuildToolbar")],DN.prototype,"buildToolbar",null),ON([KC],DN.prototype,"beforeToolbarBuild",null);var UN,RN=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};dj.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[],toolbarButtonSize:"middle",zIndex:"inherit"},dj.prototype.controls.dialog={close:{icon:"cancel",exec:e=>{e.close()}}};let zN=UN=class extends DN{className(){return"Dialog"}get destination(){const{popupRoot:e,shadowRoot:t}=this.o;return e||t||this.od.body}setElements(e,t){const n=[];WS(t).forEach(t=>{if($C(t)){const r=this.c.div(this.getFullElName("column"));return n.push(r),e.appendChild(r),this.setElements(r,t)}let r;r=YC(t)?this.c.fromHTML(t):JB(t)?t.container:t,n.push(r),r.parentNode!==e&&e.appendChild(r)}),nB(e.childNodes).forEach(t=>{-1===n.indexOf(t)&&e.removeChild(t)})}__onMouseUp(){(this.draggable||this.resizable)&&(this.__removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.__removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}__onHeaderMouseDown(e){const t=e.target;!this.o.draggable||t&&t.nodeName.match(/^(INPUT|SELECT)$/)||(this.draggable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.x=wB(this.dialog,"left"),this.startPoint.y=wB(this.dialog,"top"),this.setMaxZIndex(),e.cancelable&&e.preventDefault(),this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&(this.e.fire(this,"startMove"),this.e.fire("closeAllPopups")))}__onMouseMove(e){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+e.clientX-this.startX,this.startPoint.y+e.clientY-this.startY),this.e&&this.e.fire(this,"move",e.clientX-this.startX,e.clientY-this.startY),e.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(Math.max(this.startPoint.w+e.clientX-this.startX,this.minSize.w),Math.max(this.startPoint.h+e.clientY-this.startY,this.minSize.h)),this.e&&this.e.fire(this,"resizeDialog",e.clientX-this.startX,e.clientY-this.startY))}__onEsc(e){if(this.o.closeOnEsc&&this.isOpened&&e.key===iC&&!0!==this.getMod("static")){const t=this.getMaxZIndexDialog();t?t.close():this.close(),e.stopImmediatePropagation()}}__onResizerMouseDown(e){var t,n,r;this.resizable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight;const o=this.getElm("header"),i=this.getElm("footer"),s=this.getElm("content"),a=s&&parseFloat(this.ow.getComputedStyle(s).minHeight)||0;this.minSize.w=oS(this.o.minWidth)?this.o.minWidth:Math.max(100,null!==(t=null==i?void 0:i.scrollWidth)&&void 0!==t?t:0),this.minSize.h=oS(this.o.minHeight)?this.o.minHeight:(null!==(n=null==o?void 0:o.offsetHeight)&&void 0!==n?n:0)+(null!==(r=null==i?void 0:i.offsetHeight)&&void 0!==r?r:0)+a+this.resizer.offsetHeight,this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}__addGlobalResizeListeners(){const e=this;e.e.on(e.ow,"pointermove touchmove",e.__onMouseMove).on(e.ow,"pointerup touchend",e.__onMouseUp)}__removeGlobalResizeListeners(){const e=this;e.e.off(e.ow,"mousemove pointermove",e.__onMouseMove).off(e.ow,"mouseup pointerup",e.__onMouseUp)}setSize(e,t){return null==e&&(e=this.dialog.offsetWidth),null==t&&(t=this.dialog.offsetHeight),wB(this.dialog,{width:e,height:t}),this}calcAutoSize(){return this.setSize("auto","auto"),this.setSize(),this}setPosition(e,t){const n=this.ow.innerWidth,r=this.ow.innerHeight;let o=n/2-this.dialog.offsetWidth/2,i=r/2-this.dialog.offsetHeight/2;return o<0&&(o=0),i<0&&(i=0),void 0!==e&&void 0!==t&&(this.offsetX=e,this.offsetY=t,this.moved=Math.abs(e-o)>100||Math.abs(t-i)>100),this.dialog.style.left=(e||o)+"px",this.dialog.style.top=(t||i)+"px",this}setHeader(e){return this.setElements(this.dialogbox_header,e),this}setContent(e){return this.setElements(this.dialogbox_content,e),this}setFooter(e){return this.setElements(this.dialogbox_footer,e),this.setMod("footer",Boolean(e)),this}getZIndex(){return parseInt(wB(this.container,"zIndex"),10)||0}getMaxZIndexDialog(){let e,t,n=0,r=this;return $S(".jodit-dialog",this.destination).forEach(o=>{e=o.component,t=parseInt(wB(o,"zIndex"),10),e.isOpened&&!isNaN(t)&&t>n&&(r=e,n=t)}),r}setMaxZIndex(){if(this.getMod("static"))return;let e=20000004,t=0;$S(".jodit-dialog",this.destination).forEach(n=>{t=parseInt(wB(n,"zIndex"),10),e=Math.max(isNaN(t)?0:t,e)}),this.container.style.zIndex=(e+1).toString()}toggleFullSize(e){XC(e)&&(e=!this.getMod("fullsize")),this.setMod("fullsize",e),super.toggleFullSize(e)}open(e,t,n,r){if(KS.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;pB(e)&&(n=e),pB(t)&&(r=t),this.destroyAfterClose=!0===n;const o=pB(e)?void 0:e,i=pB(t)?void 0:t;return void 0!==i&&this.setHeader(i),o&&this.setContent(o),this.setMod("active",!0),this.isOpened=!0,this.setModal(r),this.destination.appendChild(this.container),!0!==this.getMod("static")?(this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex()):this.container.style.removeProperty("z-index"),this.o.fullsize&&this.toggleFullSize(!0),this.e.fire("afterOpen",this),this}setModal(e){return this.isModal=Boolean(e),this.setMod("modal",this.isModal),this}close(){if(this.isDestructed||!this.isOpened||!0===this.getMod("static"))return this;const{e}=this;return!1===e.fire(this,"beforeClose")||!1===e.fire("beforeClose",this)||(this.setMod("active",!1),this.isOpened=!1,this.isFullSize&&this.toggleFullSize(!1),qB.safeRemove(this.container),this.__removeGlobalResizeListeners(),e.fire(this,"afterClose"),this.isInDestruct||e.fire(this.ow,"joditCloseDialog"),this.destroyAfterClose&&this.destruct()),this}constructor(e={}){super(e),this.destroyAfterClose=!1,this.moved=!1,this.resizable=!1,this.draggable=!1,this.startX=0,this.startY=0,this.startPoint={x:0,y:0,w:0,h:0},this.lockSelect=()=>{this.setMod("moved",!0)},this.unlockSelect=()=>{this.setMod("moved",!1)},this.__onResize=()=>{this.options&&this.o.resizable&&!this.moved&&this.isOpened&&!this.offsetX&&!this.offsetY&&this.setPosition()},this.minSize={w:0,h:0},this.isModal=!1,this.isOpened=!1;const t=this;t.options=gj(e,gj(dj.prototype.dialog,UN.defaultOptions)),t.attachEvents(t.options),qB.safeRemove(t.container);const n=this.getFullElName.bind(this);t.container=this.c.fromHTML(`<div class="jodit jodit-dialog ${this.componentName}">\n\t\t\t\t<div class="${n("overlay")}"></div>\n\t\t\t\t<div class="${this.getFullElName("panel")}">\n\t\t\t\t\t<div class="${n("header")}">\n\t\t\t\t\t\t<div class="${n("header-title")}"></div>\n\t\t\t\t\t\t<div class="${n("header-toolbar")}"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="${n("content")}"></div>\n\t\t\t\t\t<div class="${n("footer")}"></div>\n\t\t\t\t\t<div class="${n("resizer")}">${jE.get("resize_handler")}</div>\n\t\t\t\t</div>\n\t\t\t</div>`),"rtl"===t.options.direction&&(t.container.style.direction="rtl",t.container.setAttribute("dir","rtl")),this.o.zIndex&&(this.container.style.zIndex=this.o.zIndex.toString()),kB(t.container,"role","dialog"),Object.defineProperty(t.container,"component",{value:this}),t.setMod("theme",t.o.theme||"default").setMod("resizable",Boolean(t.o.resizable));const r=t.getElm("panel");cB(null!=r,"Panel element does not exist");const o=t.getElm("resizer");cB(null!=o,"Resizer element does not exist");const i=t.getElm("header-title");cB(null!=i,"header-title element does not exist");const s=t.getElm("content");cB(null!=s,"Content element does not exist");const a=t.getElm("footer");cB(null!=a,"Footer element does not exist");const l=t.getElm("header-toolbar");cB(null!=l,"header-toolbar element does not exist"),this.dialog=r,this.resizer=o,this.dialogbox_header=i,this.dialogbox_content=s,this.dialogbox_footer=a,this.dialogbox_toolbar=l,wB(t.dialog,{maxWidth:t.options.maxWidth,minHeight:t.options.minHeight,minWidth:t.options.minWidth});const c=t.getElm("header");c&&t.e.on(c,"pointerdown touchstart",t.__onHeaderMouseDown),t.e.on(t.resizer,"mousedown touchstart",t.__onResizerMouseDown);const u=RS.get("fullsize");if(VC(u)&&u(t),this.e.on(t.container,"close_dialog",t.close).on(this.ow,"keydown",this.__onEsc).on(this.ow,"resize",this.__onResize),this.o.closeOnClickOverlay){const e=t.getElm("overlay");cB(null!=e,"Overlay element does not exist"),this.e.on(e,"click",t.close)}}buildToolbar(){this.o.buttons&&this.toolbar.build(yS(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}destruct(){this.isInDestruct||(this.setStatus(WC.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.__removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.__onEsc).off(this.ow,"resize",this.__onResize)),super.destruct())}};function QN(e,t,n,r="jodit-dialog_alert"){VC(t)&&(n=t,t=void 0);const o=this instanceof zN?this:new zN({closeOnClickOverlay:!0}),i=o.c.div(r),s=LE(o,"ok","Ok");return WS(e).forEach(e=>{i.appendChild(qB.isNode(e)?e:o.c.fromHTML(e))}),s.onAction(()=>{n&&VC(n)&&!1===n(o)||o.close()}),o.setFooter([s]),o.open(i,t||"&nbsp;",!0,!0),s.focus(),o}function HN(e,t,n){const r=this instanceof zN?this:new zN({closeOnClickOverlay:!0}),o=r.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),i=r.c.element("label");VC(t)&&(n=t,t=void 0),i.appendChild(r.c.fromHTML(e)),o.appendChild(i);const s=e=>()=>{n&&!1===n(e)||r.close()},a=LE(r,"cancel","Cancel"),l=LE(r,"ok","Yes");return a.onAction(s(!1)),l.onAction(s(!0)),r.e.on(o,"submit",()=>(s(!0)(),!1)),r.setFooter([l,a]),r.open(o,t||"&nbsp;",!0,!0),l.focus(),r}function qN(e,t,n,r,o){const i=this instanceof zN?this:new zN({closeOnClickOverlay:!0}),s=LE(i,"cancel","Cancel"),a=LE(i,"ok","Ok"),l=i.c.element("form",{class:"jodit-dialog_prompt"}),c=i.c.element("input",{autofocus:!0,class:"jodit-input"}),u=i.c.element("label");VC(t)&&(n=t,t=void 0),r&&kB(c,"placeholder",r),u.appendChild(i.c.text(e)),l.appendChild(u),l.appendChild(c),s.onAction(i.close);const d=()=>{n&&VC(n)&&!1===n(c.value)||i.close()};return a.onAction(d),i.e.on(l,"submit",()=>(d(),!1)),i.setFooter([a,s]),i.open(l,t||"&nbsp;",!0,!0),c.focus(),void 0!==o&&o.length&&(c.value=o,c.select()),i}zN.defaultOptions={...LN.defaultOptions,closeOnClickOverlay:!1,closeOnEsc:!0},RN([KC],zN.prototype,"__onMouseUp",null),RN([KC],zN.prototype,"__onHeaderMouseDown",null),RN([KC],zN.prototype,"__onMouseMove",null),RN([KC],zN.prototype,"__onEsc",null),RN([KC],zN.prototype,"__onResizerMouseDown",null),RN([KC],zN.prototype,"close",null),RN([fE("ready")],zN.prototype,"buildToolbar",null),zN=UN=RN([hS],zN);class VN{dlg(e){const t=VS(this.o,this.container,this.od.body),n=new zN({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:t,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...e});return MB(this,n.container),n.parent=this,n.bindDestruct(this)}confirm(e,t,n){return e=KN(e,this),t=KN(t,this),HN.call(this.dlg({closeOnClickOverlay:!0}),e,t,n)}prompt(e,t,n,r,o){return e=KN(e,this),t=KN(t,this),r=KN(r,this),qN.call(this.dlg({closeOnClickOverlay:!0}),e,t,n,r,o)}alert(e,t,n,r){return e=KN(e,this),t=KN(t,this),QN.call(this.dlg({closeOnClickOverlay:!0}),e,t,n,r)}}function KN(e,t){return YC(e)&&!rB(e)&&(e=t.i18n(e)),e}let WN=class extends gN{className(){return"ContextMenu"}show(e,t,n){const r=this;r.clear(),$C(n)&&(n.forEach(e=>{if(!e)return;const t=LE(this.jodit,e.icon||"empty",e.title);this.jodit&&t.setParentView(this.jodit),t.setMod("context","menu"),t.onAction(t=>{var n;return null===(n=e.exec)||void 0===n||n.call(r,t),r.clear(),r.close(),!1}),this.append(t)}),this.open(()=>({left:e,top:t,width:0,height:0}),!0))}};function GN(e){return e.files.setMod("active",!0),e.files.setMod("loading",!0),e.dataProvider.items(e.state.currentPath,e.state.currentSource,{sortBy:e.state.sortBy,onlyImages:e.state.onlyImages,filterWord:e.state.filterWord}).then(t=>{t&&(e.state.elements=t,e.state.activeElements=[])}).catch(e.status).finally(()=>e.files.setMod("loading",!1))}async function $N(e){e.tree.setMod("active",!0),qB.detach(e.tree.container);const t=GN(e);if(e.o.showFoldersPanel){e.tree.setMod("loading",!0);const n=e.dataProvider.tree(e.state.currentPath,e.state.currentSource).then(t=>{e.state.sources=t}).catch(e.status).finally(()=>e.tree.setMod("loading",!1));return Promise.all([n,t])}return e.tree.setMod("active",!1),t}WN=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([hS],WN),dj.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter:(e,t)=>(t=t.toLowerCase(),YC(e)?-1!==e.toLowerCase().indexOf(t):YC(e.name)?-1!==e.name.toLowerCase().indexOf(t):!YC(e.file)||-1!==e.file.toLowerCase().indexOf(t)),sortBy:"changed-desc",sort(e,t,n){const[r,o]=n.toLowerCase().split("-"),i="asc"===o,s=(e,t)=>e<t?i?-1:1:e>t?i?1:-1:0;if(YC(e))return s(e.toLowerCase(),t.toLowerCase());if(void 0===e[r]||"name"===r)return YC(e.name)?s(e.name.toLowerCase(),t.name.toLowerCase()):YC(e.file)?s(e.file.toLowerCase(),t.file.toLowerCase()):0;switch(r){case"changed":{const n=new Date(e.changed).getTime(),r=new Date(t.changed).getTime();return i?n-r:r-n}case"size":{const n=Cj(e.size),r=Cj(t.size);return i?n-r:r-n}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess:e=>e.success,getMessage:e=>void 0!==e.data.messages&&$C(e.data.messages)?e.data.messages.join(" "):"",showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate(e,t,n){const r=this.options,o=this.files.getFullElName("item"),i=r.showFileName,s=r.showFileSize&&e.size,a=r.showFileChangeTime&&e.time;let l="";void 0!==e.file&&(l=e.file);const c=`<div class="${o}-info">${i?`<span class="${o}-info-filename">${l}</span>`:""}${s?`<span class="${o}-info-filesize">${e.size}</span>`:""}${a?`<span class="${o}-info-filechanged">${a}</span>`:""}</div>`;return`<a\n\t\t\tdata-jodit-file-browser-item="true"\n\t\t\tdata-is-file="${e.isImage?0:1}"\n\t\t\tdraggable="true"\n\t\t\tclass="${o}"\n\t\t\thref="${e.fileURL}"\n\t\t\tdata-source="${n}"\n\t\t\tdata-path="${e.path}"\n\t\t\tdata-name="${l}"\n\t\t\ttitle="${l}"\n\t\t\tdata-url="${e.fileURL}">\n\t\t\t\t<img\n\t\t\t\t\tdata-is-file="${e.isImage?0:1}"\n\t\t\t\t\tdata-src="${e.fileURL}"\n\t\t\t\t\tsrc="${e.imageURL}"\n\t\t\t\t\talt="${l}"\n\t\t\t\t\tloading="lazy"\n\t\t\t\t/>\n\t\t\t\t${i||s||a?c:""}\n\t\t\t</a>`},ajax:{...dj.prototype.defaultAjaxOptions,url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData:e=>e,process:e=>e},create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}},fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},dj.prototype.controls.filebrowser={upload:{icon:"plus",tooltip:"Upload file",isInput:!0,isDisabled:e=>!e.dataProvider.canI("FileUpload"),getContent:(e,t)=>{const n=new sN(e,{tooltip:t.control.tooltip,onlyImages:e.state.onlyImages});return e.e.fire("bindUploader.filebrowser",n.container),n.container}},remove:{icon:"bin",tooltip:"Remove file",isDisabled:e=>!e.state.activeElements.length||!e.dataProvider.canI("FileRemove"),exec:e=>{e.e.fire("fileRemove.filebrowser")}},update:{tooltip:"Update file list",exec:e=>{e.e.fire("update.filebrowser")}},select:{tooltip:"Select file",icon:"check",isDisabled:e=>!e.state.activeElements.length,exec:e=>{e.e.fire("select.filebrowser")}},edit:{tooltip:"Edit image",icon:"pencil",isDisabled:e=>{const t=e.state.activeElements;return 1!==t.length||!t[0].isImage||!(e.dataProvider.canI("ImageCrop")||e.dataProvider.canI("ImageResize"))},exec:e=>{e.e.fire("edit.filebrowser")}},tiles:{tooltip:"Tiles view",icon:"th",isActive:e=>"tiles"===e.state.view,exec:e=>{e.e.fire("view.filebrowser","tiles")}},list:{tooltip:"List view",icon:"th-list",isActive:e=>"list"===e.state.view,exec:e=>{e.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent:(e,t)=>{const n=t.container.querySelector(".jodit-input");if(n)return n;const r=e.c.element("input",{class:"jodit-input",placeholder:e.i18n("Filter")});return r.value=e.state.filterWord,e.e.on(r,"keydown mousedown",e.async.debounce(()=>{e.e.fire("filter.filebrowser",r.value)},e.defaultTimeout)),r}},sort:{isInput:!0,getContent:e=>{const t=e.c.fromHTML(`<select class="jodit-input jodit-select"><option value="changed-asc">${e.i18n("Sort by changed")} (⬆)</option><option value="changed-desc">${e.i18n("Sort by changed")} (⬇)</option><option value="name-asc">${e.i18n("Sort by name")} (⬆)</option><option value="name-desc">${e.i18n("Sort by name")} (⬇)</option><option value="size-asc">${e.i18n("Sort by size")} (⬆)</option><option value="size-desc">${e.i18n("Sort by size")} (⬇)</option></select>`);return t.value=e.state.sortBy,e.e.on("sort.filebrowser",e=>{t.value!==e&&(t.value=e)}).on(t,"change",()=>{e.e.fire("sort.filebrowser",t.value)}),t}}};const YN=new WeakMap,ZN=e=>{let t=YN.get(e);return t||(t={},YN.set(e,t)),t},XN=(e,t,n="a")=>qB.closest(e,e=>qB.isTag(e,n),t),JN=(e,t)=>{const{key:n}=e.dataset,{item:r}=t[n||""];return r};class eI{constructor(e){this.data=e,Object.keys(e).forEach(t=>{this[t]=e[t]})}static create(e){return e instanceof eI?e:new eI(e)}get path(){return Wj(this.data.source.path?this.data.source.path+"/":"/")}get imageURL(){const e=this.time||(new Date).getTime().toString(),{thumbIsAbsolute:t,source:n,thumb:r,file:o}=this.data,i=r||o;return t&&i?i:Yj(n.baseurl,n.path,i||"")+"?_tmst="+encodeURIComponent(e)}get fileURL(){let{name:e}=this.data;const{file:t,fileIsAbsolute:n,source:r}=this.data;return void 0!==t&&(e=t),n&&e?e:Yj(r.baseurl,r.path,e||"")}get time(){const{changed:e}=this.data;return e&&("number"==typeof e?new Date(e).toLocaleString():e)||""}get uniqueHashKey(){const e=this.data;let t=[e.sourceName,e.name,e.file,this.time,e.thumb].join("_");return t=t.toLowerCase().replace(/[^0-9a-z\-.]/g,"-"),t}toJSON(){return this.data}}var tI=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};const nI="default",rI=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);class oI{constructor(e,t){this.parent=e,this.options=t,this.__currentPermissions=null,this.__ajaxInstances=new Map,this.progressHandler=e=>{}}get o(){return this.options}get(e){const t=this.__ajaxInstances;if(t.has(e)){const n=t.get(e);null==n||n.abort(),t.delete(e)}const n=gj(void 0!==this.options[e]?this.options[e]:{},gj({onProgress:this.progressHandler},this.o.ajax));n.prepareData&&(n.data=n.prepareData.call(this,n.data));const r=new CE(n);t.set(e,r);const o=r.send();return o.finally(()=>{r.destruct(),t.delete(e),this.progressHandler(100)}).catch(()=>null),o.then(e=>e.json()).then(e=>{if(e&&!this.isSuccess(e))throw new Error(this.getMessage(e));return e})}onProgress(e){this.progressHandler=e}async permissions(e,t){return this.o.permissions?(this.o.permissions.data.path=e,this.o.permissions.data.source=t,this.o.permissions.url?this.get("permissions").then(e=>{if(this.parent.isInDestruct)throw SB();let t=this.o.permissions.process;if(t||(t=this.o.ajax.process),t){const n=t.call(self,e);n.data.permissions&&(this.parent.events.fire(this,"changePermissions",this.__currentPermissions,n.data.permissions),this.__currentPermissions=n.data.permissions)}return this.__currentPermissions}):null):null}canI(e){const t="allow"+e;if(!T_&&!rI.has(t))throw NB("Wrong action "+e);const n=this.o.permissionsPresets[t];return void 0!==n?n:null==this.__currentPermissions||void 0===this.__currentPermissions[t]||this.__currentPermissions[t]}__items(e,t,n,r){const o=this.options;return o.items?(o.items.data.path=e,o.items.data.source=t,o.items.data.mods=n,this.get("items").then(e=>{let t=this.o.items.process;return t||(t=this.o.ajax.process),t&&(e=t.call(self,e)),r(e)})):Promise.reject(Error("Set Items api options"))}items(e,t,n={}){return this.__items(e,t,n,e=>this.__generateItemsList(e.data.sources,n))}itemsEx(e,t,n={}){return this.__items(e,t,n,e=>{return{items:this.__generateItemsList(e.data.sources,n),loadedTotal:(t=e.data.sources,t.reduce((e,t)=>e+t.files.length,0))};var t})}__generateItemsList(e,t={}){const n=[],r=e=>{var n;return!(null===(n=t.filterWord)||void 0===n?void 0:n.length)||void 0===this.o.filter||this.o.filter(e,t.filterWord)};return e.forEach(e=>{if(e.files&&e.files.length){const{sort:o}=this.o;VC(o)&&t.sortBy&&e.files.sort((e,n)=>o(e,n,t.sortBy)),e.files.forEach(o=>{r(o)&&(e=>"folder"===e.type||!t.onlyImages||void 0===e.isImage||e.isImage)(o)&&n.push(eI.create({...o,sourceName:e.name,source:e}))})}}),n}async tree(e,t){return e=Gj(e),this.o.folder?(await this.permissions(e,t),this.o.folder.data.path=e,this.o.folder.data.source=t,this.get("folder").then(e=>{let t=this.o.folder.process;return t||(t=this.o.ajax.process),t&&(e=t.call(self,e)),e.data.sources})):Promise.reject(Error("Set Folder Api options"))}getPathByUrl(e){return Ij("options.getLocalFileByUrl.data.url",e,this),this.get("getLocalFileByUrl").then(e=>{if(this.isSuccess(e))return e.data;throw NB(this.getMessage(e))})}createFolder(e,t,n){const{create:r}=this.o;if(!r)throw NB("Set Create api options");return r.data.source=n,r.data.path=t,r.data.name=e,this.get("create").then(e=>{if(this.isSuccess(e))return!0;throw NB(this.getMessage(e))})}move(e,t,n,r){const o=r?"fileMove":"folderMove",i=this.options[o];if(!i)throw NB("Set Move api options");return i.data.from=e,i.data.path=t,i.data.source=n,this.get(o).then(e=>{if(this.isSuccess(e))return!0;throw NB(this.getMessage(e))})}__remove(e,t,n,r){const o=this.o[e];if(!o)throw NB(`Set "${e}" api options`);return o.data.path=t,o.data.name=n,o.data.source=r,this.get(e).then(e=>(o.process&&(e=o.process.call(this,e)),this.getMessage(e)))}fileRemove(e,t,n){return this.__remove("fileRemove",e,t,n)}folderRemove(e,t,n){return this.__remove("folderRemove",e,t,n)}__rename(e,t,n,r,o){const i=this.o[e];if(!i)throw NB(`Set "${e}" api options`);return i.data.path=t,i.data.name=n,i.data.newname=r,i.data.source=o,this.get(e).then(e=>(i.process&&(e=i.process.call(self,e)),this.getMessage(e)))}folderRename(e,t,n,r){return this.__rename("folderRename",e,t,n,r)}fileRename(e,t,n,r){return this.__rename("fileRename",e,t,n,r)}__changeImage(e,t,n,r,o,i){this.o[e]||(this.o[e]={data:{}});const s=this.o[e];return void 0===s.data&&(s.data={action:e}),s.data.newname=o||r,i&&(s.data.box=i),s.data.path=t,s.data.name=r,s.data.source=n,this.get(e).then(e=>e.data.newPath||!0)}crop(e,t,n,r,o){return this.__changeImage("crop",e,t,n,r,o)}resize(e,t,n,r,o){return this.__changeImage("resize",e,t,n,r,o)}getMessage(e){return this.options.getMessage(e)}isSuccess(e){return this.options.isSuccess(e)}destruct(){this.__ajaxInstances.forEach(e=>e.destruct()),this.__ajaxInstances.clear()}}function iI(e,t,n){return e.dataProvider.fileRemove(e.state.currentPath,t,n).then(n=>{e.status(n||e.i18n('File "%s" was deleted',t),!0)}).catch(e.status)}tI([KC],oI.prototype,"onProgress",null),tI([KC],oI.prototype,"permissions",null),tI([KC],oI.prototype,"canI",null),tI([KC],oI.prototype,"items",null),tI([KC],oI.prototype,"itemsEx",null),tI([KC],oI.prototype,"tree",null),tI([KC],oI.prototype,"getPathByUrl",null),tI([KC],oI.prototype,"createFolder",null),tI([KC],oI.prototype,"move",null),tI([KC],oI.prototype,"fileRemove",null),tI([KC],oI.prototype,"folderRemove",null),tI([KC],oI.prototype,"folderRename",null),tI([KC],oI.prototype,"fileRename",null),tI([KC],oI.prototype,"crop",null),tI([KC],oI.prototype,"resize",null),tI([KC],oI.prototype,"getMessage",null),tI([KC],oI.prototype,"isSuccess",null),tI([KC],oI.prototype,"destruct",null),dj.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},jE.set("crop",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg> ').set("resize",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg> ');const sI="jodit-image-editor",aI=jE.get.bind(jE),lI=(e,t="jodti-image-editor_active")=>e?t:"";var cI,uI=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};const dI="jodit-image-editor",AI="resize",hI="crop";let pI=cI=class extends dE{className(){return"ImageEditor"}get o(){return this.options}hide(){this._dialog.close()}open(e,t){return this.j.async.promise(n=>{const r=(new Date).getTime();this.image=this.j.c.element("img"),$S("img,.jodit-icon_loader",this.resize_box).forEach(qB.safeRemove),$S("img,.jodit-icon_loader",this.crop_box).forEach(qB.safeRemove),wB(this.cropHandler,"background","transparent"),this.onSave=t,this.resize_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.crop_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),/\?/.test(e)?e+="&_tst="+r:e+="?_tst="+r,this.image.setAttribute("src",e),this._dialog.open();const{widthInput:o,heightInput:i}=ZS(this.editor),s=()=>{this.isDestructed||(this.image.removeEventListener("load",s),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,o.value=this.naturalWidth.toString(),i.value=this.naturalHeight.toString(),this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(!0),this.crop_box.appendChild(this.cropImage),qB.safeRemove.apply(null,$S(".jodit-icon_loader",this.editor)),this.activeTab===hI&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),n(this._dialog))};this.image.addEventListener("load",s),this.image.complete&&s()})}onTitleModeClick(e){const t=this,n=e.target,r=null==n?void 0:n.parentElement;if(!r)return;$S(`.${dI}__slider,.${dI}__area`,t.editor).forEach(e=>e.classList.remove(`${dI}_active`)),r.classList.add(`${dI}_active`),this.activeTab=kB(r,"-area")||AI;const o=t.editor.querySelector(`.${dI}__area.${dI}__area_`+t.activeTab);o&&o.classList.add(`${dI}_active`),t.activeTab===hI&&t.showCrop()}onChangeSizeInput(e){const t=this,n=e.target,{widthInput:r,heightInput:o}=ZS(this.editor),i="widthInput"===kB(n,"data-ref"),s=parseInt(n.value,10),a=i?t.o.min_width:t.o.min_height,l=i?t.o.min_height:t.o.min_width;let c;s>a&&(wB(t.image,i?"width":"height",s),t.resizeUseRatio&&(c=i?Math.round(s/t.ratio):Math.round(s*t.ratio),c>l&&(wB(t.image,i?"height":"width",c),i?o.value=c.toString():r.value=c.toString()))),this.j.e.fire(t.resizeHandler,"updatesize")}onResizeHandleMouseDown(e){const t=this;t.target=e.target,e.preventDefault(),e.stopImmediatePropagation(),t.clicked=!0,t.start_x=e.clientX,t.start_y=e.clientY,t.activeTab===hI?(t.top_x=wB(t.cropHandler,"left"),t.top_y=wB(t.cropHandler,"top"),t.width=t.cropHandler.offsetWidth,t.height=t.cropHandler.offsetHeight):(t.width=t.image.offsetWidth,t.height=t.image.offsetHeight),t.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(e){this.clicked&&(this.clicked=!1,e.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(e){const t=this;if(!t.clicked)return;const{widthInput:n,heightInput:r}=ZS(this.editor);t.diff_x=e.clientX-t.start_x,t.diff_y=e.clientY-t.start_y,t.activeTab===AI&&t.resizeUseRatio||t.activeTab===hI&&t.cropUseRatio?t.diff_x?(t.new_w=t.width+t.diff_x,t.new_h=Math.round(t.new_w/t.ratio)):(t.new_h=t.height+t.diff_y,t.new_w=Math.round(t.new_h*t.ratio)):(t.new_w=t.width+t.diff_x,t.new_h=t.height+t.diff_y),t.activeTab===AI?(t.new_w>t.o.resizeMinWidth&&(wB(t.image,"width",t.new_w+"px"),n.value=t.new_w.toString()),t.new_h>t.o.resizeMinHeight&&(wB(t.image,"height",t.new_h+"px"),r.value=t.new_h.toString()),this.j.e.fire(t.resizeHandler,"updatesize")):(t.target!==t.cropHandler?(t.top_x+t.new_w>t.cropImage.offsetWidth&&(t.new_w=t.cropImage.offsetWidth-t.top_x),t.top_y+t.new_h>t.cropImage.offsetHeight&&(t.new_h=t.cropImage.offsetHeight-t.top_y),wB(t.cropHandler,{width:t.new_w,height:t.new_h})):(t.top_x+t.diff_x+t.cropHandler.offsetWidth>t.cropImage.offsetWidth&&(t.diff_x=t.cropImage.offsetWidth-t.top_x-t.cropHandler.offsetWidth),wB(t.cropHandler,"left",t.top_x+t.diff_x),t.top_y+t.diff_y+t.cropHandler.offsetHeight>t.cropImage.offsetHeight&&(t.diff_y=t.cropImage.offsetHeight-t.top_y-t.cropHandler.offsetHeight),wB(t.cropHandler,"top",t.top_y+t.diff_y)),this.j.e.fire(t.cropHandler,"updatesize"))}constructor(e){super(e),this.resizeUseRatio=!0,this.cropUseRatio=!0,this.clicked=!1,this.start_x=0,this.start_y=0,this.top_x=0,this.top_y=0,this.width=0,this.height=0,this.activeTab=AI,this.naturalWidth=0,this.naturalHeight=0,this.ratio=0,this.new_h=0,this.new_w=0,this.diff_x=0,this.diff_y=0,this.cropBox={x:0,y:0,w:0,h:0},this.resizeBox={w:0,h:0},this.calcCropBox=()=>{const e=this.crop_box.parentNode,t=.8*e.offsetWidth,n=.8*e.offsetHeight;let r=t,o=n;const{naturalWidth:i,naturalHeight:s}=this;t>i&&n>s?(r=i,o=s):this.ratio>t/n?(r=t,o=s*(t/i)):(r=i*(n/s),o=n),wB(this.crop_box,{width:r,height:o})},this.showCrop=()=>{if(!this.cropImage)return;this.calcCropBox();const e=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=cI.calcValueByPercent(e,this.o.cropDefaultWidth);const t=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.cropUseRatio?this.new_h=this.new_w/this.ratio:this.new_h=cI.calcValueByPercent(t,this.o.cropDefaultHeight),wB(this.cropHandler,{backgroundImage:"url("+kB(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:e/2-this.new_w/2,top:t/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")},this.updateCropBox=()=>{if(!this.cropImage)return;const e=this.cropImage.offsetWidth/this.naturalWidth,t=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=wB(this.cropHandler,"left")/e,this.cropBox.y=wB(this.cropHandler,"top")/t,this.cropBox.w=this.cropHandler.offsetWidth/e,this.cropBox.h=this.cropHandler.offsetHeight/t,this.sizes.textContent=this.cropBox.w.toFixed(0)+"x"+this.cropBox.h.toFixed(0)},this.updateResizeBox=()=>{this.resizeBox.w=this.image.offsetWidth||this.naturalWidth,this.resizeBox.h=this.image.offsetHeight||this.naturalHeight},this.setHandlers=()=>{const e=this,{widthInput:t,heightInput:n}=ZS(this.editor);e.j.e.on([e.editor.querySelector(".jodit_bottomright"),e.cropHandler],`mousedown.${dI}`,this.onResizeHandleMouseDown).on(this.j.ow,`resize.${dI}`,()=>{this.j.e.fire(e.resizeHandler,"updatesize"),e.showCrop(),this.j.e.fire(e.cropHandler,"updatesize")}),e.j.e.on(nB(this.editor.querySelectorAll(`.${dI}__slider-title`)),"click",this.onTitleModeClick).on([t,n],"input",this.onChangeSizeInput);const{keepAspectRatioResize:r,keepAspectRatioCrop:o}=ZS(this.editor);r&&r.addEventListener("change",()=>{this.resizeUseRatio=r.checked}),o&&o.addEventListener("change",()=>{this.cropUseRatio=o.checked}),e.j.e.on(e.resizeHandler,"updatesize",()=>{wB(e.resizeHandler,{top:0,left:0,width:e.image.offsetWidth||e.naturalWidth,height:e.image.offsetHeight||e.naturalHeight}),this.updateResizeBox()}).on(e.cropHandler,"updatesize",()=>{if(!e.cropImage)return;let t=wB(e.cropHandler,"left"),n=wB(e.cropHandler,"top"),r=e.cropHandler.offsetWidth,o=e.cropHandler.offsetHeight;t<0&&(t=0),n<0&&(n=0),t+r>e.cropImage.offsetWidth&&(r=e.cropImage.offsetWidth-t,e.cropUseRatio&&(o=r/e.ratio)),n+o>e.cropImage.offsetHeight&&(o=e.cropImage.offsetHeight-n,e.cropUseRatio&&(r=o*e.ratio)),wB(e.cropHandler,{width:r,height:o,left:t,top:n,backgroundPosition:-t-1+"px "+(-n-1)+"px",backgroundSize:e.cropImage.offsetWidth+"px "+e.cropImage.offsetHeight+"px"}),e.updateCropBox()}),Object.values(e.buttons).forEach(r=>{r.onAction(()=>{const o={action:e.activeTab,box:e.activeTab===AI?e.resizeBox:e.cropBox};switch(r){case e.buttons.saveas:e.j.prompt("Enter new name","Save in new file",t=>{if(!iB(t))return e.j.alert("The name should not be empty"),!1;e.j.e.fire("afterImageEditorSave",o,t),e.onSave(t,o,e.hide,t=>{e.j.alert(t.message)})});break;case e.buttons.save:e.j.e.fire("afterImageEditorSave",o),e.onSave(void 0,o,e.hide,t=>{e.j.alert(t.message)});break;case e.buttons.reset:e.activeTab===AI?(wB(e.image,{width:null,height:null}),t.value=e.naturalWidth.toString(),n.value=e.naturalHeight.toString(),e.j.e.fire(e.resizeHandler,"updatesize")):e.showCrop()}})})},this.options=e&&e.o&&e.o.imageeditor?e.o.imageeditor:dj.defaultOptions.imageeditor;const t=this.options;this.resizeUseRatio=t.resizeUseRatio,this.cropUseRatio=t.cropUseRatio,this.buttons={reset:LE(this.j,"update","Reset"),save:LE(this.j,"save","Save"),saveas:LE(this.j,{icon:{name:"save"},name:"save-as",text:"Save as ..."})},this.activeTab=t.resize?AI:hI,this.editor=((e,t)=>{const n=e.i18n.bind(e),r=(e,t,r=!0)=>`<div class="jodit-form__group">\n\t\t\t<label class="jodit-switcher-wrapper">\n\t\t\t\t<span class='jodit-switcher'>\n\t\t\t\t\t<input ${lI(r,"checked")} data-ref="${t}" type="checkbox"/>\n\t\t\t\t\t<span class="jodit-switcher__slider"></span>\n\t\t\t\t</span>\n\t\t\t\t<span>${n(e)}</span>\n\t\t\t</label>\n\t</div>`;return e.create.fromHTML(`<form class="${sI} jodit-properties">\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-3-4 jodit_col-sm-5-5">\n\t\t\t${t.resize?`<div class="${sI}__area ${sI}__area_resize ${sI}_active">\n\t\t\t\t\t\t\t<div data-ref="resizeBox" class="${sI}__box"></div>\n\t\t\t\t\t\t\t<div class="${sI}__resizer">\n\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t${t.crop?`<div class="${sI}__area ${sI}__area_crop ${lI(!t.resize)}">\n\t\t\t\t\t\t\t<div data-ref="cropBox" class="${sI}__box">\n\t\t\t\t\t\t\t\t<div class="${sI}__croper">\n\t\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t\t\t<i class="${sI}__sizes"></i>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t</div>\n\t\t\t<div class="jodit_col-lg-1-4 jodit_col-sm-5-5">\n\t\t\t${t.resize?`<div data-area="resize" class="${sI}__slider ${sI}_active">\n\t\t\t\t\t\t\t<div class="${sI}__slider-title">\n\t\t\t\t\t\t\t\t${aI("resize")}\n\t\t\t\t\t\t\t\t${n("Resize")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="${sI}__slider-content">\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t${n("Width")}\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="widthInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t${n("Height")}\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="heightInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t${r("Keep Aspect Ratio","keepAspectRatioResize")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t${t.crop?`<div data-area="crop" class="${sI}__slider ${lI(!t.resize)}'">\n\t\t\t\t\t\t\t<div class="${sI}__slider-title">\n\t\t\t\t\t\t\t\t${aI("crop")}\n\t\t\t\t\t\t\t\t${n("Crop")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="${sI}__slider-content">\n\t\t\t\t\t\t\t\t${r("Keep Aspect Ratio","keepAspectRatioCrop")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t</div>\n\t\t</div>\n\t</form>`)})(this.j,this.options);const{resizeBox:n,cropBox:r}=ZS(this.editor);this.resize_box=n,this.crop_box=r,this.sizes=this.editor.querySelector(`.${dI}__area.${dI}__area_crop .jodit-image-editor__sizes`),this.resizeHandler=this.editor.querySelector(`.${dI}__resizer`),this.cropHandler=this.editor.querySelector(`.${dI}__croper`),this._dialog=this.j.dlg({buttons:["fullsize","dialog.close"]}),this._dialog.setContent(this.editor),this._dialog.setSize(this.o.width,this.o.height),this._dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),qB.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,`.${dI}`).off(`.${dI}`),super.destruct())}};function fI(e,t,n,r,o,i){return this.getInstance("ImageEditor",this.o).open(e,(e,s,a,l)=>{if("saved"===s.action)return a(),void(o&&o(s.newPath));LB("resize"===s.action?this.dataProvider.resize:this.dataProvider.crop,n,r,t,e,s.box).then(e=>{e&&(a(),o&&o("string"==typeof e?e:void 0))}).catch(e=>{l(e),i&&i(e)})})}pI.calcValueByPercent=(e,t)=>{const n=t.toString(),r=parseFloat(e.toString());let o;return o=/^[-+]?[0-9]+(px)?$/.exec(n),o?parseInt(n,10):(o=/^([-+]?[0-9.]+)%$/.exec(n),o?Math.round(r*(parseFloat(o[1])/100)):r||0)},uI([KC],pI.prototype,"hide",null),uI([KC],pI.prototype,"open",null),uI([KC],pI.prototype,"onTitleModeClick",null),uI([AE(),KC],pI.prototype,"onChangeSizeInput",null),uI([KC],pI.prototype,"onResizeHandleMouseDown",null),uI([KC],pI.prototype,"onGlobalMouseUp",null),uI([hE(10)],pI.prototype,"onGlobalMouseMove",null),pI=cI=uI([hS],pI);const mI="jodit-file-browser-preview",gI=(e="next",t="right")=>`<div class="${mI}__navigation ${mI}__navigation_arrow_${e}">`+jE.get("angle-"+t)+"</a>",yI=e=>{if(!e.o.contextMenu)return()=>{};const t=new WN(e);return n=>{const r=XN(n.target,e.container);if(!r)return;let o=r;const i=e.options,s=e=>kB(o,e)||"";return e.async.setTimeout(()=>{const a=JN(r,ZN(e));a&&(e.state.activeElements=[a],t.show(n.clientX,n.clientY,[!("1"===s("data-is-file")||!i.editImage||!e.dataProvider.canI("ImageResize")&&!e.dataProvider.canI("ImageCrop"))&&{icon:"pencil",title:"Edit",exec:()=>fI.call(e,s("href"),s("data-name"),s("data-path"),s("data-source"))},!!e.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec:()=>{e.e.fire("fileRename.filebrowser",s("data-name"),s("data-path"),s("data-source"))}},!!e.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",exec:async()=>{try{await iI(e,s("data-name"),s("data-source"))}catch(t){return e.status(t)}return e.state.activeElements=[],$N(e).catch(e.status)}},!!i.preview&&{icon:"eye",title:"Preview",exec:()=>{const t=e.dlg({buttons:["fullsize","dialog.close"]}),n=e.c.div(mI,'<div class="jodit-icon_loader"></div>'),r=e.c.div(mI+"__box"),a=e.c.fromHTML(gI()),l=e.c.fromHTML(gI("prev","left")),c=s=>{const c=e.c.element("img");c.setAttribute("src",s);const u=()=>{var s;e.isInDestruct||(e.e.off(c,"load"),qB.detach(n),i.showPreviewNavigation&&(qB.prevWithClass(o,e.files.getFullElName("item"))&&n.appendChild(l),qB.nextWithClass(o,e.files.getFullElName("item"))&&n.appendChild(a)),n.appendChild(r),r.appendChild(c),t.setPosition(),null===(s=null==e?void 0:e.events)||void 0===s||s.fire("previewOpenedAndLoaded"))};e.e.on(c,"load",u),c.complete&&u()};e.e.on([a,l],"click",function(){if(o=this===a?qB.nextWithClass(o,e.files.getFullElName("item")):qB.prevWithClass(o,e.files.getFullElName("item")),!o)throw NB("Need element");qB.detach(n),qB.detach(r),n.innerHTML='<div class="jodit-icon_loader"></div>',c(s("href"))}),e.e.on("beforeDestruct",()=>{t.destruct()}),t.container.classList.add(mI+"__dialog"),t.setContent(n),t.setPosition(),t.open(),c(s("href")),e.events.on("beforeDestruct",()=>{t.destruct()}).fire("previewOpened")}},{icon:"upload",title:"Download",exec:()=>{const t=s("href");t&&e.ow.open(t)}}]))},e.defaultTimeout),e.e.on("beforeClose",()=>{t.close()}).on("beforeDestruct",()=>t.destruct()),n.stopPropagation(),n.preventDefault(),!1}};function vI(){let e=!1;const t=ZN(this),n=this;n.e.on(n.tree.container,"dragstart",t=>{const r=XN(t.target,n.container);r&&n.o.moveFolder&&(e=r)}).on(n.tree.container,"drop",t=>{if((n.o.moveFile||n.o.moveFolder)&&e){let r=kB(e,"-path")||"";if(!n.o.moveFolder&&e.classList.contains(this.tree.getFullElName("item")))return!1;if(e.classList.contains(this.files.getFullElName("item"))&&(r+=kB(e,"-name"),!n.o.moveFile))return!1;const o=XN(t.target,n.container);if(!o)return;n.dataProvider.move(r,kB(o,"-path")||"",kB(o,"-source")||"",e.classList.contains(this.files.getFullElName("item"))).then(()=>$N(this)).catch(n.status),e=!1}}).on(n.files.container,"contextmenu",yI(n)).on(n.files.container,"click",e=>{kj(e)||(this.state.activeElements=[])}).on(n.files.container,"click",e=>{const r=XN(e.target,n.container);if(!r)return;const o=JN(r,t);return o?(kj(e)?n.state.activeElements=[...n.state.activeElements,o]:n.state.activeElements=[o],e.stopPropagation(),!1):void 0}).on(n.files.container,"dragstart",t=>{if(n.o.moveFile){const r=XN(t.target,n.container);if(!r)return;e=r}}).on(n.container,"drop",e=>e.preventDefault())}function bI(){const e=this.state,t=this.dataProvider,n=this;n.e.on("view.filebrowser",t=>{t!==e.view&&(e.view=t)}).on("sort.filebrowser",t=>{t!==e.sortBy&&(e.sortBy=t,GN(n))}).on("filter.filebrowser",t=>{t!==e.filterWord&&(e.filterWord=t,GN(n))}).on("openFolder.filebrowser",e=>{let t;t=".."===e.name?e.path.split("/").filter(e=>e.length).slice(0,-1).join("/"):Wj(e.path,e.name),n.state.currentPath=t,n.state.currentSource="."===e.name?nI:e.source}).on("removeFolder.filebrowser",e=>{n.confirm("Are you sure?","Delete",r=>{r&&t.folderRemove(e.path,e.name,e.source).then(e=>(n.status(e,!0),$N(n))).catch(n.status)})}).on("renameFolder.filebrowser",e=>{n.prompt("Enter new name","Rename",r=>{if(!sS(r))return n.status(n.i18n("Enter new name")),!1;t.folderRename(e.path,e.name,r,e.source).then(e=>(n.state.activeElements=[],n.status(e,!0),$N(n))).catch(n.status)},"type name",e.name)}).on("addFolder.filebrowser",e=>{n.prompt("Enter Directory name","Create directory",r=>{t.createFolder(r,e.path,e.source).then(()=>$N(n)).catch(n.status)},"type dir name")}).on("fileRemove.filebrowser",()=>{n.state.activeElements.length&&n.confirm("Are you sure?","",e=>{if(e){const e=[];n.state.activeElements.forEach(t=>{e.push(iI(n,t.file||t.name||"",t.sourceName))}),n.state.activeElements=[],Promise.all(e).then(()=>$N(n).catch(n.status),n.status)}})}).on("edit.filebrowser",()=>{if(1===n.state.activeElements.length){const[e]=this.state.activeElements;fI.call(n,e.fileURL,e.file||"",e.path,e.sourceName)}}).on("fileRename.filebrowser",(e,r,o)=>{1===n.state.activeElements.length&&n.prompt("Enter new name","Rename",i=>{if(!sS(i))return n.status(n.i18n("Enter new name")),!1;t.fileRename(r,e,i,o).then(e=>{n.state.activeElements=[],n.status(e,!0),GN(n)}).catch(n.status)},"type name",e)}).on("update.filebrowser",()=>{$N(this).then(this.status,this.status)})}function wI(){const e=ZN(this),{state:t,files:n,create:r,options:o}=this,i=t=>{const n=t.uniqueHashKey;if(e[n])return e[n].elm;const i=r.fromHTML(o.getThumbTemplate.call(this,t,t.source,t.sourceName.toString()));return i.dataset.key=n,e[n]={item:t,elm:i},e[n].elm};t.on(["change.currentPath","change.currentSource"],this.async.debounce(()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeLastOpenedFolder&&this.storage.set("currentPath",this.state.currentPath).set("currentSource",this.state.currentSource),$N(this).catch(this.status)},this.defaultTimeout)).on("beforeChange.activeElements",()=>{t.activeElements.forEach(t=>{const r=t.uniqueHashKey,{elm:o}=e[r];o&&o.classList.remove(n.getFullElName("item","active",!0))})}).on("change.activeElements",()=>{this.e.fire("changeSelection"),t.activeElements.forEach(t=>{const r=t.uniqueHashKey,{elm:o}=e[r];o&&o.classList.add(n.getFullElName("item","active",!0))})}).on("change.view",()=>{n.setMod("view",t.view),this.o.saveStateInStorage&&this.o.saveStateInStorage.storeView&&this.storage.set("view",t.view)}).on("change.sortBy",()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeSortBy&&this.storage.set("sortBy",t.sortBy)}).on("change.elements",this.async.debounce(()=>{qB.detach(n.container),t.elements.length?t.elements.forEach(e=>{this.files.container.appendChild(i(e))}):n.container.appendChild(r.div(this.componentName+"_no-files_true",this.i18n("There are no files")))},this.defaultTimeout)).on("change.sources",this.async.debounce(()=>{qB.detach(this.tree.container),t.sources.forEach(e=>{const t=e.name;if(t&&"default"!==t&&this.tree.container.appendChild(r.div(this.tree.getFullElName("source-title"),t)),e.folders.forEach(n=>{const i=r.a(this.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":Wj(e.path,n+"/"),"data-name":n,"data-source":t,"data-source-path":e.path},r.span(this.tree.getFullElName("item-title"),n)),s=r=>o=>{this.e.fire(`${r}.filebrowser`,{name:n,path:Wj(e.path+"/"),source:t}),o.stopPropagation(),o.preventDefault()};if(this.e.on(i,"click",s("openFolder")),this.tree.container.appendChild(i),".."!==n&&"."!==n){if(o.renameFolder&&this.dataProvider.canI("FolderRename")){const e=LE(this,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});e.onAction(s("renameFolder")),i.appendChild(e.container)}if(o.deleteFolder&&this.dataProvider.canI("FolderRemove")){const e=LE(this,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});e.onAction(s("removeFolder")),i.appendChild(e.container)}}}),o.createNewFolder&&this.dataProvider.canI("FolderCreate")){const n=LE(this,"plus","Add folder","secondary");n.onAction(()=>{this.e.fire("addFolder",{path:Wj(e.path+"/"),source:t})}),this.tree.append(n)}})},this.defaultTimeout))}n.dn(yI);class xI extends OE{className(){return"FileBrowserFiles"}}class kI extends OE{className(){return"FileBrowserTree"}}var _I=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};let CI=class extends DN{className(){return"FileBrowser"}get dataProvider(){return function(e,t){return new oI(e,t)}(this,this.options)}onSelect(e){return()=>{if(this.state.activeElements.length){const t=[],n=[];this.state.activeElements.forEach(e=>{const r=e.fileURL;r&&(t.push(r),n.push(e.isImage||!1))}),this.close();const r={baseurl:"",files:t,isImages:n};VC(e)&&e(r),this.close()}return!1}}get _dialog(){var e;const t=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:null!==(e=this.o.headerButtons)&&void 0!==e?e:["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach(e=>t.events.on(t,e,()=>this.e.fire(e))),t.setSize(this.o.width,this.o.height),t}get storage(){return EN.makeStorage(Boolean(this.o.saveStateInStorage),this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==this.browser.style.display}status(e,t){e&&!KB(e)&&(YC(e)||(e=e.message),YC(e)&&iB(e).length&&this.message.message(e,t?"success":"error",this.o.howLongShowMsg))}open(e=this.o.defaultCallback,t=!1){return this.state.onlyImages=t,this.async.promise((t,n)=>{var r;if(!this.o.items||!this.o.items.url)throw NB("Need set options.filebrowser.ajax.url");let o=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(e)).on(this.files.container,"touchstart",()=>{const t=(new Date).getTime();t-o<SC&&this.onSelect(e)(),o=t}).off("select.filebrowser").on("select.filebrowser",this.onSelect(e));const i=this.c.div();null===(r=this.toolbar)||void 0===r||r.appendTo(i),this.__updateToolbarButtons(),this._dialog.open(this.browser,i),this.e.fire("sort.filebrowser",this.state.sortBy),$N(this).then(t,n).finally(()=>{var e;this.isInDestruct||null===(e=null==this?void 0:this.e)||void 0===e||e.fire("fileBrowserReady.filebrowser")})}).catch(e=>{if(!KB(e)&&!T_)throw e})}__getButtons(){var e;return(null!==(e=this.o.buttons)&&void 0!==e?e:[]).filter(e=>{if(!YC(e))return!0;switch(e){case"filebrowser.upload":return this.dataProvider.canI("FileUpload");case"filebrowser.edit":return this.dataProvider.canI("ImageResize")||this.dataProvider.canI("ImageCrop");case"filebrowser.remove":return this.dataProvider.canI("FileRemove")}return!0})}initUploader(e){var t;const n=this,r=gj((null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.uploader)||{},dj.defaultOptions.uploader),o=()=>GN(this);n.uploader=n.getInstance("Uploader",r),n.uploader.setPath(n.state.currentPath).setSource(n.state.currentSource).bind(n.browser,o,n.errorHandler),this.state.on(["change.currentPath","change.currentSource"],()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)}),n.e.on("bindUploader.filebrowser",e=>{n.uploader.bind(e,o,n.errorHandler)})}constructor(e){super(e),this.browser=this.c.div(this.componentName),this.status_line=this.c.div(this.getFullElName("status")),this.tree=new kI(this),this.files=new xI(this),this.state=xE({currentPath:"",currentSource:nI,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),this.errorHandler=e=>{KB(e)||(e instanceof Error?this.status(this.i18n(e.message)):this.status(this.dataProvider.getMessage(e)))},this.close=()=>{this._dialog.close()},this.__prevButtons=[],this.attachEvents(e);const t=this;t.options=gj(e||{},dj.defaultOptions.filebrowser),t.browser.component=this,t.container=t.browser,t.o.showFoldersPanel&&t.browser.appendChild(t.tree.container),t.browser.appendChild(t.files.container),t.browser.appendChild(t.status_line),bI.call(t),vI.call(t),wI.call(t),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(e=>{null!=this.options[e]&&(this.options[e]=gj(this.options[e],this.o.ajax))});const{storeView:n,storeSortBy:r,storeLastOpenedFolder:o}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},i=n&&this.storage.get("view");i&&null==this.o.view?t.state.view="list"===i?"list":"tiles":t.state.view="list"===t.o.view?"list":"tiles",t.files.setMod("view",t.state.view);const s=r&&t.storage.get("sortBy");if(s){const e=s.split("-");t.state.sortBy=["changed","name","size"].includes(e[0])?s:"changed-desc"}else t.state.sortBy=t.o.sortBy||"changed-desc";if(o){const e=t.storage.get("currentPath"),n=t.storage.get("currentSource");t.state.currentPath=null!=e?e:"",t.state.currentSource=null!=n?n:""}t.initUploader(t),t.setStatus(WC.ready)}destruct(){var e;this.isInDestruct||(null===(e=aS(this,"_dialog"))||void 0===e||e.destruct(),super.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}__updateToolbarButtons(){var e;const t=this.__getButtons();(function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0})(this.__prevButtons,t)||(this.__prevButtons=t,null===(e=this.toolbar)||void 0===e||e.build(t))}};_I([lS],CI.prototype,"dataProvider",null),_I([lS],CI.prototype,"_dialog",null),_I([lS],CI.prototype,"storage",null),_I([KC],CI.prototype,"status",null),_I([KC],CI.prototype,"open",null),_I([kE("dataProvider:changePermissions")],CI.prototype,"__updateToolbarButtons",null),CI=_I([pE(VN)],CI);var BI=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class SI extends dE{className(){return"Plugin"}constructor(e){super(e),this.buttons=[],this.hasStyle=!1,this.__inited=!1,e.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}__afterPluginSystemInit(){const{j:e,buttons:t}=this;t&&tS(e)&&t.forEach(t=>{e.registerButton(t)})}__afterInit(){this.__inited=!0,this.setStatus(WC.ready),this.afterInit(this.jodit)}init(e){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){var e;if(this.isInDestruct)return;const{j:t}=this;if(t.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(WC.beforeDestruct),!this.__inited)return super.destruct();tS(t)&&(null===(e=this.buttons)||void 0===e||e.forEach(e=>{null==t||t.unregisterButton(e)})),this.beforeDestruct(this.j),super.destruct()}}SI.requires=[],BI([KC],SI.prototype,"__afterPluginSystemInit",null),BI([KC],SI.prototype,"__afterInit",null),BI([KC],SI.prototype,"__beforeDestruct",null);class jI{undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}constructor(e,t,n,r){this.oldValue=e,this.newValue=t,this.history=n,this.tick=r}}class EI extends dE{constructor(){super(...arguments),this.__isBlocked=!1,this.__levelOfTransaction=0}className(){return"Snapshot"}static equal(e,t){return e.html===t.html&&JSON.stringify(e.range)===JSON.stringify(t.range)}static countNodesBeforeInParent(e){if(!e.parentNode)return 0;const t=e.parentNode.childNodes;let n=0,r=null;for(let o=0;o<t.length;o+=1){if(!r||this.isIgnoredNode(t[o])||qB.isText(r)&&qB.isText(t[o])||(n+=1),t[o]===e)return n;r=t[o]}return 0}static strokeOffset(e,t){for(;qB.isText(e);)e=e.previousSibling,qB.isText(e)&&e.nodeValue&&(t+=e.nodeValue.length);return t}calcHierarchyLadder(e){const t=[];if(!e||!e.parentNode||!qB.isOrContains(this.j.editor,e))return[];for(;e&&e!==this.j.editor;)e&&!EI.isIgnoredNode(e)&&t.push(EI.countNodesBeforeInParent(e)),e=e.parentNode;return t.reverse()}getElementByLadder(e){let t,n=this.j.editor;for(t=0;n&&t<e.length;t+=1)n=n.childNodes[e[t]];return n}get isBlocked(){return this.__isBlocked}__block(e){this.__isBlocked=e}transaction(e){this.__block(!0),this.__levelOfTransaction+=1;try{e()}catch(e){if(!T_)throw e}finally{this.__levelOfTransaction-=1,0===this.__levelOfTransaction&&this.__block(!1)}}make(){const e={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};e.html=this.__getCleanedEditorValue(this.j.editor);const t=this.j.s.sel;if(t&&t.rangeCount){const n=t.getRangeAt(0),r=this.calcHierarchyLadder(n.startContainer),o=this.calcHierarchyLadder(n.endContainer);let i=EI.strokeOffset(n.startContainer,n.startOffset),s=EI.strokeOffset(n.endContainer,n.endOffset);r.length||n.startContainer===this.j.editor||(i=0),o.length||n.endContainer===this.j.editor||(s=0),e.range={startContainer:r,startOffset:i,endContainer:o,endOffset:s}}return e}restore(e){this.transaction(()=>{const t=this.storeScrollState();this.__getCleanedEditorValue(this.j.editor)!==e.html&&(this.j.value=e.html),this.restoreOnlySelection(e),this.restoreScrollState(t)})}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(e){const{j:t}=this,{ow:n}=t;n.scrollTo(n.scrollX,e[0]),t.editor.scrollTop=e[1]}restoreOnlySelection(e){try{if(e.range){const t=this.j.ed.createRange();t.setStart(this.getElementByLadder(e.range.startContainer),e.range.startOffset),t.setEnd(this.getElementByLadder(e.range.endContainer),e.range.endOffset),this.j.s.selectRange(t)}}catch(e){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild),T_||console.warn("Broken snapshot",e)}}destruct(){this.__block(!1),super.destruct()}static isIgnoredNode(e){return qB.isText(e)&&!e.nodeValue||qB.isTemporary(e)}__getCleanedEditorValue(e){const t=e.cloneNode(!0);return qB.temporaryList(t).forEach(qB.unwrap),t.innerHTML}}class NI{constructor(e){this.size=e,this.commands=[],this.stackPosition=-1}get length(){return this.commands.length}clearRedo(){this.commands.length=this.stackPosition+1}clear(){this.commands.length=0,this.stackPosition=-1}push(e){this.clearRedo(),this.commands.push(e),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}replace(e){this.commands[this.stackPosition]=e}current(){return this.commands[this.stackPosition]}undo(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}redo(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}canUndo(){return this.stackPosition>=0}canRedo(){return this.stackPosition<this.commands.length-1}}dj.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};class II extends dE{className(){return"History"}redo(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.__stack.canRedo()}undo(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.__stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}get length(){return this.__stack.length}get startValue(){return this.__startValue}set startValue(e){this.__startValue=e}constructor(e,t=new NI(e.o.history.maxHistoryLength),n=new EI(e)){super(e),this.updateTick=0,this.__stack=t,this.snapshot=n,e.o.history.enable&&e.e.on("afterAddPlace.history",()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),e.events.on("internalChange internalUpdate",()=>{this.startValue=this.snapshot.make()}).on(e.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map(e=>e+".history").join(" "),()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())}).on(this,"change.history",this.onChange))})}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(e=!1){const t=this.snapshot.make();if(!EI.equal(t,this.startValue)){const n=new jI(this.startValue,t,this,this.updateTick);if(e){const e=this.__stack.current();e&&this.updateTick===e.tick&&this.__stack.replace(n)}else this.__stack.push(n);this.startValue=t,this.fireChangeStack()}}fireChangeStack(){var e;this.j&&!this.j.isInDestruct&&(null===(e=this.j.events)||void 0===e||e.fire("changeStack"))}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}}!function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([AE()],II.prototype,"onChange",null);let FI=class extends dE{className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}getHeight(){var e,t;return null!==(t=null===(e=this.container)||void 0===e?void 0:e.offsetHeight)&&void 0!==t?t:0}findEmpty(e=!1){const t=this.getElms(e?"item-right":"item");for(let e=0;e<t.length;e+=1)if(!t[e].innerHTML.trim().length)return t[e]}append(e,t=!1){var n;const r=this.findEmpty(t)||this.j.c.div(this.getFullElName("item"));t&&r.classList.add(this.getFullElName("item-right")),r.appendChild(e),null===(n=this.container)||void 0===n||n.appendChild(r),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}constructor(e,t){super(e),this.target=t,this.mods={},this.container=e.c.div("jodit-status-bar"),t.appendChild(this.container),this.hide()}destruct(){this.isInDestruct||(this.setStatus(WC.beforeDestruct),qB.safeRemove(this.container),super.destruct())}};FI=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([hS,pE(SE,BE)],FI);const TI=new WeakMap;class LI extends dE{constructor(){super(...arguments),this.selected=new Set}className(){return"Table"}__recalculateStyles(){const e=qS(this.j,LI,"style",!0),t=[];this.selected.forEach(e=>{const n=XS(e);n&&t.push(n)}),e.innerHTML=t.length?t.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(e){this.selected.add(e),this.__recalculateStyles();const t=qB.closest(e,"table",this.j.editor);if(t){const n=LI.__selectedByTable.get(t)||new Set;n.add(e),LI.__selectedByTable.set(t,n)}}removeSelection(e){this.selected.delete(e),this.__recalculateStyles();const t=qB.closest(e,"table",this.j.editor);if(t){const n=LI.__selectedByTable.get(t);n&&(n.delete(e),n.size||LI.__selectedByTable.delete(t))}}getAllSelectedCells(){return nB(this.selected)}static __getSelectedCellsByTable(e){const t=LI.__selectedByTable.get(e);return t?nB(t):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(e){return e.rows.length}getRowsCount(e){return LI.__getRowsCount(e)}static __getColumnsCount(e){return LI.__formalMatrix(e).reduce((e,t)=>Math.max(e,t.length),0)}getColumnsCount(e){return LI.__getColumnsCount(e)}static __formalMatrix(e,t){const n=[[]],r=nB(e.rows),o=(e,r)=>{void 0===n[r]&&(n[r]=[]);const o=e.colSpan,i=e.rowSpan;let s,a,l=0;for(;n[r][l];)l+=1;for(a=0;a<i;a+=1)for(s=0;s<o;s+=1){if(void 0===n[r+a]&&(n[r+a]=[]),t&&!1===t(e,r+a,l+s,o,i))return!1;n[r+a][l+s]=e}};for(let e=0;e<r.length;e+=1){const t=nB(r[e].cells);for(let r=0;r<t.length;r+=1)if(!1===o(t[r],e))return n}return n}formalMatrix(e,t){return LI.__formalMatrix(e,t)}static __formalCoordinate(e,t,n=!1){let r=0,o=0,i=1,s=1;return LI.__formalMatrix(e,(e,a,l,c,u)=>{if(t===e)return r=a,o=l,i=c||1,s=u||1,n&&(o+=(c||1)-1,r+=(u||1)-1),!1}),[r,o,i,s]}formalCoordinate(e,t,n=!1){return LI.__formalCoordinate(e,t,n)}static __appendRow(e,t,n,r){var o;let i;if(t)i=t.cloneNode(!0),$S("td,th",t).forEach(e=>{const t=kB(e,"rowspan");if(t&&parseInt(t,10)>1){const n=parseInt(t,10)-1;kB(e,"rowspan",n>1?n:null)}}),$S("td,th",i).forEach(e=>{e.innerHTML=""});else{const t=LI.__getColumnsCount(e);i=r.element("tr");for(let e=0;e<t;e+=1)i.appendChild(r.element("td"))}n&&t&&t.nextSibling?t.parentNode&&t.parentNode.insertBefore(i,t.nextSibling):!n&&t?t.parentNode&&t.parentNode.insertBefore(i,t):((null===(o=e.getElementsByTagName("tbody"))||void 0===o?void 0:o[0])||e).appendChild(i)}appendRow(e,t,n){return LI.__appendRow(e,t,n,this.j.createInside)}static __removeRow(e,t){const n=LI.__formalMatrix(e);let r;const o=e.rows[t];n[t].forEach((i,s)=>{if(r=!1,t-1>=0&&n[t-1][s]===i)r=!0;else if(n[t+1]&&n[t+1][s]===i){if(i.parentNode===o&&i.parentNode.nextSibling){r=!0;let o=s+1;for(;n[t+1][o]===i;)o+=1;const a=qB.next(i.parentNode,e=>qB.isTag(e,"tr"),e);if(a){let e=null;for(let r=o;r<n[t+1].length;r+=1){const o=n[t+1][r];if(o&&o.parentNode===a){e=o;break}}e?a.insertBefore(i,e):a.appendChild(i)}}}else qB.safeRemove(i);if(r&&(i.parentNode===o||i!==n[t][s-1])){const e=i.rowSpan;kB(i,"rowspan",e-1>1?e-1:null)}}),qB.safeRemove(o)}removeRow(e,t){return LI.__removeRow(e,t)}appendColumn(e,t,n=!0){const r=LI.__formalMatrix(e);if(!n&&qB.isCell(t.previousElementSibling))return this.appendColumn(e,t.previousElementSibling,!0);const[,o]=LI.__formalCoordinate(e,t,n),i=o,s=n?i+1:i;for(let e=0;e<r.length;){const t=r[e];if(t[i]!==t[s]||i===s){const e=this.j.createInside.element("td");n?qB.after(t[i],e):qB.before(t[i],e),t[i].rowSpan>1&&(e.rowSpan=t[i].rowSpan)}else t[i].colSpan+=1;e+=t[i].rowSpan||1}}static __removeColumn(e,t){const n=LI.__formalMatrix(e);let r;n.forEach((e,o)=>{const i=e[t];if(r=!1,t-1>=0&&n[o][t-1]===i||t+1<e.length&&n[o][t+1]===i?r=!0:qB.safeRemove(i),r&&(o-1<0||i!==n[o-1][t])){const e=i.colSpan;kB(i,"colspan",e-1>1?(e-1).toString():null)}})}removeColumn(e,t){return LI.__removeColumn(e,t)}static __getSelectedBound(e,t){const n=[[1/0,1/0],[0,0]],r=LI.__formalMatrix(e);let o,i,s;for(o=0;o<r.length;o+=1)for(i=0;r[o]&&i<r[o].length;i+=1)t.includes(r[o][i])&&(n[0][0]=Math.min(o,n[0][0]),n[0][1]=Math.min(i,n[0][1]),n[1][0]=Math.max(o,n[1][0]),n[1][1]=Math.max(i,n[1][1]));for(o=n[0][0];o<=n[1][0];o+=1)for(s=1,i=n[0][1];i<=n[1][1];i+=1){for(;r[o]&&r[o][i-s]&&r[o][i]===r[o][i-s];)n[0][1]=Math.min(i-s,n[0][1]),n[1][1]=Math.max(i-s,n[1][1]),s+=1;for(s=1;r[o]&&r[o][i+s]&&r[o][i]===r[o][i+s];)n[0][1]=Math.min(i+s,n[0][1]),n[1][1]=Math.max(i+s,n[1][1]),s+=1;for(s=1;r[o-s]&&r[o][i]===r[o-s][i];)n[0][0]=Math.min(o-s,n[0][0]),n[1][0]=Math.max(o-s,n[1][0]),s+=1;for(s=1;r[o+s]&&r[o][i]===r[o+s][i];)n[0][0]=Math.min(o+s,n[0][0]),n[1][0]=Math.max(o+s,n[1][0]),s+=1}return n}getSelectedBound(e,t){return LI.__getSelectedBound(e,t)}static __normalizeTable(e){const t=[],n=LI.__formalMatrix(e);LI.__removeExtraColspans(n,t),LI.__removeExtraRowspans(n,t);for(let e=0;e<n.length;e+=1)for(let t=0;t<n[e].length;t+=1)void 0!==n[e][t]&&(n[e][t].hasAttribute("rowspan")&&1===n[e][t].rowSpan&&kB(n[e][t],"rowspan",null),n[e][t].hasAttribute("colspan")&&1===n[e][t].colSpan&&kB(n[e][t],"colspan",null),n[e][t].hasAttribute("class")&&!kB(n[e][t],"class")&&kB(n[e][t],"class",null));LI.__unmark(t)}static __removeExtraColspans(e,t){for(let n=0;n<e[0].length;n+=1){let r=1e6,o=!1;for(let t=0;t<e.length;t+=1)if(void 0!==e[t][n]){if(e[t][n].colSpan<2){o=!0;break}r=Math.min(r,e[t][n].colSpan)}if(!o)for(let o=0;o<e.length;o+=1)void 0!==e[o][n]&&LI.__mark(e[o][n],"colspan",e[o][n].colSpan-r+1,t)}}static __removeExtraRowspans(e,t){let n=0,r=0;for(n=0;n<e.length;n+=1){let o=1e6,i=!1;for(r=0;r<e[n].length;r+=1)if(void 0!==e[n][r]){if(e[n][r].rowSpan<2){i=!0;break}o=Math.min(o,e[n][r].rowSpan)}if(!i)for(r=0;r<e[n].length;r+=1)void 0!==e[n][r]&&LI.__mark(e[n][r],"rowspan",e[n][r].rowSpan-o+1,t)}}normalizeTable(e){return LI.__normalizeTable(e)}static __mergeSelected(e,t){const n=[],r=LI.__getSelectedBound(e,LI.__getSelectedCellsByTable(e));let o,i=0,s=null,a=0,l=0,c=0;const u=new Set,d=[];r&&(r[0][0]-r[1][0]||r[0][1]-r[1][1])&&(LI.__formalMatrix(e,(e,A,h,p,f)=>{if(A>=r[0][0]&&A<=r[1][0]&&h>=r[0][1]&&h<=r[1][1]){if(o=e,u.has(o))return;u.add(o),A===r[0][0]&&o.style.width&&(i+=o.offsetWidth),""!==iB(e.innerHTML.replace(/<br(\/)?>/g,""))&&n.push(e.innerHTML),p>1&&(l+=p-1),f>1&&(c+=f-1),s?(LI.__mark(o,"remove",1,d),PI(t).removeSelection(o)):(s=e,a=h)}}),l=r[1][1]-r[0][1]+1,c=r[1][0]-r[0][0]+1,s&&(l>1&&LI.__mark(s,"colspan",l,d),c>1&&LI.__mark(s,"rowspan",c,d),i&&(LI.__mark(s,"width",(i/e.offsetWidth*100).toFixed(fC)+"%",d),a&&LI.__setColumnWidthByDelta(e,a,0,!0,d)),s.innerHTML=n.join("<br/>"),PI(t).addSelection(s),u.delete(s),LI.__unmark(d),LI.__normalizeTable(e),nB(e.rows).forEach(e=>{e.cells.length||qB.safeRemove(e)})))}mergeSelected(e){return LI.__mergeSelected(e,this.j)}static __splitHorizontal(e,t){let n,r,o,i,s;const a=[];LI.__getSelectedCellsByTable(e).forEach(l=>{r=t.createInside.element("td"),r.appendChild(t.createInside.element("br")),o=t.createInside.element("tr"),n=LI.__formalCoordinate(e,l),l.rowSpan<2?(LI.__formalMatrix(e,(e,t,r)=>{n[0]===t&&n[1]!==r&&e!==l&&LI.__mark(e,"rowspan",e.rowSpan+1,a)}),qB.after(qB.closest(l,"tr",e),o),o.appendChild(r)):(LI.__mark(l,"rowspan",l.rowSpan-1,a),LI.__formalMatrix(e,(t,r,o)=>{r>n[0]&&r<n[0]+l.rowSpan&&n[1]>o&&t.parentNode.rowIndex===r&&(s=t),n[0]<r&&t===l&&(i=e.rows[r])}),s?qB.after(s,r):i.insertBefore(r,i.firstChild)),l.colSpan>1&&LI.__mark(r,"colspan",l.colSpan,a),LI.__unmark(a),PI(t).removeSelection(l)}),this.__normalizeTable(e)}splitHorizontal(e){return LI.__splitHorizontal(e,this.j)}static __splitVertical(e,t){let n,r,o;const i=[];LI.__getSelectedCellsByTable(e).forEach(s=>{n=LI.__formalCoordinate(e,s),s.colSpan<2?LI.__formalMatrix(e,(e,t,r)=>{n[1]===r&&n[0]!==t&&e!==s&&LI.__mark(e,"colspan",e.colSpan+1,i)}):LI.__mark(s,"colspan",s.colSpan-1,i),r=t.createInside.element("td"),r.appendChild(t.createInside.element("br")),s.rowSpan>1&&LI.__mark(r,"rowspan",s.rowSpan,i);const a=s.offsetWidth;qB.after(s,r),o=a/e.offsetWidth/2,LI.__mark(s,"width",(100*o).toFixed(fC)+"%",i),LI.__mark(r,"width",(100*o).toFixed(fC)+"%",i),LI.__unmark(i),PI(t).removeSelection(s)}),LI.__normalizeTable(e)}splitVertical(e){return LI.__splitVertical(e,this.j)}static __setColumnWidthByDelta(e,t,n,r,o){const i=LI.__formalMatrix(e);let s=0;for(let r=0;r<i.length;r+=1){const a=i[r][t];if(a.colSpan>1&&i.length>1)continue;const l=(a.offsetWidth+n)/e.offsetWidth*100;LI.__mark(a,"width",l.toFixed(fC)+"%",o),s=r;break}for(let e=s+1;e<i.length;e+=1){const n=i[e][t];LI.__mark(n,"width",null,o)}r||LI.__unmark(o)}setColumnWidthByDelta(e,t,n,r,o){return LI.__setColumnWidthByDelta(e,t,n,r,o)}static __mark(e,t,n,r){var o;r.push(e);const i=null!==(o=TI.get(e))&&void 0!==o?o:{};i[t]=void 0===n?1:n,TI.set(e,i)}static __unmark(e){e.forEach(e=>{const t=TI.get(e);t&&(Object.keys(t).forEach(n=>{const r=t[n];switch(n){case"remove":qB.safeRemove(e);break;case"rowspan":kB(e,"rowspan",oS(r)&&r>1?r:null);break;case"colspan":kB(e,"colspan",oS(r)&&r>1?r:null);break;case"width":null==r?(e.style.removeProperty("width"),kB(e,"style")||kB(e,"style",null)):e.style.width=r.toString()}delete t[n]}),TI.delete(e))})}}LI.__selectedByTable=new WeakMap,function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([AE()],LI.prototype,"__recalculateStyles",null);const PI=e=>e.getInstance("Table",e.o);var MI=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};let OI=class extends TE{className(){return"ToolbarButton"}getRole(){return"listitem"}updateAriaLabel(){if(super.updateAriaLabel(),this.trigger){const e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;kB(this.trigger,"aria-label",e)}}get toolbar(){const e=pS("ToolbarCollection");return this.closest(e)}update(){var e,t;const{control:n,state:r}=this,o=this.toolbar;if(!o)return;const i=null===(e=n.value)||void 0===e?void 0:e.call(n,o.jodit,this);void 0!==i&&(r.value=i),r.disabled=this.__calculateDisabledStatus(o),r.activated=this.__calculateActivatedStatus(o),null===(t=n.update)||void 0===t||t.call(n,o.jodit,this)}__calculateActivatedStatus(e){var t,n;return!(tS(this.j)&&!this.j.editorIsActive)&&(!!(null===(n=(t=this.control).isActive)||void 0===n?void 0:n.call(t,this.j,this))||Boolean(e&&e.shouldBeActive(this)))}__calculateDisabledStatus(e){var t,n;return!!this.j.o.disabled||!(!this.j.o.readonly||this.j.o.activeButtonsInReadOnly&&this.j.o.activeButtonsInReadOnly.includes(this.control.name))||!!(null===(n=(t=this.control).isDisabled)||void 0===n?void 0:n.call(t,this.j,this))||Boolean(e&&e.shouldBeDisabled(this))}onChangeActivated(){kB(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){VC(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",Boolean(this.text.innerText.trim().length))}onChangeTabIndex(){kB(this.button,"tabindex",this.state.tabIndex)}createContainer(){const e=this.componentName,t=this.j.c.span(e),n=super.createContainer();n.classList.remove(e),n.classList.add(e+"__button"),Object.defineProperty(n,"component",{value:this,configurable:!0}),t.appendChild(n);const r=this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${e}__trigger">${jE.get("chevron")}</span>`);return n.appendChild(r),t}focus(){var e;null===(e=this.container.querySelector("button"))||void 0===e||e.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):qB.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){const e=this.state.disabled?"disabled":null;kB(this.trigger,"disabled",e),kB(this.button,"disabled",e),kB(this.container,"disabled",e)}constructor(e,t,n=null){super(e),this.control=t,this.target=n,this.state={...FE(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null;const r=this.getElm("button");cB(r,"Element button should exists"),this.button=r,Object.defineProperty(r,"component",{value:this,configurable:!0});const o=this.getElm("trigger");cB(o,"Element trigger should exists"),this.trigger=o,o.remove(),e.e.on([this.button,this.trigger],"mousedown",e=>e.preventDefault()),this.onAction(this.onClick),this.hookStatus(WC.ready,()=>{this.__initFromControl(),this.update()}),t.mods&&Object.keys(t.mods).forEach(e=>{t.mods&&this.setMod(e,t.mods[e])})}__initFromControl(){const{control:e,state:t}=this;this.updateSize(),t.name=e.name,this.__initIconFromControl(),e.tooltip&&(t.tooltip=VC(e.tooltip)?e.tooltip(this.j,e,this):e.tooltip),t.hasTrigger=Boolean(e.list||e.popup&&e.exec)}__initIconFromControl(){var e;const{control:t,state:n}=this,{textIcons:r}=this.j.o;if(!0===r||VC(r)&&r(t.name)||t.template)return n.icon=FE().icon,void(n.text=t.text||t.name);if(YC(t.icon)||null==t.icon){if(t.iconURL)n.icon.iconURL=t.iconURL;else{const r=t.icon||t.name;n.icon.name=jE.exists(r)||(null===(e=this.j.o.extraIcons)||void 0===e?void 0:e[r])?r:""}t.iconURL||n.icon.name||(n.text=t.text||t.name)}else n.icon={name:t.icon.name||t.name,iconURL:t.icon.iconURL||"",fill:t.icon.fill||"",scale:t.icon.scale}}onTriggerClick(e){var t,n,r;if(this.openedPopup)return void this.__closePopup();const{control:o}=this;if(kB(this.trigger,"aria-expanded",!0),e.buffer={actionTrigger:this},o.list)return this.__openControlList(o);if(VC(o.popup)){const i=this.openPopup();i.parentElement=this;try{if(!1!==this.j.e.fire(bB(`before-${o.name}-open-popup`),this.target,o,i)){const e=null!==(r=null!==(n=null===(t=this.toolbar)||void 0===t?void 0:t.getTarget(this))&&void 0!==n?n:this.target)&&void 0!==r?r:null,s=o.popup(this.j,e,this.__closePopup,this);s?i.setContent(YC(s)?this.j.c.fromHTML(s):s).open(()=>oE(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(e){throw this.__closePopup(),e}this.j.e.fire(bB(`after-${o.name}-open-popup`),i.container)}}__openControlList(e){var t;const n=null!==(t=this.jodit.options.controls)&&void 0!==t?t:{},r=e=>AN(e,n),o=e.list,i=this.openPopup(),s=PN(this.j);i.parentElement=this,s.parentElement=i,s.mode="vertical";const a=(t,n)=>{if(YC(n)&&r(n))return{name:n.toString(),...r(n)};if(YC(t)&&r(t))return{name:t.toString(),...r(t),..."object"==typeof n?n:{}};(e=>dB(e)&&"title"in e&&"value"in e)(t)&&(n=t.value,t=t.title);const{childTemplate:o}=e,i={name:t.toString(),template:o&&((e,t,n)=>o(e,t,n,this)),exec:e.childExec?(t,n,r)=>{var o;return null===(o=e.childExec)||void 0===o?void 0:o.call(e,t,n,{...r,parentControl:e})}:e.exec,data:e.data,command:e.command,isActive:e.isChildActive,value:e.value,isDisabled:e.isChildDisabled,mode:e.mode,args:[...e.args?e.args:[],t,n]};return YC(n)&&(i.text=n),i};s.build($C(o)?o.map(a):UB(o,!1).map(e=>a(e,o[e])),this.target),i.setContent(s).open(()=>oE(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(e){this.openedPopup&&(e&&qB.isNode(e.target)&&(qB.isOrContains(this.container,e.target)||this.openedPopup.isOwnClick(e))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new gN(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}__closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null,this.trigger&&kB(this.trigger,"aria-expanded",!1))}onClick(e){var t,n,r,o,i,s,a;const{control:l}=this;if(VC(l.exec)){const c=null!==(r=null!==(n=null===(t=this.toolbar)||void 0===t?void 0:t.getTarget(this))&&void 0!==n?n:this.target)&&void 0!==r?r:null,u=l.exec(this.j,c,{control:l,originalEvent:e,button:this});if(!1!==u&&!0!==u&&(null===(i=null===(o=this.j)||void 0===o?void 0:o.e)||void 0===i||i.fire("synchro"),this.parentElement&&this.parentElement.update(),null===(a=null===(s=this.j)||void 0===s?void 0:s.e)||void 0===a||a.fire("closeAllPopups afterExec")),!1!==u)return}return l.list?this.__openControlList(l):VC(l.popup)?this.onTriggerClick(e):void((l.command||l.name)&&(LB(tS(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),l.command||l.name,!1,l.args&&l.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}};MI([cS],OI.prototype,"createContainer",null),MI([kE("state.hasTrigger",{immediately:!1})],OI.prototype,"onChangeHasTrigger",null),MI([kE("trigger:click")],OI.prototype,"onTriggerClick",null),MI([KC],OI.prototype,"onOutsideClick",null),MI([KC],OI.prototype,"__closePopup",null),OI=MI([hS],OI);let DI=class extends TE{className(){return"ToolbarContent"}update(){var e,t,n;const{control:r}=this,o=r.getContent(this.j,this);(YC(o)||o.parentNode!==this.container)&&(qB.detach(this.container),this.container.appendChild(YC(o)?this.j.create.fromHTML(o):o)),this.state.disabled=Boolean(null===(e=r.isDisabled)||void 0===e?void 0:e.call(r,this.j,this)),this.state.activated=Boolean(null===(t=r.isActive)||void 0===t?void 0:t.call(r,this.j,this)),null===(n=r.update)||void 0===n||n.call(r,this.j,this),this.onChangeDisabled(),this.onChangeActivated(),super.update()}onChangeDisabled(){super.onChangeDisabled(),this.container.querySelectorAll("input,button,select,textarea").forEach(e=>kB(e,"disabled",this.state.disabled||null))}createContainer(){return this.j.c.span(this.componentName)}constructor(e,t,n=null){super(e),this.control=t,this.target=n,this.container.classList.add(`${this.componentName}_${this.clearName(t.name)}`),kB(this.container,"role","content")}};DI=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([hS],DI);let UI=class extends OI{className(){return"ToolbarSelect"}update(){var e,t,n;super.update(),this.state.icon.name="";const{list:r,data:o}=this.control;if(r){let i=this.state.value||(o&&YC(o.currentValue)?o.currentValue:void 0);i||(i=Object.keys(r)[0]);const s=(dB(r)&&r[i.toString()]||i).toString();this.state.text=null!==(n=null===(t=(e=this.control).textTemplate)||void 0===t?void 0:t.call(e,this.jodit,s))&&void 0!==n?n:s}}};UI=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([hS],UI);var RI=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};let zI=class extends pN{className(){return"ToolbarCollection"}getRole(){return"toolbar"}get firstButton(){const[e]=this.buttons;return e||null}makeButton(e,t=null){return MN(this.j,e,t)}makeSelect(e,t=null){return function(e,t,n=null){return new(pS("ToolbarSelect"))(e,t,n)}(this.j,e,t)}shouldBeActive(e){}shouldBeDisabled(e){}getTarget(e){return e.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar",this))}update(){this.__immediateUpdate()}setDirection(e){this.container.style.direction=e,this.container.setAttribute("dir",e)}constructor(e){super(e),this.__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur"}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(e){throw NB("The method is not implemented for this class.")}build(e,t=null){const n=this.j.e.fire("beforeToolbarBuild",e);return n&&(e=n),super.build(e,t),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}};RI([kE(":afterInit"),KC],zI.prototype,"__immediateUpdate",null),RI([AE(e=>e.j.defaultTimeout,!0)],zI.prototype,"update",null),RI([fE("ready")],zI.prototype,"__initEvents",null),zI=RI([hS],zI);let QI=class extends zI{className(){return"ToolbarEditorCollection"}shouldBeDisabled(e){const t=super.shouldBeDisabled(e);if(void 0!==t)return t;const n=void 0===e.control.mode?vC:e.control.mode;return!(n===wC||n===this.j.getRealMode())}shouldBeActive(e){const t=super.shouldBeActive(e);if(void 0!==t)return t;const n=this.j.selection?this.j.s.current():null;if(!n)return!1;let r;if(e.control.tags){const t=e.control.tags;if(r=n,qB.up(r,e=>{if(e&&-1!==t.indexOf(e.nodeName.toLowerCase()))return!0},this.j.editor))return!0}if(e.control.css){const t=e.control.css;if(r=n,qB.up(r,e=>{if(e&&!qB.isText(e)&&!qB.isComment(e))return this.checkActiveStatus(t,e)},this.j.editor))return!0}return!1}getTarget(e){return e.target||this.j.s.current()||null}constructor(e){super(e),this.checkActiveStatus=(e,t)=>{let n=0,r=0;return Object.keys(e).forEach(o=>{const i=e[o];VC(i)?i(this.j,wB(t,o).toString())&&(n+=1):-1!==i.indexOf(wB(t,o).toString())&&(n+=1),r+=1}),r===n},this.prependInvisibleInput(this.container)}prependInvisibleInput(e){const t=this.j.create.element("input",{name:"jodit-toolbar-focus-helper_"+this.j.id,tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});qB.appendChildFirst(e,t)}showInline(e){this.jodit.e.fire("showInlineToolbar",e)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}};function HI(e){const t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),o=new Uint8Array(r);for(let e=0;e<t.length;e+=1)o[e]=t.charCodeAt(e);return new Blob([o.buffer],{type:n})}QI=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([hS],QI);const qI=new WeakMap;function VI(e,t){const n=function(e,t){if(VC(e.o.buildData))return e.o.buildData.call(e,t);const n=e.ow.FormData;if(void 0!==n){if(t instanceof n)return t;if(YC(t))return t;const e=new n,r=t;return Object.keys(r).forEach(t=>{e.append(t,r[t])}),e}return t}(e,t),r=t=>{e.j.progressbar.show().progress(t),t>=100&&e.j.progressbar.hide()};let o=(t,n)=>{const r=new CE({xhr:()=>{const t=new XMLHttpRequest;return void 0!==e.j.ow.FormData&&t.upload?(n(10),t.upload.addEventListener("progress",e=>{if(e.lengthComputable){let t=e.loaded/e.total;t*=100,n(t)}},!1)):n(100),t},method:e.o.method||"POST",data:t,url:VC(e.o.url)?e.o.url(t):e.o.url,headers:e.o.headers,queryBuild:e.o.queryBuild,contentType:e.o.contentType.call(e,t),withCredentials:e.o.withCredentials||!1});let o=qI.get(e);return o||(o=new Set,qI.set(e,o)),o.add(r),e.j.e.one("beforeDestruct",r.destruct),r.send().then(e=>e.json()).catch(e=>({success:!1,data:{messages:[e]}})).finally(()=>{r.destruct(),null==o||o.delete(r)})};return VC(e.o.customUploadFunction)&&(o=e.o.customUploadFunction),TB(n)?n.then(e=>o(e,r)).catch(t=>{e.o.error.call(e,t)}):o(n,r)}function KI(e,t,n,r,o){if(!t)return Promise.reject(NB("Need files"));const{o:i}=e;let s=nB(t);if(!s.length)return Promise.reject(NB("Need files"));if(VC(i.beforeUpload)&&!1===i.beforeUpload.call(e,s)){const t=NB("Upload canceled");return(r||i.defaultHandlerError).call(e,t),Promise.reject(t)}const a=[];if(i.insertImageAsBase64URI&&function(e,t,n,r,o,i){let s,a;for(a=0;a<e.length;a+=1)if(s=e[a],s&&s.type){const l=s.type.match(/\/([a-z0-9]+)/i),c=l[1]?l[1].toLowerCase():"";if(!t.includes(c))continue;const u=new FileReader;n.push(r.j.async.promise((e,t)=>{u.onerror=t,u.onloadend=()=>{const t={baseurl:"",files:[u.result],isImages:[!0]};(VC(o)?o:i).call(r,t),e(t)},u.readAsDataURL(s)})),e[a]=null}}(s,i.imagesExtensions,a,e,n,i.defaultHandlerSuccess),s=s.filter(e=>e),s.length){const t=new FormData;let l;t.append(i.pathVariableName,e.path),t.append("source",e.source);for(let n=0;n<s.length;n+=1)if(l=s[n],l){const r=/\.\w+$/.test(l.name),o=l.type.match(/\/([a-z0-9]+)/i),a=o&&o[1]?o[1].toLowerCase():"";let c=s[n].name||Math.random().toString().replace(".","");if(!r&&a){let e=a;["jpeg","jpg"].includes(e)&&(e="jpeg|jpg"),new RegExp(".("+e+")$","i").test(c)||(c+="."+a)}const[u,d,A]=i.processFileName.call(e,i.filesVariableName(n),s[n],c);t.append(u,d,A)}o&&o(t),i.data&&dB(i.data)&&Object.keys(i.data).forEach(e=>{t.append(e,i.data[e])}),i.prepareData.call(e,t),a.push(VI(e,t).then(t=>i.isSuccess.call(e,t)?((VC(n)?n:i.defaultHandlerSuccess).call(e,i.process.call(e,t)),t):((VC(r)?r:i.defaultHandlerError).call(e,NB(i.getMessage.call(e,t))),t)).then(()=>{e.j.events&&e.j.e.fire("filesWereUploaded")}))}return Promise.all(a)}function WI(e){return Boolean(e&&e.files&&e.files.length>0)}function GI(e){return Boolean(e&&e.items&&e.items.length>0)}dj.prototype.enableDragAndDropFileToEditor=!0,dj.prototype.uploader={url:"",insertImageAsBase64URI:!1,showTabInFileSelector:!0,imagesExtensions:["jpg","jpeg","png","gif","webp","bmp","svg","tiff","avif"],headers:null,data:null,filesVariableName:e=>`files[${e}]`,withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData:e=>e,isSuccess:e=>e.success,getMessage:e=>void 0!==e.data.messages&&$C(e.data.messages)?e.data.messages.join(" "):"",processFileName:(e,t,n)=>[e,t,n],process:e=>e.data,error(e){this.j.message.error(e.message,4e3)},getDisplayName:(e,t)=>e+t,defaultHandlerSuccess(e){const t=this.j||this;tS(t)&&e.files&&e.files.length&&e.files.forEach((n,r)=>{const[o,i]=e.isImages&&e.isImages[r]?["img","src"]:["a","href"],s=t.createInside.element(o);s.setAttribute(i,e.baseurl+n),"a"===o&&(s.textContent=t.o.uploader.getDisplayName.call(this,e.baseurl,n)),"img"===o?t.s.insertImage(s,null,t.o.imageDefaultWidth):t.s.insertNode(s)})},defaultHandlerError(e){this.j.message.error(e.message)},contentType(e){return(void 0===this.ow.FormData||"string"==typeof e)&&"application/x-www-form-urlencoded; charset=UTF-8"}};class $I extends dE{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(e){return this.path=e,this}setSource(e){return this.source=e,this}bind(e,t,n){const r=()=>{e.classList.remove("jodit_drag_hover")},o=this,i=e=>{let i,s,a;const l=e.clipboardData,c=e=>{s&&(e.append("extension",a),e.append("mimetype",s.type))};if(!xC&&WI(l))return KI(o,l.files,t,n).finally(r),!1;if(xC&&!F_)return function(e,t,n,r,o){if(t&&(!t.types.length||t.types[0]!==kC)){const t=e.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});qS(e.j,e.constructor).appendChild(t);const i=tS(e.j)?e.j.s.save():null,s=()=>i&&tS(e.j)&&e.j.s.restore();t.focus(),e.j.async.setTimeout(()=>{const i=t.firstChild;if(qB.safeRemove(t),i&&i.hasAttribute("src")){const t=kB(i,"src")||"";s(),KI(e,[HI(t)],n,r).finally(o)}},e.j.defaultTimeout)}}(o,l,t,n,r);if(GI(l)){const{items:u}=l;for(i=0;i<u.length;i+=1)if("file"===u[i].kind&&"image/png"===u[i].type){if(s=u[i].getAsFile(),s){const e=s.type.match(/\/([a-z0-9]+)/i);a=e[1]?e[1].toLowerCase():"",KI(o,[s],t,n,c).finally(r)}e.preventDefault();break}}};o.j&&o.j.editor!==e?o.j.e.on(e,"paste",i):o.j.e.on("beforePaste",i),this.attachEvents(e,t,n,r)}attachEvents(e,t,n,r){const o=this;o.j.e.on(e,"dragend dragover dragenter dragleave drop",e=>{e.preventDefault()}).on(e,"dragover",t=>{(WI(t.dataTransfer)||GI(t.dataTransfer))&&(e.classList.add("jodit_drag_hover"),t.preventDefault())}).on(e,"dragend dragleave",t=>{e.classList.remove("jodit_drag_hover"),WI(t.dataTransfer)&&t.preventDefault()}).on(e,"drop",i=>{e.classList.remove("jodit_drag_hover"),WI(i.dataTransfer)&&(i.preventDefault(),i.stopImmediatePropagation(),KI(o,i.dataTransfer.files,t,n).finally(r))});const i=e.querySelector("input[type=file]");i&&o.j.e.on(i,"change",()=>{KI(o,i.files,t,n).then(()=>{i.value="",/safari/i.test(navigator.userAgent)||(i.type="",i.type="file")}).finally(r)})}uploadRemoteImage(e,t,n){const r=this,{o}=r,i=VC(n)?n:o.defaultHandlerError;VI(r,{action:"fileUploadRemote",url:e}).then(e=>{o.isSuccess.call(r,e)?(VC(t)?t:o.defaultHandlerSuccess).call(r,o.process.call(r,e)):i.call(r,NB(o.getMessage.call(r,e)))}).catch(e=>i.call(r,e))}upload(e){return this.async.promise((t,n)=>{KI(this,e,t,n)})}constructor(e,t){super(e),this.path="",this.source="default",this.options=gj(t||{},gj(dj.defaultOptions.uploader,tS(e)?e.o.uploader:{}))}destruct(){this.setStatus(WC.beforeDestruct);const e=qI.get(this);e&&(e.forEach(e=>{try{e.destruct()}catch(e){}}),e.clear()),super.destruct()}}const YI="initial",ZI="replace",XI="commitStyle";function JI(e,t,n){const r=n.s.createRange(),o=rS(t.previousSibling)?t.previousSibling:t;r.setStartBefore(e),r.setEndBefore(o),eF(e,r,!0);const i=rS(t.nextSibling)?t.nextSibling:t;r.setStartAfter(i),r.setEndAfter(e),eF(e,r,!1)}function eF(e,t,n){const r=t.extractContents();r.textContent&&iB(r.textContent).length||!r.firstChild||qB.unwrap(r.firstChild),e.parentNode&&LB(n?qB.before:qB.after,e,r)}class tF{setState(e){cB(!this.__previewsStates.has(e),"Circled states"),this.__previewsStates.add(e),this.__state=e}getState(){return this.__state}disableSilent(){this.silent=!1}constructor(e,t){this.transitions=t,this.silent=!0,this.__previewsStates=new Set,this.setState(e)}dispatch(e,t){const n=this.transitions[this.getState()][e];if(n){const e=n.call(this,t);return cB(e&&e!==t,"Action should return new value"),cB(YC(e.next),"Value should contain the next state"),cB(e.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(e.next),T_||this.silent||console.log(`State: ${this.getState()}`),e}throw new Error(`invalid action: ${this.getState()}.${e.toString()}`)}}function nF(e){return Boolean(e&&!qB.isEmptyTextNode(e)&&!qB.isTemporary(e)&&!rS(e))}function rF(e,t){return Boolean(!qB.isTag(e,"font")&&qB.isHTMLElement(e)&&Object.keys(t).every(n=>{const r=wB(e,n,!0);return""===r&&(""===t[n]||null==t[n])||!XC(r)&&""!==r&&!XC(t[n])&&vB(n,t[n]).toString().toLowerCase()===r.toString().toLowerCase()}))}if(G_){const e=G_.createElement("div");e.style.color="red",cB(rF(e,{color:"red"}),"Style test"),cB(rF(e,{fontSize:null}),"Style test"),cB(rF(e,{fontSize:""}),"Style test")}function oF(e,t){return Boolean(!qB.isTag(e,"font")&&qB.isHTMLElement(e)&&Object.keys(t).every(t=>""!==wB(e,t,!0)))}if(G_){const e=G_.createElement("div");e.style.color="red",cB(oF(e,{color:"red"}),"Style test"),cB(!oF(e,{font:"Arial",color:"red"}),"Style test"),cB(!oF(e,{border:"1px solid #ccc"}),"Style test")}function iF(e,t,n,r=!0){var o;if(!t||!nF(t))return!1;const{element:i,elementIsDefault:s,options:a}=e;if(qB.isList(t)&&e.elementIsList)return!0;const l=qB.isTag(t,i);return!(!l||s&&n)||(!(!Boolean((null===(o=a.attributes)||void 0===o?void 0:o.style)&&(r?rF(t,a.attributes.style):oF(t,a.attributes.style)))||e.elementIsList)||!l&&!n&&s&&qB.isInlineBlock(t))}function sF(e,t,n){return qB.closest(t,t=>iF(e,t,!0,!1),n)}function aF(e,t){var n,r;const{element:o,options:i}=e;if(!t||!nF(t))return!1;const s=t.nodeName.toLowerCase()===o,a=Boolean((null===(n=i.attributes)||void 0===n?void 0:n.style)&&oF(t,null===(r=i.attributes)||void 0===r?void 0:r.style));return s&&a}function lF(e,t,n){const{parentNode:r}=t;return r===n||!qB.isHTMLElement(r)||qB.next(t,nF,r)||qB.prev(t,nF,r)?null:e.isElementCommit&&e.elementIsBlock&&!qB.isBlock(r)?lF(e,r,n):!iF(e,r,!1)||qB.isBlock(r)&&!e.elementIsBlock?e.isElementCommit&&!qB.isBlock(r)?lF(e,r,n):null:r}const cF="toggleAttributes";function uF(e,t,n,r,o=!1){if(!o&&e.isApplied(t,cF))return r;!o&&e.setApplied(t,cF);const{attributes:i}=e.options;return i&&nE(i)>0&&Object.keys(i).forEach(s=>{const a=i[s];switch(s){case"style":r=function(e,t,n,r,o,i){return cB(dB(n)&&nE(n),"Style must be an object"),Object.keys(n).forEach(s=>{const a=r.style.getPropertyValue(AB(s)),l=n[s];if(""!==a||null!=l){if(function(e,t,n){const r=function(e){var t;if(void 0!==BB(e,"shadowRoot"))return BB(e,"shadowRoot");const n=qS(e),r=G_.createElement("iframe");wB(r,{width:0,height:0,position:"absolute",border:0}),r.src="about:blank",n.appendChild(r);const o=null===(t=r.contentWindow)||void 0===t?void 0:t.document,i=o?o.body:e.od.body;return BB(e,"shadowRoot",i),i}(e),o=e.create.element("div");o.style.color=wB(e.editor,"color");const i=e.create.element(t.tagName.toLowerCase());i.style.cssText=t.style.cssText,o.appendChild(i),r.appendChild(o);const s=wB(i,n);return qB.safeRemove(o),s}(t,r,s)===vB(s,l)){if(!a)return;return!o&&wB(r,s,null),void(i=dF(e,r,i="unset"))}i="change",o||(wB(r,s,l),i=dF(e,r,i))}}),i}(e,n,a,t,o,r);break;case"className":case"class":r=function(e,t,n,r,o){cB(YC(t),"Class name must be a string");const i=e.e.fire.bind(e.e,`${XI}AfterToggleAttribute`);return n.classList.contains(t.toString())?(r="unset",o||(n.classList.remove(t),0===n.classList.length&&(kB(n,"class",null),i(r,n,"class",null)))):(r="change",o||(n.classList.add(t),i(r,n,"class",t))),r}(n,a,t,r,o);break;default:r=function(e,t,n,r,o,i){cB(YC(t)||oS(t)||pB(t)||null==t,"Attribute value must be a string or number or boolean or null");const s=e.e.fire.bind(e.e,`${XI}AfterToggleAttribute`);return kB(n,r)===(null==t?t:String(t))?(!o&&kB(n,r,null),i="unset",!o&&s(i,n,r,t),i):(i="change",o||(kB(n,r,t),s(i,n,r,t)),i)}(n,a,t,s,o,r)}}),r}function dF(e,t,n){return kB(t,"style")||(kB(t,"style",null),t.tagName.toLowerCase()===e.defaultTag&&(qB.unwrap(t),n="unwrap")),n}function AF(e,t,n){const r=n.e.fire(`${XI}BeforeWrapList`,ZI,t,e),o=null!=r?r:qB.replace(t,"li",n.createInside),i=o.previousElementSibling,s=o.nextElementSibling;let a=qB.isTag(i,e.element)?i:null;var l,c,u,d;return null!=a||(a=qB.isTag(s,e.element)?s:null),qB.isList(a)&&(l=a,!nE(c=e.options.attributes)||(cB(c,"Attrs must be a non-empty object"),Object.keys(c).every(e=>"class"===e||"className"===e?l.classList.contains(c[e]):"style"===e?rF(l,c[e]):kB(l,e)===c[e])))||(a=n.createInside.element(e.element),uF(e,a,n,YI),qB.before(o,a)),i===a?qB.append(a,o):qB.prepend(a,o),qB.isTag(a.nextElementSibling,e.element)&&(u=a,d=a.nextElementSibling,u.attributes.length===d.attributes.length&&Array.from(u.attributes).every(e=>d.hasAttribute(e.name)&&d.getAttribute(e.name)===e.value))&&(qB.append(a,Array.from(a.nextElementSibling.childNodes)),qB.safeRemove(a.nextElementSibling)),n.e.fire(`${XI}AfterWrapList`,"wrap",a,e),a}function hF(e,t,n,r){if(!t)return r;const o=t.parentElement;if(!o)return r;const i=n.e.fire(`${XI}BeforeToggleList`,r,e,o);if(void 0!==i)return i;const s=n.e.fire.bind(n.e,`${XI}AfterToggleList`);if("unwrap"!==r){const i="change"===uF(e,t.parentElement,n,YI,!0);if(r===ZI||i||o.tagName.toLowerCase()!==e.element){const r=AF(e,pF(ZI,o,t,n,e),n);return s(ZI,r,e),ZI}}return s("unwrap",pF("unwrap",o,t,n,e),e),"unwrap"}function pF(e,t,n,r,o){const i=r.e.fire(`${XI}BeforeUnwrapList`,e,t,o);return i?(cB(qB.isHTMLElement(i),`${XI}BeforeUnwrapList hook must return HTMLElement`),i):(JI(t,n,r),cB(qB.isHTMLElement(n.parentElement),"Element should be inside the list"),qB.unwrap(n.parentElement),e===ZI?n:qB.replace(n,"br"!==r.o.enter.toLowerCase()?r.o.enter:r.createInside.fragment(),r.createInside))}const fF=new Set(["td","th","tr","tbody","table","li","ul","ol"]),mF="START",gF="ELEMENT",yF="UNWRAP",vF="UNWRAP_CHILDREN",bF="CHANGE",wF="REPLACE_DEFAULT",xF="LIST",kF="TOGGLE_LIST",_F="WRAP",CF="EXTRACT",BF="END",SF={[mF]:{exec(e){const{element:t,jodit:n,style:r,mode:o,collapsed:i}=e;if(s=t,a=n.editor,Boolean(qB.closest(s,["style","script"],a))||!i&&qB.isEmptyContent(t))return{...e,next:BF};var s,a;const l=lF(r,t,n.editor)||function(e,t){let{firstChild:n}=t;for(;n&&!nF(n);)if(n=n.nextSibling,!n)return null;return n&&!qB.next(n,nF,t)&&iF(e,n,!1)?n:null}(r,t);if(l)return{...e,next:gF,element:l};const c=sF(r,t,n.editor);return r.elementIsList&&qB.isList(c)?{...e,next:xF}:c?{...e,next:CF}:{...e,next:"unwrap"!==o?vF:BF}}},[xF]:{exec(e){const{element:t,jodit:n,mode:r}=e;if(r!==YI&&"unwrap"!==r&&r!==ZI)return{...e,next:BF};const o=qB.closest(t,"li",n.editor);return o&&qB.closest(t,Z_,n.editor)?{...e,element:o,next:kF}:{...e,next:BF}}},[kF]:{exec:e=>({...e,mode:hF(e.style,e.element,e.jodit,e.mode),next:BF})},[CF]:{exec(e){var t;const{element:n,jodit:r,style:o}=e,i=sF(o,n,r.editor);return cB(i,"This place should have an element"),!o.elementIsBlock&&(null===(t=o.options.attributes)||void 0===t?void 0:t.style)&&qB.isBlock(i)?{...e,next:_F}:(o.elementIsBlock||JI(i,n,r),{...e,element:i,next:gF})}},[vF]:{exec(e){const{element:t,style:n}=e;return function(e,t){var n;const r=[],o=[];let i;const s=null===(n=e.options.attributes)||void 0===n?void 0:n.style;if(t.firstChild){const n=qB.eachGen(t);let a=n.next();for(;!a.done;){const t=a.value;!iF(e,t,!0)||s&&!oF(t,s)?s&&aF(e,t)?(void 0===i&&(i=!1),o.push(()=>{wB(t,Object.keys(s).reduce((e,t)=>(e[t]=null,e),{})),kB(t,"style")||kB(t,"style",null),kB(t,"style")||t.nodeName.toLowerCase()!==e.element||r.push(t)})):qB.isEmptyTextNode(t)||void 0===i&&(i=!1):(void 0===i&&(i=!0),r.push(t)),a=n.next()}}return o.forEach(e=>e()),r.forEach(qB.unwrap),Boolean(i)}(n,t)?{...e,mode:"unwrap",next:BF}:{...e,next:_F}}},[_F]:{exec(e){const{element:t,jodit:n,style:r}=e,o=function(e,t,n){const r=function(e,t,n){return e.elementIsBlock?qB.up(t,e=>qB.isBlock(e)&&!qB.isTag(e,fF),n.editor)||function(e,t,n){const r=n.editor,o=n.createInside,i=(e,t="previousSibling")=>{let o=e,i=e;for(;i&&!rS(i)&&!qB.isTag(i,n.o.enter)&&(o=i,i=i[t]?i[t]:i.parentNode&&!qB.isBlock(i.parentNode)&&i.parentNode!==r?i.parentNode:null,!qB.isBlock(i)););return o},s=i(t),a=i(t,"nextSibling"),l=n.s.createRange();l.setStartBefore(s),l.setEndAfter(a);const c=l.extractContents(),u=o.element(e.element);return u.appendChild(c),qB.safeInsertNode(l,u),e.elementIsBlock&&qB.isEmpty(u)&&!qB.isTag(u.firstElementChild,"br")&&u.appendChild(o.element("br")),u}(e,t,n):(kB(t,"size",null),t)}(e,t,n);if(e.elementIsList)return AF(e,r,n);const o=qB.replace(r,e.element,n.createInside,!0);return e.elementIsBlock&&(wB(o,"fontSize",null),wB(o,"fontWeight",null),kB(o,"style")||kB(o,"style",null)),o}(r,t,n);return{...e,next:r.elementIsList?BF:bF,mode:"wrap",element:o}}},[gF]:{exec(e){const{style:t,element:n,jodit:r}=e;return uF(t,n,r,YI,!0)!==YI?{...e,next:bF}:qB.isTag(n,t.element)?{...e,next:yF}:{...e,next:BF}}},[bF]:{exec(e){const{style:t,element:n,jodit:r,mode:o}=e,i=uF(t,n,r,e.mode);return"wrap"!==o&&"unset"===i&&!n.attributes.length&&qB.isTag(n,t.element)?{...e,next:yF}:{...e,mode:i,next:BF}}},[yF]:{exec:e=>e.element.attributes.length&&qB.isTag(e.element,e.style.element)?{...e,next:wF}:(qB.unwrap(e.element),{...e,mode:"unwrap",next:BF})},[wF]:{exec:e=>(qB.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),{...e,mode:ZI,next:BF})},[BF]:{exec:e=>e}};class jF{isApplied(e,t){const n=this.__applyMap.get(e);return!!n&&Boolean(n[t])}setApplied(e,t){var n;const r=null!==(n=this.__applyMap.get(e))&&void 0!==n?n:{};r[t]=!0,this.__applyMap.set(e,r)}get elementIsList(){return Boolean(this.options.element&&Z_.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return Boolean(this.options.element&&$_.test(this.options.element))}get isElementCommit(){return Boolean(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}constructor(e){this.options=e,this.__applyMap=new WeakMap}apply(e){const{hooks:t}=this.options,n=t?Object.keys(t):[];try{n.forEach(n=>{e.e.on(bB(XI+"_"+n),t[n])}),function(e,t){var n;const{s:r,editor:o}=e;null===(n=o.firstChild)||void 0===n||n.normalize();const i=r.fakes(),s=e.s.wrapInTagGen(i);let a=s.next();if(a.done)return;let l={collapsed:r.isCollapsed(),mode:YI,element:a.value,next:mF,jodit:e,style:t};for(;a&&!a.done;){const e=new tF(mF,SF);for(l.element=a.value;e.getState()!==BF;)l=e.dispatch("exec",l);a=s.next()}r.restoreFakes(i)}(e,this)}finally{n.forEach(n=>{e.e.off(bB(XI+"_"+n),t[n])}),this.__applyMap=new WeakMap}e.synchronizeValues(),e.e.fire("afterCommitStyle",this)}}function EF(e,t,n){let r=qB.findSibling(t,n),o=qB.findSibling(t,!n);for(;qB.isElement(r)&&!qB.isTag(r,J_)&&qB.isContentEditable(r,e.editor)&&(!o||!qB.closest(t,qB.isElement,e.editor));)n||!r.firstChild?r.appendChild(t):qB.before(r.firstChild,t),r=qB.sibling(t,n),o=qB.sibling(t,!n)}var NF=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class IF{constructor(e){this.jodit=e,e.e.on("removeMarkers",()=>{this.removeMarkers()})}get j(){return this.jodit}errorNode(e){if(!qB.isNode(e))throw NB("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&VC(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){const e=this.sel;return e&&e.rangeCount?e.getRangeAt(0):this.createRange()}get isInsideArea(){const{sel:e}=this,t=(null==e?void 0:e.rangeCount)?e.getRangeAt(0):null;return!(!t||!qB.isOrContains(this.area,t.startContainer))}createRange(e=!1){const t=this.doc.createRange();return e&&this.selectRange(t),t}remove(){const e=this.sel,t=this.current();if(e&&t)for(let t=0;t<e.rangeCount;t+=1)e.getRangeAt(t).deleteContents(),e.getRangeAt(t).collapse(!0)}clear(){var e,t;(null===(e=this.sel)||void 0===e?void 0:e.rangeCount)&&(null===(t=this.sel)||void 0===t||t.removeAllRanges())}removeNode(e){if(!qB.isOrContains(this.j.editor,e,!0))throw NB("Selection.removeNode can remove only editor's children");qB.safeRemove(e),this.j.e.fire("afterRemoveNode",e)}insertCursorAtPoint(e,t){this.removeMarkers();try{const n=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){const r=this.doc.caretPositionFromPoint(e,t);if(r)return void n.setStart(r.offsetNode,r.offset)}if(this.doc.caretRangeFromPoint){const r=this.doc.caretRangeFromPoint(e,t);cB(r,"Incorrect caretRangeFromPoint behaviour"),n.setStart(r.startContainer,r.startOffset)}})(),n.collapse(!0),this.selectRange(n),!0}catch(e){}return!1}get hasMarkers(){return Boolean(this.markers.length)}get markers(){return $S("span[data-"+BC+"]",this.area)}removeMarkers(){qB.safeRemove(...this.markers)}marker(e=!1,t){let n=null;t&&(n=t.cloneRange(),n.collapse(e));const r=this.j.createInside.span();return r.id=BC+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),r.style.lineHeight="0",r.style.display="none",qB.markTemporary(r),kB(r,"data-"+BC,e?"start":"end"),r.appendChild(this.j.createInside.text(U_)),n&&qB.isOrContains(this.area,e?n.startContainer:n.endContainer)&&n.insertNode(r),r}restore(){let e=!1;const t=e=>`span[data-${BC}=${e?"start":"end"}]`,n=this.area.querySelector(t(!0)),r=this.area.querySelector(t(!1));if(n){if(e=this.createRange(),r)e.setStartAfter(n),qB.safeRemove(n),e.setEndBefore(r),qB.safeRemove(r);else{const t=n.previousSibling;qB.isText(t)?e.setStart(t,t.nodeValue?t.nodeValue.length:0):e.setStartBefore(n),qB.safeRemove(n),e.collapse(!0)}e&&this.selectRange(e)}}fakes(){const e=this.sel;if(!e||!e.rangeCount)return[];const t=e.getRangeAt(0);cB(t,"Range is null");const n=t.cloneRange();n.collapse(!0);const r=this.j.createInside.fake();qB.safeInsertNode(n,r),t.setStartBefore(r);const o=[r];if(!t.collapsed){const e=t.cloneRange();e.collapse(!1);const n=this.j.createInside.fake();qB.safeInsertNode(e,n),t.setEndAfter(n),o.push(n)}return this.selectRange(t),o}restoreFakes(e){var t,n,r,o;const i=e.filter(e=>e.isConnected);if(!i.length)return;const[s,a]=i,l=this.createRange();l.setStartAfter(s),a&&l.setEndBefore(a),this.selectRange(l),(null===(t=s.parentNode)||void 0===t?void 0:t.firstChild)!==(null===(n=s.parentNode)||void 0===n?void 0:n.lastChild)&&qB.safeRemove(s),(null===(r=null==a?void 0:a.parentNode)||void 0===r?void 0:r.firstChild)!==(null===(o=null==a?void 0:a.parentNode)||void 0===o?void 0:o.lastChild)&&qB.safeRemove(a)}save(e=!1){if(this.hasMarkers)return[];const t=this.sel;if(!t||!t.rangeCount)return[];const n=[],r=t.rangeCount,o=[];for(let e=0;e<r;e+=1)if(o[e]=t.getRangeAt(e),o[e].collapsed){const t=this.marker(!0,o[e]);n[e]={startId:t.id,collapsed:!0,startMarker:t.outerHTML}}else{const t=this.marker(!0,o[e]),r=this.marker(!1,o[e]);n[e]={startId:t.id,endId:r.id,collapsed:!1,startMarker:t.outerHTML,endMarker:r.outerHTML}}if(!e){t.removeAllRanges();for(let e=r-1;e>=0;--e){const r=this.doc.getElementById(n[e].startId);if(r){if(n[e].collapsed)o[e].setStartAfter(r),o[e].collapse(!0);else if(o[e].setStartBefore(r),n[e].endId){const t=this.doc.getElementById(n[e].endId);t&&o[e].setEndAfter(t)}try{t.addRange(o[e].cloneRange())}catch(e){}}}}return n}focus(e={preventScroll:!0}){var t,n;if(!this.isFocused()){const r=eE(this.j.container),o=null==r?void 0:r.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(e),this.win.focus(),this.area.focus(e),o&&(null==r?void 0:r.scrollTo)&&r.scrollTo(0,o);const i=this.sel,s=(null==i?void 0:i.rangeCount)?null==i?void 0:i.getRangeAt(0):null;if(!s||!qB.isOrContains(this.area,s.startContainer)){const e=this.createRange();e.setStart(this.area,0),e.collapse(!0),this.selectRange(e,!1)}return this.j.editorIsActive||null===(n=null===(t=this.j)||void 0===t?void 0:t.events)||void 0===n||n.fire("focus"),!0}return!1}isCollapsed(){const e=this.sel;for(let t=0;e&&t<e.rangeCount;t+=1)if(!e.getRangeAt(t).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(e=!0){if(this.j.getRealMode()!==vC)return null;const t=this.sel;if(!t||0===t.rangeCount)return null;const n=t.getRangeAt(0);let r=n.startContainer,o=!1;const i=e=>o?e.lastChild:e.firstChild;if(qB.isTag(r,"br")&&t.isCollapsed)return r;if(!qB.isText(r)){const s=function(e,t,n,r,o,i){if((e=t.startContainer.childNodes[t.startOffset])||(e=t.startContainer.childNodes[t.startOffset-1],n=!0),e&&r&&!qB.isText(e))if(!n&&qB.isText(e.previousSibling))e=e.previousSibling;else if(o){let t=i(e);for(;t;){if(t&&qB.isText(t)){e=t;break}t=i(t)}}if(e&&!r&&!qB.isText(e)){let t=e,n=e;do{t=t.firstChild,n=n.lastChild}while(t&&n&&!qB.isText(t));t===n&&t&&qB.isText(t)&&(e=t)}return{node:e,rightMode:n}}(r,n,o,t.isCollapsed,e,i);r=s.node,o=s.rightMode}return r&&qB.isOrContains(this.area,r)?r:null}insertNode(e,t=!0,n=!0){this.errorNode(e);const r=qB.isFragment(e)?e.lastChild:e;this.j.e.fire("safeHTML",e),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());const o=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",e),o&&o.rangeCount){const t=o.getRangeAt(0),{firstChild:n}=e;qB.isOrContains(this.area,t.commonAncestorContainer)?qB.safeInsertNode(t,e):this.area.appendChild(e),[()=>null==n?void 0:n.previousSibling,()=>null==n?void 0:n.previousSibling,()=>{var e;return null===(e=null==n?void 0:n.previousSibling)||void 0===e?void 0:e.lastChild}].forEach(e=>{const t=e();t&&qB.isEmptyTextNode(t)&&qB.safeRemove(t)})}else this.area.appendChild(e);const n=e=>{if(qB.isBlock(e)){const t=e.lastChild;if(t)return n(t)}this.setCursorAfter(e)};t&&(qB.isFragment(e)?r&&n(r):n(e)),this.j.o.scrollToPastedContent&&Nj(null!=r?r:e,this.j.editor,this.doc)}),n&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",qB.isFragment(e)?r:e)}insertHTML(e,t=!0){if(""===e)return;const n=this.j.createInside.div(),r=this.j.createInside.fragment();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),qB.isNode(e)?n.appendChild(e):n.innerHTML=e.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",n.innerHTML))&&n.lastChild){for(;n.firstChild;)r.appendChild(n.firstChild);this.insertNode(r,t,!1),this.j.__imdSynchronizeValues()}}insertImage(e,t=null,n=null){const r=YC(e)?this.j.createInside.element("img"):e;if(YC(e)&&r.setAttribute("src",e),null!=n){let e=n.toString();e&&"auto"!==e&&String(e).indexOf("px")<0&&String(e).indexOf("%")<0&&(e+="px"),kB(r,"width",e)}t&&"object"==typeof t&&wB(r,t);const o=()=>{(r.naturalHeight<r.offsetHeight||r.naturalWidth<r.offsetWidth)&&(r.style.width="",r.style.height=""),r.removeEventListener("load",o)};this.j.e.on(r,"load",o),r.complete&&o(),this.insertNode(r),this.j.e.fire("afterInsertImage",r)}eachSelection(e){var t;const n=this.sel;if(!n||!n.rangeCount)return;const r=n.getRangeAt(0);let o=r.commonAncestorContainer;qB.isHTMLElement(o)||(o=o.parentElement);const i=[],s=r.startOffset,a=o.childNodes.length,l=s<a?s:a-1;let c=r.startContainer===this.area?o.childNodes[l]:r.startContainer,u=r.endContainer===this.area?o.childNodes[r.endOffset-1]:r.endContainer;qB.isText(c)&&c===r.startContainer&&r.startOffset===(null===(t=c.nodeValue)||void 0===t?void 0:t.length)&&c.nextSibling&&(c=c.nextSibling),qB.isText(u)&&u===r.endContainer&&0===r.endOffset&&u.previousSibling&&(u=u.previousSibling);const d=e=>{!e||e===o||qB.isEmptyTextNode(e)||rS(e)||i.push(e)};d(c),c!==u&&qB.isOrContains(o,c,!0)&&qB.find(c,e=>(d(e),e===u||e&&e.contains&&e.contains(u)),o,!0,!1);const A=t=>{if(qB.isOrContains(this.j.editor,t,!0)){if(t.nodeName.match(/^(UL|OL)$/))return nB(t.childNodes).forEach(A);if(qB.isTag(t,"li"))if(t.firstChild)t=t.firstChild;else{const e=this.j.createInside.text(U_);t.appendChild(e),t=e}e(t)}};0===i.length&&(qB.isEmptyTextNode(c)&&i.push(c),(null==c?void 0:c.firstChild)&&i.push(c.firstChild)),i.forEach(A)}cursorInTheEdge(e,t,n=null){const r=!e,o=this.sel,i=(null==o?void 0:o.rangeCount)?o.getRangeAt(0):null;if(null!=n||(n=this.current(!1)),!i||!n||!qB.isOrContains(t,n,!0))return null;const s=e?i.startContainer:i.endContainer,a=e?i.startOffset:i.endOffset,l=e=>Boolean(e&&!qB.isTag(e,"br")&&!qB.isEmptyTextNode(e)&&!qB.isTemporary(e)&&!(qB.isElement(e)&&!0===this.j.e.fire("isInvisibleForCursor",e)));if(qB.isText(s)){if(function(e,t,n,r){var o;const i=(null===(o=e.nodeValue)||void 0===o?void 0:o.length)?e.nodeValue:"";if(r&&i.replace(Q_(),"").length>t)return!0;const s=H_().exec(i);return n&&(s&&s[0].length<t||!s&&t>0)}(s,a,e,r))return!1}else{const e=nB(s.childNodes);if(r){if(e.slice(a).some(l))return!1}else if(e.slice(0,a).some(l))return!1}let c=n;for(;c&&c!==t;){const t=qB.sibling(c,e);if(t){if(c=t,c&&l(c))return!1}else c=c.parentNode}return!0}cursorOnTheLeft(e,t){return this.cursorInTheEdge(!0,e,t)}cursorOnTheRight(e,t){return this.cursorInTheEdge(!1,e,t)}setCursorAfter(e){return this.setCursorNearWith(e,!1)}setCursorBefore(e){return this.setCursorNearWith(e,!0)}setCursorNearWith(e,t){var n,r;if(this.errorNode(e),!qB.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw NB("Node element must be in editor");const o=this.createRange();let i=null;return qB.isText(e)?t?o.setStart(e,0):o.setEnd(e,null!==(r=null===(n=e.nodeValue)||void 0===n?void 0:n.length)&&void 0!==r?r:0):(i=this.j.createInside.fake(),t?o.setStartBefore(e):o.setEndAfter(e),o.collapse(t),qB.safeInsertNode(o,i),o.selectNode(i)),o.collapse(t),this.selectRange(o),i}setCursorIn(e,t=!1){if(this.errorNode(e),!qB.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw NB("Node element must be in editor");const n=this.createRange();let r=e,o=e;do{if(qB.isText(r)||qB.isTag(r,J_))break;o=r,r=t?r.firstChild:r.lastChild}while(r);if(!r){const e=this.j.createInside.text(U_);qB.isTag(o,J_)?r=o:(o.appendChild(e),o=e)}const i=r||o;return qB.isTag(i,J_)?(t||qB.isTag(i,"br")?n.setStartBefore(i):n.setEndAfter(i),n.collapse(t)):(n.selectNodeContents(i),n.collapse(t)),this.selectRange(n),o}selectRange(e,t=!0){const n=this.sel;return t&&!this.isFocused()&&"focus"!==this.j.e.current&&this.focus(),n&&(n.removeAllRanges(),n.addRange(e)),this.j.e.fire("changeSelection"),this}select(e,t=!1){if(this.errorNode(e),!qB.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw NB("Node element must be in editor");const n=this.createRange();return n[t?"selectNodeContents":"selectNode"](e),this.selectRange(n)}get html(){const e=this.sel;if(e&&e.rangeCount>0){const t=e.getRangeAt(0).cloneContents(),n=this.j.createInside.div();return n.appendChild(t),n.innerHTML}return""}__wrapSelectionFragments(){const e=this.range;this.__splitSelectionBoundaries(e);let t=e.commonAncestorContainer;return qB.isText(t)&&(t=t.parentNode),t?this.__wrapSelectionRuns(this.__collectContainedNodes(t,e)):[]}__splitSelectionBoundaries(e){var t,n,r,o,i,s,a,l;let{startContainer:c,endContainer:u}=e,{startOffset:d,endOffset:A}=e;if(qB.isText(u)&&A>0&&A<(null!==(n=null===(t=u.nodeValue)||void 0===t?void 0:t.length)&&void 0!==n?n:0)&&(u.splitText(A),A=null!==(o=null===(r=u.nodeValue)||void 0===r?void 0:r.length)&&void 0!==o?o:A),qB.isText(c)&&d>0&&d<(null!==(s=null===(i=c.nodeValue)||void 0===i?void 0:i.length)&&void 0!==s?s:0)){const e=c.splitText(d);c===u&&(u=e,A=null!==(l=null===(a=e.nodeValue)||void 0===a?void 0:a.length)&&void 0!==l?l:0),c=e,d=0}e.setStart(c,d),e.setEnd(u,A),this.__normalizeRangeBoundary(e,!0),this.__normalizeRangeBoundary(e,!1)}__normalizeRangeBoundary(e,t){var n,r;const o=t?e.startContainer:e.endContainer;if(!qB.isText(o))return;const i=t?e.startOffset:e.endOffset,s=null!==(r=null===(n=o.nodeValue)||void 0===n?void 0:n.length)&&void 0!==r?r:0;0===i?t?e.setStartBefore(o):e.setEndBefore(o):i>=s&&(t?e.setStartAfter(o):e.setEndAfter(o))}__collectContainedNodes(e,t){const n=[];return nB(e.childNodes).forEach(e=>{this.__isFullyContained(t,e)?n.push(e):e.childNodes.length&&t.intersectsNode(e)&&n.push(...this.__collectContainedNodes(e,t))}),n}__isFullyContained(e,t){const n=this.createRange();return n.selectNode(t),e.compareBoundaryPoints(Range.START_TO_START,n)<=0&&e.compareBoundaryPoints(Range.END_TO_END,n)>=0}__wrapSelectionRuns(e){const t=[];let n=[];const r=()=>{n.length&&(t.push(this.__wrapRunInFont(n)),n=[])};return e.forEach(e=>{qB.isElement(e)&&this.__isOrContainsBlock(e)?(r(),t.push(...this.__wrapSelectionRuns(nB(e.childNodes)))):(n.length&&n[n.length-1].parentNode!==e.parentNode&&r(),n.push(e))}),r(),t}__isOrContainsBlock(e){return!!qB.isBlock(e)||nB(e.childNodes).some(e=>this.__isOrContainsBlock(e))}__wrapRunInFont(e){var t;const n=this.j.createInside.element("font"),[r]=e;return null===(t=r.parentNode)||void 0===t||t.insertBefore(n,r),e.forEach(e=>n.appendChild(e)),n}*wrapInTagGen(e){if(this.isCollapsed()){const t=this.jodit.createInside.element("font",U_);return this.insertNode(t,!1,!1),e&&e[0]&&t.appendChild(e[0]),yield t,void qB.unwrap(t)}const t=this.__wrapSelectionFragments();for(const e of t){const{firstChild:t,lastChild:n}=e;t&&t===n&&rS(t)||(t&&rS(t)&&qB.before(e,t),n&&rS(n)&&qB.after(e,n),yield e),qB.unwrap(e)}}wrapInTag(e){const t=[];for(const n of this.wrapInTagGen())try{if(n.firstChild&&n.firstChild===n.lastChild&&rS(n.firstChild))continue;VC(e)?e(n):t.push(qB.replace(n,e,this.j.createInside))}finally{const e=n.parentNode;e&&(qB.unwrap(n),qB.isEmpty(e)&&qB.unwrap(e))}return t}commitStyle(e){cB(nE(e)>0,"Need to pass at least one option"),new jF(e).apply(this.j)}splitSelection(e,t){if(!this.isCollapsed())return null;const n=this.createRange(),r=this.range;n.setStartBefore(e);const o=this.cursorOnTheRight(e,t),i=this.cursorOnTheLeft(e,t),s=this.j.createInside.element("br"),a=this.j.createInside.fake(),l=a.cloneNode();try{if(o||i){t?qB.before(t,s):qB.safeInsertNode(r,s);const e=(e,t)=>{let n=t(e);for(;n;){const e=t(n);if(!n||!qB.isTag(n,"br")&&!qB.isEmptyTextNode(n))break;qB.safeRemove(n),n=e}};e(s,e=>e.nextSibling),e(s,e=>e.previousSibling),qB.after(s,l),qB.before(s,a),o?(n.setEndBefore(s),r.setEndBefore(s)):(n.setEndAfter(s),r.setEndAfter(s))}else n.setEnd(r.startContainer,r.startOffset);const c=n.extractContents(),u=e=>qB.each(e,e=>qB.isEmptyTextNode(e)&&qB.safeRemove(e));cB(e.parentNode,"Splitting fails");try{if(u(c),u(e),e.parentNode.insertBefore(c,e),!t&&o&&(null==s?void 0:s.parentNode)){const e=this.createRange();e.setStartBefore(s),this.selectRange(e)}}catch(e){if(!T_)throw e}const d=e=>{var t,n,r;(null===(t=null==e?void 0:e.parentNode)||void 0===t?void 0:t.firstChild)===(null===(n=null==e?void 0:e.parentNode)||void 0===n?void 0:n.lastChild)&&(null===(r=null==e?void 0:e.parentNode)||void 0===r||r.appendChild(s.cloneNode()))};d(a),d(l)}finally{qB.safeRemove(a),qB.safeRemove(l)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;const{range:e}=this,t=e.cloneRange();if(!qB.isOrContains(this.j.editor,e.commonAncestorContainer,!0))return this;const n=t=>{const n=this.j.createInside.fake(),r=e.cloneRange();return r.collapse(t),qB.safeInsertNode(r,n),function(e,t,n){let r=e;for(;r&&r!==n;){if(qB.findSibling(r,t))return;if(qB.isBlock(r.parentElement))break;r=r.parentElement,r&&r!==n&&(t?qB.before(r,e):qB.after(r,e))}}(n,t,this.j.editor),n},r=n(!0),o=n(!1);t.setStartAfter(r),t.setEndBefore(o);const i=qB.findSibling(r,!1),s=qB.findSibling(o,!0);if(i!==s){const e=qB.isElement(i)&&qB.isOrContains(i,o),n=!e&&qB.isElement(s)&&qB.isOrContains(s,r);if(e||n){let n=e?i:s,a=n;for(;qB.isElement(n);)n=e?n.firstElementChild:n.lastElementChild,n&&(e?qB.isOrContains(n,o):qB.isOrContains(n,r))&&(a=n);e?t.setStart(a,0):t.setEnd(a,a.childNodes.length)}}if(this.selectRange(t),qB.safeRemove(r,o),this.isCollapsed())throw NB("Selection is collapsed");return this}}NF([KC],IF.prototype,"createRange",null),NF([KC],IF.prototype,"focus",null),NF([KC],IF.prototype,"setCursorAfter",null),NF([KC],IF.prototype,"setCursorBefore",null),NF([KC],IF.prototype,"setCursorIn",null);var FF,TF=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};const LF="data-jodit-default-style-display",PF="data-jodit-default-classes",MF={contenteditable:!1};let OF=FF=class extends DN{className(){return"Jodit"}waitForReady(){return this.isReady?Promise.resolve(this):this.async.promise(e=>{this.hookStatus("ready",()=>e(this))})}static get ready(){return new Promise(e=>{KS.on("joditready",e)})}get text(){if(this.editor)return this.editor.innerText||"";const e=this.createInside.div();return e.innerHTML=this.getElementValue(),e.innerText||""}get defaultTimeout(){return oS(this.o.defaultTimeout)?this.o.defaultTimeout:dj.defaultOptions.defaultTimeout}static atom(e){return hj(e)}static make(e,t){return new this(e,t)}static isJoditAssigned(e){return e&&tS(e.component)&&!e.component.isInDestruct}static get defaultOptions(){return dj.defaultOptions}static configure(e){vj(FF.defaultOptions,e)}get createInside(){return new vN(()=>this.ed,this.o.createAttributes)}__setPlaceField(e,t){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[e]=t}get element(){return this.currentPlace.element}get editor(){return this.currentPlace.editor}set editor(e){this.__setPlaceField("editor",e)}get container(){return this.currentPlace.container}set container(e){this.__setPlaceField("container",e)}get workplace(){return this.currentPlace.workplace}get message(){return this.getMessageModule(this.workplace)}get statusbar(){return this.currentPlace.statusbar}get iframe(){return this.currentPlace.iframe}set iframe(e){this.__setPlaceField("iframe",e)}get history(){return this.currentPlace.history}get editorWindow(){return this.currentPlace.editorWindow}set editorWindow(e){this.__setPlaceField("editorWindow",e)}get ew(){return this.editorWindow}get editorDocument(){return this.currentPlace.editorWindow.document}get ed(){return this.editorDocument}get options(){return this.currentPlace.options}set options(e){this.__options=e,this.__setPlaceField("options",e)}get s(){return this.selection}get uploader(){return this.getInstance("Uploader",this.o.uploader)}get filebrowser(){const e=this,t=gj({defaultTimeout:e.defaultTimeout,uploader:e.o.uploader,language:e.o.language,license:e.o.license,theme:e.o.theme,shadowRoot:e.o.shadowRoot,defaultCallback(t){t.files&&t.files.length&&t.files.forEach((n,r)=>{const o=t.baseurl+n;t.isImages&&t.isImages[r]?e.s.insertImage(o,null,e.o.imageDefaultWidth):e.s.insertNode(e.createInside.fromHTML(`<a href='${o}' title='${o}'>${o}</a>`))})}},this.o.filebrowser);return e.getInstance("FileBrowser",t)}get mode(){return this.__mode}set mode(e){this.setMode(e)}getNativeEditorValue(){const e=this.e.fire("beforeGetNativeEditorValue");return YC(e)?e:this.editor?this.editor.innerHTML:this.getElementValue()}setNativeEditorValue(e){const t={value:e};this.e.fire("beforeSetNativeEditorValue",t)||this.editor&&(this.editor.innerHTML=t.value)}get value(){return this.getEditorValue()}set value(e){this.setEditorValue(e),this.history.__processChanges()}synchronizeValues(){this.__imdSynchronizeValues()}__imdSynchronizeValues(){this.setEditorValue()}getEditorValue(e=!0,t){let n;if(n=this.e.fire("beforeGetValueFromEditor",t),void 0!==n)return n;n=this.getNativeEditorValue().replace(z_(),""),e&&(n=n.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"<br>"===n&&(n="");const r={value:n};return this.e.fire("afterGetValueFromEditor",r,t),r.value}setEditorValue(e){const t=this.e.fire("beforeSetValueToEditor",e);if(!1===t)return;if(YC(t)&&(e=t),!this.editor)return void(void 0!==e&&this.__setElementValue(e));if(!YC(e)&&!XC(e))throw NB("value must be string");XC(e)||this.getNativeEditorValue()===e||this.setNativeEditorValue(e),this.e.fire("postProcessSetEditorValue");const n=this.getElementValue(),r=this.getEditorValue();if(!this.__isSilentChange&&n!==r&&this.__callChangeCount<FC){this.__setElementValue(r),this.__callChangeCount+=1,!T_&&this.__callChangeCount>4&&console.warn("Too many recursive changes",r,n);try{this.history.__upTick(),this.e.fire("change",r,n),this.e.fire(this.history,"change",r,n)}finally{this.__callChangeCount=0}}}updateElementValue(){this.__setElementValue(this.getEditorValue())}getElementValue(){return void 0!==this.element.value?this.element.value:this.element.innerHTML}__setElementValue(e){if(!YC(e))throw NB("value must be string");if(this.element!==this.container&&e!==this.getElementValue()){const t={value:e};OB(this.e.fire("beforeSetElementValue",t),()=>{void 0!==this.element.value?this.element.value=t.value:this.element.innerHTML=t.value,this.e.fire("afterSetElementValue",t)})}}registerCommand(e,t,n){const r=e.toLowerCase();let o=this.commands.get(r);if(void 0===o&&(o=[],this.commands.set(r,o)),o.push(t),!VC(t)){const o=this.o.commandToHotkeys[r]||this.o.commandToHotkeys[e]||t.hotkeys;o&&this.registerHotkeyToCommand(o,r,null==n?void 0:n.stopPropagation)}return this}registerHotkeyToCommand(e,t,n=!0){const r=WS(e).map(Vj).map(e=>e+".hotkey").join(" ");this.e.off(r).on(r,(e,r)=>(r&&(r.shouldStop=null==n||n),this.execCommand(t)))}execCommand(e,t,n,...r){if(this.s.isFocused()||this.s.focus(),this.o.readonly&&!this.o.allowCommandsInReadOnly.includes(e))return;let o;if(e=e.toLowerCase(),o=this.e.fire(`beforeCommand${sE(e)}`,t,n,...r),!1!==o&&(o=this.e.fire("beforeCommand",e,t,n,...r)),!1!==o&&(o=this.__execCustomCommands(e,t,n,...r)),!1!==o){this.s.focus();try{o=this.nativeExecCommand(e,t,n)}catch(e){if(!T_)throw e}}return this.e.fire("afterCommand",e,t,n),this.__imdSynchronizeValues(),o}nativeExecCommand(e,t,n){this.__isSilentChange=!0;try{return this.ed.execCommand(e,t,n)}finally{this.__isSilentChange=!1}}__execCustomCommands(e,t,n,...r){e=e.toLowerCase();const o=this.commands.get(e);if(void 0!==o){let i;return o.forEach(o=>{let s;s=VC(o)?o:o.exec;const a=s.call(this,e,t,n,...r);void 0!==a&&(i=a)}),i}}lock(e="any"){return!!super.lock(e)&&(this.__selectionLocked=this.s.save(),this.s.clear(),this.container.classList.add("jodit_lock"),this.e.fire("lock",!0),!0)}unlock(){return!!super.unlock()&&(this.container.classList.remove("jodit_lock"),this.__selectionLocked&&this.s.restore(),this.e.fire("lock",!1),!0)}getMode(){return this.mode}isEditorMode(){return this.getRealMode()===vC}getRealMode(){if(this.getMode()!==wC)return this.getMode();const e=this.od.activeElement;return e&&(e===this.iframe||qB.isOrContains(this.editor,e)||qB.isOrContains(this.toolbar.container,e))?vC:bC}setMode(e){const t=this.getMode(),n={mode:parseInt(e.toString(),10)},r=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",n)&&(this.__mode=[bC,vC,wC].includes(n.mode)?n.mode:vC,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),r.forEach(e=>{this.container.classList.remove(e)}),this.container.classList.add(r[this.mode-1]),t!==this.getMode()&&this.e.fire("afterSetMode"))}toggleMode(){let e=this.getMode();[bC,vC,this.o.useSplitMode?wC:9].includes(e+1)?e+=1:e=vC,this.setMode(e)}setDisabled(e){this.o.disabled=e;const t=this.__wasReadOnly;this.setReadOnly(e||t),this.__wasReadOnly=t,this.editor&&(this.editor.setAttribute("aria-disabled",e.toString()),this.container.classList.toggle("jodit_disabled",e),this.e.fire("disabled",e))}getDisabled(){return this.o.disabled}setReadOnly(e){this.__wasReadOnly!==e&&(this.__wasReadOnly=e,this.o.readonly=e,e?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.e&&this.e.fire("readonly",e))}getReadOnly(){return this.o.readonly}focus(){this.getMode()!==bC&&this.s.focus()}get isFocused(){return this.s.isFocused()}beforeInitHook(){}afterInitHook(){}initOptions(e){this.options=gj(e||{},dj.defaultOptions)}initOwners(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}constructor(e,t){super(t,!0),this.isJodit=!0,this.commands=new Map,this.__selectionLocked=null,this.__wasReadOnly=!1,this.editorIsActive=!1,this.__mode=vC,this.__callChangeCount=0,this.__isSilentChange=!1,this.currentPlace={options:this.__options,container:this.__container},this.places=[],this.__elementToPlace=new Map;try{const t=JS(e,this.options.shadowRoot||this.od);if(FF.isJoditAssigned(t))return t.component}catch(e){if(!T_)throw e;throw this.destruct(),e}this.setStatus(WC.beforeInit),this.id=kB(JS(e,this.o.shadowRoot||this.od),"id")||(new Date).getTime().toString(),OS[this.id]=this,this.attachEvents(t),this.e.on(this.ow,"resize",()=>{this.e&&this.e.fire("resize")}),this.e.on("prepareWYSIWYGEditor",this.__prepareWYSIWYGEditor),this.selection=new IF(this),OB(this.beforeInitHook(),()=>{if(this.isInDestruct)return;this.e.fire("beforeInit",this),RS.__init(this),this.e.fire("afterPluginSystemInit",this),this.e.on("changePlace",()=>{this.setReadOnly(this.o.readonly),this.setDisabled(this.o.disabled)}),this.places.length=0;const n=this.addPlace(e,t);OS[this.id]=this,OB(n,()=>{this.isInDestruct||(this.e&&this.e.fire("afterInit",this),OB(this.afterInitHook()),this.setStatus(WC.ready),this.e.fire("afterConstructor",this))})})}addPlace(e,t){const n=JS(e,this.o.shadowRoot||this.od);this.attachEvents(t),n.attributes&&nB(n.attributes).forEach(e=>{const n=e.name;let r=e.value;void 0===dj.defaultOptions[n]||t&&void 0!==t[n]||(-1!==["readonly","disabled"].indexOf(n)&&(r=""===r||"true"===r),/^[0-9]+(\.)?([0-9]+)?$/.test(r.toString())&&(r=Number(r)),this.options[n]=r)});let r=this.c.div("jodit-container");r.classList.add("jodit"),r.classList.add("jodit-container"),r.classList.add(`jodit_theme_${this.o.theme||"default"}`),DF(this.o.className,r),this.o.containerStyle&&wB(r,this.o.containerStyle);const{styleValues:o}=this.o;Object.keys(o).forEach(e=>{const t=AB(e);r.style.setProperty(`--jd-${t}`,o[e])}),r.setAttribute("contenteditable","false");let i=null;this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(n.nodeName)&&(r=n,n.setAttribute(PF,n.className.toString()),i=r.innerHTML,r.innerHTML=""),r.classList.add("jodit_inline"),r.classList.add("jodit-container")),n!==r&&(n.style.display&&n.setAttribute(LF,n.style.display),n.style.display="none");const s="workplace-slot",a=this.c.div(this.getFullElName(s,"above"),MF);a.setAttribute("data-jodit-above-toolbar",""),qB.appendChildFirst(r,a);const l=this.c.div(this.getFullElName(s,"top"),MF);r.appendChild(l);const c=this.c.div(this.getFullElName(s,"center"),MF),u=this.c.div("jodit-workplace",MF),d=this.c.div(this.getFullElName(s,"left"),MF),A=this.c.div(this.getFullElName(s,"right"),MF);c.appendChild(d),c.appendChild(u),c.appendChild(A),r.appendChild(c);const h=this.c.div(this.getFullElName(s,"bottom"),MF);r.appendChild(h),n.parentNode&&n!==r&&n.parentNode.insertBefore(r,n),Object.defineProperty(n,"component",{enumerable:!1,configurable:!0,value:this});const p=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});u.appendChild(p);const f={editor:p,element:n,container:r,workplace:u,slots:{above:a,top:l,bottom:h,center:c,left:d,right:A},statusbar:new FI(this,r),options:this.isReady?gj(t||{},dj.defaultOptions):this.options,history:new II(this),editorWindow:this.ow};this.__elementToPlace.set(p,f),this.setCurrentPlace(f),this.places.push(f),this.setNativeEditorValue(this.getElementValue());const m=this.__initEditor(i),g=this.options;return OB(m,()=>{g.enableDragAndDropFileToEditor&&g.uploader&&(g.uploader.url||g.uploader.insertImageAsBase64URI)?this.uploader.bind(this.editor):g.enableDragAndDropFileToEditor||this.e.on(p,"drop",e=>{var t,n;(null===(n=null===(t=e.dataTransfer)||void 0===t?void 0:t.files)||void 0===n?void 0:n.length)&&e.preventDefault()}),this.__elementToPlace.get(this.editor)||this.__elementToPlace.set(this.editor,f),this.e.fire("afterAddPlace",f)})}addDisclaimer(e){this.workplace.appendChild(e)}setCurrentPlace(e){this.currentPlace!==e&&(this.isEditorMode()||this.setMode(vC),this.currentPlace=e,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",e))}__initEditor(e){return OB(this.__createEditor(),()=>{if(this.isInDestruct)return;if(this.element!==this.container){const e=this.getElementValue();e!==this.getEditorValue()&&this.setEditorValue(e)}else null!=e&&this.setEditorValue(e);let t=this.o.defaultMode;if(this.o.saveModeInStorage){const e=this.storage.get("jodit_default_mode");"string"==typeof e&&(t=parseInt(e,10))}this.setMode(t),this.o.readonly&&(this.__wasReadOnly=!1,this.setReadOnly(!0)),this.o.disabled&&this.setDisabled(!0);try{this.ed.execCommand("defaultParagraphSeparator",!1,this.o.enter.toLowerCase())}catch(e){}})}__createEditor(){const e=this.editor,t=this.e.fire("createEditor",this);return OB(t,()=>{this.isInDestruct||((!1===t||TB(t))&&qB.safeRemove(e),DF(this.o.editorClassName,this.editor),this.o.style&&wB(this.editor,this.o.style),this.e.on("synchro",()=>{this.setEditorValue()}).on("focus",()=>{this.editorIsActive=!0}).on("blur",()=>this.editorIsActive=!1),this.__prepareWYSIWYGEditor(),this.o.triggerChangeEvent&&this.e.on("change",this.async.debounce(()=>{this.e&&this.e.fire(this.element,"change")},this.defaultTimeout)))})}__prepareWYSIWYGEditor(){const{editor:e}=this;if(this.o.direction){const e="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.editor.style.direction=e,this.editor.setAttribute("dir",e),this.container.style.direction=e,this.container.setAttribute("dir",e),this.toolbar.setDirection(e)}this.e.on(e,"mousedown touchstart focus",()=>{const t=this.__elementToPlace.get(e);t&&this.setCurrentPlace(t)}).on(e,"compositionend",this.synchronizeValues).on(e,"selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",e=>{if(!this.o.readonly&&!this.__isSilentChange&&!(e instanceof this.ew.KeyboardEvent&&e.isComposing)&&this.e&&this.e.fire){if(!1===this.e.fire(e.type,e))return!1;this.synchronizeValues()}}).on(this.ow,"mouseup",t=>{if(this.o.readonly||this.__isSilentChange)return;const n=t.target;!Boolean(n&&oS(n.nodeType)&&e.contains(n))&&this.s.isInsideArea&&(this.e.fire("changeSelection"),this.synchronizeValues())})}fetch(e,t){const n=new CE({url:e,...t},this.o.defaultAjaxOptions),r=()=>{this.e.off("beforeDestruct",r),this.progressbar.progress(100).hide(),n.destruct()};this.e.one("beforeDestruct",r),this.progressbar.show().progress(30);const o=n.send();return o.finally(r).catch(()=>null),o}destruct(){var e,t;if(this.isInDestruct)return;this.setStatus(WC.beforeDestruct),this.__elementToPlace.clear(),null===(e=aS(this,"storage"))||void 0===e||e.clear(),null===(t=aS(this,"buffer"))||void 0===t||t.clear(),this.commands.clear(),this.__selectionLocked=null,this.e.off(this.ow,"resize"),this.e.off(this.ow),this.e.off(this.od),this.e.off(this.od.body);const n=this.editor?this.getEditorValue():"";this.places.forEach(({container:e,workplace:t,statusbar:r,element:o,iframe:i,editor:s,history:a})=>{if(o){if(o!==e)if(o.hasAttribute(LF)){const e=kB(o,LF);e&&(o.style.display=e,o.removeAttribute(LF))}else o.style.display="";else o.hasAttribute(PF)&&(o.className=kB(o,PF)||"",o.removeAttribute(PF));o.hasAttribute("style")&&!kB(o,"style")&&o.removeAttribute("style"),r.destruct(),this.e.off(e),this.e.off(o),this.e.off(s),qB.safeRemove(t),qB.safeRemove(s),e!==o&&qB.safeRemove(e),Object.defineProperty(o,"component",{enumerable:!1,configurable:!0,value:null}),qB.safeRemove(i),e===o&&(o.innerHTML=n),a.destruct()}}),this.places.length=0,this.currentPlace={},delete OS[this.id],super.destruct()}};function DF(e,t){e&&e.split(/\s+/).forEach(e=>t.classList.add(e))}OF.fatMode=P_,OF.plugins=RS,OF.modules=zS,OF.ns=zS,OF.decorators={},OF.constants=r,OF.instances=OS,OF.lang=zC,OF.core={Plugin:SI},TF([lS],OF.prototype,"createInside",null),TF([lS],OF.prototype,"message",null),TF([lS],OF.prototype,"s",null),TF([lS],OF.prototype,"uploader",null),TF([lS],OF.prototype,"filebrowser",null),TF([hE()],OF.prototype,"synchronizeValues",null),TF([kE(":internalChange")],OF.prototype,"updateElementValue",null),TF([KC],OF.prototype,"__prepareWYSIWYGEditor",null),OF=FF=TF([pE(VN)],OF);const UF='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> ',RF='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> ',zF='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> ',QF='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> ',HF='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg> ',qF='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg> ',VF='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg> ',KF='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg> ',WF='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg> ',GF='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg> ',$F='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg> ',YF='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg> ',ZF='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg> ',XF='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg> ',JF='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> ',eT='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg> ',tT='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg> ',nT='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg> ',rT='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg> ',oT='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg> ',iT='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> ',sT='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg> ',aT='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg> ',lT='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg> ',cT='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg> ',uT='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg> ',dT='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg> ',AT={};let hT={};hT={ar:{"Type something":"إبدأ في الكتابة...","About Jodit":"حول جوديت","Jodit Editor":"محرر جوديت","Jodit User's Guide":"دليل مستخدم جوديت","contains detailed help for using":"يحتوي على مساعدة مفصلة للاستخدام","For information about the license, please go to our website:":"للحصول على معلومات حول الترخيص، يرجى الذهاب لموقعنا:","Buy full version":"شراء النسخة الكاملة","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"حقوق الطبع والنشر © XDSoft.net - Chupurnov Valeriy. كل الحقوق محفوظة.",Anchor:"مِرْساة","Open in new tab":"فتح في نافذة جديدة","Open in fullsize":"فتح المحرر في الحجم الكامل","Clear Formatting":"مسح التنسيق","Fill color or set the text color":"ملء اللون أو تعيين لون النص",Redo:"إعادة",Undo:"تراجع",Bold:"عريض",Italic:"مائل","Insert Unordered List":"إدراج قائمة غير مرتبة","Insert Ordered List":"إدراج قائمة مرتبة","Align Center":"محاذاة للوسط","Align Justify":"محاذاة مثبتة","Align Left":"محاذاة لليسار","Align Right":"محاذاة لليمين","Insert Horizontal Line":"إدراج خط أفقي","Insert Image":"إدراج صورة","Insert file":"ادخال الملف","Insert youtube/vimeo video":"إدراج فيديو يوتيوب/فيميو ","Insert link":"إدراج رابط","Font size":"حجم الخط","Font family":"نوع الخط","Insert format block":"إدراج كتلة تنسيق",Normal:"عادي","Heading 1":"عنوان 1","Heading 2":"عنوان 2","Heading 3":"عنوان 3","Heading 4":"عنوان 4",Quote:"إقتباس",Code:"كود",Insert:"إدراج","Insert table":"إدراج جدول","Decrease Indent":"تقليل المسافة البادئة","Increase Indent":"زيادة المسافة البادئة","Select Special Character":"تحديد أحرف خاصة","Insert Special Character":"إدراج حرف خاص","Paint format":"تنسيق الرسم","Change mode":"تغيير الوضع",Margins:"هوامش",top:"أعلى",right:"يمين",bottom:"أسفل",left:"يسار",Styles:"الأنماط",Classes:"الطبقات",Align:"محاذاة",Right:"اليمين",Center:"الوسط",Left:"اليسار","--Not Set--":"--غير مضبوط--",Src:"Src",Title:"العنوان",Alternative:"العنوان البديل",Link:"الرابط","Open link in new tab":"افتح الرابط في نافذة جديدة",Image:"الصورة",file:"ملف",Advanced:"متقدم","Image properties":"خصائص الصورة",Cancel:"إلغاء",Ok:"حسنا","File Browser":"متصفح الملفات","Error on load list":"حدث خطأ في تحميل القائمة ","Error on load folders":"حدث خطأ في تحميل المجلدات","Are you sure?":"هل أنت واثق؟","Enter Directory name":"أدخل اسم المجلد","Create directory":"إنشاء مجلد","type name":"أكتب إسم","type dir name":"أكتب إسم","Drop image":"إسقاط صورة","Drop file":"إسقاط الملف","or click":"أو أنقر","Alternative text":"النص البديل",Upload:"رفع",Browse:"تصفح",Background:"الخلفية",Text:"نص",Top:"أعلى",Middle:"الوسط",Bottom:"الأسفل","Insert column before":"إدراج عمود قبل","Insert column after":"إدراج عمود بعد","Insert row above":"إدراج صف أعلى","Insert row below":"إدراج صف أسفل","Delete table":"حذف الجدول","Delete row":"حذف الصف","Delete column":"حذف العمود","Empty cell":"خلية فارغة","Chars: %d":"%d حرف","Words: %d":"%d كلام","Strike through":"اضرب من خلال",Underline:"أكد",superscript:"حرف فوقي",subscript:"مخطوطة","Cut selection":"قطع الاختيار","Select all":"اختر الكل",Break:"استراحة","Search for":"البحث عن","Replace with":"استبدل ب",Replace:"محل",Paste:"معجون","Choose Content to Paste":"اختر محتوى للصق",source:"مصدر",bold:"بالخط العريض",italic:"مائل",brush:"شغل",link:"صلة",undo:"إلغاء",redo:"كرر",table:"طاولة",image:"صورة",eraser:"نظيف",paragraph:"فقرة",fontsize:"حجم الخط",video:"فيديو",font:"الخط",about:"حول المحرر",print:"طباعة",underline:"أكد",strikethrough:"شطب",indent:"المسافة البادئة",outdent:"نتوء",fullsize:"ملء الشاشة",shrink:"الحجم التقليدي",hr:"الخط",ul:"قائمة",ol:"قائمة مرقمة",cut:"قطع",selectall:"اختر الكل","Embed code":"قانون","Open link":"فتح الرابط","Edit link":"تعديل الرابط","No follow":"سمة Nofollow",Unlink:"إزالة الرابط",Update:"تحديث",pencil:"لتحرير",Eye:"مراجعة"," URL":"URL",Edit:"تحرير","Horizontal align":"محاذاة أفقية",Filter:"فلتر","Sort by changed":"عن طريق التغيير","Sort by name":"بالاسم","Sort by size":"حسب الحجم","Add folder":"إضافة مجلد",Reset:"إعادة",Save:"احتفظ","Save as ...":"حفظ باسم",Resize:"تغيير الحجم",Crop:"حجم القطع",Width:"عرض",Height:"ارتفاع","Keep Aspect Ratio":"حافظ على النسب",Yes:"أن",No:"لا",Remove:"حذف",Select:"تميز","Select %s":"تميز %s","Vertical align":"محاذاة عمودية",Split:"انشق، مزق",Merge:"اذهب","Add column":"أضف العمود","Add row":"اضف سطر","License: %s":"رخصة %s",Delete:"حذف","Split vertical":"انقسام عمودي","Split horizontal":"تقسيم أفقي",Border:"الحدود","Your code is similar to HTML. Keep as HTML?":"يشبه الكود الخاص بك HTML. تبقي كما HTML؟","Paste as HTML":"الصق ك HTML",Keep:"احتفظ","Insert as Text":"إدراج كنص","Insert only Text":"إدراج النص فقط","You can only edit your own images. Download this image on the host?":"يمكنك فقط تحرير صورك الخاصة. تحميل هذه الصورة على المضيف؟","The image has been successfully uploaded to the host!":"تم تحميل الصورة بنجاح على الخادم!",palette:"لوحة","There are no files":"لا توجد ملفات في هذا الدليل.",Rename:"إعادة تسمية","Enter new name":"أدخل اسم جديد",preview:"معاينة",download:"تحميل","Paste from clipboard":"لصق من الحافظة","Your browser doesn't support direct access to the clipboard.":"متصفحك لا يدعم إمكانية الوصول المباشر إلى الحافظة.","Copy selection":"نسخ التحديد",copy:"نسخ","Border radius":"دائرة نصف قطرها الحدود","Show all":"عرض كل",Apply:"تطبيق","Please fill out this field":"يرجى ملء هذا المجال","Please enter a web address":"يرجى إدخال عنوان ويب",Default:"الافتراضي",Circle:"دائرة",Dot:"نقطة",Quadrate:"المربعة",Find:"البحث","Find Previous":"تجد السابقة","Find Next":"تجد التالي","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"للصق المحتوى قادم من Microsoft Word/Excel الوثيقة. هل تريد أن تبقي شكل أو تنظيفه ؟ ","Word Paste Detected":"كلمة لصق الكشف عن",Clean:"نظيفة","Insert className":"أدخل اسم الفصل","Press Alt for custom resizing":"اضغط البديل لتغيير حجم مخصص","Line height":"ارتفاع الخط",spellcheck:"التدقيق الإملائي","Speech Recognize":"التعرف على الكلام",All:"تحديد الكل"},cs_cz:{"Type something":"Napiš něco","About Jodit":"O Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Verze pro nekomerční použití","Jodit User's Guide":"Jodit Uživatelská příručka","contains detailed help for using":"obsahuje detailní nápovědu","For information about the license, please go to our website:":"Pro informace o licenci, prosím, přejděte na naši stránku:","Buy full version":"Koupit plnou verzi","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Všechna práva vyhrazena.",Anchor:"Anchor","Open in new tab":"Otevřít v nové záložce","Open in fullsize":"Otevřít v celoobrazovkovém režimu","Clear Formatting":"Vyčistit formátování","Fill color or set the text color":"Barva výplně a písma",Redo:"Vpřed",Undo:"Zpět",Bold:"Tučné",Italic:"Kurzíva","Insert Unordered List":"Odrážky","Insert Ordered List":"Číslovaný seznam","Align Center":"Zarovnat na střed","Align Justify":"Zarovnat do bloku","Align Left":"Zarovnat vlevo","Align Right":"Zarovnat vpravo","Insert Horizontal Line":"Vložit horizontální linku","Insert Image":"Vložit obrázek","Insert file":"Vložit soubor","Insert youtube/vimeo video":"Vložit video (YT/Vimeo)","Insert link":"Vložit odkaz","Font size":"Velikost písma","Font family":"Typ písma","Insert format block":"Formátovat blok",Normal:"Normální text","Heading 1":"Nadpis 1","Heading 2":"Nadpis 2","Heading 3":"Nadpis 3","Heading 4":"Nadpis 4",Quote:"Citát",Code:"Kód",Insert:"Vložit","Insert table":"Vložit tabulku","Decrease Indent":"Zmenšit odsazení","Increase Indent":"Zvětšit odsazení","Select Special Character":"Vybrat speciální symbol","Insert Special Character":"Vložit speciální symbol","Paint format":"Použít formát","Change mode":"Změnit mód",Margins:"Okraje",top:"horní",right:"pravý",bottom:"spodní",left:"levý",Styles:"Styly",Classes:"Třídy",Align:"Zarovnání",Right:"Vpravo",Center:"Na střed",Left:"Vlevo","--Not Set--":"--nenastaveno--",Src:"src",Title:"Titulek",Alternative:"Alternativní text (alt)",Link:"Link","Open link in new tab":"Otevřít link v nové záložce",Image:"Obrázek",file:"soubor",Advanced:"Rozšířené","Image properties":"Vlastnosti obrázku",Cancel:"Zpět",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Váš text se podobá HTML. Vložit ho jako HTML?","Paste as HTML":"Vložit jako HTML",Keep:"Ponechat originál",Clean:"Vyčistit","Insert as Text":"Vložit jako TEXT","Insert only Text":"Vložit pouze TEXT","Word Paste Detected":"Detekován fragment z Wordu nebo Excelu","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Obsah, který vkládáte, je pravděpodobně z Microsoft Word / Excel. Chcete ponechat formát nebo vložit pouze text?","File Browser":"Prohlížeč souborů","Error on load list":"Chyba při načítání seznamu souborů","Error on load folders":"Chyba při načítání složek","Are you sure?":"Jste si jistý(á)?","Enter Directory name":"Název složky","Create directory":"Vytvořit složku","type name":"název","type dir name":"název","Drop image":"Přetáhněte sem obrázek","Drop file":"Přetáhněte sem soubor","or click":"nebo klikněte","Alternative text":"Alternativní text",Browse:"Server",Upload:"Nahrát",Background:"Pozadí",Text:"Text",Top:"Nahoru",Middle:"Na střed",Bottom:"Dolu","Insert column before":"Vložit sloupec před","Insert column after":"Vložit sloupec za","Insert row above":"Vložit řádek nad","Insert row below":"Vložit řádek pod","Delete table":"Vymazat tabulku","Delete row":"Vymazat řádku","Delete column":"Vymazat sloupec","Empty cell":"Vyčistit buňku",source:"HTML",bold:"tučně",italic:"kurzíva",brush:"štětec",link:"odkaz",undo:"zpět",redo:"vpřed",table:"tabulka",image:"obrázek",eraser:"guma",paragraph:"odstavec",fontsize:"velikost písma",video:"video",font:"písmo",about:"о editoru",print:"tisk",underline:"podtrženo",strikethrough:"přeškrtnuto",indent:"zvětšit odsazení",outdent:"zmenšit odsazení",fullsize:"celoobrazovkový režim",shrink:"smrsknout",hr:"Linka",ul:"Odrážka",ol:"Číslovaný seznam",cut:"Vyjmout",selectall:"Označit vše","Embed code":"Kód","Open link":"Otevřít odkaz","Edit link":"Upravit odkaz","No follow":"Atribut no-follow",Unlink:"Odstranit odkaz",Eye:"Zobrazit",pencil:"Chcete-li upravit",Update:"Aktualizovat"," URL":"URL",Edit:"Editovat","Horizontal align":"Horizontální zarovnání",Filter:"Filtr","Sort by changed":"Dle poslední změny","Sort by name":"Dle názvu","Sort by size":"Dle velikosti","Add folder":"Přidat složku",Reset:"Reset",Save:"Uložit","Save as ...":"Uložit jako...",Resize:"Změnit rozměr",Crop:"Ořezat",Width:"Šířka",Height:"Výška","Keep Aspect Ratio":"Ponechat poměr",Yes:"Ano",No:"Ne",Remove:"Vyjmout",Select:"Označit","Chars: %d":"Znaky: %d","Words: %d":"Slova: %d",All:"Vše","Select %s":"Označit %s","Select all":"Označit vše","Vertical align":"Vertikální zarovnání",Split:"Rozdělit","Split vertical":"Rozdělit vertikálně","Split horizontal":"Rozdělit horizontálně",Merge:"Spojit","Add column":"Přidat sloupec","Add row":"Přidat řádek",Delete:"Vymazat",Border:"Okraj","License: %s":"Licence: %s","Strike through":"Přeškrtnuto",Underline:"Podtrženo",superscript:"Horní index",subscript:"Dolní index","Cut selection":"Vyjmout označené",Break:"Zalomení","Search for":"Najdi","Replace with":"Nahradit za",Replace:"Vyměňte",Paste:"Vložit","Choose Content to Paste":"Vyber obsah pro vložení","You can only edit your own images. Download this image on the host?":"Můžete upravovat pouze své obrázky. Načíst obrázek?","The image has been successfully uploaded to the host!":"Obrázek byl úspěšně nahrán!",palette:"paleta","There are no files":"V tomto adresáři nejsou žádné soubory.",Rename:"přejmenovat","Enter new name":"Zadejte nový název",preview:"náhled",download:"Stažení","Paste from clipboard":"Vložit ze schránky","Your browser doesn't support direct access to the clipboard.":"Váš prohlížeč nepodporuje přímý přístup do schránky.","Copy selection":"Kopírovat výběr",copy:"kopírování","Border radius":"Border radius","Show all":"Zobrazit všechny",Apply:"Platí","Please fill out this field":"Prosím, vyplňte toto pole","Please enter a web address":"Prosím, zadejte webovou adresu",Default:"Výchozí",Circle:"Kruh",Dot:"Dot",Quadrate:"Quadrate",Find:"Najít","Find Previous":"Najít Předchozí","Find Next":"Najít Další","Insert className":"Vložte název třídy","Press Alt for custom resizing":"Stiskněte Alt pro vlastní změnu velikosti"},de:{"Type something":"Bitte geben Sie einen Text ein",Advanced:"Fortgeschritten","About Jodit":"Über Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Das Jodit Benutzerhandbuch","contains detailed help for using":"beinhaltet ausführliche Informationen wie Sie den Editor verwenden können.","For information about the license, please go to our website:":"Für Informationen zur Lizenz, besuchen Sie bitte unsere Web-Präsenz:","Buy full version":"Vollversion kaufen","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.",Anchor:"Anker","Open in new tab":"In neuer Registerkarte öffnen","Open in fullsize":"Editor in voller Größe öffnen","Clear Formatting":"Formatierung löschen","Fill color or set the text color":"Füllfarbe oder Textfarbe ändern",Redo:"Wiederholen",Undo:"Rückgängig machen",Bold:"Fett",Italic:"Kursiv","Insert Unordered List":"Unsortierte Liste einfügen","Insert Ordered List":"Nummerierte Liste einfügen","Align Center":"Mittig ausrichten","Align Justify":"Blocksatz","Align Left":"Links ausrichten","Align Right":"Rechts ausrichten","Insert Horizontal Line":"Horizontale Linie einfügen","Insert Image":"Bild einfügen","Insert file":"Datei einfügen","Insert youtube/vimeo video":"Youtube/vimeo Video einfügen","Insert link":"Link einfügen","Font size":"Schriftgröße","Font family":"Schriftfamilie","Insert format block":"Formatblock einfügen",Normal:"Normal","Heading 1":"Überschrift 1","Heading 2":"Überschrift 2","Heading 3":"Überschrift 3","Heading 4":"Überschrift 4",Quote:"Zitat",Code:"Code",Insert:"Einfügen","Insert table":"Tabelle einfügen","Decrease Indent":"Einzug verkleinern","Increase Indent":"Einzug vergrößern","Select Special Character":"Sonderzeichen auswählen","Insert Special Character":"Sonderzeichen einfügen","Paint format":"Format kopieren","Change mode":"Änderungsmodus",Margins:"Ränder",top:"Oben",right:"Rechts",bottom:"Unten",left:"Links",Styles:"CSS Stil",Classes:"CSS Klassen",Align:"Ausrichtung",Right:"Rechts",Center:"Zentriert",Left:"Links","--Not Set--":"Keine",Src:"Pfad",Title:"Titel",Alternative:"Alternativer Text",Link:"Link","Open link in new tab":"Link in neuem Tab öffnen",Image:"Bild",file:"Datei","Image properties":"Bildeigenschaften",Cancel:"Abbrechen",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Ihr Text ähnelt HTML-Code. Als HTML beibehalten?","Paste as HTML":"Als HTML einfügen?",Keep:"Original speichern",Clean:"Säubern","Insert as Text":"Als Text einfügen","Word Paste Detected":"In Word formatierter Text erkannt","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder bereinigen?","Insert only Text":"Nur Text einfügen","File Browser":"Dateibrowser","Error on load list":"Fehler beim Laden der Liste","Error on load folders":"Fehler beim Laden der Ordner","Are you sure?":"Sind Sie sicher?","Enter Directory name":"Geben Sie den Verzeichnisnamen ein","Create directory":"Verzeichnis erstellen","type name":"Typname","type dir name":"Typname","Drop image":"Bild hier hinziehen","Drop file":"Datei löschen","or click":"oder hier klicken","Alternative text":"Alternativtext",Browse:"Auswählen",Upload:"Hochladen",Background:"Hintergrund",Text:"Text",Top:"Oben",Middle:"Mittig",Bottom:"Unten","Insert column before":"Spalte davor einfügen","Insert column after":"Spalte danach einfügen","Insert row above":"Zeile oberhalb einfügen","Insert row below":"Zeile unterhalb einfügen","Delete table":"Tabelle löschen","Delete row":"Zeile löschen","Delete column":"Spalte löschen","Empty cell":"Zelle leeren",Delete:"Löschen","Strike through":"Durchstreichen",Underline:"Unterstreichen",Break:"Pause","Search for":"Suche nach","Replace with":"Ersetzen durch",Replace:"Ersetzen",Edit:"Bearbeiten","Vertical align":"Vertikale Ausrichtung","Horizontal align":"Horizontale Ausrichtung",Filter:"Filter","Sort by changed":"Sortieren nach geändert","Sort by name":"Nach Name sortieren","Sort by size":"Nach Größe sortiert","Add folder":"Ordner hinzufügen","Split vertical":"Vertikal unterteilen","Split horizontal":"Horizontal unterteilen",Split:"Unterteilen",Merge:"Vereinen","Add column":"Spalte hinzufügen","Add row":"Zeile hinzufügen",Border:"Rand","Embed code":"Code einbetten",Update:"Aktualisieren",superscript:"Hochstellen",subscript:"Tiefstellen","Cut selection":"Auswahl ausschneiden",Paste:"Einfügen","Choose Content to Paste":"Wählen Sie den Inhalt zum Einfügen aus","Chars: %d":"Zeichen: %d","Words: %d":"Wörter: %d",All:"Alles markieren","Select %s":"Markieren: %s","Select all":"Alles markieren",source:"HTML",bold:"Fett gedruckt",italic:"Kursiv",brush:"Bürste",link:"Verknüpfung",undo:"Rückgängig machen",redo:"Wiederholen",table:"Tabelle",image:"Bild",eraser:"Radiergummi",paragraph:"Absatz",fontsize:"Schriftgröße",video:"Video",font:"Schriftart",about:"Über",print:"Drucken",underline:"Unterstreichen",strikethrough:"Durchstreichen",indent:"Einzug",outdent:"Herausstellen",fullsize:"Vollgröße",shrink:"Schrumpfen",hr:"die Linie",ul:"Liste von",ol:"Nummerierte Liste","Lower Alpha":"Standard, Alphabet (klein)","Upper Alpha":"Standard, Alphabet (gross)","Lower Roman":"Römisch (klein)","Upper Roman":"Römisch (gross)","Lower Greek":"Griechisch",cut:"Schneiden",selectall:"Wählen Sie Alle aus","Open link":"Link öffnen","Edit link":"Link bearbeiten","No follow":"Nofollow-Attribut",Unlink:"Link entfernen",Eye:"Ansehen",pencil:"Bearbeiten"," URL":"URL",Reset:"Wiederherstellen",Save:"Speichern","Save as ...":"Speichern als",Resize:"Größe ändern",Crop:"Größe anpassen",Width:"Breite",Height:"Höhe","Keep Aspect Ratio":"Seitenverhältnis beibehalten",Yes:"Ja",No:"Nein",Remove:"Entfernen",Select:"Markieren","You can only edit your own images. Download this image on the host?":"Sie können nur Ihre eigenen Bilder bearbeiten. Dieses Bild auf den Host herunterladen?","The image has been successfully uploaded to the host!":"Das Bild wurde erfolgreich auf den Server hochgeladen!",palette:"Palette","There are no files":"In diesem Verzeichnis befinden sich keine Dateien.",Rename:"Umbenennen","Enter new name":"Geben Sie einen neuen Namen ein",preview:"Vorschau",download:"Herunterladen","Paste from clipboard":"Aus Zwischenablage einfügen","Your browser doesn't support direct access to the clipboard.":"Ihr Browser unterstützt keinen direkten Zugriff auf die Zwischenablage.","Copy selection":"Auswahl kopieren",copy:"Kopieren","Border radius":"Radius für abgerundete Ecken","Show all":"Alle anzeigen",Apply:"Anwenden","Please fill out this field":"Bitte füllen Sie dieses Feld aus","Please enter a web address":"Bitte geben Sie eine Web-Adresse ein",Default:"Standard",Circle:"Kreis",Dot:"Punkte",Quadrate:"Quadrate",Find:"Suchen","Find Previous":"Suche vorherige","Find Next":"Weitersuchen","Insert className":"className (CSS) einfügen","Press Alt for custom resizing":"Drücken Sie Alt für benutzerdefinierte Größenanpassung","License: %s":"Lizenz: %s"},en:{"Type something":"Start writing...",pencil:"Edit",Quadrate:"Square"},es:{"Type something":"Escriba algo...",Advanced:"Avanzado","About Jodit":"Acerca de Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Guía de usuario Jodit","contains detailed help for using":"contiene ayuda detallada para el uso.","For information about the license, please go to our website:":"Para información sobre la licencia, por favor visite nuestro sitio:","Buy full version":"Compre la versión completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Todos los derechos reservados.",Anchor:"Anclar","Open in new tab":"Abrir en nueva pestaña","Open in fullsize":"Abrir editor en pantalla completa","Clear Formatting":"Limpiar formato","Fill color or set the text color":"Color de relleno o de letra",Redo:"Rehacer",Undo:"Deshacer",Bold:"Negrita",Italic:"Cursiva","Insert Unordered List":"Insertar lista no ordenada","Insert Ordered List":"Insertar lista ordenada","Align Center":"Alinear Centrado","Align Justify":"Alinear Justificado","Align Left":"Alinear Izquierda","Align Right":"Alinear Derecha","Insert Horizontal Line":"Insertar línea horizontal","Insert Image":"Insertar imagen","Insert file":"Insertar archivo","Insert youtube/vimeo video":"Insertar video de Youtube/vimeo","Insert link":"Insertar vínculo","Font size":"Tamaño de letra","Font family":"Familia de letra","Insert format block":"Insertar bloque",Normal:"Normal","Heading 1":"Encabezado 1","Heading 2":"Encabezado 2","Heading 3":"Encabezado 3","Heading 4":"Encabezado 4",Quote:"Cita",Code:"Código",Insert:"Insertar","Insert table":"Insertar tabla","Decrease Indent":"Disminuir sangría","Increase Indent":"Aumentar sangría","Select Special Character":"Seleccionar caracter especial","Insert Special Character":"Insertar caracter especial","Paint format":"Copiar formato","Change mode":"Cambiar modo",Margins:"Márgenes",top:"arriba",right:"derecha",bottom:"abajo",left:"izquierda",Styles:"Estilos CSS",Classes:"Clases CSS",Align:"Alinear",Right:"Derecha",Center:"Centrado",Left:"Izquierda","--Not Set--":"--No Establecido--",Src:"Fuente",Title:"Título",Alternative:"Texto Alternativo",Filter:"Filtrar",Link:"Vínculo","Open link in new tab":"Abrir vínculo en nueva pestaña",Image:"Imagen",file:"Archivo","Image properties":"Propiedades de imagen",Cancel:"Cancelar",Ok:"Aceptar","Your code is similar to HTML. Keep as HTML?":"El código es similar a HTML. ¿Mantener como HTML?","Paste as HTML":"Pegar como HTML?",Keep:"Mantener",Clean:"Limpiar","Insert as Text":"Insertar como texto","Word Paste Detected":"Pegado desde Word detectado","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"El contenido pegado proviene de un documento de Microsoft Word/Excel. ¿Desea mantener el formato o limpiarlo?","Insert only Text":"Insertar solo texto","File Browser":"Buscar archivo","Error on load list":"Error al cargar la lista","Error on load folders":"Error al cargar las carpetas","Are you sure?":"¿Está seguro?","Enter Directory name":"Entre nombre de carpeta","Create directory":"Crear carpeta","type name":"Entre el nombre","type dir name":"Entre el nombre","Drop image":"Soltar imagen","Drop file":"Soltar archivo","or click":"o click","Alternative text":"Texto alternativo",Browse:"Buscar",Upload:"Subir",Background:"Fondo",Text:"Texto",Top:"Arriba",Middle:"Centro",Bottom:"Abajo","Insert column before":"Insertar columna antes","Insert column after":"Interar columna después","Insert row above":"Insertar fila arriba","Insert row below":"Insertar fila debajo","Delete table":"Borrar tabla","Delete row":"Borrar fila","Delete column":"Borrar columna","Empty cell":"Vaciar celda",Delete:"Borrar","Strike through":"Tachado",Underline:"Subrayado",Break:"Pausa","Search for":"Buscar","Replace with":"Reemplazar con",Replace:"Reemplazar",Edit:"Editar","Vertical align":"Alineación vertical","Horizontal align":"Alineación horizontal","Sort by changed":"Ordenar por fecha modificación","Sort by name":"Ordenar por nombre","Sort by size":"Ordenar por tamaño","Add folder":"Agregar carpeta",Split:"Dividir","Split vertical":"Dividir vertical","Split horizontal":"Dividir horizontal",Merge:"Mezclar","Add column":"Agregar columna","Add row":"Agregar fila",Border:"Borde","Embed code":"Incluir código",Update:"Actualizar",superscript:"superíndice",subscript:"subíndice","Cut selection":"Cortar selección",Paste:"Pegar","Choose Content to Paste":"Seleccionar contenido para pegar","Chars: %d":"Caracteres: %d","Words: %d":"Palabras: %d",All:"Todo","Select %s":"Seleccionar: %s","Select all":"Seleccionar todo",source:"HTML",bold:"negrita",italic:"cursiva",brush:"Brocha",link:"Vínculo",undo:"deshacer",redo:"rehacer",table:"Tabla",image:"Imagen",eraser:"Borrar",paragraph:"Párrafo",fontsize:"Tamaño de letra",video:"Video",font:"Letra",about:"Acerca de",print:"Imprimir",underline:"subrayar",strikethrough:"tachar",indent:"sangría",outdent:"quitar sangría",fullsize:"Tamaño completo",shrink:"encoger",hr:"línea horizontal",ul:"lista sin ordenar",ol:"lista ordenada",cut:"Cortar",selectall:"Seleccionar todo","Open link":"Abrir vínculo","Edit link":"Editar vínculo","No follow":"No seguir",Unlink:"Desvincular",Eye:"Ver",pencil:"Para editar"," URL":"URL",Reset:"Resetear",Save:"Guardar","Save as ...":"Guardar como...",Resize:"Redimensionar",Crop:"Recortar",Width:"Ancho",Height:"Alto","Keep Aspect Ratio":"Mantener relación de aspecto",Yes:"Si",No:"No",Remove:"Quitar",Select:"Seleccionar","You can only edit your own images. Download this image on the host?":"Solo puedes editar tus propias imágenes. ¿Descargar esta imagen en el servidor?","The image has been successfully uploaded to the host!":"¡La imagen se ha subido correctamente al servidor!",palette:"paleta","There are no files":"No hay archivos en este directorio.",Rename:"renombrar","Enter new name":"Ingresa un nuevo nombre",preview:"avance",download:"Descargar","Paste from clipboard":"Pegar desde el portapapeles","Your browser doesn't support direct access to the clipboard.":"Su navegador no soporta el acceso directo en el portapapeles.","Copy selection":"Selección de copia",copy:"copia","Border radius":"Radio frontera","Show all":"Mostrar todos los",Apply:"Aplicar","Please fill out this field":"Por favor, rellene este campo","Please enter a web address":"Por favor, introduzca una dirección web",Default:"Predeterminado",Circle:"Círculo",Dot:"Punto",Quadrate:"Cuadro","Lower Alpha":"Letra Minúscula","Lower Greek":"Griego Minúscula","Lower Roman":"Romano Minúscula","Upper Alpha":"Letra Mayúscula","Upper Roman":"Romano Mayúscula",Find:"Encontrar","Find Previous":"Buscar Anterior","Find Next":"Buscar Siguiente","Insert className":"Insertar nombre de clase","Press Alt for custom resizing":"Presione Alt para cambiar el tamaño personalizado","License: %s":"Licencia: %s"},fa:{"Type something":"چیزی بنویسید",Advanced:"پیشرفته","About Jodit":"درباره ویرایشگر","Jodit Editor":"ویرایشگر جودیت","Jodit User's Guide":"راهنمای کاربران","contains detailed help for using":"راهنمایی برای استفاده","For information about the license, please go to our website:":"برای کسب اطلاعات در رابطه با لایسنس لطفا به وب سایت مراجعه کنید:","Buy full version":"خرید نسخه کامل","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.",Anchor:"لینک","Open in new tab":"بازکردن در تب جدید","Open in fullsize":"تمام صفحه کردن ویرایشگر","Clear Formatting":"پاک کردن قالب ها","Fill color or set the text color":"رنگ را پر کنید یا رنگ متن را تنظیم کنید",Redo:"باز انجام",Undo:"بازگردانی",Bold:"بولد",Italic:"ایتالیک","Insert Unordered List":"افزودن لیست بدون ترتیب","Insert Ordered List":"افزون لیست با ترتیب","Align Center":"وسط چین","Align Justify":"تراز کردن","Align Left":"چپ چین","Align Right":"راست چین","Insert Horizontal Line":"افزودن خط افقی","Insert Image":"افزودن عکس","Insert file":"افزودن فایل","Insert youtube/vimeo video":"افزودن ویدیو از یوتیوب و وایمو","Insert link":"افزودن لینک","Font size":"اندازه فونت","Font family":"فونت","Insert format block":"افزودن بلاک",Normal:"معمولی","Heading 1":"سرتیتر ۱","Heading 2":"سرتیتر ۲","Heading 3":"سرتیتر ۳","Heading 4":"سرتیتر ۴",Quote:"نقل قول",Code:"سورس کد",Insert:"افزودن","Insert table":"افزودن جدول","Decrease Indent":"افزودن فرورفتگی","Increase Indent":"کاهش فرورفتگی","Select Special Character":"کاراکتر ویژه را انتخاب کنید","Insert Special Character":"افزودن کاراکتر ویژه","Paint format":"قالب رنگ","Change mode":"تغییر حالت",Margins:"فاصله ها",top:"بالا",right:"راست",bottom:"پایین",left:"چپ",Styles:"استایل ها",Classes:"کلاس ها",Align:"تراز کردن",Right:"راست",Center:"وسط",Left:"چپ","--Not Set--":"--تنظیم نشده--",Src:"سورس",Title:"عنوان",Alternative:"جایگزین",Link:"لینک","Open link in new tab":"باز کزدن لینک در تب جدید",Image:"عکس",file:"فایل","Image properties":"مقادیر عکس",Cancel:"بیخیال",Ok:"تایید","Your code is similar to HTML. Keep as HTML?":"به نظر کد شما از نوع HTML است , با همین قالب ادامه دهیم ؟","Paste as HTML":"جایگزاری HTML",Keep:"نگه دار",Clean:"تمیز کزدن","Insert as Text":"وارد کردن به عنوان متن عادی","Word Paste Detected":"ظاهر در حال کپی پیست کردن هستید","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"متن کپی شده از محصولات مایکروسافت است مایل هستید استایل مایکروسافت منتقل شود یا به عنوان متن عادی باکزاری شود ؟","Insert only Text":"افزودن به عنوان متن عادی","File Browser":"انتخاب فایل","Error on load list":"خطا در بارگزاری لیست","Error on load folders":"خطا در بازگزاری پوشه ها","Are you sure?":"از انجام این اقدام اطمینان دارید ؟","Enter Directory name":"نام مسیر را وارد کنید","Create directory":"ساخت مسیر","type name":"نام را وارد کنید","type dir name":"نام را وارد کنید","Drop image":"عکس را رها کنید","Drop file":"فایل را رها کنید","or click":"یا کلیک کنید","Alternative text":"متن جایگزین",Browse:"جستجو",Upload:"آپلود",Background:"پس زمینه",Text:"متن",Top:"بالا",Middle:"وسط",Bottom:"پایین","Insert column before":"افزودن ستون قبل از","Insert column after":"افزودن ستون بعد از","Insert row above":"افزودن خط قبل از","Insert row below":"افزودن خط بعد از","Delete table":"حذف جدول","Delete row":"حذف خط","Delete column":"حذف ستون","Empty cell":"خالی کدن بلاک",Delete:"حذف","Strike through":"خط زدن",Underline:"زیر خط (Underline)",Break:"شکستن","Search for":"جستجو برای","Replace with":"جایگزین با",Replace:"جایگزین",Edit:"ویرایش","Vertical align":"تراز عمودی","Horizontal align":"تراز افقی",Filter:"فیلتر","Sort by changed":"مرتب سازی بر اساس تغییرات","Sort by name":"مرتب سازی بر اساس نام","Sort by size":"مرتب سازی بر اساس اندازه","Add folder":"افزودن پوشه",Split:"شکاف","Split vertical":"شکاف عمودی","Split horizontal":"شکاف افقی",Merge:"تجمیع کردن","Add column":"افزودن ستون","Add row":"افزودن خط",Border:"خط","Embed code":"درج کد",Update:"بروزرسانی",superscript:"Super Script",subscript:"Sub Script","Cut selection":"برداشتن انتخاب شده ها",Paste:"چسباندن","Choose Content to Paste":"انتخاب محتوای برای چسباندن","Chars: %d":"کاراکترها: %d","Words: %d":"کلمات: %d",All:"همه","Select %s":"انتخاب: %s","Select all":"انتخاب همه",source:"سورس",bold:"بولد",italic:"ایتالیک",brush:"قلم مو",link:"لینک",undo:"بازگردانی",redo:"باز انجام",table:"جدول",image:"عکس",eraser:"پاک کن",paragraph:"پاراگراف",fontsize:"سایز فونت",video:"ویدیو",font:"فونت",about:"درباره",print:"چاپ",underline:"خط زیرین",strikethrough:"خط روی متن",indent:"فرورفتگی",outdent:"فرورفتگی از بیرون",fullsize:"کامل کردن",shrink:"کوچک کردن",hr:"خط",ul:"لیست",ol:"لیست عدید",cut:"بریدن",selectall:"انتخاب همه","Open link":"بازکردن لینک","Edit link":"ویرایش لینک","No follow":"No Follow",Unlink:"حذف لینک",Eye:"مرور",pencil:"اصلاح"," URL":" URL",Reset:"ریست",Save:"ذخیر","Save as ...":"ذخیره به عنوان...",Resize:"تغییر اندازه",Crop:"بریدن",Width:"طول",Height:"ارتفاع","Keep Aspect Ratio":"نسبت ابعاد را حفظ کن",Yes:"بله",No:"خیر",Remove:"حذف",Select:"انتخاب","You can only edit your own images. Download this image on the host?":"شما فقط میتوانید عکس های خود را ویرایش کنید , میخواهید عکس را از هاست دانلود کنیم ؟","The image has been successfully uploaded to the host!":"عکس با موفقیت در هاست آپلود شد",palette:"جعبه رنگ نقاشی","There are no files":"در این مسیر فایل وجود ندارد",Rename:"تغییر اسم","Enter new name":"اسم جدید را وارد کنید",preview:"نمایش",download:"دانلود","Paste from clipboard":"چسباندن از کلیپ بورد","Your browser doesn't support direct access to the clipboard.":"مرورگر شما اجازه دسترسی به کلیپ بورد را نمیدهد.","Copy selection":"کپی کردن انتخاب شده ها",copy:"کپی","Border radius":"Border radius","Show all":"نمایش همه",Apply:"درخواست","Please fill out this field":"لطفا با پر کردن این زمینه","Please enter a web address":"لطفا وارد یک آدرس وب",Default:"به طور پیش فرض",Circle:"دایره",Dot:"پورنو نقطه",Quadrate:"Quadrate",Find:"پیدا کردن","Find Previous":"پیدا کردن قبلی","Find Next":"پیدا کردن بعدی","Insert className":"Insertar nombre de clase","Press Alt for custom resizing":"برای تغییر اندازه سفارشی فشار دهید","License: %s":"مجوز: %s"},fi:{"Type something":"Kirjoita jotain...",Advanced:"Avanzado","About Jodit":"Tietoja Jodit:ista","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit käyttäjän ohje","contains detailed help for using":"sisältää tarkempaa tietoa käyttämiseen","For information about the license, please go to our website:":"Tietoa lisensoinnista, vieraile verkkosivuillamme:","Buy full version":"Osta täysi versio","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Kaikki oikeudet pidätetään.",Anchor:"Ankkuri","Open in new tab":"Avaa uudessa välilehdessä","Open in fullsize":"Avaa täysikokoisena","Clear Formatting":"Poista muotoilu","Fill color or set the text color":"Täytä värillä tai aseta tekstin väri",Redo:"Tee uudelleen",Undo:"Peruuta",Bold:"Lihavoitu",Italic:"Kursiivi","Insert Unordered List":"Lisää järjestämätön lista","Insert Ordered List":"Lisää järjestetty lista","Align Center":"Asemoi keskelle","Align Justify":"Asemoi tasavälein","Align Left":"Asemoi vasemmalle","Align Right":"Asemoi oikealle","Insert Horizontal Line":"Lisää vaakasuuntainen viiva","Insert Image":"Lisää kuva","Insert file":"Lisää tiedosto","Insert youtube/vimeo video":"Lisää Youtube-/vimeo- video","Insert link":"Lisää linkki","Font size":"Kirjasimen koko","Font family":"Kirjasimen nimi","Insert format block":"Lisää muotoilualue",Normal:"Normaali","Heading 1":"Otsikko 1","Heading 2":"Otsikko 2","Heading 3":"Otsikko 3","Heading 4":"Otsikko 4",Quote:"Lainaus",Code:"Koodi",Insert:"Lisää","Insert table":"Lisää taulukko","Decrease Indent":"Pienennä sisennystä","Increase Indent":"Lisää sisennystä","Select Special Character":"Valitse erikoismerkki","Insert Special Character":"Lisää erikoismerkki","Paint format":"Maalaa muotoilu","Change mode":"Vaihda tilaa",Margins:"Marginaalit",top:"ylös",right:"oikealle",bottom:"alas",left:"vasemmalle",Styles:"CSS-tyylit",Classes:"CSS-luokat",Align:"Asemointi",Right:"Oikea",Center:"Keskellä",Left:"Vasen","--Not Set--":"--Ei asetettu--",Src:"Fuente",Title:"Otsikko",Alternative:"Vaihtoehtoinen teksti",Filter:"Suodatin",Link:"Linkki","Open link in new tab":"Avaa uudessa välilehdessä",Image:"Kuva",file:"Tiedosto","Image properties":"Kuvan ominaisuudet",Cancel:"Peruuta",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Koodi on HTML:n tapaista. Säilytetäänkö HTML?","Paste as HTML":"Liitä HTML:nä?",Keep:"Säilytä",Clean:"Tyhjennä","Insert as Text":"Lisää tekstinä","Word Paste Detected":"Word liittäminen havaittu","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Liitetty sisältö tulee Microsoft Word-/Excel- tiedostosta. Haluatko säilyttää muotoilun vai poistaa sen?","Insert only Text":"Lisää vain teksti","File Browser":"Tiedostoselain","Error on load list":"Virhe listan latauksessa","Error on load folders":"Virhe kansioiden latauksessa","Are you sure?":"Oletko varma?","Enter Directory name":"Syötä hakemiston nimi","Create directory":"Luo hakemisto","type name":"Syötä nimi","type dir name":"Syötä nimi","Drop image":"Pudota kuva","Drop file":"Pudota tiedosto","or click":"tai klikkaa","Alternative text":"Vaihtoehtoinen teksti",Browse:"Selaa",Upload:"Lataa",Background:"Tausta",Text:"Teksti",Top:"Ylös",Middle:"Keskelle",Bottom:"Alas","Insert column before":"Lisää sarake ennen","Insert column after":"Lisää sarake jälkeen","Insert row above":"Lisää rivi ylös","Insert row below":"Lisää rivi alle","Delete table":"Poista taulukko","Delete row":"Poista rivi","Delete column":"Poista sarake","Empty cell":"Tyhjennä solu",Delete:"Poista","Strike through":"Yliviivaus",Underline:"Alleviivaus",Break:"Vaihto","Search for":"Etsi arvoa","Replace with":"Korvaa arvolla",Replace:"Korvaa",Edit:"Muokkaa","Vertical align":"Pystyasemointi","Horizontal align":"Vaaka-asemointi","Sort by changed":"Järjestä muuttuneilla","Sort by name":"Järjestä nimellä","Sort by size":"Järjestä koolla","Add folder":"Lisää kansio",Split:"Jaa","Split vertical":"Jaa pystysuuntaisesti","Split horizontal":"Jaa vaakasuuntaisesti",Merge:"Yhdistä","Add column":"Lisää sarake","Add row":"Lisää rivi",Border:"Reuna","Embed code":"Sisällytä koodi",Update:"Päivitä",superscript:"yläviite",subscript:"alaviite","Cut selection":"Leikkaa valinta",Paste:"Liitä","Choose Content to Paste":"Valitse liitettävä sisältö","Chars: %d":"Merkit: %d","Words: %d":"Sanat: %d",All:"Kaikki","Select %s":"Valitse: %s","Select all":"Valitse kaikki",source:"HTML",bold:"lihavoitu",italic:"kursiivi",brush:"sivellin",link:"linkki",undo:"peruuta",redo:"tee uudelleen",table:"taulukko",image:"kuva",eraser:"pyyhekumi",paragraph:"kappale",fontsize:"tekstin koko",video:"video",font:"kirjasin",about:"tietoja",print:"tulosta",underline:"alleviivaa",strikethrough:"yliviivaa",indent:"sisennä",outdent:"pienennä sisennystä",fullsize:"täysikokoinen",shrink:"pienennä",hr:"vaakaviiva",ul:"järjestetty lista",ol:"järjestämätön lista",cut:"leikkaa",selectall:"valitse kaikki","Open link":"Avaa linkki","Edit link":"Muokkaa linkkiä","No follow":"Älä seuraa",Unlink:"Pura linkki",Eye:"Ver",pencil:"Muokkaa"," URL":"URL",Reset:"Nollaa",Save:"Tallenna","Save as ...":"Tallenna nimellä ...",Resize:"Muuta kokoa",Crop:"Rajaa",Width:"Leveys",Height:"Korkeus","Keep Aspect Ratio":"Säilytä kuvasuhde",Yes:"Kyllä",No:"Ei",Remove:"Poista",Select:"Valitse","You can only edit your own images. Download this image on the host?":"Voit muokata vain omia kuvia. Lataa tämä kuva palvelimelle?","The image has been successfully uploaded to the host!":"Kuva on onnistuneesti ladattu palvelimelle!",palette:"paletti","There are no files":"Tiedostoja ei ole",Rename:"Nimeä uudelleen","Enter new name":"Syötä uusi nimi",preview:"esikatselu",download:"Lataa","Paste from clipboard":"Liitä leikepöydältä","Your browser doesn't support direct access to the clipboard.":"Selaimesi ei tue suoraa pääsyä leikepöydälle.","Copy selection":"Kopioi valinta",copy:"kopioi","Border radius":"Reunan pyöristys","Show all":"Näytä kaikki",Apply:"Käytä","Please fill out this field":"Täytä tämä kenttä","Please enter a web address":"Annan web-osoite",Default:"Oletus",Circle:"Ympyrä",Dot:"Piste",Quadrate:"Neliö","Lower Alpha":"Pieni aakkosellinen","Lower Greek":"Pieni kreikkalainen","Lower Roman":"Pieni roomalainen","Upper Alpha":"Suuri aakkosellinen","Upper Roman":"Suuri roomalainen",Find:"Hae","Find Previous":"Hae edellinen","Find Next":"Hae seuraava","Insert className":"Lisää luokkanimi","Press Alt for custom resizing":"Paina Alt muokattuun koon muuttamiseen","Class name":"Luokan nimi","License: %s":"Lisenssi: %s"},fr:{"Type something":"Ecrivez ici","About Jodit":"A propos de Jodit","Jodit Editor":"Editeur Jodit","Jodit User's Guide":"Guide de l'utilisateur","contains detailed help for using":"Aide détaillée à l'utilisation","For information about the license, please go to our website:":"Consulter la licence sur notre site web:","Buy full version":"Acheter la version complète","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tous droits réservés.",Anchor:"Ancre","Open in new tab":"Ouvrir dans un nouvel onglet","Open in fullsize":"Ouvrir l'éditeur en pleine page","Clear Formatting":"Supprimer le formattage","Fill color or set the text color":"Modifier la couleur du fond ou du texte",Redo:"Refaire",Undo:"Défaire",Bold:"Gras",Italic:"Italique","Insert Unordered List":"Liste non ordonnée","Insert Ordered List":"Liste ordonnée","Align Center":"Centrer","Align Justify":"Justifier","Align Left":"Aligner à gauche ","Align Right":"Aligner à droite","Insert Horizontal Line":"Insérer une ligne horizontale","Insert Image":"Insérer une image","Insert file":"Insérer un fichier","Insert youtube/vimeo video":"Insérer une vidéo","Insert link":"Insérer un lien","Font size":"Taille des caractères","Font family":"Famille des caractères","Insert format block":"Bloc formatté",Normal:"Normal","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4",Quote:"Citation",Code:"Code",Insert:"Insérer","Insert table":"Insérer un tableau","Decrease Indent":"Diminuer le retrait","Increase Indent":"Retrait plus","Select Special Character":"Sélectionnez un caractère spécial","Insert Special Character":"Insérer un caractère spécial","Paint format":"Cloner le format","Change mode":"Mode wysiwyg <-> code html",Margins:"Marges",top:"haut",right:"droite",bottom:"Bas",left:"gauche",Styles:"Styles",Classes:"Classes",Align:"Alignement",Right:"Droite",Center:"Centre",Left:"Gauche","--Not Set--":"--Non disponible--",Src:"Source",Title:"Titre",Alternative:"Alternative",Filter:"Filtre",Link:"Lien","Open link in new tab":"Ouvrir le lien dans un nouvel onglet",Image:"Image",file:"fichier",Advanced:"Avancé","Image properties":"Propriétés de l'image",Cancel:"Annuler",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Votre texte que vous essayez de coller est similaire au HTML. Collez-le en HTML?","Paste as HTML":"Coller en HTML?",Keep:"Sauvegarder l'original",Clean:"Nettoyer","Insert as Text":"Coller en tant que texte","Word Paste Detected":"C'est peut-être un fragment de Word ou Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Le contenu que vous insérez provient d'un document Microsoft Word / Excel. Voulez-vous enregistrer le format ou l'effacer?","Insert only Text":"Coller le texte seulement","File Browser":"Explorateur de fichiers","Error on load list":"Erreur de liste de chargement","Error on load folders":"Erreur de dossier de chargement","Are you sure?":"Etes-vous sûrs ?","Enter Directory name":"Entrer le nom de dossier","Create directory":"Créer un dossier","type name":"Nom du fichier","type dir name":"Nom du dossier","Drop image":"Coller une image","Drop file":"Déposer un fichier","or click":"ou cliquer","Alternative text":"Texte de remplacemement",Browse:"Chercher",Upload:"Charger",Background:"Arrière-plan",Border:"Bordure",Text:"Texte",Top:"Haut",Middle:"Milieu",Bottom:"Bas","Insert column before":"Insérer une colonne avant","Insert column after":"Insérer une colonne après","Insert row above":"Insérer une ligne au dessus","Insert row below":"Insérer une ligne en dessous","Delete table":"Supprimer le tableau","Delete row":"Supprimer la ligne","Delete column":"Supprimer la colonne","Empty cell":"Vider la cellule","Chars: %d":"Symboles: %d","Words: %d":"Mots: %d",Split:"Split","Split vertical":"Split vertical","Split horizontal":"Split horizontal","Strike through":"Barrer",Underline:"Souligner",superscript:"exposant",subscript:"indice","Cut selection":"Couper la sélection","Select all":"Tout sélectionner",Break:"Pause","Search for":"Rechercher","Replace with":"Remplacer par",Replace:"Remplacer",Paste:"Coller","Choose Content to Paste":"Choisissez le contenu à coller",source:"la source",bold:"gras",italic:"italique",brush:"pinceau",link:"lien",undo:"annuler",redo:"refaire",table:"tableau",image:"image",eraser:"gomme",paragraph:"clause",fontsize:"taille de police",video:"Video",font:"police",about:"à propos de l'éditeur",print:"impression",underline:"souligné",strikethrough:"barré",indent:"indentation",outdent:"retrait",fullsize:"taille réelle",shrink:"taille conventionnelle",hr:"la ligne",ul:"Liste",ol:"Liste numérotée",cut:"Couper",selectall:"Sélectionner tout","Open link":"Ouvrir le lien","Edit link":"Modifier le lien","No follow":"Attribut Nofollow",Unlink:"Supprimer le lien",Eye:"Voir",pencil:"Pour éditer"," URL":"URL",Reset:"Restaurer",Save:"Sauvegarder","Save as ...":"Enregistrer sous",Resize:"Changer la taille",Crop:"Taille de garniture",Width:"Largeur",Height:"Hauteur","Keep Aspect Ratio":"Garder les proportions",Yes:"Oui",No:"Non",Remove:"Supprimer",Select:"Mettre en évidence","Select %s":"Mettre en évidence: %s",Update:"Mettre à jour","Vertical align":"Alignement vertical",Merge:"aller","Add column":"Ajouter une colonne","Add row":"Ajouter une rangée",Delete:"Effacer","Horizontal align":"Alignement horizontal","Sort by changed":"Trier par modification","Sort by name":"Trier par nom","Sort by size":"Trier par taille","Add folder":"Créer le dossier","You can only edit your own images. Download this image on the host?":"Vous ne pouvez éditer que vos propres images. Téléchargez cette image sur l'hôte?","The image has been successfully uploaded to the host!":"L'image a été téléchargée avec succès sur le serveur!",palette:"Palette","There are no files":"Il n'y a aucun fichier dans ce répertoire.",Rename:"renommer","Enter new name":"Entrez un nouveau nom",preview:"Aperçu",download:"Télécharger","Paste from clipboard":"Coller à partir du presse-papiers","Your browser doesn't support direct access to the clipboard.":"Votre navigateur ne prend pas en charge l'accès direct au presse-papiers.","Copy selection":"Copier la sélection",copy:"copie","Border radius":"Rayon des bordures","Show all":"Afficher tous",Apply:"Appliquer","Please fill out this field":"Veuillez remplir ce champ","Please enter a web address":"Veuillez entrer une adresse web",Default:"Par défaut",Circle:"Cercle",Dot:"Point",Quadrate:"Quadratique",Find:"Trouver","Find Previous":"Précédent","Find Next":"Suivant","Insert className":"Insérer un nom de classe","Press Alt for custom resizing":"Appuyez sur Alt pour un redimensionnement personnalisé","Embed code":"Code d'intégration",Edit:"Modifier",All:"Tout sélectionner","License: %s":"Licence: %s"},he:{"Type something":"הקלד משהו...",Advanced:"מתקדם","About Jodit":"About Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit User's Guide","contains detailed help for using":"contains detailed help for using.","For information about the license, please go to our website:":"For information about the license, please go to our website:","Buy full version":"Buy full version","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"מקום עיגון","Open in new tab":"פתח בכרטיסיה חדשה","Open in fullsize":"פתח את העורך בחלון חדש","Clear Formatting":"נקה עיצוב","Fill color or set the text color":"שנה צבע טקסט או רקע",Redo:"בצע שוב",Undo:"בטל",Bold:"מודגש",Italic:"נטוי","Insert Unordered List":"הכנס רשימת תבליטים","Insert Ordered List":"הכנס רשימה ממוספרת","Align Center":"מרכז","Align Justify":"ישר ","Align Left":"ישר לשמאל","Align Right":"ישר לימין","Insert Horizontal Line":"הכנס קו אופקי","Insert Image":"הכנס תמונה","Insert file":"הכנס קובץ","Insert youtube/vimeo video":"הכנס סרטון וידאו מYouTube/Vimeo","Insert link":"הכנס קישור","Font size":"גודל גופן","Font family":"גופן","Insert format block":"מעוצב מראש",Normal:"רגיל","Heading 1":"כותרת 1","Heading 2":"כותרת 2","Heading 3":"כותרת 3","Heading 4":"כותרת 4",Quote:"ציטוט",Code:"קוד",Insert:"הכנס","Insert table":"הכנס טבלה","Decrease Indent":"הקטן כניסה","Increase Indent":"הגדל כניסה","Select Special Character":"בחר תו מיוחד","Insert Special Character":"הכנס תו מיוחד","Paint format":"העתק עיצוב","Change mode":"החלף מצב",Margins:"ריווח",top:"עליון",right:"ימין",bottom:"תחתון",left:"שמאל",Styles:"עיצוב CSS",Classes:"מחלקת CSS",Align:"יישור",Right:"ימין",Center:"מרכז",Left:"שמאל","--Not Set--":"--לא נקבע--",Src:"מקור",Title:"כותרת",Alternative:"כיתוב חלופי",Link:"קישור","Open link in new tab":"פתח בכרטיסיה חדשה",Image:"תמונה",file:"קובץ","Image properties":"מאפייני תמונה",Cancel:"ביטול",Ok:"אישור","Your code is similar to HTML. Keep as HTML?":"הקוד דומה לHTML, האם להשאיר כHTML","Paste as HTML":"הדבק כHTML",Keep:"השאר",Clean:"נקה","Insert as Text":"הכנס כטקסט","Word Paste Detected":'זוהתה הדבקה מ"וורד"',"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"התוכן המודבק מגיע ממסמך וורד/אקסל. האם ברצונך להשאיר את העיצוב או לנקותו","Insert only Text":"הכנס טקסט בלבד","File Browser":"סייר הקבצים","Error on load list":"שגיאה בזמן טעינת רשימה","Error on load folders":"שגיאה בזמן טעינת תקיות","Are you sure?":"האם אתה בטוח?","Enter Directory name":"הכנס שם תקיה","Create directory":"צור תקיה","type name":"סוג הקובץ","type dir name":"סוג הקובץ","Drop image":"הסר תמונה","Drop file":"הסר קובץ","or click":"או לחץ","Alternative text":"כיתוב חלופי",Browse:"סייר",Upload:"העלה",Background:"רקע",Text:"טקסט",Top:"עליון",Middle:"מרכז",Bottom:"תחתון","Insert column before":"הכנס עמודה לפני","Insert column after":"הכנס עמודה אחרי","Insert row above":"הכנס שורה מעל","Insert row below":"הכנס שורה מתחת","Delete table":"מחק טבלה","Delete row":"מחק שורה","Delete column":"מחק עמודה","Empty cell":"רוקן תא",Delete:"מחק","Strike through":"קו חוצה",Underline:"קו תחתון",Break:"שבירת שורה","Search for":"חפש","Replace with":"החלף ב",Replace:"להחליף",Edit:"ערוך","Vertical align":"יישור אנכי","Horizontal align":"יישור אופקי",Filter:"סנן","Sort by changed":"מין לפי שינוי","Sort by name":"מיין לפי שם","Sort by size":"מיין לפי גודל","Add folder":"הוסף תקייה",Split:"פיצול","Split vertical":"פיצול אנכי","Split horizontal":"פיצול אופקי",Merge:"מזג","Add column":"הוסף עמודה","Add row":"הוסף שורה",Border:"מסגרת","Embed code":"הוסף קוד",Update:"עדכן",superscript:"superscript",subscript:"subscript","Cut selection":"גזור בחירה",Paste:"הדבק","Choose Content to Paste":"בחר תוכן להדבקה","Chars: %d":"תווים: %d","Words: %d":"מילים: %d",All:"הכל","Select %s":"נבחר: %s","Select all":"בחר הכל",source:"HTML",bold:"מודגש",italic:"נטוי",brush:"מברשת",link:"קישור",undo:"בטל",redo:"בצע שוב",table:"טבלה",image:"תמונה",eraser:"מחק",paragraph:"פסקה",fontsize:"גודל גופן",video:"וידאו",font:"גופן",about:"עלינו",print:"הדפס",underline:"קו תחתון",strikethrough:"קו חוצה",indent:"הגדל כניסה",outdent:"הקטן כניסה",fullsize:"גודל מלא",shrink:"כווץ",hr:"קו אופקי",ul:"רשימת תבליטים",ol:"רשימה ממוספרת",cut:"חתוך",selectall:"בחר הכל","Open link":"פתח קישור","Edit link":"ערוך קישור","No follow":"ללא מעקב",Unlink:"בטל קישור",Eye:"הצג",pencil:"כדי לערוך"," URL":"כתובת",Reset:"אפס",Save:"שמור","Save as ...":"שמור בשם...",Resize:"שנה גודל",Crop:"חתוך",Width:"רוחב",Height:"גובה","Keep Aspect Ratio":"שמור יחס",Yes:"כן",No:"לא",Remove:"הסר",Select:"בחר","You can only edit your own images. Download this image on the host?":"רק קבצים המשוייכים שלך ניתנים לעריכה. האם להוריד את הקובץ?","The image has been successfully uploaded to the host!":"התמונה עלתה בהצלחה!",palette:"לוח","There are no files":"אין קבצים בספריה זו.",Rename:"הונגרית","Enter new name":"הזן שם חדש",preview:"תצוגה מקדימה",download:"הורד","Paste from clipboard":"להדביק מהלוח","Your browser doesn't support direct access to the clipboard.":"הדפדפן שלך לא תומך גישה ישירה ללוח.","Copy selection":"העתק בחירה",copy:"העתק","Border radius":"רדיוס הגבול","Show all":"הצג את כל",Apply:"החל","Please fill out this field":"נא למלא שדה זה","Please enter a web address":"אנא הזן כתובת אינטרנט",Default:"ברירת המחדל",Circle:"מעגל",Dot:"נקודה",Quadrate:"הריבוע הזה",Find:"למצוא","Find Previous":"מצא את הקודם","Find Next":"חפש את הבא","Insert className":"הכנס את שם הכיתה","Press Alt for custom resizing":"לחץ על אלט לשינוי גודל מותאם אישית","License: %s":"רישיון: %s"},hu:{"Type something":"Írjon be valamit",Advanced:"Haladó","About Jodit":"Joditról","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Ingyenes változat","Jodit User's Guide":"Jodit útmutató","contains detailed help for using":"további segítséget tartalmaz","For information about the license, please go to our website:":"További licence információkért látogassa meg a weboldalunkat:","Buy full version":"Teljes verzió megvásárlása","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Minden jog fenntartva.",Anchor:"Horgony","Open in new tab":"Megnyitás új lapon","Open in fullsize":"Megnyitás teljes méretben","Clear Formatting":"Formázás törlése","Fill color or set the text color":"Háttér/szöveg szín",Redo:"Újra",Undo:"Visszavon",Bold:"Félkövér",Italic:"Dőlt","Insert Unordered List":"Pontozott lista","Insert Ordered List":"Számozott lista","Align Center":"Középre zárt","Align Justify":"Sorkizárt","Align Left":"Balra zárt","Align Right":"Jobbra zárt","Insert Horizontal Line":"Vízszintes vonal beszúrása","Insert Image":"Kép beszúrás","Insert file":"Fájl beszúrás","Insert youtube/vimeo video":"Youtube videó beszúrása","Insert link":"Link beszúrás","Font size":"Betűméret","Font family":"Betűtípus","Insert format block":"Formázott blokk beszúrása",Normal:"Normál","Heading 1":"Fejléc 1","Heading 2":"Fejléc 2","Heading 3":"Fejléc 3","Heading 4":"Fejléc 4",Quote:"Idézet",Code:"Kód",Insert:"Beszúr","Insert table":"Táblázat beszúrása","Decrease Indent":"Behúzás csökkentése","Increase Indent":"Behúzás növelése","Select Special Character":"Speciális karakter kiválasztása","Insert Special Character":"Speciális karakter beszúrása","Paint format":"Kép formázása","Change mode":"Nézet váltása",Print:"Nyomtatás",Margins:"Szegélyek",top:"felső",right:"jobb",bottom:"alsó",left:"bal",Styles:"CSS stílusok",Classes:"CSS osztályok",Align:"Igazítás",Right:"Jobbra",Center:"Középre",Left:"Balra","--Not Set--":"Nincs",Src:"Forrás",Title:"Cím",Alternative:"Helyettesítő szöveg",Link:"Link","Open link in new tab":"Link megnyitása új lapon",Image:"Kép",file:"Fájl","Image properties":"Kép tulajdonságai",Cancel:"Mégsem",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"A beillesztett szöveg HTML-nek tűnik. Megtartsuk HTML-ként?","Paste as HTML":"Beszúrás HTML-ként",Keep:"Megtartás",Clean:"Elvetés","Insert as Text":"Beszúrás szövegként","Word Paste Detected":"Word-ből másolt szöveg","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"A beillesztett tartalom Microsoft Word/Excel dokumentumból származik. Meg szeretné tartani a formátumát?","Insert only Text":"Csak szöveg beillesztése","File Browser":"Fájl tallózó","Error on load list":"Hiba a lista betöltése közben","Error on load folders":"Hiba a mappák betöltése közben","Are you sure?":"Biztosan ezt szeretné?","Enter Directory name":"Írjon be egy mappanevet","Create directory":"Mappa létrehozása","type name":"írjon be bevet","type dir name":"írjon be bevet","Drop image":"Húzza ide a képet","Drop file":"Húzza ide a fájlt","or click":"vagy kattintson","Alternative text":"Helyettesítő szöveg",Browse:"Tallóz",Upload:"Feltölt",Background:"Háttér",Text:"Szöveg",Top:"Fent",Middle:"Középen",Bottom:"Lent","Insert column before":"Oszlop beszúrás elé","Insert column after":"Oszlop beszúrás utána","Insert row above":"Sor beszúrás fölé","Insert row below":"Sor beszúrás alá","Delete table":"Táblázat törlése","Delete row":"Sor törlése","Delete column":"Oszlop törlése","Empty cell":"Cella tartalmának törlése",Delete:"Törlés","Strike through":"Áthúzott",Underline:"Aláhúzott",Break:"Szünet","Search for":"Keresés","Replace with":"Csere erre",Replace:"Cserélje ki",Edit:"Szerkeszt","Vertical align":"Függőleges igazítás","Horizontal align":"Vízszintes igazítás",Filter:"Szűrő","Sort by changed":"Rendezés módosítás szerint","Sort by name":"Rendezés név szerint","Sort by size":"Rendezés méret szerint","Add folder":"Mappa hozzáadás","Split vertical":"Függőleges felosztás","Split horizontal":"Vízszintes felosztás",Merge:"Összevonás","Add column":"Oszlop hozzáadás","Add row":"Sor hozzáadás",Border:"Szegély","Embed code":"Beágyazott kód",Update:"Frissít",superscript:"Felső index",subscript:"Alsó index","Cut selection":"Kivágás",Paste:"Beillesztés","Choose Content to Paste":"Válasszon tartalmat a beillesztéshez",Split:"Felosztás","Chars: %d":"Karakterek száma: %d","Words: %d":"Szavak száma: %d",All:"Összes","Select %s":"Kijelöl: %s","Select all":"Összes kijelölése",source:"HTML",bold:"Félkövér",italic:"Dőlt",brush:"Ecset",link:"Link",undo:"Visszavon",redo:"Újra",table:"Táblázat",image:"Kép",eraser:"Törlés",paragraph:"Paragráfus",fontsize:"Betűméret",video:"Videó",font:"Betű",about:"Rólunk",print:"Nyomtat",underline:"Aláhúzott",strikethrough:"Áthúzott",indent:"Behúzás",outdent:"Aussenseiter",fullsize:"Teljes méret",shrink:"Összenyom",hr:"Egyenes vonal",ul:"Lista",ol:"Számozott lista",cut:"Kivág",selectall:"Összes kijelölése","Open link":"Link megnyitása","Edit link":"Link szerkesztése","No follow":"Nincs követés",Unlink:"Link leválasztása",Eye:"felülvizsgálat",pencil:"Szerkesztés"," URL":"URL",Reset:"Visszaállít",Save:"Mentés","Save as ...":"Mentés másként...",Resize:"Átméretezés",Crop:"Kivág",Width:"Szélesség",Height:"Magasság","Keep Aspect Ratio":"Képarány megtartása",Yes:"Igen",No:"Nem",Remove:"Eltávolít",Select:"Kijelöl","You can only edit your own images. Download this image on the host?":"Csak a saját képeit tudja szerkeszteni. Letölti ezt a képet?","The image has been successfully uploaded to the host!":"Kép sikeresen feltöltve!",palette:"Palette","There are no files":"Er zijn geen bestanden in deze map.",Rename:"átnevezés","Enter new name":"Adja meg az új nevet",preview:"előnézet",download:"Letöltés","Paste from clipboard":"Illessze be a vágólap","Your browser doesn't support direct access to the clipboard.":"A böngésző nem támogatja a közvetlen hozzáférést biztosít a vágólapra.","Copy selection":"Másolás kiválasztása",copy:"másolás","Border radius":"Határ sugár","Show all":"Összes",Apply:"Alkalmazni","Please fill out this field":"Kérjük, töltse ki ezt a mezőt,","Please enter a web address":"Kérjük, írja be a webcímet",Default:"Alapértelmezett",Circle:"Kör",Dot:"Pont",Quadrate:"Quadrate",Find:"Találni","Find Previous":"Megtalálja Előző","Find Next":"Következő Keresése","Insert className":"Helyezze be az osztály nevét","Press Alt for custom resizing":"Nyomja meg az Alt egyéni átméretezés","License: %s":"Licenc: %s"},id:{"Type something":"Ketik sesuatu","About Jodit":"Tentang Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Versi Bebas Non-komersil","Jodit User's Guide":"Panduan Pengguna Jodit","contains detailed help for using":"mencakup detail bantuan penggunaan","For information about the license, please go to our website:":"Untuk informasi tentang lisensi, silakan kunjungi website:","Buy full version":"Beli versi lengkap","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Hak Cipta © XDSoft.net - Chupurnov Valeriy. Hak cipta dilindungi undang-undang.",Anchor:"Tautan","Open in new tab":"Buka di tab baru","Open in fullsize":"Buka editor dalam ukuran penuh","Clear Formatting":"Hapus Pemformatan","Fill color or set the text color":"Isi warna atau atur warna teks",Redo:"Ulangi",Undo:"Batalkan",Bold:"Tebal",Italic:"Miring","Insert Unordered List":"Sisipkan Daftar Tidak Berurut","Insert Ordered List":"Sisipkan Daftar Berurut","Align Center":"Tengah","Align Justify":"Penuh","Align Left":"Kiri","Align Right":"Kanan","Insert Horizontal Line":"Sisipkan Garis Horizontal","Insert Image":"Sisipkan Gambar","Insert file":"Sisipkan Berkas","Insert youtube/vimeo video":"Sisipkan video youtube/vimeo","Insert link":"Sisipkan tautan","Font size":"Ukuran font","Font family":"Keluarga font","Insert format block":"Sisipkan blok format",Normal:"Normal","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4",Quote:"Kutip",Code:"Kode",Insert:"Sisipkan","Insert table":"Sisipkan tabel","Decrease Indent":"Kurangi Indentasi","Increase Indent":"Tambah Indentasi","Select Special Character":"Pilih Karakter Spesial","Insert Special Character":"Sisipkan Karakter Spesial","Paint format":"Formar warna","Change mode":"Ubah mode",Margins:"Batas",top:"atas",right:"kanan",bottom:"bawah",left:"kiri",Styles:"Gaya",Classes:"Class",Align:"Rata",Right:"Kanan",Center:"Tengah",Left:"Kiri","--Not Set--":"--Tidak diset--",Src:"Src",Title:"Judul",Alternative:"Teks alternatif",Link:"Tautan","Open link in new tab":"Buka tautan di tab baru",Image:"Gambar",file:"berkas",Advanced:"Lanjutan","Image properties":"Properti gambar",Cancel:"Batal",Ok:"Ya","Your code is similar to HTML. Keep as HTML?":"Kode Anda cenderung ke HTML. Biarkan sebagai HTML?","Paste as HTML":"Paste sebagai HTML",Keep:"Jaga",Clean:"Bersih","Insert as Text":"Sisipkan sebagai teks","Insert only Text":"Sisipkan hanya teks","Word Paste Detected":"Terdeteksi paste dari Word","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Konten dipaste dari dokumen Microsoft Word/Excel. Apakah Anda ingin tetap menjaga format atau membersihkannya?","File Browser":"Penjelajah Berkas","Error on load list":"Error ketika memuat list","Error on load folders":"Error ketika memuat folder","Are you sure?":"Apakah Anda yakin?","Enter Directory name":"Masukkan nama Direktori","Create directory":"Buat direktori","type name":"ketik nama","type dir name":"ketik nama","Drop image":"Letakkan gambar","Drop file":"Letakkan berkas","or click":"atau klik","Alternative text":"Teks alternatif",Browse:"Jelajahi",Upload:"Unggah",Background:"Latar Belakang",Text:"Teks",Top:"Atas",Middle:"Tengah",Bottom:"Bawah","Insert column before":"Sisipkan kolom sebelumnya","Insert column after":"Sisipkan kolom setelahnya","Insert row above":"Sisipkan baris di atasnya","Insert row below":"Sisipkan baris di bawahnya","Delete table":"Hapus tabel","Delete row":"Hapus baris","Delete column":"Hapus kolom","Empty cell":"Kosongkan cell",source:"sumber",bold:"tebal",italic:"miring",brush:"sikat",link:"tautan",undo:"batalkan",redo:"ulangi",table:"tabel",image:"gambar",eraser:"penghapus",paragraph:"paragraf",fontsize:"ukuran font",video:"video",font:"font",about:"tentang",print:"cetak",underline:"garis bawah",strikethrough:"coret",indent:"menjorok ke dalam",outdent:"menjorok ke luar",fullsize:"ukuran penuh",shrink:"menyusut",hr:"hr",ul:"ul",ol:"ol",cut:"potong",selectall:"Pilih semua","Embed code":"Kode embed","Open link":"Buka tautan","Edit link":"Edit tautan","No follow":"No follow",Unlink:"Hapus tautan",Eye:"Mata",pencil:"pensil",Update:"Perbarui"," URL":"URL",Edit:"Edit","Horizontal align":"Perataan horizontal",Filter:"Filter","Sort by changed":"Urutkan berdasarkan perubahan","Sort by name":"Urutkan berdasarkan nama","Sort by size":"Urutkan berdasarkan ukuran","Add folder":"Tambah folder",Reset:"Reset",Save:"Simpan","Save as ...":"Simpan sebagai...",Resize:"Ubah ukuran",Crop:"Crop",Width:"Lebar",Height:"Tinggi","Keep Aspect Ratio":"Jaga aspek rasio",Yes:"Ya",No:"Tidak",Remove:"Copot",Select:"Pilih","Chars: %d":"Karakter: %d","Words: %d":"Kata: %d",All:"Semua","Select %s":"Pilih %s","Select all":"Pilih semua","Vertical align":"Rata vertikal",Split:"Bagi","Split vertical":"Bagi secara vertikal","Split horizontal":"Bagi secara horizontal",Merge:"Gabungkan","Add column":"Tambah kolom","Add row":"tambah baris",Delete:"Hapus",Border:"Bingkai","License: %s":"Lisensi: %s","Strike through":"Coret",Underline:"Garis Bawah",superscript:"Superskrip",subscript:"Subskrip","Cut selection":"Potong pilihan",Break:"Berhenti","Search for":"Mencari","Replace with":"Ganti dengan",Replace:"Mengganti",Paste:"Paste","Choose Content to Paste":"Pilih konten untuk dipaste","You can only edit your own images. Download this image on the host?":"Anda hanya dapat mengedit gambar Anda sendiri. Unduh gambar ini di host?","The image has been successfully uploaded to the host!":"Gambar telah sukses diunggah ke host!",palette:"palet","There are no files":"Tidak ada berkas",Rename:"ganti nama","Enter new name":"Masukkan nama baru",preview:"pratinjau",download:"Unduh","Paste from clipboard":"Paste dari clipboard","Your browser doesn't support direct access to the clipboard.":"Browser anda tidak mendukung akses langsung ke clipboard.","Copy selection":"Copy seleksi",copy:"copy","Border radius":"Border radius","Show all":"Tampilkan semua",Apply:"Menerapkan","Please fill out this field":"Silahkan mengisi kolom ini","Please enter a web address":"Silahkan masukkan alamat web",Default:"Default",Circle:"Lingkaran",Dot:"Dot",Quadrate:"Kuadrat",Find:"Menemukan","Find Previous":"Menemukan Sebelumnya","Find Next":"Menemukan Berikutnya","Insert className":"Masukkan nama kelas","Press Alt for custom resizing":"Tekan Alt untuk mengubah ukuran kustom"},it:{"Type something":"Scrivi qualcosa...",Advanced:"Avanzato","About Jodit":"A proposito di Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Guida utente di Jodit","contains detailed help for using":"contiene una guida dettagliata per l'uso.","For information about the license, please go to our website:":"Per informazioni sulla licenza, si prega di visitare il nostro sito web:","Buy full version":"Acquista la versione completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tutti i diritti riservati.",Anchor:"Link","Open in new tab":"Apri in una nuova scheda","Open in fullsize":"Apri l'editor a schermo intero","Clear Formatting":"Pulisci Formattazione","Fill color or set the text color":"Colore di sfondo o del testo",Redo:"Ripristina",Undo:"Annulla",Bold:"Grassetto",Italic:"Corsivo","Insert Unordered List":"Inserisci lista non ordinata","Insert Ordered List":"Inserisci lista ordinata","Align Center":"Allinea al centro","Align Justify":"Allineamento Giustificato","Align Left":"Allinea a Sinistra","Align Right":"Allinea a Destra","Insert Horizontal Line":"Inserisci una linea orizzontale","Insert Image":"Inserisci immagine","Insert file":"Inserisci un file","Insert youtube/vimeo video":"Inserisci video Youtube/Vimeo","Insert link":"Inserisci link","Font size":"Dimensione carattere","Font family":"Tipo di font","Insert format block":"Inserisci blocco",Normal:"Normale","Heading 1":"Intestazione 1","Heading 2":"Intestazione 2","Heading 3":"Intestazione 3","Heading 4":"Intestazione 4",Quote:"Citazione",Code:"Codice",Insert:"Inserisci","Insert table":"Inserisci tabella","Decrease Indent":"Riduci il rientro","Increase Indent":"Aumenta il rientro","Select Special Character":"Seleziona un carattere speciale","Insert Special Character":"Inserisci un carattere speciale","Paint format":"Copia formato","Change mode":"Cambia modalita'",Margins:"Margini",top:"su",right:"destra",bottom:"giù",left:"sinistra",Styles:"Stili CSS",Classes:"Classi CSS",Align:"Allinea",Right:"Destra",Center:"Centro",Left:"Sinistra","--Not Set--":"--Non Impostato--",Src:"Fonte",Title:"Titolo",Alternative:"Testo Alternativo",Link:"Link","Open link in new tab":"Apri il link in una nuova scheda",Image:"Immagine",file:"Archivio","Image properties":"Proprietà dell'immagine",Cancel:"Annulla",Ok:"Accetta","Your code is similar to HTML. Keep as HTML?":"Il codice è simile all'HTML. Mantieni come HTML?","Paste as HTML":"Incolla come HTML",Keep:"Mantieni",Clean:"Pulisci","Insert as Text":"Inserisci come testo","Word Paste Detected":"Incolla testo da Word rilevato","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Il contenuto incollato proviene da un documento Microsoft Word / Excel. Vuoi mantenere il formato o pulirlo?","Insert only Text":"Inserisci solo il testo","File Browser":"Cerca file","Error on load list":"Errore durante il caricamento dell'elenco","Error on load folders":"Errore durante il caricamento delle cartelle","Are you sure?":"Sei sicuro?","Enter Directory name":"Inserisci il nome della cartella","Create directory":"Crea cartella","type name":"Digita il nome","type dir name":"Digita il nome","Drop image":"Cancella immagine","Drop file":"Cancella file","or click":"o clicca","Alternative text":"Testo alternativo",Browse:"Sfoglia",Upload:"Carica",Background:"Sfondo",Text:"Testo",Top:"Su",Middle:"Centro",Bottom:"Sotto","Insert column before":"Inserisci la colonna prima","Insert column after":"Inserisci la colonna dopo","Insert row above":"Inserisci la riga sopra","Insert row below":"Inserisci la riga sotto","Delete table":"Elimina tabella","Delete row":"Elimina riga","Delete column":"Elimina colonna","Empty cell":"Cella vuota",Delete:"Cancella","Strike through":"Barrato",Underline:"Sottolineato",Break:"Pausa","Search for":"Cerca per","Replace with":"Sostituisci con",Replace:"Sostituisci",Edit:"Modifica","Vertical align":"Allineamento verticala","Horizontal align":"Allineamento orizzontale",Filter:"Filtro","Sort by changed":"Ordina per data di modifica","Sort by name":"Ordina per nome","Sort by size":"Ordina per dimensione","Add folder":"Aggiungi cartella",Split:"Dividi","Split vertical":"Dividi verticalmente","Split horizontal":"Dividi orizzontale",Merge:"Fondi","Add column":"Aggiungi colonna","Add row":"Aggiungi riga",Border:"Bordo","Embed code":"Includi codice",Update:"Aggiorna",superscript:"indice",subscript:"pedice","Cut selection":"Taglia selezione",Paste:"Incolla","Choose Content to Paste":"Seleziona il contenuto da incollare","Chars: %d":"Caratteri: %d","Words: %d":"Parole: %d",All:"Tutto","Select %s":"Seleziona: %s","Select all":"Seleziona tutto",source:"risorsa",bold:"Grassetto",italic:"Corsivo",brush:"Pennello",link:"Link",undo:"Annulla",redo:"Ripristina",table:"Tabella",image:"Immagine",eraser:"Gomma",paragraph:"Paragrafo",fontsize:"Dimensione del carattere",video:"Video",font:"Font",about:"Approposito di",print:"Stampa",underline:"Sottolineato",strikethrough:"Barrato",indent:"aumenta rientro",outdent:"riduci rientro",fullsize:"espandi",shrink:"comprimi",hr:"linea orizzontale",ul:"lista non ordinata",ol:"lista ordinata",cut:"Taglia",selectall:"Seleziona tutto","Open link":"Apri link","Edit link":"Modifica link","No follow":"Non seguire",Unlink:"Rimuovi link",Eye:"Recensione",pencil:"Per modificare"," URL":" URL",Reset:"Reset",Save:"Salva","Save as ...":"Salva con nome...",Resize:"Ridimensiona",Crop:"Ritaglia",Width:"Larghezza",Height:"Altezza","Keep Aspect Ratio":"Mantieni le proporzioni",Yes:"Si",No:"No",Remove:"Rimuovi",Select:"Seleziona","You can only edit your own images. Download this image on the host?":"Puoi modificare solo le tue immagini. Vuoi scaricare questa immagine dal server?","The image has been successfully uploaded to the host!":"L'immagine è stata caricata correttamente sul server!",palette:"tavolozza","There are no files":"Non ci sono file in questa directory.",Rename:"Rinomina","Enter new name":"Inserisci un nuovo nome",preview:"anteprima",download:"Scarica","Paste from clipboard":"Incolla dagli appunti","Your browser doesn't support direct access to the clipboard.":"Il tuo browser non supporta l'accesso diretto agli appunti.","Copy selection":"Copia selezione",copy:"copia","Border radius":"Border radius","Show all":"Mostra tutti",Apply:"Applica","Please fill out this field":"Si prega di compilare questo campo","Please enter a web address":"Si prega di inserire un indirizzo web",Default:"Default",Circle:"Cerchio",Dot:"Punto",Quadrate:"Quadrato","Lower Alpha":"Lettera Minuscola","Lower Greek":"Lettera Greca Minuscola","Lower Roman":"Numero Romano Minuscolo","Upper Alpha":"Lettera Maiuscola","Upper Roman":"Numero Romano Maiuscolo",Find:"Trova","Find Previous":"Trova Precedente","Find Next":"Trova Successivo","Insert className":"Inserisci il nome della classe","Press Alt for custom resizing":"Premere Alt per il ridimensionamento personalizzato","License: %s":"Licenza: %s"},ja:{"Type something":"なにかタイプしてください",Advanced:"高度な設定","About Jodit":"Joditについて","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit ユーザーズ・ガイド","contains detailed help for using":"詳しい使い方","For information about the license, please go to our website:":"ライセンス詳細についてはJodit Webサイトを確認ください:","Buy full version":"フルバージョンを購入","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"Anchor","Open in new tab":"新しいタブで開く","Open in fullsize":"エディターのサイズ(フル/ノーマル)","Clear Formatting":"書式をクリア","Fill color or set the text color":"テキストの色",Redo:"やり直し",Undo:"元に戻す",Bold:"太字",Italic:"斜体","Insert Unordered List":"箇条書き","Insert Ordered List":"番号付きリスト","Align Center":"中央揃え","Align Justify":"両端揃え","Align Left":"左揃え","Align Right":"右揃え","Insert Horizontal Line":"区切り線を挿入","Insert Image":"画像を挿入","Insert file":"ファイルを挿入","Insert youtube/vimeo video":"Youtube/Vimeo 動画","Insert link":"リンクを挿入","Font size":"フォントサイズ","Font family":"フォント","Insert format block":"テキストのスタイル",Normal:"指定なし","Heading 1":"タイトル1","Heading 2":"タイトル2","Heading 3":"タイトル3","Heading 4":"タイトル4",Quote:"引用",Code:"コード",Insert:"挿入","Insert table":"表を挿入","Decrease Indent":"インデント減","Increase Indent":"インデント増","Select Special Character":"特殊文字を選択","Insert Special Character":"特殊文字を挿入","Paint format":"書式を貼付け","Change mode":"編集モード切替え",Margins:"マージン",top:"上",right:"右",bottom:"下",left:"左",Styles:"スタイル",Classes:"クラス",Align:"配置",Right:"右寄せ",Center:"中央寄せ",Left:"左寄せ","--Not Set--":"指定なし",Src:"ソース",Title:"タイトル",Alternative:"代替テキスト",Link:"リンク","Open link in new tab":"新しいタブで開く",Image:"画像",file:"ファイル","Image properties":"画像のプロパティー",Cancel:"キャンセル",Ok:"確定","Your code is similar to HTML. Keep as HTML?":"HTMLコードを保持しますか?","Paste as HTML":"HTMLで貼付け",Keep:"HTMLを保持",Clean:"Clean","Insert as Text":"HTMLをテキストにする","Word Paste Detected":"Word Paste Detected","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Insert only Text":"テキストだけ","File Browser":"File Browser","Error on load list":"Error on load list","Error on load folders":"Error on load folders","Are you sure?":"Are you sure?","Enter Directory name":"Enter Directory name","Create directory":"Create directory","type name":"type name","type dir name":"type name","Drop image":"ここに画像をドロップ","Drop file":"ここにファイルをドロップ","or click":"or クリック","Alternative text":"代替テキスト",Browse:"ブラウズ",Upload:"アップロード",Background:"背景",Text:"文字",Top:"上",Middle:"中央",Bottom:"下","Insert column before":"左に列を挿入","Insert column after":"右に列を挿入","Insert row above":"上に行を挿入","Insert row below":"下に行を挿入","Delete table":"表を削除","Delete row":"行を削除","Delete column":"列を削除","Empty cell":"セルを空にする","Chars: %d":"文字数: %d","Words: %d":"単語数: %d","Strike through":"取り消し線",Underline:"下線",superscript:"上付き文字",subscript:"下付き文字","Cut selection":"切り取り","Select all":"すべて選択",Break:"Pause","Search for":"検索","Replace with":"置換",Replace:"交換",Paste:"貼付け","Choose Content to Paste":"選択した内容を貼付け",All:"全部",source:"source",bold:"bold",italic:"italic",brush:"brush",link:"link",undo:"undo",redo:"redo",table:"table",image:"image",eraser:"eraser",paragraph:"paragraph",fontsize:"fontsize",video:"video",font:"font",about:"about",print:"print",underline:"underline",strikethrough:"strikethrough",indent:"indent",outdent:"outdent",fullsize:"fullsize",shrink:"shrink",hr:"分割線",ul:"箇条書き",ol:"番号付きリスト",cut:"切り取り",selectall:"すべて選択","Open link":"リンクを開く","Edit link":"リンクを編集","No follow":"No follow",Unlink:"リンク解除",Eye:"サイトを確認"," URL":"URL",Reset:"リセット",Save:"保存","Save as ...":"Save as ...",Resize:"リサイズ",Crop:"Crop",Width:"幅",Height:"高さ","Keep Aspect Ratio":"縦横比を保持",Yes:"はい",No:"いいえ",Remove:"移除",Select:"選択","Select %s":"選択: %s",Update:"更新","Vertical align":"垂直方向の配置",Merge:"セルの結合","Add column":"列を追加","Add row":"行を追加",Border:"境界線","Embed code":"埋め込みコード",Delete:"削除",Edit:"編集","Horizontal align":"水平方向の配置",Filter:"Filter","Sort by changed":"Sort by changed","Sort by name":"Sort by name","Sort by size":"Sort by size","Add folder":"Add folder",Split:"分割","Split vertical":"セルの分割(垂直方向)","Split horizontal":"セルの分割(水平方向)","You can only edit your own images. Download this image on the host?":"You can only edit your own images. Download this image on the host?","The image has been successfully uploaded to the host!":"The image has been successfully uploaded to the host!",palette:"パレット",pencil:"鉛筆","There are no files":"There are no files",Rename:"Rename","Enter new name":"Enter new name",preview:"プレビュー",download:"ダウンロード","Paste from clipboard":"貼り付け","Your browser doesn't support direct access to the clipboard.":"お使いのブラウザはクリップボードを使用できません","Copy selection":"コピー",copy:"copy","Border radius":"角の丸み","Show all":"全て表示",Apply:"適用","Please fill out this field":"まだこの分野","Please enter a web address":"を入力してくださいウェブアドレス",Default:"デフォルト",Circle:"白丸",Dot:"黒丸",Quadrate:"四角",Find:"見","Find Previous":"探前","Find Next":"由来","Lower Alpha":"英小文字","Lower Greek":"ギリシャ文字","Lower Roman":"ローマ数字小文字","Upper Alpha":"英大文字","Upper Roman":"ローマ数字大文字","Insert className":"クラス名を挿入","Press Alt for custom resizing":"カスタムサイズ変更のためのAltキーを押します","License: %s":"ライセンス: %s"},ko:{"Type something":"무엇이든 입력하세요","About Jodit":"Jodit에 대하여","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit 사용자 안내서","contains detailed help for using":"자세한 도움말이 들어있어요","For information about the license, please go to our website:":"라이센스에 관해서는 Jodit 웹 사이트를 방문해주세요:","Buy full version":"풀 버전 구입하기","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"© XDSoft.net - Chupurnov Valeriy. 에게 저작권과 모든 권리가 있습니다.",Anchor:"Anchor","Open in new tab":"새 탭에서 열기","Open in fullsize":"전체 크기로 보기","Clear Formatting":"서식 지우기","Fill color or set the text color":"글씨 색상",Redo:"재실행",Undo:"실행 취소",Bold:"굵게",Italic:"기울임","Insert Unordered List":"글머리 목록","Insert Ordered List":"번호 목록","Align Center":"가운데 정렬","Align Justify":"양쪽 정렬","Align Left":"왼쪽 정렬","Align Right":"오른쪽 정렬","Insert Horizontal Line":"수평 구분선 넣기","Insert Image":"이미지 넣기","Insert file":"파일 넣기","Insert youtube/vimeo video":"Youtube/Vimeo 동영상","Insert link":"링크 넣기","Font size":"글꼴 크기","Font family":"글꼴","Insert format block":"블록 요소 넣기",Normal:"일반 텍스트","Heading 1":"제목 1","Heading 2":"제목 2","Heading 3":"제목 3","Heading 4":"제목 4",Quote:"인용",Code:"코드",Insert:"붙여 넣기","Insert table":"테이블","Decrease Indent":"들여쓰기 감소","Increase Indent":"들여쓰기 증가","Select Special Character":"특수문자 선택","Insert Special Character":"특수문자 입력","Paint format":"페인트 형식","Change mode":"편집모드 변경",Margins:"마진",top:"위",right:"오른쪽",bottom:"아래",left:"왼쪽",Styles:"스타일",Classes:"클래스",Align:"정렬",Right:"오른쪽으로",Center:"가운데로",Left:"왼쪽으로","--Not Set--":"--지정 안 함--",Src:"경로(src)",Title:"제목",Alternative:"대체 텍스트(alt)",Link:"링크","Open link in new tab":"새 탭에서 열기",file:"파일",Advanced:"고급","Image properties":"이미지 속성",Cancel:"취소",Ok:"확인","Your code is similar to HTML. Keep as HTML?":"HTML 코드로 감지했어요. 코드인채로 붙여넣을까요?","Paste as HTML":"HTML로 붙여넣기",Keep:"원본 유지",Clean:"지우기","Insert as Text":"텍스트로 넣기","Insert only Text":"텍스트만 넣기","Word Paste Detected":"Word 붙여넣기 감지","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Microsoft Word/Excel 문서로 감지했어요. 서식을 유지한채로 붙여넣을까요?","File Browser":"파일 탐색기","Error on load list":"목록 불러오기 에러","Error on load folders":"폴더 불러오기","Are you sure?":"정말 진행할까요?","Enter Directory name":"디렉토리 이름 입력","Create directory":"디렉토리 생성","type name":"이름 입력","type dir name":"이름 입력","Drop image":"이미지 드래그","Drop file":"파일 드래그","or click":"혹은 클릭","Alternative text":"대체 텍스트",Browse:"탐색",Upload:"업로드",Background:"배경",Text:"텍스트",Top:"위",Middle:"중앙",Bottom:"아래","Insert column before":"이전 열에 삽입","Insert column after":"다음 열에 삽입","Insert row above":"위 행에 삽입","Insert row below":"아래 행에 삽입","Delete table":"테이블 삭제","Delete row":"행 삭제","Delete column":"열 삭제","Empty cell":"빈 셀",source:"HTML 소스",bold:"볼드",italic:"이탤릭",brush:"브러시",link:"링크",undo:"실행 취소",redo:"재실행",table:"테이블",image:"이미지",eraser:"지우개",paragraph:"문단",fontsize:"글꼴 크기",video:"비디오",font:"글꼴",about:"편집기 정보",print:"프린트",underline:"밑줄",strikethrough:"취소선",indent:"들여쓰기",outdent:"내어쓰기",fullsize:"전체 화면",shrink:"일반 화면",hr:"구분선",ul:"글머리 목록",ol:"번호 목록",cut:"잘라내기",selectall:"모두 선택","Embed code":"Embed 코드","Open link":"링크 열기","Edit link":"링크 편집","No follow":"No follow",Unlink:"링크 제거",Eye:"사이트 확인",pencil:"연필",Update:"갱신"," URL":"URL",Edit:"편집","Horizontal align":"수평 정렬",Filter:"필터","Sort by changed":"변경일 정렬","Sort by name":"이름 정렬","Sort by size":"크기 정렬","Add folder":"새 폴더",Reset:"초기화",Save:"저장","Save as ...":"새로 저장하기 ...",Resize:"리사이즈",Crop:"크롭",Width:"가로 길이",Height:"세로 높이","Keep Aspect Ratio":"비율 유지하기",Yes:"네",No:"아니오",Remove:"제거",Select:"선택","Chars: %d":"문자수: %d","Words: %d":"단어수: %d",All:"모두","Select all":"모두 선택","Select %s":"선택: %s","Vertical align":"수직 정렬",Split:"분할","Split vertical":"세로 셀 분할","Split horizontal":"가로 셀 분할",Merge:"셀 병합","Add column":"열 추가","Add row":"행 추가",Delete:"삭제",Border:"외곽선","License: %s":"라이센스: %s","Strike through":"취소선",Underline:"밑줄",superscript:"윗첨자",subscript:"아래첨자","Cut selection":"선택 잘라내기",Break:"구분자","Search for":"검색","Replace with":"대체하기",Replace:"대체",Paste:"붙여넣기","Choose Content to Paste":"붙여넣을 내용 선택","You can only edit your own images. Download this image on the host?":"외부 이미지는 편집할 수 없어요. 외부 이미지를 다운로드 할까요?","The image has been successfully uploaded to the host!":"이미지를 무사히 업로드 했어요!",palette:"팔레트","There are no files":"파일이 없어요",Rename:"이름 변경","Enter new name":"새 이름 입력",preview:"미리보기",download:"다운로드","Paste from clipboard":"클립보드 붙여넣기","Your browser doesn't support direct access to the clipboard.":"사용중인 브라우저가 클립보드 접근을 지원하지 않아요.","Copy selection":"선택 복사",copy:"복사","Border radius":"둥근 테두리","Show all":"모두 보기",Apply:"적용","Please fill out this field":"이 항목을 입력해주세요!","Please enter a web address":"웹 URL을 입력해주세요.",Default:"기본",Circle:"원",Dot:"점",Quadrate:"정사각형",Find:"찾기","Find Previous":"이전 찾기","Find Next":"다음 찾기","Insert className":"className 입력","Press Alt for custom resizing":"사용자 지정 크기 조정에 대 한 고도 누르십시오"},mn:{"Type something":"Бичээд үзээрэй",Advanced:"Дэвшилтэт","About Jodit":"Jodit-ын талаар ","Jodit Editor":"Jodit програм","Jodit User's Guide":"Jodit гарын авлага","contains detailed help for using":"хэрэглээний талаар дэлгэрэнгүй мэдээллийг агуулна","For information about the license, please go to our website:":"Лицензийн мэдээллийг манай вэб хуудаснаас авна уу:","Buy full version":"Бүрэн хувилбар худалдан авах","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Зохиогчийн эрх хамгаалагдсан © XDSoft.net - Chupurnov Valeriy. Бүх эрхийг эзэмшинэ.",Anchor:"Холбоо барих","Open in new tab":"Шинэ табаар нээх","Open in fullsize":"Бүтэн дэлгэцээр нээх","Clear Formatting":"Форматыг арилгах","Fill color or set the text color":"Өнгөөр будах эсвэл текстийн өнгө сонгох",Redo:"Дахих",Undo:"Буцаах",Bold:"Тод",Italic:"Налуу","Insert Unordered List":"Тэмдэгт жагсаалт нэмэх","Insert Ordered List":"Дугаарт жагсаалт нэмэх","Align Center":"Голлож байрлуулах","Align Justify":"Тэгшитгэн байрлуулах","Align Left":"Зүүнд байрлуулах","Align Right":"Баруунд байрлуулах","Insert Horizontal Line":"Хэвтээ зураас нэмэх","Insert Image":"Зураг нэмэх","Insert file":"Файл нэмэх","Insert youtube/vimeo video":"Youtube/Vimeo видео нэмэх","Insert link":"Холбоос нэмэх","Font size":"Фонтын хэмжээ","Font family":"Фонтын бүл","Insert format block":"Блок нэмэх",Normal:"Хэвийн","Heading 1":"Гарчиг 1","Heading 2":"Гарчиг 2","Heading 3":"Гарчиг 3","Heading 4":"Гарчиг 4",Quote:"Ишлэл",Code:"Код",Insert:"Оруулах","Insert table":"Хүснэгт оруулах","Decrease Indent":"Доголын зай хасах","Increase Indent":"Доголын зай нэмэх","Select Special Character":"Тусгай тэмдэгт сонгох","Insert Special Character":"Тусгай тэмдэгт нэмэх","Paint format":"Зургийн формат","Change mode":"Горим өөрчлөх",Margins:"Цаасны зай",top:"Дээрээс",right:"Баруунаас",bottom:"Доороос",left:"Зүүнээс",Styles:"CSS стиль",Classes:"CSS анги",Align:"Байрлуулах",Right:"Баруун",Center:"Төв",Left:"Зүүн","--Not Set--":"--Тодорхойгүй--",Src:"Эх үүсвэр",Title:"Гарчиг",Alternative:"Алтернатив текст",Link:"Холбоос","Open link in new tab":"Холбоосыг шинэ хавтсанд нээх",Image:"Зураг",file:"Файл","Image properties":"Зургийн үзүүлэлт",Cancel:"Цуцлах",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Таны код HTML кодтой адил байна. HTML форматаар үргэлжлүүлэх үү?","Paste as HTML":"HTML байдлаар буулгах",Keep:"Хадгалах",Clean:"Цэвэрлэх","Insert as Text":"Текст байдлаар нэмэх","Word Paste Detected":"Word байдлаар буулгасан байна","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Буулгасан агуулга Microsoft Word/Excel форматтай байна. Энэ форматыг хэвээр хадгалах уу эсвэл арилгах уу?","Insert only Text":"Зөвхөн текст оруулах","File Browser":"Файлын цонх","Error on load list":"Жагсаалт татах үед алдаа гарлаа","Error on load folders":"Хавтас татах үед алдаа гарлаа","Are you sure?":"Итгэлтэй байна уу?","Enter Directory name":"Хавтсын нэр оруулах","Create directory":"Хавтас үүсгэх","type name":"Нэр бичих","type dir name":"Нэр бичих","Drop image":"Зураг буулгах","Drop file":"Файл буулгах","or click":"эсвэл товш","Alternative text":"Алтернатив текст",Browse:"Үзэх",Upload:"Байршуулах",Background:"Арын зураг",Text:"Текст",Top:"Дээр",Middle:"Дунд",Bottom:"Доор","Insert column before":"Урд нь багана нэмэх","Insert column after":"Ард нь багана нэмэх","Insert row above":"Дээр нь мөр нэмэх","Insert row below":"Доор нь мөр нэмэх","Delete table":"Хүснэгт устгах","Delete row":"Мөр устгах","Delete column":"Багана устгах","Empty cell":"Нүд цэвэрлэх",Delete:"Устгах","Strike through":"Дээгүүр зураас",Underline:"Доогуур зураас",Break:"Мөрийг таслах","Search for":"Хайх","Replace with":"Үүгээр солих",Replace:"Солих",Edit:"Засах","Vertical align":"Босоо эгнүүлэх","Horizontal align":"Хэвтээ эгнүүлэх",Filter:"Шүүх","Sort by changed":"Сүүлд өөрчлөгдсөнөөр жагсаах","Sort by name":"Нэрээр жагсаах","Sort by size":"Хэмжээгээр жагсаах","Add folder":"Хавтас нэмэх",Split:"Задлах","Split vertical":"Баганаар задлах","Split horizontal":"Мөрөөр задлах",Merge:"Нэгтгэх","Add column":"Багана нэмэх","Add row":"Мөр нэмэх",Border:"Хүрээ","Embed code":"Код оруулах",Update:"Шинэчлэх",superscript:"Дээд индекс",subscript:"Доод индекс","Cut selection":"Сонголтыг таслах",Paste:"Буулгах","Choose Content to Paste":"Буулгах агуулгаа сонгоно уу","Chars: %d":"Тэмдэгт: %d","Words: %d":"Үг: %d",All:"Бүгдийг","Select %s":"Сонго: %s","Select all":"Бүгдийг сонго",source:"Эх үүсвэр",bold:"Тод",italic:"Налуу",brush:"Будах",link:"Холбоос",undo:"Буцаах",redo:"Дахих",table:"Хүснэгт",image:"Зураг",eraser:"Баллуур",paragraph:"Параграф",fontsize:"Фонтын хэмжээ",video:"Видео",font:"Фонт",about:"Тухай",print:"Хэвлэх",underline:"Доогуур зураас",strikethrough:"Дээгүүр зураас",indent:"Догол нэмэх",outdent:"Догол багасгах",fullsize:"Бүтэн дэлгэц",shrink:"Багасга",hr:"Хаалт",ul:"Тэмдэгт жагсаалт",ol:"Дугаарласан жагсаалт",cut:"Таслах",selectall:"Бүгдийг сонго","Open link":"Холбоос нээх","Edit link":"Холбоос засах","No follow":"Nofollow özelliği",Unlink:"Холбоос салгах",Eye:"Нүд",pencil:"Засах"," URL":"URL",Reset:"Буцаах",Save:"Хадгалах","Save as ...":"Өөрөөр хадгалах",Resize:"Хэмжээг өөрчил",Crop:"Тайрах",Width:"Өргөн",Height:"Өндөр","Keep Aspect Ratio":"Харьцааг хадгал",Yes:"Тийм",No:"Үгүй",Remove:"Арилга",Select:"Сонго","You can only edit your own images. Download this image on the host?":"Та зөвхөн өөрийн зургуудаа янзлах боломжтой. Энэ зургийг өөр лүүгээ татмаар байна уу?","The image has been successfully uploaded to the host!":"Зургийг хост руу амжилттай хадгалсан",palette:"Палет","There are no files":"Энд ямар нэг файл алга",Rename:"Шинээр нэрлэх","Enter new name":"Шинэ нэр оруулна уу",preview:"Урьдчилан харах",download:"Татах","Paste from clipboard":"Самбараас хуулах ","Your browser doesn't support direct access to the clipboard.":"Энэ вэб хөтчөөс самбарт хандах эрх алга.","Copy selection":"Сонголтыг хуул",copy:"Хуулах","Border radius":"Хүрээний радиус","Show all":"Бүгдийг харуулах",Apply:"Хэрэгжүүл","Please fill out this field":"Энэ талбарыг бөглөнө үү","Please enter a web address":"Вэб хаягаа оруулна уу",Default:"Үндсэн",Circle:"Дугуй",Dot:"Цэг",Quadrate:"Дөрвөлжин",Find:"Хайх","Find Previous":"Өмнөхийг ол","Find Next":"Дараагийнхийг ол","Insert className":"Бүлгийн нэрээ оруулна уу","Press Alt for custom resizing":"Хэмжээсийг шинээр өөчрлөхийн тулд Alt товчин дээр дарна уу","License: %s":"Лиценз: %s"},nl:{"Type something":"Begin met typen..",Advanced:"Geavanceerd","About Jodit":"Over Jodit","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Gratis niet-commerciële versie","Jodit User's Guide":"Jodit gebruikershandleiding","contains detailed help for using":"bevat gedetailleerde informatie voor gebruik.","For information about the license, please go to our website:":"Voor informatie over de licentie, ga naar onze website:","Buy full version":"Volledige versie kopen","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle rechten voorbehouden.",Anchor:"Anker","Open in new tab":"Open in nieuwe tab","Open in fullsize":"Editor in volledig scherm openen","Clear Formatting":"Opmaak verwijderen","Fill color or set the text color":"Vulkleur of tekstkleur aanpassen",Redo:"Opnieuw",Undo:"Ongedaan maken",Bold:"Vet",Italic:"Cursief","Insert Unordered List":"Geordende list invoegen","Insert Ordered List":"Ongeordende lijst invoegen","Align Center":"Centreren","Align Justify":"Uitlijnen op volledige breedte","Align Left":"Links uitlijnen","Align Right":"Rechts uitlijnen","Insert Horizontal Line":"Horizontale lijn invoegen","Insert Image":"Afbeelding invoegen","Insert file":"Bestand invoegen","Insert youtube/vimeo video":"Youtube/Vimeo video invoegen","Insert link":"Link toevoegen","Font size":"Tekstgrootte","Font family":"Lettertype","Insert format block":"Format blok invoegen",Normal:"Normaal","Heading 1":"Koptekst 1","Heading 2":"Koptekst 2","Heading 3":"Koptekst 3","Heading 4":"Koptekst 4",Quote:"Citaat",Code:"Code",Insert:"Invoegen","Insert table":"Tabel invoegen","Decrease Indent":"Inspringing verkleinen","Increase Indent":"Inspringing vergroten","Select Special Character":"Symbool selecteren","Insert Special Character":"Symbool invoegen","Paint format":"Opmaak kopieren","Change mode":"Modus veranderen",Margins:"Marges",top:"Boven",right:"Rechts",bottom:"Onder",left:"Links",Styles:"CSS styles",Classes:"CSS classes",Align:"Uitlijning",Right:"Rechts",Center:"Gecentreerd",Left:"Links","--Not Set--":"--Leeg--",Src:"Src",Title:"Titel",Alternative:"Alternatieve tekst",Link:"Link","Open link in new tab":"Link in nieuwe tab openen",Image:"Afbeelding",file:"Bestand","Image properties":"Afbeeldingseigenschappen",Cancel:"Annuleren",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Deze code lijkt op HTML. Als HTML behouden?","Paste as HTML":"Invoegen als HTML",Keep:"Origineel behouden",Clean:"Opschonen","Insert as Text":"Als tekst invoegen","Word Paste Detected":"Word-tekst gedetecteerd","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"De geplakte tekst is afkomstig van een Microsoft Word/Excel document. Wil je de opmaak behouden of opschonen?","Insert only Text":"Als onopgemaakte tekst invoegen","File Browser":"Bestandsbrowser","Error on load list":"Fout bij het laden van de lijst","Error on load folders":"Fout bij het laden van de mappenlijst","Are you sure?":"Weet je het zeker?","Enter Directory name":"Geef de map een naam","Create directory":"Map aanmaken","type name":"Type naam","type dir name":"Type naam","Drop image":"Sleep hier een afbeelding naartoe","Drop file":"Sleep hier een bestand naartoe","or click":"of klik","Alternative text":"Alternatieve tekst",Browse:"Bladeren",Upload:"Uploaden",Background:"Achtergrond",Text:"Tekst",Top:"Boven",Middle:"Midden",Bottom:"Onder","Insert column before":"Kolom invoegen (voor)","Insert column after":"Kolom invoegen (na)","Insert row above":"Rij invoegen (boven)","Insert row below":"Rij invoegen (onder)","Delete table":"Tabel verwijderen","Delete row":"Rij verwijderen","Delete column":"Kolom verwijderen","Empty cell":"Cel leegmaken",Delete:"Verwijderen","Strike through":"Doorstrepen",Underline:"Onderstrepen",Break:"Enter","Search for":"Zoek naar","Replace with":"Vervangen door",Replace:"Vervangen",Edit:"Bewerken","Vertical align":"Verticaal uitlijnen","Horizontal align":"Horizontaal uitlijnen",Filter:"Filteren","Sort by changed":"Sorteren op wijzigingsdatum","Sort by name":"Sorteren op naam","Sort by size":"Sorteren op grootte","Add folder":"Map toevoegen",Split:"Splitsen","Split vertical":"Verticaal splitsen","Split horizontal":"Horizontaal splitsen",Merge:"Samenvoegen","Add column":"Kolom toevoegen","Add row":"Rij toevoegen",Border:"Rand","Embed code":"Embed code",Update:"Updaten",superscript:"Superscript",subscript:"Subscript","Cut selection":"Selectie knippen",Paste:"Plakken","Choose Content to Paste":"Kies content om te plakken","Chars: %d":"Tekens: %d","Words: %d":"Woorden: %d",All:"Alles","Select %s":"Selecteer: %s","Select all":"Selecteer alles",source:"Broncode",bold:"vet",italic:"cursief",brush:"kwast",link:"link",undo:"ongedaan maken",redo:"opnieuw",table:"tabel",image:"afbeelding",eraser:"gum",paragraph:"paragraaf",fontsize:"lettergrootte",video:"video",font:"lettertype",about:"over",print:"afdrukken",underline:"onderstreept",strikethrough:"doorgestreept",indent:"inspringen",outdent:"minder inspringen",fullsize:"volledige grootte",shrink:"kleiner maken",hr:"horizontale lijn",ul:"lijst",ol:"genummerde lijst",cut:"knip",selectall:"alles selecteren","Open link":"Link openen","Edit link":"Link aanpassen","No follow":"Niet volgen",Unlink:"link verwijderen",Eye:"Recensie",pencil:"Om te bewerken"," URL":" URL",Reset:"Herstellen",Save:"Opslaan","Save as ...":"Opslaan als ...",Resize:"Grootte aanpassen",Crop:"Bijknippen",Width:"Breedte",Height:"Hoogte","Keep Aspect Ratio":"Verhouding behouden",Yes:"Ja",No:"Nee",Remove:"Verwijderen",Select:"Selecteren","You can only edit your own images. Download this image on the host?":"Je kunt alleen je eigen afbeeldingen aanpassen. Deze afbeelding downloaden?","The image has been successfully uploaded to the host!":"De afbeelding is succesvol geüploadet!",palette:"Palette","There are no files":"Er zijn geen bestanden in deze map.",Rename:"Hernoemen","Enter new name":"Voer een nieuwe naam in",preview:"Voorvertoning",download:"Download","Paste from clipboard":"Plakken van klembord","Your browser doesn't support direct access to the clipboard.":"Uw browser ondersteunt geen directe toegang tot het klembord.","Copy selection":"Selectie kopiëren",copy:"kopiëren","Border radius":"Border radius","Show all":"Toon alle",Apply:"Toepassen","Please fill out this field":"Vul dit veld in","Please enter a web address":"Voer een webadres in",Default:"Standaard",Circle:"Cirkel",Dot:"Punt",Quadrate:"Kwadraat",Find:"Zoeken","Find Previous":"Vorige Zoeken","Find Next":"Volgende Zoeken","Insert className":"Voeg de klassenaam in","Press Alt for custom resizing":"Druk op Alt voor aangepaste grootte","License: %s":"Licentie: %s"},no:{"Type something":"Skriv noe","About Jodit":"Om Jodit","Jodit Editor":"Jodit-redigerer","Jodit User's Guide":"Jodit brukerveiledning","contains detailed help for using":"Inneholder detaljert hjelp for bruk","For information about the license, please go to our website:":"For informasjon om lisensen, besøk vår nettside:","Buy full version":"Kjøp fullversjon","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Opphavsrett © XDSoft.net - Chupurnov Valeriy. Alle rettigheter forbeholdt.",Anchor:"Anker","Open in new tab":"Åpne i ny fane","Open in fullsize":"Åpne i fullskjerm","Clear Formatting":"Fjern formatering","Fill color or set the text color":"Endre bakgrunns- eller tekstfarge",Redo:"Gjør om",Undo:"Angre",Bold:"Fet",Italic:"Kursiv","Insert Unordered List":"Sett inn punktliste","Insert Ordered List":"Sett inn nummerert liste","Align Center":"Midtstill","Align Justify":"Juster","Align Left":"Venstrejuster","Align Right":"Høyrejuster","Insert Horizontal Line":"Sett inn horisontal linje","Insert Image":"Sett inn bilde","Insert file":"Sett inn fil","Insert youtube/vimeo video":"Sett inn YouTube/Vimeo-video","Insert link":"Sett inn lenke","Font size":"Skriftstørrelse","Font family":"Skriftfamilie","Insert format block":"Sett inn formateringsblokk",Normal:"Normal","Heading 1":"Overskrift 1","Heading 2":"Overskrift 2","Heading 3":"Overskrift 3","Heading 4":"Overskrift 4",Quote:"Sitat",Code:"Kode",Insert:"Sett inn","Insert table":"Sett inn tabell","Decrease Indent":"Reduser innrykk","Increase Indent":"Øk innrykk","Select Special Character":"Velg spesialtegn","Insert Special Character":"Sett inn spesialtegn","Paint format":"Kopier format","Change mode":"Bytt modus (WYSIWYG/HTML)",Margins:"Marger",top:"topp",right:"høyre",bottom:"bunn",left:"venstre",Styles:"Stiler",Classes:"Klasser",Align:"Justering",Right:"Høyre",Center:"Senter",Left:"Venstre","--Not Set--":"--Ikke satt--",Src:"Kilde",Title:"Tittel",Alternative:"Alternativ",Filter:"Filter",Link:"Lenke","Open link in new tab":"Åpne lenke i ny fane",Image:"Bilde",file:"fil",Advanced:"Avansert","Image properties":"Bildeegenskaper",Cancel:"Avbryt",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Koden din ligner HTML. Beholde som HTML?","Paste as HTML":"Lim inn som HTML",Keep:"Behold",Clean:"Rens","Insert as Text":"Lim inn som tekst","Word Paste Detected":"Word-innliming oppdaget","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Innholdet du limer inn kommer fra et Microsoft Word/Excel-dokument. Vil du beholde formatet eller rense det?","Insert only Text":"Lim inn kun tekst","File Browser":"Filutforsker","Error on load list":"Feil ved lasting av liste","Error on load folders":"Feil ved lasting av mapper","Are you sure?":"Er du sikker?","Enter Directory name":"Skriv inn mappenavn","Create directory":"Opprett mappe","type name":"skriv navn","type dir name":"skriv navn","Drop image":"Slipp bilde","Drop file":"Slipp fil","or click":"eller klikk","Alternative text":"Alternativ tekst",Browse:"Bla gjennom",Upload:"Last opp",Background:"Bakgrunn",Border:"Kantlinje",Text:"Tekst",Top:"Topp",Middle:"Midt",Bottom:"Bunn","Insert column before":"Sett inn kolonne før","Insert column after":"Sett inn kolonne etter","Insert row above":"Sett inn rad over","Insert row below":"Sett inn rad under","Delete table":"Slett tabell","Delete row":"Slett rad","Delete column":"Slett kolonne","Empty cell":"Tøm celle","Chars: %d":"Tegn: %d","Words: %d":"Ord: %d",Split:"Del","Split vertical":"Del vertikalt","Split horizontal":"Del horisontalt","Strike through":"Gjennomstreking",Underline:"Understreking",superscript:"hevet skrift",subscript:"senket skrift","Cut selection":"Klipp ut markering","Select all":"Velg alt",Break:"Pause","Search for":"Søk etter","Replace with":"Erstatt med",Replace:"Erstatt",Paste:"Lim inn","Choose Content to Paste":"Velg innhold å lime inn",source:"kilde",bold:"fet",italic:"kursiv",brush:"pensel",link:"lenke",undo:"angre",redo:"gjør om",table:"tabell",image:"bilde",eraser:"viskelær",paragraph:"avsnitt",fontsize:"skriftstørrelse",video:"video",font:"skrift",about:"om redigeringsverktøyet",print:"skriv ut",underline:"understreking",strikethrough:"gjennomstreking",indent:"innrykk",outdent:"reduser innrykk",fullsize:"full størrelse",shrink:"krympe",hr:"linje",ul:"punktliste",ol:"nummerert liste",cut:"klipp ut",selectall:"velg alt","Open link":"Åpne lenke","Edit link":"Rediger lenke","No follow":"Ingen oppfølging",Unlink:"Fjern lenke",Eye:"Forhåndsvisning",pencil:"Rediger"," URL":"URL",Reset:"Tilbakestill",Save:"Lagre","Save as ...":"Lagre som ...",Resize:"Endre størrelse",Crop:"Beskjær",Width:"Bredde",Height:"Høyde","Keep Aspect Ratio":"Behold proporsjoner",Yes:"Ja",No:"Nei",Remove:"Fjern",Select:"Velg","Select %s":"Velg: %s",Update:"Oppdater","Vertical align":"Vertikal justering",Merge:"Slå sammen","Add column":"Legg til kolonne","Add row":"Legg til rad",Delete:"Slett","Horizontal align":"Horisontal justering","Sort by changed":"Sorter etter endring","Sort by name":"Sorter etter navn","Sort by size":"Sorter etter størrelse","Add folder":"Legg til mappe",palette:"Palett",preview:"Forhåndsvisning","Line height":"Linjehøyde","Insert className":"Sett inn klassenavn",apply:"Bruk",edit:"Rediger","Show all":"Vis alle",sound:"Lyd","Interim Results":"Foreløpige resultater",default:"Standard",circle:"Sirkel",dot:"Punkt",square:"Firkant","Press Alt for custom resizing":"Trykk på Alt for å endre størrelse","Copy selection":"Kopier utvalg","Paste from clipboard":"Lim inn fra utklippstavlen",Find:"Finne","Embed code":"Bygge inn kode",Edit:"Rediger",All:"Velg alle","License: %s":"Lisens: %s","You can only edit your own images. Download this image on the host?":"Du kan bare redigere dine egne bilder. Last ned dette bildet på verten?","The image has been successfully uploaded to the host!":"Bildet har blitt lastet opp til verten!","There are no files":"Det er ingen filer i denne katalogen",Rename:"Gi nytt navn","Enter new name":"Skriv inn nytt navn",download:"Last ned","Your browser doesn't support direct access to the clipboard.":"Nettleseren din støtter ikke direkte tilgang til utklippstavlen.",copy:"kopi","Border radius":"Grenseradius",Apply:"Bruk","Please fill out this field":"Vennligst fyll ut dette feltet","Please enter a web address":"Vennligst skriv inn en webadresse",Default:"Standard",Circle:"Sirkel",Dot:"Prikk",Quadrate:"Firkant","Find Previous":"Finn forrige","Find Next":"Finn neste"},pl:{"Type something":"Napisz coś",Advanced:"Zaawansowane","About Jodit":"O Jodit","Jodit Editor":"Edytor Jodit","Jodit User's Guide":"Instrukcja Jodit","contains detailed help for using":"zawiera szczegółowe informacje dotyczące użytkowania.","For information about the license, please go to our website:":"Odwiedź naszą stronę, aby uzyskać więcej informacji na temat licencji:","Buy full version":"Zakup pełnej wersji","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Wszystkie prawa zastrzeżone.",Anchor:"Kotwica","Open in new tab":"Otwórz w nowej zakładce","Open in fullsize":"Otwórz edytor w pełnym rozmiarze","Clear Formatting":"Wyczyść formatowanie","Fill color or set the text color":"Kolor wypełnienia lub ustaw kolor tekstu",Redo:"Ponów",Undo:"Cofnij",Bold:"Pogrubienie",Italic:"Kursywa","Insert Unordered List":"Wstaw listę wypunktowaną","Insert Ordered List":"Wstaw listę numeryczną","Align Center":"Wyśrodkuj","Align Justify":"Wyjustuj","Align Left":"Wyrównaj do lewej","Align Right":"Wyrównaj do prawej","Insert Horizontal Line":"Wstaw linię poziomą","Insert Image":"Wstaw grafikę","Insert file":"Wstaw plik","Insert youtube/vimeo video":"Wstaw film Youtube/vimeo","Insert link":"Wstaw link","Font size":"Rozmiar tekstu","Font family":"Krój czcionki","Insert format block":"Wstaw formatowanie",Normal:"Normalne","Heading 1":"Nagłówek 1","Heading 2":"Nagłówek 2","Heading 3":"Nagłówek 3","Heading 4":"Nagłówek 4",Quote:"Cytat",Code:"Kod",Insert:"Wstaw","Insert table":"Wstaw tabelę","Decrease Indent":"Zmniejsz wcięcie","Increase Indent":"Zwiększ wcięcie","Select Special Character":"Wybierz znak specjalny","Insert Special Character":"Wstaw znak specjalny","Paint format":"Malarz formatów","Change mode":"Zmień tryb",Margins:"Marginesy",top:"Górny",right:"Prawy",bottom:"Dolny",left:"Levy",Styles:"Style CSS",Classes:"Klasy CSS",Align:"Wyrównanie",Right:"Prawa",Center:"środek",Left:"Lewa","--Not Set--":"brak",Src:"Źródło",Title:"Tytuł",Alternative:"Tekst alternatywny",Link:"Link","Open link in new tab":"Otwórz w nowej zakładce",Image:"Grafika",file:"Plik","Image properties":"Właściwości grafiki",Cancel:"Anuluj",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Twój kod wygląda jak HTML. Zachować HTML?","Paste as HTML":"Wkleić jako HTML?",Keep:"Oryginalny tekst",Clean:"Wyczyść","Insert as Text":"Wstaw jako tekst","Word Paste Detected":"Wykryto tekst w formacie Word","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Wklejany tekst pochodzi z dokumentu Microsoft Word/Excel. Chcesz zachować ten format czy wyczyścić go? ","Insert only Text":"Wstaw tylko treść","File Browser":"Przeglądarka plików","Error on load list":"Błąd ładowania listy plików","Error on load folders":"Błąd ładowania folderów","Are you sure?":"Czy jesteś pewien?","Enter Directory name":"Wprowadź nazwę folderu","Create directory":"Utwórz folder","type name":"wprowadź nazwę","type dir name":"wprowadź nazwę","Drop image":"Upuść plik graficzny","Drop file":"Upuść plik","or click":"lub kliknij tu","Alternative text":"Tekst alternatywny",Browse:"Przeglądaj",Upload:"Wczytaj",Background:"Tło",Text:"Treść",Top:"Góra",Middle:"Środek",Bottom:"Dół","Insert column before":"Wstaw kolumnę przed","Insert column after":"Wstaw kolumnę po","Insert row above":"Wstaw wiersz przed","Insert row below":"Wstaw wiersz po","Delete table":"Usuń tabelę","Delete row":"Usuń wiersz","Delete column":"Usuń kolumnę","Empty cell":"Wyczyść komórkę",Delete:"Usuń","Strike through":"Przekreślenie",Underline:"Podkreślenie",Break:"Przerwa","Search for":"Szukaj","Replace with":"Zamień na",Replace:"Wymienić",Edit:"Edytuj","Vertical align":"Wyrównywanie w pionie","Horizontal align":"Wyrównywanie w poziomie",Filter:"Filtruj","Sort by changed":"Sortuj wg zmiany","Sort by name":"Sortuj wg nazwy","Sort by size":"Sortuj wg rozmiaru","Add folder":"Dodaj folder","Split vertical":"Podziel w pionie","Split horizontal":"Podziel w poziomie",Split:"Podziel",Merge:"Scal","Add column":"Dodaj kolumnę","Add row":"Dodaj wiersz",Border:"Obramowanie","Embed code":"Wstaw kod",Update:"Aktualizuj",superscript:"indeks górny",subscript:"index dolny","Cut selection":"Wytnij zaznaczenie",Paste:"Wklej","Choose Content to Paste":"Wybierz zawartość do wklejenia","Chars: %d":"Znaki: %d","Words: %d":"Słowa: %d",All:"Wszystko","Select %s":"Wybierz: %s","Select all":"Wybierz wszystko",source:"HTML",bold:"pogrubienie",italic:"kursywa",brush:"pędzel",link:"link",undo:"cofnij",redo:"ponów",table:"tabela",image:"grafika",eraser:"wyczyść",paragraph:"akapit",fontsize:"rozmiar czcionki",video:"wideo",font:"czcionka",about:"O programie",print:"drukuj",underline:"podkreślenie",strikethrough:"przekreślenie",indent:"wcięcie",outdent:"wycięcie",fullsize:"pełen rozmiar",shrink:"przytnij",hr:"linia pozioma",ul:"lista",ol:"lista numerowana",cut:"wytnij",selectall:"zaznacz wszystko","Open link":"otwórz link","Edit link":"edytuj link","No follow":"Atrybut no-follow",Unlink:"Usuń link",Eye:"szukaj",pencil:"edytuj"," URL":"URL",Reset:"wyczyść",Save:"zapisz","Save as ...":"zapisz jako",Resize:"Zmień rozmiar",Crop:"Przytnij",Width:"Szerokość",Height:"Wysokość","Keep Aspect Ratio":"Zachowaj proporcje",Yes:"Tak",No:"Nie",Remove:"Usuń",Select:"Wybierz","You can only edit your own images. Download this image on the host?":"Możesz edytować tylko swoje grafiki. Czy chcesz pobrać tą grafikę?","The image has been successfully uploaded to the host!":"Grafika została pomyślnienie dodana na serwer",palette:"Paleta","There are no files":"Brak plików.",Rename:"zmień nazwę","Enter new name":"Wprowadź nową nazwę",preview:"podgląd",download:"pobierz","Paste from clipboard":"Wklej ze schowka","Your browser doesn't support direct access to the clipboard.":"Twoja przeglądarka nie obsługuje schowka","Copy selection":"Kopiuj zaznaczenie",copy:"kopiuj","Border radius":"Zaokrąglenie krawędzi","Show all":"Pokaż wszystkie",Apply:"Zastosuj","Please fill out this field":"Proszę wypełnić to pole","Please enter a web address":"Proszę, wpisz adres sieci web",Default:"Domyślnie",Circle:"Koło",Dot:"Punkt",Quadrate:"Kwadrat",Find:"Znaleźć","Find Previous":"Znaleźć Poprzednie","Find Next":"Znajdź Dalej","Insert className":"Wstaw nazwę zajęć","Press Alt for custom resizing":"Naciśnij Alt, aby zmienić rozmiar","License: %s":"Licencja: %s"},pt_br:{"Type something":"Escreva algo...",Advanced:"Avançado","About Jodit":"Sobre o Jodit","Jodit Editor":"Editor Jodit","Jodit User's Guide":"Guia de usuário Jodit","contains detailed help for using":"contém ajuda detalhada para o uso.","For information about the license, please go to our website:":"Para informação sobre a licença, por favor visite nosso site:","Buy full version":"Compre a versão completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Todos os direitos reservados.",Anchor:"Link","Open in new tab":"Abrir em nova aba","Open in fullsize":"Abrir editor em tela cheia","Clear Formatting":"Limpar formatação","Fill color or set the text color":"Cor de preenchimento ou cor do texto",Redo:"Refazer",Undo:"Desfazer",Bold:"Negrito",Italic:"Itálico","Insert Unordered List":"Inserir lista não ordenada","Insert Ordered List":"Inserir lista ordenada","Align Center":"Centralizar","Align Justify":"Justificar","Align Left":"Alinhar à Esquerda","Align Right":"Alinhar à Direita","Insert Horizontal Line":"Inserir linha horizontal","Insert Image":"Inserir imagem","Insert file":"Inserir arquivo","Insert youtube/vimeo video":"Inserir vídeo do Youtube/vimeo","Insert link":"Inserir link","Font size":"Tamanho da letra","Font family":"Fonte","Insert format block":"Inserir bloco",Normal:"Normal","Heading 1":"Cabeçalho 1","Heading 2":"Cabeçalho 2","Heading 3":"Cabeçalho 3","Heading 4":"Cabeçalho 4",Quote:"Citação",Code:"Código",Insert:"Inserir","Insert table":"Inserir tabela","Decrease Indent":"Diminuir recuo","Increase Indent":"Aumentar recuo","Select Special Character":"Selecionar caractere especial","Insert Special Character":"Inserir caractere especial","Paint format":"Copiar formato","Change mode":"Mudar modo",Margins:"Margens",top:"cima",right:"direta",bottom:"baixo",left:"esquerda",Styles:"Estilos CSS",Classes:"Classes CSS",Align:"Alinhamento",Right:"Direita",Center:"Centro",Left:"Esquerda","--Not Set--":"--Não Estabelecido--",Src:"Fonte",Title:"Título",Alternative:"Texto Alternativo",Link:"Link","Open link in new tab":"Abrir link em nova aba",Image:"Imagem",file:"Arquivo","Image properties":"Propriedades da imagem",Cancel:"Cancelar",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Seu código é similar ao HTML. Manter como HTML?","Paste as HTML":"Colar como HTML?",Keep:"Manter",Clean:"Limpar","Insert as Text":"Inserir como Texto","Word Paste Detected":"Colado do Word Detectado","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"O conteúdo colado veio de um documento Microsoft Word/Excel. Você deseja manter o formato ou limpa-lo?","Insert only Text":"Inserir somente o Texto","File Browser":"Procurar arquivo","Error on load list":"Erro ao carregar a lista","Error on load folders":"Erro ao carregar as pastas","Are you sure?":"Você tem certeza?","Enter Directory name":"Escreva o nome da pasta","Create directory":"Criar pasta","type name":"Escreva seu nome","type dir name":"Escreva seu nome","Drop image":"Soltar imagem","Drop file":"Soltar arquivo","or click":"ou clique","Alternative text":"Texto alternativo",Browse:"Explorar",Upload:"Upload",Background:"Fundo",Text:"Texto",Top:"Cima",Middle:"Meio",Bottom:"Baixo","Insert column before":"Inserir coluna antes","Insert column after":"Inserir coluna depois","Insert row above":"Inserir linha acima","Insert row below":"Inserir linha abaixo","Delete table":"Excluir tabela","Delete row":"Excluir linha","Delete column":"Excluir coluna","Empty cell":"Limpar célula",Delete:"Excluir","Strike through":"Tachado",Underline:"Sublinhar",Break:"Pausa","Search for":"Procurar por","Replace with":"Substituir com",Replace:"Substituir",Edit:"Editar","Vertical align":"Alinhamento vertical","Horizontal align":"Alinhamento horizontal",Filter:"filtrar","Sort by changed":"Ordenar por modificação","Sort by name":"Ordenar por nome","Sort by size":"Ordenar por tamanho","Add folder":"Adicionar pasta",Split:"Dividir","Split vertical":"Dividir vertical","Split horizontal":"Dividir horizontal",Merge:"Mesclar","Add column":"Adicionar coluna","Add row":"Adicionar linha",Border:"Borda","Embed code":"Incluir código",Update:"Atualizar",superscript:"sobrescrito",subscript:"subscrito","Cut selection":"Cortar seleção",Paste:"Colar","Choose Content to Paste":"Escolher conteúdo para colar","Chars: %d":"Caracteres: %d","Words: %d":"Palavras: %d",All:"Tudo","Select %s":"Selecionar: %s","Select all":"Selecionar tudo",source:"HTML",bold:"negrito",italic:"itálico",brush:"pincel",link:"link",undo:"desfazer",redo:"refazer",table:"tabela",image:"imagem",eraser:"apagar",paragraph:"parágrafo",fontsize:"tamanho da letra",video:"vídeo",font:"fonte",about:"Sobre de",print:"Imprimir",underline:"sublinhar",strikethrough:"tachado",indent:"recuar",outdent:"diminuir recuo",fullsize:"Tamanho completo",shrink:"diminuir",hr:"linha horizontal",ul:"lista não ordenada",ol:"lista ordenada",cut:"Cortar",selectall:"Selecionar tudo","Open link":"Abrir link","Edit link":"Editar link","No follow":"Não siga",Unlink:"Remover link",Eye:"Visualizar",pencil:"Editar"," URL":"URL",Reset:"Resetar",Save:"Salvar","Save as ...":"Salvar como...",Resize:"Redimensionar",Crop:"Recortar",Width:"Largura",Height:"Altura","Keep Aspect Ratio":"Manter a proporção",Yes:"Sim",No:"Não",Remove:"Remover",Select:"Selecionar","You can only edit your own images. Download this image on the host?":"Você só pode editar suas próprias imagens. Baixar essa imagem pro servidor?","The image has been successfully uploaded to the host!":"A imagem foi enviada com sucesso para o servidor!",palette:"Palette","There are no files":"Não há arquivos nesse diretório.",Rename:"Húngara","Enter new name":"Digite um novo nome",preview:"preview",download:"Baixar","Paste from clipboard":"Colar da área de transferência","Your browser doesn't support direct access to the clipboard.":"O seu navegador não oferece suporte a acesso direto para a área de transferência.","Copy selection":"Selecção de cópia",copy:"cópia","Border radius":"Border radius","Show all":"Mostrar todos os",Apply:"Aplicar","Please fill out this field":"Por favor, preencha este campo","Please enter a web address":"Por favor introduza um endereço web",Default:"Padrão",Circle:"Círculo",Dot:"Ponto",Quadrate:"Quadro","Lower Alpha":"Letra Minúscula","Lower Greek":"Grego Minúscula","Lower Roman":"Romano Minúscula","Upper Alpha":"Letra Maiúscula","Upper Roman":"Romano Maiúscula",Find:"Encontrar","Find Previous":"Encontrar Anteriores","Find Next":"Localizar Próxima","Insert className":"Insira o nome da classe","Press Alt for custom resizing":"Pressione Alt para redimensionamento personalizado","License: %s":"Licença: %s"},ru:{"Type something":"Напишите что-либо","About Jodit":"О Jodit","Jodit Editor":"Редактор Jodit","Jodit User's Guide":"Jodit Руководство пользователя","contains detailed help for using":"содержит детальную информацию по использованию","For information about the license, please go to our website:":"Для получения сведений о лицензии , пожалуйста, перейдите на наш сайт:","Buy full version":"Купить полную версию","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Авторские права © XDSoft.net - Чупурнов Валерий. Все права защищены.",Anchor:"Анкор","Open in new tab":"Открывать ссылку в новой вкладке","Open in fullsize":"Открыть редактор в полном размере","Clear Formatting":"Очистить форматирование","Fill color or set the text color":"Цвет заливки или цвет текста",Redo:"Повтор",Undo:"Отмена",Bold:"Жирный",Italic:"Наклонный","Insert Unordered List":"Вставка маркированного списка","Insert Ordered List":"Вставить нумерованный список","Align Center":"Выровнять по центру","Align Justify":"Выровнять по ширине","Align Left":"Выровнять по левому краю","Align Right":"Выровнять по правому краю","Insert Horizontal Line":"Вставить горизонтальную линию","Insert Image":"Вставить изображение","Insert file":"Вставить файл","Insert youtube/vimeo video":"Вставьте видео","Insert link":"Вставить ссылку","Font size":"Размер шрифта","Font family":"Шрифт","Insert format block":"Вставить блочный элемент",Normal:"Нормальный текст","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4",Quote:"Цитата",Code:"Код",Insert:"Вставить","Insert table":"Вставить таблицу","Decrease Indent":"Уменьшить отступ","Increase Indent":"Увеличить отступ","Select Special Character":"Выберите специальный символ","Insert Special Character":"Вставить специальный символ","Paint format":"Формат краски","Change mode":"Источник",Margins:"Отступы",top:"сверху",right:"справа",bottom:"снизу",left:"слева",Styles:"Стили",Classes:"Классы",Align:"Выравнивание",Right:"По правому краю",Center:"По центру",Left:"По левому краю","--Not Set--":"--не устанавливать--",Src:"src",Title:"Заголовок",Alternative:"Альтернативный текст (alt)",Link:"Ссылка","Open link in new tab":"Открывать ссылку в новом окне",file:"Файл",Advanced:"Расширенные","Image properties":"Свойства изображения",Cancel:"Отмена",Ok:"Ок","Your code is similar to HTML. Keep as HTML?":"Ваш текст, который вы пытаетесь вставить похож на HTML. Вставить его как HTML?","Paste as HTML":"Вставить как HTML?",Keep:"Сохранить оригинал",Clean:"Почистить","Insert as Text":"Вставить как текст","Insert only Text":"Вставить только текст","Word Paste Detected":"Возможно это фрагмент Word или Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Контент который вы вставляете поступает из документа Microsoft Word / Excel. Вы хотите сохранить формат или очистить его?","File Browser":"Браузер файлов","Error on load list":"Ошибка при загрузке списка изображений","Error on load folders":"Ошибка при загрузке списка директорий","Are you sure?":"Вы уверены?","Enter Directory name":"Введите название директории","Create directory":"Создать директорию","type name":"введите название","type dir name":"введите название","Drop image":"Перетащите сюда изображение","Drop file":"Перетащите сюда файл","or click":"или нажмите","Alternative text":"Альтернативный текст",Browse:"Сервер",Upload:"Загрузка",Background:"Фон",Text:"Текст",Top:" К верху",Middle:"По середине",Bottom:"К низу","Insert column before":"Вставить столбец до","Insert column after":"Вставить столбец после","Insert row above":"Вставить ряд выше","Insert row below":"Вставить ряд ниже","Delete table":"Удалить таблицу","Delete row":"Удалять ряд","Delete column":"Удалить столбец","Empty cell":"Очистить ячейку",source:"HTML",bold:"жирный",italic:"курсив",brush:"заливка",link:"ссылка",undo:"отменить",redo:"повторить",table:"таблица",image:"Изображение",eraser:"очистить",paragraph:"параграф",fontsize:"размер шрифта",video:"видео",font:"шрифт",about:"о редакторе",print:"печать",underline:"подчеркнутый",strikethrough:"перечеркнутый",indent:"отступ",outdent:"выступ",fullsize:"во весь экран",shrink:"обычный размер",hr:"линия",ul:"Список",ol:"Нумерованный список",cut:"Вырезать",selectall:"Выделить все","Embed code":"Код","Open link":"Открыть ссылку","Edit link":"Редактировать ссылку","No follow":"Атрибут nofollow",Unlink:"Убрать ссылку",Eye:"Просмотр",pencil:"Редактировать",Update:"Обновить"," URL":"URL",Edit:"Редактировать","Horizontal align":"Горизонтальное выравнивание",Filter:"Фильтр","Sort by changed":"По изменению","Sort by name":"По имени","Sort by size":"По размеру","Add folder":"Добавить папку",Reset:"Восстановить",Save:"Сохранить","Save as ...":"Сохранить как",Resize:"Изменить размер",Crop:"Обрезать размер",Width:"Ширина",Height:"Высота","Keep Aspect Ratio":"Сохранять пропорции",Yes:"Да",No:"Нет",Remove:"Удалить",Select:"Выделить","Chars: %d":"Символов: %d","Words: %d":"Слов: %d",All:"Выделить все","Select %s":"Выделить: %s","Select all":"Выделить все","Vertical align":"Вертикальное выравнивание",Split:"Разделить","Split vertical":"Разделить по вертикали","Split horizontal":"Разделить по горизонтали",Merge:"Объединить в одну","Add column":"Добавить столбец","Add row":"Добавить строку",Delete:"Удалить",Border:"Рамка","License: %s":"Лицензия: %s","Strike through":"Перечеркнуть",Underline:"Подчеркивание",superscript:"верхний индекс",subscript:"индекс","Cut selection":"Вырезать",Break:"Разделитель","Search for":"Найти","Replace with":"Заменить на",Replace:"Заменить",Paste:"Вставить","Choose Content to Paste":"Выбрать контент для вставки","You can only edit your own images. Download this image on the host?":"Вы можете редактировать только свои собственные изображения. Загрузить это изображение на ваш сервер?","The image has been successfully uploaded to the host!":"Изображение успешно загружено на сервер!",palette:"палитра","There are no files":"В данном каталоге нет файлов",Rename:"Переименовать","Enter new name":"Введите новое имя",preview:"Предпросмотр",download:"Скачать","Paste from clipboard":"Вставить из буфера обмена","Your browser doesn't support direct access to the clipboard.":"Ваш браузер не поддерживает прямой доступ к буферу обмена.","Copy selection":"Скопировать выделенное",copy:"копия","Border radius":"Радиус границы","Show all":"Показать все",Apply:"Применить","Please fill out this field":"Пожалуйста, заполните это поле","Please enter a web address":"Пожалуйста, введите веб-адрес",Default:"По умолчанию",Circle:"Круг",Dot:"Точка",Quadrate:"Квадрат",Find:"Найти","Find Previous":"Найти Предыдущие","Find Next":"Найти Далее","Insert className":"Вставить название класса","Press Alt for custom resizing":"Нажмите Alt для изменения пользовательского размера"},sk:{"Type something":"Napíšte niečo","About Jodit":"O editore Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Bezplatná verzia na nekomerčné použitie","Jodit User's Guide":"Používateľská príručka Jodit","contains detailed help for using":"obsahuje podrobnú pomoc s používaním","For information about the license, please go to our website:":"Informácie o licencii nájdete na našej webovej stránke:","Buy full version":"Kúpiť plnú verziu","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Všetky práva vyhradené.",Anchor:"Kotva","Open in new tab":"Otvoriť na novej karte","Open in fullsize":"Otvoriť na celú obrazovku","Clear Formatting":"Vymazať formátovanie","Fill color or set the text color":"Farba výplne alebo textu",Redo:"Znova",Undo:"Späť",Bold:"Tučné písmo",Italic:"Kurzíva","Insert Unordered List":"Vložiť zoznam s odrážkami","Insert Ordered List":"Vložiť číslovaný zoznam","Align Center":"Zarovnať na stred","Align Justify":"Zarovnať do bloku","Align Left":"Zarovnať doľava","Align Right":"Zarovnať doprava","Insert Horizontal Line":"Vložiť vodorovnú čiaru","Insert Image":"Vložiť obrázok","Insert file":"Vložiť súbor","Insert youtube/vimeo video":"Vložiť video YouTube/Vimeo","Insert link":"Vložiť odkaz","Font size":"Veľkosť písma","Font family":"Typ písma","Insert format block":"Vložiť formátovaný blok",Normal:"Normálny text","Heading 1":"Nadpis 1","Heading 2":"Nadpis 2","Heading 3":"Nadpis 3","Heading 4":"Nadpis 4",Quote:"Citácia",Code:"Kód",Insert:"Vložiť","Insert table":"Vložiť tabuľku","Decrease Indent":"Zmenšiť odsadenie","Increase Indent":"Zväčšiť odsadenie","Select Special Character":"Vybrať špeciálny znak","Insert Special Character":"Vložiť špeciálny znak","Paint format":"Kopírovať formát","Change mode":"Zmeniť režim",Margins:"Okraje",top:"horný",right:"pravý",bottom:"dolný",left:"ľavý",Styles:"Štýly",Classes:"Triedy",Align:"Zarovnanie",Right:"Vpravo",Center:"Na stred",Left:"Vľavo","--Not Set--":"--nenastavené--",Src:"Zdroj",Title:"Názov",Alternative:"Alternatívny text (alt)",Link:"Odkaz","Open link in new tab":"Otvoriť odkaz na novej karte",Image:"Obrázok",file:"súbor",Advanced:"Rozšírené","Image properties":"Vlastnosti obrázka",Cancel:"Zrušiť",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Váš kód sa podobá na HTML. Ponechať ho ako HTML?","Paste as HTML":"Vložiť ako HTML",Keep:"Ponechať",Clean:"Vyčistiť","Insert as Text":"Vložiť ako text","Insert only Text":"Vložiť iba text","Word Paste Detected":"Zistil sa obsah z Wordu alebo Excelu","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Vložený obsah pochádza z dokumentu Microsoft Word/Excel. Chcete zachovať formátovanie alebo ho vyčistiť?","File Browser":"Prehliadač súborov","Error on load list":"Chyba pri načítaní zoznamu súborov","Error on load folders":"Chyba pri načítaní priečinkov","Are you sure?":"Ste si istí?","Enter Directory name":"Zadajte názov priečinka","Create directory":"Vytvoriť priečinok","type name":"zadajte názov","Drop image":"Presuňte sem obrázok","Drop file":"Presuňte sem súbor","or click":"alebo kliknite","Alternative text":"Alternatívny text",Browse:"Prehľadávať",Upload:"Nahrať",Background:"Pozadie",Text:"Text",Top:"Hore",Middle:"Na stred",Bottom:"Dole","Insert column before":"Vložiť stĺpec pred","Insert column after":"Vložiť stĺpec za","Insert row above":"Vložiť riadok nad","Insert row below":"Vložiť riadok pod","Delete table":"Odstrániť tabuľku","Delete row":"Odstrániť riadok","Delete column":"Odstrániť stĺpec","Empty cell":"Vyprázdniť bunku",source:"HTML",bold:"tučné písmo",italic:"kurzíva",brush:"štetec",link:"odkaz",undo:"späť",redo:"znova",table:"tabuľka",image:"obrázok",eraser:"guma",paragraph:"odstavec",fontsize:"veľkosť písma",video:"video",font:"písmo",about:"o editore",print:"tlačiť",underline:"podčiarknuté",strikethrough:"prečiarknuté",indent:"zväčšiť odsadenie",outdent:"zmenšiť odsadenie",fullsize:"režim celej obrazovky",shrink:"zmenšiť",hr:"vodorovná čiara",ul:"zoznam s odrážkami",ol:"číslovaný zoznam",cut:"vystrihnúť",selectall:"vybrať všetko","Embed code":"Vložiť kód","Open link":"Otvoriť odkaz","Edit link":"Upraviť odkaz","No follow":"Atribút nofollow",Unlink:"Odstrániť odkaz",Eye:"Zobraziť",pencil:"Upraviť",Update:"Aktualizovať"," URL":"URL",Edit:"Upraviť","Horizontal align":"Vodorovné zarovnanie",Filter:"Filter","Sort by changed":"Zoradiť podľa poslednej zmeny","Sort by name":"Zoradiť podľa názvu","Sort by size":"Zoradiť podľa veľkosti","Add folder":"Pridať priečinok",Reset:"Obnoviť",Save:"Uložiť","Save as ...":"Uložiť ako…",Resize:"Zmeniť veľkosť",Crop:"Orezať",Width:"Šírka",Height:"Výška","Keep Aspect Ratio":"Zachovať pomer strán",Yes:"Áno",No:"Nie",Remove:"Odstrániť",Select:"Vybrať","Chars: %d":"Znaky: %d","Words: %d":"Slová: %d",All:"Všetko","Select %s":"Vybrať %s","Select all":"Vybrať všetko","Vertical align":"Zvislé zarovnanie",Split:"Rozdeliť","Split vertical":"Rozdeliť zvislo","Split horizontal":"Rozdeliť vodorovne",Merge:"Zlúčiť","Add column":"Pridať stĺpec","Add row":"Pridať riadok",Delete:"Odstrániť",Border:"Okraj","License: %s":"Licencia: %s","Strike through":"Prečiarknuté",Underline:"Podčiarknuté",superscript:"Horný index",subscript:"Dolný index","Cut selection":"Vystrihnúť výber",Break:"Zalomenie","Search for":"Hľadať","Replace with":"Nahradiť čím",Replace:"Nahradiť",Paste:"Vložiť","Choose Content to Paste":"Vyberte obsah na vloženie","You can only edit your own images. Download this image on the host?":"Môžete upravovať iba vlastné obrázky. Stiahnuť tento obrázok na server?","The image has been successfully uploaded to the host!":"Obrázok bol úspešne nahraný na server!",palette:"paleta","There are no files":"V tomto priečinku nie sú žiadne súbory.",Rename:"Premenovať","Enter new name":"Zadajte nový názov",preview:"Ukážka",download:"Stiahnuť","Paste from clipboard":"Vložiť zo schránky","Your browser doesn't support direct access to the clipboard.":"Váš prehliadač nepodporuje priamy prístup do schránky.","Copy selection":"Kopírovať výber",copy:"kopírovať","Border radius":"Zaoblenie rohov","Show all":"Zobraziť všetko",Apply:"Použiť","Please fill out this field":"Vyplňte toto pole","Please enter a web address":"Zadajte webovú adresu",Default:"Predvolené",Circle:"Kruh",Dot:"Bodka",Quadrate:"Štvorec",Find:"Nájsť","Find Previous":"Nájsť predchádzajúce","Find Next":"Nájsť nasledujúce","Insert className":"Vložte názov triedy","Press Alt for custom resizing":"Stlačte Alt na vlastnú zmenu veľkosti","Upload file":"Nahrať súbor","Remove file":"Odstrániť súbor","Update file list":"Aktualizovať zoznam súborov","Select file":"Vybrať súbor","Edit image":"Upraviť obrázok","Tiles view":"Zobrazenie dlaždíc","List view":"Zobrazenie zoznamu"},sv:{"Type something":"Skriv något...","About Jodit":"Om Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit användarguide","contains detailed help for using":"Innehåller detaljerad hjälp för användning","For information about the license, please go to our website:":"För information om licensen, vänligen besök vår webbsida:","Buy full version":"Köp full version","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Upphovsrätt © XDSoft.net - Chupurnov Valeriy. Alla rättigheter förbehållna.",Anchor:"Ankare","Open in new tab":"Öppna i ny flik","Open in fullsize":"Öppna i fullskärm","Clear Formatting":"Rensa formatering","Fill color or set the text color":"Fyll färg eller ställ in textfärg",Redo:"Gör om",Undo:"Ångra",Bold:"Fetstil",Italic:"Kursiv","Insert Unordered List":"Infoga punktlista","Insert Ordered List":"Infoga numrerad lista","Align Center":"Centrera","Align Justify":"Justera","Align Left":"Vänsterjustera","Align Right":"Högerjustera","Insert Horizontal Line":"Infoga horisontell linje","Insert Image":"Infoga bild","Insert file":"Infoga fil","Insert youtube/vimeo video":"Infoga YouTube/Vimeo-video","Insert link":"Infoga länk","Font size":"Teckenstorlek","Font family":"Teckensnitt","Insert format block":"Infoga formateringsblock",Normal:"Normal","Heading 1":"Rubrik 1","Heading 2":"Rubrik 2","Heading 3":"Rubrik 3","Heading 4":"Rubrik 4",Quote:"Citat",Code:"Kod",Insert:"Infoga","Insert table":"Infoga tabell","Decrease Indent":"Minska indrag","Increase Indent":"Öka indrag","Select Special Character":"Välj specialtecken","Insert Special Character":"Infoga specialtecken","Paint format":"Kopiera format","Change mode":"Byt läge (WYSIWYG/HTML)",Margins:"Marginaler",top:"överst",right:"höger",bottom:"nederst",left:"vänster",Styles:"Stilar",Classes:"Klasser",Align:"Justering",Right:"Höger",Center:"Centrera",Left:"Vänster","--Not Set--":"--Inte inställd--",Src:"Källa",Title:"Titel",Alternative:"Alternativ",Filter:"Filter",Link:"Länk","Open link in new tab":"Öppna länk i ny flik",Image:"Bild",file:"fil",Advanced:"Avancerad","Image properties":"Bildegenskaper",Cancel:"Avbryt",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Din kod liknar HTML. Vill du behålla som HTML?","Paste as HTML":"Klistra in som HTML",Keep:"Behåll",Clean:"Rensa","Insert as Text":"Klistra in som text","Word Paste Detected":"Word-klistring upptäckt","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Det inklistrade innehållet kommer från ett Microsoft Word/Excel-dokument. Vill du behålla formatet eller rensa det?","Insert only Text":"Klistra in endast text","File Browser":"Filutforskare","Error on load list":"Fel vid inläsning av lista","Error on load folders":"Fel vid inläsning av mappar","Are you sure?":"Är du säker?","Enter Directory name":"Ange mappnamn","Create directory":"Skapa mapp","type name":"skriv namn","type dir name":"skriv namn","Drop image":"Släpp bild","Drop file":"Släpp fil","or click":"eller klicka","Alternative text":"Alternativ text",Browse:"Bläddra",Upload:"Ladda upp",Background:"Bakgrund",Border:"Kantlinje",Text:"Text",Top:"Topp",Middle:"Mitten",Bottom:"Botten","Insert column before":"Infoga kolumn före","Insert column after":"Infoga kolumn efter","Insert row above":"Infoga rad ovanför","Insert row below":"Infoga rad nedanför","Delete table":"Radera tabell","Delete row":"Radera rad","Delete column":"Radera kolumn","Empty cell":"Töm cell","Chars: %d":"Tecken: %d","Words: %d":"Ord: %d",Split:"Dela","Split vertical":"Dela vertikalt","Split horizontal":"Dela horisontellt","Strike through":"Genomstrykning",Underline:"Understrykning",superscript:"Upphöjd skrift",subscript:"Sänkt skrift","Cut selection":"Klipp ut markering","Select all":"Välj allt",Break:"Paus","Search for":"Sök efter","Replace with":"Ersätt med",Replace:"Ersätt",Paste:"Klistra in","Choose Content to Paste":"Välj innehåll att klistra in",source:"källa",bold:"fetstil",italic:"kursiv",brush:"pensel",link:"länk",undo:"ångra",redo:"gör om",table:"tabell",image:"bild",eraser:"radergummi",paragraph:"stycke",fontsize:"teckenstorlek",video:"video",font:"teckensnitt",about:"om redigeringsverktyget",print:"skriv ut",underline:"understrykning",strikethrough:"genomstrykning",indent:"indrag",outdent:"minska indrag",fullsize:"full storlek",shrink:"minska",hr:"linje",ul:"punktlista",ol:"numrerad lista",cut:"klipp ut",selectall:"välj allt","Open link":"Öppna länk","Edit link":"Redigera länk","No follow":"Ingen uppföljning",Unlink:"Ta bort länk",Eye:"Förhandsvisning",pencil:"Redigera"," URL":"URL",Reset:"Återställ",Save:"Spara","Save as ...":"Spara som ...",Resize:"Ändra storlek",Crop:"Beskär",Width:"Bredd",Height:"Höjd","Keep Aspect Ratio":"Behåll aspektförhållande",Yes:"Ja",No:"Nej",Remove:"Ta bort",Select:"Välj","Select %s":"Välj: %s",Update:"Uppdatera","Vertical align":"Vertikal justering",Merge:"Sammanfoga","Add column":"Lägg till kolumn","Add row":"Lägg till rad",Delete:"Radera","Horizontal align":"Horisontell justering","Sort by changed":"Sortera efter ändrad","Sort by name":"Sortera efter namn","Sort by size":"Sortera efter storlek","Add folder":"Lägg till mapp","You can only edit your own images. Download this image on the host?":"Du kan endast redigera dina egna bilder. Ladda ner denna bild på värden?","The image has been successfully uploaded to the host!":"Bilden har laddats upp till värden utan problem!",palette:"Palett","There are no files":"Det finns inga filer",Rename:"Döp om","Enter new name":"Ange nytt namn",preview:"Förhandsvisning",download:"Ladda ner","Paste from clipboard":"Klistra in från urklipp","Your browser doesn't support direct access to the clipboard.":"Din webbläsare stöder inte direkt åtkomst till urklipp.","Copy selection":"Kopiera markering",copy:"kopiera","Border radius":"Borderradie","Show all":"Visa alla",Apply:"Tillämpa","Please fill out this field":"Vänligen fyll i detta fält","Please enter a web address":"Vänligen ange en webbadress",Default:"Standard",Circle:"Cirkel",Dot:"Punkt",Quadrate:"Fyrkant",Find:"Hitta","Find Previous":"Föregående","Find Next":"Nästa","Insert className":"Infoga klassnamn","Press Alt for custom resizing":"Tryck på Alt för anpassad storleksändring","Line height":"Radavstånd",Edit:"Redigera",Sound:"Ljud","Interim Results":"Preliminära resultat",Spellcheck:"Stavningskontroll","Speech Recognize":"Taligenkänning",newline:"ny rad",delete:"radera",space:"mellanslag","Embed code":"Bädda in kod",All:"Välj alla","License: %s":"Licens: %s"},tr:{"Type something":"Bir şeyler yaz",Advanced:"Gelişmiş","About Jodit":"Jodit Hakkında","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit Kullanım Kılavuzu","contains detailed help for using":"kullanım için detaylı bilgiler içerir","For information about the license, please go to our website:":"Lisans hakkında bilgi için lütfen web sitemize gidin:","Buy full version":"Tam versiyonunu satın al","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tüm hakları saklıdır.",Anchor:"Bağlantı","Open in new tab":"Yeni sekmede aç","Open in fullsize":"Editörü tam ekranda aç","Clear Formatting":"Stili temizle","Fill color or set the text color":"Renk doldur veya yazı rengi seç",Redo:"Yinele",Undo:"Geri Al",Bold:"Kalın",Italic:"İtalik","Insert Unordered List":"Sırasız Liste Ekle","Insert Ordered List":"Sıralı Liste Ekle","Align Center":"Ortala","Align Justify":"Kenarlara Yasla","Align Left":"Sola Yasla","Align Right":"Sağa Yasla","Insert Horizontal Line":"Yatay Çizgi Ekle","Insert Image":"Resim Ekle","Insert file":"Dosya Ekle","Insert youtube/vimeo video":"Youtube/Vimeo Videosu Ekle","Insert link":"Bağlantı Ekle","Font size":"Font Boyutu","Font family":"Font Ailesi","Insert format block":"Blok Ekle",Normal:"Normal","Heading 1":"Başlık 1","Heading 2":"Başlık 2","Heading 3":"Başlık 3","Heading 4":"Başlık 4",Quote:"Alıntı",Code:"Kod",Insert:"Ekle","Insert table":"Tablo Ekle","Decrease Indent":"Girintiyi Azalt","Increase Indent":"Girintiyi Arttır","Select Special Character":"Özel Karakter Seç","Insert Special Character":"Özel Karakter Ekle","Paint format":"Resim Biçimi","Change mode":"Mod Değiştir",Margins:"Boşluklar",top:"Üst",right:"Sağ",bottom:"Alt",left:"Sol",Styles:"CSS Stilleri",Classes:"CSS Sınıfları",Align:"Hizalama",Right:"Sağ",Center:"Ortalı",Left:"Sol","--Not Set--":"Belirsiz",Src:"Kaynak",Title:"Başlık",Alternative:"Alternatif Yazı",Link:"Link","Open link in new tab":"Bağlantıyı yeni sekmede aç",Image:"Resim",file:"Dosya","Image properties":"Resim özellikleri",Cancel:"İptal",Ok:"Tamam","Your code is similar to HTML. Keep as HTML?":"Kodunuz HTML koduna benziyor. HTML olarak devam etmek ister misiniz?","Paste as HTML":"HTML olarak yapıştır",Keep:"Sakla",Clean:"Temizle","Insert as Text":"Yazı olarak ekle","Word Paste Detected":"Word biçiminde yapıştırma algılandı","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Yapıştırılan içerik bir Microsoft Word/Excel belgesinden geliyor. Formatı korumak mı yoksa temizlemek mi istiyorsunuz?","Insert only Text":"Sadece yazıyı ekle","File Browser":"Dosya Listeleyici","Error on load list":"Liste yüklenirken hata oluştu","Error on load folders":"Klasörler yüklenirken hata oluştur","Are you sure?":"Emin misiniz?","Enter Directory name":"Dizin yolu giriniz","Create directory":"Dizin oluştur","type name":"İsim yaz","type dir name":"İsim yaz","Drop image":"Resim bırak","Drop file":"Dosya bırak","or click":"veya tıkla","Alternative text":"Alternatif yazı",Browse:"Gözat",Upload:"Yükle",Background:"Arka plan",Text:"Yazı",Top:"Üst",Middle:"Orta",Bottom:"Aşağı","Insert column before":"Öncesine kolon ekle","Insert column after":"Sonrasına kolon ekle","Insert row above":"Üstüne satır ekle","Insert row below":"Altına satır ekle","Delete table":"Tabloyu sil","Delete row":"Satırı sil","Delete column":"Kolonu sil","Empty cell":"Hücreyi temizle",Delete:"Sil","Strike through":"Üstü çizili",Underline:"Alt çizgi",Break:"Satır sonu","Search for":"Ara","Replace with":"Şununla değiştir",Replace:"Değiştir",Edit:"Düzenle","Vertical align":"Dikey hizala","Horizontal align":"Yatay hizala",Filter:"Filtre","Sort by changed":"Değişime göre sırala","Sort by name":"İsme göre sırala","Sort by size":"Boyuta göre sırala","Add folder":"Klasör ekle",Split:"Ayır","Split vertical":"Dikey ayır","Split horizontal":"Yatay ayır",Merge:"Birleştir","Add column":"Kolon ekle","Add row":"Satır ekle",Border:"Kenarlık","Embed code":"Kod ekle",Update:"Güncelle",superscript:"Üst yazı",subscript:"Alt yazı","Cut selection":"Seçilimi kes",Paste:"Yapıştır","Choose Content to Paste":"Yapıştırılacak içerik seç","Chars: %d":"Harfler: %d","Words: %d":"Kelimeler: %d",All:"Tümü","Select %s":"Seç: %s","Select all":"Tümünü seç",source:"Kaynak",bold:"Kalın",italic:"italik",brush:"Fırça",link:"Bağlantı",undo:"Geri al",redo:"Yinele",table:"Tablo",image:"Resim",eraser:"Silgi",paragraph:"Paragraf",fontsize:"Font boyutu",video:"Video",font:"Font",about:"Hakkında",print:"Yazdır",underline:"Alt çizgi",strikethrough:"Üstü çizili",indent:"Girinti",outdent:"Çıkıntı",fullsize:"Tam ekran",shrink:"Küçült",hr:"Ayraç",ul:"Sırasız liste",ol:"Sıralı liste",cut:"Kes",selectall:"Tümünü seç","Open link":"Bağlantıyı aç","Edit link":"Bağlantıyı düzenle","No follow":"Nofollow özelliği",Unlink:"Bağlantıyı kaldır",Eye:"Yorumu",pencil:"Düzenlemek için"," URL":"URL",Reset:"Sıfırla",Save:"Kaydet","Save as ...":"Farklı kaydet",Resize:"Boyutlandır",Crop:"Kırp",Width:"Genişlik",Height:"Yükseklik","Keep Aspect Ratio":"En boy oranını koru",Yes:"Evet",No:"Hayır",Remove:"Sil",Select:"Seç","You can only edit your own images. Download this image on the host?":"Sadece kendi resimlerinizi düzenleyebilirsiniz. Bu görseli kendi hostunuza indirmek ister misiniz?","The image has been successfully uploaded to the host!":"Görsel başarıyla hostunuza yüklendi",palette:"Palet","There are no files":"Bu dizinde dosya yok",Rename:"Yeniden isimlendir","Enter new name":"Yeni isim girin",preview:"Ön izleme",download:"İndir","Paste from clipboard":"Panodan yapıştır ","Your browser doesn't support direct access to the clipboard.":"Tarayıcınız panoya doğrudan erişimi desteklemiyor.","Copy selection":"Seçimi kopyala",copy:"Kopyala","Border radius":"Sınır yarıçapı","Show all":"Tümünü Göster",Apply:"Uygula","Please fill out this field":"Lütfen bu alanı doldurun","Please enter a web address":"Lütfen bir web adresi girin",Default:"Varsayılan",Circle:"Daire",Dot:"Nokta",Quadrate:"Kare",Find:"Bul","Find Previous":"Öncekini Bul","Find Next":"Sonrakini Bul","Insert className":"Sınıf adı girin","Press Alt for custom resizing":"Özel yeniden boyutlandırma için Alt tuşuna basın","License: %s":"Lisans: %s"},ua:{"Type something":"Напишіть щось","About Jodit":"Про Jodit","Jodit Editor":"Редактор Jodit","Jodit User's Guide":"Jodit інструкція користувача","contains detailed help for using":"містить детальну інформацію щодо користування","For information about the license, please go to our website:":"Щоб дізнатись більше про ліцензію , будь ласка, перейдіть на наш сайт:","Buy full version":"Купити повну версію","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Авторські права © XDSoft.net - Чупурнов Валерій. Всі права захищені.",Anchor:"Анкор","Open in new tab":"Відкрити у новій вкладці","Open in fullsize":"Відкрити редактор в повному розмірі","Clear Formatting":"Очистити форматування","Fill color or set the text color":"Колір заливки або колір текста",Redo:"Повторити",Undo:"Відмінити",Bold:"Жирний",Italic:"Курсів","Insert Unordered List":"Вставити невпорядкований список","Insert Ordered List":"Вставити нумерованний список","Align Center":"Вирівняти по центру","Align Justify":"Вирівняти по ширині","Align Left":"Вирівняти по лівому краю","Align Right":"Вирівняти по правому краю","Insert Horizontal Line":"Вставити горизонтальну лінію","Insert Image":"Вставити зображення","Insert file":"Вставити файл","Insert youtube/vimeo video":"Вставити відео","Insert link":"Вставити посилання","Font size":"Розмір шрифту","Font family":"Шрифт","Insert format block":"Вставити блочний елемент",Normal:"Нормальний текст","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4",Quote:"Цитата",Code:"Код",Insert:"Вставити","Insert table":"Вставити таблицю","Decrease Indent":"Збільшити відступ","Increase Indent":"Зменшити відступ","Select Special Character":"Оберіть спеціальный символ","Insert Special Character":"Вставити спеціальный символ","Paint format":"Формат краски","Change mode":"Джерело",Margins:"Відступи",top:"зверху",right:"справа",bottom:"знизу",left:"зліва",Styles:"Стилі",Classes:"Класи",Align:"Вирівнювання",Right:"По правому краю",Center:"По центру",Left:"По лівому краю","--Not Set--":"--не встановлено--",Src:"src",Title:"Заголовок",Alternative:"Альтернативний текст (alt)",Link:"Посилання","Open link in new tab":"Відкрити посилання в новій вкладці",file:"Файл",Advanced:"Розширені","Image properties":"Властивості зображення",Cancel:"Відміна",Ok:"Ок","Your code is similar to HTML. Keep as HTML?":"Текст, який Ви намагаєтесь вставити схожий на HTML. Вставити його як HTML?","Paste as HTML":"Вставити його як HTML",Keep:"Зберегти оригінал",Clean:"Почистити","Insert as Text":"Вставити як текст","Insert only Text":"Вставити тільки текст","Word Paste Detected":"Можливо це фрагмент Word або Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Ви вставляєте контент з документа Microsoft Word або Excel. Бажаєте зберегти форматування?","File Browser":"Браузер файлів","Error on load list":"Помилка при завантаженні списку зображень","Error on load folders":"Помилка при завантаженні списку папок","Are you sure?":"Ви впевнені?","Enter Directory name":"Введіть назву папки","Create directory":"Створити папку","type name":"введіть назву","type dir name":"введіть назву","Drop image":"Перетягніть зображення сюди","Drop file":"Перетягніть файл сюди","or click":"або клікніть","Alternative text":"Альтернативный текст",Browse:"Сервер",Upload:"Завантаження",Background:"Фон",Text:"Текст",Top:" Вгору",Middle:"По центру",Bottom:"Донизу","Insert column before":"Вставити стовпець до","Insert column after":"Вставити стовпець після","Insert row above":"Вставити рядок вище","Insert row below":"Вставити рядок нижче","Delete table":"Видалити таблицю","Delete row":"Видалити рядок","Delete column":"Видалити стовпчик","Empty cell":"Очистити кліинку",source:"HTML",bold:"жирний",italic:"курсів",brush:"заливка",link:"посилання",undo:"відмінити",redo:"повторити",table:"таблиця",image:"зображення",eraser:"видалення",paragraph:"параграф",fontsize:"розмір шрифту",video:"відео",font:"шрифт",about:"про редактор",print:"друк",underline:"підкреслений",strikethrough:"закреслений",indent:"відступ",outdent:"заступ",fullsize:"на весь екран",shrink:"звичайний розмір",hr:"лінія",ul:"Список",ol:"Нумерований список",cut:"Вирізати",selectall:"Виділити все","Embed code":"Код","Open link":"Відкрити посилання","Edit link":"Редагувати посилання","No follow":"Атрибут nofollow",Unlink:"Видалити посилання",Eye:"Перегляд",pencil:"Редагування",Update:"Оновити"," URL":"URL",Edit:"Редагувати","Horizontal align":"Горизонтальне вирівнювання",Filter:"Фільтр","Sort by changed":"Сортувати за зміною","Sort by name":"Сортувати за ім'ям","Sort by size":"Сортувати за розміром","Add folder":"Додати папку",Reset:"Відновити",Save:"Зберегти","Save as ...":"Зберегти як",Resize:"Змінити розмір",Crop:"Обрізати розмір",Width:"Ширина",Height:"Висота","Keep Aspect Ratio":"Зберегти пропорції",Yes:"Так",No:"Ні",Remove:"Видалити",Select:"Вибрати","Chars: %d":"Символів: %d","Words: %d":"Слів: %d",All:"Вибрати все","Select %s":"Вибрати: %s","Select all":"Вибрати все","Vertical align":"Вертикальне вирівнювання",Split:"Розділити","Split vertical":"Розділити по вертикалі","Split horizontal":"Розділити по горизонталі",Merge:"Об'єднати в одну","Add column":"Додати стовпчик","Add row":"Додати рядок",Delete:"Видалити",Border:"Рамка","License: %s":"Ліцензія: %s","Strike through":"Закреслений",Underline:"Підкреслений",superscript:"верхній індекс",subscript:"індекс","Cut selection":"Обрізати вибране",Break:"Межа","Search for":"Шукати","Replace with":"Замінити на",Replace:"Замінити",Paste:"Вставити","Choose Content to Paste":"Обрати контент для вставки","You can only edit your own images. Download this image on the host?":"Ви можете редагувати лише власні зображення. Завантажити зображення на ваш сервер?","The image has been successfully uploaded to the host!":"Зображення успішно завантажено на сервер!",palette:"палітра","There are no files":"Файли відсутні",Rename:"Змінити назву","Enter new name":"Введіть нове імя'",preview:"Попередній перегляд",download:"Завантажити","Paste from clipboard":"Вставити з буфера обміну","Your browser doesn't support direct access to the clipboard.":"Ваш браузер не підтримує доступ до буфера обміну.","Copy selection":"Копіювати виділене",copy:"копія","Border radius":"Радіус рамки","Show all":"Показати все",Apply:"Застосувати","Please fill out this field":"Будь ласка, заповніть це поле","Please enter a web address":"Будь ласка, введіть веб-адресу",Default:"За замовченням",Circle:"Коло",Dot:"Крапка",Quadrate:"Квадрат",Find:"Знайти","Find Previous":"Знайти попередні","Find Next":"Знайти наступні","Insert className":"Вставити клас","Press Alt for custom resizing":"Натисніть Alt для зміни розміру"},zh_cn:{"Type something":"输入一些内容",Advanced:"高级","About Jodit":"关于Jodit","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Free Non-commercial Version","Jodit User's Guide":"开发者指南","contains detailed help for using":"使用帮助","For information about the license, please go to our website:":"有关许可证的信息,请访问我们的网站:","Buy full version":"购买完整版本","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. 版权所有",Anchor:"Anchor","Open in new tab":"在新窗口打开","Open in fullsize":"全屏编辑","Clear Formatting":"清除样式","Fill color or set the text color":"颜色",Redo:"重做",Undo:"撤销",Bold:"粗体",Italic:"斜体","Insert Unordered List":"符号列表","Insert Ordered List":"编号","Align Center":"居中","Align Justify":"对齐文本","Align Left":"左对齐","Align Right":"右对齐","Insert Horizontal Line":"分割线","Insert Image":"图片","Insert file":"文件","Insert youtube/vimeo video":"视频","Insert link":"链接","Font size":"字号","Font family":"字体","Insert format block":"格式块",Normal:"默认","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4",Quote:"引用",Code:"代码",Insert:"插入","Insert table":"表格","Decrease Indent":"减少缩进","Increase Indent":"增加缩进","Select Special Character":"选择特殊符号","Insert Special Character":"特殊符号","Paint format":"格式复制","Change mode":"改变模式",Margins:"外边距(Margins)",top:"top",right:"right",bottom:"bottom",left:"left",Styles:"样式",Classes:"Classes",Align:"对齐方式",Right:"居右",Center:"居中",Left:"居左","--Not Set--":"无",Src:"Src",Title:"Title",Alternative:"Alternative",Link:"Link","Open link in new tab":"在新窗口打开链接",Image:"图片",file:"file","Image properties":"图片属性",Cancel:"取消",Ok:"确定","Your code is similar to HTML. Keep as HTML?":"你粘贴的文本是一段html代码,是否保留源格式","Paste as HTML":"html粘贴",Keep:"保留源格式",Clean:"匹配目标格式","Insert as Text":"把html代码视为普通文本","Word Paste Detected":"文本粘贴","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"正在粘贴 Word/Excel 的文本,是否保留源格式?","Insert only Text":"只保留文本","File Browser":"文件管理","Error on load list":"加载list错误","Error on load folders":"加载folders错误","Are you sure?":"你确定吗?","Enter Directory name":"输入路径","Create directory":"创建路径","type name":"type name","type dir name":"type name","Drop image":"拖动图片到此","Drop file":"拖动文件到此","or click":"或点击","Alternative text":"Alternative text",Browse:"浏览",Upload:"上传",Background:"背景色",Text:"文字",Top:"顶部",Middle:"中间",Bottom:"底部","Insert column before":"在之前插入列","Insert column after":"在之后插入列","Insert row above":"在之前插入行","Insert row below":"在之后插入行","Delete table":"删除表格","Delete row":"删除行","Delete column":"删除列","Empty cell":"清除内容","Chars: %d":"字符数: %d","Words: %d":"单词数: %d","Strike through":"删除线",Underline:"下划线",superscript:"上标",subscript:"下标","Cut selection":"剪切","Select all":"全选",Break:"Break","Search for":"查找","Replace with":"替换为",Replace:"替换",Edit:"编辑",Paste:"粘贴","Choose Content to Paste":"选择内容并粘贴",All:"全部",source:"源码",bold:"粗体",italic:"斜体",brush:"颜色",link:"链接",undo:"撤销",redo:"重做",table:"表格",image:"图片",eraser:"橡皮擦",paragraph:"段落",fontsize:"字号",video:"视频",font:"字体",about:"关于",print:"打印",underline:"下划线",strikethrough:"上出现",indent:"增加缩进",outdent:"减少缩进",fullsize:"全屏",shrink:"收缩",hr:"分割线",ul:"无序列表",ol:"顺序列表",cut:"剪切",selectall:"全选","Open link":"打开链接","Edit link":"编辑链接","No follow":"No follow",Unlink:"取消链接",Eye:"预览"," URL":"URL",Reset:"重置",Save:"保存","Save as ...":"保存为",Resize:"调整大小",Crop:"剪切",Width:"宽",Height:"高","Keep Aspect Ratio":"保持长宽比",Yes:"是",No:"不",Remove:"移除",Select:"选择","Select %s":"选择: %s",Update:"更新","Vertical align":"垂直对齐",Merge:"合并","Add column":"添加列","Add row":"添加行",Border:"边框","Embed code":"嵌入代码",Delete:"删除","Horizontal align":"水平对齐",Filter:"筛选","Sort by changed":"修改时间排序","Sort by name":"名称排序","Sort by size":"大小排序","Add folder":"新建文件夹",Split:"拆分","Split vertical":"垂直拆分","Split horizontal":"水平拆分","You can only edit your own images. Download this image on the host?":"你只能编辑你自己的图片。Download this image on the host?","The image has been successfully uploaded to the host!":"图片上传成功",palette:"调色板",pencil:"铅笔","There are no files":"此目录中沒有文件。",Rename:"重命名","Enter new name":"输入新名称",preview:"预览",download:"下载","Paste from clipboard":"粘贴从剪贴板","Your browser doesn't support direct access to the clipboard.":"你浏览器不支持直接访问的剪贴板。","Copy selection":"复制选中内容",copy:"复制","Border radius":"边界半径","Show all":"显示所有",Apply:"应用","Please fill out this field":"请填写这个字段","Please enter a web address":"请输入一个网址",Default:"默认",Circle:"圆圈",Dot:"点",Quadrate:"方形",Find:"搜索","Find Previous":"查找上一个","Find Next":"查找下一个","Insert className":"插入班级名称","Press Alt for custom resizing":"按Alt自定义调整大小","License: %s":"许可证: %s"},zh_tw:{"Type something":"輸入一些內容",Advanced:"進階","About Jodit":"關於Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"開發者指南","contains detailed help for using":"使用幫助","For information about the license, please go to our website:":"相關授權條款資訊,請造訪我們的網站:","Buy full version":"購買完整版本","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"錨點","Open in new tab":"在新分頁開啟","Open in fullsize":"全螢幕編輯","Clear Formatting":"清除樣式","Fill color or set the text color":"顏色",Redo:"取消復原",Undo:"復原",Bold:"粗體",Italic:"斜體","Insert Unordered List":"項目符號清單","Insert Ordered List":"編號清單","Align Center":"置中","Align Justify":"文字對齊","Align Left":"靠左","Align Right":"靠右","Insert Horizontal Line":"分割線","Insert Image":"圖片","Insert file":"檔案","Insert youtube/vimeo video":"插入 youtube/vimeo 影片","Insert link":"插入連結","Font size":"文字大小","Font family":"字型","Insert format block":"格式化區塊",Normal:"內文","Heading 1":"標題1","Heading 2":"標題2","Heading 3":"標題3","Heading 4":"標題4",Quote:"引文",Code:"程式碼",Insert:"插入","Insert table":"表格","Decrease Indent":"減少縮排","Increase Indent":"增加縮排","Select Special Character":"選擇特殊符號","Insert Special Character":"特殊符號","Paint format":"格式複製","Change mode":"檢視原始碼",Margins:"邊距",top:"上",right:"右",bottom:"下",left:"左",Styles:"樣式",Classes:"Classes",Align:"對齊方式",Right:"靠右",Center:"置中",Left:"靠左","--Not Set--":"無",Src:"Src",Title:"Title",Alternative:"替代",Link:"Link","Open link in new tab":"在新分頁開啟連結",Image:"圖片",file:"檔案","Image properties":"圖片屬性",Cancel:"取消",Ok:"確定","Your code is similar to HTML. Keep as HTML?":"您的程式碼與 HTML 類似,是否貼上 HTML 格式?","Paste as HTML":"貼上 HTML",Keep:"保留原始格式",Clean:"清除格式","Insert as Text":"以純文字貼上","Word Paste Detected":"貼上 Word 格式","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"正在貼上 Word/Excel 文件的內容,是否保留原始格式?","Insert only Text":"僅貼上內文","File Browser":"檔案瀏覽","Error on load list":"清單載入錯誤","Error on load folders":"資料夾載入錯誤","Are you sure?":"您確定嗎?","Enter Directory name":"輸入路徑","Create directory":"創建路徑","type name":"type name","type dir name":"type name","Drop image":"拖曳圖片至此","Drop file":"拖曳檔案至此","or click":"或點擊","Alternative text":"替代文字",Browse:"瀏覽",Upload:"上傳",Background:"背景色",Text:"文字",Top:"頂部",Middle:"中間",Bottom:"底部","Insert column before":"插入左方欄","Insert column after":"插入右方欄","Insert row above":"插入上方列","Insert row below":"插入下方列","Delete table":"刪除表格","Delete row":"刪除整列","Delete column":"刪除整欄","Empty cell":"清除內容","Chars: %d":"字元數: %d","Words: %d":"單字數: %d","Strike through":"刪除線",Underline:"底線",superscript:"上標",subscript:"下標","Cut selection":"剪下","Select all":"全選",Break:"斷行","Search for":"尋找","Replace with":"取代為",Replace:"取代",Paste:"貼上","Choose Content to Paste":"選擇內容並貼上",All:"全部",source:"原始碼",bold:"粗體",italic:"斜體",brush:"顏色",link:"連結",undo:"復原",redo:"取消復原",table:"表格",image:"圖片",eraser:"橡皮擦",paragraph:"段落",fontsize:"文字大小",video:"影片",font:"字型",about:"關於",print:"列印",underline:"底線",strikethrough:"刪除線",indent:"增加縮排",outdent:"減少縮排",fullsize:"全螢幕",shrink:"縮減",hr:"分隔線",ul:"項目符號清單",ol:"編號清單",cut:"剪下",selectall:"全選","Open link":"打開連結","Edit link":"編輯連結","No follow":"No follow",Unlink:"取消連結",Eye:"查看"," URL":"URL",Reset:"重設",Save:"儲存","Save as ...":"另存為...",Resize:"調整大小",Crop:"裁切",Width:"寬",Height:"高","Keep Aspect Ratio":"維持長寬比",Yes:"是",No:"否",Remove:"移除",Select:"選擇","Select %s":"選擇: %s",Update:"更新","Vertical align":"垂直對齊",Merge:"合併","Add column":"新增欄","Add row":"新增列",Border:"邊框","Embed code":"嵌入程式碼",Delete:"刪除","Horizontal align":"水平對齊",Filter:"篩選","Sort by changed":"修改時間排序","Sort by name":"名稱排序","Sort by size":"大小排序","Add folder":"新增資料夾",Split:"分割","Split vertical":"垂直分割","Split horizontal":"水平分割","You can only edit your own images. Download this image on the host?":"您只能編輯您自己的圖片。是否下載此圖片?","The image has been successfully uploaded to the host!":"圖片上傳成功",palette:"調色盤",pencil:"鉛筆","There are no files":"沒有檔案",Rename:"重新命名","Enter new name":"輸入新名稱",preview:"預覽",download:"下載","Paste from clipboard":"從剪貼簿貼上","Your browser doesn't support direct access to the clipboard.":"瀏覽器無法存取剪貼簿。","Copy selection":"複製已選取項目",copy:"複製","Border radius":"邊框圓角","Show all":"顯示全部",Apply:"應用","Please fill out this field":"請輸入此欄位","Please enter a web address":"請輸入網址",Default:"預設",Circle:"圓圈",Dot:"點",Quadrate:"方形",Find:"尋找","Find Previous":"尋找上一個","Find Next":"尋找下一個","Insert className":"插入 class 名稱","Press Alt for custom resizing":"按住 Alt 以調整自訂大小",Edit:"編輯","License: %s":"許可證: %s"}};const pT=e=>e?e.default||e:{},fT={};$C(pT(AT))&&pT(AT).forEach((e,t)=>{fT[t]=e}),Object.keys(hT).forEach(e=>{const t=pT(hT[e]);$C(t)?(hT[e]={},t.forEach((t,n)=>{hT[e][fT[n]]=t})):hT[e]=t});const mT=hT;function gT(e){return t=>!0!==e.e.fire("backSpaceIsMovedIgnore",t)}function yT(e,t,n,r){if(t&&qB.isElement(n)){qB.moveContent(t,n,!r,gT(e));let o=t;for(;o&&o!==e.editor&&qB.isEmpty(o);){const e=o.parentElement;qB.safeRemove(o),o=e}return!0}return!1}function vT(e,t,n){const r=qB.findSibling(t,n),o=qB.findSibling(t,!n);if(!qB.closest(t,qB.isElement,e.editor)&&qB.isList(r)&&qB.isList(o)&&qB.isTag(r.lastElementChild,"li")&&qB.isTag(o.firstElementChild,"li")){const{setCursorBefore:i,setCursorAfter:s}=e.s,a=r.lastElementChild,l=o.firstElementChild;return LB(n?qB.prepend:qB.append,l,t),qB.moveContent(o,r,!n,gT(e)),qB.safeRemove(o),LB(n?qB.append:qB.prepend,a,t),LB(n?i:s,t),!0}return!1}function bT(e,t,n,r){var o,i;const s=n?-1:1,a=qB.sibling(t,!n);let l,c=qB.sibling(t,n),u=null,d=!1;for(c||(c=wT(t,n,e.editor));c&&(qB.isText(c)||qB.isInlineBlock(c));){for(;qB.isInlineBlock(c);)c=n?null==c?void 0:c.lastChild:null==c?void 0:c.firstChild;if(!c)break;if((null===(o=c.nodeValue)||void 0===o?void 0:o.length)&&(l=xT(c,n,s,a),!c.nodeValue.length&&qB.isInlineBlock(c.parentNode)&&(c.nodeValue=U_)),(null===(i=c.nodeValue)||void 0===i?void 0:i.length)||(u=c),!XC(l)&&l!==U_){kT(n,c,t,r,l,e),d=!0;break}const A=wT(c,n,e.editor);u&&(qB.safeRemove(u),u=null),c=A}return u&&(qB.safeRemove(u),u=null),d&&(function(e){let t=e.parentElement;for(;t&&qB.isInlineBlock(t)&&qB.isTag(t,"a");){const n=t.parentElement;qB.isEmpty(t)&&(qB.after(t,e),qB.safeRemove(t)),t=n}}(t),function(e,t){t.parentElement!==e.editor&&qB.isBlock(t.parentElement)&&qB.each(t.parentElement,qB.isEmptyTextNode)&&qB.after(t,e.createInside.element("br"))}(e,t),e.s.setCursorBefore(t),qB.isTag(t.previousSibling,"br")&&!qB.findNotEmptySibling(t,!1)&&qB.after(t,e.createInside.element("br"))),d}function wT(e,t,n){let r=qB.sibling(e,t);return!r&&e.parentNode&&e.parentNode!==n&&(r=function(e,t,n,r=!1){const o=e=>t?e.firstChild:e.lastChild;let i=qB.findNotEmptyNeighbor(e,!t,n);if(r&&qB.isElement(i)&&!qB.isInlineBlock(i))return null;if(i)do{if(!o(i))return i;i=o(i)}while(i);return null}(e,!t,n,!0),r&&qB.closest(e,"li",n)!==qB.closest(r,"li",n))?null:r}function xT(e,t,n,r){let o=nB(e.nodeValue);const i=o.length;let s=t?i-1:0;if(o[s]===U_)for(;o[s]===U_;)s+=n;const a=o[s];if(o[s+n]===U_){for(s+=n;o[s]===U_;)s+=n;s+=t?1:-1}return o=t&&s<0?[]:o.slice(t?0:s+1,t?s:i),function(e,t,n){var r;if(!e||!qB.isText(e)||(t?/^ /:/ $/).test(null!==(r=e.nodeValue)&&void 0!==r?r:"")||!aB(e.nodeValue||"").length)for(let e=t?n.length-1:0;(t?e>=0:e<n.length)&&" "===n[e];e+=t?-1:1)n[e]=R_}(r,t,o),e.nodeValue=o.join(""),a}function kT(e,t,n,r,o,i){LB(e?qB.after:qB.before,t,n),("sentence"===r||"word"===r&&" "!==o&&o!==R_)&&bT(i,n,e,r)}function _T(e,t,n){let r=!1;const{setCursorBefore:o,setCursorIn:i}=e.s;let s=qB.closest(t,qB.isElement,e.editor);if(!s||!qB.isEmpty(s))return!1;const a=qB.findNotEmptyNeighbor(t,n,e.editor);do{if(!s||!qB.isEmpty(s)||qB.isCell(s))break;{qB.after(s,t);const n=qB.closest(s,e=>qB.isElement(e)&&e!==s,e.editor);qB.safeRemove(s),r=!0,s=n}}while(s);return!(!r||!vT(e,t,n))||(!a||qB.isText(a)||qB.isTag(a,J_)?o(t):i(a,!n),r)}dj.prototype.controls.about={exec:e=>{const t=e.dlg({closeOnClickOverlay:!0}),n=e.i18n.bind(e);t.setMod("theme",e.o.theme).setHeader(n("About Jodit")).setContent(`<div class="jodit-about">\n\t\t\t\t\t<div>${n("Jodit Editor")} v.${e.getVersion()}</div>\n\t\t\t\t\t<div>${n("License: %s",nS(e.o.license)?Kj(e.o.license):e.o.license||"MIT")}</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="${M_}" target="_blank">${M_}</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="https://xdsoft.net/jodit/docs/" target="_blank">${n("Jodit User's Guide")}</a>\n\t\t\t\t\t\t${n("contains detailed help for using")}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>${n("Copyright © XDSoft.net - Chupurnov Valerii. All rights reserved.")}</div>\n\t\t\t\t</div>`),wB(t.dialog,{minHeight:200,minWidth:420}),t.open(!0,!0)},tooltip:"About Jodit",mode:bC+vC},RS.add("about",function(e){e.registerButton({name:"about",group:"info"})}),jE.set("about",'<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg> '),dj.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}};const CT=[["remove-unbreakable",function(e,t,n){const r=qB.findSibling(t,n);return!(!qB.isElement(r)||!qB.isTag(r,J_)&&!qB.isEmpty(r)||(qB.safeRemove(r),qB.isTag(r,"br")&&!qB.findNotEmptySibling(t,!1)&&qB.after(t,e.createInside.element("br")),e.s.setCursorBefore(t),qB.isTag(r,"br")&&_T(e,t,n),0))}],["remove-not-editable",function(e,t,n){let r=qB.findSibling(t,n);return!r&&t.parentElement&&t.parentElement!==e.editor&&(r=qB.findSibling(t.parentElement,n)),!(!qB.isElement(r)||qB.isContentEditable(r,e.editor)||(LB(n?qB.before:qB.after,r,t),qB.safeRemove(r),EF(e,t,n),LB(n?e.s.setCursorBefore:e.s.setCursorAfter,t),0))}],["remove-char",bT],["table-cell",function(e,t){const n=t.parentElement;return!!qB.isCell(n)}],["remove-empty-parent",_T],["remove-empty-neighbor",function(e,t,n){const r=qB.closest(t,qB.isElement,e.editor);if(!r)return!1;const o=qB.findNotEmptySibling(r,n);return!(!o||!qB.isEmpty(o)||(qB.safeRemove(o),e.s.setCursorBefore(t),0))}],["join-two-lists",vT],["join-neighbors",function(e,t,n){let r=t,o=r;for(;r&&!qB.findNotEmptySibling(r,n)&&r.parentElement!==e.editor;)r=r.parentElement,o=r;if(qB.isElement(o)&&qB.isContentEditable(o,e.editor)){const r=qB.findNotEmptySibling(o,n);if(qB.isTag(r,"br"))return qB.safeRemove(r),e.s.setCursorBefore(t),!0;if(r&&(function(e,t,n,r){const o=qB.isTag(n,Z_),i=qB.isTag(t,Z_),s=(e,t)=>t?e.firstElementChild:e.lastElementChild;return i?(n=e.createInside.element(e.o.enterBlock),qB.before(t,n),yT(e,s(t,r),n,r)):!(!n||!o||i)&&yT(e,t,s(n,!r),r)}(e,o,r,n)||yT(e,o,function(e,t){if(!qB.isTag(e,"table"))return e;const n=e.querySelectorAll("td,th");return n.length?n[t?n.length-1:0]:null}(r,n),n)))return e.s.setCursorBefore(t),!0}return!1}],["unwrap-first-list-item",function(e,t,n){var r;const o=qB.closest(t,qB.isElement,e.editor),{s:i}=e;if(qB.isLeaf(o)&&(null===(r=null==o?void 0:o.parentElement)||void 0===r?void 0:r[n?"firstElementChild":"lastElementChild"])===o&&i.cursorInTheEdge(n,o)){const r=o.parentElement,s=e.createInside.element(e.o.enterBlock);return LB(n?qB.before:qB.after,r,s),qB.moveContent(o,s),qB.safeRemove(o),qB.isEmpty(r)&&qB.safeRemove(r),LB(n?i.setCursorBefore:i.setCursorAfter,t),!0}return!1}]];CT.map(([,e])=>e);class BT extends SI{afterInit(e){e.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:e.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:e.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:e.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:e.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:e.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:e.o.delete.hotkeys.backspaceSentence})}beforeDestruct(e){e.e.off("afterCommand.delete")}onDelete(e,t="char"){const n=this.j,r=n.selection;if(r.isFocused()||r.focus(),function(e){return!e.s.isCollapsed()&&(e.execCommand("Delete"),!0)}(n))return n.e.fire("backSpaceAfterDelete",e),!1;const o=r.range,i=n.createInside.text(U_);try{if(qB.safeInsertNode(o,i),!qB.isOrContains(n.editor,i))return;if(n.e.fire("backSpaceBeforeCases",e,i))return!1;EF(n,i,e);const r=n.o.delete.disableCases;if(CT.some(([o,s])=>{if(!r||!r.has(o))return VC(s)&&s(n,i,e,t)?(T_||console.info("Remove case:",o),!0):void 0}))return!1}catch(e){throw T_||console.error(e),e}finally{n.e.fire("backSpaceAfterDelete",e,i),this.safeRemoveEmptyNode(i)}return!1}safeRemoveEmptyNode(e){var t,n;const{range:r}=this.j.s;r.startContainer===e&&(e.previousSibling?qB.isText(e.previousSibling)?r.setStart(e.previousSibling,null!==(n=null===(t=e.previousSibling.nodeValue)||void 0===t?void 0:t.length)&&void 0!==n?n:0):r.setStartAfter(e.previousSibling):e.nextSibling&&(qB.isText(e.nextSibling)?r.setStart(e.nextSibling,0):r.setStartBefore(e.nextSibling)),r.collapse(!0),this.j.s.selectRange(r)),qB.safeRemove(e)}}BT.requires=["hotkeys"],RS.add("backspace",BT);class ST extends SI{afterInit(e){e.e.on("afterCommand.delete",e=>{"delete"===e&&this.__afterDeleteCommand()}),e.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(e){e.e.off("afterCommand.delete")}__afterDeleteCommand(){const e=this.j,t=e.s.current();if(t&&qB.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!(iB(e.editor.textContent||"")||e.editor.querySelector("img,table,jodit,iframe,hr")||t&&qB.closest(t,"table",e.editor))){e.editor.innerHTML="";const t=e.s.setCursorIn(e.editor);e.s.removeNode(t)}}__onDeleteCommand(){const{jodit:e}=this;if(e.s.isCollapsed())return;e.s.expandSelection();const t=e.s.range;t.deleteContents();const n=e.createInside.fake();t.insertNode(n);const r=qB.findSibling(n,!0),o=qB.findSibling(n,!1);return this.__moveContentInLeftSibling(n,r,o),t.setStartBefore(n),t.collapse(!0),this.__moveCursorInEditableSibling(e,r,n,t),this.__addBrInEmptyBlock(n,o,t),qB.safeRemove(n),e.s.selectRange(t),!1}__moveContentInLeftSibling(e,t,n){t=this.__defineRightLeftBox(t),!qB.isList(n)&&!qB.isTag(n,"table")&&qB.isBlock(n)&&qB.isBlock(t)&&(qB.append(t,e),qB.moveContent(n,t),qB.safeRemove(n)),qB.isList(n)&&qB.isLeaf(n.firstElementChild)&&qB.isEmpty(n.firstElementChild)&&qB.safeRemove(n.firstElementChild)}__defineRightLeftBox(e){if(!qB.isList(e))return e;let t=e.lastElementChild;return qB.isLeaf(t)||(t=this.j.createInside.element("li"),qB.append(e,t)),t}__addBrInEmptyBlock(e,t,n){const r=this.j;if(e.isConnected&&qB.isBlock(e.parentNode)&&!e.nextSibling&&!e.previousSibling){const t=r.createInside.element("br");qB.after(e,t),n.setStartBefore(t),n.collapse(!0)}if(qB.isTag(t,"table")){const e=$S("td,th",t).shift();qB.isCell(e)&&qB.isEmpty(e)&&qB.append(e,r.createInside.element("br"))}}__moveCursorInEditableSibling(e,t,n,r){var o;if(!t||!qB.isText(t)){const t=null!==(o=qB.closest(n,qB.isBlock,e.editor))&&void 0!==o?o:e.editor,i=qB.prev(n,qB.isText,t);i&&(r.setStartAfter(i),r.collapse(!0),qB.safeRemove(n))}}}ST.requires=["backspace"],RS.add("deleteCommand",ST),dj.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},dj.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},dj.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},dj.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},dj.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},dj.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"},RS.add("bold",function(e){const t=t=>{const n=dj.defaultOptions.controls[t],r={...n.css};let o;return Object.keys(r).forEach(e=>{o||(o={}),o[e]=$C(r[e])?r[e][0]:r[e]}),e.s.commitStyle({element:n.tags?n.tags[0]:void 0}),e.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(t=>{e.registerButton({name:t,group:"font-style"})}),["superscript","subscript"].forEach(t=>{e.registerButton({name:t,group:"script"})}),e.registerCommand("bold",{exec:t,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:t,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:t,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:t}).registerCommand("subscript",{exec:t}).registerCommand("superscript",{exec:t})}),jE.set("bold",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg> ').set("italic",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg> ').set("strikethrough",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg> ').set("subscript",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg> ').set("superscript",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg> ').set("underline",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg> '),jE.set("palette",'<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg> ');const jT=(e,t,n)=>{const r="jodit-color-picker",o=qj(n),i=e.c.div(r),s=e.o.textIcons?`<span>${e.i18n("palette")}</span>`:jE.get("palette"),a=e=>{const t=[];return dB(e)?Object.keys(e).forEach(n=>{t.push(`<div class="${r}__group ${r}__group-${n}">`),t.push(a(e[n])),t.push("</div>")}):$C(e)&&e.forEach(e=>{t.push(`<span class='${r}__color-item ${o===e?r+"__color-item_active_true":""}' title="${e}" style="background-color:${e}" data-color="${e}"></span>`)}),t.join("")};i.appendChild(e.c.fromHTML(`<div class="${r}__groups">${a(e.o.colors)}</div>`)),i.appendChild(e.c.fromHTML(`<div data-ref="extra" class="${r}__extra"></div>`));const{extra:l}=ZS(i);l.appendChild(e.c.fromHTML(`<div class="${r}__hex"><input data-ref="hexInput" type="text" spellcheck="false" aria-label="HEX" placeholder="#FF0000" value="${o||""}"/></div>`));const{hexInput:c}=ZS(i),u=()=>{const e=c.value.trim(),n=/^#?[0-9a-f]{3}(?:[0-9a-f]{3})?$/i.test(e),r=/^rgba?\([\d\s.,%]+\)$/i.test(e);if(!n&&!r)return;const o=qj(n&&!e.startsWith("#")?"#"+e:e);o&&VC(t)&&t(o)};return e.e.on(c,"keydown",e=>{e.stopPropagation(),"Enter"===e.key&&(e.preventDefault(),u())}).on(c,"change",e=>{e.stopPropagation(),u()}),e.o.showBrowserColorPicker&&VB()&&(l.appendChild(e.c.fromHTML(`<div class="${r}__native">${s}<input type="color" value="#ffffff"/></div>`)),e.e.on(i,"change",e=>{e.stopPropagation();const n=e.target;if(!n||!n.tagName||!qB.isTag(n,"input")||"color"!==n.type)return;const r=n.value||"";VC(t)&&t(r),e.preventDefault()})),e.e.on(i,"mousedown touchend",n=>{if(qB.isTag(n.target,"input"))return void n.stopPropagation();n.stopPropagation(),n.preventDefault();let o=n.target;if(o&&o.tagName&&!qB.isTag(o,"svg")&&!qB.isTag(o,"path")||!o.parentNode||(o=qB.closest(o.parentNode,"span",e.editor)),!qB.isTag(o,"span")||!o.classList.contains(r+"__color-item"))return;const i=kB(o,"-color")||"";t&&VC(t)&&t(i)}),e.e.fire("afterGenerateColorPicker",i,l,t,o),i},ET=(e,t,n)=>{const r=e.c.div("jodit-tabs"),o=e.c.div("jodit-tabs__wrapper"),i=e.c.div("jodit-tabs__buttons");kB(i,{role:"tablist","aria-orientation":"horizontal"});const s={},a=[];let l="";r.appendChild(i),r.appendChild(o);const c=e=>{s[e]&&(a.forEach(e=>{e.state.activated=!1}),Object.values(s).forEach(({tab:e})=>e.classList.remove("jodit-tab_active")),s[e].button.state.activated=!0,s[e].tab.classList.add("jodit-tab_active"))};t.forEach(({icon:r,name:u,content:d})=>{const A=e.c.div("jodit-tab");kB(A,{role:"tabpanel"});const h=LE(e,r||u,u);h.state.role="tab",e.e.on(h.container,"pointerdown",e=>e.preventDefault()),l||(l=u),i.appendChild(h.container),a.push(h),h.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+t.length),VC(d)?A.classList.add("jodit-tab_empty"):A.appendChild(uE.isInstanceOf(d,NE)?d.container:d),o.appendChild(A),h.onAction(()=>(c(u),VC(d)&&!qB.isElement(d)&&d.call(e),n&&(n.activeTab=u),!1)),s[u]={button:h,tab:A}});const u=n&&n.activeTab&&s[n.activeTab]?n.activeTab:l;if(c(u),n){let e=n.activeTab;Object.defineProperty(n,"activeTab",{configurable:!0,enumerable:!1,get:()=>e,set(t){e=t,c(t)}})}return r},NT=(e,t,n,r,o=!0)=>{let i;const s=[],a=e.o.uploader;if(t.upload&&!1!==a.showTabInFileSelector&&(a.url||a.insertImageAsBase64URI||a.customUploadFunction)){const n=e.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${e.i18n(o?"Drop image":"Drop file")}</strong><span><br>${e.i18n("or click")}</span><input type="file" accept="${o?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);e.uploader.bind(n,n=>{const r=VC(t.upload)?t.upload:a.defaultHandlerSuccess;VC(r)&&r.call(e,n),e.e.fire("closeAllPopups")},t=>{e.message.error(t.message),e.e.fire("closeAllPopups")}),s.push({icon:"upload",name:"Upload",content:n})}if(t.filebrowser&&(e.o.filebrowser.ajax.url||e.o.filebrowser.items.url)&&s.push({icon:"folder",name:"Browse",content:()=>{r&&r(),t.filebrowser&&e.filebrowser.open(t.filebrowser,o)}}),t.url){const r=new TE(e,{type:"submit",variant:"primary",text:"Insert"}),o=new JE(e,[new YE(e,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new YE(e,{name:"text",label:"Alternative text"}),new qE(e,[r])]);i=null,!n||qB.isText(n)||qB.isComment(n)||!qB.isTag(n,"img")&&!$S("img",n).length||(i="IMG"===n.tagName?n:$S("img",n)[0],IT(o.container,"input[name=url]",kB(i,"src")),IT(o.container,"input[name=text]",kB(i,"alt")),r.state.text="Update"),n&&qB.isTag(n,"a")&&(IT(o.container,"input[name=url]",kB(n,"href")),IT(o.container,"input[name=text]",kB(n,"title")),r.state.text="Update"),o.onSubmit(n=>{VC(t.url)&&t.url.call(e,n.url,n.text)}),s.push({icon:"link",name:"URL",content:o.container})}const l=ET(e,s);return l.classList.add("jodit-file-selector"),l};function IT(e,t,n){const r=e.querySelector(t);return r?(n&&(r.value=n),r.value):""}function FT(e){if(!e)return!1;const t=qB.findSibling(e,!0);return!(!t||!qB.isTag(t,"br"))&&t}function TT(e,t,n=$_){let r=e;const o=t.editor;do{if(!r||r===o)break;if(n.test(r.nodeName))return qB.isLeaf(r)?r:TT(r.parentNode,t,/^li$/i)||r;r=r.parentNode}while(r&&r!==o);return null}function LT(e,t,n,r){const o="br"===n.toLowerCase(),{createInside:i}=t,s=i.element(n),a=i.element("br");return o||s.appendChild(a),r&&r.cssText&&kB(s,"style",r.cssText),qB.after(e,s),qB.before(o?s:a,e),Nj(s,t.editor,t.ed),s}jE.set("brush",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg> '),dj.prototype.controls.brushCell={isVisible:e=>!e.o.disablePlugins.includes("color"),icon:"brush",popup:(e,t,n)=>{if(!tS(e))return;const r=e.getInstance("Table",e.o).getAllSelectedCells();if(!r.length)return!1;const o=t=>jT(e,o=>{r.forEach(e=>{wB(e,t,o)}),e.lock(),e.synchronizeValues(),n(),e.unlock()},wB(r[0],t));return ET(e,[{name:"Background",content:o("background-color")},{name:"Text",content:o("color")},{name:"Border",content:o("border-color")}])},tooltip:"Background"},dj.prototype.controls.brush={isVisible:e=>!e.o.disablePlugins.includes("color"),update(e,t){const n=BB(t,"color"),r=(n,r)=>!(!r||r===wB(e.editor,n).toString()||(t.state.icon.fill=r,0));if(n){const e=BB(t,"color");return void r("color"===e?e:"background-color",n)}const o=e.s.current();if(o&&!t.state.disabled){const t=qB.closest(o,qB.isElement,e.editor)||e.editor,n=r("color",wB(t,"color").toString()),i=r("background-color",wB(t,"background-color").toString());if(n||i)return}t.state.icon.fill="",t.state.activated=!1},popup:(e,t,n,r)=>{let o="",i="",s=[],a=null;t&&t!==e.editor&&qB.isNode(t)&&(qB.isElement(t)&&e.s.isCollapsed()&&!qB.isTag(t,new Set(["br","hr"]))&&(a=t),qB.up(t,e=>{if(qB.isHTMLElement(e)){const t=wB(e,"color",!0),n=wB(e,"background-color",!0);if(t)return o=t.toString(),!0;if(n)return i=n.toString(),!0}},e.editor));const l=jT(e,t=>{a?a.style.backgroundColor=t:e.execCommand("background",!1,t),BB(r,"color",t),BB(r,"color-mode","background"),n()},i),c=jT(e,t=>{a?a.style.color=t:e.execCommand("forecolor",!1,t),BB(r,"color",t),BB(r,"color-mode","color"),n()},o);return s=[{name:"Background",content:l},{name:"Text",content:c}],"background"!==e.o.colorPickerDefaultTab&&(s=s.reverse()),ET(e,s,a)},exec(e,t,{button:n}){const r=BB(n,"color-mode"),o=BB(n,"color");if(!r)return!1;if(t&&t!==e.editor&&qB.isNode(t)&&qB.isElement(t))switch(r){case"color":t.style.color=o;break;case"background":t.style.backgroundColor=o}else e.execCommand("background"===r?r:"forecolor",!1,o)},tooltip:"Fill color or set the text color"},RS.add("color",function(e){e.registerButton({name:"brush",group:"color"});const t=(t,n,r)=>{var o;const i=qj(r)||"",s="background"===t?{backgroundColor:i}:{color:i},a=e.getInstance("Table",e.o).getAllSelectedCells();return a.length&&e.s.isCollapsed()?(a.forEach(t=>{e.s.select(t,!0),e.s.commitStyle({attributes:{style:s}})}),null===(o=e.s.sel)||void 0===o||o.removeAllRanges()):e.s.commitStyle({attributes:{style:s}}),e.synchronizeValues(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)});class PT extends SI{afterInit(e){const t=e.o.enter.toLowerCase(),n=t===gC.toLowerCase();e.o.enterBlock||(e.o.enterBlock=n?yC:t),e.registerCommand("enter",(e,t,n={})=>this.onEnter(n))}onEnterKeyDown(e){if(e.key===oC){const t=this.j,n=t.e.fire("beforeEnter",e);return void 0!==n?n:(t.history.snapshot.transaction(()=>{t.s.isCollapsed()||t.execCommand("Delete"),t.s.focus(),this.onEnter(e),t.e.fire("afterEnter",e)}),t.synchronizeValues(),!1)}}onEnter(e){const{jodit:t}=this,n=t.createInside.fake();try{qB.safeInsertNode(t.s.range,n),function(e,t){const{s:n}=e,r=qB.closest(t,["a"],e.editor);r&&(n.cursorOnTheRight(r,t)?qB.after(r,t):n.cursorOnTheLeft(r,t)&&qB.before(r,t))}(t,n);let r=TT(n,t);const o=qB.isLeaf(r);if((!o||(null==e?void 0:e.shiftKey))&&function(e,t,n){const r=Boolean(qB.closest(e,["pre","blockquote"],t.editor)),o=!r&&qB.closest(e,["td","th"],t.editor);if(t.o.enter.toLowerCase()===gC.toLowerCase()||o||n&&!r||!n&&r){if(r&&function(e){const t=FT(FT(e));return!!t&&(qB.safeRemove(FT(e)),qB.safeRemove(t),!0)}(e))return!1;const n=t.createInside.element("br");if(qB.before(e,n),!qB.findNotEmptySibling(n,!1)){const t=n.cloneNode();qB.after(n,t),qB.before(t,e)}return Nj(n,t.editor,t.ed),!0}return!1}(n,t,null==e?void 0:e.shiftKey))return!1;if(r||function(e,t){return Boolean(qB.prev(e,e=>qB.isBlock(e)||qB.isImage(e),t.editor))}(n,t)||(r=function(e,t){let n=e;qB.up(n,e=>{e&&e.hasChildNodes()&&e!==t.editor&&(n=e)},t.editor);const r=qB.wrapInline(n,t.o.enter,t);if(qB.isEmpty(r)){const n=t.createInside.element("br");r.appendChild(n),qB.before(n,e)}return r}(n,t)),!r)return LT(n,t,o?"li":t.o.enter),!1;if(!function(e,t,n){return!!qB.canSplitBlock(n)||(qB.before(e,t.createInside.element("br")),!1)}(n,t,r))return!1;if(o&&this.__isEmptyListLeaf(r))return function(e,t,n){const r=qB.closest(n,["ol","ul"],t.editor);if(!r)return;const o=r.parentElement,i=qB.isLeaf(o),s=i?o:r,a=t.s.createRange();a.setStartAfter(n),a.setEndAfter(r);const l=a.extractContents();qB.after(s,e),qB.safeRemove(n),$S("li",r).length||qB.safeRemove(r);const c=LT(e,t,i?"li":t.o.enter);l.querySelector("li")&&(i?c.appendChild(l):qB.after(c,l))}(n,t,r),!1;!function(e,t,n){const r=t.s,{enter:o}=t.o,i=o.toLowerCase(),s=qB.isLeaf(n),a=n.tagName.toLowerCase()===i||s,l=r.cursorOnTheRight(n,e),c=r.cursorOnTheLeft(n,e);if(!a&&(l||c))return l?qB.after(n,e):qB.before(n,e),LT(e,t,i),void(c&&!l&&qB.prepend(n,e));const{scrollTop:u}=t.editor;r.splitSelection(n,e),t.editor.scrollTop!==u&&(t.editor.scrollTop=u),Nj(n,t.editor,t.ed)}(n,t,r)}finally{n.isConnected&&t.s.setCursorBefore(n),qB.safeRemove(n)}}__isEmptyListLeaf(e){const t=this.j.e.fire("enterIsEmptyListLeaf",e);return pB(t)?t:qB.isEmpty(e)}beforeDestruct(e){e.e.off("keydown.enter")}}(function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)})([kE(":keydown.enter")],PT.prototype,"onEnterKeyDown",null),RS.add("enter",PT),dj.prototype.defaultFontSizePoints="px",jE.set("font",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg> ').set("fontsize",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg> '),dj.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalize:e=>e.toString().replace(/(px|pt)$/i,"")},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(e,t)=>t+e.o.defaultFontSizePoints,childTemplate:(e,t,n)=>`${n}${e.o.defaultFontSizePoints}`,tooltip:"Font size",value:(e,t)=>{var n;const r=e.s.current();if(!r)return;const o=qB.closest(r,qB.isElement,e.editor);if(!o)return;const i=(null===(n=t.control.data)||void 0===n?void 0:n.cssRule)||"font-size",s=wB(o,i);if("font-size"===i){const t=parseFloat(s.toString());return"pt"===e.o.defaultFontSizePoints?Math.round(.75*t).toString():Math.round(t).toString()}return s.toString()},isChildActive:(e,t)=>{var n,r;const o=t.state.value,i=null!==(r=null===(n=t.control.data)||void 0===n?void 0:n.normalize)&&void 0!==r?r:e=>e;return Boolean(o&&t.control.args&&i(t.control.args[0].toString())===i(o.toString()))},isActive:(e,t)=>{var n,r;const o=t.state.value;if(!o)return!1;const i=null!==(r=null===(n=t.control.data)||void 0===n?void 0:n.normalize)&&void 0!==r?r:e=>e;let s=t.control.data.cacheListSet;if(!s){const e=Object.keys(t.control.list).map(i);s=new Set(e),t.control.data.cacheListSet=s}return s.has(i(o.toString()))}},dj.prototype.controls.font={...dj.prototype.controls.fontsize,command:"fontname",textTemplate:(e,t)=>{const[n]=t.split(",");return sB(n,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate:(e,t,n)=>{let r=!1;try{r=-1===t.indexOf("dings")&&document.fonts.check(`16px ${t}`,n)}catch(e){}return`<span data-style="${t}" style="${r?`font-family: ${t}!important;`:""}">${n}</span>`},data:{cssRule:"font-family",normalize:e=>e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},value:e=>{const t=e.s.current();if(!t)return;const n=qB.closest(t,qB.isElement,e.editor);if(!n)return;const r=wB(n,"font-family").toString();return r===wB(e.editor,"font-family").toString()?"":r},tooltip:"Font family"},RS.add("font",function(e){e.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});const t=(t,n,r)=>{switch(t){case"fontsize":e.s.commitStyle({attributes:{style:{fontSize:$j(r,e.o.defaultFontSizePoints)}}});break;case"fontname":e.s.commitStyle({attributes:{style:{fontFamily:r}}})}return e.synchronizeValues(),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)}),jE.set("paragraph",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg> '),dj.prototype.controls.paragraph={command:"formatBlock",value(e,t){var n,r;const o=t.control,i=e.s.current(),s=qB.closest(i,qB.isBlock,e.editor);return null!==(n=null==s?void 0:s.nodeName.toLowerCase())&&void 0!==n?n:null===(r=o.data)||void 0===r?void 0:r.currentValue},update(e,t){const n=t.control;if(!e.s.current())return!1;const r=t.state.value,o=n.list;return dB(o)&&o[r.toString()]&&e.o.textIcons&&(t.state.text=o[r.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive:(e,t)=>{var n,r;return Boolean(t.state.value===(null===(r=null===(n=t.control)||void 0===n?void 0:n.args)||void 0===r?void 0:r[0]))},isActive:(e,t)=>t.state.value!==e.o.enter&&dB(t.control.list)&&Boolean(t.control.list[t.state.value]),childTemplate:(e,t,n)=>`<${t} style="margin:0;padding:0"><span>${e.i18n(n)}</span></${t}>`,tooltip:"Insert format block"},RS.add("formatBlock",function(e){e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",(t,n,r)=>(e.s.commitStyle({element:r}),e.synchronizeValues(),!1))}),dj.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8","cmd+shift+8"],selectall:["ctrl+a","cmd+a"]},RS.add("hotkeys",class extends SI{constructor(){super(...arguments),this.onKeyPress=e=>{const t=this.specialKeys[e.which],n=(e.key||String.fromCharCode(e.which)).toLowerCase(),r=[t||n];return["alt","ctrl","shift","meta"].forEach(n=>{e[n+"Key"]&&t!==n&&r.push(n)}),Vj(r.join("+"))},this.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}}afterInit(e){UB(e.o.commandToHotkeys,!1).forEach(t=>{const n=e.o.commandToHotkeys[t];n&&($C(n)||YC(n))&&e.registerHotkeyToCommand(n,t)});let t=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",e=>{if(e.key===iC)return this.j.e.fire("escape",e)}).on("keydown.hotkeys",n=>{const r=this.onKeyPress(n),o={shouldStop:!0};if(!1===this.j.e.fire(r+".hotkey",n.type,o)){if(o.shouldStop)return t=!0,e.e.stopPropagation("keydown"),!1;n.preventDefault()}},{top:!0}).on("keyup.hotkeys",()=>{if(t)return t=!1,e.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(e){e.events&&e.e.off(".hotkeys")}}),dj.prototype.iframeBaseUrl="",dj.prototype.iframeTitle="Jodit Editor",dj.prototype.iframeDoctype="<!DOCTYPE html>",dj.prototype.iframeDefaultSrc="about:blank",dj.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',dj.prototype.iframeCSSLinks=[],dj.prototype.iframeSandbox=null,RS.add("iframe",function(e){const t=e.options;e.e.on("afterSetMode",()=>{e.isEditorMode()&&e.s.focus()}).on("generateDocumentStructure.iframe",(e,n)=>{const r=e||n.iframe.contentWindow.document;if(r.open(),r.write(t.iframeDoctype+`<html dir="${t.direction}" class="jodit" lang="${_j(t.language)}"><head>`+`<title>${t.iframeTitle}</title>`+(t.iframeBaseUrl?`<base href="${t.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),r.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach(e=>{const t=r.createElement("link");kB(t,"rel","stylesheet"),kB(t,"href",e),r.head&&r.head.appendChild(t)}),t.iframeStyle){const e=r.createElement("style");e.innerHTML=t.iframeStyle,r.head&&r.head.appendChild(e)}}).on("createEditor",()=>{if(!t.iframe)return;const n=e.c.element("iframe");return n.style.display="block",n.src="about:blank",n.className="jodit-wysiwyg_iframe",kB(n,{allowtransparency:"true",tabindex:t.tabIndex.toString(),frameborder:"0"}),null!=t.iframeSandbox&&kB(n,"sandbox",t.iframeSandbox),e.workplace.appendChild(n),e.iframe=n,OB(e.e.fire("generateDocumentStructure.iframe",null,e),()=>{if(!e.iframe)return!1;const n=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;const r=t.editHTMLDocumentMode,o=()=>{kB(n.body,"contenteditable",e.getMode()!==bC&&!e.getReadOnly()||null)},i=e=>{const t=/<body.*<\/body>/im,n="{%%BODY%%}",r=t.exec(e);return r&&(e=e.replace(t,n).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(n,r[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),e};if(r){const t=e.element.tagName;if("TEXTAREA"!==t&&"INPUT"!==t)throw NB("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");e.e.on("beforeGetNativeEditorValue",()=>i(e.o.iframeDoctype+n.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:t})=>{if(e.isLocked)return!1;if(/<(html|body)/i.test(t)){const r=n.documentElement.outerHTML;i(r)!==i(t)&&(n.open(),n.write(e.o.iframeDoctype+i(t)),n.close(),e.editor=n.body,e.e.fire("safeHTML",e.editor),o(),e.e.fire("prepareWYSIWYGEditor"),e.e.stopPropagation("beforeSetNativeEditorValue"))}else n.body.innerHTML=t;return!0},{top:!0})}if(e.editor=n.body,e.e.on("afterSetMode afterInit afterAddPlace",o),"auto"===t.height){n.documentElement&&(n.documentElement.style.overflowY="hidden");const r=e.async.throttle((...n)=>{e.async.requestAnimationFrame(()=>{if(e.editor&&e.iframe&&"auto"===t.height){const t=e.ew.getComputedStyle(e.editor),n=parseInt(t.marginTop||"0",10)+parseInt(t.marginBottom||"0",10);wB(e.iframe,"height",e.editor.offsetHeight+n)}})},e.defaultTimeout/2);if(e.e.on("change afterInit afterSetMode resize",r).on([e.iframe,e.ew,n.documentElement],"load",r).on(n,"readystatechange DOMContentLoaded",r),"function"==typeof ResizeObserver){const t=new ResizeObserver(r);t.observe(n.body),e.e.on("beforeDestruct",()=>{t.disconnect()})}}return n.documentElement&&e.e.on(n.documentElement,"mousedown touchend",()=>{e.s.isFocused()||(e.s.focus(),e.editor===n.body&&e.s.setCursorIn(n.body))}).on(e.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",t=>{var n;null===(n=e.events)||void 0===n||n.fire(e.ow,t)}),!1})})}),jE.set("image",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg> '),dj.prototype.controls.image={popup:(e,t,n)=>{let r=null;return t&&!qB.isText(t)&&qB.isHTMLElement(t)&&(qB.isTag(t,"img")||$S("img",t).length)&&(r=qB.isTag(t,"img")?t:$S("img",t)[0]),e.s.save(),NT(e,{filebrowser:t=>{e.s.restore(),t.files&&t.files.forEach(n=>e.s.insertImage(t.baseurl+n,null,e.o.imageDefaultWidth)),n()},upload:!0,url:async(t,o)=>{e.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(t)&&(t="//"+t);const i=r||e.createInside.element("img");kB(i,"src",t),kB(i,"alt",o),r||await e.s.insertImage(i,null,e.o.imageDefaultWidth),n()}},r,n)},tags:["img"],tooltip:"Insert Image"},RS.add("image",function(e){e.registerButton({name:"image",group:"media"})});const MT=[{name:"eye",tooltip:"Open link",exec:(e,t)=>{const n=kB(t,"href");t&&n&&(e=>/^(https?:|mailto:|tel:)/i.test(e.trim())&&!/^(javascript:|data:|vbscript:)/i.test(e.trim()))(n)&&e.ow.open(n)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"],OT=e=>e.args&&YC(e.args[0])?e.args[0].toLowerCase():"",DT=["brushCell",{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate:(e,__,t)=>t,exec:(e,t,{control:n})=>{const r=OT(n);e.getInstance("Table",e.o).getAllSelectedCells().forEach(e=>{wB(e,"vertical-align","normal"===r?"":r)})},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},"\n",{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec:(e,t,{control:n})=>{if(!tS(e))return;if(!n.args)return!1;const r=OT(n);e.execCommand(r,!1,t)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec:(e,t,{control:n})=>{if(!tS(e))return;if(!n.args)return!1;const r=OT(n);e.execCommand(r,!1,t)},tooltip:"Add row"},{name:"deleteTable",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec:(e,t,{control:n})=>{if(!tS(e))return;if(!n.args)return!1;const r=OT(n);e.execCommand(r,!1,t),e.e.fire("hidePopup")},tooltip:"Delete"}],UT={name:"left",childTemplate:(e,__,t)=>t,list:["Left","Right","Center","Normal"],exec:(e,t,{control:n})=>{if(!qB.isTag(t,new Set(["img","jodit","jodit-media"])))return;const r=n.args&&YC(n.args[0])?n.args[0].toLowerCase():"";if(!r)return!1;ij(t,r),qB.isTag(t,new Set(["jodit","jodit-media"]))&&t.firstElementChild&&ij(t.firstElementChild,r),e.synchronizeValues(),e.e.fire("recalcPositionPopup")},tooltip:"Horizontal align"},RT=[{name:"delete",icon:"bin",tooltip:"Delete",exec:(e,t)=>{t&&e.s.removeNode(t)}},{name:"pencil",exec(e,t){"img"===t.tagName.toLowerCase()&&e.e.fire("openImageProperties",t)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec:(e,t,{control:n})=>{if(!qB.isTag(t,"img"))return;const r=n.args&&YC(n.args[0])?n.args[0].toLowerCase():"";if(!r)return!1;wB(t,"vertical-align","normal"===r?"":r),e.e.fire("recalcPositionPopup")}},UT],zT=[{name:"bin",tooltip:"Delete",exec:(e,t)=>{t&&e.s.removeNode(t)}},UT];dj.prototype.toolbarInline=!0,dj.prototype.toolbarInlineForSelection=!1,dj.prototype.toolbarInlineDisableFor=[],dj.prototype.toolbarInlineDisabledButtons=["source"],jE.set("addcolumn",'<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg> ').set("addrow",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg> ').set("merge",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg> ').set("th",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg> ').set("splitg",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> ').set("splitv",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> ').set("th-list",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg> '),DT.forEach(e=>{YC(e)||!e.name||dj.prototype.controls[e.name]||(dj.prototype.controls[e.name]=e)}),dj.prototype.popup={a:MT,img:RT,cells:DT,toolbar:["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"],jodit:zT,iframe:zT,"jodit-media":zT,selection:["bold","underline","italic","ul","ol","\n","outdent","indent","fontsize","brush","cut","\n","paragraph","link","align","dots"]};var QT=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class HT extends SI{constructor(){super(...arguments),this.type=null,this.__reopenSelectionPopup=!1,this.snapRange=null,this.elmsList=UB(this.j.o.popup,!1).filter(e=>!this.isExcludedTarget(e))}get popup(){return new gN(this.jodit,!1)}get toolbar(){return PN(this.jodit,this.popup)}onClick(e){const t=this.elmsList,n=qB.isTag(e,"img")?e:qB.closest(e,t,this.j.editor);if(n&&this.canShowPopupForType(n.nodeName.toLowerCase()))return this.showPopup(()=>oE(n,this.j),n.nodeName.toLowerCase(),n),!1}showPopup(e,t,n){if(t=t.toLowerCase(),!this.canShowPopupForType(t))return!1;if(this.type!==t||n!==this.previousTarget){this.previousTarget=n;const e=this.j.o.popup[t];let r;if(r=VC(e)?e(this.j,n,this.popup.close):e,$C(r)){const e=this.j.o.toolbarInlineDisabledButtons;this.toolbar.build(e.length?r.filter(t=>{const n=YC(t)?t:t.name;return!e.includes(null!=n?n:"")}):r,n),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,r=this.toolbar.container}this.popup.setContent(r),this.type=t}return this.popup.open(e),!0}hidePopup(e){!this.popup.isOpened||YC(e)&&e!==this.type||this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(e){const t=this.j.o.popup[e.toLowerCase()];return!(this.j.o.readonly||!this.j.o.toolbarInline||!t||this.isExcludedTarget(e))}isExcludedTarget(e){return yS(this.j.o.toolbarInlineDisableFor).map(e=>e.toLowerCase()).includes(e.toLowerCase())}afterInit(e){this.j.e.on("getDiffButtons.mobile",t=>{if(this.toolbar===t){const t=this.toolbar.getButtonsNames();return nB(e.registeredButtons).filter(e=>!this.j.o.toolbarInlineDisabledButtons.includes(e.name)).filter(e=>{const n=YC(e)?e:e.name;return n&&"|"!==n&&"\n"!==n&&!t.includes(n)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",(e,t,n)=>{this.showPopup(t,n||(YC(e)?e:e.nodeName),YC(e)?void 0:e)}).on("mousedown keydown",this.onSelectionStart).on("change",()=>{this.popup.isOpened&&this.previousTarget&&!this.previousTarget.parentNode&&(this.hidePopup(),this.previousTarget=void 0)}).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd).on([this.j.ew,this.j.ow],"mousedown touchstart",this.__onDocumentMouseDown).on("closeAllPopups",this.__onCloseAllPopups),this.addListenersForElements()}__onDocumentMouseDown(e){this.popup.isOpened&&"selection"===this.type&&e.target&&NE.closestElement(e.target,gN)&&(this.__reopenSelectionPopup=!0)}__onCloseAllPopups(){this.__reopenSelectionPopup&&(this.__reopenSelectionPopup=!1,this.j.o.toolbarInlineForSelection&&this.j.async.setTimeout(()=>{const e=this.j.s.sel;e&&!e.isCollapsed&&this.showPopup(()=>this.__selectionBound(),"selection")},1))}__selectionBound(){const e=this.j.s.range.getBoundingClientRect();let{left:t,top:n}=e;if(this.j.iframe){const e=oE(this.j.iframe,this.j,!0);t+=e.left,n+=e.top}return{left:t,top:n,width:e.width,height:e.height}}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(e){if(e&&e.target&&NE.closestElement(e.target,gN))return;const{snapRange:t}=this,{range:n}=this.j.s;t&&!n.collapsed&&n.startContainer===t.startContainer&&n.startOffset===t.startOffset&&n.endContainer===t.endContainer&&n.endOffset===t.endOffset||this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;const e="selection",t=this.j.s.sel,n=this.j.s.range;(null==t?void 0:t.isCollapsed)||this.isSelectedTarget(n)?this.type===e&&this.popup.isOpened&&this.hidePopup():this.j.s.current()&&this.showPopup(()=>this.__selectionBound(),e)}isSelectedTarget(e){const t=e.startContainer;return qB.isElement(t)&&t===e.endContainer&&qB.isTag(t.childNodes[e.startOffset],new Set(UB(this.j.o.popup,!1)))&&e.startOffset===e.endOffset-1}beforeDestruct(e){e.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd).off([this.j.ew,this.j.ow],"mousedown touchstart",this.__onDocumentMouseDown).off("closeAllPopups",this.__onCloseAllPopups),this.removeListenersForElements()}_eventsList(){const e=this.elmsList;return e.map(e=>bB(`click_${e}`)).concat(e.map(e=>bB(`touchstart_${e}`))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(e){this.showPopup(()=>{if(e)return e;const{range:t}=this.j.s;return t.getBoundingClientRect()},"toolbar")}}HT.requires=["select"],QT([lS],HT.prototype,"popup",null),QT([lS],HT.prototype,"toolbar",null),QT([KC],HT.prototype,"onClick",null),QT([vE(e=>!e.j.isLocked)],HT.prototype,"showPopup",null),QT([kE([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),KC],HT.prototype,"hidePopup",null),QT([kE(":outsideClick")],HT.prototype,"onOutsideClick",null),QT([KC],HT.prototype,"__onDocumentMouseDown",null),QT([KC],HT.prototype,"__onCloseAllPopups",null),QT([KC],HT.prototype,"onSelectionStart",null),QT([KC],HT.prototype,"onSelectionEnd",null),QT([AE(e=>e.defaultTimeout)],HT.prototype,"onSelectionChange",null),QT([KC],HT.prototype,"showInlineToolbar",null),RS.add("inlinePopup",HT),dj.prototype.link={formTemplate:e=>{const{openInNewTabCheckbox:t,noFollowCheckbox:n,ariaLabelInput:r,modeClassName:o,selectSizeClassName:i,selectMultipleClassName:s,selectOptionsClassName:a}=e.o.link;return new JE(e,[new qE(e,[new YE(e,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),r?new qE(e,[new YE(e,{name:"ariaLabel",ref:"aria_label_input",label:"Aria label"})]):null,new qE(e,[new YE(e,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),o?new qE(e,["input"===o?new YE(e,{name:"className",ref:"className_input",label:"Class name"}):"select"===o?new XE(e,{name:"className",ref:"className_select",label:"Class name",size:i,multiple:s,options:a}):null]):null,t?new iN(e,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,n?new iN(e,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new qE(e,[new TE(e,{name:"unlink",variant:"default",text:"Unlink"}),new TE(e,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])},followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,deriveUrlFromText:!1,noFollowCheckbox:!0,openInNewTabCheckbox:!0,openInNewTabCheckboxDefaultChecked:!1,ariaLabelInput:!1,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},jE.set("link",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg> ').set("unlink",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg> '),dj.prototype.controls.unlink={exec:(e,t)=>{const n=qB.closest(t,"a",e.editor);n&&qB.unwrap(n),e.synchronizeValues(),e.e.fire("hidePopup")},tooltip:"Unlink"},dj.prototype.controls.link={isActive:e=>{const t=e.s.current();return Boolean(t&&qB.closest(t,"a",e.editor))},popup:(e,t,n)=>e.e.fire("generateLinkForm.link",t,n),tags:["a"],tooltip:"Insert link"};var qT=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class VT extends SI{constructor(){super(...arguments),this.buttons=[{name:"link",group:"insert"}]}afterInit(e){e.o.link.followOnDblClick&&e.e.on("dblclick.link",this.__onDblClickOnLink),e.e.on(e.editor,"click.link",this.__onClickReadOnlyLink),e.o.link.processPastedLink&&e.e.on("processPaste.link",this.onProcessPasteLink),e.e.on("generateLinkForm.link",this.__generateForm),e.registerCommand("openLinkDialog",{exec:()=>{const t=e.dlg({resizable:!1}),n=this.__generateForm(e.s.current(),()=>{t.close()});n.container.classList.add("jodit-dialog_alert"),t.setContent(n),t.open(),e.async.requestIdleCallback(()=>{const{url_input:e}=ZS(n.container);null==e||e.focus()})},hotkeys:e.o.link.hotkeys})}__onDblClickOnLink(e){if(!qB.isTag(e.target,"a"))return;const t=kB(e.target,"href");t&&(location.href=t,e.preventDefault())}onProcessPasteLink(e,t){var n,r,o,i;const{jodit:s}=this;if(iS(t)&&s.o.link.processPastedLink){if(s.e.stopPropagation("processPaste"),s.o.link.processVideoLink){const e=LB(null!==(r=null===(n=s.o.video)||void 0===n?void 0:n.parseUrlToVideoEmbed)&&void 0!==r?r:xj,t,{width:null===(o=s.o.video)||void 0===o?void 0:o.defaultWidth,height:null===(i=s.o.video)||void 0===i?void 0:i.defaultHeight});if(e!==t)return s.createInside.fromHTML(e)}if(s.s.isCollapsed()){const e=s.createInside.element("a");return kB(e,"href",t),e.textContent=t,s.e.fire("applyLink",s,e,null),e}return s.s.commitStyle({element:"a",attributes:{href:t}}),!0}}__generateForm(e,t){const{jodit:n}=this,r=n.i18n.bind(n),{openInNewTabCheckbox:o,openInNewTabCheckboxDefaultChecked:i,noFollowCheckbox:s,formTemplate:a,formClassName:l,modeClassName:c}=n.o.link,u=a(n),d=YC(u)?n.c.fromHTML(u,{target_checkbox_box:o,nofollow_checkbox_box:s}):u,A=qB.isElement(d)?d:d.container,h=ZS(A),{insert:p,unlink:f,content_input_box:m}=h,{target_checkbox:g,nofollow_checkbox:y,url_input:v}=h,b=e,w=qB.isImage(b);let{content_input:x}=h;const{className_input:k}=h,{className_select:_}=h,{aria_label_input:C}=h;let B;x||(x=n.c.element("input",{type:"hidden",ref:"content_input"})),l&&A.classList.add(l),w&&qB.hide(m);const S=()=>B?B.innerText:Hj(n.s.range.cloneContents(),n.ed);B=!(!e||!qB.closest(e,"a",n.editor))&&qB.closest(e,"a",n.editor),!w&&e&&(x.value=S()),C&&(C.value=B&&kB(B,"aria-label")||""),B?(v.value=kB(B,"href")||"",c&&function(e,t,n,r){switch(e){case"input":t&&(t.value=kB(n,"class")||"");break;case"select":if(r){for(let e=0;e<r.selectedOptions.length;e++){const t=r.options.item(e);t&&(t.selected=!1)}(kB(n,"class")||"").split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{if(e)for(let t=0;t<r.options.length;t++){const n=r.options.item(t);(null==n?void 0:n.value)&&n.value.split(/\s+/).map(e=>e.trim()).includes(e)&&(n.selected=!0)}})}}}(c,k,B,_),o&&g&&(g.checked="_blank"===kB(B,"target")),s&&y&&(y.checked=(kB(B,"rel")||"").split(/\s+/).includes("nofollow")),p.textContent=r("Update")):(qB.hide(f),n.o.link.deriveUrlFromText&&v&&!w&&!v.value.trim()&&(v.value=function(e){const t=e.trim();return!t||/\s/.test(t)?"":/^(https?:|mailto:|tel:|ftp:|#|\/|\.{1,2}\/)/i.test(t)?t:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)?`mailto:${t}`:/^[a-z0-9-]+(\.[a-z0-9-]+)+(\/\S*)?$/i.test(t)?`https://${t}`:""}(x.value)),o&&g&&(g.checked=i)),n.editor.normalize();const j=n.history.snapshot.make();f&&n.e.on(f,"click",e=>{n.s.restore(),n.history.snapshot.restore(j),B&&qB.unwrap(B),n.synchronizeValues(),t(),e.preventDefault()});const E=()=>{if(!v.value.trim().length)return v.focus(),v.classList.add("jodit_error"),!1;let e;n.s.restore(),n.s.removeMarkers(),n.editor.normalize(),n.history.snapshot.restore(j);const r=S()!==x.value.trim(),i=n.createInside;if(B&&qB.isOrContains(n.editor,B))e=[B];else{if(n.s.isCollapsed()){const t=i.element("a");n.s.insertNode(t,!1,!1),e=[t]}else{const t=n.s.current();e=qB.isTag(t,"img")?[qB.wrap(t,"a",i)]:n.s.wrapInTag("a")}e.forEach(e=>n.s.select(e))}return e.forEach(e=>{if(kB(e,"href",v.value),function(e,t,n,r){var o;if(e&&(null!=t?t:n))if("input"===e)""===t.value&&r.hasAttribute("class")&&kB(r,"class",null),""!==t.value&&kB(r,"class",t.value);else if("select"===e){r.hasAttribute("class")&&kB(r,"class",null);for(let e=0;e<n.selectedOptions.length;e++){const t=null===(o=n.selectedOptions.item(e))||void 0===o?void 0:o.value;t&&t.split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{r.classList.add(e)})}}}(c,k,_,e),w||function(e,t,n,r){let o=e.textContent;t.value.trim().length?n&&(o=t.value):o=r.value;o!==e.textContent&&(e.textContent=o)}(e,x,r,v),o&&g&&kB(e,"target",g.checked?"_blank":null),s&&y){const t=(kB(e,"rel")||"").split(/\s+/).filter(Boolean),n=t.includes("nofollow");y.checked&&!n?t.push("nofollow"):!y.checked&&n&&t.splice(t.indexOf("nofollow"),1),kB(e,"rel",t.length?t.join(" "):null)}C&&kB(e,"aria-label",C.value.trim()||null),n.e.fire("applyLink",n,e,d)}),n.synchronizeValues(),t(),!1};return qB.isElement(d)?n.e.on(d,"submit",e=>(e.preventDefault(),e.stopImmediatePropagation(),E(),!1)):d.onSubmit(E),d}beforeDestruct(e){e.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(e.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}__onClickReadOnlyLink(e){const{jodit:t}=this;t.o.readonly&&t.o.link.preventReadOnlyNavigation&&qB.isTag(e.target,"a")&&e.preventDefault()}}qT([KC],VT.prototype,"__onDblClickOnLink",null),qT([KC],VT.prototype,"onProcessPasteLink",null),qT([KC],VT.prototype,"__generateForm",null),qT([KC],VT.prototype,"__onClickReadOnlyLink",null),RS.add("link",VT);const KT=(e,t,{control:n})=>{var r;const o=`button${n.command}`,i=null!==(r=n.args&&n.args[0])&&void 0!==r?r:BB(e,o);BB(e,o,i),e.execCommand(n.command,!1,"default"===i?null:i)};jE.set("ol",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> ').set("ul",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> '),dj.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:KT},dj.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:KT};class WT extends SI{constructor(){super(...arguments),this.buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}]}afterInit(e){e.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(e,t,n){return this.jodit.s.commitStyle({element:"insertunorderedlist"===e?"ul":"ol",attributes:{style:{listStyleType:null!=n?n:null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(e){}}(function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)})([KC],WT.prototype,"onCommand",null),RS.add("orderedList",WT),dj.prototype.showPlaceholder=!0,dj.prototype.placeholder="Type something",dj.prototype.useInputsPlaceholder=!0;class GT extends SI{constructor(){super(...arguments),this.addNativeListeners=()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)},this.addEvents=()=>{const e=this.j;e.o.useInputsPlaceholder&&e.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=kB(e.element,"placeholder")||""),e.e.fire("placeholder",this.placeholderElm.innerHTML),e.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()}}afterInit(e){e.o.showPlaceholder&&(this.placeholderElm=e.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${e.i18n(e.o.placeholder)}</span>`),"rtl"===e.o.direction&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),e.e.on("readonly",e=>{e?this.hide():this.toggle()}).on("changePlace",this.addEvents),this.addEvents())}show(){const e=this.j;if(e.o.readonly)return;let t=0,n=0;const r=e.s.current(),o=r&&qB.closest(r,qB.isBlock,e.editor)||e.editor,i=e.ew.getComputedStyle(o),s=e.ew.getComputedStyle(e.editor);e.workplace.appendChild(this.placeholderElm);const{firstChild:a}=e.editor;if(qB.isElement(a)&&!rS(a)){const r=e.ew.getComputedStyle(a);t=parseInt(r.getPropertyValue("margin-top"),10),n=parseInt(r.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(r.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=r.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(i.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=i.getPropertyValue("line-height");wB(this.placeholderElm,{display:"block",textAlign:i.getPropertyValue("text-align"),paddingTop:parseInt(s.paddingTop,10)+"px",paddingLeft:parseInt(s.paddingLeft,10)+"px",paddingRight:parseInt(s.paddingRight,10)+"px",marginTop:Math.max(parseInt(i.getPropertyValue("margin-top"),10),t),marginLeft:Math.max(parseInt(i.getPropertyValue("margin-left"),10),n)})}hide(){qB.safeRemove(this.placeholderElm)}toggle(){const e=this.j;e.editor&&!e.isInDestruct&&(e.getRealMode()===vC&&function(e){var t;if(!e.firstChild)return!0;const n=e.firstChild;if(J_.has(null===(t=n.nodeName)||void 0===t?void 0:t.toLowerCase())||/^(TABLE)$/i.test(n.nodeName))return!1;const r=qB.next(n,e=>e&&!qB.isEmptyTextNode(e),e);return qB.isText(n)&&!r?qB.isEmptyTextNode(n):!r&&qB.each(n,e=>!(qB.isLeaf(e)||qB.isList(e))&&(qB.isEmpty(e)||qB.isTag(e,"br")))}(e.editor)?this.show():this.hide())}beforeDestruct(e){this.hide(),e.e.off(".placeholder").off(window,"load",this.toggle)}}(function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)})([AE(e=>e.defaultTimeout/10,!0)],GT.prototype,"toggle",null),RS.add("placeholder",GT),RS.add("poweredByJodit",function(e){const{o:t}=e;t.hidePoweredByJodit||t.inline||!(t.showCharsCounter||t.showWordsCounter||t.showXPathInStatusbar)||e.hookStatus("ready",()=>{e.statusbar.append(e.create.fromHTML('<a\n\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\tstyle="text-transform: uppercase"\n\t\t\t\t\t\tclass="jodit-status-bar-link"\n\t\t\t\t\t\ttarget="_blank"\n\t\t\t\t\t\thref="https://xdsoft.net/jodit/">\n\t\t\t\t\t\t\tPowered by Jodit\n\t\t\t\t\t\t</a>'),!0)})}),jE.set("redo",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z"/> </svg> ').set("undo",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z"/> </svg> '),dj.prototype.controls.redo={mode:wC,isDisabled:e=>!e.history.canRedo(),tooltip:"Redo"},dj.prototype.controls.undo={mode:wC,isDisabled:e=>!e.history.canUndo(),tooltip:"Undo"},RS.add("redoUndo",class extends SI{constructor(){super(...arguments),this.buttons=[{name:"undo",group:"history"},{name:"redo",group:"history"}]}beforeDestruct(){}afterInit(e){const t=t=>(e.history[t](),!1);e.registerCommand("redo",{exec:t,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),e.registerCommand("undo",{exec:t,hotkeys:["ctrl+z","cmd+z"]})}}),dj.prototype.minWidth=200,dj.prototype.maxWidth="100%",dj.prototype.minHeight=200,dj.prototype.maxHeight="auto",dj.prototype.saveHeightInStorage=!1;var $T=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class YT extends SI{constructor(){super(...arguments),this.__resizeWorkspaces=this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0)}afterInit(e){e.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(e.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__immediateInitialize()}__initialize(){this.__immediateInitialize()}__immediateInitialize(){const{j:e}=this;if(e.o.inline)return;let{height:t}=e.o;if(e.o.saveHeightInStorage&&"auto"!==t){const n=e.storage.get("height");n&&(t=n)}wB(e.editor,{minHeight:"100%"}),wB(e.container,{minHeight:e.o.minHeight,maxHeight:e.o.maxHeight,minWidth:e.o.minWidth,maxWidth:e.o.maxWidth}),e.isFullSize||(this.__setHeight(t),this.__setWidth(e.o.width))}__setHeight(e){const{clientHeight:t,clientWidth:n}=this.j.container;if(oS(e)){const{minHeight:t,maxHeight:n}=this.j.o;oS(t)&&t>e&&(e=t),oS(n)&&n<e&&(e=n)}wB(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:n})}__setWidth(e){const{clientHeight:t,clientWidth:n}=this.j.container;if(oS(e)){const{minWidth:t,maxWidth:n}=this.j.o;oS(t)&&t>e&&(e=t),oS(n)&&n<e&&(e=n)}wB(this.j.container,"width",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:n})}__getNotWorkHeight(){var e;const t=this.j.toolbarContainer;return(t&&this.j.container.contains(t)?t.offsetHeight:0)+((null===(e=this.j.statusbar)||void 0===e?void 0:e.getHeight())||0)+2}__resizeWorkspaceImd({clientHeight:e,clientWidth:t}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline)return;if(!this.j.container||!this.j.container.parentNode)return;const n=(wB(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if(oS(n)&&n>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(e=>{e&&wB(e,"minHeight",n)}),this.j.e.fire("setMinHeight",n)),oS(this.j.o.maxHeight)){const e=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&wB(t,"maxHeight",e)}),this.j.e.fire("setMaxHeight",e)}if(this.j.container){const e="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";wB(this.j.workplace,"height",e),this.j.container.style.setProperty("--jd-jodit-workplace-height",oS(e)?e+"px":e)}const{clientHeight:r,clientWidth:o}=this.j.container;e===r&&t===o||this.j.e.fire(this.j,"resize")}beforeDestruct(e){e.e.off(e.ow,"load.size",this.__resizeWorkspaces).off(".size")}}$T([hE()],YT.prototype,"__initialize",null),$T([KC],YT.prototype,"__setHeight",null),$T([KC],YT.prototype,"__setWidth",null),$T([KC],YT.prototype,"__resizeWorkspaceImd",null),RS.add("size",YT),dj.prototype.showCharsCounter=!0,dj.prototype.countHTMLChars=!1,dj.prototype.countTextSpaces=!1,dj.prototype.showWordsCounter=!0,RS.add("stat",class extends SI{constructor(){super(...arguments),this.charCounter=null,this.wordCounter=null,this.reInit=()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()},this.calc=this.j.async.throttle(()=>{const e=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let t;t=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?e.replace(z_(),"").replace(/[\r\n]/g,""):e.replace(q_(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",t.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",e.replace(z_(),"").split(q_()).filter(e=>e.length).length))},this.j.defaultTimeout)}afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){qB.safeRemove(this.charCounter),qB.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}}),dj.prototype.table={splitBlockOnInsertTable:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},jE.set("table",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg> '),dj.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup:(e,t,n,r)=>{e.editor.normalize();const o=e.history.snapshot.make(),i=r.control,s=i.data&&i.data.rows?i.data.rows:10,a=i.data&&i.data.cols?i.data.cols:10,l=e.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+(()=>{if(!e.o.table.useExtraClassesOptions)return"";const t=[];if(i.data){const e=i.data.classList;Object.keys(e).forEach(n=>{t.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${n}" type="checkbox"/>${e[n]}</label>`)})}return t.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> &times; <span>1</span></label></form>'),c=l.querySelectorAll("span")[0],u=l.querySelectorAll("span")[1],d=l.querySelector(".jodit-form__container"),A=l.querySelector(".jodit-form__options"),h=[],p=s*a;for(let t=0;t<p;t+=1)h[t]||h.push(e.c.element("span",{dataIndex:t}));if(e.e.on(d,"mousemove",(e,t)=>{const n=e.target;if(!qB.isTag(n,"span"))return;const r=void 0===t||isNaN(t)?parseInt(kB(n,"-index")||"0",10):t||0,o=Math.ceil((r+1)/a),i=r%a+1;for(let e=0;e<h.length;e+=1)i>=e%a+1&&o>=Math.ceil((e+1)/a)?h[e].className="jodit_hovered":h[e].className="";u.textContent=i.toString(),c.textContent=o.toString()}).on(d,"touchstart mousedown",t=>{const r=t.target;if(t.preventDefault(),t.stopImmediatePropagation(),!qB.isTag(r,"span"))return;const i=parseInt(kB(r,"-index")||"0",10),s=Math.ceil((i+1)/a),l=i%a+1,c=e.createInside,u=c.element("tbody"),d=c.element("table");d.appendChild(u);let h,p,f=null;for(let e=1;e<=s;e+=1){h=c.element("tr");for(let e=1;e<=l;e+=1)p=c.element("td"),f||(f=p),wB(p,"width",(100/l).toFixed(4)+"%"),p.appendChild(c.element("br")),h.appendChild(c.text("\n")),h.appendChild(c.text("\t")),h.appendChild(p);u.appendChild(c.text("\n")),u.appendChild(h)}$S("input[type=checkbox]:checked",A).forEach(e=>{e.value.split(/[\s]+/).forEach(e=>{d.classList.add(e)})}),e.s.restore(),e.s.removeMarkers(),e.editor.normalize(),e.history.snapshot.restore(o);const m=qB.furthest(e.s.current(),qB.isBlock,e.editor);if(m&&qB.isEmpty(m))qB.replace(m,d,void 0,!1,!0);else if(m){const t=c.text("\n");if(e.o.table.splitBlockOnInsertTable){const n=e.s.range;n.collapse(!1),n.insertNode(t),n.collapse(!1),e.s.selectRange(n);const r=e.s.splitSelection(m,t);r?qB.after(r,d):qB.after(m,d)}else qB.after(m,t),qB.after(t,d)}else e.s.insertNode(d,!1);f&&(e.s.setCursorIn(f),Nj(f,e.editor,e.ed)),n()}),r&&r.parentElement){for(let t=0;t<s;t+=1){const n=e.c.div();for(let e=0;e<a;e+=1)n.appendChild(h[t*a+e]);d.appendChild(n)}h[0]&&(h[0].className="hovered")}return l},tooltip:"Insert table"},RS.add("table",function(e){e.registerButton({name:"table",group:"insert"})}),dj.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0};var ZT=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class XT extends SI{constructor(){super(...arguments),this.isSuitableStart=e=>{var t;return qB.isText(e)&&YC(e.nodeValue)&&(/[^\s]/.test(e.nodeValue)||(null===(t=e.parentNode)||void 0===t?void 0:t.firstChild)===e&&this.isSuitable(e.nextSibling))||this.isNotWrapped(e)&&!qB.isTemporary(e)},this.isSuitable=e=>qB.isText(e)||this.isNotWrapped(e),this.isNotWrapped=e=>qB.isElement(e)&&!(qB.isBlock(e)||qB.isTag(e,this.j.o.wrapNodes.exclude))}afterInit(e){"br"!==e.o.enter.toLowerCase()&&e.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}beforeDestruct(e){e.e.off(".wtn")}postProcessSetEditorValue(){const{jodit:e}=this;if(!e.isEditorMode())return;let t=e.editor.firstChild,n=!1;for(;t;){if(t=JT(t,e),this.isSuitableStart(t)){n||e.s.save(),n=!0;const r=e.createInside.element(e.o.enter);for(qB.before(t,r);t&&this.isSuitable(t);){const e=t.nextSibling;r.appendChild(t),t=e}r.normalize(),t=r}t=t&&t.nextSibling}n&&(e.s.restore(),"afterInit"===e.e.current&&e.e.fire("internalChange"))}preprocessInput(){const{jodit:e}=this,t="afterInit"===e.e.current;if(!e.isEditorMode()||e.editor.firstChild||!e.o.wrapNodes.emptyBlockAfterInit&&t)return;const n=e.createInside.element(e.o.enter),r=e.createInside.element("br");qB.append(n,r),qB.append(e.editor,n),(e.s.isFocused()||"backSpaceAfterDelete"===e.e.current)&&e.s.setCursorBefore(r),e.e.fire("internalChange")}}function JT(e,t){let n=e,r=e;do{if(!qB.isElement(r)||!qB.isLeaf(r)||qB.isList(r.parentElement))break;{const e=qB.findNotEmptySibling(r,!1);qB.isTag(n,"ul")?n.appendChild(r):n=qB.wrap(r,"ul",t.createInside),r=e}}while(r);return n}ZT([KC],XT.prototype,"postProcessSetEditorValue",null),ZT([KC],XT.prototype,"preprocessInput",null),RS.add("wrapNodes",XT),dj.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}};const eL=new Set(["table","pre","blockquote","code"]);function tL(e,t){if(!e.o.dtd.removeExtraBr||qB.isTag(t,"br"))return;const n=qB.furthest(t,qB.isBlock,e.editor);if(n&&!qB.isTag(n,eL)){const n=qB.isTag(t,"br")?t:qB.findNotEmptySibling(t,!1);if(!qB.isTag(n,"br"))return;if(qB.findNotEmptySibling(n,!1))return;e.s.setCursorBefore(n),qB.safeRemove(n)}}function nL(e,t){var n,r;if(qB.isFragment(t)&&(t=t.firstChild),e.o.dtd.checkBlockNesting&&qB.isBlock(t)){let t=null,o=null!==(r=null===(n=e.s.current())||void 0===n?void 0:n.parentElement)&&void 0!==r?r:null;for(;o&&o!==e.editor;){if(qB.isBlock(o)){if(e.o.dtd.blockLimits[o.nodeName.toLowerCase()])break;t=o}o=o.parentElement}t&&(e.s.setCursorAfter(t),qB.isEmpty(t)&&qB.safeRemove(t))}}var rL=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class oL extends SI{afterInit(e){}beforeDestruct(e){}__onBeforeInsertNode(e){Object.keys(u).forEach(t=>{u[t](this.j,e)})}__onAfterInsertNode(e){Object.keys(c).forEach(t=>{c[t](this.j,e)})}}rL([kE(":beforeInsertNode")],oL.prototype,"__onBeforeInsertNode",null),rL([kE(":afterInsertNode")],oL.prototype,"__onAfterInsertNode",null),RS.add("dtd",oL),Object.keys(r).forEach(e=>{OF[e]=r[e]});const iL=e=>"__esModule"!==e;Object.keys(l).filter(iL).forEach(e=>{jE.set(e.replace("_","-"),l[e])}),Object.keys(a).filter(iL).forEach(e=>{var t;const n=a[e],r=VC(null===(t=n.prototype)||void 0===t?void 0:t.className)?n.prototype.className():e;YC(r)?OF.modules[r]=n:console.warn("Module name must be a string",e)}),Object.keys(i).filter(iL).forEach(e=>{OF.decorators[e]=i[e]}),["Confirm","Alert","Prompt"].forEach(e=>{OF[e]=a[e]}),Object.keys(mT).filter(iL).forEach(e=>{OF.lang[e]=mT[e]}),dj.prototype.addNewLine=!0,dj.prototype.addNewLineOnDBLClick=!0,dj.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","pre","jodit"],dj.prototype.addNewLineDeltaShow=20,jE.set("enter",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg> ');var sL=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};const aL="addnewline";class lL extends SI{constructor(){super(...arguments),this.__line=this.j.c.fromHTML(`<div role="button" tabindex="-1" title="${this.j.i18n("Break")}" class="jodit-add-new-line"><span>${jE.get("enter")}</span></div>`),this.__isMatchedTag=e=>Boolean(e&&this.j.o.addNewLineTagsTriggers.includes(e.nodeName.toLowerCase())),this.__isBeforeContent=!1,this.__lineInFocus=!1,this.__isShown=!1,this.__hideForce=()=>{this.__isShown&&(this.__isShown=!1,this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!1,qB.safeRemove(this.__line),this.__line.style.setProperty("--jd-anl-handle-offset","0"))},this.__canGetFocus=e=>null!=e&&qB.isBlock(e)&&!/^(img|table|iframe|hr)$/i.test(e.nodeName),this.__onClickLine=e=>{const t=this.j,n=t.createInside.element(t.o.enter);this.__isBeforeContent&&this.__current&&this.__current.parentNode?this.__current===t.editor?qB.prepend(t.editor,n):this.__current.parentNode.insertBefore(n,this.__current):t.editor.appendChild(n),t.s.setCursorIn(n),Nj(n,t.editor,t.ed),t.synchronizeValues(),this.__hideForce(),e.preventDefault()}}__show(){this.j.o.readonly||this.j.isLocked||(this.j.async.clearTimeout(this.__timeout),this.__isShown||(this.__isShown=!0,this.j.container.appendChild(this.__line),this.__line.style.width=this.j.container.clientWidth+"px"))}onLock(e){e&&this.__isShown&&this.__hideForce()}__hide(){this.__isShown&&!this.__lineInFocus&&(this.__timeout=this.j.async.setTimeout(this.__hideForce,{timeout:500,label:"add-new-line-hide"}))}afterInit(e){e.o.addNewLine&&(e.e.on(this.__line,"mousemove",e=>{e.stopPropagation()}).on(this.__line,"mousedown touchstart",this.__onClickLine).on("change",this.__hideForce).on(this.__line,"mouseenter",()=>{this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!0}).on(this.__line,"mouseleave",()=>{this.__lineInFocus=!1}).on("changePlace",this.__addEventListeners.bind(this)),this.__addEventListeners())}__addEventListeners(){const e=this.j;e.e.off(e.editor,"."+aL).off(e.container,"."+aL).off("."+aL).on([e.ow,e.ew,e.editor],"scroll."+aL,this.__hideForce).on("finishedCleanHTMLWorker."+aL,this.__hideForce).on(e.editor,"click."+aL,this.__hide).on(e.container,"mouseleave."+aL,this.__hide).on(e.editor,"mousemove."+aL,this.__onMouseMove)}onDblClickEditor(e){const t=this.j;if(!t.o.readonly&&t.o.addNewLineOnDBLClick&&e.target===t.editor&&t.s.isCollapsed()){const n=rE(t.editor,t,t.ed),r=e.pageY-t.ew.scrollX,o=t.createInside.element(t.o.enter);Math.abs(r-n.top)<Math.abs(r-(n.height+n.top))&&t.editor.firstChild?t.editor.insertBefore(o,t.editor.firstChild):t.editor.appendChild(o),t.s.setCursorIn(o),t.synchronizeValues(),this.__hideForce(),e.preventDefault()}}__onMouseMove(e){var t;const n=this.j;let r=(null!==(t=n.o.shadowRoot)&&void 0!==t?t:n.ed).elementFromPoint(e.clientX,e.clientY);if(!qB.isHTMLElement(r)||!qB.isOrContains(n.editor,r))return;if(n.editor===r||this.__isMatchedTag(r)||(r=qB.closest(r,this.__isMatchedTag,n.editor)),!r)return void this.__hide();if(this.__isMatchedTag(r)){const e=qB.up(r,qB.isBlock,n.editor);e&&e!==n.editor&&(r=e)}const o=oE(r,this.j);let i=!1,{clientY:s,clientX:a}=e;if(this.j.iframe){const{top:e,left:t}=oE(this.j.iframe,this.j,!0);s+=e,a+=t}const l=this.j.o.addNewLineDeltaShow;Math.abs(s-o.top)<=l?(i=o.top,this.__isBeforeContent=!0):Math.abs(s-(o.top+o.height))<=l&&(i=o.top+o.height,this.__isBeforeContent=!1);const c=n.editor===r;!1!==i&&(c&&!this.__isBeforeContent||!c&&!LB(this.__isBeforeContent?qB.prev:qB.next,r,this.__canGetFocus,n.editor))?(this.__line.style.top=i+"px",this.__current=r,this.__show(),this.__line.style.setProperty("--jd-anl-handle-offset",a-o.left-10+"px")):(this.__current=!1,this.__hide())}beforeDestruct(){this.j.async.clearTimeout(this.__timeout),this.j.e.off(this.__line).off("changePlace",this.__addEventListeners),qB.safeRemove(this.__line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+aL).off(this.j.container,"."+aL).off("."+aL)}}function cL(e){const t=/([^[]*)\[([^\]]+)]/,n=/[\s]*,[\s]*/,r=/^(.*)[\s]*=[\s]*(.*)$/,o={};return YC(e)?(e.split(n).map(e=>{e=iB(e);const i=t.exec(e),s={},a=e=>{e=iB(e);const t=r.exec(e);t?s[t[1]]=t[2]:s[e]=!0};if(i){const e=i[2].split(n);i[1]&&(e.forEach(a),o[i[1].toUpperCase()]=s)}else o[e.toUpperCase()]=!0}),o):!!e&&(Object.keys(e).forEach(t=>{o[t.toUpperCase()]=e[t]}),o)}function uL(e,t){const{s:n}=e;let r=t;if(!r){r=e.createInside.fake();const{range:t}=n;qB.safeInsertNode(t,r),t.collapse()}const o=qB.furthest(r,dL,e.editor);if(o)if(n.cursorOnTheLeft(o))qB.before(o,r);else if(n.cursorOnTheRight(o))qB.after(o,r);else{const e=n.splitSelection(o);e&&qB.after(e,r)}t||(n.setCursorBefore(r),qB.safeRemove(r))}function dL(e){return qB.isInlineBlock(e)&&!qB.isTag(e,J_)}function AL(e,t,n,r){const o=r&&qB.isElement(t)&&r[t.nodeName];if(r&&qB.isElement(t)&&!0!==o){if(!o)return n;const e=t.attributes;if(e&&e.length){const r=[];for(let t=0;t<e.length;t+=1){const n=o[e[t].name];(!n||!0!==n&&n!==e[t].value)&&r.push(e[t].name)}r.length&&(n=!0),r.forEach(e=>{t.removeAttribute(e)})}}return n}function hL(e,t,n){const r=e.o.cleanHTML.convertUnsafeEmbeds;if(!r||!qB.isElement(t))return n;const o=t.nodeName.toLowerCase();if(!r.includes(o))return n;const i=t,s=kB(i,"data")||kB(i,"src")||kB(i,"movie")||"";if(!s)return qB.safeRemove(i),!0;const a=e.createInside.element("iframe");return kB(a,{src:s,sandbox:"",frameborder:"0",width:kB(i,"width"),height:kB(i,"height")}),qB.replace(i,a,void 0,!1,!0),!0}sL([kE(":lock")],lL.prototype,"onLock",null),sL([KC],lL.prototype,"__hide",null),sL([kE(":dblclick")],lL.prototype,"onDblClickEditor",null),sL([hE(e=>e.defaultTimeout)],lL.prototype,"__onMouseMove",null),RS.add("addNewLine",lL),dj.prototype.controls.classSpan={command:"applyClassName",exec:RB,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive:(e,t)=>{const n=e.s.current();if(n){const r=qB.closest(n,qB.isElement,e.editor)||e.editor;return Boolean(t.control.args&&r.classList.contains(t.control.args[0].toString()))}return!1},isActive:(e,t)=>{const n=e.s.current();if(n){const r=qB.closest(n,qB.isElement,e.editor)||e.editor;let o=!1;return t.control.list&&Object.keys(t.control.list).forEach(e=>{r.classList.contains(e)&&(o=!0)}),Boolean(r&&r!==e.editor&&void 0!==t.control.list&&o)}return!1},childTemplate:(e,t,n)=>`<span class="${t}">${e.i18n(n)}</span>`,tooltip:"Insert className"},RS.add("classSpan",class extends SI{constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}afterInit(e){e.registerCommand("applyClassName",(t,n,r)=>(e.s.commitStyle({attributes:{class:r}}),!1))}beforeDestruct(){}}),jE.set("class-span",'<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg> '),dj.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,collapseEmptyValueToEmptyString:!1,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script,iframe,object,embed",useIframeSandbox:!1,removeOnError:!0,removeEventAttributes:!0,safeJavaScriptLink:!0,safeLinksTarget:!0,allowedStyles:!1,sanitizer:!1,sandboxIframesInContent:!0,convertUnsafeEmbeds:["object","embed"],disableCleanFilter:null},dj.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},jE.set("eraser",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg> ');const pL=new Set(["table","tbody","thead","tfoot","tr"]);function fL(e,t,n){if(e.o.cleanHTML.fillEmptyParagraph&&qB.isBlock(t)&&qB.isEmpty(t,J_)&&!qB.isTag(t,pL)){const n=e.createInside.element("br");return t.appendChild(n),!0}return n}function mL(e,t,n,r,o,i){return qB.isText(t)&&!t.nodeValue?(t===i&&e.s.isCollapsed()&&e.s.setCursorAfter(t),qB.safeRemove(t),!0):n}function gL(e,t,n,r,o,i){if(i===t||!qB.isText(t)||null==t.nodeValue)return n;if(!z_().test(t.nodeValue))return n;const s=qB.furthest(i,qB.isBlock,e.editor);return!s||qB.isOrContains(s,t)?n:(t.nodeValue=t.nodeValue.replace(z_(),""),t===i&&e.s.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||qB.safeRemove(t),!0)}function yL(e,t,n){const r=function(e,t,n){if(!n||!qB.isHTMLElement(t))return t;const r=n[t.nodeName.toLowerCase()]||n[t.nodeName];return r?qB.replace(t,r,e.createInside,!0,!1):t}(e,t,e.o.cleanHTML.replaceOldTags);return t!==r?(t=r,!0):n}function vL(e,t,n){if(!e.o.cleanHTML.safeLinksTarget||!qB.isElement(t)||"A"!==t.nodeName)return n;const r=t;if("_blank"!==kB(r,"target"))return n;const o=(kB(r,"rel")||"").split(/\s+/).filter(Boolean);let i=!1;return o.includes("noopener")||(o.push("noopener"),i=!0),o.includes("noreferrer")||(o.push("noreferrer"),i=!0),i?(kB(r,"rel",o.join(" ")),!0):n}const bL=/^(https?:)?\/\/(www\.|m\.|music\.)?youtube(-nocookie)?\.com\/embed\//i,wL=/^(https?:)?\/\/player\.vimeo\.com\/video\//i;function xL(e){return bL.test(e)||wL.test(e)}function kL(e,t,n){if(!e.o.cleanHTML.sandboxIframesInContent||!qB.isElement(t)||"IFRAME"!==t.nodeName)return n;const r=t;return xL(kB(r,"src")||"")||r.hasAttribute("sandbox")?n:(kB(r,"sandbox",""),!0)}function _L(e,t,n){if(!qB.isElement(t))return n;const r=e.options.cleanHTML;return!!Uj(t,{safeJavaScriptLink:r.safeJavaScriptLink,removeOnError:r.removeOnError,removeEventAttributes:r.removeEventAttributes,safeLinksTarget:r.safeLinksTarget})||n}function CL(e,t,n){const r=e.o.cleanHTML.allowedStyles;if(!r||!qB.isElement(t))return n;const o=t,i=kB(o,"style");if(!i)return n;const s=function(e,t){const n=t[e],r=t["*"];if(!n&&!r)return null;const o=new Set;if(r)for(const e of r)o.add(e.toLowerCase());if(n)for(const e of n)o.add(e.toLowerCase());return o}(t.nodeName.toLowerCase(),r);if(!s)return n;const a=function(e,t){return e.split(";").map(e=>e.trim()).filter(e=>{if(!e)return!1;const n=e.indexOf(":");if(-1===n)return!1;const r=e.substring(0,n).trim().toLowerCase();return t.has(r)}).join("; ").replace(/;\s*$/,"")}(i,s);return a!==i?(kB(o,"style",a||null),!0):n}function BL(e,t,n,r,o,i){return function(e,t,n,r,o){if(!qB.isText(t)){const e=t.nodeName.toUpperCase();if(r&&!r[e])return!0;const n="IFRAME"===e&&xL(kB(t,"src")||"");if(!r&&o&&o[e]&&!n)return!0}if(!e.o.cleanHTML.removeEmptyElements)return!1;const i=e.s.isCollapsed()?e.s.range.startContainer:null;return qB.isElement(t)&&null!=t.nodeName.match(Y_)&&!qB.isTemporary(t)&&0===aB(t.innerHTML).length&&(null==n||!qB.isOrContains(t,n))&&(null==i||!qB.isOrContains(t,i))}(e,t,i,r,o)?(qB.safeRemove(t),!0):n}const SL=Object.keys(d);var jL=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class EL extends SI{constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new MS(this.j.async,{timeout:this.j.o.cleanHTML.timeout})}afterInit(e){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;const e=this.j;this.walker.setWork(e.editor),this.currentSelectionNode=e.s.current()}startWalker(){const{jodit:e}=this,t=cL(this.j.o.cleanHTML.allowTags),n=cL(this.j.o.cleanHTML.denyTags);this.walker.on("visit",r=>function(e,t,n,r,o){let i=!1;const s=e.o.cleanHTML.disableCleanFilter;for(const a of SL){if(s&&s.has(a))continue;const l=i;if(i=(0,d[a])(e,t,i,n,r,o),T_||l||!i||console.warn(`CleanHTML: Effect "${a}"`),!t.isConnected)return!0}return i}(e,r,t,n,this.currentSelectionNode)).on("end",e=>{this.j.e.fire(e?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}beforeCommand(e){if("removeformat"===e.toLowerCase())return this.j.s.isCollapsed()?uL(this.j):function(e){const{s:t,editor:n,createInside:r}=e,{range:o}=t,i=o.cloneRange(),s=o.cloneRange(),a=r.fake(),l=r.fake();i.collapse(!0),s.collapse(!1),qB.safeInsertNode(i,a),qB.safeInsertNode(s,l),o.setStartBefore(a),o.collapse(!0),t.selectRange(o),uL(e,a),o.setEndAfter(l),o.collapse(!1),t.selectRange(o),uL(e,l);const c=[];qB.between(a,l,e=>{dL(e)&&!qB.isTag(e,"a")&&c.push(e),qB.isElement(e)&&kB(e,"style")&&kB(e,"style",null)}),c.forEach(e=>qB.unwrap(e));const u=(e,t)=>{if(!qB.findNotEmptySibling(e,t)){const r=e.parentNode;if(r&&r!==n&&kB(r,"style"))return kB(r,"style",null),u(r,t),!0}};u(a,!0)&&u(l,!1),o.setStartAfter(a),o.setEndBefore(l),t.selectRange(o),qB.safeRemove(a),qB.safeRemove(l)}(this.j),!1}onBeforeSetNativeEditorValue(e){const[t,n]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.od.implementation.createHTMLDocument("").body];return t.innerHTML=e.value,this.j.e.fire("safeHTML",t),e.value=t.innerHTML,Pj(t,{safeJavaScriptLink:!0,removeOnError:!0}),qB.safeRemove(n),!1}onAfterGetValueFromEditor(e){this.j.o.cleanHTML.collapseEmptyValueToEmptyString&&/^<([a-z][a-z0-9]*)\b[^>]*>(?:<br\/?>)?<\/\1>$/i.test(e.value.trim())&&(e.value="")}onSafeHTML(e){const t=this.j.o.cleanHTML.sanitizer;t&&(e.innerHTML=t(e.innerHTML)),Pj(e,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}}jL([kE([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],EL.prototype,"onChangeCleanHTML",null),jL([fE("ready")],EL.prototype,"startWalker",null),jL([kE(":beforeCommand")],EL.prototype,"beforeCommand",null),jL([kE(":beforeSetNativeEditorValue")],EL.prototype,"onBeforeSetNativeEditorValue",null),jL([kE(":afterGetValueFromEditor")],EL.prototype,"onAfterGetValueFromEditor",null),jL([kE(":safeHTML")],EL.prototype,"onSafeHTML",null),RS.add("cleanHtml",EL),dj.prototype.controls.cut={command:"cut",isDisabled:e=>e.s.isCollapsed(),tooltip:"Cut selection"},dj.prototype.controls.copy={command:"copy",isDisabled:e=>e.s.isCollapsed(),tooltip:"Copy selection"},dj.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},jE.set("copy",'<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg> ').set("cut",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg> ').set("paste",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg> ').set("select-all",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg> '),RS.add("clipboard",class{constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}init(e){var t;null===(t=this.buttons)||void 0===t||t.forEach(t=>e.registerButton(t)),e.e.off(`copy.${QC} cut.${QC}`).on(`copy.${QC} cut.${QC}`,t=>{var n;const r=function(e,t){if(!t||e.s.isCollapsed())return t;let n=e.s.range.commonAncestorContainer;qB.isElement(n)||(n=n.parentElement);let r=t;for(;n&&n!==e.editor&&qB.isElement(n)&&!qB.isBlock(n);){const e=n.cloneNode(!1);e.innerHTML=r,r=e.outerHTML,n=n.parentElement}return r}(e,e.s.html),o=zB(t)||zB(e.ew)||zB(t.originalEvent);o&&(o.setData(kC,Hj(r)),o.setData(_C,r)),e.buffer.set(QC,r),e.e.fire("pasteStack",{html:r,action:e.o.defaultActionOnPaste||jC}),"cut"===t.type&&(e.s.remove(),e.s.focus()),t.preventDefault(),null===(n=null==e?void 0:e.events)||void 0===n||n.fire("afterCopy",r)})}destruct(e){var t,n;null===(t=aS(e,"buffer"))||void 0===t||t.set(QC,""),null===(n=null==e?void 0:e.events)||void 0===n||n.off("."+QC)}});const NL={"copy-format":"نسخ التنسيق"},IL={"copy-format":"Kopírovat formát"},FL={"copy-format":"Format kopierenт"},TL={"copy-format":"Copiar formato"},LL={"copy-format":"کپی کردن قالب"},PL={"copy-format":"Kopioi muotoilu"},ML={"copy-format":"Format de copie"},OL={"copy-format":"העתק עיצוב"},DL={"copy-format":"Formátum másolás"},UL={"copy-format":"salin format"},RL={"copy-format":"Copia il formato"},zL={"copy-format":"copyformat"},QL={"copy-format":"복사 형식"},HL={"copy-format":"Формат хуулах"},qL={"copy-format":"opmaak kopiëren"},VL={"copy-format":"format kopii"},KL={"copy-format":"Copiar formato"},WL={"copy-format":"Копировать формат"},GL={"copy-format":"Kopyalama Biçimi"},$L={"copy-format":"复制格式"},YL={"copy-format":"複製格式"},ZL="copy-format",XL=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],JL=(e,t,n,r)=>{let o=wB(n,t);return o===r[t]&&(o=n.parentNode&&n!==e.editor&&n.parentNode!==e.editor?JL(e,t,n.parentNode,r):void 0),o};dj.prototype.controls.copyformat={exec:(e,t,{button:n})=>{if(t){if(e.buffer.exists(ZL))e.buffer.delete(ZL),e.e.off(e.editor,"mouseup."+ZL);else{const n={},r=qB.up(t,e=>e&&!qB.isText(e),e.editor)||e.editor,o=e.createInside.span();e.editor.appendChild(o),XL.forEach(e=>{n[e]=wB(o,e)}),o!==e.editor&&qB.safeRemove(o);const i=((e,t,n)=>{const r={};return t&&XL.forEach(o=>{r[o]=JL(e,o,t,n),o.match(/border(Style|Color)/)&&!r.borderWidth&&(r[o]=void 0)}),r})(e,r,n),s=()=>{e.buffer.delete(ZL);const t=e.s.current();t&&(qB.isTag(t,"img")?wB(t,i):e.s.commitStyle({attributes:{style:i}})),e.e.off(e.editor,"mouseup."+ZL)};e.e.on(e.editor,"mouseup."+ZL,s),e.buffer.set(ZL,!0)}n.update()}},isActive:e=>e.buffer.exists(ZL),tooltip:"Paint format"},RS.add("copyformat",function(e){e.registerButton({name:"copyformat",group:"clipboard"}),QS(A)}),jE.set("copyformat",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg> ');var eP=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class tP extends SI{constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=e=>{const t=zB(e);return t?t.getData(_C)||t.getData(kC):null}}afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(e){let t=e.target;if(this.onDragEnd(),this.isFragmentFromEditor=qB.isOrContains(this.j.editor,t,!0),this.isCopyMode=!this.isFragmentFromEditor||kj(e),this.isFragmentFromEditor){const e=this.j.s.sel,t=e&&e.rangeCount?e.getRangeAt(0):null;t&&(this.bufferRange=t.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=e.clientX,this.startDragPoint.y=e.clientY,function(e){return qB.isElement(e)&&e.classList.contains(xI.prototype.getFullElName("item"))}(t)&&(t=t.querySelector("img")),qB.isTag(t,"img")&&(this.draggable=t.cloneNode(!0),BB(this.draggable,"target",t)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(e){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())}onDragEnd(){this.draggable&&(qB.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;const t=this.j.s.sel,n=this.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null),r=this.__getWorkFragment(n,e);t&&t.removeAllRanges(),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),r&&this.__insertFragment.call(this,r,n),e.preventDefault(),e.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(e,t){let n=null;if(!this.draggable&&e)n=this.isCopyMode?e.cloneContents():e.extractContents();else if(this.draggable)if(this.isCopyMode){const[e,t]="1"===kB(this.draggable,"-is-file")?["a","href"]:["img","src"];n=this.j.createInside.element(e),kB(n,t,kB(this.draggable,"data-src")||kB(this.draggable,"src")||""),"a"===e&&(n.textContent=kB(n,t)||"")}else n=BB(this.draggable,"target");else this.getText(t)&&(n=this.j.createInside.fromHTML(this.getText(t)));return n}__insertFragment(e,t){this.j.s.insertNode(e,!1,!1),t&&e.firstChild&&e.lastChild&&(t.setStartBefore(e.firstChild),t.setEndAfter(e.lastChild),this.j.s.selectRange(t),this.j.e.fire("synchro")),qB.isTag(e,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",e)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}}eP([KC],tP.prototype,"onDragStart",null),eP([hE(e=>e.defaultTimeout/10)],tP.prototype,"onDrag",null),eP([KC],tP.prototype,"onDragEnd",null),eP([KC],tP.prototype,"onDrop",null),RS.add("dragAndDrop",tP),dj.prototype.draggableTags=["img","jodit-media","jodit"];var nP,rP=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.IDLE=0]="IDLE",e[e.WAIT_DRAGGING=1]="WAIT_DRAGGING",e[e.DRAGGING=2]="DRAGGING"}(nP||(nP={}));class oP extends SI{constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=nP.IDLE}afterInit(){this.dragList=this.j.o.draggableTags?yS(this.j.o.draggableTags).filter(Boolean).map(e=>e.toLowerCase()):[],this.j.e.on("startDragElement",this.onStartDragElement),this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onStartDragElement(e,t){this.isInDestruct||this.state>nP.IDLE||!e||this.startDragging(e,t)}onDragStart(e){if("dragstart"===e.type&&this.draggable)return!1;if(this.state>nP.IDLE)return;const t=e.target;if(!this.dragList.length||!t)return;const n=e=>Boolean(e&&this.dragList.includes(e.nodeName.toLowerCase()));let r=qB.furthest(t,n,this.j.editor)||(n(t)?t:null);r&&(qB.isTag(r.parentElement,"a")&&r.parentElement.firstChild===r&&r.parentElement.lastChild===r&&(r=r.parentElement),this.startDragging(r,e))}startDragging(e,t){this.startX=t.clientX,this.startY=t.clientY,this.isCopyMode=kj(t),this.draggable=e.cloneNode(!0),BB(this.draggable,"target",e),this.state=nP.WAIT_DRAGGING,this.addDragListeners()}onDrag(e){var t,n;if(!this.draggable||this.state===nP.IDLE)return;const r=e.clientX,o=e.clientY;if(!(this.state===nP.WAIT_DRAGGING&&Math.sqrt(Math.pow(r-this.startX,2)+Math.pow(o-this.startY,2))<this.diffStep)){if(this.state===nP.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=nP.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){const r=BB(this.draggable,"target");wB(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:e.clientX,top:e.clientY,width:null!==(t=null==r?void 0:r.offsetWidth)&&void 0!==t?t:100,height:null!==(n=null==r?void 0:r.offsetHeight)&&void 0!==n?n:100}),qS(this.j,oP).appendChild(this.draggable)}wB(this.draggable,{left:e.clientX,top:e.clientY}),this.j.s.insertCursorAtPoint(e.clientX,e.clientY)}}onDragEnd(){this.isInDestruct||(this.removeDragListeners(),this.j.unlock(),this.state=nP.IDLE,this.draggable&&(qB.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<nP.DRAGGING)return void this.onDragEnd();let e=BB(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));const{parentElement:t}=e;this.j.s.insertNode(e,!0,!1),[e.previousSibling,e.nextSibling].forEach(e=>{qB.isEmptyTextNode(e)&&qB.safeRemove(e)}),t&&qB.isEmpty(t)&&!qB.isCell(t)&&qB.safeRemove(t),qB.isTag(e,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",e),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart).off("startDragElement",this.onStartDragElement),this.removeDragListeners()}}rP([KC],oP.prototype,"onStartDragElement",null),rP([KC],oP.prototype,"onDragStart",null),rP([hE(e=>e.defaultTimeout/10)],oP.prototype,"onDrag",null),rP([KC],oP.prototype,"onDragEnd",null),rP([KC],oP.prototype,"onDrop",null),RS.add("dragAndDropElement",oP),dj.prototype.controls.file={popup:(e,t,n)=>{const r=(t,n="")=>{e.s.insertNode(e.createInside.fromHTML(`<a href="${t}" title="${n}">${n||t}</a>`))};let o=null;return t&&(qB.isTag(t,"a")||qB.closest(t,"a",e.editor))&&(o=qB.isTag(t,"a")?t:qB.closest(t,"a",e.editor)),NT(e,{filebrowser:e=>{e.files&&e.files.forEach(t=>r(e.baseurl+t)),n()},upload:!0,url:(e,t)=>{o?(kB(o,"href",e),kB(o,"title",t)):r(e,t),n()}},o,n,!1)},tags:["a"],tooltip:"Insert file"},RS.add("file",function(e){e.registerButton({name:"file",group:"media"})}),dj.prototype.autofocus=!1,dj.prototype.cursorAfterAutofocus="end",dj.prototype.saveSelectionOnBlur=!0,RS.add("focus",function(e){e.o.saveSelectionOnBlur&&e.e.on("blur",()=>{e.isEditorMode()&&e.s.save(!0)}).on("focus",()=>{e.isEditorMode()&&e.s.restore()});const t=()=>{e.s.focus();let t=null;switch(e.o.cursorAfterAutofocus){case"start":t=qB.first(e.editor,e=>qB.isText(e));break;case"end":t=qB.last(e.editor,e=>qB.isText(e))}t&&e.s.setCursorIn(t,"start"===e.o.cursorAfterAutofocus)};e.e.on("afterInit",()=>{e.o.autofocus&&(e.defaultTimeout?e.async.setTimeout(t,300):t())}),e.e.on("afterInit afterAddPlace",()=>{e.e.off(e.editor,"mousedown.autofocus").on(e.editor,"mousedown.autofocus",t=>{e.isEditorMode()&&t.target&&qB.isBlock(t.target)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))})})}),dj.prototype.fullsize=!1,dj.prototype.globalFullSize=!0,jE.set("fullsize",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg> ').set("shrink",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg> '),dj.prototype.controls.fullsize={exec:e=>{e.toggleFullSize()},update(e,t){const n=e.isFullSize?"shrink":"fullsize";t.state.activated=e.isFullSize,e.o.textIcons?t.state.text=n:t.state.icon.name=n},tooltip:"Open in fullsize",mode:bC+vC};const iP=new Set;RS.add("fullsize",function(e){e.registerButton({name:"fullsize"});let t=!1,n=0,r=0,o=0,i=0,s=!1;const a=()=>{const{container:o,events:i}=e;i&&(t?(s||(n=wB(o,"height",!0),r=wB(o,"width",!0),s=!0),wB(o,{height:e.ow.innerHeight,width:e.ow.innerWidth})):s&&(wB(o,{height:n||"auto",width:r||"auto"}),s=!1))},l=n=>{var r;const{container:s,events:l}=e;if(s){if(void 0===n&&(n=!s.classList.contains("jodit_fullsize")),e.setMod("fullsize",n),e.o.fullsize=n,t=n,s.classList.toggle("jodit_fullsize",n),e.toolbar&&(tS(e)&&(null===(r=e.toolbarContainer)||void 0===r||r.appendChild(e.toolbar.container)),wB(e.toolbar.container,"width","auto")),n?iP.add(s):iP.delete(s),e.o.globalFullSize&&(1===iP.size&&n||0===iP.size&&!n)){n&&(o=e.ow.scrollX,i=e.ow.scrollY);let t=s.parentNode;for(;t&&t.nodeType!==Node.DOCUMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t.classList.toggle("jodit_fullsize-box_true",n),t=t.parentNode;a(),n||e.ow.scrollTo(o,i)}l.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",a),e.e.on("afterInit afterOpen",()=>{var t;e.toggleFullSize(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.fullsize)}).on("toggleFullSize",l).on("beforeDestruct",()=>{t&&l(!1)}).on("beforeDestruct",()=>{e.events&&e.e.off(e.ow,"resize",a)})}),jE.set("hr",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg> '),dj.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},RS.add("hr",function(e){e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",()=>{const t=e.createInside.element("hr");e.s.insertNode(t,!1,!1);const n=qB.closest(t.parentElement,qB.isBlock,e.editor);n&&qB.isEmpty(n)&&n!==e.editor&&(qB.after(n,t),qB.safeRemove(n));let r=qB.next(t,qB.isBlock,e.editor,!1);return r||(r=e.createInside.element(e.o.enter),qB.after(t,r)),e.s.setCursorIn(r),!1})}),dj.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0};var sP=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};const aP="__jodit_imageprocessor_binded",lP=aP+"blob-id";class cP extends SI{afterInit(e){}beforeDestruct(e){const t=aS(e,"buffer"),n=null==t?void 0:t.get(lP);if(t&&n){const e=Object.keys(n);for(const t of e)URL.revokeObjectURL(t);t.delete(lP)}}onAfterGetValueFromEditor(e,t){if(t!==HC)return this.onBeforeSetElementValue(e)}onBeforeSetElementValue(e){const{jodit:t}=this;if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;const n=t.buffer.get(lP);if(n){const t=Object.keys(n);for(const r of t)for(;e.value.includes(r);)e.value=e.value.replace(r,n[r])}}async afterChange(e){const{jodit:t}=this;t.editor&&$S("img",t.editor).forEach(e=>{BB(e,aP)||(BB(e,aP,!0),e.complete||t.e.on(e,"load",function n(){var r;!t.isInDestruct&&(null===(r=t.e)||void 0===r||r.fire("resize")),t.e.off(e,"load",n)}),e.src&&/^data:/.test(e.src)&&function(e,t){if(!e.o.imageProcessor.replaceDataURIToBlobIdInView)return;if("undefined"==typeof ArrayBuffer||"undefined"==typeof URL)return;const n=t.src,r=function(e){const t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),o=new Uint8Array(r);for(let e=0;e<t.length;e++)o[e]=t.charCodeAt(e);return new Blob([r],{type:n})}(n);t.src=URL.createObjectURL(r),e.e.fire("internalUpdate");const{buffer:o}=e,i=o.get(lP)||{};i[t.src]=n,e.buffer.set(lP,i)}(t,e),t.e.on(e,"mousedown touchstart",()=>{t.s.select(e)}))})}}sP([kE(":afterGetValueFromEditor")],cP.prototype,"onAfterGetValueFromEditor",null),sP([kE(":beforeSetElementValue")],cP.prototype,"onBeforeSetElementValue",null),sP([kE([":change",":afterInit",":changePlace"]),AE()],cP.prototype,"afterChange",null),RS.add("imageProcessor",cP),dj.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0};var uP=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};let dP=class extends OE{className(){return"UIImageMainTab"}appendChildToContainer(){}constructor(e,t,n){super(e),this.state=t,this.handlers=n}render(){return'<div class="jodit-form__group &__editSrc">\n\t\t\t<label>~Src~</label>\n\t\t\t<div class="jodit-input_group">\n\t\t\t\t<input class="jodit-input &__imageSrc" type="text"/>\n\t\t\t\t<div class="jodit-input_group-buttons &__fixImage">\n\t\t\t\t\t<a class="jodit-button &__changeImage" data-ref="changeImage">*image*</a>\n\t\t\t\t\t<a class="jodit-button &__editImage" data-ref="editImage">*crop*</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editTitle">\n\t\t\t<label>~Title~</label>\n\t\t\t<input type="text" class="jodit-input &__imageTitle"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editAlt">\n\t\t\t<label>~Alternative~</label>\n\t\t\t<input type="text" class="jodit-input &__imageAlt"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editLink">\n\t\t\t<label>~Link~</label>\n\t\t\t<input type="text" class="jodit-input &__imageLink"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editLinkTarget">\n\t\t\t<label class="jodit_vertical_middle">\n\t\t\t\t<input type="checkbox" class="jodit-checkbox &__imageLinkOpenInNewTab"/>\n\t\t\t\t<span>~Open link in new tab~</span>\n\t\t\t</label>\n\t\t</div>'}async onStateImageSrcChange(){this.getElm("imageSrc").value=this.state.values.imageSrc}onImageSrcChange(){this.state.values.imageSrc=this.getElm("imageSrc").value}onEditImageClick(e){this.handlers.openImageEditor(),e.stopPropagation()}onChangeImageClick(e){this.handlers.openImagePopup(this.getElm("changeImage")),e.stopPropagation()}onStateTitleChange(){this.getElm("imageTitle").value=this.state.values.imageTitle}onTitleChange(){this.state.values.imageTitle=this.getElm("imageTitle").value}onStateAltChange(){this.getElm("imageAlt").value=this.state.values.imageAlt}onAltChange(){this.state.values.imageAlt=this.getElm("imageAlt").value}onStateImageLinkChange(){this.getElm("imageLink").value=this.state.values.imageLink}onImageLinkChange(){this.state.values.imageLink=this.getElm("imageLink").value}onStateImageLinkOpenInNewTabChange(){this.getElm("imageLinkOpenInNewTab").checked=this.state.values.imageLinkOpenInNewTab}onImageLinkOpenInNewTabChange(){this.state.values.imageLinkOpenInNewTab=this.getElm("imageLinkOpenInNewTab").checked}hideFieldByOptions(){const e=this.j.o,t=e.image;[["editSrc","editSrc"],["editTitle","editTitle"],["editAlt","editAlt"],["editLink","editLink"],["editLink","editLinkTarget"],["useImageEditor","editImage"]].forEach(([e,n])=>{wB(this.getElm(n),"display",t[e]?null:"none")});const n=this.getElm("changeImage"),r=Boolean(e.filebrowser.ajax.url||e.uploader.url);wB(n,"display",r?null:"none");const o=this.getElm("editImage"),i=Boolean(e.filebrowser.ajax.url)&&t.useImageEditor;wB(o,"display",i?null:"none"),wB(this.getElm("fixImage"),"display",r||i?null:"none")}};uP([kE("state.values.imageSrc")],dP.prototype,"onStateImageSrcChange",null),uP([kE("imageSrc:change")],dP.prototype,"onImageSrcChange",null),uP([kE("editImage:click")],dP.prototype,"onEditImageClick",null),uP([kE("changeImage:click")],dP.prototype,"onChangeImageClick",null),uP([kE("state.values.imageTitle")],dP.prototype,"onStateTitleChange",null),uP([kE("imageTitle:change")],dP.prototype,"onTitleChange",null),uP([kE("state.values.imageAlt")],dP.prototype,"onStateAltChange",null),uP([kE("imageAlt:change")],dP.prototype,"onAltChange",null),uP([kE("state.values.imageLink")],dP.prototype,"onStateImageLinkChange",null),uP([kE("imageLink:change")],dP.prototype,"onImageLinkChange",null),uP([kE("state.values.imageLinkOpenInNewTab")],dP.prototype,"onStateImageLinkOpenInNewTabChange",null),uP([kE("imageLinkOpenInNewTab:change")],dP.prototype,"onImageLinkOpenInNewTabChange",null),uP([fE("ready")],dP.prototype,"hideFieldByOptions",null),dP=uP([hS],dP);const AP=e=>/^[-+]?[0-9.]+(px)?$/.test(e.toString())?parseFloat(e.toString()):e,hP=e=>oS(e)?e?e+"px":e.toString():(e=iB(e),/^[0-9]+$/.test(e)?e+"px":e);var pP=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};let fP=class extends NE{className(){return"UIImagePositionTab"}constructor(e,t,n){super(e,{availableClasses:e.o.image.availableClasses}),this.state=t,this.handlers=n}render({availableClasses:e}){return`<div class="jodit-form__group &__editMargins">\n\t\t\t<label>~Margins~</label>\n\t\t\t<div class="jodit-grid jodit_vertical_middle">\n\t\t\t\t<input class="jodit_col-lg-1-5 jodit-input &__marginTop" type="text" placeholder="~top~"/>\n\t\t\t\t<a style="text-align: center;" class="jodit-properties__lock jodit_col-lg-1-5 &__lockMargin">*lock*</a>\n\t\t\t\t<input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginRight" type="text" placeholder="~right~"/>\n\t\t\t\t<input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginBottom" type="text" placeholder="~bottom~"/>\n\t\t\t\t<input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginLeft" type="text" placeholder="~left~"/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editAlign">\n\t\t\t<label>~Align~</label>\n\t\t\t<select class="jodit-select &__align">\n\t\t\t\t<option value="">~--Not Set--~</option>\n\t\t\t\t<option value="left">~Left~</option>\n\t\t\t\t<option value="center">~Center~</option>\n\t\t\t\t<option value="right">~Right~</option>\n\t\t\t</select>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editStyle">\n\t\t\t<label>~Styles~</label>\n\t\t\t<input type="text" class="jodit-input &__style"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editClass">\n\t\t\t<label>~Classes~</label>\n\t\t\t${(()=>{const t=[];return e&&e.length>0?(t.push('<select class="jodit-input jodit-select &__classes">'),e.forEach(e=>{YC(e)?t.push(`<option value="${e}">${e}</option>`):t.push(`<option value="${e[0]}">${e[1]}</option>`)}),t.push("</select>")):t.push('<input type="text" class="jodit-input &__classes"/>'),t.join("")})()}\n\t\t</div>\n\t\t<div class="jodit-form__group &__editId">\n\t\t\t<label>Id</label>\n\t\t\t<input type="text" class="jodit-input &__id"/>\n\t\t</div>\n\t\t<div\n\t\t\tclass="jodit-form__group &__editBorderRadius"\n\t\t>\n\t\t\t<label>~Border radius~</label>\n\t\t\t<input type="number" class="jodit-input &__borderRadius"/>\n\t\t</div>`}onStateAlignChange(){this.getElm("align").value=this.state.values.align}onChangeAlign(){const e=this.getElm("align");this.state.values.align=e.value}onStateValuesBorderRadiusChange(){this.getElm("borderRadius").value=this.state.values.borderRadius.toString()}onChangeBorderRadius(){const e=this.getElm("borderRadius");this.state.values.borderRadius=parseFloat(e.value)}onStateValuesIdChange(){this.getElm("id").value=this.state.values.id}onChangeId(){const e=this.getElm("id");this.state.values.id=e.value}onStateValuesStyleChange(){this.getElm("style").value=this.state.values.style}onChangeStyle(){const e=this.getElm("style");this.state.values.style=e.value}onStateValuesClassesChange(){this.getElm("classes").value=this.state.values.classes}onChangClasses(){const e=this.getElm("classes");this.state.values.classes=e.value}onLockMarginClick(e){this.state.marginIsLocked=!this.state.marginIsLocked,e.preventDefault()}onChangeMarginIsLocked(){const e=this.getElm("marginBottom"),t=this.getElm("marginRight"),n=this.getElm("marginLeft"),r=this.getElm("lockMargin");if([t,e,n].forEach(e=>{kB(e,"disabled",this.state.marginIsLocked||null)}),r.innerHTML=jE.get(this.state.marginIsLocked?"lock":"unlock"),this.state.marginIsLocked){const e=this.state.values.marginTop;this.state.values.marginRight=e,this.state.values.marginBottom=e,this.state.values.marginLeft=e}}onStateValuesMarginChange(){const e=this.getElm("marginTop"),t=this.getElm("marginRight"),n=this.getElm("marginBottom"),r=this.getElm("marginLeft");e.value=this.state.values.marginTop.toString(),t.value=this.state.values.marginRight.toString(),n.value=this.state.values.marginBottom.toString(),r.value=this.state.values.marginLeft.toString()}onChangeMargin(){const e=this.getElm("marginTop"),t=this.getElm("marginRight"),n=this.getElm("marginBottom"),r=this.getElm("marginLeft");this.state.values.marginTop=AP(e.value),this.state.marginIsLocked?(this.state.values.marginRight=this.state.values.marginTop,this.state.values.marginBottom=this.state.values.marginTop,this.state.values.marginLeft=this.state.values.marginTop):(this.state.values.marginRight=AP(t.value),this.state.values.marginBottom=AP(n.value),this.state.values.marginLeft=AP(r.value))}hideFieldByOptions(){const e=this.j.o.image;[["editMargins","editMargins"],["editAlign","editAlign"],["editStyle","editStyle"],["editClass","editClass"],["editId","editId"],["editBorderRadius","editBorderRadius"]].forEach(([t,n])=>{wB(this.getElm(n),"display",e[t]?null:"none")})}};pP([fE("ready"),kE("state.values.align")],fP.prototype,"onStateAlignChange",null),pP([kE("align:change")],fP.prototype,"onChangeAlign",null),pP([fE("ready"),kE("state.values.borderRadius")],fP.prototype,"onStateValuesBorderRadiusChange",null),pP([kE("borderRadius:change")],fP.prototype,"onChangeBorderRadius",null),pP([fE("ready"),kE("state.values.id")],fP.prototype,"onStateValuesIdChange",null),pP([kE("id:change")],fP.prototype,"onChangeId",null),pP([fE("ready"),kE("state.values.style")],fP.prototype,"onStateValuesStyleChange",null),pP([kE("style:change")],fP.prototype,"onChangeStyle",null),pP([fE("ready"),kE("state.values.classes")],fP.prototype,"onStateValuesClassesChange",null),pP([kE("classes:change")],fP.prototype,"onChangClasses",null),pP([kE("lockMargin:click")],fP.prototype,"onLockMarginClick",null),pP([fE("ready"),kE("state.marginIsLocked")],fP.prototype,"onChangeMarginIsLocked",null),pP([fE("ready"),kE(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],fP.prototype,"onStateValuesMarginChange",null),pP([kE(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],fP.prototype,"onChangeMargin",null),pP([fE("ready")],fP.prototype,"hideFieldByOptions",null),fP=pP([hS],fP);var mP=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};let gP=class extends OE{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(e){const t=super.getElm(e);if(t)return t;for(const t of this.elements){const n=t.getElm(e);if(n)return n}return null}constructor(e,t,n,r){super(e),this.state=t,this.handlers=r,this.__mainTab=new dP(this.jodit,this.state,this.handlers),this.__positionTab=new fP(this.jodit,this.state,this.handlers),this.getElm("tabsBox").appendChild(ET(e,[{name:"Image",content:this.__mainTab},{name:"Advanced",content:this.__positionTab}],n)),this.setMod("lock-size",this.state.sizeIsLocked),this.append(this.__mainTab).append(this.__positionTab)}render(){return`<form>\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-2-5 jodit_col-xs-5-5">\n\t\t\t\t<div class="&__view-box">\n\t\t\t\t\t<div class="&__imageView">\n\t\t\t\t\t\t<img class="&__imageViewSrc" src="" alt=""/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="jodit-form__group &__imageSizes">\n\t\t\t\t\t\t<input type="text" class="jodit-input &__imageWidth"/>\n\t\t\t\t\t\t<a class="&__lockSize">${jE.get("lock")}</a>\n\t\t\t\t\t\t<input type="text" class="&__imageHeight jodit-input"/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="jodit_col-lg-3-5 jodit_col-xs-5-5 &__tabsBox"></div>\n\t\t</div>\n\t</form>`}onChangeSizeIsLocked(){const e=this.getElm("lockSize"),t=this.getElm("imageWidth");e.innerHTML=jE.get(this.state.sizeIsLocked?"lock":"unlock"),this.setMod("lock-size",this.state.sizeIsLocked),this.j.e.fire(t,"change")}onLockSizeClick(){this.state.sizeIsLocked=!this.state.sizeIsLocked}onStateValuesSizeChange(){const e=this.getElm("imageWidth"),t=this.getElm("imageHeight");e!==this.j.od.activeElement&&(e.value=this.state.values.imageWidth.toString()),t!==this.j.od.activeElement&&(t.value=this.state.values.imageHeight.toString())}onImageWidthChange(e){const t=this.getElm("imageWidth"),n=this.getElm("imageHeight");if(!this.state.sizeIsLocked||!fB(t.value)||!fB(n.value))return this.state.values.imageWidth=t.value,void(this.state.values.imageHeight=n.value);const r=parseFloat(t.value),o=parseFloat(n.value);e.target===t?(this.state.values.imageWidth=r,this.state.values.imageHeight=Math.round(r/this.state.ratio)):(this.state.values.imageWidth=Math.round(o*this.state.ratio),this.state.values.imageHeight=o)}onStateValuesImageSrcChange(){const{imageSrc:e}=this.state.values;if(!e)return;kB(this.getElm("imageViewSrc"),"src",e);const t=new Image;t.src=e,this.state.image=t}hideFieldByOptions(){const e=this.j.o.image;[["editSize","imageSizes"],["showPreview","imageView"]].forEach(([t,n])=>{wB(this.getElm(n),"display",e[t]?null:"none")})}};mP([fE("ready"),kE("state.sizeIsLocked")],gP.prototype,"onChangeSizeIsLocked",null),mP([kE("lockSize:click")],gP.prototype,"onLockSizeClick",null),mP([fE("ready"),kE(["state.values.imageWidth","state.values.imageHeight"])],gP.prototype,"onStateValuesSizeChange",null),mP([kE(["imageWidth:change","imageHeight:change","imageWidth:keydown","imageHeight:keydown","imageWidth:mousedown","imageHeight:mousedown","imageWidth:paste","imageHeight:paste"]),AE()],gP.prototype,"onImageWidthChange",null),mP([fE("ready"),kE("state.values.imageSrc")],gP.prototype,"onStateValuesImageSrcChange",null),mP([fE("ready")],gP.prototype,"hideFieldByOptions",null),gP=mP([hS],gP);var yP=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class vP extends SI{constructor(){super(...arguments),this.state={image:new Image,sourceImage:new Image,get ratio(){const{naturalWidth:e,naturalHeight:t}=this.image;return e/t||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}},this.activeTabState={activeTab:"Image"}}get form(){return new gP(this.j,this.state,this.activeTabState,{openImageEditor:()=>function(e,t){const n=kB(t.image,"src")||"",r=e.c.element("a"),o=()=>{r.host===location.host||e.confirm("You can only edit your own images. Download this image on the host?",n=>{n&&e.uploader&&e.uploader.uploadRemoteImage(r.href.toString(),n=>{e.alert("The image has been successfully uploaded to the host!",()=>{YC(n.newfilename)&&(t.values.imageSrc=n.baseurl+n.newfilename)})},t=>{e.alert(e.i18n("There was an error loading %s",t.message))})})};r.href=n,e.filebrowser.dataProvider.getPathByUrl(r.href.toString()).then(o=>{fI.call(e.filebrowser,r.href,o.name,o.path,o.source,e=>{const r=(new Date).getTime(),o=e||n;t.values.imageSrc=o+(-1!==o.indexOf("?")?"":"?")+"&_tmp="+r.toString()},t=>{e.alert(t.message)})}).catch(t=>{e.alert(t.message,o)})}(this.j,this.state),openImagePopup:e=>function(e,t,n,r){const o=new gN(t),i=()=>{o.close(),o.destruct()};o.setContent(NT(e,{upload:e=>{e.files&&e.files.length&&(n.values.imageSrc=e.baseurl+e.files[0]),i()},filebrowser:async e=>{e&&$C(e.files)&&e.files.length&&(n.values.imageSrc=e.files[0],i())}},n.image,i)).open(()=>oE(r))}(this.j,this.dialog,this.state,e)})}get dialog(){const{j:e}=this,t=e.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),n=this.__buttons;return n.check.onAction(()=>{(function(e,t,n){const{style:r,imageSrc:o,borderRadius:i,imageTitle:s,imageAlt:a,imageLink:l,imageWidth:c,imageHeight:u,marginTop:d,marginRight:A,marginBottom:h,marginLeft:p,imageLinkOpenInNewTab:f,align:m,classes:g,id:y}=t.values,v=e.o;v.image.editStyle&&kB(n,"style",r||null),o?(kB(n,"src",o),n.style.borderRadius=i?i+"px":"",kB(n,"title",s||null),kB(n,"alt",a||null),function(e,t,n,r){let o=qB.closest(t,"a",e.editor);if(n){if(o||(o=qB.wrap(t,"a",e.createInside)),kB(o,"href",n),kB(o,"target",r?"_blank":null),!r){const e=(kB(o,"rel")||"").split(/\s+/).filter(e=>e&&"noopener"!==e&&"noreferrer"!==e);kB(o,"rel",e.length?e.join(" "):null)}}else o&&o.parentNode&&o.parentNode.replaceChild(t,o)}(e,n,l,f),function(e,t,n,r){if(t!==e.offsetWidth||n!==e.offsetHeight){const o=t?hP(t):null;let i=n?hP(n):null;wB(e,{width:o,height:o&&r?null:i}),kB(e,"width",o&&fB(t)&&kB(e,"width")?o:null),kB(e,"width")&&!r||(i=null),kB(e,"height",i)}}(n,c,u,t.sizeIsLocked),e.o.image.editMargins&&function(e,t,n,r,o,i,s){const a=[t,n,r,o],l=(e,t)=>{const n=wB(i,e),r=hP(t);n.toString()!==r.toString()&&wB(i,e,r)};if(s)l("margin",t);else{const e=["margin-top","margin-right","margin-bottom","margin-left"];a.forEach((t,n)=>{const r=e[n];l(r,t)})}}(0,d,A,h,p,n,t.marginIsLocked),v.image.editClass&&kB(n,"class",g||null),v.image.editId&&kB(n,"id",y||null),v.image.editAlign&&ij(n,m)):qB.safeRemove(n)})(e,this.state,this.state.sourceImage),e.synchronizeValues(),t.close()}),n.remove.onAction(()=>{e.s.removeNode(this.state.sourceImage),t.close()}),n.cancel.onAction(()=>{t.close()}),t.setHeader(e.i18n("Image properties")),t.setContent(this.form),t.setFooter([[n.cancel,n.remove],n.check]),e.e.on(t,"afterClose",()=>{this.state.image.parentNode&&e.o.image.selectImageAfterClose&&e.s.select(this.state.sourceImage)}),t.setSize(e.o.image.dialogWidth),MB(e,t.container),t}get __buttons(){const{j:e}=this;return{check:LE(e,"ok","Apply","primary"),remove:LE(e,"bin","Delete"),cancel:LE(e,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((e,t)=>async function(e,t){const{sourceImage:n,values:r}=t;return function(e,t){e.style.cssFloat&&-1!==["left","right"].indexOf(e.style.cssFloat.toLowerCase())?t.align=wB(e,"float"):"block"===wB(e,"display")&&"auto"===e.style.marginLeft&&"auto"===e.style.marginRight?t.align="center":t.align=""}(n,r),r.borderRadius=parseInt(n.style.borderRadius||"0",10)||0,r.id=kB(n,"id")||"",r.imageTitle=kB(n,"title")||"",r.imageAlt=kB(n,"alt")||"",r.style=kB(n,"style")||"",r.classes=(kB(n,"class")||"").replace(/jodit_focused_image[\s]*/,""),function(e,t,n){let r=!0,o=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(n=>{let i=e.style.getPropertyValue(AB(n));if(!i)return o=!0,void(t[n]=0);/^[0-9]+(px)?$/.test(i)&&(i=parseInt(i,10)),t[n]=i,(o&&t[n]||r&&"marginTop"!==n&&t[n]!==t.marginTop)&&(r=!1)}),n.marginIsLocked=r}(n,r,t),function(e,t,n){const r=qB.closest(e.sourceImage,"a",t.editor);r?(n.imageLink=kB(r,"href")||"",n.imageLinkOpenInNewTab="_blank"===kB(r,"target")):(n.imageLink="",n.imageLinkOpenInNewTab=!1)}(t,e,r),r.imageSrc=kB(n,"src")||"",async function(e,t,n){try{await e.decode()}catch(e){console.error(e)}const r=wB(e,"width",!0)||kB(e,"width")||!1,o=wB(e,"height",!0)||kB(e,"height")||!1;t.imageWidth=!1!==r?AP(r):e.offsetWidth||e.naturalWidth,fB(t.imageWidth)?t.imageHeight=!1!==o?AP(o):e.offsetHeight||e.naturalHeight:t.imageHeight=o||"";const{imageWidth:i,imageHeight:s}=t,a=parseFloat(i.toString());if(!fB(i)||!fB(s))return void(n.sizeIsLocked=!1);if(!1===o)return t.imageHeight=Math.round(a/n.ratio),void(n.sizeIsLocked=!0);const l=parseFloat(s.toString());n.sizeIsLocked=Math.abs(a-l*n.ratio)<1}(n,r,t)}(this.j,this.state).then(e,t)).catch(e=>{KB(e)||this.dialog.message.error(e.message)}).finally(()=>this.__unlock()),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(e=>e.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(e=>e.state.disabled=!1)}afterInit(e){const t=this;e.e.on("afterConstructor changePlace",()=>{e.e.off(e.editor,".imageproperties").on(e.editor,"dblclick.imageproperties",n=>{const r=n.target;if(qB.isTag(r,"img"))if(e.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",r))return;t.state.sourceImage=r,t.state.image=r.cloneNode(!0),e.o.readonly||(n.stopImmediatePropagation(),n.preventDefault(),t.open())}else n.stopImmediatePropagation(),e.s.select(r)})}).on("openImageProperties.imageproperties",e=>{t.state.sourceImage=e,this.state.image=e.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){const{image:e,values:t}=this.state;if(e.src)try{this.__lock();try{await e.decode()}catch(e){console.error(e)}if(this.state.sizeIsLocked&&fB(t.imageWidth)){const e=parseFloat(t.imageWidth.toString());t.imageHeight=Math.round(e/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",e)}catch(e){this.j.alert(e.message)}finally{this.__unlock()}}beforeDestruct(e){var t,n,r;Object.values(null!==(t=aS(this,"__buttons"))&&void 0!==t?t:{}).forEach(e=>e.destruct()),null===(n=aS(this,"dialog"))||void 0===n||n.destruct(),null===(r=aS(this,"form"))||void 0===r||r.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")}}yP([lS],vP.prototype,"form",null),yP([lS],vP.prototype,"dialog",null),yP([lS],vP.prototype,"__buttons",null),yP([kE("state.image")],vP.prototype,"onStateValuesImageSrcChange",null),RS.add("imageProperties",vP);const bP=(e,t)=>`${qB.isCell(t)?"padding":"margin"}${"rtl"===e?"Right":"Left"}`;jE.set("indent",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> ').set("outdent",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> '),dj.prototype.controls.indent={tooltip:"Increase Indent"},dj.prototype.controls.outdent={isDisabled:e=>{var t;const n=e.s.current();if(!n)return!0;if(null===(t=e.o.tab)||void 0===t?void 0:t.tabInsideLiInsertNewList){const t=qB.closest(n,"li",e.editor);if(t){const n=qB.closest(t,["ul","ol"],e.editor);if(n&&qB.closest(n,"li",e.editor))return!1}}const r=qB.closest(n,qB.isBlock,e.editor);if(r){const t=bP(e.o.direction,r);return!r.style[t]||parseInt(r.style[t],10)<=0}return!0},tooltip:"Decrease Indent"},dj.prototype.indentMargin=10;const wP=(e,t,n,r)=>{if(!t)return;if(e.has(t))return;const o=bP(n.o.direction,t);e.add(t);let i=t.style[o]?parseInt(t.style[o],10):0;i+=n.o.indentMargin*("outdent"===r?-1:1),t.style[o]=i>0?i+"px":"",kB(t,"style")||kB(t,"style",null)};RS.add("indent",function(e){e.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});const t=t=>{const n=new Set,{enter:r,enterBlock:o}=e.o,i=r.toLowerCase()===gC,s=e.s.current();if(i&&e.s.isCollapsed()&&s){const r=qB.wrapNextInline(s,o,e);return wP(n,r,e,t),!1}return e.s.eachSelection(s=>{e.s.save();let a=!!s&&qB.up(s,qB.isBlock,e.editor);if(!a&&s&&(a=LB(i?qB.wrapNextInline:qB.wrapInline,s,i?o:r.toLowerCase(),e)),!a)return e.s.restore(),!1;wP(n,a,e,t),e.s.restore()}),e.synchronizeValues(),!1};e.registerCommand("indent",{exec:t,hotkeys:["ctrl+]","cmd+]"]}),e.registerCommand("outdent",{exec:t,hotkeys:["ctrl+[","cmd+["]})}),jE.set("justify",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg> '),dj.prototype.controls.align={name:"left",tooltip:"Align",update(e,t){const n=t.control,r=e.s.current();if(r){let o=wB(qB.closest(r,qB.isBlock,e.editor)||e.editor,"text-align").toString();n.defaultValue&&-1!==n.defaultValue.indexOf(o)&&(o="left");const{list:i,data:s}=n;s&&s.currentValue!==o&&i&&(dB(i)?i[o]:i.includes(o))&&(e.o.textIcons||"select"===n.component?t.state.text=o:t.state.icon.name=o,s.currentValue=o)}},isActive:(e,t)=>{const n=e.s.current();if(!n||!t.control.defaultValue)return!1;const r=qB.closest(n,qB.isBlock,e.editor)||e.editor;return-1===t.control.defaultValue.indexOf(wB(r,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},dj.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},dj.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},dj.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},dj.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},RS.add("justify",function(e){e.registerButton({name:"align",group:"indent"});const t=t=>(e.s.focus(),e.s.eachSelection(n=>{if(!n)return;let r=qB.up(n,qB.isBlock,e.editor);r||(r=qB.wrapInline(n,e.o.enterBlock,e)),aj(t,r)}),!1);e.registerCommand("justifyfull",t),e.registerCommand("justifyright",t),e.registerCommand("justifyleft",t),e.registerCommand("justifycenter",t)});class xP extends SI{afterInit(e){}beforeDestruct(e){}onKeyDownArrow(e){var t;if(e.key!==cC||!this.j.selection.isCollapsed())return;const{endContainer:n,endOffset:r}=this.j.selection.range;if(qB.isText(n)&&(null===(t=n.nodeValue)||void 0===t?void 0:t.length)===r){const{parentNode:e}=n;qB.isInlineBlock(e)&&!qB.findNotEmptyNeighbor(e,!1,this.j.editor)&&qB.after(e,this.j.createInside.text(R_))}}}(function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)})([kE(":keydown")],xP.prototype,"onKeyDownArrow",null),RS.add("keyArrowOutside",xP),dj.prototype.limitWords=!1,dj.prototype.limitChars=!1,dj.prototype.limitHTML=!1;var kP=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class _P extends SI{afterInit(e){const{limitWords:t,limitChars:n}=e.o;if(e&&(t||n)){let t=null;e.e.off(".limit").on("beforePaste.limit",()=>{t=e.history.snapshot.make()}).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",()=>{if(this.__shouldDenyInput(!0)&&t)return e.history.snapshot.restore(t),e.e.fire("denyPaste.limit"),!1})}}shouldPreventInsertHTML(e){return(!e||!(mC.includes(e.key)||e.ctrlKey||e.metaKey))&&this.__shouldDenyInput(!1)}__shouldDenyInput(e){const{jodit:t}=this,{limitWords:n,limitChars:r}=t.o,o=t.o.limitHTML?t.value:t.text,i=this.__splitWords(o);if(n&&CP(i.length,n,e))return t.e.fire("denyWords.limit limit.limit"),!0;const s=t.o.countTextSpaces?o.replace(z_(),"").replace(/[\r\n]/g,"").length:i.join("").length,a=Boolean(r&&CP(s,r,e));return a&&t.e.fire("denyChars.limit limit.limit"),a}checkPreventKeyPressOrPaste(e){if(this.shouldPreventInsertHTML(e))return!1}checkPreventChanging(e,t){const{jodit:n}=this;this.__shouldDenyInput(!0)&&(n.value=t)}__splitWords(e){return e.replace(z_(),"").split(q_()).filter(e=>e.length)}beforeDestruct(e){e.e.off(".limit")}}function CP(e,t,n){return n?e>t:e>=t}kP([KC],_P.prototype,"checkPreventKeyPressOrPaste",null),kP([KC],_P.prototype,"checkPreventChanging",null),RS.add("limit",_P),dj.prototype.defaultLineHeight=null,jE.set("line-height",'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg> '),dj.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(e,t,{control:n})=>RB(e,t,{control:n},e=>e)};const BP={"Line height":"ارتفاع الخط"},SP={"Line height":"Výška čáry"},jP={"Line height":"Zeilenhöhe"},EP={"Line height":"Altura de la línea"},NP={"Line height":"ارتفاع خط"},IP={"Line height":"Rivin korkeus"},FP={"Line height":"Hauteur de ligne"},TP={"Line height":"גובה שורה"},LP={"Line height":"Vonal magassága"},PP={"Line height":"Tinggi baris"},MP={"Line height":"Altezza linea"},OP={"Line height":"ラインの高さ"},DP={"Line height":"선 높이"},UP={"Line height":"Зураасны өндөр"},RP={"Line height":"Lijnhoogte"},zP={"Line height":"Wysokość linii"},QP={"Line height":"Altura da linha"},HP={"Line height":"Высота линии"},qP={"Line height":"Výška riadku"},VP={"Line height":"Çizgi yüksekliği"},KP={"Line height":"Висота лінії"},WP={"Line height":"线高"},GP={"Line height":"行高"};class $P extends SI{constructor(e){super(e),this.buttons=[{name:"lineHeight",group:"font"}],QS(M)}afterInit(e){wB(e.editor,{lineHeight:e.o.defaultLineHeight}),e.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(e,t,n){const{s:r,createInside:o,editor:i,o:s}=this.j;let a;r.isFocused()||r.focus(),r.save();const l=e=>{let t=qB.closest(e,qB.isBlock,i);t||(t=qB.wrap(e,s.enter,o));const r=wB(t,"lineHeight");void 0===a&&(a=r.toString()!==n.toString()),wB(t,"lineHeight",a?n:null)};try{if(r.isCollapsed()){const e=o.fake();r.insertNode(e,!1,!1),l(e),qB.safeRemove(e)}else r.eachSelection(l)}finally{r.restore()}}beforeDestruct(e){wB(e.editor,{lineHeight:null})}}(function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)})([KC],$P.prototype,"applyLineHeight",null),RS.add("lineHeight",$P),dj.prototype.mediaFakeTag="jodit-media",dj.prototype.mediaInFakeBlock=!0,dj.prototype.mediaBlocks=["video","audio"],RS.add("media",function(e){const t="jodit_fake_wrapper",{mediaFakeTag:n,mediaBlocks:r,mediaInFakeBlock:o}=e.options;o&&e.e.on("afterGetValueFromEditor",e=>{const r=new RegExp(`<${n}[^>]+data-${t}[^>]+>([^]+?)</${n}>`,"ig");r.test(e.value)&&(e.value=e.value.replace(r,"$1"))}).on("change afterInit afterSetMode changePlace",e.async.debounce(()=>{e.isDestructed||e.getMode()===bC||$S(r.join(","),e.editor).forEach(r=>{BB(r,t)||(BB(r,t,!0),(r=>{if(r.parentNode&&kB(r.parentNode,"data-jodit_iframe_wrapper"))r=r.parentNode;else{const o=e.createInside.element(n,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,[`data-${t}`]:1});kB(o,"style",kB(r,"style")),o.style.display="inline-block"===r.style.display?"inline-block":"block",o.style.width=r.offsetWidth+"px",o.style.height=r.offsetHeight+"px",r.parentNode&&r.parentNode.insertBefore(o,r),o.appendChild(r),r=o}e.e.off(r,"mousedown.select touchstart.select").on(r,"mousedown.select touchstart.select",()=>{e.s.setCursorAfter(r)})})(r))})},e.defaultTimeout))}),dj.prototype.mobileTapTimeout=300,dj.prototype.toolbarAdaptive=!0,dj.prototype.buttonsMD=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},{group:"other",buttons:[]},"|","dots"],dj.prototype.buttonsSM=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},"\n",{group:"state",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},"|","dots"],dj.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],dj.prototype.controls.dots={mode:bC+vC,popup:(e,t,n,r)=>{let o=r.control.data;return void 0===o&&(o={toolbar:PN(e),rebuild:()=>{var t,n;if(r){const i=e.e.fire("getDiffButtons.mobile",r.closest(zI));if(i&&o){o.toolbar.build(yS(i));const r=(null===(n=null===(t=e.toolbar)||void 0===t?void 0:t.firstButton)||void 0===n?void 0:n.container.offsetWidth)||36;o.toolbar.container.style.width=3*(r+4)+"px"}}}},r.control.data=o),o.rebuild(),o.toolbar},tooltip:"Show all"};const YP=e=>"|"===e||"---"===e||"\n"===e;function ZP(e,t){var n;const r=uN(yS(t.o.buttons),t),o=t.getRegisteredButtonGroups();let i=!1,s=!1;const a=[];for(const t of e)if(cN(t)){const e=[...t.buttons,...null!==(n=o[t.group])&&void 0!==n?n:[]],s=e.filter(e=>r.has(e));s.length!==e.length&&(i=!0),a.push(...s)}else YP(t)?a.push(t):"dots"===t?s=!0:r.has(t)?a.push(t):i=!0;if(!i)return e;const l=[];for(const e of a)YP(e)&&(0===l.length||YP(l[l.length-1]))||l.push(e);for(;l.length&&YP(l[l.length-1]);)l.pop();if(s){const e=uN(l,t);nB(r).some(t=>!e.has(t))&&l.push("dots")}return l}function XP(e,t,n){if(t.isInDestruct)return;(function(e){return Boolean(e&&"drop"===e.type)})(e)&&t.s.insertCursorAtPoint(e.clientX,e.clientY);const r=t.e.fire("beforePasteInsert",n);!XC(r)&&(YC(r)||oS(r)||qB.isNode(r))&&(n=r),YC(n)&&(n=function(e){const t=(e=e.replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i);-1!==t&&(e=e.substring(t+20));const n=e.search(/<!--EndFragment-->/i);return-1!==n&&(e=e.substring(0,n)),e}(n)),t.s.insertHTML(n)}function JP(e,t,n,r,o){if(!1===e.e.fire("beforeOpenPasteDialog",t,n,r,o))return;const i=e.confirm(`<div style="word-break: normal; white-space: normal">${e.i18n(t)}</div>`,e.i18n(n)),s=o.map(({text:t,value:n})=>LE(e,{text:t,name:t.toLowerCase(),tabIndex:0}).onAction(()=>{i.close(),r(n)}));i.e.one(i,"afterClose",()=>{e.s.isFocused()||e.s.focus()});const a=LE(e,{text:"Cancel",tabIndex:0}).onAction(()=>{i.close()});return i.setFooter([...s,a]),s[0].focus(),s[0].state.variant="primary",e.e.fire("afterOpenPasteDialog",i,t,n,r,o),i}RS.add("mobile",function(e){let t=0,n=yS(e.o.buttons);e.o.mobileTapTimeout&&e.e.on("touchend",n=>{if(n.changedTouches&&n.changedTouches.length){const r=(new Date).getTime(),o=r-t;o>e.o.mobileTapTimeout&&(t=r,o<1.5*e.o.mobileTapTimeout&&e.s.insertCursorAtPoint(n.clientX,n.clientY))}}),e.e.on("getDiffButtons.mobile",t=>{if(t===e.toolbar){const t=uN(yS(e.o.buttons),e),r=uN(n,e);return nB(t).reduce((e,t)=>(r.has(t)||e.push(t),e),[])}}),e.o.toolbarAdaptive&&e.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",()=>{var t,r;if(!e.o.toolbar)return;const o=(null!==(t=e.container.parentElement)&&void 0!==t?t:e.container).offsetWidth,i=e.isFullSize||o>=e.o.sizeLG?yS(e.o.buttons):o>=e.o.sizeMD?ZP(yS(e.o.buttonsMD),e):o>=e.o.sizeSM?ZP(yS(e.o.buttonsSM),e):ZP(yS(e.o.buttonsXS),e);i.toString()!==n.toString()&&(n=i,e.e.fire("closeAllPopups"),null===(r=e.toolbar)||void 0===r||r.setRemoveButtons(e.o.removeButtons).build(n.concat(e.o.extraButtons)))}).on(e.ow,"load resize",()=>e.e.fire("recalcAdaptive"))}),dj.prototype.askBeforePasteHTML=!0,dj.prototype.processPasteHTML=!0,dj.prototype.scrollToPastedContent=!0,dj.prototype.pasteExcludeStripTags=["br","hr"],dj.prototype.pasteHTMLActionList=[{value:jC,text:"Keep"},{value:NC,text:"Insert as Text"},{value:IC,text:"Insert only Text"}],dj.prototype.memorizeChoiceWhenPasteFragment=!1,dj.prototype.nl2brInPlainText=!0;const eM="pasteStorage";dj.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(e,t,{control:n}){var r;if(n.name===eM)return void e.execCommand("showPasteStorage");e.s.focus();let o="",i=!0;if(navigator.clipboard){try{const e=await navigator.clipboard.read();if(e&&e.length){const t=e[0],n=(null===(r=t.types)||void 0===r?void 0:r.includes(_C))?_C:kC,i=await t.getType(n);o=await new Response(i).text()}i=!1}catch(e){T_||console.log(e)}if(i)try{o=await navigator.clipboard.readText(),i=!1}catch(e){T_||console.log(e)}}i&&(o=e.buffer.get(QC)||"",i=0===o.length);const s=e.value;i?(e.ed.execCommand("paste"),i=s===e.value,!i&&e.e.fire("afterPaste")):o.length?(XP(null,e,o),e.e.fire("afterPaste")):i&&e.alert("Your browser doesn't support direct access to the clipboard.",()=>{e.s.focus()})},list:{[eM]:"Paste Storage"},isChildDisabled:e=>e.e.fire("pasteStorageList")<2};var tM=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class nM extends SI{constructor(){super(...arguments),this.pasteStack=new Fj(20),this._isDialogOpened=!1}afterInit(e){e.e.on("paste.paste",this.onPaste).on("pasteStack.paste",e=>this.pasteStack.push(e)),this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}beforeDestruct(e){e.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}onPaste(e){try{if(!1===this.customPasteProcess(e)||!1===this.j.e.fire("beforePaste",e))return e.preventDefault(),!1;this.defaultPasteProcess(e)}finally{this.j.e.fire("afterPaste",e)}}customPasteProcess(e){if(!this.j.o.processPasteHTML)return;const t=zB(e),n=[null==t?void 0:t.getData(kC),null==t?void 0:t.getData(_C),null==t?void 0:t.getData(CC)];for(const t of n)if(rB(t)&&(this.j.e.fire("processHTML",e,t,{plain:n[0],html:n[1],rtf:n[2]})||this.processHTML(e,t)))return!1}defaultPasteProcess(e){const t=zB(e);let n=(null==t?void 0:t.getData(_C))||(null==t?void 0:t.getData(kC));if(t&&n&&""!==iB(n)){const r=this.j.e.fire("processPaste",e,n,function(e){const t=e.types;let n="";if($C(t)||"[object DOMStringList]"==={}.toString.call(t))for(let e=0;e<t.length;e+=1)n+=t[e]+";";else n=(t||kC).toString()+";";return n}(t));void 0!==r&&(n=r),(YC(n)||qB.isNode(n))&&this.__insertByType(e,n,this.j.o.defaultActionOnPaste),e.preventDefault(),e.stopPropagation()}}processHTML(e,t){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){const n=this.pasteStack.find(e=>e.html===t);if(n)return this.__insertByType(e,t,n.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;const n=JP(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",n=>{this._isDialogOpened=!1,this.__insertByType(e,t,n)},this.j.o.pasteHTMLActionList);return n&&(this._isDialogOpened=!0,n.e.on("beforeClose",()=>{this._isDialogOpened=!1})),!0}__insertByType(e,t,n){if(this.pasteStack.push({html:t,action:n}),YC(t))switch(this.j.buffer.set(QC,t),n){case EC:t=nj(t);break;case IC:t=Hj(t,this.j.ed,new Set(this.j.o.pasteExcludeStripTags),this.j.o.nl2brInPlainText);break;case NC:t=rj(t),this.j.o.nl2brInPlainText&&(t=oj(t));break;default:{const r=this.j.e.fire("onCustomPasteHTMLOption",n,t,e);"string"==typeof r&&(t=r)}}XP(e,this.j,t)}onProcessPasteReplaceNl2Br(e,t,n){if(n===kC+";"&&!rB(t)){const e=rj(t);return this.j.o.nl2brInPlainText?oj(e):e}}}tM([KC],nM.prototype,"onPaste",null),tM([KC],nM.prototype,"onProcessPasteReplaceNl2Br",null),RS.add("paste",nM),dj.prototype.askBeforePasteFromWord=!0,dj.prototype.processPasteFromWord=!0,dj.prototype.defaultActionOnPasteFromWord=null,dj.prototype.pasteFromWordActionList=[{value:jC,text:"Keep"},{value:NC,text:"Clean"},{value:IC,text:"Insert only Text"}];class rM extends SI{afterInit(e){}beforeDestruct(e){}processWordHTML(e,t,n){const{j:r}=this,{processPasteFromWord:o,askBeforePasteFromWord:i,defaultActionOnPasteFromWord:s,defaultActionOnPaste:a,pasteFromWordActionList:l}=r.o;return!(!o||!YB(t)||(i?JP(r,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",r=>{this.insertFromWordByType(e,t,r,n)},l):this.insertFromWordByType(e,t,s||a,n),0))}insertFromWordByType(e,t,n,r){var o;switch(n){case jC:{t=tj(t);const e=null===(o=this.j.events)||void 0===o?void 0:o.fire("beautifyHTML",t);YC(e)&&(t=e);break}case NC:t=nj(t);break;case IC:t=Hj(nj(t),this.j.ed,new Set(this.j.o.pasteExcludeStripTags),this.j.o.nl2brInPlainText)}XP(e,this.j,t)}}rM.requires=["paste"],function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([kE(":processHTML")],rM.prototype,"processWordHTML",null),RS.add("pasteFromWord",rM),RS.add("pasteStorage",class extends SI{constructor(){super(...arguments),this.currentIndex=0,this.list=[],this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.paste=()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){const e=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=e}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")},this.onKeyDown=e=>{let t=this.currentIndex;-1!==[lC,uC,oC].indexOf(e.key)&&(e.key===lC&&(0===t?t=this.list.length-1:t-=1),e.key===uC&&(t===this.list.length-1?t=0:t+=1),e.key!==oC?(t!==this.currentIndex&&this.selectIndex(t),e.stopImmediatePropagation(),e.preventDefault()):this.paste())},this.selectIndex=e=>{this.listBox&&nB(this.listBox.childNodes).forEach((t,n)=>{t.classList.remove("jodit_active"),e===n&&this.previewBox&&(t.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[e],t.focus())}),this.currentIndex=e},this.showDialog=()=>{this.list.length<2||(this.dialog||this.createDialog(),this.listBox&&(this.listBox.innerHTML=""),this.previewBox&&(this.previewBox.innerHTML=""),this.list.forEach((e,t)=>{const n=this.j.c.element("a");n.textContent=t+1+". "+e.replace(q_(),""),this.j.e.on(n,"keydown",this.onKeyDown),kB(n,"href","#"),kB(n,"data-index",t.toString()),kB(n,"tab-index","-1"),this.listBox&&this.listBox.appendChild(n)}),this.dialog&&this.dialog.open(),this.j.async.setTimeout(()=>{this.selectIndex(0)},100))}}createDialog(){this.dialog=this.j.dlg();const e=LE(this.j,"paste","Paste","primary");e.onAction(this.paste);const t=LE(this.j,"","Cancel");t.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([e,t]),this.j.e.on(this.listBox,"click dblclick",e=>{const t=e.target;return qB.isTag(t,"a")&&t.hasAttribute("data-index")&&this.selectIndex(parseInt(kB(t,"-index")||"0",10)),"dblclick"===e.type&&this.paste(),!1})}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",()=>this.list.length).on("afterCopy.paste-storage",e=>{-1!==this.list.indexOf(e)&&this.list.splice(this.list.indexOf(e),1),this.list.unshift(e),this.list.length>5&&(this.list.length=5)}),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),qB.safeRemove(this.previewBox),qB.safeRemove(this.listBox),qB.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}}),dj.prototype.controls.preview={icon:"eye",command:"preview",mode:bC+vC,tooltip:"Preview"},RS.add("preview",function(e){e.registerButton({name:"preview"}),e.registerCommand("preview",(t,n,r)=>{const o=e.dlg();o.setSize(1024,600).open("",e.i18n("Preview")).setModal(!0);const[,i]=jj(e,r,"px",o.getElm("content"));o.e.on(o,"afterClose",i)})}),jE.set("print",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg> '),dj.prototype.controls.print={exec:e=>{const t=e.create.element("iframe");Object.assign(t.style,{position:"fixed",right:0,bottom:0,width:0,height:0,border:0}),qS(e,dj).appendChild(t);const n=()=>{e.e.off(e.ow,"mousemove",n),qB.safeRemove(t)},r=t.contentWindow;if(r){e.e.on(r,"onbeforeunload onafterprint",n).on(e.ow,"mousemove",n),e.o.iframe?(e.e.fire("generateDocumentStructure.iframe",r.document,e),r.document.body.innerHTML=e.value):(r.document.write('<!doctype html><html lang="'+_j(e.o.language)+'"><head><title></title></head><style>'+function(e){const t=(e,t=e.ownerDocument.styleSheets)=>{const n=nB(t).map(e=>{try{return nB(e.cssRules)}catch(e){}return[]}).flat();return n.filter(t=>{try{return Boolean(t&&e.matches(t.selectorText))}catch(e){}return!1})};class n{constructor(n,r,o){this.css={};const i=o||{},s=t=>{const n=t.selectorText.split(",").map(e=>e.trim()).sort().join(",");!1===Boolean(this.css[n])&&(this.css[n]={});const r=t.style.cssText.split(/;(?![A-Za-z0-9])/);for(let t=0;t<r.length;t++){if(!r[t])continue;const o=r[t].split(":");o[0]=o[0].trim(),o[1]=o[1].trim(),this.css[n][o[0]]=o[1].replace(/var\(([^)]+)\)/g,(t,n)=>{const[r,o]=n.split(",");return(e.ew.getComputedStyle(e.editor).getPropertyValue(r.trim())||o||t).trim()})}};(()=>{const o=n.innerHeight,a=r.createTreeWalker(e.editor,NodeFilter.SHOW_ELEMENT,()=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){const e=a.currentNode;if(e.getBoundingClientRect().top<o||i.scanFullPage){const n=t(e);if(n)for(let e=0;e<n.length;e++)s(n[e])}}})()}generateCSS(){let e="";for(const t in this.css)if(!/:not\(/.test(t)){e+=t+" { ";for(const n in this.css[t])e+=n+": "+this.css[t][n]+"; ";e+="}\n"}return e}}try{return new n(e.ew,e.ed,{scanFullPage:!0}).generateCSS()}catch(e){}return""}(e)+"</style><body></body></html>"),r.document.close(),jj(e,void 0,"px",r.document.body));const t=r.document.createElement("style");t.innerHTML="@media print {\n\t\t\t\t\tbody {\n\t\t\t\t\t\t\t-webkit-print-color-adjust: exact;\n\t\t\t\t\t}\n\t\t\t}",r.document.head.appendChild(t),r.focus(),r.print()}},mode:bC+vC,tooltip:"Print"},RS.add("print",function(e){e.registerButton({name:"print"})}),dj.prototype.tableAllowCellResize=!0;var oM=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};const iM="table_processor_observer-resize";class sM extends SI{constructor(){super(...arguments),this.selectMode=!1,this.resizeDelta=0,this.createResizeHandle=()=>{this.resizeHandler||(this.resizeHandler=this.j.c.div("jodit-table-resizer"),this.j.e.on(this.resizeHandler,"mousedown.table touchstart.table",this.onHandleMouseDown).on(this.resizeHandler,"mouseenter.table",()=>{this.j.async.clearTimeout(this.hideTimeout)}))},this.hideTimeout=0,this.drag=!1,this.minX=0,this.maxX=0,this.startX=0}get module(){return this.j.getInstance("Table",this.j.o)}get isRTL(){return"rtl"===this.j.o.direction}showResizeHandle(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)}hideResizeHandle(){this.hideTimeout=this.j.async.setTimeout(()=>{qB.safeRemove(this.resizeHandler)},{timeout:this.j.defaultTimeout,label:"hideResizer"})}onHandleMouseDown(e){if(this.j.isLocked)return;this.drag=!0,this.j.e.on(this.j.ow,"mouseup.resize-cells touchend.resize-cells",this.onMouseUp).on(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.startX=e.clientX,this.j.lock(iM),this.resizeHandler.classList.add("jodit-table-resizer_moved");let t,n=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,null!=this.wholeTable)n=this.workTable.parentNode.getBoundingClientRect(),this.minX=n.left,this.maxX=this.minX+n.width;else{const e=this.module.formalCoordinate(this.workTable,this.workCell,!0);this.module.formalMatrix(this.workTable,(n,r,o)=>{e[1]===o&&(t=n.getBoundingClientRect(),this.minX=Math.max(t.left+pC/2,this.minX)),e[1]+(this.isRTL?-1:1)===o&&(t=n.getBoundingClientRect(),this.maxX=Math.min(t.left+t.width-pC/2,this.maxX))})}return!1}onMouseMove(e){if(!this.drag)return;this.j.e.fire("closeAllPopups");let t=e.clientX;const n=rE(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);t<this.minX&&(t=this.minX),t>this.maxX&&(t=this.maxX),this.resizeDelta=t-this.startX+(this.j.o.iframe?n.left:0),this.resizeHandler.style.left=t-(this.j.o.iframe?0:n.left)+"px";const r=this.j.s.sel;r&&r.removeAllRanges()}onMouseUp(e){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.resizeHandler.classList.remove("jodit-table-resizer_moved"),this.startX!==e.clientX&&(null==this.wholeTable?this.resizeColumns():this.resizeTable()),this.j.synchronizeValues(),this.j.s.focus())}resizeColumns(){const e=this.resizeDelta,t=[],n=this.module;n.setColumnWidthByDelta(this.workTable,n.formalCoordinate(this.workTable,this.workCell,!0)[1],e,!0,t);const r=LB(this.isRTL?qB.prev:qB.next,this.workCell,qB.isCell,this.workCell.parentNode);n.setColumnWidthByDelta(this.workTable,n.formalCoordinate(this.workTable,r)[1],-e,!1,t)}resizeTable(){const e=this.resizeDelta*(this.isRTL?-1:1),t=this.workTable.offsetWidth,n=Zj(this.workTable.parentNode,this.j.ew),r=!this.wholeTable;if(this.isRTL?!r:r)this.workTable.style.width=(t+e)/n*100+"%";else{const r=this.isRTL?"marginRight":"marginLeft",o=parseInt(this.j.ew.getComputedStyle(this.workTable)[r]||"0",10);this.workTable.style.width=(t-e)/n*100+"%",this.workTable.style[r]=(o+e)/n*100+"%"}}setWorkCell(e,t=null){this.wholeTable=t,this.workCell=e,this.workTable=qB.up(e,e=>qB.isTag(e,"table"),this.j.editor)}calcHandlePosition(e,t,n=0,r=0){const o=rE(t,this.j,this.j.ed);if(n>pC&&n<o.width-pC)return void this.hideResizeHandle();const i=rE(this.j.workplace,this.j,this.j.od,!0),s=rE(e,this.j,this.j.ed);if(this.resizeHandler.style.left=(n<=pC?o.left:o.left+o.width)-i.left+r+"px",Object.assign(this.resizeHandler.style,{height:s.height+"px",top:s.top-i.top+"px"}),this.showResizeHandle(),n<=pC){const e=LB(this.isRTL?qB.next:qB.prev,t,qB.isCell,t.parentNode);this.setWorkCell(e||t,!e||null)}else{const e=LB(this.isRTL?qB.prev:qB.next,t,qB.isCell,t.parentNode);this.setWorkCell(t,!!e&&null)}}afterInit(e){e.o.tableAllowCellResize&&e.e.off(this.j.ow,".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells",()=>{$S("table",e.editor).forEach(this.observe)}).on(this.j.ow,"scroll.resize-cells",()=>{if(!this.drag)return;const t=qB.up(this.workCell,e=>qB.isTag(e,"table"),e.editor);if(t){const e=t.getBoundingClientRect();this.resizeHandler.style.top=e.top+"px"}}).on("beforeSetMode.resize-cells",()=>{const t=this.module;t.getAllSelectedCells().forEach(n=>{t.removeSelection(n),t.normalizeTable(qB.closest(n,"table",e.editor))})})}observe(e){BB(e,iM)||(BB(e,iM,!0),this.j.e.on(e,"mouseleave.resize-cells",e=>{this.resizeHandler&&this.resizeHandler!==e.relatedTarget&&this.hideResizeHandle()}).on(e,"mousemove.resize-cells touchmove.resize-cells",this.j.async.throttle(t=>{if(this.j.isLocked)return;const n=qB.up(t.target,qB.isCell,e);n&&this.calcHandlePosition(e,n,t.offsetX)},{timeout:this.j.defaultTimeout})),this.createResizeHandle())}beforeDestruct(e){e.events&&(e.e.off(this.j.ow,".resize-cells"),e.e.off(".resize-cells"))}}oM([KC],sM.prototype,"onHandleMouseDown",null),oM([KC],sM.prototype,"onMouseMove",null),oM([KC],sM.prototype,"onMouseUp",null),oM([KC],sM.prototype,"observe",null),RS.add("resizeCells",sM),dj.prototype.allowResizeX=!1,dj.prototype.allowResizeY=!0;var aM=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class lM extends SI{constructor(){super(...arguments),this.isResized=!1,this.start={x:0,y:0,w:0,h:0},this.handle=this.j.c.div("jodit-editor__resize",jE.get("resize_handler"))}afterInit(e){const{height:t,width:n,allowResizeX:r}=e.o;let{allowResizeY:o}=e.o;"auto"===t&&"auto"!==n&&(o=!1),"auto"===t&&"auto"===n||!r&&!o||(e.statusbar.setMod("resize-handle",!0),e.statusbar.show(),e.e.on("toggleFullSize.resizeHandler",()=>{this.handle.style.display=e.isFullSize?"none":"block"}).on(this.handle,"mousedown touchstart",this.onHandleResizeStart).on(e.ow,"mouseup touchend",this.onHandleResizeEnd),e.container.appendChild(this.handle))}onHandleResizeStart(e){this.isResized=!0,this.start.x=e.clientX,this.start.y=e.clientY,this.start.w=this.j.container.offsetWidth,this.start.h=this.j.container.offsetHeight,this.j.lock(),this.j.e.on(this.j.ow,"mousemove touchmove",this.onHandleResize),e.preventDefault()}onHandleResize(e){if(!this.isResized)return;let{clientX:t,clientY:n}=e;if(e.view===this.j.ew&&this.j.ew!==this.j.ow){const e=rE(this.j.workplace,this.j,this.j.od,!0);t+=e.left,n+=e.top}this.j.o.allowResizeY&&this.j.e.fire("setHeight",this.start.h+n-this.start.y),this.j.o.allowResizeX&&this.j.e.fire("setWidth",this.start.w+t-this.start.x),this.j.e.fire("resize")}onHandleResizeEnd(){this.isResized&&(this.isResized=!1,this.j.e.off(this.j.ow,"mousemove touchmove",this.onHandleResize),this.j.unlock())}beforeDestruct(){qB.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}}lM.requires=["size"],aM([KC],lM.prototype,"onHandleResizeStart",null),aM([KC],lM.prototype,"onHandleResize",null),aM([KC],lM.prototype,"onHandleResizeEnd",null),RS.add("resizeHandler",lM),dj.prototype.allowResizeTags=new Set(["img","iframe","table","jodit"]),dj.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set(["img"])};var cM=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};const uM="__jodit-resizer_binded";class dM extends SI{constructor(){super(...arguments),this.LOCK_KEY="resizer",this.element=null,this.isResizeMode=!1,this.isShown=!1,this.startX=0,this.startY=0,this.width=0,this.height=0,this.ratio=0,this.rect=this.j.c.fromHTML(`<div title="${this.j.i18n("Press Alt for custom resizing")}" class="jodit-resizer">\n\t\t\t\t<div class="jodit-resizer__top-left"></div>\n\t\t\t\t<div class="jodit-resizer__top-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-left"></div>\n\t\t\t\t<span>100x100</span>\n\t\t\t</div>`),this.sizeViewer=this.rect.getElementsByTagName("span")[0],this.pointerX=0,this.pointerY=0,this.isAltMode=!1,this.onClickElement=e=>{this.isResizeMode||this.element===e&&this.isShown||(this.element=e,this.show(),qB.isTag(this.element,"img")&&!this.element.complete&&this.j.e.one(this.element,"load",this.updateSize))},this.updateSize=()=>{if(!this.isInDestruct&&this.isShown&&this.element&&this.rect){const e=this.getWorkplacePosition(),t=rE(this.element,this.j,this.j.ed),n=parseInt(this.rect.style.left||"0",10),r=parseInt(this.rect.style.top||"0",10),o=this.rect.offsetWidth,i=this.rect.offsetHeight,s=t.top-e.top,a=t.left-e.left;r===s&&n===a&&o===this.element.offsetWidth&&i===this.element.offsetHeight||(wB(this.rect,{top:s,left:a,width:this.element.offsetWidth,height:this.element.offsetHeight}),this.j.events&&(this.j.e.fire(this.element,"changesize"),isNaN(n)||this.j.e.fire("resize")))}},this.hideSizeViewer=()=>{this.sizeViewer.style.opacity="0"}}afterInit(e){$S("div",this.rect).forEach(t=>{e.e.on(t,"mousedown.resizer touchstart.resizer",this.onStartResizing.bind(this,t))}),KS.on("hideHelpers",this.hide),e.e.on("readonly",e=>{e&&this.hide()}).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",e=>{const t=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;t.test(e.value)&&(e.value=e.value.replace(t,"$1"))}),this.addEventListeners(),this.__onChangeEditor()}onEditorClick(e){let t=e.target;const{editor:n,options:{allowResizeTags:r}}=this.j;for(;t&&t!==n;){if(qB.isTag(t,r))return this.__bind(t),void this.onClickElement(t);t=t.parentNode}}__afterInsertImage(e){if(this.j.o.resizer.forImageChangeAttributes)return;const t=kB(e,"width");t&&!wB(e,"width",!0)&&(wB(e,"width",t),kB(e,"width",null))}addEventListeners(){const e=this.j;e.e.off(e.editor,".resizer").off(e.ow,".resizer").on(e.editor,"keydown.resizer",e=>{this.isShown&&e.key===AC&&this.element&&!qB.isTag(this.element,"table")&&this.onDelete(e)}).on(e.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on([e.ow,e.editor],"scroll.resizer",()=>{this.isShown&&!this.isResizeMode&&this.hide()}).on(e.ow,"keydown.resizer",this.onKeyDown).on(e.ow,"keyup.resizer",this.onKeyUp).on(e.ow,"mouseup.resizer touchend.resizer",this.onClickOutside)}onStartResizing(e,t){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=e,t.cancelable&&t.preventDefault(),t.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=t.clientX,this.startY=t.clientY,this.pointerX=t.clientX,this.pointerY=t.clientY;const{j:n}=this;n.e.fire("hidePopup"),n.lock(this.LOCK_KEY),n.e.on(n.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onEndResizing(){const{j:e}=this;e.unlock(),this.isResizeMode=!1,this.isAltMode=!1,e.synchronizeValues(),e.e.off(e.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onResize(e){if(this.isResizeMode){if(!this.element)return;let t,n;if(this.pointerX=e.clientX,this.pointerY=e.clientY,this.j.options.iframe&&e.view===this.j.ew){const r=this.getWorkplacePosition();t=e.clientX+r.left-this.startX,n=e.clientY+r.top-this.startY}else t=this.pointerX-this.startX,n=this.pointerY-this.startY;const r=this.handle.className;let o=0,i=0;const s=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(!0===s||s&&qB.isTag(this.element,s))?(t?(o=this.width+(r.match(/left/)?-1:1)*t,i=Math.round(o/this.ratio)):(i=this.height+(r.match(/top/)?-1:1)*n,o=Math.round(i*this.ratio)),o>tE(this.j.editor,this.j.ow)&&(o=tE(this.j.editor,this.j.ow),i=Math.round(o/this.ratio))):(o=this.width+(r.match(/left/)?-1:1)*t,i=this.height+(r.match(/top/)?-1:1)*n),o>this.j.o.resizer.min_width&&(o<this.rect.parentNode.offsetWidth?this.applySize(this.element,"width",o):this.applySize(this.element,"width","100%")),i>this.j.o.resizer.min_height&&this.applySize(this.element,"height",i),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),e.stopImmediatePropagation()}}onKeyDown(e){this.isAltMode=e.key===sC,!this.isAltMode&&this.isResizeMode&&this.onEndResizing()}onKeyUp(){this.isAltMode&&this.isResizeMode&&this.element&&(this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.startX=this.pointerX,this.startY=this.pointerY),this.isAltMode=!1}onClickOutside(e){if(this.isShown){if(!this.isResizeMode)return this.hide();e.stopImmediatePropagation(),this.onEndResizing()}}getWorkplacePosition(){return rE(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}applySize(e,t,n){const r=qB.isImage(e)&&this.j.o.resizer.forImageChangeAttributes;r&&kB(e,t,n),r&&!e.style[t]||wB(e,t,n)}onDelete(e){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(qB.safeRemove(this.element),this.hide(),e.preventDefault()))}__onChangeEditor(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),$S("iframe",this.j.editor).forEach(this.__bind)}__bind(e){if(!qB.isHTMLElement(e)||!this.j.o.allowResizeTags.has(e.tagName.toLowerCase())||BB(e,uM))return;let t;if(BB(e,uM,!0),qB.isTag(e,"iframe")){const n=e;qB.isHTMLElement(e.parentNode)&&kB(e.parentNode,"-jodit_iframe_wrapper")?e=e.parentNode:(t=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),kB(t,"style",kB(e,"style")),wB(t,{display:"inline-block"===e.style.display?"inline-block":"block",width:e.offsetWidth,height:e.offsetHeight}),e.parentNode&&e.parentNode.insertBefore(t,e),t.appendChild(e),this.j.e.on(t,"click",()=>{kB(t,"data-jodit-wrapper_active",!0)}),e=t),this.j.e.off(e,"mousedown.select touchstart.select").on(e,"mousedown.select touchstart.select",()=>{this.j.s.select(e)}).off(e,"changesize").on(e,"changesize",()=>{kB(n,"width",e.offsetWidth+"px"),kB(n,"height",e.offsetHeight+"px")})}this.j.e.on(e,"dragstart",this.hide),!F_&&xC&&this.j.e.on(e,"mousedown",t=>{qB.isTag(e,"img")&&t.preventDefault()})}showSizeViewer(e,t){this.j.o.resizer.showSize&&(e<this.sizeViewer.offsetWidth||t<this.sizeViewer.offsetHeight?this.hideSizeViewer():(this.sizeViewer.style.opacity="1",this.sizeViewer.textContent=`${e} x ${t}`,this.j.async.setTimeout(this.hideSizeViewer,{timeout:this.j.o.resizer.hideSizeTimeout,label:"hideSizeViewer"})))}show(){this.j.o.readonly||this.isShown||(this.isShown=!0,this.rect.parentNode||(MB(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=wB(this.j.container,"zIndex").toString()),this.updateSize())}hide(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,qB.safeRemove(this.rect),$S("[data-jodit-wrapper_active='true']",this.j.editor).forEach(e=>kB(e,"data-jodit-wrapper_active",!1)))}beforeDestruct(e){this.hide(),KS.off("hideHelpers",this.hide),e.e.off(this.j.ow,".resizer").off(".resizer")}}cM([kE(":click")],dM.prototype,"onEditorClick",null),cM([kE(":afterInsertImage")],dM.prototype,"__afterInsertImage",null),cM([KC],dM.prototype,"onStartResizing",null),cM([KC],dM.prototype,"onEndResizing",null),cM([KC],dM.prototype,"onResize",null),cM([KC],dM.prototype,"onKeyDown",null),cM([KC],dM.prototype,"onKeyUp",null),cM([KC],dM.prototype,"onClickOutside",null),cM([kE(":change")],dM.prototype,"__onChangeEditor",null),cM([KC],dM.prototype,"__bind",null),cM([KC,kE(":hideResizer")],dM.prototype,"hide",null),RS.add("resizer",dM),dj.prototype.useSearch=!0,dj.prototype.search={lazyIdleTimeout:0,useCustomHighlightAPI:W_&&void 0!==W_.Highlight},jE.set("search",'<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg> '),dj.prototype.controls.find={tooltip:"Find",icon:"search",exec(e,t,{control:n}){switch(n.args&&n.args[0]){case"findPrevious":e.e.fire("searchPrevious");break;case"findNext":e.e.fire("searchNext");break;case"replace":e.execCommand("openReplaceDialog");break;default:e.execCommand("openSearchDialog")}},list:{search:"Find",findNext:"Find Next",findPrevious:"Find Previous",replace:"Replace"},childTemplate:(e,t,n)=>n};const AM="jd-tmp-selection",hM="background-color: var(--jd-color-background-selection); color: var(--jd-color-text-selection);",pM=new WeakSet;function fM(e,t){if(pM.has(e))return;pM.add(e);const n=t?`::highlight(jodit-search-result) { ${hM} }`:`[${AM}] { ${hM} }`;try{const t=new CSSStyleSheet;t.insertRule(n),e.adoptedStyleSheets=[...e.adoptedStyleSheets,t]}catch(t){const r=e.createElement("style");r.textContent=n,e.head.appendChild(r)}}function mM(e,t,n,r,o){if(null==t.startContainer.nodeValue||null==t.endContainer.nodeValue)return;if(function(e,t,n){if(e.o.search.useCustomHighlightAPI&&W_&&void 0!==W_.Highlight){const r=[t,...n].map(t=>{const n=e.selection.createRange();return n.setStart(t.startContainer,t.startOffset),n.setEnd(t.endContainer,t.endOffset),n});fM(e.ed,!0);const o=new Highlight(...r);return CSS.highlights.clear(),CSS.highlights.set("jodit-search-result",o),n.length=0,!0}return!1}(e,t,n))return;fM(e.ed,!1);const i=r.element("span",{[AM]:!0});qB.markTemporary(i),function(e,t,n){const r=e.startContainer.nodeValue;let o=0;if(0!==e.startOffset){const t=n.text(r.substring(0,e.startOffset));e.startContainer.nodeValue=r.substring(e.startOffset),qB.before(e.startContainer,t),e.startContainer===e.endContainer&&(o=e.startOffset,e.endOffset-=o),e.startOffset=0}const i=e.endContainer.nodeValue;if(e.endOffset!==i.length){const r=n.text(i.substring(e.endOffset));e.endContainer.nodeValue=i.substring(0,e.endOffset),qB.after(e.endContainer,r);for(const n of t){if(n.startContainer!==e.endContainer)break;n.startContainer=r,n.startOffset=n.startOffset-e.endOffset-o,n.endContainer===e.endContainer&&(n.endContainer=r,n.endOffset=n.endOffset-e.endOffset-o)}e.endOffset=e.endContainer.nodeValue.length}}(t,n,r);let s=t.startContainer;do{if(!s)break;if(qB.isText(s)&&!vM(s.parentNode)&&qB.wrap(s,i.cloneNode(),r),s===t.endContainer)break;let e=s.firstChild||s.nextSibling;if(!e){for(;s&&!s.nextSibling&&s!==o;)s=s.parentNode;e=null==s?void 0:s.nextSibling}s=e}while(s&&s!==o)}function gM(e){return $S(`[${AM}]`,e)}function yM(e){gM(e.editor).forEach(e=>qB.unwrap(e)),function(e){e.o.search.useCustomHighlightAPI&&W_&&void 0!==W_.Highlight&&CSS.highlights.clear()}(e)}function vM(e){return qB.isElement(e)&&e.hasAttribute(AM)}class bM{constructor(e=iE){this.searchIndex=e,this.queue=[],this.value=""}add(e){var t;const n=(null!==(t=e.nodeValue)&&void 0!==t?t:"").toLowerCase();if(!n.length)return;const r=this.value.length;this.queue.push({startIndex:r,endIndex:r+n.length,node:e}),this.value+=n}ranges(e,t=0){const n=[];let r=t,o=0,i=0;do{if([r,o]=this.searchIndex(e,this.value,r),-1!==r){let e,t,s=0,a=0;for(let n=i;n<this.queue.length;n+=1)if(!e&&this.queue[n].endIndex>r&&(e=this.queue[n].node,s=r-this.queue[n].startIndex),e&&this.queue[n].endIndex>=r+o){t=this.queue[n].node,a=r+o-this.queue[n].startIndex,i=n;break}e&&t&&n.push({startContainer:e,startOffset:s,endContainer:t,endOffset:a}),r+=o}}while(-1!==r);return 0===n.length?null:n}}var wM=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};let xM=class extends NE{className(){return"UISearch"}render(){return`<div>\n\t\t\t<div class="&__box">\n\t\t\t\t<div class="&__inputs">\n\t\t\t\t\t<input data-ref="query" tabindex="0" placeholder="~Search for~" type="text"/>\n\t\t\t\t\t<input data-ref="replace" tabindex="0" placeholder="~Replace with~" type="text"/>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__counts">\n\t\t\t\t\t<span data-ref="counter-box">\n\t\t\t\t\t\t<span data-ref="current">0</span><span>/</span><span data-ref="count">0</span>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__buttons">\n\t\t\t\t\t<button data-ref="next" tabindex="0" type="button">${jE.get("angle-down")}</button>\n\t\t\t\t\t<button data-ref="prev" tabindex="0" type="button">${jE.get("angle-up")}</button>\n\t\t\t\t\t<button data-ref="cancel" tabindex="0" type="button">${jE.get("cancel")}</button>\n\t\t\t\t\t<button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>`}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.currentBox.innerText=e.toString()}set count(e){this.countBox.innerText=e.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}constructor(e){super(e),this.selInfo=null,this._currentIndex=0,this.isOpened=!1;const{query:t,replace:n,cancel:r,next:o,prev:i,replaceBtn:s,current:a,count:l}=ZS(this.container);this.queryInput=t,this.replaceInput=n,this.closeButton=r,this.replaceButton=s,this.currentBox=a,this.countBox=l,e.e.on(this.closeButton,"pointerdown",()=>(this.close(),!1)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{e.s.isFocused()&&(e.s.removeMarkers(),this.selInfo=e.s.save())}).on(this.replaceButton,"pointerdown",()=>(e.e.fire(this,"pressReplaceButton"),!1)).on(o,"pointerdown",()=>(e.e.fire("searchNext"),!1)).on(i,"pointerdown",()=>(e.e.fire("searchPrevious"),!1)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!iB(this.queryInput.value).length)}).on(this.queryInput,"keydown",(()=>{const t=this.j.async.debounce(async t=>{t.key===oC?await e.e.fire("searchNext")&&this.close():e.e.fire(this,"needUpdateCounters")},this.j.defaultTimeout);return e=>{e.key===oC&&(e.preventDefault(),e.stopImmediatePropagation()),t(e)}})())}onEditorKeyDown(e){if(!this.isOpened)return;const{j:t}=this;if(t.getRealMode()===vC)switch(e.key){case iC:this.close();break;case hC:this.queryInput.value&&(t.e.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}open(e,t,n=!1){this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",n);const r=null!=e?e:(this.j.s.sel||"").toString();r&&(this.queryInput.value=r),t&&(this.replaceInput.value=t),this.setMod("empty-query",!r.length),this.j.e.fire(this,"needUpdateCounters"),r?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),qB.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(e){if(this.isOpened)if(this.setMod("sticky",e),e){const e=oE(this.j.toolbarContainer);wB(this.container,{top:e.top+e.height,left:e.left+e.width})}else wB(this.container,{top:null,left:null})}};wM([kE([":keydown","queryInput:keydown"])],xM.prototype,"onEditorKeyDown",null),wM([KC],xM.prototype,"open",null),wM([KC],xM.prototype,"close",null),wM([kE(":toggleSticky")],xM.prototype,"calcSticky",null),xM=wM([hS],xM);var kM=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class _M extends SI{constructor(){super(...arguments),this.buttons=[{name:"find",group:"search"}],this.previousQuery="",this.drawPromise=null,this.walker=null,this.walkerCount=null,this.cache={},this.wrapFrameRequest=0}get ui(){return new xM(this.j)}async updateCounters(){this.ui.isOpened&&(this.ui.count=await this.calcCounts(this.ui.query))}onPressReplaceButton(){this.findAndReplace(this.ui.query),this.updateCounters()}tryScrollToElement(e){let t=qB.closest(e,qB.isElement,this.j.editor);t||(t=qB.prev(e,qB.isElement,this.j.editor)),t&&t!==this.j.editor&&Nj(t,this.j.editor,this.j.ed)}async calcCounts(e){return(await this.findQueryBounds(e,"walkerCount")).length}async findQueryBounds(e,t){let n=this[t];return n&&n.break(),n=new MS(this.j.async,{timeout:this.j.o.search.lazyIdleTimeout}),this[t]=n,this.find(n,e).catch(e=>(!T_&&console.error(e),[]))}async findAndReplace(e){const t=await this.findQueryBounds(e,"walker");if(!t.length)return!1;let n=this.findCurrentIndexInRanges(t,this.j.s.range);-1===n&&(n=0);const r=t[n];if(r){try{const t=this.j.ed.createRange();t.setStart(r.startContainer,r.startOffset),t.setEnd(r.endContainer,r.endOffset),t.deleteContents();const o=this.j.createInside.text(this.ui.replace);qB.safeInsertNode(t,o),yM(this.j),this.j.s.setCursorAfter(o),this.tryScrollToElement(o),this.cache={},this.ui.currentIndex=n,await this.findAndSelect(e,!0).catch(e=>(!T_&&console.error(e),null))}finally{this.j.synchronizeValues()}return this.j.e.fire("afterFindAndReplace"),!0}return!1}async findAndSelect(e,t){var n;const r=await this.findQueryBounds(e,"walker");if(!r.length)return!1;this.previousQuery===e&&gM(this.j.editor).length||(null===(n=this.drawPromise)||void 0===n||n.rejectCallback(),this.j.async.cancelAnimationFrame(this.wrapFrameRequest),yM(this.j),this.drawPromise=this.__drawSelectionRanges(r)),this.previousQuery=e;let o=this.ui.currentIndex-1;o=-1===o?0:t?o===r.length-1?0:o+1:0===o?r.length-1:o-1,this.ui.currentIndex=o+1;const i=r[o];if(i){const e=this.j.ed.createRange();try{e.setStart(i.startContainer,i.startOffset),e.setEnd(i.endContainer,i.endOffset),this.j.s.selectRange(e)}catch(e){!T_&&console.error(e)}return this.tryScrollToElement(i.startContainer),await this.updateCounters(),await this.drawPromise,this.j.e.fire("afterFindAndSelect"),!0}return!1}findCurrentIndexInRanges(e,t){return e.findIndex(e=>e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.startContainer&&e.endOffset===t.endOffset)}async isValidCache(e){return(await e).every(e=>{var t,n,r,o;return e.startContainer.isConnected&&e.startOffset<=(null!==(n=null===(t=e.startContainer.nodeValue)||void 0===t?void 0:t.length)&&void 0!==n?n:0)&&e.endContainer.isConnected&&e.endOffset<=(null!==(o=null===(r=e.endContainer.nodeValue)||void 0===r?void 0:r.length)&&void 0!==o?o:0)})}async find(e,t){if(!t.length)return[];const n=this.cache[t];return n&&await this.isValidCache(n)?n:(this.cache[t]=this.j.async.promise(n=>{const r=new bM(this.j.o.search.fuzzySearch);e.on("break",()=>{n([])}).on("visit",e=>(qB.isText(e)&&r.add(e),!1)).on("end",()=>{var e;n(null!==(e=r.ranges(t))&&void 0!==e?e:[])}).setWork(this.j.editor)}),this.cache[t])}__drawSelectionRanges(e){const{async:t,createInside:n,editor:r}=this.j;t.cancelAnimationFrame(this.wrapFrameRequest);const o=[...e];let i,s=0;return t.promise(e=>{const a=()=>{do{i=o.shift(),i&&mM(this.j,i,o,n,r),s+=1}while(i&&s<=5);o.length?this.wrapFrameRequest=t.requestAnimationFrame(a):e()};a()})}onAfterGetValueFromEditor(e){e.value=e.value.replace(RegExp(`<span[^>]+${AM}[^>]+>(.*?)</span>`,"g"),"$1")}afterInit(e){if(e.o.useSearch){const t=this;e.e.on("beforeSetMode.search",()=>{this.ui.close()}).on(this.ui,"afterClose",()=>{yM(e),this.ui.currentIndex=0,this.ui.count=0,this.cache={},e.focus()}).on("click",()=>{this.ui.currentIndex=0,yM(e)}).on("change.search",()=>{this.cache={}}).on("keydown.search mousedown.search",e.async.debounce(()=>{this.ui.selInfo&&(e.s.removeMarkers(),this.ui.selInfo=null),this.ui.isOpened&&this.updateCounters()},e.defaultTimeout)).on("searchNext.search searchPrevious.search",()=>(this.ui.isOpened||this.ui.open(),t.findAndSelect(t.ui.query,"searchNext"===e.e.current).catch(e=>{!T_&&console.error("Search error",e)}))).on("search.search",(e,n=!0)=>(this.ui.currentIndex=0,t.findAndSelect(e||"",n).catch(e=>{!T_&&console.error("Search error",e)}))),e.registerCommand("search",{exec:(e,n,r=!0)=>(n&&t.findAndSelect(n,r).catch(e=>{!T_&&console.error("Search error",e)}),!1)}).registerCommand("openSearchDialog",{exec:(e,n)=>(t.ui.open(n),!1),hotkeys:["ctrl+f","cmd+f"]}).registerCommand("openReplaceDialog",{exec:(n,r,o)=>(e.o.readonly||t.ui.open(r,o,!0),!1),hotkeys:["ctrl+h","cmd+h"]})}}beforeDestruct(e){var t;null===(t=aS(this,"ui"))||void 0===t||t.destruct(),e.e.off(".search")}}kM([lS],_M.prototype,"ui",null),kM([kE("ui:needUpdateCounters")],_M.prototype,"updateCounters",null),kM([kE("ui:pressReplaceButton")],_M.prototype,"onPressReplaceButton",null),kM([KC],_M.prototype,"findQueryBounds",null),kM([KC],_M.prototype,"findAndReplace",null),kM([KC],_M.prototype,"findAndSelect",null),kM([KC],_M.prototype,"find",null),kM([kE(":afterGetValueFromEditor")],_M.prototype,"onAfterGetValueFromEditor",null),RS.add("search",_M),dj.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0};var CM=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class BM extends SI{constructor(){super(...arguments),this.proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"]}afterInit(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)})}beforeDestruct(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)})}onStartSelection(e){const{j:t}=this;let n,r=e.target;for(;void 0===n&&r&&r!==t.editor;)n=t.e.fire(bB(e.type+"_"+r.nodeName.toLowerCase()),r,e),r=r.parentElement;"click"===e.type&&void 0===n&&r===t.editor&&t.e.fire(e.type+"Editor",r,e)}onOutsideClick(e){const t=e.target;qB.up(t,e=>e===this.j.editor)||NE.closestElement(t,gN)||this.j.e.fire("outsideClick",e)}beforeCommandCut(){const{s:e}=this.j;if(!e.isCollapsed()){const t=e.current();t&&qB.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){const{s:e}=this.j;return e.focus(),e.select(this.j.editor,!0),e.expandSelection(),!1}onClickRightOfNestedListItem(e){const{s:t}=this.j,n=t.range;if(!n.collapsed||0!==n.startOffset||!qB.isText(n.startContainer))return;const r=n.startContainer,o=r.parentNode;if(!qB.isTag(o,"li")||!o.querySelector("ul")&&!o.querySelector("ol"))return;const i=this.j.ed.createRange();i.selectNodeContents(r);const s=i.getBoundingClientRect();e.clientX>s.right&&t.setCursorAfter(r)}onClickKeepPendingFormat(){var e,t;const{s:n}=this.j,r=n.range;if(!r.collapsed||!qB.isText(r.startContainer))return;const o=r.startContainer;if(r.startOffset!==(null!==(t=null===(e=o.nodeValue)||void 0===e?void 0:e.length)&&void 0!==t?t:0))return;const i=o.nextSibling;if(!qB.isElement(i)||!i.nodeName.match(Y_)||!qB.isEmpty(i))return;let s=i;for(;qB.isElement(s.firstElementChild)&&s.firstElementChild.nodeName.match(Y_);)s=s.firstElementChild;n.setCursorIn(s)}onTripleClickNormalizeSelection(e){if(3!==e.detail||!this.j.o.select.normalizeTripleClick)return;const{s:t}=this.j,{startContainer:n,startOffset:r}=t.range;0===r&&qB.isText(n)&&t.select(qB.closest(n,qB.isBlock,this.j.editor)||n,!0)}onCopyNormalizeSelectionBound(e){const{s:t,editor:n,o:r}=this.j;r.select.normalizeSelectionBeforeCutAndCopy&&!t.isCollapsed()&&(!e||e.isTrusted&&qB.isNode(e.target)&&qB.isOrContains(n,e.target))&&this.jodit.s.expandSelection()}}CM([KC],BM.prototype,"onStartSelection",null),CM([kE("ow:click")],BM.prototype,"onOutsideClick",null),CM([kE([":beforeCommandCut"])],BM.prototype,"beforeCommandCut",null),CM([kE([":beforeCommandSelectall"])],BM.prototype,"beforeCommandSelectAll",null),CM([kE([":click"])],BM.prototype,"onClickRightOfNestedListItem",null),CM([kE([":click"])],BM.prototype,"onClickKeepPendingFormat",null),CM([kE([":click"])],BM.prototype,"onTripleClickNormalizeSelection",null),CM([kE([":copy",":cut"])],BM.prototype,"onCopyNormalizeSelectionBound",null),RS.add("select",BM),dj.prototype.tableAllowCellSelection=!0;var SM=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};const jM="table_processor_observer",EM="onMoveTableSelectCell";class NM extends SI{constructor(){super(...arguments),this.__selectedCell=null,this.__isSelectionMode=!1}get __tableModule(){return this.j.getInstance(LI,this.j.o)}afterInit(e){e.o.tableAllowCellSelection&&e.e.on("keydown.select-cells",e=>{e.key===rC&&this.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(e=>e+".select-cells").join(" "),this.onStartSelection).on("clickTr clickTbody",()=>{var e;const t=this.__tableModule.getAllSelectedCells().length;if(t)return t>1&&(null===(e=this.j.s.sel)||void 0===e||e.removeAllRanges()),!1})}onStartSelection(e,t){var n;if(this.j.o.readonly)return;const r=qB.closest(e,"table",this.j.editor);return((null==t?void 0:t.ctrlKey)||(null==t?void 0:t.metaKey))&&e!==this.j.editor&&r&&qB.isCell(e)?(this.__tableModule.getAllSelectedCells().includes(e)?this.__tableModule.removeSelection(e):(e.firstChild||e.appendChild(this.j.createInside.element("br")),this.__tableModule.addSelection(e)),this.__selectedCell=e,null===(n=this.j.s.sel)||void 0===n||n.removeAllRanges(),this.__tableModule.getAllSelectedCells().length?this.j.e.fire("showPopup",r,()=>oE(e,this.j),"cells"):this.j.e.fire("hidePopup","cells"),!1):(this.unselectCells(),e!==this.j.editor&&e&&r?(e.firstChild||e.appendChild(this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=e,this.__tableModule.addSelection(e),this.j.e.on(r,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,r),{label:EM,timeout:this.j.defaultTimeout/2})).on(r,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,r)),!1):void 0)}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onChange(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}__onMove(e,t){var n,r;if(this.j.o.readonly&&!this.j.isLocked)return;if(this.j.isLockedNotBy(jM))return;const o=(null!==(n=this.j.o.shadowRoot)&&void 0!==n?n:this.j.ed).elementFromPoint(t.clientX,t.clientY);if(!o)return;const i=qB.closest(o,["td","th"],e);if(!i||!this.__selectedCell)return;i!==this.__selectedCell&&this.j.lock(jM),this.unselectCells();const s=this.__tableModule.getSelectedBound(e,[i,this.__selectedCell]),a=this.__tableModule.formalMatrix(e);for(let e=s[0][0];e<=s[1][0];e+=1)for(let t=s[0][1];t<=s[1][1];t+=1)this.__tableModule.addSelection(a[e][t]);this.__tableModule.getAllSelectedCells().length>1&&(null===(r=this.j.s.sel)||void 0===r||r.removeAllRanges()),this.j.e.fire("hidePopup"),t.stopPropagation(),(()=>{const e=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>');i.appendChild(e),this.j.async.setTimeout(()=>{var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)},this.j.defaultTimeout/5)})()}__onRemoveSelection(e){var t;if(!(null===(t=null==e?void 0:e.buffer)||void 0===t?void 0:t.actionTrigger)&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length)return this.j.unlock(),this.unselectCells(),void this.j.e.fire("hidePopup","cells");this.__isSelectionMode=!1,this.__selectedCell=null}__onStopSelection(e,t){var n,r,o;if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();const i=(null!==(n=this.j.o.shadowRoot)&&void 0!==n?n:this.j.ed).elementFromPoint(t.clientX,t.clientY);if(!i)return;const s=qB.closest(i,["td","th"],e);if(!s)return;const a=qB.closest(s,"table",e);if(a&&a!==e)return;const l=this.__tableModule.getSelectedBound(e,[s,this.__selectedCell]),c=this.__tableModule.formalMatrix(e),u=null===(r=c[l[1][0]])||void 0===r?void 0:r[l[1][1]],d=null===(o=c[l[0][0]])||void 0===o?void 0:o[l[0][1]];d&&u&&(this.j.e.fire("showPopup",e,()=>{const e=oE(d,this.j),t=oE(u,this.j);return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}},"cells"),$S("table",this.j.editor).forEach(e=>{this.j.e.off(e,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),this.j.async.clearTimeout(EM))}unselectCells(e){const t=this.__tableModule,n=t.getAllSelectedCells();n.length&&n.forEach(n=>{e&&e===n||t.removeSelection(n)})}onExecCommand(e){if(/^(delete|backspace)(word|sentence)?button$/.test(e)&&this.__tableModule.getAllSelectedCells().length>1){const e=this.__tableModule.getAllSelectedCells();return e.forEach(e=>{qB.detach(e),e.appendChild(this.j.createInside.element("br"))}),this.unselectCells(),this.j.s.setCursorIn(e[0]),this.j.synchronizeValues(),!1}if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(e)){e=e.replace("table","");const t=this.__tableModule.getAllSelectedCells();if(t.length){const[n]=t;if(!n)return;const r=qB.closest(n,"table",this.j.editor);if(!r)return;switch(e){case"splitv":this.__tableModule.splitVertical(r);break;case"splitg":this.__tableModule.splitHorizontal(r);break;case"merge":this.__tableModule.mergeSelected(r);break;case"empty":t.forEach(e=>qB.detach(e));break;case"bin":qB.safeRemove(r);break;case"binrow":new Set(t.map(e=>e.parentNode)).forEach(e=>{this.__tableModule.removeRow(r,e.rowIndex)});break;case"bincolumn":{const e=new Set,n=[];t.forEach(t=>{const[,o]=this.__tableModule.formalCoordinate(r,t);e.has(o)||(n.push(o),e.add(o))}),n.sort((e,t)=>t-e).forEach(e=>{this.__tableModule.removeColumn(r,e)})}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(r,n,"addcolumnafter"===e);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(r,n.parentNode,"addrowafter"===e)}}return!1}}onAfterCommand(e){/^justify/.test(e)&&this.__tableModule.getAllSelectedCells().forEach(t=>aj(e,t))}beforeDestruct(e){this.__onRemoveSelection(),e.e.off(".select-cells")}}NM.requires=["select"],SM([KC],NM.prototype,"onStartSelection",null),SM([kE(":outsideClick")],NM.prototype,"onOutsideClick",null),SM([kE(":change")],NM.prototype,"onChange",null),SM([KC],NM.prototype,"__onRemoveSelection",null),SM([KC],NM.prototype,"__onStopSelection",null),SM([KC],NM.prototype,"onExecCommand",null),SM([KC],NM.prototype,"onAfterCommand",null),RS.add("selectCells",NM),dj.prototype.beautifyHTML=!xC,dj.prototype.sourceEditor="ace",dj.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},dj.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.43.3/ace.js"],dj.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],jE.set("source",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M553 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"/> </svg> '),dj.prototype.controls.source={mode:wC,exec:e=>{e.toggleMode()},isActive:e=>e.getRealMode()===bC,tooltip:"Change mode"};class IM{constructor(e,t,n,r){this.jodit=e,this.container=t,this.toWYSIWYG=n,this.fromWYSIWYG=r,this.className="",this.isReady=!1}get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(e){var t;this.isReady?e():null===(t=this.j.events)||void 0===t||t.on(this,"ready",e)}}class FM extends IM{constructor(){super(...arguments),this.className="jodit_ace_editor",this.proxyOnBlur=e=>{this.j.e.fire("blur",e)},this.proxyOnFocus=e=>{this.j.e.fire("focus",e)},this.proxyOnMouseDown=e=>{this.j.e.fire("mousedown",e)}}aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(e){return this.instance.session.getLine(e).length}getLastColumnIndices(){const e=this.instance.session.getLength(),t=[];let n=0;for(let r=0;r<e;r++)n+=this.getLastColumnIndex(r),r>0&&(n+=1),t[r]=n;return t}getRowColumnIndices(e){const t=this.getLastColumnIndices();if(e<=t[0])return{row:0,column:e};let n=1;for(let r=1;r<t.length;r++)e>t[r]&&(n=r+1);return{row:n,column:e-t[n-1]-1}}setSelectionRangeIndices(e,t){const n=this.getRowColumnIndices(e),r=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:n,end:r})}getIndexByRowColumn(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t}init(e){const t=()=>{if(void 0!==this.instance||!this.aceExists())return;const t=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(t);const n=e.ow.ace;this.instance=n.edit(t),"rtl"===e.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setOptions(e.o.sourceEditorNativeOptions),this.instance.setTheme(e.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),e.getRealMode()!==vC&&this.setValue(this.getValue());const r=this.j.async.throttle(()=>{if(e.isInDestruct||e.getMode()===vC)return;const t=this.instance.isFocused();"auto"!==e.o.height?this.instance.setOption("maxLines",e.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),t&&this.focus()},2*this.j.defaultTimeout);e.e.on(e,"resize",r).on("afterResize afterSetMode",r),r(),this.onReady()},n=()=>{e.isInDestruct||e.getRealMode()!==bC&&e.getMode()!==wC||(this.fromWYSIWYG(),t())};e.e.on("afterSetMode",n),n(),this.aceExists()||ES(e,e.o.sourceEditorCDNUrlsJS).then(n).catch(()=>null)}destruct(){var e,t;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null===(t=null===(e=this.j)||void 0===e?void 0:e.events)||void 0===t||t.off("aceInited.source")}setValue(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){const t=this.j.e.fire("beautifyHTML",e);YC(t)&&(e=t)}this.instance.setValue(e),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(e){this.instance.setReadOnly(e)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){const e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}getSelectionEnd(){const e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(e){const t=this.instance.selection.getCursor(),n=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:n},!1)}setSelectionRange(e,t){this.setSelectionRangeIndices(e,t)}setPlaceHolder(e){}replaceUndoManager(){const{history:e}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:()=>{e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:()=>{e.redo()}})}}class TM extends IM{constructor(){super(...arguments),this.autosize=this.j.async.debounce(()=>{this.instance.style.height="auto",this.instance.style.height=this.instance.scrollHeight+"px"},this.j.defaultTimeout,!0)}init(e){this.instance=e.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===e.o.direction?"rtl":void 0}),this.container.appendChild(this.instance),e.e.on(this.instance,"mousedown keydown touchstart input",e.async.debounce(this.toWYSIWYG,e.defaultTimeout)).on("setMinHeight.source",e=>{wB(this.instance,"minHeight",e)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus blur",t=>{e.e.fire(t.type,t)}),this.autosize(),this.onReady()}destruct(){qB.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(e){this.instance.value=e}insertRaw(e){const t=this.getValue();if(this.getSelectionStart()>=0){const n=this.getSelectionStart(),r=this.getSelectionEnd();this.setValue(t.substring(0,n)+e+t.substring(r,t.length))}else this.setValue(t+e)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(e,t=e){this.instance.setSelectionRange(e,t)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(e){kB(this.instance,"placeholder",e)}setReadOnly(e){kB(this.instance,"readonly",e?"true":null)}selectAll(){this.instance.select()}replaceUndoManager(){const{history:e}=this.jodit;this.j.e.on(this.instance,"keydown",t=>{if((t.ctrlKey||t.metaKey)&&"z"===t.key)return t.shiftKey?e.redo():e.undo(),this.setSelectionRange(this.getValue().length),!1})}}function LM(e,t,n,r,o){let i;if(VC(e))i=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){i=new FM(t,n,r,o);break}default:i=new TM(t,n,r,o)}return i.init(t),i.onReadyAlways(()=>{i.setReadOnly(t.o.readonly)}),i}var PM=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class MM extends SI{constructor(){super(...arguments),this.buttons=[{name:"source",group:"source"}],this.__lock=!1,this.__oldMirrorValue="",this.tempMarkerStart="{start-jodit-selection}",this.tempMarkerStartReg=/{start-jodit-selection}/g,this.tempMarkerEnd="{end-jodit-selection}",this.tempMarkerEndReg=/{end-jodit-selection}/g,this.getSelectionStart=()=>{var e,t;return null!==(t=null===(e=this.sourceEditor)||void 0===e?void 0:e.getSelectionStart())&&void 0!==t?t:0},this.getSelectionEnd=()=>{var e,t;return null!==(t=null===(e=this.sourceEditor)||void 0===e?void 0:e.getSelectionEnd())&&void 0!==t?t:0}}onInsertHTML(e){var t;if(!this.j.o.readonly&&!this.j.isEditorMode())return null===(t=this.sourceEditor)||void 0===t||t.insertRaw(e),this.toWYSIWYG(),!1}fromWYSIWYG(e=!1){if(!this.__lock||!0===e){this.__lock=!0;const e=this.j.getEditorValue(!1,HC);e!==this.getMirrorValue()&&this.setMirrorValue(e),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;const e=this.getMirrorValue();e!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=e,this.__lock=!1,this.__oldMirrorValue=e)}getNormalPosition(e,t){for(t=t.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,e=>{let t="";for(let n=0;n<e.length;n+=1)t+=U_;return t});e>0&&t[e]===U_;)e--;let n=e;for(;n>0;){if(n--,"<"===t[n]&&void 0!==t[n+1]&&t[n+1].match(/[\w/]+/i))return n;if(">"===t[n])return e}return e}clnInv(e){return e.replace(z_(),"")}onSelectAll(e){var t;if("selectall"===e.toLowerCase()&&this.j.getRealMode()===bC)return null===(t=this.sourceEditor)||void 0===t||t.selectAll(),!1}getMirrorValue(){var e;return(null===(e=this.sourceEditor)||void 0===e?void 0:e.getValue())||""}setMirrorValue(e){var t;null===(t=this.sourceEditor)||void 0===t||t.setValue(e)}setFocusToMirror(){var e;const t=this.j.od.activeElement;t&&t!==this.j.od.body&&!this.j.container.contains(t)||null===(e=this.sourceEditor)||void 0===e||e.focus()}saveSelection(){if(this.j.getRealMode()===vC)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;const e=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){const t=this.j.s.marker(!0),n=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(e.substring(0,n)+this.clnInv(t.outerHTML)+e.substring(n))}else{const t=this.j.s.marker(!0),n=this.j.s.marker(!1),r=this.getNormalPosition(this.getSelectionStart(),e),o=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.slice(0,r)+this.clnInv(t.outerHTML)+e.slice(r,o)+this.clnInv(n.outerHTML)+e.slice(o))}this.toWYSIWYG()}}removeSelection(){if(this.j.getRealMode()===vC)return this.__lock=!0,this.j.s.restore(),void(this.__lock=!1);let e=this.getMirrorValue(),t=0,n=0;try{if(e=e.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){const t=this.j.e.fire("beautifyHTML",e);YC(t)&&(e=t)}if(t=e.indexOf(this.tempMarkerStart),n=t,e=e.replace(this.tempMarkerStartReg,""),-1!==t){const t=e.indexOf(this.tempMarkerEnd);-1!==t&&(n=t)}e=e.replace(this.tempMarkerEndReg,"")}finally{e=e.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(e),this.setMirrorSelectionRange(t,n),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(e,t){var n;null===(n=this.sourceEditor)||void 0===n||n.setSelectionRange(e,t)}onReadonlyReact(){var e;null===(e=this.sourceEditor)||void 0===e||e.setReadOnly(this.j.o.readonly)}afterInit(e){if(this.mirrorContainer=e.c.div("jodit-source"),e.workplace.appendChild(this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",()=>{e.workplace.appendChild(this.mirrorContainer)}),this.sourceEditor=LM("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),e.e.on(e.ow,"keydown",e=>{var t;e.key===iC&&(null===(t=this.sourceEditor)||void 0===t?void 0:t.isFocused)&&this.sourceEditor.blur()}),this.onReadonlyReact(),e.e.on("placeholder.source",e=>{var t;null===(t=this.sourceEditor)||void 0===t||t.setPlaceHolder(e)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",e=>e),e.o.beautifyHTML){const t=()=>{var t;if(e.isInDestruct)return!1;const n=e.ow.html_beautify;return!(!n||e.isInDestruct||(null===(t=e.events)||void 0===t||t.off("beautifyHTML").on("beautifyHTML",e=>n(e)),0))};t()||ES(e,e.o.beautifyHTMLCDNUrlsJS).then(t,()=>null)}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(e)}syncValueFromWYSIWYG(e=!1){const t=this.j;t.getMode()!==wC&&t.getMode()!==bC||this.fromWYSIWYG(e)}initSourceEditor(e){var t;if("area"!==e.o.sourceEditor){const t=LM(e.o.sourceEditor,e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);t.onReadyAlways(()=>{var n,r;null===(n=this.sourceEditor)||void 0===n||n.destruct(),this.sourceEditor=t,this.syncValueFromWYSIWYG(!0),null===(r=e.events)||void 0===r||r.fire("sourceEditorReady",e)})}else null===(t=this.sourceEditor)||void 0===t||t.onReadyAlways(()=>{var t;this.syncValueFromWYSIWYG(!0),null===(t=e.events)||void 0===t||t.fire("sourceEditorReady",e)})}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),qB.safeRemove(this.mirrorContainer)}}PM([kE(":insertHTML.source")],MM.prototype,"onInsertHTML",null),PM([KC],MM.prototype,"fromWYSIWYG",null),PM([KC],MM.prototype,"toWYSIWYG",null),PM([KC],MM.prototype,"getNormalPosition",null),PM([kE(":beforeCommand.source")],MM.prototype,"onSelectAll",null),PM([kE(":beforeSetMode.source")],MM.prototype,"saveSelection",null),PM([kE(":afterSetMode.source")],MM.prototype,"removeSelection",null),PM([KC],MM.prototype,"setMirrorSelectionRange",null),PM([kE(":readonly.source")],MM.prototype,"onReadonlyReact",null),PM([KC],MM.prototype,"syncValueFromWYSIWYG",null),RS.add("source",MM);const OM='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg> ';dj.prototype.spellcheck=!1,jE.set("spellcheck",OM),dj.prototype.controls.spellcheck={isActive:e=>e.o.spellcheck,icon:OM,name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"};const DM={Spellcheck:"التدقيق الإملائي"},UM={Spellcheck:"Kontrola pravopisu"},RM={Spellcheck:"Rechtschreibprüfung"},zM={Spellcheck:"Corrección ortográfica"},QM={Spellcheck:"غلطیابی املایی"},HM={Spellcheck:"Oikeinkirjoituksen tarkistus"},qM={Spellcheck:"Vérification Orthographique"},VM={Spellcheck:"בדיקת איות"},KM={Spellcheck:"Helyesírás-ellenőrzés"},WM={Spellcheck:"Spellchecking"},GM={Spellcheck:"Controllo ortografico"},$M={Spellcheck:"スペルチェック"},YM={Spellcheck:"맞춤법 검사"},ZM={Spellcheck:"Дүрмийн алдаа шалгах"},XM={Spellcheck:"Spellingcontrole"},JM={Spellcheck:"Stavekontroll"},eO={Spellcheck:"Sprawdzanie pisowni"},tO={Spellcheck:"Verificação ortográfica"},nO={Spellcheck:"Проверка орфографии"},rO={Spellcheck:"Kontrola pravopisu"},oO={Spellcheck:"Yazım denetimi"},iO={Spellcheck:"Перевірка орфографії"},sO={Spellcheck:"拼写检查"},aO={Spellcheck:"拼字檢查"};class lO extends SI{constructor(e){super(e),this.buttons=[{group:"state",name:"spellcheck"}],QS(ae)}afterInit(e){e.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),e.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){kB(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(e){}}(function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)})([KC],lO.prototype,"toggleSpellcheck",null),RS.add("spellcheck",lO),dj.prototype.toolbarSticky=!0,dj.prototype.toolbarDisableStickyForMobile=!0,dj.prototype.toolbarStickyOffset=0;const cO=!F_&&xC;class uO extends SI{constructor(){super(...arguments),this.__isToolbarStuck=!1,this.__createDummy=e=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),this.j.container.insertBefore(this.__dummyBox,e)},this.addSticky=e=>{this.__isToolbarStuck||(cO&&!this.__dummyBox&&this.__createDummy(e),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),wB(e,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&wB(this.__dummyBox,{height:e.offsetHeight})},this.removeSticky=e=>{this.__isToolbarStuck&&(wB(e,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)}}afterInit(e){e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",()=>this.__isToolbarStuck)}__onScroll(){const{jodit:e}=this;if(!e.o.toolbarSticky||!e.o.toolbar)return;const t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,n=rE(e.container,e,e.od,!0),r=e.getMode()===vC&&t+e.o.toolbarStickyOffset>n.top&&t+e.o.toolbarStickyOffset<n.top+n.height&&!(e.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===r)return;const o=e.toolbarContainer;o&&(r?this.addSticky(o):this.removeSticky(o)),e.e.fire("toggleSticky",r)}__isMobile(){const{j:e}=this;return e&&e.options&&e.container&&e.options.sizeSM>=e.container.offsetWidth}beforeDestruct(e){qB.safeRemove(this.__dummyBox),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}}(function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)})([hE()],uO.prototype,"__onScroll",null),RS.add("sticky",uO),dj.prototype.usePopupForSpecialCharacters=!1,dj.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],jE.set("symbols",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg> '),dj.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:(e,t,n)=>{const r=e.e.fire("generateSpecialCharactersTable.symbols");if(r){if(e.o.usePopupForSpecialCharacters){const t=e.c.div();return t.classList.add("jodit-symbols"),t.appendChild(r),e.e.on(r,"close_dialog",n),t}e.alert(r,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);const t=r.querySelector("a");t&&t.focus()}}};const dO={symbols:"رمز"},AO={symbols:"symbol"},hO={symbols:"Symbol"},pO={symbols:"Símbolo"},fO={symbols:"سمبل"},mO={symbols:"Symbolit"},gO={symbols:"caractère"},yO={symbols:"תו מיוחד"},vO={symbols:"Szimbólum"},bO={symbols:"simbol"},wO={symbols:"Simbolo"},xO={symbols:"symbol"},kO={symbols:"기호"},_O={symbols:"тэмдэгт"},CO={symbols:"symbool"},BO={symbols:"symbol"},SO={symbols:"Símbolo"},jO={symbols:"символ"},EO={symbols:"Sembol"},NO={symbols:"символ"},IO={symbols:"符号"},FO={symbols:"符號"};RS.add("symbols",class extends SI{constructor(e){super(e),this.buttons=[{name:"symbols",group:"insert"}],this.__countInRow=17,QS(Ne)}afterInit(e){e.e.on("generateSpecialCharactersTable.symbols",()=>{const t=e.c.fromHTML('<div class="jodit-symbols__container">\n\t\t\t\t\t\t<div class="jodit-symbols__container_table">\n\t\t\t\t\t\t\t<table class="jodit-symbols__table"><tbody></tbody></table>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="jodit-symbols__container_preview">\n\t\t\t\t\t\t\t<div class="jodit-symbols__preview"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>'),n=t.querySelector(".jodit-symbols__preview"),r=t.querySelector("table").tBodies[0],o=[];for(let t=0;t<e.o.specialCharacters.length;){const n=e.c.element("tr");for(let r=0;r<this.__countInRow&&t<e.o.specialCharacters.length;r+=1,t+=1){const i=e.c.element("td"),s=e.c.fromHTML(`<a\n\t\t\t\t\t\t\t\t\tdata-index="${t}"\n\t\t\t\t\t\t\t\t\tdata-index-j="${r}"\n\t\t\t\t\t\t\t\t\trole="option"\n\t\t\t\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\t\t>${e.o.specialCharacters[t]}</a>`);o.push(s),i.appendChild(s),n.appendChild(i)}r.appendChild(n)}const i=this;return e.e.on(o,"focus",function(){n.innerHTML=this.innerHTML}).on(o,"mousedown",function(t){qB.isTag(this,"a")&&(e.s.focus(),e.s.insertHTML(this.innerHTML),(null==t?void 0:t.shiftKey)||e.e.fire(this,"close_dialog"),t&&t.preventDefault(),t&&t.stopImmediatePropagation())}).on(o,"mouseenter",function(){qB.isTag(this,"a")&&this.focus()}).on(o,"keydown",t=>{const n=t.target;if(qB.isTag(n,"a")){const r=parseInt(kB(n,"-index")||"0",10),s=parseInt(kB(n,"data-index-j")||"0",10);let a;switch(t.key){case lC:case uC:a=t.key===lC?r-i.__countInRow:r+i.__countInRow,void 0===o[a]&&(a=t.key===lC?Math.floor(o.length/i.__countInRow)*i.__countInRow+s:s,a>o.length-1&&(a-=i.__countInRow)),o[a]&&o[a].focus();break;case cC:case aC:a=t.key===aC?r-1:r+1,void 0===o[a]&&(a=t.key===aC?o.length-1:0),o[a]&&o[a].focus();break;case oC:e.e.fire(n,"mousedown"),t.stopImmediatePropagation(),t.preventDefault()}}}),t})}beforeDestruct(e){e.e.off("generateSpecialCharactersTable.symbols")}}),dj.prototype.aiAssistant={aiCommonPrefixPrompt:"",aiCommonSuffixPrompt:"",aiImproveWritingPrompt:"It needs to be refined for better clarity, coherence, and overall quality. Please enhance the writing style while keeping the original meaning and language intact.",aiMakeShorterPrompt:"Please condense this content to make it more concise, while preserving the key messages, language and information.",aiMakeLongerPrompt:"Expand on this content to provide more detail, depth, and richness, without diverging from the original message and language.",aiSimplifyLanguagePrompt:"The language used here needs to be simplified for easier understanding, without altering the core information and the original language.",aiSummarizePrompt:"Provide a brief summary of this content, capturing the essential points in a concise manner. Preserve the original language and meaning.",aiContinuePrompt:"Continue the narrative or discussion from this content seamlessly, maintaining the same language, tone and style.",aiChangeToneProfessionalPrompt:"Adjust the tone to be professional, suitable for a formal business or academic setting, while retaining the original message and language.",aiChangeToneFriendlyPrompt:"It needs to be rewritten in a friendly tone while maintaining the original message and language. Please modify this content to be warm, approachable, and engaging.",aiChangeToneFormalPrompt:"Transform this content to have a formal tone, appropriate for official or serious contexts, without changing the main points and language.",aiChangeToneCasualPrompt:"Revise this content to have a casual, relaxed tone, making it feel more personal and less formal, without changing the original meaning and language.",aiChangeToneDirectPrompt:"Make the tone more direct, with straightforward language and a clear, assertive approach, without changing the original meaning and language.",aiChangeToneConfidentPrompt:"Infuse this content with a confident tone, showcasing assurance and decisiveness, without changing the original meaning and language.",aiChangeStyleBusinessPrompt:"Rewrite this content with a business-oriented style, focusing on clarity, efficiency, and professionalism, without changing the original meaning and language.",aiChangeStyleLegalPrompt:"Adapt this content to a legal style, incorporating appropriate terminology and formality typical of legal documents, without changing the original meaning and language.",aiChangeStyleJournalismPrompt:"Convert this content into a journalistic style, emphasizing factual accuracy, objectivity, and informative reporting, without changing the original meaning and language.",aiChangeStylePoeticPrompt:"Recreate this content with a poetic style, using expressive language, rhythm, and imagery to convey the message, without changing the original meaning and language.",aiTranslateToSpanishPrompt:"Translate this content into Spanish, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToFrenchPrompt:"Translate this content into French, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToGermanPrompt:"Translate this content into German, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToItalianPrompt:"Translate this content into Italian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToPortuguesePrompt:"Translate this content into Portuguese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToEnglishPrompt:"Translate this content into English, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToChinesePrompt:"Translate this content into Chinese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToJapanesePrompt:"Translate this content into Japanese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToKoreanPrompt:"Translate this content into Korean, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToRussianPrompt:"Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToArabicPrompt:"Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning."},jE.set("ai-assistant",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="scale(1.2 1.2) translate(-2 -0.5)"> <path d="M 22,12.5 A 1.49995,1.49995 0 0 0 20.50006,11 H 20 V 10 A 3,3 0 0 0 17,7 H 13 V 5.7226 a 2,2 0 1 0 -2,0 V 7 H 7 a 3,3 0 0 0 -3,3 v 1 H 3.49994 a 1.5,1.5 0 0 0 0,3 H 4 v 1 A 3.00128,3.00128 0 0 0 6.20251,17.89282 1.03113,1.03113 0 0 1 7,18.86975 v 0.716 a 0.99928,0.99928 0 0 0 1.00726,1.002 0.9792,0.9792 0 0 0 0.69983,-0.29486 l 2,-2 A 1,1 0 0 1 11.41425,18 H 17 a 3,3 0 0 0 3,-3 v -1 h 0.50006 A 1.49995,1.49995 0 0 0 22,12.5 Z M 19,15 a 2.00226,2.00226 0 0 1 -2,2 H 11.41425 A 1.987,1.987 0 0 0 10,17.58575 l -2,2 v -0.716 A 2.02082,2.02082 0 0 0 6.46771,16.92865 2.00439,2.00439 0 0 1 5,15 V 10 A 2.00226,2.00226 0 0 1 7,8 h 10 a 2.00222,2.00222 0 0 1 2,2 z M 10,12.5 A 1.5,1.5 0 1 1 8.5,11 1.5,1.5 0 0 1 10,12.5 Z m 7,0 A 1.5,1.5 0 1 1 15.5,11 1.5,1.5 0 0 1 17,12.5 Z"/> </g> </svg> '),jE.set("ai-commands",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="M 255.9537,58.150081 237.69527,40.997278 c -1.49414,-1.375593 -3.43653,-2.077427 -5.37891,-2.077427 -1.94239,0 -3.88478,0.701834 -5.37892,2.077427 L 29.919751,226.1128 c -2.988286,2.77926 -2.988286,7.32714 0,10.13447 L 48.148295,253.372 c 1.46426,1.37559 3.406646,2.1055 5.378915,2.1055 1.972268,0 3.884771,-0.72991 5.378914,-2.1055 L 221.34935,100.73732 255.9537,68.284552 c 2.9584,-2.807333 2.9584,-7.355212 0,-10.134471 z M 251.17244,63.79282 221.34935,91.781927 201.89561,73.506191 231.68882,45.48901 c 0.20918,-0.140367 0.38847,-0.224587 0.62754,-0.224587 0.23906,0 0.44824,0.08422 0.59765,0.224587 l 18.25843,17.152803 c 0,0 0.23906,0.33688 0.23906,0.561467 0,0.224586 -0.0896,0.4211 -0.23906,0.58954 z" style="stroke-width:2.8964;stroke-opacity:1" /> <path d="m 48.626421,116.87948 10.578532,23.10435 c 0.83672,1.82477 3.615826,1.85284 4.452546,0 l 10.937126,-23.52545 c 2.629692,-5.69888 7.470715,-10.24676 13.536935,-12.71722 l 25.07172,-10.274833 c 1.94239,-0.786053 1.94239,-3.396873 0,-4.182926 L 88.13156,79.008563 C 82.06534,76.53811 77.224317,71.990231 74.594625,66.291346 L 63.657499,42.737824 c -0.83672,-1.824766 -3.615826,-1.824766 -4.452546,0 L 48.267826,66.291346 C 45.638135,71.990231 40.797112,76.53811 34.730891,79.008563 L 9.6292894,89.311474 c -1.9423859,0.786054 -1.9423859,3.3688 0,4.182926 l 25.5498446,10.61172 c 6.036338,2.49852 10.847478,7.07448 13.477169,12.77336 z" style="stroke-width:2.8964;fill-opacity:1;stroke-opacity:1" /> <path d="m 111.79878,33.136746 13.56682,5.642739 c 3.19747,1.319446 5.76739,3.761826 7.14201,6.793745 l 5.61797,12.268044 c 0.44825,0.982567 1.91251,0.982567 2.36075,0 l 5.79727,-12.492631 c 1.4045,-3.031919 3.97442,-5.446225 7.20177,-6.765672 l 13.29788,-5.446225 c 1.0459,-0.4211 1.0459,-1.796693 0,-2.217793 l -13.29788,-5.446225 c -3.22735,-1.319447 -5.79727,-3.733753 -7.20177,-6.765672 L 140.48633,6.2144248 c -0.44824,-0.9825664 -1.9125,-0.9825664 -2.36075,0 l -5.79727,12.4926312 c -1.4045,3.031919 -3.97442,5.446225 -7.20177,6.765672 l -13.32776,5.474298 c -1.01601,0.4211 -1.0459,1.796693 0,2.217793 z" style="stroke-width:2.8964;fill-opacity:1" /> <path d="m 233.09331,192.98627 -14.13459,-5.7831 c -3.40665,-1.40367 -6.12599,-3.95834 -7.62013,-7.1587 l -6.15587,-13.27868 c -0.47813,-1.03872 -2.03203,-1.03872 -2.51016,0 l -6.15587,13.27868 c -1.49414,3.20036 -4.21348,5.75503 -7.62013,7.1587 l -14.13459,5.81118 c -1.10567,0.44917 -1.10567,1.90898 0,2.35816 l 14.40354,5.97961 c 3.40664,1.40367 6.12598,3.98642 7.59024,7.21485 l 5.97658,13.02602 c 0.47812,1.03872 2.03203,1.03872 2.51016,0 l 6.15586,-13.25061 c 1.49415,-3.20036 4.21349,-5.75503 7.62013,-7.1587 l 14.1346,-5.7831 c 1.10566,-0.44917 1.10566,-1.90899 0,-2.35816 z" style="stroke-width:2.8964;stroke-opacity:1" /> </svg> '),dj.prototype.controls["ai-commands"]={isDisabled:e=>!e.o.aiAssistant.aiAssistantCallback,tooltip:"AI Commands",list:{aiImproveWritingPrompt:"Improve writing",aiMakeShorterPrompt:"Make shorter",aiMakeLongerPrompt:"Make longer",aiSimplifyLanguagePrompt:"Simplify language",aiSummarizePrompt:"Summarize",aiContinuePrompt:"Continue",aiChangeToneProfessionalPrompt:"Change tone to professional",aiChangeToneFriendlyPrompt:"Change tone to friendly",aiChangeToneFormalPrompt:"Change tone to formal",aiChangeToneCasualPrompt:"Change tone to casual",aiChangeToneDirectPrompt:"Change tone to direct",aiChangeToneConfidentPrompt:"Change tone to confident",aiChangeStyleBusinessPrompt:"Change style to business",aiChangeStyleLegalPrompt:"Change style to legal",aiChangeStyleJournalismPrompt:"Change style of journalism",aiChangeStylePoeticPrompt:"Change style to poetic",aiTranslateToSpanishPrompt:"Translate to Spanish",aiTranslateToFrenchPrompt:"Translate to French",aiTranslateToGermanPrompt:"Translate to German",aiTranslateToItalianPrompt:"Translate to Italian",aiTranslateToPortuguesePrompt:"Translate to Portuguese",aiTranslateToEnglishPrompt:"Translate to English",aiTranslateToChinesePrompt:"Translate to Chinese",aiTranslateToJapanesePrompt:"Translate to Japanese",aiTranslateToKoreanPrompt:"Translate to Korean",aiTranslateToRussianPrompt:"Translate to Russian",aiTranslateToArabicPrompt:"Translate to Arabic"},exec:(e,t,{control:n})=>{e.e.fire("generateAiAssistantForm.ai-assistant",n.name)}},dj.prototype.controls["ai-assistant"]={isDisabled:e=>!e.o.aiAssistant.aiAssistantCallback,hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec:(e,t,n)=>{e.e.fire("generateAiAssistantForm.ai-assistant")}};var TO=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};let LO=class extends NE{className(){return"UIAiAssistant"}constructor(e,{onInsert:t,onInsertAfter:n}){super(e),this.__aiResult="",this.__error=this.getElm("error"),this.__body=this.getElm("body"),this.__buttons=this.getElm("buttons"),this.__results=this.getElm("results"),this.__spinner=this.getElm("spinner"),this.__insertButton=LE(e,"","Insert","primary").onAction(()=>t(this.__aiResult)),this.__insertAfterButton=LE(e,"","Insert After","initial").onAction(()=>n(this.__aiResult));const r=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=LE(e,"ai-assistant","").onAction(r),this.__tryAgainButton=LE(e,"update","","initial").onAction(r),this.promptInput=new nN(e,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});const o=new qE(e,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new JE(e,[new qE(e,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(t=>{this.__error.textContent="",this.setMod("loading",!0),e.e.fire("invokeAiAssistant",t.prompt);const n=this.getFullElName("","hide","true");this.__results.classList.remove(n),this.__buttons.classList.remove(n),qB.detach(this.__results),this.__results.appendChild(this.__spinner),this.__insertButton.focus()}),this.__buttons.appendChild(o.container),this.__body.appendChild(this.__formAiAssistant.container),this.onChangePromptValue()}render(){return'<div>\n\t\t\t\t<div class="&__container">\n\t\t\t\t\t\t<div class="&__error"></div>\n\t\t\t\t\t\t<div class="&__body"></div>\n\t\t\t\t\t\t<div class="&__buttons &_hide_true"></div>\n\t\t\t\t\t\t<div class="&__results &_hide_true">\n\t\t\t\t\t\t\t\t<div class="&__spinner"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t</div>'}setPrompt(e){if(e){const{jodit:t}=this,n=t.o.aiAssistant[e],{aiCommonPrefixPrompt:r,aiCommonSuffixPrompt:o}=t.o.aiAssistant;this.promptInput.value=[r,YC(n)?n:"",o].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(e){this.setMod("loading",!1),qB.detach(this.__results),this.__aiResult=e,this.__results.appendChild(this.jodit.c.fromHTML(e)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(e){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=e,qB.detach(this.__results),this.__toggleSubmitButton(!1);const t=this.getFullElName("","hide","true");this.__results.classList.add(t),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(e){this.__submitButton.state.disabled=e,this.__tryAgainButton.state.disabled=e}__toggleInsertButton(e){this.__insertButton.state.disabled=e,this.__insertAfterButton.state.disabled=e}};TO([kE(":ai-assistant-response")],LO.prototype,"onAiAssistentResponse",null),TO([kE(":ai-assistant-error")],LO.prototype,"onAiAssistentError",null),TO([kE("promptInput:change")],LO.prototype,"onChangePromptValue",null),LO=TO([hS],LO);const PO={aiAssistant:"AI Assistant",aiCommands:"AI Commands","AI Assistant":"AI Assistant",Prompt:"Prompt","Ask AI to improve generated text":"Ask AI to improve generated text",Submit:"Submit"},MO={aiAssistant:"Asistente de IA",aiCommands:"Comandos de IA","AI Assistant":"Asistente de IA","AI Commands":"Comandos de IA","Improve writing":"Mejorar escritura","Make shorter":"Hacer más corto","Make longer":"Hacer más largo","Simplify language":"Simplificar lenguaje",Summarize:"Resumir",Continue:"Continuar",Prompt:"Solicitud",Insert:"Insertar","Insert After":"Insertar después","Try Again":"Intentar de nuevo","Ask AI to improve generated text":"Pida a la IA que mejore el texto generado","Change tone to professional":"Cambiar tono a profesional","Change tone to friendly":"Cambiar tono a amigable","Change tone to formal":"Cambiar tono a formal","Change tone to casual":"Cambiar tono a casual","Change tone to direct":"Cambiar tono a directo","Change tone to confident":"Cambiar tono a confiado","Change tone to business":"Cambiar tono a empresarial","Change style to legal":"Cambiar estilo a legal","Change style to journalism":"Cambiar estilo a periodístico","Change style to poetic":"Cambiar estilo a poético","Translate to Spanish":"Traducir al español","Translate to French":"Traducir al francés","Translate to German":"Traducir al alemán","Translate to Italian":"Traducir al italiano","Translate to Portuguese":"Traducir al portugués","Translate to English":"Traducir al inglés","Translate to Chinese":"Traducir al chino","Translate to Japanese":"Traducid al japonés","Translate to Korean":"Traducir al coreano","Translate to Russian":"Traducir al ruso","Translate to Arabic":"Traducir al árabe",Submit:"Enviar"};var OO=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class DO extends SI{get __dialog(){return this.jodit.dlg({buttons:["fullsize","dialog.close"],closeOnClickOverlay:!0,closeOnEsc:!0,resizable:!1,draggable:!0,minHeight:160})}get __container(){const{jodit:e,__dialog:t}=this;return new LO(e,{onInsertAfter(n){e.s.focus();const r=e.s.range;r.collapse(!1),e.s.selectRange(r),e.s.insertHTML(n),t.close()},onInsert(n){e.s.focus(),e.s.insertHTML(n),t.close()}})}constructor(e){super(e),this.buttons=[{name:"ai-commands",group:"insert"},{name:"ai-assistant",group:"insert"}],QS(Te)}afterInit(){}onGenerateAiAssistantForm(e){this.__dialog.open(this.__container,"AI Assistant"),this.__container.setPrompt(e)}onInvokeAiAssistant(e){const{jodit:t}=this;t.s.focus();const n=t.s.html;t.async.promise(async(r,o)=>{try{r(await t.o.aiAssistant.aiAssistantCallback(e,n))}catch(e){o(e)}}).then(e=>{t.e.fire("ai-assistant-response",e)}).catch(e=>{KB(e)||(t.message.error(e.message),t.e.fire("ai-assistant-error",e.message))})}beforeDestruct(e){var t,n;null===(t=aS(this,"__container"))||void 0===t||t.destruct(),null===(n=aS(this,"__dialog"))||void 0===n||n.destruct()}}OO([lS],DO.prototype,"__dialog",null),OO([lS],DO.prototype,"__container",null),OO([kE(":generateAiAssistantForm.ai-assistant")],DO.prototype,"onGenerateAiAssistantForm",null),OO([kE(":invokeAiAssistant")],DO.prototype,"onInvokeAiAssistant",null),RS.add("ai-assistant",DO),dj.prototype.tab={tabInsideLiInsertNewList:!0};var UO=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class RO extends SI{afterInit(e){}__onTab(e){if(e.key===rC&&this.__onShift(e.shiftKey))return!1}__onCommand(e){if(("indent"===e||"outdent"===e)&&this.__onShift("outdent"===e))return!1}__onShift(e){const t=function(e,t=!1){if(!e.o.tab.tabInsideLiInsertNewList)return!1;const[n,r]=function(e){const t=e.createInside.fake(),n=e.createInside.fake(),r=e.s.range.cloneRange();r.collapse(!0),r.insertNode(t);const o=e.s.range.cloneRange();return o.collapse(!1),o.insertNode(n),[t,n]}(e);try{const r=function(e,t,n){const r=qB.closest(t,"li",e.editor);return!!r&&!(!n&&!qB.isLeaf(r.previousElementSibling))&&!(n&&!qB.closest(r,"li",e.editor))&&r}(e,n,t);if(!r)return!1;if(!function(e,t,n){const r=qB.closest(n,"li",t.editor);return!(!r||r!==e&&!e.contains(r))}(r,e,n))return!1;const o=qB.closest(r,["ol","ul"],e.editor);return!(!o||t&&!qB.closest(o,"li",e.editor)||(t?function(e,t,n){const r=qB.closest(t,"li",e.editor);cB(r,"tab parent li is null");const o=Array.from(t.children).filter(e=>qB.isLeaf(e));qB.after(r,n);const i=o.indexOf(n);if(0!==i&&1!==o.length||qB.safeRemove(t),i!==o.length-1){const e=t.cloneNode();qB.append(n,e);for(let t=i+1;t<o.length;t+=1)qB.append(e,o[t])}}(e,o,r):function(e,t,n){const r=n.previousElementSibling;cB(r,"tab previousElementSibling is null");const o=r.lastElementChild,i=qB.isTag(o,t.tagName)?o:e.createInside.element(t.tagName,Array.from(t.attributes).reduce((e,t)=>(e[t.name]=t.value,e),{}));i.appendChild(n),o!==i&&r.appendChild(i)}(e,o,r),0))}finally{const t=e.s.createRange();t.setStartAfter(n),t.setEndBefore(r),e.s.selectRange(t),qB.safeRemove(n),qB.safeRemove(r)}}(this.j,e);return t&&this.j.e.fire("afterTab",e),t}beforeDestruct(e){}}UO([kE(":keydown.tab")],RO.prototype,"__onTab",null),UO([kE(":beforeCommand.tab")],RO.prototype,"__onCommand",null),RS.add("tab",RO);const zO=new Set([rC,aC,cC,lC,uC]);RS.add("tableKeyboardNavigation",function(e){e.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",t=>{const{key:n}=t,r=function(e,t){if(!zO.has(t))return;const n=e.s.current();if(!n)return;const r=qB.up(n,qB.isCell,e.editor);if(!r)return;const{range:o}=e.s;if(t!==rC&&n!==r){const e=t===cC||t===uC,i=LB(e?qB.next:qB.prev,n,e=>t===lC||t===uC?qB.isTag(e,"br"):Boolean(e),r);if(!e&&(i||t!==lC&&qB.isText(n)&&0!==o.startOffset)||e&&(i||t!==uC&&qB.isText(n)&&n.nodeValue&&o.startOffset!==n.nodeValue.length))return}return r}(e,n);if(!r)return;const o=e.getInstance(LI,e.o),i=qB.closest(r,"table",e.editor);let s=null;const a=n===aC||t.shiftKey,l=()=>LB(a?qB.prev:qB.next,r,qB.isCell,i);switch(n){case rC:case aC:s=l(),s||(o.appendRow(i,!!a&&i.querySelector("tr"),!a),s=l());break;case lC:case uC:{const e=o.formalMatrix(i),[t,a]=o.formalCoordinate(i,r);n===lC?void 0!==e[t-1]&&(s=e[t-1][a]):void 0!==e[t+1]&&(s=e[t+1][a])}}if(s){if(e.e.fire("hidePopup hideResizer"),s.firstChild)n===rC?e.s.select(s,!0):e.s.setCursorIn(s,n===cC||n===uC);else{const t=e.createInside.element("br");s.appendChild(t),e.s.setCursorBefore(t)}return e.synchronizeValues(),!1}})}),dj.prototype.video={parseUrlToVideoEmbed:xj,defaultWidth:400,defaultHeight:345},jE.set("video",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg> '),dj.prototype.controls.video={popup:(e,t,n)=>{const r=new JE(e,[new qE(e,[new YE(e,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new qE(e,[LE(e,"","Insert","primary").onAction(()=>r.submit())])]),o=new JE(e,[new qE(e,[new nN(e,{name:"code",required:!0,label:"Embed code"})]),new qE(e,[LE(e,"","Insert","primary").onAction(()=>o.submit())])]),i=[],s=t=>{e.s.restore(),e.s.insertHTML(t),n()};return e.s.save(),i.push({icon:"link",name:"Link",content:r.container},{icon:"source",name:"Code",content:o.container}),r.onSubmit(t=>{var n,r,o,i;s(LB(null!==(r=null===(n=e.o.video)||void 0===n?void 0:n.parseUrlToVideoEmbed)&&void 0!==r?r:xj,t.url,{width:null===(o=e.o.video)||void 0===o?void 0:o.defaultWidth,height:null===(i=e.o.video)||void 0===i?void 0:i.defaultHeight}))}),o.onSubmit(e=>{s(e.code)}),ET(e,i)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"},RS.add("video",function(e){e.registerButton({name:"video",group:"media"})}),dj.prototype.showXPathInStatusbar=!0,RS.add("xpath",class extends SI{constructor(){super(...arguments),this.onContext=(e,t)=>(this.menu||(this.menu=new WN(this.j)),this.menu.show(t.clientX,t.clientY,[{icon:"bin",title:e===this.j.editor?"Clear":"Remove",exec:()=>{e!==this.j.editor?qB.safeRemove(e):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(e)}}]),!1),this.onSelectPath=(e,t)=>{this.j.s.focus();const n=kB(t.target,"-path")||"/";if("/"===n)return this.j.execCommand("selectall"),!1;try{const e=this.j.ed.evaluate(n,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(e)return this.j.s.select(e),!1}catch(e){}return this.j.s.select(e),!1},this.tpl=(e,t,n,r)=>{const o=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${t}" title="${r}" tabindex="-1"'>${iB(n)}</a></span>`),i=o.firstChild;return this.j.e.on(i,"click",this.onSelectPath.bind(this,e)).on(i,"contextmenu",this.onContext.bind(this,e)),o},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=MN(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)},this.calcPathImd=()=>{if(this.isDestructed)return;const e=this.j.s.current();if(this.container&&(this.container.innerHTML=U_),e){let t,n,r;qB.up(e,e=>{!e||this.j.editor===e||qB.isText(e)||qB.isComment(e)||(t=e.nodeName.toLowerCase(),n=YS(e,this.j.editor).replace(/^\//,""),r=this.tpl(e,n,t,this.j.i18n("Select %s",t)),this.container&&this.container.insertBefore(r,this.container.firstChild))},this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout,!0)}afterInit(){if(this.j.o.showXPathInStatusbar){this.container=this.j.c.div("jodit-xpath"),kB(this.container,"role","list");const e=()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===vC?this.calcPath():(this.container&&(this.container.innerHTML=U_),this.appendSelectAll()))};this.j.e.off(".xpath").on("pointerup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",e),e(),this.calcPath()}}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),qB.safeRemove(this.container),delete this.menu,delete this.container}});const QO=W_?W_.SpeechRecognition||W_.webkitSpeechRecognition:void 0,HO=new WeakMap;var qO=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class VO extends PS{set lang(e){this._lang=e,this._api.lang=e}get lang(){return this._lang}set continuous(e){this._continuous=e,this._api.continuous=e}get continuous(){return this._continuous}set interimResults(e){this._interimResults=e,this._api.interimResults=e}get interimResults(){return this._interimResults}constructor(e,t){super(),this.async=e,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=e=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(940)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=t,VO._instances.add(this)}destruct(){this.stop(),function(e){const t=HO.get(e);t&&(HO.delete(e),"closed"!==t.state&&t.close())}(this),VO._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,VO._instances.forEach(e=>{e!==this&&e.stop()});try{this._api.start()}catch(e){return this._onError(e),void this.stop()}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(e,t){return this._api.addEventListener(e,t),this}__off(e,t){return this._api.removeEventListener(e,t),this}_onResults(e){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(440),this.restart()}_onProgress(e){if(this._isEnabled&&(this.__interimResults="",e.results)){for(let t=0;t<e.results.length;t++){const n=e.results.item(t);if(n.length){const{transcript:e}=n.item(0);this.__interimResults+=e}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(e){"voice-unavailable"===e.error&&this.emit("error","Voice unavailable"),"not-allowed"===e.error&&this.emit("error","Not allowed"),"language-unavailable"!==e.error&&"language-not-supported"!==e.error||this.emit("error","Language unavailable"),this._makeSound(940),this.emit("pulse",!1),this.stop()}_makeSound(e){this.sound&&function(e,{sec:t=.1,frequency:n=440,gain:r=.1,type:o="sine"}={}){const i=function(e){if(!W_)return null;const t=HO.get(e);if(t&&"closed"!==t.state)return t;const n=W_.AudioContext||W_.webkitAudioContext;if(!n)return null;const r=new n;return HO.set(e,r),r}(e);if(!i)return;const s=i.createGain(),a=i.createOscillator();a.type=o,a.frequency.value=n,s.gain.value=r,a.connect(s),s.connect(i.destination),a.start(),a.stop(i.currentTime+t)}(this,{frequency:e})}}VO._instances=new Set,qO([KC],VO.prototype,"_onResults",null),qO([KC],VO.prototype,"_onProgress",null),qO([KC],VO.prototype,"_onError",null),dj.prototype.speechRecognize={api:void 0!==QO?QO:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},jE.set("speech-recognize",'<svg viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z"/> <path d="M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z"/> </svg> '),dj.prototype.controls.speechRecognize={isVisible:e=>Boolean(e.o.speechRecognize.api),isActive(e,t){const n=BB(e,"speech");return Boolean(null==n?void 0:n.isEnabled)},isDisabled:e=>!e.o.speechRecognize.api,exec(e,t,{button:n,control:r}){var o;const{api:i,lang:s,continuous:a,interimResults:l,sound:c}=e.o.speechRecognize;if(!i)return void e.alert("Speech recognize API unsupported in your browser");let u=BB(e,"speech");if(!u){const t=new i;u=new VO(e.async,t),u.lang=YC(s)?s:null!==(o=kB(e.od.documentElement,"lang"))&&void 0!==o?o:void 0,u.continuous=a,u.interimResults=l,u.sound=c,BB(e,"speech",u),u.on("pulse",e=>{n.setMod("pulse",e)}),u.on("result",t=>e.e.fire("speechRecognizeResult",t)),u.on("progress",t=>e.e.fire("speechRecognizeProgressResult",t)),u.on("error",t=>e.message.error(t)),e.hookStatus("beforeDestruct",()=>{BB(e,"speech",null),u.destruct()})}if(r.args){const e=r.args[0];if(pB(u[e]))return u[e]=!u[e],void(u.isEnabled&&u.restart())}u.toggle(),u.isEnabled&&n.setMod("pulse",!0),n.state.activated=u.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(e,t,n){var r;const o=BB(e,"speech");return`<span class='jodit-speech-recognize__list-item'><input ${(null!==(r=null==o?void 0:o[t])&&void 0!==r?r:e.o.speechRecognize[t])?"checked":""} class='jodit-checkbox' type='checkbox'>&nbsp;${n}</span>`},mods:{stroke:!1}};const KO={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"},WO={newline:"řádek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpoznání Řeči",Sound:"Zvuk","Interim Results":"Průběžné Výsledky"},GO={newline:"Zeilenumbruch",delete:"löschen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"},$O={newline:"nueva línea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"},YO={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"},ZO={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"Ääni","Interim Results":"Välitulokset"},XO={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"Résultats Intermédiaires"},JO={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"},eD={newline:"újsor",delete:"törlés",space:"tér","Speech Recognize":"A Beszéd Felismeri",Sound:"Hang","Interim Results":"Időközi Eredmények"},tD={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"},nD={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"},rD={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"},oD={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"},iD={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"},sD={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"},aD={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"},lD={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"},cD={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provisórios"},uD={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"},dD={newline:"nový riadok",delete:"vymazať",space:"medzera","Speech Recognize":"Rozpoznávanie reči",Sound:"Zvuk","Interim Results":"Predbežné výsledky"},AD={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonuçlar"},hD={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"},pD={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"},fD={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"};var mD=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class gD extends SI{constructor(){super(...arguments),this.buttons=[{group:"state",name:"speechRecognize"}],this._commandToWord={}}afterInit(e){const{commands:t}=e.o.speechRecognize;t&&(QS(ot),UB(t,!1).forEach(n=>{n.split("|").forEach(r=>{r=r.trim().toLowerCase(),this._commandToWord[r]=t[n];const o=e.i18n(r);o!==r&&o.split("|").forEach(e=>{this._commandToWord[e.trim().toLowerCase()]=t[n].trim()})})}))}beforeDestruct(e){qB.safeRemove(this.messagePopup)}onSpeechRecognizeProgressResult(e){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),this.j.workplace.appendChild(this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(()=>{qB.safeRemove(this.messagePopup)},1e3),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){this.j.async.clearTimeout(this.__hidePopupTimeout),qB.safeRemove(this.messagePopup);const{j:t}=this,{s:n}=t;if(!this._checkCommand(e)){const{range:r}=n,o=n.current();if(n.isCollapsed()&&qB.isText(o)&&qB.isOrContains(t.editor,o)&&o.nodeValue){const i=o.nodeValue;o.nodeValue=i+(/[\u00A0 ]\uFEFF*$/.test(i)?"":" ")+e,r.setStartAfter(o),n.selectRange(r),t.synchronizeValues()}else n.insertHTML(e)}}_checkCommand(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&(function(e,t){const[n,r]=t.split("::");"open"===n.toLowerCase()&&r&&/^(javascript:|data:|vbscript:)/i.test(r.trim())||e.execCommand(n,null,r)}(this.j,this._commandToWord[e]),!0)}}mD([kE(":speechRecognizeProgressResult")],gD.prototype,"onSpeechRecognizeProgressResult",null),mD([kE(":speechRecognizeResult")],gD.prototype,"onSpeechRecognizeResult",null),OF.plugins.add("speech-recognize",gD);var yD=OF,vD=(0,ft.forwardRef)(({JoditConstructor:e=yD,className:t,config:n,id:r,name:o,onBlur:i,onChange:s,tabIndex:a,value:l,editorRef:c},u)=>{const d=(0,ft.useRef)(null),A=(0,ft.useRef)(null);(0,ft.useEffect)(()=>{const t=d.current,r=e.make(t,n);return A.current=r,"function"==typeof c&&c(r),u&&("function"==typeof u?u(r):u.current=r),()=>{r.isReady?r.destruct():r.waitForReady().then(e=>e.destruct())}},[e,n,c]);const h=function(e){const t=(0,ft.useRef)("");return(0,ft.useEffect)(()=>{t.current=e},[e]),t.current}(null!=t?t:"");return(0,ft.useEffect)(()=>{var e,n;const r=null==(n=null==(e=A.current)?void 0:e.container)?void 0:n.classList;h!==t&&"string"==typeof h&&h.split(/\s+/).filter(Boolean).forEach(e=>null==r?void 0:r.remove(e)),t&&"string"==typeof t&&t.split(/\s+/).filter(Boolean).forEach(e=>null==r?void 0:r.add(e))},[t,h]),(0,ft.useEffect)(()=>{var e;(null==(e=A.current)?void 0:e.workplace)&&(A.current.workplace.tabIndex=a||-1)},[a]),(0,ft.useEffect)(()=>{const e=A.current;if(!(null==e?void 0:e.events)||!i&&!s)return;const t=e=>{var t,n;return i&&i(null!=(n=null==(t=null==A?void 0:A.current)?void 0:t.value)?n:"",e)},n=e=>s&&s(e);return e.events.on("blur",t).on("change",n),()=>{var r;null==(r=e.events)||r.off("blur",t).off("change",n)}},[i,s]),(0,ft.useEffect)(()=>{const e=A.current,t=()=>{e&&void 0!==l&&e.value!==l&&(e.value=l)};e&&(e.isReady?t():e.waitForReady().then(t))},[l]),(0,yt.jsx)("div",{className:"jodit-react-container",children:(0,yt.jsx)("textarea",{defaultValue:l,name:o,id:r,ref:d})})});vD.displayName="JoditEditor";var bD=vD;const wD=_b("refresh-ccw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]),xD=({className:e,...t})=>{const n=(0,ct.useRef)(null),[r,o]=(0,ct.useState)(!1),i=(0,ct.cloneElement)(t.children,{ref:n,onMouseEnter:()=>{if(n.current){const e=n.current,t=e.scrollWidth>e.offsetWidth;o(t)}}});return r?(0,yt.jsx)(e_,{className:jo("z-999999",e),...t,children:i}):i},kD=({value:e,onChange:t,defaultValue:n,placeholder:r=(0,pt.__)("Enter text","surecookie"),id:o,disabled:i=!1,minHeight:s=150,buttons:a="bold,italic,underline,strikethrough,ul,ol,paragraph,fontsize,lineHeight,hr,link",className:l,tabIndex:c=0})=>{const u=(0,ct.useRef)(null),d="string"==typeof n&&"function"==typeof t&&!i,A=(e??"")===n,h=(0,ct.useMemo)(()=>({placeholder:r,readonly:i,minHeight:s,useSearch:!1,showCharsCounter:!1,showWordsCounter:!1,showXPathInStatusbar:!1,toolbarAdaptive:!1,toolbarSticky:!1,buttons:a,saveHeightInStorage:!0,saveModeInStorage:!0}),[r,i,s,a]);return(0,yt.jsxs)("div",{id:o,className:`relative ${l??""}`,children:[d&&(0,yt.jsx)("div",{className:"absolute right-3 top-0 z-10 flex h-[39px] items-center",children:(0,yt.jsx)(e_,{content:(0,pt.__)("Reset to default","surecookie"),children:(0,yt.jsx)(Fa,{variant:"ghost",icon:(0,yt.jsx)(wD,{className:"!w-4 !h-4"}),onClick:()=>t(n),disabled:A,"aria-label":(0,pt.__)("Reset to default","surecookie"),className:"p-0"})})}),(0,yt.jsx)(bD,{ref:u,value:e??"",config:h,tabIndex:c,onChange:t})]})},_D=()=>(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)("div",{className:"flex items-center justify-between",children:(0,yt.jsxs)("div",{className:"inline-flex items-start gap-3",children:[(0,yt.jsx)(Zk,{className:"w-10 h-5 rounded-full shrink-0"}),(0,yt.jsxs)("div",{className:"space-y-1",children:[(0,yt.jsx)(Zk,{className:"h-5 w-40"}),(0,yt.jsx)(Zk,{className:"h-5 w-80"})]})]})}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Zk,{className:"h-5 w-28"}),(0,yt.jsx)(Zk,{className:"h-10 w-full rounded-md"})]}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Zk,{className:"h-5 w-28"}),(0,yt.jsx)(Zk,{className:"h-24 w-full rounded-md"}),(0,yt.jsx)(Zk,{className:"h-5 w-80"})]}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Zk,{className:"h-5 w-36"}),(0,yt.jsx)(Zk,{className:"h-10 w-full rounded-md"}),(0,yt.jsx)(Zk,{className:"h-5 w-96"})]}),(0,yt.jsx)("div",{className:"flex items-center justify-between",children:(0,yt.jsxs)("div",{className:"inline-flex items-start gap-3",children:[(0,yt.jsx)(Zk,{className:"w-10 h-5 rounded-full shrink-0"}),(0,yt.jsxs)("div",{className:"space-y-1",children:[(0,yt.jsx)(Zk,{className:"h-5 w-44"}),(0,yt.jsx)(Zk,{className:"h-5 w-72"})]})]})}),(0,yt.jsx)("div",{className:"flex justify-start gap-3 mt-6 mb-4",children:(0,yt.jsx)(Zk,{className:"h-10 w-16 rounded-md"})})]}),CD=()=>{const e=Yi(),{getCurrentValue:t,updateSetting:n}=si(),[r,o]=(0,ct.useState)(["accept_all","accept","preferences","decline"]),[i,s]=(0,ct.useState)(null),[a,l]=(0,ct.useState)(null),c=Boolean(window.surecookieAdminData?.is_pro_active),u=c&&"selected_regions"===t("geo_display_mode"),d=t("button_order"),A=nb({accept_all_enabled:t("accept_all_enabled")});(0,ct.useEffect)(()=>{const e=rb(d||"accept_all,accept,preferences,decline",{acceptAllEnabled:A});e.includes("preferences")||e.push("preferences"),A&&!e.includes("accept_all")&&e.push("accept_all"),o(e)},[d,A]);const h={decline:(0,pt.__)("Decline","surecookie"),preferences:(0,pt.__)("Preferences","surecookie"),accept:(0,pt.__)("Only Essential","surecookie"),accept_all:(0,pt.__)("Accept All","surecookie")},p=()=>{s(null),l(null)},f=e=>{e.preventDefault(),e.dataTransfer.dropEffect="move"},m=()=>{l(null)};return(0,yt.jsxs)("div",{children:[(0,yt.jsx)(Iw,{size:14,weight:500,color:"primary",className:"inline-block",children:(0,pt.__)("Button Order","surecookie")}),(0,yt.jsx)("div",{className:"flex items-center gap-3",children:r.map((e,t)=>(0,yt.jsx)(Fa,{draggable:!0,onDragStart:e=>((e,t)=>{s(t),e.dataTransfer.effectAllowed="move"})(e,t),onDragEnd:p,onDragOver:f,onDragEnter:()=>(e=>{null!==i&&i!==e&&l(e)})(t),onDragLeave:m,onDrop:e=>((e,t)=>{if(e.preventDefault(),null===i)return;const a=[...r],c=a[i];a.splice(i,1),a.splice(t,0,c),a.includes("preferences")||a.push("preferences"),o(a),n("button_order",a.join(",")),s(null),l(null)})(e,t),variant:"outline",size:"md",className:jo("cursor-move transition-all duration-200 mt-2",i===t&&"opacity-50 scale-95",a===t&&"ring-2 ring-brand-primary-600 ring-offset-2"),children:h[e]},e))}),c&&!u&&(0,yt.jsx)(Iw,{size:12,color:"help",className:"mt-2",children:(0,pt.__)("Drag and drop to reorder buttons. This order can be overridden per Geographic Targeting Rule.","surecookie")}),u&&(0,yt.jsx)(pk,{color:"info",showIcon:!0,className:"mt-2",title:(0,pt.__)("Is this button order not showing on the frontend?","surecookie"),message:(0,pt.__)("Visitors who match a region-specific rule will see the button order defined for that region. This global order is shown only to visitors who don't match any regional rules.","surecookie"),footerAsideTitle:!0,footer:(0,yt.jsx)(Fa,{variant:"link",size:"xs",icon:(0,yt.jsx)(Vk,{size:14}),iconPosition:"right",onClick:()=>e("/cookie-manager/geo-rules"),children:(0,pt.__)("Manage Geo Rules","surecookie")})})]})},BD=()=>{const{getCurrentValue:e,updateSetting:t,isLoading:n,isError:r}=si(),[o,i]=(0,ct.useState)(""),[s,a]=(0,ct.useState)(""),[l,c]=(0,ct.useState)("consent-banner"),u=window?.surecookieAdminData?.defaults??{},d=u.message_description??"",A=u.preferences_modal_heading??"",h=u.preferences_modal_description??"",p=e=>e?String(e).replace(/<[^>]*>/g," ").replace(/&nbsp;/g," ").replace(/\s+/g," ").trim():"";return(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("Banner Content","surecookie"),pageDescription:(0,pt.__)("Configure the text content that appears in your cookie consent banner and preference modal","surecookie"),children:n?(0,yt.jsx)(_D,{}):r?(0,yt.jsx)(pk,{color:"error",showIcon:!0,title:(0,pt.__)("Failed to load settings","surecookie"),message:(0,pt.__)("An error occurred while loading settings. Please refresh the page to try again.","surecookie")}):(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)("div",{className:"flex items-center justify-between",children:(0,yt.jsx)(Zb,{"aria-label":(0,pt.__)("Enable Cookie Banner Switch","surecookie"),id:"cookie-banner-switch",label:{description:(0,pt.__)("Show cookie consent banner to comply with privacy regulations.","surecookie"),heading:(0,pt.__)("Enable Cookie Banner","surecookie")},onChange:e=>{t("banner_enabled",e)},size:"sm",value:e("banner_enabled")||!1})}),e("banner_enabled")&&(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsxs)(C_.Group,{className:"w-full",size:"sm",variant:"rounded",activeItem:l,onChange:({value:{slug:e}})=>{c(e)},children:[(0,yt.jsx)(C_.Tab,{slug:"consent-banner",text:(0,pt.__)("Consent Banner","surecookie"),className:"whitespace-nowrap"}),(0,yt.jsx)(C_.Tab,{slug:"preference-modal",text:(0,pt.__)("Preference Modal","surecookie"),className:"whitespace-nowrap"})]}),"consent-banner"===l&&(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsx)("div",{className:"space-y-1.5",children:(0,yt.jsx)(j_,{className:"w-full",size:"md",id:"message-heading",label:(0,pt.__)("Banner Heading","surecookie"),maxLength:100,value:e("message_heading")||"",onChange:e=>{t("message_heading",e)},placeholder:(0,pt.__)("Cookie Notice (optional)","surecookie")})}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{className:"block",as:"label",size:14,weight:500,color:"primary",htmlFor:"message-description",children:(0,pt.__)("Banner Message","surecookie")}),(0,yt.jsx)(kD,{id:"message-description",value:e("message_description")??d,defaultValue:d,onChange:e=>{o&&i(""),t("message_description",e)},placeholder:(0,pt.__)("Enter Banner Message","surecookie")}),o?(0,yt.jsx)(Iw,{role:"alert",size:14,weight:400,color:"error",children:o}):(0,yt.jsx)(Iw,{className:"block",as:"p",size:14,color:"help",children:(0,pt.__)("You can add links and basic formatting like bold/italic/link to the banner message.","surecookie")})]}),(0,yt.jsx)("hr",{className:"border-t border-dotted border-gray-300"}),(0,yt.jsx)("div",{className:"flex items-center justify-between",children:(0,yt.jsx)(Zb,{"aria-label":(0,pt.__)("Enable Accept All Button","surecookie"),id:"enable-accept-all",label:{description:(0,pt.__)('Show the "Accept All" button on the consent banner. When off, the button is removed from the banner and from the Button Order list.',"surecookie"),heading:(0,pt.__)("Enable Accept All Button","surecookie")},onChange:e=>{t("accept_all_enabled",e)},size:"sm",value:nb({accept_all_enabled:e("accept_all_enabled")})})}),(0,yt.jsx)(CD,{})]}),"preference-modal"===l&&(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsx)("div",{className:"space-y-1.5",children:(0,yt.jsx)(j_,{className:"w-full",size:"md",label:(0,pt.__)("Preference Modal Title","surecookie"),id:"preferences-modal-heading",maxLength:100,value:e("preferences_modal_heading")||A,onChange:e=>{t("preferences_modal_heading",e)},placeholder:A})}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{className:"block",as:"label",size:14,weight:500,color:"primary",htmlFor:"preferences-modal-description",children:(0,pt.__)("Preference Modal Description","surecookie")}),(0,yt.jsx)(kD,{id:"preferences-modal-description",value:e("preferences_modal_description")??h,defaultValue:h,onChange:e=>{s&&a(""),t("preferences_modal_description",e)},placeholder:h}),s?(0,yt.jsx)(Iw,{role:"alert",size:14,weight:400,color:"error",children:s}):(0,yt.jsx)(Iw,{className:"block",as:"p",size:14,color:"help",children:(0,pt.__)("You can add links and basic formatting like bold/italic/link to the banner message.","surecookie")})]})]})]}),(0,yt.jsx)(h_,{validateSettings:()=>{const t=e("message_description")??"";if(!p(t))return i((0,pt.__)("Banner message cannot be empty.","surecookie")),c("consent-banner"),!1;const n=e("preferences_modal_description")??"";return!!p(n)||(a((0,pt.__)("Preference modal description cannot be empty.","surecookie")),c("preference-modal"),!1)}})]})})},SD={primary:{checkbox:"border-border-strong hover:border-border-interactive checked:border-border-interactive bg-white checked:bg-toggle-on checked:hover:bg-toggle-on-hover checked:hover:border-toggle-on-hover focus:ring-2 focus:ring-offset-2 focus:ring-focus",icon:"text-white"}},jD={sm:"text-sm leading-5",md:"text-base leading-6"},ED={sm:{checkbox:"size-4",icon:"size-1.5",info:"size-4"},md:{checkbox:"size-5",icon:"size-2",info:"size-5"}},ND={xs:"py-1 px-1 text-sm gap-0.5 [&>svg]:size-4",sm:"py-1 px-1.5 text-base gap-1 [&>svg]:size-4",md:"py-2 px-2.5 text-base gap-1 [&>svg]:size-5",lg:"py-2.5 px-3 text-base gap-1 [&>svg]:size-6"},ID=(0,ft.createContext)({}),FD=()=>(0,ft.useContext)(ID),TD=({children:e,name:t,style:n="simple",size:r="md",value:o,defaultValue:i,by:s="id",as:a="div",onChange:l,className:c,disableGroup:u=!1,vertical:d=!1,columns:A=4,multiSelection:h=!1,gapClassName:p="gap-2"})=>{const f=(0,ft.useMemo)(()=>typeof o<"u",[o]),m=(0,ft.useMemo)(()=>t||`radio-button-group-${nm()}`,[t]);let g;g=f?o:h?i??[]:i;const[y,v]=(0,ft.useState)(g),b=(0,ft.useCallback)(e=>{if(h)v(t=>{let n;return n=Array.isArray(t)&&"string"==typeof e&&t.includes(e)?t.filter(t=>t!==e):[...Array.isArray(t)?t:[],..."string"==typeof e?[e]:[]],"function"==typeof l&&l(n),n});else{if(f||v(e),"function"!=typeof l)return;l(e)}},[l]);c=wa("grid grid-cols-4",_a[A],p,"tile"===n&&"gap-0",d&&"grid-cols-1",c);const w=wa("tile"===n?"border border-border-subtle border-solid rounded-md shadow-sm":"gap-6",c),x=()=>(0,yt.jsx)(ID.Provider,{value:{name:m,value:f?o:y,by:s,onChange:b,isControlled:f,disableAll:u,style:n,columns:A,multiSelection:h,size:r},children:ft.Children.map(e,e=>(0,ft.isValidElement)(e)?e:null)});return(0,yt.jsx)(yt.Fragment,{children:"tile"===n?(0,yt.jsx)("div",{className:w,children:x()}):(0,yt.jsx)(a,{...a===ft.Fragment?{}:{className:c},children:x()})})};TD.displayName="RadioButton.Group";const LD=(0,ft.forwardRef)(({id:e,label:t,value:n,children:r,disabled:o,icon:i=null,inlineIcon:s=!1,hideSelection:a=!1,reversePosition:l=!1,borderOn:c=!1,borderOnActive:u=!0,badgeItem:d=null,useSwitch:A=!1,info:h,minWidth:p=!0,...f},m)=>{const{buttonWrapperClasses:g,...y}=f,v=FD(),{name:b,value:w,by:x,onChange:k,disableAll:_,checked:C,multiSelection:B,size:S="md"}=v,j="primary",E=(0,ft.useMemo)(()=>e||`radio-button-${nm()}`,[e]),N=(0,ft.useMemo)(()=>_||o,[_,o]),I=(0,ft.useMemo)(()=>B?Array.isArray(w)&&w.includes(n):typeof C<"u"?C:typeof w==typeof n&&("string"==typeof w?w===n:Array.isArray(w)?w.includes(n):w[x]===n[x]),[w,n,C]),F=(0,ft.useCallback)(()=>(0,ft.isValidElement)(t)?t:t?.heading?(0,yt.jsxs)("div",{className:wa(!s&&{"space-y-3":"sm"===S,"space-y-4":"md"===S},l&&!c&&(A?"ml-10":"ml-4"),s&&"flex gap-2",s&&!t.description&&"items-center"),children:[i&&(0,yt.jsx)(yt.Fragment,{children:i}),(0,yt.jsxs)("div",{className:wa(!i||!A||i&&d?{"space-y-0.5":"sm"===S,"space-y-1":"md"===S}:"space-y-0.5"),children:[(0,yt.jsx)("p",{className:wa("text-text-primary font-medium m-0 [overflow-wrap:anywhere]",jD[S],o&&"text-text-disabled cursor-not-allowed"),children:t.heading}),t.description&&(0,yt.jsx)("p",{className:"text-text-tertiary text-sm font-normal leading-5 m-0 [overflow-wrap:anywhere]",children:t.description})]})]}):null,[t,l,c,A]);if("tile"===v.style)return(0,yt.jsx)(PD,{id:e,label:t,value:n,disabled:o,size:S,children:r});const T=()=>{N||(B?A&&k(n,!I):k(n))};let L="pr-12";l&&c&&(L=A?"pl-16":"pl-12");let P="right-3 mr-0.5";return l&&(P=c?"left-3 ml-0.5":"left-0"),(0,yt.jsxs)("label",{className:wa("inline-flex items-center relative cursor-pointer transition-all duration-300",!!t&&"items-start justify-between",p&&"min-w-[180px]",c&&"outline outline-field-border outline-1 rounded-md shadow-sm hover:outline-border-interactive",u&&c&&I&&"outline-border-interactive",{"pl-3.5 pr-2.5 py-2.5":"sm"===S&&!(i&&A),"p-3":"sm"===S&&(i&&A||i&&d),"pl-4 pr-3 py-3":"md"===S&&!(i&&A),"p-4":"md"===S&&(i&&A||i&&d)},L,N&&"cursor-not-allowed opacity-40",g),htmlFor:E,onClick:T,children:[!!t&&(0,yt.jsx)("label",{className:wa("cursor-pointer",N&&"cursor-not-allowed"),htmlFor:E,children:F()}),!!h&&(0,yt.jsx)("div",{className:"absolute mr-0.5 bottom-1.5 right-3",children:(0,yt.jsx)(Gv,{title:h?.heading,content:h?.description,children:(0,yt.jsx)(ja,{className:wa("text-text-primary",ED[S]?.info)})})}),(0,yt.jsxs)("label",{className:wa("absolute flex items-center cursor-pointer rounded-full gap-2",P,N&&"cursor-not-allowed",s&&(l&&c?"ml-3":"mr-3")),onClick:T,children:[!!d&&d,!a&&(A?(0,yt.jsx)(yt.Fragment,{children:(0,yt.jsx)(Zb,{defaultValue:!1,size:S,onChange:()=>{B?k(n,!I):k(n)},checked:I,...y,"aria-label":t?.heading??"Switch"})}):(0,yt.jsxs)("span",{className:"relative p-0.5",children:[(0,yt.jsx)("input",{ref:m,id:E,type:B?"checkbox":"radio",className:wa("peer flex relative cursor-pointer appearance-none transition-all m-0 before:content-[''] checked:before:content-[''] checked:before:hidden before:hidden !border-1.5 border-solid focus-within:outline-none",!B&&"rounded-full",SD[j].checkbox,ED[S].checkbox,N&&"disabled:bg-white checked:disabled:bg-white disabled:border-border-disabled checked:disabled:border-border-disabled cursor-not-allowed"),name:b,value:n,onChange:e=>k(e.target.value),checked:I,disabled:N,...y}),(0,yt.jsx)("span",{className:wa("inline-flex items-center absolute top-2/4 not-rtl:left-2/4 rtl:right-2/4 -translate-y-2/4 -translate-x-2/4 text-white opacity-0 transition-opacity peer-checked:opacity-100",SD[j].icon,N&&"peer-disabled:text-border-disabled cursor-not-allowed"),children:B?(0,yt.jsx)(Ea,{className:"sm"===S?"size-3":"size-4"}):(0,yt.jsx)("div",{className:wa("rounded-full bg-current",ED[S]?.icon)})})]}))]})]})});LD.displayName="RadioButton.Button";const PD=({id:e,children:t,value:n,disabled:r,size:o="md",...i})=>{const s=FD(),{name:a,value:l,by:c,onChange:u,disableAll:d,checked:A}=s||{},h=(0,ft.useMemo)(()=>e||`radio-button-${nm()}`,[e]),p=(0,ft.useMemo)(()=>d||r,[d,r]),f=(0,ft.useMemo)(()=>typeof A<"u"?A:typeof l==typeof n&&("string"==typeof l?l===n:Array.isArray(l)?l.includes(n):!(!l||!c)&&l[c]===n[c]),[l,n,A,c]),m=wa("bg-background-primary text-primary cursor-pointer flex items-center justify-center","hover:bg-button-tertiary-hover","focus:outline-none",p?"text-text-disabled cursor-not-allowed":"",ND[o],"border-0 border-r border-border-subtle border-solid");return(0,yt.jsx)(yt.Fragment,{children:(0,yt.jsxs)("button",{type:"button",id:h,"aria-label":"Radio Button",className:wa(m,"first:rounded-tl first:rounded-bl first:border-0 first:border-r first:border-border-subtle last:rounded-tr last:rounded-br last:border-0",f&&"bg-button-disabled"),onClick:()=>{u&&u(n)},disabled:p,...i,children:[(0,yt.jsx)("input",{type:"hidden",value:n,name:a,checked:f,onChange:e=>u?.(e.target.value)}),t]})})},MD=Object.assign(LD,{Group:TD,Button:LD}),OD=({className:e=""})=>(0,yt.jsx)(Wk,{title:(0,pt.__)("Want custom brand colors?","surecookie"),description:(0,pt.__)("Upgrade to SureCookie premium to pick custom primary, secondary, foreground, and background colors for your banner.","surecookie"),buttonLabel:(0,pt.__)("Upgrade Now","surecookie"),utmContent:"custom_colors_nudge",className:jo("border-indigo-300 shadow-sm",e)}),DD=()=>{const{getCurrentValue:e,updateSetting:t}=si();return Boolean(window?.surecookieAdminData?.is_pro_active)?(0,ht.applyFilters)("surecookie.customColors.section",null,{getCurrentValue:e,updateSetting:t}):(0,yt.jsx)(OD,{})},UD=()=>(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Zk,{className:"h-5 w-10"}),(0,yt.jsx)(Zk,{className:"h-10 w-full rounded-md"})]}),(0,yt.jsxs)("div",{children:[(0,yt.jsx)(Zk,{className:"h-5 w-24 mb-3"}),(0,yt.jsxs)("div",{className:"grid grid-cols-[repeat(2,max-content)] gap-3",children:[(0,yt.jsx)(Zk,{className:"h-[42px] w-[155px] rounded-md"}),(0,yt.jsx)(Zk,{className:"h-[42px] w-[170px] rounded-md"})]})]}),(0,yt.jsxs)("div",{children:[(0,yt.jsx)(Zk,{className:"h-5 w-28 mb-3"}),(0,yt.jsx)(Zk,{className:"h-10 w-36 rounded-md"})]}),(0,yt.jsxs)("div",{children:[(0,yt.jsx)(Zk,{className:"h-5 w-16 mb-3"}),(0,yt.jsxs)("div",{className:"grid grid-cols-[repeat(4,max-content)] gap-3",children:[(0,yt.jsx)(Zk,{className:"h-[42px] w-[130px] rounded-md"}),(0,yt.jsx)(Zk,{className:"h-[42px] w-[150px] rounded-md"}),(0,yt.jsx)(Zk,{className:"h-[42px] w-[140px] rounded-md"}),(0,yt.jsx)(Zk,{className:"h-[42px] w-[100px] rounded-md"})]})]}),(0,yt.jsxs)("div",{children:[(0,yt.jsx)(Zk,{className:"h-5 w-36 mb-3"}),(0,yt.jsxs)("div",{className:"grid grid-cols-[repeat(2,max-content)] gap-3",children:[(0,yt.jsx)(Zk,{className:"h-[42px] w-[90px] rounded-md"}),(0,yt.jsx)(Zk,{className:"h-[42px] w-[90px] rounded-md"})]})]}),(0,yt.jsxs)("div",{children:[(0,yt.jsx)(Zk,{className:"h-5 w-36 mb-1"}),(0,yt.jsx)("div",{className:"flex gap-3 mt-3 flex-wrap",children:[...Array(8)].map((e,t)=>(0,yt.jsx)(Zk,{className:"h-[34px] w-[46px] rounded-lg"},t))})]}),(0,yt.jsxs)("div",{className:"space-y-2",children:[(0,yt.jsx)(Zk,{className:"h-5 w-24 mb-3"}),(0,yt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,yt.jsx)(Zk,{className:"h-10 w-[80px] rounded-md"}),(0,yt.jsx)(Zk,{className:"h-10 w-[105px] rounded-md"}),(0,yt.jsx)(Zk,{className:"h-10 w-[125px] rounded-md"}),(0,yt.jsx)(Zk,{className:"h-10 w-[95px] rounded-md"})]}),(0,yt.jsx)(Zk,{className:"h-4 w-56"})]}),(0,yt.jsx)("div",{className:"flex justify-start gap-3 mt-6 mb-4",children:(0,yt.jsx)(Zk,{className:"h-10 w-[70px] rounded-md"})})]}),RD=()=>{const{getCurrentValue:e,updateSetting:t,isLoading:n,isError:r}=si(),[o,i]=(0,ct.useState)("box"),[s,a]=(0,ct.useState)("bottom-right"),[l,c]=(0,ct.useState)("576"),[u,d]=(0,ct.useState)("default"),[A,h]=(0,ct.useState)("fade"),[p,f]=(0,ct.useState)(!1);(0,ct.useLayoutEffect)(()=>{const t=e("notice_type")||"box",n=e("notice_position")||("banner"===t?"bottom":$o),r=e("banner_width")||"576",o=e("color_palette")||"default",s=e("banner_animation")||"fade";i(t),a(n),c(r),d(o),h(s),f(!!e("banner_overlay_enabled"))},[e("notice_type"),e("notice_position"),e("banner_width"),e("color_palette"),e("banner_animation"),e("banner_overlay_enabled")]);const m=e=>{a(e),t("notice_position",e)};return(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("Banner Layout","surecookie"),pageDescription:(0,pt.__)("Configure how and where your cookie banner appears on your website","surecookie"),children:n?(0,yt.jsx)(UD,{}):r?(0,yt.jsx)(pk,{color:"error",showIcon:!0,title:(0,pt.__)("Failed to load settings","surecookie"),message:(0,pt.__)("An error occurred while loading settings. Please refresh the page to try again.","surecookie")}):(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)("div",{className:'[&_input]:!px-3.5 [&_input]:!py-2.5 [&_input]:!pr-10"',children:(0,yt.jsx)(j_,{type:"file",id:"banner-logo",size:"md",accept:"image/*",placeholder:(0,pt.__)("Upload Logo","surecookie"),label:(0,pt.__)("Logo","surecookie"),readOnly:!0,value:"",onClick:e=>{if(e.preventDefault(),"undefined"!=typeof wp&&wp.media){const e=wp.media({title:(0,pt.__)("Select Logo","surecookie"),button:{text:(0,pt.__)("Use this logo","surecookie")},multiple:!1,library:{type:"image"}});e.on("select",()=>{const n=e.state().get("selection").first().toJSON();t("banner_logo",n.url)}),e.open()}}})}),(0,yt.jsx)(d_,{className:"!mt-2",imageUrl:e("banner_logo"),onRemove:()=>t("banner_logo","")})]}),(0,yt.jsxs)("div",{children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",className:"inline-block mb-3",children:(0,pt.__)("Banner Type","surecookie")}),(0,yt.jsxs)(MD.Group,{className:"grid-cols-[repeat(2,max-content)] [&>label]:w-fit [&>label]:min-w-0",onChange:e=>{i(e),t("notice_type",e),"banner"===e?(a("bottom"),t("notice_position","bottom")):"box"===e?(a("bottom-right"),t("notice_position","bottom-right")):(a(""),t("notice_position",""))},value:o,size:"sm",gapClassName:"gap-3",children:[(0,yt.jsx)(MD.Button,{label:{heading:(0,pt.__)("Floating Banner","surecookie")},value:"box",borderOn:!0}),(0,yt.jsx)(MD.Button,{label:{heading:(0,pt.__)("Full-width Banner","surecookie")},value:"banner",borderOn:!0})]})]}),"box"===o&&(0,yt.jsxs)("div",{children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",className:"inline-block mb-3",htmlFor:"banner-width",children:(0,pt.__)("Banner Width","surecookie")}),(0,yt.jsx)("div",{className:"flex items-center gap-2",children:(0,yt.jsx)(j_,{size:"md",id:"banner-width",type:"number",value:l,onChange:e=>{c(e),t("banner_width",e)},min:"300",max:"800",className:"w-36",suffix:(0,yt.jsx)(Iw,{as:"span",size:14,color:"help",children:(0,pt.__)("px","surecookie")})})})]}),(0,yt.jsxs)("div",{children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",className:"inline-block mb-3",children:(0,pt.__)("Position","surecookie")}),"box"===o&&(0,yt.jsxs)(MD.Group,{className:"grid-cols-[repeat(4,max-content)] [&>label]:w-fit [&>label]:min-w-0",gapClassName:"gap-3",onChange:m,value:s,size:"sm",children:[(0,yt.jsx)(MD.Button,{label:{heading:(0,pt.__)("Bottom Left","surecookie")},value:"bottom-left",borderOn:!0}),(0,yt.jsx)(MD.Button,{label:{heading:(0,pt.__)("Bottom Center","surecookie")},value:"bottom-center",borderOn:!0}),(0,yt.jsx)(MD.Button,{label:{heading:(0,pt.__)("Bottom Right","surecookie")},value:"bottom-right",borderOn:!0}),(0,yt.jsx)(MD.Button,{label:{heading:(0,pt.__)("Middle","surecookie")},value:"middle",borderOn:!0})]}),"banner"===o&&(0,yt.jsxs)(MD.Group,{className:"grid-cols-[repeat(2,max-content)] [&>label]:w-fit [&>label]:min-w-0",gapClassName:"gap-3",onChange:m,value:s,size:"sm",children:[(0,yt.jsx)(MD.Button,{label:{heading:(0,pt.__)("Top","surecookie")},value:"top",borderOn:!0}),(0,yt.jsx)(MD.Button,{label:{heading:(0,pt.__)("Bottom","surecookie")},value:"bottom",borderOn:!0})]})]}),(0,yt.jsxs)("div",{children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",className:"inline-block mb-3",children:(0,pt.__)("Banner Animation","surecookie")}),(0,yt.jsxs)(MD.Group,{className:"grid-cols-[repeat(2,max-content)] [&>label]:w-fit [&>label]:min-w-0",gapClassName:"gap-3",onChange:e=>{h(e),t("banner_animation",e)},value:A,size:"sm",children:[(0,yt.jsx)(MD.Button,{label:{heading:(0,pt.__)("Fade","surecookie")},value:"fade",borderOn:!0}),(0,yt.jsx)(MD.Button,{label:{heading:(0,pt.__)("Slide","surecookie")},value:"slide",borderOn:!0})]})]}),(0,yt.jsxs)("div",{children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",className:"inline-block mb-1",children:(0,ct.createInterpolateElement)((0,pt.__)("Color Palette: <span></span>","surecookie"),{span:(0,yt.jsx)(Iw,{as:"span",size:14,weight:400,color:"help",children:u===Zo[0]?.id?(0,pt.__)("Default","surecookie"):Zo.find(e=>e.id===u)?.name||(0,pt.__)("Default","surecookie")})})}),(0,yt.jsxs)("div",{className:"flex gap-3 mt-3 flex-wrap",children:[Zo.map(n=>{const r=(0,ht.applyFilters)("surecookie.bannerLayout.isPaletteSelected",u===n.id,{paletteId:n.id,getCurrentValue:e});return(0,yt.jsx)(e_,{content:n.name,placement:"top",children:(0,yt.jsx)("button",{onClick:()=>{return e=n.id,d(e),void t("color_palette",e);var e},"aria-label":n.name,className:jo("w-[3.25rem] h-9 p-2.5 flex gap-1 items-center justify-center cursor-pointer transition-all border border-solid border-border-subtle hover:scale-105 outline-none rounded-md focus:ring-2 focus:ring-brand-primary-600 focus:ring-offset-2",n.bgColor?"bg-gray-800":"bg-white",r&&"ring-2 ring-offset-2 ring-brand-primary-600"),style:n.bgColor&&{backgroundColor:n.bgColor},children:[n.acceptButton,n.declineButton].map((e,t)=>(0,yt.jsx)("div",{className:"w-3.5 h-3.5 rounded-full",style:{backgroundColor:e}},t))})},n.id)}),(0,ht.applyFilters)("surecookie.bannerLayout.paletteExtras",null,{getCurrentValue:e,updateSetting:t})]})]}),(0,yt.jsx)(DD,{}),(0,yt.jsxs)("div",{className:"space-y-3",children:[(0,yt.jsx)(Zb,{"aria-label":(0,pt.__)("Enable Background Overlay","surecookie"),id:"banner-overlay-switch",label:{heading:(0,pt.__)("Background Overlay","surecookie"),description:(0,pt.__)("Dim the page behind the banner and limit interaction until the visitor accepts or declines. The overlay is removed after a choice is made.","surecookie")},onChange:e=>{f(e),t("banner_overlay_enabled",e)},size:"sm",value:p}),p&&(0,yt.jsx)(pk,{color:"warning",showIcon:!0,message:(0,pt.__)("This layout highlights the consent banner and may affect user experience. Ensure it aligns with your regional consent requirements.","surecookie")})]}),(0,yt.jsx)(h_,{})]})})},zD=({headingWidth:e,descriptionWidth:t,className:n})=>(0,yt.jsx)("div",{className:"flex items-center justify-between",children:(0,yt.jsxs)("div",{className:jo("inline-flex items-start gap-3",n),children:[(0,yt.jsx)(Zk,{className:"w-10 h-5 rounded-full shrink-0"}),(0,yt.jsxs)("div",{className:"space-y-1",children:[(0,yt.jsx)(Zk,{className:`h-5 ${e}`}),t&&(0,yt.jsx)(Zk,{className:`h-4 ${t}`})]})]})}),QD=()=>(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Zk,{className:"h-5 w-52"}),(0,yt.jsx)(Zk,{className:"h-10 w-full rounded-md"}),(0,yt.jsx)(Zk,{className:"h-4 w-[28rem]"})]}),(0,yt.jsx)(zD,{headingWidth:"w-44",descriptionWidth:"w-[26rem]"}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Zk,{className:"h-5 w-28"}),(0,yt.jsx)(Zk,{className:"h-10 w-full rounded-md"}),(0,yt.jsx)(Zk,{className:"h-4 w-80"})]}),(0,yt.jsx)(zD,{headingWidth:"w-40",descriptionWidth:"w-[36rem]"}),(0,yt.jsx)("div",{className:"flex justify-start gap-3 mt-6 mb-4",children:(0,yt.jsx)(Zk,{className:"h-10 w-16 rounded-md"})})]}),HD=()=>{const{getCurrentValue:e,updateSetting:t,isLoading:n,isError:r}=si(),[o,i]=(0,ct.useState)(""),[s,a]=(0,ct.useState)(!1),l=Kn(),c=parseInt(e("consent_renewed_at"),10)||0;return(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("Consent & Data","surecookie"),pageDescription:(0,pt.__)("Control how long consent stays valid and how consent records are stored.","surecookie"),children:n?(0,yt.jsx)(QD,{}):r?(0,yt.jsx)(pk,{color:"error",showIcon:!0,title:(0,pt.__)("Failed to load settings","surecookie"),message:(0,pt.__)("An error occurred while loading settings. Please refresh the page to try again.","surecookie")}):(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"duration",children:(0,pt.__)("Consent Duration (in days)","surecookie")}),(0,yt.jsx)(j_,{id:"duration",type:"number",min:"1",max:"365",size:"md",value:e("consent_duration_days")||365,onChange:e=>(e=>{const n=parseInt(e,10);isNaN(n)||n<1||n>365?i((0,pt.__)("Please enter a value between 1 and 365 days.","surecookie")):(i(""),t("consent_duration_days",n))})(e),className:"w-full","aria-invalid":!!o,"aria-describedby":o?"duration-error":"duration-help"}),(0,yt.jsx)(Iw,{id:"duration-help",as:"p",size:14,color:"help",children:(0,pt.__)("How long user consent remains valid before requiring renewal (1–365 days).","surecookie")}),o&&(0,yt.jsx)(Iw,{id:"duration-error",role:"alert",as:"p",size:14,className:"text-red-500",children:o})]}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,yt.jsx)(Iw,{as:"p",size:14,weight:500,color:"primary",children:(0,pt.__)("Re-request Consent","surecookie")}),c>0&&(0,yt.jsx)(Iw,{as:"p",size:12,color:"help",children:(0,pt.sprintf)(/* translators: %s: date/time of the last renewal. */ /* translators: %s: date/time of the last renewal. */
3 (0,pt.__)("Last Requested: %s","surecookie"),new Date(1e3*c).toLocaleString())})]}),(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",children:(0,pt.__)("Ask all visitors to provide consent again. Use this after updating your cookie policy or adding new trackers. Existing consent will be marked as outdated, and the banner will reappear on the next visit.","surecookie")}),s?(0,yt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,yt.jsx)(Fa,{variant:"primary",size:"md",destructive:!0,onClick:async()=>{try{await l.mutateAsync({consent_renewed_at:Math.floor(Date.now()/1e3)}),a(!1),At.success((0,pt.__)("Consent requested. Visitors will be asked for consent again.","surecookie"))}catch(e){At.error((0,pt.__)("Could not Re-request Consent. Please try again.","surecookie"))}},disabled:l.isPending,children:l.isPending?(0,pt.__)("Renewing…","surecookie"):(0,pt.__)("Confirm Re-request","surecookie")}),(0,yt.jsx)(Fa,{variant:"ghost",size:"md",onClick:()=>a(!1),disabled:l.isPending,children:(0,pt.__)("Cancel","surecookie")})]}):(0,yt.jsx)(Fa,{variant:"outline",size:"md",onClick:()=>a(!0),children:(0,pt.__)("Re-request Consent","surecookie")})]}),(0,yt.jsx)("div",{className:"flex items-center justify-between",children:(0,yt.jsx)(Zb,{"aria-label":(0,pt.__)("Enable Consent Logging Switch","surecookie"),id:"consent-logging-switch",label:{description:(0,pt.__)("Store consent records in database for compliance reporting and analytics.","surecookie"),heading:(0,pt.__)("Enable Consent Logging","surecookie")},onChange:e=>{t("consent_logging_enabled",e)},size:"sm",value:e("consent_logging_enabled")??!1})}),e("consent_logging_enabled")&&(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"log-retention",children:(0,pt.__)("Clear Logs After","surecookie")}),(0,yt.jsxs)(lk,{value:e("consent_log_retention")||"never",onChange:e=>{t("consent_log_retention",e)},size:"md",children:[(0,yt.jsx)(lk.Button,{id:"log-retention",placeholder:(0,pt.__)("Select retention period","surecookie"),render:e=>ri.find(t=>t.value===e)?.label??(0,pt.__)("Never","surecookie")}),(0,yt.jsx)(lk.Options,{children:ri.map(e=>(0,yt.jsx)(lk.Option,{value:e.value,children:e.label},e.value))})]}),(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",children:(0,pt.__)("Automatically delete consent logs older than the selected period.","surecookie")})]}),(0,yt.jsx)("div",{className:"flex items-center justify-between",children:(0,yt.jsx)(Zb,{"aria-label":(0,pt.__)("Delete data on uninstall toggle","surecookie"),id:"delete-data-on-uninstall-switch",label:{heading:(0,pt.__)("Delete Data on Uninstall","surecookie"),description:(0,pt.__)("When enabled, all plugin data including consent logs, settings, and scan results will be permanently deleted when you uninstall SureCookie. Leave disabled to preserve data for compliance records or future reinstallation.","surecookie")},onChange:e=>t("delete_data_on_uninstall",e),size:"sm",value:e("delete_data_on_uninstall")??!1})}),e("delete_data_on_uninstall")&&(0,yt.jsx)(pk,{color:"warning",showIcon:!0,title:(0,pt.__)("Compliance Notice","surecookie"),message:(0,pt.__)("Consent logs may be required to demonstrate proof of consent under GDPR Article 7(1). Consider exporting consent records before uninstalling.","surecookie")}),(0,yt.jsx)(h_,{})]})})},qD=Bs("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),VD=Bs("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),KD={xs:{general:"text-xs min-w-6 h-6",ellipse:"text-xs min-w-6",icon:"size-4"},sm:{general:"text-xs min-w-8 h-8",ellipse:"text-xs min-w-8",icon:"size-4"},md:{general:"text-sm min-w-10 h-10",ellipse:"text-sm min-w-10",icon:"size-5"},lg:{general:"text-base min-w-12 h-12",ellipse:"text-base min-w-12",icon:"size-6"}},WD="group disabled:border-field-border-disabled opacity-50",GD=(0,ft.createContext)({size:"sm",disabled:!1}),$D=()=>(0,ft.useContext)(GD),YD=({size:e="sm",disabled:t=!1,ariaLabel:n="Pagination",children:r,className:o,...i})=>(0,yt.jsx)(GD.Provider,{value:{size:e,disabled:t},children:(0,yt.jsx)("nav",{"aria-label":n,className:wa("flex w-full justify-center box-border m-0",o),...i,children:r})});YD.displayName="Pagination";const ZD=(0,ft.forwardRef)(({className:e,...t},n)=>(0,yt.jsx)("ul",{ref:n,className:wa("m-0 p-0 w-full flex justify-center flex-row items-center gap-1","list-none",e),...t}));ZD.displayName="Pagination.Content";const XD=(0,ft.forwardRef)(({isActive:e=!1,ariaLabel:t,className:n,children:r,...o},i)=>{const{disabled:s}=$D();return(0,yt.jsx)("li",{ref:i,className:wa("flex",s&&WD),children:(0,yt.jsx)(JD,{isActive:e,disabled:s,"aria-label":t,className:n,...o,children:r})})});XD.displayName="Pagination.Item";const JD=({isActive:e=!1,tag:t="button",children:n,className:r,...o})=>{const{size:i,disabled:s}=$D(),a=e=>e.preventDefault();return(0,yt.jsx)(Fa,{tag:t,size:i,variant:"ghost",className:wa("no-underline bg-transparent p-0 m-0 border-none","flex justify-center items-center rounded text-button-secondary","focus:outline focus:outline-1 focus:outline-border-subtle focus:bg-button-tertiary-hover",KD[i].general,!s&&e&&"text-button-primary active:text-button-primary bg-brand-background-50",s&&[WD,"group-disabled:text-field-color-disabled","focus:ring-transparent cursor-not-allowed"],r),disabled:s,...o,"aria-current":e?"page":void 0,onClick:e=>xa(o.onClick||(()=>{}),s?a:()=>{})(e),children:(0,yt.jsx)("span",{className:"px-1 flex",children:n})})},eU=e=>{const{size:t,disabled:n}=$D();return(0,yt.jsx)("li",{className:wa("flex",n&&WD),children:(0,yt.jsx)(JD,{"aria-label":"Go to previous page",className:wa("[&>span]:flex [&>span]:items-center"),...e,children:(0,yt.jsx)(qD,{className:wa(KD[t].icon)})})})};eU.displayName="Pagination.Previous";const tU=e=>{const{size:t,disabled:n}=$D();return(0,yt.jsx)("li",{className:wa("flex",n&&WD),children:(0,yt.jsx)(JD,{"aria-label":"Go to next page",className:wa("[&>span]:flex [&>span]:items-center"),...e,children:(0,yt.jsx)(VD,{className:wa(KD[t].icon)})})})};tU.displayName="Pagination.Next";const nU=e=>{const{size:t,disabled:n}=$D();return(0,yt.jsxs)("li",{className:wa("flex",n&&WD),children:[(0,yt.jsx)("span",{className:wa("flex justify-center",KD[t].ellipse,n&&WD),"aria-hidden":"true",...e,children:"•••"}),(0,yt.jsx)("span",{className:"sr-only",children:"More pages"})]})};nU.displayName="Pagination.Ellipsis",YD.Content=ZD,YD.Item=XD,YD.Previous=eU,YD.Next=tU,YD.Ellipsis=nU;const rU=(0,ft.forwardRef)(({id:e,label:t,defaultChecked:n=!1,checked:r,onChange:o,indeterminate:i,disabled:s,size:a="md",className:l,...c},u)=>{const d=(0,ft.useMemo)(()=>e||`checkbox-${nm()}`,[e]),A=(0,ft.useMemo)(()=>`${d}-description`,[d]),h=(0,ft.useMemo)(()=>typeof r<"u",[r]),[p,f]=(0,ft.useState)(n||!1),m="primary",g={sm:{checkbox:"size-4 rounded gap-1",icon:"size-3",text:"text-sm",description:"text-sm",gap:"gap-0.5"},md:{checkbox:"size-5 rounded gap-1",icon:"size-4",text:"text-base",description:"text-sm",gap:"gap-1"}},y={primary:{checkbox:"border-border-strong hover:border-border-interactive checked:border-border-interactive bg-white checked:bg-toggle-on checked:hover:bg-toggle-on-hover checked:hover:border-toggle-on-hover focus:ring-2 focus:ring-offset-2 focus:ring-focus",icon:"text-white"}},v=(0,ft.useCallback)(()=>h?r:p,[h,r,p]),b=(0,ft.useCallback)(()=>(0,ft.isValidElement)(t)?t:t?.heading||t?.description?(0,yt.jsxs)("div",{className:g[a].gap,children:[t?.heading&&(0,yt.jsx)($b,{className:wa("text-text-primary font-medium leading-4 m-0",g[a].text,g[a].gap,s&&"text-text-disabled"),htmlFor:d,children:t?.heading}),t?.description&&(0,yt.jsx)($b,{tag:"p",id:A,className:wa("font-normal leading-5 m-0",g[a].description,s&&"text-text-disabled"),variant:"help",children:t?.description})]}):null,[t,a,s]);return(0,yt.jsxs)("div",{className:wa("inline-flex items-center justify-center gap-2",!!t&&"items-start",s&&"cursor-not-allowed"),children:[(0,yt.jsxs)("span",{className:wa("relative flex items-center justify-center rounded-full p-0.5",!s&&"cursor-pointer"),children:[(0,yt.jsx)("input",{ref:u,id:d,type:"checkbox",...i&&{"aria-checked":"mixed"},...t?.description&&{"aria-describedby":A},className:wa("peer relative cursor-pointer appearance-none transition-all m-0 before:content-[''] checked:before:content-[''] checked:before:hidden before:hidden !border-1.5 border-solid focus:outline-none",y[m].checkbox,g[a].checkbox,s&&"cursor-not-allowed disabled:bg-white checked:disabled:bg-white disabled:border-border-disabled checked:disabled:border-border-disabled",l),checked:v(),onChange:e=>{if(s)return;const t=e.target.checked;h||f(t),"function"==typeof o&&o(t)},disabled:s,...c}),(0,yt.jsx)("span",{"aria-hidden":"true",className:wa("pointer-events-none inline-flex items-center absolute top-2/4 not-rtl:left-2/4 rtl:right-2/4 -translate-y-2/4 -translate-x-2/4 text-white opacity-0 transition-opacity peer-checked:opacity-100",y[m].icon,s&&"cursor-not-allowed peer-disabled:text-border-disabled"),children:i?(0,yt.jsx)(om,{className:wa(g[a]?.icon)}):(0,yt.jsx)(Ea,{className:wa(g[a]?.icon)})})]}),!!t&&b()]})});rU.displayName="Checkbox";const oU=(0,ft.createContext)(void 0),iU=()=>{const e=(0,ft.useContext)(oU);if(!e)throw new Error("Table components must be used within Table component");return e},sU=({children:e,className:t,checkboxSelection:n=!1,...r})=>{const o={checkboxSelection:n},i=ft.Children.toArray(e).find(e=>ft.isValidElement(e)&&e.type===AU),s=ft.Children.toArray(e).filter(e=>ft.isValidElement(e)&&e.type!==AU);return(0,yt.jsx)(oU.Provider,{value:o,children:(0,yt.jsxs)("div",{className:"flow-root border-0.5 border-solid border-border-subtle rounded-md divide-y-0.5 divide-x-0 divide-solid divide-border-subtle overflow-hidden",children:[(0,yt.jsx)("div",{className:"overflow-x-auto w-full",children:(0,yt.jsx)("div",{className:"relative",children:(0,yt.jsx)("table",{className:wa("table-fixed min-w-full border-collapse border-spacing-0",t),...r,children:s})})}),i]})})},aU=({children:e,className:t,selected:n,onChangeSelection:r,indeterminate:o,disabled:i,...s})=>{const{checkboxSelection:a}=iU();return(0,yt.jsx)("thead",{className:wa("bg-background-secondary border-x-0 border-t-0 border-b-0.5 border-solid border-border-subtle",t),...s,children:(0,yt.jsxs)("tr",{children:[a&&(0,yt.jsx)("th",{scope:"col",className:"relative px-5.5 w-11 overflow-hidden",children:(0,yt.jsx)("div",{className:"absolute inset-0 grid grid-cols-1 place-content-center",children:(0,yt.jsx)(rU,{size:"sm",checked:n,indeterminate:o,disabled:i,onChange:e=>{"function"==typeof r&&r(e)},"aria-label":n?"Deselect all":"Select all"})})}),e]})})},lU=({children:e,className:t,...n})=>(0,yt.jsx)("th",{scope:"col",className:wa("p-3 text-left text-sm font-medium leading-5 text-text-primary",t),...n,children:e}),cU=({children:e,className:t,...n})=>(0,yt.jsx)("tbody",{className:wa("bg-background-primary divide-y-0.5 divide-x-0 divide-solid divide-border-subtle",t),...n,children:e}),uU=({children:e,selected:t,value:n,className:r,onChangeSelection:o,...i})=>{const{checkboxSelection:s}=iU();return(0,yt.jsxs)("tr",{className:wa("hover:bg-background-secondary",t&&"bg-background-secondary",r),...i,children:[s&&(0,yt.jsx)("td",{className:"relative px-5.5 w-11 overflow-hidden",children:(0,yt.jsx)("div",{className:"absolute inset-0 grid grid-cols-1 place-content-center",children:(0,yt.jsx)(rU,{size:"sm",checked:t,onChange:e=>{"function"==typeof o&&o(e,n)},"aria-label":"Select row"})})}),e]})},dU=({children:e,className:t,...n})=>(0,yt.jsx)("td",{className:wa("px-3 py-3.5 text-sm font-normal leading-5 text-text-secondary",t),...n,children:e}),AU=({children:e,className:t,...n})=>{const{checkboxSelection:r}=iU();return(0,yt.jsx)("div",{className:wa("px-3 py-3",r&&"px-4",t),...n,children:e})};sU.displayName="Table",aU.displayName="Table.Head",lU.displayName="Table.HeadCell",cU.displayName="Table.Body",uU.displayName="Table.Row",dU.displayName="Table.Cell",AU.displayName="Table.Footer",sU.Head=aU,sU.HeadCell=lU,sU.Body=cU,sU.Row=uU,sU.Cell=dU,sU.Footer=AU;const hU=_b("corner-down-left",[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]]),pU=_b("file-down",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]),fU=_b("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),mU=_b("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),gU=_b("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),yU=({isReceived:e,isShared:t,sharedSites:n,log:r})=>e||t?(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)("hr",{className:"border-border-subtle"}),(0,yt.jsxs)("div",{className:"space-y-3",children:[e&&(0,yt.jsxs)("div",{className:"rounded-lg border border-border-subtle overflow-hidden",children:[(0,yt.jsxs)("div",{className:"flex items-center gap-2.5 px-3.5 py-2.5 bg-background-secondary border-b border-border-subtle",children:[(0,yt.jsx)("div",{className:"shrink-0 w-5 h-5 rounded-full bg-blue-100 flex items-center justify-center",children:(0,yt.jsx)(hU,{size:11,className:"text-blue-600"})}),(0,yt.jsx)(Iw,{size:13,weight:500,color:"primary",children:(0,pt.__)("Received from","surecookie")}),(0,yt.jsx)(uw,{label:(0,pt.__)("Received","surecookie"),variant:"blue",size:"xs",className:"ml-auto"})]}),(0,yt.jsx)("div",{className:"px-3.5 py-3",children:(0,yt.jsx)(Iw,{size:13,className:"font-mono break-all",color:"primary",children:r.origin_site})})]}),t&&(0,yt.jsxs)("div",{className:"rounded-lg border border-border-subtle overflow-hidden",children:[(0,yt.jsxs)("div",{className:"flex items-center gap-2.5 px-3.5 py-2.5 bg-background-secondary border-b border-border-subtle",children:[(0,yt.jsx)("div",{className:"shrink-0 w-5 h-5 rounded-full bg-green-100 flex items-center justify-center",children:(0,yt.jsx)(Ib,{size:11,className:"text-green-600"})}),(0,yt.jsx)(Iw,{size:13,weight:500,color:"primary",children:(0,pt.sprintf)(/* translators: %d: number of sites */ /* translators: %d: number of sites */
4 (0,pt.__)("Shared to %d site(s)","surecookie"),n.length)}),(0,yt.jsx)(uw,{label:String(n.length),variant:"green",size:"xs",className:"ml-auto"})]}),(0,yt.jsx)("div",{className:"px-3.5 py-3 space-y-2",children:n.map((e,t)=>(0,yt.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,yt.jsxs)(Iw,{size:12,color:"tertiary",className:"shrink-0 tabular-nums",children:[t+1,"."]}),(0,yt.jsx)(Iw,{size:13,className:"font-mono break-all",color:"primary",children:e})]},`${e}-${t}`))})]})]})]}):null,vU=_b("shield-off",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]]),bU=({isReceived:e,preferences:t,categories:n})=>{if(!e)return null;const r=n.filter(e=>!Go.includes(e.id)&&!(e.id in t)).map(e=>e.name||e.id.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()));return 0===r.length?null:(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)("hr",{className:"border-border-subtle"}),(0,yt.jsxs)("div",{className:"rounded-lg border border-border-subtle overflow-hidden",children:[(0,yt.jsxs)("div",{className:"flex items-center gap-2.5 px-3.5 py-2.5 bg-background-secondary border-b border-border-subtle",children:[(0,yt.jsx)("div",{className:"shrink-0 w-5 h-5 rounded-full bg-yellow-100 flex items-center justify-center",children:(0,yt.jsx)(vU,{size:11,className:"text-yellow-600"})}),(0,yt.jsx)(Iw,{size:13,weight:500,color:"primary",children:(0,pt.__)("Consent not received for","surecookie")}),(0,yt.jsx)(e_,{content:(0,pt.__)("These categories exist only on this site and were not part of the forwarded consent. The visitor will be prompted to set their preferences for these when they visit this site directly.","surecookie"),placement:"top",className:"z-999999 max-w-xs",children:(0,yt.jsx)("span",{className:"inline-flex cursor-default",children:(0,yt.jsx)(hk,{size:14,className:"text-field-helper shrink-0","aria-label":(0,pt.__)("More information about these categories","surecookie")})})}),(0,yt.jsx)(uw,{label:String(r.length),variant:"yellow",size:"xs",className:"ml-auto"})]}),(0,yt.jsx)("div",{className:"px-3.5 py-3 space-y-2",children:r.map((e,t)=>(0,yt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,yt.jsx)("span",{className:"shrink-0 w-1.5 h-1.5 rounded-full bg-yellow-400"}),(0,yt.jsx)(Iw,{size:13,color:"primary",className:"capitalize",children:e})]},`${e}-${t}`))})]})]})},wU=({isOpen:e,setIsOpen:t,log:n})=>{const{data:r=[]}=Jn(),o=(0,ct.useMemo)(()=>Mo(n),[n]),i=(0,ct.useMemo)(()=>{try{return JSON.parse(n?.preferences||"{}")}catch(e){return{}}},[n]);if(!n)return null;const s=Po(n),a=o.length>0,l=Ro();return(0,yt.jsxs)(Hx,{design:"simple",exitOnEsc:!0,position:"right",scrollLock:!0,setOpen:t,open:e,transitionDuration:.15,className:"z-999999",children:[(0,yt.jsxs)(Hx.Panel,{className:"overflow-y-auto max-h-full",children:[(0,yt.jsx)(Hx.Header,{className:"border-b border-border-subtle",children:(0,yt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,yt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,yt.jsx)(Hx.Title,{children:(0,pt.__)("Consent Details","surecookie")}),s&&(0,yt.jsx)(uw,{label:(0,pt.__)("Received","surecookie"),variant:"blue",size:"xs"}),a&&(0,yt.jsx)(uw,{label:(0,pt.__)("Shared","surecookie"),variant:"green",size:"xs"})]}),(0,yt.jsx)(Hx.CloseButton,{})]})}),(0,yt.jsxs)(Hx.Body,{className:"overflow-x-hidden py-6 px-5 space-y-4 flex-none",children:[(0,yt.jsxs)("div",{className:"space-y-1",children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between",children:[l&&(0,yt.jsx)(Iw,{as:"span",size:14,weight:600,color:"primary",className:"font-mono",children:Oo(n.ip_address)}),(0,yt.jsx)(Iw,{as:"span",size:12,weight:400,color:"tertiary",children:Qo(n.timestamp,{includeTimezone:!0})})]}),l&&(0,yt.jsxs)("div",{className:"flex flex-col items-end gap-0.5",children:[(0,yt.jsx)(Iw,{as:"span",size:14,weight:400,color:"secondary",children:(0,pt.sprintf)(/* translators: %s: country name. */ /* translators: %s: country name. */
5 (0,pt.__)("Country: %s","surecookie"),Do(n.country))}),n.region&&(0,yt.jsx)(Iw,{as:"span",size:12,weight:400,color:"tertiary",children:(0,pt.sprintf)(/* translators: %s: state or region name. */ /* translators: %s: state or region name. */
6 (0,pt.__)("State / Region: %s","surecookie"),Uo(n.region))})]})]}),(0,yt.jsx)("hr",{className:"border-border-subtle"}),(0,yt.jsx)("div",{children:Object.keys(i).length>0?(0,yt.jsx)("div",{children:Object.entries(i).map(([e,t])=>{const n=r.find(t=>t.id===e),o=n?.name||e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()),i=(e=>{const t=To(e);return{statusText:t?(0,pt.__)("Accepted","surecookie"):(0,pt.__)("Declined","surecookie"),color:t?"green":"red"}})(t);return(0,yt.jsxs)("div",{className:"flex items-center justify-between gap-1.5 py-2",children:[(0,yt.jsx)(Iw,{as:"span",size:14,color:"primary",className:"capitalize",children:o}),(0,yt.jsx)(uw,{label:i.statusText,variant:i.color,size:"sm"})]},e)})}):(0,yt.jsx)(Iw,{as:"p",size:14,color:"secondary",className:"italic",children:(0,pt.__)("No data available.","surecookie")})}),(0,yt.jsx)(bU,{isReceived:s,preferences:i,categories:r}),(0,yt.jsx)(yU,{isReceived:s,isShared:a,sharedSites:o,log:n})]})]}),(0,yt.jsx)(Hx.Backdrop,{})]})},xU=(0,ft.createContext)(void 0);function kU(){const e=(0,ft.useContext)(xU);if(void 0===e)throw new Error("useDayPicker() must be used within a custom component.");return e}const _U={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function CU(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const BU={date:CU({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:CU({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:CU({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},SU={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function jU(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const EU={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:jU({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:jU({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:jU({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:jU({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:jU({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function NU(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(a,e=>e.test(s)):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(a,e=>e.test(s));let c;return c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(s.length)}}}const IU={ordinalNumber:(FU={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(FU.matchPattern);if(!n)return null;const r=n[0],o=e.match(FU.parsePattern);if(!o)return null;let i=FU.valueCallback?FU.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(r.length)}}),era:NU({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:NU({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:NU({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:NU({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:NU({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var FU;const TU={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=_U[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:BU,formatRelative:(e,t,n,r)=>SU[e],localize:EU,match:IU,options:{weekStartsOn:0,firstWeekContainsDate:1}};let LU={};function PU(){return LU}Math.pow(10,8);const MU=6048e5,OU=Symbol.for("constructDateFrom");function DU(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&OU in e?e[OU](t):e instanceof Date?new e.constructor(t):new Date(t)}function UU(e,t){return DU(t||e,e)}function RU(e){const t=UU(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function zU(e,...t){const n=DU.bind(null,e||t.find(e=>"object"==typeof e));return t.map(n)}function QU(e,t){const n=UU(e,t?.in);return n.setHours(0,0,0,0),n}function HU(e,t,n){const[r,o]=zU(n?.in,e,t),i=QU(r),s=QU(o),a=+i-RU(i),l=+s-RU(s);return Math.round((a-l)/864e5)}function qU(e,t){const n=UU(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function VU(e,t){const n=PU(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=UU(e,t?.in),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function KU(e,t){return VU(e,{...t,weekStartsOn:1})}function WU(e,t){const n=UU(e,t?.in),r=n.getFullYear(),o=DU(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=KU(o),s=DU(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const a=KU(s);return n.getTime()>=i.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function GU(e,t){const n=UU(e,t?.in),r=+KU(n)-+function(e,t){const n=WU(e,t),r=DU(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),KU(r)}(n);return Math.round(r/MU)+1}function $U(e,t){const n=UU(e,t?.in),r=n.getFullYear(),o=PU(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=DU(t?.in||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const a=VU(s,t),l=DU(t?.in||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const c=VU(l,t);return+n>=+a?r+1:+n>=+c?r:r-1}function YU(e,t){const n=UU(e,t?.in),r=+VU(n,t)-+function(e,t){const n=PU(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=$U(e,t),i=DU(t?.in||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),VU(i,t)}(n,t);return Math.round(r/MU)+1}function ZU(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const XU={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ZU("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):ZU(n+1,2)},d:(e,t)=>ZU(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>ZU(e.getHours()%12||12,t.length),H:(e,t)=>ZU(e.getHours(),t.length),m:(e,t)=>ZU(e.getMinutes(),t.length),s:(e,t)=>ZU(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return ZU(Math.trunc(r*Math.pow(10,n-3)),t.length)}},JU={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return XU.y(e,t)},Y:function(e,t,n,r){const o=$U(e,r),i=o>0?o:1-o;return"YY"===t?ZU(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):ZU(i,t.length)},R:function(e,t){return ZU(WU(e),t.length)},u:function(e,t){return ZU(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ZU(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ZU(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return XU.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ZU(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=YU(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):ZU(o,t.length)},I:function(e,t,n){const r=GU(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):ZU(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):XU.d(e,t)},D:function(e,t,n){const r=function(e,t){const n=UU(e,t?.in);return HU(n,qU(n))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):ZU(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return ZU(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return ZU(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return ZU(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return XU.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):XU.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):ZU(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):ZU(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):XU.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):XU.s(e,t)},S:function(e,t){return XU.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return tR(r);case"XXXX":case"XX":return nR(r);default:return nR(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return tR(r);case"xxxx":case"xx":return nR(r);default:return nR(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+eR(r,":");default:return"GMT"+nR(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+eR(r,":");default:return"GMT"+nR(r,":")}},t:function(e,t,n){return ZU(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return ZU(+e,t.length)}};function eR(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+ZU(i,2)}function tR(e,t){return e%60==0?(e>0?"-":"+")+ZU(Math.abs(e)/60,2):nR(e,t)}function nR(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+ZU(Math.trunc(r/60),2)+t+ZU(r%60,2)}const rR=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},oR=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},iR={p:oR,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return rR(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",rR(r,t)).replace("{{time}}",oR(o,t))}},sR=/^D+$/,aR=/^Y+$/,lR=["D","DD","YY","YYYY"];function cR(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}const uR=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dR=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,AR=/^'([^]*?)'?$/,hR=/''/g,pR=/[a-zA-Z]/;function fR(e,t,n){const r=PU(),o=n?.locale??r.locale??TU,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=UU(e,n?.in);if(!function(e){return!(!cR(e)&&"number"!=typeof e||isNaN(+UU(e)))}(a))throw new RangeError("Invalid time value");let l=t.match(dR).map(e=>{const t=e[0];return"p"===t||"P"===t?(0,iR[t])(e,o.formatLong):e}).join("").match(uR).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:mR(e)};if(JU[t])return{isToken:!0,value:e};if(t.match(pR))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});o.localize.preprocessor&&(l=o.localize.preprocessor(a,l));const c={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return l.map(r=>{if(!r.isToken)return r.value;const i=r.value;return(!n?.useAdditionalWeekYearTokens&&function(e){return aR.test(e)}(i)||!n?.useAdditionalDayOfYearTokens&&function(e){return sR.test(e)}(i))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),lR.includes(e))throw new RangeError(r)}(i,t,String(e)),(0,JU[i[0]])(a,i,o.localize,c)}).join("")}function mR(e){const t=e.match(AR);return t?t[1].replace(hR,"'"):e}const gR={...TU,labels:{labelDayButton:(e,t,n,r)=>{let o;o=r&&"function"==typeof r.format?r.format.bind(r):(e,t)=>fR(e,t,{locale:TU,...n});let i=o(e,"PPPP");return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let r;return r=n&&"function"==typeof n.format?n.format.bind(n):(e,n)=>fR(e,n,{locale:TU,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let o;o=r&&"function"==typeof r.format?r.format.bind(r):(e,t)=>fR(e,t,{locale:TU,...n});let i=o(e,"PPPP");return t?.today&&(i=`Today, ${i}`),i},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return r=n&&"function"==typeof n.format?n.format.bind(n):(e,n)=>fR(e,n,{locale:TU,...t}),r(e,"cccc")}}};Symbol.for("constructDateFrom");const yR={},vR={};function bR(e,t){try{const n=(yR[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return n in vR?vR[n]:xR(n,n.split(":"))}catch{if(e in vR)return vR[e];const t=e?.match(wR);return t?xR(e,t.slice(1)):NaN}}const wR=/([+-]\d\d):?(\d\d)?/;function xR(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return vR[e]=60*n+r>0?60*n+r+o:60*n-r-o}class kR extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(bR(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),BR(this,e)):this.setTime(Date.now())}static tz(e,...t){return t.length?new kR(...t,e):new kR(Date.now(),e)}withTimeZone(e){return new kR(+this,e)}getTimezoneOffset(){const e=-bR(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),CR(this),+this}[Symbol.for("constructDateFrom")](e){return new kR(+new Date(e),this.timeZone)}}const _R=/^(get|set)(?!UTC)/;function CR(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(60*-bR(e.timeZone,e)))}function BR(e,t){const n=Array.isArray(t)?function(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}(t):+e.internal,r=bR(e.timeZone,e),o=r>0?Math.floor(r):Math.ceil(r),i=new Date(+e);i.setUTCHours(i.getUTCHours()-1);const s=-new Date(+e).getTimezoneOffset(),a=-new Date(+i).getTimezoneOffset();let l=s;if(s-a&&s!==o&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){const t=new Date(+e),n=s-o;n&&t.setUTCMinutes(t.getUTCMinutes()+n);const r=bR(e.timeZone,t);(r>0?Math.floor(r):Math.ceil(r))===o&&(l=a)}const c=l-o;c&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+c);const u=new Date(+e);u.setUTCSeconds(0);const d=s>0?u.getSeconds():(u.getSeconds()-60)%60,A=Math.round(-60*bR(e.timeZone,e))%60;(A||d)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+A+d);const h=bR(e.timeZone,e),p=h>0?Math.floor(h):Math.ceil(h),f=p!==o,m=-new Date(+e).getTimezoneOffset()-p-c,g=p-o,y=n-60*p*1e3,v=g>0&&SR(e)-n===60*g*1e3&&SR(e,y)!==n;if(f&&m&&!v){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+m);const t=bR(e.timeZone,e),n=p-(t>0?Math.floor(t):Math.ceil(t));n&&m<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n)}CR(e);const b=(t?n:n+1e3*A)-+e.internal;b&&Math.abs(b)<18e5&&(Date.prototype.setTime.call(e,+e+b),CR(e))}function SR(e,t){const n=new Date(t??+e);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(60*-bR(e.timeZone,n))),+n}Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!_R.test(e))return;const t=e.replace(_R,"$1UTC");kR.prototype[t]&&(e.startsWith("get")?kR.prototype[e]=function(){return this.internal[t]()}:(kR.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),function(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),BR(e)}(this),+this},kR.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),CR(this),+this}))});class jR extends kR{static tz(e,...t){return t.length?new jR(...t,e):new jR(Date.now(),e)}toISOString(){const[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,t,n,r]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${function(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset();return[e>0?"-":"+",String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),String(Math.abs(e)%60).padStart(2,"0")]}withTimeZone(e){return new jR(+this,e)}[Symbol.for("constructDateFrom")](e){return new jR(+new Date(e),this.timeZone)}}function ER(e,t,n){const r=UU(e,n?.in);return isNaN(t)?DU(n?.in||e,NaN):t?(r.setDate(r.getDate()+t),r):r}function NR(e,t,n){const r=UU(e,n?.in);if(isNaN(t))return DU(n?.in||e,NaN);if(!t)return r;const o=r.getDate(),i=DU(n?.in||e,r.getTime());return i.setMonth(r.getMonth()+t+1,0),o>=i.getDate()?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}function IR(e,t,n){const[r,o]=zU(n?.in,e,t);return 12*(r.getFullYear()-o.getFullYear())+(r.getMonth()-o.getMonth())}function FR(e,t){const[n,r]=zU(e,t.start,t.end);return{start:n,end:r}}function TR(e,t){const n=PU(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=UU(e,t?.in),i=o.getDay(),s=6+(i<r?-7:0)-(i-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function LR(e,t){const n=UU(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function PR(e,t){return+UU(e)>+UU(t)}function MR(e,t){return+UU(e)<+UU(t)}function OR(e,t,n){const[r,o]=zU(n?.in,e,t);return+QU(r)===+QU(o)}function DR(e,t,n){const r=UU(e,n?.in),o=r.getFullYear(),i=r.getDate(),s=DU(n?.in||e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const a=function(e,t){const n=UU(e,t?.in),r=n.getFullYear(),o=n.getMonth(),i=DU(n,0);return i.setFullYear(r,o+1,0),i.setHours(0,0,0,0),i.getDate()}(s);return r.setMonth(t,Math.min(i,a)),r}function UR(e,t){const n=UU(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function RR(e,t){const n=t.startOfMonth(e),r=n.getDay();return 1===r?n:0===r?t.addDays(n,-6):t.addDays(n,-1*(r-1))}class zR{constructor(e,t){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?jR.tz(this.options.timeZone):new this.Date,this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new jR(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):ER(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):NR(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):function(e,t,n){return ER(e,7*t,n)}(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):function(e,t,n){return NR(e,12*t,n)}(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):HU(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):IR(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):function(e,t){const{start:n,end:r}=FR(t?.in,e);let o=+n>+r;const i=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0),s.setDate(1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);const l=[];for(;+s<=i;)l.push(DU(n,s)),s.setMonth(s.getMonth()+a);return o?l.reverse():l}(e),this.eachYearOfInterval=e=>{const t=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(e):function(e,t){const{start:n,end:r}=FR(t?.in,e);let o=+n>+r;const i=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0),s.setMonth(0,1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);const l=[];for(;+s<=i;)l.push(DU(n,s)),s.setFullYear(s.getFullYear()+a);return o?l.reverse():l}(e),n=new Set(t.map(e=>this.getYear(e)));if(n.size===t.length)return t;const r=[];return n.forEach(e=>{r.push(new Date(e,0,1))}),r},this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):function(e,t){const n=RR(e,t),r=function(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,1-r),i=t.addDays(o,34);return t.getMonth(e)===t.getMonth(i)?5:4}(e,t);return t.addDays(n,7*r-1)}(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):function(e,t){return TR(e,{...t,weekStartsOn:1})}(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):LR(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):TR(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):function(e,t){const n=UU(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}(e),this.format=(e,t,n)=>{const r=this.overrides?.format?this.overrides.format(e,t,this.options):fR(e,t,this.options);return this.options.numerals&&"latn"!==this.options.numerals?this.replaceDigits(r):r},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):GU(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):function(e,t){return UU(e,t?.in).getMonth()}(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):function(e,t){return UU(e,t?.in).getFullYear()}(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):YU(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):PR(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):MR(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):cR(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):OR(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):function(e,t,n){const[r,o]=zU(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):function(e,t,n){const[r,o]=zU(n?.in,e,t);return r.getFullYear()===o.getFullYear()}(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):function(e,t){let n,r=t?.in;return e.forEach(e=>{r||"object"!=typeof e||(r=DU.bind(null,e));const t=UU(e,r);(!n||n<t||isNaN(+t))&&(n=t)}),DU(r,n||NaN)}(e),this.min=e=>this.overrides?.min?this.overrides.min(e):function(e,t){let n,r=t?.in;return e.forEach(e=>{r||"object"!=typeof e||(r=DU.bind(null,e));const t=UU(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),DU(r,n||NaN)}(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):DR(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):function(e,t,n){const r=UU(e,n?.in);return isNaN(+r)?DU(n?.in||e,NaN):(r.setFullYear(t),r)}(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):RR(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):QU(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):KU(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):UR(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):VU(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):qU(e),this.options={locale:gR,...e},this.overrides=t}getDigitMap(){const{numerals:e="latn"}=this.options,t=new Intl.NumberFormat("en-US",{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){const t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){const e=this.options.locale?.code;return e&&zR.yearFirstLocales.has(e)?"year-first":"month-first"}formatMonthYear(e){const{locale:t,timeZone:n,numerals:r}=this.options,o=t?.code;if(o&&zR.yearFirstLocales.has(o))try{return new Intl.DateTimeFormat(o,{month:"long",year:"numeric",timeZone:n,numberingSystem:r}).format(e)}catch{}const i="year-first"===this.getMonthYearOrder()?"y LLLL":"LLLL y";return this.format(e,i)}}zR.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const QR=new zR;var HR,qR,VR,KR;function WR(e,t,n=!1,r=QR){let{from:o,to:i}=e;const{differenceInCalendarDays:s,isSameDay:a}=r;return o&&i?(s(i,o)<0&&([o,i]=[i,o]),s(t,o)>=(n?1:0)&&s(i,t)>=(n?1:0)):!n&&i?a(i,t):!(n||!o)&&a(o,t)}function GR(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}function $R(e){return Boolean(e&&"object"==typeof e&&"from"in e)}function YR(e){return Boolean(e&&"object"==typeof e&&"after"in e)}function ZR(e){return Boolean(e&&"object"==typeof e&&"before"in e)}function XR(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}function JR(e,t){return Array.isArray(e)&&e.every(t.isDate)}function ez(e,t,n=QR){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:i,isAfter:s}=n;return r.some(t=>{if("boolean"==typeof t)return t;if(n.isDate(t))return o(e,t);if(JR(t,n))return t.some(t=>o(e,t));if($R(t))return WR(t,e,!1,n);if(XR(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(GR(t)){const n=i(t.before,e)>0,r=i(t.after,e)<0;return s(t.before,t.after)?r&&n:n||r}return YR(t)?i(e,t.after)>0:ZR(t)?i(t.before,e)>0:"function"==typeof t&&t(e)})}function tz(e){return ft.createElement("button",{...e})}function nz(e){return ft.createElement("span",{...e})}function rz(e){const{size:t=24,orientation:n="left",className:r}=e;return ft.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},"up"===n&&ft.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===n&&ft.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===n&&ft.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===n&&ft.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function oz(e){const{day:t,modifiers:n,...r}=e;return ft.createElement("td",{...r})}function iz(e){const{day:t,modifiers:n,...r}=e,o=ft.useRef(null);return ft.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),ft.createElement("button",{ref:o,...r})}function sz(e){const{options:t,className:n,components:r,classNames:o,...i}=e,s=[o[HR.Dropdown],n].join(" "),a=t?.find(({value:e})=>e===i.value);return ft.createElement("span",{"data-disabled":i.disabled,className:o[HR.DropdownRoot]},ft.createElement(r.Select,{className:s,...i},t?.map(({value:e,label:t,disabled:n})=>ft.createElement(r.Option,{key:e,value:e,disabled:n},t))),ft.createElement("span",{className:o[HR.CaptionLabel],"aria-hidden":!0},a?.label,ft.createElement(r.Chevron,{orientation:"down",size:18,className:o[HR.Chevron]})))}function az(e){return ft.createElement("div",{...e})}function lz(e){return ft.createElement("div",{...e})}function cz(e){const{calendarMonth:t,displayIndex:n,...r}=e;return ft.createElement("div",{...r},e.children)}function uz(e){const{calendarMonth:t,displayIndex:n,...r}=e;return ft.createElement("div",{...r})}function dz(e){return ft.createElement("table",{...e})}function Az(e){return ft.createElement("div",{...e})}function hz(e){const{components:t}=kU();return ft.createElement(t.Dropdown,{...e})}function pz(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...i}=e,{components:s,classNames:a,labels:{labelPrevious:l,labelNext:c}}=kU(),u=(0,ft.useCallback)(e=>{o&&n?.(e)},[o,n]),d=(0,ft.useCallback)(e=>{r&&t?.(e)},[r,t]);return ft.createElement("nav",{...i},ft.createElement(s.PreviousMonthButton,{type:"button",className:a[HR.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":l(r),onClick:d},ft.createElement(s.Chevron,{disabled:!r||void 0,className:a[HR.Chevron],orientation:"left"})),ft.createElement(s.NextMonthButton,{type:"button",className:a[HR.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":!o||void 0,"aria-label":c(o),onClick:u},ft.createElement(s.Chevron,{disabled:!o||void 0,orientation:"right",className:a[HR.Chevron]})))}function fz(e){const{components:t}=kU();return ft.createElement(t.Button,{...e})}function mz(e){return ft.createElement("option",{...e})}function gz(e){const{components:t}=kU();return ft.createElement(t.Button,{...e})}function yz(e){const{rootRef:t,...n}=e;return ft.createElement("div",{...n,ref:t})}function vz(e){return ft.createElement("select",{...e})}function bz(e){const{week:t,...n}=e;return ft.createElement("tr",{...n})}function wz(e){return ft.createElement("th",{...e})}function xz(e){return ft.createElement("thead",{"aria-hidden":!0},ft.createElement("tr",{...e}))}function kz(e){const{week:t,...n}=e;return ft.createElement("th",{...n})}function _z(e){return ft.createElement("th",{...e})}function Cz(e){return ft.createElement("tbody",{...e})}function Bz(e){const{components:t}=kU();return ft.createElement(t.Dropdown,{...e})}function Sz(){const e={};for(const t in HR)e[HR[t]]=`rdp-${HR[t]}`;for(const t in qR)e[qR[t]]=`rdp-${qR[t]}`;for(const t in VR)e[VR[t]]=`rdp-${VR[t]}`;for(const t in KR)e[KR[t]]=`rdp-${KR[t]}`;return e}function jz(e,t,n){return(n??new zR(t)).formatMonthYear(e)}!function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"}(HR||(HR={})),function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"}(qR||(qR={})),function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"}(VR||(VR={})),function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"}(KR||(KR={}));const Ez=jz;function Nz(e,t,n){return(n??new zR(t)).format(e,"d")}function Iz(e,t=QR){return t.format(e,"LLLL")}function Fz(e,t,n){return(n??new zR(t)).format(e,"cccccc")}function Tz(e,t=QR){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function Lz(){return""}function Pz(e,t=QR){return t.format(e,"yyyy")}const Mz=Pz;function Oz(e,t,n,r){let o=(r??new zR(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const Dz=Oz;function Uz(e,t,n){return(n??new zR(t)).formatMonthYear(e)}const Rz=Uz;function zz(e,t,n,r){let o=(r??new zR(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function Qz(e){return"Choose the Month"}function Hz(){return""}function qz(e,t){return"Go to the Next Month"}function Vz(e){return"Go to the Previous Month"}function Kz(e,t,n){return(n??new zR(t)).format(e,"cccc")}function Wz(e,t){return`Week ${e}`}function Gz(e){return"Week Number"}function $z(e){return"Choose the Year"}const Yz=(e,t,n)=>t||(n?"function"==typeof n?n:(...e)=>n:e);function Zz(e,t){const n=t.locale?.labels??{};return{...at,...e??{},labelDayButton:Yz(Oz,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Yz(Qz,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Yz(qz,e?.labelNext,n.labelNext),labelPrevious:Yz(Vz,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Yz(Wz,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Yz($z,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Yz(Uz,e?.labelGrid,n.labelGrid),labelGridcell:Yz(zz,e?.labelGridcell,n.labelGridcell),labelNav:Yz(Hz,e?.labelNav,n.labelNav),labelWeekNumberHeader:Yz(Gz,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Yz(Kz,e?.labelWeekday,n.labelWeekday)}}function Xz(e,t,n,r,o){const{startOfMonth:i,startOfYear:s,endOfYear:a,eachMonthOfInterval:l,getMonth:c}=o;return l({start:s(e),end:a(e)}).map(e=>{const s=r.formatMonthDropdown(e,o);return{value:c(e),label:s,disabled:t&&e<i(t)||n&&e>i(n)||!1}})}function Jz(e,t,n,r,o=!1){if(!e)return;if(!t)return;const{startOfYear:i,endOfYear:s,eachYearOfInterval:a,getYear:l}=r,c=a({start:i(e),end:s(t)});return o&&c.reverse(),c.map(e=>{const t=n.formatYearDropdown(e,r);return{value:l(e),label:t,disabled:!1}})}const eQ=e=>e instanceof HTMLElement?e:null,tQ=e=>[...e.querySelectorAll("[data-animated-month]")??[]],nQ=e=>eQ(e.querySelector("[data-animated-caption]")),rQ=e=>eQ(e.querySelector("[data-animated-weeks]"));function oQ(e,t,n,r){const{month:o,defaultMonth:i,today:s=r.today(),numberOfMonths:a=1}=e;let l=o||i||s;const{differenceInCalendarMonths:c,addMonths:u,startOfMonth:d}=r;return n&&c(n,l)<a-1&&(l=u(n,-1*(a-1))),t&&c(l,t)<0&&(l=t),d(l)}class iQ{constructor(e,t,n=QR){this.date=e,this.displayMonth=t,this.outside=Boolean(t&&!n.isSameMonth(e,t)),this.dateLib=n,this.isoDate=n.format(e,"yyyy-MM-dd"),this.displayMonthId=n.format(t,"yyyy-MM"),this.dateMonthId=n.format(e,"yyyy-MM")}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class sQ{constructor(e,t){this.days=t,this.weekNumber=e}}class aQ{constructor(e,t){this.date=e,this.weeks=t}}function lQ(e,t){const[n,r]=(0,ft.useState)(e);return[void 0===t?n:t,r]}var cQ;function uQ(e){return!e[qR.disabled]&&!e[qR.hidden]&&!e[qR.outside]}function dQ(e,t,n,r,o,i,s,a=0){if(a>365)return;const l=function(e,t,n,r,o,i,s){const{ISOWeek:a,broadcastCalendar:l}=i,{addDays:c,addMonths:u,addWeeks:d,addYears:A,endOfBroadcastWeek:h,endOfISOWeek:p,endOfWeek:f,max:m,min:g,startOfBroadcastWeek:y,startOfISOWeek:v,startOfWeek:b}=s,w={day:c,week:d,month:u,year:A,startOfWeek:e=>l?y(e,s):a?v(e):b(e),endOfWeek:e=>l?h(e):a?p(e):f(e)};let x=w[e](n,"after"===t?1:-1);return"before"===t&&r?x=m([r,x]):"after"===t&&o&&(x=g([o,x])),x}(e,t,n.date,r,o,i,s),c=Boolean(i.disabled&&ez(l,i.disabled,s)),u=Boolean(i.hidden&&ez(l,i.hidden,s)),d=new iQ(l,l,s);return c||u?dQ(e,t,d,r,o,i,s,a+1):d}function AQ(e,t,n,r,o){const{autoFocus:i}=e,[s,a]=(0,ft.useState)(),l=function(e,t,n,r){let o,i=-1;for(const s of e){const e=t(s);uQ(e)&&(e[qR.focused]&&i<cQ.FocusedModifier?(o=s,i=cQ.FocusedModifier):r?.isEqualTo(s)&&i<cQ.LastFocused?(o=s,i=cQ.LastFocused):n(s.date)&&i<cQ.Selected?(o=s,i=cQ.Selected):e[qR.today]&&i<cQ.Today&&(o=s,i=cQ.Today))}return o||(o=e.find(e=>uQ(t(e)))),o}(t.days,n,r||(()=>!1),s),[c,u]=(0,ft.useState)(i?l:void 0);return{isFocusTarget:e=>Boolean(l?.isEqualTo(e)),setFocused:u,focused:c,blur:()=>{a(c),u(void 0)},moveFocus:(n,r)=>{if(!c)return;const i=dQ(n,r,c,t.navStart,t.navEnd,e,o);if(i){if(e.disableNavigation&&!t.days.some(e=>e.isEqualTo(i)))return;t.goToDay(i),u(i)}}}}function hQ(e,t,n=QR){return WR(e,t.from,!1,n)||WR(e,t.to,!1,n)||WR(t,e.from,!1,n)||WR(t,e.to,!1,n)}function pQ(e,t){const{disabled:n,excludeDisabled:r,resetOnSelect:o,selected:i,required:s,onSelect:a}=e,[l,c]=lQ(i,a?i:void 0),u=a?i:l;return{selected:u,select:(i,l,d)=>{const{min:A,max:h}=e;let p;if(i){const e=u?.from,n=u?.to,r=!!e&&!!n,a=!!e&&!!n&&t.isSameDay(e,n)&&t.isSameDay(i,e);p=!o||!r&&u?.from?function(e,t,n=0,r=0,o=!1,i=QR){const{from:s,to:a}=t||{},{isSameDay:l,isAfter:c,isBefore:u}=i;let d;if(s||a){if(s&&!a)d=l(s,e)?0===n?{from:s,to:e}:o?{from:s,to:void 0}:void 0:u(e,s)?{from:e,to:s}:{from:s,to:e};else if(s&&a)if(l(s,e)&&l(a,e))d=o?{from:s,to:a}:void 0;else if(l(s,e))d={from:s,to:n>0?void 0:e};else if(l(a,e))d={from:e,to:n>0?void 0:e};else if(u(e,s))d={from:e,to:a};else if(c(e,s))d={from:s,to:e};else{if(!c(e,a))throw new Error("Invalid range");d={from:s,to:e}}}else d={from:e,to:n>0?void 0:e};if(d?.from&&d?.to){const t=i.differenceInCalendarDays(d.to,d.from);(r>0&&t>r||n>1&&t<n)&&(d={from:e,to:void 0})}return d}(i,u,A,h,s,t):!s&&a?void 0:{from:i,to:void 0}}return r&&n&&p?.from&&p.to&&function(e,t,n=QR){const r=Array.isArray(t)?t:[t],o=r.filter(e=>"function"!=typeof e).some(t=>"boolean"==typeof t?t:n.isDate(t)?WR(e,t,!1,n):JR(t,n)?t.some(t=>WR(e,t,!1,n)):$R(t)?!(!t.from||!t.to)&&hQ(e,{from:t.from,to:t.to},n):XR(t)?function(e,t,n=QR){const r=Array.isArray(t)?t:[t];let o=e.from;const i=n.differenceInCalendarDays(e.to,e.from),s=Math.min(i,6);for(let e=0;e<=s;e++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}(e,t.dayOfWeek,n):GR(t)?n.isAfter(t.before,t.after)?hQ(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):ez(e.from,t,n)||ez(e.to,t,n):!(!YR(t)&&!ZR(t))&&(ez(e.from,t,n)||ez(e.to,t,n)));if(o)return!0;const i=r.filter(e=>"function"==typeof e);if(i.length){let t=e.from;const r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(i.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}({from:p.from,to:p.to},n,t)&&(p.from=i,p.to=void 0),a||c(p),a?.(p,i,l,d),p},isSelected:e=>u&&WR(u,e,!1,t)}}function fQ(e,t){return e instanceof jR&&e.timeZone===t?e:new jR(e,t)}function mQ(e,t,n){if(!n)return fQ(e,t);const r=fQ(e,t),o=new jR(r.getFullYear(),r.getMonth(),r.getDate(),12,0,0,t);return new Date(o.getTime())}function gQ(e,t,n){return"boolean"==typeof e||"function"==typeof e?e:e instanceof Date?mQ(e,t,n):Array.isArray(e)?e.map(e=>e instanceof Date?mQ(e,t,n):e):$R(e)?{...e,from:e.from?fQ(e.from,t):e.from,to:e.to?fQ(e.to,t):e.to}:GR(e)?{before:mQ(e.before,t,n),after:mQ(e.after,t,n)}:YR(e)?{after:mQ(e.after,t,n)}:ZR(e)?{before:mQ(e.before,t,n)}:e}function yQ(e,t,n){return e?Array.isArray(e)?e.map(e=>gQ(e,t,n)):gQ(e,t,n):e}function vQ(e){let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=fQ(t.today,n)),t.month&&(t.month=fQ(t.month,n)),t.defaultMonth&&(t.defaultMonth=fQ(t.defaultMonth,n)),t.startMonth&&(t.startMonth=fQ(t.startMonth,n)),t.endMonth&&(t.endMonth=fQ(t.endMonth,n)),"single"===t.mode&&t.selected?t.selected=fQ(t.selected,n):"multiple"===t.mode&&t.selected?t.selected=t.selected?.map(e=>fQ(e,n)):"range"===t.mode&&t.selected&&(t.selected={from:t.selected.from?fQ(t.selected.from,n):t.selected.from,to:t.selected.to?fQ(t.selected.to,n):t.selected.to}),void 0!==t.disabled&&(t.disabled=yQ(t.disabled,n)),void 0!==t.hidden&&(t.hidden=yQ(t.hidden,n)),t.modifiers)){const e={};Object.keys(t.modifiers).forEach(r=>{e[r]=yQ(t.modifiers?.[r],n)}),t.modifiers=e}const{components:r,formatters:o,labels:i,dateLib:s,locale:a,classNames:l}=(0,ft.useMemo)(()=>{const e={...gR,...t.locale},n=t.broadcastCalendar?1:t.weekStartsOn,r=t.noonSafe&&t.timeZone?function(e,t={}){const{weekStartsOn:n,locale:r}=t,o=n??r?.options?.weekStartsOn??0,i=t=>{const n="number"==typeof t||"string"==typeof t?new Date(t):t;return new jR(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0,e)},s=e=>{const t=i(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)};return{today:()=>i(jR.tz(e)),newDate:(t,n,r)=>new jR(t,n,r,12,0,0,e),startOfDay:e=>i(e),startOfWeek:(e,t)=>{const n=i(e),r=t?.weekStartsOn??o,s=(n.getDay()-r+7)%7;return n.setDate(n.getDate()-s),n},startOfISOWeek:e=>{const t=i(e),n=(t.getDay()-1+7)%7;return t.setDate(t.getDate()-n),t},startOfMonth:e=>{const t=i(e);return t.setDate(1),t},startOfYear:e=>{const t=i(e);return t.setMonth(0,1),t},endOfWeek:(e,t)=>{const n=i(e),r=(((t?.weekStartsOn??o)+6)%7-n.getDay()+7)%7;return n.setDate(n.getDate()+r),n},endOfISOWeek:e=>{const t=i(e),n=(7-t.getDay())%7;return t.setDate(t.getDate()+n),t},endOfMonth:e=>{const t=i(e);return t.setMonth(t.getMonth()+1,0),t},endOfYear:e=>{const t=i(e);return t.setMonth(11,31),t},eachMonthOfInterval:t=>{const n=i(t.start),r=i(t.end),o=[],s=new jR(n.getFullYear(),n.getMonth(),1,12,0,0,e),a=12*r.getFullYear()+r.getMonth();for(;12*s.getFullYear()+s.getMonth()<=a;)o.push(new jR(s,e)),s.setMonth(s.getMonth()+1,1);return o},addDays:(e,t)=>{const n=i(e);return n.setDate(n.getDate()+t),n},addWeeks:(e,t)=>{const n=i(e);return n.setDate(n.getDate()+7*t),n},addMonths:(e,t)=>{const n=i(e);return n.setMonth(n.getMonth()+t),n},addYears:(e,t)=>{const n=i(e);return n.setFullYear(n.getFullYear()+t),n},eachYearOfInterval:t=>{const n=i(t.start),r=i(t.end),o=[],s=new jR(n.getFullYear(),0,1,12,0,0,e);for(;s.getFullYear()<=r.getFullYear();)o.push(new jR(s,e)),s.setFullYear(s.getFullYear()+1,0,1);return o},getWeek:(e,t)=>YU(s(e),{weekStartsOn:t?.weekStartsOn??o,firstWeekContainsDate:t?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1}),getISOWeek:e=>GU(s(e)),differenceInCalendarDays:(e,t)=>HU(s(e),s(t)),differenceInCalendarMonths:(e,t)=>IR(s(e),s(t))}}(t.timeZone,{weekStartsOn:n,locale:e}):void 0,o=t.dateLib&&r?{...r,...t.dateLib}:t.dateLib??r,i=new zR({locale:e,weekStartsOn:n,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},o);return{dateLib:i,components:(a=t.components,{...it,...a}),formatters:(s=t.formatters,s?.formatMonthCaption&&!s.formatCaption&&(s.formatCaption=s.formatMonthCaption),s?.formatYearCaption&&!s.formatYearDropdown&&(s.formatYearDropdown=s.formatYearCaption),{...st,...s}),labels:Zz(t.labels,i.options),locale:e,classNames:{...Sz(),...t.classNames}};var s,a},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:s.today()});const{captionLayout:c,mode:u,navLayout:d,numberOfMonths:A=1,onDayBlur:h,onDayClick:p,onDayFocus:f,onDayKeyDown:m,onDayMouseEnter:g,onDayMouseLeave:y,onNextClick:v,onPrevClick:b,showWeekNumber:w,styles:x}=t,{formatCaption:k,formatDay:_,formatMonthDropdown:C,formatWeekNumber:B,formatWeekNumberHeader:S,formatWeekdayName:j,formatYearDropdown:E}=o,N=function(e,t){const[n,r]=function(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:i,startOfMonth:s,endOfMonth:a,addYears:l,endOfYear:c,newDate:u,today:d}=t,{fromYear:A,toYear:h,fromMonth:p,toMonth:f}=e;!n&&p&&(n=p),!n&&A&&(n=t.newDate(A,0,1)),!r&&f&&(r=f),!r&&h&&(r=u(h,11,31));const m="dropdown"===e.captionLayout||"dropdown-years"===e.captionLayout;return n?n=s(n):A?n=u(A,0,1):!n&&m&&(n=o(l(e.today??d(),-100))),r?r=a(r):h?r=u(h,11,31):!r&&m&&(r=c(e.today??d())),[n?i(n):n,r?i(r):r]}(e,t),{startOfMonth:o,endOfMonth:i}=t,s=oQ(e,n,r,t),[a,l]=lQ(s,e.month?s:void 0);(0,ft.useEffect)(()=>{const o=oQ(e,n,r,t);l(o)},[e.timeZone]);const{months:c,weeks:u,days:d,previousMonth:A,nextMonth:h}=(0,ft.useMemo)(()=>{const o=function(e,t,n,r){const{numberOfMonths:o=1}=n,i=[];for(let n=0;n<o;n++){const o=r.addMonths(e,n);if(t&&o>t)break;i.push(o)}return i}(a,r,{numberOfMonths:e.numberOfMonths},t),s=function(e,t,n,r){const o=e[0],i=e[e.length-1],{ISOWeek:s,fixedWeeks:a,broadcastCalendar:l}=n??{},{addDays:c,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:A,endOfISOWeek:h,endOfMonth:p,endOfWeek:f,isAfter:m,startOfBroadcastWeek:g,startOfISOWeek:y,startOfWeek:v}=r,b=l?g(o,r):s?y(o):v(o),w=l?A(i):s?h(p(i)):f(p(i)),x=t&&(l?A(t):s?h(t):f(t)),k=u(x&&m(w,x)?x:w,b),_=d(i,o)+1,C=[];for(let e=0;e<=k;e++){const t=c(b,e);C.push(t)}const B=(l?35:42)*_;if(a&&C.length<B){const e=B-C.length;for(let t=0;t<e;t++){const e=c(C[C.length-1],1);C.push(e)}}return C}(o,e.endMonth?i(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),l=function(e,t,n,r){const{addDays:o,endOfBroadcastWeek:i,endOfISOWeek:s,endOfMonth:a,endOfWeek:l,getISOWeek:c,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:A,startOfWeek:h}=r,p=e.reduce((e,p)=>{const f=n.broadcastCalendar?d(p,r):n.ISOWeek?A(p):h(p),m=n.broadcastCalendar?i(p):n.ISOWeek?s(a(p)):l(a(p)),g=t.filter(e=>e>=f&&e<=m),y=n.broadcastCalendar?35:42;if(n.fixedWeeks&&g.length<y){const e=t.filter(e=>{const t=y-g.length;return e>m&&e<=o(m,t)});g.push(...e)}const v=g.reduce((e,t)=>{const o=n.ISOWeek?c(t):u(t),i=e.find(e=>e.weekNumber===o),s=new iQ(t,p,r);return i?i.days.push(s):e.push(new sQ(o,[s])),e},[]),b=new aQ(p,v);return e.push(b),e},[]);return n.reverseMonths?p.reverse():p}(o,s,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),c=function(e){return e.reduce((e,t)=>e.concat(t.weeks.slice()),[].slice())}(l),u=function(e){const t=[];return e.reduce((e,n)=>{const r=n.weeks.reduce((e,t)=>e.concat(t.days.slice()),t.slice());return e.concat(r.slice())},t.slice())}(l),d=function(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i}=n,{startOfMonth:s,addMonths:a,differenceInCalendarMonths:l}=r,c=o?i??1:1,u=s(e);return t&&l(u,t)<=0?void 0:a(u,-c)}(a,n,e,t),A=function(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i=1}=n,{startOfMonth:s,addMonths:a,differenceInCalendarMonths:l}=r,c=o?i:1,u=s(e);return t&&l(t,e)<i?void 0:a(u,c)}(a,r,e,t);return{months:l,weeks:c,days:u,previousMonth:d,nextMonth:A}},[t,a.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:p,onMonthChange:f}=e,m=e=>{if(p)return;let t=o(e);n&&t<o(n)&&(t=o(n)),r&&t>o(r)&&(t=o(r)),l(t),f?.(t)};return{months:c,weeks:u,days:d,navStart:n,navEnd:r,previousMonth:A,nextMonth:h,goToMonth:m,goToDay:e=>{(e=>u.some(t=>t.days.some(t=>t.isEqualTo(e))))(e)||m(e.date)}}}(t,s),{days:I,months:F,navStart:T,navEnd:L,previousMonth:P,nextMonth:M,goToMonth:O}=N,D=function(e,t,n,r,o){const{disabled:i,hidden:s,modifiers:a,showOutsideDays:l,broadcastCalendar:c,today:u=o.today()}=t,{isSameDay:d,isSameMonth:A,startOfMonth:h,isBefore:p,endOfMonth:f,isAfter:m}=o,g=n&&h(n),y=r&&f(r),v={[qR.focused]:[],[qR.outside]:[],[qR.disabled]:[],[qR.hidden]:[],[qR.today]:[]},b={};for(const t of e){const{date:e,displayMonth:n}=t,r=Boolean(n&&!A(e,n)),h=Boolean(g&&p(e,g)),f=Boolean(y&&m(e,y)),w=Boolean(i&&ez(e,i,o)),x=Boolean(s&&ez(e,s,o))||h||f||!c&&!l&&r||c&&!1===l&&r,k=d(e,u);r&&v.outside.push(t),w&&v.disabled.push(t),x&&v.hidden.push(t),k&&v.today.push(t),a&&Object.keys(a).forEach(n=>{const r=a?.[n];r&&ez(e,r,o)&&(b[n]?b[n].push(t):b[n]=[t])})}return e=>{const t={[qR.focused]:!1,[qR.disabled]:!1,[qR.hidden]:!1,[qR.outside]:!1,[qR.today]:!1},n={};for(const n in v){const r=v[n];t[n]=r.some(t=>t===e)}for(const t in b)n[t]=b[t].some(t=>t===e);return{...t,...n}}}(I,t,T,L,s),{isSelected:U,select:R,selected:z}=function(e,t){const n=function(e,t){const{selected:n,required:r,onSelect:o}=e,[i,s]=lQ(n,o?n:void 0),a=o?n:i,{isSameDay:l}=t;return{selected:a,select:(e,t,n)=>{let i=e;return!r&&a&&a&&l(e,a)&&(i=void 0),o||s(i),o?.(i,e,t,n),i},isSelected:e=>!!a&&l(a,e)}}(e,t),r=function(e,t){const{selected:n,required:r,onSelect:o}=e,[i,s]=lQ(n,o?n:void 0),a=o?n:i,{isSameDay:l}=t,c=e=>a?.some(t=>l(t,e))??!1,{min:u,max:d}=e;return{selected:a,select:(e,t,n)=>{let i=[...a??[]];if(c(e)){if(a?.length===u)return;if(r&&1===a?.length)return;i=a?.filter(t=>!l(t,e))}else i=a?.length===d?[e]:[...i,e];return o||s(i),o?.(i,e,t,n),i},isSelected:c}}(e,t),o=pQ(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}(t,s)??{},{blur:Q,focused:H,isFocusTarget:q,moveFocus:V,setFocused:K}=AQ(t,N,D,U??(()=>!1),s),{labelDayButton:W,labelGridcell:G,labelGrid:$,labelMonthDropdown:Y,labelNav:Z,labelPrevious:X,labelNext:J,labelWeekday:ee,labelWeekNumber:te,labelWeekNumberHeader:ne,labelYearDropdown:re}=i,oe=(0,ft.useMemo)(()=>function(e,t,n,r){const o=r??e.today(),i=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),s=[];for(let t=0;t<7;t++){const n=e.addDays(i,t);s.push(n)}return s}(s,t.ISOWeek,t.broadcastCalendar,t.today),[s,t.ISOWeek,t.broadcastCalendar,t.today]),ie=void 0!==u||void 0!==p,se=(0,ft.useCallback)(()=>{P&&(O(P),b?.(P))},[P,O,b]),ae=(0,ft.useCallback)(()=>{M&&(O(M),v?.(M))},[O,M,v]),le=(0,ft.useCallback)((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),K(e),t.disabled||(R?.(e.date,t,n),p?.(e.date,t,n))},[R,p,K]),ce=(0,ft.useCallback)((e,t)=>n=>{K(e),f?.(e.date,t,n)},[f,K]),ue=(0,ft.useCallback)((e,t)=>n=>{Q(),h?.(e.date,t,n)},[Q,h]),de=(0,ft.useCallback)((e,n)=>r=>{const o={ArrowLeft:[r.shiftKey?"month":"day","rtl"===t.dir?"after":"before"],ArrowRight:[r.shiftKey?"month":"day","rtl"===t.dir?"before":"after"],ArrowDown:[r.shiftKey?"year":"week","after"],ArrowUp:[r.shiftKey?"year":"week","before"],PageUp:[r.shiftKey?"year":"month","before"],PageDown:[r.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(o[r.key]){r.preventDefault(),r.stopPropagation();const[e,t]=o[r.key];V(e,t)}m?.(e.date,n,r)},[V,m,t.dir]),Ae=(0,ft.useCallback)((e,t)=>n=>{g?.(e.date,t,n)},[g]),he=(0,ft.useCallback)((e,t)=>n=>{y?.(e.date,t,n)},[y]),pe=(0,ft.useCallback)(e=>t=>{const n=Number(t.target.value),r=s.setMonth(s.startOfMonth(e),n);O(r)},[s,O]),fe=(0,ft.useCallback)(e=>t=>{const n=Number(t.target.value),r=s.setYear(s.startOfMonth(e),n);O(r)},[s,O]),{className:me,style:ge}=(0,ft.useMemo)(()=>({className:[l[HR.Root],t.className].filter(Boolean).join(" "),style:{...x?.[HR.Root],...t.style}}),[l,t.className,t.style,x]),ye=function(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith("data-")&&(t[e]=n)}),t}(t),ve=(0,ft.useRef)(null);!function(e,t,{classNames:n,months:r,focused:o,dateLib:i}){const s=(0,ft.useRef)(null),a=(0,ft.useRef)(r),l=(0,ft.useRef)(!1);(0,ft.useLayoutEffect)(()=>{const c=a.current;if(a.current=r,!(t&&e.current&&e.current instanceof HTMLElement&&0!==r.length&&0!==c.length&&r.length===c.length))return;const u=i.isSameMonth(r[0].date,c[0].date),d=i.isAfter(r[0].date,c[0].date),A=d?n[KR.caption_after_enter]:n[KR.caption_before_enter],h=d?n[KR.weeks_after_enter]:n[KR.weeks_before_enter],p=s.current,f=e.current.cloneNode(!0);if(f instanceof HTMLElement?(tQ(f).forEach(e=>{if(!(e instanceof HTMLElement))return;const t=eQ(e.querySelector("[data-animated-month]"));t&&e.contains(t)&&e.removeChild(t);const n=nQ(e);n&&n.classList.remove(A);const r=rQ(e);r&&r.classList.remove(h)}),s.current=f):s.current=null,l.current||u||o)return;const m=p instanceof HTMLElement?tQ(p):[],g=tQ(e.current);if(g?.every(e=>e instanceof HTMLElement)&&m&&m.every(e=>e instanceof HTMLElement)){l.current=!0;const t=[];e.current.style.isolation="isolate";const r=(y=e.current,eQ(y.querySelector("[data-animated-nav]")));r&&(r.style.zIndex="1"),g.forEach((o,i)=>{const s=m[i];if(!s)return;o.style.position="relative",o.style.overflow="hidden";const a=nQ(o);a&&a.classList.add(A);const c=rQ(o);c&&c.classList.add(h);const u=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),r&&(r.style.zIndex=""),a&&a.classList.remove(A),c&&c.classList.remove(h),o.style.position="",o.style.overflow="",o.contains(s)&&o.removeChild(s)};t.push(u),s.style.pointerEvents="none",s.style.position="absolute",s.style.overflow="hidden",s.setAttribute("aria-hidden","true");const p=(e=>eQ(e.querySelector("[data-animated-weekdays]")))(s);p&&(p.style.opacity="0");const f=nQ(s);f&&(f.classList.add(d?n[KR.caption_before_exit]:n[KR.caption_after_exit]),f.addEventListener("animationend",u));const g=rQ(s);g&&g.classList.add(d?n[KR.weeks_before_exit]:n[KR.weeks_after_exit]),o.insertBefore(s,o.firstChild)})}var y})}(ve,Boolean(t.animate),{classNames:l,months:F,focused:H,dateLib:s});const be={dayPickerProps:t,selected:z,select:R,isSelected:U,months:F,nextMonth:M,previousMonth:P,goToMonth:O,getModifiers:D,components:r,classNames:l,styles:x,labels:i,formatters:o};return ft.createElement(xU.Provider,{value:be},ft.createElement(r.Root,{rootRef:t.animate?ve:void 0,className:me,style:ge,dir:t.dir,id:t.id,lang:t.lang??a.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...ye},ft.createElement(r.Months,{className:l[HR.Months],style:x?.[HR.Months]},!t.hideNavigation&&!d&&ft.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[HR.Nav],style:x?.[HR.Nav],"aria-label":Z(),onPreviousClick:se,onNextClick:ae,previousMonth:P,nextMonth:M}),F.map((e,n)=>ft.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:l[HR.Month],style:x?.[HR.Month],key:n,displayIndex:n,calendarMonth:e},"around"===d&&!t.hideNavigation&&0===n&&ft.createElement(r.PreviousMonthButton,{type:"button",className:l[HR.PreviousMonthButton],tabIndex:P?void 0:-1,"aria-disabled":!P||void 0,"aria-label":X(P),onClick:se,"data-animated-button":t.animate?"true":void 0},ft.createElement(r.Chevron,{disabled:!P||void 0,className:l[HR.Chevron],orientation:"rtl"===t.dir?"right":"left"})),ft.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:l[HR.MonthCaption],style:x?.[HR.MonthCaption],calendarMonth:e,displayIndex:n},c?.startsWith("dropdown")?ft.createElement(r.DropdownNav,{className:l[HR.Dropdowns],style:x?.[HR.Dropdowns]},(()=>{const n="dropdown"===c||"dropdown-months"===c?ft.createElement(r.MonthsDropdown,{key:"month",className:l[HR.MonthsDropdown],"aria-label":Y(),classNames:l,components:r,disabled:Boolean(t.disableNavigation),onChange:pe(e.date),options:Xz(e.date,T,L,o,s),style:x?.[HR.Dropdown],value:s.getMonth(e.date)}):ft.createElement("span",{key:"month"},C(e.date,s)),i="dropdown"===c||"dropdown-years"===c?ft.createElement(r.YearsDropdown,{key:"year",className:l[HR.YearsDropdown],"aria-label":re(s.options),classNames:l,components:r,disabled:Boolean(t.disableNavigation),onChange:fe(e.date),options:Jz(T,L,o,s,Boolean(t.reverseYears)),style:x?.[HR.Dropdown],value:s.getYear(e.date)}):ft.createElement("span",{key:"year"},E(e.date,s));return"year-first"===s.getMonthYearOrder()?[i,n]:[n,i]})(),ft.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},k(e.date,s.options,s))):ft.createElement(r.CaptionLabel,{className:l[HR.CaptionLabel],role:"status","aria-live":"polite"},k(e.date,s.options,s))),"around"===d&&!t.hideNavigation&&n===A-1&&ft.createElement(r.NextMonthButton,{type:"button",className:l[HR.NextMonthButton],tabIndex:M?void 0:-1,"aria-disabled":!M||void 0,"aria-label":J(M),onClick:ae,"data-animated-button":t.animate?"true":void 0},ft.createElement(r.Chevron,{disabled:!M||void 0,className:l[HR.Chevron],orientation:"rtl"===t.dir?"left":"right"})),n===A-1&&"after"===d&&!t.hideNavigation&&ft.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[HR.Nav],style:x?.[HR.Nav],"aria-label":Z(),onPreviousClick:se,onNextClick:ae,previousMonth:P,nextMonth:M}),ft.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===u||"range"===u,"aria-label":$(e.date,s.options,s)||void 0,className:l[HR.MonthGrid],style:x?.[HR.MonthGrid]},!t.hideWeekdays&&ft.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:l[HR.Weekdays],style:x?.[HR.Weekdays]},w&&ft.createElement(r.WeekNumberHeader,{"aria-label":ne(s.options),className:l[HR.WeekNumberHeader],style:x?.[HR.WeekNumberHeader],scope:"col"},S()),oe.map(e=>ft.createElement(r.Weekday,{"aria-label":ee(e,s.options,s),className:l[HR.Weekday],key:String(e),style:x?.[HR.Weekday],scope:"col"},j(e,s.options,s)))),ft.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:l[HR.Weeks],style:x?.[HR.Weeks]},e.weeks.map(e=>ft.createElement(r.Week,{className:l[HR.Week],key:e.weekNumber,style:x?.[HR.Week],week:e},w&&ft.createElement(r.WeekNumber,{week:e,style:x?.[HR.WeekNumber],"aria-label":te(e.weekNumber,{locale:a}),className:l[HR.WeekNumber],scope:"row",role:"rowheader"},B(e.weekNumber,s)),e.days.map(e=>{const{date:n}=e,o=D(e);if(o[qR.focused]=!o.hidden&&Boolean(H?.isEqualTo(e)),o[VR.selected]=U?.(n)||o.selected,$R(z)){const{from:e,to:t}=z;o[VR.range_start]=Boolean(e&&t&&s.isSameDay(n,e)),o[VR.range_end]=Boolean(e&&t&&s.isSameDay(n,t)),o[VR.range_middle]=WR(z,n,!0,s)}const i=function(e,t={},n={}){let r={...t?.[HR.Day]};return Object.entries(e).filter(([,e])=>!0===e).forEach(([e])=>{r={...r,...n?.[e]}}),r}(o,x,t.modifiersStyles),a=function(e,t,n={}){const r=Object.entries(e).filter(([,e])=>!0===e).reduce((e,[r])=>(n[r]?e.push(n[r]):t[qR[r]]?e.push(t[qR[r]]):t[VR[r]]&&e.push(t[VR[r]]),e),[t[HR.Day]]);return r}(o,l,t.modifiersClassNames),c=ie||o.hidden?void 0:G(n,o,s.options,s);return ft.createElement(r.Day,{key:`${e.isoDate}_${e.displayMonthId}`,day:e,modifiers:o,className:a.join(" "),style:i,role:"gridcell","aria-selected":o.selected||void 0,"aria-label":c,"data-day":e.isoDate,"data-month":e.outside?e.dateMonthId:void 0,"data-selected":o.selected||void 0,"data-disabled":o.disabled||void 0,"data-hidden":o.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":o.focused||void 0,"data-today":o.today||void 0},!o.hidden&&ie?ft.createElement(r.DayButton,{className:l[HR.DayButton],style:x?.[HR.DayButton],type:"button",day:e,modifiers:o,disabled:!o.focused&&o.disabled||void 0,"aria-disabled":o.focused&&o.disabled||void 0,tabIndex:q(e)?0:-1,"aria-label":W(n,o,s.options,s),onClick:le(e,o),onBlur:ue(e,o),onFocus:ce(e,o),onKeyDown:de(e,o),onMouseEnter:Ae(e,o),onMouseLeave:he(e,o)},_(n,s.options,s)):!o.hidden&&_(e.date,s.options,s))})))))))),t.footer&&ft.createElement(r.Footer,{className:l[HR.Footer],style:x?.[HR.Footer],role:"status","aria-live":"polite"},t.footer)))}function bQ(e,t,n){const r=UU(e,n?.in);return r.setMinutes(t),r}function wQ(e,t,n){const r=UU(e,n?.in);return r.setHours(t),r}!function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"}(cQ||(cQ={}));const xQ=()=>(0,yt.jsx)("span",{className:"bg-icon-interactive h-1 w-1 absolute rounded-full inline-block bottom-0 left-1/2 right-1/2"}),kQ=e=>fR(e,"E").slice(0,1),_Q=(e,t=24)=>Array.from({length:t},(t,n)=>e+n),CQ=(e,t)=>t?bQ(wQ(e,function(e,t){return UU(e,t?.in).getHours()}(t)),function(e,t){return UU(e,t?.in).getMinutes()}(t)):e,BQ=e=>"multiple"===e?[]:"range"===e?{from:void 0,to:void 0}:void 0,SQ=({width:e,className:t,classNames:n,selectedDates:r,setSelectedDates:o,showOutsideDays:i=!0,mode:s="single",variant:a="normal",alignment:l="horizontal",numberOfMonths:c,enableTimeSelection:u=!1,disabled:d,...A})=>{const h=ft.isValidElement(A.footer)||"function"==typeof A.footer,p=u&&"multiple"!==s,[f,m]=(0,ft.useState)(!1),[g,y]=(0,ft.useState)(!1),[v,b]=(0,ft.useState)((new Date).getFullYear()),[w,x]=(0,ft.useState)(v-v%24);void 0===r&&(r="multiple"===s?[]:"range"===s?{from:void 0,to:void 0}:void 0);const k=({weekdays:e})=>(0,yt.jsx)("div",{className:"flex justify-between",children:e.map((e,t)=>(0,yt.jsx)("button",{className:"h-10 w-10 px-1.5 py-2 text-center text-text-secondary text-sm font-normal content-center bg-transparent border-none shrink-0",children:e},t))}),_=e=>(0,yt.jsx)("div",{className:"flex flex-col bsf-force-ui-month-weeks",children:e.children[1].props.children.map((e,t)=>(0,yt.jsx)("div",{className:"flex flex-row justify-between",children:e},t))}),C=(e,t,n)=>(0,yt.jsxs)("div",{className:"flex flex-col items-start gap-1 flex-1",children:[(0,yt.jsx)("span",{className:"text-xs font-medium text-text-secondary",children:n}),(0,yt.jsx)("input",{type:"time",className:wa("w-full px-2 py-1 rounded text-sm font-normal text-text-primary bg-field-secondary-background outline outline-1 outline-border-subtle border-none transition-[color,box-shadow,outline] duration-200","focus:outline-focus-border focus:ring-2 focus:ring-toggle-on focus:ring-offset-2",!t&&"outline-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled"),value:t?fR(t,"HH:mm"):"",disabled:!t,onChange:t=>((e,t)=>{const{value:n}=e.target;if(!n)return;if("single"===t){if(!(r instanceof Date))return;const[e,t]=n.split(":").map(Number);return void o(bQ(wQ(r,e),t))}const i=r;if(!i?.[t])return;const[s,a]=n.split(":").map(Number),l=bQ(wQ(i[t],s),a),c={...i,[t]:l},u="from"===t?"to":"from";c.from&&c.to&&PR(c.from,c.to)&&(c[u]=CQ(c[u],l)),o(c)})(t,e),"aria-label":n})]}),B=p?(0,yt.jsx)("div",{className:wa("flex items-end gap-3 p-2 bg-background-primary border-solid border-border-subtle","presets"===a?"border-l border-r border-t-0 border-b":"border border-t-0",!h&&("presets"===a?"rounded-br-md":"rounded-bl-md rounded-br-md")),children:"single"===s?C("single",r,"Time"):(0,yt.jsxs)(yt.Fragment,{children:[C("from",r?.from,"Start time"),C("to",r?.to,"End time")]})}):null,S=wa("relative bg-background-primary shadow-datepicker-wrapper",e,"vertical"===l?"flex flex-col":"flex flex-row gap-3","normal"===a?"rounded-tr-md rounded-tl-md border border-solid border-border-subtle":"","presets"===a?"rounded-tr-md border border-solid border-border-subtle":"","dualdate"===a?"rounded-tr-md rounded-tl-md border border-solid border-border-subtle":"",h||p?"rounded-b-none":"rounded-bl-md rounded-br-md");return(0,yt.jsx)(yt.Fragment,{children:(0,yt.jsx)(vQ,{mode:s,selected:r,onSelect:(e,t)=>{if("range"===s){const n=r,i=e=>{return!!e&&(u?OR(t,e):(n=e,+UU(t)===+UU(n)));var n},s=(e,t)=>u?CQ(e,t):e;if(!n?.from&&!n?.to||n?.from&&n?.to)return i(n?.from)||i(n?.to)?void o({from:void 0,to:void 0}):void o({from:s(t,n?.from),to:void 0});if(n?.from&&!n?.to){if(u?MR(t,QU(n.from)):t<n.from)return void o({from:s(t,n.from),to:n.from});let e=s(t,n.to);return u&&MR(e,n.from)&&(e=CQ(e,n.from)),void o({from:n.from,to:e})}o(e)}else if("multiple"===s)r.some(e=>fR(e,"yyyy-MM-dd")===fR(t,"yyyy-MM-dd"))?o(r.filter(e=>fR(e,"yyyy-MM-dd")!==fR(t,"yyyy-MM-dd"))):o([...r,t]);else if("single"===s){if(u&&e instanceof Date&&r instanceof Date)return void o(CQ(e,r));o(e)}},hideNavigation:!0,captionLayout:"label",className:wa(t),formatters:{formatWeekdayName:kQ},classNames:{months:S,month:"flex flex-col p-2 gap-1 text-center w-full",caption:"relative flex justify-center items-center",table:"w-full border-separate border-spacing-0",head_row:"flex mb-1",head_cell:"text-muted-foreground rounded-md w-10 font-normal text-sm",row:"flex w-full mt-2",cell:"h-10 w-10 text-center text-sm p-0 relative",...n},numberOfMonths:c,showOutsideDays:!0,components:{MonthCaption:function(e){const{goToMonth:t,nextMonth:n,previousMonth:r}=kU(),o=fR(e.calendarMonth.date,"yyyy"),i=fR(e.calendarMonth.date,"MMMM"),s=new Date(e.calendarMonth.date);s.setDate(s.getDate()-s.getDay());const a=Array.from({length:7},(e,t)=>{const n=new Date(s);return n.setDate(s.getDate()+t),kQ(n)});let l;return l=g?`${w} - ${w+23}`:f?o:`${i} ${o}`,(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:"flex justify-between",children:[(0,yt.jsx)(Fa,{variant:"ghost",onClick:()=>{if(g)x(w-24);else if(f){const n=new Date(v-1,e.calendarMonth.date.getMonth());b(n.getFullYear()),t(n)}else t(r)},className:"bg-background-primary border-none cursor-pointer","aria-label":"Previous Button",icon:(0,yt.jsx)(qD,{className:"h-4 w-4 text-button-tertiary-color"})}),(0,yt.jsx)(Fa,{variant:"ghost",onClick:()=>{c>1||(f?(y(!0),m(!1)):g?y(!1):m(!f))},children:l}),(0,yt.jsx)(Fa,{variant:"ghost",onClick:()=>{if(g)x(w+24);else if(f){const n=new Date(v+1,e.calendarMonth.date.getMonth());b(n.getFullYear()),t(n)}else t(n)},className:"bg-background-primary border-none cursor-pointer","aria-label":"Next Button",icon:(0,yt.jsx)(VD,{className:"h-4 w-4 text-button-tertiary-color"})})]}),g&&(0,yt.jsx)("div",{className:"grid grid-cols-4 w-full",children:_Q(w).map(n=>(0,yt.jsxs)(Fa,{variant:"ghost",onClick:()=>(n=>{b(n),y(!1),m(!0),t(new Date(n,e.calendarMonth.date.getMonth()))})(n),className:wa("h-10 w-full text-center font-normal relative",n===v&&n!==(new Date).getFullYear()&&"bg-background-brand text-text-on-color hover:bg-background-brand hover:text-black",n===(new Date).getFullYear()&&"font-semibold"),children:[n,n===(new Date).getFullYear()&&xQ()]},n))}),f&&!g&&(0,yt.jsx)("div",{className:"grid grid-cols-4 gap-2 my-12",children:Array.from({length:12},(n,r)=>(0,yt.jsxs)(Fa,{variant:"ghost",onClick:()=>{m(!1),t(new Date(v,r))},className:wa("px-1.5 py-2 h-10 w-[4.375rem] text-center font-normal relative",r===e.calendarMonth.date.getMonth()&&r!==(new Date).getMonth()&&v===e.calendarMonth.date.getFullYear()&&e.calendarMonth.date.getFullYear()!==(new Date).getFullYear()&&"bg-background-brand text-text-on-color hover:bg-background-brand hover:text-black",r===(new Date).getMonth()&&(new Date).getFullYear()===v&&"font-semibold"),children:[fR(new Date(0,r),"MMM"),(new Date).getMonth()===r&&(new Date).getFullYear()===v&&xQ()]},r))}),!f&&!g&&(0,yt.jsx)(k,{weekdays:a})]})},DayButton:({day:e,modifiers:t,...n})=>{const{selected:o,today:s,disabled:a,outside:l,range_middle:c,range_start:u,range_end:d}=t,A=u||d||c,h=new Date,p=r?.to,f=fR(e.displayMonth,"yyyy-MM")===fR(h,"yyyy-MM"),m=p&&fR(p,"yyyy-MM")===fR(e.date,"yyyy-MM"),g=function(e,t,n){return NR(e,-t,n)}(h,1),y=fR(e.date,"yyyy-MM")===fR(g,"yyyy-MM"),v=f||m||A,b=!i&&l,w=wa("h-10 w-10 flex items-center justify-center transition text-text-secondary relative text-sm","border-none rounded",!o&&!A||l?"bg-transparent hover:bg-button-tertiary-hover":"bg-background-brand text-text-on-color",c&&v&&!l?"bg-brand-background-50 text-text-secondary rounded-none":"",a?"opacity-50 cursor-not-allowed text-text-disabled":"cursor-pointer",l&&!A||!v&&l||l&&!y||l?"bg-transparent opacity-50 text-text-disabled cursor-auto":"");return(0,yt.jsxs)("button",{className:wa(w,s&&"font-semibold",b&&"opacity-0",u&&"fui-range-start",d&&"fui-range-end",c&&"fui-range-middle",{"[&:is([data-hover=true])]:bg-brand-background-50 [&:is([data-hover=true])]:rounded-none":!A&&!o}),disabled:a||l,onClick:e=>{"function"==typeof n.onClick&&n.onClick(e)},onMouseEnter:e=>{"function"==typeof n.onMouseEnter&&n.onMouseEnter(e),e.currentTarget.setAttribute("data-hover","true")},onMouseLeave:e=>{"function"==typeof n.onMouseLeave&&n.onMouseLeave(e),e.currentTarget.setAttribute("data-hover","false")},"aria-label":fR(e.date,"EEEE, MMMM do, yyyy"),"data-selected":o,"data-day":fR(e.date,"yyyy-MM-dd"),children:[n.children,s&&v&&(0,yt.jsx)("span",{className:"absolute h-1 w-1 bg-background-brand rounded-full bottom-1"})]})},Day:e=>{const t=Object.entries(e).reduce((e,[t,n])=>(t.startsWith("data-")&&(e[t]=n),e),{});return(0,yt.jsx)("div",{...t,className:wa(e.className,"inline-flex"),children:e.children})},Weekdays:()=>(0,yt.jsx)(yt.Fragment,{}),Week:e=>(0,yt.jsx)("div",{className:wa("bsf-force-ui-month-week flex flex-row",e.className),children:e.children}),Months:e=>(0,yt.jsx)(yt.Fragment,{children:(0,yt.jsx)("div",{className:wa("bsf-force-ui-date-picker-month",S),children:e?.children?.map((e,t)=>e?(0,yt.jsx)(ft.Fragment,{children:e.map((e,t)=>(0,yt.jsxs)(ft.Fragment,{children:[t>0&&(0,yt.jsx)("div",{className:"border border-solid border-border-subtle border-l-0"}),e]},t))},t):null)})}),MonthGrid:e=>f||g?(0,yt.jsx)(yt.Fragment,{}):(0,yt.jsx)(_,{...e})},..."range"===s?{required:!1}:{},...A,footer:p?(0,yt.jsxs)(yt.Fragment,{children:[B,A.footer]}):A.footer,onDayMouseEnter:(e,t,n)=>{if("range"!==s)return;const o=r;if(o?.from&&o?.to||!o?.from&&!o?.to)return void Array.from(document.querySelectorAll("[data-hover]")).forEach(e=>{e.setAttribute("data-hover","false")});const i=n.target,l=new Date(i.dataset.day),c=MR(l,o.from),u=PR(l,o.to);let d;switch(a){case"dualdate":case"presets":d=i.closest(".bsf-force-ui-date-picker-month");break;default:d=i.closest(".bsf-force-ui-month-weeks")}const A=Array.from(d.querySelectorAll("button"));u&&A.sort((e,t)=>PR(new Date(e.dataset.day),new Date(t.dataset.day))?-1:1),c&&A.sort((e,t)=>MR(new Date(e.dataset.day),new Date(t.dataset.day))?1:-1);const h=A.indexOf(i),p=A.findIndex(e=>"true"===e.getAttribute("data-selected")),f=[],m=Math.min(h,p),g=Math.max(h,p);for(let e=m;e<=g;e++)A[e]?.disabled||f.push(A[e]);A.forEach(e=>{e.setAttribute("data-hover",f.includes(e)?"true":"false")})},disabled:d})})};function jQ(e){return QU(Date.now(),e)}function EQ(e){return DU(e,Date.now())}function NQ(e){const t=EQ(e?.in),n=t.getFullYear(),r=t.getMonth(),o=t.getDate(),i=EQ(e?.in);return i.setFullYear(n,r,o-1),i.setHours(0,0,0,0),i}function IQ(e,t,n){return ER(e,-t,n)}const FQ=({selectionType:e="single",variant:t="normal",presets:n=[],onCancel:r,onApply:o,onDateSelect:i,applyButtonText:s="Apply",cancelButtonText:a="Cancel",showOutsideDays:l=!0,isFooter:c=!0,enableTimeSelection:u=!1,selected:d,disabled:A,...h})=>{const[p,f]=(0,ft.useState)(()=>{if(!d)return BQ(e);const t="multiple"===e&&Array.isArray(d),n="single"===e&&d instanceof Date;return t||"range"===e&&"from"in d&&"to"in d||n?d:BQ(e)}),m=e=>{f(e),i&&i(e)},g=[{label:"Today",range:{from:jQ(),to:jQ()}},{label:"Yesterday",range:{from:NQ(),to:NQ()}},{label:"This Week",range:{from:VU(new Date,{weekStartsOn:1}),to:TR(new Date,{weekStartsOn:1})}},{label:"Last 7 Days",range:{from:QU(IQ(new Date,6)),to:QU(new Date)}},{label:"This Month",range:{from:UR(new Date),to:LR(new Date)}},{label:"Last 30 Days",range:{from:QU(IQ(new Date,29)),to:QU(new Date)}}],y=n.length>0?n:g,v=()=>{f("multiple"===e?[]:{from:void 0,to:void 0}),r&&r()},b=()=>{o&&o(p)};return"normal"===t?(0,yt.jsx)(SQ,{...h,mode:e,variant:t,width:"w-[18.5rem]",enableTimeSelection:u,selectedDates:p,showOutsideDays:l,setSelectedDates:m,footer:c&&(0,yt.jsxs)("div",{className:"flex bg-background-primary justify-end p-2 gap-3 border border-solid border-border-subtle border-t-0 rounded-md rounded-tl-none rounded-tr-none",children:[(0,yt.jsx)(Fa,{variant:"outline",onClick:v,children:a}),(0,yt.jsx)(Fa,{onClick:b,children:s})]}),disabled:A}):"dualdate"===t?(0,yt.jsx)(SQ,{mode:e,numberOfMonths:2,alignment:"horizontal",enableTimeSelection:u,selectedDates:p,setSelectedDates:m,showOutsideDays:l,variant:t,width:"w-auto",footer:(0,yt.jsxs)("div",{className:"flex bg-background-primary justify-end p-2 gap-3 border border-solid border-border-subtle border-t-0 rounded-md rounded-tl-none rounded-tr-none",children:[(0,yt.jsx)(Fa,{variant:"outline",onClick:v,children:a}),(0,yt.jsx)(Fa,{onClick:b,children:s})]}),disabled:A,...h}):"presets"===t?(0,yt.jsxs)("div",{className:"flex flex-row shadow-datepicker-wrapper",children:[(0,yt.jsx)("div",{className:"flex flex-col gap-1 p-3 items-start border border-solid border-border-subtle border-r-0 rounded-tl-md rounded-bl-md bg-background-primary",children:y.map((e,t)=>{const n=p&&"from"in p&&"to"in p&&p.from?.getTime()===e.range.from.getTime()&&p.to?.getTime()===e.range.to.getTime();return(0,yt.jsx)(Fa,{onClick:()=>(e=>{f(e)})(e.range),variant:"ghost",className:wa("text-left font-medium text-sm text-nowrap w-full",n&&"bg-brand-background-50"),children:e.label},t)})}),(0,yt.jsx)(SQ,{...h,mode:e,enableTimeSelection:u,selectedDates:p,setSelectedDates:m,variant:t,showOutsideDays:l,width:"w-auto",numberOfMonths:2,footer:(0,yt.jsxs)("div",{className:"flex justify-end p-2 gap-3 border-l border-r border-t-0 border-b border-solid border-border-subtle bg-background-primary rounded-br-md",children:[(0,yt.jsx)(Fa,{variant:"outline",onClick:v,children:a}),(0,yt.jsx)(Fa,{onClick:b,children:s})]}),disabled:A})]}):void 0},TQ=_b("calendar-days",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]),LQ=({dateFrom:e="",dateTo:t="",onChange:n})=>{const[r,o]=(0,ct.useState)(!1),[i,s]=(0,ct.useState)({top:0,left:0}),a=(0,ct.useRef)(null),l=(0,ct.useRef)(null),c=Boolean(e||t),u=c?`${e||"…"} to ${t||"…"}`:(0,pt.__)("All dates","surecookie"),d=c?{from:qo(e),to:qo(t)}:void 0,A=(0,ct.useCallback)(()=>{const e=a.current,t=l.current;if(!e)return;const n=e.getBoundingClientRect(),r=t?.offsetWidth??0,o=Math.max(8,n.right-r);s({top:n.bottom+8,left:o})},[]);(0,ct.useLayoutEffect)(()=>{if(r)return A(),window.addEventListener("resize",A),window.addEventListener("scroll",A,!0),()=>{window.removeEventListener("resize",A),window.removeEventListener("scroll",A,!0)}},[r,A]),(0,ct.useEffect)(()=>{if(!r)return;const e=e=>{l.current?.contains(e.target)||a.current?.contains(e.target)||o(!1)},t=e=>{"Escape"===e.key&&(o(!1),a.current?.focus())};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[r]);const h="undefined"!=typeof document?document.querySelector(".surecookie-styles"):null;return(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(Fa,{ref:a,variant:"outline",size:"sm",icon:(0,yt.jsx)(TQ,{size:16}),onClick:()=>o(e=>!e),"data-testid":"consent-logs-date-range","aria-label":u,"aria-expanded":r,"aria-haspopup":"dialog",title:u,className:jo("shrink-0 size-10 p-0",c&&"border-brand-primary-600 text-brand-primary-600")}),r&&h&&(0,ct.createPortal)((0,yt.jsx)("div",{ref:l,role:"dialog","aria-label":(0,pt.__)("Select date range","surecookie"),className:"fixed z-999999 rounded-lg shadow-lg bg-background-primary",style:{top:`${i.top}px`,left:`${i.left}px`},children:(0,yt.jsx)(FQ,{selectionType:"range",variant:"presets",showOutsideDays:!1,selected:d,onApply:e=>{const t=e?.from,r=e?.to;let i={from:"",to:""};if(t&&r){const e=new Date(t)>new Date(r);i={from:Ho(e?r:t),to:Ho(e?t:r)}}else t&&(i={from:Ho(t),to:Ho(t)});n?.(i),o(!1)},onCancel:()=>{n?.({from:"",to:""}),o(!1)},applyButtonText:(0,pt.__)("Apply","surecookie"),cancelButtonText:(0,pt.__)("Clear","surecookie")})}),h)]})},PQ=({count:e,showCheckbox:t=!0,showIpColumns:n=!0,showPagination:r=!0})=>(0,yt.jsxs)(sU,{children:[(0,yt.jsxs)(sU.Head,{children:[t&&(0,yt.jsx)(sU.HeadCell,{children:(0,yt.jsx)(Zk,{className:"h-4 w-4"})}),(0,yt.jsx)(sU.HeadCell,{children:(0,yt.jsx)(Zk,{className:"h-4 w-24"})}),n&&(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(sU.HeadCell,{children:(0,yt.jsx)(Zk,{className:"h-4 w-24"})}),(0,yt.jsx)(sU.HeadCell,{children:(0,yt.jsx)(Zk,{className:"h-4 w-24"})})]}),(0,yt.jsx)(sU.HeadCell,{children:(0,yt.jsx)(Zk,{className:"h-4 w-16"})}),(0,yt.jsx)(sU.HeadCell,{className:"text-right",children:(0,yt.jsx)("span",{className:"sr-only",children:(0,pt.__)("Actions","surecookie")})})]}),(0,yt.jsx)(sU.Body,{children:[...Array(e)].map((e,r)=>(0,yt.jsxs)(sU.Row,{children:[t&&(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Zk,{className:"h-4 w-4"})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Zk,{className:"h-4 w-32"})}),n&&(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Zk,{className:"h-6 w-28 rounded"})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Zk,{className:"h-4 w-24"})})]}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Zk,{className:"h-6 w-20 rounded-full"})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Zk,{className:"ml-auto h-4 w-16"})})]},r))}),r&&(0,yt.jsx)(sU.Footer,{children:(0,yt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,yt.jsx)(Zk,{className:"h-5 w-12"}),(0,yt.jsx)(Zk,{className:"h-8 w-1/4"})]})})]}),MQ=({icon:e,title:t,description:n,actionLabel:r,onActionClick:o})=>(0,yt.jsxs)("div",{className:"text-center px-8 py-12",children:[e&&(0,yt.jsx)(e,{className:"size-6 mx-auto text-icon-primary mb-4"}),(0,yt.jsx)(Iw,{as:"h6",weight:600,size:16,color:"primary",className:"mb-1",children:t}),(0,yt.jsx)(Iw,{as:"p",size:14,weight:400,color:"tertiary",className:"mb-4",children:n}),r&&o&&(0,yt.jsx)(Fa,{size:"sm",variant:"primary",onClick:o,children:r})]});var OQ=n(2284),DQ=Uint8Array,UQ=Uint16Array,RQ=Int32Array,zQ=new DQ([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),QQ=new DQ([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),HQ=new DQ([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qQ=function(e,t){for(var n=new UQ(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var o=new RQ(n[30]);for(r=1;r<30;++r)for(var i=n[r];i<n[r+1];++i)o[i]=i-n[r]<<5|r;return{b:n,r:o}},VQ=qQ(zQ,2),KQ=VQ.b,WQ=VQ.r;KQ[28]=258,WQ[258]=28;for(var GQ=qQ(QQ,0),$Q=(GQ.b,GQ.r),YQ=new UQ(32768),ZQ=0;ZQ<32768;++ZQ){var XQ=(43690&ZQ)>>1|(21845&ZQ)<<1;XQ=(61680&(XQ=(52428&XQ)>>2|(13107&XQ)<<2))>>4|(3855&XQ)<<4,YQ[ZQ]=((65280&XQ)>>8|(255&XQ)<<8)>>1}var JQ=function(e,t,n){for(var r=e.length,o=0,i=new UQ(t);o<r;++o)e[o]&&++i[e[o]-1];var s,a=new UQ(t);for(o=1;o<t;++o)a[o]=a[o-1]+i[o-1]<<1;if(n){s=new UQ(1<<t);var l=15-t;for(o=0;o<r;++o)if(e[o])for(var c=o<<4|e[o],u=t-e[o],d=a[e[o]-1]++<<u,A=d|(1<<u)-1;d<=A;++d)s[YQ[d]>>l]=c}else for(s=new UQ(r),o=0;o<r;++o)e[o]&&(s[o]=YQ[a[e[o]-1]++]>>15-e[o]);return s},eH=new DQ(288);for(ZQ=0;ZQ<144;++ZQ)eH[ZQ]=8;for(ZQ=144;ZQ<256;++ZQ)eH[ZQ]=9;for(ZQ=256;ZQ<280;++ZQ)eH[ZQ]=7;for(ZQ=280;ZQ<288;++ZQ)eH[ZQ]=8;var tH=new DQ(32);for(ZQ=0;ZQ<32;++ZQ)tH[ZQ]=5;var nH=JQ(eH,9,0),rH=JQ(tH,5,0),oH=function(e){return(e+7)/8|0},iH=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},sH=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},aH=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var o=n.length,i=n.slice();if(!o)return{t:pH,l:0};if(1==o){var s=new DQ(n[0].s+1);return s[n[0].s]=1,{t:s,l:1}}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var a=n[0],l=n[1],c=0,u=1,d=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};u!=o-1;)a=n[n[c].f<n[d].f?c++:d++],l=n[c!=u&&n[c].f<n[d].f?c++:d++],n[u++]={s:-1,f:a.f+l.f,l:a,r:l};var A=i[0].s;for(r=1;r<o;++r)i[r].s>A&&(A=i[r].s);var h=new UQ(A+1),p=lH(n[u-1],h,0);if(p>t){r=0;var f=0,m=p-t,g=1<<m;for(i.sort(function(e,t){return h[t.s]-h[e.s]||e.f-t.f});r<o;++r){var y=i[r].s;if(!(h[y]>t))break;f+=g-(1<<p-h[y]),h[y]=t}for(f>>=m;f>0;){var v=i[r].s;h[v]<t?f-=1<<t-h[v]++-1:++r}for(;r>=0&&f;--r){var b=i[r].s;h[b]==t&&(--h[b],++f)}p=t}return{t:new DQ(h),l:p}},lH=function(e,t,n){return-1==e.s?Math.max(lH(e.l,t,n+1),lH(e.r,t,n+1)):t[e.s]=n},cH=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new UQ(++t),r=0,o=e[0],i=1,s=function(e){n[r++]=e},a=1;a<=t;++a)if(e[a]==o&&a!=t)++i;else{if(!o&&i>2){for(;i>138;i-=138)s(32754);i>2&&(s(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(s(o),--i;i>6;i-=6)s(8304);i>2&&(s(i-3<<5|8208),i=0)}for(;i--;)s(o);i=1,o=e[a]}return{c:n.subarray(0,r),n:t}},uH=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},dH=function(e,t,n){var r=n.length,o=oH(t+2);e[o]=255&r,e[o+1]=r>>8,e[o+2]=255^e[o],e[o+3]=255^e[o+1];for(var i=0;i<r;++i)e[o+i+4]=n[i];return 8*(o+4+r)},AH=function(e,t,n,r,o,i,s,a,l,c,u){iH(t,u++,n),++o[256];for(var d=aH(o,15),A=d.t,h=d.l,p=aH(i,15),f=p.t,m=p.l,g=cH(A),y=g.c,v=g.n,b=cH(f),w=b.c,x=b.n,k=new UQ(19),_=0;_<y.length;++_)++k[31&y[_]];for(_=0;_<w.length;++_)++k[31&w[_]];for(var C=aH(k,7),B=C.t,S=C.l,j=19;j>4&&!B[HQ[j-1]];--j);var E,N,I,F,T=c+5<<3,L=uH(o,eH)+uH(i,tH)+s,P=uH(o,A)+uH(i,f)+s+14+3*j+uH(k,B)+2*k[16]+3*k[17]+7*k[18];if(l>=0&&T<=L&&T<=P)return dH(t,u,e.subarray(l,l+c));if(iH(t,u,1+(P<L)),u+=2,P<L){E=JQ(A,h,0),N=A,I=JQ(f,m,0),F=f;var M=JQ(B,S,0);for(iH(t,u,v-257),iH(t,u+5,x-1),iH(t,u+10,j-4),u+=14,_=0;_<j;++_)iH(t,u+3*_,B[HQ[_]]);u+=3*j;for(var O=[y,w],D=0;D<2;++D){var U=O[D];for(_=0;_<U.length;++_){var R=31&U[_];iH(t,u,M[R]),u+=B[R],R>15&&(iH(t,u,U[_]>>5&127),u+=U[_]>>12)}}}else E=nH,N=eH,I=rH,F=tH;for(_=0;_<a;++_){var z=r[_];if(z>255){sH(t,u,E[257+(R=z>>18&31)]),u+=N[R+257],R>7&&(iH(t,u,z>>23&31),u+=zQ[R]);var Q=31&z;sH(t,u,I[Q]),u+=F[Q],Q>3&&(sH(t,u,z>>5&8191),u+=QQ[Q])}else sH(t,u,E[z]),u+=N[z]}return sH(t,u,E[256]),u+N[256]},hH=new RQ([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),pH=new DQ(0),fH=function(e,t,n,r,o,i){var s=i.z||e.length,a=new DQ(r+s+5*(1+Math.ceil(s/7e3))+o),l=a.subarray(r,a.length-o),c=i.l,u=7&(i.r||0);if(t){u&&(l[0]=i.r>>3);for(var d=hH[t-1],A=d>>13,h=8191&d,p=(1<<n)-1,f=i.p||new UQ(32768),m=i.h||new UQ(p+1),g=Math.ceil(n/3),y=2*g,v=function(t){return(e[t]^e[t+1]<<g^e[t+2]<<y)&p},b=new RQ(25e3),w=new UQ(288),x=new UQ(32),k=0,_=0,C=i.i||0,B=0,S=i.w||0,j=0;C+2<s;++C){var E=v(C),N=32767&C,I=m[E];if(f[N]=I,m[E]=N,S<=C){var F=s-C;if((k>7e3||B>24576)&&(F>423||!c)){u=AH(e,l,0,b,w,x,_,B,j,C-j,u),B=k=_=0,j=C;for(var T=0;T<286;++T)w[T]=0;for(T=0;T<30;++T)x[T]=0}var L=2,P=0,M=h,O=N-I&32767;if(F>2&&E==v(C-O))for(var D=Math.min(A,F)-1,U=Math.min(32767,C),R=Math.min(258,F);O<=U&&--M&&N!=I;){if(e[C+L]==e[C+L-O]){for(var z=0;z<R&&e[C+z]==e[C+z-O];++z);if(z>L){if(L=z,P=O,z>D)break;var Q=Math.min(O,z-2),H=0;for(T=0;T<Q;++T){var q=C-O+T&32767,V=q-f[q]&32767;V>H&&(H=V,I=q)}}}O+=(N=I)-(I=f[N])&32767}if(P){b[B++]=268435456|WQ[L]<<18|$Q[P];var K=31&WQ[L],W=31&$Q[P];_+=zQ[K]+QQ[W],++w[257+K],++x[W],S=C+L,++k}else b[B++]=e[C],++w[e[C]]}}for(C=Math.max(C,S);C<s;++C)b[B++]=e[C],++w[e[C]];u=AH(e,l,c,b,w,x,_,B,j,C-j,u),c||(i.r=7&u|l[u/8|0]<<3,u-=7,i.h=m,i.p=f,i.i=C,i.w=S)}else{for(C=i.w||0;C<s+c;C+=65535){var G=C+65535;G>=s&&(l[u/8|0]=c,G=s),u=dH(l,u+1,e.subarray(C,G))}i.i=s}return function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new DQ(e.subarray(t,n))}(a,0,r+oH(u)+o)},mH=function(){var e=1,t=0;return{p:function(n){for(var r=e,o=t,i=0|n.length,s=0;s!=i;){for(var a=Math.min(s+2655,i);s<a;++s)o+=r+=n[s];r=(65535&r)+15*(r>>16),o=(65535&o)+15*(o>>16)}e=r,t=o},d:function(){return(255&(e%=65521))<<24|(65280&e)<<8|(255&(t%=65521))<<8|t>>8}}},gH=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function yH(e,t){t||(t={});var n=mH();n.p(e);var r=function(e,t,n,r,o){if(!o&&(o={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),s=new DQ(i.length+e.length);s.set(i),s.set(e,i.length),e=s,o.w=i.length}return fH(e,null==t.level?6:t.level,null==t.mem?o.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,r,o)}(e,t,t.dictionary?6:2,4);return function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var o=mH();o.p(t.dictionary),gH(e,2,o.d())}}(r,t),gH(r,r.length-4,n.d()),r}var vH="undefined"!=typeof TextDecoder&&new TextDecoder;try{vH.decode(pH,{stream:!0})}catch(e){}function bH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bH(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xH(e,t="utf8"){return new TextDecoder(t).decode(e)}"function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout&&setTimeout;const kH=new TextEncoder,_H=(()=>{const e=new Uint8Array(4);return!((new Uint32Array(e.buffer)[0]=1)&e[0])})(),CH={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class BH{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(e=8192,t={}){let n=!1;"number"==typeof e?e=new ArrayBuffer(e):(n=!0,this.lastWrittenByte=e.byteLength);const r=t.offset?t.offset>>>0:0,o=e.byteLength-r;let i=r;(ArrayBuffer.isView(e)||e instanceof BH)&&(e.byteLength!==e.buffer.byteLength&&(i=e.byteOffset+r),e=e.buffer),this.lastWrittenByte=n?o:0,this.buffer=e,this.length=o,this.byteLength=o,this.byteOffset=i,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,i,o),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const e=this._marks.pop();if(void 0===e)throw new Error("Mark stack empty");return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){const t=2*(this.offset+e),n=new Uint8Array(t);n.set(new Uint8Array(this.buffer)),this.buffer=n.buffer,this.length=t,this.byteLength=t,this._data=new DataView(this.buffer)}return this}readBoolean(){return 0!==this.readUint8()}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,"uint8")}readArray(e,t){const n=CH[t].BYTES_PER_ELEMENT*e,r=this.byteOffset+this.offset,o=this.buffer.slice(r,r+n);if(this.littleEndian===_H&&"uint8"!==t&&"int8"!==t){const e=new Uint8Array(this.buffer.slice(r,r+n));e.reverse();const o=new CH[t](e.buffer);return this.offset+=n,o.reverse(),o}const i=new CH[t](o);return this.offset+=n,i}readInt16(){const e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){const e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){const e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){const e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){const e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){const e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){const e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){const e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let t="";for(let n=0;n<e;n++)t+=this.readChar();return t}readUtf8(e=1){return xH(this.readBytes(e))}decodeText(e=1,t="utf8"){return xH(this.readBytes(e),t)}writeBoolean(e){return this.writeUint8(e?255:0),this}writeInt8(e){return this.ensureAvailable(1),this._data.setInt8(this.offset++,e),this._updateLastWrittenByte(),this}writeUint8(e){return this.ensureAvailable(1),this._data.setUint8(this.offset++,e),this._updateLastWrittenByte(),this}writeByte(e){return this.writeUint8(e)}writeBytes(e){this.ensureAvailable(e.length);for(let t=0;t<e.length;t++)this._data.setUint8(this.offset++,e[t]);return this._updateLastWrittenByte(),this}writeInt16(e){return this.ensureAvailable(2),this._data.setInt16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(e){return this.ensureAvailable(2),this._data.setUint16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(e){return this.ensureAvailable(4),this._data.setInt32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(e){return this.ensureAvailable(4),this._data.setUint32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(e){return this.ensureAvailable(4),this._data.setFloat32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(e){return this.ensureAvailable(8),this._data.setFloat64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(e){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(e){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(e){return this.writeUint8(e.charCodeAt(0))}writeChars(e){for(let t=0;t<e.length;t++)this.writeUint8(e.charCodeAt(t));return this}writeUtf8(e){return this.writeBytes(function(e){return kH.encode(e)}(e))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function SH(e){let t=e.length;for(;--t>=0;)e[t]=0}const jH=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),EH=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),NH=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),IH=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),FH=new Array(576);SH(FH);const TH=new Array(60);SH(TH);const LH=new Array(512);SH(LH);const PH=new Array(256);SH(PH);const MH=new Array(29);SH(MH);const OH=new Array(30);function DH(e,t,n,r,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}let UH,RH,zH;function QH(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}SH(OH);const HH=e=>e<256?LH[e]:LH[256+(e>>>7)],qH=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},VH=(e,t,n)=>{e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,qH(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},KH=(e,t,n)=>{VH(e,n[2*t],n[2*t+1])},WH=(e,t)=>{let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1},GH=(e,t,n)=>{const r=new Array(16);let o,i,s=0;for(o=1;o<=15;o++)s=s+n[o-1]<<1,r[o]=s;for(i=0;i<=t;i++){let t=e[2*i+1];0!==t&&(e[2*i]=WH(r[t]++,t))}},$H=e=>{let t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},YH=e=>{e.bi_valid>8?qH(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},ZH=(e,t,n,r)=>{const o=2*t,i=2*n;return e[o]<e[i]||e[o]===e[i]&&r[t]<=r[n]},XH=(e,t,n)=>{const r=e.heap[n];let o=n<<1;for(;o<=e.heap_len&&(o<e.heap_len&&ZH(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!ZH(t,r,e.heap[o],e.depth));)e.heap[n]=e.heap[o],n=o,o<<=1;e.heap[n]=r},JH=(e,t,n)=>{let r,o,i,s,a=0;if(0!==e.sym_next)do{r=255&e.pending_buf[e.sym_buf+a++],r+=(255&e.pending_buf[e.sym_buf+a++])<<8,o=e.pending_buf[e.sym_buf+a++],0===r?KH(e,o,t):(i=PH[o],KH(e,i+256+1,t),s=jH[i],0!==s&&(o-=MH[i],VH(e,o,s)),r--,i=HH(r),KH(e,i,n),s=EH[i],0!==s&&(r-=OH[i],VH(e,r,s)))}while(a<e.sym_next);KH(e,256,t)},eq=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,o=t.stat_desc.has_stree,i=t.stat_desc.elems;let s,a,l,c=-1;for(e.heap_len=0,e.heap_max=573,s=0;s<i;s++)0!==n[2*s]?(e.heap[++e.heap_len]=c=s,e.depth[s]=0):n[2*s+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,n[2*l]=1,e.depth[l]=0,e.opt_len--,o&&(e.static_len-=r[2*l+1]);for(t.max_code=c,s=e.heap_len>>1;s>=1;s--)XH(e,n,s);l=i;do{s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],XH(e,n,1),a=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=a,n[2*l]=n[2*s]+n[2*a],e.depth[l]=(e.depth[s]>=e.depth[a]?e.depth[s]:e.depth[a])+1,n[2*s+1]=n[2*a+1]=l,e.heap[1]=l++,XH(e,n,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const n=t.dyn_tree,r=t.max_code,o=t.stat_desc.static_tree,i=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length;let c,u,d,A,h,p,f=0;for(A=0;A<=15;A++)e.bl_count[A]=0;for(n[2*e.heap[e.heap_max]+1]=0,c=e.heap_max+1;c<573;c++)u=e.heap[c],A=n[2*n[2*u+1]+1]+1,A>l&&(A=l,f++),n[2*u+1]=A,u>r||(e.bl_count[A]++,h=0,u>=a&&(h=s[u-a]),p=n[2*u],e.opt_len+=p*(A+h),i&&(e.static_len+=p*(o[2*u+1]+h)));if(0!==f){do{for(A=l-1;0===e.bl_count[A];)A--;e.bl_count[A]--,e.bl_count[A+1]+=2,e.bl_count[l]--,f-=2}while(f>0);for(A=l;0!==A;A--)for(u=e.bl_count[A];0!==u;)d=e.heap[--c],d>r||(n[2*d+1]!==A&&(e.opt_len+=(A-n[2*d+1])*n[2*d],n[2*d+1]=A),u--)}})(e,t),GH(n,c,e.bl_count)},tq=(e,t,n)=>{let r,o,i=-1,s=t[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)o=s,s=t[2*(r+1)+1],++a<l&&o===s||(a<c?e.bl_tree[2*o]+=a:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[32]++):a<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=0,i=o,0===s?(l=138,c=3):o===s?(l=6,c=3):(l=7,c=4))},nq=(e,t,n)=>{let r,o,i=-1,s=t[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),r=0;r<=n;r++)if(o=s,s=t[2*(r+1)+1],!(++a<l&&o===s)){if(a<c)do{KH(e,o,e.bl_tree)}while(0!==--a);else 0!==o?(o!==i&&(KH(e,o,e.bl_tree),a--),KH(e,16,e.bl_tree),VH(e,a-3,2)):a<=10?(KH(e,17,e.bl_tree),VH(e,a-3,3)):(KH(e,18,e.bl_tree),VH(e,a-11,7));a=0,i=o,0===s?(l=138,c=3):o===s?(l=6,c=3):(l=7,c=4)}};let rq=!1;const oq=(e,t,n,r)=>{VH(e,0+(r?1:0),3),YH(e),qH(e,n),qH(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n};var iq={_tr_init:e=>{rq||((()=>{let e,t,n,r,o;const i=new Array(16);for(n=0,r=0;r<28;r++)for(MH[r]=n,e=0;e<1<<jH[r];e++)PH[n++]=r;for(PH[n-1]=r,o=0,r=0;r<16;r++)for(OH[r]=o,e=0;e<1<<EH[r];e++)LH[o++]=r;for(o>>=7;r<30;r++)for(OH[r]=o<<7,e=0;e<1<<EH[r]-7;e++)LH[256+o++]=r;for(t=0;t<=15;t++)i[t]=0;for(e=0;e<=143;)FH[2*e+1]=8,e++,i[8]++;for(;e<=255;)FH[2*e+1]=9,e++,i[9]++;for(;e<=279;)FH[2*e+1]=7,e++,i[7]++;for(;e<=287;)FH[2*e+1]=8,e++,i[8]++;for(GH(FH,287,i),e=0;e<30;e++)TH[2*e+1]=5,TH[2*e]=WH(e,5);UH=new DH(FH,jH,257,286,15),RH=new DH(TH,EH,0,30,15),zH=new DH(new Array(0),NH,0,19,7)})(),rq=!0),e.l_desc=new QH(e.dyn_ltree,UH),e.d_desc=new QH(e.dyn_dtree,RH),e.bl_desc=new QH(e.bl_tree,zH),e.bi_buf=0,e.bi_valid=0,$H(e)},_tr_stored_block:oq,_tr_flush_block:(e,t,n,r)=>{let o,i,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=(e=>{let t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0})(e)),eq(e,e.l_desc),eq(e,e.d_desc),s=(e=>{let t;for(tq(e,e.dyn_ltree,e.l_desc.max_code),tq(e,e.dyn_dtree,e.d_desc.max_code),eq(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*IH[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),o=e.opt_len+3+7>>>3,i=e.static_len+3+7>>>3,i<=o&&(o=i)):o=i=n+5,n+4<=o&&-1!==t?oq(e,t,n,r):4===e.strategy||i===o?(VH(e,2+(r?1:0),3),JH(e,FH,TH)):(VH(e,4+(r?1:0),3),((e,t,n,r)=>{let o;for(VH(e,t-257,5),VH(e,n-1,5),VH(e,r-4,4),o=0;o<r;o++)VH(e,e.bl_tree[2*IH[o]+1],3);nq(e,e.dyn_ltree,t-1),nq(e,e.dyn_dtree,n-1)})(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),JH(e,e.dyn_ltree,e.dyn_dtree)),$H(e),r&&YH(e)},_tr_tally:(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(PH[n]+256+1)]++,e.dyn_dtree[2*HH(t)]++),e.sym_next===e.sym_end),_tr_align:e=>{VH(e,2,3),KH(e,256,FH),(e=>{16===e.bi_valid?(qH(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)})(e)}},sq=(e,t,n,r)=>{let o=65535&e,i=e>>>16&65535,s=0;for(;0!==n;){s=n>2e3?2e3:n,n-=s;do{o=o+t[r++]|0,i=i+o|0}while(--s);o%=65521,i%=65521}return o|i<<16};const aq=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t})());var lq=(e,t,n,r)=>{const o=aq,i=r+n;e^=-1;for(let n=r;n<i;n++)e=e>>>8^o[255&(e^t[n])];return-1^e},cq={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},uq={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:dq,_tr_stored_block:Aq,_tr_flush_block:hq,_tr_tally:pq,_tr_align:fq}=iq,{Z_NO_FLUSH:mq,Z_PARTIAL_FLUSH:gq,Z_FULL_FLUSH:yq,Z_FINISH:vq,Z_BLOCK:bq,Z_OK:wq,Z_STREAM_END:xq,Z_STREAM_ERROR:kq,Z_DATA_ERROR:_q,Z_BUF_ERROR:Cq,Z_DEFAULT_COMPRESSION:Bq,Z_FILTERED:Sq,Z_HUFFMAN_ONLY:jq,Z_RLE:Eq,Z_FIXED:Nq,Z_DEFAULT_STRATEGY:Iq,Z_UNKNOWN:Fq,Z_DEFLATED:Tq}=uq,Lq=258,Pq=262,Mq=42,Oq=113,Dq=666,Uq=(e,t)=>(e.msg=cq[t],t),Rq=e=>2*e-(e>4?9:0),zq=e=>{let t=e.length;for(;--t>=0;)e[t]=0},Qq=e=>{let t,n,r,o=e.w_size;t=e.hash_size,r=t;do{n=e.head[--r],e.head[r]=n>=o?n-o:0}while(--t);t=o,r=t;do{n=e.prev[--r],e.prev[r]=n>=o?n-o:0}while(--t)};let Hq=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask;const qq=(e,t)=>{let n;if(e.legacy_hash)n=e.ins_h=Hq(e,e.ins_h,e.window[t+3-1]);else{const r=e.window,o=r[t]|r[t+1]<<8|r[t+2]<<16|r[t+3]<<24;n=e.ins_h=Math.imul(o,66521)+66521>>>16&e.hash_mask}const r=e.prev[t&e.w_mask]=e.head[n];return e.head[n]=t,r},Vq=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},Kq=(e,t)=>{hq(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Vq(e.strm)},Wq=(e,t)=>{e.pending_buf[e.pending++]=t},Gq=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},$q=(e,t,n,r)=>{let o=e.avail_in;return o>r&&(o=r),0===o?0:(e.avail_in-=o,t.set(e.input.subarray(e.next_in,e.next_in+o),n),1===e.state.wrap?e.adler=sq(e.adler,t,o,n):2===e.state.wrap&&(e.adler=lq(e.adler,t,o,n)),e.next_in+=o,e.total_in+=o,o)},Yq=(e,t)=>{let n,r,o=e.max_chain_length,i=e.strstart,s=e.prev_length,a=e.nice_match;const l=e.strstart>e.w_size-Pq?e.strstart-(e.w_size-Pq):0,c=e.window,u=e.w_mask,d=e.prev,A=e.strstart+Lq;let h=c[i+s-1],p=c[i+s];e.prev_length>=e.good_match&&(o>>=2),a>e.lookahead&&(a=e.lookahead);do{if(n=t,c[n+s]===p&&c[n+s-1]===h&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<A);if(r=Lq-(A-i),i=A-Lq,r>s){if(e.match_start=t,s=r,r>=a)break;h=c[i+s-1],p=c[i+s]}}}while((t=d[t&u])>l&&0!==--o);return s<=e.lookahead?s:e.lookahead},Zq=e=>{const t=e.w_size;let n,r,o;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Pq)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),Qq(e),r+=t),0===e.strm.avail_in)break;if(n=$q(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.legacy_hash){if(e.lookahead+e.insert>=3)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=Hq(e,e.ins_h,e.window[o+1]);e.insert&&(qq(e,o),o++,e.insert--,!(e.lookahead+e.insert<3)););}else if(e.lookahead+e.insert>3)for(o=e.strstart-e.insert;e.insert&&(qq(e,o),o++,e.insert--,!(e.lookahead+e.insert<=3)););}while(e.lookahead<Pq&&0!==e.strm.avail_in)},Xq=(e,t)=>{let n,r,o,i=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,s=0,a=e.strm.avail_in;do{if(n=65535,o=e.bi_valid+42>>3,e.strm.avail_out<o)break;if(o=e.strm.avail_out-o,r=e.strstart-e.block_start,n>r+e.strm.avail_in&&(n=r+e.strm.avail_in),n>o&&(n=o),n<i&&(0===n&&t!==vq||t===mq||n!==r+e.strm.avail_in))break;s=t===vq&&n===r+e.strm.avail_in?1:0,Aq(e,0,0,s),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,Vq(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&($q(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(0===s);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),s?4:t!==mq&&t!==vq&&0===e.strm.avail_in&&e.strstart===e.block_start?2:(o=e.window_size-e.strstart,e.strm.avail_in>o&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&($q(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water<e.strstart&&(e.high_water=e.strstart),o=e.bi_valid+42>>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,i=o>e.w_size?e.w_size:o,r=e.strstart-e.block_start,(r>=i||(r||t===vq)&&t!==mq&&0===e.strm.avail_in&&r<=o)&&(n=r>o?o:r,s=t===vq&&0===e.strm.avail_in&&n===r?1:0,Aq(e,e.block_start,n,s),e.block_start+=n,Vq(e.strm)),s?3:1)},Jq=(e,t)=>{let n,r;for(;;){if(e.lookahead<Pq){if(Zq(e),e.lookahead<Pq&&t===mq)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(n=qq(e,e.strstart)),0!==n&&e.strstart-n<=e.w_size-Pq&&(e.match_length=Yq(e,n)),e.match_length>=3)if(r=pq(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,n=qq(e,e.strstart)}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.legacy_hash&&(e.ins_h=e.window[e.strstart],e.ins_h=Hq(e,e.ins_h,e.window[e.strstart+1]));else r=pq(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Kq(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===vq?(Kq(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Kq(e,!1),0===e.strm.avail_out)?1:2},eV=(e,t)=>{let n,r,o;for(;;){if(e.lookahead<Pq){if(Zq(e),e.lookahead<Pq&&t===mq)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(n=qq(e,e.strstart)),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-Pq&&(e.match_length=Yq(e,n),e.match_length<=5&&(e.strategy===Sq||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-3,r=pq(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=o&&(n=qq(e,e.strstart))}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(Kq(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(r=pq(e,0,e.window[e.strstart-1]),r&&Kq(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=pq(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===vq?(Kq(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Kq(e,!1),0===e.strm.avail_out)?1:2};function tV(e,t,n,r,o){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=o}const nV=[new tV(0,0,0,0,Xq),new tV(4,4,8,4,Jq),new tV(4,5,16,8,Jq),new tV(4,6,32,32,Jq),new tV(4,4,16,16,eV),new tV(8,16,32,32,eV),new tV(8,16,128,128,eV),new tV(8,32,128,256,eV),new tV(32,128,258,1024,eV),new tV(32,258,258,4096,eV)];function rV(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Tq,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.legacy_hash=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),zq(this.dyn_ltree),zq(this.dyn_dtree),zq(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),zq(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),zq(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const oV=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Mq&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&t.status!==Oq&&t.status!==Dq?1:0},iV=e=>{if(oV(e))return Uq(e,kq);e.total_in=e.total_out=0,e.data_type=Fq;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?Mq:Oq,e.adler=2===t.wrap?0:1,t.last_flush=-2,dq(t),wq},sV=e=>{const t=iV(e);return t===wq&&(e=>{e.window_size=2*e.w_size,zq(e.head),e.max_lazy_match=nV[e.level].max_lazy,e.good_match=nV[e.level].good_length,e.nice_match=nV[e.level].nice_length,e.max_chain_length=nV[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0})(e.state),t},aV=(e,t,n,r,o,i,s)=>{if(!e)return kq;let a=1;if(t===Bq&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),o<1||o>9||n!==Tq||r<8||r>15||t<0||t>9||i<0||i>Nq||8===r&&1!==a)return Uq(e,kq);8===r&&(r=9);const l=new rV;return e.state=l,l.strm=e,l.status=Mq,l.wrap=a,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.legacy_hash=s?1:0,l.hash_bits=o+7,!l.legacy_hash&&l.hash_bits<15&&(l.hash_bits=15),l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new Uint8Array(2*l.w_size),l.head=new Uint16Array(l.hash_size),l.prev=new Uint16Array(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new Uint8Array(l.pending_buf_size),l.sym_buf=l.lit_bufsize,l.sym_end=3*(l.lit_bufsize-1),l.level=t,l.strategy=i,l.method=n,sV(e)};var lV=aV,cV=(e,t)=>oV(e)||2!==e.state.wrap?kq:(e.state.gzhead=t,wq),uV=(e,t)=>{if(oV(e)||t>bq||t<0)return e?Uq(e,kq):kq;const n=e.state;if(!e.output||0!==e.avail_in&&!e.input||n.status===Dq&&t!==vq)return Uq(e,0===e.avail_out?Cq:kq);const r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(Vq(e),0===e.avail_out)return n.last_flush=-1,wq}else if(0===e.avail_in&&Rq(t)<=Rq(r)&&t!==vq)return Uq(e,Cq);if(n.status===Dq&&0!==e.avail_in)return Uq(e,Cq);if(n.status===Mq&&0===n.wrap&&(n.status=Oq),n.status===Mq){let t=Tq+(n.w_bits-8<<4)<<8,r=-1;if(r=n.strategy>=jq||n.level<2?0:n.level<6?1:6===n.level?2:3,t|=r<<6,0!==n.strstart&&(t|=32),t+=31-t%31,Gq(n,t),0!==n.strstart&&(Gq(n,e.adler>>>16),Gq(n,65535&e.adler)),e.adler=1,n.status=Oq,Vq(e),0!==n.pending)return n.last_flush=-1,wq}if(57===n.status)if(e.adler=0,Wq(n,31),Wq(n,139),Wq(n,8),n.gzhead)Wq(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Wq(n,255&n.gzhead.time),Wq(n,n.gzhead.time>>8&255),Wq(n,n.gzhead.time>>16&255),Wq(n,n.gzhead.time>>24&255),Wq(n,9===n.level?2:n.strategy>=jq||n.level<2?4:0),Wq(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Wq(n,255&n.gzhead.extra.length),Wq(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=lq(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(Wq(n,0),Wq(n,0),Wq(n,0),Wq(n,0),Wq(n,0),Wq(n,9===n.level?2:n.strategy>=jq||n.level<2?4:0),Wq(n,3),n.status=Oq,Vq(e),0!==n.pending)return n.last_flush=-1,wq;if(69===n.status){if(n.gzhead.extra){let t=n.pending,r=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let o=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=lq(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=o,Vq(e),0!==n.pending)return n.last_flush=-1,wq;t=0,r-=o}let o=new Uint8Array(n.gzhead.extra);n.pending_buf.set(o.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=lq(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=lq(e.adler,n.pending_buf,n.pending-r,r)),Vq(e),0!==n.pending)return n.last_flush=-1,wq;r=0}t=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Wq(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=lq(e.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=lq(e.adler,n.pending_buf,n.pending-r,r)),Vq(e),0!==n.pending)return n.last_flush=-1,wq;r=0}t=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Wq(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=lq(e.adler,n.pending_buf,n.pending-r,r))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Vq(e),0!==n.pending))return n.last_flush=-1,wq;Wq(n,255&e.adler),Wq(n,e.adler>>8&255),e.adler=0}if(n.status=Oq,Vq(e),0!==n.pending)return n.last_flush=-1,wq}if(0!==e.avail_in||0!==n.lookahead||t!==mq&&n.status!==Dq){let r=0===n.level?Xq(n,t):n.strategy===jq?((e,t)=>{let n;for(;;){if(0===e.lookahead&&(Zq(e),0===e.lookahead)){if(t===mq)return 1;break}if(e.match_length=0,n=pq(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Kq(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===vq?(Kq(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Kq(e,!1),0===e.strm.avail_out)?1:2})(n,t):n.strategy===Eq?((e,t)=>{let n,r,o,i;const s=e.window;for(;;){if(e.lookahead<=Lq){if(Zq(e),e.lookahead<=Lq&&t===mq)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(o=e.strstart-1,r=s[o],r===s[++o]&&r===s[++o]&&r===s[++o])){i=e.strstart+Lq;do{}while(r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&o<i);e.match_length=Lq-(i-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=pq(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=pq(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Kq(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===vq?(Kq(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Kq(e,!1),0===e.strm.avail_out)?1:2})(n,t):nV[n.level].func(n,t);if(3!==r&&4!==r||(n.status=Dq),1===r||3===r)return 0===e.avail_out&&(n.last_flush=-1),wq;if(2===r&&(t===gq?fq(n):t!==bq&&(Aq(n,0,0,!1),t===yq&&(zq(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Vq(e),0===e.avail_out))return n.last_flush=-1,wq}return t!==vq?wq:n.wrap<=0?xq:(2===n.wrap?(Wq(n,255&e.adler),Wq(n,e.adler>>8&255),Wq(n,e.adler>>16&255),Wq(n,e.adler>>24&255),Wq(n,255&e.total_in),Wq(n,e.total_in>>8&255),Wq(n,e.total_in>>16&255),Wq(n,e.total_in>>24&255)):(Gq(n,e.adler>>>16),Gq(n,65535&e.adler)),Vq(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?wq:xq)},dV=e=>{if(oV(e))return kq;const t=e.state.status;return e.state=null,t===Oq?Uq(e,_q):wq},AV=(e,t)=>{let n=t.length;if(oV(e))return kq;const r=e.state,o=r.wrap;if(2===o||1===o&&r.status!==Mq||r.lookahead)return kq;if(1===o&&(e.adler=sq(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===o&&(zq(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}const i=e.avail_in,s=e.next_in,a=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Zq(r);r.lookahead>=3;){let e=r.strstart,t=r.lookahead-2;do{qq(r,e),e++}while(--t);r.strstart=e,r.lookahead=2,Zq(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=s,e.input=a,e.avail_in=i,r.wrap=o,wq};const hV=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var pV=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(const t in n)hV(n,t)&&(e[t]=n[t])}}return e},fV=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t+=e[n].length;const n=new Uint8Array(t);for(let t=0,r=0,o=e.length;t<o;t++){let o=e[t];n.set(o,r),r+=o.length}return n};let mV=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){mV=!1}const gV=new Uint8Array(256);for(let e=0;e<256;e++)gV[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;gV[254]=gV[255]=1;var yV=e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,n,r,o,i,s=e.length,a=0;for(o=0;o<s;o++)n=e.charCodeAt(o),55296==(64512&n)&&o+1<s&&(r=e.charCodeAt(o+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),o++)),a+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(a),i=0,o=0;i<a;o++)n=e.charCodeAt(o),55296==(64512&n)&&o+1<s&&(r=e.charCodeAt(o+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),o++)),n<128?t[i++]=n:n<2048?(t[i++]=192|n>>>6,t[i++]=128|63&n):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|63&n):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|63&n);return t},vV=(e,t)=>{const n=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let r,o;const i=new Array(2*n);for(o=0,r=0;r<n;){let t=e[r++];if(t<128){i[o++]=t;continue}let s=gV[t];if(s>4)i[o++]=65533,r+=s-1;else{for(t&=2===s?31:3===s?15:7;s>1&&r<n;)t=t<<6|63&e[r++],s--;s>1?i[o++]=65533:t<65536?i[o++]=t:(t-=65536,i[o++]=55296|t>>10&1023,i[o++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&mV)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n})(i,o)},bV=(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let n=t-1;for(;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+gV[e[n]]>t?n:t},wV=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const xV=Object.prototype.toString,{Z_NO_FLUSH:kV,Z_SYNC_FLUSH:_V,Z_FULL_FLUSH:CV,Z_FINISH:BV,Z_OK:SV,Z_STREAM_END:jV,Z_DEFAULT_COMPRESSION:EV,Z_DEFAULT_STRATEGY:NV,Z_DEFLATED:IV}=uq,FV={level:EV,method:IV,chunkSize:16384,windowBits:15,memLevel:8,strategy:NV,legacyHash:!0};function TV(e){this.options=pV({},FV,e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new wV,this.strm.avail_out=0;let n=lV(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy,t.legacyHash);if(n!==SV)throw new Error(cq[n]);if(t.header&&cV(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?yV(t.dictionary):"[object ArrayBuffer]"===xV.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,n=AV(this.strm,e),n!==SV)throw new Error(cq[n]);this._dict_set=!0}}function LV(e,t){const n=new TV(t);if(n.push(e,!0),n.err)throw n.msg||cq[n.err];return n.result}TV.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let o,i;if(this.ended)return!1;for(i=t===~~t?t:!0===t?BV:kV,"string"==typeof e?n.input=yV(e):"[object ArrayBuffer]"===xV.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(i===_V||i===CV)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(o=uV(n,i),o===jV)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),o=dV(this.strm),this.onEnd(o),this.ended=!0,o===SV;if(0!==n.avail_out){if(i>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},TV.prototype.onData=function(e){this.chunks.push(e)},TV.prototype.onEnd=function(e){e===SV&&(this.result=fV(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var PV={Deflate:TV,deflate:LV,deflateRaw:function(e,t){return(t=t||{}).raw=!0,LV(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,LV(e,t)},constants:uq};const MV=16209;var OV=function(e,t){let n,r,o,i,s,a,l,c,u,d,A,h,p,f,m,g,y,v,b,w,x,k,_,C;const B=e.state;n=e.next_in,_=e.input,r=n+(e.avail_in-5),o=e.next_out,C=e.output,i=o-(t-e.avail_out),s=o+(e.avail_out-257),a=B.dmax,l=B.wsize,c=B.whave,u=B.wnext,d=B.window,A=B.hold,h=B.bits,p=B.lencode,f=B.distcode,m=(1<<B.lenbits)-1,g=(1<<B.distbits)-1;e:do{h<15&&(A+=_[n++]<<h,h+=8,A+=_[n++]<<h,h+=8),y=p[A&m];t:for(;;){if(v=y>>>24,A>>>=v,h-=v,v=y>>>16&255,0===v)C[o++]=65535&y;else{if(!(16&v)){if(64&v){if(32&v){B.mode=16191;break e}e.msg="invalid literal/length code",B.mode=MV;break e}y=p[(65535&y)+(A&(1<<v)-1)];continue t}for(b=65535&y,v&=15,v&&(h<v&&(A+=_[n++]<<h,h+=8),b+=A&(1<<v)-1,A>>>=v,h-=v),h<15&&(A+=_[n++]<<h,h+=8,A+=_[n++]<<h,h+=8),y=f[A&g];;){if(v=y>>>24,A>>>=v,h-=v,v=y>>>16&255,16&v){if(w=65535&y,v&=15,h<v&&(A+=_[n++]<<h,h+=8,h<v&&(A+=_[n++]<<h,h+=8)),w+=A&(1<<v)-1,w>a){e.msg="invalid distance too far back",B.mode=MV;break e}if(A>>>=v,h-=v,v=o-i,w>v){if(v=w-v,v>c&&B.sane){e.msg="invalid distance too far back",B.mode=MV;break e}if(x=0,k=d,0===u){if(x+=l-v,v<b){b-=v;do{C[o++]=d[x++]}while(--v);x=o-w,k=C}}else if(u<v){if(x+=l+u-v,v-=u,v<b){b-=v;do{C[o++]=d[x++]}while(--v);if(x=0,u<b){v=u,b-=v;do{C[o++]=d[x++]}while(--v);x=o-w,k=C}}}else if(x+=u-v,v<b){b-=v;do{C[o++]=d[x++]}while(--v);x=o-w,k=C}for(;b>2;)C[o++]=k[x++],C[o++]=k[x++],C[o++]=k[x++],b-=3;b&&(C[o++]=k[x++],b>1&&(C[o++]=k[x++]))}else{x=o-w;do{C[o++]=C[x++],C[o++]=C[x++],C[o++]=C[x++],b-=3}while(b>2);b&&(C[o++]=C[x++],b>1&&(C[o++]=C[x++]))}break}if(64&v){e.msg="invalid distance code",B.mode=MV;break e}y=f[(65535&y)+(A&(1<<v)-1)]}}break}}while(n<r&&o<s);b=h>>3,n-=b,h-=b<<3,A&=(1<<h)-1,e.next_in=n,e.next_out=o,e.avail_in=n<r?r-n+5:5-(n-r),e.avail_out=o<s?s-o+257:257-(o-s),B.hold=A,B.bits=h};const DV=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),UV=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,199,75]),RV=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),zV=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var QV=(e,t,n,r,o,i,s,a)=>{const l=a.bits;let c,u,d,A,h,p,f=0,m=0,g=0,y=0,v=0,b=0,w=0,x=0,k=0,_=0,C=null;const B=new Uint16Array(16),S=new Uint16Array(16);let j,E,N,I=null;for(f=0;f<=15;f++)B[f]=0;for(m=0;m<r;m++)B[t[n+m]]++;for(v=l,y=15;y>=1&&0===B[y];y--);if(v>y&&(v=y),0===y)return o[i++]=20971520,o[i++]=20971520,a.bits=1,0;for(g=1;g<y&&0===B[g];g++);for(v<g&&(v=g),x=1,f=1;f<=15;f++)if(x<<=1,x-=B[f],x<0)return-1;if(x>0&&(0===e||1!==y))return-1;for(S[1]=0,f=1;f<15;f++)S[f+1]=S[f]+B[f];for(m=0;m<r;m++)0!==t[n+m]&&(s[S[t[n+m]]++]=m);if(0===e?(C=I=s,p=20):1===e?(C=DV,I=UV,p=257):(C=RV,I=zV,p=0),_=0,m=0,f=g,h=i,b=v,w=0,d=-1,k=1<<v,A=k-1,1===e&&k>852||2===e&&k>592)return 1;for(;;){j=f-w,s[m]+1<p?(E=0,N=s[m]):s[m]>=p?(E=I[s[m]-p],N=C[s[m]-p]):(E=96,N=0),c=1<<f-w,u=1<<b,g=u;do{u-=c,o[h+(_>>w)+u]=j<<24|E<<16|N}while(0!==u);for(c=1<<f-1;_&c;)c>>=1;if(0!==c?(_&=c-1,_+=c):_=0,m++,0===--B[f]){if(f===y)break;f=t[n+s[m]]}if(f>v&&(_&A)!==d){for(0===w&&(w=v),h+=g,b=f-w,x=1<<b;b+w<y&&(x-=B[b+w],!(x<=0));)b++,x<<=1;if(k+=1<<b,1===e&&k>852||2===e&&k>592)return 1;d=_&A,o[d]=v<<24|b<<16|h-i}}return 0!==_&&(o[h+_]=f-w<<24|64<<16),a.bits=v,0};const{Z_FINISH:HV,Z_BLOCK:qV,Z_TREES:VV,Z_OK:KV,Z_STREAM_END:WV,Z_NEED_DICT:GV,Z_STREAM_ERROR:$V,Z_DATA_ERROR:YV,Z_MEM_ERROR:ZV,Z_BUF_ERROR:XV,Z_DEFLATED:JV}=uq,eK=16180,tK=16190,nK=16191,rK=16192,oK=16194,iK=16199,sK=16200,aK=16206,lK=16209,cK=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function uK(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const dK=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<eK||t.mode>16211?1:0},AK=e=>{if(dK(e))return $V;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=eK,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,KV},hK=e=>{if(dK(e))return $V;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,AK(e)},pK=(e,t)=>{let n;if(dK(e))return $V;const r=e.state;return t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?$V:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,hK(e))},fK=(e,t)=>{if(!e)return $V;const n=new uK;e.state=n,n.strm=e,n.window=null,n.mode=eK;const r=pK(e,t);return r!==KV&&(e.state=null),r};let mK,gK,yK=!0;const vK=e=>{if(yK){mK=new Int32Array(512),gK=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(QV(1,e.lens,0,288,mK,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;QV(2,e.lens,0,32,gK,0,e.work,{bits:5}),yK=!1}e.lencode=mK,e.lenbits=9,e.distcode=gK,e.distbits=5},bK=(e,t,n,r)=>{let o;const i=e.state;return null===i.window&&(i.window=new Uint8Array(1<<i.wbits)),0===i.wsize&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0),r>=i.wsize?(i.window.set(t.subarray(n-i.wsize,n),0),i.wnext=0,i.whave=i.wsize):(o=i.wsize-i.wnext,o>r&&(o=r),i.window.set(t.subarray(n-r,n-r+o),i.wnext),(r-=o)?(i.window.set(t.subarray(n-r,n),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=o,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=o))),0};var wK=hK,xK=fK,kK=(e,t)=>{let n,r,o,i,s,a,l,c,u,d,A,h,p,f,m,g,y,v,b,w,x,k,_=0;const C=new Uint8Array(4);let B,S;const j=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(dK(e)||!e.output||!e.input&&0!==e.avail_in)return $V;n=e.state,n.mode===nK&&(n.mode=rK),s=e.next_out,o=e.output,l=e.avail_out,i=e.next_in,r=e.input,a=e.avail_in,c=n.hold,u=n.bits,d=a,A=l,k=KV;e:for(;;)switch(n.mode){case eK:if(0===n.wrap){n.mode=rK;break}for(;u<16;){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}if(2&n.wrap&&35615===c){0===n.wbits&&(n.wbits=15),n.check=0,C[0]=255&c,C[1]=c>>>8&255,n.check=lq(n.check,C,2,0),c=0,u=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=lK;break}if((15&c)!==JV){e.msg="unknown compression method",n.mode=lK;break}if(c>>>=4,u-=4,x=8+(15&c),0===n.wbits&&(n.wbits=x),x>15||x>n.wbits){e.msg="invalid window size",n.mode=lK;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=512&c?16189:nK,c=0,u=0;break;case 16181:for(;u<16;){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}if(n.flags=c,(255&n.flags)!==JV){e.msg="unknown compression method",n.mode=lK;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=lK;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&4&n.wrap&&(C[0]=255&c,C[1]=c>>>8&255,n.check=lq(n.check,C,2,0)),c=0,u=0,n.mode=16182;case 16182:for(;u<32;){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}n.head&&(n.head.time=c),512&n.flags&&4&n.wrap&&(C[0]=255&c,C[1]=c>>>8&255,C[2]=c>>>16&255,C[3]=c>>>24&255,n.check=lq(n.check,C,4,0)),c=0,u=0,n.mode=16183;case 16183:for(;u<16;){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&4&n.wrap&&(C[0]=255&c,C[1]=c>>>8&255,n.check=lq(n.check,C,2,0)),c=0,u=0,n.mode=16184;case 16184:if(1024&n.flags){for(;u<16;){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&4&n.wrap&&(C[0]=255&c,C[1]=c>>>8&255,n.check=lq(n.check,C,2,0)),c=0,u=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&(h=n.length,h>a&&(h=a),h&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(i,i+h),x)),512&n.flags&&4&n.wrap&&(n.check=lq(n.check,r,h,i)),a-=h,i+=h,n.length-=h),n.length))break e;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===a)break e;h=0;do{x=r[i+h++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&h<a);if(512&n.flags&&4&n.wrap&&(n.check=lq(n.check,r,h,i)),a-=h,i+=h,x)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(0===a)break e;h=0;do{x=r[i+h++],n.head&&x&&n.length<65536&&(n.head.comment+=String.fromCharCode(x))}while(x&&h<a);if(512&n.flags&&4&n.wrap&&(n.check=lq(n.check,r,h,i)),a-=h,i+=h,x)break e}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;u<16;){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}if(4&n.wrap&&c!==(65535&n.check)){e.msg="header crc mismatch",n.mode=lK;break}c=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=nK;break;case 16189:for(;u<32;){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}e.adler=n.check=cK(c),c=0,u=0,n.mode=tK;case tK:if(0===n.havedict)return e.next_out=s,e.avail_out=l,e.next_in=i,e.avail_in=a,n.hold=c,n.bits=u,GV;e.adler=n.check=1,n.mode=nK;case nK:if(t===qV||t===VV)break e;case rK:if(n.last){c>>>=7&u,u-=7&u,n.mode=aK;break}for(;u<3;){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}switch(n.last=1&c,c>>>=1,u-=1,3&c){case 0:n.mode=16193;break;case 1:if(vK(n),n.mode=iK,t===VV){c>>>=2,u-=2;break e}break;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=lK}c>>>=2,u-=2;break;case 16193:for(c>>>=7&u,u-=7&u;u<32;){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}if((65535&c)!=(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=lK;break}if(n.length=65535&c,c=0,u=0,n.mode=oK,t===VV)break e;case oK:n.mode=16195;case 16195:if(h=n.length,h){if(h>a&&(h=a),h>l&&(h=l),0===h)break e;o.set(r.subarray(i,i+h),s),a-=h,i+=h,l-=h,s+=h,n.length-=h;break}n.mode=nK;break;case 16196:for(;u<14;){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}if(n.nlen=257+(31&c),c>>>=5,u-=5,n.ndist=1+(31&c),c>>>=5,u-=5,n.ncode=4+(15&c),c>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=lK;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;u<3;){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}n.lens[j[n.have++]]=7&c,c>>>=3,u-=3}for(;n.have<19;)n.lens[j[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,B={bits:n.lenbits},k=QV(0,n.lens,0,19,n.lencode,0,n.work,B),n.lenbits=B.bits,k){e.msg="invalid code lengths set",n.mode=lK;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;_=n.lencode[c&(1<<n.lenbits)-1],m=_>>>24,g=_>>>16&255,y=65535&_,!(m<=u);){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}if(y<16)c>>>=m,u-=m,n.lens[n.have++]=y;else{if(16===y){for(S=m+2;u<S;){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}if(c>>>=m,u-=m,0===n.have){e.msg="invalid bit length repeat",n.mode=lK;break}x=n.lens[n.have-1],h=3+(3&c),c>>>=2,u-=2}else if(17===y){for(S=m+3;u<S;){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}c>>>=m,u-=m,x=0,h=3+(7&c),c>>>=3,u-=3}else{for(S=m+7;u<S;){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}c>>>=m,u-=m,x=0,h=11+(127&c),c>>>=7,u-=7}if(n.have+h>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=lK;break}for(;h--;)n.lens[n.have++]=x}}if(n.mode===lK)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=lK;break}if(n.lenbits=9,B={bits:n.lenbits},k=QV(1,n.lens,0,n.nlen,n.lencode,0,n.work,B),n.lenbits=B.bits,k){e.msg="invalid literal/lengths set",n.mode=lK;break}if(n.distbits=6,n.distcode=n.distdyn,B={bits:n.distbits},k=QV(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,B),n.distbits=B.bits,k){e.msg="invalid distances set",n.mode=lK;break}if(n.mode=iK,t===VV)break e;case iK:n.mode=sK;case sK:if(a>=6&&l>=258){e.next_out=s,e.avail_out=l,e.next_in=i,e.avail_in=a,n.hold=c,n.bits=u,OV(e,A),s=e.next_out,o=e.output,l=e.avail_out,i=e.next_in,r=e.input,a=e.avail_in,c=n.hold,u=n.bits,n.mode===nK&&(n.back=-1);break}for(n.back=0;_=n.lencode[c&(1<<n.lenbits)-1],m=_>>>24,g=_>>>16&255,y=65535&_,!(m<=u);){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}if(g&&!(240&g)){for(v=m,b=g,w=y;_=n.lencode[w+((c&(1<<v+b)-1)>>v)],m=_>>>24,g=_>>>16&255,y=65535&_,!(v+m<=u);){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}c>>>=v,u-=v,n.back+=v}if(c>>>=m,u-=m,n.back+=m,n.length=y,0===g){n.mode=16205;break}if(32&g){n.back=-1,n.mode=nK;break}if(64&g){e.msg="invalid literal/length code",n.mode=lK;break}n.extra=15&g,n.mode=16201;case 16201:if(n.extra){for(S=n.extra;u<S;){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;_=n.distcode[c&(1<<n.distbits)-1],m=_>>>24,g=_>>>16&255,y=65535&_,!(m<=u);){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}if(!(240&g)){for(v=m,b=g,w=y;_=n.distcode[w+((c&(1<<v+b)-1)>>v)],m=_>>>24,g=_>>>16&255,y=65535&_,!(v+m<=u);){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}c>>>=v,u-=v,n.back+=v}if(c>>>=m,u-=m,n.back+=m,64&g){e.msg="invalid distance code",n.mode=lK;break}n.offset=y,n.extra=15&g,n.mode=16203;case 16203:if(n.extra){for(S=n.extra;u<S;){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=lK;break}n.mode=16204;case 16204:if(0===l)break e;if(h=A-l,n.offset>h){if(h=n.offset-h,h>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=lK;break}h>n.wnext?(h-=n.wnext,p=n.wsize-h):p=n.wnext-h,h>n.length&&(h=n.length),f=n.window}else f=o,p=s-n.offset,h=n.length;h>l&&(h=l),l-=h,n.length-=h;do{o[s++]=f[p++]}while(--h);0===n.length&&(n.mode=sK);break;case 16205:if(0===l)break e;o[s++]=n.length,l--,n.mode=sK;break;case aK:if(n.wrap){for(;u<32;){if(0===a)break e;a--,c|=r[i++]<<u,u+=8}if(A-=l,e.total_out+=A,n.total+=A,4&n.wrap&&A&&(e.adler=n.check=n.flags?lq(n.check,o,A,s-A):sq(n.check,o,A,s-A)),A=l,4&n.wrap&&(n.flags?c:cK(c))!==n.check){e.msg="incorrect data check",n.mode=lK;break}c=0,u=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;u<32;){if(0===a)break e;a--,c+=r[i++]<<u,u+=8}if(4&n.wrap&&c!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=lK;break}c=0,u=0}n.mode=16208;case 16208:k=WV;break e;case lK:k=YV;break e;case 16210:return ZV;default:return $V}return e.next_out=s,e.avail_out=l,e.next_in=i,e.avail_in=a,n.hold=c,n.bits=u,(n.wsize||A!==e.avail_out&&n.mode<lK&&(n.mode<aK||t!==HV))&&bK(e,e.output,e.next_out,A-e.avail_out),d-=e.avail_in,A-=e.avail_out,e.total_in+=d,e.total_out+=A,n.total+=A,4&n.wrap&&A&&(e.adler=n.check=n.flags?lq(n.check,o,A,e.next_out-A):sq(n.check,o,A,e.next_out-A)),e.data_type=n.bits+(n.last?64:0)+(n.mode===nK?128:0)+(n.mode===iK||n.mode===oK?256:0),(0===d&&0===A||t===HV)&&k===KV&&(k=XV),k},_K=e=>{if(dK(e))return $V;let t=e.state;return t.window&&(t.window=null),e.state=null,KV},CK=(e,t)=>{if(dK(e))return $V;const n=e.state;return 2&n.wrap?(n.head=t,t.done=!1,KV):$V},BK=(e,t)=>{const n=t.length;let r,o,i;return dK(e)?$V:(r=e.state,0!==r.wrap&&r.mode!==tK?$V:r.mode===tK&&(o=1,o=sq(o,t,n,0),o!==r.check)?YV:(i=bK(e,t,n,n),i?(r.mode=16210,ZV):(r.havedict=1,KV)))},SK=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const jK=Object.prototype.toString,{Z_NO_FLUSH:EK,Z_FINISH:NK,Z_OK:IK,Z_STREAM_END:FK,Z_NEED_DICT:TK,Z_STREAM_ERROR:LK,Z_DATA_ERROR:PK,Z_MEM_ERROR:MK,Z_BUF_ERROR:OK}=uq,DK={chunkSize:65536,windowBits:15,to:""};function UK(e){this.options=pV({},DK,e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new wV,this.strm.avail_out=0;let n=xK(this.strm,t.windowBits);if(n!==IK)throw new Error(cq[n]);if(this.header=new SK,CK(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=yV(t.dictionary):"[object ArrayBuffer]"===jK.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=BK(this.strm,t.dictionary),n!==IK)))throw new Error(cq[n])}function RK(e,t){const n=new UK(t);if(n.push(e,!0),n.err)throw n.msg||cq[n.err];return n.result}UK.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,o=this.options.dictionary;let i,s,a;if(this.ended)return!1;for(s=t===~~t?t:!0===t?NK:EK,"[object ArrayBuffer]"===jK.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),i=kK(n,s),i===TK&&o&&(i=BK(n,o),i===IK?i=kK(n,s):i===PK&&(i=TK));n.avail_in>0&&i===FK&&2&n.state.wrap&&0!==n.state.flags&&0!==n.input[n.next_in];)wK(n),i=kK(n,s);switch(i){case LK:case PK:case TK:case MK:return this.onEnd(i),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(0===n.avail_out||i===FK||s>0))if("string"===this.options.to){let e=bV(n.output,n.next_out),t=n.next_out-e,o=vV(n.output,e);n.next_out=t,n.avail_out=r-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(o)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out)),n.avail_out=0,n.next_out=0;if(i!==IK&&i!==OK||0!==a){if(i===FK)return i=_K(this.strm),this.onEnd(i),this.ended=!0,!0;if(0===n.avail_in){if(s===NK)return i=_K(this.strm),this.onEnd(i===IK?OK:i),this.ended=!0,!1;break}}}return!0},UK.prototype.onData=function(e){this.chunks.push(e)},UK.prototype.onEnd=function(e){e===IK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=fV(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var zK={Inflate:UK,inflate:RK,inflateRaw:function(e,t){return(t=t||{}).raw=!0,RK(e,t)},ungzip:RK,constants:uq};const{Deflate:QK,deflate:HK,deflateRaw:qK,gzip:VK}=PV,{Inflate:KK,inflate:WK,inflateRaw:GK,ungzip:$K}=zK;var YK=KK,ZK=WK;const XK=[];for(let e=0;e<256;e++){let t=e;for(let e=0;e<8;e++)1&t?t=3988292384^t>>>1:t>>>=1;XK[e]=t}const JK=4294967295;function eW(e,t,n){const r=e.readUint32(),o=(i=new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),(function(e,t,n){let r=e;for(let e=0;e<n;e++)r=XK[255&(r^t[e])]^r>>>8;return r}(JK,i,t)^JK)>>>0);var i;if(o!==r)throw new Error(`CRC mismatch for chunk ${n}. Expected ${r}, found ${o}`)}function tW(e,t,n){for(let r=0;r<n;r++)t[r]=e[r]}function nW(e,t,n,r){let o=0;for(;o<r;o++)t[o]=e[o];for(;o<n;o++)t[o]=e[o]+t[o-r]&255}function rW(e,t,n,r){let o=0;if(0===n.length)for(;o<r;o++)t[o]=e[o];else for(;o<r;o++)t[o]=e[o]+n[o]&255}function oW(e,t,n,r,o){let i=0;if(0===n.length){for(;i<o;i++)t[i]=e[i];for(;i<r;i++)t[i]=e[i]+(t[i-o]>>1)&255}else{for(;i<o;i++)t[i]=e[i]+(n[i]>>1)&255;for(;i<r;i++)t[i]=e[i]+(t[i-o]+n[i]>>1)&255}}function iW(e,t,n,r,o){let i=0;if(0===n.length){for(;i<o;i++)t[i]=e[i];for(;i<r;i++)t[i]=e[i]+t[i-o]&255}else{for(;i<o;i++)t[i]=e[i]+n[i]&255;for(;i<r;i++)t[i]=e[i]+sW(t[i-o],n[i],n[i-o])&255}}function sW(e,t,n){const r=e+t-n,o=Math.abs(r-e),i=Math.abs(r-t),s=Math.abs(r-n);return o<=i&&o<=s?e:i<=s?t:n}function aW(e,t,n,r,o,i){switch(e){case 0:tW(t,n,o);break;case 1:nW(t,n,o,i);break;case 2:rW(t,n,r,o);break;case 3:oW(t,n,r,o,i);break;case 4:iW(t,n,r,o,i);break;default:throw new Error(`Unsupported filter: ${e}`)}}const lW=new Uint16Array([255]),cW=255===new Uint8Array(lW.buffer)[0];function uW(e){return(255&e)<<8|e>>8&255}const dW=new Uint16Array([255]),AW=255===new Uint8Array(dW.buffer)[0],hW=new Uint8Array(0);function pW(e){const{data:t,width:n,height:r,channels:o,depth:i}=e,s=Math.ceil(i/8)*o,a=Math.ceil(i/8*o*n),l=new Uint8Array(r*a);let c,u,d=hW,A=0;for(let e=0;e<r;e++){switch(c=t.subarray(A+1,A+1+a),u=l.subarray(e*a,(e+1)*a),t[A]){case 0:tW(c,u,a);break;case 1:nW(c,u,a,s);break;case 2:rW(c,u,d,a);break;case 3:oW(c,u,d,a,s);break;case 4:iW(c,u,d,a,s);break;default:throw new Error(`Unsupported filter: ${t[A]}`)}d=u,A+=a+1}if(16===i){const e=new Uint16Array(l.buffer);if(AW)for(let t=0;t<e.length;t++)e[t]=fW(e[t]);return e}return l}function fW(e){return(255&e)<<8|e>>8&255}const mW=Uint8Array.of(137,80,78,71,13,10,26,10);function gW(e){if(!function(e){if(e.length<mW.length)return!1;for(let t=0;t<mW.length;t++)if(e[t]!==mW[t])return!1;return!0}(e.readBytes(mW.length)))throw new Error("wrong PNG signature")}const yW=new TextDecoder("latin1");function vW(e){if(function(e){if(!bW.test(e))throw new Error("invalid latin1 text")}(e),0===e.length||e.length>79)throw new Error("keyword length must be between 1 and 79")}const bW=/^[\u0000-\u00FF]*$/;function wW(e){for(e.mark();0!==e.readByte(););const t=e.offset;e.reset();const n=yW.decode(e.readBytes(t-e.offset-1));return e.skip(1),vW(n),n}class xW extends BH{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(e,t={}){super(e);const{checkCrc:n=!1}=t;this._checkCrc=n,this._inflator=new YK,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=-1,this._filterMethod=-1,this._interlaceMethod=-1,this._colorType=-1,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(gW(this);!this._end;){const e=this.readUint32(),t=this.readChars(4);this.decodeChunk(e,t)}return this.decodeImage(),this._png}decodeApng(){for(gW(this);!this._end;){const e=this.readUint32(),t=this.readChars(4);this.decodeApngChunk(e,t)}return this.decodeApngImage(),this._apng}decodeChunk(e,t){const n=this.offset;switch(t){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case"tEXt":!function(e,t,n){const r=wW(t);e[r]=function(e,t){return yW.decode(e.readBytes(t))}(t,n-r.length-1)}(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e)}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?eW(this,e+4,t):this.skip(4)}decodeApngChunk(e,t){const n=this.offset;switch("fdAT"!==t&&"IDAT"!==t&&this._writingDataChunks&&this.pushDataToFrame(),t){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(e);break;default:this.decodeChunk(e,t),this.offset=n+e}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?eW(this,e+4,t):this.skip(4)}decodeIHDR(){const e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=function(e){if(1!==e&&2!==e&&4!==e&&8!==e&&16!==e)throw new Error(`invalid bit depth: ${e}`);return e}(this.readUint8());const t=this.readUint8();let n;switch(this._colorType=t,t){case 0:case 3:n=1;break;case 2:n=3;break;case 4:n=2;break;case 6:n=4;break;default:throw new Error(`Unknown color type: ${t}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),0!==this._compressionMethod)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(e)}decodePLTE(e){if(e%3!=0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);const t=e/3;this._hasPalette=!0;const n=[];this._palette=n;for(let e=0;e<t;e++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;const t=e,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,t)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let t=e,n=this.offset+this.byteOffset;if(n+=4,t-=4,this._inflator.push(new Uint8Array(this.buffer,n,t)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case 0:case 2:if(e%2!=0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let t=0;t<e/2;t++)this._transparency[t]=this.readUint16();break;case 3:{if(e>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${e} vs ${this._palette.length})`);let t=0;for(;t<e;t++){const e=this.readByte();this._palette[t].push(e)}for(;t<this._palette.length;t++)this._palette[t].push(255);break}default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){const t=wW(this),n=this.readUint8();if(0!==n)throw new Error(`Unsupported iCCP compression method: ${n}`);const r=this.readBytes(e-t.length-2);this._png.iccEmbeddedProfile={name:t,profile:ZK(r)}}decodepHYs(){const e=this.readUint32(),t=this.readUint32(),n=this.readByte();this._png.resolution={x:e,y:t,unit:n}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let e=0;e<this._numberOfFrames;e++){const t={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].delayDenominator,data:8===this._apng.depth?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(e);if(n){if(n.data=pW({data:n.data,width:n.width,height:n.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),0===e||0===n.xOffset&&0===n.yOffset&&n.width===this._png.width&&n.height===this._png.height)t.data=n.data;else{const r=this._apng.frames.at(e-1);this.disposeFrame(n,r,t),this.addFrameDataToCanvas(t,n)}this._apng.frames.push(t)}}return this._apng}disposeFrame(e,t,n){switch(e.disposeOp){case 0:break;case 1:for(let t=0;t<this._png.height;t++)for(let r=0;r<this._png.width;r++){const o=(t*e.width+r)*this._png.channels;for(let e=0;e<this._png.channels;e++)n.data[o+e]=0}break;case 2:n.data.set(t.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(e,t){const n=1<<this._png.depth,r=(e,n)=>({index:((e+t.yOffset)*this._png.width+t.xOffset+n)*this._png.channels,frameIndex:(e*t.width+n)*this._png.channels});switch(t.blendOp){case 0:for(let n=0;n<t.height;n++)for(let o=0;o<t.width;o++){const{index:i,frameIndex:s}=r(n,o);for(let n=0;n<this._png.channels;n++)e.data[i+n]=t.data[s+n]}break;case 1:for(let o=0;o<t.height;o++)for(let i=0;i<t.width;i++){const{index:s,frameIndex:a}=r(o,i);for(let r=0;r<this._png.channels;r++){const o=t.data[a+this._png.channels-1]/n,i=r%(this._png.channels-1)==0?1:t.data[a+r],l=Math.floor(o*i+(1-o)*e.data[s+r]);e.data[s+r]+=l}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const e=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(0!==this._filterMethod)throw new Error(`Filter method ${this._filterMethod} not supported`);if(0===this._interlaceMethod)this._png.data=pW({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else{if(1!==this._interlaceMethod)throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._png.data=function(e){const{data:t,width:n,height:r,channels:o,depth:i}=e,s=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],a=Math.ceil(i/8)*o,l=new Uint8Array(r*n*a);let c=0;for(let e=0;e<7;e++){const o=s[e],i=Math.ceil((n-o.x)/o.xStep),u=Math.ceil((r-o.y)/o.yStep);if(i<=0||u<=0)continue;const d=i*a,A=new Uint8Array(d);for(let e=0;e<u;e++){const s=t[c++],u=t.subarray(c,c+d);c+=d;const h=new Uint8Array(d);aW(s,u,h,A,d,a),A.set(h);for(let t=0;t<i;t++){const i=o.x+t*o.xStep,s=o.y+e*o.yStep;if(!(i>=n||s>=r))for(let e=0;e<a;e++)l[(s*n+i)*a+e]=h[t*a+e]}}}if(16===i){const e=new Uint16Array(l.buffer);if(cW)for(let t=0;t<e.length;t++)e[t]=uW(e[t]);return e}return l}({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth})}this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const e=this._inflator.result,t=this._frames.at(-1);t?t.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:0,blendOp:0,data:e}),this._inflator=new YK,this._writingDataChunks=!1}}var kW;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"}(kW||(kW={}));var _W=function(){return"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this}();function CW(){_W.console&&"function"==typeof _W.console.log&&_W.console.log.apply(_W.console,arguments)}var BW={log:CW,warn:function(e){_W.console&&("function"==typeof _W.console.warn?_W.console.warn.apply(_W.console,arguments):CW.call(null,arguments))},error:function(e){_W.console&&("function"==typeof _W.console.error?_W.console.error.apply(_W.console,arguments):CW(e))}};function SW(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){NW(r.response,t,n)},r.onerror=function(){BW.error("could not download file")},r.send()}function jW(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function EW(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var NW=_W.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,OQ.A)(window))||window!==_W?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=_W.URL||_W.webkitURL,o=document.createElement("a");t=t||e.name||"download",o.download=t,o.rel="noopener","string"==typeof e?(o.href=e,o.origin!==location.origin?jW(o.href)?SW(e,t,n):EW(o,o.target="_blank"):EW(o)):(o.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(o.href)},4e4),setTimeout(function(){EW(o)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download","string"==typeof e)if(jW(e))SW(e,t,n);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){EW(r)})}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!==(0,OQ.A)(t)&&(BW.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,n),t)}:function(e,t,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return SW(e,t,n);var o="application/octet-stream"===e.type,i=/constructor/i.test(_W.HTMLElement)||_W.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||o&&i)&&"object"===("undefined"==typeof FileReader?"undefined":(0,OQ.A)(FileReader))){var a=new FileReader;a.onloadend=function(){var e=a.result;e=s?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},a.readAsDataURL(e)}else{var l=_W.URL||_W.webkitURL,c=l.createObjectURL(e);r?r.location=c:location.href=c,r=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});function IW(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r<n.length;r++){var o=n[r].re,i=n[r].process,s=o.exec(e);s&&(t=i(s),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n}}var FW=_W.atob.bind(_W),TW=_W.btoa.bind(_W);function LW(e,t){var n=e[0],r=e[1],o=e[2],i=e[3];n=MW(n,r,o,i,t[0],7,-680876936),i=MW(i,n,r,o,t[1],12,-389564586),o=MW(o,i,n,r,t[2],17,606105819),r=MW(r,o,i,n,t[3],22,-1044525330),n=MW(n,r,o,i,t[4],7,-176418897),i=MW(i,n,r,o,t[5],12,1200080426),o=MW(o,i,n,r,t[6],17,-1473231341),r=MW(r,o,i,n,t[7],22,-45705983),n=MW(n,r,o,i,t[8],7,1770035416),i=MW(i,n,r,o,t[9],12,-1958414417),o=MW(o,i,n,r,t[10],17,-42063),r=MW(r,o,i,n,t[11],22,-1990404162),n=MW(n,r,o,i,t[12],7,1804603682),i=MW(i,n,r,o,t[13],12,-40341101),o=MW(o,i,n,r,t[14],17,-1502002290),n=OW(n,r=MW(r,o,i,n,t[15],22,1236535329),o,i,t[1],5,-165796510),i=OW(i,n,r,o,t[6],9,-1069501632),o=OW(o,i,n,r,t[11],14,643717713),r=OW(r,o,i,n,t[0],20,-373897302),n=OW(n,r,o,i,t[5],5,-701558691),i=OW(i,n,r,o,t[10],9,38016083),o=OW(o,i,n,r,t[15],14,-660478335),r=OW(r,o,i,n,t[4],20,-405537848),n=OW(n,r,o,i,t[9],5,568446438),i=OW(i,n,r,o,t[14],9,-1019803690),o=OW(o,i,n,r,t[3],14,-187363961),r=OW(r,o,i,n,t[8],20,1163531501),n=OW(n,r,o,i,t[13],5,-1444681467),i=OW(i,n,r,o,t[2],9,-51403784),o=OW(o,i,n,r,t[7],14,1735328473),n=DW(n,r=OW(r,o,i,n,t[12],20,-1926607734),o,i,t[5],4,-378558),i=DW(i,n,r,o,t[8],11,-2022574463),o=DW(o,i,n,r,t[11],16,1839030562),r=DW(r,o,i,n,t[14],23,-35309556),n=DW(n,r,o,i,t[1],4,-1530992060),i=DW(i,n,r,o,t[4],11,1272893353),o=DW(o,i,n,r,t[7],16,-155497632),r=DW(r,o,i,n,t[10],23,-1094730640),n=DW(n,r,o,i,t[13],4,681279174),i=DW(i,n,r,o,t[0],11,-358537222),o=DW(o,i,n,r,t[3],16,-722521979),r=DW(r,o,i,n,t[6],23,76029189),n=DW(n,r,o,i,t[9],4,-640364487),i=DW(i,n,r,o,t[12],11,-421815835),o=DW(o,i,n,r,t[15],16,530742520),n=UW(n,r=DW(r,o,i,n,t[2],23,-995338651),o,i,t[0],6,-198630844),i=UW(i,n,r,o,t[7],10,1126891415),o=UW(o,i,n,r,t[14],15,-1416354905),r=UW(r,o,i,n,t[5],21,-57434055),n=UW(n,r,o,i,t[12],6,1700485571),i=UW(i,n,r,o,t[3],10,-1894986606),o=UW(o,i,n,r,t[10],15,-1051523),r=UW(r,o,i,n,t[1],21,-2054922799),n=UW(n,r,o,i,t[8],6,1873313359),i=UW(i,n,r,o,t[15],10,-30611744),o=UW(o,i,n,r,t[6],15,-1560198380),r=UW(r,o,i,n,t[13],21,1309151649),n=UW(n,r,o,i,t[4],6,-145523070),i=UW(i,n,r,o,t[11],10,-1120210379),o=UW(o,i,n,r,t[2],15,718787259),r=UW(r,o,i,n,t[9],21,-343485551),e[0]=WW(n,e[0]),e[1]=WW(r,e[1]),e[2]=WW(o,e[2]),e[3]=WW(i,e[3])}function PW(e,t,n,r,o,i){return t=WW(WW(t,e),WW(r,i)),WW(t<<o|t>>>32-o,n)}function MW(e,t,n,r,o,i,s){return PW(t&n|~t&r,e,t,o,i,s)}function OW(e,t,n,r,o,i,s){return PW(t&r|n&~r,e,t,o,i,s)}function DW(e,t,n,r,o,i,s){return PW(t^n^r,e,t,o,i,s)}function UW(e,t,n,r,o,i,s){return PW(n^(t|~r),e,t,o,i,s)}function RW(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)LW(r,zW(e.substring(t-64,t)));e=e.substring(t-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(LW(r,o),t=0;t<16;t++)o[t]=0;return o[14]=8*n,LW(r,o),r}function zW(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var QW="0123456789abcdef".split("");function HW(e){for(var t="",n=0;n<4;n++)t+=QW[e>>8*n+4&15]+QW[e>>8*n&15];return t}function qW(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function VW(e){return RW(e).map(qW).join("")}var KW="5d41402abc4b2a76b9719d911017c592"!=function(e){for(var t=0;t<e.length;t++)e[t]=HW(e[t]);return e.join("")}(RW("hello"));function WW(e,t){if(KW){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}function GW(e,t){var n,r,o,i;if(e!==n){for(var s=(o=e,i=1+(256/e.length|0),new Array(i+1).join(o)),a=[],l=0;l<256;l++)a[l]=l;var c=0;for(l=0;l<256;l++){var u=a[l];c=(c+u+s.charCodeAt(l))%256,a[l]=a[c],a[c]=u}n=e,r=a}else a=r;var d=t.length,A=0,h=0,p="";for(l=0;l<d;l++)h=(h+(u=a[A=(A+1)%256]))%256,a[A]=a[h],a[h]=u,s=a[(a[A]+a[h])%256],p+=String.fromCharCode(t.charCodeAt(l)^s);return p}var $W={print:4,modify:8,copy:16,"annot-forms":32};function YW(e,t,n,r){this.v=1,this.r=2;var o=192;e.forEach(function(e){if(void 0!==$W.perm)throw new Error("Invalid permission: "+e);o+=$W[e]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var i=(t+this.padding).substr(0,32),s=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,s),this.P=-(1+(255^o)),this.encryptionKey=VW(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=GW(this.encryptionKey,this.padding)}function ZW(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,r=0;r<n;r++){var o=e.charCodeAt(r);t+=o<33||35===o||37===o||40===o||41===o||47===o||60===o||62===o||91===o||93===o||123===o||125===o||o>126?"#"+("0"+o.toString(16)).slice(-2):e[r]}return t}function XW(e){if("object"!==(0,OQ.A)(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,n,r){if(r=r||!1,"string"!=typeof e||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var o=Math.random().toString(35);return t[e][o]=[n,!!r],o},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],0===Object.keys(t[n]).length&&delete t[n],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),o=[];for(var i in t[n]){var s=t[n][i];try{s[0].apply(e,r)}catch(e){_W.console&&BW.error("jsPDF PubSub Error",e.message,e)}s[1]&&o.push(i)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function JW(e){if(!(this instanceof JW))return new JW(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function eG(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function tG(e,t,n,r,o){if(!(this instanceof tG))return new tG(e,t,n,r,o);this.type="axial"===e?2:3,this.coords=t,this.colors=n,eG.call(this,r,o)}function nG(e,t,n,r,o){if(!(this instanceof nG))return new nG(e,t,n,r,o);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,eG.call(this,r,o)}function rG(e){var t,n="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],o=arguments[2],i=arguments[3],s=[],a=1,l=16,c="S",u=null;"object"===(0,OQ.A)(e=e||{})&&(n=e.orientation,r=e.unit||r,o=e.format||o,i=e.compress||e.compressPdf||i,null!==(u=e.encryption||null)&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),a="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(l=e.floatPrecision),c=e.defaultPathOperation||"S"),s=e.filters||(!0===i?["FlateEncode"]:s),r=r||"mm",n=(""+(n||"P")).toLowerCase();var d=e.putOnlyUsedFonts||!1,A={},h={internal:{},__private__:{}};h.__private__.PubSub=XW;var p="1.3",f=h.__private__.getPdfVersion=function(){return p};h.__private__.setPdfVersion=function(e){p=e};var m={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return m};var g=h.__private__.getPageFormat=function(e){return m[e]};o=o||"a4";var y="compat",v="advanced",b=y;function w(){this.saveGraphicsState(),Z(new Ie(Ae,0,0,-Ae,0,fn()*Ae).toString()+" cm"),this.setFontSize(this.getFontSize()/Ae),c="n",b=v}function x(){this.restoreGraphicsState(),c="S",b=y}var k=h.__private__.combineFontStyleAndFontWeight=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(e=400==t||"normal"===t?"italic"===e?"italic":"normal":700!=t&&"bold"!==t||"normal"!==e?(700==t?"bold":t)+""+e:"bold"),e};h.advancedAPI=function(e){var t=b===y;return t&&w.call(this),"function"!=typeof e||(e(this),t&&x.call(this)),this},h.compatAPI=function(e){var t=b===v;return t&&x.call(this),"function"!=typeof e||(e(this),t&&w.call(this)),this},h.isAdvancedAPI=function(){return b===v};var _,C=function(e){if(b!==v)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},B=h.roundToPrecision=h.__private__.roundToPrecision=function(e,n){var r=t||n;if(isNaN(e)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(r).replace(/0+$/,"")};_=h.hpf=h.__private__.hpf="number"==typeof l?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return B(e,l)}:"smart"===l?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return B(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return B(e,16)};var S=h.f2=h.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return B(e,2)},j=h.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return B(e,3)},E=h.scale=h.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return b===y?e*Ae:b===v?e:void 0},N=function(e){return E(function(e){return b===y?fn()-e:b===v?e:void 0}(e))};h.__private__.setPrecision=h.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var I,F="00000000000000000000000000000000",T=h.__private__.getFileId=function(){return F},L=h.__private__.setFileId=function(e){return F=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():F.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==u&&(bt=new YW(u.userPermissions,u.userPassword,u.ownerPassword,F)),F};h.setFileId=function(e){return L(e),this},h.getFileId=function(){return T()};var P=h.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),n=t<0?"+":"-",r=Math.floor(Math.abs(t/60)),o=Math.abs(t%60),i=[n,R(r),"'",R(o),"'"].join("");return["D:",e.getFullYear(),R(e.getMonth()+1),R(e.getDate()),R(e.getHours()),R(e.getMinutes()),R(e.getSeconds()),i].join("")},M=h.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),n=parseInt(e.substr(6,2),10)-1,r=parseInt(e.substr(8,2),10),o=parseInt(e.substr(10,2),10),i=parseInt(e.substr(12,2),10),s=parseInt(e.substr(14,2),10);return new Date(t,n,r,o,i,s,0)},O=h.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=P(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=e}return I=t},D=h.__private__.getCreationDate=function(e){var t=I;return"jsDate"===e&&(t=M(I)),t};h.setCreationDate=function(e){return O(e),this},h.getCreationDate=function(e){return D(e)};var U,R=h.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},z=h.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},Q=0,H=[],q=[],V=0,K=[],W=[],G=!1,$=q;h.__private__.setCustomOutputDestination=function(e){G=!0,$=e};var Y=function(e){G||($=e)};h.__private__.resetCustomOutputDestination=function(){G=!1,$=q};var Z=h.__private__.out=function(e){return e=e.toString(),V+=e.length+1,$.push(e),$},X=h.__private__.write=function(e){return Z(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},J=h.__private__.getArrayBuffer=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n);t--;)r[t]=e.charCodeAt(t);return n},ee=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return ee};var te=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(e){return te=b===v?e/Ae:e,this};var ne,re=h.__private__.getFontSize=h.getFontSize=function(){return b===y?te:te*Ae},oe=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(e){return oe=e,this},h.__private__.getR2L=h.getR2L=function(){return oe};var ie,se=h.__private__.setZoomMode=function(e){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))ne=e;else if(isNaN(e)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');ne=e}else ne=parseInt(e,10)};h.__private__.getZoomMode=function(){return ne};var ae,le=h.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');ie=e};h.__private__.getPageMode=function(){return ie};var ce=h.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');ae=e};h.__private__.getLayoutMode=function(){return ae},h.__private__.setDisplayMode=h.setDisplayMode=function(e,t,n){return se(e),ce(t),le(n),this};var ue={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(e){if(-1===Object.keys(ue).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ue[e]},h.__private__.getDocumentProperties=function(){return ue},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(e){for(var t in ue)ue.hasOwnProperty(t)&&e[t]&&(ue[t]=e[t]);return this},h.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(ue).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ue[e]=t};var de,Ae,he,pe,fe,me={},ge={},ye=[],ve={},be={},we={},xe={},ke=null,_e=0,Ce=[],Be=new XW(h),Se=e.hotfixes||[],je={},Ee={},Ne=[],Ie=function e(t,n,r,o,i,s){if(!(this instanceof e))return new e(t,n,r,o,i,s);isNaN(t)&&(t=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(o)&&(o=1),isNaN(i)&&(i=0),isNaN(s)&&(s=0),this._matrix=[t,n,r,o,i,s]};Object.defineProperty(Ie.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Ie.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Ie.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Ie.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Ie.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Ie.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Ie.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Ie.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Ie.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Ie.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Ie.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Ie.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Ie.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ie.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ie.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ie.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Ie.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(_).join(e)},Ie.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,n=e.sx*this.shy+e.shy*this.sy,r=e.shx*this.sx+e.sy*this.shx,o=e.shx*this.shy+e.sy*this.sy,i=e.tx*this.sx+e.ty*this.shx+this.tx,s=e.tx*this.shy+e.ty*this.sy+this.ty;return new Ie(t,n,r,o,i,s)},Ie.prototype.decompose=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,o=this.tx,i=this.ty,s=Math.sqrt(e*e+t*t),a=(e/=s)*n+(t/=s)*r;n-=e*a,r-=t*a;var l=Math.sqrt(n*n+r*r);return a/=l,e*(r/=l)<t*(n/=l)&&(e=-e,t=-t,a=-a,s=-s),{scale:new Ie(s,0,0,l,0,0),translate:new Ie(1,0,0,1,o,i),rotate:new Ie(e,t,-t,e,0,0),skew:new Ie(1,0,a,1,0,0)}},Ie.prototype.toString=function(e){return this.join(" ")},Ie.prototype.inversed=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,o=this.tx,i=this.ty,s=1/(e*r-t*n),a=r*s,l=-t*s,c=-n*s,u=e*s;return new Ie(a,l,c,u,-a*o-c*i,-l*o-u*i)},Ie.prototype.applyToPoint=function(e){var t=e.x*this.sx+e.y*this.shx+this.tx,n=e.x*this.shy+e.y*this.sy+this.ty;return new rn(t,n)},Ie.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),n=this.applyToPoint(new rn(e.x+e.w,e.y+e.h));return new on(t.x,t.y,n.x-t.x,n.y-t.y)},Ie.prototype.clone=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,o=this.tx,i=this.ty;return new Ie(e,t,n,r,o,i)},h.Matrix=Ie;var Fe=h.matrixMult=function(e,t){return t.multiply(e)},Te=new Ie(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=Te;var Le=function(e,t){if(!be[e]){var n=(t instanceof tG?"Sh":"P")+(Object.keys(ve).length+1).toString(10);t.id=n,be[e]=n,ve[n]=t,Be.publish("addPattern",t)}};h.ShadingPattern=tG,h.TilingPattern=nG,h.addShadingPattern=function(e,t){return C("addShadingPattern()"),Le(e,t),this},h.beginTilingPattern=function(e){C("beginTilingPattern()"),an(e.boundingBox[0],e.boundingBox[1],e.boundingBox[2]-e.boundingBox[0],e.boundingBox[3]-e.boundingBox[1],e.matrix)},h.endTilingPattern=function(e,t){C("endTilingPattern()"),t.stream=W[U].join("\n"),Le(e,t),Be.publish("endTilingPattern",t),Ne.pop().restore()};var Pe,Me=h.__private__.newObject=function(){var e=Oe();return De(e,!0),e},Oe=h.__private__.newObjectDeferred=function(){return Q++,H[Q]=function(){return V},Q},De=function(e,t){return t="boolean"==typeof t&&t,H[e]=V,t&&Z(e+" 0 obj"),e},Ue=h.__private__.newAdditionalObject=function(){var e={objId:Oe(),content:""};return K.push(e),e},Re=Oe(),ze=Oe(),Qe=h.__private__.decodeColorString=function(e){var t=e.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var n=parseFloat(t[0]);t=[n,n,n,"r"]}for(var r="#",o=0;o<3;o++)r+=("0"+Math.floor(255*parseFloat(t[o])).toString(16)).slice(-2);return r},He=h.__private__.encodeColorString=function(e){var t;"string"==typeof e&&(e={ch1:e});var n=e.ch1,r=e.ch2,o=e.ch3,i=e.ch4,s="draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var a=new IW(n);if(a.ok)n=a.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var l=parseInt(n.substr(1),16);n=l>>16&255,r=l>>8&255,o=255&l}if(void 0===r||void 0===i&&n===r&&r===o)t="string"==typeof n?n+" "+s[0]:2===e.precision?S(n/255)+" "+s[0]:j(n/255)+" "+s[0];else if(void 0===i||"object"===(0,OQ.A)(i)){if(i&&!isNaN(i.a)&&0===i.a)return["1.","1.","1.",s[1]].join(" ");t="string"==typeof n?[n,r,o,s[1]].join(" "):2===e.precision?[S(n/255),S(r/255),S(o/255),s[1]].join(" "):[j(n/255),j(r/255),j(o/255),s[1]].join(" ")}else t="string"==typeof n?[n,r,o,i,s[2]].join(" "):2===e.precision?[S(n),S(r),S(o),S(i),s[2]].join(" "):[j(n),j(r),j(o),j(i),s[2]].join(" ");return t},qe=h.__private__.getFilters=function(){return s},Ve=h.__private__.putStream=function(e){var t=(e=e||{}).data||"",n=e.filters||qe(),r=e.alreadyAppliedFilters||[],o=e.addLength1||!1,i=t.length,s=e.objectId,a=function(e){return e};if(null!==u&&void 0===s)throw new Error("ObjectId must be passed to putStream for file encryption");null!==u&&(a=bt.encryptor(s,0));var l={};!0===n&&(n=["FlateEncode"]);var c=e.additionalKeyValues||[],d=(l=void 0!==rG.API.processDataByFilters?rG.API.processDataByFilters(t,n):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==l.data.length&&(c.push({key:"Length",value:l.data.length}),!0===o&&c.push({key:"Length1",value:i})),0!=d.length)if(d.split("/").length-1==1)c.push({key:"Filter",value:d});else{c.push({key:"Filter",value:"["+d+"]"});for(var A=0;A<c.length;A+=1)if("DecodeParms"===c[A].key){for(var h=[],p=0;p<l.reverseChain.split("/").length-1;p+=1)h.push("null");h.push(c[A].value),c[A].value="["+h.join(" ")+"]"}}Z("<<");for(var f=0;f<c.length;f++)Z("/"+c[f].key+" "+c[f].value);Z(">>"),0!==l.data.length&&(Z("stream"),Z(a(l.data)),Z("endstream"))},Ke=h.__private__.putPage=function(e){var t=e.number,n=e.data,r=e.objId,o=e.contentsObjId;De(r,!0),Z("<</Type /Page"),Z("/Parent "+e.rootDictionaryObjId+" 0 R"),Z("/Resources "+e.resourceDictionaryObjId+" 0 R"),Z("/MediaBox ["+parseFloat(_(e.mediaBox.bottomLeftX))+" "+parseFloat(_(e.mediaBox.bottomLeftY))+" "+_(e.mediaBox.topRightX)+" "+_(e.mediaBox.topRightY)+"]"),null!==e.cropBox&&Z("/CropBox ["+_(e.cropBox.bottomLeftX)+" "+_(e.cropBox.bottomLeftY)+" "+_(e.cropBox.topRightX)+" "+_(e.cropBox.topRightY)+"]"),null!==e.bleedBox&&Z("/BleedBox ["+_(e.bleedBox.bottomLeftX)+" "+_(e.bleedBox.bottomLeftY)+" "+_(e.bleedBox.topRightX)+" "+_(e.bleedBox.topRightY)+"]"),null!==e.trimBox&&Z("/TrimBox ["+_(e.trimBox.bottomLeftX)+" "+_(e.trimBox.bottomLeftY)+" "+_(e.trimBox.topRightX)+" "+_(e.trimBox.topRightY)+"]"),null!==e.artBox&&Z("/ArtBox ["+_(e.artBox.bottomLeftX)+" "+_(e.artBox.bottomLeftY)+" "+_(e.artBox.topRightX)+" "+_(e.artBox.topRightY)+"]"),"number"==typeof e.userUnit&&1!==e.userUnit&&Z("/UserUnit "+e.userUnit),Be.publish("putPage",{objId:r,pageContext:Ce[t],pageNumber:t,page:n}),Z("/Contents "+o+" 0 R"),Z(">>"),Z("endobj");var i=n.join("\n");return b===v&&(i+="\nQ"),De(o,!0),Ve({data:i,filters:qe(),objectId:o}),Z("endobj"),r},We=h.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=_e;e++)Ce[e].objId=Oe(),Ce[e].contentsObjId=Oe();for(e=1;e<=_e;e++)n.push(Ke({number:e,data:W[e],objId:Ce[e].objId,contentsObjId:Ce[e].contentsObjId,mediaBox:Ce[e].mediaBox,cropBox:Ce[e].cropBox,bleedBox:Ce[e].bleedBox,trimBox:Ce[e].trimBox,artBox:Ce[e].artBox,userUnit:Ce[e].userUnit,rootDictionaryObjId:Re,resourceDictionaryObjId:ze}));De(Re,!0),Z("<</Type /Pages");var r="/Kids [";for(t=0;t<_e;t++)r+=n[t]+" 0 R ";Z(r+"]"),Z("/Count "+_e),Z(">>"),Z("endobj"),Be.publish("postPutPages")},Ge=function(e){Be.publish("putFont",{font:e,out:Z,newObject:Me,putStream:Ve}),!0!==e.isAlreadyPutted&&(e.objectNumber=Me(),Z("<<"),Z("/Type /Font"),Z("/BaseFont /"+ZW(e.postScriptName)),Z("/Subtype /Type1"),"string"==typeof e.encoding&&Z("/Encoding /"+e.encoding),Z("/FirstChar 32"),Z("/LastChar 255"),Z(">>"),Z("endobj"))},$e=function(e){e.objectNumber=Me();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[_(e.x),_(e.y),_(e.x+e.width),_(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var n=e.pages[1].join("\n");Ve({data:n,additionalKeyValues:t,objectId:e.objectNumber}),Z("endobj")},Ye=function(e,t){t||(t=21);var n=Me(),r=function(e,t){var n,r=[],o=1/(t-1);for(n=0;n<1;n+=o)r.push(n);if(r.push(1),0!=e[0].offset){var i={offset:0,color:e[0].color};e.unshift(i)}if(1!=e[e.length-1].offset){var s={offset:1,color:e[e.length-1].color};e.push(s)}for(var a="",l=0,c=0;c<r.length;c++){for(n=r[c];n>e[l+1].offset;)l++;var u=e[l].offset,d=(n-u)/(e[l+1].offset-u),A=e[l].color,h=e[l+1].color;a+=z(Math.round((1-d)*A[0]+d*h[0]).toString(16))+z(Math.round((1-d)*A[1]+d*h[1]).toString(16))+z(Math.round((1-d)*A[2]+d*h[2]).toString(16))}return a.trim()}(e.colors,t),o=[];o.push({key:"FunctionType",value:"0"}),o.push({key:"Domain",value:"[0.0 1.0]"}),o.push({key:"Size",value:"["+t+"]"}),o.push({key:"BitsPerSample",value:"8"}),o.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),o.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ve({data:r,additionalKeyValues:o,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),Z("endobj"),e.objectNumber=Me(),Z("<< /ShadingType "+e.type),Z("/ColorSpace /DeviceRGB");var i="/Coords ["+_(parseFloat(e.coords[0]))+" "+_(parseFloat(e.coords[1]))+" ";2===e.type?i+=_(parseFloat(e.coords[2]))+" "+_(parseFloat(e.coords[3])):i+=_(parseFloat(e.coords[2]))+" "+_(parseFloat(e.coords[3]))+" "+_(parseFloat(e.coords[4]))+" "+_(parseFloat(e.coords[5])),Z(i+="]"),e.matrix&&Z("/Matrix ["+e.matrix.toString()+"]"),Z("/Function "+n+" 0 R"),Z("/Extend [true true]"),Z(">>"),Z("endobj")},Ze=function(e,t){var n=Oe(),r=Me();t.push({resourcesOid:n,objectOid:r}),e.objectNumber=r;var o=[];o.push({key:"Type",value:"/Pattern"}),o.push({key:"PatternType",value:"1"}),o.push({key:"PaintType",value:"1"}),o.push({key:"TilingType",value:"1"}),o.push({key:"BBox",value:"["+e.boundingBox.map(_).join(" ")+"]"}),o.push({key:"XStep",value:_(e.xStep)}),o.push({key:"YStep",value:_(e.yStep)}),o.push({key:"Resources",value:n+" 0 R"}),e.matrix&&o.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),Ve({data:e.stream,additionalKeyValues:o,objectId:e.objectNumber}),Z("endobj")},Xe=function(e){for(var t in e.objectNumber=Me(),Z("<<"),e)switch(t){case"opacity":Z("/ca "+S(e[t]));break;case"stroke-opacity":Z("/CA "+S(e[t]))}Z(">>"),Z("endobj")},Je=function(e){De(e.resourcesOid,!0),Z("<<"),Z("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var e in Z("/Font <<"),me)me.hasOwnProperty(e)&&(!1===d||!0===d&&A.hasOwnProperty(e))&&Z("/"+e+" "+me[e].objectNumber+" 0 R");Z(">>")}(),function(){if(Object.keys(ve).length>0){for(var e in Z("/Shading <<"),ve)ve.hasOwnProperty(e)&&ve[e]instanceof tG&&ve[e].objectNumber>=0&&Z("/"+e+" "+ve[e].objectNumber+" 0 R");Be.publish("putShadingPatternDict"),Z(">>")}}(),function(e){if(Object.keys(ve).length>0){for(var t in Z("/Pattern <<"),ve)ve.hasOwnProperty(t)&&ve[t]instanceof h.TilingPattern&&ve[t].objectNumber>=0&&ve[t].objectNumber<e&&Z("/"+t+" "+ve[t].objectNumber+" 0 R");Be.publish("putTilingPatternDict"),Z(">>")}}(e.objectOid),function(){if(Object.keys(we).length>0){var e;for(e in Z("/ExtGState <<"),we)we.hasOwnProperty(e)&&we[e].objectNumber>=0&&Z("/"+e+" "+we[e].objectNumber+" 0 R");Be.publish("putGStateDict"),Z(">>")}}(),function(){for(var e in Z("/XObject <<"),je)je.hasOwnProperty(e)&&je[e].objectNumber>=0&&Z("/"+e+" "+je[e].objectNumber+" 0 R");Be.publish("putXobjectDict"),Z(">>")}(),Z(">>"),Z("endobj")},et=function(e){ge[e.fontName]=ge[e.fontName]||{},ge[e.fontName][e.fontStyle]=e.id},tt=function(e,t,n,r,o){var i={id:"F"+(Object.keys(me).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:n,encoding:r,isStandardFont:o||!1,metadata:{}};return Be.publish("addFont",{font:i,instance:this}),me[i.id]=i,et(i),i.id},nt=h.__private__.pdfEscape=h.pdfEscape=function(e,t){return function(e,t){var n,r,o,i,s,a,l,c,u;if(o=(t=t||{}).sourceEncoding||"Unicode",s=t.outputEncoding,(t.autoencode||s)&&me[de].metadata&&me[de].metadata[o]&&me[de].metadata[o].encoding&&(i=me[de].metadata[o].encoding,!s&&me[de].encoding&&(s=me[de].encoding),!s&&i.codePages&&(s=i.codePages[0]),"string"==typeof s&&(s=i[s]),s)){for(l=!1,a=[],n=0,r=e.length;n<r;n++)(c=s[e.charCodeAt(n)])?a.push(String.fromCharCode(c)):a.push(e[n]),a[n].charCodeAt(0)>>8&&(l=!0);e=a.join("")}for(n=e.length;void 0===l&&0!==n;)e.charCodeAt(n-1)>>8&&(l=!0),n--;if(!l)return e;for(a=t.noBOM?[]:[254,255],n=0,r=e.length;n<r;n++){if((u=(c=e.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");a.push(u),a.push(c-(u<<8))}return String.fromCharCode.apply(void 0,a)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},rt=h.__private__.beginPage=function(e){W[++_e]=[],Ce[_e]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},st(_e),Y(W[U])},ot=function(e,t){var r,i,s;switch(n=t||n,"string"==typeof e&&(r=g(e.toLowerCase()),Array.isArray(r)&&(i=r[0],s=r[1])),Array.isArray(e)&&(i=e[0]*Ae,s=e[1]*Ae),isNaN(i)&&(i=o[0],s=o[1]),(i>14400||s>14400)&&(BW.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),s=Math.min(14400,s)),o=[i,s],n.substr(0,1)){case"l":s>i&&(o=[s,i]);break;case"p":i>s&&(o=[s,i])}rt(o),Rt(Dt),Z(Gt),0!==en&&Z(en+" J"),0!==tn&&Z(tn+" j"),Be.publish("addPage",{pageNumber:_e})},it=function(e){e>0&&e<=_e&&(W.splice(e,1),Ce.splice(e,1),_e--,U>_e&&(U=_e),this.setPage(U))},st=function(e){e>0&&e<=_e&&(U=e)},at=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return W.length-1},lt=function(e,t,n){var r,o=void 0;return n=n||{},e=void 0!==e?e:me[de].fontName,t=void 0!==t?t:me[de].fontStyle,r=e.toLowerCase(),void 0!==ge[r]&&void 0!==ge[r][t]?o=ge[r][t]:void 0!==ge[e]&&void 0!==ge[e][t]?o=ge[e][t]:!1===n.disableWarning&&BW.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),o||n.noFallback||null==(o=ge.times[t])&&(o=ge.times.normal),o},ct=h.__private__.putInfo=function(){var e=Me(),t=function(e){return e};for(var n in null!==u&&(t=bt.encryptor(e,0)),Z("<<"),Z("/Producer ("+nt(t("jsPDF "+rG.version))+")"),ue)ue.hasOwnProperty(n)&&ue[n]&&Z("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+nt(t(ue[n]))+")");Z("/CreationDate ("+nt(t(I))+")"),Z(">>"),Z("endobj")},ut=h.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||Re;switch(Me(),Z("<<"),Z("/Type /Catalog"),Z("/Pages "+t+" 0 R"),ne||(ne="fullwidth"),ne){case"fullwidth":Z("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Z("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Z("/OpenAction [3 0 R /Fit]");break;case"original":Z("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+ne;"%"===n.substr(n.length-1)&&(ne=parseInt(ne)/100),"number"==typeof ne&&Z("/OpenAction [3 0 R /XYZ null null "+S(ne)+"]")}switch(ae||(ae="continuous"),ae){case"continuous":Z("/PageLayout /OneColumn");break;case"single":Z("/PageLayout /SinglePage");break;case"two":case"twoleft":Z("/PageLayout /TwoColumnLeft");break;case"tworight":Z("/PageLayout /TwoColumnRight")}ie&&Z("/PageMode /"+ie),Be.publish("putCatalog"),Z(">>"),Z("endobj")},dt=h.__private__.putTrailer=function(){Z("trailer"),Z("<<"),Z("/Size "+(Q+1)),Z("/Root "+Q+" 0 R"),Z("/Info "+(Q-1)+" 0 R"),null!==u&&Z("/Encrypt "+bt.oid+" 0 R"),Z("/ID [ <"+F+"> <"+F+"> ]"),Z(">>")},At=h.__private__.putHeader=function(){Z("%PDF-"+p),Z("%ºß¬à")},ht=h.__private__.putXRef=function(){var e="0000000000";Z("xref"),Z("0 "+(Q+1)),Z("0000000000 65535 f ");for(var t=1;t<=Q;t++)"function"==typeof H[t]?Z((e+H[t]()).slice(-10)+" 00000 n "):void 0!==H[t]?Z((e+H[t]).slice(-10)+" 00000 n "):Z("0000000000 00000 n ")},pt=h.__private__.buildDocument=function(){var e;Q=0,V=0,q=[],H=[],K=[],Re=Oe(),ze=Oe(),Y(q),Be.publish("buildDocument"),At(),We(),function(){Be.publish("putAdditionalObjects");for(var e=0;e<K.length;e++){var t=K[e];De(t.objId,!0),Z(t.content),Z("endobj")}Be.publish("postPutAdditionalObjects")}(),e=[],function(){for(var e in me)me.hasOwnProperty(e)&&(!1===d||!0===d&&A.hasOwnProperty(e))&&Ge(me[e])}(),function(){var e;for(e in we)we.hasOwnProperty(e)&&Xe(we[e])}(),function(){for(var e in je)je.hasOwnProperty(e)&&$e(je[e])}(),function(e){var t;for(t in ve)ve.hasOwnProperty(t)&&(ve[t]instanceof tG?Ye(ve[t]):ve[t]instanceof nG&&Ze(ve[t],e))}(e),Be.publish("putResources"),e.forEach(Je),Je({resourcesOid:ze,objectOid:Number.MAX_SAFE_INTEGER}),Be.publish("postPutResources"),null!==u&&(bt.oid=Me(),Z("<<"),Z("/Filter /Standard"),Z("/V "+bt.v),Z("/R "+bt.r),Z("/U <"+bt.toHexString(bt.U)+">"),Z("/O <"+bt.toHexString(bt.O)+">"),Z("/P "+bt.P),Z(">>"),Z("endobj")),ct(),ut();var t=V;return ht(),dt(),Z("startxref"),Z(""+t),Z("%%EOF"),Y(W[U]),q.join("\n")},ft=h.__private__.getBlob=function(e){return new Blob([J(e)],{type:"application/pdf"})},mt=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},gt=function(e){var t,n=e.document,r=n.documentElement,o=n.head,i=n.body;return o||(o=n.createElement("head"),r.appendChild(o)),i||(i=n.createElement("body"),r.appendChild(i)),mt(o),mt(i),(t=n.createElement("style")).appendChild(n.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),o.appendChild(t),{document:n,body:i}},yt=h.output=h.__private__.output=(Pe=function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return pt();case"save":h.save(t.filename);break;case"arraybuffer":return J(pt());case"blob":return ft(pt());case"bloburi":case"bloburl":if(void 0!==_W.URL&&"function"==typeof _W.URL.createObjectURL)return _W.URL&&_W.URL.createObjectURL(ft(pt()))||void 0;BW.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=pt();try{n=TW(r)}catch(e){n=TW(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+encodeURIComponent(t.filename)+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(_W)){var o="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",i=!t.pdfObjectUrl;i||(o=t.pdfObjectUrl);var s=_W.open();if(null!==s){var a=gt(s),l=a.document.createElement("script"),c=this;l.src=o,i&&(l.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",l.crossOrigin="anonymous"),l.onload=function(){s.PDFObject.embed(c.output("dataurlstring"),t)},a.body.appendChild(l)}return s}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(_W)){var u=t.pdfJsUrl||"examples/PDF.js/web/viewer.html",d=_W.open();if(null!==d){var A=gt(d),p=A.document.createElement("iframe"),f=-1===u.indexOf("?")?"?":"&";c=this,p.id="pdfViewer",p.width="500px",p.height="400px",p.src=u+f+"file=&downloadName="+encodeURIComponent(t.filename),p.onload=function(){d.document.title=t.filename,p.contentWindow.PDFViewerApplication.open(c.output("bloburl"))},A.body.appendChild(p)}return d}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(_W))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var m=_W.open();if(null!==m){var g=gt(m),y=g.document.createElement("iframe");y.src=this.output("datauristring",t),g.body.appendChild(y),m.document.title=t.filename}if(m||"undefined"==typeof safari)return m;break;case"datauri":case"dataurl":return _W.document.location.href=this.output("datauristring",t);default:return null}},Pe.foo=function(){try{return Pe.apply(this,arguments)}catch(n){var e=n.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var t="Error in function "+e.split("\n")[0].split("<")[0]+": "+n.message;if(!_W.console)throw new Error(t);_W.console.error(t,n),_W.alert&&alert(t)}},Pe.foo.bar=Pe,Pe.foo),vt=function(e){return!0===Array.isArray(Se)&&Se.indexOf(e)>-1};switch(r){case"pt":Ae=1;break;case"mm":Ae=72/25.4;break;case"cm":Ae=72/2.54;break;case"in":Ae=72;break;case"px":Ae=1==vt("px_scaling")?.75:96/72;break;case"pc":case"em":Ae=12;break;case"ex":Ae=6;break;default:if("number"!=typeof r)throw new Error("Invalid unit: "+r);Ae=r}var bt=null;O(),L();var wt=h.__private__.getPageInfo=h.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ce[e].objId,pageNumber:e,pageContext:Ce[e]}},xt=h.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in Ce)if(Ce[t].objId===e)break;return wt(t)},kt=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:Ce[U].objId,pageNumber:U,pageContext:Ce[U]}};h.addPage=function(){return ot.apply(this,arguments),this},h.setPage=function(){return st.apply(this,arguments),Y.call(this,W[U]),this},h.insertPage=function(e){return this.addPage(),this.movePage(U,e),this},h.movePage=function(e,t){var n,r;if(e>t){n=W[e],r=Ce[e];for(var o=e;o>t;o--)W[o]=W[o-1],Ce[o]=Ce[o-1];W[t]=n,Ce[t]=r,this.setPage(t)}else if(e<t){n=W[e],r=Ce[e];for(var i=e;i<t;i++)W[i]=W[i+1],Ce[i]=Ce[i+1];W[t]=n,Ce[t]=r,this.setPage(t)}return this},h.deletePage=function(){return it.apply(this,arguments),this},h.__private__.text=h.text=function(e,t,n,r,o){var i,s,a,l,c,u,d,h,p,f=(r=r||{}).scope||this;if("number"==typeof e&&"number"==typeof t&&("string"==typeof n||Array.isArray(n))){var m=n;n=t,t=e,e=m}if(arguments[3]instanceof Ie==0?(a=arguments[4],l=arguments[5],"object"===(0,OQ.A)(d=arguments[3])&&null!==d||("string"==typeof a&&(l=a,a=null),"string"==typeof d&&(l=d,d=null),"number"==typeof d&&(a=d,d=null),r={flags:d,angle:a,align:l})):(C("The transform parameter of text() with a Matrix value"),p=o),isNaN(t)||isNaN(n)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return f;var g,y="",w="number"==typeof r.lineHeightFactor?r.lineHeightFactor:Ot,x=f.internal.scaleFactor;function k(e){return e=e.split("\t").join(Array(r.TabLen||9).join(" ")),nt(e,d)}function B(e){for(var t,n=e.concat(),r=[],o=n.length;o--;)"string"==typeof(t=n.shift())?r.push(t):Array.isArray(e)&&(1===t.length||void 0===t[1]&&void 0===t[2])?r.push(t[0]):r.push([t[0],t[1],t[2]]);return r}function S(e,t){var n;if("string"==typeof e)n=t(e)[0];else if(Array.isArray(e)){for(var r,o,i=e.concat(),s=[],a=i.length;a--;)"string"==typeof(r=i.shift())?s.push(t(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(o=t(r[0],r[1],r[2]),s.push([o[0],o[1],o[2]]));n=s}return n}var j=!1,N=!0;if("string"==typeof e)j=!0;else if(Array.isArray(e)){var I=e.concat();s=[];for(var F,T=I.length;T--;)("string"!=typeof(F=I.shift())||Array.isArray(F)&&"string"!=typeof F[0])&&(N=!1);j=N}if(!1===j)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var L=te/f.internal.scaleFactor,P=L*(w-1);switch(r.baseline){case"bottom":n-=P;break;case"top":n+=L-P;break;case"hanging":n+=L-2*P;break;case"middle":n+=L/2-P}if((u=r.maxWidth||0)>0&&("string"==typeof e?e=f.splitTextToSize(e,u):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce(function(e,t){return e.concat(f.splitTextToSize(t,u))},[]))),i={text:e,x:t,y:n,options:r,mutex:{pdfEscape:nt,activeFontKey:de,fonts:me,activeFontSize:te}},Be.publish("preProcessText",i),e=i.text,a=(r=i.options).angle,p instanceof Ie==0&&a&&"number"==typeof a){a*=Math.PI/180,0===r.rotationDirection&&(a=-a),b===v&&(a=-a);var M=Math.cos(a),O=Math.sin(a);p=new Ie(M,O,-O,M,0,0)}else a&&a instanceof Ie&&(p=a);b!==v||p||(p=Te),void 0!==(c=r.charSpace||Xt)&&(y+=_(E(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(h=r.horizontalScale)&&(y+=_(100*h)+" Tz\n"),r.lang;var D=-1,U=void 0!==r.renderingMode?r.renderingMode:r.stroke,R=f.internal.getCurrentPageInfo().pageContext;switch(U){case 0:case!1:case"fill":D=0;break;case 1:case!0:case"stroke":D=1;break;case 2:case"fillThenStroke":D=2;break;case 3:case"invisible":D=3;break;case 4:case"fillAndAddForClipping":D=4;break;case 5:case"strokeAndAddPathForClipping":D=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":D=6;break;case 7:case"addToPathForClipping":D=7}var z=void 0!==R.usedRenderingMode?R.usedRenderingMode:-1;-1!==D?y+=D+" Tr\n":-1!==z&&(y+="0 Tr\n"),-1!==D&&(R.usedRenderingMode=D),l=r.align||"left";var Q,H=te*w,q=f.internal.pageSize.getWidth(),V=me[de];c=r.charSpace||Xt,u=r.maxWidth||0,d=Object.assign({autoencode:!0,noBOM:!0},r.flags);var K=[],W=function(e){return f.getStringUnitWidth(e,{font:V,charSpace:c,fontSize:te,doKerning:!1})*te/x};if("[object Array]"===Object.prototype.toString.call(e)){var G;s=B(e),"left"!==l&&(Q=s.map(W));var $,Y=0;if("right"===l){t-=Q[0],e=[],T=s.length;for(var X=0;X<T;X++)0===X?($=qt(t),G=Vt(n)):($=E(Y-Q[X]),G=-H),e.push([s[X],$,G]),Y=Q[X]}else if("center"===l){t-=Q[0]/2,e=[],T=s.length;for(var J=0;J<T;J++)0===J?($=qt(t),G=Vt(n)):($=E((Y-Q[J])/2),G=-H),e.push([s[J],$,G]),Y=Q[J]}else if("left"===l){e=[],T=s.length;for(var ee=0;ee<T;ee++)e.push(s[ee])}else if("justify"===l&&"Identity-H"===V.encoding){e=[],T=s.length,u=0!==u?u:q;for(var ne=0,re=0;re<T;re++)if(G=0===re?Vt(n):-H,$=0===re?qt(t):ne,re<T-1){var ie=E((u-Q[re])/(s[re].split(" ").length-1)),se=s[re].split(" ");e.push([se[0]+" ",$,G]),ne=0;for(var ae=1;ae<se.length;ae++){var le=(W(se[ae-1]+" "+se[ae])-W(se[ae]))*x+ie;ae==se.length-1?e.push([se[ae],le,0]):e.push([se[ae]+" ",le,0]),ne-=le}}else e.push([s[re],$,G]);e.push(["",ne,0])}else{if("justify"!==l)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(e=[],T=s.length,u=0!==u?u:q,re=0;re<T;re++){G=0===re?Vt(n):-H,$=0===re?qt(t):0;var ce=s[re].split(" ").length-1,ue=ce>0?(u-Q[re])/ce:0;re<T-1?K.push(_(E(ue))):K.push(0),e.push([s[re],$,G])}}}!0===("boolean"==typeof r.R2L?r.R2L:oe)&&(e=S(e,function(e,t,n){return[e.split("").reverse().join(""),t,n]})),i={text:e,x:t,y:n,options:r,mutex:{pdfEscape:nt,activeFontKey:de,fonts:me,activeFontSize:te}},Be.publish("postProcessText",i),e=i.text,g=i.mutex.isHex||!1;var Ae=me[de].encoding;"WinAnsiEncoding"!==Ae&&"StandardEncoding"!==Ae||(e=S(e,function(e,t,n){return[k(e),t,n]})),s=B(e),e=[];for(var he,pe,fe,ge=Array.isArray(s[0])?1:0,ye="",ve=function(e,t,n){var o="";return n instanceof Ie?(n="number"==typeof r.angle?Fe(n,new Ie(1,0,0,1,e,t)):Fe(new Ie(1,0,0,1,e,t),n),b===v&&(n=Fe(new Ie(1,0,0,-1,0,0),n)),o=n.join(" ")+" Tm\n"):o=_(e)+" "+_(t)+" Td\n",o},be=0;be<s.length;be++){switch(ye="",ge){case 1:fe=(g?"<":"(")+s[be][0]+(g?">":")"),he=parseFloat(s[be][1]),pe=parseFloat(s[be][2]);break;case 0:fe=(g?"<":"(")+s[be]+(g?">":")"),he=qt(t),pe=Vt(n)}void 0!==K&&void 0!==K[be]&&(ye=K[be]+" Tw\n"),0===be?e.push(ye+ve(he,pe,p)+fe):0===ge?e.push(ye+fe):1===ge&&e.push(ye+ve(he,pe,p)+fe)}e=0===ge?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var we="BT\n/";return we+=de+" "+te+" Tf\n",we+=_(te*w)+" TL\n",we+=Yt+"\n",we+=y,we+=e,Z(we+="ET"),A[de]=!0,f};var _t=h.__private__.clip=h.clip=function(e){return Z("evenodd"===e?"W*":"W"),this};h.clipEvenOdd=function(){return _t("evenodd")},h.__private__.discardPath=h.discardPath=function(){return Z("n"),this};var Ct=h.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(e)&&(t=!0),t};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(e){return Ct(e)&&(c=e),this};var Bt=h.__private__.getStyle=h.getStyle=function(e){var t=c;switch(e){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=e}return t},St=h.close=function(){return Z("h"),this};h.stroke=function(){return Z("S"),this},h.fill=function(e){return jt("f",e),this},h.fillEvenOdd=function(e){return jt("f*",e),this},h.fillStroke=function(e){return jt("B",e),this},h.fillStrokeEvenOdd=function(e){return jt("B*",e),this};var jt=function(e,t){"object"===(0,OQ.A)(t)?It(t,e):Z(e)},Et=function(e){null===e||b===v&&void 0===e||(e=Bt(e),Z(e))};function Nt(e,t,n,r,o){var i=new nG(t||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,o||this.matrix);i.stream=this.stream;var s=e+"$$"+this.cloneIndex+++"$$";return Le(s,i),i}var It=function(e,t){var n=be[e.key],r=ve[n];if(r instanceof tG)Z("q"),Z(Ft(t)),r.gState&&h.setGState(r.gState),Z(e.matrix.toString()+" cm"),Z("/"+n+" sh"),Z("Q");else if(r instanceof nG){var o=new Ie(1,0,0,-1,0,fn());e.matrix&&(o=o.multiply(e.matrix||Te),n=Nt.call(r,e.key,e.boundingBox,e.xStep,e.yStep,o).id),Z("q"),Z("/Pattern cs"),Z("/"+n+" scn"),r.gState&&h.setGState(r.gState),Z(t),Z("Q")}},Ft=function(e){switch(e){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Tt=h.moveTo=function(e,t){return Z(_(E(e))+" "+_(N(t))+" m"),this},Lt=h.lineTo=function(e,t){return Z(_(E(e))+" "+_(N(t))+" l"),this},Pt=h.curveTo=function(e,t,n,r,o,i){return Z([_(E(e)),_(N(t)),_(E(n)),_(N(r)),_(E(o)),_(N(i)),"c"].join(" ")),this};h.__private__.line=h.line=function(e,t,n,r,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Ct(o))throw new Error("Invalid arguments passed to jsPDF.line");return b===y?this.lines([[n-e,r-t]],e,t,[1,1],o||"S"):this.lines([[n-e,r-t]],e,t,[1,1]).stroke()},h.__private__.lines=h.lines=function(e,t,n,r,o,i){var s,a,l,c,u,d,A,h,p,f,m,g;if("number"==typeof e&&(g=n,n=t,t=e,e=g),r=r||[1,1],i=i||!1,isNaN(t)||isNaN(n)||!Array.isArray(e)||!Array.isArray(r)||!Ct(o)||"boolean"!=typeof i)throw new Error("Invalid arguments passed to jsPDF.lines");for(Tt(t,n),s=r[0],a=r[1],c=e.length,f=t,m=n,l=0;l<c;l++)2===(u=e[l]).length?(f=u[0]*s+f,m=u[1]*a+m,Lt(f,m)):(d=u[0]*s+f,A=u[1]*a+m,h=u[2]*s+f,p=u[3]*a+m,f=u[4]*s+f,m=u[5]*a+m,Pt(d,A,h,p,f,m));return i&&St(),Et(o),this},h.path=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.c;switch(n.op){case"m":Tt(r[0],r[1]);break;case"l":Lt(r[0],r[1]);break;case"c":Pt.apply(this,r);break;case"h":St()}}return this},h.__private__.rect=h.rect=function(e,t,n,r,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Ct(o))throw new Error("Invalid arguments passed to jsPDF.rect");return b===y&&(r=-r),Z([_(E(e)),_(N(t)),_(E(n)),_(E(r)),"re"].join(" ")),Et(o),this},h.__private__.triangle=h.triangle=function(e,t,n,r,o,i,s){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(o)||isNaN(i)||!Ct(s))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-e,r-t],[o-n,i-r],[e-o,t-i]],e,t,[1,1],s,!0),this},h.__private__.roundedRect=h.roundedRect=function(e,t,n,r,o,i,s){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(o)||isNaN(i)||!Ct(s))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var a=4/3*(Math.SQRT2-1);return o=Math.min(o,.5*n),i=Math.min(i,.5*r),this.lines([[n-2*o,0],[o*a,0,o,i-i*a,o,i],[0,r-2*i],[0,i*a,-o*a,i,-o,i],[2*o-n,0],[-o*a,0,-o,-i*a,-o,-i],[0,2*i-r],[0,-i*a,o*a,-i,o,-i]],e+o,t,[1,1],s,!0),this},h.__private__.ellipse=h.ellipse=function(e,t,n,r,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Ct(o))throw new Error("Invalid arguments passed to jsPDF.ellipse");var i=4/3*(Math.SQRT2-1)*n,s=4/3*(Math.SQRT2-1)*r;return Tt(e+n,t),Pt(e+n,t-s,e+i,t-r,e,t-r),Pt(e-i,t-r,e-n,t-s,e-n,t),Pt(e-n,t+s,e-i,t+r,e,t+r),Pt(e+i,t+r,e+n,t+s,e+n,t),Et(o),this},h.__private__.circle=h.circle=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||!Ct(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(e,t,n,n,r)},h.setFont=function(e,t,n){return n&&(t=k(t,n)),de=lt(e,t,{disableWarning:!1}),this};var Mt=h.__private__.getFont=h.getFont=function(){return me[lt.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var e,t,n={};for(e in ge)if(ge.hasOwnProperty(e))for(t in n[e]=[],ge[e])ge[e].hasOwnProperty(t)&&n[e].push(t);return n},h.addFont=function(e,t,n,r,o){var i=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==i.indexOf(arguments[3])?o=arguments[3]:arguments[3]&&-1==i.indexOf(arguments[3])&&(n=k(n,r)),tt.call(this,e,t,n,o=o||"Identity-H")};var Ot,Dt=e.lineWidth||.200025,Ut=h.__private__.getLineWidth=h.getLineWidth=function(){return Dt},Rt=h.__private__.setLineWidth=h.setLineWidth=function(e){return Dt=e,Z(_(E(e))+" w"),this};h.__private__.setLineDash=rG.API.setLineDash=rG.API.setLineDashPattern=function(e,t){if(e=e||[],t=t||0,isNaN(t)||!Array.isArray(e))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return e=e.map(function(e){return _(E(e))}).join(" "),t=_(E(t)),Z("["+e+"] "+t+" d"),this};var zt=h.__private__.getLineHeight=h.getLineHeight=function(){return te*Ot};h.__private__.getLineHeight=h.getLineHeight=function(){return te*Ot};var Qt=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(e){return"number"==typeof(e=e||1.15)&&(Ot=e),this},Ht=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return Ot};Qt(e.lineHeight);var qt=h.__private__.getHorizontalCoordinate=function(e){return E(e)},Vt=h.__private__.getVerticalCoordinate=function(e){return b===v?e:Ce[U].mediaBox.topRightY-Ce[U].mediaBox.bottomLeftY-E(e)},Kt=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(e){return _(qt(e))},Wt=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(e){return _(Vt(e))},Gt=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return Qe(Gt)},h.__private__.setStrokeColor=h.setDrawColor=function(e,t,n,r){return Gt=He({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),Z(Gt),this};var $t=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return Qe($t)},h.__private__.setFillColor=h.setFillColor=function(e,t,n,r){return $t=He({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),Z($t),this};var Yt=e.textColor||"0 g",Zt=h.__private__.getTextColor=h.getTextColor=function(){return Qe(Yt)};h.__private__.setTextColor=h.setTextColor=function(e,t,n,r){return Yt=He({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this};var Xt=e.charSpace,Jt=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(Xt||0)};h.__private__.setCharSpace=h.setCharSpace=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Xt=e,this};var en=0;h.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},h.__private__.setLineCap=h.setLineCap=function(e){var t=h.CapJoinStyles[e];if(void 0===t)throw new Error("Line cap style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return en=t,Z(t+" J"),this};var tn=0;h.__private__.setLineJoin=h.setLineJoin=function(e){var t=h.CapJoinStyles[e];if(void 0===t)throw new Error("Line join style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return tn=t,Z(t+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(e){if(e=e||0,isNaN(e))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Z(_(E(e))+" M"),this},h.GState=JW,h.setGState=function(e){(e="string"==typeof e?we[xe[e]]:nn(null,e)).equals(ke)||(Z("/"+e.id+" gs"),ke=e)};var nn=function(e,t){if(!e||!xe[e]){var n=!1;for(var r in we)if(we.hasOwnProperty(r)&&we[r].equals(t)){n=!0;break}if(n)t=we[r];else{var o="GS"+(Object.keys(we).length+1).toString(10);we[o]=t,t.id=o}return e&&(xe[e]=t.id),Be.publish("addGState",t),t}};h.addGState=function(e,t){return nn(e,t),this},h.saveGraphicsState=function(){return Z("q"),ye.push({key:de,size:te,color:Yt}),this},h.restoreGraphicsState=function(){Z("Q");var e=ye.pop();return de=e.key,te=e.size,Yt=e.color,ke=null,this},h.setCurrentTransformationMatrix=function(e){return Z(e.toString()+" cm"),this},h.comment=function(e){return Z("#"+e),this};var rn=function(e,t){var n=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var r=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}});var o="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return o},set:function(e){o=e.toString()}}),this},on=function(e,t,n,r){rn.call(this,e,t),this.type="rect";var o=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return o},set:function(e){isNaN(e)||(o=parseFloat(e))}});var i=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return i},set:function(e){isNaN(e)||(i=parseFloat(e))}}),this},sn=function(){this.page=_e,this.currentPage=U,this.pages=W.slice(0),this.pagesContext=Ce.slice(0),this.x=he,this.y=pe,this.matrix=fe,this.width=cn(U),this.height=dn(U),this.outputDestination=$,this.id="",this.objectNumber=-1};sn.prototype.restore=function(){_e=this.page,U=this.currentPage,Ce=this.pagesContext,W=this.pages,he=this.x,pe=this.y,fe=this.matrix,un(U,this.width),An(U,this.height),$=this.outputDestination};var an=function(e,t,n,r,o){Ne.push(new sn),_e=U=0,W=[],he=e,pe=t,fe=o,rt([n,r])};for(var ln in h.beginFormObject=function(e,t,n,r,o){return an(e,t,n,r,o),this},h.endFormObject=function(e){return function(e){if(Ee[e])Ne.pop().restore();else{var t=new sn,n="Xo"+(Object.keys(je).length+1).toString(10);t.id=n,Ee[e]=n,je[n]=t,Be.publish("addFormObject",t),Ne.pop().restore()}}(e),this},h.doFormObject=function(e,t){var n=je[Ee[e]];return Z("q"),Z(t.toString()+" cm"),Z("/"+n.id+" Do"),Z("Q"),this},h.getFormObject=function(e){var t=je[Ee[e]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},h.save=function(e,t){return e=e||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(NW(ft(pt()),e),"function"==typeof NW.unload&&_W.setTimeout&&setTimeout(NW.unload,911),this):new Promise(function(t,n){try{var r=NW(ft(pt()),e);"function"==typeof NW.unload&&_W.setTimeout&&setTimeout(NW.unload,911),t(r)}catch(e){n(e.message)}})},rG.API)rG.API.hasOwnProperty(ln)&&("events"===ln&&rG.API.events.length?function(e,t){var n,r,o;for(o=t.length-1;-1!==o;o--)n=t[o][0],r=t[o][1],e.subscribe.apply(e,[n].concat("function"==typeof r?[r]:r))}(Be,rG.API.events):h[ln]=rG.API[ln]);function cn(e){return Ce[e].mediaBox.topRightX-Ce[e].mediaBox.bottomLeftX}function un(e,t){Ce[e].mediaBox.topRightX=t+Ce[e].mediaBox.bottomLeftX}function dn(e){return Ce[e].mediaBox.topRightY-Ce[e].mediaBox.bottomLeftY}function An(e,t){Ce[e].mediaBox.topRightY=t+Ce[e].mediaBox.bottomLeftY}var hn=h.getPageWidth=function(e){return cn(e=e||U)/Ae},pn=h.setPageWidth=function(e,t){un(e,t*Ae)},fn=h.getPageHeight=function(e){return dn(e=e||U)/Ae},mn=h.setPageHeight=function(e,t){An(e,t*Ae)};return h.internal={pdfEscape:nt,getStyle:Bt,getFont:Mt,getFontSize:re,getCharSpace:Jt,getTextColor:Zt,getLineHeight:zt,getLineHeightFactor:Ht,getLineWidth:Ut,write:X,getHorizontalCoordinate:qt,getVerticalCoordinate:Vt,getCoordinateString:Kt,getVerticalCoordinateString:Wt,collections:{},newObject:Me,newAdditionalObject:Ue,newObjectDeferred:Oe,newObjectDeferredBegin:De,getFilters:qe,putStream:Ve,events:Be,scaleFactor:Ae,pageSize:{getWidth:function(){return hn(U)},setWidth:function(e){pn(U,e)},getHeight:function(){return fn(U)},setHeight:function(e){mn(U,e)}},encryptionOptions:u,encryption:bt,getEncryptor:function(e){return null!==u?bt.encryptor(e,0):function(e){return e}},output:yt,getNumberOfPages:at,get pages(){return W},out:Z,f2:S,f3:j,getPageInfo:wt,getPageInfoByObjId:xt,getCurrentPageInfo:kt,getPDFVersion:f,Point:rn,Rectangle:on,Matrix:Ie,hasHotfix:vt},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return hn(U)},set:function(e){pn(U,e)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return fn(U)},set:function(e){mn(U,e)},enumerable:!0,configurable:!0}),function(e){for(var t=0,n=ee.length;t<n;t++){var r=tt.call(this,e[t][0],e[t][1],e[t][2],ee[t][3],!0);!1===d&&(A[r]=!0);var o=e[t][0].split("-");et({id:r,fontName:o[0],fontStyle:o[1]||""})}Be.publish("addFonts",{fonts:me,dictionary:ge})}.call(h,ee),de="F1",ot(o,n),Be.publish("initialized"),h}YW.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},YW.prototype.toHexString=function(e){return e.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},YW.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},YW.prototype.processOwnerPassword=function(e,t){return GW(VW(t).substr(0,5),e)},YW.prototype.encryptor=function(e,t){var n=VW(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return GW(n,e)}},JW.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||(0,OQ.A)(e)!==(0,OQ.A)(this))return!1;var r=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t))return!1;if(this[t]!==e[t])return!1;r++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&r--;return 0===r},rG.API={events:[]},rG.version="4.2.1";var oG=rG.API,iG=1,sG=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},aG=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},lG=function(e){return e.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"#"+(1===t.length?"0"+t:t)})},cG=function(e){return e.toFixed(2)},uG=function(e){return e.toFixed(5)};oG.__acroform__={};var dG=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},AG=function(e){return e*iG},hG=function(e){var t=new EG,n=HG.internal.getHeight(e)||0,r=HG.internal.getWidth(e)||0;return t.BBox=[0,0,Number(cG(r)),Number(cG(n))],t},pG=oG.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},fG=oG.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},mG=oG.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},gG=oG.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return mG(e,t-1)},yG=oG.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return pG(e,t-1)},vG=oG.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return fG(e,t-1)},bG=oG.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,o=e[0],i=e[1],s=e[2],a=e[3],l={};return l.lowerLeft_X=n(o)||0,l.lowerLeft_Y=r(i+a)||0,l.upperRight_X=n(o+s)||0,l.upperRight_Y=r(i)||0,[Number(cG(l.lowerLeft_X)),Number(cG(l.lowerLeft_Y)),Number(cG(l.upperRight_X)),Number(cG(l.upperRight_Y))]},wG=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,r=xG(e,n),o=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+o+" "+cG(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=hG(e);return i.scope=e.scope,i.stream=t.join("\n"),i}},xG=function(e,t){var n=0===e.fontSize?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},o=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" ");o=e.multiline?o.map(function(e){return e.split("\n")}):o.map(function(e){return[e]});var i=n,s=HG.internal.getHeight(e)||0;s=s<0?-s:s;var a=HG.internal.getWidth(e)||0;a=a<0?-a:a;var l=function(t,n,r){if(t+1<o.length){var i=n+" "+o[t+1][0];return kG(i,e,r).width<=a-4}return!1};i++;e:for(;i>0;){t="",i--;var c,u,d=kG("3",e,i).height,A=e.multiline?s-i:(s-d)/2,h=A+=2,p=0,f=0,m=0;if(i<=0){t="(...) Tj\n",t+="% Width of Text: "+kG(t,e,i=12).width+", FieldWidth:"+a+"\n";break}for(var g="",y=0,v=0;v<o.length;v++)if(o.hasOwnProperty(v)){var b=!1;if(1!==o[v].length&&m!==o[v].length-1){if((d+2)*(y+2)+2>s)continue e;g+=o[v][m],b=!0,f=v,v--}else{g=" "==(g+=o[v][m]+" ").substr(g.length-1)?g.substr(0,g.length-1):g;var w=parseInt(v),x=l(w,g,i),k=v>=o.length-1;if(x&&!k){g+=" ",m=0;continue}if(x||k){if(k)f=w;else if(e.multiline&&(d+2)*(y+2)+2>s)continue e}else{if(!e.multiline)continue e;if((d+2)*(y+2)+2>s)continue e;f=w}}for(var _="",C=p;C<=f;C++){var B=o[C];if(e.multiline){if(C===f){_+=B[m]+" ",m=(m+1)%B.length;continue}if(C===p){_+=B[B.length-1]+" ";continue}}_+=B[0]+" "}switch(_=" "==_.substr(_.length-1)?_.substr(0,_.length-1):_,u=kG(_,e,i).width,e.textAlign){case"right":c=a-u-2;break;case"center":c=(a-u)/2;break;default:c=2}t+=cG(c)+" "+cG(h)+" Td\n",t+="("+sG(_)+") Tj\n",t+=-cG(c)+" 0 Td\n",h=-(i+2),u=0,p=b?f:f+1,y++,g=""}break}return r.text=t,r.fontSize=i,r},kG=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),o=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:o}},_G={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},CG=function(e,t){var n={type:"reference",object:e};void 0===t.internal.getPageInfo(e.page).pageContext.annotations.find(function(e){return e.type===n.type&&e.object===n.object})&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},BG=oG.__acroform__.arrayToPdfArray=function(e,t,n){var r=function(e){return e};if(Array.isArray(e)){for(var o="[",i=0;i<e.length;i++)switch(0!==i&&(o+=" "),(0,OQ.A)(e[i])){case"boolean":case"number":case"object":o+=e[i].toString();break;case"string":"/"===e[i].substr(0,1)?o+="/"+lG(e[i].substr(1)):(void 0!==t&&n&&(r=n.internal.getEncryptor(t)),o+="("+sG(r(e[i].toString()))+")")}return o+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},SG=function(e,t,n){var r=function(e){return e};return void 0!==t&&n&&(r=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+sG(r(e))+")"},jG=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};jG.prototype.toString=function(){return this.objId+" 0 R"},jG.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},jG.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(e){return"content"!=e&&"appearanceStreamContent"!=e&&"scope"!=e&&"objId"!=e&&"_"!=e.substring(0,1)});for(var n in t)if(!1===Object.getOwnPropertyDescriptor(this,t[n]).configurable){var r=t[n],o=this[r];o&&(Array.isArray(o)?e.push({key:r,value:BG(o,this.objId,this.scope)}):o instanceof jG?(o.scope=this.scope,e.push({key:r,value:o.objId+" 0 R"})):"function"!=typeof o&&e.push({key:r,value:o}))}return e};var EG=function(){jG.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};dG(EG,jG);var NG=function(){jG.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+sG(t(e))+")"}},set:function(t){e=t}})};dG(NG,jG);var IG=function e(){jG.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute F supplied.');t=e}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(t,3))},set:function(e){!0===Boolean(e)?this.F=yG(t,3):this.F=vG(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute Ff supplied.');n=e}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(e){r=void 0!==e?e:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(e){r[0]=e}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(e){r[1]=e}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(e){r[2]=e}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(e){r[3]=e}});var o="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return o},set:function(e){switch(e){case"/Btn":case"/Tx":case"/Ch":case"/Sig":o=e;break;default:throw new Error('Invalid value "'+e+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof UG)return;i="FieldObject"+e.FieldNum++}var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+sG(t(i))+")"},set:function(e){i=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(e){i=e}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(e){a=e}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(e){l=e}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===c?50/iG:c},set:function(e){c=e}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(e){u=e}});var d="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof UG||this instanceof zG))return SG(d,this.objId,this.scope)},set:function(e){e=e.toString(),d=e}});var A=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(A)return this instanceof MG==0?SG(A,this.objId,this.scope):A},set:function(e){e=e.toString(),A=this instanceof MG==0?"("===e.substr(0,1)?aG(e.substr(1,e.length-2)):aG(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof MG==1?aG(A.substr(1,A.length-1)):A},set:function(e){e=e.toString(),A=this instanceof MG==1?"/"+lG(e):e}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof MG==0?SG(h,this.objId,this.scope):h},set:function(e){e=e.toString(),h=this instanceof MG==0?"("===e.substr(0,1)?aG(e.substr(1,e.length-2)):aG(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof MG==1?aG(h.substr(1,h.length-1)):h},set:function(e){e=e.toString(),h=this instanceof MG==1?"/"+lG(e):e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,f=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return f},set:function(e){e=Boolean(e),f=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(e){p=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,1))},set:function(e){!0===Boolean(e)?this.Ff=yG(this.Ff,1):this.Ff=vG(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,2))},set:function(e){!0===Boolean(e)?this.Ff=yG(this.Ff,2):this.Ff=vG(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,3))},set:function(e){!0===Boolean(e)?this.Ff=yG(this.Ff,3):this.Ff=vG(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==m)return m},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');m=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(m){case 0:default:e="left";break;case 1:e="center";break;case 2:e="right"}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case"right":case 2:m=2;break;case"center":case 1:m=1;break;default:m=0}}})};dG(IG,jG);var FG=function(){IG.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return BG(t,this.objId,this.scope)},set:function(e){var n,r;r=[],"string"==typeof(n=e)&&(r=function(e,t,n){n||(n=1);for(var r,o=[];r=t.exec(e);)o.push(r[n]);return o}(n,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,n){for(n=n||!1,e=(e=e||"").toString();-1!==t.indexOf(e)&&(t.splice(t.indexOf(e),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,18))},set:function(e){!0===Boolean(e)?this.Ff=yG(this.Ff,18):this.Ff=vG(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,19))},set:function(e){!0===this.combo&&(!0===Boolean(e)?this.Ff=yG(this.Ff,19):this.Ff=vG(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=yG(this.Ff,20),t.sort()):this.Ff=vG(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,22))},set:function(e){!0===Boolean(e)?this.Ff=yG(this.Ff,22):this.Ff=vG(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=yG(this.Ff,23):this.Ff=vG(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,27))},set:function(e){!0===Boolean(e)?this.Ff=yG(this.Ff,27):this.Ff=vG(this.Ff,27)}}),this.hasAppearanceStream=!1};dG(FG,IG);var TG=function(){FG.call(this),this.fontName="helvetica",this.combo=!1};dG(TG,FG);var LG=function(){TG.call(this),this.combo=!0};dG(LG,TG);var PG=function(){LG.call(this),this.edit=!0};dG(PG,LG);var MG=function(){IG.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,15))},set:function(e){!0===Boolean(e)?this.Ff=yG(this.Ff,15):this.Ff=vG(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,16))},set:function(e){!0===Boolean(e)?this.Ff=yG(this.Ff,16):this.Ff=vG(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,17))},set:function(e){!0===Boolean(e)?this.Ff=yG(this.Ff,17):this.Ff=vG(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=yG(this.Ff,26):this.Ff=vG(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var n,r=[];for(n in r.push("<<"),t)r.push("/"+n+" ("+sG(e(t[n]))+")");return r.push(">>"),r.join("\n")}},set:function(e){"object"===(0,OQ.A)(e)&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){var n=null==t?"":t.toString();"/"===n.substr(0,1)&&(n=n.substr(1)),e="/"+lG(n)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+lG(t)}})};dG(MG,IG);var OG=function(){MG.call(this),this.pushButton=!0};dG(OG,MG);var DG=function(){MG.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};dG(DG,MG);var UG=function(){var e,t;IG.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,n=[];for(t in n.push("<<"),r)n.push("/"+t+" ("+sG(e(r[t]))+")");return n.push(">>"),n.join("\n")},set:function(e){"object"===(0,OQ.A)(e)&&(r=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(e){"string"==typeof e&&(r.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){var t=null==e?"":e.toString();"/"===t.substr(0,1)&&(t=t.substr(1)),n="/"+lG(t)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){var t=null==e?"":e.toString();"/"===t.substr(0,1)&&(t=t.substr(1)),n="/"+lG(t)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=HG.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};dG(UG,IG),DG.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},DG.prototype.createOption=function(e){var t=new UG;return t.Parent=this,t.optionName=e,this.Kids.push(t),qG.call(this.scope,t),t};var RG=function(){MG.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=HG.CheckBox.createAppearanceStream()};dG(RG,MG);var zG=function(){IG.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=yG(this.Ff,13):this.Ff=vG(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=yG(this.Ff,21):this.Ff=vG(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=yG(this.Ff,23):this.Ff=vG(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=yG(this.Ff,24):this.Ff=vG(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=yG(this.Ff,25):this.Ff=vG(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=yG(this.Ff,26):this.Ff=vG(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};dG(zG,IG);var QG=function(){zG.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(gG(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=yG(this.Ff,14):this.Ff=vG(this.Ff,14)}}),this.password=!0};dG(QG,zG);var HG={CheckBox:{createAppearanceStream:function(){return{N:{On:HG.CheckBox.YesNormal},D:{On:HG.CheckBox.YesPushDown,Off:HG.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=hG(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,o=e.scope.__private__.encodeColorString(e.color),i=xG(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+cG(HG.internal.getWidth(e))+" "+cG(HG.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+cG(i.fontSize)+" Tf "+o),n.push("BT"),n.push(i.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join("\n"),t},YesNormal:function(e){var t=hG(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),o=[],i=HG.internal.getHeight(e),s=HG.internal.getWidth(e),a=xG(e,e.caption);return o.push("1 g"),o.push("0 0 "+cG(s)+" "+cG(i)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+cG(s-1)+" "+cG(i-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+n+" "+cG(a.fontSize)+" Tf "+r),o.push(a.text),o.push("ET"),o.push("Q"),t.stream=o.join("\n"),t},OffPushDown:function(e){var t=hG(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+cG(HG.internal.getWidth(e))+" "+cG(HG.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:HG.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=HG.RadioButton.Circle.YesNormal,t.D[e]=HG.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=hG(e);t.scope=e.scope;var n=[],r=HG.internal.getWidth(e)<=HG.internal.getHeight(e)?HG.internal.getWidth(e)/4:HG.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var o=HG.internal.Bezier_C,i=Number((r*o).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+uG(HG.internal.getWidth(e)/2)+" "+uG(HG.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),n.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),n.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),n.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=hG(e);t.scope=e.scope;var n=[],r=HG.internal.getWidth(e)<=HG.internal.getHeight(e)?HG.internal.getWidth(e)/4:HG.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var o=Number((2*r).toFixed(5)),i=Number((o*HG.internal.Bezier_C).toFixed(5)),s=Number((r*HG.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+uG(HG.internal.getWidth(e)/2)+" "+uG(HG.internal.getHeight(e)/2)+" cm"),n.push(o+" 0 m"),n.push(o+" "+i+" "+i+" "+o+" 0 "+o+" c"),n.push("-"+i+" "+o+" -"+o+" "+i+" -"+o+" 0 c"),n.push("-"+o+" -"+i+" -"+i+" -"+o+" 0 -"+o+" c"),n.push(i+" -"+o+" "+o+" -"+i+" "+o+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+uG(HG.internal.getWidth(e)/2)+" "+uG(HG.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),n.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),n.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),n.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=hG(e);t.scope=e.scope;var n=[],r=HG.internal.getWidth(e)<=HG.internal.getHeight(e)?HG.internal.getWidth(e)/4:HG.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var o=Number((2*r).toFixed(5)),i=Number((o*HG.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+uG(HG.internal.getWidth(e)/2)+" "+uG(HG.internal.getHeight(e)/2)+" cm"),n.push(o+" 0 m"),n.push(o+" "+i+" "+i+" "+o+" 0 "+o+" c"),n.push("-"+i+" "+o+" -"+o+" "+i+" -"+o+" 0 c"),n.push("-"+o+" -"+i+" -"+i+" -"+o+" 0 -"+o+" c"),n.push(i+" -"+o+" "+o+" -"+i+" "+o+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:HG.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=HG.RadioButton.Cross.YesNormal,t.D[e]=HG.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=hG(e);t.scope=e.scope;var n=[],r=HG.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+cG(HG.internal.getWidth(e)-2)+" "+cG(HG.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(cG(r.x1.x)+" "+cG(r.x1.y)+" m"),n.push(cG(r.x2.x)+" "+cG(r.x2.y)+" l"),n.push(cG(r.x4.x)+" "+cG(r.x4.y)+" m"),n.push(cG(r.x3.x)+" "+cG(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=hG(e);t.scope=e.scope;var n=HG.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+cG(HG.internal.getWidth(e))+" "+cG(HG.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+cG(HG.internal.getWidth(e)-2)+" "+cG(HG.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(cG(n.x1.x)+" "+cG(n.x1.y)+" m"),r.push(cG(n.x2.x)+" "+cG(n.x2.y)+" l"),r.push(cG(n.x4.x)+" "+cG(n.x4.y)+" m"),r.push(cG(n.x3.x)+" "+cG(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(e){var t=hG(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+cG(HG.internal.getWidth(e))+" "+cG(HG.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};HG.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=HG.internal.getWidth(e),n=HG.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},HG.internal.getWidth=function(e){var t=0;return"object"===(0,OQ.A)(e)&&(t=AG(e.Rect[2])),t},HG.internal.getHeight=function(e){var t=0;return"object"===(0,OQ.A)(e)&&(t=AG(e.Rect[3])),t};var qG=oG.addField=function(e){if(function(e,t){if(t.scope=e,void 0!==e.internal&&(void 0===e.internal.acroformPlugin||!1===e.internal.acroformPlugin.isInitialized)){if(IG.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(_G)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");iG=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new NG,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){!function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0}(e)}),e.internal.events.subscribe("buildDocument",function(){!function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];r.objId=void 0,r.hasAnnotation&&CG(r,e)}}(e)}),e.internal.events.subscribe("putCatalog",function(){!function(e){if(void 0===e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(e)}),e.internal.events.subscribe("postPutPages",function(t){!function(e,t){var n=!e;for(var r in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(r)){var o=e[r],i=[],s=o.Rect;if(o.Rect&&(o.Rect=bG(o.Rect,t)),t.internal.newObjectDeferredBegin(o.objId,!0),o.DA=HG.createDefaultAppearanceStream(o),"object"===(0,OQ.A)(o)&&"function"==typeof o.getKeyValueListForStream&&(i=o.getKeyValueListForStream()),o.Rect=s,o.hasAppearanceStream&&!o.appearanceStreamContent){var a=wG(o);i.push({key:"AP",value:"<</N "+a+">>"}),t.internal.acroformPlugin.xForms.push(a)}if(o.appearanceStreamContent){var l="";for(var c in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(c)){var u=o.appearanceStreamContent[c];if(l+="/"+c+" ",l+="<<",Object.keys(u).length>=1||Array.isArray(u)){for(var r in u)if(u.hasOwnProperty(r)){var d=u[r];"function"==typeof d&&(d=d.call(t,o)),l+="/"+r+" "+d+" ",t.internal.acroformPlugin.xForms.indexOf(d)>=0||t.internal.acroformPlugin.xForms.push(d)}}else"function"==typeof(d=u)&&(d=d.call(t,o)),l+="/"+r+" "+d,t.internal.acroformPlugin.xForms.indexOf(d)>=0||t.internal.acroformPlugin.xForms.push(d);l+=">>"}i.push({key:"AP",value:"<<\n"+l+">>"})}t.internal.putStream({additionalKeyValues:i,objectId:o.objId}),t.internal.out("endobj")}n&&function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=n,o=e[n];t.internal.newObjectDeferredBegin(o.objId,!0),"object"===(0,OQ.A)(o)&&"function"==typeof o.putStream&&o.putStream(),delete e[r]}}(t.internal.acroformPlugin.xForms,t)}(t,e)}),e.internal.acroformPlugin.isInitialized=!0}}(this,e),!(e instanceof IG))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};function VG(e){return e.reduce(function(e,t,n){return e[t]=n,e},{})}oG.AcroFormChoiceField=FG,oG.AcroFormListBox=TG,oG.AcroFormComboBox=LG,oG.AcroFormEditBox=PG,oG.AcroFormButton=MG,oG.AcroFormPushButton=OG,oG.AcroFormRadioButton=DG,oG.AcroFormCheckBox=RG,oG.AcroFormTextField=zG,oG.AcroFormPasswordField=QG,oG.AcroFormAppearance=HG,oG.AcroForm={ChoiceField:FG,ListBox:TG,ComboBox:LG,EditBox:PG,Button:MG,PushButton:OG,RadioButton:DG,CheckBox:RG,TextField:zG,PasswordField:QG,Appearance:HG},rG.AcroForm={ChoiceField:FG,ListBox:TG,ComboBox:LG,EditBox:PG,Button:MG,PushButton:OG,RadioButton:DG,CheckBox:RG,TextField:zG,PasswordField:QG,Appearance:HG},rG.AcroForm,function(e){var t="addImage_";e.__addimage__={};var n="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},o=e.__addimage__.getImageFileTypeByImageData=function(e,t){var o,i,s,a,l,c=n;if("RGBA"===(t=t||n)||void 0!==e.data&&e.data instanceof Uint8ClampedArray&&"height"in e&&"width"in e)return"RGBA";if(x(e))for(l in r)for(s=r[l],o=0;o<s.length;o+=1){for(a=!0,i=0;i<s[o].length;i+=1)if(void 0!==s[o][i]&&s[o][i]!==e[i]){a=!1;break}if(!0===a){c=l;break}}else for(l in r)for(s=r[l],o=0;o<s.length;o+=1){for(a=!0,i=0;i<s[o].length;i+=1)if(void 0!==s[o][i]&&s[o][i]!==e.charCodeAt(i)){a=!1;break}if(!0===a){c=l;break}}return c===n&&t!==n&&(c=t),c},i=function e(t){for(var n=this.internal.write,r=this.internal.putStream,o=(0,this.internal.getFilters)();-1!==o.indexOf("FlateEncode");)o.splice(o.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var i=[];if(i.push({key:"Type",value:"/XObject"}),i.push({key:"Subtype",value:"/Image"}),i.push({key:"Width",value:t.width}),i.push({key:"Height",value:t.height}),t.colorSpace===g.INDEXED?i.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.palette.length/3-1)+" "+("sMask"in t&&void 0!==t.sMask?t.objectId+2:t.objectId+1)+" 0 R]"}):(i.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===g.DEVICE_CMYK&&i.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),i.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&i.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)&&t.transparency.length>0){for(var s="",a=0,l=t.transparency.length;a<l;a++)s+=t.transparency[a]+" "+t.transparency[a]+" ";i.push({key:"Mask",value:"["+s+"]"})}void 0!==t.sMask&&i.push({key:"SMask",value:t.objectId+1+" 0 R"});var c=void 0!==t.filter?["/"+t.filter]:void 0;if(r({data:t.data,additionalKeyValues:i,alreadyAppliedFilters:c,objectId:t.objectId}),n("endobj"),"sMask"in t&&void 0!==t.sMask){var u,d=null!==(u=t.sMaskBitsPerComponent)&&void 0!==u?u:t.bitsPerComponent,A={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:d,data:t.sMask};"filter"in t&&(A.decodeParameters="/Predictor ".concat(t.predictor," /Colors 1 /BitsPerComponent ").concat(d," /Columns ").concat(t.width),A.filter=t.filter),e.call(this,A)}if(t.colorSpace===g.INDEXED){var h=this.internal.newObject();r({data:_(new Uint8Array(t.palette)),objectId:h}),n("endobj")}},s=function(){var e=this.internal.collections[t+"images"];for(var n in e)i.call(this,e[n])},a=function(){var e,n=this.internal.collections[t+"images"],r=this.internal.write;for(var o in n)r("/I"+(e=n[o]).index,e.objectId,"0","R")},l=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",a))},c=function(){var e=this.internal.collections[t+"images"];return l.call(this),e},u=function(){return Object.keys(this.internal.collections[t+"images"]).length},d=function(t){return"function"==typeof e["process"+t.toUpperCase()]},A=function(e){return"object"===(0,OQ.A)(e)&&1===e.nodeType},h=function(t,n){if("IMG"===t.nodeName&&t.hasAttribute("src")){var r=""+t.getAttribute("src");if(0===r.indexOf("data:image/"))return FW(unescape(r).split("base64,").pop());var o=e.loadFile(r,!0);if(void 0!==o)return o}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw new Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);var i;switch(n){case"PNG":i="image/png";break;case"WEBP":i="image/webp";break;default:i="image/jpeg"}return FW(t.toDataURL(i,1).split("base64,").pop())}},p=function(e){var n=this.internal.collections[t+"images"];if(n)for(var r in n)if(e===n[r].alias)return n[r]},f=function(e,t,n){return e||t||(e=-96,t=-96),e<0&&(e=-1*n.width*72/e/this.internal.scaleFactor),t<0&&(t=-1*n.height*72/t/this.internal.scaleFactor),0===e&&(e=t*n.width/n.height),0===t&&(t=e*n.height/n.width),[e,t]},m=function(e,t,n,r,o,i){var s=f.call(this,n,r,o),a=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,u=c.call(this);if(n=s[0],r=s[1],u[o.index]=o,i){i*=Math.PI/180;var d=Math.cos(i),A=Math.sin(i),h=function(e){return e.toFixed(4)},p=[h(d),h(A),h(-1*A),h(d),0,0,"cm"]}this.internal.write("q"),i?(this.internal.write([1,"0","0",1,a(e),l(t+r),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([a(n),"0","0",a(r),"0","0","cm"].join(" "))):this.internal.write([a(n),"0","0",a(r),a(e),l(t+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+o.index+" Do"),this.internal.write("Q")},g=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var y=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},v=e.__addimage__.sHashCode=function(e){var t,n,r=0;if("string"==typeof e)for(n=e.length,t=0;t<n;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;else if(x(e))for(n=e.byteLength/2,t=0;t<n;t++)r=(r<<5)-r+e[t],r|=0;return r},b=e.__addimage__.validateStringAsBase64=function(e){(e=e||"").toString().trim();var t=!0;return 0===e.length&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(e.substr(-2))&&(t=!1),t},w=e.__addimage__.extractImageFromDataUrl=function(e){if(null==e)return null;if(!(e=e.trim()).startsWith("data:"))return null;var t=e.indexOf(",");return t<0?null:e.substring(0,t).trim().endsWith("base64")?e.substring(t+1):null};e.__addimage__.isArrayBuffer=function(e){return e instanceof ArrayBuffer};var x=e.__addimage__.isArrayBufferView=function(e){return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array},k=e.__addimage__.binaryStringToUint8Array=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n},_=e.__addimage__.arrayBufferToBinaryString=function(e){for(var t="",n=x(e)?e:new Uint8Array(e),r=0;r<n.length;r+=8192)t+=String.fromCharCode.apply(null,n.subarray(r,r+8192));return t};e.addImage=function(){var e,t,r,o,i,s,a,c,u;if("number"==typeof arguments[1]?(t=n,r=arguments[1],o=arguments[2],i=arguments[3],s=arguments[4],a=arguments[5],c=arguments[6],u=arguments[7]):(t=arguments[1],r=arguments[2],o=arguments[3],i=arguments[4],s=arguments[5],a=arguments[6],c=arguments[7],u=arguments[8]),"object"===(0,OQ.A)(e=arguments[0])&&!A(e)&&"imageData"in e){var d=e;e=d.imageData,t=d.format||t||n,r=d.x||r||0,o=d.y||o||0,i=d.w||d.width||i,s=d.h||d.height||s,a=d.alias||a,c=d.compression||c,u=d.rotation||d.angle||u}var h=this.internal.getFilters();if(void 0===c&&-1!==h.indexOf("FlateEncode")&&(c="SLOW"),isNaN(r)||isNaN(o))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var p=C.call(this,e,t,a,c);return m.call(this,r,o,i,s,p,u),this};var C=function(t,r,i,s){var a,l,c;if("string"==typeof t&&o(t)===n){t=unescape(t);var f=B(t,!1);(""!==f||void 0!==(f=e.loadFile(t,!0)))&&(t=f)}if(A(t)&&(t=h(t,r)),r=o(t,r),!d(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if((null==(c=i)||0===c.length)&&(i=function(e){return"string"==typeof e||x(e)?v(e):x(e.data)?v(e.data):null}(t)),(a=p.call(this,i))||(t instanceof Uint8Array||"RGBA"===r||(l=t,t=k(t)),a=this["process"+r.toUpperCase()](t,u.call(this),i,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in e.image_compression?t:y.NONE}(s),l)),!a)throw new Error("An unknown error occurred whilst processing the image.");return a},B=e.__addimage__.convertBase64ToBinaryString=function(e,t){t="boolean"!=typeof t||t;var n,r="";if("string"==typeof e){var o;n=null!==(o=w(e))&&void 0!==o?o:e;try{r=FW(n)}catch(e){if(t)throw b(n)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+e.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return r};e.getImageProperties=function(t){var r,i,s="";if(A(t)&&(t=h(t)),"string"==typeof t&&o(t)===n&&(""===(s=B(t,!1))&&(s=e.loadFile(t)||""),t=s),i=o(t),!d(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(t instanceof Uint8Array||(t=k(t)),!(r=this["process"+i.toUpperCase()](t)))throw new Error("An unknown error occurred whilst processing the image");return r.fileType=i,r}}(rG.API),function(e){var t=function(e){if(void 0!==e&&""!=e)return!0};rG.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(e){for(var n,r,o,i=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,a=this.internal.getPageInfoByObjId(e.objId),l=e.pageContext.annotations,c=!1,u=0;u<l.length&&!c;u++)switch((n=l[u]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(c=!0);break;case"reference":case"text":case"freetext":c=!0}if(0!=c){this.internal.write("/Annots [");for(var d=0;d<l.length;d++){n=l[d];var A=this.internal.pdfEscape,h=this.internal.getEncryptor(e.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),f=this.internal.newAdditionalObject(),m=this.internal.getEncryptor(p.objId),g=n.title||"Note";o="<</Type /Annot /Subtype /Text "+(r="/Rect ["+i(n.bounds.x)+" "+s(n.bounds.y+n.bounds.h)+" "+i(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y)+"] ")+"/Contents ("+A(m(n.contents))+")",o+=" /Popup "+f.objId+" 0 R",o+=" /P "+a.objId+" 0 R",o+=" /T ("+A(m(g))+") >>",p.content=o;var y=p.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+i(n.bounds.x+30)+" "+s(n.bounds.y+n.bounds.h)+" "+i(n.bounds.x+n.bounds.w+30)+" "+s(n.bounds.y)+"] ")+" /Parent "+y,n.open&&(o+=" /Open true"),o+=" >>",f.content=o,this.internal.write(p.objId,"0 R",f.objId,"0 R");break;case"freetext":r="/Rect ["+i(n.bounds.x)+" "+s(n.bounds.y)+" "+i(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y+n.bounds.h)+"] ";var v="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(n.color||"#000000");o="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+A(h(n.contents))+")",o+=" /DS("+A(h(v))+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(n.options.name){var b=this.annotations._nameMap[n.options.name];n.options.pageNumber=b.page,n.options.top=b.y}else n.options.top||(n.options.top=0);if(r="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",o="",n.options.url)o="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+A(h(n.options.url))+") >>";else if(n.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,o+=" /FitV "+n.options.left+"]";break;default:var w=s(n.options.top);n.options.left=n.options.left||0,void 0===n.options.zoom&&(n.options.zoom=0),o+=" /XYZ "+n.options.left+" "+w+" "+n.options.zoom+"]"}""!=o&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),e.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},e.link=function(e,t,n,r,o){var i=this.internal.getCurrentPageInfo(),s=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString;i.pageContext.annotations.push({finalBounds:{x:s(e),y:a(t),w:s(e+n),h:a(t+r)},options:o,type:"link"})},e.textWithLink=function(e,t,n,r){var o,i,s=this.getTextWidth(e),a=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==r.maxWidth){i=r.maxWidth;var l=this.splitTextToSize(e,i).length;o=Math.ceil(a*l)}else i=s,o=a;return this.text(e,t,n,r),n+=.2*a,"center"===r.align&&(t-=s/2),"right"===r.align&&(t-=s),this.link(t,n-a,i,o,r),s},e.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor}}(rG.API),function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},o=[1570,1571,1573,1575];e.__arabicParser__={};var i=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},s=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},a=e.__arabicParser__.isArabicEndLetter=function(e){return s(e)&&i(e)&&t[e.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(e){return s(e)&&o.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return s(e)&&i(e)&&t[e.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return s(e)&&i(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return s(e)&&i(e)&&t[e.charCodeAt(0)].length>=3};var u=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return s(e)&&i(e)&&4==t[e.charCodeAt(0)].length},d=e.__arabicParser__.resolveLigatures=function(e){var t=0,r=n,o="",i=0;for(t=0;t<e.length;t+=1)void 0!==r[e.charCodeAt(t)]?(i++,"number"==typeof(r=r[e.charCodeAt(t)])&&(o+=String.fromCharCode(r),r=n,i=0),t===e.length-1&&(r=n,o+=e.charAt(t-(i-1)),t-=i-1,i=0)):(r=n,o+=e.charAt(t-i),t-=i,i=0);return o};e.__arabicParser__.isArabicDiacritic=function(e){return void 0!==e&&void 0!==r[e.charCodeAt(0)]};var A=e.__arabicParser__.getCorrectForm=function(e,t,n){return s(e)?!1===i(e)?-1:!c(e)||!s(t)&&!s(n)||!s(n)&&a(t)||a(e)&&!s(t)||a(e)&&l(t)||a(e)&&a(t)?0:u(e)&&s(t)&&!a(t)&&s(n)&&c(n)?3:a(e)||!s(n)?1:2:-1},h=function(e){var n=0,r=0,o=0,i="",a="",l="",c=(e=e||"").split("\\s+"),u=[];for(n=0;n<c.length;n+=1){for(u.push(""),r=0;r<c[n].length;r+=1)i=c[n][r],a=c[n][r-1],l=c[n][r+1],s(i)?(o=A(i,a,l),u[n]+=-1!==o?String.fromCharCode(t[i.charCodeAt(0)][o]):i):u[n]+=i;u[n]=d(u[n])}return u.join(" ")},p=e.__arabicParser__.processArabic=e.processArabic=function(){var e,t="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(t)){var r=0;for(n=[],r=0;r<t.length;r+=1)Array.isArray(t[r])?n.push([h(t[r][0]),t[r][1],t[r][2]]):n.push([h(t[r])]);e=n}else e=h(t);return"string"==typeof arguments[0]?e:(arguments[0].text=e,arguments[0])};e.events.push(["preProcessText",p])}(rG.API),rG.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform","javascript"===e.variant?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})),this},function(e){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(e){n=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(e){r=e}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(e){o=e}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,t){var n;if("2d"!==(e=e||"2d"))return null;for(n in t)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=t[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(rG.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,r=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),o.call(this))},o=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var e=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(e){n=e}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(e){r=e}});var o=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return o},set:function(e){o=e}});var i=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return i},set:function(e){i=e}});var s=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return s},set:function(e){s=e}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return r.call(this),this.internal.__cell__.headerFunction="function"==typeof e?e:void 0,this},e.getTextDimensions=function(e,t){r.call(this);var n=(t=t||{}).fontSize||this.getFontSize(),o=t.font||this.getFont(),i=t.scaleFactor||this.internal.scaleFactor,s=0,a=0,l=0,c=this;if(!Array.isArray(e)&&"string"!=typeof e){if("number"!=typeof e)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");e=String(e)}var u=t.maxWidth;u>0?"string"==typeof e?e=this.splitTextToSize(e,u):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce(function(e,t){return e.concat(c.splitTextToSize(t,u))},[])):e=Array.isArray(e)?e:[e];for(var d=0;d<e.length;d++)s<(l=this.getStringUnitWidth(e[d],{font:o})*n)&&(s=l);return 0!==s&&(a=e.length),{w:s/=i,h:Math.max((a*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/i,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var e=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new i(e.left,e.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=e.cell=function(){var e;e=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var o=this.internal.__cell__.lastCell,s=this.internal.__cell__.padding,a=this.internal.__cell__.margins||t,l=this.internal.__cell__.tableHeaderRow,c=this.internal.__cell__.printHeaders;return void 0!==o.lineNumber&&(o.lineNumber===e.lineNumber?(e.x=(o.x||0)+(o.width||0),e.y=o.y||0):o.y+o.height+e.height+a.bottom>this.getPageHeight()?(this.cellAddPage(),e.y=a.top,c&&l&&(this.printHeaderRow(e.lineNumber,!0),e.y+=l[0].height)):e.y=o.y+o.height||e.y),void 0!==e.text[0]&&(this.rect(e.x,e.y,e.width,e.height,!0===n?"FD":void 0),"right"===e.align?this.text(e.text,e.x+e.width-s,e.y+s,{align:"right",baseline:"top"}):"center"===e.align?this.text(e.text,e.x+e.width/2,e.y+s,{align:"center",baseline:"top",maxWidth:e.width-s-s}):this.text(e.text,e.x+s,e.y+s,{align:"left",baseline:"top",maxWidth:e.width-s-s})),this.internal.__cell__.lastCell=e,this};e.table=function(e,n,l,c,u){if(r.call(this),!l)throw new Error("No data for PDF table.");var d,A,h,p,f=[],m=[],g=[],y={},v={},b=[],w=[],x=(u=u||{}).autoSize||!1,k=!1!==u.printHeaders,_=u.css&&void 0!==u.css["font-size"]?16*u.css["font-size"]:u.fontSize||12,C=u.margins||Object.assign({width:this.getPageWidth()},t),B="number"==typeof u.padding?u.padding:3,S=u.headerBackgroundColor||"#c8c8c8",j=u.headerTextColor||"#000";if(o.call(this),this.internal.__cell__.printHeaders=k,this.internal.__cell__.margins=C,this.internal.__cell__.table_font_size=_,this.internal.__cell__.padding=B,this.internal.__cell__.headerBackgroundColor=S,this.internal.__cell__.headerTextColor=j,this.setFontSize(_),null==c)m=f=Object.keys(l[0]),g=f.map(function(){return"left"});else if(Array.isArray(c)&&"object"===(0,OQ.A)(c[0]))for(f=c.map(function(e){return e.name}),m=c.map(function(e){return e.prompt||e.name||""}),g=c.map(function(e){return e.align||"left"}),d=0;d<c.length;d+=1)v[c[d].name]=.7499990551181103*c[d].width;else Array.isArray(c)&&"string"==typeof c[0]&&(m=f=c,g=f.map(function(){return"left"}));if(x||Array.isArray(c)&&"string"==typeof c[0])for(d=0;d<f.length;d+=1){for(y[p=f[d]]=l.map(function(e){return e[p]}),this.setFont(void 0,"bold"),b.push(this.getTextDimensions(m[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),A=y[p],this.setFont(void 0,"normal"),h=0;h<A.length;h+=1)b.push(this.getTextDimensions(A[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);v[p]=Math.max.apply(null,b)+B+B,b=[]}if(k){var E={};for(d=0;d<f.length;d+=1)E[f[d]]={},E[f[d]].text=m[d],E[f[d]].align=g[d];var N=a.call(this,E,v);w=f.map(function(t){return new i(e,n,v[t],N,E[t].text,void 0,E[t].align)}),this.setTableHeaderRow(w),this.printHeaderRow(1,!1)}var I=c.reduce(function(e,t){return e[t.name]=t.align,e},{});for(d=0;d<l.length;d+=1){"rowStart"in u&&u.rowStart instanceof Function&&u.rowStart({row:d,data:l[d]},this);var F=a.call(this,l[d],v);for(h=0;h<f.length;h+=1){var T=l[d][f[h]];"cellStart"in u&&u.cellStart instanceof Function&&u.cellStart({row:d,col:h,data:T},this),s.call(this,new i(e,n,v[f[h]],F,T,d+2,I[f[h]]))}}return this.internal.__cell__.table_x=e,this.internal.__cell__.table_y=n,this};var a=function(e,t){var n=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,o=this.internal.scaleFactor;return Object.keys(e).map(function(r){var o=e[r];return this.splitTextToSize(o.hasOwnProperty("text")?o.text:o,t[r]-n-n)},this).map(function(e){return this.getLineHeightFactor()*e.length*r/o+n+n},this).reduce(function(e,t){return Math.max(e,t)},0)};e.setTableHeaderRow=function(e){r.call(this),this.internal.__cell__.tableHeaderRow=e},e.printHeaderRow=function(e,t){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var o;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var a=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(a[0],a[1],a[2],a[3],void 0,-1)}this.setFont(void 0,"bold");for(var l=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1){o=this.internal.__cell__.tableHeaderRow[c].clone(),t&&(o.y=this.internal.__cell__.margins.top||0,l.push(o)),o.lineNumber=e;var u=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,o),this.setTextColor(u)}l.length>0&&this.setTableHeaderRow(l),this.setFont(void 0,"normal"),n=!1}}(rG.API);var KG={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},WG=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],GG=VG(WG),$G=[100,200,300,400,500,600,700,800,900],YG=VG($G);function ZG(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=function(e){return KG[e=e||"normal"]?e:"normal"}(e.style),r=function(e){return e?"number"==typeof e?e>=100&&e<=900&&e%100==0?e:400:/^\d00$/.test(e)?parseInt(e):"bold"===e?700:400:400}(e.weight),o=function(e){return"number"==typeof GG[e=e||"normal"]?e:"normal"}(e.stretch);return{family:t,style:n,weight:r,stretch:o,src:e.src||[],ref:e.ref||{name:t,style:[o,n,r].join(" ")}}}function XG(e,t,n,r){var o;for(o=n;o>=0&&o<t.length;o+=r)if(e[t[o]])return e[t[o]];for(o=n;o>=0&&o<t.length;o-=r)if(e[t[o]])return e[t[o]]}var JG={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},e$={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function t$(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function n$(e){return e.trimLeft()}function r$(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function o$(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],e.substring(t[0].length)]}var i$,s$,a$,l$,c$,u$=["times"];function d$(e,t,n,r,o){var i=4,s=p$;switch(o){case rG.API.image_compression.FAST:i=1,s=h$;break;case rG.API.image_compression.MEDIUM:i=6,s=f$;break;case rG.API.image_compression.SLOW:i=9,s=m$}e=function(e,t,n,r){for(var o,i=e.length/t,s=new Uint8Array(e.length+i),a=[A$,h$,p$,f$,m$],l=0;l<i;l+=1){var c=l*t,u=e.subarray(c,c+t);if(r)s.set(r(u,n,o),c+l);else{for(var d=a.length,A=[],h=0;h<d;h+=1)A[h]=a[h](u,n,o);var p=y$(A.concat());s.set(A[p],c+l)}o=u}return s}(e,t,Math.ceil(n*r/8),s);var a=yH(e,{level:i});return rG.API.__addimage__.arrayBufferToBinaryString(a)}function A$(e){var t=Array.apply([],e);return t.unshift(0),t}function h$(e,t){var n=e.length,r=[];r[0]=1;for(var o=0;o<n;o+=1){var i=e[o-t]||0;r[o+1]=e[o]-i+256&255}return r}function p$(e,t,n){var r=e.length,o=[];o[0]=2;for(var i=0;i<r;i+=1){var s=n&&n[i]||0;o[i+1]=e[i]-s+256&255}return o}function f$(e,t,n){var r=e.length,o=[];o[0]=3;for(var i=0;i<r;i+=1){var s=e[i-t]||0,a=n&&n[i]||0;o[i+1]=e[i]+256-(s+a>>>1)&255}return o}function m$(e,t,n){var r=e.length,o=[];o[0]=4;for(var i=0;i<r;i+=1){var s=g$(e[i-t]||0,n&&n[i]||0,n&&n[i-t]||0);o[i+1]=e[i]-s+256&255}return o}function g$(e,t,n){if(e===t&&t===n)return e;var r=Math.abs(t-n),o=Math.abs(e-n),i=Math.abs(e+t-n-n);return r<=o&&r<=i?e:o<=i?t:n}function y$(e){var t=e.map(function(e){return e.reduce(function(e,t){return e+Math.abs(t)},0)});return t.indexOf(Math.min.apply(null,t))}function v$(e,t,n){var r=t*n,o=Math.floor(r/8),i=16-(r-8*o+n),s=(1<<n)-1;return w$(e,o)>>i&s}function b$(e,t,n,r){var o=n*r,i=Math.floor(o/8),s=16-(o-8*i+r),a=(1<<r)-1,l=(t&a)<<s;!function(e,t,n){if(t+1<e.byteLength)e.setUint16(t,n,!1);else{var r=n>>8&255;e.setUint8(t,r)}}(e,i,w$(e,i)&~(a<<s)&65535|l)}function w$(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function x$(e){var t=0;if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,o=e[t++],i=o>>7,s=1<<1+(7&o);e[t++],e[t++];var a=null,l=null;i&&(a=t,l=s,t+=3*s);var c=!0,u=[],d=0,A=null,h=0,p=null;for(this.width=n,this.height=r;c&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,p=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((S=e[t++])>=0))throw Error("Invalid block size");if(0===S)break;t+=S}break;case 249:if(4!==e[t++]||0!==e[t+4])throw new Error("Invalid graphics extension block.");var f=e[t++];d=e[t++]|e[t++]<<8,A=e[t++],1&f||(A=null),h=f>>2&7,t++;break;case 254:for(;;){if(!((S=e[t++])>=0))throw Error("Invalid block size");if(0===S)break;t+=S}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var m=e[t++]|e[t++]<<8,g=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,b=e[t++],w=b>>6&1,x=1<<1+(7&b),k=a,_=l,C=!1;b>>7&&(C=!0,k=t,_=x,t+=3*x);var B=t;for(t++;;){var S;if(!((S=e[t++])>=0))throw Error("Invalid block size");if(0===S)break;t+=S}u.push({x:m,y:g,width:y,height:v,has_local_palette:C,palette_offset:k,palette_size:_,data_offset:B,data_length:t-B,transparent_index:A,interlaced:!!w,delay:d,disposal:h});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return p},this.frameInfo=function(e){if(e<0||e>=u.length)throw new Error("Frame index out of range.");return u[e]},this.decodeAndBlitFrameBGRA=function(t,r){var o=this.frameInfo(t),i=o.width*o.height;if(i>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var s=new Uint8Array(i);k$(e,o.data_offset,s,i);var a=o.palette_offset,l=o.transparent_index;null===l&&(l=256);var c=o.width,u=n-c,d=c,A=4*(o.y*n+o.x),h=4*((o.y+o.height)*n+o.x),p=A,f=4*u;!0===o.interlaced&&(f+=4*n*7);for(var m=8,g=0,y=s.length;g<y;++g){var v=s[g];if(0===d&&(d=c,(p+=f)>=h&&(f=4*u+4*n*(m-1),p=A+(c+u)*(m<<1),m>>=1)),v===l)p+=4;else{var b=e[a+3*v],w=e[a+3*v+1],x=e[a+3*v+2];r[p++]=x,r[p++]=w,r[p++]=b,r[p++]=255}--d}},this.decodeAndBlitFrameRGBA=function(t,r){var o=this.frameInfo(t),i=o.width*o.height;if(i>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var s=new Uint8Array(i);k$(e,o.data_offset,s,i);var a=o.palette_offset,l=o.transparent_index;null===l&&(l=256);var c=o.width,u=n-c,d=c,A=4*(o.y*n+o.x),h=4*((o.y+o.height)*n+o.x),p=A,f=4*u;!0===o.interlaced&&(f+=4*n*7);for(var m=8,g=0,y=s.length;g<y;++g){var v=s[g];if(0===d&&(d=c,(p+=f)>=h&&(f=4*u+4*n*(m-1),p=A+(c+u)*(m<<1),m>>=1)),v===l)p+=4;else{var b=e[a+3*v],w=e[a+3*v+1],x=e[a+3*v+2];r[p++]=b,r[p++]=w,r[p++]=x,r[p++]=255}--d}}}function k$(e,t,n,r){for(var o=e[t++],i=1<<o,s=i+1,a=s+1,l=o+1,c=(1<<l)-1,u=0,d=0,A=0,h=e[t++],p=new Int32Array(4096),f=null;;){for(;u<16&&0!==h;)d|=e[t++]<<u,u+=8,1===h?h=e[t++]:--h;if(u<l)break;var m=d&c;if(d>>=l,u-=l,m!==i){if(m===s)break;for(var g=m<a?m:f,y=0,v=g;v>i;)v=p[v]>>8,++y;var b=v;if(A+y+(g!==m?1:0)>r)return void BW.log("Warning, gif stream longer than expected.");n[A++]=b;var w=A+=y;for(g!==m&&(n[A++]=b),v=g;y--;)v=p[v],n[--w]=255&v,v>>=8;null!==f&&a<4096&&(p[a++]=f<<8|b,a>=c+1&&l<12&&(++l,c=c<<1|1)),f=m}else a=s+1,c=(1<<(l=o+1))-1,f=null}return A!==r&&BW.log("Warning, gif stream shorter than expected."),n}function _$(e){var t,n,r,o,i,s=Math.floor,a=new Array(64),l=new Array(64),c=new Array(64),u=new Array(64),d=new Array(65535),A=new Array(65535),h=new Array(64),p=new Array(64),f=[],m=0,g=7,y=new Array(64),v=new Array(64),b=new Array(64),w=new Array(256),x=new Array(2048),k=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],_=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],C=[0,1,2,3,4,5,6,7,8,9,10,11],B=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],S=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],j=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],E=[0,1,2,3,4,5,6,7,8,9,10,11],N=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],I=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function F(e,t){for(var n=0,r=0,o=new Array,i=1;i<=16;i++){for(var s=1;s<=e[i];s++)o[t[r]]=[],o[t[r]][0]=n,o[t[r]][1]=i,r++,n++;n*=2}return o}function T(e){for(var t=e[0],n=e[1]-1;n>=0;)t&1<<n&&(m|=1<<g),n--,--g<0&&(255==m?(L(255),L(0)):L(m),g=7,m=0)}function L(e){f.push(e)}function P(e){L(e>>8&255),L(255&e)}function M(e,t,n,r,o){for(var i,s=o[0],a=o[240],l=function(e,t){var n,r,o,i,s,a,l,c,u,d,A=0;for(u=0;u<8;++u){n=e[A],r=e[A+1],o=e[A+2],i=e[A+3],s=e[A+4],a=e[A+5],l=e[A+6];var p=n+(c=e[A+7]),f=n-c,m=r+l,g=r-l,y=o+a,v=o-a,b=i+s,w=i-s,x=p+b,k=p-b,_=m+y,C=m-y;e[A]=x+_,e[A+4]=x-_;var B=.707106781*(C+k);e[A+2]=k+B,e[A+6]=k-B;var S=.382683433*((x=w+v)-(C=g+f)),j=.5411961*x+S,E=1.306562965*C+S,N=.707106781*(_=v+g),I=f+N,F=f-N;e[A+5]=F+j,e[A+3]=F-j,e[A+1]=I+E,e[A+7]=I-E,A+=8}for(A=0,u=0;u<8;++u){n=e[A],r=e[A+8],o=e[A+16],i=e[A+24],s=e[A+32],a=e[A+40],l=e[A+48];var T=n+(c=e[A+56]),L=n-c,P=r+l,M=r-l,O=o+a,D=o-a,U=i+s,R=i-s,z=T+U,Q=T-U,H=P+O,q=P-O;e[A]=z+H,e[A+32]=z-H;var V=.707106781*(q+Q);e[A+16]=Q+V,e[A+48]=Q-V;var K=.382683433*((z=R+D)-(q=M+L)),W=.5411961*z+K,G=1.306562965*q+K,$=.707106781*(H=D+M),Y=L+$,Z=L-$;e[A+40]=Z+W,e[A+24]=Z-W,e[A+8]=Y+G,e[A+56]=Y-G,A++}for(u=0;u<64;++u)d=e[u]*t[u],h[u]=d>0?d+.5|0:d-.5|0;return h}(e,t),c=0;c<64;++c)p[k[c]]=l[c];var u=p[0]-n;n=p[0],0==u?T(r[0]):(T(r[A[i=32767+u]]),T(d[i]));for(var f=63;f>0&&0==p[f];)f--;if(0==f)return T(s),n;for(var m,g=1;g<=f;){for(var y=g;0==p[g]&&g<=f;)++g;var v=g-y;if(v>=16){m=v>>4;for(var b=1;b<=m;++b)T(a);v&=15}i=32767+p[g],T(o[(v<<4)+A[i]]),T(d[i]),g++}return 63!=f&&T(s),n}function O(e){e=Math.min(Math.max(e,1),100),i!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=s((t[n]*e+50)/100);r=Math.min(Math.max(r,1),255),a[k[n]]=r}for(var o=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],i=0;i<64;i++){var d=s((o[i]*e+50)/100);d=Math.min(Math.max(d,1),255),l[k[i]]=d}for(var A=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],h=0,p=0;p<8;p++)for(var f=0;f<8;f++)c[h]=1/(a[k[h]]*A[p]*A[f]*8),u[h]=1/(l[k[h]]*A[p]*A[f]*8),h++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),i=e)}this.encode=function(e,i){i&&O(i),f=new Array,m=0,g=7,P(65496),P(65504),P(16),L(74),L(70),L(73),L(70),L(0),L(1),L(1),L(0),P(1),P(1),L(0),L(0),function(){P(65499),P(132),L(0);for(var e=0;e<64;e++)L(a[e]);L(1);for(var t=0;t<64;t++)L(l[t])}(),function(e,t){P(65472),P(17),L(8),P(t),P(e),L(3),L(1),L(17),L(0),L(2),L(17),L(1),L(3),L(17),L(1)}(e.width,e.height),function(){P(65476),P(418),L(0);for(var e=0;e<16;e++)L(_[e+1]);for(var t=0;t<=11;t++)L(C[t]);L(16);for(var n=0;n<16;n++)L(B[n+1]);for(var r=0;r<=161;r++)L(S[r]);L(1);for(var o=0;o<16;o++)L(j[o+1]);for(var i=0;i<=11;i++)L(E[i]);L(17);for(var s=0;s<16;s++)L(N[s+1]);for(var a=0;a<=161;a++)L(I[a])}(),P(65498),P(12),L(3),L(1),L(0),L(2),L(17),L(3),L(17),L(0),L(63),L(0);var s=0,d=0,A=0;m=0,g=7,this.encode.displayName="_encode_";for(var h,p,w,k,F,D,U,R,z,Q=e.data,H=e.width,q=e.height,V=4*H,K=0;K<q;){for(h=0;h<V;){for(F=V*K+h,U=-1,R=0,z=0;z<64;z++)D=F+(R=z>>3)*V+(U=4*(7&z)),K+R>=q&&(D-=V*(K+1+R-q)),h+U>=V&&(D-=h+U-V+4),p=Q[D++],w=Q[D++],k=Q[D++],y[z]=(x[p]+x[w+256|0]+x[k+512|0]>>16)-128,v[z]=(x[p+768|0]+x[w+1024|0]+x[k+1280|0]>>16)-128,b[z]=(x[p+1280|0]+x[w+1536|0]+x[k+1792|0]>>16)-128;s=M(y,c,s,t,r),d=M(v,u,d,n,o),A=M(b,u,A,n,o),h+=32}K+=8}if(g>=0){var W=[];W[1]=g+1,W[0]=(1<<g+1)-1,T(W)}return P(65497),new Uint8Array(f)},e=e||50,function(){for(var e=String.fromCharCode,t=0;t<256;t++)w[t]=e(t)}(),t=F(_,C),n=F(j,E),r=F(B,S),o=F(N,I),function(){for(var e=1,t=2,n=1;n<=15;n++){for(var r=e;r<t;r++)A[32767+r]=n,d[32767+r]=[],d[32767+r][1]=n,d[32767+r][0]=r;for(var o=-(t-1);o<=-e;o++)A[32767+o]=n,d[32767+o]=[],d[32767+o][1]=n,d[32767+o][0]=t-1+o;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)x[e]=19595*e,x[e+256|0]=38470*e,x[e+512|0]=7471*e+32768,x[e+768|0]=-11059*e,x[e+1024|0]=-21709*e,x[e+1280|0]=32768*e+8421375,x[e+1536|0]=-27439*e,x[e+1792|0]=-5329*e}(),O(e)}function C$(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function B$(e){function t(e){if(!e)throw Error("assert :P")}function n(e,t,n){for(var r=0;4>r;r++)if(e[t+r]!=n.charCodeAt(r))return!0;return!1}function r(e,t,n,r,o){for(var i=0;i<o;i++)e[t+i]=n[r+i]}function o(e,t,n,r){for(var o=0;o<r;o++)e[t+o]=n}function i(e){return new Int32Array(e)}function s(e,t){for(var n=[],r=0;r<e;r++)n.push(new t);return n}function a(e,t){var n=[];return function e(n,r,o){for(var i=o[r],s=0;s<i&&(n.push(o.length>r+1?[]:new t),!(o.length<r+1));s++)e(n[s],r+1,o)}(n,0,e),n}var l=function(){var e=this;function l(e,t){for(var n=1<<t-1>>>0;e&n;)n>>>=1;return n?(e&n-1)+n:e}function c(e,n,r,o,i){t(!(o%r));do{e[n+(o-=r)]=i}while(0<o)}function u(e,n,r,o,s){if(t(2328>=s),512>=s)var a=i(512);else if(null==(a=i(s)))return 0;return function(e,n,r,o,s,a){var u,A,h=n,p=1<<r,f=i(16),m=i(16);for(t(0!=s),t(null!=o),t(null!=e),t(0<r),A=0;A<s;++A){if(15<o[A])return 0;++f[o[A]]}if(f[0]==s)return 0;for(m[1]=0,u=1;15>u;++u){if(f[u]>1<<u)return 0;m[u+1]=m[u]+f[u]}for(A=0;A<s;++A)u=o[A],0<o[A]&&(a[m[u]++]=A);if(1==m[15])return(o=new d).g=0,o.value=a[0],c(e,h,1,p,o),p;var g,y=-1,v=p-1,b=0,w=1,x=1,k=1<<r;for(A=0,u=1,s=2;u<=r;++u,s<<=1){if(w+=x<<=1,0>(x-=f[u]))return 0;for(;0<f[u];--f[u])(o=new d).g=u,o.value=a[A++],c(e,h+b,s,k,o),b=l(b,u)}for(u=r+1,s=2;15>=u;++u,s<<=1){if(w+=x<<=1,0>(x-=f[u]))return 0;for(;0<f[u];--f[u]){if(o=new d,(b&v)!=y){for(h+=k,g=1<<(y=u)-r;15>y&&!(0>=(g-=f[y]));)++y,g<<=1;p+=k=1<<(g=y-r),e[n+(y=b&v)].g=g+r,e[n+y].value=h-n-y}o.g=u-r,o.value=a[A++],c(e,h+(b>>r),s,k,o),b=l(b,u)}}return w!=2*m[15]-1?0:p}(e,n,r,o,s,a)}function d(){this.value=this.g=0}function A(){this.value=this.g=0}function h(){this.G=s(5,d),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(Un,A)}function p(e,n,r,o){t(null!=e),t(null!=n),t(2147483648>o),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=n,e.pa=r,e.Jd=n,e.Yc=r+o,e.Zc=4<=o?r+o-4+1:r,B(e)}function f(e,t){for(var n=0;0<t--;)n|=j(e,128)<<t;return n}function m(e,t){var n=f(e,t);return S(e)?-n:n}function g(e,n,r,o){var i,s=0;for(t(null!=e),t(null!=n),t(4294967288>o),e.Sb=o,e.Ra=0,e.u=0,e.h=0,4<o&&(o=4),i=0;i<o;++i)s+=n[r+i]<<8*i;e.Ra=s,e.bb=o,e.oa=n,e.pa=r}function y(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<Qn-8>>>0,++e.bb,e.u-=8;k(e)&&(e.h=1,e.u=0)}function v(e,n){if(t(0<=n),!e.h&&n<=zn){var r=x(e)&Rn[n];return e.u+=n,y(e),r}return e.h=1,e.u=0}function b(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function w(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function x(e){return e.Ra>>>(e.u&Qn-1)>>>0}function k(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>Qn}function _(e,t){e.u=t,e.h=k(e)}function C(e){e.u>=Hn&&(t(e.u>=Hn),y(e))}function B(e){t(null!=e&&null!=e.oa),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(null!=e&&null!=e.oa),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function S(e){return f(e,1)}function j(e,t){var n=e.Ca;0>e.b&&B(e);var r=e.b,o=n*t>>>8,i=(e.I>>>r>o)+0;for(i?(n-=o,e.I-=o+1<<r>>>0):n=o+1,r=n,o=0;256<=r;)o+=8,r>>=8;return r=7^o+qn[r],e.b-=r,e.Ca=(n<<r)-1,i}function E(e,t,n){e[t+0]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function N(e,t){return e[t+0]|e[t+1]<<8}function I(e,t){return N(e,t)|e[t+2]<<16}function F(e,t){return N(e,t)|N(e,t+2)<<16}function T(e,n){var r=1<<n;return t(null!=e),t(0<n),e.X=i(r),null==e.X?0:(e.Mb=32-n,e.Xa=n,1)}function L(e,n){t(null!=e),t(null!=n),t(e.Xa==n.Xa),r(n.X,0,e.X,0,1<<n.Xa)}function P(){this.X=[],this.Xa=this.Mb=0}function M(e,n,r,o){t(null!=r),t(null!=o);var i=r[0],s=o[0];return 0==i&&(i=(e*s+n/2)/n),0==s&&(s=(n*i+e/2)/e),0>=i||0>=s?0:(r[0]=i,o[0]=s,1)}function O(e,t){return e+(1<<t)-1>>>t}function D(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function U(t,n){e[n]=function(n,r,o,i,s,a,l){var c;for(c=0;c<s;++c){var u=e[t](a[l+c-1],o,i+c);a[l+c]=D(n[r+c],u)}}}function R(){this.ud=this.hd=this.jd=0}function z(e,t){return((4278124286&(e^t))>>>1)+(e&t)>>>0}function Q(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function H(e,t){return Q(e+(e-t+.5>>1))}function q(e,t,n){return Math.abs(t-n)-Math.abs(e-n)}function V(e,t,n,r,o,i,s){for(r=i[s-1],n=0;n<o;++n)i[s+n]=r=D(e[t+n],r)}function K(e,t,n,r,o){var i;for(i=0;i<n;++i){var s=e[t+i],a=s>>8&255,l=16711935&(l=(l=16711935&s)+((a<<16)+a));r[o+i]=(4278255360&s)+l>>>0}}function W(e,t){t.jd=255&e,t.hd=e>>8&255,t.ud=e>>16&255}function G(e,t,n,r,o,i){var s;for(s=0;s<r;++s){var a=t[n+s],l=a>>>8,c=a,u=255&(u=(u=a>>>16)+((e.jd<<24>>24)*(l<<24>>24)>>>5));c=255&(c=(c+=(e.hd<<24>>24)*(l<<24>>24)>>>5)+((e.ud<<24>>24)*(u<<24>>24)>>>5)),o[i+s]=(4278255360&a)+(u<<16)+c}}function $(t,n,r,o,i){e[n]=function(e,t,n,r,s,a,l,c,u){for(r=l;r<c;++r)for(l=0;l<u;++l)s[a++]=i(n[o(e[t++])])},e[t]=function(t,n,s,a,l,c,u){var d=8>>t.b,A=t.Ea,h=t.K[0],p=t.w;if(8>d)for(t=(1<<t.b)-1,p=(1<<d)-1;n<s;++n){var f,m=0;for(f=0;f<A;++f)f&t||(m=o(a[l++])),c[u++]=i(h[m&p]),m>>=d}else e["VP8LMapColor"+r](a,l,h,p,c,u,n,s,A)}}function Y(e,t,n,r,o){for(n=t+n;t<n;){var i=e[t++];r[o++]=i>>16&255,r[o++]=i>>8&255,r[o++]=255&i}}function Z(e,t,n,r,o){for(n=t+n;t<n;){var i=e[t++];r[o++]=i>>16&255,r[o++]=i>>8&255,r[o++]=255&i,r[o++]=i>>24&255}}function X(e,t,n,r,o){for(n=t+n;t<n;){var i=(s=e[t++])>>16&240|s>>12&15,s=240&s|s>>28&15;r[o++]=i,r[o++]=s}}function J(e,t,n,r,o){for(n=t+n;t<n;){var i=(s=e[t++])>>16&248|s>>13&7,s=s>>5&224|s>>3&31;r[o++]=i,r[o++]=s}}function ee(e,t,n,r,o){for(n=t+n;t<n;){var i=e[t++];r[o++]=255&i,r[o++]=i>>8&255,r[o++]=i>>16&255}}function te(e,t,n,o,i,s){if(0==s)for(n=t+n;t<n;)E(o,((s=e[t++])[0]>>24|s[1]>>8&65280|s[2]<<8&16711680|s[3]<<24)>>>0),i+=32;else r(o,i,e,t,n)}function ne(t,n){e[n][0]=e[t+"0"],e[n][1]=e[t+"1"],e[n][2]=e[t+"2"],e[n][3]=e[t+"3"],e[n][4]=e[t+"4"],e[n][5]=e[t+"5"],e[n][6]=e[t+"6"],e[n][7]=e[t+"7"],e[n][8]=e[t+"8"],e[n][9]=e[t+"9"],e[n][10]=e[t+"10"],e[n][11]=e[t+"11"],e[n][12]=e[t+"12"],e[n][13]=e[t+"13"],e[n][14]=e[t+"0"],e[n][15]=e[t+"0"]}function re(e){return e==Qr||e==Hr||e==qr||e==Vr}function oe(){this.eb=[],this.size=this.A=this.fb=0}function ie(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function se(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new oe,this.f.kb=new ie,this.sd=null}function ae(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function le(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ce(e){return alert("todo:WebPSamplerProcessPlane"),e.T}function ue(e,t){var n=e.T,o=t.ba.f.RGBA,i=o.eb,s=o.fb+e.ka*o.A,a=go[t.ba.S],l=e.y,c=e.O,u=e.f,d=e.N,A=e.ea,h=e.W,p=t.cc,f=t.dc,m=t.Mc,g=t.Nc,y=e.ka,v=e.ka+e.T,b=e.U,w=b+1>>1;for(0==y?a(l,c,null,null,u,d,A,h,u,d,A,h,i,s,null,null,b):(a(t.ec,t.fc,l,c,p,f,m,g,u,d,A,h,i,s-o.A,i,s,b),++n);y+2<v;y+=2)p=u,f=d,m=A,g=h,d+=e.Rc,h+=e.Rc,s+=2*o.A,a(l,(c+=2*e.fa)-e.fa,l,c,p,f,m,g,u,d,A,h,i,s-o.A,i,s,b);return c+=e.fa,e.j+v<e.o?(r(t.ec,t.fc,l,c,b),r(t.cc,t.dc,u,d,w),r(t.Mc,t.Nc,A,h,w),n--):1&v||a(l,c,null,null,u,d,A,h,u,d,A,h,i,s+o.A,null,null,b),n}function de(e,n,r){var o=e.F,i=[e.J];if(null!=o){var s=e.U,a=n.ba.S,l=a==Ur||a==qr;n=n.ba.f.RGBA;var c=[0],u=e.ka;c[0]=e.T,e.Kb&&(0==u?--c[0]:(--u,i[0]-=e.width),e.j+e.ka+e.T==e.o&&(c[0]=e.o-e.j-u));var d=n.eb;u=n.fb+u*n.A,e=Cr(o,i[0],e.width,s,c,d,u+(l?0:3),n.A),t(r==c),e&&re(a)&&kr(d,u,l,s,c,n.A)}return 0}function Ae(e){var t=e.ma,n=t.ba.S,r=11>n,o=n==Mr||n==Dr||n==Ur||n==Rr||12==n||re(n);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!Mn(t.Oa,e,o?11:12))return 0;if(o&&re(n)&&yn(),e.da)alert("todo:use_scaling");else{if(r){if(t.Ib=ce,e.Kb){if(n=e.U+1>>1,t.memory=i(e.U+2*n),null==t.memory)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+e.U,t.Mc=t.cc,t.Nc=t.dc+n,t.Ib=ue,yn()}}else alert("todo:EmitYUV");o&&(t.Jb=de,r&&mn())}if(r&&!Io){for(e=0;256>e;++e)Fo[e]=89858*(e-128)+Bo>>Co,Po[e]=-22014*(e-128)+Bo,Lo[e]=-45773*(e-128),To[e]=113618*(e-128)+Bo>>Co;for(e=So;e<jo;++e)t=76283*(e-16)+Bo>>Co,Mo[e-So]=Ve(t,255),Oo[e-So]=Ve(t+8>>4,15);Io=1}return 1}function he(e){var n=e.ma,r=e.U,o=e.T;return t(!(1&e.ka)),0>=r||0>=o?0:(r=n.Ib(e,n),null!=n.Jb&&n.Jb(e,n,r),n.Dc+=r,1)}function pe(e){e.ma.memory=null}function fe(e,t,n,r){return 47!=v(e,8)?0:(t[0]=v(e,14)+1,n[0]=v(e,14)+1,r[0]=v(e,1),0!=v(e,3)?0:!e.h)}function me(e,t){if(4>e)return e+1;var n=e-2>>1;return(2+(1&e)<<n)+v(t,n)+1}function ge(e,t){return 120<t?t-120:1<=(n=((n=Zr[t-1])>>4)*e+(8-(15&n)))?n:1;var n}function ye(e,t,n){var r=x(n),o=e[t+=255&r].g-8;return 0<o&&(_(n,n.u+8),r=x(n),t+=e[t].value,t+=r&(1<<o)-1),_(n,n.u+e[t].g),e[t].value}function ve(e,n,r){return r.g+=e.g,r.value+=e.value<<n>>>0,t(8>=r.g),e.g}function be(e,n,r){var o=e.xc;return t((n=0==o?0:e.vc[e.md*(r>>o)+(n>>o)])<e.Wb),e.Ya[n]}function we(e,n,o,i){var s=e.ab,a=e.c*n,l=e.C;n=l+n;var c=o,u=i;for(i=e.Ta,o=e.Ua;0<s--;){var d=e.gc[s],A=l,h=n,p=c,f=u,m=(u=i,c=o,d.Ea);switch(t(A<h),t(h<=d.nc),d.hc){case 2:Wn(p,f,(h-A)*m,u,c);break;case 0:var g=A,y=h,v=u,b=c,w=(B=d).Ea;0==g&&(Vn(p,f,null,null,1,v,b),V(p,f+1,0,0,w-1,v,b+1),f+=w,b+=w,++g);for(var x=1<<B.b,k=x-1,_=O(w,B.b),C=B.K,B=B.w+(g>>B.b)*_;g<y;){var S=C,j=B,E=1;for(Kn(p,f,v,b-w,1,v,b);E<w;){var N=(E&~k)+x;N>w&&(N=w),(0,Xn[S[j++]>>8&15])(p,f+ +E,v,b+E-w,N-E,v,b+E),E=N}f+=w,b+=w,++g&k||(B+=_)}h!=d.nc&&r(u,c-m,u,c+(h-A-1)*m,m);break;case 1:for(m=p,y=f,w=(p=d.Ea)-(b=p&~(v=(f=1<<d.b)-1)),g=O(p,d.b),x=d.K,d=d.w+(A>>d.b)*g;A<h;){for(k=x,_=d,C=new R,B=y+b,S=y+p;y<B;)W(k[_++],C),Jn(C,m,y,f,u,c),y+=f,c+=f;y<S&&(W(k[_++],C),Jn(C,m,y,w,u,c),y+=w,c+=w),++A&v||(d+=g)}break;case 3:if(p==u&&f==c&&0<d.b){for(y=u,p=m=c+(h-A)*m-(b=(h-A)*O(d.Ea,d.b)),f=u,v=c,g=[],b=(w=b)-1;0<=b;--b)g[b]=f[v+b];for(b=w-1;0<=b;--b)y[p+b]=g[b];Gn(d,A,h,u,m,u,c)}else Gn(d,A,h,p,f,u,c)}c=i,u=o}u!=o&&r(i,o,c,u,a)}function xe(e,n){var r=e.V,o=e.Ba+e.c*e.C,i=n-e.C;if(t(n<=e.l.o),t(16>=i),0<i){var s=e.l,a=e.Ta,l=e.Ua,c=s.width;if(we(e,i,r,o),i=l=[l],t((r=e.C)<(o=n)),t(s.v<s.va),o>s.o&&(o=s.o),r<s.j){var u=s.j-r;r=s.j,i[0]+=u*c}if(r>=o?r=0:(i[0]+=4*s.v,s.ka=r-s.j,s.U=s.va-s.v,s.T=o-r,r=1),r){if(l=l[0],11>(r=e.ca).S){var d=r.f.RGBA,A=(o=r.S,i=s.U,s=s.T,u=d.eb,d.A),h=s;for(d=d.fb+e.Ma*d.A;0<h--;){var p=a,f=l,m=i,g=u,y=d;switch(o){case Pr:er(p,f,m,g,y);break;case Mr:tr(p,f,m,g,y);break;case Qr:tr(p,f,m,g,y),kr(g,y,0,m,1,0);break;case Or:or(p,f,m,g,y);break;case Dr:te(p,f,m,g,y,1);break;case Hr:te(p,f,m,g,y,1),kr(g,y,0,m,1,0);break;case Ur:te(p,f,m,g,y,0);break;case qr:te(p,f,m,g,y,0),kr(g,y,1,m,1,0);break;case Rr:nr(p,f,m,g,y);break;case Vr:nr(p,f,m,g,y),_r(g,y,m,1,0);break;case zr:rr(p,f,m,g,y);break;default:t(0)}l+=c,d+=A}e.Ma+=s}else alert("todo:EmitRescaledRowsYUVA");t(e.Ma<=r.height)}}e.C=n,t(e.C<=e.i)}function ke(e){var t;if(0<e.ua)return 0;for(t=0;t<e.Wb;++t){var n=e.Ya[t].G,r=e.Ya[t].H;if(0<n[1][r[1]+0].g||0<n[2][r[2]+0].g||0<n[3][r[3]+0].g)return 0}return 1}function _e(e,n,r,o,i,s){if(0!=e.Z){var a=e.qd,l=e.rd;for(t(null!=mo[e.Z]);n<r;++n)mo[e.Z](a,l,o,i,o,i,s),a=o,l=i,i+=s;e.qd=a,e.rd=l}}function Ce(e,n){var r=e.l.ma,o=0==r.Z||1==r.Z?e.l.j:e.C;if(o=e.C<o?o:e.C,t(n<=e.l.o),n>o){var i=e.l.width,s=r.ca,a=r.tb+i*o,l=e.V,c=e.Ba+e.c*o,u=e.gc;t(1==e.ab),t(3==u[0].hc),Yn(u[0],o,n,l,c,s,a),_e(r,o,n,s,a,i)}e.C=e.Ma=n}function Be(e,n,r,o,i,s,a){var l=e.$/o,c=e.$%o,u=e.m,d=e.s,A=r+e.$,h=A;i=r+o*i;var p=r+o*s,f=280+d.ua,m=e.Pb?l:16777216,g=0<d.ua?d.Wa:null,y=d.wc,v=A<p?be(d,c,l):null;t(e.C<s),t(p<=i);var b=!1;e:for(;;){for(;b||A<p;){var w=0;if(l>=m){var B=A-r;t((m=e).Pb),m.wd=m.m,m.xd=B,0<m.s.ua&&L(m.s.Wa,m.s.vb),m=l+Jr}if(c&y||(v=be(d,c,l)),t(null!=v),v.Qb&&(n[A]=v.qb,b=!0),!b)if(C(u),v.jc){w=u,B=n;var S=A,j=v.pd[x(w)&Un-1];t(v.jc),256>j.g?(_(w,w.u+j.g),B[S]=j.value,w=0):(_(w,w.u+j.g-256),t(256<=j.value),w=j.value),0==w&&(b=!0)}else w=ye(v.G[0],v.H[0],u);if(u.h)break;if(b||256>w){if(!b)if(v.nd)n[A]=(v.qb|w<<8)>>>0;else{if(C(u),b=ye(v.G[1],v.H[1],u),C(u),B=ye(v.G[2],v.H[2],u),S=ye(v.G[3],v.H[3],u),u.h)break;n[A]=(S<<24|b<<16|w<<8|B)>>>0}if(b=!1,++A,++c>=o&&(c=0,++l,null!=a&&l<=s&&!(l%16)&&a(e,l),null!=g))for(;h<A;)w=n[h++],g.X[(506832829*w&4294967295)>>>g.Mb]=w}else if(280>w){if(w=me(w-256,u),B=ye(v.G[4],v.H[4],u),C(u),B=ge(o,B=me(B,u)),u.h)break;if(A-r<B||i-A<w)break e;for(S=0;S<w;++S)n[A+S]=n[A+S-B];for(A+=w,c+=w;c>=o;)c-=o,++l,null!=a&&l<=s&&!(l%16)&&a(e,l);if(t(A<=i),c&y&&(v=be(d,c,l)),null!=g)for(;h<A;)w=n[h++],g.X[(506832829*w&4294967295)>>>g.Mb]=w}else{if(!(w<f))break e;for(b=w-280,t(null!=g);h<A;)w=n[h++],g.X[(506832829*w&4294967295)>>>g.Mb]=w;w=A,t(!(b>>>(B=g).Xa)),n[w]=B.X[b],b=!0}b||t(u.h==k(u))}if(e.Pb&&u.h&&A<i)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&L(e.s.vb,e.s.Wa);else{if(u.h)break e;null!=a&&a(e,l>s?s:l),e.a=0,e.$=A-r}return 1}return e.a=3,0}function Se(e){t(null!=e),e.vc=null,e.yc=null,e.Ya=null;var n=e.Wa;null!=n&&(n.X=null),e.vb=null,t(null!=e)}function je(){var t=new sn;return null==t?null:(t.a=0,t.xb=fo,ne("Predictor","VP8LPredictors"),ne("Predictor","VP8LPredictors_C"),ne("PredictorAdd","VP8LPredictorsAdd"),ne("PredictorAdd","VP8LPredictorsAdd_C"),Wn=K,Jn=G,er=Y,tr=Z,nr=X,rr=J,or=ee,e.VP8LMapColor32b=$n,e.VP8LMapColor8b=Zn,t)}function Ee(e,n,r,a,l){var c=1,A=[e],p=[n],f=a.m,m=a.s,g=null,y=0;e:for(;;){if(r)for(;c&&v(f,1);){var b=A,w=p,k=a,B=1,S=k.m,j=k.gc[k.ab],E=v(S,2);if(k.Oc&1<<E)c=0;else{switch(k.Oc|=1<<E,j.hc=E,j.Ea=b[0],j.nc=w[0],j.K=[null],++k.ab,t(4>=k.ab),E){case 0:case 1:j.b=v(S,3)+2,B=Ee(O(j.Ea,j.b),O(j.nc,j.b),0,k,j.K),j.K=j.K[0];break;case 3:var N,I=v(S,8)+1,F=16<I?0:4<I?1:2<I?2:3;if(b[0]=O(j.Ea,F),j.b=F,N=B=Ee(I,1,0,k,j.K)){var L,P=I,M=j,U=1<<(8>>M.b),R=i(U);if(null==R)N=0;else{var z=M.K[0],Q=M.w;for(R[0]=M.K[0][0],L=1;L<1*P;++L)R[L]=D(z[Q+L],R[L-1]);for(;L<4*U;++L)R[L]=0;M.K[0]=null,M.K[0]=R,N=1}}B=N;break;case 2:break;default:t(0)}c=B}}if(A=A[0],p=p[0],c&&v(f,1)&&!(c=1<=(y=v(f,4))&&11>=y)){a.a=3;break e}var H;if(H=c)t:{var q,V,K,W=a,G=A,$=p,Y=y,Z=r,X=W.m,J=W.s,ee=[null],te=1,ne=0,re=Xr[Y];n:for(;;){if(Z&&v(X,1)){var oe=v(X,3)+2,ie=O(G,oe),se=O($,oe),ae=ie*se;if(!Ee(ie,se,0,W,ee))break n;for(ee=ee[0],J.xc=oe,q=0;q<ae;++q){var le=ee[q]>>8&65535;ee[q]=le,le>=te&&(te=le+1)}}if(X.h)break n;for(V=0;5>V;++V){var ce=Gr[V];!V&&0<Y&&(ce+=1<<Y),ne<ce&&(ne=ce)}var ue=s(te*re,d),de=te,Ae=s(de,h);if(null==Ae)var he=null;else t(65536>=de),he=Ae;var pe=i(ne);if(null==he||null==pe||null==ue){W.a=1;break n}var fe=ue;for(q=K=0;q<te;++q){var me=he[q],ge=me.G,ye=me.H,be=0,we=1,xe=0;for(V=0;5>V;++V){ce=Gr[V],ge[V]=fe,ye[V]=K,!V&&0<Y&&(ce+=1<<Y);r:{var ke,_e=ce,Ce=W,je=pe,Ne=fe,Ie=K,Fe=0,Te=Ce.m,Le=v(Te,1);if(o(je,0,0,_e),Le){var Pe=v(Te,1)+1,Me=v(Te,1),Oe=v(Te,0==Me?1:8);je[Oe]=1,2==Pe&&(je[Oe=v(Te,8)]=1);var De=1}else{var Ue=i(19),Re=v(Te,4)+4;if(19<Re){Ce.a=3;var ze=0;break r}for(ke=0;ke<Re;++ke)Ue[Yr[ke]]=v(Te,3);var Qe=void 0,He=void 0,qe=Ce,Ve=Ue,Ke=_e,We=je,Ge=0,$e=qe.m,Ye=8,Ze=s(128,d);o:for(;u(Ze,0,7,Ve,19);){if(v($e,1)){var Xe=2+2*v($e,3);if((Qe=2+v($e,Xe))>Ke)break o}else Qe=Ke;for(He=0;He<Ke&&Qe--;){C($e);var Je=Ze[0+(127&x($e))];_($e,$e.u+Je.g);var et=Je.value;if(16>et)We[He++]=et,0!=et&&(Ye=et);else{var tt=16==et,nt=et-16,rt=Wr[nt],ot=v($e,Kr[nt])+rt;if(He+ot>Ke)break o;for(var it=tt?Ye:0;0<ot--;)We[He++]=it}}Ge=1;break o}Ge||(qe.a=3),De=Ge}(De=De&&!Te.h)&&(Fe=u(Ne,Ie,8,je,_e)),De&&0!=Fe?ze=Fe:(Ce.a=3,ze=0)}if(0==ze)break n;if(we&&1==$r[V]&&(we=0==fe[K].g),be+=fe[K].g,K+=ze,3>=V){var st,at=pe[0];for(st=1;st<ce;++st)pe[st]>at&&(at=pe[st]);xe+=at}}if(me.nd=we,me.Qb=0,we&&(me.qb=(ge[3][ye[3]+0].value<<24|ge[1][ye[1]+0].value<<16|ge[2][ye[2]+0].value)>>>0,0==be&&256>ge[0][ye[0]+0].value&&(me.Qb=1,me.qb+=ge[0][ye[0]+0].value<<8)),me.jc=!me.Qb&&6>xe,me.jc){var lt,ct=me;for(lt=0;lt<Un;++lt){var ut=lt,dt=ct.pd[ut],At=ct.G[0][ct.H[0]+ut];256<=At.value?(dt.g=At.g+256,dt.value=At.value):(dt.g=0,dt.value=0,ut>>=ve(At,8,dt),ut>>=ve(ct.G[1][ct.H[1]+ut],16,dt),ut>>=ve(ct.G[2][ct.H[2]+ut],0,dt),ve(ct.G[3][ct.H[3]+ut],24,dt))}}}J.vc=ee,J.Wb=te,J.Ya=he,J.yc=ue,H=1;break t}H=0}if(!(c=H)){a.a=3;break e}if(0<y){if(m.ua=1<<y,!T(m.Wa,y)){a.a=1,c=0;break e}}else m.ua=0;var ht=a,pt=A,ft=p,mt=ht.s,gt=mt.xc;if(ht.c=pt,ht.i=ft,mt.md=O(pt,gt),mt.wc=0==gt?-1:(1<<gt)-1,r){a.xb=po;break e}if(null==(g=i(A*p))){a.a=1,c=0;break e}c=(c=Be(a,g,0,A,p,p,null))&&!f.h;break e}return c?(null!=l?l[0]=g:(t(null==g),t(r)),a.$=0,r||Se(m)):Se(m),c}function Ne(e,n){var r=e.c*e.i,o=r+n+16*n;return t(e.c<=n),e.V=i(o),null==e.V?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+r+n,1)}function Ie(e,n){var r=e.C,o=n-r,i=e.V,s=e.Ba+e.c*r;for(t(n<=e.l.o);0<o;){var a=16<o?16:o,l=e.l.ma,c=e.l.width,u=c*a,d=l.ca,A=l.tb+c*r,h=e.Ta,p=e.Ua;we(e,a,i,s),Br(h,p,d,A,u),_e(l,r,r+a,d,A,c),o-=a,i+=a*e.c,r+=a}t(r==n),e.C=e.Ma=n}function Fe(){this.ub=this.yd=this.td=this.Rb=0}function Te(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Le(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Pe(){this.Yb=function(){var e=[];return function e(t,n,r){for(var o=r[n],i=0;i<o&&(t.push(r.length>n+1?[]:0),!(r.length<n+1));i++)e(t[i],n+1,r)}(e,0,[3,11]),e}()}function Me(){this.jb=i(3),this.Wc=a([4,8],Pe),this.Xc=a([4,17],Pe)}function Oe(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function De(){this.ld=this.La=this.dd=this.tc=0}function Ue(){this.Na=this.la=0}function Re(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ze(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Qe(){this.uc=this.M=this.Nb=0,this.wa=Array(new De),this.Y=0,this.ya=Array(new ze),this.aa=0,this.l=new Ke}function He(){this.y=i(16),this.f=i(8),this.ea=i(8)}function qe(){this.cb=this.a=0,this.sc="",this.m=new b,this.Od=new Fe,this.Kc=new Te,this.ed=new Oe,this.Qa=new Le,this.Ic=this.$c=this.Aa=0,this.D=new Qe,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,b),this.ia=0,this.pb=s(4,Re),this.Pa=new Me,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new He),this.Hd=0,this.rb=Array(new Ue),this.sb=0,this.wa=Array(new De),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new ze),this.L=this.aa=0,this.gd=a([4,2],De),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Ve(e,t){return 0>e?0:e>t?t:e}function Ke(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function We(){var e=new qe;return null!=e&&(e.a=0,e.sc="OK",e.cb=0,e.Xb=0,no||(no=Ze)),e}function Ge(e,t,n){return 0==e.a&&(e.a=t,e.sc=n,e.cb=0),0}function $e(e,t,n){return 3<=n&&157==e[t+0]&&1==e[t+1]&&42==e[t+2]}function Ye(e,n){if(null==e)return 0;if(e.a=0,e.sc="OK",null==n)return Ge(e,2,"null VP8Io passed to VP8GetHeaders()");var r=n.data,i=n.w,s=n.ha;if(4>s)return Ge(e,7,"Truncated header.");var a=r[i+0]|r[i+1]<<8|r[i+2]<<16,l=e.Od;if(l.Rb=!(1&a),l.td=a>>1&7,l.yd=a>>4&1,l.ub=a>>5,3<l.td)return Ge(e,3,"Incorrect keyframe parameters.");if(!l.yd)return Ge(e,4,"Frame not displayable.");i+=3,s-=3;var c=e.Kc;if(l.Rb){if(7>s)return Ge(e,7,"cannot parse picture header");if(!$e(r,i,s))return Ge(e,3,"Bad code word");c.c=16383&(r[i+4]<<8|r[i+3]),c.Td=r[i+4]>>6,c.i=16383&(r[i+6]<<8|r[i+5]),c.Ud=r[i+6]>>6,i+=7,s-=7,e.za=c.c+15>>4,e.Ub=c.i+15>>4,n.width=c.c,n.height=c.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,o((a=e.Pa).jb,0,255,a.jb.length),t(null!=(a=e.Qa)),a.Cb=0,a.Bb=0,a.Fb=1,o(a.Zb,0,0,a.Zb.length),o(a.Lb,0,0,a.Lb)}if(l.ub>s)return Ge(e,7,"bad partition length");p(a=e.m,r,i,l.ub),i+=l.ub,s-=l.ub,l.Rb&&(c.Ld=S(a),c.Kd=S(a)),c=e.Qa;var u,d=e.Pa;if(t(null!=a),t(null!=c),c.Cb=S(a),c.Cb){if(c.Bb=S(a),S(a)){for(c.Fb=S(a),u=0;4>u;++u)c.Zb[u]=S(a)?m(a,7):0;for(u=0;4>u;++u)c.Lb[u]=S(a)?m(a,6):0}if(c.Bb)for(u=0;3>u;++u)d.jb[u]=S(a)?f(a,8):255}else c.Bb=0;if(a.Ka)return Ge(e,3,"cannot parse segment header");if((c=e.ed).zd=S(a),c.Tb=f(a,6),c.wb=f(a,3),c.Pc=S(a),c.Pc&&S(a)){for(d=0;4>d;++d)S(a)&&(c.vd[d]=m(a,6));for(d=0;4>d;++d)S(a)&&(c.od[d]=m(a,6))}if(e.L=0==c.Tb?0:c.zd?1:2,a.Ka)return Ge(e,3,"cannot parse filter header");var A=s;if(s=u=i,i=u+A,c=A,e.Xb=(1<<f(e.m,2))-1,A<3*(d=e.Xb))r=7;else{for(u+=3*d,c-=3*d,A=0;A<d;++A){var h=r[s+0]|r[s+1]<<8|r[s+2]<<16;h>c&&(h=c),p(e.Jc[+A],r,u,h),u+=h,c-=h,s+=3}p(e.Jc[+d],r,u,c),r=u<i?0:5}if(0!=r)return Ge(e,r,"cannot parse partitions");for(r=f(u=e.m,7),s=S(u)?m(u,4):0,i=S(u)?m(u,4):0,c=S(u)?m(u,4):0,d=S(u)?m(u,4):0,u=S(u)?m(u,4):0,A=e.Qa,h=0;4>h;++h){if(A.Cb){var g=A.Zb[h];A.Fb||(g+=r)}else{if(0<h){e.pb[h]=e.pb[0];continue}g=r}var y=e.pb[h];y.Sc[0]=eo[Ve(g+s,127)],y.Sc[1]=to[Ve(g+0,127)],y.Eb[0]=2*eo[Ve(g+i,127)],y.Eb[1]=101581*to[Ve(g+c,127)]>>16,8>y.Eb[1]&&(y.Eb[1]=8),y.Qc[0]=eo[Ve(g+d,117)],y.Qc[1]=to[Ve(g+u,127)],y.lc=g+u}if(!l.Rb)return Ge(e,4,"Not a key frame.");for(S(a),l=e.Pa,r=0;4>r;++r){for(s=0;8>s;++s)for(i=0;3>i;++i)for(c=0;11>c;++c)d=j(a,lo[r][s][i][c])?f(a,8):so[r][s][i][c],l.Wc[r][s].Yb[i][c]=d;for(s=0;17>s;++s)l.Xc[r][s]=l.Wc[r][co[s]]}return e.kc=S(a),e.kc&&(e.Bd=f(a,8)),e.cb=1}function Ze(e,t,n,r,o,i,s){var a=t[o].Yb[n];for(n=0;16>o;++o){if(!j(e,a[n+0]))return o;for(;!j(e,a[n+1]);)if(a=t[++o].Yb[0],n=0,16==o)return 16;var l=t[o+1].Yb;if(j(e,a[n+2])){var c=e,u=0;if(j(c,(A=a)[(d=n)+3]))if(j(c,A[d+6])){for(a=0,d=2*(u=j(c,A[d+8]))+(A=j(c,A[d+9+u])),u=0,A=ro[d];A[a];++a)u+=u+j(c,A[a]);u+=3+(8<<d)}else j(c,A[d+7])?(u=7+2*j(c,165),u+=j(c,145)):u=5+j(c,159);else u=j(c,A[d+4])?3+j(c,A[d+5]):2;a=l[2]}else u=1,a=l[1];l=s+oo[o],0>(c=e).b&&B(c);var d,A=c.b,h=(d=c.Ca>>1)-(c.I>>A)>>31;--c.b,c.Ca+=h,c.Ca|=1,c.I-=(d+1&h)<<A,i[l]=((u^h)-h)*r[(0<o)+0]}return 16}function Xe(e){var t=e.rb[e.sb-1];t.la=0,t.Na=0,o(e.zc,0,0,e.zc.length),e.ja=0}function Je(e,t,n,r,o){o=e[t+n+32*r]+(o>>3),e[t+n+32*r]=-256&o?0>o?0:255:o}function et(e,t,n,r,o,i){Je(e,t,0,n,r+o),Je(e,t,1,n,r+i),Je(e,t,2,n,r-i),Je(e,t,3,n,r-o)}function tt(e){return(20091*e>>16)+e}function nt(e,t,n,r){var o,s=0,a=i(16);for(o=0;4>o;++o){var l=e[t+0]+e[t+8],c=e[t+0]-e[t+8],u=(35468*e[t+4]>>16)-tt(e[t+12]),d=tt(e[t+4])+(35468*e[t+12]>>16);a[s+0]=l+d,a[s+1]=c+u,a[s+2]=c-u,a[s+3]=l-d,s+=4,t++}for(o=s=0;4>o;++o)l=(e=a[s+0]+4)+a[s+8],c=e-a[s+8],u=(35468*a[s+4]>>16)-tt(a[s+12]),Je(n,r,0,0,l+(d=tt(a[s+4])+(35468*a[s+12]>>16))),Je(n,r,1,0,c+u),Je(n,r,2,0,c-u),Je(n,r,3,0,l-d),s++,r+=32}function rt(e,t,n,r){var o=e[t+0]+4,i=35468*e[t+4]>>16,s=tt(e[t+4]),a=35468*e[t+1]>>16;et(n,r,0,o+s,e=tt(e[t+1]),a),et(n,r,1,o+i,e,a),et(n,r,2,o-i,e,a),et(n,r,3,o-s,e,a)}function ot(e,t,n,r,o){nt(e,t,n,r),o&&nt(e,t+16,n,r+4)}function it(e,t,n,r){sr(e,t+0,n,r,1),sr(e,t+32,n,r+128,1)}function st(e,t,n,r){var o;for(e=e[t+0]+4,o=0;4>o;++o)for(t=0;4>t;++t)Je(n,r,t,o,e)}function at(e,t,n,r){e[t+0]&&cr(e,t+0,n,r),e[t+16]&&cr(e,t+16,n,r+4),e[t+32]&&cr(e,t+32,n,r+128),e[t+48]&&cr(e,t+48,n,r+128+4)}function lt(e,t,n,r){var o,s=i(16);for(o=0;4>o;++o){var a=e[t+0+o]+e[t+12+o],l=e[t+4+o]+e[t+8+o],c=e[t+4+o]-e[t+8+o],u=e[t+0+o]-e[t+12+o];s[0+o]=a+l,s[8+o]=a-l,s[4+o]=u+c,s[12+o]=u-c}for(o=0;4>o;++o)a=(e=s[0+4*o]+3)+s[3+4*o],l=s[1+4*o]+s[2+4*o],c=s[1+4*o]-s[2+4*o],u=e-s[3+4*o],n[r+0]=a+l>>3,n[r+16]=u+c>>3,n[r+32]=a-l>>3,n[r+48]=u-c>>3,r+=64}function ct(e,t,n){var r,o=t-32,i=Tr,s=255-e[o-1];for(r=0;r<n;++r){var a,l=i,c=s+e[t-1];for(a=0;a<n;++a)e[t+a]=l[c+e[o+a]];t+=32}}function ut(e,t){ct(e,t,4)}function dt(e,t){ct(e,t,8)}function At(e,t){ct(e,t,16)}function ht(e,t){var n;for(n=0;16>n;++n)r(e,t+32*n,e,t-32,16)}function pt(e,t){var n;for(n=16;0<n;--n)o(e,t,e[t-1],16),t+=32}function ft(e,t,n){var r;for(r=0;16>r;++r)o(t,n+32*r,e,16)}function mt(e,t){var n,r=16;for(n=0;16>n;++n)r+=e[t-1+32*n]+e[t+n-32];ft(r>>5,e,t)}function gt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t-1+32*n];ft(r>>4,e,t)}function yt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t+n-32];ft(r>>4,e,t)}function vt(e,t){ft(128,e,t)}function bt(e,t,n){return e+2*t+n+2>>2}function wt(e,t){var n,o=t-32;for(o=new Uint8Array([bt(e[o-1],e[o+0],e[o+1]),bt(e[o+0],e[o+1],e[o+2]),bt(e[o+1],e[o+2],e[o+3]),bt(e[o+2],e[o+3],e[o+4])]),n=0;4>n;++n)r(e,t+32*n,o,0,o.length)}function xt(e,t){var n=e[t-1],r=e[t-1+32],o=e[t-1+64],i=e[t-1+96];E(e,t+0,16843009*bt(e[t-1-32],n,r)),E(e,t+32,16843009*bt(n,r,o)),E(e,t+64,16843009*bt(r,o,i)),E(e,t+96,16843009*bt(o,i,i))}function kt(e,t){var n,r=4;for(n=0;4>n;++n)r+=e[t+n-32]+e[t-1+32*n];for(r>>=3,n=0;4>n;++n)o(e,t+32*n,r,4)}function _t(e,t){var n=e[t-1+0],r=e[t-1+32],o=e[t-1+64],i=e[t-1-32],s=e[t+0-32],a=e[t+1-32],l=e[t+2-32],c=e[t+3-32];e[t+0+96]=bt(r,o,e[t-1+96]),e[t+1+96]=e[t+0+64]=bt(n,r,o),e[t+2+96]=e[t+1+64]=e[t+0+32]=bt(i,n,r),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=bt(s,i,n),e[t+3+64]=e[t+2+32]=e[t+1+0]=bt(a,s,i),e[t+3+32]=e[t+2+0]=bt(l,a,s),e[t+3+0]=bt(c,l,a)}function Ct(e,t){var n=e[t+1-32],r=e[t+2-32],o=e[t+3-32],i=e[t+4-32],s=e[t+5-32],a=e[t+6-32],l=e[t+7-32];e[t+0+0]=bt(e[t+0-32],n,r),e[t+1+0]=e[t+0+32]=bt(n,r,o),e[t+2+0]=e[t+1+32]=e[t+0+64]=bt(r,o,i),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=bt(o,i,s),e[t+3+32]=e[t+2+64]=e[t+1+96]=bt(i,s,a),e[t+3+64]=e[t+2+96]=bt(s,a,l),e[t+3+96]=bt(a,l,l)}function Bt(e,t){var n=e[t-1+0],r=e[t-1+32],o=e[t-1+64],i=e[t-1-32],s=e[t+0-32],a=e[t+1-32],l=e[t+2-32],c=e[t+3-32];e[t+0+0]=e[t+1+64]=i+s+1>>1,e[t+1+0]=e[t+2+64]=s+a+1>>1,e[t+2+0]=e[t+3+64]=a+l+1>>1,e[t+3+0]=l+c+1>>1,e[t+0+96]=bt(o,r,n),e[t+0+64]=bt(r,n,i),e[t+0+32]=e[t+1+96]=bt(n,i,s),e[t+1+32]=e[t+2+96]=bt(i,s,a),e[t+2+32]=e[t+3+96]=bt(s,a,l),e[t+3+32]=bt(a,l,c)}function St(e,t){var n=e[t+0-32],r=e[t+1-32],o=e[t+2-32],i=e[t+3-32],s=e[t+4-32],a=e[t+5-32],l=e[t+6-32],c=e[t+7-32];e[t+0+0]=n+r+1>>1,e[t+1+0]=e[t+0+64]=r+o+1>>1,e[t+2+0]=e[t+1+64]=o+i+1>>1,e[t+3+0]=e[t+2+64]=i+s+1>>1,e[t+0+32]=bt(n,r,o),e[t+1+32]=e[t+0+96]=bt(r,o,i),e[t+2+32]=e[t+1+96]=bt(o,i,s),e[t+3+32]=e[t+2+96]=bt(i,s,a),e[t+3+64]=bt(s,a,l),e[t+3+96]=bt(a,l,c)}function jt(e,t){var n=e[t-1+0],r=e[t-1+32],o=e[t-1+64],i=e[t-1+96];e[t+0+0]=n+r+1>>1,e[t+2+0]=e[t+0+32]=r+o+1>>1,e[t+2+32]=e[t+0+64]=o+i+1>>1,e[t+1+0]=bt(n,r,o),e[t+3+0]=e[t+1+32]=bt(r,o,i),e[t+3+32]=e[t+1+64]=bt(o,i,i),e[t+3+64]=e[t+2+64]=e[t+0+96]=e[t+1+96]=e[t+2+96]=e[t+3+96]=i}function Et(e,t){var n=e[t-1+0],r=e[t-1+32],o=e[t-1+64],i=e[t-1+96],s=e[t-1-32],a=e[t+0-32],l=e[t+1-32],c=e[t+2-32];e[t+0+0]=e[t+2+32]=n+s+1>>1,e[t+0+32]=e[t+2+64]=r+n+1>>1,e[t+0+64]=e[t+2+96]=o+r+1>>1,e[t+0+96]=i+o+1>>1,e[t+3+0]=bt(a,l,c),e[t+2+0]=bt(s,a,l),e[t+1+0]=e[t+3+32]=bt(n,s,a),e[t+1+32]=e[t+3+64]=bt(r,n,s),e[t+1+64]=e[t+3+96]=bt(o,r,n),e[t+1+96]=bt(i,o,r)}function Nt(e,t){var n;for(n=0;8>n;++n)r(e,t+32*n,e,t-32,8)}function It(e,t){var n;for(n=0;8>n;++n)o(e,t,e[t-1],8),t+=32}function Ft(e,t,n){var r;for(r=0;8>r;++r)o(t,n+32*r,e,8)}function Tt(e,t){var n,r=8;for(n=0;8>n;++n)r+=e[t+n-32]+e[t-1+32*n];Ft(r>>4,e,t)}function Lt(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t+n-32];Ft(r>>3,e,t)}function Pt(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t-1+32*n];Ft(r>>3,e,t)}function Mt(e,t){Ft(128,e,t)}function Ot(e,t,n){var r=e[t-n],o=e[t+0],i=3*(o-r)+Ir[1020+e[t-2*n]-e[t+n]],s=Fr[112+(i+4>>3)];e[t-n]=Tr[255+r+Fr[112+(i+3>>3)]],e[t+0]=Tr[255+o-s]}function Dt(e,t,n,r){var o=e[t+0],i=e[t+n];return Lr[255+e[t-2*n]-e[t-n]]>r||Lr[255+i-o]>r}function Ut(e,t,n,r){return 4*Lr[255+e[t-n]-e[t+0]]+Lr[255+e[t-2*n]-e[t+n]]<=r}function Rt(e,t,n,r,o){var i=e[t-3*n],s=e[t-2*n],a=e[t-n],l=e[t+0],c=e[t+n],u=e[t+2*n],d=e[t+3*n];return 4*Lr[255+a-l]+Lr[255+s-c]>r?0:Lr[255+e[t-4*n]-i]<=o&&Lr[255+i-s]<=o&&Lr[255+s-a]<=o&&Lr[255+d-u]<=o&&Lr[255+u-c]<=o&&Lr[255+c-l]<=o}function zt(e,t,n,r){var o=2*r+1;for(r=0;16>r;++r)Ut(e,t+r,n,o)&&Ot(e,t+r,n)}function Qt(e,t,n,r){var o=2*r+1;for(r=0;16>r;++r)Ut(e,t+r*n,1,o)&&Ot(e,t+r*n,1)}function Ht(e,t,n,r){var o;for(o=3;0<o;--o)zt(e,t+=4*n,n,r)}function qt(e,t,n,r){var o;for(o=3;0<o;--o)Qt(e,t+=4,n,r)}function Vt(e,t,n,r,o,i,s,a){for(i=2*i+1;0<o--;){if(Rt(e,t,n,i,s))if(Dt(e,t,n,a))Ot(e,t,n);else{var l=e,c=t,u=n,d=l[c-2*u],A=l[c-u],h=l[c+0],p=l[c+u],f=l[c+2*u],m=27*(y=Ir[1020+3*(h-A)+Ir[1020+d-p]])+63>>7,g=18*y+63>>7,y=9*y+63>>7;l[c-3*u]=Tr[255+l[c-3*u]+y],l[c-2*u]=Tr[255+d+g],l[c-u]=Tr[255+A+m],l[c+0]=Tr[255+h-m],l[c+u]=Tr[255+p-g],l[c+2*u]=Tr[255+f-y]}t+=r}}function Kt(e,t,n,r,o,i,s,a){for(i=2*i+1;0<o--;){if(Rt(e,t,n,i,s))if(Dt(e,t,n,a))Ot(e,t,n);else{var l=e,c=t,u=n,d=l[c-u],A=l[c+0],h=l[c+u],p=Fr[112+(4+(f=3*(A-d))>>3)],f=Fr[112+(f+3>>3)],m=p+1>>1;l[c-2*u]=Tr[255+l[c-2*u]+m],l[c-u]=Tr[255+d+f],l[c+0]=Tr[255+A-p],l[c+u]=Tr[255+h-m]}t+=r}}function Wt(e,t,n,r,o,i){Vt(e,t,n,1,16,r,o,i)}function Gt(e,t,n,r,o,i){Vt(e,t,1,n,16,r,o,i)}function $t(e,t,n,r,o,i){var s;for(s=3;0<s;--s)Kt(e,t+=4*n,n,1,16,r,o,i)}function Yt(e,t,n,r,o,i){var s;for(s=3;0<s;--s)Kt(e,t+=4,1,n,16,r,o,i)}function Zt(e,t,n,r,o,i,s,a){Vt(e,t,o,1,8,i,s,a),Vt(n,r,o,1,8,i,s,a)}function Xt(e,t,n,r,o,i,s,a){Vt(e,t,1,o,8,i,s,a),Vt(n,r,1,o,8,i,s,a)}function Jt(e,t,n,r,o,i,s,a){Kt(e,t+4*o,o,1,8,i,s,a),Kt(n,r+4*o,o,1,8,i,s,a)}function en(e,t,n,r,o,i,s,a){Kt(e,t+4,1,o,8,i,s,a),Kt(n,r+4,1,o,8,i,s,a)}function tn(){this.ba=new se,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new le,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function rn(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function on(){this.ua=0,this.Wa=new P,this.vb=new P,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new h,this.yc=new d}function sn(){this.xb=this.a=0,this.l=new Ke,this.ca=new se,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new w,this.Pb=0,this.wd=new w,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new on,this.ab=0,this.gc=s(4,rn),this.Oc=0}function an(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ke,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ln(e,t,n,r,o,i,s){for(e=null==e?0:e[t+0],t=0;t<s;++t)o[i+t]=e+n[r+t]&255,e=o[i+t]}function cn(e,t,n,r,o,i,s){var a;if(null==e)ln(null,null,n,r,o,i,s);else for(a=0;a<s;++a)o[i+a]=e[t+a]+n[r+a]&255}function un(e,t,n,r,o,i,s){if(null==e)ln(null,null,n,r,o,i,s);else{var a,l=e[t+0],c=l,u=l;for(a=0;a<s;++a)c=u+(l=e[t+a])-c,u=n[r+a]+(-256&c?0>c?0:255:c)&255,c=l,o[i+a]=u}}function dn(e,n,o,s){var a=n.width,l=n.o;if(t(null!=e&&null!=n),0>o||0>=s||o+s>l)return null;if(!e.Cc){if(null==e.ga){var c;if(e.ga=new an,(c=null==e.ga)||(c=n.width*n.o,t(0==e.Gb.length),e.Gb=i(c),e.Uc=0,null==e.Gb?c=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,c=1),c=!c),!c){c=e.ga;var u=e.Fa,d=e.P,A=e.qc,h=e.mb,p=e.nb,f=d+1,m=A-1,y=c.l;if(t(null!=u&&null!=h&&null!=n),mo[0]=null,mo[1]=ln,mo[2]=cn,mo[3]=un,c.ca=h,c.tb=p,c.c=n.width,c.i=n.height,t(0<c.c&&0<c.i),1>=A)n=0;else if(c.$a=3&u[d+0],c.Z=u[d+0]>>2&3,c.Lc=u[d+0]>>4&3,d=u[d+0]>>6&3,0>c.$a||1<c.$a||4<=c.Z||1<c.Lc||d)n=0;else if(y.put=he,y.ac=Ae,y.bc=pe,y.ma=c,y.width=n.width,y.height=n.height,y.Da=n.Da,y.v=n.v,y.va=n.va,y.j=n.j,y.o=n.o,c.$a)e:{t(1==c.$a),n=je();t:for(;;){if(null==n){n=0;break e}if(t(null!=c),c.mc=n,n.c=c.c,n.i=c.i,n.l=c.l,n.l.ma=c,n.l.width=c.c,n.l.height=c.i,n.a=0,g(n.m,u,f,m),!Ee(c.c,c.i,1,n,null))break t;if(1==n.ab&&3==n.gc[0].hc&&ke(n.s)?(c.ic=1,u=n.c*n.i,n.Ta=null,n.Ua=0,n.V=i(u),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(c.ic=0,n=Ne(n,c.c)),!n)break t;n=1;break e}c.mc=null,n=0}else n=m>=c.c*c.i;c=!n}if(c)return null;1!=e.ga.Lc?e.Ga=0:s=l-o}t(null!=e.ga),t(o+s<=l);e:{if(n=(u=e.ga).c,l=u.l.o,0==u.$a){if(f=e.rc,m=e.Vc,y=e.Fa,d=e.P+1+o*n,A=e.mb,h=e.nb+o*n,t(d<=e.P+e.qc),0!=u.Z)for(t(null!=mo[u.Z]),c=0;c<s;++c)mo[u.Z](f,m,y,d,A,h,n),f=A,m=h,h+=n,d+=n;else for(c=0;c<s;++c)r(A,h,y,d,n),f=A,m=h,h+=n,d+=n;e.rc=f,e.Vc=m}else{if(t(null!=u.mc),n=o+s,t(null!=(c=u.mc)),t(n<=c.i),c.C>=n)n=1;else if(u.ic||mn(),u.ic){u=c.V,f=c.Ba,m=c.c;var v=c.i,b=(y=1,d=c.$/m,A=c.$%m,h=c.m,p=c.s,c.$),w=m*v,x=m*n,_=p.wc,B=b<x?be(p,A,d):null;t(b<=w),t(n<=v),t(ke(p));t:for(;;){for(;!h.h&&b<x;){if(A&_||(B=be(p,A,d)),t(null!=B),C(h),256>(v=ye(B.G[0],B.H[0],h)))u[f+b]=v,++b,++A>=m&&(A=0,++d<=n&&!(d%16)&&Ce(c,d));else{if(!(280>v)){y=0;break t}v=me(v-256,h);var S,j=ye(B.G[4],B.H[4],h);if(C(h),!(b>=(j=ge(m,j=me(j,h)))&&w-b>=v)){y=0;break t}for(S=0;S<v;++S)u[f+b+S]=u[f+b+S-j];for(b+=v,A+=v;A>=m;)A-=m,++d<=n&&!(d%16)&&Ce(c,d);b<x&&A&_&&(B=be(p,A,d))}t(h.h==k(h))}Ce(c,d>n?n:d);break t}!y||h.h&&b<w?(y=0,c.a=h.h?5:3):c.$=b,n=y}else n=Be(c,c.V,c.Ba,c.c,c.i,n,Ie);if(!n){s=0;break e}}o+s>=l&&(e.Cc=1),s=1}if(!s)return null;if(e.Cc&&(null!=(s=e.ga)&&(s.mc=null),e.ga=null,0<e.Ga))return alert("todo:WebPDequantizeLevels"),null}return e.nb+o*a}function An(e,t,n,r,o,i){for(;0<o--;){var s,a=e,l=t+(n?1:0),c=e,u=t+(n?0:3);for(s=0;s<r;++s){var d=c[u+4*s];255!=d&&(d*=32897,a[l+4*s+0]=a[l+4*s+0]*d>>23,a[l+4*s+1]=a[l+4*s+1]*d>>23,a[l+4*s+2]=a[l+4*s+2]*d>>23)}t+=i}}function hn(e,t,n,r,o){for(;0<r--;){var i;for(i=0;i<n;++i){var s=e[t+2*i+0],a=15&(c=e[t+2*i+1]),l=4369*a,c=(240&c|c>>4)*l>>16;e[t+2*i+0]=(240&s|s>>4)*l>>16&240|(15&s|s<<4)*l>>16>>4&15,e[t+2*i+1]=240&c|a}t+=o}}function pn(e,t,n,r,o,i,s,a){var l,c,u=255;for(c=0;c<o;++c){for(l=0;l<r;++l){var d=e[t+l];i[s+4*l]=d,u&=d}t+=n,s+=a}return 255!=u}function fn(e,t,n,r,o){var i;for(i=0;i<o;++i)n[r+i]=e[t+i]>>8}function mn(){kr=An,_r=hn,Cr=pn,Br=fn}function gn(n,r,o){e[n]=function(e,n,i,s,a,l,c,u,d,A,h,p,f,m,g,y,v){var b,w=v-1>>1,x=a[l+0]|c[u+0]<<16,k=d[A+0]|h[p+0]<<16;t(null!=e);var _=3*x+k+131074>>2;for(r(e[n+0],255&_,_>>16,f,m),null!=i&&(_=3*k+x+131074>>2,r(i[s+0],255&_,_>>16,g,y)),b=1;b<=w;++b){var C=a[l+b]|c[u+b]<<16,B=d[A+b]|h[p+b]<<16,S=x+C+k+B+524296,j=S+2*(C+k)>>3;_=j+x>>1,x=(S=S+2*(x+B)>>3)+C>>1,r(e[n+2*b-1],255&_,_>>16,f,m+(2*b-1)*o),r(e[n+2*b-0],255&x,x>>16,f,m+(2*b-0)*o),null!=i&&(_=S+k>>1,x=j+B>>1,r(i[s+2*b-1],255&_,_>>16,g,y+(2*b-1)*o),r(i[s+2*b+0],255&x,x>>16,g,y+(2*b+0)*o)),x=C,k=B}1&v||(_=3*x+k+131074>>2,r(e[n+v-1],255&_,_>>16,f,m+(v-1)*o),null!=i&&(_=3*k+x+131074>>2,r(i[s+v-1],255&_,_>>16,g,y+(v-1)*o)))}}function yn(){go[Pr]=yo,go[Mr]=bo,go[Or]=vo,go[Dr]=wo,go[Ur]=xo,go[Rr]=ko,go[zr]=_o,go[Qr]=bo,go[Hr]=wo,go[qr]=xo,go[Vr]=ko}function vn(e){return e&~No?0>e?0:255:e>>Eo}function bn(e,t){return vn((19077*e>>8)+(26149*t>>8)-14234)}function wn(e,t,n){return vn((19077*e>>8)-(6419*t>>8)-(13320*n>>8)+8708)}function xn(e,t){return vn((19077*e>>8)+(33050*t>>8)-17685)}function kn(e,t,n,r,o){r[o+0]=bn(e,n),r[o+1]=wn(e,t,n),r[o+2]=xn(e,t)}function Cn(e,t,n,r,o){r[o+0]=xn(e,t),r[o+1]=wn(e,t,n),r[o+2]=bn(e,n)}function Bn(e,t,n,r,o){var i=wn(e,t,n);t=i<<3&224|xn(e,t)>>3,r[o+0]=248&bn(e,n)|i>>5,r[o+1]=t}function Sn(e,t,n,r,o){var i=240&xn(e,t)|15;r[o+0]=240&bn(e,n)|wn(e,t,n)>>4,r[o+1]=i}function jn(e,t,n,r,o){r[o+0]=255,kn(e,t,n,r,o+1)}function En(e,t,n,r,o){Cn(e,t,n,r,o),r[o+3]=255}function Nn(e,t,n,r,o){kn(e,t,n,r,o),r[o+3]=255}function In(t,n,r){e[t]=function(e,t,o,i,s,a,l,c,u){for(var d=c+(-2&u)*r;c!=d;)n(e[t+0],o[i+0],s[a+0],l,c),n(e[t+1],o[i+0],s[a+0],l,c+r),t+=2,++i,++a,c+=2*r;1&u&&n(e[t+0],o[i+0],s[a+0],l,c)}}function Fn(e,t,n){return 0==n?0==e?0==t?6:5:0==t?4:0:n}function Tn(e,t,n,r,o){switch(e>>>30){case 3:sr(t,n,r,o,0);break;case 2:ar(t,n,r,o);break;case 1:cr(t,n,r,o)}}function Ln(e,t){var n,i,s=t.M,a=t.Nb,l=e.oc,c=e.pc+40,u=e.oc,d=e.pc+584,A=e.oc,h=e.pc+600;for(n=0;16>n;++n)l[c+32*n-1]=129;for(n=0;8>n;++n)u[d+32*n-1]=129,A[h+32*n-1]=129;for(0<s?l[c-1-32]=u[d-1-32]=A[h-1-32]=129:(o(l,c-32-1,127,21),o(u,d-32-1,127,9),o(A,h-32-1,127,9)),i=0;i<e.za;++i){var p=t.ya[t.aa+i];if(0<i){for(n=-1;16>n;++n)r(l,c+32*n-4,l,c+32*n+12,4);for(n=-1;8>n;++n)r(u,d+32*n-4,u,d+32*n+4,4),r(A,h+32*n-4,A,h+32*n+4,4)}var f=e.Gd,m=e.Hd+i,g=p.ad,y=p.Hc;if(0<s&&(r(l,c-32,f[m].y,0,16),r(u,d-32,f[m].f,0,8),r(A,h-32,f[m].ea,0,8)),p.Za){var v=l,b=c-32+16;for(0<s&&(i>=e.za-1?o(v,b,f[m].y[15],4):r(v,b,f[m+1].y,0,4)),n=0;4>n;n++)v[b+128+n]=v[b+256+n]=v[b+384+n]=v[b+0+n];for(n=0;16>n;++n,y<<=2)v=l,b=c+Do[n],Ao[p.Ob[n]](v,b),Tn(y,g,16*+n,v,b)}else if(v=Fn(i,s,p.Ob[0]),uo[v](l,c),0!=y)for(n=0;16>n;++n,y<<=2)Tn(y,g,16*+n,l,c+Do[n]);for(n=p.Gc,v=Fn(i,s,p.Dd),ho[v](u,d),ho[v](A,h),y=g,v=u,b=d,255&(p=0|n)&&(170&p?lr(y,256,v,b):ur(y,256,v,b)),p=A,y=h,255&(n>>=8)&&(170&n?lr(g,320,p,y):ur(g,320,p,y)),s<e.Ub-1&&(r(f[m].y,0,l,c+480,16),r(f[m].f,0,u,d+224,8),r(f[m].ea,0,A,h+224,8)),n=8*a*e.B,f=e.sa,m=e.ta+16*i+16*a*e.R,g=e.qa,p=e.ra+8*i+n,y=e.Ha,v=e.Ia+8*i+n,n=0;16>n;++n)r(f,m+n*e.R,l,c+32*n,16);for(n=0;8>n;++n)r(g,p+n*e.B,u,d+32*n,8),r(y,v+n*e.B,A,h+32*n,8)}}function Pn(e,r,o,i,s,a,l,c,u){var d=[0],A=[0],h=0,p=null!=u?u.kd:0,f=null!=u?u:new nn;if(null==e||12>o)return 7;f.data=e,f.w=r,f.ha=o,r=[r],o=[o],f.gb=[f.gb];e:{var m=r,y=o,v=f.gb;if(t(null!=e),t(null!=y),t(null!=v),v[0]=0,12<=y[0]&&!n(e,m[0],"RIFF")){if(n(e,m[0]+8,"WEBP")){v=3;break e}var b=F(e,m[0]+4);if(12>b||4294967286<b){v=3;break e}if(p&&b>y[0]-8){v=7;break e}v[0]=b,m[0]+=12,y[0]-=12}v=0}if(0!=v)return v;for(b=0<f.gb[0],o=o[0];;){e:{var x=e;y=r,v=o;var k=d,_=A,C=m=[0];if((j=h=[h])[0]=0,8>v[0])v=7;else{if(!n(x,y[0],"VP8X")){if(10!=F(x,y[0]+4)){v=3;break e}if(18>v[0]){v=7;break e}var B=F(x,y[0]+8),S=1+I(x,y[0]+12);if(2147483648<=S*(x=1+I(x,y[0]+15))){v=3;break e}null!=C&&(C[0]=B),null!=k&&(k[0]=S),null!=_&&(_[0]=x),y[0]+=18,v[0]-=18,j[0]=1}v=0}}if(h=h[0],m=m[0],0!=v)return v;if(y=!!(2&m),!b&&h)return 3;if(null!=a&&(a[0]=!!(16&m)),null!=l&&(l[0]=y),null!=c&&(c[0]=0),l=d[0],m=A[0],h&&y&&null==u){v=0;break}if(4>o){v=7;break}if(b&&h||!b&&!h&&!n(e,r[0],"ALPH")){o=[o],f.na=[f.na],f.P=[f.P],f.Sa=[f.Sa];e:{B=e,v=r,b=o;var j=f.gb;k=f.na,_=f.P,C=f.Sa,S=22,t(null!=B),t(null!=b),x=v[0];var E=b[0];for(t(null!=k),t(null!=C),k[0]=null,_[0]=null,C[0]=0;;){if(v[0]=x,b[0]=E,8>E){v=7;break e}var N=F(B,x+4);if(4294967286<N){v=3;break e}var T=8+N+1&-2;if(S+=T,0<j&&S>j){v=3;break e}if(!n(B,x,"VP8 ")||!n(B,x,"VP8L")){v=0;break e}if(E[0]<T){v=7;break e}n(B,x,"ALPH")||(k[0]=B,_[0]=x+8,C[0]=N),x+=T,E-=T}}if(o=o[0],f.na=f.na[0],f.P=f.P[0],f.Sa=f.Sa[0],0!=v)break}o=[o],f.Ja=[f.Ja],f.xa=[f.xa];e:if(j=e,v=r,b=o,k=f.gb[0],_=f.Ja,C=f.xa,B=v[0],x=!n(j,B,"VP8 "),S=!n(j,B,"VP8L"),t(null!=j),t(null!=b),t(null!=_),t(null!=C),8>b[0])v=7;else{if(x||S){if(j=F(j,B+4),12<=k&&j>k-12){v=3;break e}if(p&&j>b[0]-8){v=7;break e}_[0]=j,v[0]+=8,b[0]-=8,C[0]=S}else C[0]=5<=b[0]&&47==j[B+0]&&!(j[B+4]>>5),_[0]=b[0];v=0}if(o=o[0],f.Ja=f.Ja[0],f.xa=f.xa[0],r=r[0],0!=v)break;if(4294967286<f.Ja)return 3;if(null==c||y||(c[0]=f.xa?2:1),l=[l],m=[m],f.xa){if(5>o){v=7;break}c=l,p=m,y=a,null==e||5>o?e=0:5<=o&&47==e[r+0]&&!(e[r+4]>>5)?(b=[0],j=[0],k=[0],g(_=new w,e,r,o),fe(_,b,j,k)?(null!=c&&(c[0]=b[0]),null!=p&&(p[0]=j[0]),null!=y&&(y[0]=k[0]),e=1):e=0):e=0}else{if(10>o){v=7;break}c=m,null==e||10>o||!$e(e,r+3,o-3)?e=0:(p=e[r+0]|e[r+1]<<8|e[r+2]<<16,y=16383&(e[r+7]<<8|e[r+6]),e=16383&(e[r+9]<<8|e[r+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=f.Ja||!y||!e?e=0:(l&&(l[0]=y),c&&(c[0]=e),e=1))}if(!e)return 3;if(l=l[0],m=m[0],h&&(d[0]!=l||A[0]!=m))return 3;null!=u&&(u[0]=f,u.offset=r-u.w,t(4294967286>r-u.w),t(u.offset==u.ha-o));break}return 0==v||7==v&&h&&null==u?(null!=a&&(a[0]|=null!=f.na&&0<f.na.length),null!=i&&(i[0]=l),null!=s&&(s[0]=m),0):v}function Mn(e,t,n){var r=t.width,o=t.height,i=0,s=0,a=r,l=o;if(t.Da=null!=e&&0<e.Da,t.Da&&(a=e.cd,l=e.bd,i=e.v,s=e.j,11>n||(i&=-2,s&=-2),0>i||0>s||0>=a||0>=l||i+a>r||s+l>o))return 0;if(t.v=i,t.j=s,t.va=i+a,t.o=s+l,t.U=a,t.T=l,t.da=null!=e&&0<e.da,t.da){if(!M(a,l,n=[e.ib],i=[e.hb]))return 0;t.ib=n[0],t.hb=i[0]}return t.ob=null!=e&&e.ob,t.Kb=null==e||!e.Sd,t.da&&(t.ob=t.ib<3*r/4&&t.hb<3*o/4,t.Kb=0),1}function On(e){if(null==e)return 2;if(11>e.S){var t=e.f.RGBA;t.fb+=(e.height-1)*t.A,t.A=-t.A}else t=e.f.kb,e=e.height,t.O+=(e-1)*t.fa,t.fa=-t.fa,t.N+=(e-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(e-1>>1)*t.Db,t.Db=-t.Db,null!=t.F&&(t.J+=(e-1)*t.lb,t.lb=-t.lb);return 0}function Dn(e,t,n,r){if(null==r||0>=e||0>=t)return 2;if(null!=n){if(n.Da){var o=n.cd,s=n.bd,a=-2&n.v,l=-2&n.j;if(0>a||0>l||0>=o||0>=s||a+o>e||l+s>t)return 2;e=o,t=s}if(n.da){if(!M(e,t,o=[n.ib],s=[n.hb]))return 2;e=o[0],t=s[0]}}r.width=e,r.height=t;e:{var c=r.width,u=r.height;if(e=r.S,0>=c||0>=u||!(e>=Pr&&13>e))e=2;else{if(0>=r.Rd&&null==r.sd){a=s=o=t=0;var d=(l=c*zo[e])*u;if(11>e||(s=(u+1)/2*(t=(c+1)/2),12==e&&(a=(o=c)*u)),null==(u=i(d+2*s+a))){e=1;break e}r.sd=u,11>e?((c=r.f.RGBA).eb=u,c.fb=0,c.A=l,c.size=d):((c=r.f.kb).y=u,c.O=0,c.fa=l,c.Fd=d,c.f=u,c.N=0+d,c.Ab=t,c.Cd=s,c.ea=u,c.W=0+d+s,c.Db=t,c.Ed=s,12==e&&(c.F=u,c.J=0+d+2*s),c.Tc=a,c.lb=o)}if(t=1,o=r.S,s=r.width,a=r.height,o>=Pr&&13>o)if(11>o)e=r.f.RGBA,t&=(l=Math.abs(e.A))*(a-1)+s<=e.size,t&=l>=s*zo[o],t&=null!=e.eb;else{e=r.f.kb,l=(s+1)/2,d=(a+1)/2,c=Math.abs(e.fa),u=Math.abs(e.Ab);var A=Math.abs(e.Db),h=Math.abs(e.lb),p=h*(a-1)+s;t&=c*(a-1)+s<=e.Fd,t&=u*(d-1)+l<=e.Cd,t=(t&=A*(d-1)+l<=e.Ed)&c>=s&u>=l&A>=l,t&=null!=e.y,t&=null!=e.f,t&=null!=e.ea,12==o&&(t&=h>=s,t&=p<=e.Tc,t&=null!=e.F)}else t=0;e=t?0:2}}return 0!=e||null!=n&&n.fd&&(e=On(r)),e}var Un=64,Rn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],zn=24,Qn=32,Hn=8,qn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];U("Predictor0","PredictorAdd0"),e.Predictor0=function(){return 4278190080},e.Predictor1=function(e){return e},e.Predictor2=function(e,t,n){return t[n+0]},e.Predictor3=function(e,t,n){return t[n+1]},e.Predictor4=function(e,t,n){return t[n-1]},e.Predictor5=function(e,t,n){return z(z(e,t[n+1]),t[n+0])},e.Predictor6=function(e,t,n){return z(e,t[n-1])},e.Predictor7=function(e,t,n){return z(e,t[n+0])},e.Predictor8=function(e,t,n){return z(t[n-1],t[n+0])},e.Predictor9=function(e,t,n){return z(t[n+0],t[n+1])},e.Predictor10=function(e,t,n){return z(z(e,t[n-1]),z(t[n+0],t[n+1]))},e.Predictor11=function(e,t,n){var r=t[n+0];return 0>=q(r>>24&255,e>>24&255,(t=t[n-1])>>24&255)+q(r>>16&255,e>>16&255,t>>16&255)+q(r>>8&255,e>>8&255,t>>8&255)+q(255&r,255&e,255&t)?r:e},e.Predictor12=function(e,t,n){var r=t[n+0];return(Q((e>>24&255)+(r>>24&255)-((t=t[n-1])>>24&255))<<24|Q((e>>16&255)+(r>>16&255)-(t>>16&255))<<16|Q((e>>8&255)+(r>>8&255)-(t>>8&255))<<8|Q((255&e)+(255&r)-(255&t)))>>>0},e.Predictor13=function(e,t,n){var r=t[n-1];return(H((e=z(e,t[n+0]))>>24&255,r>>24&255)<<24|H(e>>16&255,r>>16&255)<<16|H(e>>8&255,r>>8&255)<<8|H(255&e,255&r))>>>0};var Vn=e.PredictorAdd0;e.PredictorAdd1=V,U("Predictor2","PredictorAdd2"),U("Predictor3","PredictorAdd3"),U("Predictor4","PredictorAdd4"),U("Predictor5","PredictorAdd5"),U("Predictor6","PredictorAdd6"),U("Predictor7","PredictorAdd7"),U("Predictor8","PredictorAdd8"),U("Predictor9","PredictorAdd9"),U("Predictor10","PredictorAdd10"),U("Predictor11","PredictorAdd11"),U("Predictor12","PredictorAdd12"),U("Predictor13","PredictorAdd13");var Kn=e.PredictorAdd2;$("ColorIndexInverseTransform","MapARGB","32b",function(e){return e>>8&255},function(e){return e}),$("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(e){return e},function(e){return e>>8&255});var Wn,Gn=e.ColorIndexInverseTransform,$n=e.MapARGB,Yn=e.VP8LColorIndexInverseTransformAlpha,Zn=e.MapAlpha,Xn=e.VP8LPredictorsAdd=[];Xn.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var Jn,er,tr,nr,rr,or,ir,sr,ar,lr,cr,ur,dr,Ar,hr,pr,fr,mr,gr,yr,vr,br,wr,xr,kr,_r,Cr,Br,_n=i(511),Sr=i(2041),jr=i(225),Er=i(767),Nr=0,Ir=Sr,Fr=jr,Tr=Er,Lr=_n,Pr=0,Mr=1,Or=2,Dr=3,Ur=4,Rr=5,zr=6,Qr=7,Hr=8,qr=9,Vr=10,Kr=[2,3,7],Wr=[3,3,11],Gr=[280,256,256,256,40],$r=[0,1,1,1,0],Yr=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Zr=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Xr=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Jr=8,eo=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],to=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],no=null,ro=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],oo=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],io=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],so=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],ao=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],lo=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],co=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],uo=[],Ao=[],ho=[],po=1,fo=2,mo=[],go=[];gn("UpsampleRgbLinePair",kn,3),gn("UpsampleBgrLinePair",Cn,3),gn("UpsampleRgbaLinePair",Nn,4),gn("UpsampleBgraLinePair",En,4),gn("UpsampleArgbLinePair",jn,4),gn("UpsampleRgba4444LinePair",Sn,2),gn("UpsampleRgb565LinePair",Bn,2);var yo=e.UpsampleRgbLinePair,vo=e.UpsampleBgrLinePair,bo=e.UpsampleRgbaLinePair,wo=e.UpsampleBgraLinePair,xo=e.UpsampleArgbLinePair,ko=e.UpsampleRgba4444LinePair,_o=e.UpsampleRgb565LinePair,Co=16,Bo=1<<Co-1,So=-227,jo=482,Eo=6,No=(256<<Eo)-1,Io=0,Fo=i(256),To=i(256),Lo=i(256),Po=i(256),Mo=i(jo-So),Oo=i(jo-So);In("YuvToRgbRow",kn,3),In("YuvToBgrRow",Cn,3),In("YuvToRgbaRow",Nn,4),In("YuvToBgraRow",En,4),In("YuvToArgbRow",jn,4),In("YuvToRgba4444Row",Sn,2),In("YuvToRgb565Row",Bn,2);var Do=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Uo=[0,2,8],Ro=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(e,n,a,l,c){var u=Mr,d=new tn,A=new se;d.ba=A,A.S=u,A.width=[A.width],A.height=[A.height];var h=A.width,p=A.height,f=new ae;if(null==f||null==e)var m=2;else t(null!=f),m=Pn(e,n,a,f.width,f.height,f.Pd,f.Qd,f.format,null);if(0!=m?h=0:(null!=h&&(h[0]=f.width[0]),null!=p&&(p[0]=f.height[0]),h=1),h){A.width=A.width[0],A.height=A.height[0],null!=l&&(l[0]=A.width),null!=c&&(c[0]=A.height);e:{if(l=new Ke,(c=new nn).data=e,c.w=n,c.ha=a,c.kd=1,n=[0],t(null!=c),(0==(e=Pn(c.data,c.w,c.ha,null,null,null,n,null,c))||7==e)&&n[0]&&(e=4),0==(n=e)){if(t(null!=d),l.data=c.data,l.w=c.w+c.offset,l.ha=c.ha-c.offset,l.put=he,l.ac=Ae,l.bc=pe,l.ma=d,c.xa){if(null==(e=je())){d=1;break e}if(function(e,n){var r=[0],o=[0],i=[0];t:for(;;){if(null==e)return 0;if(null==n)return e.a=2,0;if(e.l=n,e.a=0,g(e.m,n.data,n.w,n.ha),!fe(e.m,r,o,i)){e.a=3;break t}if(e.xb=fo,n.width=r[0],n.height=o[0],!Ee(r[0],o[0],1,e,null))break t;return 1}return t(0!=e.a),0}(e,l)){if(l=0==(n=Dn(l.width,l.height,d.Oa,d.ba))){t:{l=e;n:for(;;){if(null==l){l=0;break t}if(t(null!=l.s.yc),t(null!=l.s.Ya),t(0<l.s.Wb),t(null!=(a=l.l)),t(null!=(c=a.ma)),0!=l.xb){if(l.ca=c.ba,l.tb=c.tb,t(null!=l.ca),!Mn(c.Oa,a,Dr)){l.a=2;break n}if(!Ne(l,a.width))break n;if(a.da)break n;if((a.da||re(l.ca.S))&&mn(),11>l.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=l.ca.f.kb.F&&mn()),l.Pb&&0<l.s.ua&&null==l.s.vb.X&&!T(l.s.vb,l.s.Wa.Xa)){l.a=1;break n}l.xb=0}if(!Be(l,l.V,l.Ba,l.c,l.i,a.o,xe))break n;c.Dc=l.Ma,l=1;break t}t(0!=l.a),l=0}l=!l}l&&(n=e.a)}else n=e.a}else{if(null==(e=new We)){d=1;break e}if(e.Fa=c.na,e.P=c.P,e.qc=c.Sa,Ye(e,l)){if(0==(n=Dn(l.width,l.height,d.Oa,d.ba))){if(e.Aa=0,a=d.Oa,t(null!=(c=e)),null!=a){if(0<(h=0>(h=a.Md)?0:100<h?255:255*h/100)){for(p=f=0;4>p;++p)12>(m=c.pb[p]).lc&&(m.ia=h*Ro[0>m.lc?0:m.lc]>>3),f|=m.ia;f&&(alert("todo:VP8InitRandom"),c.ia=1)}c.Ga=a.Id,100<c.Ga?c.Ga=100:0>c.Ga&&(c.Ga=0)}(function(e,n){if(null==e)return 0;if(null==n)return Ge(e,2,"NULL VP8Io parameter in VP8Decode().");if(!e.cb&&!Ye(e,n))return 0;if(t(e.cb),null==n.ac||n.ac(n)){n.ob&&(e.L=0);var a=Uo[e.L];if(2==e.L?(e.yb=0,e.zb=0):(e.yb=n.v-a>>4,e.zb=n.j-a>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=n.o+15+a>>4,e.Hb=n.va+15+a>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var l=e.ed;for(a=0;4>a;++a){var c;if(e.Qa.Cb){var u=e.Qa.Lb[a];e.Qa.Fb||(u+=l.Tb)}else u=l.Tb;for(c=0;1>=c;++c){var d=e.gd[a][c],A=u;if(l.Pc&&(A+=l.vd[0],c&&(A+=l.od[0])),0<(A=0>A?0:63<A?63:A)){var h=A;0<l.wb&&(h=4<l.wb?h>>2:h>>1)>9-l.wb&&(h=9-l.wb),1>h&&(h=1),d.dd=h,d.tc=2*A+h,d.ld=40<=A?2:15<=A?1:0}else d.tc=0;d.La=c}}}a=0}else Ge(e,6,"Frame setup failed"),a=e.a;if(a=0==a){if(a){e.$c=0,0<e.Aa||(e.Ic=1);t:{a=e.Ic,l=4*(h=e.za);var p=32*h,f=h+1,m=0<e.L?h*(0<e.Aa?2:1):0,g=(2==e.Aa?2:1)*h;if((d=l+832+(c=3*(16*a+Uo[e.L])/2*p)+(u=null!=e.Fa&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=d)a=0;else{if(d>e.Vb){if(e.Vb=0,e.Ec=i(d),e.Fc=0,null==e.Ec){a=Ge(e,1,"no memory during frame initialization.");break t}e.Vb=d}d=e.Ec,A=e.Fc,e.Ac=d,e.Bc=A,A+=l,e.Gd=s(p,He),e.Hd=0,e.rb=s(f+1,Ue),e.sb=1,e.wa=m?s(m,De):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=h),t(!0),e.oc=d,e.pc=A,A+=832,e.ya=s(g,ze),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,2==e.Aa&&(e.D.aa+=h),e.R=16*h,e.B=8*h,h=(p=Uo[e.L])*e.R,p=p/2*e.B,e.sa=d,e.ta=A+h,e.qa=e.sa,e.ra=e.ta+16*a*e.R+p,e.Ha=e.qa,e.Ia=e.ra+8*a*e.B+p,e.$c=0,A+=c,e.mb=u?d:null,e.nb=u?A:null,t(A+u<=e.Fc+e.Vb),Xe(e),o(e.Ac,e.Bc,0,l),a=1}}if(a){if(n.ka=0,n.y=e.sa,n.O=e.ta,n.f=e.qa,n.N=e.ra,n.ea=e.Ha,n.Vd=e.Ia,n.fa=e.R,n.Rc=e.B,n.F=null,n.J=0,!Nr){for(a=-255;255>=a;++a)_n[255+a]=0>a?-a:a;for(a=-1020;1020>=a;++a)Sr[1020+a]=-128>a?-128:127<a?127:a;for(a=-112;112>=a;++a)jr[112+a]=-16>a?-16:15<a?15:a;for(a=-255;510>=a;++a)Er[255+a]=0>a?0:255<a?255:a;Nr=1}ir=lt,sr=ot,lr=it,cr=st,ur=at,ar=rt,dr=Wt,Ar=Gt,hr=Zt,pr=Xt,fr=$t,mr=Yt,gr=Jt,yr=en,vr=zt,br=Qt,wr=Ht,xr=qt,Ao[0]=kt,Ao[1]=ut,Ao[2]=wt,Ao[3]=xt,Ao[4]=_t,Ao[5]=Bt,Ao[6]=Ct,Ao[7]=St,Ao[8]=Et,Ao[9]=jt,uo[0]=mt,uo[1]=At,uo[2]=ht,uo[3]=pt,uo[4]=gt,uo[5]=yt,uo[6]=vt,ho[0]=Tt,ho[1]=dt,ho[2]=Nt,ho[3]=It,ho[4]=Pt,ho[5]=Lt,ho[6]=Mt,a=1}else a=0}a&&(a=function(e,n){for(e.M=0;e.M<e.Va;++e.M){var s,a=e.Jc[e.M&e.Xb],l=e.m,c=e;for(s=0;s<c.za;++s){var u=l,d=c,A=d.Ac,h=d.Bc+4*s,p=d.zc,f=d.ya[d.aa+s];if(d.Qa.Bb?f.$b=j(u,d.Pa.jb[0])?2+j(u,d.Pa.jb[2]):j(u,d.Pa.jb[1]):f.$b=0,d.kc&&(f.Ad=j(u,d.Bd)),f.Za=!j(u,145)+0,f.Za){var m=f.Ob,g=0;for(d=0;4>d;++d){var y,v=p[0+d];for(y=0;4>y;++y){v=ao[A[h+y]][v];for(var b=io[j(u,v[0])];0<b;)b=io[2*b+j(u,v[b])];v=-b,A[h+y]=v}r(m,g,A,h,4),g+=4,p[0+d]=v}}else v=j(u,156)?j(u,128)?1:3:j(u,163)?2:0,f.Ob[0]=v,o(A,h,v,4),o(p,0,v,4);f.Dd=j(u,142)?j(u,114)?j(u,183)?1:3:2:0}if(c.m.Ka)return Ge(e,7,"Premature end-of-partition0 encountered.");for(;e.ja<e.za;++e.ja){if(c=a,u=(l=e).rb[l.sb-1],A=l.rb[l.sb+l.ja],s=l.ya[l.aa+l.ja],h=l.kc?s.Ad:0)u.la=A.la=0,s.Za||(u.Na=A.Na=0),s.Hc=0,s.Gc=0,s.ia=0;else{var w,x;if(u=A,A=c,h=l.Pa.Xc,p=l.ya[l.aa+l.ja],f=l.pb[p.$b],d=p.ad,m=0,g=l.rb[l.sb-1],v=y=0,o(d,m,0,384),p.Za)var k=0,_=h[3];else{b=i(16);var C=u.Na+g.Na;if(C=no(A,h[1],C,f.Eb,0,b,0),u.Na=g.Na=(0<C)+0,1<C)ir(b,0,d,m);else{var B=b[0]+3>>3;for(b=0;256>b;b+=16)d[m+b]=B}k=1,_=h[0]}var S=15&u.la,E=15&g.la;for(b=0;4>b;++b){var N=1&E;for(B=x=0;4>B;++B)S=S>>1|(N=(C=no(A,_,C=N+(1&S),f.Sc,k,d,m))>k)<<7,x=x<<2|(3<C?3:1<C?2:0!=d[m+0]),m+=16;S>>=4,E=E>>1|N<<7,y=(y<<8|x)>>>0}for(_=S,k=E>>4,w=0;4>w;w+=2){for(x=0,S=u.la>>4+w,E=g.la>>4+w,b=0;2>b;++b){for(N=1&E,B=0;2>B;++B)C=N+(1&S),S=S>>1|(N=0<(C=no(A,h[2],C,f.Qc,0,d,m)))<<3,x=x<<2|(3<C?3:1<C?2:0!=d[m+0]),m+=16;S>>=2,E=E>>1|N<<5}v|=x<<4*w,_|=S<<4<<w,k|=(240&E)<<w}u.la=_,g.la=k,p.Hc=y,p.Gc=v,p.ia=43690&v?0:f.ia,h=!(y|v)}if(0<l.L&&(l.wa[l.Y+l.ja]=l.gd[s.$b][s.Za],l.wa[l.Y+l.ja].La|=!h),c.Ka)return Ge(e,7,"Premature end-of-file encountered.")}if(Xe(e),l=n,c=1,s=(a=e).D,u=0<a.L&&a.M>=a.zb&&a.M<=a.Va,0==a.Aa)t:{if(s.M=a.M,s.uc=u,Ln(a,s),c=1,s=(x=a.D).Nb,u=(v=Uo[a.L])*a.R,A=v/2*a.B,b=16*s*a.R,B=8*s*a.B,h=a.sa,p=a.ta-u+b,f=a.qa,d=a.ra-A+B,m=a.Ha,g=a.Ia-A+B,E=0==(S=x.M),y=S>=a.Va-1,2==a.Aa&&Ln(a,x),x.uc)for(N=(C=a).D.M,t(C.D.uc),x=C.yb;x<C.Hb;++x){k=x,_=N;var I=(F=(z=C).D).Nb;w=z.R;var F=F.wa[F.Y+k],T=z.sa,L=z.ta+16*I*w+16*k,P=F.dd,M=F.tc;if(0!=M)if(t(3<=M),1==z.L)0<k&&br(T,L,w,M+4),F.La&&xr(T,L,w,M),0<_&&vr(T,L,w,M+4),F.La&&wr(T,L,w,M);else{var O=z.B,D=z.qa,U=z.ra+8*I*O+8*k,R=z.Ha,z=z.Ia+8*I*O+8*k;I=F.ld,0<k&&(Ar(T,L,w,M+4,P,I),pr(D,U,R,z,O,M+4,P,I)),F.La&&(mr(T,L,w,M,P,I),yr(D,U,R,z,O,M,P,I)),0<_&&(dr(T,L,w,M+4,P,I),hr(D,U,R,z,O,M+4,P,I)),F.La&&(fr(T,L,w,M,P,I),gr(D,U,R,z,O,M,P,I))}}if(a.ia&&alert("todo:DitherRow"),null!=l.put){if(x=16*S,S=16*(S+1),E?(l.y=a.sa,l.O=a.ta+b,l.f=a.qa,l.N=a.ra+B,l.ea=a.Ha,l.W=a.Ia+B):(x-=v,l.y=h,l.O=p,l.f=f,l.N=d,l.ea=m,l.W=g),y||(S-=v),S>l.o&&(S=l.o),l.F=null,l.J=null,null!=a.Fa&&0<a.Fa.length&&x<S&&(l.J=dn(a,l,x,S-x),l.F=a.mb,null==l.F&&0==l.F.length)){c=Ge(a,3,"Could not decode alpha data.");break t}x<l.j&&(v=l.j-x,x=l.j,t(!(1&v)),l.O+=a.R*v,l.N+=a.B*(v>>1),l.W+=a.B*(v>>1),null!=l.F&&(l.J+=l.width*v)),x<S&&(l.O+=l.v,l.N+=l.v>>1,l.W+=l.v>>1,null!=l.F&&(l.J+=l.v),l.ka=x-l.j,l.U=l.va-l.v,l.T=S-x,c=l.put(l))}s+1!=a.Ic||y||(r(a.sa,a.ta-u,h,p+16*a.R,u),r(a.qa,a.ra-A,f,d+8*a.B,A),r(a.Ha,a.Ia-A,m,g+8*a.B,A))}if(!c)return Ge(e,6,"Output aborted.")}return 1}(e,n)),null!=n.bc&&n.bc(n),a&=1}return a?(e.cb=0,a):0})(e,l)||(n=e.a)}}else n=e.a}0==n&&null!=d.Oa&&d.Oa.fd&&(n=On(d.ba))}d=n}u=0!=d?null:11>u?A.f.RGBA.eb:A.f.kb.y}else u=null;return u};var zo=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(e,t){for(var n="",r=0;r<4;r++)n+=String.fromCharCode(e[t++]);return n}function u(e,t){return e[t+0]|e[t+1]<<8}function d(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16)>>>0}function A(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new l;var h=[0],p=[0],f=[],m=new l,g=e,y=function(e,t){var n={},r=0,o=!1,i=0,s=0;if(n.frames=[],!function(e,t){for(var n=0;n<4;n++)if(e[t+n]!="RIFF".charCodeAt(n))return!0;return!1}(e,t)){for(A(e,t+=4),t+=8;t<e.length;){var a=c(e,t),l=A(e,t+=4);t+=4;var h=l+(1&l);switch(a){case"VP8 ":case"VP8L":void 0===n.frames[r]&&(n.frames[r]={}),(m=n.frames[r]).src_off=o?s:t-8,m.src_size=i+l+8,r++,o&&(o=!1,i=0,s=0);break;case"VP8X":(m=n.header={}).feature_flags=e[t];var p=t+4;m.canvas_width=1+d(e,p),p+=3,m.canvas_height=1+d(e,p),p+=3;break;case"ALPH":o=!0,i=h+8,s=t-8;break;case"ANIM":(m=n.header).bgcolor=A(e,t),p=t+4,m.loop_count=u(e,p),p+=2;break;case"ANMF":var f,m;(m=n.frames[r]={}).offset_x=2*d(e,t),t+=3,m.offset_y=2*d(e,t),t+=3,m.width=1+d(e,t),t+=3,m.height=1+d(e,t),t+=3,m.duration=d(e,t),t+=3,f=e[t++],m.dispose=1&f,m.blend=f>>1&1}"ANMF"!=a&&(t+=h)}return n}}(g,0);y.response=g,y.rgbaoutput=!0,y.dataurl=!1;var v=y.header?y.header:null,b=y.frames?y.frames:null;if(v){v.loop_counter=v.loop_count,h=[v.canvas_height],p=[v.canvas_width];for(var w=0;w<b.length&&0!=b[w].blend;w++);}var x=b[0],k=m.WebPDecodeRGBA(g,x.src_off,x.src_size,p,h);x.rgba=k,x.imgwidth=p[0],x.imgheight=h[0];for(var _=0;_<p[0]*h[0]*4;_++)f[_]=k[_];return this.width=p,this.height=h,this.data=f,this}function S$(){var e,t=this.internal.__metadata__.metadata,n=unescape(encodeURIComponent(t));e=this.internal.__metadata__.rawXml?n:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+e.length+" >>"),this.internal.write("stream"),this.internal.write(e),this.internal.write("endstream"),this.internal.write("endobj")}function j$(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}!function(e){var t,n,r,o,i,s,a,l,c,u=function(e){return e=e||{},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||"#000000",this.fillStyle=e.fillStyle||"#000000",this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||"10px sans-serif",this.textBaseline=e.textBaseline||"alphabetic",this.textAlign=e.textAlign||"left",this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||"miter",this.lineCap=e.lineCap||"butt",this.path=e.path||[],this.transform=void 0!==e.transform?e.transform.clone():new l,this.globalCompositeOperation=e.globalCompositeOperation||"normal",this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new s,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new s,this.lineDashOffset=e.lineDashOffset||0,this.lineDash=e.lineDash||[],this.margin=e.margin||[0,0,0,0],this.prevPageLastElemOffset=e.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof e.ignoreClearRect||e.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new d(this),t=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,s=this.internal.Point,a=this.internal.Rectangle,l=this.internal.Matrix,c=new u}]);var d=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=e;Object.defineProperty(this,"pdf",{get:function(){return t}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(e){n=Boolean(e)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(e){r=Boolean(e)}});var o=0;Object.defineProperty(this,"posX",{get:function(){return o},set:function(e){isNaN(e)||(o=e)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(e){isNaN(e)||(i=e)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(e){var t;"number"==typeof e?t=[e,e,e,e]:((t=new Array(4))[0]=e[0],t[1]=e.length>=2?e[1]:t[0],t[2]=e.length>=3?e[2]:t[0],t[3]=e.length>=4?e[3]:t[1]),c.margin=t}});var s=!1;Object.defineProperty(this,"autoPaging",{get:function(){return s},set:function(e){s=e}});var a=0;Object.defineProperty(this,"lastBreak",{get:function(){return a},set:function(e){a=e}});var l=[];Object.defineProperty(this,"pageBreaks",{get:function(){return l},set:function(e){l=e}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(e){e instanceof u&&(c=e)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(e){c.path=e}});var d=[];Object.defineProperty(this,"ctxStack",{get:function(){return d},set:function(e){d=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=A(e),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=A(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){-1!==["butt","round","square"].indexOf(e)&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){-1!==["bevel","round","miter"].indexOf(e)&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){-1!==["right","end","center","left","start"].indexOf(e)&&(this.ctx.textAlign=e)}});var h=null,p=null,f=null;Object.defineProperty(this,"fontFaces",{get:function(){return f},set:function(e){h=null,p=null,f=e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(e))){var n=t[1];t[2];var r=t[3],o=t[4];t[5];var i=t[6],s=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(o)[2];o="px"===s?Math.floor(parseFloat(o)*this.pdf.internal.scaleFactor):"em"===s?Math.floor(parseFloat(o)*this.pdf.getFontSize()):Math.floor(parseFloat(o)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(o);var a=function(e){var t,n,r=[],o=e.trim();if(""===o)return u$;if(o in e$)return[e$[o]];for(;""!==o;){switch(n=null,t=(o=n$(o)).charAt(0)){case'"':case"'":n=r$(o.substring(1),t);break;default:n=o$(o)}if(null===n)return u$;if(r.push(n[0]),""!==(o=n$(n[1]))&&","!==o.charAt(0))return u$;o=o.replace(/^,/,"")}return r}(i);if(this.fontFaces){var l=function(e,t){var n=e.getFontList(),r=JSON.stringify(n);if(null===h||p!==r){var o=function(e){var t=[];return Object.keys(e).forEach(function(n){e[n].forEach(function(e){var r=null;switch(e){case"bold":r={family:n,weight:"bold"};break;case"italic":r={family:n,style:"italic"};break;case"bolditalic":r={family:n,weight:"bold",style:"italic"};break;case"":case"normal":r={family:n}}null!==r&&(r.ref={name:n,style:e},t.push(r))})}),t}(n);h=function(e){for(var t={},n=0;n<e.length;++n){var r=ZG(e[n]),o=r.family,i=r.stretch,s=r.style,a=r.weight;t[o]=t[o]||{},t[o][i]=t[o][i]||{},t[o][i][s]=t[o][i][s]||{},t[o][i][s][a]=r}return t}(o.concat(t)),p=r}return h}(this.pdf,this.fontFaces),c=a.map(function(e){return{family:e,stretch:"normal",weight:r,style:n}}),u=function(e,t,n){for(var r=(n=n||{}).defaultFontFamily||"times",o=Object.assign({},JG,n.genericFontFamilies||{}),i=null,s=null,a=0;a<t.length;++a)if(o[(i=ZG(t[a])).family]&&(i.family=o[i.family]),e.hasOwnProperty(i.family)){s=e[i.family];break}if(!(s=s||e[r]))throw new Error("Could not find a font-family for the rule '"+t$(i)+"' and default family '"+r+"'.");if(s=function(e,t){if(t[e])return t[e];var n=GG[e],r=n<=GG.normal?-1:1,o=XG(t,WG,n,r);if(!o)throw new Error("Could not find a matching font-stretch value for "+e);return o}(i.stretch,s),s=function(e,t){if(t[e])return t[e];for(var n=KG[e],r=0;r<n.length;++r)if(t[n[r]])return t[n[r]];throw new Error("Could not find a matching font-style for "+e)}(i.style,s),!(s=function(e,t){if(t[e])return t[e];if(400===e&&t[500])return t[500];if(500===e&&t[400])return t[400];var n=YG[e],r=XG(t,$G,n,e<400?-1:1);if(!r)throw new Error("Could not find a matching font-weight for value "+e);return r}(i.weight,s)))throw new Error("Failed to resolve a font for the rule '"+t$(i)+"'.");return s}(l,c);this.pdf.setFont(u.ref.name,u.ref.style)}else{var d="";("bold"===r||parseInt(r,10)>=700||"bold"===n)&&(d="bold"),"italic"===n&&(d+="italic"),0===d.length&&(d="normal");for(var A="",f={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},m=0;m<a.length;m++){if(void 0!==this.pdf.internal.getFont(a[m],d,{noFallback:!0,disableWarning:!0})){A=a[m];break}if("bolditalic"===d&&void 0!==this.pdf.internal.getFont(a[m],"bold",{noFallback:!0,disableWarning:!0}))A=a[m],d="bold";else if(void 0!==this.pdf.internal.getFont(a[m],"normal",{noFallback:!0,disableWarning:!0})){A=a[m],d="normal";break}}if(""===A)for(var g=0;g<a.length;g++)if(f[a[g]]){A=f[a[g]];break}A=""===A?"Times":A,this.pdf.setFont(A,d)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(e){this.ctx.lineDashOffset=e,O.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(e){this.ctx.lineDash=e,O.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=Boolean(e)}})};d.prototype.setLineDash=function(e){this.lineDash=e},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){b.call(this,"fill",!1)},d.prototype.stroke=function(){b.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw BW.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(e,t)},d.prototype.closePath=function(){var e=new s(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===(0,OQ.A)(this.path[t+1])&&"number"==typeof this.path[t+1].x){e=new s(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(e.x,e.y)},d.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw BW.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(n.x,n.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),b.call(this,null,!0)},d.prototype.quadraticCurveTo=function(e,t,n,r){if(isNaN(n)||isNaN(r)||isNaN(e)||isNaN(t))throw BW.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var o=this.ctx.transform.applyToPoint(new s(n,r)),i=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"qct",x1:i.x,y1:i.y,x:o.x,y:o.y}),this.ctx.lastPoint=new s(o.x,o.y)},d.prototype.bezierCurveTo=function(e,t,n,r,o,i){if(isNaN(o)||isNaN(i)||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw BW.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var a=this.ctx.transform.applyToPoint(new s(o,i)),l=this.ctx.transform.applyToPoint(new s(e,t)),c=this.ctx.transform.applyToPoint(new s(n,r));this.path.push({type:"bct",x1:l.x,y1:l.y,x2:c.x,y2:c.y,x:a.x,y:a.y}),this.ctx.lastPoint=new s(a.x,a.y)},d.prototype.arc=function(e,t,n,r,o,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(o))throw BW.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(i=Boolean(i),!this.ctx.transform.isIdentity){var a=this.ctx.transform.applyToPoint(new s(e,t));e=a.x,t=a.y;var l=this.ctx.transform.applyToPoint(new s(0,n)),c=this.ctx.transform.applyToPoint(new s(0,0));n=Math.sqrt(Math.pow(l.x-c.x,2)+Math.pow(l.y-c.y,2))}Math.abs(o-r)>=2*Math.PI&&(r=0,o=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:n,startAngle:r,endAngle:o,counterclockwise:i})},d.prototype.arcTo=function(e,t,n,r,o){throw new Error("arcTo not implemented.")},d.prototype.rect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw BW.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+r),this.lineTo(e,t+r),this.lineTo(e,t),this.lineTo(e+n,t),this.lineTo(e,t)},d.prototype.fillRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw BW.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var o={};"butt"!==this.lineCap&&(o.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(o.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,n,r),this.fill(),o.hasOwnProperty("lineCap")&&(this.lineCap=o.lineCap),o.hasOwnProperty("lineJoin")&&(this.lineJoin=o.lineJoin)}},d.prototype.strokeRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw BW.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");p.call(this)||(this.beginPath(),this.rect(e,t,n,r),this.stroke())},d.prototype.clearRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw BW.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,n,r))},d.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},d.prototype.restore=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(t),e&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var A=function(e){var t,n,r,o;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))t=0,n=0,r=0,o=0;else{var i=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(null!==i)t=parseInt(i[1]),n=parseInt(i[2]),r=parseInt(i[3]),o=1;else if(null!==(i=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(e)))t=parseInt(i[1]),n=parseInt(i[2]),r=parseInt(i[3]),o=parseFloat(i[4]);else{if(o=1,"string"==typeof e&&"#"!==e.charAt(0)){var s=new IW(e);e=s.ok?s.toHex():"#000000"}4===e.length?(t=e.substring(1,2),t+=t,n=e.substring(2,3),n+=n,r=e.substring(3,4),r+=r):(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7)),t=parseInt(t,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:t,g:n,b:r,a:o,style:e}},h=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},p=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};d.prototype.fillText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw BW.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!h.call(this)){var o=L(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;j.call(this,{text:e,x:t,y:n,scale:i,angle:o,align:this.textAlign,maxWidth:r})}},d.prototype.strokeText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw BW.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!p.call(this)){r=isNaN(r)?void 0:r;var o=L(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;j.call(this,{text:e,x:t,y:n,scale:i,renderingMode:"stroke",angle:o,align:this.textAlign,maxWidth:r})}},d.prototype.measureText=function(e){if("string"!=typeof e)throw BW.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,n=this.pdf.internal.scaleFactor,r=t.internal.getFontSize(),o=t.getStringUnitWidth(e)*r/t.internal.scaleFactor;return new function(e){var t=(e=e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this}({width:o*=Math.round(96*n/72*1e4)/1e4})},d.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw BW.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new l(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},d.prototype.rotate=function(e){if(isNaN(e))throw BW.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new l(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},d.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw BW.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new l(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(n)},d.prototype.transform=function(e,t,n,r,o,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(o)||isNaN(i))throw BW.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var s=new l(e,t,n,r,o,i);this.ctx.transform=this.ctx.transform.multiply(s)},d.prototype.setTransform=function(e,t,n,r,o,i){e=isNaN(e)?1:e,t=isNaN(t)?0:t,n=isNaN(n)?0:n,r=isNaN(r)?1:r,o=isNaN(o)?0:o,i=isNaN(i)?0:i,this.ctx.transform=new l(e,t,n,r,o,i)};var f=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(e,t,n,r,o,i,s,c,u){var d=this.pdf.getImageProperties(e),A=1,h=1,p=1,g=1;void 0!==r&&void 0!==c&&(p=c/r,g=u/o,A=d.width/r*c/r,h=d.height/o*u/o),void 0===i&&(i=t,s=n,t=0,n=0),void 0!==r&&void 0===c&&(c=r,u=o),void 0===r&&void 0===c&&(c=d.width,u=d.height);var b=this.ctx.transform.decompose(),x=L(b.rotate.shx),k=new l,_=(k=(k=(k=k.multiply(b.translate)).multiply(b.skew)).multiply(b.scale)).applyToRectangle(new a(i-t*p,s-n*g,r*A,o*h));if(this.autoPaging){for(var C,B=m.call(this,_),S=[],j=0;j<B.length;j+=1)-1===S.indexOf(B[j])&&S.push(B[j]);v(S);for(var E=S[0],N=S[S.length-1],I=E;I<N+1;I++){this.pdf.setPage(I);var F=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],T=1===I?this.posY+this.margin[0]:this.margin[0],P=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],M=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],O=1===I?0:P+(I-2)*M;if(0!==this.ctx.clip_path.length){var D=this.path;C=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(C,this.posX+this.margin[3],-O+T+this.ctx.prevPageLastElemOffset),w.call(this,"fill",!0),this.path=D}var U=JSON.parse(JSON.stringify(_));U=y([U],this.posX+this.margin[3],-O+T+this.ctx.prevPageLastElemOffset)[0];var R=(I>E||I<N)&&f.call(this);R&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],F,M,null).clip().discardPath()),this.pdf.addImage(e,"JPEG",U.x,U.y,U.w,U.h,null,null,x),R&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(e,"JPEG",_.x,_.y,_.w,_.h,null,null,x)};var m=function(e,t,n){var r=[];t=t||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var o=this.posY+this.ctx.prevPageLastElemOffset;switch(e.type){default:case"mt":case"lt":r.push(Math.floor((e.y+o)/n)+1);break;case"arc":r.push(Math.floor((e.y+o-e.radius)/n)+1),r.push(Math.floor((e.y+o+e.radius)/n)+1);break;case"qct":var i=P(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);r.push(Math.floor((i.y+o)/n)+1),r.push(Math.floor((i.y+i.h+o)/n)+1);break;case"bct":var s=M(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);r.push(Math.floor((s.y+o)/n)+1),r.push(Math.floor((s.y+s.h+o)/n)+1);break;case"rect":r.push(Math.floor((e.y+o)/n)+1),r.push(Math.floor((e.y+e.h+o)/n)+1)}for(var a=0;a<r.length;a+=1)for(;this.pdf.internal.getNumberOfPages()<r[a];)g.call(this);return r},g=function(){var e=this.fillStyle,t=this.strokeStyle,n=this.font,r=this.lineCap,o=this.lineWidth,i=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=n,this.lineCap=r,this.lineWidth=o,this.lineJoin=i},y=function(e,t,n){for(var r=0;r<e.length;r++)switch(e[r].type){case"bct":e[r].x2+=t,e[r].y2+=n;case"qct":e[r].x1+=t,e[r].y1+=n;default:e[r].x+=t,e[r].y+=n}return e},v=function(e){return e.sort(function(e,t){return e-t})},b=function(e,t){var n=this.fillStyle,r=this.strokeStyle,o=this.lineCap,i=this.lineWidth,s=Math.abs(i*this.ctx.transform.scaleX),a=this.lineJoin;if(this.autoPaging){for(var l,c,u=JSON.parse(JSON.stringify(this.path)),d=JSON.parse(JSON.stringify(this.path)),A=[],h=0;h<d.length;h++)if(void 0!==d[h].x)for(var p=m.call(this,d[h]),b=0;b<p.length;b+=1)-1===A.indexOf(p[b])&&A.push(p[b]);for(var x=0;x<A.length;x++)for(;this.pdf.internal.getNumberOfPages()<A[x];)g.call(this);v(A);for(var k=A[0],_=A[A.length-1],C=k;C<_+1;C++){this.pdf.setPage(C),this.fillStyle=n,this.strokeStyle=r,this.lineCap=o,this.lineWidth=s,this.lineJoin=a;var B=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],S=1===C?this.posY+this.margin[0]:this.margin[0],j=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],E=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],N=1===C?0:j+(C-2)*E;if(0!==this.ctx.clip_path.length){var I=this.path;l=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(l,this.posX+this.margin[3],-N+S+this.ctx.prevPageLastElemOffset),w.call(this,e,!0),this.path=I}if(c=JSON.parse(JSON.stringify(u)),this.path=y(c,this.posX+this.margin[3],-N+S+this.ctx.prevPageLastElemOffset),!1===t||0===C){var F=(C>k||C<_)&&f.call(this);F&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],B,E,null).clip().discardPath()),w.call(this,e,t),F&&this.pdf.restoreGraphicsState()}this.lineWidth=i}this.path=u}else this.lineWidth=s,w.call(this,e,t),this.lineWidth=i},w=function(e,t){if(("stroke"!==e||t||!p.call(this))&&("stroke"===e||t||!h.call(this))){for(var n,r,o=[],i=this.path,s=0;s<i.length;s++){var a=i[s];switch(a.type){case"begin":o.push({begin:!0});break;case"close":o.push({close:!0});break;case"mt":o.push({start:a,deltas:[],abs:[]});break;case"lt":var l=o.length;if(i[s-1]&&!isNaN(i[s-1].x)&&(n=[a.x-i[s-1].x,a.y-i[s-1].y],l>0))for(;l>=0;l--)if(!0!==o[l-1].close&&!0!==o[l-1].begin){o[l-1].deltas.push(n),o[l-1].abs.push(a);break}break;case"bct":n=[a.x1-i[s-1].x,a.y1-i[s-1].y,a.x2-i[s-1].x,a.y2-i[s-1].y,a.x-i[s-1].x,a.y-i[s-1].y],o[o.length-1].deltas.push(n);break;case"qct":var c=i[s-1].x+2/3*(a.x1-i[s-1].x),u=i[s-1].y+2/3*(a.y1-i[s-1].y),d=a.x+2/3*(a.x1-a.x),A=a.y+2/3*(a.y1-a.y),f=a.x,m=a.y;n=[c-i[s-1].x,u-i[s-1].y,d-i[s-1].x,A-i[s-1].y,f-i[s-1].x,m-i[s-1].y],o[o.length-1].deltas.push(n);break;case"arc":o.push({deltas:[],abs:[],arc:!0}),Array.isArray(o[o.length-1].abs)&&o[o.length-1].abs.push(a)}}r=t?null:"stroke"===e?"stroke":"fill";for(var g=!1,y=0;y<o.length;y++)if(o[y].arc)for(var v=o[y].abs,b=0;b<v.length;b++){var w=v[b];"arc"===w.type?_.call(this,w.x,w.y,w.radius,w.startAngle,w.endAngle,w.counterclockwise,void 0,t,!g):E.call(this,w.x,w.y),g=!0}else if(!0===o[y].close)this.pdf.internal.out("h"),g=!1;else if(!0!==o[y].begin){var x=o[y].start.x,k=o[y].start.y;N.call(this,o[y].deltas,x,k),g=!0}r&&C.call(this,r),t&&B.call(this)}},x=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return e-n;case"top":return e+t-n;case"hanging":return e+t-2*n;case"middle":return e+t/2-n;default:return e}},k=function(e){return e+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},e.isCanvasGradient=!0,e},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var _=function(e,t,n,r,o,i,s,a,l){for(var c=F.call(this,n,r,o,i),u=0;u<c.length;u++){var d=c[u];0===u&&(l?S.call(this,d.x1+e,d.y1+t):E.call(this,d.x1+e,d.y1+t)),I.call(this,e,t,d.x2,d.y2,d.x3,d.y3,d.x4,d.y4)}a?B.call(this):C.call(this,s)},C=function(e){switch(e){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},B=function(){this.pdf.clip(),this.pdf.discardPath()},S=function(e,t){this.pdf.internal.out(n(e)+" "+r(t)+" m")},j=function(e){var t;switch(e.align){case"right":case"end":t="right";break;case"center":t="center";break;default:t="left"}var n,r,o,i=this.pdf.getTextDimensions(e.text),c=x.call(this,e.y),u=k.call(this,c)-i.h,d=this.ctx.transform.applyToPoint(new s(e.x,c));if(this.autoPaging){var A=this.ctx.transform.decompose(),h=new l;h=(h=(h=h.multiply(A.translate)).multiply(A.skew)).multiply(A.scale);for(var p=this.ctx.transform.applyToRectangle(new a(e.x,c,i.w,i.h)),g=h.applyToRectangle(new a(e.x,u,i.w,i.h)),b=m.call(this,g),_=[],C=0;C<b.length;C+=1)-1===_.indexOf(b[C])&&_.push(b[C]);v(_);for(var B=_[0],S=_[_.length-1],j=B;j<S+1;j++){this.pdf.setPage(j);var E=1===j?this.posY+this.margin[0]:this.margin[0],N=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],I=this.pdf.internal.pageSize.height-this.margin[2],F=I-this.margin[0],T=this.pdf.internal.pageSize.width-this.margin[1],L=T-this.margin[3],P=1===j?0:N+(j-2)*F;if(0!==this.ctx.clip_path.length){var M=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(n,this.posX+this.margin[3],-1*P+E),w.call(this,"fill",!0),this.path=M}var O=y([JSON.parse(JSON.stringify(g))],this.posX+this.margin[3],-P+E+this.ctx.prevPageLastElemOffset)[0];e.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*e.scale),o=this.lineWidth,this.lineWidth=o*e.scale);var D="text"!==this.autoPaging;if(D||O.y+O.h<=I){if(D||O.y>=E&&O.x<=T){var U=D?e.text:this.pdf.splitTextToSize(e.text,e.maxWidth||T-O.x)[0],R=y([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-P+E+this.ctx.prevPageLastElemOffset)[0],z=D&&(j>B||j<S)&&f.call(this);z&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],L,F,null).clip().discardPath()),this.pdf.text(U,R.x,R.y,{angle:e.angle,align:t,renderingMode:e.renderingMode}),z&&this.pdf.restoreGraphicsState()}}else O.y<I&&(this.ctx.prevPageLastElemOffset+=I-O.y);e.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=o)}}else e.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*e.scale),o=this.lineWidth,this.lineWidth=o*e.scale),this.pdf.text(e.text,d.x+this.posX,d.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=o)},E=function(e,t,o,i){o=o||0,i=i||0,this.pdf.internal.out(n(e+o)+" "+r(t+i)+" l")},N=function(e,t,n){return this.pdf.lines(e,t,n,null,null)},I=function(e,n,r,s,a,l,c,u){this.pdf.internal.out([t(o(r+e)),t(i(s+n)),t(o(a+e)),t(i(l+n)),t(o(c+e)),t(i(u+n)),"c"].join(" "))},F=function(e,t,n,r){for(var o=2*Math.PI,i=Math.PI/2;t>n;)t-=o;var s=Math.abs(n-t);s<o&&r&&(s=o-s);for(var a=[],l=r?-1:1,c=t;s>1e-5;){var u=c+l*Math.min(s,i);a.push(T.call(this,e,c,u)),s-=Math.abs(u-c),c=u}return a},T=function(e,t,n){var r=(n-t)/2,o=e*Math.cos(r),i=e*Math.sin(r),s=o,a=-i,l=s*s+a*a,c=l+s*o+a*i,u=4/3*(Math.sqrt(2*l*c)-c)/(s*i-a*o),d=s-u*a,A=a+u*s,h=d,p=-A,f=r+t,m=Math.cos(f),g=Math.sin(f);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:d*m-A*g,y2:d*g+A*m,x3:h*m-p*g,y3:h*g+p*m,x4:e*Math.cos(n),y4:e*Math.sin(n)}},L=function(e){return 180*e/Math.PI},P=function(e,t,n,r,o,i){var s=e+.5*(n-e),l=t+.5*(r-t),c=o+.5*(n-o),u=i+.5*(r-i),d=Math.min(e,o,s,c),A=Math.max(e,o,s,c),h=Math.min(t,i,l,u),p=Math.max(t,i,l,u);return new a(d,h,A-d,p-h)},M=function(e,t,n,r,o,i,s,l){var c,u,d,A,h,p,f,m,g,y,v,b,w,x,k=n-e,_=r-t,C=o-n,B=i-r,S=s-o,j=l-i;for(u=0;u<41;u++)g=(f=(d=e+(c=u/40)*k)+c*((h=n+c*C)-d))+c*(h+c*(o+c*S-h)-f),y=(m=(A=t+c*_)+c*((p=r+c*B)-A))+c*(p+c*(i+c*j-p)-m),0==u?(v=g,b=y,w=g,x=y):(v=Math.min(v,g),b=Math.min(b,y),w=Math.max(w,g),x=Math.max(x,y));return new a(Math.round(v),Math.round(b),Math.round(w-v),Math.round(x-b))},O=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var e,t,n=(e=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:e,lineDashOffset:t}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}(rG.API),function(e){var t=function(e){var t,n,r,o,i,s,a,l,c,u;for(/[^\x00-\xFF]/.test(e),n=[],r=0,o=(e+=t="\0\0\0\0".slice(e.length%4||4)).length;o>r;r+=4)0!==(i=(e.charCodeAt(r)<<24)+(e.charCodeAt(r+1)<<16)+(e.charCodeAt(r+2)<<8)+e.charCodeAt(r+3))?(s=(i=((i=((i=((i=(i-(u=i%85))/85)-(c=i%85))/85)-(l=i%85))/85)-(a=i%85))/85)%85,n.push(s+33,a+33,l+33,c+33,u+33)):n.push(122);return function(e,t){for(var n=t;n>0;n--)e.pop()}(n,t.length),String.fromCharCode.apply(String,n)+"~>"},n=function(e){var t,n,r,o,i,s=String,a="length",l=255,c="charCodeAt",u="slice",d="replace";for(e[u](-2),e=e[u](0,-2)[d](/\s/g,"")[d]("z","!!!!!"),r=[],o=0,i=(e+=t="uuuuu"[u](e[a]%5||5))[a];i>o;o+=5)n=52200625*(e[c](o)-33)+614125*(e[c](o+1)-33)+7225*(e[c](o+2)-33)+85*(e[c](o+3)-33)+(e[c](o+4)-33),r.push(l&n>>24,l&n>>16,l&n>>8,l&n);return function(e,t){for(var n=t;n>0;n--)e.pop()}(r,t[a]),s.fromCharCode.apply(s,r)},r=function(e){return e.split("").map(function(e){return("0"+e.charCodeAt().toString(16)).slice(-2)}).join("")+">"},o=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var n="",r=0;r<e.length;r+=2)n+=String.fromCharCode("0x"+(e[r]+e[r+1]));return n},i=function(e){for(var t=new Uint8Array(e.length),n=e.length;n--;)t[n]=e.charCodeAt(n);return(t=yH(t)).reduce(function(e,t){return e+String.fromCharCode(t)},"")};e.processDataByFilters=function(e,s){var a=0,l=e||"",c=[];for("string"==typeof(s=s||[])&&(s=[s]),a=0;a<s.length;a+=1)switch(s[a]){case"ASCII85Decode":case"/ASCII85Decode":l=n(l),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=t(l),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=o(l),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=r(l),c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=i(l),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[a]+'" is not implemented')}return{data:l,reverseChain:c.reverse().join(" ")}}}(rG.API),function(e){e.loadFile=function(e,t,n){return function(e,t,n){t=!1!==t,n="function"==typeof n?n:function(){};var r=void 0;try{r=function(e,t,n){var r=new XMLHttpRequest,o=0,i=function(e){var t=e.length,n=[],r=String.fromCharCode;for(o=0;o<t;o+=1)n.push(r(255&e.charCodeAt(o)));return n.join("")};if(r.open("GET",e,!t),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(r.onload=function(){200===r.status?n(i(this.responseText)):n(void 0)}),r.send(null),t&&200===r.status)return i(r.responseText)}(e,t,n)}catch(e){}return r}(e,t,n)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile}(rG.API),function(e){function t(){return(_W.html2canvas?Promise.resolve(_W.html2canvas):Promise.resolve().then(n.t.bind(n,354,23))).catch(function(e){return Promise.reject(new Error("Could not load html2canvas: "+e))}).then(function(e){return e.default?e.default:e})}function r(){return(_W.DOMPurify?Promise.resolve(_W.DOMPurify):n.e(418).then(n.bind(n,9418))).catch(function(e){return Promise.reject(new Error("Could not load dompurify: "+e))}).then(function(e){return e.default?e.default:e})}var o=function(e){var t=(0,OQ.A)(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},i=function(e,t){var n=document.createElement(e);for(var r in t.className&&(n.className=t.className),t.innerHTML&&t.dompurify&&(n.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)n.style[r]=t.style[r];return n},s=function e(t,n){for(var r=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),o=t.firstChild;o;o=o.nextSibling)!0!==n&&1===o.nodeType&&"SCRIPT"===o.nodeName||r.appendChild(e(o,n));return 1===t.nodeType&&("CANVAS"===t.nodeName?(r.width=t.width,r.height=t.height,r.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(r.value=t.value),r.addEventListener("load",function(){r.scrollTop=t.scrollTop,r.scrollLeft=t.scrollLeft},!0)),r},a=function e(t){var n=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),r=e.convert(Promise.resolve(),n);return(r=r.setProgress(1,e,1,[e])).set(t)};(a.prototype=Object.create(Promise.prototype)).constructor=a,a.convert=function(e,t){return e.__proto__=t||a.prototype,e},a.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},a.prototype.from=function(e,t){return this.then(function(){switch(t=t||function(e){switch(o(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(e),t){case"string":return this.then(r).then(function(t){return this.set({src:i("div",{innerHTML:e,dompurify:t})})});case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}})},a.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},a.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var e={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},t=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},a.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then(function(e){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,e(this.prop.container,t)}).then(function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},a.prototype.toContext2d=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then(function(e){var t=this.opt.jsPDF,n=this.opt.fontFaces,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,o=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete o.onrendered,t.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=n,n)for(var i=0;i<n.length;++i){var s=n[i],a=s.src.find(function(e){return"truetype"===e.format});a&&t.addFont(a.url,s.ref.name,s.ref.style)}return o.windowHeight=o.windowHeight||0,o.windowHeight=0==o.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):o.windowHeight,t.context2d.save(!0),e(this.prop.container,o)}).then(function(e){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},a.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e})},a.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},a.prototype.output=function(e,t,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},a.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(e,t)})},a.prototype.outputImg=function(e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}})},a.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},a.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},a.prototype.set=function(e){if("object"!==o(e))return this;var t=Object.keys(e||{}).map(function(t){if(t in a.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}},this);return this.then(function(){return this.thenList(t)})},a.prototype.get=function(e,t){return this.then(function(){var n=e in a.template.prop?this.prop[e]:this.opt[e];return t?t(n):n})},a.prototype.setMargin=function(e){return this.then(function(){switch(o(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e}).then(this.setPageSize)},a.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then(function(){(e=e||rG.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e})},a.prototype.setProgress=function(e,t,n,r){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},a.prototype.updateProgress=function(e,t,n,r){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},a.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,function(e,t){return n.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,function(t){return n.updateProgress(null,e),t}).then(e,t).then(function(e){return n.updateProgress(1),e})})},a.prototype.thenCore=function(e,t,n){n=n||Promise.prototype.then;var r=this;e&&(e=e.bind(r)),t&&(t=t.bind(r));var o=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?r:a.convert(Object.assign({},r),Promise.prototype),i=n.call(o,e,t);return a.convert(i,r.__proto__)},a.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},a.prototype.thenList=function(e){var t=this;return e.forEach(function(e){t=t.thenCore(e)}),t},a.prototype.catch=function(e){e&&(e=e.bind(this));var t=Promise.prototype.catch.call(this,e);return a.convert(t,this)},a.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},a.prototype.error=function(e){return this.then(function(){throw new Error(e)})},a.prototype.using=a.prototype.set,a.prototype.saveAs=a.prototype.save,a.prototype.export=a.prototype.output,a.prototype.run=a.prototype.then,rG.getPageSize=function(e,t,n){if("object"===(0,OQ.A)(e)){var r=e;e=r.orientation,t=r.unit||t,n=r.format||n}t=t||"mm",n=n||"a4",e=(""+(e||"P")).toLowerCase();var o,i=(""+n).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":o=1;break;case"mm":o=72/25.4;break;case"cm":o=72/2.54;break;case"in":o=72;break;case"px":o=.75;break;case"pc":case"em":o=12;break;case"ex":o=6;break;default:throw"Invalid unit: "+t}var a,l=0,c=0;if(s.hasOwnProperty(i))l=s[i][1]/o,c=s[i][0]/o;else try{l=n[1],c=n[0]}catch(e){throw new Error("Invalid format: "+n)}if("p"===e||"portrait"===e)e="p",c>l&&(a=c,c=l,l=a);else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",l>c&&(a=c,c=l,l=a)}return{width:c,height:l,unit:t,k:o,orientation:e}},e.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(ZG):null;var n=new a(t);return t.worker?n:n.from(e).doCallback()}}(rG.API),rG.API.addJS=function(e){var t,n,r=function(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if("("===r||")"===r){for(var o=0,i=n-1;i>=0&&"\\"===e[i];i--)o++;t+=o%2==0?"\\"+r:r}else t+=r}return t}(e);return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==t&&void 0!==n&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var e=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=e.outline.render().split(/\r\n/),o=0;o<r.length;o++){var i=r[o],s=n.exec(i);if(null!=s){var a=s[1];e.internal.newObjectDeferredBegin(a,!1)}e.internal.write(i)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,c=[];for(o=0;o<l;o++){var u=e.internal.newObject();c.push(u);var d=e.internal.getPageInfo(o+1);e.internal.write("<< /D["+d.objId+" 0 R /XYZ null null null]>> endobj")}var A=e.internal.newObject();for(e.internal.write("<< /Names [ "),o=0;o<c.length;o++)e.internal.write("(page_"+(o+1)+")"+c[o]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+A+" 0 R"),e.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,n){var r={title:t,options:n,children:[]};return null==e&&(e=this.root),e.children.push(r),r},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var n=0;n<t.children.length;n++)this.genIds_r(t.children[n])},e.outline.renderRoot=function(e){this.objStart(e),this.line("/Type /Outlines"),e.children.length>0&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<t.children.length;r++){var o=t.children[r];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(t)),r>0&&this.line("/Prev "+this.makeRef(t.children[r-1])),r<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[r+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var i=this.count=this.count_r({count:0},o);if(i>0&&this.line("/Count "+i),o.options&&o.options.pageNumber){var s=e.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+s.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var a=0;a<t.children.length;a++)this.renderItems(t.children[a])},e.outline.line=function(e){this.ctx.val+=e+"\r\n"},e.outline.makeRef=function(e){return e.id+" 0 R"},e.outline.makeString=function(t){return"("+e.internal.pdfEscape(t)+")"},e.outline.objStart=function(e){this.ctx.val+="\r\n"+e.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var n=0;n<t.children.length;n++)e.count++,this.count_r(e,t.children[n]);return e.count}}])}(rG.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(e,n,r,o,i,s){var a,l=this.decode.DCT_DECODE,c=null;if("string"==typeof e||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=i||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,a=function(e){for(var n,r=256*e.charCodeAt(4)+e.charCodeAt(5),o=e.length,i={width:0,height:0,numcomponents:1},s=4;s<o;s+=2){if(s+=r,-1!==t.indexOf(e.charCodeAt(s+1))){n=256*e.charCodeAt(s+5)+e.charCodeAt(s+6),i={width:256*e.charCodeAt(s+7)+e.charCodeAt(s+8),height:n,numcomponents:e.charCodeAt(s+9)};break}r=256*e.charCodeAt(s+2)+e.charCodeAt(s+3)}return i}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),a.numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}c={data:e,width:a.width,height:a.height,colorSpace:s,bitsPerComponent:8,filter:l,index:n,alias:r}}return c}}(rG.API),rG.API.processPNG=function(e,t,n,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var o,i=new xW(e,{checkCrc:!0}).decode(),s=i.width,a=i.height,l=i.channels,c=i.palette,u=i.depth;o=c&&1===l?function(e){for(var t=e.width,n=e.height,r=e.data,o=e.palette,i=e.depth,s=!1,a=[],l=[],c=void 0,u=!1,d=0,A=0;A<o.length;A++){var h=wH(o[A],4),p=h[0],f=h[1],m=h[2],g=h[3];a.push(p,f,m),null!=g&&(0===g?(d++,l.length<1&&l.push(A)):g<255&&(u=!0))}if(u||d>1){s=!0,l=void 0;var y=t*n;c=new Uint8Array(y);for(var v=new DataView(r.buffer),b=0;b<y;b++){var w=wH(o[v$(v,b,i)],4)[3];c[b]=w}}else 0===d&&(l=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:s?8:void 0,colorBytes:r,alphaBytes:c,needSMask:s,palette:a,mask:l}}(i):2===l||4===l?function(e){for(var t=e.data,n=e.width,r=e.height,o=e.channels,i=e.depth,s=2===o?"DeviceGray":"DeviceRGB",a=o-1,l=n*r,c=a,u=l*c,d=1*l,A=Math.ceil(u*i/8),h=Math.ceil(d*i/8),p=new Uint8Array(A),f=new Uint8Array(h),m=new DataView(t.buffer),g=new DataView(p.buffer),y=new DataView(f.buffer),v=!1,b=0;b<l;b++){for(var w=b*o,x=0;x<c;x++)b$(g,v$(m,w+x,i),b*c+x,i);var k=v$(m,w+c,i);k<(1<<i)-1&&(v=!0),b$(y,k,1*b,i)}return{colorSpace:s,colorsPerPixel:a,sMaskBitsPerComponent:v?i:void 0,colorBytes:p,alphaBytes:f,needSMask:v}}(i):function(e){var t=e.data,n=1===e.channels?"DeviceGray":"DeviceRGB";return{colorSpace:n,colorsPerPixel:"DeviceGray"===n?1:3,colorBytes:t instanceof Uint16Array?function(e){for(var t=e.length,n=new Uint8Array(2*t),r=new DataView(n.buffer,n.byteOffset,n.byteLength),o=0;o<t;o++)r.setUint16(2*o,e[o],!1);return n}(t):t,needSMask:!1}}(i);var d,A,h,p=o,f=p.colorSpace,m=p.colorsPerPixel,g=p.sMaskBitsPerComponent,y=p.colorBytes,v=p.alphaBytes,b=p.needSMask,w=p.palette,x=p.mask,k=null;return r!==rG.API.image_compression.NONE?(k=function(e){var t;switch(e){case rG.API.image_compression.FAST:t=11;break;case rG.API.image_compression.MEDIUM:t=13;break;case rG.API.image_compression.SLOW:t=14;break;default:t=12}return t}(r),d=this.decode.FLATE_DECODE,A="/Predictor ".concat(k," /Colors ").concat(m," /BitsPerComponent ").concat(u," /Columns ").concat(s),e=d$(y,Math.ceil(s*m*u/8),m,u,r),b&&(h=d$(v,Math.ceil(s*g/8),1,g,r))):(d=void 0,A=void 0,e=y,b&&(h=v)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:n,data:e,index:t,filter:d,decodeParameters:A,transparency:x,palette:w,sMask:h,predictor:k,width:s,height:a,bitsPerComponent:u,sMaskBitsPerComponent:g,colorSpace:f}}},function(e){e.processGIF89A=function(t,n,r,o){var i=new x$(t),s=i.width,a=i.height,l=[];i.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:s,height:a},u=new _$(100).encode(c,100);return e.processJPEG.call(this,u,n,r,o)},e.processGIF87A=e.processGIF89A}(rG.API),C$.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:o,green:r,blue:n,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},C$.prototype.parseBGR=function(){this.pos=this.offset;var e="bit"+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[e]()}catch(e){BW.log("bit decode error:"+e)}},C$.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,o=0;o<t;o++)for(var i=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+8*o*4,a=0;a<8&&8*o+a<this.width;a++){var l=this.palette[i>>7-a&1];this.data[s+4*a]=l.blue,this.data[s+4*a+1]=l.green,this.data[s+4*a+2]=l.red,this.data[s+4*a+3]=255}0!==n&&(this.pos+=4-n)}},C$.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,o=0;o<e;o++){var i=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+2*o*4,a=i>>4,l=15&i,c=this.palette[a];if(this.data[s]=c.blue,this.data[s+1]=c.green,this.data[s+2]=c.red,this.data[s+3]=255,2*o+1>=this.width)break;c=this.palette[l],this.data[s+4]=c.blue,this.data[s+4+1]=c.green,this.data[s+4+2]=c.red,this.data[s+4+3]=255}0!==t&&(this.pos+=4-t)}},C$.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var o=this.datav.getUint8(this.pos++,!0),i=n*this.width*4+4*r;if(o<this.palette.length){var s=this.palette[o];this.data[i]=s.red,this.data[i+1]=s.green,this.data[i+2]=s.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!==e&&(this.pos+=4-e)}},C$.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,o=0;o<this.width;o++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(i&t)/t*255|0,a=(i>>5&t)/t*255|0,l=(i>>10&t)/t*255|0,c=i>>15?255:0,u=r*this.width*4+4*o;this.data[u]=l,this.data[u+1]=a,this.data[u+2]=s,this.data[u+3]=c}this.pos+=e}},C$.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var o=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(s&t)/t*255|0,l=(s>>5&n)/n*255|0,c=(s>>11)/t*255|0,u=o*this.width*4+4*i;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=a,this.data[u+3]=255}this.pos+=e}},C$.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=i,this.data[s+1]=o,this.data[s+2]=r,this.data[s+3]=255}this.pos+=this.width%4}},C$.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*n;this.data[a]=i,this.data[a+1]=o,this.data[a+2]=r,this.data[a+3]=s}},C$.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,n,r,o){var i=new C$(t,!1),s=i.width,a=i.height,l={data:i.getData(),width:s,height:a},c=new _$(100).encode(l,100);return e.processJPEG.call(this,c,n,r,o)}}(rG.API),B$.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,n,r,o){var i=new B$(t),s=i.width,a=i.height,l={data:i.getData(),width:s,height:a},c=new _$(100).encode(l,100);return e.processJPEG.call(this,c,n,r,o)}}(rG.API),rG.API.processRGBA=function(e,t,n){for(var r=e.data,o=r.length,i=new Uint8Array(o/4*3),s=new Uint8Array(o/4),a=0,l=0,c=0;c<o;c+=4){var u=r[c],d=r[c+1],A=r[c+2],h=r[c+3];i[a++]=u,i[a++]=d,i[a++]=A,s[l++]=h}var p=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:p,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},rG.API.setLanguage=function(e){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]&&(this.internal.languageSettings.languageCode=e,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},i$=rG.API,s$=i$.getCharWidthsArray=function(e,t){var n,r,o=(t=t||{}).font||this.internal.getFont(),i=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),a=t.widths?t.widths:o.metadata.Unicode.widths,l=a.fof?a.fof:1,c=t.kerning?t.kerning:o.metadata.Unicode.kerning,u=c.fof?c.fof:1,d=!1!==t.doKerning,A=0,h=e.length,p=0,f=a[0]||l,m=[];for(n=0;n<h;n++)r=e.charCodeAt(n),"function"==typeof o.metadata.widthOfString?m.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(r))+s*(1e3/i)||0)/1e3):(A=d&&"object"===(0,OQ.A)(c[r])&&!isNaN(parseInt(c[r][p],10))?c[r][p]/u:0,m.push((a[r]||f)/l+A)),p=r;return m},a$=i$.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),o=t.charSpace||this.internal.getCharSpace();return i$.processArabic&&(e=i$.processArabic(e)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(e,n,o)/n:s$.apply(this,arguments).reduce(function(e,t){return e+t},0)},l$=function(e,t,n,r){for(var o=[],i=0,s=e.length,a=0;i!==s&&a+t[i]<n;)a+=t[i],i++;o.push(e.slice(0,i));var l=i;for(a=0;i!==s;)a+t[i]>r&&(o.push(e.slice(l,i)),a=0,l=i),a+=t[i],i++;return l!==i&&o.push(e.slice(l,i)),o},c$=function(e,t,n){n||(n={});var r,o,i,s,a,l,c,u=[],d=[u],A=n.textIndent||0,h=0,p=0,f=e.split(" "),m=s$.apply(this,[" ",n])[0];if(l=-1===n.lineIndent?f[0].length+2:n.lineIndent||0){var g=Array(l).join(" "),y=[];f.map(function(e){(e=e.split(/\s*\n/)).length>1?y=y.concat(e.map(function(e,t){return(t&&e.length?"\n":"")+e})):y.push(e[0])}),f=y,l=a$.apply(this,[g,n])}for(i=0,s=f.length;i<s;i++){var v=0;if(r=f[i],l&&"\n"==r[0]&&(r=r.substr(1),v=1),A+h+(p=(o=s$.apply(this,[r,n])).reduce(function(e,t){return e+t},0))>t||v){if(p>t){for(a=l$.apply(this,[r,o,t-(A+h),t]),u.push(a.shift()),u=[a.pop()];a.length;)d.push([a.shift()]);p=o.slice(r.length-(u[0]?u[0].length:0)).reduce(function(e,t){return e+t},0)}else u=[r];d.push(u),A=p+l,h=m}else u.push(r),A+=h+p,h=m}return c=l?function(e,t){return(t?g:"")+e.join(" ")}:function(e){return e.join(" ")},d.map(c)},i$.splitTextToSize=function(e,t,n){var r,o=(n=n||{}).fontSize||this.internal.getFontSize(),i=function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle),n="Unicode";return t.metadata[n]?{widths:t.metadata[n].widths||{0:1},kerning:t.metadata[n].kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var s=1*this.internal.scaleFactor*t/o;i.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/o:0,i.lineIndent=n.lineIndent;var a,l,c=[];for(a=0,l=r.length;a<l;a++)c=c.concat(c$.apply(this,[r[a],s,i]));return c},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",r={},o={},i=0;i<16;i++)r[n[i]]=t[i],o[t[i]]=n[i];var s=function(e){return"0x"+parseInt(e,10).toString(16)},a=e.__fontmetrics__.compress=function(e){var t,n,r,i,l=["{"];for(var c in e){if(t=e[c],isNaN(parseInt(c,10))?n="'"+c+"'":(c=parseInt(c,10),n=(n=s(c).slice(2)).slice(0,-1)+o[n.slice(-1)]),"number"==typeof t)t<0?(r=s(t).slice(3),i="-"):(r=s(t).slice(2),i=""),r=i+r.slice(0,-1)+o[r.slice(-1)];else{if("object"!==(0,OQ.A)(t))throw new Error("Don't know what to do with value type "+(0,OQ.A)(t)+".");r=a(t)}l.push(n+r)}return l.push("}"),l.join("")},l=e.__fontmetrics__.uncompress=function(e){if("string"!=typeof e)throw new Error("Invalid argument passed to uncompress.");for(var t,n,o,i,s={},a=1,l=s,c=[],u="",d="",A=e.length-1,h=1;h<A;h+=1)"'"==(i=e[h])?t?(o=t.join(""),t=void 0):t=[]:t?t.push(i):"{"==i?(c.push([l,o]),l={},o=void 0):"}"==i?((n=c.pop())[0][n[1]]=l,o=void 0,l=n[0]):"-"==i?a=-1:void 0===o?r.hasOwnProperty(i)?(u+=r[i],o=parseInt(u,16)*a,a=1,u=""):u+=i:r.hasOwnProperty(i)?(d+=r[i],l[o]=parseInt(d,16)*a,a=1,o=void 0,d=""):d+=i;return s},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},d={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(e){var t=e.font,n=d.Unicode[t.postScriptName];n&&(t.metadata.Unicode={},t.metadata.Unicode.widths=n.widths,t.metadata.Unicode.kerning=n.kerning);var r=u.Unicode[t.postScriptName];r&&(t.metadata.Unicode.encoding=r,t.encoding=r.codePages[0])}])}(rG.API),function(e){var t=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n};e.API.events.push(["addFont",function(n){var r=void 0,o=n.font,i=n.instance;if(!o.isStandardFont){if(void 0===i)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");if("string"!=typeof(r=!1===i.existsFileInVFS(o.postScriptName)?i.loadFile(o.postScriptName):i.getFileFromVFS(o.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");!function(n,r){r=/^\x00\x01\x00\x00/.test(r)?t(r):t(FW(r)),n.metadata=e.API.TTFFont.open(r),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(o,r)}}])}(rG),rG.API.addSvgAsImage=function(e,t,r,o,i,s,a,l){if(isNaN(t)||isNaN(r))throw BW.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(i))throw BW.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=o,c.height=i;var u=c.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,c.width,c.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},A=this;return(_W.canvg?Promise.resolve(_W.canvg):n.e(661).then(n.bind(n,661))).catch(function(e){return Promise.reject(new Error("Could not load canvg: "+e))}).then(function(e){return e.default?e.default:e}).then(function(t){return t.fromString(u,e,d)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(e){return e.render(d)}).then(function(){A.addImage(c.toDataURL("image/jpeg",1),t,r,o,i,a,l)})},rG.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var o=0;o<this.internal.pages[r].length;o++)this.internal.pages[r][o]=this.internal.pages[r][o].replace(t,n);return this},rG.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,o,i,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(s),l=[],c=0,u=0,d=0;function A(e,t){var n,r=!1;for(n=0;n<e.length;n+=1)e[n]===t&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===t){var h=a.length;for(d=0;d<h;d+=1)n[a[d]].value=n[a[d]].defaultValue,n[a[d]].explicitSet=!1}if("object"===(0,OQ.A)(e))for(o in e)if(i=e[o],A(a,o)&&void 0!==i){if("boolean"===n[o].type&&"boolean"==typeof i)n[o].value=i;else if("name"===n[o].type&&A(n[o].valueSet,i))n[o].value=i;else if("integer"===n[o].type&&Number.isInteger(i))n[o].value=i;else if("array"===n[o].type){for(c=0;c<i.length;c+=1)if(r=!0,1===i[c].length&&"number"==typeof i[c][0])l.push(String(i[c]-1));else if(i[c].length>1){for(u=0;u<i[c].length;u+=1)"number"!=typeof i[c][u]&&(r=!1);!0===r&&l.push([i[c][0]-1,i[c][1]-1].join(" "))}n[o].value="["+l.join(" ")+"]"}else n[o].value=n[o].defaultValue;n[o].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var e,t=[];for(e in n)!0===n[e].explicitSet&&("name"===n[e].type?t.push("/"+e+" /"+n[e].value):t.push("/"+e+" "+n[e].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},rG.API.addMetadata=function(e,t){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:e,namespaceUri:null!=t?t:"http://jspdf.default.namespaceuri/",rawXml:"boolean"==typeof t&&t},this.internal.events.subscribe("putCatalog",j$),this.internal.events.subscribe("postPutResources",S$)),this},function(e){var t=e.API,n=t.pdfEscape16=function(e,t){for(var n,r=t.metadata.Unicode.widths,o=["","0","00","000","0000"],i=[""],s=0,a=e.length;s<a;++s){if(n=t.metadata.characterToGlyph(e.charCodeAt(s)),t.metadata.glyIdsUsed.push(n),t.metadata.toUnicode[n]=e.charCodeAt(s),-1==r.indexOf(n)&&(r.push(n),r.push([parseInt(t.metadata.widthOfGlyph(n),10)])),"0"==n)return i.join("");n=n.toString(16),i.push(o[4-n.length],n)}return i.join("")},r=function(e){var t,n,r,o,i,s,a;for(i="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],s=0,a=(n=Object.keys(e).sort(function(e,t){return e-t})).length;s<a;s++)t=n[s],r.length>=100&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==e[t]&&null!==e[t]&&"function"==typeof e[t].toString&&(o=("0000"+e[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),r.push("<"+t+"><"+o+">"));return r.length&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),i+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t){var n=t.font,o=t.out,i=t.newObject,s=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"Identity-H"===n.encoding){for(var a=n.metadata.Unicode.widths,l=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),c="",u=0;u<l.length;u++)c+=String.fromCharCode(l[u]);var d=i();s({data:c,addLength1:!0,objectId:d}),o("endobj");var A=i();s({data:r(n.metadata.toUnicode),addLength1:!0,objectId:A}),o("endobj");var h=i();o("<<"),o("/Type /FontDescriptor"),o("/FontName /"+ZW(n.fontName)),o("/FontFile2 "+d+" 0 R"),o("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),o("/Flags "+n.metadata.flags),o("/StemV "+n.metadata.stemV),o("/ItalicAngle "+n.metadata.italicAngle),o("/Ascent "+n.metadata.ascender),o("/Descent "+n.metadata.decender),o("/CapHeight "+n.metadata.capHeight),o(">>"),o("endobj");var p=i();o("<<"),o("/Type /Font"),o("/BaseFont /"+ZW(n.fontName)),o("/FontDescriptor "+h+" 0 R"),o("/W "+e.API.PDFObject.convert(a)),o("/CIDToGIDMap /Identity"),o("/DW 1000"),o("/Subtype /CIDFontType2"),o("/CIDSystemInfo"),o("<<"),o("/Supplement 0"),o("/Registry (Adobe)"),o("/Ordering ("+n.encoding+")"),o(">>"),o(">>"),o("endobj"),n.objectNumber=i(),o("<<"),o("/Type /Font"),o("/Subtype /Type0"),o("/ToUnicode "+A+" 0 R"),o("/BaseFont /"+ZW(n.fontName)),o("/Encoding /"+n.encoding),o("/DescendantFonts ["+p+" 0 R]"),o(">>"),o("endobj"),n.isAlreadyPutted=!0}}(t)}]),t.events.push(["putFont",function(t){!function(t){var n=t.font,o=t.out,i=t.newObject,s=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var a=n.metadata.rawData,l="",c=0;c<a.length;c++)l+=String.fromCharCode(a[c]);var u=i();s({data:l,addLength1:!0,objectId:u}),o("endobj");var d=i();s({data:r(n.metadata.toUnicode),addLength1:!0,objectId:d}),o("endobj");var A=i();o("<<"),o("/Descent "+n.metadata.decender),o("/CapHeight "+n.metadata.capHeight),o("/StemV "+n.metadata.stemV),o("/Type /FontDescriptor"),o("/FontFile2 "+u+" 0 R"),o("/Flags 96"),o("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),o("/FontName /"+ZW(n.fontName)),o("/ItalicAngle "+n.metadata.italicAngle),o("/Ascent "+n.metadata.ascender),o(">>"),o("endobj"),n.objectNumber=i();for(var h=0;h<n.metadata.hmtx.widths.length;h++)n.metadata.hmtx.widths[h]=parseInt(n.metadata.hmtx.widths[h]*(1e3/n.metadata.head.unitsPerEm));o("<</Subtype/TrueType/Type/Font/ToUnicode "+d+" 0 R/BaseFont/"+ZW(n.fontName)+"/FontDescriptor "+A+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),o("endobj"),n.isAlreadyPutted=!0}}(t)}]);var o=function(e){var t,r=e.text||"",o=e.x,i=e.y,s=e.options||{},a=e.mutex||{},l=a.pdfEscape,c=a.activeFontKey,u=a.fonts,d=c,A="",h=0,p="",f=u[d].encoding;if("Identity-H"!==u[d].encoding)return{text:r,x:o,y:i,options:s,mutex:a};for(p=r,d=c,Array.isArray(r)&&(p=r[0]),h=0;h<p.length;h+=1)u[d].metadata.hasOwnProperty("cmap")&&(t=u[d].metadata.cmap.unicode.codeMap[p[h].charCodeAt(0)]),t||p[h].charCodeAt(0)<256&&u[d].metadata.hasOwnProperty("Unicode")?A+=p[h]:A+="";var m="";return parseInt(d.slice(1))<14||"WinAnsiEncoding"===f?m=l(A,d).split("").map(function(e){return e.charCodeAt(0).toString(16)}).join(""):"Identity-H"===f&&(m=n(A,u[d])),a.isHex=!0,{text:m,x:o,y:i,options:s,mutex:a}};t.events.push(["postProcessText",function(e){var t=e.text||"",n=[],r={text:t,x:e.x,y:e.y,options:e.options,mutex:e.mutex};if(Array.isArray(t)){var i=0;for(i=0;i<t.length;i+=1)Array.isArray(t[i])&&3===t[i].length?n.push([o(Object.assign({},r,{text:t[i][0]})).text,t[i][1],t[i][2]]):n.push(o(Object.assign({},r,{text:t[i]})).text);e.text=n}else e.text=o(Object.assign({},r,{text:t})).text}])}(rG),function(e){var t=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]},e.addFileToVFS=function(e,n){return t.call(this),this.internal.vFS[e]=n,this},e.getFileFromVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]?this.internal.vFS[e]:null}}(rG.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var n,r,o,i,s,a,l,c=t,u=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],d=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],A={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},h={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],f=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),m=!1,g=0;this.__bidiEngine__={};var y=function(e){var t=e.charCodeAt(),n=t>>8,r=h[n];return void 0!==r?c[256*r+(255&t)]:252===n||253===n?"AL":f.test(n)?"L":8===n?"R":"N"},v=function(e){for(var t,n=0;n<e.length;n++){if("L"===(t=y(e.charAt(n))))return!1;if("R"===t)return!0}return!1},b=function(e,t,s,a){var l,c,u,d,A=t[a];switch(A){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"N":case"AN":break;case"EN":m&&(A="AN");break;case"AL":m=!0,A="R";break;case"WS":case"BN":A="N";break;case"CS":a<1||a+1>=t.length||"EN"!==(l=s[a-1])&&"AN"!==l||"EN"!==(c=t[a+1])&&"AN"!==c?A="N":m&&(c="AN"),A=c===l?c:"N";break;case"ES":A="EN"===(l=a>0?s[a-1]:"B")&&a+1<t.length&&"EN"===t[a+1]?"EN":"N";break;case"ET":if(a>0&&"EN"===s[a-1]){A="EN";break}if(m){A="N";break}for(u=a+1,d=t.length;u<d&&"ET"===t[u];)u++;A=u<d&&"EN"===t[u]?"EN":"N";break;case"NSM":if(o&&!i){for(d=t.length,u=a+1;u<d&&"NSM"===t[u];)u++;if(u<d){var h=e[a],p=h>=1425&&h<=2303||64286===h;if(l=t[u],p&&("R"===l||"AL"===l)){A="R";break}}}A=a<1||"B"===(l=t[a-1])?"N":s[a-1];break;case"B":m=!1,n=!0,A=g;break;case"S":r=!0,A="N"}return A},w=function(e,t,n){var r=e.split("");return n&&x(r,n,{hiLevel:g}),r.reverse(),t&&t.reverse(),r.join("")},x=function(e,t,o){var i,s,a,l,c,h=-1,p=e.length,f=0,v=[],w=g?d:u,x=[];for(m=!1,n=!1,r=!1,s=0;s<p;s++)x[s]=y(e[s]);for(a=0;a<p;a++){if(c=f,v[a]=b(e,x,v,a),i=240&(f=w[c][A[v[a]]]),f&=15,t[a]=l=w[f][5],i>0)if(16===i){for(s=h;s<a;s++)t[s]=1;h=-1}else h=-1;if(w[f][6])-1===h&&(h=a);else if(h>-1){for(s=h;s<a;s++)t[s]=l;h=-1}"B"===x[a]&&(t[a]=0),o.hiLevel|=l}r&&function(e,t,n){for(var r=0;r<n;r++)if("S"===e[r]){t[r]=g;for(var o=r-1;o>=0&&"WS"===e[o];o--)t[o]=g}}(x,t,p)},k=function(e,t,r,o,i){if(!(i.hiLevel<e)){if(1===e&&1===g&&!n)return t.reverse(),void(r&&r.reverse());for(var s,a,l,c,u=t.length,d=0;d<u;){if(o[d]>=e){for(l=d+1;l<u&&o[l]>=e;)l++;for(c=d,a=l-1;c<a;c++,a--)s=t[c],t[c]=t[a],t[a]=s,r&&(s=r[c],r[c]=r[a],r[a]=s);d=l}d++}}},_=function(e,t,n){var r=e.split(""),o={hiLevel:g};return n||(n=[]),x(r,n,o),function(e,t,n){if(0!==n.hiLevel&&l)for(var r,o=0;o<e.length;o++)1===t[o]&&(r=p.indexOf(e[o]))>=0&&(e[o]=p[r+1])}(r,n,o),k(2,r,t,n,o),k(1,r,t,n,o),r.join("")};return this.__bidiEngine__.doBidiReorder=function(e,t,n){if(function(e,t){if(t)for(var n=0;n<e.length;n++)t[n]=n;void 0===i&&(i=v(e)),void 0===a&&(a=v(e))}(e,t),o||!s||a)if(o&&s&&i^a)g=i?1:0,e=w(e,t,n);else if(!o&&s&&a)g=i?1:0,e=_(e,t,n),e=w(e,t);else if(!o||i||s||a){if(o&&!s&&i^a)e=w(e,t),i?(g=0,e=_(e,t,n)):(g=1,e=_(e,t,n),e=w(e,t));else if(o&&i&&!s&&a)g=1,e=_(e,t,n),e=w(e,t);else if(!o&&!s&&i^a){var r=l;i?(g=1,e=_(e,t,n),g=0,l=!1,e=_(e,t,n),l=r):(g=0,e=_(e,t,n),e=w(e,t),g=1,l=!1,e=_(e,t,n),l=r,e=w(e,t))}}else g=0,e=_(e,t,n);else g=i?1:0,e=_(e,t,n);return e},this.__bidiEngine__.setOptions=function(e){e&&(o=e.isInputVisual,s=e.isOutputVisual,i=e.isInputRtl,a=e.isOutputRtl,l=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(e){var t=e.text;e.x,e.y;var r=e.options||{};e.mutex,r.lang;var o=[];if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,n.setOptions(r),"[object Array]"===Object.prototype.toString.call(t)){var i=0;for(o=[],i=0;i<t.length;i+=1)"[object Array]"===Object.prototype.toString.call(t[i])?o.push([n.doBidiReorder(t[i][0]),t[i][1],t[i][2]]):o.push([n.doBidiReorder(t[i])]);e.text=o}else e.text=n.doBidiReorder(t);n.setOptions({isInputVisual:!0})}])}(rG),rG.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new N$(e),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new $$(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new I$(this.contents),this.head=new L$(this),this.name=new z$(this),this.cmap=new M$(this),this.toUnicode={},this.hhea=new O$(this),this.maxp=new Q$(this),this.hmtx=new H$(this),this.post=new U$(this),this.os2=new D$(this),this.loca=new G$(this),this.glyf=new V$(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var e,t,n,r,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,n,r,o;for(o=[],t=0,n=(r=this.bbox).length;t<n;t++)e=r[t],o.push(Math.round(e*this.scaleFactor));return o}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),32768&(t=r>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(o=this.familyClass)||2===o||3===o||4===o||5===o||7===o,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(e){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[e]:void 0)||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,n){var r,o,i,s;for(i=0,o=0,s=(e=""+e).length;0<=s?o<s:o>s;o=0<=s?++o:--o)r=e.charCodeAt(o),i+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/t)||0;return i*(t/1e3)},e.prototype.lineHeight=function(e,t){var n;return null==t&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},e}();var E$,N$=function(){function e(e){this.data=null!=e?e:[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(e){var t,n,r;for(r=[],t=0,n=e.length;0<=n?t<n:t>n;t=0<=n?++t:--t)r.push(this.writeByte(e.charCodeAt(t)));return r},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,n,r,o,i,s,a;return e=this.readByte(),t=this.readByte(),n=this.readByte(),r=this.readByte(),o=this.readByte(),i=this.readByte(),s=this.readByte(),a=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^o)+65536*(255^i)+256*(255^s)+(255^a)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*r+16777216*o+65536*i+256*s+a},e.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(e){var t,n,r,o;for(o=[],n=0,r=e.length;n<r;n++)t=e[n],o.push(this.writeByte(t));return o},e}(),I$=function(){var e;function t(e){var t,n,r;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:n>r;n=0<=r?++n:--n)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var n,r,o,i,s,a,l,c,u,d,A,h,p;for(p in A=Object.keys(t).length,a=Math.log(2),u=16*Math.floor(Math.log(A)/a),i=Math.floor(u/a),c=16*A-u,(r=new N$).writeInt(this.scalarType),r.writeShort(A),r.writeShort(u),r.writeShort(i),r.writeShort(c),o=16*A,l=r.pos+o,s=null,h=[],t)for(d=t[p],r.writeString(p),r.writeInt(e(d)),r.writeInt(l),r.writeInt(d.length),h=h.concat(d),"head"===p&&(s=l),l+=d.length;l%4;)h.push(0),l++;return r.write(h),n=2981146554-e(r.data),r.pos=s+8,r.writeUInt32(n),r.data},e=function(e){var t,n,r,o;for(e=q$.call(e);e.length%4;)e.push(0);for(r=new N$(e),n=0,t=0,o=e.length;t<o;t=t+=4)n+=r.readUInt32();return 4294967295&n},t}(),F$={}.hasOwnProperty,T$=function(e,t){for(var n in t)F$.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};E$=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var L$=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return T$(e,E$),e.prototype.tag="head",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},e.prototype.encode=function(e){var t;return(t=new N$).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},e}(),P$=function(){function e(e,t){var n,r,o,i,s,a,l,c,u,d,A,h,p,f,m,g,y;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),u=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(a=0;a<256;++a)this.codeMap[a]=e.readByte();break;case 4:for(A=e.readUInt16(),d=A/2,e.pos+=6,o=function(){var t,n;for(n=[],a=t=0;0<=d?t<d:t>d;a=0<=d?++t:--t)n.push(e.readUInt16());return n}(),e.pos+=2,p=function(){var t,n;for(n=[],a=t=0;0<=d?t<d:t>d;a=0<=d?++t:--t)n.push(e.readUInt16());return n}(),l=function(){var t,n;for(n=[],a=t=0;0<=d?t<d:t>d;a=0<=d?++t:--t)n.push(e.readUInt16());return n}(),c=function(){var t,n;for(n=[],a=t=0;0<=d?t<d:t>d;a=0<=d?++t:--t)n.push(e.readUInt16());return n}(),r=(this.length-e.pos+this.offset)/2,s=function(){var t,n;for(n=[],a=t=0;0<=r?t<r:t>r;a=0<=r?++t:--t)n.push(e.readUInt16());return n}(),a=m=0,y=o.length;m<y;a=++m)for(f=o[a],n=g=h=p[a];h<=f?g<=f:g>=f;n=h<=f?++g:--g)0===c[a]?i=n+l[a]:0!==(i=s[c[a]/2+(n-h)-(d-a)]||0)&&(i+=l[a]),this.codeMap[n]=65535&i}e.pos=u}return e.encode=function(e,t){var n,r,o,i,s,a,l,c,u,d,A,h,p,f,m,g,y,v,b,w,x,k,_,C,B,S,j,E,N,I,F,T,L,P,M,O,D,U,R,z,Q,H,q,V,K,W;switch(E=new N$,i=Object.keys(e).sort(function(e,t){return e-t}),t){case"macroman":for(p=0,f=function(){var e=[];for(h=0;h<256;++h)e.push(0);return e}(),g={0:0},o={},N=0,L=i.length;N<L;N++)null==g[q=e[r=i[N]]]&&(g[q]=++p),o[r]={old:e[r],new:g[e[r]]},f[r]=g[e[r]];return E.writeUInt16(1),E.writeUInt16(0),E.writeUInt32(12),E.writeUInt16(0),E.writeUInt16(262),E.writeUInt16(0),E.write(f),{charMap:o,subtable:E.data,maxGlyphID:p+1};case"unicode":for(S=[],u=[],y=0,g={},n={},m=l=null,I=0,P=i.length;I<P;I++)null==g[b=e[r=i[I]]]&&(g[b]=++y),n[r]={old:b,new:g[b]},s=g[b]-r,null!=m&&s===l||(m&&u.push(m),S.push(r),l=s),m=r;for(m&&u.push(m),u.push(65535),S.push(65535),C=2*(_=S.length),k=2*Math.pow(Math.log(_)/Math.LN2,2),d=Math.log(k/2)/Math.LN2,x=2*_-k,a=[],w=[],A=[],h=F=0,M=S.length;F<M;h=++F){if(B=S[h],c=u[h],65535===B){a.push(0),w.push(0);break}if(B-(j=n[B].new)>=32768)for(a.push(0),w.push(2*(A.length+_-h)),r=T=B;B<=c?T<=c:T>=c;r=B<=c?++T:--T)A.push(n[r].new);else a.push(j-B),w.push(0)}for(E.writeUInt16(3),E.writeUInt16(1),E.writeUInt32(12),E.writeUInt16(4),E.writeUInt16(16+8*_+2*A.length),E.writeUInt16(0),E.writeUInt16(C),E.writeUInt16(k),E.writeUInt16(d),E.writeUInt16(x),Q=0,O=u.length;Q<O;Q++)r=u[Q],E.writeUInt16(r);for(E.writeUInt16(0),H=0,D=S.length;H<D;H++)r=S[H],E.writeUInt16(r);for(V=0,U=a.length;V<U;V++)s=a[V],E.writeUInt16(s);for(K=0,R=w.length;K<R;K++)v=w[K],E.writeUInt16(v);for(W=0,z=A.length;W<z;W++)p=A[W],E.writeUInt16(p);return{charMap:n,subtable:E.data,maxGlyphID:y+1}}},e}(),M$=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return T$(e,E$),e.prototype.tag="cmap",e.prototype.parse=function(e){var t,n,r;for(e.pos=this.offset,this.version=e.readUInt16(),r=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)t=new P$(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},e.encode=function(e,t){var n,r;return null==t&&(t="macroman"),n=P$.encode(e,t),(r=new N$).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),O$=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return T$(e,E$),e.prototype.tag="hhea",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},e}(),D$=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return T$(e,E$),e.prototype.tag="OS/2",e.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,n;for(n=[],t=0;t<10;++t)n.push(e.readByte());return n}(),this.charRange=function(){var t,n;for(n=[],t=0;t<4;++t)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,n;for(n=[],t=0;t<2;t=++t)n.push(e.readInt());return n}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},e}(),U$=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return T$(e,E$),e.prototype.tag="post",e.prototype.parse=function(e){var t,n,r;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var o;for(n=e.readUInt16(),this.glyphNameIndex=[],o=0;0<=n?o<n:o>n;o=0<=n?++o:--o)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],r=[];e.pos<this.offset+this.length;)t=e.readByte(),r.push(this.names.push(e.readString(t)));return r;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 262144:return this.map=function(){var t,n,r;for(r=[],o=t=0,n=this.file.maxp.numGlyphs;0<=n?t<n:t>n;o=0<=n?++t:--t)r.push(e.readUInt32());return r}.call(this)}},e}(),R$=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},z$=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return T$(e,E$),e.prototype.tag="name",e.prototype.parse=function(e){var t,n,r,o,i,s,a,l,c,u,d;for(e.pos=this.offset,e.readShort(),t=e.readShort(),s=e.readShort(),n=[],o=0;0<=t?o<t:o>t;o=0<=t?++o:--o)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+s+e.readShort()});for(a={},o=c=0,u=n.length;c<u;o=++c)r=n[o],e.pos=r.offset,l=e.readString(r.length),i=new R$(l,r),null==a[d=r.nameID]&&(a[d]=[]),a[r.nameID].push(i);this.strings=a,this.copyright=a[0],this.fontFamily=a[1],this.fontSubfamily=a[2],this.uniqueSubfamily=a[3],this.fontName=a[4],this.version=a[5];try{this.postscriptName=a[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(e){this.postscriptName=a[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=a[7],this.manufacturer=a[8],this.designer=a[9],this.description=a[10],this.vendorUrl=a[11],this.designerUrl=a[12],this.license=a[13],this.licenseUrl=a[14],this.preferredFamily=a[15],this.preferredSubfamily=a[17],this.compatibleFull=a[18],this.sampleText=a[19]},e}(),Q$=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return T$(e,E$),e.prototype.tag="maxp",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},e}(),H$=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return T$(e,E$),e.prototype.tag="hmtx",e.prototype.parse=function(e){var t,n,r,o,i,s,a;for(e.pos=this.offset,this.metrics=[],t=0,s=this.file.hhea.numberOfMetrics;0<=s?t<s:t>s;t=0<=s?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,o;for(o=[],t=n=0;0<=r?n<r:n>r;t=0<=r?++n:--n)o.push(e.readInt16());return o}(),this.widths=function(){var e,t,n,r;for(r=[],e=0,t=(n=this.metrics).length;e<t;e++)o=n[e],r.push(o.advance);return r}.call(this),n=this.widths[this.widths.length-1],a=[],t=i=0;0<=r?i<r:i>r;t=0<=r?++i:--i)a.push(this.widths.push(n));return a},e.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},e}(),q$=[].slice,V$=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return T$(e,E$),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(e){var t,n,r,o,i,s,a,l,c,u;return e in this.cache?this.cache[e]:(o=this.file.loca,t=this.file.contents,n=o.indexOf(e),0===(r=o.lengthOf(e))?this.cache[e]=null:(t.pos=this.offset+n,i=(s=new N$(t.read(r))).readShort(),l=s.readShort(),u=s.readShort(),a=s.readShort(),c=s.readShort(),this.cache[e]=-1===i?new W$(s,l,u,a,c):new K$(s,i,l,u,a,c),this.cache[e]))},e.prototype.encode=function(e,t,n){var r,o,i,s,a;for(i=[],o=[],s=0,a=t.length;s<a;s++)r=e[t[s]],o.push(i.length),r&&(i=i.concat(r.encode(n)));return o.push(i.length),{table:i,offsets:o}},e}(),K$=function(){function e(e,t,n,r,o,i){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=r,this.xMax=o,this.yMax=i,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),W$=function(){function e(e,t,n,r,o){var i,s;for(this.raw=e,this.xMin=t,this.yMin=n,this.xMax=r,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;s=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&s;)i.pos+=1&s?4:2,128&s?i.pos+=8:64&s?i.pos+=4:8&s&&(i.pos+=2)}return e.prototype.encode=function(){var e,t,n;for(t=new N$(q$.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),G$=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return T$(e,E$),e.prototype.tag="loca",e.prototype.parse=function(e){var t,n;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,r;for(r=[],n=0,t=this.length;n<t;n+=2)r.push(2*e.readUInt16());return r}.call(this):function(){var t,r;for(r=[],n=0,t=this.length;n<t;n+=4)r.push(e.readUInt32());return r}.call(this)},e.prototype.indexOf=function(e){return this.offsets[e]},e.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},e.prototype.encode=function(e,t){for(var n=new Uint32Array(this.offsets.length),r=0,o=0,i=0;i<n.length;++i)if(n[i]=r,o<t.length&&t[o]==i){++o,n[i]=r;var s=this.offsets[i],a=this.offsets[i+1]-s;a>0&&(r+=a)}for(var l=new Array(4*n.length),c=0;c<n.length;++c)l[4*c+3]=255&n[c],l[4*c+2]=(65280&n[c])>>8,l[4*c+1]=(16711680&n[c])>>16,l[4*c]=(4278190080&n[c])>>24;return l},e}(),$$=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,n,r,o;for(t in r=this.font.cmap.tables[0].codeMap,e={},o=this.subset)n=o[t],e[t]=r[n];return e},e.prototype.glyphsFor=function(e){var t,n,r,o,i,s,a;for(r={},i=0,s=e.length;i<s;i++)r[o=e[i]]=this.font.glyf.glyphFor(o);for(o in t=[],r)(null!=(n=r[o])?n.compound:void 0)&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(o in a=this.glyphsFor(t))n=a[o],r[o]=n;return r},e.prototype.encode=function(e,t){var n,r,o,i,s,a,l,c,u,d,A,h,p,f,m;for(r in n=M$.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(e),A={0:0},m=n.charMap)A[(a=m[r]).old]=a.new;for(h in d=n.maxGlyphID,i)h in A||(A[h]=d++);return c=function(e){var t,n;for(t in n={},e)n[e[t]]=t;return n}(A),u=Object.keys(c).sort(function(e,t){return e-t}),p=function(){var e,t,n;for(n=[],e=0,t=u.length;e<t;e++)s=u[e],n.push(c[s]);return n}(),o=this.font.glyf.encode(i,p,A),l=this.font.loca.encode(o.offsets,p),f={cmap:this.font.cmap.raw(),glyf:o.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(f["OS/2"]=this.font.os2.raw()),this.font.directory.encode(f)},e}();rG.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},t.convert=function(n){var r,o,i,s;if(Array.isArray(n))return"["+function(){var e,o,i;for(i=[],e=0,o=n.length;e<o;e++)r=n[e],i.push(t.convert(r));return i}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(o in i=["<<"],n)s=n[o],i.push("/"+o+" "+t.convert(s));return i.push(">>"),i.join("\n")}return""+n},t}();var Y$=n(354),Z$=n.n(Y$);const X$=n.p+"images/SureCookieConsentLog.a6e2c36a.png",J$="#000000",eY="#6b7280",tY="#1f2937",nY="#e5e7eb",rY=e=>String(e??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),oY=(e,t)=>{const n=e.map(e=>`<th style="background:${tY};color:#ffffff;font-weight:700;font-size:11px;text-align:inherit;padding:6px 10px;border:1px solid ${tY};">${rY(e)}</th>`).join(""),r=t.map(([e,t],n)=>`<tr style="background:${n%2==1?"#f9fafb":"#ffffff"};"><td style="font-size:10px;padding:5px 10px;border:1px solid ${nY};width:38%;">${rY(e)}</td><td style="font-size:10px;padding:5px 10px;border:1px solid ${nY};">${(e=>rY(e).replace(/\n/g,"<br>"))(t)}</td></tr>`).join("");return`<table style="width:100%;border-collapse:collapse;margin-bottom:14px;"><thead><tr>${n}</tr></thead><tbody>${r}</tbody></table>`},iY=(e,t)=>`<h2 style="font-size:${t}px;font-weight:700;color:${J$};margin:0 0 6px;">${rY(e)}</h2>`,sY=e=>`<p style="font-size:10px;color:${eY};margin:0 0 12px;line-height:1.5;">${rY(e)}</p>`,aY=()=>sY((0,pt.__)("This document contains a record of the consent choice stored by SureCookie. It may be used for internal documentation and review. Legal requirements may vary.","surecookie")),lY=()=>[(0,pt.__)("Field","surecookie"),(0,pt.__)("Value","surecookie")],cY=()=>[(0,pt.__)("Category","surecookie"),(0,pt.__)("Status","surecookie")],uY=({generatedAt:e,website:t,logoUrl:n=""})=>{const r=n?`<img src="${rY(n)}" alt="" style="height:10px;width:10px;vertical-align:middle;margin:0 2px;">`:"";return`<div style="margin-top:18px;">\n\t\t${iY((0,pt.__)("Legal Information","surecookie"),14)}\n\t\t<p style="font-size:10px;color:${eY};margin:0 0 3px;">${rY((0,pt.__)("Date of Generation","surecookie"))}: ${rY(e)}</p>\n\t\t<p style="font-size:10px;color:${eY};margin:0 0 8px;">${rY((0,pt.__)("Website","surecookie"))}: ${rY(t)}</p>\n\t\t${sY((0,pt.__)("This document is automatically generated by the SureCookie plugin and contains a record of the consent choice stored at the time of export. It may be used for internal documentation and review. Legal requirements may vary.","surecookie"))}\n\t\t<p style="font-size:9px;color:${eY};text-align:center;margin-top:16px;">${rY((0,pt.__)("Powered by","surecookie"))} ${r} SureCookie</p>\n\t</div>`},dY=(e,t)=>`<div dir="${t?"rtl":"ltr"}" style="font-family:'Helvetica Neue',Arial,sans-serif;color:${J$};text-align:${t?"right":"left"};">${e}</div>`,AY=e=>Qo(e,{includeTimezone:!0})||"N/A",hY=e=>{const t=[];if(Po(e)){const n=/^https?:\/\//i.test(e.origin_site??"")?e.origin_site:(0,pt.__)("N/A","surecookie");t.push([(0,pt.__)("Received from","surecookie"),n])}const n=Mo(e);return n.length>0&&t.push([(0,pt.__)("Shared to","surecookie"),n.join("\n")]),t},pY=(e,t=!0)=>{const n=[[(0,pt.__)("Log ID","surecookie"),String(e.id||"N/A")],[(0,pt.__)("Timestamp","surecookie"),AY(e.timestamp)],...Ro()?[[(0,pt.__)("IP Address","surecookie"),Oo(e.ip_address)],[(0,pt.__)("Country","surecookie"),Do(e.country)],[(0,pt.__)("State / Region","surecookie"),Uo(e.region)]]:[],[(0,pt.__)("Consent Status","surecookie"),Fo(e.action||e.status||"unknown")],[(0,pt.__)("Consent Preset","surecookie"),e.geo_preset_id||(0,pt.__)("Default","surecookie")]];return t&&n.push([(0,pt.__)("Consent Session ID","surecookie"),e.session_id||"N/A"]),[...n,...hY(e)]},fY=(e,t)=>{const n=e.preferences||{};return"object"!=typeof n||Array.isArray(n)||0===Object.keys(n).length?[]:Object.entries(n).reduce((e,[n,r])=>{const o=t.find(e=>e.id===n);return o&&e.push([o.name,To(r)?(0,pt.__)("Accepted","surecookie"):(0,pt.__)("Declined","surecookie")]),e},[])},mY=()=>({generatedAt:AY(new Date),website:"undefined"!=typeof window?window.location.origin:""}),gY=()=>({rtl:(0,pt.isRTL)(),logoUrl:X$}),yY=async(e,t)=>{const n=document.createElement("div");n.style.cssText="position:absolute;left:-9999px;top:0;width:760px;background:#ffffff;padding:16px;box-sizing:border-box;direction:ltr;",n.innerHTML=e,document.body.appendChild(n);try{const e=await Z$()(n,{scale:2,backgroundColor:"#ffffff",windowWidth:760,scrollX:0,scrollY:-window.scrollY}),r=new rG({unit:"pt",format:"a4"}),o=e.width/547,i=793.89,s=Math.floor(i*o);for(let t=0,n=0;t<e.height;t+=s,n++){const i=Math.min(s,e.height-t),a=document.createElement("canvas");a.width=e.width,a.height=i,a.getContext("2d").drawImage(e,0,t,e.width,i,0,0,e.width,i),n>0&&r.addPage(),r.addImage(a.toDataURL("image/png"),"PNG",24,24,547,i/o)}r.save(t)}finally{n.remove()}},vY=(e,t=[])=>{const n=(({detailRows:e,preferenceRows:t=[],generatedAt:n,website:r},{rtl:o=!1,logoUrl:i=""}={})=>{const s=`\n\t\t${iY((0,pt.__)("CONSENT RECORD","surecookie"),18)}\n\t\t${aY()}\n\t\t${iY((0,pt.__)("Consent Details","surecookie"),13)}\n\t\t${oY(lY(),e)}\n\t\t${t.length?iY((0,pt.__)("Cookie Preferences","surecookie"),13)+oY(cY(),t):""}\n\t\t${uY({generatedAt:n,website:r,logoUrl:i})}`;return dY(s,o)})({detailRows:pY(e),preferenceRows:fY(e,t),...mY()},gY());return yY(n,`consent-record-${e.id||"unknown"}.pdf`)},bY=(e,t,n=[])=>{if(!e||0===e.length)return Promise.resolve();if(1===e.length)return vY(e[0],n);const r=e.map(e=>e.timestamp).filter(Boolean).sort(),o=r.length>1?`${AY(r[0])} - ${AY(r[r.length-1])}`:AY(r[0]),i=(({summaryRows:e,records:t,generatedAt:n,website:r},{rtl:o=!1,logoUrl:i=""}={})=>{const s=t.map(({detailRows:e,preferenceRows:t=[]},n)=>`\n\t\t\t${iY(`${(0,pt.__)("Consent Record","surecookie")} #${n+1}`,12)}\n\t\t\t${oY(lY(),e)}\n\t\t\t${t.length?oY(cY(),t):""}`).join(""),a=`\n\t\t${iY((0,pt.__)("CONSENT RECORD","surecookie"),18)}\n\t\t${aY()}\n\t\t${iY((0,pt.__)("Session Summary","surecookie"),13)}\n\t\t${oY(lY(),e)}\n\t\t${s}\n\t\t${uY({generatedAt:n,website:r,logoUrl:i})}`;return dY(a,o)})({summaryRows:[[(0,pt.__)("Session ID","surecookie"),t||"N/A"],[(0,pt.__)("Total Records","surecookie"),String(e.length)],[(0,pt.__)("Date Range","surecookie"),o]],records:e.map(e=>({detailRows:pY(e,!1),preferenceRows:fY(e,n)})),...mY()},gY()),s=t?t.substring(0,8):"unknown";return yY(i,`consent-proof-session-${s}.pdf`)},wY={accepted:(0,pt.__)("Accepted","surecookie"),declined:(0,pt.__)("Declined","surecookie"),partially_accepted:(0,pt.__)("Partially Accepted","surecookie"),received:(0,pt.__)("Received","surecookie"),shared:(0,pt.__)("Shared","surecookie")},xY=["","accepted","declined","partially_accepted","received","shared"],kY="h-10",_Y=({skeletonRowCount:e=5,title:t,isLogsPage:n=!1,selectedLogs:r=[],onSelectAll:o,onSelectLog:i,onBulkDelete:s,bulkDeletePending:a=!1,consentLogs:l=[],isLoadingLogs:c=!1,renderFooter:u,enableBulkActions:d=!1,showActions:A=!1,onDelete:h,enabledConsentLogging:p=!0,isLoadingSettings:f=!1,searchInput:m="",onSearchChange:g,filters:y={action:"",country:"",dateFrom:"",dateTo:""},onActionChange:v,onCountryChange:b,onDateRangeChange:w,countries:x=[],countriesLoading:k=!1,hasActiveFilters:_=!1,onClearFilters:C})=>{const B=Yi(),S=r.length>0,j=Ro(),E=p&&n,N=p&&!n,I=!!t||E||N,F=(0,ct.useMemo)(()=>new Map(l.map(e=>[e.id,Mo(e)])),[l]),{data:T=[]}=Jn(),{isOpen:L,setIsOpen:P,entity:M,openForView:O}=(()=>{const[e,t]=(0,ct.useState)(!1),[n,r]=(0,ct.useState)(null),o=(0,ct.useCallback)(e=>{r(e),t(!0)},[]),i=(0,ct.useCallback)(()=>{t(!1),r(null)},[]);return{isOpen:e,setIsOpen:t,entity:n,openForView:o,close:i}})();let D=!1;p||f?c||f?D=(0,yt.jsx)(PQ,{count:e,showCheckbox:n,showIpColumns:j,showPagination:!!u}):l?.length?l?.length&&(D=(0,yt.jsxs)(sU,{checkboxSelection:d,"aria-label":(0,pt.__)("Consent logs","surecookie"),children:[(0,yt.jsxs)(sU.Head,{selected:r.length>0,onChangeSelection:e=>o(e),indeterminate:r.length>0&&r.length<l.length,children:[(0,yt.jsx)(sU.HeadCell,{children:(0,pt.__)("Date & Time","surecookie")}),j&&(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(sU.HeadCell,{children:(0,pt.__)("IP Address","surecookie")}),(0,yt.jsx)(sU.HeadCell,{children:(0,pt.__)("Country","surecookie")})]}),(0,yt.jsx)(sU.HeadCell,{children:(0,pt.__)("Status","surecookie")}),A&&(0,yt.jsx)(sU.HeadCell,{className:"text-center",children:(0,pt.__)("Actions","surecookie")})]}),(0,yt.jsx)(sU.Body,{children:l.map(e=>(0,yt.jsxs)(sU.Row,{value:e,selected:r.includes(e.id),onChangeSelection:t=>{i(t,e.id)},className:"transition-colors duration-150 hover:bg-background-secondary cursor-pointer",onClick:t=>{const n=t.target;"checkbox"===n.type||n.closest('[role="checkbox"]')||n.closest(".checkbox")||n.closest('input[type="checkbox"]')||"INPUT"===n.tagName||O(e)},children:[(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Iw,{as:"span",size:14,weight:400,color:"secondary",children:Qo(e.timestamp)})}),j&&(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Iw,{as:"span",size:14,weight:400,color:"secondary",className:"font-mono",children:Oo(e.ip_address)})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Iw,{as:"span",size:14,weight:400,color:"secondary",children:Do(e.country)})})]}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,yt.jsx)(uw,{className:"w-fit",label:Fo(e.action),variant:Lo(e.action),size:"sm"}),Po(e)&&(0,yt.jsx)(e_,{content:(0,pt.__)("Received","surecookie"),children:(0,yt.jsx)(hU,{size:14,className:"text-blue-500 shrink-0"})}),(F.get(e.id)??[]).length>0&&(0,yt.jsx)(e_,{content:(0,pt.__)("Shared","surecookie"),children:(0,yt.jsx)(Ib,{size:14,className:"text-green-500 shrink-0"})})]})}),A&&(0,yt.jsx)(sU.Cell,{children:(0,yt.jsxs)("div",{className:"flex justify-center gap-2",children:[(0,yt.jsx)(e_,{content:(0,pt.__)("Download PDF","surecookie"),children:(0,yt.jsx)(Fa,{className:"[&_svg]:size-3.5 text-icon-secondary",variant:"ghost",size:"xs",icon:(0,yt.jsx)(pU,{size:14}),"aria-label":(0,pt.sprintf)(/* translators: %s: consent log timestamp */ /* translators: %s: consent log timestamp */
7 (0,pt.__)("Download PDF for consent log from %s","surecookie"),Qo(e.timestamp)),onClick:async t=>{t.stopPropagation();try{const t=await(n=e.id,Fn()({method:"GET",path:`/surecookie/v1/consent-logs/generate-pdf?log_id=${n}`}));t&&t.logs&&t.logs.length>0?await bY(t.logs,t.session_id,T):t&&t.log&&await vY(t.log,T)}catch(e){console.error("[SureCookie] PDF download error:",e)}var n}})}),(0,yt.jsx)(e_,{content:(0,pt.__)("Delete","surecookie"),children:(0,yt.jsx)(Fa,{className:"[&_svg]:size-3.5",variant:"ghost",size:"xs",icon:(0,yt.jsx)(fU,{size:14}),"aria-label":(0,pt.sprintf)(/* translators: %s: consent log timestamp */ /* translators: %s: consent log timestamp */
8 (0,pt.__)("Delete consent log from %s","surecookie"),Qo(e.timestamp)),onClick:t=>{t.stopPropagation(),h&&h(e)},destructive:!0})})]})})]},e.id||e.timestamp))}),!!u&&(0,yt.jsx)(sU.Footer,{children:"function"==typeof u?u():u})]})):D=(0,yt.jsx)(MQ,{icon:Rb,title:(0,pt.__)("Consent log is empty","surecookie"),description:(0,pt.__)("Your consent logs will be displayed here once users interact with the banner","surecookie")}):D=(0,yt.jsx)(MQ,{title:(0,pt.__)("Consent Logging Disabled","surecookie"),description:(0,pt.__)("Enable consent logging to view analytics data and recent consent logs.","surecookie"),actionLabel:(0,pt.__)("Enable Consent Logging","surecookie"),onActionClick:()=>B("/settings/general/consent-data")});const U=()=>(0,yt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,yt.jsx)(Iw,{size:14,weight:400,color:"tertiary",children:(0,ct.createInterpolateElement)((0,pt.__)("<span></span> Selected","surecookie"),{span:(0,yt.jsx)("span",{children:r.length})})}),(0,yt.jsx)(Fa,{size:"sm",variant:"outline",destructive:!0,onClick:e=>{e.stopPropagation(),s()},disabled:a,icon:(0,yt.jsx)(fU,{size:14}),children:a?(0,pt.__)("Deleting…","surecookie"):(0,pt.__)("Delete","surecookie")})]});return(0,yt.jsxs)(Dk,{className:"relative w-full h-fit border border-solid rounded-xl border-border-subtle p-4 shadow-sm bg-background-primary gap-3 overflow-clip",containerType:"flex",direction:"column",children:[I&&(0,yt.jsx)(Dk.Item,{children:(0,yt.jsxs)("div",{className:"flex justify-between gap-4 min-h-8 items-center",children:[!!t&&(0,yt.jsx)(Iw,{as:"h6",weight:600,size:16,color:"primary",className:"whitespace-nowrap shrink-0",children:t}),(0,yt.jsxs)("div",{className:"flex items-center justify-end w-full",children:[E&&S&&U(),E&&!S&&(0,yt.jsxs)("div",{className:"w-full flex gap-4 justify-end",children:[(0,yt.jsx)("div",{className:"w-full max-w-48",children:(0,yt.jsxs)(lk,{value:y.action,onChange:v,size:"sm",children:[(0,yt.jsx)(lk.Button,{placeholder:(0,pt.__)("All Actions","surecookie"),className:`w-full ${kY}`,render:e=>e?wY[e]||e:(0,pt.__)("All Actions","surecookie")}),(0,yt.jsx)(lk.Options,{children:xY.map(e=>(0,yt.jsx)(lk.Option,{value:e,children:e?wY[e]:(0,pt.__)("All Actions","surecookie")},e))})]})}),j&&(0,yt.jsx)("div",{className:"w-full max-w-52",children:(0,yt.jsxs)(lk,{value:y.country,onChange:b,size:"sm",disabled:k,children:[(0,yt.jsx)(lk.Button,{placeholder:(0,pt.__)("All Countries","surecookie"),className:`w-full ${kY}`,render:e=>e?Do(e):(0,pt.__)("All Countries","surecookie")}),(0,yt.jsxs)(lk.Options,{children:[(0,yt.jsx)(lk.Option,{value:"",children:(0,pt.__)("All Countries","surecookie")}),x.map(e=>(0,yt.jsx)(lk.Option,{value:e,children:Do(e)},e))]})]})}),(0,yt.jsx)("div",{className:"w-full max-w-60",children:(0,yt.jsx)(j_,{type:"text",placeholder:j?(0,pt.__)("IP address or Session ID…","surecookie"):(0,pt.__)("Session ID…","surecookie"),value:m,onChange:g,prefix:(0,yt.jsx)(mU,{size:16}),size:"sm",className:"w-full min-w-52 [&>input]:h-10"})}),(0,yt.jsx)(LQ,{dateFrom:y.dateFrom,dateTo:y.dateTo,onChange:w}),_&&(0,yt.jsx)(e_,{content:(0,pt.__)("Clear Filters","surecookie"),children:(0,yt.jsx)(Fa,{variant:"ghost",size:"xs","aria-label":(0,pt.__)("Clear Filters","surecookie"),onClick:C,icon:(0,yt.jsx)(gU,{size:16}),className:"shrink-0"})})]}),N&&S&&U(),N&&!S&&(0,yt.jsx)(Fa,{size:"xs",variant:"ghost",onClick:e=>{e.stopPropagation(),B("/analytics/logs")},icon:(0,yt.jsx)(Vk,{}),iconPosition:"right",className:"min-w-fit",children:(0,pt.__)("View All Logs","surecookie")})]})]})}),(0,yt.jsx)(Dk.Item,{children:D}),(0,yt.jsx)(wU,{isOpen:L,setIsOpen:P,log:M})]})},CY=_b("mouse-pointer-2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);var BY=n(9843),SY=n.n(BY),jY=n(1882),EY=n.n(jY),NY=n(3181),IY=n.n(NY),FY=n(8156),TY=n.n(FY),LY=n(3031),PY=n.n(LY),MY=n(7350),OY=n.n(MY);function DY(e,t){if(!e)throw new Error("Invariant failed")}var UY=n(5015),RY=n.n(UY),zY=n(3805),QY=n.n(zY),HY=n(2199),qY=n(1741),VY=n.n(qY),KY=n(8023),WY=n.n(KY),GY=function(e){return 0===e?0:e>0?1:-1},$Y=function(e){return RY()(e)&&e.indexOf("%")===e.length-1},YY=function(e){return WY()(e)&&!VY()(e)},ZY=function(e){return YY(e)||RY()(e)},XY=0,JY=function(e){var t=++XY;return"".concat(e||"").concat(t)},eZ=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!YY(e)&&!RY()(e))return r;if($Y(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return VY()(n)&&(n=r),o&&n>t&&(n=t),n},tZ=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},nZ=function(e,t){return YY(e)&&YY(t)?function(n){return e+n*(t-e)}:function(){return t}};function rZ(e,t,n){return e&&e.length?e.find(function(e){return e&&("function"==typeof t?t(e):TY()(e,t))===n}):null}function oZ(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function iZ(e){return iZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iZ(e)}var sZ=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],aZ=["points","pathLength"],lZ={svg:["viewBox","children"],polygon:aZ,polyline:aZ},cZ=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],uZ=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,ft.isValidElement)(e)&&(n=e.props),!QY()(n))return null;var r={};return Object.keys(n).forEach(function(e){cZ.includes(e)&&(r[e]=t||function(t){return n[e](n,t)})}),r},dZ=function(e,t,n){if(!QY()(e)||"object"!==iZ(e))return null;var r=null;return Object.keys(e).forEach(function(o){var i=e[o];cZ.includes(o)&&"function"==typeof i&&(r||(r={}),r[o]=function(e,t,n){return function(r){return e(t,n,r),null}}(i,t,n))}),r},AZ=["children"],hZ=["children"];function pZ(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var fZ={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},mZ=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},gZ=null,yZ=null,vZ=function e(t){if(t===gZ&&Array.isArray(yZ))return yZ;var n=[];return ft.Children.forEach(t,function(t){SY()(t)||((0,HY.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))}),yZ=n,gZ=t,n};function bZ(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(function(e){return mZ(e)}):[mZ(t)],vZ(e).forEach(function(e){var t=TY()(e,"type.displayName")||TY()(e,"type.name");-1!==r.indexOf(t)&&n.push(e)}),n}function wZ(e,t){var n=bZ(e,t);return n&&n[0]}var xZ=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!YY(n)||n<=0||!YY(r)||r<=0)},kZ=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],_Z=function(e,t,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,ft.isValidElement)(e)&&(r=e.props),!QY()(r))return null;var o={};return Object.keys(r).forEach(function(e){var i;(function(e,t,n,r){var o,i=null!==(o=null==lZ?void 0:lZ[r])&&void 0!==o?o:[];return t.startsWith("data-")||!EY()(e)&&(r&&i.includes(t)||sZ.includes(t))||n&&cZ.includes(t)})(null===(i=r)||void 0===i?void 0:i[e],e,t,n)&&(o[e]=r[e])}),o},CZ=function e(t,n){if(t===n)return!0;var r=ft.Children.count(t);if(r!==ft.Children.count(n))return!1;if(0===r)return!0;if(1===r)return BZ(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var i=t[o],s=n[o];if(Array.isArray(i)||Array.isArray(s)){if(!e(i,s))return!1}else if(!BZ(i,s))return!1}return!0},BZ=function(e,t){if(SY()(e)&&SY()(t))return!0;if(!SY()(e)&&!SY()(t)){var n=e.props||{},r=n.children,o=pZ(n,AZ),i=t.props||{},s=i.children,a=pZ(i,hZ);return r&&s?oZ(o,a)&&CZ(r,s):!r&&!s&&oZ(o,a)}return!1},SZ=function(e,t){var n=[],r={};return vZ(e).forEach(function(e,o){if(function(e){return e&&e.type&&RY()(e.type)&&kZ.indexOf(e.type)>=0}(e))n.push(e);else if(e){var i=mZ(e.type),s=t[i]||{},a=s.handler,l=s.once;if(a&&(!l||!r[i])){var c=a(e,i,o);n.push(c),r[i]=!0}}}),n},jZ=["children","width","height","viewBox","className","style","title","desc"];function EZ(){return EZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EZ.apply(this,arguments)}function NZ(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,i=e.className,s=e.style,a=e.title,l=e.desc,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,jZ),u=o||{width:n,height:r,x:0,y:0},d=sr("recharts-surface",i);return gt().createElement("svg",EZ({},_Z(c,!0,"svg"),{className:d,width:n,height:r,style:s,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),gt().createElement("title",null,a),gt().createElement("desc",null,l),t)}var IZ=["children","className"];function FZ(){return FZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FZ.apply(this,arguments)}var TZ=gt().forwardRef(function(e,t){var n=e.children,r=e.className,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,IZ),i=sr("recharts-layer",r);return gt().createElement("g",FZ({className:i},_Z(o,!0),{ref:t}),n)});function LZ(e){return LZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LZ(e)}function PZ(){return PZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PZ.apply(this,arguments)}function MZ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OZ(Object(n),!0).forEach(function(t){UZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function UZ(e,t,n){return t=function(e){var t=function(e){if("object"!=LZ(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=LZ(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==LZ(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RZ(e){return Array.isArray(e)&&ZY(e[0])&&ZY(e[1])?e.join(" ~ "):e}var zZ=function(e){var t=e.separator,n=void 0===t?" : ":t,r=e.contentStyle,o=void 0===r?{}:r,i=e.itemStyle,s=void 0===i?{}:i,a=e.labelStyle,l=void 0===a?{}:a,c=e.payload,u=e.formatter,d=e.itemSorter,A=e.wrapperClassName,h=e.labelClassName,p=e.label,f=e.labelFormatter,m=e.accessibilityLayer,g=void 0!==m&&m,y=DZ({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),v=DZ({margin:0},l),b=!SY()(p),w=b?p:"",x=sr("recharts-default-tooltip",A),k=sr("recharts-tooltip-label",h);b&&f&&null!=c&&(w=f(p,c));var _=g?{role:"status","aria-live":"assertive"}:{};return gt().createElement("div",PZ({className:x,style:y},_),gt().createElement("p",{className:k,style:v},gt().isValidElement(w)?w:"".concat(w)),function(){if(c&&c.length){var e=(d?PY()(c,d):c).map(function(e,t){if("none"===e.type)return null;var r=DZ({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},s),o=e.formatter||u||RZ,i=e.value,a=e.name,l=i,d=a;if(o&&null!=l&&null!=d){var A=o(i,a,e,t,c);if(Array.isArray(A)){var h=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return MZ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?MZ(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(A,2);l=h[0],d=h[1]}else l=A}return gt().createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:r},ZY(d)?gt().createElement("span",{className:"recharts-tooltip-item-name"},d):null,ZY(d)?gt().createElement("span",{className:"recharts-tooltip-item-separator"},n):null,gt().createElement("span",{className:"recharts-tooltip-item-value"},l),gt().createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return gt().createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function QZ(e){return QZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QZ(e)}function HZ(e,t,n){return t=function(e){var t=function(e){if("object"!=QZ(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=QZ(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==QZ(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qZ="recharts-tooltip-wrapper",VZ={visibility:"hidden"};function KZ(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return sr(qZ,HZ(HZ(HZ(HZ({},"".concat(qZ,"-right"),YY(n)&&t&&YY(t.x)&&n>=t.x),"".concat(qZ,"-left"),YY(n)&&t&&YY(t.x)&&n<t.x),"".concat(qZ,"-bottom"),YY(r)&&t&&YY(t.y)&&r>=t.y),"".concat(qZ,"-top"),YY(r)&&t&&YY(t.y)&&r<t.y))}function WZ(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,i=e.position,s=e.reverseDirection,a=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(i&&YY(i[r]))return i[r];var u=n[r]-a-o,d=n[r]+o;return t[r]?s[r]?u:d:s[r]?u<l[r]?Math.max(d,l[r]):Math.max(u,l[r]):d+a>l[r]+c?Math.max(u,l[r]):Math.max(d,l[r])}function GZ(e){return GZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},GZ(e)}function $Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$Z(Object(n),!0).forEach(function(t){nX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$Z(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ZZ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rX(r.key),r)}}function XZ(e,t,n){return t=eX(t),function(e,t){if(t&&("object"===GZ(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,JZ()?Reflect.construct(t,n||[],eX(e).constructor):t.apply(e,n))}function JZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(JZ=function(){return!!e})()}function eX(e){return eX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eX(e)}function tX(e,t){return tX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tX(e,t)}function nX(e,t,n){return(t=rX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rX(e){var t=function(e){if("object"!=GZ(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=GZ(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==GZ(t)?t:t+""}var oX=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return nX(e=XZ(this,t,[].concat(r)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),nX(e,"handleKeyDown",function(t){var n,r,o,i;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(n=null===(r=e.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null===(i=e.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})}),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tX(e,t)}(t,e),n=t,r=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.state.lastBoundingBox.width)>1||Math.abs(e.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:e.width,height:e.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,o=t.animationDuration,i=t.animationEasing,s=t.children,a=t.coordinate,l=t.hasPayload,c=t.isAnimationActive,u=t.offset,d=t.position,A=t.reverseDirection,h=t.useTranslate3d,p=t.viewBox,f=t.wrapperStyle,m=function(e){var t,n,r=e.allowEscapeViewBox,o=e.coordinate,i=e.offsetTopLeft,s=e.position,a=e.reverseDirection,l=e.tooltipBox,c=e.useTranslate3d,u=e.viewBox;return{cssProperties:l.height>0&&l.width>0&&o?function(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}({translateX:t=WZ({allowEscapeViewBox:r,coordinate:o,key:"x",offsetTopLeft:i,position:s,reverseDirection:a,tooltipDimension:l.width,viewBox:u,viewBoxDimension:u.width}),translateY:n=WZ({allowEscapeViewBox:r,coordinate:o,key:"y",offsetTopLeft:i,position:s,reverseDirection:a,tooltipDimension:l.height,viewBox:u,viewBoxDimension:u.height}),useTranslate3d:c}):VZ,cssClasses:KZ({translateX:t,translateY:n,coordinate:o})}}({allowEscapeViewBox:r,coordinate:a,offsetTopLeft:u,position:d,reverseDirection:A,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:p}),g=m.cssClasses,y=m.cssProperties,v=YZ(YZ({transition:c&&n?"transform ".concat(o,"ms ").concat(i):void 0},y),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&l?"visible":"hidden",position:"absolute",top:0,left:0},f);return gt().createElement("div",{tabIndex:-1,className:g,style:v,ref:function(t){e.wrapperNode=t}},s)}}],r&&ZZ(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(ft.PureComponent),iX={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return iX[e]},set:function(e,t){if("string"==typeof e)iX[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach(function(t){iX[t]=e[t]})}}},sX=n(14),aX=n.n(sX);function lX(e,t,n){return!0===t?aX()(e,n):EY()(t)?aX()(e,t):e}function cX(e){return cX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cX(e)}function uX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uX(Object(n),!0).forEach(function(t){gX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function AX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yX(r.key),r)}}function hX(e,t,n){return t=fX(t),function(e,t){if(t&&("object"===cX(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pX()?Reflect.construct(t,n||[],fX(e).constructor):t.apply(e,n))}function pX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pX=function(){return!!e})()}function fX(e){return fX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fX(e)}function mX(e,t){return mX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mX(e,t)}function gX(e,t,n){return(t=yX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yX(e){var t=function(e){if("object"!=cX(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cX(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cX(t)?t:t+""}function vX(e){return e.dataKey}var bX=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),hX(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mX(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,o=t.animationDuration,i=t.animationEasing,s=t.content,a=t.coordinate,l=t.filterNull,c=t.isAnimationActive,u=t.offset,d=t.payload,A=t.payloadUniqBy,h=t.position,p=t.reverseDirection,f=t.useTranslate3d,m=t.viewBox,g=t.wrapperStyle,y=null!=d?d:[];l&&y.length&&(y=lX(d.filter(function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)}),A,vX));var v=y.length>0;return gt().createElement(oX,{allowEscapeViewBox:r,animationDuration:o,animationEasing:i,isAnimationActive:c,active:n,coordinate:a,hasPayload:v,offset:u,position:h,reverseDirection:p,useTranslate3d:f,viewBox:m,wrapperStyle:g},function(e,t){return gt().isValidElement(e)?gt().cloneElement(e,t):"function"==typeof e?gt().createElement(e,t):gt().createElement(zZ,t)}(s,dX(dX({},this.props),{},{payload:y})))}}],r&&AX(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(ft.PureComponent);gX(bX,"displayName","Tooltip"),gX(bX,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!iX.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var wX=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o]},xX=n(5808),kX=n.n(xX);Math.abs,Math.atan2;const _X=Math.cos,CX=(Math.max,Math.min,Math.sin),BX=Math.sqrt,SX=Math.PI,jX=2*SX,EX={draw(e,t){const n=BX(t/SX);e.moveTo(n,0),e.arc(0,0,n,0,jX)}},NX={draw(e,t){const n=BX(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},IX=BX(1/3),FX=2*IX,TX={draw(e,t){const n=BX(t/FX),r=n*IX;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},LX={draw(e,t){const n=BX(t),r=-n/2;e.rect(r,r,n,n)}},PX=CX(SX/10)/CX(7*SX/10),MX=CX(jX/10)*PX,OX=-_X(jX/10)*PX,DX={draw(e,t){const n=BX(.8908130915292852*t),r=MX*n,o=OX*n;e.moveTo(0,-n),e.lineTo(r,o);for(let t=1;t<5;++t){const i=jX*t/5,s=_X(i),a=CX(i);e.lineTo(a*n,-s*n),e.lineTo(s*r-a*o,a*r+s*o)}e.closePath()}},UX=BX(3),RX={draw(e,t){const n=-BX(t/(3*UX));e.moveTo(0,2*n),e.lineTo(-UX*n,-n),e.lineTo(UX*n,-n),e.closePath()}},zX=-.5,QX=BX(3)/2,HX=1/BX(12),qX=3*(HX/2+1),VX={draw(e,t){const n=BX(t/qX),r=n/2,o=n*HX,i=r,s=n*HX+n,a=-i,l=s;e.moveTo(r,o),e.lineTo(i,s),e.lineTo(a,l),e.lineTo(zX*r-QX*o,QX*r+zX*o),e.lineTo(zX*i-QX*s,QX*i+zX*s),e.lineTo(zX*a-QX*l,QX*a+zX*l),e.lineTo(zX*r+QX*o,zX*o-QX*r),e.lineTo(zX*i+QX*s,zX*s-QX*i),e.lineTo(zX*a+QX*l,zX*l-QX*a),e.closePath()}};function KX(e){return function(){return e}}n.dn(KX);const WX=Math.PI,GX=2*WX,$X=1e-6,YX=GX-$X;function ZX(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class XX{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?ZX:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return ZX;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,i){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,s=this._y1,a=n-e,l=r-t,c=i-e,u=s-t,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>$X)if(Math.abs(u*a-l*c)>$X&&o){let A=n-i,h=r-s,p=a*a+l*l,f=A*A+h*h,m=Math.sqrt(p),g=Math.sqrt(d),y=o*Math.tan((WX-Math.acos((p+d-f)/(2*m*g)))/2),v=y/g,b=y/m;Math.abs(v-1)>$X&&this._append`L${e+v*c},${t+v*u}`,this._append`A${o},${o},0,0,${+(u*A>c*h)},${this._x1=e+b*a},${this._y1=t+b*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,o,i){if(e=+e,t=+t,i=!!i,(n=+n)<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(r),a=n*Math.sin(r),l=e+s,c=t+a,u=1^i,d=i?r-o:o-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>$X||Math.abs(this._y1-c)>$X)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%GX+GX),d>YX?this._append`A${n},${n},0,1,${u},${e-s},${t-a}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>$X&&this._append`A${n},${n},0,${+(d>=WX)},${u},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function JX(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new XX(t)}function eJ(e){return eJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eJ(e)}var tJ=["type","size","sizeType"];function nJ(){return nJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nJ.apply(this,arguments)}function rJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rJ(Object(n),!0).forEach(function(t){iJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function iJ(e,t,n){return t=function(e){var t=function(e){if("object"!=eJ(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=eJ(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==eJ(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sJ={symbolCircle:EX,symbolCross:NX,symbolDiamond:TX,symbolSquare:LX,symbolStar:DX,symbolTriangle:RX,symbolWye:VX},aJ=Math.PI/180,lJ=function(e){var t,n,r=e.type,o=void 0===r?"circle":r,i=e.size,s=void 0===i?64:i,a=e.sizeType,l=void 0===a?"area":a,c=oJ(oJ({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,tJ)),{},{type:o,size:s,sizeType:l}),u=c.className,d=c.cx,A=c.cy,h=_Z(c,!0);return d===+d&&A===+A&&s===+s?gt().createElement("path",nJ({},h,{className:sr("recharts-symbols",u),transform:"translate(".concat(d,", ").concat(A,")"),d:(t=function(e){var t="symbol".concat(kX()(e));return sJ[t]||EX}(o),n=function(e,t){let n=null,r=JX(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:KX(e||EX),t="function"==typeof t?t:KX(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:KX(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:KX(+e),o):t},o.context=function(e){return arguments.length?(n=e??null,o):n},o}().type(t).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*aJ;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(s,l,o)),n())})):null};function cJ(e){return cJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cJ(e)}function uJ(){return uJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uJ.apply(this,arguments)}function dJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yJ(r.key),r)}}function hJ(e,t,n){return t=fJ(t),function(e,t){if(t&&("object"===cJ(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pJ()?Reflect.construct(t,n||[],fJ(e).constructor):t.apply(e,n))}function pJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pJ=function(){return!!e})()}function fJ(e){return fJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fJ(e)}function mJ(e,t){return mJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mJ(e,t)}function gJ(e,t,n){return(t=yJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yJ(e){var t=function(e){if("object"!=cJ(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cJ(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cJ(t)?t:t+""}lJ.registerSymbol=function(e,t){sJ["symbol".concat(kX()(e))]=t};var vJ=32,bJ=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),hJ(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mJ(e,t)}(t,e),n=t,r=[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,n=16,r=vJ/6,o=vJ/3,i=e.inactive?t:e.color;if("plainline"===e.type)return gt().createElement("line",{strokeWidth:4,fill:"none",stroke:i,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:vJ,y2:n,className:"recharts-legend-icon"});if("line"===e.type)return gt().createElement("path",{strokeWidth:4,fill:"none",stroke:i,d:"M0,".concat(n,"h").concat(o,"\n A").concat(r,",").concat(r,",0,1,1,").concat(2*o,",").concat(n,"\n H").concat(vJ,"M").concat(2*o,",").concat(n,"\n A").concat(r,",").concat(r,",0,1,1,").concat(o,",").concat(n),className:"recharts-legend-icon"});if("rect"===e.type)return gt().createElement("path",{stroke:"none",fill:i,d:"M0,".concat(4,"h").concat(vJ,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(gt().isValidElement(e.legendIcon)){var s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dJ(Object(n),!0).forEach(function(t){gJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e);return delete s.legendIcon,gt().cloneElement(e.legendIcon,s)}return gt().createElement(lJ,{fill:i,cx:n,cy:n,size:vJ,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,o=t.layout,i=t.formatter,s=t.inactiveColor,a={x:0,y:0,width:vJ,height:vJ},l={display:"horizontal"===o?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map(function(t,n){var o=t.formatter||i,u=sr(gJ(gJ({"recharts-legend-item":!0},"legend-item-".concat(n),!0),"inactive",t.inactive));if("none"===t.type)return null;var d=EY()(t.value)?null:t.value;wX(!EY()(t.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var A=t.inactive?s:t.color;return gt().createElement("li",uJ({className:u,style:l,key:"legend-item-".concat(n)},dZ(e.props,t,n)),gt().createElement(NZ,{width:r,height:r,viewBox:a,style:c},e.renderIcon(t)),gt().createElement("span",{className:"recharts-legend-item-text",style:{color:A}},o?o(d,t,n):d))})}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return gt().createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}],r&&AJ(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(ft.PureComponent);function wJ(e){return wJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wJ(e)}gJ(bJ,"displayName","Legend"),gJ(bJ,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var xJ=["ref"];function kJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kJ(Object(n),!0).forEach(function(t){NJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function CJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,IJ(r.key),r)}}function BJ(e,t,n){return t=jJ(t),function(e,t){if(t&&("object"===wJ(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,SJ()?Reflect.construct(t,n||[],jJ(e).constructor):t.apply(e,n))}function SJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(SJ=function(){return!!e})()}function jJ(e){return jJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jJ(e)}function EJ(e,t){return EJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},EJ(e,t)}function NJ(e,t,n){return(t=IJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IJ(e){var t=function(e){if("object"!=wJ(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wJ(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wJ(t)?t:t+""}function FJ(e){return e.value}var TJ=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return NJ(e=BJ(this,t,[].concat(r)),"lastBoundingBox",{width:-1,height:-1}),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&EJ(e,t)}(t,e),n=t,r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?_J({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,s=r.verticalAlign,a=r.margin,l=r.chartWidth,c=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((l||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:a&&a.right||0}:{left:a&&a.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===s?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===s?{bottom:a&&a.bottom||0}:{top:a&&a.top||0}),_J(_J({},t),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,i=t.wrapperStyle,s=t.payloadUniqBy,a=t.payload,l=_J(_J({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(i)),i);return gt().createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,t){if(gt().isValidElement(e))return gt().cloneElement(e,t);if("function"==typeof e)return gt().createElement(e,t);t.ref;var n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,xJ);return gt().createElement(bJ,n)}(n,_J(_J({},this.props),{},{payload:lX(a,s,FJ)})))}}],o=[{key:"getWithHeight",value:function(e,t){var n=_J(_J({},this.defaultProps),e.props).layout;return"vertical"===n&&YY(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],r&&CJ(n.prototype,r),o&&CJ(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ft.PureComponent);function LJ(){return LJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LJ.apply(this,arguments)}NJ(TJ,"displayName","Legend"),NJ(TJ,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var PJ=function(e){var t=e.cx,n=e.cy,r=e.r,o=e.className,i=sr("recharts-dot",o);return t===+t&&n===+n&&r===+r?ft.createElement("circle",LJ({},_Z(e,!1),uZ(e),{className:i,cx:t,cy:n,r})):null},MJ=n(5556),OJ=n.n(MJ);const{getOwnPropertyNames:DJ,getOwnPropertySymbols:UJ}=Object,{hasOwnProperty:RJ}=Object.prototype;function zJ(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function QJ(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);const{cache:o}=r,i=o.get(t),s=o.get(n);if(i&&s)return i===n&&s===t;o.set(t,n),o.set(n,t);const a=e(t,n,r);return o.delete(t),o.delete(n),a}}function HJ(e){return DJ(e).concat(UJ(e))}const qJ=Object.hasOwn||((e,t)=>RJ.call(e,t));function VJ(e,t){return e===t||!e&&!t&&e!=e&&t!=t}const{getOwnPropertyDescriptor:KJ,keys:WJ}=Object;function GJ(e,t){return e.byteLength===t.byteLength&&a0(new Uint8Array(e),new Uint8Array(t))}function $J(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function YJ(e,t){return e.byteLength===t.byteLength&&a0(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function ZJ(e,t){return VJ(e.getTime(),t.getTime())}function XJ(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function JJ(e,t){return e===t}function e0(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const o=new Array(r),i=e.entries();let s,a,l=0;for(;(s=i.next())&&!s.done;){const r=t.entries();let i=!1,c=0;for(;(a=r.next())&&!a.done;){if(o[c]){c++;continue}const r=s.value,u=a.value;if(n.equals(r[0],u[0],l,c,e,t,n)&&n.equals(r[1],u[1],r[0],u[0],e,t,n)){i=o[c]=!0;break}c++}if(!i)return!1;l++}return!0}const t0=VJ;function n0(e,t,n){const r=WJ(e);let o=r.length;if(WJ(t).length!==o)return!1;for(;o-- >0;)if(!c0(e,t,n,r[o]))return!1;return!0}function r0(e,t,n){const r=HJ(e);let o,i,s,a=r.length;if(HJ(t).length!==a)return!1;for(;a-- >0;){if(o=r[a],!c0(e,t,n,o))return!1;if(i=KJ(e,o),s=KJ(t,o),(i||s)&&(!i||!s||i.configurable!==s.configurable||i.enumerable!==s.enumerable||i.writable!==s.writable))return!1}return!0}function o0(e,t){return VJ(e.valueOf(),t.valueOf())}function i0(e,t){return e.source===t.source&&e.flags===t.flags}function s0(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const o=new Array(r),i=e.values();let s,a;for(;(s=i.next())&&!s.done;){const r=t.values();let i=!1,l=0;for(;(a=r.next())&&!a.done;){if(!o[l]&&n.equals(s.value,a.value,s.value,a.value,e,t,n)){i=o[l]=!0;break}l++}if(!i)return!1}return!0}function a0(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function l0(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function c0(e,t,n,r){return!("_owner"!==r&&"__o"!==r&&"__v"!==r||!e.$$typeof&&!t.$$typeof)||qJ(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const u0={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},d0=Object.prototype.toString;const A0=h0();function h0(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:o=!1}=e,i=function({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:GJ,areArraysEqual:n?r0:$J,areDataViewsEqual:YJ,areDatesEqual:ZJ,areErrorsEqual:XJ,areFunctionsEqual:JJ,areMapsEqual:n?zJ(e0,r0):e0,areNumbersEqual:t0,areObjectsEqual:n?r0:n0,arePrimitiveWrappersEqual:o0,areRegExpsEqual:i0,areSetsEqual:n?zJ(s0,r0):s0,areTypedArraysEqual:n?zJ(a0,r0):a0,areUrlsEqual:l0,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const e=QJ(r.areArraysEqual),t=QJ(r.areMapsEqual),n=QJ(r.areObjectsEqual),o=QJ(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:n,areSetsEqual:o})}return r}(e),s=function({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:o,areFunctionsEqual:i,areMapsEqual:s,areNumbersEqual:a,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:A,areUrlsEqual:h,unknownTagComparators:p}){return function(f,m,g){if(f===m)return!0;if(null==f||null==m)return!1;const y=typeof f;if(y!==typeof m)return!1;if("object"!==y)return"number"===y?a(f,m,g):"function"===y&&i(f,m,g);const v=f.constructor;if(v!==m.constructor)return!1;if(v===Object)return l(f,m,g);if(Array.isArray(f))return t(f,m,g);if(v===Date)return r(f,m,g);if(v===RegExp)return u(f,m,g);if(v===Map)return s(f,m,g);if(v===Set)return d(f,m,g);const b=d0.call(f);if("[object Date]"===b)return r(f,m,g);if("[object RegExp]"===b)return u(f,m,g);if("[object Map]"===b)return s(f,m,g);if("[object Set]"===b)return d(f,m,g);if("[object Object]"===b)return"function"!=typeof f.then&&"function"!=typeof m.then&&l(f,m,g);if("[object URL]"===b)return h(f,m,g);if("[object Error]"===b)return o(f,m,g);if("[object Arguments]"===b)return l(f,m,g);if(u0[b])return A(f,m,g);if("[object ArrayBuffer]"===b)return e(f,m,g);if("[object DataView]"===b)return n(f,m,g);if("[object Boolean]"===b||"[object Number]"===b||"[object String]"===b)return c(f,m,g);if(p){let e=p[b];if(!e){const t=function(e){return null!=e?e[Symbol.toStringTag]:void 0}(f);t&&(e=p[t])}if(e)return e(f,m,g)}return!1}}(i),a=n?n(s):(l=s,function(e,t,n,r,o,i,s){return l(e,t,s)});var l;return function({circular:e,comparator:t,createState:n,equals:r,strict:o}){if(n)return function(i,s){const{cache:a=(e?new WeakMap:void 0),meta:l}=n();return t(i,s,{cache:a,equals:r,meta:l,strict:o})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:o})};const i={cache:void 0,equals:r,meta:void 0,strict:o};return function(e,n){return t(e,n,i)}}({circular:t,comparator:s,createState:r,equals:a,strict:o})}function p0(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame(function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):function(e){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(e)}(r)})}function f0(e){return f0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f0(e)}function m0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g0(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=function(e){if(Array.isArray(e))return e}(a=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return m0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m0(e,t):void 0}}(a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],s=o.slice(1);return"number"==typeof i?void p0(n.bind(null,s),i):(n(i),void p0(n.bind(null,s)))}"object"===f0(r)&&e(r),"function"==typeof r&&r()}var a};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function y0(e){return y0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y0(e)}function v0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v0(Object(n),!0).forEach(function(t){w0(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w0(e,t,n){return(t=function(e){var t=function(e){if("object"!==y0(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==y0(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===y0(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}h0({strict:!0}),h0({circular:!0}),h0({circular:!0,strict:!0}),h0({createInternalComparator:()=>VJ}),h0({strict:!0,createInternalComparator:()=>VJ}),h0({circular:!0,createInternalComparator:()=>VJ}),h0({circular:!0,createInternalComparator:()=>VJ,strict:!0});var x0=function(e){return e},k0=function(e,t){return Object.keys(t).reduce(function(n,r){return b0(b0({},n),{},w0({},r,e(r,t[r])))},{})},_0=function(e,t,n){return e.map(function(e){return"".concat((r=e,r.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())}))," ").concat(t,"ms ").concat(n);var r}).join(",")};function C0(e,t){if(e){if("string"==typeof e)return B0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B0(e,t):void 0}}function B0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var S0=1e-4,j0=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},E0=function(e,t){return e.map(function(e,n){return e*Math.pow(t,n)}).reduce(function(e,t){return e+t})},N0=function(e,t){return function(n){var r=j0(e,t);return E0(r,n)}},I0=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],s=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,o=0,i=1,s=1;break;case"ease":r=.25,o=.1,i=.25,s=1;break;case"ease-in":r=.42,o=0,i=1,s=1;break;case"ease-out":r=.42,o=0,i=.58,s=1;break;case"ease-in-out":r=0,o=0,i=.58,s=1;break;default:var a=t[0].split("(");if("cubic-bezier"===a[0]&&4===a[1].split(")")[0].split(",").length){var l=a[1].split(")")[0].split(",").map(function(e){return parseFloat(e)}),c=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||C0(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(l,4);r=c[0],o=c[1],i=c[2],s=c[3]}}[r,i,o,s].every(function(e){return"number"==typeof e&&e>=0&&e<=1});var u,d,A=N0(r,i),h=N0(o,s),p=(u=r,d=i,function(e){var t,n=j0(u,d),r=[].concat((t=n.map(function(e,t){return e*t}).slice(1),function(e){if(Array.isArray(e))return B0(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||C0(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[0]);return E0(r,e)}),f=function(e){return e>1?1:e<0?0:e},m=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o=A(n)-t,i=p(n);if(Math.abs(o-t)<S0||i<S0)return h(n);n=f(n-o/i)}return h(n)};return m.isStepper=!1,m};function F0(e){return F0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F0(e)}function T0(e){return function(e){if(Array.isArray(e))return D0(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O0(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L0(Object(n),!0).forEach(function(t){M0(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function M0(e,t,n){return(t=function(e){var t=function(e){if("object"!==F0(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==F0(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===F0(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O0(e,t){if(e){if("string"==typeof e)return D0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D0(e,t):void 0}}function D0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var U0=function(e,t,n){return e+(t-e)*n},R0=function(e){return e.from!==e.to},z0=function e(t,n,r){var o=k0(function(e,n){if(R0(n)){var r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||O0(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t(n.from,n.to,n.velocity),2),o=r[0],i=r[1];return P0(P0({},n),{},{from:o,velocity:i})}return n},n);return r<1?k0(function(e,t){return R0(t)?P0(P0({},t),{},{velocity:U0(t.velocity,o[e].velocity,r),from:U0(t.from,o[e].from,r)}):t},n):e(t,o,r-1)};const Q0=function(e,t,n,r,o){var i,s,a,l,c=(i=e,s=t,[Object.keys(i),Object.keys(s)].reduce(function(e,t){return e.filter(function(e){return t.includes(e)})})),u=c.reduce(function(n,r){return P0(P0({},n),{},M0({},r,[e[r],t[r]]))},{}),d=c.reduce(function(n,r){return P0(P0({},n),{},M0({},r,{from:e[r],velocity:0,to:t[r]}))},{}),A=-1,h=function(){return null};return h=n.isStepper?function(r){a||(a=r);var i=(r-a)/n.dt;d=z0(n,d,i),o(P0(P0(P0({},e),t),k0(function(e,t){return t.from},d))),a=r,Object.values(d).filter(R0).length&&(A=requestAnimationFrame(h))}:function(i){l||(l=i);var s=(i-l)/r,a=k0(function(e,t){return U0.apply(void 0,T0(t).concat([n(s)]))},u);if(o(P0(P0(P0({},e),t),a)),s<1)A=requestAnimationFrame(h);else{var c=k0(function(e,t){return U0.apply(void 0,T0(t).concat([n(1)]))},u);o(P0(P0(P0({},e),t),c))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(A)}}};function H0(e){return H0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H0(e)}n.dn(Q0);var q0=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function V0(e){return function(e){if(Array.isArray(e))return K0(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return K0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K0(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function W0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W0(Object(n),!0).forEach(function(t){$0(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $0(e,t,n){return(t=Z0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Z0(r.key),r)}}function Z0(e){var t=function(e){if("object"!==H0(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==H0(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===H0(t)?t:String(t)}function X0(e,t){return X0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},X0(e,t)}function J0(e,t){if(t&&("object"===H0(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return e1(e)}function e1(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t1(e){return t1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},t1(e)}var n1=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&X0(e,t)}(s,e);var t,n,r,o,i=(r=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=t1(r);if(o){var n=t1(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return J0(this,e)});function s(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var r=(n=i.call(this,e,t)).props,o=r.isActive,a=r.attributeName,l=r.from,c=r.to,u=r.steps,d=r.children,A=r.duration;if(n.handleStyleChange=n.handleStyleChange.bind(e1(n)),n.changeStyle=n.changeStyle.bind(e1(n)),!o||A<=0)return n.state={style:{}},"function"==typeof d&&(n.state={style:c}),J0(n);if(u&&u.length)n.state={style:u[0].style};else if(l){if("function"==typeof d)return n.state={style:l},J0(n);n.state={style:a?$0({},a,l):l}}else n.state={style:{}};return n}return t=s,n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,o=t.attributeName,i=t.shouldReAnimate,s=t.to,a=t.from,l=this.state.style;if(r)if(n){if(!(A0(e.to,s)&&e.canBegin&&e.isActive)){var c=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=c||i?a:e.to;if(this.state&&l){var d={style:o?$0({},o,u):u};(o&&l[o]!==u||!o&&l!==u)&&this.setState(d)}this.runAnimation(G0(G0({},this.props),{},{from:u,begin:0}))}}else{var A={style:o?$0({},o,s):s};this.state&&l&&(o&&l[o]!==s||!o&&l!==s)&&this.setState(A)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,o=e.duration,i=e.easing,s=e.begin,a=e.onAnimationEnd,l=e.onAnimationStart,c=Q0(n,r,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return I0(r);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,s=void 0===i?17:i,a=function(e,t,r){var i=r+(-(e-t)*n-r*o)*s/1e3,a=r*s/1e3+e;return Math.abs(a-t)<S0&&Math.abs(i)<S0?[t,0]:[a,i]};return a.isStepper=!0,a.dt=s,a}();default:if("cubic-bezier"===r.split("(")[0])return I0(r)}return"function"==typeof r?r:null}(i),o,this.changeStyle);this.manager.start([l,s,function(){t.stopJSAnimation=c()},o,a])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,o=e.onAnimationStart,i=n[0],s=i.style,a=i.duration,l=void 0===a?0:a;return this.manager.start([o].concat(V0(n.reduce(function(e,r,o){if(0===o)return e;var i=r.duration,s=r.easing,a=void 0===s?"ease":s,l=r.style,c=r.properties,u=r.onAnimationEnd,d=o>0?n[o-1]:r,A=c||Object.keys(l);if("function"==typeof a||"spring"===a)return[].concat(V0(e),[t.runJSAnimation.bind(t,{from:d.style,to:l,duration:i,easing:a}),i]);var h=_0(A,i,a),p=G0(G0(G0({},d.style),l),{},{transition:h});return[].concat(V0(e),[p,i,u]).filter(x0)},[s,Math.max(l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=g0());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,s=e.onAnimationStart,a=e.onAnimationEnd,l=e.steps,c=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof c&&"spring"!==i)if(l.length>1)this.runStepAnimation(e);else{var d=r?$0({},r,o):o,A=_0(Object.keys(d),n,i);u.start([s,t,G0(G0({},d),{},{transition:A}),n,a])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration),r=(e.attributeName,e.easing,e.isActive),o=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,q0)),i=ft.Children.count(t),s=this.state.style;if("function"==typeof t)return t(s);if(!r||0===i||n<=0)return t;var a=function(e){var t=e.props,n=t.style,r=void 0===n?{}:n,i=t.className;return(0,ft.cloneElement)(e,G0(G0({},o),{},{style:G0(G0({},r),s),className:i}))};return 1===i?a(ft.Children.only(t)):gt().createElement("div",null,ft.Children.map(t,function(e){return a(e)}))}}],n&&Y0(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(ft.PureComponent);n1.displayName="Animate",n1.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},n1.propTypes={from:OJ().oneOfType([OJ().object,OJ().string]),to:OJ().oneOfType([OJ().object,OJ().string]),attributeName:OJ().string,duration:OJ().number,begin:OJ().number,easing:OJ().oneOfType([OJ().string,OJ().func]),steps:OJ().arrayOf(OJ().shape({duration:OJ().number.isRequired,style:OJ().object.isRequired,easing:OJ().oneOfType([OJ().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),OJ().func]),properties:OJ().arrayOf("string"),onAnimationEnd:OJ().func})),children:OJ().oneOfType([OJ().node,OJ().func]),isActive:OJ().bool,canBegin:OJ().bool,onAnimationEnd:OJ().func,shouldReAnimate:OJ().bool,onAnimationStart:OJ().func,onAnimationReStart:OJ().func};const r1=n1;function o1(e){return o1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o1(e)}function i1(){return i1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i1.apply(this,arguments)}function s1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a1(Object(n),!0).forEach(function(t){c1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c1(e,t,n){return t=function(e){var t=function(e){if("object"!=o1(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o1(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o1(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u1=function(e,t,n,r,o){var i,s=Math.min(Math.abs(n)/2,Math.abs(r)/2),a=r>=0?1:-1,l=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(s>0&&o instanceof Array){for(var u=[0,0,0,0],d=0;d<4;d++)u[d]=o[d]>s?s:o[d];i="M".concat(e,",").concat(t+a*u[0]),u[0]>0&&(i+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+l*u[0],",").concat(t)),i+="L ".concat(e+n-l*u[1],",").concat(t),u[1]>0&&(i+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n ").concat(e+n,",").concat(t+a*u[1])),i+="L ".concat(e+n,",").concat(t+r-a*u[2]),u[2]>0&&(i+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n ").concat(e+n-l*u[2],",").concat(t+r)),i+="L ".concat(e+l*u[3],",").concat(t+r),u[3]>0&&(i+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n ").concat(e,",").concat(t+r-a*u[3])),i+="Z"}else if(s>0&&o===+o&&o>0){var A=Math.min(s,o);i="M ".concat(e,",").concat(t+a*A,"\n A ").concat(A,",").concat(A,",0,0,").concat(c,",").concat(e+l*A,",").concat(t,"\n L ").concat(e+n-l*A,",").concat(t,"\n A ").concat(A,",").concat(A,",0,0,").concat(c,",").concat(e+n,",").concat(t+a*A,"\n L ").concat(e+n,",").concat(t+r-a*A,"\n A ").concat(A,",").concat(A,",0,0,").concat(c,",").concat(e+n-l*A,",").concat(t+r,"\n L ").concat(e+l*A,",").concat(t+r,"\n A ").concat(A,",").concat(A,",0,0,").concat(c,",").concat(e,",").concat(t+r-a*A," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},d1=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,s=t.width,a=t.height;if(Math.abs(s)>0&&Math.abs(a)>0){var l=Math.min(o,o+s),c=Math.max(o,o+s),u=Math.min(i,i+a),d=Math.max(i,i+a);return n>=l&&n<=c&&r>=u&&r<=d}return!1},A1={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},h1=function(e){var t=l1(l1({},A1),e),n=(0,ft.useRef)(),r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s1(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,ft.useState)(-1),2),o=r[0],i=r[1];(0,ft.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&i(e)}catch(e){}},[]);var s=t.x,a=t.y,l=t.width,c=t.height,u=t.radius,d=t.className,A=t.animationEasing,h=t.animationDuration,p=t.animationBegin,f=t.isAnimationActive,m=t.isUpdateAnimationActive;if(s!==+s||a!==+a||l!==+l||c!==+c||0===l||0===c)return null;var g=sr("recharts-rectangle",d);return m?gt().createElement(r1,{canBegin:o>0,from:{width:l,height:c,x:s,y:a},to:{width:l,height:c,x:s,y:a},duration:h,animationEasing:A,isActive:m},function(e){var r=e.width,i=e.height,s=e.x,a=e.y;return gt().createElement(r1,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:h,isActive:f,easing:A},gt().createElement("path",i1({},_Z(t,!0),{className:g,d:u1(s,a,r,i,u),ref:n})))}):gt().createElement("path",i1({},_Z(t,!0),{className:g,d:u1(s,a,l,c,u)}))};function p1(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function f1(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}class m1 extends Map{constructor(e,t=y1){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(g1(this,e))}has(e){return super.has(g1(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function g1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function y1(e){return null!==e&&"object"==typeof e?e.valueOf():e}Set;const v1=Symbol("implicit");function b1(){var e=new m1,t=[],n=[],r=v1;function o(o){let i=e.get(o);if(void 0===i){if(r!==v1)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new m1;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return b1(t,n).unknown(r)},p1.apply(o,arguments),o}function w1(){var e,t,n=b1().unknown(void 0),r=n.domain,o=n.range,i=0,s=1,a=!1,l=0,c=0,u=.5;function d(){var n=r().length,d=s<i,A=d?s:i,h=d?i:s;e=(h-A)/Math.max(1,n-l+2*c),a&&(e=Math.floor(e)),A+=(h-A-e*(n-l))*u,t=e*(1-l),a&&(A=Math.round(A),t=Math.round(t));var p=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map(function(t){return A+e*t});return o(d?p.reverse():p)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([i,s]=e,i=+i,s=+s,d()):[i,s]},n.rangeRound=function(e){return[i,s]=e,i=+i,s=+s,a=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,d()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return w1(r(),[i,s]).round(a).paddingInner(l).paddingOuter(c).align(u)},p1.apply(d(),arguments)}function x1(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return x1(t())},e}function k1(){return x1(w1.apply(null,arguments).paddingInner(1))}function _1(e){return _1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_1(e)}function C1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function B1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C1(Object(n),!0).forEach(function(t){S1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S1(e,t,n){return t=function(e){var t=function(e){if("object"!=_1(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_1(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_1(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j1={widthCache:{},cacheCount:0},E1={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},N1="recharts_measurement_span",I1=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||iX.isSsr)return{width:0,height:0};var n,r=(n=B1({},t),Object.keys(n).forEach(function(e){n[e]||delete n[e]}),n),o=JSON.stringify({text:e,copyStyle:r});if(j1.widthCache[o])return j1.widthCache[o];try{var i=document.getElementById(N1);i||((i=document.createElement("span")).setAttribute("id",N1),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var s=B1(B1({},E1),r);Object.assign(i.style,s),i.textContent="".concat(e);var a=i.getBoundingClientRect(),l={width:a.width,height:a.height};return j1.widthCache[o]=l,++j1.cacheCount>2e3&&(j1.cacheCount=0,j1.widthCache={}),l}catch(e){return{width:0,height:0}}};function F1(e){return F1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F1(e)}function T1(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return L1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L1(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M1(r.key),r)}}function M1(e){var t=function(e){if("object"!=F1(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=F1(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==F1(t)?t:t+""}var O1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,D1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,U1=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,R1=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,z1={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Q1=Object.keys(z1),H1="NaN",q1=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),""===n||U1.test(n)||(this.num=NaN,this.unit=""),Q1.includes(n)&&(this.num=function(e,t){return e*z1[t]}(t,n),this.unit="px")}return t=e,r=[{key:"parse",value:function(t){var n,r=T1(null!==(n=R1.exec(t))&&void 0!==n?n:[],3),o=r[1],i=r[2];return new e(parseFloat(o),null!=i?i:"")}}],(n=[{key:"add",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&P1(t.prototype,n),r&&P1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function V1(e){if(e.includes(H1))return H1;for(var t=e;t.includes("*")||t.includes("/");){var n,r=T1(null!==(n=O1.exec(t))&&void 0!==n?n:[],4),o=r[1],i=r[2],s=r[3],a=q1.parse(null!=o?o:""),l=q1.parse(null!=s?s:""),c="*"===i?a.multiply(l):a.divide(l);if(c.isNaN())return H1;t=t.replace(O1,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,d=T1(null!==(u=D1.exec(t))&&void 0!==u?u:[],4),A=d[1],h=d[2],p=d[3],f=q1.parse(null!=A?A:""),m=q1.parse(null!=p?p:""),g="+"===h?f.add(m):f.subtract(m);if(g.isNaN())return H1;t=t.replace(D1,g.toString())}return t}var K1=/\(([^()]*)\)/;function W1(e){var t=function(e){try{return function(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var n=T1(K1.exec(t),2)[1];t=t.replace(K1,V1(n))}return t}(t),V1(t)}(e)}catch(e){return H1}}(e.slice(5,-1));return t===H1?"":t}var G1=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],$1=["dx","dy","angle","className","breakAll"];function Y1(){return Y1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y1.apply(this,arguments)}function Z1(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function X1(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return J1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J1(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var e2=/[ \f\n\r\t\v\u2028\u2029]+/,t2=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var o=[];return SY()(t)||(o=n?t.toString().split(""):t.toString().split(e2)),{wordsWithComputedWidth:o.map(function(e){return{word:e,width:I1(e,r).width}}),spaceWidth:n?0:I1(" ",r).width}}catch(e){return null}},n2=function(e){return[{words:SY()(e)?[]:e.toString().split(e2)}]},r2="#808080",o2=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,o=void 0===r?0:r,i=e.lineHeight,s=void 0===i?"1em":i,a=e.capHeight,l=void 0===a?"0.71em":a,c=e.scaleToFit,u=void 0!==c&&c,d=e.textAnchor,A=void 0===d?"start":d,h=e.verticalAnchor,p=void 0===h?"end":h,f=e.fill,m=void 0===f?r2:f,g=Z1(e,G1),y=(0,ft.useMemo)(function(){return function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,i=e.breakAll,s=e.maxLines;if((t||n)&&!iX.isSsr){var a=t2({breakAll:i,children:r,style:o});return a?function(e,t,n,r,o){var i=e.maxLines,s=e.children,a=e.style,l=e.breakAll,c=YY(i),u=s,d=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(function(e,t){var i=t.word,s=t.width,a=e[e.length-1];if(a&&(null==r||o||a.width+s+n<Number(r)))a.words.push(i),a.width+=s+n;else{var l={words:[i],width:s};e.push(l)}return e},[])},A=d(t);if(!c)return A;for(var h,p=function(e){var t=u.slice(0,e),n=t2({breakAll:l,style:a,children:t+"…"}).wordsWithComputedWidth,o=d(n),s=o.length>i||function(e){return e.reduce(function(e,t){return e.width>t.width?e:t})}(o).width>Number(r);return[s,o]},f=0,m=u.length-1,g=0;f<=m&&g<=u.length-1;){var y=Math.floor((f+m)/2),v=X1(p(y-1),2),b=v[0],w=v[1],x=X1(p(y),1)[0];if(b||x||(f=y+1),b&&x&&(m=y-1),!b&&x){h=w;break}g++}return h||A}({breakAll:i,children:r,maxLines:s,style:o},a.wordsWithComputedWidth,a.spaceWidth,t,n):n2(r)}return n2(r)}({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:u,style:g.style,width:g.width})},[g.breakAll,g.children,g.maxLines,u,g.style,g.width]),v=g.dx,b=g.dy,w=g.angle,x=g.className,k=g.breakAll,_=Z1(g,$1);if(!ZY(n)||!ZY(o))return null;var C,B=n+(YY(v)?v:0),S=o+(YY(b)?b:0);switch(p){case"start":C=W1("calc(".concat(l,")"));break;case"middle":C=W1("calc(".concat((y.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:C=W1("calc(".concat(y.length-1," * -").concat(s,")"))}var j=[];if(u){var E=y[0].width,N=g.width;j.push("scale(".concat((YY(N)?N/E:1)/E,")"))}return w&&j.push("rotate(".concat(w,", ").concat(B,", ").concat(S,")")),j.length&&(_.transform=j.join(" ")),gt().createElement("text",Y1({},_Z(_,!0),{x:B,y:S,className:sr("recharts-text",x),textAnchor:A,fill:m.includes("url")?r2:m}),y.map(function(e,t){var n=e.words.join(k?"":" ");return gt().createElement("tspan",{x:B,dy:0===t?C:s,key:"".concat(n,"-").concat(t)},n)}))};const i2=Math.sqrt(50),s2=Math.sqrt(10),a2=Math.sqrt(2);function l2(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),s=i>=i2?10:i>=s2?5:i>=a2?2:1;let a,l,c;return o<0?(c=Math.pow(10,-o)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?l2(e,t,2*n):[a,l,c]}function c2(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,s]=r?l2(t,e,n):l2(e,t,n);if(!(i>=o))return[];const a=i-o+1,l=new Array(a);if(r)if(s<0)for(let e=0;e<a;++e)l[e]=(i-e)/-s;else for(let e=0;e<a;++e)l[e]=(i-e)*s;else if(s<0)for(let e=0;e<a;++e)l[e]=(o+e)/-s;else for(let e=0;e<a;++e)l[e]=(o+e)*s;return l}function u2(e,t,n){return l2(e=+e,t=+t,n=+n)[2]}function d2(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?u2(t,e,n):u2(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function A2(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function h2(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function p2(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=A2,n=(t,n)=>A2(e(t),n),r=(t,n)=>e(t)-n):(t=e===A2||e===h2?e:f2,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const s=o(e,t,n,i-1);return s>n&&r(e[s-1],t)>-r(e[s],t)?s-1:s},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function f2(){return 0}function m2(e){return null===e?NaN:+e}const g2=p2(A2),y2=g2.right,v2=(g2.left,p2(m2).center,y2);function b2(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function w2(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function x2(){}n.dn(b2);var k2=.7,_2=1/k2,C2="\\s*([+-]?\\d+)\\s*",B2="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",S2="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",j2=/^#([0-9a-f]{3,8})$/,E2=new RegExp(`^rgb\\(${C2},${C2},${C2}\\)$`),N2=new RegExp(`^rgb\\(${S2},${S2},${S2}\\)$`),I2=new RegExp(`^rgba\\(${C2},${C2},${C2},${B2}\\)$`),F2=new RegExp(`^rgba\\(${S2},${S2},${S2},${B2}\\)$`),T2=new RegExp(`^hsl\\(${B2},${S2},${S2}\\)$`),L2=new RegExp(`^hsla\\(${B2},${S2},${S2},${B2}\\)$`),P2={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function M2(){return this.rgb().formatHex()}function O2(){return this.rgb().formatRgb()}function D2(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=j2.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?U2(t):3===n?new Q2(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?R2(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?R2(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=E2.exec(e))?new Q2(t[1],t[2],t[3],1):(t=N2.exec(e))?new Q2(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=I2.exec(e))?R2(t[1],t[2],t[3],t[4]):(t=F2.exec(e))?R2(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=T2.exec(e))?G2(t[1],t[2]/100,t[3]/100,1):(t=L2.exec(e))?G2(t[1],t[2]/100,t[3]/100,t[4]):P2.hasOwnProperty(e)?U2(P2[e]):"transparent"===e?new Q2(NaN,NaN,NaN,0):null}function U2(e){return new Q2(e>>16&255,e>>8&255,255&e,1)}function R2(e,t,n,r){return r<=0&&(e=t=n=NaN),new Q2(e,t,n,r)}function z2(e,t,n,r){return 1===arguments.length?function(e){return e instanceof x2||(e=D2(e)),e?new Q2((e=e.rgb()).r,e.g,e.b,e.opacity):new Q2}(e):new Q2(e,t,n,r??1)}function Q2(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function H2(){return`#${W2(this.r)}${W2(this.g)}${W2(this.b)}`}function q2(){const e=V2(this.opacity);return`${1===e?"rgb(":"rgba("}${K2(this.r)}, ${K2(this.g)}, ${K2(this.b)}${1===e?")":`, ${e})`}`}function V2(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function K2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function W2(e){return((e=K2(e))<16?"0":"")+e.toString(16)}function G2(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Y2(e,t,n,r)}function $2(e){if(e instanceof Y2)return new Y2(e.h,e.s,e.l,e.opacity);if(e instanceof x2||(e=D2(e)),!e)return new Y2;if(e instanceof Y2)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=NaN,a=i-o,l=(i+o)/2;return a?(s=t===i?(n-r)/a+6*(n<r):n===i?(r-t)/a+2:(t-n)/a+4,a/=l<.5?i+o:2-i-o,s*=60):a=l>0&&l<1?0:s,new Y2(s,a,l,e.opacity)}function Y2(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Z2(e){return(e=(e||0)%360)<0?e+360:e}function X2(e){return Math.max(0,Math.min(1,e||0))}function J2(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function e5(e,t,n,r,o){var i=e*e,s=i*e;return((1-3*e+3*i-s)*t+(4-6*i+3*s)*n+(1+3*e+3*i-3*s)*r+s*o)/6}function t5(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],s=r>0?e[r-1]:2*o-i,a=r<t-1?e[r+2]:2*i-o;return e5((n-r/t)*t,s,o,i,a)}}function n5(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],i=e[r%t],s=e[(r+1)%t],a=e[(r+2)%t];return e5((n-r/t)*t,o,i,s,a)}}b2(x2,D2,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:M2,formatHex:M2,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return $2(this).formatHsl()},formatRgb:O2,toString:O2}),b2(Q2,z2,w2(x2,{brighter(e){return e=null==e?_2:Math.pow(_2,e),new Q2(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?k2:Math.pow(k2,e),new Q2(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Q2(K2(this.r),K2(this.g),K2(this.b),V2(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:H2,formatHex:H2,formatHex8:function(){return`#${W2(this.r)}${W2(this.g)}${W2(this.b)}${W2(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:q2,toString:q2})),b2(Y2,function(e,t,n,r){return 1===arguments.length?$2(e):new Y2(e,t,n,r??1)},w2(x2,{brighter(e){return e=null==e?_2:Math.pow(_2,e),new Y2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?k2:Math.pow(k2,e),new Y2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Q2(J2(e>=240?e-240:e+120,o,r),J2(e,o,r),J2(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Y2(Z2(this.h),X2(this.s),X2(this.l),V2(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=V2(this.opacity);return`${1===e?"hsl(":"hsla("}${Z2(this.h)}, ${100*X2(this.s)}%, ${100*X2(this.l)}%${1===e?")":`, ${e})`}`}})),n.dn(t5),n.dn(n5);const r5=e=>()=>e;function o5(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):r5(isNaN(e)?t:e)}n.dn(r5);const i5=function e(t){var n=function(e){return 1===(e=+e)?o5:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):r5(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=z2(e)).r,(t=z2(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),s=o5(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=s(t),e+""}}return r.gamma=e,r}(1);function s5(e){return function(t){var n,r,o=t.length,i=new Array(o),s=new Array(o),a=new Array(o);for(n=0;n<o;++n)r=z2(t[n]),i[n]=r.r||0,s[n]=r.g||0,a[n]=r.b||0;return i=e(i),s=e(s),a=e(a),r.opacity=1,function(e){return r.r=i(e),r.g=s(e),r.b=a(e),r+""}}}function a5(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),s=new Array(r);for(n=0;n<o;++n)i[n]=f5(e[n],t[n]);for(;n<r;++n)s[n]=t[n];return function(e){for(n=0;n<o;++n)s[n]=i[n](e);return s}}function l5(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function c5(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function u5(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=f5(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}s5(t5),s5(n5),n.dn(function(e,t){return((void 0)(t)?void 0:a5)(e,t)}),n.dn(l5),n.dn(c5),n.dn(u5),n.dn(h5);var d5=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,A5=new RegExp(d5.source,"g");function h5(e,t){var n,r,o,i=d5.lastIndex=A5.lastIndex=0,s=-1,a=[],l=[];for(e+="",t+="";(n=d5.exec(e))&&(r=A5.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:c5(n,r)})),i=A5.lastIndex;return i<t.length&&(o=t.slice(i),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)a[(n=l[r]).i]=n.x(e);return a.join("")})}function p5(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function f5(e,t){var n,r=typeof t;return null==t||"boolean"===r?r5(t):("number"===r?c5:"string"===r?(n=D2(t))?(t=n,i5):h5:t instanceof D2?i5:t instanceof Date?l5:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?p5:Array.isArray(t)?a5:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?u5:c5)(e,t)}function m5(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function g5(e){return+e}n.dn(p5),n.dn(f5),n.dn(m5);var y5=[0,1];function v5(e){return e}function b5(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function w5(e,t,n){var r=e[0],o=e[1],i=t[0],s=t[1];return o<r?(r=b5(o,r),i=n(s,i)):(r=b5(r,o),i=n(i,s)),function(e){return i(r(e))}}function x5(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)o[s]=b5(e[s],e[s+1]),i[s]=n(t[s],t[s+1]);return function(t){var n=v2(e,t,1,r)-1;return i[n](o[n](t))}}function k5(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function _5(){var e,t,n,r,o,i,s=y5,a=y5,l=f5,c=v5;function u(){var e=Math.min(s.length,a.length);return c!==v5&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(s[0],s[e-1])),r=e>2?x5:w5,o=i=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(s.map(e),a,l)))(e(c(t)))}return d.invert=function(n){return c(t((i||(i=r(a,s.map(e),c5)))(n)))},d.domain=function(e){return arguments.length?(s=Array.from(e,g5),u()):s.slice()},d.range=function(e){return arguments.length?(a=Array.from(e),u()):a.slice()},d.rangeRound=function(e){return a=Array.from(e),l=m5,u()},d.clamp=function(e){return arguments.length?(c=!!e||v5,u()):c!==v5},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function C5(){return _5()(v5,v5)}var B5,S5=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function j5(e){if(!(t=S5.exec(e)))throw new Error("invalid format: "+e);var t;return new E5({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function E5(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function N5(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function I5(e,t){if(!isFinite(e)||0===e)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function F5(e){return(e=I5(Math.abs(e)))?e[1]:NaN}function T5(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(F5(t)/3)))-F5(Math.abs(e)))}function L5(e,t){return function(n,r){for(var o=n.length,i=[],s=0,a=e[0],l=0;o>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),i.push(n.substring(o-=a,o+a)),!((l+=a+1)>r));)a=e[s=(s+1)%e.length];return i.reverse().join(t)}}function P5(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}function M5(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}function O5(e,t){var n=I5(e,t);if(!n)return B5=void 0,e.toPrecision(t);var r=n[0],o=n[1],i=o-(B5=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=r.length;return i===s?r:i>s?r+new Array(i-s+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+I5(e,Math.max(0,t+i-1))[0]}function D5(e,t){var n=I5(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}j5.prototype=E5.prototype,E5.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type},n.dn(N5),n.dn(F5),n.dn(T5),n.dn(L5),n.dn(P5),n.dn(M5),n.dn(O5),n.dn(D5);const U5={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:N5,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>D5(100*e,t),r:D5,s:O5,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function R5(e){return e}n.dn(R5),n.dn(K5);var z5,Q5,H5,q5=Array.prototype.map,V5=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function K5(e){var t=void 0===e.grouping||void 0===e.thousands?R5:L5(q5.call(e.grouping,Number),e.thousands+""),n=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",i=void 0===e.numerals?R5:P5(q5.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",a=void 0===e.minus?"−":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function c(e,c){var u=(e=j5(e)).fill,d=e.align,A=e.sign,h=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,y=e.trim,v=e.type;"n"===v?(m=!0,v="g"):U5[v]||(void 0===g&&(g=12),y=!0,v="g"),(p||"0"===u&&"="===d)&&(p=!0,u="0",d="=");var b=(c&&void 0!==c.prefix?c.prefix:"")+("$"===h?n:"#"===h&&/[boxX]/.test(v)?"0"+v.toLowerCase():""),w=("$"===h?r:/[%p]/.test(v)?s:"")+(c&&void 0!==c.suffix?c.suffix:""),x=U5[v],k=/[defgprs%]/.test(v);function _(e){var n,r,s,c=b,h=w;if("c"===v)h=x(e)+h,e="";else{var _=(e=+e)<0||1/e<0;if(e=isNaN(e)?l:x(Math.abs(e),g),y&&(e=M5(e)),_&&0===+e&&"+"!==A&&(_=!1),c=(_?"("===A?A:a:"-"===A||"("===A?"":A)+c,h=("s"!==v||isNaN(e)||void 0===B5?"":V5[8+B5/3])+h+(_&&"("===A?")":""),k)for(n=-1,r=e.length;++n<r;)if(48>(s=e.charCodeAt(n))||s>57){h=(46===s?o+e.slice(n+1):e.slice(n))+h,e=e.slice(0,n);break}}m&&!p&&(e=t(e,1/0));var C=c.length+e.length+h.length,B=C<f?new Array(f-C+1).join(u):"";switch(m&&p&&(e=t(B+e,B.length?f-h.length:1/0),B=""),d){case"<":e=c+e+h+B;break;case"=":e=c+B+e+h;break;case"^":e=B.slice(0,C=B.length>>1)+c+e+h+B.slice(C);break;default:e=B+c+e+h}return i(e)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),_.toString=function(){return e+""},_}return{format:c,formatPrefix:function(e,t){var n=3*Math.max(-8,Math.min(8,Math.floor(F5(t)/3))),r=Math.pow(10,-n),o=c(((e=j5(e)).type="f",e),{suffix:V5[8+n/3]});return function(e){return o(r*e)}}}}function W5(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,F5(t)-F5(e))+1}function G5(e){return Math.max(0,-F5(Math.abs(e)))}function $5(e,t,n,r){var o,i=d2(e,t,n);switch((r=j5(r??",f")).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=T5(i,s))||(r.precision=o),H5(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=W5(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=G5(i))||(r.precision=o-2*("%"===r.type))}return Q5(r)}function Y5(e){var t=e.domain;return e.ticks=function(e){var n=t();return c2(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return $5(r[0],r[r.length-1],e??10,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),s=0,a=i.length-1,l=i[s],c=i[a],u=10;for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);u-- >0;){if((o=u2(l,c,n))===r)return i[s]=l,i[a]=c,t(i);if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}r=o}return e},e}function Z5(){var e=C5();return e.copy=function(){return k5(e,Z5())},p1.apply(e,arguments),Y5(e)}function X5(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,g5),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return X5(e).unknown(t)},e=arguments.length?Array.from(e,g5):[0,1],Y5(n)}function J5(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],s=e[o];return s<i&&(n=r,r=o,o=n,n=i,i=s,s=n),e[r]=t.floor(i),e[o]=t.ceil(s),e}function e4(e){return Math.log(e)}function t4(e){return Math.exp(e)}function n4(e){return-Math.log(-e)}function r4(e){return-Math.exp(-e)}function o4(e){return isFinite(e)?+("1e"+e):e<0?0:e}function i4(e){return(t,n)=>-e(-t,n)}function s4(e){const t=e(e4,t4),n=t.domain;let r,o,i=10;function s(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?o4:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=i4(r),o=i4(o),e(n4,r4)):e(e4,t4),t}return t.base=function(e){return arguments.length?(i=+e,s()):i},t.domain=function(e){return arguments.length?(n(e),s()):n()},t.ticks=e=>{const t=n();let s=t[0],a=t[t.length-1];const l=a<s;l&&([s,a]=[a,s]);let c,u,d=r(s),A=r(a);const h=null==e?10:+e;let p=[];if(!(i%1)&&A-d<h){if(d=Math.floor(d),A=Math.ceil(A),s>0){for(;d<=A;++d)for(c=1;c<i;++c)if(u=d<0?c/o(-d):c*o(d),!(u<s)){if(u>a)break;p.push(u)}}else for(;d<=A;++d)for(c=i-1;c>=1;--c)if(u=d>0?c/o(-d):c*o(d),!(u<s)){if(u>a)break;p.push(u)}2*p.length<h&&(p=c2(s,a,h))}else p=c2(d,A,Math.min(A-d,h)).map(o);return l?p.reverse():p},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=j5(n)).precision||(n.trim=!0),n=Q5(n)),e===1/0)return n;const s=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*i<i-.5&&(t*=i),t<=s?n(e):""}},t.nice=()=>n(J5(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function a4(){const e=s4(_5()).domain([1,10]);return e.copy=()=>k5(e,a4()).base(e.base()),p1.apply(e,arguments),e}function l4(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function c4(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function u4(e){var t=1,n=e(l4(t),c4(t));return n.constant=function(n){return arguments.length?e(l4(t=+n),c4(t)):t},Y5(n)}function d4(){var e=u4(_5());return e.copy=function(){return k5(e,d4()).constant(e.constant())},p1.apply(e,arguments)}function A4(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function h4(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function p4(e){return e<0?-e*e:e*e}function f4(e){var t=e(v5,v5),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(v5,v5):.5===n?e(h4,p4):e(A4(n),A4(1/n)):n},Y5(t)}function m4(){var e=f4(_5());return e.copy=function(){return k5(e,m4()).exponent(e.exponent())},p1.apply(e,arguments),e}function g4(){return m4.apply(null,arguments).exponent(.5)}function y4(e){return Math.sign(e)*e*e}function v4(){var e,t=C5(),n=[0,1],r=!1;function o(n){var o=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(t(n));return isNaN(o)?e:r?Math.round(o):o}return o.invert=function(e){return t.invert(y4(e))},o.domain=function(e){return arguments.length?(t.domain(e),o):t.domain()},o.range=function(e){return arguments.length?(t.range((n=Array.from(e,g5)).map(y4)),o):n.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(r=!!e,o):r},o.clamp=function(e){return arguments.length?(t.clamp(e),o):t.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return v4(t.domain(),n).round(r).clamp(t.clamp()).unknown(e)},p1.apply(o,arguments),Y5(o)}function b4(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function w4(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function x4(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function k4(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?x4:function(e=A2){if(e===A2)return x4;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const i=r-n+1,s=t-n+1,a=Math.log(i),l=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*l*(i-l)/i)*(s-i/2<0?-1:1);k4(e,t,Math.max(n,Math.floor(t-s*l/i+c)),Math.min(r,Math.floor(t+(i-s)*l/i+c)),o)}const i=e[t];let s=n,a=r;for(_4(e,n,t),o(e[r],i)>0&&_4(e,n,r);s<a;){for(_4(e,s,a),++s,--a;o(e[s],i)<0;)++s;for(;o(e[a],i)>0;)--a}0===o(e[n],i)?_4(e,n,a):(++a,_4(e,a,r)),a<=t&&(n=a+1),t<=a&&(r=a-1)}return e}function _4(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function C4(e,t,n=m2){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),s=+n(e[i],i,e);return s+(+n(e[i+1],i+1,e)-s)*(o-i)}}function B4(){var e,t=[],n=[],r=[];function o(){var e=0,o=Math.max(1,n.length);for(r=new Array(o-1);++e<o;)r[e-1]=C4(t,e/o);return i}function i(t){return null==t||isNaN(t=+t)?e:n[v2(r,t)]}return i.invertExtent=function(e){var o=n.indexOf(e);return o<0?[NaN,NaN]:[o>0?r[o-1]:t[0],o<r.length?r[o]:t[t.length-1]]},i.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(A2),o()},i.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.quantiles=function(){return r.slice()},i.copy=function(){return B4().domain(t).range(n).unknown(e)},p1.apply(i,arguments)}function S4(){var e,t=0,n=1,r=1,o=[.5],i=[0,1];function s(t){return null!=t&&t<=t?i[v2(o,t,0,r)]:e}function a(){var e=-1;for(o=new Array(r);++e<r;)o[e]=((e+1)*n-(e-r)*t)/(r+1);return s}return s.domain=function(e){return arguments.length?([t,n]=e,t=+t,n=+n,a()):[t,n]},s.range=function(e){return arguments.length?(r=(i=Array.from(e)).length-1,a()):i.slice()},s.invertExtent=function(e){var s=i.indexOf(e);return s<0?[NaN,NaN]:s<1?[t,o[0]]:s>=r?[o[r-1],n]:[o[s-1],o[s]]},s.unknown=function(t){return arguments.length?(e=t,s):s},s.thresholds=function(){return o.slice()},s.copy=function(){return S4().domain([t,n]).range(i).unknown(e)},p1.apply(Y5(s),arguments)}function j4(){var e,t=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[v2(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return j4().domain(t).range(n).unknown(e)},p1.apply(o,arguments)}z5=K5({thousands:",",grouping:[3],currency:["$",""]}),Q5=z5.format,H5=z5.formatPrefix,n.dn(W5),n.dn(G5);const E4=36e5,N4=864e5,I4=6048e5,F4=31536e6,T4=new Date,L4=new Date;function P4(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;let a;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=n=>P4(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(o.count=(t,r)=>(T4.setTime(+t),L4.setTime(+r),e(T4),e(L4),Math.floor(n(T4,L4))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e===0:t=>o.count(0,t)%e===0):o:null)),o}const M4=P4(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);M4.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?P4(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):M4:null),M4.range;const O4=P4(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),D4=(O4.range,P4(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes())),U4=(D4.range,P4(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes())),R4=(U4.range,P4(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+t*E4)},(e,t)=>(t-e)/E4,e=>e.getHours())),z4=(R4.range,P4(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*E4)},(e,t)=>(t-e)/E4,e=>e.getUTCHours())),Q4=(z4.range,P4(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/N4,e=>e.getDate()-1)),H4=(Q4.range,P4(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/N4,e=>e.getUTCDate()-1)),q4=(H4.range,P4(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/N4,e=>Math.floor(e/N4)));function V4(e){return P4(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/I4)}q4.range;const K4=V4(0),W4=V4(1),G4=V4(2),$4=V4(3),Y4=V4(4),Z4=V4(5),X4=V4(6);function J4(e){return P4(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/I4)}K4.range,W4.range,G4.range,$4.range,Y4.range,Z4.range,X4.range;const e3=J4(0),t3=J4(1),n3=J4(2),r3=J4(3),o3=J4(4),i3=J4(5),s3=J4(6),a3=(e3.range,t3.range,n3.range,r3.range,o3.range,i3.range,s3.range,P4(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth())),l3=(a3.range,P4(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth())),c3=(l3.range,P4(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear()));c3.every=e=>isFinite(e=Math.floor(e))&&e>0?P4(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,c3.range;const u3=P4(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function d3(e,t,n,r,o,i){const s=[[O4,1,1e3],[O4,5,5e3],[O4,15,15e3],[O4,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,E4],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,N4],[r,2,1728e5],[n,1,I4],[t,1,2592e6],[t,3,7776e6],[e,1,F4]];function a(t,n,r){const o=Math.abs(n-t)/r,i=p2(([,,e])=>e).right(s,o);if(i===s.length)return e.every(d2(t/F4,n/F4,r));if(0===i)return M4.every(Math.max(d2(t,n,r),1));const[a,l]=s[o/s[i-1][2]<s[i][2]/o?i-1:i];return a.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:a(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},a]}u3.every=e=>isFinite(e=Math.floor(e))&&e>0?P4(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,u3.range;const[A3,h3]=d3(u3,l3,e3,q4,z4,U4),[p3,f3]=d3(c3,a3,K4,Q4,R4,D4);function m3(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function g3(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function y3(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var v3,b3,w3,x3={"-":"",_:" ",0:"0"},k3=/^\s*\d+/,_3=/^%/,C3=/[\\^$*+?|[\]().{}]/g;function B3(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function S3(e){return e.replace(C3,"\\$&")}function j3(e){return new RegExp("^(?:"+e.map(S3).join("|")+")","i")}function E3(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function N3(e,t,n){var r=k3.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function I3(e,t,n){var r=k3.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function F3(e,t,n){var r=k3.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function T3(e,t,n){var r=k3.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function L3(e,t,n){var r=k3.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function P3(e,t,n){var r=k3.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function M3(e,t,n){var r=k3.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function O3(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function D3(e,t,n){var r=k3.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function U3(e,t,n){var r=k3.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function R3(e,t,n){var r=k3.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function z3(e,t,n){var r=k3.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Q3(e,t,n){var r=k3.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function H3(e,t,n){var r=k3.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function q3(e,t,n){var r=k3.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function V3(e,t,n){var r=k3.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function K3(e,t,n){var r=k3.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function W3(e,t,n){var r=_3.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function G3(e,t,n){var r=k3.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function $3(e,t,n){var r=k3.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Y3(e,t){return B3(e.getDate(),t,2)}function Z3(e,t){return B3(e.getHours(),t,2)}function X3(e,t){return B3(e.getHours()%12||12,t,2)}function J3(e,t){return B3(1+Q4.count(c3(e),e),t,3)}function e8(e,t){return B3(e.getMilliseconds(),t,3)}function t8(e,t){return e8(e,t)+"000"}function n8(e,t){return B3(e.getMonth()+1,t,2)}function r8(e,t){return B3(e.getMinutes(),t,2)}function o8(e,t){return B3(e.getSeconds(),t,2)}function i8(e){var t=e.getDay();return 0===t?7:t}function s8(e,t){return B3(K4.count(c3(e)-1,e),t,2)}function a8(e){var t=e.getDay();return t>=4||0===t?Y4(e):Y4.ceil(e)}function l8(e,t){return e=a8(e),B3(Y4.count(c3(e),e)+(4===c3(e).getDay()),t,2)}function c8(e){return e.getDay()}function u8(e,t){return B3(W4.count(c3(e)-1,e),t,2)}function d8(e,t){return B3(e.getFullYear()%100,t,2)}function A8(e,t){return B3((e=a8(e)).getFullYear()%100,t,2)}function h8(e,t){return B3(e.getFullYear()%1e4,t,4)}function p8(e,t){var n=e.getDay();return B3((e=n>=4||0===n?Y4(e):Y4.ceil(e)).getFullYear()%1e4,t,4)}function f8(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+B3(t/60|0,"0",2)+B3(t%60,"0",2)}function m8(e,t){return B3(e.getUTCDate(),t,2)}function g8(e,t){return B3(e.getUTCHours(),t,2)}function y8(e,t){return B3(e.getUTCHours()%12||12,t,2)}function v8(e,t){return B3(1+H4.count(u3(e),e),t,3)}function b8(e,t){return B3(e.getUTCMilliseconds(),t,3)}function w8(e,t){return b8(e,t)+"000"}function x8(e,t){return B3(e.getUTCMonth()+1,t,2)}function k8(e,t){return B3(e.getUTCMinutes(),t,2)}function _8(e,t){return B3(e.getUTCSeconds(),t,2)}function C8(e){var t=e.getUTCDay();return 0===t?7:t}function B8(e,t){return B3(e3.count(u3(e)-1,e),t,2)}function S8(e){var t=e.getUTCDay();return t>=4||0===t?o3(e):o3.ceil(e)}function j8(e,t){return e=S8(e),B3(o3.count(u3(e),e)+(4===u3(e).getUTCDay()),t,2)}function E8(e){return e.getUTCDay()}function N8(e,t){return B3(t3.count(u3(e)-1,e),t,2)}function I8(e,t){return B3(e.getUTCFullYear()%100,t,2)}function F8(e,t){return B3((e=S8(e)).getUTCFullYear()%100,t,2)}function T8(e,t){return B3(e.getUTCFullYear()%1e4,t,4)}function L8(e,t){var n=e.getUTCDay();return B3((e=n>=4||0===n?o3(e):o3.ceil(e)).getUTCFullYear()%1e4,t,4)}function P8(){return"+0000"}function M8(){return"%"}function O8(e){return+e}function D8(e){return Math.floor(+e/1e3)}function U8(e){return new Date(e)}function R8(e){return e instanceof Date?+e:+new Date(+e)}function z8(e,t,n,r,o,i,s,a,l,c){var u=C5(),d=u.invert,A=u.domain,h=c(".%L"),p=c(":%S"),f=c("%I:%M"),m=c("%I %p"),g=c("%a %d"),y=c("%b %d"),v=c("%B"),b=c("%Y");function w(e){return(l(e)<e?h:a(e)<e?p:s(e)<e?f:i(e)<e?m:r(e)<e?o(e)<e?g:y:n(e)<e?v:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?A(Array.from(e,R8)):A().map(U8)},u.ticks=function(t){var n=A();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return null==t?w:c(t)},u.nice=function(e){var n=A();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],e??10)),e?A(J5(n,e)):u},u.copy=function(){return k5(u,z8(e,t,n,r,o,i,s,a,l,c))},u}function Q8(){return p1.apply(z8(p3,f3,c3,a3,K4,Q4,R4,D4,O4,b3).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function H8(){return p1.apply(z8(A3,h3,u3,l3,e3,H4,z4,U4,O4,w3).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function q8(){var e,t,n,r,o,i=0,s=1,a=v5,l=!1;function c(t){return null==t||isNaN(t=+t)?o:a(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,a=e(n,r),c):[a(0),a(1)]}}return c.domain=function(o){return arguments.length?([i,s]=o,e=r(i=+i),t=r(s=+s),n=e===t?0:1/(t-e),c):[i,s]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(a=e,c):a},c.range=u(f5),c.rangeRound=u(m5),c.unknown=function(e){return arguments.length?(o=e,c):o},function(o){return r=o,e=o(i),t=o(s),n=e===t?0:1/(t-e),c}}function V8(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function K8(){var e=Y5(q8()(v5));return e.copy=function(){return V8(e,K8())},f1.apply(e,arguments)}function W8(){var e=s4(q8()).domain([1,10]);return e.copy=function(){return V8(e,W8()).base(e.base())},f1.apply(e,arguments)}function G8(){var e=u4(q8());return e.copy=function(){return V8(e,G8()).constant(e.constant())},f1.apply(e,arguments)}function $8(){var e=f4(q8());return e.copy=function(){return V8(e,$8()).exponent(e.exponent())},f1.apply(e,arguments)}function Y8(){return $8.apply(null,arguments).exponent(.5)}function Z8(){var e=[],t=v5;function n(n){if(null!=n&&!isNaN(n=+n))return t((v2(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(A2),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,r)=>t(r/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return w4(e);if(t>=1)return b4(e);var r,o=(r-1)*t,i=Math.floor(o),s=b4(k4(e,i).subarray(0,i+1));return s+(w4(e.subarray(i+1))-s)*(o-i)}}(e,r/t))},n.copy=function(){return Z8(t).domain(e)},f1.apply(n,arguments)}function X8(){var e,t,n,r,o,i,s,a=0,l=.5,c=1,u=1,d=v5,A=!1;function h(e){return isNaN(e=+e)?s:(e=.5+((e=+i(e))-t)*(u*e<u*t?r:o),d(A?Math.max(0,Math.min(1,e)):e))}function p(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,d=function(e,t){void 0===t&&(t=e,e=f5);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}(e,[n,r,o]),h):[d(0),d(.5),d(1)]}}return h.domain=function(s){return arguments.length?([a,l,c]=s,e=i(a=+a),t=i(l=+l),n=i(c=+c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,h):[a,l,c]},h.clamp=function(e){return arguments.length?(A=!!e,h):A},h.interpolator=function(e){return arguments.length?(d=e,h):d},h.range=p(f5),h.rangeRound=p(m5),h.unknown=function(e){return arguments.length?(s=e,h):s},function(s){return i=s,e=s(a),t=s(l),n=s(c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,h}}function J8(){var e=Y5(X8()(v5));return e.copy=function(){return V8(e,J8())},f1.apply(e,arguments)}function e6(){var e=s4(X8()).domain([.1,1,10]);return e.copy=function(){return V8(e,e6()).base(e.base())},f1.apply(e,arguments)}function t6(){var e=u4(X8());return e.copy=function(){return V8(e,t6()).constant(e.constant())},f1.apply(e,arguments)}function n6(){var e=f4(X8());return e.copy=function(){return V8(e,n6()).exponent(e.exponent())},f1.apply(e,arguments)}function r6(){return n6.apply(null,arguments).exponent(.5)}function o6(e,t){if((o=e.length)>1)for(var n,r,o,i=1,s=e[t[0]],a=s.length;i<o;++i)for(r=s,s=e[t[i]],n=0;n<a;++n)s[n][1]+=s[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function i6(e,t){if((r=e.length)>0){for(var n,r,o,i=0,s=e[0].length;i<s;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}o6(e,t)}}function s6(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var s=0,a=0;s<n;++s)a+=e[s][r][1]||0;o[r][1]+=o[r][0]=-a/2}o6(e,t)}}function a6(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,s=1;s<r;++s){for(var a=0,l=0,c=0;a<o;++a){for(var u=e[t[a]],d=u[s][1]||0,A=(d-(u[s-1][1]||0))/2,h=0;h<a;++h){var p=e[t[h]];A+=(p[s][1]||0)-(p[s-1][1]||0)}l+=d,c+=A*d}n[s-1][1]+=n[s-1][0]=i,l&&(i-=c/l)}n[s-1][1]+=n[s-1][0]=i,o6(e,t)}}function l6(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function c6(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function u6(e,t){return e[t]}function d6(e){const t=[];return t.key=e,t}function A6(){var e=KX([]),t=c6,n=o6,r=u6;function o(o){var i,s,a=Array.from(e.apply(this,arguments),d6),l=a.length,c=-1;for(const e of o)for(i=0,++c;i<l;++i)(a[i][c]=[0,+r(e,a[i].key,c,o)]).data=e;for(i=0,s=l6(t(a));i<l;++i)a[s[i]].index=i;return n(a,s),a}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:KX(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:KX(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?c6:"function"==typeof e?e:KX(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=e??o6,o):n},o}v3=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,s=e.shortDays,a=e.months,l=e.shortMonths,c=j3(o),u=E3(o),d=j3(i),A=E3(i),h=j3(s),p=E3(s),f=j3(a),m=E3(a),g=j3(l),y=E3(l),v={a:function(e){return s[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return a[e.getMonth()]},c:null,d:Y3,e:Y3,f:t8,g:A8,G:p8,H:Z3,I:X3,j:J3,L:e8,m:n8,M:r8,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:O8,s:D8,S:o8,u:i8,U:s8,V:l8,w:c8,W:u8,x:null,X:null,y:d8,Y:h8,Z:f8,"%":M8},b={a:function(e){return s[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return a[e.getUTCMonth()]},c:null,d:m8,e:m8,f:w8,g:F8,G:L8,H:g8,I:y8,j:v8,L:b8,m:x8,M:k8,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:O8,s:D8,S:_8,u:C8,U:B8,V:j8,w:E8,W:N8,x:null,X:null,y:I8,Y:T8,Z:P8,"%":M8},w={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=A.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return _(e,t,n,r)},d:R3,e:R3,f:K3,g:M3,G:P3,H:Q3,I:Q3,j:z3,L:V3,m:U3,M:H3,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:D3,Q:G3,s:$3,S:q3,u:I3,U:F3,V:T3,w:N3,W:L3,x:function(e,t,r){return _(e,n,t,r)},X:function(e,t,n){return _(e,r,t,n)},y:M3,Y:P3,Z:O3,"%":W3};function x(e,t){return function(n){var r,o,i,s=[],a=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++a<c;)37===e.charCodeAt(a)&&(s.push(e.slice(l,a)),null!=(o=x3[r=e.charAt(++a)])?r=e.charAt(++a):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),s.push(r),l=a+1);return s.push(e.slice(l,a)),s.join("")}}function k(e,t){return function(n){var r,o,i=y3(1900,void 0,1);if(_(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=g3(y3(i.y,0,1))).getUTCDay(),r=o>4||0===o?t3.ceil(r):t3(r),r=H4.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=m3(y3(i.y,0,1))).getDay(),r=o>4||0===o?W4.ceil(r):W4(r),r=Q4.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?g3(y3(i.y,0,1)).getUTCDay():m3(y3(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,g3(i)):m3(i)}}function _(e,t,n,r){for(var o,i,s=0,a=t.length,l=n.length;s<a;){if(r>=l)return-1;if(37===(o=t.charCodeAt(s++))){if(o=t.charAt(s++),!(i=w[o in x3?t.charAt(s++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return v.x=x(n,v),v.X=x(r,v),v.c=x(t,v),b.x=x(n,b),b.X=x(r,b),b.c=x(t,b),{format:function(e){var t=x(e+="",v);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=x(e+="",b);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),b3=v3.format,v3.parse,w3=v3.utcFormat,v3.utcParse,n.dn(o6),n.dn(i6),n.dn(s6),n.dn(a6),n.dn(l6),Array.prototype.slice,n.dn(c6),n.dn(A6);var h6=n(4506),p6=n.n(h6),f6=n(1684),m6=n.n(f6),g6=n(7307),y6=n.n(g6),v6=n(2404),b6=n.n(v6),w6=n(8351),x6=n.n(w6);function k6(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _6=function(e){return e},C6={"@@functional/placeholder":!0},B6=function(e){return e===C6},S6=function(e){return function t(){return 0===arguments.length||1===arguments.length&&B6(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},j6=function e(t,n){return 1===t?n:S6(function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var s=o.filter(function(e){return e!==C6}).length;return s>=t?n.apply(void 0,o):e(t-s,S6(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,s=o.map(function(e){return B6(e)?t.shift():e});return n.apply(void 0,(i=s,function(e){if(Array.isArray(e))return k6(e)}(i)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return k6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k6(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(t))}))})},E6=function(e){return j6(e.length,e)},N6=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},I6=E6(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(e){return t[e]}).map(e)}),F6=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return _6;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce(function(e,t){return t(e)},o.apply(void 0,arguments))}},T6=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},L6=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every(function(e,n){return e===t[n]})?n:(t=o,n=e.apply(void 0,o))}};E6(function(e,t,n){var r=+e;return r+n*(+t-r)}),E6(function(e,t,n){var r=t-+e;return(n-e)/(r||1/0)}),E6(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const P6=function(e,t,n){for(var r=new(x6())(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},M6=function(e){return 0===e?1:Math.floor(new(x6())(e).abs().log(10).toNumber())+1};function O6(e){return function(e){if(Array.isArray(e))return R6(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||U6(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D6(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(_n=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{_n||null==s.return||s.return()}finally{if(r)throw o}}return n}}(e,t)||U6(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U6(e,t){if(e){if("string"==typeof e)return R6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R6(e,t):void 0}}function R6(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function z6(e){var t=D6(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function Q6(e,t,n){if(e.lte(0))return new(x6())(0);var r=M6(e.toNumber()),o=new(x6())(10).pow(r),i=e.div(o),s=1!==r?.05:.1,a=new(x6())(Math.ceil(i.div(s).toNumber())).add(n).mul(s).mul(o);return t?a:new(x6())(Math.ceil(a))}function H6(e,t,n){var r=1,o=new(x6())(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new(x6())(10).pow(M6(e)-1),o=new(x6())(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new(x6())(Math.floor(e)))}else 0===e?o=new(x6())(Math.floor((t-1)/2)):n||(o=new(x6())(Math.floor(e)));var s=Math.floor((t-1)/2),a=F6(I6(function(e){return o.add(new(x6())(e-s).mul(r)).toNumber()}),N6);return a(0,t)}function q6(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new(x6())(0),tickMin:new(x6())(0),tickMax:new(x6())(0)};var i,s=Q6(new(x6())(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new(x6())(0):(i=new(x6())(e).add(t).div(2)).sub(new(x6())(i).mod(s));var a=Math.ceil(i.sub(e).div(s).toNumber()),l=Math.ceil(new(x6())(t).sub(i).div(s).toNumber()),c=a+l+1;return c>n?q6(e,t,n,r,o+1):(c<n&&(l=t>0?l+(n-c):l,a=t>0?a:a+(n-c)),{step:s,tickMin:i.sub(new(x6())(a).mul(s)),tickMax:i.add(new(x6())(l).mul(s))})}var V6=L6(function(e){var t=D6(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=Math.max(o,2),a=D6(z6([n,r]),2),l=a[0],c=a[1];if(l===-1/0||c===1/0){var u=c===1/0?[l].concat(O6(N6(0,o-1).map(function(){return 1/0}))):[].concat(O6(N6(0,o-1).map(function(){return-1/0})),[c]);return n>r?T6(u):u}if(l===c)return H6(l,o,i);var d=q6(l,c,s,i),A=d.step,h=d.tickMin,p=d.tickMax,f=P6(h,p.add(new(x6())(.1).mul(A)),A);return n>r?T6(f):f}),K6=(L6(function(e){var t=D6(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=Math.max(o,2),a=D6(z6([n,r]),2),l=a[0],c=a[1];if(l===-1/0||c===1/0)return[n,r];if(l===c)return H6(l,o,i);var u=Q6(new(x6())(c).sub(l).div(s-1),i,0),d=F6(I6(function(e){return new(x6())(l).add(new(x6())(e).mul(u)).toNumber()}),N6),A=d(0,s).filter(function(e){return e>=l&&e<=c});return n>r?T6(A):A}),L6(function(e,t){var n=D6(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=D6(z6([r,o]),2),a=s[0],l=s[1];if(a===-1/0||l===1/0)return[r,o];if(a===l)return[a];var c=Math.max(t,2),u=Q6(new(x6())(l).sub(a).div(c-1),i,0),d=[].concat(O6(P6(new(x6())(a),new(x6())(l).sub(new(x6())(.99).mul(u)),u)),[l]);return r>o?T6(d):d})),W6=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function G6(e){return G6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G6(e)}function $6(){return $6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$6.apply(this,arguments)}function Y6(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Z6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r9(r.key),r)}}function X6(e,t,n){return t=e9(t),function(e,t){if(t&&("object"===G6(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,J6()?Reflect.construct(t,n||[],e9(e).constructor):t.apply(e,n))}function J6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(J6=function(){return!!e})()}function e9(e){return e9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e9(e)}function t9(e,t){return t9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t9(e,t)}function n9(e,t,n){return(t=r9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r9(e){var t=function(e){if("object"!=G6(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=G6(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==G6(t)?t:t+""}var o9=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),X6(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&t9(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e=this.props,t=e.offset,n=e.layout,r=e.width,o=e.dataKey,i=e.data,s=e.dataPointFormatter,a=e.xAxis,l=e.yAxis,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,W6),u=_Z(c,!1);"x"===this.props.direction&&"number"!==a.type&&DY(!1);var d=i.map(function(e){var i=s(e,o),c=i.x,d=i.y,A=i.value,h=i.errorVal;if(!h)return null;var p,f,m=[];if(Array.isArray(h)){var g=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Y6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y6(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(h,2);p=g[0],f=g[1]}else p=f=h;if("vertical"===n){var y=a.scale,v=d+t,b=v+r,w=v-r,x=y(A-p),k=y(A+f);m.push({x1:k,y1:b,x2:k,y2:w}),m.push({x1:x,y1:v,x2:k,y2:v}),m.push({x1:x,y1:b,x2:x,y2:w})}else if("horizontal"===n){var _=l.scale,C=c+t,B=C-r,S=C+r,j=_(A-p),E=_(A+f);m.push({x1:B,y1:E,x2:S,y2:E}),m.push({x1:C,y1:j,x2:C,y2:E}),m.push({x1:B,y1:j,x2:S,y2:j})}return gt().createElement(TZ,$6({className:"recharts-errorBar",key:"bar-".concat(m.map(function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))},u),m.map(function(e){return gt().createElement("line",$6({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))}))});return gt().createElement(TZ,{className:"recharts-errorBars"},d)}}],r&&Z6(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(gt().Component);function i9(e){return i9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i9(e)}function s9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s9(Object(n),!0).forEach(function(t){l9(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s9(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l9(e,t,n){return t=function(e){var t=function(e){if("object"!=i9(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i9(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i9(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n9(o9,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),n9(o9,"displayName","ErrorBar");var c9=function(e){var t=e.children,n=e.formattedGraphicalItems,r=e.legendWidth,o=e.legendContent,i=wZ(t,TJ);if(!i)return null;var s,a=TJ.defaultProps,l=void 0!==a?a9(a9({},a),i.props):{};return s=i.props&&i.props.payload?i.props&&i.props.payload:"children"===o?(n||[]).reduce(function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map(function(e){return{type:i.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}}))},[]):(n||[]).map(function(e){var t=e.item,n=t.type.defaultProps,r=void 0!==n?a9(a9({},n),t.props):{},o=r.dataKey,i=r.name,s=r.legendType;return{inactive:r.hide,dataKey:o,type:l.iconType||s||"square",color:y9(t),value:i||o,payload:r}}),a9(a9(a9({},l),TJ.getWithHeight(i,r)),{},{payload:s,item:i})};function u9(e){return u9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u9(e)}function d9(e){return function(e){if(Array.isArray(e))return A9(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return A9(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A9(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A9(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h9(Object(n),!0).forEach(function(t){f9(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h9(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f9(e,t,n){return t=function(e){var t=function(e){if("object"!=u9(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u9(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u9(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m9(e,t,n){return SY()(e)||SY()(t)?n:ZY(t)?TY()(e,t,n):EY()(t)?t(e):n}function g9(e,t,n,r){var o=y6()(e,function(e){return m9(e,t)});if("number"===n){var i=o.filter(function(e){return YY(e)||parseFloat(e)});return i.length?[m6()(i),p6()(i)]:[1/0,-1/0]}return(r?o.filter(function(e){return!SY()(e)}):o).map(function(e){return ZY(e)||e instanceof Date?e:""})}var y9=function(e){var t,n,r=e.type.displayName,o=null!==(t=e.type)&&void 0!==t&&t.defaultProps?p9(p9({},e.type.defaultProps),e.props):e.props,i=o.stroke,s=o.fill;switch(r){case"Line":n=i;break;case"Area":case"Radar":n=i&&"none"!==i?i:s;break;default:n=s}return n},v9=function(e,t,n,r,o){var i=bZ(t.props.children,o9).filter(function(e){return function(e,t,n){return!!SY()(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)});if(i&&i.length){var s=i.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=m9(t,n);if(SY()(r))return e;var o=Array.isArray(r)?[m6()(r),p6()(r)]:[r,r],i=s.reduce(function(e,n){var r=m9(t,n,0),i=o[0]-Math.abs(Array.isArray(r)?r[0]:r),s=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(s,e[1])]},[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]},[1/0,-1/0])}return null},b9=function(e,t,n,r,o){var i=t.map(function(t){var i=t.props.dataKey;return"number"===n&&i&&v9(e,t,i,r)||g9(e,i,n,o)});if("number"===n)return i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var s={};return i.reduce(function(e,t){for(var n=0,r=t.length;n<r;n++)s[t[n]]||(s[t[n]]=!0,e.push(t[n]));return e},[])},w9=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},x9=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,s=e.range,a="scaleBand"===e.realScaleType?r.bandwidth()/2:2,l=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/a:0;return l="angleAxis"===e.axisType&&(null==s?void 0:s.length)>=2?2*GY(s[0]-s[1])*l:l,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map(function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+l,value:e,offset:l}}).filter(function(e){return!VY()(e.coordinate)}):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:r(e)+l,value:e,index:t,offset:l}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(e){return{coordinate:r(e)+l,value:e,offset:l}}):r.domain().map(function(e,t){return{coordinate:r(e)+l,value:o?o[e]:e,index:t,offset:l}})},k9=new WeakMap,_9=function(e,t){if("function"!=typeof t)return e;k9.has(e)||k9.set(e,new WeakMap);var n=k9.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},C9=1e-4,B9={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,s=0;s<t;++s){var a=VY()(e[s][n][1])?e[s][n][0]:e[s][n][1];a>=0?(e[s][n][0]=o,e[s][n][1]=o+a,o=e[s][n][1]):(e[s][n][0]=i,e[s][n][1]=i+a,i=e[s][n][1])}},expand:i6,none:o6,silhouette:s6,wiggle:a6,positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0;i<t;++i){var s=VY()(e[i][n][1])?e[i][n][0]:e[i][n][1];s>=0?(e[i][n][0]=o,e[i][n][1]=o+s,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},S9=function(e,t,n){var r=t.map(function(e){return e.props.dataKey}),o=B9[n],i=A6().keys(r).value(function(e,t){return+m9(e,t,0)}).order(c6).offset(o);return i(e)},j9=function(e,t,n){return Object.keys(e).reduce(function(r,o){var i=e[o].stackedData.reduce(function(e,r){var o=r.slice(t,n+1).reduce(function(e,t){return[m6()(t.concat([e[0]]).filter(YY)),p6()(t.concat([e[1]]).filter(YY))]},[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},E9=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,N9=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,I9=function(e,t,n){if(EY()(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(YY(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(E9.test(e[0])){var o=+E9.exec(e[0])[1];r[0]=t[0]-o}else EY()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(YY(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(N9.test(e[1])){var i=+N9.exec(e[1])[1];r[1]=t[1]+i}else EY()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},F9=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=PY()(t,function(e){return e.coordinate}),i=1/0,s=1,a=o.length;s<a;s++){var l=o[s],c=o[s-1];i=Math.min((l.coordinate||0)-(c.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},T9=function(e,t,n){return e&&e.length?b6()(e,TY()(n,"type.defaultProps.domain"))?t:e:t},L9=function(e,t){var n=e.type.defaultProps?p9(p9({},e.type.defaultProps),e.props):e.props,r=n.dataKey,o=n.name,i=n.unit,s=n.formatter,a=n.tooltipType,l=n.chartType,c=n.hide;return p9(p9({},_Z(e,!1)),{},{dataKey:r,unit:i,formatter:s,name:o||r,color:y9(e),value:m9(t,r),type:a,payload:t,chartType:l,hide:c})};function P9(e){return P9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P9(e)}function M9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M9(Object(n),!0).forEach(function(t){D9(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M9(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function D9(e,t,n){return t=function(e){var t=function(e){if("object"!=P9(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=P9(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==P9(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U9=["Webkit","Moz","O","ms"];function R9(e){return R9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R9(e)}function z9(){return z9=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z9.apply(this,arguments)}function Q9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q9(Object(n),!0).forEach(function(t){$9(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q9(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function q9(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Y9(r.key),r)}}function V9(e,t,n){return t=W9(t),function(e,t){if(t&&("object"===R9(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,K9()?Reflect.construct(t,n||[],W9(e).constructor):t.apply(e,n))}function K9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(K9=function(){return!!e})()}function W9(e){return W9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},W9(e)}function G9(e,t){return G9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},G9(e,t)}function $9(e,t,n){return(t=Y9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y9(e){var t=function(e){if("object"!=R9(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=R9(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==R9(t)?t:t+""}var Z9=function(e){return e.changedTouches&&!!e.changedTouches.length},X9=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),$9(n=V9(this,t,[e]),"handleDrag",function(e){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideDrag(e)}),$9(n,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])}),$9(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=n.props,t=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:t,startIndex:o})}),n.detachDragEndListener()}),$9(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),$9(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),$9(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),$9(n,"handleSlideDragStart",function(e){var t=Z9(e)?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G9(e,t)}(t,e),n=t,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var n=e.startX,r=e.endX,o=this.state.scaleValues,i=this.props,s=i.gap,a=i.data.length-1,l=Math.min(n,r),c=Math.max(n,r),u=t.getIndexInRange(o,l),d=t.getIndexInRange(o,c);return{startIndex:u-u%s,endIndex:d===a?a:d-d%s}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=m9(n[e],o,e);return EY()(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,s=i.x,a=i.width,l=i.travellerWidth,c=i.startIndex,u=i.endIndex,d=i.onChange,A=e.pageX-n;A>0?A=Math.min(A,s+a-l-o,s+a-l-r):A<0&&(A=Math.max(A,s-r,s-o));var h=this.getIndex({startX:r+A,endX:o+A});h.startIndex===c&&h.endIndex===u||!d||d(h),this.setState({startX:r+A,endX:o+A,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=Z9(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,o=t.endX,i=t.startX,s=this.state[r],a=this.props,l=a.x,c=a.width,u=a.travellerWidth,d=a.onChange,A=a.gap,h=a.data,p={startX:this.state.startX,endX:this.state.endX},f=e.pageX-n;f>0?f=Math.min(f,l+c-u-s):f<0&&(f=Math.max(f,l-s)),p[r]=s+f;var m=this.getIndex(p),g=m.startIndex,y=m.endIndex;this.setState($9($9({},r,s+f),"brushMoveStartX",e.pageX),function(){var e;d&&(e=h.length-1,("startX"===r&&(o>i?g%A===0:y%A===0)||o<i&&y===e||"endX"===r&&(o>i?y%A===0:g%A===0)||o>i&&y===e)&&d(m))})}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,i=r.startX,s=r.endX,a=this.state[t],l=o.indexOf(a);if(-1!==l){var c=l+e;if(!(-1===c||c>=o.length)){var u=o[c];"startX"===t&&u>=s||"endX"===t&&u<=i||this.setState($9({},t,u),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.fill,s=e.stroke;return gt().createElement("rect",{stroke:s,fill:i,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.data,s=e.children,a=e.padding,l=ft.Children.only(s);return l?gt().cloneElement(l,{x:t,y:n,width:r,height:o,margin:a,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(e,n){var r,o,i=this,s=this.props,a=s.y,l=s.travellerWidth,c=s.height,u=s.traveller,d=s.ariaLabel,A=s.data,h=s.startIndex,p=s.endIndex,f=Math.max(e,this.props.x),m=H9(H9({},_Z(this.props,!1)),{},{x:f,y:a,width:l,height:c}),g=d||"Min value: ".concat(null===(r=A[h])||void 0===r?void 0:r.name,", Max value: ").concat(null===(o=A[p])||void 0===o?void 0:o.name);return gt().createElement(TZ,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),i.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,n))},onFocus:function(){i.setState({isTravellerFocused:!0})},onBlur:function(){i.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(u,m))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,i=n.stroke,s=n.travellerWidth,a=Math.min(e,t)+s,l=Math.max(Math.abs(t-e)-s,0);return gt().createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:a,y:r,width:l,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,i=e.travellerWidth,s=e.stroke,a=this.state,l=a.startX,c=a.endX,u={pointerEvents:"none",fill:s};return gt().createElement(TZ,{className:"recharts-brush-texts"},gt().createElement(o2,z9({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,c)-5,y:r+o/2},u),this.getTextOfTick(t)),gt().createElement(o2,z9({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,c)+i+5,y:r+o/2},u),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,i=e.y,s=e.width,a=e.height,l=e.alwaysShowText,c=this.state,u=c.startX,d=c.endX,A=c.isTextActive,h=c.isSlideMoving,p=c.isTravellerMoving,f=c.isTravellerFocused;if(!t||!t.length||!YY(o)||!YY(i)||!YY(s)||!YY(a)||s<=0||a<=0)return null;var m=sr("recharts-brush",n),g=1===gt().Children.count(r),y=function(e,t){var n=e.replace(/(\w)/,function(e){return e.toUpperCase()}),r=U9.reduce(function(e,r){return O9(O9({},e),{},D9({},r+n,t))},{});return r[e]=t,r}("userSelect","none");return gt().createElement(TZ,{className:m,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:y},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(u,d),this.renderTravellerLayer(u,"startX"),this.renderTravellerLayer(d,"endX"),(A||h||p||f||l)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=e.stroke,s=Math.floor(n+o/2)-1;return gt().createElement(gt().Fragment,null,gt().createElement("rect",{x:t,y:n,width:r,height:o,fill:i,stroke:"none"}),gt().createElement("line",{x1:t+1,y1:s,x2:t+r-1,y2:s,fill:"none",stroke:"#fff"}),gt().createElement("line",{x1:t+1,y1:s+2,x2:t+r-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,n){return gt().isValidElement(e)?gt().cloneElement(e,n):EY()(e)?e(n):t.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,s=e.updateId,a=e.startIndex,l=e.endIndex;if(n!==t.prevData||s!==t.prevUpdateId)return H9({prevData:n,prevTravellerWidth:i,prevUpdateId:s,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,s=e.travellerWidth;if(!t||!t.length)return{};var a=t.length,l=k1().domain(IY()(0,a)).range([o,o+i-s]),c=l.domain().map(function(e){return l(e)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(r),scale:l,scaleValues:c}}({data:n,width:r,x:o,travellerWidth:i,startIndex:a,endIndex:l}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var c=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:n,prevTravellerWidth:i,prevUpdateId:s,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],r&&q9(n.prototype,r),o&&q9(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ft.PureComponent);function J9(e){return J9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J9(e)}function e7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e7(Object(n),!0).forEach(function(t){n7(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function n7(e,t,n){return t=function(e){var t=function(e){if("object"!=J9(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=J9(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==J9(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}$9(X9,"displayName","Brush"),$9(X9,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var o7=Math.PI/180,i7=function(e){return 180*e/Math.PI},s7=function(e,t,n,r){return{x:e+Math.cos(-o7*r)*n,y:t+Math.sin(-o7*r)*n}},a7=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},l7=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},c7=function(e,t){var n=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,s=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(s<=0)return{radius:s};var a=(n-o)/s,l=Math.acos(a);return r>i&&(l=2*Math.PI-l),{radius:s,angle:i7(l),angleInRadian:l}}({x:e.x,y:e.y},t),r=n.radius,o=n.angle,i=t.innerRadius,s=t.outerRadius;if(r<i||r>s)return!1;if(0===r)return!0;var a,l=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),c=l.startAngle,u=l.endAngle,d=o;if(c<=u){for(;d>u;)d-=360;for(;d<c;)d+=360;a=d>=c&&d<=u}else{for(;d>c;)d-=360;for(;d<u;)d+=360;a=d>=u&&d<=c}return a?t7(t7({},t),{},{radius:r,angle:l7(d,t)}):null},u7=function(e){return(0,ft.isValidElement)(e)||EY()(e)||"boolean"==typeof e?"":e.className};function d7(e){return d7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d7(e)}var A7=["offset"];function h7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p7(Object(n),!0).forEach(function(t){m7(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m7(e,t,n){return t=function(e){var t=function(e){if("object"!=d7(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d7(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d7(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g7(){return g7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g7.apply(this,arguments)}function y7(e){var t,n=e.offset,r=f7({offset:void 0===n?5:n},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,A7)),o=r.viewBox,i=r.position,s=r.value,a=r.children,l=r.content,c=r.className,u=void 0===c?"":c,d=r.textBreakAll;if(!o||SY()(s)&&SY()(a)&&!(0,ft.isValidElement)(l)&&!EY()(l))return null;if((0,ft.isValidElement)(l))return(0,ft.cloneElement)(l,r);if(EY()(l)){if(t=(0,ft.createElement)(l,r),(0,ft.isValidElement)(t))return t}else t=function(e){var t=e.value,n=e.formatter,r=SY()(e.children)?t:e.children;return EY()(n)?n(r):r}(r);var A=function(e){return"cx"in e&&YY(e.cx)}(o),h=_Z(r,!0);if(A&&("insideStart"===i||"insideEnd"===i||"end"===i))return function(e,t,n){var r,o,i=e.position,s=e.viewBox,a=e.offset,l=e.className,c=s,u=c.cx,d=c.cy,A=c.innerRadius,h=c.outerRadius,p=c.startAngle,f=c.endAngle,m=c.clockWise,g=(A+h)/2,y=function(e,t){return GY(t-e)*Math.min(Math.abs(t-e),360)}(p,f),v=y>=0?1:-1;"insideStart"===i?(r=p+v*a,o=m):"insideEnd"===i?(r=f-v*a,o=!m):"end"===i&&(r=f+v*a,o=m),o=y<=0?o:!o;var b=s7(u,d,g,r),w=s7(u,d,g,r+359*(o?1:-1)),x="M".concat(b.x,",").concat(b.y,"\n A").concat(g,",").concat(g,",0,1,").concat(o?0:1,",\n ").concat(w.x,",").concat(w.y),k=SY()(e.id)?JY("recharts-radial-line-"):e.id;return gt().createElement("text",g7({},n,{dominantBaseline:"central",className:sr("recharts-radial-bar-label",l)}),gt().createElement("defs",null,gt().createElement("path",{id:k,d:x})),gt().createElement("textPath",{xlinkHref:"#".concat(k)},t))}(r,t,h);var p=A?function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,s=o.cy,a=o.innerRadius,l=o.outerRadius,c=(o.startAngle+o.endAngle)/2;if("outside"===r){var u=s7(i,s,l+n,c),_x=u.x;return{x:_x,y:u.y,textAnchor:_x>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:s,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:s,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:s,textAnchor:"middle",verticalAnchor:"end"};var d=s7(i,s,(a+l)/2,c);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}}(r):function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,s=i.x,a=i.y,l=i.width,c=i.height,u=c>=0?1:-1,d=u*r,A=u>0?"end":"start",h=u>0?"start":"end",p=l>=0?1:-1,f=p*r,m=p>0?"end":"start",g=p>0?"start":"end";if("top"===o)return f7(f7({},{x:s+l/2,y:a-u*r,textAnchor:"middle",verticalAnchor:A}),n?{height:Math.max(a-n.y,0),width:l}:{});if("bottom"===o)return f7(f7({},{x:s+l/2,y:a+c+d,textAnchor:"middle",verticalAnchor:h}),n?{height:Math.max(n.y+n.height-(a+c),0),width:l}:{});if("left"===o){var y={x:s-f,y:a+c/2,textAnchor:m,verticalAnchor:"middle"};return f7(f7({},y),n?{width:Math.max(y.x-n.x,0),height:c}:{})}if("right"===o){var v={x:s+l+f,y:a+c/2,textAnchor:g,verticalAnchor:"middle"};return f7(f7({},v),n?{width:Math.max(n.x+n.width-v.x,0),height:c}:{})}var b=n?{width:l,height:c}:{};return"insideLeft"===o?f7({x:s+f,y:a+c/2,textAnchor:g,verticalAnchor:"middle"},b):"insideRight"===o?f7({x:s+l-f,y:a+c/2,textAnchor:m,verticalAnchor:"middle"},b):"insideTop"===o?f7({x:s+l/2,y:a+d,textAnchor:"middle",verticalAnchor:h},b):"insideBottom"===o?f7({x:s+l/2,y:a+c-d,textAnchor:"middle",verticalAnchor:A},b):"insideTopLeft"===o?f7({x:s+f,y:a+d,textAnchor:g,verticalAnchor:h},b):"insideTopRight"===o?f7({x:s+l-f,y:a+d,textAnchor:m,verticalAnchor:h},b):"insideBottomLeft"===o?f7({x:s+f,y:a+c-d,textAnchor:g,verticalAnchor:A},b):"insideBottomRight"===o?f7({x:s+l-f,y:a+c-d,textAnchor:m,verticalAnchor:A},b):QY()(o)&&(YY(o.x)||$Y(o.x))&&(YY(o.y)||$Y(o.y))?f7({x:s+eZ(o.x,l),y:a+eZ(o.y,c),textAnchor:"end",verticalAnchor:"end"},b):f7({x:s+l/2,y:a+c/2,textAnchor:"middle",verticalAnchor:"middle"},b)}(r);return gt().createElement(o2,g7({className:sr("recharts-label",u)},h,p,{breakAll:d}),t)}y7.displayName="Label";var v7=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,s=e.r,a=e.radius,l=e.innerRadius,c=e.outerRadius,u=e.x,d=e.y,A=e.top,h=e.left,p=e.width,f=e.height,m=e.clockWise,g=e.labelViewBox;if(g)return g;if(YY(p)&&YY(f)){if(YY(u)&&YY(d))return{x:u,y:d,width:p,height:f};if(YY(A)&&YY(h))return{x:A,y:h,width:p,height:f}}return YY(u)&&YY(d)?{x:u,y:d,width:0,height:0}:YY(t)&&YY(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:l||0,outerRadius:c||a||s||0,clockWise:m}:e.viewBox?e.viewBox:{}};y7.parseViewBox=v7,y7.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=v7(e),i=bZ(r,y7).map(function(e,n){return(0,ft.cloneElement)(e,{viewBox:t||o,key:"label-".concat(n)})});if(!n)return i;var s,a=function(e,t){return e?!0===e?gt().createElement(y7,{key:"label-implicit",viewBox:t}):ZY(e)?gt().createElement(y7,{key:"label-implicit",viewBox:t,value:e}):(0,ft.isValidElement)(e)?e.type===y7?(0,ft.cloneElement)(e,{key:"label-implicit",viewBox:t}):gt().createElement(y7,{key:"label-implicit",content:e,viewBox:t}):EY()(e)?gt().createElement(y7,{key:"label-implicit",content:e,viewBox:t}):QY()(e)?gt().createElement(y7,g7({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||o);return[a].concat(function(e){if(Array.isArray(e))return h7(e)}(s=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return h7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h7(e,t):void 0}}(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())};var b7=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},w7=n(3916),x7=n.n(w7),k7=n(9747),_7=n.n(k7);function C7(e){return C7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C7(e)}function B7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,N7(r.key),r)}}function S7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function j7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S7(Object(n),!0).forEach(function(t){E7(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function E7(e,t,n){return(t=N7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N7(e){var t=function(e){if("object"!=C7(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=C7(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==C7(t)?t:t+""}var I7=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},F7=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+s}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&B7(t.prototype,n),r&&B7(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();E7(F7,"EPS",1e-4);var T7=function(e){var t=Object.keys(e).reduce(function(t,n){return j7(j7({},t),{},E7({},n,F7.create(e[n])))},{});return j7(j7({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return x7()(e,function(e,n){return t[n].apply(e,{bandAware:r,position:o})})},isInRange:function(e){return _7()(e,function(e,n){return t[n].isInRange(e)})}})};function L7(){return L7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L7.apply(this,arguments)}function P7(e){return P7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P7(e)}function M7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M7(Object(n),!0).forEach(function(t){H7(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function D7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,q7(r.key),r)}}function U7(e,t,n){return t=z7(t),function(e,t){if(t&&("object"===P7(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,R7()?Reflect.construct(t,n||[],z7(e).constructor):t.apply(e,n))}function R7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(R7=function(){return!!e})()}function z7(e){return z7=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},z7(e)}function Q7(e,t){return Q7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Q7(e,t)}function H7(e,t,n){return(t=q7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q7(e){var t=function(e){if("object"!=P7(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=P7(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==P7(t)?t:t+""}var V7=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),U7(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q7(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e=this.props,n=e.x,r=e.y,o=e.r,i=e.alwaysShow,s=e.clipPathId,a=ZY(n),l=ZY(r);if(wX(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!l)return null;var c=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=T7({x:r.scale,y:o.scale}),s=i.apply({x:t,y:n},{bandAware:!0});return b7(e,"discard")&&!i.isInRange(s)?null:s}(this.props);if(!c)return null;var u=c.x,d=c.y,A=this.props,h=A.shape,p=A.className,f=O7(O7({clipPath:b7(this.props,"hidden")?"url(#".concat(s,")"):void 0},_Z(this.props,!0)),{},{cx:u,cy:d});return gt().createElement(TZ,{className:sr("recharts-reference-dot",p)},t.renderDot(h,f),y7.renderCallByParent(this.props,{x:u-o,y:d-o,width:2*o,height:2*o}))}}],r&&D7(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(gt().Component);H7(V7,"displayName","ReferenceDot"),H7(V7,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),H7(V7,"renderDot",function(e,t){return gt().isValidElement(e)?gt().cloneElement(e,t):EY()(e)?e(t):gt().createElement(PJ,L7({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))});var K7=n(2426),W7=n.n(K7),G7=(n(7309),n(104)),$7=n.n(G7)()(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),Y7=(0,ft.createContext)(void 0),Z7=(0,ft.createContext)(void 0),X7=(0,ft.createContext)(void 0),J7=(0,ft.createContext)({}),eee=(0,ft.createContext)(void 0),tee=(0,ft.createContext)(0),nee=(0,ft.createContext)(0),ree=function(e){var t=e.state,n=t.xAxisMap,r=t.yAxisMap,o=t.offset,i=e.clipPathId,s=e.children,a=e.width,l=e.height,c=$7(o);return gt().createElement(Y7.Provider,{value:n},gt().createElement(Z7.Provider,{value:r},gt().createElement(J7.Provider,{value:o},gt().createElement(X7.Provider,{value:c},gt().createElement(eee.Provider,{value:i},gt().createElement(tee.Provider,{value:l},gt().createElement(nee.Provider,{value:a},s)))))))};function oee(e){return oee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oee(e)}function iee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hee(r.key),r)}}function see(e,t,n){return t=lee(t),function(e,t){if(t&&("object"===oee(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,aee()?Reflect.construct(t,n||[],lee(e).constructor):t.apply(e,n))}function aee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(aee=function(){return!!e})()}function lee(e){return lee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lee(e)}function cee(e,t){return cee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cee(e,t)}function uee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uee(Object(n),!0).forEach(function(t){Aee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Aee(e,t,n){return(t=hee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hee(e){var t=function(e){if("object"!=oee(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oee(t)?t:t+""}function pee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fee(){return fee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fee.apply(this,arguments)}function mee(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxisId,i=e.yAxisId,s=e.shape,a=e.className,l=e.alwaysShow,c=(0,ft.useContext)(eee),u=function(e){var t=(0,ft.useContext)(Y7);null==t&&DY(!1);var n=t[e];return null==n&&DY(!1),n}(o),d=function(e){var t=(0,ft.useContext)(Z7);null==t&&DY(!1);var n=t[e];return null==n&&DY(!1),n}(i),A=(0,ft.useContext)(X7);if(!c||!A)return null;wX(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=function(e,t,n,r,o,i,s,a,l){var c=o.x,u=o.y,d=o.width,A=o.height;if(n){var h=l.y,p=e.y.apply(h,{position:i});if(b7(l,"discard")&&!e.y.isInRange(p))return null;var f=[{x:c+d,y:p},{x:c,y:p}];return"left"===a?f.reverse():f}if(t){var m=l.x,g=e.x.apply(m,{position:i});if(b7(l,"discard")&&!e.x.isInRange(g))return null;var y=[{x:g,y:u+A},{x:g,y:u}];return"top"===s?y.reverse():y}if(r){var v=l.segment.map(function(t){return e.apply(t,{position:i})});return b7(l,"discard")&&W7()(v,function(t){return!e.isInRange(t)})?null:v}return null}(T7({x:u.scale,y:d.scale}),ZY(t),ZY(n),r&&2===r.length,A,e.position,u.orientation,d.orientation,e);if(!h)return null;var p,f=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return pee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pee(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(h,2),m=f[0],g=m.x,y=m.y,v=f[1],b=v.x,w=v.y,x=dee(dee({clipPath:b7(e,"hidden")?"url(#".concat(c,")"):void 0},_Z(e,!0)),{},{x1:g,y1:y,x2:b,y2:w});return gt().createElement(TZ,{className:sr("recharts-reference-line",a)},function(e,t){return gt().isValidElement(e)?gt().cloneElement(e,t):EY()(e)?e(t):gt().createElement("line",fee({},t,{className:"recharts-reference-line-line"}))}(s,x),y7.renderCallByParent(e,I7({x:(p={x1:g,y1:y,x2:b,y2:w}).x1,y:p.y1},{x:p.x2,y:p.y2})))}var gee=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),see(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cee(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return gt().createElement(mee,this.props)}}])&&iee(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(gt().Component);function yee(){return yee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yee.apply(this,arguments)}function vee(e){return vee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vee(e)}function bee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bee(Object(n),!0).forEach(function(t){See(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jee(r.key),r)}}function kee(e,t,n){return t=Cee(t),function(e,t){if(t&&("object"===vee(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_ee()?Reflect.construct(t,n||[],Cee(e).constructor):t.apply(e,n))}function _ee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_ee=function(){return!!e})()}function Cee(e){return Cee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cee(e)}function Bee(e,t){return Bee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bee(e,t)}function See(e,t,n){return(t=jee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jee(e){var t=function(e){if("object"!=vee(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vee(t)?t:t+""}Aee(gee,"displayName","ReferenceLine"),Aee(gee,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var Eee=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),kee(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bee(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,n=e.x1,r=e.x2,o=e.y1,i=e.y2,s=e.className,a=e.alwaysShow,l=e.clipPathId;wX(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=ZY(n),u=ZY(r),d=ZY(o),A=ZY(i),h=this.props.shape;if(!(c||u||d||A||h))return null;var p=function(e,t,n,r,o){var i=o.x1,s=o.x2,a=o.y1,l=o.y2,c=o.xAxis,u=o.yAxis;if(!c||!u)return null;var d=T7({x:c.scale,y:u.scale}),A={x:e?d.x.apply(i,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(a,{position:"start"}):d.y.rangeMin},h={x:t?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:r?d.y.apply(l,{position:"end"}):d.y.rangeMax};return!b7(o,"discard")||d.isInRange(A)&&d.isInRange(h)?I7(A,h):null}(c,u,d,A,this.props);if(!p&&!h)return null;var f=b7(this.props,"hidden")?"url(#".concat(l,")"):void 0;return gt().createElement(TZ,{className:sr("recharts-reference-area",s)},t.renderRect(h,wee(wee({clipPath:f},_Z(this.props,!0)),p)),y7.renderCallByParent(this.props,p))}}])&&xee(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(gt().Component);function Nee(e){return function(e){if(Array.isArray(e))return Iee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Iee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Iee(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Iee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}See(Eee,"displayName","ReferenceArea"),See(Eee,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),See(Eee,"renderRect",function(e,t){return gt().isValidElement(e)?gt().cloneElement(e,t):EY()(e)?e(t):gt().createElement(h1,yee({},t,{className:"recharts-reference-area-rect"}))});var Fee=function(e,t,n,r,o){var i=bZ(e,gee),s=bZ(e,V7),a=[].concat(Nee(i),Nee(s)),l=bZ(e,Eee),c="".concat(r,"Id"),u=r[0],d=t;if(a.length&&(d=a.reduce(function(e,t){if(t.props[c]===n&&b7(t.props,"extendDomain")&&YY(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e},d)),l.length){var A="".concat(u,"1"),h="".concat(u,"2");d=l.reduce(function(e,t){if(t.props[c]===n&&b7(t.props,"extendDomain")&&YY(t.props[A])&&YY(t.props[h])){var r=t.props[A],o=t.props[h];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e},d)}return o&&o.length&&(d=o.reduce(function(e,t){return YY(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e},d)),d},Tee=n.cjs(function(e,t){var n=Object.prototype.hasOwnProperty,r="~";function o(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,o,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new i(n,o||e,s),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new o:delete e._events[t]}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),l.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)n.call(e,t)&&o.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},l.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,s=new Array(i);o<i;o++)s[o]=n[o].fn;return s},l.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,o,i,s){var a=r?r+e:e;if(!this._events[a])return!1;var l,c,u=this._events[a],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,o),!0;case 5:return u.fn.call(u.context,t,n,o,i),!0;case 6:return u.fn.call(u.context,t,n,o,i,s),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var A,h=u.length;for(c=0;c<h;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,o);break;default:if(!l)for(A=1,l=new Array(d-1);A<d;A++)l[A-1]=arguments[A];u[c].fn.apply(u[c].context,l)}}return!0},l.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||a(this,i);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||o&&!s[l].once||n&&s[l].context!==n)&&c.push(s[l]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l}),Lee=new(n.n(Tee)()),Pee="recharts.syncMouseEvents";function Mee(e){return Mee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mee(e)}function Oee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Uee(r.key),r)}}function Dee(e,t,n){return(t=Uee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uee(e){var t=function(e){if("object"!=Mee(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mee(t)?t:t+""}var Ree=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Dee(this,"activeIndex",0),Dee(this,"coordinateList",[]),Dee(this,"layout","horizontal")},t=[{key:"setDetails",value:function(e){var t,n=e.coordinateList,r=void 0===n?null:n,o=e.container,i=void 0===o?null:o,s=e.layout,a=void 0===s?null:s,l=e.offset,c=void 0===l?null:l,u=e.mouseHandlerCallback,d=void 0===u?null:u;this.coordinateList=null!==(t=null!=r?r:this.coordinateList)&&void 0!==t?t:[],this.container=null!=i?i:this.container,this.layout=null!=a?a:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=d?d:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,o=n.y,i=n.height,s=this.coordinateList[this.activeIndex].coordinate,a=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,l=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,c=r+s+a,u=o+this.offset.top+i/2+l;this.mouseHandlerCallback({pageX:c,pageY:u})}}}],t&&Oee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),zee=n(1331),Qee=n.n(zee),Hee=n(3812),qee=n.n(Hee);function Vee(e){return Vee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vee(e)}function Kee(){return Kee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kee.apply(this,arguments)}function Wee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gee(Object(n),!0).forEach(function(t){Yee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yee(e,t,n){return t=function(e){var t=function(e){if("object"!=Vee(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vee(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zee=function(e,t,n,r,o){var i,s=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-s/2,",").concat(t+o),(i+="L ".concat(e+n-s/2-r,",").concat(t+o))+"L ".concat(e,",").concat(t," Z")},Xee={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Jee=function(e){var t=$ee($ee({},Xee),e),n=(0,ft.useRef)(),r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Wee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wee(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,ft.useState)(-1),2),o=r[0],i=r[1];(0,ft.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&i(e)}catch(e){}},[]);var s=t.x,a=t.y,l=t.upperWidth,c=t.lowerWidth,u=t.height,d=t.className,A=t.animationEasing,h=t.animationDuration,p=t.animationBegin,f=t.isUpdateAnimationActive;if(s!==+s||a!==+a||l!==+l||c!==+c||u!==+u||0===l&&0===c||0===u)return null;var m=sr("recharts-trapezoid",d);return f?gt().createElement(r1,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:u,x:s,y:a},to:{upperWidth:l,lowerWidth:c,height:u,x:s,y:a},duration:h,animationEasing:A,isActive:f},function(e){var r=e.upperWidth,i=e.lowerWidth,s=e.height,a=e.x,l=e.y;return gt().createElement(r1,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:h,easing:A},gt().createElement("path",Kee({},_Z(t,!0),{className:m,d:Zee(a,l,r,i,s),ref:n})))}):gt().createElement("g",null,gt().createElement("path",Kee({},_Z(t,!0),{className:m,d:Zee(s,a,l,c,u)})))};function ete(e){return ete="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ete(e)}function tte(){return tte=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tte.apply(this,arguments)}function nte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rte(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nte(Object(n),!0).forEach(function(t){ote(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nte(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ote(e,t,n){return t=function(e){var t=function(e){if("object"!=ete(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ete(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ete(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ite=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,s=e.isExternal,a=e.cornerRadius,l=e.cornerIsExternal,c=a*(s?1:-1)+r,u=Math.asin(a/c)/o7,d=l?o:o+i*u,A=l?o-i*u:o;return{center:s7(t,n,c,d),circleTangency:s7(t,n,r,d),lineTangency:s7(t,n,c*Math.cos(u*o7),A),theta:u}},ste=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,s=function(e,t){return GY(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),a=i+s,l=s7(t,n,o,i),c=s7(t,n,o,a),u="M ".concat(l.x,",").concat(l.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(s)>180),",").concat(+(i>a),",\n ").concat(c.x,",").concat(c.y,"\n ");if(r>0){var d=s7(t,n,r,i),A=s7(t,n,r,a);u+="L ".concat(A.x,",").concat(A.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(s)>180),",").concat(+(i<=a),",\n ").concat(d.x,",").concat(d.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},ate={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},lte=function(e){var t=rte(rte({},ate),e),n=t.cx,r=t.cy,o=t.innerRadius,i=t.outerRadius,s=t.cornerRadius,a=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,u=t.endAngle,d=t.className;if(i<o||c===u)return null;var A,h=sr("recharts-sector",d),p=i-o,f=eZ(s,p,0,!0);return A=f>0&&Math.abs(c-u)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,s=e.forceCornerRadius,a=e.cornerIsExternal,l=e.startAngle,c=e.endAngle,u=GY(c-l),d=ite({cx:t,cy:n,radius:o,angle:l,sign:u,cornerRadius:i,cornerIsExternal:a}),A=d.circleTangency,h=d.lineTangency,p=d.theta,f=ite({cx:t,cy:n,radius:o,angle:c,sign:-u,cornerRadius:i,cornerIsExternal:a}),m=f.circleTangency,g=f.lineTangency,y=f.theta,v=a?Math.abs(l-c):Math.abs(l-c)-p-y;if(v<0)return s?"M ".concat(h.x,",").concat(h.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):ste({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:l,endAngle:c});var b="M ".concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(A.x,",").concat(A.y,"\n A").concat(o,",").concat(o,",0,").concat(+(v>180),",").concat(+(u<0),",").concat(m.x,",").concat(m.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(g.x,",").concat(g.y,"\n ");if(r>0){var w=ite({cx:t,cy:n,radius:r,angle:l,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:a}),x=w.circleTangency,k=w.lineTangency,_=w.theta,C=ite({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:a}),B=C.circleTangency,S=C.lineTangency,j=C.theta,E=a?Math.abs(l-c):Math.abs(l-c)-_-j;if(E<0&&0===i)return"".concat(b,"L").concat(t,",").concat(n,"Z");b+="L".concat(S.x,",").concat(S.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(B.x,",").concat(B.y,"\n A").concat(r,",").concat(r,",0,").concat(+(E>180),",").concat(+(u>0),",").concat(x.x,",").concat(x.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(k.x,",").concat(k.y,"Z")}else b+="L".concat(t,",").concat(n,"Z");return b}({cx:n,cy:r,innerRadius:o,outerRadius:i,cornerRadius:Math.min(f,p/2),forceCornerRadius:a,cornerIsExternal:l,startAngle:c,endAngle:u}):ste({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u}),gt().createElement("path",tte({},_Z(t,!0),{className:h,d:A,role:"img"}))},cte=["option","shapeType","propTransformer","activeClassName","isActive"];function ute(e){return ute="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ute(e)}function dte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ate(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dte(Object(n),!0).forEach(function(t){hte(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dte(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hte(e,t,n){return t=function(e){var t=function(e){if("object"!=ute(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ute(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ute(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pte(e,t){return Ate(Ate({},t),e)}function fte(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return gt().createElement(h1,n);case"trapezoid":return gt().createElement(Jee,n);case"sector":return gt().createElement(lte,n);case"symbols":if(function(e){return"symbols"===e}(t))return gt().createElement(lJ,n);break;default:return null}}function mte(e){var t,n=e.option,r=e.shapeType,o=e.propTransformer,i=void 0===o?pte:o,s=e.activeClassName,a=void 0===s?"recharts-active-shape":s,l=e.isActive,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,cte);if((0,ft.isValidElement)(n))t=(0,ft.cloneElement)(n,Ate(Ate({},c),function(e){return(0,ft.isValidElement)(e)?e.props:e}(n)));else if(EY()(n))t=n(c);else if(Qee()(n)&&!qee()(n)){var u=i(n,c);t=gt().createElement(fte,{shapeType:r,elementProps:u})}else{var d=c;t=gt().createElement(fte,{shapeType:r,elementProps:d})}return l?gt().createElement(TZ,{className:a},t):t}function gte(e,t){return null!=t&&"trapezoids"in e.props}function yte(e,t){return null!=t&&"sectors"in e.props}function vte(e,t){return null!=t&&"points"in e.props}function bte(e,t){var n,r,o=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,i=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return o&&i}function wte(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function xte(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function kte(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=function(e,t){var n;return gte(e,t)?n="trapezoids":yte(e,t)?n="sectors":vte(e,t)&&(n="points"),n}(n,t),i=function(e,t){var n,r;return gte(e,t)?null===(n=t.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:yte(e,t)?null===(r=t.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:vte(e,t)?t.payload:{}}(n,t),s=r.filter(function(e,r){var s=b6()(i,e),a=n.props[o].filter(function(e){var r=function(e,t){var n;return gte(e,t)?n=bte:yte(e,t)?n=wte:vte(e,t)&&(n=xte),n}(n,t);return r(e,t)}),l=n.props[o].indexOf(a[a.length-1]);return s&&r===l});return r.indexOf(s[s.length-1])}function _te(){}function Cte(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Bte(e){this._context=e}function Ste(e){return new Bte(e)}function jte(e){this._context=e}function Ete(e){return new jte(e)}function Nte(e){this._context=e}function Ite(e){return new Nte(e)}n.dn(_te),n.dn(Ste),Bte.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Cte(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Cte(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},n.dn(Ete),jte.prototype={areaStart:_te,areaEnd:_te,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Cte(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},n.dn(Ite),Nte.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Cte(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class Fte{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function Tte(e){this._context=e}function Lte(e){return new Tte(e)}function Pte(e){this._context=e}function Mte(e){return new Pte(e)}function Ote(e){return e<0?-1:1}function Dte(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),s=(n-e._y1)/(o||r<0&&-0),a=(i*o+s*r)/(r+o);return(Ote(i)+Ote(s))*Math.min(Math.abs(i),Math.abs(s),.5*Math.abs(a))||0}function Ute(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Rte(e,t,n){var r=e._x0,o=e._y0,i=e._x1,s=e._y1,a=(i-r)/3;e._context.bezierCurveTo(r+a,o+a*t,i-a,s-a*n,i,s)}function zte(e){this._context=e}function Qte(e){this._context=new Hte(e)}function Hte(e){this._context=e}function qte(e){this._context=e}function Vte(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),s=new Array(r);for(o[0]=0,i[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,s[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,s[t]-=n*s[t-1];for(o[r-1]=s[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(s[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function Kte(e){return new qte(e)}function Wte(e,t){this._context=e,this._t=t}function Gte(e){return new Wte(e,.5)}function $te(e){return e[0]}function Yte(e){return e[1]}function Zte(e,t){var n=KX(!0),r=null,o=Mte,i=null,s=JX(a);function a(a){var l,c,u,d=(a=l6(a)).length,A=!1;for(null==r&&(i=o(u=s())),l=0;l<=d;++l)!(l<d&&n(c=a[l],l,a))===A&&((A=!A)?i.lineStart():i.lineEnd()),A&&i.point(+e(c,l,a),+t(c,l,a));if(u)return i=null,u+""||null}return e="function"==typeof e?e:void 0===e?$te:KX(e),t="function"==typeof t?t:void 0===t?Yte:KX(t),a.x=function(t){return arguments.length?(e="function"==typeof t?t:KX(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:KX(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:KX(!!e),a):n},a.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),a):o},a.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),a):r},a}function Xte(e,t,n){var r=null,o=KX(!0),i=null,s=Mte,a=null,l=JX(c);function c(c){var u,d,A,h,p,f=(c=l6(c)).length,m=!1,g=new Array(f),y=new Array(f);for(null==i&&(a=s(p=l())),u=0;u<=f;++u){if(!(u<f&&o(h=c[u],u,c))===m)if(m=!m)d=u,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),A=u-1;A>=d;--A)a.point(g[A],y[A]);a.lineEnd(),a.areaEnd()}m&&(g[u]=+e(h,u,c),y[u]=+t(h,u,c),a.point(r?+r(h,u,c):g[u],n?+n(h,u,c):y[u]))}if(p)return a=null,p+""||null}function u(){return Zte().defined(o).curve(s).context(i)}return e="function"==typeof e?e:void 0===e?$te:KX(+e),t="function"==typeof t?t:KX(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?Yte:KX(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:KX(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:KX(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:KX(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:KX(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:KX(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:KX(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:KX(!!e),c):o},c.curve=function(e){return arguments.length?(s=e,null!=i&&(a=s(i)),c):s},c.context=function(e){return arguments.length?(null==e?i=a=null:a=s(i=e),c):i},c}function Jte(e){return Jte="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jte(e)}function ene(){return ene=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ene.apply(this,arguments)}function tne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tne(Object(n),!0).forEach(function(t){rne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tne(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rne(e,t,n){return t=function(e){var t=function(e){if("object"!=Jte(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Jte(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jte(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.dn(Lte),Tte.prototype={areaStart:_te,areaEnd:_te,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},n.dn(Mte),Pte.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},zte.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Rte(this,this._t0,Ute(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Rte(this,Ute(this,n=Dte(this,e,t)),n);break;default:Rte(this,this._t0,n=Dte(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Qte.prototype=Object.create(zte.prototype)).point=function(e,t){zte.prototype.point.call(this,t,e)},Hte.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},n.dn(Kte),qte.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Vte(e),o=Vte(t),i=0,s=1;s<n;++i,++s)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[s],t[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},n.dn(Gte),Wte.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},n.dn(Zte),n.dn(Xte);var one={curveBasisClosed:Ete,curveBasisOpen:Ite,curveBasis:Ste,curveBumpX:function(e){return new Fte(e,!0)},curveBumpY:function(e){return new Fte(e,!1)},curveLinearClosed:Lte,curveLinear:Mte,curveMonotoneX:function(e){return new zte(e)},curveMonotoneY:function(e){return new Qte(e)},curveNatural:Kte,curveStep:Gte,curveStepAfter:function(e){return new Wte(e,1)},curveStepBefore:function(e){return new Wte(e,0)}},ine=function(e){return e.x===+e.x&&e.y===+e.y},sne=function(e){return e.x},ane=function(e){return e.y},lne=function(e){var t=e.className,n=e.points,r=e.path,o=e.pathRef;if(!(n&&n.length||r))return null;var i=n&&n.length?function(e){var t,n=e.type,r=void 0===n?"linear":n,o=e.points,i=void 0===o?[]:o,s=e.baseLine,a=e.layout,l=e.connectNulls,c=void 0!==l&&l,u=function(e,t){if(EY()(e))return e;var n="curve".concat(kX()(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?one[n]||Mte:one["".concat(n).concat("vertical"===t?"Y":"X")]}(r,a),d=c?i.filter(function(e){return ine(e)}):i;if(Array.isArray(s)){var A=c?s.filter(function(e){return ine(e)}):s,h=d.map(function(e,t){return nne(nne({},e),{},{base:A[t]})});return(t="vertical"===a?Xte().y(ane).x1(sne).x0(function(e){return e.base.x}):Xte().x(sne).y1(ane).y0(function(e){return e.base.y})).defined(ine).curve(u),t(h)}return(t="vertical"===a&&YY(s)?Xte().y(ane).x1(sne).x0(s):YY(s)?Xte().x(sne).y1(ane).y0(s):Zte().x(sne).y(ane)).defined(ine).curve(u),t(d)}(e):r;return ft.createElement("path",ene({},_Z(e,!1),uZ(e),{className:sr("recharts-curve",t),d:i,ref:o}))};function cne(e){return cne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cne(e)}var une=["x","y","top","left","width","height","className"];function dne(){return dne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dne.apply(this,arguments)}function Ane(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hne(e,t,n){return t=function(e){var t=function(e){if("object"!=cne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cne(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pne=function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)},fne=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,o=void 0===r?0:r,i=e.top,s=void 0===i?0:i,a=e.left,l=void 0===a?0:a,c=e.width,u=void 0===c?0:c,d=e.height,A=void 0===d?0:d,h=e.className,p=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ane(Object(n),!0).forEach(function(t){hne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ane(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({x:n,y:o,top:s,left:l,width:u,height:A},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,une));return YY(n)&&YY(o)&&YY(u)&&YY(A)&&YY(s)&&YY(l)?gt().createElement("path",dne({},_Z(p,!0),{className:sr("recharts-cross",h),d:pne(n,o,u,A,s,l)})):null};function mne(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,i=e.endAngle;return{points:[s7(t,n,r,o),s7(t,n,r,i)],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}function gne(e,t,n){var r,o,i,s;if("horizontal"===e)i=r=t.x,o=n.top,s=n.top+n.height;else if("vertical"===e)s=o=t.y,r=n.left,i=n.left+n.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return mne(t);var a=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.angle,A=s7(a,l,c,d),h=s7(a,l,u,d);r=A.x,o=A.y,i=h.x,s=h.y}return[{x:r,y:o},{x:i,y:s}]}function yne(e){return yne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yne(e)}function vne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vne(Object(n),!0).forEach(function(t){wne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vne(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wne(e,t,n){return t=function(e){var t=function(e){if("object"!=yne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yne(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xne(e){var t,n,r,o=e.element,i=e.tooltipEventType,s=e.isActive,a=e.activeCoordinate,l=e.activePayload,c=e.offset,u=e.activeTooltipIndex,d=e.tooltipAxisBandSize,A=e.layout,h=e.chartName,p=null!==(t=o.props.cursor)&&void 0!==t?t:null===(n=o.type.defaultProps)||void 0===n?void 0:n.cursor;if(!o||!p||!s||!a||"ScatterChart"!==h&&"axis"!==i)return null;var f=lne;if("ScatterChart"===h)r=a,f=fne;else if("BarChart"===h)r=function(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-o:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-o,width:"horizontal"===e?r:n.width-1,height:"horizontal"===e?n.height-1:r}}(A,a,c,d),f=h1;else if("radial"===A){var m=mne(a),g=m.cx,y=m.cy,v=m.radius;r={cx:g,cy:y,startAngle:m.startAngle,endAngle:m.endAngle,innerRadius:v,outerRadius:v},f=lte}else r={points:gne(A,a,c)},f=lne;var b=bne(bne(bne(bne({stroke:"#ccc",pointerEvents:"none"},c),r),_Z(p,!1)),{},{payload:l,payloadIndex:u,className:sr("recharts-tooltip-cursor",p.className)});return(0,ft.isValidElement)(p)?(0,ft.cloneElement)(p,b):(0,ft.createElement)(f,b)}var kne=["item"],_ne=["children","className","width","height","style","compact","title","desc"];function Cne(e){return Cne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cne(e)}function Bne(){return Bne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bne.apply(this,arguments)}function Sne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||Pne(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jne(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ene(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rne(r.key),r)}}function Nne(e,t,n){return t=Fne(t),function(e,t){if(t&&("object"===Cne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ine()?Reflect.construct(t,n||[],Fne(e).constructor):t.apply(e,n))}function Ine(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ine=function(){return!!e})()}function Fne(e){return Fne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fne(e)}function Tne(e,t){return Tne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tne(e,t)}function Lne(e){return function(e){if(Array.isArray(e))return Mne(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Pne(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pne(e,t){if(e){if("string"==typeof e)return Mne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mne(e,t):void 0}}function Mne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function One(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Dne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?One(Object(n),!0).forEach(function(t){Une(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):One(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Une(e,t,n){return(t=Rne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rne(e){var t=function(e){if("object"!=Cne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cne(t)?t:t+""}var zne={xAxis:["bottom","top"],yAxis:["left","right"]},Qne={width:"100%",height:"100%"},Hne={x:0,y:0};function qne(e){return e}var Vne=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,o=t.dataEndIndex,i=(null!=n?n:[]).reduce(function(e,t){var n=t.props.data;return n&&n.length?[].concat(Lne(e),Lne(n)):e},[]);return i.length>0?i:e&&e.length&&YY(r)&&YY(o)?e.slice(r,o+1):[]};function Kne(e){return"number"===e?[0,"auto"]:void 0}var Wne=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,s=Vne(t,e);return n<0||!o||!o.length||n>=s.length?null:o.reduce(function(o,a){var l,c,u=null!==(l=a.props.data)&&void 0!==l?l:t;return u&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),(c=i.dataKey&&!i.allowDuplicatedCategory?rZ(void 0===u?s:u,i.dataKey,r):u&&u[n]||s[n])?[].concat(Lne(o),[L9(a,c)]):o},[])},Gne=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),s=e.orderedTooltipTicks,a=e.tooltipAxis,l=e.tooltipTicks,c=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,s=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(s<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var a=o.range,l=0;l<s;l++){var c=l>0?r[l-1].coordinate:r[s-1].coordinate,u=r[l].coordinate,d=l>=s-1?r[0].coordinate:r[l+1].coordinate,A=void 0;if(GY(u-c)!==GY(d-u)){var h=[];if(GY(d-u)===GY(a[1]-a[0])){A=d;var p=u+a[1]-a[0];h[0]=Math.min(p,(p+c)/2),h[1]=Math.max(p,(p+c)/2)}else{A=c;var f=d+a[1]-a[0];h[0]=Math.min(u,(f+u)/2),h[1]=Math.max(u,(f+u)/2)}var m=[Math.min(u,(A+u)/2),Math.max(u,(A+u)/2)];if(e>m[0]&&e<=m[1]||e>=h[0]&&e<=h[1]){i=r[l].index;break}}else{var g=Math.min(c,d),y=Math.max(c,d);if(e>(g+u)/2&&e<=(y+u)/2){i=r[l].index;break}}}else for(var v=0;v<s;v++)if(0===v&&e<=(n[v].coordinate+n[v+1].coordinate)/2||v>0&&v<s-1&&e>(n[v].coordinate+n[v-1].coordinate)/2&&e<=(n[v].coordinate+n[v+1].coordinate)/2||v===s-1&&e>(n[v].coordinate+n[v-1].coordinate)/2){i=n[v].index;break}return i}(i,s,l,a);if(c>=0&&l){var u=l[c]&&l[c].value,d=Wne(e,t,c,u),A=function(e,t,n,r){var o=t.find(function(e){return e&&e.index===n});if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,s=r.radius;return Dne(Dne(Dne({},r),s7(r.cx,r.cy,s,i)),{},{angle:i,radius:s})}var a=o.coordinate,l=r.angle;return Dne(Dne(Dne({},r),s7(r.cx,r.cy,a,l)),{},{angle:l,radius:a})}return Hne}(n,s,c,o);return{activeTooltipIndex:c,activeLabel:u,activePayload:d,activeCoordinate:A}}return null},$ne=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,s=t.stackGroups,a=t.dataStartIndex,l=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),d=bZ(c,o),A={};return d&&d.length?A=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,s=t.stackGroups,a=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,d=e.stackOffset,A=w9(c,o);return n.reduce(function(t,n){var h,p=void 0!==n.type.defaultProps?Dne(Dne({},n.type.defaultProps),n.props):n.props,f=p.type,m=p.dataKey,g=p.allowDataOverflow,y=p.allowDuplicatedCategory,v=p.scale,b=p.ticks,w=p.includeHidden,x=p[i];if(t[x])return t;var k,_,C,B=Vne(e.data,{graphicalItems:r.filter(function(e){var t;return(i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i])===x}),dataStartIndex:a,dataEndIndex:l}),S=B.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&YY(r)&&YY(o))return!0}return!1})(p.domain,g,f)&&(k=I9(p.domain,null,g),!A||"number"!==f&&"auto"===v||(C=g9(B,m,"category")));var j=Kne(f);if(!k||0===k.length){var E,N=null!==(E=p.domain)&&void 0!==E?E:j;if(m){if(k=g9(B,m,f),"category"===f&&A){var I=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(k);y&&I?(_=k,k=IY()(0,S)):y||(k=T9(N,k,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(Lne(e),[t])},[]))}else if("category"===f)k=y?k.filter(function(e){return""!==e&&!SY()(e)}):T9(N,k,n).reduce(function(e,t){return e.indexOf(t)>=0||""===t||SY()(t)?e:[].concat(Lne(e),[t])},[]);else if("number"===f){var F=function(e,t,n,r,o){var i=t.map(function(t){return v9(e,t,n,o,r)}).filter(function(e){return!SY()(e)});return i&&i.length?i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null}(B,r.filter(function(e){var t,n,r=i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i],o="hide"in e.props?e.props.hide:null===(n=e.type.defaultProps)||void 0===n?void 0:n.hide;return r===x&&(w||!o)}),m,o,c);F&&(k=F)}!A||"number"!==f&&"auto"===v||(C=g9(B,m,"category"))}else k=A?IY()(0,S):s&&s[x]&&s[x].hasStack&&"number"===f?"expand"===d?[0,1]:j9(s[x].stackGroups,a,l):b9(B,r.filter(function(e){var t=i in e.props?e.props[i]:e.type.defaultProps[i],n="hide"in e.props?e.props.hide:e.type.defaultProps.hide;return t===x&&(w||!n)}),f,c,!0);if("number"===f)k=Fee(u,k,x,o,b),N&&(k=I9(N,k,g));else if("category"===f&&N){var T=N;k.every(function(e){return T.indexOf(e)>=0})&&(k=T)}}return Dne(Dne({},t),{},Une({},x,Dne(Dne({},p),{},{axisType:o,domain:k,categoricalDomain:C,duplicateDomain:_,originalDomain:null!==(h=p.domain)&&void 0!==h?h:j,isCategorical:A,layout:c})))},{})}(e,{axes:d,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:s,dataStartIndex:a,dataEndIndex:l}):i&&i.length&&(A=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,s=t.stackGroups,a=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,d=Vne(e.data,{graphicalItems:n,dataStartIndex:a,dataEndIndex:l}),A=d.length,h=w9(c,o),p=-1;return n.reduce(function(e,t){var f,m=(void 0!==t.type.defaultProps?Dne(Dne({},t.type.defaultProps),t.props):t.props)[i],g=Kne("number");return e[m]?e:(p++,h?f=IY()(0,A):s&&s[m]&&s[m].hasStack?(f=j9(s[m].stackGroups,a,l),f=Fee(u,f,m,o)):(f=I9(g,b9(d,n.filter(function(e){var t,n,r=i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i],o="hide"in e.props?e.props.hide:null===(n=e.type.defaultProps)||void 0===n?void 0:n.hide;return r===m&&!o}),"number",c),r.defaultProps.allowDataOverflow),f=Fee(u,f,m,o)),Dne(Dne({},e),{},Une({},m,Dne(Dne({axisType:o},r.defaultProps),{},{hide:!0,orientation:TY()(zne,"".concat(o,".").concat(p%2),null),domain:f,originalDomain:g,isCategorical:h,layout:c}))))},{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:s,dataStartIndex:a,dataEndIndex:l})),A},Yne=function(e){var t=e.children,n=e.defaultShowTooltip,r=wZ(t,X9),o=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(i=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},Zne=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Xne=function(e,t){return"xAxis"===t?e[t].width:"yAxis"===t?e[t].height:void 0},Jne=["points","className","baseLinePoints","connectNulls"];function ere(){return ere=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ere.apply(this,arguments)}function tre(e){return function(e){if(Array.isArray(e))return nre(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return nre(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nre(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nre(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var rre=function(e){return e&&e.x===+e.x&&e.y===+e.y},ore=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach(function(e){rre(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])}),rre(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce(function(e,t){return[].concat(tre(e),tre(t))},[])]);var r=n.map(function(e){return e.reduce(function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)},"")}).join("");return 1===n.length?"".concat(r,"Z"):r},ire=function(e){var t=e.points,n=e.className,r=e.baseLinePoints,o=e.connectNulls,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Jne);if(!t||!t.length)return null;var s=sr("recharts-polygon",n);if(r&&r.length){var a=i.stroke&&"none"!==i.stroke,l=function(e,t,n){var r=ore(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(ore(t.reverse(),n).slice(1))}(t,r,o);return gt().createElement("g",{className:s},gt().createElement("path",ere({},_Z(i,!0),{fill:"Z"===l.slice(-1)?i.fill:"none",stroke:"none",d:l})),a?gt().createElement("path",ere({},_Z(i,!0),{fill:"none",d:ore(t,o)})):null,a?gt().createElement("path",ere({},_Z(i,!0),{fill:"none",d:ore(r,o)})):null)}var c=ore(t,o);return gt().createElement("path",ere({},_Z(i,!0),{fill:"Z"===c.slice(-1)?i.fill:"none",className:s,d:c}))};function sre(e){return sre="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sre(e)}function are(){return are=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},are.apply(this,arguments)}function lre(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cre(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lre(Object(n),!0).forEach(function(t){fre(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lre(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ure(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mre(r.key),r)}}function dre(e,t,n){return t=hre(t),function(e,t){if(t&&("object"===sre(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Are()?Reflect.construct(t,n||[],hre(e).constructor):t.apply(e,n))}function Are(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Are=function(){return!!e})()}function hre(e){return hre=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hre(e)}function pre(e,t){return pre=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pre(e,t)}function fre(e,t,n){return(t=mre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mre(e){var t=function(e){if("object"!=sre(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sre(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sre(t)?t:t+""}var gre=Math.PI/180,yre=1e-5,vre=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),dre(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pre(e,t)}(t,e),n=t,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.radius,i=t.orientation,s=t.tickSize||8,a=s7(n,r,o,e.coordinate),l=s7(n,r,o+("inner"===i?-1:1)*s,e.coordinate);return{x1:a.x,y1:a.y,x2:l.x,y2:l.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*gre);return n>yre?"outer"===t?"start":"end":n<-yre?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,o=e.axisLine,i=e.axisLineType,s=cre(cre({},_Z(this.props,!1)),{},{fill:"none"},_Z(o,!1));if("circle"===i)return gt().createElement(PJ,are({className:"recharts-polar-angle-axis-line"},s,{cx:t,cy:n,r}));var a=this.props.ticks.map(function(e){return s7(t,n,r,e.coordinate)});return gt().createElement(ire,are({className:"recharts-polar-angle-axis-line"},s,{points:a}))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,o=n.tick,i=n.tickLine,s=n.tickFormatter,a=n.stroke,l=_Z(this.props,!1),c=_Z(o,!1),u=cre(cre({},l),{},{fill:"none"},_Z(i,!1)),d=r.map(function(n,r){var d=e.getTickLineCoord(n),A=cre(cre(cre({textAnchor:e.getTickTextAnchor(n)},l),{},{stroke:"none",fill:a},c),{},{index:r,payload:n,x:d.x2,y:d.y2});return gt().createElement(TZ,are({className:sr("recharts-polar-angle-axis-tick",u7(o)),key:"tick-".concat(n.coordinate)},dZ(e.props,n,r)),i&&gt().createElement("line",are({className:"recharts-polar-angle-axis-tick-line"},u,d)),o&&t.renderTickItem(o,A,s?s(n.value,r):n.value))});return gt().createElement(TZ,{className:"recharts-polar-angle-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:gt().createElement(TZ,{className:sr("recharts-polar-angle-axis",this.props.className)},r&&this.renderAxisLine(),this.renderTicks())}}],o=[{key:"renderTickItem",value:function(e,t,n){return gt().isValidElement(e)?gt().cloneElement(e,t):EY()(e)?e(t):gt().createElement(o2,are({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],r&&ure(n.prototype,r),o&&ure(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ft.PureComponent);fre(vre,"displayName","PolarAngleAxis"),fre(vre,"axisType","angleAxis"),fre(vre,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var bre=n(7551),wre=n.n(bre),xre=n(6533),kre=n.n(xre),_re=["cx","cy","angle","ticks","axisLine"],Cre=["ticks","tick","angle","tickFormatter","stroke"];function Bre(e){return Bre="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bre(e)}function Sre(){return Sre=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sre.apply(this,arguments)}function jre(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ere(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jre(Object(n),!0).forEach(function(t){Mre(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jre(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nre(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ire(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ore(r.key),r)}}function Fre(e,t,n){return t=Lre(t),function(e,t){if(t&&("object"===Bre(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Tre()?Reflect.construct(t,n||[],Lre(e).constructor):t.apply(e,n))}function Tre(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Tre=function(){return!!e})()}function Lre(e){return Lre=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lre(e)}function Pre(e,t){return Pre=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pre(e,t)}function Mre(e,t,n){return(t=Ore(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ore(e){var t=function(e){if("object"!=Bre(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Bre(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bre(t)?t:t+""}var Dre=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Fre(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pre(e,t)}(t,e),n=t,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return s7(o,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=wre()(o,function(e){return e.coordinate||0});return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:kre()(o,function(e){return e.coordinate||0}).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=e.axisLine,s=Nre(e,_re),a=o.reduce(function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]},[1/0,-1/0]),l=s7(t,n,a[0],r),c=s7(t,n,a[1],r),u=Ere(Ere(Ere({},_Z(s,!1)),{},{fill:"none"},_Z(i,!1)),{},{x1:l.x,y1:l.y,x2:c.x,y2:c.y});return gt().createElement("line",Sre({className:"recharts-polar-radius-axis-line"},u))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,o=n.tick,i=n.angle,s=n.tickFormatter,a=n.stroke,l=Nre(n,Cre),c=this.getTickTextAnchor(),u=_Z(l,!1),d=_Z(o,!1),A=r.map(function(n,r){var l=e.getTickValueCoord(n),A=Ere(Ere(Ere(Ere({textAnchor:c,transform:"rotate(".concat(90-i,", ").concat(l.x,", ").concat(l.y,")")},u),{},{stroke:"none",fill:a},d),{},{index:r},l),{},{payload:n});return gt().createElement(TZ,Sre({className:sr("recharts-polar-radius-axis-tick",u7(o)),key:"tick-".concat(n.coordinate)},dZ(e.props,n,r)),t.renderTickItem(o,A,s?s(n.value,r):n.value))});return gt().createElement(TZ,{className:"recharts-polar-radius-axis-ticks"},A)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?gt().createElement(TZ,{className:sr("recharts-polar-radius-axis",this.props.className)},n&&this.renderAxisLine(),r&&this.renderTicks(),y7.renderCallByParent(this.props,this.getViewBox())):null}}],o=[{key:"renderTickItem",value:function(e,t,n){return gt().isValidElement(e)?gt().cloneElement(e,t):EY()(e)?e(t):gt().createElement(o2,Sre({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],r&&Ire(n.prototype,r),o&&Ire(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ft.PureComponent);Mre(Dre,"displayName","PolarRadiusAxis"),Mre(Dre,"axisType","radiusAxis"),Mre(Dre,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var Ure=n(8090),Rre=n.n(Ure);function zre(e){return zre="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zre(e)}var Qre=["valueAccessor"],Hre=["data","dataKey","clockWise","id","textBreakAll"];function qre(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vre(){return Vre=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vre.apply(this,arguments)}function Kre(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wre(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kre(Object(n),!0).forEach(function(t){Gre(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kre(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gre(e,t,n){return t=function(e){var t=function(e){if("object"!=zre(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zre(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zre(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $re(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Yre=function(e){return Array.isArray(e.value)?Rre()(e.value):e.value};function Zre(e){var t=e.valueAccessor,n=void 0===t?Yre:t,r=$re(e,Qre),o=r.data,i=r.dataKey,s=r.clockWise,a=r.id,l=r.textBreakAll,c=$re(r,Hre);return o&&o.length?gt().createElement(TZ,{className:"recharts-label-list"},o.map(function(e,t){var r=SY()(i)?n(e,t):m9(e&&e.payload,i),o=SY()(a)?{}:{id:"".concat(a,"-").concat(t)};return gt().createElement(y7,Vre({},_Z(e,!0),c,o,{parentViewBox:e.parentViewBox,value:r,textBreakAll:l,viewBox:y7.parseViewBox(SY()(s)?e:Wre(Wre({},e),{},{clockWise:s})),key:"label-".concat(t),index:t}))})):null}Zre.displayName="LabelList",Zre.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=bZ(e.children,Zre).map(function(e,n){return(0,ft.cloneElement)(e,{data:t,key:"labelList-".concat(n)})});if(!n)return r;var o,i=function(e,t){return e?!0===e?gt().createElement(Zre,{key:"labelList-implicit",data:t}):gt().isValidElement(e)||EY()(e)?gt().createElement(Zre,{key:"labelList-implicit",data:t,content:e}):QY()(e)?gt().createElement(Zre,Vre({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t);return[i].concat(function(e){if(Array.isArray(e))return qre(e)}(o=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return qre(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qre(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())};var Xre,Jre=function(e){return null};function eoe(e){return eoe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eoe(e)}function toe(){return toe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},toe.apply(this,arguments)}function noe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function roe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?noe(Object(n),!0).forEach(function(t){coe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):noe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ooe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uoe(r.key),r)}}function ioe(e,t,n){return t=aoe(t),function(e,t){if(t&&("object"===eoe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,soe()?Reflect.construct(t,n||[],aoe(e).constructor):t.apply(e,n))}function soe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(soe=function(){return!!e})()}function aoe(e){return aoe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aoe(e)}function loe(e,t){return loe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},loe(e,t)}function coe(e,t,n){return(t=uoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uoe(e){var t=function(e){if("object"!=eoe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=eoe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==eoe(t)?t:t+""}Jre.displayName="Cell";var doe=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),coe(n=ioe(this,t,[e]),"pieRef",null),coe(n,"sectorRefs",[]),coe(n,"id",JY("recharts-pie-")),coe(n,"handleAnimationEnd",function(){var e=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),EY()(e)&&e()}),coe(n,"handleAnimationStart",function(){var e=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),EY()(e)&&e()}),n.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&loe(e,t)}(t,e),n=t,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,o=n.labelLine,i=n.dataKey,s=n.valueKey,a=_Z(this.props,!1),l=_Z(r,!1),c=_Z(o,!1),u=r&&r.offsetRadius||20,d=e.map(function(e,n){var d=(e.startAngle+e.endAngle)/2,A=s7(e.cx,e.cy,e.outerRadius+u,d),h=roe(roe(roe(roe({},a),e),{},{stroke:"none"},l),{},{index:n,textAnchor:t.getTextAnchor(A.x,e.cx)},A),p=roe(roe(roe(roe({},a),e),{},{fill:"none",stroke:e.fill},c),{},{index:n,points:[s7(e.cx,e.cy,e.outerRadius,d),A]}),f=i;return SY()(i)&&SY()(s)?f="value":SY()(i)&&(f=s),gt().createElement(TZ,{key:"label-".concat(e.startAngle,"-").concat(e.endAngle,"-").concat(e.midAngle,"-").concat(n)},o&&t.renderLabelLineItem(o,p,"line"),t.renderLabelItem(r,h,m9(e,f)))});return gt().createElement(TZ,{className:"recharts-pie-labels"},d)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.activeShape,o=n.blendStroke,i=n.inactiveShape;return e.map(function(n,s){if(0===(null==n?void 0:n.startAngle)&&0===(null==n?void 0:n.endAngle)&&1!==e.length)return null;var a=t.isActiveIndex(s),l=i&&t.hasActiveIndex()?i:null,c=a?r:l,u=roe(roe({},n),{},{stroke:o?n.fill:n.stroke,tabIndex:-1});return gt().createElement(TZ,toe({ref:function(e){e&&!t.sectorRefs.includes(e)&&t.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},dZ(t.props,n,s),{key:"sector-".concat(null==n?void 0:n.startAngle,"-").concat(null==n?void 0:n.endAngle,"-").concat(n.midAngle,"-").concat(s)}),gt().createElement(mte,toe({option:c,isActive:a,shapeType:"sector"},u)))})}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.sectors,r=t.isAnimationActive,o=t.animationBegin,i=t.animationDuration,s=t.animationEasing,a=t.animationId,l=this.state,c=l.prevSectors,u=l.prevIsAnimationActive;return gt().createElement(r1,{begin:o,duration:i,isActive:r,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(a,"-").concat(u),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(t){var r=t.t,o=[],i=(n&&n[0]).startAngle;return n.forEach(function(e,t){var n=c&&c[t],s=t>0?TY()(e,"paddingAngle",0):0;if(n){var a=nZ(n.endAngle-n.startAngle,e.endAngle-e.startAngle),l=roe(roe({},e),{},{startAngle:i+s,endAngle:i+a(r)+s});o.push(l),i=l.endAngle}else{var u=e.endAngle,d=e.startAngle,A=nZ(0,u-d)(r),h=roe(roe({},e),{},{startAngle:i+s,endAngle:i+A+s});o.push(h),i=h.endAngle}}),gt().createElement(TZ,null,e.renderSectorsStatically(o))})}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&b6()(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hide,r=t.sectors,o=t.className,i=t.label,s=t.cx,a=t.cy,l=t.innerRadius,c=t.outerRadius,u=t.isAnimationActive,d=this.state.isAnimationFinished;if(n||!r||!r.length||!YY(s)||!YY(a)||!YY(l)||!YY(c))return null;var A=sr("recharts-pie",o);return gt().createElement(TZ,{tabIndex:this.props.rootTabIndex,className:A,ref:function(t){e.pieRef=t}},this.renderSectors(),i&&this.renderLabels(r),y7.renderCallByParent(this.props,null,!1),(!u||d)&&Zre.renderCallByParent(this.props,r,!1))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,t,n){if(gt().isValidElement(e))return gt().cloneElement(e,t);if(EY()(e))return e(t);var r=sr("recharts-pie-label-line","boolean"!=typeof e?e.className:"");return gt().createElement(lne,toe({},t,{key:n,type:"linear",className:r}))}},{key:"renderLabelItem",value:function(e,t,n){if(gt().isValidElement(e))return gt().cloneElement(e,t);var r=n;if(EY()(e)&&(r=e(t),gt().isValidElement(r)))return r;var o=sr("recharts-pie-label-text","boolean"==typeof e||EY()(e)?"":e.className);return gt().createElement(o2,toe({},t,{alignmentBaseline:"middle",className:o}),r)}}],r&&ooe(n.prototype,r),o&&ooe(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ft.PureComponent);Xre=doe,coe(doe,"displayName","Pie"),coe(doe,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!iX.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),coe(doe,"parseDeltaAngle",function(e,t){return GY(t-e)*Math.min(Math.abs(t-e),360)}),coe(doe,"getRealPieData",function(e){var t=e.data,n=e.children,r=_Z(e,!1),o=bZ(n,Jre);return t&&t.length?t.map(function(e,t){return roe(roe(roe({payload:e},r),e),o&&o[t]&&o[t].props)}):o&&o.length?o.map(function(e){return roe(roe({},r),e.props)}):[]}),coe(doe,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,s=a7(o,i);return{cx:r+eZ(e.cx,o,o/2),cy:n+eZ(e.cy,i,i/2),innerRadius:eZ(e.innerRadius,s,0),outerRadius:eZ(e.outerRadius,s,.8*s),maxRadius:e.maxRadius||Math.sqrt(o*o+i*i)/2}}),coe(doe,"getComposedData",function(e){var t=e.item,n=e.offset,r=void 0!==t.type.defaultProps?roe(roe({},t.type.defaultProps),t.props):t.props,o=Xre.getRealPieData(r);if(!o||!o.length)return null;var i=r.cornerRadius,s=r.startAngle,a=r.endAngle,l=r.paddingAngle,c=r.dataKey,u=r.nameKey,d=r.valueKey,A=r.tooltipType,h=Math.abs(r.minAngle),p=Xre.parseCoordinateOfPie(r,n),f=Xre.parseDeltaAngle(s,a),m=Math.abs(f),g=c;SY()(c)&&SY()(d)?(wX(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),g="value"):SY()(c)&&(wX(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),g=d);var y,v,b=o.filter(function(e){return 0!==m9(e,g,0)}).length,w=m-b*h-(m>=360?b:b-1)*l,x=o.reduce(function(e,t){var n=m9(t,g,0);return e+(YY(n)?n:0)},0);return x>0&&(y=o.map(function(e,t){var n,r=m9(e,g,0),o=m9(e,u,t),a=(YY(r)?r:0)/x,c=(n=t?v.endAngle+GY(f)*l*(0!==r?1:0):s)+GY(f)*((0!==r?h:0)+a*w),d=(n+c)/2,m=(p.innerRadius+p.outerRadius)/2,y=[{name:o,value:r,payload:e,dataKey:g,type:A}],b=s7(p.cx,p.cy,m,d);return v=roe(roe(roe({percent:a,cornerRadius:i,name:o,tooltipPayload:y,midAngle:d,middleRadius:m,tooltipPosition:b},e),p),{},{value:m9(e,g),startAngle:n,endAngle:c,payload:e,paddingAngle:GY(f)*l})})),roe(roe({},p),{},{sectors:y,data:o})});var Aoe=function(e){var t=e.chartName,n=e.GraphicalChild,r=e.defaultTooltipEventType,o=void 0===r?"axis":r,i=e.validateTooltipEventTypes,s=void 0===i?["axis"]:i,a=e.axisComponents,l=e.legendContent,c=e.formatAxisMap,u=e.defaultProps,d=function(e,r){var o=e.props,i=e.dataStartIndex,s=e.dataEndIndex,l=e.updateId;if(!xZ({props:o}))return null;var u=o.children,d=o.layout,A=o.stackOffset,h=o.data,p=o.reverseStackOrder,f=Zne(d),m=f.numericAxisName,g=f.cateAxisName,y=bZ(u,n),v=function(e,t,n,r,o,i){if(!e)return null;var s=(i?t.reverse():t).reduce(function(e,t){var o,i=null!==(o=t.type)&&void 0!==o&&o.defaultProps?p9(p9({},t.type.defaultProps),t.props):t.props,s=i.stackId;if(i.hide)return e;var a=i[n],l=e[a]||{hasStack:!1,stackGroups:{}};if(ZY(s)){var c=l.stackGroups[s]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),l.hasStack=!0,l.stackGroups[s]=c}else l.stackGroups[JY("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return p9(p9({},e),{},f9({},a,l))},{});return Object.keys(s).reduce(function(t,i){var a=s[i];return a.hasStack&&(a.stackGroups=Object.keys(a.stackGroups).reduce(function(t,i){var s=a.stackGroups[i];return p9(p9({},t),{},f9({},i,{numericAxisId:n,cateAxisId:r,items:s.items,stackedData:S9(e,s.items,o)}))},{})),p9(p9({},t),{},f9({},i,a))},{})}(h,y,"".concat(m,"Id"),"".concat(g,"Id"),A,p),b=a.reduce(function(e,t){var n="".concat(t.axisType,"Map");return Dne(Dne({},e),{},Une({},n,$ne(o,Dne(Dne({},t),{},{graphicalItems:y,stackGroups:t.axisType===m&&v,dataStartIndex:i,dataEndIndex:s}))))},{}),w=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,i=e.yAxisMap,s=void 0===i?{}:i,a=n.width,l=n.height,c=n.children,u=n.margin||{},d=wZ(c,X9),A=wZ(c,TJ),h=Object.keys(s).reduce(function(e,t){var n=s[t],r=n.orientation;return n.mirror||n.hide?e:Dne(Dne({},e),{},Une({},r,e[r]+n.width))},{left:u.left||0,right:u.right||0}),p=Object.keys(o).reduce(function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:Dne(Dne({},e),{},Une({},r,TY()(e,"".concat(r))+n.height))},{top:u.top||0,bottom:u.bottom||0}),f=Dne(Dne({},p),h),m=f.bottom;d&&(f.bottom+=d.props.height||X9.defaultProps.height),A&&t&&(f=function(e,t,n,r){var o=n.children,i=n.width,s=n.margin,a=i-(s.left||0)-(s.right||0),l=c9({children:o,legendWidth:a});if(l){var c=r||{},u=c.width,d=c.height,A=l.align,h=l.verticalAlign,p=l.layout;if(("vertical"===p||"horizontal"===p&&"middle"===h)&&"center"!==A&&YY(e[A]))return p9(p9({},e),{},f9({},A,e[A]+(u||0)));if(("horizontal"===p||"vertical"===p&&"center"===A)&&"middle"!==h&&YY(e[h]))return p9(p9({},e),{},f9({},h,e[h]+(d||0)))}return e}(f,0,n,t));var g=a-f.left-f.right,y=l-f.top-f.bottom;return Dne(Dne({brushBottom:m},f),{},{width:Math.max(g,0),height:Math.max(y,0)})}(Dne(Dne({},b),{},{props:o,graphicalItems:y}),null==r?void 0:r.legendBBox);Object.keys(b).forEach(function(e){b[e]=c(o,b[e],w,e.replace("Map",""),t)});var x,k,_=b["".concat(g,"Map")],C=(x=tZ(_),{tooltipTicks:k=x9(x,!1,!0),orderedTooltipTicks:PY()(k,function(e){return e.coordinate}),tooltipAxis:x,tooltipAxisBandSize:F9(x,k)}),B=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,s=t.dataStartIndex,l=t.dataEndIndex,c=e.barSize,u=e.layout,d=e.barGap,A=e.barCategoryGap,h=e.maxBarSize,p=Zne(u),f=p.numericAxisName,m=p.cateAxisName,g=function(e){return!(!e||!e.length)&&e.some(function(e){var t=mZ(e&&e.type);return t&&t.indexOf("Bar")>=0})}(n),y=[];return n.forEach(function(n,p){var v=Vne(e.data,{graphicalItems:[n],dataStartIndex:s,dataEndIndex:l}),b=void 0!==n.type.defaultProps?Dne(Dne({},n.type.defaultProps),n.props):n.props,w=b.dataKey,x=b.maxBarSize,k=b["".concat(f,"Id")],_=b["".concat(m,"Id")],C=a.reduce(function(e,n){var r=t["".concat(n.axisType,"Map")],o=b["".concat(n.axisType,"Id")];r&&r[o]||"zAxis"===n.axisType||DY(!1);var i=r[o];return Dne(Dne({},e),{},Une(Une({},n.axisType,i),"".concat(n.axisType,"Ticks"),x9(i)))},{}),B=C[m],S=C["".concat(m,"Ticks")],j=r&&r[k]&&r[k].hasStack&&function(e,t){var n,r=(null!==(n=e.type)&&void 0!==n&&n.defaultProps?p9(p9({},e.type.defaultProps),e.props):e.props).stackId;if(ZY(r)){var o=t[r];if(o){var i=o.items.indexOf(e);return i>=0?o.stackedData[i]:null}}return null}(n,r[k].stackGroups),E=mZ(n.type).indexOf("Bar")>=0,N=F9(B,S),I=[],F=g&&function(e){var t=e.barSize,n=e.totalSize,r=e.stackGroups,o=void 0===r?{}:r;if(!o)return{};for(var i={},s=Object.keys(o),a=0,l=s.length;a<l;a++)for(var c=o[s[a]].stackGroups,u=Object.keys(c),d=0,A=u.length;d<A;d++){var h=c[u[d]],p=h.items,f=h.cateAxisId,m=p.filter(function(e){return mZ(e.type).indexOf("Bar")>=0});if(m&&m.length){var g=m[0].type.defaultProps,y=void 0!==g?p9(p9({},g),m[0].props):m[0].props,v=y.barSize,b=y[f];i[b]||(i[b]=[]);var w=SY()(v)?t:v;i[b].push({item:m[0],stackList:m.slice(1),barSize:SY()(w)?void 0:eZ(w,n,0)})}}return i}({barSize:c,stackGroups:r,totalSize:Xne(C,m)});if(E){var T,L,P=SY()(x)?h:x,M=null!==(T=null!==(L=F9(B,S,!0))&&void 0!==L?L:P)&&void 0!==T?T:0;I=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,s=e.maxBarSize,a=i.length;if(a<1)return null;var l,c=eZ(t,r,0,!0),u=[];if(i[0].barSize===+i[0].barSize){var d=!1,A=r/a,h=i.reduce(function(e,t){return e+t.barSize||0},0);(h+=(a-1)*c)>=r&&(h-=(a-1)*c,c=0),h>=r&&A>0&&(d=!0,h=a*(A*=.9));var p={offset:((r-h)/2|0)-c,size:0};l=i.reduce(function(e,t){var n={item:t.item,position:{offset:p.offset+p.size+c,size:d?A:t.barSize}},r=[].concat(d9(e),[n]);return p=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:p})}),r},u)}else{var f=eZ(n,r,0,!0);r-2*f-(a-1)*c<=0&&(c=0);var m=(r-2*f-(a-1)*c)/a;m>1&&(m>>=0);var g=s===+s?Math.min(m,s):m;l=i.reduce(function(e,t,n){var r=[].concat(d9(e),[{item:t.item,position:{offset:f+(m+c)*n+(m-g)/2,size:g}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},u)}return l}({barGap:d,barCategoryGap:A,bandSize:M!==N?M:N,sizeList:F[_],maxBarSize:P}),M!==N&&(I=I.map(function(e){return Dne(Dne({},e),{},{position:Dne(Dne({},e.position),{},{offset:e.position.offset-M/2})})}))}var O,D,U=n&&n.type&&n.type.getComposedData;U&&y.push({props:Dne(Dne({},U(Dne(Dne({},C),{},{displayedData:v,props:e,dataKey:w,item:n,bandSize:N,barPosition:I,offset:o,stackedData:j,layout:u,dataStartIndex:s,dataEndIndex:l}))),{},Une(Une(Une({key:n.key||"item-".concat(p)},f,C[f]),m,C[m]),"animationId",i)),childIndex:(O=n,D=e.children,vZ(D).indexOf(O)),item:n})}),y}(o,Dne(Dne({},b),{},{dataStartIndex:i,dataEndIndex:s,updateId:l,graphicalItems:y,stackGroups:v,offset:w}));return Dne(Dne({formattedGraphicalItems:B,graphicalItems:y,offset:w,stackGroups:v},C),b)},A=function(e){function n(e){var r,o,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Une(i=Nne(this,n,[e]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Une(i,"accessibilityManager",new Ree),Une(i,"handleLegendBBoxUpdate",function(e){if(e){var t=i.state,n=t.dataStartIndex,r=t.dataEndIndex,o=t.updateId;i.setState(Dne({legendBBox:e},d({props:i.props,dataStartIndex:n,dataEndIndex:r,updateId:o},Dne(Dne({},i.state),{},{legendBBox:e}))))}}),Une(i,"handleReceiveSyncEvent",function(e,t,n){if(i.props.syncId===e){if(n===i.eventEmitterSymbol&&"function"!=typeof i.props.syncMethod)return;i.applySyncEvent(t)}}),Une(i,"handleBrushChange",function(e){var t=e.startIndex,n=e.endIndex;if(t!==i.state.dataStartIndex||n!==i.state.dataEndIndex){var r=i.state.updateId;i.setState(function(){return Dne({dataStartIndex:t,dataEndIndex:n},d({props:i.props,dataStartIndex:t,dataEndIndex:n,updateId:r},i.state))}),i.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),Une(i,"handleMouseEnter",function(e){var t=i.getMouseInfo(e);if(t){var n=Dne(Dne({},t),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseEnter;EY()(r)&&r(n,e)}}),Une(i,"triggeredAfterMouseMove",function(e){var t=i.getMouseInfo(e),n=t?Dne(Dne({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseMove;EY()(r)&&r(n,e)}),Une(i,"handleItemMouseEnter",function(e){i.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),Une(i,"handleItemMouseLeave",function(){i.setState(function(){return{isTooltipActive:!1}})}),Une(i,"handleMouseMove",function(e){e.persist(),i.throttleTriggeredAfterMouseMove(e)}),Une(i,"handleMouseLeave",function(e){i.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};i.setState(t),i.triggerSyncEvent(t);var n=i.props.onMouseLeave;EY()(n)&&n(t,e)}),Une(i,"handleOuterEvent",function(e){var t,n=function(e){var t=e&&e.type;return t&&fZ[t]?fZ[t]:null}(e),r=TY()(i.props,"".concat(n));n&&EY()(r)&&r(null!==(t=/.*touch.*/i.test(n)?i.getMouseInfo(e.changedTouches[0]):i.getMouseInfo(e))&&void 0!==t?t:{},e)}),Une(i,"handleClick",function(e){var t=i.getMouseInfo(e);if(t){var n=Dne(Dne({},t),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onClick;EY()(r)&&r(n,e)}}),Une(i,"handleMouseDown",function(e){var t=i.props.onMouseDown;EY()(t)&&t(i.getMouseInfo(e),e)}),Une(i,"handleMouseUp",function(e){var t=i.props.onMouseUp;EY()(t)&&t(i.getMouseInfo(e),e)}),Une(i,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),Une(i,"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.handleMouseDown(e.changedTouches[0])}),Une(i,"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.handleMouseUp(e.changedTouches[0])}),Une(i,"handleDoubleClick",function(e){var t=i.props.onDoubleClick;EY()(t)&&t(i.getMouseInfo(e),e)}),Une(i,"handleContextMenu",function(e){var t=i.props.onContextMenu;EY()(t)&&t(i.getMouseInfo(e),e)}),Une(i,"triggerSyncEvent",function(e){void 0!==i.props.syncId&&Lee.emit(Pee,i.props.syncId,e,i.eventEmitterSymbol)}),Une(i,"applySyncEvent",function(e){var t=i.props,n=t.layout,r=t.syncMethod,o=i.state.updateId,s=e.dataStartIndex,a=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)i.setState(Dne({dataStartIndex:s,dataEndIndex:a},d({props:i.props,dataStartIndex:s,dataEndIndex:a,updateId:o},i.state)));else if(void 0!==e.activeTooltipIndex){var l=e.chartX,c=e.chartY,u=e.activeTooltipIndex,A=i.state,h=A.offset,p=A.tooltipTicks;if(!h)return;if("function"==typeof r)u=r(p,e);else if("value"===r){u=-1;for(var f=0;f<p.length;f++)if(p[f].value===e.activeLabel){u=f;break}}var m=Dne(Dne({},h),{},{x:h.left,y:h.top}),g=Math.min(l,m.x+m.width),y=Math.min(c,m.y+m.height),v=p[u]&&p[u].value,b=Wne(i.state,i.props.data,u),w=p[u]?{x:"horizontal"===n?p[u].coordinate:g,y:"horizontal"===n?y:p[u].coordinate}:Hne;i.setState(Dne(Dne({},e),{},{activeLabel:v,activeCoordinate:w,activePayload:b,activeTooltipIndex:u}))}else i.setState(e)}),Une(i,"renderCursor",function(e){var n,r=i.state,o=r.isTooltipActive,s=r.activeCoordinate,a=r.activePayload,l=r.offset,c=r.activeTooltipIndex,u=r.tooltipAxisBandSize,d=i.getTooltipEventType(),A=null!==(n=e.props.active)&&void 0!==n?n:o,h=i.props.layout,p=e.key||"_recharts-cursor";return gt().createElement(xne,{key:p,activeCoordinate:s,activePayload:a,activeTooltipIndex:c,chartName:t,element:e,isActive:A,layout:h,offset:l,tooltipAxisBandSize:u,tooltipEventType:d})}),Une(i,"renderPolarAxis",function(e,t,n){var r=TY()(e,"type.axisType"),o=TY()(i.state,"".concat(r,"Map")),s=e.type.defaultProps,a=void 0!==s?Dne(Dne({},s),e.props):e.props,l=o&&o[a["".concat(r,"Id")]];return(0,ft.cloneElement)(e,Dne(Dne({},l),{},{className:sr(r,l.className),key:e.key||"".concat(t,"-").concat(n),ticks:x9(l,!0)}))}),Une(i,"renderPolarGrid",function(e){var t=e.props,n=t.radialLines,r=t.polarAngles,o=t.polarRadius,s=i.state,a=s.radiusAxisMap,l=s.angleAxisMap,c=tZ(a),u=tZ(l),d=u.cx,A=u.cy,h=u.innerRadius,p=u.outerRadius;return(0,ft.cloneElement)(e,{polarAngles:Array.isArray(r)?r:x9(u,!0).map(function(e){return e.coordinate}),polarRadius:Array.isArray(o)?o:x9(c,!0).map(function(e){return e.coordinate}),cx:d,cy:A,innerRadius:h,outerRadius:p,key:e.key||"polar-grid",radialLines:n})}),Une(i,"renderLegend",function(){var e=i.state.formattedGraphicalItems,t=i.props,n=t.children,r=t.width,o=t.height,s=i.props.margin||{},a=r-(s.left||0)-(s.right||0),c=c9({children:n,formattedGraphicalItems:e,legendWidth:a,legendContent:l});if(!c)return null;var u=c.item,d=jne(c,kne);return(0,ft.cloneElement)(u,Dne(Dne({},d),{},{chartWidth:r,chartHeight:o,margin:s,onBBoxUpdate:i.handleLegendBBoxUpdate}))}),Une(i,"renderTooltip",function(){var e,t=i.props,n=t.children,r=t.accessibilityLayer,o=wZ(n,bX);if(!o)return null;var s=i.state,a=s.isTooltipActive,l=s.activeCoordinate,c=s.activePayload,u=s.activeLabel,d=s.offset,A=null!==(e=o.props.active)&&void 0!==e?e:a;return(0,ft.cloneElement)(o,{viewBox:Dne(Dne({},d),{},{x:d.left,y:d.top}),active:A,label:u,payload:A?c:[],coordinate:l,accessibilityLayer:r})}),Une(i,"renderBrush",function(e){var t=i.props,n=t.margin,r=t.data,o=i.state,s=o.offset,a=o.dataStartIndex,l=o.dataEndIndex,c=o.updateId;return(0,ft.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:_9(i.handleBrushChange,e.props.onChange),data:r,x:YY(e.props.x)?e.props.x:s.left,y:YY(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(n.bottom||0),width:YY(e.props.width)?e.props.width:s.width,startIndex:a,endIndex:l,updateId:"brush-".concat(c)})}),Une(i,"renderReferenceElement",function(e,t,n){if(!e)return null;var r=i.clipPathId,o=i.state,s=o.xAxisMap,a=o.yAxisMap,l=o.offset,c=e.type.defaultProps||{},u=e.props,d=u.xAxisId,A=void 0===d?c.xAxisId:d,h=u.yAxisId,p=void 0===h?c.yAxisId:h;return(0,ft.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(n),xAxis:s[A],yAxis:a[p],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:r})}),Une(i,"renderActivePoints",function(e){var t=e.item,r=e.activePoint,o=e.basePoint,i=e.childIndex,s=e.isRange,a=[],l=t.props.key,c=void 0!==t.item.type.defaultProps?Dne(Dne({},t.item.type.defaultProps),t.item.props):t.item.props,u=c.activeDot,d=Dne(Dne({index:i,dataKey:c.dataKey,cx:r.x,cy:r.y,r:4,fill:y9(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value},_Z(u,!1)),uZ(u));return a.push(n.renderActiveDot(u,d,"".concat(l,"-activePoint-").concat(i))),o?a.push(n.renderActiveDot(u,Dne(Dne({},d),{},{cx:o.x,cy:o.y}),"".concat(l,"-basePoint-").concat(i))):s&&a.push(null),a}),Une(i,"renderGraphicChild",function(e,t,n){var r=i.filterFormatItem(e,t,n);if(!r)return null;var o=i.getTooltipEventType(),s=i.state,a=s.isTooltipActive,l=s.tooltipAxis,c=s.activeTooltipIndex,u=s.activeLabel,d=wZ(i.props.children,bX),A=r.props,h=A.points,p=A.isRange,f=A.baseLine,m=void 0!==r.item.type.defaultProps?Dne(Dne({},r.item.type.defaultProps),r.item.props):r.item.props,g=m.activeDot,y=m.hide,v=m.activeBar,b=m.activeShape,w=Boolean(!y&&a&&d&&(g||v||b)),x={};"axis"!==o&&d&&"click"===d.props.trigger?x={onClick:_9(i.handleItemMouseEnter,e.props.onClick)}:"axis"!==o&&(x={onMouseLeave:_9(i.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:_9(i.handleItemMouseEnter,e.props.onMouseEnter)});var k=(0,ft.cloneElement)(e,Dne(Dne({},r.props),x));if(w){if(!(c>=0)){var _,C=(null!==(_=i.getItemByXY(i.state.activeCoordinate))&&void 0!==_?_:{graphicalItem:k}).graphicalItem,B=C.item,S=void 0===B?e:B,j=C.childIndex,E=Dne(Dne(Dne({},r.props),x),{},{activeIndex:j});return[(0,ft.cloneElement)(S,E),null,null]}var N,I;if(l.dataKey&&!l.allowDuplicatedCategory){var F="function"==typeof l.dataKey?function(e){return"function"==typeof l.dataKey?l.dataKey(e.payload):null}:"payload.".concat(l.dataKey.toString());N=rZ(h,F,u),I=p&&f&&rZ(f,F,u)}else N=null==h?void 0:h[c],I=p&&f&&f[c];if(b||v){var T=void 0!==e.props.activeIndex?e.props.activeIndex:c;return[(0,ft.cloneElement)(e,Dne(Dne(Dne({},r.props),x),{},{activeIndex:T})),null,null]}if(!SY()(N))return[k].concat(Lne(i.renderActivePoints({item:r,activePoint:N,basePoint:I,childIndex:c,isRange:p})))}return p?[k,null,null]:[k,null]}),Une(i,"renderCustomized",function(e,t,n){return(0,ft.cloneElement)(e,Dne(Dne({key:"recharts-customized-".concat(n)},i.props),i.state))}),Une(i,"renderMap",{CartesianGrid:{handler:qne,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:qne},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:qne},YAxis:{handler:qne},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!==(r=e.id)&&void 0!==r?r:JY("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=OY()(i.triggeredAfterMouseMove,null!==(o=e.throttleDelay)&&void 0!==o?o:1e3/60),i.state={},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tne(e,t)}(n,e),r=n,i=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,i=wZ(t,bX);if(i){var s=i.props.defaultIndex;if(!("number"!=typeof s||s<0||s>this.state.tooltipTicks.length-1)){var a=this.state.tooltipTicks[s]&&this.state.tooltipTicks[s].value,l=Wne(this.state,n,s,a),c=this.state.tooltipTicks[s].coordinate,u=(this.state.offset.top+r)/2,d="horizontal"===o?{x:c,y:u}:{y:c,x:u},A=this.state.formattedGraphicalItems.find(function(e){return"Scatter"===e.item.type.name});A&&(d=Dne(Dne({},d),A.props.points[s].tooltipPosition),l=A.props.points[s].tooltipPayload);var h={activeTooltipIndex:s,isTooltipActive:!0,activeLabel:a,activePayload:l,activeCoordinate:d};this.setState(h),this.renderCursor(i),this.accessibilityManager.setIndex(s)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(e){CZ([wZ(e.children,bX)],[wZ(this.props.children,bX)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=wZ(this.props.children,bX);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return s.indexOf(t)>=0?t:o}return o}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n=this.container,r=n.getBoundingClientRect(),o=(t=r).top+window.scrollY-document.documentElement.clientTop,i=t.left+window.scrollX-document.documentElement.clientLeft,s={chartX:Math.round(e.pageX-i),chartY:Math.round(e.pageY-o)},a=r.width/n.offsetWidth||1,l=this.inRange(s.chartX,s.chartY,a);if(!l)return null;var c=this.state,u=c.xAxisMap,d=c.yAxisMap,A=this.getTooltipEventType(),h=Gne(this.state,this.props.data,this.props.layout,l);if("axis"!==A&&u&&d){var p=tZ(u).scale,f=tZ(d).scale,m=p&&p.invert?p.invert(s.chartX):null,g=f&&f.invert?f.invert(s.chartY):null;return Dne(Dne({},s),{},{xValue:m,yValue:g},h)}return h?Dne(Dne({},s),h):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,i=t/n;if("horizontal"===r||"vertical"===r){var s=this.state.offset;return o>=s.left&&o<=s.left+s.width&&i>=s.top&&i<=s.top+s.height?{x:o,y:i}:null}var a=this.state,l=a.angleAxisMap,c=a.radiusAxisMap;if(l&&c){var u=tZ(l);return c7({x:o,y:i},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=wZ(e,bX),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),Dne(Dne({},uZ(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){Lee.on(Pee,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Lee.removeListener(Pee,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o<i;o++){var s=r[o];if(s.item===e||s.props.key===e.key||t===mZ(s.item.type)&&n===s.childIndex)return s}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,o=t.height,i=t.width;return gt().createElement("defs",null,gt().createElement("clipPath",{id:e},gt().createElement("rect",{x:n,y:r,height:o,width:i})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=Sne(t,2),r=n[0],o=n[1];return Dne(Dne({},e),{},Une({},r,o.scale))},{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=Sne(t,2),r=n[0],o=n[1];return Dne(Dne({},e),{},Une({},r,o.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var o=0,i=n.length;o<i;o++){var s=n[o],a=s.props,l=s.item,c=void 0!==l.type.defaultProps?Dne(Dne({},l.type.defaultProps),l.props):l.props,u=mZ(l.type);if("Bar"===u){var d=(a.data||[]).find(function(t){return d1(e,t)});if(d)return{graphicalItem:s,payload:d}}else if("RadialBar"===u){var A=(a.data||[]).find(function(t){return c7(e,t)});if(A)return{graphicalItem:s,payload:A}}else if(gte(s,r)||yte(s,r)||vte(s,r)){var h=kte({graphicalItem:s,activeTooltipItem:r,itemData:c.data}),p=void 0===c.activeIndex?h:c.activeIndex;return{graphicalItem:Dne(Dne({},s),{},{childIndex:p}),payload:vte(s,r)?c.data[h]:s.props.data[h]}}}return null}},{key:"render",value:function(){var e=this;if(!xZ(this))return null;var t,n,r=this.props,o=r.children,i=r.className,s=r.width,a=r.height,l=r.style,c=r.compact,u=r.title,d=r.desc,A=jne(r,_ne),h=_Z(A,!1);if(c)return gt().createElement(ree,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},gt().createElement(NZ,Bne({},h,{width:s,height:a,title:u,desc:d}),this.renderClipPath(),SZ(o,this.renderMap)));this.props.accessibilityLayer&&(h.tabIndex=null!==(t=this.props.tabIndex)&&void 0!==t?t:0,h.role=null!==(n=this.props.role)&&void 0!==n?n:"application",h.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},h.onFocus=function(){e.accessibilityManager.focus()});var p=this.parseEventsOfWrapper();return gt().createElement(ree,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},gt().createElement("div",Bne({className:sr("recharts-wrapper",i),style:Dne({position:"relative",cursor:"default",width:s,height:a},l)},p,{ref:function(t){e.container=t}}),gt().createElement(NZ,Bne({},h,{width:s,height:a,title:u,desc:d,style:Qne}),this.renderClipPath(),SZ(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&Ene(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(ft.Component);Une(A,"displayName",t),Une(A,"defaultProps",Dne({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},u)),Une(A,"getDerivedStateFromProps",function(e,t){var n=e.dataKey,r=e.data,o=e.children,i=e.width,s=e.height,a=e.layout,l=e.stackOffset,c=e.margin,u=t.dataStartIndex,A=t.dataEndIndex;if(void 0===t.updateId){var h=Yne(e);return Dne(Dne(Dne({},h),{},{updateId:0},d(Dne(Dne({props:e},h),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:s,prevLayout:a,prevStackOffset:l,prevMargin:c,prevChildren:o})}if(n!==t.prevDataKey||r!==t.prevData||i!==t.prevWidth||s!==t.prevHeight||a!==t.prevLayout||l!==t.prevStackOffset||!oZ(c,t.prevMargin)){var p=Yne(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},m=Dne(Dne({},Gne(t,r,a)),{},{updateId:t.updateId+1}),g=Dne(Dne(Dne({},p),f),m);return Dne(Dne(Dne({},g),d(Dne({props:e},g),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:s,prevLayout:a,prevStackOffset:l,prevMargin:c,prevChildren:o})}if(!CZ(o,t.prevChildren)){var y,v,b,w,x=wZ(o,X9),k=x&&null!==(y=null===(v=x.props)||void 0===v?void 0:v.startIndex)&&void 0!==y?y:u,_=x&&null!==(b=null===(w=x.props)||void 0===w?void 0:w.endIndex)&&void 0!==b?b:A,C=k!==u||_!==A,B=SY()(r)||C?t.updateId+1:t.updateId;return Dne(Dne({updateId:B},d(Dne(Dne({props:e},t),{},{updateId:B,dataStartIndex:k,dataEndIndex:_}),t)),{},{prevChildren:o,dataStartIndex:k,dataEndIndex:_})}return null}),Une(A,"renderActiveDot",function(e,t,n){var r;return r=(0,ft.isValidElement)(e)?(0,ft.cloneElement)(e,t):EY()(e)?e(t):gt().createElement(PJ,t),gt().createElement(TZ,{className:"recharts-active-dot",key:n},r)});var h=(0,ft.forwardRef)(function(e,t){return gt().createElement(A,Bne({},e,{ref:t}))});return h.displayName=A.displayName,h}({chartName:"PieChart",GraphicalChild:doe,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:vre},{axisType:"radiusAxis",AxisComp:Dre}],formatAxisMap:function(e,t,n,r,o){var i=e.width,s=e.height,a=e.startAngle,l=e.endAngle,c=eZ(e.cx,i,i/2),u=eZ(e.cy,s,s/2),d=a7(i,s,n),A=eZ(e.innerRadius,d,0),h=eZ(e.outerRadius,d,.8*d);return Object.keys(t).reduce(function(e,n){var i,s=t[n],d=s.domain,p=s.reversed;if(SY()(s.range))"angleAxis"===r?i=[a,l]:"radiusAxis"===r&&(i=[A,h]),p&&(i=[i[1],i[0]]);else{var f=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r7(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(i=s.range,2);a=f[0],l=f[1]}var m=function(e,t){var n=e.scale,r=e.type,o=e.layout,i=e.axisType;if("auto"===n)return"radial"===o&&"radiusAxis"===i?{scale:w1(),realScaleType:"band"}:"radial"===o&&"angleAxis"===i?{scale:Z5(),realScaleType:"linear"}:"category"===r&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0)?{scale:k1(),realScaleType:"point"}:"category"===r?{scale:w1(),realScaleType:"band"}:{scale:Z5(),realScaleType:"linear"};if(RY()(n)){var s="scale".concat(kX()(n));return{scale:(lt[s]||k1)(),realScaleType:lt[s]?s:"point"}}return EY()(n)?{scale:n}:{scale:k1(),realScaleType:"point"}}(s,o),g=m.realScaleType,y=m.scale;y.domain(d).range(i),function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-C9,i=Math.max(r[0],r[1])+C9,s=e(t[0]),a=e(t[n-1]);(s<o||s>i||a<o||a>i)&&e.domain([t[0],t[n-1]])}}(y);var v=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,s=t.allowDecimals,a=n||t.scale;if("auto"!==a&&"linear"!==a)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var l=e.domain();if(!l.length)return null;var c=V6(l,o,s);return e.domain([m6()(c),p6()(c)]),{niceTicks:c}}if(o&&"number"===r){var u=e.domain();return{niceTicks:K6(u,o,s)}}return null}(y,t7(t7({},s),{},{realScaleType:g})),b=t7(t7(t7({},s),v),{},{range:i,radius:h,realScaleType:g,scale:y,cx:c,cy:u,innerRadius:A,outerRadius:h,startAngle:a,endAngle:l});return t7(t7({},e),{},n7({},n,b))},{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const hoe=ft.forwardRef(({active:e,payload:t,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:i=!1,label:s,labelFormatter:a,labelClassName:l,formatter:c,color:u,nameKey:d="name",labelKey:A},h)=>{if(!e||!t?.length)return null;const p=1===t.length&&"dot"!==r;return(0,yt.jsxs)("div",{ref:h,className:wa("grid min-w-[8rem] items-start gap-1.5 rounded-lg border bg-tooltip-background-light px-3 py-2 text-xs shadow-xl",n),children:[p?null:(()=>{if(o||!t?.length)return null;const[e]=t,n=a?a(s||""):e[A]||s;return n?(0,yt.jsx)("div",{className:wa("font-medium",l),children:n}):null})(),(0,yt.jsx)("div",{className:"grid gap-1.5",children:t.map((e,t)=>{const n=e.color||e.payload?.fill||u||"#000";return(0,yt.jsxs)("div",{className:wa("flex w-full items-stretch gap-2","dot"===r&&"items-center"),children:[!i&&(0,yt.jsx)("div",{className:wa({"h-2.5 w-2.5 ":"dot"===r,"w-1 h-full":"line"===r,"w-0 border-[0.5px] border-dashed":"dashed"===r}),style:{backgroundColor:"dot"===r||"line"===r?n:"",borderColor:"dashed"===r?n:""}}),(0,yt.jsxs)("div",{className:"flex-1 flex justify-between items-center",children:[(0,yt.jsx)("span",{children:e[d]||e.dataKey}),(0,yt.jsx)("span",{className:"font-mono font-medium",children:c?c(e.value??""):e.value??""})]})]},e.dataKey||t)})})]})});hoe.displayName="ChartTooltipContent";const poe=ft.forwardRef(({className:e,hideIcon:t=!1,payload:n=[],verticalAlign:r="bottom",nameKey:o="value"},i)=>n.length?(0,yt.jsx)("div",{ref:i,className:wa("flex items-center justify-center gap-4","top"===r?"pb-3":"pt-3",e),children:n.map(e=>(0,yt.jsxs)("div",{className:"flex items-center gap-1.5",children:[!t&&(0,yt.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-sm",style:{backgroundColor:e.color}}),(0,yt.jsx)("span",{className:"capitalize",children:e[o]})]},e.value))}):null);poe.displayName="ChartLegendContent";const foe=({data:e,dataKey:t,type:n="simple",showTooltip:r=!0,tooltipIndicator:o="dot",tooltipLabelKey:i,label:s=!1,labelName:a="",labelNameColor:l="#6B7280",labelValue:c,showLegend:u=!1,chartWidth:d=300,pieOuterRadius:A=90,pieInnerRadius:h=60})=>{const p="donut"===n,f=A,m=p?h:0;if(!e||0===e.length)return(0,yt.jsx)($b,{size:"sm",variant:"help",children:"No data available"});const g=e.map((e,n)=>({...e,"aria-label":`${e.name??`Segment ${n+1}`}: ${e[t]}`}));return(0,yt.jsx)("div",{role:"img","aria-label":"Pie chart",children:(0,yt.jsxs)(Aoe,{width:d,height:d,accessibilityLayer:!1,children:[r&&(0,yt.jsx)(bX,{content:(0,yt.jsx)(hoe,{indicator:o,labelKey:i})}),u&&(0,yt.jsx)(TJ,{content:(0,yt.jsx)(poe,{})}),(0,yt.jsx)(doe,{data:g,cx:"50%",cy:"50%",innerRadius:m,outerRadius:f,dataKey:t,children:p&&s&&(0,yt.jsx)(y7,{content:({viewBox:e})=>{if(e&&"cx"in e&&"cy"in e)return(0,yt.jsxs)("text",{x:e.cx,y:e.cy,textAnchor:"middle",dominantBaseline:"middle",className:"space-y-3",children:[(0,yt.jsx)("tspan",{x:e.cx,dy:"-4",className:"fill-foreground text-xl font-bold",children:c}),(0,yt.jsx)("tspan",{x:e.cx,dy:"24",className:"text-sm",style:{fill:l},children:a})]})}})})]})})},moe=({data:e,total:t})=>(0,yt.jsx)(yt.Fragment,{children:t>0?(0,yt.jsxs)(Dk,{align:"center",className:"gap-4 h-full",children:[(0,yt.jsx)("div",{className:"w-auto h-auto [&_.recharts-wrapper]:!w-28 [&_.recharts-wrapper]:!h-28",children:(0,yt.jsx)(foe,{chartWidth:180,data:e,dataKey:"count",label:!0,labelName:(0,pt.__)("Consents","surecookie"),labelValue:t,showTooltip:!0,tooltipIndicator:"dot",type:"donut"})}),(0,yt.jsx)(Dk,{direction:"column",className:"gap-2 justify-center flex-1",children:e.map(e=>(0,yt.jsxs)(Dk,{align:"center",className:"gap-2",children:[(0,yt.jsx)("span",{className:"w-2.5 h-2.5 rounded-sm flex-shrink-0",style:{backgroundColor:e.fill}}),(0,yt.jsx)(Iw,{color:"help",size:14,weight:500,className:"flex-1",children:e.name}),(0,yt.jsx)(Iw,{color:"label",size:14,weight:500,className:"ml-auto",children:e.count?.toString()})]},e.name))})]}):(0,yt.jsxs)("div",{className:"flex flex-col items-center justify-center px-2 pb-2 h-full text-center",children:[(0,yt.jsx)("div",{className:"mb-3 p-2 bg-background-secondary rounded-full",children:(0,yt.jsx)(CY,{className:"w-6 h-6 text-icon-secondary"})}),(0,yt.jsx)(Iw,{weight:600,size:14,color:"primary",className:"mb-1",children:(0,pt.__)("No Consents Yet","surecookie")}),(0,yt.jsx)(Iw,{color:"tertiary",size:14,className:"mx-auto",children:(0,pt.__)("Data will appear here once visitors interact with the cookie banner.","surecookie")})]})}),goe=ni("pricing_consent_log_export_upsell","pricing/"),yoe=({className:e=""})=>Boolean(window?.surecookieAdminData?.is_pro_active)?null:(0,yt.jsx)("div",{role:"region","aria-label":(0,pt.__)("Consent log export upgrade","surecookie"),className:jo("flex flex-col gap-3 p-4 rounded-xl border border-solid border-indigo-300 bg-brand-background-50 shadow-sm",e),children:(0,yt.jsxs)("div",{className:"flex items-start gap-2",children:[(0,yt.jsx)("span",{"aria-hidden":"true",className:"flex items-center justify-center w-8 h-8 rounded-md bg-background-primary border border-border-subtle shrink-0",children:(0,yt.jsx)(pU,{className:"w-4 h-4 text-icon-primary"})}),(0,yt.jsxs)("div",{className:"flex flex-col gap-1 flex-1",children:[(0,yt.jsx)(Iw,{size:14,weight:600,color:"primary",lineHeight:20,children:(0,pt.__)("Export Consent Logs","surecookie")}),(0,yt.jsx)(Iw,{size:13,weight:400,color:"secondary",lineHeight:18,children:(0,pt.__)("Upgrade to premium to download CSV report for legal audits and GDPR Article 7 documentation.","surecookie")}),(0,yt.jsx)(Fa,{tag:"a",href:goe,target:"_blank",rel:"noopener noreferrer",size:"sm",variant:"outline",className:"no-underline ring-0 w-fit mt-1",icon:(0,yt.jsx)(Vk,{className:"w-4 h-4"}),iconPosition:"right",children:(0,pt.__)("Upgrade Now","surecookie")})]})]})}),voe=({paginationContext:e,currentLogs:t=[],onNavigate:n,onAfterDelete:r}={})=>{const o=Ex({log:null,mode:"single",logIds:[],title:"",description:""}),i=(({onNavigate:e}={})=>{const t=bt();return En({mutationFn:async({logIds:e,context:t})=>{const n=await(r=e,Array.isArray(r)?Fn()({method:"DELETE",path:"/surecookie/v1/consent-logs/delete-log",data:{log_id:r}}):Fn()({method:"DELETE",path:(0,Tn.addQueryArgs)("/surecookie/v1/consent-logs/delete-log",{log_id:r})}));var r;if(!n.success)throw new Error(n.message||(0,pt.sprintf)(
9 // translators: %s: log/logs
10 // translators: %s: log/logs
11 (0,pt.__)("Failed to delete consent %s","surecookie"),(0,pt._n)("log","logs",Array.isArray(e)?e.length:1,"surecookie")));return{data:n,context:t}},onSuccess:({context:n,data:r})=>{n?.targetPage&&e&&e(n.targetPage),t.invalidateQueries({queryKey:Nn.consentLogs.all}),At.success((0,pt.sprintf)(
12 // translators: %s: log/logs
13 // translators: %s: log/logs
14 (0,pt.__)("Successfully deleted consent %s","surecookie"),(0,pt._n)("log","logs",r?.deleted??1,"surecookie")))},onError:e=>{At.error(e.message||(0,pt.__)("Failed to delete consent log","surecookie"))}})})({onNavigate:n}),s=(0,ct.useCallback)(e=>{const t=Mo(e).length;o.open(e,{log:e,mode:"single",logIds:[e?.id].filter(Boolean),title:(0,pt.__)("Delete Consent Log","surecookie"),description:(0,pt.__)("Are you sure you want to delete this consent log? This action cannot be undone.","surecookie"),cascadeNotice:t>0?(0,pt.sprintf)(
15 // translators: %d: number of partner sites that received the forwarded consent.
16 // translators: %d: number of partner sites that received the forwarded consent.
17 (0,pt._n)("This consent was shared with %d connected site. Deleting it here will also erase the copy from that site (GDPR Art. 17).","This consent was shared with %d connected sites. Deleting it here will also erase the copies from those sites (GDPR Art. 17).",t,"surecookie"),t):""})},[o]),a=(0,ct.useCallback)((e=[])=>{if(!e.length)return;const n=new Set(e),r=t.reduce((e,t)=>n.has(t.id)&&Mo(t).length>0?e+1:e,0);o.open(null,{log:null,mode:"bulk",logIds:e,title:(0,pt.__)("Delete Selected Consent Logs","surecookie"),description:(0,pt.sprintf)(
18 // translators: %s: the log string pluralized.
19 // translators: %s: the log string pluralized.
20 (0,pt.__)("Are you sure you want to delete the selected consent %s? This action cannot be undone.","surecookie"),(0,pt._n)("log","logs",e.length,"surecookie")),cascadeNotice:r>0?(0,pt.sprintf)(
21 // translators: %d: number of selected logs that were forwarded to partner sites.
22 // translators: %d: number of selected logs that were forwarded to partner sites.
23 (0,pt._n)("%d of these logs was shared with connected partner sites. Deleting will also erase those forwarded copies (GDPR Art. 17).","%d of these logs were shared with connected partner sites. Deleting will also erase those forwarded copies (GDPR Art. 17).",r,"surecookie"),r):""})},[o,t]),l=(0,ct.useCallback)(()=>{const n=o.logIds?.length?o.logIds:o.entity?[o.entity.id]:[];if(!n.length)return;o.setDeleting(!0);let s={};if(e&&t.length>0){const r=t.length-n.length<=0&&e.currentPage>1?e.currentPage-1:e.currentPage;s={currentPage:e.currentPage,targetPage:r,perPage:e.perPage}}i.mutate({logIds:n,context:s},{onSuccess:()=>{o.close(),r&&r()},onError:()=>{o.setDeleting(!1)}})},[o,i,e,t,r]);return{deleteDialog:{isOpen:o.isOpen,log:o.entity,deleting:o.deleting,title:o.title,description:o.description,cascadeNotice:o.cascadeNotice||"",mode:o.mode,logIds:o.logIds},openDeleteDialog:s,openBulkDeleteDialog:a,closeDeleteDialog:o.close,confirmDelete:l,isDeleting:o.deleting}},boe=({deleteDialog:e,onClose:t,onConfirmDelete:n})=>{if(!e.log&&!e?.logIds?.length)return null;const r=e.title||(0,pt.__)("Delete Consent Log","surecookie"),o=e.description||(0,pt.__)("Are you sure you want to delete this consent log? This action cannot be undone.","surecookie"),i=e.cascadeNotice;return(0,yt.jsx)(jx,{isOpen:e.isOpen,onClose:t,onConfirm:n,title:r,description:o,isDeleting:e.deleting,children:i&&(0,yt.jsxs)("div",{className:"flex items-start gap-2 p-3 rounded-md bg-background-secondary border border-border-subtle",children:[(0,yt.jsx)(hk,{size:16,className:"text-text-tertiary shrink-0 mt-0.5","aria-hidden":"true"}),(0,yt.jsx)("p",{className:"text-xs text-text-secondary m-0",children:i})]})})},woe=()=>{const[e,t]=(0,ct.useState)([]),[n,r]=(0,ct.useState)(""),o=(0,ct.useRef)(null),[i,s]=(0,ct.useState)({search:"",action:"",country:"",dateFrom:"",dateTo:""}),{isLoading:a,getCurrentValue:l}=si(),c=!!l("consent_logging_enabled"),[u,d]=(0,ct.useState)(0),[A,h]=(0,ct.useState)(10),p=(({initialPage:e=1,perPage:t=50,totalItems:n=0,siblingCount:r=1}={})=>{const[o,i]=(0,ct.useState)(e),s=Math.ceil(n/t),a=((e,t,n=1)=>{const r=2*n;if(r+5>=t)return Array.from({length:t},(e,t)=>t+1);const o=Math.max(e-n,1)>2,i=Math.min(e+n,t)<t-1,s=t,a=[];if(!o&&i){const e=3+r,t=Array.from({length:e},(e,t)=>t+1);a.push(...t,"ellipsis",s)}else if(o&&!i){const e=3+r,n=Array.from({length:e},(n,r)=>t-e+r+1);a.push(1,"ellipsis",...n)}else if(o&&i){const t=Array.from({length:r+1},(t,r)=>e-n+r);a.push(1,"ellipsis",...t,"ellipsis",s)}return a})(o,s,r),l=(0,ct.useCallback)(e=>{const t=Math.max(1,Math.min(e,s));i(t)},[s]),c=(0,ct.useCallback)(()=>l(1),[l]),u=(0,ct.useCallback)(()=>l(s),[l,s]),d=(0,ct.useCallback)(()=>l(o+1),[l,o]),A=(0,ct.useCallback)(()=>l(o-1),[l,o]),h=o<s,p=o>1;return{currentPage:o,totalPages:s,perPage:t,totalItems:n,paginationRange:a,startItem:(o-1)*t+1,endItem:Math.min(o*t,n),goToPage:l,goToFirstPage:c,goToLastPage:u,goToNextPage:d,goToPreviousPage:A,canGoToNextPage:h,canGoToPreviousPage:p}})({initialPage:1,perPage:A,totalItems:u,siblingCount:1}),{data:f=[],isLoading:m}=Sn({queryKey:Nn.consentLogs.uniqueCountries,queryFn:async()=>{const e=await Fn()({method:"GET",path:"/surecookie/v1/consent-logs/unique-countries"});if(!e.success)throw new Error(e.message||(0,pt.__)("Failed to load countries","surecookie"));return e.countries||[]},staleTime:3e5}),g=!a&&c,{data:y,isLoading:v}=Gn({page:p.currentPage,perPage:p.perPage,enabled:g,filters:i});(0,ct.useEffect)(()=>{void 0!==y?.total&&d(y.total)},[y?.total]);const b=y?.logs||[],{deleteDialog:w,openDeleteDialog:x,openBulkDeleteDialog:k,closeDeleteDialog:_,confirmDelete:C}=voe({paginationContext:{currentPage:p.currentPage,perPage:p.perPage,totalItems:u},currentLogs:b,onNavigate:e=>p.goToPage(e),onAfterDelete:()=>t([])}),B=c&&y?.chartData||[],S=c?u:0,j=a||c,E=i.search||i.action||i.country||i.dateFrom||i.dateTo;return(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)(Dk,{className:"h-full pb-8 max-[1920px]:max-w-full mx-auto box-content bg-background-secondary gap-6",cols:12,containerType:"grid",gap:"2xl",children:[(0,yt.jsx)(Dk.Item,{className:"col-span-12 "+(j?"lg:col-span-8":""),children:(0,yt.jsx)(_Y,{skeletonRowCount:p.perPage,title:c?(0,pt.__)("Consent Logs","surecookie"):"",isLogsPage:!0,currentPage:p.currentPage,selectedLogs:e,onSelectAll:e=>{t(e?b.map(e=>e.id):[])},onSelectLog:(e,n)=>{t(e?e=>[...e,n]:e=>e.filter(e=>e!==n))},totalLogs:u,onBulkDelete:()=>{0!==e.length&&k(e)},bulkDeletePending:"bulk"===w.mode&&w.deleting,consentLogs:b,isLoadingLogs:v,enableBulkActions:!0,showActions:!0,onDelete:x,enabledConsentLogging:c,isLoadingSettings:a,searchInput:n,onSearchChange:e=>{r(e),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{s(t=>({...t,search:e})),p.goToPage(1)},300)},filters:i,onActionChange:e=>{s(t=>({...t,action:e})),p.goToPage(1)},onCountryChange:e=>{s(t=>({...t,country:e})),p.goToPage(1)},onDateRangeChange:e=>{s(t=>({...t,dateFrom:e?.from||"",dateTo:e?.to||""})),p.goToPage(1)},countries:f,countriesLoading:m,hasActiveFilters:!!E,onClearFilters:()=>{o.current&&clearTimeout(o.current),r(""),s({search:"",action:"",country:"",dateFrom:"",dateTo:""}),p.goToPage(1)},renderFooter:(0,yt.jsxs)("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:[(0,yt.jsxs)("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[(0,yt.jsxs)(Iw,{className:"inline-flex items-center whitespace-nowrap",size:14,weight:400,color:"tertiary",children:[(0,pt.__)("Page","surecookie")," ",p.currentPage," ",(0,pt.__)("of","surecookie")," ",p.totalPages||1]}),(0,yt.jsxs)(lk,{size:"sm",value:String(A),onChange:e=>{const n=Number(e);!Number.isFinite(n)||n<=0||(h(n),p.goToPage(1),t([]))},children:[(0,yt.jsx)(lk.Button,{className:"min-w-[92px] whitespace-nowrap",children:A}),(0,yt.jsx)(lk.Options,{children:[10,20,50,100].map(e=>(0,yt.jsx)(lk.Option,{value:String(e),children:e},e))})]})]}),(0,yt.jsx)(YD,{className:"w-fit [&_li]:m-0","aria-label":(0,pt.__)("Consent Logs Pagination","surecookie"),children:(0,yt.jsxs)(YD.Content,{children:[(0,yt.jsx)(YD.Previous,{onClick:()=>p.goToPreviousPage(),disabled:!p.canGoToPreviousPage}),p.paginationRange.map((e,n)=>"ellipsis"===e?(0,yt.jsx)(YD.Ellipsis,{},`ellipsis-${n}`):(0,yt.jsx)(YD.Item,{isActive:e===p.currentPage,onClick:()=>(e=>{p.goToPage(e),t([])})(e),children:e},e)),(0,yt.jsx)(YD.Next,{onClick:()=>p.goToNextPage(),disabled:!p.canGoToNextPage})]})})]})})}),j&&(0,yt.jsxs)(Dk.Item,{className:"col-span-12 lg:col-span-4 flex flex-col gap-6",children:[(0,yt.jsxs)("div",{className:"relative w-full h-fit border border-solid rounded-xl border-border-subtle p-4 shadow-sm bg-background-primary gap-3",children:[a&&(0,yt.jsxs)("div",{className:"bg-background-primary rounded-md p-4 shadow-sm w-full h-full flex items-center gap-4",children:[(0,yt.jsx)(Zk,{className:"h-28 w-28 rounded-full shrink-0"}),(0,yt.jsxs)("div",{className:"flex flex-col gap-2 flex-1",children:[(0,yt.jsx)(Zk,{className:"h-4 w-full"}),(0,yt.jsx)(Zk,{className:"h-4 w-3/4"}),(0,yt.jsx)(Zk,{className:"h-4 w-1/2"})]})]}),!a&&(0,yt.jsx)(moe,{data:B,total:S})]}),(0,ht.applyFilters)("surecookie.consentLogs.exportSlot",(0,yt.jsx)(yoe,{}),{filters:i})]})]}),(0,yt.jsx)(boe,{deleteDialog:w,onClose:_,onConfirmDelete:C})]})},xoe=_b("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]),koe=_b("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),_oe=e=>e.duration?String(e.duration):"session"===e.expiry_bucket?"":(e=>{if(!e)return"";let t=NaN;if("number"==typeof e||/^\d+$/.test(String(e).trim())){const n=Number(e);t=n>9999999999?n:1e3*n}else{const n=String(e).trim(),r=/^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}:\d{2}$/.test(n);t=Date.parse(r?n.replace(" ","T")+"Z":n)}if(isNaN(t))return"";const n=t-Date.now();if(n<=0)return"0";const r=Math.ceil(n/864e5);return String(r)})(e.expires),Coe=e=>e.duration?String(e.duration):"session"===e.expiry_bucket?(0,pt.__)("Session","surecookie"):"-",Boe=_b("pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]),Soe=(0,ct.memo)(({cookie:e,rowKey:t,categories:n,categoryNameById:r,isSelected:o,isSaving:i,isNew:s,onToggle:a,onCategoryChange:l,onEdit:c,onDelete:u})=>{const d="scanned"===e.type,A=[{icon:(0,yt.jsx)(Boe,{size:14}),label:(0,pt.__)("Edit","surecookie"),onClick:()=>c(e)}];return"declared"!==e.source&&A.push({icon:(0,yt.jsx)(fU,{size:14}),label:(0,pt.__)("Delete","surecookie"),onClick:()=>u(e),destructive:!0}),(0,yt.jsxs)(sU.Row,{className:"transition-colors duration-200",children:[(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(rU,{size:"sm","aria-label":(0,pt.sprintf)(/* translators: %s: cookie name. */ /* translators: %s: cookie name. */
24 (0,pt.__)("Select %s","surecookie"),e.name),checked:o,onChange:()=>a(t)})}),(0,yt.jsx)(sU.Cell,{className:"max-w-[100px]",children:(0,yt.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,yt.jsx)(xD,{placement:"top",content:e.name,children:(0,yt.jsx)(Iw,{size:14,weight:500,color:"primary",className:"truncate",children:e.name})}),s&&(0,yt.jsx)(uw,{className:"shrink-0",size:"xs",type:"pill",variant:"green",label:(0,pt.__)("New","surecookie")})]})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsxs)(lk,{size:"sm",value:e.category,onChange:t=>l(e,t),disabled:i,children:[(0,yt.jsx)(lk.Button,{"aria-label":(0,pt.sprintf)(/* translators: %s: cookie name. */ /* translators: %s: cookie name. */
25 (0,pt.__)("Category for %s","surecookie"),e.name),placeholder:(0,pt.__)("Select category","surecookie"),render:e=>r.get(e)??(0,pt.__)("Uncategorized","surecookie")}),(0,yt.jsx)(lk.Options,{children:n.map(e=>(0,yt.jsx)(lk.Option,{value:e.id,children:e.name},e.id))})]})}),(0,yt.jsx)(sU.Cell,{className:"max-w-[100px]",children:(0,yt.jsx)(xD,{placement:"top",content:e.provider,children:(0,yt.jsx)(Iw,{size:14,color:"secondary",className:"truncate",children:e.provider||"-"})})}),(0,yt.jsx)(sU.Cell,{className:"max-w-[100px]",children:(0,yt.jsx)(xD,{placement:"top",content:e.domain,children:(0,yt.jsx)(Iw,{size:14,color:"secondary",className:"truncate",children:e.domain||"-"})})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Iw,{size:14,color:"secondary",className:"truncate",children:Coe(e)})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(uw,{className:"w-fit",size:"sm",variant:d?"blue":"neutral",label:d?(0,pt.__)("Scanned","surecookie"):(0,pt.__)("Custom","surecookie")})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)("div",{className:"flex justify-end gap-2",children:A.map((t,n)=>(0,yt.jsx)(e_,{content:t.label,children:(0,yt.jsx)(Fa,{className:jo("[&_svg]:size-3.5",!t?.destructive&&"text-icon-secondary"),variant:"ghost",size:"xs",icon:t.icon,onClick:t.onClick,destructive:t.destructive,"aria-label":(0,pt.sprintf)(/* translators: 1: action label, 2: cookie name. */ /* translators: 1: action label, 2: cookie name. */
26 (0,pt.__)("%1$s %2$s","surecookie"),t.label,e.name)})},n))})})]})}),joe=e=>`${e.type||"custom"}:${e.id??e.name}:${e.category}`,Eoe=({cookies:e,categories:t,onEdit:n,onDelete:r,onCategoryChange:o,onBulkCategoryChange:i,isSaving:s=!1,newSignatureIds:a=new Set})=>{const[l,c]=(0,ct.useState)(()=>new Set),[u,d]=(0,ct.useState)("");(0,ct.useEffect)(()=>{const t=new Set(e.map(joe));c(e=>{const n=new Set([...e].filter(e=>t.has(e)));return n.size===e.size?e:n})},[e]);const A=e.length>0&&l.size===e.length,h=l.size>0&&!A,p=(0,ct.useMemo)(()=>{const e=new Map;return t.forEach(t=>e.set(t.id,t.name)),e},[t]),f=(0,ct.useCallback)(()=>{c(t=>t.size===e.length?new Set:new Set(e.map(joe)))},[e]),m=(0,ct.useCallback)(e=>{c(t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),g=(0,ct.useCallback)(()=>{c(new Set),d("")},[]);return(0,yt.jsxs)("div",{className:"space-y-3",children:[l.size>0&&(0,yt.jsxs)("div",{className:"flex items-center gap-3 p-3 bg-background-secondary border border-border-subtle rounded-lg",children:[(0,yt.jsx)(Iw,{size:14,weight:500,color:"primary",children:(0,pt.sprintf)(/* translators: %d: number of selected cookies. */ /* translators: %d: number of selected cookies. */
27 (0,pt.__)("%d selected","surecookie"),l.size)}),(0,yt.jsx)("div",{className:"w-56",children:(0,yt.jsxs)(lk,{size:"sm",value:u,onChange:d,disabled:s,children:[(0,yt.jsx)(lk.Button,{"aria-label":(0,pt.__)("Bulk category","surecookie"),placeholder:(0,pt.__)("Move to category…","surecookie"),render:e=>p.get(e)??(0,pt.__)("Move to category…","surecookie")}),(0,yt.jsx)(lk.Options,{children:t.map(e=>(0,yt.jsx)(lk.Option,{value:e.id,children:e.name},e.id))})]})}),(0,yt.jsx)(Fa,{size:"sm",onClick:async()=>{if(!u||0===l.size||s)return;const t=e.filter(e=>l.has(joe(e)));if(0!==t.length)try{await i(t,u),g()}catch(e){}},disabled:!u||s,children:s?(0,pt.__)("Applying…","surecookie"):(0,pt.__)("Apply","surecookie")}),(0,yt.jsx)(Fa,{size:"sm",variant:"ghost",onClick:g,disabled:s,children:(0,pt.__)("Clear selection","surecookie")})]}),(0,yt.jsxs)(sU,{children:[(0,yt.jsxs)(sU.Head,{children:[(0,yt.jsx)(sU.HeadCell,{className:"w-10",children:(0,yt.jsx)(rU,{size:"sm","aria-label":(0,pt.__)("Select all cookies","surecookie"),checked:A,indeterminate:h,onChange:f})}),(0,yt.jsx)(sU.HeadCell,{children:(0,pt.__)("Name","surecookie")}),(0,yt.jsx)(sU.HeadCell,{className:"w-44",children:(0,pt.__)("Category","surecookie")}),(0,yt.jsx)(sU.HeadCell,{className:"w-[15%]",children:(0,pt.__)("Provider","surecookie")}),(0,yt.jsx)(sU.HeadCell,{className:"w-[15%]",children:(0,pt.__)("Domain","surecookie")}),(0,yt.jsx)(sU.HeadCell,{className:"w-32",children:(0,pt.__)("Duration (Days)","surecookie")}),(0,yt.jsx)(sU.HeadCell,{className:"w-[10%]",children:(0,pt.__)("Type","surecookie")}),(0,yt.jsx)(sU.HeadCell,{className:"w-[10%] text-right",children:(0,yt.jsx)("span",{className:"sr-only",children:(0,pt.__)("Actions","surecookie")})})]}),(0,yt.jsx)(sU.Body,{children:e.map(e=>{const i=joe(e);return(0,yt.jsx)(Soe,{cookie:e,rowKey:i,categories:t,categoryNameById:p,isSelected:l.has(i),isSaving:s,isNew:"scanned"===e.type&&!!e.signature_id&&a.has(e.signature_id),onToggle:m,onCategoryChange:o,onEdit:n,onDelete:r},i)})})]})]})},Noe=({rows:e=5})=>(0,yt.jsxs)(sU,{children:[(0,yt.jsxs)(sU.Head,{children:[(0,yt.jsx)(sU.HeadCell,{children:(0,yt.jsx)(Zk,{className:"h-4 w-16"})}),(0,yt.jsx)(sU.HeadCell,{children:(0,yt.jsx)(Zk,{className:"h-4 w-20"})}),(0,yt.jsx)(sU.HeadCell,{className:"w-[15%]",children:(0,yt.jsx)(Zk,{className:"h-4 w-20"})}),(0,yt.jsx)(sU.HeadCell,{className:"w-[15%]",children:(0,yt.jsx)(Zk,{className:"h-4 w-20"})}),(0,yt.jsx)(sU.HeadCell,{className:"w-32",children:(0,yt.jsx)(Zk,{className:"h-4 w-24"})}),(0,yt.jsx)(sU.HeadCell,{className:"w-[10%]",children:(0,yt.jsx)(Zk,{className:"h-4 w-12"})}),(0,yt.jsx)(sU.HeadCell,{className:"w-[10%] text-right",children:(0,yt.jsx)("span",{className:"sr-only",children:(0,pt.__)("Actions","surecookie")})})]}),(0,yt.jsx)(sU.Body,{children:Array.from({length:e}).map((e,t)=>(0,yt.jsxs)(sU.Row,{children:[(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Zk,{className:"h-4 w-24"})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Zk,{className:"h-4 w-20"})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Zk,{className:"h-4 w-20"})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Zk,{className:"h-4 w-24"})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Zk,{className:"h-4 w-10"})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Zk,{className:"h-6 w-16 rounded-full"})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,yt.jsx)(Zk,{className:"h-6 w-6 rounded"}),(0,yt.jsx)(Zk,{className:"h-6 w-6 rounded"})]})})]},t))})]}),Ioe=({deleteDialog:e,setDeleteDialog:t,onConfirmDelete:n})=>{const{deleting:r}=e,o="scanned"===e.cookie?.type,i=o?(0,pt.__)("It will come back on the next scan if your site still sets it.","surecookie"):(0,pt.__)("This action cannot be undone.","surecookie"),s=e.cookie?(0,ct.createInterpolateElement)((0,pt.sprintf)(/* translators: %s: what happens after the deletion. */ /* translators: %s: what happens after the deletion. */
28 (0,pt.__)('Are you sure you want to delete the cookie "<strong></strong>"? %s',"surecookie"),i),{strong:(0,yt.jsx)("strong",{children:e.cookie.name})}):(0,pt.sprintf)(/* translators: %s: what happens after the deletion. */ /* translators: %s: what happens after the deletion. */
29 (0,pt.__)("Are you sure you want to delete this cookie? %s","surecookie"),i);return(0,yt.jsx)(jx,{isOpen:e.isOpen,onClose:()=>{r||t({isOpen:!1,cookie:null,deleting:!1})},onConfirm:()=>{r||n()},title:o?(0,pt.__)("Delete Scanned Cookie","surecookie"):(0,pt.__)("Delete Custom Cookie","surecookie"),description:s,isDeleting:r})},Foe=e=>"number"==typeof e?`${e}px`:e,Toe=(0,ft.forwardRef)(({id:e,defaultValue:t="",value:n,size:r="sm",className:o="",disabled:i=!1,onChange:s=()=>{},error:a=!1,onError:l=()=>{},autoResize:c=!1,minHeight:u,maxHeight:d=160,style:A,...h},p)=>{const f=(0,ft.useRef)(null),m=(0,ft.useMemo)(()=>e||`input-textarea-${nm()}`,[e]),g=(0,ft.useMemo)(()=>typeof n<"u",[n]),[y,v]=(0,ft.useState)(t),b=(0,ft.useCallback)(()=>g?n:y,[g,n,y]);(0,ft.useLayoutEffect)(()=>{if(!c)return;const e=f.current;e&&(e.style.height="auto",e.style.height=`${e.scrollHeight}px`)},[c,b(),u,d]);const w=i?"hover:border-border-disabled":"hover:border-border-strong",x=a?"focus:border-focus-error-border focus:ring-field-color-error border-focus-error-border":"",k=i?"border-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled":"",_={...A??{},minHeight:Foe(u),maxHeight:Foe(d),...c&&{resize:"none",overflow:null!==d?"auto":"hidden"}};return(0,yt.jsx)("textarea",{ref:Ua(f,p),id:m,className:wa("py-2 rounded border border-solid border-border-subtle bg-field-secondary-background font-normal placeholder-text-tertiary text-text-primary focus:outline-none focus-visible:outline-none transition ease-in-out duration-200",k,{sm:"px-3 rounded text-xs",md:"px-3 rounded-md text-sm",lg:"px-4 rounded-lg text-base"}[r],"focus:border-focus-border focus:ring-2 focus:ring-toggle-on focus:ring-offset-2",w,x,o),disabled:i,onChange:e=>{if(i)return;const t=e.target.value;g||v(t),"function"==typeof s&&s(t)},onInvalid:l,value:b(),style:_,...a&&{"aria-invalid":!0},...h})});Toe.displayName="TextArea";const Loe=({isOpen:e,setIsOpen:t,mode:n,formData:r,errors:o,categories:i,register:s,setFocus:a,onUpdate:l,onSave:c,onCancel:u,isSaving:d=!1,isScannedCookie:A=!1})=>{const[h,p]=(0,ct.useState)(!1),f=(0,ct.useRef)({name:null,category:null,duration:null,provider:null,domain:null,description:null,purpose:null}),m="edit"===n;let g,y;A?(g=(0,pt.__)("Edit Scanned Cookie","surecookie"),y=(0,pt.__)("Update Cookie","surecookie")):m?(g=(0,pt.__)("Edit Cookie","surecookie"),y=(0,pt.__)("Update Cookie","surecookie")):(g=(0,pt.__)("Add New Cookie","surecookie"),y=(0,pt.__)("Save Cookie","surecookie")),(0,ct.useEffect)(()=>{e&&setTimeout(()=>{const e=A?"category":"name";"function"!=typeof a?f.current[e]?.focus():a(e)},200)},[e,a,A]);const v=s?s("name"):{},b=s?s("category"):{},w=s?s("duration"):{},x=s?s("provider"):{},k=s?s("domain"):{},_=s?s("description"):{},C=s?s("purpose"):{},B=(e,t)=>n=>{"function"==typeof t&&t(n),f.current[e]=n},S=(e,t)=>t?.onChange?t.onChange:"function"==typeof l?t=>l(e,t):void 0;return(0,yt.jsxs)(qx,{isOpen:e,setIsOpen:t,title:g,saveLabel:y,onSave:c,onCancel:u,isSaving:d,children:[A&&(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",children:(0,pt.__)("Cookie Name","surecookie")}),(0,yt.jsx)(Iw,{size:14,color:"secondary",className:"px-3 py-2 bg-field-secondary-background rounded-md border border-solid border-field-border",children:r.name})]}),!A&&(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"cookie-name",className:'after:content-["*"] after:ml-0.5 after:text-text-error',children:(0,pt.__)("Cookie Name","surecookie")}),(0,yt.jsx)(j_,{...v,ref:B("name",v?.ref),size:"md",id:"cookie-name",type:"text",value:void 0!==v?.value?v.value:r.name,onChange:S("name",v),onBlur:v?.onBlur,placeholder:(0,pt.__)("e.g., my_custom_cookie","surecookie"),error:!!o.name,"aria-required":"true","aria-invalid":!!o.name,"aria-describedby":o.name?"cookie-name-error":void 0}),o.name&&(0,yt.jsx)(Iw,{id:"cookie-name-error",role:"alert",size:14,weight:400,color:"error",children:o.name})]}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"cookie-category",className:'after:content-["*"] after:ml-0.5 after:text-text-error',children:(0,pt.__)("Category","surecookie")}),(0,yt.jsxs)(lk,{value:void 0!==b?.value?b.value:r.category,onChange:e=>{const t=S("category",b);t&&t(e)},size:"md",open:h,onOpenChange:p,children:[(0,yt.jsx)(lk.Button,{placeholder:(0,pt.__)("Select a category","surecookie"),ref:B("category",b?.ref),id:"cookie-category",onBlur:b?.onBlur,"aria-label":(0,pt.__)("Cookie Category","surecookie"),"aria-required":"true","aria-invalid":!!o.category,"aria-describedby":o.category?"cookie-category-error":void 0,render:e=>i.find(t=>t.id===e)?.name??(0,pt.__)("Unknown","surecookie")}),(0,yt.jsx)(lk.Options,{className:"z-[99999]",children:i.map(e=>(0,yt.jsx)(lk.Option,{value:e.id,children:e.name},e.id))})]}),o.category&&(0,yt.jsx)(Iw,{id:"cookie-category-error",role:"alert",size:14,weight:400,color:"error",children:o.category}),0===i.length&&(0,yt.jsx)(Iw,{size:12,weight:400,color:"error",children:(0,pt.__)("No categories available. Please create a category first.","surecookie")})]}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"cookie-duration",children:(0,pt.__)("Duration (Days)","surecookie")}),(0,yt.jsx)(j_,{...w,ref:B("duration",w?.ref),size:"md",id:"cookie-duration",type:"number",value:void 0!==w?.value?w.value:r.duration,onChange:S("duration",w),onBlur:w?.onBlur,placeholder:(0,pt.__)("e.g., 30","surecookie")})]}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"cookie-provider",children:(0,pt.__)("Provider","surecookie")}),(0,yt.jsx)(j_,{...x,ref:B("provider",x?.ref),size:"md",id:"cookie-provider",type:"text",value:void 0!==x?.value?x.value:r.provider,onChange:S("provider",x),onBlur:x?.onBlur,placeholder:(0,pt.__)("e.g., Your Company Name","surecookie")})]}),!A&&(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"cookie-domain",children:(0,pt.__)("Domain","surecookie")}),(0,yt.jsx)(j_,{...k,ref:B("domain",k?.ref),size:"md",id:"cookie-domain",type:"text",value:void 0!==k?.value?k.value:r.domain,onChange:S("domain",k),onBlur:k?.onBlur,placeholder:(0,pt.__)("e.g., .example.com","surecookie")})]}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"cookie-description",children:(0,pt.__)("Description","surecookie")}),(0,yt.jsx)(Toe,{..._,ref:B("description",_?.ref),className:"block w-full",size:"md",id:"cookie-description",value:void 0!==_?.value?_.value:r.description,onChange:S("description",_),onBlur:_?.onBlur,rows:3,placeholder:(0,pt.__)("Enter a description for this cookie…","surecookie")})]})]}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"cookie-purpose",children:(0,pt.__)("Purpose","surecookie")}),(0,yt.jsx)(Toe,{...C,ref:B("purpose",C?.ref),className:"block w-full",size:"md",id:"cookie-purpose",value:void 0!==C?.value?C.value:r.purpose,onChange:S("purpose",C),onBlur:C?.onBlur,rows:2,placeholder:(0,pt.__)("Describe the purpose of this cookie…","surecookie")})]})]})},Poe=({formData:e,errors:t,register:n,onUpdate:r})=>{const o=(0,ct.useRef)({name:null,description:null}),i=n?n("name"):{},s=n?n("description"):{},a=(e,t)=>n=>{"function"==typeof t&&t(n),o.current[e]=n},l=(e,t)=>t?.onChange?t.onChange:"function"==typeof r?t=>r(e,t):void 0;return(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"category-name",className:'after:content-["*"] after:ml-0.5 after:text-text-error',children:(0,pt.__)("Category Name","surecookie")}),(0,yt.jsx)(j_,{...i,ref:a("name",i?.ref),size:"md",id:"category-name",type:"text",value:void 0!==i?.value?i.value:e.name,onChange:l("name",i),onBlur:i?.onBlur,placeholder:(0,pt.__)("e.g., Performance Cookies","surecookie"),error:!!t.name,"aria-required":"true","aria-invalid":!!t.name,"aria-describedby":t.name?"category-name-error":void 0}),t.name&&(0,yt.jsx)(Iw,{id:"category-name-error",role:"alert",size:14,weight:400,color:"error",children:t.name})]}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"category-description",children:(0,pt.__)("Description","surecookie")}),(0,yt.jsx)(Toe,{...s,ref:a("description",s?.ref),className:"block w-full",size:"md",id:"category-description",value:void 0!==s?.value?s.value:e.description,onChange:l("description",s),onBlur:s?.onBlur,rows:4,placeholder:(0,pt.__)("Enter a description for this cookie category…","surecookie")})]})]})},Moe=({deleteDialog:e,setDeleteDialog:t,onConfirmDelete:n,categories:r,cookies:o=[]})=>{const[i,s]=(0,ct.useState)(!0),[a,l]=(0,ct.useState)(""),{deleting:c}=e,u=e.category?.id,d=(0,ct.useMemo)(()=>(r??[]).filter(e=>e.id!==u),[r,u]),A=(0,ct.useMemo)(()=>d.find(e=>"uncategorized"===e.id)?.id??d[0]?.id??"",[d]);(0,ct.useEffect)(()=>{e.isOpen&&(s(!0),l(A))},[e.isOpen,A]);const h=o.filter(e=>e.category===u),p=e.hasCookies?(0,ct.createInterpolateElement)((0,pt.sprintf)(
30 // translators: %1$s is the category name, %2$s is the number of cookies
31 // translators: %1$s is the category name, %2$s is the number of cookies
32 (0,pt.__)('Are you sure you want to delete this cookie category? <br/> The category "%1$s" has %2$s assigned to it:',"surecookie"),e.category?.name,(0,pt._n)("cookie","cookies",e.cookieCount,"surecookie")),{br:(0,yt.jsx)("br",{})}):(0,pt.__)("Are you sure you want to delete this cookie category? This action cannot be undone.","surecookie");return(0,yt.jsx)(jx,{isOpen:e.isOpen,onClose:()=>{t({isOpen:!1,category:null,hasCookies:!1,cookieCount:0})},onConfirm:()=>{e.hasCookies&&i?n(a):n()},title:(0,pt.__)("Delete Cookie Category","surecookie"),description:p,isDeleting:c,children:e.hasCookies&&(0,yt.jsxs)("div",{className:"space-y-4",children:[h.length>0&&(0,yt.jsx)("div",{className:"bg-background-secondary border border-border-subtle rounded-md p-3",children:(0,yt.jsx)("ul",{className:"list-inside space-y-1 max-h-32 overflow-y-auto",children:h.map(e=>(0,yt.jsx)(Iw,{as:"li",size:12,color:"secondary",className:"truncate",children:e.name},e.id))})}),(0,yt.jsx)("div",{className:"flex items-center justify-between",children:(0,yt.jsx)(Zb,{id:"keep-cookies-switch","aria-label":(0,pt.__)("Keep cookies when deleting category","surecookie"),checked:i,onChange:s,label:{heading:(0,pt.__)("Keep cookies","surecookie"),description:(0,pt.__)("Assigned cookies will be moved to another category instead of being deleted.","surecookie")}})}),i&&d.length>0&&(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"delete-category-target",children:(0,pt.__)("Move Cookies To","surecookie")}),(0,yt.jsxs)(lk,{size:"md",value:a,onChange:l,children:[(0,yt.jsx)(lk.Button,{id:"delete-category-target",placeholder:(0,pt.__)("Select a category","surecookie"),render:e=>d.find(t=>t.id===e)?.name??(0,pt.__)("Select a category","surecookie")}),(0,yt.jsx)(lk.Options,{className:"z-[99999]",children:d.map(e=>(0,yt.jsx)(lk.Option,{value:e.id,children:e.name},e.id))})]})]})]})})},Ooe=/^[cC][0-9a-z]{6,}$/,Doe=/^[0-9a-z]+$/,Uoe=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Roe=/^[0-9a-vA-V]{20}$/,zoe=/^[A-Za-z0-9]{27}$/,Qoe=/^[a-zA-Z0-9_-]{21}$/,Hoe=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,qoe=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Voe=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Koe=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Woe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Goe=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,$oe=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Yoe=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Zoe=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Xoe=/^[A-Za-z0-9_-]*$/,Joe=/^https?$/,eie=/^\+[1-9]\d{6,14}$/,tie="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",nie=new RegExp(`^${tie}$`);function rie(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}const oie=/^(?:true|false)$/i,iie=/^[^A-Z]*$/,sie=/^[^a-z]*$/,aie=Pw("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),lie=Pw("$ZodCheckMaxLength",(e,t)=>{var n;aie.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!Hw(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const n=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const r=n.value;if(r.length<=t.maximum)return;const o=ux(r);n.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),cie=Pw("$ZodCheckMinLength",(e,t)=>{var n;aie.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!Hw(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const n=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const r=n.value;if(r.length>=t.minimum)return;const o=ux(r);n.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),uie=Pw("$ZodCheckLengthEquals",(e,t)=>{var n;aie.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!Hw(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{const r=n.value,o=r.length;if(o===t.length)return;const i=ux(r),s=o>t.length;n.issues.push({origin:i,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),die=Pw("$ZodCheckStringFormat",(e,t)=>{var n,r;aie.init(e,t),e._zod.onattach.push(e=>{const n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Aie=Pw("$ZodCheckRegex",(e,t)=>{die.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),hie=Pw("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=iie),die.init(e,t)}),pie=Pw("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=sie),die.init(e,t)}),fie=Pw("$ZodCheckIncludes",(e,t)=>{aie.init(e,t);const n=nx(t.includes),r=new RegExp("number"==typeof t.position?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),mie=Pw("$ZodCheckStartsWith",(e,t)=>{aie.init(e,t);const n=new RegExp(`^${nx(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),gie=Pw("$ZodCheckEndsWith",(e,t)=>{aie.init(e,t);const n=new RegExp(`.*${nx(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),yie=Pw("$ZodCheckOverwrite",(e,t)=>{aie.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class vie{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e)return e(this,{execution:"sync"}),void e(this,{execution:"async"});const t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e);for(const e of r)this.content.push(e)}compile(){const e=Function,t=this?.args,n=[...(this?.content??[""]).map(e=>` ${e}`)];return new e(...t,n.join("\n"))}}const bie=e=>(t,n,r,o)=>{const i=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new Mw;if(s.issues.length){const t=new(o?.Err??e)(s.issues.map(e=>cx(e,i,Uw())));throw Yw(t,o?.callee),t}return s.value},wie=e=>async(t,n,r,o)=>{const i=r?{...r,async:!0}:{async:!0};let s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const t=new(o?.Err??e)(s.issues.map(e=>cx(e,i,Uw())));throw Yw(t,o?.callee),t}return s.value},xie=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new Mw;return i.issues.length?{success:!1,error:new(e??hx)(i.issues.map(e=>cx(e,o,Uw())))}:{success:!0,data:i.value}},kie=xie(px),_ie=e=>async(t,n,r)=>{const o=r?{...r,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(e=>cx(e,o,Uw())))}:{success:!0,data:i.value}},Cie=_ie(px),Bie=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return bie(e)(t,n,o)},Sie=e=>(t,n,r)=>bie(e)(t,n,r),jie=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return wie(e)(t,n,o)},Eie=e=>async(t,n,r)=>wie(e)(t,n,r),Nie=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return xie(e)(t,n,o)},Iie=e=>(t,n,r)=>xie(e)(t,n,r),Fie=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return _ie(e)(t,n,o)},Tie=e=>async(t,n,r)=>_ie(e)(t,n,r),Lie={major:4,minor:4,patch:3},Pie=Pw("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Lie;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const t of r)for(const n of t._zod.onattach)n(e);if(0===r.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const t=(e,t,n)=>{let r,o=ix(e);for(const i of t){if(i._zod.def.when){if(sx(e))continue;if(!i._zod.def.when(e))continue}else if(o)continue;const t=e.issues.length,s=i._zod.check(e);if(s instanceof Promise&&!1===n?.async)throw new Mw;if(r||s instanceof Promise)r=(r??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(o||(o=ix(e,t)))});else{if(e.issues.length===t)continue;o||(o=ix(e,t))}}return r?r.then(()=>e):e},n=(n,o,i)=>{if(ix(n))return n.aborted=!0,n;const s=t(o,r,i);if(s instanceof Promise){if(!1===i.async)throw new Mw;return s.then(t=>e._zod.parse(t,i))}return e._zod.parse(s,i)};e._zod.run=(o,i)=>{if(i.skipChecks)return e._zod.parse(o,i);if("backward"===i.direction){const t=e._zod.parse({value:o.value,issues:[]},{...i,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,o,i)):n(t,o,i)}const s=e._zod.parse(o,i);if(s instanceof Promise){if(!1===i.async)throw new Mw;return s.then(e=>t(e,r,i))}return t(s,r,i)}}Kw(e,"~standard",()=>({validate:t=>{try{const n=kie(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return Cie(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),Mie=Pw("$ZodString",(e,t)=>{var n;Pie.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(n=e._zod.bag,new RegExp(`^${n?`[\\s\\S]{${n?.minimum??0},${n?.maximum??""}}`:"[\\s\\S]*"}$`)),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch(r){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Oie=Pw("$ZodStringFormat",(e,t)=>{die.init(e,t),Mie.init(e,t)}),Die=Pw("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=qoe),Oie.init(e,t)}),Uie=Pw("$ZodUUID",(e,t)=>{if(t.version){const e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Voe(e))}else t.pattern??(t.pattern=Voe());Oie.init(e,t)}),Rie=Pw("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Koe),Oie.init(e,t)}),zie=Pw("$ZodURL",(e,t)=>{Oie.init(e,t),e._zod.check=n=>{try{const r=n.value.trim();if(!t.normalize&&t.protocol?.source===Joe.source&&!/^https?:\/\//i.test(r))return void n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});const o=new URL(r);return t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),void(t.normalize?n.value=o.href:n.value=r)}catch(r){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Qie=Pw("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Oie.init(e,t)}),Hie=Pw("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Qoe),Oie.init(e,t)}),qie=Pw("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ooe),Oie.init(e,t)}),Vie=Pw("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Doe),Oie.init(e,t)}),Kie=Pw("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Uoe),Oie.init(e,t)}),Wie=Pw("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Roe),Oie.init(e,t)}),Gie=Pw("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=zoe),Oie.init(e,t)}),$ie=Pw("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=function(e){const t=rie({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${tie}T(?:${r})$`)}(t)),Oie.init(e,t)}),Yie=Pw("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=nie),Oie.init(e,t)}),Zie=Pw("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=function(e){return new RegExp(`^${rie(e)}$`)}(t)),Oie.init(e,t)}),Xie=Pw("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Hoe),Oie.init(e,t)}),Jie=Pw("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Woe),Oie.init(e,t),e._zod.bag.format="ipv4"}),ese=Pw("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Goe),Oie.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),tse=Pw("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=$oe),Oie.init(e,t)}),nse=Pw("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Yoe),Oie.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(2!==r.length)throw new Error;const[e,t]=r;if(!t)throw new Error;const n=Number(t);if(`${n}`!==t)throw new Error;if(n<0||n>128)throw new Error;new URL(`http://[${e}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function rse(e){if(""===e)return!0;if(/\s/.test(e))return!1;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const ose=Pw("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Zoe),Oie.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{rse(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),ise=Pw("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Xoe),Oie.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{(function(e){if(!Xoe.test(e))return!1;const t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return rse(t.padEnd(4*Math.ceil(t.length/4),"="))})(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),sse=Pw("$ZodE164",(e,t)=>{t.pattern??(t.pattern=eie),Oie.init(e,t)}),ase=Pw("$ZodJWT",(e,t)=>{Oie.init(e,t),e._zod.check=n=>{(function(e,t=null){try{const n=e.split(".");if(3!==n.length)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&"JWT"!==o?.typ||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}})(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),lse=Pw("$ZodBoolean",(e,t)=>{Pie.init(e,t),e._zod.pattern=oie,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Boolean(n.value)}catch(e){}const o=n.value;return"boolean"==typeof o||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),cse=Pw("$ZodUnknown",(e,t)=>{Pie.init(e,t),e._zod.parse=e=>e}),use=Pw("$ZodNever",(e,t)=>{Pie.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function dse(e,t,n){e.issues.length&&t.issues.push(...ax(n,e.issues)),t.value[n]=e.value}const Ase=Pw("$ZodArray",(e,t)=>{Pie.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const i=[];for(let e=0;e<o.length;e++){const s=o[e],a=t.element._zod.run({value:s,issues:[]},r);a instanceof Promise?i.push(a.then(t=>dse(t,n,e))):dse(a,n,e)}return i.length?Promise.all(i).then(()=>n):n}});function hse(e,t,n,r,o,i){const s=n in r;if(e.issues.length){if(o&&i&&!s)return;t.issues.push(...ax(n,e.issues))}s||o?void 0===e.value?s&&(t.value[n]=void 0):t.value[n]=e.value:e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]})}function pse(e){const t=Object.keys(e.shape);for(const n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const n=(r=e.shape,Object.keys(r).filter(e=>"optional"===r[e]._zod.optin&&"optional"===r[e]._zod.optout));var r;return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function fse(e,t,n,r,o,i){const s=[],a=o.keySet,l=o.catchall._zod,c=l.def.type,u="optional"===l.optin,d="optional"===l.optout;for(const o in t){if("__proto__"===o)continue;if(a.has(o))continue;if("never"===c){s.push(o);continue}const i=l.run({value:t[o],issues:[]},r);i instanceof Promise?e.push(i.then(e=>hse(e,n,o,t,u,d))):hse(i,n,o,t,u,d)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const mse=Pw("$ZodObject",(e,t)=>{Pie.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!n?.get){const e=t.shape;Object.defineProperty(t,"shape",{get:()=>{const n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}const r=Qw(()=>pse(t));Kw(e._zod,"propValues",()=>{const e=t.shape,n={};for(const t in e){const r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(const e of r.values)n[t].add(e)}}return n});const o=Zw,i=t.catchall;let s;e._zod.parse=(t,n)=>{s??(s=r.value);const a=t.value;if(!o(a))return t.issues.push({expected:"object",code:"invalid_type",input:a,inst:e}),t;t.value={};const l=[],c=s.shape;for(const e of s.keys){const r=c[e],o="optional"===r._zod.optin,i="optional"===r._zod.optout,s=r._zod.run({value:a[e],issues:[]},n);s instanceof Promise?l.push(s.then(n=>hse(n,t,e,a,o,i))):hse(s,t,e,a,o,i)}return i?fse(l,a,t,n,r.value,e):l.length?Promise.all(l).then(()=>t):t}}),gse=Pw("$ZodObjectJIT",(e,t)=>{mse.init(e,t);const n=e._zod.parse,r=Qw(()=>pse(t));let o;const i=Zw,s=!Dw.jitless,a=s&&Xw.value,l=t.catchall;let c;e._zod.parse=(u,d)=>{c??(c=r.value);const A=u.value;return i(A)?s&&a&&!1===d?.async&&!0!==d.jitless?(o||(o=(e=>{const t=new vie(["shape","payload","ctx"]),n=r.value,o=e=>{const t=$w(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");const i=Object.create(null);let s=0;for(const e of n.keys)i[e]="key_"+s++;t.write("const newResult = {};");for(const r of n.keys){const n=i[r],s=$w(r),a=e[r],l="optional"===a?._zod?.optin,c="optional"===a?._zod?.optout;t.write(`const ${n} = ${o(r)};`),l&&c?t.write(`\n if (${n}.issues.length) {\n if (${s} in input) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${s}, ...iss.path] : [${s}]\n })));\n }\n }\n \n if (${n}.value === undefined) {\n if (${s} in input) {\n newResult[${s}] = undefined;\n }\n } else {\n newResult[${s}] = ${n}.value;\n }\n \n `):l?t.write(`\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${s}, ...iss.path] : [${s}]\n })));\n }\n \n if (${n}.value === undefined) {\n if (${s} in input) {\n newResult[${s}] = undefined;\n }\n } else {\n newResult[${s}] = ${n}.value;\n }\n \n `):t.write(`\n const ${n}_present = ${s} in input;\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${s}, ...iss.path] : [${s}]\n })));\n }\n if (!${n}_present && !${n}.issues.length) {\n payload.issues.push({\n code: "invalid_type",\n expected: "nonoptional",\n input: undefined,\n path: [${s}]\n });\n }\n\n if (${n}_present) {\n if (${n}.value === undefined) {\n newResult[${s}] = undefined;\n } else {\n newResult[${s}] = ${n}.value;\n }\n }\n\n `)}t.write("payload.value = newResult;"),t.write("return payload;");const a=t.compile();return(t,n)=>a(e,t,n)})(t.shape)),u=o(u,d),l?fse([],A,u,d,c,e):u):n(u,d):(u.issues.push({expected:"object",code:"invalid_type",input:A,inst:e}),u)}});function yse(e,t,n,r){for(const n of e)if(0===n.issues.length)return t.value=n.value,t;const o=e.filter(e=>!ix(e));return 1===o.length?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>cx(e,r,Uw())))}),t)}const vse=Pw("$ZodUnion",(e,t)=>{Pie.init(e,t),Kw(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),Kw(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),Kw(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),Kw(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){const e=t.options.map(e=>e._zod.pattern);return new RegExp(`^(${e.map(e=>qw(e.source)).join("|")})$`)}});const n=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1;const s=[];for(const e of t.options){const t=e._zod.run({value:r.value,issues:[]},o);if(t instanceof Promise)s.push(t),i=!0;else{if(0===t.issues.length)return t;s.push(t)}}return i?Promise.all(s).then(t=>yse(t,r,e,o)):yse(s,r,e,o)}}),bse=Pw("$ZodIntersection",(e,t)=>{Pie.init(e,t),e._zod.parse=(e,n)=>{const r=e.value,o=t.left._zod.run({value:r,issues:[]},n),i=t.right._zod.run({value:r,issues:[]},n);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([t,n])=>xse(e,t,n)):xse(e,o,i)}});function wse(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e===+t)return{valid:!0,data:e};if(Jw(e)&&Jw(t)){const n=Object.keys(t),r=Object.keys(e).filter(e=>-1!==n.indexOf(e)),o={...e,...t};for(const n of r){const r=wse(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};o[n]=r.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=wse(e[r],t[r]);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function xse(e,t,n){const r=new Map;let o;for(const n of t.issues)if("unrecognized_keys"===n.code){o??(o=n);for(const e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(const t of n.issues)if("unrecognized_keys"===t.code)for(const e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);const i=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(i.length&&o&&e.issues.push({...o,keys:i}),ix(e))return e;const s=wse(t.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const kse=Pw("$ZodEnum",(e,t)=>{Pie.init(e,t);const n=Rw(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(e=>tx.has(typeof e)).map(e=>"string"==typeof e?nx(e):e.toString()).join("|")})$`),e._zod.parse=(t,o)=>{const i=t.value;return r.has(i)||t.issues.push({code:"invalid_value",values:n,input:i,inst:e}),t}}),_se=Pw("$ZodTransform",(e,t)=>{Pie.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new Ow(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(e=>(n.value=e,n.fallback=!0,n));if(o instanceof Promise)throw new Mw;return n.value=o,n.fallback=!0,n}});function Cse(e,t){return void 0===t&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Bse=Pw("$ZodOptional",(e,t)=>{Pie.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Kw(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Kw(e._zod,"pattern",()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${qw(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if("optional"===t.innerType._zod.optin){const r=e.value,o=t.innerType._zod.run(e,n);return o instanceof Promise?o.then(e=>Cse(e,r)):Cse(o,r)}return void 0===e.value?e:t.innerType._zod.run(e,n)}}),Sse=Pw("$ZodExactOptional",(e,t)=>{Bse.init(e,t),Kw(e._zod,"values",()=>t.innerType._zod.values),Kw(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),jse=Pw("$ZodNullable",(e,t)=>{Pie.init(e,t),Kw(e._zod,"optin",()=>t.innerType._zod.optin),Kw(e._zod,"optout",()=>t.innerType._zod.optout),Kw(e._zod,"pattern",()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${qw(e.source)}|null)$`):void 0}),Kw(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)}),Ese=Pw("$ZodDefault",(e,t)=>{Pie.init(e,t),e._zod.optin="optional",Kw(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);if(void 0===e.value)return e.value=t.defaultValue,e;const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Nse(e,t)):Nse(r,t)}});function Nse(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}const Ise=Pw("$ZodPrefault",(e,t)=>{Pie.init(e,t),e._zod.optin="optional",Kw(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>("backward"===n.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Fse=Pw("$ZodNonOptional",(e,t)=>{Pie.init(e,t),Kw(e._zod,"values",()=>{const e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(t=>Tse(t,e)):Tse(o,e)}});function Tse(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Lse=Pw("$ZodCatch",(e,t)=>{Pie.init(e,t),e._zod.optin="optional",Kw(e._zod,"optout",()=>t.innerType._zod.optout),Kw(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>cx(e,n,Uw()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>cx(e,n,Uw()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),Pse=Pw("$ZodPipe",(e,t)=>{Pie.init(e,t),Kw(e._zod,"values",()=>t.in._zod.values),Kw(e._zod,"optin",()=>t.in._zod.optin),Kw(e._zod,"optout",()=>t.out._zod.optout),Kw(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if("backward"===n.direction){const r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Mse(e,t.in,n)):Mse(r,t.in,n)}const r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Mse(e,t.out,n)):Mse(r,t.out,n)}});function Mse(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const Ose=Pw("$ZodReadonly",(e,t)=>{Pie.init(e,t),Kw(e._zod,"propValues",()=>t.innerType._zod.propValues),Kw(e._zod,"values",()=>t.innerType._zod.values),Kw(e._zod,"optin",()=>t.innerType?._zod?.optin),Kw(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Dse):Dse(r)}});function Dse(e){return e.value=Object.freeze(e.value),e}const Use=Pw("$ZodCustom",(e,t)=>{aie.init(e,t),Pie.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(t=>Rse(t,n,r,e));Rse(o,n,r,e)}});function Rse(e,t,n,r){if(!e){const e={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(dx(e))}}var zse;Symbol("ZodOutput"),Symbol("ZodInput");(zse=globalThis).__zod_globalRegistry??(zse.__zod_globalRegistry=new class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&&"object"==typeof n&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};delete n.id;const r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}});const Qse=globalThis.__zod_globalRegistry;function Hse(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ox(t)})}function qse(e,t){return new lie({check:"max_length",...ox(t),maximum:e})}function Vse(e,t){return new cie({check:"min_length",...ox(t),minimum:e})}function Kse(e,t){return new uie({check:"length_equals",...ox(t),length:e})}function Wse(e){return new yie({check:"overwrite",tx:e})}function Gse(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Qse,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function $se(e,t,n={path:[],schemaPath:[]}){var r;const o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s);const a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{const r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,r);else{const n=s.schema,i=t.processors[o.type];if(!i)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);i(e,t,n,r)}const i=e._zod.parent;i&&(s.ref||(s.ref=i),$se(i,t,r),t.seen.get(i).isParent=!0)}const l=t.metadataRegistry.get(e);return l&&Object.assign(s.schema,l),"input"===t.io&&Xse(e)&&(delete s.schema.examples,delete s.schema.default),"input"===t.io&&"_prefault"in s.schema&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function Yse(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const t of e.seen.entries()){const n=e.metadataRegistry.get(t[0])?.id;if(n){const e=r.get(n);if(e&&e!==t[0])throw new Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}const o=t=>{if(t[1].schema.$ref)return;const r=t[1],{ref:o,defId:i}=(t=>{const r="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){const n=e.external.registry.get(t[0])?.id,o=e.external.uri??(e=>e);if(n)return{ref:o(n)};const i=t[1].defId??t[1].schema.id??"schema"+e.counter++;return t[1].defId=i,{defId:i,ref:`${o("__shared")}#/${r}/${i}`}}if(t[1]===n)return{ref:"#"};const o=`#/${r}/`,i=t[1].schema.id??"__schema"+e.counter++;return{defId:i,ref:o+i}})(t);r.def={...r.schema},i&&(r.defId=i);const s=r.schema;for(const e in s)delete s[e];s.$ref=o};if("throw"===e.cycles)for(const t of e.seen.entries()){const e=t[1];if(e.cycle)throw new Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>\n\nSet the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const n of e.seen.entries()){const r=n[1];if(t===n[0]){o(n);continue}if(e.external){const r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){o(n);continue}}const i=e.metadataRegistry.get(n[0])?.id;(i||r.cycle||r.count>1&&"ref"===e.reused)&&o(n)}}function Zse(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=t=>{const n=e.seen.get(t);if(null===n.ref)return;const o=n.def??n.schema,i={...o},s=n.ref;if(n.ref=null,s){r(s);const n=e.seen.get(s),a=n.schema;if(!a.$ref||"draft-07"!==e.target&&"draft-04"!==e.target&&"openapi-3.0"!==e.target?Object.assign(o,a):(o.allOf=o.allOf??[],o.allOf.push(a)),Object.assign(o,i),t._zod.parent===s)for(const e in o)"$ref"!==e&&"allOf"!==e&&(e in i||delete o[e]);if(a.$ref&&n.def)for(const e in o)"$ref"!==e&&"allOf"!==e&&e in n.def&&JSON.stringify(o[e])===JSON.stringify(n.def[e])&&delete o[e]}const a=t._zod.parent;if(a&&a!==s){r(a);const t=e.seen.get(a);if(t?.schema.$ref&&(o.$ref=t.schema.$ref,t.def))for(const e in o)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(o[e])===JSON.stringify(t.def[e])&&delete o[e]}e.override({zodSchema:t,jsonSchema:o,path:n.path??[]})};for(const t of[...e.seen.entries()].reverse())r(t[0]);const o={};if("draft-2020-12"===e.target?o.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?o.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const n=e.external.registry.get(t)?.id;if(!n)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(n)}Object.assign(o,n.def??n.schema);const i=e.metadataRegistry.get(t)?.id;void 0!==i&&o.id===i&&delete o.id;const s=e.external?.defs??{};for(const t of e.seen.entries()){const e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,s[e.defId]=e.def)}e.external||Object.keys(s).length>0&&("draft-2020-12"===e.target?o.$defs=s:o.definitions=s);try{const n=JSON.parse(JSON.stringify(o));return Object.defineProperty(n,"~standard",{value:{...t["~standard"],jsonSchema:{input:Jse(t,"input",e.processors),output:Jse(t,"output",e.processors)}},enumerable:!1,writable:!1}),n}catch(e){throw new Error("Error converting schema to JSON.")}}function Xse(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if("transform"===r.type)return!0;if("array"===r.type)return Xse(r.element,n);if("set"===r.type)return Xse(r.valueType,n);if("lazy"===r.type)return Xse(r.getter(),n);if("promise"===r.type||"optional"===r.type||"nonoptional"===r.type||"nullable"===r.type||"readonly"===r.type||"default"===r.type||"prefault"===r.type)return Xse(r.innerType,n);if("intersection"===r.type)return Xse(r.left,n)||Xse(r.right,n);if("record"===r.type||"map"===r.type)return Xse(r.keyType,n)||Xse(r.valueType,n);if("pipe"===r.type)return!!e._zod.traits.has("$ZodCodec")||Xse(r.in,n)||Xse(r.out,n);if("object"===r.type){for(const e in r.shape)if(Xse(r.shape[e],n))return!0;return!1}if("union"===r.type){for(const e of r.options)if(Xse(e,n))return!0;return!1}if("tuple"===r.type){for(const e of r.items)if(Xse(e,n))return!0;return!(!r.rest||!Xse(r.rest,n))}return!1}const Jse=(e,t,n={})=>r=>{const{libraryOptions:o,target:i}=r??{},s=Gse({...o??{},target:i,io:t,processors:n});return $se(e,s),Yse(s,e),Zse(s,e)},eae={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},tae=(e,t,n,r)=>{const o=e._zod.def;$se(o.innerType,t,r),t.seen.get(e).ref=o.innerType},nae=Pw("ZodISODateTime",(e,t)=>{$ie.init(e,t),_ae.init(e,t)});const rae=Pw("ZodISODate",(e,t)=>{Yie.init(e,t),_ae.init(e,t)});const oae=Pw("ZodISOTime",(e,t)=>{Zie.init(e,t),_ae.init(e,t)});const iae=Pw("ZodISODuration",(e,t)=>{Xie.init(e,t),_ae.init(e,t)});const sae=bie(gx),aae=wie(gx),lae=xie(gx),cae=_ie(gx),uae=Bie(gx),dae=Sie(gx),Aae=jie(gx),hae=Eie(gx),pae=Nie(gx),fae=Iie(gx),mae=Fie(gx),gae=Tie(gx),yae=new WeakMap;function vae(e,t,n){const r=Object.getPrototypeOf(e);let o=yae.get(r);if(o||(o=new Set,yae.set(r,o)),!o.has(t)){o.add(t);for(const e in n){const t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){const n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}const bae=Pw("ZodType",(e,t)=>(Pie.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Jse(e,"input"),output:Jse(e,"output")}}),e.toJSONSchema=((e,t={})=>n=>{const r=Gse({...n,processors:t});return $se(e,r),Yse(r,e),Zse(r,e)})(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>sae(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>lae(e,t,n),e.parseAsync=async(t,n)=>aae(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>cae(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>uae(e,t,n),e.decode=(t,n)=>dae(e,t,n),e.encodeAsync=async(t,n)=>Aae(e,t,n),e.decodeAsync=async(t,n)=>hae(e,t,n),e.safeEncode=(t,n)=>pae(e,t,n),e.safeDecode=(t,n)=>fae(e,t,n),e.safeEncodeAsync=async(t,n)=>mae(e,t,n),e.safeDecodeAsync=async(t,n)=>gae(e,t,n),vae(e,"ZodType",{check(...e){const t=this.def;return this.clone(Gw(t,{checks:[...t.checks??[],...e.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return rx(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(function(e,t={}){return function(e,t,n){return new e({type:"custom",check:"custom",fn:t,...ox(n)})}(ple,e,t)}(e,t))},superRefine(e,t){return this.check(function(e,t){return function(e,t){const n=function(e,t){const n=new aie({check:"custom",...ox(t)});return n._zod.check=e,n}(t=>(t.addIssue=e=>{if("string"==typeof e)t.issues.push(dx(e,t.value,n._zod.def));else{const r=e;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=t.value),r.inst??(r.inst=n),r.continue??(r.continue=!n._zod.def.abort),t.issues.push(dx(r))}},e(t.value,t)),t);return n}(e,t)}(e,t))},overwrite(e){return this.check(Wse(e))},optional(){return rle(this)},exactOptional(){return new ole({type:"optional",innerType:this})},nullable(){return sle(this)},nullish(){return rle(sle(this))},nonoptional(e){return function(e,t){return new cle({type:"nonoptional",innerType:e,...ox(t)})}(this,e)},array(){return function(e,t,n){return new e({type:"array",element:t,...ox(n)})}($ae,this,e);var e},or(e){return function(e,t){return new Xae({type:"union",options:e,...ox(t)})}([this,e])},and(e){return new Jae({type:"intersection",left:this,right:e})},transform(e){return Ale(this,new tle({type:"transform",transform:e}))},default(e){return t=e,new ale({type:"default",innerType:this,get defaultValue(){return"function"==typeof t?t():ex(t)}});var t},prefault(e){return t=e,new lle({type:"prefault",innerType:this,get defaultValue(){return"function"==typeof t?t():ex(t)}});var t},catch(e){return new ule({type:"catch",innerType:this,catchValue:"function"==typeof(t=e)?t:()=>t});var t},pipe(e){return Ale(this,e)},readonly(){return new hle({type:"readonly",innerType:this})},describe(e){const t=this.clone();return Qse.add(t,{description:e}),t},meta(...e){if(0===e.length)return Qse.get(this);const t=this.clone();return Qse.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get:()=>Qse.get(e)?.description,configurable:!0}),e)),wae=Pw("_ZodString",(e,t)=>{Mie.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n)=>{const r=n;r.type="string";const{minimum:o,maximum:i,format:s,patterns:a,contentEncoding:l}=e._zod.bag;if("number"==typeof o&&(r.minLength=o),"number"==typeof i&&(r.maxLength=i),s&&(r.format=eae[s]??s,""===r.format&&delete r.format,"time"===s&&delete r.format),l&&(r.contentEncoding=l),a&&a.size>0){const e=[...a];1===e.length?r.pattern=e[0].source:e.length>1&&(r.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}})(e,t,n);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,vae(e,"_ZodString",{regex(...e){return this.check(function(e,t){return new Aie({check:"string_format",format:"regex",...ox(t),pattern:e})}(...e))},includes(...e){return this.check(function(e,t){return new fie({check:"string_format",format:"includes",...ox(t),includes:e})}(...e))},startsWith(...e){return this.check(function(e,t){return new mie({check:"string_format",format:"starts_with",...ox(t),prefix:e})}(...e))},endsWith(...e){return this.check(function(e,t){return new gie({check:"string_format",format:"ends_with",...ox(t),suffix:e})}(...e))},min(...e){return this.check(Vse(...e))},max(...e){return this.check(qse(...e))},length(...e){return this.check(Kse(...e))},nonempty(...e){return this.check(Vse(1,...e))},lowercase(e){return this.check(function(e){return new hie({check:"string_format",format:"lowercase",...ox(e)})}(e))},uppercase(e){return this.check(function(e){return new pie({check:"string_format",format:"uppercase",...ox(e)})}(e))},trim(){return this.check(Wse(e=>e.trim()))},normalize(...e){return this.check(function(e){return Wse(t=>t.normalize(e))}(...e))},toLowerCase(){return this.check(Wse(e=>e.toLowerCase()))},toUpperCase(){return this.check(Wse(e=>e.toUpperCase()))},slugify(){return this.check(Wse(e=>function(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}(e)))}})}),xae=Pw("ZodString",(e,t)=>{Mie.init(e,t),wae.init(e,t),e.email=t=>e.check(function(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ox(t)})}(Cae,t)),e.url=t=>e.check(function(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ox(t)})}(jae,t)),e.jwt=t=>e.check(function(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ox(t)})}(Hae,t)),e.emoji=t=>e.check(function(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ox(t)})}(Eae,t)),e.guid=t=>e.check(Hse(Bae,t)),e.uuid=t=>e.check(function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ox(t)})}(Sae,t)),e.uuidv4=t=>e.check(function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ox(t)})}(Sae,t)),e.uuidv6=t=>e.check(function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ox(t)})}(Sae,t)),e.uuidv7=t=>e.check(function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ox(t)})}(Sae,t)),e.nanoid=t=>e.check(function(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ox(t)})}(Nae,t)),e.guid=t=>e.check(Hse(Bae,t)),e.cuid=t=>e.check(function(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ox(t)})}(Iae,t)),e.cuid2=t=>e.check(function(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ox(t)})}(Fae,t)),e.ulid=t=>e.check(function(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ox(t)})}(Tae,t)),e.base64=t=>e.check(function(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ox(t)})}(Rae,t)),e.base64url=t=>e.check(function(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ox(t)})}(zae,t)),e.xid=t=>e.check(function(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ox(t)})}(Lae,t)),e.ksuid=t=>e.check(function(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ox(t)})}(Pae,t)),e.ipv4=t=>e.check(function(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ox(t)})}(Mae,t)),e.ipv6=t=>e.check(function(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ox(t)})}(Oae,t)),e.cidrv4=t=>e.check(function(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ox(t)})}(Dae,t)),e.cidrv6=t=>e.check(function(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ox(t)})}(Uae,t)),e.e164=t=>e.check(function(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ox(t)})}(Qae,t)),e.datetime=t=>e.check(function(e){return function(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ox(t)})}(nae,e)}(t)),e.date=t=>e.check(function(e){return function(e,t){return new e({type:"string",format:"date",check:"string_format",...ox(t)})}(rae,e)}(t)),e.time=t=>e.check(function(e){return function(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ox(t)})}(oae,e)}(t)),e.duration=t=>e.check(function(e){return function(e,t){return new e({type:"string",format:"duration",check:"string_format",...ox(t)})}(iae,e)}(t))});function kae(e){return function(e,t){return new e({type:"string",...ox(t)})}(xae,e)}const _ae=Pw("ZodStringFormat",(e,t)=>{Oie.init(e,t),wae.init(e,t)}),Cae=Pw("ZodEmail",(e,t)=>{Rie.init(e,t),_ae.init(e,t)}),Bae=Pw("ZodGUID",(e,t)=>{Die.init(e,t),_ae.init(e,t)}),Sae=Pw("ZodUUID",(e,t)=>{Uie.init(e,t),_ae.init(e,t)}),jae=Pw("ZodURL",(e,t)=>{zie.init(e,t),_ae.init(e,t)}),Eae=Pw("ZodEmoji",(e,t)=>{Qie.init(e,t),_ae.init(e,t)}),Nae=Pw("ZodNanoID",(e,t)=>{Hie.init(e,t),_ae.init(e,t)}),Iae=Pw("ZodCUID",(e,t)=>{qie.init(e,t),_ae.init(e,t)}),Fae=Pw("ZodCUID2",(e,t)=>{Vie.init(e,t),_ae.init(e,t)}),Tae=Pw("ZodULID",(e,t)=>{Kie.init(e,t),_ae.init(e,t)}),Lae=Pw("ZodXID",(e,t)=>{Wie.init(e,t),_ae.init(e,t)}),Pae=Pw("ZodKSUID",(e,t)=>{Gie.init(e,t),_ae.init(e,t)}),Mae=Pw("ZodIPv4",(e,t)=>{Jie.init(e,t),_ae.init(e,t)}),Oae=Pw("ZodIPv6",(e,t)=>{ese.init(e,t),_ae.init(e,t)}),Dae=Pw("ZodCIDRv4",(e,t)=>{tse.init(e,t),_ae.init(e,t)}),Uae=Pw("ZodCIDRv6",(e,t)=>{nse.init(e,t),_ae.init(e,t)}),Rae=Pw("ZodBase64",(e,t)=>{ose.init(e,t),_ae.init(e,t)}),zae=Pw("ZodBase64URL",(e,t)=>{ise.init(e,t),_ae.init(e,t)}),Qae=Pw("ZodE164",(e,t)=>{sse.init(e,t),_ae.init(e,t)}),Hae=Pw("ZodJWT",(e,t)=>{ase.init(e,t),_ae.init(e,t)}),qae=Pw("ZodBoolean",(e,t)=>{lse.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t,n)=>{n.type="boolean"})(0,0,t)});function Vae(e){return function(e,t){return new e({type:"boolean",...ox(t)})}(qae,e)}const Kae=Pw("ZodUnknown",(e,t)=>{cse.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{}});function Wae(){return new Kae({type:"unknown"})}const Gae=Pw("ZodNever",(e,t)=>{use.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t,n)=>{n.not={}})(0,0,t)});const $ae=Pw("ZodArray",(e,t)=>{Ase.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=n,i=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;"number"==typeof s&&(o.minItems=s),"number"==typeof a&&(o.maxItems=a),o.type="array",o.items=$se(i.element,t,{...r,path:[...r.path,"items"]})})(e,t,n,r),e.element=t.element,vae(e,"ZodArray",{min(e,t){return this.check(Vse(e,t))},nonempty(e){return this.check(Vse(1,e))},max(e,t){return this.check(qse(e,t))},length(e,t){return this.check(Kse(e,t))},unwrap(){return this.element}})});const Yae=Pw("ZodObject",(e,t)=>{gse.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=n,i=e._zod.def;o.type="object",o.properties={};const s=i.shape;for(const e in s)o.properties[e]=$se(s[e],t,{...r,path:[...r.path,"properties",e]});const a=new Set(Object.keys(s)),l=new Set([...a].filter(e=>{const n=i.shape[e]._zod;return"input"===t.io?void 0===n.optin:void 0===n.optout}));l.size>0&&(o.required=Array.from(l)),"never"===i.catchall?._zod.def.type?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=$se(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):"output"===t.io&&(o.additionalProperties=!1)})(e,t,n,r),Kw(e,"shape",()=>t.shape),vae(e,"ZodObject",{keyof(){return function(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new ele({type:"enum",entries:n,...ox(t)})}(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:Wae()})},loose(){return this.clone({...this._zod.def,catchall:Wae()})},strict(){return this.clone({...this._zod.def,catchall:function(e,t){return new e({type:"never",...ox(t)})}(Gae,e)});var e},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return function(e,t){if(!Jw(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const n=e._zod.def.shape;for(const e in t)if(void 0!==Object.getOwnPropertyDescriptor(n,e))throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=Gw(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return Ww(this,"shape",n),n}});return rx(e,r)}(this,e)},safeExtend(e){return function(e,t){if(!Jw(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Gw(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return Ww(this,"shape",n),n}});return rx(e,n)}(this,e)},merge(e){return function(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=Gw(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return Ww(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return rx(e,n)}(this,e)},pick(e){return function(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const o=Gw(e._zod.def,{get shape(){const e={};for(const r in t){if(!(r in n.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return Ww(this,"shape",e),e},checks:[]});return rx(e,o)}(this,e)},omit(e){return function(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const o=Gw(e._zod.def,{get shape(){const r={...e._zod.def.shape};for(const e in t){if(!(e in n.shape))throw new Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return Ww(this,"shape",r),r},checks:[]});return rx(e,o)}(this,e)},partial(...e){return function(e,t,n){const r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const o=Gw(t._zod.def,{get shape(){const r=t._zod.def.shape,o={...r};if(n)for(const t in n){if(!(t in r))throw new Error(`Unrecognized key: "${t}"`);n[t]&&(o[t]=e?new e({type:"optional",innerType:r[t]}):r[t])}else for(const t in r)o[t]=e?new e({type:"optional",innerType:r[t]}):r[t];return Ww(this,"shape",o),o},checks:[]});return rx(t,o)}(nle,this,e[0])},required(...e){return function(e,t,n){const r=Gw(t._zod.def,{get shape(){const r=t._zod.def.shape,o={...r};if(n)for(const t in n){if(!(t in o))throw new Error(`Unrecognized key: "${t}"`);n[t]&&(o[t]=new e({type:"nonoptional",innerType:r[t]}))}else for(const t in r)o[t]=new e({type:"nonoptional",innerType:r[t]});return Ww(this,"shape",o),o}});return rx(t,r)}(cle,this,e[0])}})});function Zae(e,t){const n={type:"object",shape:e??{},...ox(t)};return new Yae(n)}const Xae=Pw("ZodUnion",(e,t)=>{vse.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.def,i=!1===o.inclusive,s=o.options.map((e,n)=>$se(e,t,{...r,path:[...r.path,i?"oneOf":"anyOf",n]}));i?n.oneOf=s:n.anyOf=s})(e,t,n,r),e.options=t.options});const Jae=Pw("ZodIntersection",(e,t)=>{bse.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.def,i=$se(o.left,t,{...r,path:[...r.path,"allOf",0]}),s=$se(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=e=>"allOf"in e&&1===Object.keys(e).length,l=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];n.allOf=l})(e,t,n,r)}),ele=Pw("ZodEnum",(e,t)=>{kse.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n)=>{const r=Rw(e._zod.def.entries);r.every(e=>"number"==typeof e)&&(n.type="number"),r.every(e=>"string"==typeof e)&&(n.type="string"),n.enum=r})(e,0,n),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{const o={};for(const r of e){if(!n.has(r))throw new Error(`Key ${r} not found in enum`);o[r]=t.entries[r]}return new ele({...t,checks:[],...ox(r),entries:o})},e.exclude=(e,r)=>{const o={...t.entries};for(const t of e){if(!n.has(t))throw new Error(`Key ${t} not found in enum`);delete o[t]}return new ele({...t,checks:[],...ox(r),entries:o})}});const tle=Pw("ZodTransform",(e,t)=>{_se.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t)=>{if("throw"===t.unrepresentable)throw new Error("Transforms cannot be represented in JSON Schema")})(0,e),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new Ow(e.constructor.name);n.addIssue=r=>{if("string"==typeof r)n.issues.push(dx(r,n.value,t));else{const t=r;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=n.value),t.inst??(t.inst=e),n.issues.push(dx(t))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=o,n.fallback=!0,n)}});const nle=Pw("ZodOptional",(e,t)=>{Bse.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tae(e,t,0,r),e.unwrap=()=>e._zod.def.innerType});function rle(e){return new nle({type:"optional",innerType:e})}const ole=Pw("ZodExactOptional",(e,t)=>{Sse.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tae(e,t,0,r),e.unwrap=()=>e._zod.def.innerType}),ile=Pw("ZodNullable",(e,t)=>{jse.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.def,i=$se(o.innerType,t,r),s=t.seen.get(e);"openapi-3.0"===t.target?(s.ref=o.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function sle(e){return new ile({type:"nullable",innerType:e})}const ale=Pw("ZodDefault",(e,t)=>{Ese.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.def;$se(o.innerType,t,r),t.seen.get(e).ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),lle=Pw("ZodPrefault",(e,t)=>{Ise.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.def;$se(o.innerType,t,r),t.seen.get(e).ref=o.innerType,"input"===t.io&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),cle=Pw("ZodNonOptional",(e,t)=>{Fse.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.def;$se(o.innerType,t,r),t.seen.get(e).ref=o.innerType})(e,t,0,r),e.unwrap=()=>e._zod.def.innerType}),ule=Pw("ZodCatch",(e,t)=>{Lse.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.def;let i;$se(o.innerType,t,r),t.seen.get(e).ref=o.innerType;try{i=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),dle=Pw("ZodPipe",(e,t)=>{Pse.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.def,i=o.in._zod.traits.has("$ZodTransform"),s="input"===t.io?i?o.out:o.in:o.out;$se(s,t,r),t.seen.get(e).ref=s})(e,t,0,r),e.in=t.in,e.out=t.out});function Ale(e,t){return new dle({type:"pipe",in:e,out:t})}const hle=Pw("ZodReadonly",(e,t)=>{Ose.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.def;$se(o.innerType,t,r),t.seen.get(e).ref=o.innerType,n.readOnly=!0})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),ple=Pw("ZodCustom",(e,t)=>{Use.init(e,t),bae.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t)=>{if("throw"===t.unrepresentable)throw new Error("Custom types cannot be represented in JSON Schema")})(0,e)}),fle=Zae({name:kae().min(1,{message:(0,pt.__)("Please enter a category name","surecookie")}).trim(),description:kae().default("")}),mle=({category:e,onEdit:t,onDelete:n,isUnused:r})=>{const o=[{icon:(0,yt.jsx)(Boe,{}),onClick:()=>t(e),tooltip:(0,pt.__)("Edit","surecookie")},{icon:(0,yt.jsx)(fU,{}),onClick:()=>n(e),isExcluded:Go.includes(e.id),isDestructive:!0,tooltip:(0,pt.__)("Delete","surecookie")}];return(0,yt.jsx)("div",{className:"bg-background-primary border border-border-subtle rounded-lg pl-4 pr-3 py-3 shadow-sm",children:(0,yt.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,yt.jsxs)("div",{className:"space-y-0.5",children:[(0,yt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,yt.jsx)(Iw,{as:"h5",size:14,weight:500,color:"primary",children:e.name}),r&&(0,yt.jsx)(uw,{label:(0,pt.__)("Not In Use","surecookie"),size:"xs",type:"rounded",variant:"neutral"})]}),(0,yt.jsx)(Iw,{as:"p",size:12,weight:400,color:"help",children:e.description})]}),(0,yt.jsx)("div",{className:"inline-flex gap-2 items-center [&_svg]:size-3.5",children:o.map((e,t)=>e.isExcluded?(0,yt.jsx)(ct.Fragment,{},t):(0,yt.jsx)(e_,{content:e.tooltip,children:(0,yt.jsx)(Fa,{className:jo("p-2",!e.isDestructive&&"text-icon-secondary"),variant:"ghost",size:"xs",icon:e.icon,onClick:e.onClick,destructive:e.isDestructive})},t))})]})})},gle=({categories:e,onEdit:t,onDelete:n,unusedIds:r})=>0===e.length?(0,yt.jsx)("div",{className:"bg-gray-50 border border-gray-200 rounded-lg p-8 text-center",children:(0,yt.jsx)(Iw,{as:"p",size:14,color:"tertiary",children:(0,pt.__)('No cookie categories found. Click "Add New Category" to create one.',"surecookie")})}):(0,yt.jsx)("div",{className:"space-y-4",children:e.map(e=>(0,yt.jsx)(mle,{category:e,onEdit:t,onDelete:n,isUnused:r.has(e.id)},e.id))}),yle=({isOpen:e,setIsOpen:t,categories:n,onAddCategory:r,onEditCategory:o,onDeleteCategory:i,screen:s="list",categoryFormMode:a="add",formData:l,errors:c,register:u,setFocus:d,onUpdate:A,onSave:h,onCancel:p,isSaving:f=!1,categoriesInUse:m=[],hideUnusedCategories:g=!1,onHideUnusedCategoriesChange:y})=>{const v="form"===s,b=new Set(g?n.filter(e=>((e,t)=>!(!Array.isArray(t)||!e||e.required||t.includes(e.id)))(e,m)).map(e=>e.id):[]),w="edit"===a,x=v?w?(0,pt.__)("Edit Category","surecookie"):(0,pt.__)("Add New Category","surecookie"):(0,pt.__)("Manage Categories","surecookie"),k=(0,ct.useRef)(s);return(0,ct.useEffect)(()=>{"form"===s&&"form"!==k.current&&setTimeout(()=>{"function"==typeof d&&d("name")},200),k.current=s},[s,d]),(0,yt.jsxs)(Hx,{design:"simple",exitOnEsc:!0,position:"right",scrollLock:!0,setOpen:t,open:e,transitionDuration:.15,className:"z-999999",children:[(0,yt.jsxs)(Hx.Panel,{className:"overflow-y-auto max-h-full",children:[(0,yt.jsxs)(Hx.Header,{className:"border-b border-border-subtle",children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,yt.jsx)(Hx.Title,{children:x}),(0,yt.jsx)(Hx.CloseButton,{})]}),!v&&(0,yt.jsx)(Iw,{as:"p",size:12,color:"tertiary",children:(0,pt.__)("Manage cookie categories that appear in the privacy preferences modal","surecookie")})]}),(0,yt.jsxs)(Hx.Body,{className:"overflow-x-hidden py-6 px-5 space-y-4 flex-none",children:[!v&&(0,yt.jsx)("div",{className:"bg-background-primary border border-border-subtle rounded-lg p-4 shadow-sm",children:(0,yt.jsx)(Zb,{"aria-label":(0,pt.__)("Hide Unused Categories","surecookie"),id:"surecookie-hide-unused-categories",label:{heading:(0,pt.__)("Hide Unused Categories","surecookie"),description:(0,pt.__)("Categories with no cookies, scripts, or services are hidden from the preferences modal. A category reappears automatically when usage changes, and is never removed from the consent record.","surecookie")},onChange:y,size:"sm",value:g})}),v?(0,yt.jsx)(Poe,{formData:l,errors:c,register:u,onUpdate:A}):(0,yt.jsx)(gle,{categories:n,onEdit:o,onDelete:i,unusedIds:b})]}),(0,yt.jsx)(Hx.Footer,{className:"mt-0 justify-start pt-2 w-full",children:v?(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(Fa,{size:"sm",onClick:()=>{"function"!=typeof h||f||h()},variant:"primary",icon:f?(0,yt.jsx)(Tw,{variant:"secondary"}):null,iconPosition:"left",children:w?(0,pt.__)("Save","surecookie"):(0,pt.__)("Add Category","surecookie")},"save"),(0,yt.jsx)(Fa,{size:"sm",onClick:()=>{"function"!=typeof p||f||p()},variant:"outline",children:(0,pt.__)("Cancel","surecookie")},"cancel")]}):(0,yt.jsx)(Fa,{size:"sm",onClick:r,variant:"outline",icon:(0,yt.jsx)(koe,{}),className:"w-full",children:(0,pt.__)("Add New Category","surecookie")},"add")})]}),(0,yt.jsx)(Hx.Backdrop,{})]})},vle=_b("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),ble=({search:e,onSearchChange:t,categoryOptions:n=[],activeCategory:r,onCategoryChange:o})=>(0,yt.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center w-full sc-child-w-full",children:[(0,yt.jsx)(j_,{className:"w-full sm:flex-1",size:"md",type:"text",value:e,onChange:t,placeholder:(0,pt.__)("Search services…","surecookie"),"aria-label":(0,pt.__)("Search services","surecookie")}),n.length>1&&(0,yt.jsx)("div",{className:"w-full shrink-0 sm:w-56",children:(0,yt.jsxs)(lk,{value:r,onChange:o,size:"md",children:[(0,yt.jsx)(lk.Button,{id:"known-services-category",render:e=>n.find(t=>t.value===e)?.label??(0,pt.__)("All Categories","surecookie")}),(0,yt.jsx)(lk.Options,{children:n.map(e=>(0,yt.jsx)(lk.Option,{value:e.value,children:e.label},e.value))})]})})]}),wle=_b("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),xle=({className:e=""})=>(0,yt.jsxs)("span",{className:jo("inline-flex items-center gap-1 rounded-full border border-solid border-brand-primary-200 bg-brand-background-50 px-2 py-0.5 text-xs font-medium text-brand-primary-600",e),children:[(0,yt.jsx)(wle,{className:"h-3 w-3","aria-hidden":"true"}),(0,pt.__)("Pro","surecookie")]}),kle=(e,t=[])=>{const n=t.find(t=>t.id===e);return n?.name?n.name:e?e.split(/[-_]/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):""},_le=e=>{const t=e?.cookieCount||0,n=e?.iframeCount||0,r=e?.scriptCount||0,o=[(0,pt.sprintf)(/* translators: %d: number of cookies */ /* translators: %d: number of cookies */
33 (0,pt._n)("%d cookie","%d cookies",t,"surecookie"),t)];n&&o.push((0,pt.sprintf)(/* translators: %d: number of iframes */ /* translators: %d: number of iframes */
34 (0,pt._n)("%d iframe","%d iframes",n,"surecookie"),n)),r&&o.push((0,pt.sprintf)(/* translators: %d: number of scripts */ /* translators: %d: number of scripts */
35 (0,pt._n)("%d script","%d scripts",r,"surecookie"),r));const i=e?.styleCount||0;i&&o.push((0,pt.sprintf)(/* translators: %d: number of stylesheets */ /* translators: %d: number of stylesheets */
36 (0,pt._n)("%d stylesheet","%d stylesheets",i,"surecookie"),i));const s=e?.unblockableCount||0;return s&&o.push((0,pt.sprintf)(/* translators: %d: number of resources SureCookie cannot block */ /* translators: %d: number of resources SureCookie cannot block */
37 (0,pt._n)("%d resource that cannot be blocked","%d resources that cannot be blocked",s,"surecookie"),s)),o.join(" · ")},Cle=e=>"essential"===e?.category,Ble=e=>!e?.blockable&&Number(e?.unblockableCount)>0,Sle=e=>Cle(e)?(0,pt.__)("This service is now managed. It loads before consent.","surecookie"):e?.blockable?(0,pt.__)("This service is now managed. It stays blocked before consent.","surecookie"):Ble(e)?(0,pt.__)("This service is now managed. SureCookie cannot block it, so it still loads before consent.","surecookie"):(0,pt.__)("This service is now managed.","surecookie"),jle=({service:e,state:t="available",locked:n=!1,isBusy:r=!1,onAdd:o,onRemove:i,categories:s=[]})=>{const a="installed"===t,l="detected"===t,c=(e=>{const t=String(e??"").trim();return t.replace(/\s+cookies$/i,"").trim()||t})(kle(e.category,s));return(0,yt.jsxs)("div",{className:"flex h-full flex-col gap-3 rounded-lg border border-solid border-border-subtle p-4",children:[(0,yt.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,yt.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,yt.jsx)(Iw,{as:"h4",size:14,weight:600,color:"primary",className:"m-0 truncate",children:e.label}),e.description&&(0,yt.jsx)(Iw,{as:"p",size:13,color:"secondary",className:"m-0 line-clamp-2",children:e.description})]}),n?(0,yt.jsx)(xle,{}):a?(0,yt.jsx)(uw,{label:(0,pt.__)("Added","surecookie"),size:"xs",type:"pill",variant:"green"}):l?(0,yt.jsx)(uw,{label:(0,pt.__)("Detected","surecookie"),size:"xs",type:"pill",variant:"yellow"}):null]}),(0,yt.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[c&&(0,yt.jsx)(uw,{label:c,size:"xs",type:"pill",variant:"blue"}),(0,yt.jsx)(Iw,{as:"span",size:12,color:"tertiary",children:_le(e)})]}),a?(0,yt.jsx)("div",{className:"mt-auto",children:(0,yt.jsx)(Fa,{size:"xs",variant:"outline",onClick:()=>i?.(e.slug),disabled:r,icon:r?(0,yt.jsx)(Tw,{variant:"secondary"}):null,iconPosition:"left",children:(0,pt.__)("Remove","surecookie")})}):n?null:(0,yt.jsx)("div",{className:"mt-auto",children:(0,yt.jsx)(Fa,{size:"xs",variant:"primary",onClick:()=>o?.(e.slug),disabled:r,icon:(0,yt.jsx)(koe,{}),iconPosition:"left",children:(0,pt.__)("Add Service","surecookie")})})]})},Ele=({services:e=[],getState:t,isLocked:n,busySlug:r=null,onAdd:o,onRemove:i,categories:s=[],columns:a=2})=>{if(!e.length)return(0,yt.jsx)("div",{className:"flex items-center justify-center py-10",children:(0,yt.jsx)(Iw,{as:"p",size:14,color:"tertiary",children:(0,pt.__)("No services match your search.","surecookie")})});const l=3===a?"sm:grid-cols-2 lg:grid-cols-3":"sm:grid-cols-2";return(0,yt.jsx)("div",{className:`grid grid-cols-1 gap-3 ${l}`,children:e.map(e=>(0,yt.jsx)(jle,{service:e,state:t(e.slug),locked:n(e),isBusy:r===e.slug,onAdd:o,onRemove:i,categories:s},e.slug))})},Nle=({service:e,categories:t=[],hasCategories:n=!0})=>{if(!e)return null;const r=Array.isArray(e.cookies)?e.cookies:[],o=((e,t=[])=>{if(!e)return null;if(Cle(e))return{color:"info",title:(0,pt.__)("Loads before consent","surecookie"),message:(0,pt.sprintf)(/* translators: %s: service name (e.g. Stripe) */ /* translators: %s: service name (e.g. Stripe) */
38 (0,pt.__)("%s is a necessary service, so it loads before consent - its cookies can be set without consent.","surecookie"),e.label)};if(e.blockable){const n=kle(e.category,t);return{color:"info",title:(0,pt.__)('Blocked When "Block Scripts until Consent" Is On',"surecookie"),message:(0,pt.sprintf)(/* translators: %1$s: service name; %2$s: consent category name */ /* translators: %1$s: service name; %2$s: consent category name */
39 (0,pt.__)("When blocking is on, %1$s is blocked until visitors accept “%2$s”, so a scan never sees these cookies. Declaring them here keeps your cookie policy complete.","surecookie"),e.label,n)}}return Ble(e)?{color:"warning",title:(0,pt.__)("Not blocked before consent","surecookie"),message:(0,pt.sprintf)(/* translators: %s: service name (e.g. Google Fonts) */ /* translators: %s: service name (e.g. Google Fonts) */
40 (0,pt.__)("%s is delivered as an image. Blocking rewrites script, iframe, embed, object and link tags only, so this service loads before consent. Self-host it if that matters for your compliance.","surecookie"),e.label)}:null})(e,t),i=[];return i.push((0,pt.sprintf)(/* translators: %d: number of cookies */ /* translators: %d: number of cookies */
41 (0,pt._n)("%d cookie added to your cookie policy","%d cookies added to your cookie policy",e.cookieCount||0,"surecookie"),e.cookieCount||0)),e.iframeCount&&i.push((0,pt.sprintf)(/* translators: %d: number of iframes */ /* translators: %d: number of iframes */
42 (0,pt._n)("%d embed blocked before consent","%d embeds blocked before consent",e.iframeCount,"surecookie"),e.iframeCount)),e.scriptCount&&i.push((0,pt.sprintf)(/* translators: %d: number of scripts */ /* translators: %d: number of scripts */
43 (0,pt._n)("%d script blocked before consent","%d scripts blocked before consent",e.scriptCount,"surecookie"),e.scriptCount)),e.styleCount&&i.push((0,pt.sprintf)(/* translators: %d: number of stylesheets */ /* translators: %d: number of stylesheets */
44 (0,pt._n)("%d stylesheet blocked before consent","%d stylesheets blocked before consent",e.styleCount,"surecookie"),e.styleCount)),(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsx)("div",{className:"rounded-md border border-solid border-border-subtle p-3",children:(0,yt.jsx)("ul",{className:"m-0 list-none space-y-2 p-0",children:i.map(e=>(0,yt.jsxs)("li",{className:"flex items-start gap-2",children:[(0,yt.jsx)(dk,{className:"mt-0.5 h-4 w-4 shrink-0 text-icon-success","aria-hidden":"true"}),(0,yt.jsx)(Iw,{as:"span",size:14,color:"primary",children:e})]},e))})}),o&&(0,yt.jsx)(pk,{color:o.color,showIcon:!0,title:o.title,message:o.message}),!n&&(0,yt.jsx)(pk,{color:"warning",showIcon:!0,title:(0,pt.__)("No categories available","surecookie"),message:(0,pt.__)("Create a cookie category first - new cookies land in Uncategorized until then.","surecookie")}),r.length>0&&(0,yt.jsx)("div",{className:"space-y-2",children:r.map(e=>{const n=kle(e.category,t);return(0,yt.jsx)("div",{className:"flex items-start gap-3 rounded-md border border-solid border-border-subtle p-3",children:(0,yt.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,yt.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,yt.jsx)(Iw,{as:"span",size:14,weight:600,color:"primary",className:"font-mono",children:e.name}),n&&(0,yt.jsx)(uw,{label:n,size:"xs",type:"pill",variant:"blue"})]}),e.purpose&&(0,yt.jsx)(Iw,{as:"p",size:13,color:"secondary",className:"m-0",children:e.purpose}),(0,yt.jsx)(Iw,{as:"p",size:12,color:"tertiary",className:"m-0",children:[e.provider,(r=e.duration_days,r?(0,pt.sprintf)(/* translators: %d: number of days */ /* translators: %d: number of days */
45 (0,pt._n)("%d day","%d days",r,"surecookie"),r):(0,pt.__)("Session","surecookie"))].filter(Boolean).join(" · ")})]})},`${e.name}-${e.domain}`);var r})})]})},Ile=Boolean(window?.surecookieAdminData?.is_pro_active),Fle=({enabled:e=!0,categories:t=[],filter:n="all"}={})=>{const{data:r,isLoading:o,isError:i}=(({enabled:e=!0}={})=>Sn({queryKey:Nn.knownServices.list(),queryFn:async()=>{const e=await Fn()({method:"GET",path:"/surecookie/v1/known-services"});return{services:Array.isArray(e?.services)?e.services:[],installed:Array.isArray(e?.installed)?e.installed:[],detected:Array.isArray(e?.detected)?e.detected:[]}},staleTime:6e5,enabled:e,retry:1}))({enabled:e}),s=(()=>{const e=bt();return En({mutationFn:async e=>{const t=await(e=>Fn()({method:"POST",path:`/surecookie/v1/known-services/${e}`}))(e);if(!t?.success)throw new Error(t?.message||(0,pt.__)("Failed to add service","surecookie"));return t},onSuccess:()=>{e.invalidateQueries({queryKey:Nn.knownServices.all}),e.invalidateQueries({queryKey:Nn.scannedResources.all}),Zn(e)},onError:e=>{At.error((0,pt.__)("Failed to add service","surecookie"),{description:e.message})}})})(),a=(()=>{const e=bt();return En({mutationFn:async e=>{const t=await(e=>Fn()({method:"DELETE",path:`/surecookie/v1/known-services/${e}`}))(e);if(!t?.success)throw new Error(t?.message||(0,pt.__)("Failed to remove service","surecookie"));return t},onSuccess:()=>{e.invalidateQueries({queryKey:Nn.knownServices.all}),e.invalidateQueries({queryKey:Nn.scannedResources.all}),Zn(e),At.success((0,pt.__)("Service removed","surecookie"))},onError:e=>{At.error((0,pt.__)("Failed to remove service","surecookie"),{description:e.message})}})})(),l=r?.services??[],c=(0,ct.useMemo)(()=>new Set((r?.installed??[]).map(e=>e.slug)),[r]),u=(0,ct.useMemo)(()=>new Set(r?.detected??[]),[r]),[d,A]=(0,ct.useState)(""),[h,p]=(0,ct.useState)("all"),[f,m]=(0,ct.useState)(""),[g,y]=(0,ct.useState)(""),v=t.length>0,b=(0,ct.useCallback)(e=>(0,ht.applyFilters)("surecookie.knownServices.isServiceLocked",Boolean(e.pro)&&!Ile,e),[]),w=(0,ct.useCallback)(e=>c.has(e)?"installed":u.has(e)?"detected":"available",[c,u]),x=(0,ct.useMemo)(()=>{const e=new Set,t=[{value:"all",label:(0,pt.__)("All Categories","surecookie")}];return l.forEach(n=>{var r;n.category&&!e.has(n.category)&&(e.add(n.category),t.push({value:n.category,label:(r=n.category,r?r.split(/[-_]/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):"")}))}),t},[l]),k=(0,ct.useMemo)(()=>{const e=d.trim().toLowerCase(),t=l.filter(t=>!("cookies"===n&&!Number(t.cookieCount))&&!("blockable"===n&&!t.blockable)&&("all"===h||t.category===h)&&(!e||t.label?.toLowerCase().includes(e)||t.description?.toLowerCase().includes(e)||t.slug?.toLowerCase().includes(e))),r=e=>"installed"===w(e.slug)?0:b(e)?2:1,o=e=>Number(e.cookieCount)>0?0:1;return t.sort((e,t)=>r(e)-r(t)||o(e)-o(t))},[l,d,h,n,b,w]),_=(0,ct.useMemo)(()=>l.some(e=>b(e)),[l]),C=(0,ct.useMemo)(()=>l.find(e=>e.slug===f)??null,[l,f]);return{isLoading:o,isError:i,services:l,filteredServices:k,getState:w,isLocked:b,hasLockedServices:_,isProActive:Ile,search:d,setSearch:A,activeCategory:h,setActiveCategory:p,categoryOptions:x,hasCategories:v,activeSlug:f,activeService:C,selectService:e=>m(e),clearSelection:()=>m(""),reset:()=>{A(""),p("all"),m("")},install:async(e=C)=>{if(!e||s.isPending)return null;const t=await s.mutateAsync(e.slug),n=t?.cookie_count??0;return At.success((0,pt.sprintf)(/* translators: %s: service name (e.g. YouTube) */ /* translators: %s: service name (e.g. YouTube) */
46 (0,pt.__)("Added %s","surecookie"),e.label),{description:n>0?(0,pt.sprintf)(/* translators: %d: number of cookies declared */ /* translators: %d: number of cookies declared */
47 (0,pt._n)("%d cookie was added to your cookie policy.","%d cookies were added to your cookie policy.",n,"surecookie"),n):Sle(e)}),t},remove:async e=>{y(e);try{await a.mutateAsync(e)}catch{}finally{y("")}},installPending:s.isPending,removingSlug:g}},Tle=({isOpen:e,setIsOpen:t,categories:n=[],initialServiceSlug:r="",filter:o="all"})=>{const i=Fle({enabled:e,categories:n,filter:o}),{isLoading:s,isError:a,filteredServices:l,getState:c,isLocked:u,hasLockedServices:d,isProActive:A,search:h,setSearch:p,activeCategory:f,setActiveCategory:m,categoryOptions:g,hasCategories:y,activeService:v,selectService:b,clearSelection:w,reset:x,install:k,remove:_,installPending:C,removingSlug:B}=i,[S,j]=(0,ct.useState)("browse");(0,ct.useEffect)(()=>{e&&(x(),r?(b(r),j("preview")):j("browse"))},[e]);const E="preview"===S&&v,N=E&&u(v);return(0,yt.jsxs)(fw,{open:e,setOpen:e=>{e||C||t(!1)},children:[(0,yt.jsx)(fw.Backdrop,{}),(0,yt.jsxs)(fw.Panel,{className:"w-[960px] max-w-[95vw] gap-4",children:[(0,yt.jsxs)(fw.Header,{children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,yt.jsx)(fw.Title,{children:E?(0,pt.sprintf)(/* translators: %s: service name */ /* translators: %s: service name */
48 (0,pt.__)("Add %s","surecookie"),v.label):(0,pt.__)("Add from a Known Service","surecookie")}),(0,yt.jsx)(fw.CloseButton,{type:"button"})]}),(0,yt.jsx)(fw.Description,{children:E?(0,pt.__)("Review what this adds to your cookie policy, then confirm.","surecookie"):(0,pt.__)("Quickly add popular services like YouTube or Google Analytics in one click. Perfect for scripts that scanners can't detect before consent - ensuring your cookie policy stays complete.","surecookie")})]}),(0,yt.jsx)(fw.Body,{className:"space-y-4",children:s?(0,yt.jsx)("div",{className:"flex items-center justify-center py-10",children:(0,yt.jsx)(Tw,{})}):a?(0,yt.jsx)("div",{className:"flex items-center justify-center py-10",children:(0,yt.jsx)(Iw,{as:"p",size:14,color:"tertiary",children:(0,pt.__)("Could not load the services catalog. Please try again.","surecookie")})}):E?(0,yt.jsxs)("div",{className:"max-h-[60vh] space-y-4 overflow-y-auto",children:[N&&(0,yt.jsx)(Wk,{title:(0,pt.__)("This is a Pro service","surecookie"),description:(0,pt.__)("Upgrade to add this service and declare its cookies in one click.","surecookie"),utmContent:"known_services"}),(0,yt.jsx)(Nle,{service:v,categories:n,hasCategories:y})]}):(0,yt.jsxs)(yt.Fragment,{children:[!A&&d&&(0,yt.jsx)(Wk,{title:(0,pt.__)("Unlock Every Tracking Service","surecookie"),description:(0,pt.__)("Free covers the most common services. Upgrade to add any service in the catalog in one click.","surecookie"),utmContent:"known_services"}),(0,yt.jsx)(ble,{search:h,onSearchChange:p,categoryOptions:g,activeCategory:f,onCategoryChange:m}),(0,yt.jsx)("div",{className:"max-h-[55vh] overflow-y-auto !mb-4",children:(0,yt.jsx)(Ele,{services:l,getState:c,isLocked:u,busySlug:B,onAdd:e=>{b(e),j("preview")},onRemove:_,categories:n,columns:3})})]})}),E&&(0,yt.jsxs)(fw.Footer,{children:[(0,yt.jsx)(Fa,{variant:"outline",onClick:()=>j("browse"),disabled:C,icon:(0,yt.jsx)(vle,{}),iconPosition:"left",children:(0,pt.__)("Back","surecookie")}),!N&&(0,yt.jsx)(Fa,{onClick:async()=>{if(v&&!u(v))try{await k(),w(),j("browse")}catch(e){}},disabled:C,icon:C?(0,yt.jsx)(Tw,{variant:"secondary"}):(0,yt.jsx)(koe,{}),iconPosition:"left",children:(0,pt.__)("Confirm Add","surecookie")})]})]})]})},Lle=({service:e,categories:t=[],hasCategories:n=!0,isPending:r=!1,onConfirm:o,onClose:i})=>e?(0,yt.jsxs)(fw,{open:!!e,setOpen:e=>{e||r||i()},children:[(0,yt.jsx)(fw.Backdrop,{}),(0,yt.jsxs)(fw.Panel,{className:"w-[560px] max-w-[95vw] gap-4",children:[(0,yt.jsxs)(fw.Header,{children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,yt.jsx)(fw.Title,{children:(0,pt.sprintf)(/* translators: %s: service name */ /* translators: %s: service name */
49 (0,pt.__)("Add %s","surecookie"),e.label)}),(0,yt.jsx)(fw.CloseButton,{type:"button"})]}),(0,yt.jsx)(fw.Description,{children:(0,pt.__)("Review what this adds to your cookie policy, then confirm.","surecookie")})]}),(0,yt.jsx)(fw.Body,{className:"space-y-4",children:(0,yt.jsx)(Nle,{service:e,categories:t,hasCategories:n})}),(0,yt.jsxs)(fw.Footer,{children:[(0,yt.jsx)(Fa,{variant:"outline",onClick:i,disabled:r,children:(0,pt.__)("Cancel","surecookie")}),(0,yt.jsx)(Fa,{onClick:o,disabled:r,icon:r?(0,yt.jsx)(Tw,{variant:"secondary"}):(0,yt.jsx)(koe,{}),iconPosition:"left",children:(0,pt.__)("Confirm Add","surecookie")})]})]})]}):null,Ple=()=>{const{data:e=[]}=Jn(),t=Fle({categories:e}),{isLoading:n,isError:r,services:o,filteredServices:i,getState:s,isLocked:a,hasLockedServices:l,isProActive:c,search:u,setSearch:d,activeCategory:A,setActiveCategory:h,categoryOptions:p,hasCategories:f,activeService:m,selectService:g,clearSelection:y,install:v,remove:b,installPending:w,removingSlug:x}=t,k=(0,ct.useMemo)(()=>o.filter(e=>"installed"===s(e.slug)),[o,s]),_=(0,ct.useMemo)(()=>i.filter(e=>"installed"!==s(e.slug)),[i,s]);return(0,yt.jsxs)(n_,{pageTitle:(0,pt.__)("Known Services","surecookie"),pageDescription:(0,pt.__)("Quickly add popular services like YouTube or Google Analytics in one click. Perfect for scripts that scanners can’t detect before consent - ensuring your cookie policy stays complete.","surecookie"),children:[n?(0,yt.jsxs)("div",{className:"p-4 bg-background-secondary rounded-lg animate-pulse",children:[(0,yt.jsx)("div",{className:"h-4 bg-gray-200 rounded w-1/3 mb-4"}),(0,yt.jsx)("div",{className:"h-32 bg-gray-200 rounded"})]}):r?(0,yt.jsx)(pk,{color:"error",showIcon:!0,title:(0,pt.__)("Failed to load services","surecookie"),message:(0,pt.__)("An error occurred while loading services. Please refresh the page to try again.","surecookie")}):(0,yt.jsxs)("div",{className:"space-y-6",children:[!c&&l&&(0,yt.jsx)(Wk,{title:(0,pt.__)("Unlock Every Tracking Service","surecookie"),description:(0,pt.__)("Free covers the most common services. Upgrade to add any service in the catalog in one click.","surecookie"),utmContent:"known_services"}),(0,yt.jsx)(ble,{search:u,onSearchChange:d,categoryOptions:p,activeCategory:A,onCategoryChange:h}),k.length>0&&(0,yt.jsxs)("div",{className:"space-y-2",children:[(0,yt.jsx)(Iw,{size:14,weight:500,color:"primary",children:(0,pt.__)("Installed Services","surecookie")}),(0,yt.jsx)(Ele,{services:k,getState:s,isLocked:a,busySlug:x,onAdd:g,onRemove:b,categories:e,columns:3})]}),(0,yt.jsxs)("div",{className:"space-y-2",children:[(0,yt.jsx)(Iw,{size:14,weight:500,color:"primary",children:(0,pt.__)("Available Services","surecookie")}),(0,yt.jsx)(Ele,{services:_,getState:s,isLocked:a,busySlug:x,onAdd:g,onRemove:b,categories:e,columns:3})]})]}),(0,yt.jsx)(Lle,{service:m,categories:e,hasCategories:f,isPending:w,onConfirm:async()=>{try{await v(),y()}catch(e){}},onClose:y})]})},Mle=Zae({name:kae().min(1,{message:(0,pt.__)("Please enter a cookie name","surecookie")}).trim(),category:kae().min(1,{message:(0,pt.__)("Please select a category","surecookie")}),duration:kae().optional().default(""),provider:kae().optional().default(""),domain:kae().optional().default(""),description:kae().optional().default(""),purpose:kae().optional().default("")}),Ole=()=>{const{getCurrentValue:e,isLoading:t}=si(),n=Kn(),{data:r=[],isLoading:o}=Sn({queryKey:Nn.customCookies.list(),queryFn:async()=>{const e=await Fn()({method:"GET",path:"/surecookie/v1/cookies/custom-cookies"});if(!e.success)throw new Error(e.message||(0,pt.__)("Failed to load custom cookies","surecookie"));return Array.isArray(e.cookies)?e.cookies:Object.values(e.cookies)||[]},staleTime:3e5,retry:2}),{data:i,isLoading:s}=$n(),{data:a=[],isLoading:l}=Jn(),{data:c}=er(),u=c?.inUse??[],[d,A]=(0,ct.useState)(null),h=ob({hide_unused_categories:e("hide_unused_categories")}),p=d??h;(0,ct.useEffect)(()=>{null!==d&&d===h&&A(null)},[d,h]);const f=(0,ct.useCallback)(async e=>{const t=!!e;A(t);try{await n.mutateAsync({hide_unused_categories:t})}catch(e){A(null),At.error((0,pt.__)("Failed to update category visibility","surecookie"),{description:e?.message})}},[n]),m=(0,ct.useMemo)(()=>{const e=[];return(i?.cookies||[]).forEach(t=>{(t.cookies||[]).forEach(n=>{e.push({...n,type:"scanned",category:t.id,categoryName:t.name,duration:_oe(n),provider:n.provider||"",purpose:n.purpose||"",description:n.description||""})})}),e},[i]),g=(0,ct.useMemo)(()=>{const e=r.map(e=>({...e,type:e.type||"custom"})),t=new Set(r.map(e=>e.name));return[...e,...m.filter(e=>!t.has(e.name))]},[r,m]),[y,v]=(0,ct.useState)(!1),[b,w]=(0,ct.useState)({name:"",currentCategory:"",domain:"",purpose:"",duration:"",provider:""}),x=(()=>{const e=bt();return En({mutationFn:async e=>{const t=await(e=>Fn()({method:"POST",path:"/surecookie/v1/cookies/custom-cookie",data:e}))(e);if(!t.success)throw new Error(t.message||(0,pt.__)("Failed to create custom cookie","surecookie"));return t.cookie},onSuccess:()=>{Zn(e),At.success((0,pt.__)("Custom cookie created successfully","surecookie"))},onError:e=>{At.error((0,pt.__)("Failed to create custom cookie","surecookie"),{description:e.message})}})})(),k=(()=>{const e=bt();return En({mutationFn:async({cookieId:e,data:t})=>{const n=await((e,t)=>Fn()({method:"PUT",path:`/surecookie/v1/cookies/custom-cookie/${e}`,data:t}))(e,t);if(!n.success)throw new Error(n.message||(0,pt.__)("Failed to update custom cookie","surecookie"));return n.cookie},onSuccess:()=>{Zn(e),At.success((0,pt.__)("Custom cookie updated successfully","surecookie"))},onError:e=>{At.error((0,pt.__)("Failed to update custom cookie","surecookie"),{description:e.message})}})})(),_=(()=>{const e=bt();return En({mutationFn:async e=>{const t=await(e=>Fn()({method:"DELETE",path:`/surecookie/v1/cookies/custom-cookie/${e}`}))(e);if(!t.success)throw new Error(t.message||(0,pt.__)("Failed to delete custom cookie","surecookie"));return t},onSuccess:()=>{Zn(e),At.success((0,pt.__)("Custom cookie deleted successfully","surecookie"))},onError:e=>{At.error((0,pt.__)("Failed to delete custom cookie","surecookie"),{description:e.message})}})})(),C=(()=>{const e=bt();return En({mutationFn:async({cookieName:e,category:t,domain:n})=>{const r=await(o={cookie_name:e,category:t,domain:n??""},Fn()({method:"DELETE",path:"/surecookie/v1/cookies/scanned-cookie",data:o}));var o;if(!r.success)throw new Error(r.message||(0,pt.__)("Failed to remove cookie","surecookie"));return r},onSuccess:()=>{e.invalidateQueries({queryKey:Nn.cookies.all}),Zn(e),At.success((0,pt.__)("Cookie removed","surecookie"))},onError:e=>{At.error(e.message)}})})(),B=(()=>{const e=bt();return En({mutationFn:async({cookieName:e,currentCategory:t,newCategory:n,domain:r,purpose:o,duration:i,provider:s})=>{const a={cookie_name:e,current_category:t,new_category:n,domain:r??""};void 0!==o&&(a.purpose=o),void 0!==i&&(a.duration=i),void 0!==s&&(a.provider=s);const l=await(c=a,Fn()({method:"PUT",path:"/surecookie/v1/cookies/scanned-cookie/category",data:c}));var c;if(!l.success)throw new Error(l.message||(0,pt.__)("Failed to update cookie","surecookie"));return l},onSuccess:()=>{e.invalidateQueries({queryKey:Nn.cookies.all}),Zn(e),At.success((0,pt.__)("Cookie updated successfully","surecookie"))},onError:e=>{At.error((0,pt.__)("Failed to update cookie","surecookie"),{description:e.message})}})})(),S=(()=>{const e=bt();return En({mutationFn:async({items:e,newCategory:t})=>{const n=await(r={items:e,new_category:t},Fn()({method:"PUT",path:"/surecookie/v1/cookies/bulk-category",data:r}));var r;if(!n.success)throw new Error(n.message||(0,pt.__)("Failed to update cookie categories","surecookie"));return n},onSuccess:t=>{e.invalidateQueries({queryKey:Nn.cookies.all}),Zn(e),t.failed>0?At.warning(t.message||(0,pt.__)("Cookie categories updated","surecookie"),{description:(0,pt.sprintf)(/* translators: %d: number of cookies that could not be updated. */ /* translators: %d: number of cookies that could not be updated. */
50 (0,pt.__)("%d cookie(s) could not be updated. Reload and try again.","surecookie"),t.failed)}):At.success(t.message||(0,pt.__)("Cookie categories updated","surecookie"))},onError:e=>{At.error((0,pt.__)("Failed to update cookie categories","surecookie"),{description:e.message})}})})(),j=(()=>{const e=bt();return En({mutationFn:async e=>{const t=await(e=>Fn()({method:"POST",path:"/surecookie/v1/cookies/category",data:e}))(e);if(!t.success)throw new Error(t.message||(0,pt.__)("Failed to create category","surecookie"));return t.category},onSuccess:()=>{Zn(e),At.success((0,pt.__)("Category created successfully","surecookie"))},onError:e=>{At.error((0,pt.__)("Failed to create category","surecookie"),{description:e.message})}})})(),E=(()=>{const e=bt();return En({mutationFn:async({categoryId:e,data:t})=>{const n=await((e,t)=>Fn()({method:"PUT",path:`/surecookie/v1/cookies/category/${e}`,data:t}))(e,t);if(!n.success)throw new Error(n.message||(0,pt.__)("Failed to update category","surecookie"));return n.category},onSuccess:()=>{Zn(e),At.success((0,pt.__)("Category updated successfully","surecookie"))},onError:e=>{At.error((0,pt.__)("Failed to update category","surecookie"),{description:e.message})}})})(),N=(()=>{const e=bt();return En({mutationFn:async({categoryId:e,keepCookies:t=!0,targetCategory:n=""})=>{const r=await((e,t=!1,n="")=>Fn()({method:"DELETE",path:`/surecookie/v1/cookies/category/${e}`,data:{keep_cookies:t,target_category:n}}))(e,t,n);if(!r.success)throw new Error(r.message||(0,pt.__)("Failed to delete category","surecookie"));return r},onSuccess:()=>{Zn(e),At.success((0,pt.__)("Category deleted successfully","surecookie"))},onError:e=>{At.error((0,pt.__)("Failed to delete category","surecookie"),{description:e.message})}})})(),{isSaving:I,isDeleting:F}=vx({createMutation:x,updateMutation:k,deleteMutation:_}),T=I||B.isPending||S.isPending,L=(0,ct.useCallback)((e,t)=>{t&&t!==e.category&&("scanned"!==e.type?k.mutate({cookieId:e.id,data:{category:t}}):B.mutate({cookieName:e.name,currentCategory:e.category,newCategory:t,domain:e.domain??""}))},[k,B]),P=(0,ct.useCallback)((e,t)=>{const n=e.map(e=>"scanned"===e.type?{type:"scanned",name:e.name,current_category:e.category,domain:e.domain??""}:{type:"custom",id:String(e.id)});return S.mutateAsync({items:n,newCategory:t})},[S]),{isSaving:M}=vx({createMutation:j,updateMutation:E,deleteMutation:N}),O=Ex({cookie:null}),D=Ex({category:null,hasCookies:!1,cookieCount:0,cookies:[]}),U=Vx({schema:Mle,defaultValues:{name:"",category:"",duration:"",provider:"",domain:"",description:"",purpose:""},idKey:"id"}),R=Vx({schema:fle,defaultValues:{name:"",description:""},idKey:"id"}),[z,Q]=(0,ct.useState)(!1),[H,q]=(0,ct.useState)("list"),V=(0,ct.useCallback)(()=>{const e=a.length>0?a[0].id:"";U.openForAdd({category:e})},[U,a]),K=(0,ct.useCallback)(e=>{const t="scanned"===e.type;v(t),t&&w({name:e.name,currentCategory:e.category,domain:e.domain??"",purpose:e.purpose??"",duration:e.duration??"",provider:e.provider??""}),U.openForEdit(e)},[U]),W=(0,ct.useCallback)(()=>{if(y){const n=U.formData.category;if(!n)return;const r=String(U.formData.duration??"").trim(),o=(e={...U.formData,duration:r},t=b,Object.fromEntries(["purpose","duration","provider"].map(t=>[t,String(e[t]??"")]).filter(([e,n])=>n!==String(t[e]??""))));return void B.mutate({cookieName:b.name,currentCategory:b.currentCategory,newCategory:n,domain:b.domain,...o},{onSuccess:()=>{U.close(),v(!1)}})}var e,t;return U.handleSubmit(()=>{const e=U.formData;if("add"===U.mode){const t={name:e.name,category:e.category,description:e.description||"",duration:e.duration||"",provider:e.provider||"",purpose:e.purpose||"",domain:e.domain||"",type:"custom"};x.mutate(t,{onSuccess:()=>{U.close(),v(!1)}})}else{const t={name:e.name,category:e.category,description:e.description||"",duration:e.duration||"",provider:e.provider||"",purpose:e.purpose||"",domain:e.domain||"",type:"custom"};k.mutate({cookieId:U.entityId,data:t},{onSuccess:()=>{U.close(),v(!1)}})}},()=>{})()},[U,x,k,B,y,b]),G=(0,ct.useCallback)(()=>{U.close(),v(!1),w({name:"",currentCategory:"",domain:""})},[U]),$=(0,ct.useCallback)(e=>{O.open(e,{cookie:e})},[O]),Y=(0,ct.useCallback)(()=>{if(!O.entity)return;O.setDeleting(!0);const e=O.entity,t={onSuccess:()=>O.close(),onError:()=>O.setDeleting(!1)};"scanned"!==e.type?_.mutate(e.id,t):C.mutate({cookieName:e.name,category:e.category,domain:e.domain??""},t)},[O,_,C]),Z={isOpen:O.isOpen,cookie:O.cookie||O.entity,deleting:O.deleting},X=(0,ct.useCallback)(()=>{Q(!0)},[]),J=(0,ct.useCallback)(e=>{Q(e),e||(q("list"),R.close())},[R]),ee=(0,ct.useCallback)(()=>{J(!1)},[J]),te=(0,ct.useCallback)(()=>{R.openForAdd(),q("form")},[R]),ne=(0,ct.useCallback)(e=>{R.openForEdit(e),q("form")},[R]),re=(0,ct.useCallback)(()=>R.handleSubmit(()=>{if("add"===R.mode){const e={name:R.formData.name,description:R.formData.description,required:!1};j.mutate(e,{onSuccess:()=>{R.close(),q("list")}})}else{const e={name:R.formData.name,description:R.formData.description};E.mutate({categoryId:R.entityId,data:e},{onSuccess:()=>{R.close(),q("list")}})}},()=>{})(),[R,j,E]),oe=(0,ct.useCallback)(()=>{R.close(),q("list")},[R]),ie=(0,ct.useCallback)(e=>{const t=g.filter(t=>t.category===e.id);D.open(e,{category:e,hasCookies:t.length>0,cookieCount:t.length,cookies:t})},[g,D]),se=(0,ct.useCallback)((e=null)=>{const t=D.category?.id,n=null!=e;D.setDeleting(!0),N.mutate({categoryId:t,keepCookies:n,targetCategory:n?e:""},{onSuccess:()=>{D.close()},onError:()=>{D.setDeleting(!1)}})},[D,N]),ae={isOpen:D.isOpen,category:D.category,hasCookies:D.hasCookies,cookieCount:D.cookieCount,cookies:D.cookies,deleting:D.deleting};return{cookies:g,customCookies:r,scannedCookies:m,categories:a,deleteDialog:Z,setDeleteDialog:O.setDialog,isLoading:o||s||l||t,isSaving:T,isDeleting:F,isEditingScannedCookie:y,drawer:U,openDrawerForAdd:V,openDrawerForEdit:K,handleDrawerSave:W,handleDrawerCancel:G,handleDeleteRequest:$,confirmDelete:Y,handleInlineCategoryChange:L,handleBulkCategoryChange:P,categoriesInUse:u,hideUnusedCategories:p,handleHideUnusedCategoriesChange:f,isManageCategoriesOpen:z,setIsManageCategoriesOpen:J,manageCategoriesScreen:H,categoryDrawer:R,categoryDeleteDialog:ae,setCategoryDeleteDialog:D.setDialog,isSavingCategory:M,openManageCategories:X,closeManageCategories:ee,openCategoryDrawerForAdd:te,openCategoryDrawerForEdit:ne,handleCategoryDrawerSave:re,handleCategoryDrawerCancel:oe,handleCategoryDeleteRequest:ie,confirmCategoryDelete:se}},Dle=()=>{const e=Yi(),{cookies:t,categories:n,scannedCookies:r,deleteDialog:o,setDeleteDialog:i,drawer:s,openDrawerForAdd:a,openDrawerForEdit:l,handleDrawerSave:c,handleDrawerCancel:u,handleDeleteRequest:d,confirmDelete:A,handleInlineCategoryChange:h,handleBulkCategoryChange:p,isSaving:f,isLoading:m,isEditingScannedCookie:g,isManageCategoriesOpen:y,setIsManageCategoriesOpen:v,manageCategoriesScreen:b,categoryDrawer:w,categoryDeleteDialog:x,setCategoryDeleteDialog:k,isSavingCategory:_,openManageCategories:C,openCategoryDrawerForAdd:B,openCategoryDrawerForEdit:S,handleCategoryDrawerSave:j,handleCategoryDrawerCancel:E,handleCategoryDeleteRequest:N,confirmCategoryDelete:I,categoriesInUse:F,hideUnusedCategories:T,handleHideUnusedCategoriesChange:L}=Ole(),[P,M]=(0,ct.useState)(!1),[O,D]=(0,ct.useState)(""),U=(e="")=>{D(e),M(!0)},{services:R,getState:z,isLocked:Q}=Fle({categories:n}),[H,q]=((e,t)=>{const[n,r]=(0,ct.useState)(()=>{try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return t}});return(0,ct.useEffect)(()=>{const t=t=>{if(t.key===e&&null!==t.newValue)try{r(JSON.parse(t.newValue))}catch(e){}};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e]),[n,t=>{try{const o=t instanceof Function?t(n):t;r(o),window.localStorage.setItem(e,JSON.stringify(o))}catch(e){}}]})("surecookie_smartdetect_dismissed_services",[]),V=(0,ct.useMemo)(()=>{const e=Array.isArray(r)?r:[];if(!e.length)return null;const t=e=>(e||"").trim().toLowerCase(),n=e=>t(e).replace(/^\./,"");return R.find(r=>"available"===z(r.slug)&&!Q(r)&&!H.includes(r.slug)&&Array.isArray(r.cookies)&&r.cookies.length>0&&r.cookies.some(r=>e.some(e=>t(e.name)===t(r.name)&&(!!r.first_party||n(e.domain)===n(r.domain)))))||null},[R,z,Q,H,r]),{data:K}=nr(),W=(0,ct.useMemo)(()=>{const e=K?.changes?.added;return Array.isArray(e)?new Set(e.map(e=>e.signature_id).filter(Boolean)):new Set},[K]),G=!m&&t.length>0?(0,yt.jsx)(pk,{color:"info",showIcon:!0,title:(0,pt.__)("Change Cookie Categories Carefully","surecookie"),message:(0,pt.__)("A cookie's category determines how it behaves when users decline consent. Cookies marked as Essential always remain active. Moving a cookie out of Essential may cause it to be blocked or deleted, which can break features like login or checkout. Similarly, assigning tracking cookies to Essential may conflict with privacy regulations. Your choice is remembered, so a later scan will not move the cookie back.","surecookie"),footerAsideTitle:!0,footer:(0,yt.jsx)(Fa,{variant:"link",size:"xs",icon:(0,yt.jsx)(Vk,{size:14}),iconPosition:"right",onClick:()=>e("/compliance/cookie-policy"),children:(0,pt.__)("Manage Cookie Policy","surecookie")})}):null,$=V?(0,yt.jsx)(pk,{color:"info",showIcon:!0,title:(0,pt.sprintf)(/* translators: %s: service name (e.g. Google Analytics) */ /* translators: %s: service name (e.g. Google Analytics) */
51 (0,pt.__)("Looks like %s","surecookie"),V.label),message:(0,pt.__)("We spotted cookies from this service. Add it to declare its cookies in one step.","surecookie"),footer:(0,yt.jsxs)("div",{className:"flex gap-2",children:[(0,yt.jsx)(Fa,{size:"sm",onClick:()=>U(V.slug),children:(0,pt.__)("Add as Service","surecookie")}),(0,yt.jsx)(Fa,{size:"sm",variant:"outline",onClick:()=>q([...H,V.slug]),children:(0,pt.__)("Dismiss","surecookie")})]})}):null;return(0,yt.jsxs)(n_,{pageTitle:(0,pt.__)("Manage Cookies","surecookie"),pageDescription:(0,pt.__)("Create and manage all cookies for your website. These cookies will appear in the selected privacy preference categories.","surecookie"),renderNotice:G||$?(0,yt.jsxs)("div",{className:"space-y-3",children:[G,$]}):null,children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,yt.jsx)(Iw,{as:"h3",size:16,weight:600,children:m?(0,yt.jsx)(yt.Fragment,{children:(0,yt.jsx)(Zk,{className:"h-8 w-28 rounded-md"})}):t.length?(0,pt.__)("All Cookies","surecookie"):(0,pt.__)("Manage Cookies","surecookie")}),(0,yt.jsx)("div",{className:"flex gap-2",children:m?(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(Zk,{className:"h-8 w-48 rounded-md"}),(0,yt.jsx)(Zk,{className:"h-8 w-36 rounded-md"}),(0,yt.jsx)(Zk,{className:"h-8 w-28 rounded-md"})]}):(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(Fa,{icon:(0,yt.jsx)(Hk,{}),size:"sm",variant:"outline",onClick:()=>U(),children:(0,pt.__)("Add from a Known Service","surecookie")}),(0,yt.jsx)(Fa,{icon:(0,yt.jsx)(xoe,{}),size:"sm",variant:"outline",onClick:C,children:(0,pt.__)("Manage Categories","surecookie")}),!!t.length&&(0,yt.jsx)(Fa,{icon:(0,yt.jsx)(koe,{}),size:"sm",onClick:a,children:(0,pt.__)("New Cookie","surecookie")})]})})]}),m?(0,yt.jsx)(Noe,{}):t.length?(0,yt.jsx)(Eoe,{cookies:t,categories:n,onEdit:l,onDelete:d,onCategoryChange:h,onBulkCategoryChange:p,isSaving:f,newSignatureIds:W}):(0,yt.jsxs)("div",{className:"flex flex-col items-center justify-center p-6",children:[(0,yt.jsx)(Iw,{as:"p",size:16,weight:600,children:(0,pt.__)("All your cookies will be displayed here","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:14,className:"mt-0.5 mb-4",color:"tertiary",children:(0,pt.__)("Click the button below to create your first custom cookie","surecookie")}),(0,yt.jsxs)("div",{className:"flex gap-2",children:[(0,yt.jsx)(Fa,{icon:(0,yt.jsx)(koe,{}),size:"sm",onClick:a,children:(0,pt.__)("New Cookie","surecookie")}),(0,yt.jsx)(Fa,{icon:(0,yt.jsx)(Hk,{}),size:"sm",variant:"outline",onClick:()=>U(),children:(0,pt.__)("Add from a Known Service","surecookie")})]})]}),(0,yt.jsx)(Tle,{isOpen:P,setIsOpen:M,categories:n,initialServiceSlug:O,filter:"cookies"}),(0,yt.jsx)(Ioe,{deleteDialog:o,setDeleteDialog:i,onConfirmDelete:A}),(0,yt.jsx)(Loe,{isOpen:s.isOpen,setIsOpen:s.setIsOpen,mode:s.mode,formData:s.formData,errors:s.errors,categories:n,register:s.register,setFocus:s.setFocus,onUpdate:s.updateFormData,onSave:c,onCancel:u,isSaving:f,isScannedCookie:g}),(0,yt.jsx)(yle,{isOpen:y,setIsOpen:v,categories:n,onAddCategory:B,onEditCategory:S,onDeleteCategory:N,screen:b,categoryFormMode:w.mode,formData:w.formData,errors:w.errors,register:w.register,setFocus:w.setFocus,onUpdate:w.updateFormData,onSave:j,onCancel:E,isSaving:_,categoriesInUse:F,hideUnusedCategories:T,onHideUnusedCategoriesChange:L}),(0,yt.jsx)(Moe,{deleteDialog:x,setDeleteDialog:k,onConfirmDelete:I,categories:n,cookies:x.cookies||[]})]})},Ule=()=>(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:"space-y-2",children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,yt.jsx)(Zk,{className:"h-5 w-28"}),(0,yt.jsx)(Zk,{className:"h-8 w-8 rounded-md"})]}),(0,yt.jsx)(Zk,{className:"h-96 w-full rounded-md"}),(0,yt.jsx)(Zk,{className:"h-5 w-full"}),(0,yt.jsx)(Zk,{className:"h-5 w-96"})]}),(0,yt.jsxs)("div",{className:"p-4 bg-background-secondary border border-border-subtle rounded-lg space-y-1.5",children:[(0,yt.jsx)(Zk,{className:"h-5 w-28"}),(0,yt.jsxs)("div",{className:"ml-3 space-y-1",children:[(0,yt.jsx)(Zk,{className:"h-5 w-full"}),(0,yt.jsx)(Zk,{className:"h-5 w-3/4"}),(0,yt.jsx)(Zk,{className:"h-5 w-2/3"}),(0,yt.jsx)(Zk,{className:"h-5 w-3/4"}),(0,yt.jsx)(Zk,{className:"h-5 w-2/3"})]})]}),(0,yt.jsx)("div",{className:"flex justify-start gap-3 mt-6 mb-4",children:(0,yt.jsx)(Zk,{className:"h-10 w-16 rounded-md"})})]}),Rle=()=>{const{getCurrentValue:e,updateSetting:t,isLoaded:n,isLoading:r,isError:o,settings:i,saveSettings:s}=si(),[a,l]=(0,ct.useState)(""),c=(0,ct.useRef)(null),u=(0,ct.useRef)(null);return(0,ct.useEffect)(()=>{if(n){const t=e("custom_css")||"";l(t)}},[n,i]),(0,ct.useEffect)(()=>{if(c.current&&window.wp&&window.wp.CodeMirror&&!u.current){const e=window.wp.codeEditor.defaultSettings?{...window.wp.codeEditor.defaultSettings}:{};e.codemirror={...e.codemirror||{},placeholder:`/* ${(0,pt.__)("Enter your custom CSS here","surecookie")} */\n.surecookie-banner {\n color: red !important;\n /* ${(0,pt.__)("Use !important to override inline styles","surecookie")} */\n}`},u.current=window.wp.codeEditor.initialize(c.current,e),u.current&&u.current.codemirror&&(u.current.codemirror.setValue(a),u.current.codemirror.on("change",(e,n)=>{if("setValue"===n?.origin)return;const r=u.current.codemirror.getValue();l(r),t("custom_css",r)}))}return()=>{u.current&&u.current.codemirror&&(u.current.codemirror.toTextArea(),u.current=null)}},[n]),(0,ct.useEffect)(()=>{u.current&&u.current.codemirror&&u.current.codemirror.getValue()!==a&&u.current.codemirror.setValue(a)},[a]),(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("Custom CSS","surecookie"),pageDescription:(0,pt.__)("Add custom CSS to style your cookie banner. Changes will be reflected in both preview and frontend after saving.","surecookie"),children:r?(0,yt.jsx)(Ule,{}):o?(0,yt.jsx)(pk,{color:"error",showIcon:!0,title:(0,pt.__)("Failed to load settings","surecookie"),message:(0,pt.__)("An error occurred while loading settings. Please refresh the page to try again.","surecookie")}):(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:"space-y-2",children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"css-editor",children:(0,pt.__)("CSS Code Editor","surecookie")}),(0,yt.jsx)(e_,{content:(0,pt.__)("Reset Custom CSS","surecookie"),children:(0,yt.jsx)(Fa,{variant:"ghost",icon:(0,yt.jsx)(wD,{className:"!w-4 !h-4"}),onClick:async()=>{confirm((0,pt.__)("Are you sure you want to reset custom CSS? This will remove all your custom styles.","surecookie"))&&(l(""),t("custom_css",""),await s(),alert((0,pt.__)("Custom CSS has been reset. The banner will now use default styles.","surecookie")))},disabled:!a,className:"p-0"})})]}),(0,yt.jsx)("div",{className:"border border-border-subtle rounded-md overflow-hidden",children:(0,yt.jsx)("textarea",{ref:c,id:"custom-css-editor",className:"w-full h-96 p-4 font-mono text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-blue-500",value:a,onChange:e=>{const n=e.target.value;l(n),t("custom_css",n)}})}),(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",className:"mb-3",children:(0,ct.createInterpolateElement)((0,pt.__)("Write your custom CSS below. Use <strong>!important</strong> to override inline styles.<br />You can target banner elements using classes like <strong>.surecookie-banner</strong>, <strong>.surecookie-accept-btn</strong>, etc.","surecookie"),{strong:(0,yt.jsx)("strong",{className:"text-text-primary font-normal"}),br:(0,yt.jsx)("br",{})})})]}),(0,yt.jsxs)("div",{className:"mt-4 p-4 bg-background-secondary border border-border-subtle rounded-lg space-y-1.5",children:[(0,yt.jsx)(Iw,{size:14,weight:600,color:"primary",children:(0,ct.createInterpolateElement)((0,pt.__)("<span></span> Quick Tips:","surecookie"),{span:(0,yt.jsx)("span",{children:"💡"})})}),(0,yt.jsx)("ul",{className:"ml-3 space-y-0.5 list-disc list-inside",children:[(0,pt.__)("Use <b>.surecookie-banner</b> to target the cookie banner (works in both preview and frontend)","surecookie"),(0,pt.__)("Use <b>.surecookie-accept-btn</b>, <b>.surecookie-decline-btn</b> for buttons","surecookie"),(0,pt.__)("Important: Use <b>!important</b> to override inline styles","surecookie"),(0,pt.__)('Changes take effect after clicking "Save Changes" below',"surecookie"),(0,pt.__)("Your CSS is saved and will persist after page refresh","surecookie")].map((e,t)=>(0,yt.jsx)("li",{className:"m-0",children:(0,yt.jsx)(Iw,{as:"p",className:"inline-block",size:14,weight:400,color:"secondary",children:(0,ct.createInterpolateElement)(e,{b:(0,yt.jsx)(Iw,{as:"b",color:"primary",size:14,weight:500})})})},t))})]}),(0,yt.jsx)(h_,{})]})})},zle=_b("laptop-minimal-check",[["path",{d:"M2 20h20",key:"owomy5"}],["path",{d:"m9 10 2 2 4-4",key:"1gnqz4"}],["rect",{x:"3",y:"4",width:"18",height:"12",rx:"2",key:"8ur36m"}]]),Qle=()=>(0,yt.jsxs)(Dk,{className:"w-full bg-background-primary rounded-xl border border-border-subtle border-solid p-4 shadow-sm gap-4",containerType:"flex",direction:"column",children:[(0,yt.jsx)(Dk,{className:"p-1",align:"center",justify:"between",children:(0,yt.jsx)(Zk,{className:"h-6 w-24"})}),(0,yt.jsxs)(Dk,{containerType:"grid",cols:{sm:1,lg:2},className:"w-full gap-1 auto-rows-auto relative p-1 before:content-[''] before:block before:w-full before:h-full before:absolute before:top-0 before:left-0 before:bg-background-secondary before:rounded-lg",children:[(0,yt.jsx)(Dk.Item,{className:"relative w-full h-full",children:(0,yt.jsxs)("div",{className:"bg-background-primary rounded-md p-4 shadow-sm w-full h-full flex items-center gap-4",children:[(0,yt.jsx)(Zk,{className:"h-28 w-28 rounded-full shrink-0"}),(0,yt.jsxs)("div",{className:"flex flex-col gap-2 flex-1",children:[(0,yt.jsx)(Zk,{className:"h-4 w-full"}),(0,yt.jsx)(Zk,{className:"h-4 w-3/4"}),(0,yt.jsx)(Zk,{className:"h-4 w-1/2"})]})]})}),(0,yt.jsx)(Dk.Item,{className:"relative w-full h-full",children:(0,yt.jsxs)("div",{className:"bg-background-primary rounded-md p-3 shadow-sm w-full h-full flex flex-col justify-between gap-4",children:[(0,yt.jsxs)("div",{className:"flex justify-between items-center py-1.5",children:[(0,yt.jsx)(Zk,{className:"h-5 w-5 rounded"}),(0,yt.jsx)(Zk,{className:"h-5 w-16 rounded-full"})]}),(0,yt.jsxs)("div",{className:"space-y-2",children:[(0,yt.jsx)(Zk,{className:"h-4 w-1/3"}),(0,yt.jsx)(Zk,{className:"h-4 w-full"})]}),(0,yt.jsx)(Zk,{className:"h-7 w-20 rounded"})]})})]})]}),Hle=({onEnable:e})=>(0,yt.jsxs)(Dk,{direction:"column",className:"h-full gap-1 justify-between",children:[(0,yt.jsxs)("div",{className:"flex items-start justify-between p-1",children:[(0,yt.jsx)("div",{className:"flex items-center gap-2",children:(0,yt.jsx)(Eb,{className:"w-5 h-5 text-icon-primary"})}),(0,yt.jsx)(uw,{label:(0,pt.__)("Disabled","surecookie"),variant:"red",size:"sm",icon:(0,yt.jsx)(hk,{className:"w-4 h-4"})})]}),(0,yt.jsxs)("div",{className:"p-1 space-y-1",children:[(0,yt.jsx)(Iw,{size:14,weight:600,children:(0,pt.__)("Consent Logging","surecookie")}),(0,yt.jsx)("div",{className:"flex-1",children:(0,yt.jsx)(Iw,{color:"tertiary",size:14,weight:400,children:(0,pt.__)("Enable consent logging to view consent analytics","surecookie")})})]}),(0,yt.jsx)("div",{className:"p-1",children:(0,yt.jsx)(Fa,{size:"sm",variant:"primary",className:"w-fit",onClick:e,children:(0,pt.__)("Enable","surecookie")})})]}),qle=()=>{const e=Yi(),{getCurrentValue:t,isLoading:n}=si(),r=t("banner_enabled")||!1,o=!!t("consent_logging_enabled"),{data:i,isLoading:s}=Gn({page:1,perPage:5,enabled:!n&&o}),a=o&&i?.chartData||[],l=o&&i?.total||0;return n||o&&s?(0,yt.jsx)(Qle,{}):(0,yt.jsxs)(Dk,{className:"w-full bg-background-primary rounded-xl border border-border-subtle border-solid p-4 shadow-sm gap-4",containerType:"flex",direction:"column",children:[(0,yt.jsx)(Dk,{className:"p-1",align:"center",justify:"between",children:(0,yt.jsx)(Iw,{as:"h5",size:16,weight:600,children:(0,pt.__)("Overview","surecookie")})}),(0,yt.jsxs)(Dk,{containerType:"grid",cols:{sm:1,lg:2},className:"w-full gap-1 auto-rows-auto relative p-1 before:content-[''] before:block before:w-full before:h-full before:absolute before:top-0 before:left-0 before:bg-background-secondary before:rounded-lg",children:[(0,yt.jsx)(Dk.Item,{className:"relative w-full h-full",children:(0,yt.jsx)("div",{className:"bg-background-primary rounded-md p-4 shadow-sm w-full h-full",children:o?(0,yt.jsx)(moe,{data:a,total:l}):(0,yt.jsx)(Hle,{onEnable:()=>e("/settings/general/consent-data")})})}),(0,yt.jsx)(Dk.Item,{className:"relative w-full h-full",children:(0,yt.jsx)("div",{className:"bg-background-primary rounded-md p-3 shadow-sm w-full h-full",children:(0,yt.jsxs)(Dk,{direction:"column",className:"h-full gap-1 justify-between",children:[(0,yt.jsxs)("div",{className:"flex items-start justify-between p-1",children:[(0,yt.jsx)("div",{className:"flex items-center gap-2",children:(0,yt.jsx)(zle,{className:"w-5 h-5 text-icon-primary"})}),(0,yt.jsx)(uw,{label:r?(0,pt.__)("Active","surecookie"):(0,pt.__)("Inactive","surecookie"),variant:r?"green":"red",size:"sm",icon:r?(0,yt.jsx)(dk,{className:"w-4 h-4"}):(0,yt.jsx)(hk,{className:"w-4 h-4"})})]}),(0,yt.jsxs)("div",{className:"p-1 space-y-1",children:[(0,yt.jsx)(Iw,{size:14,weight:600,children:(0,pt.__)("Cookie Banner","surecookie")}),(0,yt.jsx)("div",{className:"flex-1",children:(0,yt.jsx)(Iw,{color:"tertiary",size:14,weight:400,children:r?(0,pt.__)("Your cookie banner is enabled.","surecookie"):(0,pt.__)("Your cookie banner is currently disabled.","surecookie")})})]}),(0,yt.jsx)("div",{className:"p-1",children:(0,yt.jsx)(Fa,{size:"sm",variant:"primary",className:"w-fit",onClick:()=>{e("/banner")},children:(0,pt.__)("Configure","surecookie")})})]})})})]})]})},Vle=_b("calendar-clock",[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]),Kle=e=>{if(!e)return"";const t=new Date(1e3*e);return Number.isNaN(t.getTime())?"":t.toLocaleDateString()},Wle=({dotClass:e,count:t,label:n})=>(0,yt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,yt.jsx)("span",{className:`size-2 shrink-0 rounded-full ${e}`}),(0,yt.jsx)(Iw,{size:14,weight:500,color:"primary",children:t}),(0,yt.jsx)(Iw,{size:14,color:"secondary",children:n})]}),Gle=()=>{const e=Yi(),{data:t}=nr(),{data:n}=Sn({queryKey:Nn.autoScan.nextRun(),queryFn:async()=>await qn()||{}}),r=t?.added_count||0,o=t?.removed_count||0,i=Array.isArray(t?.new_domains)?t.new_domains.length:0,s=!!t?.date;return(0,yt.jsxs)("div",{className:"rounded-xl border border-border-subtle bg-background-primary p-6 shadow-sm space-y-4","data-testid":"auto-scan-summary-card",children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,yt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,yt.jsx)(Vle,{className:"size-4 text-icon-secondary"}),(0,yt.jsx)(Iw,{size:16,weight:600,color:"primary",children:(0,pt.__)("Automatic Scanning","surecookie")})]}),(0,yt.jsx)(Fa,{variant:"link",size:"xs",icon:(0,yt.jsx)(Vk,{size:14}),iconPosition:"right",onClick:()=>e("/cookie-manager/auto-scan"),children:(0,pt.__)("Manage","surecookie")})]}),s?(0,yt.jsxs)("div",{className:"space-y-2.5",children:[(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",children:(0,pt.__)("Since the last scan:","surecookie")}),(0,yt.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,yt.jsx)(Wle,{dotClass:"bg-green-500",count:r,label:(0,pt._n)("new cookie","new cookies",r,"surecookie")}),o>0&&(0,yt.jsx)(Wle,{dotClass:"bg-red-500",count:o,label:(0,pt.__)("removed","surecookie")}),i>0&&(0,yt.jsx)(Wle,{dotClass:"bg-blue-500",count:i,label:(0,pt._n)("new tracker domain","new tracker domains",i,"surecookie")})]})]}):(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",children:(0,pt.__)("No scans yet. Schedule automatic scans to track changes over time.","surecookie")}),(0,yt.jsx)("div",{className:"flex items-center justify-between",children:n?.enabled?!1===n?.cron_status?(0,yt.jsxs)("span",{className:"inline-flex items-center gap-1 text-support-warning text-[13px]",children:[(0,yt.jsx)(Ak,{size:14,className:"shrink-0"}),(0,pt.__)("WP-Cron disabled - scans won’t run automatically","surecookie")]}):(0,yt.jsx)(Iw,{size:13,color:"tertiary",children:n?.next_run?(0,pt.sprintf)(/* translators: %s: next scan date */ /* translators: %s: next scan date */
52 (0,pt.__)("Next scan: %s","surecookie"),Kle(n.next_run)):(0,pt.__)("Scheduling is off","surecookie")}):(0,yt.jsx)(Iw,{size:13,color:"tertiary",children:(0,pt.__)("Scheduling is off","surecookie")})})]})},$le=_b("ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]),Yle=_b("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),Zle=_b("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]),Xle=_b("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),Jle=[{label:(0,pt.__)("Launch Setup Wizard","surecookie"),icon:(0,yt.jsx)(gb,{className:"size-4"}),link:(window?.surecookieAdminData?.wp_dashboard_url??"")+"?page=surecookie-onboarding",external:!1}],ece=()=>{const e=[...(n=Boolean(window?.surecookieAdminData?.is_pro_active))?[]:[{label:(0,pt.__)("Upgrade to Premium","surecookie"),icon:(0,yt.jsx)(Hk,{className:"size-4"}),link:ni("pricing_quick_access","pricing/"),external:!0}],{label:(0,pt.__)("Open Support Ticket","surecookie"),icon:(0,yt.jsx)($le,{className:"size-4"}),link:n?"https://my.surecookie.com/support/":"https://wordpress.org/support/plugin/surecookie/",external:!0},{label:(0,pt.__)("Help Center","surecookie"),icon:(0,yt.jsx)(Yle,{className:"size-4"}),link:ni("quick_access_help_center","docs/"),external:!0},{label:(0,pt.__)("Join our Community","surecookie"),icon:(0,yt.jsx)(Zle,{className:"size-4"}),link:"http://facebook.com/groups/surecrafted/",external:!0},{label:(0,pt.__)("Leave Us a Review","surecookie"),icon:(0,yt.jsx)(Xle,{className:"size-4"}),link:"https://wordpress.org/support/plugin/surecookie/reviews/#new-post",external:!0}],t="yes"!==window?.surecookieAdminData?.onboarding_complete_status&&window?.surecookieAdminData?.can_manage_settings?[...Jle,...e]:[...e];var n;return(0,yt.jsxs)(Dk,{className:"w-full h-fit bg-background-primary border-0.5 border-solid rounded-xl border-border-subtle p-3 shadow-sm",containerType:"flex",direction:"column",gap:"xs",children:[(0,yt.jsx)(Dk.Item,{className:"md:w-full lg:w-full p-1",children:(0,yt.jsx)($b,{className:"font-semibold text-text-primary",children:(0,pt.__)("Quick Access","surecookie")})}),(0,yt.jsx)(Dk.Item,{className:"flex flex-col md:w-full lg:w-full bg-field-primary-background gap-1 p-1 rounded-lg",children:t.map(e=>(0,yt.jsx)("div",{className:"group/quick-access-item p-2 gap-1 items-center bg-background-primary rounded-md shadow-sm cursor-pointer hover:bg-background-secondary transition-colors duration-150",onClick:()=>{e.external?window.open(e.link,"_blank","noopener,noreferrer"):window.location.href=e.link},children:(0,yt.jsxs)(Dk,{align:"center",className:"gap-2 p-1",containerType:"flex",direction:"row",children:[(0,yt.jsx)(Dk.Item,{className:"flex text-icon-primary group-hover/quick-access-item:text-link-primary-hover",children:e.icon}),(0,yt.jsx)(Dk.Item,{className:"flex",children:(0,yt.jsx)(Iw,{as:"p",size:14,weight:500,color:"primary",className:"group-hover/quick-access-item:text-link-primary-hover",children:e.label})})]})},e.label))})]})},tce=()=>{const{isLoading:e,getCurrentValue:t}=si(),n=!!t("consent_logging_enabled"),{data:r,isLoading:o}=Gn({page:1,perPage:5,enabled:!e&&n});return(0,yt.jsx)(_Y,{consentLogs:r?.logs||[],title:(0,pt.__)("Recent Consent Logs","surecookie"),isLoadingLogs:o,enabledConsentLogging:n,isLoadingSettings:e})},nce=_b("move-up",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]),rce=_b("move-down",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]),oce=()=>{const[e,t]=(0,ct.useState)(!1),[n,r]=(0,ct.useState)(!1),[o,i]=(0,ct.useState)(null),[s,a]=(0,ct.useState)(null),[l,c]=(0,ct.useState)(!1),{updateSetting:u,getCurrentValue:d,saveSettings:A}=si(),h=(0,ct.useRef)(A);h.current=A;const p="false"!==String(d("preview_enabled"));if((0,ct.useEffect)(()=>(localStorage.getItem("surecookie_dashboard_tour")||(t(!0),window.surecookieIsTourActive=!0,window.dispatchEvent(new CustomEvent("surecookie_tour_status",{detail:!0})),u("preview_enabled",!0)),()=>{window.surecookieIsTourActive=!1,window.dispatchEvent(new CustomEvent("surecookie_tour_status",{detail:!1}))}),[]),(0,ct.useEffect)(()=>{if(n){const e=[document.body,document.documentElement],t=document.querySelectorAll(".overflow-y-auto");return e.forEach(e=>e.style.overflow="hidden"),t.forEach(e=>e.style.overflow="hidden"),()=>{e.forEach(e=>e.style.overflow=""),t.forEach(e=>e.style.overflow="")}}},[n]),(0,ct.useLayoutEffect)(()=>{if(!e)return;const t=()=>{const e=document.getElementById("surecookie-preview-toggle"),t=document.getElementById("surecookie-preview-banner-container");if(e){const t=e.getBoundingClientRect();t.width>0&&i({x:t.left-12,y:t.top-12,w:t.width+24,h:t.height+24,centerX:t.left+t.width/2})}if(t&&p){const e=t.getBoundingClientRect();e.width>0&&a({x:e.left,y:e.top,w:e.width,h:e.height,centerX:e.left+e.width/2})}else a(null);e&&r(!0)};t();const n=setInterval(t,500);return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),clearInterval(n)}},[e,p]),(0,ct.useEffect)(()=>{l&&h.current().then(()=>{location.reload()})},[l]),!e||!n||!o)return null;const f=o.y+o.h+160<window.innerHeight;return(0,yt.jsxs)("div",{className:"surecookie-onboarding-overlay",children:[(0,yt.jsxs)("svg",{className:"dimmer-svg",children:[(0,yt.jsx)("defs",{children:(0,yt.jsxs)("mask",{id:"onboarding-mask",children:[(0,yt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,yt.jsx)("rect",{x:o.x,y:o.y,width:o.w,height:o.h,fill:"black",rx:"4"}),p&&s&&(0,yt.jsx)("rect",{x:s.x,y:s.y,width:s.w,height:s.h,fill:"black"})]})}),(0,yt.jsx)("rect",{width:"100%",height:"100%",fill:"rgba(17, 24, 39, 0.8)",mask:"url(#onboarding-mask)"})]}),(0,yt.jsx)("div",{className:"surecookie-onboarding-toggle-proxy",onClick:e=>{e.stopPropagation(),u("preview_enabled",!p)},style:{position:"fixed",left:o.x,top:o.y,width:o.w,height:o.h,cursor:"pointer",zIndex:10003},title:(0,pt.__)("Toggle Preview","surecookie")}),(0,yt.jsx)("div",{className:"surecookie-onboarding-label toggle-label "+(f?"is-below":"is-above"),style:{top:f?o.y+o.h+10:o.y-10,left:`${Math.max(12,Math.min(o.centerX/window.innerWidth*100,88))}%`},children:(0,yt.jsxs)("div",{className:"flex flex-col w-full items-center",children:[f?(0,yt.jsx)(nce,{size:20,className:"toggle-arrow"}):(0,yt.jsx)(rce,{size:20,className:"toggle-arrow"}),(0,yt.jsx)("p",{className:"w-full text-center",children:(0,pt.__)("Click this button to show or hide the cookie consent banner preview.","surecookie")})]})}),(()=>{const e=p&&s?s.y-(o.y+o.h):window.innerHeight,n=e<350,i=e<200||window.innerHeight<450;return(0,yt.jsxs)("div",{className:`surecookie-onboarding-center ${n?"is-tight":""} ${i?"is-very-tight":""}`,onClick:e=>{e.stopPropagation(),t(!1),r(!1),window.surecookieIsTourActive=!1,window.dispatchEvent(new CustomEvent("surecookie_tour_status",{detail:!1})),localStorage.setItem("surecookie_dashboard_tour","true"),u("preview_enabled",!1),c(!0)},children:[(0,yt.jsx)(gU,{size:24,strokeWidth:1.2,className:"close-icon"}),(0,yt.jsxs)("div",{className:"start-text",children:[(0,pt.__)("Click here to start","surecookie"),(0,yt.jsx)("br",{}),(0,pt.__)("design your banner","surecookie")]})]})})(),p&&s&&(()=>{const e=s.y>180,t=Math.max(12,Math.min(s.x,window.innerWidth-362));return(0,yt.jsx)("div",{className:"surecookie-onboarding-label banner-label is-left "+(e?"is-above":"is-below"),style:{left:t,top:e?s.y-10:s.y+s.h+10},children:(0,yt.jsxs)("div",{className:"flex flex-col w-full items-center text-center",children:[e?(0,yt.jsxs)("p",{children:[(0,pt.__)("Here's a preview of the cookie consent banner.","surecookie"),(0,yt.jsx)("br",{}),(0,pt.__)("You can adjust the content and design settings.","surecookie")]}):null,e?(0,yt.jsx)(rce,{size:20,className:"banner-arrow"}):(0,yt.jsx)(nce,{size:20,className:"banner-arrow"}),e?null:(0,yt.jsxs)("p",{children:[(0,pt.__)("Here's a preview of the cookie consent banner.","surecookie"),(0,yt.jsx)("br",{}),(0,pt.__)("You can adjust the content and design settings.","surecookie")]})]})})})()]})},ice=({progress:e=0,speed:t=200,className:n=""})=>{let r=e;e<0&&(r=0),e>100&&(r=100);const o=`translateX(-${100-r}%)`,i=`h-2 rounded-full bg-background-brand absolute left-0 top-0 w-full bottom-0 origin-left transition-transform duration-${t} ease-linear`;return(0,yt.jsx)("div",{className:wa("h-2 rounded-full bg-misc-progress-background overflow-hidden relative",n),role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Progress Bar",children:(0,yt.jsx)("div",{className:i,style:{transform:o}})})},sce=_b("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),ace=({completedCount:e,totalCount:t,percent:n,isLoading:r})=>r?(0,yt.jsxs)("div",{className:"flex flex-col gap-2 pb-2",children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,yt.jsx)(Zk,{className:"h-5 w-40"}),(0,yt.jsx)(Zk,{className:"h-4 w-10"})]}),(0,yt.jsx)(Zk,{className:"h-2 w-full rounded-full"})]}):(0,yt.jsxs)("div",{className:"flex flex-col gap-2 pb-2",children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,yt.jsx)(Iw,{as:"p",size:14,weight:500,color:"primary",children:(0,pt.sprintf)(
53 // translators: 1: number of completed steps, 2: total number of steps
54 // translators: 1: number of completed steps, 2: total number of steps
55 (0,pt.__)("%1$d of %2$d steps complete","surecookie"),e,t)}),(0,yt.jsx)(Iw,{as:"span",size:12,color:"secondary",children:`${n}%`})]}),(0,yt.jsx)(ice,{progress:n})]}),lce=({index:e,step:t})=>{const n=Yi(),r=Boolean(t.promo),o=Boolean(t.ctaHref),i=o?{tag:"a",href:t.ctaHref,target:"_blank",rel:"noopener noreferrer",className:"no-underline"}:{onClick:()=>n(t.ctaPath)};return(0,yt.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center gap-4 py-5 first:pt-0 last:pb-0 border-0 border-b border-solid border-border-subtle last:border-b-0",children:[(0,yt.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,yt.jsx)("div",{className:jo("shrink-0 flex items-center justify-center w-8 h-8 rounded-full transition-all duration-200",r||t.done?"bg-background-brand text-text-on-color":"border border-solid border-border-subtle text-text-secondary"),"aria-hidden":"true",children:r?(0,yt.jsx)(Hk,{className:"size-4"}):t.done?(0,yt.jsx)(dk,{className:"size-4"}):(0,yt.jsx)(Iw,{as:"span",size:14,weight:600,children:e+1})}),(0,yt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,yt.jsx)("div",{className:"flex items-center gap-2 mb-1",children:(0,yt.jsx)(Iw,{as:"h3",size:16,weight:600,color:"primary",children:t.title})}),(0,yt.jsx)(Iw,{as:"p",size:14,color:"secondary",children:t.description})]})]}),(0,yt.jsx)("div",{className:"sm:shrink-0 sm:pl-2 pl-12",children:(0,yt.jsx)(Fa,{variant:r?"primary":t.done?"ghost":"outline",size:"sm",icon:o?(0,yt.jsx)(Vk,{}):(0,yt.jsx)(sce,{}),iconPosition:"right",...i,children:t.ctaLabel})})]})},cce=({steps:e,proStep:t})=>(0,yt.jsxs)("div",{className:"flex flex-col",children:[e.map((e,t)=>(0,yt.jsx)(lce,{index:t,step:e},e.id)),t&&(0,yt.jsx)(lce,{step:t},t.id)]}),uce=_b("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),dce=()=>{const e=Yi();return(0,yt.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3 p-4 rounded-md bg-background-secondary border border-solid border-border-subtle",children:[(0,yt.jsx)(uce,{className:"size-5 text-support-success shrink-0","aria-hidden":"true"}),(0,yt.jsx)(Iw,{as:"p",size:14,weight:500,color:"primary",className:"flex-1",children:(0,pt.__)("You're all set! SureCookie is ready to protect your site.","surecookie")}),(0,yt.jsx)(Fa,{variant:"ghost",size:"sm",icon:(0,yt.jsx)(sce,{}),iconPosition:"right",onClick:()=>e("/dashboard"),children:(0,pt.__)("Go to Dashboard","surecookie")})]})},Ace="surecookie_learn_complete",hce=()=>{const{getCurrentValue:e,isLoading:t}=si(),n=Number(e("cookie_policy_page_id"))||0,r="true"===String(e("banner_enabled")),{data:o,isLoading:i}=$n(),{data:s,isLoading:a}=Gn({page:1,perPage:1}),{data:l,isLoading:c}=oi(n),u=t||i||a||c,d={scan:{title:(0,pt.__)("Scan Your Site for Cookies","surecookie"),description:(0,pt.__)("Run the cookie scanner to discover and categorize cookies your site uses.","surecookie"),ctaLabel:(0,pt.__)("Scan Now","surecookie")},banner:{title:(0,pt.__)("Set up the Consent Banner","surecookie"),description:(0,pt.__)("Customize your cookie consent banner - content, layout, and visibility.","surecookie"),ctaLabel:(0,pt.__)("Configure","surecookie")},logs:{title:(0,pt.__)("Review Consent Logs","surecookie"),description:(0,pt.__)("See who has consented and when - useful for compliance audits.","surecookie"),ctaLabel:(0,pt.__)("View Logs","surecookie")},cookiePolicy:{title:(0,pt.__)("Publish Your Cookie Policy","surecookie"),description:(0,pt.__)("Review and publish the cookie policy page on your site.","surecookie"),ctaLabel:(0,pt.__)("Review Page","surecookie")},cookiePolicyMissing:{title:(0,pt.__)("Publish Your Cookie Policy","surecookie"),description:(0,pt.__)("Generate a cookie policy page so visitors know how you handle their data.","surecookie"),ctaLabel:(0,pt.__)("Create Page","surecookie")},proStep:{title:(0,pt.__)("Do More with SureCookie Premium","surecookie"),description:(0,pt.__)("More scan limits, geographic targeting, re-consent widget, and more.","surecookie"),upgradeCtaLabel:(0,pt.__)("Upgrade Now","surecookie"),configureCtaLabel:(0,pt.__)("Configure","surecookie")}},A=c?n>0:n>0&&Boolean(l?.id),h=[{id:"scan",...d.scan,ctaPath:"/cookie-manager/scan",done:(o?.cookies?.length??0)>0},{id:"banner",...d.banner,ctaPath:"/banner/content",done:r},{id:"logs",...d.logs,ctaPath:"/analytics/logs",done:(s?.total??0)>0},{id:"cookie-policy",...A?d.cookiePolicy:d.cookiePolicyMissing,ctaPath:"/compliance/cookie-policy",done:"publish"===l?.status}],p=(0,ht.applyFilters)("surecookie.admin.learnSteps",h),f=Array.isArray(p)?p:h,m=u?f.map(e=>({...e,done:!1})):f,g=m.filter(e=>e.done).length,y=m.length,v=y>0?Math.round(g/y*100):0;(0,ct.useEffect)(()=>{u||0===y||(g===y?(e=>{try{window.localStorage.setItem(Ace,String(e))}catch{}})(y):(()=>{try{window.localStorage.removeItem(Ace)}catch{}})())},[u,g,y]);const b=Boolean(window?.surecookieAdminData?.is_pro_active);return{steps:m,proStep:{id:"pro",promo:!0,title:d.proStep.title,description:d.proStep.description,ctaLabel:b?d.proStep.configureCtaLabel:d.proStep.upgradeCtaLabel,...b?{ctaPath:"/banner/content"}:{ctaHref:ni("pricing_learn_upgrade","pricing/")}},completedCount:g,totalCount:y,percent:v,isLoading:u}},pce=()=>{const{steps:e,proStep:t,completedCount:n,totalCount:r,percent:o,isLoading:i}=hce(),s=!i&&r>0&&n===r;return(0,yt.jsx)("div",{className:"max-w-[768px] mx-auto w-full mt-3",children:(0,yt.jsxs)(n_,{pageTitle:(0,pt.__)("Get Started with SureCookie","surecookie"),pageDescription:(0,pt.__)("Follow these steps to set up cookie consent on your site in minutes.","surecookie"),children:[(0,yt.jsx)(ace,{completedCount:n,totalCount:r,percent:o,isLoading:i}),(0,yt.jsx)(cce,{steps:e,proStep:t}),s&&(0,yt.jsx)(dce,{})]})})},fce=()=>{const e=Yi(),t=(0,ct.useMemo)(()=>(()=>{try{return Number(window.localStorage.getItem(Ace))||0}catch{return 0}})(),[]),{completedCount:n,totalCount:r,percent:o,isLoading:i}=hce();return 0===r||t===r&&i?null:i||n!==r?(0,yt.jsxs)(Dk,{containerType:"flex",direction:"column",className:"w-full p-5 gap-3 bg-background-primary border border-solid rounded-xl border-border-subtle shadow-sm",children:[(0,yt.jsxs)(Dk.Item,{className:"flex items-center gap-2",children:[(0,yt.jsx)(Qb,{className:"size-5 text-icon-primary","aria-hidden":"true"}),(0,yt.jsx)(Iw,{as:"span",size:14,weight:600,color:"primary",children:(0,pt.__)("Continue Learning","surecookie")})]}),(0,yt.jsx)(Dk.Item,{className:"flex flex-col gap-2",children:i?(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(Zk,{className:"h-4 w-44"}),(0,yt.jsx)(Zk,{className:"h-2 w-full rounded-full"})]}):(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(Iw,{as:"p",size:13,color:"secondary",children:(0,pt.sprintf)(
56 // translators: 1: number of completed steps, 2: total number of steps
57 // translators: 1: number of completed steps, 2: total number of steps
58 (0,pt.__)("%1$d of %2$d setup steps complete.","surecookie"),n,r)}),(0,yt.jsx)(ice,{progress:o})]})}),(0,yt.jsx)(Dk.Item,{children:(0,yt.jsx)(Fa,{variant:"outline",size:"sm",icon:(0,yt.jsx)(sce,{}),iconPosition:"right",onClick:()=>e("/learn"),children:(0,pt.__)("Open Learn","surecookie")})})]}):null},mce=({title:e="",description:t="",icon:n=null,iconPosition:r="right",tag:o="h2",size:i="sm",className:s=""})=>{const a={xs:"gap-1 [&>svg]:size-3.5",sm:"gap-1 [&>svg]:size-4",md:"gap-1.5 [&>svg]:size-5",lg:"gap-1.5 [&>svg]:size-5"};if(!e)return null;const l=()=>(0,yt.jsx)(o,{className:wa("font-semibold p-0 m-0",{xs:"text-base [&>*]:text-base gap-1",sm:"text-lg [&>*]:text-lg gap-1",md:"text-xl [&>*]:text-xl gap-1.5",lg:"text-2xl [&>*]:text-2xl gap-1.5"}[i]),children:e});return t?(0,yt.jsxs)("div",{className:s,children:[(0,yt.jsxs)("div",{children:[n&&"left"===r&&(0,yt.jsxs)("div",{className:wa("flex items-center",a[i]),children:[n,l()]}),n&&"right"===r&&(0,yt.jsxs)("div",{className:wa("flex items-center",a[i]),children:[l(),n]}),!n&&l()]}),(0,yt.jsx)("p",{className:wa("text-text-secondary font-normal my-0",{xs:"text-sm",sm:"text-sm",md:"text-base",lg:"text-base"}[i]),children:t})]}):(0,yt.jsxs)("div",{className:s,children:[n&&"left"===r&&(0,yt.jsxs)("div",{className:wa("flex items-center",a[i]),children:[n,l()]}),n&&"right"===r&&(0,yt.jsxs)("div",{className:wa("flex items-center",a[i]),children:[l(),n]}),!n&&l()]})},gce=_b("panels-top-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]),yce=()=>{const e=Yi(),[t,n]=(0,ct.useState)(null);return(0,ct.useEffect)(()=>{const e=e=>{"Escape"===e.key&&n(null)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,yt.jsxs)(Dk,{className:"w-full bg-background-primary p-4 gap-8 shadow-sm-blur-1 rounded-xl border-0.5 border-solid border-border-subtle",containerType:"grid",cols:12,align:"center",children:[(0,yt.jsxs)(Dk.Item,{className:"flex flex-col gap-6 p-2 col-span-12 md:col-span-7 lg:col-span-7",children:[(0,yt.jsxs)(Dk,{direction:"column",className:"gap-1",children:[(0,yt.jsx)(mce,{size:"md",tag:"h3",title:(0,pt.__)("Welcome to SureCookie!","surecookie")}),(0,yt.jsx)($b,{size:"md",variant:"neutral",className:"font-normal text-text-secondary",children:(0,pt.__)("Get your site compliant in minutes - show a cookie banner, block trackers before consent, and automatically detect cookies used on your site.","surecookie")})]}),(0,yt.jsxs)(Dk,{className:"flex-wrap gap-3",children:[(0,yt.jsx)(Fa,{icon:(0,yt.jsx)(gce,{}),iconPosition:"left",size:"md",variant:"primary",onClick:()=>e("/banner/content"),children:(0,pt.__)("Set Up Cookie Banner","surecookie")}),(0,yt.jsx)(Fa,{"aria-label":(0,pt.__)("Scan My Site","surecookie"),icon:(0,yt.jsx)(Bb,{}),iconPosition:"right",size:"md",variant:"outline",onClick:()=>e("/cookie-manager/scan"),children:(0,pt.__)("Scan My Site","surecookie")}),(0,yt.jsx)($b,{size:"sm",variant:"help",children:(0,pt.__)("Start with the banner, then scan your site to detect cookies.","surecookie")})]})]}),(0,yt.jsx)(Dk.Item,{className:"col-span-12 md:col-span-5 lg:col-span-5 p-2",children:(0,yt.jsxs)("div",{className:"relative aspect-video cursor-pointer group",onClick:()=>{n("https://www.youtube.com/embed/IwU3Qa1VQYI?showinfo=0&rel=0&autoplay=1")},children:[(0,yt.jsx)("img",{src:"https://img.youtube.com/vi/IwU3Qa1VQYI/hqdefault.jpg",alt:(0,pt.__)("SureForms Video Thumbnail","surecookie"),className:"w-full h-full rounded border border-solid border-border-subtle object-cover"}),(0,yt.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,yt.jsx)("div",{className:"w-14 h-14 flex items-center justify-center bg-black bg-opacity-50 group-hover:bg-opacity-80 transition-all duration-300 rounded-full",children:(0,yt.jsx)("svg",{className:"w-8 h-8 text-white",viewBox:"0 0 24 24",fill:"currentColor",children:(0,yt.jsx)("path",{d:"M8 5v14l11-7L8 5z"})})})})]})}),t&&(0,yt.jsxs)("div",{className:"fixed inset-0 flex items-center justify-center bg-misc-overlay cursor-pointer z-[9999] w-full",onClick:()=>n(null),children:[(0,yt.jsx)("div",{className:"absolute top-10 right-8 text-white cursor-pointer",children:(0,yt.jsx)(gU,{size:24,onClick:e=>{e.stopPropagation(),n(null)}})}),(0,yt.jsx)("div",{className:"relative rounded-lg shadow-lg cursor-default w-full max-w-[80%] h-[760px]",onClick:e=>e.stopPropagation(),children:(0,yt.jsx)("iframe",{className:"w-full h-full aspect-video rounded-lg",src:t,title:(0,pt.__)("SureForms: Custom WordPress Forms MADE SIMPLE","surecookie"),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})]})]})},vce=()=>(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(oce,{}),(0,yt.jsxs)(Dk,{className:"h-full pb-8 max-[1920px]:max-w-full mx-auto box-content bg-background-secondary gap-6",cols:12,containerType:"grid",gap:"2xl",children:[(0,yt.jsx)(Dk.Item,{className:"col-span-12 lg:col-span-8",children:(0,yt.jsxs)(Dk,{direction:"column",className:"gap-8 relative",children:[(0,yt.jsx)(yce,{}),(0,yt.jsx)(qle,{}),(0,yt.jsx)(tce,{})]})}),(0,yt.jsxs)(Dk.Item,{className:"col-span-12 lg:col-span-4 flex flex-col gap-6",children:[(0,yt.jsx)(Xk,{}),(0,yt.jsx)(Gle,{}),(0,yt.jsx)(fce,{}),(0,yt.jsx)(ece,{})]})]})]}),bce=_b("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),wce=_b("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),xce=_b("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),kce=e=>String(e??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"),_ce=({modalDescription:e,cookiePolicyUrl:t,cookiePolicyTitle:n})=>{const r=ub(e||"");if(!r.includes("{cookie_policy_link}"))return r;if(!t)return r.replace(/\s*\{cookie_policy_link\}\s*/g," ").replace(/\s+/g," ").trim();const o='<a href="'+kce(t)+'" target="_blank" rel="noopener noreferrer" class="surecookie-modal-policy-link">'+kce(n||(0,pt.__)("Cookie Policy","surecookie"))+"</a>";return r.split("{cookie_policy_link}").join(o)},Cce=({isOpen:e,onClose:t,onSave:n,settings:r={},isPreview:o=!1})=>{const[i,s]=(0,ct.useState)({}),[a,l]=(0,ct.useState)([]),[c,u]=(0,ct.useState)([]),[d,A]=(0,ct.useState)([]),[h,p]=(0,ct.useState)([]),[f,m]=(0,ct.useState)(!0),[g,y]=(0,ct.useState)(""),[v,b]=(0,ct.useState)(window.innerWidth<=768),[w,x]=(0,ct.useState)("cookies"),[k,_]=(0,ct.useState)(!1),C=(0,ct.useRef)(null),B=(0,ct.useRef)(null),S=(0,ct.useRef)(null);(0,ct.useEffect)(()=>{e&&S.current&&(B.current=S.current.ownerDocument.activeElement)},[e]),(0,ct.useEffect)(()=>{!e&&B.current&&(B.current.focus?.(),B.current=null)},[e]),(0,ct.useEffect)(()=>{const e=window.matchMedia("(max-width: 768px)"),t=e=>b(e.matches);return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,ct.useEffect)(()=>{const e=window.surecookiePublicSettings?.cookie_categories||{},t=r.cookie_categories&&Object.keys(r.cookie_categories).length?Object.values(r.cookie_categories):Object.values(e);l(t);const n=Object.values(r?.custom_cookies||{});u(n);const o={};t.forEach(e=>{o[e.id]=!!e.required});const i=localStorage.getItem("surecookie_preferences");if(i)try{const e=JSON.parse(i);t.forEach(t=>{t.required?o[t.id]=!0:void 0!==e[t.id]&&(o[t.id]=e[t.id])}),s(o)}catch(e){s(o)}else s(o);m(!1)},[r.cookie_categories,r.custom_cookies,e]),(0,ct.useEffect)(()=>{e||(A([]),x("cookies"),_(!1))},[e]);const j=Boolean(r.consent_forwarding_enabled??window?.surecookiePublicSettings?.consent_forwarding_enabled),E=Boolean(r.consent_forwarding_show_sites??window?.surecookiePublicSettings?.consent_forwarding_show_sites),N=r.consent_forwarding_partner_sites??window?.surecookiePublicSettings?.consent_forwarding_partner_sites,I=Array.isArray(N)?N:N&&"object"==typeof N?Object.values(N):[],F=[...new Set(I.filter(e=>"string"==typeof e&&/^https?:\/\//i.test(e)&&e.replace(/\/+$/,"")!==window.location.origin))],T=r.consent_forwarding_description??window?.surecookiePublicSettings?.consent_forwarding_description??"",L=(0,ct.useMemo)(()=>ub(T||""),[T]),P=j&&E;(0,ct.useEffect)(()=>{if(e&&C.current){const e=setTimeout(()=>{C.current.focus()},100);return()=>clearTimeout(e)}},[e]);const M=(0,ct.useCallback)(e=>e?Array.from(e.querySelectorAll('button:not([disabled]), a[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')):[],[]),O=(0,ct.useCallback)(n=>{if(!e)return;if("Escape"===n.key)return n.preventDefault(),void t();if("Tab"!==n.key)return;const r=M(C.current);if(0===r.length)return;const o=r[0],i=r[r.length-1];n.shiftKey?C.current.ownerDocument.activeElement===o&&(n.preventDefault(),i.focus()):C.current.ownerDocument.activeElement===i&&(n.preventDefault(),o.focus())},[e,t,M]);(0,ct.useEffect)(()=>(document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)),[O]);const D=(0,ct.useMemo)(()=>ob(r),[r]),U=(0,ct.useMemo)(()=>r?.categories_in_use||window.surecookiePublicSettings?.categories_in_use||[],[r]),R=(0,ct.useMemo)(()=>((e,t,n)=>{const r=Array.isArray(e)?e:[];if(!n||!Array.isArray(t)||0===t.length)return r;const o=new Set(t),i=r.filter(e=>o.has(e?.id)||!!e?.required);return i.length?i:r})(a,U,D),[a,U,D]),z=(0,ct.useMemo)(()=>{const e=Math.max(1,Math.min(4,R.length||4));return Array.from({length:e},(e,t)=>t+1)},[R]),Q="opt-out"===(r?.consent_model||window.surecookiePublicSettings?.consent_model||"opt-in"),H=(0,ct.useCallback)(e=>{if(!D||Q)return e;const t=new Set(R.map(e=>e.id)),n={...e};return a.forEach(e=>{t.has(e.id)||e.required||(n[e.id]=!1)}),n},[D,Q,R,a]),q=()=>{const e={};a.forEach(t=>{e[t.id]=!0});const t=H(e);s(t),localStorage.setItem("surecookie_preferences",JSON.stringify(t)),window.surecookieManager&&window.surecookieManager.saveConsent(t,"accepted"),y((0,pt.__)("All cookies accepted.","surecookie")),n(t)},V=()=>{const e={};a.forEach(t=>{e[t.id]=!!t.required}),s(e),localStorage.setItem("surecookie_preferences",JSON.stringify(e)),window.surecookieManager&&window.surecookieManager.saveConsent(e,"declined"),y((0,pt.__)("Non-essential cookies rejected.","surecookie")),n(e)},K=()=>{const e=H(i);localStorage.setItem("surecookie_preferences",JSON.stringify(e)),window.surecookieManager&&window.surecookieManager.saveConsent(e,"partially_accepted"),y((0,pt.__)("Preferences saved successfully.","surecookie")),n(e)},W=r.cookie_policy_page_url||window?.surecookiePublicSettings?.cookie_policy_page_url||"",G=r.cookie_policy_page_title||window?.surecookiePublicSettings?.cookie_policy_page_title||"",$=r.preferences_modal_heading||window?.surecookiePublicSettings?.preferences_modal_heading||"",Y=r.preferences_modal_description||window?.surecookiePublicSettings?.preferences_modal_description||"",Z=r.text_color||"var(--surecookie-banner-text-color, #374151)",X=r.text_color||"var(--surecookie-banner-text-color, #ffffff)",J=r.banner_bg_color||"var(--surecookie-banner-background-color, #111827)",ee="#37415126",te=(0,yt.jsx)("div",{"aria-live":"polite","aria-atomic":"true",className:"surecookie-sr-only",children:g});return e?(0,yt.jsxs)("div",{ref:S,children:[te,(0,yt.jsx)("div",{className:"surecookie-modal-backdrop",onClick:t,children:(0,yt.jsx)("div",{className:"surecookie-modal-wrapper",children:(0,yt.jsxs)("div",{ref:C,role:"dialog","aria-modal":"true","aria-labelledby":"surecookie-modal-title","aria-describedby":"surecookie-modal-description",className:"surecookie-preferences-modal",style:{backgroundColor:J,color:Z,...r.banner_bg_color&&{"--surecookie-banner-background-color":r.banner_bg_color},...r.text_color&&{"--surecookie-banner-text-color":r.text_color},...r.accept_btn_color&&{"--surecookie-banner-primary-color":r.accept_btn_color},...r.decline_btn_color&&{"--surecookie-banner-secondary-color":r.decline_btn_color}},onClick:e=>e.stopPropagation(),tabIndex:"-1",children:[(0,yt.jsxs)("div",{className:"surecookie-modal-header",children:[(0,yt.jsxs)("div",{className:"surecookie-modal-header-text",children:[(0,yt.jsx)("h2",{id:"surecookie-modal-title",className:"surecookie-modal-title",children:$}),(0,yt.jsx)("div",{id:"surecookie-modal-description",className:"surecookie-modal-description",dangerouslySetInnerHTML:{__html:_ce({modalDescription:Y,cookiePolicyUrl:W,cookiePolicyTitle:G})}})]}),(0,yt.jsx)("button",{type:"button",className:"surecookie-modal-close-btn",onClick:t,"aria-label":(0,pt.__)("Close privacy preferences dialog","surecookie"),children:(0,yt.jsx)(gU,{size:20,"aria-hidden":"true"})})]}),P&&(0,yt.jsxs)("div",{className:"surecookie-modal-tabs",role:"tablist","aria-label":(0,pt.__)("Preference sections","surecookie"),tabIndex:-1,onKeyDown:e=>{let t=null;"ArrowRight"===e.key||"ArrowLeft"===e.key?t="cookies"===w?"forwarding":"cookies":"Home"===e.key?t="cookies":"End"===e.key&&(t="forwarding"),t&&t!==w&&(e.preventDefault(),x(t),C.current?.ownerDocument?.getElementById(`surecookie-tab-btn-${t}`)?.focus())},children:[(0,yt.jsx)("button",{type:"button",role:"tab","aria-selected":"cookies"===w,"aria-controls":"surecookie-tab-cookies",id:"surecookie-tab-btn-cookies",tabIndex:"cookies"===w?0:-1,className:"surecookie-modal-tab "+("cookies"===w?"active":""),onClick:()=>x("cookies"),children:(0,pt.__)("Cookies","surecookie")}),(0,yt.jsx)("button",{type:"button",role:"tab","aria-selected":"forwarding"===w,"aria-controls":"surecookie-tab-forwarding",id:"surecookie-tab-btn-forwarding",tabIndex:"forwarding"===w?0:-1,className:"surecookie-modal-tab "+("forwarding"===w?"active":""),onClick:()=>x("forwarding"),children:(0,pt.__)("Consent Forwarding","surecookie")})]}),P&&(0,yt.jsxs)("div",{id:"surecookie-tab-forwarding",role:"tabpanel","aria-labelledby":"surecookie-tab-btn-forwarding",className:"surecookie-forwarding-panel",hidden:"forwarding"!==w,children:[L&&(0,yt.jsx)("div",{className:"surecookie-forwarding-description",dangerouslySetInnerHTML:{__html:L}}),F.length>0?(0,yt.jsxs)("div",{className:"surecookie-forwarding-accordion",children:[(0,yt.jsxs)("button",{type:"button",className:"surecookie-forwarding-toggle","aria-expanded":k,"aria-controls":"surecookie-forwarding-sites-list",onClick:()=>_(e=>!e),children:[(0,yt.jsx)("span",{className:"surecookie-forwarding-count",children:(0,pt.sprintf)(/* translators: %d: number of partner sites */ /* translators: %d: number of partner sites */
59 (0,pt.__)("%d connected site(s)","surecookie"),F.length)}),(0,yt.jsx)("span",{className:"surecookie-forwarding-chevron "+(k?"expanded":""),"aria-hidden":"true",children:(0,yt.jsx)(bce,{size:14,strokeWidth:2.5,focusable:"false"})})]}),(0,yt.jsx)("ul",{id:"surecookie-forwarding-sites-list",className:"surecookie-forwarding-sites",hidden:!k,"aria-label":(0,pt.__)("Sites that will receive your consent","surecookie"),children:k&&F.map(e=>(0,yt.jsx)("li",{className:"surecookie-forwarding-site",children:(0,yt.jsxs)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"surecookie-forwarding-site-link",children:[(0,yt.jsx)(wce,{size:13,"aria-hidden":"true",focusable:"false",className:"surecookie-forwarding-site-globe"}),(0,yt.jsx)("span",{className:"surecookie-forwarding-site-url",children:e}),(0,yt.jsx)(xce,{size:11,"aria-hidden":"true",focusable:"false",className:"surecookie-forwarding-site-ext"})]})},e))})]}):(0,yt.jsx)("p",{className:"surecookie-forwarding-note",children:(0,pt.__)("No partner sites configured.","surecookie")})]}),(0,yt.jsx)("div",{id:"surecookie-tab-cookies",role:P?"tabpanel":void 0,"aria-labelledby":P?"surecookie-tab-btn-cookies":void 0,hidden:P&&"cookies"!==w,className:"surecookie-categories-wrapper",children:(0,yt.jsx)("div",{className:"surecookie-categories-scroll",children:(0,yt.jsxs)("div",{className:"surecookie-categories-list",role:"status","aria-live":"polite","aria-busy":f,children:[f&&z.map(e=>(0,yt.jsx)("div",{className:"surecookie-category-item",style:{borderBottomColor:ee},children:(0,yt.jsxs)("div",{className:"surecookie-category-header",children:[(0,yt.jsxs)("div",{className:"surecookie-category-trigger",children:[(0,yt.jsx)("span",{className:"surecookie-skeleton surecookie-skeleton-icon"}),(0,yt.jsx)("span",{className:"surecookie-skeleton surecookie-skeleton-title"})]}),1===e?(0,yt.jsx)("span",{className:"surecookie-skeleton surecookie-skeleton-badge"}):(0,yt.jsx)("span",{className:"surecookie-skeleton surecookie-skeleton-toggle"})]})},e)),!f&&R.map(e=>{const t=i[e.id],n=(r=e.id,c.filter(e=>e.category===r));var r;const o=d.includes(e.id),l=`surecookie-category-details-${e.id}`,u=`surecookie-cookie-table-${e.id}`;return(0,yt.jsxs)("div",{className:"surecookie-category-item",style:{borderBottomColor:ee},children:[(0,yt.jsxs)("div",{className:"surecookie-category-header",children:[(0,yt.jsxs)("button",{type:"button",className:"surecookie-category-trigger",onClick:()=>(e=>{A(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])})(e.id),"aria-expanded":o,"aria-controls":l,children:[(0,yt.jsx)("span",{className:"surecookie-expand-icon "+(o?"expanded":""),style:{color:Z},"aria-hidden":"true",children:(0,yt.jsx)(bce,{size:18,strokeWidth:2.5,focusable:"false"})}),(0,yt.jsx)("span",{className:"surecookie-category-name",style:{color:X},children:e.name})]}),(0,yt.jsxs)("div",{className:"surecookie-category-controls",children:[!!e.required&&(0,yt.jsx)("span",{className:"surecookie-always-active","aria-hidden":"true",children:(0,pt.__)("Always Active","surecookie")}),(0,yt.jsx)("button",{type:"button",className:"surecookie-toggle-btn",role:"switch","aria-checked":t?"true":"false","aria-label":e.required?(0,pt.sprintf)(/* translators: %s: cookie category name */ /* translators: %s: cookie category name */
60 (0,pt.__)("%s: always active, cannot be disabled","surecookie"),e.name):e.name,onClick:()=>(e=>{const t=a.find(t=>t.id===e);t?.required||s(t=>({...t,[e]:!t[e]}))})(e.id),"aria-disabled":!!e.required,style:{backgroundColor:t?"var(--surecookie-banner-primary-color, #2563eb)":"#D1D5DB"},children:(0,yt.jsx)("span",{className:"surecookie-toggle-knob "+(t?"checked":""),"aria-hidden":"true"})})]})]}),(0,yt.jsx)("div",{id:l,className:"surecookie-category-details",hidden:!o,children:o&&(0,yt.jsxs)(yt.Fragment,{children:[e.description&&(0,yt.jsx)("p",{className:"surecookie-category-desc",children:e.description}),n.length>0&&(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("button",{type:"button",className:"surecookie-cookie-table-toggle",onClick:t=>{t.stopPropagation(),(e=>{p(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])})(e.id)},"aria-expanded":h.includes(e.id),"aria-controls":u,children:[(0,yt.jsx)("span",{className:"surecookie-cookie-table-label",children:(0,pt.__)("View Cookies","surecookie")}),(0,yt.jsx)("span",{className:"surecookie-table-chevron "+(h.includes(e.id)?"expanded":""),"aria-hidden":"true",children:(0,yt.jsx)(bce,{size:16,strokeWidth:2.5,focusable:"false"})})]}),(0,yt.jsx)("div",{id:u,className:"surecookie-cookie-table-wrapper",hidden:!h.includes(e.id),children:h.includes(e.id)&&(0,yt.jsxs)("table",{className:"surecookie-cookie-table","aria-label":(0,pt.sprintf)(/* translators: %s: cookie category name */ /* translators: %s: cookie category name */
61 (0,pt.__)("%s cookies details","surecookie"),e.name),children:[(0,yt.jsx)("thead",{children:(0,yt.jsxs)("tr",{children:[(0,yt.jsx)("th",{scope:"col",children:(0,pt.__)("Name","surecookie")}),(0,yt.jsx)("th",{scope:"col",children:(0,pt.__)("Provider","surecookie")}),(0,yt.jsx)("th",{scope:"col",children:(0,pt.__)("Duration","surecookie")}),(0,yt.jsx)("th",{scope:"col",children:(0,pt.__)("Expiry","surecookie")})]})}),(0,yt.jsx)("tbody",{children:n.map(e=>(0,yt.jsxs)("tr",{children:[(0,yt.jsx)("td",{children:e.name}),(0,yt.jsx)("td",{children:e.provider||"-"}),(0,yt.jsx)("td",{children:e.duration||"-"}),(0,yt.jsx)("td",{children:e.expires||"-"})]},e.id||`${e.category}-${e.name}`))})]})})]})]})})]},e.id)})]})})}),(0,yt.jsx)("div",{className:"surecookie-modal-footer",children:v?(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[(0,yt.jsx)("button",{type:"button",className:"surecookie-btn-outline surecookie-btn-sm",onClick:o?void 0:q,"aria-disabled":o?"true":void 0,children:(0,pt.__)("Accept All","surecookie")}),(0,yt.jsx)("button",{type:"button",className:"surecookie-btn-outline-secondary surecookie-btn-sm",onClick:o?void 0:V,"aria-disabled":o?"true":void 0,children:(0,pt.__)("Reject All","surecookie")})]}),(0,yt.jsx)("button",{type:"button",className:"surecookie-btn-primary surecookie-btn-sm",onClick:o?void 0:K,"aria-disabled":o?"true":void 0,children:(0,pt.__)("Confirm My Choices","surecookie")})]}):(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:"surecookie-footer-actions",children:[(0,yt.jsx)("button",{type:"button",className:"surecookie-btn-outline",onClick:o?void 0:q,"aria-disabled":o?"true":void 0,children:(0,pt.__)("Accept All","surecookie")}),(0,yt.jsx)("button",{type:"button",className:"surecookie-btn-outline-secondary",onClick:o?void 0:V,"aria-disabled":o?"true":void 0,children:(0,pt.__)("Reject All","surecookie")})]}),(0,yt.jsx)("button",{type:"button",className:"surecookie-btn-primary",onClick:o?void 0:K,"aria-disabled":o?"true":void 0,children:(0,pt.__)("Confirm My Choices","surecookie")})]})}),!r.remove_branding&&(0,yt.jsx)("div",{className:"surecookie-modal-footer-branding",style:{borderTopColor:"#37415126",justifyContent:"flex-end"},children:(0,yt.jsxs)("a",{href:ni("preferences_modal_branding"),target:"_blank",rel:"noopener noreferrer",className:"surecookie-modal-branding-content","aria-label":(0,pt.__)("Powered by SureCookie (opens in new tab)","surecookie"),children:[(0,yt.jsx)("span",{"aria-hidden":"true",children:(0,pt.__)("Powered by","surecookie")}),(0,yt.jsx)(gb,{width:"10",height:"12","aria-hidden":!0,focusable:"false"}),(0,yt.jsx)("span",{"aria-hidden":"true",children:"SureCookie"})]})})]})})})]}):te},Bce=()=>(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(zD,{headingWidth:"w-48",descriptionWidth:"w-[28rem]"}),(0,yt.jsx)(zD,{headingWidth:"w-44",descriptionWidth:"w-[32rem]"}),(0,yt.jsx)(zD,{headingWidth:"w-44",descriptionWidth:"w-[36rem]"}),(0,yt.jsx)("div",{className:"flex justify-start gap-3 mt-6 mb-4",children:(0,yt.jsx)(Zk,{className:"h-10 w-16 rounded-md"})})]}),Sce=()=>{const{getCurrentValue:e,updateSetting:t,isLoading:n,isError:r}=si();return(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("Preferences","surecookie"),pageDescription:(0,pt.__)("Admin and plugin preferences for SureCookie.","surecookie"),children:n?(0,yt.jsx)(Bce,{}):r?(0,yt.jsx)(pk,{color:"error",showIcon:!0,title:(0,pt.__)("Failed to load settings","surecookie"),message:(0,pt.__)("An error occurred while loading settings. Please refresh the page to try again.","surecookie")}):(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)("div",{className:"flex items-center justify-between",children:(0,yt.jsx)(Zb,{"aria-label":(0,pt.__)("SureCookie admin menu location toggle","surecookie"),id:"top-level-menu-switch",label:{heading:(0,pt.__)("SureCookie Admin Menu","surecookie"),description:(0,pt.__)("Toggle to show SureCookie in the main menu or under Settings → SureCookie.","surecookie")},onChange:e=>{t("top_level_menu_enabled",e)},size:"sm",value:e("top_level_menu_enabled")??!0})}),(0,yt.jsx)("div",{className:"flex items-center justify-between",children:(0,yt.jsx)(Zb,{"aria-label":(0,pt.__)("Hide SureCookie branding toggle","surecookie"),id:"remove-branding-switch",label:{heading:(0,pt.__)("Hide SureCookie Branding","surecookie"),description:window?.surecookieAdminData?.is_pro_active?(0,pt.__)('Remove the "Powered by SureCookie" text from the consent banner and preferences modal.',"surecookie"):(0,yt.jsxs)("span",{children:[(0,yt.jsx)("a",{href:ni("pricing_hide_branding_settings","pricing/"),target:"_blank",rel:"noopener noreferrer",className:"!text-link-primary hover:!text-link-primary-hover hover:underline [box-shadow:none]",children:(0,pt.__)("Upgrade Now","surecookie")})," ",(0,pt.__)('to remove the "Powered by SureCookie" text from the consent banner and preferences modal.',"surecookie")]})},onChange:window?.surecookieAdminData?.is_pro_active?e=>t("remove_branding",e):void 0,size:"sm",value:!!window?.surecookieAdminData?.is_pro_active&&(e("remove_branding")??!1),disabled:!window?.surecookieAdminData?.is_pro_active})}),(0,yt.jsx)("div",{className:"flex items-center justify-between",children:(0,yt.jsx)(Zb,{"aria-label":(0,pt.__)("Contribute to SureCookie toggle","surecookie"),id:"usage-optin-switch",label:{heading:(0,pt.__)("Contribute to SureCookie","surecookie"),description:(0,yt.jsxs)("span",{children:[(0,yt.jsx)("span",{children:(0,pt.__)("Help shape the future of SureCookie. Share how you use the plugin so we can build features that matter, fix issues faster, and make smarter decisions.","surecookie")})," ",(0,yt.jsx)("a",{href:ti,target:"_blank",rel:"noopener noreferrer",className:"!text-link-primary hover:!text-link-primary-hover hover:underline [box-shadow:none]",children:(0,pt.__)("Learn More","surecookie")})]})},onChange:e=>t("surecookie_usage_optin",e),size:"sm",value:e("surecookie_usage_optin")??!1})}),(0,yt.jsx)(h_,{})]})})},jce=({isVisible:e,onClose:t,indicatorLabel:n,forcePreferences:r=!0})=>{const[o,i]=(0,ct.useState)(!1),[s,a]=(0,ct.useState)(!0),[l,c]=(0,ct.useState)(null),{getCurrentValue:u,isLoaded:d}=si(),A=e,h=u("custom_css")||"",p=u("message_heading")||(0,pt.__)("Cookie Notice","surecookie"),f=u("message_description")??(0,pt.__)("This website uses cookies to enhance your browsing experience, personalize content, provide social media features, and analyze our traffic. You can review and manage your cookie settings at any time, or accept all cookies to proceed.","surecookie"),m=(0,ct.useMemo)(()=>ub(f),[f]),g=u("notice_type")||"box",y=u("notice_position")||$o,v=!!u("banner_overlay_enabled"),b=u("color_palette")||"default",w=Zo.find(e=>e.id===b)||Zo[0],x=(0,ct.useMemo)(()=>{const e={primary:w?.acceptButton||"",primaryHover:w?.acceptButtonHover||"",secondary:w?.declineButton||"",foreground:w?.textColor||"",background:w?.bgColor||""},t=(0,ht.applyFilters)("surecookie.preview.colors",e,{getCurrentValue:u,palette:w});return t&&"object"==typeof t?{...e,...t}:e},[w,u]),k=x.background||u("banner_bg_color")||"#111827",_=u("banner_width")||"600",C=x.foreground||u("text_color")||"#374151",B=u("banner_logo")||"",S=x.primary||u("accept_btn_color")||"#2563eb",j=x.primaryHover||u("accept_btn_hover_color")||"#1d4ed8",E=x.secondary||u("decline_btn_color")||"transparent",N=u("accept_all_enabled")||!1,I=u("remove_branding")||!1,F=u("cookie_policy_page_id")||0,{data:T}=oi(F),L=(0,ct.useMemo)(()=>T&&"publish"===T.status?{url:T.link||"",title:T.title||""}:null,[T]),P=u("banner_animation")||"fade",M=u("accept_btn_text")||(0,pt.__)("Only Essential","surecookie"),O=u("accept_all_btn_text")||(0,pt.__)("Accept All","surecookie"),D=u("decline_btn_text")||(0,pt.__)("Decline","surecookie"),U=u("preferences_btn_text")||(0,pt.__)("Preferences","surecookie"),R=u("preferences_modal_heading")||"",z=u("preferences_modal_description")||"",Q=u("cookie_categories")||[],H=u("custom_cookies")||[],{data:q}=er(),V=u("hide_unused_categories"),K=u("consent_model"),W=q?.inUse??[],{data:G}=$n(),$=(0,ct.useMemo)(()=>{const e=[];return(G?.cookies||[]).forEach(t=>{(t.cookies||[]).forEach(n=>{e.push({...n,category:t.id,type:"scanned"})})}),e},[G]),Y=(0,ct.useMemo)(()=>Object.values(H||{}),[H]),Z=(0,ct.useMemo)(()=>{const e=new Set(Y.map(e=>e.name)),t=$.filter(t=>!e.has(t.name));return[...Y,...t]},[Y,$]);(0,ct.useEffect)(()=>{d&&A&&X()&&a(!0);const e=()=>{!document.hidden&&d&&A&&X()&&a(!0)};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[d,A,H]),(0,ct.useLayoutEffect)(()=>{if(!A||"banner"!==g)return void c(null);const e=document.getElementById("wpcontent");if(!e)return void c(null);const t=()=>{const t=e.getBoundingClientRect(),n=document.querySelector('nav[aria-label="Sidebar"]'),r=n?.getBoundingClientRect(),o=r&&r.width>0?r.right:t.left,i=Math.max(0,window.innerWidth-t.right);c({left:`${Math.max(0,Math.round(o))}px`,right:`${Math.round(i)}px`})};t();const n=window.ResizeObserver?new window.ResizeObserver(t):null;return n?.observe(e),window.addEventListener("resize",t),window.addEventListener("hashchange",t),()=>{n?.disconnect(),window.removeEventListener("resize",t),window.removeEventListener("hashchange",t)}},[A,g]);const X=()=>{if(!H||0===H.length)return!1;const e=window.surecookieManager?window.surecookieManager.getConsent():null;if(!e||!e.preferences)return!1;for(const t of H)if(t.expires&&new Date(t.expires)<new Date&&e.preferences[t.category])return!0;return!1};(0,ct.useEffect)(()=>{const e=document.getElementById("surecookie-custom-css-preview");if(e&&e.remove(),h&&h.trim()){const e=document.createElement("style");e.id="surecookie-custom-css-preview",e.textContent=`/* surecookie Custom CSS - Preview */\n${h}`,document.head.appendChild(e)}return()=>{const e=document.getElementById("surecookie-custom-css-preview");e&&e.remove()}},[h]);const J=(e=>{const{getCurrentValue:t}=si();return(0,ct.useMemo)(()=>Object.fromEntries(e.map(e=>[e,t(e)])),[t,e.join("|")])})(["consent_forwarding_enabled","consent_forwarding_mode","consent_forwarding_partner_sites","consent_forwarding_description","consent_forwarding_show_sites"]),ee=(0,ct.useMemo)(()=>ub(J.consent_forwarding_description),[J.consent_forwarding_description]),te=(0,ct.useMemo)(()=>({banner_bg_color:k,text_color:C,accept_btn_color:S,decline_btn_color:E,preferences_btn_text_color:"var(--surecookie-banner-text-color, #ffffff)",decline_btn_border_color:"var(--surecookie-banner-primary-color, #6b7280)",cookie_categories:Q,custom_cookies:Z,hide_unused_categories:V,categories_in_use:W,consent_model:K,remove_branding:I,cookie_policy_page_url:L?.url||"",cookie_policy_page_title:L?.title||"",preferences_modal_heading:R,preferences_modal_description:z,consent_forwarding_enabled:J.consent_forwarding_enabled,consent_forwarding_mode:J.consent_forwarding_mode,consent_forwarding_partner_sites:"all"===J.consent_forwarding_mode?window?.surecookieAdminData?.consent_forwarding_all_sites??[]:J.consent_forwarding_partner_sites??[],consent_forwarding_description:J.consent_forwarding_description,consent_forwarding_show_sites:J.consent_forwarding_show_sites}),[k,C,S,E,Q,Z,V,W,K,I,L,R,z,J]);if(!d)return null;if(!A)return null;const ne=(e,t,n)=>{const r=["surecookie-btn-base"];return e&&r.push("surecookie-btn-transparent"),t&&r.push("surecookie-btn-font-semibold"),n&&r.push("surecookie-btn-with-border"),r.join(" ")},re=(e,t)=>{const n={color:e};return t&&(n.borderColor=t),n},oe=e=>{e.preventDefault(),e.stopPropagation(),a(!1),i(!0)};return(0,yt.jsxs)("div",{className:"surecookie-preview-root-container",style:{"--surecookie-banner-background-color":k,"--surecookie-banner-text-color":C,"--surecookie-banner-primary-color":S,"--surecookie-banner-primary-hover-color":j,"--surecookie-banner-secondary-color":E},children:[s&&v&&(0,yt.jsx)("div",{className:"surecookie-preview-banner-overlay","data-overlay":"true","aria-hidden":"true"}),s&&(0,yt.jsxs)("section",{id:"surecookie-preview-banner-container",role:"dialog","aria-modal":"true","aria-labelledby":p?"surecookie-preview-banner-heading":void 0,"aria-describedby":"surecookie-preview-banner-description",style:{backgroundColor:k,color:C,..."box"===g&&{width:`${_}px`},..."banner"===g&&l&&{left:l.left,right:l.right}},className:`surecookie-preview-banner surecookie-banner surecookie-container-mobile surecookie-banner-container ${"banner"===g?"surecookie-banner-container-banner":B?"surecookie-banner-container-box-with-logo":"surecookie-banner-container-box"} ${(()=>{if("banner"===g)return"top"===y?"surecookie-banner-position-top":"surecookie-banner-position-bottom";if("box"===g){const e="surecookie-banner-position-box-base";switch(y){case"bottom-left":return`${e} surecookie-banner-position-bottom-left`;case"bottom-center":return"surecookie-banner-position-bottom-center";case"bottom-right":default:return`${e} surecookie-banner-position-bottom-right`;case"middle":return"surecookie-banner-position-middle"}}return"surecookie-banner-position-bottom"})()} ${"slide"===P?"surecookie-banner-animation-slide":"surecookie-banner-animation-fade"}`,"data-preview":"true","data-dark-mode":No(k)?"true":"false",children:[(0,yt.jsx)("div",{className:"surecookie-styles",style:{position:"absolute",right:"0",..."top"===y?{top:"100%"}:{bottom:"100%"},display:"flex",flexDirection:"column",alignItems:"center"},children:(0,yt.jsx)(pk,{color:"info",className:jo("top"===y&&"rounded-t-none","top"!==y&&"rounded-b-none"),renderIcon:(0,yt.jsx)(e_,{content:(0,pt.__)("Buttons are for reference only in preview.","surecookie"),placement:"left",className:"z-999999",children:(0,yt.jsx)(hk,{className:"text-support-info shrink-0 cursor-pointer",size:20})}),title:n||(0,pt.__)("This is a worldwide banner preview","surecookie"),action:t&&(0,yt.jsx)("button",{type:"button",onClick:t,className:"shrink-0 p-0.5 rounded hover:bg-black/10 transition-colors","aria-label":(0,pt.__)("Close preview","surecookie"),children:(0,yt.jsx)(gU,{size:16,className:"text-text-secondary"})})})}),(0,yt.jsxs)("div",{className:"surecookie-banner-inner "+("box"===g?"surecookie-banner-inner-box":"surecookie-banner-inner-banner"),style:{..."box"===g&&{maxWidth:`${_}px`}},children:[B&&(0,yt.jsx)("div",{className:"surecookie-banner-logo-wrapper",children:(0,yt.jsx)("img",{src:B,alt:"Banner Logo",className:"surecookie-banner-logo"})}),(0,yt.jsxs)("div",{className:"surecookie-content-mobile surecookie-banner-content "+("box"===g?"surecookie-banner-content-box":"surecookie-banner-content-banner"),children:[(0,yt.jsxs)("div",{className:"surecookie-banner-text-wrapper",children:[p&&(0,yt.jsx)("h3",{id:"surecookie-preview-banner-heading",className:"surecookie-banner-heading "+("#111827"===k||"#1f2937"===k?"surecookie-banner-heading-white":""),style:{color:"#111827"===k||"#1f2937"===k?"var(--surecookie-banner-text-color, #ffffff)":C},children:p}),(0,yt.jsxs)("div",{id:"surecookie-preview-banner-description",className:"surecookie-banner-description",style:{color:"var(--surecookie-banner-text-color, "+C+")"},children:[(0,yt.jsx)("div",{dangerouslySetInnerHTML:{__html:m}}),J.consent_forwarding_enabled&&ee&&(0,yt.jsx)("div",{className:"surecookie-forwarding-description",dangerouslySetInnerHTML:{__html:ee}})]}),"banner"===g&&!I&&(0,yt.jsxs)("div",{className:"surecookie-branding-mobile surecookie-branding",children:[(0,yt.jsx)("span",{children:(0,pt.__)("Powered by","surecookie")}),(0,yt.jsx)(gb,{width:"10",height:"12","aria-hidden":!0,focusable:"false"}),(0,yt.jsx)("span",{children:"SureCookie"})]})]}),(0,yt.jsx)("div",{className:"surecookie-buttons-mobile surecookie-banner-buttons "+("box"===g?"surecookie-banner-buttons-box":"surecookie-banner-buttons-banner"),children:(()=>{const e=u("button_order")||"accept_all,accept,preferences,decline",t=rb(e,{acceptAllEnabled:N});r&&!t.includes("preferences")&&t.push("preferences");const n=t,o={decline:(0,yt.jsx)("button",{type:"button",className:`surecookie-decline-btn surecookie-button-mobile ${ne(!1,!1)}`,"aria-disabled":"true",style:re("#ffffff"),children:D},"decline"),preferences:(0,yt.jsx)("button",{type:"button",className:`surecookie-preferences-btn surecookie-button-mobile ${ne(!0,!0)}`,onClick:oe,style:re("var(--surecookie-banner-text-color, #ffffff)"),children:U},"preferences"),accept:(0,yt.jsx)("button",{type:"button",className:`surecookie-accept-btn surecookie-button-mobile ${ne(!1,!1)}`,"aria-disabled":"true",style:re("#ffffff"),children:M},"accept"),accept_all:N?(0,yt.jsx)("button",{type:"button",className:`surecookie-accept-all-btn surecookie-button-mobile ${ne(!1,!1)}`,"aria-disabled":"true",style:re("#ffffff"),children:O},"accept_all"):null},i=n.map(e=>o[e]).filter(Boolean);return"banner"===g||I?i:[...i,(0,yt.jsxs)("div",{className:"surecookie-branding-mobile surecookie-branding",children:[(0,yt.jsx)("span",{children:(0,pt.__)("Powered by","surecookie")}),(0,yt.jsx)(gb,{width:"10",height:"12","aria-hidden":!0,focusable:"false"}),(0,yt.jsx)("span",{children:"SureCookie"})]},"branding")]})()})]})]})]}),(0,yt.jsx)(Cce,{isOpen:o,onClose:()=>{i(!1),window.surecookieManager&&window.surecookieManager.hasConsent()||a(!0)},onSave:()=>{i(!1)},isPreview:!0,settings:te})]})},Ece=_b("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),Nce="cloud",Ice="assisted",Fce=e=>e?.scan_mode===Ice,Tce=e=>{if(!e||e<0)return"0s";const t=Math.floor(e/60),n=e%60;return 0===t?`${n}s`:`${t}m ${n}s`},Lce=({scanStatus:e})=>{const t=e?.progress,n=t?.total_pages||e?.pages_count||0,r=t?.completed_pages||0,o=t?.failed_pages||0,i="number"==typeof t?.percent?t.percent:null,s=n>0?Math.round(r/n*100):0,a=i??s,l=e?.in_progress?Math.max(a,5):a,c=(0,ct.useRef)(null),[u,d]=(0,ct.useState)(!1);if((0,ct.useEffect)(()=>{if(!e?.in_progress)return d(!1),void(c.current=null);null!==c.current&&l===c.current?d(!0):(d(!1),c.current=l)},[l,e?.in_progress]),!e?.in_progress&&"idle"===e?.status)return null;const A=(e=>{if(!e?.in_progress)return(0,pt.__)("Complete","surecookie");const t=e?.progress,n=t?.current_phase,r=t?.total_pages||e?.pages_count||0,o=t?.pages_processed??t?.completed_pages??0;switch(n){case"queued":return(0,pt.__)("Queued…","surecookie");case"initializing":return(0,pt.__)("Starting scan…","surecookie");case"capturing":if(r>0){const e=Math.min(o+1,r);return(0,pt.sprintf)(/* translators: 1: current page index, 2: total pages */ /* translators: 1: current page index, 2: total pages */
62 (0,pt.__)("Scanning page %1$d of %2$d…","surecookie"),e,r)}return(0,pt.__)("Scanning pages…","surecookie");case"analyzing":return(0,pt.__)("Analyzing cookies…","surecookie");case"finalizing":return(0,pt.__)("Finalizing…","surecookie");case"completed":return(0,pt.__)("Complete","surecookie");case"failed":return(0,pt.__)("Scan failed","surecookie")}const i=e.status;return"queued"===i?(0,pt.__)("Queued…","surecookie"):t&&t.completed_pages>0?(0,pt.__)("Scanning pages…","surecookie"):"running"===i?(0,pt.__)("Starting scan…","surecookie"):(0,pt.__)("In progress…","surecookie")})(e),h=e?.elapsed||0,p=e?.estimated_remaining_seconds||null;return(0,yt.jsxs)("div",{className:"bg-background-secondary border border-border-subtle rounded-lg p-4 mb-4 space-y-2",children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,yt.jsx)(Iw,{size:14,weight:600,color:"primary",children:A}),(0,yt.jsx)(Iw,{size:13,color:"tertiary",className:"font-mono",children:Tce(h)})]}),(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2 dark:bg-gray-700 overflow-hidden",role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,"aria-label":(0,pt.__)("Scan progress","surecookie"),children:(0,yt.jsx)("div",{className:jo("bg-brand-primary-600 h-2 rounded-full transition-all duration-500 ease-out",u&&"surecookie-progress-striped"),style:{width:`${Math.max(l,2)}%`}})}),(0,yt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,yt.jsxs)(Iw,{size:13,color:"secondary",children:[n>0?(0,pt.sprintf)(/* translators: 1: completed pages, 2: total pages */ /* translators: 1: completed pages, 2: total pages */
63 (0,pt.__)("%1$d of %2$d pages scanned","surecookie"),r,n):(0,pt.__)("Preparing scan…","surecookie"),p&&e?.in_progress?(0,pt.sprintf)(/* translators: %s: estimated time remaining */ /* translators: %s: estimated time remaining */
64 (0,pt.__)("· ~%s left","surecookie"),Tce(p)):""]}),(0,yt.jsx)(Iw,{size:13,weight:600,color:"secondary",className:"font-mono",children:`${l}%`})]})]}),o>0&&e?.error_details?.length>0&&(0,yt.jsx)("div",{className:"mt-2 pt-2 border-t border-border-subtle space-y-1",children:e.error_details.map((e,t)=>(0,yt.jsxs)("div",{className:"flex items-start gap-2 text-sm",children:[(0,yt.jsx)(Ak,{size:14,className:"text-amber-500 mt-0.5 shrink-0"}),(0,yt.jsxs)("div",{className:"min-w-0",children:[(0,yt.jsx)(Iw,{size:13,color:"primary",className:"font-mono truncate block",children:e.url}),(0,yt.jsx)(Iw,{size:12,color:"tertiary",children:e.error})]})]},t))})]})},Pce=({isOpen:e,setIsOpen:t,onScanComplete:n,onSwitchScanMode:r=null,isAssistedMode:o=!1})=>{const i=(0,ct.useRef)(!1),s=(0,ct.useRef)(!1),a=(0,ct.useRef)(null),l=(0,ct.useRef)(!0),[c,u]=(0,ct.useState)(!1),[d,A]=(0,ct.useState)(!1),h=rr(),p=bt(),{data:f}=tr(),m=Fce(f)||o,g=f?.in_progress||c,y=f?.isStuck||!1,v=f?.progress||{},b=v.total_pages??f?.pages_count??0,w=Math.min(v.failed_pages??f?.error_details?.length??0,b),x=Math.max(b-w,0),k=!!f&&!f.in_progress&&"idle"!==f.status,{data:_,refetch:C}=Sn({queryKey:Nn.siteScanner.logs(),queryFn:async()=>(await On()).data||[],refetchInterval:!!g&&6e3,refetchIntervalInBackground:!0,staleTime:0,enabled:e});(0,ct.useEffect)(()=>{e&&C()},[e,C]);const B=(_||[]).join("\n");(0,ct.useEffect)(()=>{a.current&&l.current&&(a.current.scrollTop=a.current.scrollHeight)},[B]),(0,ct.useEffect)(()=>{f?.in_progress&&(s.current=!0)},[f?.in_progress]),(0,ct.useEffect)(()=>{const e=!0===f?.just_finished||"idle"!==f?.status;if(f&&!f.in_progress&&e&&s.current&&!i.current){i.current=!0,u(!0),C();const e=f.error_details||[];e.length>0?At.warning((0,pt.__)("Scan Completed with Errors","surecookie"),{description:(0,pt.sprintf)(/* translators: %d: number of failed pages */ /* translators: %d: number of failed pages */
65 (0,pt.__)("%d page(s) could not be scanned. Check the logs for details.","surecookie"),e.length)}):At.success((0,pt.__)("Scan Completed!","surecookie"),{description:(0,pt.__)("Cookie scan has been completed successfully.","surecookie")}),p.invalidateQueries({queryKey:Nn.cookies.scanned()});const t=setTimeout(()=>{u(!1),n&&n()},5e3);return()=>clearTimeout(t)}f?.in_progress&&(i.current=!1,u(!1))},[f?.in_progress,f?.status,f?.just_finished,f?.error_details,n,p,C]);const S=async()=>{if(B)try{await db(B),A(!0),At.success((0,pt.__)("Logs copied to clipboard!","surecookie")),setTimeout(()=>A(!1),2e3)}catch{At.error((0,pt.__)("Could not copy logs automatically.","surecookie"))}};return(0,yt.jsx)(qx,{isOpen:e,setIsOpen:t,title:(0,pt.__)("Latest Scanning Logs","surecookie"),description:(0,pt.__)("View logs from the most recent cookie scanning process.","surecookie"),onCancel:()=>{t(!1)},panelClassName:"w-full max-w-2xl",children:(0,yt.jsxs)("div",{className:"flex flex-col h-full relative",children:[(0,yt.jsx)(Lce,{scanStatus:f}),B&&(0,yt.jsxs)("div",{className:"relative mb-4",children:[(0,yt.jsx)(Fa,{size:"xs",variant:"ghost",className:jo("absolute top-2 right-2 bg-background-inverse text-slate-400 hover:text-slate-900 hover:bg-slate-200 transition-colors",{"text-green-400":d}),onClick:S,icon:d?(0,yt.jsx)(dk,{size:14}):(0,yt.jsx)(fk,{size:14}),children:d?(0,pt.__)("Copied","surecookie"):(0,pt.__)("Copy","surecookie")}),(0,yt.jsx)("div",{ref:a,onScroll:()=>{if(a.current){const{scrollTop:e,scrollHeight:t,clientHeight:n}=a.current;l.current=t-e-n<50}},className:"font-mono text-sm w-full bg-background-inverse text-background-tertiary text-slate-300 p-3 rounded-md overflow-y-auto border border-border-subtle max-h-[400px] whitespace-pre-wrap break-words","aria-label":(0,pt.__)("This field contains the scanning status results only.","surecookie"),children:B})]}),y&&(0,yt.jsx)(pk,{color:"warning",showIcon:!0,className:"mb-4",title:(0,pt.__)("Scan appears stuck","surecookie"),message:(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(Iw,{as:"p",size:13,color:"secondary",className:"mb-2",children:f?.progress?(0,pt.sprintf)(/* translators: 1: completed pages, 2: total pages, 3: elapsed time */ /* translators: 1: completed pages, 2: total pages, 3: elapsed time */
66 (0,pt.__)("%1$d of %2$d pages scanned after %3$s with no recent progress.","surecookie"),f.progress.completed_pages||0,f.progress.total_pages||0,Tce(f.elapsed)):(0,pt.sprintf)(/* translators: %s: elapsed time */ /* translators: %s: elapsed time */
67 (0,pt.__)("No progress detected after %s.","surecookie"),Tce(f?.elapsed))}),(0,yt.jsx)(Iw,{as:"p",size:13,color:"tertiary",className:"mb-0",children:(0,pt.__)("Possible causes: Scan server under heavy load, your site is unreachable from our scanner, your site has CRON issues, or a page caused a browser timeout.","surecookie")})]}),footer:(0,yt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,yt.jsx)(Fa,{size:"xs",variant:"outline",className:"text-red-500 hover:text-red-600",onClick:()=>h.mutate(),disabled:h.isPending,children:h.isPending?(0,pt.__)("Cancelling…","surecookie"):(0,pt.__)("Cancel Scan","surecookie")}),B&&(0,yt.jsx)(Fa,{size:"xs",variant:"outline",onClick:S,icon:(0,yt.jsx)(fk,{size:12}),children:(0,pt.__)("Copy Logs for Support","surecookie")})]})}),k&&w>0&&(0,yt.jsx)(pk,{color:"warning",showIcon:!0,className:"mb-4",title:(0,pt.__)("Some pages could not be analyzed","surecookie"),message:(0,yt.jsx)(Iw,{as:"p",size:13,color:"secondary",className:"mb-0",children:(0,pt.sprintf)(/* translators: 1: scanned pages, 2: total pages, 3: failed pages */ /* translators: 1: scanned pages, 2: total pages, 3: failed pages */
68 (0,pt.__)("Scanned %1$d of %2$d pages - %3$d could not be analyzed. The cookies we did find are saved, and results add up across scans, so you can re-run the scan to pick up the rest.","surecookie"),x,b,w)})}),(0,yt.jsx)(pk,{color:"info",showIcon:!0,className:"mb-4",message:(0,ct.createInterpolateElement)((0,pt.__)("Once the scan is complete, the cookies it found appear under <a>Cookies</a>, and the scripts and embeds under <b>Scripts and Embeds</b>.","surecookie"),{a:(0,yt.jsx)(vs,{to:"/cookie-manager/create",className:"!text-link-primary hover:!text-link-primary-hover hover:underline"}),b:(0,yt.jsx)(vs,{to:"/cookie-manager/scripts-and-embeds",className:"!text-link-primary hover:!text-link-primary-hover hover:underline"})})}),(0,yt.jsxs)("div",{className:"p-4 bg-background-secondary border border-border-subtle rounded-lg space-y-3",children:[(0,yt.jsx)(Iw,{size:14,weight:600,color:"primary",children:(0,ct.createInterpolateElement)((0,pt.__)("<span></span> Quick Tips:","surecookie"),{span:(0,yt.jsx)("span",{className:"mr-2",children:"💡"})})}),(0,yt.jsxs)("ul",{className:"ml-3 space-y-1.5 my-0 list-disc list-inside",children:[m?(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)("li",{className:"m-0",children:(0,yt.jsx)(Iw,{as:"span",size:14,color:"secondary",children:(0,pt.__)("Keep the scan tab in front until it finishes: browsers slow down background tabs.","surecookie")})}),(0,yt.jsx)("li",{className:"m-0",children:(0,yt.jsx)(Iw,{as:"span",size:14,color:"secondary",children:(0,pt.__)("Pages already collected are saved, so closing the tab early keeps what it found.","surecookie")})}),(0,yt.jsx)("li",{className:"m-0",children:(0,yt.jsx)(Iw,{as:"span",size:14,color:"secondary",children:(0,pt.__)("An ad blocker or privacy extension in this browser can hide trackers from the scan.","surecookie")})})]}):(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)("li",{className:"m-0",children:(0,yt.jsx)(Iw,{as:"span",size:14,color:"secondary",children:(0,pt.__)("Your scan limit will reset tomorrow.","surecookie")})}),(0,yt.jsx)("li",{className:"m-0",children:(0,yt.jsx)(Iw,{as:"span",size:14,color:"secondary",children:(0,pt.__)("The scan runs in the background - you can safely navigate away.","surecookie")})}),(0,yt.jsx)("li",{className:"m-0",children:(0,yt.jsx)(Iw,{as:"span",size:14,color:"secondary",children:(0,pt.__)("Make sure your site is publicly accessible (not behind basic auth or maintenance mode).","surecookie")})}),(0,yt.jsx)("li",{className:"m-0",children:(0,yt.jsx)(Iw,{as:"span",size:14,color:"secondary",children:(0,pt.__)("Check if a firewall or security plugin is blocking external requests to your site.","surecookie")})})]}),(0,yt.jsx)("li",{className:"m-0",children:(0,yt.jsx)(Iw,{as:"span",size:14,color:"secondary",children:(0,pt.__)("Pages with heavy JavaScript may take longer to scan. If scanning fails repeatedly, try fewer pages.","surecookie")})}),(0,yt.jsx)("li",{className:"m-0",children:(0,yt.jsx)(Iw,{as:"span",size:14,color:"secondary",children:(0,ct.createInterpolateElement)((0,pt.__)("If issues persist, copy the logs and <a>contact our support team.</a>","surecookie"),{a:(0,yt.jsx)("a",{href:ni("scanning_logs_support","support/"),target:"_blank",rel:"noreferrer",className:"text-blue-500 hover:underline",children:(0,pt.__)("contact our support team","surecookie")})})})}),!!r&&(0,yt.jsx)("li",{className:"m-0",children:(0,yt.jsx)(Iw,{as:"span",size:14,color:"secondary",children:(0,ct.createInterpolateElement)((0,pt.__)("If remote scanning fails, try Assisted Scanner method: <button></button>","surecookie"),{button:(0,yt.jsx)(Fa,{variant:"link",size:"sm",className:"w-fit px-0 text-blue-500 hover:underline",onClick:()=>{r(),t(!1)},children:m?(0,pt.__)("Switch to Default Scanner","surecookie"):(0,pt.__)("Switch to Assisted Scanner","surecookie")})})})})]})]})]})})},Mce=()=>(0,yt.jsxs)("div",{className:"flex flex-col gap-6 w-full","data-testid":"scan-cookies-skeleton",children:[(0,yt.jsx)(Zk,{className:"h-16 w-full rounded-lg"}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Zk,{className:"h-5 w-40"}),(0,yt.jsx)(Zk,{className:"h-10 w-full rounded-md"})]}),(0,yt.jsx)(Zk,{className:"h-16 w-full rounded-lg"}),(0,yt.jsxs)("div",{className:"flex gap-3",children:[(0,yt.jsx)(Zk,{className:"h-10 w-36 rounded-md"}),(0,yt.jsx)(Zk,{className:"h-10 w-28 rounded-md"})]})]}),Oce=ni("scan_blocked_whitelist","docs/whitelisting-the-surecookie-scanner/"),Dce=({outcome:e,onAssistedScan:t=null})=>{const n=t?(0,yt.jsx)(Fa,{size:"sm",variant:"primary",className:"w-fit",onClick:t,children:(0,pt.__)("Scan From This Browser","surecookie")}):null;if("blocked_by_host"===e?.outcome){const t=Object.values(e.detected_services||{});return(0,yt.jsx)(pk,{color:"warning",showIcon:!0,title:(0,pt.__)("Your host blocked the scanner","surecookie"),message:(0,pt.__)("Your site's firewall or bot protection served our scanner a security challenge instead of your page, so the scan completed without results. This does not affect your visitors, only automated scanners. Allowlist the SureCookie scanner (or ask your host to) and run the scan again.","surecookie"),footer:(0,yt.jsxs)("div",{className:"flex flex-col gap-3",children:[t.length>0&&(0,yt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,yt.jsx)(Iw,{size:13,weight:600,color:"primary",children:(0,pt.__)("Services we still detected on your site (via a first-party check):","surecookie")}),(0,yt.jsx)(Iw,{size:13,weight:400,color:"secondary",children:t.join(", ")})]}),(0,yt.jsxs)("div",{className:"flex flex-wrap gap-3",children:[n,(0,yt.jsx)(Fa,{tag:"a",href:Oce,target:"_blank",rel:"noopener noreferrer",size:"sm",variant:"outline",className:"no-underline ring-0 w-fit",icon:(0,yt.jsx)(Vk,{className:"w-4 h-4"}),iconPosition:"right",children:(0,pt.__)("How to allowlist the scanner","surecookie")})]})]})})}return"empty"===e?.outcome&&"assisted"===e?.source?(0,yt.jsx)(pk,{color:"info",showIcon:!0,title:(0,pt.__)("No cookies found in this browser scan","surecookie"),message:e?.adblock_suspected?(0,pt.__)("We found services on your pages that your browser did not load, which usually means an ad blocker or privacy extension is active. Try again in a browser with extensions disabled, or add the cookies manually.","surecookie"):(0,pt.__)("The scan visited your pages but no cookies were set. Some services only set cookies after a visitor accepts the banner, so they may not appear. You can also add cookies manually.","surecookie")}):"empty"===e?.outcome?(0,yt.jsx)(pk,{color:"info",showIcon:!0,title:(0,pt.__)("No cookies found in this scan","surecookie"),message:(0,pt.__)("The scanner reached your site but did not detect any cookies. Some services only set cookies after a visitor accepts the banner, so they may not appear in a scan. You can also add cookies manually.","surecookie")}):null},Uce=({label:e,value:t})=>{const[n,r]=(0,ct.useState)(!1);return(0,yt.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-md border border-border-subtle bg-background-secondary px-3 py-2",children:[(0,yt.jsxs)("div",{className:"min-w-0",children:[(0,yt.jsx)(Iw,{size:12,color:"tertiary",children:e}),(0,yt.jsx)(Iw,{size:13,color:"primary",className:"font-mono break-all",children:t})]}),(0,yt.jsx)(Fa,{variant:"ghost",size:"xs",className:"shrink-0",onClick:async()=>{try{await db(t),r(!0),setTimeout(()=>r(!1),2e3)}catch(e){toast.error((0,pt.__)("Could not copy","surecookie"),{description:(0,pt.__)("Copy the value manually.","surecookie")})}},icon:n?(0,yt.jsx)(dk,{size:14}):(0,yt.jsx)(fk,{size:14}),"aria-label":`${(0,pt.__)("Copy","surecookie")} ${e}`,children:n?(0,pt.__)("Copied","surecookie"):(0,pt.__)("Copy","surecookie")})]})},Rce=({record:e,message:t,onVerified:n})=>{const[r,o]=(0,ct.useState)(!1);return(0,yt.jsxs)("div",{className:"space-y-4 rounded-lg border border-border-subtle p-4",children:[(0,yt.jsx)(pk,{color:"warning",showIcon:!0,title:(0,pt.__)("We Could Not Verify Your Domain","surecookie"),message:t}),(0,yt.jsxs)("div",{className:"space-y-1",children:[(0,yt.jsx)(Iw,{size:14,weight:500,color:"primary",children:(0,pt.__)("Verify With a DNS Record Instead","surecookie")}),(0,yt.jsx)(Iw,{size:12,color:"tertiary",children:(0,pt.__)("Add this TXT record at your DNS provider, then retry. This proves you own the domain without us needing to reach your site, so a firewall cannot block it.","surecookie")})]}),(0,yt.jsxs)("div",{className:"space-y-2",children:[(0,yt.jsx)(Uce,{label:(0,pt.__)("Type","surecookie"),value:e.type||"TXT"}),(0,yt.jsx)(Uce,{label:(0,pt.__)("Name","surecookie"),value:e.host||""}),(0,yt.jsx)(Uce,{label:(0,pt.__)("Value","surecookie"),value:e.value||""})]}),(0,yt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,yt.jsx)(Fa,{variant:"primary",size:"sm",onClick:async()=>{o(!0);try{const e=await Fn()({path:"/surecookie/v1/site-scanner/verify-retry",method:"POST"});if(!1===e?.success)throw new Error(e?.message);toast.success((0,pt.__)("Domain verified","surecookie"),{description:(0,pt.__)("Your site is registered and can now be scanned.","surecookie")}),n?.()}catch(e){toast.error((0,pt.__)("Still not verified","surecookie"),{description:e?.message||(0,pt.__)("DNS changes can take a while to propagate. Try again shortly.","surecookie")})}finally{o(!1)}},disabled:r,icon:r?(0,yt.jsx)(Tw,{variant:"secondary"}):void 0,children:(0,pt.__)("Retry Verification","surecookie")}),(0,yt.jsx)(Iw,{size:12,color:"tertiary",children:(0,pt.__)("DNS changes usually apply within minutes, but can take up to a day.","surecookie")})]})]})},zce=_b("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),Qce=ni("assisted_scan_docs","docs/scanning-your-site-from-your-browser/"),Hce=({onStart:e,isStarting:t=!1,isRunning:n=!1,selectedCount:r=0,maxPages:o=10,wasPromoted:i=!1,footer:s=null,onSwitchScanMode:a=null})=>{const l=r>o,c=r>0&&!l&&!t&&!n;return(0,yt.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,yt.jsx)(pk,{color:i?"warning":"info",showIcon:!0,title:i?(0,pt.__)("Scan from Your Browser (Best for this site)","surecookie"):(0,pt.__)("Scan from Your Browser","surecookie"),message:i?(0,pt.__)("Our scanner couldn't fully access your site due to server restrictions. This method runs the scan directly in your browser, ensuring accurate detection without being blocked.","surecookie"):(0,pt.__)("Run the scan directly in your browser. This helps detect cookies, scripts, and embeds even when external scanners are blocked.","surecookie"),footer:(0,yt.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,yt.jsxs)("ul",{className:"ml-3 space-y-1.5 my-0 list-disc list-inside",children:[(0,yt.jsx)("li",{className:"m-0",children:(0,yt.jsx)(Iw,{as:"span",size:14,children:(0,pt.__)("Detects cookies, scripts, and embeds as your visitors would see them.","surecookie")})}),(0,yt.jsx)("li",{className:"m-0",children:(0,yt.jsx)(Iw,{as:"span",size:14,children:(0,pt.__)("Works even when hosting or firewall blocks external scans.","surecookie")})}),(0,yt.jsx)("li",{className:"m-0",children:(0,yt.jsx)(Iw,{as:"span",size:14,children:(0,pt.__)("Results appear automatically in your Tracking Manager.","surecookie")})})]}),(0,yt.jsx)(Iw,{size:13,weight:400,color:"secondary",children:(0,pt.__)("Some advanced detections may still require a remote scan when available.","surecookie")}),(0,yt.jsx)(Fa,{tag:"a",href:Qce,target:"_blank",rel:"noopener noreferrer",size:"sm",variant:"outline",className:"no-underline ring-0 w-fit",icon:(0,yt.jsx)(Vk,{className:"w-4 h-4"}),iconPosition:"right",children:(0,pt.__)("How this works","surecookie")})]})}),(0,yt.jsx)(pk,{color:"info",showIcon:!0,title:(0,pt.__)("Before You Start","surecookie"),message:(0,pt.__)("To measure cookie duration accurately, this scan temporarily clears cookies for your site in this browser (including your consent choice). Your WordPress login session is preserved, so you'll remain signed in.","surecookie")}),l&&(0,yt.jsx)(pk,{color:"warning",showIcon:!0,title:(0,pt.sprintf)(/* translators: %d: maximum pages */ /* translators: %d: maximum pages */
69 (0,pt.__)("You have selected more than %d pages","surecookie"),o),message:(0,pt.sprintf)(/* translators: %d: maximum pages */ /* translators: %d: maximum pages */
70 (0,pt.__)("An assisted scan visits up to %d pages. Remove some pages to continue.","surecookie"),o)}),(0,yt.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,yt.jsx)(Fa,{variant:"primary",className:"shadow-xs w-fit",onClick:e,disabled:!c,icon:t||n?(0,yt.jsx)(Tw,{}):(0,yt.jsx)(bce,{}),iconPosition:"right",children:t||n?(0,pt.__)("Scanning in your browser…","surecookie"):(0,pt.__)("Start Browser Scan","surecookie")}),s]}),(0,yt.jsxs)("div",{className:"flex justify-between w-full",children:[(0,yt.jsx)(Iw,{size:13,weight:400,color:"tertiary",children:(0,pt.__)("A new tab opens to scan your selected pages - keep it active until it finishes.","surecookie")}),!!a&&!n&&(0,yt.jsx)(Fa,{variant:"link",size:"sm",className:"w-fit px-0",onClick:a,icon:(0,yt.jsx)(zce,{size:12,className:"rotate-[180deg]"}),iconPosition:"left",children:(0,pt.__)("Switch Back","surecookie")})]})]})},qce=_b("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]),Vce=e=>{switch(e){case"collector_not_loaded":return(0,pt.__)("This page did not load the scanner, so it was skipped. A redirect or a login requirement usually causes this.","surecookie");case"timeout":return(0,pt.__)("This page took too long to respond.","surecookie");case"cancelled":return(0,pt.__)("Skipped because the scan was cancelled.","surecookie");default:return(0,pt.__)("This page could not be collected.","surecookie")}},Kce=({pages:e=[],current:t=0,onRescan:n,isBusy:r=!1})=>Array.isArray(e)&&0!==e.length?(0,yt.jsxs)("div",{className:"w-full border border-border-subtle rounded-lg divide-y divide-border-subtle",children:[(0,yt.jsx)("div",{className:"px-4 py-2.5",children:(0,yt.jsx)(Iw,{size:13,weight:600,color:"primary",children:(0,pt.__)("Pages In This Scan","surecookie")})}),e.map((e,o)=>{const{icon:i,label:s}=((e,n)=>"done"===e.status?{icon:(0,yt.jsx)(dk,{className:"w-4 h-4 text-support-success"}),label:(0,pt.sprintf)(/* translators: 1: cookie count, 2: script count */ /* translators: 1: cookie count, 2: script count */
71 (0,pt.__)("%1$d cookies, %2$d scripts","surecookie"),e.cookies||0,e.scripts||0)}:"failed"===e.status?{icon:(0,yt.jsx)(Ak,{className:"w-4 h-4 text-support-warning"}),label:Vce(e.error)}:n===t?{icon:(0,yt.jsx)(qce,{className:"w-4 h-4 text-support-info animate-spin"}),label:(0,pt.__)("Collecting…","surecookie")}:{icon:(0,yt.jsx)("span",{className:"w-4 h-4","aria-hidden":"true"}),label:(0,pt.__)("Waiting","surecookie")})(e,o);return(0,yt.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2.5",children:[(0,yt.jsx)("span",{className:"shrink-0",children:i}),(0,yt.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,yt.jsx)(Iw,{size:13,weight:500,color:"primary",className:"truncate block",children:e.title||e.url}),(0,yt.jsx)(Iw,{size:12,color:"tertiary",className:"truncate block",children:s})]}),!!e.post_id&&!!n&&(0,yt.jsx)(Fa,{variant:"ghost",size:"xs",className:"shrink-0",disabled:r,onClick:()=>n(e.post_id),icon:(0,yt.jsx)(Ece,{className:"w-3.5 h-3.5"}),children:(0,pt.__)("Re-scan","surecookie")})]},`${e.url}-${o}`)})]}):null,Wce=ni("scan_cookies_learn_more","docs/introducing-surecookie-library-scanner/"),Gce=()=>{const{isAuthenticated:e,handleConnect:t}=Bx(),{getCurrentValue:n,updateSetting:r,isLoading:o}=si(),[i,s]=(0,ct.useState)(()=>Eo(n("scan_pages"))),[a,l]=(0,ct.useState)(!1),[c,u]=(0,ct.useState)(null),d=bt(),A=window?.surecookieAdminData||window?.surecookieOnboardingData,h=!!A?.is_local_site,{quota:p,plan:f,errorCode:m,isLoading:g,isRefreshing:y,refresh:v}=(()=>{const e=bt(),t=Nn.siteScanner.quota(),n=Sn({queryKey:t,queryFn:async()=>{const e=await Dn({refresh:!1});return e?.data||null},staleTime:3e5,retry:2}),r=n.data;return{quota:r&&!1===r.fresh&&Vo.includes(r.error_code)||!r?.quota||!Object.keys(r.quota).length?null:r.quota,plan:r?.plan||null,errorCode:r?.error_code||null,isLoading:n.isLoading,isRefreshing:n.isFetching&&!n.isLoading,refresh:()=>e.fetchQuery({queryKey:t,queryFn:async()=>{const e=await Dn({refresh:!0});return e?.data||null},staleTime:0})}})(),b=Number(p?.pages_per_scan_limit??A?.maxScanPages??5),w=!!A?.is_pro_active||"team"===f||"agency"===f||"solo"===f,x=!!A?.license_activated||"team"===f||"agency"===f||"solo"===f,k=p?.pages_per_scan_limit>0||Number(A?.maxScanPages)>5,_=x&&g&&!k,C=x&&"not_registered"===m,B=ni("scan_booster","pricing/"),S=ni("pricing_scan_cookies_banner","pricing/"),j=(({isProActive:e,isLicensed:t,isProInstalled:n,licenseAdminUrl:r,pluginsPageUrl:o,scanBoosterUrl:i,upgradeUrl:s}={})=>e&&!t?{label:(0,pt.__)("Activate License","surecookie"),href:r,internal:!0}:!e&&n?{label:(0,pt.__)("Activate SureCookie Pro","surecookie"),href:o,internal:!0}:e?{label:(0,pt.__)("Consider Plan Upgrade","surecookie"),href:i,internal:!1}:{label:(0,pt.__)("Upgrade Now","surecookie"),href:s,internal:!1})({isProActive:w,isLicensed:x,isProInstalled:!!A?.is_pro_installed,licenseAdminUrl:A?.license_admin_url||"",pluginsPageUrl:`${A?.adminUrl||""}plugins.php`,scanBoosterUrl:B,upgradeUrl:S});(0,ct.useEffect)(()=>{const e=Eo(n("scan_pages")).filter(e=>e&&"object"==typeof e).map(e=>({...e,value:Number(e.value)}));s(e)},[o]);const{data:E}=tr(),N=E?.in_progress||!1,I=E?.isStuck||!1,F=rr(),T=(()=>{const e=bt();return En({mutationFn:async({postIds:e=[]}={})=>{const t=await(async({postIds:e=[]}={})=>await Fn()({method:"POST",path:"/surecookie/v1/assisted-scan/start",data:e.length?{post_ids:e}:{}}))({postIds:e});if(!t.success){const e=new Error(t.message||(0,pt.__)("Could not start the assisted scan.","surecookie"));throw e.code=t.code||t.data?.code||"assisted_scan_failed",e}return t},onSuccess:()=>{e.invalidateQueries({queryKey:Nn.cookies.all}),e.setQueryData(Nn.siteScanner.logs(),[]),e.invalidateQueries({queryKey:Nn.siteScanner.logs()}),e.invalidateQueries({queryKey:Nn.siteScanner.status()})}})})(),L=!1!==A?.assistedScanEnabled,P=Number(A?.assistedMaxScanPages??10),M=(0,ct.useRef)(null),[O,D]=(0,ct.useState)(""),U=N&&Fce(E);(({scanStatus:e,windowRef:t,token:n,isRunning:r})=>{const o=bt(),i=(0,ct.useRef)(-1),s=(0,ct.useRef)(!1);(0,ct.useEffect)(()=>{r||(i.current=-1)},[r]),(0,ct.useEffect)(()=>{if(!n||s.current)return;const a=t?.current??null,l=e?.current_index??0,c=(({isRunning:e=!1,hasWindowHandle:t=!1,isWindowClosed:n=!1,secondsSinceProgress:r=0,currentIndex:o=0,lastNudgedIndex:i=-1}={})=>e&&t?n?"finalize":r<45||o<=i?"none":"skip-page":"none")({isRunning:r,hasWindowHandle:!!a,isWindowClosed:!!a?.closed,secondsSinceProgress:e?.seconds_since_last_progress??0,currentIndex:l,lastNudgedIndex:i.current});if("none"===c)return;const u=()=>{o.invalidateQueries({queryKey:Nn.siteScanner.status()}),o.invalidateQueries({queryKey:Nn.cookies.all})};s.current=!0,"finalize"!==c?(i.current=l,(async({token:e,pageIndex:t,error:n="collector_not_loaded"})=>await Fn()({method:"POST",path:"/surecookie/v1/assisted-scan/page",data:{token:e,page_index:t,error:n,findings:{cookies:[],resources:[]}}}))({token:n,pageIndex:l}).then(e=>{if(!e?.next_url||!a||a.closed)return Un({token:n}).then(()=>{a&&!a.closed&&a.close()});a.location.replace(e.next_url)}).catch(()=>{}).finally(()=>{s.current=!1,u()})):Un({token:n}).catch(()=>{}).finally(()=>{t.current=null,s.current=!1,u()})},[e,t,n,r,o])})({scanStatus:E,windowRef:M,token:O,isRunning:U});const R=L&&(({lastOutcome:e=null,scanError:t=null}={})=>"blocked_by_host"===e?.outcome||Ko.includes(t?.code))({lastOutcome:E?.last_outcome,scanError:c}),[z,Q]=(0,ct.useState)(null),H=L&&(z??(R?Ice:Nce))===Ice,q=H?P:b;(0,ct.useEffect)(()=>{U&&Q(Ice)},[U]);const V=(0,ct.useCallback)((e=null)=>{const t=e??((e=[])=>(Array.isArray(e)?e:[]).map(e=>e?.value).filter(e=>Number.isFinite(Number(e))&&""!==e&&null!==e).map(e=>Number(e)))(i),n=window.open("","surecookie-assisted-scan");n?(M.current=n,l(!0),T.mutateAsync({postIds:t}).then(e=>{e?.url?(D(e.token||""),n.location.replace(e.url),u(null),d.invalidateQueries({queryKey:Nn.siteScanner.status()})):n.close()}).catch(e=>{n.close(),M.current=null,At.error((0,pt.__)("Could not start the assisted scan","surecookie"),{description:e?.message||(0,pt.__)("Please try again in a moment.","surecookie")})})):At.error((0,pt.__)("Your browser blocked the scan window","surecookie"),{description:(0,pt.__)("Allow pop-ups for this site, then start the scan again.","surecookie")})},[T,d,i]);(0,ct.useEffect)(()=>{N&&l(!0)},[N]);const[K,W]=(0,ct.useState)(!1),[G,$]=(0,ct.useState)(!0);(0,ct.useEffect)(()=>{(async()=>{try{const e=(await On()).data||[];W(e.length>0)}catch(e){W(!1)}finally{$(!1)}})()},[]),(0,ct.useEffect)(()=>()=>{Mn("scanner")},[]);const Y=(0,ct.useCallback)(async e=>{try{return(await Pn(e,"scanner")).map(e=>({label:e.title||(0,pt.__)("(no title)","surecookie"),value:Number(e.id),type:e.type,typeLabel:e.type_label}))}catch(e){return[]}},[]),Z=(()=>{const e=bt();return En({mutationFn:async e=>{const t=await(e=>Fn()({method:"POST",path:"/surecookie/v1/site-scanner/initiate",data:{pages:e}}))(e);if(!t.success){const e=new Error(t.message||(0,pt.__)("Failed to initiate scan","surecookie"));throw e.code=t.code||t.data?.code||"scan_failed",e.limit=t.limit??null,e.used=t.used??null,e.remaining=t.remaining??0,e.dns_verification=t.dns_verification??null,e}return t},onSuccess:()=>{e.invalidateQueries({queryKey:Nn.cookies.all}),e.setQueryData(Nn.siteScanner.logs(),[]),e.invalidateQueries({queryKey:Nn.siteScanner.logs()})}})})(),X=Z.isPending,J=async()=>{if(!X&&!h&&i.length){r("scan_pages",i),l(!0),At.info((0,pt.__)("Scan Started!","surecookie"),{description:(0,pt.__)("Scanning your content for cookies. This may take a few minutes.","surecookie")});try{const e=await Z.mutateAsync(i);e?.pages_dropped>0&&At.warning((0,pt.sprintf)(/* translators: 1: pages scanned, 2: pages submitted */ /* translators: 1: pages scanned, 2: pages submitted */
72 (0,pt.__)("Scanned %1$d of %2$d pages - your daily page budget is used up. The remaining pages will scan after it resets.","surecookie"),e.pages_scanned??i.length-e.pages_dropped,i.length)),d.invalidateQueries({queryKey:Nn.siteScanner.status()}),u(null)}catch(e){if("require_pro"===e?.code||"limit_exceeded"===e?.code||"verification_failed"===e?.code&&e?.dns_verification)return void u(e);const{type:t,title:n,description:r}=(e=>{const t=e?.code;if(Vo.includes(t))return{type:"warning",title:(0,pt.__)("Session Expired","surecookie"),description:(0,pt.__)("Your session or license changed since this page loaded. Reload the page to reconnect, then start the scan again.","surecookie")};if(Ko.includes(t))return{type:"error",title:(0,pt.__)("Site Verification Failed","surecookie"),description:(0,pt.__)("The scanning service could not reach your site to verify it. A firewall, security plugin, or SSL problem is the usual cause. Check those and try again.","surecookie")};if(Ab.includes(t))return{type:"error",title:(0,pt.__)("Couldn't Reach the Scanner","surecookie"),description:(0,pt.__)("Your site could not reach the scanning service. Check your connection and try again. Any cookies already found are saved.","surecookie")};switch(t){case"scan_deferred":return{type:"warning",title:(0,pt.__)("Scan Queued for Later","surecookie"),description:(0,pt.__)("Today's page budget is used up, so the remaining pages will scan automatically once it resets. Any cookies already found are saved. To scan sooner, run it again with fewer pages.","surecookie")};case"no_pages":return{type:"error",title:(0,pt.__)("No Pages Left to Scan","surecookie"),description:(0,pt.__)("The pages you selected are no longer published, so there was nothing to scan. Choose your pages again and start a new scan.","surecookie")};case"scan_in_progress":return{type:"warning",title:(0,pt.__)("Scan Already Running","surecookie"),description:(0,pt.__)("A scan is already running on this site. Wait for it to finish, then start the next one. If nothing appears to be running, reload the page and try again.","surecookie")};case"scan_failed":return{type:"error",title:(0,pt.__)("Scan Couldn't Be Started","surecookie"),description:(0,pt.__)("SureCookie could not start the scan, usually a temporary problem reaching the scanning service. Any cookies already found are saved. Please try again in a moment.","surecookie")};case"rest_invalid_param":return{type:"error",title:(0,pt.__)("Scan Couldn't Be Started","surecookie"),description:(0,pt.__)("The scan request was rejected before it started. Reload the page and try again.","surecookie")};case"require_pro":return{type:"error",title:(0,pt.__)("Scanning Needs SureCookie Pro","surecookie"),description:(0,pt.__)("This scan is a Pro feature. Upgrade to run it, or carry on with the cookies already found.","surecookie")};case"limit_exceeded":return{type:"warning",title:(0,pt.__)("Daily Scan Limit Reached","surecookie"),description:(0,pt.__)("You have used every scan allowed today. Any cookies already found are saved, and you can scan again once the limit resets.","surecookie")};default:return{type:"error",title:(0,pt.__)("Scan Couldn't Be Completed","surecookie"),description:(0,pt.__)("Any cookies already found have been saved, and results add up across scans, so nothing is lost. Please try again in a moment.","surecookie")}}})(e);At[t](n,{description:r})}}},ee=(0,yt.jsxs)(yt.Fragment,{children:[G&&N?(0,yt.jsx)("div",{className:"h-9 w-40 rounded-lg bg-background-secondary animate-pulse"}):(K||N)&&(0,yt.jsx)(Fa,{variant:"outline",onClick:()=>l(!0),children:(0,pt.__)("View Scan Logs","surecookie")}),I&&(0,yt.jsx)(Fa,{variant:"ghost",className:"text-red-500 hover:text-red-600",onClick:()=>F.mutate(),disabled:F.isPending,children:F.isPending?(0,pt.__)("Cancelling…","surecookie"):(0,pt.__)("Cancel Stuck Scan","surecookie")})]}),te=i?.length>b;let ne;ne=te?C?(0,pt.sprintf)(/* translators: %d: maximum pages */ /* translators: %d: maximum pages */
73 (0,pt.__)("Your first scan can cover up to %d pages while we connect your site. Remove the extra pages to start - Your plan's full limits unlock automatically afterward.","surecookie"),b):w?(0,pt.sprintf)(/* translators: %d: maximum pages */ /* translators: %d: maximum pages */
74 (0,pt.__)("Your plan supports scanning up to %d pages. Please remove extra pages to continue.","surecookie"),b):(0,pt.sprintf)(/* translators: %d: maximum pages */ /* translators: %d: maximum pages */
75 (0,pt.__)("The free plan supports scanning up to %d pages. Upgrade now to scan more pages and keep your cookie list updated automatically.","surecookie"),b):_?(0,pt.__)("Checking your scan limits…","surecookie"):C?(0,pt.__)("Run your first scan to connect this site with SureCookie. Your plan's full scan limits unlock automatically once the connection is established.","surecookie"):(0,pt.sprintf)(/* translators: %d: maximum pages */ /* translators: %d: maximum pages */
76 (0,pt.__)("We'll visit the selected content to detect all cookies in use. Allowed %d pages per scan due to resource constraints.","surecookie"),b);const re=te&&!C?(0,yt.jsx)("a",{href:j.href,...j.internal?{}:{target:"_blank",rel:"noopener noreferrer"},className:"!text-link-primary hover:!text-link-primary-hover hover:underline text-sm font-semibold [box-shadow:none]",children:j.label}):null;return e?(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("Cookie Scanner","surecookie"),pageDescription:(0,pt.__)("Scan your website to find cookies, scripts, and trackers that require consent.","surecookie"),renderNotice:(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(eue,{}),(0,yt.jsx)(Dce,{outcome:E?.last_outcome,onAssistedScan:L&&!N?()=>{Q(Ice),V()}:null})]}),children:o?(0,yt.jsx)(Mce,{}):(0,yt.jsxs)("div",{className:"relative flex flex-col items-start gap-3",children:[h&&!H&&(0,yt.jsx)("div",{"aria-hidden":"true",className:"absolute -inset-6 z-10 rounded-lg bg-white/30 backdrop-blur-[2px]"}),(0,yt.jsxs)("div",{className:jo("flex flex-col gap-6 w-full",h&&!H&&"pointer-events-none select-none"),children:[(p?.scan_runs?.limit>0||p?.pages_per_day?.limit>0)&&(0,yt.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-lg border border-border-subtle bg-background-secondary px-4 py-3",children:[(()=>{const e=(e=>{const t=e?new Date(e).getTime():NaN;if(Number.isNaN(t))return"";const n=Math.floor((t-Date.now())/1e3);if(n<=0)return"";const r=Math.floor(n/3600),o=Math.floor(n%3600/60);return r>0?(0,pt.sprintf)(/* translators: 1: whole hours remaining, 2: remaining minutes. */ /* translators: 1: whole hours remaining, 2: remaining minutes. */
77 (0,pt.__)("%1$dh %2$dm","surecookie"),r,o):(0,pt.sprintf)(/* translators: %d: minutes remaining. */ /* translators: %d: minutes remaining. */
78 (0,pt.__)("%dm","surecookie"),o)})(p.resets_at),t=p?.scan_runs?.limit>0;return(0,yt.jsxs)("div",{className:"flex flex-col gap-0.5",children:[t&&(0,yt.jsxs)(Iw,{size:13,color:"primary",children:[(0,pt.sprintf)(/* translators: 1: remaining scans, 2: total daily scans */ /* translators: 1: remaining scans, 2: total daily scans */
79 (0,pt.__)("You have %1$d of %2$d daily scans remaining","surecookie"),p.scan_runs.remaining,p.scan_runs.limit),e&&` · ${(0,pt.sprintf)(/* translators: %s: time until reset (e.g. "4h 22m") */ /* translators: %s: time until reset (e.g. "4h 22m") */
80 (0,pt.__)("Resets in %s","surecookie"),e)}`]}),p?.pages_per_day?.limit>0&&(0,yt.jsxs)(Iw,{size:t?12:13,color:t?"secondary":"primary",children:[(0,pt.sprintf)(/* translators: 1: remaining pages, 2: total daily page budget */ /* translators: 1: remaining pages, 2: total daily page budget */
81 (0,pt.__)("%1$d of %2$d daily pages remaining on this site","surecookie"),p.pages_per_day.remaining,p.pages_per_day.limit),!t&&e&&` · ${(0,pt.sprintf)(/* translators: %s: time until reset (e.g. "4h 22m") */ /* translators: %s: time until reset (e.g. "4h 22m") */
82 (0,pt.__)("Resets in %s","surecookie"),e)}`]})]})})(),(0,yt.jsx)(Fa,{variant:"ghost",size:"xs",onClick:async()=>{try{const e=await v();if(e?.fresh&&e.quota)return void At.success((0,pt.__)("Limits refreshed.","surecookie"));const t=e?.error_code;if(!t)return void At.error((0,pt.__)("Failed to refresh limits.","surecookie"));if(Vo.includes(t))return void At.warning((0,pt.__)("Your session expired. Please reload to reconnect.","surecookie"));At.error((0,pt.__)("We couldn't fetch your limits right now. Please try again in a moment.","surecookie"))}catch(e){At.error((0,pt.__)("Failed to refresh limits.","surecookie"))}},disabled:y,icon:(0,yt.jsx)(Ece,{className:y?"animate-spin w-3 h-3":"w-3 h-3"}),iconPosition:"left",children:y?(0,pt.__)("Refreshing…","surecookie"):(0,pt.__)("Refresh limits","surecookie")})]}),(0,yt.jsxs)("div",{className:"w-full",children:[(0,yt.jsx)(uk,{searchFn:Y,onChange:e=>{if(!Array.isArray(e))return void s(Eo(e));const t=e.filter((e,t,n)=>t===n.findIndex(t=>Number(t.value)===Number(e.value)));s(t)},placeholder:(0,pt.sprintf)(/* translators: %d: maximum items */ /* translators: %d: maximum items */
83 (0,pt.__)("Select up to %d items to scan…","surecookie"),q),label:(0,pt.__)("Select Content","surecookie"),combobox:!0,multiple:!0,groupBy:"typeLabel",value:i.filter(Boolean)}),!H&&(0,yt.jsx)(pk,{color:te?"warning":"info",showIcon:!0,className:"mt-4",title:te?(0,pt.sprintf)(/* translators: %d: maximum pages */ /* translators: %d: maximum pages */
84 (0,pt.__)("You have selected more than %d pages","surecookie"),b):(0,pt.__)("Select the content you want to scan.","surecookie"),message:ne,footer:re})]}),"verification_failed"===c?.code&&c?.dns_verification&&(0,yt.jsx)(Rce,{record:c.dns_verification,message:c.message,onVerified:()=>{u(null),J()}}),"require_pro"===c?.code&&(0,yt.jsx)(qk,{}),"limit_exceeded"===c?.code&&(0,yt.jsx)(qk,{title:(0,pt.__)("Daily Limit Reached","surecookie"),description:c?.used&&c?.limit?(0,pt.sprintf)(/* translators: 1: scans used, 2: scan limit */ /* translators: 1: scans used, 2: scan limit */
85 (0,pt.__)("You've used %1$d of %2$d daily scans. Your credits will refresh automatically tomorrow.","surecookie"),c.used,c.limit):(0,pt.__)("You've used all your scan credits for today. Your credits will refresh automatically tomorrow.","surecookie"),buttonText:j.label,onClickUpgrade:()=>{j.internal?window.location.href=j.href:window.open(j.href,"_blank","noopener,noreferrer")}}),N&&I&&(0,yt.jsx)(pk,{color:"info",showIcon:!0,title:(0,pt.__)("This is taking a little longer than usual","surecookie"),message:(0,pt.__)("A page is taking a while to respond, but your scan is still running in the background. Any cookies already found have been saved. You can leave this page and come back - or cancel and try again with fewer pages.","surecookie")}),H?(0,yt.jsx)(Hce,{onStart:()=>V(),isStarting:T.isPending,isRunning:N,selectedCount:i.length,maxPages:P,wasPromoted:R,footer:ee,onSwitchScanMode:()=>Q(Nce)}):(0,yt.jsxs)("div",{className:"flex gap-3",children:[(0,yt.jsx)(Fa,{className:jo("shadow-xs w-fit",{"cursor-not-allowed opacity-70":X||N||h||!i.length||i?.length>b}),variant:"primary",onClick:()=>{J()},icon:X||N?(0,yt.jsx)(Tw,{}):(0,yt.jsx)(bce,{}),iconPosition:"right",disabled:X||N||h||!i.length||!A?.isCronAvailable||i?.length>b,children:X||N?(0,pt.__)("Scanning…","surecookie"):(0,pt.__)("Start Scan","surecookie")}),ee]}),H&&(0,yt.jsx)(Kce,{pages:E?.pages,current:E?.progress?.completed_pages??0,onRescan:e=>V([e]),isBusy:N||T.isPending}),!H&&(0,yt.jsx)("div",{className:"w-full",children:(0,yt.jsx)(Iw,{as:"span",size:14,weight:500,color:"primary",className:"block",children:(0,ct.createInterpolateElement)((0,pt.__)("<p>By scanning you accept our <a>Terms and Conditions</a>.</p>","surecookie"),{p:(0,yt.jsx)("p",{className:"text-text-tertiary"}),a:(0,yt.jsx)("a",{"aria-label":(0,pt.__)("Terms and Conditions","surecookie"),className:"!text-link-primary hover:!text-link-primary-hover hover:underline inline-block [box-shadow:none] cursor-pointer",href:window?.surecookieAdminData?.termsConditionsURL||"#",target:"_blank",rel:"noopener noreferrer"})})})})]})]})}),(0,yt.jsx)(Pce,{isOpen:a,setIsOpen:l,onScanComplete:()=>{l(!1)},isAssistedMode:H,onSwitchScanMode:L?()=>Q(H?Nce:Ice):null})]}):(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("Cookie Scanner","surecookie"),pageDescription:(0,pt.__)("Scan your website to find cookies, scripts, and trackers that require consent.","surecookie"),renderNotice:(0,yt.jsx)(eue,{}),children:(0,yt.jsx)(Qk,{onClickGetStarted:t,onClickLearnMore:()=>window.open(Wce,"_blank","noopener")})})},$ce=({type:e="warning",title:t,description:n,buttonText:r,onButtonClick:o,onClose:i})=>{const s={warning:{bgColor:"bg-amber-100",iconColor:"text-support-warning",borderColor:"",textColor:"text-text-primary",buttonColor:"text-blue-500 hover:text-blue-600",icon:Ak},info:{bgColor:"bg-[#F0F7EB]",iconColor:"text-brand-primary-600",borderColor:"",textColor:"text-text-primary",buttonColor:"text-brand-primary-600 hover:text-brand-hover-700",icon:hk}},a=s[e]||s.warning,l=a.icon;return(0,yt.jsxs)("div",{className:jo("relative flex items-center justify-center gap-1 px-2 py-2",a.bgColor,a.borderColor),children:[(0,yt.jsx)("div",{className:jo("inline-flex items-center flex-shrink-0 mr-1",a.iconColor),children:(0,yt.jsx)(l,{size:16})}),(0,yt.jsxs)("div",{className:"space-x-1",children:[t&&(0,yt.jsx)(Iw,{as:"p",size:12,weight:500,className:jo("inline-block",a.textColor),children:t}),n&&(0,yt.jsx)(Iw,{as:"p",size:12,weight:400,className:jo("inline-block",a.textColor),children:n})]}),r&&(0,yt.jsx)("button",{type:"button",onClick:o,className:jo("flex-shrink-0 text-xs font-semibold transition-colors",a.buttonColor),children:r}),i&&(0,yt.jsx)("button",{type:"button",onClick:i,className:"absolute right-2 inline-flex items-center p-1 rounded hover:bg-black/5 transition-colors","aria-label":"Dismiss",children:(0,yt.jsx)(gU,{size:14,className:a.textColor})})]})},Yce=window?.surecookieAdminData||window?.surecookieOnboardingData,Zce=()=>!Yce||Yce.isCronAvailable||Yce.is_local_site?null:(0,yt.jsx)(pk,{color:"warning",showIcon:!0,title:(0,pt.__)("WordPress Cron is Disabled","surecookie"),message:(0,pt.__)("The WordPress cron system is not working on your site. Cookie scanning may not work as expected. Please enable WP-Cron or set up a server cron job to ensure proper functionality.","surecookie")}),Xce=window?.surecookieAdminData||window?.surecookieOnboardingData,Jce=()=>Xce?.is_local_site?(0,yt.jsx)(pk,{color:"warning",showIcon:!0,title:(0,pt.__)("Cookie Scanning Not Available on Local Sites","surecookie"),message:(0,pt.__)("This site is running on a local or development environment that our cloud scanner cannot reach. Cookie scanning will be available once your site is live on a publicly accessible domain.","surecookie")}):null,eue=(window?.surecookieAdminData||window,()=>(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(Jce,{}),(0,yt.jsx)(Zce,{})]})),tue=()=>(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:"space-y-2",children:[(0,yt.jsx)(Zk,{className:"h-5 w-24"}),(0,yt.jsx)(Zk,{className:"h-10 w-full rounded-md"}),(0,yt.jsx)(Zk,{className:"h-5 w-72"})]}),(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsxs)("div",{className:"flex gap-1 p-1 rounded-md ring-1 ring-border-subtle w-full",children:[(0,yt.jsx)(Zk,{className:"h-8 flex-1 rounded-md"}),(0,yt.jsx)(Zk,{className:"h-8 flex-1 rounded-md"})]}),(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsxs)("div",{className:"space-y-1",children:[(0,yt.jsx)(Zk,{className:"h-5 w-full"}),(0,yt.jsx)(Zk,{className:"h-5 w-3/4"})]}),(0,yt.jsxs)("div",{className:"space-y-2",children:[(0,yt.jsx)(Zk,{className:"h-5 w-24"}),(0,yt.jsx)(Zk,{className:"h-10 w-full rounded-md"})]})]})]}),(0,yt.jsx)("div",{className:"flex justify-start gap-3 mt-6 mb-4",children:(0,yt.jsx)(Zk,{className:"h-10 w-[70px] rounded-md"})})]}),nue=()=>{const{getCurrentValue:e,updateSetting:t,isLoaded:n,isError:r}=si(),[o,i]=(0,ct.useState)("menu"),[s,a]=(0,ct.useState)(!1),l=Boolean(window.surecookieAdminData?.is_pro_active),c=window.surecookieAdminData?.navMenus||[],u=!1!==e("banner_enabled"),d=!0===e("floating_widget_enabled"),A=e("reconsent_button_label")||(0,pt.__)("Cookie Preferences","surecookie"),h=e("reconsent_menu_id")||"",p=[{value:"",label:(0,pt.__)("Select","surecookie")},...c.map(e=>({value:String(e.id),label:e.name}))],f=(0,ct.useMemo)(()=>(0,ht.applyFilters)("surecookie.reconsentFloatingWidgetTab",null,{getCurrentValue:e,updateSetting:t}),[e,t]);return(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("Re-Consent","surecookie"),pageDescription:(0,pt.__)('Configure how the "Cookie Preferences" button appears on your site, allowing users to update their consent at any time.',"surecookie"),children:n?r?(0,yt.jsx)(pk,{color:"error",showIcon:!0,title:(0,pt.__)("Failed to load settings","surecookie"),message:(0,pt.__)("An error occurred while loading settings. Please refresh the page to try again.","surecookie")}):(0,yt.jsxs)(yt.Fragment,{children:[u&&!h&&!d&&(0,yt.jsx)(pk,{color:"warning",showIcon:!0,title:(0,pt.__)("No re-consent method active","surecookie"),message:(0,pt.__)("Visitors won't be able to update their cookie preferences unless you add a menu item or place the shortcode on a page. You can safely ignore this if the shortcode is already added.","surecookie")}),(0,yt.jsxs)("div",{className:"space-y-2",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"reconsent-label",children:(0,pt.__)("Button Label","surecookie")}),(0,yt.jsx)(j_,{id:"reconsent-label",value:A,onChange:e=>{t("reconsent_button_label",e)},placeholder:(0,pt.__)("Cookie Preferences","surecookie"),size:"md"}),(0,yt.jsx)(Iw,{as:"p",size:13,color:"help",children:(0,pt.__)("The label shown on the Cookie Preferences link.","surecookie")})]}),(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsxs)(C_.Group,{className:"w-full",size:"md",variant:"rounded",activeItem:o,onChange:({event:e,value:{slug:t}})=>{e.preventDefault(),e.stopPropagation(),i(t)},children:[(0,yt.jsx)(C_.Tab,{slug:"menu",text:(0,pt.__)("Menu Level","surecookie"),className:"text-sm"}),(0,yt.jsx)(C_.Tab,{slug:Jo,text:(0,pt.__)("Shortcode","surecookie"),className:"text-sm"}),(0,yt.jsx)(C_.Tab,{slug:ei,text:(0,pt.__)("Floating Widget","surecookie"),className:"text-sm"})]}),"menu"===o&&(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsx)(Iw,{as:"p",size:14,color:"secondary",children:(0,pt.__)("Select a WordPress menu to automatically add the Cookie Preferences link to it. When clicked, it opens the consent preferences modal directly.","surecookie")}),(0,yt.jsx)("div",{className:"space-y-2",children:0===c.length?(0,yt.jsx)(pk,{color:"warning",showIcon:!0,className:"mt-4",title:(0,pt.__)("No WordPress menus found.","surecookie"),message:(0,pt.__)("Create a menu in Appearance > Menus.","surecookie")}):(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"reconsent-menu",children:(0,pt.__)("Select Menu","surecookie")}),(0,yt.jsxs)(lk,{id:"reconsent-menu",value:h,onChange:e=>t("reconsent_menu_id",e),size:"md",children:[(0,yt.jsx)(lk.Button,{placeholder:(0,pt.__)("Select","surecookie"),render:e=>{const t=p.find(t=>t.value===e);return t?.label||(0,pt.__)("Select","surecookie")}}),(0,yt.jsx)(lk.Options,{children:p.map(e=>(0,yt.jsx)(lk.Option,{value:e.value,children:e.label},e.value))})]})]})})]}),o===Jo&&(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsx)(Iw,{as:"p",size:14,color:"secondary",children:(0,pt.__)("Use this shortcode to display the Cookie Preferences link anywhere on your site. When clicked, it opens the consent preferences modal directly.","surecookie")}),(0,yt.jsxs)("div",{className:"flex items-center justify-between p-3 gap-2 ring-1 rounded-lg ring-alert-border-neutral bg-background-secondary",children:[(0,yt.jsx)("div",{className:"flex items-center gap-2 flex-1",children:(0,yt.jsx)(Iw,{size:14,lineHeight:20,color:"primary",weight:500,children:Xo})}),(0,yt.jsx)(fk,{className:"w-5 h-5 text-text-primary cursor-pointer hover:opacity-70 transition-opacity flex-shrink-0",onClick:async()=>{try{await db(Xo),a(!0),At.success((0,pt.__)("Shortcode Copied!","surecookie")),setTimeout(()=>a(!1),2e3)}catch{At.error((0,pt.__)("Could not copy to clipboard. Please copy the shortcode manually.","surecookie"))}},"aria-label":s?(0,pt.__)("Copied!","surecookie"):(0,pt.__)("Copy shortcode","surecookie")})]})]}),o===ei&&(0,yt.jsx)("div",{className:"space-y-4",children:l&&f?f:(0,yt.jsx)(Zb,{"aria-label":(0,pt.__)("Enable Floating Widget","surecookie"),id:"floating-widget-switch-free",label:{heading:(0,pt.__)("Enable Floating Widget","surecookie"),description:(0,yt.jsxs)("span",{children:[(0,yt.jsx)("a",{href:ni("pricing_reconsent_banner","pricing/"),target:"_blank",rel:"noopener noreferrer",className:"!text-link-primary hover:!text-link-primary-hover hover:underline [box-shadow:none]",children:(0,pt.__)("Upgrade Now","surecookie")})," ",(0,pt.__)("to show a floating cookie preferences button on every page.","surecookie")]})},size:"sm",value:!1,disabled:!0})})]}),(0,yt.jsx)(h_,{})]}):(0,yt.jsx)(tue,{})})},rue=()=>{const[e,t]=(0,ct.useState)(!1),[n,r]=(0,ct.useState)(null),{data:o=[],isLoading:i}=Yn(),{mutateAsync:s}=(()=>{const e=bt();return En({mutationFn:async e=>{const t=await(e=>Fn()({method:"POST",path:"/surecookie/v1/plugin/deactivate",data:{plugin_path:e}}))(e);if(!t.success)throw new Error(t.message||(0,pt.__)("Failed to deactivate plugin.","surecookie"));return t},onSuccess:()=>{e.invalidateQueries({queryKey:Nn.conflictingPlugins.list()})}})})();return i||0===o.length?null:(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)($ce,{title:(0,pt.__)("Conflicting Plugins Detected.","surecookie"),description:(0,pt.__)("It's recommended to deactivate them to avoid issues.","surecookie"),buttonText:(0,pt.__)("Deactivate Plugin","surecookie"),onButtonClick:()=>t(!0)}),(0,yt.jsxs)(fw,{design:"simple",exitOnEsc:!0,scrollLock:!0,open:e,setOpen:t,children:[(0,yt.jsx)(fw.Backdrop,{}),(0,yt.jsxs)(fw.Panel,{className:"w-141.5",children:[(0,yt.jsxs)(fw.Header,{children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,yt.jsx)(fw.Title,{children:(0,pt.__)("Conflicting Plugins Detected","surecookie")}),(0,yt.jsx)(fw.CloseButton,{})]}),(0,yt.jsx)(fw.Description,{children:(0,pt.__)("The following plugins may conflict with SureCookie. It's recommended to deactivate them to avoid issues.","surecookie")})]}),(0,yt.jsx)(fw.Body,{children:(0,yt.jsx)("div",{className:"space-y-3",children:o.map(e=>(0,yt.jsxs)("div",{className:"flex items-center justify-between p-2.5 bg-primary border border-border-subtle rounded-md mb-3 last:mb-0",children:[(0,yt.jsxs)("div",{className:"flex items-center gap-4",children:[(0,yt.jsx)("div",{className:"p-1.5 shrink-0 bg-background-primary rounded overflow-hidden border border-border-subtle flex items-center justify-center shadow-sm",children:(0,yt.jsx)("img",{src:e.icon,alt:e.name,className:"shrink-0 w-6 h-6 object-cover",onError:t=>{const n=t.target.src,r=e.path.includes("/")?e.path.split("/")[0]:e.path.replace(".php","");n.includes("/assets/icon-256x256.png")?t.target.src=`https://ps.w.org/${r}/assets/icon-128x128.png`:n.includes("/assets/icon-128x128.png")?t.target.src=`https://ps.w.org/${r}/icon-256x256.png`:n.includes("/icon-256x256.png")?t.target.src=`https://ps.w.org/${r}/icon-128x128.png`:n.includes("geopattern-icon")?t.target.onerror=null:t.target.src=`https://s.w.org/plugins/geopattern-icon/${r}.svg`}})}),(0,yt.jsxs)("div",{className:"space-y-0.5",children:[(0,yt.jsx)(Iw,{as:"span",size:14,weight:500,color:"primary",className:"block",children:e.name}),(0,yt.jsxs)(Iw,{as:"span",size:12,weight:400,color:"help",className:"block",children:[(0,pt.__)("Version:","surecookie")," ",e.version]}),e.isNetworkActivated&&(0,yt.jsx)(Iw,{as:"span",size:12,weight:400,color:"help",className:"block",children:(0,pt.__)("Network-activated","surecookie")})]})]}),e.canDeactivate?(0,yt.jsx)(Fa,{variant:"secondary",size:"sm",onClick:()=>(async e=>{r(e);try{await s(e),At.success((0,pt.__)("Plugin deactivated successfully.","surecookie"),1===o?.length&&{description:(0,pt.__)("Deactivation successful. Reloading the page in 3 seconds.","surecookie")}),o.length<=1&&setTimeout(()=>{window.location.reload()},3e3)}catch{r(null),At.error((0,pt.__)("Failed to deactivate plugin.","surecookie"),{description:(0,pt.__)("The plugin could not be deactivated. Please try again.","surecookie")})}finally{o.length<=1&&t(!1),r(null)}})(e.path),disabled:n===e.path,children:n===e.path?(0,pt.__)("Deactivating…","surecookie"):(0,pt.__)("Deactivate","surecookie")}):e.isNetworkActivated?(0,yt.jsx)("a",{href:e.managementUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm font-medium text-text-primary whitespace-nowrap hover:underline",children:(0,pt.__)("Manage in Network Admin","surecookie")}):null]},e.path))})}),(0,yt.jsx)(fw.Footer,{className:"p-5",children:(0,yt.jsx)(Fa,{variant:"outline",onClick:()=>t(!1),children:(0,pt.__)("Close","surecookie")})})]})]})]})};var oue=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(s,a)}l((r=r.apply(e,t||[])).next())})};const iue={rssFeedURL:"",selector:"",uniqueKey:"",loaderIcon:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">\n\t<circle cx="50" cy="50" fill="none" stroke="#9f9f9f" stroke-width="10" r="35" stroke-dasharray="164.93361431346415 56.97787143782138">\n\t\t<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"></animateTransform>\n\t</circle>\n\t</svg>',viewAll:{link:"",label:"View All"},triggerButton:{label:"",icon:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.61703 13.1998C8.04294 13.1503 7.46192 13.125 6.875 13.125H6.25C4.17893 13.125 2.5 11.4461 2.5 9.375C2.5 7.30393 4.17893 5.625 6.25 5.625H6.875C7.46192 5.625 8.04294 5.59972 8.61703 5.55018M8.61703 13.1998C8.82774 14.0012 9.1031 14.7764 9.43719 15.5195C9.64341 15.9782 9.48685 16.5273 9.05134 16.7787L8.50441 17.0945C8.04492 17.3598 7.45466 17.1921 7.23201 16.7106C6.70983 15.5811 6.30451 14.3866 6.03155 13.1425M8.61703 13.1998C8.29598 11.9787 8.125 10.6968 8.125 9.375C8.125 8.05316 8.29598 6.77125 8.61703 5.55018M8.61703 13.1998C11.25 13.427 13.737 14.1643 15.9789 15.3124M8.61703 5.55018C11.25 5.323 13.737 4.58569 15.9789 3.43757M15.9789 3.43757C15.8808 3.12162 15.7751 2.80903 15.662 2.5M15.9789 3.43757C16.4247 4.87356 16.7131 6.37885 16.8238 7.93326M15.9789 15.3124C15.8808 15.6284 15.7751 15.941 15.662 16.25M15.9789 15.3124C16.4247 13.8764 16.7131 12.3711 16.8238 10.8167M16.8238 7.93326C17.237 8.2772 17.5 8.79539 17.5 9.375C17.5 9.95461 17.237 10.4728 16.8238 10.8167M16.8238 7.93326C16.8578 8.40942 16.875 8.8902 16.875 9.375C16.875 9.8598 16.8578 10.3406 16.8238 10.8167" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',beforeBtn:"",afterBtn:"",className:"",onClick:()=>{}},notification:{setLastPostUnixTime:null,getLastPostUnixTime:null},flyout:{title:"What's New?",innerContent:{titleLink:!0,additionalClasses:[]},excerpt:{wordLimit:500,moreSymbol:"&hellip;",readMore:{label:"Read More",className:""}},className:"",closeOnEsc:!0,closeOnOverlayClick:!0,closeBtnIcon:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 18L18 6M6 6L18 18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',formatDate:null,onOpen:()=>{},onClose:()=>{},onReady:()=>{}}};class sue{constructor(e){this.rssFeedURLs=[],this.lastPostUnixTime=0,this.multiLastPostUnixTime={},this.notificationsCount=0,this.multiNotificationCount={},this.hasNewFeeds=!1,this.multiHasNewFeeds={},this.validateArgs(e),this.parseDefaults(e),this.setElement(),this.getElement()&&(this.setID(),this.setRSSFeedURLs(),aue.setInstanceID(this.getID()),this.RSS_Fetch_Instance=new lue(this),this.RSS_View_Instance=new cue(this),this.setNotificationsCount(),this.setTriggers())}validateArgs(e){["rssFeedURL","selector","uniqueKey"].forEach(t=>{if(!e[t])throw new Error(`${t} is a required argument. It cannot be empty or undefined.`);if("rssFeedURL"===t){const n=e[t];Array.isArray(n)&&n.forEach(e=>{if(!(null==e?void 0:e.key))throw new Error(`The parameter "key" is required for "${t}" parameter in multi-feed mode.`);if(e.key.includes(" "))throw new Error(`The parameter "key" cannot have spaces for "${t}" parameter in multi-feed mode. Ref Key: "${e.key}"`)})}})}parseDefaults(e){var t,n;this.args=Object.assign(Object.assign(Object.assign({},iue),e),{viewAll:Object.assign(Object.assign({},iue.viewAll),null==e?void 0:e.viewAll),triggerButton:Object.assign(Object.assign({},iue.triggerButton),null==e?void 0:e.triggerButton),flyout:Object.assign(Object.assign(Object.assign({},iue.flyout),null==e?void 0:e.flyout),{innerContent:Object.assign(Object.assign({},iue.flyout.innerContent),null===(t=null==e?void 0:e.flyout)||void 0===t?void 0:t.innerContent),excerpt:Object.assign(Object.assign({},iue.flyout.excerpt),null===(n=null==e?void 0:e.flyout)||void 0===n?void 0:n.excerpt)})})}getArgs(){return this.args}setElement(){this.element=document.querySelector(this.args.selector)}getElement(){return this.element}setID(){const e=[this.getArgs().selector,this.getArgs().uniqueKey],t=this.getArgs().rssFeedURL;Array.isArray(t)?t.forEach(t=>{e.push(t.key)}):e.push(t),this.ID=btoa(e.join("-")).slice(-12).replace(/=/g,"")+"-"+this.getArgs().uniqueKey}isMultiFeedRSS(){return"string"!=typeof this.getArgs().rssFeedURL}setRSSFeedURLs(){const e=this.getArgs().rssFeedURL;this.isMultiFeedRSS()?Array.isArray(e)&&e.forEach(e=>{this.rssFeedURLs.push(e)}):this.rssFeedURLs.push({key:null,label:"",url:e.toString()})}getRSSFeedURLs(){return this.rssFeedURLs}getID(){return this.ID}setNotificationsCount(){return oue(this,void 0,void 0,function*(){yield Promise.all(this.getRSSFeedURLs().map(e=>oue(this,[e],void 0,function*({key:e}){let t=0;t="function"==typeof this.getArgs().notification.getLastPostUnixTime?yield this.getArgs().notification.getLastPostUnixTime(e,this):aue.getLastPostUnixTime(e),this.isMultiFeedRSS()?this.multiLastPostUnixTime[e]=+t:this.lastPostUnixTime=+t}))),yield this.RSS_Fetch_Instance.fetchData().then(e=>{Object.keys(e).forEach(t=>{const n=e[t];if(!n.length)return;this.multiNotificationCount[t]=0;const r=+n[0].date,o=this.isMultiFeedRSS()?this.multiLastPostUnixTime[t]:this.lastPostUnixTime;r>o&&(n.forEach(e=>{e.date>o&&(this.isMultiFeedRSS()&&(this.multiNotificationCount[t]++,this.multiHasNewFeeds[t]=!0),this.notificationsCount++,this.hasNewFeeds=!0)}),this.RSS_View_Instance.setNotification(this.notificationsCount))})}).catch()})}getNotificationsCount(){return this.notificationsCount}setTriggers(){const e=document.getElementById(this.RSS_View_Instance.getTriggerButtonID()),t=document.getElementById(this.RSS_View_Instance.getFlyoutID()),n=t.querySelector(".whats-new-rss-flyout-inner-content"),r=document.getElementById(this.RSS_View_Instance.getFlyoutCloseBtnID()),o=document.getElementById(this.RSS_View_Instance.getFlyoutMultiFeedNavID()),i=e=>{this.RSS_Fetch_Instance.fetchData().then(r=>{n.innerHTML="";const o=r[e];if(!o.length)return;const i=+o[0].date,s=this.isMultiFeedRSS()?this.multiLastPostUnixTime[e]:this.lastPostUnixTime;o.forEach(t=>{const r=!!s&&t.date>s,o=this.getArgs().flyout.innerContent.titleLink?`<a href="${t.postLink}" target="_blank">\n\t\t\t\t\t\t\t\t<h2>${t.title}</h2>\n\t\t\t\t\t\t\t</a>`:`<h2>${t.title}</h2>`,i=`\n\t\t\t\t\t\t\t\t<div class="rss-content-header">\n\t\t\t\t\t\t\t\t\t<p>${this.RSS_View_Instance.formatDate(new Date(t.date))}</p>\n\t\t\t\t\t\t\t\t\t${o}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t${this.RSS_View_Instance.createExcerpt(t.description,t.postLink,this.getArgs().flyout.excerpt)}\n\t\t\t\t\t\t\t\t${this.RSS_View_Instance.listChildrenPosts(t.children)}\n\t\t\t\t\t\t\t`,a=this.getArgs().flyout.innerContent.additionalClasses;e&&a.push("`inner-content-item-feed-key-${key}`"),n.innerHTML+=this.RSS_View_Instance.innerContentWrapper(i,r,a.join(" "))}),this.getArgs().viewAll.link&&(n.innerHTML+=this.RSS_View_Instance.innerContentWrapper(`\n\t\t\t\t\t\t\t<a href="${this.getArgs().viewAll.link}" class="button view-all">${this.getArgs().viewAll.label}</a>\n\t\t\t\t\t\t\t`)),this.RSS_View_Instance.setIsLoading(!1),t.classList.add("ready"),this.getArgs().flyout.onReady(this),t.focus(),this.isMultiFeedRSS()||(this.lastPostUnixTime=i,this.hasNewFeeds&&("function"==typeof this.getArgs().notification.setLastPostUnixTime?this.getArgs().notification.setLastPostUnixTime(i,e):aue.setLastPostUnixTime(i,e)))}).catch()};e.addEventListener("click",e=>{e.preventDefault();const n=window.innerWidth-document.documentElement.clientWidth;if(this.getArgs().triggerButton.onClick(this),this.RSS_View_Instance.setIsLoading(!0),t.removeAttribute("style"),t.classList.remove("closed"),t.classList.add("open"),document.body.classList.add("whats-new-rss-is-active"),n){const e=document.getElementById("whats-new-rss-styles");(null==e?void 0:e.sheet)&&e.sheet.insertRule(`.whats-new-rss-is-active { background-color: yellow; padding-right: ${n}px; }`,e.sheet.cssRules.length)}if(this.getArgs().flyout.onOpen(this),!this.isMultiFeedRSS())return void i(null);const r=o.querySelectorAll("button");r.forEach(e=>{this.RSS_View_Instance.setMultiFeedTabNotificationCount(e.dataset.feedKey,this.multiNotificationCount[e.dataset.feedKey]),e.addEventListener("click",t=>{t.preventDefault();const n=e.dataset.feedKey;this.multiNotificationCount[n]=0,this.RSS_Fetch_Instance.fetchData().then(e=>{const t=e[n][0].date;this.multiLastPostUnixTime[n]=t,!0===this.multiHasNewFeeds[n]&&("function"==typeof this.getArgs().notification.setLastPostUnixTime?this.getArgs().notification.setLastPostUnixTime(t,n):aue.setLastPostUnixTime(t,n)),this.multiHasNewFeeds[n]=!1}).catch(),r.forEach(e=>{e.classList.remove("selected");const t=e.dataset.feedKey,r=`.inner-content-item-feed-key-${t}`;document.querySelectorAll(r).forEach(e=>{n!==t?e.classList.add("hidden"):e.classList.remove("hidden")})}),e.classList.add("selected"),i(n)})}),r[0].click()});const s=()=>{t.classList.add("closed"),t.classList.remove("open"),t.classList.remove("ready"),document.body.classList.remove("whats-new-rss-is-active"),this.isMultiFeedRSS()?this.RSS_View_Instance.setNotification(Object.values(this.multiNotificationCount).filter(Boolean).length):(this.hasNewFeeds=!1,this.RSS_View_Instance.setNotification(!1)),n.innerHTML="",this.getArgs().flyout.onClose(this),e.focus()};this.getArgs().flyout.closeOnEsc&&document.addEventListener("keydown",function(e){"Escape"===e.key&&t.classList.contains("open")&&s()}),this.getArgs().flyout.closeOnOverlayClick&&t.querySelector(".whats-new-rss-flyout-overlay").addEventListener("click",s),r.addEventListener("click",s)}}class aue{static setInstanceID(e){this.instanceID||(this.instanceID=e)}static prefixer(e,t=""){if(!this.instanceID)throw new Error("Instance ID not set.");return t?`${this.keys[e]}-${this.instanceID}-${t}`:`${this.keys[e]}-${this.instanceID}`}static _setDataExpiry(e=""){const t=(new Date).getTime()+864e5;sessionStorage.setItem(this.prefixer("SESSION_DATA_EXPIRY",e),JSON.stringify(t))}static _isDataExpired(e=""){const t=this.prefixer("SESSION_DATA_EXPIRY",e),n=window.sessionStorage.getItem(t);if(!n)return!0;const r=JSON.parse(n);return(new Date).getTime()>r&&(window.sessionStorage.removeItem(t),!0)}static setSessionData(e,t=""){return this._setDataExpiry(t),window.sessionStorage.setItem(this.prefixer("SESSION",t),e)}static getSessionData(e=""){return this._isDataExpired(e)?"{}":window.sessionStorage.getItem(this.prefixer("SESSION",e))}static setLastPostUnixTime(e,t=""){return window.localStorage.setItem(this.prefixer("LAST_LATEST_POST",t),e.toString())}static getLastPostUnixTime(e=""){return+window.localStorage.getItem(this.prefixer("LAST_LATEST_POST",e))}}aue.keys={SESSION_DATA_EXPIRY:"whats-new-cache-expiry",LAST_LATEST_POST:"whats-new-last-unixtime",SESSION:"whats-new-cache"};class lue{constructor(e){this.data={},this.RSS=e,this.RSS.getRSSFeedURLs().forEach(e=>{const t=JSON.parse(aue.getSessionData(e.key));t&&t.length&&(this.data[e.key]=t)})}fetchData(){return oue(this,void 0,void 0,function*(){if(Object.keys(this.data).length)return this.data;const e=this.RSS.getRSSFeedURLs().map(e=>oue(this,void 0,void 0,function*(){this.data[e.key]=[];const t=yield fetch(e.url);let n=yield t.text();n=n.replace(/&raquo;/g,"&amp;raquo;"),(new DOMParser).parseFromString(n,"text/xml").querySelectorAll("item").forEach(t=>{var n;const r=t.querySelector("title").textContent,o=t.querySelector("link").textContent,i=t.querySelector("content\\:encoded, encoded"),s=i?i.textContent:"",a=t.querySelector("pubDate").innerHTML;this.data[e.key].push({title:r,date:a?+new Date(a):null,postLink:o,description:s.replace(/<a\b((?:(?!target=)[^>])*)>/g,'<a$1 target="_blank">').replace(/<p>\s*<\/p>/g,""),children:JSON.parse((null===(n=t.querySelector("children"))||void 0===n?void 0:n.innerHTML)||"{}")})}),aue.setSessionData(JSON.stringify(this.data[e.key]),e.key)}));return yield Promise.all(e),this.data})}}class cue{constructor(e){this.RSS=e,this.createTriggerButton(),this.createFlyOut()}getTriggerButtonID(){return`whats-new-rss-btn-${this.RSS.getID()}`}getFlyoutID(){return`whats-new-rss-flyout-${this.RSS.getID()}`}getFlyoutCloseBtnID(){return`whats-new-rss-flyout-close-${this.RSS.getID()}`}getFlyoutMultiFeedNavID(){return`whats-new-rss-flyout-multi-feed-nav-${this.RSS.getID()}`}setIsLoading(e=!1){const t=document.getElementById(this.getFlyoutID());e?t.classList.add("is-loading"):t.classList.remove("is-loading")}setNotification(e){const t=document.querySelector(`#${this.getTriggerButtonID()} .whats-new-rss-notification-badge`);e?(this.RSS.isMultiFeedRSS()?(t.innerHTML="",t.classList.add("is-multi-feed")):t.innerHTML=e>9?"9+":e.toString(),t.classList.remove("hide")):t.classList.add("hide")}createTriggerButton(){let e="";const t=this.RSS.getArgs().triggerButton.label;e=t?`\n\t\t\t${this.RSS.getArgs().triggerButton.beforeBtn}\n\t\t\t<a class="whats-new-rss-trigger-button has-label" id="${this.getTriggerButtonID()}">\n\t\t\t\t<div class="icon-badge">\n\t\t\t\t\t${this.RSS.getArgs().triggerButton.icon}\n\t\t\t\t\t<div class="whats-new-rss-notification-badge hide">0</div>\n\t\t\t\t</div>\n\t\t\t\t${t}\n\t\t\t</a>\n\t\t\t${this.RSS.getArgs().triggerButton.afterBtn}\n\t\t\t`:`\n\t\t\t${this.RSS.getArgs().triggerButton.beforeBtn}\n\t\t\t<a class="whats-new-rss-trigger-button" id="${this.getTriggerButtonID()}">\n\t\t\t\t${this.RSS.getArgs().triggerButton.icon}\n\t\t\t\t<div class="whats-new-rss-notification-badge hide">0</div>\n\t\t\t</a>\n\t\t\t${this.RSS.getArgs().triggerButton.afterBtn}\n\t\t\t`,this.RSS.getElement().innerHTML+=e}createFlyOut(){const e=["whats-new-rss-flyout","closed"];this.RSS.getArgs().flyout.className&&e.push(this.RSS.getArgs().flyout.className);let t=[];this.RSS.isMultiFeedRSS()&&(t.push(`<nav id="${this.getFlyoutMultiFeedNavID()}" class="whats-new-rss-multi-feed-nav">`),this.RSS.getRSSFeedURLs().forEach(e=>{t.push(`<button type="button" data-feed-key="${e.key}">\n\t\t\t\t\t\t${e.label}\n\t\t\t\t\t\t<div class="new-notification-count"></div>\n\t\t\t\t\t</button>\n\t\t\t\t\t`)}),t.push("</nav>"));const n=document.createElement("div");n.setAttribute("id",this.getFlyoutID()),n.setAttribute("class",e.join(" ")),n.setAttribute("role","dialog"),n.setAttribute("style","visibility:hidden"),n.innerHTML=`\n\t\t<div class="whats-new-rss-flyout-contents">\n\n\t\t\t<div class="whats-new-rss-flyout-inner-header">\n\n\t\t\t\t<div class="whats-new-rss-flyout-inner-header__title-icon-wrapper">\n\t\t\t\t\t<h3>${this.RSS.getArgs().flyout.title}</h3>\n\n\t\t\t\t\t<span class="whats-new-rss-flyout-inner-header__loading-icon">\n\t\t\t\t\t${this.RSS.getArgs().loaderIcon}\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\n\t\t\t\t<button type="button" id="${this.getFlyoutCloseBtnID()}">${this.RSS.getArgs().flyout.closeBtnIcon}</button>\n\t\t\t</div>\n\n\t\t\t${t.join("")}\n\n\t\t\t<div class="whats-new-rss-flyout-inner-content">\n\t\t\t\t<div class="skeleton-container">\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t</div>\n\n\t\t<div class="whats-new-rss-flyout-overlay"></div>\n\t\t`,document.body.appendChild(n)}setMultiFeedTabNotificationCount(e,t=0){const n=document.querySelector(`#${this.getFlyoutMultiFeedNavID()} button[data-feed-key="${e}"]`);if(!n)return;const r=n.querySelector(".new-notification-count");if(t){const e=t>9?"9+":t;r.innerHTML=e.toString()}else r.innerHTML=""}innerContentWrapper(e,t=!1,n=""){const r=["whats-new-rss-flyout-inner-content-item"];return t&&r.push("rss-new-post"),n&&r.push(n),`\n\t\t<div class="${r.join(" ")}">\n\t\t\t${t?'<small class="new-post-badge">New ✨</small>':""}\n\t\t\t${e}\n\t\t</div>\n\t\t`}createExcerpt(e,t,n){const{wordLimit:r,moreSymbol:o,readMore:i}=n;if(!r)return e;const s=e.replace(/<[^>]*>/g,"").split(/\s+/);let a=s.slice(0,r).join(" ");return o&&(a+=o),r>s.length?e:t&&(null==i?void 0:i.label)?`<p>${a} <a href="${t}" target="_blank" class="${i.className}">${i.label}</a></p>`:`<p>${a}</p>`}listChildrenPosts(e){const t=Object.values(e);if(!t.length)return"";const n=document.createElement("details"),r=document.createElement("summary"),o=document.createElement("div");return t.forEach(e=>{const t=(new DOMParser).parseFromString(e.post_content,"text/html"),n=document.createElement("div");n.classList.add("sub-version-item"),n.innerHTML=`\n\t\t\t\t<div class="sub-version-header">\n\t\t\t\t\t<h4 class="sub-version-title">${e.post_title}</h4>\n\t\t\t\t\t<span class="sub-version-date">${this.formatDate(new Date(e.post_date))}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="sub-version-content">${t.documentElement.textContent}</div>\n\t\t\t`,o.appendChild(n)}),r.innerHTML='<p class="text-see-more">See More</p><p class="text-see-less">See Less</p>',n.appendChild(r),n.appendChild(o),o.classList.add("sub-version-items-wrapper"),n.classList.add("whats-new-rss-sub-version-details"),n.outerHTML}formatDate(e){if("function"==typeof this.RSS.getArgs().flyout.formatDate)return this.RSS.getArgs().flyout.formatDate(e);const t=new Date,n=e.getTime(),r=t.getTime()-n,o=36e5,i=24*o,s=7*i,a=30*i;if(r<6e4)return"Just now";if(r<o){const e=Math.floor(r/6e4);return`${e} minute${e>1?"s":""} ago`}if(r<i){const e=Math.floor(r/o);return`${e} hour${e>1?"s":""} ago`}if(r<s){const e=Math.floor(r/i);return`${e} day${e>1?"s":""} ago`}if(r<a){const e=Math.floor(r/s);return`${e} week${e>1?"s":""} ago`}{const e=Math.floor(r/a);return`${e} month${e>1?"s":""} ago`}}}const uue=({previewEnabled:e,togglePreview:t,isLoading:n})=>{const[r,o]=(0,ct.useState)(window?.surecookieIsTourActive||!1);return(0,ct.useEffect)(()=>{const e=e=>{o(e.detail)};return window.addEventListener("surecookie_tour_status",e),()=>{window.removeEventListener("surecookie_tour_status",e)}},[]),n?(0,yt.jsx)(qb.Item,{children:(0,yt.jsx)("div",{className:"px-2 py-1",children:(0,yt.jsx)(zD,{headingWidth:"w-[5.5rem]",className:"items-center gap-2"})})}):(0,yt.jsx)(qb.Item,{children:(0,yt.jsxs)("div",{id:"surecookie-preview-toggle",className:jo("surecookie-preview-toggle-container flex items-center gap-2 px-2 py-1",r&&"pointer-events-none"),title:(0,pt.__)("Shows your default banner, the one visitors see when no Geographic Rule applies. Turning this on closes any rule preview.","surecookie"),children:[(0,yt.jsx)(Zb,{onChange:t,size:"sm",value:e}),(0,yt.jsxs)("span",{className:"text-sm font-medium text-slate-600",children:[(0,pt.__)("Preview:","surecookie")," ",(0,yt.jsx)("span",{className:"font-bold",children:e?(0,yt.jsx)("span",{style:{color:"#0FA961"},children:(0,pt.__)("ON","surecookie")}):(0,pt.__)("OFF","surecookie")})]})]})})},due="surecookie_upgrade_notice_seen",Aue=({hasConflicts:e})=>{const[t,n]=(0,ct.useState)(!0),[r,o]=(0,ct.useState)(!1);return(0,ct.useEffect)(()=>{window?.surecookieAdminData?.is_pro_active||Boolean(window?.surecookieAdminData?.show_upgrade_notice)&&(document.cookie.includes(due)||o(!0))},[]),r&&t&&!e?(0,yt.jsx)($ce,{type:"info",title:(0,pt.__)("Unlock Geo Rules, Advanced Scanning & more with SureCookie Premium.","surecookie"),buttonText:(0,yt.jsxs)(yt.Fragment,{children:[(0,pt.__)("Upgrade to Premium","surecookie"),(0,yt.jsx)(Vk,{size:12,className:"inline ml-0.5"})]}),onButtonClick:()=>window.open(ni("pricing_admin_toolbar_upgrade","pricing/"),"_blank","noopener,noreferrer"),onClose:()=>{n(!1);const e=new Date;e.setTime(e.getTime()+6048e5),document.cookie=`${due}=true;expires=${e.toUTCString()};path=/`}}):null},hue=({previewVisible:e,setPreviewVisible:t,isSettingsLoading:n})=>{const r=Yi(),o=Gi(),[i,s]=(0,ct.useState)(!1),a=(0,ct.useMemo)(()=>Hb(),[]),{data:l=[],isLoading:c}=Yn();(function({selector:e,...t}){const n=(0,ft.useRef)(null);(0,ft.useEffect)(()=>(async function(){const e="whats-new-rss-styles";if(!document.getElementById(e)){const t=document.createElement("style");t.id=e,t.innerHTML=await async function(){return'.whats-new-rss-is-active{overflow:hidden}.whats-new-rss-trigger-button{display:flex;align-items:center;position:relative;width:auto;padding:0!important;cursor:pointer}.whats-new-rss-trigger-button.has-label{align-items:end;gap:10px}.whats-new-rss-trigger-button.has-label .icon-badge{position:relative;line-height:1}.whats-new-rss-trigger-button.has-label .icon-badge .whats-new-rss-notification-badge{top:-12px;right:-10px}.whats-new-rss-trigger-button .whats-new-rss-notification-badge{position:absolute;top:-8px;right:-9px;width:18px;height:18px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:#ff580e;display:flex;align-items:center;justify-content:center;transition:transform .2s ease-in-out}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.is-multi-feed{top:-2px;right:-2px;font-size:0;width:10px;height:10px}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.hide{display:none!important}.whats-new-rss-trigger-button:hover .whats-new-rss-notification-badge{transform:unset}.whats-new-rss-flyout{position:fixed;top:0;right:0;bottom:0;width:100%;z-index:99999;transition:visibility .3s ease-in-out;font-family:Figtree,sans-serif;height:100vh;font-size:15px;font-weight:400;line-height:20px;color:#374151;margin-bottom:5px}.whats-new-rss-flyout *,.whats-new-rss-flyout ::after,.whats-new-rss-flyout ::before{box-sizing:border-box}.whats-new-rss-flyout .lightbox-trigger,.whats-new-rss-flyout.hidden{display:none}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon{display:block;margin:auto}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon svg{display:block;background:0 0;width:25px;height:25px}.whats-new-rss-flyout p{font-size:14px;font-weight:400;line-height:20px;color:#374151;margin-bottom:15px}.whats-new-rss-flyout p a{color:#1170ff}.whats-new-rss-flyout .wp-block-uagb-buttons{background:#ff6c0a;padding:10px 18px;width:fit-content;color:#fff;border-radius:6px;box-shadow:0 1px 2px rgba(0,0,0,.05);margin-bottom:15px}.whats-new-rss-flyout .wp-block-uagb-buttons .uagb-button__link{color:#fff;font-size:1rem;font-weight:600;line-height:1.5rem}.whats-new-rss-flyout .ast-oembed-container{position:relative;padding-top:56.25%;height:0;overflow:hidden;max-width:100%;height:auto}.whats-new-rss-flyout .wp-has-aspect-ratio iframe{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.whats-new-rss-flyout .whats-new-rss-flyout-contents{position:fixed;display:flex;right:0;width:30%;height:100%;flex-direction:column;background-color:#fff;transition:transform .3s ease-in-out;z-index:9999}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header{display:flex;justify-content:space-between;align-items:center;padding:16px!important;border-bottom:1px solid #e5e7eb}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header [id^=whats-new-rss-flyout-close-]{width:24px;height:24px;display:flex;align-items:center;justify-content:center}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header button{border:none;background:0 0;font-size:30px;cursor:pointer;color:#111827;padding:0;margin:0;box-shadow:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper{display:flex;gap:10px;padding:0 4px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper h3{margin:0;padding:0;color:#111827;font-weight:600;font-size:16px;line-height:24px;margin-bottom:0!important}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav{display:flex;padding:0 30px;border-bottom:1px solid #e5e7eb;gap:2em;overflow:auto;white-space:nowrap}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button{position:relative;background:0 0;color:inherit;padding:15px 0;border-bottom:2px solid transparent}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:focus,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:hover{border-color:inherit}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button.selected{border-color:#5d5d5d}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button .new-notification-count{position:absolute;top:0;right:-10px;width:20px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:red}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content{flex:1;overflow-y:auto}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .skeleton-container{margin:30px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item{border-bottom:1px solid #d8dfe9;padding:20px;color:#374151;font-weight:400;font-size:14px;line-height:20px;display:flex;flex-direction:column}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item>:nth-child(n+1){margin:8px 0 8px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item>:first-child{margin-top:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item>:nth-child(n+1):is(ul){margin-top:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item>:nth-child(n+1):is(div):has(figure){margin-bottom:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item img{margin:0!important}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .wp-smiley{display:inline-block;margin:0;min-height:1em;margin-bottom:4px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item>*{margin:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h2{font-size:22px;font-weight:600;line-height:1.5em;margin-bottom:15px;padding-top:12px;padding-bottom:4px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h3{font-size:20px;font-weight:600;line-height:1.5em;padding-top:12px;padding-bottom:4px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h4{font-size:18px;font-weight:600;line-height:1.5em;padding-top:12px;padding-bottom:4px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h5{font-size:16px;font-weight:600;line-height:1.5em;margin-bottom:15px;padding-top:12px;padding-bottom:4px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h6{font-size:13px;font-weight:600;line-height:1.5em;margin-bottom:15px;padding-top:12px;padding-bottom:4px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.skeleton-row{height:25vh;margin:40px 0;background:linear-gradient(90deg,#eee 25%,#ddd 50%,#eee 75%);background-size:200% 100%;animation:shimmer 1.5s infinite}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post{position:relative}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post .new-post-badge{background:#ff6c0a;border-radius:4px;top:22px;right:24px;padding:0 4px;color:#fff;position:absolute}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header{display:flex;flex-direction:column;gap:4px;padding:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header p{color:#6b7280;margin:0;padding:0;font-weight:500;line-height:16px;font-size:12px;margin-bottom:0!important}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header h2{margin:0;color:#111827;font-weight:600;line-height:30px;font-size:20px;padding:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item p{padding:0;font-size:14px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item a{color:#1170ff;text-decoration:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure{margin:10px 0;margin-bottom:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure.wp-block-embed.is-type-video{position:relative;width:100%;height:0;padding-bottom:56.25%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0;max-width:100%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom;margin-bottom:15px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item video{vertical-align:middle;width:100%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item strong{font-weight:600}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{padding-inline-start:20px;margin-left:10px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol li,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul li{font-size:14px;font-weight:400;line-height:20px;color:#374151;margin:0 0 4px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol li:last-child,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul li:last-child{margin-bottom:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{list-style-type:disc}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol{list-style-type:decimal}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details{line-height:20px;font-size:.9em;margin:10px 0;background:#f9fafb}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary{display:flex;justify-content:space-between;cursor:pointer;padding:20px 15px;height:1em;line-height:20px;font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary::after{content:"⌃";font-size:20px;transform:rotateX(180deg);font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-more{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-less{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary{border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary::after{transform:rotateX(45deg)}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-more{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-less{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item{position:relative;padding:1em;border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-header{display:flex;justify-content:space-between}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-content{margin-top:1em}.whats-new-rss-flyout .whats-new-rss-flyout-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5);transition:all .3s ease-in-out}.whats-new-rss-flyout.closed{visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-overlay{opacity:0;visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-contents{transform:translateX(100%)}.whats-new-rss-flyout .whats-new-rss-flyout-inner-header__loading-icon{display:none}@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}@media screen and (max-width:1024px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:40%}}@media screen and (max-width:768px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:85%}}'}(),document.head.appendChild(t)}}(),n.current||(n.current=function(e){return new sue(e)}({selector:e,...t})),()=>{n.current&&"function"==typeof n.current.destroy&&n.current.destroy()}),[e,...Object.values(t)]),n.current})({uniqueKey:"surecookie",rssFeedURL:ni("whats_new_rss","whats-new/feed/"),selector:"#surecookie_whats_new",flyout:{title:(0,pt.__)("What's New?","surecookie")},triggerButton:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="size-4 m-1 text-text-primary font-semibold"><path d="m3 11 18-5v12L3 13v-2z"/><path d="M11.6 16.8a3 3 0 1 1-5.8-1.6"/></svg>'}}),(0,ct.useEffect)(()=>{sessionStorage.getItem("scanCompleted")&&(s(!0),setTimeout(()=>{s(!1),sessionStorage.removeItem("scanCompleted")},1e4));const e=()=>{s(!0),setTimeout(()=>{s(!1),sessionStorage.removeItem("scanCompleted")},1e4)};return window.addEventListener("scanCompleted",e),()=>{window.removeEventListener("scanCompleted",e)}},[]);const u=(0,ct.useMemo)(()=>{const e=o.pathname,t=a.find(t=>((t=[])=>t.some(t=>!!t?.path&&(!(e!==t.path&&!e.startsWith(`${t.path}/`)&&!e.startsWith(`${t.path}?`))||!!Array.isArray(t.submenu)&&t.submenu.some(t=>!!t?.path&&(e===t.path||e.startsWith(`${t.path}/`)||e.startsWith(`${t.path}?`))))))(t.links));return t?.sectionId||a?.[0]?.sectionId||"dashboard"},[o.pathname,a]),d=(e,t={})=>{const{query:n,hash:o}=t;let i=e;n&&(i+="?"+new URLSearchParams(n).toString()),o&&(i+="#"+o),r(i)},A=e=>{const t=a.find(t=>t.sectionId===e);t&&t.links.length>0&&r(t.links[0].path)},h=a.map(e=>({label:e.section,path:e.links[0].path,active:e.sectionId===u,sectionId:e.sectionId}));return(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(rue,{}),(0,yt.jsx)(Aue,{hasConflicts:c||l.length>0}),(0,yt.jsxs)(qb,{className:"w-auto min-h-[unset] h-16 border-b border-border-subtle p-0 sticky top-[32px] max-[782px]:top-[46px] z-20 bg-white",gap:0,children:[(0,yt.jsxs)(qb.Left,{className:"p-5",children:[(0,yt.jsx)(qb.Item,{className:"flex md:hidden",children:(0,yt.jsxs)(cw,{className:"lg:hidden",children:[(0,yt.jsx)(cw.Toggle,{className:"size-6"}),(0,yt.jsx)(cw.Options,{children:h.map(e=>(0,yt.jsx)(cw.Option,{onClick:()=>A(e.sectionId),active:e.active,children:e.label},e.label))})]})}),(0,yt.jsx)(qb.Item,{children:(0,yt.jsx)("div",{onClick:()=>d("/dashboard"),className:"flex items-center gap-3 cursor-pointer",children:(0,yt.jsx)(gb,{width:24,height:24})})})]}),(0,yt.jsx)(qb.Middle,{align:"left",className:"h-full",children:(0,yt.jsx)(qb.Item,{className:"h-full gap-4 hidden md:flex",children:h.map(({path:e,label:t,active:n,sectionId:r})=>(0,yt.jsxs)("button",{onClick:()=>A(r),className:"relative content-center no-underline h-full py-0 px-3 m-0 bg-transparent outline-none shadow-none border-0 focus:outline-none text-sm font-medium cursor-pointer",style:{color:n?"#111827":"#374151"},children:[t,n&&(0,yt.jsx)("span",{className:"absolute bottom-0 left-0 w-full h-px bg-[#377a00]"})]},e))})}),(0,yt.jsxs)(qb.Right,{className:"p-5",children:[(0,yt.jsx)(uue,{previewEnabled:e,togglePreview:()=>t(!e),isLoading:n}),i&&(0,yt.jsx)(qb.Item,{children:(0,yt.jsxs)("div",{className:"relative",children:[(0,yt.jsxs)("div",{className:"absolute -top-1 -right-1 flex h-3 w-3",children:[(0,yt.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),(0,yt.jsx)("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-green-500"})]}),(0,yt.jsx)(Fa,{variant:"ghost",size:"xs",icon:(0,yt.jsx)(uce,{className:"text-green-500"}),onClick:()=>{d("/cookie-manager/scan"),s(!1),sessionStorage.removeItem("scanCompleted")},className:"relative bg-green-50 hover:bg-green-100 border border-green-200",children:(0,yt.jsx)("span",{className:"hidden sm:inline text-green-700 text-xs font-medium",children:"Scan Complete!"})})]})}),(0,yt.jsx)(qb.Item,{children:(0,yt.jsx)(e_,{content:(0,pt.__)("Free version","surecookie"),children:(0,yt.jsx)(uw,{label:"V "+window?.surecookieAdminData?.core_version,size:"xs",variant:"neutral"})})}),window?.surecookieAdminData?.is_pro_active&&(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)("hr",{className:"w-px h-4 border-l border-r-0 border-y-0 border-solid border-border-subtle"}),(0,yt.jsx)(qb.Item,{children:(0,yt.jsx)(e_,{content:(0,pt.sprintf)(/* translators: %s: SureCookie plan tier, e.g. "Business" */ /* translators: %s: SureCookie plan tier, e.g. "Business" */
86 (0,pt.__)("%s version","surecookie"),window?.surecookieAdminData?.package_name?.replace(/^SureCookie\s+/i,"")||(0,pt.__)("Pro","surecookie")),children:(0,yt.jsx)(uw,{label:"V "+window?.surecookieAdminData?.premium_version,size:"xs",variant:"inverse"})})})]}),(0,yt.jsx)(qb.Item,{children:(0,yt.jsx)(Fa,{size:"sm",tag:"a",variant:"link",className:"text-text-primary focus:[box-shadow:none]",href:window?.surecookieAdminData?.helpLink??"#",target:"_blank",rel:"noreferrer noopener","aria-label":(0,pt.__)("Knowledge Base","surecookie"),icon:(0,yt.jsx)(Jk,{className:"size-4 m-1",strokeWidth:"1.5"})})}),(0,yt.jsx)(qb.Item,{children:(0,yt.jsx)("div",{id:"surecookie_whats_new",className:"[&>a]:p-0.5 [&>a]:pl-0"})})]})]})]})},pue=({rows:e=5})=>(0,yt.jsxs)(sU,{children:[(0,yt.jsxs)(sU.Head,{children:[(0,yt.jsx)(sU.HeadCell,{children:(0,yt.jsx)(Zk,{className:"h-4 w-16"})}),(0,yt.jsx)(sU.HeadCell,{className:"w-[14%]",children:(0,yt.jsx)(Zk,{className:"h-4 w-12"})}),(0,yt.jsx)(sU.HeadCell,{className:"w-[18%]",children:(0,yt.jsx)(Zk,{className:"h-4 w-20"})}),(0,yt.jsx)(sU.HeadCell,{className:"w-[14%]",children:(0,yt.jsx)(Zk,{className:"h-4 w-16"})}),(0,yt.jsx)(sU.HeadCell,{className:"w-[10%]",children:(0,yt.jsx)(Zk,{className:"h-4 w-16"})}),(0,yt.jsx)(sU.HeadCell,{className:"w-[10%] text-right",children:(0,yt.jsx)("span",{className:"sr-only",children:(0,pt.__)("Actions","surecookie")})})]}),(0,yt.jsx)(sU.Body,{children:Array.from({length:e}).map((e,t)=>(0,yt.jsxs)(sU.Row,{children:[(0,yt.jsx)(sU.Cell,{children:(0,yt.jsxs)("div",{className:"space-y-1",children:[(0,yt.jsx)(Zk,{className:"h-4 w-40"}),(0,yt.jsx)(Zk,{className:"h-3 w-24"})]})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Zk,{className:"h-4 w-14"})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Zk,{className:"h-8 w-full rounded-md"})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Zk,{className:"h-6 w-20 rounded-full"})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Zk,{className:"h-4 w-16"})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,yt.jsx)(Zk,{className:"h-6 w-6 rounded"}),(0,yt.jsx)(Zk,{className:"h-6 w-6 rounded"})]})})]},t))})]}),fue=()=>(0,yt.jsxs)("div",{className:"space-y-6",children:[(0,yt.jsxs)("div",{className:"inline-flex items-start gap-3 w-full",children:[(0,yt.jsx)(Zk,{className:"w-10 h-5 rounded-full shrink-0"}),(0,yt.jsxs)("div",{className:"space-y-1.5 w-full",children:[(0,yt.jsx)(Zk,{className:"h-4 w-48"}),(0,yt.jsx)(Zk,{className:"h-3 w-full max-w-xl"})]})]}),(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Zk,{className:"h-5 w-64"}),(0,yt.jsx)(Zk,{className:"h-3 w-44"})]}),(0,yt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,yt.jsx)(Zk,{className:"h-8 w-48 rounded-md"}),(0,yt.jsx)(Zk,{className:"h-8 w-32 rounded-md"})]})]}),(0,yt.jsx)(pue,{})]})]}),mue=_b("package-plus",[["path",{d:"M16 16h6",key:"100bgy"}],["path",{d:"M19 13v6",key:"85cyf1"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),gue="blocked",yue="allowed",vue="whitelisted",bue="gcm",wue="unblockable",xue={unreachable_tag:{label:(0,pt.__)("Cannot be blocked","surecookie"),notice:(0,pt.__)("SureCookie cannot block this resource. It loads as an image, and blocking only rewrites script, iframe, embed, object and link tags.","surecookie")},skippable_category:{label:(0,pt.__)("Loads before consent","surecookie"),notice:(0,pt.__)("This resource is in a category that is never held back, so it loads before consent. Move it to another category to have it blocked.","surecookie")}},kue=[{value:"script",label:(0,pt.__)("Script","surecookie")},{value:"iframe",label:(0,pt.__)("iFrame","surecookie")}],_ue=[{value:"head",label:(0,pt.__)("Head","surecookie")},{value:"body",label:(0,pt.__)("Body","surecookie")},{value:"footer",label:(0,pt.__)("Footer","surecookie")},{value:"any",label:(0,pt.__)("Anywhere (fallback)","surecookie")}],Cue=(0,pt.__)("Google Consent Mode is enabled, so SureCookie allows Google's Consent Mode scripts to function correctly. As a result, this script cannot be blocked.","surecookie"),Bue=(0,pt.__)("This resource is whitelisted, so it always loads - even before consent.","surecookie"),Sue={[bue]:(0,pt.__)("This script is managed by Google Consent Mode and always loads while GCM is enabled.","surecookie"),[vue]:(0,pt.__)("This resource matches a whitelist rule (custom entry or common service), so it always loads.","surecookie")},jue={script:(0,pt.__)("Script","surecookie"),iframe:(0,pt.__)("Iframe","surecookie"),any:(0,pt.__)("Script & Iframe","surecookie")},Eue={[gue]:{label:(0,pt.__)("Blocked until consent","surecookie"),variant:"neutral"},[yue]:{label:(0,pt.__)("Not blocked","surecookie"),variant:"yellow"},[vue]:{label:(0,pt.__)("Whitelisted","surecookie"),variant:"green",tooltip:Bue},[bue]:{label:(0,pt.__)("Managed by GCM","surecookie"),variant:"blue",tooltip:Cue},[wue]:{label:(0,pt.__)("Not blocked","surecookie"),variant:"yellow"}},Nue={"google-analytics":"Google Analytics","google-tag-manager":"Google Tag Manager","google-ads":"Google Ads",recaptcha:"reCAPTCHA",doubleclick:"DoubleClick",floodlight:"Floodlight","display-video-360":"Display & Video 360","campaign-manager-360":"Campaign Manager 360","search-ads-360":"Search Ads 360","firebase-analytics":"Firebase","google-fonts":"Google Fonts","google-adsense":"Google AdSense","google-ad-manager":"Google Ad Manager"},Iue=({value:e,onChange:t,categories:n,size:r="sm",ariaLabel:o,optionsClassName:i})=>(0,yt.jsxs)(lk,{size:r,value:e,onChange:t,children:[(0,yt.jsx)(lk.Button,{placeholder:(0,pt.__)("Select a category","surecookie"),"aria-label":o,render:e=>n.find(t=>t.value===e)?.label??(0,pt.__)("Select a category","surecookie")}),(0,yt.jsx)(lk.Options,{className:i,children:n.map(e=>(0,yt.jsx)(lk.Option,{value:e.value,children:e.label},e.value))})]}),Fue=({rows:e,categories:t,onEdit:n,onDelete:r,onCategoryChange:o,onAddAsService:i})=>(0,yt.jsxs)(sU,{children:[(0,yt.jsxs)(sU.Head,{children:[(0,yt.jsx)(sU.HeadCell,{children:(0,pt.__)("Name","surecookie")}),(0,yt.jsx)(sU.HeadCell,{className:"w-[14%]",children:(0,pt.__)("Type","surecookie")}),(0,yt.jsx)(sU.HeadCell,{className:"w-[18%]",children:(0,pt.__)("Category","surecookie")}),(0,yt.jsx)(sU.HeadCell,{className:"w-[14%]",children:(0,pt.__)("Status","surecookie")}),(0,yt.jsx)(sU.HeadCell,{className:"w-[10%]",children:(0,pt.__)("Source","surecookie")}),(0,yt.jsx)(sU.HeadCell,{className:"w-[10%] text-right",children:(0,yt.jsx)("span",{className:"sr-only",children:(0,pt.__)("Actions","surecookie")})})]}),(0,yt.jsx)(sU.Body,{children:e.map(e=>{const s=(e=>{const t=Eue[e?.behavior]??Eue[gue],n=e?.behavior===wue?xue[e?.unblockableReason]:null;return n?{...t,label:n.label,tooltip:n.notice}:t})(e),a="custom"===e.source,l=(0,yt.jsx)(uw,{className:"w-fit",size:"sm",variant:s.variant,label:s.label});return(0,yt.jsxs)(sU.Row,{className:"transition-colors duration-200",children:[(0,yt.jsx)(sU.Cell,{className:"max-w-[100px]",children:(0,yt.jsxs)("div",{className:"min-w-0",children:[e.name?(0,yt.jsx)(xD,{placement:"top",content:e.name,children:(0,yt.jsx)(Iw,{size:14,weight:500,color:"primary",className:"truncate",children:e.name})}):(0,yt.jsx)(Iw,{size:14,color:"tertiary",className:"italic",children:(0,pt.__)("Unknown","surecookie")}),(0,yt.jsx)(xD,{placement:"top",content:e.value,children:(0,yt.jsx)(Iw,{size:12,color:"tertiary",className:"font-mono truncate",children:e.value})}),e.serviceSlug&&(0,yt.jsx)(e_,{content:e.serviceInstalled?(0,pt.__)("Managed via Known Services - its cookies are declared in your cookie policy.","surecookie"):(0,pt.__)('Recognized Known Services catalog entry - Click "Add as Service" to declare its cookies.',"surecookie"),placement:"top",children:(0,yt.jsx)("span",{tabIndex:0,role:"note",className:"inline-flex mt-1",children:(0,yt.jsx)(uw,{className:"w-fit",size:"sm",variant:e.serviceInstalled?"green":"blue",label:e.serviceInstalled?(0,pt.__)("Managed Service","surecookie"):(0,pt.__)("Known Service","surecookie")})})})]})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(Iw,{size:14,color:"secondary",children:jue[e.resourceType]||jue.any})}),(0,yt.jsx)(sU.Cell,{className:"max-w-[160px]",children:e.behavior===vue?(0,yt.jsx)(Iw,{size:14,color:"secondary",children:(0,pt.__)("Always Allowed","surecookie")}):(0,yt.jsx)(Iue,{size:"sm",value:e.category,categories:t,ariaLabel:`${(0,pt.__)("Category for","surecookie")} ${e.name||e.value}`,onChange:t=>o(e,t)})}),(0,yt.jsx)(sU.Cell,{children:s.tooltip?(0,yt.jsx)(e_,{content:s.tooltip,placement:"top",children:(0,yt.jsx)("span",{tabIndex:0,role:"note","aria-label":s.tooltip,children:l})}):l}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsx)(uw,{className:"w-fit",size:"sm",variant:a?"neutral":"blue",label:a?(0,pt.__)("Custom","surecookie"):(0,pt.__)("Scanned","surecookie")})}),(0,yt.jsx)(sU.Cell,{children:(0,yt.jsxs)("div",{className:"flex justify-end gap-2",children:[e.serviceSlug&&!e.serviceInstalled&&i&&(0,yt.jsx)(e_,{content:(0,pt.__)("Add as Service","surecookie"),children:(0,yt.jsx)(Fa,{className:jo("[&_svg]:size-3.5","text-icon-secondary"),variant:"ghost",size:"xs",icon:(0,yt.jsx)(mue,{size:14}),onClick:()=>i(e.serviceSlug),"aria-label":`${(0,pt.__)("Add as Service","surecookie")} ${e.name||e.value}`})}),(0,yt.jsx)(e_,{content:(0,pt.__)("Edit","surecookie"),children:(0,yt.jsx)(Fa,{className:jo("[&_svg]:size-3.5","text-icon-secondary"),variant:"ghost",size:"xs",icon:(0,yt.jsx)(Boe,{size:14}),onClick:()=>n(e),"aria-label":`${(0,pt.__)("Edit","surecookie")} ${e.name||e.value}`})}),a&&(0,yt.jsx)(e_,{content:(0,pt.__)("Delete","surecookie"),children:(0,yt.jsx)(Fa,{className:"[&_svg]:size-3.5",variant:"ghost",size:"xs",icon:(0,yt.jsx)(fU,{size:14}),onClick:()=>r(e),destructive:!0,"aria-label":`${(0,pt.__)("Delete","surecookie")} ${e.name||e.value}`})})]})})]},e.id)})})]}),Tue={name:"",value:"",path:"",behavior:gue,category:"",type:"script",keywords:"",location:"any"},Lue=({isOpen:e,setIsOpen:t,mode:n,row:r,categories:o,isProActive:i,onSave:s,onCancel:a})=>{const[l,c]=(0,ct.useState)(Tue),[u,d]=(0,ct.useState)(""),A="scanned"===r?.source,h=!A||r?.behavior===vue&&r?.ownWhitelistRule?null:(e=>(e?.behavior===wue?xue[e?.unblockableReason]?.notice:Sue[e?.behavior])??null)(r),p=!!h&&r?.behavior!==wue;(0,ct.useEffect)(()=>{e&&(d(""),c(r?{name:r.name||"",value:r.value||"",path:r.path||"",behavior:r.behavior,category:r.category||"",type:r.resourceType||"any",keywords:r.keywords||"",location:r.location||"any"}:Tue))},[e,r]);const f=(e,t)=>{c(n=>({...n,[e]:t})),d("")},m=(({isScanned:e,isProActive:t})=>{const n=(0,pt.__)("Always load","surecookie"),r=[{value:gue,label:(0,pt.__)("Block until consent (recommended)","surecookie")}];return e?r.push({value:yue,label:n}):t&&r.push({value:vue,label:n}),r})({isScanned:A,isProActive:i}),g=(y=l.behavior,{[yue]:(0,pt.__)("SureCookie stops managing this resource, in the page and in the browser. Use this when it must load before consent.","surecookie"),[vue]:(0,pt.__)("SureCookie stops managing anything matching this rule, in the page and in the browser. Use this when it must load before consent.","surecookie")}[y]??"");var y;let v;return v=A||"edit"===n?(0,pt.__)("Edit Resource","surecookie"):(0,pt.__)("Add Script or Embed","surecookie"),(0,yt.jsxs)(qx,{isOpen:e,setIsOpen:t,title:v,saveLabel:"edit"===n?(0,pt.__)("Update","surecookie"):(0,pt.__)("Add Script or Embed","surecookie"),onSave:()=>{const e=s(l);!1!==e?.ok?t(!1):d(e.error)},onCancel:a,children:[h?(0,yt.jsx)(Iw,{as:"p",size:13,color:"help",children:h}):(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",children:(0,pt.__)("Behavior","surecookie")}),(0,yt.jsxs)(lk,{size:"md",value:l.behavior,onChange:e=>f("behavior",e),children:[(0,yt.jsx)(lk.Button,{placeholder:(0,pt.__)("Behavior","surecookie"),render:e=>(e=>{return m.find(t=>t.value===e)?.label||(t=e,{[gue]:(0,pt.__)("Block until consent","surecookie"),[yue]:(0,pt.__)("Always load","surecookie"),[vue]:(0,pt.__)("Always load","surecookie"),[bue]:(0,pt.__)("Managed by Google Consent Mode","surecookie"),[wue]:(0,pt.__)("Not blocked","surecookie")}[t]??"");var t})(e)}),(0,yt.jsx)(lk.Options,{className:"z-[99999]",children:m.map(e=>(0,yt.jsx)(lk.Option,{value:e.value,children:e.label},e.value))})]})]}),g&&(0,yt.jsx)(Iw,{as:"p",size:12,color:"help",className:"-mt-2",children:g}),!h&&l.behavior===vue&&(0,yt.jsx)(pk,{color:"warning",showIcon:!0,title:(0,pt.__)("Whitelisted Resource Warning","surecookie"),message:(0,pt.__)("If a resource sets cookies, allowing it directly can be a GDPR violation - only whitelist resources you are sure about.","surecookie")}),A?(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"script-rule-scanned-value",children:jue[r?.resourceType]||(0,pt.__)("Resource","surecookie")}),(0,yt.jsx)(j_,{id:"script-rule-scanned-value",size:"md",className:"w-full font-mono",value:r?.value||"",disabled:!0,"aria-disabled":"true"}),(0,yt.jsx)(Iw,{as:"p",size:12,color:"help",children:(0,pt.__)("Detected by the scanner, so the value cannot be edited.","surecookie")})]}):(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"script-rule-name",children:(0,pt.__)("Name","surecookie")}),(0,yt.jsx)(j_,{id:"script-rule-name",size:"md",value:l.name,onChange:e=>f("name",e),placeholder:(0,pt.__)("e.g. Support chat","surecookie")})]}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",children:(0,pt.__)("Type","surecookie")}),(0,yt.jsx)(MD.Group,{name:"script-rule-type",value:l.type,columns:2,size:"sm",className:"grid gap-3",onChange:e=>f("type",e),children:kue.map(e=>(0,yt.jsx)(MD.Button,{value:e.value,borderOn:!0,size:"sm",label:{heading:e.label}},e.value))})]}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"script-rule-value",className:'after:content-["*"] after:ml-0.5 after:text-text-error',children:(0,pt.__)("Domain / Host","surecookie")}),(0,yt.jsx)(j_,{id:"script-rule-value",size:"md",className:jo("w-full font-mono"),value:l.value,onChange:e=>f("value",e),placeholder:(0,pt.__)("e.g. connect.facebook.net","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:12,color:"help",children:(0,pt.__)("The host the resource loads from. Pasting a full tag or URL also works.","surecookie")})]}),l.behavior!==vue&&(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"script-rule-path",children:(0,pt.__)("Path / Pattern (advanced)","surecookie")}),(0,yt.jsx)(j_,{id:"script-rule-path",size:"md",className:"w-full font-mono",value:l.path,onChange:e=>f("path",e),placeholder:(0,pt.__)("e.g. /fbevents.js","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:12,color:"help",children:(0,pt.__)("Optional: narrow the rule to resources that also contain this path, so only one file on the host is blocked.","surecookie")})]}),l.behavior===gue&&"iframe"!==l.type&&(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"script-rule-keywords",children:(0,pt.__)("Script Keywords","surecookie")}),(0,yt.jsx)(j_,{id:"script-rule-keywords",size:"md",value:l.keywords,onChange:e=>f("keywords",e),placeholder:(0,pt.__)("e.g. fbq, fbq.push","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:12,color:"help",children:(0,pt.__)("JavaScript function names to block that depend on the main script (comma separated).","surecookie")})]}),l.behavior===gue&&"iframe"!==l.type&&(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",children:(0,pt.__)("Script Location","surecookie")}),(0,yt.jsxs)(lk,{size:"md",value:l.location,onChange:e=>f("location",e),children:[(0,yt.jsx)(lk.Button,{placeholder:(0,pt.__)("Anywhere","surecookie"),render:e=>_ue.find(t=>t.value===e)?.label??_ue[0].label}),(0,yt.jsx)(lk.Options,{className:"z-[99999]",children:_ue.map(e=>(0,yt.jsx)(lk.Option,{value:e.value,children:e.label},e.value))})]}),(0,yt.jsx)(Iw,{as:"p",size:12,color:"help",children:(0,pt.__)("Where the script loads on the page. SureCookie only looks for it in this section.","surecookie")})]})]}),!p&&l.behavior!==vue&&(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",className:'after:content-["*"] after:ml-0.5 after:text-text-error',children:(0,pt.__)("Category","surecookie")}),(0,yt.jsx)(Iue,{size:"md",value:l.category,categories:o,optionsClassName:"z-[99999]",onChange:e=>f("category",e)}),l.behavior===gue&&(0,yt.jsx)(Iw,{as:"p",size:12,color:"help",children:(0,pt.__)("This resource stays blocked until the visitor consents to this category.","surecookie")})]}),!i&&!A&&(0,yt.jsx)(Wk,{title:(0,pt.__)("Unlock Whitelisting","surecookie"),description:(0,pt.__)("Whitelist your own scripts and common services so essential integrations keep working before consent.","surecookie"),utmContent:"whitelisted_scripts"}),u&&(0,yt.jsx)(Iw,{size:12,className:"text-text-error",children:u})]})},Pue=e=>Nue[e]||String(e).split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),Mue=()=>{const[e,t]=(0,ct.useState)(!1),n=(0,ct.useMemo)(()=>{const e=window?.surecookieAdminData?.gcmWhitelistedScripts,t=Array.isArray(e?.services)?e.services:[];return t.length?[...new Set(t.map(Pue))]:Array.isArray(e?.patterns)?e.patterns:[]},[]);return n.length?(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between gap-2 p-3 rounded-lg border border-border-subtle bg-background-secondary",children:[(0,yt.jsxs)("div",{className:"min-w-0",children:[(0,yt.jsx)(Iw,{size:14,weight:600,color:"primary",children:(0,pt.sprintf)(/* translators: %d: number of GCM-managed services. */ /* translators: %d: number of GCM-managed services. */
87 (0,pt.__)("Managed by Google Consent Mode (%d)","surecookie"),n.length)}),(0,yt.jsx)(Iw,{as:"p",size:12,color:"help",children:(0,pt.__)("Allowed to load while Google Consent Mode is active, instead of being blocked before consent. Tag Manager is one of them.","surecookie")})]}),(0,yt.jsx)(Fa,{variant:"outline",size:"sm",className:"shrink-0",onClick:()=>t(!0),children:(0,pt.__)("View services","surecookie")})]}),(0,yt.jsxs)(Hx,{design:"simple",exitOnEsc:!0,position:"right",scrollLock:!0,setOpen:t,open:e,className:"z-999999",children:[(0,yt.jsxs)(Hx.Panel,{className:"overflow-y-auto max-h-full",children:[(0,yt.jsxs)(Hx.Header,{className:"border-b border-border-subtle",children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,yt.jsx)(Hx.Title,{children:(0,pt.__)("Managed by Google Consent Mode","surecookie")}),(0,yt.jsx)(Hx.CloseButton,{})]}),(0,yt.jsx)(Iw,{as:"p",size:12,color:"tertiary",children:(0,pt.__)("These Google services are allowed to load while Google Consent Mode is active, instead of being blocked before consent. For Google tag products, Consent Mode then controls what they may store and which identifiers they may use. It does not stop them from contacting Google. Google Tag Manager is on this list, and Consent Mode does not reach the non-Google tags you deploy through it, so each of those needs its own consent check inside Tag Manager. They cannot be removed here.","surecookie")})]}),(0,yt.jsx)(Hx.Body,{className:"overflow-x-hidden py-6 px-5",children:(0,yt.jsx)("ul",{className:"space-y-2",children:n.map(e=>(0,yt.jsxs)("li",{className:"flex items-center justify-between gap-2 p-2.5 rounded-lg border border-border-subtle bg-background-secondary",children:[(0,yt.jsx)(Iw,{size:14,color:"primary",className:"truncate",children:e}),(0,yt.jsx)(uw,{size:"xs",variant:"green",label:(0,pt.__)("Auto-whitelisted","surecookie")})]},e))})})]}),(0,yt.jsx)(Hx.Backdrop,{})]})]}):null},Oue=e=>("object"==typeof e||"function"==typeof e?"":String(e??"")).trim().toLowerCase(),Due=e=>["script","iframe"].includes(e)?e:"any",Uue=(e,t)=>`${e}::${t}`,Rue=()=>{const{getCurrentValue:e,updateSetting:t}=si(),{data:n,isLoading:r}=Sn({queryKey:Nn.scannedResources.list(),queryFn:async()=>{const e=await(async()=>await Fn()({method:"GET",path:"/surecookie/v1/scanned-resources"}))();if(!e.success)throw new Error(e.message||"Failed to load scanned resources");const t=e.resources||{};return{scripts:t.scripts||[],iframes:t.iframes||[],metadata:t.metadata||{}}},staleTime:3e5}),o=!!window?.surecookieAdminData?.is_pro_active,i=!!e("gcm_enabled"),s=(0,ct.useMemo)(()=>{const t=e("excluded_scan_resources");return Array.isArray(t)?t:[]},[e]),a=(0,ct.useMemo)(()=>{const t=e("resource_category_overrides");return t&&"object"==typeof t&&!Array.isArray(t)?t:{}},[e]),l=(0,ct.useMemo)(()=>{const t=e("custom_blocked_scripts");return Array.isArray(t)?t.filter(e=>e&&"object"==typeof e).map(e=>({name:String(e.name??"").trim(),value:Oue(e.value),category:String(e.category??"uncategorized"),type:Due(e.type),keywords:String(e.keywords??"").trim(),location:["head","body","footer"].includes(e.location)?e.location:"any",path:Oue(e.path)})).filter(e=>""!==e.value):[]},[e]),c=(0,ct.useMemo)(()=>{const t=e("custom_whitelisted_scripts");return Array.isArray(t)?t.map(e=>e&&"object"==typeof e?{name:String(e.name??"").trim(),value:Oue(e.value),type:Due(e.type)}:{name:"",value:Oue(e),type:"any"}).filter(e=>""!==e.value):[]},[e]),u=(0,ct.useMemo)(()=>{const t=e("cookie_categories");return(t&&"object"==typeof t?Object.values(t):[]).filter(e=>e&&e.id).map(e=>{const t=String(e.name||e.id);return{value:e.id,label:t.replace(/\s+cookies$/i,"").trim()||t}})},[e]),d=(0,ct.useCallback)((e,t="any")=>{const n=Oue(e);return""!==n&&c.some(e=>{return((r=e.value).includes(n)||n.includes(r))&&("any"===e.type||"any"===t||e.type===t);var r})},[c]),A=(0,ct.useCallback)((e,t)=>s.some(n=>{const[r,o]=(e=>{const t=String(e??""),n=t.indexOf("::");return-1===n?["any",t]:[t.slice(0,n),t.slice(n+2)]})(n);return o===e&&("any"===r||r===t)}),[s]),h=(0,ct.useMemo)(()=>{const e=n?.scripts||[],t=n?.iframes||[],r=[...e.map(e=>({...e,resourceType:"script"})),...t.map(e=>({...e,resourceType:"iframe"}))].map(e=>{const t=i&&(e.gcmCompatible??e.gcmManaged),n="service"===(e.source??"")?(e.patterns??[]).map(e=>Oue(String(e))).filter(Boolean):[],r=c.some(t=>(t.value===Oue(e.domain)||n.includes(t.value))&&("any"===t.type||t.type===e.resourceType)),o=String(e.unenforced_reason??"");let s=gue;return t?s=bue:d(e.domain,e.resourceType)?s=r?yue:vue:A(e.domain,e.resourceType)?s=yue:o&&(s=wue),{id:`scanned-${e.resourceType}-${e.domain}`,source:"scanned",provenance:e.source||"scan",resourceType:e.resourceType,name:e.vendor||"",value:e.domain,patterns:n,category:a[Uue(e.resourceType,e.domain)]||a[e.domain]||e.gated_category||e.category||"uncategorized",behavior:s,unblockableReason:o,serviceSlug:String(e.service_slug??""),serviceInstalled:!!e.service_installed,ownWhitelistRule:r}}),o=l.map(e=>({id:`custom-blocked-${e.value}`,source:"custom",resourceType:e.type,name:e.name,value:e.value,category:e.category,behavior:gue,keywords:e.keywords,location:e.location,path:e.path})),s=new Set(r.flatMap(e=>[e.value,...e.patterns??[]].filter(Boolean).map(e=>Oue(e)))),u=c.filter(e=>!s.has(e.value)).map(e=>({id:`custom-whitelisted-${e.value}`,source:"custom",resourceType:e.type,name:e.name,value:e.value,category:"",behavior:vue}));return[...r,...o,...u]},[n,i,a,l,c,d,A]),p=(0,ct.useCallback)((e,{category:n,behavior:r,name:o="",type:i="any",patterns:l=[]})=>{const u=Oue(e),d=Uue(i,e),A=(l??[]).map(e=>Oue(String(e))).filter(Boolean),h=A.length>0?A:[u];n&&t("resource_category_overrides",{...a,[d]:n});const p=s.filter(t=>t!==d&&t!==e),f=p.length!==s.length,m=e=>(e.value===u||h.includes(e.value))&&("any"===e.type||e.type===i),g=h.every(e=>c.some(t=>t.value===e&&("any"===t.type||t.type===i)));if(r===vue)return g||t("custom_whitelisted_scripts",[...c.filter(e=>!m(e)),...h.map(e=>({name:String(o??"").trim(),value:e,type:i}))]),void(f&&t("excluded_scan_resources",p));r===yue?t("excluded_scan_resources",[...p,d]):r===gue&&f&&t("excluded_scan_resources",p),!c.some(m)||r!==yue&&r!==gue||t("custom_whitelisted_scripts",c.filter(e=>!m(e)))},[a,s,c,t]),f=(0,ct.useCallback)(({name:e,value:n,behavior:r,category:i,type:s,keywords:a,location:u,path:d,originalValue:A=""})=>{const h=Oue((e=>{const t=String(e??"").trim();if(!/<\s*(script|iframe)/i.test(t))return t;const n=t.match(/src\s*=\s*["']([^"']+)["']/i);return n?n[1]:t.replace(/<[^>]*>/g," ").trim()})(n));if(""===h)return{ok:!1,error:(0,pt.__)("Enter the script domain or host.","surecookie")};if(r!==vue&&!i)return{ok:!1,error:(0,pt.__)("Select a category.","surecookie")};const p=e=>e.some(e=>e.value===h&&e.value!==A);if(p(l)||p(c))return{ok:!1,error:(0,pt.__)("A rule for this script already exists.","surecookie")};const f=String(e??"").trim(),m=Due(s),g=e=>e.filter(e=>e.value!==A),y=g(l),v=g(c);return r===vue?v.push({name:f,value:h,type:m}):y.push({name:f,value:h,category:i,type:m,keywords:String(a??"").trim(),location:["head","body","footer"].includes(u)?u:"any",path:Oue(d)}),t("custom_blocked_scripts",y),(o||v.length)&&t("custom_whitelisted_scripts",v),{ok:!0}},[l,c,o,t]),m=(0,ct.useCallback)((e,n)=>{e.behavior!==vue&&("scanned"!==e.source?t("custom_blocked_scripts",l.map(t=>t.value===e.value?{...t,category:n}:t)):t("resource_category_overrides",{...a,[Uue(e.resourceType,e.value)]:n}))},[a,l,t]),g=(0,ct.useCallback)(e=>{e.behavior!==vue?t("custom_blocked_scripts",l.filter(t=>t.value!==e.value)):t("custom_whitelisted_scripts",c.filter(t=>t.value!==e.value))},[l,c,t]);return{rows:h,isLoading:r,categoryOptions:u,isProActive:o,saveScanned:p,saveCustom:f,setCategory:m,deleteCustom:g}},zue=()=>{const{getCurrentValue:e,updateSetting:t,isLoading:n,isError:r}=si(),{rows:o,isLoading:i,categoryOptions:s,isProActive:a,saveScanned:l,saveCustom:c,setCategory:u,deleteCustom:d}=Rue(),[A,h]=(0,ct.useState)({isOpen:!1,mode:"add",row:null}),[p,f]=(0,ct.useState)({isOpen:!1,slug:""}),m=(e="")=>f({isOpen:!0,slug:e}),g=(0,ct.useMemo)(()=>{const t=e("cookie_categories");return(t&&"object"==typeof t?Object.values(t):[]).filter(e=>e&&e.id).map(e=>({id:e.id,name:e.name||e.id}))},[e]),y=e("blocking_enabled")??!1,v=()=>h({isOpen:!0,mode:"add",row:null}),b=o.filter(e=>"scanned"===e.source).length,w=o.length-b;return(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("Scripts and Embeds","surecookie"),pageDescription:(0,pt.__)("Control how scripts and embeds load based on user consent - block them until allowed or mark essential ones to always run.","surecookie"),renderNotice:n||r?null:(0,yt.jsx)(pk,{color:"info",showIcon:!0,title:(0,pt.__)("Behavior: Always Allowed","surecookie"),message:(0,pt.__)("Choose scripts and domains that should never be blocked, so essential integrations like Stripe or Cloudflare Turnstile keep working. Google Consent Mode scripts are whitelisted automatically when it is enabled.","surecookie")}),children:n?(0,yt.jsx)(fue,{}):r?(0,yt.jsx)(pk,{color:"error",showIcon:!0,title:(0,pt.__)("Failed to load settings","surecookie"),message:(0,pt.__)("An error occurred while loading settings. Please refresh the page to try again.","surecookie")}):(0,yt.jsxs)("div",{className:"space-y-6",children:[(0,yt.jsx)(Zb,{"aria-label":(0,pt.__)("Block Scripts and Embeds Until Consent Switch","surecookie"),id:"blocking-switch",label:{heading:(0,pt.__)("Block Scripts Until Consent","surecookie"),description:(0,yt.jsx)("span",{className:"block text-text-tertiary",children:(0,pt.__)("Prevent non-essential scripts and embeds from loading until users give consent.","surecookie")})},onChange:e=>t("blocking_enabled",e),size:"sm",value:y}),y&&(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsx)(Mue,{}),(0,yt.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,yt.jsxs)("div",{children:[(0,yt.jsx)(Iw,{as:"h3",size:16,weight:600,children:(0,pt.__)("Detected and Managed Resources","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:12,color:"tertiary",className:"mt-0.5",children:(0,pt.sprintf)(/* translators: 1: scanner-detected count, 2: custom rule count */ /* translators: 1: scanner-detected count, 2: custom rule count */
88 (0,pt.__)("%1$d detected by scanner, %2$d custom","surecookie"),b,w)})]}),(0,yt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,yt.jsx)(Fa,{icon:(0,yt.jsx)(Hk,{}),size:"sm",variant:"outline",onClick:()=>m(),children:(0,pt.__)("Add from a Known Service","surecookie")}),(0,yt.jsx)(Fa,{icon:(0,yt.jsx)(koe,{}),size:"sm",onClick:v,children:(0,pt.__)("New Resource","surecookie")})]})]}),i?(0,yt.jsx)(pue,{}):o.length?(0,yt.jsx)(Fue,{rows:o,categories:s,onEdit:e=>h({isOpen:!0,mode:"edit",row:e}),onDelete:d,onCategoryChange:u,onAddAsService:m}):(0,yt.jsxs)("div",{className:"flex flex-col items-center justify-center p-6 border border-border-subtle rounded-lg",children:[(0,yt.jsx)(Iw,{as:"p",size:16,weight:600,children:(0,pt.__)("All your scripts will be displayed here","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:14,className:"mt-0.5 mb-4",color:"tertiary",children:(0,pt.__)("Run a scan to detect third-party resources, or add a script manually.","surecookie")}),(0,yt.jsxs)("div",{className:"flex gap-2",children:[(0,yt.jsx)(Fa,{icon:(0,yt.jsx)(koe,{}),size:"sm",onClick:v,children:(0,pt.__)("Add New Resource","surecookie")}),(0,yt.jsx)(Fa,{icon:(0,yt.jsx)(Hk,{}),size:"sm",variant:"outline",onClick:()=>m(),children:(0,pt.__)("Add from a Known Service","surecookie")})]})]}),!a&&(0,yt.jsx)(Wk,{title:(0,pt.__)("Unlock Custom Script Rules & Whitelisting","surecookie"),description:(0,pt.__)("Add your own scripts to block under any category, whitelist trusted scripts, and manage it all from one place.","surecookie"),utmContent:"whitelisted_scripts"})]}),(0,yt.jsx)(h_,{}),(0,yt.jsx)(Lue,{isOpen:A.isOpen,setIsOpen:e=>h(t=>({...t,isOpen:e})),mode:A.mode,row:A.row,categories:s,isProActive:a,onSave:e=>"scanned"===A.row?.source?(l(A.row.value,{category:e.category,behavior:e.behavior,name:A.row.name,patterns:A.row.patterns,type:A.row.resourceType||"any"}),{ok:!0}):c({name:e.name,value:e.value,behavior:e.behavior,category:e.category,type:e.type,keywords:e.keywords,location:e.location,path:e.path,originalValue:"edit"===A.mode?A.row?.value:""}),onCancel:()=>h(e=>({...e,isOpen:!1}))}),(0,yt.jsx)(Tle,{isOpen:p.isOpen,setIsOpen:e=>{e||f({isOpen:!1,slug:""})},categories:g,initialServiceSlug:p.slug,filter:"blockable"})]})})},Que=Boolean(window?.surecookieAdminData?.is_pro_active),Hue=()=>{const e=(0,ht.applyFilters)("surecookie.bannerVisibilityContent",null);return(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("Visibility","surecookie"),pageDescription:(0,pt.__)("Control where your cookie banner appears on your site.","surecookie"),children:Que?e:(0,yt.jsx)(Wk,{title:(0,pt.__)("Want More Control over Your Cookie Banner?","surecookie"),description:(0,pt.__)("Upgrade to hide it on selected pages, posts, archives, or on specific user roles.","surecookie"),utmContent:"hide_banner_pages"})})},que=_b("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]),Vue="[surecookie_cookie_policy_content]",Kue="generate",Wue="shortcode",Gue=()=>(0,yt.jsxs)("div",{className:"space-y-6 animate-pulse",children:[(0,yt.jsxs)("div",{className:"space-y-2",children:[(0,yt.jsx)("div",{className:"h-4 bg-gray-200 rounded w-32"}),(0,yt.jsx)("div",{className:"h-10 bg-gray-200 rounded"})]}),(0,yt.jsx)("div",{className:"h-10 bg-gray-200 rounded w-64"}),(0,yt.jsx)("div",{className:"h-24 bg-gray-200 rounded"})]}),$ue=()=>{const{getCurrentValue:e,updateSetting:t,saveSettings:n,hasChanges:r,isSaving:o,isLoading:i,isError:s}=si(),[a,l]=(0,ct.useState)(Kue),[c,u]=(0,ct.useState)(!1),[d,A]=(0,ct.useState)(null),[h,p]=(0,ct.useState)(!1),f=e("cookie_policy_page_id")||0,[m,g]=(0,ct.useState)(null),[y,v]=(0,ct.useState)(""),{data:b,isFetching:w,isError:x}=oi(f);(0,ct.useEffect)(()=>{if(!f)return g(null),v(""),void A(null);if(!w){if(x)return g(null),v((0,pt.__)("The previously selected page no longer exists or could not be loaded.","surecookie")),void A(null);if(!b||"publish"!==b.status)return g(null),v((0,pt.__)("The selected page is not published and will not appear to visitors.","surecookie")),void A(null);v(""),g({value:b.id,label:b.title||(0,pt.__)("(no title)","surecookie"),type:b.type,typeLabel:b.typeLabel}),A({page_id:b.id,view_url:b.link||"",edit_url:window.surecookieAdminData?.ajaxurl?.replace("admin-ajax.php",`post.php?post=${b.id}&action=edit`)||""})}},[f,b,w,x]),(0,ct.useEffect)(()=>()=>{Mn("policy")},[]),(0,ct.useEffect)(()=>{r&&!o&&n()},[r,o,n]);const k=(0,ct.useCallback)(async e=>{try{return(await Pn(e,"policy")).map(e=>({value:e.id,label:e.title||(0,pt.__)("(no title)","surecookie"),type:e.type,typeLabel:e.type_label}))}catch{return[]}},[]),_=!!d?.page_id&&f>0&&!y;return(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("Cookie Policy Page","surecookie"),pageDescription:(0,pt.__)("Generate your cookie policy automatically from your settings, or display it anywhere using a shortcode.","surecookie"),children:i?(0,yt.jsx)(Gue,{}):s?(0,yt.jsx)(pk,{color:"error",showIcon:!0,title:(0,pt.__)("Failed to load settings","surecookie"),message:(0,pt.__)("An error occurred while loading settings. Please refresh the page to try again.","surecookie")}):(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"cookie-policy-page",children:(0,pt.__)("Cookie Policy Page","surecookie")}),(0,yt.jsx)(e_,{content:(0,pt.__)("Clear selected page","surecookie"),children:(0,yt.jsx)(Fa,{variant:"ghost",icon:(0,yt.jsx)(wD,{className:"!w-4 !h-4"}),onClick:()=>{g(null),v(""),A(null),t("cookie_policy_page_id",0)},disabled:!(f>0),className:"p-0"})})]}),(0,yt.jsx)(uk,{id:"cookie-policy-page",searchFn:k,onChange:e=>{g(e||null),t("cookie_policy_page_id",e?.value||0)},placeholder:(0,pt.__)("Select a Page","surecookie"),combobox:!0,groupBy:"typeLabel",value:m}),y?(0,yt.jsx)(Iw,{className:"block",as:"p",size:14,color:"error",children:y}):(0,yt.jsx)(Iw,{className:"block",as:"p",size:14,color:"help",children:(0,pt.__)("A link to this page will appear in the consent preferences modal footer.","surecookie")})]}),(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsxs)(C_.Group,{className:"w-full",size:"md",variant:"rounded",activeItem:a,onChange:({event:e,value:{slug:t}})=>{e.preventDefault(),e.stopPropagation(),l(t)},children:[(0,yt.jsx)(C_.Tab,{slug:Kue,text:(0,pt.__)("Auto Generate","surecookie"),className:"text-sm"}),(0,yt.jsx)(C_.Tab,{slug:Wue,text:(0,pt.__)("Shortcode","surecookie"),className:"text-sm"})]}),a===Kue&&(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsx)(Iw,{as:"p",size:14,color:"secondary",children:(0,pt.__)("Automatically create a published Cookie Policy page containing a dynamically generated cookie table that always stays up to date.","surecookie")}),(0,yt.jsx)("div",{className:"flex items-center gap-3 flex-wrap",children:w&&f>0?(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)("div",{className:"h-8 w-36 rounded-lg bg-background-secondary animate-pulse"}),(0,yt.jsx)("div",{className:"h-8 w-28 rounded-lg bg-background-secondary animate-pulse"}),(0,yt.jsx)("div",{className:"h-8 w-24 rounded-lg bg-background-secondary animate-pulse"})]}):(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(Fa,{variant:"primary",size:"sm",onClick:async()=>{u(!0);try{const e=await Fn()({method:"POST",path:"/surecookie/v1/cookie-policy/generate-page"});e.success?(A({page_id:e.page_id,edit_url:e.edit_url||"",view_url:e.view_url||""}),e.already_exists?At.success((0,pt.__)("Cookie Policy page already exists.","surecookie")):(t("cookie_policy_page_id",e.page_id),g({value:e.page_id,label:(0,pt.__)("Cookie Policy","surecookie")}),v(""),At.success((0,pt.__)("Cookie Policy page created successfully!","surecookie")))):At.error(e.message||(0,pt.__)("Failed to generate page. Please try again.","surecookie"))}catch{At.error((0,pt.__)("An error occurred while generating the page. Please try again.","surecookie"))}finally{u(!1)}},disabled:c||_,icon:c?(0,yt.jsx)(Tw,{variant:"secondary"}):null,children:_?(0,pt.__)("Page Already Linked","surecookie"):(0,pt.__)("Generate Cookie Policy Page","surecookie")}),_&&d?.edit_url&&(0,yt.jsx)(Fa,{variant:"outline",size:"sm",icon:(0,yt.jsx)(que,{size:16}),onClick:()=>window.open(d.edit_url,"_blank"),children:(0,pt.__)("Edit Page","surecookie")}),_&&d?.view_url&&(0,yt.jsx)(Fa,{variant:"ghost",size:"sm",icon:(0,yt.jsx)(xce,{size:16}),onClick:()=>window.open(d.view_url,"_blank"),children:(0,pt.__)("View Page","surecookie")})]})})]}),a===Wue&&(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsx)(Iw,{as:"p",size:14,color:"secondary",children:(0,pt.__)("Use this shortcode to display the cookie policy with a dynamically generated cookie table on any page or post. The table always reflects the latest scanned and custom cookies.","surecookie")}),(0,yt.jsxs)("div",{className:"flex items-center justify-between p-3 gap-2 ring-1 rounded-lg ring-alert-border-neutral bg-background-secondary",children:[(0,yt.jsx)("div",{className:"flex items-center gap-2 flex-1",children:(0,yt.jsx)(Iw,{size:14,lineHeight:20,color:"primary",weight:500,children:Vue})}),h?(0,yt.jsx)(dk,{className:"w-5 h-5 text-icon-success flex-shrink-0","aria-label":(0,pt.__)("Copied!","surecookie")}):(0,yt.jsx)(fk,{className:"w-5 h-5 text-text-primary cursor-pointer hover:opacity-70 transition-opacity flex-shrink-0",onClick:async()=>{try{await db(Vue),p(!0),At.success((0,pt.__)("Shortcode Copied!","surecookie")),setTimeout(()=>p(!1),2e3)}catch{At.error((0,pt.__)("Could not copy to clipboard. Please copy the shortcode manually.","surecookie"))}},"aria-label":(0,pt.__)("Copy shortcode","surecookie")})]})]})]})]})})},Yue={legal_entity_name:"",postal_address_lines:[],postal_code:"",country:"",privacy_contact_email:"",grievance_officer_name:"",grievance_officer_email:"",transfer_safeguard_text:"",ccpa_sells_or_shares:""},Zue=["legal_entity_name","postal_address_lines","country","privacy_contact_email"],Xue={dpdp:["grievance_officer_name","grievance_officer_email"],gdpr:["transfer_safeguard_text"],uk_gdpr:["transfer_safeguard_text"],cpra:["ccpa_sells_or_shares"]},Jue=[{value:"gdpr",label:(0,pt.__)("GDPR (European Economic Area)","surecookie")},{value:"uk_gdpr",label:(0,pt.__)("UK GDPR","surecookie")},{value:"cpra",label:(0,pt.__)("CCPA / CPRA (California)","surecookie")},{value:"dpdp",label:(0,pt.__)("DPDP Act (India)","surecookie")},{value:"coppa",label:(0,pt.__)("COPPA (children, United States)","surecookie")}],ede=[{value:"",label:(0,pt.__)("Not decided yet","surecookie")},{value:"no",label:(0,pt.__)("No","surecookie")},{value:"yes",label:(0,pt.__)("Yes","surecookie")}],tde={legal_entity_name:(0,pt.__)("Legal Entity Name","surecookie"),postal_address_lines:(0,pt.__)("Postal Address","surecookie"),postal_code:(0,pt.__)("Postal Code","surecookie"),country:(0,pt.__)("Country","surecookie"),privacy_contact_email:(0,pt.__)("Privacy Contact Email","surecookie"),grievance_officer_name:(0,pt.__)("Grievance Officer Name","surecookie"),grievance_officer_email:(0,pt.__)("Grievance Officer Email","surecookie"),transfer_safeguard_text:(0,pt.__)("Data Transfer Safeguards","surecookie"),ccpa_sells_or_shares:(0,pt.__)("Sale or Sharing Declaration","surecookie"),privacy_jurisdictions:(0,pt.__)("Applicable Privacy Regimes","surecookie")},nde=e=>({...Yue,...e&&"object"==typeof e?e:{}}),rde=e=>{const t=Array.isArray(e)?e:[],n=[...Zue];return t.forEach(e=>{(Xue[e]??[]).forEach(e=>{n.includes(e)||n.push(e)})}),n},ode=(e,t)=>{const n=Array.isArray(t)?t:[],r=rde(n).filter(t=>!(e=>Array.isArray(e)?e.some(e=>"string"==typeof e&&""!==e.trim()):"string"==typeof e?""!==e.trim():!!e)(e?.[t])).map(e=>({field:e,label:tde[e]??e}));return n.length||r.push({field:"privacy_jurisdictions",label:tde.privacy_jurisdictions}),r},ide=({isLive:e=!1,inline:t=!1,className:n=""})=>{const r=Yi(),{getCurrentValue:o}=si(),i=nde(o("organization_details")),s=o("privacy_jurisdictions")||[],a=ode(i,s);if(!a.length)return null;const l=a.map(e=>e.label).join(", ");return t?(0,yt.jsx)(pk,{color:"warning",showIcon:!0,className:n,title:(0,pt.sprintf)(/* translators: %d: number of business detail fields still empty. */ /* translators: %d: number of business detail fields still empty. */
89 (0,pt._n)("%d item still needs your input","%d items still need your input",a.length,"surecookie"),a.length),message:l}):(0,yt.jsx)(pk,{color:e?"error":"info",showIcon:!0,className:n,title:e?(0,pt.__)("Your published privacy policy is incomplete","surecookie"):(0,pt.__)("Complete your business details to improve your privacy policy","surecookie"),message:e?(0,pt.sprintf)(/* translators: %s: comma-separated list of missing fields. */ /* translators: %s: comma-separated list of missing fields. */
90 (0,pt.__)("This page is live and still missing: %s. Visitors see nothing where those details should be.","surecookie"),l):(0,pt.sprintf)(/* translators: %s: comma-separated list of missing fields. */ /* translators: %s: comma-separated list of missing fields. */
91 (0,pt.__)("Still needed: %s.","surecookie"),l),footerAsideTitle:!0,footer:(0,yt.jsx)(Fa,{variant:"link",size:"xs",icon:(0,yt.jsx)(Vk,{size:14}),iconPosition:"right",onClick:()=>r("/compliance/business-details"),children:(0,pt.__)("Business Details","surecookie")})})},sde=e=>{const t=Array.isArray(e)?e:[];return Array.from({length:Math.max(4,t.length)},(e,n)=>"string"==typeof t[n]?t[n]:"")},ade="configure",lde="shortcodes",cde=()=>{const{getCurrentValue:e,updateSetting:t,isLoading:n,isError:r}=si(),[o,i]=(0,ct.useState)(ade),[s,a]=(0,ct.useState)({}),l=nde(e("organization_details")),c=e("privacy_jurisdictions")||[],u=window.surecookieAdminData?.countries??[],d=window.surecookieAdminData?.business_shortcodes??[],A=(e,n)=>{s[e]&&a(t=>{const n={...t};return delete n[e],n}),t("organization_details",{...l,[e]:n})},h=Jue.filter(e=>c.includes(e.value)),p=((e,t,n=[])=>{const r=e=>(t?.[e]??"").trim(),o=n.find(e=>e.value===t?.country)?.label??"",i=(Array.isArray(t?.postal_address_lines)?t.postal_address_lines:[]).filter(e=>"string"==typeof e&&e.trim()).map(e=>e.trim()),s=[r("postal_code"),o].filter(Boolean).join(" "),a={"[surecookie_company_name]":r("legal_entity_name"),"[surecookie_contact_email]":r("privacy_contact_email"),"[surecookie_address]":[...i,s].filter(Boolean).join(", "),"[surecookie_postal_code]":r("postal_code"),"[surecookie_country]":o,"[surecookie_grievance_officer]":r("grievance_officer_name"),"[surecookie_grievance_email]":r("grievance_officer_email")};return(Array.isArray(e)?e:[]).map(e=>e.shortcode in a?{...e,value:a[e.shortcode]}:e)})(d,l,u),f=sde(l.postal_address_lines),m=(e,t,n="",r="text")=>(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:`business-${e}`,children:t}),(0,yt.jsx)(j_,{id:`business-${e}`,type:r,size:"md",error:!!s[e],value:l[e]??"",onChange:t=>A(e,t)}),s[e]?(0,yt.jsx)(Iw,{as:"p",size:14,color:"destructive",children:s[e]}):n&&(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",children:n})]});return(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("Business Details","surecookie"),pageDescription:(0,pt.__)("Who is responsible for this website. These details appear in your privacy policy and cookie policy, and are available as shortcodes anywhere in your content.","surecookie"),children:n?(0,yt.jsxs)("div",{className:"space-y-6 animate-pulse",children:[(0,yt.jsx)("div",{className:"h-10 bg-gray-200 rounded"}),(0,yt.jsx)("div",{className:"h-24 bg-gray-200 rounded"}),(0,yt.jsx)("div",{className:"h-10 bg-gray-200 rounded w-64"})]}):r?(0,yt.jsx)(pk,{color:"error",showIcon:!0,title:(0,pt.__)("Failed to load settings","surecookie"),message:(0,pt.__)("An error occurred while loading settings. Please refresh the page to try again.","surecookie")}):(0,yt.jsxs)("div",{className:"space-y-6",children:[(0,yt.jsx)(ide,{inline:!0}),(0,yt.jsxs)(C_.Group,{className:"w-full",size:"md",variant:"rounded",activeItem:o,onChange:({event:e,value:{slug:t}})=>{e.preventDefault(),e.stopPropagation(),i(t)},children:[(0,yt.jsx)(C_.Tab,{slug:ade,text:(0,pt.__)("Configure","surecookie"),className:"text-sm"}),(0,yt.jsx)(C_.Tab,{slug:lde,text:(0,pt.__)("Shortcodes","surecookie"),className:"text-sm"})]}),o===lde?(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsx)(Iw,{as:"p",size:14,color:"secondary",children:(0,pt.__)("Use these anywhere shortcodes work and they are replaced with the details on the Configure tab. If a detail is empty, visitors see nothing rather than the shortcode.","surecookie")}),p.map(e=>(0,yt.jsx)(mk,{value:e.shortcode,description:e.value||(0,pt.__)("Not set","surecookie"),copiedMessage:(0,pt.__)("Shortcode Copied!","surecookie")},e.shortcode))]}):(0,yt.jsxs)("div",{className:"space-y-6",children:[m("legal_entity_name",(0,pt.__)("Legal Entity Name","surecookie"),(0,pt.__)("The registered name of the organisation running this website, not the site title.","surecookie")),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"business-postal_address_lines",children:(0,pt.__)("Postal Address","surecookie")}),f.slice(0,4).map((e,t)=>(0,yt.jsx)(j_,{id:0===t?"business-postal_address_lines":void 0,size:"md",error:!!s.postal_address_lines,value:e,onChange:e=>((e,t)=>{const n=sde(l.postal_address_lines);n[e]=t,A("postal_address_lines",n)})(t,e)},t)),s.postal_address_lines?(0,yt.jsx)(Iw,{as:"p",size:14,color:"destructive",children:s.postal_address_lines}):(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",children:(0,pt.__)("One line per row. Leave the rows you do not need empty.","surecookie")})]}),m("postal_code",(0,pt.__)("Postal Code","surecookie")),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"business-country",children:(0,pt.__)("Country","surecookie")}),(0,yt.jsxs)(lk,{value:l.country||"",onChange:e=>A("country",e),size:"md",children:[(0,yt.jsx)(lk.Button,{id:"business-country",placeholder:(0,pt.__)("Select a country","surecookie"),render:e=>u.find(t=>t.value===e)?.label??""}),(0,yt.jsx)(lk.Options,{children:u.map(e=>(0,yt.jsx)(lk.Option,{value:e.value,children:e.label},e.value))})]})]}),m("privacy_contact_email",(0,pt.__)("Privacy Contact Email","surecookie"),(0,pt.__)("Where privacy requests should go. This is published on your policy pages, so prefer a shared address over a personal one.","surecookie"),"email"),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"business-jurisdictions",children:(0,pt.__)("Applicable Privacy Regimes","surecookie")}),(0,yt.jsx)(uk,{id:"business-jurisdictions",multiple:!0,size:"md",options:Jue,value:h,onChange:e=>t("privacy_jurisdictions",(Array.isArray(e)?e:[]).map(e=>e.value)),placeholder:(0,pt.__)("Select the laws that apply","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",children:(0,pt.__)("Only select the laws this site is actually subject to. Which law binds you depends on where you are established and who you target, not on where your visitors happen to be.","surecookie")})]}),(c.includes("gdpr")||c.includes("uk_gdpr"))&&m("transfer_safeguard_text",(0,pt.__)("Data Transfer Safeguards","surecookie"),(0,pt.__)('What you rely on when personal data leaves your region, for example "EU Standard Contractual Clauses".',"surecookie")),c.includes("dpdp")&&(0,yt.jsxs)(yt.Fragment,{children:[m("grievance_officer_name",(0,pt.__)("Grievance Officer Name","surecookie"),(0,pt.__)("India's DPDP Act requires a named grievance officer.","surecookie")),m("grievance_officer_email",(0,pt.__)("Grievance Officer Email","surecookie"),"","email")]}),c.includes("cpra")&&(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"business-sale-share",children:(0,pt.__)("Does this site sell or share personal information?","surecookie")}),(0,yt.jsxs)(lk,{value:l.ccpa_sells_or_shares||"",onChange:e=>A("ccpa_sells_or_shares",e),size:"md",children:[(0,yt.jsx)(lk.Button,{id:"business-sale-share",render:e=>ede.find(t=>t.value===e)?.label??(0,pt.__)("Not decided yet","surecookie")}),(0,yt.jsx)(lk.Options,{children:ede.map(e=>(0,yt.jsx)(lk.Option,{value:e.value,children:e.label},e.value))})]}),(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",children:(0,pt.__)("As those terms are defined under California law. This is a legal determination about your business, so we cannot work it out for you.","surecookie")})]})]}),(0,yt.jsx)(h_,{validateSettings:()=>{const e={},t=rde(c);["privacy_contact_email","grievance_officer_email"].filter(e=>t.includes(e)).forEach(t=>{const n=(l[t]??"").trim();n&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)&&(e[t]=(0,pt.__)("Enter a valid email address.","surecookie"))}),ode(l,c).forEach(t=>{e[t.field]||(e[t.field]=(0,pt.__)("This field is required.","surecookie"))}),a(e);const n=Object.keys(e);return!n.length||(i(ade),At.error((0,pt.__)("Save failed!","surecookie"),{description:(0,pt.sprintf)(/* translators: 1: number of fields, 2: comma-separated field labels. */ /* translators: 1: number of fields, 2: comma-separated field labels. */
92 (0,pt._n)("%1$d item still needs your input: %2$s","%1$d items still need your input: %2$s",n.length,"surecookie"),n.length,n.map(e=>tde[e]??e).join(", "))}),window.requestAnimationFrame(()=>{document.getElementById(`business-${n[0]}`)?.focus()}),!1)}})]})})},ude=[{id:"core",label:(0,pt.__)("Always relevant","surecookie"),items:[{tag:"[surecookie_privacy_consent_records]",description:(0,pt.__)("What is stored when a visitor answers the cookie banner, how long it is kept, and the country lookup that happens on server.","surecookie")},{tag:"[surecookie_privacy_cookie_summary]",description:(0,pt.__)("Your cookie categories, plus a link to the Cookie Policy page or the full table when there is no such page.","surecookie")},{tag:"[surecookie_privacy_identity]",description:(0,pt.__)("Legal entity name and registered address from Business Details.","surecookie")},{tag:"[surecookie_privacy_contact]",description:(0,pt.__)("Privacy contact address, rendered as a link.","surecookie")},{tag:"[surecookie_privacy_last_updated]",description:(0,pt.__)("Two dates: when the policy was last edited, and when the cookie list was last refreshed.","surecookie")}]},{id:"situational",label:(0,pt.__)("Situational","surecookie"),items:[{tag:"[surecookie_privacy_third_parties]",description:(0,pt.__)("Third-party services your pages load, from the most recent scan.","surecookie")},{tag:"[surecookie_privacy_server_egress]",description:(0,pt.__)("What this site sends from its own server, which browser settings cannot block.","surecookie")},{tag:"[surecookie_privacy_rights]",description:(0,pt.__)("Data subject rights, and how to exercise them on this site.","surecookie")},{tag:"[surecookie_privacy_data_transfers]",description:(0,pt.__)("Where information is processed. Renders nothing until you set a transfer safeguard.","surecookie")},{tag:"[surecookie_privacy_regional]",description:(0,pt.__)('Region-specific consent rules. Needs SureCookie Pro to say anything beyond "the same everywhere".',"surecookie")},{tag:'[surecookie_privacy_jurisdiction code="gdpr"]',description:(0,pt.__)("One privacy regime's rights section. Accepts gdpr, uk_gdpr, cpra, dpdp or coppa.","surecookie")}]}],dde="generate",Ade=()=>{const{getCurrentValue:e,isLoading:t,isError:n}=si(),r=bt(),[o,i]=(0,ct.useState)(dde),[s,a]=(0,ct.useState)(!1),l=e("privacy_policy_page_id")||0,{data:c,isFetching:u}=(e=>{const t=Number(e)||0;return Sn({queryKey:Nn.privacyPolicyPage.state(t),queryFn:zn,staleTime:3e4,retry:!1})})(l),d=c?.page??null,A=c?.placeholders??0,h=c?.slug_conflict??null,p=c?.missing??[],f=c?.wp_privacy_page??null,m=!!c?.can_manage_privacy_options,g="publish"===d?.status,y=()=>r.invalidateQueries({queryKey:Nn.privacyPolicyPage.all}),v=async(e,t)=>{a(!0);try{const n=await e();n?.success?(t(n),await y()):At.error(n?.message??(0,pt.__)("Something went wrong.","surecookie"))}catch(e){At.error(e?.message??(0,pt.__)("Something went wrong.","surecookie"))}finally{a(!1)}},b=e=>window.open(e,"_blank");return(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("Privacy Policy Page","surecookie"),pageDescription:(0,pt.__)("Generate a privacy policy draft from your cookie and consent settings, then review it before publishing.","surecookie"),children:t?(0,yt.jsxs)("div",{className:"space-y-6 animate-pulse",children:[(0,yt.jsx)("div",{className:"h-10 bg-gray-200 rounded w-64"}),(0,yt.jsx)("div",{className:"h-24 bg-gray-200 rounded"})]}):n?(0,yt.jsx)(pk,{color:"error",showIcon:!0,title:(0,pt.__)("Failed to load settings","surecookie"),message:(0,pt.__)("An error occurred while loading settings. Please refresh the page to try again.","surecookie")}):(0,yt.jsxs)("div",{className:"space-y-6",children:[(0,yt.jsx)(ide,{isLive:g}),c?.page_missing&&(0,yt.jsx)(pk,{color:"warning",showIcon:!0,title:(0,pt.__)("The linked privacy policy page is gone","surecookie"),message:(0,pt.__)("It was deleted or moved to the trash. Generate a new one to replace it.","surecookie")}),(0,yt.jsxs)(C_.Group,{activeItem:o,size:"md",variant:"rounded",onChange:({event:e,value:t})=>{e?.preventDefault(),e?.stopPropagation(),i(t?.slug??dde)},children:[(0,yt.jsx)(C_.Tab,{slug:dde,text:(0,pt.__)("Auto Generate","surecookie"),className:"text-sm"}),(0,yt.jsx)(C_.Tab,{slug:"shortcodes",text:(0,pt.__)("Shortcodes","surecookie"),className:"text-sm"})]}),o===dde?(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsxs)(Iw,{as:"p",size:14,color:"help",children:["SureCookie"," ",(0,pt.__)("creates a policy based on your site's configuration. You should review and adjust it to meet your legal requirements.","surecookie")]}),(0,yt.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,yt.jsx)(Fa,{size:"sm",disabled:s||u||!!d,icon:s?(0,yt.jsx)(Tw,{variant:"secondary"}):null,onClick:()=>v(Rn,e=>At.success(e.message??(0,pt.__)("Privacy Policy draft created.","surecookie"))),children:d?(0,pt.__)("Page Already Linked","surecookie"):(0,pt.__)("Generate Privacy Policy Draft","surecookie")}),d&&!g&&(0,yt.jsx)(Fa,{size:"sm",variant:"outline",disabled:s||p.length>0,onClick:()=>v(Qn,e=>At.success(e.message??(0,pt.__)("Privacy Policy published.","surecookie"))),children:(0,pt.__)("Mark as Publish","surecookie")}),d?.edit_url&&(0,yt.jsx)(Fa,{size:"sm",variant:"outline",icon:(0,yt.jsx)(que,{size:16}),onClick:()=>b(d.edit_url),children:(0,pt.__)("Edit Page","surecookie")}),d?.view_url&&(0,yt.jsx)(Fa,{size:"sm",variant:"ghost",icon:(0,yt.jsx)(xce,{size:16}),onClick:()=>b(d.view_url),children:(0,pt.__)("View Page","surecookie")})]}),d&&!g&&(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",children:p.length>0?(0,pt.__)("Publishing is unavailable until your business details are complete.","surecookie"):(0,pt.__)("This page is a draft. Nothing is visible to visitors until you publish it.","surecookie")}),d&&m&&!f?.is_ours&&(0,yt.jsx)(pk,{color:"info",showIcon:!0,title:(0,pt.__)("Set this as your Privacy Policy page","surecookie"),message:h?.is_ours?(0,pt.sprintf)(/* translators: 1: the address the page is published at now, 2: the address it moves to. */ /* translators: 1: the address the page is published at now, 2: the address it moves to. */
93 (0,pt.__)("This page is published at /%1$s/. Switching moves it to /%2$s/, and the old address will stop working.","surecookie"),h.slug??"",h.moves_to??""):h?(0,pt.sprintf)(/* translators: 1: title of the page being moved, 2: its new address, 3: the address it gives up. */ /* translators: 1: title of the page being moved, 2: its new address, 3: the address it gives up. */
94 (0,pt.__)('The page "%1$s" currently uses the /%3$s/ address. Switching moves it to /%2$s/, turns it back into a draft, and gives /%3$s/ to this page. Both keep their titles.',"surecookie"),h.title??"",h.moves_to??"",h.slug??""):f?.needs_confirmation?(0,pt.sprintf)(/* translators: %s: title of the page WordPress currently uses. */ /* translators: %s: title of the page WordPress currently uses. */
95 (0,pt.__)('Your site is currently using the "%s" page. Switching will update it across your site.',"surecookie"),f?.title??""):(0,pt.__)("This tells WordPress, your theme and other plugins which page is your privacy policy. It also controls the login-screen link.","surecookie"),footerAsideTitle:!0,footer:(0,yt.jsx)(Fa,{variant:"link",size:"xs",disabled:s,onClick:()=>(async(e=!1)=>{a(!0);try{const t=await((e=!1)=>Fn()({method:"POST",path:"/surecookie/v1/privacy-policy/set-wp-page",data:{confirm:e}}))(e);t?.success?(At.success(t.message),await y()):"requires_confirmation"===t?.code?At.error(t.message):At.error(t?.message??(0,pt.__)("Something went wrong.","surecookie"))}catch(e){At.error(e?.message??(0,pt.__)("Something went wrong.","surecookie"))}finally{a(!1)}})(!!f?.needs_confirmation||!!h),children:f?.needs_confirmation||h?(0,pt.__)("Replace now","surecookie"):(0,pt.__)("Use now","surecookie")})}),d&&(0,yt.jsxs)("div",{className:"mt-4 p-4 bg-background-secondary border border-border-subtle rounded-lg space-y-1.5",children:[(0,yt.jsx)(Iw,{size:14,weight:600,color:"primary",children:(0,ct.createInterpolateElement)((0,pt.__)("<span></span> What’s Next:","surecookie"),{span:(0,yt.jsx)("span",{children:"💡"})})}),(0,yt.jsx)("ul",{className:"ml-5 space-y-1 list-disc list-outside",children:[A>0?(0,pt.sprintf)(/* translators: %d: number of placeholder blocks left in the draft. */ /* translators: %d: number of placeholder blocks left in the draft. */
96 (0,pt._n)('Replace the %d block marked "Replace this block" with your own wording, then delete the marker.','Replace the %d blocks marked "Replace this block" with your own wording, then delete the markers.',A,"surecookie"),A):(0,pt.__)('No "Replace this block" sections are left in the draft.',"surecookie"),(0,pt.__)("Fill in the parts only you know: What your own forms collect, how long you keep it, and why you are allowed to.","surecookie"),(0,pt.__)("Leave the shortcodes in place. Those sections rewrite themselves when your cookie and consent settings change.","surecookie"),(0,pt.__)("Finally have it reviewed by a qualified professional in your jurisdiction before publishing.","surecookie")].map((e,t)=>(0,yt.jsx)("li",{className:"m-0",children:(0,yt.jsx)(Iw,{as:"span",size:14,weight:400,color:"secondary",children:e})},t))})]})]}):(0,yt.jsxs)("div",{className:"space-y-6",children:[(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",children:(0,pt.__)("Each section of the generated page is its own shortcode, so you can delete or reorder them, or drop them into a page you wrote yourself. They always render your current settings.","surecookie")}),ude.map(e=>(0,yt.jsxs)("div",{className:"space-y-2",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",children:e.label}),e.items.map(e=>(0,yt.jsx)(mk,{value:e.tag,description:e.description,copiedMessage:(0,pt.__)("Shortcode Copied!","surecookie")},e.tag))]},e.id))]})]})})},hde=()=>{const{isAuthenticated:e,isConnecting:t,handleConnect:n}=Bx(),r=Kk("compliance_check"),o=(0,ct.useMemo)(()=>{const e=[{id:"scan",text:(0,pt.__)("Scan your site as a real visitor would do","surecookie")},{id:"before-after",text:(0,pt.__)("See what loads before and after consent","surecookie")},{id:"pre-consent",text:(0,pt.__)("Detect scripts and trackers firing too early","surecookie")},{id:"next-steps",text:(0,pt.__)("Get clear, actionable fixes","surecookie")},{id:"scheduled-checkup",isPro:!0,text:(0,pt.__)("Schedule automatic checkup","surecookie")},{id:"checkup-reporting",isPro:!0,text:(0,pt.__)("Informing compliance report","surecookie")}],t=(0,ht.applyFilters)("surecookie.complianceCheck.points",e);return Array.isArray(t)?t:e},[]),i=(0,ht.applyFilters)("surecookie.auth_button_config",{buttonText:(0,pt.__)("Connect your Site","surecookie"),onClick:null}),s=!r.isProActive,a=!e;return(0,yt.jsxs)(n_,{pageTitle:(0,pt.__)("Compliance Check - Coming Soon","surecookie"),pageDescription:(0,pt.__)("Detect what runs on your site before consent - and fix it before it becomes a compliance risk.","surecookie"),children:[(0,yt.jsx)(pk,{color:"warning",showIcon:!0,title:(0,pt.__)("Are you sure nothing loads before consent?","surecookie"),message:(0,pt.__)("Many sites unintentionally load tracking scripts before consent - even with a cookie banner enabled.","surecookie")}),(0,yt.jsx)(mce,{description:(0,pt.__)("Even if your cookie banner looks correct, scripts, cookies, or embeds may still run before a visitor gives consent. Compliance Check helps you detect and fix these issues automatically.","surecookie"),size:"sm",tag:"h2",title:(0,pt.__)("Your site might be loading trackers too early","surecookie"),className:"mb-6"}),(0,yt.jsxs)("div",{className:"flex items-center flex-col md:flex-row w-full justify-between",children:[(0,yt.jsxs)("div",{className:"flex flex-col w-full",children:[(0,yt.jsx)(Iw,{as:"p",color:"primary",className:"mb-2",children:(0,pt.__)("What you'll be able to do:","surecookie")}),(0,yt.jsx)("ul",{className:"list-none m-0 p-0 space-y-2",children:o.map(e=>(0,yt.jsxs)("li",{className:"flex items-start gap-2",children:[(0,yt.jsx)(dk,{className:"size-4 mt-0.5 text-icon-primary shrink-0",strokeWidth:1.5}),(0,yt.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[(0,yt.jsx)(Iw,{size:14,color:"label",children:e.text}),e.isPro&&(0,yt.jsx)(uw,{label:(0,pt.__)("Pro","surecookie"),variant:"blue",type:"pill",size:"xs"})]})]},e.id))})]}),(0,yt.jsx)("div",{className:"w-[90%] aspect-[9/16] md:aspect-video flex items-center justify-center p-2 rounded-lg bg-brand-50",children:(0,yt.jsx)(zk,{className:"h-full w-auto max-w-full","aria-hidden":"true"})})]}),(0,yt.jsx)("hr",{className:"w-full m-0 border-t border-x-0 border-b-0 border-solid border-border-subtle"}),(0,yt.jsxs)("div",{className:"space-y-2 flex items-center justify-between",children:[(0,yt.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[s&&(0,yt.jsx)(Fa,{tag:"a",variant:"primary",size:"md",className:"no-underline",href:r.href,target:r.target,rel:"_blank"===r.target?"noopener noreferrer":void 0,icon:(0,yt.jsx)(Vk,{size:16}),iconPosition:"right",children:r.isPricing?(0,pt.__)("Upgrade to Premium","surecookie"):r.label}),a&&(0,yt.jsx)(Fa,{variant:s?"outline":"primary",size:"md",icon:t?(0,yt.jsx)(Tw,{size:"sm",variant:"secondary"}):(0,yt.jsx)(sce,{size:16}),iconPosition:"right",disabled:t,onClick:()=>{i.onClick?i.onClick():n()},children:t?(0,pt.__)("Connecting…","surecookie"):i.buttonText}),!s&&!a&&(0,yt.jsx)(Fa,{tag:"a",variant:"link",size:"md",className:"no-underline",href:ni("docs_compliance_check","docs/"),target:"_blank",rel:"noopener noreferrer",icon:(0,yt.jsx)(Vk,{size:16}),iconPosition:"right",children:(0,pt.__)("Knowledge Base","surecookie")})]}),a&&(0,yt.jsx)(Iw,{as:"p",size:12,color:"help",children:(0,pt.__)("This check runs on your live site and requires a connected SureCookie agent.","surecookie")})]})]})},pde={essential:(0,pt.__)("Necessary","surecookie"),functional:(0,pt.__)("Functional","surecookie"),analytics:(0,pt.__)("Analytics","surecookie"),marketing:(0,pt.__)("Marketing","surecookie"),uncategorized:(0,pt.__)("Uncategorized","surecookie")},fde=e=>pde[e]||e||(0,pt.__)("Uncategorized","surecookie"),mde=({title:e,variant:t,items:n,describe:r})=>Array.isArray(n)&&0!==n.length?(0,yt.jsxs)("div",{className:"space-y-2",children:[(0,yt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,yt.jsx)(Iw,{size:14,weight:600,color:"primary",children:e}),(0,yt.jsx)(uw,{label:String(n.length),size:"xs",type:"pill",variant:t})]}),(0,yt.jsx)("ul",{className:"m-0 space-y-1.5 list-none",children:n.map((e,t)=>(0,yt.jsxs)("li",{className:"flex items-center justify-between gap-3 rounded-md border border-border-subtle bg-background-secondary px-3 py-2",children:[(0,yt.jsx)(Iw,{size:13,color:"primary",className:"font-mono truncate",children:e.name||e.domain||e.signature_id}),(0,yt.jsx)(Iw,{size:12,color:"tertiary",className:"shrink-0",children:r(e)})]},`${e.signature_id||e.domain||e.name||"row"}-${t}`))})]}):null,gde=({isOpen:e,setIsOpen:t,changes:n={}})=>{const r=Array.isArray(n.added)?n.added:[],o=Array.isArray(n.removed)?n.removed:[],i=Array.isArray(n.recategorized)?n.recategorized:[],s=Array.isArray(n.domains_added)?n.domains_added:[],a=r.length||o.length||i.length||s.length;return(0,yt.jsx)(qx,{isOpen:e,setIsOpen:t,title:(0,pt.__)("What Changed in the Last Scan","surecookie"),description:(0,pt.__)("Cookies and tracker domains that changed compared to the previous scan.","surecookie"),onCancel:()=>t(!1),panelClassName:"w-full max-w-xl",children:(0,yt.jsxs)("div",{className:"flex flex-col gap-6",children:[!a&&(0,yt.jsx)(Iw,{size:14,color:"help",children:(0,pt.__)("No differences were detected compared to the previous scan.","surecookie")}),(0,yt.jsx)(mde,{title:(0,pt.__)("New Cookies","surecookie"),variant:"green",items:r,describe:e=>{const t=fde(e.suggested_category||e.category);return e.confidence?`${t} · ${e.confidence}%`:t}}),(0,yt.jsx)(mde,{title:(0,pt.__)("No Longer Detected","surecookie"),variant:"red",items:o,describe:e=>fde(e.category)}),(0,yt.jsx)(mde,{title:(0,pt.__)("Recategorized","surecookie"),variant:"yellow",items:i,describe:e=>`${fde(e.from)} → ${fde(e.to)}`}),(0,yt.jsx)(mde,{title:(0,pt.__)("New Tracker Domains","surecookie"),variant:"blue",items:s.map(e=>({domain:e})),describe:()=>(0,pt.__)("Third-party","surecookie")})]})})},yde=()=>(0,yt.jsxs)("div",{className:"space-y-6","data-testid":"auto-scan-skeleton",children:[(0,yt.jsx)(zD,{headingWidth:"w-52",descriptionWidth:"w-[34rem]"}),(0,yt.jsxs)("div",{className:"space-y-3",children:[(0,yt.jsx)(Zk,{className:"h-5 w-36"}),(0,yt.jsx)("div",{className:"grid grid-cols-2 gap-3",children:[1,2].map(e=>(0,yt.jsx)(Zk,{className:"h-20 w-full rounded-lg"},e))})]}),(0,yt.jsxs)("div",{className:"space-y-3",children:[(0,yt.jsx)(Zk,{className:"h-5 w-32"}),(0,yt.jsx)("div",{className:"grid grid-cols-3 gap-3",children:[1,2,3].map(e=>(0,yt.jsx)(Zk,{className:"h-20 w-full rounded-lg"},e))})]}),(0,yt.jsxs)("div",{className:"space-y-3",children:[(0,yt.jsx)(Zk,{className:"h-5 w-28"}),(0,yt.jsx)(Zk,{className:"h-24 w-full rounded-lg"})]}),(0,yt.jsx)("div",{className:"flex gap-3",children:(0,yt.jsx)(Zk,{className:"h-10 w-16 rounded-md"})})]}),vde=Boolean(window?.surecookieAdminData?.is_pro_active),bde=[{value:"monthly",heading:(0,pt.__)("Monthly","surecookie"),description:(0,pt.__)("Re-scan your site once a month.","surecookie"),pro:!1},{value:"weekly",heading:(0,pt.__)("Weekly","surecookie"),description:(0,pt.__)("Re-scan every week for faster drift detection.","surecookie"),pro:!0}],wde=[{value:"same_as_manual",heading:(0,pt.__)("Content from Manual Scan","surecookie"),description:(0,pt.__)("Reuse the Manual scan selected content.","surecookie")},{value:"all_published",heading:(0,pt.__)("All Published Content","surecookie"),description:(0,pt.__)("Scan all published content, as per plan limit.","surecookie")},{value:"selected",heading:(0,pt.__)("Selected Content","surecookie"),description:(0,pt.__)("Choose specific content to scan below.","surecookie")}],xde=e=>{if(!e)return"";const t=new Date(e.replace(" ","T"));return Number.isNaN(t.getTime())?e:t.toLocaleString()},kde=()=>{const{getCurrentValue:e,updateSetting:t,isLoading:n,isError:r}=si(),[o,i]=(0,ct.useState)(!1),s=!!e("auto_scan_enabled"),a=e("auto_scan_frequency")||"monthly",l=e("auto_scan_scope")||"same_as_manual",c=e("auto_scan_pages")||[],{data:u}=Sn({queryKey:Nn.autoScan.nextRun(),queryFn:async()=>await qn()||{}}),{data:d,isLoading:A}=nr(),h=(0,ct.useCallback)(async e=>{try{return(await Pn(e,"scanner")).map(e=>({label:e.title||(0,pt.__)("(no title)","surecookie"),value:Number(e.id),type:e.type,typeLabel:e.type_label}))}catch(e){return[]}},[]);(0,ct.useEffect)(()=>()=>{Mn("scanner")},[]);const p=!1===u?.cron_status,f=d&&"object"==typeof d.changes?d.changes:{},m=!(!d||!d.date);return(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("Automatic Scanning","surecookie"),pageDescription:(0,pt.__)("Automatically re-scan your site and get notified when new cookies or trackers appear.","surecookie"),renderNotice:(0,yt.jsx)(Jce,{}),children:n?(0,yt.jsx)(yde,{}):r?(0,yt.jsx)(pk,{color:"error",showIcon:!0,title:(0,pt.__)("Failed to load settings","surecookie"),message:(0,pt.__)("An error occurred while loading settings. Please refresh the page to try again.","surecookie")}):(0,yt.jsxs)("div",{className:"space-y-6",children:[(0,yt.jsx)(Zb,{id:"auto-scan-enabled",size:"sm",value:s,onChange:e=>t("auto_scan_enabled",e),label:{heading:(0,pt.__)("Enable Automatic Scanning","surecookie"),description:(0,pt.__)("Run scheduled scans in the background and detect changes automatically.","surecookie")}}),s&&(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:"space-y-2",children:[(0,yt.jsx)("div",{className:"space-y-0.5",children:(0,yt.jsx)(Iw,{size:14,weight:500,color:"primary",children:(0,pt.__)("Scan Frequency","surecookie")})}),(0,yt.jsx)(MD.Group,{value:a,columns:2,size:"md",className:"grid gap-3",onChange:e=>{("weekly"!==e||vde)&&t("auto_scan_frequency",e)},children:bde.map(e=>{const t=e.pro&&!vde;return(0,yt.jsx)(MD.Button,{value:e.value,borderOn:!0,size:"sm",hideSelection:t,badgeItem:t?(0,yt.jsx)(uw,{label:(0,pt.__)("Pro","surecookie"),size:"sm",type:"pill",variant:"blue"}):void 0,label:{heading:e.heading,description:e.description}},e.value)})})]}),(0,yt.jsxs)("div",{className:"space-y-2",children:[(0,yt.jsx)("div",{className:"space-y-0.5",children:(0,yt.jsx)(Iw,{size:14,weight:500,color:"primary",children:(0,pt.__)("Content to Scan","surecookie")})}),(0,yt.jsx)(MD.Group,{value:l,columns:3,size:"sm",className:"grid gap-3",onChange:e=>t("auto_scan_scope",e),children:wde.map(e=>(0,yt.jsx)(MD.Button,{value:e.value,borderOn:!0,size:"sm",label:{heading:e.heading,description:e.description}},e.value))}),"selected"===l&&(0,yt.jsx)(uk,{searchFn:h,onChange:e=>t("auto_scan_pages",e),placeholder:(0,pt.__)("Select content to scan…","surecookie"),label:(0,pt.__)("Selected Content","surecookie"),combobox:!0,multiple:!0,groupBy:"typeLabel",value:Array.isArray(c)?c.filter(Boolean):[]})]}),p&&(0,yt.jsx)(pk,{color:"warning",showIcon:!0,title:(0,pt.__)("WordPress cron is disabled","surecookie"),message:(0,pt.__)("Scheduled scans rely on cron. Ask your host to set up a real server cron job so automatic scans run on time.","surecookie")}),(0,ht.applyFilters)("surecookie.autoScanProSections",null),(0,yt.jsxs)("div",{className:"space-y-2",children:[(0,yt.jsx)(Iw,{size:14,weight:500,color:"primary",children:(0,pt.__)("Last Scan","surecookie")}),A?(0,yt.jsx)("div",{className:"h-16 rounded-lg bg-background-secondary animate-pulse"}):m?(0,yt.jsxs)("div",{className:"rounded-lg border border-border-subtle p-4 space-y-2",children:[(0,yt.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,yt.jsx)(Iw,{size:13,color:"secondary",children:(0,pt.sprintf)(/* translators: %s: last scan date-time */ /* translators: %s: last scan date-time */
97 (0,pt.__)("Scanned on %s","surecookie"),xde(d.changed_at||d.date))}),(0,yt.jsx)(uw,{label:"auto"===d.trigger_type?(0,pt.__)("Scheduled","surecookie"):(0,pt.__)("Manual","surecookie"),size:"xs",type:"pill",variant:"auto"===d.trigger_type?"blue":"neutral"})]}),(0,yt.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-2",children:[(0,yt.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,yt.jsx)(uw,{label:d.is_baseline?(0,pt.sprintf)(/* translators: %d: number of cookies found. */ /* translators: %d: number of cookies found. */
98 (0,pt.__)("%d Cookies Found","surecookie"),d.cookies_count||0):(0,pt.sprintf)(/* translators: %d: number of new cookies */ /* translators: %d: number of new cookies */
99 (0,pt.__)("%d New Cookies","surecookie"),d.added_count||0),size:"xs",type:"pill",variant:"green"}),(0,yt.jsx)(uw,{label:(0,pt.sprintf)(/* translators: %d: number of cookies no longer detected */ /* translators: %d: number of cookies no longer detected */
100 (0,pt.__)("%d Removed","surecookie"),d.removed_count||0),size:"xs",type:"pill",variant:"red"}),(0,yt.jsx)(uw,{label:(0,pt.sprintf)(/* translators: %d: number of recategorized cookies */ /* translators: %d: number of recategorized cookies */
101 (0,pt.__)("%d Recategorized","surecookie"),d.recategorized_count||0),size:"xs",type:"pill",variant:"yellow"}),Array.isArray(d.new_domains)&&d.new_domains.length>0&&(0,yt.jsx)(uw,{label:(0,pt.sprintf)(/* translators: %d: number of new tracker domains */ /* translators: %d: number of new tracker domains */
102 (0,pt.__)("%d New Tracker Domains","surecookie"),d.new_domains.length),size:"xs",type:"pill",variant:"blue"})]}),(0,yt.jsx)(Fa,{variant:"link",size:"xs",onClick:()=>i(!0),children:(0,pt.__)("View Changes","surecookie")})]})]}):(0,yt.jsx)(Iw,{as:"span",size:14,color:"help",children:(0,pt.__)("No scans yet - run your first scan to start monitoring changes.","surecookie")})]}),(0,ht.applyFilters)("surecookie.autoScanProReviewQueues",null)]}),!vde&&(0,yt.jsx)(Wk,{title:(0,pt.__)("Stay Compliant Automatically","surecookie"),description:(0,pt.__)("Get weekly scans, instant alerts, smart classification, and automatic protection from new trackers.","surecookie"),utmContent:"auto_scan_weekly"}),(0,yt.jsx)(h_,{})]})}),(0,yt.jsx)(gde,{isOpen:o,setIsOpen:i,changes:f})]})},_de=_b("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),Cde=Zae({region:kae().min(1,{message:(0,pt.__)("Please enter at least one region code","surecookie")}).trim().refine(e=>{const t=e.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e.length>0);return 0!==t.length&&t.every(e=>/^[A-Z]{2}(-[A-Z0-9]{1,3})?$/.test(e))},{message:(0,pt.__)("Invalid region code format. Use ISO 3166 codes like EU, US, US-CA, or GB.","surecookie")}),functional:Vae().default(!1),analytics:Vae().default(!1),marketing:Vae().default(!1)}),Bde={region:"",functional:!1,analytics:!1,marketing:!1},Sde=[{label:(0,pt.__)("EU/EEA (GDPR)","surecookie"),codes:"EU",functional:!1,analytics:!1,marketing:!1},{label:(0,pt.__)("California (CCPA)","surecookie"),codes:"US-CA",functional:!0,analytics:!0,marketing:!1},{label:(0,pt.__)("United Kingdom","surecookie"),codes:"GB",functional:!1,analytics:!1,marketing:!1},{label:(0,pt.__)("Brazil (LGPD)","surecookie"),codes:"BR",functional:!1,analytics:!1,marketing:!1}],jde=({isWorldwide:e=!1,isOpen:t,setIsOpen:n,mode:r,formData:o,errors:i,register:s,setFocus:a,onUpdate:l,onSave:c,onCancel:u,isSaving:d=!1})=>{const A="edit"===r;return(0,ct.useEffect)(()=>{if(!t||e)return;const n=setTimeout(()=>{"function"==typeof a&&a("region")},200);return()=>clearTimeout(n)},[t,e,a]),(0,yt.jsxs)(qx,{isOpen:t,setIsOpen:n,title:e?(0,pt.__)("Edit Worldwide Default","surecookie"):A?(0,pt.__)("Edit Regional Rule","surecookie"):(0,pt.__)("Add Regional Rule","surecookie"),description:e?(0,pt.__)("Set the default consent state for all visitors worldwide, before they make a choice. Regional rules override this for their regions, following each region’s law.","surecookie"):(0,pt.__)("Set default consent state for visitors from this region. Google uses the most specific match.","surecookie"),saveLabel:A?(0,pt.__)("Save","surecookie"):(0,pt.__)("Add Rule","surecookie"),onSave:c,onCancel:u,isSaving:d,children:[!A&&(0,yt.jsxs)("div",{className:"space-y-2",children:[(0,yt.jsx)(Iw,{as:"p",size:14,weight:500,color:"primary",children:(0,pt.__)("Quick Presets","surecookie")}),(0,yt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:Sde.map(e=>(0,yt.jsxs)("button",{type:"button",onClick:()=>(e=>{l("region",e.codes),l("functional",e.functional),l("analytics",e.analytics),l("marketing",e.marketing)})(e),className:"text-left p-2.5 border border-border-subtle rounded-md hover:border-brand-primary-600 hover:bg-brand-background-50 transition-colors","aria-label":(0,pt.__)("Apply preset:","surecookie")+" "+e.label+" ("+e.codes+")",children:[(0,yt.jsx)(Iw,{as:"p",size:13,weight:500,color:"primary",children:e.label}),(0,yt.jsx)(Iw,{as:"p",size:12,color:"help",className:"mt-0.5",children:e.codes})]},e.codes))})]}),!e&&(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsxs)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"region-codes-input",children:[(0,pt.__)("Region Codes","surecookie"),(0,yt.jsx)(Iw,{as:"span",color:"error",children:" *"})]}),(0,yt.jsx)(j_,{...s("region"),id:"region-codes-input",size:"md",placeholder:"EU, US-CA, GB",error:!!i.region,"aria-invalid":!!i.region,"aria-describedby":i.region?"region-codes-error":"region-codes-help",className:"w-full"}),i.region?(0,yt.jsx)(Iw,{id:"region-codes-error",role:"alert",color:"error",size:14,children:i.region}):(0,yt.jsx)(Iw,{id:"region-codes-help",as:"p",size:12,color:"help",children:(0,pt.__)("Comma-separated ISO 3166 codes: EU, US, US-CA, GB, BR, etc.","surecookie")})]}),(0,yt.jsxs)("div",{className:"space-y-3",children:[(0,yt.jsx)(Iw,{as:"p",size:14,weight:500,color:"primary",children:(0,pt.__)("Default Consent State","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",children:(0,pt.__)("Choose which categories are granted by default for visitors from this region before they interact with the banner.","surecookie")}),(0,yt.jsxs)("div",{className:"space-y-3 pt-1",children:[(0,yt.jsx)(Zb,{id:"region-functional",size:"sm",value:o.functional||!1,onChange:e=>l("functional",e),label:{heading:(0,pt.__)("Functional Storage","surecookie"),description:(0,pt.__)("Enables storage for site functionality like preferences and language.","surecookie")},"aria-label":(0,pt.__)("Functional storage default","surecookie")}),(0,yt.jsx)(Zb,{id:"region-analytics",size:"sm",value:o.analytics||!1,onChange:e=>l("analytics",e),label:{heading:(0,pt.__)("Analytics Storage","surecookie"),description:(0,pt.__)("Enables storage for analytics purposes like visit duration and page views.","surecookie")},"aria-label":(0,pt.__)("Analytics storage default","surecookie")}),(0,yt.jsx)(Zb,{id:"region-marketing",size:"sm",value:o.marketing||!1,onChange:e=>l("marketing",e),label:{heading:(0,pt.__)("Marketing / Ads Storage","surecookie"),description:(0,pt.__)("Enables storage for advertising purposes including ad personalization and user data.","surecookie")},"aria-label":(0,pt.__)("Marketing storage default","surecookie")})]})]}),(0,yt.jsx)("div",{className:"p-3 rounded-md border border-border-subtle bg-background-secondary",children:(0,yt.jsx)(Iw,{as:"p",size:12,color:"help",children:(0,pt.__)("Essential cookies (security_storage) are always granted. These defaults apply before the visitor interacts with the consent banner.","surecookie")})})]})},Ede=[{key:"functional",label:(0,pt.__)("Functional","surecookie")},{key:"analytics",label:(0,pt.__)("Analytics","surecookie")},{key:"marketing",label:(0,pt.__)("Marketing","surecookie")}],Nde=({rule:e})=>(0,yt.jsx)("div",{className:"flex gap-1.5 flex-wrap",children:Ede.map(t=>{const n=!!e[t.key];return(0,yt.jsx)(uw,{label:`${t.label}: ${n?(0,pt.__)("Granted","surecookie"):(0,pt.__)("Denied","surecookie")}`,size:"sm",type:"pill",variant:n?"green":"neutral"},t.key)})}),Ide=()=>{const{getCurrentValue:e,updateSetting:t,isSaving:n}=si(),r=Eo(e("gcm_region_defaults")),o="worldwide",i=e("gcm_default_consent")||{},s=Ede.filter(e=>!!i[e.key]),a=Vx({schema:Cde,defaultValues:Bde,idKey:"id"}),l=Ex();return(0,yt.jsxs)("div",{className:"space-y-4 py-2",children:[(0,yt.jsxs)("div",{children:[(0,yt.jsx)(Iw,{as:"p",size:14,weight:500,color:"primary",children:(0,pt.__)("Active Regional Rules","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",className:"mt-0.5",children:(0,pt.__)("Set different default consent states per region. Google uses the most specific match (e.g., US-CA overrides US).","surecookie")})]}),(0,yt.jsxs)("div",{className:"flex items-center justify-between p-3 rounded-lg border border-border-subtle bg-background-primary",children:[(0,yt.jsxs)("div",{className:"flex-1 min-w-0 space-y-1.5",children:[(0,yt.jsx)("div",{className:"flex items-center gap-2 flex-wrap",children:(0,yt.jsx)(uw,{label:(0,pt.__)("Worldwide","surecookie"),size:"sm",type:"pill",variant:"blue"})}),(0,yt.jsx)(Nde,{rule:i})]}),(0,yt.jsx)("div",{className:"flex items-center gap-1 ml-3 flex-shrink-0",children:(0,yt.jsx)(Fa,{variant:"ghost",size:"xs",icon:(0,yt.jsx)(Boe,{className:"w-3.5 h-3.5"}),"aria-label":(0,pt.__)("Edit worldwide default consent","surecookie"),onClick:()=>{a.openForEdit({id:o,region:"",functional:!!i.functional,analytics:!!i.analytics,marketing:!!i.marketing})}})})]}),s.length>0&&(0,yt.jsx)("div",{className:"p-4 bg-background-secondary border border-border-subtle rounded-lg",children:(0,yt.jsxs)("div",{className:"flex items-start gap-2",children:[(0,yt.jsx)(Ak,{className:"w-5 h-5 text-amber-600 mt-0.5 flex-shrink-0"}),(0,yt.jsxs)("div",{className:"flex-1",children:[(0,yt.jsx)(Iw,{as:"p",size:14,weight:600,color:"primary",children:(0,pt.__)("Visitors are treated as consenting before they answer","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",className:"mt-1",children:(0,pt.sprintf)(/* translators: %s: comma-separated consent category names, e.g. "Analytics, Marketing" */ /* translators: %s: comma-separated consent category names, e.g. "Analytics, Marketing" */
103 (0,pt.__)("The Worldwide default grants %s on the first page view, before the banner is answered. Google tags fire immediately, and a later Decline cannot recall what was already sent.","surecookie"),s.map(e=>e.label).join(", "))})]})]})}),r.length>0?(0,yt.jsx)("div",{className:"space-y-2",children:r.map((e,t)=>{if(!e||"object"!=typeof e)return null;const n=Eo(e.region),r=n.length>0?n.join("-"):`rule-${t}`;return(0,yt.jsxs)("div",{className:"flex items-center justify-between p-3 rounded-lg border border-border-subtle bg-background-primary hover:border-border-strong transition-colors",children:[(0,yt.jsxs)("div",{className:"flex-1 min-w-0 space-y-1.5",children:[(0,yt.jsx)("div",{className:"flex items-center gap-2 flex-wrap",children:n.map(e=>(0,yt.jsx)(uw,{label:e,size:"sm",type:"pill",variant:"blue"},e))}),(0,yt.jsx)(Nde,{rule:e})]}),(0,yt.jsxs)("div",{className:"flex items-center gap-1 ml-3 flex-shrink-0",children:[(0,yt.jsx)(Fa,{variant:"ghost",size:"xs",icon:(0,yt.jsx)(Boe,{className:"w-3.5 h-3.5"}),onClick:()=>((e,t)=>{a.openForEdit({id:t,region:Eo(e.region).join(", "),functional:e.functional||!1,analytics:e.analytics||!1,marketing:e.marketing||!1})})(e,t),"aria-label":`${(0,pt.__)("Edit rule for","surecookie")} ${n.join(", ")}`}),(0,yt.jsx)(Fa,{variant:"ghost",size:"xs",icon:(0,yt.jsx)(fU,{className:"w-3.5 h-3.5"}),onClick:()=>((e,t)=>{l.open(e,{ruleIndex:t})})(e,t),className:"text-text-tertiary hover:text-text-error","aria-label":`${(0,pt.__)("Delete rule for","surecookie")} ${n.join(", ")}`})]})]},r)})}):(0,yt.jsx)("div",{className:"p-6 rounded-lg border border-border-subtle border-dashed text-center",children:(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",children:(0,pt.__)("No regional rules configured. The Worldwide default above applies to every visitor.","surecookie")})}),(0,yt.jsx)(Fa,{variant:"outline",size:"sm",onClick:()=>{a.openForAdd()},icon:(0,yt.jsx)(koe,{className:"w-3.5 h-3.5"}),className:"w-full",children:(0,pt.__)("Add Rule","surecookie")}),(0,yt.jsx)(jde,{isWorldwide:a.entityId===o,isOpen:a.isOpen,setIsOpen:a.setIsOpen,mode:a.mode,formData:a.formData,errors:a.errors,register:a.register,setFocus:a.setFocus,onUpdate:a.updateFormData,onSave:()=>a.entityId===o?(t("gcm_default_consent",{functional:!!a.formData.functional,analytics:!!a.formData.analytics,marketing:!!a.formData.marketing}),void a.close()):a.handleSubmit(()=>{const e=(a.formData.region??"").split(",").map(e=>e.trim().toUpperCase()).filter(e=>/^[A-Z]{2}(-[A-Z0-9]{1,3})?$/.test(e));if(0===e.length)return;const n="edit"===a.mode?r.filter((e,t)=>t!==a.entityId):r,o=n.flatMap(e=>Eo(e?.region)),i=e.filter(e=>o.includes(e));if(i.length>0)return void window.alert((0,pt.sprintf)(/* translators: %s: comma-separated duplicate region codes */ /* translators: %s: comma-separated duplicate region codes */
104 (0,pt.__)("These region codes already exist in another rule: %s","surecookie"),i.join(", ")));const s={region:e,functional:a.formData.functional,analytics:a.formData.analytics,marketing:a.formData.marketing};let l;"edit"===a.mode&&null!==a.entityId?(l=[...r],l[a.entityId]=s):l=[...r,s],t("gcm_region_defaults",l),a.close()},()=>{})(),onCancel:()=>{a.close()},isSaving:n}),(0,yt.jsx)(jx,{isOpen:l.isOpen,onClose:l.close,onConfirm:()=>{const e=l.ruleIndex;if("number"!=typeof e)return;const n=r.filter((t,n)=>n!==e);t("gcm_region_defaults",n),l.close()},title:(0,pt.__)("Delete Regional Rule","surecookie"),description:(0,pt.__)("Are you sure you want to delete this regional consent rule? Visitors from this region will use the global default.","surecookie"),isDeleting:l.deleting})]})},Fde=()=>{const{getCurrentValue:e,updateSetting:t}=si(),n=e("gcm_enabled")??!1;return(0,yt.jsxs)(n_,{pageTitle:(0,pt.__)("Google Consent Mode v2","surecookie"),pageDescription:(0,ct.createInterpolateElement)((0,pt.__)("Automatically communicate user consent preferences to Google services.","surecookie"),{br:(0,yt.jsx)("br",{}),em:(0,yt.jsx)("em",{className:"text-text-secondary not-italic"})}),children:[(0,yt.jsx)("div",{className:"flex items-center justify-between",children:(0,yt.jsx)(Zb,{"aria-label":(0,pt.__)("Enable Google Consent Mode Switch","surecookie"),id:"gcm-enabled-switch",label:{heading:(0,pt.__)("Enable Google Consent Mode","surecookie"),description:(0,pt.__)("Supported services: Analytics 4, Google Ads, Tag Manager, Campaign Manager 360, Ad Manager, Floodlight, and DV360","surecookie")},onChange:e=>{t("gcm_enabled",e)},size:"sm",value:n})}),n&&(0,yt.jsxs)("div",{className:"space-y-1.5 py-2",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",htmlFor:"gcm-wait",children:(0,pt.__)("Wait Time (milliseconds)","surecookie")}),(0,yt.jsx)(j_,{id:"gcm-wait",type:"number",min:0,max:2e3,step:100,size:"md",value:e("gcm_wait_for_update")??500,onChange:e=>{if(""===e)return;const n=parseInt(e,10);if(isNaN(n))return;const r=Math.max(0,Math.min(2e3,n));t("gcm_wait_for_update",r)},className:"w-full"}),(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",children:(0,pt.__)("How long Google services wait for consent before making requests. Default: 500ms. Range: 0–2000ms.","surecookie")}),(0,yt.jsx)(Ide,{}),(0,yt.jsx)("div",{className:"mt-6 p-4 bg-background-secondary border border-border-subtle rounded-lg space-y-2",children:(0,yt.jsxs)("div",{className:"flex items-start gap-2",children:[(0,yt.jsx)(_de,{className:"w-5 h-5 text-blue-600 mt-0.5 flex-shrink-0"}),(0,yt.jsxs)("div",{className:"flex-1",children:[(0,yt.jsx)(Iw,{as:"p",size:14,weight:600,color:"primary",children:(0,pt.__)("Mandatory for EU/EEA as of March 2024","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",className:"mt-1",children:(0,pt.__)("Google now requires Consent Mode v2 for all websites using Google services in the European Economic Area.","surecookie")}),(0,yt.jsx)("a",{href:"https://developers.google.com/tag-platform/security/guides/consent",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-blue-600 hover:text-blue-700 underline mt-2 inline-block",children:(0,pt.__)("Learn more about Google Consent Mode v2 →","surecookie")})]})]})})]}),(0,yt.jsx)(h_,{})]})},Tde=()=>(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsx)(zD,{headingWidth:"w-44",descriptionWidth:"w-[38rem]"}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Zk,{className:"h-5 w-52"}),(0,yt.jsx)(Zk,{className:"h-11 w-full rounded-md"})]}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Zk,{className:"h-5 w-32"}),(0,yt.jsx)(Zk,{className:"h-52 w-full rounded-md"}),(0,yt.jsx)(Zk,{className:"h-4 w-[26rem]"})]}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Zk,{className:"h-5 w-24"}),(0,yt.jsx)(Zk,{className:"h-10 w-full rounded-md"})]})]}),(0,yt.jsx)("div",{className:"flex justify-start gap-3 mt-6 mb-4",children:(0,yt.jsx)(Zk,{className:"h-10 w-16 rounded-md"})})]}),Lde=()=>{const{getCurrentValue:e,updateSetting:t,isLoading:n,isError:r}=si(),o=window?.surecookieAdminData?.defaults?.placeholder_description??"";return(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("Blocked Content UI","surecookie"),pageDescription:(0,pt.__)("Control what visitors see when third-party content (like videos or maps) is blocked until consent is given.","surecookie"),children:n?(0,yt.jsx)(Tde,{}):r?(0,yt.jsx)(pk,{color:"error",showIcon:!0,title:(0,pt.__)("Failed to load settings","surecookie"),message:(0,pt.__)("An error occurred while loading settings. Please refresh the page to try again.","surecookie")}):(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsx)(Zb,{"aria-label":(0,pt.__)("Use video thumbnails","surecookie"),id:"placeholder-video-thumbnails",size:"sm",label:{heading:(0,pt.__)("Use Video Thumbnails","surecookie"),description:(0,pt.__)("Show the video's own thumbnail (e.g. YouTube) on the placeholder. Note: this loads the thumbnail from the provider before consent.","surecookie")},value:e("placeholder_video_thumbnails")??!1,onChange:e=>t("placeholder_video_thumbnails",e)}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)("div",{className:'[&_input]:!px-3.5 [&_input]:!py-2.5 [&_input]:!pr-10"',children:(0,yt.jsx)(j_,{type:"file",id:"placeholder-image",size:"md",accept:"image/*",placeholder:(0,pt.__)("Upload Image","surecookie"),label:(0,pt.__)("Default Placeholder Image","surecookie"),readOnly:!0,value:"",onClick:e=>{if(e.preventDefault(),"undefined"==typeof wp||!wp.media)return;const n=wp.media({title:(0,pt.__)("Select Placeholder Image","surecookie"),button:{text:(0,pt.__)("Use this image","surecookie")},multiple:!1,library:{type:"image"}});n.on("select",()=>{const e=n.state().get("selection").first().toJSON();t("placeholder_image",e.url)}),n.open()}})}),(0,yt.jsx)(d_,{className:"!mt-2",imageUrl:e("placeholder_image"),onRemove:()=>t("placeholder_image","")})]}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",className:"inline-block",htmlFor:"placeholder-description",children:(0,pt.__)("Placeholder Text","surecookie")}),(0,yt.jsx)(kD,{id:"placeholder-description",value:e("placeholder_description")||"",defaultValue:o,onChange:e=>t("placeholder_description",e),placeholder:(0,pt.__)("Enter placeholder text","surecookie")}),(0,yt.jsx)(Iw,{as:"span",size:12,weight:400,color:"help",children:(0,pt.__)("Use {service} to insert the blocked service name (e.g. YouTube).","surecookie")})]}),(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",className:"inline-block",htmlFor:"placeholder-button-text",children:(0,pt.__)("Button Text","surecookie")}),(0,yt.jsx)(j_,{id:"placeholder-button-text",size:"md",value:e("placeholder_button_text")||"",onChange:e=>t("placeholder_button_text",e)})]})]}),(0,yt.jsx)(h_,{})]})})},Pde=()=>{const e=(0,ct.useMemo)(()=>(0,ht.applyFilters)("surecookie.geoRules.proContent",null),[]);return(0,yt.jsx)($k,{children:(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("Geographic Rules","surecookie"),pageDescription:(0,pt.__)("Show your cookie banner only in regions where consent is required.","surecookie"),children:(0,yt.jsxs)("div",{className:"space-y-6",children:[(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsxs)("div",{className:"space-y-0.5",children:[(0,yt.jsx)(Iw,{size:14,weight:500,color:"primary",children:(0,pt.__)("Where should the banner appear?","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",children:(0,pt.__)("Choose where the banner is shown. Visitors outside selected regions will not see it.","surecookie")})]}),(0,yt.jsxs)(MD.Group,{value:"worldwide",columns:2,onChange:()=>{},className:"grid gap-3",size:"md",children:[(0,yt.jsx)(MD.Button,{value:"worldwide",borderOn:!0,size:"sm",label:{heading:(0,pt.__)("Show to all visitors worldwide","surecookie"),description:(0,pt.__)("Use the same experience for everyone, regardless of location.","surecookie")}}),(0,yt.jsx)(MD.Button,{value:"selected_regions",borderOn:!0,size:"sm",hideSelection:!0,badgeItem:(0,yt.jsx)(uw,{label:(0,pt.__)("Pro","surecookie"),size:"sm",type:"pill",variant:"blue",className:"portal-space-type-badge"}),label:{heading:(0,pt.__)("Show only where required by law","surecookie"),description:(0,pt.__)("Target specific regions with tailored consent experiences.","surecookie")}})]})]}),(0,yt.jsxs)("div",{className:"p-4 rounded-lg border border-border-subtle bg-background-secondary space-y-1",children:[(0,yt.jsx)(Iw,{size:14,weight:500,color:"primary",children:(0,pt.__)("Mode: Show to all visitors worldwide","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",children:(0,pt.__)("Your existing banner settings apply to all visitors. No geographic targeting is active.","surecookie")})]}),(0,yt.jsx)(Wk,{title:(0,pt.__)("Unlock Regional Targeting","surecookie"),description:(0,pt.__)("Show banner only in selected regions, create custom regional rules, and control fallback behavior.","surecookie"),utmContent:"geo_rules_banner"}),e,(0,yt.jsx)(Iw,{as:"p",size:12,color:"help",className:"text-right",children:(0,ct.createInterpolateElement)((0,pt.__)("Location detection uses GeoLite2 data by MaxMind, available from <link>https://www.maxmind.com</link>.","surecookie"),{link:(0,yt.jsx)("a",{href:"https://www.maxmind.com",target:"_blank",rel:"noopener noreferrer",className:"no-underline hover:underline",children:"https://www.maxmind.com"})})})]})})})},Mde=()=>(0,yt.jsx)($k,{children:(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("Consent Sharing","surecookie"),pageDescription:(0,pt.__)("Share visitor consent across your sites so users don’t need to give consent again.","surecookie"),children:(0,yt.jsx)(Wk,{title:(0,pt.__)("Unlock Consent Sharing","surecookie"),description:(0,pt.__)("Automatically sync cookie consent across multiple domains and forward consent choices to connected services, without asking visitors to consent again.","surecookie"),utmContent:"consent_forward_banner"})})}),Ode="surecookie-only",Dde=()=>{const e="undefined"!=typeof window&&window.surecookieAdminData||{};return{restUrl:e.mcp_rest_url||"",username:e.mcp_username||"",adapterInstalled:!!e.mcp_adapter_installed,abilitiesSupported:!!e.mcp_abilities_supported,appPasswordUrl:e.mcp_app_password_url||"",adapterDownloadUrl:e.mcp_adapter_download_url||"https://github.com/WordPress/mcp-adapter/releases"}},Ude=e=>{const{restUrl:t,username:n}=Dde(),r=(e=>{try{return new URL(e).hostname.replace(/[^a-zA-Z0-9-]/g,"-")}catch(e){return"wordpress"}})(t),o=Ode===e,i=o?`${t}surecookie/v1/mcp`:`${t}mcp/mcp-adapter-default-server`;return{serverName:o?`${r}-surecookie`:`${r}-global`,serverUrl:i,serverEntry:{command:"npx",args:["-y","@automattic/mcp-wordpress-remote@latest"],env:{WP_API_URL:i,WP_API_USERNAME:n,WP_API_PASSWORD:"your-application-password"}}}},Rde="cursor-pointer text-link-primary hover:text-link-primary-hover inline-flex items-center gap-1",zde=({tooltip:e,copied:t,icon:n,onClick:r})=>(0,yt.jsx)(e_,{content:e,placement:"top",delay:50,children:(0,yt.jsx)("button",{type:"button",onClick:r,className:"flex items-center justify-center w-8 h-8 rounded-md transition-colors cursor-pointer bg-transparent border-0 hover:bg-[#2a1f42] focus-visible:bg-[#2a1f42] focus-visible:outline focus-visible:outline-1 focus-visible:outline-[#a6adc8]",style:{color:"#a6adc8"},"aria-label":e,children:t?(0,yt.jsx)(dk,{size:16,style:{color:"#a6e3a1"}}):(0,yt.jsx)(n,{size:16})})}),Qde=()=>{const[e,t]=(0,ct.useState)(Ode),[n,r]=(0,ct.useState)(!1),[o,i]=(0,ct.useState)(!1),s=(0,ct.useRef)(null),a=(0,ct.useRef)(null),{appPasswordUrl:l}=Dde(),c=(e=>{const{serverName:t,serverEntry:n}=Ude(e);return JSON.stringify({mcpServers:{[t]:n}},null,2)})(e);(0,ct.useEffect)(()=>()=>{clearTimeout(s.current),clearTimeout(a.current)},[]);const u=(e,t)=>{e(!0),clearTimeout(t.current),t.current=setTimeout(()=>e(!1),2e3)};return(0,yt.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,yt.jsx)(Iw,{as:"h3",size:14,weight:600,children:(0,pt.__)("Connect Your AI Client","surecookie")}),(0,yt.jsxs)("ol",{className:"list-decimal list-outside flex flex-col gap-1.5 text-text-secondary text-sm my-0 ml-5",children:[(0,yt.jsxs)("li",{children:[(0,pt.__)("Create an Application Password","surecookie"),": ",(0,yt.jsxs)("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:Rde,children:[(0,pt.__)("Open Application Passwords","surecookie"),(0,yt.jsx)(xce,{size:14})]})]}),(0,yt.jsxs)("li",{children:[(0,pt.__)("Add to your AI client:","surecookie")," ",(0,yt.jsxs)("a",{href:"https://developer.wordpress.org/news/2026/02/from-abilities-to-ai-agents-introducing-the-wordpress-mcp-adapter/",target:"_blank",rel:"noopener noreferrer",className:Rde,"aria-label":(0,pt.__)("Learn more about the WordPress MCP Adapter","surecookie"),children:[(0,pt.__)("Learn More","surecookie"),(0,yt.jsx)(xce,{size:14})]}),(0,yt.jsxs)("ul",{className:"list-disc list-outside flex flex-col mt-2.5 ml-4",children:[(0,yt.jsxs)("li",{children:[(0,yt.jsx)("span",{className:"font-medium",children:(0,pt.__)("Claude Code","surecookie")}),": .mcp.json"]}),(0,yt.jsxs)("li",{children:[(0,yt.jsx)("span",{className:"font-medium",children:(0,pt.__)("Claude Desktop","surecookie")}),": claude_desktop_config.json"]}),(0,yt.jsxs)("li",{children:[(0,yt.jsx)("span",{className:"font-medium",children:(0,pt.__)("Cursor","surecookie")}),": .cursor/mcp.json"]}),(0,yt.jsxs)("li",{children:[(0,yt.jsx)("span",{className:"font-medium",children:(0,pt.__)("VS Code","surecookie")}),": .vscode/mcp.json"]})]})]}),(0,yt.jsxs)("li",{children:[(0,pt.__)("Update the environment variables","surecookie")," ",(0,yt.jsxs)("ul",{className:"list-disc list-outside flex flex-col mt-2.5 ml-4",children:[(0,yt.jsxs)("li",{children:[(0,yt.jsx)("span",{className:"font-medium",children:(0,pt.__)("WP_API_USERNAME","surecookie")})," - ",(0,pt.__)("Your WordPress username (prefilled).","surecookie")]}),(0,yt.jsxs)("li",{children:[(0,yt.jsx)("span",{className:"font-medium",children:(0,pt.__)("WP_API_PASSWORD","surecookie")})," - ",(0,pt.__)('Replace "your-application-password" with the password from Step 1.',"surecookie")]})]})]}),(0,yt.jsxs)("li",{children:[(0,pt.__)("Verify Node.js version","surecookie")," ",(0,yt.jsxs)("ul",{className:"list-disc list-outside flex flex-col mt-2.5 ml-4",children:[(0,yt.jsxs)("li",{children:[(0,pt.__)("In your terminal, run:","surecookie"),(0,yt.jsx)("code",{className:"ml-1.5",children:"node -v"})]}),(0,yt.jsxs)("li",{children:[(0,pt.__)("The version must be 20.1 or higher.","surecookie"),(0,yt.jsx)("code",{className:"ml-1.5",children:"node -v"})]}),(0,yt.jsxs)("li",{children:[(0,pt.__)("If it is lower, run:","surecookie"),(0,yt.jsx)("code",{className:"ml-1.5",children:"nvm install 20 && nvm use 20"})]})]})]}),(0,yt.jsx)("li",{children:(0,pt.__)("Restart your AI client and paste the copied prompt again into your AI client.","surecookie")}),(0,yt.jsx)("li",{children:(0,pt.__)("Enjoy your AI client connected to your WordPress site!","surecookie")})]}),(0,yt.jsx)(C_,{activeItem:e,children:(0,yt.jsxs)(C_.Group,{className:"w-max whitespace-nowrap bg-background-secondary",activeItem:e,onChange:({value:e})=>{t(e?.slug||e),clearTimeout(s.current),clearTimeout(a.current),r(!1),i(!1)},variant:"rounded",size:"xs",children:[(0,yt.jsx)(C_.Tab,{slug:Ode,text:(0,pt.__)("SureCookie Only","surecookie")}),(0,yt.jsx)(C_.Tab,{slug:"global",text:(0,pt.__)("Global","surecookie")})]})}),(0,yt.jsxs)("div",{className:"relative rounded-lg",style:{backgroundColor:"#1c1331"},children:[(0,yt.jsxs)("div",{className:"absolute top-3 right-3 flex items-center gap-1",children:[(0,yt.jsx)(zde,{tooltip:(0,pt.__)("Copy setup prompt for AI client","surecookie"),copied:o,icon:Hk,onClick:()=>{db((e=>{const{serverName:t,serverEntry:n}=Ude(e),{appPasswordUrl:r}=Dde();return`Add this MCP server to my AI client so I can connect to my WordPress site:\n\n${JSON.stringify({[t]:n},null,2)}\n\nSteps:\n\n1. Ask which AI client I use if unsure (Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, etc.) and what OS I'm on (macOS, Windows, Linux). Both are needed to locate the correct config file.\n\n2. Keep the "your-application-password" placeholder exactly as is - NEVER ask me to paste my Application Password into this chat. After writing the config file, tell me to open it and replace the placeholder myself. If I don't have an Application Password, direct me to create one at: ${r} (passwords can also be revoked there if ever exposed).\n\n3. Locate the correct MCP config file for my client and OS. Verify the path exists on my system. Do not guess. If it doesn't exist, confirm the path with me before creating.\n\n4. Merge into existing config if present. Do NOT overwrite other MCP server entries. For VS Code, use "servers" key instead of "mcpServers".\n\n5. Detect my Node.js setup by running: which npx && node --version && echo $PATH\n - If you can run terminal commands directly (e.g. Claude Code, Cursor, Windsurf, VS Code agent), run this yourself.\n - If you are sandboxed and cannot run terminal commands (e.g. Claude Desktop), ask me to run it and paste the output back.\n - Requires Node.js v20 or v22. If below v20 or v23+, warn me and stop.\n - Set "command" to the full npx path from "which npx". Never use a path from your own environment.\n - Add "PATH" to "env" using the actual $PATH output. Include the node bin directory, Homebrew paths (/opt/homebrew/bin, /usr/local/bin), and system paths. MCP servers don't inherit the user's shell PATH, so include everything needed for node, npx, and git.\n\n6. If you're sandboxed (e.g., Claude Desktop) and can't write to the real filesystem, don't write to a sandbox path. Instead, output the final JSON in a code block with the file path so I can save it manually.\n\n7. Verify the final JSON is valid and confirm what was added.`})(e)).then(()=>{u(i,a),At.success((0,pt.__)("Prompt copied! Paste it into your AI client.","surecookie"))}).catch(()=>{At.error((0,pt.__)("Failed to copy prompt to clipboard","surecookie"))})}}),(0,yt.jsx)(zde,{tooltip:(0,pt.__)("Copy JSON config","surecookie"),copied:n,icon:fk,onClick:()=>{db(c).then(()=>{u(r,s),At.success((0,pt.__)("Copied to clipboard","surecookie"))}).catch(()=>{At.error((0,pt.__)("Failed to copy to clipboard","surecookie"))})}})]}),(0,yt.jsx)("pre",{className:"p-4 pr-24 overflow-x-auto text-sm leading-relaxed font-mono m-0",style:{color:"#cdd6f4"},children:c})]})]})},Hde=()=>(0,yt.jsxs)("div",{className:"bg-background-primary border border-border-subtle rounded-lg shadow-sm p-6 space-y-6",children:[(0,yt.jsx)("div",{className:"flex items-center justify-between",children:(0,yt.jsxs)("div",{className:"inline-flex items-start gap-3",children:[(0,yt.jsx)(Zk,{className:"w-10 h-5 rounded-full shrink-0"}),(0,yt.jsxs)("div",{className:"space-y-1",children:[(0,yt.jsx)(Zk,{className:"h-5 w-28"}),(0,yt.jsx)(Zk,{className:"h-4 w-[32rem]"})]})]})}),(0,yt.jsx)("div",{className:"flex justify-start gap-3 mt-6 mb-4",children:(0,yt.jsx)(Zk,{className:"h-10 w-16 rounded-md"})})]}),qde="bg-background-primary border border-border-subtle rounded-lg shadow-sm p-6 space-y-6",Vde=()=>{const{adapterDownloadUrl:e}=Dde();return(0,yt.jsx)(pk,{color:"warning",showIcon:!0,title:(0,pt.__)("MCP Adapter plugin not detected","surecookie"),message:(0,pt.sprintf)(
105 // translators: %s: WP MCP Adapter plugin name.
106 // translators: %s: WP MCP Adapter plugin name.
107 (0,pt.__)("To connect AI clients to your site, the %s plugin is required. Download the latest release from GitHub, upload it via Plugins > Add New > Upload Plugin, and activate.","surecookie"),"WP MCP Adapter"),footer:(0,yt.jsx)("div",{children:(0,yt.jsx)(Fa,{variant:"primary",size:"xs",onClick:()=>window.open(e,"_blank","noopener,noreferrer"),children:(0,pt.__)("Download from GitHub","surecookie")})})})},Kde=()=>{const{getCurrentValue:e,updateSetting:t,isLoading:n,isError:r,hasPendingChange:o}=si(),i=!!e("enable_mcp"),{adapterInstalled:s,abilitiesSupported:a}=Dde();return(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("MCP","surecookie"),pageDescription:(0,pt.__)("Configure AI client access to SureCookie through the Model Context Protocol.","surecookie"),contentWrapperClassName:"bg-transparent border-0 shadow-none p-0",children:n?(0,yt.jsx)(Hde,{}):r?(0,yt.jsx)(pk,{color:"error",showIcon:!0,title:(0,pt.__)("Failed to load settings","surecookie"),message:(0,pt.__)("An error occurred while loading settings. Please refresh the page to try again.","surecookie")}):(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:qde,children:[(0,yt.jsx)(Zb,{id:"enable-mcp-switch","aria-label":(0,pt.__)("Enable MCP","surecookie"),size:"sm",label:{heading:(0,pt.__)("Enable MCP","surecookie"),description:(0,pt.__)("Allow AI clients like Claude, and Cursor to manage your cookie banner, scanner, and consent settings through SureCookie. When disabled, no abilities are registered and AI clients cannot connect.","surecookie")},value:i,onChange:e=>t("enable_mcp",e)}),(0,yt.jsx)(h_,{})]}),i&&(0,yt.jsxs)("div",{className:qde,children:[!a&&(0,yt.jsx)(pk,{color:"warning",showIcon:!0,title:(0,pt.__)("WordPress Abilities API not available","surecookie"),message:(0,pt.__)("MCP requires the WordPress Abilities API (WordPress 6.9 or later). Update WordPress to use this feature.","surecookie")}),a&&!s&&(0,yt.jsx)(Vde,{}),o("enable_mcp")&&(0,yt.jsx)(pk,{color:"info",showIcon:!0,title:(0,pt.__)("Unsaved changes","surecookie"),message:(0,pt.__)("The MCP endpoint becomes active only after you save your settings.","surecookie")}),(0,yt.jsx)(Qde,{})]})]})})},Wde="bg-background-primary border border-border-subtle rounded-lg shadow-sm p-6 space-y-6",Gde=()=>(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:Wde,children:[(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Zk,{className:"h-7 w-40"}),(0,yt.jsx)(Zk,{className:"h-5 w-[34rem]"})]}),(0,yt.jsxs)("div",{className:"space-y-1.5 w-full",children:[(0,yt.jsx)(Zk,{className:"h-5 w-32"}),(0,yt.jsx)(Zk,{className:"h-10 w-full rounded-md"}),(0,yt.jsx)(Zk,{className:"h-5 w-72"})]}),(0,yt.jsx)(Zk,{className:"h-10 w-36 rounded-md"})]}),(0,yt.jsxs)("div",{className:Wde,children:[(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Zk,{className:"h-7 w-40"}),(0,yt.jsx)(Zk,{className:"h-5 w-[38rem]"})]}),(0,yt.jsxs)("div",{className:"space-y-3",children:[(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Zk,{className:"h-5 w-32"}),(0,yt.jsx)(Zk,{className:"h-11 w-full rounded-md"})]}),(0,yt.jsxs)("div",{className:"inline-flex items-start gap-2",children:[(0,yt.jsx)(Zk,{className:"h-4 w-4 rounded shrink-0"}),(0,yt.jsxs)("div",{className:"space-y-1",children:[(0,yt.jsx)(Zk,{className:"h-5 w-40"}),(0,yt.jsx)(Zk,{className:"h-4 w-[34rem]"})]})]})]}),(0,yt.jsx)(Zk,{className:"h-10 w-36 rounded-md"})]})]}),$de="all",Yde=Boolean(window?.surecookieAdminData?.is_pro_active),Zde=()=>{const e=bt(),[t,n]=(0,ct.useState)(!1),[r,o]=(0,ct.useState)(!1),[i,s]=(0,ct.useState)(null),[a,l]=(0,ct.useState)(!1),[c,u]=(0,ct.useState)(null),[d,A]=(0,ct.useState)([$de]),{data:h=[],isLoading:p}=Sn({queryKey:Nn.settings.exportSections,queryFn:async()=>(await Fn()({method:"GET",path:"/surecookie/v1/settings/export-sections"}))?.data||[],staleTime:1/0}),f=(0,ct.useMemo)(()=>[{id:$de,label:(0,pt.__)("All Settings","surecookie"),description:(0,pt.__)("Your entire portable configuration in one file.","surecookie")},...h],[h]),m=d.includes($de),g=(0,ct.useMemo)(()=>{if(!c)return null;const{applied_sections:e=[],skipped_pro:t=[],ignored:n=[],invalid:r=[],replaced:o=!1,upgrade_required:i=!1}=c,s=0===e.length;return(0,yt.jsx)(pk,{color:s?"warning":"success",showIcon:!0,title:s?(0,pt.__)("Nothing imported","surecookie"):(0,pt.__)("Import complete","surecookie"),message:s?(0,pt.__)("None of the settings in this file could be applied to this site.","surecookie"):(0,pt.__)("Your settings were imported. Here is what happened:","surecookie"),footer:(0,yt.jsxs)("div",{className:"space-y-3",children:[e.length>0&&(0,yt.jsxs)("div",{className:"space-y-1",children:[(0,yt.jsx)(Iw,{as:"p",size:13,weight:600,color:"primary",children:(0,pt.__)("Applied","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:13,color:"help",children:e.join(", ")})]}),t.length>0&&(0,yt.jsxs)("div",{className:"space-y-1",children:[(0,yt.jsx)(Iw,{as:"p",size:13,weight:600,color:"primary",children:(0,pt.__)("Skipped (Pro)","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:13,color:"help",children:t.join(", ")})]}),n.length>0&&(0,yt.jsxs)("div",{className:"space-y-1",children:[(0,yt.jsx)(Iw,{as:"p",size:13,weight:600,color:"primary",children:(0,pt.__)("Ignored","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:13,color:"help",children:n.join(", ")})]}),r.length>0&&(0,yt.jsxs)("div",{className:"space-y-1",children:[(0,yt.jsx)(Iw,{as:"p",size:13,weight:600,color:"primary",children:(0,pt.__)("Not imported","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:13,color:"help",children:o?(0,pt.sprintf)(/* translators: %s: comma-separated list of field names. */ /* translators: %s: comma-separated list of field names. */
108 (0,pt.__)("These had an unusable value and were reset to their default: %s","surecookie"),r.join(", ")):(0,pt.sprintf)(/* translators: %s: comma-separated list of field names. */ /* translators: %s: comma-separated list of field names. */
109 (0,pt.__)("These had an unusable value, so your existing settings were kept: %s","surecookie"),r.join(", "))})]}),i&&(0,yt.jsx)(Wk,{title:(0,pt.__)("These settings need SureCookie Pro","surecookie"),description:(0,pt.__)("Upgrade to Pro to use the skipped features on this site.","surecookie"),utmContent:"import_export_skipped_pro"})]})})},[c]);return(0,yt.jsx)(n_,{pageTitle:(0,pt.__)("Import / Export","surecookie"),pageDescription:(0,pt.__)("Move your SureCookie setup between sites with a portable settings export.","surecookie"),contentWrapperClassName:"bg-transparent border-0 shadow-none p-0",renderNotice:g,children:p?(0,yt.jsx)(Gde,{}):(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsxs)("div",{className:Wde,children:[(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"h2",size:18,weight:600,color:"primary",children:(0,pt.__)("Export settings","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",children:(0,pt.__)("Choose what to include, then download a JSON file of your portable SureCookie configuration.","surecookie")})]}),(0,yt.jsxs)("div",{className:"space-y-1.5 w-full",children:[(0,yt.jsx)(Iw,{as:"label",size:14,weight:500,color:"primary",children:(0,pt.__)("What to export","surecookie")}),(0,yt.jsxs)(lk,{multiple:!0,size:"md",value:d,onChange:e=>{const t=Array.isArray(e)?e:[];if(t.includes($de)&&!m)return void A([$de]);const n=t.filter(e=>e!==$de);A(n.length?n:[$de])},children:[(0,yt.jsx)(lk.Button,{placeholder:(0,pt.__)("All Settings","surecookie"),render:e=>(e=>f.find(t=>t.id===e)?.label??"")(e)}),(0,yt.jsx)(lk.Options,{children:f.map(e=>(0,yt.jsx)(lk.Option,{value:e.id,children:(0,yt.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,yt.jsx)(Iw,{size:14,weight:500,color:"primary",children:e.label}),e.description&&(0,yt.jsx)(Iw,{size:12,color:"help",children:e.description})]})},e.id))})]}),m&&(0,yt.jsx)(Iw,{as:"p",size:13,color:"help",children:(0,pt.__)("Export your entire portable configuration.","surecookie")})]}),!Yde&&(0,yt.jsx)(Wk,{title:(0,pt.__)("Export more with SureCookie Pro","surecookie"),description:(0,pt.__)("Pro adds settings like geographic targeting, consent forwarding and the floating widget to your export.","surecookie"),utmContent:"import_export_pro_sections"}),(0,yt.jsx)(Fa,{variant:"primary",size:"md",onClick:async()=>{n(!0);try{const e=m?[]:d,t=await((e=[])=>{const t=e.length?(0,Tn.addQueryArgs)("/surecookie/v1/settings/export",{sections:e}):"/surecookie/v1/settings/export";return Fn()({method:"GET",path:t})})(e);(e=>{const t=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),n=window.URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=((e={})=>`surecookie-settings-${((e="")=>{try{return new URL(e).hostname.replace(/^www\./,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"site"}catch(e){return"site"}})(e?.site_url)}-${((e="")=>{const t=new Date(e);return Number.isNaN(t.getTime())?(new Date).toISOString().slice(0,10):t.toISOString().slice(0,10)})(e?.exported_at)}.json`)(e),document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)})(t?.data||t),At.success((0,pt.__)("Settings exported successfully.","surecookie"))}catch(e){At.error((0,pt.__)("Failed to export settings.","surecookie"),{description:e.message||(0,pt.__)("Please try again.","surecookie")})}finally{n(!1)}},disabled:t,children:t?(0,pt.__)("Exporting…","surecookie"):(0,pt.__)("Export settings","surecookie")})]}),(0,yt.jsxs)("div",{className:Wde,children:[(0,yt.jsxs)("div",{className:"space-y-1.5",children:[(0,yt.jsx)(Iw,{as:"h2",size:18,weight:600,color:"primary",children:(0,pt.__)("Import settings","surecookie")}),(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",children:(0,pt.__)("Upload a SureCookie export file to merge it into the current site, or replace all transferable settings.","surecookie")})]}),(0,yt.jsxs)("div",{className:"space-y-3",children:[(0,yt.jsx)("div",{className:"[&_input]:!px-3.5 [&_input]:!py-2.5",children:(0,yt.jsx)(j_,{id:"surecookie-import-file",type:"file",size:"md",accept:".json,application/json",label:(0,pt.__)("JSON export file","surecookie"),onChange:e=>{u(null),s(e?.[0]||null)}})}),i&&(0,yt.jsx)(Iw,{as:"p",size:14,color:"help",children:(0,pt.sprintf)(/* translators: %s: selected import filename. */ /* translators: %s: selected import filename. */
110 (0,pt.__)("Selected file: %s","surecookie"),i.name)}),(0,yt.jsx)(rU,{size:"sm",label:{heading:(0,pt.__)("Replace all settings","surecookie"),description:(0,pt.__)("When enabled, transferable settings not present in the import file are reset to their defaults instead of keeping the current site values.","surecookie")},checked:a,onChange:l})]}),(0,yt.jsx)(Fa,{variant:"primary",size:"md",onClick:async()=>{if(i){o(!0);try{const t=await i.text(),n=await((e,t=!1)=>Fn()({method:"POST",path:"/surecookie/v1/settings/import",data:{file:e,replace:t}}))(t,a);u({applied_sections:n?.applied_sections||[],skipped_pro:n?.skipped_pro||[],ignored:n?.ignored||[],invalid:n?.invalid||[],replaced:!!n?.replaced,upgrade_required:!!n?.upgrade_required}),Zn(e),[Nn.autoScan.all,Nn.scannedResources.all].forEach(t=>e.invalidateQueries({queryKey:t})),(n?.applied_sections||[]).length>0?At.success((0,pt.__)("Settings imported successfully.","surecookie")):At.info((0,pt.__)("No settings were applied from this file.","surecookie")),s(null),n?.redirect_url&&window.setTimeout(()=>{window.location.href=n.redirect_url},1500)}catch(e){At.error((0,pt.__)("Failed to import settings.","surecookie"),{description:e.message||(0,pt.__)("Please check the file and try again.","surecookie")})}finally{o(!1)}}else At.error((0,pt.__)("Please choose a SureCookie export file first.","surecookie"))},disabled:!i||r,children:r?(0,pt.__)("Importing…","surecookie"):(0,pt.__)("Import settings","surecookie")})]})]})})},Xde=_b("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]),Jde=_b("mail-check",[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]]),eAe=_b("bell-ring",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]]),tAe=_b("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),nAe=()=>{const e=[{id:"#42",name:"priya.raman@example.com",type:(0,pt.__)("Access","surecookie"),status:(0,pt.__)("Received","surecookie"),tone:"text-blue-700 bg-blue-50 ring-blue-200",deadline:(0,pt.__)("28 days left","surecookie"),deadlineTone:"text-text-secondary"},{id:"#41",name:"tom.baxter@example.org",type:(0,pt.__)("Erasure","surecookie"),status:(0,pt.__)("In progress","surecookie"),tone:"text-amber-700 bg-amber-50 ring-amber-200",deadline:(0,pt.__)("6 days left","surecookie"),deadlineTone:"text-amber-600 font-medium"},{id:"#38",name:"lena.fischer@example.de",type:(0,pt.__)("Portability","surecookie"),status:(0,pt.__)("In progress","surecookie"),tone:"text-amber-700 bg-amber-50 ring-amber-200",deadline:(0,pt.__)("3 days overdue","surecookie"),deadlineTone:"text-red-600 font-medium"},{id:"#35",name:"chen.wei@example.com",type:(0,pt.__)("Access","surecookie"),status:(0,pt.__)("Responded","surecookie"),tone:"text-green-700 bg-green-50 ring-green-200",deadline:"-",deadlineTone:"text-text-tertiary"}];return(0,yt.jsx)("div",{"aria-hidden":"true",className:"rounded-xl border border-border-subtle bg-background-secondary p-3 shadow-sm select-none",children:(0,yt.jsxs)("div",{className:"rounded-lg bg-background-primary border border-border-subtle overflow-hidden",children:[(0,yt.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2.5 border-b border-border-subtle",children:[(0,yt.jsx)("span",{className:"text-xs font-semibold text-text-primary",children:(0,pt.__)("Data Request Logs","surecookie")}),(0,yt.jsx)("span",{className:"ml-auto h-5 w-20 rounded-md bg-background-secondary ring-1 ring-border-subtle"}),(0,yt.jsx)("span",{className:"h-5 w-24 rounded-md bg-background-secondary ring-1 ring-border-subtle"}),(0,yt.jsx)("span",{className:"h-5 w-5 rounded-md bg-background-secondary ring-1 ring-border-subtle"})]}),(0,yt.jsx)("div",{className:"divide-y divide-border-subtle",children:e.map(e=>(0,yt.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2.5",children:[(0,yt.jsx)("span",{className:"w-8 text-[11px] font-medium text-text-primary",children:e.id}),(0,yt.jsx)("span",{className:"flex-1 min-w-0 truncate text-[11px] text-text-secondary",children:e.name}),(0,yt.jsx)("span",{className:"rounded-md bg-background-secondary px-1.5 py-0.5 text-[10px] text-text-secondary ring-1 ring-border-subtle whitespace-nowrap",children:e.type}),(0,yt.jsx)("span",{className:`rounded-full px-2 py-0.5 text-[10px] ring-1 whitespace-nowrap ${e.tone}`,children:e.status}),(0,yt.jsx)("span",{className:`w-20 text-right text-[10px] whitespace-nowrap ${e.deadlineTone}`,children:e.deadline})]},e.id))})]})})},rAe="data_requests",oAe=[{Icon:Xde,title:(0,pt.__)("One Form for Every Request","surecookie"),body:(0,pt.__)("Add the form with a shortcode, or let it appear on your Privacy Policy page. Requests arrive complete, not as vague emails.","surecookie")},{Icon:Jde,title:(0,pt.__)("Every Request Verified by Email","surecookie"),body:(0,pt.__)("Each submission sends a single-use link that expires in 24 hours. You only act on requests the person actually made.","surecookie")},{Icon:Vle,title:(0,pt.__)("A Deadline on Every Request","surecookie"),body:(0,pt.__)("Each verified request gets a due date, 30 days by default, and the list counts down. Overdue rows turn red.","surecookie")},{Icon:eAe,title:(0,pt.__)("One Reminder Email a Day","surecookie"),body:(0,pt.__)("A daily email lists what is due within a week or already overdue. You hear before a deadline passes.","surecookie")},{Icon:pU,title:(0,pt.__)("Reply With the Data Attached","surecookie"),body:(0,pt.__)("One click gathers what WordPress, your plugins, and SureCookie hold for that email, then attaches it to your reply. Nothing to assemble by hand.","surecookie")},{Icon:tAe,title:(0,pt.__)("A Record of What You Did","surecookie"),body:(0,pt.__)("Every step is timestamped: verification, your notes, the reply sent, even an email that failed. You can show what happened.","surecookie")}],iAe=()=>{const e=Kk(rAe),t=ni(`docs_${rAe}`,"docs/handling-data-requests/");return(0,yt.jsxs)("div",{className:"space-y-6",children:[(0,yt.jsx)("section",{className:"bg-background-primary border border-border-subtle rounded-xl shadow-sm p-6 lg:p-8",children:(0,yt.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 items-center",children:[(0,yt.jsxs)("div",{className:"space-y-4",children:[(0,yt.jsxs)("div",{className:"flex items-center gap-1.5 text-brand-primary-600",children:[(0,yt.jsx)(Hk,{className:"w-4 h-4","aria-hidden":"true"}),(0,yt.jsx)(Iw,{size:14,weight:600,className:"text-brand-primary-600",children:(0,pt.__)("Available in SureCookie Pro","surecookie")})]}),(0,yt.jsx)("h1",{className:"m-0 text-2xl lg:text-3xl font-semibold leading-tight text-text-primary",children:(0,pt.__)("You Have 30 Days to Answer a Data Request","surecookie")}),(0,yt.jsx)(Iw,{size:16,weight:400,color:"secondary",lineHeight:26,as:"p",className:"m-0 max-w-xl",children:(0,pt.__)("Under GDPR and CCPA, any visitor can ask for a copy of their personal data or ask you to delete it, and you have a fixed number of days to answer. Handled by hand, that means an email thread, a spreadsheet, and an export you assemble yourself.","surecookie")}),(0,yt.jsxs)("div",{className:"flex flex-wrap items-center gap-3 pt-1",children:[(0,yt.jsx)(Fa,{tag:"a",href:e.href,target:e.target,rel:"_blank"===e.target?"noopener noreferrer":void 0,variant:"primary",size:"md",className:"no-underline",children:e.label}),(0,yt.jsx)(Fa,{tag:"a",href:t,target:"_blank",rel:"noopener noreferrer",variant:"ghost",size:"md",className:"no-underline",icon:(0,yt.jsx)(xce,{className:"w-3 h-3","aria-hidden":"true"}),iconPosition:"right",children:(0,pt.__)("Learn More","surecookie")})]})]}),(0,yt.jsx)(nAe,{})]})}),(0,yt.jsx)("section",{className:"bg-background-primary border border-border-subtle rounded-xl shadow-sm p-5",children:(0,yt.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,yt.jsx)("div",{className:"flex items-center gap-2",children:(0,yt.jsx)(Iw,{size:16,weight:600,color:"primary",children:e.isPricing?(0,pt.__)("Upgrade to Premium:","surecookie"):(0,pt.__)("Finish Setup:","surecookie")})}),(0,yt.jsx)(Iw,{size:14,color:"secondary",as:"p",className:"m-0 basis-full lg:basis-auto lg:flex-1",children:(0,pt.__)("Data Requests is a premium feature. Once Pro is active and licensed, this page becomes the request log itself.","surecookie")}),(0,yt.jsx)(Fa,{tag:"a",href:e.href,target:e.target,rel:"_blank"===e.target?"noopener noreferrer":void 0,variant:"outline",size:"sm",className:"no-underline shrink-0",children:e.label})]})}),(0,yt.jsxs)("section",{className:"bg-background-primary border border-border-subtle rounded-xl shadow-sm p-6 lg:p-8 space-y-6",children:[(0,yt.jsx)("h2",{className:"m-0 text-xl font-semibold text-text-primary",children:(0,pt.__)("How Pro Handles Each Request","surecookie")}),(0,yt.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",children:oAe.map(({Icon:e,title:t,body:n})=>(0,yt.jsxs)("div",{className:"rounded-lg border border-border-subtle bg-background-secondary p-5 space-y-2",children:[(0,yt.jsx)(e,{className:"w-5 h-5 text-brand-primary-600","aria-hidden":"true"}),(0,yt.jsx)(Iw,{size:16,weight:600,color:"primary",as:"h3",className:"m-0",children:t}),(0,yt.jsx)(Iw,{size:14,color:"secondary",lineHeight:22,as:"p",className:"m-0",children:n})]},t))})]})]})},sAe=Boolean(window?.surecookieAdminData?.is_pro_active),aAe=()=>{const e=Yi(),t=Gi(),{getCurrentValue:n,updateSetting:r,isLoading:o}=si(),i=(0,ct.useMemo)(()=>Hb(),[]),s=(0,ct.useMemo)(()=>{const e=(0,ht.applyFilters)("surecookie.admin.settingsRoutes",[]);return Array.isArray(e)?e:[]},[]),a=(0,ct.useMemo)(()=>{const e=(0,ht.applyFilters)("surecookie.admin.cookieManagerRoutes",[]);return Array.isArray(e)?e:[]},[]),l=(0,ct.useMemo)(()=>{const e=(0,ht.applyFilters)("surecookie.admin.complianceRoutes",[]);return Array.isArray(e)?e:[]},[]),c=(0,ct.useMemo)(()=>(0,ht.applyFilters)("surecookie.complianceCheck.content",(0,yt.jsx)(hde,{})),[]),u=(0,ct.useMemo)(()=>(0,ht.applyFilters)("surecookie.dataRequests.content",(0,yt.jsx)(iAe,{})),[]),d="false"!==String(n("preview_enabled")),A=e=>r("preview_enabled",e),h=(0,ct.useRef)(null);(0,ct.useLayoutEffect)(()=>{const e=h.current;if(!e)return;const t=document.getElementById("adminmenuwrap"),n=()=>{const n=window.scrollY,r=e.getBoundingClientRect().top+n,o=t?t.getBoundingClientRect().bottom+n:0,i=Math.max(o,window.innerHeight)-r;e.style.minHeight=`${Math.max(0,Math.round(i))}px`};n();const r=window.ResizeObserver?new window.ResizeObserver(n):null;return r&&t&&r.observe(t),window.addEventListener("resize",n),()=>{r?.disconnect(),window.removeEventListener("resize",n)}},[]);const{activePageConfig:p,activeNavSection:f}=(0,ct.useMemo)(()=>{const e=(e="")=>t.pathname===e||t.pathname.startsWith(`${e}/`)||t.pathname.startsWith(`${e}?`),n=(t=[])=>{for(const r of t){if(Array.isArray(r?.submenu)){const e=n(r.submenu);if(e)return{...r,...e}}if(r?.path&&e(r.path))return r}return null},r=i.find(e=>n(e.links)),o=n(r?.links)||r?.links?.[0]||{};return{activeNavSection:r||i?.[0]||null,activePageConfig:o}},[t.pathname,i]),m=(0,ct.useCallback)((t,n={})=>{const{query:r,hash:o}=n;let i=t;r&&(i+="?"+new URLSearchParams(r).toString()),o&&(i+="#"+o),e(i)},[e]),g=(0,ct.useMemo)(()=>(0,yt.jsxs)(us,{children:[(0,yt.jsx)(ls,{path:"/",index:!0,element:(0,yt.jsx)(as,{to:"/dashboard",replace:!0})}),(0,yt.jsx)(ls,{path:"/dashboard",element:(0,yt.jsx)(vce,{})}),(0,yt.jsx)(ls,{path:"/learn",element:(0,yt.jsx)(pce,{})}),(0,yt.jsxs)(ls,{path:"/settings",children:[(0,yt.jsx)(ls,{index:!0,element:(0,yt.jsx)(as,{to:"/settings/general",replace:!0})}),(0,yt.jsxs)(ls,{path:"general",children:[(0,yt.jsx)(ls,{index:!0,element:(0,yt.jsx)(as,{to:"/settings/general/consent-data",replace:!0})}),(0,yt.jsx)(ls,{path:"consent-data",element:(0,yt.jsx)($k,{children:(0,yt.jsx)(HD,{})})}),(0,yt.jsx)(ls,{path:"preferences",element:(0,yt.jsx)($k,{children:(0,yt.jsx)(Sce,{})})})]}),(0,yt.jsx)(ls,{path:"geo-rules",element:(0,yt.jsx)(as,{to:"/cookie-manager/geo-rules",replace:!0})}),(0,yt.jsxs)(ls,{path:"framework",children:[(0,yt.jsx)(ls,{path:"google-consent-mode",element:(0,yt.jsx)(Fde,{})}),(0,yt.jsx)(ls,{path:"iab-tcf",element:(0,yt.jsx)(A_,{pageTitle:(0,pt.__)("IAB Transparency & Consent Framework","surecookie"),pageDescription:(0,pt.__)("Make your consent banner compliant with IAB TCF 2.3 and integrate with the Global Vendor List.","surecookie"),noticeTitle:(0,pt.__)("Unlock IAB TCF 2.3 Compliance - Coming Soon","surecookie"),noticeDescription:(0,pt.__)("Enable full TCF mode, generate TC strings, and display the IAB vendor list to your visitors.","surecookie"),utmContent:"coming_soon_iab_tcf"})}),(0,yt.jsx)(ls,{path:"additional-consent",element:(0,yt.jsx)(A_,{pageTitle:(0,pt.__)("Google Additional Consent (AC)","surecookie"),pageDescription:(0,pt.__)("Add Google Additional Consent alongside IAB TCF to handle ad-tech vendors not on the IAB Global Vendor List.","surecookie"),noticeTitle:(0,pt.__)("Unlock Google Additional Consent - Coming Soon","surecookie"),noticeDescription:(0,pt.__)("Generate the AC string, mirror the addtl_consent cookie, and display Google's Additional Consent provider list to your visitors - required for full Google Ads / GAM monetization.","surecookie"),utmContent:"coming_soon_additional_consent"})})]}),(0,yt.jsx)(ls,{path:"advanced",children:(0,yt.jsx)(ls,{path:"blocked-content-ui",element:(0,yt.jsx)(Lde,{})})}),(0,yt.jsxs)(ls,{path:"tools",children:[(0,yt.jsx)(ls,{index:!0,element:(0,yt.jsx)(as,{to:"/settings/tools/import-export",replace:!0})}),(0,yt.jsx)(ls,{path:"import-export",element:(0,yt.jsx)(Zde,{})}),(0,yt.jsx)(ls,{path:"mcp",element:(0,yt.jsx)(Kde,{})})]}),(0,yt.jsx)(ls,{path:"mcp",element:(0,yt.jsx)(as,{to:"/settings/tools/mcp",replace:!0})}),s.map(e=>(0,yt.jsx)(ls,{path:e.path,element:e.element},e.path))]}),(0,yt.jsxs)(ls,{path:"/banner",children:[(0,yt.jsx)(ls,{index:!0,element:(0,yt.jsx)(as,{to:"/banner/content",replace:!0})}),(0,yt.jsx)(ls,{path:"content",element:(0,yt.jsx)(BD,{})}),(0,yt.jsx)(ls,{path:"layout",element:(0,yt.jsx)(RD,{})}),(0,yt.jsx)(ls,{path:"visibility",element:(0,yt.jsx)(Hue,{})}),(0,yt.jsx)(ls,{path:"re-consent",element:(0,yt.jsx)(nue,{})}),(0,yt.jsx)(ls,{path:"custom-css",element:(0,yt.jsx)(Rle,{})})]}),(0,yt.jsxs)(ls,{path:"/cookie-manager",children:[(0,yt.jsx)(ls,{index:!0,element:(0,yt.jsx)(as,{to:"/cookie-manager/create",replace:!0})}),(0,yt.jsx)(ls,{path:"create",element:(0,yt.jsx)(Dle,{})}),(0,yt.jsx)(ls,{path:"scan",element:(0,yt.jsx)(Gce,{})}),(0,yt.jsx)(ls,{path:"auto-scan",element:(0,yt.jsx)(kde,{})}),(0,yt.jsx)(ls,{path:"known-services",element:(0,yt.jsx)(Ple,{})}),(0,yt.jsx)(ls,{path:"scripts-and-embeds",element:(0,yt.jsx)(zue,{})}),(0,yt.jsx)(ls,{path:"cookie-policy",element:(0,yt.jsx)(as,{to:"/compliance/cookie-policy",replace:!0})}),!sAe&&(0,yt.jsx)(ls,{path:"geo-rules",element:(0,yt.jsx)(Pde,{})}),!sAe&&(0,yt.jsx)(ls,{path:"consent-sharing",element:(0,yt.jsx)(Mde,{})}),a.map(e=>(0,yt.jsx)(ls,{path:e.path,element:e.element},e.path))]}),(0,yt.jsxs)(ls,{path:"/analytics",children:[(0,yt.jsx)(ls,{index:!0,element:(0,yt.jsx)(as,{to:"/analytics/logs",replace:!0})}),(0,yt.jsx)(ls,{path:"logs",element:(0,yt.jsx)(woe,{})})]}),(0,yt.jsxs)(ls,{path:"/compliance",children:[(0,yt.jsx)(ls,{index:!0,element:(0,yt.jsx)(as,{to:"/compliance/check",replace:!0})}),(0,yt.jsx)(ls,{path:"check",element:(0,yt.jsx)($k,{children:c})}),(0,yt.jsx)(ls,{path:"cookie-policy",element:(0,yt.jsx)($ue,{})}),(0,yt.jsx)(ls,{path:"privacy-policy",element:(0,yt.jsx)($k,{children:(0,yt.jsx)(Ade,{})})}),(0,yt.jsx)(ls,{path:"business-details",element:(0,yt.jsx)($k,{children:(0,yt.jsx)(cde,{})})}),l.map(e=>(0,yt.jsx)(ls,{path:e.path,element:e.element},e.path))]}),(0,yt.jsx)(ls,{path:"/data-requests",element:u}),(0,yt.jsx)(ls,{path:"*",element:(0,yt.jsx)(as,{to:"/dashboard",replace:!0})})]}),[s,a,l,c,u]);return(0,yt.jsxs)(ct.Fragment,{children:[(0,yt.jsx)("div",{className:"surecookie-styles",children:(0,yt.jsxs)("div",{ref:h,className:"bg-background-secondary flex flex-col",children:[(0,yt.jsx)(hue,{previewVisible:d,setPreviewVisible:A,isSettingsLoading:o}),p?.withoutSidebar?(0,yt.jsx)("div",{className:"grow w-full bg-background-secondary p-5",children:(0,yt.jsx)("main",{className:"w-full",children:g})}):(0,yt.jsxs)("div",{className:"grow w-full grid grid-cols-[290px_1fr] grid-rows-[1fr]",children:[(0,yt.jsx)(mb,{navLinks:f?[f]:[],handlePathChange:m,activePath:t.pathname,className:jo("sticky top-[96px] h-[calc(100dvh_-_96px)] max-[782px]:top-[110px] max-[782px]:h-[calc(100dvh_-_110px)]","overflow-y-auto overscroll-contain surecookie-smooth-scrollbar")}),(0,yt.jsx)("div",{className:"bg-background-secondary",children:(0,yt.jsx)("div",{className:"p-8",children:(0,yt.jsx)("main",{className:jo("mx-auto",p?.fullWidth?"max-w-[1200px]":"max-w-[768px]"),children:g})})})]}),(0,yt.jsx)(tm,{className:"z-999999"})]})}),(0,yt.jsx)("div",{id:"surecookie-public-root",className:"surecookie-preview-admin",children:(0,yt.jsx)(jce,{isVisible:d,onClose:()=>A(!1)})})]})},lAe=()=>{const e=Gi();return(0,ct.useEffect)(()=>{window.scrollTo(0,0)},[e.pathname]),null},cAe=()=>{const e=Gi();return(0,ct.useEffect)(()=>{if(!e.pathname.startsWith("/analytics/logs"))return;let t=!1;return Fn()({method:"POST",path:"/surecookie/v1/consent-logs/mark-logs-viewed"}).then(()=>{t||document.querySelectorAll('#toplevel_page_surecookie [data-surecookie-logs-badge="true"], #toplevel_page_surecookie [data-surecookie-logs-dot="true"]').forEach(e=>e.remove())}).catch(()=>{}),()=>{t=!0}},[e.pathname]),null},uAe=()=>{const e=Gi(),t=(0,ct.useMemo)(()=>{const e=new Map;return Hb().forEach(t=>{t?.links?.forEach(n=>{const r=n?.path?.split("/")[1];r&&e.set(r,t.sectionId),Array.isArray(n?.submenu)&&n.submenu.forEach(n=>{const r=n?.path?.split("/")[1];r&&e.set(r,t.sectionId)})})}),e},[]);return(0,ct.useLayoutEffect)(()=>{const n=document.getElementById("toplevel_page_surecookie");if(!n)return;const r=n.querySelectorAll(".wp-submenu a"),o=e.pathname.split("/")[1]||"dashboard",i=t.get(o)||"dashboard",s=n.querySelector(".wp-submenu .current");return s&&s.classList.remove("current"),Array.from(r).forEach(e=>{const n=e.href.split("#")[1]?.split("/")[1],r=n?t.get(n):"dashboard";r&&r===i&&e.parentElement.classList.add("current")}),()=>{Array.from(r).forEach(e=>{e.parentElement.classList.remove("current")})}},[e.pathname,t]),null},dAe=()=>(0,yt.jsx)(yt.Fragment,{children:(0,yt.jsx)(wt,{client:gn,children:(0,yt.jsx)(li,{children:(0,yt.jsxs)(ms,{children:[(0,yt.jsx)(lAe,{}),(0,yt.jsx)(cAe,{}),(0,yt.jsx)(uAe,{}),(0,yt.jsx)(gk,{}),(0,yt.jsx)(aAe,{})]})})})});window&&!window?.toast&&(window.toast=At),window.surecookieAdminExtensions=window.surecookieAdminExtensions||{},window.surecookieAdminExtensions.hooks={...window.surecookieAdminExtensions.hooks||{},useSettings:si},window.surecookieAdminExtensions.updateGlobalAuthState=xx,window.surecookieAdminExtensions.components={...window.surecookieAdminExtensions.components||{},RichTextEditor:kD},document.addEventListener("DOMContentLoaded",function(){const e=document.getElementById("surecookie-admin-root");e&&(0,ct.createRoot)(e).render((0,yt.jsx)(dAe,{}))})},8351(e,t,n){var r;!function(){"use strict";var o,i=1e9,s={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},a=!0,l="[DecimalError] ",c=l+"Invalid argument: ",u=l+"Exponent out of range: ",d=Math.floor,A=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,p=1e7,f=d(1286742750677284.5),m={};function g(e,t){var n,r,o,i,s,l,c,u,d=e.constructor,A=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),a?S(t,A):t;if(c=e.d,u=t.d,s=e.e,o=t.e,c=c.slice(),i=s-o){for(i<0?(r=c,i=-i,l=u.length):(r=u,o=s,l=c.length),i>(l=(s=Math.ceil(A/7))>l?s+1:l+1)&&(i=l,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((l=c.length)-(i=u.length)<0&&(i=l,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/p|0,c[i]%=p;for(n&&(c.unshift(n),++o),l=c.length;0==c[--l];)c.pop();return t.d=c,t.e=o,a?S(t,A):t}function y(e,t,n){if(e!==~~e||e<t||e>n)throw Error(c+e)}function v(e){var t,n,r,o=e.length-1,i="",s=e[0];if(o>0){for(i+=s,t=1;t<o;t++)(n=7-(r=e[t]+"").length)&&(i+=_(n)),i+=r;(n=7-(r=(s=e[t])+"").length)&&(i+=_(n))}else if(0===s)return"0";for(;s%10==0;)s/=10;return i+s}m.absoluteValue=m.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},m.comparedTo=m.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},m.decimalPlaces=m.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},m.dividedBy=m.div=function(e){return b(this,new this.constructor(e))},m.dividedToIntegerBy=m.idiv=function(e){var t=this.constructor;return S(b(this,new t(e),0,1),t.precision)},m.equals=m.eq=function(e){return!this.cmp(e)},m.exponent=function(){return x(this)},m.greaterThan=m.gt=function(e){return this.cmp(e)>0},m.greaterThanOrEqualTo=m.gte=function(e){return this.cmp(e)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return 0===this.s},m.lessThan=m.lt=function(e){return this.cmp(e)<0},m.lessThanOrEqualTo=m.lte=function(e){return this.cmp(e)<1},m.logarithm=m.log=function(e){var t,n=this,r=n.constructor,i=r.precision,s=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(o))throw Error(l+"NaN");if(n.s<1)throw Error(l+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(a=!1,t=b(C(n,s),C(e,s),s),a=!0,S(t,i))},m.minus=m.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?j(t,e):g(t,(e.s=-e.s,e))},m.modulo=m.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(l+"NaN");return n.s?(a=!1,t=b(n,e,0,1).times(e),a=!0,n.minus(t)):S(new r(n),o)},m.naturalExponential=m.exp=function(){return w(this)},m.naturalLogarithm=m.ln=function(){return C(this)},m.negated=m.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},m.plus=m.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?g(t,e):j(t,(e.s=-e.s,e))},m.precision=m.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(c+e);if(t=x(o)+1,n=7*(r=o.d.length-1)+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},m.squareRoot=m.sqrt=function(){var e,t,n,r,o,i,s,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(l+"NaN")}for(e=x(c),a=!1,0==(o=Math.sqrt(+c))||o==1/0?(((t=v(c.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=d((e+1)/2)-(e<0||e%2),r=new u(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new u(o.toString()),o=s=(n=u.precision)+3;;)if(r=(i=r).plus(b(c,i,s+2)).times(.5),v(i.d).slice(0,s)===(t=v(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),o==s&&"4999"==t){if(S(i,n+1,0),i.times(i).eq(c)){r=i;break}}else if("9999"!=t)break;s+=4}return a=!0,S(r,n)},m.times=m.mul=function(e){var t,n,r,o,i,s,l,c,u,d=this,A=d.constructor,h=d.d,f=(e=new A(e)).d;if(!d.s||!e.s)return new A(0);for(e.s*=d.s,n=d.e+e.e,(c=h.length)<(u=f.length)&&(i=h,h=f,f=i,s=c,c=u,u=s),i=[],r=s=c+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)l=i[o]+f[r]*h[o-r-1]+t,i[o--]=l%p|0,t=l/p|0;i[o]=(i[o]+t)%p|0}for(;!i[--s];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,a?S(e,A.precision):e},m.toDecimalPlaces=m.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(y(e,0,i),void 0===t?t=r.rounding:y(t,0,8),S(n,e+x(n)+1,t))},m.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=E(r,!0):(y(e,0,i),void 0===t?t=o.rounding:y(t,0,8),n=E(r=S(new o(r),e+1,t),!0,e+1)),n},m.toFixed=function(e,t){var n,r,o=this,s=o.constructor;return void 0===e?E(o):(y(e,0,i),void 0===t?t=s.rounding:y(t,0,8),n=E((r=S(new s(o),e+x(o)+1,t)).abs(),!1,e+x(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},m.toInteger=m.toint=function(){var e=this,t=e.constructor;return S(new t(e),x(e)+1,t.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(e){var t,n,r,i,s,c,u=this,A=u.constructor,h=+(e=new A(e));if(!e.s)return new A(o);if(!(u=new A(u)).s){if(e.s<1)throw Error(l+"Infinity");return u}if(u.eq(o))return u;if(r=A.precision,e.eq(o))return S(u,r);if(c=(t=e.e)>=(n=e.d.length-1),s=u.s,c){if((n=h<0?-h:h)<=9007199254740991){for(i=new A(o),t=Math.ceil(r/7+4),a=!1;n%2&&N((i=i.times(u)).d,t),0!==(n=d(n/2));)N((u=u.times(u)).d,t);return a=!0,e.s<0?new A(o).div(i):S(i,r)}}else if(s<0)throw Error(l+"NaN");return s=s<0&&1&e.d[Math.max(t,n)]?-1:1,u.s=1,a=!1,i=e.times(C(u,r+12)),a=!0,(i=w(i)).s=s,i},m.toPrecision=function(e,t){var n,r,o=this,s=o.constructor;return void 0===e?r=E(o,(n=x(o))<=s.toExpNeg||n>=s.toExpPos):(y(e,1,i),void 0===t?t=s.rounding:y(t,0,8),r=E(o=S(new s(o),e,t),e<=(n=x(o))||n<=s.toExpNeg,e)),r},m.toSignificantDigits=m.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(y(e,1,i),void 0===t?t=n.rounding:y(t,0,8)),S(new n(this),e,t)},m.toString=m.valueOf=m.val=m.toJSON=function(){var e=this,t=x(e),n=e.constructor;return E(e,t<=n.toExpNeg||t>=n.toExpPos)};var b=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%p|0,r=n/p|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*p+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,s){var a,c,u,d,A,h,f,m,g,y,v,b,w,k,_,C,B,j,E=r.constructor,N=r.s==o.s?1:-1,I=r.d,F=o.d;if(!r.s)return new E(r);if(!o.s)throw Error(l+"Division by zero");for(c=r.e-o.e,B=F.length,_=I.length,m=(f=new E(N)).d=[],u=0;F[u]==(I[u]||0);)++u;if(F[u]>(I[u]||0)&&--c,(b=null==i?i=E.precision:s?i+(x(r)-x(o))+1:i)<0)return new E(0);if(b=b/7+2|0,u=0,1==B)for(d=0,F=F[0],b++;(u<_||d)&&b--;u++)w=d*p+(I[u]||0),m[u]=w/F|0,d=w%F|0;else{for((d=p/(F[0]+1)|0)>1&&(F=e(F,d),I=e(I,d),B=F.length,_=I.length),k=B,y=(g=I.slice(0,B)).length;y<B;)g[y++]=0;(j=F.slice()).unshift(0),C=F[0],F[1]>=p/2&&++C;do{d=0,(a=t(F,g,B,y))<0?(v=g[0],B!=y&&(v=v*p+(g[1]||0)),(d=v/C|0)>1?(d>=p&&(d=p-1),1==(a=t(A=e(F,d),g,h=A.length,y=g.length))&&(d--,n(A,B<h?j:F,h))):(0==d&&(a=d=1),A=F.slice()),(h=A.length)<y&&A.unshift(0),n(g,A,y),-1==a&&(a=t(F,g,B,y=g.length))<1&&(d++,n(g,B<y?j:F,y)),y=g.length):0===a&&(d++,g=[0]),m[u++]=d,a&&g[0]?g[y++]=I[k]||0:(g=[I[k]],y=1)}while((k++<_||void 0!==g[0])&&b--)}return m[0]||m.shift(),f.e=c,S(f,s?i+x(f)+1:i)}}();function w(e,t){var n,r,i,s,l,c=0,d=0,h=e.constructor,p=h.precision;if(x(e)>16)throw Error(u+x(e));if(!e.s)return new h(o);for(null==t?(a=!1,l=p):l=t,s=new h(.03125);e.abs().gte(.1);)e=e.times(s),d+=5;for(l+=Math.log(A(2,d))/Math.LN10*2+5|0,n=r=i=new h(o),h.precision=l;;){if(r=S(r.times(e),l),n=n.times(++c),v((s=i.plus(b(r,n,l))).d).slice(0,l)===v(i.d).slice(0,l)){for(;d--;)i=S(i.times(i),l);return h.precision=p,null==t?(a=!0,S(i,p)):i}i=s}}function x(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function k(e,t,n){if(t>e.LN10.sd())throw a=!0,n&&(e.precision=n),Error(l+"LN10 precision limit exceeded");return S(new e(e.LN10),t)}function _(e){for(var t="";e--;)t+="0";return t}function C(e,t){var n,r,i,s,c,u,d,A,h,p=1,f=e,m=f.d,g=f.constructor,y=g.precision;if(f.s<1)throw Error(l+(f.s?"NaN":"-Infinity"));if(f.eq(o))return new g(0);if(null==t?(a=!1,A=y):A=t,f.eq(10))return null==t&&(a=!0),k(g,A);if(A+=10,g.precision=A,r=(n=v(m)).charAt(0),s=x(f),!(Math.abs(s)<15e14))return d=k(g,A+2,y).times(s+""),f=C(new g(r+"."+n.slice(1)),A-10).plus(d),g.precision=y,null==t?(a=!0,S(f,y)):f;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=v((f=f.times(e)).d)).charAt(0),p++;for(s=x(f),r>1?(f=new g("0."+n),s++):f=new g(r+"."+n.slice(1)),u=c=f=b(f.minus(o),f.plus(o),A),h=S(f.times(f),A),i=3;;){if(c=S(c.times(h),A),v((d=u.plus(b(c,new g(i),A))).d).slice(0,A)===v(u.d).slice(0,A))return u=u.times(2),0!==s&&(u=u.plus(k(g,A+2,y).times(s+""))),u=b(u,new g(p),A),g.precision=y,null==t?(a=!0,S(u,y)):u;u=d,i+=2}}function B(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=d(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=7;r<o;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),a&&(e.e>f||e.e<-f))throw Error(u+n)}else e.s=0,e.e=0,e.d=[0];return e}function S(e,t,n){var r,o,i,s,l,c,h,m,g=e.d;for(s=1,i=g[0];i>=10;i/=10)s++;if((r=t-s)<0)r+=7,o=t,h=g[m=0];else{if((m=Math.ceil((r+1)/7))>=(i=g.length))return e;for(h=i=g[m],s=1;i>=10;i/=10)s++;o=(r%=7)-7+s}if(void 0!==n&&(l=h/(i=A(10,s-o-1))%10|0,c=t<0||void 0!==g[m+1]||h%i,c=n<4?(l||c)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||c||6==n&&(r>0?o>0?h/A(10,s-o):0:g[m-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return c?(i=x(e),g.length=1,t=t-i-1,g[0]=A(10,(7-t%7)%7),e.e=d(-t/7)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(0==r?(g.length=m,i=1,m--):(g.length=m+1,i=A(10,7-r),g[m]=o>0?(h/A(10,s-o)%A(10,o)|0)*i:0),c)for(;;){if(0==m){(g[0]+=i)==p&&(g[0]=1,++e.e);break}if(g[m]+=i,g[m]!=p)break;g[m--]=0,i=1}for(r=g.length;0===g[--r];)g.pop();if(a&&(e.e>f||e.e<-f))throw Error(u+x(e));return e}function j(e,t){var n,r,o,i,s,l,c,u,d,A,h=e.constructor,f=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),a?S(t,f):t;if(c=e.d,A=t.d,r=t.e,u=e.e,c=c.slice(),s=u-r){for((d=s<0)?(n=c,s=-s,l=A.length):(n=A,r=u,l=c.length),s>(o=Math.max(Math.ceil(f/7),l)+2)&&(s=o,n.length=1),n.reverse(),o=s;o--;)n.push(0);n.reverse()}else{for((d=(o=c.length)<(l=A.length))&&(l=o),o=0;o<l;o++)if(c[o]!=A[o]){d=c[o]<A[o];break}s=0}for(d&&(n=c,c=A,A=n,t.s=-t.s),l=c.length,o=A.length-l;o>0;--o)c[l++]=0;for(o=A.length;o>s;){if(c[--o]<A[o]){for(i=o;i&&0===c[--i];)c[i]=p-1;--c[i],c[o]+=p}c[o]-=A[o]}for(;0===c[--l];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,a?S(t,f):t):new h(0)}function E(e,t,n){var r,o=x(e),i=v(e.d),s=i.length;return t?(n&&(r=n-s)>0?i=i.charAt(0)+"."+i.slice(1)+_(r):s>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+_(-o-1)+i,n&&(r=n-s)>0&&(i+=_(r))):o>=s?(i+=_(o+1-s),n&&(r=n-o-1)>0&&(i=i+"."+_(r))):((r=o+1)<s&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-s)>0&&(o+1===s&&(i+="."),i+=_(r))),e.s<0?"-"+i:i}function N(e,t){if(e.length>t)return e.length=t,!0}function I(e){if(!e||"object"!=typeof e)throw Error(l+"Object expected");var t,n,r,o=["precision",1,i,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(d(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(c+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(c+n+": "+r);this[n]=new this(r)}return this}(s=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(c+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):B(t,e.toString())}if("string"!=typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!h.test(e))throw Error(c+e);B(t,e)}if(i.prototype=m,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=I,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}(s)).default=s.Decimal=s,o=new s(1),void 0===(r=function(){return s}.call(t,n,t,e))||(e.exports=r)}()},354(e){e.exports=function(){"use strict";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};function r(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})}function o(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function i(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||t)}for(var s=function(){function e(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}return e.prototype.add=function(t,n,r,o){return new e(this.left+t,this.top+n,this.width+r,this.height+o)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e.fromDOMRectList=function(t,n){var r=Array.from(n).find(function(e){return 0!==e.width});return r?new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),a=function(e,t){return s.fromClientRect(e,t.getBoundingClientRect())},l=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t},c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],o=-1,i="";++o<n;){var s=e[o];s<=65535?r.push(s):(s-=65536,r.push(55296+(s>>10),s%1024+56320)),(o+1===n||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d="undefined"==typeof Uint8Array?[]:new Uint8Array(256),A=0;A<64;A++)d[u.charCodeAt(A)]=A;for(var h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="undefined"==typeof Uint8Array?[]:new Uint8Array(256),f=0;f<64;f++)p[h.charCodeAt(f)]=f;for(var m=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},g=function(){function e(e,t,n,r,o,i){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=o,this.data=i}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v="undefined"==typeof Uint8Array?[]:new Uint8Array(256),b=0;b<64;b++)v[y.charCodeAt(b)]=b;var w=10,x=13,k=15,_=17,C=18,B=19,S=20,j=21,E=22,N=24,I=25,F=26,T=27,L=28,P=30,M=32,O=33,D=34,U=35,R=37,z=38,Q=39,H=40,q=42,V=[9001,65288],K="×",W="÷",G=function(e){var t,n,r,o=function(e){var t,n,r,o,i,s=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),u=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<a;t+=4)n=p[e.charCodeAt(t)],r=p[e.charCodeAt(t+1)],o=p[e.charCodeAt(t+2)],i=p[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|o>>2,u[l++]=(3&o)<<6|63&i;return c}(e),i=Array.isArray(o)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n}(o):new Uint32Array(o),s=Array.isArray(o)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n}(o):new Uint16Array(o),a=m(s,12,i[4]/2),l=2===i[5]?m(s,(24+i[4])/2):(t=i,n=Math.ceil((24+i[4])/4),t.slice?t.slice(n,r):new Uint32Array(Array.prototype.slice.call(t,n,r)));return new g(i[0],i[1],i[2],i[3],a,l)}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),$=[P,36],Y=[1,2,3,5],Z=[w,8],X=[T,F],J=Y.concat(Z),ee=[z,Q,H,D,U],te=[k,x],ne=function(e,t,n,r){var o=r[n];if(Array.isArray(e)?-1!==e.indexOf(o):e===o)for(var i=n;i<=r.length;){if((l=r[++i])===t)return!0;if(l!==w)break}if(o===w)for(i=n;i>0;){var s=r[--i];if(Array.isArray(e)?-1!==e.indexOf(s):e===s)for(var a=n;a<=r.length;){var l;if((l=r[++a])===t)return!0;if(l!==w)break}if(s!==w)break}return!1},re=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r!==w)return r;n--}return 0},oe=function(e,t,n,r,o){if(0===n[r])return K;var i=r-1;if(Array.isArray(o)&&!0===o[i])return K;var s=i-1,a=i+1,l=t[i],c=s>=0?t[s]:0,u=t[a];if(2===l&&3===u)return K;if(-1!==Y.indexOf(l))return"!";if(-1!==Y.indexOf(u))return K;if(-1!==Z.indexOf(u))return K;if(8===re(i,t))return W;if(11===G.get(e[i]))return K;if((l===M||l===O)&&11===G.get(e[a]))return K;if(7===l||7===u)return K;if(9===l)return K;if(-1===[w,x,k].indexOf(l)&&9===u)return K;if(-1!==[_,C,B,N,L].indexOf(u))return K;if(re(i,t)===E)return K;if(ne(23,E,i,t))return K;if(ne([_,C],j,i,t))return K;if(ne(12,12,i,t))return K;if(l===w)return W;if(23===l||23===u)return K;if(16===u||16===l)return W;if(-1!==[x,k,j].indexOf(u)||14===l)return K;if(36===c&&-1!==te.indexOf(l))return K;if(l===L&&36===u)return K;if(u===S)return K;if(-1!==$.indexOf(u)&&l===I||-1!==$.indexOf(l)&&u===I)return K;if(l===T&&-1!==[R,M,O].indexOf(u)||-1!==[R,M,O].indexOf(l)&&u===F)return K;if(-1!==$.indexOf(l)&&-1!==X.indexOf(u)||-1!==X.indexOf(l)&&-1!==$.indexOf(u))return K;if(-1!==[T,F].indexOf(l)&&(u===I||-1!==[E,k].indexOf(u)&&t[a+1]===I)||-1!==[E,k].indexOf(l)&&u===I||l===I&&-1!==[I,L,N].indexOf(u))return K;if(-1!==[I,L,N,_,C].indexOf(u))for(var d=i;d>=0;){if((A=t[d])===I)return K;if(-1===[L,N].indexOf(A))break;d--}if(-1!==[T,F].indexOf(u))for(d=-1!==[_,C].indexOf(l)?s:i;d>=0;){var A;if((A=t[d])===I)return K;if(-1===[L,N].indexOf(A))break;d--}if(z===l&&-1!==[z,Q,D,U].indexOf(u)||-1!==[Q,D].indexOf(l)&&-1!==[Q,H].indexOf(u)||-1!==[H,U].indexOf(l)&&u===H)return K;if(-1!==ee.indexOf(l)&&-1!==[S,F].indexOf(u)||-1!==ee.indexOf(u)&&l===T)return K;if(-1!==$.indexOf(l)&&-1!==$.indexOf(u))return K;if(l===N&&-1!==$.indexOf(u))return K;if(-1!==$.concat(I).indexOf(l)&&u===E&&-1===V.indexOf(e[a])||-1!==$.concat(I).indexOf(u)&&l===C)return K;if(41===l&&41===u){for(var h=n[i],p=1;h>0&&41===t[--h];)p++;if(p%2!=0)return K}return l===M&&u===O?K:W},ie=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=function(e,t){void 0===t&&(t="strict");var n=[],r=[],o=[];return e.forEach(function(e,i){var s=G.get(e);if(s>50?(o.push(!0),s-=50):o.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(i),n.push(16);if(4===s||11===s){if(0===i)return r.push(i),n.push(P);var a=n[i-1];return-1===J.indexOf(a)?(r.push(r[i-1]),n.push(a)):(r.push(i),n.push(P))}return r.push(i),31===s?n.push("strict"===t?j:R):s===q||29===s?n.push(P):43===s?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(R):n.push(P):void n.push(s)}),[r,n,o]}(e,t.lineBreak),r=n[0],o=n[1],i=n[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(o=o.map(function(e){return-1!==[I,P,q].indexOf(e)?R:e}));var s="keep-all"===t.wordBreak?i.map(function(t,n){return t&&e[n]>=19968&&e[n]<=40959}):void 0;return[r,o,s]},se=function(){function e(e,t,n,r){this.codePoints=e,this.required="!"===t,this.start=n,this.end=r}return e.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),ae=45,le=43,ce=-1,ue=function(e){return e>=48&&e<=57},de=function(e){return ue(e)||e>=65&&e<=70||e>=97&&e<=102},Ae=function(e){return 10===e||9===e||32===e},he=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},pe=function(e){return he(e)||ue(e)||e===ae},fe=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},me=function(e,t){return 92===e&&10!==t},ge=function(e,t,n){return e===ae?he(t)||me(t,n):!!he(e)||!(92!==e||!me(e,t))},ye=function(e,t,n){return e===le||e===ae?!!ue(t)||46===t&&ue(n):ue(46===e?t:e)},ve=function(e){var t=0,n=1;e[t]!==le&&e[t]!==ae||(e[t]===ae&&(n=-1),t++);for(var r=[];ue(e[t]);)r.push(e[t++]);var o=r.length?parseInt(c.apply(void 0,r),10):0;46===e[t]&&t++;for(var i=[];ue(e[t]);)i.push(e[t++]);var s=i.length,a=s?parseInt(c.apply(void 0,i),10):0;69!==e[t]&&101!==e[t]||t++;var l=1;e[t]!==le&&e[t]!==ae||(e[t]===ae&&(l=-1),t++);for(var u=[];ue(e[t]);)u.push(e[t++]);var d=u.length?parseInt(c.apply(void 0,u),10):0;return n*(o+a*Math.pow(10,-s))*Math.pow(10,l*d)},be={type:2},we={type:3},xe={type:4},ke={type:13},_e={type:8},Ce={type:21},Be={type:9},Se={type:10},je={type:11},Ee={type:12},Ne={type:14},Ie={type:23},Fe={type:1},Te={type:25},Le={type:24},Pe={type:26},Me={type:27},Oe={type:28},De={type:29},Ue={type:31},Re={type:32},ze=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(l(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Re;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(pe(t)||me(n,r)){var o=ge(t,n,r)?2:1;return{type:5,value:this.consumeName(),flags:o}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ke;break;case 39:return this.consumeStringToken(39);case 40:return be;case 41:return we;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ne;break;case le:if(ye(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return xe;case ae:var i=e,s=this.peekCodePoint(0),a=this.peekCodePoint(1);if(ye(i,s,a))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(ge(i,s,a))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(s===ae&&62===a)return this.consumeCodePoint(),this.consumeCodePoint(),Le;break;case 46:if(ye(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(42===l&&47===(l=this.consumeCodePoint()))return this.consumeToken();if(l===ce)return this.consumeToken()}break;case 58:return Pe;case 59:return Me;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===ae&&this.peekCodePoint(2)===ae)return this.consumeCodePoint(),this.consumeCodePoint(),Te;break;case 64:var u=this.peekCodePoint(0),d=this.peekCodePoint(1),A=this.peekCodePoint(2);if(ge(u,d,A))return{type:7,value:this.consumeName()};break;case 91:return Oe;case 92:if(me(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return De;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),_e;break;case 123:return je;case 125:return Ee;case 117:case 85:var h=this.peekCodePoint(0),p=this.peekCodePoint(1);return h!==le||!de(p)&&63!==p||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Be;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),Ce;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Se;break;case ce:return Re}return Ae(e)?(this.consumeWhiteSpace(),Ue):ue(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):he(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:c(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();de(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(c.apply(void 0,e.map(function(e){return 63===e?48:e})),16),end:parseInt(c.apply(void 0,e.map(function(e){return 63===e?70:e})),16)};var r=parseInt(c.apply(void 0,e),16);if(this.peekCodePoint(0)===ae&&de(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var o=[];de(t)&&o.length<6;)o.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(c.apply(void 0,o),16)}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ce)return{type:22,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ce||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Ie)}for(;;){var r=this.consumeCodePoint();if(r===ce||41===r)return{type:22,value:c.apply(void 0,e)};if(Ae(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ce||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Ie);if(34===r||39===r||40===r||fe(r))return this.consumeBadUrlRemnants(),Ie;if(92===r){if(!me(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Ie;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;Ae(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||e===ce)return;me(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var n=Math.min(5e4,e);t+=c.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var r=this._value[n];if(r===ce||void 0===r||r===e)return{type:0,value:t+=this.consumeStringSlice(n)};if(10===r)return this._value.splice(0,n),Fe;if(92===r){var o=this._value[n+1];o!==ce&&void 0!==o&&(10===o?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):me(r,o)&&(t+=this.consumeStringSlice(n),t+=c(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=4,n=this.peekCodePoint(0);for(n!==le&&n!==ae||e.push(this.consumeCodePoint());ue(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===n&&ue(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ue(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var o=this.peekCodePoint(2);if((69===n||101===n)&&((r===le||r===ae)&&ue(o)||ue(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ue(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[ve(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),o=this.peekCodePoint(1),i=this.peekCodePoint(2);return ge(r,o,i)?{type:15,number:t,flags:n,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(de(e)){for(var t=c(e);de(this.peekCodePoint(0))&&t.length<6;)t+=c(this.consumeCodePoint());Ae(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||function(e){return e>=55296&&e<=57343}(n)||n>1114111?65533:n}return e===ce?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(pe(t))e+=c(t);else{if(!me(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=c(this.consumeEscapedCodePoint())}}},e}(),Qe=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new ze;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(32===n.type||Ze(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?Re:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),He=function(e){return 15===e.type},qe=function(e){return 17===e.type},Ve=function(e){return 20===e.type},Ke=function(e){return 0===e.type},We=function(e,t){return Ve(e)&&e.value===t},Ge=function(e){return 31!==e.type},$e=function(e){return 31!==e.type&&4!==e.type},Ye=function(e){var t=[],n=[];return e.forEach(function(e){if(4===e.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}31!==e.type&&n.push(e)}),n.length&&t.push(n),t},Ze=function(e,t){return 11===t&&12===e.type||28===t&&29===e.type||2===t&&3===e.type},Xe=function(e){return 17===e.type||15===e.type},Je=function(e){return 16===e.type||Xe(e)},et=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},tt={type:17,number:0,flags:4},nt={type:16,number:50,flags:4},rt={type:16,number:100,flags:4},ot=function(e,t,n){var r=e[0],o=e[1];return[it(r,t),it(void 0!==o?o:r,n)]},it=function(e,t){if(16===e.type)return e.number/100*t;if(He(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},st="grad",at="turn",lt=function(e,t){if(15===t.type)switch(t.unit){case"deg":return Math.PI*t.number/180;case st:return Math.PI/200*t.number;case"rad":return t.number;case at:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")},ct=function(e){return 15===e.type&&("deg"===e.unit||e.unit===st||"rad"===e.unit||e.unit===at)},ut=function(e){switch(e.filter(Ve).map(function(e){return e.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[tt,tt];case"to top":case"bottom":return dt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[tt,rt];case"to right":case"left":return dt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[rt,rt];case"to bottom":case"top":return dt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[rt,tt];case"to left":case"right":return dt(270)}return 0},dt=function(e){return Math.PI*e/180},At=function(e,t){if(18===t.type){var n=bt[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(5===t.type){if(3===t.value.length){var r=t.value.substring(0,1),o=t.value.substring(1,2),i=t.value.substring(2,3);return ft(parseInt(r+r,16),parseInt(o+o,16),parseInt(i+i,16),1)}if(4===t.value.length){r=t.value.substring(0,1),o=t.value.substring(1,2),i=t.value.substring(2,3);var s=t.value.substring(3,4);return ft(parseInt(r+r,16),parseInt(o+o,16),parseInt(i+i,16),parseInt(s+s,16)/255)}if(6===t.value.length)return r=t.value.substring(0,2),o=t.value.substring(2,4),i=t.value.substring(4,6),ft(parseInt(r,16),parseInt(o,16),parseInt(i,16),1);if(8===t.value.length)return r=t.value.substring(0,2),o=t.value.substring(2,4),i=t.value.substring(4,6),s=t.value.substring(6,8),ft(parseInt(r,16),parseInt(o,16),parseInt(i,16),parseInt(s,16)/255)}if(20===t.type){var a=xt[t.value.toUpperCase()];if(void 0!==a)return a}return xt.TRANSPARENT},ht=function(e){return!(255&e)},pt=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,o=255&e>>24;return t<255?"rgba("+o+","+r+","+n+","+t/255+")":"rgb("+o+","+r+","+n+")"},ft=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r))>>>0},mt=function(e,t){if(17===e.type)return e.number;if(16===e.type){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},gt=function(e,t){var n=t.filter($e);if(3===n.length){var r=n.map(mt),o=r[0],i=r[1],s=r[2];return ft(o,i,s,1)}if(4===n.length){var a=n.map(mt),l=(o=a[0],i=a[1],s=a[2],a[3]);return ft(o,i,s,l)}return 0};function yt(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var vt=function(e,t){var n=t.filter($e),r=n[0],o=n[1],i=n[2],s=n[3],a=(17===r.type?dt(r.number):lt(e,r))/(2*Math.PI),l=Je(o)?o.number/100:0,c=Je(i)?i.number/100:0,u=void 0!==s&&Je(s)?it(s,1):1;if(0===l)return ft(255*c,255*c,255*c,1);var d=c<=.5?c*(l+1):c+l-c*l,A=2*c-d,h=yt(A,d,a+1/3),p=yt(A,d,a),f=yt(A,d,a-1/3);return ft(255*h,255*p,255*f,u)},bt={hsl:vt,hsla:vt,rgb:gt,rgba:gt},wt=function(e,t){return At(e,Qe.create(t).parseComponentValue())},xt={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},kt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(Ve(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},_t={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ct=function(e,t){var n=At(e,t[0]),r=t[1];return r&&Je(r)?{color:n,stop:r}:{color:n,stop:null}},Bt=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=tt),null===r.stop&&(r.stop=rt);for(var o=[],i=0,s=0;s<e.length;s++){var a=e[s].stop;if(null!==a){var l=it(a,t);l>i?o.push(l):o.push(i),i=l}else o.push(null)}var c=null;for(s=0;s<o.length;s++){var u=o[s];if(null===u)null===c&&(c=s);else if(null!==c){for(var d=s-c,A=(u-o[c-1])/(d+1),h=1;h<=d;h++)o[c+h-1]=A*h;c=null}}return e.map(function(e,n){return{color:e.color,stop:Math.max(Math.min(1,o[n]/t),0)}})},St=function(e,t,n){var r="number"==typeof e?e:function(e,t,n){var r=t/2,o=n/2,i=it(e[0],t)-r,s=o-it(e[1],n);return(Math.atan2(s,i)+2*Math.PI)%(2*Math.PI)}(e,t,n),o=Math.abs(t*Math.sin(r))+Math.abs(n*Math.cos(r)),i=t/2,s=n/2,a=o/2,l=Math.sin(r-Math.PI/2)*a,c=Math.cos(r-Math.PI/2)*a;return[o,i-c,i+c,s-l,s+l]},jt=function(e,t){return Math.sqrt(e*e+t*t)},Et=function(e,t,n,r,o){return[[0,0],[0,t],[e,0],[e,t]].reduce(function(e,t){var i=t[0],s=t[1],a=jt(n-i,r-s);return(o?a<e.optimumDistance:a>e.optimumDistance)?{optimumCorner:t,optimumDistance:a}:e},{optimumDistance:o?1/0:-1/0,optimumCorner:null}).optimumCorner},Nt=function(e,t){var n=dt(180),r=[];return Ye(t).forEach(function(t,o){if(0===o){var i=t[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(n=ut(t));if(ct(i))return void(n=(lt(e,i)+dt(270))%dt(360))}var s=Ct(e,t);r.push(s)}),{angle:n,stops:r,type:1}},It="closest-side",Ft="farthest-side",Tt="closest-corner",Lt="farthest-corner",Pt="circle",Mt="ellipse",Ot="cover",Dt="contain",Ut=function(e,t){var n=0,r=3,o=[],i=[];return Ye(t).forEach(function(t,s){var a=!0;if(0===s?a=t.reduce(function(e,t){if(Ve(t))switch(t.value){case"center":return i.push(nt),!1;case"top":case"left":return i.push(tt),!1;case"right":case"bottom":return i.push(rt),!1}else if(Je(t)||Xe(t))return i.push(t),!1;return e},a):1===s&&(a=t.reduce(function(e,t){if(Ve(t))switch(t.value){case Pt:return n=0,!1;case Mt:return n=1,!1;case Dt:case It:return r=0,!1;case Ft:return r=1,!1;case Tt:return r=2,!1;case Ot:case Lt:return r=3,!1}else if(Xe(t)||Je(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},a)),a){var l=Ct(e,t);o.push(l)}}),{size:r,shape:n,stops:o,position:i,type:2}},Rt=function(e,t){if(22===t.type){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(18===t.type){var r=Qt[t.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type "+t.type)};var zt,Qt={"linear-gradient":function(e,t){var n=dt(180),r=[];return Ye(t).forEach(function(t,o){if(0===o){var i=t[0];if(20===i.type&&"to"===i.value)return void(n=ut(t));if(ct(i))return void(n=lt(e,i))}var s=Ct(e,t);r.push(s)}),{angle:n,stops:r,type:1}},"-moz-linear-gradient":Nt,"-ms-linear-gradient":Nt,"-o-linear-gradient":Nt,"-webkit-linear-gradient":Nt,"radial-gradient":function(e,t){var n=0,r=3,o=[],i=[];return Ye(t).forEach(function(t,s){var a=!0;if(0===s){var l=!1;a=t.reduce(function(e,t){if(l)if(Ve(t))switch(t.value){case"center":return i.push(nt),e;case"top":case"left":return i.push(tt),e;case"right":case"bottom":return i.push(rt),e}else(Je(t)||Xe(t))&&i.push(t);else if(Ve(t))switch(t.value){case Pt:return n=0,!1;case Mt:return n=1,!1;case"at":return l=!0,!1;case It:return r=0,!1;case Ot:case Ft:return r=1,!1;case Dt:case Tt:return r=2,!1;case Lt:return r=3,!1}else if(Xe(t)||Je(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},a)}if(a){var c=Ct(e,t);o.push(c)}}),{size:r,shape:n,stops:o,position:i,type:2}},"-moz-radial-gradient":Ut,"-ms-radial-gradient":Ut,"-o-radial-gradient":Ut,"-webkit-radial-gradient":Ut,"-webkit-gradient":function(e,t){var n=dt(180),r=[],o=1;return Ye(t).forEach(function(t,n){var i=t[0];if(0===n){if(Ve(i)&&"linear"===i.value)return void(o=1);if(Ve(i)&&"radial"===i.value)return void(o=2)}if(18===i.type)if("from"===i.name){var s=At(e,i.values[0]);r.push({stop:tt,color:s})}else if("to"===i.name)s=At(e,i.values[0]),r.push({stop:rt,color:s});else if("color-stop"===i.name){var a=i.values.filter($e);if(2===a.length){s=At(e,a[1]);var l=a[0];qe(l)&&r.push({stop:{type:16,number:100*l.number,flags:l.flags},color:s})}}}),1===o?{angle:(n+dt(180))%dt(360),stops:r,type:o}:{size:3,shape:0,stops:r,position:[],type:o}}},Ht={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t.filter(function(e){return $e(e)&&function(e){return!(20===e.type&&"none"===e.value||18===e.type&&!Qt[e.name])}(e)}).map(function(t){return Rt(e,t)})}},qt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(Ve(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Vt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Ye(t).map(function(e){return e.filter(Je)}).map(et)}},Kt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Ye(t).map(function(e){return e.filter(Ve).map(function(e){return e.value}).join(" ")}).map(Wt)}},Wt=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(zt||(zt={}));var Gt,$t={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Ye(t).map(function(e){return e.filter(Yt)})}},Yt=function(e){return Ve(e)||Je(e)},Zt=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Xt=Zt("top"),Jt=Zt("right"),en=Zt("bottom"),tn=Zt("left"),nn=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return et(t.filter(Je))}}},rn=nn("top-left"),on=nn("top-right"),sn=nn("bottom-right"),an=nn("bottom-left"),ln=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},cn=ln("top"),un=ln("right"),dn=ln("bottom"),An=ln("left"),hn=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return He(t)?t.number:0}}},pn=hn("top"),fn=hn("right"),mn=hn("bottom"),gn=hn("left"),yn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},vn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){return"rtl"===t?1:0}},bn={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Ve).reduce(function(e,t){return e|wn(t.value)},0)}},wn=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},xn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},kn={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(Gt||(Gt={}));var Cn,Bn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"strict"===t?Gt.STRICT:Gt.NORMAL}},Sn={name:"line-height",initialValue:"normal",prefix:!1,type:4},jn=function(e,t){return Ve(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:Je(e)?it(e,t):t},En={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:Rt(e,t)}},Nn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){return"inside"===t?0:1}},In={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Fn=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Tn=Fn("top"),Ln=Fn("right"),Pn=Fn("bottom"),Mn=Fn("left"),On={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Ve).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Dn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"break-word"===t?"break-word":"normal"}},Un=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Rn=Un("top"),zn=Un("right"),Qn=Un("bottom"),Hn=Un("left"),qn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Vn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Kn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&We(t[0],"none")?[]:Ye(t).map(function(t){for(var n={color:xt.TRANSPARENT,offsetX:tt,offsetY:tt,blur:tt},r=0,o=0;o<t.length;o++){var i=t[o];Xe(i)?(0===r?n.offsetX=i:1===r?n.offsetY=i:n.blur=i,r++):n.color=At(e,i)}return n})}},Wn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Gn={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var n=$n[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return n(t.values)}return null}},$n={matrix:function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number});return 6===t.length?t:null},matrix3d:function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number}),n=t[0],r=t[1];t[2],t[3];var o=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var s=t[12],a=t[13];return t[14],t[15],16===t.length?[n,r,o,i,s,a]:null}},Yn={type:16,number:50,flags:4},Zn=[Yn,Yn],Xn={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var n=t.filter(Je);return 2!==n.length?Zn:[n[0],n[1]]}},Jn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;default:return 0}}};!function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"}(Cn||(Cn={}));for(var er={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return Cn.BREAK_ALL;case"keep-all":return Cn.KEEP_ALL;default:return Cn.NORMAL}}},tr={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(20===t.type)return{auto:!0,order:0};if(qe(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},nr={name:"time",parse:function(e,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},rr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return qe(t)?t.number:1}},or={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ir={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(Ve).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return 0!==e})}},sr={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var n=[],r=[];return t.forEach(function(e){switch(e.type){case 20:case 0:n.push(e.value);break;case 17:n.push(e.number.toString());break;case 4:r.push(n.join(" ")),n.length=0}}),n.length&&r.push(n.join(" ")),r.map(function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"})}},ar={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},lr={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){return qe(t)?t.number:Ve(t)&&"bold"===t.value?700:400}},cr={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(Ve).map(function(e){return e.value})}},ur={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},dr=function(e,t){return 0!==(e&t)},Ar={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t}},hr={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;for(var r=[],o=t.filter(Ge),i=0;i<o.length;i++){var s=o[i],a=o[i+1];if(20===s.type){var l=a&&qe(a)?a.number:1;r.push({counter:s.value,increment:l})}}return r}},pr={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return[];for(var n=[],r=t.filter(Ge),o=0;o<r.length;o++){var i=r[o],s=r[o+1];if(Ve(i)&&"none"!==i.value){var a=s&&qe(s)?s.number:0;n.push({counter:i.value,reset:a})}}return n}},fr={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(He).map(function(t){return nr.parse(e,t)})}},mr={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;var r=[],o=t.filter(Ke);if(o.length%2!=0)return null;for(var i=0;i<o.length;i+=2){var s=o[i].value,a=o[i+1].value;r.push({open:s,close:a})}return r}},gr=function(e,t,n){if(!e)return"";var r=e[Math.min(t,e.length-1)];return r?n?r.open:r.close:""},yr={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&We(t[0],"none")?[]:Ye(t).map(function(t){for(var n={color:255,offsetX:tt,offsetY:tt,blur:tt,spread:tt,inset:!1},r=0,o=0;o<t.length;o++){var i=t[o];We(i,"inset")?n.inset=!0:Xe(i)?(0===r?n.offsetX=i:1===r?n.offsetY=i:2===r?n.blur=i:n.spread=i,r++):n.color=At(e,i)}return n})}},vr={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var n=[];return t.filter(Ve).forEach(function(e){switch(e.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2)}}),[0,1,2].forEach(function(e){-1===n.indexOf(e)&&n.push(e)}),n}},br={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},wr={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return He(t)?t.number:0}},xr=function(){function e(e,t){var n,r;this.animationDuration=Cr(e,fr,t.animationDuration),this.backgroundClip=Cr(e,kt,t.backgroundClip),this.backgroundColor=Cr(e,_t,t.backgroundColor),this.backgroundImage=Cr(e,Ht,t.backgroundImage),this.backgroundOrigin=Cr(e,qt,t.backgroundOrigin),this.backgroundPosition=Cr(e,Vt,t.backgroundPosition),this.backgroundRepeat=Cr(e,Kt,t.backgroundRepeat),this.backgroundSize=Cr(e,$t,t.backgroundSize),this.borderTopColor=Cr(e,Xt,t.borderTopColor),this.borderRightColor=Cr(e,Jt,t.borderRightColor),this.borderBottomColor=Cr(e,en,t.borderBottomColor),this.borderLeftColor=Cr(e,tn,t.borderLeftColor),this.borderTopLeftRadius=Cr(e,rn,t.borderTopLeftRadius),this.borderTopRightRadius=Cr(e,on,t.borderTopRightRadius),this.borderBottomRightRadius=Cr(e,sn,t.borderBottomRightRadius),this.borderBottomLeftRadius=Cr(e,an,t.borderBottomLeftRadius),this.borderTopStyle=Cr(e,cn,t.borderTopStyle),this.borderRightStyle=Cr(e,un,t.borderRightStyle),this.borderBottomStyle=Cr(e,dn,t.borderBottomStyle),this.borderLeftStyle=Cr(e,An,t.borderLeftStyle),this.borderTopWidth=Cr(e,pn,t.borderTopWidth),this.borderRightWidth=Cr(e,fn,t.borderRightWidth),this.borderBottomWidth=Cr(e,mn,t.borderBottomWidth),this.borderLeftWidth=Cr(e,gn,t.borderLeftWidth),this.boxShadow=Cr(e,yr,t.boxShadow),this.color=Cr(e,yn,t.color),this.direction=Cr(e,vn,t.direction),this.display=Cr(e,bn,t.display),this.float=Cr(e,xn,t.cssFloat),this.fontFamily=Cr(e,sr,t.fontFamily),this.fontSize=Cr(e,ar,t.fontSize),this.fontStyle=Cr(e,ur,t.fontStyle),this.fontVariant=Cr(e,cr,t.fontVariant),this.fontWeight=Cr(e,lr,t.fontWeight),this.letterSpacing=Cr(e,kn,t.letterSpacing),this.lineBreak=Cr(e,Bn,t.lineBreak),this.lineHeight=Cr(e,Sn,t.lineHeight),this.listStyleImage=Cr(e,En,t.listStyleImage),this.listStylePosition=Cr(e,Nn,t.listStylePosition),this.listStyleType=Cr(e,In,t.listStyleType),this.marginTop=Cr(e,Tn,t.marginTop),this.marginRight=Cr(e,Ln,t.marginRight),this.marginBottom=Cr(e,Pn,t.marginBottom),this.marginLeft=Cr(e,Mn,t.marginLeft),this.opacity=Cr(e,rr,t.opacity);var o=Cr(e,On,t.overflow);this.overflowX=o[0],this.overflowY=o[o.length>1?1:0],this.overflowWrap=Cr(e,Dn,t.overflowWrap),this.paddingTop=Cr(e,Rn,t.paddingTop),this.paddingRight=Cr(e,zn,t.paddingRight),this.paddingBottom=Cr(e,Qn,t.paddingBottom),this.paddingLeft=Cr(e,Hn,t.paddingLeft),this.paintOrder=Cr(e,vr,t.paintOrder),this.position=Cr(e,Vn,t.position),this.textAlign=Cr(e,qn,t.textAlign),this.textDecorationColor=Cr(e,or,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=Cr(e,ir,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=Cr(e,Kn,t.textShadow),this.textTransform=Cr(e,Wn,t.textTransform),this.transform=Cr(e,Gn,t.transform),this.transformOrigin=Cr(e,Xn,t.transformOrigin),this.visibility=Cr(e,Jn,t.visibility),this.webkitTextStrokeColor=Cr(e,br,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Cr(e,wr,t.webkitTextStrokeWidth),this.wordBreak=Cr(e,er,t.wordBreak),this.zIndex=Cr(e,tr,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return ht(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return dr(this.display,4)||dr(this.display,33554432)||dr(this.display,268435456)||dr(this.display,536870912)||dr(this.display,67108864)||dr(this.display,134217728)},e}(),kr=function(e,t){this.content=Cr(e,Ar,t.content),this.quotes=Cr(e,mr,t.quotes)},_r=function(e,t){this.counterIncrement=Cr(e,hr,t.counterIncrement),this.counterReset=Cr(e,pr,t.counterReset)},Cr=function(e,t,n){var r=new ze,o=null!=n?n.toString():t.initialValue;r.write(o);var i=new Qe(r.read());switch(t.type){case 2:var s=i.parseComponentValue();return t.parse(e,Ve(s)?s.value:t.initialValue);case 0:return t.parse(e,i.parseComponentValue());case 1:return t.parse(e,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return lt(e,i.parseComponentValue());case"color":return At(e,i.parseComponentValue());case"image":return Rt(e,i.parseComponentValue());case"length":var a=i.parseComponentValue();return Xe(a)?a:tt;case"length-percentage":var l=i.parseComponentValue();return Je(l)?l:tt;case"time":return nr.parse(e,i.parseComponentValue())}}},Br=function(e,t){var n=function(e){switch(e.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(e);return 1===n||t===n},Sr=function(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Br(t,3),this.styles=new xr(e,window.getComputedStyle(t,null)),Fo(t)&&(this.styles.animationDuration.some(function(e){return e>0})&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=a(this.context,t),Br(t,4)&&(this.flags|=16)},jr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Er="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Nr=0;Nr<64;Nr++)Er[jr.charCodeAt(Nr)]=Nr;for(var Ir=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},Fr=function(){function e(e,t,n,r,o,i){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=o,this.data=i}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),Tr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Lr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Pr=0;Pr<64;Pr++)Lr[Tr.charCodeAt(Pr)]=Pr;var Mr,Or=8,Dr=9,Ur=11,Rr=12,zr=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],o=-1,i="";++o<n;){var s=e[o];s<=65535?r.push(s):(s-=65536,r.push(55296+(s>>10),s%1024+56320)),(o+1===n||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},Qr=function(e){var t,n,r,o=function(e){var t,n,r,o,i,s=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),u=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<a;t+=4)n=Er[e.charCodeAt(t)],r=Er[e.charCodeAt(t+1)],o=Er[e.charCodeAt(t+2)],i=Er[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|o>>2,u[l++]=(3&o)<<6|63&i;return c}(e),i=Array.isArray(o)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n}(o):new Uint32Array(o),s=Array.isArray(o)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n}(o):new Uint16Array(o),a=Ir(s,12,i[4]/2),l=2===i[5]?Ir(s,(24+i[4])/2):(t=i,n=Math.ceil((24+i[4])/4),t.slice?t.slice(n,r):new Uint32Array(Array.prototype.slice.call(t,n,r)));return new Fr(i[0],i[1],i[2],i[3],a,l)}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),Hr="×",qr=function(e){return Qr.get(e)},Vr=function(e,t,n){var r=n-2,o=t[r],i=t[n-1],s=t[n];if(2===i&&3===s)return Hr;if(2===i||3===i||4===i)return"÷";if(2===s||3===s||4===s)return"÷";if(i===Or&&-1!==[Or,Dr,Ur,Rr].indexOf(s))return Hr;if(!(i!==Ur&&i!==Dr||s!==Dr&&10!==s))return Hr;if((i===Rr||10===i)&&10===s)return Hr;if(13===s||5===s)return Hr;if(7===s)return Hr;if(1===i)return Hr;if(13===i&&14===s){for(;5===o;)o=t[--r];if(14===o)return Hr}if(15===i&&15===s){for(var a=0;15===o;)a++,o=t[--r];if(a%2==0)return Hr}return"÷"},Kr=function(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}(e),n=t.length,r=0,o=0,i=t.map(qr);return{next:function(){if(r>=n)return{done:!0,value:null};for(var e=Hr;r<n&&(e=Vr(0,i,++r))===Hr;);if(e!==Hr||r===n){var s=zr.apply(null,t.slice(o,r));return o=r,{value:s,done:!1}}return{done:!0,value:null}}}},Wr=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},Gr=function(e,t,n,r,o){var i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",t.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",n.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(a),a.appendChild(o),s},$r=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},Yr={get SUPPORT_RANGE_BOUNDS(){var e=function(e){if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height="123px",n.style.display="block",e.body.appendChild(n),t.selectNode(n);var r=t.getBoundingClientRect(),o=Math.round(r.height);if(e.body.removeChild(n),123===o)return!0}}return!1}(document);return Object.defineProperty(Yr,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Yr.SUPPORT_RANGE_BOUNDS&&function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var n=e.createRange();t.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var r=t.firstChild,o=l(r.data).map(function(e){return c(e)}),i=0,s={},a=o.every(function(e,t){n.setStart(r,i),n.setEnd(r,i+e.length);var o=n.getBoundingClientRect();i+=e.length;var a=o.x>s.x||o.y>s.y;return s=o,0===t||a});return e.body.removeChild(t),a}(document);return Object.defineProperty(Yr,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),n.toDataURL()}catch(e){return!1}return!0}(document);return Object.defineProperty(Yr,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var o=new Image,i=t.toDataURL();o.src=i;var s=Gr(n,n,0,0,o);return r.fillStyle="red",r.fillRect(0,0,n,n),$r(s).then(function(t){r.drawImage(t,0,0);var o=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var s=e.createElement("div");return s.style.backgroundImage="url("+i+")",s.style.height=n+"px",Wr(o)?$r(Gr(n,n,0,0,s)):Promise.reject(!1)}).then(function(e){return r.drawImage(e,0,0),Wr(r.getImageData(0,0,n,n).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(Yr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=void 0!==(new Image).crossOrigin;return Object.defineProperty(Yr,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Yr,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Yr,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Yr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Zr=function(e,t){this.text=e,this.bounds=t},Xr=function(e,t){var n=t.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var o=t.parentNode;if(o){o.replaceChild(r,t);var i=a(e,r);return r.firstChild&&o.replaceChild(r.firstChild,r),i}}return s.EMPTY},Jr=function(e,t,n){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var o=r.createRange();return o.setStart(e,t),o.setEnd(e,t+n),o},eo=function(e){if(Yr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(e){return e.segment})}return function(e){for(var t,n=Kr(e),r=[];!(t=n.next()).done;)t.value&&r.push(t.value.slice());return r}(e)},to=function(e,t){return 0!==t.letterSpacing?eo(e):function(e,t){if(Yr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(e)).map(function(e){return e.segment})}return ro(e,t)}(e,t)},no=[32,160,4961,65792,65793,4153,4241],ro=function(e,t){for(var n,r=function(e,t){var n=l(e),r=ie(n,t),o=r[0],i=r[1],s=r[2],a=n.length,c=0,u=0;return{next:function(){if(u>=a)return{done:!0,value:null};for(var e=K;u<a&&(e=oe(n,i,o,++u,s))===K;);if(e!==K||u===a){var t=new se(n,e,c,u);return c=u,{value:t,done:!1}}return{done:!0,value:null}}}}(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),o=[],i=function(){if(n.value){var e=n.value.slice(),t=l(e),r="";t.forEach(function(e){-1===no.indexOf(e)?r+=c(e):(r.length&&o.push(r),o.push(c(e)),r="")}),r.length&&o.push(r)}};!(n=r.next()).done;)i();return o},oo=function(e,t,n){this.text=io(t.data,n.textTransform),this.textBounds=function(e,t,n,r){var o=to(t,n),i=[],a=0;return o.forEach(function(t){if(n.textDecorationLine.length||t.trim().length>0)if(Yr.SUPPORT_RANGE_BOUNDS){var o=Jr(r,a,t.length).getClientRects();if(o.length>1){var l=eo(t),c=0;l.forEach(function(t){i.push(new Zr(t,s.fromDOMRectList(e,Jr(r,c+a,t.length).getClientRects()))),c+=t.length})}else i.push(new Zr(t,s.fromDOMRectList(e,o)))}else{var u=r.splitText(t.length);i.push(new Zr(t,Xr(e,r))),r=u}else Yr.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));a+=t.length}),i}(e,this.text,n,t)},io=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(so,ao);case 2:return e.toUpperCase();default:return e}},so=/(^|\s|:|-|\(|\))([a-z])/g,ao=function(e,t,n){return e.length>0?t+n.toUpperCase():e},lo=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return t(n,e),n}(Sr),co=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return t(n,e),n}(Sr),uo=function(e){function n(t,n){var r=e.call(this,t,n)||this,o=new XMLSerializer,i=a(t,n);return n.setAttribute("width",i.width+"px"),n.setAttribute("height",i.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(o.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t(n,e),n}(Sr),Ao=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(Sr),ho=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return t(n,e),n}(Sr),po=[{type:15,flags:0,unit:"px",number:3}],fo=[{type:16,flags:0,number:50}],mo="checkbox",go="radio",yo="password",vo=707406591,bo=function(e){function n(t,n){var r,o,i,a=e.call(this,t,n)||this;switch(a.type=n.type.toLowerCase(),a.checked=n.checked,a.value=0===(i=(o=n).type===yo?new Array(o.value.length+1).join("•"):o.value).length?o.placeholder||"":i,a.type!==mo&&a.type!==go||(a.styles.backgroundColor=3739148031,a.styles.borderTopColor=a.styles.borderRightColor=a.styles.borderBottomColor=a.styles.borderLeftColor=2779096575,a.styles.borderTopWidth=a.styles.borderRightWidth=a.styles.borderBottomWidth=a.styles.borderLeftWidth=1,a.styles.borderTopStyle=a.styles.borderRightStyle=a.styles.borderBottomStyle=a.styles.borderLeftStyle=1,a.styles.backgroundClip=[0],a.styles.backgroundOrigin=[0],a.bounds=(r=a.bounds).width>r.height?new s(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new s(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r),a.type){case mo:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=po;break;case go:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=fo}return a}return t(n,e),n}(Sr),wo=function(e){function n(t,n){var r=e.call(this,t,n)||this,o=n.options[n.selectedIndex||0];return r.value=o&&o.text||"",r}return t(n,e),n}(Sr),xo=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(Sr),ko=function(e){function n(t,n){var r=e.call(this,t,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=So(t,n.contentWindow.document.documentElement);var o=n.contentWindow.document.documentElement?wt(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):xt.TRANSPARENT,i=n.contentWindow.document.body?wt(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):xt.TRANSPARENT;r.backgroundColor=ht(o)?ht(i)?r.styles.backgroundColor:i:o}}catch(e){}return r}return t(n,e),n}(Sr),_o=["OL","UL","MENU"],Co=function(e,t,n,r){for(var o=t.firstChild,i=void 0;o;o=i)if(i=o.nextSibling,No(o)&&o.data.trim().length>0)n.textNodes.push(new oo(e,o,n.styles));else if(Io(o))if(Ko(o)&&o.assignedNodes)o.assignedNodes().forEach(function(t){return Co(e,t,n,r)});else{var s=Bo(e,o);s.styles.isVisible()&&(jo(o,s,r)?s.flags|=4:Eo(s.styles)&&(s.flags|=2),-1!==_o.indexOf(o.tagName)&&(s.flags|=8),n.elements.push(s),o.slot,o.shadowRoot?Co(e,o.shadowRoot,s,r):qo(o)||Oo(o)||Vo(o)||Co(e,o,s,r))}},Bo=function(e,t){return zo(t)?new lo(e,t):Uo(t)?new co(e,t):Oo(t)?new uo(e,t):Lo(t)?new Ao(e,t):Po(t)?new ho(e,t):Mo(t)?new bo(e,t):Vo(t)?new wo(e,t):qo(t)?new xo(e,t):Qo(t)?new ko(e,t):new Sr(e,t)},So=function(e,t){var n=Bo(e,t);return n.flags|=4,Co(e,t,n,n),n},jo=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Do(e)&&n.styles.isTransparent()},Eo=function(e){return e.isPositioned()||e.isFloating()},No=function(e){return e.nodeType===Node.TEXT_NODE},Io=function(e){return e.nodeType===Node.ELEMENT_NODE},Fo=function(e){return Io(e)&&void 0!==e.style&&!To(e)},To=function(e){return"object"==typeof e.className},Lo=function(e){return"LI"===e.tagName},Po=function(e){return"OL"===e.tagName},Mo=function(e){return"INPUT"===e.tagName},Oo=function(e){return"svg"===e.tagName},Do=function(e){return"BODY"===e.tagName},Uo=function(e){return"CANVAS"===e.tagName},Ro=function(e){return"VIDEO"===e.tagName},zo=function(e){return"IMG"===e.tagName},Qo=function(e){return"IFRAME"===e.tagName},Ho=function(e){return"STYLE"===e.tagName},qo=function(e){return"TEXTAREA"===e.tagName},Vo=function(e){return"SELECT"===e.tagName},Ko=function(e){return"SLOT"===e.tagName},Wo=function(e){return e.tagName.indexOf("-")>0},Go=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){return this.counters[e]||[]},e.prototype.pop=function(e){var t=this;e.forEach(function(e){return t.counters[e].pop()})},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,o=!0;null!==n&&n.forEach(function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(o=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)});var i=[];return o&&r.forEach(function(e){var n=t.counters[e.counter];i.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)}),i},e}(),$o={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Yo={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Zo={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Xo={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Jo=function(e,t,n,r,o,i){return e<t||e>n?li(e,o,i.length>0):r.integers.reduce(function(t,n,o){for(;e>=n;)e-=n,t+=r.values[o];return t},"")+i},ei=function(e,t,n,r){var o="";do{n||e--,o=r(e)+o,e/=t}while(e*t>=t);return o},ti=function(e,t,n,r,o){var i=n-t+1;return(e<0?"-":"")+(ei(Math.abs(e),i,r,function(e){return c(Math.floor(e%i)+t)})+o)},ni=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return ei(Math.abs(e),r,!1,function(e){return t[Math.floor(e%r)]})+n},ri=function(e,t,n,r,o,i){if(e<-9999||e>9999)return li(e,4,o.length>0);var s=Math.abs(e),a=o;if(0===s)return t[0]+a;for(var l=0;s>0&&l<=4;l++){var c=s%10;0===c&&dr(i,1)&&""!==a?a=t[c]+a:c>1||1===c&&0===l||1===c&&1===l&&dr(i,2)||1===c&&1===l&&dr(i,4)&&e>100||1===c&&l>1&&dr(i,8)?a=t[c]+(l>0?n[l-1]:"")+a:1===c&&l>0&&(a=n[l-1]+a),s=Math.floor(s/10)}return(e<0?r:"")+a},oi="十百千萬",ii="拾佰仟萬",si="マイナス",ai="마이너스",li=function(e,t,n){var r=n?". ":"",o=n?"、":"",i=n?", ":"",s=n?" ":"";switch(t){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var a=ti(e,48,57,!0,r);return a.length<4?"0"+a:a;case 4:return ni(e,"〇一二三四五六七八九",o);case 6:return Jo(e,1,3999,$o,3,r).toLowerCase();case 7:return Jo(e,1,3999,$o,3,r);case 8:return ti(e,945,969,!1,r);case 9:return ti(e,97,122,!1,r);case 10:return ti(e,65,90,!1,r);case 11:return ti(e,1632,1641,!0,r);case 12:case 49:return Jo(e,1,9999,Yo,3,r);case 35:return Jo(e,1,9999,Yo,3,r).toLowerCase();case 13:return ti(e,2534,2543,!0,r);case 14:case 30:return ti(e,6112,6121,!0,r);case 15:return ni(e,"子丑寅卯辰巳午未申酉戌亥",o);case 16:return ni(e,"甲乙丙丁戊己庚辛壬癸",o);case 17:case 48:return ri(e,"零一二三四五六七八九",oi,"負",o,14);case 47:return ri(e,"零壹貳參肆伍陸柒捌玖",ii,"負",o,15);case 42:return ri(e,"零一二三四五六七八九",oi,"负",o,14);case 41:return ri(e,"零壹贰叁肆伍陆柒捌玖",ii,"负",o,15);case 26:return ri(e,"〇一二三四五六七八九","十百千万",si,o,0);case 25:return ri(e,"零壱弐参四伍六七八九","拾百千万",si,o,7);case 31:return ri(e,"영일이삼사오육칠팔구","십백천만",ai,i,7);case 33:return ri(e,"零一二三四五六七八九","十百千萬",ai,i,0);case 32:return ri(e,"零壹貳參四五六七八九","拾百千",ai,i,7);case 18:return ti(e,2406,2415,!0,r);case 20:return Jo(e,1,19999,Xo,3,r);case 21:return ti(e,2790,2799,!0,r);case 22:return ti(e,2662,2671,!0,r);case 22:return Jo(e,1,10999,Zo,3,r);case 23:return ni(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ni(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return ti(e,3302,3311,!0,r);case 28:return ni(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",o);case 29:return ni(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",o);case 34:return ti(e,3792,3801,!0,r);case 37:return ti(e,6160,6169,!0,r);case 38:return ti(e,4160,4169,!0,r);case 39:return ti(e,2918,2927,!0,r);case 40:return ti(e,1776,1785,!0,r);case 43:return ti(e,3046,3055,!0,r);case 44:return ti(e,3174,3183,!0,r);case 45:return ti(e,3664,3673,!0,r);case 46:return ti(e,3872,3881,!0,r);default:return ti(e,48,57,!0,r)}},ci="data-html2canvas-ignore",ui=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new Go,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,i=Ai(e,t);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var s=e.defaultView.pageXOffset,a=e.defaultView.pageYOffset,l=i.contentWindow,c=l.document,u=fi(i).then(function(){return r(n,void 0,void 0,function(){var e,n;return o(this,function(r){switch(r.label){case 0:return this.scrolledElements.forEach(bi),l&&(l.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||l.scrollY===t.top&&l.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-t.left,l.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,pi(c)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(c,n)}).then(function(){return i})]:[2,i]}})})});return c.open(),c.write(yi(document.doctype)+"<html></html>"),vi(this.referenceElement.ownerDocument,s,a),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},e.prototype.createElementClone=function(e){if(Br(e,2),Uo(e))return this.createCanvasClone(e);if(Ro(e))return this.createVideoClone(e);if(Ho(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return zo(t)&&(zo(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Wo(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return gi(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e},""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(e){if(this.context.logger.error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch(t){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var o=e.getContext("2d"),i=r.getContext("2d");if(i)if(!this.options.allowTaint&&o)i.putImageData(o.getImageData(0,0,e.width,e.height),0,0);else{var s=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(s){var a=s.getContextAttributes();!1===(null==a?void 0:a.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}i.drawImage(e,0,0)}return r}catch(t){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch(t){this.context.logger.info("Unable to clone video as it is tainted",e)}var r=e.ownerDocument.createElement("canvas");return r.width=e.offsetWidth,r.height=e.offsetHeight,r},e.prototype.appendChildNode=function(e,t,n){Io(t)&&("SCRIPT"===t.tagName||t.hasAttribute(ci)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&Io(t)&&Ho(t)||e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var r=this,o=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;o;o=o.nextSibling)if(Io(o)&&Ko(o)&&"function"==typeof o.assignedNodes){var i=o.assignedNodes();i.length&&i.forEach(function(e){return r.appendChildNode(t,e,n)})}else this.appendChildNode(t,o,n)},e.prototype.cloneNode=function(e,t){if(No(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&Io(e)&&(Fo(e)||To(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var o=n.getComputedStyle(e),i=n.getComputedStyle(e,":before"),s=n.getComputedStyle(e,":after");this.referenceElement===e&&Fo(r)&&(this.clonedReferenceElement=r),Do(r)&&_i(r);var a=this.counters.parse(new _r(this.context,o)),l=this.resolvePseudoContent(e,r,i,Mr.BEFORE);Wo(e)&&(t=!0),Ro(e)||this.cloneChildNodes(e,r,t),l&&r.insertBefore(l,r.firstChild);var c=this.resolvePseudoContent(e,r,s,Mr.AFTER);return c&&r.appendChild(c),this.counters.pop(a),(o&&(this.options.copyStyles||To(e))&&!Qo(e)||t)&&gi(o,r),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(qo(e)||Vo(e))&&(qo(r)||Vo(r))&&(r.value=e.value),r}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var o=this;if(n){var i=n.content,s=t.ownerDocument;if(s&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==n.display){this.counters.parse(new _r(this.context,n));var a=new kr(this.context,n),l=s.createElement("html2canvaspseudoelement");gi(n,l),a.content.forEach(function(t){if(0===t.type)l.appendChild(s.createTextNode(t.value));else if(22===t.type){var n=s.createElement("img");n.src=t.value,n.style.opacity="1",l.appendChild(n)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(Ve);r.length&&l.appendChild(s.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var i=t.values.filter($e),c=i[0],u=i[1];if(c&&Ve(c)){var d=o.counters.getCounterValue(c.value),A=u&&Ve(u)?In.parse(o.context,u.value):3;l.appendChild(s.createTextNode(li(d,A,!1)))}}else if("counters"===t.name){var h=t.values.filter($e),p=(c=h[0],h[1]);if(u=h[2],c&&Ve(c)){var f=o.counters.getCounterValues(c.value),m=u&&Ve(u)?In.parse(o.context,u.value):3,g=p&&0===p.type?p.value:"",y=f.map(function(e){return li(e,m,!1)}).join(g);l.appendChild(s.createTextNode(y))}}}else if(20===t.type)switch(t.value){case"open-quote":l.appendChild(s.createTextNode(gr(a.quotes,o.quoteDepth++,!0)));break;case"close-quote":l.appendChild(s.createTextNode(gr(a.quotes,--o.quoteDepth,!1)));break;default:l.appendChild(s.createTextNode(t.value))}}),l.className=wi+" "+xi;var c=r===Mr.BEFORE?" "+wi:" "+xi;return To(t)?t.className.baseValue+=c:t.className+=c,l}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(Mr||(Mr={}));var di,Ai=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(ci,"true"),e.body.appendChild(n),n},hi=function(e){return new Promise(function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()})},pi=function(e){return Promise.all([].slice.call(e.images,0).map(hi))},fi=function(e){return new Promise(function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var o=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval(function(){o.body.childNodes.length>0&&"complete"===o.readyState&&(clearInterval(n),t(e))},50)}})},mi=["all","d","content"],gi=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);-1===mi.indexOf(r)&&t.style.setProperty(r,e.getPropertyValue(r))}return t},yi=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},vi=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},bi=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},wi="___html2canvas___pseudoelement_before",xi="___html2canvas___pseudoelement_after",ki='{\n content: "" !important;\n display: none !important;\n}',_i=function(e){Ci(e,"."+wi+":before"+ki+"\n ."+xi+":after"+ki)},Ci=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},Bi=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),Si=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Li(e)||Ii(e)?((this._cache[e]=this.loadImage(e)).catch(function(){}),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,i,s=this;return o(this,function(o){switch(o.label){case 0:return t=Bi.isSameOrigin(e),n=!Fi(e)&&!0===this._options.useCORS&&Yr.SUPPORT_CORS_IMAGES&&!t,r=!Fi(e)&&!t&&!Li(e)&&"string"==typeof this._options.proxy&&Yr.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||Fi(e)||Li(e)||r||n?(i=e,r?[4,this.proxy(i)]:[3,2]):[2];case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(Ti(i)||n)&&(r.crossOrigin="anonymous"),r.src=i,!0===r.complete&&setTimeout(function(){return e(r)},500),s._options.imageTimeout>0&&setTimeout(function(){return t("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(o,i){var s=Yr.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(200===a.status)if("text"===s)o(a.response);else{var e=new FileReader;e.addEventListener("load",function(){return o(e.result)},!1),e.addEventListener("error",function(e){return i(e)},!1),e.readAsDataURL(a.response)}else i("Failed to proxy resource "+r+" with status code "+a.status)},a.onerror=i;var l=n.indexOf("?")>-1?"&":"?";if(a.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+s),"text"!==s&&a instanceof XMLHttpRequest&&(a.responseType=s),t._options.imageTimeout){var c=t._options.imageTimeout;a.timeout=c,a.ontimeout=function(){return i("Timed out ("+c+"ms) proxying "+r)}}a.send()})},e}(),ji=/^data:image\/svg\+xml/i,Ei=/^data:image\/.*;base64,/i,Ni=/^data:image\/.*/i,Ii=function(e){return Yr.SUPPORT_SVG_DRAWING||!Pi(e)},Fi=function(e){return Ni.test(e)},Ti=function(e){return Ei.test(e)},Li=function(e){return"blob"===e.substr(0,4)},Pi=function(e){return"svg"===e.substr(-3).toLowerCase()||ji.test(e)},Mi=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),Oi=function(e,t,n){return new Mi(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Di=function(){function e(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=Oi(this.start,this.startControl,t),o=Oi(this.startControl,this.endControl,t),i=Oi(this.endControl,this.end,t),s=Oi(r,o,t),a=Oi(o,i,t),l=Oi(s,a,t);return n?new e(this.start,r,s,l):new e(l,a,i,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Ui=function(e){return 1===e.type},Ri=function(e){var t=e.styles,n=e.bounds,r=ot(t.borderTopLeftRadius,n.width,n.height),o=r[0],i=r[1],s=ot(t.borderTopRightRadius,n.width,n.height),a=s[0],l=s[1],c=ot(t.borderBottomRightRadius,n.width,n.height),u=c[0],d=c[1],A=ot(t.borderBottomLeftRadius,n.width,n.height),h=A[0],p=A[1],f=[];f.push((o+a)/n.width),f.push((h+u)/n.width),f.push((i+p)/n.height),f.push((l+d)/n.height);var m=Math.max.apply(Math,f);m>1&&(o/=m,i/=m,a/=m,l/=m,u/=m,d/=m,h/=m,p/=m);var g=n.width-a,y=n.height-d,v=n.width-u,b=n.height-p,w=t.borderTopWidth,x=t.borderRightWidth,k=t.borderBottomWidth,_=t.borderLeftWidth,C=it(t.paddingTop,e.bounds.width),B=it(t.paddingRight,e.bounds.width),S=it(t.paddingBottom,e.bounds.width),j=it(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=o>0||i>0?zi(n.left+_/3,n.top+w/3,o-_/3,i-w/3,di.TOP_LEFT):new Mi(n.left+_/3,n.top+w/3),this.topRightBorderDoubleOuterBox=o>0||i>0?zi(n.left+g,n.top+w/3,a-x/3,l-w/3,di.TOP_RIGHT):new Mi(n.left+n.width-x/3,n.top+w/3),this.bottomRightBorderDoubleOuterBox=u>0||d>0?zi(n.left+v,n.top+y,u-x/3,d-k/3,di.BOTTOM_RIGHT):new Mi(n.left+n.width-x/3,n.top+n.height-k/3),this.bottomLeftBorderDoubleOuterBox=h>0||p>0?zi(n.left+_/3,n.top+b,h-_/3,p-k/3,di.BOTTOM_LEFT):new Mi(n.left+_/3,n.top+n.height-k/3),this.topLeftBorderDoubleInnerBox=o>0||i>0?zi(n.left+2*_/3,n.top+2*w/3,o-2*_/3,i-2*w/3,di.TOP_LEFT):new Mi(n.left+2*_/3,n.top+2*w/3),this.topRightBorderDoubleInnerBox=o>0||i>0?zi(n.left+g,n.top+2*w/3,a-2*x/3,l-2*w/3,di.TOP_RIGHT):new Mi(n.left+n.width-2*x/3,n.top+2*w/3),this.bottomRightBorderDoubleInnerBox=u>0||d>0?zi(n.left+v,n.top+y,u-2*x/3,d-2*k/3,di.BOTTOM_RIGHT):new Mi(n.left+n.width-2*x/3,n.top+n.height-2*k/3),this.bottomLeftBorderDoubleInnerBox=h>0||p>0?zi(n.left+2*_/3,n.top+b,h-2*_/3,p-2*k/3,di.BOTTOM_LEFT):new Mi(n.left+2*_/3,n.top+n.height-2*k/3),this.topLeftBorderStroke=o>0||i>0?zi(n.left+_/2,n.top+w/2,o-_/2,i-w/2,di.TOP_LEFT):new Mi(n.left+_/2,n.top+w/2),this.topRightBorderStroke=o>0||i>0?zi(n.left+g,n.top+w/2,a-x/2,l-w/2,di.TOP_RIGHT):new Mi(n.left+n.width-x/2,n.top+w/2),this.bottomRightBorderStroke=u>0||d>0?zi(n.left+v,n.top+y,u-x/2,d-k/2,di.BOTTOM_RIGHT):new Mi(n.left+n.width-x/2,n.top+n.height-k/2),this.bottomLeftBorderStroke=h>0||p>0?zi(n.left+_/2,n.top+b,h-_/2,p-k/2,di.BOTTOM_LEFT):new Mi(n.left+_/2,n.top+n.height-k/2),this.topLeftBorderBox=o>0||i>0?zi(n.left,n.top,o,i,di.TOP_LEFT):new Mi(n.left,n.top),this.topRightBorderBox=a>0||l>0?zi(n.left+g,n.top,a,l,di.TOP_RIGHT):new Mi(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||d>0?zi(n.left+v,n.top+y,u,d,di.BOTTOM_RIGHT):new Mi(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=h>0||p>0?zi(n.left,n.top+b,h,p,di.BOTTOM_LEFT):new Mi(n.left,n.top+n.height),this.topLeftPaddingBox=o>0||i>0?zi(n.left+_,n.top+w,Math.max(0,o-_),Math.max(0,i-w),di.TOP_LEFT):new Mi(n.left+_,n.top+w),this.topRightPaddingBox=a>0||l>0?zi(n.left+Math.min(g,n.width-x),n.top+w,g>n.width+x?0:Math.max(0,a-x),Math.max(0,l-w),di.TOP_RIGHT):new Mi(n.left+n.width-x,n.top+w),this.bottomRightPaddingBox=u>0||d>0?zi(n.left+Math.min(v,n.width-_),n.top+Math.min(y,n.height-k),Math.max(0,u-x),Math.max(0,d-k),di.BOTTOM_RIGHT):new Mi(n.left+n.width-x,n.top+n.height-k),this.bottomLeftPaddingBox=h>0||p>0?zi(n.left+_,n.top+Math.min(b,n.height-k),Math.max(0,h-_),Math.max(0,p-k),di.BOTTOM_LEFT):new Mi(n.left+_,n.top+n.height-k),this.topLeftContentBox=o>0||i>0?zi(n.left+_+j,n.top+w+C,Math.max(0,o-(_+j)),Math.max(0,i-(w+C)),di.TOP_LEFT):new Mi(n.left+_+j,n.top+w+C),this.topRightContentBox=a>0||l>0?zi(n.left+Math.min(g,n.width+_+j),n.top+w+C,g>n.width+_+j?0:a-_+j,l-(w+C),di.TOP_RIGHT):new Mi(n.left+n.width-(x+B),n.top+w+C),this.bottomRightContentBox=u>0||d>0?zi(n.left+Math.min(v,n.width-(_+j)),n.top+Math.min(y,n.height+w+C),Math.max(0,u-(x+B)),d-(k+S),di.BOTTOM_RIGHT):new Mi(n.left+n.width-(x+B),n.top+n.height-(k+S)),this.bottomLeftContentBox=h>0||p>0?zi(n.left+_+j,n.top+b,Math.max(0,h-(_+j)),p-(k+S),di.BOTTOM_LEFT):new Mi(n.left+_+j,n.top+n.height-(k+S))};!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(di||(di={}));var zi=function(e,t,n,r,o){var i=(Math.sqrt(2)-1)/3*4,s=n*i,a=r*i,l=e+n,c=t+r;switch(o){case di.TOP_LEFT:return new Di(new Mi(e,c),new Mi(e,c-a),new Mi(l-s,t),new Mi(l,t));case di.TOP_RIGHT:return new Di(new Mi(e,t),new Mi(e+s,t),new Mi(l,c-a),new Mi(l,c));case di.BOTTOM_RIGHT:return new Di(new Mi(l,t),new Mi(l,t+a),new Mi(e+s,c),new Mi(e,c));case di.BOTTOM_LEFT:default:return new Di(new Mi(l,c),new Mi(l-s,c),new Mi(e,t+a),new Mi(e,t))}},Qi=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Hi=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},qi=function(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6},Vi=function(e,t){this.path=e,this.target=t,this.type=1},Ki=function(e){this.opacity=e,this.type=2,this.target=6},Wi=function(e){return 1===e.type},Gi=function(e,t){return e.length===t.length&&e.some(function(e,n){return e===t[n]})},$i=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Yi=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Ri(this.container),this.container.styles.opacity<1&&this.effects.push(new Ki(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,o=this.container.styles.transform;this.effects.push(new qi(n,r,o))}if(0!==this.container.styles.overflowX){var i=Qi(this.curves),s=Hi(this.curves);Gi(i,s)?this.effects.push(new Vi(i,6)):(this.effects.push(new Vi(i,2)),this.effects.push(new Vi(s,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var o=n.effects.filter(function(e){return!Wi(e)});if(t||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,o),t=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var i=Qi(n.curves),s=Hi(n.curves);Gi(i,s)||r.unshift(new Vi(s,6))}}else r.unshift.apply(r,o);n=n.parent}return r.filter(function(t){return dr(t.target,e)})},e}(),Zi=function(e,t,n,r){e.container.elements.forEach(function(o){var i=dr(o.flags,4),s=dr(o.flags,2),a=new Yi(o,e);dr(o.styles.display,2048)&&r.push(a);var l=dr(o.flags,8)?[]:r;if(i||s){var c=i||o.styles.isPositioned()?n:t,u=new $i(a);if(o.styles.isPositioned()||o.styles.opacity<1||o.styles.isTransformed()){var d=o.styles.zIndex.order;if(d<0){var A=0;c.negativeZIndex.some(function(e,t){return d>e.element.container.styles.zIndex.order?(A=t,!1):A>0}),c.negativeZIndex.splice(A,0,u)}else if(d>0){var h=0;c.positiveZIndex.some(function(e,t){return d>=e.element.container.styles.zIndex.order?(h=t+1,!1):h>0}),c.positiveZIndex.splice(h,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else o.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);Zi(a,u,i?u:n,l)}else o.styles.isInlineLevel()?t.inlineLevel.push(a):t.nonInlineLevel.push(a),Zi(a,t,n,l);dr(o.flags,8)&&Xi(o,l)})},Xi=function(e,t){for(var n=e instanceof ho?e.start:1,r=e instanceof ho&&e.reversed,o=0;o<t.length;o++){var i=t[o];i.container instanceof Ao&&"number"==typeof i.container.value&&0!==i.container.value&&(n=i.container.value),i.listValue=li(n,i.container.styles.listStyleType,!0),n+=r?-1:1}},Ji=function(e,t){switch(t){case 0:return ts(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return ts(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return ts(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return ts(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},es=function(e,t){var n=[];return Ui(e)?n.push(e.subdivide(.5,!1)):n.push(e),Ui(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},ts=function(e,t,n,r){var o=[];return Ui(e)?o.push(e.subdivide(.5,!1)):o.push(e),Ui(n)?o.push(n.subdivide(.5,!0)):o.push(n),Ui(r)?o.push(r.subdivide(.5,!0).reverse()):o.push(r),Ui(t)?o.push(t.subdivide(.5,!1).reverse()):o.push(t),o},ns=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},rs=function(e){var t=e.styles,n=e.bounds,r=it(t.paddingLeft,n.width),o=it(t.paddingRight,n.width),i=it(t.paddingTop,n.width),s=it(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,i+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+o),-(t.borderTopWidth+t.borderBottomWidth+i+s))},os=function(e,t,n){var r=function(e,t){return 0===e?t.bounds:2===e?rs(t):ns(t)}(ls(e.styles.backgroundOrigin,t),e),o=function(e,t){return 0===e?t.bounds:2===e?rs(t):ns(t)}(ls(e.styles.backgroundClip,t),e),i=as(ls(e.styles.backgroundSize,t),n,r),s=i[0],a=i[1],l=ot(ls(e.styles.backgroundPosition,t),r.width-s,r.height-a);return[cs(ls(e.styles.backgroundRepeat,t),l,i,r,o),Math.round(r.left+l[0]),Math.round(r.top+l[1]),s,a]},is=function(e){return Ve(e)&&e.value===zt.AUTO},ss=function(e){return"number"==typeof e},as=function(e,t,n){var r=t[0],o=t[1],i=t[2],s=e[0],a=e[1];if(!s)return[0,0];if(Je(s)&&a&&Je(a))return[it(s,n.width),it(a,n.height)];var l=ss(i);if(Ve(s)&&(s.value===zt.CONTAIN||s.value===zt.COVER))return ss(i)?n.width/n.height<i!=(s.value===zt.COVER)?[n.width,n.width/i]:[n.height*i,n.height]:[n.width,n.height];var c=ss(r),u=ss(o),d=c||u;if(is(s)&&(!a||is(a)))return c&&u?[r,o]:l||d?d&&l?[c?r:o*i,u?o:r/i]:[c?r:n.width,u?o:n.height]:[n.width,n.height];if(l){var A=0,h=0;return Je(s)?A=it(s,n.width):Je(a)&&(h=it(a,n.height)),is(s)?A=h*i:a&&!is(a)||(h=A/i),[A,h]}var p=null,f=null;if(Je(s)?p=it(s,n.width):a&&Je(a)&&(f=it(a,n.height)),null===p||a&&!is(a)||(f=c&&u?p/r*o:n.height),null!==f&&is(s)&&(p=c&&u?f/o*r:n.width),null!==p&&null!==f)return[p,f];throw new Error("Unable to calculate background-size for element")},ls=function(e,t){var n=e[t];return void 0===n?e[0]:n},cs=function(e,t,n,r,o){var i=t[0],s=t[1],a=n[0],l=n[1];switch(e){case 2:return[new Mi(Math.round(r.left),Math.round(r.top+s)),new Mi(Math.round(r.left+r.width),Math.round(r.top+s)),new Mi(Math.round(r.left+r.width),Math.round(l+r.top+s)),new Mi(Math.round(r.left),Math.round(l+r.top+s))];case 3:return[new Mi(Math.round(r.left+i),Math.round(r.top)),new Mi(Math.round(r.left+i+a),Math.round(r.top)),new Mi(Math.round(r.left+i+a),Math.round(r.height+r.top)),new Mi(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new Mi(Math.round(r.left+i),Math.round(r.top+s)),new Mi(Math.round(r.left+i+a),Math.round(r.top+s)),new Mi(Math.round(r.left+i+a),Math.round(r.top+s+l)),new Mi(Math.round(r.left+i),Math.round(r.top+s+l))];default:return[new Mi(Math.round(o.left),Math.round(o.top)),new Mi(Math.round(o.left+o.width),Math.round(o.top)),new Mi(Math.round(o.left+o.width),Math.round(o.height+o.top)),new Mi(Math.round(o.left),Math.round(o.height+o.top))]}},us="Hidden Text",ds=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),r=this._document.createElement("img"),o=this._document.createElement("span"),i=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",i.appendChild(n),r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",o.style.fontFamily=e,o.style.fontSize=t,o.style.margin="0",o.style.padding="0",o.appendChild(this._document.createTextNode(us)),n.appendChild(o),n.appendChild(r);var s=r.offsetTop-o.offsetTop+2;n.removeChild(o),n.appendChild(this._document.createTextNode(us)),n.style.lineHeight="normal",r.style.verticalAlign="super";var a=r.offsetTop-n.offsetTop+2;return i.removeChild(n),{baseline:s,middle:a}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),As=function(e,t){this.context=e,this.options=t},hs=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new ds(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return t(n,e),n.prototype.applyEffects=function(e){for(var t=this;this._activeEffects.length;)this.popEffect();e.forEach(function(e){return t.applyEffect(e)})},n.prototype.applyEffect=function(e){this.ctx.save(),function(e){return 2===e.type}(e)&&(this.ctx.globalAlpha=e.opacity),function(e){return 0===e.type}(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Wi(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(e){return r(this,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},n.prototype.renderNode=function(e){return r(this,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:return dr(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},n.prototype.renderTextWithLetterSpacing=function(e,t,n){var r=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n):eo(e.text).reduce(function(t,o){return r.ctx.fillText(o,t,e.bounds.top+n),t+r.ctx.measureText(o).width},e.bounds.left)},n.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(e){return"normal"===e||"small-caps"===e}).join(""),n=ys(e.fontFamily).join(", "),r=He(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,r,n].join(" "),n,r]},n.prototype.renderTextNode=function(e,t){return r(this,void 0,void 0,function(){var n,r,i,s,a,l,c,u,d=this;return o(this,function(o){return n=this.createFontStyle(t),r=n[0],i=n[1],s=n[2],this.ctx.font=r,this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(i,s),l=a.baseline,c=a.middle,u=t.paintOrder,e.textBounds.forEach(function(e){u.forEach(function(n){switch(n){case 0:d.ctx.fillStyle=pt(t.color),d.renderTextWithLetterSpacing(e,t.letterSpacing,l);var r=t.textShadow;r.length&&e.text.trim().length&&(r.slice(0).reverse().forEach(function(n){d.ctx.shadowColor=pt(n.color),d.ctx.shadowOffsetX=n.offsetX.number*d.options.scale,d.ctx.shadowOffsetY=n.offsetY.number*d.options.scale,d.ctx.shadowBlur=n.blur.number,d.renderTextWithLetterSpacing(e,t.letterSpacing,l)}),d.ctx.shadowColor="",d.ctx.shadowOffsetX=0,d.ctx.shadowOffsetY=0,d.ctx.shadowBlur=0),t.textDecorationLine.length&&(d.ctx.fillStyle=pt(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(t){switch(t){case 1:d.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+l),e.bounds.width,1);break;case 2:d.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:d.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+c),e.bounds.width,1)}}));break;case 1:t.webkitTextStrokeWidth&&e.text.trim().length&&(d.ctx.strokeStyle=pt(t.webkitTextStrokeColor),d.ctx.lineWidth=t.webkitTextStrokeWidth,d.ctx.lineJoin=window.chrome?"miter":"round",d.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+l)),d.ctx.strokeStyle="",d.ctx.lineWidth=0,d.ctx.lineJoin="miter"}})}),[2]})})},n.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var r=rs(e),o=Hi(t);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,function(){var t,r,i,a,l,c,u,d,A,h,p,f,m,g,y,v,b,w;return o(this,function(o){switch(o.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,i=t.styles,a=0,l=t.textNodes,o.label=1;case 1:return a<l.length?(c=l[a],[4,this.renderTextNode(c,i)]):[3,4];case 2:o.sent(),o.label=3;case 3:return a++,[3,1];case 4:if(!(t instanceof lo))return[3,8];o.label=5;case 5:return o.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return y=o.sent(),this.renderReplacedElement(t,r,y),[3,8];case 7:return o.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof co&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof uo))return[3,12];o.label=9;case 9:return o.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return y=o.sent(),this.renderReplacedElement(t,r,y),[3,12];case 11:return o.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof ko&&t.tree?[4,new n(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}).render(t.tree)]:[3,14];case 13:u=o.sent(),t.width&&t.height&&this.ctx.drawImage(u,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),o.label=14;case 14:if(t instanceof bo&&(d=Math.min(t.bounds.width,t.bounds.height),t.type===mo?t.checked&&(this.ctx.save(),this.path([new Mi(t.bounds.left+.39363*d,t.bounds.top+.79*d),new Mi(t.bounds.left+.16*d,t.bounds.top+.5549*d),new Mi(t.bounds.left+.27347*d,t.bounds.top+.44071*d),new Mi(t.bounds.left+.39694*d,t.bounds.top+.5649*d),new Mi(t.bounds.left+.72983*d,t.bounds.top+.23*d),new Mi(t.bounds.left+.84*d,t.bounds.top+.34085*d),new Mi(t.bounds.left+.39363*d,t.bounds.top+.79*d)]),this.ctx.fillStyle=pt(vo),this.ctx.fill(),this.ctx.restore()):t.type===go&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+d/2,t.bounds.top+d/2,d/4,0,2*Math.PI,!0),this.ctx.fillStyle=pt(vo),this.ctx.fill(),this.ctx.restore())),ps(t)&&t.value.length){switch(A=this.createFontStyle(i),b=A[0],h=A[1],p=this.fontMetrics.getMetrics(b,h).baseline,this.ctx.font=b,this.ctx.fillStyle=pt(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=ms(t.styles.textAlign),w=rs(t),f=0,t.styles.textAlign){case 1:f+=w.width/2;break;case 2:f+=w.width}m=w.add(f,0,0,-w.height/2+1),this.ctx.save(),this.path([new Mi(w.left,w.top),new Mi(w.left+w.width,w.top),new Mi(w.left+w.width,w.top+w.height),new Mi(w.left,w.top+w.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Zr(t.value,m),i.letterSpacing,p),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!dr(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(0!==(g=t.styles.listStyleImage).type)return[3,18];y=void 0,v=g.url,o.label=15;case 15:return o.trys.push([15,17,,18]),[4,this.context.cache.match(v)];case 16:return y=o.sent(),this.ctx.drawImage(y,t.bounds.left-(y.width+10),t.bounds.top),[3,18];case 17:return o.sent(),this.context.logger.error("Error loading list-style-image "+v),[3,18];case 18:return[3,20];case 19:e.listValue&&-1!==t.styles.listStyleType&&(b=this.createFontStyle(i)[0],this.ctx.font=b,this.ctx.fillStyle=pt(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",w=new s(t.bounds.left,t.bounds.top+it(t.styles.paddingTop,t.bounds.width),t.bounds.width,jn(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Zr(e.listValue,w),i.letterSpacing,jn(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),o.label=20;case 20:return[2]}})})},n.prototype.renderStackContent=function(e){return r(this,void 0,void 0,function(){var t,n,r,i,s,a,l,c,u,d,A,h,p,f,m;return o(this,function(o){switch(o.label){case 0:return dr(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:o.sent(),t=0,n=e.negativeZIndex,o.label=2;case 2:return t<n.length?(m=n[t],[4,this.renderStack(m)]):[3,5];case 3:o.sent(),o.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:o.sent(),r=0,i=e.nonInlineLevel,o.label=7;case 7:return r<i.length?(m=i[r],[4,this.renderNode(m)]):[3,10];case 8:o.sent(),o.label=9;case 9:return r++,[3,7];case 10:s=0,a=e.nonPositionedFloats,o.label=11;case 11:return s<a.length?(m=a[s],[4,this.renderStack(m)]):[3,14];case 12:o.sent(),o.label=13;case 13:return s++,[3,11];case 14:l=0,c=e.nonPositionedInlineLevel,o.label=15;case 15:return l<c.length?(m=c[l],[4,this.renderStack(m)]):[3,18];case 16:o.sent(),o.label=17;case 17:return l++,[3,15];case 18:u=0,d=e.inlineLevel,o.label=19;case 19:return u<d.length?(m=d[u],[4,this.renderNode(m)]):[3,22];case 20:o.sent(),o.label=21;case 21:return u++,[3,19];case 22:A=0,h=e.zeroOrAutoZIndexOrTransformedOrOpacity,o.label=23;case 23:return A<h.length?(m=h[A],[4,this.renderStack(m)]):[3,26];case 24:o.sent(),o.label=25;case 25:return A++,[3,23];case 26:p=0,f=e.positiveZIndex,o.label=27;case 27:return p<f.length?(m=f[p],[4,this.renderStack(m)]):[3,30];case 28:o.sent(),o.label=29;case 29:return p++,[3,27];case 30:return[2]}})})},n.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},n.prototype.formatPath=function(e){var t=this;e.forEach(function(e,n){var r=Ui(e)?e.start:e;0===n?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),Ui(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})},n.prototype.renderRepeat=function(e,t,n,r){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},n.prototype.resizeImage=function(e,t,n){var r;if(e.width===t&&e.height===n)return e;var o=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return o.width=Math.max(1,t),o.height=Math.max(1,n),o.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,n),o},n.prototype.renderBackgroundImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,i,s,a;return o(this,function(l){switch(l.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var i,s,a,l,c,u,d,A,h,p,f,m,g,y,v,b,w,x,k,_,C,B,S,j,E,N,I,F,T,L,P;return o(this,function(o){switch(o.label){case 0:if(0!==n.type)return[3,5];i=void 0,s=n.url,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,r.context.cache.match(s)];case 2:return i=o.sent(),[3,4];case 3:return o.sent(),r.context.logger.error("Error loading background-image "+s),[3,4];case 4:return i&&(a=os(e,t,[i.width,i.height,i.width/i.height]),b=a[0],B=a[1],S=a[2],k=a[3],_=a[4],y=r.ctx.createPattern(r.resizeImage(i,k,_),"repeat"),r.renderRepeat(b,y,B,S)),[3,6];case 5:1===n.type?(l=os(e,t,[null,null,null]),b=l[0],B=l[1],S=l[2],k=l[3],_=l[4],c=St(n.angle,k,_),u=c[0],d=c[1],A=c[2],h=c[3],p=c[4],(f=document.createElement("canvas")).width=k,f.height=_,m=f.getContext("2d"),g=m.createLinearGradient(d,h,A,p),Bt(n.stops,u).forEach(function(e){return g.addColorStop(e.stop,pt(e.color))}),m.fillStyle=g,m.fillRect(0,0,k,_),k>0&&_>0&&(y=r.ctx.createPattern(f,"repeat"),r.renderRepeat(b,y,B,S))):function(e){return 2===e.type}(n)&&(v=os(e,t,[null,null,null]),b=v[0],w=v[1],x=v[2],k=v[3],_=v[4],C=0===n.position.length?[nt]:n.position,B=it(C[0],k),S=it(C[C.length-1],_),j=function(e,t,n,r,o){var i=0,s=0;switch(e.size){case 0:0===e.shape?i=s=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-o)):1===e.shape&&(i=Math.min(Math.abs(t),Math.abs(t-r)),s=Math.min(Math.abs(n),Math.abs(n-o)));break;case 2:if(0===e.shape)i=s=Math.min(jt(t,n),jt(t,n-o),jt(t-r,n),jt(t-r,n-o));else if(1===e.shape){var a=Math.min(Math.abs(n),Math.abs(n-o))/Math.min(Math.abs(t),Math.abs(t-r)),l=Et(r,o,t,n,!0),c=l[0],u=l[1];s=a*(i=jt(c-t,(u-n)/a))}break;case 1:0===e.shape?i=s=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-o)):1===e.shape&&(i=Math.max(Math.abs(t),Math.abs(t-r)),s=Math.max(Math.abs(n),Math.abs(n-o)));break;case 3:if(0===e.shape)i=s=Math.max(jt(t,n),jt(t,n-o),jt(t-r,n),jt(t-r,n-o));else if(1===e.shape){a=Math.max(Math.abs(n),Math.abs(n-o))/Math.max(Math.abs(t),Math.abs(t-r));var d=Et(r,o,t,n,!1);c=d[0],u=d[1],s=a*(i=jt(c-t,(u-n)/a))}}return Array.isArray(e.size)&&(i=it(e.size[0],r),s=2===e.size.length?it(e.size[1],o):i),[i,s]}(n,B,S,k,_),E=j[0],N=j[1],E>0&&N>0&&(I=r.ctx.createRadialGradient(w+B,x+S,0,w+B,x+S,E),Bt(n.stops,2*E).forEach(function(e){return I.addColorStop(e.stop,pt(e.color))}),r.path(b),r.ctx.fillStyle=I,E!==N?(F=e.bounds.left+.5*e.bounds.width,T=e.bounds.top+.5*e.bounds.height,P=1/(L=N/E),r.ctx.save(),r.ctx.translate(F,T),r.ctx.transform(1,0,0,L,0,0),r.ctx.translate(-F,-T),r.ctx.fillRect(w,P*(x-T)+T,k,_*P),r.ctx.restore()):r.ctx.fill())),o.label=6;case 6:return t--,[2]}})},r=this,i=0,s=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return i<s.length?(a=s[i],[5,n(a)]):[3,4];case 2:l.sent(),l.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},n.prototype.renderSolidBorder=function(e,t,n){return r(this,void 0,void 0,function(){return o(this,function(r){return this.path(Ji(n,t)),this.ctx.fillStyle=pt(e),this.ctx.fill(),[2]})})},n.prototype.renderDoubleBorder=function(e,t,n,i){return r(this,void 0,void 0,function(){var r,s;return o(this,function(o){switch(o.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,i)]:[3,2];case 1:return o.sent(),[2];case 2:return r=function(e,t){switch(t){case 0:return ts(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return ts(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return ts(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return ts(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}}(i,n),this.path(r),this.ctx.fillStyle=pt(e),this.ctx.fill(),s=function(e,t){switch(t){case 0:return ts(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return ts(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return ts(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return ts(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}}(i,n),this.path(s),this.ctx.fill(),[2]}})})},n.prototype.renderNodeBackgroundAndBorders=function(e){return r(this,void 0,void 0,function(){var t,n,r,i,s,a,l,c,u=this;return o(this,function(o){switch(o.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,n=!ht(t.backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],i=fs(ls(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),ht(t.backgroundColor)||(this.ctx.fillStyle=pt(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:o.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(t){u.ctx.save();var n,r,o,i,s,a=Qi(e.curves),l=t.inset?0:1e4,c=(n=a,r=-l+(t.inset?1:-1)*t.spread.number,o=(t.inset?1:-1)*t.spread.number,i=t.spread.number*(t.inset?-2:2),s=t.spread.number*(t.inset?-2:2),n.map(function(e,t){switch(t){case 0:return e.add(r,o);case 1:return e.add(r+i,o);case 2:return e.add(r+i,o+s);case 3:return e.add(r,o+s)}return e}));t.inset?(u.path(a),u.ctx.clip(),u.mask(c)):(u.mask(a),u.ctx.clip(),u.path(c)),u.ctx.shadowOffsetX=t.offsetX.number+l,u.ctx.shadowOffsetY=t.offsetY.number,u.ctx.shadowColor=pt(t.color),u.ctx.shadowBlur=t.blur.number,u.ctx.fillStyle=t.inset?pt(t.color):"rgba(0,0,0,1)",u.ctx.fill(),u.ctx.restore()}),o.label=2;case 2:s=0,a=0,l=r,o.label=3;case 3:return a<l.length?0!==(c=l[a]).style&&!ht(c.color)&&c.width>0?2!==c.style?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,s,e.curves,2)]:[3,11]:[3,13];case 4:return o.sent(),[3,11];case 5:return 3!==c.style?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,s,e.curves,3)];case 6:return o.sent(),[3,11];case 7:return 4!==c.style?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,s,e.curves)];case 8:return o.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,s,e.curves)];case 10:o.sent(),o.label=11;case 11:s++,o.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},n.prototype.renderDashedDottedBorder=function(e,t,n,i,s){return r(this,void 0,void 0,function(){var r,a,l,c,u,d,A,h,p,f,m,g,y,v,b,w;return o(this,function(o){return this.ctx.save(),r=function(e,t){switch(t){case 0:return es(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return es(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return es(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return es(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}}(i,n),a=Ji(i,n),2===s&&(this.path(a),this.ctx.clip()),Ui(a[0])?(l=a[0].start.x,c=a[0].start.y):(l=a[0].x,c=a[0].y),Ui(a[1])?(u=a[1].end.x,d=a[1].end.y):(u=a[1].x,d=a[1].y),A=0===n||2===n?Math.abs(l-u):Math.abs(c-d),this.ctx.beginPath(),3===s?this.formatPath(r):this.formatPath(a.slice(0,2)),h=t<3?3*t:2*t,p=t<3?2*t:t,3===s&&(h=t,p=t),f=!0,A<=2*h?f=!1:A<=2*h+p?(h*=m=A/(2*h+p),p*=m):(g=Math.floor((A+p)/(h+p)),y=(A-g*h)/(g-1),p=(v=(A-(g+1)*h)/g)<=0||Math.abs(p-y)<Math.abs(p-v)?y:v),f&&(3===s?this.ctx.setLineDash([0,h+p]):this.ctx.setLineDash([h,p])),3===s?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=pt(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===s&&(Ui(a[0])&&(b=a[3],w=a[0],this.ctx.beginPath(),this.formatPath([new Mi(b.end.x,b.end.y),new Mi(w.start.x,w.start.y)]),this.ctx.stroke()),Ui(a[1])&&(b=a[1],w=a[2],this.ctx.beginPath(),this.formatPath([new Mi(b.end.x,b.end.y),new Mi(w.start.x,w.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},n.prototype.render=function(e){return r(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=pt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=new Yi(e,null),o=new $i(r),Zi(r,o,o,i=[]),Xi(r.container,i),t=o,[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}var r,o,i})})},n}(As),ps=function(e){return e instanceof xo||e instanceof wo||e instanceof bo&&e.type!==go&&e.type!==mo},fs=function(e,t){switch(e){case 0:return Qi(t);case 2:return function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]}(t);default:return Hi(t)}},ms=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},gs=["-apple-system","system-ui"],ys=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(e){return-1===gs.indexOf(e)}):e},vs=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return t(n,e),n.prototype.render=function(e){return r(this,void 0,void 0,function(){var t,n;return o(this,function(r){switch(r.label){case 0:return t=Gr(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,bs(t)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=pt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},n}(As),bs=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},ws=function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,i([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,i([this.id,this.getTime()+"ms"],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,i([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,i([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.instances={},e}(),xs=function(){function e(t,n){var r;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new ws({id:this.instanceName,enabled:t.logging}),this.cache=null!==(r=t.cache)&&void 0!==r?r:new Si(this,t)}return e.instanceCount=1,e}();"undefined"!=typeof window&&Bi.setContext(window);var ks=function(e,t){return r(void 0,void 0,void 0,function(){var r,i,l,c,u,d,A,h,p,f,m,g,y,v,b,w,x,k,_,C,B,S,j,E,N,I,F,T,L,P,M,O,D,U,R,z,Q,H;return o(this,function(o){switch(o.label){case 0:if(!e||"object"!=typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=e.ownerDocument))throw new Error("Element is not attached to a Document");if(!(i=r.defaultView))throw new Error("Document is not attached to a Window");return l={allowTaint:null!==(S=t.allowTaint)&&void 0!==S&&S,imageTimeout:null!==(j=t.imageTimeout)&&void 0!==j?j:15e3,proxy:t.proxy,useCORS:null!==(E=t.useCORS)&&void 0!==E&&E},c=n({logging:null===(N=t.logging)||void 0===N||N,cache:t.cache},l),u={windowWidth:null!==(I=t.windowWidth)&&void 0!==I?I:i.innerWidth,windowHeight:null!==(F=t.windowHeight)&&void 0!==F?F:i.innerHeight,scrollX:null!==(T=t.scrollX)&&void 0!==T?T:i.pageXOffset,scrollY:null!==(L=t.scrollY)&&void 0!==L?L:i.pageYOffset},d=new s(u.scrollX,u.scrollY,u.windowWidth,u.windowHeight),A=new xs(c,d),h=null!==(P=t.foreignObjectRendering)&&void 0!==P&&P,p={allowTaint:null!==(M=t.allowTaint)&&void 0!==M&&M,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:h,copyStyles:h},A.logger.debug("Starting document clone with size "+d.width+"x"+d.height+" scrolled to "+-d.left+","+-d.top),f=new ui(A,e,p),(m=f.clonedReferenceElement)?[4,f.toIFrame(r,d)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return g=o.sent(),y=Do(m)||"HTML"===m.tagName?function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),o=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new s(0,0,r,o)}(m.ownerDocument):a(A,m),v=y.width,b=y.height,w=y.left,x=y.top,k=_s(A,m,t.backgroundColor),_={canvas:t.canvas,backgroundColor:k,scale:null!==(D=null!==(O=t.scale)&&void 0!==O?O:i.devicePixelRatio)&&void 0!==D?D:1,x:(null!==(U=t.x)&&void 0!==U?U:0)+w,y:(null!==(R=t.y)&&void 0!==R?R:0)+x,width:null!==(z=t.width)&&void 0!==z?z:Math.ceil(v),height:null!==(Q=t.height)&&void 0!==Q?Q:Math.ceil(b)},h?(A.logger.debug("Document cloned, using foreign object rendering"),[4,new vs(A,_).render(m)]):[3,3];case 2:return C=o.sent(),[3,5];case 3:return A.logger.debug("Document cloned, element located at "+w+","+x+" with size "+v+"x"+b+" using computed rendering"),A.logger.debug("Starting DOM parsing"),B=So(A,m),k===B.styles.backgroundColor&&(B.styles.backgroundColor=xt.TRANSPARENT),A.logger.debug("Starting renderer for element at "+_.x+","+_.y+" with size "+_.width+"x"+_.height),[4,new hs(A,_).render(B)];case 4:C=o.sent(),o.label=5;case 5:return(null===(H=t.removeContainer)||void 0===H||H)&&(ui.destroy(g)||A.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),A.logger.debug("Finished rendering"),[2,C]}})})},_s=function(e,t,n){var r=t.ownerDocument,o=r.documentElement?wt(e,getComputedStyle(r.documentElement).backgroundColor):xt.TRANSPARENT,i=r.body?wt(e,getComputedStyle(r.body).backgroundColor):xt.TRANSPARENT,s="string"==typeof n?wt(e,n):null===n?xt.TRANSPARENT:4294967295;return t===r.documentElement?ht(o)?ht(i)?s:i:o:s};return function(e,t){return void 0===t&&(t={}),ks(e,t)}}()},5580(e,t,n){var r=n(6110)(n(9325),"DataView");e.exports=r},1549(e,t,n){var r=n(2032),o=n(3862),i=n(6721),s=n(2749),a=n(5749);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=s,l.prototype.set=a,e.exports=l},79(e,t,n){var r=n(3702),o=n(80),i=n(4739),s=n(8655),a=n(1175);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=s,l.prototype.set=a,e.exports=l},8223(e,t,n){var r=n(6110)(n(9325),"Map");e.exports=r},3661(e,t,n){var r=n(3040),o=n(7670),i=n(289),s=n(4509),a=n(2949);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=s,l.prototype.set=a,e.exports=l},2804(e,t,n){var r=n(6110)(n(9325),"Promise");e.exports=r},6545(e,t,n){var r=n(6110)(n(9325),"Set");e.exports=r},8859(e,t,n){var r=n(3661),o=n(1380),i=n(1459);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=o,s.prototype.has=i,e.exports=s},7217(e,t,n){var r=n(79),o=n(1420),i=n(938),s=n(3605),a=n(9817),l=n(945);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=s,c.prototype.has=a,c.prototype.set=l,e.exports=c},1873(e,t,n){var r=n(9325).Symbol;e.exports=r},7828(e,t,n){var r=n(9325).Uint8Array;e.exports=r},8303(e,t,n){var r=n(6110)(n(9325),"WeakMap");e.exports=r},1033(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},7277(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}},9770(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}},5325(e,t,n){var r=n(6131);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},9905(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},695(e,t,n){var r=n(8096),o=n(2428),i=n(6449),s=n(3656),a=n(361),l=n(7167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&s(e),A=!n&&!u&&!d&&l(e),h=n||u||d||A,p=h?r(e.length,String):[],f=p.length;for(var m in e)!t&&!c.call(e,m)||h&&("length"==m||d&&("offset"==m||"parent"==m)||A&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,f))||p.push(m);return p}},4932(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},4528(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},4248(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},1074(e){e.exports=function(e){return e.split("")}},6025(e,t,n){var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},3360(e,t,n){var r=n(3243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},909(e,t,n){var r=n(641),o=n(8329)(r);e.exports=o},3777(e,t,n){var r=n(909);e.exports=function(e,t){var n=!0;return r(e,function(e,r,o){return n=!!t(e,r,o)}),n}},3599(e,t,n){var r=n(4394);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o<i;){var s=e[o],a=t(s);if(null!=a&&(void 0===l?a==a&&!r(a):n(a,l)))var l=a,c=s}return c}},2523(e){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},3120(e,t,n){var r=n(4528),o=n(5891);e.exports=function e(t,n,i,s,a){var l=-1,c=t.length;for(i||(i=o),a||(a=[]);++l<c;){var u=t[l];n>0&&i(u)?n>1?e(u,n-1,i,s,a):r(a,u):s||(a[a.length]=u)}return a}},6649(e,t,n){var r=n(3221)();e.exports=r},641(e,t,n){var r=n(6649),o=n(5950);e.exports=function(e,t){return e&&r(e,t,o)}},7422(e,t,n){var r=n(1769),o=n(7797);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},4580(e,t,n){var r=n(4528),o=n(6449);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},2552(e,t,n){var r=n(1873),o=n(659),i=n(9350),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?o(e):i(e)}},3335(e){e.exports=function(e,t){return e>t}},8077(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},6131(e,t,n){var r=n(2523),o=n(5463),i=n(6959);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},7534(e,t,n){var r=n(2552),o=n(346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},270(e,t,n){var r=n(7068),o=n(346);e.exports=function e(t,n,i,s,a){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,s,e,a))}},7068(e,t,n){var r=n(7217),o=n(5911),i=n(1986),s=n(689),a=n(5861),l=n(6449),c=n(3656),u=n(7167),d="[object Arguments]",A="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,m,g){var y=l(e),v=l(t),b=y?A:a(e),w=v?A:a(t),x=(b=b==d?h:b)==h,k=(w=w==d?h:w)==h,_=b==w;if(_&&c(e)){if(!c(t))return!1;y=!0,x=!1}if(_&&!x)return g||(g=new r),y||u(e)?o(e,t,n,f,m,g):i(e,t,b,n,f,m,g);if(!(1&n)){var C=x&&p.call(e,"__wrapped__"),B=k&&p.call(t,"__wrapped__");if(C||B){var S=C?e.value():e,j=B?t.value():t;return g||(g=new r),m(S,j,n,f,g)}}return!!_&&(g||(g=new r),s(e,t,n,f,m,g))}},1799(e,t,n){var r=n(7217),o=n(270);e.exports=function(e,t,n,i){var s=n.length,a=s,l=!i;if(null==e)return!a;for(e=Object(e);s--;){var c=n[s];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<a;){var u=(c=n[s])[0],d=e[u],A=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var h=new r;if(i)var p=i(d,A,u,e,t,h);if(!(void 0===p?o(A,d,3,i,h):p))return!1}}return!0}},5463(e){e.exports=function(e){return e!=e}},5083(e,t,n){var r=n(1882),o=n(7296),i=n(3805),s=n(7473),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,A=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?A:a).test(s(e))}},4901(e,t,n){var r=n(2552),o=n(294),i=n(346),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!s[r(e)]}},5389(e,t,n){var r=n(3663),o=n(7978),i=n(3488),s=n(6449),a=n(583);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?s(e)?o(e[0],e[1]):r(e):a(e)}},8984(e,t,n){var r=n(5527),o=n(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},6176(e){e.exports=function(e,t){return e<t}},5128(e,t,n){var r=n(909),o=n(4894);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++n]=t(e,r,o)}),i}},3663(e,t,n){var r=n(1799),o=n(776),i=n(7197);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},7978(e,t,n){var r=n(270),o=n(8156),i=n(631),s=n(8586),a=n(756),l=n(7197),c=n(7797);e.exports=function(e,t){return s(e)&&a(t)?l(c(e),t):function(n){var s=o(n,e);return void 0===s&&s===t?i(n,e):r(t,s,3)}}},6155(e,t,n){var r=n(4932),o=n(7422),i=n(5389),s=n(5128),a=n(3937),l=n(7301),c=n(3714),u=n(3488),d=n(6449);e.exports=function(e,t,n){t=t.length?r(t,function(e){return d(e)?function(t){return o(t,1===e.length?e[0]:e)}:e}):[u];var A=-1;t=r(t,l(i));var h=s(e,function(e,n,o){return{criteria:r(t,function(t){return t(e)}),index:++A,value:e}});return a(h,function(e,t){return c(e,t,n)})}},7237(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},7255(e,t,n){var r=n(7422);e.exports=function(e){return function(t){return r(t,e)}}},6151(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var s=-1,a=n(t((r-e)/(o||1)),0),l=Array(a);a--;)l[i?a:++s]=e,e+=o;return l}},9302(e,t,n){var r=n(3488),o=n(6757),i=n(2865);e.exports=function(e,t){return i(o(e,t,r),e+"")}},9570(e,t,n){var r=n(7334),o=n(3243),i=n(3488),s=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=s},5160(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},916(e,t,n){var r=n(909);e.exports=function(e,t){var n;return r(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}},3937(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},8096(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},7556(e,t,n){var r=n(1873),o=n(4932),i=n(6449),s=n(4394),a=r?r.prototype:void 0,l=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(s(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},4128(e,t,n){var r=n(1800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},7301(e){e.exports=function(e){return function(t){return e(t)}}},5765(e,t,n){var r=n(8859),o=n(5325),i=n(9905),s=n(9219),a=n(4517),l=n(4247);e.exports=function(e,t,n){var c=-1,u=o,d=e.length,A=!0,h=[],p=h;if(n)A=!1,u=i;else if(d>=200){var f=t?null:a(e);if(f)return l(f);A=!1,u=s,p=new r}else p=t?[]:h;e:for(;++c<d;){var m=e[c],g=t?t(m):m;if(m=n||0!==m?m:0,A&&g==g){for(var y=p.length;y--;)if(p[y]===g)continue e;t&&p.push(g),h.push(m)}else u(p,g,n)||(p!==h&&p.push(g),h.push(m))}return h}},9219(e){e.exports=function(e,t){return e.has(t)}},1769(e,t,n){var r=n(6449),o=n(8586),i=n(1802),s=n(3222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(s(e))}},8754(e,t,n){var r=n(5160);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},3730(e,t,n){var r=n(4394);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,s=r(e),a=void 0!==t,l=null===t,c=t==t,u=r(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||o&&a&&c||!n&&c||!i)return 1;if(!o&&!s&&!u&&e<t||u&&n&&i&&!o&&!s||l&&n&&i||!a&&i||!c)return-1}return 0}},3714(e,t,n){var r=n(3730);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,s=t.criteria,a=i.length,l=n.length;++o<a;){var c=r(i[o],s[o]);if(c)return o>=l?c:c*("desc"==n[o]?-1:1)}return e.index-t.index}},5481(e,t,n){var r=n(9325)["__core-js_shared__"];e.exports=r},8329(e,t,n){var r=n(4894);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,s=t?i:-1,a=Object(n);(t?s--:++s<i)&&!1!==o(a[s],s,a););return n}}},3221(e){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),s=r(t),a=s.length;a--;){var l=s[e?a:++o];if(!1===n(i[l],l,i))break}return t}}},2507(e,t,n){var r=n(8754),o=n(9698),i=n(3912),s=n(3222);e.exports=function(e){return function(t){t=s(t);var n=o(t)?i(t):void 0,a=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return a[e]()+l}}},2006(e,t,n){var r=n(5389),o=n(4894),i=n(5950);e.exports=function(e){return function(t,n,s){var a=Object(t);if(!o(t)){var l=r(n,3);t=i(t),n=function(e){return l(a[e],e,a)}}var c=e(t,n,s);return c>-1?a[l?t[c]:c]:void 0}}},5508(e,t,n){var r=n(6151),o=n(6800),i=n(7400);e.exports=function(e){return function(t,n,s){return s&&"number"!=typeof s&&o(t,n,s)&&(n=s=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),s=void 0===s?t<n?1:-1:i(s),r(t,n,s,e)}}},4517(e,t,n){var r=n(6545),o=n(3950),i=n(4247),s=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=s},3243(e,t,n){var r=n(6110),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},5911(e,t,n){var r=n(8859),o=n(4248),i=n(9219);e.exports=function(e,t,n,s,a,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var A=l.get(e),h=l.get(t);if(A&&h)return A==t&&h==e;var p=-1,f=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p<u;){var g=e[p],y=t[p];if(s)var v=c?s(y,g,p,t,e,l):s(g,y,p,e,t,l);if(void 0!==v){if(v)continue;f=!1;break}if(m){if(!o(t,function(e,t){if(!i(m,t)&&(g===e||a(g,e,n,s,l)))return m.push(t)})){f=!1;break}}else if(g!==y&&!a(g,y,n,s,l)){f=!1;break}}return l.delete(e),l.delete(t),f}},1986(e,t,n){var r=n(1873),o=n(7828),i=n(5288),s=n(5911),a=n(317),l=n(4247),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,A){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=a;case"[object Set]":var p=1&r;if(h||(h=l),e.size!=t.size&&!p)return!1;var f=A.get(e);if(f)return f==t;r|=2,A.set(e,t);var m=s(h(e),h(t),r,c,d,A);return A.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},689(e,t,n){var r=n(2),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,s,a){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var A=c[d];if(!(l?A in t:o.call(t,A)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var f=!0;a.set(e,t),a.set(t,e);for(var m=l;++d<u;){var g=e[A=c[d]],y=t[A];if(i)var v=l?i(y,g,A,t,e,a):i(g,y,A,e,t,a);if(!(void 0===v?g===y||s(g,y,n,i,a):v)){f=!1;break}m||(m="constructor"==A)}if(f&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(f=!1)}return a.delete(e),a.delete(t),f}},4840(e){var t="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;e.exports=t},2(e,t,n){var r=n(4580),o=n(4664),i=n(5950);e.exports=function(e){return r(e,i,o)}},2651(e,t,n){var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},776(e,t,n){var r=n(756),o=n(5950);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],s=e[i];t[n]=[i,s,r(s)]}return t}},6110(e,t,n){var r=n(5083),o=n(392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},8879(e,t,n){var r=n(4335)(Object.getPrototypeOf,Object);e.exports=r},659(e,t,n){var r=n(1873),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[a]=n:delete e[a]),o}},4664(e,t,n){var r=n(9770),o=n(3345),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),r(s(e),function(t){return i.call(e,t)}))}:o;e.exports=a},5861(e,t,n){var r=n(5580),o=n(8223),i=n(2804),s=n(6545),a=n(8303),l=n(2552),c=n(7473),u="[object Map]",d="[object Promise]",A="[object Set]",h="[object WeakMap]",p="[object DataView]",f=c(r),m=c(o),g=c(i),y=c(s),v=c(a),b=l;(r&&b(new r(new ArrayBuffer(1)))!=p||o&&b(new o)!=u||i&&b(i.resolve())!=d||s&&b(new s)!=A||a&&b(new a)!=h)&&(b=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case f:return p;case m:return u;case g:return d;case y:return A;case v:return h}return t}),e.exports=b},392(e){e.exports=function(e,t){return null==e?void 0:e[t]}},9326(e,t,n){var r=n(1769),o=n(2428),i=n(6449),s=n(361),a=n(294),l=n(7797);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var A=l(t[c]);if(!(d=null!=e&&n(e,A)))break;e=e[A]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&a(u)&&s(A,u)&&(i(e)||o(e))}},9698(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},2032(e,t,n){var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3862(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721(e,t,n){var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},2749(e,t,n){var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},5749(e,t,n){var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5891(e,t,n){var r=n(1873),o=n(2428),i=n(6449),s=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(s&&e&&e[s])}},361(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=n??9007199254740991)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6800(e,t,n){var r=n(5288),o=n(4894),i=n(361),s=n(3805);e.exports=function(e,t,n){if(!s(n))return!1;var a=typeof t;return!!("number"==a?o(n)&&i(t,n.length):"string"==a&&t in n)&&r(n[t],e)}},8586(e,t,n){var r=n(6449),o=n(4394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||s.test(e)||!i.test(e)||null!=t&&e in Object(t)}},4218(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296(e,t,n){var r,o=n(5481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},5527(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},756(e,t,n){var r=n(3805);e.exports=function(e){return e==e&&!r(e)}},3702(e){e.exports=function(){this.__data__=[],this.size=0}},80(e,t,n){var r=n(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},4739(e,t,n){var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8655(e,t,n){var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},1175(e,t,n){var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},3040(e,t,n){var r=n(1549),o=n(79),i=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},7670(e,t,n){var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949(e,t,n){var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},317(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},7197(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},2224(e,t,n){var r=n(104);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},1042(e,t,n){var r=n(6110)(Object,"create");e.exports=r},3650(e,t,n){var r=n(4335)(Object.keys,Object);e.exports=r},6009(e,t,n){e=n.nmd(e);var r=n(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,s=i&&i.exports===o&&r.process,a=function(){try{return i&&i.require&&i.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335(e){e.exports=function(e,t){return function(n){return e(t(n))}}},6757(e,t,n){var r=n(1033),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,s=-1,a=o(i.length-t,0),l=Array(a);++s<a;)l[s]=i[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=i[s];return c[t]=n(l),r(e,this,c)}}},9325(e,t,n){var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},1380(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459(e){e.exports=function(e){return this.__data__.has(e)}},4247(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},2865(e,t,n){var r=n(9570),o=n(1811)(r);e.exports=o},1811(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},1420(e,t,n){var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},938(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},3605(e){e.exports=function(e){return this.__data__.get(e)}},9817(e){e.exports=function(e){return this.__data__.has(e)}},945(e,t,n){var r=n(79),o=n(8223),i=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},6959(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},3912(e,t,n){var r=n(1074),o=n(9698),i=n(2054);e.exports=function(e){return o(e)?i(e):r(e)}},1802(e,t,n){var r=n(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=s},7797(e,t,n){var r=n(4394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1800(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},2054(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",u=c+l+"(?:\\u200d(?:"+[i,s,a].join("|")+")"+c+l+")*",d="(?:"+[i+r+"?",r,s,a,n].join("|")+")",A=RegExp(o+"(?="+o+")|"+d+u,"g");e.exports=function(e){return e.match(A)||[]}},7334(e){e.exports=function(e){return function(){return e}}},8221(e,t,n){var r=n(3805),o=n(124),i=n(9374),s=Math.max,a=Math.min;e.exports=function(e,t,n){var l,c,u,d,A,h,p=0,f=!1,m=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,p=t,d=e.apply(r,n)}function v(e){var n=e-h;return void 0===h||n>=t||n<0||m&&e-p>=u}function b(){var e=o();if(v(e))return w(e);A=setTimeout(b,function(e){var n=t-(e-h);return m?a(n,u-(e-p)):n}(e))}function w(e){return A=void 0,g&&l?y(e):(l=c=void 0,d)}function x(){var e=o(),n=v(e);if(l=arguments,c=this,h=e,n){if(void 0===A)return function(e){return p=e,A=setTimeout(b,t),f?y(e):d}(h);if(m)return clearTimeout(A),A=setTimeout(b,t),y(h)}return void 0===A&&(A=setTimeout(b,t)),d}return t=i(t)||0,r(n)&&(f=!!n.leading,u=(m="maxWait"in n)?s(i(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),x.cancel=function(){void 0!==A&&clearTimeout(A),p=0,l=h=c=A=void 0},x.flush=function(){return void 0===A?d:w(o())},x}},5288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},9747(e,t,n){var r=n(7277),o=n(3777),i=n(5389),s=n(6449),a=n(6800);e.exports=function(e,t,n){var l=s(e)?r:o;return n&&a(e,t,n)&&(t=void 0),l(e,i(t,3))}},7309(e,t,n){var r=n(2006)(n(4713));e.exports=r},4713(e,t,n){var r=n(2523),o=n(5389),i=n(1489),s=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var l=null==n?0:i(n);return l<0&&(l=s(a+l,0)),r(e,o(t,3),l)}},7307(e,t,n){var r=n(3120),o=n(5378);e.exports=function(e,t){return r(o(e,t),1)}},8156(e,t,n){var r=n(7422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},631(e,t,n){var r=n(8077),o=n(9326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},3488(e){e.exports=function(e){return e}},2428(e,t,n){var r=n(7534),o=n(346),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},6449(e){var t=Array.isArray;e.exports=t},4894(e,t,n){var r=n(1882),o=n(294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},3812(e,t,n){var r=n(2552),o=n(346);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},3656(e,t,n){e=n.nmd(e);var r=n(9325),o=n(9935),i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,a=s&&s.exports===i?r.Buffer:void 0,l=(a?a.isBuffer:void 0)||o;e.exports=l},2404(e,t,n){var r=n(270);e.exports=function(e,t){return r(e,t)}},1882(e,t,n){var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},1741(e,t,n){var r=n(8023);e.exports=function(e){return r(e)&&e!=+e}},9843(e){e.exports=function(e){return null==e}},8023(e,t,n){var r=n(2552),o=n(346);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},3805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},1331(e,t,n){var r=n(2552),o=n(8879),i=n(346),s=Function.prototype,a=Object.prototype,l=s.toString,c=a.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},5015(e,t,n){var r=n(2552),o=n(6449),i=n(346);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},4394(e,t,n){var r=n(2552),o=n(346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7167(e,t,n){var r=n(4901),o=n(7301),i=n(6009),s=i&&i.isTypedArray,a=s?o(s):r;e.exports=a},5950(e,t,n){var r=n(695),o=n(8984),i=n(4894);e.exports=function(e){return i(e)?r(e):o(e)}},8090(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},5378(e,t,n){var r=n(4932),o=n(5389),i=n(5128),s=n(6449);e.exports=function(e,t){return(s(e)?r:i)(e,o(t,3))}},3916(e,t,n){var r=n(3360),o=n(641),i=n(5389);e.exports=function(e,t){var n={};return t=i(t,3),o(e,function(e,o,i){r(n,o,t(e,o,i))}),n}},4506(e,t,n){var r=n(3599),o=n(3335),i=n(3488);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},7551(e,t,n){var r=n(3599),o=n(3335),i=n(5389);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},104(e,t,n){var r=n(3661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},1684(e,t,n){var r=n(3599),o=n(6176),i=n(3488);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},6533(e,t,n){var r=n(3599),o=n(5389),i=n(6176);e.exports=function(e,t){return e&&e.length?r(e,o(t,2),i):void 0}},3950(e){e.exports=function(){}},124(e,t,n){var r=n(9325);e.exports=function(){return r.Date.now()}},583(e,t,n){var r=n(7237),o=n(7255),i=n(8586),s=n(7797);e.exports=function(e){return i(e)?r(s(e)):o(e)}},3181(e,t,n){var r=n(5508)();e.exports=r},2426(e,t,n){var r=n(4248),o=n(5389),i=n(916),s=n(6449),a=n(6800);e.exports=function(e,t,n){var l=s(e)?r:i;return n&&a(e,t,n)&&(t=void 0),l(e,o(t,3))}},3031(e,t,n){var r=n(3120),o=n(6155),i=n(9302),s=n(6800),a=i(function(e,t){if(null==e)return[];var n=t.length;return n>1&&s(e,t[0],t[1])?t=[]:n>2&&s(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])});e.exports=a},3345(e){e.exports=function(){return[]}},9935(e){e.exports=function(){return!1}},7350(e,t,n){var r=n(8221),o=n(3805);e.exports=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:i,maxWait:t,trailing:s})}},7400(e,t,n){var r=n(9374),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},1489(e,t,n){var r=n(7400);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},9374(e,t,n){var r=n(4128),o=n(3805),i=n(4394),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=a.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?NaN:+e}},3222(e,t,n){var r=n(7556);e.exports=function(e){return null==e?"":r(e)}},14(e,t,n){var r=n(5389),o=n(5765);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},5808(e,t,n){var r=n(2507)("toUpperCase");e.exports=r},2694(e,t,n){"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8867(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isFragment=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case s:case i:case d:case A:return e;default:switch(e=e&&e.$$typeof){case c:case l:case u:case p:case h:case a:return e;default:return t}}case r:return t}}}(e)===o}},2199(e,t,n){"use strict";e.exports=n(8867)},2284(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})}};const t={};function n(r){const o=t[r];if(void 0!==o)return o.exports;const i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{const e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;let t;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}const i=Object.create(null);n.r(i);const s={};t=t||[null,e({}),e([]),e(e)];for(var a=2&o&&r;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>r[e]);return s.default=()=>r,n.d(i,s),i}})(),n.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var o=t[r++],i=t[r++];n.o(e,o)?0===i&&r++:0===i?Object.defineProperty(e,o,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,o,{enumerable:!0,get:i})}else for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,r)=>(n.f[r](e,t),t),[])),n.u=e=>e+".js",n.miniCssF=e=>{},n.o=(e,t)=>Object.hasOwn(e,t),(()=>{const e={},t="surecookie:";n.l=(r,o,i,s)=>{if(e[r])return void e[r].push(o);let a,l;if(void 0!==i){const e=document.getElementsByTagName("script");for(var c=0;c<e.length;c++){const n=e[c];if(n.getAttribute("src")==r||n.getAttribute("data-webpack")==t+i){a=n;break}}}a||(l=!0,a=document.createElement("script"),a.charset="utf-8",n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",t+i),a.src=r),e[r]=[o];const u=(t,n)=>{a.onerror=a.onload=null,clearTimeout(d);const o=e[r];if(delete e[r],a.parentNode?.removeChild(a),o?.forEach(e=>e(n)),t)return t(n)},d=setTimeout(u.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=u.bind(null,a.onerror),a.onload=u.bind(null,a.onload),l&&document.head.appendChild(a)}})(),n.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},n.cjs=e=>{const t={exports:{}};return e.call(t.exports,t,t.exports),t.exports},(()=>{let e;globalThis.importScripts&&(e=globalThis.location+"");const t=globalThis.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const n=t.getElementsByTagName("script");if(n.length){let t=n.length-1;for(;t>-1&&(!e||!/^http(s?):/.test(e));)e=n[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{const e={884:0};n.f.j=(t,r)=>{let o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{const i=new Promise((n,r)=>o=e[t]=[n,r]);r.push(o[2]=i);const s=n.p+n.u(t),a=new Error,l=r=>{if(n.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){const e=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+e+": "+n+")",a.name="ChunkLoadError",a.type=e,a.request=n,a.event=r,o[1](a)}};n.l(s,l,"chunk-"+t,t)}};const t=(t,r)=>{let[o,i,s]=r;var a,l,c=0;if(o.some(t=>0!==e[t])){for(a in i)n.o(i,a)&&(n.m[a]=i[a]);s&&s(n)}for(t&&t(r);c<o.length;c++)l=o[c],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0},r=globalThis.webpackChunksurecookie||=[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),n(2793)})();