SEditor.js 949 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168
  1. var De = Object.defineProperty, Oe = Object.defineProperties;
  2. var ze = Object.getOwnPropertyDescriptors;
  3. var je = Object.getOwnPropertySymbols;
  4. var Ae = Object.prototype.hasOwnProperty, Le = Object.prototype.propertyIsEnumerable;
  5. var Ee = (te, ee, Z) => ee in te ? De(te, ee, { enumerable: !0, configurable: !0, writable: !0, value: Z }) : te[ee] = Z, pe = (te, ee) => {
  6. for (var Z in ee || (ee = {}))
  7. Ae.call(ee, Z) && Ee(te, Z, ee[Z]);
  8. if (je)
  9. for (var Z of je(ee))
  10. Le.call(ee, Z) && Ee(te, Z, ee[Z]);
  11. return te;
  12. }, ke = (te, ee) => Oe(te, ze(ee));
  13. import { ref as xe, onMounted as Ne, onBeforeUnmount as Re, watch as Be, openBlock as Ie, createElementBlock as qe, createElementVNode as Fe, createBlock as He, createCommentVNode as Ve } from "vue";
  14. import Ue from "./SEditorImageAdjust.js";
  15. import { n as We } from "./index2.js";
  16. var Pe = { exports: {} };
  17. (function(te, ee) {
  18. (function(Z, ue) {
  19. te.exports = ue();
  20. })(self, function() {
  21. return function() {
  22. var Z, ue = { 90643: function(_) {
  23. _.exports.default = ["إبدأ في الكتابة...", "حول جوديت", "محرر جوديت", null, "دليل مستخدم جوديت", "يحتوي على مساعدة مفصلة للاستخدام", "للحصول على معلومات حول الترخيص، يرجى الذهاب لموقعنا:", "شراء النسخة الكاملة", "حقوق الطبع والنشر © XDSoft.net - Chupurnov Valeriy. كل الحقوق محفوظة.", "مِرْساة", "فتح في نافذة جديدة", "فتح المحرر في الحجم الكامل", "مسح التنسيق", "ملء اللون أو تعيين لون النص", "إعادة", "تراجع", "عريض", "مائل", "إدراج قائمة غير مرتبة", "إدراج قائمة مرتبة", "محاذاة للوسط", "محاذاة مثبتة", "محاذاة لليسار", "محاذاة لليمين", "إدراج خط أفقي", "إدراج صورة", "ادخال الملف", "إدراج فيديو يوتيوب/فيميو ", "إدراج رابط", "حجم الخط", "نوع الخط", "إدراج كتلة تنسيق", "عادي", "عنوان 1", "عنوان 2", "عنوان 3", "عنوان 4", "إقتباس", "كود", "إدراج", "إدراج جدول", "تقليل المسافة البادئة", "زيادة المسافة البادئة", "تحديد أحرف خاصة", "إدراج حرف خاص", "تنسيق الرسم", "تغيير الوضع", "هوامش", "أعلى", "يمين", "أسفل", "يسار", "الأنماط", "الطبقات", "محاذاة", "اليمين", "الوسط", "اليسار", "--غير مضبوط--", "Src", "العنوان", "العنوان البديل", "الرابط", "افتح الرابط في نافذة جديدة", "الصورة", "ملف", "متقدم", "خصائص الصورة", "إلغاء", "حسنا", "يشبه الكود الخاص بك HTML. تبقي كما HTML؟", "الصق ك HTML", "احتفظ", "نظيفة", "إدراج كنص", "إدراج النص فقط", "كلمة لصق الكشف عن", "للصق المحتوى قادم من Microsoft Word/Excel الوثيقة. هل تريد أن تبقي شكل أو تنظيفه ؟ ", "متصفح الملفات", "حدث خطأ في تحميل القائمة ", "حدث خطأ في تحميل المجلدات", "هل أنت واثق؟", "أدخل اسم المجلد", "إنشاء مجلد", "أكتب إسم", "إسقاط صورة", "إسقاط الملف", "أو أنقر", "النص البديل", "تصفح", "رفع", "الخلفية", "نص", "أعلى", "الوسط", "الأسفل", "إدراج عمود قبل", "إدراج عمود بعد", "إدراج صف أعلى", "إدراج صف أسفل", "حذف الجدول", "حذف الصف", "حذف العمود", "خلية فارغة", "مصدر", "بالخط العريض", "مائل", "شغل", "صلة", "إلغاء", "كرر", "طاولة", "صورة", "نظيف", "فقرة", "حجم الخط", "فيديو", "الخط", "حول المحرر", "طباعة", "أكد", "شطب", "المسافة البادئة", "نتوء", "ملء الشاشة", "الحجم التقليدي", "الخط", "قائمة", "قائمة مرقمة", "قطع", "اختر الكل", "قانون", "فتح الرابط", "تعديل الرابط", "سمة Nofollow", "إزالة الرابط", "مراجعة", "لتحرير", "تحديث", "URL", "تحرير", "محاذاة أفقية", "فلتر", "عن طريق التغيير", "بالاسم", "حسب الحجم", "إضافة مجلد", "إعادة", "احتفظ", "حفظ باسم", "تغيير الحجم", "حجم القطع", "عرض", "ارتفاع", "حافظ على النسب", "أن", "لا", "حذف", "تميز", "%d حرف", "%d كلام", null, "تميز %s", "اختر الكل", "محاذاة عمودية", "انشق، مزق", "انقسام عمودي", "تقسيم أفقي", "اذهب", "أضف العمود", "اضف سطر", "حذف", "الحدود", "رخصة %s", "اضرب من خلال", "أكد", "حرف فوقي", "مخطوطة", "قطع الاختيار", "استراحة", "البحث عن", "استبدل ب", "محل", "معجون", "اختر محتوى للصق", "يمكنك فقط تحرير صورك الخاصة. تحميل هذه الصورة على المضيف؟", "تم تحميل الصورة بنجاح على الخادم!", "لوحة", "لا توجد ملفات في هذا الدليل.", "إعادة تسمية", "أدخل اسم جديد", "معاينة", "تحميل", "لصق من الحافظة", "متصفحك لا يدعم إمكانية الوصول المباشر إلى الحافظة.", "نسخ التحديد", "نسخ", "دائرة نصف قطرها الحدود", "عرض كل", "تطبيق", "يرجى ملء هذا المجال", "يرجى إدخال عنوان ويب", "الافتراضي", "دائرة", "نقطة", "المربعة", "البحث", "تجد السابقة", "تجد التالي", "أدخل اسم الفصل", "اضغط البديل لتغيير حجم مخصص"];
  24. }, 52532: function(_) {
  25. _.exports.default = ["Napiš něco", "O Jodit", "Editor Jodit", "Verze pro nekomerční použití", "Jodit Uživatelská příručka", "obsahuje detailní nápovědu", "Pro informace o licenci, prosím, přejděte na naši stránku:", "Koupit plnou verzi", "Copyright © XDSoft.net - Chupurnov Valeriy. Všechna práva vyhrazena.", "Anchor", "Otevřít v nové záložce", "Otevřít v celoobrazovkovém režimu", "Vyčistit formátování", "Barva výplně a písma", "Vpřed", "Zpět", "Tučné", "Kurzíva", "Odrážky", "Číslovaný seznam", "Zarovnat na střed", "Zarovnat do bloku", "Zarovnat vlevo", "Zarovnat vpravo", "Vložit horizontální linku", "Vložit obrázek", "Vložit soubor", "Vložit video (YT/Vimeo)", "Vložit odkaz", "Velikost písma", "Typ písma", "Formátovat blok", "Normální text", "Nadpis 1", "Nadpis 2", "Nadpis 3", "Nadpis 4", "Citát", "Kód", "Vložit", "Vložit tabulku", "Zmenšit odsazení", "Zvětšit odsazení", "Vybrat speciální symbol", "Vložit speciální symbol", "Použít formát", "Změnit mód", "Okraje", "horní", "pravý", "spodní", "levý", "Styly", "Třídy", "Zarovnání", "Vpravo", "Na střed", "Vlevo", "--nenastaveno--", "src", "Titulek", "Alternativní text (alt)", "Link", "Otevřít link v nové záložce", "Obrázek", "soubor", "Rozšířené", "Vlastnosti obrázku", "Zpět", "Ok", "Váš text se podobá HTML. Vložit ho jako HTML?", "Vložit jako HTML", "Ponechat originál", "Vyčistit", "Vložit jako TEXT", "Vložit pouze TEXT", "Detekován fragment z Wordu nebo Excelu", "Obsah, který vkládáte, je pravděpodobně z Microsoft Word / Excel. Chcete ponechat formát nebo vložit pouze text?", "Prohlížeč souborů", "Chyba při načítání seznamu souborů", "Chyba při načítání složek", "Jste si jistý(á)?", "Název složky", "Vytvořit složku", "název", "Přetáhněte sem obrázek", "Přetáhněte sem soubor", "nebo klikněte", "Alternativní text", "Server", "Nahrát", "Pozadí", "Text", "Nahoru", "Na střed", "Dolu", "Vložit sloupec před", "Vložit sloupec za", "Vložit řádek nad", "Vložit řádek pod", "Vymazat tabulku", "Vymazat řádku", "Vymazat sloupec", "Vyčistit buňku", "HTML", "tučně", "kurzíva", "štětec", "odkaz", "zpět", "vpřed", "tabulka", "obrázek", "guma", "odstavec", "velikost písma", "video", "písmo", "о editoru", "tisk", "podtrženo", "přeškrtnuto", "zvětšit odsazení", "zmenšit odsazení", "celoobrazovkový režim", "smrsknout", "Linka", "Odrážka", "Číslovaný seznam", "Vyjmout", "Označit vše", "Kód", "Otevřít odkaz", "Upravit odkaz", "Atribut no-follow", "Odstranit odkaz", "Zobrazit", "Chcete-li upravit", "Aktualizovat", "URL", "Editovat", "Horizontální zarovnání", "Filtr", "Dle poslední změny", "Dle názvu", "Dle velikosti", "Přidat složku", "Reset", "Uložit", "Uložit jako...", "Změnit rozměr", "Ořezat", "Šířka", "Výška", "Ponechat poměr", "Ano", "Ne", "Vyjmout", "Označit", "Znaky: %d", "Slova: %d", "Vše", "Označit %s", "Označit vše", "Vertikální zarovnání", "Rozdělit", "Rozdělit vertikálně", "Rozdělit horizontálně", "Spojit", "Přidat sloupec", "Přidat řádek", "Vymazat", "Okraj", "Licence: %s", "Přeškrtnuto", "Podtrženo", "Horní index", "Dolní index", "Vyjmout označené", "Zalomení", "Najdi", "Nahradit za", "Vyměňte", "Vložit", "Vyber obsah pro vložení", "Můžete upravovat pouze své obrázky. Načíst obrázek?", "Obrázek byl úspěšně nahrán!", "paleta", "V tomto adresáři nejsou žádné soubory.", "přejmenovat", "Zadejte nový název", "náhled", "Stažení", "Vložit ze schránky", "Váš prohlížeč nepodporuje přímý přístup do schránky.", "Kopírovat výběr", "kopírování", "Border radius", "Zobrazit všechny", "Platí", "Prosím, vyplňte toto pole", "Prosím, zadejte webovou adresu", "Výchozí", "Kruh", "Dot", "Quadrate", "Najít", "Najít Předchozí", "Najít Další", "Vložte název třídy", "Stiskněte Alt pro vlastní změnu velikosti"];
  26. }, 75178: function(_) {
  27. _.exports.default = ["Bitte geben Sie einen Text ein", "Über Jodit", "Jodit Editor", null, "Das Jodit Benutzerhandbuch", "beinhaltet ausführliche Informationen wie Sie den Editor verwenden können.", "Für Informationen zur Lizenz, besuchen Sie bitte unsere Web-Präsenz:", "Vollversion kaufen", "Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.", "Anker", "In neuer Registerkarte öffnen", "Editor in voller Größe öffnen", "Formatierung löschen", "Füllfarbe oder Textfarbe ändern", "Wiederholen", "Rückgängig machen", "Fett", "Kursiv", "Unsortierte Liste einfügen", "Nummerierte Liste einfügen", "Mittig ausrichten", "Blocksatz", "Links ausrichten", "Rechts ausrichten", "Horizontale Linie einfügen", "Bild einfügen", "Datei einfügen", "Youtube/vimeo Video einfügen", "Link einfügen", "Schriftgröße", "Schriftfamilie", "Formatblock einfügen", "Normal", "Überschrift 1", "Überschrift 2", "Überschrift 3", "Überschrift 4", "Zitat", "Code", "Einfügen", "Tabelle einfügen", "Einzug verkleinern", "Einzug vergrößern", "Sonderzeichen auswählen", "Sonderzeichen einfügen", "Format kopieren", "Änderungsmodus", "Ränder", "Oben", "Rechts", "Unten", "Links", "CSS Stil", "CSS Klassen", "Ausrichtung", "Rechts", "Zentriert", "Links", "Keine", "Pfad", "Titel", "Alternativer Text", "Link", "Link in neuem Tab öffnen", "Bild", "Datei", "Fortgeschritten", "Bildeigenschaften", "Abbrechen", "OK", "Ihr Text ähnelt HTML-Code. Als HTML beibehalten?", "Als HTML einfügen?", "Original speichern", "Säubern", "Als Text einfügen", "Nur Text einfügen", "In Word formatierter Text erkannt", "Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder bereinigen?", "Dateibrowser", "Fehler beim Laden der Liste", "Fehler beim Laden der Ordner", "Sind Sie sicher?", "Geben Sie den Verzeichnisnamen ein", "Verzeichnis erstellen", "Typname", "Bild hier hinziehen", "Datei löschen", "oder hier klicken", "Alternativtext", "Auswählen", "Hochladen", "Hintergrund", "Text", "Oben", "Mittig", "Unten", "Spalte davor einfügen", "Spalte danach einfügen", "Zeile oberhalb einfügen", "Zeile unterhalb einfügen", "Tabelle löschen", "Zeile löschen", "Spalte löschen", "Zelle leeren", "HTML", "Fett gedruckt", "Kursiv", "Bürste", "Verknüpfung", "Rückgängig machen", "Wiederholen", "Tabelle", "Bild", "Radiergummi", "Absatz", "Schriftgröße", "Video", "Schriftart", "Über", "Drucken", "Unterstreichen", "Durchstreichen", "Einzug", "Herausstellen", "Vollgröße", "Schrumpfen", "die Linie", "Liste von", "Nummerierte Liste", "Schneiden", "Wählen Sie Alle aus", "Code einbetten", "Link öffnen", "Link bearbeiten", "Nofollow-Attribut", "Link entfernen", "Ansehen", "Bearbeiten", "Aktualisieren", "URL", "Bearbeiten", "Horizontale Ausrichtung", "Filter", "Sortieren nach geändert", "Nach Name sortieren", "Nach Größe sortiert", "Ordner hinzufügen", "Wiederherstellen", "Speichern", "Speichern als", "Größe ändern", "Größe anpassen", "Breite", "Höhe", "Seitenverhältnis beibehalten", "Ja", "Nein", "Entfernen", "Markieren", "Zeichen: %d", "Wörter: %d", "Alles markieren", "Markieren: %s", "Alles markieren", "Vertikale Ausrichtung", "Unterteilen", "Vertikal unterteilen", "Horizontal unterteilen", "Vereinen", "Spalte hinzufügen", "Zeile hinzufügen", "Löschen", "Rand", null, "Durchstreichen", "Unterstreichen", "Hochstellen", "Tiefstellen", "Auswahl ausschneiden", "Pause", "Suche nach", "Ersetzen durch", "Ersetzen", "Einfügen", "Wählen Sie den Inhalt zum Einfügen aus", "Sie können nur Ihre eigenen Bilder bearbeiten. Dieses Bild auf den Host herunterladen?", "Das Bild wurde erfolgreich auf den Server hochgeladen!", "Palette", "In diesem Verzeichnis befinden sich keine Dateien.", "Umbenennen", "Geben Sie einen neuen Namen ein", "Vorschau", "Herunterladen", "Aus Zwischenablage einfügen", "Ihr Browser unterstützt keinen direkten Zugriff auf die Zwischenablage.", "Auswahl kopieren", "Kopieren", "Radius für abgerundete Ecken", "Alle anzeigen", "Anwenden", "Bitte füllen Sie dieses Feld aus", "Bitte geben Sie eine Web-Adresse ein", "Standard", "Kreis", "Punkte", "Quadrate", "Suchen", "Suche vorherige", "Weitersuchen", "className (CSS) einfügen", "Drücken Sie Alt für benutzerdefinierte Größenanpassung"];
  28. }, 51048: function(_) {
  29. _.exports.default = { "Type something": "Start writing...", pencil: "Edit", Quadrate: "Square" };
  30. }, 22999: function(_) {
  31. _.exports.default = ["Escriba algo...", "Acerca de Jodit", "Jodit Editor", null, "Guía de usuario Jodit", "contiene ayuda detallada para el uso.", "Para información sobre la licencia, por favor visite nuestro sitio:", "Compre la versión completa", "Copyright © XDSoft.net - Chupurnov Valeriy. Todos los derechos reservados.", "Anclar", "Abrir en nueva pestaña", "Abrir editor en pantalla completa", "Limpiar formato", "Color de relleno o de letra", "Rehacer", "Deshacer", "Negrita", "Cursiva", "Insertar lista no ordenada", "Insertar lista ordenada", "Alinear Centrado", "Alinear Justificado", "Alinear Izquierda", "Alinear Derecha", "Insertar línea horizontal", "Insertar imagen", "Insertar archivo", "Insertar video de Youtube/vimeo", "Insertar vínculo", "Tamaño de letra", "Familia de letra", "Insertar bloque", "Normal", "Encabezado 1", "Encabezado 2", "Encabezado 3", "Encabezado 4", "Cita", "Código", "Insertar", "Insertar tabla", "Disminuir sangría", "Aumentar sangría", "Seleccionar caracter especial", "Insertar caracter especial", "Copiar formato", "Cambiar modo", "Márgenes", "arriba", "derecha", "abajo", "izquierda", "Estilos CSS", "Clases CSS", "Alinear", "Derecha", "Centrado", "Izquierda", "--No Establecido--", "Fuente", "Título", "Texto Alternativo", "Vínculo", "Abrir vínculo en nueva pestaña", "Imagen", "Archivo", "Avanzado", "Propiedades de imagen", "Cancelar", "Aceptar", "El código es similar a HTML. ¿Mantener como HTML?", "Pegar como HTML?", "Mantener", "Limpiar", "Insertar como texto", "Insertar solo texto", "Pegado desde Word detectado", "El contenido pegado proviene de un documento de Microsoft Word/Excel. ¿Desea mantener el formato o limpiarlo?", "Buscar archivo", "Error al cargar la lista", "Error al cargar las carpetas", "¿Está seguro?", "Entre nombre de carpeta", "Crear carpeta", "Entre el nombre", "Soltar imagen", "Soltar archivo", "o click", "Texto alternativo", "Buscar", "Subir", "Fondo", "Texto", "Arriba", "Centro", "Abajo", "Insertar columna antes", "Interar columna después", "Insertar fila arriba", "Insertar fila debajo", "Borrar tabla", "Borrar fila", "Borrar columna", "Vaciar celda", "HTML", "negrita", "cursiva", "Brocha", "Vínculo", "deshacer", "rehacer", "Tabla", "Imagen", "Borrar", "Párrafo", "Tamaño de letra", "Video", "Letra", "Acerca de", "Imprimir", "subrayar", "tachar", "sangría", "quitar sangría", "Tamaño completo", "encoger", "línea horizontal", "lista sin ordenar", "lista ordenada", "Cortar", "Seleccionar todo", "Incluir código", "Abrir vínculo", "Editar vínculo", "No seguir", "Desvincular", "Ver", "Para editar", "Actualizar", "URL", "Editar", "Alineación horizontal", "Filtrar", "Ordenar por fecha modificación", "Ordenar por nombre", "Ordenar por tamaño", "Agregar carpeta", "Resetear", "Guardar", "Guardar como...", "Redimensionar", "Recortar", "Ancho", "Alto", "Mantener relación de aspecto", "Si", "No", "Quitar", "Seleccionar", "Caracteres: %d", "Palabras: %d", "Todo", "Seleccionar: %s", "Seleccionar todo", "Alineación vertical", "Dividir", "Dividir vertical", "Dividir horizontal", "Mezclar", "Agregar columna", "Agregar fila", "Borrar", "Borde", null, "Tachado", "Subrayado", "superíndice", "subíndice", "Cortar selección", "Pausa", "Buscar", "Reemplazar con", "Reemplazar", "Pegar", "Seleccionar contenido para pegar", "Solo puedes editar tus propias imágenes. ¿Descargar esta imagen en el servidor?", "¡La imagen se ha subido correctamente al servidor!", "paleta", "No hay archivos en este directorio.", "renombrar", "Ingresa un nuevo nombre", "avance", "Descargar", "Pegar desde el portapapeles", "Su navegador no soporta el acceso directo en el portapapeles.", "Selección de copia", "copia", "Radio frontera", "Mostrar todos los", "Aplicar", "Por favor, rellene este campo", "Por favor, introduzca una dirección web", "Predeterminado", "Círculo", "Punto", "Cuadro", "Encontrar", "Buscar Anterior", "Buscar Siguiente", "Insertar nombre de clase", "Presione Alt para cambiar el tamaño personalizado"];
  32. }, 34145: function(_) {
  33. _.exports.default = ["Ecrivez ici", "A propos de Jodit", "Editeur Jodit", null, "Guide de l'utilisateur", "Aide détaillée à l'utilisation", "Consulter la licence sur notre site web:", "Acheter la version complète", "Copyright © XDSoft.net - Chupurnov Valeriy. Tous droits réservés.", "Ancre", "Ouvrir dans un nouvel onglet", "Ouvrir l'éditeur en pleine page", "Supprimer le formattage", "Modifier la couleur du fond ou du texte", "Refaire", "Défaire", "Gras", "Italique", "Liste non ordonnée", "Liste ordonnée", "Centrer", "Justifier", "Aligner à gauche ", "Aligner à droite", "Insérer une ligne horizontale", "Insérer une image", "Insérer un fichier", "Insérer une vidéo", "Insérer un lien", "Taille des caractères", "Famille des caractères", "Bloc formatté", "Normal", "Titre 1", "Titre 2", "Titre 3", "Titre 4", "Citation", "Code", "Insérer", "Insérer un tableau", "Diminuer le retrait", "Retrait plus", "Sélectionnez un caractère spécial", "Insérer un caractère spécial", "Cloner le format", "Mode wysiwyg <-> code html", "Marges", "haut", "droite", "Bas", "gauche", "Styles", "Classes", "Alignement", "Droite", "Centre", "Gauche", "--Non disponible--", "Source", "Titre", "Alternative", "Lien", "Ouvrir le lien dans un nouvel onglet", "Image", "fichier", "Avancé", "Propriétés de l'image", "Annuler", "OK", "Votre texte que vous essayez de coller est similaire au HTML. Collez-le en HTML?", "Coller en HTML?", "Sauvegarder l'original", "Nettoyer", "Coller en tant que texte", "Coller le texte seulement", "C'est peut-être un fragment de Word ou Excel", "Le contenu que vous insérez provient d'un document Microsoft Word / Excel. Voulez-vous enregistrer le format ou l'effacer?", "Explorateur de fichiers", "Erreur de liste de chargement", "Erreur de dossier de chargement", "Etes-vous sûrs ?", "Entrer le nom de dossier", "Créer un dossier", "type de fichier", "Coller une image", "Déposer un fichier", "ou cliquer", "Texte de remplacemement", "Chercher", "Charger", "Arrière-plan", "Texte", "Haut", "Milieu", "Bas", "Insérer une colonne avant", "Insérer une colonne après", "Insérer une ligne au dessus", "Insérer une ligne en dessous", "Supprimer le tableau", "Supprimer la ligne", "Supprimer la colonne", "Vider la cellule", "la source", "gras", "italique", "pinceau", "lien", "annuler", "refaire", "tableau", "image", "gomme", "clause", "taille de police", "Video", "police", "à propos de l'éditeur", "impression", "souligné", "barré", "indentation", "retrait", "taille réelle", "taille conventionnelle", "la ligne", "Liste", "Liste numérotée", "Couper", "Sélectionner tout", null, "Ouvrir le lien", "Modifier le lien", "Attribut Nofollow", "Supprimer le lien", "Voir", "Pour éditer", "Mettre à jour", "URL", null, "Alignement horizontal", "Filtre", "Trier par modification", "Trier par nom", "Trier par taille", "Créer le dossier", "Restaurer", "Sauvegarder", "Enregistrer sous", "Changer la taille", "Taille de garniture", "Largeur", "Hauteur", "Garder les proportions", "Oui", "Non", "Supprimer", "Mettre en évidence", "Symboles: %d", "Mots: %d", null, "Mettre en évidence: %s", "Tout sélectionner", "Alignement vertical", "Split", "Split vertical", "Split horizontal", "aller", "Ajouter une colonne", "Ajouter une rangée", "Effacer", "Bordure", null, "Barrer", "Souligner", "exposant", "indice", "Couper la sélection", "Pause", "Rechercher", "Remplacer par", "Remplacer", "Coller", "Choisissez le contenu à coller", "Vous ne pouvez éditer que vos propres images. Téléchargez cette image sur l'hôte?", "L'image a été téléchargée avec succès sur le serveur!", "Palette", "Il n'y a aucun fichier dans ce répertoire.", "renommer", "Entrez un nouveau nom", "Aperçu", "Télécharger", "Coller à partir du presse-papiers", "Votre navigateur ne prend pas en charge l'accès direct au presse-papiers.", "Copier la sélection", "copie", "Rayon des bordures", "Afficher tous", "Appliquer", "Veuillez remplir ce champ", "Veuillez entrer une adresse web", "Par défaut", "Cercle", "Point", "Quadratique", "Trouver", "Précédent", "Suivant", "Insérer un nom de classe", "Appuyez sur Alt pour un redimensionnement personnalisé"];
  34. }, 40272: function(_) {
  35. _.exports.default = ["הקלד משהו...", "About Jodit", "Jodit Editor", null, "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.", "מקום עיגון", "פתח בכרטיסיה חדשה", "פתח את העורך בחלון חדש", "נקה עיצוב", "שנה צבע טקסט או רקע", "בצע שוב", "בטל", "מודגש", "נטוי", "הכנס רשימת תבליטים", "הכנס רשימה ממוספרת", "מרכז", "ישר ", "ישר לשמאל", "ישר לימין", "הכנס קו אופקי", "הכנס תמונה", "הכנס קובץ", "הכנס סרטון וידאו מYouTube/Vimeo", "הכנס קישור", "גודל גופן", "גופן", "מעוצב מראש", "רגיל", "כותרת 1", "כותרת 2", "כותרת 3", "כותרת 4", "ציטוט", "קוד", "הכנס", "הכנס טבלה", "הקטן כניסה", "הגדל כניסה", "בחר תו מיוחד", "הכנס תו מיוחד", "העתק עיצוב", "החלף מצב", "ריווח", "עליון", "ימין", "תחתון", "שמאל", "עיצוב CSS", "מחלקת CSS", "יישור", "ימין", "מרכז", "שמאל", "--לא נקבע--", "מקור", "כותרת", "כיתוב חלופי", "קישור", "פתח בכרטיסיה חדשה", "תמונה", "קובץ", "מתקדם", "מאפייני תמונה", "ביטול", "אישור", "הקוד דומה לHTML, האם להשאיר כHTML", "הדבק כHTML", "השאר", "נקה", "הכנס כטקסט", "הכנס טקסט בלבד", 'זוהתה הדבקה מ"וורד"', "התוכן המודבק מגיע ממסמך וורד/אקסל. האם ברצונך להשאיר את העיצוב או לנקותו", "סייר הקבצים", "שגיאה בזמן טעינת רשימה", "שגיאה בזמן טעינת תקיות", "האם אתה בטוח?", "הכנס שם תקיה", "צור תקיה", "סוג הקובץ", "הסר תמונה", "הסר קובץ", "או לחץ", "כיתוב חלופי", "סייר", "העלה", "רקע", "טקסט", "עליון", "מרכז", "תחתון", "הכנס עמודה לפני", "הכנס עמודה אחרי", "הכנס שורה מעל", "הכנס שורה מתחת", "מחק טבלה", "מחק שורה", "מחק עמודה", "רוקן תא", "HTML", "מודגש", "נטוי", "מברשת", "קישור", "בטל", "בצע שוב", "טבלה", "תמונה", "מחק", "פסקה", "גודל גופן", "וידאו", "גופן", "עלינו", "הדפס", "קו תחתון", "קו חוצה", "הגדל כניסה", "הקטן כניסה", "גודל מלא", "כווץ", "קו אופקי", "רשימת תבליטים", "רשימה ממוספרת", "חתוך", "בחר הכל", "הוסף קוד", "פתח קישור", "ערוך קישור", "ללא מעקב", "בטל קישור", "הצג", "כדי לערוך", "עדכן", "כתובת", "ערוך", "יישור אופקי", "סנן", "מין לפי שינוי", "מיין לפי שם", "מיין לפי גודל", "הוסף תקייה", "אפס", "שמור", "שמור בשם...", "שנה גודל", "חתוך", "רוחב", "גובה", "שמור יחס", "כן", "לא", "הסר", "בחר", "תווים: %d", "מילים: %d", "הכל", "נבחר: %s", "בחר הכל", "יישור אנכי", "פיצול", "פיצול אנכי", "פיצול אופקי", "מזג", "הוסף עמודה", "הוסף שורה", "מחק", "מסגרת", null, "קו חוצה", "קו תחתון", "superscript", "subscript", "גזור בחירה", "שבירת שורה", "חפש", "החלף ב", "להחליף", "הדבק", "בחר תוכן להדבקה", "רק קבצים המשוייכים שלך ניתנים לעריכה. האם להוריד את הקובץ?", "התמונה עלתה בהצלחה!", "לוח", "אין קבצים בספריה זו.", "הונגרית", "הזן שם חדש", "תצוגה מקדימה", "הורד", "להדביק מהלוח", "הדפדפן שלך לא תומך גישה ישירה ללוח.", "העתק בחירה", "העתק", "רדיוס הגבול", "הצג את כל", "החל", "נא למלא שדה זה", "אנא הזן כתובת אינטרנט", "ברירת המחדל", "מעגל", "נקודה", "הריבוע הזה", "למצוא", "מצא את הקודם", "חפש את הבא", "הכנס את שם הכיתה", "לחץ על אלט לשינוי גודל מותאם אישית"];
  36. }, 2978: function(_) {
  37. _.exports.default = ["Írjon be valamit", "Joditról", "Jodit Editor", "Ingyenes változat", "Jodit útmutató", "további segítséget tartalmaz", "További licence információkért látogassa meg a weboldalunkat:", "Teljes verzió megvásárlása", "Copyright © XDSoft.net - Chupurnov Valeriy. Minden jog fenntartva.", "Horgony", "Megnyitás új lapon", "Megnyitás teljes méretben", "Formázás törlése", "Háttér/szöveg szín", "Újra", "Visszavon", "Félkövér", "Dőlt", "Pontozott lista", "Számozott lista", "Középre zárt", "Sorkizárt", "Balra zárt", "Jobbra zárt", "Vízszintes vonal beszúrása", "Kép beszúrás", "Fájl beszúrás", "Youtube videó beszúrása", "Link beszúrás", "Betűméret", "Betűtípus", "Formázott blokk beszúrása", "Normál", "Fejléc 1", "Fejléc 2", "Fejléc 3", "Fejléc 4", "Idézet", "Kód", "Beszúr", "Táblázat beszúrása", "Behúzás csökkentése", "Behúzás növelése", "Speciális karakter kiválasztása", "Speciális karakter beszúrása", "Kép formázása", "Nézet váltása", "Szegélyek", "felső", "jobb", "alsó", "bal", "CSS stílusok", "CSS osztályok", "Igazítás", "Jobbra", "Középre", "Balra", "Nincs", "Forrás", "Cím", "Helyettesítő szöveg", "Link", "Link megnyitása új lapon", "Kép", "Fájl", "Haladó", "Kép tulajdonságai", "Mégsem", "OK", "A beillesztett szöveg HTML-nek tűnik. Megtartsuk HTML-ként?", "Beszúrás HTML-ként", "Megtartás", "Elvetés", "Beszúrás szövegként", "Csak szöveg beillesztése", "Word-ből másolt szöveg", "A beillesztett tartalom Microsoft Word/Excel dokumentumból származik. Meg szeretné tartani a formátumát?", "Fájl tallózó", "Hiba a lista betöltése közben", "Hiba a mappák betöltése közben", "Biztosan ezt szeretné?", "Írjon be egy mappanevet", "Mappa létrehozása", "írjon be bevet", "Húzza ide a képet", "Húzza ide a fájlt", "vagy kattintson", "Helyettesítő szöveg", "Tallóz", "Feltölt", "Háttér", "Szöveg", "Fent", "Középen", "Lent", "Oszlop beszúrás elé", "Oszlop beszúrás utána", "Sor beszúrás fölé", "Sor beszúrás alá", "Táblázat törlése", "Sor törlése", "Oszlop törlése", "Cella tartalmának törlése", "HTML", "Félkövér", "Dőlt", "Ecset", "Link", "Visszavon", "Újra", "Táblázat", "Kép", "Törlés", "Paragráfus", "Betűméret", "Videó", "Betű", "Rólunk", "Nyomtat", "Aláhúzott", "Áthúzott", "Behúzás", "Aussenseiter", "Teljes méret", "Összenyom", "Egyenes vonal", "Lista", "Számozott lista", "Kivág", "Összes kijelölése", "Beágyazott kód", "Link megnyitása", "Link szerkesztése", "Nincs követés", "Link leválasztása", "felülvizsgálat", "Szerkesztés", "Frissít", "URL", "Szerkeszt", "Vízszintes igazítás", "Szűrő", "Rendezés módosítás szerint", "Rendezés név szerint", "Rendezés méret szerint", "Mappa hozzáadás", "Visszaállít", "Mentés", "Mentés másként...", "Átméretezés", "Kivág", "Szélesség", "Magasság", "Képarány megtartása", "Igen", "Nem", "Eltávolít", "Kijelöl", "Karakterek száma: %d", "Szavak száma: %d", "Összes", "Kijelöl: %s", "Összes kijelölése", "Függőleges igazítás", "Felosztás", "Függőleges felosztás", "Vízszintes felosztás", "Összevonás", "Oszlop hozzáadás", "Sor hozzáadás", "Törlés", "Szegély", null, "Áthúzott", "Aláhúzott", "Felső index", "Alsó index", "Kivágás", "Szünet", "Keresés", "Csere erre", "Cserélje ki", "Beillesztés", "Válasszon tartalmat a beillesztéshez", "Csak a saját képeit tudja szerkeszteni. Letölti ezt a képet?", "Kép sikeresen feltöltve!", "Palette", "Er zijn geen bestanden in deze map.", "átnevezés", "Adja meg az új nevet", "előnézet", "Letöltés", "Illessze be a vágólap", "A böngésző nem támogatja a közvetlen hozzáférést biztosít a vágólapra.", "Másolás kiválasztása", "másolás", "Határ sugár", "Összes", "Alkalmazni", "Kérjük, töltse ki ezt a mezőt,", "Kérjük, írja be a webcímet", "Alapértelmezett", "Kör", "Pont", "Quadrate", "Találni", "Megtalálja Előző", "Következő Keresése", "Helyezze be az osztály nevét", "Nyomja meg az Alt egyéni átméretezés"];
  38. }, 99113: function(_) {
  39. _.exports.default = ["Ketik sesuatu", "Tentang Jodit", "Editor Jodit", "Versi Bebas Non-komersil", "Panduan Pengguna Jodit", "mencakup detail bantuan penggunaan", "Untuk informasi tentang lisensi, silakan kunjungi website:", "Beli versi lengkap", "Hak Cipta © XDSoft.net - Chupurnov Valeriy. Hak cipta dilindungi undang-undang.", "Tautan", "Buka di tab baru", "Buka editor dalam ukuran penuh", "Hapus Pemformatan", "Isi warna atau atur warna teks", "Ulangi", "Batalkan", "Tebal", "Miring", "Sisipkan Daftar Tidak Berurut", "Sisipkan Daftar Berurut", "Tengah", "Penuh", "Kiri", "Kanan", "Sisipkan Garis Horizontal", "Sisipkan Gambar", "Sisipkan Berkas", "Sisipkan video youtube/vimeo", "Sisipkan tautan", "Ukuran font", "Keluarga font", "Sisipkan blok format", "Normal", "Heading 1", "Heading 2", "Heading 3", "Heading 4", "Kutip", "Kode", "Sisipkan", "Sisipkan tabel", "Kurangi Indentasi", "Tambah Indentasi", "Pilih Karakter Spesial", "Sisipkan Karakter Spesial", "Formar warna", "Ubah mode", "Batas", "atas", "kanan", "bawah", "kiri", "Gaya", "Class", "Rata", "Kanan", "Tengah", "Kiri", "--Tidak diset--", "Src", "Judul", "Teks alternatif", "Tautan", "Buka tautan di tab baru", "Gambar", "berkas", "Lanjutan", "Properti gambar", "Batal", "Ya", "Kode Anda cenderung ke HTML. Biarkan sebagai HTML?", "Paste sebagai HTML", "Jaga", "Bersih", "Sisipkan sebagai teks", "Sisipkan hanya teks", "Terdeteksi paste dari Word", "Konten dipaste dari dokumen Microsoft Word/Excel. Apakah Anda ingin tetap menjaga format atau membersihkannya?", "Penjelajah Berkas", "Error ketika memuat list", "Error ketika memuat folder", "Apakah Anda yakin?", "Masukkan nama Direktori", "Buat direktori", "ketik nama", "Letakkan gambar", "Letakkan berkas", "atau klik", "Teks alternatif", "Jelajahi", "Unggah", "Latar Belakang", "Teks", "Atas", "Tengah", "Bawah", "Sisipkan kolom sebelumnya", "Sisipkan kolom setelahnya", "Sisipkan baris di atasnya", "Sisipkan baris di bawahnya", "Hapus tabel", "Hapus baris", "Hapus kolom", "Kosongkan cell", "sumber", "tebal", "miring", "sikat", "tautan", "batalkan", "ulangi", "tabel", "gambar", "penghapus", "paragraf", "ukuran font", "video", "font", "tentang", "cetak", "garis bawah", "coret", "menjorok ke dalam", "menjorok ke luar", "ukuran penuh", "menyusut", "hr", "ul", "ol", "potong", "Pilih semua", "Kode embed", "Buka tautan", "Edit tautan", "No follow", "Hapus tautan", "Mata", "pensil", "Perbarui", "URL", "Edit", "Perataan horizontal", "Filter", "Urutkan berdasarkan perubahan", "Urutkan berdasarkan nama", "Urutkan berdasarkan ukuran", "Tambah folder", "Reset", "Simpan", "Simpan sebagai...", "Ubah ukuran", "Crop", "Lebar", "Tinggi", "Jaga aspek rasio", "Ya", "Tidak", "Copot", "Pilih", "Karakter: %d", "Kata: %d", "Semua", "Pilih %s", "Pilih semua", "Rata vertikal", "Bagi", "Bagi secara vertikal", "Bagi secara horizontal", "Gabungkan", "Tambah kolom", "tambah baris", "Hapus", "Bingkai", "Lisensi: %s", "Coret", "Garis Bawah", "Superskrip", "Subskrip", "Potong pilihan", "Berhenti", "Mencari", "Ganti dengan", "Mengganti", "Paste", "Pilih konten untuk dipaste", "Anda hanya dapat mengedit gambar Anda sendiri. Unduh gambar ini di host?", "Gambar telah sukses diunggah ke host!", "palet", "Tidak ada berkas", "ganti nama", "Masukkan nama baru", "pratinjau", "Unduh", "Paste dari clipboard", "Browser anda tidak mendukung akses langsung ke clipboard.", "Copy seleksi", "copy", "Border radius", "Tampilkan semua", "Menerapkan", "Silahkan mengisi kolom ini", "Silahkan masukkan alamat web", "Default", "Lingkaran", "Dot", "Kuadrat", "Menemukan", "Menemukan Sebelumnya", "Menemukan Berikutnya", "Masukkan nama kelas", "Tekan Alt untuk mengubah ukuran kustom"];
  40. }, 51923: function(_) {
  41. _.exports.default = ["Scrivi qualcosa...", "A proposito di Jodit", "Jodit Editor", null, "Guida utente di Jodit", "contiene una guida dettagliata per l'uso.", "Per informazioni sulla licenza, si prega di visitare il nostro sito:", "Acquista la versione completa", "Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.", "Ancora", "Apri in una nuova scheda", "Apri l'editor a schermo intero", "Formato chiaro", "Riempi colore o lettera", "Ripristina", "Annulla", "Grassetto", "Corsivo", "Inserisci lista non ordinata", "Inserisci l'elenco ordinato", "Allinea Centra", "Allineare Giustificato", "Allinea a Sinistra", "Allinea a Destra", "Inserisci la linea orizzontale", "Inserisci immagine", "Inserisci un file", "Inserisci video Youtube/Vimeo", "Inserisci il link", "Dimensione del carattere", "Tipo di font", "Inserisci blocco", "Normale", "Heading 1", "Heading 2", "Heading 3", "Heading 4", "Citazione", "Codice", "Inserisci", "Inserisci tabella", "Riduci il rientro", "Aumenta il rientro", "Seleziona una funzione speciale", "Inserisci un carattere speciale", "Copia formato", "Cambia modo", "Margini", "su", "destra", "giù", "sinistra", "Stili CSS", "Classi CSS", "Allinea", "Destra", "Centro", "Sinistra", "--Non Impostato--", "Fonte", "Titolo", "Testo Alternativo", "Link", "Apri il link in una nuova scheda", "Immagine", "Archivio", "Avanzato", "Proprietà dell'immagine", "Annulla", "Accetta", "Il codice è simile all'HTML. Mantieni come HTML?", "Incolla come HTML?", "Mantieni", "Pulisci", "Inserisci come testo", "Inserisci solo il testo", "Incollato da Word rilevato", "Il contenuto incollato proviene da un documento Microsoft Word / Excel. Vuoi mantenere il formato o pulirlo?", "Cerca il file", "Errore durante il caricamento dell'elenco", "Errore durante il caricamento delle cartelle", "Sei sicuro?", "Inserisci il nome della cartella", "Crea cartella", "Entre el nombre", "Rilascia l'immagine", "Rilascia file", "o click", "Testo alternativo", "Sfoglia", "Carica", "Sfondo", "Testo", "Su", "Centro", "Sotto", "Inserisci prima la colonna", "Inserisci colonna dopo", "Inserisci la riga sopra", "Inserisci la riga sotto", "Elimina tabella", "Elimina riga", "Elimina colonna", "Cella vuota", "HTML", "Grassetto", "Corsivo", "Pennello", "Link", "Annulla", "Ripristina", "Tabella", "Immagine", "Gomma", "Paragrafo", "Dimensione del carattere", "Video", "Font", "Approposito di", "Stampa", "Sottolineato", "Barrato", "trattino", "annulla rientro", "A grandezza normale", "comprimere", "linea orizzontale", "lista non ordinata", "lista ordinata", "Taglia", "Seleziona tutto", "Includi codice", "Apri link", "Modifica link", "Non seguire", "Togli link", "Recensione", "Per modificare", "Aggiornare", " URL", "Modifica", "Allineamento orizzontale", "Filtro", "Ordina per data di modifica", "Ordina per nome", "Ordina per dimensione", "Aggiungi cartella", "Reset", "Salva", "Salva con nome...", "Ridimensiona", "Tagliare", "Larghezza", "Altezza", "Mantenere le proporzioni", "Si", "No", "Rimuovere", "Seleziona", "Caratteri: %d", "Parole: %d", "Tutto", "Seleziona: %s", "Seleziona tutto", "Allineamento verticala", "Dividere", "Dividere verticalmente", "Diviso orizzontale", "Fondi", "Aggiungi colonna", "Aggiungi riga", "Cancella", "Bordo", null, "Barrato", "Sottolineato", "indice", "deponente", "Taglia la selezione", "Pausa", "Cerca", "Sostituisci con", "Sostituire", "Incolla", "Seleziona il contenuto da incollare", "Puoi modificare solo le tue immagini. Scarica questa immagine sul server?", "L'immagine è stata caricata con successo sul server!", "tavolozza", "Non ci sono file in questa directory.", "ungherese", "Inserisci un nuovo nome", "anteprima", "Scaricare", "Incolla dagli appunti", "Il tuo browser non supporta l'accesso diretto agli appunti.", "Selezione di copia", "copia", "Border radius", "Mostra tutti", "Applicare", "Si prega di compilare questo campo", "Si prega di inserire un indirizzo web", "Di Default", "Cerchio", "Dot", "Quadrate", "Trovare", "Trova Precedente", "Trova Successivo", "Inserisci il nome della classe", "Premere Alt per il ridimensionamento personalizzato"];
  42. }, 21268: function(_) {
  43. _.exports.default = ["なにかタイプしてください", "Joditについて", "Jodit Editor", null, "Jodit ユーザーズ・ガイド", "詳しい使い方", "ライセンス詳細についてはJodit Webサイトを確認ください:", "フルバージョンを購入", "Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.", "Anchor", "新しいタブで開く", "エディターのサイズ(フル/ノーマル)", "書式をクリア", "テキストの色", "やり直し", "元に戻す", "太字", "斜体", "箇条書き", "番号付きリスト", "中央揃え", "両端揃え", "左揃え", "右揃え", "区切り線を挿入", "画像を挿入", "ファイルを挿入", "Youtube/Vimeo 動画", "リンクを挿入", "フォントサイズ", "フォント", "テキストのスタイル", "指定なし", "タイトル1", "タイトル2", "タイトル3", "タイトル4", "引用", "コード", "挿入", "表を挿入", "インデント減", "インデント増", "特殊文字を選択", "特殊文字を挿入", "書式を貼付け", "編集モード切替え", "マージン", "上", "右", "下", "左", "スタイル", "クラス", "配置", "右寄せ", "中央寄せ", "左寄せ", "指定なし", "ソース", "タイトル", "代替テキスト", "リンク", "新しいタブで開く", "画像", "ファイル", "高度な設定", "画像のプロパティー", "キャンセル", "確定", "HTMLコードを保持しますか?", "HTMLで貼付け", "HTMLを保持", "Clean", "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?", "File Browser", "Error on load list", "Error on load folders", "Are you sure?", "Enter Directory name", "Create directory", "type name", "ここに画像をドロップ", "ここにファイルをドロップ", "or クリック", "代替テキスト", "ブラウズ", "アップロード", "背景", "文字", "上", "中央", "下", "左に列を挿入", "右に列を挿入", "上に行を挿入", "下に行を挿入", "表を削除", "行を削除", "列を削除", "セルを空にする", "source", "bold", "italic", "brush", "link", "undo", "redo", "table", "image", "eraser", "paragraph", "fontsize", "video", "font", "about", "print", "underline", "strikethrough", "indent", "outdent", "fullsize", "shrink", "分割線", "箇条書き", "番号付きリスト", "切り取り", "すべて選択", "埋め込みコード", "リンクを開く", "リンクを編集", "No follow", "リンク解除", "サイトを確認", "鉛筆", "更新", "URL", "編集", "水平方向の配置", "Filter", "Sort by changed", "Sort by name", "Sort by size", "Add folder", "リセット", "保存", "Save as ...", "リサイズ", "Crop", "幅", "高さ", "縦横比を保持", "はい", "いいえ", "移除", "選択", "文字数: %d", "単語数: %d", "全部", "選択: %s", "すべて選択", "垂直方向の配置", "分割", "セルの分割(垂直方向)", "セルの分割(水平方向)", "セルの結合", "列を追加", "行を追加", "削除", "境界線", null, "取り消し線", "下線", "上付き文字", "下付き文字", "切り取り", "Pause", "検索", "置換", "交換", "貼付け", "選択した内容を貼付け", "You can only edit your own images. Download this image on the host?", "The image has been successfully uploaded to the host!", "パレット", "There are no files", "Rename", "Enter new name", "プレビュー", "ダウンロード", "貼り付け", "お使いのブラウザはクリップボードを使用できません", "コピー", "copy", "角の丸み", "全て表示", "適用", "まだこの分野", "を入力してくださいウェブアドレス", "デフォルト", "白丸", "黒丸", "四角", "見", "探前", "由来", "クラス名を挿入", "カスタムサイズ変更のためのAltキーを押します"];
  44. }, 11399: function(_) {
  45. _.exports.default = ["Type something", "About Jodit", "Jodit Editor", "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.", "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", "Advanced", "Image properties", "Cancel", "Ok", "Your code is similar to HTML. Keep as HTML?", "Paste as HTML", "Keep", "Clean", "Insert as Text", "Insert only 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?", "File Browser", "Error on load list", "Error on load folders", "Are you sure?", "Enter Directory name", "Create directory", "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", "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", "Unlink", "Eye", "pencil", "Update", " 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", "Words: %d", "All", "Select %s", "Select all", "Vertical align", "Split", "Split vertical", "Split horizontal", "Merge", "Add column", "Add row", "Delete", "Border", "License: %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"];
  46. }, 37289: function(_) {
  47. _.exports.default = ["무엇이든 입력하세요", "Jodit에 대하여", "Jodit Editor", null, "Jodit 사용자 안내서", "자세한 도움말이 들어있어요", "라이센스에 관해서는 Jodit 웹 사이트를 방문해주세요:", "풀 버전 구입하기", "© XDSoft.net - Chupurnov Valeriy. 에게 저작권과 모든 권리가 있습니다.", "Anchor", "새 탭에서 열기", "전체 크기로 보기", "서식 지우기", "글씨 색상", "재실행", "실행 취소", "굵게", "기울임", "글머리 목록", "번호 목록", "가운데 정렬", "양쪽 정렬", "왼쪽 정렬", "오른쪽 정렬", "수평 구분선 넣기", "이미지 넣기", "파일 넣기", "Youtube/Vimeo 동영상", "링크 넣기", "글꼴 크기", "글꼴", "블록 요소 넣기", "일반 텍스트", "제목 1", "제목 2", "제목 3", "제목 4", "인용", "코드", "붙여 넣기", "테이블", "들여쓰기 감소", "들여쓰기 증가", "특수문자 선택", "특수문자 입력", "페인트 형식", "편집모드 변경", "마진", "위", "오른쪽", "아래", "왼쪽", "스타일", "클래스", "정렬", "오른쪽으로", "가운데로", "왼쪽으로", "--지정 안 함--", "경로(src)", "제목", "대체 텍스트(alt)", "링크", "새 탭에서 열기", null, "파일", "고급", "이미지 속성", "취소", "확인", "HTML 코드로 감지했어요. 코드인채로 붙여넣을까요?", "HTML로 붙여넣기", "원본 유지", "지우기", "텍스트로 넣기", "텍스트만 넣기", "Word 붙여넣기 감지", "Microsoft Word/Excel 문서로 감지했어요. 서식을 유지한채로 붙여넣을까요?", "파일 탐색기", "목록 불러오기 에러", "폴더 불러오기", "정말 진행할까요?", "디렉토리 이름 입력", "디렉토리 생성", "이름 입력", "이미지 드래그", "파일 드래그", "혹은 클릭", "대체 텍스트", "탐색", "업로드", "배경", "텍스트", "위", "중앙", "아래", "이전 열에 삽입", "다음 열에 삽입", "위 행에 삽입", "아래 행에 삽입", "테이블 삭제", "행 삭제", "열 삭제", "빈 셀", "HTML 소스", "볼드", "이탤릭", "브러시", "링크", "실행 취소", "재실행", "테이블", "이미지", "지우개", "문단", "글꼴 크기", "비디오", "글꼴", "편집기 정보", "프린트", "밑줄", "취소선", "들여쓰기", "내어쓰기", "전체 화면", "일반 화면", "구분선", "글머리 목록", "번호 목록", "잘라내기", "모두 선택", "Embed 코드", "링크 열기", "링크 편집", "No follow", "링크 제거", "사이트 확인", "연필", "갱신", "URL", "편집", "수평 정렬", "필터", "변경일 정렬", "이름 정렬", "크기 정렬", "새 폴더", "초기화", "저장", "새로 저장하기 ...", "리사이즈", "크롭", "가로 길이", "세로 높이", "비율 유지하기", "네", "아니오", "제거", "선택", "문자수: %d", "단어수: %d", "모두", "선택: %s", "모두 선택", "수직 정렬", "분할", "세로 셀 분할", "가로 셀 분할", "셀 병합", "열 추가", "행 추가", "삭제", "외곽선", "라이센스: %s", "취소선", "밑줄", "윗첨자", "아래첨자", "선택 잘라내기", "구분자", "검색", "대체하기", "대체", "붙여넣기", "붙여넣을 내용 선택", "외부 이미지는 편집할 수 없어요. 외부 이미지를 다운로드 할까요?", "이미지를 무사히 업로드 했어요!", "팔레트", "파일이 없어요", "이름 변경", "새 이름 입력", "미리보기", "다운로드", "클립보드 붙여넣기", "사용중인 브라우저가 클립보드 접근을 지원하지 않아요.", "선택 복사", "복사", "둥근 테두리", "모두 보기", "적용", "이 항목을 입력해주세요!", "웹 URL을 입력해주세요.", "기본", "원", "점", "정사각형", "찾기", "이전 찾기", "다음 찾기", "className 입력", "사용자 지정 크기 조정에 대 한 고도 누르십시오"];
  48. }, 17084: function(_) {
  49. _.exports.default = ["Begin met typen..", "Over Jodit", "Jodit Editor", "Gratis niet-commerciële versie", "Jodit gebruikershandleiding", "bevat gedetailleerde informatie voor gebruik.", "Voor informatie over de licentie, ga naar onze website:", "Volledige versie kopen", "Copyright © XDSoft.net - Chupurnov Valeriy. Alle rechten voorbehouden.", "Anker", "Open in nieuwe tab", "Editor in volledig scherm openen", "Opmaak verwijderen", "Vulkleur of tekstkleur aanpassen", "Opnieuw", "Ongedaan maken", "Vet", "Cursief", "Geordende list invoegen", "Ongeordende lijst invoegen", "Centreren", "Uitlijnen op volledige breedte", "Links uitlijnen", "Rechts uitlijnen", "Horizontale lijn invoegen", "Afbeelding invoegen", "Bestand invoegen", "Youtube/Vimeo video invoegen", "Link toevoegen", "Tekstgrootte", "Lettertype", "Format blok invoegen", "Normaal", "Koptekst 1", "Koptekst 2", "Koptekst 3", "Koptekst 4", "Citaat", "Code", "Invoegen", "Tabel invoegen", "Inspringing verkleinen", "Inspringing vergroten", "Symbool selecteren", "Symbool invoegen", "Opmaak kopieren", "Modus veranderen", "Marges", "Boven", "Rechts", "Onder", "Links", "CSS styles", "CSS classes", "Uitlijning", "Rechts", "Gecentreerd", "Links", "--Leeg--", "Src", "Titel", "Alternatieve tekst", "Link", "Link in nieuwe tab openen", "Afbeelding", "Bestand", "Geavanceerd", "Afbeeldingseigenschappen", "Annuleren", "OK", "Deze code lijkt op HTML. Als HTML behouden?", "Invoegen als HTML", "Origineel behouden", "Opschonen", "Als tekst invoegen", "Als onopgemaakte tekst invoegen", "Word-tekst gedetecteerd", "De geplakte tekst is afkomstig van een Microsoft Word/Excel document. Wil je de opmaak behouden of opschonen?", "Bestandsbrowser", "Fout bij het laden van de lijst", "Fout bij het laden van de mappenlijst", "Weet je het zeker?", "Geef de map een naam", "Map aanmaken", "Type naam", "Sleep hier een afbeelding naartoe", "Sleep hier een bestand naartoe", "of klik", "Alternatieve tekst", "Bladeren", "Uploaden", "Achtergrond", "Tekst", "Boven", "Midden", "Onder", "Kolom invoegen (voor)", "Kolom invoegen (na)", "Rij invoegen (boven)", "Rij invoegen (onder)", "Tabel verwijderen", "Rij verwijderen", "Kolom verwijderen", "Cel leegmaken", "Broncode", "vet", "cursief", "kwast", "link", "ongedaan maken", "opnieuw", "tabel", "afbeelding", "gum", "paragraaf", "lettergrootte", "video", "lettertype", "over", "afdrukken", "onderstreept", "doorgestreept", "inspringen", "minder inspringen", "volledige grootte", "kleiner maken", "horizontale lijn", "lijst", "genummerde lijst", "knip", "alles selecteren", "Embed code", "link openen", "link aanpassen", "niet volgen", "link verwijderen", "Recensie", "Om te bewerken", "Updaten", " URL", "Bewerken", "Horizontaal uitlijnen", "Filteren", "Sorteren op wijzigingsdatum", "Sorteren op naam", "Sorteren op grootte", "Map toevoegen", "Herstellen", "Opslaan", "Opslaan als ...", "Grootte aanpassen", "Bijknippen", "Breedte", "Hoogte", "Verhouding behouden", "Ja", "Nee", "Verwijderen", "Selecteren", "Tekens: %d", "Woorden: %d", "Alles", "Selecteer: %s", "Selecteer alles", "Verticaal uitlijnen", "Splitsen", "Verticaal splitsen", "Horizontaal splitsen", "Samenvoegen", "Kolom toevoegen", "Rij toevoegen", "Verwijderen", "Rand", null, "Doorstrepen", "Onderstrepen", "Superscript", "Subscript", "Selectie knippen", "Enter", "Zoek naar", "Vervangen door", "Vervangen", "Plakken", "Kies content om te plakken", "Je kunt alleen je eigen afbeeldingen aanpassen. Deze afbeelding downloaden?", "De afbeelding is succesvol geüploadet!", "Palette", "Er zijn geen bestanden in deze map.", "Hongaars", "Voer een nieuwe naam in", "voorvertoning", "Download", "Plakken van klembord", "Uw browser ondersteunt geen directe toegang tot het klembord.", "Selectie kopiëren", "kopiëren", "Border radius", "Toon alle", "Toepassing", "Vul dit veld", "Voer een webadres", "Standaard", "Cirkel", "Dot", "Quadrate", "Zoeken", "Vorige Zoeken", "Volgende Zoeken", "Voeg de klassenaam in", "Druk op Alt voor aangepaste grootte"];
  50. }, 96891: function(_) {
  51. _.exports.default = ["Napisz coś", "O Jodit", "Edytor Jodit", null, "Instrukcja Jodit", "zawiera szczegółowe informacje dotyczące użytkowania.", "Odwiedź naszą stronę, aby uzyskać więcej informacji na temat licencji:", "Zakup pełnej wersji", "Copyright © XDSoft.net - Chupurnov Valeriy. Wszystkie prawa zastrzeżone.", "Kotwica", "Otwórz w nowej zakładce", "Otwórz edytor w pełnym rozmiarze", "Wyczyść formatowanie", "Kolor wypełnienia lub ustaw kolor tekstu", "Ponów", "Cofnij", "Pogrubienie", "Kursywa", "Wstaw listę wypunktowaną", "Wstaw listę numeryczną", "Wyśrodkuj", "Wyjustuj", "Wyrównaj do lewej", "Wyrównaj do prawej", "Wstaw linię poziomą", "Wstaw grafikę", "Wstaw plik", "Wstaw film Youtube/vimeo", "Wstaw link", "Rozmiar tekstu", "Krój czcionki", "Wstaw formatowanie", "Normalne", "Nagłówek 1", "Nagłówek 2", "Nagłówek 3", "Nagłówek 4", "Cytat", "Kod", "Wstaw", "Wstaw tabelę", "Zmniejsz wcięcie", "Zwiększ wcięcie", "Wybierz znak specjalny", "Wstaw znak specjalny", "Malarz formatów", "Zmień tryb", "Marginesy", "Górny", "Prawy", "Dolny", "Levy", "Style CSS", "Klasy CSS", "Wyrównanie", "Prawa", "środek", "Lewa", "brak", "Źródło", "Tytuł", "Tekst alternatywny", "Link", "Otwórz w nowej zakładce", "Grafika", "Plik", "Zaawansowane", "Właściwości grafiki", "Anuluj", "OK", "Twój kod wygląda jak HTML. Zachować HTML?", "Wkleić jako HTML?", "Oryginalny tekst", "Wyczyść", "Wstaw jako tekst", "Wstaw tylko treść", "Wykryto tekst w formacie Word", "Wklejany tekst pochodzi z dokumentu Microsoft Word/Excel. Chcesz zachować ten format czy wyczyścić go? ", "Przeglądarka plików", "Błąd ładowania listy plików", "Błąd ładowania folderów", "Czy jesteś pewien?", "Wprowadź nazwę folderu", "Utwórz folder", "wprowadź nazwę", "Upuść plik graficzny", "Upuść plik", "lub kliknij tu", "Tekst alternatywny", "Przeglądaj", "Wczytaj", "Tło", "Treść", "Góra", "Środek", "Dół", "Wstaw kolumnę przed", "Wstaw kolumnę po", "Wstaw wiersz przed", "Wstaw wiersz po", "Usuń tabelę", "Usuń wiersz", "Usuń kolumnę", "Wyczyść komórkę", "HTML", "pogrubienie", "kursywa", "pędzel", "link", "cofnij", "ponów", "tabela", "grafika", "wyczyść", "akapit", "rozmiar czcionki", "wideo", "czcionka", "O programie", "drukuj", "podkreślenie", "przekreślenie", "wcięcie", "wycięcie", "pełen rozmiar", "przytnij", "linia pozioma", "lista", "lista numerowana", "wytnij", "zaznacz wszystko", "Wstaw kod", "otwórz link", "edytuj link", "Atrybut no-follow", "Usuń link", "szukaj", "edytuj", "Aktualizuj", "URL", "Edytuj", "Wyrównywanie w poziomie", "Filtruj", "Sortuj wg zmiany", "Sortuj wg nazwy", "Sortuj wg rozmiaru", "Dodaj folder", "wyczyść", "zapisz", "zapisz jako", "Zmień rozmiar", "Przytnij", "Szerokość", "Wysokość", "Zachowaj proporcje", "Tak", "Nie", "Usuń", "Wybierz", "Znaki: %d", "Słowa: %d", "Wszystko", "Wybierz: %s", "Wybierz wszystko", "Wyrównywanie w pionie", "Podziel", "Podziel w pionie", "Podziel w poziomie", "Scal", "Dodaj kolumnę", "Dodaj wiersz", "Usuń", "Obramowanie", null, "Przekreślenie", "Podkreślenie", "indeks górny", "index dolny", "Wytnij zaznaczenie", "Przerwa", "Szukaj", "Zamień na", "Wymienić", "Wklej", "Wybierz zawartość do wklejenia", "Możesz edytować tylko swoje grafiki. Czy chcesz pobrać tą grafikę?", "Grafika została pomyślnienie dodana na serwer", "Paleta", "Brak plików.", "zmień nazwę", "Wprowadź nową nazwę", "podgląd", "pobierz", "Wklej ze schowka", "Twoja przeglądarka nie obsługuje schowka", "Kopiuj zaznaczenie", "kopiuj", "Zaokrąglenie krawędzi", "Pokaż wszystkie", "Zastosuj", "Proszę wypełnić to pole", "Proszę, wpisz adres sieci web", "Domyślnie", "Koło", "Punkt", "Kwadrat", "Znaleźć", "Znaleźć Poprzednie", "Znajdź Dalej", "Wstaw nazwę zajęć", "Naciśnij Alt, aby zmienić rozmiar"];
  52. }, 31211: function(_) {
  53. _.exports.default = ["Escreva algo...", "Sobre o Jodit", "Editor Jodit", null, "Guia de usuário Jodit", "contém ajuda detalhada para o uso.", "Para informação sobre a licença, por favor visite nosso site:", "Compre a versão completa", "Copyright © XDSoft.net - Chupurnov Valeriy. Todos os direitos reservados.", "Link", "Abrir em nova aba", "Abrir editor em tela cheia", "Limpar formatação", "Cor de preenchimento ou cor do texto", "Refazer", "Desfazer", "Negrito", "Itálico", "Inserir lista não ordenada", "Inserir lista ordenada", "Centralizar", "Justificar", "Alinhar à Esquerda", "Alinhar à Direita", "Inserir linha horizontal", "Inserir imagem", "Inserir arquivo", "Inserir vídeo do Youtube/vimeo", "Inserir link", "Tamanho da letra", "Fonte", "Inserir bloco", "Normal", "Cabeçalho 1", "Cabeçalho 2", "Cabeçalho 3", "Cabeçalho 4", "Citação", "Código", "Inserir", "Inserir tabela", "Diminuir recuo", "Aumentar recuo", "Selecionar caractere especial", "Inserir caractere especial", "Copiar formato", "Mudar modo", "Margens", "cima", "direta", "baixo", "esquerda", "Estilos CSS", "Classes CSS", "Alinhamento", "Direita", "Centro", "Esquerda", "--Não Estabelecido--", "Fonte", "Título", "Texto Alternativo", "Link", "Abrir link em nova aba", "Imagem", "Arquivo", "Avançado", "Propriedades da imagem", "Cancelar", "Ok", "Seu código é similar ao HTML. Manter como HTML?", "Colar como HTML?", "Manter", "Limpar", "Inserir como Texto", "Inserir somente o Texto", "Colado do Word Detectado", "O conteúdo colado veio de um documento Microsoft Word/Excel. Você deseja manter o formato ou limpa-lo?", "Procurar arquivo", "Erro ao carregar a lista", "Erro ao carregar as pastas", "Você tem certeza?", "Escreva o nome da pasta", "Criar pasta", "Escreva seu nome", "Soltar imagem", "Soltar arquivo", "ou clique", "Texto alternativo", "Explorar", "Upload", "Fundo", "Texto", "Cima", "Meio", "Baixo", "Inserir coluna antes", "Inserir coluna depois", "Inserir linha acima", "Inserir linha abaixo", "Excluir tabela", "Excluir linha", "Excluir coluna", "Limpar célula", "HTML", "negrito", "itálico", "pincel", "link", "desfazer", "refazer", "tabela", "imagem", "apagar", "parágrafo", "tamanho da letra", "vídeo", "fonte", "Sobre de", "Imprimir", "sublinhar", "tachado", "recuar", "diminuir recuo", "Tamanho completo", "diminuir", "linha horizontal", "lista não ordenada", "lista ordenada", "Cortar", "Selecionar tudo", "Incluir código", "Abrir link", "Editar link", "Não siga", "Remover link", "Visualizar", "Editar", "Atualizar", "URL", "Editar", "Alinhamento horizontal", "filtrar", "Ordenar por modificação", "Ordenar por nome", "Ordenar por tamanho", "Adicionar pasta", "Resetar", "Salvar", "Salvar como...", "Redimensionar", "Recortar", "Largura", "Altura", "Manter a proporção", "Sim", "Não", "Remover", "Selecionar", "Caracteres: %d", "Palavras: %d", "Tudo", "Selecionar: %s", "Selecionar tudo", "Alinhamento vertical", "Dividir", "Dividir vertical", "Dividir horizontal", "Mesclar", "Adicionar coluna", "Adicionar linha", "Excluir", "Borda", null, "Tachado", "Sublinhar", "sobrescrito", "subscrito", "Cortar seleção", "Pausa", "Procurar por", "Substituir com", "Substituir", "Colar", "Escolher conteúdo para colar", "Você só pode editar suas próprias imagens. Baixar essa imagem pro servidor?", "A imagem foi enviada com sucesso para o servidor!", "Palette", "Não há arquivos nesse diretório.", "Húngara", "Digite um novo nome", "preview", "Baixar", "Colar da área de transferência", "O seu navegador não oferece suporte a acesso direto para a área de transferência.", "Selecção de cópia", "cópia", "Border radius", "Mostrar todos os", "Aplicar", "Por favor, preencha este campo", "Por favor introduza um endereço web", "Padrão", "Círculo", "Ponto", "Quadro", "Encontrar", "Encontrar Anteriores", "Localizar Próxima", "Insira o nome da classe", "Pressione Alt para redimensionamento personalizado"];
  54. }, 31109: function(_) {
  55. _.exports.default = ["Напишите что-либо", "О Jodit", "Редактор Jodit", null, "Jodit Руководство пользователя", "содержит детальную информацию по использованию", "Для получения сведений о лицензии , пожалуйста, перейдите на наш сайт:", "Купить полную версию", "Авторские права © XDSoft.net - Чупурнов Валерий. Все права защищены.", "Анкор", "Открывать ссылку в новой вкладке", "Открыть редактор в полном размере", "Очистить форматирование", "Цвет заливки или цвет текста", "Повтор", "Отмена", "Жирный", "Наклонный", "Вставка маркированного списка", "Вставить нумерованный список", "Выровнять по центру", "Выровнять по ширине", "Выровнять по левому краю", "Выровнять по правому краю", "Вставить горизонтальную линию", "Вставить изображение", "Вставить файл", "Вставьте видео", "Вставить ссылку", "Размер шрифта", "Шрифт", "Вставить блочный элемент", "Нормальный текст", "Заголовок 1", "Заголовок 2", "Заголовок 3", "Заголовок 4", "Цитата", "Код", "Вставить", "Вставить таблицу", "Уменьшить отступ", "Увеличить отступ", "Выберите специальный символ", "Вставить специальный символ", "Формат краски", "Источник", "Отступы", "сверху", "справа", "снизу", "слева", "Стили", "Классы", "Выравнивание", "По правому краю", "По центру", "По левому краю", "--не устанавливать--", "src", "Заголовок", "Альтернативный текст (alt)", "Ссылка", "Открывать ссылку в новом окне", null, "Файл", "Расширенные", "Свойства изображения", "Отмена", "Ок", "Ваш текст, который вы пытаетесь вставить похож на HTML. Вставить его как HTML?", "Вставить как HTML?", "Сохранить оригинал", "Почистить", "Вставить как текст", "Вставить только текст", "Возможно это фрагмент Word или Excel", "Контент который вы вставляете поступает из документа Microsoft Word / Excel. Вы хотите сохранить формат или очистить его?", "Браузер файлов", "Ошибка при загрузке списка изображений", "Ошибка при загрузке списка директорий", "Вы уверены?", "Введите название директории", "Создать директорию", "введите название", "Перетащите сюда изображение", "Перетащите сюда файл", "или нажмите", "Альтернативный текст", "Сервер", "Загрузка", "Фон", "Текст", " К верху", "По середине", "К низу", "Вставить столбец до", "Вставить столбец после", "Вставить ряд выше", "Вставить ряд ниже", "Удалить таблицу", "Удалять ряд", "Удалить столбец", "Очистить ячейку", "HTML", "жирный", "курсив", "заливка", "ссылка", "отменить", "повторить", "таблица", "Изображение", "очистить", "параграф", "размер шрифта", "видео", "шрифт", "о редакторе", "печать", "подчеркнутый", "перечеркнутый", "отступ", "выступ", "во весь экран", "обычный размер", "линия", "Список", "Нумерованный список", "Вырезать", "Выделить все", "Код", "Открыть ссылку", "Редактировать ссылку", "Атрибут nofollow", "Убрать ссылку", "Просмотр", "Редактировать", "Обновить", "URL", "Редактировать", "Горизонтальное выравнивание", "Фильтр", "По изменению", "По имени", "По размеру", "Добавить папку", "Восстановить", "Сохранить", "Сохранить как", "Изменить размер", "Обрезать размер", "Ширина", "Высота", "Сохранять пропорции", "Да", "Нет", "Удалить", "Выделить", "Символов: %d", "Слов: %d", "Выделить все", "Выделить: %s", "Выделить все", "Вертикальное выравнивание", "Разделить", "Разделить по вертикали", "Разделить по горизонтали", "Объединить в одну", "Добавить столбец", "Добавить строку", "Удалить", "Рамка", "Лицензия: %s", "Перечеркнуть", "Подчеркивание", "верхний индекс", "индекс", "Вырезать", "Разделитель", "Найти", "Заменить на", "Заменить", "Вставить", "Выбрать контент для вставки", "Вы можете редактировать только свои собственные изображения. Загрузить это изображение на ваш сервер?", "Изображение успешно загружено на сервер!", "палитра", "В данном каталоге нет файлов", "Переименовать", "Введите новое имя", "Предпросмотр", "Скачать", "Вставить из буфера обмена", "Ваш браузер не поддерживает прямой доступ к буферу обмена.", "Скопировать выделенное", "копия", "Радиус границы", "Показать все", "Применить", "Пожалуйста, заполните это поле", "Пожалуйста, введите веб-адрес", "По умолчанию", "Круг", "Точка", "Квадрат", "Найти", "Найти Предыдущие", "Найти Далее", "Вставить название класса", "Нажмите Alt для изменения пользовательского размера"];
  56. }, 79375: function(_) {
  57. _.exports.default = ["Bir şeyler yaz", "Jodit Hakkında", "Jodit Editor", null, "Jodit Kullanım Kılavuzu", "kullanım için detaylı bilgiler içerir", "Lisans hakkında bilgi için lütfen web sitemize gidin:", "Tam versiyonunu satın al", "Copyright © XDSoft.net - Chupurnov Valeriy. Tüm hakları saklıdır.", "Bağlantı", "Yeni sekmede aç", "Editörü tam ekranda aç", "Stili temizle", "Renk doldur veya yazı rengi seç", "Yinele", "Geri Al", "Kalın", "İtalik", "Sırasız Liste Ekle", "Sıralı Liste Ekle", "Ortala", "Kenarlara Yasla", "Sola Yasla", "Sağa Yasla", "Yatay Çizgi Ekle", "Resim Ekle", "Dosya Ekle", "Youtube/Vimeo Videosu Ekle", "Bağlantı Ekle", "Font Boyutu", "Font Ailesi", "Blok Ekle", "Normal", "Başlık 1", "Başlık 2", "Başlık 3", "Başlık 4", "Alıntı", "Kod", "Ekle", "Tablo Ekle", "Girintiyi Azalt", "Girintiyi Arttır", "Özel Karakter Seç", "Özel Karakter Ekle", "Resim Biçimi", "Mod Değiştir", "Boşluklar", "Üst", "Sağ", "Alt", "Sol", "CSS Stilleri", "CSS Sınıfları", "Hizalama", "Sağ", "Ortalı", "Sol", "Belirsiz", "Kaynak", "Başlık", "Alternatif Yazı", "Link", "Bağlantıyı yeni sekmede aç", "Resim", "Dosya", "Gelişmiş", "Resim özellikleri", "İptal", "Tamam", "Kodunuz HTML koduna benziyor. HTML olarak devam etmek ister misiniz?", "HTML olarak yapıştır", "Sakla", "Temizle", "Yazı olarak ekle", "Sadece yazıyı ekle", "Word biçiminde yapıştırma algılandı", "Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder löschen?", "Dosya Listeleyici", "Liste yüklenirken hata oluştu", "Klasörler yüklenirken hata oluştur", "Emin misiniz?", "Dizin yolu giriniz", "Dizin oluştur", "İsim yaz", "Resim bırak", "Dosya bırak", "veya tıkla", "Alternatif yazı", "Gözat", "Yükle", "Arka plan", "Yazı", "Üst", "Orta", "Aşağı", "Öncesine kolon ekle", "Sonrasına kolon ekle", "Üstüne satır ekle", "Altına satır ekle", "Tabloyu sil", "Satırı sil", "Kolonu sil", "Hücreyi temizle", "Kaynak", "Kalın", "italik", "Fırça", "Bağlantı", "Geri al", "Yinele", "Tablo", "Resim", "Silgi", "Paragraf", "Font boyutu", "Video", "Font", "Hakkında", "Yazdır", "Alt çizgi", "Üstü çizili", "Girinti", "Çıkıntı", "Tam ekran", "Küçült", "Ayraç", "Sırasız liste", "Sıralı liste", "Kes", "Tümünü seç", "Kod ekle", "Bağlantıyı aç", "Bağlantıyı düzenle", "Nofollow özelliği", "Bağlantıyı kaldır", "Yorumu", "Düzenlemek için", "Güncelle", "URL", "Düzenle", "Yatay hizala", "Filtre", "Değişime göre sırala", "İsme göre sırala", "Boyuta göre sırala", "Klasör ekle", "Sıfırla", "Kaydet", "Farklı kaydet", "Boyutlandır", "Kırp", "Genişlik", "Yükseklik", "En boy oranını koru", "Evet", "Hayır", "Sil", "Seç", "Harfler: %d", "Kelimeler: %d", "Tümü", "Seç: %s", "Tümünü seç", "Dikey hizala", "Ayır", "Dikey ayır", "Yatay ayır", "Birleştir", "Kolon ekle", "Satır ekle", "Sil", "Kenarlık", null, "Üstü çizili", "Alt çizgi", "Üst yazı", "Alt yazı", "Seçilimi kes", "Satır sonu", "Ara", "Şununla değiştir", "Değiştir", "Yapıştır", "Yapıştırılacak içerik seç", "Sadece kendi resimlerinizi düzenleyebilirsiniz. Bu görseli kendi hostunuza indirmek ister misiniz?", "Görsel başarıyla hostunuza yüklendi", "Palet", "Bu dizinde dosya yok", "Yeniden isimlendir", "Yeni isim girin", "Ön izleme", "İndir", "Panodan yapıştır ", "Tarayıcınız panoya doğrudan erişimi desteklemiyor.", "Seçimi kopyala", "Kopyala", "Sınır yarıçapı", "Tümünü Göster", "Uygula", "Lütfen bu alanı doldurun", "Lütfen bir web adresi girin", "Varsayılan", "Daire", "Nokta", "Kare", "Bul", "Öncekini Bul", "Sonrakini Bul", "Sınıf adı girin", "Özel yeniden boyutlandırma için Alt tuşuna basın"];
  58. }, 21042: function(_) {
  59. _.exports.default = ["输入一些内容", "关于Jodit", "Jodit Editor", "Free Non-commercial Version", "开发者指南", "使用帮助", "有关许可证的信息,请访问我们的网站:", "购买完整版本", "Copyright © XDSoft.net - Chupurnov Valeriy. 版权所有", "Anchor", "在新窗口打开", "全屏编辑", "清除样式", "颜色", "重做", "撤销", "粗体", "斜体", "符号列表", "编号", "居中", "对齐文本", "左对齐", "右对齐", "分割线", "图片", "文件", "视频", "链接", "字号", "字体", "格式块", "默认", "标题1", "标题2", "标题3", "标题4", "引用", "代码", "插入", "表格", "减少缩进", "增加缩进", "选择特殊符号", "特殊符号", "格式复制", "改变模式", "外边距(Margins)", "top", "right", "bottom", "left", "样式", "Classes", "对齐方式", "居右", "居中", "居左", "无", "Src", "Title", "Alternative", "Link", "在新窗口打开链接", "图片", "file", "高级", "图片属性", "取消", "确定", "你粘贴的文本是一段html代码,是否保留源格式", "html粘贴", "保留源格式", "匹配目标格式", "把html代码视为普通文本", "只保留文本", "文本粘贴", "正在粘贴 Word/Excel 的文本,是否保留源格式?", "文件管理", "加载list错误", "加载folders错误", "你确定吗?", "输入路径", "创建路径", "type name", "拖动图片到此", "拖动文件到此", "或点击", "Alternative text", "浏览", "上传", "背景色", "文字", "顶部", "中间", "底部", "在之前插入列", "在之后插入列", "在之前插入行", "在之后插入行", "删除表格", "删除行", "删除列", "清除内容", "源码", "粗体", "斜体", "颜色", "链接", "撤销", "重做", "表格", "图片", "橡皮擦", "段落", "字号", "视频", "字体", "关于", "打印", "下划线", "上出现", "增加缩进", "减少缩进", "全屏", "收缩", "分割线", "无序列表", "顺序列表", "剪切", "全选", "嵌入代码", "打开链接", "编辑链接", "No follow", "取消链接", "预览", "铅笔", "更新", "URL", "编辑", "水平对齐", "筛选", "修改时间排序", "名称排序", "大小排序", "新建文件夹", "重置", "保存", "保存为", "调整大小", "剪切", "宽", "高", "保持长宽比", "是", "不", "移除", "选择", "字符数: %d", "单词数: %d", "全部", "选择: %s", "全选", "垂直对齐", "拆分", "垂直拆分", "水平拆分", "合并", "添加列", "添加行", "删除", "边框", null, "删除线", "下划线", "上标", "下标", "剪切", "Break", "查找", "替换为", "替换", "粘贴", "选择内容并粘贴", "你只能编辑你自己的图片。Download this image on the host?", "图片上传成功", "调色板", "此目录中沒有文件。", "重命名", "输入新名称", "预览", "下载", "粘贴从剪贴板", "你浏览器不支持直接访问的剪贴板。", "复制选中内容", "复制", "边界半径", "显示所有", "应用", "请填写这个字段", "请输入一个网址", "默认", "圆圈", "点", "方形", "搜索", "查找上一个", "查找下一个", "插入班级名称", "按Alt自定义调整大小"];
  60. }, 73895: function(_) {
  61. _.exports.default = ["輸入一些內容", "關於Jodit", "Jodit Editor", null, "開發者指南", "使用幫助", "有關許可證的信息,請訪問我們的網站:", "購買完整版本", "Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.", "Anchor", "在新窗口打開", "全屏編輯", "清除樣式", "顏色", "重做", "撤銷", "粗體", "斜體", "符號列表", "編號", "居中", "對齊文本", "左對齊", "右對齊", "分割線", "圖片", "文件", "youtube/vimeo 影片", "鏈接", "字號", "字體", "格式塊", "文本", "標題1", "標題2", "標題3", "標題4", "引用", "代碼", "插入", "表格", "減少縮進", "增加縮進", "選擇特殊符號", "特殊符號", "格式複製", "改變模式", "外邊距(Margins)", "top", "right", "bottom", "left", "樣式", "Classes", "對齊方式", "居右", "居中", "居左", "無", "Src", "Title", "替代", "Link", "在新窗口打開鏈接", "圖片", "file", "高級", "圖片屬性", "取消", "確定", "你黏貼的文本是一段html代碼,是否保留源格式", "html黏貼", "保留源格式", "匹配目標格式", "把html代碼視為普通文本", "只保留文本", "文本黏貼", "正在黏貼 Word/Excel 的文本,是否保留源格式?", "文件管理", "加載list錯誤", "加載folders錯誤", "你確定嗎?", "輸入路徑", "創建路徑", "type name", "拖動圖片到此", "拖動文件到此", "或點擊", "替代文字", "瀏覽", "上傳", "背景色", "文字", "頂部", "中間", "底部", "在之前插入列", "在之後插入列", "在之前插入行", "在之後插入行", "刪除表格", "刪除行", "刪除列", "清除內容", "源碼", "粗體", "斜體", "顏色", "鏈接", "撤銷", "重做", "表格", "圖片", "橡皮擦", "段落", "字號", "影片", "字體", "關於", "打印", "下劃線", "上出現", "增加縮進", "減少縮進", "全屏", "收縮", "分割線", "無序列表", "順序列表", "剪切", "全選", "嵌入代碼", "打開鏈接", "編輯鏈接", "No follow", "取消連結", "回顧", "鉛筆", "更新", "URL", null, "水平對齊", "篩選", "修改時間排序", "名稱排序", "大小排序", "新建文件夾", "重置", "保存", "保存為", "調整大小", "Crop", "寬", "高", "保存長寬比", "是", "不", "移除", "選擇", "字符數: %d", "單詞數: %d", "全部", "選擇: %s", "全選", "垂直對齊", "拆分", "垂直拆分", "水平拆分", "合併", "添加列", "添加行", "刪除", "邊框", null, "刪除線", "下劃線", "上標", "下標", "剪切", "Pause", "查找", "替換為", "แทนที่", "黏貼", "選擇內容並黏貼", "你只能編輯你自己的圖片。是否下載此圖片到本地?", "圖片上傳成功", "調色板", "此目錄中沒有文件。", "重命名", "輸入新名稱", "預覽", "下載", "從剪貼板貼上", "瀏覽器無法存取剪贴板。", "複製已選取項目", "複製", "邊框圓角", "顯示所有", "應用", "ได้โปรดกรอกช่องข้อมูลนี้", "โปรดเติมที่อยู่บนเว็บ", "ค่าปริยาย", "วงกลม", "จุด", "Quadrate", "ค้นหา", "ค้นหาก่อนหน้านี้", "ค้นหาถัดไป", "ใส่ชื่อคลาส", "กดอัลท์สำหรับการปรับขนาดที่กำหนดเอง"];
  62. }, 3610: function(_) {
  63. _.exports = `<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>`;
  64. }, 56170: function(_) {
  65. _.exports = `<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>`;
  66. }, 95331: function(_) {
  67. _.exports = `<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>`;
  68. }, 84279: function(_) {
  69. _.exports = '<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>';
  70. }, 11257: function(_) {
  71. _.exports = `<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>`;
  72. }, 25141: function(_) {
  73. _.exports = `<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>`;
  74. }, 24557: function(_) {
  75. _.exports = `<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>`;
  76. }, 10859: function(_) {
  77. _.exports = `<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>`;
  78. }, 9813: function(_) {
  79. _.exports = `<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>`;
  80. }, 93395: function(_) {
  81. _.exports = `<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>`;
  82. }, 98213: function(_) {
  83. _.exports = `<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>`;
  84. }, 20026: function(_) {
  85. _.exports = '<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>';
  86. }, 66911: function(_) {
  87. _.exports = `<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>`;
  88. }, 50018: function(_) {
  89. _.exports = '<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>';
  90. }, 99738: function(_) {
  91. _.exports = `<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>`;
  92. }, 9185: function(_) {
  93. _.exports = '<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>';
  94. }, 8619: function(_) {
  95. _.exports = `<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>`;
  96. }, 73894: function(_) {
  97. _.exports = `<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>`;
  98. }, 83301: function(_) {
  99. _.exports = `<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>`;
  100. }, 84142: function(_) {
  101. _.exports = `<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>`;
  102. }, 57292: function(_) {
  103. _.exports = `<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>`;
  104. }, 18019: function(_) {
  105. _.exports = `<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>`;
  106. }, 45146: function(_) {
  107. _.exports = `<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>`;
  108. }, 53576: function(_) {
  109. _.exports = `<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>`;
  110. }, 14655: function(_) {
  111. _.exports = `<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>`;
  112. }, 53477: function(_) {
  113. _.exports = `<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>`;
  114. }, 90053: function(_) {
  115. _.exports = `<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>`;
  116. }, 72230: function(_) {
  117. _.exports = `<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>`;
  118. }, 78321: function(_) {
  119. _.exports = '<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>';
  120. }, 77654: function(_) {
  121. _.exports = `<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>`;
  122. }, 43371: function(_) {
  123. _.exports = `<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>`;
  124. }, 44563: function(_) {
  125. _.exports = `<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>`;
  126. }, 53183: function(_) {
  127. _.exports = `<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>`;
  128. }, 18548: function(_) {
  129. _.exports = `<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>`;
  130. }, 52242: function(_) {
  131. _.exports = `<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>`;
  132. }, 87498: function(_) {
  133. _.exports = `<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>`;
  134. }, 7986: function(_) {
  135. _.exports = '<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>';
  136. }, 23075: function(_) {
  137. _.exports = `<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>`;
  138. }, 10655: function(_) {
  139. _.exports = `<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>`;
  140. }, 15476: function(_) {
  141. _.exports = `<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>`;
  142. }, 59403: function(_) {
  143. _.exports = `<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>`;
  144. }, 22860: function(_) {
  145. _.exports = `<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>`;
  146. }, 95600: function(_) {
  147. _.exports = `<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>`;
  148. }, 76214: function(_) {
  149. _.exports = `<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>`;
  150. }, 41197: function(_) {
  151. _.exports = '<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>';
  152. }, 9342: function(_) {
  153. _.exports = `<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>`;
  154. }, 69546: function(_) {
  155. _.exports = '<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>';
  156. }, 43158: function(_) {
  157. _.exports = `<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>`;
  158. }, 51716: function(_) {
  159. _.exports = `<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>`;
  160. }, 49222: function(_) {
  161. _.exports = `<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>`;
  162. }, 1755: function(_) {
  163. _.exports = `<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>`;
  164. }, 74911: function(_) {
  165. _.exports = `<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>`;
  166. }, 8805: function(_) {
  167. _.exports = `<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>`;
  168. }, 16547: function(_) {
  169. _.exports = `<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>`;
  170. }, 10856: function(_) {
  171. _.exports = `<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>`;
  172. }, 98441: function(_) {
  173. _.exports = '<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>';
  174. }, 52488: function(_) {
  175. _.exports = `<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>`;
  176. }, 9370: function(_) {
  177. _.exports = `<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>`;
  178. }, 66543: function(_) {
  179. _.exports = `<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>`;
  180. }, 608: function(_) {
  181. _.exports = `<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>`;
  182. }, 42840: function(_) {
  183. _.exports = `<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>`;
  184. }, 79096: function(_) {
  185. _.exports = `<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>`;
  186. }, 33014: function(_) {
  187. _.exports = `<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>`;
  188. }, 91677: function(_) {
  189. _.exports = `<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>`;
  190. }, 8259: function(_) {
  191. _.exports = `<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>`;
  192. }, 64467: function(_) {
  193. _.exports = `<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>`;
  194. }, 86934: function(_) {
  195. _.exports = `<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>`;
  196. }, 76133: function(_) {
  197. _.exports = `<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>`;
  198. }, 45519: function(_) {
  199. _.exports = `<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>`;
  200. }, 90265: function(_) {
  201. _.exports = '<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>';
  202. }, 81279: function(_) {
  203. _.exports = `<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>`;
  204. }, 68899: function(_) {
  205. _.exports = `<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>`;
  206. }, 70744: function(_) {
  207. _.exports = '<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>';
  208. }, 19201: function(_) {
  209. _.exports = `<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>`;
  210. }, 84930: function(_) {
  211. _.exports = `<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>`;
  212. }, 99704: function(_) {
  213. _.exports = `<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>`;
  214. }, 2304: function(_) {
  215. _.exports = `<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>`;
  216. }, 93330: function(_, t, e) {
  217. e.r(t);
  218. }, 45066: function(_, t, e) {
  219. e.r(t);
  220. }, 99895: function(_, t, e) {
  221. e.r(t);
  222. }, 87682: function(_, t, e) {
  223. e.r(t);
  224. }, 50905: function(_, t, e) {
  225. e.r(t);
  226. }, 70446: function(_, t, e) {
  227. e.r(t);
  228. }, 18984: function(_, t, e) {
  229. e.r(t);
  230. }, 4591: function(_, t, e) {
  231. e.r(t);
  232. }, 64194: function(_, t, e) {
  233. e.r(t);
  234. }, 70375: function(_, t, e) {
  235. e.r(t);
  236. }, 90235: function(_, t, e) {
  237. e.r(t);
  238. }, 88477: function(_, t, e) {
  239. e.r(t);
  240. }, 50197: function(_, t, e) {
  241. e.r(t);
  242. }, 39008: function(_, t, e) {
  243. e.r(t);
  244. }, 47086: function(_, t, e) {
  245. e.r(t);
  246. }, 16462: function(_, t, e) {
  247. e.r(t);
  248. }, 40692: function(_, t, e) {
  249. e.r(t);
  250. }, 27452: function(_, t, e) {
  251. e.r(t);
  252. }, 51422: function(_, t, e) {
  253. e.r(t);
  254. }, 62820: function(_, t, e) {
  255. e.r(t);
  256. }, 63421: function(_, t, e) {
  257. e.r(t);
  258. }, 32115: function(_, t, e) {
  259. e.r(t);
  260. }, 53362: function(_, t, e) {
  261. e.r(t);
  262. }, 48904: function(_, t, e) {
  263. e.r(t);
  264. }, 85796: function(_, t, e) {
  265. e.r(t);
  266. }, 28654: function(_, t, e) {
  267. e.r(t);
  268. }, 60819: function(_, t, e) {
  269. e.r(t);
  270. }, 96410: function(_, t, e) {
  271. e.r(t);
  272. }, 33126: function(_, t, e) {
  273. e.r(t);
  274. }, 30724: function(_, t, e) {
  275. e.r(t);
  276. }, 14320: function(_, t, e) {
  277. e.r(t);
  278. }, 9947: function(_, t, e) {
  279. e.r(t);
  280. }, 45109: function(_, t, e) {
  281. e.r(t);
  282. }, 71708: function(_, t, e) {
  283. e.r(t);
  284. }, 51629: function(_, t, e) {
  285. e.r(t);
  286. }, 54860: function(_, t, e) {
  287. e.r(t);
  288. }, 47818: function(_, t, e) {
  289. e.r(t);
  290. }, 6316: function(_, t, e) {
  291. e.r(t);
  292. }, 88582: function(_, t, e) {
  293. e.r(t);
  294. }, 30962: function(_, t, e) {
  295. e.r(t);
  296. }, 68197: function(_, t, e) {
  297. e.r(t);
  298. }, 60057: function(_, t, e) {
  299. e.r(t);
  300. }, 33393: function(_, t, e) {
  301. e.r(t);
  302. }, 51057: function(_, t, e) {
  303. e.r(t);
  304. }, 64618: function(_, t, e) {
  305. e.r(t);
  306. }, 90176: function(_, t, e) {
  307. e.r(t);
  308. }, 91147: function(_, t, e) {
  309. e.r(t);
  310. }, 70631: function(_, t) {
  311. function e(h) {
  312. return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(f) {
  313. return typeof f;
  314. } : function(f) {
  315. return f && typeof Symbol == "function" && f.constructor === Symbol && f !== Symbol.prototype ? "symbol" : typeof f;
  316. }, e(h);
  317. }
  318. function n(h, f, d) {
  319. var a = d.value;
  320. if (typeof a != "function") throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(e(a)));
  321. var s = !1;
  322. return { configurable: !0, get: function() {
  323. if (s || this === h.prototype || this.hasOwnProperty(f) || typeof a != "function") return a;
  324. var c = a.bind(this);
  325. return s = !0, Object.defineProperty(this, f, { configurable: !0, get: function() {
  326. return c;
  327. }, set: function(p) {
  328. a = p, delete this[f];
  329. } }), s = !1, c;
  330. }, set: function(c) {
  331. a = c;
  332. } };
  333. }
  334. function m(h) {
  335. var f;
  336. return typeof Reflect != "undefined" && typeof Reflect.ownKeys == "function" ? f = Reflect.ownKeys(h.prototype) : (f = Object.getOwnPropertyNames(h.prototype), typeof Object.getOwnPropertySymbols == "function" && (f = f.concat(Object.getOwnPropertySymbols(h.prototype)))), f.forEach(function(d) {
  337. if (d !== "constructor") {
  338. var a = Object.getOwnPropertyDescriptor(h.prototype, d);
  339. typeof a.value == "function" && Object.defineProperty(h.prototype, d, n(h, d, a));
  340. }
  341. }), h;
  342. }
  343. Object.defineProperty(t, "__esModule", { value: !0 }), t.boundClass = t.boundMethod = void 0, t.boundMethod = n, t.boundClass = m, t.default = function() {
  344. return arguments.length === 1 ? m.apply(void 0, arguments) : n.apply(void 0, arguments);
  345. };
  346. }, 61227: function() {
  347. "document" in window.self && ((!("classList" in document.createElement("_")) || document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg", "g"))) && function(_) {
  348. if ("Element" in _) {
  349. var t = "classList", e = _.Element.prototype, n = Object, m = String.prototype.trim || function() {
  350. return this.replace(/^\s+|\s+$/g, "");
  351. }, h = Array.prototype.indexOf || function(l) {
  352. for (var o = 0, r = this.length; r > o; o++) if (o in this && this[o] === l) return o;
  353. return -1;
  354. }, f = function(l, o) {
  355. this.name = l, this.code = DOMException[l], this.message = o;
  356. }, d = function(l, o) {
  357. if (o === "") throw new f("SYNTAX_ERR", "An invalid or illegal string was specified");
  358. if (/\s/.test(o)) throw new f("INVALID_CHARACTER_ERR", "String contains an invalid character");
  359. return h.call(l, o);
  360. }, a = function(l) {
  361. for (var o = m.call(l.getAttribute("class") || ""), r = o ? o.split(/\s+/) : [], i = 0, u = r.length; u > i; i++) this.push(r[i]);
  362. this._updateClassName = function() {
  363. l.setAttribute("class", this.toString());
  364. };
  365. }, s = a.prototype = [], c = function() {
  366. return new a(this);
  367. };
  368. if (f.prototype = Error.prototype, s.item = function(l) {
  369. return this[l] || null;
  370. }, s.contains = function(l) {
  371. return d(this, l += "") !== -1;
  372. }, s.add = function() {
  373. var l, o = arguments, r = 0, i = o.length, u = !1;
  374. do
  375. d(this, l = o[r] + "") === -1 && (this.push(l), u = !0);
  376. while (++r < i);
  377. u && this._updateClassName();
  378. }, s.remove = function() {
  379. var l, o, r = arguments, i = 0, u = r.length, v = !1;
  380. do
  381. for (o = d(this, l = r[i] + ""); o !== -1; ) this.splice(o, 1), v = !0, o = d(this, l);
  382. while (++i < u);
  383. v && this._updateClassName();
  384. }, s.toggle = function(l, o) {
  385. var r = this.contains(l += ""), i = r ? o !== !0 && "remove" : o !== !1 && "add";
  386. return i && this[i](l), o === !0 || o === !1 ? o : !r;
  387. }, s.toString = function() {
  388. return this.join(" ");
  389. }, n.defineProperty) {
  390. var p = { get: c, enumerable: !0, configurable: !0 };
  391. try {
  392. n.defineProperty(e, t, p);
  393. } catch (l) {
  394. l.number !== void 0 && l.number !== -2146823252 || (p.enumerable = !1, n.defineProperty(e, t, p));
  395. }
  396. } else n.prototype.__defineGetter__ && e.__defineGetter__(t, c);
  397. }
  398. }(window.self), function() {
  399. var _ = document.createElement("_");
  400. if (_.classList.add("c1", "c2"), !_.classList.contains("c2")) {
  401. var t = function(n) {
  402. var m = DOMTokenList.prototype[n];
  403. DOMTokenList.prototype[n] = function(h) {
  404. var f, d = arguments.length;
  405. for (f = 0; d > f; f++) m.call(this, h = arguments[f]);
  406. };
  407. };
  408. t("add"), t("remove");
  409. }
  410. if (_.classList.toggle("c3", !1), _.classList.contains("c3")) {
  411. var e = DOMTokenList.prototype.toggle;
  412. DOMTokenList.prototype.toggle = function(n, m) {
  413. return 1 in arguments && !this.contains(n) == !m ? m : e.call(this, n);
  414. };
  415. }
  416. _ = null;
  417. }());
  418. }, 69220: function(_, t, e) {
  419. e(22513);
  420. var n = e(56599);
  421. _.exports = n("Array", "findIndex");
  422. }, 10444: function(_, t, e) {
  423. e(52867), e(70057);
  424. var n = e(31116);
  425. _.exports = n.Array.from;
  426. }, 66622: function(_, t, e) {
  427. e(54166), e(32044), e(95661), e(28424), e(64514), e(30733), e(40327), e(53639), e(6147), e(7290), e(95122), e(61322), e(39605), e(49341), e(28809), e(82658), e(43967), e(90217), e(73477), e(93697);
  428. var n = e(31116);
  429. _.exports = n.Symbol;
  430. }, 98061: function(_, t, e) {
  431. var n = e(794), m = e(98418), h = TypeError;
  432. _.exports = function(f) {
  433. if (n(f)) return f;
  434. throw h(m(f) + " is not a function");
  435. };
  436. }, 75839: function(_, t, e) {
  437. var n = e(794), m = String, h = TypeError;
  438. _.exports = function(f) {
  439. if (typeof f == "object" || n(f)) return f;
  440. throw h("Can't set " + m(f) + " as a prototype");
  441. };
  442. }, 15179: function(_, t, e) {
  443. var n = e(19517), m = e(93503), h = e(73252).f, f = n("unscopables"), d = Array.prototype;
  444. d[f] == null && h(d, f, { configurable: !0, value: m(null) }), _.exports = function(a) {
  445. d[f][a] = !0;
  446. };
  447. }, 52313: function(_, t, e) {
  448. var n = e(8148), m = String, h = TypeError;
  449. _.exports = function(f) {
  450. if (n(f)) return f;
  451. throw h(m(f) + " is not an object");
  452. };
  453. }, 92707: function(_, t, e) {
  454. var n = e(40207), m = e(9093), h = e(68488), f = e(79665), d = e(84997), a = e(15333), s = e(15050), c = e(89476), p = e(27395), l = e(81058), o = Array;
  455. _.exports = function(r) {
  456. var i = h(r), u = a(this), v = arguments.length, y = v > 1 ? arguments[1] : void 0, g = y !== void 0;
  457. g && (y = n(y, v > 2 ? arguments[2] : void 0));
  458. var b, w, C, S, j, E, x = l(i), k = 0;
  459. if (!x || this === o && d(x)) for (b = s(i), w = u ? new this(b) : o(b); b > k; k++) E = g ? y(i[k], k) : i[k], c(w, k, E);
  460. else for (j = (S = p(i, x)).next, w = u ? new this() : []; !(C = m(j, S)).done; k++) E = g ? f(S, y, [C.value, k], !0) : C.value, c(w, k, E);
  461. return w.length = k, w;
  462. };
  463. }, 79327: function(_, t, e) {
  464. var n = e(98651), m = e(10586), h = e(15050), f = function(d) {
  465. return function(a, s, c) {
  466. var p, l = n(a), o = h(l), r = m(c, o);
  467. if (d && s != s) {
  468. for (; o > r; ) if ((p = l[r++]) != p) return !0;
  469. } else for (; o > r; r++) if ((d || r in l) && l[r] === s) return d || r || 0;
  470. return !d && -1;
  471. };
  472. };
  473. _.exports = { includes: f(!0), indexOf: f(!1) };
  474. }, 56881: function(_, t, e) {
  475. var n = e(40207), m = e(90838), h = e(25049), f = e(68488), d = e(15050), a = e(6429), s = m([].push), c = function(p) {
  476. var l = p == 1, o = p == 2, r = p == 3, i = p == 4, u = p == 6, v = p == 7, y = p == 5 || u;
  477. return function(g, b, w, C) {
  478. for (var S, j, E = f(g), x = h(E), k = n(b, w), I = d(x), M = 0, T = C || a, O = l ? T(g, I) : o || v ? T(g, 0) : void 0; I > M; M++) if ((y || M in x) && (j = k(S = x[M], M, E), p)) if (l) O[M] = j;
  479. else if (j) switch (p) {
  480. case 3:
  481. return !0;
  482. case 5:
  483. return S;
  484. case 6:
  485. return M;
  486. case 2:
  487. s(O, S);
  488. }
  489. else switch (p) {
  490. case 4:
  491. return !1;
  492. case 7:
  493. s(O, S);
  494. }
  495. return u ? -1 : r || i ? i : O;
  496. };
  497. };
  498. _.exports = { forEach: c(0), map: c(1), filter: c(2), some: c(3), every: c(4), find: c(5), findIndex: c(6), filterReject: c(7) };
  499. }, 63833: function(_, t, e) {
  500. var n = e(75834), m = e(19517), h = e(65190), f = m("species");
  501. _.exports = function(d) {
  502. return h >= 51 || !n(function() {
  503. var a = [];
  504. return (a.constructor = {})[f] = function() {
  505. return { foo: 1 };
  506. }, a[d](Boolean).foo !== 1;
  507. });
  508. };
  509. }, 57652: function(_, t, e) {
  510. var n = e(10586), m = e(15050), h = e(89476), f = Array, d = Math.max;
  511. _.exports = function(a, s, c) {
  512. for (var p = m(a), l = n(s, p), o = n(c === void 0 ? p : c, p), r = f(d(o - l, 0)), i = 0; o > l; l++, i++) h(r, i, a[l]);
  513. return r.length = i, r;
  514. };
  515. }, 54832: function(_, t, e) {
  516. var n = e(90838);
  517. _.exports = n([].slice);
  518. }, 22506: function(_, t, e) {
  519. var n = e(36222), m = e(15333), h = e(8148), f = e(19517)("species"), d = Array;
  520. _.exports = function(a) {
  521. var s;
  522. return n(a) && (m(s = a.constructor) && (s === d || n(s.prototype)) || h(s) && (s = s[f]) === null) && (s = void 0), s === void 0 ? d : s;
  523. };
  524. }, 6429: function(_, t, e) {
  525. var n = e(22506);
  526. _.exports = function(m, h) {
  527. return new (n(m))(h === 0 ? 0 : h);
  528. };
  529. }, 79665: function(_, t, e) {
  530. var n = e(52313), m = e(11274);
  531. _.exports = function(h, f, d, a) {
  532. try {
  533. return a ? f(n(d)[0], d[1]) : f(d);
  534. } catch (s) {
  535. m(h, "throw", s);
  536. }
  537. };
  538. }, 7581: function(_, t, e) {
  539. var n = e(19517)("iterator"), m = !1;
  540. try {
  541. var h = 0, f = { next: function() {
  542. return { done: !!h++ };
  543. }, return: function() {
  544. m = !0;
  545. } };
  546. f[n] = function() {
  547. return this;
  548. }, Array.from(f, function() {
  549. throw 2;
  550. });
  551. } catch (d) {
  552. }
  553. _.exports = function(d, a) {
  554. if (!a && !m) return !1;
  555. var s = !1;
  556. try {
  557. var c = {};
  558. c[n] = function() {
  559. return { next: function() {
  560. return { done: s = !0 };
  561. } };
  562. }, d(c);
  563. } catch (p) {
  564. }
  565. return s;
  566. };
  567. }, 6285: function(_, t, e) {
  568. var n = e(90838), m = n({}.toString), h = n("".slice);
  569. _.exports = function(f) {
  570. return h(m(f), 8, -1);
  571. };
  572. }, 8652: function(_, t, e) {
  573. var n = e(6424), m = e(794), h = e(6285), f = e(19517)("toStringTag"), d = Object, a = h(/* @__PURE__ */ function() {
  574. return arguments;
  575. }()) == "Arguments";
  576. _.exports = n ? h : function(s) {
  577. var c, p, l;
  578. return s === void 0 ? "Undefined" : s === null ? "Null" : typeof (p = function(o, r) {
  579. try {
  580. return o[r];
  581. } catch (i) {
  582. }
  583. }(c = d(s), f)) == "string" ? p : a ? h(c) : (l = h(c)) == "Object" && m(c.callee) ? "Arguments" : l;
  584. };
  585. }, 58392: function(_, t, e) {
  586. var n = e(14434), m = e(86671), h = e(36999), f = e(73252);
  587. _.exports = function(d, a, s) {
  588. for (var c = m(a), p = f.f, l = h.f, o = 0; c.length > o; o++) {
  589. var r = c[o];
  590. n(d, r) || s && n(s, r) || p(d, r, l(a, r));
  591. }
  592. };
  593. }, 27259: function(_, t, e) {
  594. var n = e(75834);
  595. _.exports = !n(function() {
  596. function m() {
  597. }
  598. return m.prototype.constructor = null, Object.getPrototypeOf(new m()) !== m.prototype;
  599. });
  600. }, 17427: function(_) {
  601. _.exports = function(t, e) {
  602. return { value: t, done: e };
  603. };
  604. }, 45840: function(_, t, e) {
  605. var n = e(13873), m = e(73252), h = e(32500);
  606. _.exports = n ? function(f, d, a) {
  607. return m.f(f, d, h(1, a));
  608. } : function(f, d, a) {
  609. return f[d] = a, f;
  610. };
  611. }, 32500: function(_) {
  612. _.exports = function(t, e) {
  613. return { enumerable: !(1 & t), configurable: !(2 & t), writable: !(4 & t), value: e };
  614. };
  615. }, 89476: function(_, t, e) {
  616. var n = e(43836), m = e(73252), h = e(32500);
  617. _.exports = function(f, d, a) {
  618. var s = n(d);
  619. s in f ? m.f(f, s, h(0, a)) : f[s] = a;
  620. };
  621. }, 97548: function(_, t, e) {
  622. var n = e(40846), m = e(73252);
  623. _.exports = function(h, f, d) {
  624. return d.get && n(d.get, f, { getter: !0 }), d.set && n(d.set, f, { setter: !0 }), m.f(h, f, d);
  625. };
  626. }, 35065: function(_, t, e) {
  627. var n = e(794), m = e(73252), h = e(40846), f = e(25379);
  628. _.exports = function(d, a, s, c) {
  629. c || (c = {});
  630. var p = c.enumerable, l = c.name !== void 0 ? c.name : a;
  631. if (n(s) && h(s, l, c), c.global) p ? d[a] = s : f(a, s);
  632. else {
  633. try {
  634. c.unsafe ? d[a] && (p = !0) : delete d[a];
  635. } catch (o) {
  636. }
  637. p ? d[a] = s : m.f(d, a, { value: s, enumerable: !1, configurable: !c.nonConfigurable, writable: !c.nonWritable });
  638. }
  639. return d;
  640. };
  641. }, 25379: function(_, t, e) {
  642. var n = e(37042), m = Object.defineProperty;
  643. _.exports = function(h, f) {
  644. try {
  645. m(n, h, { value: f, configurable: !0, writable: !0 });
  646. } catch (d) {
  647. n[h] = f;
  648. }
  649. return f;
  650. };
  651. }, 13873: function(_, t, e) {
  652. var n = e(75834);
  653. _.exports = !n(function() {
  654. return Object.defineProperty({}, 1, { get: function() {
  655. return 7;
  656. } })[1] != 7;
  657. });
  658. }, 12062: function(_) {
  659. var t = typeof document == "object" && document.all;
  660. _.exports = { all: t, IS_HTMLDDA: t === void 0 && t !== void 0 };
  661. }, 15192: function(_, t, e) {
  662. var n = e(37042), m = e(8148), h = n.document, f = m(h) && m(h.createElement);
  663. _.exports = function(d) {
  664. return f ? h.createElement(d) : {};
  665. };
  666. }, 39505: function(_) {
  667. var t = TypeError;
  668. _.exports = function(e) {
  669. if (e > 9007199254740991) throw t("Maximum allowed index exceeded");
  670. return e;
  671. };
  672. }, 21473: function(_) {
  673. _.exports = typeof navigator != "undefined" && String(navigator.userAgent) || "";
  674. }, 65190: function(_, t, e) {
  675. var n, m, h = e(37042), f = e(21473), d = h.process, a = h.Deno, s = d && d.versions || a && a.version, c = s && s.v8;
  676. c && (m = (n = c.split("."))[0] > 0 && 4 > n[0] ? 1 : +(n[0] + n[1])), !m && f && ((n = f.match(/Edge\/(\d+)/)) && 74 > n[1] || (n = f.match(/Chrome\/(\d+)/)) && (m = +n[1])), _.exports = m;
  677. }, 56599: function(_, t, e) {
  678. var n = e(37042), m = e(90838);
  679. _.exports = function(h, f) {
  680. return m(n[h].prototype[f]);
  681. };
  682. }, 64456: function(_) {
  683. _.exports = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
  684. }, 50791: function(_, t, e) {
  685. var n = e(37042), m = e(36999).f, h = e(45840), f = e(35065), d = e(25379), a = e(58392), s = e(56930);
  686. _.exports = function(c, p) {
  687. var l, o, r, i, u, v = c.target, y = c.global, g = c.stat;
  688. if (l = y ? n : g ? n[v] || d(v, {}) : (n[v] || {}).prototype) for (o in p) {
  689. if (i = p[o], r = c.dontCallGetSet ? (u = m(l, o)) && u.value : l[o], !s(y ? o : v + (g ? "." : "#") + o, c.forced) && r !== void 0) {
  690. if (typeof i == typeof r) continue;
  691. a(i, r);
  692. }
  693. (c.sham || r && r.sham) && h(i, "sham", !0), f(l, o, i, c);
  694. }
  695. };
  696. }, 75834: function(_) {
  697. _.exports = function(t) {
  698. try {
  699. return !!t();
  700. } catch (e) {
  701. return !0;
  702. }
  703. };
  704. }, 55101: function(_, t, e) {
  705. var n = e(32610), m = Function.prototype, h = m.apply, f = m.call;
  706. _.exports = typeof Reflect == "object" && Reflect.apply || (n ? f.bind(h) : function() {
  707. return f.apply(h, arguments);
  708. });
  709. }, 40207: function(_, t, e) {
  710. var n = e(75114), m = e(98061), h = e(32610), f = n(n.bind);
  711. _.exports = function(d, a) {
  712. return m(d), a === void 0 ? d : h ? f(d, a) : function() {
  713. return d.apply(a, arguments);
  714. };
  715. };
  716. }, 32610: function(_, t, e) {
  717. var n = e(75834);
  718. _.exports = !n(function() {
  719. var m = function() {
  720. }.bind();
  721. return typeof m != "function" || m.hasOwnProperty("prototype");
  722. });
  723. }, 9093: function(_, t, e) {
  724. var n = e(32610), m = Function.prototype.call;
  725. _.exports = n ? m.bind(m) : function() {
  726. return m.apply(m, arguments);
  727. };
  728. }, 84521: function(_, t, e) {
  729. var n = e(13873), m = e(14434), h = Function.prototype, f = n && Object.getOwnPropertyDescriptor, d = m(h, "name"), a = d && function() {
  730. }.name === "something", s = d && (!n || n && f(h, "name").configurable);
  731. _.exports = { EXISTS: d, PROPER: a, CONFIGURABLE: s };
  732. }, 47448: function(_, t, e) {
  733. var n = e(90838), m = e(98061);
  734. _.exports = function(h, f, d) {
  735. try {
  736. return n(m(Object.getOwnPropertyDescriptor(h, f)[d]));
  737. } catch (a) {
  738. }
  739. };
  740. }, 75114: function(_, t, e) {
  741. var n = e(6285), m = e(90838);
  742. _.exports = function(h) {
  743. if (n(h) === "Function") return m(h);
  744. };
  745. }, 90838: function(_, t, e) {
  746. var n = e(32610), m = Function.prototype, h = m.call, f = n && m.bind.bind(h, h);
  747. _.exports = n ? f : function(d) {
  748. return function() {
  749. return h.apply(d, arguments);
  750. };
  751. };
  752. }, 98945: function(_, t, e) {
  753. var n = e(37042), m = e(794), h = function(f) {
  754. return m(f) ? f : void 0;
  755. };
  756. _.exports = function(f, d) {
  757. return 2 > arguments.length ? h(n[f]) : n[f] && n[f][d];
  758. };
  759. }, 81058: function(_, t, e) {
  760. var n = e(8652), m = e(20156), h = e(8140), f = e(84922), d = e(19517)("iterator");
  761. _.exports = function(a) {
  762. if (!h(a)) return m(a, d) || m(a, "@@iterator") || f[n(a)];
  763. };
  764. }, 27395: function(_, t, e) {
  765. var n = e(9093), m = e(98061), h = e(52313), f = e(98418), d = e(81058), a = TypeError;
  766. _.exports = function(s, c) {
  767. var p = 2 > arguments.length ? d(s) : c;
  768. if (m(p)) return h(n(p, s));
  769. throw a(f(s) + " is not iterable");
  770. };
  771. }, 6693: function(_, t, e) {
  772. var n = e(90838), m = e(36222), h = e(794), f = e(6285), d = e(63046), a = n([].push);
  773. _.exports = function(s) {
  774. if (h(s)) return s;
  775. if (m(s)) {
  776. for (var c = s.length, p = [], l = 0; c > l; l++) {
  777. var o = s[l];
  778. typeof o == "string" ? a(p, o) : typeof o != "number" && f(o) != "Number" && f(o) != "String" || a(p, d(o));
  779. }
  780. var r = p.length, i = !0;
  781. return function(u, v) {
  782. if (i) return i = !1, v;
  783. if (m(this)) return v;
  784. for (var y = 0; r > y; y++) if (p[y] === u) return v;
  785. };
  786. }
  787. };
  788. }, 20156: function(_, t, e) {
  789. var n = e(98061), m = e(8140);
  790. _.exports = function(h, f) {
  791. var d = h[f];
  792. return m(d) ? void 0 : n(d);
  793. };
  794. }, 37042: function(_, t, e) {
  795. var n = function(m) {
  796. return m && m.Math == Math && m;
  797. };
  798. _.exports = n(typeof globalThis == "object" && globalThis) || n(typeof window == "object" && window) || n(typeof self == "object" && self) || n(typeof e.g == "object" && e.g) || /* @__PURE__ */ function() {
  799. return this;
  800. }() || Function("return this")();
  801. }, 14434: function(_, t, e) {
  802. var n = e(90838), m = e(68488), h = n({}.hasOwnProperty);
  803. _.exports = Object.hasOwn || function(f, d) {
  804. return h(m(f), d);
  805. };
  806. }, 48889: function(_) {
  807. _.exports = {};
  808. }, 36249: function(_, t, e) {
  809. var n = e(98945);
  810. _.exports = n("document", "documentElement");
  811. }, 12816: function(_, t, e) {
  812. var n = e(13873), m = e(75834), h = e(15192);
  813. _.exports = !n && !m(function() {
  814. return Object.defineProperty(h("div"), "a", { get: function() {
  815. return 7;
  816. } }).a != 7;
  817. });
  818. }, 25049: function(_, t, e) {
  819. var n = e(90838), m = e(75834), h = e(6285), f = Object, d = n("".split);
  820. _.exports = m(function() {
  821. return !f("z").propertyIsEnumerable(0);
  822. }) ? function(a) {
  823. return h(a) == "String" ? d(a, "") : f(a);
  824. } : f;
  825. }, 92355: function(_, t, e) {
  826. var n = e(90838), m = e(794), h = e(45752), f = n(Function.toString);
  827. m(h.inspectSource) || (h.inspectSource = function(d) {
  828. return f(d);
  829. }), _.exports = h.inspectSource;
  830. }, 56113: function(_, t, e) {
  831. var n, m, h, f = e(95473), d = e(37042), a = e(8148), s = e(45840), c = e(14434), p = e(45752), l = e(85475), o = e(48889), r = "Object already initialized", i = d.TypeError;
  832. if (f || p.state) {
  833. var u = p.state || (p.state = new d.WeakMap());
  834. u.get = u.get, u.has = u.has, u.set = u.set, n = function(y, g) {
  835. if (u.has(y)) throw i(r);
  836. return g.facade = y, u.set(y, g), g;
  837. }, m = function(y) {
  838. return u.get(y) || {};
  839. }, h = function(y) {
  840. return u.has(y);
  841. };
  842. } else {
  843. var v = l("state");
  844. o[v] = !0, n = function(y, g) {
  845. if (c(y, v)) throw i(r);
  846. return g.facade = y, s(y, v, g), g;
  847. }, m = function(y) {
  848. return c(y, v) ? y[v] : {};
  849. }, h = function(y) {
  850. return c(y, v);
  851. };
  852. }
  853. _.exports = { set: n, get: m, has: h, enforce: function(y) {
  854. return h(y) ? m(y) : n(y, {});
  855. }, getterFor: function(y) {
  856. return function(g) {
  857. var b;
  858. if (!a(g) || (b = m(g)).type !== y) throw i("Incompatible receiver, " + y + " required");
  859. return b;
  860. };
  861. } };
  862. }, 84997: function(_, t, e) {
  863. var n = e(19517), m = e(84922), h = n("iterator"), f = Array.prototype;
  864. _.exports = function(d) {
  865. return d !== void 0 && (m.Array === d || f[h] === d);
  866. };
  867. }, 36222: function(_, t, e) {
  868. var n = e(6285);
  869. _.exports = Array.isArray || function(m) {
  870. return n(m) == "Array";
  871. };
  872. }, 794: function(_, t, e) {
  873. var n = e(12062), m = n.all;
  874. _.exports = n.IS_HTMLDDA ? function(h) {
  875. return typeof h == "function" || h === m;
  876. } : function(h) {
  877. return typeof h == "function";
  878. };
  879. }, 15333: function(_, t, e) {
  880. var n = e(90838), m = e(75834), h = e(794), f = e(8652), d = e(98945), a = e(92355), s = function() {
  881. }, c = [], p = d("Reflect", "construct"), l = /^\s*(?:class|function)\b/, o = n(l.exec), r = !l.exec(s), i = function(v) {
  882. if (!h(v)) return !1;
  883. try {
  884. return p(s, c, v), !0;
  885. } catch (y) {
  886. return !1;
  887. }
  888. }, u = function(v) {
  889. if (!h(v)) return !1;
  890. switch (f(v)) {
  891. case "AsyncFunction":
  892. case "GeneratorFunction":
  893. case "AsyncGeneratorFunction":
  894. return !1;
  895. }
  896. try {
  897. return r || !!o(l, a(v));
  898. } catch (y) {
  899. return !0;
  900. }
  901. };
  902. u.sham = !0, _.exports = !p || m(function() {
  903. var v;
  904. return i(i.call) || !i(Object) || !i(function() {
  905. v = !0;
  906. }) || v;
  907. }) ? u : i;
  908. }, 56930: function(_, t, e) {
  909. var n = e(75834), m = e(794), h = /#|\.prototype\./, f = function(p, l) {
  910. var o = a[d(p)];
  911. return o == c || o != s && (m(l) ? n(l) : !!l);
  912. }, d = f.normalize = function(p) {
  913. return String(p).replace(h, ".").toLowerCase();
  914. }, a = f.data = {}, s = f.NATIVE = "N", c = f.POLYFILL = "P";
  915. _.exports = f;
  916. }, 8140: function(_) {
  917. _.exports = function(t) {
  918. return t == null;
  919. };
  920. }, 8148: function(_, t, e) {
  921. var n = e(794), m = e(12062), h = m.all;
  922. _.exports = m.IS_HTMLDDA ? function(f) {
  923. return typeof f == "object" ? f !== null : n(f) || f === h;
  924. } : function(f) {
  925. return typeof f == "object" ? f !== null : n(f);
  926. };
  927. }, 70852: function(_) {
  928. _.exports = !1;
  929. }, 88253: function(_, t, e) {
  930. var n = e(98945), m = e(794), h = e(54671), f = e(57982), d = Object;
  931. _.exports = f ? function(a) {
  932. return typeof a == "symbol";
  933. } : function(a) {
  934. var s = n("Symbol");
  935. return m(s) && h(s.prototype, d(a));
  936. };
  937. }, 11274: function(_, t, e) {
  938. var n = e(9093), m = e(52313), h = e(20156);
  939. _.exports = function(f, d, a) {
  940. var s, c;
  941. m(f);
  942. try {
  943. if (!(s = h(f, "return"))) {
  944. if (d === "throw") throw a;
  945. return a;
  946. }
  947. s = n(s, f);
  948. } catch (p) {
  949. c = !0, s = p;
  950. }
  951. if (d === "throw") throw a;
  952. if (c) throw s;
  953. return m(s), a;
  954. };
  955. }, 60928: function(_, t, e) {
  956. var n = e(77831).IteratorPrototype, m = e(93503), h = e(32500), f = e(44532), d = e(84922), a = function() {
  957. return this;
  958. };
  959. _.exports = function(s, c, p, l) {
  960. var o = c + " Iterator";
  961. return s.prototype = m(n, { next: h(+!l, p) }), f(s, o, !1, !0), d[o] = a, s;
  962. };
  963. }, 13759: function(_, t, e) {
  964. var n = e(50791), m = e(9093), h = e(70852), f = e(84521), d = e(794), a = e(60928), s = e(1074), c = e(482), p = e(44532), l = e(45840), o = e(35065), r = e(19517), i = e(84922), u = e(77831), v = f.PROPER, y = f.CONFIGURABLE, g = u.IteratorPrototype, b = u.BUGGY_SAFARI_ITERATORS, w = r("iterator"), C = "keys", S = "values", j = "entries", E = function() {
  965. return this;
  966. };
  967. _.exports = function(x, k, I, M, T, O, L) {
  968. a(I, k, M);
  969. var N, H, q, F = function(A) {
  970. if (A === T && z) return z;
  971. if (!b && A in P) return P[A];
  972. switch (A) {
  973. case C:
  974. case S:
  975. case j:
  976. return function() {
  977. return new I(this, A);
  978. };
  979. }
  980. return function() {
  981. return new I(this);
  982. };
  983. }, U = k + " Iterator", Y = !1, P = x.prototype, D = P[w] || P["@@iterator"] || T && P[T], z = !b && D || F(T), R = k == "Array" && P.entries || D;
  984. if (R && (N = s(R.call(new x()))) !== Object.prototype && N.next && (h || s(N) === g || (c ? c(N, g) : d(N[w]) || o(N, w, E)), p(N, U, !0, !0), h && (i[U] = E)), v && T == S && D && D.name !== S && (!h && y ? l(P, "name", S) : (Y = !0, z = function() {
  985. return m(D, this);
  986. })), T) if (H = { values: F(S), keys: O ? z : F(C), entries: F(j) }, L) for (q in H) (b || Y || !(q in P)) && o(P, q, H[q]);
  987. else n({ target: k, proto: !0, forced: b || Y }, H);
  988. return h && !L || P[w] === z || o(P, w, z, { name: T }), i[k] = z, H;
  989. };
  990. }, 77831: function(_, t, e) {
  991. var n, m, h, f = e(75834), d = e(794), a = e(8148), s = e(93503), c = e(1074), p = e(35065), l = e(19517), o = e(70852), r = l("iterator"), i = !1;
  992. [].keys && ("next" in (h = [].keys()) ? (m = c(c(h))) !== Object.prototype && (n = m) : i = !0), !a(n) || f(function() {
  993. var u = {};
  994. return n[r].call(u) !== u;
  995. }) ? n = {} : o && (n = s(n)), d(n[r]) || p(n, r, function() {
  996. return this;
  997. }), _.exports = { IteratorPrototype: n, BUGGY_SAFARI_ITERATORS: i };
  998. }, 84922: function(_) {
  999. _.exports = {};
  1000. }, 15050: function(_, t, e) {
  1001. var n = e(24431);
  1002. _.exports = function(m) {
  1003. return n(m.length);
  1004. };
  1005. }, 40846: function(_, t, e) {
  1006. var n = e(90838), m = e(75834), h = e(794), f = e(14434), d = e(13873), a = e(84521).CONFIGURABLE, s = e(92355), c = e(56113), p = c.enforce, l = c.get, o = String, r = Object.defineProperty, i = n("".slice), u = n("".replace), v = n([].join), y = d && !m(function() {
  1007. return r(function() {
  1008. }, "length", { value: 8 }).length !== 8;
  1009. }), g = String(String).split("String"), b = _.exports = function(w, C, S) {
  1010. i(o(C), 0, 7) === "Symbol(" && (C = "[" + u(o(C), /^Symbol\(([^)]*)\)/, "$1") + "]"), S && S.getter && (C = "get " + C), S && S.setter && (C = "set " + C), (!f(w, "name") || a && w.name !== C) && (d ? r(w, "name", { value: C, configurable: !0 }) : w.name = C), y && S && f(S, "arity") && w.length !== S.arity && r(w, "length", { value: S.arity });
  1011. try {
  1012. S && f(S, "constructor") && S.constructor ? d && r(w, "prototype", { writable: !1 }) : w.prototype && (w.prototype = void 0);
  1013. } catch (E) {
  1014. }
  1015. var j = p(w);
  1016. return f(j, "source") || (j.source = v(g, typeof C == "string" ? C : "")), w;
  1017. };
  1018. Function.prototype.toString = b(function() {
  1019. return h(this) && l(this).source || s(this);
  1020. }, "toString");
  1021. }, 43932: function(_) {
  1022. var t = Math.ceil, e = Math.floor;
  1023. _.exports = Math.trunc || function(n) {
  1024. var m = +n;
  1025. return (m > 0 ? e : t)(m);
  1026. };
  1027. }, 93503: function(_, t, e) {
  1028. var n, m = e(52313), h = e(5770), f = e(64456), d = e(48889), a = e(36249), s = e(15192), c = e(85475)("IE_PROTO"), p = function() {
  1029. }, l = function(i) {
  1030. return "<script>" + i + "<\/script>";
  1031. }, o = function(i) {
  1032. i.write(l("")), i.close();
  1033. var u = i.parentWindow.Object;
  1034. return i = null, u;
  1035. }, r = function() {
  1036. try {
  1037. n = new ActiveXObject("htmlfile");
  1038. } catch (y) {
  1039. }
  1040. var i, u;
  1041. r = typeof document != "undefined" ? document.domain && n ? o(n) : ((u = s("iframe")).style.display = "none", a.appendChild(u), u.src = "javascript:", (i = u.contentWindow.document).open(), i.write(l("document.F=Object")), i.close(), i.F) : o(n);
  1042. for (var v = f.length; v--; ) delete r.prototype[f[v]];
  1043. return r();
  1044. };
  1045. d[c] = !0, _.exports = Object.create || function(i, u) {
  1046. var v;
  1047. return i !== null ? (p.prototype = m(i), v = new p(), p.prototype = null, v[c] = i) : v = r(), u === void 0 ? v : h.f(v, u);
  1048. };
  1049. }, 5770: function(_, t, e) {
  1050. var n = e(13873), m = e(63142), h = e(73252), f = e(52313), d = e(98651), a = e(3385);
  1051. t.f = n && !m ? Object.defineProperties : function(s, c) {
  1052. f(s);
  1053. for (var p, l = d(c), o = a(c), r = o.length, i = 0; r > i; ) h.f(s, p = o[i++], l[p]);
  1054. return s;
  1055. };
  1056. }, 73252: function(_, t, e) {
  1057. var n = e(13873), m = e(12816), h = e(63142), f = e(52313), d = e(43836), a = TypeError, s = Object.defineProperty, c = Object.getOwnPropertyDescriptor;
  1058. t.f = n ? h ? function(p, l, o) {
  1059. if (f(p), l = d(l), f(o), typeof p == "function" && l === "prototype" && "value" in o && "writable" in o && !o.writable) {
  1060. var r = c(p, l);
  1061. r && r.writable && (p[l] = o.value, o = { configurable: "configurable" in o ? o.configurable : r.configurable, enumerable: "enumerable" in o ? o.enumerable : r.enumerable, writable: !1 });
  1062. }
  1063. return s(p, l, o);
  1064. } : s : function(p, l, o) {
  1065. if (f(p), l = d(l), f(o), m) try {
  1066. return s(p, l, o);
  1067. } catch (r) {
  1068. }
  1069. if ("get" in o || "set" in o) throw a("Accessors not supported");
  1070. return "value" in o && (p[l] = o.value), p;
  1071. };
  1072. }, 36999: function(_, t, e) {
  1073. var n = e(13873), m = e(9093), h = e(33244), f = e(32500), d = e(98651), a = e(43836), s = e(14434), c = e(12816), p = Object.getOwnPropertyDescriptor;
  1074. t.f = n ? p : function(l, o) {
  1075. if (l = d(l), o = a(o), c) try {
  1076. return p(l, o);
  1077. } catch (r) {
  1078. }
  1079. if (s(l, o)) return f(!m(h.f, l, o), l[o]);
  1080. };
  1081. }, 53305: function(_, t, e) {
  1082. var n = e(6285), m = e(98651), h = e(7792).f, f = e(57652), d = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
  1083. _.exports.f = function(a) {
  1084. return d && n(a) == "Window" ? function(s) {
  1085. try {
  1086. return h(s);
  1087. } catch (c) {
  1088. return f(d);
  1089. }
  1090. }(a) : h(m(a));
  1091. };
  1092. }, 7792: function(_, t, e) {
  1093. var n = e(84729), m = e(64456).concat("length", "prototype");
  1094. t.f = Object.getOwnPropertyNames || function(h) {
  1095. return n(h, m);
  1096. };
  1097. }, 23953: function(_, t) {
  1098. t.f = Object.getOwnPropertySymbols;
  1099. }, 1074: function(_, t, e) {
  1100. var n = e(14434), m = e(794), h = e(68488), f = e(85475), d = e(27259), a = f("IE_PROTO"), s = Object, c = s.prototype;
  1101. _.exports = d ? s.getPrototypeOf : function(p) {
  1102. var l = h(p);
  1103. if (n(l, a)) return l[a];
  1104. var o = l.constructor;
  1105. return m(o) && l instanceof o ? o.prototype : l instanceof s ? c : null;
  1106. };
  1107. }, 54671: function(_, t, e) {
  1108. var n = e(90838);
  1109. _.exports = n({}.isPrototypeOf);
  1110. }, 84729: function(_, t, e) {
  1111. var n = e(90838), m = e(14434), h = e(98651), f = e(79327).indexOf, d = e(48889), a = n([].push);
  1112. _.exports = function(s, c) {
  1113. var p, l = h(s), o = 0, r = [];
  1114. for (p in l) !m(d, p) && m(l, p) && a(r, p);
  1115. for (; c.length > o; ) m(l, p = c[o++]) && (~f(r, p) || a(r, p));
  1116. return r;
  1117. };
  1118. }, 3385: function(_, t, e) {
  1119. var n = e(84729), m = e(64456);
  1120. _.exports = Object.keys || function(h) {
  1121. return n(h, m);
  1122. };
  1123. }, 33244: function(_, t) {
  1124. var e = {}.propertyIsEnumerable, n = Object.getOwnPropertyDescriptor, m = n && !e.call({ 1: 2 }, 1);
  1125. t.f = m ? function(h) {
  1126. var f = n(this, h);
  1127. return !!f && f.enumerable;
  1128. } : e;
  1129. }, 482: function(_, t, e) {
  1130. var n = e(47448), m = e(52313), h = e(75839);
  1131. _.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() {
  1132. var f, d = !1, a = {};
  1133. try {
  1134. (f = n(Object.prototype, "__proto__", "set"))(a, []), d = a instanceof Array;
  1135. } catch (s) {
  1136. }
  1137. return function(s, c) {
  1138. return m(s), h(c), d ? f(s, c) : s.__proto__ = c, s;
  1139. };
  1140. }() : void 0);
  1141. }, 57555: function(_, t, e) {
  1142. var n = e(6424), m = e(8652);
  1143. _.exports = n ? {}.toString : function() {
  1144. return "[object " + m(this) + "]";
  1145. };
  1146. }, 82472: function(_, t, e) {
  1147. var n = e(9093), m = e(794), h = e(8148), f = TypeError;
  1148. _.exports = function(d, a) {
  1149. var s, c;
  1150. if (a === "string" && m(s = d.toString) && !h(c = n(s, d)) || m(s = d.valueOf) && !h(c = n(s, d)) || a !== "string" && m(s = d.toString) && !h(c = n(s, d))) return c;
  1151. throw f("Can't convert object to primitive value");
  1152. };
  1153. }, 86671: function(_, t, e) {
  1154. var n = e(98945), m = e(90838), h = e(7792), f = e(23953), d = e(52313), a = m([].concat);
  1155. _.exports = n("Reflect", "ownKeys") || function(s) {
  1156. var c = h.f(d(s)), p = f.f;
  1157. return p ? a(c, p(s)) : c;
  1158. };
  1159. }, 31116: function(_, t, e) {
  1160. var n = e(37042);
  1161. _.exports = n;
  1162. }, 60265: function(_, t, e) {
  1163. var n = e(8140), m = TypeError;
  1164. _.exports = function(h) {
  1165. if (n(h)) throw m("Can't call method on " + h);
  1166. return h;
  1167. };
  1168. }, 44532: function(_, t, e) {
  1169. var n = e(73252).f, m = e(14434), h = e(19517)("toStringTag");
  1170. _.exports = function(f, d, a) {
  1171. f && !a && (f = f.prototype), f && !m(f, h) && n(f, h, { configurable: !0, value: d });
  1172. };
  1173. }, 85475: function(_, t, e) {
  1174. var n = e(95138), m = e(15257), h = n("keys");
  1175. _.exports = function(f) {
  1176. return h[f] || (h[f] = m(f));
  1177. };
  1178. }, 45752: function(_, t, e) {
  1179. var n = e(37042), m = e(25379), h = "__core-js_shared__", f = n[h] || m(h, {});
  1180. _.exports = f;
  1181. }, 95138: function(_, t, e) {
  1182. var n = e(70852), m = e(45752);
  1183. (_.exports = function(h, f) {
  1184. return m[h] || (m[h] = f !== void 0 ? f : {});
  1185. })("versions", []).push({ version: "3.28.0", mode: n ? "pure" : "global", copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)", license: "https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE", source: "https://github.com/zloirock/core-js" });
  1186. }, 41397: function(_, t, e) {
  1187. var n = e(90838), m = e(27876), h = e(63046), f = e(60265), d = n("".charAt), a = n("".charCodeAt), s = n("".slice), c = function(p) {
  1188. return function(l, o) {
  1189. var r, i, u = h(f(l)), v = m(o), y = u.length;
  1190. return 0 > v || v >= y ? p ? "" : void 0 : 55296 > (r = a(u, v)) || r > 56319 || v + 1 === y || 56320 > (i = a(u, v + 1)) || i > 57343 ? p ? d(u, v) : r : p ? s(u, v, v + 2) : i - 56320 + (r - 55296 << 10) + 65536;
  1191. };
  1192. };
  1193. _.exports = { codeAt: c(!1), charAt: c(!0) };
  1194. }, 73800: function(_, t, e) {
  1195. var n = e(65190), m = e(75834);
  1196. _.exports = !!Object.getOwnPropertySymbols && !m(function() {
  1197. var h = Symbol();
  1198. return !String(h) || !(Object(h) instanceof Symbol) || !Symbol.sham && n && 41 > n;
  1199. });
  1200. }, 13829: function(_, t, e) {
  1201. var n = e(9093), m = e(98945), h = e(19517), f = e(35065);
  1202. _.exports = function() {
  1203. var d = m("Symbol"), a = d && d.prototype, s = a && a.valueOf, c = h("toPrimitive");
  1204. a && !a[c] && f(a, c, function(p) {
  1205. return n(s, this);
  1206. }, { arity: 1 });
  1207. };
  1208. }, 31948: function(_, t, e) {
  1209. var n = e(73800);
  1210. _.exports = n && !!Symbol.for && !!Symbol.keyFor;
  1211. }, 10586: function(_, t, e) {
  1212. var n = e(27876), m = Math.max, h = Math.min;
  1213. _.exports = function(f, d) {
  1214. var a = n(f);
  1215. return 0 > a ? m(a + d, 0) : h(a, d);
  1216. };
  1217. }, 98651: function(_, t, e) {
  1218. var n = e(25049), m = e(60265);
  1219. _.exports = function(h) {
  1220. return n(m(h));
  1221. };
  1222. }, 27876: function(_, t, e) {
  1223. var n = e(43932);
  1224. _.exports = function(m) {
  1225. var h = +m;
  1226. return h != h || h === 0 ? 0 : n(h);
  1227. };
  1228. }, 24431: function(_, t, e) {
  1229. var n = e(27876), m = Math.min;
  1230. _.exports = function(h) {
  1231. return h > 0 ? m(n(h), 9007199254740991) : 0;
  1232. };
  1233. }, 68488: function(_, t, e) {
  1234. var n = e(60265), m = Object;
  1235. _.exports = function(h) {
  1236. return m(n(h));
  1237. };
  1238. }, 11261: function(_, t, e) {
  1239. var n = e(9093), m = e(8148), h = e(88253), f = e(20156), d = e(82472), a = e(19517), s = TypeError, c = a("toPrimitive");
  1240. _.exports = function(p, l) {
  1241. if (!m(p) || h(p)) return p;
  1242. var o, r = f(p, c);
  1243. if (r) {
  1244. if (l === void 0 && (l = "default"), o = n(r, p, l), !m(o) || h(o)) return o;
  1245. throw s("Can't convert object to primitive value");
  1246. }
  1247. return l === void 0 && (l = "number"), d(p, l);
  1248. };
  1249. }, 43836: function(_, t, e) {
  1250. var n = e(11261), m = e(88253);
  1251. _.exports = function(h) {
  1252. var f = n(h, "string");
  1253. return m(f) ? f : f + "";
  1254. };
  1255. }, 6424: function(_, t, e) {
  1256. var n = {};
  1257. n[e(19517)("toStringTag")] = "z", _.exports = String(n) === "[object z]";
  1258. }, 63046: function(_, t, e) {
  1259. var n = e(8652), m = String;
  1260. _.exports = function(h) {
  1261. if (n(h) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
  1262. return m(h);
  1263. };
  1264. }, 98418: function(_) {
  1265. var t = String;
  1266. _.exports = function(e) {
  1267. try {
  1268. return t(e);
  1269. } catch (n) {
  1270. return "Object";
  1271. }
  1272. };
  1273. }, 15257: function(_, t, e) {
  1274. var n = e(90838), m = 0, h = Math.random(), f = n(1 .toString);
  1275. _.exports = function(d) {
  1276. return "Symbol(" + (d === void 0 ? "" : d) + ")_" + f(++m + h, 36);
  1277. };
  1278. }, 57982: function(_, t, e) {
  1279. var n = e(73800);
  1280. _.exports = n && !Symbol.sham && typeof Symbol.iterator == "symbol";
  1281. }, 63142: function(_, t, e) {
  1282. var n = e(13873), m = e(75834);
  1283. _.exports = n && m(function() {
  1284. return Object.defineProperty(function() {
  1285. }, "prototype", { value: 42, writable: !1 }).prototype != 42;
  1286. });
  1287. }, 95473: function(_, t, e) {
  1288. var n = e(37042), m = e(794), h = n.WeakMap;
  1289. _.exports = m(h) && /native code/.test(String(h));
  1290. }, 89633: function(_, t, e) {
  1291. var n = e(31116), m = e(14434), h = e(96767), f = e(73252).f;
  1292. _.exports = function(d) {
  1293. var a = n.Symbol || (n.Symbol = {});
  1294. m(a, d) || f(a, d, { value: h.f(d) });
  1295. };
  1296. }, 96767: function(_, t, e) {
  1297. var n = e(19517);
  1298. t.f = n;
  1299. }, 19517: function(_, t, e) {
  1300. var n = e(37042), m = e(95138), h = e(14434), f = e(15257), d = e(73800), a = e(57982), s = n.Symbol, c = m("wks"), p = a ? s.for || s : s && s.withoutSetter || f;
  1301. _.exports = function(l) {
  1302. return h(c, l) || (c[l] = d && h(s, l) ? s[l] : p("Symbol." + l)), c[l];
  1303. };
  1304. }, 54166: function(_, t, e) {
  1305. var n = e(50791), m = e(75834), h = e(36222), f = e(8148), d = e(68488), a = e(15050), s = e(39505), c = e(89476), p = e(6429), l = e(63833), o = e(19517), r = e(65190), i = o("isConcatSpreadable"), u = r >= 51 || !m(function() {
  1306. var y = [];
  1307. return y[i] = !1, y.concat()[0] !== y;
  1308. }), v = function(y) {
  1309. if (!f(y)) return !1;
  1310. var g = y[i];
  1311. return g !== void 0 ? !!g : h(y);
  1312. };
  1313. n({ target: "Array", proto: !0, arity: 1, forced: !u || !l("concat") }, { concat: function(y) {
  1314. var g, b, w, C, S, j = d(this), E = p(j, 0), x = 0;
  1315. for (g = -1, w = arguments.length; w > g; g++) if (v(S = g === -1 ? j : arguments[g])) for (C = a(S), s(x + C), b = 0; C > b; b++, x++) b in S && c(E, x, S[b]);
  1316. else s(x + 1), c(E, x++, S);
  1317. return E.length = x, E;
  1318. } });
  1319. }, 22513: function(_, t, e) {
  1320. var n = e(50791), m = e(56881).findIndex, h = e(15179), f = "findIndex", d = !0;
  1321. f in [] && Array(1).findIndex(function() {
  1322. d = !1;
  1323. }), n({ target: "Array", proto: !0, forced: d }, { findIndex: function(a) {
  1324. return m(this, a, arguments.length > 1 ? arguments[1] : void 0);
  1325. } }), h(f);
  1326. }, 70057: function(_, t, e) {
  1327. var n = e(50791), m = e(92707);
  1328. n({ target: "Array", stat: !0, forced: !e(7581)(function(h) {
  1329. Array.from(h);
  1330. }) }, { from: m });
  1331. }, 67507: function(_, t, e) {
  1332. var n = e(50791), m = e(98945), h = e(55101), f = e(9093), d = e(90838), a = e(75834), s = e(794), c = e(88253), p = e(54832), l = e(6693), o = e(73800), r = String, i = m("JSON", "stringify"), u = d(/./.exec), v = d("".charAt), y = d("".charCodeAt), g = d("".replace), b = d(1 .toString), w = /[\uD800-\uDFFF]/g, C = /^[\uD800-\uDBFF]$/, S = /^[\uDC00-\uDFFF]$/, j = !o || a(function() {
  1333. var I = m("Symbol")();
  1334. return i([I]) != "[null]" || i({ a: I }) != "{}" || i(Object(I)) != "{}";
  1335. }), E = a(function() {
  1336. return i("\uDF06\uD834") !== '"\\udf06\\ud834"' || i("\uDEAD") !== '"\\udead"';
  1337. }), x = function(I, M) {
  1338. var T = p(arguments), O = l(M);
  1339. if (s(O) || I !== void 0 && !c(I)) return T[1] = function(L, N) {
  1340. if (s(O) && (N = f(O, this, r(L), N)), !c(N)) return N;
  1341. }, h(i, null, T);
  1342. }, k = function(I, M, T) {
  1343. var O = v(T, M - 1), L = v(T, M + 1);
  1344. return u(C, I) && !u(S, L) || u(S, I) && !u(C, O) ? "\\u" + b(y(I, 0), 16) : I;
  1345. };
  1346. i && n({ target: "JSON", stat: !0, arity: 3, forced: j || E }, { stringify: function(I, M, T) {
  1347. var O = p(arguments), L = h(j ? x : i, null, O);
  1348. return E && typeof L == "string" ? g(L, w, k) : L;
  1349. } });
  1350. }, 90217: function(_, t, e) {
  1351. var n = e(37042);
  1352. e(44532)(n.JSON, "JSON", !0);
  1353. }, 73477: function(_, t, e) {
  1354. e(44532)(Math, "Math", !0);
  1355. }, 30165: function(_, t, e) {
  1356. var n = e(50791), m = e(73800), h = e(75834), f = e(23953), d = e(68488);
  1357. n({ target: "Object", stat: !0, forced: !m || h(function() {
  1358. f.f(1);
  1359. }) }, { getOwnPropertySymbols: function(a) {
  1360. var s = f.f;
  1361. return s ? s(d(a)) : [];
  1362. } });
  1363. }, 32044: function(_, t, e) {
  1364. var n = e(6424), m = e(35065), h = e(57555);
  1365. n || m(Object.prototype, "toString", h, { unsafe: !0 });
  1366. }, 93697: function(_, t, e) {
  1367. var n = e(50791), m = e(37042), h = e(44532);
  1368. n({ global: !0 }, { Reflect: {} }), h(m.Reflect, "Reflect", !0);
  1369. }, 52867: function(_, t, e) {
  1370. var n = e(41397).charAt, m = e(63046), h = e(56113), f = e(13759), d = e(17427), a = "String Iterator", s = h.set, c = h.getterFor(a);
  1371. f(String, "String", function(p) {
  1372. s(this, { type: a, string: m(p), index: 0 });
  1373. }, function() {
  1374. var p, l = c(this), o = l.string, r = l.index;
  1375. return o.length > r ? (p = n(o, r), l.index += p.length, d(p, !1)) : d(void 0, !0);
  1376. });
  1377. }, 28424: function(_, t, e) {
  1378. e(89633)("asyncIterator");
  1379. }, 9656: function(_, t, e) {
  1380. var n = e(50791), m = e(37042), h = e(9093), f = e(90838), d = e(70852), a = e(13873), s = e(73800), c = e(75834), p = e(14434), l = e(54671), o = e(52313), r = e(98651), i = e(43836), u = e(63046), v = e(32500), y = e(93503), g = e(3385), b = e(7792), w = e(53305), C = e(23953), S = e(36999), j = e(73252), E = e(5770), x = e(33244), k = e(35065), I = e(97548), M = e(95138), T = e(85475), O = e(48889), L = e(15257), N = e(19517), H = e(96767), q = e(89633), F = e(13829), U = e(44532), Y = e(56113), P = e(56881).forEach, D = T("hidden"), z = "Symbol", R = Y.set, A = Y.getterFor(z), B = Object.prototype, X = m.Symbol, W = X && X.prototype, Q = m.TypeError, ne = m.QObject, ce = S.f, re = j.f, he = w.f, ae = x.f, be = f([].push), se = M("symbols"), de = M("op-symbols"), Me = M("wks"), me = !ne || !ne.prototype || !ne.prototype.findChild, ve = a && c(function() {
  1381. return y(re({}, "a", { get: function() {
  1382. return re(this, "a", { value: 7 }).a;
  1383. } })).a != 7;
  1384. }) ? function(V, G, K) {
  1385. var J = ce(B, G);
  1386. J && delete B[G], re(V, G, K), J && V !== B && re(B, G, J);
  1387. } : re, ge = function(V, G) {
  1388. var K = se[V] = y(W);
  1389. return R(K, { type: z, tag: V, description: G }), a || (K.description = G), K;
  1390. }, fe = function(V, G, K) {
  1391. V === B && fe(de, G, K), o(V);
  1392. var J = i(G);
  1393. return o(K), p(se, J) ? (K.enumerable ? (p(V, D) && V[D][J] && (V[D][J] = !1), K = y(K, { enumerable: v(0, !1) })) : (p(V, D) || re(V, D, v(1, {})), V[D][J] = !0), ve(V, J, K)) : re(V, J, K);
  1394. }, ye = function(V, G) {
  1395. o(V);
  1396. var K = r(G), J = g(K).concat(Ce(K));
  1397. return P(J, function(oe) {
  1398. a && !h(_e, K, oe) || fe(V, oe, K[oe]);
  1399. }), V;
  1400. }, _e = function(V) {
  1401. var G = i(V), K = h(ae, this, G);
  1402. return !(this === B && p(se, G) && !p(de, G)) && (!(K || !p(this, G) || !p(se, G) || p(this, D) && this[D][G]) || K);
  1403. }, we = function(V, G) {
  1404. var K = r(V), J = i(G);
  1405. if (K !== B || !p(se, J) || p(de, J)) {
  1406. var oe = ce(K, J);
  1407. return !oe || !p(se, J) || p(K, D) && K[D][J] || (oe.enumerable = !0), oe;
  1408. }
  1409. }, Se = function(V) {
  1410. var G = he(r(V)), K = [];
  1411. return P(G, function(J) {
  1412. p(se, J) || p(O, J) || be(K, J);
  1413. }), K;
  1414. }, Ce = function(V) {
  1415. var G = V === B, K = he(G ? de : r(V)), J = [];
  1416. return P(K, function(oe) {
  1417. !p(se, oe) || G && !p(B, oe) || be(J, se[oe]);
  1418. }), J;
  1419. };
  1420. s || (X = function() {
  1421. if (l(W, this)) throw Q("Symbol is not a constructor");
  1422. var V = arguments.length && arguments[0] !== void 0 ? u(arguments[0]) : void 0, G = L(V), K = function(J) {
  1423. this === B && h(K, de, J), p(this, D) && p(this[D], G) && (this[D][G] = !1), ve(this, G, v(1, J));
  1424. };
  1425. return a && me && ve(B, G, { configurable: !0, set: K }), ge(G, V);
  1426. }, k(W = X.prototype, "toString", function() {
  1427. return A(this).tag;
  1428. }), k(X, "withoutSetter", function(V) {
  1429. return ge(L(V), V);
  1430. }), x.f = _e, j.f = fe, E.f = ye, S.f = we, b.f = w.f = Se, C.f = Ce, H.f = function(V) {
  1431. return ge(N(V), V);
  1432. }, a && (I(W, "description", { configurable: !0, get: function() {
  1433. return A(this).description;
  1434. } }), d || k(B, "propertyIsEnumerable", _e, { unsafe: !0 }))), n({ global: !0, constructor: !0, wrap: !0, forced: !s, sham: !s }, { Symbol: X }), P(g(Me), function(V) {
  1435. q(V);
  1436. }), n({ target: z, stat: !0, forced: !s }, { useSetter: function() {
  1437. me = !0;
  1438. }, useSimple: function() {
  1439. me = !1;
  1440. } }), n({ target: "Object", stat: !0, forced: !s, sham: !a }, { create: function(V, G) {
  1441. return G === void 0 ? y(V) : ye(y(V), G);
  1442. }, defineProperty: fe, defineProperties: ye, getOwnPropertyDescriptor: we }), n({ target: "Object", stat: !0, forced: !s }, { getOwnPropertyNames: Se }), F(), U(X, z), O[D] = !0;
  1443. }, 64514: function(_, t, e) {
  1444. var n = e(50791), m = e(13873), h = e(37042), f = e(90838), d = e(14434), a = e(794), s = e(54671), c = e(63046), p = e(97548), l = e(58392), o = h.Symbol, r = o && o.prototype;
  1445. if (m && a(o) && (!("description" in r) || o().description !== void 0)) {
  1446. var i = {}, u = function() {
  1447. var S = 1 > arguments.length || arguments[0] === void 0 ? void 0 : c(arguments[0]), j = s(r, this) ? new o(S) : S === void 0 ? o() : o(S);
  1448. return S === "" && (i[j] = !0), j;
  1449. };
  1450. l(u, o), u.prototype = r, r.constructor = u;
  1451. var v = String(o("test")) == "Symbol(test)", y = f(r.valueOf), g = f(r.toString), b = /^Symbol\((.*)\)[^)]+$/, w = f("".replace), C = f("".slice);
  1452. p(r, "description", { configurable: !0, get: function() {
  1453. var S = y(this);
  1454. if (d(i, S)) return "";
  1455. var j = g(S), E = v ? C(j, 7, -1) : w(j, b, "$1");
  1456. return E === "" ? void 0 : E;
  1457. } }), n({ global: !0, constructor: !0, forced: !0 }, { Symbol: u });
  1458. }
  1459. }, 56202: function(_, t, e) {
  1460. var n = e(50791), m = e(98945), h = e(14434), f = e(63046), d = e(95138), a = e(31948), s = d("string-to-symbol-registry"), c = d("symbol-to-string-registry");
  1461. n({ target: "Symbol", stat: !0, forced: !a }, { for: function(p) {
  1462. var l = f(p);
  1463. if (h(s, l)) return s[l];
  1464. var o = m("Symbol")(l);
  1465. return s[l] = o, c[o] = l, o;
  1466. } });
  1467. }, 30733: function(_, t, e) {
  1468. e(89633)("hasInstance");
  1469. }, 40327: function(_, t, e) {
  1470. e(89633)("isConcatSpreadable");
  1471. }, 53639: function(_, t, e) {
  1472. e(89633)("iterator");
  1473. }, 95661: function(_, t, e) {
  1474. e(9656), e(56202), e(71940), e(67507), e(30165);
  1475. }, 71940: function(_, t, e) {
  1476. var n = e(50791), m = e(14434), h = e(88253), f = e(98418), d = e(95138), a = e(31948), s = d("symbol-to-string-registry");
  1477. n({ target: "Symbol", stat: !0, forced: !a }, { keyFor: function(c) {
  1478. if (!h(c)) throw TypeError(f(c) + " is not a symbol");
  1479. if (m(s, c)) return s[c];
  1480. } });
  1481. }, 7290: function(_, t, e) {
  1482. e(89633)("matchAll");
  1483. }, 6147: function(_, t, e) {
  1484. e(89633)("match");
  1485. }, 95122: function(_, t, e) {
  1486. e(89633)("replace");
  1487. }, 61322: function(_, t, e) {
  1488. e(89633)("search");
  1489. }, 39605: function(_, t, e) {
  1490. e(89633)("species");
  1491. }, 49341: function(_, t, e) {
  1492. e(89633)("split");
  1493. }, 28809: function(_, t, e) {
  1494. var n = e(89633), m = e(13829);
  1495. n("toPrimitive"), m();
  1496. }, 82658: function(_, t, e) {
  1497. var n = e(98945), m = e(89633), h = e(44532);
  1498. m("toStringTag"), h(n("Symbol"), "Symbol");
  1499. }, 43967: function(_, t, e) {
  1500. e(89633)("unscopables");
  1501. }, 690: function(_, t, e) {
  1502. _.exports = e(26002).polyfill();
  1503. }, 26002: function(_, t, e) {
  1504. _.exports = function() {
  1505. function n(P) {
  1506. return typeof P == "function";
  1507. }
  1508. var m = Array.isArray ? Array.isArray : function(P) {
  1509. return Object.prototype.toString.call(P) === "[object Array]";
  1510. }, h = 0, f = void 0, d = void 0, a = function(P, D) {
  1511. i[h] = P, i[h + 1] = D, (h += 2) === 2 && (d ? d(u) : w());
  1512. }, s = typeof window != "undefined" ? window : void 0, c = s || {}, p = c.MutationObserver || c.WebKitMutationObserver, l = typeof self == "undefined" && typeof process != "undefined" && {}.toString.call(process) === "[object process]", o = typeof Uint8ClampedArray != "undefined" && typeof importScripts != "undefined" && typeof MessageChannel != "undefined";
  1513. function r() {
  1514. var P = setTimeout;
  1515. return function() {
  1516. return P(u, 1);
  1517. };
  1518. }
  1519. var i = new Array(1e3);
  1520. function u() {
  1521. for (var P = 0; h > P; P += 2) (0, i[P])(i[P + 1]), i[P] = void 0, i[P + 1] = void 0;
  1522. h = 0;
  1523. }
  1524. var v, y, g, b, w = void 0;
  1525. function C(P, D) {
  1526. var z = this, R = new this.constructor(E);
  1527. R[j] === void 0 && F(R);
  1528. var A = z._state;
  1529. if (A) {
  1530. var B = arguments[A - 1];
  1531. a(function() {
  1532. return H(A, R, B, z._result);
  1533. });
  1534. } else L(z, R, P, D);
  1535. return R;
  1536. }
  1537. function S(P) {
  1538. if (P && typeof P == "object" && P.constructor === this) return P;
  1539. var D = new this(E);
  1540. return I(D, P), D;
  1541. }
  1542. w = l ? function() {
  1543. return process.nextTick(u);
  1544. } : p ? (y = 0, g = new p(u), b = document.createTextNode(""), g.observe(b, { characterData: !0 }), function() {
  1545. b.data = y = ++y % 2;
  1546. }) : o ? ((v = new MessageChannel()).port1.onmessage = u, function() {
  1547. return v.port2.postMessage(0);
  1548. }) : s === void 0 ? function() {
  1549. try {
  1550. var P = Function("return this")().require("vertx");
  1551. return (f = P.runOnLoop || P.runOnContext) !== void 0 ? function() {
  1552. f(u);
  1553. } : r();
  1554. } catch (D) {
  1555. return r();
  1556. }
  1557. }() : r();
  1558. var j = Math.random().toString(36).substring(2);
  1559. function E() {
  1560. }
  1561. var x = void 0;
  1562. function k(P, D, z) {
  1563. D.constructor === P.constructor && z === C && D.constructor.resolve === S ? function(R, A) {
  1564. A._state === 1 ? T(R, A._result) : A._state === 2 ? O(R, A._result) : L(A, void 0, function(B) {
  1565. return I(R, B);
  1566. }, function(B) {
  1567. return O(R, B);
  1568. });
  1569. }(P, D) : z === void 0 ? T(P, D) : n(z) ? function(R, A, B) {
  1570. a(function(X) {
  1571. var W = !1, Q = function(ne, ce, re, he) {
  1572. try {
  1573. ne.call(ce, function(ae) {
  1574. W || (W = !0, A !== ae ? I(X, ae) : T(X, ae));
  1575. }, function(ae) {
  1576. W || (W = !0, O(X, ae));
  1577. });
  1578. } catch (ae) {
  1579. return ae;
  1580. }
  1581. }(B, A);
  1582. !W && Q && (W = !0, O(X, Q));
  1583. }, R);
  1584. }(P, D, z) : T(P, D);
  1585. }
  1586. function I(P, D) {
  1587. if (P === D) O(P, new TypeError("You cannot resolve a promise with itself"));
  1588. else if (A = typeof (R = D), R === null || A !== "object" && A !== "function") T(P, D);
  1589. else {
  1590. var z = void 0;
  1591. try {
  1592. z = D.then;
  1593. } catch (B) {
  1594. return void O(P, B);
  1595. }
  1596. k(P, D, z);
  1597. }
  1598. var R, A;
  1599. }
  1600. function M(P) {
  1601. P._onerror && P._onerror(P._result), N(P);
  1602. }
  1603. function T(P, D) {
  1604. P._state === x && (P._result = D, P._state = 1, P._subscribers.length !== 0 && a(N, P));
  1605. }
  1606. function O(P, D) {
  1607. P._state === x && (P._state = 2, P._result = D, a(M, P));
  1608. }
  1609. function L(P, D, z, R) {
  1610. var A = P._subscribers, B = A.length;
  1611. P._onerror = null, A[B] = D, A[B + 1] = z, A[B + 2] = R, B === 0 && P._state && a(N, P);
  1612. }
  1613. function N(P) {
  1614. var D = P._subscribers, z = P._state;
  1615. if (D.length !== 0) {
  1616. for (var R = void 0, A = void 0, B = P._result, X = 0; D.length > X; X += 3) A = D[X + z], (R = D[X]) ? H(z, R, A, B) : A(B);
  1617. P._subscribers.length = 0;
  1618. }
  1619. }
  1620. function H(P, D, z, R) {
  1621. var A = n(z), B = void 0, X = void 0, W = !0;
  1622. if (A) {
  1623. try {
  1624. B = z(R);
  1625. } catch (Q) {
  1626. W = !1, X = Q;
  1627. }
  1628. if (D === B) return void O(D, new TypeError("A promises callback cannot return that same promise."));
  1629. } else B = R;
  1630. D._state !== x || (A && W ? I(D, B) : W === !1 ? O(D, X) : P === 1 ? T(D, B) : P === 2 && O(D, B));
  1631. }
  1632. var q = 0;
  1633. function F(P) {
  1634. P[j] = q++, P._state = void 0, P._result = void 0, P._subscribers = [];
  1635. }
  1636. var U = function() {
  1637. function P(D, z) {
  1638. this._instanceConstructor = D, this.promise = new D(E), this.promise[j] || F(this.promise), m(z) ? (this.length = z.length, this._remaining = z.length, this._result = new Array(this.length), this.length === 0 ? T(this.promise, this._result) : (this.length = this.length || 0, this._enumerate(z), this._remaining === 0 && T(this.promise, this._result))) : O(this.promise, new Error("Array Methods must be provided an Array"));
  1639. }
  1640. return P.prototype._enumerate = function(D) {
  1641. for (var z = 0; this._state === x && D.length > z; z++) this._eachEntry(D[z], z);
  1642. }, P.prototype._eachEntry = function(D, z) {
  1643. var R = this._instanceConstructor, A = R.resolve;
  1644. if (A === S) {
  1645. var B = void 0, X = void 0, W = !1;
  1646. try {
  1647. B = D.then;
  1648. } catch (ne) {
  1649. W = !0, X = ne;
  1650. }
  1651. if (B === C && D._state !== x) this._settledAt(D._state, z, D._result);
  1652. else if (typeof B != "function") this._remaining--, this._result[z] = D;
  1653. else if (R === Y) {
  1654. var Q = new R(E);
  1655. W ? O(Q, X) : k(Q, D, B), this._willSettleAt(Q, z);
  1656. } else this._willSettleAt(new R(function(ne) {
  1657. return ne(D);
  1658. }), z);
  1659. } else this._willSettleAt(A(D), z);
  1660. }, P.prototype._settledAt = function(D, z, R) {
  1661. var A = this.promise;
  1662. A._state === x && (this._remaining--, D === 2 ? O(A, R) : this._result[z] = R), this._remaining === 0 && T(A, this._result);
  1663. }, P.prototype._willSettleAt = function(D, z) {
  1664. var R = this;
  1665. L(D, void 0, function(A) {
  1666. return R._settledAt(1, z, A);
  1667. }, function(A) {
  1668. return R._settledAt(2, z, A);
  1669. });
  1670. }, P;
  1671. }(), Y = function() {
  1672. function P(D) {
  1673. this[j] = q++, this._result = this._state = void 0, this._subscribers = [], E !== D && (typeof D != "function" && function() {
  1674. throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");
  1675. }(), this instanceof P ? function(z, R) {
  1676. try {
  1677. R(function(A) {
  1678. I(z, A);
  1679. }, function(A) {
  1680. O(z, A);
  1681. });
  1682. } catch (A) {
  1683. O(z, A);
  1684. }
  1685. }(this, D) : function() {
  1686. throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
  1687. }());
  1688. }
  1689. return P.prototype.catch = function(D) {
  1690. return this.then(null, D);
  1691. }, P.prototype.finally = function(D) {
  1692. var z = this, R = z.constructor;
  1693. return n(D) ? z.then(function(A) {
  1694. return R.resolve(D()).then(function() {
  1695. return A;
  1696. });
  1697. }, function(A) {
  1698. return R.resolve(D()).then(function() {
  1699. throw A;
  1700. });
  1701. }) : z.then(D, D);
  1702. }, P;
  1703. }();
  1704. return Y.prototype.then = C, Y.all = function(P) {
  1705. return new U(this, P).promise;
  1706. }, Y.race = function(P) {
  1707. var D = this;
  1708. return m(P) ? new D(function(z, R) {
  1709. for (var A = P.length, B = 0; A > B; B++) D.resolve(P[B]).then(z, R);
  1710. }) : new D(function(z, R) {
  1711. return R(new TypeError("You must pass an array to race."));
  1712. });
  1713. }, Y.resolve = S, Y.reject = function(P) {
  1714. var D = new this(E);
  1715. return O(D, P), D;
  1716. }, Y._setScheduler = function(P) {
  1717. d = P;
  1718. }, Y._setAsap = function(P) {
  1719. a = P;
  1720. }, Y._asap = a, Y.polyfill = function() {
  1721. var P = void 0;
  1722. if (e.g !== void 0) P = e.g;
  1723. else if (typeof self != "undefined") P = self;
  1724. else try {
  1725. P = Function("return this")();
  1726. } catch (R) {
  1727. throw new Error("polyfill failed because global object is unavailable in this environment");
  1728. }
  1729. var D = P.Promise;
  1730. if (D) {
  1731. var z = null;
  1732. try {
  1733. z = Object.prototype.toString.call(D.resolve());
  1734. } catch (R) {
  1735. }
  1736. if (z === "[object Promise]" && !D.cast) return;
  1737. }
  1738. P.Promise = Y;
  1739. }, Y.Promise = Y, Y;
  1740. }();
  1741. }, 20255: function(_, t) {
  1742. Object.defineProperty(t, "__esModule", { value: !0 }), t.__classPrivateFieldIn = t.__classPrivateFieldSet = t.__classPrivateFieldGet = t.__importDefault = t.__importStar = t.__makeTemplateObject = t.__asyncValues = t.__asyncDelegator = t.__asyncGenerator = t.__await = t.__spreadArray = t.__spreadArrays = t.__spread = t.__read = t.__values = t.__exportStar = t.__createBinding = t.__generator = t.__awaiter = t.__metadata = t.__setFunctionName = t.__propKey = t.__runInitializers = t.__esDecorate = t.__param = t.__decorate = t.__rest = t.__assign = t.__extends = void 0;
  1743. var e = function(d, a) {
  1744. return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(s, c) {
  1745. s.__proto__ = c;
  1746. } || function(s, c) {
  1747. for (var p in c) Object.prototype.hasOwnProperty.call(c, p) && (s[p] = c[p]);
  1748. }, e(d, a);
  1749. };
  1750. function n(d) {
  1751. var a = typeof Symbol == "function" && Symbol.iterator, s = a && d[a], c = 0;
  1752. if (s) return s.call(d);
  1753. if (d && typeof d.length == "number") return { next: function() {
  1754. return d && c >= d.length && (d = void 0), { value: d && d[c++], done: !d };
  1755. } };
  1756. throw new TypeError(a ? "Object is not iterable." : "Symbol.iterator is not defined.");
  1757. }
  1758. function m(d, a) {
  1759. var s = typeof Symbol == "function" && d[Symbol.iterator];
  1760. if (!s) return d;
  1761. var c, p, l = s.call(d), o = [];
  1762. try {
  1763. for (; (a === void 0 || a-- > 0) && !(c = l.next()).done; ) o.push(c.value);
  1764. } catch (r) {
  1765. p = { error: r };
  1766. } finally {
  1767. try {
  1768. c && !c.done && (s = l.return) && s.call(l);
  1769. } finally {
  1770. if (p) throw p.error;
  1771. }
  1772. }
  1773. return o;
  1774. }
  1775. function h(d) {
  1776. return this instanceof h ? (this.v = d, this) : new h(d);
  1777. }
  1778. t.__extends = function(d, a) {
  1779. if (typeof a != "function" && a !== null) throw new TypeError("Class extends value " + String(a) + " is not a constructor or null");
  1780. function s() {
  1781. this.constructor = d;
  1782. }
  1783. e(d, a), d.prototype = a === null ? Object.create(a) : (s.prototype = a.prototype, new s());
  1784. }, t.__assign = function() {
  1785. return t.__assign = Object.assign || function(d) {
  1786. for (var a, s = 1, c = arguments.length; c > s; s++) for (var p in a = arguments[s]) Object.prototype.hasOwnProperty.call(a, p) && (d[p] = a[p]);
  1787. return d;
  1788. }, t.__assign.apply(this, arguments);
  1789. }, t.__rest = function(d, a) {
  1790. var s = {};
  1791. for (var c in d) Object.prototype.hasOwnProperty.call(d, c) && 0 > a.indexOf(c) && (s[c] = d[c]);
  1792. if (d != null && typeof Object.getOwnPropertySymbols == "function") {
  1793. var p = 0;
  1794. for (c = Object.getOwnPropertySymbols(d); c.length > p; p++) 0 > a.indexOf(c[p]) && Object.prototype.propertyIsEnumerable.call(d, c[p]) && (s[c[p]] = d[c[p]]);
  1795. }
  1796. return s;
  1797. }, t.__decorate = function(d, a, s, c) {
  1798. var p, l = arguments.length, o = 3 > l ? a : c === null ? c = Object.getOwnPropertyDescriptor(a, s) : c;
  1799. if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(d, a, s, c);
  1800. else for (var r = d.length - 1; r >= 0; r--) (p = d[r]) && (o = (3 > l ? p(o) : l > 3 ? p(a, s, o) : p(a, s)) || o);
  1801. return l > 3 && o && Object.defineProperty(a, s, o), o;
  1802. }, t.__param = function(d, a) {
  1803. return function(s, c) {
  1804. a(s, c, d);
  1805. };
  1806. }, t.__esDecorate = function(d, a, s, c, p, l) {
  1807. function o(j) {
  1808. if (j !== void 0 && typeof j != "function") throw new TypeError("Function expected");
  1809. return j;
  1810. }
  1811. for (var r, i = c.kind, u = i === "getter" ? "get" : i === "setter" ? "set" : "value", v = !a && d ? c.static ? d : d.prototype : null, y = a || (v ? Object.getOwnPropertyDescriptor(v, c.name) : {}), g = !1, b = s.length - 1; b >= 0; b--) {
  1812. var w = {};
  1813. for (var C in c) w[C] = C === "access" ? {} : c[C];
  1814. for (var C in c.access) w.access[C] = c.access[C];
  1815. w.addInitializer = function(j) {
  1816. if (g) throw new TypeError("Cannot add initializers after decoration has completed");
  1817. l.push(o(j || null));
  1818. };
  1819. var S = (0, s[b])(i === "accessor" ? { get: y.get, set: y.set } : y[u], w);
  1820. if (i === "accessor") {
  1821. if (S === void 0) continue;
  1822. if (S === null || typeof S != "object") throw new TypeError("Object expected");
  1823. (r = o(S.get)) && (y.get = r), (r = o(S.set)) && (y.set = r), (r = o(S.init)) && p.push(r);
  1824. } else (r = o(S)) && (i === "field" ? p.push(r) : y[u] = r);
  1825. }
  1826. v && Object.defineProperty(v, c.name, y), g = !0;
  1827. }, t.__runInitializers = function(d, a, s) {
  1828. for (var c = arguments.length > 2, p = 0; a.length > p; p++) s = c ? a[p].call(d, s) : a[p].call(d);
  1829. return c ? s : void 0;
  1830. }, t.__propKey = function(d) {
  1831. return typeof d == "symbol" ? d : "".concat(d);
  1832. }, t.__setFunctionName = function(d, a, s) {
  1833. return typeof a == "symbol" && (a = a.description ? "[".concat(a.description, "]") : ""), Object.defineProperty(d, "name", { configurable: !0, value: s ? "".concat(s, " ", a) : a });
  1834. }, t.__metadata = function(d, a) {
  1835. if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(d, a);
  1836. }, t.__awaiter = function(d, a, s, c) {
  1837. return new (s || (s = Promise))(function(p, l) {
  1838. function o(u) {
  1839. try {
  1840. i(c.next(u));
  1841. } catch (v) {
  1842. l(v);
  1843. }
  1844. }
  1845. function r(u) {
  1846. try {
  1847. i(c.throw(u));
  1848. } catch (v) {
  1849. l(v);
  1850. }
  1851. }
  1852. function i(u) {
  1853. var v;
  1854. u.done ? p(u.value) : (v = u.value, v instanceof s ? v : new s(function(y) {
  1855. y(v);
  1856. })).then(o, r);
  1857. }
  1858. i((c = c.apply(d, a || [])).next());
  1859. });
  1860. }, t.__generator = function(d, a) {
  1861. var s, c, p, l, o = { label: 0, sent: function() {
  1862. if (1 & p[0]) throw p[1];
  1863. return p[1];
  1864. }, trys: [], ops: [] };
  1865. return l = { next: r(0), throw: r(1), return: r(2) }, typeof Symbol == "function" && (l[Symbol.iterator] = function() {
  1866. return this;
  1867. }), l;
  1868. function r(i) {
  1869. return function(u) {
  1870. return function(v) {
  1871. if (s) throw new TypeError("Generator is already executing.");
  1872. for (; l && (l = 0, v[0] && (o = 0)), o; ) try {
  1873. if (s = 1, c && (p = 2 & v[0] ? c.return : v[0] ? c.throw || ((p = c.return) && p.call(c), 0) : c.next) && !(p = p.call(c, v[1])).done) return p;
  1874. switch (c = 0, p && (v = [2 & v[0], p.value]), v[0]) {
  1875. case 0:
  1876. case 1:
  1877. p = v;
  1878. break;
  1879. case 4:
  1880. return o.label++, { value: v[1], done: !1 };
  1881. case 5:
  1882. o.label++, c = v[1], v = [0];
  1883. continue;
  1884. case 7:
  1885. v = o.ops.pop(), o.trys.pop();
  1886. continue;
  1887. default:
  1888. if (!((p = (p = o.trys).length > 0 && p[p.length - 1]) || v[0] !== 6 && v[0] !== 2)) {
  1889. o = 0;
  1890. continue;
  1891. }
  1892. if (v[0] === 3 && (!p || v[1] > p[0] && p[3] > v[1])) {
  1893. o.label = v[1];
  1894. break;
  1895. }
  1896. if (v[0] === 6 && p[1] > o.label) {
  1897. o.label = p[1], p = v;
  1898. break;
  1899. }
  1900. if (p && p[2] > o.label) {
  1901. o.label = p[2], o.ops.push(v);
  1902. break;
  1903. }
  1904. p[2] && o.ops.pop(), o.trys.pop();
  1905. continue;
  1906. }
  1907. v = a.call(d, o);
  1908. } catch (y) {
  1909. v = [6, y], c = 0;
  1910. } finally {
  1911. s = p = 0;
  1912. }
  1913. if (5 & v[0]) throw v[1];
  1914. return { value: v[0] ? v[1] : void 0, done: !0 };
  1915. }([i, u]);
  1916. };
  1917. }
  1918. }, t.__createBinding = Object.create ? function(d, a, s, c) {
  1919. c === void 0 && (c = s);
  1920. var p = Object.getOwnPropertyDescriptor(a, s);
  1921. p && !("get" in p ? !a.__esModule : p.writable || p.configurable) || (p = { enumerable: !0, get: function() {
  1922. return a[s];
  1923. } }), Object.defineProperty(d, c, p);
  1924. } : function(d, a, s, c) {
  1925. c === void 0 && (c = s), d[c] = a[s];
  1926. }, t.__exportStar = function(d, a) {
  1927. for (var s in d) s === "default" || Object.prototype.hasOwnProperty.call(a, s) || (0, t.__createBinding)(a, d, s);
  1928. }, t.__values = n, t.__read = m, t.__spread = function() {
  1929. for (var d = [], a = 0; arguments.length > a; a++) d = d.concat(m(arguments[a]));
  1930. return d;
  1931. }, t.__spreadArrays = function() {
  1932. for (var d = 0, a = 0, s = arguments.length; s > a; a++) d += arguments[a].length;
  1933. var c = Array(d), p = 0;
  1934. for (a = 0; s > a; a++) for (var l = arguments[a], o = 0, r = l.length; r > o; o++, p++) c[p] = l[o];
  1935. return c;
  1936. }, t.__spreadArray = function(d, a, s) {
  1937. if (s || arguments.length === 2) for (var c, p = 0, l = a.length; l > p; p++) !c && p in a || (c || (c = Array.prototype.slice.call(a, 0, p)), c[p] = a[p]);
  1938. return d.concat(c || Array.prototype.slice.call(a));
  1939. }, t.__await = h, t.__asyncGenerator = function(d, a, s) {
  1940. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  1941. var c, p = s.apply(d, a || []), l = [];
  1942. return c = {}, o("next"), o("throw"), o("return"), c[Symbol.asyncIterator] = function() {
  1943. return this;
  1944. }, c;
  1945. function o(y) {
  1946. p[y] && (c[y] = function(g) {
  1947. return new Promise(function(b, w) {
  1948. l.push([y, g, b, w]) > 1 || r(y, g);
  1949. });
  1950. });
  1951. }
  1952. function r(y, g) {
  1953. try {
  1954. (b = p[y](g)).value instanceof h ? Promise.resolve(b.value.v).then(i, u) : v(l[0][2], b);
  1955. } catch (w) {
  1956. v(l[0][3], w);
  1957. }
  1958. var b;
  1959. }
  1960. function i(y) {
  1961. r("next", y);
  1962. }
  1963. function u(y) {
  1964. r("throw", y);
  1965. }
  1966. function v(y, g) {
  1967. y(g), l.shift(), l.length && r(l[0][0], l[0][1]);
  1968. }
  1969. }, t.__asyncDelegator = function(d) {
  1970. var a, s;
  1971. return a = {}, c("next"), c("throw", function(p) {
  1972. throw p;
  1973. }), c("return"), a[Symbol.iterator] = function() {
  1974. return this;
  1975. }, a;
  1976. function c(p, l) {
  1977. a[p] = d[p] ? function(o) {
  1978. return (s = !s) ? { value: h(d[p](o)), done: !1 } : l ? l(o) : o;
  1979. } : l;
  1980. }
  1981. }, t.__asyncValues = function(d) {
  1982. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  1983. var a, s = d[Symbol.asyncIterator];
  1984. return s ? s.call(d) : (d = n(d), a = {}, c("next"), c("throw"), c("return"), a[Symbol.asyncIterator] = function() {
  1985. return this;
  1986. }, a);
  1987. function c(p) {
  1988. a[p] = d[p] && function(l) {
  1989. return new Promise(function(o, r) {
  1990. (function(i, u, v, y) {
  1991. Promise.resolve(y).then(function(g) {
  1992. i({ value: g, done: v });
  1993. }, u);
  1994. })(o, r, (l = d[p](l)).done, l.value);
  1995. });
  1996. };
  1997. }
  1998. }, t.__makeTemplateObject = function(d, a) {
  1999. return Object.defineProperty ? Object.defineProperty(d, "raw", { value: a }) : d.raw = a, d;
  2000. };
  2001. var f = Object.create ? function(d, a) {
  2002. Object.defineProperty(d, "default", { enumerable: !0, value: a });
  2003. } : function(d, a) {
  2004. d.default = a;
  2005. };
  2006. t.__importStar = function(d) {
  2007. if (d && d.__esModule) return d;
  2008. var a = {};
  2009. if (d != null) for (var s in d) s !== "default" && Object.prototype.hasOwnProperty.call(d, s) && (0, t.__createBinding)(a, d, s);
  2010. return f(a, d), a;
  2011. }, t.__importDefault = function(d) {
  2012. return d && d.__esModule ? d : { default: d };
  2013. }, t.__classPrivateFieldGet = function(d, a, s, c) {
  2014. if (s === "a" && !c) throw new TypeError("Private accessor was defined without a getter");
  2015. if (typeof a == "function" ? d !== a || !c : !a.has(d)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
  2016. return s === "m" ? c : s === "a" ? c.call(d) : c ? c.value : a.get(d);
  2017. }, t.__classPrivateFieldSet = function(d, a, s, c, p) {
  2018. if (c === "m") throw new TypeError("Private method is not writable");
  2019. if (c === "a" && !p) throw new TypeError("Private accessor was defined without a setter");
  2020. if (typeof a == "function" ? d !== a || !p : !a.has(d)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
  2021. return c === "a" ? p.call(d, s) : p ? p.value = s : a.set(d, s), s;
  2022. }, t.__classPrivateFieldIn = function(d, a) {
  2023. if (a === null || typeof a != "object" && typeof a != "function") throw new TypeError("Cannot use 'in' operator on non-object");
  2024. return typeof d == "function" ? a === d : d.has(a);
  2025. };
  2026. }, 93166: function(_, t, e) {
  2027. Object.defineProperty(t, "__esModule", { value: !0 }), t.Config = void 0;
  2028. var n = e(86893), m = e(86893), h = function() {
  2029. function f() {
  2030. this.defaultTimeout = 100, this.namespace = "", this.safeMode = !1, this.width = "auto", this.height = "auto", this.safePluginsList = ["about", "enter", "backspace", "size"], 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 = typeof document != "undefined" ? document : null, this.ownerWindow = typeof window != "undefined" ? window : null, this.shadowRoot = null, 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.editorClassName = !1, this.editorCssClass = !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 = 1e3, this.useNativeTooltip = !1, this.defaultActionOnPaste = m.INSERT_AS_HTML, this.enter = n.PARAGRAPH, this.iframe = !1, this.editHTMLDocumentMode = !1, this.enterBlock = this.enter !== "br" ? this.enter : n.PARAGRAPH, this.defaultMode = n.MODE_WYSIWYG, 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: [] }, `
  2031. `, { 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.buttonsMD = ["bold", "italic", "|", "ul", "ol", "eraser", "|", "font", "fontsize", "---", "image", "table", "|", "link", `
  2032. `, "brush", "paragraph", "align", "|", "hr", "copyformat", "fullsize", "---", "undo", "redo", "|", "dots"], this.buttonsSM = ["bold", "italic", "|", "ul", "ol", "eraser", "|", "fontsize", "brush", "paragraph", "---", "image", "table", `
  2033. `, "link", "|", "align", "|", "undo", "redo", "|", "copyformat", "fullsize", "---", "dots"], this.buttonsXS = ["bold", "brush", "paragraph", "eraser", "|", "fontsize", "---", "image", `
  2034. `, "align", "undo", "redo", "|", "link", "table", "---", "dots"], this.events = {}, this.textIcons = !1, this.showBrowserColorPicker = !0;
  2035. }
  2036. return Object.defineProperty(f, "defaultOptions", { get: function() {
  2037. return f.__defaultOptions || (f.__defaultOptions = new f()), f.__defaultOptions;
  2038. }, enumerable: !1, configurable: !0 }), f;
  2039. }();
  2040. t.Config = h, h.prototype.controls = {};
  2041. }, 77536: function(_, t, e) {
  2042. Object.defineProperty(t, "__esModule", { value: !0 }), t.Async = void 0;
  2043. var n = e(20255), m = e(4696), h = e(42096), f = e(79736), d = e(26335), a = e(24421), s = e(61817), c = (e(52378), function() {
  2044. function p() {
  2045. var l, o, r, i, u = this;
  2046. this.timers = /* @__PURE__ */ new Map(), this.__callbacks = /* @__PURE__ */ new Map(), this.promisesRejections = /* @__PURE__ */ new Set(), this.requestsIdle = /* @__PURE__ */ new Set(), this.requestsRaf = /* @__PURE__ */ new Set(), this.requestIdleCallbackNative = (o = (l = window.requestIdleCallback) === null || l === void 0 ? void 0 : l.bind(window)) !== null && o !== void 0 ? o : function(v, y) {
  2047. var g, b = Date.now();
  2048. return u.setTimeout(function() {
  2049. v({ didTimeout: !1, timeRemaining: function() {
  2050. return Math.max(0, 50 - (Date.now() - b));
  2051. } });
  2052. }, (g = y == null ? void 0 : y.timeout) !== null && g !== void 0 ? g : 1);
  2053. }, this.cancelIdleCallbackNative = (i = (r = window.cancelIdleCallback) === null || r === void 0 ? void 0 : r.bind(window)) !== null && i !== void 0 ? i : function(v) {
  2054. u.clearTimeout(v);
  2055. }, this.isDestructed = !1;
  2056. }
  2057. return p.prototype.delay = function(l) {
  2058. var o = this;
  2059. return this.promise(function(r) {
  2060. return o.setTimeout(r, l);
  2061. });
  2062. }, p.prototype.setTimeout = function(l, o) {
  2063. for (var r = [], i = 2; arguments.length > i; i++) r[i - 2] = arguments[i];
  2064. if (this.isDestructed) return 0;
  2065. var u = {};
  2066. (0, s.isNumber)(o) || (o = (u = o).timeout || 0), u.label && this.clearLabel(u.label);
  2067. var v = m.setTimeout.apply(void 0, n.__spreadArray([l, o], n.__read(r), !1)), y = u.label || v;
  2068. return this.timers.set(y, v), this.__callbacks.set(y, l), v;
  2069. }, p.prototype.updateTimeout = function(l, o) {
  2070. if (!l || !this.timers.has(l)) return null;
  2071. var r = this.__callbacks.get(l);
  2072. return this.setTimeout(r, { label: l, timeout: o });
  2073. }, p.prototype.clearLabel = function(l) {
  2074. l && this.timers.has(l) && ((0, m.clearTimeout)(this.timers.get(l)), this.timers.delete(l), this.__callbacks.delete(l));
  2075. }, p.prototype.clearTimeout = function(l) {
  2076. if ((0, a.isString)(l)) return this.clearLabel(l);
  2077. (0, m.clearTimeout)(l), this.timers.delete(l), this.__callbacks.delete(l);
  2078. }, p.prototype.debounce = function(l, o, r) {
  2079. var i = this;
  2080. r === void 0 && (r = !1);
  2081. var u = 0, v = !1, y = [], g = function() {
  2082. for (var w = [], C = 0; arguments.length > C; C++) w[C] = arguments[C];
  2083. if (!v) {
  2084. u = 0;
  2085. var S = l.apply(void 0, n.__spreadArray([], n.__read(w), !1));
  2086. if (v = !0, y.length) {
  2087. var j = function() {
  2088. y.forEach(function(E) {
  2089. return E();
  2090. }), y.length = 0;
  2091. };
  2092. (0, d.isPromise)(S) ? S.finally(j) : j();
  2093. }
  2094. }
  2095. }, b = function() {
  2096. for (var w = [], C = 0; arguments.length > C; C++) w[C] = arguments[C];
  2097. v = !1, o ? (!u && r && g.apply(void 0, n.__spreadArray([], n.__read(w), !1)), (0, m.clearTimeout)(u), u = i.setTimeout(function() {
  2098. return g.apply(void 0, n.__spreadArray([], n.__read(w), !1));
  2099. }, (0, h.isFunction)(o) ? o() : o), i.timers.set(l, u)) : g.apply(void 0, n.__spreadArray([], n.__read(w), !1));
  2100. };
  2101. return (0, f.isPlainObject)(o) && o.promisify ? function() {
  2102. for (var w = [], C = 0; arguments.length > C; C++) w[C] = arguments[C];
  2103. var S = i.promise(function(j) {
  2104. y.push(j);
  2105. });
  2106. return b.apply(void 0, n.__spreadArray([], n.__read(w), !1)), S;
  2107. } : b;
  2108. }, p.prototype.throttle = function(l, o, r) {
  2109. var i = this, u, v, y, g = null;
  2110. return function() {
  2111. for (var b = [], w = 0; arguments.length > w; w++) b[w] = arguments[w];
  2112. u = !0, y = b, o ? g || (v = function() {
  2113. u ? (l.apply(void 0, n.__spreadArray([], n.__read(y), !1)), u = !1, g = i.setTimeout(v, (0, h.isFunction)(o) ? o() : o), i.timers.set(v, g)) : g = null;
  2114. })() : l.apply(void 0, n.__spreadArray([], n.__read(y), !1));
  2115. };
  2116. }, p.prototype.promise = function(l) {
  2117. var o = this, r = function() {
  2118. }, i = new Promise(function(u, v) {
  2119. return o.promisesRejections.add(v), r = v, l(u, v);
  2120. });
  2121. return i.finally || (i.finally = function(u) {
  2122. return i.then(u).catch(u), i;
  2123. }), i.finally(function() {
  2124. o.promisesRejections.delete(r);
  2125. }).catch(function() {
  2126. return null;
  2127. }), i.rejectCallback = r, i;
  2128. }, p.prototype.promiseState = function(l) {
  2129. var o = this;
  2130. if (l.status) return l.status;
  2131. if (!Promise.race) return new Promise(function(i) {
  2132. l.then(function(u) {
  2133. return i("fulfilled"), u;
  2134. }, function(u) {
  2135. throw i("rejected"), u;
  2136. }), o.setTimeout(function() {
  2137. i("pending");
  2138. }, 100);
  2139. });
  2140. var r = {};
  2141. return Promise.race([l, r]).then(function(i) {
  2142. return i === r ? "pending" : "fulfilled";
  2143. }, function() {
  2144. return "rejected";
  2145. });
  2146. }, p.prototype.requestIdleCallback = function(l, o) {
  2147. var r = this.requestIdleCallbackNative(l, o);
  2148. return this.requestsIdle.add(r), r;
  2149. }, p.prototype.requestIdlePromise = function(l) {
  2150. var o = this;
  2151. return this.promise(function(r) {
  2152. var i = o.requestIdleCallback(function() {
  2153. return r(i);
  2154. }, l);
  2155. });
  2156. }, p.prototype.cancelIdleCallback = function(l) {
  2157. return this.requestsIdle.delete(l), this.cancelIdleCallbackNative(l);
  2158. }, p.prototype.requestAnimationFrame = function(l) {
  2159. var o = requestAnimationFrame(l);
  2160. return this.requestsRaf.add(o), o;
  2161. }, p.prototype.cancelAnimationFrame = function(l) {
  2162. this.requestsRaf.delete(l), cancelAnimationFrame(l);
  2163. }, p.prototype.clear = function() {
  2164. var l = this;
  2165. this.requestsIdle.forEach(function(o) {
  2166. return l.cancelIdleCallback(o);
  2167. }), this.requestsRaf.forEach(function(o) {
  2168. return l.cancelAnimationFrame(o);
  2169. }), this.timers.forEach(function(o) {
  2170. return (0, m.clearTimeout)(l.timers.get(o));
  2171. }), this.timers.clear(), this.promisesRejections.forEach(function(o) {
  2172. return o();
  2173. }), this.promisesRejections.clear();
  2174. }, p.prototype.destruct = function() {
  2175. this.clear(), this.isDestructed = !0;
  2176. }, p;
  2177. }());
  2178. t.Async = c;
  2179. }, 22630: function(_, t, e) {
  2180. Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(77536), t);
  2181. }, 45113: function(_, t, e) {
  2182. Object.defineProperty(t, "__esModule", { value: !0 }), t.Component = void 0;
  2183. var n = e(40332), m = e(17332), h = e(29411), f = e(22630), d = /* @__PURE__ */ new Map(), a = function() {
  2184. function s() {
  2185. this.async = new f.Async(), this.ownerWindow = window, this.__componentStatus = h.STATUSES.beforeInit, this.uid = "jodit-uid-" + (0, m.uniqueUid)();
  2186. }
  2187. return Object.defineProperty(s.prototype, "componentName", { get: function() {
  2188. return this.__componentName || (this.__componentName = "jodit-" + (0, n.kebabCase)(((0, n.isFunction)(this.className) ? this.className() : "") || (0, n.getClassName)(this))), this.__componentName;
  2189. }, enumerable: !1, configurable: !0 }), s.prototype.getFullElName = function(c, p, l) {
  2190. var o = [this.componentName];
  2191. return c && (c = c.replace(/[^a-z0-9-]/gi, "-"), o.push("__".concat(c))), p && (o.push("_", p), o.push("_", (0, n.isVoid)(l) ? "true" : l.toString())), o.join("");
  2192. }, Object.defineProperty(s.prototype, "ownerDocument", { get: function() {
  2193. return this.ow.document;
  2194. }, enumerable: !1, configurable: !0 }), Object.defineProperty(s.prototype, "od", { get: function() {
  2195. return this.ownerDocument;
  2196. }, enumerable: !1, configurable: !0 }), Object.defineProperty(s.prototype, "ow", { get: function() {
  2197. return this.ownerWindow;
  2198. }, enumerable: !1, configurable: !0 }), s.prototype.get = function(c, p) {
  2199. return (0, n.get)(c, p || this);
  2200. }, Object.defineProperty(s.prototype, "isReady", { get: function() {
  2201. return this.componentStatus === h.STATUSES.ready;
  2202. }, enumerable: !1, configurable: !0 }), Object.defineProperty(s.prototype, "isDestructed", { get: function() {
  2203. return this.componentStatus === h.STATUSES.destructed;
  2204. }, enumerable: !1, configurable: !0 }), Object.defineProperty(s.prototype, "isInDestruct", { get: function() {
  2205. return h.STATUSES.beforeDestruct === this.componentStatus || h.STATUSES.destructed === this.componentStatus;
  2206. }, enumerable: !1, configurable: !0 }), s.prototype.bindDestruct = function(c) {
  2207. var p = this;
  2208. return c.hookStatus(h.STATUSES.beforeDestruct, function() {
  2209. return !p.isInDestruct && p.destruct();
  2210. }), this;
  2211. }, s.prototype.destruct = function() {
  2212. this.setStatus(h.STATUSES.destructed), this.async.destruct(), d.get(this) && d.delete(this);
  2213. }, Object.defineProperty(s.prototype, "componentStatus", { get: function() {
  2214. return this.__componentStatus;
  2215. }, set: function(c) {
  2216. this.setStatus(c);
  2217. }, enumerable: !1, configurable: !0 }), s.prototype.setStatus = function(c) {
  2218. return this.setStatusComponent(c, this);
  2219. }, s.prototype.setStatusComponent = function(c, p) {
  2220. if (c !== this.__componentStatus) {
  2221. p === this && (this.__componentStatus = c);
  2222. var l = Object.getPrototypeOf(this);
  2223. l && (0, n.isFunction)(l.setStatusComponent) && l.setStatusComponent(c, p);
  2224. var o = d.get(this), r = o == null ? void 0 : o[c];
  2225. r && r.length && r.forEach(function(i) {
  2226. return i(p);
  2227. });
  2228. }
  2229. }, s.prototype.hookStatus = function(c, p) {
  2230. var l = d.get(this);
  2231. l || d.set(this, l = {}), l[c] || (l[c] = []), l[c].push(p);
  2232. }, s.isInstanceOf = function(c, p) {
  2233. return c instanceof p;
  2234. }, s.STATUSES = h.STATUSES, s;
  2235. }();
  2236. t.Component = a;
  2237. }, 56562: function(_, t, e) {
  2238. Object.defineProperty(t, "__esModule", { value: !0 });
  2239. var n = e(20255);
  2240. n.__exportStar(e(29411), t), n.__exportStar(e(45113), t), n.__exportStar(e(39840), t);
  2241. }, 29411: function(_, t) {
  2242. Object.defineProperty(t, "__esModule", { value: !0 }), t.STATUSES = void 0, t.STATUSES = { beforeInit: "beforeInit", ready: "ready", beforeDestruct: "beforeDestruct", destructed: "destructed" };
  2243. }, 39840: function(_, t, e) {
  2244. Object.defineProperty(t, "__esModule", { value: !0 }), t.ViewComponent = void 0;
  2245. var n = e(20255), m = function(h) {
  2246. function f(d) {
  2247. var a = h.call(this) || this;
  2248. return a.setParentView(d), a;
  2249. }
  2250. return n.__extends(f, h), Object.defineProperty(f.prototype, "j", { get: function() {
  2251. return this.jodit;
  2252. }, enumerable: !1, configurable: !0 }), Object.defineProperty(f.prototype, "defaultTimeout", { get: function() {
  2253. return this.j.defaultTimeout;
  2254. }, enumerable: !1, configurable: !0 }), f.prototype.i18n = function(d) {
  2255. for (var a, s = [], c = 1; arguments.length > c; c++) s[c - 1] = arguments[c];
  2256. return (a = this.j).i18n.apply(a, n.__spreadArray([d], n.__read(s), !1));
  2257. }, f.prototype.setParentView = function(d) {
  2258. return this.jodit = d, d.components.add(this), this;
  2259. }, f.prototype.destruct = function() {
  2260. return this.j.components.delete(this), h.prototype.destruct.call(this);
  2261. }, f;
  2262. }(e(45113).Component);
  2263. t.ViewComponent = m;
  2264. }, 86893: function(_, t, e) {
  2265. Object.defineProperty(t, "__esModule", { value: !0 }), t.CLIPBOARD_ID = t.lang = t.TEMP_ATTR = t.BASE_PATH = t.KEY_ALIASES = t.IS_MAC = t.SAFE_COUNT_CHANGE_CALL = t.INSERT_ONLY_TEXT = t.INSERT_AS_TEXT = t.INSERT_CLEAR_HTML = t.INSERT_AS_HTML = t.EMULATE_DBLCLICK_TIMEOUT = t.MARKER_CLASS = t.TEXT_RTF = t.TEXT_HTML = t.TEXT_PLAIN = t.IS_IE = t.MODE_SPLIT = t.MODE_SOURCE = t.MODE_WYSIWYG = t.PARAGRAPH = t.BR = t.COMMAND_KEYS = t.ACCURACY = t.NEARBY = t.KEY_F3 = t.KEY_DELETE = t.KEY_SPACE = t.KEY_DOWN = t.KEY_RIGHT = t.KEY_UP = t.KEY_LEFT = t.KEY_ALT = t.KEY_ESC = t.KEY_ENTER = t.KEY_TAB = t.KEY_BACKSPACE = t.KEY_META = t.NO_EMPTY_TAGS = t.INSEPARABLE_TAGS = t.IS_INLINE = t.IS_BLOCK = t.SPACE_REG_EXP_END = t.SPACE_REG_EXP_START = t.SPACE_REG_EXP = t.INVISIBLE_SPACE_REG_EXP_START = t.INVISIBLE_SPACE_REG_EXP_END = t.INVISIBLE_SPACE_REG_EXP = t.NBSP_SPACE = t.INVISIBLE_SPACE = void 0, t.SOURCE_CONSUMER = void 0;
  2266. var n = e(20255);
  2267. t.INVISIBLE_SPACE = "\uFEFF", t.NBSP_SPACE = " ", t.INVISIBLE_SPACE_REG_EXP = function() {
  2268. return /[\uFEFF]/g;
  2269. }, t.INVISIBLE_SPACE_REG_EXP_END = function() {
  2270. return /[\uFEFF]+$/g;
  2271. }, t.INVISIBLE_SPACE_REG_EXP_START = function() {
  2272. return /^[\uFEFF]+/g;
  2273. }, t.SPACE_REG_EXP = function() {
  2274. return /[\s\n\t\r\uFEFF\u200b]+/g;
  2275. }, t.SPACE_REG_EXP_START = function() {
  2276. return /^[\s\n\t\r\uFEFF\u200b]+/g;
  2277. }, t.SPACE_REG_EXP_END = function() {
  2278. return /[\s\n\t\r\uFEFF\u200b]+$/g;
  2279. }, t.IS_BLOCK = /^(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, t.IS_INLINE = /^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i;
  2280. var m = ["img", "video", "svg", "iframe", "script", "input", "textarea", "link", "jodit", "jodit-media"];
  2281. t.INSEPARABLE_TAGS = new Set(n.__spreadArray(n.__spreadArray([], n.__read(m), !1), ["br", "hr"], !1)), t.NO_EMPTY_TAGS = new Set(m), t.KEY_META = "Meta", t.KEY_BACKSPACE = "Backspace", t.KEY_TAB = "Tab", t.KEY_ENTER = "Enter", t.KEY_ESC = "Escape", t.KEY_ALT = "Alt", t.KEY_LEFT = "ArrowLeft", t.KEY_UP = "ArrowUp", t.KEY_RIGHT = "ArrowRight", t.KEY_DOWN = "ArrowDown", t.KEY_SPACE = "Space", t.KEY_DELETE = "Delete", t.KEY_F3 = "F3", t.NEARBY = 5, t.ACCURACY = 10, t.COMMAND_KEYS = [t.KEY_META, t.KEY_BACKSPACE, t.KEY_DELETE, t.KEY_UP, t.KEY_DOWN, t.KEY_RIGHT, t.KEY_LEFT, t.KEY_ENTER, t.KEY_ESC, t.KEY_F3, t.KEY_TAB], t.BR = "br", t.PARAGRAPH = "p", t.MODE_WYSIWYG = 1, t.MODE_SOURCE = 2, t.MODE_SPLIT = 3, t.IS_IE = typeof navigator != "undefined" && (navigator.userAgent.indexOf("MSIE") !== -1 || /rv:11.0/i.test(navigator.userAgent)), t.TEXT_PLAIN = t.IS_IE ? "text" : "text/plain", t.TEXT_HTML = t.IS_IE ? "html" : "text/html", t.TEXT_RTF = t.IS_IE ? "rtf" : "text/rtf", t.MARKER_CLASS = "jodit-selection_marker", t.EMULATE_DBLCLICK_TIMEOUT = 300, t.INSERT_AS_HTML = "insert_as_html", t.INSERT_CLEAR_HTML = "insert_clear_html", t.INSERT_AS_TEXT = "insert_as_text", t.INSERT_ONLY_TEXT = "insert_only_text", t.SAFE_COUNT_CHANGE_CALL = 10, t.IS_MAC = typeof window != "undefined" && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform), t.KEY_ALIASES = { add: "+", break: "pause", cmd: "meta", command: "meta", ctl: "control", ctrl: "control", del: "delete", down: "arrowdown", esc: "escape", ins: "insert", left: "arrowleft", mod: t.IS_MAC ? "meta" : "control", opt: "alt", option: "alt", return: "enter", right: "arrowright", space: " ", spacebar: " ", up: "arrowup", win: "meta", windows: "meta" }, t.BASE_PATH = function() {
  2282. if (typeof document == "undefined") return "";
  2283. var h = document.currentScript, f = function(a) {
  2284. var s = a.split("/");
  2285. return /\.js/.test(s[s.length - 1]) ? s.slice(0, s.length - 1).join("/") + "/" : a;
  2286. };
  2287. if (h) return f(h.src);
  2288. var d = document.querySelectorAll("script[src]");
  2289. return d && d.length ? f(d[d.length - 1].src) : window.location.href;
  2290. }(), t.TEMP_ATTR = "data-jodit-temp", t.lang = {}, t.CLIPBOARD_ID = "clipboard", t.SOURCE_CONSUMER = "source-consumer";
  2291. }, 31897: function(_, t, e) {
  2292. Object.defineProperty(t, "__esModule", { value: !0 }), t.Create = void 0;
  2293. var n = e(40332), m = (e(52378), e(64968)), h = e(86893), f = function() {
  2294. function d(a, s) {
  2295. this.document = a, this.createAttributes = s;
  2296. }
  2297. return Object.defineProperty(d.prototype, "doc", { get: function() {
  2298. return (0, n.isFunction)(this.document) ? this.document() : this.document;
  2299. }, enumerable: !1, configurable: !0 }), d.prototype.element = function(a, s, c) {
  2300. var p = this, l = this.doc.createElement(a.toLowerCase());
  2301. return this.applyCreateAttributes(l), s && ((0, n.isPlainObject)(s) ? (0, n.attr)(l, s) : c = s), c && (0, n.asArray)(c).forEach(function(o) {
  2302. return l.appendChild((0, n.isString)(o) ? p.fromHTML(o) : o);
  2303. }), l;
  2304. }, d.prototype.div = function(a, s, c) {
  2305. var p = this.element("div", s, c);
  2306. return a && (p.className = a), p;
  2307. }, d.prototype.sandbox = function() {
  2308. var a, s = this.element("iframe", { sandbox: "allow-same-origin" });
  2309. this.doc.body.appendChild(s);
  2310. var c = (a = s.contentWindow) === null || a === void 0 ? void 0 : a.document;
  2311. if (!c) throw Error("Iframe error");
  2312. return c.open(), c.write("<!DOCTYPE html><html><head></head><body></body></html>"), c.close(), c.body;
  2313. }, d.prototype.span = function(a, s, c) {
  2314. var p = this.element("span", s, c);
  2315. return a && (p.className = a), p;
  2316. }, d.prototype.a = function(a, s, c) {
  2317. var p = this.element("a", s, c);
  2318. return a && (p.className = a), p;
  2319. }, d.prototype.text = function(a) {
  2320. return this.doc.createTextNode(a);
  2321. }, d.prototype.fake = function() {
  2322. return this.text(h.INVISIBLE_SPACE);
  2323. }, d.prototype.fragment = function() {
  2324. return this.doc.createDocumentFragment();
  2325. }, d.prototype.fromHTML = function(a, s) {
  2326. var c = this.div();
  2327. c.innerHTML = a.toString();
  2328. var p = c.firstChild === c.lastChild && c.firstChild ? c.firstChild : c;
  2329. if (m.Dom.safeRemove(p), s) {
  2330. var l = (0, n.refs)(p);
  2331. Object.keys(s).forEach(function(o) {
  2332. var r = l[o];
  2333. r && s[o] === !1 && m.Dom.hide(r);
  2334. });
  2335. }
  2336. return p;
  2337. }, d.prototype.applyCreateAttributes = function(a) {
  2338. if (this.createAttributes) {
  2339. var s = this.createAttributes;
  2340. if (s && s[a.tagName.toLowerCase()]) {
  2341. var c = s[a.tagName.toLowerCase()];
  2342. (0, n.isFunction)(c) ? c(a) : (0, n.isPlainObject)(c) && (0, n.attr)(a, c);
  2343. }
  2344. }
  2345. }, d;
  2346. }();
  2347. t.Create = f;
  2348. }, 42841: function(_, t, e) {
  2349. Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(31897), t);
  2350. }, 32358: function(_, t, e) {
  2351. Object.defineProperty(t, "__esModule", { value: !0 }), t.cache = void 0;
  2352. var n = e(40332);
  2353. t.cache = function(m, h, f) {
  2354. var d = f.get;
  2355. if (!d) throw (0, n.error)("Getter property descriptor expected");
  2356. f.get = function() {
  2357. var a = d.call(this);
  2358. return a && a.noCache === !0 || Object.defineProperty(this, h, { configurable: f.configurable, enumerable: f.enumerable, writable: !1, value: a }), a;
  2359. };
  2360. };
  2361. }, 11441: function(_, t, e) {
  2362. Object.defineProperty(t, "__esModule", { value: !0 }), t.component = void 0;
  2363. var n = e(20255);
  2364. t.component = function(m) {
  2365. var h = function(f) {
  2366. function d() {
  2367. for (var a = [], s = 0; arguments.length > s; s++) a[s] = arguments[s];
  2368. var c = f.apply(this, n.__spreadArray([], n.__read(a), !1)) || this, p = c.constructor === d;
  2369. return p && (c instanceof d || Object.setPrototypeOf(c, d.prototype), c.setStatus("ready")), c;
  2370. }
  2371. return n.__extends(d, f), d;
  2372. }(m);
  2373. return h;
  2374. };
  2375. }, 55773: function(_, t, e) {
  2376. Object.defineProperty(t, "__esModule", { value: !0 }), t.throttle = t.debounce = void 0;
  2377. var n = e(10172), m = e(56562), h = e(56964);
  2378. function f(d, a, s) {
  2379. return a === void 0 && (a = !1), s === void 0 && (s = "debounce"), function(c, p) {
  2380. var l = c[p];
  2381. if (!(0, n.isFunction)(l)) throw (0, h.error)("Handler must be a Function");
  2382. return c.hookStatus(m.STATUSES.ready, function(o) {
  2383. var r = o.async, i = (0, n.isFunction)(d) ? d(o) : d;
  2384. Object.defineProperty(o, p, { configurable: !0, value: r[s](o[p].bind(o), (0, n.isNumber)(i) || (0, n.isPlainObject)(i) ? i : o.defaultTimeout, a) });
  2385. }), { configurable: !0, get: function() {
  2386. return l.bind(this);
  2387. } };
  2388. };
  2389. }
  2390. e(52378), t.debounce = f, t.throttle = function(d, a) {
  2391. return a === void 0 && (a = !1), f(d, a, "throttle");
  2392. };
  2393. }, 70669: function(_, t, e) {
  2394. Object.defineProperty(t, "__esModule", { value: !0 }), t.derive = void 0;
  2395. var n = e(20255), m = e(10172);
  2396. t.derive = function() {
  2397. for (var h = [], f = 0; arguments.length > f; f++) h[f] = arguments[f];
  2398. return function(d) {
  2399. for (var a = d.prototype, s = 0; h.length > s; s++) for (var c = h[s], p = Object.getOwnPropertyNames(c.prototype), l = function(r) {
  2400. var i = p[r], u = Object.getOwnPropertyDescriptor(c.prototype, i);
  2401. u != null && (0, m.isFunction)(u.value) && !(0, m.isFunction)(a[i]) && Object.defineProperty(a, i, { enumerable: !0, configurable: !0, writable: !0, value: function() {
  2402. for (var v, y = [], g = 0; arguments.length > g; g++) y[g] = arguments[g];
  2403. return (v = u.value).call.apply(v, n.__spreadArray([this], n.__read(y), !1));
  2404. } });
  2405. }, o = 0; p.length > o; o++) l(o);
  2406. };
  2407. };
  2408. }, 64522: function(_, t, e) {
  2409. Object.defineProperty(t, "__esModule", { value: !0 }), t.hook = void 0;
  2410. var n = e(10172), m = e(56964);
  2411. t.hook = function(h) {
  2412. return function(f, d) {
  2413. if (!(0, n.isFunction)(f[d])) throw (0, m.error)("Handler must be a Function");
  2414. f.hookStatus(h, function(a) {
  2415. a[d].call(a);
  2416. });
  2417. };
  2418. };
  2419. }, 58682: function(_, t, e) {
  2420. Object.defineProperty(t, "__esModule", { value: !0 }), t.idle = void 0;
  2421. var n = e(20255), m = e(56562), h = e(40332);
  2422. t.idle = function() {
  2423. return function(f, d) {
  2424. if (!(0, h.isFunction)(f[d])) throw (0, h.error)("Handler must be a Function");
  2425. f.hookStatus(m.STATUSES.ready, function(a) {
  2426. var s = a.async, c = a[d];
  2427. a[d] = function() {
  2428. for (var p = [], l = 0; arguments.length > l; l++) p[l] = arguments[l];
  2429. return s.requestIdleCallback(c.bind.apply(c, n.__spreadArray([a], n.__read(p), !1)));
  2430. };
  2431. });
  2432. };
  2433. };
  2434. }, 43441: function(_, t, e) {
  2435. Object.defineProperty(t, "__esModule", { value: !0 }), t.autobind = void 0;
  2436. var n = e(20255);
  2437. n.__exportStar(e(32358), t), n.__exportStar(e(11441), t), n.__exportStar(e(55773), t), n.__exportStar(e(58682), t), n.__exportStar(e(64522), t), n.__exportStar(e(91627), t), n.__exportStar(e(31418), t), n.__exportStar(e(67587), t), n.__exportStar(e(46163), t), n.__exportStar(e(70669), t);
  2438. var m = e(70631);
  2439. Object.defineProperty(t, "autobind", { enumerable: !0, get: function() {
  2440. return m.default;
  2441. } });
  2442. }, 91627: function(_, t) {
  2443. Object.defineProperty(t, "__esModule", { value: !0 }), t.nonenumerable = void 0, t.nonenumerable = function(e, n) {
  2444. (Object.getOwnPropertyDescriptor(e, n) || {}).enumerable !== !1 && Object.defineProperty(e, n, { enumerable: !1, set: function(m) {
  2445. Object.defineProperty(this, n, { enumerable: !1, writable: !0, value: m });
  2446. } });
  2447. };
  2448. }, 31418: function(_, t, e) {
  2449. Object.defineProperty(t, "__esModule", { value: !0 }), t.persistent = void 0;
  2450. var n = e(56562), m = e(96574);
  2451. t.persistent = function(h, f) {
  2452. h.hookStatus(n.STATUSES.ready, function(d) {
  2453. var a = (0, m.isViewObject)(d) ? d : d.jodit, s = "".concat(a.options.namespace).concat(d.componentName, "_prop_").concat(f), c = d[f];
  2454. Object.defineProperty(d, f, { get: function() {
  2455. var p;
  2456. return (p = a.storage.get(s)) !== null && p !== void 0 ? p : c;
  2457. }, set: function(p) {
  2458. a.storage.set(s, p);
  2459. } });
  2460. });
  2461. };
  2462. }, 67587: function(_, t, e) {
  2463. Object.defineProperty(t, "__esModule", { value: !0 }), t.wait = void 0;
  2464. var n = e(20255), m = e(40332), h = e(56562);
  2465. t.wait = function(f) {
  2466. return function(d, a) {
  2467. if (!(0, m.isFunction)(d[a])) throw (0, m.error)("Handler must be a Function");
  2468. d.hookStatus(h.STATUSES.ready, function(s) {
  2469. var c = s.async, p = s[a], l = 0;
  2470. Object.defineProperty(s, a, { configurable: !0, value: function o() {
  2471. for (var r = [], i = 0; arguments.length > i; i++) r[i] = arguments[i];
  2472. c.clearTimeout(l), f(s) ? p.apply(s, r) : l = c.setTimeout(function() {
  2473. return o.apply(void 0, n.__spreadArray([], n.__read(r), !1));
  2474. }, 10);
  2475. } });
  2476. });
  2477. };
  2478. };
  2479. }, 46163: function(_, t, e) {
  2480. Object.defineProperty(t, "__esModule", { value: !0 }), t.watch = t.getPropertyDescriptor = void 0;
  2481. var n = e(20255), m = e(42096), h = e(79736), f = e(96574), d = e(88418), a = e(29411), s = e(14556), c = e(56964);
  2482. function p(o, r) {
  2483. var i;
  2484. do
  2485. i = Object.getOwnPropertyDescriptor(o, r), o = Object.getPrototypeOf(o);
  2486. while (!i && o);
  2487. return i;
  2488. }
  2489. function l(o, r) {
  2490. return function(i, u) {
  2491. if (!(0, m.isFunction)(i[u])) throw (0, c.error)("Handler must be a Function");
  2492. var v = function(y) {
  2493. var g = function(b) {
  2494. for (var w, C = [], S = 1; arguments.length > S; S++) C[S - 1] = arguments[S];
  2495. if (!y.isInDestruct) return (w = y)[u].apply(w, n.__spreadArray([b], n.__read(C), !1));
  2496. };
  2497. (0, s.splitArray)(o).forEach(function(b) {
  2498. if (/:/.test(b)) {
  2499. var w = n.__read(b.split(":"), 2), C = w[0], S = w[1], j = r, E = (0, f.isViewObject)(y) ? y : y.jodit;
  2500. return C.length && (j = y.get(C)), (0, m.isFunction)(j) && (j = j(y)), E.events.on(j || y, S, g), j || E.events.on(S, g), void y.hookStatus("beforeDestruct", function() {
  2501. E.events.off(j || y, S, g).off(S, g);
  2502. });
  2503. }
  2504. var x = b.split("."), k = n.__read(x, 1)[0], I = x.slice(1), M = y[k];
  2505. (0, h.isPlainObject)(M) && (0, d.observable)(M).on("change.".concat(I.join(".")), g);
  2506. var T = p(i, k);
  2507. Object.defineProperty(y, k, { configurable: !0, set: function(O) {
  2508. var L = M;
  2509. L !== O && (M = O, T && T.set && T.set.call(y, O), (0, h.isPlainObject)(M) && (M = (0, d.observable)(M)).on("change.".concat(I.join(".")), g), g(k, L, M));
  2510. }, get: function() {
  2511. return T && T.get ? T.get.call(y) : M;
  2512. } });
  2513. });
  2514. };
  2515. (0, m.isFunction)(i.hookStatus) ? i.hookStatus(a.STATUSES.ready, v) : v(i);
  2516. };
  2517. }
  2518. t.getPropertyDescriptor = p, t.watch = l, t.default = l;
  2519. }, 24263: function(_, t, e) {
  2520. Object.defineProperty(t, "__esModule", { value: !0 }), t.Dom = void 0;
  2521. var n = e(20255), m = e(86893), h = e(10172), f = e(12557), d = e(19035), a = e(76502), s = e(37204), c = e(86893), p = function() {
  2522. function l() {
  2523. }
  2524. return l.detach = function(o) {
  2525. for (; o.firstChild; ) o.removeChild(o.firstChild);
  2526. }, l.wrapInline = function(o, r, i) {
  2527. var u, v = o, y = o;
  2528. i.s.save();
  2529. var g = !1;
  2530. do
  2531. g = !1, (u = v.previousSibling) && !l.isBlock(u) && (g = !0, v = u);
  2532. while (g);
  2533. do
  2534. g = !1, (u = y.nextSibling) && !l.isBlock(u) && (g = !0, y = u);
  2535. while (g);
  2536. var b = (0, h.isString)(r) ? i.createInside.element(r) : r;
  2537. v.parentNode && v.parentNode.insertBefore(b, v);
  2538. for (var w = v; w && (w = v.nextSibling, b.appendChild(v), v !== y && w); ) v = w;
  2539. return i.s.restore(), b;
  2540. }, l.wrap = function(o, r, i) {
  2541. var u = (0, h.isString)(r) ? i.element(r) : r;
  2542. if (l.isNode(o)) {
  2543. if (!o.parentNode) throw (0, a.error)("Element should be in DOM");
  2544. o.parentNode.insertBefore(u, o), u.appendChild(o);
  2545. } else {
  2546. var v = o.extractContents();
  2547. o.insertNode(u), u.appendChild(v);
  2548. }
  2549. return u;
  2550. }, l.unwrap = function(o) {
  2551. var r = o.parentNode;
  2552. if (r) {
  2553. for (; o.firstChild; ) r.insertBefore(o.firstChild, o);
  2554. l.safeRemove(o);
  2555. }
  2556. }, l.between = function(o, r, i) {
  2557. for (var u = o; u && u !== r && (o === u || !i(u)); ) {
  2558. var v = u.firstChild || u.nextSibling;
  2559. if (!v) {
  2560. for (; u && !u.nextSibling; ) u = u.parentNode;
  2561. v = u == null ? void 0 : u.nextSibling;
  2562. }
  2563. u = v;
  2564. }
  2565. }, l.replace = function(o, r, i, u, v) {
  2566. u === void 0 && (u = !1), v === void 0 && (v = !1), (0, h.isHTML)(r) && (r = i.fromHTML(r));
  2567. var y = (0, h.isString)(r) ? i.element(r) : r;
  2568. if (!v) for (; o.firstChild; ) y.appendChild(o.firstChild);
  2569. return u && l.isElement(o) && l.isElement(y) && (0, f.toArray)(o.attributes).forEach(function(g) {
  2570. y.setAttribute(g.name, g.value);
  2571. }), o.parentNode && o.parentNode.replaceChild(y, o), y;
  2572. }, l.isEmptyTextNode = function(o) {
  2573. return l.isText(o) && (!o.nodeValue || o.nodeValue.replace(m.INVISIBLE_SPACE_REG_EXP(), "").trim().length === 0);
  2574. }, l.isEmptyContent = function(o) {
  2575. return l.each(o, function(r) {
  2576. return l.isEmptyTextNode(r);
  2577. });
  2578. }, l.isContentEditable = function(o, r) {
  2579. return l.isNode(o) && !l.closest(o, function(i) {
  2580. return l.isElement(i) && i.getAttribute("contenteditable") === "false";
  2581. }, r);
  2582. }, l.isEmpty = function(o, r) {
  2583. if (r === void 0 && (r = c.NO_EMPTY_TAGS), !o) return !0;
  2584. var i;
  2585. i = (0, h.isFunction)(r) ? r : function(v) {
  2586. return r.has(v.nodeName.toLowerCase());
  2587. };
  2588. var u = function(v) {
  2589. return v.nodeValue == null || (0, d.trim)(v.nodeValue).length === 0;
  2590. };
  2591. return l.isText(o) ? u(o) : !(l.isElement(o) && i(o)) && l.each(o, function(v) {
  2592. if (l.isText(v) && !u(v) || l.isElement(v) && i(v)) return !1;
  2593. });
  2594. }, l.isNode = function(o) {
  2595. return !!(o && (0, h.isString)(o.nodeName) && typeof o.nodeType == "number" && o.childNodes && (0, h.isFunction)(o.appendChild));
  2596. }, l.isCell = function(o) {
  2597. return l.isNode(o) && /^(td|th)$/i.test(o.nodeName);
  2598. }, l.isImage = function(o) {
  2599. return l.isNode(o) && /^(img|svg|picture|canvas)$/i.test(o.nodeName);
  2600. }, l.isBlock = function(o) {
  2601. return !(0, h.isVoid)(o) && typeof o == "object" && l.isNode(o) && m.IS_BLOCK.test(o.nodeName);
  2602. }, l.isText = function(o) {
  2603. return !!(o && o.nodeType === Node.TEXT_NODE);
  2604. }, l.isElement = function(o) {
  2605. var r;
  2606. if (!l.isNode(o)) return !1;
  2607. var i = (r = o.ownerDocument) === null || r === void 0 ? void 0 : r.defaultView;
  2608. return !!(i && o.nodeType === Node.ELEMENT_NODE);
  2609. }, l.isFragment = function(o) {
  2610. var r;
  2611. if (!l.isNode(o)) return !1;
  2612. var i = (r = o.ownerDocument) === null || r === void 0 ? void 0 : r.defaultView;
  2613. return !!(i && o.nodeType === Node.DOCUMENT_FRAGMENT_NODE);
  2614. }, l.isHTMLElement = function(o) {
  2615. var r;
  2616. if (!l.isNode(o)) return !1;
  2617. var i = (r = o.ownerDocument) === null || r === void 0 ? void 0 : r.defaultView;
  2618. return !!(i && o instanceof i.HTMLElement);
  2619. }, l.isInlineBlock = function(o) {
  2620. return l.isElement(o) && !/^(BR|HR)$/i.test(o.tagName) && ["inline", "inline-block"].indexOf((0, a.css)(o, "display").toString()) !== -1;
  2621. }, l.canSplitBlock = function(o) {
  2622. return !(0, h.isVoid)(o) && l.isHTMLElement(o) && l.isBlock(o) && !/^(TD|TH|CAPTION|FORM)$/.test(o.nodeName) && o.style !== void 0 && !/^(fixed|absolute)/i.test(o.style.position);
  2623. }, l.last = function(o, r) {
  2624. var i = o == null ? void 0 : o.lastChild;
  2625. if (!i) return null;
  2626. do {
  2627. if (r(i)) return i;
  2628. var u = i.lastChild;
  2629. if (u || (u = i.previousSibling), !u && i.parentNode !== o) {
  2630. do
  2631. i = i.parentNode;
  2632. while (i && !(i != null && i.previousSibling) && i.parentNode !== o);
  2633. u = i == null ? void 0 : i.previousSibling;
  2634. }
  2635. i = u;
  2636. } while (i);
  2637. return null;
  2638. }, l.prev = function(o, r, i, u) {
  2639. return u === void 0 && (u = !0), l.find(o, r, i, !1, u);
  2640. }, l.next = function(o, r, i, u) {
  2641. return u === void 0 && (u = !0), l.find(o, r, i, !0, u);
  2642. }, l.prevWithClass = function(o, r) {
  2643. return l.prev(o, function(i) {
  2644. return l.isElement(i) && i.classList.contains(r);
  2645. }, o.parentNode);
  2646. }, l.nextWithClass = function(o, r) {
  2647. return l.next(o, function(i) {
  2648. return l.isElement(i) && i.classList.contains(r);
  2649. }, o.parentNode);
  2650. }, l.find = function(o, r, i, u, v) {
  2651. u === void 0 && (u = !0), v === void 0 && (v = !0);
  2652. for (var y = this.nextGen(o, i, u, v), g = y.next(); !g.done; ) {
  2653. if (r(g.value)) return g.value;
  2654. g = y.next();
  2655. }
  2656. return null;
  2657. }, l.nextGen = function(o, r, i, u) {
  2658. var v, y, g;
  2659. return i === void 0 && (i = !0), u === void 0 && (u = !0), n.__generator(this, function(b) {
  2660. switch (b.label) {
  2661. case 0:
  2662. v = [], y = o, b.label = 1;
  2663. case 1:
  2664. for (g = i ? y.nextSibling : y.previousSibling; g; ) v.unshift(g), g = i ? g.nextSibling : g.previousSibling;
  2665. return [5, n.__values(this.runInStack(o, v, i, u))];
  2666. case 2:
  2667. b.sent(), y = y.parentNode, b.label = 3;
  2668. case 3:
  2669. if (y && y !== r) return [3, 1];
  2670. b.label = 4;
  2671. case 4:
  2672. return [2, null];
  2673. }
  2674. });
  2675. }, l.each = function(o, r, i) {
  2676. i === void 0 && (i = !0);
  2677. for (var u = this.eachGen(o, i), v = u.next(); !v.done; ) {
  2678. if (r(v.value) === !1) return !1;
  2679. v = u.next();
  2680. }
  2681. return !0;
  2682. }, l.eachGen = function(o, r) {
  2683. return r === void 0 && (r = !0), this.runInStack(o, [o], r);
  2684. }, l.runInStack = function(o, r, i, u) {
  2685. var v, y;
  2686. return u === void 0 && (u = !0), n.__generator(this, function(g) {
  2687. switch (g.label) {
  2688. case 0:
  2689. if (!r.length) return [3, 3];
  2690. if (v = r.pop(), u) for (y = i ? v.lastChild : v.firstChild; y; ) r.push(y), y = i ? y.previousSibling : y.nextSibling;
  2691. return o === v ? [3, 2] : [4, v];
  2692. case 1:
  2693. g.sent(), g.label = 2;
  2694. case 2:
  2695. return [3, 0];
  2696. case 3:
  2697. return [2];
  2698. }
  2699. });
  2700. }, l.findWithCurrent = function(o, r, i, u, v) {
  2701. u === void 0 && (u = "nextSibling"), v === void 0 && (v = "firstChild");
  2702. var y = o;
  2703. do {
  2704. if (r(y)) return y || null;
  2705. if (v && y && y[v]) {
  2706. var g = l.findWithCurrent(y[v], r, y, u, v);
  2707. if (g) return g;
  2708. }
  2709. for (; y && !y[u] && y !== i; ) y = y.parentNode;
  2710. y && y[u] && y !== i && (y = y[u]);
  2711. } while (y && y !== i);
  2712. return null;
  2713. }, l.findSibling = function(o, r, i) {
  2714. r === void 0 && (r = !0), i === void 0 && (i = function(v) {
  2715. return !l.isEmptyTextNode(v);
  2716. });
  2717. for (var u = l.sibling(o, r); u && !i(u); ) u = l.sibling(u, r);
  2718. return u && i(u) ? u : null;
  2719. }, l.findNotEmptySibling = function(o, r) {
  2720. return l.findSibling(o, r, function(i) {
  2721. var u;
  2722. return !l.isEmptyTextNode(i) && !!(!l.isText(i) || !((u = i.nodeValue) === null || u === void 0) && u.length && (0, d.trim)(i.nodeValue));
  2723. });
  2724. }, l.findNotEmptyNeighbor = function(o, r, i) {
  2725. return (0, a.call)(r ? l.prev : l.next, o, function(u) {
  2726. return !!(u && (!l.isText(u) || (0, d.trim)((u == null ? void 0 : u.nodeValue) || "").length));
  2727. }, i);
  2728. }, l.sibling = function(o, r) {
  2729. return r ? o.previousSibling : o.nextSibling;
  2730. }, l.up = function(o, r, i, u) {
  2731. u === void 0 && (u = !1);
  2732. var v = o;
  2733. if (!v) return null;
  2734. do {
  2735. if (r(v)) return v;
  2736. if (v === i || !v.parentNode) break;
  2737. v = v.parentNode;
  2738. } while (v && v !== i);
  2739. return v === i && u && r(v) ? v : null;
  2740. }, l.closest = function(o, r, i) {
  2741. var u, v = function(g) {
  2742. return g.toLowerCase();
  2743. };
  2744. if ((0, h.isFunction)(r)) u = r;
  2745. else if ((0, h.isArray)(r)) {
  2746. var y = new Set(r.map(v));
  2747. u = function(g) {
  2748. return !!(g && y.has(v(g.nodeName)));
  2749. };
  2750. } else u = function(g) {
  2751. return !!(g && v(r) === v(g.nodeName));
  2752. };
  2753. return l.up(o, u, i);
  2754. }, l.furthest = function(o, r, i) {
  2755. for (var u = null, v = o == null ? void 0 : o.parentElement; v && v !== i; ) r(v) && (u = v), v = v == null ? void 0 : v.parentElement;
  2756. return u;
  2757. }, l.appendChildFirst = function(o, r) {
  2758. var i = o.firstChild;
  2759. i ? i !== r && o.insertBefore(r, i) : o.appendChild(r);
  2760. }, l.after = function(o, r) {
  2761. var i = o.parentNode;
  2762. i && (i.lastChild === o ? i.appendChild(r) : i.insertBefore(r, o.nextSibling));
  2763. }, l.before = function(o, r) {
  2764. var i = o.parentNode;
  2765. i && i.insertBefore(r, o);
  2766. }, l.prepend = function(o, r) {
  2767. o.insertBefore(r, o.firstChild);
  2768. }, l.append = function(o, r) {
  2769. var i = this;
  2770. (0, h.isArray)(r) ? r.forEach(function(u) {
  2771. i.append(o, u);
  2772. }) : o.appendChild(r);
  2773. }, l.moveContent = function(o, r, i, u) {
  2774. i === void 0 && (i = !1), u === void 0 && (u = function() {
  2775. return !0;
  2776. });
  2777. var v = (o.ownerDocument || document).createDocumentFragment();
  2778. (0, f.toArray)(o.childNodes).filter(function(y) {
  2779. return !!u(y) || (l.safeRemove(y), !1);
  2780. }).forEach(function(y) {
  2781. v.appendChild(y);
  2782. }), i && r.firstChild ? r.insertBefore(v, r.firstChild) : r.appendChild(v);
  2783. }, l.isOrContains = function(o, r, i) {
  2784. return i === void 0 && (i = !1), o === r ? !i : !!(r && o && this.up(r, function(u) {
  2785. return u === o;
  2786. }, o, !0));
  2787. }, l.safeRemove = function() {
  2788. for (var o = [], r = 0; arguments.length > r; r++) o[r] = arguments[r];
  2789. o.forEach(function(i) {
  2790. return l.isNode(i) && i.parentNode && i.parentNode.removeChild(i);
  2791. });
  2792. }, l.safeInsertNode = function(o, r) {
  2793. o.collapsed || o.deleteContents(), o.insertNode(r), o.setStartBefore(r), o.collapse(!0), [r.nextSibling, r.previousSibling].forEach(function(i) {
  2794. return l.isText(i) && !i.nodeValue && l.safeRemove(i);
  2795. });
  2796. }, l.hide = function(o) {
  2797. o && ((0, a.dataBind)(o, "__old_display", o.style.display), o.style.display = "none");
  2798. }, l.show = function(o) {
  2799. if (o) {
  2800. var r = (0, a.dataBind)(o, "__old_display");
  2801. o.style.display === "none" && (o.style.display = r || "");
  2802. }
  2803. }, l.isTag = function(o, r) {
  2804. if (!this.isElement(o)) return !1;
  2805. var i = o.tagName.toLowerCase(), u = o.tagName.toUpperCase();
  2806. if (r instanceof Set) return r.has(i) || r.has(u);
  2807. for (var v = (0, f.asArray)(r).map(function(g) {
  2808. return String(g).toLowerCase();
  2809. }), y = 0; v.length > y; y += 1) if (i === v[y] || u === v[y]) return !0;
  2810. return !1;
  2811. }, l.markTemporary = function(o, r) {
  2812. return r && (0, a.attr)(o, r), (0, a.attr)(o, c.TEMP_ATTR, !0), o;
  2813. }, l.isTemporary = function(o) {
  2814. return !!l.isElement(o) && ((0, s.isMarker)(o) || (0, a.attr)(o, c.TEMP_ATTR) === "true");
  2815. }, l.replaceTemporaryFromString = function(o) {
  2816. return o.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi, "$2");
  2817. }, l.temporaryList = function(o) {
  2818. return (0, a.$$)("[".concat(c.TEMP_ATTR, "]"), o);
  2819. }, l;
  2820. }();
  2821. t.Dom = p;
  2822. }, 64968: function(_, t, e) {
  2823. Object.defineProperty(t, "__esModule", { value: !0 });
  2824. var n = e(20255);
  2825. n.__exportStar(e(24263), t), n.__exportStar(e(33841), t);
  2826. }, 33841: function(_, t, e) {
  2827. Object.defineProperty(t, "__esModule", { value: !0 }), t.LazyWalker = void 0;
  2828. var n = e(20255), m = e(73852), h = e(43441), f = e(24263), d = function(a) {
  2829. function s(c, p) {
  2830. p === void 0 && (p = {});
  2831. var l = a.call(this) || this;
  2832. return l.async = c, l.options = p, l.workNodes = null, l.hadAffect = !1, l.isWorked = !1, l.isFinished = !1, l.idleId = 0, l;
  2833. }
  2834. return n.__extends(s, a), s.prototype.setWork = function(c) {
  2835. return this.isWorked && this.break(), this.workNodes = f.Dom.eachGen(c, !this.options.reverse), this.isFinished = !1, this.startIdleRequest(), this;
  2836. }, s.prototype.startIdleRequest = function() {
  2837. var c;
  2838. this.idleId = this.async.requestIdleCallback(this.workPerform, { timeout: (c = this.options.timeout) !== null && c !== void 0 ? c : 10 });
  2839. }, s.prototype.break = function(c) {
  2840. this.isWorked && (this.stop(), this.emit("break", c));
  2841. }, s.prototype.end = function() {
  2842. this.isWorked && (this.stop(), this.emit("end", this.hadAffect), this.hadAffect = !1);
  2843. }, s.prototype.stop = function() {
  2844. this.isWorked = !1, this.isFinished = !0, this.workNodes = null, this.async.cancelIdleCallback(this.idleId);
  2845. }, s.prototype.destruct = function() {
  2846. a.prototype.destruct.call(this), this.stop();
  2847. }, s.prototype.workPerform = function(c) {
  2848. var p;
  2849. if (this.workNodes) {
  2850. this.isWorked = !0;
  2851. for (var l = 0, o = (p = this.options.timeoutChunkSize) !== null && p !== void 0 ? p : 50; !this.isFinished && (c.timeRemaining() > 0 || c.didTimeout && o >= l); ) {
  2852. var r = this.workNodes.next();
  2853. if (l += 1, this.visitNode(r.value) && (this.hadAffect = !0), r.done) return void this.end();
  2854. }
  2855. } else this.end();
  2856. this.isFinished || this.startIdleRequest();
  2857. }, s.prototype.visitNode = function(c) {
  2858. var p;
  2859. return !(!c || this.options.whatToShow !== void 0 && c.nodeType !== this.options.whatToShow) && (p = this.emit("visit", c)) !== null && p !== void 0 && p;
  2860. }, n.__decorate([h.autobind], s.prototype, "workPerform", null), s;
  2861. }(m.Eventify);
  2862. t.LazyWalker = d;
  2863. }, 3808: function(_, t, e) {
  2864. Object.defineProperty(t, "__esModule", { value: !0 }), t.EventEmitter = void 0;
  2865. var n = e(20255), m = e(83611), h = e(24421), f = e(42096), d = e(49781), a = e(56964), s = e(14556), c = function() {
  2866. function p(l) {
  2867. var o = this;
  2868. this.__mutedEvents = /* @__PURE__ */ new Set(), this.__key = "__JoditEventEmitterNamespaces", this.__doc = document, this.__prepareEvent = function(r) {
  2869. r.cancelBubble || (r.composed && (0, f.isFunction)(r.composedPath) && r.composedPath()[0] && Object.defineProperty(r, "target", { value: r.composedPath()[0], configurable: !0, enumerable: !0 }), r.type.match(/^touch/) && r.changedTouches && r.changedTouches.length && ["clientX", "clientY", "pageX", "pageY"].forEach(function(i) {
  2870. Object.defineProperty(r, i, { value: r.changedTouches[0][i], configurable: !0, enumerable: !0 });
  2871. }), r.originalEvent || (r.originalEvent = r), r.type === "paste" && r.clipboardData === void 0 && o.__doc.defaultView.clipboardData && Object.defineProperty(r, "clipboardData", { get: function() {
  2872. return o.__doc.defaultView.clipboardData;
  2873. }, configurable: !0, enumerable: !0 }));
  2874. }, this.currents = [], this.__stopped = [], this.__isDestructed = !1, l && (this.__doc = l), this.__key += (/* @__PURE__ */ new Date()).getTime();
  2875. }
  2876. return p.prototype.mute = function(l) {
  2877. return this.__mutedEvents.add(l != null ? l : "*"), this;
  2878. }, p.prototype.isMuted = function(l) {
  2879. return !(!l || !this.__mutedEvents.has(l)) || this.__mutedEvents.has("*");
  2880. }, p.prototype.unmute = function(l) {
  2881. return this.__mutedEvents.delete(l != null ? l : "*"), this;
  2882. }, p.prototype.__eachEvent = function(l, o) {
  2883. var r = this;
  2884. (0, s.splitArray)(l).map(function(i) {
  2885. return i.trim();
  2886. }).forEach(function(i) {
  2887. var u = i.split(".");
  2888. o.call(r, u[0], u[1] || m.defaultNameSpace);
  2889. });
  2890. }, p.prototype.__getStore = function(l) {
  2891. if (!l) throw (0, a.error)("Need subject");
  2892. if (l[this.__key] === void 0) {
  2893. var o = new m.EventHandlersStore();
  2894. Object.defineProperty(l, this.__key, { enumerable: !1, configurable: !0, writable: !0, value: o });
  2895. }
  2896. return l[this.__key];
  2897. }, p.prototype.__removeStoreFromSubject = function(l) {
  2898. l[this.__key] !== void 0 && Object.defineProperty(l, this.__key, { enumerable: !1, configurable: !0, writable: !0, value: void 0 });
  2899. }, p.prototype.__triggerNativeEvent = function(l, o) {
  2900. var r = this.__doc.createEvent("HTMLEvents");
  2901. (0, h.isString)(o) ? r.initEvent(o, !0, !0) : (r.initEvent(o.type, o.bubbles, o.cancelable), ["screenX", "screenY", "clientX", "clientY", "target", "srcElement", "currentTarget", "timeStamp", "which", "keyCode"].forEach(function(i) {
  2902. Object.defineProperty(r, i, { value: o[i], enumerable: !0 });
  2903. }), Object.defineProperty(r, "originalEvent", { value: o, enumerable: !0 })), l.dispatchEvent(r);
  2904. }, Object.defineProperty(p.prototype, "current", { get: function() {
  2905. return this.currents[this.currents.length - 1];
  2906. }, enumerable: !1, configurable: !0 }), p.prototype.on = function(l, o, r, i) {
  2907. var u, v, y, g, b = this;
  2908. if ((0, h.isString)(l) || (0, h.isStringArray)(l) ? (u = this, v = l, y = o, g = r) : (u = l, v = o, y = r, g = i), !(0, h.isString)(v) && !(0, h.isStringArray)(v) || v.length === 0) throw (0, a.error)("Need events names");
  2909. if (!(0, f.isFunction)(y)) throw (0, a.error)("Need event handler");
  2910. if ((0, d.isArray)(u)) return u.forEach(function(x) {
  2911. b.on(x, v, y, g);
  2912. }), this;
  2913. var w = u, C = this.__getStore(w), S = (0, f.isFunction)(w.addEventListener), j = this, E = function(x) {
  2914. for (var k = [], I = 1; arguments.length > I; I++) k[I - 1] = arguments[I];
  2915. if (!j.isMuted(x)) return y && y.call.apply(y, n.__spreadArray([this], n.__read(k), !1));
  2916. };
  2917. return S && (E = function(x) {
  2918. if (!j.isMuted(x.type)) return j.__prepareEvent(x), y && y.call(this, x) === !1 ? (x.preventDefault(), x.stopImmediatePropagation(), !1) : void 0;
  2919. }), this.__eachEvent(v, function(x, k) {
  2920. if (x.length === 0) throw (0, a.error)("Need event name");
  2921. if (C.indexOf(x, k, y) === !1 && (C.set(x, k, { event: x, originalCallback: y, syntheticCallback: E }, g == null ? void 0 : g.top), S)) {
  2922. var I = !!["touchstart", "touchend", "scroll", "mousewheel", "mousemove", "touchmove"].includes(x) && { passive: !0 };
  2923. w.addEventListener(x, E, I);
  2924. }
  2925. }), this;
  2926. }, p.prototype.one = function(l, o, r, i) {
  2927. var u, v, y, g, b = this;
  2928. (0, h.isString)(l) || (0, h.isStringArray)(l) ? (u = this, v = l, y = o, g = r) : (u = l, v = o, y = r, g = i);
  2929. var w = function() {
  2930. for (var C = [], S = 0; arguments.length > S; S++) C[S] = arguments[S];
  2931. return b.off(u, v, w), y.apply(void 0, n.__spreadArray([], n.__read(C), !1));
  2932. };
  2933. return this.on(u, v, w, g), this;
  2934. }, p.prototype.off = function(l, o, r) {
  2935. var i, u, v, y = this;
  2936. if ((0, h.isString)(l) || (0, h.isStringArray)(l) ? (i = this, u = l, v = o) : (i = l, u = o, v = r), (0, d.isArray)(i)) return i.forEach(function(j) {
  2937. y.off(j, u, v);
  2938. }), this;
  2939. var g = i, b = this.__getStore(g);
  2940. if (!(0, h.isString)(u) && !(0, h.isStringArray)(u) || u.length === 0) return b.namespaces().forEach(function(j) {
  2941. y.off(g, "." + j);
  2942. }), this.__removeStoreFromSubject(g), this;
  2943. var w = (0, f.isFunction)(g.removeEventListener), C = function(j) {
  2944. w && g.removeEventListener(j.event, j.syntheticCallback, !1);
  2945. }, S = function(j, E) {
  2946. if (j !== "") {
  2947. var x = b.get(j, E);
  2948. if (x && x.length) if ((0, f.isFunction)(v)) {
  2949. var k = b.indexOf(j, E, v);
  2950. k !== !1 && (C(x[k]), x.splice(k, 1), x.length || b.clearEvents(E, j));
  2951. } else x.forEach(C), x.length = 0, b.clearEvents(E, j);
  2952. } else b.events(E).forEach(function(I) {
  2953. I !== "" && S(I, E);
  2954. });
  2955. };
  2956. return this.__eachEvent(u, function(j, E) {
  2957. E === m.defaultNameSpace ? b.namespaces().forEach(function(x) {
  2958. S(j, x);
  2959. }) : S(j, E);
  2960. }), b.isEmpty() && this.__removeStoreFromSubject(g), this;
  2961. }, p.prototype.stopPropagation = function(l, o) {
  2962. var r = this, i = (0, h.isString)(l) ? this : l, u = (0, h.isString)(l) ? l : o;
  2963. if (typeof u != "string") throw (0, a.error)("Need event names");
  2964. var v = this.__getStore(i);
  2965. this.__eachEvent(u, function(y, g) {
  2966. var b = v.get(y, g);
  2967. b && r.__stopped.push(b), g === m.defaultNameSpace && v.namespaces(!0).forEach(function(w) {
  2968. return r.stopPropagation(i, y + "." + w);
  2969. });
  2970. });
  2971. }, p.prototype.__removeStop = function(l) {
  2972. if (l) {
  2973. var o = this.__stopped.indexOf(l);
  2974. o !== -1 && this.__stopped.splice(0, o + 1);
  2975. }
  2976. }, p.prototype.__isStopped = function(l) {
  2977. return l !== void 0 && this.__stopped.indexOf(l) !== -1;
  2978. }, p.prototype.fire = function(l, o) {
  2979. for (var r, i, u = this, v = [], y = 2; arguments.length > y; y++) v[y - 2] = arguments[y];
  2980. var g = (0, h.isString)(l) ? this : l, b = (0, h.isString)(l) ? l : o, w = (0, h.isString)(l) ? n.__spreadArray([o], n.__read(v), !1) : v, C = (0, f.isFunction)(g.dispatchEvent);
  2981. if (!C && !(0, h.isString)(b)) throw (0, a.error)("Need events names");
  2982. var S = this.__getStore(g);
  2983. return !(0, h.isString)(b) && C ? this.__triggerNativeEvent(g, o) : this.__eachEvent(b, function(j, E) {
  2984. if (C) u.__triggerNativeEvent(g, j);
  2985. else {
  2986. var x = S.get(j, E);
  2987. if (x) try {
  2988. n.__spreadArray([], n.__read(x), !1).every(function(k) {
  2989. var I;
  2990. return !u.__isStopped(x) && (u.currents.push(j), i = (I = k.syntheticCallback).call.apply(I, n.__spreadArray([g, j], n.__read(w), !1)), u.currents.pop(), i !== void 0 && (r = i), !0);
  2991. });
  2992. } finally {
  2993. u.__removeStop(x);
  2994. }
  2995. E !== m.defaultNameSpace || C || S.namespaces().filter(function(k) {
  2996. return k !== E;
  2997. }).forEach(function(k) {
  2998. var I = u.fire.apply(u, n.__spreadArray([g, j + "." + k], n.__read(w), !1));
  2999. I !== void 0 && (r = I);
  3000. });
  3001. }
  3002. }), r;
  3003. }, p.prototype.destruct = function() {
  3004. this.__isDestructed && (this.__isDestructed = !0, this.off(this), this.__getStore(this).clear(), this.__removeStoreFromSubject(this));
  3005. }, p;
  3006. }();
  3007. t.EventEmitter = c;
  3008. }, 73852: function(_, t, e) {
  3009. Object.defineProperty(t, "__esModule", { value: !0 }), t.Eventify = void 0;
  3010. var n = e(20255), m = function() {
  3011. function h() {
  3012. this.__map = /* @__PURE__ */ new Map();
  3013. }
  3014. return h.prototype.on = function(f, d) {
  3015. var a;
  3016. return this.__map.has(f) || this.__map.set(f, /* @__PURE__ */ new Set()), (a = this.__map.get(f)) === null || a === void 0 || a.add(d), this;
  3017. }, h.prototype.off = function(f, d) {
  3018. var a;
  3019. return this.__map.has(f) && ((a = this.__map.get(f)) === null || a === void 0 || a.delete(d)), this;
  3020. }, h.prototype.destruct = function() {
  3021. this.__map.clear();
  3022. }, h.prototype.emit = function(f) {
  3023. for (var d, a, s = [], c = 1; arguments.length > c; c++) s[c - 1] = arguments[c];
  3024. return this.__map.has(f) && ((d = this.__map.get(f)) === null || d === void 0 || d.forEach(function(p) {
  3025. a = p.apply(void 0, n.__spreadArray([], n.__read(s), !1));
  3026. })), a;
  3027. }, h;
  3028. }();
  3029. t.Eventify = m;
  3030. }, 55395: function(_, t, e) {
  3031. Object.defineProperty(t, "__esModule", { value: !0 });
  3032. var n = e(20255);
  3033. n.__exportStar(e(3808), t), n.__exportStar(e(73852), t), n.__exportStar(e(88418), t), n.__exportStar(e(83611), t);
  3034. }, 88418: function(_, t, e) {
  3035. Object.defineProperty(t, "__esModule", { value: !0 }), t.observable = void 0;
  3036. var n = e(20255), m = e(49781), h = e(32756), f = e(79736), d = e(46163), a = Symbol("observable-object");
  3037. function s(c) {
  3038. return c[a] !== void 0;
  3039. }
  3040. t.observable = function(c) {
  3041. if (s(c)) return c;
  3042. var p = {}, l = {}, o = function(u, v) {
  3043. return (0, m.isArray)(u) ? (u.map(function(y) {
  3044. return o(y, v);
  3045. }), c) : (l[u] || (l[u] = []), l[u].push(v), c);
  3046. }, r = function(u) {
  3047. for (var v = [], y = 1; arguments.length > y; y++) v[y - 1] = arguments[y];
  3048. if ((0, m.isArray)(u)) u.map(function(g) {
  3049. return r.apply(void 0, n.__spreadArray([g], n.__read(v), !1));
  3050. });
  3051. else try {
  3052. !p[u] && l[u] && (p[u] = !0, l[u].forEach(function(g) {
  3053. return g.call.apply(g, n.__spreadArray([c], n.__read(v), !1));
  3054. }));
  3055. } finally {
  3056. p[u] = !1;
  3057. }
  3058. }, i = function(u, v) {
  3059. v === void 0 && (v = []);
  3060. var y = {};
  3061. s(u) || (Object.defineProperty(u, a, { enumerable: !1, value: !0 }), Object.keys(u).forEach(function(g) {
  3062. var b = g, w = v.concat(b).filter(function(S) {
  3063. return S.length;
  3064. });
  3065. y[b] = u[b];
  3066. var C = (0, d.getPropertyDescriptor)(u, b);
  3067. Object.defineProperty(u, b, { set: function(S) {
  3068. var j = y[b];
  3069. if (!(0, h.isFastEqual)(y[b], S)) {
  3070. r(["beforeChange", "beforeChange.".concat(w.join("."))], b, S), (0, f.isPlainObject)(S) && i(S, w), C && C.set ? C.set.call(c, S) : y[b] = S;
  3071. var E = [];
  3072. r(n.__spreadArray(["change"], n.__read(w.reduce(function(x, k) {
  3073. return E.push(k), x.push("change.".concat(E.join("."))), x;
  3074. }, [])), !1), w.join("."), j, S != null && S.valueOf ? S.valueOf() : S);
  3075. }
  3076. }, get: function() {
  3077. return C && C.get ? C.get.call(c) : y[b];
  3078. }, enumerable: !0, configurable: !0 }), (0, f.isPlainObject)(y[b]) && i(y[b], w);
  3079. }), Object.defineProperty(c, "on", { value: o }));
  3080. };
  3081. return i(c), c;
  3082. };
  3083. }, 83611: function(_, t, e) {
  3084. Object.defineProperty(t, "__esModule", { value: !0 }), t.EventHandlersStore = t.defaultNameSpace = void 0, e(52378);
  3085. var n = e(1853);
  3086. t.defaultNameSpace = "JoditEventDefaultNamespace";
  3087. var m = function() {
  3088. function h() {
  3089. this.__store = /* @__PURE__ */ new Map();
  3090. }
  3091. return h.prototype.get = function(f, d) {
  3092. if (this.__store.has(d)) return this.__store.get(d)[f];
  3093. }, h.prototype.indexOf = function(f, d, a) {
  3094. var s = this.get(f, d);
  3095. if (s) {
  3096. for (var c = 0; s.length > c; c += 1) if (s[c].originalCallback === a) return c;
  3097. }
  3098. return !1;
  3099. }, h.prototype.namespaces = function(f) {
  3100. f === void 0 && (f = !1);
  3101. var d = (0, n.toArray)(this.__store.keys());
  3102. return f ? d.filter(function(a) {
  3103. return a !== t.defaultNameSpace;
  3104. }) : d;
  3105. }, h.prototype.events = function(f) {
  3106. var d = this.__store.get(f);
  3107. return d ? Object.keys(d) : [];
  3108. }, h.prototype.set = function(f, d, a, s) {
  3109. s === void 0 && (s = !1);
  3110. var c = this.__store.get(d);
  3111. c || this.__store.set(d, c = {}), c[f] === void 0 && (c[f] = []), s ? c[f].unshift(a) : c[f].push(a);
  3112. }, h.prototype.clear = function() {
  3113. this.__store.clear();
  3114. }, h.prototype.clearEvents = function(f, d) {
  3115. var a = this.__store.get(f);
  3116. a && a[d] && (delete a[d], Object.keys(a).length || this.__store.delete(f));
  3117. }, h.prototype.isEmpty = function() {
  3118. return this.__store.size === 0;
  3119. }, h;
  3120. }();
  3121. t.EventHandlersStore = m;
  3122. }, 17332: function(_, t, e) {
  3123. Object.defineProperty(t, "__esModule", { value: !0 }), t.eventEmitter = t.getContainer = t.extendLang = t.modules = t.pluginSystem = t.uniqueUid = t.instances = void 0;
  3124. var n = e(44540), m = e(64968), h = e(55395), f = e(77892), d = e(96574), a = e(87247), s = e(11278), c = e(86893);
  3125. t.instances = {};
  3126. var p = 1, l = /* @__PURE__ */ new Set();
  3127. t.uniqueUid = function() {
  3128. function r() {
  3129. return p += 10 * (Math.random() + 1), Math.round(p).toString(16);
  3130. }
  3131. for (var i = r(); l.has(i); ) i = r();
  3132. return l.add(i), i;
  3133. }, t.pluginSystem = new n.PluginSystem(), t.modules = {}, t.extendLang = function(r) {
  3134. Object.keys(r).forEach(function(i) {
  3135. c.lang[i] ? Object.assign(c.lang[i], r[i]) : c.lang[i] = r[i];
  3136. });
  3137. };
  3138. var o = /* @__PURE__ */ new WeakMap();
  3139. t.getContainer = function(r, i, u, v) {
  3140. u === void 0 && (u = "div"), v === void 0 && (v = !1);
  3141. var y = i ? (0, a.getClassName)(i.prototype) : "jodit-utils", g = o.get(r) || {}, b = y + u, w = (0, d.isViewObject)(r) ? r : r.j;
  3142. if (!g[b]) {
  3143. var C = w.c, S = (0, f.isJoditObject)(r) && r.o.shadowRoot ? r.o.shadowRoot : r.od.body;
  3144. if (v && (0, f.isJoditObject)(r) && r.od !== r.ed) {
  3145. C = r.createInside;
  3146. var j = u === "style" ? r.ed.head : r.ed.body;
  3147. S = (0, f.isJoditObject)(r) && r.o.shadowRoot ? r.o.shadowRoot : j;
  3148. }
  3149. var E = C.element(u, { className: "jodit jodit-".concat((0, s.kebabCase)(y), "-container jodit-box") });
  3150. E.classList.add("jodit_theme_".concat(w.o.theme || "default")), S.appendChild(E), g[b] = E, r.hookStatus("beforeDestruct", function() {
  3151. m.Dom.safeRemove(E), delete g[b], Object.keys(g).length && o.delete(r);
  3152. }), o.set(r, g);
  3153. }
  3154. return g[b].classList.remove("jodit_theme_default", "jodit_theme_dark"), g[b].classList.add("jodit_theme_".concat(w.o.theme || "default")), g[b];
  3155. }, t.eventEmitter = new h.EventEmitter();
  3156. }, 34578: function(_, t, e) {
  3157. Object.defineProperty(t, "__esModule", { value: !0 }), t.asArray = void 0;
  3158. var n = e(49781);
  3159. t.asArray = function(m) {
  3160. return (0, n.isArray)(m) ? m : [m];
  3161. };
  3162. }, 12557: function(_, t, e) {
  3163. Object.defineProperty(t, "__esModule", { value: !0 }), t.toArray = t.splitArray = t.asArray = void 0;
  3164. var n = e(34578);
  3165. Object.defineProperty(t, "asArray", { enumerable: !0, get: function() {
  3166. return n.asArray;
  3167. } });
  3168. var m = e(14556);
  3169. Object.defineProperty(t, "splitArray", { enumerable: !0, get: function() {
  3170. return m.splitArray;
  3171. } });
  3172. var h = e(1853);
  3173. Object.defineProperty(t, "toArray", { enumerable: !0, get: function() {
  3174. return h.toArray;
  3175. } });
  3176. }, 14556: function(_, t) {
  3177. Object.defineProperty(t, "__esModule", { value: !0 }), t.splitArray = void 0, t.splitArray = function(e) {
  3178. return Array.isArray(e) ? e : e.split(/[,\s]+/);
  3179. };
  3180. }, 1853: function(_, t, e) {
  3181. Object.defineProperty(t, "__esModule", { value: !0 }), t.toArray = void 0;
  3182. var n = e(80861), m = e(28069);
  3183. t.toArray = function() {
  3184. for (var h, f = [], d = 0; arguments.length > d; d++) f[d] = arguments[d];
  3185. var a = (0, m.isNativeFunction)(Array.from) ? Array.from : (h = (0, n.reset)("Array.from")) !== null && h !== void 0 ? h : Array.from;
  3186. return a.apply(Array, f);
  3187. };
  3188. }, 4696: function(_, t, e) {
  3189. Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(27512), t);
  3190. }, 27512: function(_, t, e) {
  3191. Object.defineProperty(t, "__esModule", { value: !0 }), t.clearTimeout = t.setTimeout = void 0;
  3192. var n = e(20255);
  3193. t.setTimeout = function(m, h) {
  3194. for (var f = [], d = 2; arguments.length > d; d++) f[d - 2] = arguments[d];
  3195. return h ? window.setTimeout.apply(window, n.__spreadArray([m, h], n.__read(f), !1)) : (m.call.apply(m, n.__spreadArray([null], n.__read(f), !1)), 0);
  3196. }, t.clearTimeout = function(m) {
  3197. window.clearTimeout(m);
  3198. };
  3199. }, 31553: function(_, t) {
  3200. Object.defineProperty(t, "__esModule", { value: !0 }), t.hasBrowserColorPicker = void 0, t.hasBrowserColorPicker = function() {
  3201. var e = !0;
  3202. try {
  3203. var n = document.createElement("input");
  3204. n.type = "color", n.value = "!", e = n.type === "color" && n.value !== "!";
  3205. } catch (m) {
  3206. e = !1;
  3207. }
  3208. return e;
  3209. };
  3210. }, 10172: function(_, t, e) {
  3211. Object.defineProperty(t, "__esModule", { value: !0 });
  3212. var n = e(20255);
  3213. n.__exportStar(e(31553), t), n.__exportStar(e(49781), t), n.__exportStar(e(67749), t), n.__exportStar(e(32756), t), n.__exportStar(e(42096), t), n.__exportStar(e(66869), t), n.__exportStar(e(72543), t), n.__exportStar(e(33156), t), n.__exportStar(e(93578), t), n.__exportStar(e(77892), t), n.__exportStar(e(96574), t), n.__exportStar(e(60280), t), n.__exportStar(e(28069), t), n.__exportStar(e(61817), t), n.__exportStar(e(57649), t), n.__exportStar(e(79736), t), n.__exportStar(e(26335), t), n.__exportStar(e(24421), t), n.__exportStar(e(64350), t), n.__exportStar(e(19179), t), n.__exportStar(e(24021), t), n.__exportStar(e(85994), t), n.__exportStar(e(37204), t);
  3214. }, 49781: function(_, t) {
  3215. Object.defineProperty(t, "__esModule", { value: !0 }), t.isArray = void 0, t.isArray = function(e) {
  3216. return Array.isArray(e);
  3217. };
  3218. }, 67749: function(_, t) {
  3219. Object.defineProperty(t, "__esModule", { value: !0 }), t.isBoolean = void 0, t.isBoolean = function(e) {
  3220. return typeof e == "boolean";
  3221. };
  3222. }, 32756: function(_, t, e) {
  3223. Object.defineProperty(t, "__esModule", { value: !0 }), t.isFastEqual = t.isEqual = void 0;
  3224. var n = e(42554);
  3225. t.isEqual = function(m, h) {
  3226. return m === h || (0, n.stringify)(m) === (0, n.stringify)(h);
  3227. }, t.isFastEqual = function(m, h) {
  3228. return m === h;
  3229. };
  3230. }, 42096: function(_, t) {
  3231. Object.defineProperty(t, "__esModule", { value: !0 }), t.isFunction = void 0, t.isFunction = function(e) {
  3232. return typeof e == "function";
  3233. };
  3234. }, 72543: function(_, t) {
  3235. Object.defineProperty(t, "__esModule", { value: !0 }), t.isHtmlFromWord = void 0, t.isHtmlFromWord = function(e) {
  3236. return e.search(/<meta.*?Microsoft Excel\s[\d].*?>/) !== -1 || e.search(/<meta.*?Microsoft Word\s[\d].*?>/) !== -1 || e.search(/style="[^"]*mso-/) !== -1 && e.search(/<font/) !== -1;
  3237. };
  3238. }, 66869: function(_, t, e) {
  3239. Object.defineProperty(t, "__esModule", { value: !0 }), t.isHTML = void 0;
  3240. var n = e(24421);
  3241. t.isHTML = function(m) {
  3242. return (0, n.isString)(m) && /<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(m.replace(/[\r\n]/g, ""));
  3243. };
  3244. }, 33156: function(_, t, e) {
  3245. Object.defineProperty(t, "__esModule", { value: !0 }), t.hasContainer = t.isDestructable = t.isInitable = void 0;
  3246. var n = e(42096), m = e(24263), h = e(24021);
  3247. t.isInitable = function(f) {
  3248. return !(0, h.isVoid)(f) && (0, n.isFunction)(f.init);
  3249. }, t.isDestructable = function(f) {
  3250. return !(0, h.isVoid)(f) && (0, n.isFunction)(f.destruct);
  3251. }, t.hasContainer = function(f) {
  3252. return !(0, h.isVoid)(f) && m.Dom.isElement(f.container);
  3253. };
  3254. }, 93578: function(_, t, e) {
  3255. Object.defineProperty(t, "__esModule", { value: !0 }), t.isInt = void 0;
  3256. var n = e(57649), m = e(24421);
  3257. t.isInt = function(h) {
  3258. return (0, m.isString)(h) && (0, n.isNumeric)(h) && (h = parseFloat(h)), typeof h == "number" && Number.isFinite(h) && !(h % 1);
  3259. };
  3260. }, 77892: function(_, t, e) {
  3261. Object.defineProperty(t, "__esModule", { value: !0 }), t.isJoditObject = void 0;
  3262. var n = e(42096);
  3263. t.isJoditObject = function(m) {
  3264. return !!(m && m instanceof Object && (0, n.isFunction)(m.constructor) && (typeof Jodit != "undefined" && m instanceof Jodit || m.isJodit));
  3265. };
  3266. }, 60280: function(_, t, e) {
  3267. Object.defineProperty(t, "__esModule", { value: !0 }), t.isLicense = void 0;
  3268. var n = e(24421);
  3269. t.isLicense = function(m) {
  3270. return (0, n.isString)(m) && m.length === 23 && /^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(m);
  3271. };
  3272. }, 37204: function(_, t, e) {
  3273. Object.defineProperty(t, "__esModule", { value: !0 }), t.isMarker = void 0;
  3274. var n = e(24263), m = e(86893);
  3275. t.isMarker = function(h) {
  3276. return n.Dom.isNode(h) && n.Dom.isTag(h, "span") && h.hasAttribute("data-" + m.MARKER_CLASS);
  3277. };
  3278. }, 28069: function(_, t) {
  3279. Object.defineProperty(t, "__esModule", { value: !0 }), t.isNativeFunction = void 0, t.isNativeFunction = function(e) {
  3280. return !!e && (typeof e).toLowerCase() === "function" && (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)));
  3281. };
  3282. }, 61817: function(_, t) {
  3283. Object.defineProperty(t, "__esModule", { value: !0 }), t.isNumber = void 0, t.isNumber = function(e) {
  3284. return typeof e == "number" && !isNaN(e) && isFinite(e);
  3285. };
  3286. }, 57649: function(_, t, e) {
  3287. Object.defineProperty(t, "__esModule", { value: !0 }), t.isNumeric = void 0;
  3288. var n = e(24421);
  3289. t.isNumeric = function(m) {
  3290. if ((0, n.isString)(m)) {
  3291. if (!m.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/)) return !1;
  3292. m = parseFloat(m);
  3293. }
  3294. return typeof m == "number" && !isNaN(m) && isFinite(m);
  3295. };
  3296. }, 79736: function(_, t, e) {
  3297. Object.defineProperty(t, "__esModule", { value: !0 }), t.isPlainObject = void 0;
  3298. var n = e(85994);
  3299. t.isPlainObject = function(m) {
  3300. return !(!m || typeof m != "object" || m.nodeType || (0, n.isWindow)(m) || m.constructor && !{}.hasOwnProperty.call(m.constructor.prototype, "isPrototypeOf"));
  3301. };
  3302. }, 26335: function(_, t) {
  3303. Object.defineProperty(t, "__esModule", { value: !0 }), t.isPromise = void 0, t.isPromise = function(e) {
  3304. return e && typeof e.then == "function";
  3305. };
  3306. }, 24421: function(_, t, e) {
  3307. Object.defineProperty(t, "__esModule", { value: !0 }), t.isStringArray = t.isString = void 0;
  3308. var n = e(49781);
  3309. function m(h) {
  3310. return typeof h == "string";
  3311. }
  3312. t.isString = m, t.isStringArray = function(h) {
  3313. return (0, n.isArray)(h) && m(h[0]);
  3314. };
  3315. }, 64350: function(_, t) {
  3316. Object.defineProperty(t, "__esModule", { value: !0 }), t.isURL = void 0, t.isURL = function(e) {
  3317. if (e.includes(" ")) return !1;
  3318. if (typeof URL != "undefined") try {
  3319. var n = new URL(e);
  3320. return ["https:", "http:", "ftp:", "file:", "rtmp:"].includes(n.protocol);
  3321. } catch (h) {
  3322. return !1;
  3323. }
  3324. var m = document.createElement("a");
  3325. return m.href = e, !!m.hostname;
  3326. };
  3327. }, 19179: function(_, t) {
  3328. Object.defineProperty(t, "__esModule", { value: !0 }), t.isValidName = void 0, t.isValidName = function(e) {
  3329. return !!e.length && !/[^0-9A-Za-zа-яА-ЯЁё\w\-_.]/.test(e);
  3330. };
  3331. }, 96574: function(_, t, e) {
  3332. Object.defineProperty(t, "__esModule", { value: !0 }), t.isViewObject = void 0;
  3333. var n = e(42096);
  3334. t.isViewObject = function(m) {
  3335. return !!(m && m instanceof Object && (0, n.isFunction)(m.constructor) && m.isView);
  3336. };
  3337. }, 24021: function(_, t) {
  3338. Object.defineProperty(t, "__esModule", { value: !0 }), t.isVoid = void 0, t.isVoid = function(e) {
  3339. return e == null;
  3340. };
  3341. }, 85994: function(_, t) {
  3342. Object.defineProperty(t, "__esModule", { value: !0 }), t.isWindow = void 0, t.isWindow = function(e) {
  3343. return e != null && e === e.window;
  3344. };
  3345. }, 13203: function(_, t) {
  3346. Object.defineProperty(t, "__esModule", { value: !0 }), t.colorToHex = void 0, t.colorToHex = function(e) {
  3347. if (e === "rgba(0, 0, 0, 0)" || e === "") return !1;
  3348. if (!e) return "#000000";
  3349. if (e.substr(0, 1) === "#") return e;
  3350. var n = /([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e) || /([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);
  3351. if (!n) return "#000000";
  3352. for (var m = parseInt(n[2], 10), h = parseInt(n[3], 10), f = (parseInt(n[4], 10) | h << 8 | m << 16).toString(16).toUpperCase(); 6 > f.length; ) f = "0" + f;
  3353. return n[1] + "#" + f;
  3354. };
  3355. }, 61354: function(_, t, e) {
  3356. Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(13203), t);
  3357. }, 66546: function(_, t, e) {
  3358. Object.defineProperty(t, "__esModule", { value: !0 }), t.applyStyles = void 0;
  3359. var n = e(24263), m = e(76502), h = e(33941);
  3360. function f(d) {
  3361. return d.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi, "").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi, "").replace(/border[a-z-]*:[\s]*[^;]+;/gi, "").replace(/([0-9.]+)(pt|cm)/gi, function(a, s, c) {
  3362. switch (c.toLowerCase()) {
  3363. case "pt":
  3364. return (1.328 * parseFloat(s)).toFixed(0) + "px";
  3365. case "cm":
  3366. return (0.02645833 * parseFloat(s)).toFixed(0) + "px";
  3367. }
  3368. return a;
  3369. });
  3370. }
  3371. t.applyStyles = function(d) {
  3372. if (d.indexOf("<html ") === -1) return d;
  3373. d = (d = d.substring(d.indexOf("<html "), d.length)).substring(0, d.lastIndexOf("</html>") + 7);
  3374. var a = document.createElement("iframe");
  3375. a.style.display = "none", document.body.appendChild(a);
  3376. var s = "";
  3377. try {
  3378. var c = a.contentDocument || (a.contentWindow ? a.contentWindow.document : null);
  3379. if (c) {
  3380. c.open(), c.write(d), c.close();
  3381. try {
  3382. for (var p = function(o) {
  3383. for (var r = c.styleSheets[o].cssRules, i = function(v) {
  3384. if (r[v].selectorText === "") return "continue";
  3385. (0, m.$$)(r[v].selectorText, c.body).forEach(function(y) {
  3386. y.style.cssText = f(r[v].style.cssText + ";" + y.style.cssText);
  3387. });
  3388. }, u = 0; r.length > u; u += 1) i(u);
  3389. }, l = 0; c.styleSheets.length > l; l += 1) p(l);
  3390. } catch (o) {
  3391. }
  3392. n.Dom.each(c.body, function(o) {
  3393. if (n.Dom.isElement(o)) {
  3394. var r = o, i = r.getAttribute("style");
  3395. i && (r.style.cssText = f(i)), r.hasAttribute("style") && !r.getAttribute("style") && r.removeAttribute("style");
  3396. }
  3397. }), s = c.firstChild ? (0, h.trim)(c.body.innerHTML) : "";
  3398. }
  3399. } catch (o) {
  3400. } finally {
  3401. n.Dom.safeRemove(a);
  3402. }
  3403. return s && (d = s), (0, h.trim)(d.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g, "").replace(/<!--[^>]*>/g, ""));
  3404. };
  3405. }, 33316: function(_, t, e) {
  3406. Object.defineProperty(t, "__esModule", { value: !0 }), t.cleanFromWord = void 0;
  3407. var n = e(24263), m = e(33941), h = e(1853);
  3408. t.cleanFromWord = function(f) {
  3409. f.indexOf("<html ") !== -1 && (f = (f = f.substring(f.indexOf("<html "), f.length)).substring(0, f.lastIndexOf("</html>") + 7));
  3410. var d = "";
  3411. try {
  3412. var a = document.createElement("div");
  3413. a.innerHTML = f;
  3414. var s = [];
  3415. a.firstChild && n.Dom.each(a, function(c) {
  3416. if (c) switch (c.nodeType) {
  3417. case Node.ELEMENT_NODE:
  3418. switch (c.nodeName) {
  3419. case "STYLE":
  3420. case "LINK":
  3421. case "META":
  3422. s.push(c);
  3423. break;
  3424. case "W:SDT":
  3425. case "W:SDTPR":
  3426. case "FONT":
  3427. n.Dom.unwrap(c);
  3428. break;
  3429. default:
  3430. (0, h.toArray)(c.attributes).forEach(function(p) {
  3431. ["src", "href", "rel", "content"].indexOf(p.name.toLowerCase()) === -1 && c.removeAttribute(p.name);
  3432. });
  3433. }
  3434. break;
  3435. case Node.TEXT_NODE:
  3436. break;
  3437. default:
  3438. s.push(c);
  3439. }
  3440. }), n.Dom.safeRemove.apply(null, s), d = a.innerHTML;
  3441. } catch (c) {
  3442. }
  3443. return d && (f = d), (f = f.split(/(\n)/).filter(m.trim).join(`
  3444. `)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g, "").replace(/<!--[^>]*>/g, "");
  3445. };
  3446. }, 46639: function(_, t) {
  3447. Object.defineProperty(t, "__esModule", { value: !0 }), t.htmlspecialchars = void 0, t.htmlspecialchars = function(e) {
  3448. var n = document.createElement("div");
  3449. return n.textContent = e, n.innerHTML;
  3450. };
  3451. }, 13098: function(_, t, e) {
  3452. Object.defineProperty(t, "__esModule", { value: !0 });
  3453. var n = e(20255);
  3454. n.__exportStar(e(66546), t), n.__exportStar(e(33316), t), n.__exportStar(e(46639), t), n.__exportStar(e(11336), t), n.__exportStar(e(67128), t), n.__exportStar(e(86645), t);
  3455. }, 86645: function(_, t) {
  3456. Object.defineProperty(t, "__esModule", { value: !0 }), t.nl2br = void 0, t.nl2br = function(e) {
  3457. return e.replace(/\r\n|\r|\n/g, "<br/>");
  3458. };
  3459. }, 67128: function(_, t, e) {
  3460. Object.defineProperty(t, "__esModule", { value: !0 }), t.sanitizeHTMLElement = t.safeHTML = void 0;
  3461. var n = e(76502), m = e(24263);
  3462. function h(f, d) {
  3463. var a = d === void 0 ? { safeJavaScriptLink: !0, removeOnError: !0 } : d, s = a.safeJavaScriptLink, c = a.removeOnError;
  3464. if (!m.Dom.isElement(f)) return !1;
  3465. var p = !1;
  3466. c && f.hasAttribute("onerror") && ((0, n.attr)(f, "onerror", null), p = !0);
  3467. var l = f.getAttribute("href");
  3468. return s && l && l.trim().indexOf("javascript") === 0 && ((0, n.attr)(f, "href", location.protocol + "//" + l), p = !0), p;
  3469. }
  3470. t.safeHTML = function(f, d) {
  3471. (m.Dom.isElement(f) || m.Dom.isFragment(f)) && (d.removeOnError && (h(f), (0, n.$$)("[onerror]", f).forEach(function(a) {
  3472. return h(a, d);
  3473. })), d.safeJavaScriptLink && (h(f), (0, n.$$)('a[href^="javascript"]', f).forEach(function(a) {
  3474. return h(a, d);
  3475. })));
  3476. }, t.sanitizeHTMLElement = h;
  3477. }, 11336: function(_, t, e) {
  3478. Object.defineProperty(t, "__esModule", { value: !0 }), t.stripTags = void 0;
  3479. var n = e(24421), m = e(76502), h = e(33941), f = e(24263), d = /* @__PURE__ */ new Set(["div", "p", "br", "h1", "h2", "h3", "h4", "h5", "h6", "hr"]), a = /* @__PURE__ */ new Set(["script", "style"]);
  3480. t.stripTags = function s(c, p, l) {
  3481. p === void 0 && (p = document), l === void 0 && (l = null);
  3482. var o = p.createElement("div");
  3483. return (0, n.isString)(c) ? o.innerHTML = c : o.appendChild(c), (0, m.$$)("*", o).forEach(function(r) {
  3484. var i = r.parentNode;
  3485. if (i) {
  3486. if (l && f.Dom.isTag(r, l)) {
  3487. var u = r.nodeName.toLowerCase(), v = f.Dom.isTag(r, ["br", "hr", "input"]) ? "%%%jodit-single-".concat(u, "%%%") : "%%%jodit-".concat(u, "%%%").concat(s(r.innerHTML, p, l), "%%%/jodit-").concat(u, "%%%");
  3488. return f.Dom.before(r, p.createTextNode(v)), void f.Dom.safeRemove(r);
  3489. }
  3490. if (f.Dom.isTag(r, a)) f.Dom.safeRemove(r);
  3491. else if (f.Dom.isTag(r, d)) {
  3492. var y = r.nextSibling;
  3493. f.Dom.isText(y) && /^\s/.test(y.nodeValue || "") || y && i.insertBefore(p.createTextNode(" "), y);
  3494. }
  3495. }
  3496. }), (0, h.trim)(o.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g, function(r, i, u, v) {
  3497. return "<".concat(i ? "/" : "").concat(v, ">");
  3498. });
  3499. };
  3500. }, 40332: function(_, t, e) {
  3501. Object.defineProperty(t, "__esModule", { value: !0 });
  3502. var n = e(20255);
  3503. n.__exportStar(e(76502), t), n.__exportStar(e(12557), t), n.__exportStar(e(4696), t), n.__exportStar(e(10172), t), n.__exportStar(e(61354), t), n.__exportStar(e(13098), t), n.__exportStar(e(89693), t), n.__exportStar(e(90954), t), n.__exportStar(e(19035), t);
  3504. }, 89693: function(_, t, e) {
  3505. Object.defineProperty(t, "__esModule", { value: !0 });
  3506. var n = e(20255);
  3507. n.__exportStar(e(48926), t), n.__exportStar(e(78648), t), n.__exportStar(e(74504), t), n.__exportStar(e(50870), t), n.__exportStar(e(76787), t), n.__exportStar(e(93251), t), n.__exportStar(e(91518), t), n.__exportStar(e(49353), t), n.__exportStar(e(64274), t);
  3508. }, 64274: function(_, t, e) {
  3509. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeColor = void 0;
  3510. var n = e(61354), m = e(19035);
  3511. t.normalizeColor = function(h) {
  3512. var f = ["#"], d = (0, n.colorToHex)(h);
  3513. if (!d) return !1;
  3514. if ((d = (d = (0, m.trim)(d.toUpperCase())).substr(1)).length === 3) {
  3515. for (var a = 0; 3 > a; a += 1) f.push(d[a]), f.push(d[a]);
  3516. return f.join("");
  3517. }
  3518. return d.length > 6 && (d = d.substr(0, 6)), "#" + d;
  3519. };
  3520. }, 49353: function(_, t, e) {
  3521. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeCssValue = t.normalizeCssNumericValue = t.NUMBER_FIELDS_REG = void 0;
  3522. var n = e(57649), m = e(11278), h = e(13203), f = e(24021);
  3523. t.NUMBER_FIELDS_REG = /^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i, t.normalizeCssNumericValue = function(d, a) {
  3524. return !(0, f.isVoid)(a) && t.NUMBER_FIELDS_REG.test(d) && (0, n.isNumeric)(a.toString()) ? parseInt(a.toString(), 10) + "px" : a;
  3525. }, t.normalizeCssValue = function(d, a) {
  3526. if ((0, m.kebabCase)(d) === "font-weight") {
  3527. switch (a.toString().toLowerCase()) {
  3528. case "700":
  3529. case "bold":
  3530. return 700;
  3531. case "400":
  3532. case "normal":
  3533. return 400;
  3534. case "900":
  3535. case "heavy":
  3536. return 900;
  3537. }
  3538. return (0, n.isNumeric)(a) ? Number(a) : a;
  3539. }
  3540. return /color/i.test(d) && /^rgb/i.test(a.toString()) && (0, h.colorToHex)(a.toString()) || a;
  3541. };
  3542. }, 48926: function(_, t, e) {
  3543. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeKeyAliases = void 0;
  3544. var n = e(33941), m = e(86893);
  3545. t.normalizeKeyAliases = function(h) {
  3546. var f = {}, d = { meta: 1, ctrl: 2, control: 2, alt: 3, shift: 4 };
  3547. return h.replace(/\+\+/g, "+add").split(/[\s]*\+[\s]*/).map(function(a) {
  3548. return (0, n.trim)(a.toLowerCase());
  3549. }).map(function(a) {
  3550. return m.KEY_ALIASES[a] || a;
  3551. }).sort(function(a, s) {
  3552. return d[a] && !d[s] ? -1 : !d[a] && d[s] ? 1 : d[a] && d[s] ? d[a] - d[s] : a > s ? 1 : -1;
  3553. }).filter(function(a) {
  3554. return !f[a] && a !== "" && (f[a] = !0);
  3555. }).join("+");
  3556. };
  3557. }, 78648: function(_, t) {
  3558. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeLicense = void 0, t.normalizeLicense = function(e, n) {
  3559. n === void 0 && (n = 8);
  3560. for (var m = []; e.length; ) m.push(e.substr(0, n)), e = e.substr(n);
  3561. return m[1] = m[1].replace(/./g, "*"), m[2] = m[2].replace(/./g, "*"), m.join("-");
  3562. };
  3563. }, 74504: function(_, t, e) {
  3564. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeNode = void 0;
  3565. var n = e(86893), m = e(24263);
  3566. t.normalizeNode = function h(f) {
  3567. if (f) {
  3568. if (m.Dom.isText(f) && f.nodeValue != null && f.parentNode) for (; m.Dom.isText(f.nextSibling); ) f.nextSibling.nodeValue != null && (f.nodeValue += f.nextSibling.nodeValue), f.nodeValue = f.nodeValue.replace((0, n.INVISIBLE_SPACE_REG_EXP)(), ""), m.Dom.safeRemove(f.nextSibling);
  3569. else h(f.firstChild);
  3570. h(f.nextSibling);
  3571. }
  3572. };
  3573. }, 50870: function(_, t, e) {
  3574. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizePath = void 0;
  3575. var n = e(19035);
  3576. t.normalizePath = function() {
  3577. for (var m = [], h = 0; arguments.length > h; h++) m[h] = arguments[h];
  3578. return m.filter(function(f) {
  3579. return (0, n.trim)(f).length;
  3580. }).map(function(f, d) {
  3581. return f = f.replace(/([^:])[\\/]+/g, "$1/"), d && (f = f.replace(/^\//, "")), d !== m.length - 1 && (f = f.replace(/\/$/, "")), f;
  3582. }).join("/");
  3583. };
  3584. }, 76787: function(_, t) {
  3585. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeRelativePath = void 0, t.normalizeRelativePath = function(e) {
  3586. return e.split("/").reduce(function(n, m) {
  3587. switch (m) {
  3588. case "":
  3589. case ".":
  3590. break;
  3591. case "..":
  3592. n.pop();
  3593. break;
  3594. default:
  3595. n.push(m);
  3596. }
  3597. return n;
  3598. }, []).join("/") + (e.endsWith("/") ? "/" : "");
  3599. };
  3600. }, 93251: function(_, t) {
  3601. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeSize = void 0, t.normalizeSize = function(e) {
  3602. return /^[0-9]+$/.test(e.toString()) ? e + "px" : e.toString();
  3603. };
  3604. }, 91518: function(_, t) {
  3605. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeUrl = void 0, t.normalizeUrl = function() {
  3606. for (var e = [], n = 0; arguments.length > n; n++) e[n] = arguments[n];
  3607. return e.filter(function(m) {
  3608. return m.length;
  3609. }).map(function(m) {
  3610. return m.replace(/\/$/, "");
  3611. }).join("/").replace(/([^:])[\\/]+/g, "$1/");
  3612. };
  3613. }, 1684: function(_, t) {
  3614. Object.defineProperty(t, "__esModule", { value: !0 }), t.getContentWidth = void 0, t.getContentWidth = function(e, n) {
  3615. var m = function(f) {
  3616. return parseInt(f, 10);
  3617. }, h = n.getComputedStyle(e);
  3618. return e.offsetWidth - m(h.getPropertyValue("padding-left") || "0") - m(h.getPropertyValue("padding-right") || "0");
  3619. };
  3620. }, 73874: function(_, t, e) {
  3621. Object.defineProperty(t, "__esModule", { value: !0 }), t.getScrollParent = void 0;
  3622. var n = e(76502), m = e(24263);
  3623. t.getScrollParent = function h(f) {
  3624. if (!f) return null;
  3625. var d = m.Dom.isHTMLElement(f), a = d && (0, n.css)(f, "overflowY");
  3626. return d && a !== "visible" && a !== "hidden" && f.scrollHeight >= f.clientHeight ? f : h(f.parentNode) || document.scrollingElement || document.body;
  3627. };
  3628. }, 90954: function(_, t, e) {
  3629. Object.defineProperty(t, "__esModule", { value: !0 });
  3630. var n = e(20255);
  3631. n.__exportStar(e(1684), t), n.__exportStar(e(73874), t), n.__exportStar(e(83810), t), n.__exportStar(e(98701), t), n.__exportStar(e(81710), t), n.__exportStar(e(16492), t);
  3632. }, 83810: function(_, t) {
  3633. Object.defineProperty(t, "__esModule", { value: !0 }), t.innerWidth = void 0, t.innerWidth = function(e, n) {
  3634. var m = n.getComputedStyle(e);
  3635. return e.clientWidth - (parseFloat(m.paddingLeft || "0") + parseFloat(m.paddingRight || "0"));
  3636. };
  3637. }, 16492: function(_, t, e) {
  3638. Object.defineProperty(t, "__esModule", { value: !0 }), t.size = void 0;
  3639. var n = e(10172);
  3640. t.size = function(m) {
  3641. return (0, n.isString)(m) || (0, n.isArray)(m) ? m.length : (0, n.isPlainObject)(m) ? Object.keys(m).length : 0;
  3642. };
  3643. }, 98701: function(_, t) {
  3644. Object.defineProperty(t, "__esModule", { value: !0 }), t.offset = void 0, t.offset = function(e, n, m, h) {
  3645. var f;
  3646. h === void 0 && (h = !1);
  3647. try {
  3648. f = e.getBoundingClientRect();
  3649. } catch (y) {
  3650. f = { top: 0, bottom: 0, left: 0, right: 0, width: 0, height: 0 };
  3651. }
  3652. var d, a, s = m.body, c = m.documentElement || { clientTop: 0, clientLeft: 0, scrollTop: 0, scrollLeft: 0 }, p = m.defaultView || m.parentWindow, l = p.pageYOffset || c.scrollTop || s.scrollTop, o = p.pageXOffset || c.scrollLeft || s.scrollLeft, r = c.clientTop || s.clientTop || 0, i = c.clientLeft || s.clientLeft || 0, u = n.iframe;
  3653. if (!h && n && n.options && n.o.iframe && u) {
  3654. var v = (0, t.offset)(u, n, n.od, !0);
  3655. d = f.top + v.top, a = f.left + v.left;
  3656. } else d = f.top + l - r, a = f.left + o - i;
  3657. return { top: Math.round(d), left: Math.round(a), width: f.width, height: f.height };
  3658. };
  3659. }, 81710: function(_, t, e) {
  3660. Object.defineProperty(t, "__esModule", { value: !0 }), t.position = void 0;
  3661. var n = e(77892);
  3662. t.position = function m(h, f, d) {
  3663. d === void 0 && (d = !1);
  3664. var a = h.getBoundingClientRect(), s = a.left, c = a.top;
  3665. if ((0, n.isJoditObject)(f) && f.iframe && f.ed.body.contains(h) && !d) {
  3666. var p = m(f.iframe, f, !0);
  3667. s += p.left, c += p.top;
  3668. }
  3669. return { left: Math.round(s), top: Math.round(c), width: Math.round(h.offsetWidth), height: Math.round(h.offsetHeight) };
  3670. };
  3671. }, 26596: function(_, t) {
  3672. Object.defineProperty(t, "__esModule", { value: !0 }), t.camelCase = void 0, t.camelCase = function(e) {
  3673. return e.replace(/([-_])(.)/g, function(n, m, h) {
  3674. return h.toUpperCase();
  3675. });
  3676. };
  3677. }, 93163: function(_, t, e) {
  3678. Object.defineProperty(t, "__esModule", { value: !0 }), t.fuzzySearchIndex = void 0;
  3679. var n = e(86893);
  3680. t.fuzzySearchIndex = function(m, h, f, d) {
  3681. f === void 0 && (f = 0), d === void 0 && (d = 1);
  3682. var a = 0, s = 0, c = -1, p = 0, l = 0;
  3683. for (s = f; m.length > a && h.length > s; ) m[a].toLowerCase() === h[s].toLowerCase() ? (a++, p++, l = 0, c === -1 && (c = s)) : a > 0 && (d > l || h[s] === n.INVISIBLE_SPACE ? (l++, p++) : (a = 0, c = -1, p = 0, l = 0, s--)), s++;
  3684. return a === m.length ? [c, p] : [-1, 0];
  3685. };
  3686. }, 11625: function(_, t, e) {
  3687. Object.defineProperty(t, "__esModule", { value: !0 }), t.i18n = t.sprintf = void 0;
  3688. var n = e(93166), m = e(76502), h = e(24421), f = e(13449), d = e(86893);
  3689. t.sprintf = function(a, s) {
  3690. if (!s || !s.length) return a;
  3691. for (var c = /%([sd])/g, p = c.exec(a), l = a, o = 0; p && s[o] !== void 0; ) l = l.replace(p[0], s[o].toString()), o += 1, p = c.exec(a);
  3692. return l;
  3693. }, t.i18n = function(a, s, c) {
  3694. if (!(0, h.isString)(a)) throw (0, m.error)("i18n: Need string in first argument");
  3695. if (!a.length) return a;
  3696. var p = !!(c != null && c.debugLanguage), l = {}, o = function(g) {
  3697. return s && s.length ? (0, t.sprintf)(g, s) : g;
  3698. }, r = (0, m.defaultLanguage)(n.Config.defaultOptions.language, n.Config.defaultOptions.language), i = (0, m.defaultLanguage)(c == null ? void 0 : c.language, r), u = function(g) {
  3699. if (g) {
  3700. if ((0, h.isString)(g[a])) return o(g[a]);
  3701. var b = a.toLowerCase();
  3702. if ((0, h.isString)(g[b])) return o(g[b]);
  3703. var w = (0, f.ucfirst)(a);
  3704. return (0, h.isString)(g[w]) ? o(g[w]) : void 0;
  3705. }
  3706. };
  3707. d.lang[i] !== void 0 ? l = d.lang[i] : p || (l = d.lang[r] !== void 0 ? d.lang[r] : d.lang.en);
  3708. var v = c == null ? void 0 : c.i18n;
  3709. if (v && v[i]) {
  3710. var y = u(v[i]);
  3711. if (y) return y;
  3712. }
  3713. return u(l) || (!p && d.lang.en && (0, h.isString)(d.lang.en[a]) && d.lang.en[a] ? o(d.lang.en[a]) : p ? "{" + a + "}" : o(a));
  3714. };
  3715. }, 19035: function(_, t, e) {
  3716. Object.defineProperty(t, "__esModule", { value: !0 });
  3717. var n = e(20255);
  3718. n.__exportStar(e(26596), t), n.__exportStar(e(93163), t), n.__exportStar(e(11625), t), n.__exportStar(e(11278), t), n.__exportStar(e(42554), t), n.__exportStar(e(33941), t), n.__exportStar(e(13449), t);
  3719. }, 11278: function(_, t) {
  3720. Object.defineProperty(t, "__esModule", { value: !0 }), t.CamelCaseToKebabCase = t.kebabCase = void 0, t.kebabCase = function(e) {
  3721. return e.replace(/([A-Z])([A-Z])([a-z])/g, "$1-$2$3").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
  3722. }, t.CamelCaseToKebabCase = function(e) {
  3723. return e.replace(/([A-Z])([A-Z])([a-z])/g, "$1-$2$3").replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
  3724. };
  3725. }, 42554: function(_, t) {
  3726. Object.defineProperty(t, "__esModule", { value: !0 }), t.stringify = void 0, t.stringify = function(e, n) {
  3727. if (n === void 0 && (n = {}), typeof e != "object") return String(e);
  3728. var m = new Set(n.excludeKeys), h = /* @__PURE__ */ new WeakMap();
  3729. return JSON.stringify(e, function(f, d) {
  3730. if (!m.has(f)) {
  3731. if (typeof d == "object" && d != null) {
  3732. if (h.get(d)) return "[refObject]";
  3733. h.set(d, !0);
  3734. }
  3735. return d;
  3736. }
  3737. }, n.prettify);
  3738. };
  3739. }, 33941: function(_, t, e) {
  3740. Object.defineProperty(t, "__esModule", { value: !0 }), t.trimInv = t.trim = void 0;
  3741. var n = e(86893);
  3742. t.trim = function(m) {
  3743. return m.replace((0, n.SPACE_REG_EXP_END)(), "").replace((0, n.SPACE_REG_EXP_START)(), "");
  3744. }, t.trimInv = function(m) {
  3745. return m.replace((0, n.INVISIBLE_SPACE_REG_EXP_END)(), "").replace((0, n.INVISIBLE_SPACE_REG_EXP_START)(), "");
  3746. };
  3747. }, 13449: function(_, t) {
  3748. Object.defineProperty(t, "__esModule", { value: !0 }), t.ucfirst = void 0, t.ucfirst = function(e) {
  3749. return e.length ? e[0].toUpperCase() + e.substr(1) : "";
  3750. };
  3751. }, 60303: function(_, t, e) {
  3752. Object.defineProperty(t, "__esModule", { value: !0 }), t.alignElement = t.clearAlign = t.hAlignElement = void 0;
  3753. var n = e(64968), m = e(26911);
  3754. function h(f) {
  3755. n.Dom.each(f, function(d) {
  3756. n.Dom.isHTMLElement(d) && d.style.textAlign && (d.style.textAlign = "", d.style.cssText.trim().length || d.removeAttribute("style"));
  3757. });
  3758. }
  3759. t.hAlignElement = function(f, d) {
  3760. d && d !== "normal" ? d !== "center" ? ((0, m.css)(f, "float", d), (0, m.clearCenterAlign)(f)) : (0, m.css)(f, { float: "", display: "block", marginLeft: "auto", marginRight: "auto" }) : ((0, m.css)(f, "float") && ["right", "left"].indexOf((0, m.css)(f, "float").toString().toLowerCase()) !== -1 && (0, m.css)(f, "float", ""), (0, m.clearCenterAlign)(f));
  3761. }, t.clearAlign = h, t.alignElement = function(f, d) {
  3762. if (n.Dom.isNode(d) && n.Dom.isElement(d)) switch (h(d), f.toLowerCase()) {
  3763. case "justifyfull":
  3764. d.style.textAlign = "justify";
  3765. break;
  3766. case "justifyright":
  3767. d.style.textAlign = "right";
  3768. break;
  3769. case "justifyleft":
  3770. d.style.textAlign = "left";
  3771. break;
  3772. case "justifycenter":
  3773. d.style.textAlign = "center";
  3774. }
  3775. };
  3776. }, 62462: function(_, t, e) {
  3777. Object.defineProperty(t, "__esModule", { value: !0 }), t.loadNextStyle = t.loadNext = t.appendStyleAsync = t.appendScriptAsync = t.appendScript = void 0;
  3778. var n = e(20255), m = e(48240), h = e(42096), f = e(24421), d = /* @__PURE__ */ new Map(), a = function(s) {
  3779. return function(c, p) {
  3780. return n.__awaiter(void 0, void 0, Promise, function() {
  3781. var l;
  3782. return n.__generator(this, function(o) {
  3783. return d.has(p) ? [2, d.get(p)] : (l = s(c, p), d.set(p, l), [2, l]);
  3784. });
  3785. });
  3786. };
  3787. };
  3788. t.appendScript = function(s, c, p) {
  3789. var l = s.c.element("script");
  3790. return l.type = "text/javascript", l.async = !0, (0, h.isFunction)(p) && !s.isInDestruct && s.e.on(l, "load", p), l.src || (l.src = (0, m.completeUrl)(c)), s.od.body.appendChild(l), { callback: p, element: l };
  3791. }, t.appendScriptAsync = a(function(s, c) {
  3792. return new Promise(function(p, l) {
  3793. var o = (0, t.appendScript)(s, c, p).element;
  3794. !s.isInDestruct && s.e.on(o, "error", l);
  3795. });
  3796. }), t.appendStyleAsync = a(function(s, c) {
  3797. return new Promise(function(p, l) {
  3798. var o = s.c.element("link");
  3799. o.rel = "stylesheet", o.media = "all", o.crossOrigin = "anonymous", !s.isInDestruct && s.e.on(o, "load", function() {
  3800. return p(o);
  3801. }).on(o, "error", l), o.href = (0, m.completeUrl)(c), s.o.shadowRoot ? s.o.shadowRoot.appendChild(o) : s.od.body.appendChild(o);
  3802. });
  3803. }), t.loadNext = function(s, c, p) {
  3804. return p === void 0 && (p = 0), (0, f.isString)(c[p]) ? (0, t.appendScriptAsync)(s, c[p]).then(function() {
  3805. return (0, t.loadNext)(s, c, p + 1);
  3806. }) : Promise.resolve();
  3807. }, t.loadNextStyle = function(s, c, p) {
  3808. return p === void 0 && (p = 0), (0, f.isString)(c[p]) ? (0, t.appendStyleAsync)(s, c[p]).then(function() {
  3809. return (0, t.loadNextStyle)(s, c, p + 1);
  3810. }) : Promise.resolve();
  3811. };
  3812. }, 603: function(_, t, e) {
  3813. Object.defineProperty(t, "__esModule", { value: !0 }), t.assert = void 0;
  3814. var n = e(20255), m = function(h) {
  3815. function f(d) {
  3816. var a = h.call(this, d) || this;
  3817. return a.name = "AssertionError", a;
  3818. }
  3819. return n.__extends(f, h), f;
  3820. }(Error);
  3821. t.assert = function(h, f) {
  3822. if (!h) throw new m("Assertion failed: ".concat(f));
  3823. };
  3824. }, 37682: function(_, t) {
  3825. Object.defineProperty(t, "__esModule", { value: !0 }), t.browser = void 0, t.browser = function(e) {
  3826. var n = navigator.userAgent.toLowerCase(), m = /(firefox)[\s/]([\w.]+)/.exec(n) || /(chrome)[\s/]([\w.]+)/.exec(n) || /(webkit)[\s/]([\w.]+)/.exec(n) || /(opera)(?:.*version)[\s/]([\w.]+)/.exec(n) || /(msie)[\s]([\w.]+)/.exec(n) || /(trident)\/([\w.]+)/.exec(n) || 0 > n.indexOf("compatible") || [];
  3827. return e === "version" ? m[2] : e === "webkit" ? m[1] === "chrome" || m[1] === "webkit" : e === "ff" ? m[1] === "firefox" : e === "msie" ? m[1] === "trident" || m[1] === "msie" : m[1] === e;
  3828. };
  3829. }, 71567: function(_, t, e) {
  3830. Object.defineProperty(t, "__esModule", { value: !0 }), t.buildQuery = void 0;
  3831. var n = e(79736);
  3832. t.buildQuery = function(m, h) {
  3833. var f = [], d = encodeURIComponent;
  3834. for (var a in m) if (Object.prototype.hasOwnProperty.call(m, a)) {
  3835. var s = h ? h + "[" + a + "]" : a, c = m[a];
  3836. f.push((0, n.isPlainObject)(c) ? (0, t.buildQuery)(c, s) : d(s) + "=" + d(c));
  3837. }
  3838. return f.join("&");
  3839. };
  3840. }, 48240: function(_, t) {
  3841. Object.defineProperty(t, "__esModule", { value: !0 }), t.completeUrl = void 0, t.completeUrl = function(e) {
  3842. return window.location.protocol === "file:" && /^\/\//.test(e) && (e = "https:" + e), e;
  3843. };
  3844. }, 64981: function(_, t, e) {
  3845. Object.defineProperty(t, "__esModule", { value: !0 }), t.ConfigFlatten = t.ConfigProto = void 0;
  3846. var n = e(20255), m = e(7935), h = e(49781), f = e(79736), d = e(24421), a = e(24021), s = e(93166), c = e(67309);
  3847. t.ConfigProto = function p(l, o, r) {
  3848. if (r === void 0 && (r = 0), Object.getPrototypeOf(l) !== Object.prototype) return l;
  3849. var i = s.Config.defaultOptions;
  3850. if ((0, d.isString)(l.preset)) {
  3851. if (i.presets[l.preset] !== void 0) {
  3852. var u = i.presets[l.preset];
  3853. Object.keys(u).forEach(function(y) {
  3854. (0, a.isVoid)(l[y]) && (l[y] = u[y]);
  3855. });
  3856. }
  3857. delete l.preset;
  3858. }
  3859. var v = {};
  3860. return Object.keys(l).forEach(function(y) {
  3861. var g = l[y], b = o ? o[y] : null;
  3862. v[y] = (0, f.isPlainObject)(g) && (0, f.isPlainObject)(b) && !(0, m.isAtom)(g) ? p(g, b, r + 1) : r !== 0 && (0, h.isArray)(g) && !(0, m.isAtom)(g) && (0, h.isArray)(b) ? n.__spreadArray(n.__spreadArray([], n.__read(g), !1), n.__read(b.slice(g.length)), !1) : g;
  3863. }), Object.setPrototypeOf(v, o), v;
  3864. }, t.ConfigFlatten = function(p) {
  3865. return (0, c.keys)(p, !1).reduce(function(l, o) {
  3866. return l[o] = p[o], l;
  3867. }, {});
  3868. };
  3869. }, 42051: function(_, t, e) {
  3870. Object.defineProperty(t, "__esModule", { value: !0 }), t.convertMediaUrlToVideoEmbed = void 0;
  3871. var n = e(64350), m = e(67285);
  3872. t.convertMediaUrlToVideoEmbed = function(h, f, d) {
  3873. if (f === void 0 && (f = 400), d === void 0 && (d = 345), !(0, n.isURL)(h)) return h;
  3874. var a = document.createElement("a"), s = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
  3875. a.href = h, f || (f = 400), d || (d = 345);
  3876. var c = a.protocol || "";
  3877. switch (a.hostname) {
  3878. case "www.vimeo.com":
  3879. case "vimeo.com":
  3880. return s.test(h) ? h.replace(s, '<iframe width="' + f + '" height="' + d + '" src="' + c + '//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>') : h;
  3881. case "youtube.com":
  3882. case "www.youtube.com":
  3883. case "youtu.be":
  3884. case "www.youtu.be":
  3885. var p = a.search ? (0, m.parseQuery)(a.search) : { v: a.pathname.substr(1) };
  3886. return p.v ? '<iframe width="' + f + '" height="' + d + '" src="' + c + "//www.youtube.com/embed/" + p.v + '" frameborder="0" allowfullscreen></iframe>' : h;
  3887. }
  3888. return h;
  3889. };
  3890. }, 26911: function(_, t, e) {
  3891. Object.defineProperty(t, "__esModule", { value: !0 }), t.clearCenterAlign = t.css = void 0;
  3892. var n = e(79736), m = e(67749), h = e(49353), f = e(26596), d = e(11278);
  3893. function a(s, c, p, l) {
  3894. if (l === void 0 && (l = !1), (0, m.isBoolean)(p) && (l = p, p = void 0), (0, n.isPlainObject)(c) || p !== void 0) {
  3895. var o = function(w, C, S) {
  3896. (S = (0, h.normalizeCssNumericValue)(C, S)) === void 0 || S != null && a(w, C, !0) === (0, h.normalizeCssValue)(C, S) || (w.style[C] = S);
  3897. };
  3898. if ((0, n.isPlainObject)(c)) for (var r = Object.keys(c), i = 0; r.length > i; i += 1) o(s, (0, f.camelCase)(r[i]), c[r[i]]);
  3899. else o(s, (0, f.camelCase)(c), p);
  3900. return "";
  3901. }
  3902. var u = (0, d.kebabCase)(c), v = s.ownerDocument || document, y = !!v && (v.defaultView || v.parentWindow), g = s.style[c], b = "";
  3903. return g !== void 0 && g !== "" ? b = g : y && !l && (b = y.getComputedStyle(s).getPropertyValue(u)), h.NUMBER_FIELDS_REG.test(c) && /^[-+]?[0-9.]+px$/.test(b.toString()) && (b = parseInt(b.toString(), 10)), (0, h.normalizeCssValue)(c, b);
  3904. }
  3905. t.css = a, t.clearCenterAlign = function(s) {
  3906. a(s, "display") === "block" && a(s, "display", "");
  3907. var c = s.style;
  3908. c.marginLeft === "auto" && c.marginRight === "auto" && (c.marginLeft = "", c.marginRight = "");
  3909. };
  3910. }, 2522: function(_, t) {
  3911. Object.defineProperty(t, "__esModule", { value: !0 }), t.ctrlKey = void 0, t.ctrlKey = function(e) {
  3912. if (typeof navigator != "undefined" && navigator.userAgent.indexOf("Mac OS X") !== -1) {
  3913. if (e.metaKey && !e.altKey) return !0;
  3914. } else if (e.ctrlKey && !e.altKey) return !0;
  3915. return !1;
  3916. };
  3917. }, 63122: function(_, t, e) {
  3918. Object.defineProperty(t, "__esModule", { value: !0 }), t.dataBind = void 0;
  3919. var n = e(96574), m = /* @__PURE__ */ new WeakMap();
  3920. t.dataBind = function(h, f, d) {
  3921. var a = m.get(h);
  3922. if (!a) {
  3923. m.set(h, a = {});
  3924. var s = null;
  3925. (0, n.isViewObject)(h.j) && (s = h.j.e), (0, n.isViewObject)(h) && (s = h.e), s && s.on("beforeDestruct", function() {
  3926. m.delete(h);
  3927. });
  3928. }
  3929. return d === void 0 ? a[f] : (a[f] = d, d);
  3930. };
  3931. }, 93351: function(_, t, e) {
  3932. Object.defineProperty(t, "__esModule", { value: !0 }), t.defaultLanguage = void 0;
  3933. var n = e(24421);
  3934. t.defaultLanguage = function(m, h) {
  3935. return h === void 0 && (h = "en"), m !== "auto" && (0, n.isString)(m) ? m : document.documentElement && document.documentElement.lang ? document.documentElement.lang : navigator.language ? navigator.language.substring(0, 2) : h;
  3936. };
  3937. }, 41579: function(_, t, e) {
  3938. Object.defineProperty(t, "__esModule", { value: !0 }), t.isAbort = t.abort = t.options = t.connection = t.error = void 0;
  3939. var n = e(45339);
  3940. t.error = function(m) {
  3941. return new TypeError(m);
  3942. }, t.connection = function(m) {
  3943. return new n.ConnectionError(m);
  3944. }, t.options = function(m) {
  3945. return new n.OptionsError(m);
  3946. }, t.abort = function(m) {
  3947. return new n.AbortError(m);
  3948. }, t.isAbort = function(m) {
  3949. return m instanceof n.AbortError;
  3950. };
  3951. }, 86768: function(_, t, e) {
  3952. Object.defineProperty(t, "__esModule", { value: !0 }), t.AbortError = void 0;
  3953. var n = e(20255), m = function(h) {
  3954. function f(d) {
  3955. var a = h.call(this, d) || this;
  3956. return Object.setPrototypeOf(a, f.prototype), a;
  3957. }
  3958. return n.__extends(f, h), f;
  3959. }(Error);
  3960. t.AbortError = m;
  3961. }, 43380: function(_, t, e) {
  3962. Object.defineProperty(t, "__esModule", { value: !0 }), t.ConnectionError = void 0;
  3963. var n = e(20255), m = function(h) {
  3964. function f(d) {
  3965. var a = h.call(this, d) || this;
  3966. return Object.setPrototypeOf(a, f.prototype), a;
  3967. }
  3968. return n.__extends(f, h), f;
  3969. }(Error);
  3970. t.ConnectionError = m;
  3971. }, 45339: function(_, t, e) {
  3972. Object.defineProperty(t, "__esModule", { value: !0 });
  3973. var n = e(20255);
  3974. n.__exportStar(e(86768), t), n.__exportStar(e(43380), t), n.__exportStar(e(47403), t);
  3975. }, 47403: function(_, t, e) {
  3976. Object.defineProperty(t, "__esModule", { value: !0 }), t.OptionsError = void 0;
  3977. var n = e(20255), m = function(h) {
  3978. function f(d) {
  3979. var a = h.call(this, d) || this;
  3980. return Object.setPrototypeOf(a, f.prototype), a;
  3981. }
  3982. return n.__extends(f, h), f;
  3983. }(TypeError);
  3984. t.OptionsError = m;
  3985. }, 56964: function(_, t, e) {
  3986. Object.defineProperty(t, "__esModule", { value: !0 });
  3987. var n = e(20255);
  3988. n.__exportStar(e(41579), t), n.__exportStar(e(45339), t);
  3989. }, 7935: function(_, t, e) {
  3990. Object.defineProperty(t, "__esModule", { value: !0 }), t.fastClone = t.markAsAtomic = t.isAtom = void 0;
  3991. var n = e(42554);
  3992. t.isAtom = function(m) {
  3993. return m && m.isAtom;
  3994. }, t.markAsAtomic = function(m) {
  3995. return Object.defineProperty(m, "isAtom", { enumerable: !1, value: !0, configurable: !1 }), m;
  3996. }, t.fastClone = function(m) {
  3997. return JSON.parse((0, n.stringify)(m));
  3998. };
  3999. }, 87247: function(_, t, e) {
  4000. Object.defineProperty(t, "__esModule", { value: !0 }), t.getClassName = t.keepNames = void 0;
  4001. var n = e(42096);
  4002. t.keepNames = /* @__PURE__ */ new Map(), t.getClassName = function(m) {
  4003. var h;
  4004. if ((0, n.isFunction)(m.className)) return m.className();
  4005. var f = ((h = m.constructor) === null || h === void 0 ? void 0 : h.originalConstructor) || m.constructor;
  4006. if (t.keepNames.has(f)) return t.keepNames.get(f);
  4007. if (f.name) return f.name;
  4008. var d = new RegExp(/^\s*function\s*(\S*)\s*\(/), a = f.toString().match(d);
  4009. return a ? a[1] : "";
  4010. };
  4011. }, 69384: function(_, t, e) {
  4012. Object.defineProperty(t, "__esModule", { value: !0 }), t.get = void 0;
  4013. var n = e(20255), m = e(24421), h = e(24021);
  4014. t.get = function(f, d) {
  4015. var a, s;
  4016. if (!(0, m.isString)(f) || !f.length) return null;
  4017. var c = f.split("."), p = d;
  4018. try {
  4019. try {
  4020. for (var l = n.__values(c), o = l.next(); !o.done; o = l.next()) {
  4021. var r = o.value;
  4022. if ((0, h.isVoid)(p[r])) return null;
  4023. p = p[r];
  4024. }
  4025. } catch (i) {
  4026. a = { error: i };
  4027. } finally {
  4028. try {
  4029. o && !o.done && (s = l.return) && s.call(l);
  4030. } finally {
  4031. if (a) throw a.error;
  4032. }
  4033. }
  4034. } catch (i) {
  4035. return null;
  4036. }
  4037. return (0, h.isVoid)(p) ? null : p;
  4038. };
  4039. }, 6102: function(_, t) {
  4040. Object.defineProperty(t, "__esModule", { value: !0 }), t.humanSizeToBytes = void 0, t.humanSizeToBytes = function(e) {
  4041. if (/^[0-9.]+$/.test(e.toString())) return parseFloat(e);
  4042. var n = e.substr(-2, 2).toUpperCase(), m = ["KB", "MB", "GB", "TB"], h = parseFloat(e.substr(0, e.length - 2));
  4043. return m.indexOf(n) !== -1 ? h * Math.pow(1024, m.indexOf(n) + 1) : parseInt(e, 10);
  4044. };
  4045. }, 76502: function(_, t, e) {
  4046. Object.defineProperty(t, "__esModule", { value: !0 });
  4047. var n = e(20255);
  4048. n.__exportStar(e(60303), t), n.__exportStar(e(62462), t), n.__exportStar(e(52378), t), n.__exportStar(e(37682), t), n.__exportStar(e(71567), t), n.__exportStar(e(48240), t), n.__exportStar(e(64981), t), n.__exportStar(e(42051), t), n.__exportStar(e(26911), t), n.__exportStar(e(2522), t), n.__exportStar(e(63122), t), n.__exportStar(e(93351), t), n.__exportStar(e(56964), t), n.__exportStar(e(7935), t), n.__exportStar(e(69384), t), n.__exportStar(e(87247), t), n.__exportStar(e(6102), t), n.__exportStar(e(47580), t), n.__exportStar(e(67285), t), n.__exportStar(e(21498), t), n.__exportStar(e(80861), t), n.__exportStar(e(9005), t), n.__exportStar(e(54188), t), n.__exportStar(e(21518), t), n.__exportStar(e(37228), t), n.__exportStar(e(67309), t), n.__exportStar(e(22362), t);
  4049. }, 47580: function(_, t, e) {
  4050. Object.defineProperty(t, "__esModule", { value: !0 }), t.markDeprecated = t.cns = void 0;
  4051. var n = e(20255);
  4052. t.cns = console, t.markDeprecated = function(m, h, f) {
  4053. return h === void 0 && (h = [""]), f === void 0 && (f = null), function() {
  4054. for (var d = [], a = 0; arguments.length > a; a++) d[a] = arguments[a];
  4055. return t.cns.warn('Method "'.concat(h[0], '" deprecated.') + (h[1] ? ' Use "'.concat(h[1], '" instead') : "")), m.call.apply(m, n.__spreadArray([f], n.__read(d), !1));
  4056. };
  4057. };
  4058. }, 67285: function(_, t) {
  4059. Object.defineProperty(t, "__esModule", { value: !0 }), t.parseQuery = void 0, t.parseQuery = function(e) {
  4060. for (var n = {}, m = e.substring(1).split("&"), h = 0; m.length > h; h += 1) {
  4061. var f = m[h].split("=");
  4062. n[decodeURIComponent(f[0])] = decodeURIComponent(f[1] || "");
  4063. }
  4064. return n;
  4065. };
  4066. }, 21498: function(_, t, e) {
  4067. Object.defineProperty(t, "__esModule", { value: !0 }), t.previewBox = void 0;
  4068. var n = e(24421), m = e(24263), h = e(26911), f = e(67309), d = e(54188);
  4069. t.previewBox = function(a, s, c, p) {
  4070. c === void 0 && (c = "px"), p === void 0 && (p = null);
  4071. var l = function(b, w) {
  4072. var C = [];
  4073. try {
  4074. (0, d.$$)("img", b.editor).forEach(function(S) {
  4075. var j = [(0, f.attr)(S, "width"), (0, f.attr)(S, "height"), S.src];
  4076. (0, f.attr)(S, { width: S.offsetWidth + w, height: S.offsetHeight + w });
  4077. var E = b.createInside.a();
  4078. b.ed.body.appendChild(E), E.href = S.src, S.src = E.href, m.Dom.safeRemove(E), C.push(function() {
  4079. var x;
  4080. S.src = (x = j[2]) !== null && x !== void 0 ? x : "", (0, f.attr)(S, { width: j[0] || null, height: j[1] || null });
  4081. });
  4082. });
  4083. } catch (S) {
  4084. throw C.forEach(function(j) {
  4085. return j();
  4086. }), C.length = 0, S;
  4087. }
  4088. return C;
  4089. }(a, c);
  4090. try {
  4091. var o = a.e.fire("beforePreviewBox", s, c);
  4092. if (o != null) return o;
  4093. var r = a.c.div("jodit__preview-box jodit-context");
  4094. p && p.appendChild(r), (0, h.css)(r, { position: "relative", padding: 16 });
  4095. var i = a.value || "<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>".concat(a.i18n("Empty"), "</div>");
  4096. if (a.iframe) {
  4097. var u = a.create.element("iframe");
  4098. (0, h.css)(u, { minWidth: 800, minHeight: 600, border: 0 }), r.appendChild(u);
  4099. var v = u.contentWindow;
  4100. if (v && (a.e.fire("generateDocumentStructure.iframe", v.document, a), r = v.document.body, typeof ResizeObserver == "function")) {
  4101. var y = new ResizeObserver(function(b) {
  4102. u.style.height = v.document.body.offsetHeight + 20 + "px";
  4103. });
  4104. y.observe(v.document.body), a.e.on("beforeDestruct", function() {
  4105. y.unobserve(v.document.body);
  4106. });
  4107. }
  4108. } else (0, h.css)(r, { minWidth: 1024, minHeight: 600, border: 0 });
  4109. var g = function(b, w) {
  4110. var C = (0, n.isString)(w) ? a.c.div() : w;
  4111. (0, n.isString)(w) && (C.innerHTML = w);
  4112. for (var S = 0; C.childNodes.length > S; S += 1) {
  4113. var j = C.childNodes[S];
  4114. if (m.Dom.isElement(j)) {
  4115. for (var E = b.ownerDocument.createElement(j.nodeName), x = 0; j.attributes.length > x; x += 1) (0, f.attr)(E, j.attributes[x].nodeName, j.attributes[x].nodeValue);
  4116. j.childNodes.length === 0 || m.Dom.isTag(j, ["table"]) ? j.nodeName === "SCRIPT" ? j.textContent && (E.textContent = j.textContent) : j.innerHTML && (E.innerHTML = j.innerHTML) : g(E, j);
  4117. try {
  4118. b.appendChild(E);
  4119. } catch (k) {
  4120. }
  4121. } else try {
  4122. b.appendChild(j.cloneNode(!0));
  4123. } catch (k) {
  4124. }
  4125. }
  4126. };
  4127. return g(r, i), a.e.fire("afterPreviewBox", r), r;
  4128. } finally {
  4129. l.forEach(function(b) {
  4130. return b();
  4131. });
  4132. }
  4133. };
  4134. }, 80861: function(_, t, e) {
  4135. Object.defineProperty(t, "__esModule", { value: !0 }), t.reset = void 0;
  4136. var n = e(69384), m = e(42096), h = {};
  4137. t.reset = function(f) {
  4138. var d, a;
  4139. if (!(f in h)) {
  4140. var s = document.createElement("iframe");
  4141. try {
  4142. if (s.src = "about:blank", document.body.appendChild(s), !s.contentWindow) return null;
  4143. var c = (0, n.get)(f, s.contentWindow), p = (0, n.get)(f.split(".").slice(0, -1).join("."), s.contentWindow);
  4144. (0, m.isFunction)(c) && (h[f] = c.bind(p));
  4145. } catch (l) {
  4146. } finally {
  4147. (d = s.parentNode) === null || d === void 0 || d.removeChild(s);
  4148. }
  4149. }
  4150. return (a = h[f]) !== null && a !== void 0 ? a : null;
  4151. };
  4152. }, 9005: function(_, t, e) {
  4153. Object.defineProperty(t, "__esModule", { value: !0 }), t.scrollIntoViewIfNeeded = t.inView = void 0;
  4154. var n = e(24263);
  4155. t.inView = function(m, h, f) {
  4156. var d = m.getBoundingClientRect(), a = m, s = d.top, c = d.height;
  4157. do
  4158. if (a && a.parentNode && ((d = (a = a.parentNode).getBoundingClientRect()).bottom < s || d.top >= s + c))
  4159. return !1;
  4160. while (a && a !== h && a.parentNode);
  4161. return (f.documentElement && f.documentElement.clientHeight || 0) >= s;
  4162. }, t.scrollIntoViewIfNeeded = function(m, h, f) {
  4163. n.Dom.isHTMLElement(m) && !(0, t.inView)(m, h, f) && (h.clientHeight !== h.scrollHeight && (h.scrollTop = m.offsetTop), (0, t.inView)(m, h, f) || m.scrollIntoView());
  4164. };
  4165. }, 54188: function(_, t, e) {
  4166. Object.defineProperty(t, "__esModule", { value: !0 }), t.resolveElement = t.cssPath = t.refs = t.getXPathByElement = t.$$ = void 0;
  4167. var n = e(86893), m = e(24421), h = e(76502), f = e(24263), d = e(26596), a = e(1853), s = e(53929), c = e(45113), p = 1;
  4168. function l(o, r) {
  4169. var i;
  4170. if (!/:scope/.test(o) || !n.IS_IE || r && r.nodeType === Node.DOCUMENT_NODE) i = r.querySelectorAll(o);
  4171. else {
  4172. var u = r.id, v = u || "_selector_id_" + String(Math.random()).slice(2) + ++p;
  4173. o = o.replace(/:scope/g, "#" + v), !u && r.setAttribute("id", v), i = r.parentNode.querySelectorAll(o), u || r.removeAttribute("id");
  4174. }
  4175. return [].slice.call(i);
  4176. }
  4177. t.$$ = l, t.getXPathByElement = function(o, r) {
  4178. if (!o || o.nodeType !== Node.ELEMENT_NODE || !o.parentNode || r === o) return "";
  4179. if (o.id) return "//*[@id='" + o.id + "']";
  4180. var i = [].filter.call(o.parentNode.childNodes, function(u) {
  4181. return u.nodeName === o.nodeName;
  4182. });
  4183. return (0, t.getXPathByElement)(o.parentNode, r) + "/" + o.nodeName.toLowerCase() + (i.length > 1 ? "[" + ((0, a.toArray)(i).indexOf(o) + 1) + "]" : "");
  4184. }, t.refs = function(o) {
  4185. return c.Component.isInstanceOf(o, s.UIElement) && (o = o.container), l("[ref],[data-ref]", o).reduce(function(r, i) {
  4186. var u = (0, h.attr)(i, "-ref");
  4187. return u && (0, m.isString)(u) && (r[(0, d.camelCase)(u)] = i, r[u] = i), r;
  4188. }, {});
  4189. }, t.cssPath = function(o) {
  4190. if (!f.Dom.isElement(o)) return null;
  4191. for (var r = [], i = o; i && i.nodeType === Node.ELEMENT_NODE; ) {
  4192. var u = i.nodeName.toLowerCase();
  4193. if (i.id) {
  4194. r.unshift(u += "#" + i.id);
  4195. break;
  4196. }
  4197. var v = i, y = 1;
  4198. do
  4199. (v = v.previousElementSibling) && v.nodeName.toLowerCase() === u && y++;
  4200. while (v);
  4201. r.unshift(u += ":nth-of-type(" + y + ")"), i = i.parentNode;
  4202. }
  4203. return r.join(" > ");
  4204. }, t.resolveElement = function(o, r) {
  4205. var i = o;
  4206. if ((0, m.isString)(o)) try {
  4207. i = r.querySelector(o);
  4208. } catch (u) {
  4209. throw (0, h.error)('String "' + o + '" should be valid HTML selector');
  4210. }
  4211. if (!i || typeof i != "object" || !f.Dom.isElement(i) || !i.cloneNode) throw (0, h.error)('Element "' + o + '" should be string or HTMLElement instance');
  4212. return i;
  4213. };
  4214. }, 21518: function(_, t, e) {
  4215. Object.defineProperty(t, "__esModule", { value: !0 }), t.set = void 0;
  4216. var n = e(24421), m = e(57649), h = e(49781), f = e(79736);
  4217. t.set = function(d, a, s) {
  4218. if ((0, n.isString)(d) && d.length) {
  4219. for (var c = d.split("."), p = s, l = c[0], o = 0; c.length - 1 > o; o += 1) (0, h.isArray)(p[l = c[o]]) || (0, f.isPlainObject)(p[l]) || (p[l] = (0, m.isNumeric)(c[o + 1]) ? [] : {}), p = p[l];
  4220. p && (p[c[c.length - 1]] = a);
  4221. }
  4222. };
  4223. }, 37228: function(_, t) {
  4224. Object.defineProperty(t, "__esModule", { value: !0 }), t.LimitedStack = void 0;
  4225. var e = function() {
  4226. function n(m) {
  4227. this.limit = m, this.stack = [];
  4228. }
  4229. return n.prototype.push = function(m) {
  4230. return this.stack.push(m), this.stack.length > this.limit && this.stack.shift(), this;
  4231. }, n.prototype.pop = function() {
  4232. return this.stack.pop();
  4233. }, n.prototype.find = function(m) {
  4234. return this.stack.find(m);
  4235. }, n;
  4236. }();
  4237. t.LimitedStack = e;
  4238. }, 67309: function(_, t, e) {
  4239. Object.defineProperty(t, "__esModule", { value: !0 }), t.getDataTransfer = t.memorizeExec = t.keys = t.loadImage = t.callPromise = t.markOwner = t.attr = t.call = void 0;
  4240. var n = e(20255), m = e(42096), h = e(26335), f = e(24021), d = e(79736), a = e(24421), s = e(63122), c = e(26911), p = e(11278);
  4241. function l(o, r, i) {
  4242. if (!o || !(0, m.isFunction)(o.getAttribute)) return null;
  4243. if (!(0, a.isString)(r)) return Object.keys(r).forEach(function(y) {
  4244. var g = r[y];
  4245. (0, d.isPlainObject)(g) && y === "style" ? (0, c.css)(o, g) : (y === "className" && (y = "class"), l(o, y, g));
  4246. }), null;
  4247. var u = (0, p.CamelCaseToKebabCase)(r);
  4248. if (/^-/.test(u)) {
  4249. var v = l(o, "data".concat(u));
  4250. if (v) return v;
  4251. u = u.substr(1);
  4252. }
  4253. if (i !== void 0) {
  4254. if (i != null) return o.setAttribute(u, i.toString()), i.toString();
  4255. o.hasAttribute(u) && o.removeAttribute(u);
  4256. }
  4257. return o.getAttribute(u);
  4258. }
  4259. t.call = function(o) {
  4260. for (var r = [], i = 1; arguments.length > i; i++) r[i - 1] = arguments[i];
  4261. return o.apply(void 0, n.__spreadArray([], n.__read(r), !1));
  4262. }, t.attr = l, t.markOwner = function(o, r) {
  4263. l(r, "data-editor_id", o.id), !r.component && Object.defineProperty(r, "jodit", { value: o });
  4264. }, t.callPromise = function(o, r) {
  4265. return (0, h.isPromise)(o) ? o.finally(r) : r();
  4266. }, t.loadImage = function(o, r) {
  4267. return r.async.promise(function(i, u) {
  4268. var v = new Image(), y = function() {
  4269. r.e.off(v), u == null || u();
  4270. }, g = function() {
  4271. r.e.off(v), i(v);
  4272. };
  4273. r.e.one(v, "load", g).one(v, "error", y).one(v, "abort", y), v.src = o, v.complete && g();
  4274. });
  4275. }, t.keys = function(o, r) {
  4276. if (r === void 0 && (r = !0), r) return Object.keys(o);
  4277. var i = [];
  4278. for (var u in o) i.push(u);
  4279. return i;
  4280. }, t.memorizeExec = function(o, r, i, u) {
  4281. var v, y = i.control, g = "button".concat(y.command), b = (v = y.args && y.args[0]) !== null && v !== void 0 ? v : (0, s.dataBind)(o, g);
  4282. if ((0, f.isVoid)(b)) return !1;
  4283. (0, s.dataBind)(o, g, b), u && (b = u(b)), o.execCommand(y.command, !1, b != null ? b : void 0);
  4284. }, t.getDataTransfer = function(o) {
  4285. if (o.clipboardData) return o.clipboardData;
  4286. try {
  4287. return o.dataTransfer || new DataTransfer();
  4288. } catch (r) {
  4289. return null;
  4290. }
  4291. };
  4292. }, 22362: function(_, t) {
  4293. Object.defineProperty(t, "__esModule", { value: !0 }), t.val = void 0, t.val = function(e, n, m) {
  4294. var h = e.querySelector(n);
  4295. return h ? (m && (h.value = m), h.value) : "";
  4296. };
  4297. }, 33286: function(_, t, e) {
  4298. Object.defineProperty(t, "__esModule", { value: !0 }), t.init = t.initInstance = void 0;
  4299. var n = e(10172), m = e(90338);
  4300. function h(f, d, a, s, c) {
  4301. var p = a.requires;
  4302. if (p != null && p.length && !p.every(function(l) {
  4303. return s.has(l);
  4304. })) return c[d] = a, !1;
  4305. if ((0, n.isInitable)(a)) try {
  4306. a.init(f);
  4307. } catch (l) {
  4308. }
  4309. return s.add(d), delete c[d], a.hasStyle && (0, m.loadStyle)(f, d).catch(function(l) {
  4310. }), !0;
  4311. }
  4312. t.initInstance = function(f, d, a, s, c) {
  4313. h(f, d, a, s, c) && Object.keys(c).forEach(function(p) {
  4314. h(f, p, c[p], s, c);
  4315. });
  4316. }, t.init = h;
  4317. }, 90338: function(_, t, e) {
  4318. Object.defineProperty(t, "__esModule", { value: !0 }), t.loadExtras = t.loadStyle = void 0;
  4319. var n = e(20255), m = e(62462), h = e(11278), f = e(93498), d = /* @__PURE__ */ new Set();
  4320. function a(s, c, p) {
  4321. return c = (0, h.kebabCase)(c), s.basePath + "plugins/" + c + "/" + c + "." + (p ? "js" : "css");
  4322. }
  4323. t.loadStyle = function(s, c) {
  4324. return n.__awaiter(this, void 0, Promise, function() {
  4325. var p;
  4326. return n.__generator(this, function(l) {
  4327. return p = a(s, c, !1), d.has(p) ? [2] : (d.add(p), [2, (0, m.appendStyleAsync)(s, p)]);
  4328. });
  4329. });
  4330. }, t.loadExtras = function(s, c, p, l) {
  4331. try {
  4332. var o = p.filter(function(r) {
  4333. return !s.has((0, f.normalizeName)(r.name));
  4334. });
  4335. o.length && function(r, i, u) {
  4336. i.map(function(v) {
  4337. var y = v.url || a(r, v.name, !0);
  4338. return (0, m.appendScriptAsync)(r, y).then(u).catch(function() {
  4339. return null;
  4340. });
  4341. });
  4342. }(c, o, l);
  4343. } catch (r) {
  4344. }
  4345. };
  4346. }, 24342: function(_, t, e) {
  4347. Object.defineProperty(t, "__esModule", { value: !0 }), t.makeInstance = void 0;
  4348. var n = e(10172);
  4349. t.makeInstance = function(m, h) {
  4350. try {
  4351. try {
  4352. return (0, n.isFunction)(h) ? new h(m) : h;
  4353. } catch (f) {
  4354. if ((0, n.isFunction)(h) && !h.prototype) return h(m);
  4355. }
  4356. } catch (f) {
  4357. }
  4358. return null;
  4359. };
  4360. }, 93498: function(_, t, e) {
  4361. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeName = void 0;
  4362. var n = e(11278);
  4363. t.normalizeName = function(m) {
  4364. return (0, n.kebabCase)(m).toLowerCase();
  4365. };
  4366. }, 57549: function(_, t, e) {
  4367. Object.defineProperty(t, "__esModule", { value: !0 });
  4368. var n = e(20255);
  4369. n.__exportStar(e(44540), t), n.__exportStar(e(85605), t);
  4370. }, 13573: function() {
  4371. }, 44540: function(_, t, e) {
  4372. Object.defineProperty(t, "__esModule", { value: !0 }), t.PluginSystem = void 0;
  4373. var n = e(20255);
  4374. e(13573);
  4375. var m = e(10172), h = e(12557), f = e(17332), d = e(90338), a = e(93498), s = e(24342), c = e(33286), p = function() {
  4376. function l() {
  4377. this.__items = /* @__PURE__ */ new Map();
  4378. }
  4379. return l.prototype.add = function(o, r) {
  4380. this.__items.set((0, a.normalizeName)(o), r), f.eventEmitter.fire("plugin:".concat(o, ":ready"));
  4381. }, l.prototype.get = function(o) {
  4382. return this.__items.get((0, a.normalizeName)(o));
  4383. }, l.prototype.remove = function(o) {
  4384. this.__items.delete((0, a.normalizeName)(o));
  4385. }, l.prototype.__filter = function(o) {
  4386. var r = [];
  4387. return this.__items.forEach(function(i, u) {
  4388. o && !o.has(u) || r.push([u, i]);
  4389. }), r;
  4390. }, l.prototype.__init = function(o) {
  4391. var r = this, i = function(S) {
  4392. return { extrasList: S.o.extraPlugins.map(function(j) {
  4393. return (0, m.isString)(j) ? { name: j } : j;
  4394. }), disableList: new Set((0, h.splitArray)(S.o.disablePlugins).map(a.normalizeName)), filter: S.o.safeMode ? new Set(S.o.safePluginsList) : null };
  4395. }(o), u = i.extrasList, v = i.disableList, y = i.filter, g = /* @__PURE__ */ new Set(), b = {}, w = {};
  4396. o.__plugins = w;
  4397. var C = function() {
  4398. if (!o.isInDestruct) {
  4399. var S = !1;
  4400. r.__filter(y).forEach(function(j) {
  4401. var E = n.__read(j, 2), x = E[0], k = E[1];
  4402. if (!(v.has(x) || g.has(x) || b[x])) {
  4403. var I = k == null ? void 0 : k.requires;
  4404. if (!(I && (0, m.isArray)(I) && I.some(function(T) {
  4405. return v.has(T);
  4406. }))) {
  4407. S = !0;
  4408. var M = (0, s.makeInstance)(o, k);
  4409. if (!M) return g.add(x), void delete b[x];
  4410. (0, c.initInstance)(o, x, M, g, b), w[x] = M;
  4411. }
  4412. }
  4413. }), S && o.e.fire("updatePlugins");
  4414. }
  4415. };
  4416. u && u.length || (0, d.loadExtras)(this.__items, o, u, C), C(), function(S, j) {
  4417. S.e.on("beforeDestruct", function() {
  4418. Object.keys(j).forEach(function(E) {
  4419. var x = j[E];
  4420. (0, m.isDestructable)(x) && x.destruct(S), delete j[E];
  4421. }), delete S.__plugins;
  4422. });
  4423. }(o, w);
  4424. }, l.prototype.wait = function(o) {
  4425. var r = this;
  4426. return new Promise(function(i) {
  4427. if (r.get(o)) return i();
  4428. var u = function() {
  4429. i(), f.eventEmitter.off("plugin:".concat(o, ":ready"), u);
  4430. };
  4431. f.eventEmitter.on("plugin:".concat(o, ":ready"), u);
  4432. });
  4433. }, l;
  4434. }();
  4435. t.PluginSystem = p;
  4436. }, 85605: function(_, t, e) {
  4437. Object.defineProperty(t, "__esModule", { value: !0 }), t.Plugin = void 0;
  4438. var n = e(20255), m = e(56562), h = e(43441), f = e(40332), d = function(a) {
  4439. function s(c) {
  4440. var p = a.call(this, c) || this;
  4441. return p.requires = [], p.buttons = [], p.hasStyle = !1, c.e.on("afterPluginSystemInit", function() {
  4442. var l;
  4443. (0, f.isJoditObject)(c) && ((l = p.buttons) === null || l === void 0 || l.forEach(function(o) {
  4444. c.registerButton(o);
  4445. }));
  4446. }).on("afterInit", function() {
  4447. p.setStatus(m.STATUSES.ready), p.afterInit(c);
  4448. }).on("beforeDestruct", p.destruct), p;
  4449. }
  4450. return n.__extends(s, a), s.prototype.className = function() {
  4451. return "";
  4452. }, s.prototype.init = function(c) {
  4453. }, s.prototype.destruct = function() {
  4454. var c, p, l;
  4455. if (this.isReady) {
  4456. this.setStatus(m.STATUSES.beforeDestruct);
  4457. var o = this.j;
  4458. (0, f.isJoditObject)(o) && ((c = this.buttons) === null || c === void 0 || c.forEach(function(r) {
  4459. o == null || o.unregisterButton(r);
  4460. })), (l = (p = this.j) === null || p === void 0 ? void 0 : p.events) === null || l === void 0 || l.off("beforeDestruct", this.destruct), this.beforeDestruct(this.j), a.prototype.destruct.call(this);
  4461. }
  4462. }, n.__decorate([h.autobind], s.prototype, "destruct", null), s;
  4463. }(m.ViewComponent);
  4464. t.Plugin = d;
  4465. }, 9917: function(_, t, e) {
  4466. Object.defineProperty(t, "__esModule", { value: !0 }), t.Ajax = void 0;
  4467. var n = e(20255), m = e(93166), h = e(40332), f = e(56964), d = e(86101), a = e(22630), s = e(43441);
  4468. e(12144);
  4469. var c = function() {
  4470. function p(l, o) {
  4471. o === void 0 && (o = m.Config.prototype.defaultAjaxOptions), this.__async = new a.Async(), this.__isFulfilled = !1, this.__activated = !1, this.__isDestructed = !1, this.options = (0, h.ConfigProto)(l || {}, o), this.xhr = this.o.xhr ? this.o.xhr() : new XMLHttpRequest();
  4472. }
  4473. return p.prototype.__buildParams = function(l, o) {
  4474. return (0, h.isPlainObject)(l) && this.options.contentType && this.options.contentType.includes("application/json") ? JSON.stringify(l) : (0, h.isFunction)(this.o.queryBuild) ? this.o.queryBuild.call(this, l, o) : (0, h.isString)(l) || l instanceof window.FormData || typeof l == "object" && l != null && (0, h.isFunction)(l.append) ? l : (0, h.buildQuery)(l);
  4475. }, Object.defineProperty(p.prototype, "o", { get: function() {
  4476. return this.options;
  4477. }, enumerable: !1, configurable: !0 }), p.prototype.abort = function() {
  4478. if (this.__isFulfilled) return this;
  4479. try {
  4480. this.__isFulfilled = !0, this.xhr.abort();
  4481. } catch (l) {
  4482. }
  4483. return this;
  4484. }, p.prototype.send = function() {
  4485. var l = this;
  4486. this.__activated = !0;
  4487. var o = this.xhr, r = this.o, i = this.prepareRequest();
  4488. return this.__async.promise(function(u, v) {
  4489. return n.__awaiter(l, void 0, void 0, function() {
  4490. var y, g, b, w, C, S = this;
  4491. return n.__generator(this, function(j) {
  4492. switch (j.label) {
  4493. case 0:
  4494. return y = function() {
  4495. S.__isFulfilled = !0, v(f.connection("Connection error"));
  4496. }, o.onload = g = function() {
  4497. S.__isFulfilled = !0, u(new d.Response(i, o.status, o.statusText, o.responseType ? o.response : o.responseText));
  4498. }, o.onabort = function() {
  4499. S.__isFulfilled = !0, v(f.abort("Abort connection"));
  4500. }, o.onerror = y, o.ontimeout = y, r.responseType && (o.responseType = r.responseType), o.onprogress = function(E) {
  4501. var x, k, I = 0;
  4502. E.lengthComputable && (I = E.loaded / E.total * 100), (k = (x = S.options).onProgress) === null || k === void 0 || k.call(x, I);
  4503. }, o.onreadystatechange = function() {
  4504. var E, x;
  4505. (x = (E = S.options).onProgress) === null || x === void 0 || x.call(E, 10), o.readyState === XMLHttpRequest.DONE && (r.successStatuses.includes(o.status) ? g() : o.statusText && (S.__isFulfilled = !0, v(f.connection(o.statusText))));
  4506. }, o.withCredentials = (C = r.withCredentials) !== null && C !== void 0 && C, b = i.data, o.open(i.method, i.url, !0), r.contentType && o.setRequestHeader && o.setRequestHeader("Content-type", r.contentType), (0, h.isFunction)(w = r.headers) ? [4, w.call(this)] : [3, 2];
  4507. case 1:
  4508. w = j.sent(), j.label = 2;
  4509. case 2:
  4510. return w && o.setRequestHeader && Object.keys(w).forEach(function(E) {
  4511. o.setRequestHeader(E, w[E]);
  4512. }), this.__async.setTimeout(function() {
  4513. o.send(b ? S.__buildParams(b) : void 0);
  4514. }, 0), [2];
  4515. }
  4516. });
  4517. });
  4518. });
  4519. }, p.prototype.prepareRequest = function() {
  4520. if (!this.o.url) throw f.error("Need URL for AJAX request");
  4521. var l = this.o.url, o = this.o.data, r = (this.o.method || "get").toLowerCase();
  4522. if (r === "get" && o && (0, h.isPlainObject)(o)) {
  4523. var i = l.indexOf("?");
  4524. if (i !== -1) {
  4525. var u = (0, h.parseQuery)(l);
  4526. l = l.substring(0, i) + "?" + (0, h.buildQuery)(n.__assign(n.__assign({}, u), o));
  4527. } else l += "?" + (0, h.buildQuery)(this.o.data);
  4528. }
  4529. var v = { url: l, method: r, data: o };
  4530. return p.log.splice(100), p.log.push(v), v;
  4531. }, p.prototype.destruct = function() {
  4532. this.__isDestructed || (this.__isDestructed = !0, this.__activated && !this.__isFulfilled && (this.abort(), this.__isFulfilled = !0), this.__async.destruct());
  4533. }, p.log = [], n.__decorate([s.autobind], p.prototype, "destruct", null), p;
  4534. }();
  4535. t.Ajax = c;
  4536. }, 12144: function(_, t, e) {
  4537. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.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: function() {
  4538. return new XMLHttpRequest();
  4539. } };
  4540. }, 30056: function(_, t, e) {
  4541. Object.defineProperty(t, "__esModule", { value: !0 });
  4542. var n = e(20255);
  4543. n.__exportStar(e(9917), t), n.__exportStar(e(86101), t);
  4544. }, 86101: function(_, t, e) {
  4545. Object.defineProperty(t, "__esModule", { value: !0 }), t.Response = void 0;
  4546. var n = e(20255), m = function() {
  4547. function h(f, d, a, s) {
  4548. this.request = f, this.status = d, this.statusText = a, this.body = s;
  4549. }
  4550. return Object.defineProperty(h.prototype, "url", { get: function() {
  4551. return this.request.url;
  4552. }, enumerable: !1, configurable: !0 }), h.prototype.json = function() {
  4553. return n.__awaiter(this, void 0, Promise, function() {
  4554. return n.__generator(this, function(f) {
  4555. return [2, JSON.parse(this.body)];
  4556. });
  4557. });
  4558. }, h.prototype.text = function() {
  4559. return Promise.resolve(this.body);
  4560. }, h.prototype.blob = function() {
  4561. return n.__awaiter(this, void 0, Promise, function() {
  4562. return n.__generator(this, function(f) {
  4563. return [2, this.body];
  4564. });
  4565. });
  4566. }, h;
  4567. }();
  4568. t.Response = m;
  4569. }, 10109: function(_, t, e) {
  4570. Object.defineProperty(t, "__esModule", { value: !0 });
  4571. var n = e(20255);
  4572. n.__exportStar(e(287), t), n.__exportStar(e(10264), t);
  4573. }, 287: function(_, t, e) {
  4574. Object.defineProperty(t, "__esModule", { value: !0 }), t.moveNodeInsideStart = void 0;
  4575. var n = e(64968), m = e(86893);
  4576. t.moveNodeInsideStart = function(h, f, d) {
  4577. for (var a = n.Dom.findSibling(f, d), s = n.Dom.findSibling(f, !d); n.Dom.isElement(a) && !n.Dom.isTag(a, m.INSEPARABLE_TAGS) && n.Dom.isContentEditable(a, h.editor) && (!s || !n.Dom.closest(f, n.Dom.isElement, h.editor)); ) d || !a.firstChild ? a.appendChild(f) : n.Dom.before(a.firstChild, f), a = n.Dom.sibling(f, d), s = n.Dom.sibling(f, !d);
  4578. };
  4579. }, 10264: function(_, t, e) {
  4580. Object.defineProperty(t, "__esModule", { value: !0 }), t.moveTheNodeAlongTheEdgeOutward = void 0;
  4581. var n = e(64968);
  4582. t.moveTheNodeAlongTheEdgeOutward = function(m, h, f) {
  4583. for (var d = m; d && d !== f; ) {
  4584. if (n.Dom.findSibling(d, h)) return;
  4585. (d = d.parentElement) && d !== f && (h ? n.Dom.before(d, m) : n.Dom.after(d, m));
  4586. }
  4587. };
  4588. }, 2123: function(_, t, e) {
  4589. Object.defineProperty(t, "__esModule", { value: !0 });
  4590. var n = e(20255);
  4591. n.__exportStar(e(70851), t), n.__exportStar(e(77627), t);
  4592. }, 2047: function() {
  4593. }, 77627: function(_, t, e) {
  4594. Object.defineProperty(t, "__esModule", { value: !0 }), t.Select = void 0;
  4595. var n = e(20255), m = e(86893), h = e(86893), f = e(64968), d = e(40332), a = e(70851), s = e(43441), c = e(10109), p = (e(52378), e(10172));
  4596. e(2047);
  4597. var l = function() {
  4598. function o(r) {
  4599. var i = this;
  4600. this.jodit = r, r.e.on("removeMarkers", function() {
  4601. i.removeMarkers();
  4602. });
  4603. }
  4604. return Object.defineProperty(o.prototype, "j", { get: function() {
  4605. return this.jodit;
  4606. }, enumerable: !1, configurable: !0 }), o.prototype.errorNode = function(r) {
  4607. if (!f.Dom.isNode(r)) throw (0, d.error)("Parameter node must be instance of Node");
  4608. }, Object.defineProperty(o.prototype, "area", { get: function() {
  4609. return this.j.editor;
  4610. }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "win", { get: function() {
  4611. return this.j.ew;
  4612. }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "doc", { get: function() {
  4613. return this.j.ed;
  4614. }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "sel", { get: function() {
  4615. return this.j.o.shadowRoot && (0, p.isFunction)(this.j.o.shadowRoot.getSelection) ? this.j.o.shadowRoot.getSelection() : this.win.getSelection();
  4616. }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "range", { get: function() {
  4617. var r = this.sel;
  4618. return r && r.rangeCount ? r.getRangeAt(0) : this.createRange();
  4619. }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "isInsideArea", { get: function() {
  4620. var r = this.sel, i = r != null && r.rangeCount ? r.getRangeAt(0) : null;
  4621. return !(!i || !f.Dom.isOrContains(this.area, i.startContainer));
  4622. }, enumerable: !1, configurable: !0 }), o.prototype.createRange = function(r) {
  4623. r === void 0 && (r = !1);
  4624. var i = this.doc.createRange();
  4625. return r && this.selectRange(i), i;
  4626. }, o.prototype.remove = function() {
  4627. var r = this.sel, i = this.current();
  4628. if (r && i) for (var u = 0; r.rangeCount > u; u += 1) r.getRangeAt(u).deleteContents(), r.getRangeAt(u).collapse(!0);
  4629. }, o.prototype.clear = function() {
  4630. var r, i;
  4631. !((r = this.sel) === null || r === void 0) && r.rangeCount && ((i = this.sel) === null || i === void 0 || i.removeAllRanges());
  4632. }, o.prototype.removeNode = function(r) {
  4633. if (!f.Dom.isOrContains(this.j.editor, r, !0)) throw (0, d.error)("Selection.removeNode can remove only editor's children");
  4634. f.Dom.safeRemove(r), this.j.e.fire("afterRemoveNode", r);
  4635. }, o.prototype.insertCursorAtPoint = function(r, i) {
  4636. var u = this;
  4637. this.removeMarkers();
  4638. try {
  4639. var v = this.createRange();
  4640. return function() {
  4641. if (u.doc.caretPositionFromPoint && (y = u.doc.caretPositionFromPoint(r, i))) v.setStart(y.offsetNode, y.offset);
  4642. else if (u.doc.caretRangeFromPoint) {
  4643. var y = u.doc.caretRangeFromPoint(r, i);
  4644. v.setStart(y.startContainer, y.startOffset);
  4645. }
  4646. }(), v.collapse(!0), this.selectRange(v), !0;
  4647. } catch (y) {
  4648. }
  4649. return !1;
  4650. }, Object.defineProperty(o.prototype, "hasMarkers", { get: function() {
  4651. return !!this.markers.length;
  4652. }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "markers", { get: function() {
  4653. return (0, d.$$)("span[data-" + m.MARKER_CLASS + "]", this.area);
  4654. }, enumerable: !1, configurable: !0 }), o.prototype.removeMarkers = function() {
  4655. f.Dom.safeRemove.apply(null, this.markers);
  4656. }, o.prototype.marker = function(r, i) {
  4657. r === void 0 && (r = !1);
  4658. var u = null;
  4659. i && (u = i.cloneRange()).collapse(r);
  4660. var v = this.j.createInside.span();
  4661. return v.id = m.MARKER_CLASS + "_" + Number(/* @__PURE__ */ new Date()) + "_" + String(Math.random()).slice(2), v.style.lineHeight = "0", v.style.display = "none", f.Dom.markTemporary(v), (0, d.attr)(v, "data-" + m.MARKER_CLASS, r ? "start" : "end"), v.appendChild(this.j.createInside.text(m.INVISIBLE_SPACE)), u && f.Dom.isOrContains(this.area, r ? u.startContainer : u.endContainer) && u.insertNode(v), v;
  4662. }, o.prototype.restore = function() {
  4663. var r = !1, i = function(g) {
  4664. return "span[data-".concat(m.MARKER_CLASS, "=").concat(g ? "start" : "end", "]");
  4665. }, u = this.area.querySelector(i(!0)), v = this.area.querySelector(i(!1));
  4666. if (u) {
  4667. if (r = this.createRange(), v) r.setStartAfter(u), f.Dom.safeRemove(u), r.setEndBefore(v), f.Dom.safeRemove(v);
  4668. else {
  4669. var y = u.previousSibling;
  4670. f.Dom.isText(y) ? r.setStart(y, y.nodeValue ? y.nodeValue.length : 0) : r.setStartBefore(u), f.Dom.safeRemove(u), r.collapse(!0);
  4671. }
  4672. r && this.selectRange(r);
  4673. }
  4674. }, o.prototype.save = function(r) {
  4675. if (r === void 0 && (r = !1), this.hasMarkers) return [];
  4676. var i = this.sel;
  4677. if (!i || !i.rangeCount) return [];
  4678. for (var u = [], v = i.rangeCount, y = [], g = 0; v > g; g += 1) if (y[g] = i.getRangeAt(g), y[g].collapsed) {
  4679. var b = this.marker(!0, y[g]);
  4680. u[g] = { startId: b.id, collapsed: !0, startMarker: b.outerHTML };
  4681. } else {
  4682. b = this.marker(!0, y[g]);
  4683. var w = this.marker(!1, y[g]);
  4684. u[g] = { startId: b.id, endId: w.id, collapsed: !1, startMarker: b.outerHTML, endMarker: w.outerHTML };
  4685. }
  4686. if (!r) for (i.removeAllRanges(), g = v - 1; g >= 0; --g) {
  4687. var C = this.doc.getElementById(u[g].startId);
  4688. if (C) {
  4689. if (u[g].collapsed) y[g].setStartAfter(C), y[g].collapse(!0);
  4690. else if (y[g].setStartBefore(C), u[g].endId) {
  4691. var S = this.doc.getElementById(u[g].endId);
  4692. S && y[g].setEndAfter(S);
  4693. }
  4694. }
  4695. try {
  4696. i.addRange(y[g].cloneRange());
  4697. } catch (j) {
  4698. }
  4699. }
  4700. return u;
  4701. }, o.prototype.focus = function(r) {
  4702. var i, u;
  4703. if (r === void 0 && (r = { preventScroll: !0 }), !this.isFocused()) {
  4704. var v = (0, d.getScrollParent)(this.j.container), y = v == null ? void 0 : v.scrollTop;
  4705. this.j.iframe && this.doc.readyState === "complete" && this.j.iframe.focus(r), this.win.focus(), this.area.focus(r), y && (v != null && v.scrollTo) && v.scrollTo(0, y);
  4706. var g = this.sel, b = g != null && g.rangeCount ? g == null ? void 0 : g.getRangeAt(0) : null;
  4707. if (!b || !f.Dom.isOrContains(this.area, b.startContainer)) {
  4708. var w = this.createRange();
  4709. w.setStart(this.area, 0), w.collapse(!0), this.selectRange(w, !1);
  4710. }
  4711. return this.j.editorIsActive || (u = (i = this.j) === null || i === void 0 ? void 0 : i.events) === null || u === void 0 || u.fire("focus"), !0;
  4712. }
  4713. return !1;
  4714. }, o.prototype.isCollapsed = function() {
  4715. for (var r = this.sel, i = 0; r && r.rangeCount > i; i += 1) if (!r.getRangeAt(i).collapsed) return !1;
  4716. return !0;
  4717. }, o.prototype.isFocused = function() {
  4718. return this.doc.hasFocus && this.doc.hasFocus() && this.area === this.doc.activeElement;
  4719. }, o.prototype.current = function(r) {
  4720. if (r === void 0 && (r = !0), this.j.getRealMode() === m.MODE_WYSIWYG) {
  4721. var i = this.sel;
  4722. if (!i || i.rangeCount === 0) return null;
  4723. var u = i.getRangeAt(0), v = u.startContainer, y = !1, g = function(S) {
  4724. return y ? S.lastChild : S.firstChild;
  4725. };
  4726. if (f.Dom.isTag(v, "br") && i.isCollapsed) return v;
  4727. if (!f.Dom.isText(v)) {
  4728. if ((v = u.startContainer.childNodes[u.startOffset]) || (v = u.startContainer.childNodes[u.startOffset - 1], y = !0), v && i.isCollapsed && !f.Dom.isText(v)) {
  4729. if (!y && f.Dom.isText(v.previousSibling)) v = v.previousSibling;
  4730. else if (r) for (var b = g(v); b; ) {
  4731. if (b && f.Dom.isText(b)) {
  4732. v = b;
  4733. break;
  4734. }
  4735. b = g(b);
  4736. }
  4737. }
  4738. if (v && !i.isCollapsed && !f.Dom.isText(v)) {
  4739. var w = v, C = v;
  4740. do
  4741. w = w.firstChild, C = C.lastChild;
  4742. while (w && C && !f.Dom.isText(w));
  4743. w === C && w && f.Dom.isText(w) && (v = w);
  4744. }
  4745. }
  4746. if (v && f.Dom.isOrContains(this.area, v)) return v;
  4747. }
  4748. return null;
  4749. }, o.prototype.insertNode = function(r, i, u) {
  4750. var v = this;
  4751. i === void 0 && (i = !0), u === void 0 && (u = !0), this.errorNode(r), this.j.e.fire("safeHTML", r), !this.isFocused() && this.j.isEditorMode() && (this.focus(), this.restore());
  4752. var y = this.sel;
  4753. this.j.history.snapshot.transaction(function() {
  4754. var g;
  4755. if (v.isCollapsed() || v.j.execCommand("Delete"), v.j.e.fire("beforeInsertNode", r), y && y.rangeCount) {
  4756. var b = y.getRangeAt(0);
  4757. f.Dom.isOrContains(v.area, b.commonAncestorContainer) ? f.Dom.isTag(b.startContainer, h.INSEPARABLE_TAGS) && b.collapsed ? (g = b.startContainer.parentNode) === null || g === void 0 || g.insertBefore(r, b.startContainer) : f.Dom.safeInsertNode(b, r) : v.area.appendChild(r);
  4758. } else v.area.appendChild(r);
  4759. i && (r.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? r.lastChild && v.setCursorAfter(r.lastChild) : v.setCursorAfter(r));
  4760. }), u && this.j.events && this.j.__imdSynchronizeValues(), this.j.events && this.j.e.fire("afterInsertNode", r);
  4761. }, o.prototype.insertHTML = function(r, i) {
  4762. if (i === void 0 && (i = !0), r !== "") {
  4763. var u, v = this.j.createInside.div(), y = this.j.createInside.fragment();
  4764. if (!this.isFocused() && this.j.isEditorMode() && (this.focus(), this.restore()), f.Dom.isNode(r) ? v.appendChild(r) : v.innerHTML = r.toString(), (this.j.isEditorMode() || this.j.e.fire("insertHTML", v.innerHTML) !== !1) && (u = v.lastChild)) {
  4765. for (; v.firstChild; ) u = v.firstChild, y.appendChild(v.firstChild);
  4766. this.insertNode(y.firstChild && y.firstChild === y.lastChild ? y.lastChild : y, !1, !1), i && (u ? this.setCursorAfter(u) : this.setCursorIn(y)), this.j.__imdSynchronizeValues();
  4767. }
  4768. }
  4769. }, o.prototype.insertImage = function(r, i, u) {
  4770. i === void 0 && (i = null), u === void 0 && (u = null);
  4771. var v = (0, p.isString)(r) ? this.j.createInside.element("img") : r;
  4772. if ((0, p.isString)(r) && v.setAttribute("src", r), u != null) {
  4773. var y = u.toString();
  4774. y && y !== "auto" && 0 > String(y).indexOf("px") && 0 > String(y).indexOf("%") && (y += "px"), (0, d.call)(this.j.o.resizer.forImageChangeAttributes ? d.attr : d.css, v, "width", y);
  4775. }
  4776. i && typeof i == "object" && (0, d.css)(v, i);
  4777. var g = function() {
  4778. (v.offsetHeight > v.naturalHeight || v.offsetWidth > v.naturalWidth) && (v.style.width = "", v.style.height = ""), v.removeEventListener("load", g);
  4779. };
  4780. this.j.e.on(v, "load", g), v.complete && g(), this.insertNode(v), this.j.e.fire("afterInsertImage", v);
  4781. }, o.prototype.eachSelection = function(r) {
  4782. var i, u = this, v = this.sel;
  4783. if (v && v.rangeCount) {
  4784. var y = v.getRangeAt(0), g = y.commonAncestorContainer;
  4785. f.Dom.isHTMLElement(g) || (g = g.parentElement);
  4786. var b = [], w = y.startOffset, C = g.childNodes.length, S = y.startContainer === this.area ? g.childNodes[C > w ? w : C - 1] : y.startContainer, j = y.endContainer === this.area ? g.childNodes[y.endOffset - 1] : y.endContainer;
  4787. f.Dom.isText(S) && S === y.startContainer && y.startOffset === ((i = S.nodeValue) === null || i === void 0 ? void 0 : i.length) && S.nextSibling && (S = S.nextSibling), f.Dom.isText(j) && j === y.endContainer && y.endOffset === 0 && j.previousSibling && (j = j.previousSibling);
  4788. var E = function(k) {
  4789. !k || k === g || f.Dom.isEmptyTextNode(k) || (0, p.isMarker)(k) || b.push(k);
  4790. };
  4791. E(S), S !== j && f.Dom.isOrContains(g, S, !0) && f.Dom.find(S, function(k) {
  4792. return E(k), k === j || k && k.contains && k.contains(j);
  4793. }, g, !0, !1);
  4794. var x = function(k) {
  4795. if (f.Dom.isOrContains(u.j.editor, k, !0)) {
  4796. if (k.nodeName.match(/^(UL|OL)$/)) return (0, d.toArray)(k.childNodes).forEach(x);
  4797. if (f.Dom.isTag(k, "li")) if (k.firstChild) k = k.firstChild;
  4798. else {
  4799. var I = u.j.createInside.text(h.INVISIBLE_SPACE);
  4800. k.appendChild(I), k = I;
  4801. }
  4802. r(k);
  4803. }
  4804. };
  4805. b.length === 0 && f.Dom.isEmptyTextNode(S) && b.push(S), b.length === 0 && S.firstChild && b.push(S.firstChild), b.forEach(x);
  4806. }
  4807. }, o.prototype.cursorInTheEdge = function(r, i, u) {
  4808. var v, y, g = this;
  4809. u === void 0 && (u = null);
  4810. var b = !r, w = (v = this.sel) === null || v === void 0 ? void 0 : v.getRangeAt(0);
  4811. if (u != null || (u = this.current(!1)), !w || !u || !f.Dom.isOrContains(i, u, !0)) return null;
  4812. var C = r ? w.startContainer : w.endContainer, S = r ? w.startOffset : w.endOffset, j = function(T) {
  4813. return !!(T && !f.Dom.isTag(T, "br") && !f.Dom.isEmptyTextNode(T) && !f.Dom.isTemporary(T) && !(f.Dom.isElement(T) && g.j.e.fire("isInvisibleForCursor", T) === !0));
  4814. };
  4815. if (f.Dom.isText(C)) {
  4816. var E = !((y = C.nodeValue) === null || y === void 0) && y.length ? C.nodeValue : "";
  4817. if (b && E.replace((0, h.INVISIBLE_SPACE_REG_EXP_END)(), "").length > S) return !1;
  4818. var x = (0, h.INVISIBLE_SPACE_REG_EXP_START)().exec(E);
  4819. if (r && (x && S > x[0].length || !x && S > 0)) return !1;
  4820. } else {
  4821. var k = (0, d.toArray)(C.childNodes);
  4822. if (b) {
  4823. if (k.slice(S).some(j)) return !1;
  4824. } else if (k.slice(0, S).some(j)) return !1;
  4825. }
  4826. for (var I = u; I && I !== i; ) {
  4827. var M = f.Dom.sibling(I, r);
  4828. if (M) {
  4829. if ((I = M) && j(I)) return !1;
  4830. } else I = I.parentNode;
  4831. }
  4832. return !0;
  4833. }, o.prototype.cursorOnTheLeft = function(r, i) {
  4834. return this.cursorInTheEdge(!0, r, i);
  4835. }, o.prototype.cursorOnTheRight = function(r, i) {
  4836. return this.cursorInTheEdge(!1, r, i);
  4837. }, o.prototype.setCursorAfter = function(r) {
  4838. return this.setCursorNearWith(r, !1);
  4839. }, o.prototype.setCursorBefore = function(r) {
  4840. return this.setCursorNearWith(r, !0);
  4841. }, o.prototype.setCursorNearWith = function(r, i) {
  4842. var u, v, y = this;
  4843. if (this.errorNode(r), !f.Dom.up(r, function(w) {
  4844. return w === y.area || w && w.parentNode === y.area;
  4845. }, this.area)) throw (0, d.error)("Node element must be in editor");
  4846. var g = this.createRange(), b = null;
  4847. return f.Dom.isText(r) ? i ? g.setStart(r, 0) : g.setEnd(r, (v = (u = r.nodeValue) === null || u === void 0 ? void 0 : u.length) !== null && v !== void 0 ? v : 0) : (b = this.j.createInside.text(m.INVISIBLE_SPACE), i ? g.setStartBefore(r) : g.setEndAfter(r), g.collapse(i), f.Dom.safeInsertNode(g, b), g.selectNode(b)), g.collapse(i), this.selectRange(g), b;
  4848. }, o.prototype.setCursorIn = function(r, i) {
  4849. var u = this;
  4850. if (i === void 0 && (i = !1), this.errorNode(r), !f.Dom.up(r, function(w) {
  4851. return w === u.area || w && w.parentNode === u.area;
  4852. }, this.area)) throw (0, d.error)("Node element must be in editor");
  4853. var v = this.createRange(), y = r, g = r;
  4854. do {
  4855. if (f.Dom.isText(y)) break;
  4856. g = y, y = i ? y.firstChild : y.lastChild;
  4857. } while (y);
  4858. if (!y) {
  4859. var b = this.j.createInside.text(m.INVISIBLE_SPACE);
  4860. /^(img|br|input)$/i.test(g.nodeName) ? y = g : (g.appendChild(b), g = b);
  4861. }
  4862. return v.selectNodeContents(y || g), v.collapse(i), this.selectRange(v), g;
  4863. }, o.prototype.selectRange = function(r, i) {
  4864. i === void 0 && (i = !0);
  4865. var u = this.sel;
  4866. return i && !this.isFocused() && this.focus(), u && (u.removeAllRanges(), u.addRange(r)), this.j.e.fire("changeSelection"), this;
  4867. }, o.prototype.select = function(r, i) {
  4868. var u = this;
  4869. if (i === void 0 && (i = !1), this.errorNode(r), !f.Dom.up(r, function(y) {
  4870. return y === u.area || y && y.parentNode === u.area;
  4871. }, this.area)) throw (0, d.error)("Node element must be in editor");
  4872. var v = this.createRange();
  4873. return v[i ? "selectNodeContents" : "selectNode"](r), this.selectRange(v);
  4874. }, Object.defineProperty(o.prototype, "html", { get: function() {
  4875. var r = this.sel;
  4876. if (r && r.rangeCount > 0) {
  4877. var i = r.getRangeAt(0).cloneContents(), u = this.j.createInside.div();
  4878. return u.appendChild(i), u.innerHTML;
  4879. }
  4880. return "";
  4881. }, enumerable: !1, configurable: !0 }), o.prototype.wrapInTagGen = function() {
  4882. var r, i, u, v, y, g, b, w, C, S, j;
  4883. return n.__generator(this, function(E) {
  4884. switch (E.label) {
  4885. case 0:
  4886. return this.isCollapsed() ? (g = this.jodit.createInside.element("font", h.INVISIBLE_SPACE), this.insertNode(g, !1, !1), r = n.__read(this.markers, 1), (i = r[0]) ? g.appendChild(i) : (this.setCursorIn(g), this.save()), [4, g]) : [3, 2];
  4887. case 1:
  4888. return E.sent(), f.Dom.unwrap(g), [2];
  4889. case 2:
  4890. (0, d.$$)("*[style*=font-size]", this.area).forEach(function(x) {
  4891. return (0, d.attr)(x, "data-font-size", x.style.fontSize.toString());
  4892. }), this.isCollapsed() ? (g = this.j.createInside.element("font"), (0, d.attr)(g, "size", 7), this.insertNode(g, !1, !1)) : this.j.nativeExecCommand("fontsize", !1, "7"), (0, d.$$)("*[data-font-size]", this.area).forEach(function(x) {
  4893. var k = (0, d.attr)(x, "data-font-size");
  4894. k && (x.style.fontSize = k, (0, d.attr)(x, "data-font-size", null));
  4895. }), u = (0, d.$$)('font[size="7"]', this.area), E.label = 3;
  4896. case 3:
  4897. E.trys.push([3, 8, 9, 10]), v = n.__values(u), y = v.next(), E.label = 4;
  4898. case 4:
  4899. return y.done ? [3, 7] : (w = (g = y.value).lastChild, (b = g.firstChild) && b === w && (0, p.isMarker)(b) ? (f.Dom.unwrap(g), [3, 6]) : (b && (0, p.isMarker)(b) && f.Dom.before(g, b), w && (0, p.isMarker)(w) && f.Dom.after(g, w), [4, g]));
  4900. case 5:
  4901. E.sent(), f.Dom.unwrap(g), E.label = 6;
  4902. case 6:
  4903. return y = v.next(), [3, 4];
  4904. case 7:
  4905. return [3, 10];
  4906. case 8:
  4907. return C = E.sent(), S = { error: C }, [3, 10];
  4908. case 9:
  4909. try {
  4910. y && !y.done && (j = v.return) && j.call(v);
  4911. } finally {
  4912. if (S) throw S.error;
  4913. }
  4914. return [7];
  4915. case 10:
  4916. return [2];
  4917. }
  4918. });
  4919. }, o.prototype.wrapInTag = function(r) {
  4920. var i, u, v = [];
  4921. try {
  4922. for (var y = n.__values(this.wrapInTagGen()), g = y.next(); !g.done; g = y.next()) {
  4923. var b = g.value;
  4924. try {
  4925. if (b.firstChild && b.firstChild === b.lastChild && (0, p.isMarker)(b.firstChild)) continue;
  4926. (0, p.isFunction)(r) ? r(b) : v.push(f.Dom.replace(b, r, this.j.createInside));
  4927. } finally {
  4928. var w = b.parentNode;
  4929. w && (f.Dom.unwrap(b), f.Dom.isEmpty(w) && f.Dom.unwrap(w));
  4930. }
  4931. }
  4932. } catch (C) {
  4933. i = { error: C };
  4934. } finally {
  4935. try {
  4936. g && !g.done && (u = y.return) && u.call(y);
  4937. } finally {
  4938. if (i) throw i.error;
  4939. }
  4940. }
  4941. return v;
  4942. }, o.prototype.commitStyle = function(r) {
  4943. new a.CommitStyle(r).apply(this.j);
  4944. }, o.prototype.applyStyle = function(r, i) {
  4945. i === void 0 && (i = {}), this.commitStyle(n.__assign({ style: r }, i));
  4946. }, o.prototype.splitSelection = function(r, i) {
  4947. if (!this.isCollapsed()) return null;
  4948. var u = this.createRange(), v = this.range;
  4949. u.setStartBefore(r);
  4950. var y = this.cursorOnTheRight(r, i), g = this.cursorOnTheLeft(r, i), b = this.j.createInside.element("br"), w = this.j.createInside.fake(), C = w.cloneNode();
  4951. try {
  4952. if (y || g) {
  4953. i ? f.Dom.before(i, b) : f.Dom.safeInsertNode(v, b);
  4954. var S = function(I, M) {
  4955. for (var T = M(I); T; ) {
  4956. var O = M(T);
  4957. if (!T || !f.Dom.isTag(T, "br") && !f.Dom.isEmptyTextNode(T)) break;
  4958. f.Dom.safeRemove(T), T = O;
  4959. }
  4960. };
  4961. S(b, function(I) {
  4962. return I.nextSibling;
  4963. }), S(b, function(I) {
  4964. return I.previousSibling;
  4965. }), f.Dom.after(b, C), f.Dom.before(b, w), y ? (u.setEndBefore(b), v.setEndBefore(b)) : (u.setEndAfter(b), v.setEndAfter(b));
  4966. } else u.setEnd(v.startContainer, v.startOffset);
  4967. var j = u.extractContents(), E = function(I) {
  4968. return f.Dom.each(I, function(M) {
  4969. return f.Dom.isEmptyTextNode(M) && f.Dom.safeRemove(M);
  4970. });
  4971. };
  4972. try {
  4973. if (E(j), E(r), r.parentNode.insertBefore(j, r), !i && y && (b == null ? void 0 : b.parentNode)) {
  4974. var x = this.createRange();
  4975. x.setStartBefore(b), this.selectRange(x);
  4976. }
  4977. } catch (I) {
  4978. }
  4979. var k = function(I) {
  4980. var M, T, O;
  4981. ((M = I == null ? void 0 : I.parentNode) === null || M === void 0 ? void 0 : M.firstChild) === ((T = I == null ? void 0 : I.parentNode) === null || T === void 0 ? void 0 : T.lastChild) && ((O = I == null ? void 0 : I.parentNode) === null || O === void 0 || O.appendChild(b.cloneNode()));
  4982. };
  4983. k(w), k(C);
  4984. } finally {
  4985. f.Dom.safeRemove(w), f.Dom.safeRemove(C);
  4986. }
  4987. return r.previousElementSibling;
  4988. }, o.prototype.expandSelection = function() {
  4989. var r = this;
  4990. if (this.isCollapsed()) return this;
  4991. var i = this.range, u = i.cloneRange();
  4992. if (!f.Dom.isOrContains(this.j.editor, i.commonAncestorContainer, !0)) return this;
  4993. var v = function(x) {
  4994. var k = r.j.createInside.fake(), I = i.cloneRange();
  4995. return I.collapse(x), f.Dom.safeInsertNode(I, k), (0, c.moveTheNodeAlongTheEdgeOutward)(k, x, r.j.editor), k;
  4996. }, y = v(!0), g = v(!1);
  4997. u.setStartAfter(y), u.setEndBefore(g);
  4998. var b = f.Dom.findSibling(y, !1), w = f.Dom.findSibling(g, !0);
  4999. if (b !== w) {
  5000. var C = f.Dom.isElement(b) && f.Dom.isOrContains(b, g), S = !C && f.Dom.isElement(w) && f.Dom.isOrContains(w, y);
  5001. if (C || S) {
  5002. for (var j = C ? b : w, E = j; f.Dom.isElement(j); ) (j = C ? j.firstElementChild : j.lastElementChild) && f.Dom.isOrContains(j, C ? g : y) && (E = j);
  5003. C ? u.setStart(E, 0) : u.setEnd(E, E.childNodes.length);
  5004. }
  5005. }
  5006. return this.selectRange(u), f.Dom.safeRemove(y, g), this;
  5007. }, n.__decorate([s.autobind], o.prototype, "createRange", null), n.__decorate([s.autobind], o.prototype, "focus", null), n.__decorate([s.autobind], o.prototype, "setCursorAfter", null), n.__decorate([s.autobind], o.prototype, "setCursorBefore", null), n.__decorate([s.autobind], o.prototype, "setCursorIn", null), o;
  5008. }();
  5009. t.Select = l;
  5010. }, 77846: function(_, t, e) {
  5011. Object.defineProperty(t, "__esModule", { value: !0 }), t.extractSelectedPart = void 0;
  5012. var n = e(67309), m = e(33941), h = e(24263), f = e(37204);
  5013. function d(a, s, c) {
  5014. var p = s.extractContents();
  5015. p.textContent && (0, m.trim)(p.textContent).length || !p.firstChild || h.Dom.unwrap(p.firstChild), a.parentNode && (0, n.call)(c ? h.Dom.before : h.Dom.after, a, p);
  5016. }
  5017. t.extractSelectedPart = function(a, s, c) {
  5018. var p = c.s.createRange(), l = (0, f.isMarker)(s.previousSibling) ? s.previousSibling : s;
  5019. p.setStartBefore(a), p.setEndBefore(l), d(a, p, !0);
  5020. var o = (0, f.isMarker)(s.nextSibling) ? s.nextSibling : s;
  5021. p.setStartAfter(o), p.setEndAfter(a), d(a, p, !1);
  5022. };
  5023. }, 95901: function(_, t, e) {
  5024. Object.defineProperty(t, "__esModule", { value: !0 }), t.FiniteStateMachine = void 0, e(24421), e(603);
  5025. var n = function() {
  5026. function m(h, f) {
  5027. this.transitions = f, this.silent = !0, this.__previewsStates = /* @__PURE__ */ new Set(), this.setState(h);
  5028. }
  5029. return m.prototype.setState = function(h) {
  5030. this.__previewsStates.add(h), this.__state = h;
  5031. }, m.prototype.getState = function() {
  5032. return this.__state;
  5033. }, m.prototype.disableSilent = function() {
  5034. this.silent = !1;
  5035. }, m.prototype.dispatch = function(h, f) {
  5036. var d = this.transitions[this.getState()][h];
  5037. if (d) {
  5038. var a = d.call(this, f);
  5039. return this.setState(a.next), a;
  5040. }
  5041. throw new Error("invalid action: ".concat(this.getState(), ".").concat(h.toString()));
  5042. }, m;
  5043. }();
  5044. t.FiniteStateMachine = n;
  5045. }, 65774: function(_, t, e) {
  5046. Object.defineProperty(t, "__esModule", { value: !0 }), t.getSuitChild = void 0;
  5047. var n = e(24263), m = e(63150), h = e(74477);
  5048. t.getSuitChild = function(f, d) {
  5049. for (var a = d.firstChild; a && !(0, m.isNormalNode)(a); ) if (!(a = a.nextSibling)) return null;
  5050. return a && !n.Dom.next(a, m.isNormalNode, d) && (0, h.isSuitElement)(f, a, !1) ? a : null;
  5051. };
  5052. }, 66277: function(_, t, e) {
  5053. Object.defineProperty(t, "__esModule", { value: !0 }), t.getSuitParent = void 0;
  5054. var n = e(24263), m = e(63150), h = e(74477);
  5055. t.getSuitParent = function f(d, a, s) {
  5056. var c = a.parentNode;
  5057. return c === s || !n.Dom.isHTMLElement(c) || n.Dom.next(a, m.isNormalNode, c) || n.Dom.prev(a, m.isNormalNode, c) ? null : d.isElementCommit && d.elementIsBlock && !n.Dom.isBlock(c) ? f(d, c, s) : !(0, h.isSuitElement)(d, c, !1) || n.Dom.isBlock(c) && !d.elementIsBlock ? d.isElementCommit && !n.Dom.isBlock(c) ? f(d, c, s) : null : c;
  5058. };
  5059. }, 18387: function(_, t, e) {
  5060. Object.defineProperty(t, "__esModule", { value: !0 }), t.hasSameStyleKeys = t.hasSameStyle = void 0;
  5061. var n = e(26911), m = e(24021), h = e(49353), f = e(24263);
  5062. e(52378), t.hasSameStyle = function(d, a) {
  5063. return !!(!f.Dom.isTag(d, "font") && f.Dom.isHTMLElement(d) && Object.keys(a).every(function(s) {
  5064. var c = (0, n.css)(d, s, !0);
  5065. return c === "" && (a[s] === "" || a[s] == null) || !(0, m.isVoid)(c) && c !== "" && !(0, m.isVoid)(a[s]) && (0, h.normalizeCssValue)(s, a[s]).toString().toLowerCase() === c.toString().toLowerCase();
  5066. }));
  5067. }, document.createElement("div").style.color = "red", t.hasSameStyleKeys = function(d, a) {
  5068. return !!(!f.Dom.isTag(d, "font") && f.Dom.isHTMLElement(d) && Object.keys(a).every(function(s) {
  5069. var c = (0, n.css)(d, s, !0);
  5070. return !(0, m.isVoid)(c);
  5071. }));
  5072. };
  5073. }, 66162: function(_, t, e) {
  5074. Object.defineProperty(t, "__esModule", { value: !0 });
  5075. var n = e(20255);
  5076. n.__exportStar(e(93217), t), n.__exportStar(e(11651), t), n.__exportStar(e(29271), t), n.__exportStar(e(18387), t), n.__exportStar(e(77846), t), n.__exportStar(e(95901), t), n.__exportStar(e(65774), t), n.__exportStar(e(66277), t), n.__exportStar(e(76991), t), n.__exportStar(e(47508), t), n.__exportStar(e(63150), t), n.__exportStar(e(74477), t), n.__exportStar(e(26707), t), n.__exportStar(e(8298), t), n.__exportStar(e(6278), t);
  5077. }, 76991: function(_, t, e) {
  5078. Object.defineProperty(t, "__esModule", { value: !0 }), t.isInsideInvisibleElement = void 0;
  5079. var n = e(24263);
  5080. t.isInsideInvisibleElement = function(m, h) {
  5081. return !!n.Dom.closest(m, ["style", "script"], h);
  5082. };
  5083. }, 63150: function(_, t, e) {
  5084. Object.defineProperty(t, "__esModule", { value: !0 }), t.isNormalNode = void 0;
  5085. var n = e(24263), m = e(37204);
  5086. t.isNormalNode = function(h) {
  5087. return !!(h && !n.Dom.isEmptyTextNode(h) && !n.Dom.isTemporary(h) && !(0, m.isMarker)(h));
  5088. };
  5089. }, 47508: function(_, t, e) {
  5090. Object.defineProperty(t, "__esModule", { value: !0 }), t.elementsEqualAttributes = t.isSameAttributes = void 0;
  5091. var n = e(76502), m = e(16492), h = (e(52378), e(18387));
  5092. t.isSameAttributes = function(f, d) {
  5093. return !f.attributes.length && !(0, m.size)(d) || !(0, m.size)(d) || Object.keys(d).every(function(a) {
  5094. return a === "class" ? f.classList.contains(d[a]) : a === "style" ? (0, h.hasSameStyle)(f, d[a]) : (0, n.attr)(f, a) === d[a];
  5095. });
  5096. }, t.elementsEqualAttributes = function(f, d) {
  5097. return f.attributes.length === d.attributes.length && Array.from(f.attributes).every(function(a) {
  5098. return d.hasAttribute(a.name) && d.getAttribute(a.name) === a.value;
  5099. });
  5100. };
  5101. }, 74477: function(_, t, e) {
  5102. Object.defineProperty(t, "__esModule", { value: !0 }), t.isSameStyleChild = t.findSuitClosest = t.isSuitElement = void 0;
  5103. var n = e(24263), m = e(63150), h = e(18387);
  5104. function f(d, a, s) {
  5105. var c;
  5106. if (!a) return !1;
  5107. var p = d.element, l = d.elementIsDefault, o = d.options, r = !!(!((c = o.attributes) === null || c === void 0) && c.style && (0, h.hasSameStyle)(a, o.attributes.style)), i = a.nodeName.toLowerCase() === p || n.Dom.isTag(a, ["ul", "ol"]) && d.elementIsList;
  5108. return !((l && s || !i) && (!r || !(0, m.isNormalNode)(a) || d.elementIsList)) || !!(!i && !s && l && n.Dom.isInlineBlock(a));
  5109. }
  5110. t.isSuitElement = f, t.findSuitClosest = function(d, a, s) {
  5111. return n.Dom.closest(a, function(c) {
  5112. return f(d, c, !0);
  5113. }, s);
  5114. }, t.isSameStyleChild = function(d, a) {
  5115. var s, c, p = d.element, l = d.options;
  5116. if (!a || !(0, m.isNormalNode)(a)) return !1;
  5117. var o = a.nodeName.toLowerCase() === p, r = !!(!((s = l.attributes) === null || s === void 0) && s.style && (0, h.hasSameStyleKeys)(a, (c = l.attributes) === null || c === void 0 ? void 0 : c.style));
  5118. return o && r;
  5119. };
  5120. }, 11651: function(_, t, e) {
  5121. Object.defineProperty(t, "__esModule", { value: !0 }), t.toggleOrderedList = void 0;
  5122. var n = e(24263), m = (e(52378), e(77846)), h = e(70851), f = e(93217), d = e(66162);
  5123. function a(s, c, p, l, o) {
  5124. return l.e.fire("".concat(h._PREFIX, "BeforeUnwrapList"), s, c, o) || ((0, m.extractSelectedPart)(c, p, l), n.Dom.unwrap(p.parentElement), n.Dom.replace(p, l.o.enter, l.createInside));
  5125. }
  5126. t.toggleOrderedList = function(s, c, p, l) {
  5127. if (!c) return l;
  5128. var o = c.parentElement;
  5129. if (!o) return l;
  5130. var r = p.e.fire("".concat(h._PREFIX, "BeforeToggleList"), l, s, o);
  5131. if (r !== void 0) return r;
  5132. var i = p.e.fire.bind(p.e, "".concat(h._PREFIX, "AfterToggleList"));
  5133. if (l !== h.UNWRAP) {
  5134. var u = (0, f.toggleAttributes)(s, c.parentElement, p, h.INITIAL, !0) === h.CHANGE;
  5135. if (l === h.REPLACE || u || o.tagName.toLowerCase() !== s.element) {
  5136. var v = a(h.REPLACE, o, c, p, s), y = (0, d.wrapList)(s, v, p);
  5137. return i(h.REPLACE, y, s), h.REPLACE;
  5138. }
  5139. }
  5140. var g = a(h.UNWRAP, o, c, p, s);
  5141. return i(h.UNWRAP, g, s), h.UNWRAP;
  5142. };
  5143. }, 29271: function(_, t, e) {
  5144. Object.defineProperty(t, "__esModule", { value: !0 }), t.wrapList = void 0;
  5145. var n = e(64968), m = e(70851), h = e(66162);
  5146. t.wrapList = function(f, d, a) {
  5147. var s = a.e.fire("".concat(m._PREFIX, "BeforeWrapList"), m.REPLACE, d, f), c = s != null ? s : n.Dom.replace(d, "li", a.createInside), p = c.previousElementSibling, l = c.nextElementSibling, o = n.Dom.isTag(p, f.element) ? p : null;
  5148. return o != null || (o = n.Dom.isTag(l, f.element) ? l : null), n.Dom.isTag(o, ["ul", "ol"]) && (0, h.isSameAttributes)(o, f.options.attributes) || (o = a.createInside.element(f.element), (0, h.toggleAttributes)(f, o, a, m.INITIAL), n.Dom.before(c, o)), p === o ? n.Dom.append(o, c) : n.Dom.prepend(o, c), n.Dom.isTag(o.nextElementSibling, f.element) && (0, h.elementsEqualAttributes)(o, o.nextElementSibling) && (n.Dom.append(o, Array.from(o.nextElementSibling.childNodes)), n.Dom.safeRemove(o.nextElementSibling)), a.e.fire("".concat(m._PREFIX, "AfterWrapList"), m.WRAP, o, f), o;
  5149. };
  5150. }, 93217: function(_, t, e) {
  5151. Object.defineProperty(t, "__esModule", { value: !0 }), t.toggleAttributes = void 0;
  5152. var n = e(76502), m = e(26911), h = e(63122), f = e(11278), d = e(49353), a = e(16492), s = e(24263), c = e(70851), p = e(17332), l = (e(10172), "toggleAttributes");
  5153. function o(r, i, u) {
  5154. return (0, n.attr)(i, "style") || ((0, n.attr)(i, "style", null), i.tagName.toLowerCase() === r.defaultTag && (s.Dom.unwrap(i), u = c.UNWRAP)), u;
  5155. }
  5156. t.toggleAttributes = function(r, i, u, v, y) {
  5157. if (y === void 0 && (y = !1), !y && r.isApplied(i, l)) return v;
  5158. !y && r.setApplied(i, l);
  5159. var g = r.options.attributes;
  5160. return g && (0, a.size)(g) > 0 && Object.keys(g).forEach(function(b) {
  5161. var w = g[b];
  5162. switch (b) {
  5163. case "style":
  5164. v = function(C, S, j, E, x, k) {
  5165. return Object.keys(j).forEach(function(I) {
  5166. var M = E.style.getPropertyValue((0, f.kebabCase)(I)), T = j[I];
  5167. if (M !== "" || T != null) {
  5168. if (function(O, L, N) {
  5169. var H = O.create.element(L.tagName.toLowerCase());
  5170. H.style.cssText = L.style.cssText, function(F) {
  5171. var U;
  5172. if ((0, h.dataBind)(F, "shadowRoot") !== void 0) return (0, h.dataBind)(F, "shadowRoot");
  5173. var Y = (0, p.getContainer)(F), P = document.createElement("iframe");
  5174. (0, m.css)(P, { width: 0, height: 0, position: "absolute", border: 0 }), P.src = "about:blank", Y.appendChild(P);
  5175. var D = (U = P.contentWindow) === null || U === void 0 ? void 0 : U.document, z = D ? D.body : F.od.body;
  5176. return (0, h.dataBind)(F, "shadowRoot", z), z;
  5177. }(O).appendChild(H);
  5178. var q = (0, m.css)(H, N);
  5179. return s.Dom.safeRemove(H), q;
  5180. }(S, E, I) === (0, d.normalizeCssValue)(I, T))
  5181. return M ? (!x && (0, m.css)(E, I, null), void (k = o(C, E, k = c.UNSET))) : void 0;
  5182. k = c.CHANGE, x || ((0, m.css)(E, I, T), k = o(C, E, k));
  5183. }
  5184. }), k;
  5185. }(r, u, w, i, y, v);
  5186. break;
  5187. case "class":
  5188. v = function(C, S, j, E, x) {
  5189. var k = C.e.fire.bind(C.e, "".concat(c._PREFIX, "AfterToggleAttribute"));
  5190. return j.classList.contains(S.toString()) ? (E = c.UNSET, x || (j.classList.remove(S), j.classList.length === 0 && ((0, n.attr)(j, "class", null), k(E, j, "class", null)))) : (E = c.CHANGE, x || (j.classList.add(S), k(E, j, "class", S))), E;
  5191. }(u, w, i, v, y);
  5192. break;
  5193. default:
  5194. v = function(C, S, j, E, x, k) {
  5195. var I = C.e.fire.bind(C.e, "".concat(c._PREFIX, "AfterToggleAttribute"));
  5196. return (0, n.attr)(j, E) === S ? (!x && (0, n.attr)(j, E, null), k = c.UNSET, !x && I(k, j, E, S), k) : (k = c.CHANGE, x || ((0, n.attr)(j, E, S), I(k, j, E, S)), k);
  5197. }(u, w, i, b, y, v);
  5198. }
  5199. }), v;
  5200. };
  5201. }, 26707: function(_, t, e) {
  5202. Object.defineProperty(t, "__esModule", { value: !0 }), t.unwrapChildren = void 0;
  5203. var n = e(24263), m = e(40332), h = e(18387), f = e(74477);
  5204. t.unwrapChildren = function(d, a) {
  5205. var s, c, p = [], l = [], o = (s = d.options.attributes) === null || s === void 0 ? void 0 : s.style;
  5206. if (a.firstChild) for (var r = n.Dom.eachGen(a), i = r.next(), u = function() {
  5207. var v = i.value;
  5208. !(0, f.isSuitElement)(d, v, !0) || o && !(0, h.hasSameStyleKeys)(v, o) ? o && (0, f.isSameStyleChild)(d, v) ? (c === void 0 && (c = !1), l.push(function() {
  5209. (0, m.css)(v, Object.keys(o).reduce(function(y, g) {
  5210. return y[g] = null, y;
  5211. }, {})), (0, m.attr)(v, "style") || (0, m.attr)(v, "style", null), (0, m.attr)(v, "style") || v.nodeName.toLowerCase() !== d.element || p.push(v);
  5212. })) : n.Dom.isEmptyTextNode(v) || c === void 0 && (c = !1) : (c === void 0 && (c = !0), p.push(v)), i = r.next();
  5213. }; !i.done; ) u();
  5214. return l.forEach(function(v) {
  5215. return v();
  5216. }), p.forEach(n.Dom.unwrap), !!c;
  5217. };
  5218. }, 6278: function(_, t, e) {
  5219. Object.defineProperty(t, "__esModule", { value: !0 }), t.wrapUnwrappedText = void 0;
  5220. var n = e(24263), m = e(37204);
  5221. t.wrapUnwrappedText = function(h, f, d) {
  5222. var a = d.editor, s = d.createInside, c = function(u, v) {
  5223. v === void 0 && (v = "previousSibling");
  5224. for (var y = u, g = u; g && !(0, m.isMarker)(g) && !n.Dom.isTag(g, d.o.enter) && (y = g, g = g[v] ? g[v] : g.parentNode && !n.Dom.isBlock(g.parentNode) && g.parentNode !== a ? g.parentNode : null, !n.Dom.isBlock(g)); ) ;
  5225. return y;
  5226. }, p = c(f), l = c(f, "nextSibling"), o = d.s.createRange();
  5227. o.setStartBefore(p), o.setEndAfter(l);
  5228. var r = o.extractContents(), i = s.element(h.element);
  5229. return i.appendChild(r), n.Dom.safeInsertNode(o, i), h.elementIsBlock && n.Dom.isEmpty(i) && !n.Dom.isTag(i.firstElementChild, "br") && i.appendChild(s.element("br")), i;
  5230. };
  5231. }, 8298: function(_, t, e) {
  5232. Object.defineProperty(t, "__esModule", { value: !0 }), t.wrap = void 0;
  5233. var n = e(64968), m = e(6278), h = e(67309), f = e(29271);
  5234. t.wrap = function(d, a, s) {
  5235. var c = function(p, l, o) {
  5236. return p.elementIsBlock ? n.Dom.up(l, function(r) {
  5237. return n.Dom.isBlock(r) && !n.Dom.isTag(r, ["td", "th", "tr", "tbody", "table", "li", "ul", "ol"]);
  5238. }, o.editor) || (0, m.wrapUnwrappedText)(p, l, o) : ((0, h.attr)(l, "size", null), l);
  5239. }(d, a, s);
  5240. return d.elementIsList ? (0, f.wrapList)(d, c, s) : n.Dom.replace(c, d.element, s.createInside, !0);
  5241. };
  5242. }, 3097: function(_, t, e) {
  5243. Object.defineProperty(t, "__esModule", { value: !0 }), t.ApplyStyle = void 0;
  5244. var n = e(74504), m = e(66162), h = e(33090), f = e(70851);
  5245. t.ApplyStyle = function(d, a) {
  5246. var s = d.s, c = d.editor;
  5247. s.save(), (0, n.normalizeNode)(c.firstChild);
  5248. for (var p = d.s.wrapInTagGen(), l = p.next(), o = { mode: f.INITIAL, element: l.value, next: h.states.START, jodit: d, style: a }; l && !l.done; ) {
  5249. var r = new m.FiniteStateMachine(h.states.START, h.transactions);
  5250. for (o.element = l.value; r.getState() !== h.states.END; ) o = r.dispatch("exec", o);
  5251. l = p.next();
  5252. }
  5253. s.restore();
  5254. };
  5255. }, 70851: function(_, t, e) {
  5256. Object.defineProperty(t, "__esModule", { value: !0 }), t.CommitStyle = t._PREFIX = t.REPLACE = t.INITIAL = t.UNSET = t.CHANGE = t.UNWRAP = t.WRAP = void 0;
  5257. var n = e(86893), m = e(26596), h = e(3097);
  5258. t.WRAP = "wrap", t.UNWRAP = "unwrap", t.CHANGE = "change", t.UNSET = "unset", t.INITIAL = "initial", t.REPLACE = "replace", t._PREFIX = "commitStyle";
  5259. var f = function() {
  5260. function d(a) {
  5261. var s, c, p, l;
  5262. this.options = a, this.__applyMap = /* @__PURE__ */ new WeakMap(), a.attributes = (s = a.attributes, l = (c = this.options).className, (p = c.style) && (s ? s.style = p : s = { style: p }, delete this.options.style), l && (s ? s.class = l : s = { class: l }, delete this.options.className), s);
  5263. }
  5264. return d.prototype.isApplied = function(a, s) {
  5265. var c = this.__applyMap.get(a);
  5266. return !!c && c[s];
  5267. }, d.prototype.setApplied = function(a, s) {
  5268. var c, p = (c = this.__applyMap.get(a)) !== null && c !== void 0 ? c : {};
  5269. p[s] = !0, this.__applyMap.set(a, p);
  5270. }, Object.defineProperty(d.prototype, "elementIsList", { get: function() {
  5271. return !!(this.options.element && ["ul", "ol"].includes(this.options.element));
  5272. }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, "element", { get: function() {
  5273. return this.options.element || this.defaultTag;
  5274. }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, "elementIsBlock", { get: function() {
  5275. return !!(this.options.element && n.IS_BLOCK.test(this.options.element));
  5276. }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, "isElementCommit", { get: function() {
  5277. return !!(this.options.element && this.options.element !== this.options.defaultTag);
  5278. }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, "defaultTag", { get: function() {
  5279. return this.options.defaultTag ? this.options.defaultTag : this.elementIsBlock ? "p" : "span";
  5280. }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, "elementIsDefault", { get: function() {
  5281. return this.element === this.defaultTag;
  5282. }, enumerable: !1, configurable: !0 }), d.prototype.apply = function(a) {
  5283. var s = this.options.hooks;
  5284. try {
  5285. s && Object.keys(s).forEach(function(c) {
  5286. a.e.on((0, m.camelCase)(t._PREFIX + "_" + c), s[c]);
  5287. }), (0, h.ApplyStyle)(a, this);
  5288. } finally {
  5289. s && Object.keys(s).forEach(function(c) {
  5290. a.e.off((0, m.camelCase)(t._PREFIX + "_" + c), s[c]);
  5291. }), this.__applyMap = /* @__PURE__ */ new WeakMap();
  5292. }
  5293. }, d;
  5294. }();
  5295. t.CommitStyle = f;
  5296. }, 33090: function(_, t, e) {
  5297. var n;
  5298. Object.defineProperty(t, "__esModule", { value: !0 }), t.transactions = t.states = void 0;
  5299. var m = e(20255), h = e(2123), f = e(66162), d = e(64968), a = e(2123);
  5300. e(52378), t.states = { START: "START", ELEMENT: "ELEMENT", UNWRAP: "UNWRAP", UNWRAP_CHILDREN: "UNWRAP_CHILDREN", CHANGE: "CHANGE", REPLACE_DEFAULT: "REPLACE_DEFAULT", LIST: "LIST", TOGGLE_LIST: "TOGGLE_LIST", WRAP: "WRAP", EXTRACT: "EXTRACT", END: "END" }, t.transactions = ((n = {})[t.states.START] = { exec: function(s) {
  5301. var c = s.element, p = s.jodit, l = s.style, o = s.mode;
  5302. if ((0, f.isInsideInvisibleElement)(c, p.editor) || d.Dom.isEmptyContent(c)) return m.__assign(m.__assign({}, s), { next: t.states.END });
  5303. var r = (0, f.getSuitParent)(l, c, p.editor) || (0, f.getSuitChild)(l, c);
  5304. if (r) return m.__assign(m.__assign({}, s), { next: t.states.ELEMENT, element: r });
  5305. var i = (0, f.findSuitClosest)(l, c, p.editor);
  5306. return l.elementIsList && d.Dom.isTag(i, ["ul", "ol"]) ? m.__assign(m.__assign({}, s), { next: t.states.LIST }) : m.__assign(m.__assign({}, s), i ? { next: t.states.EXTRACT } : { next: o !== a.UNWRAP ? t.states.UNWRAP_CHILDREN : t.states.END });
  5307. } }, n[t.states.LIST] = { exec: function(s) {
  5308. var c = s.element, p = s.jodit, l = s.mode;
  5309. if (l !== a.INITIAL && l !== a.UNWRAP && l !== h.REPLACE) return m.__assign(m.__assign({}, s), { next: t.states.END });
  5310. var o = d.Dom.closest(c, "li", p.editor);
  5311. if (!o) return m.__assign(m.__assign({}, s), { next: t.states.END });
  5312. var r = d.Dom.closest(c, ["ul", "ol"], p.editor);
  5313. return m.__assign(m.__assign({}, s), r ? { element: o, next: t.states.TOGGLE_LIST } : { next: t.states.END });
  5314. } }, n[t.states.TOGGLE_LIST] = { exec: function(s) {
  5315. return m.__assign(m.__assign({}, s), { mode: (0, f.toggleOrderedList)(s.style, s.element, s.jodit, s.mode), next: t.states.END });
  5316. } }, n[t.states.EXTRACT] = { exec: function(s) {
  5317. var c = s.element, p = s.jodit, l = s.style, o = (0, f.findSuitClosest)(l, c, p.editor);
  5318. return l.elementIsBlock || (0, f.extractSelectedPart)(o, c, p), m.__assign(m.__assign({}, s), { element: o, next: t.states.ELEMENT });
  5319. } }, n[t.states.UNWRAP_CHILDREN] = { exec: function(s) {
  5320. return (0, f.unwrapChildren)(s.style, s.element) ? m.__assign(m.__assign({}, s), { mode: a.UNWRAP, next: t.states.END }) : m.__assign(m.__assign({}, s), { next: t.states.WRAP });
  5321. } }, n[t.states.WRAP] = { exec: function(s) {
  5322. var c = s.style, p = (0, f.wrap)(c, s.element, s.jodit);
  5323. return m.__assign(m.__assign({}, s), { next: c.elementIsList ? t.states.END : t.states.CHANGE, mode: a.WRAP, element: p });
  5324. } }, n[t.states.ELEMENT] = { exec: function(s) {
  5325. var c = s.style, p = s.element;
  5326. return (0, f.toggleAttributes)(c, p, s.jodit, a.INITIAL, !0) !== a.INITIAL ? m.__assign(m.__assign({}, s), { next: t.states.CHANGE }) : d.Dom.isTag(p, c.element) ? m.__assign(m.__assign({}, s), { next: t.states.UNWRAP }) : m.__assign(m.__assign({}, s), { next: t.states.END });
  5327. } }, n[t.states.CHANGE] = { exec: function(s) {
  5328. var c = s.style, p = s.element, l = s.mode, o = (0, f.toggleAttributes)(c, p, s.jodit, s.mode);
  5329. return l !== a.WRAP && o === a.UNSET && !p.attributes.length && d.Dom.isTag(p, c.element) ? m.__assign(m.__assign({}, s), { next: t.states.UNWRAP }) : m.__assign(m.__assign({}, s), { mode: o, next: t.states.END });
  5330. } }, n[t.states.UNWRAP] = { exec: function(s) {
  5331. return s.element.attributes.length && d.Dom.isTag(s.element, s.style.element) ? m.__assign(m.__assign({}, s), { next: t.states.REPLACE_DEFAULT }) : (d.Dom.unwrap(s.element), m.__assign(m.__assign({}, s), { mode: a.UNWRAP, next: t.states.END }));
  5332. } }, n[t.states.REPLACE_DEFAULT] = { exec: function(s) {
  5333. return d.Dom.replace(s.element, s.style.defaultTag, s.jodit.createInside, !0), m.__assign(m.__assign({}, s), { mode: h.REPLACE, next: t.states.END });
  5334. } }, n[t.states.END] = { exec: function(s) {
  5335. return s;
  5336. } }, n);
  5337. }, 75764: function(_, t) {
  5338. var e;
  5339. Object.defineProperty(t, "__esModule", { value: !0 }), t.LocalStorageProvider = t.canUsePersistentStorage = void 0, t.canUsePersistentStorage = function() {
  5340. return e === void 0 && (e = function() {
  5341. var m = "___Jodit___" + Math.random().toString();
  5342. try {
  5343. localStorage.setItem(m, "1");
  5344. var h = localStorage.getItem(m) === "1";
  5345. return localStorage.removeItem(m), h;
  5346. } catch (f) {
  5347. }
  5348. return !1;
  5349. }()), e;
  5350. };
  5351. var n = function() {
  5352. function m(h) {
  5353. this.rootKey = h;
  5354. }
  5355. return m.prototype.set = function(h, f) {
  5356. try {
  5357. var d = localStorage.getItem(this.rootKey), a = d ? JSON.parse(d) : {};
  5358. a[h] = f, localStorage.setItem(this.rootKey, JSON.stringify(a));
  5359. } catch (s) {
  5360. }
  5361. return this;
  5362. }, m.prototype.delete = function(h) {
  5363. try {
  5364. localStorage.removeItem(this.rootKey);
  5365. } catch (f) {
  5366. }
  5367. return this;
  5368. }, m.prototype.get = function(h) {
  5369. try {
  5370. var f = localStorage.getItem(this.rootKey), d = f ? JSON.parse(f) : {};
  5371. return d[h] !== void 0 ? d[h] : null;
  5372. } catch (a) {
  5373. }
  5374. }, m.prototype.exists = function(h) {
  5375. return this.get(h) != null;
  5376. }, m.prototype.clear = function() {
  5377. try {
  5378. localStorage.removeItem(this.rootKey);
  5379. } catch (h) {
  5380. }
  5381. return this;
  5382. }, m;
  5383. }();
  5384. t.LocalStorageProvider = n;
  5385. }, 79905: function(_, t) {
  5386. Object.defineProperty(t, "__esModule", { value: !0 }), t.MemoryStorageProvider = void 0;
  5387. var e = function() {
  5388. function n() {
  5389. this.data = /* @__PURE__ */ new Map();
  5390. }
  5391. return n.prototype.set = function(m, h) {
  5392. return this.data.set(m, h), this;
  5393. }, n.prototype.delete = function(m) {
  5394. return this.data.delete(m), this;
  5395. }, n.prototype.get = function(m) {
  5396. return this.data.get(m);
  5397. }, n.prototype.exists = function(m) {
  5398. return this.data.has(m);
  5399. }, n.prototype.clear = function() {
  5400. return this.data.clear(), this;
  5401. }, n;
  5402. }();
  5403. t.MemoryStorageProvider = e;
  5404. }, 77462: function(_, t, e) {
  5405. Object.defineProperty(t, "__esModule", { value: !0 });
  5406. var n = e(20255);
  5407. n.__exportStar(e(79905), t), n.__exportStar(e(75764), t), n.__exportStar(e(52015), t);
  5408. }, 52015: function(_, t, e) {
  5409. Object.defineProperty(t, "__esModule", { value: !0 }), t.Storage = t.StorageKey = void 0;
  5410. var n = e(40332), m = e(75764), h = e(79905);
  5411. t.StorageKey = "Jodit_";
  5412. var f = function() {
  5413. function d(a, s) {
  5414. this.provider = a, this.prefix = t.StorageKey, s && (this.prefix += s);
  5415. }
  5416. return d.prototype.set = function(a, s) {
  5417. return this.provider.set((0, n.camelCase)(this.prefix + a), s), this;
  5418. }, d.prototype.delete = function(a) {
  5419. return this.provider.delete((0, n.camelCase)(this.prefix + a)), this;
  5420. }, d.prototype.get = function(a) {
  5421. return this.provider.get((0, n.camelCase)(this.prefix + a));
  5422. }, d.prototype.exists = function(a) {
  5423. return this.provider.exists((0, n.camelCase)(this.prefix + a));
  5424. }, d.prototype.clear = function() {
  5425. return this.provider.clear(), this;
  5426. }, d.makeStorage = function(a, s) {
  5427. var c;
  5428. return a === void 0 && (a = !1), a && (0, m.canUsePersistentStorage)() && (c = new m.LocalStorageProvider(t.StorageKey + s)), c || (c = new h.MemoryStorageProvider()), new d(c, s);
  5429. }, d;
  5430. }();
  5431. t.Storage = f;
  5432. }, 59363: function(_, t, e) {
  5433. Object.defineProperty(t, "__esModule", { value: !0 }), t.Dlgs = void 0;
  5434. var n = e(20255), m = e(87837), h = e(40332), f = function() {
  5435. function d() {
  5436. }
  5437. return d.prototype.dlg = function(a) {
  5438. var s = new m.Dialog(n.__assign({ language: this.o.language, shadowRoot: this.o.shadowRoot, ownerWindow: this.o.ownerWindow, defaultTimeout: this.o.defaultTimeout, theme: this.o.theme, globalFullSize: this.o.globalFullSize }, a));
  5439. return (0, h.markOwner)(this, s.container), s.parent = this, s.bindDestruct(this);
  5440. }, d.prototype.confirm = function(a, s, c) {
  5441. return (0, h.isString)(s) && (s = this.i18n(s)), m.Confirm.call(this.dlg(), this.i18n(a), s, c);
  5442. }, d.prototype.prompt = function(a, s, c, p, l) {
  5443. return (0, h.isString)(s) && (s = this.i18n(s)), (0, h.isString)(p) && (p = this.i18n(p)), m.Prompt.call(this.dlg(), this.i18n(a), s, c, p, l);
  5444. }, d.prototype.alert = function(a, s, c, p) {
  5445. return (0, h.isString)(a) && (a = this.i18n(a)), (0, h.isString)(s) && (s = this.i18n(s)), m.Alert.call(this.dlg(), a, s, c, p);
  5446. }, d;
  5447. }();
  5448. t.Dlgs = f;
  5449. }, 14089: function(_, t, e) {
  5450. Object.defineProperty(t, "__esModule", { value: !0 }), t.Elms = void 0;
  5451. var n = e(1853), m = function() {
  5452. function h() {
  5453. }
  5454. return h.prototype.getElm = function(f) {
  5455. return this.container.querySelector(".".concat(this.getFullElName(f)));
  5456. }, h.prototype.getElms = function(f) {
  5457. return (0, n.toArray)(this.container.querySelectorAll(".".concat(this.getFullElName(f))));
  5458. }, h;
  5459. }();
  5460. t.Elms = m;
  5461. }, 59829: function(_, t, e) {
  5462. Object.defineProperty(t, "__esModule", { value: !0 });
  5463. var n = e(20255);
  5464. n.__exportStar(e(14089), t), n.__exportStar(e(41681), t), n.__exportStar(e(59363), t);
  5465. }, 41681: function(_, t, e) {
  5466. Object.defineProperty(t, "__esModule", { value: !0 }), t.Mods = void 0;
  5467. var n = e(1853), m = e(24021), h = function() {
  5468. function f() {
  5469. }
  5470. return f.prototype.afterSetMod = function(d, a) {
  5471. }, f.prototype.setMod = function(d, a, s) {
  5472. if (d = d.toLowerCase(), this.mods[d] === a) return this;
  5473. var c = "".concat(this.componentName, "_").concat(d), p = (s || this.container).classList;
  5474. return (0, n.toArray)(p).forEach(function(l) {
  5475. l.indexOf(c) === 0 && p.remove(l);
  5476. }), !(0, m.isVoid)(a) && a !== "" && p.add("".concat(c, "_").concat(a.toString().toLowerCase())), this.mods[d] = a, this.afterSetMod(d, a), this;
  5477. }, f.prototype.getMod = function(d) {
  5478. var a;
  5479. return (a = this.mods[d]) !== null && a !== void 0 ? a : null;
  5480. }, f;
  5481. }();
  5482. t.Mods = h;
  5483. }, 96031: function(_, t, e) {
  5484. Object.defineProperty(t, "__esModule", { value: !0 }), t.Button = t.UIButton = t.UIButtonState = void 0;
  5485. var n = e(20255);
  5486. e(93330);
  5487. var m = e(53929), h = e(24263), f = e(76502), d = e(24421), a = e(42096), s = e(77904), c = e(47970), p = e(43441), l = e(29411);
  5488. t.UIButtonState = function() {
  5489. return { size: "middle", type: "button", name: "", value: "", variant: "initial", disabled: !1, activated: !1, icon: { name: "empty", fill: "", iconURL: "" }, tooltip: "", text: "", tabIndex: void 0 };
  5490. };
  5491. var o = function(r) {
  5492. function i(u, v) {
  5493. var y = r.call(this, u) || this;
  5494. return y.isButton = !0, y.state = (0, t.UIButtonState)(), y.actionHandlers = [], y.updateSize(), y.onChangeSize(), y.onChangeStatus(), v && y.hookStatus(l.STATUSES.ready, function() {
  5495. y.setState(v);
  5496. }), y;
  5497. }
  5498. return n.__extends(i, r), i.prototype.className = function() {
  5499. return "UIButton";
  5500. }, i.prototype.setState = function(u) {
  5501. return Object.assign(this.state, u), this;
  5502. }, i.prototype.onChangeSize = function() {
  5503. this.setMod("size", this.state.size);
  5504. }, i.prototype.onChangeType = function() {
  5505. (0, f.attr)(this.container, "type", this.state.type);
  5506. }, i.prototype.updateSize = function() {
  5507. var u = this.closest(c.UIList);
  5508. u && (this.state.size = u.buttonSize);
  5509. }, i.prototype.onChangeStatus = function() {
  5510. this.setMod("variant", this.state.variant);
  5511. }, i.prototype.onChangeText = function() {
  5512. this.text.textContent = this.jodit.i18n(this.state.text);
  5513. }, i.prototype.onChangeTextSetMode = function() {
  5514. this.setMod("text-icons", !!this.state.text.trim().length);
  5515. }, i.prototype.onChangeDisabled = function() {
  5516. (0, f.attr)(this.container, "disabled", this.state.disabled || null);
  5517. }, i.prototype.onChangeActivated = function() {
  5518. (0, f.attr)(this.container, "aria-pressed", this.state.activated);
  5519. }, i.prototype.onChangeName = function() {
  5520. this.container.classList.add("".concat(this.componentName, "_").concat(this.clearName(this.state.name))), this.name = this.state.name, (0, f.attr)(this.container, "data-ref", this.state.name), (0, f.attr)(this.container, "ref", this.state.name);
  5521. }, i.prototype.onChangeTooltip = function() {
  5522. this.get("j.o.useNativeTooltip") && (0, f.attr)(this.container, "title", this.state.tooltip), (0, f.attr)(this.container, "aria-label", this.state.tooltip);
  5523. }, i.prototype.onChangeTabIndex = function() {
  5524. (0, f.attr)(this.container, "tabindex", this.state.tabIndex);
  5525. }, i.prototype.onChangeIcon = function() {
  5526. var u = this.get("j.o.textIcons");
  5527. if (!(u === !0 || (0, a.isFunction)(u) && u(this.state.name))) {
  5528. h.Dom.detach(this.icon);
  5529. var v = s.Icon.makeIcon(this.j, this.state.icon);
  5530. v && this.icon.appendChild(v);
  5531. }
  5532. }, i.prototype.focus = function() {
  5533. this.container.focus();
  5534. }, i.prototype.isFocused = function() {
  5535. var u = this.od.activeElement;
  5536. return !!(u && h.Dom.isOrContains(this.container, u));
  5537. }, i.prototype.createContainer = function() {
  5538. var u = this.componentName, v = this.j.c.element("button", { class: u, type: "button", role: "button", ariaPressed: !1 });
  5539. return this.icon = this.j.c.span(u + "__icon"), this.text = this.j.c.span(u + "__text"), v.appendChild(this.icon), v.appendChild(this.text), this.j.e.on(v, "click", this.onActionFire), v;
  5540. }, i.prototype.destruct = function() {
  5541. return this.j.e.off(this.container), r.prototype.destruct.call(this);
  5542. }, i.prototype.onAction = function(u) {
  5543. return this.actionHandlers.push(u), this;
  5544. }, i.prototype.onActionFire = function(u) {
  5545. var v = this;
  5546. u.buffer = { actionTrigger: this }, this.actionHandlers.forEach(function(y) {
  5547. return y.call(v, u);
  5548. });
  5549. }, n.__decorate([(0, p.watch)("state.size")], i.prototype, "onChangeSize", null), n.__decorate([(0, p.watch)("state.type")], i.prototype, "onChangeType", null), n.__decorate([(0, p.watch)("parentElement")], i.prototype, "updateSize", null), n.__decorate([(0, p.watch)("state.variant")], i.prototype, "onChangeStatus", null), n.__decorate([(0, p.watch)("state.text")], i.prototype, "onChangeText", null), n.__decorate([(0, p.watch)("state.text")], i.prototype, "onChangeTextSetMode", null), n.__decorate([(0, p.watch)("state.disabled")], i.prototype, "onChangeDisabled", null), n.__decorate([(0, p.watch)("state.activated")], i.prototype, "onChangeActivated", null), n.__decorate([(0, p.watch)("state.name")], i.prototype, "onChangeName", null), n.__decorate([(0, p.watch)("state.tooltip")], i.prototype, "onChangeTooltip", null), n.__decorate([(0, p.watch)("state.tabIndex")], i.prototype, "onChangeTabIndex", null), n.__decorate([(0, p.watch)("state.icon")], i.prototype, "onChangeIcon", null), n.__decorate([p.autobind], i.prototype, "onActionFire", null), n.__decorate([p.component], i);
  5550. }(m.UIElement);
  5551. t.UIButton = o, t.Button = function(r, i, u, v) {
  5552. var y = new o(r);
  5553. return y.state.tabIndex = r.o.allowTabNavigation ? 0 : -1, (0, d.isString)(i) ? (y.state.icon.name = i, y.state.name = i, v && (y.state.variant = v), u && (y.state.text = u)) : y.setState(i), y;
  5554. };
  5555. }, 67252: function(_, t, e) {
  5556. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIButtonGroup = void 0;
  5557. var n = e(20255);
  5558. e(45066);
  5559. var m = e(61479), h = e(11441), f = e(96031), d = (e(52378), function(a) {
  5560. function s(c, p) {
  5561. p === void 0 && (p = { radio: !0 });
  5562. var l, o, r = this;
  5563. return (r = a.call(this, c, (l = p.options) === null || l === void 0 ? void 0 : l.map(function(i) {
  5564. var u = new f.UIButton(c, { text: i.text, value: i.value, variant: "primary" });
  5565. return u.onAction(function() {
  5566. r.select(i.value);
  5567. }), u;
  5568. }), p) || this).options = p, r.select((o = p.value) !== null && o !== void 0 ? o : 0), r;
  5569. }
  5570. return n.__extends(s, a), s.prototype.className = function() {
  5571. return "UIButtonGroup";
  5572. }, s.prototype.render = function(c) {
  5573. return `<div>
  5574. <div class="&__label">~`.concat(c.label, `~</div>
  5575. <div class="&__options"></div>
  5576. </div>`);
  5577. }, s.prototype.appendChildToContainer = function(c) {
  5578. this.getElm("options").appendChild(c);
  5579. }, s.prototype.select = function(c) {
  5580. var p, l, o = this;
  5581. this.elements.forEach(function(i, u) {
  5582. u === c || i.state.value === c ? i.state.activated = !0 : o.options.radio && (i.state.activated = !1);
  5583. });
  5584. var r = this.elements.filter(function(i) {
  5585. return i.state.activated;
  5586. }).map(function(i) {
  5587. return { text: i.state.text, value: i.state.value };
  5588. });
  5589. this.jodit.e.fire(this, "select", r), (l = (p = this.options).onChange) === null || l === void 0 || l.call(p, r);
  5590. }, n.__decorate([h.component], s);
  5591. }(m.UIGroup));
  5592. t.UIButtonGroup = d;
  5593. }, 96516: function(_, t, e) {
  5594. Object.defineProperty(t, "__esModule", { value: !0 });
  5595. var n = e(20255);
  5596. n.__exportStar(e(96031), t), n.__exportStar(e(67252), t), n.__exportStar(e(33627), t);
  5597. }, 33627: function(_, t, e) {
  5598. Object.defineProperty(t, "__esModule", { value: !0 }), t.UITooltip = void 0;
  5599. var n = e(20255);
  5600. e(99895);
  5601. var m = e(40332), h = e(17332), f = e(43441), d = function(a) {
  5602. function s(c) {
  5603. var p = a.call(this, c) || this;
  5604. p.__isOpened = !1, p.__useCount = 1, p.__delayShowTimeout = 0, (0, h.getContainer)(c, s).appendChild(p.container);
  5605. var l = 0;
  5606. return c.e.off(".tooltip").on("showTooltip.tooltip", function(o, r) {
  5607. c.async.clearTimeout(l), p.__open(o, r);
  5608. }).on("delayShowTooltip.tooltip", p.__delayOpen).on("escape.tooltip", p.__close).on("hideTooltip.tooltip change.tooltip scroll.tooltip changePlace.tooltip hidePopup.tooltip closeAllPopups.tooltip", function() {
  5609. p.j.async.clearTimeout(p.__delayShowTimeout), l = c.async.setTimeout(p.__close, p.j.defaultTimeout);
  5610. }), p;
  5611. }
  5612. return n.__extends(s, a), s.prototype.className = function() {
  5613. return "UITooltip";
  5614. }, s.make = function(c) {
  5615. var p = (0, m.dataBind)(c, "ui-tooltip");
  5616. return p ? (p.__useCount += 1, p) : (p = new s(c), (0, m.dataBind)(c, "ui-tooltip", p), p);
  5617. }, s.prototype.__delayOpen = function(c, p) {
  5618. var l = this, o = this.j.o.showTooltipDelay || this.j.defaultTimeout;
  5619. this.j.async.clearTimeout(this.__delayShowTimeout), this.__delayShowTimeout = this.j.async.setTimeout(function() {
  5620. return l.__open(c, p);
  5621. }, { timeout: o, label: "tooltip" });
  5622. }, s.prototype.__open = function(c, p) {
  5623. this.setMod("visible", !0), this.container.innerHTML = p, this.__isOpened = !0, this.__setPosition(c);
  5624. }, s.prototype.__setPosition = function(c) {
  5625. var p = c();
  5626. (0, m.css)(this.container, { left: p.x, top: p.y });
  5627. }, s.prototype.__close = function() {
  5628. this.j.async.clearTimeout(this.__delayShowTimeout), this.__isOpened && (this.__isOpened = !1, this.setMod("visible", !1), (0, m.css)(this.container, { left: -5e3 }));
  5629. }, s.prototype.destruct = function() {
  5630. var c;
  5631. this.__useCount--, this.__useCount || ((c = this.j) === null || c === void 0 || c.e.off(".tooltip"), this.__close(), a.prototype.destruct.call(this));
  5632. }, n.__decorate([f.autobind], s.prototype, "__delayOpen", null), n.__decorate([f.autobind], s.prototype, "__close", null), s;
  5633. }(e(53929).UIElement);
  5634. t.UITooltip = d;
  5635. }, 53929: function(_, t, e) {
  5636. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIElement = void 0;
  5637. var n = e(20255), m = e(56562), h = e(24263), f = e(59829), d = e(24421), a = e(77904), s = e(43441), c = function(p) {
  5638. function l(r, i) {
  5639. var u = p.call(this, r) || this;
  5640. return u.name = "", u.__parentElement = null, u.mods = {}, u.container = u.createContainer(i), Object.defineProperty(u.container, "component", { value: u, configurable: !0 }), u;
  5641. }
  5642. var o;
  5643. return n.__extends(l, p), o = l, Object.defineProperty(l.prototype, "parentElement", { get: function() {
  5644. return this.__parentElement;
  5645. }, set: function(r) {
  5646. var i = this;
  5647. this.__parentElement = r, r && r.hookStatus("beforeDestruct", function() {
  5648. return i.destruct();
  5649. }), this.updateParentElement(this);
  5650. }, enumerable: !1, configurable: !0 }), l.prototype.bubble = function(r) {
  5651. for (var i = this.parentElement; i; ) r(i), i = i.parentElement;
  5652. return this;
  5653. }, l.prototype.updateParentElement = function(r) {
  5654. var i;
  5655. return (i = this.__parentElement) === null || i === void 0 || i.updateParentElement(r), this;
  5656. }, l.prototype.get = function(r, i) {
  5657. return p.prototype.get.call(this, r, i) || this.getElm(r);
  5658. }, l.prototype.closest = function(r) {
  5659. for (var i = typeof r == "object" ? function(v) {
  5660. return v === r;
  5661. } : function(v) {
  5662. return m.Component.isInstanceOf(v, r);
  5663. }, u = this.__parentElement; u; ) {
  5664. if (i(u)) return u;
  5665. u = !u.parentElement && u.container.parentElement ? o.closestElement(u.container.parentElement, o) : u.parentElement;
  5666. }
  5667. return null;
  5668. }, l.closestElement = function(r, i) {
  5669. var u = h.Dom.up(r, function(v) {
  5670. if (v) {
  5671. var y = v.component;
  5672. return y && m.Component.isInstanceOf(y, i);
  5673. }
  5674. return !1;
  5675. });
  5676. return u ? u == null ? void 0 : u.component : null;
  5677. }, l.prototype.update = function() {
  5678. }, l.prototype.appendTo = function(r) {
  5679. return r.appendChild(this.container), this;
  5680. }, l.prototype.clearName = function(r) {
  5681. return r.replace(/[^a-zA-Z0-9]/g, "_");
  5682. }, l.prototype.render = function(r) {
  5683. return this.j.c.div(this.componentName);
  5684. }, l.prototype.createContainer = function(r) {
  5685. var i = this.render(r);
  5686. if ((0, d.isString)(i)) {
  5687. var u = this.parseTemplate(i);
  5688. return u.classList.add(this.componentName), u;
  5689. }
  5690. return i;
  5691. }, l.prototype.parseTemplate = function(r) {
  5692. var i = this;
  5693. return this.j.c.fromHTML(r.replace(/\*([^*]+?)\*/g, function(u, v) {
  5694. return a.Icon.get(v) || "";
  5695. }).replace(/&__/g, this.componentName + "__").replace(/~([^~]+?)~/g, function(u, v) {
  5696. return i.i18n(v);
  5697. }));
  5698. }, l.prototype.destruct = function() {
  5699. return h.Dom.safeRemove(this.container), this.parentElement = null, p.prototype.destruct.call(this);
  5700. }, o = n.__decorate([(0, s.derive)(f.Mods, f.Elms)], l);
  5701. }(m.ViewComponent);
  5702. t.UIElement = c;
  5703. }, 38318: function(_, t, e) {
  5704. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIBlock = void 0;
  5705. var n = e(20255);
  5706. e(87682);
  5707. var m = e(61479), h = e(76502), f = e(11441), d = function(a) {
  5708. function s(c, p, l) {
  5709. l === void 0 && (l = { align: "left" });
  5710. var o = a.call(this, c, p) || this;
  5711. return o.options = l, o.setMod("align", o.options.align || "left"), o.setMod("width", o.options.width || ""), o.options.mod && o.setMod(o.options.mod, !0), o.options.className && o.container.classList.add(o.options.className), (0, h.attr)(o.container, "data-ref", l.ref), (0, h.attr)(o.container, "ref", l.ref), o;
  5712. }
  5713. return n.__extends(s, a), s.prototype.className = function() {
  5714. return "UIBlock";
  5715. }, n.__decorate([f.component], s);
  5716. }(m.UIGroup);
  5717. t.UIBlock = d;
  5718. }, 26207: function(_, t, e) {
  5719. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIForm = void 0;
  5720. var n = e(20255), m = e(61479), h = e(30194), f = e(75840), d = e(76502), a = e(11441), s = e(45113), c = function(p) {
  5721. function l() {
  5722. for (var o = [], r = 0; arguments.length > r; r++) o[r] = arguments[r];
  5723. var i, u, v = this;
  5724. return !((i = (v = p.apply(this, n.__spreadArray([], n.__read(o), !1)) || this).options) === null || i === void 0) && i.className && v.container.classList.add((u = v.options) === null || u === void 0 ? void 0 : u.className), v;
  5725. }
  5726. return n.__extends(l, p), l.prototype.className = function() {
  5727. return "UIForm";
  5728. }, l.prototype.submit = function() {
  5729. this.j.e.fire(this.container, "submit");
  5730. }, l.prototype.validate = function() {
  5731. var o, r, i, u, v = this.allChildren.filter(function(S) {
  5732. return s.Component.isInstanceOf(S, h.UIInput);
  5733. });
  5734. try {
  5735. for (var y = n.__values(v), g = y.next(); !g.done; g = y.next()) if (!g.value.validate()) return !1;
  5736. } catch (S) {
  5737. o = { error: S };
  5738. } finally {
  5739. try {
  5740. g && !g.done && (r = y.return) && r.call(y);
  5741. } finally {
  5742. if (o) throw o.error;
  5743. }
  5744. }
  5745. var b = this.allChildren.filter(function(S) {
  5746. return s.Component.isInstanceOf(S, f.UISelect);
  5747. });
  5748. try {
  5749. for (var w = n.__values(b), C = w.next(); !C.done; C = w.next()) if (!C.value.validate()) return !1;
  5750. } catch (S) {
  5751. i = { error: S };
  5752. } finally {
  5753. try {
  5754. C && !C.done && (u = w.return) && u.call(w);
  5755. } finally {
  5756. if (i) throw i.error;
  5757. }
  5758. }
  5759. return !0;
  5760. }, l.prototype.onSubmit = function(o) {
  5761. var r = this;
  5762. this.j.e.on(this.container, "submit", function() {
  5763. var i = r.allChildren.filter(function(u) {
  5764. return s.Component.isInstanceOf(u, h.UIInput);
  5765. });
  5766. return !!r.validate() && (o(i.reduce(function(u, v) {
  5767. return u[v.state.name] = v.value, u;
  5768. }, {})), !1);
  5769. });
  5770. }, l.prototype.createContainer = function() {
  5771. var o = this.j.c.element("form");
  5772. return o.classList.add(this.componentName), (0, d.attr)(o, "dir", this.j.o.direction || "auto"), o;
  5773. }, n.__decorate([a.component], l);
  5774. }(m.UIGroup);
  5775. t.UIForm = c;
  5776. }, 95963: function(_, t, e) {
  5777. Object.defineProperty(t, "__esModule", { value: !0 });
  5778. var n = e(20255);
  5779. n.__exportStar(e(26207), t), n.__exportStar(e(63034), t), n.__exportStar(e(38318), t);
  5780. }, 21639: function(_, t, e) {
  5781. Object.defineProperty(t, "__esModule", { value: !0 }), t.UITextArea = void 0;
  5782. var n = e(20255);
  5783. e(50905);
  5784. var m = e(30194), h = e(11441), f = function(d) {
  5785. function a(c, p) {
  5786. var l = d.call(this, c, p) || this;
  5787. return l.state = n.__assign({}, s.defaultState), Object.assign(l.state, p), l.state.resizable === !1 && (l.nativeInput.style.resize = "none"), l;
  5788. }
  5789. var s;
  5790. return n.__extends(a, d), s = a, a.prototype.className = function() {
  5791. return "UITextArea";
  5792. }, a.prototype.createContainer = function(c) {
  5793. return this.nativeInput = this.j.create.element("textarea"), d.prototype.createContainer.call(this, c);
  5794. }, a.defaultState = n.__assign(n.__assign({}, m.UIInput.defaultState), { size: 5, resizable: !0 }), s = n.__decorate([h.component], a);
  5795. }(m.UIInput);
  5796. t.UITextArea = f;
  5797. }, 63747: function(_, t, e) {
  5798. Object.defineProperty(t, "__esModule", { value: !0 }), t.UICheckbox = void 0;
  5799. var n = e(20255);
  5800. e(70446);
  5801. var m = e(30194), h = e(43441), f = e(24263), d = function(a) {
  5802. function s(p, l) {
  5803. var o = a.call(this, p, n.__assign(n.__assign({}, l), { type: "checkbox" })) || this;
  5804. return o.state = n.__assign({}, c.defaultState), Object.assign(o.state, l), o;
  5805. }
  5806. var c;
  5807. return n.__extends(s, a), c = s, s.prototype.className = function() {
  5808. return "UICheckbox";
  5809. }, s.prototype.render = function() {
  5810. return this.j.c.element("label", { className: this.componentName });
  5811. }, s.prototype.onChangeChecked = function() {
  5812. this.value = this.state.checked.toString(), this.nativeInput.checked = this.state.checked, this.setMod("checked", this.state.checked);
  5813. }, s.prototype.onChangeNativeCheckBox = function() {
  5814. this.state.checked = this.nativeInput.checked;
  5815. }, s.prototype.onChangeSwitch = function() {
  5816. this.setMod("switch", this.state.switch);
  5817. var p = this.getElm("switch-slider");
  5818. this.state.switch ? (p || (p = this.j.c.div(this.getFullElName("switch-slider"))), f.Dom.after(this.nativeInput, p)) : f.Dom.safeRemove(p);
  5819. }, s.defaultState = n.__assign(n.__assign({}, m.UIInput.defaultState), { checked: !1, switch: !1 }), n.__decorate([(0, h.watch)("state.checked"), (0, h.hook)("ready")], s.prototype, "onChangeChecked", null), n.__decorate([(0, h.watch)("nativeInput:change")], s.prototype, "onChangeNativeCheckBox", null), n.__decorate([(0, h.watch)("state.switch"), (0, h.hook)("ready")], s.prototype, "onChangeSwitch", null), c = n.__decorate([h.component], s);
  5820. }(m.UIInput);
  5821. t.UICheckbox = d;
  5822. }, 41374: function(_, t, e) {
  5823. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIFileInput = void 0;
  5824. var n = e(20255);
  5825. e(18984);
  5826. var m = e(30194), h = e(11441), f = e(96031), d = function(a) {
  5827. function s(c, p) {
  5828. var l = a.call(this, c, n.__assign({ type: "file" }, p)) || this;
  5829. return l.state = n.__assign(n.__assign({}, m.UIInput.defaultState), { type: "file", onlyImages: !0 }), l;
  5830. }
  5831. return n.__extends(s, a), s.prototype.className = function() {
  5832. return "UIFileInput";
  5833. }, s.prototype.createContainer = function(c) {
  5834. this.button = new f.UIButton(this.j, { icon: { name: "plus" } });
  5835. var p = this.button.container;
  5836. this.nativeInput || (this.nativeInput = this.createNativeInput(c));
  5837. var l = this.nativeInput;
  5838. return l.classList.add(this.getFullElName("input")), p.classList.add(this.componentName), p.appendChild(l), p;
  5839. }, s.prototype.createNativeInput = function(c) {
  5840. return this.j.create.fromHTML(`<input
  5841. type="file"
  5842. accept="`.concat(c.onlyImages ? "image/*" : "*", `"
  5843. tabindex="-1"
  5844. dir="auto"
  5845. multiple=""
  5846. />`));
  5847. }, n.__decorate([h.component], s);
  5848. }(m.UIInput);
  5849. t.UIFileInput = d;
  5850. }, 63034: function(_, t, e) {
  5851. Object.defineProperty(t, "__esModule", { value: !0 });
  5852. var n = e(20255);
  5853. n.__exportStar(e(30194), t), n.__exportStar(e(21639), t), n.__exportStar(e(63747), t), n.__exportStar(e(75840), t), n.__exportStar(e(41374), t);
  5854. }, 30194: function(_, t, e) {
  5855. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIInput = void 0;
  5856. var n = e(20255);
  5857. e(4591);
  5858. var m = e(53929), h = e(76502), f = e(1853), d = e(24263), a = e(43441), s = e(77904), c = e(60081), p = function(l) {
  5859. function o(i, u) {
  5860. var v = l.call(this, i, u) || this;
  5861. return v.label = v.j.c.span(v.getFullElName("label")), v.icon = v.j.c.span(v.getFullElName("icon")), v.clearButton = v.j.c.span(v.getFullElName("clear"), s.Icon.get("cancel")), v.state = n.__assign({}, r.defaultState), v.__errorBox = v.j.c.span(v.getFullElName("error")), v.validators = /* @__PURE__ */ new Set([]), (u == null ? void 0 : u.value) !== void 0 && (u.value = u.value.toString()), Object.assign(v.state, u), v.state.clearButton !== void 0 && (v.j.e.on(v.clearButton, "click", function(y) {
  5862. y.preventDefault(), v.nativeInput.value = "", v.j.e.fire(v.nativeInput, "input"), v.focus();
  5863. }).on(v.nativeInput, "input", function() {
  5864. v.state.clearButton = !!v.value.length;
  5865. }), v.state.clearButton = !!v.value.length), v.j.e.on(v.nativeInput, "focus blur", function() {
  5866. v.onChangeFocus();
  5867. }).on(v.nativeInput, "input change", v.onChangeValue), v.onChangeState(), v.onChangeClassName(), v.onChangeStateValue(), v;
  5868. }
  5869. var r;
  5870. return n.__extends(o, l), r = o, o.prototype.className = function() {
  5871. return "UIInput";
  5872. }, o.prototype.onChangeClear = function() {
  5873. this.state.clearButton ? d.Dom.after(this.nativeInput, this.clearButton) : d.Dom.safeRemove(this.clearButton);
  5874. }, o.prototype.onChangeClassName = function(i, u) {
  5875. u && this.container.classList.remove(u), this.state.className && this.container.classList.add(this.state.className);
  5876. }, o.prototype.onChangeState = function() {
  5877. this.name = this.state.name;
  5878. var i = this.nativeInput, u = this.state, v = u.name, y = u.icon, g = u.type, b = u.ref, w = u.required, C = u.placeholder, S = u.autocomplete, j = u.label;
  5879. (0, h.attr)(i, "name", v), (0, h.attr)(i, "type", g), (0, h.attr)(i, "data-ref", b || v), (0, h.attr)(i, "ref", b || v), (0, h.attr)(i, "required", w || null), (0, h.attr)(i, "autocomplete", S ? null : "off"), (0, h.attr)(i, "placeholder", C ? this.j.i18n(C) : ""), y && s.Icon.exists(y) ? (d.Dom.before(i, this.icon), this.icon.innerHTML = s.Icon.get(y)) : d.Dom.safeRemove(this.icon), j ? (d.Dom.before(this.wrapper, this.label), this.label.innerText = this.j.i18n(j)) : d.Dom.safeRemove(this.label), this.updateValidators();
  5880. }, o.prototype.updateValidators = function() {
  5881. var i, u = this;
  5882. this.validators.clear(), this.state.required && this.validators.add(c.inputValidators.required), (i = this.state.validators) === null || i === void 0 || i.forEach(function(v) {
  5883. var y = c.inputValidators[v];
  5884. y && u.validators.add(y);
  5885. });
  5886. }, Object.defineProperty(o.prototype, "error", { set: function(i) {
  5887. this.setMod("has-error", !!i), i ? (this.__errorBox.innerText = this.j.i18n(i, this.j.i18n(this.state.label || "")), this.container.appendChild(this.__errorBox)) : d.Dom.safeRemove(this.__errorBox);
  5888. }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "value", { get: function() {
  5889. return this.nativeInput.value;
  5890. }, set: function(i) {
  5891. this.value !== i && (this.nativeInput.value = i, this.onChangeValue());
  5892. }, enumerable: !1, configurable: !0 }), o.prototype.onChangeStateValue = function() {
  5893. var i = this.state.value.toString();
  5894. i !== this.value && (this.value = i);
  5895. }, o.prototype.onChangeValue = function() {
  5896. var i, u, v = this.value;
  5897. this.state.value !== v && (this.state.value = v, this.j.e.fire(this, "change", v), (u = (i = this.state).onChange) === null || u === void 0 || u.call(i, v));
  5898. }, o.prototype.validate = function() {
  5899. var i = this;
  5900. return this.error = "", (0, f.toArray)(this.validators).every(function(u) {
  5901. return u(i);
  5902. });
  5903. }, o.prototype.createContainer = function(i) {
  5904. var u = l.prototype.createContainer.call(this);
  5905. this.wrapper = this.j.c.div(this.getFullElName("wrapper")), this.nativeInput || (this.nativeInput = this.createNativeInput());
  5906. var v = this.nativeInput;
  5907. return v.classList.add(this.getFullElName("input")), this.wrapper.appendChild(v), u.appendChild(this.wrapper), (0, h.attr)(v, "dir", this.j.o.direction || "auto"), u;
  5908. }, o.prototype.createNativeInput = function(i) {
  5909. return this.j.create.element("input");
  5910. }, o.prototype.focus = function() {
  5911. this.nativeInput.focus();
  5912. }, Object.defineProperty(o.prototype, "isFocused", { get: function() {
  5913. return this.nativeInput === this.j.od.activeElement;
  5914. }, enumerable: !1, configurable: !0 }), o.prototype.onChangeFocus = function() {
  5915. this.setMod("focused", this.isFocused);
  5916. }, o.defaultState = { className: "", autocomplete: !0, name: "", value: "", icon: "", label: "", ref: "", type: "text", placeholder: "", required: !1, validators: [] }, n.__decorate([(0, a.watch)("state.clearButton")], o.prototype, "onChangeClear", null), n.__decorate([(0, a.watch)("state.className")], o.prototype, "onChangeClassName", null), n.__decorate([(0, a.watch)(["state.name", "state.type", "state.label", "state.placeholder", "state.autocomplete", "state.icon"]), (0, a.debounce)()], o.prototype, "onChangeState", null), n.__decorate([(0, a.watch)("state.value")], o.prototype, "onChangeStateValue", null), n.__decorate([a.autobind], o.prototype, "onChangeValue", null), r = n.__decorate([a.component], o);
  5917. }(m.UIElement);
  5918. t.UIInput = p;
  5919. }, 75840: function(_, t, e) {
  5920. Object.defineProperty(t, "__esModule", { value: !0 }), t.UISelect = void 0;
  5921. var n = e(20255);
  5922. e(64194);
  5923. var m = e(67309), h = e(11441), f = e(30194), d = e(60081), a = function(s) {
  5924. function c(l, o) {
  5925. var r = s.call(this, l, o) || this;
  5926. return r.state = n.__assign({}, p.defaultState), Object.assign(r.state, o), r;
  5927. }
  5928. var p;
  5929. return n.__extends(c, s), p = c, c.prototype.className = function() {
  5930. return "UISelect";
  5931. }, c.prototype.createContainer = function(l) {
  5932. var o, r = s.prototype.createContainer.call(this, l), i = this.j, u = this.nativeInput, v = function() {
  5933. return i.create.element("option");
  5934. };
  5935. if (l.placeholder !== void 0) {
  5936. var y = v();
  5937. y.value = "", y.text = i.i18n(l.placeholder), u.add(y);
  5938. }
  5939. return (o = l.options) === null || o === void 0 || o.forEach(function(g) {
  5940. var b = v();
  5941. b.value = g.value.toString(), b.text = i.i18n(g.text), u.add(b);
  5942. }), l.size && l.size > 0 && (0, m.attr)(u, "size", l.size), l.multiple && (0, m.attr)(u, "multiple", ""), r;
  5943. }, c.prototype.createNativeInput = function() {
  5944. return this.j.create.element("select");
  5945. }, c.prototype.updateValidators = function() {
  5946. s.prototype.updateValidators.call(this), this.state.required && (this.validators.delete(d.inputValidators.required), this.validators.add(d.selectValidators.required));
  5947. }, c.defaultState = n.__assign(n.__assign({}, f.UIInput.defaultState), { options: [], size: 1, multiple: !1 }), p = n.__decorate([h.component], c);
  5948. }(f.UIInput);
  5949. t.UISelect = a;
  5950. }, 60081: function(_, t, e) {
  5951. Object.defineProperty(t, "__esModule", { value: !0 }), t.selectValidators = t.inputValidators = void 0, t.inputValidators = e(63355), t.selectValidators = e(65935);
  5952. }, 63355: function(_, t, e) {
  5953. Object.defineProperty(t, "__esModule", { value: !0 }), t.url = t.required = void 0;
  5954. var n = e(64350), m = e(33941);
  5955. t.required = function(h) {
  5956. return !!(0, m.trim)(h.value).length || (h.error = "Please fill out this field", !1);
  5957. }, t.url = function(h) {
  5958. return !!(0, n.isURL)((0, m.trim)(h.value)) || (h.error = "Please enter a web address", !1);
  5959. };
  5960. }, 65935: function(_, t, e) {
  5961. Object.defineProperty(t, "__esModule", { value: !0 }), t.required = void 0;
  5962. var n = e(33941);
  5963. t.required = function(m) {
  5964. return !!(0, n.trim)(m.value).length || (m.error = "Please fill out this field", !1);
  5965. };
  5966. }, 61479: function(_, t, e) {
  5967. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIGroup = void 0;
  5968. var n = e(20255);
  5969. e(70375);
  5970. var m = e(53929), h = e(43441), f = e(40332), d = (e(52378), e(24263)), a = e(45113), s = function(c) {
  5971. function p(o, r, i) {
  5972. var u = c.call(this, o, i) || this;
  5973. return u.options = i, u.syncMod = !1, u.elements = [], u.buttonSize = "middle", r == null || r.forEach(function(v) {
  5974. return v && u.append(v);
  5975. }), i != null && i.name && (u.name = i.name), u;
  5976. }
  5977. var l;
  5978. return n.__extends(p, c), l = p, p.prototype.className = function() {
  5979. return "UIGroup";
  5980. }, Object.defineProperty(p.prototype, "allChildren", { get: function() {
  5981. for (var o = [], r = n.__spreadArray([], n.__read(this.elements), !1); r.length; ) {
  5982. var i = r.shift();
  5983. (0, f.isArray)(i) ? r.push.apply(r, n.__spreadArray([], n.__read(i), !1)) : a.Component.isInstanceOf(i, l) ? r.push.apply(r, n.__spreadArray([], n.__read(i.elements), !1)) : i && o.push(i);
  5984. }
  5985. return o;
  5986. }, enumerable: !1, configurable: !0 }), p.prototype.update = function() {
  5987. this.elements.forEach(function(o) {
  5988. return o.update();
  5989. }), this.setMod("size", this.buttonSize);
  5990. }, p.prototype.append = function(o, r) {
  5991. var i = this;
  5992. return (0, f.isArray)(o) ? (o.forEach(function(u) {
  5993. return i.append(u, r);
  5994. }), this) : (this.elements.push(o), o.name && o.container.classList.add(this.getFullElName(o.name)), r ? this.getElm(r).appendChild(o.container) : this.appendChildToContainer(o.container), o.parentElement = this, o.update(), this);
  5995. }, p.prototype.afterSetMod = function(o, r) {
  5996. this.syncMod && this.elements.forEach(function(i) {
  5997. return i.setMod(o, r);
  5998. });
  5999. }, p.prototype.appendChildToContainer = function(o) {
  6000. this.container.appendChild(o);
  6001. }, p.prototype.remove = function(o) {
  6002. var r = this.elements.indexOf(o);
  6003. return r !== -1 && (this.elements.splice(r, 1), d.Dom.safeRemove(o.container), o.parentElement = null), this;
  6004. }, p.prototype.clear = function() {
  6005. return this.elements.forEach(function(o) {
  6006. return o.destruct();
  6007. }), this.elements.length = 0, this;
  6008. }, p.prototype.destruct = function() {
  6009. return this.clear(), c.prototype.destruct.call(this);
  6010. }, n.__decorate([(0, h.watch)("buttonSize")], p.prototype, "update", null), l = n.__decorate([h.component], p);
  6011. }(m.UIElement);
  6012. t.UIGroup = s;
  6013. }, 3249: function(_, t, e) {
  6014. Object.defineProperty(t, "__esModule", { value: !0 });
  6015. var n = e(20255);
  6016. n.__exportStar(e(61479), t), n.__exportStar(e(47970), t), n.__exportStar(e(75018), t), n.__exportStar(e(58495), t);
  6017. }, 47970: function(_, t, e) {
  6018. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIList = void 0;
  6019. var n = e(20255);
  6020. e(90235);
  6021. var m = e(32070), h = e(43441), f = e(61479), d = e(75018), a = e(58495), s = e(96031), c = e(97642), p = e(38546), l = e(14556), o = e(45113), r = function(i) {
  6022. function u(v) {
  6023. var y = i.call(this, v) || this;
  6024. return y.mode = "horizontal", y.removeButtons = [], y.onChangeMode(), y;
  6025. }
  6026. return n.__extends(u, i), u.prototype.className = function() {
  6027. return "UIList";
  6028. }, u.prototype.onChangeMode = function() {
  6029. this.setMod("mode", this.mode);
  6030. }, u.prototype.makeGroup = function() {
  6031. return new f.UIGroup(this.jodit);
  6032. }, Object.defineProperty(u.prototype, "buttons", { get: function() {
  6033. return this.allChildren.filter(function(v) {
  6034. return o.Component.isInstanceOf(v, s.UIButton);
  6035. });
  6036. }, enumerable: !1, configurable: !0 }), u.prototype.getButtonsNames = function() {
  6037. return this.buttons.map(function(v) {
  6038. return v instanceof s.UIButton && v.state.name || "";
  6039. }).filter(function(v) {
  6040. return v !== "";
  6041. });
  6042. }, u.prototype.setRemoveButtons = function(v) {
  6043. return this.removeButtons = v || [], this;
  6044. }, u.prototype.build = function(v, y) {
  6045. var g = this;
  6046. y === void 0 && (y = null), v = (0, l.splitArray)(v), this.clear();
  6047. var b, w = !1, C = this.makeGroup();
  6048. this.append(C), C.setMod("line", !0);
  6049. var S = function(E) {
  6050. var x = null;
  6051. switch (E.name) {
  6052. case `
  6053. `:
  6054. (C = g.makeGroup()).setMod("line", !0), b = g.makeGroup(), C.append(b), g.append(C);
  6055. break;
  6056. case "|":
  6057. w || (w = !0, x = new d.UISeparator(g.j));
  6058. break;
  6059. case "---":
  6060. b.setMod("before-spacer", !0);
  6061. var k = new a.UISpacer(g.j);
  6062. C.append(k), b = g.makeGroup(), C.append(b), w = !1;
  6063. break;
  6064. default:
  6065. w = !1, x = g.makeButton(E, y);
  6066. }
  6067. x && (b || (b = g.makeGroup(), C.append(b)), b.append(x));
  6068. }, j = function(E) {
  6069. return !g.removeButtons.includes(E.name);
  6070. };
  6071. return v.forEach(function(E) {
  6072. if ((0, c.isButtonGroup)(E)) {
  6073. var x = E.buttons.filter(function(I) {
  6074. return I;
  6075. });
  6076. x.length && ((b = g.makeGroup()).setMod("separated", !0).setMod("group", E.group), C.append(b), (0, m.getStrongControlTypes)(x, g.j.o.controls).filter(j).forEach(S));
  6077. } else {
  6078. b || (b = g.makeGroup(), C.append(b));
  6079. var k = (0, p.getControlType)(E, g.j.o.controls);
  6080. j(k) && S(k);
  6081. }
  6082. }), this.update(), this;
  6083. }, u.prototype.makeButton = function(v, y) {
  6084. return new s.UIButton(this.j);
  6085. }, n.__decorate([(0, h.watch)("mode")], u.prototype, "onChangeMode", null), n.__decorate([h.component], u);
  6086. }(f.UIGroup);
  6087. t.UIList = r;
  6088. }, 75018: function(_, t, e) {
  6089. Object.defineProperty(t, "__esModule", { value: !0 }), t.UISeparator = void 0;
  6090. var n = e(20255), m = e(53929), h = e(11441), f = function(d) {
  6091. function a() {
  6092. return d !== null && d.apply(this, arguments) || this;
  6093. }
  6094. return n.__extends(a, d), a.prototype.className = function() {
  6095. return "UISeparator";
  6096. }, n.__decorate([h.component], a);
  6097. }(m.UIElement);
  6098. t.UISeparator = f;
  6099. }, 58495: function(_, t, e) {
  6100. Object.defineProperty(t, "__esModule", { value: !0 }), t.UISpacer = void 0;
  6101. var n = e(20255), m = e(53929), h = e(11441), f = function(d) {
  6102. function a() {
  6103. return d !== null && d.apply(this, arguments) || this;
  6104. }
  6105. return n.__extends(a, d), a.prototype.className = function() {
  6106. return "UISpacer";
  6107. }, n.__decorate([h.component], a);
  6108. }(m.UIElement);
  6109. t.UISpacer = f;
  6110. }, 97642: function(_, t, e) {
  6111. Object.defineProperty(t, "__esModule", { value: !0 }), t.flatButtonsSet = t.isButtonGroup = void 0;
  6112. var n = e(20255), m = e(49781);
  6113. t.isButtonGroup = function(h) {
  6114. return (0, m.isArray)(h.buttons);
  6115. }, t.flatButtonsSet = function(h, f) {
  6116. var d = f.getRegisteredButtonGroups();
  6117. return new Set(h.reduce(function(a, s) {
  6118. var c;
  6119. return (0, t.isButtonGroup)(s) ? a = a.concat(n.__spreadArray(n.__spreadArray([], n.__read(s.buttons), !1), n.__read((c = d[s.group]) !== null && c !== void 0 ? c : []), !1)) : a.push(s), a;
  6120. }, []));
  6121. };
  6122. }, 38546: function(_, t, e) {
  6123. Object.defineProperty(t, "__esModule", { value: !0 }), t.findControlType = t.getControlType = void 0;
  6124. var n = e(20255), m = e(40332), h = e(93166);
  6125. function f(d, a) {
  6126. var s = n.__read(d.split(/\./), 2), c = s[0], p = s[1], l = a;
  6127. return p != null ? a[c] !== void 0 && (l = a[c]) : p = c, l[p] ? n.__assign({ name: p }, (0, m.ConfigFlatten)(l[p])) : void 0;
  6128. }
  6129. t.getControlType = function(d, a) {
  6130. var s;
  6131. return a || (a = h.Config.defaultOptions.controls), (0, m.isString)(d) ? s = f(d, a) || { name: d, command: d, tooltip: d } : a[(s = n.__assign({ name: "empty" }, (0, m.ConfigFlatten)(d))).name] !== void 0 && (s = n.__assign(n.__assign({}, (0, m.ConfigFlatten)(a[s.name])), (0, m.ConfigFlatten)(s))), s;
  6132. }, t.findControlType = f;
  6133. }, 32070: function(_, t, e) {
  6134. Object.defineProperty(t, "__esModule", { value: !0 }), t.getStrongControlTypes = void 0;
  6135. var n = e(38546), m = e(93166), h = e(49781), f = e(76502);
  6136. t.getStrongControlTypes = function(d, a) {
  6137. return ((0, h.isArray)(d) ? d : (0, f.keys)(d, !1).map(function(s) {
  6138. return (0, f.ConfigProto)({ name: s }, d[s] || {});
  6139. })).map(function(s) {
  6140. return (0, n.getControlType)(s, a || m.Config.defaultOptions.controls);
  6141. });
  6142. };
  6143. }, 77904: function(_, t, e) {
  6144. Object.defineProperty(t, "__esModule", { value: !0 }), t.Icon = void 0;
  6145. var n = e(26911), m = e(40332), h = function() {
  6146. function f() {
  6147. }
  6148. return f.getIcon = function(d) {
  6149. return /<svg/i.test(d) ? d : f.icons[d] || f.icons[d.replace(/-/g, "_")] || f.icons[d.replace(/_/g, "-")] || f.icons[(0, m.camelCase)(d)] || f.icons[(0, m.kebabCase)(d)] || f.icons[d.toLowerCase()];
  6150. }, f.exists = function(d) {
  6151. return this.getIcon(d) !== void 0;
  6152. }, f.get = function(d, a) {
  6153. return a === void 0 && (a = "<span></span>"), this.getIcon(d) || a;
  6154. }, f.set = function(d, a) {
  6155. return this.icons[d.replace("_", "-")] = a, this;
  6156. }, f.makeIcon = function(d, a) {
  6157. var s, c;
  6158. if (a) {
  6159. var p = a.name.replace(/[^a-zA-Z0-9]/g, "_");
  6160. if (a.iconURL) c = d.c.span(), (0, n.css)(c, "backgroundImage", "url(" + a.iconURL.replace("{basePath}", (d == null ? void 0 : d.basePath) || "") + ")");
  6161. else {
  6162. var l = d.e.fire("getIcon", a.name, a, p) || f.get(a.name, "") || ((s = d.o.extraIcons) === null || s === void 0 ? void 0 : s[a.name]);
  6163. l && (c = d.c.fromHTML(l.trim()), /^<svg/i.test(a.name) || c.classList.add("jodit-icon_" + p));
  6164. }
  6165. }
  6166. return c && (c.classList.add("jodit-icon"), c.style.fill = a.fill), c;
  6167. }, f.icons = {}, f;
  6168. }();
  6169. t.Icon = h;
  6170. }, 2074: function(_, t, e) {
  6171. Object.defineProperty(t, "__esModule", { value: !0 });
  6172. var n = e(20255);
  6173. n.__exportStar(e(53929), t), n.__exportStar(e(96516), t), n.__exportStar(e(35799), t), n.__exportStar(e(3249), t), n.__exportStar(e(95963), t), n.__exportStar(e(77904), t), n.__exportStar(e(63682), t);
  6174. }, 35799: function(_, t, e) {
  6175. Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(12680), t);
  6176. }, 12680: function(_, t, e) {
  6177. Object.defineProperty(t, "__esModule", { value: !0 }), t.Popup = void 0;
  6178. var n = e(20255);
  6179. e(88477);
  6180. var m = e(24263), h = e(40332), f = (e(52378), e(53929)), d = e(43441), a = e(45113), s = e(17332), c = function(p) {
  6181. function l(o, r) {
  6182. r === void 0 && (r = !0);
  6183. var i = p.call(this, o) || this;
  6184. return i.smart = r, i.isOpened = !1, i.strategy = "leftBottom", i.viewBound = function() {
  6185. return { left: 0, top: 0, width: i.ow.innerWidth, height: i.ow.innerHeight };
  6186. }, i.childrenPopups = /* @__PURE__ */ new Set(), (0, h.attr)(i.container, "role", "popup"), i;
  6187. }
  6188. return n.__extends(l, p), l.prototype.className = function() {
  6189. return "Popup";
  6190. }, l.prototype.updateParentElement = function(o) {
  6191. var r = this;
  6192. return o !== this && a.Component.isInstanceOf(o, l) && (this.childrenPopups.forEach(function(i) {
  6193. !o.closest(i) && i.isOpened && i.close();
  6194. }), this.childrenPopups.has(o) || this.j.e.on(o, "beforeClose", function() {
  6195. r.childrenPopups.delete(o);
  6196. }), this.childrenPopups.add(o)), p.prototype.updateParentElement.call(this, o);
  6197. }, l.prototype.setContent = function(o) {
  6198. m.Dom.detach(this.container);
  6199. var r, i = this.j.c.div("".concat(this.componentName, "__content"));
  6200. return a.Component.isInstanceOf(o, f.UIElement) ? (r = o.container, o.parentElement = this) : r = (0, h.isString)(o) ? this.j.c.fromHTML(o) : o, i.appendChild(r), this.container.appendChild(i), this.updatePosition(), this;
  6201. }, l.prototype.open = function(o, r, i) {
  6202. if (r === void 0 && (r = !1), (0, h.markOwner)(this.jodit, this.container), this.calculateZIndex(), this.isOpened = !0, this.addGlobalListeners(), this.targetBound = r ? this.getKeepBound(o) : o, i) i.appendChild(this.container);
  6203. else {
  6204. var u = (0, s.getContainer)(this.jodit, l);
  6205. i !== this.container.parentElement && u.appendChild(this.container);
  6206. }
  6207. return this.updatePosition(), this.j.e.fire(this, "afterOpen"), this;
  6208. }, l.prototype.calculateZIndex = function() {
  6209. var o = this;
  6210. if (!this.container.style.zIndex) {
  6211. var r = function(y) {
  6212. var g = y.container.style.zIndex || y.o.zIndex;
  6213. return !!g && (o.setZIndex(1 + parseInt(g.toString(), 10)), !0);
  6214. }, i = this.j;
  6215. if (!r(i)) for (var u = this.parentElement; u; ) {
  6216. if (r(i)) return;
  6217. if (u.container.style.zIndex) return void this.setZIndex(1 + parseInt(u.container.style.zIndex.toString(), 10));
  6218. if (!u.parentElement && u.container.parentElement) {
  6219. var v = f.UIElement.closestElement(u.container.parentElement, f.UIElement);
  6220. if (v) {
  6221. u = v;
  6222. continue;
  6223. }
  6224. }
  6225. u = u.parentElement;
  6226. }
  6227. }
  6228. }, l.prototype.getKeepBound = function(o) {
  6229. var r = this, i = o(), u = this.od.elementFromPoint(i.left, i.top);
  6230. if (!u) return o;
  6231. var v = m.Dom.isHTMLElement(u) ? u : u.parentElement, y = (0, h.position)(v, this.j);
  6232. return function() {
  6233. var g = o(), b = (0, h.position)(v, r.j);
  6234. return n.__assign(n.__assign({}, g), { top: g.top + (b.top - y.top), left: g.left + (b.left - y.left) });
  6235. };
  6236. }, l.prototype.updatePosition = function() {
  6237. if (!this.isOpened) return this;
  6238. var o = n.__read(this.calculatePosition(this.targetBound(), this.viewBound(), (0, h.position)(this.container, this.j)), 2), r = o[0];
  6239. return this.setMod("strategy", o[1]), (0, h.css)(this.container, { left: r.left, top: r.top }), this.childrenPopups.forEach(function(i) {
  6240. return i.updatePosition();
  6241. }), this;
  6242. }, l.prototype.throttleUpdatePosition = function() {
  6243. this.updatePosition();
  6244. }, l.prototype.calculatePosition = function(o, r, i, u) {
  6245. u === void 0 && (u = this.strategy);
  6246. var v = { left: o.left, right: o.left - (i.width - o.width) }, y = { bottom: o.top + o.height, top: o.top - i.height }, g = Object.keys(v).reduce(function(S, j) {
  6247. return S.concat(Object.keys(y).map(function(E) {
  6248. return "".concat(j).concat((0, h.ucfirst)(E));
  6249. }));
  6250. }, []), b = function(S) {
  6251. var j = n.__read((0, h.kebabCase)(S).split("-"), 2);
  6252. return { left: v[j[0]], top: y[j[1]], width: i.width, height: i.height };
  6253. }, w = function(S) {
  6254. return l.boxInView(b(u), S) ? u : g.find(function(j) {
  6255. if (l.boxInView(b(j), S)) return j;
  6256. }) || null;
  6257. }, C = w((0, h.position)(this.j.container, this.j));
  6258. return C && l.boxInView(b(C), r) || (C = w(r) || C || u), [b(C), C];
  6259. }, l.boxInView = function(o, r) {
  6260. return !(-2 > o.top - r.top || -2 > o.left - r.left || -2 > r.top + r.height - (o.top + o.height) || -2 > r.left + r.width - (o.left + o.width));
  6261. }, l.prototype.close = function() {
  6262. return this.isOpened ? (this.isOpened = !1, this.childrenPopups.forEach(function(o) {
  6263. return o.close();
  6264. }), this.j.e.fire(this, "beforeClose"), this.j.e.fire("beforePopupClose", this), this.removeGlobalListeners(), m.Dom.safeRemove(this.container), this) : this;
  6265. }, l.prototype.closeOnOutsideClick = function(o) {
  6266. this.isOpened && !this.isOwnClick(o) && this.close();
  6267. }, l.prototype.isOwnClick = function(o) {
  6268. if (!o.target) return !1;
  6269. var r = f.UIElement.closestElement(o.target, l);
  6270. return !!(r && (this === r || r.closest(this)));
  6271. }, l.prototype.addGlobalListeners = function() {
  6272. var o = this, r = this.throttleUpdatePosition, i = this.ow;
  6273. s.eventEmitter.on("closeAllPopups", this.close), this.smart && this.j.e.on("escape", this.close).on("mousedown touchstart", this.closeOnOutsideClick).on(i, "mousedown touchstart", this.closeOnOutsideClick), this.j.e.on("closeAllPopups", this.close).on("resize", r).on(this.container, "scroll mousewheel", r).on(i, "scroll", r).on(i, "resize", r), m.Dom.up(this.j.container, function(u) {
  6274. u && o.j.e.on(u, "scroll mousewheel", r);
  6275. });
  6276. }, l.prototype.removeGlobalListeners = function() {
  6277. var o = this, r = this.throttleUpdatePosition, i = this.ow;
  6278. s.eventEmitter.off("closeAllPopups", this.close), this.smart && this.j.e.off("escape", this.close).off("mousedown touchstart", this.closeOnOutsideClick).off(i, "mousedown touchstart", this.closeOnOutsideClick), this.j.e.off("closeAllPopups", this.close).off("resize", r).off(this.container, "scroll mousewheel", r).off(i, "scroll", r).off(i, "resize", r), m.Dom.up(this.j.container, function(u) {
  6279. u && o.j.e.off(u, "scroll mousewheel", r);
  6280. });
  6281. }, l.prototype.setZIndex = function(o) {
  6282. this.container.style.zIndex = o.toString();
  6283. }, l.prototype.destruct = function() {
  6284. return this.close(), p.prototype.destruct.call(this);
  6285. }, n.__decorate([d.autobind], l.prototype, "updatePosition", null), n.__decorate([(0, d.throttle)(10), d.autobind], l.prototype, "throttleUpdatePosition", null), n.__decorate([d.autobind], l.prototype, "close", null), n.__decorate([d.autobind], l.prototype, "closeOnOutsideClick", null), l;
  6286. }(f.UIElement);
  6287. t.Popup = c;
  6288. }, 63682: function(_, t, e) {
  6289. Object.defineProperty(t, "__esModule", { value: !0 }), t.ProgressBar = void 0;
  6290. var n = e(20255);
  6291. e(50197);
  6292. var m = e(24263), h = function(f) {
  6293. function d() {
  6294. return f !== null && f.apply(this, arguments) || this;
  6295. }
  6296. return n.__extends(d, f), d.prototype.className = function() {
  6297. return "ProgressBar";
  6298. }, d.prototype.render = function() {
  6299. return "<div><div></div></div>";
  6300. }, d.prototype.show = function() {
  6301. return (this.j.workplace || this.j.container).appendChild(this.container), this;
  6302. }, d.prototype.hide = function() {
  6303. return m.Dom.safeRemove(this.container), this;
  6304. }, d.prototype.progress = function(a) {
  6305. return this.container.style.width = a.toFixed(2) + "%", this;
  6306. }, d.prototype.destruct = function() {
  6307. return this.hide(), f.prototype.destruct.call(this);
  6308. }, d;
  6309. }(e(53929).UIElement);
  6310. t.ProgressBar = h;
  6311. }, 43608: function(_, t, e) {
  6312. Object.defineProperty(t, "__esModule", { value: !0 }), t.ViewWithToolbar = void 0;
  6313. var n = e(20255);
  6314. e(39008);
  6315. var m = e(75902), h = e(40332), f = e(64968), d = e(81438), a = e(56562), s = e(97642), c = e(43441), p = function(l) {
  6316. function o(r, i) {
  6317. i === void 0 && (i = !1);
  6318. var u = l.call(this, r, i) || this;
  6319. return u.toolbar = (0, d.makeCollection)(u), u.defaultToolbarContainer = u.c.div("jodit-toolbar__box"), u.registeredButtons = /* @__PURE__ */ new Set(), u.groupToButtons = {}, u.isJodit = !1, u.isJodit = i, u.e.on("beforeToolbarBuild", u.beforeToolbarBuild), u;
  6320. }
  6321. return n.__extends(o, l), Object.defineProperty(o.prototype, "toolbarContainer", { get: function() {
  6322. return this.o.fullsize || !(0, h.isString)(this.o.toolbar) && !f.Dom.isHTMLElement(this.o.toolbar) ? (this.o.toolbar && f.Dom.appendChildFirst(this.container, this.defaultToolbarContainer), this.defaultToolbarContainer) : (0, h.resolveElement)(this.o.toolbar, this.o.shadowRoot || this.od);
  6323. }, enumerable: !1, configurable: !0 }), o.prototype.setPanel = function(r) {
  6324. this.o.toolbar = r, this.buildToolbar();
  6325. }, o.prototype.buildToolbar = function() {
  6326. if (this.o.toolbar) {
  6327. var r = this.o.buttons ? (0, h.splitArray)(this.o.buttons) : [];
  6328. this.toolbar.setRemoveButtons(this.o.removeButtons).build(r.concat(this.o.extraButtons || [])).appendTo(this.toolbarContainer);
  6329. }
  6330. }, o.prototype.getRegisteredButtonGroups = function() {
  6331. return this.groupToButtons;
  6332. }, o.prototype.registerButton = function(r) {
  6333. var i;
  6334. this.registeredButtons.add(r);
  6335. var u = (i = r.group) !== null && i !== void 0 ? i : "other";
  6336. return this.groupToButtons[u] || (this.groupToButtons[u] = []), r.position != null ? this.groupToButtons[u][r.position] = r.name : this.groupToButtons[u].push(r.name), this;
  6337. }, o.prototype.unregisterButton = function(r) {
  6338. var i;
  6339. this.registeredButtons.delete(r);
  6340. var u = (i = r.group) !== null && i !== void 0 ? i : "other", v = this.groupToButtons[u];
  6341. if (v) {
  6342. var y = v.indexOf(r.name);
  6343. y !== -1 && v.splice(y, 1), v.length === 0 && delete this.groupToButtons[u];
  6344. }
  6345. return this;
  6346. }, o.prototype.beforeToolbarBuild = function(r) {
  6347. var i = this;
  6348. if (Object.keys(this.groupToButtons).length) return r.map(function(u) {
  6349. return (0, s.isButtonGroup)(u) && u.group && i.groupToButtons[u.group] ? { group: u.group, buttons: n.__spreadArray(n.__spreadArray([], n.__read(u.buttons), !1), n.__read(i.groupToButtons[u.group]), !1) } : u;
  6350. });
  6351. }, o.prototype.destruct = function() {
  6352. this.isDestructed || (this.setStatus(a.STATUSES.beforeDestruct), this.e.off("beforeToolbarBuild", this.beforeToolbarBuild), this.toolbar.destruct(), l.prototype.destruct.call(this));
  6353. }, n.__decorate([c.autobind], o.prototype, "beforeToolbarBuild", null), o;
  6354. }(m.View);
  6355. t.ViewWithToolbar = p;
  6356. }, 75902: function(_, t, e) {
  6357. Object.defineProperty(t, "__esModule", { value: !0 }), t.View = void 0;
  6358. var n = e(20255), m = e(77462), h = e(40332), f = e(86893), d = e(87837), a = e(17332), s = e(43441), c = e(59829), p = e(55395), l = e(71014), o = function(r) {
  6359. function i(v, y) {
  6360. y === void 0 && (y = !1);
  6361. var g = r.call(this) || this;
  6362. return g.isJodit = y, g.isView = !0, g.parent = null, g.mods = {}, g.components = /* @__PURE__ */ new Set(), g.version = "3.24.7", g.buffer = m.Storage.makeStorage(), g.storage = m.Storage.makeStorage(!0, g.componentName), g.OPTIONS = u.defaultOptions, g.__isFullSize = !1, g.__whoLocked = "", g.isLockedNotBy = function(b) {
  6363. return g.isLocked && g.__whoLocked !== b;
  6364. }, g.__modulesInstances = /* @__PURE__ */ new Map(), g.id = (/* @__PURE__ */ new Date()).getTime().toString(), g.buffer = m.Storage.makeStorage(), g.initOptions(v), g.initOwners(), g.events = new p.EventEmitter(g.od), g.create = new d.Create(g.od), g.container = g.c.div("jodit ".concat(g.componentName)), g.progressbar = new d.ProgressBar(g), g.message = new l.UIMessages(g, g.container), g;
  6365. }
  6366. var u;
  6367. return n.__extends(i, r), u = i, Object.defineProperty(i.prototype, "basePath", { get: function() {
  6368. return this.o.basePath ? this.o.basePath : f.BASE_PATH;
  6369. }, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "defaultTimeout", { get: function() {
  6370. return (0, h.isVoid)(this.o.defaultTimeout) ? 100 : this.o.defaultTimeout;
  6371. }, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "c", { get: function() {
  6372. return this.create;
  6373. }, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "container", { get: function() {
  6374. return this.__container;
  6375. }, set: function(v) {
  6376. this.__container = v;
  6377. }, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "e", { get: function() {
  6378. return this.events;
  6379. }, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "options", { get: function() {
  6380. return this.__options;
  6381. }, set: function(v) {
  6382. this.__options = v;
  6383. }, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "o", { get: function() {
  6384. return this.options;
  6385. }, enumerable: !1, configurable: !0 }), i.prototype.i18n = function(v) {
  6386. for (var y = [], g = 1; arguments.length > g; g++) y[g - 1] = arguments[g];
  6387. return (0, h.i18n)(v, y, this.options);
  6388. }, i.prototype.toggleFullSize = function(v) {
  6389. v === void 0 && (v = !this.__isFullSize), v !== this.__isFullSize && (this.__isFullSize = v, this.e.fire("toggleFullSize", v));
  6390. }, Object.defineProperty(i.prototype, "isLocked", { get: function() {
  6391. return this.__whoLocked !== "";
  6392. }, enumerable: !1, configurable: !0 }), i.prototype.lock = function(v) {
  6393. return v === void 0 && (v = "any"), !this.isLocked && (this.__whoLocked = v, !0);
  6394. }, i.prototype.unlock = function() {
  6395. return !!this.isLocked && (this.__whoLocked = "", !0);
  6396. }, Object.defineProperty(i.prototype, "isFullSize", { get: function() {
  6397. return this.__isFullSize;
  6398. }, enumerable: !1, configurable: !0 }), i.prototype.getVersion = function() {
  6399. return "3.24.7";
  6400. }, i.getVersion = function() {
  6401. return "3.24.7";
  6402. }, i.prototype.initOptions = function(v) {
  6403. this.options = (0, h.ConfigProto)(v || {}, (0, h.ConfigProto)(this.options || {}, u.defaultOptions));
  6404. }, i.prototype.initOwners = function() {
  6405. var v;
  6406. this.ownerWindow = (v = this.o.ownerWindow) !== null && v !== void 0 ? v : window;
  6407. }, i.prototype.attachEvents = function(v) {
  6408. var y = this;
  6409. if (v) {
  6410. var g = v == null ? void 0 : v.events;
  6411. g && Object.keys(g).forEach(function(b) {
  6412. return y.e.on(b, g[b]);
  6413. });
  6414. }
  6415. }, i.prototype.getInstance = function(v, y) {
  6416. var g = this.e.fire((0, h.camelCase)("getInstance_" + v), y);
  6417. if (g) return g;
  6418. var b = a.modules[v], w = this.__modulesInstances;
  6419. if (!(0, h.isFunction)(b)) throw (0, h.error)("Need real module name");
  6420. if (!w.has(v)) {
  6421. var C = b.prototype instanceof d.ViewComponent ? new b(this, y) : new b(y);
  6422. this.components.add(C), w.set(v, C);
  6423. }
  6424. return w.get(v);
  6425. }, i.prototype.addDisclaimer = function(v) {
  6426. this.container.appendChild(v);
  6427. }, i.prototype.beforeDestruct = function() {
  6428. this.e.fire(d.STATUSES.beforeDestruct, this), this.components.forEach(function(v) {
  6429. (0, h.isDestructable)(v) && !v.isInDestruct && v.destruct();
  6430. }), this.components.clear();
  6431. }, i.prototype.destruct = function() {
  6432. this.isDestructed || (this.progressbar.destruct(), this.message.destruct(), this.async && this.async.destruct(), this.events && this.e.destruct(), this.buffer && this.buffer.clear(), d.Dom.safeRemove(this.container), r.prototype.destruct.call(this));
  6433. }, i.esNext = !1, n.__decorate([(0, s.hook)(d.STATUSES.beforeDestruct)], i.prototype, "beforeDestruct", null), u = n.__decorate([(0, s.derive)(c.Mods, c.Elms)], i);
  6434. }(d.Component);
  6435. t.View = o, o.defaultOptions = { extraButtons: [], textIcons: !1, namespace: "", removeButtons: [], zIndex: 100002, defaultTimeout: 100, fullsize: !1, showTooltip: !0, useNativeTooltip: !1, buttons: [], globalFullSize: !0, language: "auto" };
  6436. }, 37920: function(_, t, e) {
  6437. Object.defineProperty(t, "__esModule", { value: !0 }), t.Jodit = void 0;
  6438. var n = e(20255), m = e(93166), h = e(86893), f = e(87837), d = e(40332), a = e(77462), s = e(86893), c = e(17332), p = e(43441), l = e(59829), o = e(30056), r = "data-jodit-default-style-display", i = "data-jodit-default-classes", u = function(y) {
  6439. function g(w, C) {
  6440. var S = y.call(this, C, !0) || this;
  6441. S.isJodit = !0, S.commands = /* @__PURE__ */ new Map(), S.__selectionLocked = null, S.__wasReadOnly = !1, S.createInside = new f.Create(function() {
  6442. return S.ed;
  6443. }, S.o.createAttributes), S.editorIsActive = !1, S.__mode = h.MODE_WYSIWYG, S.__callChangeCount = 0, S.__isSilentChange = !1, S.__elementToPlace = /* @__PURE__ */ new Map();
  6444. try {
  6445. var j = (0, d.resolveElement)(w, S.o.shadowRoot || S.od);
  6446. if (b.isJoditAssigned(j)) return j.component;
  6447. } catch (x) {
  6448. throw S.destruct(), x;
  6449. }
  6450. S.setStatus(f.STATUSES.beforeInit), S.id = (0, d.attr)((0, d.resolveElement)(w, S.o.shadowRoot || S.od), "id") || (/* @__PURE__ */ new Date()).getTime().toString(), c.instances[S.id] = S, S.storage = a.Storage.makeStorage(!0, S.id), S.attachEvents(C), S.e.on(S.ow, "resize", function() {
  6451. S.e && S.e.fire("resize");
  6452. }), S.e.on("prepareWYSIWYGEditor", S.__prepareWYSIWYGEditor), S.selection = new f.Select(S);
  6453. var E = S.beforeInitHook();
  6454. return (0, d.callPromise)(E, function() {
  6455. S.e.fire("beforeInit", S), c.pluginSystem.__init(S), S.e.fire("afterPluginSystemInit", S), S.e.on("changePlace", function() {
  6456. S.setReadOnly(S.o.readonly), S.setDisabled(S.o.disabled);
  6457. }), S.places.length = 0;
  6458. var x = S.addPlace(w, C);
  6459. c.instances[S.id] = S, (0, d.callPromise)(x, function() {
  6460. S.e && S.e.fire("afterInit", S), S.afterInitHook(), S.setStatus(f.STATUSES.ready), S.e.fire("afterConstructor", S);
  6461. });
  6462. }), S;
  6463. }
  6464. var b;
  6465. return n.__extends(g, y), b = g, g.prototype.className = function() {
  6466. return "Jodit";
  6467. }, g.prototype.waitForReady = function() {
  6468. var w = this;
  6469. return this.isReady ? Promise.resolve(this) : this.async.promise(function(C) {
  6470. w.hookStatus("ready", function() {
  6471. return C(w);
  6472. });
  6473. });
  6474. }, Object.defineProperty(g, "ready", { get: function() {
  6475. return new Promise(function(w) {
  6476. c.eventEmitter.on("oditready", w);
  6477. });
  6478. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "text", { get: function() {
  6479. if (this.editor) return this.editor.innerText || "";
  6480. var w = this.createInside.div();
  6481. return w.innerHTML = this.getElementValue(), w.innerText || "";
  6482. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "defaultTimeout", { get: function() {
  6483. return (0, d.isNumber)(this.o.defaultTimeout) ? this.o.defaultTimeout : m.Config.defaultOptions.defaultTimeout;
  6484. }, enumerable: !1, configurable: !0 }), g.atom = function(w) {
  6485. return (0, d.markAsAtomic)(w);
  6486. }, g.make = function(w, C) {
  6487. return new this(w, C);
  6488. }, g.isJoditAssigned = function(w) {
  6489. return w && (0, d.isJoditObject)(w.component) && !w.component.isInDestruct;
  6490. }, Object.defineProperty(g, "defaultOptions", { get: function() {
  6491. return m.Config.defaultOptions;
  6492. }, enumerable: !1, configurable: !0 }), g.prototype.__setPlaceField = function(w, C) {
  6493. this.currentPlace || (this.currentPlace = {}, this.places = [this.currentPlace]), this.currentPlace[w] = C;
  6494. }, Object.defineProperty(g.prototype, "element", { get: function() {
  6495. return this.currentPlace.element;
  6496. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "editor", { get: function() {
  6497. return this.currentPlace.editor;
  6498. }, set: function(w) {
  6499. this.__setPlaceField("editor", w);
  6500. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "container", { get: function() {
  6501. return this.currentPlace.container;
  6502. }, set: function(w) {
  6503. this.__setPlaceField("container", w);
  6504. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "workplace", { get: function() {
  6505. return this.currentPlace.workplace;
  6506. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "statusbar", { get: function() {
  6507. return this.currentPlace.statusbar;
  6508. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "iframe", { get: function() {
  6509. return this.currentPlace.iframe;
  6510. }, set: function(w) {
  6511. this.__setPlaceField("iframe", w);
  6512. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "history", { get: function() {
  6513. return this.currentPlace.history;
  6514. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "observer", { get: function() {
  6515. return this.history;
  6516. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "editorWindow", { get: function() {
  6517. return this.currentPlace.editorWindow;
  6518. }, set: function(w) {
  6519. this.__setPlaceField("editorWindow", w);
  6520. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "ew", { get: function() {
  6521. return this.editorWindow;
  6522. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "editorDocument", { get: function() {
  6523. return this.currentPlace.editorWindow.document;
  6524. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "ed", { get: function() {
  6525. return this.editorDocument;
  6526. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "options", { get: function() {
  6527. return this.currentPlace.options;
  6528. }, set: function(w) {
  6529. this.__setPlaceField("options", w);
  6530. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "s", { get: function() {
  6531. return this.selection;
  6532. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "uploader", { get: function() {
  6533. return this.getInstance("Uploader", this.o.uploader);
  6534. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "filebrowser", { get: function() {
  6535. var w = this, C = (0, d.ConfigProto)({ defaultTimeout: w.defaultTimeout, uploader: w.o.uploader, language: w.o.language, license: w.o.license, theme: w.o.theme, shadowRoot: w.o.shadowRoot, defaultCallback: function(S) {
  6536. S.files && S.files.length && S.files.forEach(function(j, E) {
  6537. var x = S.baseurl + j;
  6538. S.isImages && S.isImages[E] ? w.s.insertImage(x, null, w.o.imageDefaultWidth) : w.s.insertNode(w.createInside.fromHTML("<a href='".concat(x, "' title='").concat(x, "'>").concat(x, "</a>")));
  6539. });
  6540. } }, this.o.filebrowser);
  6541. return w.getInstance("FileBrowser", C);
  6542. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "mode", { get: function() {
  6543. return this.__mode;
  6544. }, set: function(w) {
  6545. this.setMode(w);
  6546. }, enumerable: !1, configurable: !0 }), g.prototype.getNativeEditorValue = function() {
  6547. var w = this.e.fire("beforeGetNativeEditorValue");
  6548. return (0, d.isString)(w) ? w : this.editor ? this.editor.innerHTML : this.getElementValue();
  6549. }, g.prototype.setNativeEditorValue = function(w) {
  6550. var C = { value: w };
  6551. this.e.fire("beforeSetNativeEditorValue", C) || this.editor && (this.editor.innerHTML = C.value);
  6552. }, Object.defineProperty(g.prototype, "value", { get: function() {
  6553. return this.getEditorValue();
  6554. }, set: function(w) {
  6555. this.setEditorValue(w), this.history.__processChanges();
  6556. }, enumerable: !1, configurable: !0 }), g.prototype.synchronizeValues = function() {
  6557. this.__imdSynchronizeValues();
  6558. }, g.prototype.__imdSynchronizeValues = function() {
  6559. this.setEditorValue();
  6560. }, g.prototype.getEditorValue = function(w, C) {
  6561. var S;
  6562. if (w === void 0 && (w = !0), (S = this.e.fire("beforeGetValueFromEditor", C)) !== void 0) return S;
  6563. S = this.getNativeEditorValue().replace(h.INVISIBLE_SPACE_REG_EXP(), ""), w && (S = S.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g, "")), S === "<br>" && (S = "");
  6564. var j = { value: S };
  6565. return this.e.fire("afterGetValueFromEditor", j, C), j.value;
  6566. }, g.prototype.setEditorValue = function(w) {
  6567. var C = this.e.fire("beforeSetValueToEditor", w);
  6568. if (C !== !1) if ((0, d.isString)(C) && (w = C), this.editor) {
  6569. if (!(0, d.isString)(w) && !(0, d.isVoid)(w)) throw (0, d.error)("value must be string");
  6570. (0, d.isVoid)(w) || this.getNativeEditorValue() === w || this.setNativeEditorValue(w), this.e.fire("postProcessSetEditorValue");
  6571. var S = this.getElementValue(), j = this.getEditorValue();
  6572. if (!this.__isSilentChange && S !== j && h.SAFE_COUNT_CHANGE_CALL > this.__callChangeCount) {
  6573. this.__setElementValue(j), this.__callChangeCount += 1;
  6574. try {
  6575. this.history.__upTick(), this.e.fire("change", j, S), this.e.fire(this.history, "change", j, S);
  6576. } finally {
  6577. this.__callChangeCount = 0;
  6578. }
  6579. }
  6580. } else w !== void 0 && this.__setElementValue(w);
  6581. }, g.prototype.updateElementValue = function() {
  6582. this.__setElementValue(this.getEditorValue());
  6583. }, g.prototype.getElementValue = function() {
  6584. return this.element.value !== void 0 ? this.element.value : this.element.innerHTML;
  6585. }, g.prototype.setElementValue = function(w) {
  6586. var C = this.getElementValue();
  6587. return (w === void 0 || (0, d.isString)(w) && w !== C) && (w != null || (w = C), w !== this.getEditorValue() && this.setEditorValue(w)), this.__setElementValue(w);
  6588. }, g.prototype.__setElementValue = function(w) {
  6589. var C = this;
  6590. if (!(0, d.isString)(w)) throw (0, d.error)("value must be string");
  6591. if (this.element !== this.container && w !== this.getElementValue()) {
  6592. var S = { value: w }, j = this.e.fire("beforeSetElementValue", S);
  6593. (0, d.callPromise)(j, function() {
  6594. C.element.value !== void 0 ? C.element.value = S.value : C.element.innerHTML = S.value, C.e.fire("afterSetElementValue", S);
  6595. });
  6596. }
  6597. }, g.prototype.registerCommand = function(w, C, S) {
  6598. var j = w.toLowerCase(), E = this.commands.get(j);
  6599. if (E === void 0 && this.commands.set(j, E = []), E.push(C), !(0, d.isFunction)(C)) {
  6600. var x = this.o.commandToHotkeys[j] || this.o.commandToHotkeys[w] || C.hotkeys;
  6601. x && this.registerHotkeyToCommand(x, j, S == null ? void 0 : S.stopPropagation);
  6602. }
  6603. return this;
  6604. }, g.prototype.registerHotkeyToCommand = function(w, C, S) {
  6605. var j = this;
  6606. S === void 0 && (S = !0);
  6607. var E = (0, d.asArray)(w).map(d.normalizeKeyAliases).map(function(x) {
  6608. return x + ".hotkey";
  6609. }).join(" ");
  6610. this.e.off(E).on(E, function(x, k) {
  6611. return k && (k.shouldStop = S == null || S), j.execCommand(C);
  6612. });
  6613. }, g.prototype.execCommand = function(w, C, S) {
  6614. for (var j, E = [], x = 3; arguments.length > x; x++) E[x - 3] = arguments[x];
  6615. if (this.s.isFocused() || this.s.focus(), !this.o.readonly || this.o.allowCommandsInReadOnly.includes(w)) {
  6616. var k;
  6617. if (w = w.toLowerCase(), (k = (j = this.e).fire.apply(j, n.__spreadArray(["beforeCommand", w, C, S], n.__read(E), !1))) !== !1 && (k = this.__execCustomCommands.apply(this, n.__spreadArray([w, C, S], n.__read(E), !1))), k !== !1) if (this.s.focus(), w === "selectall") this.s.select(this.editor, !0), this.s.expandSelection();
  6618. else try {
  6619. k = this.nativeExecCommand(w, C, S);
  6620. } catch (I) {
  6621. }
  6622. return this.e.fire("afterCommand", w, C, S), this.setEditorValue(), k;
  6623. }
  6624. }, g.prototype.nativeExecCommand = function(w, C, S) {
  6625. this.__isSilentChange = !0;
  6626. try {
  6627. return this.ed.execCommand(w, C, S);
  6628. } finally {
  6629. this.__isSilentChange = !1;
  6630. }
  6631. }, g.prototype.__execCustomCommands = function(w, C, S) {
  6632. for (var j = this, E = [], x = 3; arguments.length > x; x++) E[x - 3] = arguments[x];
  6633. w = w.toLowerCase();
  6634. var k, I = this.commands.get(w);
  6635. if (I !== void 0) return I.forEach(function(M) {
  6636. var T, O = (T = (0, d.isFunction)(M) ? M : M.exec).call.apply(T, n.__spreadArray([j, w, C, S], n.__read(E), !1));
  6637. O !== void 0 && (k = O);
  6638. }), k;
  6639. }, g.prototype.lock = function(w) {
  6640. return w === void 0 && (w = "any"), !!y.prototype.lock.call(this, w) && (this.__selectionLocked = this.s.save(), this.s.clear(), this.editor.classList.add("jodit_lock"), this.e.fire("lock", !0), !0);
  6641. }, g.prototype.unlock = function() {
  6642. return !!y.prototype.unlock.call(this) && (this.editor.classList.remove("jodit_lock"), this.__selectionLocked && this.s.restore(), this.e.fire("lock", !1), !0);
  6643. }, g.prototype.getMode = function() {
  6644. return this.mode;
  6645. }, g.prototype.isEditorMode = function() {
  6646. return this.getRealMode() === h.MODE_WYSIWYG;
  6647. }, g.prototype.getRealMode = function() {
  6648. if (this.getMode() !== h.MODE_SPLIT) return this.getMode();
  6649. var w = this.od.activeElement;
  6650. return w && (w === this.iframe || f.Dom.isOrContains(this.editor, w) || f.Dom.isOrContains(this.toolbar.container, w)) ? h.MODE_WYSIWYG : h.MODE_SOURCE;
  6651. }, g.prototype.setMode = function(w) {
  6652. var C = this, S = this.getMode(), j = { mode: parseInt(w.toString(), 10) }, E = ["jodit-wysiwyg_mode", "jodit-source__mode", "jodit_split_mode"];
  6653. this.e.fire("beforeSetMode", j) !== !1 && (this.__mode = [h.MODE_SOURCE, h.MODE_WYSIWYG, h.MODE_SPLIT].includes(j.mode) ? j.mode : h.MODE_WYSIWYG, this.o.saveModeInStorage && this.storage.set("jodit_default_mode", this.mode), E.forEach(function(x) {
  6654. C.container.classList.remove(x);
  6655. }), this.container.classList.add(E[this.mode - 1]), S !== this.getMode() && this.e.fire("afterSetMode"));
  6656. }, g.prototype.toggleMode = function() {
  6657. var w = this.getMode();
  6658. [h.MODE_SOURCE, h.MODE_WYSIWYG, this.o.useSplitMode ? h.MODE_SPLIT : 9].includes(w + 1) ? w += 1 : w = h.MODE_WYSIWYG, this.setMode(w);
  6659. }, g.prototype.setDisabled = function(w) {
  6660. this.o.disabled = w;
  6661. var C = this.__wasReadOnly;
  6662. this.setReadOnly(w || C), this.__wasReadOnly = C, this.editor && (this.editor.setAttribute("aria-disabled", w.toString()), this.container.classList.toggle("jodit_disabled", w), this.e.fire("disabled", w));
  6663. }, g.prototype.getDisabled = function() {
  6664. return this.o.disabled;
  6665. }, g.prototype.setReadOnly = function(w) {
  6666. this.__wasReadOnly !== w && (this.__wasReadOnly = w, this.o.readonly = w, w ? this.editor && this.editor.removeAttribute("contenteditable") : this.editor && this.editor.setAttribute("contenteditable", "true"), this.e && this.e.fire("readonly", w));
  6667. }, g.prototype.getReadOnly = function() {
  6668. return this.o.readonly;
  6669. }, g.prototype.focus = function() {
  6670. this.getMode() !== h.MODE_SOURCE && this.s.focus();
  6671. }, Object.defineProperty(g.prototype, "isFocused", { get: function() {
  6672. return this.s.isFocused();
  6673. }, enumerable: !1, configurable: !0 }), g.prototype.beforeInitHook = function() {
  6674. }, g.prototype.afterInitHook = function() {
  6675. }, g.prototype.initOptions = function(w) {
  6676. this.options = (0, d.ConfigProto)(w || {}, m.Config.defaultOptions);
  6677. }, g.prototype.initOwners = function() {
  6678. this.editorWindow = this.o.ownerWindow, this.ownerWindow = this.o.ownerWindow;
  6679. }, g.prototype.addPlace = function(w, C) {
  6680. var S = this, j = (0, d.resolveElement)(w, this.o.shadowRoot || this.od);
  6681. this.attachEvents(C), j.attributes && (0, d.toArray)(j.attributes).forEach(function(N) {
  6682. var H = N.name, q = N.value;
  6683. m.Config.defaultOptions[H] === void 0 || C && C[H] !== void 0 || (["readonly", "disabled"].indexOf(H) !== -1 && (q = q === "" || q === "true"), /^[0-9]+(\.)?([0-9]+)?$/.test(q.toString()) && (q = Number(q)), S.options[H] = q);
  6684. });
  6685. var E = this.c.div("jodit-container");
  6686. E.classList.add("jodit"), E.classList.add("jodit-container"), E.classList.add("jodit_theme_".concat(this.o.theme || "default")), v(this.o.className, E), this.o.containerStyle && (0, d.css)(E, this.o.containerStyle);
  6687. var x = this.o.styleValues;
  6688. Object.keys(x).forEach(function(N) {
  6689. var H = (0, d.kebabCase)(N);
  6690. E.style.setProperty("--jd-".concat(H), x[N]);
  6691. }), E.setAttribute("contenteditable", "false");
  6692. var k = null;
  6693. this.o.inline && (["TEXTAREA", "INPUT"].indexOf(j.nodeName) === -1 && (E = j, j.setAttribute(i, j.className.toString()), k = E.innerHTML, E.innerHTML = ""), E.classList.add("jodit_inline"), E.classList.add("jodit-container")), j !== E && (j.style.display && j.setAttribute(r, j.style.display), j.style.display = "none");
  6694. var I = this.c.div("jodit-workplace", { contenteditable: !1 });
  6695. E.appendChild(I), this.message.destruct(), this.message = new f.UIMessages(this, I), j.parentNode && j !== E && j.parentNode.insertBefore(E, j), Object.defineProperty(j, "component", { enumerable: !1, configurable: !0, value: this });
  6696. var M = this.c.div("jodit-wysiwyg", { contenteditable: !0, "aria-disabled": !1, tabindex: this.o.tabIndex });
  6697. I.appendChild(M);
  6698. var T = { editor: M, element: j, container: E, workplace: I, statusbar: new f.StatusBar(this, E), options: this.isReady ? (0, d.ConfigProto)(C || {}, m.Config.defaultOptions) : this.options, history: new f.History(this), editorWindow: this.ow };
  6699. this.__elementToPlace.set(M, T), this.setCurrentPlace(T), this.places.push(T), this.setNativeEditorValue(this.getElementValue());
  6700. var O = this.__initEditor(k), L = this.options;
  6701. return (0, d.callPromise)(O, function() {
  6702. L.enableDragAndDropFileToEditor && L.uploader && (L.uploader.url || L.uploader.insertImageAsBase64URI) && S.uploader.bind(S.editor), S.__elementToPlace.get(S.editor) || S.__elementToPlace.set(S.editor, T), S.e.fire("afterAddPlace", T);
  6703. });
  6704. }, g.prototype.addDisclaimer = function(w) {
  6705. this.workplace.appendChild(w);
  6706. }, g.prototype.setCurrentPlace = function(w) {
  6707. this.currentPlace !== w && (this.isEditorMode() || this.setMode(h.MODE_WYSIWYG), this.currentPlace = w, this.buildToolbar(), this.isReady && this.e.fire("changePlace", w));
  6708. }, g.prototype.__initEditor = function(w) {
  6709. var C = this, S = this.__createEditor();
  6710. return (0, d.callPromise)(S, function() {
  6711. if (!C.isInDestruct) {
  6712. if (C.element !== C.container) {
  6713. var j = C.getElementValue();
  6714. j !== C.getEditorValue() && C.setEditorValue(j);
  6715. } else w != null && C.setEditorValue(w);
  6716. var E = C.o.defaultMode;
  6717. if (C.o.saveModeInStorage) {
  6718. var x = C.storage.get("jodit_default_mode");
  6719. typeof x == "string" && (E = parseInt(x, 10));
  6720. }
  6721. C.setMode(E), C.o.readonly && (C.__wasReadOnly = !1, C.setReadOnly(!0)), C.o.disabled && C.setDisabled(!0);
  6722. try {
  6723. C.ed.execCommand("defaultParagraphSeparator", !1, C.o.enter.toLowerCase());
  6724. } catch (k) {
  6725. }
  6726. try {
  6727. C.ed.execCommand("enableObjectResizing", !1, "false");
  6728. } catch (k) {
  6729. }
  6730. try {
  6731. C.ed.execCommand("enableInlineTableEditing", !1, "false");
  6732. } catch (k) {
  6733. }
  6734. }
  6735. });
  6736. }, g.prototype.__createEditor = function() {
  6737. var w = this, C = this.editor, S = this.e.fire("createEditor", this);
  6738. return (0, d.callPromise)(S, function() {
  6739. if (!w.isInDestruct) {
  6740. if ((S === !1 || (0, d.isPromise)(S)) && f.Dom.safeRemove(C), v(w.o.editorClassName || w.o.editorCssClass, w.editor), w.o.editorCssClass && w.editor.classList.add(w.o.editorCssClass), w.o.style && (0, d.css)(w.editor, w.o.style), w.e.on("synchro", function() {
  6741. w.setEditorValue();
  6742. }).on("focus", function() {
  6743. w.editorIsActive = !0;
  6744. }).on("blur", function() {
  6745. return w.editorIsActive = !1;
  6746. }), w.__prepareWYSIWYGEditor(), w.o.direction) {
  6747. var j = w.o.direction.toLowerCase() === "rtl" ? "rtl" : "ltr";
  6748. w.container.style.direction = j, w.container.setAttribute("dir", j), w.toolbar.setDirection(j);
  6749. }
  6750. w.o.triggerChangeEvent && w.e.on("change", w.async.debounce(function() {
  6751. w.e && w.e.fire(w.element, "change");
  6752. }, w.defaultTimeout));
  6753. }
  6754. });
  6755. }, g.prototype.__prepareWYSIWYGEditor = function() {
  6756. var w = this, C = this.editor;
  6757. if (this.o.direction) {
  6758. var S = this.o.direction.toLowerCase() === "rtl" ? "rtl" : "ltr";
  6759. this.editor.style.direction = S, this.editor.setAttribute("dir", S);
  6760. }
  6761. this.e.on(C, "mousedown touchstart focus", function() {
  6762. var j = w.__elementToPlace.get(C);
  6763. j && w.setCurrentPlace(j);
  6764. }).on(C, "compositionend", this.synchronizeValues).on(C, "selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur", function(j) {
  6765. if (!w.o.readonly && !w.__isSilentChange && !(j instanceof w.ew.KeyboardEvent && j.isComposing) && w.e && w.e.fire) {
  6766. if (w.e.fire(j.type, j) === !1) return !1;
  6767. w.synchronizeValues();
  6768. }
  6769. });
  6770. }, g.prototype.fetch = function(w, C) {
  6771. var S = this, j = new o.Ajax(n.__assign({ url: w }, C), this.o.defaultAjaxOptions), E = function() {
  6772. S.e.off("beforeDestruct", E), S.progressbar.progress(100).hide(), j.destruct();
  6773. };
  6774. this.e.one("beforeDestruct", E), this.progressbar.show().progress(30);
  6775. var x = j.send();
  6776. return x.finally(E).catch(function() {
  6777. return null;
  6778. }), x;
  6779. }, g.prototype.destruct = function() {
  6780. var w = this;
  6781. if (!this.isInDestruct && (this.setStatus(f.STATUSES.beforeDestruct), this.__elementToPlace.clear(), this.editor)) {
  6782. var C = this.getEditorValue();
  6783. this.storage.clear(), this.buffer.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), this.places.forEach(function(S) {
  6784. var j = S.container, E = S.workplace, x = S.statusbar, k = S.element, I = S.iframe, M = S.editor, T = S.history;
  6785. if (k !== j) if (k.hasAttribute(r)) {
  6786. var O = (0, d.attr)(k, r);
  6787. O && (k.style.display = O, k.removeAttribute(r));
  6788. } else k.style.display = "";
  6789. else k.hasAttribute(i) && (k.className = (0, d.attr)(k, i) || "", k.removeAttribute(i));
  6790. k.hasAttribute("style") && !(0, d.attr)(k, "style") && k.removeAttribute("style"), x.destruct(), w.e.off(j), w.e.off(k), w.e.off(M), f.Dom.safeRemove(E), f.Dom.safeRemove(M), j !== k && f.Dom.safeRemove(j), Object.defineProperty(k, "component", { enumerable: !1, configurable: !0, value: null }), f.Dom.safeRemove(I), j === k && (k.innerHTML = C), T.destruct();
  6791. }), this.places.length = 0, this.currentPlace = {}, delete c.instances[this.id], y.prototype.destruct.call(this);
  6792. }
  6793. }, g.fatMode = !1, g.plugins = c.pluginSystem, g.modules = c.modules, g.ns = c.modules, g.decorators = {}, g.constants = h, g.instances = c.instances, g.lang = s.lang, g.core = { Plugin: f.Plugin }, n.__decorate([p.cache], g.prototype, "uploader", null), n.__decorate([p.cache], g.prototype, "filebrowser", null), n.__decorate([(0, p.throttle)()], g.prototype, "synchronizeValues", null), n.__decorate([(0, p.watch)(":internalChange")], g.prototype, "updateElementValue", null), n.__decorate([p.autobind], g.prototype, "__prepareWYSIWYGEditor", null), b = n.__decorate([(0, p.derive)(l.Dlgs)], g);
  6794. }(f.ViewWithToolbar);
  6795. function v(y, g) {
  6796. y && y.split(/\s+/).forEach(function(b) {
  6797. return g.classList.add(b);
  6798. });
  6799. }
  6800. t.Jodit = u;
  6801. }, 26435: function(_, t, e) {
  6802. Object.defineProperty(t, "__esModule", { value: !0 });
  6803. var n = e(10172), m = {}, h = e(90643), f = e(52532), d = e(75178), a = e(51048), s = e(22999), c = e(34145), p = e(40272), l = e(2978), o = e(99113), r = e(51923), i = e(21268), u = e(37289), v = e(17084), y = e(96891), g = e(31211), b = e(31109), w = e(79375), C = e(21042), S = e(73895);
  6804. m = { ar: h, cs_cz: f, de: d, en: a, es: s, fr: c, he: p, hu: l, id: o, it: r, ja: i, ko: u, nl: v, pl: y, pt_br: g, ru: b, tr: w, zh_cn: C, zh_tw: S };
  6805. var j = e(11399), E = function(k) {
  6806. return k ? k.default || k : {};
  6807. }, x = {};
  6808. (0, n.isArray)(E(j)) && E(j).forEach(function(k, I) {
  6809. x[I] = k;
  6810. }), Object.keys(m).forEach(function(k) {
  6811. var I = E(m[k]);
  6812. (0, n.isArray)(I) ? (m[k] = {}, I.forEach(function(M, T) {
  6813. m[k][x[T]] = M;
  6814. })) : m[k] = I;
  6815. }), t.default = m;
  6816. }, 60403: function(_, t, e) {
  6817. Object.defineProperty(t, "__esModule", { value: !0 }), t.ContextMenu = void 0;
  6818. var n = e(20255);
  6819. e(47086);
  6820. var m = e(35799), h = e(96516), f = e(10172), d = e(11441), a = function(s) {
  6821. function c() {
  6822. return s !== null && s.apply(this, arguments) || this;
  6823. }
  6824. return n.__extends(c, s), c.prototype.className = function() {
  6825. return "ContextMenu";
  6826. }, c.prototype.show = function(p, l, o) {
  6827. var r = this, i = this, u = this.j.c.div(this.getFullElName("actions"));
  6828. (0, f.isArray)(o) && (o.forEach(function(v) {
  6829. if (v) {
  6830. var y = (0, h.Button)(r.jodit, v.icon || "empty", v.title);
  6831. r.jodit && y.setParentView(r.jodit), y.setMod("context", "menu"), y.onAction(function(g) {
  6832. var b;
  6833. return (b = v.exec) === null || b === void 0 || b.call(i, g), i.close(), !1;
  6834. }), u.appendChild(y.container);
  6835. }
  6836. }), this.setContent(u).open(function() {
  6837. return { left: p, top: l, width: 0, height: 0 };
  6838. }, !0));
  6839. }, n.__decorate([d.component], c);
  6840. }(m.Popup);
  6841. t.ContextMenu = a;
  6842. }, 97528: function(_, t, e) {
  6843. Object.defineProperty(t, "__esModule", { value: !0 }), t.Alert = void 0;
  6844. var n = e(6690), m = e(40332), h = e(64968), f = e(2074);
  6845. t.Alert = function(d, a, s, c) {
  6846. c === void 0 && (c = "jodit-dialog_alert"), (0, m.isFunction)(a) && (s = a, a = void 0);
  6847. var p = this instanceof n.Dialog ? this : new n.Dialog(), l = p.c.div(c), o = (0, f.Button)(p, "ok", "Ok");
  6848. return (0, m.asArray)(d).forEach(function(r) {
  6849. l.appendChild(h.Dom.isNode(r) ? r : p.c.fromHTML(r));
  6850. }), o.onAction(function() {
  6851. s && (0, m.isFunction)(s) && s(p) === !1 || p.close();
  6852. }), p.setFooter([o]), p.open(l, a || "&nbsp;", !0, !0), o.focus(), p;
  6853. };
  6854. }, 47360: function(_, t, e) {
  6855. Object.defineProperty(t, "__esModule", { value: !0 }), t.Confirm = void 0;
  6856. var n = e(6690), m = e(42096), h = e(96031);
  6857. t.Confirm = function(f, d, a) {
  6858. var s = this instanceof n.Dialog ? this : new n.Dialog(), c = s.c.fromHTML('<form class="jodit-dialog_prompt"></form>'), p = s.c.element("label");
  6859. (0, m.isFunction)(d) && (a = d, d = void 0), p.appendChild(s.c.fromHTML(f)), c.appendChild(p);
  6860. var l = function(i) {
  6861. return function() {
  6862. a && a(i) === !1 || s.close();
  6863. };
  6864. }, o = (0, h.Button)(s, "cancel", "Cancel"), r = (0, h.Button)(s, "ok", "Yes");
  6865. return o.onAction(l(!1)), r.onAction(l(!0)), s.e.on(c, "submit", function() {
  6866. return l(!0)(), !1;
  6867. }), s.setFooter([r, o]), s.open(c, d || "&nbsp;", !0, !0), r.focus(), s;
  6868. };
  6869. }, 6690: function(_, t, e) {
  6870. Object.defineProperty(t, "__esModule", { value: !0 }), t.Dialog = void 0;
  6871. var n = e(20255);
  6872. e(16462);
  6873. var m = e(93166), h = e(86893), f = e(40332), d = (e(52378), e(43608)), a = e(64968), s = e(56562), c = e(17332), p = e(43441), l = e(75902), o = e(2074), r = e(71014);
  6874. m.Config.prototype.dialog = { namespace: "", extraButtons: [], resizable: !0, draggable: !0, buttons: ["dialog.close"], removeButtons: [], toolbarButtonSize: "middle", zIndex: "inherit" }, m.Config.prototype.controls.dialog = { close: { icon: "cancel", exec: function(u) {
  6875. u.close();
  6876. } } };
  6877. var i = function(u) {
  6878. function v(y) {
  6879. y === void 0 && (y = {});
  6880. var g = u.call(this, y) || this;
  6881. g.destroyAfterClose = !1, g.moved = !1, g.resizable = !1, g.draggable = !1, g.startX = 0, g.startY = 0, g.startPoint = { x: 0, y: 0, w: 0, h: 0 }, g.lockSelect = function() {
  6882. g.setMod("moved", !0);
  6883. }, g.unlockSelect = function() {
  6884. g.setMod("moved", !1);
  6885. }, g.onResize = function() {
  6886. g.options && g.o.resizable && !g.moved && g.isOpened && !g.offsetX && !g.offsetY && g.setPosition();
  6887. }, g.isModal = !1, g.isOpened = !1;
  6888. var b = g;
  6889. b.options = (0, f.ConfigProto)(y, (0, f.ConfigProto)(m.Config.prototype.dialog, l.View.defaultOptions)), a.Dom.safeRemove(b.container);
  6890. var w = g.getFullElName.bind(g);
  6891. b.container = g.c.fromHTML('<div class="jodit jodit-dialog '.concat(g.componentName, `">
  6892. <div class="`).concat(w("overlay"), `"></div>
  6893. <div class="`).concat(g.getFullElName("panel"), `">
  6894. <div class="`).concat(w("header"), `">
  6895. <div class="`).concat(w("header-title"), `"></div>
  6896. <div class="`).concat(w("header-toolbar"), `"></div>
  6897. </div>
  6898. <div class="`).concat(w("content"), `"></div>
  6899. <div class="`).concat(w("footer"), `"></div>
  6900. <div class="`).concat(w("resizer"), '">').concat(o.Icon.get("resize_handler"), `</div>
  6901. </div>
  6902. </div>`)), g.o.zIndex && (g.container.style.zIndex = g.o.zIndex.toString()), (0, f.attr)(b.container, "role", "dialog"), Object.defineProperty(b.container, "component", { value: g }), b.setMod("theme", b.o.theme || "default").setMod("resizable", !!b.o.resizable);
  6903. var C = b.getElm("panel"), S = b.getElm("resizer"), j = b.getElm("header-title"), E = b.getElm("content"), x = b.getElm("footer"), k = b.getElm("header-toolbar");
  6904. g.message.destruct(), g.message = new r.UIMessages(g, C), g.dialog = C, g.resizer = S, g.dialogbox_header = j, g.dialogbox_content = E, g.dialogbox_footer = x, g.dialogbox_toolbar = k, (0, f.css)(b.dialog, { maxWidth: b.options.maxWidth, minHeight: b.options.minHeight, minWidth: b.options.minWidth });
  6905. var I = b.getElm("header");
  6906. I && b.e.on(I, "pointerdown touchstart", b.onHeaderMouseDown), b.e.on(b.resizer, "mousedown touchstart", b.onResizerMouseDown);
  6907. var M = c.pluginSystem.get("fullsize");
  6908. return (0, f.isFunction)(M) && M(b), g.e.on(b.container, "close_dialog", b.close).on(g.ow, "keydown", g.onEsc).on(g.ow, "resize", g.onResize), g;
  6909. }
  6910. return n.__extends(v, u), v.prototype.className = function() {
  6911. return "Dialog";
  6912. }, Object.defineProperty(v.prototype, "destination", { get: function() {
  6913. var y;
  6914. return (y = this.o.shadowRoot) !== null && y !== void 0 ? y : this.od.body;
  6915. }, enumerable: !1, configurable: !0 }), v.prototype.setElements = function(y, g) {
  6916. var b = this, w = [];
  6917. (0, f.asArray)(g).forEach(function(C) {
  6918. if ((0, f.isArray)(C)) {
  6919. var S = b.c.div(b.getFullElName("column"));
  6920. return w.push(S), y.appendChild(S), b.setElements(S, C);
  6921. }
  6922. var j;
  6923. j = (0, f.isString)(C) ? b.c.fromHTML(C) : (0, f.hasContainer)(C) ? C.container : C, w.push(j), j.parentNode !== y && y.appendChild(j);
  6924. }), (0, f.toArray)(y.childNodes).forEach(function(C) {
  6925. w.indexOf(C) === -1 && y.removeChild(C);
  6926. });
  6927. }, v.prototype.onMouseUp = function() {
  6928. (this.draggable || this.resizable) && (this.removeGlobalResizeListeners(), this.draggable = !1, this.resizable = !1, this.unlockSelect(), this.e && (this.removeGlobalResizeListeners(), this.e.fire(this, "endResize endMove")));
  6929. }, v.prototype.onHeaderMouseDown = function(y) {
  6930. var g = y.target;
  6931. !this.o.draggable || g && g.nodeName.match(/^(INPUT|SELECT)$/) || (this.draggable = !0, this.startX = y.clientX, this.startY = y.clientY, this.startPoint.x = (0, f.css)(this.dialog, "left"), this.startPoint.y = (0, f.css)(this.dialog, "top"), this.setMaxZIndex(), y.cancelable && y.preventDefault(), this.lockSelect(), this.addGlobalResizeListeners(), this.e && this.e.fire(this, "startMove"));
  6932. }, v.prototype.onMouseMove = function(y) {
  6933. this.draggable && this.o.draggable && (this.setPosition(this.startPoint.x + y.clientX - this.startX, this.startPoint.y + y.clientY - this.startY), this.e && this.e.fire(this, "move", y.clientX - this.startX, y.clientY - this.startY), y.stopImmediatePropagation()), this.resizable && this.o.resizable && (this.setSize(this.startPoint.w + y.clientX - this.startX, this.startPoint.h + y.clientY - this.startY), this.e && this.e.fire(this, "resizeDialog", y.clientX - this.startX, y.clientY - this.startY));
  6934. }, v.prototype.onEsc = function(y) {
  6935. if (this.isOpened && y.key === h.KEY_ESC && this.getMod("static") !== !0) {
  6936. var g = this.getMaxZIndexDialog();
  6937. g ? g.close() : this.close(), y.stopImmediatePropagation();
  6938. }
  6939. }, v.prototype.onResizerMouseDown = function(y) {
  6940. this.resizable = !0, this.startX = y.clientX, this.startY = y.clientY, this.startPoint.w = this.dialog.offsetWidth, this.startPoint.h = this.dialog.offsetHeight, this.lockSelect(), this.addGlobalResizeListeners(), this.e && this.e.fire(this, "startResize");
  6941. }, v.prototype.addGlobalResizeListeners = function() {
  6942. var y = this;
  6943. y.e.on(y.ow, "pointermove touchmove", y.onMouseMove).on(y.ow, "pointerup touchend", y.onMouseUp);
  6944. }, v.prototype.removeGlobalResizeListeners = function() {
  6945. var y = this;
  6946. y.e.off(y.ow, "mousemove pointermove", y.onMouseMove).off(y.ow, "mouseup pointerup", y.onMouseUp);
  6947. }, v.prototype.setSize = function(y, g) {
  6948. return y == null && (y = this.dialog.offsetWidth), g == null && (g = this.dialog.offsetHeight), (0, f.css)(this.dialog, { width: y, height: g }), this;
  6949. }, v.prototype.calcAutoSize = function() {
  6950. return this.setSize("auto", "auto"), this.setSize(), this;
  6951. }, v.prototype.setPosition = function(y, g) {
  6952. var b = this.ow.innerWidth / 2 - this.dialog.offsetWidth / 2, w = this.ow.innerHeight / 2 - this.dialog.offsetHeight / 2;
  6953. return 0 > b && (b = 0), 0 > w && (w = 0), y !== void 0 && g !== void 0 && (this.offsetX = y, this.offsetY = g, this.moved = Math.abs(y - b) > 100 || Math.abs(g - w) > 100), this.dialog.style.left = (y || b) + "px", this.dialog.style.top = (g || w) + "px", this;
  6954. }, v.prototype.setHeader = function(y) {
  6955. return this.setElements(this.dialogbox_header, y), this;
  6956. }, v.prototype.setContent = function(y) {
  6957. return this.setElements(this.dialogbox_content, y), this;
  6958. }, v.prototype.setFooter = function(y) {
  6959. return this.setElements(this.dialogbox_footer, y), this.setMod("footer", !!y), this;
  6960. }, v.prototype.getZIndex = function() {
  6961. return parseInt((0, f.css)(this.container, "zIndex"), 10) || 0;
  6962. }, v.prototype.getMaxZIndexDialog = function() {
  6963. var y, g, b = 0, w = this;
  6964. return (0, f.$$)(".jodit-dialog", this.destination).forEach(function(C) {
  6965. y = C.component, g = parseInt((0, f.css)(C, "zIndex"), 10), y.isOpened && !isNaN(g) && g > b && (w = y, b = g);
  6966. }), w;
  6967. }, v.prototype.setMaxZIndex = function() {
  6968. if (!this.getMod("static")) {
  6969. var y = 20000004, g = 0;
  6970. (0, f.$$)(".jodit-dialog", this.destination).forEach(function(b) {
  6971. g = parseInt((0, f.css)(b, "zIndex"), 10), y = Math.max(isNaN(g) ? 0 : g, y);
  6972. }), this.container.style.zIndex = (y + 1).toString();
  6973. }
  6974. }, v.prototype.toggleFullSize = function(y) {
  6975. (0, f.isVoid)(y) && (y = !this.getMod("fullsize")), this.setMod("fullsize", y), u.prototype.toggleFullSize.call(this, y);
  6976. }, v.prototype.open = function(y, g, b, w) {
  6977. if (c.eventEmitter.fire("closeAllPopups hideHelpers"), this.e.fire(this, "beforeOpen") === !1) return this;
  6978. (0, f.isBoolean)(y) && (b = y), (0, f.isBoolean)(g) && (w = g), this.destroyAfterClose = b === !0;
  6979. var C = (0, f.isBoolean)(y) ? void 0 : y, S = (0, f.isBoolean)(g) ? void 0 : g;
  6980. return S !== void 0 && this.setHeader(S), C && this.setContent(C), this.setMod("active", !0), this.isOpened = !0, this.setModal(w), this.destination.appendChild(this.container), this.getMod("static") !== !0 ? (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;
  6981. }, v.prototype.setModal = function(y) {
  6982. return this.isModal = !!y, this.setMod("modal", this.isModal), this;
  6983. }, v.prototype.close = function() {
  6984. return this.isDestructed || !this.isOpened || this.getMod("static") === !0 || this.e.fire("beforeClose", this) === !1 || (this.setMod("active", !1), this.isOpened = !1, this.isFullSize && this.toggleFullSize(!1), a.Dom.safeRemove(this.container), this.removeGlobalResizeListeners(), this.destroyAfterClose && this.destruct(), this.e.fire(this, "afterClose"), this.e.fire(this.ow, "joditCloseDialog")), this;
  6985. }, v.prototype.buildToolbar = function() {
  6986. this.o.buttons && this.toolbar.build((0, f.splitArray)(this.o.buttons)).setMod("mode", "header").appendTo(this.dialogbox_toolbar);
  6987. }, v.prototype.destruct = function() {
  6988. this.isInDestruct || (this.setStatus(s.STATUSES.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)), u.prototype.destruct.call(this));
  6989. }, n.__decorate([p.autobind], v.prototype, "onMouseUp", null), n.__decorate([p.autobind], v.prototype, "onHeaderMouseDown", null), n.__decorate([p.autobind], v.prototype, "onMouseMove", null), n.__decorate([p.autobind], v.prototype, "onEsc", null), n.__decorate([p.autobind], v.prototype, "onResizerMouseDown", null), n.__decorate([p.autobind], v.prototype, "close", null), n.__decorate([(0, p.hook)("ready")], v.prototype, "buildToolbar", null), n.__decorate([p.component], v);
  6990. }(d.ViewWithToolbar);
  6991. t.Dialog = i;
  6992. }, 92080: function(_, t, e) {
  6993. Object.defineProperty(t, "__esModule", { value: !0 }), t.Confirm = t.Prompt = t.Alert = t.Dialog = void 0;
  6994. var n = e(6690);
  6995. Object.defineProperty(t, "Dialog", { enumerable: !0, get: function() {
  6996. return n.Dialog;
  6997. } });
  6998. var m = e(97528);
  6999. Object.defineProperty(t, "Alert", { enumerable: !0, get: function() {
  7000. return m.Alert;
  7001. } });
  7002. var h = e(35789);
  7003. Object.defineProperty(t, "Prompt", { enumerable: !0, get: function() {
  7004. return h.Prompt;
  7005. } });
  7006. var f = e(47360);
  7007. Object.defineProperty(t, "Confirm", { enumerable: !0, get: function() {
  7008. return f.Confirm;
  7009. } });
  7010. }, 35789: function(_, t, e) {
  7011. Object.defineProperty(t, "__esModule", { value: !0 }), t.Prompt = void 0;
  7012. var n = e(92080), m = e(2074), h = e(40332);
  7013. t.Prompt = function(f, d, a, s, c) {
  7014. var p = this instanceof n.Dialog ? this : new n.Dialog(), l = (0, m.Button)(p, "cancel", "Cancel"), o = (0, m.Button)(p, "ok", "Ok"), r = p.c.element("form", { class: "jodit-dialog_prompt" }), i = p.c.element("input", { autofocus: !0, class: "jodit-input" }), u = p.c.element("label");
  7015. (0, h.isFunction)(d) && (a = d, d = void 0), s && (0, h.attr)(i, "placeholder", s), u.appendChild(p.c.text(f)), r.appendChild(u), r.appendChild(i), l.onAction(p.close);
  7016. var v = function() {
  7017. a && (0, h.isFunction)(a) && a(i.value) === !1 || p.close();
  7018. };
  7019. return o.onAction(v), p.e.on(r, "submit", function() {
  7020. return v(), !1;
  7021. }), p.setFooter([o, l]), p.open(r, d || "&nbsp;", !0, !0), i.focus(), c !== void 0 && c.length && (i.value = c, i.select()), p;
  7022. };
  7023. }, 34468: function(_, t, e) {
  7024. Object.defineProperty(t, "__esModule", { value: !0 });
  7025. var n = e(20255), m = e(64968), h = e(40332), f = e(46341), d = e(2074), a = e(21347), s = e(35503), c = e(66267), p = e(36303), l = e(48096), o = "jodit-filebrowser-preview", r = function(i, u) {
  7026. return i === void 0 && (i = "next"), u === void 0 && (u = "right"), '<div class="'.concat(o, "__navigation ").concat(o, "__navigation_arrow_").concat(i, '">') + "" + d.Icon.get("angle-" + u) + "</a>";
  7027. };
  7028. t.default = function(i) {
  7029. if (!i.o.contextMenu) return function() {
  7030. };
  7031. var u = (0, f.makeContextMenu)(i);
  7032. return function(v) {
  7033. var y = (0, a.getItem)(v.target, i.container);
  7034. if (y) {
  7035. var g = y, b = i.options, w = function(C) {
  7036. return (0, h.attr)(g, C) || "";
  7037. };
  7038. return i.async.setTimeout(function() {
  7039. var C = (0, a.elementToItem)(y, (0, c.elementsMap)(i));
  7040. C && (i.state.activeElements = [C], u.show(v.clientX, v.clientY, [!(w("data-is-file") === "1" || !b.editImage || !i.dataProvider.canI("ImageResize") && !i.dataProvider.canI("ImageCrop")) && { icon: "pencil", title: "Edit", exec: function() {
  7041. return s.openImageEditor.call(i, w("href"), w("data-name"), w("data-path"), w("data-source"));
  7042. } }, !!i.dataProvider.canI("FileRename") && { icon: "italic", title: "Rename", exec: function() {
  7043. i.e.fire("fileRename.filebrowser", w("data-name"), w("data-path"), w("data-source"));
  7044. } }, !!i.dataProvider.canI("FileRemove") && { icon: "bin", title: "Delete", exec: function() {
  7045. return n.__awaiter(void 0, void 0, Promise, function() {
  7046. var S;
  7047. return n.__generator(this, function(j) {
  7048. switch (j.label) {
  7049. case 0:
  7050. return j.trys.push([0, 2, , 3]), [4, (0, l.deleteFile)(i, w("data-name"), w("data-source"))];
  7051. case 1:
  7052. return j.sent(), [3, 3];
  7053. case 2:
  7054. return S = j.sent(), [2, i.status(S)];
  7055. case 3:
  7056. return i.state.activeElements = [], [2, (0, p.loadTree)(i).catch(i.status)];
  7057. }
  7058. });
  7059. });
  7060. } }, !!b.preview && { icon: "eye", title: "Preview", exec: function() {
  7061. var S = i.dlg({ buttons: ["fullsize", "dialog.close"] }), j = i.c.div(o, '<div class="jodit-icon_loader"></div>'), E = i.c.div(o + "__box"), x = i.c.fromHTML(r()), k = i.c.fromHTML(r("prev", "left")), I = function(M) {
  7062. var T = i.c.element("img");
  7063. T.setAttribute("src", M);
  7064. var O = function() {
  7065. var L;
  7066. i.isInDestruct || (i.e.off(T, "load"), m.Dom.detach(j), b.showPreviewNavigation && (m.Dom.prevWithClass(g, i.files.getFullElName("item")) && j.appendChild(k), m.Dom.nextWithClass(g, i.files.getFullElName("item")) && j.appendChild(x)), j.appendChild(E), E.appendChild(T), S.setPosition(), (L = i == null ? void 0 : i.events) === null || L === void 0 || L.fire("previewOpenedAndLoaded"));
  7067. };
  7068. i.e.on(T, "load", O), T.complete && O();
  7069. };
  7070. i.e.on([x, k], "click", function() {
  7071. if (!(g = this === x ? m.Dom.nextWithClass(g, i.files.getFullElName("item")) : m.Dom.prevWithClass(g, i.files.getFullElName("item")))) throw (0, h.error)("Need element");
  7072. m.Dom.detach(j), m.Dom.detach(E), j.innerHTML = '<div class="jodit-icon_loader"></div>', I(w("href"));
  7073. }), i.e.on("beforeDestruct", function() {
  7074. S.destruct();
  7075. }), S.container.classList.add(o + "__dialog"), S.setContent(j), S.setPosition(), S.open(), I(w("href")), i.events.on("beforeDestruct", function() {
  7076. S.destruct();
  7077. }).fire("previewOpened");
  7078. } }, { icon: "upload", title: "Download", exec: function() {
  7079. var S = w("href");
  7080. S && i.ow.open(S);
  7081. } }]));
  7082. }, i.defaultTimeout), i.e.on("beforeClose", function() {
  7083. return u.close();
  7084. }).on("beforeDestruct", function() {
  7085. return u.destruct();
  7086. }), v.stopPropagation(), v.preventDefault(), !1;
  7087. }
  7088. };
  7089. };
  7090. }, 66267: function(_, t) {
  7091. Object.defineProperty(t, "__esModule", { value: !0 }), t.elementsMap = void 0;
  7092. var e = /* @__PURE__ */ new WeakMap();
  7093. t.elementsMap = function(n) {
  7094. var m = e.get(n);
  7095. return m || e.set(n, m = {}), m;
  7096. };
  7097. }, 63511: function(_, t, e) {
  7098. Object.defineProperty(t, "__esModule", { value: !0 }), t.FileBrowserItem = void 0;
  7099. var n = e(40332), m = function() {
  7100. function h(f) {
  7101. var d = this;
  7102. this.data = f, Object.keys(f).forEach(function(a) {
  7103. d[a] = f[a];
  7104. });
  7105. }
  7106. return h.create = function(f) {
  7107. return f instanceof h ? f : new h(f);
  7108. }, Object.defineProperty(h.prototype, "path", { get: function() {
  7109. return (0, n.normalizePath)(this.data.source.path ? this.data.source.path + "/" : "/");
  7110. }, enumerable: !1, configurable: !0 }), Object.defineProperty(h.prototype, "imageURL", { get: function() {
  7111. var f = this.time || (/* @__PURE__ */ new Date()).getTime().toString(), d = this.data, a = d.source, s = d.thumb || d.file;
  7112. return d.thumbIsAbsolute && s ? s : (0, n.normalizeUrl)(a.baseurl, a.path, s || "") + "?_tmst=" + encodeURIComponent(f);
  7113. }, enumerable: !1, configurable: !0 }), Object.defineProperty(h.prototype, "fileURL", { get: function() {
  7114. var f = this.data.name, d = this.data, a = d.file, s = d.source;
  7115. return a !== void 0 && (f = a), d.fileIsAbsolute && f ? f : (0, n.normalizeUrl)(s.baseurl, s.path, f || "");
  7116. }, enumerable: !1, configurable: !0 }), Object.defineProperty(h.prototype, "time", { get: function() {
  7117. var f = this.data.changed;
  7118. return f && (typeof f == "number" ? new Date(f).toLocaleString() : f) || "";
  7119. }, enumerable: !1, configurable: !0 }), Object.defineProperty(h.prototype, "uniqueHashKey", { get: function() {
  7120. var f = this.data;
  7121. return [f.sourceName, f.name, f.file, this.time, f.thumb].join("_").toLowerCase().replace(/[^0-9a-z\-.]/g, "-");
  7122. }, enumerable: !1, configurable: !0 }), h.prototype.toJSON = function() {
  7123. return this.data;
  7124. }, h;
  7125. }();
  7126. t.FileBrowserItem = m;
  7127. }, 38097: function(_, t, e) {
  7128. Object.defineProperty(t, "__esModule", { value: !0 });
  7129. var n = e(20255), m = e(93166), h = e(10172), f = e(41374), d = e(6102);
  7130. m.Config.prototype.filebrowser = { namespace: "", extraButtons: [], filter: function(a, s) {
  7131. return s = s.toLowerCase(), (0, h.isString)(a) ? a.toLowerCase().indexOf(s) !== -1 : (0, h.isString)(a.name) ? a.name.toLowerCase().indexOf(s) !== -1 : !(0, h.isString)(a.file) || a.file.toLowerCase().indexOf(s) !== -1;
  7132. }, sortBy: "changed-desc", sort: function(a, s, c) {
  7133. var p = n.__read(c.toLowerCase().split("-"), 2), l = p[0], o = p[1] === "asc", r = function(v, y) {
  7134. return y > v ? o ? -1 : 1 : v > y ? o ? 1 : -1 : 0;
  7135. };
  7136. if ((0, h.isString)(a)) return r(a.toLowerCase(), s.toLowerCase());
  7137. if (a[l] === void 0 || l === "name") return (0, h.isString)(a.name) ? r(a.name.toLowerCase(), s.name.toLowerCase()) : (0, h.isString)(a.file) ? r(a.file.toLowerCase(), s.file.toLowerCase()) : 0;
  7138. switch (l) {
  7139. case "changed":
  7140. var i = new Date(a.changed).getTime(), u = new Date(s.changed).getTime();
  7141. return o ? i - u : u - i;
  7142. case "size":
  7143. return i = (0, d.humanSizeToBytes)(a.size), u = (0, d.humanSizeToBytes)(s.size), o ? i - u : u - i;
  7144. }
  7145. return 0;
  7146. }, 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: function(a) {
  7147. return a.success;
  7148. }, getMessage: function(a) {
  7149. return a.data.messages !== void 0 && (0, h.isArray)(a.data.messages) ? a.data.messages.join(" ") : "";
  7150. }, showFileName: !0, showFileSize: !0, showFileChangeTime: !0, saveStateInStorage: { storeLastOpenedFolder: !0, storeView: !0, storeSortBy: !0 }, pixelOffsetLoadNewChunk: 200, getThumbTemplate: function(a, s, c) {
  7151. var p = this.options, l = this.files.getFullElName("item"), o = p.showFileName, r = p.showFileSize && a.size, i = p.showFileChangeTime && a.time, u = "";
  7152. a.file !== void 0 && (u = a.file);
  7153. var v = '<div class="'.concat(l, '-info">').concat(o ? '<span class="'.concat(l, '-info-filename">').concat(u, "</span>") : "").concat(r ? '<span class="'.concat(l, '-info-filesize">').concat(a.size, "</span>") : "").concat(i ? '<span class="'.concat(l, '-info-filechanged">').concat(i, "</span>") : "", "</div>");
  7154. return `<a
  7155. data-jodit-filebrowser-item="true"
  7156. data-is-file="`.concat(a.isImage ? 0 : 1, `"
  7157. draggable="true"
  7158. class="`).concat(l, `"
  7159. href="`).concat(a.fileURL, `"
  7160. data-source="`).concat(c, `"
  7161. data-path="`).concat(a.path, `"
  7162. data-name="`).concat(u, `"
  7163. title="`).concat(u, `"
  7164. data-url="`).concat(a.fileURL, `">
  7165. <img
  7166. data-is-file="`).concat(a.isImage ? 0 : 1, `"
  7167. data-src="`).concat(a.fileURL, `"
  7168. src="`).concat(a.imageURL, `"
  7169. alt="`).concat(u, `"
  7170. loading="lazy"
  7171. />
  7172. `).concat(o || r || i ? v : "", `
  7173. </a>`);
  7174. }, ajax: n.__assign(n.__assign({}, m.Config.prototype.defaultAjaxOptions), { url: "", data: {}, cache: !0, contentType: "application/x-www-form-urlencoded; charset=UTF-8", method: "POST", processData: !0, headers: {}, prepareData: function(a) {
  7175. return a;
  7176. }, process: function(a) {
  7177. return a;
  7178. } }), 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" } } }, m.Config.prototype.controls.filebrowser = { upload: { icon: "plus", isInput: !0, isDisabled: function(a) {
  7179. return !a.dataProvider.canI("FileUpload");
  7180. }, getContent: function(a) {
  7181. var s = new f.UIFileInput(a, { onlyImages: a.state.onlyImages });
  7182. return a.e.fire("bindUploader.filebrowser", s.container), s.container;
  7183. } }, remove: { icon: "bin", isDisabled: function(a) {
  7184. return !a.state.activeElements.length || !a.dataProvider.canI("FileRemove");
  7185. }, exec: function(a) {
  7186. a.e.fire("fileRemove.filebrowser");
  7187. } }, update: { exec: function(a) {
  7188. a.e.fire("update.filebrowser");
  7189. } }, select: { icon: "check", isDisabled: function(a) {
  7190. return !a.state.activeElements.length;
  7191. }, exec: function(a) {
  7192. a.e.fire("select.filebrowser");
  7193. } }, edit: { icon: "pencil", isDisabled: function(a) {
  7194. var s = a.state.activeElements;
  7195. return s.length !== 1 || !s[0].isImage || !(a.dataProvider.canI("ImageCrop") || a.dataProvider.canI("ImageResize"));
  7196. }, exec: function(a) {
  7197. a.e.fire("edit.filebrowser");
  7198. } }, tiles: { icon: "th", isActive: function(a) {
  7199. return a.state.view === "tiles";
  7200. }, exec: function(a) {
  7201. a.e.fire("view.filebrowser", "tiles");
  7202. } }, list: { icon: "th-list", isActive: function(a) {
  7203. return a.state.view === "list";
  7204. }, exec: function(a) {
  7205. a.e.fire("view.filebrowser", "list");
  7206. } }, filter: { isInput: !0, getContent: function(a, s, c) {
  7207. var p = c.container.querySelector(".jodit-input");
  7208. if (p) return p;
  7209. var l = a.c.element("input", { class: "jodit-input", placeholder: a.i18n("Filter") });
  7210. return l.value = a.state.filterWord, a.e.on(l, "keydown mousedown", a.async.debounce(function() {
  7211. a.e.fire("filter.filebrowser", l.value);
  7212. }, a.defaultTimeout)), l;
  7213. } }, sort: { isInput: !0, getContent: function(a) {
  7214. var s = a.c.fromHTML('<select class="jodit-input jodit-select">' + '<option value="changed-asc">'.concat(a.i18n("Sort by changed"), " (⬆)</option>") + '<option value="changed-desc">'.concat(a.i18n("Sort by changed"), " (⬇)</option>") + '<option value="name-asc">'.concat(a.i18n("Sort by name"), " (⬆)</option>") + '<option value="name-desc">'.concat(a.i18n("Sort by name"), " (⬇)</option>") + '<option value="size-asc">'.concat(a.i18n("Sort by size"), " (⬆)</option>") + '<option value="size-desc">'.concat(a.i18n("Sort by size"), " (⬇)</option>") + "</select>");
  7215. return s.value = a.state.sortBy, a.e.on("sort.filebrowser", function(c) {
  7216. s.value !== c && (s.value = c);
  7217. }).on(s, "change", function() {
  7218. a.e.fire("sort.filebrowser", s.value);
  7219. }), s;
  7220. } } };
  7221. }, 82530: function(_, t, e) {
  7222. Object.defineProperty(t, "__esModule", { value: !0 }), t.DEFAULT_SOURCE_NAME = void 0;
  7223. var n = e(20255), m = e(40332), h = e(30056), f = e(43441), d = e(63511);
  7224. t.DEFAULT_SOURCE_NAME = "default";
  7225. var a = function() {
  7226. function s(c, p) {
  7227. this.parent = c, this.options = p, this.__currentPermissions = null, this.ajaxInstances = /* @__PURE__ */ new Map(), this.progressHandler = function(l) {
  7228. };
  7229. }
  7230. return Object.defineProperty(s.prototype, "o", { get: function() {
  7231. return this.options;
  7232. }, enumerable: !1, configurable: !0 }), s.prototype.get = function(c) {
  7233. var p = this, l = this.ajaxInstances;
  7234. if (l.has(c)) {
  7235. var o = l.get(c);
  7236. o == null || o.abort(), l.delete(c);
  7237. }
  7238. var r = (0, m.ConfigProto)(this.options[c] !== void 0 ? this.options[c] : {}, (0, m.ConfigProto)({ onProgress: this.progressHandler }, this.o.ajax));
  7239. r.prepareData && (r.data = r.prepareData.call(this, r.data));
  7240. var i = new h.Ajax(r);
  7241. l.set(c, i);
  7242. var u = i.send();
  7243. return u.finally(function() {
  7244. i.destruct(), l.delete(c), p.progressHandler(100);
  7245. }).catch(function() {
  7246. return null;
  7247. }), u.then(function(v) {
  7248. return v.json();
  7249. }).then(function(v) {
  7250. if (v && !p.isSuccess(v)) throw new Error(p.getMessage(v));
  7251. return v;
  7252. });
  7253. }, s.prototype.onProgress = function(c) {
  7254. this.progressHandler = c;
  7255. }, s.prototype.permissions = function(c, p) {
  7256. return n.__awaiter(this, void 0, Promise, function() {
  7257. var l = this;
  7258. return n.__generator(this, function(o) {
  7259. return this.o.permissions ? (this.o.permissions.data.path = c, this.o.permissions.data.source = p, this.o.permissions.url ? [2, this.get("permissions").then(function(r) {
  7260. var i = l.o.permissions.process;
  7261. if (i || (i = l.o.ajax.process), i) {
  7262. var u = i.call(self, r);
  7263. u.data.permissions && (l.__currentPermissions = u.data.permissions);
  7264. }
  7265. return l.__currentPermissions;
  7266. })] : [2, null]) : [2, null];
  7267. });
  7268. });
  7269. }, s.prototype.canI = function(c) {
  7270. var p = "allow" + c, l = this.o.permissionsPresets[p];
  7271. return l !== void 0 ? l : this.__currentPermissions == null || this.__currentPermissions[p] === void 0 || this.__currentPermissions[p];
  7272. }, s.prototype.__items = function(c, p, l, o) {
  7273. var r = this, i = this.options;
  7274. return i.items ? (i.items.data.path = c, i.items.data.source = p, i.items.data.mods = l, this.get("items").then(function(u) {
  7275. var v = r.o.items.process;
  7276. return v || (v = r.o.ajax.process), v && (u = v.call(self, u)), o(u);
  7277. })) : Promise.reject("Set Items api options");
  7278. }, s.prototype.items = function(c, p, l) {
  7279. var o = this;
  7280. return l === void 0 && (l = {}), this.__items(c, p, l, function(r) {
  7281. return o.generateItemsList(r.data.sources, l);
  7282. });
  7283. }, s.prototype.itemsEx = function(c, p, l) {
  7284. var o = this;
  7285. return l === void 0 && (l = {}), this.__items(c, p, l, function(r) {
  7286. return { items: o.generateItemsList(r.data.sources, l), loadedTotal: (i = r.data.sources, i.reduce(function(u, v) {
  7287. return u + v.files.length;
  7288. }, 0)) };
  7289. var i;
  7290. });
  7291. }, s.prototype.generateItemsList = function(c, p) {
  7292. var l = this;
  7293. p === void 0 && (p = {});
  7294. var o = [];
  7295. return c.forEach(function(r) {
  7296. if (r.files && r.files.length) {
  7297. var i = l.o.sort;
  7298. (0, m.isFunction)(i) && p.sortBy && r.files.sort(function(u, v) {
  7299. return i(u, v, p.sortBy);
  7300. }), r.files.forEach(function(u) {
  7301. (function(v) {
  7302. var y;
  7303. return !(!((y = p.filterWord) === null || y === void 0) && y.length) || l.o.filter === void 0 || l.o.filter(v, p.filterWord);
  7304. })(u) && function(v) {
  7305. return v.type === "folder" || !p.onlyImages || v.isImage === void 0 || v.isImage;
  7306. }(u) && o.push(d.FileBrowserItem.create(n.__assign(n.__assign({}, u), { sourceName: r.name, source: r })));
  7307. });
  7308. }
  7309. }), o;
  7310. }, s.prototype.tree = function(c, p) {
  7311. return n.__awaiter(this, void 0, Promise, function() {
  7312. var l = this;
  7313. return n.__generator(this, function(o) {
  7314. switch (o.label) {
  7315. case 0:
  7316. return c = (0, m.normalizeRelativePath)(c), this.o.folder ? [4, this.permissions(c, p)] : [2, Promise.reject("Set Folder Api options")];
  7317. case 1:
  7318. return o.sent(), this.o.folder.data.path = c, this.o.folder.data.source = p, [2, this.get("folder").then(function(r) {
  7319. var i = l.o.folder.process;
  7320. return i || (i = l.o.ajax.process), i && (r = i.call(self, r)), r.data.sources;
  7321. })];
  7322. }
  7323. });
  7324. });
  7325. }, s.prototype.getPathByUrl = function(c) {
  7326. var p = this;
  7327. return (0, m.set)("options.getLocalFileByUrl.data.url", c, this), this.get("getLocalFileByUrl").then(function(l) {
  7328. if (p.isSuccess(l)) return l.data;
  7329. throw (0, m.error)(p.getMessage(l));
  7330. });
  7331. }, s.prototype.createFolder = function(c, p, l) {
  7332. var o = this, r = this.o.create;
  7333. if (!r) throw (0, m.error)("Set Create api options");
  7334. return r.data.source = l, r.data.path = p, r.data.name = c, this.get("create").then(function(i) {
  7335. if (o.isSuccess(i)) return !0;
  7336. throw (0, m.error)(o.getMessage(i));
  7337. });
  7338. }, s.prototype.move = function(c, p, l, o) {
  7339. var r = this, i = o ? "fileMove" : "folderMove", u = this.options[i];
  7340. if (!u) throw (0, m.error)("Set Move api options");
  7341. return u.data.from = c, u.data.path = p, u.data.source = l, this.get(i).then(function(v) {
  7342. if (r.isSuccess(v)) return !0;
  7343. throw (0, m.error)(r.getMessage(v));
  7344. });
  7345. }, s.prototype.remove = function(c, p, l, o) {
  7346. var r = this, i = this.o[c];
  7347. if (!i) throw (0, m.error)('Set "'.concat(c, '" api options'));
  7348. return i.data.path = p, i.data.name = l, i.data.source = o, this.get(c).then(function(u) {
  7349. return i.process && (u = i.process.call(r, u)), r.getMessage(u);
  7350. });
  7351. }, s.prototype.fileRemove = function(c, p, l) {
  7352. return this.remove("fileRemove", c, p, l);
  7353. }, s.prototype.folderRemove = function(c, p, l) {
  7354. return this.remove("folderRemove", c, p, l);
  7355. }, s.prototype.rename = function(c, p, l, o, r) {
  7356. var i = this, u = this.o[c];
  7357. if (!u) throw (0, m.error)('Set "'.concat(c, '" api options'));
  7358. return u.data.path = p, u.data.name = l, u.data.newname = o, u.data.source = r, this.get(c).then(function(v) {
  7359. return u.process && (v = u.process.call(self, v)), i.getMessage(v);
  7360. });
  7361. }, s.prototype.folderRename = function(c, p, l, o) {
  7362. return this.rename("folderRename", c, p, l, o);
  7363. }, s.prototype.fileRename = function(c, p, l, o) {
  7364. return this.rename("fileRename", c, p, l, o);
  7365. }, s.prototype.changeImage = function(c, p, l, o, r, i) {
  7366. this.o[c] || (this.o[c] = { data: {} });
  7367. var u = this.o[c];
  7368. return u.data === void 0 && (u.data = { action: c }), u.data.newname = r || o, i && (u.data.box = i), u.data.path = p, u.data.name = o, u.data.source = l, this.get(c).then(function() {
  7369. return !0;
  7370. });
  7371. }, s.prototype.crop = function(c, p, l, o, r) {
  7372. return this.changeImage("crop", c, p, l, o, r);
  7373. }, s.prototype.resize = function(c, p, l, o, r) {
  7374. return this.changeImage("resize", c, p, l, o, r);
  7375. }, s.prototype.getMessage = function(c) {
  7376. return this.options.getMessage(c);
  7377. }, s.prototype.isSuccess = function(c) {
  7378. return this.options.isSuccess(c);
  7379. }, s.prototype.destruct = function() {
  7380. this.ajaxInstances.forEach(function(c) {
  7381. return c.destruct();
  7382. }), this.ajaxInstances.clear();
  7383. }, n.__decorate([f.autobind], s);
  7384. }();
  7385. t.default = a;
  7386. }, 46341: function(_, t, e) {
  7387. Object.defineProperty(t, "__esModule", { value: !0 }), t.makeContextMenu = t.makeDataProvider = void 0;
  7388. var n = e(82530), m = e(60403);
  7389. t.makeDataProvider = function(h, f) {
  7390. return new n.default(h, f);
  7391. }, t.makeContextMenu = function(h) {
  7392. return new m.ContextMenu(h);
  7393. };
  7394. }, 48096: function(_, t) {
  7395. Object.defineProperty(t, "__esModule", { value: !0 }), t.deleteFile = void 0, t.deleteFile = function(e, n, m) {
  7396. return e.dataProvider.fileRemove(e.state.currentPath, n, m).then(function(h) {
  7397. e.status(h || e.i18n('File "%s" was deleted', n), !0);
  7398. }).catch(e.status);
  7399. };
  7400. }, 4253: function(_, t) {
  7401. Object.defineProperty(t, "__esModule", { value: !0 }), t.loadItems = void 0, t.loadItems = function(e) {
  7402. 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(function(n) {
  7403. n && (e.state.elements = n, e.state.activeElements = []);
  7404. }).catch(e.status).finally(function() {
  7405. return e.files.setMod("loading", !1);
  7406. });
  7407. };
  7408. }, 36303: function(_, t, e) {
  7409. Object.defineProperty(t, "__esModule", { value: !0 }), t.loadTree = void 0;
  7410. var n = e(20255), m = e(64968), h = e(4253);
  7411. t.loadTree = function(f) {
  7412. return n.__awaiter(this, void 0, Promise, function() {
  7413. var d, a;
  7414. return n.__generator(this, function(s) {
  7415. return f.tree.setMod("active", !0), m.Dom.detach(f.tree.container), d = (0, h.loadItems)(f), f.o.showFoldersPanel ? (f.tree.setMod("loading", !0), a = f.dataProvider.tree(f.state.currentPath, f.state.currentSource).then(function(c) {
  7416. f.state.sources = c;
  7417. }).catch(f.status).finally(function() {
  7418. return f.tree.setMod("loading", !1);
  7419. }), [2, Promise.all([a, d])]) : (f.tree.setMod("active", !1), [2, d]);
  7420. });
  7421. });
  7422. };
  7423. }, 50885: function(_, t, e) {
  7424. Object.defineProperty(t, "__esModule", { value: !0 }), t.isFileBrowserFilesItem = t.FileBrowser = void 0;
  7425. var n = e(20255);
  7426. e(40692);
  7427. var m = e(93166), h = e(86893), f = e(77462), d = e(40332), a = e(64968), s = e(46341), c = e(86774), p = e(21347), l = e(44734), o = e(82530), r = e(43441), i = e(98782), u = e(55395), v = e(36303), y = e(4253), g = e(56562), b = e(59829), w = e(43608);
  7428. e(38097);
  7429. var C = function(S) {
  7430. function j(E) {
  7431. var x, k = this;
  7432. (k = S.call(this, E) || this).browser = k.c.div(k.componentName), k.status_line = k.c.div(k.getFullElName("status")), k.tree = new i.FileBrowserTree(k), k.files = new i.FileBrowserFiles(k), k.state = (0, u.observable)({ currentPath: "", currentSource: o.DEFAULT_SOURCE_NAME, currentBaseUrl: "", activeElements: [], elements: [], sources: [], view: "tiles", sortBy: "changed-desc", filterWord: "", onlyImages: !1 }), k.errorHandler = function(U) {
  7433. (0, d.isAbort)(U) || (U instanceof Error ? k.status(k.i18n(U.message)) : k.status(k.dataProvider.getMessage(U)));
  7434. }, k.close = function() {
  7435. k._dialog.close();
  7436. }, k.attachEvents(E);
  7437. var I = k;
  7438. I.options = (0, d.ConfigProto)(E || {}, m.Config.defaultOptions.filebrowser), I.storage = f.Storage.makeStorage(!!k.o.saveStateInStorage, k.componentName), I.dataProvider = (0, s.makeDataProvider)(I, I.options), I._dialog = k.dlg({ minWidth: Math.min(700, screen.width), minHeight: 300, buttons: (x = k.o.headerButtons) !== null && x !== void 0 ? x : ["fullsize", "dialog.close"] }), k.proxyDialogEvents(I), I.browser.component = k, I.container = I.browser, I.o.showFoldersPanel && I.browser.appendChild(I.tree.container), I.browser.appendChild(I.files.container), I.browser.appendChild(I.status_line), l.selfListeners.call(I), p.nativeListeners.call(I), c.stateListeners.call(I), I._dialog.setSize(I.o.width, I.o.height), ["getLocalFileByUrl", "crop", "resize", "create", "fileMove", "folderMove", "fileRename", "folderRename", "fileRemove", "folderRemove", "folder", "items", "permissions"].forEach(function(U) {
  7439. k.options[U] != null && (k.options[U] = (0, d.ConfigProto)(k.options[U], k.o.ajax));
  7440. });
  7441. var M = k.o.saveStateInStorage || { storeLastOpenedFolder: !1, storeView: !1, storeSortBy: !1 }, T = M.storeSortBy, O = M.storeLastOpenedFolder, L = M.storeView && k.storage.get("view");
  7442. I.state.view = L && k.o.view == null ? L === "list" ? "list" : "tiles" : I.o.view === "list" ? "list" : "tiles", I.files.setMod("view", I.state.view);
  7443. var N = T && I.storage.get("sortBy");
  7444. if (N) {
  7445. var H = N.split("-");
  7446. I.state.sortBy = ["changed", "name", "size"].includes(H[0]) ? N : "changed-desc";
  7447. } else I.state.sortBy = I.o.sortBy || "changed-desc";
  7448. if (O) {
  7449. var q = I.storage.get("currentPath"), F = I.storage.get("currentSource");
  7450. I.state.currentPath = q != null ? q : "", I.state.currentSource = F != null ? F : "";
  7451. }
  7452. return I.initUploader(I), I.setStatus(g.STATUSES.ready), k;
  7453. }
  7454. return n.__extends(j, S), j.prototype.className = function() {
  7455. return "Filebrowser";
  7456. }, j.prototype.onSelect = function(E) {
  7457. var x = this;
  7458. return function() {
  7459. if (x.state.activeElements.length) {
  7460. var k = [], I = [];
  7461. x.state.activeElements.forEach(function(T) {
  7462. var O = T.fileURL;
  7463. O && (k.push(O), I.push(T.isImage || !1));
  7464. }), x.close();
  7465. var M = { baseurl: "", files: k, isImages: I };
  7466. (0, d.isFunction)(E) && E(M), x.close();
  7467. }
  7468. return !1;
  7469. };
  7470. }, Object.defineProperty(j.prototype, "isOpened", { get: function() {
  7471. return this._dialog.isOpened && this.browser.style.display !== "none";
  7472. }, enumerable: !1, configurable: !0 }), j.prototype.status = function(E, x) {
  7473. E && !(0, d.isAbort)(E) && ((0, d.isString)(E) || (E = E.message), (0, d.isString)(E) && (0, d.trim)(E).length && this.message.message(E, x ? "success" : "error", this.o.howLongShowMsg));
  7474. }, j.prototype.open = function(E, x) {
  7475. var k = this;
  7476. return E === void 0 && (E = this.o.defaultCallback), x === void 0 && (x = !1), this.state.onlyImages = x, this.async.promise(function(I, M) {
  7477. if (!k.o.items || !k.o.items.url) throw (0, d.error)("Need set options.filebrowser.ajax.url");
  7478. var T = 0;
  7479. k.e.off(k.files.container, "dblclick").on(k.files.container, "dblclick", k.onSelect(E)).on(k.files.container, "touchstart", function() {
  7480. var L = (/* @__PURE__ */ new Date()).getTime();
  7481. h.EMULATE_DBLCLICK_TIMEOUT > L - T && k.onSelect(E)(), T = L;
  7482. }).off("select.filebrowser").on("select.filebrowser", k.onSelect(E));
  7483. var O = k.c.div();
  7484. k.toolbar.build(k.__getButtons()).appendTo(O), k._dialog.open(k.browser, O), k.e.fire("sort.filebrowser", k.state.sortBy), (0, v.loadTree)(k).then(I, M);
  7485. });
  7486. }, j.prototype.__getButtons = function() {
  7487. var E, x = this;
  7488. return ((E = this.o.buttons) !== null && E !== void 0 ? E : []).filter(function(k) {
  7489. if (!(0, d.isString)(k)) return !0;
  7490. switch (k) {
  7491. case "filebrowser.upload":
  7492. return x.dataProvider.canI("FileUpload");
  7493. case "filebrowser.edit":
  7494. return x.dataProvider.canI("ImageResize") || x.dataProvider.canI("ImageCrop");
  7495. case "filebrowser.remove":
  7496. return x.dataProvider.canI("FileRemove");
  7497. }
  7498. return !0;
  7499. });
  7500. }, j.prototype.initUploader = function(E) {
  7501. var x, k = this, I = this, M = (x = E == null ? void 0 : E.options) === null || x === void 0 ? void 0 : x.uploader, T = (0, d.ConfigProto)(M || {}, m.Config.defaultOptions.uploader), O = function() {
  7502. return (0, y.loadItems)(k);
  7503. };
  7504. I.uploader = I.getInstance("Uploader", T), I.uploader.setPath(I.state.currentPath).setSource(I.state.currentSource).bind(I.browser, O, I.errorHandler), this.state.on(["change.currentPath", "change.currentSource"], function() {
  7505. k.uploader.setPath(k.state.currentPath).setSource(k.state.currentSource);
  7506. }), I.e.on("bindUploader.filebrowser", function(L) {
  7507. I.uploader.bind(L, O, I.errorHandler);
  7508. });
  7509. }, j.prototype.proxyDialogEvents = function(E) {
  7510. var x = this;
  7511. ["afterClose", "beforeOpen"].forEach(function(k) {
  7512. E._dialog.events.on(E.dlg, k, function() {
  7513. x.e.fire(k);
  7514. });
  7515. });
  7516. }, j.prototype.destruct = function() {
  7517. this.isInDestruct || (S.prototype.destruct.call(this), this._dialog.destruct(), this.events && this.e.off(".filebrowser"), this.uploader && this.uploader.destruct());
  7518. }, n.__decorate([r.autobind], j.prototype, "status", null), n.__decorate([r.autobind], j.prototype, "open", null), n.__decorate([(0, r.derive)(b.Dlgs)], j);
  7519. }(w.ViewWithToolbar);
  7520. t.FileBrowser = C, t.isFileBrowserFilesItem = function(S) {
  7521. return a.Dom.isElement(S) && S.classList.contains(i.FileBrowserFiles.prototype.getFullElName("item"));
  7522. };
  7523. }, 63463: function(_, t, e) {
  7524. Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(50885), t);
  7525. }, 21347: function(_, t, e) {
  7526. Object.defineProperty(t, "__esModule", { value: !0 }), t.nativeListeners = t.elementToItem = t.getItem = void 0;
  7527. var n = e(20255), m = e(40332), h = e(34468), f = e(64968), d = e(66267), a = e(36303);
  7528. t.getItem = function(s, c, p) {
  7529. return p === void 0 && (p = "a"), f.Dom.closest(s, function(l) {
  7530. return f.Dom.isTag(l, p);
  7531. }, c);
  7532. }, t.elementToItem = function(s, c) {
  7533. return c[s.dataset.key || ""].item;
  7534. }, t.nativeListeners = function() {
  7535. var s = this, c = !1, p = (0, d.elementsMap)(this), l = this;
  7536. l.e.on(l.tree.container, "dragstart", function(o) {
  7537. var r = (0, t.getItem)(o.target, l.container);
  7538. r && l.o.moveFolder && (c = r);
  7539. }).on(l.tree.container, "drop", function(o) {
  7540. if ((l.o.moveFile || l.o.moveFolder) && c) {
  7541. var r = (0, m.attr)(c, "-path") || "";
  7542. if (!l.o.moveFolder && c.classList.contains(s.tree.getFullElName("item")) || c.classList.contains(s.files.getFullElName("item")) && (r += (0, m.attr)(c, "-name"), !l.o.moveFile)) return !1;
  7543. var i = (0, t.getItem)(o.target, l.container);
  7544. if (!i) return;
  7545. l.dataProvider.move(r, (0, m.attr)(i, "-path") || "", (0, m.attr)(i, "-source") || "", c.classList.contains(s.files.getFullElName("item"))).then(function() {
  7546. return (0, a.loadTree)(s);
  7547. }).catch(l.status), c = !1;
  7548. }
  7549. }).on(l.files.container, "contextmenu", (0, h.default)(l)).on(l.files.container, "click", function(o) {
  7550. (0, m.ctrlKey)(o) || (s.state.activeElements = []);
  7551. }).on(l.files.container, "click", function(o) {
  7552. var r = (0, t.getItem)(o.target, l.container);
  7553. if (r) {
  7554. var i = (0, t.elementToItem)(r, p);
  7555. if (i) return l.state.activeElements = (0, m.ctrlKey)(o) ? n.__spreadArray(n.__spreadArray([], n.__read(l.state.activeElements), !1), [i], !1) : [i], o.stopPropagation(), !1;
  7556. }
  7557. }).on(l.files.container, "dragstart", function(o) {
  7558. if (l.o.moveFile) {
  7559. var r = (0, t.getItem)(o.target, l.container);
  7560. if (!r) return;
  7561. c = r;
  7562. }
  7563. }).on(l.container, "drop", function(o) {
  7564. return o.preventDefault();
  7565. });
  7566. };
  7567. }, 44734: function(_, t, e) {
  7568. Object.defineProperty(t, "__esModule", { value: !0 }), t.selfListeners = void 0;
  7569. var n = e(20255), m = e(10172), h = e(40332), f = e(82530), d = e(35503), a = e(36303), s = e(4253), c = e(48096);
  7570. t.selfListeners = function() {
  7571. var p = this, l = this.state, o = this.dataProvider, r = this;
  7572. r.e.on("view.filebrowser", function(i) {
  7573. i !== l.view && (l.view = i);
  7574. }).on("sort.filebrowser", function(i) {
  7575. i !== l.sortBy && (l.sortBy = i, (0, s.loadItems)(r));
  7576. }).on("filter.filebrowser", function(i) {
  7577. i !== l.filterWord && (l.filterWord = i, (0, s.loadItems)(r));
  7578. }).on("openFolder.filebrowser", function(i) {
  7579. var u;
  7580. u = i.name === ".." ? i.path.split("/").filter(function(v) {
  7581. return v.length;
  7582. }).slice(0, -1).join("/") : (0, h.normalizePath)(i.path, i.name), r.state.currentPath = u, r.state.currentSource = i.name === "." ? f.DEFAULT_SOURCE_NAME : i.source;
  7583. }).on("removeFolder.filebrowser", function(i) {
  7584. r.confirm("Are you sure?", "Delete", function(u) {
  7585. u && o.folderRemove(i.path, i.name, i.source).then(function(v) {
  7586. return r.status(v, !0), (0, a.loadTree)(r);
  7587. }).catch(r.status);
  7588. });
  7589. }).on("renameFolder.filebrowser", function(i) {
  7590. r.prompt("Enter new name", "Rename", function(u) {
  7591. if (!(0, m.isValidName)(u)) return r.status(r.i18n("Enter new name")), !1;
  7592. o.folderRename(i.path, i.name, u, i.source).then(function(v) {
  7593. return r.state.activeElements = [], r.status(v, !0), (0, a.loadTree)(r);
  7594. }).catch(r.status);
  7595. }, "type name", i.name);
  7596. }).on("addFolder.filebrowser", function(i) {
  7597. r.prompt("Enter Directory name", "Create directory", function(u) {
  7598. o.createFolder(u, i.path, i.source).then(function() {
  7599. return (0, a.loadTree)(r);
  7600. }).catch(r.status);
  7601. }, "type name");
  7602. }).on("fileRemove.filebrowser", function() {
  7603. r.state.activeElements.length && r.confirm("Are you sure?", "", function(i) {
  7604. if (i) {
  7605. var u = [];
  7606. r.state.activeElements.forEach(function(v) {
  7607. u.push((0, c.deleteFile)(r, v.file || v.name || "", v.sourceName));
  7608. }), r.state.activeElements = [], Promise.all(u).then(function() {
  7609. return (0, a.loadTree)(r).catch(r.status);
  7610. }, r.status);
  7611. }
  7612. });
  7613. }).on("edit.filebrowser", function() {
  7614. if (r.state.activeElements.length === 1) {
  7615. var i = n.__read(p.state.activeElements, 1)[0];
  7616. d.openImageEditor.call(r, i.fileURL, i.file || "", i.path, i.sourceName);
  7617. }
  7618. }).on("fileRename.filebrowser", function(i, u, v) {
  7619. r.state.activeElements.length === 1 && r.prompt("Enter new name", "Rename", function(y) {
  7620. if (!(0, m.isValidName)(y)) return r.status(r.i18n("Enter new name")), !1;
  7621. o.fileRename(u, i, y, v).then(function(g) {
  7622. r.state.activeElements = [], r.status(g, !0), (0, s.loadItems)(r);
  7623. }).catch(r.status);
  7624. }, "type name", i);
  7625. }).on("update.filebrowser", function() {
  7626. (0, a.loadTree)(p).then(p.status, p.status);
  7627. });
  7628. };
  7629. }, 86774: function(_, t, e) {
  7630. Object.defineProperty(t, "__esModule", { value: !0 }), t.stateListeners = void 0;
  7631. var n = e(64968), m = e(89693), h = e(2074), f = e(66267), d = e(36303);
  7632. t.stateListeners = function() {
  7633. var a = this, s = (0, f.elementsMap)(this), c = this, p = c.state, l = c.files, o = c.create, r = c.options;
  7634. p.on(["change.currentPath", "change.currentSource"], this.async.debounce(function() {
  7635. a.o.saveStateInStorage && a.o.saveStateInStorage.storeLastOpenedFolder && a.storage.set("currentPath", a.state.currentPath).set("currentSource", a.state.currentSource), (0, d.loadTree)(a).catch(a.status);
  7636. }, this.defaultTimeout)).on("beforeChange.activeElements", function() {
  7637. p.activeElements.forEach(function(i) {
  7638. var u = s[i.uniqueHashKey].elm;
  7639. u && u.classList.remove(l.getFullElName("item", "active", !0));
  7640. });
  7641. }).on("change.activeElements", function() {
  7642. a.e.fire("changeSelection"), p.activeElements.forEach(function(i) {
  7643. var u = s[i.uniqueHashKey].elm;
  7644. u && u.classList.add(l.getFullElName("item", "active", !0));
  7645. });
  7646. }).on("change.view", function() {
  7647. l.setMod("view", p.view), a.o.saveStateInStorage && a.o.saveStateInStorage.storeView && a.storage.set("view", p.view);
  7648. }).on("change.sortBy", function() {
  7649. a.o.saveStateInStorage && a.o.saveStateInStorage.storeSortBy && a.storage.set("sortBy", p.sortBy);
  7650. }).on("change.elements", this.async.debounce(function() {
  7651. n.Dom.detach(l.container), p.elements.length ? p.elements.forEach(function(i) {
  7652. a.files.container.appendChild(function(u) {
  7653. var v = u.uniqueHashKey;
  7654. if (s[v]) return s[v].elm;
  7655. var y = o.fromHTML(r.getThumbTemplate.call(a, u, u.source, u.sourceName.toString()));
  7656. return y.dataset.key = v, s[v] = { item: u, elm: y }, s[v].elm;
  7657. }(i));
  7658. }) : l.container.appendChild(o.div(a.componentName + "_no-files_true", a.i18n("There are no files")));
  7659. }, this.defaultTimeout)).on("change.sources", this.async.debounce(function() {
  7660. n.Dom.detach(a.tree.container), p.sources.forEach(function(i) {
  7661. var u = i.name;
  7662. if (u && u !== "default" && a.tree.container.appendChild(o.div(a.tree.getFullElName("source-title"), u)), i.folders.forEach(function(y) {
  7663. var g, b = o.a(a.tree.getFullElName("item"), { draggable: "draggable", href: "#", "data-path": (0, m.normalizePath)(i.path, y + "/"), "data-name": y, "data-source": u, "data-source-path": i.path }, o.span(a.tree.getFullElName("item-title"), y)), w = function(C) {
  7664. return function(S) {
  7665. a.e.fire("".concat(C, ".filebrowser"), { name: y, path: (0, m.normalizePath)(i.path + "/"), source: u }), S.stopPropagation(), S.preventDefault();
  7666. };
  7667. };
  7668. a.e.on(b, "click", w("openFolder")), a.tree.container.appendChild(b), y !== ".." && y !== "." && (r.renameFolder && a.dataProvider.canI("FolderRename") && ((g = (0, h.Button)(a, { icon: { name: "pencil" }, name: "rename", tooltip: "Rename", size: "tiny" })).onAction(w("renameFolder")), b.appendChild(g.container)), r.deleteFolder && a.dataProvider.canI("FolderRemove") && ((g = (0, h.Button)(a, { icon: { name: "cancel" }, name: "remove", tooltip: "Delete", size: "tiny" })).onAction(w("removeFolder")), b.appendChild(g.container)));
  7669. }), r.createNewFolder && a.dataProvider.canI("FolderCreate")) {
  7670. var v = (0, h.Button)(a, "plus", "Add folder", "secondary");
  7671. v.onAction(function() {
  7672. a.e.fire("addFolder", { path: (0, m.normalizePath)(i.path + "/"), source: u });
  7673. }), a.tree.append(v);
  7674. }
  7675. });
  7676. }, this.defaultTimeout));
  7677. };
  7678. }, 21505: function(_, t, e) {
  7679. Object.defineProperty(t, "__esModule", { value: !0 }), t.FileBrowserFiles = void 0;
  7680. var n = e(20255);
  7681. e(27452);
  7682. var m = function(h) {
  7683. function f() {
  7684. return h !== null && h.apply(this, arguments) || this;
  7685. }
  7686. return n.__extends(f, h), f.prototype.className = function() {
  7687. return "FilebrowserFiles";
  7688. }, f;
  7689. }(e(2074).UIGroup);
  7690. t.FileBrowserFiles = m;
  7691. }, 98782: function(_, t, e) {
  7692. Object.defineProperty(t, "__esModule", { value: !0 });
  7693. var n = e(20255);
  7694. n.__exportStar(e(21505), t), n.__exportStar(e(42472), t);
  7695. }, 42472: function(_, t, e) {
  7696. Object.defineProperty(t, "__esModule", { value: !0 }), t.FileBrowserTree = void 0;
  7697. var n = e(20255);
  7698. e(51422);
  7699. var m = function(h) {
  7700. function f() {
  7701. return h !== null && h.apply(this, arguments) || this;
  7702. }
  7703. return n.__extends(f, h), f.prototype.className = function() {
  7704. return "FilebrowserTree";
  7705. }, f;
  7706. }(e(2074).UIGroup);
  7707. t.FileBrowserTree = m;
  7708. }, 3107: function(_, t) {
  7709. Object.defineProperty(t, "__esModule", { value: !0 }), t.Command = void 0;
  7710. var e = function() {
  7711. function n(m, h, f, d) {
  7712. this.oldValue = m, this.newValue = h, this.history = f, this.tick = d;
  7713. }
  7714. return n.prototype.undo = function() {
  7715. this.history.snapshot.restore(this.oldValue);
  7716. }, n.prototype.redo = function() {
  7717. this.history.snapshot.restore(this.newValue);
  7718. }, n;
  7719. }();
  7720. t.Command = e;
  7721. }, 15432: function(_, t, e) {
  7722. Object.defineProperty(t, "__esModule", { value: !0 }), t.History = void 0;
  7723. var n = e(20255), m = e(93166), h = e(56562), f = e(31648), d = e(3621), a = e(3107), s = e(43441);
  7724. m.Config.prototype.history = { enable: !0, maxHistoryLength: 1 / 0, timeout: 1e3 }, m.Config.prototype.observer = m.Config.prototype.history;
  7725. var c = function(p) {
  7726. function l(o, r, i) {
  7727. r === void 0 && (r = new d.Stack(o.o.history.maxHistoryLength)), i === void 0 && (i = new f.Snapshot(o));
  7728. var u = p.call(this, o) || this;
  7729. return u.updateTick = 0, u.__stack = r, u.snapshot = i, o.o.history.enable && o.e.on("afterAddPlace.history", function() {
  7730. u.isInDestruct || (u.startValue = u.snapshot.make(), o.events.on("internalChange internalUpdate", function() {
  7731. u.startValue = u.snapshot.make();
  7732. }).on(o.editor, ["changeSelection", "selectionstart", "selectionchange", "mousedown", "mouseup", "keydown", "keyup"].map(function(v) {
  7733. return v + ".history";
  7734. }).join(" "), function() {
  7735. u.startValue.html === u.j.getNativeEditorValue() && (u.startValue = u.snapshot.make());
  7736. }).on(u, "change.history", u.onChange));
  7737. }), u;
  7738. }
  7739. return n.__extends(l, p), l.prototype.className = function() {
  7740. return "History";
  7741. }, Object.defineProperty(l.prototype, "startValue", { get: function() {
  7742. return this.__startValue;
  7743. }, set: function(o) {
  7744. this.__startValue = o;
  7745. }, enumerable: !1, configurable: !0 }), l.prototype.__upTick = function() {
  7746. this.updateTick += 1;
  7747. }, l.prototype.onChange = function() {
  7748. this.__processChanges();
  7749. }, l.prototype.__processChanges = function() {
  7750. !this.snapshot.isBlocked && this.j.o.history.enable && this.updateStack();
  7751. }, l.prototype.updateStack = function(o) {
  7752. o === void 0 && (o = !1);
  7753. var r = this.snapshot.make();
  7754. if (!f.Snapshot.equal(r, this.startValue)) {
  7755. var i = new a.Command(this.startValue, r, this, this.updateTick);
  7756. if (o) {
  7757. var u = this.__stack.current();
  7758. u && this.updateTick === u.tick && this.__stack.replace(i);
  7759. } else this.__stack.push(i);
  7760. this.startValue = r, this.fireChangeStack();
  7761. }
  7762. }, l.prototype.redo = function() {
  7763. this.__stack.redo() && (this.startValue = this.snapshot.make(), this.fireChangeStack());
  7764. }, l.prototype.canRedo = function() {
  7765. return this.__stack.canRedo();
  7766. }, l.prototype.undo = function() {
  7767. this.__stack.undo() && (this.startValue = this.snapshot.make(), this.fireChangeStack());
  7768. }, l.prototype.canUndo = function() {
  7769. return this.__stack.canUndo();
  7770. }, l.prototype.clear = function() {
  7771. this.startValue = this.snapshot.make(), this.__stack.clear(), this.fireChangeStack();
  7772. }, Object.defineProperty(l.prototype, "length", { get: function() {
  7773. return this.__stack.length;
  7774. }, enumerable: !1, configurable: !0 }), l.prototype.fireChangeStack = function() {
  7775. var o;
  7776. this.j && !this.j.isInDestruct && ((o = this.j.events) === null || o === void 0 || o.fire("changeStack"));
  7777. }, l.prototype.destruct = function() {
  7778. this.isInDestruct || (this.j.events && this.j.e.off(".history"), this.snapshot.destruct(), p.prototype.destruct.call(this));
  7779. }, n.__decorate([(0, s.debounce)()], l.prototype, "onChange", null), l;
  7780. }(h.ViewComponent);
  7781. t.History = c;
  7782. }, 31648: function(_, t, e) {
  7783. Object.defineProperty(t, "__esModule", { value: !0 }), t.Snapshot = void 0;
  7784. var n = e(20255), m = e(56562), h = e(64968), f = e(86893), d = function(a) {
  7785. function s() {
  7786. var c = a !== null && a.apply(this, arguments) || this;
  7787. return c.__isBlocked = !1, c;
  7788. }
  7789. return n.__extends(s, a), s.prototype.className = function() {
  7790. return "Snapshot";
  7791. }, s.equal = function(c, p) {
  7792. return c.html === p.html && JSON.stringify(c.range) === JSON.stringify(p.range);
  7793. }, s.countNodesBeforeInParent = function(c) {
  7794. if (!c.parentNode) return 0;
  7795. for (var p = c.parentNode.childNodes, l = 0, o = null, r = 0; p.length > r; r += 1) {
  7796. if (!o || this.isIgnoredNode(p[r]) || h.Dom.isText(o) && h.Dom.isText(p[r]) || (l += 1), p[r] === c) return l;
  7797. o = p[r];
  7798. }
  7799. return 0;
  7800. }, s.strokeOffset = function(c, p) {
  7801. for (; h.Dom.isText(c); ) h.Dom.isText(c = c.previousSibling) && c.nodeValue && (p += c.nodeValue.length);
  7802. return p;
  7803. }, s.prototype.calcHierarchyLadder = function(c) {
  7804. var p = [];
  7805. if (!c || !c.parentNode || !h.Dom.isOrContains(this.j.editor, c)) return [];
  7806. for (; c && c !== this.j.editor; ) c && !s.isIgnoredNode(c) && p.push(s.countNodesBeforeInParent(c)), c = c.parentNode;
  7807. return p.reverse();
  7808. }, s.prototype.getElementByLadder = function(c) {
  7809. var p, l = this.j.editor;
  7810. for (p = 0; l && c.length > p; p += 1) l = l.childNodes[c[p]];
  7811. return l;
  7812. }, Object.defineProperty(s.prototype, "isBlocked", { get: function() {
  7813. return this.__isBlocked;
  7814. }, enumerable: !1, configurable: !0 }), s.prototype.__block = function(c) {
  7815. this.__isBlocked = c;
  7816. }, s.prototype.transaction = function(c) {
  7817. this.__block(!0);
  7818. try {
  7819. c();
  7820. } catch (p) {
  7821. }
  7822. this.__block(!1);
  7823. }, s.prototype.make = function() {
  7824. var c = { html: "", range: { startContainer: [], startOffset: 0, endContainer: [], endOffset: 0 } };
  7825. c.html = this.removeJoditSelection(this.j.editor);
  7826. var p = this.j.s.sel;
  7827. if (p && p.rangeCount) {
  7828. var l = p.getRangeAt(0), o = this.calcHierarchyLadder(l.startContainer), r = this.calcHierarchyLadder(l.endContainer), i = s.strokeOffset(l.startContainer, l.startOffset), u = s.strokeOffset(l.endContainer, l.endOffset);
  7829. o.length || l.startContainer === this.j.editor || (i = 0), r.length || l.endContainer === this.j.editor || (u = 0), c.range = { startContainer: o, startOffset: i, endContainer: r, endOffset: u };
  7830. }
  7831. return c;
  7832. }, s.prototype.restore = function(c) {
  7833. var p = this;
  7834. this.transaction(function() {
  7835. var l = p.storeScrollState();
  7836. p.j.getNativeEditorValue() !== c.html && (p.j.value = c.html), p.restoreOnlySelection(c), p.restoreScrollState(l);
  7837. });
  7838. }, s.prototype.storeScrollState = function() {
  7839. return [this.j.ow.scrollY, this.j.editor.scrollTop];
  7840. }, s.prototype.restoreScrollState = function(c) {
  7841. var p = this.j, l = p.ow;
  7842. l.scrollTo(l.scrollX, c[0]), p.editor.scrollTop = c[1];
  7843. }, s.prototype.restoreOnlySelection = function(c) {
  7844. try {
  7845. if (c.range) {
  7846. var p = this.j.ed.createRange();
  7847. p.setStart(this.getElementByLadder(c.range.startContainer), c.range.startOffset), p.setEnd(this.getElementByLadder(c.range.endContainer), c.range.endOffset), this.j.s.selectRange(p);
  7848. }
  7849. } catch (l) {
  7850. this.j.editor.lastChild && this.j.s.setCursorAfter(this.j.editor.lastChild);
  7851. }
  7852. }, s.prototype.destruct = function() {
  7853. this.__block(!1), a.prototype.destruct.call(this);
  7854. }, s.isIgnoredNode = function(c) {
  7855. return h.Dom.isText(c) && !c.nodeValue || h.Dom.isTemporary(c);
  7856. }, s.prototype.removeJoditSelection = function(c) {
  7857. var p = c.cloneNode(!0);
  7858. return p.querySelectorAll("[".concat(f.TEMP_ATTR, "]")).forEach(h.Dom.unwrap), p.innerHTML;
  7859. }, s;
  7860. }(m.ViewComponent);
  7861. t.Snapshot = d;
  7862. }, 3621: function(_, t) {
  7863. Object.defineProperty(t, "__esModule", { value: !0 }), t.Stack = void 0;
  7864. var e = function() {
  7865. function n(m) {
  7866. this.size = m, this.commands = [], this.stackPosition = -1;
  7867. }
  7868. return Object.defineProperty(n.prototype, "length", { get: function() {
  7869. return this.commands.length;
  7870. }, enumerable: !1, configurable: !0 }), n.prototype.clearRedo = function() {
  7871. this.commands.length = this.stackPosition + 1;
  7872. }, n.prototype.clear = function() {
  7873. this.commands.length = 0, this.stackPosition = -1;
  7874. }, n.prototype.push = function(m) {
  7875. this.clearRedo(), this.commands.push(m), this.stackPosition += 1, this.commands.length > this.size && (this.commands.shift(), this.stackPosition -= 1);
  7876. }, n.prototype.replace = function(m) {
  7877. this.commands[this.stackPosition] = m;
  7878. }, n.prototype.current = function() {
  7879. return this.commands[this.stackPosition];
  7880. }, n.prototype.undo = function() {
  7881. return !!this.canUndo() && (this.commands[this.stackPosition] && this.commands[this.stackPosition].undo(), this.stackPosition -= 1, !0);
  7882. }, n.prototype.redo = function() {
  7883. return !!this.canRedo() && (this.stackPosition += 1, this.commands[this.stackPosition] && this.commands[this.stackPosition].redo(), !0);
  7884. }, n.prototype.canUndo = function() {
  7885. return this.stackPosition >= 0;
  7886. }, n.prototype.canRedo = function() {
  7887. return this.commands.length - 1 > this.stackPosition;
  7888. }, n;
  7889. }();
  7890. t.Stack = e;
  7891. }, 95356: function(_, t, e) {
  7892. Object.defineProperty(t, "__esModule", { value: !0 });
  7893. var n = e(93166), m = e(77904);
  7894. n.Config.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%" }, m.Icon.set("crop", e(3610)).set("resize", e(56170));
  7895. }, 35503: function(_, t, e) {
  7896. Object.defineProperty(t, "__esModule", { value: !0 }), t.openImageEditor = t.ImageEditor = void 0;
  7897. var n = e(20255);
  7898. e(62820);
  7899. var m = e(93166), h = e(56562), f = e(40332), d = e(64968), a = e(96516), s = e(9249), c = e(43441);
  7900. e(95356);
  7901. var p = "jodit-image-editor", l = "resize", o = "crop", r = function(i) {
  7902. function u(y) {
  7903. var g = i.call(this, y) || this;
  7904. g.resizeUseRatio = !0, g.cropUseRatio = !0, g.clicked = !1, g.start_x = 0, g.start_y = 0, g.top_x = 0, g.top_y = 0, g.width = 0, g.height = 0, g.activeTab = l, g.naturalWidth = 0, g.naturalHeight = 0, g.ratio = 0, g.new_h = 0, g.new_w = 0, g.diff_x = 0, g.diff_y = 0, g.cropBox = { x: 0, y: 0, w: 0, h: 0 }, g.resizeBox = { w: 0, h: 0 }, g.calcCropBox = function() {
  7905. var S = g.crop_box.parentNode, j = 0.8 * S.offsetWidth, E = 0.8 * S.offsetHeight, x = j, k = E, I = g.naturalWidth, M = g.naturalHeight;
  7906. j > I && E > M ? (x = I, k = M) : g.ratio > j / E ? (x = j, k = M * (j / I)) : (x = I * (E / M), k = E), (0, f.css)(g.crop_box, { width: x, height: k });
  7907. }, g.showCrop = function() {
  7908. if (g.cropImage) {
  7909. g.calcCropBox();
  7910. var S = g.cropImage.offsetWidth || g.image.offsetWidth || g.image.naturalWidth;
  7911. g.new_w = v.calcValueByPercent(S, g.o.cropDefaultWidth);
  7912. var j = g.cropImage.offsetHeight || g.image.offsetHeight || g.image.naturalHeight;
  7913. g.new_h = g.cropUseRatio ? g.new_w / g.ratio : v.calcValueByPercent(j, g.o.cropDefaultHeight), (0, f.css)(g.cropHandler, { backgroundImage: "url(" + (0, f.attr)(g.cropImage, "src") + ")", width: g.new_w, height: g.new_h, left: S / 2 - g.new_w / 2, top: j / 2 - g.new_h / 2 }), g.j.e.fire(g.cropHandler, "updatesize");
  7914. }
  7915. }, g.updateCropBox = function() {
  7916. if (g.cropImage) {
  7917. var S = g.cropImage.offsetWidth / g.naturalWidth, j = g.cropImage.offsetHeight / g.naturalHeight;
  7918. g.cropBox.x = (0, f.css)(g.cropHandler, "left") / S, g.cropBox.y = (0, f.css)(g.cropHandler, "top") / j, g.cropBox.w = g.cropHandler.offsetWidth / S, g.cropBox.h = g.cropHandler.offsetHeight / j, g.sizes.textContent = g.cropBox.w.toFixed(0) + "x" + g.cropBox.h.toFixed(0);
  7919. }
  7920. }, g.updateResizeBox = function() {
  7921. g.resizeBox.w = g.image.offsetWidth || g.naturalWidth, g.resizeBox.h = g.image.offsetHeight || g.naturalHeight;
  7922. }, g.setHandlers = function() {
  7923. var S = g, j = (0, f.refs)(g.editor), E = j.widthInput, x = j.heightInput;
  7924. S.j.e.on([S.editor.querySelector(".jodit_bottomright"), S.cropHandler], "mousedown.".concat(p), g.onResizeHandleMouseDown).on(g.j.ow, "resize.".concat(p), function() {
  7925. g.j.e.fire(S.resizeHandler, "updatesize"), S.showCrop(), g.j.e.fire(S.cropHandler, "updatesize");
  7926. }), S.j.e.on((0, f.toArray)(g.editor.querySelectorAll(".".concat(p, "__slider-title"))), "click", g.onTitleModeClick).on([E, x], "input", g.onChangeSizeInput);
  7927. var k = (0, f.refs)(g.editor), I = k.keepAspectRatioResize, M = k.keepAspectRatioCrop;
  7928. I && I.addEventListener("change", function() {
  7929. g.resizeUseRatio = I.checked;
  7930. }), M && M.addEventListener("change", function() {
  7931. g.cropUseRatio = M.checked;
  7932. }), S.j.e.on(S.resizeHandler, "updatesize", function() {
  7933. (0, f.css)(S.resizeHandler, { top: 0, left: 0, width: S.image.offsetWidth || S.naturalWidth, height: S.image.offsetHeight || S.naturalHeight }), g.updateResizeBox();
  7934. }).on(S.cropHandler, "updatesize", function() {
  7935. if (S.cropImage) {
  7936. var T = (0, f.css)(S.cropHandler, "left"), O = (0, f.css)(S.cropHandler, "top"), L = S.cropHandler.offsetWidth, N = S.cropHandler.offsetHeight;
  7937. 0 > T && (T = 0), 0 > O && (O = 0), T + L > S.cropImage.offsetWidth && (L = S.cropImage.offsetWidth - T, S.cropUseRatio && (N = L / S.ratio)), O + N > S.cropImage.offsetHeight && (N = S.cropImage.offsetHeight - O, S.cropUseRatio && (L = N * S.ratio)), (0, f.css)(S.cropHandler, { width: L, height: N, left: T, top: O, backgroundPosition: -T - 1 + "px " + (-O - 1) + "px", backgroundSize: S.cropImage.offsetWidth + "px " + S.cropImage.offsetHeight + "px" }), S.updateCropBox();
  7938. }
  7939. }), Object.values(S.buttons).forEach(function(T) {
  7940. T.onAction(function() {
  7941. var O = { action: S.activeTab, box: S.activeTab === l ? S.resizeBox : S.cropBox };
  7942. switch (T) {
  7943. case S.buttons.saveas:
  7944. S.j.prompt("Enter new name", "Save in new file", function(L) {
  7945. if (!(0, f.trim)(L)) return S.j.alert("The name should not be empty"), !1;
  7946. S.onSave(L, O, S.hide, function(N) {
  7947. S.j.alert(N.message);
  7948. });
  7949. });
  7950. break;
  7951. case S.buttons.save:
  7952. S.onSave(void 0, O, S.hide, function(L) {
  7953. S.j.alert(L.message);
  7954. });
  7955. break;
  7956. case S.buttons.reset:
  7957. S.activeTab === l ? ((0, f.css)(S.image, { width: null, height: null }), E.value = S.naturalWidth.toString(), x.value = S.naturalHeight.toString(), S.j.e.fire(S.resizeHandler, "updatesize")) : S.showCrop();
  7958. }
  7959. });
  7960. });
  7961. }, g.options = y && y.o && y.o.imageeditor ? y.o.imageeditor : m.Config.defaultOptions.imageeditor;
  7962. var b = g.options;
  7963. g.resizeUseRatio = b.resizeUseRatio, g.cropUseRatio = b.cropUseRatio, g.buttons = { reset: (0, a.Button)(g.j, "update", "Reset"), save: (0, a.Button)(g.j, "save", "Save"), saveas: (0, a.Button)(g.j, "save", "Save as ...") }, g.activeTab = b.resize ? l : o, g.editor = (0, s.form)(g.j, g.options);
  7964. var w = (0, f.refs)(g.editor), C = w.cropBox;
  7965. return g.resize_box = w.resizeBox, g.crop_box = C, g.sizes = g.editor.querySelector(".".concat(p, "__area.").concat(p, "__area_crop .jodit-image-editor__sizes")), g.resizeHandler = g.editor.querySelector(".".concat(p, "__resizer")), g.cropHandler = g.editor.querySelector(".".concat(p, "__croper")), g._dialog = g.j.dlg({ buttons: ["fullsize", "dialog.close"] }), g._dialog.setContent(g.editor), g._dialog.setSize(g.o.width, g.o.height), g._dialog.setHeader([g.buttons.reset, g.buttons.save, g.buttons.saveas]), g.setHandlers(), g;
  7966. }
  7967. var v;
  7968. return n.__extends(u, i), v = u, u.prototype.className = function() {
  7969. return "ImageEditor";
  7970. }, u.prototype.onTitleModeClick = function(y) {
  7971. var g = this, b = y.target, w = b == null ? void 0 : b.parentElement;
  7972. if (w) {
  7973. (0, f.$$)(".".concat(p, "__slider,.").concat(p, "__area"), g.editor).forEach(function(S) {
  7974. return S.classList.remove("".concat(p, "_active"));
  7975. }), w.classList.add("".concat(p, "_active")), this.activeTab = (0, f.attr)(w, "-area") || l;
  7976. var C = g.editor.querySelector(".".concat(p, "__area.").concat(p, "__area_") + g.activeTab);
  7977. C && C.classList.add("".concat(p, "_active")), g.activeTab === o && g.showCrop();
  7978. }
  7979. }, u.prototype.onChangeSizeInput = function(y) {
  7980. var g, b = this, w = y.target, C = (0, f.refs)(this.editor), S = C.widthInput, j = C.heightInput, E = (0, f.attr)(w, "data-ref") === "widthInput", x = parseInt(w.value, 10), k = E ? b.o.min_height : b.o.min_width;
  7981. x > (E ? b.o.min_width : b.o.min_height) && ((0, f.css)(b.image, E ? "width" : "height", x), b.resizeUseRatio && (g = Math.round(E ? x / b.ratio : x * b.ratio)) > k && ((0, f.css)(b.image, E ? "height" : "width", g), E ? j.value = g.toString() : S.value = g.toString())), this.j.e.fire(b.resizeHandler, "updatesize");
  7982. }, u.prototype.onResizeHandleMouseDown = function(y) {
  7983. var g = this;
  7984. g.target = y.target, y.preventDefault(), y.stopImmediatePropagation(), g.clicked = !0, g.start_x = y.clientX, g.start_y = y.clientY, g.activeTab === o ? (g.top_x = (0, f.css)(g.cropHandler, "left"), g.top_y = (0, f.css)(g.cropHandler, "top"), g.width = g.cropHandler.offsetWidth, g.height = g.cropHandler.offsetHeight) : (g.width = g.image.offsetWidth, g.height = g.image.offsetHeight), g.j.e.on(this.j.ow, "mousemove", this.onGlobalMouseMove).one(this.j.ow, "mouseup", this.onGlobalMouseUp);
  7985. }, u.prototype.onGlobalMouseUp = function(y) {
  7986. this.clicked && (this.clicked = !1, y.stopImmediatePropagation(), this.j.e.off(this.j.ow, "mousemove", this.onGlobalMouseMove));
  7987. }, u.prototype.onGlobalMouseMove = function(y) {
  7988. var g = this;
  7989. if (g.clicked) {
  7990. var b = (0, f.refs)(this.editor), w = b.widthInput, C = b.heightInput;
  7991. g.diff_x = y.clientX - g.start_x, g.diff_y = y.clientY - g.start_y, g.activeTab === l && g.resizeUseRatio || g.activeTab === o && g.cropUseRatio ? g.diff_x ? (g.new_w = g.width + g.diff_x, g.new_h = Math.round(g.new_w / g.ratio)) : (g.new_h = g.height + g.diff_y, g.new_w = Math.round(g.new_h * g.ratio)) : (g.new_w = g.width + g.diff_x, g.new_h = g.height + g.diff_y), g.activeTab === l ? (g.new_w > g.o.resizeMinWidth && ((0, f.css)(g.image, "width", g.new_w + "px"), w.value = g.new_w.toString()), g.new_h > g.o.resizeMinHeight && ((0, f.css)(g.image, "height", g.new_h + "px"), C.value = g.new_h.toString()), this.j.e.fire(g.resizeHandler, "updatesize")) : (g.target !== g.cropHandler ? (g.top_x + g.new_w > g.cropImage.offsetWidth && (g.new_w = g.cropImage.offsetWidth - g.top_x), g.top_y + g.new_h > g.cropImage.offsetHeight && (g.new_h = g.cropImage.offsetHeight - g.top_y), (0, f.css)(g.cropHandler, { width: g.new_w, height: g.new_h })) : (g.top_x + g.diff_x + g.cropHandler.offsetWidth > g.cropImage.offsetWidth && (g.diff_x = g.cropImage.offsetWidth - g.top_x - g.cropHandler.offsetWidth), (0, f.css)(g.cropHandler, "left", g.top_x + g.diff_x), g.top_y + g.diff_y + g.cropHandler.offsetHeight > g.cropImage.offsetHeight && (g.diff_y = g.cropImage.offsetHeight - g.top_y - g.cropHandler.offsetHeight), (0, f.css)(g.cropHandler, "top", g.top_y + g.diff_y)), this.j.e.fire(g.cropHandler, "updatesize"));
  7992. }
  7993. }, Object.defineProperty(u.prototype, "o", { get: function() {
  7994. return this.options;
  7995. }, enumerable: !1, configurable: !0 }), u.prototype.hide = function() {
  7996. this._dialog.close();
  7997. }, u.prototype.open = function(y, g) {
  7998. var b = this;
  7999. return this.j.async.promise(function(w) {
  8000. var C = (/* @__PURE__ */ new Date()).getTime();
  8001. b.image = b.j.c.element("img"), (0, f.$$)("img,.jodit-icon_loader", b.resize_box).forEach(d.Dom.safeRemove), (0, f.$$)("img,.jodit-icon_loader", b.crop_box).forEach(d.Dom.safeRemove), (0, f.css)(b.cropHandler, "background", "transparent"), b.onSave = g, b.resize_box.appendChild(b.j.c.element("i", { class: "jodit-icon_loader" })), b.crop_box.appendChild(b.j.c.element("i", { class: "jodit-icon_loader" })), /\?/.test(y) ? y += "&_tst=" + C : y += "?_tst=" + C, b.image.setAttribute("src", y), b._dialog.open();
  8002. var S = (0, f.refs)(b.editor), j = S.widthInput, E = S.heightInput, x = function() {
  8003. b.isDestructed || (b.image.removeEventListener("load", x), b.naturalWidth = b.image.naturalWidth, b.naturalHeight = b.image.naturalHeight, j.value = b.naturalWidth.toString(), E.value = b.naturalHeight.toString(), b.ratio = b.naturalWidth / b.naturalHeight, b.resize_box.appendChild(b.image), b.cropImage = b.image.cloneNode(!0), b.crop_box.appendChild(b.cropImage), d.Dom.safeRemove.apply(null, (0, f.$$)(".jodit-icon_loader", b.editor)), b.activeTab === o && b.showCrop(), b.j.e.fire(b.resizeHandler, "updatesize"), b.j.e.fire(b.cropHandler, "updatesize"), b._dialog.setPosition(), b.j.e.fire("afterImageEditor"), w(b._dialog));
  8004. };
  8005. b.image.addEventListener("load", x), b.image.complete && x();
  8006. });
  8007. }, u.prototype.destruct = function() {
  8008. this.isDestructed || (this._dialog && !this._dialog.isInDestruct && this._dialog.destruct(), d.Dom.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, ".".concat(p)).off(".".concat(p)), i.prototype.destruct.call(this));
  8009. }, u.calcValueByPercent = function(y, g) {
  8010. var b, w = g.toString(), C = parseFloat(y.toString());
  8011. return (b = /^[-+]?[0-9]+(px)?$/.exec(w)) ? parseInt(w, 10) : (b = /^([-+]?[0-9.]+)%$/.exec(w)) ? Math.round(C * (parseFloat(b[1]) / 100)) : C || 0;
  8012. }, n.__decorate([c.autobind], u.prototype, "onTitleModeClick", null), n.__decorate([(0, c.debounce)(), c.autobind], u.prototype, "onChangeSizeInput", null), n.__decorate([c.autobind], u.prototype, "onResizeHandleMouseDown", null), n.__decorate([c.autobind], u.prototype, "onGlobalMouseUp", null), n.__decorate([(0, c.throttle)(10)], u.prototype, "onGlobalMouseMove", null), n.__decorate([c.autobind], u.prototype, "hide", null), n.__decorate([c.autobind], u.prototype, "open", null), v = n.__decorate([c.component], u);
  8013. }(h.ViewComponent);
  8014. t.ImageEditor = r, t.openImageEditor = function(i, u, v, y, g, b) {
  8015. var w = this;
  8016. return this.getInstance("ImageEditor", this.o).open(i, function(C, S, j, E) {
  8017. return (0, f.call)(S.action === "resize" ? w.dataProvider.resize : w.dataProvider.crop, v, y, u, C, S.box).then(function(x) {
  8018. x && (j(), g && g());
  8019. }).catch(function(x) {
  8020. E(x), b && b(x);
  8021. });
  8022. });
  8023. };
  8024. }, 9249: function(_, t, e) {
  8025. Object.defineProperty(t, "__esModule", { value: !0 }), t.form = void 0;
  8026. var n = e(2074), m = "jodit-image-editor", h = n.Icon.get.bind(n.Icon), f = function(d, a) {
  8027. return a === void 0 && (a = "jodti-image-editor_active"), d ? a : "";
  8028. };
  8029. t.form = function(d, a) {
  8030. var s = d.i18n.bind(d), c = function(p, l, o) {
  8031. return o === void 0 && (o = !0), `<div class="jodit-form__group">
  8032. <label>`.concat(s(p), `</label>
  8033. <label class='jodit-switcher'>
  8034. <input `).concat(f(o, "checked"), ' data-ref="').concat(l, `" type="checkbox"/>
  8035. <span class="jodit-switcher__slider"></span>
  8036. </label>
  8037. </div>`);
  8038. };
  8039. return d.create.fromHTML('<form class="'.concat(m, ` jodit-properties">
  8040. <div class="jodit-grid jodit-grid_xs-column">
  8041. <div class="jodit_col-lg-3-4 jodit_col-sm-5-5">
  8042. `).concat(a.resize ? '<div class="'.concat(m, "__area ").concat(m, "__area_resize ").concat(m, `_active">
  8043. <div data-ref="resizeBox" class="`).concat(m, `__box"></div>
  8044. <div class="`).concat(m, `__resizer">
  8045. <i class="jodit_bottomright"></i>
  8046. </div>
  8047. </div>`) : "", `
  8048. `).concat(a.crop ? '<div class="'.concat(m, "__area ").concat(m, "__area_crop ").concat(f(!a.resize), `">
  8049. <div data-ref="cropBox" class="`).concat(m, `__box">
  8050. <div class="`).concat(m, `__croper">
  8051. <i class="jodit_bottomright"></i>
  8052. <i class="`).concat(m, `__sizes"></i>
  8053. </div>
  8054. </div>
  8055. </div>`) : "", `
  8056. </div>
  8057. <div class="jodit_col-lg-1-4 jodit_col-sm-5-5">
  8058. `).concat(a.resize ? '<div data-area="resize" class="'.concat(m, "__slider ").concat(m, `_active">
  8059. <div class="`).concat(m, `__slider-title">
  8060. `).concat(h("resize"), `
  8061. `).concat(s("Resize"), `
  8062. </div>
  8063. <div class="`).concat(m, `__slider-content">
  8064. <div class="jodit-form__group">
  8065. <label>
  8066. `).concat(s("Width"), `
  8067. </label>
  8068. <input type="number" data-ref="widthInput" class="jodit-input"/>
  8069. </div>
  8070. <div class="jodit-form__group">
  8071. <label>
  8072. `).concat(s("Height"), `
  8073. </label>
  8074. <input type="number" data-ref="heightInput" class="jodit-input"/>
  8075. </div>
  8076. `).concat(c("Keep Aspect Ratio", "keepAspectRatioResize"), `
  8077. </div>
  8078. </div>`) : "", `
  8079. `).concat(a.crop ? '<div data-area="crop" class="'.concat(m, "__slider ").concat(f(!a.resize), `'">
  8080. <div class="`).concat(m, `__slider-title">
  8081. `).concat(h("crop"), `
  8082. `).concat(s("Crop"), `
  8083. </div>
  8084. <div class="`).concat(m, `__slider-content">
  8085. `).concat(c("Keep Aspect Ratio", "keepAspectRatioCrop"), `
  8086. </div>
  8087. </div>`) : "", `
  8088. </div>
  8089. </div>
  8090. </form>`));
  8091. };
  8092. }, 87837: function(_, t, e) {
  8093. Object.defineProperty(t, "__esModule", { value: !0 }), t.PluginSystem = t.UIMessages = t.Uploader = t.ToolbarCollection = t.ToolbarEditorCollection = t.Table = t.StatusBar = t.CommitStyle = t.Select = t.Snapshot = t.History = t.ImageEditor = t.Helpers = t.ViewWithToolbar = t.View = t.Icon = t.ProgressBar = t.UIBlock = t.UICheckbox = t.UITextArea = t.UIInput = t.UIForm = t.UIList = t.UIGroup = t.UISeparator = t.Popup = t.UIButton = t.UIElement = t.Create = t.Plugin = t.LazyWalker = t.Dom = t.ContextMenu = t.STATUSES = t.ViewComponent = t.Component = t.Async = void 0;
  8094. var n = e(20255);
  8095. n.__exportStar(e(55395), t);
  8096. var m = e(22630);
  8097. Object.defineProperty(t, "Async", { enumerable: !0, get: function() {
  8098. return m.Async;
  8099. } }), n.__exportStar(e(30056), t);
  8100. var h = e(56562);
  8101. Object.defineProperty(t, "Component", { enumerable: !0, get: function() {
  8102. return h.Component;
  8103. } }), Object.defineProperty(t, "ViewComponent", { enumerable: !0, get: function() {
  8104. return h.ViewComponent;
  8105. } }), Object.defineProperty(t, "STATUSES", { enumerable: !0, get: function() {
  8106. return h.STATUSES;
  8107. } });
  8108. var f = e(60403);
  8109. Object.defineProperty(t, "ContextMenu", { enumerable: !0, get: function() {
  8110. return f.ContextMenu;
  8111. } }), n.__exportStar(e(92080), t);
  8112. var d = e(64968);
  8113. Object.defineProperty(t, "Dom", { enumerable: !0, get: function() {
  8114. return d.Dom;
  8115. } }), Object.defineProperty(t, "LazyWalker", { enumerable: !0, get: function() {
  8116. return d.LazyWalker;
  8117. } });
  8118. var a = e(57549);
  8119. Object.defineProperty(t, "Plugin", { enumerable: !0, get: function() {
  8120. return a.Plugin;
  8121. } });
  8122. var s = e(42841);
  8123. Object.defineProperty(t, "Create", { enumerable: !0, get: function() {
  8124. return s.Create;
  8125. } });
  8126. var c = e(2074);
  8127. Object.defineProperty(t, "UIElement", { enumerable: !0, get: function() {
  8128. return c.UIElement;
  8129. } }), Object.defineProperty(t, "UIButton", { enumerable: !0, get: function() {
  8130. return c.UIButton;
  8131. } }), Object.defineProperty(t, "Popup", { enumerable: !0, get: function() {
  8132. return c.Popup;
  8133. } }), Object.defineProperty(t, "UISeparator", { enumerable: !0, get: function() {
  8134. return c.UISeparator;
  8135. } }), Object.defineProperty(t, "UIGroup", { enumerable: !0, get: function() {
  8136. return c.UIGroup;
  8137. } }), Object.defineProperty(t, "UIList", { enumerable: !0, get: function() {
  8138. return c.UIList;
  8139. } }), Object.defineProperty(t, "UIForm", { enumerable: !0, get: function() {
  8140. return c.UIForm;
  8141. } }), Object.defineProperty(t, "UIInput", { enumerable: !0, get: function() {
  8142. return c.UIInput;
  8143. } }), Object.defineProperty(t, "UITextArea", { enumerable: !0, get: function() {
  8144. return c.UITextArea;
  8145. } }), Object.defineProperty(t, "UICheckbox", { enumerable: !0, get: function() {
  8146. return c.UICheckbox;
  8147. } }), Object.defineProperty(t, "UIBlock", { enumerable: !0, get: function() {
  8148. return c.UIBlock;
  8149. } }), Object.defineProperty(t, "ProgressBar", { enumerable: !0, get: function() {
  8150. return c.ProgressBar;
  8151. } }), Object.defineProperty(t, "Icon", { enumerable: !0, get: function() {
  8152. return c.Icon;
  8153. } });
  8154. var p = e(75902);
  8155. Object.defineProperty(t, "View", { enumerable: !0, get: function() {
  8156. return p.View;
  8157. } });
  8158. var l = e(43608);
  8159. Object.defineProperty(t, "ViewWithToolbar", { enumerable: !0, get: function() {
  8160. return l.ViewWithToolbar;
  8161. } }), n.__exportStar(e(63463), t);
  8162. var o = e(40332);
  8163. t.Helpers = o;
  8164. var r = e(35503);
  8165. Object.defineProperty(t, "ImageEditor", { enumerable: !0, get: function() {
  8166. return r.ImageEditor;
  8167. } });
  8168. var i = e(15432);
  8169. Object.defineProperty(t, "History", { enumerable: !0, get: function() {
  8170. return i.History;
  8171. } });
  8172. var u = e(31648);
  8173. Object.defineProperty(t, "Snapshot", { enumerable: !0, get: function() {
  8174. return u.Snapshot;
  8175. } });
  8176. var v = e(2123);
  8177. Object.defineProperty(t, "Select", { enumerable: !0, get: function() {
  8178. return v.Select;
  8179. } }), Object.defineProperty(t, "CommitStyle", { enumerable: !0, get: function() {
  8180. return v.CommitStyle;
  8181. } });
  8182. var y = e(38603);
  8183. Object.defineProperty(t, "StatusBar", { enumerable: !0, get: function() {
  8184. return y.StatusBar;
  8185. } });
  8186. var g = e(25120);
  8187. Object.defineProperty(t, "Table", { enumerable: !0, get: function() {
  8188. return g.Table;
  8189. } });
  8190. var b = e(81698);
  8191. Object.defineProperty(t, "ToolbarEditorCollection", { enumerable: !0, get: function() {
  8192. return b.ToolbarEditorCollection;
  8193. } });
  8194. var w = e(72719);
  8195. Object.defineProperty(t, "ToolbarCollection", { enumerable: !0, get: function() {
  8196. return w.ToolbarCollection;
  8197. } }), n.__exportStar(e(3890), t);
  8198. var C = e(50454);
  8199. Object.defineProperty(t, "Uploader", { enumerable: !0, get: function() {
  8200. return C.Uploader;
  8201. } });
  8202. var S = e(71014);
  8203. Object.defineProperty(t, "UIMessages", { enumerable: !0, get: function() {
  8204. return S.UIMessages;
  8205. } });
  8206. var j = e(44540);
  8207. Object.defineProperty(t, "PluginSystem", { enumerable: !0, get: function() {
  8208. return j.PluginSystem;
  8209. } });
  8210. }, 37762: function(_, t, e) {
  8211. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIMessage = void 0;
  8212. var n = e(20255), m = e(2074), h = e(11441), f = function(d) {
  8213. function a(s, c) {
  8214. var p = d.call(this, s) || this;
  8215. return p.setMod("active", !0), p.setMod("variant", c.variant), p.container.textContent = c.text, p;
  8216. }
  8217. return n.__extends(a, d), a.prototype.className = function() {
  8218. return "UIMessage";
  8219. }, n.__decorate([h.component], a);
  8220. }(m.UIElement);
  8221. t.UIMessage = f;
  8222. }, 71014: function(_, t, e) {
  8223. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIMessages = void 0;
  8224. var n = e(20255);
  8225. e(63421);
  8226. var m = e(26911), h = e(61479), f = e(11441), d = e(46163), a = e(37762), s = function(c) {
  8227. function p(l, o, r) {
  8228. r === void 0 && (r = { defaultTimeout: 3e3, defaultOffset: 5 });
  8229. var i = c.call(this, l) || this;
  8230. return i.__box = o, i.options = r, i.__messages = /* @__PURE__ */ new Set(), i;
  8231. }
  8232. return n.__extends(p, c), p.prototype.className = function() {
  8233. return "UIMessages";
  8234. }, p.prototype.info = function(l, o) {
  8235. this.__message(l, "info", o);
  8236. }, p.prototype.success = function(l, o) {
  8237. this.__message(l, "success", o);
  8238. }, p.prototype.error = function(l, o) {
  8239. this.__message(l, "error", o);
  8240. }, p.prototype.message = function(l, o, r) {
  8241. this.__message(l, o, r);
  8242. }, p.prototype.__message = function(l, o, r) {
  8243. o === void 0 && (o = "info");
  8244. var i = l + ":" + o;
  8245. if (this.__messages.has(i)) this.async.updateTimeout(i, r || this.options.defaultTimeout);
  8246. else {
  8247. this.__box.appendChild(this.container);
  8248. var u = new a.UIMessage(this.j, { text: l, variant: o });
  8249. this.append(u), this.__calcOffsets(), this.__messages.add(i);
  8250. var v = this.__getRemoveCallback(u, i);
  8251. this.j.e.on(u.container, "pointerdown", v), this.async.setTimeout(v, { label: i, timeout: r || this.options.defaultTimeout });
  8252. }
  8253. }, p.prototype.__getRemoveCallback = function(l, o) {
  8254. var r = this, i = function(u) {
  8255. u && u.preventDefault(), l.isInDestruct || (r.async.clearTimeout(o), r.j.e.off(l.container, "pointerdown", i), r.__messages.delete(o), l.setMod("active", !1), r.async.setTimeout(function() {
  8256. r.remove(l), l.destruct(), r.__calcOffsets();
  8257. }, 300));
  8258. };
  8259. return i;
  8260. }, p.prototype.__calcOffsets = function() {
  8261. var l = this, o = 5;
  8262. this.elements.forEach(function(r) {
  8263. (0, m.css)(r.container, "bottom", o + "px"), o += r.container.offsetHeight + l.options.defaultOffset;
  8264. });
  8265. }, n.__decorate([(0, d.watch)(":errorMessage")], p.prototype, "__message", null), n.__decorate([f.component], p);
  8266. }(h.UIGroup);
  8267. t.UIMessages = s;
  8268. }, 38603: function(_, t, e) {
  8269. Object.defineProperty(t, "__esModule", { value: !0 }), t.StatusBar = void 0;
  8270. var n = e(20255);
  8271. e(32115);
  8272. var m = e(56562), h = e(64968), f = e(59829), d = e(43441), a = function(s) {
  8273. function c(p, l) {
  8274. var o = s.call(this, p) || this;
  8275. return o.target = l, o.mods = {}, o.container = p.c.div("jodit-status-bar"), l.appendChild(o.container), o.hide(), o;
  8276. }
  8277. return n.__extends(c, s), c.prototype.className = function() {
  8278. return "StatusBar";
  8279. }, c.prototype.hide = function() {
  8280. this.container.classList.add("jodit_hidden");
  8281. }, c.prototype.show = function() {
  8282. this.container.classList.remove("jodit_hidden");
  8283. }, Object.defineProperty(c.prototype, "isShown", { get: function() {
  8284. return !this.container.classList.contains("jodit_hidden");
  8285. }, enumerable: !1, configurable: !0 }), c.prototype.getHeight = function() {
  8286. var p, l;
  8287. return (l = (p = this.container) === null || p === void 0 ? void 0 : p.offsetHeight) !== null && l !== void 0 ? l : 0;
  8288. }, c.prototype.findEmpty = function(p) {
  8289. p === void 0 && (p = !1);
  8290. for (var l = this.getElms(p ? "item-right" : "item"), o = 0; l.length > o; o += 1) if (!l[o].innerHTML.trim().length) return l[o];
  8291. }, c.prototype.append = function(p, l) {
  8292. var o;
  8293. l === void 0 && (l = !1);
  8294. var r = this.findEmpty(l) || this.j.c.div(this.getFullElName("item"));
  8295. l && r.classList.add(this.getFullElName("item-right")), r.appendChild(p), (o = this.container) === null || o === void 0 || o.appendChild(r), this.j.o.statusbar && this.show(), this.j.e.fire("resize");
  8296. }, c.prototype.destruct = function() {
  8297. this.isInDestruct || (this.setStatus(m.STATUSES.beforeDestruct), h.Dom.safeRemove(this.container), s.prototype.destruct.call(this));
  8298. }, n.__decorate([d.component, (0, d.derive)(f.Mods, f.Elms)], c);
  8299. }(m.ViewComponent);
  8300. t.StatusBar = a;
  8301. }, 25120: function(_, t, e) {
  8302. Object.defineProperty(t, "__esModule", { value: !0 }), t.Table = void 0;
  8303. var n = e(20255), m = e(86893), h = e(64968), f = e(40332), d = e(56562), a = e(17332), s = e(43441), c = /* @__PURE__ */ new WeakMap(), p = function(o) {
  8304. function r() {
  8305. var i = o !== null && o.apply(this, arguments) || this;
  8306. return i.selected = /* @__PURE__ */ new Set(), i;
  8307. }
  8308. return n.__extends(r, o), r.prototype.className = function() {
  8309. return "Table";
  8310. }, r.prototype.recalculateStyles = function() {
  8311. var i = (0, a.getContainer)(this.j, r, "style", !0), u = [];
  8312. this.selected.forEach(function(v) {
  8313. var y = (0, f.cssPath)(v);
  8314. y && u.push(y);
  8315. }), i.innerHTML = u.length ? u.join(",") + "{".concat(this.jodit.options.table.selectionCellStyle, "}") : "";
  8316. }, r.prototype.addSelection = function(i) {
  8317. this.selected.add(i), this.recalculateStyles();
  8318. var u = h.Dom.closest(i, "table", this.j.editor);
  8319. if (u) {
  8320. var v = r.selectedByTable.get(u) || /* @__PURE__ */ new Set();
  8321. v.add(i), r.selectedByTable.set(u, v);
  8322. }
  8323. }, r.prototype.removeSelection = function(i) {
  8324. this.selected.delete(i), this.recalculateStyles();
  8325. var u = h.Dom.closest(i, "table", this.j.editor);
  8326. if (u) {
  8327. var v = r.selectedByTable.get(u);
  8328. v && (v.delete(i), v.size || r.selectedByTable.delete(u));
  8329. }
  8330. }, r.prototype.getAllSelectedCells = function() {
  8331. return (0, f.toArray)(this.selected);
  8332. }, r.getSelectedCellsByTable = function(i) {
  8333. var u = r.selectedByTable.get(i);
  8334. return u ? (0, f.toArray)(u) : [];
  8335. }, r.prototype.destruct = function() {
  8336. return this.selected.clear(), o.prototype.destruct.call(this);
  8337. }, r.getRowsCount = function(i) {
  8338. return i.rows.length;
  8339. }, r.getColumnsCount = function(i) {
  8340. return r.formalMatrix(i).reduce(function(u, v) {
  8341. return Math.max(u, v.length);
  8342. }, 0);
  8343. }, r.formalMatrix = function(i, u) {
  8344. for (var v = [[]], y = (0, f.toArray)(i.rows), g = function(S, j) {
  8345. v[j] === void 0 && (v[j] = []);
  8346. for (var E, x, k = S.colSpan, I = S.rowSpan, M = 0; v[j][M]; ) M += 1;
  8347. for (x = 0; I > x; x += 1) for (E = 0; k > E; E += 1) {
  8348. if (v[j + x] === void 0 && (v[j + x] = []), u && u(S, j + x, M + E, k, I) === !1) return !1;
  8349. v[j + x][M + E] = S;
  8350. }
  8351. }, b = 0; y.length > b; b += 1) for (var w = (0, f.toArray)(y[b].cells), C = 0; w.length > C; C += 1) if (g(w[C], b) === !1) return v;
  8352. return v;
  8353. }, r.formalCoordinate = function(i, u, v) {
  8354. v === void 0 && (v = !1);
  8355. var y = 0, g = 0, b = 1, w = 1;
  8356. return r.formalMatrix(i, function(C, S, j, E, x) {
  8357. if (u === C) return y = S, g = j, b = E || 1, w = x || 1, v && (g += (E || 1) - 1, y += (x || 1) - 1), !1;
  8358. }), [y, g, b, w];
  8359. }, r.appendRow = function(i, u, v, y) {
  8360. var g, b;
  8361. if (u) b = u.cloneNode(!0), (0, f.$$)("td,th", u).forEach(function(S) {
  8362. var j = (0, f.attr)(S, "rowspan");
  8363. if (j && parseInt(j, 10) > 1) {
  8364. var E = parseInt(j, 10) - 1;
  8365. (0, f.attr)(S, "rowspan", E > 1 ? E : null);
  8366. }
  8367. }), (0, f.$$)("td,th", b).forEach(function(S) {
  8368. S.innerHTML = "";
  8369. });
  8370. else {
  8371. var w = r.getColumnsCount(i);
  8372. b = y.element("tr");
  8373. for (var C = 0; w > C; C += 1) b.appendChild(y.element("td"));
  8374. }
  8375. v && u && u.nextSibling ? u.parentNode && u.parentNode.insertBefore(b, u.nextSibling) : !v && u ? u.parentNode && u.parentNode.insertBefore(b, u) : (((g = i.getElementsByTagName("tbody")) === null || g === void 0 ? void 0 : g[0]) || i).appendChild(b);
  8376. }, r.removeRow = function(i, u) {
  8377. var v, y = r.formalMatrix(i), g = i.rows[u];
  8378. y[u].forEach(function(b, w) {
  8379. if (v = !1, 0 > u - 1 || y[u - 1][w] !== b) if (y[u + 1] && y[u + 1][w] === b) {
  8380. if (b.parentNode === g && b.parentNode.nextSibling) {
  8381. v = !0;
  8382. for (var C = w + 1; y[u + 1][C] === b; ) C += 1;
  8383. var S = h.Dom.next(b.parentNode, function(E) {
  8384. return h.Dom.isTag(E, "tr");
  8385. }, i);
  8386. S && (y[u + 1][C] ? S.insertBefore(b, y[u + 1][C]) : S.appendChild(b));
  8387. }
  8388. } else h.Dom.safeRemove(b);
  8389. else v = !0;
  8390. if (v && (b.parentNode === g || b !== y[u][w - 1])) {
  8391. var j = b.rowSpan;
  8392. (0, f.attr)(b, "rowspan", j - 1 > 1 ? j - 1 : null);
  8393. }
  8394. }), h.Dom.safeRemove(g);
  8395. }, r.appendColumn = function(i, u, v, y) {
  8396. var g, b = r.formalMatrix(i);
  8397. for ((u === void 0 || 0 > u) && (u = r.getColumnsCount(i) - 1), g = 0; b.length > g; g += 1) {
  8398. var w = y.element("td"), C = b[g][u], S = !1;
  8399. v ? (b[g] && C && u + 1 >= b[g].length || C !== b[g][u + 1]) && (C.nextSibling ? h.Dom.before(C.nextSibling, w) : C.parentNode && C.parentNode.appendChild(w), S = !0) : (0 > u - 1 || b[g][u] !== b[g][u - 1] && b[g][u].parentNode) && (h.Dom.before(b[g][u], w), S = !0), S || (0, f.attr)(b[g][u], "colspan", parseInt((0, f.attr)(b[g][u], "colspan") || "1", 10) + 1);
  8400. }
  8401. }, r.removeColumn = function(i, u) {
  8402. var v, y = r.formalMatrix(i);
  8403. y.forEach(function(g, b) {
  8404. var w = g[u];
  8405. if (v = !1, 0 > u - 1 || y[b][u - 1] !== w ? g.length > u + 1 && y[b][u + 1] === w ? v = !0 : h.Dom.safeRemove(w) : v = !0, v && (0 > b - 1 || w !== y[b - 1][u])) {
  8406. var C = w.colSpan;
  8407. (0, f.attr)(w, "colspan", C - 1 > 1 ? (C - 1).toString() : null);
  8408. }
  8409. });
  8410. }, r.getSelectedBound = function(i, u) {
  8411. var v, y, g, b = [[1 / 0, 1 / 0], [0, 0]], w = r.formalMatrix(i);
  8412. for (v = 0; w.length > v; v += 1) for (y = 0; w[v] && w[v].length > y; y += 1) u.includes(w[v][y]) && (b[0][0] = Math.min(v, b[0][0]), b[0][1] = Math.min(y, b[0][1]), b[1][0] = Math.max(v, b[1][0]), b[1][1] = Math.max(y, b[1][1]));
  8413. for (v = b[0][0]; b[1][0] >= v; v += 1) for (g = 1, y = b[0][1]; b[1][1] >= y; y += 1) {
  8414. for (; w[v] && w[v][y - g] && w[v][y] === w[v][y - g]; ) b[0][1] = Math.min(y - g, b[0][1]), b[1][1] = Math.max(y - g, b[1][1]), g += 1;
  8415. for (g = 1; w[v] && w[v][y + g] && w[v][y] === w[v][y + g]; ) b[0][1] = Math.min(y + g, b[0][1]), b[1][1] = Math.max(y + g, b[1][1]), g += 1;
  8416. for (g = 1; w[v - g] && w[v][y] === w[v - g][y]; ) b[0][0] = Math.min(v - g, b[0][0]), b[1][0] = Math.max(v - g, b[1][0]), g += 1;
  8417. for (g = 1; w[v + g] && w[v][y] === w[v + g][y]; ) b[0][0] = Math.min(v + g, b[0][0]), b[1][0] = Math.max(v + g, b[1][0]), g += 1;
  8418. }
  8419. return b;
  8420. }, r.normalizeTable = function(i) {
  8421. var u, v, y, g, b = [], w = r.formalMatrix(i);
  8422. for (v = 0; w[0].length > v; v += 1) {
  8423. for (y = 1e6, g = !1, u = 0; w.length > u; u += 1) if (w[u][v] !== void 0) {
  8424. if (2 > w[u][v].colSpan) {
  8425. g = !0;
  8426. break;
  8427. }
  8428. y = Math.min(y, w[u][v].colSpan);
  8429. }
  8430. if (!g) for (u = 0; w.length > u; u += 1) w[u][v] !== void 0 && r.mark(w[u][v], "colspan", w[u][v].colSpan - y + 1, b);
  8431. }
  8432. for (u = 0; w.length > u; u += 1) {
  8433. for (y = 1e6, g = !1, v = 0; w[u].length > v; v += 1) if (w[u][v] !== void 0) {
  8434. if (2 > w[u][v].rowSpan) {
  8435. g = !0;
  8436. break;
  8437. }
  8438. y = Math.min(y, w[u][v].rowSpan);
  8439. }
  8440. if (!g) for (v = 0; w[u].length > v; v += 1) w[u][v] !== void 0 && r.mark(w[u][v], "rowspan", w[u][v].rowSpan - y + 1, b);
  8441. }
  8442. for (u = 0; w.length > u; u += 1) for (v = 0; w[u].length > v; v += 1) w[u][v] !== void 0 && (w[u][v].hasAttribute("rowspan") && w[u][v].rowSpan === 1 && (0, f.attr)(w[u][v], "rowspan", null), w[u][v].hasAttribute("colspan") && w[u][v].colSpan === 1 && (0, f.attr)(w[u][v], "colspan", null), w[u][v].hasAttribute("class") && !(0, f.attr)(w[u][v], "class") && (0, f.attr)(w[u][v], "class", null));
  8443. r.unmark(b);
  8444. }, r.mergeSelected = function(i, u) {
  8445. var v, y = [], g = r.getSelectedBound(i, r.getSelectedCellsByTable(i)), b = 0, w = null, C = 0, S = 0, j = 0, E = /* @__PURE__ */ new Set(), x = [];
  8446. g && (g[0][0] - g[1][0] || g[0][1] - g[1][1]) && (r.formalMatrix(i, function(k, I, M, T, O) {
  8447. if (!(g[0][0] > I || I > g[1][0] || g[0][1] > M || M > g[1][1])) {
  8448. if (E.has(v = k)) return;
  8449. E.add(v), I === g[0][0] && v.style.width && (b += v.offsetWidth), (0, f.trim)(k.innerHTML.replace(/<br(\/)?>/g, "")) !== "" && y.push(k.innerHTML), T > 1 && (S += T - 1), O > 1 && (j += O - 1), w ? (r.mark(v, "remove", 1, x), l(u).removeSelection(v)) : (w = k, C = M);
  8450. }
  8451. }), S = g[1][1] - g[0][1] + 1, j = g[1][0] - g[0][0] + 1, w && (S > 1 && r.mark(w, "colspan", S, x), j > 1 && r.mark(w, "rowspan", j, x), b && (r.mark(w, "width", (b / i.offsetWidth * 100).toFixed(m.ACCURACY) + "%", x), C && r.setColumnWidthByDelta(i, C, 0, !0, x)), w.innerHTML = y.join("<br/>"), l(u).addSelection(w), E.delete(w), r.unmark(x), r.normalizeTable(i), (0, f.toArray)(i.rows).forEach(function(k, I) {
  8452. k.cells.length || h.Dom.safeRemove(k);
  8453. })));
  8454. }, r.splitHorizontal = function(i, u) {
  8455. var v, y, g, b, w, C = [];
  8456. r.getSelectedCellsByTable(i).forEach(function(S) {
  8457. (y = u.createInside.element("td")).appendChild(u.createInside.element("br")), g = u.createInside.element("tr"), v = r.formalCoordinate(i, S), 2 > S.rowSpan ? (r.formalMatrix(i, function(j, E, x) {
  8458. v[0] === E && v[1] !== x && j !== S && r.mark(j, "rowspan", j.rowSpan + 1, C);
  8459. }), h.Dom.after(h.Dom.closest(S, "tr", i), g), g.appendChild(y)) : (r.mark(S, "rowspan", S.rowSpan - 1, C), r.formalMatrix(i, function(j, E, x) {
  8460. E > v[0] && v[0] + S.rowSpan > E && v[1] > x && j.parentNode.rowIndex === E && (w = j), E > v[0] && j === S && (b = i.rows[E]);
  8461. }), w ? h.Dom.after(w, y) : b.insertBefore(y, b.firstChild)), S.colSpan > 1 && r.mark(y, "colspan", S.colSpan, C), r.unmark(C), l(u).removeSelection(S);
  8462. }), this.normalizeTable(i);
  8463. }, r.splitVertical = function(i, u) {
  8464. var v, y, g, b = [];
  8465. r.getSelectedCellsByTable(i).forEach(function(w) {
  8466. v = r.formalCoordinate(i, w), 2 > w.colSpan ? r.formalMatrix(i, function(S, j, E) {
  8467. v[1] === E && v[0] !== j && S !== w && r.mark(S, "colspan", S.colSpan + 1, b);
  8468. }) : r.mark(w, "colspan", w.colSpan - 1, b), (y = u.createInside.element("td")).appendChild(u.createInside.element("br")), w.rowSpan > 1 && r.mark(y, "rowspan", w.rowSpan, b);
  8469. var C = w.offsetWidth;
  8470. h.Dom.after(w, y), r.mark(w, "width", (100 * (g = C / i.offsetWidth / 2)).toFixed(m.ACCURACY) + "%", b), r.mark(y, "width", (100 * g).toFixed(m.ACCURACY) + "%", b), r.unmark(b), l(u).removeSelection(w);
  8471. }), r.normalizeTable(i);
  8472. }, r.setColumnWidthByDelta = function(i, u, v, y, g) {
  8473. for (var b = r.formalMatrix(i), w = 0, C = 0; b.length > C; C += 1) if (1 >= (S = b[C][u]).colSpan || 1 >= b.length) {
  8474. r.mark(S, "width", ((S.offsetWidth + v) / i.offsetWidth * 100).toFixed(m.ACCURACY) + "%", g), w = C;
  8475. break;
  8476. }
  8477. for (C = w + 1; b.length > C; C += 1) {
  8478. var S;
  8479. r.mark(S = b[C][u], "width", null, g);
  8480. }
  8481. y || r.unmark(g);
  8482. }, r.mark = function(i, u, v, y) {
  8483. var g;
  8484. y.push(i);
  8485. var b = (g = c.get(i)) !== null && g !== void 0 ? g : {};
  8486. b[u] = v === void 0 ? 1 : v, c.set(i, b);
  8487. }, r.unmark = function(i) {
  8488. i.forEach(function(u) {
  8489. var v = c.get(u);
  8490. v && (Object.keys(v).forEach(function(y) {
  8491. var g = v[y];
  8492. switch (y) {
  8493. case "remove":
  8494. h.Dom.safeRemove(u);
  8495. break;
  8496. case "rowspan":
  8497. (0, f.attr)(u, "rowspan", (0, f.isNumber)(g) && g > 1 ? g : null);
  8498. break;
  8499. case "colspan":
  8500. (0, f.attr)(u, "colspan", (0, f.isNumber)(g) && g > 1 ? g : null);
  8501. break;
  8502. case "width":
  8503. g == null ? (u.style.removeProperty("width"), (0, f.attr)(u, "style") || (0, f.attr)(u, "style", null)) : u.style.width = g.toString();
  8504. }
  8505. delete v[y];
  8506. }), c.delete(u));
  8507. });
  8508. }, r.selectedByTable = /* @__PURE__ */ new WeakMap(), n.__decorate([(0, s.debounce)()], r.prototype, "recalculateStyles", null), r;
  8509. }(d.ViewComponent);
  8510. t.Table = p;
  8511. var l = function(o) {
  8512. return o.getInstance("Table", o.o);
  8513. };
  8514. }, 48197: function(_, t, e) {
  8515. Object.defineProperty(t, "__esModule", { value: !0 }), t.ToolbarButton = void 0;
  8516. var n = e(20255);
  8517. e(53362);
  8518. var m = e(96516), h = e(43441), f = e(64968), d = e(12680), a = e(81438), s = e(40332), c = e(77904), p = e(72719), l = e(29411), o = e(38546), r = function(i) {
  8519. function u(v, y, g) {
  8520. g === void 0 && (g = null);
  8521. var b = i.call(this, v) || this;
  8522. return b.control = y, b.target = g, b.state = n.__assign(n.__assign({}, (0, m.UIButtonState)()), { theme: "toolbar", currentValue: "", hasTrigger: !1 }), b.openedPopup = null, v.e.on([b.button, b.trigger], "mousedown", function(w) {
  8523. return w.preventDefault();
  8524. }), b.onAction(b.onClick), b.hookStatus(l.STATUSES.ready, function() {
  8525. b.initFromControl(), b.initTooltip(), b.update();
  8526. }), y.mods && Object.keys(y.mods).forEach(function(w) {
  8527. y.mods && b.setMod(w, y.mods[w]);
  8528. }), b;
  8529. }
  8530. return n.__extends(u, i), u.prototype.className = function() {
  8531. return "ToolbarButton";
  8532. }, Object.defineProperty(u.prototype, "toolbar", { get: function() {
  8533. return this.closest(p.ToolbarCollection);
  8534. }, enumerable: !1, configurable: !0 }), Object.defineProperty(u.prototype, "button", { get: function() {
  8535. return this.container.querySelector("button.".concat(this.componentName, "__button"));
  8536. }, enumerable: !1, configurable: !0 }), u.prototype.update = function() {
  8537. var v = this.control, y = this.state, g = this.closest(p.ToolbarCollection);
  8538. y.disabled = this.calculateDisabledStatus(g), y.activated = this.calculateActivatedStatus(g), (0, s.isFunction)(v.update) && g && v.update(this, g.jodit), i.prototype.update.call(this);
  8539. }, u.prototype.calculateActivatedStatus = function(v) {
  8540. return !((0, s.isJoditObject)(this.j) && !this.j.editorIsActive) && (!(!(0, s.isFunction)(this.control.isActive) || !this.control.isActive(this.j, this.control, this)) || !!(v && v.shouldBeActive(this)));
  8541. }, u.prototype.calculateDisabledStatus = function(v) {
  8542. return !!this.j.o.disabled || !(!this.j.o.readonly || this.j.o.activeButtonsInReadOnly && this.j.o.activeButtonsInReadOnly.includes(this.control.name)) || !(!(0, s.isFunction)(this.control.isDisabled) || !this.control.isDisabled(this.j, this.control, this)) || !!(v && v.shouldBeDisabled(this));
  8543. }, u.prototype.onChangeActivated = function() {
  8544. (0, s.attr)(this.button, "aria-pressed", this.state.activated), i.prototype.onChangeActivated.call(this);
  8545. }, u.prototype.onChangeText = function() {
  8546. (0, s.isFunction)(this.control.template) ? this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text)) : i.prototype.onChangeText.call(this), this.setMod("text-icons", !!this.text.innerText.trim().length);
  8547. }, u.prototype.onChangeTabIndex = function() {
  8548. (0, s.attr)(this.button, "tabindex", this.state.tabIndex);
  8549. }, u.prototype.onChangeTooltip = function() {
  8550. (0, s.attr)(this.button, "aria-label", this.state.tooltip), i.prototype.onChangeTooltip.call(this);
  8551. }, u.prototype.createContainer = function() {
  8552. var v = this.componentName, y = this.j.c.span(v), g = i.prototype.createContainer.call(this);
  8553. return (0, s.attr)(y, "role", "listitem"), g.classList.remove(v), g.classList.add(v + "__button"), Object.defineProperty(g, "component", { value: this }), y.appendChild(g), this.trigger = this.j.c.fromHTML('<span role="trigger" class="'.concat(v, '__trigger">').concat(c.Icon.get("chevron"), "</span>")), y;
  8554. }, u.prototype.focus = function() {
  8555. var v;
  8556. (v = this.container.querySelector("button")) === null || v === void 0 || v.focus();
  8557. }, u.prototype.onChangeHasTrigger = function() {
  8558. this.state.hasTrigger ? this.container.appendChild(this.trigger) : f.Dom.safeRemove(this.trigger), this.setMod("with-trigger", this.state.hasTrigger || null);
  8559. }, u.prototype.onChangeDisabled = function() {
  8560. var v = this.state.disabled ? "disabled" : null;
  8561. (0, s.attr)(this.trigger, "disabled", v), (0, s.attr)(this.button, "disabled", v), (0, s.attr)(this.container, "disabled", v);
  8562. }, u.prototype.initTooltip = function() {
  8563. var v = this;
  8564. this.j.o.textIcons || !this.j.o.showTooltip || this.j.o.useNativeTooltip || this.j.e.off(this.container, "mouseenter mouseleave").on(this.container, "mousemove", function(y) {
  8565. v.state.tooltip && !v.state.disabled && v.j.e.fire("delayShowTooltip", function() {
  8566. return { x: y.clientX + 10, y: y.clientY + 10 };
  8567. }, v.state.tooltip);
  8568. }).on(this.container, "mouseleave", function() {
  8569. v.j.e.fire("hideTooltip");
  8570. });
  8571. }, u.prototype.initFromControl = function() {
  8572. var v, y = this.control, g = this.state;
  8573. this.updateSize(), g.name = y.name;
  8574. var b = this.j.o.textIcons;
  8575. if (b === !0 || (0, s.isFunction)(b) && b(y.name) || y.template) g.icon = (0, m.UIButtonState)().icon, g.text = y.text || y.name;
  8576. else {
  8577. if (y.iconURL) g.icon.iconURL = y.iconURL;
  8578. else {
  8579. var w = y.icon || y.name;
  8580. g.icon.name = c.Icon.exists(w) || !((v = this.j.o.extraIcons) === null || v === void 0) && v[w] ? w : "";
  8581. }
  8582. y.iconURL || g.icon.name || (g.text = y.text || y.name);
  8583. }
  8584. y.tooltip && (g.tooltip = this.j.i18n((0, s.isFunction)(y.tooltip) ? y.tooltip(this.j, y, this) : y.tooltip)), g.hasTrigger = !!(y.list || y.popup && y.exec);
  8585. }, u.prototype.onTriggerClick = function(v) {
  8586. var y, g, b, w = this;
  8587. if (this.openedPopup) this.closePopup();
  8588. else {
  8589. var C = this.control;
  8590. if (v.buffer = { actionTrigger: this }, C.list) return this.openControlList(C);
  8591. if ((0, s.isFunction)(C.popup)) {
  8592. var S = this.openPopup();
  8593. if (S.parentElement = this, this.j.e.fire((0, s.camelCase)("before-".concat(C.name, "-open-popup")), this.target, C, S) !== !1) {
  8594. var j = (b = (g = (y = this.toolbar) === null || y === void 0 ? void 0 : y.getTarget(this)) !== null && g !== void 0 ? g : this.target) !== null && b !== void 0 ? b : null, E = C.popup(this.j, j, C, this.closePopup, this);
  8595. E && S.setContent((0, s.isString)(E) ? this.j.c.fromHTML(E) : E).open(function() {
  8596. return (0, s.position)(w.container);
  8597. }, !1, this.j.o.allowTabNavigation ? this.container : void 0);
  8598. }
  8599. this.j.e.fire((0, s.camelCase)("after-".concat(C.name, "-open-popup")), S.container);
  8600. }
  8601. }
  8602. }, u.prototype.openControlList = function(v) {
  8603. var y, g = this, b = (y = this.jodit.options.controls) !== null && y !== void 0 ? y : {}, w = function(x) {
  8604. return (0, o.findControlType)(x, b);
  8605. }, C = v.list, S = this.openPopup(), j = (0, a.makeCollection)(this.j);
  8606. S.parentElement = this, j.parentElement = S, j.mode = "vertical";
  8607. var E = function(x, k) {
  8608. if ((0, s.isString)(k) && w(k)) return n.__assign({ name: k.toString() }, w(k));
  8609. if ((0, s.isString)(x) && w(x)) return n.__assign(n.__assign({ name: x.toString() }, w(x)), typeof k == "object" ? k : {});
  8610. (function(T) {
  8611. return (0, s.isPlainObject)(T) && "title" in T && "value" in T;
  8612. })(x) && (k = x.value, x = x.title);
  8613. var I = v.childTemplate, M = { name: x.toString(), template: I && function(T, O, L) {
  8614. return I(T, O, L, g);
  8615. }, exec: v.childExec ? function(T, O, L) {
  8616. var N;
  8617. return (N = v.childExec) === null || N === void 0 ? void 0 : N.call(v, T, O, n.__assign(n.__assign({}, L), { parentControl: v }));
  8618. } : v.exec, data: v.data, command: v.command, isActive: v.isChildActive, isDisabled: v.isChildDisabled, mode: v.mode, args: n.__spreadArray(n.__spreadArray([], n.__read(v.args ? v.args : []), !1), [x, k], !1) };
  8619. return (0, s.isString)(k) && (M.text = k), M;
  8620. };
  8621. j.build((0, s.isArray)(C) ? C.map(E) : (0, s.keys)(C, !1).map(function(x) {
  8622. return E(x, C[x]);
  8623. }), this.target), S.setContent(j.container).open(function() {
  8624. return (0, s.position)(g.container);
  8625. }, !1, this.j.o.allowTabNavigation ? this.container : void 0), this.state.activated = !0;
  8626. }, u.prototype.onOutsideClick = function(v) {
  8627. this.openedPopup && (v && f.Dom.isNode(v.target) && (f.Dom.isOrContains(this.container, v.target) || this.openedPopup.isOwnClick(v)) || this.closePopup());
  8628. }, u.prototype.openPopup = function() {
  8629. return this.closePopup(), this.openedPopup = new d.Popup(this.j, !1), this.j.e.on(this.ow, "mousedown touchstart", this.onOutsideClick).on("escape closeAllPopups", this.onOutsideClick), this.openedPopup;
  8630. }, u.prototype.closePopup = function() {
  8631. 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);
  8632. }, u.prototype.onClick = function(v) {
  8633. var y, g, b, w, C, S, j, E = this.control;
  8634. if ((0, s.isFunction)(E.exec)) {
  8635. var x = (b = (g = (y = this.toolbar) === null || y === void 0 ? void 0 : y.getTarget(this)) !== null && g !== void 0 ? g : this.target) !== null && b !== void 0 ? b : null, k = E.exec(this.j, x, { control: E, originalEvent: v, button: this });
  8636. if (k !== !1 && k !== !0 && ((C = (w = this.j) === null || w === void 0 ? void 0 : w.e) === null || C === void 0 || C.fire("synchro"), this.parentElement && this.parentElement.update(), (j = (S = this.j) === null || S === void 0 ? void 0 : S.e) === null || j === void 0 || j.fire("closeAllPopups afterExec")), k !== !1) return;
  8637. }
  8638. return E.list ? this.openControlList(E) : (0, s.isFunction)(E.popup) ? this.onTriggerClick(v) : void ((E.command || E.name) && ((0, s.call)((0, s.isJoditObject)(this.j) ? this.j.execCommand.bind(this.j) : this.j.od.execCommand.bind(this.j.od), E.command || E.name, !1, E.args && E.args[0]), this.j.e.fire("closeAllPopups")));
  8639. }, u.prototype.destruct = function() {
  8640. return this.closePopup(), i.prototype.destruct.call(this);
  8641. }, n.__decorate([(0, h.watch)("state.tooltip")], u.prototype, "onChangeTooltip", null), n.__decorate([(0, h.watch)("state.hasTrigger")], u.prototype, "onChangeHasTrigger", null), n.__decorate([(0, h.watch)("trigger:click")], u.prototype, "onTriggerClick", null), n.__decorate([h.autobind], u.prototype, "onOutsideClick", null), n.__decorate([h.autobind], u.prototype, "closePopup", null), n.__decorate([h.component], u);
  8642. }(m.UIButton);
  8643. t.ToolbarButton = r;
  8644. }, 34375: function(_, t, e) {
  8645. Object.defineProperty(t, "__esModule", { value: !0 }), t.ToolbarContent = void 0;
  8646. var n = e(20255);
  8647. e(48904);
  8648. var m = e(96516), h = e(64968), f = e(40332), d = e(43441), a = function(s) {
  8649. function c(p, l, o) {
  8650. o === void 0 && (o = null);
  8651. var r = s.call(this, p) || this;
  8652. return r.control = l, r.target = o, r.container.classList.add("".concat(r.componentName, "_").concat(r.clearName(l.name))), (0, f.attr)(r.container, "role", "content"), r;
  8653. }
  8654. return n.__extends(c, s), c.prototype.className = function() {
  8655. return "ToolbarContent";
  8656. }, c.prototype.update = function() {
  8657. var p = this.control.getContent(this.j, this.control, this);
  8658. ((0, f.isString)(p) || p.parentNode !== this.container) && (h.Dom.detach(this.container), this.container.appendChild((0, f.isString)(p) ? this.j.create.fromHTML(p) : p)), s.prototype.update.call(this);
  8659. }, c.prototype.createContainer = function() {
  8660. return this.j.c.span(this.componentName);
  8661. }, n.__decorate([d.component], c);
  8662. }(m.UIButton);
  8663. t.ToolbarContent = a;
  8664. }, 3890: function(_, t, e) {
  8665. Object.defineProperty(t, "__esModule", { value: !0 });
  8666. var n = e(20255);
  8667. n.__exportStar(e(48197), t), n.__exportStar(e(34375), t);
  8668. }, 72719: function(_, t, e) {
  8669. Object.defineProperty(t, "__esModule", { value: !0 }), t.ToolbarCollection = void 0;
  8670. var n = e(20255);
  8671. e(85796);
  8672. var m = e(40332), h = e(2074), f = e(81438), d = e(43441), a = function(s) {
  8673. function c(p) {
  8674. var l = s.call(this, p) || this;
  8675. return l.__listenEvents = "updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur", l.update = l.j.async.debounce(l.__immediateUpdate, function() {
  8676. return l.j.defaultTimeout;
  8677. }), l.__tooltip = null, l.__initEvents(), l.__tooltip = h.UITooltip.make(p), l;
  8678. }
  8679. return n.__extends(c, s), c.prototype.className = function() {
  8680. return "ToolbarCollection";
  8681. }, Object.defineProperty(c.prototype, "firstButton", { get: function() {
  8682. return n.__read(this.buttons, 1)[0] || null;
  8683. }, enumerable: !1, configurable: !0 }), c.prototype.makeButton = function(p, l) {
  8684. return l === void 0 && (l = null), (0, f.makeButton)(this.j, p, l);
  8685. }, c.prototype.shouldBeActive = function(p) {
  8686. }, c.prototype.shouldBeDisabled = function(p) {
  8687. }, c.prototype.getTarget = function(p) {
  8688. return p.target || null;
  8689. }, c.prototype.__immediateUpdate = function() {
  8690. this.isDestructed || this.j.isLocked || (s.prototype.update.call(this), this.j.e.fire("afterUpdateToolbar"));
  8691. }, c.prototype.setDirection = function(p) {
  8692. this.container.style.direction = p, this.container.setAttribute("dir", p);
  8693. }, c.prototype.__initEvents = function() {
  8694. this.j.e.on(this.__listenEvents, this.update).on("afterSetMode focus", this.__immediateUpdate);
  8695. }, c.prototype.hide = function() {
  8696. this.container.remove();
  8697. }, c.prototype.show = function() {
  8698. this.appendTo(this.j.toolbarContainer);
  8699. }, c.prototype.showInline = function(p) {
  8700. throw (0, m.error)("The method is not implemented for this class.");
  8701. }, c.prototype.build = function(p, l) {
  8702. l === void 0 && (l = null);
  8703. var o = this.j.e.fire("beforeToolbarBuild", p);
  8704. return o && (p = o), s.prototype.build.call(this, p, l), this;
  8705. }, c.prototype.destruct = function() {
  8706. var p;
  8707. this.isDestructed || ((p = this.__tooltip) === null || p === void 0 || p.destruct(), this.j.e.off(this.__listenEvents, this.update).off("afterSetMode focus", this.__immediateUpdate), s.prototype.destruct.call(this));
  8708. }, n.__decorate([d.autobind], c.prototype, "__immediateUpdate", null), n.__decorate([d.component], c);
  8709. }(h.UIList);
  8710. t.ToolbarCollection = a;
  8711. }, 81698: function(_, t, e) {
  8712. Object.defineProperty(t, "__esModule", { value: !0 }), t.ToolbarEditorCollection = void 0;
  8713. var n = e(20255), m = e(72719), h = e(86893), f = e(64968), d = e(40332), a = e(43441), s = function(c) {
  8714. function p(l) {
  8715. var o = c.call(this, l) || this;
  8716. return o.checkActiveStatus = function(r, i) {
  8717. var u = 0, v = 0;
  8718. return Object.keys(r).forEach(function(y) {
  8719. var g = r[y];
  8720. (0, d.isFunction)(g) ? g(o.j, (0, d.css)(i, y).toString()) && (u += 1) : g.indexOf((0, d.css)(i, y).toString()) !== -1 && (u += 1), v += 1;
  8721. }), v === u;
  8722. }, o.prependInvisibleInput(o.container), o;
  8723. }
  8724. return n.__extends(p, c), p.prototype.className = function() {
  8725. return "ToolbarEditorCollection";
  8726. }, p.prototype.shouldBeDisabled = function(l) {
  8727. var o = c.prototype.shouldBeDisabled.call(this, l);
  8728. if (o !== void 0) return o;
  8729. var r = l.control.mode === void 0 ? h.MODE_WYSIWYG : l.control.mode;
  8730. return !(r === h.MODE_SPLIT || r === this.j.getRealMode());
  8731. }, p.prototype.shouldBeActive = function(l) {
  8732. var o = this, r = c.prototype.shouldBeActive.call(this, l);
  8733. if (r !== void 0) return r;
  8734. var i = this.j.selection ? this.j.s.current() : null;
  8735. if (!i) return !1;
  8736. if (l.control.tags) {
  8737. var u = l.control.tags;
  8738. if (f.Dom.up(i, function(y) {
  8739. if (y && u.indexOf(y.nodeName.toLowerCase()) !== -1) return !0;
  8740. }, this.j.editor)) return !0;
  8741. }
  8742. if (l.control.css) {
  8743. var v = l.control.css;
  8744. if (f.Dom.up(i, function(y) {
  8745. if (y && !f.Dom.isText(y)) return o.checkActiveStatus(v, y);
  8746. }, this.j.editor)) return !0;
  8747. }
  8748. return !1;
  8749. }, p.prototype.getTarget = function(l) {
  8750. return l.target || this.j.s.current() || null;
  8751. }, p.prototype.prependInvisibleInput = function(l) {
  8752. var o = this.j.create.element("input", { tabIndex: -1, disabled: !0, style: "width: 0; height:0; position: absolute; visibility: hidden;" });
  8753. f.Dom.appendChildFirst(l, o);
  8754. }, p.prototype.showInline = function(l) {
  8755. this.jodit.e.fire("showInlineToolbar", l);
  8756. }, p.prototype.hide = function() {
  8757. this.jodit.e.fire("hidePopup"), c.prototype.hide.call(this), this.jodit.e.fire("toggleToolbar");
  8758. }, p.prototype.show = function() {
  8759. c.prototype.show.call(this), this.jodit.e.fire("toggleToolbar");
  8760. }, n.__decorate([a.component], p);
  8761. }(m.ToolbarCollection);
  8762. t.ToolbarEditorCollection = s;
  8763. }, 81438: function(_, t, e) {
  8764. Object.defineProperty(t, "__esModule", { value: !0 }), t.makeButton = t.makeCollection = void 0;
  8765. var n = e(40332), m = e(72719), h = e(81698), f = e(48197), d = e(34375);
  8766. t.makeCollection = function(a, s) {
  8767. var c = (0, n.isJoditObject)(a) ? new h.ToolbarEditorCollection(a) : new m.ToolbarCollection(a);
  8768. return a.o.textIcons && c.container.classList.add("jodit_text_icons"), s && (c.parentElement = s), a.o.toolbarButtonSize && (c.buttonSize = a.o.toolbarButtonSize), c;
  8769. }, t.makeButton = function(a, s, c) {
  8770. if (c === void 0 && (c = null), (0, n.isFunction)(s.getContent)) return new d.ToolbarContent(a, s, c);
  8771. var p = new f.ToolbarButton(a, s, c);
  8772. return p.state.tabIndex = a.o.allowTabNavigation ? 0 : -1, p;
  8773. };
  8774. }, 36262: function(_, t, e) {
  8775. Object.defineProperty(t, "__esModule", { value: !0 });
  8776. var n = e(20255), m = e(93166), h = e(49781), f = e(77892);
  8777. m.Config.prototype.enableDragAndDropFileToEditor = !0, m.Config.prototype.uploader = { url: "", insertImageAsBase64URI: !1, imagesExtensions: ["jpg", "png", "jpeg", "gif"], headers: null, data: null, filesVariableName: function(d) {
  8778. return "files[".concat(d, "]");
  8779. }, withCredentials: !1, pathVariableName: "path", format: "json", method: "POST", prepareData: function(d) {
  8780. return d;
  8781. }, isSuccess: function(d) {
  8782. return d.success;
  8783. }, getMessage: function(d) {
  8784. return d.data.messages !== void 0 && (0, h.isArray)(d.data.messages) ? d.data.messages.join(" ") : "";
  8785. }, processFileName: function(d, a, s) {
  8786. return [d, a, s];
  8787. }, process: function(d) {
  8788. return d.data;
  8789. }, error: function(d) {
  8790. this.j.e.fire("errorMessage", d.message, "error", 4e3);
  8791. }, getDisplayName: function(d, a) {
  8792. return d + a;
  8793. }, defaultHandlerSuccess: function(d) {
  8794. var a = this, s = this.j || this;
  8795. (0, f.isJoditObject)(s) && d.files && d.files.length && d.files.forEach(function(c, p) {
  8796. var l = n.__read(d.isImages && d.isImages[p] ? ["img", "src"] : ["a", "href"], 2), o = l[0], r = l[1], i = s.createInside.element(o);
  8797. i.setAttribute(r, d.baseurl + c), o === "a" && (i.textContent = s.o.uploader.getDisplayName.call(a, d.baseurl, c)), o === "img" ? s.s.insertImage(i, null, s.o.imageDefaultWidth) : s.s.insertNode(i);
  8798. });
  8799. }, defaultHandlerError: function(d) {
  8800. this.j.e.fire("errorMessage", d.message);
  8801. }, contentType: function(d) {
  8802. return (this.ow.FormData === void 0 || typeof d == "string") && "application/x-www-form-urlencoded; charset=UTF-8";
  8803. } };
  8804. }, 55778: function(_, t, e) {
  8805. Object.defineProperty(t, "__esModule", { value: !0 }), t.buildData = void 0;
  8806. var n = e(40332);
  8807. t.buildData = function(m, h) {
  8808. if ((0, n.isFunction)(m.o.buildData)) return m.o.buildData.call(m, h);
  8809. var f = m.ow.FormData;
  8810. if (f !== void 0) {
  8811. if (h instanceof f || (0, n.isString)(h)) return h;
  8812. var d = new f();
  8813. return Object.keys(h).forEach(function(a) {
  8814. d.append(a, h[a]);
  8815. }), d;
  8816. }
  8817. return h;
  8818. };
  8819. }, 98099: function(_, t) {
  8820. Object.defineProperty(t, "__esModule", { value: !0 }), t.dataURItoBlob = void 0, t.dataURItoBlob = function(e) {
  8821. for (var n = atob(e.split(",")[1]), m = e.split(",")[0].split(":")[1].split(";")[0], h = new ArrayBuffer(n.length), f = new Uint8Array(h), d = 0; n.length > d; d += 1) f[d] = n.charCodeAt(d);
  8822. return new Blob([f], { type: m });
  8823. };
  8824. }, 41566: function(_, t, e) {
  8825. Object.defineProperty(t, "__esModule", { value: !0 }), t.hasItems = t.hasFiles = void 0;
  8826. var n = e(20255);
  8827. n.__exportStar(e(32937), t), n.__exportStar(e(98099), t), n.__exportStar(e(55778), t), n.__exportStar(e(30863), t), n.__exportStar(e(20704), t), t.hasFiles = function(m) {
  8828. return !!(m && m.files && m.files.length > 0);
  8829. }, t.hasItems = function(m) {
  8830. return !!(m && m.items && m.items.length > 0);
  8831. };
  8832. }, 32937: function(_, t, e) {
  8833. Object.defineProperty(t, "__esModule", { value: !0 }), t.processOldBrowserDrag = void 0;
  8834. var n = e(86893), m = e(17332), h = e(40332), f = e(64968), d = e(41566);
  8835. t.processOldBrowserDrag = function(a, s, c, p, l) {
  8836. if (s && (!s.types.length || s.types[0] !== n.TEXT_PLAIN)) {
  8837. var o = a.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 });
  8838. (0, m.getContainer)(a.j, a.constructor).appendChild(o);
  8839. var r = (0, h.isJoditObject)(a.j) ? a.j.s.save() : null;
  8840. o.focus(), a.j.async.setTimeout(function() {
  8841. var i = o.firstChild;
  8842. if (f.Dom.safeRemove(o), i && i.hasAttribute("src")) {
  8843. var u = (0, h.attr)(i, "src") || "";
  8844. r && (0, h.isJoditObject)(a.j) && a.j.s.restore(), (0, d.sendFiles)(a, [(0, d.dataURItoBlob)(u)], c, p).finally(l);
  8845. }
  8846. }, a.j.defaultTimeout);
  8847. }
  8848. };
  8849. }, 20704: function(_, t, e) {
  8850. Object.defineProperty(t, "__esModule", { value: !0 }), t.sendFiles = void 0;
  8851. var n = e(20255), m = e(40332), h = e(30863);
  8852. t.sendFiles = function(f, d, a, s, c) {
  8853. if (!d) return Promise.reject((0, m.error)("Need files"));
  8854. var p = f.o, l = (0, m.toArray)(d);
  8855. if (!l.length) return Promise.reject((0, m.error)("Need files"));
  8856. var o = [];
  8857. if (p.insertImageAsBase64URI) {
  8858. var r, i = void 0, u = function() {
  8859. if ((r = l[i]) && r.type) {
  8860. var E = r.type.match(/\/([a-z0-9]+)/i), x = E[1] ? E[1].toLowerCase() : "";
  8861. if (p.imagesExtensions.includes(x)) {
  8862. var k = new FileReader();
  8863. o.push(f.j.async.promise(function(I, M) {
  8864. k.onerror = M, k.onloadend = function() {
  8865. var T = { baseurl: "", files: [k.result], isImages: [!0] };
  8866. ((0, m.isFunction)(a) ? a : p.defaultHandlerSuccess).call(f, T), I(T);
  8867. }, k.readAsDataURL(r);
  8868. })), l[i] = null;
  8869. }
  8870. }
  8871. };
  8872. for (i = 0; l.length > i; i += 1) u();
  8873. }
  8874. if ((l = l.filter(function(E) {
  8875. return E;
  8876. })).length) {
  8877. var v = new FormData();
  8878. v.append(p.pathVariableName, f.path), v.append("source", f.source);
  8879. var y = void 0;
  8880. for (i = 0; l.length > i; i += 1) if (y = l[i]) {
  8881. var g = /\.[\d\w]+$/.test(y.name), b = y.type.match(/\/([a-z0-9]+)/i), w = b && b[1] ? b[1].toLowerCase() : "", C = l[i].name || Math.random().toString().replace(".", "");
  8882. if (!g && w) {
  8883. var S = w;
  8884. ["jpeg", "jpg"].includes(S) && (S = "jpeg|jpg"), new RegExp(".(" + S + ")$", "i").test(C) || (C += "." + w);
  8885. }
  8886. var j = n.__read(p.processFileName.call(f, p.filesVariableName(i), l[i], C), 3);
  8887. v.append(j[0], j[1], j[2]);
  8888. }
  8889. c && c(v), p.data && (0, m.isPlainObject)(p.data) && Object.keys(p.data).forEach(function(E) {
  8890. v.append(E, p.data[E]);
  8891. }), p.prepareData.call(f, v), o.push((0, h.send)(f, v).then(function(E) {
  8892. return p.isSuccess.call(f, E) ? (((0, m.isFunction)(a) ? a : p.defaultHandlerSuccess).call(f, p.process.call(f, E)), E) : (((0, m.isFunction)(s) ? s : p.defaultHandlerError).call(f, (0, m.error)(p.getMessage.call(f, E))), E);
  8893. }).then(function() {
  8894. f.j.events && f.j.e.fire("filesWereUploaded");
  8895. }));
  8896. }
  8897. return Promise.all(o);
  8898. };
  8899. }, 30863: function(_, t, e) {
  8900. Object.defineProperty(t, "__esModule", { value: !0 }), t.send = t.ajaxInstances = void 0;
  8901. var n = e(30056), m = e(40332), h = e(55778);
  8902. t.ajaxInstances = /* @__PURE__ */ new WeakMap(), t.send = function(f, d) {
  8903. var a = (0, h.buildData)(f, d), s = function(c) {
  8904. var p = new n.Ajax({ xhr: function() {
  8905. var o = new XMLHttpRequest();
  8906. return f.j.ow.FormData !== void 0 && o.upload ? (f.j.progressbar.show().progress(10), o.upload.addEventListener("progress", function(r) {
  8907. if (r.lengthComputable) {
  8908. var i = r.loaded / r.total;
  8909. i *= 100, f.j.progressbar.show().progress(i), 100 > i || f.j.progressbar.hide();
  8910. }
  8911. }, !1)) : f.j.progressbar.hide(), o;
  8912. }, method: f.o.method || "POST", data: c, url: (0, m.isFunction)(f.o.url) ? f.o.url(c) : f.o.url, headers: f.o.headers, queryBuild: f.o.queryBuild, contentType: f.o.contentType.call(f, c), withCredentials: f.o.withCredentials || !1 }), l = t.ajaxInstances.get(f);
  8913. return l || (l = /* @__PURE__ */ new Set(), t.ajaxInstances.set(f, l)), l.add(p), f.j.e.one("beforeDestruct", p.destruct), p.send().then(function(o) {
  8914. return o.json();
  8915. }).catch(function(o) {
  8916. f.o.error.call(f, o);
  8917. }).finally(function() {
  8918. p.destruct(), l == null || l.delete(p);
  8919. });
  8920. };
  8921. return (0, m.isPromise)(a) ? a.then(s).catch(function(c) {
  8922. f.o.error.call(f, c);
  8923. }) : s(a);
  8924. };
  8925. }, 50454: function(_, t, e) {
  8926. Object.defineProperty(t, "__esModule", { value: !0 }), t.Uploader = void 0;
  8927. var n = e(20255);
  8928. e(28654);
  8929. var m = e(93166), h = e(86893), f = e(40332), d = e(56562), a = e(41566);
  8930. e(36262);
  8931. var s = function(c) {
  8932. function p(l, o) {
  8933. var r = c.call(this, l) || this;
  8934. return r.path = "", r.source = "default", r.options = (0, f.ConfigProto)(o || {}, (0, f.ConfigProto)(m.Config.defaultOptions.uploader, (0, f.isJoditObject)(l) ? l.o.uploader : {})), r;
  8935. }
  8936. return n.__extends(p, c), Object.defineProperty(p.prototype, "j", { get: function() {
  8937. return this.jodit;
  8938. }, enumerable: !1, configurable: !0 }), p.prototype.className = function() {
  8939. return "Uploader";
  8940. }, Object.defineProperty(p.prototype, "o", { get: function() {
  8941. return this.options;
  8942. }, enumerable: !1, configurable: !0 }), p.prototype.setPath = function(l) {
  8943. return this.path = l, this;
  8944. }, p.prototype.setSource = function(l) {
  8945. return this.source = l, this;
  8946. }, p.prototype.bind = function(l, o, r) {
  8947. var i = function() {
  8948. l.classList.remove("jodit_drag_hover");
  8949. }, u = this, v = function(y) {
  8950. var g, b, w, C = y.clipboardData, S = function(x) {
  8951. b && (x.append("extension", w), x.append("mimetype", b.type));
  8952. };
  8953. if (!h.IS_IE && (0, a.hasFiles)(C)) return (0, a.sendFiles)(u, C.files, o, r).finally(i), !1;
  8954. if (h.IS_IE) return (0, a.processOldBrowserDrag)(u, C, o, r, i);
  8955. if ((0, a.hasItems)(C)) {
  8956. var j = C.items;
  8957. for (g = 0; j.length > g; g += 1) if (j[g].kind === "file" && j[g].type === "image/png") {
  8958. if (b = j[g].getAsFile()) {
  8959. var E = b.type.match(/\/([a-z0-9]+)/i);
  8960. w = E[1] ? E[1].toLowerCase() : "", (0, a.sendFiles)(u, [b], o, r, S).finally(i);
  8961. }
  8962. y.preventDefault();
  8963. break;
  8964. }
  8965. }
  8966. };
  8967. u.j && u.j.editor !== l ? u.j.e.on(l, "paste", v) : u.j.e.on("beforePaste", v), this.attachEvents(l, o, r, i);
  8968. }, p.prototype.attachEvents = function(l, o, r, i) {
  8969. var u = this;
  8970. u.j.e.on(l, "dragend dragover dragenter dragleave drop", function(y) {
  8971. y.preventDefault();
  8972. }).on(l, "dragover", function(y) {
  8973. ((0, a.hasFiles)(y.dataTransfer) || (0, a.hasItems)(y.dataTransfer)) && (l.classList.add("jodit_drag_hover"), y.preventDefault());
  8974. }).on(l, "dragend dragleave", function(y) {
  8975. l.classList.remove("jodit_drag_hover"), (0, a.hasFiles)(y.dataTransfer) && y.preventDefault();
  8976. }).on(l, "drop", function(y) {
  8977. l.classList.remove("jodit_drag_hover"), (0, a.hasFiles)(y.dataTransfer) && (y.preventDefault(), y.stopImmediatePropagation(), (0, a.sendFiles)(u, y.dataTransfer.files, o, r).finally(i));
  8978. });
  8979. var v = l.querySelector("input[type=file]");
  8980. v && u.j.e.on(v, "change", function() {
  8981. (0, a.sendFiles)(u, v.files, o, r).then(function() {
  8982. v.value = "", /safari/i.test(navigator.userAgent) || (v.type = "", v.type = "file");
  8983. }).finally(i);
  8984. });
  8985. }, p.prototype.uploadRemoteImage = function(l, o, r) {
  8986. var i = this, u = i.o, v = (0, f.isFunction)(r) ? r : u.defaultHandlerError;
  8987. (0, a.send)(i, { action: "fileUploadRemote", url: l }).then(function(y) {
  8988. u.isSuccess.call(i, y) ? ((0, f.isFunction)(o) ? o : u.defaultHandlerSuccess).call(i, u.process.call(i, y)) : v.call(i, (0, f.error)(u.getMessage.call(i, y)));
  8989. }).catch(function(y) {
  8990. return v.call(i, y);
  8991. });
  8992. }, p.prototype.destruct = function() {
  8993. this.setStatus(d.STATUSES.beforeDestruct);
  8994. var l = a.ajaxInstances.get(this);
  8995. l && (l.forEach(function(o) {
  8996. try {
  8997. o.destruct();
  8998. } catch (r) {
  8999. }
  9000. }), l.clear()), c.prototype.destruct.call(this);
  9001. }, p;
  9002. }(d.ViewComponent);
  9003. t.Uploader = s;
  9004. }, 75243: function(_, t, e) {
  9005. Object.defineProperty(t, "__esModule", { value: !0 }), t.ColorPickerWidget = void 0, e(60819);
  9006. var n = e(40332), m = e(2074), h = e(64968);
  9007. m.Icon.set("palette", e(95331)), t.ColorPickerWidget = function(f, d, a) {
  9008. var s = "jodit-color-picker", c = (0, n.normalizeColor)(a), p = f.c.div(s), l = f.o.textIcons ? "<span>".concat(f.i18n("palette"), "</span>") : m.Icon.get("palette"), o = function(i) {
  9009. var u = [];
  9010. return (0, n.isPlainObject)(i) ? Object.keys(i).forEach(function(v) {
  9011. u.push('<div class="'.concat(s, "__group ").concat(s, "__group-").concat(v, '">')), u.push(o(i[v])), u.push("</div>");
  9012. }) : (0, n.isArray)(i) && i.forEach(function(v) {
  9013. u.push("<span class='".concat(s, "__color-item ").concat(c === v ? s + "__color-item_active_true" : "", `' title="`).concat(v, '" style="background-color:').concat(v, '" data-color="').concat(v, '"></span>'));
  9014. }), u.join("");
  9015. };
  9016. p.appendChild(f.c.fromHTML('<div class="'.concat(s, '__groups">').concat(o(f.o.colors), "</div>"))), p.appendChild(f.c.fromHTML('<div data-ref="extra" class="'.concat(s, '__extra"></div>')));
  9017. var r = (0, n.refs)(p).extra;
  9018. return f.o.showBrowserColorPicker && (0, n.hasBrowserColorPicker)() && (r.appendChild(f.c.fromHTML('<div class="'.concat(s, '__native">').concat(l, '<input type="color" value="#ffffff"/></div>'))), f.e.on(p, "change", function(i) {
  9019. i.stopPropagation();
  9020. var u = i.target;
  9021. if (u && u.tagName && h.Dom.isTag(u, "input")) {
  9022. var v = u.value || "";
  9023. (0, n.isFunction)(d) && d(v), i.preventDefault();
  9024. }
  9025. })), f.e.on(p, "mousedown touchend", function(i) {
  9026. i.stopPropagation(), i.preventDefault();
  9027. var u = i.target;
  9028. if (u && u.tagName && !h.Dom.isTag(u, "svg") && !h.Dom.isTag(u, "path") || !u.parentNode || (u = h.Dom.closest(u.parentNode, "span", f.editor)), h.Dom.isTag(u, "span") && u.classList.contains(s + "__color-item")) {
  9029. var v = (0, n.attr)(u, "-color") || "";
  9030. d && (0, n.isFunction)(d) && d(v);
  9031. }
  9032. }), f.e.fire("afterGenerateColorPicker", p, r, d, c), p;
  9033. };
  9034. }, 83029: function(_, t, e) {
  9035. Object.defineProperty(t, "__esModule", { value: !0 }), t.FileSelectorWidget = void 0;
  9036. var n = e(40332), m = e(64968), h = e(2074), f = e(60929);
  9037. t.FileSelectorWidget = function(d, a, s, c, p) {
  9038. var l;
  9039. p === void 0 && (p = !0);
  9040. var o = [];
  9041. if (a.upload && d.o.uploader && (d.o.uploader.url || d.o.uploader.insertImageAsBase64URI)) {
  9042. var r = d.c.fromHTML('<div class="jodit-drag-and-drop__file-box">' + "<strong>".concat(d.i18n(p ? "Drop image" : "Drop file"), "</strong>") + "<span><br>".concat(d.i18n("or click"), "</span>") + '<input type="file" accept="'.concat(p ? "image/*" : "*", '" tabindex="-1" dir="auto" multiple=""/>') + "</div>");
  9043. d.uploader.bind(r, function(v) {
  9044. var y = (0, n.isFunction)(a.upload) ? a.upload : d.o.uploader.defaultHandlerSuccess;
  9045. (0, n.isFunction)(y) && y.call(d, v), d.e.fire("closeAllPopups");
  9046. }, function(v) {
  9047. d.e.fire("errorMessage", v.message), d.e.fire("closeAllPopups");
  9048. }), o.push({ icon: "upload", name: "Upload", content: r });
  9049. }
  9050. if (a.filebrowser && (d.o.filebrowser.ajax.url || d.o.filebrowser.items.url) && o.push({ icon: "folder", name: "Browse", content: function() {
  9051. c && c(), a.filebrowser && d.filebrowser.open(a.filebrowser, p);
  9052. } }), a.url) {
  9053. var i = new h.UIButton(d, { type: "submit", variant: "primary", text: "Insert" }), u = new h.UIForm(d, [new h.UIInput(d, { required: !0, label: "URL", name: "url", type: "text", placeholder: "https://" }), new h.UIInput(d, { name: "text", label: "Alternative text" }), new h.UIBlock(d, [i])]);
  9054. l = null, s && !m.Dom.isText(s) && (m.Dom.isTag(s, "img") || (0, n.$$)("img", s).length) && (l = s.tagName === "IMG" ? s : (0, n.$$)("img", s)[0], (0, n.val)(u.container, "input[name=url]", (0, n.attr)(l, "src")), (0, n.val)(u.container, "input[name=text]", (0, n.attr)(l, "alt")), i.state.text = "Update"), s && m.Dom.isTag(s, "a") && ((0, n.val)(u.container, "input[name=url]", (0, n.attr)(s, "href")), (0, n.val)(u.container, "input[name=text]", (0, n.attr)(s, "title")), i.state.text = "Update"), u.onSubmit(function(v) {
  9055. (0, n.isFunction)(a.url) && a.url.call(d, v.url, v.text);
  9056. }), o.push({ icon: "link", name: "URL", content: u.container });
  9057. }
  9058. return (0, f.TabsWidget)(d, o);
  9059. };
  9060. }, 718: function(_, t, e) {
  9061. Object.defineProperty(t, "__esModule", { value: !0 });
  9062. var n = e(20255);
  9063. n.__exportStar(e(75243), t), n.__exportStar(e(60929), t), n.__exportStar(e(83029), t);
  9064. }, 60929: function(_, t, e) {
  9065. Object.defineProperty(t, "__esModule", { value: !0 }), t.TabsWidget = void 0, e(96410);
  9066. var n = e(40332), m = e(42096), h = e(2074), f = e(56562), d = e(24263);
  9067. t.TabsWidget = function(a, s, c) {
  9068. var p = a.c.div("jodit-tabs"), l = a.c.div("jodit-tabs__wrapper"), o = a.c.div("jodit-tabs__buttons"), r = {}, i = [], u = "", v = 0;
  9069. p.appendChild(o), p.appendChild(l);
  9070. var y = function(b) {
  9071. r[b] && (i.forEach(function(w) {
  9072. w.state.activated = !1;
  9073. }), (0, n.$$)(".jodit-tab", l).forEach(function(w) {
  9074. w.classList.remove("jodit-tab_active");
  9075. }), r[b].button.state.activated = !0, r[b].tab.classList.add("jodit-tab_active"));
  9076. };
  9077. if (s.forEach(function(b) {
  9078. var w = b.icon, C = b.name, S = b.content, j = a.c.div("jodit-tab"), E = (0, h.Button)(a, w || C, C);
  9079. a.e.on(E.container, "mousedown", function(x) {
  9080. return x.preventDefault();
  9081. }), u || (u = C), o.appendChild(E.container), i.push(E), E.container.classList.add("jodit-tabs__button", "jodit-tabs__button_columns_" + s.length), (0, m.isFunction)(S) ? j.appendChild(a.c.div("jodit-tab_empty")) : j.appendChild(f.Component.isInstanceOf(S, h.UIElement) ? S.container : S), l.appendChild(j), E.onAction(function() {
  9082. return y(C), (0, m.isFunction)(S) && !d.Dom.isElement(S) && S.call(a), c && (c.__activeTab = C), !1;
  9083. }), r[C] = { button: E, tab: j }, v += 1;
  9084. }), !v) return p;
  9085. if ((0, n.$$)("a", o).forEach(function(b) {
  9086. b.style.width = (100 / v).toFixed(10) + "%";
  9087. }), y(c && c.__activeTab && r[c.__activeTab] ? c.__activeTab : u), c) {
  9088. var g = c.__activeTab;
  9089. Object.defineProperty(c, "__activeTab", { configurable: !0, enumerable: !1, get: function() {
  9090. return g;
  9091. }, set: function(b) {
  9092. g = b, y(b);
  9093. } });
  9094. }
  9095. return p;
  9096. };
  9097. }, 55692: function(_, t, e) {
  9098. Object.defineProperty(t, "__esModule", { value: !0 }), e(33126);
  9099. var n = e(93166), m = e(40332), h = e(86893), f = e(17332), d = e(77904);
  9100. n.Config.prototype.controls.about = { exec: function(a) {
  9101. var s = a.dlg(), c = a.i18n.bind(a);
  9102. s.setMod("theme", a.o.theme).setHeader(c("About Jodit")).setContent(`<div class="jodit-about">
  9103. <div>`.concat(c("Jodit Editor"), " v.").concat(a.getVersion(), `</div>
  9104. <div>`).concat(c("License: %s", (0, m.isLicense)(a.o.license) ? (0, m.normalizeLicense)(a.o.license) : "MIT"), `</div>
  9105. <div>
  9106. <a href="`).concat("https://xdsoft.net/jodit/", '" target="_blank">').concat("https://xdsoft.net/jodit/", `</a>
  9107. </div>
  9108. <div>
  9109. <a href="https://xdsoft.net/jodit/doc/" target="_blank">`).concat(c("Jodit User's Guide"), `</a>
  9110. `).concat(c("contains detailed help for using"), `
  9111. </div>
  9112. <div>`).concat(c("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved."), `</div>
  9113. </div>`)), (0, m.css)(s.dialog, { minHeight: 200, minWidth: 420 }), s.open(!0);
  9114. }, tooltip: "About Jodit", mode: h.MODE_SOURCE + h.MODE_WYSIWYG }, f.pluginSystem.add("about", function(a) {
  9115. a.registerButton({ name: "about", group: "info" });
  9116. }), d.Icon.set("about", e(84279));
  9117. }, 66031: function(_, t, e) {
  9118. Object.defineProperty(t, "__esModule", { value: !0 }), t.addNewLine = void 0;
  9119. var n = e(20255);
  9120. e(30724);
  9121. var m = e(87837), h = e(40332), f = e(43441), d = e(17332);
  9122. e(46360);
  9123. var a = "addnewline", s = function(c) {
  9124. function p() {
  9125. var l = c !== null && c.apply(this, arguments) || this;
  9126. return l.line = l.j.c.fromHTML('<div role="button" tabindex="-1" title="'.concat(l.j.i18n("Break"), '" class="jodit-add-new-line"><span>').concat(m.Icon.get("enter"), "</span></div>")), l.isMatchedTag = function(o) {
  9127. return !!(o && l.j.o.addNewLineTagsTriggers.includes(o.nodeName.toLowerCase()));
  9128. }, l.preview = !1, l.lineInFocus = !1, l.isShown = !1, l.hideForce = function() {
  9129. l.isShown && (l.isShown = !1, l.j.async.clearTimeout(l.timeout), l.lineInFocus = !1, m.Dom.safeRemove(l.line), l.line.style.setProperty("--jd-offset-handle", "0"));
  9130. }, l.canGetFocus = function(o) {
  9131. return o != null && m.Dom.isBlock(o) && !/^(img|table|iframe|hr)$/i.test(o.nodeName);
  9132. }, l.onClickLine = function(o) {
  9133. var r = l.j, i = r.createInside.element(r.o.enter);
  9134. l.preview && l.current && l.current.parentNode ? l.current === r.editor ? m.Dom.prepend(r.editor, i) : l.current.parentNode.insertBefore(i, l.current) : r.editor.appendChild(i), r.s.setCursorIn(i), (0, h.scrollIntoViewIfNeeded)(i, r.editor, r.ed), r.synchronizeValues(), l.hideForce(), o.preventDefault();
  9135. }, l;
  9136. }
  9137. return n.__extends(p, c), p.prototype.show = function() {
  9138. this.isShown || this.j.o.readonly || this.j.isLocked || (this.isShown = !0, this.j.async.clearTimeout(this.timeout), this.line.classList.toggle("jodit-add-new-line_after", !this.preview), this.j.container.appendChild(this.line), this.line.style.width = this.j.container.clientWidth + "px");
  9139. }, p.prototype.onLock = function(l) {
  9140. l && this.isShown && this.hideForce();
  9141. }, p.prototype.hide = function() {
  9142. this.isShown && !this.lineInFocus && (this.timeout = this.j.async.setTimeout(this.hideForce, { timeout: 500, label: "add-new-line-hide" }));
  9143. }, p.prototype.afterInit = function(l) {
  9144. var o = this;
  9145. l.o.addNewLine && (l.e.on(this.line, "mousemove", function(r) {
  9146. r.stopPropagation();
  9147. }).on(this.line, "mousedown touchstart", this.onClickLine).on("change", this.hideForce).on(this.line, "mouseenter", function() {
  9148. o.j.async.clearTimeout(o.timeout), o.lineInFocus = !0;
  9149. }).on(this.line, "mouseleave", function() {
  9150. o.lineInFocus = !1;
  9151. }).on("changePlace", this.addEventListeners.bind(this)), this.addEventListeners());
  9152. }, p.prototype.addEventListeners = function() {
  9153. var l = this.j;
  9154. l.e.off(l.editor, "." + a).off(l.container, "." + a).on([l.ow, l.ew, l.editor], "scroll." + a, this.hideForce).on(l.editor, "click." + a, this.hide).on(l.container, "mouseleave." + a, this.hide).on(l.editor, "mousemove." + a, this.onMouseMove);
  9155. }, p.prototype.onDblClickEditor = function(l) {
  9156. var o = this.j;
  9157. if (!o.o.readonly && o.o.addNewLineOnDBLClick && l.target === o.editor && o.s.isCollapsed()) {
  9158. var r = (0, h.offset)(o.editor, o, o.ed), i = l.pageY - o.ew.pageYOffset, u = o.createInside.element(o.o.enter);
  9159. Math.abs(i - r.top) < Math.abs(i - (r.height + r.top)) && o.editor.firstChild ? o.editor.insertBefore(u, o.editor.firstChild) : o.editor.appendChild(u), o.s.setCursorIn(u), o.synchronizeValues(), this.hideForce(), l.preventDefault();
  9160. }
  9161. }, p.prototype.onMouseMove = function(l) {
  9162. var o = this.j, r = o.ed.elementFromPoint(l.clientX, l.clientY);
  9163. if (m.Dom.isHTMLElement(r) && !m.Dom.isOrContains(this.line, r) && m.Dom.isOrContains(o.editor, r)) if (o.editor === r || this.isMatchedTag(r) || (r = m.Dom.closest(r, this.isMatchedTag, o.editor)), r) {
  9164. if (this.isMatchedTag(r)) {
  9165. var i = m.Dom.up(r, m.Dom.isBlock, o.editor);
  9166. i && i !== o.editor && (r = i);
  9167. }
  9168. var u = (0, h.position)(r, this.j), v = !1, y = l.clientY, g = l.clientX;
  9169. if (this.j.iframe) {
  9170. var b = (0, h.position)(this.j.iframe, this.j, !0);
  9171. y += b.top, g += b.left;
  9172. }
  9173. var w = this.j.o.addNewLineDeltaShow;
  9174. Math.abs(y - u.top) > w || (v = u.top, this.preview = !0), Math.abs(y - (u.top + u.height)) > w || (v = u.top + u.height, this.preview = !1), v === !1 || (o.editor !== r || this.preview) && (0, h.call)(this.preview ? m.Dom.prev : m.Dom.next, r, this.canGetFocus, o.editor) ? (this.current = !1, this.hide()) : (this.line.style.top = v + "px", this.current = r, this.show(), this.line.style.setProperty("--jd-offset-handle", g - u.left - 10 + "px"));
  9175. } else this.hide();
  9176. }, p.prototype.beforeDestruct = function() {
  9177. this.j.async.clearTimeout(this.timeout), this.j.e.off(this.line).off("changePlace", this.addEventListeners), m.Dom.safeRemove(this.line), this.j.e.off([this.j.ow, this.j.ew, this.j.editor], "." + a).off(this.j.container, "." + a);
  9178. }, n.__decorate([(0, f.watch)(":lock")], p.prototype, "onLock", null), n.__decorate([f.autobind], p.prototype, "hide", null), n.__decorate([(0, f.watch)(":dblclick")], p.prototype, "onDblClickEditor", null), n.__decorate([(0, f.debounce)(function(l) {
  9179. return 5 * l.defaultTimeout;
  9180. })], p.prototype, "onMouseMove", null), p;
  9181. }(m.Plugin);
  9182. t.addNewLine = s, d.pluginSystem.add("addNewLine", s);
  9183. }, 46360: function(_, t, e) {
  9184. Object.defineProperty(t, "__esModule", { value: !0 });
  9185. var n = e(93166), m = e(2074);
  9186. n.Config.prototype.addNewLine = !0, n.Config.prototype.addNewLineOnDBLClick = !0, n.Config.prototype.addNewLineTagsTriggers = ["table", "iframe", "img", "hr", "pre", "jodit"], n.Config.prototype.addNewLineDeltaShow = 20, m.Icon.set("enter", e(11257));
  9187. }, 91241: function(_, t, e) {
  9188. Object.defineProperty(t, "__esModule", { value: !0 }), t.backspace = void 0;
  9189. var n = e(20255), m = e(57549), h = e(64968), f = e(86893), d = e(40332), a = e(10109), s = e(17332), c = e(90089), p = e(95441);
  9190. e(48229);
  9191. var l = function(o) {
  9192. function r() {
  9193. var i = o !== null && o.apply(this, arguments) || this;
  9194. return i.requires = ["hotkeys"], i;
  9195. }
  9196. return n.__extends(r, o), r.prototype.afterInit = function(i) {
  9197. var u = this;
  9198. i.e.on("afterCommand.delete", function(v) {
  9199. v === "delete" && u.afterDeleteCommand();
  9200. }), i.registerCommand("deleteButton", { exec: function() {
  9201. return u.onDelete(!1);
  9202. }, hotkeys: i.o.delete.hotkeys.delete }, { stopPropagation: !1 }).registerCommand("backspaceButton", { exec: function() {
  9203. return u.onDelete(!0);
  9204. }, hotkeys: i.o.delete.hotkeys.backspace }, { stopPropagation: !1 }).registerCommand("deleteWordButton", { exec: function() {
  9205. return u.onDelete(!1, "word");
  9206. }, hotkeys: i.o.delete.hotkeys.deleteWord }).registerCommand("backspaceWordButton", { exec: function() {
  9207. return u.onDelete(!0, "word");
  9208. }, hotkeys: i.o.delete.hotkeys.backspaceWord }).registerCommand("deleteSentenceButton", { exec: function() {
  9209. return u.onDelete(!1, "sentence");
  9210. }, hotkeys: i.o.delete.hotkeys.deleteSentence }).registerCommand("backspaceSentenceButton", { exec: function() {
  9211. return u.onDelete(!0, "sentence");
  9212. }, hotkeys: i.o.delete.hotkeys.backspaceSentence });
  9213. }, r.prototype.beforeDestruct = function(i) {
  9214. i.e.off("afterCommand.delete");
  9215. }, r.prototype.afterDeleteCommand = function() {
  9216. var i = this.j, u = i.s.current();
  9217. if (u && h.Dom.isTag(u.firstChild, "br") && i.s.removeNode(u.firstChild), !((0, d.trim)(i.editor.textContent || "") || i.editor.querySelector("img,table,jodit,iframe,hr") || u && h.Dom.closest(u, "table", i.editor))) {
  9218. i.editor.innerHTML = "";
  9219. var v = i.s.setCursorIn(i.editor);
  9220. i.s.removeNode(v);
  9221. }
  9222. }, r.prototype.onDelete = function(i, u) {
  9223. u === void 0 && (u = "char");
  9224. var v = this.j, y = v.selection;
  9225. if (y.isFocused() || y.focus(), (0, p.checkNotCollapsed)(v)) return !1;
  9226. var g = y.range, b = v.createInside.text(f.INVISIBLE_SPACE);
  9227. try {
  9228. if (h.Dom.safeInsertNode(g, b), !h.Dom.isOrContains(v.editor, b)) return;
  9229. if (v.e.fire("backSpaceBeforeCases", i, b) || ((0, a.moveNodeInsideStart)(v, b, i), c.cases.some(function(w) {
  9230. if ((0, d.isFunction)(w) && w(v, b, i, u)) return !0;
  9231. }))) return !1;
  9232. } catch (w) {
  9233. throw w;
  9234. } finally {
  9235. v.e.fire("backSpaceAfterDelete", i, b), this.safeRemoveEmptyNode(b);
  9236. }
  9237. return !1;
  9238. }, r.prototype.safeRemoveEmptyNode = function(i) {
  9239. var u, v, y = this.j.s.range;
  9240. y.startContainer === i && (i.previousSibling ? h.Dom.isText(i.previousSibling) ? y.setStart(i.previousSibling, (v = (u = i.previousSibling.nodeValue) === null || u === void 0 ? void 0 : u.length) !== null && v !== void 0 ? v : 0) : y.setStartAfter(i.previousSibling) : i.nextSibling && (h.Dom.isText(i.nextSibling) ? y.setStart(i.nextSibling, 0) : y.setStartBefore(i.nextSibling)), y.collapse(!0), this.j.s.selectRange(y)), h.Dom.safeRemove(i);
  9241. }, r;
  9242. }(m.Plugin);
  9243. t.backspace = l, s.pluginSystem.add("backspace", l);
  9244. }, 31078: function(_, t, e) {
  9245. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkJoinNeighbors = void 0;
  9246. var n = e(24263), m = e(30861);
  9247. function h(f, d, a, s) {
  9248. if (d && n.Dom.isElement(a)) {
  9249. n.Dom.moveContent(d, a, !s, (0, m.getMoveFilter)(f));
  9250. for (var c = d; c && c !== f.editor && n.Dom.isEmpty(c); ) {
  9251. var p = c.parentElement;
  9252. n.Dom.safeRemove(c), c = p;
  9253. }
  9254. return !0;
  9255. }
  9256. return !1;
  9257. }
  9258. t.checkJoinNeighbors = function(f, d, a) {
  9259. for (var s = d, c = s; s && !n.Dom.findNotEmptySibling(s, a) && s.parentElement !== f.editor; ) c = s = s.parentElement;
  9260. if (n.Dom.isElement(c) && n.Dom.isContentEditable(c, f.editor)) {
  9261. var p = n.Dom.findNotEmptySibling(c, a);
  9262. if (p && (function(l, o, r, i) {
  9263. var u = n.Dom.isTag(r, ["ol", "ul"]), v = n.Dom.isTag(o, ["ol", "ul"]), y = function(g, b) {
  9264. return b ? g.firstElementChild : g.lastElementChild;
  9265. };
  9266. return v ? (r = l.createInside.element(l.o.enterBlock), n.Dom.before(o, r), h(l, y(o, i), r, i)) : !(!r || !u || v) && h(l, o, y(r, !i), i);
  9267. }(f, c, p, a) || h(f, c, p, a))) return f.s.setCursorBefore(d), !0;
  9268. }
  9269. return !1;
  9270. };
  9271. }, 92156: function(_, t, e) {
  9272. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkJoinTwoLists = void 0;
  9273. var n = e(24263), m = e(67309), h = e(30861);
  9274. t.checkJoinTwoLists = function(f, d, a) {
  9275. var s = n.Dom.findSibling(d, a), c = n.Dom.findSibling(d, !a);
  9276. if (!n.Dom.closest(d, n.Dom.isElement, f.editor) && n.Dom.isTag(s, ["ul", "ol"]) && n.Dom.isTag(c, ["ul", "ol"]) && n.Dom.isTag(s.lastElementChild, "li") && n.Dom.isTag(c.firstElementChild, "li")) {
  9277. var p = f.s, l = p.setCursorBefore, o = p.setCursorAfter, r = s.lastElementChild;
  9278. return (0, m.call)(a ? n.Dom.prepend : n.Dom.append, c.firstElementChild, d), n.Dom.moveContent(c, s, !a, (0, h.getMoveFilter)(f)), n.Dom.safeRemove(c), (0, m.call)(a ? n.Dom.append : n.Dom.prepend, r, d), (0, m.call)(a ? l : o, d), !0;
  9279. }
  9280. return !1;
  9281. };
  9282. }, 95441: function(_, t) {
  9283. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkNotCollapsed = void 0, t.checkNotCollapsed = function(e) {
  9284. return !e.s.isCollapsed() && (e.execCommand("Delete"), !0);
  9285. };
  9286. }, 13116: function(_, t, e) {
  9287. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkRemoveChar = void 0;
  9288. var n = e(64968), m = e(40332), h = e(86893), f = e(30861);
  9289. t.checkRemoveChar = function d(a, s, c, p) {
  9290. var l, o, r, i, u = c ? -1 : 1, v = n.Dom.sibling(s, !c), y = n.Dom.sibling(s, c), g = null, b = !1, w = function(k) {
  9291. var I = n.Dom.sibling(k, c);
  9292. return !I && k.parentNode && k.parentNode !== a.editor && (I = (0, f.findMostNestedNeighbor)(k, !c, a.editor, !0)), I;
  9293. };
  9294. for (y || (y = w(s)); y && (n.Dom.isText(y) || n.Dom.isInlineBlock(y)); ) {
  9295. for (; n.Dom.isInlineBlock(y); ) y = c ? y == null ? void 0 : y.lastChild : y == null ? void 0 : y.firstChild;
  9296. if (!y) break;
  9297. if (!((l = y.nodeValue) === null || l === void 0) && l.length) {
  9298. var C = (0, m.toArray)(y.nodeValue), S = C.length, j = c ? S - 1 : 0;
  9299. if (C[j] === h.INVISIBLE_SPACE) for (; C[j] === h.INVISIBLE_SPACE; ) j += u;
  9300. if (i = C[j], C[j + u] === h.INVISIBLE_SPACE) {
  9301. for (j += u; C[j] === h.INVISIBLE_SPACE; ) j += u;
  9302. j += c ? 1 : -1;
  9303. }
  9304. if (C = c && 0 > j ? [] : C.slice(c ? 0 : j + 1, c ? j : S), !v || !n.Dom.isText(v) || (c ? /^ / : / $/).test((o = v.nodeValue) !== null && o !== void 0 ? o : "") || !(0, m.trimInv)(v.nodeValue || "").length) for (var E = c ? C.length - 1 : 0; (c ? E >= 0 : C.length > E) && C[E] === " "; E += c ? -1 : 1) C[E] = h.NBSP_SPACE;
  9305. y.nodeValue = C.join("");
  9306. }
  9307. if (!((r = y.nodeValue) === null || r === void 0) && r.length || (g = y), !(0, m.isVoid)(i) && i !== h.INVISIBLE_SPACE) {
  9308. b = !0, (0, m.call)(c ? n.Dom.after : n.Dom.before, y, s), (p === "sentence" || p === "word" && i !== " " && i !== h.NBSP_SPACE) && d(a, s, c, p);
  9309. break;
  9310. }
  9311. var x = w(y);
  9312. g && (n.Dom.safeRemove(g), g = null), y = x;
  9313. }
  9314. return g && (n.Dom.safeRemove(g), g = null), b && (function(k, I) {
  9315. for (var M = k.parentElement; M && n.Dom.isInlineBlock(M) && n.Dom.isTag(M, I); ) {
  9316. var T = M.parentElement;
  9317. n.Dom.isEmpty(M) && (n.Dom.after(M, k), n.Dom.safeRemove(M)), M = T;
  9318. }
  9319. }(s, ["a"]), function(k, I) {
  9320. I.parentElement !== k.editor && n.Dom.isBlock(I.parentElement) && n.Dom.each(I.parentElement, n.Dom.isEmptyTextNode) && n.Dom.after(I, k.createInside.element("br"));
  9321. }(a, s), a.s.setCursorBefore(s), n.Dom.isTag(s.previousSibling, "br") && !n.Dom.findNotEmptySibling(s, !1) && n.Dom.after(s, a.createInside.element("br"))), b;
  9322. };
  9323. }, 74217: function(_, t, e) {
  9324. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkRemoveContentNotEditable = void 0;
  9325. var n = e(64968), m = e(40332), h = e(10109);
  9326. t.checkRemoveContentNotEditable = function(f, d, a) {
  9327. var s = n.Dom.findSibling(d, a);
  9328. return !s && d.parentElement && d.parentElement !== f.editor && (s = n.Dom.findSibling(d.parentElement, a)), !(!n.Dom.isElement(s) || n.Dom.isContentEditable(s, f.editor) || ((0, m.call)(a ? n.Dom.before : n.Dom.after, s, d), n.Dom.safeRemove(s), (0, h.moveNodeInsideStart)(f, d, a), (0, m.call)(a ? f.s.setCursorBefore : f.s.setCursorAfter, d), 0));
  9329. };
  9330. }, 34181: function(_, t, e) {
  9331. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkRemoveEmptyNeighbor = void 0;
  9332. var n = e(24263);
  9333. t.checkRemoveEmptyNeighbor = function(m, h, f) {
  9334. var d = n.Dom.closest(h, n.Dom.isElement, m.editor);
  9335. if (!d) return !1;
  9336. var a = n.Dom.findNotEmptySibling(d, f);
  9337. return !(!a || !n.Dom.isEmpty(a) || (n.Dom.safeRemove(a), m.s.setCursorBefore(h), 0));
  9338. };
  9339. }, 13890: function(_, t, e) {
  9340. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkRemoveEmptyParent = void 0;
  9341. var n = e(64968), m = e(86893), h = e(92156);
  9342. t.checkRemoveEmptyParent = function(f, d, a) {
  9343. var s = !1, c = f.s, p = c.setCursorBefore, l = c.setCursorIn, o = n.Dom.closest(d, n.Dom.isElement, f.editor);
  9344. if (!o || !n.Dom.isEmpty(o)) return !1;
  9345. var r = n.Dom.findNotEmptyNeighbor(d, a, f.editor);
  9346. do {
  9347. if (!o || !n.Dom.isEmpty(o) || n.Dom.isCell(o)) break;
  9348. n.Dom.after(o, d);
  9349. var i = n.Dom.closest(o, function(u) {
  9350. return n.Dom.isElement(u) && u !== o;
  9351. }, f.editor);
  9352. n.Dom.safeRemove(o), s = !0, o = i;
  9353. } while (o);
  9354. return !(!s || !(0, h.checkJoinTwoLists)(f, d, a)) || (!r || n.Dom.isText(r) || n.Dom.isTag(r, m.INSEPARABLE_TAGS) ? p(d) : l(r, !a), s);
  9355. };
  9356. }, 8249: function(_, t, e) {
  9357. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkRemoveUnbreakableElement = void 0;
  9358. var n = e(24263), m = e(86893), h = e(13890);
  9359. t.checkRemoveUnbreakableElement = function(f, d, a) {
  9360. var s = n.Dom.findSibling(d, a);
  9361. return !(!n.Dom.isElement(s) || !n.Dom.isTag(s, m.INSEPARABLE_TAGS) && !n.Dom.isEmpty(s) || (n.Dom.safeRemove(s), n.Dom.isTag(s, "br") && !n.Dom.findNotEmptySibling(d, !1) && n.Dom.after(d, f.createInside.element("br")), f.s.setCursorBefore(d), n.Dom.isTag(s, "br") && (0, h.checkRemoveEmptyParent)(f, d, a), 0));
  9362. };
  9363. }, 58368: function(_, t, e) {
  9364. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkTableCell = void 0;
  9365. var n = e(24263);
  9366. t.checkTableCell = function(m, h) {
  9367. return !!n.Dom.isCell(h.parentElement);
  9368. };
  9369. }, 6028: function(_, t, e) {
  9370. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkUnwrapFirstListItem = void 0;
  9371. var n = e(24263), m = e(76502);
  9372. t.checkUnwrapFirstListItem = function(h, f, d) {
  9373. var a, s = n.Dom.closest(f, n.Dom.isElement, h.editor), c = h.s;
  9374. if (n.Dom.isTag(s, "li") && ((a = s == null ? void 0 : s.parentElement) === null || a === void 0 ? void 0 : a[d ? "firstElementChild" : "lastElementChild"]) === s && c.cursorInTheEdge(d, s)) {
  9375. var p = s.parentElement, l = h.createInside.element(h.o.enterBlock);
  9376. return (0, m.call)(d ? n.Dom.before : n.Dom.after, p, l), n.Dom.moveContent(s, l), n.Dom.safeRemove(s), n.Dom.isEmpty(p) && n.Dom.safeRemove(p), (0, m.call)(d ? c.setCursorBefore : c.setCursorAfter, f), !0;
  9377. }
  9378. return !1;
  9379. };
  9380. }, 90089: function(_, t, e) {
  9381. Object.defineProperty(t, "__esModule", { value: !0 }), t.cases = void 0;
  9382. var n = e(8249), m = e(74217), h = e(13116), f = e(58368), d = e(13890), a = e(34181), s = e(92156), c = e(31078), p = e(6028);
  9383. t.cases = [n.checkRemoveUnbreakableElement, m.checkRemoveContentNotEditable, h.checkRemoveChar, f.checkTableCell, d.checkRemoveEmptyParent, a.checkRemoveEmptyNeighbor, s.checkJoinTwoLists, c.checkJoinNeighbors, p.checkUnwrapFirstListItem];
  9384. }, 48229: function(_, t, e) {
  9385. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.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"] } };
  9386. }, 30861: function(_, t, e) {
  9387. Object.defineProperty(t, "__esModule", { value: !0 }), t.getMoveFilter = t.findMostNestedNeighbor = void 0;
  9388. var n = e(64968);
  9389. t.findMostNestedNeighbor = function(m, h, f, d) {
  9390. d === void 0 && (d = !1);
  9391. var a = function(c) {
  9392. return h ? c.firstChild : c.lastChild;
  9393. }, s = n.Dom.findNotEmptyNeighbor(m, !h, f);
  9394. if (d && n.Dom.isElement(s) && !n.Dom.isInlineBlock(s)) return null;
  9395. if (s) do {
  9396. if (!a(s)) return s;
  9397. s = a(s);
  9398. } while (s);
  9399. return null;
  9400. }, t.getMoveFilter = function(m) {
  9401. return function(h) {
  9402. return m.e.fire("backSpaceIsMovedIgnore", h) !== !0;
  9403. };
  9404. };
  9405. }, 87565: function(_, t, e) {
  9406. Object.defineProperty(t, "__esModule", { value: !0 }), t.bold = void 0;
  9407. var n = e(20255), m = e(93166), h = e(40332), f = e(17332), d = e(77904);
  9408. function a(s) {
  9409. var c = function(p) {
  9410. var l, o = m.Config.defaultOptions.controls[p], r = n.__assign({}, o.css);
  9411. return Object.keys(r).forEach(function(i) {
  9412. l || (l = {}), l[i] = (0, h.isArray)(r[i]) ? r[i][0] : r[i];
  9413. }), s.s.applyStyle(l, { element: o.tags ? o.tags[0] : void 0 }), s.synchronizeValues(), !1;
  9414. };
  9415. ["bold", "italic", "underline", "strikethrough"].forEach(function(p) {
  9416. s.registerButton({ name: p, group: "font-style" });
  9417. }), ["superscript", "subscript"].forEach(function(p) {
  9418. s.registerButton({ name: p, group: "script" });
  9419. }), s.registerCommand("bold", { exec: c, hotkeys: ["ctrl+b", "cmd+b"] }).registerCommand("italic", { exec: c, hotkeys: ["ctrl+i", "cmd+i"] }).registerCommand("underline", { exec: c, hotkeys: ["ctrl+u", "cmd+u"] }).registerCommand("strikethrough", { exec: c }).registerCommand("subscript", { exec: c }).registerCommand("superscript", { exec: c });
  9420. }
  9421. e(58334), e(90740), t.bold = a, f.pluginSystem.add("bold", a), d.Icon.set("bold", e(25141)).set("italic", e(24557)).set("strikethrough", e(10859)).set("subscript", e(9813)).set("superscript", e(93395)).set("underline", e(98213));
  9422. }, 90740: function(_, t, e) {
  9423. Object.defineProperty(t, "__esModule", { value: !0 });
  9424. var n = e(93166);
  9425. n.Config.prototype.controls.subscript = { tags: ["sub"], tooltip: "subscript" }, n.Config.prototype.controls.superscript = { tags: ["sup"], tooltip: "superscript" }, n.Config.prototype.controls.bold = { tagRegExp: /^(strong|b)$/i, tags: ["strong", "b"], css: { "font-weight": ["bold", "700"] }, tooltip: "Bold" }, n.Config.prototype.controls.italic = { tagRegExp: /^(em|i)$/i, tags: ["em", "i"], css: { "font-style": "italic" }, tooltip: "Italic" }, n.Config.prototype.controls.underline = { tagRegExp: /^(u)$/i, tags: ["u"], css: { "text-decoration-line": "underline" }, tooltip: "Underline" }, n.Config.prototype.controls.strikethrough = { tagRegExp: /^(s)$/i, tags: ["s"], css: { "text-decoration-line": "line-through" }, tooltip: "Strike through" };
  9426. }, 58334: function() {
  9427. }, 60894: function(_, t, e) {
  9428. Object.defineProperty(t, "__esModule", { value: !0 }), t.classSpan = void 0;
  9429. var n = e(20255), m = e(57549), h = e(93166), f = e(64968), d = e(40332), a = e(17332), s = e(2074);
  9430. h.Config.prototype.controls.classSpan = { command: "applyClassName", exec: d.memorizeExec, list: ["enabled", "disabled", "activated", "text-left", "text-center", "text-right", "warning", "error"], isChildActive: function(p, l) {
  9431. var o = p.s.current();
  9432. if (o) {
  9433. var r = f.Dom.closest(o, f.Dom.isElement, p.editor) || p.editor;
  9434. return !!(l.args && r.classList.contains(l.args[0].toString()));
  9435. }
  9436. return !1;
  9437. }, isActive: function(p, l) {
  9438. var o = p.s.current();
  9439. if (o) {
  9440. var r = f.Dom.closest(o, f.Dom.isElement, p.editor) || p.editor, i = !1;
  9441. return l.list && Object.keys(l.list).forEach(function(u) {
  9442. r.classList.contains(u) && (i = !0);
  9443. }), !!(r && r !== p.editor && l.list !== void 0 && i);
  9444. }
  9445. return !1;
  9446. }, childTemplate: function(p, l, o) {
  9447. return '<span class="'.concat(l, '">').concat(p.i18n(o), "</span>");
  9448. }, tooltip: "Insert className" };
  9449. var c = function(p) {
  9450. function l() {
  9451. var o = p !== null && p.apply(this, arguments) || this;
  9452. return o.buttons = [{ name: "classSpan", group: "font" }], o;
  9453. }
  9454. return n.__extends(l, p), l.prototype.afterInit = function(o) {
  9455. o.registerCommand("applyClassName", function(r, i, u) {
  9456. return o.s.applyStyle(void 0, { className: u }), !1;
  9457. });
  9458. }, l.prototype.beforeDestruct = function() {
  9459. }, l;
  9460. }(m.Plugin);
  9461. t.classSpan = c, a.pluginSystem.add("classSpan", c), s.Icon.set("class-span", e(20026));
  9462. }, 90302: function(_, t, e) {
  9463. Object.defineProperty(t, "__esModule", { value: !0 }), t.cleanHtml = void 0;
  9464. var n = e(20255), m = e(67128), h = e(85605), f = e(43441), d = e(33841), a = e(17332), s = e(24263), c = e(57713);
  9465. e(98889);
  9466. var p = function(l) {
  9467. function o() {
  9468. var r = l !== null && l.apply(this, arguments) || this;
  9469. return r.buttons = [{ name: "eraser", group: "font-style" }], r.currentSelectionNode = null, r.walker = new d.LazyWalker(r.j.async, { timeout: r.j.o.cleanHTML.timeout }), r;
  9470. }
  9471. return n.__extends(o, l), o.prototype.afterInit = function(r) {
  9472. }, Object.defineProperty(o.prototype, "isEditMode", { get: function() {
  9473. return !(this.j.isInDestruct || !this.j.isEditorMode() || this.j.getReadOnly());
  9474. }, enumerable: !1, configurable: !0 }), o.prototype.onChangeCleanHTML = function() {
  9475. if (this.isEditMode) {
  9476. var r = this.j;
  9477. this.walker.setWork(r.editor), this.currentSelectionNode = r.s.current();
  9478. }
  9479. }, o.prototype.startWalker = function() {
  9480. var r = this, i = this.jodit, u = (0, c.getHash)(this.j.o.cleanHTML.allowTags), v = (0, c.getHash)(this.j.o.cleanHTML.denyTags);
  9481. this.walker.on("visit", function(y) {
  9482. return (0, c.visitNodeWalker)(i, y, u, v, r.currentSelectionNode);
  9483. }).on("end", function(y) {
  9484. r.j.e.fire(y ? "internalChange finishedCleanHTMLWorker" : "finishedCleanHTMLWorker");
  9485. });
  9486. }, o.prototype.beforeCommand = function(r) {
  9487. if (r.toLowerCase() === "removeformat") return this.j.s.isCollapsed() ? (0, c.removeFormatForCollapsedSelection)(this.j) : (0, c.removeFormatForSelection)(this.j), !1;
  9488. }, o.prototype.onBeforeSetNativeEditorValue = function(r) {
  9489. var i = this.j.o.cleanHTML.useIframeSandbox ? this.j.createInside.sandbox() : this.j.createInside.div();
  9490. return i.innerHTML = r.value, this.onSafeHTML(i), r.value = i.innerHTML, (0, m.safeHTML)(i, { safeJavaScriptLink: !0, removeOnError: !0 }), s.Dom.safeRemove(i), !1;
  9491. }, o.prototype.onSafeHTML = function(r) {
  9492. (0, m.safeHTML)(r, this.j.o.cleanHTML);
  9493. }, o.prototype.beforeDestruct = function() {
  9494. this.walker.destruct();
  9495. }, n.__decorate([(0, f.watch)([":change", ":afterSetMode", ":afterInit", ":mousedown", ":keydown"])], o.prototype, "onChangeCleanHTML", null), n.__decorate([(0, f.hook)("ready")], o.prototype, "startWalker", null), n.__decorate([(0, f.watch)(":beforeCommand")], o.prototype, "beforeCommand", null), n.__decorate([(0, f.watch)(":beforeSetNativeEditorValue")], o.prototype, "onBeforeSetNativeEditorValue", null), n.__decorate([(0, f.watch)(":safeHTML")], o.prototype, "onSafeHTML", null), o;
  9496. }(h.Plugin);
  9497. t.cleanHtml = p, a.pluginSystem.add("cleanHtml", p);
  9498. }, 98889: function(_, t, e) {
  9499. Object.defineProperty(t, "__esModule", { value: !0 });
  9500. var n = e(93166), m = e(77904);
  9501. n.Config.prototype.cleanHTML = { timeout: 300, removeEmptyElements: !0, fillEmptyParagraph: !0, replaceNBSP: !0, replaceOldTags: { i: "em", b: "strong" }, allowTags: !1, denyTags: "script", useIframeSandbox: !1, removeOnError: !0, safeJavaScriptLink: !0, disableCleanFilter: null }, n.Config.prototype.controls.eraser = { command: "removeFormat", tooltip: "Clear Formatting" }, m.Icon.set("eraser", e(66911));
  9502. }, 38655: function(_, t, e) {
  9503. Object.defineProperty(t, "__esModule", { value: !0 }), t.getHash = void 0;
  9504. var n = e(33941), m = e(24421);
  9505. t.getHash = function(h) {
  9506. var f = /([^[]*)\[([^\]]+)]/, d = /[\s]*,[\s]*/, a = /^(.*)[\s]*=[\s]*(.*)$/, s = {};
  9507. return (0, m.isString)(h) ? (h.split(d).map(function(c) {
  9508. c = (0, n.trim)(c);
  9509. var p = f.exec(c), l = {};
  9510. if (p) {
  9511. var o = p[2].split(d);
  9512. p[1] && (o.forEach(function(r) {
  9513. r = (0, n.trim)(r);
  9514. var i = a.exec(r);
  9515. i ? l[i[1]] = i[2] : l[r] = !0;
  9516. }), s[p[1].toUpperCase()] = l);
  9517. } else s[c.toUpperCase()] = !0;
  9518. }), s) : !!h && (Object.keys(h).forEach(function(c) {
  9519. s[c.toUpperCase()] = h[c];
  9520. }), s);
  9521. };
  9522. }, 57713: function(_, t, e) {
  9523. Object.defineProperty(t, "__esModule", { value: !0 });
  9524. var n = e(20255);
  9525. n.__exportStar(e(38655), t), n.__exportStar(e(72170), t), n.__exportStar(e(87783), t), n.__exportStar(e(88972), t);
  9526. }, 72170: function(_, t, e) {
  9527. Object.defineProperty(t, "__esModule", { value: !0 }), t.isInlineBlock = t.removeFormatForCollapsedSelection = void 0;
  9528. var n = e(24263), m = e(86893);
  9529. function h(f) {
  9530. return n.Dom.isInlineBlock(f) && !n.Dom.isTag(f, m.INSEPARABLE_TAGS);
  9531. }
  9532. t.removeFormatForCollapsedSelection = function(f, d) {
  9533. var a = f.s, s = d;
  9534. if (!s) {
  9535. s = f.createInside.fake();
  9536. var c = a.range;
  9537. n.Dom.safeInsertNode(c, s), c.collapse();
  9538. }
  9539. var p = n.Dom.furthest(s, h, f.editor);
  9540. if (p) if (a.cursorOnTheLeft(p)) n.Dom.before(p, s);
  9541. else if (a.cursorOnTheRight(p)) n.Dom.after(p, s);
  9542. else {
  9543. var l = a.splitSelection(p);
  9544. l && n.Dom.after(l, s);
  9545. }
  9546. d || (a.setCursorBefore(s), n.Dom.safeRemove(s));
  9547. }, t.isInlineBlock = h;
  9548. }, 87783: function(_, t, e) {
  9549. Object.defineProperty(t, "__esModule", { value: !0 }), t.removeFormatForSelection = void 0;
  9550. var n = e(24263), m = e(76502), h = e(72170);
  9551. t.removeFormatForSelection = function(f) {
  9552. var d = f.s, a = f.editor, s = f.createInside, c = d.range, p = c.cloneRange(), l = c.cloneRange(), o = s.fake(), r = s.fake();
  9553. p.collapse(!0), l.collapse(!1), n.Dom.safeInsertNode(p, o), n.Dom.safeInsertNode(l, r), c.setStartBefore(o), c.collapse(!0), d.selectRange(c), (0, h.removeFormatForCollapsedSelection)(f, o), c.setEndAfter(r), c.collapse(!1), d.selectRange(c), (0, h.removeFormatForCollapsedSelection)(f, r);
  9554. var i = [];
  9555. n.Dom.between(o, r, function(v) {
  9556. (0, h.isInlineBlock)(v) && !n.Dom.isTag(v, ["a"]) && i.push(v), n.Dom.isElement(v) && (0, m.attr)(v, "style") && (0, m.attr)(v, "style", null);
  9557. }), i.forEach(function(v) {
  9558. return n.Dom.unwrap(v);
  9559. });
  9560. var u = function(v, y) {
  9561. if (!n.Dom.findNotEmptySibling(v, y)) {
  9562. var g = v.parentNode;
  9563. if (g && g !== a && (0, m.attr)(g, "style")) return (0, m.attr)(g, "style", null), u(g, y), !0;
  9564. }
  9565. };
  9566. u(o, !0) && u(r, !1), c.setStartAfter(o), c.setEndBefore(r), d.selectRange(c), n.Dom.safeRemove(o), n.Dom.safeRemove(r);
  9567. };
  9568. }, 9948: function(_, t, e) {
  9569. Object.defineProperty(t, "__esModule", { value: !0 }), t.allowAttributes = void 0;
  9570. var n = e(24263);
  9571. t.allowAttributes = function(m, h, f, d) {
  9572. if (d && n.Dom.isElement(h) && d[h.nodeName] !== !0) {
  9573. var a = h.attributes;
  9574. if (a && a.length) {
  9575. for (var s = [], c = 0; a.length > c; c += 1) {
  9576. var p = d[h.nodeName][a[c].name];
  9577. (!p || p !== !0 && p !== a[c].value) && s.push(a[c].name);
  9578. }
  9579. s.length && (f = !0), s.forEach(function(l) {
  9580. h.removeAttribute(l);
  9581. });
  9582. }
  9583. }
  9584. return f;
  9585. };
  9586. }, 74722: function(_, t, e) {
  9587. Object.defineProperty(t, "__esModule", { value: !0 }), t.fillEmptyParagraph = void 0;
  9588. var n = e(24263), m = e(86893);
  9589. t.fillEmptyParagraph = function(h, f, d) {
  9590. if (h.o.cleanHTML.fillEmptyParagraph && n.Dom.isBlock(f) && n.Dom.isEmpty(f, m.INSEPARABLE_TAGS)) {
  9591. var a = h.createInside.element("br");
  9592. return f.appendChild(a), !0;
  9593. }
  9594. return d;
  9595. };
  9596. }, 2549: function(_, t, e) {
  9597. Object.defineProperty(t, "__esModule", { value: !0 });
  9598. var n = e(20255);
  9599. n.__exportStar(e(55901), t), n.__exportStar(e(9948), t), n.__exportStar(e(74722), t), n.__exportStar(e(75096), t), n.__exportStar(e(28194), t), n.__exportStar(e(94254), t), n.__exportStar(e(64701), t);
  9600. }, 28194: function(_, t, e) {
  9601. Object.defineProperty(t, "__esModule", { value: !0 }), t.removeEmptyTextNode = void 0;
  9602. var n = e(24263);
  9603. t.removeEmptyTextNode = function(m, h, f, d, a, s) {
  9604. return n.Dom.isText(h) && !h.nodeValue ? (h === s && m.s.isCollapsed() && m.s.setCursorAfter(h), n.Dom.safeRemove(h), !0) : f;
  9605. };
  9606. }, 94254: function(_, t, e) {
  9607. Object.defineProperty(t, "__esModule", { value: !0 }), t.removeInvTextNodes = void 0;
  9608. var n = e(86893), m = e(24263);
  9609. t.removeInvTextNodes = function(h, f, d, a, s, c) {
  9610. return c !== f && m.Dom.isText(f) && f.nodeValue != null && (0, n.INVISIBLE_SPACE_REG_EXP)().test(f.nodeValue) ? (f.nodeValue = f.nodeValue.replace((0, n.INVISIBLE_SPACE_REG_EXP)(), ""), f === c && h.s.isCollapsed() && h.s.setCursorAfter(f), f.nodeValue || m.Dom.safeRemove(f), !0) : d;
  9611. };
  9612. }, 55901: function(_, t, e) {
  9613. Object.defineProperty(t, "__esModule", { value: !0 }), t.replaceOldTags = void 0;
  9614. var n = e(24263);
  9615. t.replaceOldTags = function(m, h, f) {
  9616. var d = function(a, s, c) {
  9617. if (!c || !n.Dom.isHTMLElement(s)) return s;
  9618. var p = c[s.nodeName.toLowerCase()] || c[s.nodeName];
  9619. return p ? n.Dom.replace(s, p, a.createInside, !0, !1) : s;
  9620. }(m, h, m.o.cleanHTML.replaceOldTags);
  9621. return h !== d ? (h = d, !0) : f;
  9622. };
  9623. }, 64701: function(_, t, e) {
  9624. Object.defineProperty(t, "__esModule", { value: !0 }), t.sanitizeAttributes = void 0;
  9625. var n = e(24263), m = e(40332);
  9626. t.sanitizeAttributes = function(h, f, d) {
  9627. return !(!n.Dom.isElement(f) || !(0, m.sanitizeHTMLElement)(f, { safeJavaScriptLink: h.options.cleanHTML.safeJavaScriptLink, removeOnError: h.options.cleanHTML.removeOnError })) || d;
  9628. };
  9629. }, 75096: function(_, t, e) {
  9630. Object.defineProperty(t, "__esModule", { value: !0 }), t.tryRemoveNode = void 0;
  9631. var n = e(24263), m = e(86893), h = e(33941);
  9632. t.tryRemoveNode = function(f, d, a, s, c, p) {
  9633. return function(l, o, r, i, u) {
  9634. return !(n.Dom.isText(o) || !(i && !i[o.nodeName] || u && u[o.nodeName])) || l.o.cleanHTML.removeEmptyElements && n.Dom.isElement(o) && o.nodeName.match(m.IS_INLINE) != null && !n.Dom.isTemporary(o) && (0, h.trim)(o.innerHTML).length === 0 && (r == null || !n.Dom.isOrContains(o, r));
  9635. }(f, d, p, s, c) ? (n.Dom.safeRemove(d), !0) : a;
  9636. };
  9637. }, 88972: function(_, t, e) {
  9638. Object.defineProperty(t, "__esModule", { value: !0 }), t.visitNodeWalker = void 0;
  9639. var n = e(20255), m = e(2549), h = Object.keys(m);
  9640. t.visitNodeWalker = function(f, d, a, s, c) {
  9641. var p, l, o = !1, r = f.o.cleanHTML.disableCleanFilter;
  9642. try {
  9643. for (var i = n.__values(h), u = i.next(); !u.done; u = i.next()) {
  9644. var v = u.value;
  9645. if (!(r && r.has(v) || (o = (0, m[v])(f, d, o, a, s, c), d.isConnected))) return !0;
  9646. }
  9647. } catch (y) {
  9648. p = { error: y };
  9649. } finally {
  9650. try {
  9651. u && !u.done && (l = i.return) && l.call(i);
  9652. } finally {
  9653. if (p) throw p.error;
  9654. }
  9655. }
  9656. return o;
  9657. };
  9658. }, 92138: function(_, t, e) {
  9659. Object.defineProperty(t, "__esModule", { value: !0 }), t.clipboard = void 0;
  9660. var n = e(86893), m = e(40332), h = e(17332);
  9661. e(31473);
  9662. var f = function() {
  9663. function d() {
  9664. this.buttons = [{ name: "cut", group: "clipboard" }, { name: "copy", group: "clipboard" }, { name: "paste", group: "clipboard" }, { name: "selectall", group: "clipboard" }];
  9665. }
  9666. return d.prototype.init = function(a) {
  9667. var s;
  9668. (s = this.buttons) === null || s === void 0 || s.forEach(function(c) {
  9669. return a.registerButton(c);
  9670. }), a.e.off("copy.".concat(n.CLIPBOARD_ID, " cut.").concat(n.CLIPBOARD_ID)).on("copy.".concat(n.CLIPBOARD_ID, " cut.").concat(n.CLIPBOARD_ID), function(c) {
  9671. var p, l = a.s.html, o = (0, m.getDataTransfer)(c) || (0, m.getDataTransfer)(a.ew) || (0, m.getDataTransfer)(c.originalEvent);
  9672. o && (o.setData(n.TEXT_PLAIN, (0, m.stripTags)(l)), o.setData(n.TEXT_HTML, l)), a.buffer.set(n.CLIPBOARD_ID, l), a.e.fire("pasteStack", { html: l, action: a.o.defaultActionOnPaste || n.INSERT_AS_HTML }), c.type === "cut" && (a.s.remove(), a.s.focus()), c.preventDefault(), (p = a == null ? void 0 : a.events) === null || p === void 0 || p.fire("afterCopy", l);
  9673. });
  9674. }, d.prototype.destruct = function(a) {
  9675. var s, c;
  9676. (s = a == null ? void 0 : a.buffer) === null || s === void 0 || s.set(n.CLIPBOARD_ID, ""), (c = a == null ? void 0 : a.events) === null || c === void 0 || c.off("." + n.CLIPBOARD_ID);
  9677. }, d;
  9678. }();
  9679. t.clipboard = f, h.pluginSystem.add("clipboard", f);
  9680. }, 31473: function(_, t, e) {
  9681. Object.defineProperty(t, "__esModule", { value: !0 });
  9682. var n = e(93166), m = e(77904);
  9683. n.Config.prototype.controls.cut = { command: "cut", isDisabled: function(h) {
  9684. return h.s.isCollapsed();
  9685. }, tooltip: "Cut selection" }, n.Config.prototype.controls.copy = { command: "copy", isDisabled: function(h) {
  9686. return h.s.isCollapsed();
  9687. }, tooltip: "Copy selection" }, n.Config.prototype.controls.selectall = { icon: "select-all", command: "selectall", tooltip: "Select all" }, m.Icon.set("copy", e(50018)).set("cut", e(99738)).set("paste", e(9185)).set("select-all", e(8619));
  9688. }, 88412: function(_, t, e) {
  9689. Object.defineProperty(t, "__esModule", { value: !0 }), t.color = void 0;
  9690. var n = e(40332), m = e(17332);
  9691. function h(f) {
  9692. f.registerButton({ name: "brush", group: "color" });
  9693. var d = function(a, s, c) {
  9694. var p = (0, n.normalizeColor)(c);
  9695. switch (a) {
  9696. case "background":
  9697. f.s.applyStyle({ backgroundColor: p || "" });
  9698. break;
  9699. case "forecolor":
  9700. f.s.applyStyle({ color: p || "" });
  9701. }
  9702. return f.synchronizeValues(), !1;
  9703. };
  9704. f.registerCommand("forecolor", d).registerCommand("background", d);
  9705. }
  9706. e(21924), t.color = h, m.pluginSystem.add("color", h);
  9707. }, 21924: function(_, t, e) {
  9708. Object.defineProperty(t, "__esModule", { value: !0 });
  9709. var n = e(93166), m = e(40332), h = e(718), f = e(77904), d = e(24263);
  9710. f.Icon.set("brush", e(73894)), n.Config.prototype.controls.brush = { update: function(a, s) {
  9711. var c = (0, m.dataBind)(a, "color"), p = function(i, u) {
  9712. u && u !== (0, m.css)(s.editor, i).toString() && (a.state.icon.fill = u);
  9713. };
  9714. if (c) {
  9715. var l = (0, m.dataBind)(a, "color");
  9716. p(l === "color" ? l : "background-color", c);
  9717. } else {
  9718. var o = s.s.current();
  9719. if (o && !a.state.disabled) {
  9720. var r = d.Dom.closest(o, d.Dom.isElement, s.editor) || s.editor;
  9721. p("color", (0, m.css)(r, "color").toString()), p("background-color", (0, m.css)(r, "background-color").toString());
  9722. }
  9723. a.state.icon.fill = "", a.state.activated = !1;
  9724. }
  9725. }, popup: function(a, s, c, p, l) {
  9726. var o = "", r = "", i = [], u = null;
  9727. return s && s !== a.editor && d.Dom.isNode(s) && (d.Dom.isElement(s) && a.s.isCollapsed() && !d.Dom.isTag(s, ["br", "hr"]) && (u = s), d.Dom.up(s, function(v) {
  9728. if (d.Dom.isHTMLElement(v)) {
  9729. var y = (0, m.css)(v, "color", !0), g = (0, m.css)(v, "background-color", !0);
  9730. if (y) return o = y.toString(), !0;
  9731. if (g) return r = g.toString(), !0;
  9732. }
  9733. }, a.editor)), i = [{ name: "Background", content: (0, h.ColorPickerWidget)(a, function(v) {
  9734. u ? u.style.backgroundColor = v : a.execCommand("background", !1, v), (0, m.dataBind)(l, "color", v), (0, m.dataBind)(l, "color-mode", "background"), p();
  9735. }, r) }, { name: "Text", content: (0, h.ColorPickerWidget)(a, function(v) {
  9736. u ? u.style.color = v : a.execCommand("forecolor", !1, v), (0, m.dataBind)(l, "color", v), (0, m.dataBind)(l, "color-mode", "color"), p();
  9737. }, o) }], a.o.colorPickerDefaultTab !== "background" && (i = i.reverse()), (0, h.TabsWidget)(a, i, u);
  9738. }, exec: function(a, s, c) {
  9739. var p = c.button, l = (0, m.dataBind)(p, "color-mode"), o = (0, m.dataBind)(p, "color");
  9740. if (!l) return !1;
  9741. if (s && s !== a.editor && d.Dom.isNode(s) && d.Dom.isElement(s)) switch (l) {
  9742. case "color":
  9743. s.style.color = o;
  9744. break;
  9745. case "background":
  9746. s.style.backgroundColor = o;
  9747. }
  9748. else a.execCommand(l === "background" ? l : "forecolor", !1, o);
  9749. }, tooltip: "Fill color or set the text color" };
  9750. }, 79308: function(_, t, e) {
  9751. Object.defineProperty(t, "__esModule", { value: !0 }), t.copyFormat = void 0;
  9752. var n = e(93166), m = e(24263), h = e(26911), f = e(17332), d = e(77904), a = "copy-format", s = ["fontWeight", "fontStyle", "fontSize", "color", "margin", "padding", "borderWidth", "borderStyle", "borderColor", "borderRadius", "backgroundColor", "textDecorationLine", "fontFamily"], c = function(l, o, r, i) {
  9753. var u = (0, h.css)(r, o);
  9754. return u === i[o] && (u = r.parentNode && r !== l.editor && r.parentNode !== l.editor ? c(l, o, r.parentNode, i) : void 0), u;
  9755. };
  9756. function p(l) {
  9757. l.registerButton({ name: "copyformat", group: "clipboard" }), (0, f.extendLang)(e(9188));
  9758. }
  9759. n.Config.prototype.controls.copyformat = { exec: function(l, o, r) {
  9760. var i = r.button;
  9761. if (o) {
  9762. if (l.buffer.exists(a)) l.buffer.delete(a), l.e.off(l.editor, "mouseup." + a);
  9763. else {
  9764. var u = {}, v = m.Dom.up(o, function(b) {
  9765. return b && !m.Dom.isText(b);
  9766. }, l.editor) || l.editor, y = l.createInside.span();
  9767. l.editor.appendChild(y), s.forEach(function(b) {
  9768. u[b] = (0, h.css)(y, b);
  9769. }), y !== l.editor && m.Dom.safeRemove(y);
  9770. var g = function(b, w, C) {
  9771. var S = {};
  9772. return w && s.forEach(function(j) {
  9773. S[j] = c(b, j, w, C), j.match(/border(Style|Color)/) && !S.borderWidth && (S[j] = void 0);
  9774. }), S;
  9775. }(l, v, u);
  9776. l.e.on(l.editor, "mouseup." + a, function() {
  9777. l.buffer.delete(a);
  9778. var b = l.s.current();
  9779. b && (m.Dom.isTag(b, "img") ? (0, h.css)(b, g) : l.s.applyStyle(g)), l.e.off(l.editor, "mouseup." + a);
  9780. }), l.buffer.set(a, !0);
  9781. }
  9782. i.update();
  9783. }
  9784. }, isActive: function(l) {
  9785. return l.buffer.exists(a);
  9786. }, tooltip: "Paint format" }, t.copyFormat = p, f.pluginSystem.add("copyformat", p), d.Icon.set("copyformat", e(83301));
  9787. }, 9188: function(_, t, e) {
  9788. Object.defineProperty(t, "__esModule", { value: !0 }), t.zh_tw = t.zh_cn = t.tr = t.ru = t.pt_br = t.pl = t.nl = t.ko = t.ja = t.it = t.id = t.hu = t.he = t.fr = t.fa = t.es = t.de = t.cs_cz = t.ar = void 0;
  9789. var n = e(80078);
  9790. t.ar = n;
  9791. var m = e(16986);
  9792. t.cs_cz = m;
  9793. var h = e(59347);
  9794. t.de = h;
  9795. var f = e(63640);
  9796. t.es = f;
  9797. var d = e(53434);
  9798. t.fa = d;
  9799. var a = e(85638);
  9800. t.fr = a;
  9801. var s = e(31743);
  9802. t.he = s;
  9803. var c = e(66219);
  9804. t.hu = c;
  9805. var p = e(50331);
  9806. t.id = p;
  9807. var l = e(25582);
  9808. t.it = l;
  9809. var o = e(82066);
  9810. t.ja = o;
  9811. var r = e(71925);
  9812. t.ko = r;
  9813. var i = e(65274);
  9814. t.nl = i;
  9815. var u = e(58548);
  9816. t.pl = u;
  9817. var v = e(82958);
  9818. t.pt_br = v;
  9819. var y = e(52315);
  9820. t.ru = y;
  9821. var g = e(87727);
  9822. t.tr = g;
  9823. var b = e(9396);
  9824. t.zh_cn = b;
  9825. var w = e(28765);
  9826. t.zh_tw = w;
  9827. }, 9412: function(_, t, e) {
  9828. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.draggableTags = ["img", "jodit-media", "jodit"];
  9829. }, 30598: function(_, t, e) {
  9830. Object.defineProperty(t, "__esModule", { value: !0 }), t.dragAndDropElement = void 0;
  9831. var n, m = e(20255), h = e(40332), f = e(57549), d = e(64968), a = e(17332), s = e(43441);
  9832. e(9412), function(p) {
  9833. p[p.IDLE = 0] = "IDLE", p[p.WAIT_DRAGGING = 1] = "WAIT_DRAGGING", p[p.DRAGGING = 2] = "DRAGGING";
  9834. }(n || (n = {}));
  9835. var c = function(p) {
  9836. function l() {
  9837. var o = p !== null && p.apply(this, arguments) || this;
  9838. return o.dragList = [], o.draggable = null, o.isCopyMode = !1, o.diffStep = 10, o.startX = 0, o.startY = 0, o.state = n.IDLE, o;
  9839. }
  9840. return m.__extends(l, p), l.prototype.afterInit = function() {
  9841. this.dragList = this.j.o.draggableTags ? (0, h.splitArray)(this.j.o.draggableTags).filter(Boolean).map(function(o) {
  9842. return o.toLowerCase();
  9843. }) : [], this.dragList.length && this.j.e.on("mousedown dragstart", this.onDragStart);
  9844. }, l.prototype.onDragStart = function(o) {
  9845. var r = this;
  9846. if (o.type === "dragstart" && this.draggable) return !1;
  9847. if (n.IDLE >= this.state) {
  9848. var i = o.target;
  9849. if (this.dragList.length && i) {
  9850. var u = function(y) {
  9851. return !!(y && r.dragList.includes(y.nodeName.toLowerCase()));
  9852. }, v = d.Dom.furthest(i, u, this.j.editor) || (u(i) ? i : null);
  9853. v && (d.Dom.isTag(v.parentElement, "a") && v.parentElement.firstChild === v && v.parentElement.lastChild === v && (v = v.parentElement), this.startX = o.clientX, this.startY = o.clientY, this.isCopyMode = (0, h.ctrlKey)(o), this.draggable = v.cloneNode(!0), (0, h.dataBind)(this.draggable, "target", v), this.state = n.WAIT_DRAGGING, this.addDragListeners());
  9854. }
  9855. }
  9856. }, l.prototype.onDrag = function(o) {
  9857. var r, i;
  9858. if (this.draggable && this.state !== n.IDLE) {
  9859. var u = o.clientY;
  9860. if (this.state !== n.WAIT_DRAGGING || Math.sqrt(Math.pow(o.clientX - this.startX, 2) + Math.pow(u - this.startY, 2)) >= this.diffStep) {
  9861. if (this.state === n.WAIT_DRAGGING && (this.j.lock("drag-and-drop-element"), this.state = n.DRAGGING), this.j.e.fire("hidePopup hideResizer"), !this.draggable.parentNode) {
  9862. var v = (0, h.dataBind)(this.draggable, "target");
  9863. (0, h.css)(this.draggable, { zIndex: 1e13, pointerEvents: "none", pointer: "drag", position: "fixed", opacity: 0.7, display: "inline-block", left: o.clientX, top: o.clientY, width: (r = v == null ? void 0 : v.offsetWidth) !== null && r !== void 0 ? r : 100, height: (i = v == null ? void 0 : v.offsetHeight) !== null && i !== void 0 ? i : 100 }), (0, a.getContainer)(this.j, l).appendChild(this.draggable);
  9864. }
  9865. (0, h.css)(this.draggable, { left: o.clientX, top: o.clientY }), this.j.s.insertCursorAtPoint(o.clientX, o.clientY);
  9866. }
  9867. }
  9868. }, l.prototype.onDragEnd = function() {
  9869. this.isInDestruct || (this.removeDragListeners(), this.j.unlock(), this.state = n.IDLE, this.draggable && (d.Dom.safeRemove(this.draggable), this.draggable = null));
  9870. }, l.prototype.onDrop = function() {
  9871. if (this.draggable && this.state >= n.DRAGGING) {
  9872. var o = (0, h.dataBind)(this.draggable, "target");
  9873. this.onDragEnd(), this.isCopyMode && (o = o.cloneNode(!0));
  9874. var r = o.parentElement;
  9875. this.j.s.insertNode(o, !0, !1), r && d.Dom.isEmpty(r) && !d.Dom.isTag(r, ["td", "th"]) && d.Dom.safeRemove(r), d.Dom.isTag(o, "img") && this.j.e && this.j.e.fire("afterInsertImage", o), this.j.e.fire("synchro");
  9876. } else this.onDragEnd();
  9877. }, l.prototype.addDragListeners = function() {
  9878. this.j.e.on(this.j.editor, "mousemove", this.onDrag).on("mouseup", this.onDrop).on([this.j.ew, this.ow], "mouseup", this.onDragEnd);
  9879. }, l.prototype.removeDragListeners = function() {
  9880. this.j.e.off(this.j.editor, "mousemove", this.onDrag).off("mouseup", this.onDrop).off([this.j.ew, this.ow], "mouseup", this.onDragEnd);
  9881. }, l.prototype.beforeDestruct = function() {
  9882. this.onDragEnd(), this.j.e.off("mousedown dragstart", this.onDragStart), this.removeDragListeners();
  9883. }, m.__decorate([s.autobind], l.prototype, "onDragStart", null), m.__decorate([(0, s.throttle)(function(o) {
  9884. return o.defaultTimeout / 10;
  9885. })], l.prototype, "onDrag", null), m.__decorate([s.autobind], l.prototype, "onDragEnd", null), m.__decorate([s.autobind], l.prototype, "onDrop", null), l;
  9886. }(f.Plugin);
  9887. t.dragAndDropElement = c, a.pluginSystem.add("dragAndDropElement", c);
  9888. }, 19268: function(_, t, e) {
  9889. Object.defineProperty(t, "__esModule", { value: !0 }), t.dragAndDrop = void 0;
  9890. var n = e(20255), m = e(86893), h = e(24263), f = e(40332), d = e(57549), a = e(43441), s = e(63463), c = e(17332), p = function(l) {
  9891. function o() {
  9892. var r = l !== null && l.apply(this, arguments) || this;
  9893. return r.isFragmentFromEditor = !1, r.isCopyMode = !1, r.startDragPoint = { x: 0, y: 0 }, r.draggable = null, r.bufferRange = null, r.getText = function(i) {
  9894. var u = (0, f.getDataTransfer)(i);
  9895. return u ? u.getData(m.TEXT_HTML) || u.getData(m.TEXT_PLAIN) : null;
  9896. }, r;
  9897. }
  9898. return n.__extends(o, l), o.prototype.afterInit = function() {
  9899. this.j.e.on([window, this.j.ed, this.j.editor], "dragstart.DragAndDrop", this.onDragStart);
  9900. }, o.prototype.onDragStart = function(r) {
  9901. var i = r.target;
  9902. if (this.onDragEnd(), this.isFragmentFromEditor = h.Dom.isOrContains(this.j.editor, i, !0), this.isCopyMode = !this.isFragmentFromEditor || (0, f.ctrlKey)(r), this.isFragmentFromEditor) {
  9903. var u = this.j.s.sel, v = u && u.rangeCount ? u.getRangeAt(0) : null;
  9904. v && (this.bufferRange = v.cloneRange());
  9905. } else this.bufferRange = null;
  9906. this.startDragPoint.x = r.clientX, this.startDragPoint.y = r.clientY, (0, s.isFileBrowserFilesItem)(i) && (i = i.querySelector("img")), h.Dom.isTag(i, "img") && (this.draggable = i.cloneNode(!0), (0, f.dataBind)(this.draggable, "target", i)), this.addDragListeners();
  9907. }, o.prototype.addDragListeners = function() {
  9908. this.j.e.on("dragover", this.onDrag).on("drop.DragAndDrop", this.onDrop).on(window, "dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop", this.onDragEnd);
  9909. }, o.prototype.removeDragListeners = function() {
  9910. this.j.e.off("dragover", this.onDrag).off("drop.DragAndDrop", this.onDrop).off(window, "dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop", this.onDragEnd);
  9911. }, o.prototype.onDrag = function(r) {
  9912. this.draggable && (this.j.e.fire("hidePopup"), this.j.s.insertCursorAtPoint(r.clientX, r.clientY), r.preventDefault(), r.stopPropagation());
  9913. }, o.prototype.onDragEnd = function() {
  9914. this.draggable && (h.Dom.safeRemove(this.draggable), this.draggable = null), this.isCopyMode = !1, this.removeDragListeners();
  9915. }, o.prototype.onDrop = function(r) {
  9916. if (!r.dataTransfer || !r.dataTransfer.files || !r.dataTransfer.files.length) {
  9917. if (!this.isFragmentFromEditor && !this.draggable) return this.j.e.fire("paste", r), r.preventDefault(), r.stopPropagation(), !1;
  9918. var i = this.j.s.sel, u = this.bufferRange || (i && i.rangeCount ? i.getRangeAt(0) : null), v = null;
  9919. if (!this.draggable && u) v = this.isCopyMode ? u.cloneContents() : u.extractContents();
  9920. else if (this.draggable) if (this.isCopyMode) {
  9921. var y = n.__read((0, f.attr)(this.draggable, "-is-file") === "1" ? ["a", "href"] : ["img", "src"], 2), g = y[0], b = y[1];
  9922. (v = this.j.createInside.element(g)).setAttribute(b, (0, f.attr)(this.draggable, "data-src") || (0, f.attr)(this.draggable, "src") || ""), g === "a" && (v.textContent = (0, f.attr)(v, b) || "");
  9923. } else v = (0, f.dataBind)(this.draggable, "target");
  9924. else this.getText(r) && (v = this.j.createInside.fromHTML(this.getText(r)));
  9925. i && i.removeAllRanges(), this.j.s.insertCursorAtPoint(r.clientX, r.clientY), v && (this.j.s.insertNode(v, !1, !1), u && v.firstChild && v.lastChild && (u.setStartBefore(v.firstChild), u.setEndAfter(v.lastChild), this.j.s.selectRange(u), this.j.e.fire("synchro")), h.Dom.isTag(v, "img") && this.j.events && this.j.e.fire("afterInsertImage", v)), r.preventDefault(), r.stopPropagation();
  9926. }
  9927. this.isFragmentFromEditor = !1, this.removeDragListeners();
  9928. }, o.prototype.beforeDestruct = function() {
  9929. this.onDragEnd(), this.j.e.off(window, ".DragAndDrop").off(".DragAndDrop").off([window, this.j.ed, this.j.editor], "dragstart.DragAndDrop", this.onDragStart);
  9930. }, n.__decorate([a.autobind], o.prototype, "onDragStart", null), n.__decorate([(0, a.throttle)(function(r) {
  9931. return r.defaultTimeout / 10;
  9932. })], o.prototype, "onDrag", null), n.__decorate([a.autobind], o.prototype, "onDragEnd", null), n.__decorate([a.autobind], o.prototype, "onDrop", null), o;
  9933. }(d.Plugin);
  9934. t.dragAndDrop = p, c.pluginSystem.add("dragAndDrop", p);
  9935. }, 95049: function(_, t, e) {
  9936. Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(69516), t);
  9937. }, 69516: function(_, t, e) {
  9938. Object.defineProperty(t, "__esModule", { value: !0 }), t.removeExtraBr = void 0;
  9939. var n = e(24263);
  9940. t.removeExtraBr = function(m, h) {
  9941. if (m.o.dtd.removeExtraBr && !n.Dom.isTag(h, "br")) {
  9942. var f = n.Dom.furthest(h, n.Dom.isBlock, m.editor);
  9943. if (f && !n.Dom.isTag(f, ["table", "pre", "blockquote", "code"])) {
  9944. var d = n.Dom.isTag(h, "br") ? h : n.Dom.findNotEmptySibling(h, !1);
  9945. if (!n.Dom.isTag(d, "br")) return;
  9946. m.s.setCursorBefore(d), n.Dom.safeRemove(d);
  9947. }
  9948. }
  9949. };
  9950. }, 73967: function(_, t, e) {
  9951. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkBlockNesting = void 0;
  9952. var n = e(24263);
  9953. t.checkBlockNesting = function(m, h) {
  9954. if (n.Dom.isFragment(h) && (h = h.firstChild), m.o.dtd.checkBlockNesting && n.Dom.isBlock(h)) {
  9955. var f = n.Dom.furthest(m.s.current(), n.Dom.isBlock, m.editor);
  9956. f && !m.o.dtd.blockLimits[f.tagName.toLowerCase()] && (m.s.setCursorAfter(f), n.Dom.isEmpty(f) && n.Dom.safeRemove(f));
  9957. }
  9958. };
  9959. }, 73690: function(_, t, e) {
  9960. Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(73967), t);
  9961. }, 20173: function(_, t, e) {
  9962. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.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 } };
  9963. }, 96899: function(_, t, e) {
  9964. Object.defineProperty(t, "__esModule", { value: !0 });
  9965. var n = e(20255), m = e(57549), h = e(17332), f = e(46163);
  9966. e(20173);
  9967. var d = e(73690), a = e(95049), s = function(c) {
  9968. function p() {
  9969. return c !== null && c.apply(this, arguments) || this;
  9970. }
  9971. return n.__extends(p, c), p.prototype.afterInit = function(l) {
  9972. }, p.prototype.beforeDestruct = function(l) {
  9973. }, p.prototype.__onBeforeInsertNode = function(l) {
  9974. var o = this;
  9975. Object.keys(d).forEach(function(r) {
  9976. d[r](o.j, l);
  9977. });
  9978. }, p.prototype.__onAfterInsertNode = function(l) {
  9979. var o = this;
  9980. Object.keys(a).forEach(function(r) {
  9981. a[r](o.j, l);
  9982. });
  9983. }, n.__decorate([(0, f.watch)(":beforeInsertNode")], p.prototype, "__onBeforeInsertNode", null), n.__decorate([(0, f.watch)(":afterInsertNode")], p.prototype, "__onAfterInsertNode", null), p;
  9984. }(m.Plugin);
  9985. h.pluginSystem.add("dtd", s);
  9986. }, 33122: function(_, t, e) {
  9987. Object.defineProperty(t, "__esModule", { value: !0 }), t.enter = void 0;
  9988. var n = e(20255), m = e(24263), h = e(85605), f = e(86893), d = e(43441), a = e(67749), s = e(23217), c = e(17332);
  9989. e(26231);
  9990. var p = function(l) {
  9991. function o() {
  9992. return l !== null && l.apply(this, arguments) || this;
  9993. }
  9994. return n.__extends(o, l), o.prototype.afterInit = function(r) {
  9995. var i = this, u = r.o.enter.toLowerCase(), v = u === f.BR.toLowerCase();
  9996. r.o.enterBlock || (r.o.enterBlock = v ? f.PARAGRAPH : u), r.registerCommand("enter", function(y, g, b) {
  9997. return b === void 0 && (b = {}), i.onEnter(b);
  9998. });
  9999. }, o.prototype.onEnterKeyDown = function(r) {
  10000. if (r.key === f.KEY_ENTER) {
  10001. var i = this.j, u = i.e.fire("beforeEnter", r);
  10002. return u !== void 0 ? u : (i.s.isCollapsed() || i.execCommand("Delete"), i.s.focus(), this.onEnter(r), i.e.fire("afterEnter", r), i.synchronizeValues(), !1);
  10003. }
  10004. }, o.prototype.onEnter = function(r) {
  10005. var i = this.jodit, u = i.createInside.fake();
  10006. try {
  10007. m.Dom.safeInsertNode(i.s.range, u), (0, s.moveCursorOutFromSpecialTags)(i, u, ["a"]);
  10008. var v = (0, s.getBlockWrapper)(u, i), y = m.Dom.isTag(v, "li");
  10009. if ((!y || r != null && r.shiftKey) && (0, s.checkBR)(u, i, r == null ? void 0 : r.shiftKey)) return !1;
  10010. if (v || (0, s.hasPreviousBlock)(u, i) || (v = (0, s.wrapText)(u, i)), !v) return (0, s.insertParagraph)(u, i, y ? "li" : i.o.enter), !1;
  10011. if (!(0, s.checkUnsplittableBox)(u, i, v)) return !1;
  10012. if (y && this.__isEmptyListLeaf(v)) return (0, s.processEmptyLILeaf)(u, i, v), !1;
  10013. (0, s.splitFragment)(u, i, v);
  10014. } finally {
  10015. u.isConnected && i.s.setCursorBefore(u), m.Dom.safeRemove(u);
  10016. }
  10017. }, o.prototype.__isEmptyListLeaf = function(r) {
  10018. var i = this.j.e.fire("enterIsEmptyListLeaf", r);
  10019. return (0, a.isBoolean)(i) ? i : m.Dom.isEmpty(r);
  10020. }, o.prototype.beforeDestruct = function(r) {
  10021. r.e.off("keydown.enter");
  10022. }, n.__decorate([(0, d.watch)(":keydown.enter")], o.prototype, "onEnterKeyDown", null), o;
  10023. }(h.Plugin);
  10024. t.enter = p, c.pluginSystem.add("enter", p);
  10025. }, 94149: function(_, t, e) {
  10026. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkBR = void 0;
  10027. var n = e(24263), m = e(9005), h = e(86893);
  10028. function f(d) {
  10029. if (!d) return !1;
  10030. var a = n.Dom.findSibling(d, !0);
  10031. return !(!a || !n.Dom.isTag(a, "br")) && a;
  10032. }
  10033. t.checkBR = function(d, a, s) {
  10034. var c = !!n.Dom.closest(d, ["pre", "blockquote"], a.editor);
  10035. if (a.o.enter.toLowerCase() === h.BR.toLowerCase() || s && !c || !s && c) {
  10036. if (c && function(o) {
  10037. var r = f(f(o));
  10038. return !!r && (n.Dom.safeRemove(f(o)), n.Dom.safeRemove(r), !0);
  10039. }(d)) return !1;
  10040. var p = a.createInside.element("br");
  10041. if (n.Dom.before(d, p), !n.Dom.findNotEmptySibling(p, !1)) {
  10042. var l = p.cloneNode();
  10043. n.Dom.after(p, l), n.Dom.before(l, d);
  10044. }
  10045. return (0, m.scrollIntoViewIfNeeded)(p, a.editor, a.ed), !0;
  10046. }
  10047. return !1;
  10048. };
  10049. }, 58921: function(_, t, e) {
  10050. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkUnsplittableBox = void 0;
  10051. var n = e(24263);
  10052. t.checkUnsplittableBox = function(m, h, f) {
  10053. return !!n.Dom.canSplitBlock(f) || (n.Dom.before(m, h.createInside.element("br")), !1);
  10054. };
  10055. }, 70638: function(_, t, e) {
  10056. Object.defineProperty(t, "__esModule", { value: !0 }), t.getBlockWrapper = void 0;
  10057. var n = e(86893), m = e(24263);
  10058. t.getBlockWrapper = function h(f, d, a) {
  10059. a === void 0 && (a = n.IS_BLOCK);
  10060. var s = f, c = d.editor;
  10061. do {
  10062. if (!s || s === c) break;
  10063. if (a.test(s.nodeName)) return m.Dom.isTag(s, "li") ? s : h(s.parentNode, d, /^li$/i) || s;
  10064. s = s.parentNode;
  10065. } while (s && s !== c);
  10066. return null;
  10067. };
  10068. }, 50781: function(_, t, e) {
  10069. Object.defineProperty(t, "__esModule", { value: !0 }), t.hasPreviousBlock = void 0;
  10070. var n = e(24263);
  10071. t.hasPreviousBlock = function(m, h) {
  10072. return !!n.Dom.prev(m, function(f) {
  10073. return n.Dom.isBlock(f) || n.Dom.isImage(f);
  10074. }, h.editor);
  10075. };
  10076. }, 23217: function(_, t, e) {
  10077. Object.defineProperty(t, "__esModule", { value: !0 });
  10078. var n = e(20255);
  10079. n.__exportStar(e(94149), t), n.__exportStar(e(58921), t), n.__exportStar(e(92291), t), n.__exportStar(e(70638), t), n.__exportStar(e(50781), t), n.__exportStar(e(90443), t), n.__exportStar(e(52521), t), n.__exportStar(e(81512), t), n.__exportStar(e(29575), t);
  10080. }, 90443: function(_, t, e) {
  10081. Object.defineProperty(t, "__esModule", { value: !0 }), t.insertParagraph = void 0;
  10082. var n = e(24263), m = e(9005);
  10083. t.insertParagraph = function(h, f, d, a) {
  10084. var s = d.toLowerCase() === "br", c = f.createInside, p = c.element(d), l = c.element("br");
  10085. return s || p.appendChild(l), a && a.cssText && p.setAttribute("style", a.cssText), n.Dom.after(h, p), n.Dom.before(s ? p : l, h), (0, m.scrollIntoViewIfNeeded)(p, f.editor, f.ed), p;
  10086. };
  10087. }, 29575: function(_, t, e) {
  10088. Object.defineProperty(t, "__esModule", { value: !0 }), t.moveCursorOutFromSpecialTags = void 0;
  10089. var n = e(24263);
  10090. t.moveCursorOutFromSpecialTags = function(m, h, f) {
  10091. var d = m.s, a = n.Dom.closest(h, f, m.editor);
  10092. a && (d.cursorOnTheRight(a, h) ? n.Dom.after(a, h) : d.cursorOnTheLeft(a, h) && n.Dom.before(a, h));
  10093. };
  10094. }, 92291: function(_, t, e) {
  10095. Object.defineProperty(t, "__esModule", { value: !0 }), t.processEmptyLILeaf = void 0;
  10096. var n = e(24263), m = e(54188), h = e(90443);
  10097. t.processEmptyLILeaf = function(f, d, a) {
  10098. var s = n.Dom.closest(a, ["ol", "ul"], d.editor);
  10099. if (s) {
  10100. var c = s.parentElement, p = n.Dom.isTag(c, "li"), l = p ? c : s, o = d.s.createRange();
  10101. o.setStartAfter(a), o.setEndAfter(s);
  10102. var r = o.extractContents();
  10103. n.Dom.after(l, f), n.Dom.safeRemove(a), (0, m.$$)("li", s).length || n.Dom.safeRemove(s);
  10104. var i = (0, h.insertParagraph)(f, d, p ? "li" : d.o.enter);
  10105. r.querySelector("li") && (p ? i.appendChild(r) : n.Dom.after(i, r));
  10106. }
  10107. };
  10108. }, 52521: function(_, t, e) {
  10109. Object.defineProperty(t, "__esModule", { value: !0 }), t.splitFragment = void 0;
  10110. var n = e(9005), m = e(24263), h = e(90443);
  10111. t.splitFragment = function(f, d, a) {
  10112. var s = d.s, c = d.o.enter.toLowerCase(), p = m.Dom.isTag(a, "li"), l = a.tagName.toLowerCase() === c || p, o = s.cursorOnTheRight(a, f), r = s.cursorOnTheLeft(a, f);
  10113. if (!l && (o || r)) return o ? m.Dom.after(a, f) : m.Dom.before(a, f), (0, h.insertParagraph)(f, d, c), void (r && !o && m.Dom.prepend(a, f));
  10114. var i = s.splitSelection(a, f);
  10115. (0, n.scrollIntoViewIfNeeded)(i, d.editor, d.ed);
  10116. };
  10117. }, 81512: function(_, t, e) {
  10118. Object.defineProperty(t, "__esModule", { value: !0 }), t.wrapText = void 0;
  10119. var n = e(24263);
  10120. t.wrapText = function(m, h) {
  10121. var f = m;
  10122. n.Dom.up(f, function(s) {
  10123. s && s.hasChildNodes() && s !== h.editor && (f = s);
  10124. }, h.editor);
  10125. var d = n.Dom.wrapInline(f, h.o.enter, h);
  10126. if (n.Dom.isEmpty(d)) {
  10127. var a = h.createInside.element("br");
  10128. d.appendChild(a), n.Dom.before(a, m);
  10129. }
  10130. return d;
  10131. };
  10132. }, 26231: function() {
  10133. }, 10135: function(_, t, e) {
  10134. Object.defineProperty(t, "__esModule", { value: !0 }), t.file = void 0;
  10135. var n = e(93166), m = e(24263), h = e(718), f = e(17332);
  10136. function d(a) {
  10137. a.registerButton({ name: "file", group: "media" });
  10138. }
  10139. n.Config.prototype.controls.file = { popup: function(a, s, c, p) {
  10140. var l = function(r, i) {
  10141. i === void 0 && (i = ""), a.s.insertNode(a.createInside.fromHTML('<a href="'.concat(r, '" title="').concat(i, '">').concat(i || r, "</a>")));
  10142. }, o = null;
  10143. return s && (m.Dom.isTag(s, "a") || m.Dom.closest(s, "a", a.editor)) && (o = m.Dom.isTag(s, "a") ? s : m.Dom.closest(s, "a", a.editor)), (0, h.FileSelectorWidget)(a, { filebrowser: function(r) {
  10144. r.files && r.files.forEach(function(i) {
  10145. return l(r.baseurl + i);
  10146. }), p();
  10147. }, upload: !0, url: function(r, i) {
  10148. o ? (o.setAttribute("href", r), o.setAttribute("title", i)) : l(r, i), p();
  10149. } }, o, p, !1);
  10150. }, tags: ["a"], tooltip: "Insert file" }, t.file = d, f.pluginSystem.add("file", d);
  10151. }, 66994: function(_, t, e) {
  10152. Object.defineProperty(t, "__esModule", { value: !0 }), t.focus = void 0;
  10153. var n = e(93166), m = e(64968), h = e(17332);
  10154. function f(d) {
  10155. d.o.saveSelectionOnBlur && d.e.on("blur", function() {
  10156. d.isEditorMode() && d.s.save(!0);
  10157. }).on("focus", function() {
  10158. d.s.restore();
  10159. });
  10160. var a = function() {
  10161. if (d.s.focus(), d.o.cursorAfterAutofocus === "end") {
  10162. var s = m.Dom.last(d.editor, function(c) {
  10163. return m.Dom.isText(c);
  10164. });
  10165. s && d.s.setCursorIn(s, !1);
  10166. }
  10167. };
  10168. d.e.on("afterInit", function() {
  10169. d.o.autofocus && (d.defaultTimeout ? d.async.setTimeout(a, 300) : a());
  10170. }), d.e.on("afterInit afterAddPlace", function() {
  10171. d.e.off(d.editor, "mousedown.autofocus").on(d.editor, "mousedown.autofocus", function(s) {
  10172. d.isEditorMode() && s.target && m.Dom.isBlock(s.target) && !s.target.childNodes.length && (d.editor === s.target ? d.s.focus() : d.s.setCursorIn(s.target));
  10173. });
  10174. });
  10175. }
  10176. n.Config.prototype.autofocus = !1, n.Config.prototype.cursorAfterAutofocus = "end", n.Config.prototype.saveSelectionOnBlur = !0, t.focus = f, h.pluginSystem.add("focus", f);
  10177. }, 8082: function(_, t, e) {
  10178. Object.defineProperty(t, "__esModule", { value: !0 });
  10179. var n = e(20255), m = e(93166), h = e(24263), f = e(76502), d = e(77904);
  10180. m.Config.prototype.defaultFontSizePoints = "px", d.Icon.set("font", e(84142)).set("fontsize", e(57292)), m.Config.prototype.controls.fontsize = { command: "fontsize", data: { cssRule: "font-size" }, list: ["8", "9", "10", "11", "12", "14", "16", "18", "24", "30", "36", "48", "60", "72", "96"], exec: function(a, s, c) {
  10181. var p = c.control;
  10182. return (0, f.memorizeExec)(a, s, { control: p }, function(l) {
  10183. var o;
  10184. return ((o = p.command) === null || o === void 0 ? void 0 : o.toLowerCase()) === "fontsize" ? "".concat(l).concat(a.o.defaultFontSizePoints) : l;
  10185. });
  10186. }, childTemplate: function(a, s, c) {
  10187. return "".concat(c).concat(a.o.defaultFontSizePoints);
  10188. }, tooltip: "Font size", isChildActive: function(a, s) {
  10189. var c, p, l = a.s.current(), o = ((c = s.data) === null || c === void 0 ? void 0 : c.cssRule) || "font-size", r = ((p = s.data) === null || p === void 0 ? void 0 : p.normalize) || function(v) {
  10190. return /pt$/i.test(v) && a.o.defaultFontSizePoints === "pt" ? v.replace(/pt$/i, "") : v;
  10191. };
  10192. if (l) {
  10193. var i = h.Dom.closest(l, h.Dom.isElement, a.editor) || a.editor, u = (0, f.css)(i, o);
  10194. return !!(u && s.args && r(s.args[0].toString()) === r(u.toString()));
  10195. }
  10196. return !1;
  10197. } }, m.Config.prototype.controls.font = n.__assign(n.__assign({}, m.Config.prototype.controls.fontsize), { command: "fontname", list: { "": "Default", "helvetica,sans-serif": "Helvetica", "arial,helvetica,sans-serif": "Arial", "georgia,palatino,serif": "Georgia", "impact,charcoal,sans-serif": "Impact", "tahoma,geneva,sans-serif": "Tahoma", "times new roman,times,serif": "Times New Roman", "verdana,geneva,sans-serif": "Verdana" }, childTemplate: function(a, s, c) {
  10198. var p = !1;
  10199. try {
  10200. p = s.indexOf("dings") === -1 && document.fonts.check("16px ".concat(s), c);
  10201. } catch (l) {
  10202. }
  10203. return '<span data-style="'.concat(s, '" style="').concat(p ? "font-family: ".concat(s, "!important;") : "", '">').concat(c, "</span>");
  10204. }, data: { cssRule: "font-family", normalize: function(a) {
  10205. return a.toLowerCase().replace(/['"]+/g, "").replace(/[^a-z0-9]+/g, ",");
  10206. } }, tooltip: "Font family" });
  10207. }, 54798: function(_, t, e) {
  10208. Object.defineProperty(t, "__esModule", { value: !0 }), t.font = void 0;
  10209. var n = e(40332), m = e(17332);
  10210. function h(f) {
  10211. f.registerButton({ name: "font", group: "font" }).registerButton({ name: "fontsize", group: "font" });
  10212. var d = function(a, s, c) {
  10213. switch (a) {
  10214. case "fontsize":
  10215. f.s.applyStyle({ fontSize: (0, n.normalizeSize)(c) });
  10216. break;
  10217. case "fontname":
  10218. f.s.applyStyle({ fontFamily: c });
  10219. }
  10220. return f.synchronizeValues(), !1;
  10221. };
  10222. f.registerCommand("fontsize", d).registerCommand("fontname", d);
  10223. }
  10224. e(8082), t.font = h, m.pluginSystem.add("font", h);
  10225. }, 12908: function(_, t, e) {
  10226. Object.defineProperty(t, "__esModule", { value: !0 }), t.formatBlock = void 0;
  10227. var n = e(93166), m = e(87837), h = e(40332), f = e(17332);
  10228. function d(a) {
  10229. a.registerButton({ name: "paragraph", group: "font" }), a.registerCommand("formatblock", function(s, c, p) {
  10230. return a.s.applyStyle(void 0, { element: p }), a.synchronizeValues(), !1;
  10231. });
  10232. }
  10233. e(77904).Icon.set("paragraph", e(18019)), n.Config.prototype.controls.paragraph = { command: "formatBlock", update: function(a, s) {
  10234. var c = a.control, p = s.s.current();
  10235. if (p && s.o.textIcons) {
  10236. var l = (m.Dom.closest(p, m.Dom.isBlock, s.editor) || s.editor).nodeName.toLowerCase(), o = c.list;
  10237. a && c.data && c.data.currentValue !== l && o && o[l] && (s.o.textIcons ? a.state.text = l : a.state.icon.name = l, c.data.currentValue = l);
  10238. }
  10239. return !1;
  10240. }, exec: h.memorizeExec, data: { currentValue: "left" }, list: { p: "Normal", h1: "Heading 1", h2: "Heading 2", h3: "Heading 3", h4: "Heading 4", blockquote: "Quote", pre: "Code" }, isChildActive: function(a, s) {
  10241. var c = a.s.current();
  10242. if (c) {
  10243. var p = m.Dom.closest(c, m.Dom.isBlock, a.editor);
  10244. return !!(p && p !== a.editor && s.args !== void 0 && p.nodeName.toLowerCase() === s.args[0]);
  10245. }
  10246. return !1;
  10247. }, isActive: function(a, s) {
  10248. var c = a.s.current();
  10249. if (c) {
  10250. var p = m.Dom.closest(c, m.Dom.isBlock, a.editor);
  10251. return !!(p && p !== a.editor && s.list !== void 0 && !m.Dom.isTag(p, "p") && s.list[p.nodeName.toLowerCase()] !== void 0);
  10252. }
  10253. return !1;
  10254. }, childTemplate: function(a, s, c) {
  10255. return "<".concat(s, ' style="margin:0;padding:0"><span>').concat(a.i18n(c), "</span></").concat(s, ">");
  10256. }, tooltip: "Insert format block" }, t.formatBlock = d, f.pluginSystem.add("formatBlock", d);
  10257. }, 15045: function(_, t, e) {
  10258. Object.defineProperty(t, "__esModule", { value: !0 }), e(14320);
  10259. var n = e(93166), m = e(86893), h = e(77904);
  10260. n.Config.prototype.fullsize = !1, n.Config.prototype.globalFullSize = !0, h.Icon.set("fullsize", e(45146)).set("shrink", e(53576)), n.Config.prototype.controls.fullsize = { exec: function(f) {
  10261. f.toggleFullSize();
  10262. }, update: function(f, d) {
  10263. var a = d.isFullSize ? "shrink" : "fullsize";
  10264. f.state.activated = d.isFullSize, d.o.textIcons ? f.state.text = a : f.state.icon.name = a;
  10265. }, tooltip: "Open in fullsize", mode: m.MODE_SOURCE + m.MODE_WYSIWYG };
  10266. }, 65123: function(_, t, e) {
  10267. Object.defineProperty(t, "__esModule", { value: !0 }), t.fullsize = void 0, e(14320);
  10268. var n = e(26911), m = e(77892), h = e(17332);
  10269. e(15045);
  10270. var f = /* @__PURE__ */ new Set();
  10271. function d(a) {
  10272. a.registerButton({ name: "fullsize" });
  10273. var s = !1, c = 0, p = 0, l = !1, o = function() {
  10274. var i = a.container;
  10275. a.events && (s ? (c = (0, n.css)(i, "height", !0), p = (0, n.css)(i, "width", !0), (0, n.css)(i, { height: a.ow.innerHeight, width: a.ow.innerWidth }), l = !0) : l && (0, n.css)(i, { height: c || "auto", width: p || "auto" }));
  10276. }, r = function(i) {
  10277. var u = a.container, v = a.events;
  10278. if (u) {
  10279. if (i === void 0 && (i = !u.classList.contains("jodit_fullsize")), a.setMod("fullsize", i), a.o.fullsize = i, s = i, u.classList.toggle("jodit_fullsize", i), a.toolbar && ((0, m.isJoditObject)(a) && a.toolbarContainer.appendChild(a.toolbar.container), (0, n.css)(a.toolbar.container, "width", "auto")), i ? f.add(u) : f.delete(u), a.o.globalFullSize && (f.size === 1 && i || f.size === 0 && !i)) {
  10280. for (var y = u.parentNode; y && y.nodeType !== Node.DOCUMENT_NODE && y.nodeType !== Node.DOCUMENT_FRAGMENT_NODE; ) y.classList.toggle("jodit_fullsize-box_true", i), y = y.parentNode;
  10281. o();
  10282. }
  10283. v.fire("afterResize");
  10284. }
  10285. };
  10286. a.o.globalFullSize && a.e.on(a.ow, "resize", o), a.e.on("afterInit afterOpen", function() {
  10287. var i;
  10288. a.toggleFullSize((i = a == null ? void 0 : a.options) === null || i === void 0 ? void 0 : i.fullsize);
  10289. }).on("toggleFullSize", r).on("beforeDestruct", function() {
  10290. s && r(!1);
  10291. }).on("beforeDestruct", function() {
  10292. a.events && a.e.off(a.ow, "resize", o);
  10293. });
  10294. }
  10295. t.fullsize = d, h.pluginSystem.add("fullsize", d);
  10296. }, 16829: function(_, t, e) {
  10297. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.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"] };
  10298. }, 83228: function(_, t, e) {
  10299. Object.defineProperty(t, "__esModule", { value: !0 }), t.hotkeys = void 0;
  10300. var n = e(20255), m = e(57549), h = e(40332), f = e(86893), d = e(17332);
  10301. e(16829);
  10302. var a = function(s) {
  10303. function c() {
  10304. var p = s !== null && s.apply(this, arguments) || this;
  10305. return p.onKeyPress = function(l) {
  10306. var o = p.specialKeys[l.which], r = (l.key || String.fromCharCode(l.which)).toLowerCase(), i = [o || r];
  10307. return ["alt", "ctrl", "shift", "meta"].forEach(function(u) {
  10308. l[u + "Key"] && o !== u && i.push(u);
  10309. }), (0, h.normalizeKeyAliases)(i.join("+"));
  10310. }, p.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: "'" }, p;
  10311. }
  10312. return n.__extends(c, s), c.prototype.afterInit = function(p) {
  10313. var l = this;
  10314. (0, h.keys)(p.o.commandToHotkeys, !1).forEach(function(r) {
  10315. var i = p.o.commandToHotkeys[r];
  10316. i && ((0, h.isArray)(i) || (0, h.isString)(i)) && p.registerHotkeyToCommand(i, r);
  10317. });
  10318. var o = !1;
  10319. p.e.off(".hotkeys").on([p.ow, p.ew], "keydown.hotkeys", function(r) {
  10320. if (r.key === f.KEY_ESC) return l.j.e.fire("escape", r);
  10321. }).on("keydown.hotkeys", function(r) {
  10322. var i = l.onKeyPress(r), u = { shouldStop: !0 };
  10323. if (l.j.e.fire(i + ".hotkey", r.type, u) === !1) {
  10324. if (u.shouldStop) return o = !0, p.e.stopPropagation("keydown"), !1;
  10325. r.preventDefault();
  10326. }
  10327. }, { top: !0 }).on("keyup.hotkeys", function() {
  10328. if (o) return o = !1, p.e.stopPropagation("keyup"), !1;
  10329. }, { top: !0 });
  10330. }, c.prototype.beforeDestruct = function(p) {
  10331. p.events && p.e.off(".hotkeys");
  10332. }, c;
  10333. }(m.Plugin);
  10334. t.hotkeys = a, d.pluginSystem.add("hotkeys", a);
  10335. }, 43889: function(_, t, e) {
  10336. Object.defineProperty(t, "__esModule", { value: !0 }), t.hr = void 0;
  10337. var n = e(93166), m = e(64968), h = e(17332);
  10338. function f(d) {
  10339. d.registerButton({ name: "hr", group: "insert" }), d.registerCommand("insertHorizontalRule", function() {
  10340. var a = d.createInside.element("hr");
  10341. d.s.insertNode(a, !1, !1);
  10342. var s = m.Dom.closest(a.parentElement, m.Dom.isBlock, d.editor);
  10343. s && m.Dom.isEmpty(s) && s !== d.editor && (m.Dom.after(s, a), m.Dom.safeRemove(s));
  10344. var c = m.Dom.next(a, m.Dom.isBlock, d.editor, !1);
  10345. return c || (c = d.createInside.element(d.o.enter), m.Dom.after(a, c)), d.s.setCursorIn(c), !1;
  10346. });
  10347. }
  10348. e(77904).Icon.set("hr", e(14655)), n.Config.prototype.controls.hr = { command: "insertHorizontalRule", tags: ["hr"], tooltip: "Insert Horizontal Line" }, t.hr = f, h.pluginSystem.add("hr", f);
  10349. }, 2509: function(_, t, e) {
  10350. Object.defineProperty(t, "__esModule", { value: !0 });
  10351. var n = e(93166);
  10352. n.Config.prototype.iframeBaseUrl = "", n.Config.prototype.iframeTitle = "Jodit Editor", n.Config.prototype.iframeDoctype = "<!DOCTYPE html>", n.Config.prototype.iframeDefaultSrc = "about:blank", n.Config.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}', n.Config.prototype.iframeCSSLinks = [];
  10353. }, 93300: function(_, t, e) {
  10354. Object.defineProperty(t, "__esModule", { value: !0 }), t.iframe = void 0;
  10355. var n = e(40332), m = e(40332), h = e(86893), f = e(17332);
  10356. function d(a) {
  10357. var s = a.options;
  10358. a.e.on("afterSetMode", function() {
  10359. a.isEditorMode() && a.s.focus();
  10360. }).on("generateDocumentStructure.iframe", function(c, p) {
  10361. var l = c || p.iframe.contentWindow.document;
  10362. if (l.open(), l.write(s.iframeDoctype + '<html dir="'.concat(s.direction, '" class="jodit" lang="').concat((0, n.defaultLanguage)(s.language), '">') + "<head>" + "<title>".concat(s.iframeTitle, "</title>") + (s.iframeBaseUrl ? '<base href="'.concat(s.iframeBaseUrl, '"/>') : "") + '</head><body class="jodit-wysiwyg"></body></html>'), l.close(), s.iframeCSSLinks && s.iframeCSSLinks.forEach(function(r) {
  10363. var i = l.createElement("link");
  10364. i.setAttribute("rel", "stylesheet"), i.setAttribute("href", r), l.head && l.head.appendChild(i);
  10365. }), s.iframeStyle) {
  10366. var o = l.createElement("style");
  10367. o.innerHTML = s.iframeStyle, l.head && l.head.appendChild(o);
  10368. }
  10369. }).on("createEditor", function() {
  10370. if (s.iframe) {
  10371. var c = a.c.element("iframe");
  10372. c.style.display = "block", c.src = "about:blank", c.className = "jodit-wysiwyg_iframe", c.setAttribute("allowtransparency", "true"), c.setAttribute("tabindex", s.tabIndex.toString()), c.setAttribute("frameborder", "0"), a.workplace.appendChild(c), a.iframe = c;
  10373. var p = a.e.fire("generateDocumentStructure.iframe", null, a);
  10374. return (0, n.callPromise)(p, function() {
  10375. if (!a.iframe) return !1;
  10376. var l = a.iframe.contentWindow.document;
  10377. a.editorWindow = a.iframe.contentWindow;
  10378. var o = function() {
  10379. (0, n.attr)(l.body, "contenteditable", a.getMode() !== h.MODE_SOURCE && !a.getReadOnly() || null);
  10380. }, r = function(y) {
  10381. var g = /<body.*<\/body>/im, b = "{%%BODY%%}", w = g.exec(y);
  10382. return w && (y = y.replace(g, b).replace(/<span([^>]*?)>(.*?)<\/span>/gim, "").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim, "").replace(b, w[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")), y;
  10383. };
  10384. if (s.editHTMLDocumentMode) {
  10385. var i = a.element.tagName;
  10386. if (i !== "TEXTAREA" && i !== "INPUT") throw (0, m.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");
  10387. a.e.on("beforeGetNativeEditorValue", function() {
  10388. return r(a.o.iframeDoctype + l.documentElement.outerHTML);
  10389. }).on("beforeSetNativeEditorValue", function(y) {
  10390. var g = y.value;
  10391. return !a.isLocked && (/<(html|body)/i.test(g) ? r(l.documentElement.outerHTML) !== r(g) && (l.open(), l.write(a.o.iframeDoctype + r(g)), l.close(), a.editor = l.body, a.e.fire("safeHTML", a.editor), o(), a.e.fire("prepareWYSIWYGEditor"), a.e.stopPropagation("beforeSetNativeEditorValue")) : l.body.innerHTML = g, !0);
  10392. }, { top: !0 });
  10393. }
  10394. if (a.editor = l.body, a.e.on("afterSetMode afterInit afterAddPlace", o), s.height === "auto") {
  10395. l.documentElement && (l.documentElement.style.overflowY = "hidden");
  10396. var u = a.async.throttle(function() {
  10397. if (a.editor && a.iframe && s.height === "auto") {
  10398. var y = a.ew.getComputedStyle(a.editor), g = parseInt(y.marginTop || "0", 10) + parseInt(y.marginBottom || "0", 10);
  10399. (0, n.css)(a.iframe, "height", a.editor.offsetHeight + g);
  10400. }
  10401. }, a.defaultTimeout / 2);
  10402. if (a.e.on("change afterInit afterSetMode resize", u).on([a.iframe, a.ew, l.documentElement], "load", u).on(l, "readystatechange DOMContentLoaded", u), typeof ResizeObserver == "function") {
  10403. var v = new ResizeObserver(u);
  10404. v.observe(l.body), a.e.on("beforeDestruct", function() {
  10405. v.unobserve(l.body);
  10406. });
  10407. }
  10408. }
  10409. return l.documentElement && a.e.on(l.documentElement, "mousedown touchend", function() {
  10410. a.s.isFocused() || (a.s.focus(), a.editor === l.body && a.s.setCursorIn(l.body));
  10411. }).on(a.ew, "mousedown touchstart keydown keyup touchend click mouseup mousemove scroll", function(y) {
  10412. var g;
  10413. (g = a.events) === null || g === void 0 || g.fire(a.ow, y);
  10414. }), !1;
  10415. });
  10416. }
  10417. });
  10418. }
  10419. e(2509), t.iframe = d, f.pluginSystem.add("iframe", d);
  10420. }, 18226: function(_, t, e) {
  10421. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.imageProcessor = { replaceDataURIToBlobIdInView: !0 };
  10422. }, 92575: function(_, t, e) {
  10423. Object.defineProperty(t, "__esModule", { value: !0 }), t.imageProcessor = void 0;
  10424. var n = e(20255), m = e(40332), h = e(57549), f = e(43441), d = e(86893), a = e(17332);
  10425. e(18226);
  10426. var s = "__jodit_imageprocessor_binded", c = "__jodit_imageprocessor_bindedblob-id", p = function(l) {
  10427. function o() {
  10428. return l !== null && l.apply(this, arguments) || this;
  10429. }
  10430. return n.__extends(o, l), o.prototype.afterInit = function(r) {
  10431. }, o.prototype.beforeDestruct = function(r) {
  10432. var i, u, v = r.buffer.get(c);
  10433. if (v) {
  10434. var y = Object.keys(v);
  10435. try {
  10436. for (var g = n.__values(y), b = g.next(); !b.done; b = g.next()) URL.revokeObjectURL(b.value);
  10437. } catch (w) {
  10438. i = { error: w };
  10439. } finally {
  10440. try {
  10441. b && !b.done && (u = g.return) && u.call(g);
  10442. } finally {
  10443. if (i) throw i.error;
  10444. }
  10445. }
  10446. r.buffer.delete(c);
  10447. }
  10448. }, o.prototype.onAfterGetValueFromEditor = function(r, i) {
  10449. if (i !== d.SOURCE_CONSUMER) return this.onBeforeSetElementValue(r);
  10450. }, o.prototype.onBeforeSetElementValue = function(r) {
  10451. var i, u, v = this.jodit;
  10452. if (v.o.imageProcessor.replaceDataURIToBlobIdInView) {
  10453. var y = v.buffer.get(c);
  10454. if (y) {
  10455. var g = Object.keys(y);
  10456. try {
  10457. for (var b = n.__values(g), w = b.next(); !w.done; w = b.next()) for (var C = w.value; r.value.includes(C); ) r.value = r.value.replace(C, y[C]);
  10458. } catch (S) {
  10459. i = { error: S };
  10460. } finally {
  10461. try {
  10462. w && !w.done && (u = b.return) && u.call(b);
  10463. } finally {
  10464. if (i) throw i.error;
  10465. }
  10466. }
  10467. }
  10468. }
  10469. }, o.prototype.afterChange = function(r) {
  10470. return n.__awaiter(this, void 0, Promise, function() {
  10471. var i;
  10472. return n.__generator(this, function(u) {
  10473. return (i = this.jodit).editor ? ((0, m.$$)("img", i.editor).forEach(function(v) {
  10474. (0, m.dataBind)(v, s) || ((0, m.dataBind)(v, s, !0), v.complete || i.e.on(v, "load", function y() {
  10475. var g;
  10476. !i.isInDestruct && ((g = i.e) === null || g === void 0 || g.fire("resize")), i.e.off(v, "load", y);
  10477. }), v.src && /^data:/.test(v.src) && function(y, g) {
  10478. if (y.o.imageProcessor.replaceDataURIToBlobIdInView && typeof ArrayBuffer != "undefined" && typeof URL != "undefined") {
  10479. var b = g.src, w = function(S) {
  10480. for (var j = atob(S.split(",")[1]), E = S.split(",")[0].split(":")[1].split(";")[0], x = new ArrayBuffer(j.length), k = new Uint8Array(x), I = 0; j.length > I; I++) k[I] = j.charCodeAt(I);
  10481. return new Blob([x], { type: E });
  10482. }(b);
  10483. g.src = URL.createObjectURL(w), y.e.fire("internalUpdate");
  10484. var C = y.buffer.get(c) || {};
  10485. C[g.src] = b, y.buffer.set(c, C);
  10486. }
  10487. }(i, v), i.e.on(v, "mousedown touchstart", function() {
  10488. i.s.select(v);
  10489. }));
  10490. }), [2]) : [2];
  10491. });
  10492. });
  10493. }, n.__decorate([(0, f.watch)(":afterGetValueFromEditor")], o.prototype, "onAfterGetValueFromEditor", null), n.__decorate([(0, f.watch)(":beforeSetElementValue")], o.prototype, "onBeforeSetElementValue", null), n.__decorate([(0, f.watch)([":change", ":afterInit", ":changePlace"]), (0, f.debounce)()], o.prototype, "afterChange", null), o;
  10494. }(h.Plugin);
  10495. t.imageProcessor = p, a.pluginSystem.add("imageProcessor", p);
  10496. }, 1601: function(_, t, e) {
  10497. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.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 };
  10498. }, 15747: function(_, t, e) {
  10499. Object.defineProperty(t, "__esModule", { value: !0 }), t.imageProperties = void 0;
  10500. var n = e(20255);
  10501. e(9947);
  10502. var m = e(87837), h = e(40332), f = e(718), d = e(96516), a = e(43441), s = e(35503), c = e(17332), p = e(49391), l = e(27506), o = e(50109);
  10503. e(1601);
  10504. var r = function(v) {
  10505. return v = (0, h.trim)(v), /^[0-9]+$/.test(v) ? v + "px" : v;
  10506. }, i = function(v) {
  10507. return /^[-+]?[0-9.]+px$/.test(v.toString()) ? parseFloat(v.toString()) : v;
  10508. }, u = function(v) {
  10509. function y() {
  10510. var g = v !== null && v.apply(this, arguments) || this;
  10511. return g.state = { image: new Image(), get ratio() {
  10512. return this.image.naturalWidth / this.image.naturalHeight || 1;
  10513. }, sizeIsLocked: !0, marginIsLocked: !0 }, g.activeTabState = { __activeTab: "Image" }, g;
  10514. }
  10515. return n.__extends(y, v), y.prototype.onChangeMarginIsLocked = function() {
  10516. var g = this;
  10517. if (this.form) {
  10518. var b = (0, h.refs)(this.form), w = b.lockMargin;
  10519. [b.marginRight, b.marginBottom, b.marginLeft].forEach(function(C) {
  10520. (0, h.attr)(C, "disabled", g.state.marginIsLocked || null);
  10521. }), w.innerHTML = m.Icon.get(this.state.marginIsLocked ? "lock" : "unlock");
  10522. }
  10523. }, y.prototype.onChangeSizeIsLocked = function() {
  10524. if (this.form) {
  10525. var g = (0, h.refs)(this.form), b = g.lockSize, w = g.imageWidth;
  10526. b.innerHTML = m.Icon.get(this.state.sizeIsLocked ? "lock" : "unlock"), b.classList.remove("jodit-properties__lock"), b.classList.remove("jodit-properties__unlock"), b.classList.add(this.state.sizeIsLocked ? "jodit-properties__lock" : "jodit-properties__unlock"), this.j.e.fire(w, "change");
  10527. }
  10528. }, y.prototype.open = function() {
  10529. return this.makeForm(), this.activeTabState.__activeTab = "Image", this.j.e.fire("hidePopup"), (0, h.markOwner)(this.j, this.dialog.container), this.state.marginIsLocked = !0, this.state.sizeIsLocked = !0, this.onChangeMarginIsLocked(), this.onChangeSizeIsLocked(), this.updateValues(), this.dialog.open().setModal(!0).setPosition(), !1;
  10530. }, y.prototype.makeForm = function() {
  10531. var g = this;
  10532. if (!this.dialog) {
  10533. this.dialog = this.j.dlg({ minWidth: Math.min(400, screen.width), minHeight: 590, buttons: ["fullsize", "dialog.close"] });
  10534. var b = this.j, w = b.o, C = b.i18n.bind(b), S = { check: (0, d.Button)(b, "ok", "Apply", "primary"), remove: (0, d.Button)(b, "bin", "Delete") };
  10535. b.e.on(this.dialog, "afterClose", function() {
  10536. g.state.image.parentNode && w.image.selectImageAfterClose && b.s.select(g.state.image);
  10537. }), S.remove.onAction(function() {
  10538. b.s.removeNode(g.state.image), g.dialog.close();
  10539. });
  10540. var j = this.dialog;
  10541. j.setHeader(C("Image properties"));
  10542. var E = (0, p.form)(b);
  10543. this.form = E, j.setContent(E);
  10544. var x = (0, h.refs)(this.form).tabsBox;
  10545. x && x.appendChild((0, f.TabsWidget)(b, [{ name: "Image", content: (0, l.mainTab)(b) }, { name: "Advanced", content: (0, o.positionTab)(b) }], this.activeTabState)), S.check.onAction(this.onApply);
  10546. var k = (0, h.refs)(this.form), I = k.editImage;
  10547. b.e.on(k.changeImage, "click", this.openImagePopup), w.image.useImageEditor && b.e.on(I, "click", this.openImageEditor);
  10548. var M = (0, h.refs)(E), T = M.lockSize, O = M.lockMargin, L = M.imageWidth, N = M.imageHeight;
  10549. T && b.e.on(T, "click", function() {
  10550. g.state.sizeIsLocked = !g.state.sizeIsLocked;
  10551. }), b.e.on(O, "click", function(q) {
  10552. g.state.marginIsLocked = !g.state.marginIsLocked, q.preventDefault();
  10553. });
  10554. var H = function(q) {
  10555. if ((0, h.isNumeric)(L.value) && (0, h.isNumeric)(N.value)) {
  10556. var F = parseFloat(L.value), U = parseFloat(N.value);
  10557. q.target === L ? N.value = Math.round(F / g.state.ratio).toString() : L.value = Math.round(U * g.state.ratio).toString();
  10558. }
  10559. };
  10560. b.e.on([L, N], "change keydown mousedown paste", function(q) {
  10561. g.state.sizeIsLocked && b.async.setTimeout(H.bind(g, q), { timeout: b.defaultTimeout, label: "image-properties-changeSize" });
  10562. }), j.setFooter([S.remove, S.check]), j.setSize(this.j.o.image.dialogWidth);
  10563. }
  10564. }, y.prototype.updateValues = function() {
  10565. var g, b, w = this, C = this.j.o, S = this.state.image, j = (0, h.refs)(this.form), E = j.marginTop, x = j.marginRight, k = j.marginBottom, I = j.marginLeft, M = j.imageSrc, T = j.id, O = j.classes, L = j.align, N = j.style, H = j.imageTitle, q = j.imageAlt, F = j.borderRadius, U = j.imageLink, Y = j.imageWidth, P = j.imageHeight, D = j.imageLinkOpenInNewTab, z = j.imageViewSrc, R = j.lockSize;
  10566. j.lockMargin.checked = w.state.marginIsLocked, R.checked = w.state.sizeIsLocked, M.value = (0, h.attr)(S, "src") || "", z && (0, h.attr)(z, "src", (0, h.attr)(S, "src") || ""), function() {
  10567. H.value = (0, h.attr)(S, "title") || "", q.value = (0, h.attr)(S, "alt") || "";
  10568. var A = m.Dom.closest(S, "a", w.j.editor);
  10569. A ? (U.value = (0, h.attr)(A, "href") || "", D.checked = (0, h.attr)(A, "target") === "_blank") : (U.value = "", D.checked = !1);
  10570. }(), g = (0, h.attr)(S, "width") || (0, h.css)(S, "width", !0) || !1, b = (0, h.attr)(S, "height") || (0, h.css)(S, "height", !0) || !1, Y.value = g !== !1 ? i(g).toString() : S.offsetWidth.toString(), P.value = b !== !1 ? i(b).toString() : S.offsetHeight.toString(), w.state.sizeIsLocked = function() {
  10571. if (!(0, h.isNumeric)(Y.value) || !(0, h.isNumeric)(P.value)) return !1;
  10572. var A = parseFloat(Y.value), B = parseFloat(P.value);
  10573. return 1 > Math.abs(A - B * w.state.ratio);
  10574. }(), function() {
  10575. if (C.image.editMargins) {
  10576. var A = !0, B = !1;
  10577. [E, x, k, I].forEach(function(X) {
  10578. var W = (0, h.attr)(X, "data-ref") || "", Q = S.style.getPropertyValue((0, h.kebabCase)(W));
  10579. if (!Q) return B = !0, void (X.value = "");
  10580. /^[0-9]+(px)?$/.test(Q) && (Q = parseInt(Q, 10)), X.value = Q.toString() || "", (B && X.value || A && W !== "marginTop" && X.value !== E.value) && (A = !1);
  10581. }), w.state.marginIsLocked = A;
  10582. }
  10583. }(), O.value = ((0, h.attr)(S, "class") || "").replace(/jodit_focused_image[\s]*/, ""), T.value = (0, h.attr)(S, "id") || "", F.value = (parseInt(S.style.borderRadius || "0", 10) || "0").toString(), S.style.cssFloat && ["left", "right"].indexOf(S.style.cssFloat.toLowerCase()) !== -1 ? L.value = (0, h.css)(S, "float") : (0, h.css)(S, "display") === "block" && S.style.marginLeft === "auto" && S.style.marginRight === "auto" && (L.value = "center"), N.value = (0, h.attr)(S, "style") || "";
  10584. }, y.prototype.onApply = function() {
  10585. var g = (0, h.refs)(this.form), b = g.imageSrc, w = g.borderRadius, C = g.imageTitle, S = g.imageAlt, j = g.imageLink, E = g.imageWidth, x = g.imageHeight, k = g.marginTop, I = g.marginRight, M = g.marginBottom, T = g.marginLeft, O = g.imageLinkOpenInNewTab, L = g.align, N = g.classes, H = g.id, q = this.j.o, F = this.state.image;
  10586. if (q.image.editStyle && (0, h.attr)(F, "style", g.style.value || null), !b.value) return m.Dom.safeRemove(F), void this.dialog.close();
  10587. (0, h.attr)(F, "src", b.value), F.style.borderRadius = w.value !== "0" && /^[0-9]+$/.test(w.value) ? w.value + "px" : "", (0, h.attr)(F, "title", C.value || null), (0, h.attr)(F, "alt", S.value || null);
  10588. var U = m.Dom.closest(F, "a", this.j.editor);
  10589. if (j.value ? (U || (U = m.Dom.wrap(F, "a", this.j.createInside)), (0, h.attr)(U, "href", j.value), (0, h.attr)(U, "target", O.checked ? "_blank" : null)) : U && U.parentNode && U.parentNode.replaceChild(F, U), E.value !== F.offsetWidth.toString() || x.value !== F.offsetHeight.toString()) {
  10590. var Y = (0, h.trim)(E.value) ? r(E.value) : null, P = (0, h.trim)(x.value) ? r(x.value) : null;
  10591. (0, h.css)(F, { width: Y, height: P }), (0, h.attr)(F, "width", (0, h.attr)(F, "width") ? Y : null), (0, h.attr)(F, "height", (0, h.attr)(F, "height") ? P : null);
  10592. }
  10593. var D = [k, I, M, T];
  10594. q.image.editMargins && (this.state.marginIsLocked ? (0, h.css)(F, "margin", r(k.value)) : D.forEach(function(z) {
  10595. var R = (0, h.attr)(z, "data-ref") || "";
  10596. (0, h.css)(F, R, r(z.value));
  10597. })), q.image.editClass && (0, h.attr)(F, "class", N.value || null), q.image.editId && (0, h.attr)(F, "id", H.value || null), q.image.editAlign && (0, h.hAlignElement)(F, L.value), this.j.synchronizeValues(), this.dialog.close();
  10598. }, y.prototype.openImageEditor = function() {
  10599. var g = this, b = (0, h.attr)(this.state.image, "src") || "", w = this.j.c.element("a"), C = function() {
  10600. w.host === location.host || g.j.confirm("You can only edit your own images. Download this image on the host?", function(S) {
  10601. S && g.j.uploader && g.j.uploader.uploadRemoteImage(w.href.toString(), function(j) {
  10602. g.j.alert("The image has been successfully uploaded to the host!", function() {
  10603. (0, h.isString)(j.newfilename) && ((0, h.attr)(g.state.image, "src", j.baseurl + j.newfilename), g.updateValues());
  10604. });
  10605. }, function(j) {
  10606. g.j.alert("There was an error loading %s", j.message);
  10607. });
  10608. });
  10609. };
  10610. w.href = b, this.j.filebrowser.dataProvider.getPathByUrl(w.href.toString()).then(function(S) {
  10611. s.openImageEditor.call(g.j.filebrowser, w.href, S.name, S.path, S.source, function() {
  10612. var j = (/* @__PURE__ */ new Date()).getTime();
  10613. (0, h.attr)(g.state.image, "src", b + (b.indexOf("?") !== -1 ? "" : "?") + "&_tmp=" + j.toString()), g.updateValues();
  10614. }, function(j) {
  10615. g.j.alert(j.message);
  10616. });
  10617. }).catch(function(S) {
  10618. g.j.alert(S.message, C);
  10619. });
  10620. }, y.prototype.openImagePopup = function(g) {
  10621. var b = this, w = new m.Popup(this.j), C = (0, h.refs)(this.form).changeImage;
  10622. w.setZIndex(this.dialog.getZIndex() + 1), w.setContent((0, f.FileSelectorWidget)(this.j, { upload: function(S) {
  10623. S.files && S.files.length && (0, h.attr)(b.state.image, "src", S.baseurl + S.files[0]), b.updateValues(), w.close();
  10624. }, filebrowser: function(S) {
  10625. S && (0, h.isArray)(S.files) && S.files.length && ((0, h.attr)(b.state.image, "src", S.files[0]), w.close(), b.updateValues());
  10626. } }, this.state.image, w.close)).open(function() {
  10627. return (0, h.position)(C);
  10628. }), g.stopPropagation();
  10629. }, y.prototype.afterInit = function(g) {
  10630. var b = this, w = this;
  10631. g.e.on("afterConstructor changePlace", function() {
  10632. g.e.off(g.editor, ".imageproperties").on(g.editor, "dblclick.imageproperties", function(C) {
  10633. var S = C.target;
  10634. if (m.Dom.isTag(S, "img")) if (g.o.image.openOnDblClick) {
  10635. if (b.j.e.fire("openOnDblClick", S) === !1) return;
  10636. w.state.image = S, g.o.readonly || (C.stopImmediatePropagation(), C.preventDefault(), w.open());
  10637. } else C.stopImmediatePropagation(), g.s.select(S);
  10638. });
  10639. }).on("openImageProperties.imageproperties", function(C) {
  10640. b.state.image = C, b.open();
  10641. });
  10642. }, y.prototype.beforeDestruct = function(g) {
  10643. this.dialog && this.dialog.destruct(), g.e.off(g.editor, ".imageproperties").off(".imageproperties");
  10644. }, n.__decorate([(0, a.watch)("state.marginIsLocked")], y.prototype, "onChangeMarginIsLocked", null), n.__decorate([(0, a.watch)("state.sizeIsLocked")], y.prototype, "onChangeSizeIsLocked", null), n.__decorate([a.autobind], y.prototype, "onApply", null), n.__decorate([a.autobind], y.prototype, "openImageEditor", null), n.__decorate([a.autobind], y.prototype, "openImagePopup", null), y;
  10645. }(m.Plugin);
  10646. t.imageProperties = u, c.pluginSystem.add("imageProperties", u);
  10647. }, 49391: function(_, t, e) {
  10648. Object.defineProperty(t, "__esModule", { value: !0 }), t.form = void 0;
  10649. var n = e(77904);
  10650. t.form = function(m) {
  10651. var h = m.o.image, f = h.showPreview, d = h.editSize, a = n.Icon.get.bind(n.Icon);
  10652. return m.c.fromHTML(`<form class="jodit-properties">
  10653. <div class="jodit-grid jodit-grid_xs-column">
  10654. <div class="jodit_col-lg-2-5 jodit_col-xs-5-5">
  10655. <div class="jodit-properties_view_box">
  10656. <div style="`.concat(f ? "" : "display:none", `" class="jodit-properties_image_view">
  10657. <img data-ref="imageViewSrc" src="" alt=""/>
  10658. </div>
  10659. <div style="`).concat(d ? "" : "display:none", `" class="jodit-form__group jodit-properties_image_sizes">
  10660. <input data-ref="imageWidth" type="text" class="jodit-input"/>
  10661. <a data-ref="lockSize" class="jodit-properties__lock">`).concat(a("lock"), `</a>
  10662. <input data-ref="imageHeight" type="text" class="imageHeight jodit-input"/>
  10663. </div>
  10664. </div>
  10665. </div>
  10666. <div data-ref="tabsBox" class="jodit_col-lg-3-5 jodit_col-xs-5-5"></div>
  10667. </div>
  10668. </form>`));
  10669. };
  10670. }, 27506: function(_, t, e) {
  10671. Object.defineProperty(t, "__esModule", { value: !0 }), t.mainTab = void 0;
  10672. var n = e(77904);
  10673. t.mainTab = function(m) {
  10674. var h = m.o, f = m.i18n.bind(m), d = n.Icon.get.bind(n.Icon), a = h.filebrowser.ajax.url || h.uploader.url, s = h.image.useImageEditor;
  10675. return m.c.fromHTML('<div style="'.concat(h.image.editSrc ? "" : "display:none", `" class="jodit-form__group">
  10676. <label>`).concat(f("Src"), `</label>
  10677. <div class="jodit-input_group">
  10678. <input data-ref="imageSrc" class="jodit-input" type="text"/>
  10679. <div
  10680. class="jodit-input_group-buttons"
  10681. style="`).concat(a ? "" : "display: none", `"
  10682. >
  10683. <a
  10684. data-ref="changeImage"
  10685. class="jodit-button"
  10686. >`).concat(d("image"), `</a>
  10687. <a
  10688. data-ref="editImage"
  10689. class="jodit-button"
  10690. style="`).concat(s ? "" : "display: none", `"
  10691. >`).concat(d("crop"), `</a>
  10692. </div>
  10693. </div>
  10694. </div>
  10695. <div style="`).concat(h.image.editTitle ? "" : "display:none", `" class="jodit-form__group">
  10696. <label>`).concat(f("Title"), `</label>
  10697. <input data-ref="imageTitle" type="text" class="jodit-input"/>
  10698. </div>
  10699. <div style="`).concat(h.image.editAlt ? "" : "display:none", `" class="jodit-form__group">
  10700. <label>`).concat(f("Alternative"), `</label>
  10701. <input data-ref="imageAlt" type="text" class="jodit-input"/>
  10702. </div>
  10703. <div style="`).concat(h.image.editLink ? "" : "display:none", `" class="jodit-form__group">
  10704. <label>`).concat(f("Link"), `</label>
  10705. <input data-ref="imageLink" type="text" class="jodit-input"/>
  10706. </div>
  10707. <div style="`).concat(h.image.editLink ? "" : "display:none", `" class="jodit-form__group">
  10708. <label class="jodit_vertical_middle">
  10709. <input data-ref="imageLinkOpenInNewTab" type="checkbox" class="jodit-checkbox"/>
  10710. <span>`).concat(f("Open link in new tab"), `</span>
  10711. </label>
  10712. </div>`));
  10713. };
  10714. }, 50109: function(_, t, e) {
  10715. Object.defineProperty(t, "__esModule", { value: !0 }), t.positionTab = void 0;
  10716. var n = e(77904);
  10717. t.positionTab = function(m) {
  10718. var h = m.o, f = m.i18n.bind(m), d = n.Icon.get.bind(n.Icon), a = [];
  10719. return h.image.availableClasses.length > 0 ? (a.push('<select data-ref="classes" class="jodit-input jodit-select">'), h.image.availableClasses.forEach(function(s) {
  10720. a.push(typeof s == "string" ? '<option value="'.concat(s, '">').concat(s, "</option>") : '<option value="'.concat(s[0], '">').concat(s[1], "</option>"));
  10721. }), a.push("</select>")) : a.push('<input data-ref="classes" type="text" class="jodit-input"/>'), m.c.fromHTML('<div style="'.concat(h.image.editMargins ? "" : "display:none", `" class="jodit-form__group">
  10722. <label>`).concat(f("Margins"), `</label>
  10723. <div class="jodit-grid jodit_vertical_middle">
  10724. <input class="jodit_col-lg-1-5 jodit-input" data-ref="marginTop" type="text" placeholder="`).concat(f("top"), `"/>
  10725. <a style="text-align: center;" data-ref="lockMargin" class="jodit-properties__lock jodit_col-lg-1-5">`).concat(d("lock"), `</a>
  10726. <input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginRight" type="text" placeholder="`).concat(f("right"), `"/>
  10727. <input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginBottom" type="text" placeholder="`).concat(f("bottom"), `"/>
  10728. <input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginLeft" type="text" placeholder="`).concat(f("left"), `"/>
  10729. </div>
  10730. </div>
  10731. <div
  10732. style="`).concat(h.image.editAlign ? "" : "display:none", `"
  10733. class="jodit-form__group"
  10734. >
  10735. <label>`).concat(f("Align"), `</label>
  10736. <select data-ref="align" class="jodit-select">
  10737. <option value="">`).concat(f("--Not Set--"), `</option>
  10738. <option value="left">`).concat(f("Left"), `</option>
  10739. <option value="center">`).concat(f("Center"), `</option>
  10740. <option value="right">`).concat(f("Right"), `</option>
  10741. </select>
  10742. </div>
  10743. <div style="`).concat(h.image.editStyle ? "" : "display:none", `" class="jodit-form__group">
  10744. <label>`).concat(f("Styles"), `</label>
  10745. <input data-ref="style" type="text" class="jodit-input"/>
  10746. </div>
  10747. <div style="`).concat(h.image.editClass ? "" : "display:none", `" class="jodit-form__group">
  10748. <label>`).concat(f("Classes"), `</label>
  10749. `).concat(a.join(""), `
  10750. </div>
  10751. <div style="`).concat(h.image.editId ? "" : "display:none", `" class="jodit-form__group">
  10752. <label>Id</label>
  10753. <input data-ref="id" type="text" class="jodit-input"/>
  10754. </div>
  10755. <div
  10756. style="`).concat(h.image.editBorderRadius ? "" : "display:none", `"
  10757. class="jodit-form__group"
  10758. >
  10759. <label>`).concat(f("Border radius"), `</label>
  10760. <input data-ref="borderRadius" type="number" class="jodit-input"/>
  10761. </div>`));
  10762. };
  10763. }, 67547: function(_, t, e) {
  10764. Object.defineProperty(t, "__esModule", { value: !0 }), t.image = void 0;
  10765. var n = e(20255), m = e(64968), h = e(40332), f = e(718), d = e(93166), a = e(17332);
  10766. function s(c) {
  10767. c.registerButton({ name: "image", group: "media" });
  10768. }
  10769. e(77904).Icon.set("image", e(53477)), d.Config.prototype.controls.image = { popup: function(c, p, l, o) {
  10770. var r = null;
  10771. return p && !m.Dom.isText(p) && m.Dom.isHTMLElement(p) && (m.Dom.isTag(p, "img") || (0, h.$$)("img", p).length) && (r = m.Dom.isTag(p, "img") ? p : (0, h.$$)("img", p)[0]), c.s.save(), (0, f.FileSelectorWidget)(c, { filebrowser: function(i) {
  10772. c.s.restore(), i.files && i.files.forEach(function(u) {
  10773. return c.s.insertImage(i.baseurl + u, null, c.o.imageDefaultWidth);
  10774. }), o();
  10775. }, upload: !0, url: function(i, u) {
  10776. return n.__awaiter(void 0, void 0, void 0, function() {
  10777. var v;
  10778. return n.__generator(this, function(y) {
  10779. switch (y.label) {
  10780. case 0:
  10781. return c.s.restore(), /^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(i) && (i = "//" + i), (v = r || c.createInside.element("img")).setAttribute("src", i), v.setAttribute("alt", u), r ? [3, 2] : [4, c.s.insertImage(v, null, c.o.imageDefaultWidth)];
  10782. case 1:
  10783. y.sent(), y.label = 2;
  10784. case 2:
  10785. return o(), [2];
  10786. }
  10787. });
  10788. });
  10789. } }, r, o);
  10790. }, tags: ["img"], tooltip: "Insert Image" }, t.image = s, a.pluginSystem.add("image", s);
  10791. }, 2916: function(_, t, e) {
  10792. Object.defineProperty(t, "__esModule", { value: !0 });
  10793. var n = e(93166), m = e(64968), h = e(77904), f = e(26011);
  10794. h.Icon.set("indent", e(90053)).set("outdent", e(72230)), n.Config.prototype.controls.indent = { tooltip: "Increase Indent" }, n.Config.prototype.controls.outdent = { isDisabled: function(d) {
  10795. var a = d.s.current();
  10796. if (a) {
  10797. var s = m.Dom.closest(a, m.Dom.isBlock, d.editor);
  10798. if (s) {
  10799. var c = (0, f.getKey)(d.o.direction, s);
  10800. return !s.style[c] || 0 >= parseInt(s.style[c], 10);
  10801. }
  10802. }
  10803. return !0;
  10804. }, tooltip: "Decrease Indent" }, n.Config.prototype.indentMargin = 10;
  10805. }, 26011: function(_, t, e) {
  10806. Object.defineProperty(t, "__esModule", { value: !0 }), t.getKey = void 0;
  10807. var n = e(24263);
  10808. t.getKey = function(m, h) {
  10809. return "".concat(n.Dom.isCell(h) ? "padding" : "margin").concat(m === "rtl" ? "Right" : "Left");
  10810. };
  10811. }, 71838: function(_, t, e) {
  10812. Object.defineProperty(t, "__esModule", { value: !0 }), t.indent = void 0;
  10813. var n = e(86893), m = e(64968), h = e(40332), f = e(17332);
  10814. e(2916);
  10815. var d = e(26011);
  10816. function a(s) {
  10817. s.registerButton({ name: "indent", group: "indent" }).registerButton({ name: "outdent", group: "indent" });
  10818. var c = function(p) {
  10819. var l = [];
  10820. return s.s.eachSelection(function(o) {
  10821. s.s.save();
  10822. var r = !!o && m.Dom.up(o, m.Dom.isBlock, s.editor), i = s.o.enter;
  10823. if (!r && o && (r = m.Dom.wrapInline(o, i !== n.BR ? i : n.PARAGRAPH, s)), !r) return s.s.restore(), !1;
  10824. var u = l.includes(r);
  10825. if (r && !u) {
  10826. var v = (0, d.getKey)(s.o.direction, r);
  10827. l.push(r);
  10828. var y = r.style[v] ? parseInt(r.style[v], 10) : 0;
  10829. r.style[v] = (y += s.o.indentMargin * (p === "outdent" ? -1 : 1)) > 0 ? y + "px" : "", (0, h.attr)(r, "style") || (0, h.attr)(r, "style", null);
  10830. }
  10831. s.s.restore();
  10832. }), s.synchronizeValues(), !1;
  10833. };
  10834. s.registerCommand("indent", { exec: c, hotkeys: ["ctrl+]", "cmd+]"] }), s.registerCommand("outdent", { exec: c, hotkeys: ["ctrl+[", "cmd+["] });
  10835. }
  10836. t.indent = a, f.pluginSystem.add("indent", a);
  10837. }, 70022: function(_, t, e) {
  10838. Object.defineProperty(t, "__esModule", { value: !0 }), e(55692), e(66031), e(91241), e(87565), e(60894), e(90302), e(92138), e(88412), e(79308), e(19268), e(30598), e(33122), e(10135), e(66994), e(54798), e(12908), e(65123), e(83228), e(43889), e(93300), e(67547), e(92575), e(15747), e(71838), e(54752), e(54452), e(46324), e(27738), e(61421), e(27582), e(76303), e(19806), e(52598), e(19483), e(15428), e(47224), e(83211), e(88297), e(72930), e(51197), e(2327), e(47608), e(90523), e(69257), e(14889), e(95323), e(37458), e(71003), e(86030), e(17002), e(1557), e(82808), e(48560), e(32246), e(45842), e(23308), e(19889), e(20728), e(96899), e(18238);
  10839. }, 35387: function(_, t, e) {
  10840. Object.defineProperty(t, "__esModule", { value: !0 });
  10841. var n = e(93166), m = e(77904);
  10842. n.Config.prototype.toolbarInline = !0, n.Config.prototype.toolbarInlineForSelection = !1, n.Config.prototype.toolbarInlineDisableFor = [], n.Config.prototype.toolbarInlineDisabledButtons = ["source"], m.Icon.set("addcolumn", e(78321)).set("addrow", e(77654)).set("merge", e(43371)).set("th", e(52242)).set("splitg", e(44563)).set("splitv", e(53183)).set("th-list", e(18548)), n.Config.prototype.popup = { a: e(27487).Z, img: e(97425).default, cells: e(59500).Z, toolbar: e(55350).Z, jodit: e(66686).Z, iframe: e(66686).Z, "jodit-media": e(66686).Z, selection: ["bold", "underline", "italic", "ul", "ol", `
  10843. `, "outdent", "indent", "fontsize", "brush", "cut", `
  10844. `, "paragraph", "link", "align", "dots"] };
  10845. }, 27487: function(_, t, e) {
  10846. var n = e(76502);
  10847. t.Z = [{ name: "eye", tooltip: "Open link", exec: function(m, h) {
  10848. var f = (0, n.attr)(h, "href");
  10849. h && f && m.ow.open(f);
  10850. } }, { name: "link", tooltip: "Edit link", icon: "pencil" }, "unlink", "brush", "file"];
  10851. }, 59500: function(_, t, e) {
  10852. var n = e(10172), m = e(26911), h = e(718), f = function(d) {
  10853. return d.args && (0, n.isString)(d.args[0]) ? d.args[0].toLowerCase() : "";
  10854. };
  10855. t.Z = [{ name: "brush", popup: function(d, a, s, c) {
  10856. if ((0, n.isJoditObject)(d)) {
  10857. var p = d.getInstance("Table", d.o).getAllSelectedCells();
  10858. if (!p.length) return !1;
  10859. var l = function(o) {
  10860. return (0, h.ColorPickerWidget)(d, function(r) {
  10861. p.forEach(function(i) {
  10862. (0, m.css)(i, o, r);
  10863. }), d.lock(), d.synchronizeValues(), c(), d.unlock();
  10864. }, (0, m.css)(p[0], o));
  10865. };
  10866. return (0, h.TabsWidget)(d, [{ name: "Background", content: l("background-color") }, { name: "Text", content: l("color") }, { name: "Border", content: l("border-color") }]);
  10867. }
  10868. }, tooltip: "Background" }, { name: "valign", list: ["Top", "Middle", "Bottom", "Normal"], childTemplate: function(d, a, s) {
  10869. return s;
  10870. }, exec: function(d, a, s) {
  10871. var c = f(s.control);
  10872. d.getInstance("Table", d.o).getAllSelectedCells().forEach(function(p) {
  10873. (0, m.css)(p, "vertical-align", c === "normal" ? "" : c);
  10874. });
  10875. }, tooltip: "Vertical align" }, { name: "splitv", list: { tablesplitv: "Split vertical", tablesplitg: "Split horizontal" }, tooltip: "Split" }, { name: "align", icon: "left" }, `
  10876. `, { name: "merge", command: "tablemerge", tooltip: "Merge" }, { name: "addcolumn", list: { tableaddcolumnbefore: "Insert column before", tableaddcolumnafter: "Insert column after" }, exec: function(d, a, s) {
  10877. var c = s.control;
  10878. if ((0, n.isJoditObject)(d)) {
  10879. var p = f(c);
  10880. d.execCommand(p, !1, a);
  10881. }
  10882. }, tooltip: "Add column" }, { name: "addrow", list: { tableaddrowbefore: "Insert row above", tableaddrowafter: "Insert row below" }, exec: function(d, a, s) {
  10883. var c = s.control;
  10884. if ((0, n.isJoditObject)(d)) {
  10885. var p = f(c);
  10886. d.execCommand(p, !1, a);
  10887. }
  10888. }, tooltip: "Add row" }, { name: "delete", icon: "bin", list: { tablebin: "Delete table", tablebinrow: "Delete row", tablebincolumn: "Delete column", tableempty: "Empty cell" }, exec: function(d, a, s) {
  10889. var c = s.control;
  10890. if ((0, n.isJoditObject)(d)) {
  10891. var p = f(c);
  10892. d.execCommand(p, !1, a), d.e.fire("hidePopup");
  10893. }
  10894. }, tooltip: "Delete" }];
  10895. }, 66686: function(_, t, e) {
  10896. var n = e(97425);
  10897. t.Z = [{ name: "bin", tooltip: "Delete", exec: function(m, h) {
  10898. h && m.s.removeNode(h);
  10899. } }, n.align];
  10900. }, 97425: function(_, t, e) {
  10901. Object.defineProperty(t, "__esModule", { value: !0 }), t.align = void 0;
  10902. var n = e(64968), m = e(24421), h = e(26911), f = e(60303);
  10903. t.align = { name: "left", childTemplate: function(d, a, s) {
  10904. return s;
  10905. }, list: ["Left", "Right", "Center", "Normal"], exec: function(d, a, s) {
  10906. var c = s.control;
  10907. if (n.Dom.isTag(a, ["img", "jodit", "jodit-media"])) {
  10908. var p = c.args && (0, m.isString)(c.args[0]) ? c.args[0].toLowerCase() : "";
  10909. if (!p) return !1;
  10910. (0, f.hAlignElement)(a, p), n.Dom.isTag(a, ["jodit", "jodit-media"]) && a.firstElementChild && (0, f.hAlignElement)(a.firstElementChild, p), d.synchronizeValues(), d.e.fire("recalcPositionPopup");
  10911. }
  10912. }, tooltip: "Horizontal align" }, t.default = [{ name: "delete", icon: "bin", tooltip: "Delete", exec: function(d, a) {
  10913. a && d.s.removeNode(a);
  10914. } }, { name: "pencil", exec: function(d, a) {
  10915. a.tagName.toLowerCase() === "img" && d.e.fire("openImageProperties", a);
  10916. }, tooltip: "Edit" }, { name: "valign", list: ["Top", "Middle", "Bottom", "Normal"], tooltip: "Vertical align", exec: function(d, a, s) {
  10917. var c = s.control;
  10918. if (n.Dom.isTag(a, "img")) {
  10919. var p = c.args && (0, m.isString)(c.args[0]) ? c.args[0].toLowerCase() : "";
  10920. if (!p) return !1;
  10921. (0, h.css)(a, "vertical-align", p === "normal" ? "" : p), d.e.fire("recalcPositionPopup");
  10922. }
  10923. } }, t.align];
  10924. }, 55350: function(_, t) {
  10925. t.Z = ["bold", "italic", "|", "ul", "ol", "eraser", "|", "fontsize", "brush", "paragraph", "---", "image", "table", `
  10926. `, "link", "|", "align", "|", "undo", "redo", "|", "copyformat", "fullsize", "---", "dots"];
  10927. }, 54752: function(_, t, e) {
  10928. Object.defineProperty(t, "__esModule", { value: !0 }), t.inlinePopup = void 0;
  10929. var n = e(20255);
  10930. e(45109);
  10931. var m = e(57549), h = e(81438), f = e(35799), d = e(40332), a = e(64968), s = e(2074), c = e(43441), p = e(17332);
  10932. e(35387);
  10933. var l = function(o) {
  10934. function r() {
  10935. var i = o !== null && o.apply(this, arguments) || this;
  10936. return i.requires = ["select"], i.type = null, i.popup = new f.Popup(i.jodit, !1), i.toolbar = (0, h.makeCollection)(i.jodit, i.popup), i.snapRange = null, i.elmsList = (0, d.keys)(i.j.o.popup, !1).filter(function(u) {
  10937. return !i.isExcludedTarget(u);
  10938. }), i;
  10939. }
  10940. return n.__extends(r, o), r.prototype.onClick = function(i) {
  10941. var u = this, v = this.elmsList, y = a.Dom.isTag(i, "img") ? i : a.Dom.closest(i, v, this.j.editor);
  10942. if (y && this.canShowPopupForType(y.nodeName.toLowerCase())) return this.showPopup(function() {
  10943. return (0, d.position)(y, u.j);
  10944. }, y.nodeName.toLowerCase(), y), !1;
  10945. }, r.prototype.showPopup = function(i, u, v) {
  10946. if (u = u.toLowerCase(), !this.canShowPopupForType(u)) return !1;
  10947. if (this.type !== u || v !== this.previousTarget) {
  10948. this.previousTarget = v;
  10949. var y = this.j.o.popup[u], g = void 0;
  10950. g = (0, d.isFunction)(y) ? y(this.j, v, this.popup.close) : y, (0, d.isArray)(g) && (this.toolbar.build(g, v), this.toolbar.buttonSize = this.j.o.toolbarButtonSize, g = this.toolbar.container), this.popup.setContent(g), this.type = u;
  10951. }
  10952. return this.popup.open(i), !0;
  10953. }, r.prototype.hidePopup = function(i) {
  10954. (0, d.isString)(i) && i !== this.type || this.popup.close();
  10955. }, r.prototype.onOutsideClick = function() {
  10956. this.popup.close();
  10957. }, r.prototype.canShowPopupForType = function(i) {
  10958. var u = this.j.o.popup[i.toLowerCase()];
  10959. return !(this.j.o.readonly || !this.j.o.toolbarInline || !u || this.isExcludedTarget(i));
  10960. }, r.prototype.isExcludedTarget = function(i) {
  10961. return (0, d.splitArray)(this.j.o.toolbarInlineDisableFor).map(function(u) {
  10962. return u.toLowerCase();
  10963. }).includes(i.toLowerCase());
  10964. }, r.prototype.afterInit = function(i) {
  10965. var u = this;
  10966. this.j.e.on("getDiffButtons.mobile", function(v) {
  10967. if (u.toolbar === v) {
  10968. var y = u.toolbar.getButtonsNames();
  10969. return (0, d.toArray)(i.registeredButtons).filter(function(g) {
  10970. return !u.j.o.toolbarInlineDisabledButtons.includes(g.name);
  10971. }).filter(function(g) {
  10972. var b = (0, d.isString)(g) ? g : g.name;
  10973. return b && b !== "|" && b !== `
  10974. ` && !y.includes(b);
  10975. });
  10976. }
  10977. }).on("hidePopup", this.hidePopup).on("showInlineToolbar", this.showInlineToolbar).on("showPopup", function(v, y, g) {
  10978. u.showPopup(y, g || ((0, d.isString)(v) ? v : v.nodeName), (0, d.isString)(v) ? void 0 : v);
  10979. }).on("mousedown keydown", this.onSelectionStart).on("change", function() {
  10980. u.popup.isOpened && u.previousTarget && !u.previousTarget.parentNode && (u.hidePopup(), u.previousTarget = void 0);
  10981. }).on([this.j.ew, this.j.ow], "mouseup keyup", this.onSelectionEnd), this.addListenersForElements();
  10982. }, r.prototype.onSelectionStart = function() {
  10983. this.snapRange = this.j.s.range.cloneRange();
  10984. }, r.prototype.onSelectionEnd = function(i) {
  10985. if (!(i && i.target && s.UIElement.closestElement(i.target, f.Popup))) {
  10986. var u = this.snapRange, v = this.j.s.range;
  10987. u && !v.collapsed && v.startContainer === u.startContainer && v.startOffset === u.startOffset && v.endContainer === u.endContainer && v.endOffset === u.endOffset || this.onSelectionChange();
  10988. }
  10989. }, r.prototype.onSelectionChange = function() {
  10990. if (this.j.o.toolbarInlineForSelection) {
  10991. var i = "selection", u = this.j.s.sel, v = this.j.s.range;
  10992. u != null && u.isCollapsed || this.isSelectedTarget(v) || this.tableModule.getAllSelectedCells().length ? this.type === i && this.popup.isOpened && this.hidePopup() : this.j.s.current() && this.showPopup(function() {
  10993. return v.getBoundingClientRect();
  10994. }, i);
  10995. }
  10996. }, r.prototype.isSelectedTarget = function(i) {
  10997. var u = i.startContainer;
  10998. return a.Dom.isElement(u) && u === i.endContainer && a.Dom.isTag(u.childNodes[i.startOffset], (0, d.keys)(this.j.o.popup, !1)) && i.startOffset === i.endOffset - 1;
  10999. }, Object.defineProperty(r.prototype, "tableModule", { get: function() {
  11000. return this.j.getInstance("Table", this.j.o);
  11001. }, enumerable: !1, configurable: !0 }), r.prototype.beforeDestruct = function(i) {
  11002. i.e.off("showPopup").off([this.j.ew, this.j.ow], "mouseup keyup", this.onSelectionEnd), this.removeListenersForElements();
  11003. }, r.prototype._eventsList = function() {
  11004. var i = this.elmsList;
  11005. return i.map(function(u) {
  11006. return (0, d.camelCase)("click_".concat(u));
  11007. }).concat(i.map(function(u) {
  11008. return (0, d.camelCase)("touchstart_".concat(u));
  11009. })).join(" ");
  11010. }, r.prototype.addListenersForElements = function() {
  11011. this.j.e.on(this._eventsList(), this.onClick);
  11012. }, r.prototype.removeListenersForElements = function() {
  11013. this.j.e.off(this._eventsList(), this.onClick);
  11014. }, r.prototype.showInlineToolbar = function(i) {
  11015. var u = this;
  11016. this.showPopup(function() {
  11017. return i || u.j.s.range.getBoundingClientRect();
  11018. }, "toolbar");
  11019. }, n.__decorate([c.autobind], r.prototype, "onClick", null), n.__decorate([(0, c.wait)(function(i) {
  11020. return !i.j.isLocked;
  11021. })], r.prototype, "showPopup", null), n.__decorate([(0, c.watch)(":clickEditor"), c.autobind], r.prototype, "hidePopup", null), n.__decorate([(0, c.watch)(":outsideClick")], r.prototype, "onOutsideClick", null), n.__decorate([c.autobind], r.prototype, "onSelectionStart", null), n.__decorate([c.autobind], r.prototype, "onSelectionEnd", null), n.__decorate([(0, c.debounce)(function(i) {
  11022. return i.defaultTimeout;
  11023. })], r.prototype, "onSelectionChange", null), n.__decorate([c.autobind], r.prototype, "showInlineToolbar", null), r;
  11024. }(m.Plugin);
  11025. t.inlinePopup = l, p.pluginSystem.add("inlinePopup", l);
  11026. }, 54452: function(_, t, e) {
  11027. Object.defineProperty(t, "__esModule", { value: !0 }), t.justify = void 0;
  11028. var n = e(93166), m = e(24263), h = e(26911), f = e(60303), d = e(17332);
  11029. function a(s) {
  11030. s.registerButton({ name: "align", group: "indent" });
  11031. var c = function(p) {
  11032. return s.s.focus(), s.s.eachSelection(function(l) {
  11033. if (l) {
  11034. var o = m.Dom.up(l, m.Dom.isBlock, s.editor);
  11035. o || (o = m.Dom.wrapInline(l, s.o.enterBlock, s)), (0, f.alignElement)(p, o);
  11036. }
  11037. }), !1;
  11038. };
  11039. s.registerCommand("justifyfull", c), s.registerCommand("justifyright", c), s.registerCommand("justifyleft", c), s.registerCommand("justifycenter", c);
  11040. }
  11041. e(77904).Icon.set("justify", e(87498)), n.Config.prototype.controls.align = { name: "left", tooltip: "Align", update: function(s, c) {
  11042. var p = s.control, l = c.s.current();
  11043. if (l) {
  11044. var o = m.Dom.closest(l, m.Dom.isBlock, c.editor) || c.editor, r = (0, h.css)(o, "text-align").toString();
  11045. p.defaultValue && p.defaultValue.indexOf(r) !== -1 && (r = "left"), p.data && p.data.currentValue !== r && p.list && p.list.indexOf(r) !== -1 && (c.o.textIcons ? s.state.text = r : s.state.icon.name = r, p.data.currentValue = r);
  11046. }
  11047. }, isActive: function(s, c) {
  11048. var p = s.s.current();
  11049. if (p && c.defaultValue) {
  11050. var l = m.Dom.closest(p, m.Dom.isBlock, s.editor) || s.editor;
  11051. return c.defaultValue.indexOf((0, h.css)(l, "text-align").toString()) === -1;
  11052. }
  11053. return !1;
  11054. }, defaultValue: ["left", "start", "inherit"], data: { currentValue: "left" }, list: ["center", "left", "right", "justify"] }, n.Config.prototype.controls.center = { command: "justifyCenter", css: { "text-align": "center" }, tooltip: "Align Center" }, n.Config.prototype.controls.justify = { command: "justifyFull", css: { "text-align": "justify" }, tooltip: "Align Justify" }, n.Config.prototype.controls.left = { command: "justifyLeft", css: { "text-align": "left" }, tooltip: "Align Left" }, n.Config.prototype.controls.right = { command: "justifyRight", css: { "text-align": "right" }, tooltip: "Align Right" }, t.justify = a, d.pluginSystem.add("justify", a);
  11055. }, 46324: function(_, t, e) {
  11056. Object.defineProperty(t, "__esModule", { value: !0 }), t.keyArrowOutside = void 0;
  11057. var n = e(20255), m = e(57549), h = e(43441), f = e(86893), d = e(24263), a = e(17332), s = function(c) {
  11058. function p() {
  11059. return c !== null && c.apply(this, arguments) || this;
  11060. }
  11061. return n.__extends(p, c), p.prototype.afterInit = function(l) {
  11062. }, p.prototype.beforeDestruct = function(l) {
  11063. }, p.prototype.onKeyDownArrow = function(l) {
  11064. var o;
  11065. if (l.key === f.KEY_RIGHT && this.j.selection.isCollapsed()) {
  11066. var r = this.j.selection.range, i = r.endContainer, u = r.endOffset;
  11067. if (d.Dom.isText(i) && ((o = i.nodeValue) === null || o === void 0 ? void 0 : o.length) === u) {
  11068. var v = i.parentNode;
  11069. d.Dom.isInlineBlock(v) && !d.Dom.findNotEmptyNeighbor(v, !1, this.j.editor) && d.Dom.after(v, this.j.createInside.text(f.NBSP_SPACE));
  11070. }
  11071. }
  11072. }, n.__decorate([(0, h.watch)(":keydown")], p.prototype, "onKeyDownArrow", null), p;
  11073. }(m.Plugin);
  11074. t.keyArrowOutside = s, a.pluginSystem.add("keyArrowOutside", s);
  11075. }, 19250: function(_, t, e) {
  11076. Object.defineProperty(t, "__esModule", { value: !0 });
  11077. var n = e(93166);
  11078. n.Config.prototype.limitWords = !1, n.Config.prototype.limitChars = !1, n.Config.prototype.limitHTML = !1;
  11079. }, 27738: function(_, t, e) {
  11080. Object.defineProperty(t, "__esModule", { value: !0 }), t.limit = void 0;
  11081. var n = e(20255), m = e(57549), h = e(86893), f = e(43441), d = e(17332);
  11082. e(19250);
  11083. var a = function(c) {
  11084. function p() {
  11085. return c !== null && c.apply(this, arguments) || this;
  11086. }
  11087. return n.__extends(p, c), p.prototype.afterInit = function(l) {
  11088. var o = this, r = l.o;
  11089. if (l && (r.limitWords || r.limitChars)) {
  11090. var i = null;
  11091. l.e.off(".limit").on("beforePaste.limit", function() {
  11092. i = l.history.snapshot.make();
  11093. }).on("keydown.limit keyup.limit beforeEnter.limit", this.checkPreventKeyPressOrPaste).on("change.limit", this.checkPreventChanging).on("afterPaste.limit", function() {
  11094. if (o.__shouldDenyInput(!0) && i) return l.history.snapshot.restore(i), l.e.fire("denyPaste.limit"), !1;
  11095. });
  11096. }
  11097. }, p.prototype.shouldPreventInsertHTML = function(l) {
  11098. return (!l || !(h.COMMAND_KEYS.includes(l.key) || l.ctrlKey || l.metaKey)) && this.__shouldDenyInput(!1);
  11099. }, p.prototype.__shouldDenyInput = function(l) {
  11100. var o = this.jodit, r = o.o, i = r.limitWords, u = r.limitChars, v = this.__splitWords(o.o.limitHTML ? o.value : o.text);
  11101. if (i && s(v.length, i, l)) return o.e.fire("denyWords.limit limit.limit"), !0;
  11102. var y = !!(u && s(v.join("").length, u, l));
  11103. return y && o.e.fire("denyChars.limit limit.limit"), y;
  11104. }, p.prototype.checkPreventKeyPressOrPaste = function(l) {
  11105. if (this.shouldPreventInsertHTML(l)) return !1;
  11106. }, p.prototype.checkPreventChanging = function(l, o) {
  11107. var r = this.jodit;
  11108. this.__shouldDenyInput(!0) && (r.value = o);
  11109. }, p.prototype.__splitWords = function(l) {
  11110. return l.replace((0, h.INVISIBLE_SPACE_REG_EXP)(), "").split((0, h.SPACE_REG_EXP)()).filter(function(o) {
  11111. return o.length;
  11112. });
  11113. }, p.prototype.beforeDestruct = function(l) {
  11114. l.e.off(".limit");
  11115. }, n.__decorate([f.autobind], p.prototype, "checkPreventKeyPressOrPaste", null), n.__decorate([f.autobind], p.prototype, "checkPreventChanging", null), p;
  11116. }(m.Plugin);
  11117. function s(c, p, l) {
  11118. return l ? c > p : c >= p;
  11119. }
  11120. t.limit = a, d.pluginSystem.add("limit", a);
  11121. }, 29490: function(_, t, e) {
  11122. Object.defineProperty(t, "__esModule", { value: !0 });
  11123. var n = e(93166), m = e(40332), h = e(77904);
  11124. n.Config.prototype.defaultLineHeight = null, h.Icon.set("line-height", e(7986)), n.Config.prototype.controls.lineHeight = { command: "applyLineHeight", tags: ["ol"], tooltip: "Line height", list: [1, 1.1, 1.2, 1.3, 1.4, 1.5, 2], exec: function(f, d, a) {
  11125. return (0, m.memorizeExec)(f, d, { control: a.control }, function(s) {
  11126. return s;
  11127. });
  11128. } };
  11129. }, 26752: function(_, t, e) {
  11130. Object.defineProperty(t, "__esModule", { value: !0 }), t.zh_tw = t.zh_cn = t.tr = t.ru = t.pt_br = t.pl = t.nl = t.ko = t.ja = t.it = t.id = t.hu = t.he = t.fr = t.fa = t.es = t.de = t.cs_cz = t.ar = void 0;
  11131. var n = e(47762);
  11132. t.ar = n;
  11133. var m = e(97495);
  11134. t.cs_cz = m;
  11135. var h = e(80131);
  11136. t.de = h;
  11137. var f = e(1201);
  11138. t.es = f;
  11139. var d = e(89912);
  11140. t.fa = d;
  11141. var a = e(3405);
  11142. t.fr = a;
  11143. var s = e(14129);
  11144. t.he = s;
  11145. var c = e(93729);
  11146. t.hu = c;
  11147. var p = e(16106);
  11148. t.id = p;
  11149. var l = e(89690);
  11150. t.it = l;
  11151. var o = e(33216);
  11152. t.ja = o;
  11153. var r = e(17282);
  11154. t.ko = r;
  11155. var i = e(91761);
  11156. t.nl = i;
  11157. var u = e(61675);
  11158. t.pl = u;
  11159. var v = e(69709);
  11160. t.pt_br = v;
  11161. var y = e(82591);
  11162. t.ru = y;
  11163. var g = e(87649);
  11164. t.tr = g;
  11165. var b = e(60268);
  11166. t.zh_cn = b;
  11167. var w = e(58214);
  11168. t.zh_tw = w;
  11169. }, 61421: function(_, t, e) {
  11170. Object.defineProperty(t, "__esModule", { value: !0 }), t.lineHeight = void 0;
  11171. var n = e(20255), m = e(57549), h = e(40332), f = e(43441), d = e(24263), a = e(17332);
  11172. e(29490);
  11173. var s = function(c) {
  11174. function p(l) {
  11175. var o = c.call(this, l) || this;
  11176. return o.buttons = [{ name: "lineHeight", group: "font" }], (0, a.extendLang)(e(26752)), o;
  11177. }
  11178. return n.__extends(p, c), p.prototype.afterInit = function(l) {
  11179. (0, h.css)(l.editor, { lineHeight: l.o.defaultLineHeight }), l.registerCommand("applyLineHeight", this.applyLineHeight);
  11180. }, p.prototype.applyLineHeight = function(l, o, r) {
  11181. var i, u = this.j, v = u.s, y = u.createInside, g = u.editor, b = u.o;
  11182. v.isFocused() || v.focus(), v.save();
  11183. var w = function(S) {
  11184. var j = d.Dom.closest(S, d.Dom.isBlock, g);
  11185. j || (j = d.Dom.wrap(S, b.enter, y));
  11186. var E = (0, h.css)(j, "lineHeight");
  11187. i === void 0 && (i = E.toString() !== r.toString()), (0, h.css)(j, "lineHeight", i ? r : null);
  11188. };
  11189. try {
  11190. if (v.isCollapsed()) {
  11191. var C = y.fake();
  11192. v.insertNode(C, !1, !1), w(C), d.Dom.safeRemove(C);
  11193. } else v.eachSelection(w);
  11194. } finally {
  11195. v.restore();
  11196. }
  11197. }, p.prototype.beforeDestruct = function(l) {
  11198. (0, h.css)(l.editor, { lineHeight: null });
  11199. }, n.__decorate([f.autobind], p.prototype, "applyLineHeight", null), p;
  11200. }(m.Plugin);
  11201. t.lineHeight = s, a.pluginSystem.add("lineHeight", s);
  11202. }, 56367: function(_, t, e) {
  11203. Object.defineProperty(t, "__esModule", { value: !0 });
  11204. var n = e(93166), m = e(54238), h = e(24263), f = e(77904);
  11205. n.Config.prototype.link = { formTemplate: m.formTemplate, followOnDblClick: !1, processVideoLink: !0, processPastedLink: !0, noFollowCheckbox: !0, openInNewTabCheckbox: !0, modeClassName: "input", selectMultipleClassName: !0, selectSizeClassName: 3, selectOptionsClassName: [], hotkeys: ["ctrl+k", "cmd+k"] }, f.Icon.set("link", e(23075)).set("unlink", e(10655)), n.Config.prototype.controls.unlink = { exec: function(d, a) {
  11206. var s = h.Dom.closest(a, "a", d.editor);
  11207. s && h.Dom.unwrap(s), d.synchronizeValues(), d.e.fire("hidePopup");
  11208. }, tooltip: "Unlink" }, n.Config.prototype.controls.link = { isActive: function(d) {
  11209. var a = d.s.current();
  11210. return !!(a && h.Dom.closest(a, "a", d.editor));
  11211. }, popup: function(d, a, s, c) {
  11212. return d.e.fire("generateLinkForm.link", a, c);
  11213. }, tags: ["a"], tooltip: "Insert link" };
  11214. }, 27582: function(_, t, e) {
  11215. Object.defineProperty(t, "__esModule", { value: !0 }), t.link = void 0;
  11216. var n = e(20255), m = e(64968), h = e(40332), f = e(57549), d = e(43441), a = e(17332);
  11217. e(56367);
  11218. var s = function(c) {
  11219. function p() {
  11220. var l = c !== null && c.apply(this, arguments) || this;
  11221. return l.buttons = [{ name: "link", group: "insert" }], l;
  11222. }
  11223. return n.__extends(p, c), p.prototype.afterInit = function(l) {
  11224. var o = this;
  11225. l.o.link.followOnDblClick && l.e.on("dblclick.link", this.onDblClickOnLink), l.o.link.processPastedLink && l.e.on("processPaste.link", this.onProcessPasteLink), l.e.on("generateLinkForm.link", this.__generateForm), l.registerCommand("openLinkDialog", { exec: function() {
  11226. var r = l.dlg({ resizable: !1 }), i = o.__generateForm(l.s.current(), function() {
  11227. r.close();
  11228. });
  11229. i.container.classList.add("jodit-dialog_alert"), r.setContent(i), r.open(), l.async.requestIdleCallback(function() {
  11230. var u = (0, h.refs)(i.container).url_input;
  11231. u == null || u.focus();
  11232. });
  11233. }, hotkeys: l.o.link.hotkeys });
  11234. }, p.prototype.onDblClickOnLink = function(l) {
  11235. if (m.Dom.isTag(l.target, "a")) {
  11236. var o = (0, h.attr)(l.target, "href");
  11237. o && (location.href = o, l.preventDefault());
  11238. }
  11239. }, p.prototype.onProcessPasteLink = function(l, o) {
  11240. var r = this.jodit;
  11241. if ((0, h.isURL)(o) && r.o.link.processPastedLink) {
  11242. if (r.e.stopPropagation("processPaste"), r.o.link.processVideoLink) {
  11243. var i = (0, h.convertMediaUrlToVideoEmbed)(o);
  11244. if (i !== o) return r.createInside.fromHTML(i);
  11245. }
  11246. if (r.s.isCollapsed()) {
  11247. var u = r.createInside.element("a");
  11248. return u.setAttribute("href", o), u.textContent = o, r.e.fire("applyLink", r, u, null), u;
  11249. }
  11250. return r.s.applyStyle(void 0, { element: "a", attributes: { href: o } }), !0;
  11251. }
  11252. }, p.prototype.__generateForm = function(l, o) {
  11253. var r, i = this.jodit, u = i.i18n.bind(i), v = i.o.link, y = v.openInNewTabCheckbox, g = v.noFollowCheckbox, b = v.formClassName, w = v.modeClassName, C = (0, v.formTemplate)(i), S = (0, h.isString)(C) ? i.c.fromHTML(C, { target_checkbox_box: y, nofollow_checkbox_box: g }) : C, j = m.Dom.isElement(S) ? S : S.container, E = (0, h.refs)(j), x = E.insert, k = E.unlink, I = E.content_input_box, M = E.target_checkbox, T = E.nofollow_checkbox, O = E.url_input, L = m.Dom.isImage(l), N = E.content_input, H = E.className_input, q = E.className_select;
  11254. N || (N = i.c.element("input", { type: "hidden", ref: "content_input" })), b && j.classList.add(b), L && m.Dom.hide(I);
  11255. var F = function() {
  11256. return r ? r.innerText : (0, h.stripTags)(i.s.range.cloneContents(), i.ed);
  11257. };
  11258. if (r = !(!l || !m.Dom.closest(l, "a", i.editor)) && m.Dom.closest(l, "a", i.editor), !L && l && (N.value = F()), r) {
  11259. if (O.value = (0, h.attr)(r, "href") || "", w) switch (w) {
  11260. case "input":
  11261. H && (H.value = (0, h.attr)(r, "class") || "");
  11262. break;
  11263. case "select":
  11264. if (q) {
  11265. for (var U = 0; q.selectedOptions.length > U; U++) {
  11266. var Y = q.options.item(U);
  11267. Y && (Y.selected = !1);
  11268. }
  11269. ((0, h.attr)(r, "class") || "").split(" ").forEach(function(z) {
  11270. if (z) for (var R = 0; q.options.length > R; R++) {
  11271. var A = q.options.item(R);
  11272. A != null && A.value && A.value === z && (A.selected = !0);
  11273. }
  11274. });
  11275. }
  11276. }
  11277. y && M && (M.checked = (0, h.attr)(r, "target") === "_blank"), g && T && (T.checked = (0, h.attr)(r, "rel") === "nofollow"), x.textContent = u("Update");
  11278. } else m.Dom.hide(k);
  11279. i.editor.normalize();
  11280. var P = i.history.snapshot.make();
  11281. k && i.e.on(k, "click", function(z) {
  11282. i.s.restore(), i.history.snapshot.restore(P), r && m.Dom.unwrap(r), i.synchronizeValues(), o(), z.preventDefault();
  11283. });
  11284. var D = function() {
  11285. if (!O.value.trim().length) return O.focus(), O.classList.add("jodit_error"), !1;
  11286. var z;
  11287. i.s.restore(), i.s.removeMarkers(), i.editor.normalize(), i.history.snapshot.restore(P);
  11288. var R = F() !== N.value.trim(), A = i.createInside;
  11289. if (r) z = [r];
  11290. else {
  11291. if (i.s.isCollapsed()) {
  11292. var B = A.element("a");
  11293. i.s.insertNode(B, !1, !1), z = [B];
  11294. } else {
  11295. var X = i.s.current();
  11296. z = m.Dom.isTag(X, ["img"]) ? [m.Dom.wrap(X, "a", A)] : i.s.wrapInTag("a");
  11297. }
  11298. z.forEach(function(W) {
  11299. return i.s.select(W);
  11300. });
  11301. }
  11302. return z.forEach(function(W) {
  11303. var Q;
  11304. if ((0, h.attr)(W, "href", O.value), w && (H != null ? H : q)) {
  11305. if (w === "input") H.value === "" && W.hasAttribute("class") && (0, h.attr)(W, "class", null), H.value !== "" && (0, h.attr)(W, "class", H.value);
  11306. else if (w === "select") {
  11307. W.hasAttribute("class") && (0, h.attr)(W, "class", null);
  11308. for (var ne = 0; q.selectedOptions.length > ne; ne++) {
  11309. var ce = (Q = q.selectedOptions.item(ne)) === null || Q === void 0 ? void 0 : Q.value;
  11310. ce && W.classList.add(ce);
  11311. }
  11312. }
  11313. }
  11314. if (!L) {
  11315. var re = W.textContent;
  11316. N.value.trim().length ? R && (re = N.value) : re = O.value, re !== W.textContent && (W.textContent = re);
  11317. }
  11318. y && M && (0, h.attr)(W, "target", M.checked ? "_blank" : null), g && T && (0, h.attr)(W, "rel", T.checked ? "nofollow" : null), i.e.fire("applyLink", i, W, S);
  11319. }), i.synchronizeValues(), o(), !1;
  11320. };
  11321. return m.Dom.isElement(S) ? i.e.on(S, "submit", function(z) {
  11322. return z.preventDefault(), z.stopImmediatePropagation(), D(), !1;
  11323. }) : S.onSubmit(D), S;
  11324. }, p.prototype.beforeDestruct = function(l) {
  11325. l.e.off("generateLinkForm.link", this.__generateForm).off("dblclick.link", this.onDblClickOnLink).off("processPaste.link", this.onProcessPasteLink);
  11326. }, n.__decorate([d.autobind], p.prototype, "onDblClickOnLink", null), n.__decorate([d.autobind], p.prototype, "onProcessPasteLink", null), n.__decorate([d.autobind], p.prototype, "__generateForm", null), p;
  11327. }(f.Plugin);
  11328. t.link = s, a.pluginSystem.add("link", s);
  11329. }, 54238: function(_, t, e) {
  11330. Object.defineProperty(t, "__esModule", { value: !0 }), t.formTemplate = void 0;
  11331. var n = e(95963), m = e(96516);
  11332. t.formTemplate = function(h) {
  11333. var f = h.o.link, d = f.openInNewTabCheckbox, a = f.noFollowCheckbox, s = f.modeClassName, c = f.selectSizeClassName, p = f.selectMultipleClassName, l = f.selectOptionsClassName;
  11334. return new n.UIForm(h, [new n.UIBlock(h, [new n.UIInput(h, { name: "url", type: "text", ref: "url_input", label: "URL", placeholder: "http://", required: !0 })]), new n.UIBlock(h, [new n.UIInput(h, { name: "content", ref: "content_input", label: "Text" })], { ref: "content_input_box" }), s ? new n.UIBlock(h, [s === "input" ? new n.UIInput(h, { name: "className", ref: "className_input", label: "Class name" }) : s === "select" ? new n.UISelect(h, { name: "className", ref: "className_select", label: "Class name", size: c, multiple: p, options: l }) : null]) : null, d ? new n.UICheckbox(h, { name: "target", ref: "target_checkbox", label: "Open in new tab" }) : null, a ? new n.UICheckbox(h, { name: "nofollow", ref: "nofollow_checkbox", label: "No follow" }) : null, new n.UIBlock(h, [new m.UIButton(h, { name: "unlink", variant: "default", text: "Unlink" }), new m.UIButton(h, { name: "insert", type: "submit", variant: "primary", text: "Insert" })], { align: "full" })]);
  11335. };
  11336. }, 11737: function(_, t, e) {
  11337. Object.defineProperty(t, "__esModule", { value: !0 });
  11338. var n = e(93166);
  11339. n.Config.prototype.mediaFakeTag = "jodit-media", n.Config.prototype.mediaInFakeBlock = !0, n.Config.prototype.mediaBlocks = ["video", "audio"];
  11340. }, 76303: function(_, t, e) {
  11341. Object.defineProperty(t, "__esModule", { value: !0 }), t.media = void 0;
  11342. var n = e(86893), m = e(76502), h = e(17332);
  11343. function f(d) {
  11344. var a = "jodit_fake_wrapper", s = d.options, c = s.mediaFakeTag, p = s.mediaBlocks;
  11345. s.mediaInFakeBlock && d.e.on("afterGetValueFromEditor", function(l) {
  11346. var o = new RegExp("<".concat(c, "[^>]+data-").concat(a, "[^>]+>([^]+?)</").concat(c, ">"), "ig");
  11347. o.test(l.value) && (l.value = l.value.replace(o, "$1"));
  11348. }).on("change afterInit afterSetMode changePlace", d.async.debounce(function() {
  11349. d.isDestructed || d.getMode() === n.MODE_SOURCE || (0, m.$$)(p.join(","), d.editor).forEach(function(l) {
  11350. (0, m.dataBind)(l, a) || ((0, m.dataBind)(l, a, !0), function(o) {
  11351. var r;
  11352. if (o.parentNode && (0, m.attr)(o.parentNode, "data-jodit_iframe_wrapper")) o = o.parentNode;
  11353. else {
  11354. var i = d.createInside.element(c, ((r = { "data-jodit-temp": 1, contenteditable: !1, draggable: !0 })["data-".concat(a)] = 1, r));
  11355. (0, m.attr)(i, "style", (0, m.attr)(o, "style")), i.style.display = o.style.display === "inline-block" ? "inline-block" : "block", i.style.width = o.offsetWidth + "px", i.style.height = o.offsetHeight + "px", o.parentNode && o.parentNode.insertBefore(i, o), i.appendChild(o), o = i;
  11356. }
  11357. d.e.off(o, "mousedown.select touchstart.select").on(o, "mousedown.select touchstart.select", function() {
  11358. d.s.setCursorAfter(o);
  11359. });
  11360. }(l));
  11361. });
  11362. }, d.defaultTimeout));
  11363. }
  11364. e(11737), t.media = f, h.pluginSystem.add("media", f);
  11365. }, 8860: function(_, t, e) {
  11366. Object.defineProperty(t, "__esModule", { value: !0 });
  11367. var n = e(93166), m = e(86893), h = e(81438), f = e(40332), d = e(72719);
  11368. n.Config.prototype.mobileTapTimeout = 300, n.Config.prototype.toolbarAdaptive = !0, n.Config.prototype.controls.dots = { mode: m.MODE_SOURCE + m.MODE_WYSIWYG, popup: function(a, s, c, p, l) {
  11369. var o = c.data;
  11370. return o === void 0 && (o = { toolbar: (0, h.makeCollection)(a), rebuild: function() {
  11371. var r;
  11372. if (l) {
  11373. var i = a.e.fire("getDiffButtons.mobile", l.closest(d.ToolbarCollection));
  11374. if (i && o) {
  11375. o.toolbar.build((0, f.splitArray)(i));
  11376. var u = ((r = a.toolbar.firstButton) === null || r === void 0 ? void 0 : r.container.offsetWidth) || 36;
  11377. o.toolbar.container.style.width = 3 * (u + 4) + "px";
  11378. }
  11379. }
  11380. } }, c.data = o), o.rebuild(), o.toolbar;
  11381. }, tooltip: "Show all" };
  11382. }, 19806: function(_, t, e) {
  11383. Object.defineProperty(t, "__esModule", { value: !0 }), t.mobile = void 0;
  11384. var n = e(40332), m = e(97642), h = e(17332);
  11385. function f(d) {
  11386. var a = 0, s = (0, n.splitArray)(d.o.buttons);
  11387. d.o.mobileTapTimeout && d.e.on("touchend", function(c) {
  11388. if (c.changedTouches && c.changedTouches.length) {
  11389. var p = (/* @__PURE__ */ new Date()).getTime(), l = p - a;
  11390. l > d.o.mobileTapTimeout && (a = p, 1.5 * d.o.mobileTapTimeout > l && d.s.insertCursorAtPoint(c.clientX, c.clientY));
  11391. }
  11392. }), d.e.on("getDiffButtons.mobile", function(c) {
  11393. if (c === d.toolbar) {
  11394. var p = (0, m.flatButtonsSet)((0, n.splitArray)(d.o.buttons), d), l = (0, m.flatButtonsSet)(s, d);
  11395. return (0, n.toArray)(p).reduce(function(o, r) {
  11396. return l.has(r) || o.push(r), o;
  11397. }, []);
  11398. }
  11399. }), d.o.toolbarAdaptive && d.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace", function() {
  11400. var c;
  11401. if (d.o.toolbar) {
  11402. var p = ((c = d.container.parentElement) !== null && c !== void 0 ? c : d.container).offsetWidth, l = (0, n.splitArray)(d.isFullSize || p >= d.o.sizeLG ? d.o.buttons : d.o.sizeMD > p ? d.o.sizeSM > p ? d.o.buttonsXS : d.o.buttonsSM : d.o.buttonsMD);
  11403. l.toString() !== s.toString() && (s = l, d.e.fire("closeAllPopups"), d.toolbar.setRemoveButtons(d.o.removeButtons).build(s.concat(d.o.extraButtons)));
  11404. }
  11405. }).on(d.ow, "load resize", function() {
  11406. return d.e.fire("recalcAdaptive");
  11407. });
  11408. }
  11409. e(8860), t.mobile = f, h.pluginSystem.add("mobile", f);
  11410. }, 73013: function(_, t, e) {
  11411. Object.defineProperty(t, "__esModule", { value: !0 });
  11412. var n = e(93166), m = e(63122), h = function(f, d, a) {
  11413. var s, c = a.control, p = "button".concat(c.command), l = (s = c.args && c.args[0]) !== null && s !== void 0 ? s : (0, m.dataBind)(f, p);
  11414. (0, m.dataBind)(f, p, l), f.execCommand(c.command, !1, l === "default" ? null : l);
  11415. };
  11416. e(77904).Icon.set("ol", e(15476)).set("ul", e(59403)), n.Config.prototype.controls.ul = { command: "insertUnorderedList", tags: ["ul"], tooltip: "Insert Unordered List", list: { default: "Default", circle: "Circle", disc: "Dot", square: "Quadrate" }, exec: h }, n.Config.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: h };
  11417. }, 52598: function(_, t, e) {
  11418. Object.defineProperty(t, "__esModule", { value: !0 }), t.orderedList = void 0;
  11419. var n = e(20255), m = e(57549), h = e(43441), f = e(17332);
  11420. e(73013);
  11421. var d = function(a) {
  11422. function s() {
  11423. var c = a !== null && a.apply(this, arguments) || this;
  11424. return c.buttons = [{ name: "ul", group: "list" }, { name: "ol", group: "list" }], c;
  11425. }
  11426. return n.__extends(s, a), s.prototype.afterInit = function(c) {
  11427. c.registerCommand("insertUnorderedList", this.onCommand).registerCommand("insertOrderedList", this.onCommand);
  11428. }, s.prototype.onCommand = function(c, p, l) {
  11429. return this.jodit.s.applyStyle({ listStyleType: l != null ? l : null }, { element: c === "insertunorderedlist" ? "ul" : "ol" }), this.jodit.synchronizeValues(), !1;
  11430. }, s.prototype.beforeDestruct = function(c) {
  11431. }, n.__decorate([h.autobind], s.prototype, "onCommand", null), s;
  11432. }(m.Plugin);
  11433. t.orderedList = d, f.pluginSystem.add("orderedList", d);
  11434. }, 47470: function(_, t, e) {
  11435. Object.defineProperty(t, "__esModule", { value: !0 });
  11436. var n = e(93166), m = e(86893);
  11437. n.Config.prototype.askBeforePasteFromWord = !0, n.Config.prototype.processPasteFromWord = !0, n.Config.prototype.defaultActionOnPasteFromWord = null, n.Config.prototype.pasteFromWordActionList = [{ value: m.INSERT_AS_HTML, text: "Keep" }, { value: m.INSERT_AS_TEXT, text: "Clean" }, { value: m.INSERT_ONLY_TEXT, text: "Insert only Text" }];
  11438. }, 15428: function(_, t, e) {
  11439. Object.defineProperty(t, "__esModule", { value: !0 }), t.pasteFromWord = void 0;
  11440. var n = e(20255), m = e(57549), h = e(40332), f = e(86893), d = e(43441), a = e(64280), s = e(17332);
  11441. e(47470);
  11442. var c = function(p) {
  11443. function l() {
  11444. var o = p !== null && p.apply(this, arguments) || this;
  11445. return o.requires = ["paste"], o;
  11446. }
  11447. return n.__extends(l, p), l.prototype.afterInit = function(o) {
  11448. }, l.prototype.beforeDestruct = function(o) {
  11449. }, l.prototype.processWordHTML = function(o, r, i) {
  11450. var u = this, v = this.j, y = v.o, g = y.askBeforePasteFromWord, b = y.defaultActionOnPasteFromWord, w = y.defaultActionOnPaste, C = y.pasteFromWordActionList;
  11451. return !(!y.processPasteFromWord || !(0, h.isHtmlFromWord)(r) || (g ? (0, a.askInsertTypeDialog)(v, "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", function(S) {
  11452. u.insertFromWordByType(o, r, S, i);
  11453. }, C) : this.insertFromWordByType(o, r, b || w, i), 0));
  11454. }, l.prototype.insertFromWordByType = function(o, r, i, u) {
  11455. var v;
  11456. switch (i) {
  11457. case f.INSERT_AS_HTML:
  11458. r = (0, h.applyStyles)(r);
  11459. var y = (v = this.j.events) === null || v === void 0 ? void 0 : v.fire("beautifyHTML", r);
  11460. (0, h.isString)(y) && (r = y);
  11461. break;
  11462. case f.INSERT_AS_TEXT:
  11463. r = (0, h.cleanFromWord)(r);
  11464. break;
  11465. case f.INSERT_ONLY_TEXT:
  11466. r = (0, h.stripTags)((0, h.cleanFromWord)(r));
  11467. }
  11468. (0, a.pasteInsertHtml)(o, this.j, r);
  11469. }, n.__decorate([(0, d.watch)(":processHTML")], l.prototype, "processWordHTML", null), l;
  11470. }(m.Plugin);
  11471. t.pasteFromWord = c, s.pluginSystem.add("pasteFromWord", c);
  11472. }, 47224: function(_, t, e) {
  11473. Object.defineProperty(t, "__esModule", { value: !0 }), t.pasteStorage = void 0;
  11474. var n = e(20255);
  11475. e(71708);
  11476. var m = e(86893), h = e(85605), f = e(24263), d = e(40332), a = e(96031), s = e(17332), c = function(p) {
  11477. function l() {
  11478. var o = p !== null && p.apply(this, arguments) || this;
  11479. return o.currentIndex = 0, o.list = [], o.container = null, o.listBox = null, o.previewBox = null, o.dialog = null, o.paste = function() {
  11480. if (o.j.s.focus(), o.j.s.insertHTML(o.list[o.currentIndex]), o.currentIndex !== 0) {
  11481. var r = o.list[0];
  11482. o.list[0] = o.list[o.currentIndex], o.list[o.currentIndex] = r;
  11483. }
  11484. o.dialog && o.dialog.close(), o.j.synchronizeValues(), o.j.e.fire("afterPaste");
  11485. }, o.onKeyDown = function(r) {
  11486. var i = o.currentIndex;
  11487. [m.KEY_UP, m.KEY_DOWN, m.KEY_ENTER].indexOf(r.key) !== -1 && (r.key === m.KEY_UP && (i === 0 ? i = o.list.length - 1 : i -= 1), r.key === m.KEY_DOWN && (i === o.list.length - 1 ? i = 0 : i += 1), r.key !== m.KEY_ENTER ? (i !== o.currentIndex && o.selectIndex(i), r.stopImmediatePropagation(), r.preventDefault()) : o.paste());
  11488. }, o.selectIndex = function(r) {
  11489. o.listBox && (0, d.toArray)(o.listBox.childNodes).forEach(function(i, u) {
  11490. i.classList.remove("jodit_active"), r === u && o.previewBox && (i.classList.add("jodit_active"), o.previewBox.innerHTML = o.list[r], i.focus());
  11491. }), o.currentIndex = r;
  11492. }, o.showDialog = function() {
  11493. 2 > o.list.length || (o.dialog || o.createDialog(), o.listBox && (o.listBox.innerHTML = ""), o.previewBox && (o.previewBox.innerHTML = ""), o.list.forEach(function(r, i) {
  11494. var u = o.j.c.element("a");
  11495. u.textContent = i + 1 + ". " + r.replace((0, m.SPACE_REG_EXP)(), ""), o.j.e.on(u, "keydown", o.onKeyDown), (0, d.attr)(u, "href", "#"), (0, d.attr)(u, "data-index", i.toString()), (0, d.attr)(u, "tab-index", "-1"), o.listBox && o.listBox.appendChild(u);
  11496. }), o.dialog && o.dialog.open(), o.j.async.setTimeout(function() {
  11497. o.selectIndex(0);
  11498. }, 100));
  11499. }, o;
  11500. }
  11501. return n.__extends(l, p), l.prototype.createDialog = function() {
  11502. var o = this;
  11503. this.dialog = this.j.dlg();
  11504. var r = (0, a.Button)(this.j, "paste", "Paste", "primary");
  11505. r.onAction(this.paste);
  11506. var i = (0, a.Button)(this.j, "", "Cancel");
  11507. i.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([r, i]), this.j.e.on(this.listBox, "click dblclick", function(u) {
  11508. var v = u.target;
  11509. return f.Dom.isTag(v, "a") && v.hasAttribute("data-index") && o.selectIndex(parseInt((0, d.attr)(v, "-index") || "0", 10)), u.type === "dblclick" && o.paste(), !1;
  11510. });
  11511. }, l.prototype.afterInit = function() {
  11512. var o = this;
  11513. this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage", function() {
  11514. return o.list.length;
  11515. }).on("afterCopy.paste-storage", function(r) {
  11516. o.list.indexOf(r) !== -1 && o.list.splice(o.list.indexOf(r), 1), o.list.unshift(r), o.list.length > 5 && (o.list.length = 5);
  11517. }), this.j.registerCommand("showPasteStorage", { exec: this.showDialog, hotkeys: ["ctrl+shift+v", "cmd+shift+v"] });
  11518. }, l.prototype.beforeDestruct = function() {
  11519. this.dialog && this.dialog.destruct(), this.j.e.off(".paste-storage"), f.Dom.safeRemove(this.previewBox), f.Dom.safeRemove(this.listBox), f.Dom.safeRemove(this.container), this.container = null, this.listBox = null, this.previewBox = null, this.dialog = null, this.list = [];
  11520. }, l;
  11521. }(h.Plugin);
  11522. t.pasteStorage = c, s.pluginSystem.add("pasteStorage", c);
  11523. }, 24703: function(_, t, e) {
  11524. var n;
  11525. Object.defineProperty(t, "__esModule", { value: !0 });
  11526. var m = e(20255), h = e(86893), f = e(93166), d = e(64280);
  11527. f.Config.prototype.askBeforePasteHTML = !0, f.Config.prototype.processPasteHTML = !0, f.Config.prototype.pasteHTMLActionList = [{ value: h.INSERT_AS_HTML, text: "Keep" }, { value: h.INSERT_AS_TEXT, text: "Insert as Text" }, { value: h.INSERT_ONLY_TEXT, text: "Insert only Text" }], f.Config.prototype.memorizeChoiceWhenPasteFragment = !1, f.Config.prototype.nl2brInPlainText = !0;
  11528. var a = "pasteStorage";
  11529. f.Config.prototype.controls.paste = { tooltip: "Paste from clipboard", exec: function(s, c, p) {
  11530. var l = p.control;
  11531. return m.__awaiter(this, void 0, void 0, function() {
  11532. var o, r, i, u, v;
  11533. return m.__generator(this, function(y) {
  11534. switch (y.label) {
  11535. case 0:
  11536. if (l.name === a) return s.execCommand("showPasteStorage"), [2];
  11537. if (s.s.focus(), o = "", r = !0, !navigator.clipboard) return [3, 11];
  11538. y.label = 1;
  11539. case 1:
  11540. return y.trys.push([1, 6, , 7]), [4, navigator.clipboard.read()];
  11541. case 2:
  11542. return (i = y.sent()) && i.length ? [4, i[0].getType(h.TEXT_PLAIN)] : [3, 5];
  11543. case 3:
  11544. return u = y.sent(), [4, new Response(u).text()];
  11545. case 4:
  11546. o = y.sent(), y.label = 5;
  11547. case 5:
  11548. return r = !1, [3, 7];
  11549. case 6:
  11550. return y.sent(), [3, 7];
  11551. case 7:
  11552. if (!r) return [3, 11];
  11553. y.label = 8;
  11554. case 8:
  11555. return y.trys.push([8, 10, , 11]), [4, navigator.clipboard.readText()];
  11556. case 9:
  11557. return o = y.sent(), r = !1, [3, 11];
  11558. case 10:
  11559. return y.sent(), [3, 11];
  11560. case 11:
  11561. return r && (o = s.buffer.get(h.CLIPBOARD_ID) || "", r = o.length === 0), v = s.value, r ? (s.ed.execCommand("paste"), !(r = v === s.value) && s.e.fire("afterPaste")) : o.length ? ((0, d.pasteInsertHtml)(null, s, o), s.e.fire("afterPaste")) : r && s.alert("Your browser doesn't support direct access to the clipboard.", function() {
  11562. s.s.focus();
  11563. }), [2];
  11564. }
  11565. });
  11566. });
  11567. }, list: (n = {}, n[a] = "Paste Storage", n), isChildDisabled: function(s) {
  11568. return 2 > s.e.fire("pasteStorageList");
  11569. } };
  11570. }, 64280: function(_, t, e) {
  11571. Object.defineProperty(t, "__esModule", { value: !0 }), t.askInsertTypeDialog = t.getAllTypes = t.pasteInsertHtml = void 0;
  11572. var n = e(20255), m = e(10172), h = e(24263), f = e(86893), d = e(96031);
  11573. t.pasteInsertHtml = function(a, s, c) {
  11574. if (!s.isInDestruct) {
  11575. (function(l) {
  11576. return !!(l && l.type === "drop");
  11577. })(a) && s.s.insertCursorAtPoint(a.clientX, a.clientY);
  11578. var p = s.e.fire("beforePasteInsert", c);
  11579. !(0, m.isVoid)(p) && ((0, m.isString)(p) || (0, m.isNumber)(p) || h.Dom.isNode(p)) && (c = p), (0, m.isString)(c) && (c = function(l) {
  11580. var o = (l = l.replace(/<meta[^>]+?>/g, "")).search(/<!--StartFragment-->/i);
  11581. o !== -1 && (l = l.substring(o + 20));
  11582. var r = l.search(/<!--EndFragment-->/i);
  11583. return r !== -1 && (l = l.substring(0, r)), l;
  11584. }(c)), s.s.insertHTML(c);
  11585. }
  11586. }, t.getAllTypes = function(a) {
  11587. var s = a.types, c = "";
  11588. if ((0, m.isArray)(s) || {}.toString.call(s) === "[object DOMStringList]") for (var p = 0; s.length > p; p += 1) c += s[p] + ";";
  11589. else c = (s || f.TEXT_PLAIN).toString() + ";";
  11590. return c;
  11591. }, t.askInsertTypeDialog = function(a, s, c, p, l) {
  11592. if (a.e.fire("beforeOpenPasteDialog", s, c, p, l) !== !1) {
  11593. var o = a.confirm('<div style="word-break: normal; white-space: normal">'.concat(a.i18n(s), "</div>"), a.i18n(c)), r = l.map(function(u) {
  11594. var v = u.text, y = u.value;
  11595. return (0, d.Button)(a, { text: v, name: v.toLowerCase(), tabIndex: 0 }).onAction(function() {
  11596. o.close(), p(y);
  11597. });
  11598. });
  11599. o.e.one(o, "afterClose", function() {
  11600. a.s.isFocused() || a.s.focus();
  11601. });
  11602. var i = (0, d.Button)(a, { text: "Cancel", tabIndex: 0 }).onAction(function() {
  11603. o.close();
  11604. });
  11605. return o.setFooter(n.__spreadArray(n.__spreadArray([], n.__read(r), !1), [i], !1)), r[0].focus(), r[0].state.variant = "primary", a.e.fire("afterOpenPasteDialog", o, s, c, p, l), o;
  11606. }
  11607. };
  11608. }, 19483: function(_, t, e) {
  11609. Object.defineProperty(t, "__esModule", { value: !0 }), t.paste = void 0;
  11610. var n = e(20255), m = e(85605), h = e(86893), f = e(24263), d = e(43441), a = e(40332), s = e(17332), c = e(64280);
  11611. e(24703);
  11612. var p = function(l) {
  11613. function o() {
  11614. var r = l !== null && l.apply(this, arguments) || this;
  11615. return r.pasteStack = new a.LimitedStack(20), r._isDialogOpened = !1, r;
  11616. }
  11617. return n.__extends(o, l), o.prototype.afterInit = function(r) {
  11618. var i = this;
  11619. r.e.on("paste.paste", this.onPaste).on("pasteStack.paste", function(u) {
  11620. return i.pasteStack.push(u);
  11621. }), r.o.nl2brInPlainText && this.j.e.on("processPaste.paste", this.onProcessPasteReplaceNl2Br);
  11622. }, o.prototype.beforeDestruct = function(r) {
  11623. r.e.off("paste.paste", this.onPaste).off("processPaste.paste", this.onProcessPasteReplaceNl2Br).off(".paste");
  11624. }, o.prototype.onPaste = function(r) {
  11625. try {
  11626. if (this.customPasteProcess(r) === !1 || this.j.e.fire("beforePaste", r) === !1) return r.preventDefault(), !1;
  11627. this.defaultPasteProcess(r);
  11628. } finally {
  11629. this.j.e.fire("afterPaste", r);
  11630. }
  11631. }, o.prototype.customPasteProcess = function(r) {
  11632. if (this.j.o.processPasteHTML) {
  11633. var i, u = (0, a.getDataTransfer)(r), v = { html: u == null ? void 0 : u.getData(h.TEXT_HTML), plain: u == null ? void 0 : u.getData(h.TEXT_PLAIN), rtf: u == null ? void 0 : u.getData(h.TEXT_RTF) };
  11634. for (i in v) {
  11635. var y = v[i];
  11636. if ((0, a.isHTML)(y) && (this.j.e.fire("processHTML", r, y, v) || this.processHTML(r, y))) return !1;
  11637. }
  11638. }
  11639. }, o.prototype.defaultPasteProcess = function(r) {
  11640. var i = (0, a.getDataTransfer)(r), u = (i == null ? void 0 : i.getData(h.TEXT_HTML)) || (i == null ? void 0 : i.getData(h.TEXT_PLAIN));
  11641. if (i && u && (0, a.trim)(u) !== "") {
  11642. var v = this.j.e.fire("processPaste", r, u, (0, c.getAllTypes)(i));
  11643. v !== void 0 && (u = v), ((0, a.isString)(u) || f.Dom.isNode(u)) && this.insertByType(r, u, this.j.o.defaultActionOnPaste), r.preventDefault(), r.stopPropagation();
  11644. }
  11645. }, o.prototype.processHTML = function(r, i) {
  11646. var u = this;
  11647. if (this.j.o.askBeforePasteHTML) {
  11648. if (this.j.o.memorizeChoiceWhenPasteFragment) {
  11649. var v = this.pasteStack.find(function(g) {
  11650. return g.html === i;
  11651. });
  11652. if (v) return this.insertByType(r, i, v.action || this.j.o.defaultActionOnPaste), !0;
  11653. }
  11654. if (this._isDialogOpened) return !0;
  11655. var y = (0, c.askInsertTypeDialog)(this.j, "Your code is similar to HTML. Keep as HTML?", "Paste as HTML", function(g) {
  11656. u._isDialogOpened = !1, u.insertByType(r, i, g);
  11657. }, this.j.o.pasteHTMLActionList);
  11658. return y && (this._isDialogOpened = !0, y.e.on("beforeClose", function() {
  11659. u._isDialogOpened = !1;
  11660. })), !0;
  11661. }
  11662. return !1;
  11663. }, o.prototype.insertByType = function(r, i, u) {
  11664. if (this.pasteStack.push({ html: i, action: u }), (0, a.isString)(i)) switch (this.j.buffer.set(h.CLIPBOARD_ID, i), u) {
  11665. case h.INSERT_CLEAR_HTML:
  11666. i = (0, a.cleanFromWord)(i);
  11667. break;
  11668. case h.INSERT_ONLY_TEXT:
  11669. i = (0, a.stripTags)(i);
  11670. break;
  11671. case h.INSERT_AS_TEXT:
  11672. i = (0, a.htmlspecialchars)(i);
  11673. }
  11674. (0, c.pasteInsertHtml)(r, this.j, i);
  11675. }, o.prototype.onProcessPasteReplaceNl2Br = function(r, i, u) {
  11676. if (u === h.TEXT_PLAIN + ";" && !(0, a.isHTML)(i)) return (0, a.nl2br)(i);
  11677. }, n.__decorate([d.autobind], o.prototype, "onPaste", null), n.__decorate([d.autobind], o.prototype, "onProcessPasteReplaceNl2Br", null), o;
  11678. }(m.Plugin);
  11679. t.paste = p, s.pluginSystem.add("paste", p);
  11680. }, 76952: function(_, t, e) {
  11681. Object.defineProperty(t, "__esModule", { value: !0 });
  11682. var n = e(93166);
  11683. n.Config.prototype.showPlaceholder = !0, n.Config.prototype.placeholder = "Type something", n.Config.prototype.useInputsPlaceholder = !0;
  11684. }, 83211: function(_, t, e) {
  11685. Object.defineProperty(t, "__esModule", { value: !0 }), t.placeholder = t.isEditorEmpty = void 0;
  11686. var n = e(20255);
  11687. e(51629);
  11688. var m = e(86893), h = e(67309), f = e(26911), d = e(37204), a = e(24263), s = e(85605), c = e(86893), p = e(43441), l = e(17332);
  11689. function o(i) {
  11690. var u;
  11691. if (!i.firstChild) return !0;
  11692. var v = i.firstChild;
  11693. if (c.INSEPARABLE_TAGS.has((u = v.nodeName) === null || u === void 0 ? void 0 : u.toLowerCase()) || /^(TABLE)$/i.test(v.nodeName)) return !1;
  11694. var y = a.Dom.next(v, function(g) {
  11695. return g && !a.Dom.isEmptyTextNode(g);
  11696. }, i);
  11697. return a.Dom.isText(v) && !y ? a.Dom.isEmptyTextNode(v) : !y && a.Dom.each(v, function(g) {
  11698. return !a.Dom.isTag(g, ["ul", "li", "ol"]) && (a.Dom.isEmpty(g) || a.Dom.isTag(g, "br"));
  11699. });
  11700. }
  11701. e(76952), t.isEditorEmpty = o;
  11702. var r = function(i) {
  11703. function u() {
  11704. var v = i !== null && i.apply(this, arguments) || this;
  11705. return v.addNativeListeners = function() {
  11706. v.j.e.off(v.j.editor, "input.placeholder keydown.placeholder").on(v.j.editor, "input.placeholder keydown.placeholder", v.toggle);
  11707. }, v.addEvents = function() {
  11708. var y = v.j;
  11709. y.o.useInputsPlaceholder && y.element.hasAttribute("placeholder") && (v.placeholderElm.innerHTML = (0, h.attr)(y.element, "placeholder") || ""), y.e.fire("placeholder", v.placeholderElm.innerHTML), y.e.off(".placeholder").on("changePlace.placeholder", v.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder", v.toggle).on(window, "load", v.toggle), v.addNativeListeners(), v.toggle();
  11710. }, v;
  11711. }
  11712. return n.__extends(u, i), u.prototype.afterInit = function(v) {
  11713. var y = this;
  11714. v.o.showPlaceholder && (this.placeholderElm = v.c.fromHTML('<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">'.concat(v.i18n(v.o.placeholder), "</span>")), v.o.direction === "rtl" && (this.placeholderElm.style.right = "0px", this.placeholderElm.style.direction = "rtl"), v.e.on("readonly", function(g) {
  11715. g ? y.hide() : y.toggle();
  11716. }).on("changePlace", this.addEvents), this.addEvents());
  11717. }, u.prototype.show = function() {
  11718. var v = this.j;
  11719. if (!v.o.readonly) {
  11720. var y = 0, g = 0, b = v.s.current(), w = b && a.Dom.closest(b, a.Dom.isBlock, v.editor) || v.editor, C = v.ew.getComputedStyle(w), S = v.ew.getComputedStyle(v.editor);
  11721. v.workplace.appendChild(this.placeholderElm);
  11722. var j = v.editor.firstChild;
  11723. if (a.Dom.isElement(j) && !(0, d.isMarker)(j)) {
  11724. var E = v.ew.getComputedStyle(j);
  11725. y = parseInt(E.getPropertyValue("margin-top"), 10), g = parseInt(E.getPropertyValue("margin-left"), 10), this.placeholderElm.style.fontSize = parseInt(E.getPropertyValue("font-size"), 10) + "px", this.placeholderElm.style.lineHeight = E.getPropertyValue("line-height");
  11726. } else this.placeholderElm.style.fontSize = parseInt(C.getPropertyValue("font-size"), 10) + "px", this.placeholderElm.style.lineHeight = C.getPropertyValue("line-height");
  11727. (0, f.css)(this.placeholderElm, { display: "block", textAlign: C.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(C.getPropertyValue("margin-top"), 10), y), marginLeft: Math.max(parseInt(C.getPropertyValue("margin-left"), 10), g) });
  11728. }
  11729. }, u.prototype.hide = function() {
  11730. a.Dom.safeRemove(this.placeholderElm);
  11731. }, u.prototype.toggle = function() {
  11732. var v = this.j;
  11733. v.editor && !v.isInDestruct && (v.getRealMode() === m.MODE_WYSIWYG && o(v.editor) ? this.show() : this.hide());
  11734. }, u.prototype.beforeDestruct = function(v) {
  11735. this.hide(), v.e.off(".placeholder").off(window, "load", this.toggle);
  11736. }, n.__decorate([(0, p.debounce)(function(v) {
  11737. return v.defaultTimeout / 10;
  11738. }, !0)], u.prototype, "toggle", null), u;
  11739. }(s.Plugin);
  11740. t.placeholder = r, l.pluginSystem.add("placeholder", r);
  11741. }, 88297: function(_, t, e) {
  11742. Object.defineProperty(t, "__esModule", { value: !0 }), t.poweredByJodit = void 0;
  11743. var n = e(17332);
  11744. function m(h) {
  11745. var f = h.o;
  11746. f.hidePoweredByJodit || f.inline || !(f.showCharsCounter || f.showWordsCounter || f.showXPathInStatusbar) || h.hookStatus("ready", function() {
  11747. h.statusbar.append(h.create.fromHTML(`<a
  11748. tabindex="-1"
  11749. style="text-transform: uppercase"
  11750. class="jodit-status-bar-link"
  11751. target="_blank"
  11752. href="https://xdsoft.net/jodit/">
  11753. Powered by Jodit
  11754. </a>`), !0);
  11755. });
  11756. }
  11757. t.poweredByJodit = m, n.pluginSystem.add("poweredByJodit", m);
  11758. }, 72930: function(_, t, e) {
  11759. Object.defineProperty(t, "__esModule", { value: !0 }), t.preview = void 0, e(54860);
  11760. var n = e(93166), m = e(86893), h = e(21498), f = e(17332);
  11761. function d(a) {
  11762. a.registerButton({ name: "preview" }), a.registerCommand("preview", function(s, c, p) {
  11763. var l = a.dlg();
  11764. l.setSize(1024, 600).open("", a.i18n("Preview")).setModal(!0), (0, h.previewBox)(a, p, "px", l.getElm("content"));
  11765. });
  11766. }
  11767. n.Config.prototype.controls.preview = { icon: "eye", command: "preview", mode: m.MODE_SOURCE + m.MODE_WYSIWYG, tooltip: "Preview" }, t.preview = d, f.pluginSystem.add("preview", d);
  11768. }, 20137: function(_, t, e) {
  11769. Object.defineProperty(t, "__esModule", { value: !0 }), t.generateCriticalCSS = void 0;
  11770. var n = e(20255), m = e(1853);
  11771. t.generateCriticalCSS = function(h) {
  11772. var f = function(a, s) {
  11773. return s === void 0 && (s = a.ownerDocument.styleSheets), (0, m.toArray)(s).map(function(c) {
  11774. try {
  11775. return (0, m.toArray)(c.cssRules);
  11776. } catch (p) {
  11777. }
  11778. return [];
  11779. }).flat().filter(function(c) {
  11780. try {
  11781. return !!(c && a.matches(c.selectorText));
  11782. } catch (p) {
  11783. }
  11784. return !1;
  11785. });
  11786. }, d = function() {
  11787. function a(s, c, p) {
  11788. var l = this;
  11789. this.css = {};
  11790. var o = p || {}, r = function(i) {
  11791. var u = i.selectorText.split(",").map(function(b) {
  11792. return b.trim();
  11793. }).sort().join(",");
  11794. !l.css[u] && (l.css[u] = {});
  11795. for (var v = i.style.cssText.split(/;(?![A-Za-z0-9])/), y = 0; v.length > y; y++) if (v[y]) {
  11796. var g = v[y].split(":");
  11797. g[0] = g[0].trim(), g[1] = g[1].trim(), l.css[u][g[0]] = g[1].replace(/var\(([^)]+)\)/g, function(b, w) {
  11798. var C = n.__read(w.split(","), 2), S = C[0], j = C[1];
  11799. return (h.ew.getComputedStyle(h.editor).getPropertyValue(S.trim()) || j || b).trim();
  11800. });
  11801. }
  11802. };
  11803. (function() {
  11804. for (var i = s.innerHeight, u = c.createTreeWalker(h.editor, NodeFilter.SHOW_ELEMENT, function() {
  11805. return NodeFilter.FILTER_ACCEPT;
  11806. }); u.nextNode(); ) {
  11807. var v = u.currentNode;
  11808. if (i > v.getBoundingClientRect().top || o.scanFullPage) {
  11809. var y = f(v);
  11810. if (y) for (var g = 0; y.length > g; g++) r(y[g]);
  11811. }
  11812. }
  11813. })();
  11814. }
  11815. return a.prototype.generateCSS = function() {
  11816. var s = "";
  11817. for (var c in this.css) if (!/:not\(/.test(c)) {
  11818. for (var p in s += c + " { ", this.css[c]) s += p + ": " + this.css[c][p] + "; ";
  11819. s += `}
  11820. `;
  11821. }
  11822. return s;
  11823. }, a;
  11824. }();
  11825. try {
  11826. return new d(h.ew, h.ed, { scanFullPage: !0 }).generateCSS();
  11827. } catch (a) {
  11828. }
  11829. return "";
  11830. };
  11831. }, 51197: function(_, t, e) {
  11832. Object.defineProperty(t, "__esModule", { value: !0 }), t.print = void 0;
  11833. var n = e(93166), m = e(17332), h = e(64968), f = e(93351), d = e(86893), a = e(17332), s = e(77904), c = e(20137), p = e(21498);
  11834. function l(o) {
  11835. o.registerButton({ name: "print" });
  11836. }
  11837. s.Icon.set("print", e(22860)), n.Config.prototype.controls.print = { exec: function(o) {
  11838. var r = o.create.element("iframe");
  11839. Object.assign(r.style, { position: "fixed", right: 0, bottom: 0, width: 0, height: 0, border: 0 }), (0, m.getContainer)(o, n.Config).appendChild(r);
  11840. var i = function() {
  11841. o.e.off(o.ow, "mousemove", i), h.Dom.safeRemove(r);
  11842. }, u = r.contentWindow;
  11843. if (u) {
  11844. o.e.on(u, "onbeforeunload onafterprint", i).on(o.ow, "mousemove", i), o.o.iframe ? (o.e.fire("generateDocumentStructure.iframe", u.document, o), u.document.body.innerHTML = o.value) : (u.document.write('<!doctype html><html lang="' + (0, f.defaultLanguage)(o.o.language) + '"><head><title></title></head><style>' + (0, c.generateCriticalCSS)(o) + "</style><body></body></html>"), u.document.close(), (0, p.previewBox)(o, void 0, "px", u.document.body));
  11845. var v = u.document.createElement("style");
  11846. v.innerHTML = `@media print {
  11847. body {
  11848. -webkit-print-color-adjust: exact;
  11849. }
  11850. }`, u.document.head.appendChild(v), u.focus(), u.print();
  11851. }
  11852. }, mode: d.MODE_SOURCE + d.MODE_WYSIWYG, tooltip: "Print" }, t.print = l, a.pluginSystem.add("print", l);
  11853. }, 2327: function(_, t, e) {
  11854. Object.defineProperty(t, "__esModule", { value: !0 }), t.redoUndo = void 0;
  11855. var n = e(20255), m = e(93166), h = e(86893), f = e(85605), d = e(17332);
  11856. e(77904).Icon.set("redo", e(95600)).set("undo", e(76214)), m.Config.prototype.controls.redo = { mode: h.MODE_SPLIT, isDisabled: function(s) {
  11857. return !s.history.canRedo();
  11858. }, tooltip: "Redo" }, m.Config.prototype.controls.undo = { mode: h.MODE_SPLIT, isDisabled: function(s) {
  11859. return !s.history.canUndo();
  11860. }, tooltip: "Undo" };
  11861. var a = function(s) {
  11862. function c() {
  11863. var p = s !== null && s.apply(this, arguments) || this;
  11864. return p.buttons = [{ name: "undo", group: "history" }, { name: "redo", group: "history" }], p;
  11865. }
  11866. return n.__extends(c, s), c.prototype.beforeDestruct = function() {
  11867. }, c.prototype.afterInit = function(p) {
  11868. var l = function(o) {
  11869. return p.history[o](), !1;
  11870. };
  11871. p.registerCommand("redo", { exec: l, hotkeys: ["ctrl+y", "ctrl+shift+z", "cmd+y", "cmd+shift+z"] }), p.registerCommand("undo", { exec: l, hotkeys: ["ctrl+z", "cmd+z"] });
  11872. }, c;
  11873. }(f.Plugin);
  11874. t.redoUndo = a, d.pluginSystem.add("redoUndo", a);
  11875. }, 52444: function(_, t, e) {
  11876. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.tableAllowCellResize = !0;
  11877. }, 47608: function(_, t, e) {
  11878. Object.defineProperty(t, "__esModule", { value: !0 }), t.resizeCells = void 0;
  11879. var n = e(20255);
  11880. e(47818);
  11881. var m = e(86893), h = e(87837), f = e(40332), d = e(43441), a = e(24263), s = e(17332);
  11882. e(52444);
  11883. var c = "table_processor_observer-resize", p = function(l) {
  11884. function o() {
  11885. var r = l !== null && l.apply(this, arguments) || this;
  11886. return r.selectMode = !1, r.resizeDelta = 0, r.createResizeHandle = function() {
  11887. r.resizeHandler || (r.resizeHandler = r.j.c.div("jodit-table-resizer"), r.j.e.on(r.resizeHandler, "mousedown.table touchstart.table", r.onHandleMouseDown).on(r.resizeHandler, "mouseenter.table", function() {
  11888. r.j.async.clearTimeout(r.hideTimeout);
  11889. }));
  11890. }, r.hideTimeout = 0, r.drag = !1, r.minX = 0, r.maxX = 0, r.startX = 0, r;
  11891. }
  11892. return n.__extends(o, l), Object.defineProperty(o.prototype, "module", { get: function() {
  11893. return this.j.getInstance("Table", this.j.o);
  11894. }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "isRTL", { get: function() {
  11895. return this.j.o.direction === "rtl";
  11896. }, enumerable: !1, configurable: !0 }), o.prototype.showResizeHandle = function() {
  11897. this.j.async.clearTimeout(this.hideTimeout), this.j.workplace.appendChild(this.resizeHandler);
  11898. }, o.prototype.hideResizeHandle = function() {
  11899. var r = this;
  11900. this.hideTimeout = this.j.async.setTimeout(function() {
  11901. a.Dom.safeRemove(r.resizeHandler);
  11902. }, { timeout: this.j.defaultTimeout, label: "hideResizer" });
  11903. }, o.prototype.onHandleMouseDown = function(r) {
  11904. var i = this;
  11905. if (!this.j.isLocked) {
  11906. 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 = r.clientX, this.j.lock(c), this.resizeHandler.classList.add("jodit-table-resizer_moved");
  11907. var u, v = this.workTable.getBoundingClientRect();
  11908. if (this.minX = 0, this.maxX = 1e6, this.wholeTable != null) v = this.workTable.parentNode.getBoundingClientRect(), this.minX = v.left, this.maxX = this.minX + v.width;
  11909. else {
  11910. var y = h.Table.formalCoordinate(this.workTable, this.workCell, !0);
  11911. h.Table.formalMatrix(this.workTable, function(g, b, w) {
  11912. y[1] === w && (u = g.getBoundingClientRect(), i.minX = Math.max(u.left + m.NEARBY / 2, i.minX)), y[1] + (i.isRTL ? -1 : 1) === w && (u = g.getBoundingClientRect(), i.maxX = Math.min(u.left + u.width - m.NEARBY / 2, i.maxX));
  11913. });
  11914. }
  11915. return !1;
  11916. }
  11917. }, o.prototype.onMouseMove = function(r) {
  11918. if (this.drag) {
  11919. this.j.e.fire("closeAllPopups");
  11920. var i = r.clientX, u = (0, f.offset)(this.resizeHandler.parentNode || this.j.od.documentElement, this.j, this.j.od, !0);
  11921. this.minX > i && (i = this.minX), i > this.maxX && (i = this.maxX), this.resizeDelta = i - this.startX + (this.j.o.iframe ? u.left : 0), this.resizeHandler.style.left = i - (this.j.o.iframe ? 0 : u.left) + "px";
  11922. var v = this.j.s.sel;
  11923. v && v.removeAllRanges();
  11924. }
  11925. }, o.prototype.onMouseUp = function(r) {
  11926. (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 !== r.clientX && (this.wholeTable == null ? this.resizeColumns() : this.resizeTable()), this.j.synchronizeValues(), this.j.s.focus());
  11927. }, o.prototype.resizeColumns = function() {
  11928. var r = this.resizeDelta, i = [];
  11929. h.Table.setColumnWidthByDelta(this.workTable, h.Table.formalCoordinate(this.workTable, this.workCell, !0)[1], r, !0, i);
  11930. var u = (0, f.call)(this.isRTL ? a.Dom.prev : a.Dom.next, this.workCell, a.Dom.isCell, this.workCell.parentNode);
  11931. h.Table.setColumnWidthByDelta(this.workTable, h.Table.formalCoordinate(this.workTable, u)[1], -r, !1, i);
  11932. }, o.prototype.resizeTable = function() {
  11933. var r = this.resizeDelta * (this.isRTL ? -1 : 1), i = this.workTable.offsetWidth, u = (0, f.getContentWidth)(this.workTable.parentNode, this.j.ew), v = !this.wholeTable;
  11934. if (this.isRTL ? !v : v) this.workTable.style.width = (i + r) / u * 100 + "%";
  11935. else {
  11936. var y = this.isRTL ? "marginRight" : "marginLeft", g = parseInt(this.j.ew.getComputedStyle(this.workTable)[y] || "0", 10);
  11937. this.workTable.style.width = (i - r) / u * 100 + "%", this.workTable.style[y] = (g + r) / u * 100 + "%";
  11938. }
  11939. }, o.prototype.setWorkCell = function(r, i) {
  11940. i === void 0 && (i = null), this.wholeTable = i, this.workCell = r, this.workTable = a.Dom.up(r, function(u) {
  11941. return a.Dom.isTag(u, "table");
  11942. }, this.j.editor);
  11943. }, o.prototype.calcHandlePosition = function(r, i, u, v) {
  11944. u === void 0 && (u = 0), v === void 0 && (v = 0);
  11945. var y = (0, f.offset)(i, this.j, this.j.ed);
  11946. if (u > m.NEARBY && y.width - m.NEARBY > u) this.hideResizeHandle();
  11947. else {
  11948. var g = (0, f.offset)(this.j.workplace, this.j, this.j.od, !0), b = (0, f.offset)(r, this.j, this.j.ed);
  11949. if (this.resizeHandler.style.left = (u > m.NEARBY ? y.left + y.width : y.left) - g.left + v + "px", Object.assign(this.resizeHandler.style, { height: b.height + "px", top: b.top - g.top + "px" }), this.showResizeHandle(), u > m.NEARBY) {
  11950. var w = (0, f.call)(this.isRTL ? a.Dom.prev : a.Dom.next, i, a.Dom.isCell, i.parentNode);
  11951. this.setWorkCell(i, !!w && null);
  11952. } else {
  11953. var C = (0, f.call)(this.isRTL ? a.Dom.next : a.Dom.prev, i, a.Dom.isCell, i.parentNode);
  11954. this.setWorkCell(C || i, !C || null);
  11955. }
  11956. }
  11957. }, o.prototype.afterInit = function(r) {
  11958. var i = this;
  11959. r.o.tableAllowCellResize && r.e.off(this.j.ow, ".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells", function() {
  11960. (0, f.$$)("table", r.editor).forEach(i.observe);
  11961. }).on(this.j.ow, "scroll.resize-cells", function() {
  11962. if (i.drag) {
  11963. var u = a.Dom.up(i.workCell, function(y) {
  11964. return a.Dom.isTag(y, "table");
  11965. }, r.editor);
  11966. if (u) {
  11967. var v = u.getBoundingClientRect();
  11968. i.resizeHandler.style.top = v.top + "px";
  11969. }
  11970. }
  11971. }).on("beforeSetMode.resize-cells", function() {
  11972. i.module.getAllSelectedCells().forEach(function(u) {
  11973. i.module.removeSelection(u), h.Table.normalizeTable(a.Dom.closest(u, "table", r.editor));
  11974. });
  11975. });
  11976. }, o.prototype.observe = function(r) {
  11977. var i = this;
  11978. (0, f.dataBind)(r, c) || ((0, f.dataBind)(r, c, !0), this.j.e.on(r, "mouseleave.resize-cells", function(u) {
  11979. i.resizeHandler && i.resizeHandler !== u.relatedTarget && i.hideResizeHandle();
  11980. }).on(r, "mousemove.resize-cells touchmove.resize-cells", this.j.async.throttle(function(u) {
  11981. if (!i.j.isLocked) {
  11982. var v = a.Dom.up(u.target, a.Dom.isCell, r);
  11983. v && i.calcHandlePosition(r, v, u.offsetX);
  11984. }
  11985. }, { timeout: this.j.defaultTimeout })), this.createResizeHandle());
  11986. }, o.prototype.beforeDestruct = function(r) {
  11987. r.events && (r.e.off(this.j.ow, ".resize-cells"), r.e.off(".resize-cells"));
  11988. }, n.__decorate([d.autobind], o.prototype, "onHandleMouseDown", null), n.__decorate([d.autobind], o.prototype, "onMouseMove", null), n.__decorate([d.autobind], o.prototype, "onMouseUp", null), n.__decorate([d.autobind], o.prototype, "observe", null), o;
  11989. }(h.Plugin);
  11990. t.resizeCells = p, s.pluginSystem.add("resizeCells", p);
  11991. }, 91637: function(_, t, e) {
  11992. Object.defineProperty(t, "__esModule", { value: !0 });
  11993. var n = e(93166);
  11994. n.Config.prototype.allowResizeX = !1, n.Config.prototype.allowResizeY = !0;
  11995. }, 90523: function(_, t, e) {
  11996. Object.defineProperty(t, "__esModule", { value: !0 }), t.resizeHandler = void 0;
  11997. var n = e(20255), m = e(57549), h = e(64968), f = e(43441), d = e(2074), a = e(17332);
  11998. e(91637);
  11999. var s = function(c) {
  12000. function p() {
  12001. var l = c !== null && c.apply(this, arguments) || this;
  12002. return l.isResized = !1, l.start = { x: 0, y: 0, w: 0, h: 0 }, l.handle = l.j.c.div("jodit-editor__resize", d.Icon.get("resize_handler")), l;
  12003. }
  12004. return n.__extends(p, c), p.prototype.afterInit = function(l) {
  12005. var o = this, r = l.o, i = r.height, u = r.width, v = l.o.allowResizeY;
  12006. i === "auto" && u !== "auto" && (v = !1), i === "auto" && u === "auto" || !r.allowResizeX && !v || (l.statusbar.setMod("resize-handle", !0), l.e.on("toggleFullSize.resizeHandler", function() {
  12007. o.handle.style.display = l.isFullSize ? "none" : "block";
  12008. }).on(this.handle, "mousedown touchstart", this.onHandleResizeStart).on(l.ow, "mouseup touchend", this.onHandleResizeEnd), l.container.appendChild(this.handle));
  12009. }, p.prototype.onHandleResizeStart = function(l) {
  12010. this.isResized = !0, this.start.x = l.clientX, this.start.y = l.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), l.preventDefault();
  12011. }, p.prototype.onHandleResize = function(l) {
  12012. this.isResized && (this.j.o.allowResizeY && this.j.e.fire("setHeight", this.start.h + l.clientY - this.start.y), this.j.o.allowResizeX && this.j.e.fire("setWidth", this.start.w + l.clientX - this.start.x), this.j.e.fire("resize"));
  12013. }, p.prototype.onHandleResizeEnd = function() {
  12014. this.isResized && (this.isResized = !1, this.j.e.off(this.j.ow, "mousemove touchmove", this.onHandleResize), this.j.unlock());
  12015. }, p.prototype.beforeDestruct = function() {
  12016. h.Dom.safeRemove(this.handle), this.j.e.off(this.j.ow, "mouseup touchsend", this.onHandleResizeEnd);
  12017. }, p.requires = ["size"], n.__decorate([f.autobind], p);
  12018. }(m.Plugin);
  12019. t.resizeHandler = s, a.pluginSystem.add("resizeHandler", s);
  12020. }, 36560: function(_, t, e) {
  12021. Object.defineProperty(t, "__esModule", { value: !0 });
  12022. var n = e(93166);
  12023. n.Config.prototype.allowResizeTags = ["img", "iframe", "table", "jodit"], n.Config.prototype.resizer = { showSize: !0, hideSizeTimeout: 1e3, forImageChangeAttributes: !0, min_width: 10, min_height: 10, useAspectRatio: ["img"] };
  12024. }, 69257: function(_, t, e) {
  12025. Object.defineProperty(t, "__esModule", { value: !0 }), t.resizer = void 0;
  12026. var n = e(20255);
  12027. e(6316);
  12028. var m = e(86893), h = e(86893), f = e(24263), d = e(40332), a = e(85605), s = e(17332), c = e(43441), p = e(17332);
  12029. e(36560);
  12030. var l = "__jodit-resizer_binded", o = function(r) {
  12031. function i() {
  12032. var u = r !== null && r.apply(this, arguments) || this;
  12033. return u.LOCK_KEY = "resizer", u.element = null, u.isResizeMode = !1, u.isShown = !1, u.startX = 0, u.startY = 0, u.width = 0, u.height = 0, u.ratio = 0, u.rect = u.j.c.fromHTML('<div title="'.concat(u.j.i18n("Press Alt for custom resizing"), `" class="jodit-resizer">
  12034. <div class="jodit-resizer__top-left"></div>
  12035. <div class="jodit-resizer__top-right"></div>
  12036. <div class="jodit-resizer__bottom-right"></div>
  12037. <div class="jodit-resizer__bottom-left"></div>
  12038. <span>100x100</span>
  12039. </div>`)), u.sizeViewer = u.rect.getElementsByTagName("span")[0], u.pointerX = 0, u.pointerY = 0, u.isAltMode = !1, u.onClickElement = function(v) {
  12040. u.isResizeMode || u.element === v && u.isShown || (u.element = v, u.show(), f.Dom.isTag(u.element, "img") && !u.element.complete && u.j.e.one(u.element, "load", u.updateSize));
  12041. }, u.updateSize = function() {
  12042. if (!u.isInDestruct && u.isShown && u.element && u.rect) {
  12043. var v = u.getWorkplacePosition(), y = (0, d.offset)(u.element, u.j, u.j.ed), g = parseInt(u.rect.style.left || "0", 10), b = parseInt(u.rect.style.top || "0", 10), w = y.top - v.top, C = y.left - v.left;
  12044. b === w && g === C && u.rect.offsetWidth === u.element.offsetWidth && u.rect.offsetHeight === u.element.offsetHeight || ((0, d.css)(u.rect, { top: w, left: C, width: u.element.offsetWidth, height: u.element.offsetHeight }), u.j.events && (u.j.e.fire(u.element, "changesize"), isNaN(g) || u.j.e.fire("resize")));
  12045. }
  12046. }, u.hideSizeViewer = function() {
  12047. u.sizeViewer.style.opacity = "0";
  12048. }, u;
  12049. }
  12050. return n.__extends(i, r), i.prototype.afterInit = function(u) {
  12051. var v = this;
  12052. (0, d.$$)("div", this.rect).forEach(function(y) {
  12053. u.e.on(y, "mousedown.resizer touchstart.resizer", v.onStartResizing.bind(v, y));
  12054. }), s.eventEmitter.on("hideHelpers", this.hide), u.e.on("readonly", function(y) {
  12055. y && v.hide();
  12056. }).on("afterInit changePlace", this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer", function(y) {
  12057. var g = /<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;
  12058. g.test(y.value) && (y.value = y.value.replace(g, "$1"));
  12059. }).on("hideResizer", this.hide).on("change afterInit afterSetMode", this.onChangeEditor), this.addEventListeners(), this.onChangeEditor();
  12060. }, i.prototype.onEditorClick = function(u) {
  12061. for (var v = u.target, y = this.j, g = y.editor, b = y.options.allowResizeTags; v && v !== g; ) {
  12062. if (f.Dom.isTag(v, b)) return this.bind(v), void this.onClickElement(v);
  12063. v = v.parentNode;
  12064. }
  12065. }, i.prototype.addEventListeners = function() {
  12066. var u = this, v = this.j;
  12067. v.e.off(v.editor, ".resizer").off(v.ow, ".resizer").on(v.editor, "keydown.resizer", function(y) {
  12068. u.isShown && y.key === m.KEY_DELETE && u.element && !f.Dom.isTag(u.element, "table") && u.onDelete(y);
  12069. }).on(v.ow, "resize.resizer", this.updateSize).on("resize.resizer", this.updateSize).on([v.ow, v.editor], "scroll.resizer", function() {
  12070. u.isShown && !u.isResizeMode && u.hide();
  12071. }).on(v.ow, "keydown.resizer", this.onKeyDown).on(v.ow, "keyup.resizer", this.onKeyUp).on(v.ow, "mouseup.resizer touchend.resizer", this.onClickOutside);
  12072. }, i.prototype.onStartResizing = function(u, v) {
  12073. if (!this.element || !this.element.parentNode) return this.hide(), !1;
  12074. this.handle = u, v.cancelable && v.preventDefault(), v.stopImmediatePropagation(), this.width = this.element.offsetWidth, this.height = this.element.offsetHeight, this.ratio = this.width / this.height, this.isResizeMode = !0, this.startX = v.clientX, this.startY = v.clientY, this.pointerX = v.clientX, this.pointerY = v.clientY;
  12075. var y = this.j;
  12076. y.e.fire("hidePopup"), y.lock(this.LOCK_KEY), y.e.on(y.ow, "mousemove.resizer touchmove.resizer", this.onResize);
  12077. }, i.prototype.onEndResizing = function() {
  12078. var u = this.j;
  12079. u.unlock(), this.isResizeMode = !1, this.isAltMode = !1, u.synchronizeValues(), u.e.off(u.ow, "mousemove.resizer touchmove.resizer", this.onResize);
  12080. }, i.prototype.onResize = function(u) {
  12081. if (this.isResizeMode) {
  12082. if (!this.element) return;
  12083. this.pointerX = u.clientX, this.pointerY = u.clientY;
  12084. var v = void 0, y = void 0;
  12085. if (this.j.options.iframe) {
  12086. var g = this.getWorkplacePosition();
  12087. v = u.clientX + g.left - this.startX, y = u.clientY + g.top - this.startY;
  12088. } else v = this.pointerX - this.startX, y = this.pointerY - this.startY;
  12089. var b = this.handle.className, w = 0, C = 0, S = this.j.o.resizer.useAspectRatio;
  12090. !this.isAltMode && (S === !0 || Array.isArray(S) && f.Dom.isTag(this.element, S)) ? (v ? (w = this.width + (b.match(/left/) ? -1 : 1) * v, C = Math.round(w / this.ratio)) : (C = this.height + (b.match(/top/) ? -1 : 1) * y, w = Math.round(C * this.ratio)), w > (0, d.innerWidth)(this.j.editor, this.j.ow) && (w = (0, d.innerWidth)(this.j.editor, this.j.ow), C = Math.round(w / this.ratio))) : (w = this.width + (b.match(/left/) ? -1 : 1) * v, C = this.height + (b.match(/top/) ? -1 : 1) * y), w > this.j.o.resizer.min_width && this.applySize(this.element, "width", this.rect.parentNode.offsetWidth > w ? w : "100%"), C > this.j.o.resizer.min_height && this.applySize(this.element, "height", C), this.updateSize(), this.showSizeViewer(this.element.offsetWidth, this.element.offsetHeight), u.stopImmediatePropagation();
  12091. }
  12092. }, i.prototype.onKeyDown = function(u) {
  12093. this.isAltMode = u.key === h.KEY_ALT, !this.isAltMode && this.isResizeMode && this.onEndResizing();
  12094. }, i.prototype.onKeyUp = function() {
  12095. 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;
  12096. }, i.prototype.onClickOutside = function(u) {
  12097. if (this.isShown) {
  12098. if (!this.isResizeMode) return this.hide();
  12099. u.stopImmediatePropagation(), this.onEndResizing();
  12100. }
  12101. }, i.prototype.getWorkplacePosition = function() {
  12102. return (0, d.offset)(this.rect.parentNode || this.j.od.documentElement, this.j, this.j.od, !0);
  12103. }, i.prototype.applySize = function(u, v, y) {
  12104. var g = f.Dom.isImage(u) && this.j.o.resizer.forImageChangeAttributes;
  12105. g && (0, d.attr)(u, v, y), g && !u.style[v] || (0, d.css)(u, v, y);
  12106. }, i.prototype.onDelete = function(u) {
  12107. this.element && (this.element.tagName !== "JODIT" ? this.j.s.select(this.element) : (f.Dom.safeRemove(this.element), this.hide(), u.preventDefault()));
  12108. }, i.prototype.onChangeEditor = function() {
  12109. this.isShown && (this.element && this.element.parentNode ? this.updateSize() : this.hide()), (0, d.$$)("iframe", this.j.editor).forEach(this.bind);
  12110. }, i.prototype.bind = function(u) {
  12111. var v = this;
  12112. if (f.Dom.isHTMLElement(u) && this.j.o.allowResizeTags.includes(u.tagName.toLowerCase()) && !(0, d.dataBind)(u, l)) {
  12113. var y;
  12114. if ((0, d.dataBind)(u, l, !0), f.Dom.isTag(u, "iframe")) {
  12115. var g = u;
  12116. f.Dom.isHTMLElement(u.parentNode) && (0, d.attr)(u.parentNode, "-jodit_iframe_wrapper") ? u = u.parentNode : (y = this.j.createInside.element("jodit", { "data-jodit-temp": 1, contenteditable: !1, draggable: !0, "data-jodit_iframe_wrapper": 1 }), (0, d.attr)(y, "style", (0, d.attr)(u, "style")), (0, d.css)(y, { display: u.style.display === "inline-block" ? "inline-block" : "block", width: u.offsetWidth, height: u.offsetHeight }), u.parentNode && u.parentNode.insertBefore(y, u), y.appendChild(u), this.j.e.on(y, "click", function() {
  12117. (0, d.attr)(y, "data-jodit-wrapper_active", !0);
  12118. }), u = y), this.j.e.off(u, "mousedown.select touchstart.select").on(u, "mousedown.select touchstart.select", function() {
  12119. v.j.s.select(u);
  12120. }).off(u, "changesize").on(u, "changesize", function() {
  12121. g.setAttribute("width", u.offsetWidth + "px"), g.setAttribute("height", u.offsetHeight + "px");
  12122. });
  12123. }
  12124. this.j.e.on(u, "dragstart", this.hide), h.IS_IE && this.j.e.on(u, "mousedown", function(b) {
  12125. f.Dom.isTag(u, "img") && b.preventDefault();
  12126. });
  12127. }
  12128. }, i.prototype.showSizeViewer = function(u, v) {
  12129. this.j.o.resizer.showSize && (this.sizeViewer.offsetWidth > u || this.sizeViewer.offsetHeight > v ? this.hideSizeViewer() : (this.sizeViewer.style.opacity = "1", this.sizeViewer.textContent = "".concat(u, " x ").concat(v), this.j.async.setTimeout(this.hideSizeViewer, { timeout: this.j.o.resizer.hideSizeTimeout, label: "hideSizeViewer" })));
  12130. }, i.prototype.show = function() {
  12131. this.j.o.readonly || this.isShown || (this.isShown = !0, this.rect.parentNode || ((0, d.markOwner)(this.j, this.rect), this.j.workplace.appendChild(this.rect)), this.j.isFullSize && (this.rect.style.zIndex = (0, d.css)(this.j.container, "zIndex").toString()), this.updateSize());
  12132. }, i.prototype.hide = function() {
  12133. this.isResizeMode || (this.isResizeMode = !1, this.isShown = !1, this.element = null, f.Dom.safeRemove(this.rect), (0, d.$$)("[data-jodit-wrapper_active='true']", this.j.editor).forEach(function(u) {
  12134. return (0, d.attr)(u, "data-jodit-wrapper_active", !1);
  12135. }));
  12136. }, i.prototype.beforeDestruct = function(u) {
  12137. this.hide(), s.eventEmitter.off("hideHelpers", this.hide), u.e.off(this.j.ow, ".resizer").off(".resizer");
  12138. }, n.__decorate([(0, c.watch)(":click")], i.prototype, "onEditorClick", null), n.__decorate([c.autobind], i.prototype, "onStartResizing", null), n.__decorate([c.autobind], i.prototype, "onEndResizing", null), n.__decorate([c.autobind], i.prototype, "onResize", null), n.__decorate([c.autobind], i.prototype, "onKeyDown", null), n.__decorate([c.autobind], i.prototype, "onKeyUp", null), n.__decorate([c.autobind], i.prototype, "onClickOutside", null), n.__decorate([(0, c.debounce)()], i.prototype, "onChangeEditor", null), n.__decorate([c.autobind], i.prototype, "bind", null), n.__decorate([c.autobind], i.prototype, "hide", null), i;
  12139. }(a.Plugin);
  12140. t.resizer = o, p.pluginSystem.add("resizer", o);
  12141. }, 61975: function(_, t, e) {
  12142. Object.defineProperty(t, "__esModule", { value: !0 });
  12143. var n = e(93166), m = e(77904);
  12144. e(59535), n.Config.prototype.useSearch = !0, n.Config.prototype.search = { lazyIdleTimeout: 0 }, m.Icon.set("search", e(41197)), n.Config.prototype.controls.find = { tooltip: "Find", icon: "search", exec: function(h, f, d) {
  12145. var a = d.control;
  12146. switch (a.args && a.args[0]) {
  12147. case "findPrevious":
  12148. h.e.fire("searchPrevious");
  12149. break;
  12150. case "findNext":
  12151. h.e.fire("searchNext");
  12152. break;
  12153. case "replace":
  12154. h.execCommand("openReplaceDialog");
  12155. break;
  12156. default:
  12157. h.execCommand("openSearchDialog");
  12158. }
  12159. }, list: { search: "Find", findNext: "Find Next", findPrevious: "Find Previous", replace: "Replace" }, childTemplate: function(h, f, d) {
  12160. return d;
  12161. } };
  12162. }, 73934: function(_, t, e) {
  12163. Object.defineProperty(t, "__esModule", { value: !0 });
  12164. var n = e(20255);
  12165. n.__exportStar(e(18562), t), n.__exportStar(e(3928), t);
  12166. }, 18562: function(_, t, e) {
  12167. Object.defineProperty(t, "__esModule", { value: !0 }), t.SentenceFinder = void 0;
  12168. var n = e(20255), m = e(93163), h = function() {
  12169. function f(d) {
  12170. d === void 0 && (d = m.fuzzySearchIndex), this.searchIndex = d, this.queue = [], this.value = "";
  12171. }
  12172. return f.prototype.add = function(d) {
  12173. var a, s = ((a = d.nodeValue) !== null && a !== void 0 ? a : "").toLowerCase();
  12174. if (s.length) {
  12175. var c = this.value.length;
  12176. this.queue.push({ startIndex: c, endIndex: c + s.length, node: d }), this.value += s;
  12177. }
  12178. }, f.prototype.ranges = function(d, a) {
  12179. var s;
  12180. a === void 0 && (a = 0);
  12181. var c = [], p = a, l = 0, o = 0;
  12182. do
  12183. if (l = (s = n.__read(this.searchIndex(d, this.value, p), 2))[1], (p = s[0]) !== -1) {
  12184. for (var r = void 0, i = 0, u = void 0, v = 0, y = o; this.queue.length > y; y += 1) if (!r && this.queue[y].endIndex > p && (r = this.queue[y].node, i = p - this.queue[y].startIndex), r && this.queue[y].endIndex >= p + l) {
  12185. u = this.queue[y].node, v = p + l - this.queue[y].startIndex, o = y;
  12186. break;
  12187. }
  12188. r && u && c.push({ startContainer: r, startOffset: i, endContainer: u, endOffset: v }), p += l;
  12189. }
  12190. while (p !== -1);
  12191. return c.length === 0 ? null : c;
  12192. }, f;
  12193. }();
  12194. t.SentenceFinder = h;
  12195. }, 3928: function(_, t, e) {
  12196. Object.defineProperty(t, "__esModule", { value: !0 }), t.isSelectionWrapper = t.clearSelectionWrappersFromHTML = t.clearSelectionWrappers = t.getSelectionWrappers = t.wrapRangesTextsInTmpSpan = void 0;
  12197. var n = e(20255), m = e(24263), h = e(54188), f = "jd-tmp-selection";
  12198. function d(s) {
  12199. return (0, h.$$)("[".concat(f, "]"), s);
  12200. }
  12201. function a(s) {
  12202. return m.Dom.isElement(s) && s.hasAttribute(f);
  12203. }
  12204. t.wrapRangesTextsInTmpSpan = function(s, c, p, l) {
  12205. var o, r, i;
  12206. if (s.startContainer.nodeValue != null && s.endContainer.nodeValue != null) {
  12207. var u = p.element("span", ((o = {})[f] = !0, o));
  12208. m.Dom.markTemporary(u);
  12209. var v = s.startContainer.nodeValue, y = 0;
  12210. if (s.startOffset !== 0) {
  12211. var g = p.text(v.substring(0, s.startOffset));
  12212. s.startContainer.nodeValue = v.substring(s.startOffset), m.Dom.before(s.startContainer, g), s.startContainer === s.endContainer && (s.endOffset -= y = s.startOffset), s.startOffset = 0;
  12213. }
  12214. var b = s.endContainer.nodeValue;
  12215. if (s.endOffset !== b.length) {
  12216. g = p.text(b.substring(s.endOffset)), s.endContainer.nodeValue = b.substring(0, s.endOffset), m.Dom.after(s.endContainer, g);
  12217. try {
  12218. for (var w = n.__values(c), C = w.next(); !C.done; C = w.next()) {
  12219. var S = C.value;
  12220. if (S.startContainer !== s.endContainer) break;
  12221. S.startContainer = g, S.startOffset = S.startOffset - s.endOffset - y, S.endContainer === s.endContainer && (S.endContainer = g, S.endOffset = S.endOffset - s.endOffset - y);
  12222. }
  12223. } catch (x) {
  12224. r = { error: x };
  12225. } finally {
  12226. try {
  12227. C && !C.done && (i = w.return) && i.call(w);
  12228. } finally {
  12229. if (r) throw r.error;
  12230. }
  12231. }
  12232. s.endOffset = s.endContainer.nodeValue.length;
  12233. }
  12234. var j = s.startContainer;
  12235. do {
  12236. if (!j || (m.Dom.isText(j) && !a(j.parentNode) && m.Dom.wrap(j, u.cloneNode(), p), j === s.endContainer)) break;
  12237. var E = j.firstChild || j.nextSibling;
  12238. if (!E) {
  12239. for (; j && !j.nextSibling && j !== l; ) j = j.parentNode;
  12240. E = j == null ? void 0 : j.nextSibling;
  12241. }
  12242. j = E;
  12243. } while (j && j !== l);
  12244. }
  12245. }, t.getSelectionWrappers = d, t.clearSelectionWrappers = function(s) {
  12246. d(s).forEach(function(c) {
  12247. return m.Dom.unwrap(c);
  12248. });
  12249. }, t.clearSelectionWrappersFromHTML = function(s) {
  12250. return s.replace(RegExp("<span[^>]+".concat(f, "[^>]+>(.*?)</span>"), "g"), "$1");
  12251. }, t.isSelectionWrapper = a;
  12252. }, 59535: function() {
  12253. }, 14889: function(_, t, e) {
  12254. Object.defineProperty(t, "__esModule", { value: !0 }), t.search = void 0;
  12255. var n = e(20255), m = e(64968), h = e(57549), f = e(43441), d = e(72235), a = e(40332), s = e(17332), c = e(73934);
  12256. e(61975);
  12257. var p = function(l) {
  12258. function o() {
  12259. var r = l !== null && l.apply(this, arguments) || this;
  12260. return r.buttons = [{ name: "find", group: "search" }], r.previousQuery = "", r.drawPromise = null, r.walker = null, r.walkerCount = null, r.cache = {}, r.wrapFrameRequest = 0, r;
  12261. }
  12262. return n.__extends(o, l), Object.defineProperty(o.prototype, "ui", { get: function() {
  12263. return new d.UISearch(this.j);
  12264. }, enumerable: !1, configurable: !0 }), o.prototype.updateCounters = function() {
  12265. return n.__awaiter(this, void 0, Promise, function() {
  12266. var r;
  12267. return n.__generator(this, function(i) {
  12268. switch (i.label) {
  12269. case 0:
  12270. return this.ui.isOpened ? (r = this.ui, [4, this.calcCounts(this.ui.query)]) : [2];
  12271. case 1:
  12272. return r.count = i.sent(), [2];
  12273. }
  12274. });
  12275. });
  12276. }, o.prototype.onPressReplaceButton = function() {
  12277. this.findAndReplace(this.ui.query), this.updateCounters();
  12278. }, o.prototype.tryScrollToElement = function(r) {
  12279. var i = m.Dom.closest(r, m.Dom.isElement, this.j.editor);
  12280. i || (i = m.Dom.prev(r, m.Dom.isElement, this.j.editor)), i && i !== this.j.editor && (0, a.scrollIntoViewIfNeeded)(i, this.j.editor, this.j.ed);
  12281. }, o.prototype.calcCounts = function(r) {
  12282. return n.__awaiter(this, void 0, Promise, function() {
  12283. return n.__generator(this, function(i) {
  12284. switch (i.label) {
  12285. case 0:
  12286. return [4, this.findQueryBounds(r, "walkerCount")];
  12287. case 1:
  12288. return [2, i.sent().length];
  12289. }
  12290. });
  12291. });
  12292. }, o.prototype.findQueryBounds = function(r, i) {
  12293. return n.__awaiter(this, void 0, Promise, function() {
  12294. var u;
  12295. return n.__generator(this, function(v) {
  12296. return (u = this[i]) && u.break(), u = new m.LazyWalker(this.j.async, { timeout: this.j.o.search.lazyIdleTimeout }), this[i] = u, [2, this.find(u, r).catch(function(y) {
  12297. return [];
  12298. })];
  12299. });
  12300. });
  12301. }, o.prototype.findAndReplace = function(r) {
  12302. return n.__awaiter(this, void 0, Promise, function() {
  12303. var i, u, v, y, g;
  12304. return n.__generator(this, function(b) {
  12305. switch (b.label) {
  12306. case 0:
  12307. return [4, this.findQueryBounds(r, "walker")];
  12308. case 1:
  12309. if (!(i = b.sent()).length) return [2, !1];
  12310. if ((u = this.findCurrentIndexInRanges(i, this.j.s.range)) === -1 && (u = 0), !(v = i[u])) return [3, 6];
  12311. b.label = 2;
  12312. case 2:
  12313. return b.trys.push([2, , 4, 5]), (y = this.j.ed.createRange()).setStart(v.startContainer, v.startOffset), y.setEnd(v.endContainer, v.endOffset), y.deleteContents(), g = this.j.createInside.text(this.ui.replace), m.Dom.safeInsertNode(y, g), (0, c.clearSelectionWrappers)(this.j.editor), this.j.s.setCursorAfter(g), this.tryScrollToElement(g), this.cache = {}, this.ui.currentIndex = u, [4, this.findAndSelect(r, !0).catch(function(w) {
  12314. return null;
  12315. })];
  12316. case 3:
  12317. return b.sent(), [3, 5];
  12318. case 4:
  12319. return this.j.synchronizeValues(), [7];
  12320. case 5:
  12321. return this.j.e.fire("afterFindAndReplace"), [2, !0];
  12322. case 6:
  12323. return [2, !1];
  12324. }
  12325. });
  12326. });
  12327. }, o.prototype.findAndSelect = function(r, i) {
  12328. var u;
  12329. return n.__awaiter(this, void 0, Promise, function() {
  12330. var v, y, g, b;
  12331. return n.__generator(this, function(w) {
  12332. switch (w.label) {
  12333. case 0:
  12334. return [4, this.findQueryBounds(r, "walker")];
  12335. case 1:
  12336. if (!(v = w.sent()).length) return [2, !1];
  12337. if (this.previousQuery === r && (0, c.getSelectionWrappers)(this.j.editor).length || ((u = this.drawPromise) === null || u === void 0 || u.rejectCallback(), this.j.async.cancelAnimationFrame(this.wrapFrameRequest), (0, c.clearSelectionWrappers)(this.j.editor), this.drawPromise = this.drawSelectionRanges(v)), this.previousQuery = r, this.ui.currentIndex = (y = (y = this.ui.currentIndex - 1) == -1 ? 0 : i ? y === v.length - 1 ? 0 : y + 1 : y === 0 ? v.length - 1 : y - 1) + 1, !(g = v[y])) return [3, 4];
  12338. b = this.j.ed.createRange();
  12339. try {
  12340. b.setStart(g.startContainer, g.startOffset), b.setEnd(g.endContainer, g.endOffset), this.j.s.selectRange(b);
  12341. } catch (C) {
  12342. }
  12343. return this.tryScrollToElement(g.startContainer), [4, this.updateCounters()];
  12344. case 2:
  12345. return w.sent(), [4, this.drawPromise];
  12346. case 3:
  12347. return w.sent(), this.j.e.fire("afterFindAndSelect"), [2, !0];
  12348. case 4:
  12349. return [2, !1];
  12350. }
  12351. });
  12352. });
  12353. }, o.prototype.findCurrentIndexInRanges = function(r, i) {
  12354. return r.findIndex(function(u) {
  12355. return u.startContainer === i.startContainer && u.startOffset === i.startOffset && u.endContainer === i.startContainer && u.endOffset === i.endOffset;
  12356. });
  12357. }, o.prototype.isValidCache = function(r) {
  12358. return n.__awaiter(this, void 0, Promise, function() {
  12359. return n.__generator(this, function(i) {
  12360. switch (i.label) {
  12361. case 0:
  12362. return [4, r];
  12363. case 1:
  12364. return [2, i.sent().every(function(u) {
  12365. var v, y, g, b;
  12366. return u.startContainer.isConnected && u.startOffset <= ((y = (v = u.startContainer.nodeValue) === null || v === void 0 ? void 0 : v.length) !== null && y !== void 0 ? y : 0) && u.endContainer.isConnected && u.endOffset <= ((b = (g = u.endContainer.nodeValue) === null || g === void 0 ? void 0 : g.length) !== null && b !== void 0 ? b : 0);
  12367. })];
  12368. }
  12369. });
  12370. });
  12371. }, o.prototype.find = function(r, i) {
  12372. return n.__awaiter(this, void 0, Promise, function() {
  12373. var u, v, y = this;
  12374. return n.__generator(this, function(g) {
  12375. switch (g.label) {
  12376. case 0:
  12377. return i.length ? (v = u = this.cache[i]) ? [4, this.isValidCache(u)] : [3, 2] : [2, []];
  12378. case 1:
  12379. v = g.sent(), g.label = 2;
  12380. case 2:
  12381. return v ? [2, u] : (this.cache[i] = this.j.async.promise(function(b) {
  12382. var w = new c.SentenceFinder(y.j.o.search.fuzzySearch);
  12383. r.on("break", function() {
  12384. b([]);
  12385. }).on("visit", function(C) {
  12386. return m.Dom.isText(C) && w.add(C), !1;
  12387. }).on("end", function() {
  12388. var C;
  12389. b((C = w.ranges(i)) !== null && C !== void 0 ? C : []);
  12390. }).setWork(y.j.editor);
  12391. }), [2, this.cache[i]]);
  12392. }
  12393. });
  12394. });
  12395. }, o.prototype.drawSelectionRanges = function(r) {
  12396. var i = this, u = this.j, v = u.async, y = u.createInside, g = u.editor;
  12397. v.cancelAnimationFrame(this.wrapFrameRequest);
  12398. var b, w = n.__spreadArray([], n.__read(r), !1), C = 0;
  12399. return v.promise(function(S) {
  12400. var j = function() {
  12401. do
  12402. (b = w.shift()) && (0, c.wrapRangesTextsInTmpSpan)(b, w, y, g), C += 1;
  12403. while (b && 5 >= C);
  12404. w.length ? i.wrapFrameRequest = v.requestAnimationFrame(j) : S();
  12405. };
  12406. j();
  12407. });
  12408. }, o.prototype.onAfterGetValueFromEditor = function(r) {
  12409. r.value = (0, c.clearSelectionWrappersFromHTML)(r.value);
  12410. }, o.prototype.afterInit = function(r) {
  12411. var i = this;
  12412. if (r.o.useSearch) {
  12413. var u = this;
  12414. r.e.on("beforeSetMode.search", function() {
  12415. i.ui.close();
  12416. }).on(this.ui, "afterClose", function() {
  12417. (0, c.clearSelectionWrappers)(r.editor), i.ui.currentIndex = 0, i.ui.count = 0, i.cache = {};
  12418. }).on("click", function() {
  12419. i.ui.currentIndex = 0, (0, c.clearSelectionWrappers)(r.editor);
  12420. }).on("change.search", function() {
  12421. i.cache = {};
  12422. }).on("keydown.search mousedown.search", r.async.debounce(function() {
  12423. i.ui.selInfo && (r.s.removeMarkers(), i.ui.selInfo = null), i.ui.isOpened && i.updateCounters();
  12424. }, r.defaultTimeout)).on("searchNext.search searchPrevious.search", function() {
  12425. return i.ui.isOpened || i.ui.open(), u.findAndSelect(u.ui.query, r.e.current === "searchNext").catch(function(v) {
  12426. });
  12427. }).on("search.search", function(v, y) {
  12428. return y === void 0 && (y = !0), i.ui.currentIndex = 0, u.findAndSelect(v || "", y).catch(function(g) {
  12429. });
  12430. }), r.registerCommand("search", { exec: function(v, y, g) {
  12431. return g === void 0 && (g = !0), y && u.findAndSelect(y, g).catch(function(b) {
  12432. }), !1;
  12433. } }).registerCommand("openSearchDialog", { exec: function(v, y) {
  12434. return u.ui.open(y), !1;
  12435. }, hotkeys: ["ctrl+f", "cmd+f"] }).registerCommand("openReplaceDialog", { exec: function(v, y, g) {
  12436. return r.o.readonly || u.ui.open(y, g, !0), !1;
  12437. }, hotkeys: ["ctrl+h", "cmd+h"] });
  12438. }
  12439. }, o.prototype.beforeDestruct = function(r) {
  12440. this.ui.destruct(), r.e.off(".search");
  12441. }, n.__decorate([f.cache], o.prototype, "ui", null), n.__decorate([(0, f.watch)("ui:needUpdateCounters")], o.prototype, "updateCounters", null), n.__decorate([(0, f.watch)("ui:pressReplaceButton")], o.prototype, "onPressReplaceButton", null), n.__decorate([f.autobind], o.prototype, "findQueryBounds", null), n.__decorate([f.autobind], o.prototype, "findAndReplace", null), n.__decorate([f.autobind], o.prototype, "findAndSelect", null), n.__decorate([f.autobind], o.prototype, "find", null), n.__decorate([(0, f.watch)(":afterGetValueFromEditor")], o.prototype, "onAfterGetValueFromEditor", null), o;
  12442. }(h.Plugin);
  12443. t.search = p, s.pluginSystem.add("search", p);
  12444. }, 72235: function(_, t, e) {
  12445. Object.defineProperty(t, "__esModule", { value: !0 }), t.UISearch = void 0;
  12446. var n = e(20255);
  12447. e(88582);
  12448. var m = e(2074), h = e(40332), f = e(86893), d = e(86893), a = e(43441), s = e(64968), c = function(p) {
  12449. function l(o) {
  12450. var r = p.call(this, o) || this;
  12451. r.selInfo = null, r._currentIndex = 0, r.isOpened = !1;
  12452. var i = (0, h.refs)(r.container), u = i.replace, v = i.cancel, y = i.next, g = i.prev, b = i.replaceBtn, w = i.current, C = i.count;
  12453. return r.queryInput = i.query, r.replaceInput = u, r.closeButton = v, r.replaceButton = b, r.currentBox = w, r.countBox = C, o.e.on(r.closeButton, "pointerdown", function() {
  12454. return r.close(), !1;
  12455. }).on(r.queryInput, "input", function() {
  12456. r.currentIndex = 0;
  12457. }).on(r.queryInput, "pointerdown", function() {
  12458. o.s.isFocused() && (o.s.removeMarkers(), r.selInfo = o.s.save());
  12459. }).on(r.replaceButton, "pointerdown", function() {
  12460. return o.e.fire(r, "pressReplaceButton"), !1;
  12461. }).on(y, "pointerdown", function() {
  12462. return o.e.fire("searchNext"), !1;
  12463. }).on(g, "pointerdown", function() {
  12464. return o.e.fire("searchPrevious"), !1;
  12465. }).on(r.queryInput, "input", function() {
  12466. r.setMod("empty-query", !(0, h.trim)(r.queryInput.value).length);
  12467. }).on(r.queryInput, "keydown", r.j.async.debounce(function(S) {
  12468. S.key === d.KEY_ENTER ? (S.preventDefault(), S.stopImmediatePropagation(), o.e.fire("searchNext") && r.close()) : o.e.fire(r, "needUpdateCounters");
  12469. }, r.j.defaultTimeout)), r;
  12470. }
  12471. return n.__extends(l, p), l.prototype.className = function() {
  12472. return "UISearch";
  12473. }, l.prototype.render = function() {
  12474. return `<div>
  12475. <div class="&__box">
  12476. <div class="&__inputs">
  12477. <input data-ref="query" tabindex="0" placeholder="~Search for~" type="text"/>
  12478. <input data-ref="replace" tabindex="0" placeholder="~Replace with~" type="text"/>
  12479. </div>
  12480. <div class="&__counts">
  12481. <span data-ref="counter-box">
  12482. <span data-ref="current">0</span><span>/</span><span data-ref="count">0</span>
  12483. </span>
  12484. </div>
  12485. <div class="&__buttons">
  12486. <button data-ref="next" tabindex="0" type="button">`.concat(m.Icon.get("angle-down"), `</button>
  12487. <button data-ref="prev" tabindex="0" type="button">`).concat(m.Icon.get("angle-up"), `</button>
  12488. <button data-ref="cancel" tabindex="0" type="button">`).concat(m.Icon.get("cancel"), `</button>
  12489. <button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>
  12490. </div>
  12491. </div>
  12492. </div>`);
  12493. }, Object.defineProperty(l.prototype, "currentIndex", { get: function() {
  12494. return this._currentIndex;
  12495. }, set: function(o) {
  12496. this._currentIndex = o, this.currentBox.innerText = o.toString();
  12497. }, enumerable: !1, configurable: !0 }), Object.defineProperty(l.prototype, "count", { set: function(o) {
  12498. this.countBox.innerText = o.toString();
  12499. }, enumerable: !1, configurable: !0 }), Object.defineProperty(l.prototype, "query", { get: function() {
  12500. return this.queryInput.value;
  12501. }, enumerable: !1, configurable: !0 }), Object.defineProperty(l.prototype, "replace", { get: function() {
  12502. return this.replaceInput.value;
  12503. }, enumerable: !1, configurable: !0 }), l.prototype.onEditorKeyDown = function(o) {
  12504. if (this.isOpened) {
  12505. var r = this.j;
  12506. if (r.getRealMode() === f.MODE_WYSIWYG) switch (o.key) {
  12507. case d.KEY_ESC:
  12508. this.close();
  12509. break;
  12510. case d.KEY_F3:
  12511. this.queryInput.value && (r.e.fire(o.shiftKey ? "searchPrevious" : "searchNext"), o.preventDefault());
  12512. }
  12513. }
  12514. }, l.prototype.open = function(o, r, i) {
  12515. i === void 0 && (i = !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", i);
  12516. var u = o != null ? o : (this.j.s.sel || "").toString();
  12517. u && (this.queryInput.value = u), r && (this.replaceInput.value = r), this.setMod("empty-query", !u.length), this.j.e.fire(this, "needUpdateCounters"), u ? this.queryInput.select() : this.queryInput.focus();
  12518. }, l.prototype.close = function() {
  12519. this.isOpened && (this.j.s.restore(), s.Dom.safeRemove(this.container), this.isOpened = !1, this.j.e.fire(this, "afterClose"));
  12520. }, l.prototype.calcSticky = function(o) {
  12521. if (this.isOpened) if (this.setMod("sticky", o), o) {
  12522. var r = (0, h.position)(this.j.toolbarContainer);
  12523. (0, h.css)(this.container, { top: r.top + r.height, left: r.left + r.width });
  12524. } else (0, h.css)(this.container, { top: null, left: null });
  12525. }, n.__decorate([(0, a.watch)([":keydown", "queryInput:keydown"])], l.prototype, "onEditorKeyDown", null), n.__decorate([a.autobind], l.prototype, "open", null), n.__decorate([a.autobind], l.prototype, "close", null), n.__decorate([(0, a.watch)(":toggleSticky")], l.prototype, "calcSticky", null), n.__decorate([a.component], l);
  12526. }(m.UIElement);
  12527. t.UISearch = c;
  12528. }, 14189: function(_, t, e) {
  12529. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.tableAllowCellSelection = !0;
  12530. }, 37458: function(_, t, e) {
  12531. Object.defineProperty(t, "__esModule", { value: !0 }), t.selectCells = void 0;
  12532. var n = e(20255), m = e(57549), h = e(87837), f = e(24263), d = e(40332), a = e(86893), s = e(43441), c = e(17332);
  12533. e(14189);
  12534. var p = "table_processor_observer", l = "onMoveTableSelectCell", o = function(r) {
  12535. function i() {
  12536. var u = r !== null && r.apply(this, arguments) || this;
  12537. return u.requires = ["select"], u.selectedCell = null, u.isSelectionMode = !1, u;
  12538. }
  12539. return n.__extends(i, r), Object.defineProperty(i.prototype, "module", { get: function() {
  12540. return this.j.getInstance("Table", this.j.o);
  12541. }, enumerable: !1, configurable: !0 }), i.prototype.afterInit = function(u) {
  12542. var v = this;
  12543. u.o.tableAllowCellSelection && u.e.on("keydown.select-cells", function(y) {
  12544. y.key === a.KEY_TAB && v.unselectCells();
  12545. }).on("beforeCommand.select-cells", this.onExecCommand).on("afterCommand.select-cells", this.onAfterCommand).on(["clickEditor", "mousedownTd", "mousedownTh", "touchstartTd", "touchstartTh"].map(function(y) {
  12546. return y + ".select-cells";
  12547. }).join(" "), this.onStartSelection).on("clickTr clickTbody", function() {
  12548. var y, g = v.module.getAllSelectedCells().length;
  12549. if (g) return g > 1 && ((y = v.j.s.sel) === null || y === void 0 || y.removeAllRanges()), !1;
  12550. });
  12551. }, i.prototype.onStartSelection = function(u) {
  12552. if (!this.j.o.readonly && (this.unselectCells(), u !== this.j.editor)) {
  12553. var v = f.Dom.closest(u, "table", this.j.editor);
  12554. if (u && v) return u.firstChild || u.appendChild(this.j.createInside.element("br")), this.isSelectionMode = !0, this.selectedCell = u, this.module.addSelection(u), this.j.e.on(v, "mousemove.select-cells touchmove.select-cells", this.j.async.throttle(this.onMove.bind(this, v), { label: l, timeout: this.j.defaultTimeout / 2 })).on(v, "mouseup.select-cells touchend.select-cells", this.onStopSelection.bind(this, v)), !1;
  12555. }
  12556. }, i.prototype.onOutsideClick = function() {
  12557. this.selectedCell = null, this.onRemoveSelection();
  12558. }, i.prototype.onChange = function() {
  12559. this.j.isLocked || this.isSelectionMode || this.onRemoveSelection();
  12560. }, i.prototype.onMove = function(u, v) {
  12561. var y, g = this;
  12562. if ((!this.j.o.readonly || this.j.isLocked) && !this.j.isLockedNotBy(p)) {
  12563. var b = this.j.ed.elementFromPoint(v.clientX, v.clientY);
  12564. if (b) {
  12565. var w = f.Dom.closest(b, ["td", "th"], u);
  12566. if (w && this.selectedCell) {
  12567. w !== this.selectedCell && this.j.lock(p), this.unselectCells();
  12568. for (var C = h.Table.getSelectedBound(u, [w, this.selectedCell]), S = h.Table.formalMatrix(u), j = C[0][0]; C[1][0] >= j; j += 1) for (var E = C[0][1]; C[1][1] >= E; E += 1) this.module.addSelection(S[j][E]);
  12569. var x;
  12570. this.module.getAllSelectedCells().length > 1 && ((y = this.j.s.sel) === null || y === void 0 || y.removeAllRanges()), this.j.e.fire("hidePopup"), v.stopPropagation(), x = g.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>'), w.appendChild(x), g.j.async.setTimeout(function() {
  12571. var k;
  12572. (k = x.parentNode) === null || k === void 0 || k.removeChild(x);
  12573. }, g.j.defaultTimeout / 5);
  12574. }
  12575. }
  12576. }
  12577. }, i.prototype.onRemoveSelection = function(u) {
  12578. var v;
  12579. if (!(!((v = u == null ? void 0 : u.buffer) === null || v === void 0) && v.actionTrigger) && !this.selectedCell && this.module.getAllSelectedCells().length) return this.j.unlock(), this.unselectCells(), void this.j.e.fire("hidePopup", "cells");
  12580. this.isSelectionMode = !1, this.selectedCell = null;
  12581. }, i.prototype.onStopSelection = function(u, v) {
  12582. var y = this;
  12583. if (this.selectedCell) {
  12584. this.isSelectionMode = !1, this.j.unlock();
  12585. var g = this.j.ed.elementFromPoint(v.clientX, v.clientY);
  12586. if (g) {
  12587. var b = f.Dom.closest(g, ["td", "th"], u);
  12588. if (b) {
  12589. var w = f.Dom.closest(b, "table", u);
  12590. if (!w || w === u) {
  12591. var C = h.Table.getSelectedBound(u, [b, this.selectedCell]), S = h.Table.formalMatrix(u), j = S[C[1][0]][C[1][1]], E = S[C[0][0]][C[0][1]];
  12592. this.j.e.fire("showPopup", u, function() {
  12593. var x = (0, d.position)(E, y.j), k = (0, d.position)(j, y.j);
  12594. return { left: x.left, top: x.top, width: k.left - x.left + k.width, height: k.top - x.top + k.height };
  12595. }, "cells"), (0, d.$$)("table", this.j.editor).forEach(function(x) {
  12596. y.j.e.off(x, "mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells");
  12597. }), this.j.async.clearTimeout(l);
  12598. }
  12599. }
  12600. }
  12601. }
  12602. }, i.prototype.unselectCells = function(u) {
  12603. var v = this.module, y = v.getAllSelectedCells();
  12604. y.length && y.forEach(function(g) {
  12605. u && u === g || v.removeSelection(g);
  12606. });
  12607. }, i.prototype.onExecCommand = function(u) {
  12608. if (/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(u)) {
  12609. u = u.replace("table", "");
  12610. var v = this.module.getAllSelectedCells();
  12611. if (v.length) {
  12612. var y = n.__read(v, 1)[0];
  12613. if (!y) return;
  12614. var g = f.Dom.closest(y, "table", this.j.editor);
  12615. if (!g) return;
  12616. switch (u) {
  12617. case "splitv":
  12618. h.Table.splitVertical(g, this.j);
  12619. break;
  12620. case "splitg":
  12621. h.Table.splitHorizontal(g, this.j);
  12622. break;
  12623. case "merge":
  12624. h.Table.mergeSelected(g, this.j);
  12625. break;
  12626. case "empty":
  12627. v.forEach(function(w) {
  12628. return f.Dom.detach(w);
  12629. });
  12630. break;
  12631. case "bin":
  12632. f.Dom.safeRemove(g);
  12633. break;
  12634. case "binrow":
  12635. new Set(v.map(function(w) {
  12636. return w.parentNode;
  12637. })).forEach(function(w) {
  12638. h.Table.removeRow(g, w.rowIndex);
  12639. });
  12640. break;
  12641. case "bincolumn":
  12642. var b = /* @__PURE__ */ new Set();
  12643. v.reduce(function(w, C) {
  12644. return b.has(C.cellIndex) || (w.push(C), b.add(C.cellIndex)), w;
  12645. }, []).forEach(function(w) {
  12646. h.Table.removeColumn(g, w.cellIndex);
  12647. });
  12648. break;
  12649. case "addcolumnafter":
  12650. case "addcolumnbefore":
  12651. h.Table.appendColumn(g, y.cellIndex, u === "addcolumnafter", this.j.createInside);
  12652. break;
  12653. case "addrowafter":
  12654. case "addrowbefore":
  12655. h.Table.appendRow(g, y.parentNode, u === "addrowafter", this.j.createInside);
  12656. }
  12657. }
  12658. return !1;
  12659. }
  12660. }, i.prototype.onAfterCommand = function(u) {
  12661. /^justify/.test(u) && this.module.getAllSelectedCells().forEach(function(v) {
  12662. return (0, d.alignElement)(u, v);
  12663. });
  12664. }, i.prototype.beforeDestruct = function(u) {
  12665. this.onRemoveSelection(), u.e.off(".select-cells");
  12666. }, n.__decorate([s.autobind], i.prototype, "onStartSelection", null), n.__decorate([(0, s.watch)(":outsideClick")], i.prototype, "onOutsideClick", null), n.__decorate([(0, s.watch)(":change")], i.prototype, "onChange", null), n.__decorate([s.autobind], i.prototype, "onRemoveSelection", null), n.__decorate([s.autobind], i.prototype, "onStopSelection", null), n.__decorate([s.autobind], i.prototype, "onExecCommand", null), n.__decorate([s.autobind], i.prototype, "onAfterCommand", null), i;
  12667. }(m.Plugin);
  12668. t.selectCells = o, c.pluginSystem.add("selectCells", o);
  12669. }, 33100: function(_, t, e) {
  12670. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.select = { normalizeSelectionBeforeCutAndCopy: !1 };
  12671. }, 95323: function(_, t, e) {
  12672. Object.defineProperty(t, "__esModule", { value: !0 }), t.select = void 0;
  12673. var n = e(20255), m = e(57549), h = e(43441), f = e(26596), d = e(24263), a = e(2074), s = e(17332);
  12674. e(33100);
  12675. var c = function(p) {
  12676. function l() {
  12677. var o = p !== null && p.apply(this, arguments) || this;
  12678. return o.proxyEventsList = ["click", "mousedown", "touchstart", "mouseup", "touchend"], o;
  12679. }
  12680. return n.__extends(l, p), l.prototype.afterInit = function(o) {
  12681. var r = this;
  12682. this.proxyEventsList.forEach(function(i) {
  12683. o.e.on(i + ".select", r.onStartSelection);
  12684. });
  12685. }, l.prototype.beforeDestruct = function(o) {
  12686. var r = this;
  12687. this.proxyEventsList.forEach(function(i) {
  12688. o.e.on(i + ".select", r.onStartSelection);
  12689. });
  12690. }, l.prototype.onStartSelection = function(o) {
  12691. for (var r, i = this.j, u = o.target; r === void 0 && u && u !== i.editor; ) r = i.e.fire((0, f.camelCase)(o.type + "_" + u.nodeName.toLowerCase()), u, o), u = u.parentElement;
  12692. o.type === "click" && r === void 0 && u === i.editor && i.e.fire(o.type + "Editor", u, o);
  12693. }, l.prototype.onOutsideClick = function(o) {
  12694. var r = this, i = o.target;
  12695. d.Dom.up(i, function(u) {
  12696. return u === r.j.editor;
  12697. }) || a.UIElement.closestElement(i, a.Popup) || this.j.e.fire("outsideClick", o);
  12698. }, l.prototype.beforeCommandCut = function(o) {
  12699. var r = this.j.s;
  12700. if (o === "cut" && !r.isCollapsed()) {
  12701. var i = r.current();
  12702. i && d.Dom.isOrContains(this.j.editor, i) && this.onCopyNormalizeSelectionBound();
  12703. }
  12704. }, l.prototype.onCopyNormalizeSelectionBound = function(o) {
  12705. var r = this.j, i = r.editor;
  12706. r.o.select.normalizeSelectionBeforeCutAndCopy && !r.s.isCollapsed() && (!o || o.isTrusted && d.Dom.isNode(o.target) && d.Dom.isOrContains(i, o.target)) && this.jodit.s.expandSelection();
  12707. }, n.__decorate([h.autobind], l.prototype, "onStartSelection", null), n.__decorate([(0, h.watch)("ow:click")], l.prototype, "onOutsideClick", null), n.__decorate([(0, h.watch)([":beforeCommand"])], l.prototype, "beforeCommandCut", null), n.__decorate([(0, h.watch)([":copy", ":cut"])], l.prototype, "onCopyNormalizeSelectionBound", null), l;
  12708. }(m.Plugin);
  12709. t.select = c, s.pluginSystem.add("select", c);
  12710. }, 53387: function(_, t, e) {
  12711. Object.defineProperty(t, "__esModule", { value: !0 });
  12712. var n = e(93166);
  12713. n.Config.prototype.minWidth = 200, n.Config.prototype.maxWidth = "100%", n.Config.prototype.minHeight = 200, n.Config.prototype.maxHeight = "auto", n.Config.prototype.saveHeightInStorage = !1;
  12714. }, 71003: function(_, t, e) {
  12715. Object.defineProperty(t, "__esModule", { value: !0 }), t.size = void 0;
  12716. var n = e(20255);
  12717. e(30962);
  12718. var m = e(40332), h = e(85605), f = e(43441), d = e(17332);
  12719. e(53387);
  12720. var a = function(s) {
  12721. function c() {
  12722. var p = s !== null && s.apply(this, arguments) || this;
  12723. return p.resizeWorkspaces = p.j.async.debounce(p.resizeWorkspaceImd, p.j.defaultTimeout, !0), p;
  12724. }
  12725. return n.__extends(c, s), c.prototype.afterInit = function(p) {
  12726. p.e.on("setHeight.size", this.setHeight).on("setWidth.size", this.setWidth).on("afterInit.size changePlace.size", this.initialize, { top: !0 }).on(p.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.initialize();
  12727. }, c.prototype.initialize = function() {
  12728. var p = this.j;
  12729. if (!p.o.inline) {
  12730. var l = p.o.height;
  12731. if (p.o.saveHeightInStorage && l !== "auto") {
  12732. var o = p.storage.get("height");
  12733. o && (l = o);
  12734. }
  12735. (0, m.css)(p.editor, { minHeight: "100%" }), (0, m.css)(p.container, { minHeight: p.o.minHeight, maxHeight: p.o.maxHeight, minWidth: p.o.minWidth, maxWidth: p.o.maxWidth }), this.setHeight(l), this.setWidth(p.o.width);
  12736. }
  12737. }, c.prototype.setHeight = function(p) {
  12738. if ((0, m.isNumber)(p)) {
  12739. var l = this.j.o, o = l.minHeight, r = l.maxHeight;
  12740. (0, m.isNumber)(o) && o > p && (p = o), (0, m.isNumber)(r) && p > r && (p = r);
  12741. }
  12742. (0, m.css)(this.j.container, "height", p), this.j.o.saveHeightInStorage && this.j.storage.set("height", p), this.resizeWorkspaceImd();
  12743. }, c.prototype.setWidth = function(p) {
  12744. if ((0, m.isNumber)(p)) {
  12745. var l = this.j.o, o = l.minWidth, r = l.maxWidth;
  12746. (0, m.isNumber)(o) && o > p && (p = o), (0, m.isNumber)(r) && p > r && (p = r);
  12747. }
  12748. (0, m.css)(this.j.container, "width", p), this.resizeWorkspaceImd();
  12749. }, c.prototype.getNotWorkHeight = function() {
  12750. var p, l;
  12751. return (((p = this.j.toolbarContainer) === null || p === void 0 ? void 0 : p.offsetHeight) || 0) + (((l = this.j.statusbar) === null || l === void 0 ? void 0 : l.getHeight()) || 0) + 2;
  12752. }, c.prototype.resizeWorkspaceImd = function() {
  12753. if (this.j && !this.j.isDestructed && this.j.o && !this.j.o.inline && this.j.container && this.j.container.parentNode) {
  12754. var p = ((0, m.css)(this.j.container, "minHeight") || 0) - this.getNotWorkHeight();
  12755. if ((0, m.isNumber)(p) && p > 0 && ([this.j.workplace, this.j.iframe, this.j.editor].map(function(o) {
  12756. o && (0, m.css)(o, "minHeight", p);
  12757. }), this.j.e.fire("setMinHeight", p)), (0, m.isNumber)(this.j.o.maxHeight)) {
  12758. var l = this.j.o.maxHeight - this.getNotWorkHeight();
  12759. [this.j.workplace, this.j.iframe, this.j.editor].map(function(o) {
  12760. o && (0, m.css)(o, "maxHeight", l);
  12761. }), this.j.e.fire("setMaxHeight", l);
  12762. }
  12763. this.j.container && (0, m.css)(this.j.workplace, "height", this.j.o.height !== "auto" || this.j.isFullSize ? this.j.container.offsetHeight - this.getNotWorkHeight() : "auto");
  12764. }
  12765. }, c.prototype.beforeDestruct = function(p) {
  12766. p.e.off(p.ow, "load.size", this.resizeWorkspaces).off(".size");
  12767. }, n.__decorate([f.autobind], c.prototype, "resizeWorkspaceImd", null), n.__decorate([f.autobind], c);
  12768. }(h.Plugin);
  12769. t.size = a, d.pluginSystem.add("size", a);
  12770. }, 13985: function(_, t, e) {
  12771. Object.defineProperty(t, "__esModule", { value: !0 });
  12772. var n = e(93166), m = e(86893), h = e(77904);
  12773. n.Config.prototype.beautifyHTML = !m.IS_IE, n.Config.prototype.sourceEditor = "ace", n.Config.prototype.sourceEditorNativeOptions = { showGutter: !0, theme: "ace/theme/idle_fingers", mode: "ace/mode/html", wrap: !0, highlightActiveLine: !0 }, n.Config.prototype.sourceEditorCDNUrlsJS = ["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"], n.Config.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"], h.Icon.set("source", e(9342)), n.Config.prototype.controls.source = { mode: m.MODE_SPLIT, exec: function(f) {
  12774. f.toggleMode();
  12775. }, isActive: function(f) {
  12776. return f.getRealMode() === m.MODE_SOURCE;
  12777. }, tooltip: "Change mode" };
  12778. }, 34186: function(_, t, e) {
  12779. Object.defineProperty(t, "__esModule", { value: !0 }), t.AceEditor = void 0;
  12780. var n = e(20255), m = e(86893), h = e(40332), f = function(d) {
  12781. function a() {
  12782. var s = d !== null && d.apply(this, arguments) || this;
  12783. return s.className = "jodit_ace_editor", s.proxyOnBlur = function(c) {
  12784. s.j.e.fire("blur", c);
  12785. }, s.proxyOnFocus = function(c) {
  12786. s.j.e.fire("focus", c);
  12787. }, s.proxyOnMouseDown = function(c) {
  12788. s.j.e.fire("mousedown", c);
  12789. }, s;
  12790. }
  12791. return n.__extends(a, d), a.prototype.aceExists = function() {
  12792. return this.j.ow.ace !== void 0;
  12793. }, a.prototype.getLastColumnIndex = function(s) {
  12794. return this.instance.session.getLine(s).length;
  12795. }, a.prototype.getLastColumnIndices = function() {
  12796. for (var s = this.instance.session.getLength(), c = [], p = 0, l = 0; s > l; l++) p += this.getLastColumnIndex(l), l > 0 && (p += 1), c[l] = p;
  12797. return c;
  12798. }, a.prototype.getRowColumnIndices = function(s) {
  12799. var c = this.getLastColumnIndices();
  12800. if (c[0] >= s) return { row: 0, column: s };
  12801. for (var p = 1, l = 1; c.length > l; l++) s > c[l] && (p = l + 1);
  12802. return { row: p, column: s - c[p - 1] - 1 };
  12803. }, a.prototype.setSelectionRangeIndices = function(s, c) {
  12804. var p = this.getRowColumnIndices(s), l = this.getRowColumnIndices(c);
  12805. this.instance.getSelection().setSelectionRange({ start: p, end: l });
  12806. }, a.prototype.getIndexByRowColumn = function(s, c) {
  12807. return this.getLastColumnIndices()[s] - this.getLastColumnIndex(s) + c;
  12808. }, a.prototype.init = function(s) {
  12809. var c = this, p = function() {
  12810. if (c.instance === void 0 && c.aceExists()) {
  12811. var l = c.j.c.div("jodit-source__mirror-fake");
  12812. c.container.appendChild(l), c.instance = s.ow.ace.edit(l), c.instance.setTheme(s.o.sourceEditorNativeOptions.theme), c.instance.renderer.setShowGutter(s.o.sourceEditorNativeOptions.showGutter), c.instance.getSession().setMode(s.o.sourceEditorNativeOptions.mode), c.instance.setHighlightActiveLine(s.o.sourceEditorNativeOptions.highlightActiveLine), c.instance.getSession().setUseWrapMode(!0), c.instance.setOption("indentedSoftWrap", !1), c.instance.setOption("wrap", s.o.sourceEditorNativeOptions.wrap), c.instance.getSession().setUseWorker(!1), c.instance.$blockScrolling = 1 / 0, c.instance.on("change", c.toWYSIWYG), c.instance.on("focus", c.proxyOnFocus), c.instance.on("mousedown", c.proxyOnMouseDown), c.instance.on("blur", c.proxyOnBlur), s.getRealMode() !== m.MODE_WYSIWYG && c.setValue(c.getValue());
  12813. var o = c.j.async.debounce(function() {
  12814. s.isInDestruct || (c.instance.setOption("maxLines", s.o.height !== "auto" ? s.workplace.offsetHeight / c.instance.renderer.lineHeight : 1 / 0), c.instance.resize());
  12815. }, 2 * c.j.defaultTimeout);
  12816. s.e.on("afterResize afterSetMode", o), o(), c.onReady();
  12817. }
  12818. };
  12819. s.e.on("afterSetMode", function() {
  12820. s.getRealMode() !== m.MODE_SOURCE && s.getMode() !== m.MODE_SPLIT || (c.fromWYSIWYG(), p());
  12821. }), p(), this.aceExists() || (0, h.loadNext)(s, s.o.sourceEditorCDNUrlsJS).then(function() {
  12822. s.isInDestruct || p();
  12823. }).catch(function() {
  12824. return null;
  12825. });
  12826. }, a.prototype.destruct = function() {
  12827. var s, c;
  12828. this.instance.off("change", this.toWYSIWYG), this.instance.off("focus", this.proxyOnFocus), this.instance.off("mousedown", this.proxyOnMouseDown), this.instance.destroy(), (c = (s = this.j) === null || s === void 0 ? void 0 : s.events) === null || c === void 0 || c.off("aceInited.source");
  12829. }, a.prototype.setValue = function(s) {
  12830. if (!this.j.o.editHTMLDocumentMode && this.j.o.beautifyHTML) {
  12831. var c = this.j.e.fire("beautifyHTML", s);
  12832. (0, h.isString)(c) && (s = c);
  12833. }
  12834. this.instance.setValue(s), this.instance.clearSelection();
  12835. }, a.prototype.getValue = function() {
  12836. return this.instance.getValue();
  12837. }, a.prototype.setReadOnly = function(s) {
  12838. this.instance.setReadOnly(s);
  12839. }, Object.defineProperty(a.prototype, "isFocused", { get: function() {
  12840. return this.instance.isFocused();
  12841. }, enumerable: !1, configurable: !0 }), a.prototype.focus = function() {
  12842. this.instance.focus();
  12843. }, a.prototype.blur = function() {
  12844. this.instance.blur();
  12845. }, a.prototype.getSelectionStart = function() {
  12846. var s = this.instance.selection.getRange();
  12847. return this.getIndexByRowColumn(s.start.row, s.start.column);
  12848. }, a.prototype.getSelectionEnd = function() {
  12849. var s = this.instance.selection.getRange();
  12850. return this.getIndexByRowColumn(s.end.row, s.end.column);
  12851. }, a.prototype.selectAll = function() {
  12852. this.instance.selection.selectAll();
  12853. }, a.prototype.insertRaw = function(s) {
  12854. var c = this.instance.selection.getCursor(), p = this.instance.session.insert(c, s);
  12855. this.instance.selection.setRange({ start: c, end: p }, !1);
  12856. }, a.prototype.setSelectionRange = function(s, c) {
  12857. this.setSelectionRangeIndices(s, c);
  12858. }, a.prototype.setPlaceHolder = function(s) {
  12859. }, a.prototype.replaceUndoManager = function() {
  12860. var s = this.jodit.history;
  12861. this.instance.commands.addCommand({ name: "Undo", bindKey: { win: "Ctrl-Z", mac: "Command-Z" }, exec: function() {
  12862. s.undo();
  12863. } }), this.instance.commands.addCommand({ name: "Redo", bindKey: { win: "Ctrl-Shift-Z", mac: "Command-Shift-Z" }, exec: function() {
  12864. s.redo();
  12865. } });
  12866. }, a;
  12867. }(e(36729).SourceEditor);
  12868. t.AceEditor = f;
  12869. }, 58633: function(_, t, e) {
  12870. Object.defineProperty(t, "__esModule", { value: !0 }), t.TextAreaEditor = void 0;
  12871. var n = e(20255), m = e(26911), h = e(24263), f = function(d) {
  12872. function a() {
  12873. var s = d !== null && d.apply(this, arguments) || this;
  12874. return s.autosize = s.j.async.debounce(function() {
  12875. s.instance.style.height = "auto", s.instance.style.height = s.instance.scrollHeight + "px";
  12876. }, s.j.defaultTimeout), s;
  12877. }
  12878. return n.__extends(a, d), a.prototype.init = function(s) {
  12879. var c = this;
  12880. this.instance = s.c.element("textarea", { class: "jodit-source__mirror" }), this.container.appendChild(this.instance), s.e.on(this.instance, "mousedown keydown touchstart input", s.async.debounce(this.toWYSIWYG, s.defaultTimeout)).on("setMinHeight.source", function(p) {
  12881. (0, m.css)(c.instance, "minHeight", p);
  12882. }).on(this.instance, "change keydown mousedown touchstart input", this.autosize).on("afterSetMode.source", this.autosize).on(this.instance, "mousedown focus", function(p) {
  12883. s.e.fire(p.type, p);
  12884. }), this.autosize(), this.onReady();
  12885. }, a.prototype.destruct = function() {
  12886. h.Dom.safeRemove(this.instance);
  12887. }, a.prototype.getValue = function() {
  12888. return this.instance.value;
  12889. }, a.prototype.setValue = function(s) {
  12890. this.instance.value = s;
  12891. }, a.prototype.insertRaw = function(s) {
  12892. var c = this.getValue();
  12893. if (0 > this.getSelectionStart()) this.setValue(c + s);
  12894. else {
  12895. var p = this.getSelectionStart(), l = this.getSelectionEnd();
  12896. this.setValue(c.substring(0, p) + s + c.substring(l, c.length));
  12897. }
  12898. }, a.prototype.getSelectionStart = function() {
  12899. return this.instance.selectionStart;
  12900. }, a.prototype.getSelectionEnd = function() {
  12901. return this.instance.selectionEnd;
  12902. }, a.prototype.setSelectionRange = function(s, c) {
  12903. c === void 0 && (c = s), this.instance.setSelectionRange(s, c);
  12904. }, Object.defineProperty(a.prototype, "isFocused", { get: function() {
  12905. return this.instance === this.j.od.activeElement;
  12906. }, enumerable: !1, configurable: !0 }), a.prototype.focus = function() {
  12907. this.instance.focus();
  12908. }, a.prototype.blur = function() {
  12909. this.instance.blur();
  12910. }, a.prototype.setPlaceHolder = function(s) {
  12911. this.instance.setAttribute("placeholder", s);
  12912. }, a.prototype.setReadOnly = function(s) {
  12913. s ? this.instance.setAttribute("readonly", "true") : this.instance.removeAttribute("readonly");
  12914. }, a.prototype.selectAll = function() {
  12915. this.instance.select();
  12916. }, a.prototype.replaceUndoManager = function() {
  12917. var s = this, c = this.jodit.history;
  12918. this.j.e.on(this.instance, "keydown", function(p) {
  12919. if ((p.ctrlKey || p.metaKey) && p.key === "z") return p.shiftKey ? c.redo() : c.undo(), s.setSelectionRange(s.getValue().length), !1;
  12920. });
  12921. }, a;
  12922. }(e(36729).SourceEditor);
  12923. t.TextAreaEditor = f;
  12924. }, 52834: function(_, t, e) {
  12925. Object.defineProperty(t, "__esModule", { value: !0 });
  12926. var n = e(20255);
  12927. n.__exportStar(e(58633), t), n.__exportStar(e(34186), t);
  12928. }, 94785: function(_, t, e) {
  12929. Object.defineProperty(t, "__esModule", { value: !0 }), t.createSourceEditor = void 0;
  12930. var n = e(40332), m = e(52834);
  12931. t.createSourceEditor = function(h, f, d, a, s) {
  12932. var c;
  12933. if ((0, n.isFunction)(h)) c = h(f);
  12934. else switch (h) {
  12935. case "ace":
  12936. if (!f.o.shadowRoot) {
  12937. c = new m.AceEditor(f, d, a, s);
  12938. break;
  12939. }
  12940. default:
  12941. c = new m.TextAreaEditor(f, d, a, s);
  12942. }
  12943. return c.init(f), c.onReadyAlways(function() {
  12944. c.setReadOnly(f.o.readonly);
  12945. }), c;
  12946. };
  12947. }, 36729: function(_, t) {
  12948. Object.defineProperty(t, "__esModule", { value: !0 }), t.SourceEditor = void 0;
  12949. var e = function() {
  12950. function n(m, h, f, d) {
  12951. this.jodit = m, this.container = h, this.toWYSIWYG = f, this.fromWYSIWYG = d, this.className = "", this.isReady = !1;
  12952. }
  12953. return Object.defineProperty(n.prototype, "j", { get: function() {
  12954. return this.jodit;
  12955. }, enumerable: !1, configurable: !0 }), n.prototype.onReady = function() {
  12956. this.replaceUndoManager(), this.isReady = !0, this.j.e.fire(this, "ready");
  12957. }, n.prototype.onReadyAlways = function(m) {
  12958. var h;
  12959. this.isReady ? m() : (h = this.j.events) === null || h === void 0 || h.on(this, "ready", m);
  12960. }, n;
  12961. }();
  12962. t.SourceEditor = e;
  12963. }, 86030: function(_, t, e) {
  12964. Object.defineProperty(t, "__esModule", { value: !0 }), t.source = void 0;
  12965. var n = e(20255);
  12966. e(68197);
  12967. var m = e(86893), h = e(86893), f = e(57549), d = e(24263), a = e(40332), s = e(43441), c = e(17332), p = e(94785);
  12968. e(13985);
  12969. var l = function(o) {
  12970. function r() {
  12971. var i = o !== null && o.apply(this, arguments) || this;
  12972. return i.buttons = [{ name: "source", group: "source" }], i.__lock = !1, i.__oldMirrorValue = "", i.tempMarkerStart = "{start-jodit-selection}", i.tempMarkerStartReg = /{start-jodit-selection}/g, i.tempMarkerEnd = "{end-jodit-selection}", i.tempMarkerEndReg = /{end-jodit-selection}/g, i.getSelectionStart = function() {
  12973. var u, v;
  12974. return (v = (u = i.sourceEditor) === null || u === void 0 ? void 0 : u.getSelectionStart()) !== null && v !== void 0 ? v : 0;
  12975. }, i.getSelectionEnd = function() {
  12976. var u, v;
  12977. return (v = (u = i.sourceEditor) === null || u === void 0 ? void 0 : u.getSelectionEnd()) !== null && v !== void 0 ? v : 0;
  12978. }, i;
  12979. }
  12980. return n.__extends(r, o), r.prototype.onInsertHTML = function(i) {
  12981. var u;
  12982. if (!this.j.o.readonly && !this.j.isEditorMode()) return (u = this.sourceEditor) === null || u === void 0 || u.insertRaw(i), this.toWYSIWYG(), !1;
  12983. }, r.prototype.fromWYSIWYG = function(i) {
  12984. if (i === void 0 && (i = !1), !this.__lock || i === !0) {
  12985. this.__lock = !0;
  12986. var u = this.j.getEditorValue(!1, h.SOURCE_CONSUMER);
  12987. u !== this.getMirrorValue() && this.setMirrorValue(u), this.__lock = !1;
  12988. }
  12989. }, r.prototype.toWYSIWYG = function() {
  12990. if (!this.__lock) {
  12991. var i = this.getMirrorValue();
  12992. i !== this.__oldMirrorValue && (this.__lock = !0, this.j.value = i, this.__lock = !1, this.__oldMirrorValue = i);
  12993. }
  12994. }, r.prototype.getNormalPosition = function(i, u) {
  12995. for (u = u.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im, function(y) {
  12996. for (var g = "", b = 0; y.length > b; b += 1) g += h.INVISIBLE_SPACE;
  12997. return g;
  12998. }); i > 0 && u[i] === h.INVISIBLE_SPACE; ) i--;
  12999. for (var v = i; v > 0; ) {
  13000. if (u[--v] === "<" && u[v + 1] !== void 0 && u[v + 1].match(/[\w/]+/i)) return v;
  13001. if (u[v] === ">") return i;
  13002. }
  13003. return i;
  13004. }, r.prototype.clnInv = function(i) {
  13005. return i.replace(m.INVISIBLE_SPACE_REG_EXP(), "");
  13006. }, r.prototype.onSelectAll = function(i) {
  13007. var u;
  13008. if (i.toLowerCase() === "selectall" && this.j.getRealMode() === h.MODE_SOURCE) return (u = this.sourceEditor) === null || u === void 0 || u.selectAll(), !1;
  13009. }, r.prototype.getMirrorValue = function() {
  13010. var i;
  13011. return ((i = this.sourceEditor) === null || i === void 0 ? void 0 : i.getValue()) || "";
  13012. }, r.prototype.setMirrorValue = function(i) {
  13013. var u;
  13014. (u = this.sourceEditor) === null || u === void 0 || u.setValue(i);
  13015. }, r.prototype.setFocusToMirror = function() {
  13016. var i;
  13017. (i = this.sourceEditor) === null || i === void 0 || i.focus();
  13018. }, r.prototype.saveSelection = function() {
  13019. if (this.j.getRealMode() === m.MODE_WYSIWYG) this.j.s.save(), this.j.synchronizeValues(), this.fromWYSIWYG(!0);
  13020. else {
  13021. if (this.j.o.editHTMLDocumentMode) return;
  13022. var i = this.getMirrorValue();
  13023. if (this.getSelectionStart() === this.getSelectionEnd()) {
  13024. var u = this.j.s.marker(!0), v = this.getNormalPosition(this.getSelectionStart(), this.getMirrorValue());
  13025. this.setMirrorValue(i.substring(0, v) + this.clnInv(u.outerHTML) + i.substring(v));
  13026. } else {
  13027. var y = this.j.s.marker(!0), g = this.j.s.marker(!1), b = (v = this.getNormalPosition(this.getSelectionStart(), i), this.getNormalPosition(this.getSelectionEnd(), i));
  13028. this.setMirrorValue(i.substring(0, v) + this.clnInv(y.outerHTML) + i.substring(v, b - v) + this.clnInv(g.outerHTML) + i.substring(b));
  13029. }
  13030. this.toWYSIWYG();
  13031. }
  13032. }, r.prototype.removeSelection = function() {
  13033. if (this.j.getRealMode() === m.MODE_WYSIWYG) return this.__lock = !0, this.j.s.restore(), void (this.__lock = !1);
  13034. var i = this.getMirrorValue(), u = 0, v = 0;
  13035. try {
  13036. if (i = i.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) {
  13037. var y = this.j.e.fire("beautifyHTML", i);
  13038. (0, a.isString)(y) && (i = y);
  13039. }
  13040. if (v = u = i.indexOf(this.tempMarkerStart), i = i.replace(this.tempMarkerStartReg, ""), u !== -1) {
  13041. var g = i.indexOf(this.tempMarkerEnd);
  13042. g !== -1 && (v = g);
  13043. }
  13044. i = i.replace(this.tempMarkerEndReg, "");
  13045. } finally {
  13046. i = i.replace(this.tempMarkerEndReg, "").replace(this.tempMarkerStartReg, "");
  13047. }
  13048. this.setMirrorValue(i), this.setMirrorSelectionRange(u, v), this.toWYSIWYG(), this.setFocusToMirror();
  13049. }, r.prototype.setMirrorSelectionRange = function(i, u) {
  13050. var v;
  13051. (v = this.sourceEditor) === null || v === void 0 || v.setSelectionRange(i, u);
  13052. }, r.prototype.onReadonlyReact = function() {
  13053. var i;
  13054. (i = this.sourceEditor) === null || i === void 0 || i.setReadOnly(this.j.o.readonly);
  13055. }, r.prototype.afterInit = function(i) {
  13056. var u = this;
  13057. if (this.mirrorContainer = i.c.div("jodit-source"), i.workplace.appendChild(this.mirrorContainer), i.e.on("afterAddPlace changePlace afterInit", function() {
  13058. i.workplace.appendChild(u.mirrorContainer);
  13059. }), this.sourceEditor = (0, p.createSourceEditor)("area", i, this.mirrorContainer, this.toWYSIWYG, this.fromWYSIWYG), i.e.on(i.ow, "keydown", function(y) {
  13060. var g;
  13061. y.key === h.KEY_ESC && (!((g = u.sourceEditor) === null || g === void 0) && g.isFocused) && u.sourceEditor.blur();
  13062. }), this.onReadonlyReact(), i.e.on("placeholder.source", function(y) {
  13063. var g;
  13064. (g = u.sourceEditor) === null || g === void 0 || g.setPlaceHolder(y);
  13065. }).on("change.source", this.syncValueFromWYSIWYG).on("beautifyHTML", function(y) {
  13066. return y;
  13067. }), i.o.beautifyHTML) {
  13068. var v = function() {
  13069. var y, g = i.ow.html_beautify;
  13070. return !(!g || i.isInDestruct || ((y = i.events) === null || y === void 0 || y.off("beautifyHTML").on("beautifyHTML", function(b) {
  13071. return g(b);
  13072. }), 0));
  13073. };
  13074. v() || (0, a.loadNext)(i, i.o.beautifyHTMLCDNUrlsJS).then(v);
  13075. }
  13076. this.syncValueFromWYSIWYG(!0), this.initSourceEditor(i);
  13077. }, r.prototype.syncValueFromWYSIWYG = function(i) {
  13078. i === void 0 && (i = !1);
  13079. var u = this.j;
  13080. u.getMode() !== h.MODE_SPLIT && u.getMode() !== h.MODE_SOURCE || this.fromWYSIWYG(i);
  13081. }, r.prototype.initSourceEditor = function(i) {
  13082. var u, v = this;
  13083. if (i.o.sourceEditor !== "area") {
  13084. var y = (0, p.createSourceEditor)(i.o.sourceEditor, i, this.mirrorContainer, this.toWYSIWYG, this.fromWYSIWYG);
  13085. y.onReadyAlways(function() {
  13086. var g, b;
  13087. (g = v.sourceEditor) === null || g === void 0 || g.destruct(), v.sourceEditor = y, v.syncValueFromWYSIWYG(!0), (b = i.events) === null || b === void 0 || b.fire("sourceEditorReady", i);
  13088. });
  13089. } else (u = this.sourceEditor) === null || u === void 0 || u.onReadyAlways(function() {
  13090. var g;
  13091. v.syncValueFromWYSIWYG(!0), (g = i.events) === null || g === void 0 || g.fire("sourceEditorReady", i);
  13092. });
  13093. }, r.prototype.beforeDestruct = function() {
  13094. this.sourceEditor && (this.sourceEditor.destruct(), delete this.sourceEditor), d.Dom.safeRemove(this.mirrorContainer);
  13095. }, n.__decorate([(0, s.watch)(":insertHTML.source")], r.prototype, "onInsertHTML", null), n.__decorate([s.autobind], r.prototype, "fromWYSIWYG", null), n.__decorate([s.autobind], r.prototype, "toWYSIWYG", null), n.__decorate([s.autobind], r.prototype, "getNormalPosition", null), n.__decorate([(0, s.watch)(":beforeCommand.source")], r.prototype, "onSelectAll", null), n.__decorate([(0, s.watch)(":beforeSetMode.source")], r.prototype, "saveSelection", null), n.__decorate([(0, s.watch)(":afterSetMode.source")], r.prototype, "removeSelection", null), n.__decorate([s.autobind], r.prototype, "setMirrorSelectionRange", null), n.__decorate([(0, s.watch)(":readonly.source")], r.prototype, "onReadonlyReact", null), n.__decorate([s.autobind], r.prototype, "syncValueFromWYSIWYG", null), r;
  13096. }(f.Plugin);
  13097. t.source = l, c.pluginSystem.add("source", l);
  13098. }, 50876: function(_, t, e) {
  13099. Object.defineProperty(t, "__esModule", { value: !0 });
  13100. var n = e(93166), m = e(77904);
  13101. n.Config.prototype.spellcheck = !1, m.Icon.set("spellcheck", e(69546)), n.Config.prototype.controls.spellcheck = { isActive: function(h) {
  13102. return h.o.spellcheck;
  13103. }, icon: e(69546), name: "spellcheck", command: "toggleSpellcheck", tooltip: "Spellcheck" };
  13104. }, 87882: function(_, t, e) {
  13105. Object.defineProperty(t, "__esModule", { value: !0 }), t.zh_tw = t.zh_cn = t.tr = t.ru = t.pt_br = t.pl = t.nl = t.ko = t.ja = t.it = t.id = t.hu = t.he = t.fr = t.fa = t.es = t.de = t.cs_cz = t.ar = void 0;
  13106. var n = e(5586);
  13107. t.ar = n;
  13108. var m = e(66023);
  13109. t.cs_cz = m;
  13110. var h = e(65860);
  13111. t.de = h;
  13112. var f = e(86055);
  13113. t.es = f;
  13114. var d = e(50037);
  13115. t.fa = d;
  13116. var a = e(7118);
  13117. t.fr = a;
  13118. var s = e(30298);
  13119. t.he = s;
  13120. var c = e(52107);
  13121. t.hu = c;
  13122. var p = e(31240);
  13123. t.id = p;
  13124. var l = e(4101);
  13125. t.it = l;
  13126. var o = e(69286);
  13127. t.ja = o;
  13128. var r = e(13402);
  13129. t.ko = r;
  13130. var i = e(89574);
  13131. t.nl = i;
  13132. var u = e(63630);
  13133. t.pl = u;
  13134. var v = e(72212);
  13135. t.pt_br = v;
  13136. var y = e(82570);
  13137. t.ru = y;
  13138. var g = e(19323);
  13139. t.tr = g;
  13140. var b = e(50279);
  13141. t.zh_cn = b;
  13142. var w = e(98364);
  13143. t.zh_tw = w;
  13144. }, 17002: function(_, t, e) {
  13145. Object.defineProperty(t, "__esModule", { value: !0 }), t.spellcheck = void 0;
  13146. var n = e(20255), m = e(57549), h = e(67309), f = e(43441), d = e(17332);
  13147. e(50876);
  13148. var a = function(s) {
  13149. function c(p) {
  13150. var l = s.call(this, p) || this;
  13151. return l.buttons = [{ group: "state", name: "spellcheck" }], (0, d.extendLang)(e(87882)), l;
  13152. }
  13153. return n.__extends(c, s), c.prototype.afterInit = function(p) {
  13154. var l = this;
  13155. p.e.on("afterInit afterAddPlace prepareWYSIWYGEditor", this.toggleSpellcheck), this.toggleSpellcheck(), p.registerCommand("toggleSpellcheck", function() {
  13156. l.jodit.o.spellcheck = !l.jodit.o.spellcheck, l.toggleSpellcheck(), l.j.e.fire("updateToolbar");
  13157. });
  13158. }, c.prototype.toggleSpellcheck = function() {
  13159. (0, h.attr)(this.jodit.editor, "spellcheck", this.jodit.o.spellcheck);
  13160. }, c.prototype.beforeDestruct = function(p) {
  13161. }, n.__decorate([f.autobind], c.prototype, "toggleSpellcheck", null), c;
  13162. }(m.Plugin);
  13163. t.spellcheck = a, d.pluginSystem.add("spellcheck", a);
  13164. }, 59818: function(_, t, e) {
  13165. Object.defineProperty(t, "__esModule", { value: !0 });
  13166. var n = e(93166);
  13167. n.Config.prototype.showCharsCounter = !0, n.Config.prototype.countHTMLChars = !1, n.Config.prototype.showWordsCounter = !0;
  13168. }, 1557: function(_, t, e) {
  13169. Object.defineProperty(t, "__esModule", { value: !0 }), t.stat = void 0;
  13170. var n = e(20255), m = e(86893), h = e(85605), f = e(24263), d = e(17332);
  13171. e(59818);
  13172. var a = function(s) {
  13173. function c() {
  13174. var p = s !== null && s.apply(this, arguments) || this;
  13175. return p.charCounter = null, p.wordCounter = null, p.reInit = function() {
  13176. p.j.o.showCharsCounter && p.charCounter && p.j.statusbar.append(p.charCounter, !0), p.j.o.showWordsCounter && p.wordCounter && p.j.statusbar.append(p.wordCounter, !0), p.j.e.off("change keyup", p.calc).on("change keyup", p.calc), p.calc();
  13177. }, p.calc = p.j.async.throttle(function() {
  13178. var l = p.j.text;
  13179. if (p.j.o.showCharsCounter && p.charCounter) {
  13180. var o = p.j.o.countHTMLChars ? p.j.value : l.replace((0, m.SPACE_REG_EXP)(), "");
  13181. p.charCounter.textContent = p.j.i18n("Chars: %d", o.length);
  13182. }
  13183. p.j.o.showWordsCounter && p.wordCounter && (p.wordCounter.textContent = p.j.i18n("Words: %d", l.replace((0, m.INVISIBLE_SPACE_REG_EXP)(), "").split((0, m.SPACE_REG_EXP)()).filter(function(r) {
  13184. return r.length;
  13185. }).length));
  13186. }, p.j.defaultTimeout), p;
  13187. }
  13188. return n.__extends(c, s), c.prototype.afterInit = function() {
  13189. this.charCounter = this.j.c.span(), this.wordCounter = this.j.c.span(), this.j.e.on("afterInit changePlace afterAddPlace", this.reInit), this.reInit();
  13190. }, c.prototype.beforeDestruct = function() {
  13191. f.Dom.safeRemove(this.charCounter), f.Dom.safeRemove(this.wordCounter), this.j.e.off("afterInit changePlace afterAddPlace", this.reInit), this.charCounter = null, this.wordCounter = null;
  13192. }, c;
  13193. }(h.Plugin);
  13194. t.stat = a, d.pluginSystem.add("stat", a);
  13195. }, 40790: function(_, t, e) {
  13196. Object.defineProperty(t, "__esModule", { value: !0 });
  13197. var n = e(93166);
  13198. n.Config.prototype.toolbarSticky = !0, n.Config.prototype.toolbarDisableStickyForMobile = !0, n.Config.prototype.toolbarStickyOffset = 0;
  13199. }, 82808: function(_, t, e) {
  13200. Object.defineProperty(t, "__esModule", { value: !0 }), t.sticky = void 0;
  13201. var n = e(20255);
  13202. e(60057);
  13203. var m = e(86893), h = e(85605), f = e(24263), d = e(40332), a = e(43441), s = e(17332);
  13204. e(40790);
  13205. var c = function(p) {
  13206. function l() {
  13207. var o = p !== null && p.apply(this, arguments) || this;
  13208. return o.isToolbarSticked = !1, o.createDummy = function(r) {
  13209. m.IS_IE && !o.dummyBox && (o.dummyBox = o.j.c.div(), o.dummyBox.classList.add("jodit_sticky-dummy_toolbar"), o.j.container.insertBefore(o.dummyBox, r));
  13210. }, o.addSticky = function(r) {
  13211. o.isToolbarSticked || (o.createDummy(r), o.j.container.classList.add("jodit_sticky"), o.isToolbarSticked = !0), (0, d.css)(r, { top: o.j.o.toolbarStickyOffset || null, width: o.j.container.offsetWidth - 2 }), m.IS_IE && o.dummyBox && (0, d.css)(o.dummyBox, { height: r.offsetHeight });
  13212. }, o.removeSticky = function(r) {
  13213. o.isToolbarSticked && ((0, d.css)(r, { width: "", top: "" }), o.j.container.classList.remove("jodit_sticky"), o.isToolbarSticked = !1);
  13214. }, o;
  13215. }
  13216. return n.__extends(l, p), l.prototype.afterInit = function(o) {
  13217. var r = this;
  13218. o.e.on(o.ow, "scroll.sticky wheel.sticky mousewheel.sticky resize.sticky", this.onScroll).on("getStickyState.sticky", function() {
  13219. return r.isToolbarSticked;
  13220. });
  13221. }, l.prototype.onScroll = function() {
  13222. var o = this.jodit, r = o.ow.pageYOffset || o.od.documentElement && o.od.documentElement.scrollTop || 0, i = (0, d.offset)(o.container, o, o.od, !0), u = o.getMode() === m.MODE_WYSIWYG && r + o.o.toolbarStickyOffset > i.top && i.top + i.height > r + o.o.toolbarStickyOffset && !(o.o.toolbarDisableStickyForMobile && this.isMobile());
  13223. if (o.o.toolbarSticky && o.o.toolbar === !0 && this.isToolbarSticked !== u) {
  13224. var v = o.toolbarContainer;
  13225. v && (u ? this.addSticky(v) : this.removeSticky(v)), o.e.fire("toggleSticky", u);
  13226. }
  13227. }, l.prototype.isMobile = function() {
  13228. return this.j && this.j.options && this.j.container && this.j.o.sizeSM >= this.j.container.offsetWidth;
  13229. }, l.prototype.beforeDestruct = function(o) {
  13230. this.dummyBox && f.Dom.safeRemove(this.dummyBox), o.e.off(o.ow, "scroll.sticky wheel.sticky mousewheel.sticky resize.sticky", this.onScroll).off(".sticky");
  13231. }, n.__decorate([(0, a.throttle)()], l.prototype, "onScroll", null), l;
  13232. }(h.Plugin);
  13233. t.sticky = c, s.pluginSystem.add("sticky", c);
  13234. }, 31750: function(_, t, e) {
  13235. Object.defineProperty(t, "__esModule", { value: !0 });
  13236. var n = e(93166), m = e(77904);
  13237. n.Config.prototype.usePopupForSpecialCharacters = !1, n.Config.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;"], m.Icon.set("symbols", e(43158)), n.Config.prototype.controls.symbols = { hotkeys: ["ctrl+shift+i", "cmd+shift+i"], tooltip: "Insert Special Character", popup: function(h, f, d, a) {
  13238. var s = h.e.fire("generateSpecialCharactersTable.symbols");
  13239. if (s) {
  13240. if (h.o.usePopupForSpecialCharacters) {
  13241. var c = h.c.div();
  13242. return c.classList.add("jodit-symbols"), c.appendChild(s), h.e.on(s, "close_dialog", a), c;
  13243. }
  13244. h.alert(s, "Select Special Character", void 0, "jodit-symbols").bindDestruct(h);
  13245. var p = s.querySelector("a");
  13246. p && p.focus();
  13247. }
  13248. } };
  13249. }, 21236: function(_, t, e) {
  13250. Object.defineProperty(t, "__esModule", { value: !0 }), t.zh_tw = t.zh_cn = t.tr = t.ru = t.pt_br = t.pl = t.nl = t.ko = t.ja = t.it = t.id = t.hu = t.he = t.fr = t.fa = t.es = t.de = t.cs_cz = t.ar = void 0;
  13251. var n = e(54261);
  13252. t.ar = n;
  13253. var m = e(60425);
  13254. t.cs_cz = m;
  13255. var h = e(7057);
  13256. t.de = h;
  13257. var f = e(48356);
  13258. t.es = f;
  13259. var d = e(11428);
  13260. t.fa = d;
  13261. var a = e(29084);
  13262. t.fr = a;
  13263. var s = e(22876);
  13264. t.he = s;
  13265. var c = e(20890);
  13266. t.hu = c;
  13267. var p = e(75987);
  13268. t.id = p;
  13269. var l = e(60379);
  13270. t.it = l;
  13271. var o = e(99950);
  13272. t.ja = o;
  13273. var r = e(60934);
  13274. t.ko = r;
  13275. var i = e(21994);
  13276. t.nl = i;
  13277. var u = e(38128);
  13278. t.pl = u;
  13279. var v = e(71515);
  13280. t.pt_br = v;
  13281. var y = e(58194);
  13282. t.ru = y;
  13283. var g = e(65802);
  13284. t.tr = g;
  13285. var b = e(86628);
  13286. t.zh_cn = b;
  13287. var w = e(32210);
  13288. t.zh_tw = w;
  13289. }, 48560: function(_, t, e) {
  13290. Object.defineProperty(t, "__esModule", { value: !0 }), t.symbols = void 0;
  13291. var n = e(20255);
  13292. e(33393);
  13293. var m = e(86893), h = e(85605), f = e(24263), d = e(76502), a = e(17332);
  13294. e(31750);
  13295. var s = function(c) {
  13296. function p(l) {
  13297. var o = c.call(this, l) || this;
  13298. return o.buttons = [{ name: "symbols", group: "insert" }], o.countInRow = 17, (0, a.extendLang)(e(21236)), o;
  13299. }
  13300. return n.__extends(p, c), p.prototype.afterInit = function(l) {
  13301. var o = this;
  13302. l.e.on("generateSpecialCharactersTable.symbols", function() {
  13303. for (var r = l.c.fromHTML(`<div class="jodit-symbols__container">
  13304. <div class="jodit-symbols__container_table">
  13305. <table class="jodit-symbols__table"><tbody></tbody></table>
  13306. </div>
  13307. <div class="jodit-symbols__container_preview">
  13308. <div class="jodit-symbols__preview"></div>
  13309. </div>
  13310. </div>`), i = r.querySelector(".jodit-symbols__preview"), u = r.querySelector("table").tBodies[0], v = [], y = 0; l.o.specialCharacters.length > y; ) {
  13311. for (var g = l.c.element("tr"), b = 0; o.countInRow > b && l.o.specialCharacters.length > y; b += 1, y += 1) {
  13312. var w = l.c.element("td"), C = l.c.fromHTML(`<a
  13313. data-index="`.concat(y, `"
  13314. data-index-j="`).concat(b, `"
  13315. role="option"
  13316. tabindex="-1"
  13317. >`).concat(l.o.specialCharacters[y], "</a>"));
  13318. v.push(C), w.appendChild(C), g.appendChild(w);
  13319. }
  13320. u.appendChild(g);
  13321. }
  13322. var S = o;
  13323. return l.e.on(v, "focus", function() {
  13324. i.innerHTML = this.innerHTML;
  13325. }).on(v, "mousedown", function(j) {
  13326. f.Dom.isTag(this, "a") && (l.s.focus(), l.s.insertHTML(this.innerHTML), l.e.fire(this, "close_dialog"), j && j.preventDefault(), j && j.stopImmediatePropagation());
  13327. }).on(v, "mouseenter", function() {
  13328. f.Dom.isTag(this, "a") && this.focus();
  13329. }).on(v, "keydown", function(j) {
  13330. var E = j.target;
  13331. if (f.Dom.isTag(E, "a")) {
  13332. var x = parseInt((0, d.attr)(E, "-index") || "0", 10), k = parseInt((0, d.attr)(E, "data-index-j") || "0", 10), I = void 0;
  13333. switch (j.key) {
  13334. case m.KEY_UP:
  13335. case m.KEY_DOWN:
  13336. v[I = j.key === m.KEY_UP ? x - S.countInRow : x + S.countInRow] === void 0 && (I = j.key === m.KEY_UP ? Math.floor(v.length / S.countInRow) * S.countInRow + k : k) > v.length - 1 && (I -= S.countInRow), v[I] && v[I].focus();
  13337. break;
  13338. case m.KEY_RIGHT:
  13339. case m.KEY_LEFT:
  13340. v[I = j.key === m.KEY_LEFT ? x - 1 : x + 1] === void 0 && (I = j.key === m.KEY_LEFT ? v.length - 1 : 0), v[I] && v[I].focus();
  13341. break;
  13342. case m.KEY_ENTER:
  13343. l.e.fire(E, "mousedown"), j.stopImmediatePropagation(), j.preventDefault();
  13344. }
  13345. }
  13346. }), r;
  13347. });
  13348. }, p.prototype.beforeDestruct = function(l) {
  13349. l.e.off("generateSpecialCharactersTable.symbols");
  13350. }, p;
  13351. }(h.Plugin);
  13352. t.symbols = s, a.pluginSystem.add("symbols", s);
  13353. }, 15797: function(_, t, e) {
  13354. Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(41170), t);
  13355. }, 41170: function(_, t, e) {
  13356. Object.defineProperty(t, "__esModule", { value: !0 }), t.onTabInsideLi = void 0;
  13357. var n = e(20255), m = e(24263);
  13358. e(603), t.onTabInsideLi = function(h, f) {
  13359. if (f === void 0 && (f = !1), !h.o.tab.tabInsideLiInsertNewList) return !1;
  13360. var d = n.__read(function(o) {
  13361. var r = o.createInside.fake(), i = o.createInside.fake(), u = o.s.range.cloneRange();
  13362. u.collapse(!0), u.insertNode(r);
  13363. var v = o.s.range.cloneRange();
  13364. return v.collapse(!1), v.insertNode(i), [r, i];
  13365. }(h), 2), a = d[0], s = d[1];
  13366. try {
  13367. var c = function(o, r, i) {
  13368. var u = m.Dom.closest(r, "li", o.editor);
  13369. return !!u && !(!i && !m.Dom.isTag(u.previousElementSibling, "li")) && !(i && !m.Dom.closest(u, "li", o.editor)) && u;
  13370. }(h, a, f);
  13371. if (!c || !function(o, r, i) {
  13372. var u = m.Dom.closest(i, "li", r.editor);
  13373. return !(!u || u !== o && !o.contains(u));
  13374. }(c, h, a)) return !1;
  13375. var p = m.Dom.closest(c, ["ol", "ul"], h.editor);
  13376. return !(!p || f && !m.Dom.closest(p, "li", h.editor) || (f ? function(o, r, i) {
  13377. var u = m.Dom.closest(r, "li", o.editor), v = Array.from(r.children).filter(function(w) {
  13378. return m.Dom.isTag(w, "li");
  13379. });
  13380. m.Dom.after(u, i);
  13381. var y = v.indexOf(i);
  13382. if (y !== 0 && v.length !== 1 || m.Dom.safeRemove(r), y !== v.length - 1) {
  13383. var g = r.cloneNode();
  13384. m.Dom.append(i, g);
  13385. for (var b = y + 1; v.length > b; b += 1) m.Dom.append(g, v[b]);
  13386. }
  13387. }(h, p, c) : function(o, r, i) {
  13388. var u = i.previousElementSibling, v = u.lastElementChild, y = m.Dom.isTag(v, r.tagName) ? v : o.createInside.element(r.tagName, Array.from(r.attributes).reduce(function(g, b) {
  13389. return g[b.name] = b.value, g;
  13390. }, {}));
  13391. y.appendChild(i), v !== y && u.appendChild(y);
  13392. }(h, p, c), 0));
  13393. } finally {
  13394. var l = h.s.createRange();
  13395. l.setStartAfter(a), l.setEndBefore(s), h.s.selectRange(l), m.Dom.safeRemove(a), m.Dom.safeRemove(s);
  13396. }
  13397. return !1;
  13398. };
  13399. }, 56198: function(_, t, e) {
  13400. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.tab = { tabInsideLiInsertNewList: !0 };
  13401. }, 32246: function(_, t, e) {
  13402. Object.defineProperty(t, "__esModule", { value: !0 });
  13403. var n = e(20255), m = e(57549), h = e(43441), f = e(86893), d = e(17332), a = e(15797);
  13404. e(56198);
  13405. var s = function(c) {
  13406. function p() {
  13407. return c !== null && c.apply(this, arguments) || this;
  13408. }
  13409. return n.__extends(p, c), p.prototype.afterInit = function(l) {
  13410. }, p.prototype.__onTab = function(l) {
  13411. if (l.key === f.KEY_TAB && this.__onShift(l.shiftKey)) return !1;
  13412. }, p.prototype.__onCommand = function(l) {
  13413. if ((l === "indent" || l === "outdent") && this.__onShift(l === "outdent")) return !1;
  13414. }, p.prototype.__onShift = function(l) {
  13415. var o = (0, a.onTabInsideLi)(this.j, l);
  13416. return o && this.j.e.fire("afterTab", l), o;
  13417. }, p.prototype.beforeDestruct = function(l) {
  13418. }, n.__decorate([(0, h.watch)(":keydown.tab")], p.prototype, "__onTab", null), n.__decorate([(0, h.watch)(":beforeCommand.tab")], p.prototype, "__onCommand", null), p;
  13419. }(m.Plugin);
  13420. d.pluginSystem.add("tab", s);
  13421. }, 23308: function(_, t, e) {
  13422. Object.defineProperty(t, "__esModule", { value: !0 }), t.tableKeyboardNavigation = void 0;
  13423. var n = e(86893), m = e(24263), h = e(25120), f = e(17332);
  13424. function d(a) {
  13425. a.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation", function(s) {
  13426. var c, p;
  13427. if ((s.key === n.KEY_TAB || s.key === n.KEY_LEFT || s.key === n.KEY_RIGHT || s.key === n.KEY_UP || s.key === n.KEY_DOWN) && (c = a.s.current(), p = m.Dom.up(c, function(b) {
  13428. return b && b.nodeName && /^td|th$/i.test(b.nodeName);
  13429. }, a.editor))) {
  13430. var l = a.s.range;
  13431. if (s.key === n.KEY_TAB || c === p || (s.key !== n.KEY_LEFT && s.key !== n.KEY_UP || !(m.Dom.prev(c, function(b) {
  13432. return s.key === n.KEY_UP ? m.Dom.isTag(b, "br") : !!b;
  13433. }, p) || s.key !== n.KEY_UP && m.Dom.isText(c) && l.startOffset !== 0)) && (s.key !== n.KEY_RIGHT && s.key !== n.KEY_DOWN || !(m.Dom.next(c, function(b) {
  13434. return s.key === n.KEY_DOWN ? m.Dom.isTag(b, "br") : !!b;
  13435. }, p) || s.key !== n.KEY_DOWN && m.Dom.isText(c) && c.nodeValue && l.startOffset !== c.nodeValue.length))) {
  13436. var o = m.Dom.up(p, function(b) {
  13437. return b && /^table$/i.test(b.nodeName);
  13438. }, a.editor), r = null;
  13439. switch (s.key) {
  13440. case n.KEY_TAB:
  13441. case n.KEY_LEFT:
  13442. var i = s.key === n.KEY_LEFT || s.shiftKey ? "prev" : "next";
  13443. (r = m.Dom[i](p, function(b) {
  13444. return b && /^td|th$/i.test(b.tagName);
  13445. }, o)) || (h.Table.appendRow(o, i !== "next" && o.querySelector("tr"), i === "next", a.createInside), r = m.Dom[i](p, m.Dom.isCell, o));
  13446. break;
  13447. case n.KEY_UP:
  13448. case n.KEY_DOWN:
  13449. var u = 0, v = 0, y = h.Table.formalMatrix(o, function(b, w, C) {
  13450. b === p && (u = w, v = C);
  13451. });
  13452. s.key === n.KEY_UP ? y[u - 1] !== void 0 && (r = y[u - 1][v]) : y[u + 1] !== void 0 && (r = y[u + 1][v]);
  13453. }
  13454. if (r) {
  13455. if (r.firstChild) s.key === n.KEY_TAB ? a.s.select(r, !0) : a.s.setCursorIn(r, s.key === n.KEY_RIGHT || s.key === n.KEY_DOWN);
  13456. else {
  13457. var g = a.createInside.element("br");
  13458. r.appendChild(g), a.s.setCursorBefore(g);
  13459. }
  13460. return !1;
  13461. }
  13462. }
  13463. }
  13464. });
  13465. }
  13466. t.tableKeyboardNavigation = d, f.pluginSystem.add("tableKeyboardNavigation", d);
  13467. }, 30739: function(_, t, e) {
  13468. Object.defineProperty(t, "__esModule", { value: !0 });
  13469. var n = e(93166), m = e(64968), h = e(76502), f = e(40332), d = e(77904);
  13470. n.Config.prototype.table = { selectionCellStyle: "border: 1px double #1e88e5 !important;", useExtraClassesOptions: !1 }, d.Icon.set("table", e(51716)), n.Config.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: function(a, s, c, p, l) {
  13471. for (var o = c.data && c.data.rows ? c.data.rows : 10, r = c.data && c.data.cols ? c.data.cols : 10, i = a.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">' + function() {
  13472. if (!a.o.table.useExtraClassesOptions) return "";
  13473. var E = [];
  13474. if (c.data) {
  13475. var x = c.data.classList;
  13476. Object.keys(x).forEach(function(k) {
  13477. E.push('<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="'.concat(k, '" type="checkbox"/>').concat(x[k], "</label>"));
  13478. });
  13479. }
  13480. return E.join("");
  13481. }() + '</div></div><label class="jodit-form__center"><span>1</span> &times; <span>1</span></label></form>'), u = i.querySelectorAll("span")[0], v = i.querySelectorAll("span")[1], y = i.querySelector(".jodit-form__container"), g = i.querySelector(".jodit-form__options"), b = [], w = o * r, C = 0; w > C; C += 1) b[C] || b.push(a.c.element("span", { dataIndex: C }));
  13482. if (a.e.on(y, "mousemove", function(E, x) {
  13483. var k = E.target;
  13484. if (m.Dom.isTag(k, "span")) {
  13485. for (var I = x === void 0 || isNaN(x) ? parseInt((0, h.attr)(k, "-index") || "0", 10) : x || 0, M = Math.ceil((I + 1) / r), T = I % r + 1, O = 0; b.length > O; O += 1) b[O].className = O % r + 1 > T || M < Math.ceil((O + 1) / r) ? "" : "jodit_hovered";
  13486. v.textContent = T.toString(), u.textContent = M.toString();
  13487. }
  13488. }).on(y, "touchstart mousedown", function(E) {
  13489. var x = E.target;
  13490. if (E.preventDefault(), E.stopImmediatePropagation(), m.Dom.isTag(x, "span")) {
  13491. var k = parseInt((0, h.attr)(x, "-index") || "0", 10), I = Math.ceil((k + 1) / r), M = k % r + 1, T = a.createInside, O = T.element("tbody"), L = T.element("table");
  13492. L.appendChild(O);
  13493. for (var N, H, q = null, F = 1; I >= F; F += 1) {
  13494. N = T.element("tr");
  13495. for (var U = 1; M >= U; U += 1) H = T.element("td"), q || (q = H), (0, f.css)(H, "width", (100 / M).toFixed(4) + "%"), H.appendChild(T.element("br")), N.appendChild(T.text(`
  13496. `)), N.appendChild(T.text(" ")), N.appendChild(H);
  13497. O.appendChild(T.text(`
  13498. `)), O.appendChild(N);
  13499. }
  13500. (0, f.$$)("input[type=checkbox]:checked", g).forEach(function(Y) {
  13501. Y.value.split(/[\s]+/).forEach(function(P) {
  13502. L.classList.add(P);
  13503. });
  13504. }), a.editor.firstChild && a.s.insertNode(T.text(`
  13505. `), !1, !1), a.s.insertNode(L, !1), q && (a.s.setCursorIn(q), (0, f.scrollIntoViewIfNeeded)(q, a.editor, a.ed)), p();
  13506. }
  13507. }), l && l.parentElement) {
  13508. for (C = 0; o > C; C += 1) {
  13509. for (var S = a.c.div(), j = 0; r > j; j += 1) S.appendChild(b[C * r + j]);
  13510. y.appendChild(S);
  13511. }
  13512. b[0] && (b[0].className = "hovered");
  13513. }
  13514. return i;
  13515. }, tooltip: "Insert table" };
  13516. }, 45842: function(_, t, e) {
  13517. Object.defineProperty(t, "__esModule", { value: !0 }), t.table = void 0, e(51057);
  13518. var n = e(17332);
  13519. function m(h) {
  13520. h.registerButton({ name: "table", group: "insert" });
  13521. }
  13522. e(30739), t.table = m, n.pluginSystem.add("table", m);
  13523. }, 79114: function(_, t, e) {
  13524. Object.defineProperty(t, "__esModule", { value: !0 });
  13525. var n = e(93166), m = e(718), h = e(40332), f = e(95963), d = e(96516);
  13526. e(77904).Icon.set("video", e(49222)), n.Config.prototype.controls.video = { popup: function(a, s, c, p) {
  13527. var l = new f.UIForm(a, [new f.UIBlock(a, [new f.UIInput(a, { name: "url", required: !0, label: "URL", placeholder: "https://", validators: ["url"] })]), new f.UIBlock(a, [(0, d.Button)(a, "", "Insert", "primary").onAction(function() {
  13528. return l.submit();
  13529. })])]), o = new f.UIForm(a, [new f.UIBlock(a, [new f.UITextArea(a, { name: "code", required: !0, label: "Embed code" })]), new f.UIBlock(a, [(0, d.Button)(a, "", "Insert", "primary").onAction(function() {
  13530. return o.submit();
  13531. })])]), r = [], i = function(u) {
  13532. a.s.restore(), a.s.insertHTML(u), p();
  13533. };
  13534. return a.s.save(), r.push({ icon: "link", name: "Link", content: l.container }, { icon: "source", name: "Code", content: o.container }), l.onSubmit(function(u) {
  13535. i((0, h.convertMediaUrlToVideoEmbed)(u.url));
  13536. }), o.onSubmit(function(u) {
  13537. i(u.code);
  13538. }), (0, m.TabsWidget)(a, r);
  13539. }, tags: ["iframe"], tooltip: "Insert youtube/vimeo video" };
  13540. }, 19889: function(_, t, e) {
  13541. Object.defineProperty(t, "__esModule", { value: !0 });
  13542. var n = e(17332);
  13543. e(79114), n.pluginSystem.add("video", function(m) {
  13544. m.registerButton({ name: "video", group: "media" });
  13545. });
  13546. }, 64401: function(_, t, e) {
  13547. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.wrapNodes = { exclude: ["hr", "style", "br"], emptyBlockAfterInit: !0 };
  13548. }, 20728: function(_, t, e) {
  13549. Object.defineProperty(t, "__esModule", { value: !0 });
  13550. var n = e(20255), m = e(57549), h = e(64968), f = e(24421), d = e(43441), a = e(17332);
  13551. e(64401);
  13552. var s = function(c) {
  13553. function p() {
  13554. var l = c !== null && c.apply(this, arguments) || this;
  13555. return l.isSuitableStart = function(o) {
  13556. return h.Dom.isText(o) && (0, f.isString)(o.nodeValue) && /[^\s]/.test(o.nodeValue) || l.isNotClosed(o) && !h.Dom.isTemporary(o);
  13557. }, l.isSuitable = function(o) {
  13558. return h.Dom.isText(o) || l.isNotClosed(o);
  13559. }, l.isNotClosed = function(o) {
  13560. return h.Dom.isElement(o) && !(h.Dom.isBlock(o) || h.Dom.isTag(o, l.j.o.wrapNodes.exclude));
  13561. }, l;
  13562. }
  13563. return n.__extends(p, c), p.prototype.afterInit = function(l) {
  13564. l.o.enter.toLowerCase() !== "br" && l.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn", this.preprocessInput, { top: !0 }).on("afterInit.wtn postProcessSetEditorValue.wtn", this.postProcessSetEditorValue);
  13565. }, p.prototype.beforeDestruct = function(l) {
  13566. l.e.off(".wtn");
  13567. }, p.prototype.postProcessSetEditorValue = function() {
  13568. var l = this.jodit;
  13569. if (l.isEditorMode()) {
  13570. for (var o = l.editor.firstChild, r = !1; o; ) {
  13571. if (o = this.checkAloneListLeaf(o, l), this.isSuitableStart(o)) {
  13572. r || l.s.save(), r = !0;
  13573. var i = l.createInside.element(l.o.enter);
  13574. for (h.Dom.before(o, i); o && this.isSuitable(o); ) {
  13575. var u = o.nextSibling;
  13576. i.appendChild(o), o = u;
  13577. }
  13578. i.normalize(), o = i;
  13579. }
  13580. o = o && o.nextSibling;
  13581. }
  13582. r && (l.s.restore(), l.e.current === "afterInit" && l.e.fire("internalChange"));
  13583. }
  13584. }, p.prototype.checkAloneListLeaf = function(l, o) {
  13585. var r = l, i = l;
  13586. do {
  13587. if (!h.Dom.isElement(i) || !h.Dom.isTag(i, "li") || h.Dom.isTag(i.parentElement, ["ul", "ol"])) break;
  13588. var u = h.Dom.findNotEmptySibling(i, !1);
  13589. h.Dom.isTag(r, "ul") ? r.appendChild(i) : r = h.Dom.wrap(i, "ul", o.createInside), i = u;
  13590. } while (i);
  13591. return r;
  13592. }, p.prototype.preprocessInput = function() {
  13593. var l = this.jodit, o = l.e.current === "afterInit";
  13594. if (l.isEditorMode() && !l.editor.firstChild && (l.o.wrapNodes.emptyBlockAfterInit || !o)) {
  13595. var r = l.createInside.element(l.o.enter), i = l.createInside.element("br");
  13596. h.Dom.append(r, i), h.Dom.append(l.editor, r), l.s.isFocused() && l.s.setCursorBefore(i), l.e.fire("internalChange");
  13597. }
  13598. }, n.__decorate([d.autobind], p.prototype, "postProcessSetEditorValue", null), n.__decorate([d.autobind], p.prototype, "preprocessInput", null), p;
  13599. }(m.Plugin);
  13600. a.pluginSystem.add("wrapNodes", s);
  13601. }, 71707: function(_, t, e) {
  13602. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.showXPathInStatusbar = !0;
  13603. }, 18238: function(_, t, e) {
  13604. Object.defineProperty(t, "__esModule", { value: !0 });
  13605. var n = e(20255);
  13606. e(64618);
  13607. var m = e(86893), h = e(60403), f = e(64968), d = e(40332), a = e(57549), s = e(81438), c = e(17332);
  13608. e(71707);
  13609. var p = function(l) {
  13610. function o() {
  13611. var r = l !== null && l.apply(this, arguments) || this;
  13612. return r.onContext = function(i, u) {
  13613. return r.menu || (r.menu = new h.ContextMenu(r.j)), r.menu.show(u.clientX, u.clientY, [{ icon: "bin", title: i === r.j.editor ? "Clear" : "Remove", exec: function() {
  13614. i !== r.j.editor ? f.Dom.safeRemove(i) : r.j.value = "", r.j.synchronizeValues();
  13615. } }, { icon: "select-all", title: "Select", exec: function() {
  13616. r.j.s.select(i);
  13617. } }]), !1;
  13618. }, r.onSelectPath = function(i, u) {
  13619. r.j.s.focus();
  13620. var v = (0, d.attr)(u.target, "-path") || "/";
  13621. if (v === "/") return r.j.execCommand("selectall"), !1;
  13622. try {
  13623. var y = r.j.ed.evaluate(v, r.j.editor, null, XPathResult.ANY_TYPE, null).iterateNext();
  13624. if (y) return r.j.s.select(y), !1;
  13625. } catch (g) {
  13626. }
  13627. return r.j.s.select(i), !1;
  13628. }, r.tpl = function(i, u, v, y) {
  13629. var g = r.j.c.fromHTML('<span class="jodit-xpath__item"><a role="button" data-path="'.concat(u, '" title="').concat(y, `" tabindex="-1"'>`).concat((0, d.trim)(v), "</a></span>")), b = g.firstChild;
  13630. return r.j.e.on(b, "click", r.onSelectPath.bind(r, i)).on(b, "contextmenu", r.onContext.bind(r, i)), g;
  13631. }, r.removeSelectAll = function() {
  13632. r.selectAllButton && (r.selectAllButton.destruct(), delete r.selectAllButton);
  13633. }, r.appendSelectAll = function() {
  13634. r.removeSelectAll(), r.selectAllButton = (0, s.makeButton)(r.j, n.__assign({ name: "selectall" }, r.j.o.controls.selectall)), r.selectAllButton.state.size = "tiny", r.container && r.container.insertBefore(r.selectAllButton.container, r.container.firstChild);
  13635. }, r.calcPathImd = function() {
  13636. if (!r.isDestructed) {
  13637. var i, u, v, y = r.j.s.current();
  13638. r.container && (r.container.innerHTML = m.INVISIBLE_SPACE), y && f.Dom.up(y, function(g) {
  13639. g && r.j.editor !== g && !f.Dom.isText(g) && (i = g.nodeName.toLowerCase(), u = (0, d.getXPathByElement)(g, r.j.editor).replace(/^\//, ""), v = r.tpl(g, u, i, r.j.i18n("Select %s", i)), r.container && r.container.insertBefore(v, r.container.firstChild));
  13640. }, r.j.editor), r.appendSelectAll();
  13641. }
  13642. }, r.calcPath = r.j.async.debounce(r.calcPathImd, 2 * r.j.defaultTimeout), r;
  13643. }
  13644. return n.__extends(o, l), o.prototype.afterInit = function() {
  13645. var r = this;
  13646. this.j.o.showXPathInStatusbar && (this.container = this.j.c.div("jodit-xpath"), this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath", this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath", function() {
  13647. r.j.o.showXPathInStatusbar && r.container && (r.j.statusbar.append(r.container), r.j.getRealMode() === m.MODE_WYSIWYG ? r.calcPath() : (r.container && (r.container.innerHTML = m.INVISIBLE_SPACE), r.appendSelectAll()));
  13648. }), this.calcPath());
  13649. }, o.prototype.beforeDestruct = function() {
  13650. this.j && this.j.events && this.j.e.off(".xpath"), this.removeSelectAll(), this.menu && this.menu.destruct(), f.Dom.safeRemove(this.container), delete this.menu, delete this.container;
  13651. }, o;
  13652. }(a.Plugin);
  13653. c.pluginSystem.add("xpath", p);
  13654. }, 89019: function(_, t, e) {
  13655. Object.defineProperty(t, "__esModule", { value: !0 }), e(61227), e(690), e(66622), e(69220), e(10444), Array.prototype.includes || (Array.prototype.includes = function(n) {
  13656. return this.indexOf(n) > -1;
  13657. }), typeof Object.assign != "function" && Object.defineProperty(Object, "assign", { value: function(n, m) {
  13658. if (n == null) throw new TypeError("Cannot convert undefined or null to object");
  13659. for (var h = Object(n), f = 1; arguments.length > f; f++) {
  13660. var d = arguments[f];
  13661. if (d != null) for (var a in d) Object.prototype.hasOwnProperty.call(d, a) && (h[a] = d[a]);
  13662. }
  13663. return h;
  13664. }, writable: !0, configurable: !0 }), Array.prototype.find || (Array.prototype.find = function(n) {
  13665. return this.indexOf(n) > -1 ? n : void 0;
  13666. }), String.prototype.endsWith || (String.prototype.endsWith = function(n) {
  13667. return this[this.length - 1] === n;
  13668. });
  13669. }, 15261: function(_, t, e) {
  13670. Object.defineProperty(t, "__esModule", { value: !0 }), t.valign = t.upload = t.update = t.unlock = t.settings = t.save = t.right = t.resize_handler = t.plus = t.pencil = t.ok = t.lock = t.left = t.info_circle = t.folder = t.file = t.eye = t.dots = t.chevron = t.check = t.center = t.cancel = t.bin = t.angle_up = t.angle_right = t.angle_left = t.angle_down = void 0;
  13671. var n = e(1755);
  13672. t.angle_down = n;
  13673. var m = e(74911);
  13674. t.angle_left = m;
  13675. var h = e(8805);
  13676. t.angle_right = h;
  13677. var f = e(16547);
  13678. t.angle_up = f;
  13679. var d = e(10856);
  13680. t.bin = d;
  13681. var a = e(98441);
  13682. t.cancel = a;
  13683. var s = e(52488);
  13684. t.center = s;
  13685. var c = e(9370);
  13686. t.check = c;
  13687. var p = e(66543);
  13688. t.chevron = p;
  13689. var l = e(608);
  13690. t.dots = l;
  13691. var o = e(42840);
  13692. t.eye = o;
  13693. var r = e(79096);
  13694. t.file = r;
  13695. var i = e(33014);
  13696. t.folder = i;
  13697. var u = e(91677);
  13698. t.info_circle = u;
  13699. var v = e(8259);
  13700. t.left = v;
  13701. var y = e(64467);
  13702. t.lock = y;
  13703. var g = e(86934);
  13704. t.ok = g;
  13705. var b = e(76133);
  13706. t.pencil = b;
  13707. var w = e(45519);
  13708. t.plus = w;
  13709. var C = e(90265);
  13710. t.resize_handler = C;
  13711. var S = e(81279);
  13712. t.right = S;
  13713. var j = e(68899);
  13714. t.save = j;
  13715. var E = e(70744);
  13716. t.settings = E;
  13717. var x = e(19201);
  13718. t.unlock = x;
  13719. var k = e(84930);
  13720. t.update = k;
  13721. var I = e(99704);
  13722. t.upload = I;
  13723. var M = e(2304);
  13724. t.valign = M;
  13725. }, 80078: function(_) {
  13726. _.exports = { "copy-format": "نسخ التنسيق" };
  13727. }, 16986: function(_) {
  13728. _.exports = { "copy-format": "Kopírovat formát" };
  13729. }, 59347: function(_) {
  13730. _.exports = { "copy-format": "Format kopierenт" };
  13731. }, 63640: function(_) {
  13732. _.exports = { "copy-format": "Copiar formato" };
  13733. }, 53434: function(_) {
  13734. _.exports = { "copy-format": "کپی کردن قالب" };
  13735. }, 85638: function(_) {
  13736. _.exports = { "copy-format": "Format de copie" };
  13737. }, 31743: function(_) {
  13738. _.exports = { "copy-format": "העתק עיצוב" };
  13739. }, 66219: function(_) {
  13740. _.exports = { "copy-format": "Formátum másolás" };
  13741. }, 50331: function(_) {
  13742. _.exports = { "copy-format": "salin format" };
  13743. }, 25582: function(_) {
  13744. _.exports = { "copy-format": "Copia il formato" };
  13745. }, 82066: function(_) {
  13746. _.exports = { "copy-format": "copyformat" };
  13747. }, 71925: function(_) {
  13748. _.exports = { "copy-format": "복사 형식" };
  13749. }, 65274: function(_) {
  13750. _.exports = { "copy-format": "opmaak kopiëren" };
  13751. }, 58548: function(_) {
  13752. _.exports = { "copy-format": "format kopii" };
  13753. }, 82958: function(_) {
  13754. _.exports = { "copy-format": "Copiar formato" };
  13755. }, 52315: function(_) {
  13756. _.exports = { "copy-format": "Копировать формат" };
  13757. }, 87727: function(_) {
  13758. _.exports = { "copy-format": "Kopyalama Biçimi" };
  13759. }, 9396: function(_) {
  13760. _.exports = { "copy-format": "复制格式" };
  13761. }, 28765: function(_) {
  13762. _.exports = { "copy-format": "複製格式" };
  13763. }, 47762: function(_) {
  13764. _.exports = { "Line height": "ارتفاع الخط" };
  13765. }, 97495: function(_) {
  13766. _.exports = { "Line height": "Výška čáry" };
  13767. }, 80131: function(_) {
  13768. _.exports = { "Line height": "Zeilenhöhe" };
  13769. }, 1201: function(_) {
  13770. _.exports = { "Line height": "Altura de la línea" };
  13771. }, 89912: function(_) {
  13772. _.exports = { "Line height": "ارتفاع خط" };
  13773. }, 3405: function(_) {
  13774. _.exports = { "Line height": "Hauteur de ligne" };
  13775. }, 14129: function(_) {
  13776. _.exports = { "Line height": "גובה שורה" };
  13777. }, 93729: function(_) {
  13778. _.exports = { "Line height": "Vonal magassága" };
  13779. }, 16106: function(_) {
  13780. _.exports = { "Line height": "Tinggi baris" };
  13781. }, 89690: function(_) {
  13782. _.exports = { "Line height": "Altezza linea" };
  13783. }, 33216: function(_) {
  13784. _.exports = { "Line height": "ラインの高さ" };
  13785. }, 17282: function(_) {
  13786. _.exports = { "Line height": "선 높이" };
  13787. }, 91761: function(_) {
  13788. _.exports = { "Line height": "Lijnhoogte" };
  13789. }, 61675: function(_) {
  13790. _.exports = { "Line height": "Wysokość linii" };
  13791. }, 69709: function(_) {
  13792. _.exports = { "Line height": "Altura da linha" };
  13793. }, 82591: function(_) {
  13794. _.exports = { "Line height": "Высота линии" };
  13795. }, 87649: function(_) {
  13796. _.exports = { "Line height": "Çizgi yüksekliği" };
  13797. }, 60268: function(_) {
  13798. _.exports = { "Line height": "线高" };
  13799. }, 58214: function(_) {
  13800. _.exports = { "Line height": "ความสูงเส้น" };
  13801. }, 5586: function(_) {
  13802. _.exports = { Spellcheck: "التدقيق الإملائي" };
  13803. }, 66023: function(_) {
  13804. _.exports = { Spellcheck: "Kontrola pravopisu" };
  13805. }, 65860: function(_) {
  13806. _.exports = { Spellcheck: "Rechtschreibprüfung" };
  13807. }, 86055: function(_) {
  13808. _.exports = { Spellcheck: "Corrección ortográfica" };
  13809. }, 50037: function(_) {
  13810. _.exports = { Spellcheck: "غلطیابی املایی" };
  13811. }, 7118: function(_) {
  13812. _.exports = { Spellcheck: "Vérification Orthographique" };
  13813. }, 30298: function(_) {
  13814. _.exports = { Spellcheck: "בדיקת איות" };
  13815. }, 52107: function(_) {
  13816. _.exports = { Spellcheck: "Helyesírás-ellenőrzés" };
  13817. }, 31240: function(_) {
  13818. _.exports = { Spellcheck: "Spellchecking" };
  13819. }, 4101: function(_) {
  13820. _.exports = { Spellcheck: "Controllo ortografico" };
  13821. }, 69286: function(_) {
  13822. _.exports = { Spellcheck: "スペルチェック" };
  13823. }, 13402: function(_) {
  13824. _.exports = { Spellcheck: "맞춤법 검사" };
  13825. }, 89574: function(_) {
  13826. _.exports = { Spellcheck: "Spellingcontrole" };
  13827. }, 63630: function(_) {
  13828. _.exports = { Spellcheck: "Sprawdzanie pisowni" };
  13829. }, 72212: function(_) {
  13830. _.exports = { Spellcheck: "Verificação ortográfica" };
  13831. }, 82570: function(_) {
  13832. _.exports = { Spellcheck: "Проверка орфографии" };
  13833. }, 19323: function(_) {
  13834. _.exports = { Spellcheck: "Yazım denetimi" };
  13835. }, 50279: function(_) {
  13836. _.exports = { Spellcheck: "拼写检查" };
  13837. }, 98364: function(_) {
  13838. _.exports = { Spellcheck: "สะกดคำ" };
  13839. }, 54261: function(_) {
  13840. _.exports = { symbols: "رمز" };
  13841. }, 60425: function(_) {
  13842. _.exports = { symbols: "symbol" };
  13843. }, 7057: function(_) {
  13844. _.exports = { symbols: "Symbol" };
  13845. }, 48356: function(_) {
  13846. _.exports = { symbols: "Símbolo" };
  13847. }, 11428: function(_) {
  13848. _.exports = { symbols: "سمبل" };
  13849. }, 29084: function(_) {
  13850. _.exports = { symbols: "caractère" };
  13851. }, 22876: function(_) {
  13852. _.exports = { symbols: "תו מיוחד" };
  13853. }, 20890: function(_) {
  13854. _.exports = { symbols: "Szimbólum" };
  13855. }, 75987: function(_) {
  13856. _.exports = { symbols: "simbol" };
  13857. }, 60379: function(_) {
  13858. _.exports = { symbols: "Simbolo" };
  13859. }, 99950: function(_) {
  13860. _.exports = { symbols: "symbol" };
  13861. }, 60934: function(_) {
  13862. _.exports = { symbols: "기호" };
  13863. }, 21994: function(_) {
  13864. _.exports = { symbols: "symbool" };
  13865. }, 38128: function(_) {
  13866. _.exports = { symbols: "symbol" };
  13867. }, 71515: function(_) {
  13868. _.exports = { symbols: "Símbolo" };
  13869. }, 58194: function(_) {
  13870. _.exports = { symbols: "символ" };
  13871. }, 65802: function(_) {
  13872. _.exports = { symbols: "Sembol" };
  13873. }, 86628: function(_) {
  13874. _.exports = { symbols: "符号" };
  13875. }, 32210: function(_) {
  13876. _.exports = { symbols: "符號" };
  13877. }, 52378: function(_) {
  13878. _.exports = { assert() {
  13879. } };
  13880. } }, le = {};
  13881. function $(_) {
  13882. var t = le[_];
  13883. if (t !== void 0) return t.exports;
  13884. var e = le[_] = { exports: {} };
  13885. return ue[_].call(e.exports, e, e.exports, $), e.exports;
  13886. }
  13887. $.m = ue, Z = [], $.O = function(_, t, e, n) {
  13888. if (!t) {
  13889. var m = 1 / 0;
  13890. for (a = 0; Z.length > a; a++) {
  13891. t = Z[a][0], e = Z[a][1], n = Z[a][2];
  13892. for (var h = !0, f = 0; t.length > f; f++) (!1 & n || m >= n) && Object.keys($.O).every(function(s) {
  13893. return $.O[s](t[f]);
  13894. }) ? t.splice(f--, 1) : (h = !1, m > n && (m = n));
  13895. if (h) {
  13896. Z.splice(a--, 1);
  13897. var d = e();
  13898. d !== void 0 && (_ = d);
  13899. }
  13900. }
  13901. return _;
  13902. }
  13903. n = n || 0;
  13904. for (var a = Z.length; a > 0 && Z[a - 1][2] > n; a--) Z[a] = Z[a - 1];
  13905. Z[a] = [t, e, n];
  13906. }, $.g = function() {
  13907. if (typeof globalThis == "object") return globalThis;
  13908. try {
  13909. return this || new Function("return this")();
  13910. } catch (_) {
  13911. if (typeof window == "object") return window;
  13912. }
  13913. }(), $.o = function(_, t) {
  13914. return Object.prototype.hasOwnProperty.call(_, t);
  13915. }, $.r = function(_) {
  13916. typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(_, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(_, "__esModule", { value: !0 });
  13917. }, function() {
  13918. var _ = { 670: 0 };
  13919. $.O.j = function(n) {
  13920. return _[n] === 0;
  13921. };
  13922. var t = function(n, m) {
  13923. var h, f, d = m[0], a = m[1], s = m[2], c = 0;
  13924. if (d.some(function(l) {
  13925. return _[l] !== 0;
  13926. })) {
  13927. for (h in a) $.o(a, h) && ($.m[h] = a[h]);
  13928. if (s) var p = s($);
  13929. }
  13930. for (n && n(m); d.length > c; c++) $.o(_, f = d[c]) && _[f] && _[f][0](), _[f] = 0;
  13931. return $.O(p);
  13932. }, e = self.webpackChunkjodit = self.webpackChunkjodit || [];
  13933. e.forEach(t.bind(null, 0)), e.push = t.bind(null, e.push.bind(e));
  13934. }();
  13935. var ie = {};
  13936. return function() {
  13937. var _ = ie;
  13938. Object.defineProperty(_, "__esModule", { value: !0 }), _.CommitMode = _.Jodit = void 0, $(90176), typeof window != "undefined" && $(89019);
  13939. var t = $(37920);
  13940. Object.defineProperty(_, "Jodit", { enumerable: !0, get: function() {
  13941. return t.Jodit;
  13942. } });
  13943. var e = $(26435), n = $(43441), m = $(86893), h = $(87837), f = $(15261);
  13944. $(70022), $(91147), Object.keys(m).forEach(function(a) {
  13945. t.Jodit[a] = m[a];
  13946. });
  13947. var d = function(a) {
  13948. return a !== "__esModule";
  13949. };
  13950. Object.keys(f).filter(d).forEach(function(a) {
  13951. h.Icon.set(a.replace("_", "-"), f[a]);
  13952. }), Object.keys(h).filter(d).forEach(function(a) {
  13953. t.Jodit.modules[a] = h[a];
  13954. }), Object.keys(n).filter(d).forEach(function(a) {
  13955. t.Jodit.decorators[a] = n[a];
  13956. }), ["Confirm", "Alert", "Prompt"].forEach(function(a) {
  13957. t.Jodit[a] = h[a];
  13958. }), Object.keys(e.default).filter(d).forEach(function(a) {
  13959. t.Jodit.lang[a] = e.default[a];
  13960. }), _.CommitMode = function() {
  13961. };
  13962. }(), $.O(ie);
  13963. }();
  13964. });
  13965. })(Pe);
  13966. var Te = Pe.exports;
  13967. const Ye = { class: "s-editor-wrap" }, Ge = {
  13968. __name: "SEditor",
  13969. props: {
  13970. modelValue: String,
  13971. config: { type: Object, default: () => ({}) }
  13972. },
  13973. emits: ["update:modelValue"],
  13974. setup(te, { emit: ee }) {
  13975. var e, n;
  13976. let Z = xe(null);
  13977. const ue = xe(null), le = te, $ = ee;
  13978. let ie;
  13979. const _ = {
  13980. theme: "default",
  13981. //主题:默认default,暗色dark
  13982. placeholder: window.$l("请输入内容..."),
  13983. zIndex: 10,
  13984. language: ((n = (e = window.$utils) == null ? void 0 : e.ls) == null ? void 0 : n.get("lang")) === "en" ? "en" : "zh_cn",
  13985. width: "100%",
  13986. height: "100%",
  13987. minHeight: 400,
  13988. saveModeInCookie: !1,
  13989. toolbarSticky: !1,
  13990. //工具栏设置sticky
  13991. statusbar: !1,
  13992. //底部状态栏(左:html元素;右:单词数,字符数统计)
  13993. image: {
  13994. //图片相关配置
  13995. editSrc: !1,
  13996. editStyle: !1,
  13997. useImageEditor: !1
  13998. },
  13999. link: {
  14000. noFollowCheckbox: !1,
  14001. modeClassName: ""
  14002. },
  14003. i18n: {
  14004. zh_cn: {
  14005. top: "上",
  14006. right: "右",
  14007. bottom: "下",
  14008. left: "左",
  14009. Title: "标题",
  14010. Link: "链接",
  14011. "Line height": "行高",
  14012. Alternative: "描述",
  14013. "Alternative text": "描述",
  14014. "Lower Alpha": "小写英文字母",
  14015. "Lower Greek": "小写希腊字母",
  14016. "Lower Roman": "小写罗马数字",
  14017. "Upper Alpha": "大写英文字母",
  14018. "Upper Roman": "大写罗马数字"
  14019. }
  14020. },
  14021. createAttributes: {
  14022. blockquote: {
  14023. style: `
  14024. display: block;
  14025. padding: 16px;
  14026. margin: 0 0 24px;
  14027. border-left: 8px solid #dddfe4;
  14028. background: #eef0f4;
  14029. color: rgba(0, 0, 0, 0.5);
  14030. overflow: auto;
  14031. word-break: break-word !important;`,
  14032. class: "blockquote-box"
  14033. //在css中编写类名对应的样式
  14034. }
  14035. },
  14036. sourceEditorCDNUrlsJS: [
  14037. // "https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js",
  14038. "https://cdn.staticfile.org/ace/1.4.2/ace.js"
  14039. ],
  14040. beautifyHTMLCDNUrlsJS: [
  14041. "https://cdn.staticfile.org/js-beautify/1.14.4/beautifier.min.js",
  14042. "https://cdn.staticfile.org/js-beautify/1.14.4/beautify-html.min.js"
  14043. ],
  14044. disablePlugins: "stat, selectall, hr",
  14045. //要禁用的插件,以逗号分割。stat是底部字符数与单词数统计
  14046. buttons: `source,
  14047. bold,
  14048. italic,
  14049. underline,
  14050. strikethrough,
  14051. eraser,
  14052. superscript,
  14053. subscript,
  14054. ol,
  14055. ul,
  14056. indent,
  14057. outdent,
  14058. left,
  14059. font,
  14060. fontsize,
  14061. paragraph,
  14062. brush,
  14063. lineHeight,
  14064. image,
  14065. file,
  14066. video,
  14067. copyformat,
  14068. table,
  14069. link,
  14070. symbols,
  14071. undo,
  14072. redo,
  14073. fullsize,
  14074. preview`,
  14075. controls: {
  14076. font: {
  14077. list: Te.Jodit.atom({
  14078. "Microsoft YaHei": "微软雅黑",
  14079. KaiTi: "楷体",
  14080. 方正喵呜体: "方正喵呜体",
  14081. "思源宋体 Heavy": "思源宋体",
  14082. SimHei: "黑体",
  14083. NSimSun: "新宋体",
  14084. 华文行楷: "华文行楷"
  14085. })
  14086. }
  14087. },
  14088. uploader: {
  14089. url: "/api/uploads",
  14090. //上传地址
  14091. isSuccess(m) {
  14092. return m;
  14093. },
  14094. defaultHandlerSuccess(m) {
  14095. console.log("defaultHandlerSuccess", m), m.forEach((h) => {
  14096. this.s.insertImage(h.url);
  14097. });
  14098. },
  14099. defaultHandlerError(m) {
  14100. console.log("defaultHandlerError", m), this.jodit.events.fire("errorMessage", m);
  14101. },
  14102. error(m) {
  14103. console.log("error", m), this.jodit.events.fire("errorMessage", window.$l("文件上传失败"));
  14104. }
  14105. }
  14106. }, t = (m) => {
  14107. const h = (f) => {
  14108. const d = f.selection && f.selection.sel;
  14109. if (!d || !d.rangeCount) return null;
  14110. let a = d.getRangeAt(0).startContainer;
  14111. for (; a && a !== f.o.editor; ) {
  14112. if (a.tagName === "IMG") return a;
  14113. a = a.parentNode;
  14114. }
  14115. return null;
  14116. };
  14117. return ke(pe({}, m && typeof m == "object" ? m : {}), {
  14118. imageAdjust: {
  14119. name: "imageAdjust",
  14120. tooltip: window.$l("调整图片宽高"),
  14121. isDisabled: (f) => !h(f),
  14122. exec: (f) => {
  14123. var a;
  14124. const d = h(f);
  14125. if (!d) {
  14126. window.$message.warning(window.$l("请先选中一张图片"));
  14127. return;
  14128. }
  14129. (a = ue.value) == null || a.open({ editor: f, image: d });
  14130. }
  14131. }
  14132. });
  14133. };
  14134. return Ne(() => {
  14135. const m = pe(pe({}, _), le.config);
  14136. if (le.config.imageAdjust) {
  14137. const h = String(m.buttons || "").split(",").map((d) => d.trim()).filter(Boolean), f = h.indexOf("image");
  14138. h.splice(f === -1 ? h.length : f + 1, 0, "imageAdjust"), m.buttons = h.join(","), m.controls = t(m.controls);
  14139. }
  14140. ie = Te.Jodit.make("#editorRef", m), ie.value = le.modelValue, ie.events.on("change", (h) => {
  14141. $("update:modelValue", h);
  14142. });
  14143. }), Re(() => {
  14144. ie.destruct(), ie = null;
  14145. }), Be(
  14146. () => le.modelValue,
  14147. (m) => {
  14148. ie.value !== m && (ie.value = m);
  14149. }
  14150. ), (m, h) => (Ie(), qe("div", Ye, [
  14151. Fe("textarea", {
  14152. id: "editorRef",
  14153. ref_key: "editorRef",
  14154. ref: Z,
  14155. name: "editor"
  14156. }, null, 512),
  14157. le.config.imageAdjust ? (Ie(), He(Ue, {
  14158. key: 0,
  14159. ref_key: "imageAdjustRef",
  14160. ref: ue
  14161. }, null, 512)) : Ve("", !0)
  14162. ]));
  14163. }
  14164. }, Ze = /* @__PURE__ */ We(Ge, [["__scopeId", "data-v-55c35445"]]);
  14165. export {
  14166. Ze as default
  14167. };