12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497 |
- import {
- d as Kr,
- r as dt,
- y as $i,
- f as k,
- t as It,
- F as rn,
- u as ca,
- a as to,
- e as wr,
- z as eu,
- n as en,
- c as va,
- A as nu,
- B as pa,
- b as au,
- k as Gt,
- N as iu,
- g as En,
- x as Gn,
- h as ou,
- C as su,
- D as uu,
- E as lu,
- G as fu,
- H as ei,
- I as cu,
- J as ro,
- K as vu,
- v as Rr,
- m as pu,
- L as ni,
- M as ai,
- O as du,
- Q as gu,
- T as hu,
- R as Au
- } from './index-c6117d5a-1694098095353.js';
- import { d as ii } from './teacherIcon-b8e3946d-1694098095353.js';
- import { F as mu } from './forgotPassword-7bd9b367-1694098095353.js';
- import { C as Su } from './index-594251d9-1694098095353.js';
- import { p as Cu } from './index-e0b82089-1694098095353.js';
- import { P as oi, a as Eu, T as yu } from './index-fb73b38f-1694098095353.js';
- import { v as Du } from './urlUtils-b7caaee8-1694098095353.js';
- import { P as bu } from './updateSubject-3de55e1e-1694098095353.js';
- import { A as xu } from './index-33b17e0f-1694098095353.js';
- import './api-6715507e-1694098095353.js';
- import './api-bc585431-1694098095353.js';
- import './contants-bcad6247-1694098095353.js';
- import './Slider-9142c741-1694098095353.js';
- import './index-67525603-1694098095353.js';
- import './isCollaose-22cdac63-1694098095353.js';
- import './index-2a4e5e1e-1694098095353.js';
- import './index-8aa6eda1-1694098095353.js';
- import './index-685d9c6b-1694098095353.js';
- import './index-8e662bc5-1694098095353.js';
- import './catchData-94fc1d75-1694098095353.js';
- import './index-cb198c02-1694098095353.js';
- import './ding-8e9054d5-1694098095353.js';
- import './state-1d9c0747-1694098095353.js';
- import './index.module-c3699557-1694098095353.js';
- import './api-dea43a19-1694098095353.js';
- import './index-1ebe8776-1694098095353.js';
- const wu = '_wrap_1vggn_1',
- Ru = '_WrapcoreView_1vggn_9',
- Bu = '_silder_1vggn_14',
- Mu = '_logoWrap_1vggn_23',
- Iu = '_logo_1vggn_23',
- Tu = '_sliderList_1vggn_30',
- Ou = '_silderItem_1vggn_33',
- Pu = '_radiusIcon_1vggn_44',
- ku = '_isActiveItem_1vggn_63',
- Gu = '_Wrapcore_1vggn_9',
- Nu = '_layoutTop_1vggn_74',
- Fu = '_layoutLeft_1vggn_84',
- zu = '_schoolIcon_1vggn_89',
- Hu = '_layoutRight_1vggn_101',
- Lu = '_messageBadge_1vggn_106',
- Uu = '_messageIcon_1vggn_109',
- Vu = '_animation_1vggn_114',
- Wu = '_Tada_1vggn_1',
- Yu = '_messageBadgeNo_1vggn_120',
- Qu = '_messageBadgeHide_1vggn_121',
- Xu = '_line_1vggn_147',
- qu = '_mesgWrap_1vggn_153',
- Ku = '_teacherIcon_1vggn_159',
- Ju = '_rotueLeft_1vggn_165',
- ju = '_rotueRight_1vggn_170',
- Zu = '_optons_1vggn_175',
- _u = '_propWrap_1vggn_197',
- $u = '_teacherInfo_1vggn_206',
- tl = '_teacherName_1vggn_220',
- rl = '_propWrapList_1vggn_230',
- el = '_propWrapItem_1vggn_235',
- nl = '_smallIcon_1vggn_247',
- al = '_smallTitle_1vggn_253',
- il = '_logoutInfo_1vggn_258',
- ol = '_toolboxImg_1vggn_273',
- sl = '_isDragIng_1vggn_282',
- ul = '_booxToolWrap_1vggn_292',
- ll = '_booxToolItem_1vggn_307',
- fl = '_booxToolDisabled_1vggn_316',
- cl = '_setTimeImage_1vggn_332',
- vl = '_beatImage_1vggn_338',
- pl = '_changePwdModal_1vggn_344',
- dl = '_imChatModal_1vggn_347',
- gl = '_modeWrap_1vggn_350',
- hl = '_imGroupContainer_1vggn_355',
- Al = '_container_1vggn_356',
- ml = '_hideModal_1vggn_362',
- Sl = '_showClass_1vggn_365',
- Cl = '_showModalTone_1vggn_370',
- El = '_studentRemove_1vggn_373',
- yl = '_suggestWrap_1vggn_385',
- q = {
- wrap: wu,
- WrapcoreView: Ru,
- silder: Bu,
- logoWrap: Mu,
- logo: Iu,
- sliderList: Tu,
- silderItem: Ou,
- radiusIcon: Pu,
- isActiveItem: ku,
- Wrapcore: Gu,
- layoutTop: Nu,
- layoutLeft: Fu,
- schoolIcon: zu,
- layoutRight: Hu,
- messageBadge: Lu,
- messageIcon: Uu,
- animation: Vu,
- Tada: Wu,
- messageBadgeNo: Yu,
- messageBadgeHide: Qu,
- line: Xu,
- mesgWrap: qu,
- teacherIcon: Ku,
- rotueLeft: Ju,
- rotueRight: ju,
- optons: Zu,
- propWrap: _u,
- teacherInfo: $u,
- teacherName: tl,
- propWrapList: rl,
- propWrapItem: el,
- smallIcon: nl,
- smallTitle: al,
- logoutInfo: il,
- toolboxImg: ol,
- isDragIng: sl,
- booxToolWrap: ul,
- booxToolItem: ll,
- booxToolDisabled: fl,
- setTimeImage: cl,
- beatImage: vl,
- changePwdModal: pl,
- imChatModal: dl,
- modeWrap: gl,
- imGroupContainer: hl,
- container: Al,
- hideModal: ml,
- showClass: Sl,
- showModalTone: Cl,
- studentRemove: El,
- suggestWrap: yl
- },
- Dl = '' + new URL('logo-654be404.png', import.meta.url).href,
- bl =
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAABg9JREFUaN7tmk+IVVUcxz+/c9846sxoWRY6FIiJo+mimoQgMAnb5yIkAnNT4K59C6N2Qm0iDBoMWtSmvZuEhFB3lVqYuoiY0vyvOc343j2nxZz7PPN7v3PvG5tavQOXe+a88/vd8/39/907MBiDMRiDkQxp3PF1WEfJFoSVABTJb614L9TfwiU2cJpNMmfy/CGMcJdJCsayvPQc/qLgHFvljwcD9EXYjHAYwksI4OLu3FyvFdJG+Ig1vMekzABwMqxijg8R9iGh1Rffag4gEgh8Q4sDbJXz/QM6EvYifAZhZMGBK8YuA8QGdozd7OYsLS5zAgnPZgVhrTsFah7YLMJ+tslXzYCOhE14foSwvC9N1IHt7pN3EEaR8H4tfT/P6p5Y7rKM55iQcxhecH/c4xMkgvEJM58wqw5frYV4VftCj2RfIzDcpanoQ8InpSHh69Tzu3vCCG05DOzKa+jTsI7ANATpkXqTjWvTWEAvJQ6HBOmhqQB14n0oXsMGz0KdR4CWrE8DxUINeTbjIxivpO6AUknMGRK2NOVD0RWfB27E60682nGvT+4tYAx4FBgH1idgUm0FtgAZQCWjXTNITUubQakOr00Qw1RvAVeAm5Hex6uSvE8AE/dcB64BP0deG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rFlVdV2lrembo+lBdkmnvn1YyyFEjpmgbqtsXzRoqe6SGi33xU++4y0+tgqRheOgeEbZAzLV89stRVk0HLJOO4WhJetjl0Xfkike4xVE/OI+Gh8ILyK8QWACGKUA3ozRzvIxz0P4sHFBX1OqcKuTdZCLeG4u2JNG2k43MM3g+Qn4ktfl2wf/Cr6Y8VtYwZ+cIoTtZrcbdBMnZ1nNju5H5SUYbkkBPSF/s5w9OLmwwKwssxG5SItXlxLM0gMCeFousJpJCpmikLme6FfIPQqZosXz7LQ/zf+3/3jxb8b5sJY7vEzJxvjR+AxwnB1yicEYjMEYjP9j/AOshrOJdrDqdgAAAABJRU5ErkJggg==',
- xl =
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAAXNSR0IArs4c6QAAALpQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8hwkwQAAAD10Uk5TAAECBAUHCwwOERcYGR4iIycxMjM1Ojw9P0BJTFFTWF5mbW93goyQl5mor7O8vb/AxszR1Nnc6O3u9fj9/ikUCf8AAAFLSURBVEjH7ZZpc4IwEIYR8KQWz5YaRfBW8MAbkf//t9otQhLDCJnRfinvt312X5Ld2RkiCJlovWkIS6sGsEpB5c6i2lef0q4viv0dza62Snp012dkWSxzdeKcGE+8XHyW7aeWHc0A+jmbRM+GE5Q4BgHNM/QVTuML8iY1GPnX5cgUNIFptwBBgOhxGsAMmlF1caZE9l9MTWBNTpP4s3mWyGkShFbrnqQwsXqRKa/reV6TtPH9jcRpagNrZ7v3h6YasBrvRow8b8S/e6XS8xe2A0Ev2dSDus4tqEOwkJI88gLq6uFGnyA6OljLbpDpLgl4hKpT9O0B83PwGsAbHpMYRAfn1kxyDnzO4HUOX7c4Y9KTd3XCwFmR6vJzuoouvyfr9hFeTT8ejKmwxZ5tIe3zQDmEnoOS/lFRHl/AchmXud4iFTQcokr2Jnusb1r2tiP//VirA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5xT8Nb0VYT7CVEh2EeB+YIGVGeM8lzxjae9gkBL7eUSOM3FNXNfu9S+4Sk49123KbgAAAABJRU5ErkJggg==',
- Rl =
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAAXNSR0IArs4c6QAAATJQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////LddBWgAAAGV0Uk5TAAIDBAUGBwkKDhASExQVGBkdHyMmKC0uLzEyOj0+P0BGS0xNVVheYGNmaWprbHF7fYGGkZOUlZaXmZqfo6aorbC0tba5u7y9v8DBx8jKy8zN0tTb3N3f4+nq7fDx8vP3+Pn6/f6FbYleAAACEklEQVQYGdXB10IaURQF0I2IBQELdkXsSrEiSKwktomJIjYGE7HA/v9fyLkXaQIz5NG18CW5VnYuLnZWXPgPy4/UHpfRLneKFSk32jL5wBoPk2hD6JVK8f6+SOU1BDs9B9R+jQFjv6kd9MDSyC21WCdEZ4za7QgsLOWpPC/iw+IzlfwSWnHFqWWGUTGcoRZ3oamhK2r73ajRvU/taghNzD1ReVnFJ6svVJ7m8FnHdpHK3TgajN9RKW53oE6/Qe24F030HlMz+lHDn6Xyvo4W1t+pZP2oGMxSyU6hpakslewgyo6onHphwXtK5QgfJqhsOWDJsUVlAiUbFEnYSlJsoOSEZL4LtrryJE9QckEygzZkSJ6j5AdJE20wSX5HyS6FB7Y8FLsoiVIEYCtAEUVJkCIMW2GKIEp8FHHYilP48CFH0oAtg2QOZT9JmrBlkjRQlqDwQhtNF1inkB6F5qVIoCxCMQMtzQZpaDMUEZTNUESg/WWDP9AiFDMo81IkoO2xwR60BIUXFSZJA5ozlPxWJxlyQjNImqgySOZgI0fSQFWcwgdLPoo4qsIUQVgKUoRRFaCIwlKUIoAqD0UClnYpPKhhkryEpUuSJmqdk3zrg4W+N5LnqLVJcehAS45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9iiaWHlKs7SqZlKZ10bexmTDoWcpGA7T/pg2h94Pa8TwAxdphGmOABsarEud9jVzbjz/jkrCAtsZp5tzQdeIxrR//LQOKaXdCeBOUp2UWoYMOwyYfBt/y+AIBXKRcY4wg75Zhj2wjq2YA7V3aiGoc5SNXHi4M7TALqbVeaGZS+sQ6rbksch5PvObpZe+S3dmrb+94CUd93Ta00cajWd9WA6s/3A3huWvXJoQBt4juvyBbALqTdEW1ipJp7jebfn3LKhnbwzcnMjGtGI7oj+BaDf7wKbOrbiAAAAAElFTkSuQmCC',
- Tl =
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAAXNSR0IArs4c6QAAAJxQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////kyDQZAAAADN0Uk5TAAIECQsMDxsjJygtMjU3P0hLTE9VWltdY2Z+f4WKjo+Rk5eZmq24vMTM3+Tp8PH2+Pr9lQIL0gAAAQBJREFUSMftln0TgUAQxgsRSeQlF0IKFVL3/b8bHSK6rtsxZsz0/Lc7+5trnr3bTRAqvUvW9AJp8ichmT5myDelLKMGuIQCNcOEuJTCF0oKcEkFzy+ckYSLioxALikyU4h4YLDcNYgbqdfkHHZPyFkP57UkQGwIJXXaPdCTQGdDmbpvQe1xixvqRfg8b3BCC9LICR+0vvV/3wVAOF6K/BDGQwhkAKBdnRs6TEUOI6wkE1lNLssH18S2w3uNRqv+jy4sGwI9QtBzBw0WwYSMMNCwBI1l2AKArRrYUvsHKV6c70HsKVTIo1vnUaETHTpSIYcOOVSohuxNrmxUq37OcnQBuDed1YUqBEkAAAAASUVORK5CYII=',
- Ol =
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAAXNSR0IArs4c6QAAAnxQTFRFAAAAAGv/AHD/AIr/AI//AJT/AJn/AJ7/AKP/AKj/AML/AMf/AMz/ANH/AGj/AGv/AG//AHL/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tzfw/2oj4epKrFMjL0O5CAb17tIXrq7QhJH30FF35DCkmhUEiSdPvrHixaW4bMxirw63z5oNVzxbB3ypP/+hdQkdw4WB9R+AAAAABJRU5ErkJggg==',
- Pl =
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAAXNSR0IArs4c6QAAAFRQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////MF88lgAAABt0Uk5TAAgKExofJjI/QEFMTWFlaYKip6irsLjo7PX2C7BfrQAAAM1JREFUSMftltsOwiAMQOu8oJbLZN75//80JKKwjg1Qoyb0rSc7GevabgB/EAx7wQhfz3qONiQ04ZdleB8zEIzwQyDhkISE76YlASACcJpTqX0+c2tzBaB83i8E3o8T5E7yOCz2x1Wu1JyNuTaZ0tbmm0wpuK5KL0tTbeQ4jjWsBJCR7o9LHICPSYlD+ODRce8s7yJrwC0QobyQ3C0WLn0ukH1p7+Ufr6QQRSUvernlbVTUsHXcq/SBvUc+1CldjnH+3r2nx3jyD1XAfztuUOl9K6RVlMIAAAAASUVORK5CYII=',
- kl =
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAACIVJREFUaEPdmn+QVWUZxz/PWVZAVmQ3WHZXVkQifu0FbYmZnQ0LI/+gxDGHJSE1pYk25e7GZCyxEkUDiBE/hkArtZSSgaaSZhprxGXSbLRJA3Gy2MkRCgitQdP4IezTvPfec3nvue/5cXfXmuHduXPvOed93/N8z/d5vs/zvmeFC6zJBYaH/gH0slZxmpkolwN1SObTg3Ak93mNIXQxVt58rx9g7wG9qMM4zW3ADcAMRAdkHo8/o/87fyzvInTxF37OXh5lq7z9XoArHdBBHcgx7kJYjmhlxijPMs3M6B/7s/vHB4Dfmb5yHOEbXMV3WSTv9iew0gDt1RkI2xE1rpVttvE2KzZTpt9B4GlAcyyab0+6gU+zTf7QX6CSA+rSzwFbQcuLXCvz0K2PfWx+H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bxXEN5hZhh1+rJ7X5ftk1s286/pypreX83r+NnNpQuzAxuNLvy0Og9smN3zRz8Gulrjm/P9WLdrt48UnnmVB6bsZXxC89rfa6GkqJbLb3Sd/LUtj+dd3MsxVBirNPRG8cqz83UTrIPvSzVUFJ8o6X31ckLu8+uJ/tQy4UY8sVb53Gh2ZGXRusByozXWdhIwTn378a6+2TJyefOSQ9lamGExg002nrHSH1n+y6O759lPQhDvvDmkd7Svnxvxq7OYiT5m2AM+YLabb32VmTXTG0mBRZdBmVozNTerKQW1ilMSn593f3pavKxHf9n0jnT9gdnyBdbX3H71vPtzNL7BWnIm7Iufc/uBz9cKvQL7h5KV29d+jd2P5364Ru8IT+iaHTk9WmHScE2uYSUH1HY68eTZDtvGTyhxIA1vW+t6eWO0qMxNHr12DdTU1/vg29yCaG1NfeHrX+ZbE9aRkPIGxi9+R4YpYmv89EQ8obOn3d/2YvhV3590i8qQt6En3jpDeSNUcqsPSpC3tDqqjuwxc9+PesXnaGhCSdfZ5nx+zKxTTo5lP3DycyOHGZ14VESstFDw8L9ISvgKA15I/aB4MdKGarVsg1FeQ8NCdlXj2Zb/k5/yom2ydl9ZH2C/JJudtEaGhpx8lulDC2p/FopQzY79HulDNmw4LBShmoDse/Z7/6i7hSOVytmqG5z/O/yWeD3oXQhs2zbs+jEd6Wom1xWCDSUlUpI+0goJBpZtZBQVioh7SOhkGhk1UJCWalwHxNgAkyACZSVwP8hUI3VVMubnwAAAABJRU5ErkJggg==',
- Hl = Kr({
- emits: ['checkNavBar'],
- props: ['item'],
- name: 'layoutSilder',
- setup(t, { emit: r }) {
- const e = a => {
- r('checkNavBar', a);
- },
- n = dt(t.item);
- return (
- $i(
- () => t.item,
- a => {
- n.value = a;
- },
- { deep: !0 }
- ),
- () =>
- k(rn, null, [
- k(
- 'div',
- {
- onClick: () => e(n.value),
- class: [q.silderItem, n.value.isActive ? q.isActiveItem : '']
- },
- [
- k(
- It,
- {
- width: '26',
- height: '26',
- src: n.value.isActive
- ? n.value.activeIcon
- : n.value.normalIcon,
- 'preview-disabled': !0
- },
- null
- ),
- k('p', null, [n.value.name]),
- n.value.isActive
- ? k(
- It,
- { src: zl, class: q.radiusIcon, previewDisabled: !0 },
- null
- )
- : null
- ]
- )
- ])
- );
- }
- }),
- Ll =
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAACUhJREFUaEPtmnuM1cUVxz/n3rsPQJbdAq5LQRYBF1hAliVQIlFCgCCikVZohfSBLSL+URMpDbWoaK1SQMGm5dmA4WErWKQNVSqi1raGLQ+JQJG3rxIQFBewFXf3TjN3f7M7O3d+v3u9wbQx/pLNfc3Mbz5zzvmeM/Nb4Qt2yReMhy+B/t8tmp2FlMpjL7dA6m8QQieUuswLp4DtwBuAfm8u8z4JKb/Qn/WryAXgBIqdCJsYwCamSV2uC5cZaI8aj2I+qO4tHNTuad7XA38BjlsweuIGxgbUM9ZwLrDIUWAmS+XZXKDCgZSKsZu5KDWzCcRtbT7r10+Al4DTAYCxgAFyoXyQ9ndK5lPGLOaIjZ2RMRxoh5rXBGMmZ4ZzrfMf4EVAO0+YRVpMNhjItpjtik1tZT5L5McZKawGfqAaNZ6k2hjqYnoA01NP5G/A+x73ceF8MaW72e3cz0q+zq+zd790oJ0qj4scSMWMmbhtIbfHP4Ej1or7Jm0mrPv64sZnPQOGHKWS3tkKRTrQX9UElFofaR0DegrY7biPz+VcyCjoJhBbTGQiT8iGbFwvHegVtQ7UpKbOPjXTP/4b2AEYgQ0L+jQXCpHzyP7yFI/L5NyAtqmDiLo6rXMqZ1j5Yx/wgdUqzJUyqZkZIrK/HGKBVOQGtFWdBytpuiB6VK1mez2u5rOGm2d8AuC6mbsIOvnOlba5AW1JqrQKz3W7w8BHWahaptWPgnUlfW4scxFgiW/z7J5LNg5lu5f5VX+nY0cDudYIW2VvkOfQ/+e5Am0OgGwIA6hf3wY+9kwoF1f6LIvwUK5Af/C4nAHSivZWM0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5GI/LSgLGo3aZgGKgOU+XioNCsHrLhDe28AoJ9MZAPw+oc8hL2MSBuZ5mSS/Hbo6HNaK85M9sriMNeQAKXRa8lArHefohrKuj+pNrxpz+rPOgALKNbIVvX8BKm+RU9txS+kAAAAASUVORK5CYII=',
- Vl = Kr({
- name: 'layoutSilder',
- setup() {
- const t = ca(),
- r = to(),
- e = wr([
- {
- activeIcon: wl,
- name: '主页',
- normalIcon: Rl,
- isActive: !0,
- id: 1,
- path: '/'
- },
- {
- activeIcon: bl,
- name: '班级',
- normalIcon: xl,
- isActive: !1,
- id: 3,
- path: '/classList',
- lightList: [
- '/classDetail',
- '/classStudentRecode',
- '/afterWorkDetail',
- '/classStudentDetail'
- ]
- },
- {
- activeIcon: kl,
- name: '学生',
- normalIcon: Gl,
- isActive: !1,
- id: 2,
- path: '/studentList',
- lightList: ['/studentDetail']
- },
- {
- activeIcon: Il,
- name: '备课',
- normalIcon: Tl,
- isActive: !1,
- id: 4,
- path: '/prepare-lessons'
- },
- {
- activeIcon: Ll,
- name: '制谱',
- normalIcon: Ul,
- isActive: !1,
- id: 8,
- path: '/notation'
- },
- {
- activeIcon: Bl,
- name: 'AI学练',
- normalIcon: Ml,
- isActive: !1,
- id: 5,
- lightList: ['/xiaoku-music'],
- path: '/xiaoku-ai'
- },
- {
- activeIcon: Ol,
- name: '资源',
- normalIcon: Pl,
- isActive: !1,
- id: 6,
- path: '/natural-resources'
- },
- {
- activeIcon: Nl,
- name: '数据',
- normalIcon: Fl,
- isActive: !1,
- id: 7,
- path: '/data-module'
- }
- ]),
- n = i => {
- e.forEach(o => {
- (o.isActive = !1),
- o.id == i.id && ((o.isActive = !0), i.path && t.push(i.path));
- });
- };
- eu(i => {
- a(i.path);
- });
- const a = i => {
- e.forEach(o => {
- var s;
- (o.isActive = !1),
- (o.path === i || ((s = o.lightList) != null && s.includes(i))) &&
- (o.isActive = !0);
- });
- };
- return (
- en(() => {
- a(r.path);
- }),
- () =>
- k(rn, null, [
- k('div', { class: q.silder }, [
- k('div', { class: q.logoWrap }, [
- k(It, { class: q.logo, src: Dl, previewDisabled: !0 }, null)
- ]),
- k('div', { class: q.sliderList }, [
- e.map(i => k(Hl, { onCheckNavBar: n, item: i }, null))
- ])
- ])
- ])
- );
- }
- }),
- Wl =
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAADlZJREFUeF7tWm2MVNUZfs7M7JewgkWLYnSBFUWwxlBFayWE+FmoJRKLNlat1f4oKg4QkyZNmibaaqoWF4oSU0tqRFNRSa0abdpaq7FardSK+FEoVYHdZT9gd77nzsxpnnPeM3P37p1lvYSsBiaZ3J2Ze2fnfc7zPu/zvucqHOYPdZjHjyMAHGHAYY7AkRQ4zAlwRAQ/Uwr8dKtubCngqayHORWFo5SGjisYFGMKWvFvBcQg78XMa+1e8zwlL8yB59przLV8DxpojqNrfAs2LmlTdx9qho4agAc/1HP/04NXFdAwPg40KCAeBxISBI9EgoDw4Y4SoAlWgLJ/y2tzmQONgAEoVYCUB93aiP9ee5o65VCCMGoAfvSaHtQVtE5qBOIxoFEBCQIRs6vogIjZVTfv8TEscN/Ku8+DIBkiaGBXGpjUjE1L2tXSQwXCqABY87aetSODrZMboRpjQEKeDJ5/c7X5ZPAmJdzq+o+O7iZqC1AQpCHXKSBTAgbyyF4/U40bUwDu36J/8WkGtx/XaAMm/RuE/gSEqWAAcBoQCNzR3FGfwQRXfcg5whKmwq4U9E2zjHIckseoGLB6i36gK4cfTmoQAAgCV18BjQxe0sCtqgtuSKASVDUtRDOMLkhoQxgQAyoAdg1Af//0MQag4x29rjOLZV9K2JVn8NWnaIEJnsGIkBkdiBlRr6m9VAcHggGIF2l7TpAZZQ3sHoS+YawBWOsAkBSgAJoU8IlhdfUFAOa5LHI1OBOkK3fyueO1vzIYbVAAAehOQV83c4wZQAC6c1h2TIMwQKhv9ECE0AHAdLDyP5TaDhCqO4PVBMDQwz6rPsBVDgVUNNCbgf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D9enJefGhA5YdciqfDpx6C6XLmZgz14GrcEJ5VgSE8fxH/Ww8KZFDicL5KqpTI5gSqLS8aXydVSoaS4lgjhZiiUZKS1USorRGVRaYylsjwAtVAsLaoxQphVLJbmQVBOPliHm6MshaByuTwPgL5DrOE2TOh9Ad8p1jBbZoxriConx9bDjjGjeS9umuJXAWuby7y3qt51jhGyGkHeC2psmzOthIbaOFnRneodo2513W2mIingpHMFtc5WAqIuNk9L8CVriqopPlpUxFcf2+f/B/FhjfJc8533AAAAAElFTkSuQmCC',
- Ql =
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAuCAYAAABTTPsKAAAAAXNSR0IArs4c6QAABfJJREFUaEPtmH+IVUUUx8/MvA3LZz/YyjRU2MpCQcM7c59sKiuEpLKakH/YDwxNI8LsD43MhAU1o/yjFITKFaNffxiUu6QhQQ81692ZiRKSsthQabMfS5prSnvvnJjlvsf4fD/ue7urCc6f780553PP/d4z5wyBK2yRK4wXhgR42rRpN9lEHDx48K/BTsigA3POFyHi2xaUELJYKfXBYEIPBXAOEf0YOFBKZf7XwJ7nfQcAE2LII1rriVeBk2agubn51r6+vqUAcDIIgp2EECy2TZJhRCS+7y8GgFENDQ3thw4d+j0pQ2INCyEmGmP2AMBY65xS+qyU8vV6gIUQK40xr8W2xymlc6SUVkpVVyJgzvn9iPghANzgeNyutV5WD7DneW8CgGt7mhDykFLqs2rEVYE5548BwA5ETDnOTlFKZ0opv6kHWAhxrzEm6yaAEBICwBKl1DuVoCsC+74/OYqiAACucZwco5TOLfcKk2jY+spkMhPCMLQSG+f4/pcx5gdB8G056LLALS0tw86cOaOdEmUPAskYa83lcr+Vc5gUOIYeGUVRJyIKx9+RESNGeNls9nypGGWBOedbEHGFY/R9Y2Mj37dv39lKr6wWYOtn1qxZw3t6ehQA3JP3SwjZqpR6JjGwEKLZGPOFY9AHAFO11l9X+yhqBY4z7YVh+CUANOT9U0rvk1IeKo5XMsOc8w5EbHU2r9Fav1wN1v5fD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',
- setup() {
- const t = va();
- dt(!1);
- const r = dt(),
- e = dt(!1),
- n = /(localhost|192)/.test(location.host)
- ? 'https://test.lexiaoya.cn'
- : /online.lexiaoya.cn/.test(location.href)
- ? 'https://kt.colexiu.com'
- : location.origin,
- a = ''
- .concat(n, '/classroom-im/?userID=')
- .concat(t.getUserInfo.imUserId, '&Authorization=')
- .concat(t.getToken, '&t=')
- .concat(+new Date());
- return () =>
- k('div', { class: q.imGroupContainer }, [
- k(
- nu,
- { show: !e.value },
- {
- default: () => [
- k(
- 'iframe',
- {
- ref: r,
- onLoad: () => {
- e.value = !0;
- },
- class: [q.container],
- frameborder: '0',
- src: a
- },
- null
- )
- ]
- }
- )
- ]);
- }
- }),
- Zl = '_suggestOption_j4g0v_1',
- _l = '_updateBtnGroup_j4g0v_1',
- $l = '_suggestSelect_j4g0v_10',
- tf = '_inBack_j4g0v_69',
- rf = '_isAni_j4g0v_78',
- ef = '_reversal_j4g0v_1',
- nf = '_inBackBottom_j4g0v_81',
- af = '_inFront_j4g0v_90',
- of = '_submitBtn_j4g0v_97',
- sf = '_updatePassword_j4g0v_108',
- uf = '_forUp_j4g0v_1',
- lf = '_endRoute_j4g0v_1',
- ff = '_formWrap_j4g0v_118',
- cf = '_forDown_j4g0v_1',
- vf = '_sealing_j4g0v_121',
- pf = '_stamp_j4g0v_1',
- df = '_formTitle_j4g0v_145',
- gf = '_bgLine_j4g0v_149',
- hf = '_formWrapInfo_j4g0v_159',
- Af = '_closeBtn_j4g0v_162',
- mf = '_countInput_j4g0v_171',
- Sf = '_addInput_j4g0v_196',
- Cf = '_messageWrap_j4g0v_228',
- bt = {
- suggestOption: Zl,
- updateBtnGroup: _l,
- suggestSelect: $l,
- inBack: tf,
- isAni: rf,
- reversal: ef,
- inBackBottom: nf,
- inFront: af,
- submitBtn: of,
- updatePassword: sf,
- forUp: uf,
- endRoute: lf,
- formWrap: ff,
- forDown: cf,
- sealing: vf,
- stamp: pf,
- formTitle: df,
- bgLine: gf,
- formWrapInfo: hf,
- closeBtn: Af,
- countInput: mf,
- addInput: Sf,
- messageWrap: Cf
- },
- Ef = '' + new URL('bg-line-7cb142ce.png', import.meta.url).href,
- yf =
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABGCAYAAABxLuKEAAAAAXNSR0IArs4c6QAACbpJREFUeF7tm39wFPUVwN/bzSaXEglMHA/5UdsRW9oqlNEKgre7l6N1AMkMba/+aK2OnUIVFCVip7TjpGM7TCkRFCsz1BlamFrb2KmAGMhwye53nUp/UG1pLSoUtBC8BskwCCG5232dL3OX7m32bvcud5eL5vtn9n3f973Pve93377vC8LYcCWAY1zcCYyByRIZY2A+SmBmbqdxp3tgHRAsJQQJAXYF6mDNv5fjWb9Hx4cyYia30m4iujUTArLuZlARkfzA+dCBmfoE3Wha9Ec350UB1ROrUf9ogmmlb5hEO9ycFxDvP9mMW8oCZsGCBfWJRKIRAD5BRA1EVMwovCgIwl5d1//sxxkuM6WV7rGItrnJI+Kq7mZ8yo+ugp2QZfmTRPRjAPgqAEh+FitQxgKARYZh7PMzf0TBKIoStSzrlwBQ68fYIsjsMAzjm370jBgYRVHusCzrVwBQcLT5cdAug4gtjLEf+pk3ImDC4fCnk8nka9kiBREvEhEP/WKNfkR8ORAILO/o6DjvR+mIgJFl+XdE9GWHgWcQ8VFBEPZpmnbCj/GllCk7GFVVJ5mm2e3YQj2SJM3u7Ow8WUpn7bqnPE0NmIDrLDPrgX8LATW7vpUAnwGAF12fiWCSBW93N+N/+HNf50Q4HL4+mUyuAoC7HHv/64yx58oBpYVI2PoEbCKAlVDclCDDfET8+YRpsDInmEgk8tmBgYEnAWCBi/M0ceLE+l27dp0rB5gprbTaImotx1r8sM8KRlGUJUT0HBHVZTHmXcMwriqHoXyNya30VyKaXY71EPCoKxhFUW6yLEsDgOochhw1DGN6OQzla1y5gY4DUFl+CEQ8MwSMqqoB0zTfBICPO51GxDgRvYaIfQBwijG2ooxgtgNQxhlXqrUR8cUhYEKh0EMAs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Y8kMrEAvA+WvyGt7QcwGvABxroAWnQGwAFyFbF/BH05OHKeDe4VqgzjyZa3IAnGPVg/tOvHqIHWZ27Z9wLAGrZqlbqAtnsd3cJ/uDHFvAfRZDWs2Kl3fIsQasmlVY1vxlkhOTe8fjv2bsARebWJPj4yQf9t/kyrKQGMAKy8XnyciaTQPOv6SJAly4jbpZ5Ucx23+cQU4cYNUstcfL6sJms5HPHnIiAatm5U9P5PAQgZ+YIbs86MQC7jP5Us+Tt4R9gsK+r8SzROIBF+6X1TGZX5v75cFfsmEBuHfIbkYTgMd0HF2NZ38dxoCLTSucT1ab+tQz5or/DJse3JekyjRwvA1NAjwSRc6QOH2rhiXgosCFxDBPRJn9J2rYwxpw77Cdz+OFdXFJ1qYTekUALsy0VUa+H4rgoTjm1gwLesUALgpYSKC6Ps5ZcoOEXXGA+8y2G3jxlioRSc29Qq9YwEqw/LPmPXiAFlYn8R0UTqBXNOCiQOq26oM2LCHwo6S/MmggdAO4jyLqvVDdx/AAgcbh8oY3A7jEOJd/UtWChSCakv5CTgPY5kKmXq1rESsA3J3E2ysD2MlM5dImg/tBLAVY77Ba5MUMYA8IVII3AEsJ3A1yvAcT2qoYwD6krlvLUWfOYx6Ar1KwAOQ4H+ZCqWoABySrejkJBXewB/dAMJfkxIBM+zJjAPuSr3Tlhlamd3fgelqYR+R7+HUgI9E6EqchaBprk3VrOflsN26F4CbLgtr2O1vXRkEDOIKvxqzNHHv0KG6AhZsIfIbALAAzwujlBnAEgEu5rN/AcR+cwyctYpYIriVQJ8B0ENMJjvYapgHsVTlN9dSq2oyNmNJ9HjPYg+kUTAGhcplMErn4s/C3Sn0xikCVCKqKv/8fYSl83YHzUrUAAAAASUVORK5CYII=',
- bf = '' + new URL('inFront-5893f599.png', import.meta.url).href,
- xf = '' + new URL('submitBtn-eeef99db.png', import.meta.url).href,
- wf = '' + new URL('sealing-3ca78c97.png', import.meta.url).href,
- Rf = '' + new URL('boxBg-7cf5b952.png', import.meta.url).href,
- Bf = t => pa.post('/edu-app/sysSuggestion/save', { data: t }),
- Mf = t => pa.post('/edu-app/sysSuggestionType/page', { data: t }),
- If = t => pa.post('/edu-app/sysParamConfig/page', { data: t }),
- Tf = Kr({
- name: 'train-update',
- emits: ['close', 'submit'],
- setup(t, { emit: r }) {
- const e = au(),
- n = va(),
- a = wr({
- suggestionTypeId: null,
- clientType: 'TEACHER',
- content: '',
- attachmentUrls: '',
- type: 'APP',
- mobileNo: n.getUserInfo.phone
- }),
- i = wr([]),
- o = dt(!1),
- s = dt([]),
- u = 'https://gyt.ks3-cn-beijing.ksyuncs.com/',
- l = dt(),
- f = dt([]),
- c = dt(),
- v = dt(!1);
- dt();
- const p = dt(''),
- d = dt(''),
- g = async () => {
- var b;
- (b = c.value) == null ||
- b.validate(async C => {
- if (C) return;
- const D = f.value
- .map(x => {
- console.log(x, 'item');
- const w = x.name,
- T = ''.concat(x.id + w);
- return u + T;
- })
- .join(',');
- try {
- const x = await Bf({ ...a, attachmentUrls: D });
- (o.value = !0),
- setTimeout(() => {
- r('close');
- }, 3e3);
- } catch (x) {
- console.log(x);
- }
- console.log('onSubmit');
- });
- },
- h = async b => {
- console.log(b, 'onBeforeUpload');
- const C = b.file;
- let S = !0;
- const D = 2;
- if (((S = C.file.size / 1024 / 1024 < D), !S))
- return e.error('文件大小不能超过'.concat(D, 'M')), !1;
- if (!S) return S;
- try {
- v.value = !0;
- const x = C.file.name,
- w = ''.concat(C.id + x),
- T = {
- filename: w,
- bucketName: 'gyt',
- postData: {
- filename: w,
- acl: 'public-read',
- key: w,
- unknowValueField: []
- }
- },
- { data: I } = await Cu(T);
- i.push({
- id: C.id,
- tempFiileBuffer: C.file,
- policy: I.policy,
- signature: I.signature,
- acl: 'public-read',
- key: w,
- KSSAccessKeyId: I.kssAccessKeyId,
- name: w
- });
- } catch (x) {
- return (v.value = !1), !1;
- }
- return !0;
- },
- A = b => {
- const C = b.file.name;
- ''.concat(b.file.id + C);
- },
- m = async b => {
- console.log(b), (v.value = !1);
- },
- E = async () => {
- try {
- const b = await Mf({ rows: 9999, page: 1 });
- s.value = b.data.rows;
- } catch (b) {
- console.log(b);
- }
- },
- y = async () => {
- try {
- const { data: b } = await If({
- page: 1,
- rows: 999,
- group: 'OTHER'
- }),
- C = b.rows || [];
- (p.value = C.find(
- S => S.paramName == 'customer_service_email'
- ).paramValue),
- (d.value = C.find(
- S => S.paramName == 'customer_service_phone'
- ).paramValue),
- console.log(p.value, d.value);
- } catch (b) {
- console.log('请求报错'), console.log(b);
- }
- };
- return (
- en(() => {
- E(), y();
- }),
- () =>
- k('div', { class: bt.suggestOption }, [
- k('div', { class: [bt.updatePassword, o.value ? bt.isAni : ''] }, [
- k('div', { class: [bt.formWrap, o.value ? bt.isAni : ''] }, [
- k(
- It,
- {
- class: bt.closeBtn,
- src: Df,
- previewDisabled: !0,
- onClick: () => r('close')
- },
- null
- ),
- k(It, { class: bt.bgLine, src: Ef, previewDisabled: !0 }, null),
- k('h2', { class: bt.formTitle }, [Gt('意见反馈')]),
- k('div', { class: bt.formWrapInfo }, [
- k(
- iu,
- {
- labelAlign: 'right',
- labelPlacement: 'left',
- labelWidth: 'auto',
- ref: c,
- model: a,
- requireMarkPlacement: 'left'
- },
- {
- default: () => [
- k(
- En,
- {
- rule: [{ required: !0, message: '请选择反馈类型' }],
- path: 'suggestionTypeId'
- },
- {
- default: () => [
- k(
- Su,
- Gn(
- {
- class: bt.suggestSelect,
- 'value-field': 'id',
- 'label-field': 'name',
- style: { width: '227px!important' }
- },
- {
- options: s.value,
- placeholder: '反馈类型(必选)',
- clearable: !0,
- inline: !0
- },
- {
- value: a.suggestionTypeId,
- 'onUpdate:value': b =>
- (a.suggestionTypeId = b)
- }
- ),
- null
- )
- ]
- }
- ),
- k(
- En,
- {
- path: 'content',
- rule: [{ required: !0, message: '请输入反馈内容' }]
- },
- {
- default: () => [
- k(
- ou,
- {
- class: bt.countInput,
- type: 'textarea',
- rows: 5,
- placeholder: '请输入反馈内容',
- maxlength: 200,
- resizable: !1,
- showCount: !0,
- value: a.content,
- 'onUpdate:value': b => (a.content = b)
- },
- null
- )
- ]
- }
- ),
- k(En, null, {
- default: () => [
- k(
- su,
- {
- 'list-type': 'image-card',
- accept: '.jpg,jpeg,.png',
- fileList: f.value,
- 'onUpdate:fileList': b => (f.value = b),
- ref: l,
- multiple: !0,
- max: 5,
- data: b => {
- const C = i.find(w => w.id == b.file.id),
- { id: S, tempFiileBuffer: D, ...x } = C;
- return { ...x };
- },
- showPreviewButton: !0,
- action: u,
- onBeforeUpload: b => h(b),
- onRemove: b => m(b),
- onFinish: b => A(b)
- },
- {
- default: () => [
- k('div', { class: bt.addInput }, [
- k(
- It,
- { previewDisabled: !0, src: yf },
- null
- ),
- k('p', null, [Gt(' 点击上传图片')]),
- k('p', null, [Gt('(最多五张)')])
- ])
- ]
- }
- )
- ]
- })
- ]
- }
- )
- ])
- ]),
- k('div', { class: [bt.inBack, o.value ? bt.isAni : ''] }, null),
- k(
- It,
- { src: Rf, class: bt.inBackBottom, previewDisabled: !0 },
- null
- ),
- k(It, { src: bf, class: bt.inFront, previewDisabled: !0 }, null),
- k(
- It,
- {
- src: wf,
- class: [bt.sealing, o.value ? bt.isAni : ''],
- previewDisabled: !0
- },
- null
- ),
- o.value
- ? null
- : k(rn, null, [
- k(
- It,
- {
- src: xf,
- onClick: () => {
- g();
- },
- class: bt.submitBtn,
- previewDisabled: !0
- },
- null
- ),
- k('div', { class: bt.messageWrap }, [
- d.value
- ? k('p', null, [Gt('客服电话:'), d.value])
- : null,
- p.value ? k('p', null, [Gt('邮箱:'), p.value]) : null
- ])
- ])
- ])
- ])
- );
- }
- }),
- Of = Kr({
- name: 'layoutTop',
- setup() {
- const t = ca(),
- r = dt(0),
- e = dt(!1),
- n = dt(!1),
- a = dt(!0),
- i = dt(!1),
- o = va(),
- s = dt(!1),
- { info: u } = uu(o),
- l = () => {
- t.push({ path: '/setting', query: { activeTab: 'person' } });
- },
- f = () => {
- t.push({ path: '/setting', query: { activeTab: 'school' } });
- },
- c = () => {
- s.value = !0;
- },
- v = document.querySelector('body');
- v && (v.className = 'myBody body'),
- en(() => {
- window.addEventListener('message', p),
- (n.value = !0),
- lu(() => {
- setTimeout(() => {
- n.value = !1;
- }, 50),
- setTimeout(() => {
- (a.value = !1), v && (v.className = 'myBody');
- }, 1e3);
- });
- });
- const p = d => {
- d.data.api === 'onImClose'
- ? (n.value = !1)
- : d.data.api === 'getNoReadMessageCount' &&
- (console.log(d, 'onMessage'), (r.value = d.data.count || 0));
- };
- return (
- fu(() => {
- window.removeEventListener('message', p);
- }),
- () => {
- var d, g;
- return k(rn, null, [
- k('div', { class: q.layoutTop }, [
- k('div', { class: q.layoutLeft }, [
- k(
- It,
- { src: Wl, class: q.schoolIcon, previewDisabled: !0 },
- null
- ),
- k('p', null, [
- ((g = (d = u.value) == null ? void 0 : d.schoolInfos[0]) ==
- null
- ? void 0
- : g.name) || '',
- '22:52'
- ])
- ]),
- k('div', { class: q.layoutRight }, [
- k(ei, null, {
- trigger: () =>
- k(
- 'div',
- { class: q.optons, onClick: () => (i.value = !0) },
- [k(It, { src: Jl, previewDisabled: !0 }, null)]
- ),
- default: '意见反馈'
- }),
- k('div', { onClick: () => (n.value = !0) }, [
- k(
- cu,
- Gn(
- {
- value: r.value,
- max: 99,
- class: [
- r.value > 0 ? '' : q.messageBadgeHide,
- q.messageBadge,
- r.value > 0 ? '' : q.messageBadgeNo
- ]
- },
- { id: 'home-2' },
- { color: '#FF1036' }
- ),
- {
- default: () => [
- k(
- It,
- {
- class: [
- q.messageIcon,
- r.value > 0 ? q.animation : ''
- ],
- 'preview-disabled': !0,
- src: Yl
- },
- null
- )
- ]
- }
- )
- ]),
- k('div', { class: q.line }, null),
- k(
- ro,
- {
- 'show-arrow': !1,
- trigger: 'click',
- 'onUpdate:show': h => {
- e.value = h;
- },
- class: q.popoverHeader,
- placement: 'bottom-end',
- raw: !0
- },
- {
- default: () => [
- k('div', { class: q.propWrap }, [
- k('div', { class: q.teacherInfo }, [
- k(
- It,
- {
- class: q.teacherIcon,
- src: u.value.avatar ? u.value.avatar : ii,
- previewDisabled: !0
- },
- null
- ),
- k(
- ei,
- { class: q.nameTool },
- {
- trigger: () =>
- k('p', { class: q.teacherName }, [
- u.value.nickname
- ]),
- default: () => u.value.nickname
- }
- )
- ]),
- k('div', { class: q.propWrapList }, [
- k(
- 'div',
- { class: q.propWrapItem, onClick: () => l() },
- [
- ' ',
- k(
- It,
- {
- class: q.smallIcon,
- src: Kl,
- previewDisabled: !0
- },
- null
- ),
- k('p', { class: q.smallTitle }, [Gt('个人信息')])
- ]
- ),
- u.value.isSuperAdmin
- ? k(
- 'div',
- {
- class: q.propWrapItem,
- onClick: () => {
- f();
- }
- },
- [
- ' ',
- k(
- It,
- {
- class: q.smallIcon,
- src: ql,
- previewDisabled: !0
- },
- null
- ),
- k('p', { class: q.smallTitle }, [
- Gt('学校信息')
- ])
- ]
- )
- : null,
- k(
- 'div',
- { class: q.propWrapItem, onClick: () => c() },
- [
- ' ',
- k(
- It,
- {
- class: q.smallIcon,
- src: Xl,
- previewDisabled: !0
- },
- null
- ),
- k('p', { class: q.smallTitle }, [Gt('修改密码')])
- ]
- )
- ]),
- k(
- 'div',
- {
- class: q.logoutInfo,
- onClick: () => {
- o.logout(), t.replace('/login');
- }
- },
- [
- k('div', { class: q.propWrapItem }, [
- k(
- It,
- {
- class: q.smallIcon,
- src: Ql,
- previewDisabled: !0
- },
- null
- ),
- k('p', { class: q.smallTitle }, [Gt('退出登录')])
- ])
- ]
- )
- ])
- ],
- trigger: () =>
- k('div', { class: q.mesgWrap }, [
- k(
- It,
- {
- 'preview-disabled': !0,
- class: q.teacherIcon,
- src: u.value.avatar ? u.value.avatar : ii
- },
- null
- ),
- k(
- vu,
- { class: e.value ? q.rotueLeft : q.rotueRight },
- {
- default: () => [
- k(
- 'svg',
- {
- xmlns: 'http://www.w3.org/2000/svg',
- viewBox: '0 0 24 24'
- },
- [
- k(
- 'path',
- {
- d: 'M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31a.996.996 0 0 0 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76z',
- fill: 'currentColor'
- },
- null
- )
- ]
- )
- ]
- }
- )
- ])
- }
- )
- ]),
- k(
- Rr,
- {
- class: q.changePwdModal,
- show: s.value,
- 'onUpdate:show': h => (s.value = h),
- preset: 'dialog',
- showIcon: !1,
- title: '修改密码'
- },
- {
- default: () => [
- k(
- mu,
- {
- phone: u.value.phone,
- onClose: () => {
- s.value = !1;
- }
- },
- null
- )
- ]
- }
- ),
- k(
- Rr,
- Gn(
- {
- show: n.value,
- 'onUpdate:show': h => (n.value = h),
- showIcon: !1,
- class: a.value ? q.hideModal : ''
- },
- { id: 'imGroupDiv' },
- { displayDirective: 'show' }
- ),
- { default: () => [k(jl, null, null)] }
- ),
- k(
- Rr,
- {
- class: ['modalTitle', 'background', q.suggestWrap],
- show: i.value,
- 'onUpdate:show': h => (i.value = h),
- preset: 'card',
- showIcon: !1
- },
- {
- default: () => [
- k(Tf, { onClose: () => (i.value = !1) }, null)
- ]
- }
- )
- ])
- ]);
- }
- );
- }
- });
- function Pf(t) {
- for (var r = [], e = 1; e < arguments.length; e++) r[e - 1] = arguments[e];
- return r
- .map(function (n) {
- return n
- .split(' ')
- .map(function (a) {
- return a ? '' + t + a : '';
- })
- .join(' ');
- })
- .join(' ');
- }
- function kf(t, r) {
- return r.replace(/([^}{]*){/gm, function (e, n) {
- return n.replace(/\.([^{,\s\d.]+)/g, '.' + t + '$1') + '{';
- });
- }
- function or(t, r) {
- return function (e) {
- e && (t[r] = e);
- };
- }
- function eo(t, r, e) {
- return function (n) {
- n && (t[r][e] = n);
- };
- }
- function si(t, r) {
- return function (e) {
- var n = e.prototype;
- t.forEach(function (a) {
- r(n, a);
- });
- };
- }
- function Gf(t, r) {
- return (
- r === void 0 && (r = {}),
- function (e, n) {
- t.forEach(function (a) {
- var i = r[a] || a;
- i in e ||
- (e[i] = function () {
- for (var o, s = [], u = 0; u < arguments.length; u++)
- s[u] = arguments[u];
- var l = (o = this[n])[a].apply(o, s);
- return l === this[n] ? this : l;
- });
- });
- }
- );
- }
- var Nf = 'function',
- Ff = 'object',
- zf = 'string',
- Hf = 'number',
- da = 'undefined',
- no = typeof window !== da,
- Lf = typeof document !== da && document,
- Uf = [
- { open: '(', close: ')' },
- { open: '"', close: '"' },
- { open: "'", close: "'" },
- { open: '\\"', close: '\\"' },
- { open: "\\'", close: "\\'" }
- ],
- wt = 1e-7,
- we = {
- cm: function (t) {
- return (t * 96) / 2.54;
- },
- mm: function (t) {
- return (t * 96) / 254;
- },
- in: function (t) {
- return t * 96;
- },
- pt: function (t) {
- return (t * 96) / 72;
- },
- pc: function (t) {
- return (t * 96) / 6;
- },
- '%': function (t, r) {
- return (t * r) / 100;
- },
- vw: function (t, r) {
- return r === void 0 && (r = window.innerWidth), (t / 100) * r;
- },
- vh: function (t, r) {
- return r === void 0 && (r = window.innerHeight), (t / 100) * r;
- },
- vmax: function (t, r) {
- return (
- r === void 0 && (r = Math.max(window.innerWidth, window.innerHeight)),
- (t / 100) * r
- );
- },
- vmin: function (t, r) {
- return (
- r === void 0 && (r = Math.min(window.innerWidth, window.innerHeight)),
- (t / 100) * r
- );
- }
- };
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */ function Vf() {
- for (var t = 0, r = 0, e = arguments.length; r < e; r++)
- t += arguments[r].length;
- for (var n = Array(t), a = 0, r = 0; r < e; r++)
- for (var i = arguments[r], o = 0, s = i.length; o < s; o++, a++)
- n[a] = i[o];
- return n;
- }
- function Er(t, r, e, n) {
- return (t * n + r * e) / (e + n);
- }
- function nn(t) {
- return typeof t === da;
- }
- function tr(t) {
- return t && typeof t === Ff;
- }
- function Rt(t) {
- return Array.isArray(t);
- }
- function Wt(t) {
- return typeof t === zf;
- }
- function Ur(t) {
- return typeof t === Hf;
- }
- function ga(t) {
- return typeof t === Nf;
- }
- function Wf(t, r) {
- var e = t === '' || t == ' ',
- n = r === '' || r == ' ';
- return (n && e) || t === r;
- }
- function ao(t, r, e, n, a) {
- var i = ha(t, r, e);
- return i ? e : Yf(t, r, e + 1, n, a);
- }
- function ha(t, r, e) {
- if (!t.ignore) return null;
- var n = r.slice(Math.max(e - 3, 0), e + 3).join('');
- return new RegExp(t.ignore).exec(n);
- }
- function Yf(t, r, e, n, a) {
- for (
- var i = function (l) {
- var f = r[l].trim();
- if (f === t.close && !ha(t, r, l)) return { value: l };
- var c = l,
- v = Kt(a, function (p) {
- var d = p.open;
- return d === f;
- });
- if ((v && (c = ao(v, r, l, n, a)), c === -1)) return (o = l), 'break';
- (l = c), (o = l);
- },
- o,
- s = e;
- s < n;
- ++s
- ) {
- var u = i(s);
- if (((s = o), typeof u == 'object')) return u.value;
- if (u === 'break') break;
- }
- return -1;
- }
- function Aa(t, r) {
- var e = Wt(r) ? { separator: r } : r,
- n = e.separator,
- a = n === void 0 ? ',' : n,
- i = e.isSeparateFirst,
- o = e.isSeparateOnlyOpenClose,
- s = e.isSeparateOpenClose,
- u = s === void 0 ? o : s,
- l = e.openCloseCharacters,
- f = l === void 0 ? Uf : l,
- c = f
- .map(function (S) {
- var D = S.open,
- x = S.close;
- return D === x ? D : D + '|' + x;
- })
- .join('|'),
- v = '(\\s*' + a + '\\s*|' + c + '|\\s+)',
- p = new RegExp(v, 'g'),
- d = t.split(p).filter(function (S) {
- return S && S !== 'undefined';
- }),
- g = d.length,
- h = [],
- A = [];
- function m() {
- return A.length ? (h.push(A.join('')), (A = []), !0) : !1;
- }
- for (
- var E = function (S) {
- var D = d[S].trim(),
- x = S,
- w = Kt(f, function (M) {
- var O = M.open;
- return O === D;
- }),
- T = Kt(f, function (M) {
- var O = M.close;
- return O === D;
- });
- if (w) {
- if (((x = ao(w, d, S, g, f)), x !== -1 && u))
- return (m() && i) ||
- (h.push(d.slice(S, x + 1).join('')), (S = x), i)
- ? ((y = S), 'break')
- : ((y = S), 'continue');
- } else if (T && !ha(T, d, S)) {
- var I = Vf(f);
- return (
- I.splice(f.indexOf(T), 1),
- {
- value: Aa(t, {
- separator: a,
- isSeparateFirst: i,
- isSeparateOnlyOpenClose: o,
- isSeparateOpenClose: u,
- openCloseCharacters: I
- })
- }
- );
- } else if (Wf(D, a) && !o)
- return m(), i ? ((y = S), 'break') : ((y = S), 'continue');
- x === -1 && (x = g - 1),
- A.push(d.slice(S, x + 1).join('')),
- (S = x),
- (y = S);
- },
- y,
- b = 0;
- b < g;
- ++b
- ) {
- var C = E(b);
- if (((b = y), typeof C == 'object')) return C.value;
- if (C === 'break') break;
- }
- return A.length && h.push(A.join('')), h;
- }
- function Ar(t) {
- return Aa(t, '');
- }
- function Br(t) {
- return Aa(t, ',');
- }
- function io(t) {
- var r = /([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(t);
- return !r || r.length < 4 ? {} : { prefix: r[1], value: r[2], suffix: r[3] };
- }
- function ge(t) {
- var r = /^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(t);
- if (!r) return { prefix: '', unit: '', value: NaN };
- var e = r[1],
- n = r[2],
- a = r[3];
- return { prefix: e, unit: a, value: parseFloat(n) };
- }
- function Qf(t) {
- return t.replace(/[\s-_]+([^\s-_])/g, function (r, e) {
- return e.toUpperCase();
- });
- }
- function Le(t, r) {
- return (
- r === void 0 && (r = '-'),
- t.replace(/([a-z])([A-Z])/g, function (e, n, a) {
- return '' + n + r + a.toLowerCase();
- })
- );
- }
- function fe() {
- return Date.now ? Date.now() : new Date().getTime();
- }
- function lr(t, r, e) {
- e === void 0 && (e = -1);
- for (var n = t.length, a = 0; a < n; ++a) if (r(t[a], a, t)) return a;
- return e;
- }
- function Kt(t, r, e) {
- var n = lr(t, r);
- return n > -1 ? t[n] : e;
- }
- var oo = (function () {
- var t = fe(),
- r =
- no &&
- (window.requestAnimationFrame ||
- window.webkitRequestAnimationFrame ||
- window.mozRequestAnimationFrame ||
- window.msRequestAnimationFrame);
- return r
- ? r.bind(window)
- : function (e) {
- var n = fe(),
- a = setTimeout(function () {
- e(n - t);
- }, 1e3 / 60);
- return a;
- };
- })(),
- Xf = (function () {
- var t =
- no &&
- (window.cancelAnimationFrame ||
- window.webkitCancelAnimationFrame ||
- window.mozCancelAnimationFrame ||
- window.msCancelAnimationFrame);
- return t
- ? t.bind(window)
- : function (r) {
- clearTimeout(r);
- };
- })();
- function fr(t) {
- return Object.keys(t);
- }
- function qf(t) {
- var r = fr(t);
- return r.map(function (e) {
- return t[e];
- });
- }
- function gt(t, r) {
- var e = ge(t),
- n = e.value,
- a = e.unit;
- if (tr(r)) {
- var i = r[a];
- if (i) {
- if (ga(i)) return i(n);
- if (we[a]) return we[a](n, i);
- }
- } else if (a === '%') return (n * r) / 100;
- return we[a] ? we[a](n) : n;
- }
- function Nn(t, r, e) {
- return Math.max(r, Math.min(t, e));
- }
- function ui(t, r, e, n) {
- return (
- n === void 0 && (n = t[0] / t[1]),
- [
- [nt(r[0], wt), nt(r[0] / n, wt)],
- [nt(r[1] * n, wt), nt(r[1], wt)]
- ].filter(function (a) {
- return a.every(function (i, o) {
- var s = r[o],
- u = nt(s, wt);
- return e ? i <= s || i <= u : i >= s || i >= u;
- });
- })[0] || t
- );
- }
- function so(t, r, e, n) {
- if (!n)
- return t.map(function (p, d) {
- return Nn(p, r[d], e[d]);
- });
- var a = t[0],
- i = t[1],
- o = n === !0 ? a / i : n,
- s = ui(t, r, !1, o),
- u = s[0],
- l = s[1],
- f = ui(t, e, !0, o),
- c = f[0],
- v = f[1];
- return (
- a < u || i < l
- ? ((a = u), (i = l))
- : (a > c || i > v) && ((a = c), (i = v)),
- [a, i]
- );
- }
- function Kf(t) {
- for (var r = t.length, e = 0, n = r - 1; n >= 0; --n) e += t[n];
- return e;
- }
- function Fn(t) {
- for (var r = t.length, e = 0, n = r - 1; n >= 0; --n) e += t[n];
- return r ? e / r : 0;
- }
- function Et(t, r) {
- var e = r[0] - t[0],
- n = r[1] - t[1],
- a = Math.atan2(n, e);
- return a >= 0 ? a : a + Math.PI * 2;
- }
- function Jf(t) {
- return [0, 1].map(function (r) {
- return Fn(
- t.map(function (e) {
- return e[r];
- })
- );
- });
- }
- function li(t) {
- var r = Jf(t),
- e = Et(r, t[0]),
- n = Et(r, t[1]);
- return (e < n && n - e < Math.PI) || (e > n && n - e < -Math.PI) ? 1 : -1;
- }
- function sr(t, r) {
- return Math.sqrt(
- Math.pow((r ? r[0] : 0) - t[0], 2) + Math.pow((r ? r[1] : 0) - t[1], 2)
- );
- }
- function nt(t, r) {
- if (!r) return t;
- var e = 1 / r;
- return Math.round(t / r) / e;
- }
- function fi(t, r) {
- return (
- t.forEach(function (e, n) {
- t[n] = nt(t[n], r);
- }),
- t
- );
- }
- function jf(t) {
- for (var r = [], e = 0; e < t; ++e) r.push(e);
- return r;
- }
- function Zf(t) {
- return t.reduce(function (r, e) {
- return r.concat(e);
- }, []);
- }
- function uo(t, r) {
- t.indexOf(r) === -1 && t.push(r);
- }
- function Tt(t, r) {
- return t.classList
- ? t.classList.contains(r)
- : !!t.className.match(new RegExp('(\\s|^)' + r + '(\\s|$)'));
- }
- function lo(t, r) {
- t.classList ? t.classList.add(r) : (t.className += ' ' + r);
- }
- function fo(t, r) {
- if (t.classList) t.classList.remove(r);
- else {
- var e = new RegExp('(\\s|^)' + r + '(\\s|$)');
- t.className = t.className.replace(e, ' ');
- }
- }
- function Pt(t, r, e, n) {
- t.addEventListener(r, e, n);
- }
- function Mt(t, r, e, n) {
- t.removeEventListener(r, e, n);
- }
- function Jr(t) {
- return (t == null ? void 0 : t.ownerDocument) || Lf;
- }
- function ma(t) {
- return Jr(t).documentElement;
- }
- function Cr(t) {
- return Jr(t).body;
- }
- function hr(t) {
- var r;
- return (
- ((r = t == null ? void 0 : t.ownerDocument) === null || r === void 0
- ? void 0
- : r.defaultView) || window
- );
- }
- function co(t) {
- return t && 'postMessage' in t && 'blur' in t && 'self' in t;
- }
- function jr(t) {
- return tr(t) && t.nodeName && t.nodeType && 'ownerDocument' in t;
- }
- var _f = (function () {
- function t() {
- (this.keys = []), (this.values = []);
- }
- var r = t.prototype;
- return (
- (r.get = function (e) {
- return this.values[this.keys.indexOf(e)];
- }),
- (r.set = function (e, n) {
- var a = this.keys,
- i = this.values,
- o = a.indexOf(e),
- s = o === -1 ? a.length : o;
- (a[s] = e), (i[s] = n);
- }),
- t
- );
- })(),
- $f = (function () {
- function t() {
- this.object = {};
- }
- var r = t.prototype;
- return (
- (r.get = function (e) {
- return this.object[e];
- }),
- (r.set = function (e, n) {
- this.object[e] = n;
- }),
- t
- );
- })(),
- tc = typeof Map == 'function',
- rc = (function () {
- function t() {}
- var r = t.prototype;
- return (
- (r.connect = function (e, n) {
- (this.prev = e),
- (this.next = n),
- e && (e.next = this),
- n && (n.prev = this);
- }),
- (r.disconnect = function () {
- var e = this.prev,
- n = this.next;
- e && (e.next = n), n && (n.prev = e);
- }),
- (r.getIndex = function () {
- for (var e = this, n = -1; e; ) (e = e.prev), ++n;
- return n;
- }),
- t
- );
- })();
- function ec(t, r) {
- var e = [],
- n = [];
- return (
- t.forEach(function (a) {
- var i = a[0],
- o = a[1],
- s = new rc();
- (e[i] = s), (n[o] = s);
- }),
- e.forEach(function (a, i) {
- a.connect(e[i - 1]);
- }),
- t
- .filter(function (a, i) {
- return !r[i];
- })
- .map(function (a, i) {
- var o = a[0],
- s = a[1];
- if (o === s) return [0, 0];
- var u = e[o],
- l = n[s - 1],
- f = u.getIndex();
- u.disconnect(), l ? u.connect(l, l.next) : u.connect(void 0, e[0]);
- var c = u.getIndex();
- return [f, c];
- })
- );
- }
- var nc = (function () {
- function t(e, n, a, i, o, s, u, l) {
- (this.prevList = e),
- (this.list = n),
- (this.added = a),
- (this.removed = i),
- (this.changed = o),
- (this.maintained = s),
- (this.changedBeforeAdded = u),
- (this.fixed = l);
- }
- var r = t.prototype;
- return (
- Object.defineProperty(r, 'ordered', {
- get: function () {
- return this.cacheOrdered || this.caculateOrdered(), this.cacheOrdered;
- },
- enumerable: !0,
- configurable: !0
- }),
- Object.defineProperty(r, 'pureChanged', {
- get: function () {
- return (
- this.cachePureChanged || this.caculateOrdered(), this.cachePureChanged
- );
- },
- enumerable: !0,
- configurable: !0
- }),
- (r.caculateOrdered = function () {
- var e = ec(this.changedBeforeAdded, this.fixed),
- n = this.changed,
- a = [];
- (this.cacheOrdered = e.filter(function (i, o) {
- var s = i[0],
- u = i[1],
- l = n[o],
- f = l[0],
- c = l[1];
- if (s !== u) return a.push([f, c]), !0;
- })),
- (this.cachePureChanged = a);
- }),
- t
- );
- })();
- function he(t, r, e) {
- var n = tc ? Map : e ? $f : _f,
- a =
- e ||
- function (m) {
- return m;
- },
- i = [],
- o = [],
- s = [],
- u = t.map(a),
- l = r.map(a),
- f = new n(),
- c = new n(),
- v = [],
- p = [],
- d = {},
- g = [],
- h = 0,
- A = 0;
- return (
- u.forEach(function (m, E) {
- f.set(m, E);
- }),
- l.forEach(function (m, E) {
- c.set(m, E);
- }),
- u.forEach(function (m, E) {
- var y = c.get(m);
- typeof y > 'u' ? (++A, o.push(E)) : (d[y] = A);
- }),
- l.forEach(function (m, E) {
- var y = f.get(m);
- typeof y > 'u'
- ? (i.push(E), ++h)
- : (s.push([y, E]),
- (A = d[E] || 0),
- v.push([y - A, E - h]),
- p.push(E === y),
- y !== E && g.push([y, E]));
- }),
- o.reverse(),
- new nc(t, r, i, o, g, s, v, p)
- );
- }
- var ac = (function () {
- function t(e, n) {
- e === void 0 && (e = []),
- (this.findKeyCallback = n),
- (this.list = [].slice.call(e));
- }
- var r = t.prototype;
- return (
- (r.update = function (e) {
- var n = [].slice.call(e),
- a = he(this.list, n, this.findKeyCallback);
- return (this.list = n), a;
- }),
- t
- );
- })(),
- zn = function (t, r) {
- return (
- (zn =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (e, n) {
- e.__proto__ = n;
- }) ||
- function (e, n) {
- for (var a in n)
- Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
- }),
- zn(t, r)
- );
- };
- function Ae(t, r) {
- if (typeof r != 'function' && r !== null)
- throw new TypeError(
- 'Class extends value ' + String(r) + ' is not a constructor or null'
- );
- zn(t, r);
- function e() {
- this.constructor = t;
- }
- t.prototype =
- r === null ? Object.create(r) : ((e.prototype = r.prototype), new e());
- }
- var er = function () {
- return (
- (er =
- Object.assign ||
- function (r) {
- for (var e, n = 1, a = arguments.length; n < a; n++) {
- e = arguments[n];
- for (var i in e)
- Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
- }
- return r;
- }),
- er.apply(this, arguments)
- );
- };
- function vo(t, r) {
- var e = {};
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) &&
- r.indexOf(n) < 0 &&
- (e[n] = t[n]);
- if (t != null && typeof Object.getOwnPropertySymbols == 'function')
- for (var a = 0, n = Object.getOwnPropertySymbols(t); a < n.length; a++)
- r.indexOf(n[a]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[a]) &&
- (e[n[a]] = t[n[a]]);
- return e;
- }
- function ci(t, r, e) {
- if (e || arguments.length === 2)
- for (var n = 0, a = r.length, i; n < a; n++)
- (i || !(n in r)) &&
- (i || (i = Array.prototype.slice.call(r, 0, n)), (i[n] = r[n]));
- return t.concat(i || Array.prototype.slice.call(r));
- }
- function vi(t) {
- var r = 0;
- return t.map(function (e) {
- return e == null ? '$compat'.concat(++r) : ''.concat(e);
- });
- }
- function po(t) {
- var r = [];
- return (
- t.forEach(function (e) {
- r = r.concat(Rt(e) ? po(e) : e);
- }),
- r
- );
- }
- function yn(t, r) {
- if (!r) return t;
- for (var e in r) nn(t[e]) && (t[e] = r[e]);
- return t;
- }
- function Ve(t, r) {
- if (t === r) return !1;
- for (var e in t) if (!(e in r)) return !0;
- for (var e in r) if (t[e] !== r[e]) return !0;
- return !1;
- }
- function pi(t) {
- var r = t.className,
- e = vo(t, ['className']);
- return r != null && (e.class = r), delete e.style, delete e.children, e;
- }
- function di(t) {
- var r = {},
- e = {};
- for (var n in t) n.indexOf('on') === 0 ? (e[n] = t[n]) : (r[n] = t[n]);
- return [r, e];
- }
- function an(t) {
- if (!t) return null;
- var r = t.b;
- return jr(r) ? r : an(t.c);
- }
- function go(t) {
- var r = t.parentNode;
- r && r.removeChild(t);
- }
- function ho(t) {
- t.forEach(function (r) {
- r();
- });
- }
- function ic() {
- return this.constructor(this.props, this.context);
- }
- var Sa = 0,
- on = (function () {
- function t(e, n, a, i, o, s, u) {
- u === void 0 && (u = {}),
- (this.t = e),
- (this.d = n),
- (this.k = a),
- (this.i = i),
- (this.c = o),
- (this.ref = s),
- (this.ps = u),
- (this.typ = 'prov'),
- (this._ps = []),
- (this._cs = {}),
- (this._hyd = null),
- (this._sel = !1);
- }
- var r = t.prototype;
- return (
- (r.s = function () {
- return !0;
- }),
- (r.u = function (e, n, a, i, o) {
- var s = this,
- u = s.d,
- l = qf(n).filter(function (d) {
- return d.$_req;
- }),
- f = po(
- l.map(function (d) {
- return d.$_subs;
- })
- ),
- c = Kt(f, function (d) {
- return d.d === u;
- });
- if (s.b && !Wt(a) && !o && !s.s(a.props, i) && !c) {
- var v = f.reduce(function (d, g) {
- var h = g.d;
- return d[0] ? d[0].d === h && d.push(g) : h > u && d.push(g), d;
- }, []);
- return (
- v.forEach(function (d) {
- me(d, d._ps, [d.o], e, n, !0);
- }),
- !1
- );
- }
- (s.o = a), s.ss(i);
- var p = s.ps;
- return (
- Wt(a) || ((s.ps = a.props), (s.ref = a.ref)),
- Ca(this),
- s.r(e, n, s.b ? p : {}, i),
- !0
- );
- }),
- (r.md = function () {
- this.rr();
- }),
- (r.ss = function () {}),
- (r.ud = function () {
- this.rr();
- }),
- (r.rr = function () {
- var e = this,
- n = e.ref,
- a = e.fr;
- n && n(a ? a.current : e.b);
- }),
- t
- );
- })();
- function Ao() {
- return Object.__CROACT_CURRENT_INSTNACE__;
- }
- function oc() {
- return Sa;
- }
- function sc(t) {
- Sa = t;
- }
- function Ca(t) {
- return (Object.__CROACT_CURRENT_INSTNACE__ = t), (Sa = 0), t;
- }
- var Ea = (function () {
- function t(e, n) {
- e === void 0 && (e = {}),
- (this.props = e),
- (this.context = n),
- (this.state = {}),
- (this.$_timer = 0),
- (this.$_state = {}),
- (this.$_subs = []),
- (this.$_cs = {});
- }
- var r = t.prototype;
- return (
- (r.render = function () {
- return null;
- }),
- (r.shouldComponentUpdate = function (e, n) {
- return this.props !== e || this.state !== n;
- }),
- (r.setState = function (e, n, a) {
- var i = this;
- i.$_timer || (i.$_state = {}),
- clearTimeout(i.$_timer),
- (i.$_timer = 0),
- (i.$_state = er(er({}, i.$_state), e)),
- a
- ? i.$_setState(n, a)
- : (i.$_timer = window.setTimeout(function () {
- (i.$_timer = 0), i.$_setState(n, a);
- }));
- }),
- (r.forceUpdate = function (e) {
- this.setState({}, e, !0);
- }),
- (r.componentDidMount = function () {}),
- (r.componentDidUpdate = function (e, n) {}),
- (r.componentWillUnmount = function () {}),
- (r.$_setState = function (e, n) {
- var a = [],
- i = this.$_p,
- o = me(
- i.c,
- [i],
- [i.o],
- a,
- i._cs,
- er(er({}, this.state), this.$_state),
- n
- );
- o && (e && a.push(e), ho(a), Ca(null));
- }),
- t
- );
- })(),
- mo = (function (t) {
- Ae(r, t);
- function r() {
- return (t !== null && t.apply(this, arguments)) || this;
- }
- var e = r.prototype;
- return (
- (e.shouldComponentUpdate = function (n, a) {
- return Ve(this.props, n) || Ve(this.state, a);
- }),
- r
- );
- })(Ea);
- function So(t) {
- var r = function (e) {
- r.current = e;
- };
- return (r.current = t), r;
- }
- function uc(t) {
- return (t._fr = !0), t;
- }
- function lc(t, r, e, n) {
- var a, i;
- return (
- !((a = t == null ? void 0 : t.prototype) === null || a === void 0) &&
- a.render
- ? (i = new t(r, e))
- : ((i = new Ea(r, e)),
- (i.constructor = t),
- t._fr
- ? ((n.fr = So()),
- (i.render = function () {
- return this.constructor(this.props, n.fr);
- }))
- : (i.render = ic)),
- (i.$_p = n),
- i
- );
- }
- var fc = (function (t) {
- Ae(r, t);
- function r(n, a, i, o, s, u, l) {
- l === void 0 && (l = {});
- var f = t.call(this, n, a, i, o, s, u, yn(l, n.defaultProps)) || this;
- return (f.typ = 'comp'), (f._usefs = []), (f._uefs = []), (f._defs = []), f;
- }
- var e = r.prototype;
- return (
- (e.s = function (n, a) {
- var i = this.b;
- return (
- i.shouldComponentUpdate(yn(n, this.t.defaultProps), a || i.state) !== !1
- );
- }),
- (e.r = function (n, a, i) {
- var o,
- s,
- u = this,
- l = u.t;
- u.ps = yn(u.ps, u.t.defaultProps);
- var f = u.ps,
- c = !u.b,
- v = l.contextType,
- p = u.b,
- d = v == null ? void 0 : v.get(u);
- (u._cs = a),
- c
- ? ((p = lc(l, f, d, u)), (u.b = p))
- : ((p.props = f), (p.context = d));
- var g = p.state;
- (u._usefs = []), (u._uefs = []);
- var h = p.render();
- ((s =
- (o = h == null ? void 0 : h.props) === null || o === void 0
- ? void 0
- : o.children) === null || s === void 0
- ? void 0
- : s.length) === 0 && (h.props.children = u.ps.children);
- var A = er(er({}, a), p.$_cs);
- me(u, u._ps, h ? [h] : [], n, A),
- c
- ? u._uefs.push(function () {
- v == null || v.register(u), p.componentDidMount();
- })
- : u._uefs.push(function () {
- p.componentDidUpdate(i, g);
- }),
- n.push(function () {
- u._usefs.forEach(function (m) {
- m();
- }),
- c ? u.md() : u.ud(),
- (u._defs = u._uefs.map(function (m) {
- return m();
- }));
- });
- }),
- (e.ss = function (n) {
- var a = this.b;
- !a || !n || (a.state = n);
- }),
- (e.un = function () {
- var n,
- a = this;
- a._ps.forEach(function (o) {
- o.un();
- });
- var i = a.t;
- (n = i.contextType) === null || n === void 0 || n.unregister(a),
- clearTimeout(a.b.$_timer),
- a._defs.forEach(function (o) {
- o && o();
- }),
- a.b.componentWillUnmount();
- }),
- r
- );
- })(on);
- function cc(t, r, e) {
- var n = ya(pi(t), pi(r)),
- a = n.added,
- i = n.removed,
- o = n.changed;
- for (var s in a) e.setAttribute(s, a[s]);
- for (var u in o) e.setAttribute(u, o[u][1]);
- for (var l in i) e.removeAttribute(l);
- }
- function vc(t, r, e) {
- var n = ya(t, r),
- a = n.added,
- i = n.removed;
- for (var o in i) e.e(o, !0);
- for (var s in a) e.e(s);
- }
- function ya(t, r) {
- var e = fr(t),
- n = fr(r),
- a = he(e, n, function (u) {
- return u;
- }),
- i = {},
- o = {},
- s = {};
- return (
- a.added.forEach(function (u) {
- var l = n[u];
- i[l] = r[l];
- }),
- a.removed.forEach(function (u) {
- var l = e[u];
- o[l] = t[l];
- }),
- a.maintained.forEach(function (u) {
- var l = u[0],
- f = e[l],
- c = [t[f], r[f]];
- t[f] !== r[f] && (s[f] = c);
- }),
- { added: i, removed: o, changed: s }
- );
- }
- function pc(t, r, e) {
- var n = e.style,
- a = ya(t, r),
- i = a.added,
- o = a.removed,
- s = a.changed;
- for (var u in i) {
- var l = Le(u, '-');
- n.setProperty(l, i[u]);
- }
- for (var u in s) {
- var f = Le(u, '-');
- n.setProperty(f, s[u][1]);
- }
- for (var u in o) {
- var c = Le(u, '-');
- n.removeProperty(c);
- }
- }
- function dc(t) {
- return t.replace(/^on/g, '').toLowerCase();
- }
- var gc = (function (t) {
- Ae(r, t);
- function r() {
- var n = (t !== null && t.apply(this, arguments)) || this;
- return (n.typ = 'elem'), (n._es = {}), (n._svg = !1), n;
- }
- var e = r.prototype;
- return (
- (e.e = function (n, a) {
- var i = this,
- o = i._es,
- s = i.b,
- u = dc(n);
- a
- ? (Mt(s, u, o[n]), delete o[n])
- : ((o[n] = function (l) {
- var f, c;
- (c = (f = i.ps)[n]) === null || c === void 0 || c.call(f, l);
- }),
- Pt(s, u, o[n]));
- }),
- (e.s = function (n) {
- return Ve(this.ps, n);
- }),
- (e.r = function (n, a, i) {
- var o,
- s = this,
- u = !s.b,
- l = s.ps;
- if (u) {
- var f = an(s.c),
- c = !1;
- s._svg || s.t === 'svg' ? (c = !0) : (c = f && f.ownerSVGElement),
- (s._svg = c);
- var v =
- (o = s._hyd) === null || o === void 0 ? void 0 : o.splice(0, 1)[0],
- p = s.t;
- if (v) s._hyd = [].slice.call(v.children || []);
- else {
- var d = Jr(f);
- c
- ? (v = d.createElementNS('http://www.w3.org/2000/svg', p))
- : (v = d.createElement(p));
- }
- s.b = v;
- }
- me(s, s._ps, l.children, n, a);
- var g = s.b,
- h = di(i),
- A = h[0],
- m = h[1],
- E = di(l),
- y = E[0],
- b = E[1];
- return (
- cc(A, y, g),
- vc(m, b, s),
- pc(i.style || {}, l.style || {}, g),
- n.push(function () {
- u ? s.md() : s.ud();
- }),
- !0
- );
- }),
- (e.un = function () {
- var n = this,
- a = n._es,
- i = n.b;
- for (var o in a) Mt(i, o, a[o]);
- n._ps.forEach(function (s) {
- s.un();
- }),
- (n._es = {}),
- n._sel || go(i);
- }),
- r
- );
- })(on);
- function ce(t) {
- if (!t || jr(t)) return t;
- var r = t.$_p._ps;
- return r.length ? ce(r[0].b) : null;
- }
- function Co(t) {
- if (t) {
- if (t.b && jr(t.b)) return t;
- var r = t._ps;
- return r.length ? Co(r[0]) : null;
- }
- }
- function _t(t, r) {
- for (var e = [], n = 2; n < arguments.length; n++) e[n - 2] = arguments[n];
- var a = r || {},
- i = a.key,
- o = a.ref,
- s = vo(a, ['key', 'ref']);
- return {
- type: t,
- key: i,
- ref: o,
- props: er(er({}, s), {
- children: Zf(e).filter(function (u) {
- return u != null && u !== !1;
- })
- })
- };
- }
- var Eo = (function (t) {
- Ae(r, t);
- function r(n, a) {
- a === void 0 && (a = 0);
- var i = t.call(this, 'container', a, 'container', 0, null) || this;
- return (i.typ = 'container'), (i.b = n), i;
- }
- var e = r.prototype;
- return (
- (e.r = function () {
- return !0;
- }),
- (e.un = function () {}),
- r
- );
- })(on),
- hc = (function (t) {
- Ae(r, t);
- function r() {
- var n = (t !== null && t.apply(this, arguments)) || this;
- return (n.typ = 'text'), n;
- }
- var e = r.prototype;
- return (
- (e.r = function (n) {
- var a,
- i = this,
- o = !i.b;
- if (o) {
- var s = an(i.c),
- u =
- (a = i._hyd) === null || a === void 0
- ? void 0
- : a.splice(0, 1)[0];
- i.b = u || Jr(s).createTextNode(i.t.replace('text_', ''));
- }
- return (
- n.push(function () {
- o ? i.md() : i.ud();
- }),
- !0
- );
- }),
- (e.un = function () {
- go(this.b);
- }),
- r
- );
- })(on);
- function Ac(t, r, e) {
- var n = e.map(function (u) {
- return Wt(u) ? null : u.key;
- }),
- a = vi(
- r.map(function (u) {
- return u.k;
- })
- ),
- i = vi(n),
- o = he(a, i, function (u) {
- return u;
- });
- o.removed.forEach(function (u) {
- r.splice(u, 1)[0].un();
- }),
- o.ordered.forEach(function (u) {
- var l = u[0],
- f = u[1],
- c = r.splice(l, 1)[0];
- r.splice(f, 0, c);
- var v = ce(c.b),
- p = ce(r[f + 1] && r[f + 1].b);
- v && v.parentNode.insertBefore(v, p);
- }),
- o.added.forEach(function (u) {
- r.splice(u, 0, gi(e[u], n[u], u, t));
- });
- var s = o.maintained.filter(function (u) {
- u[0];
- var l = u[1],
- f = e[l],
- c = r[l],
- v = Wt(f) ? 'text_'.concat(f) : f.type;
- return v !== c.t
- ? (c.un(), r.splice(l, 1, gi(f, n[l], l, t)), !0)
- : ((c.i = l), !1);
- });
- return ci(
- ci([], o.added, !0),
- s.map(function (u) {
- u[0];
- var l = u[1];
- return l;
- }),
- !0
- );
- }
- function mc(t, r) {
- for (var e = t._ps, n = e.length, a = r.i + 1; a < n; ++a) {
- var i = ce(e[a].b);
- if (i) return i;
- }
- return null;
- }
- function gi(t, r, e, n) {
- var a = n.d + 1;
- if (Wt(t) || Ur(t)) return new hc('text_'.concat(t), a, r, e, n, null, {});
- var i = t.type,
- o = typeof i == 'string' ? gc : fc;
- return new o(i, a, r, e, n, t.ref, t.props);
- }
- function me(t, r, e, n, a, i, o) {
- var s = Ac(t, r, e),
- u = t._hyd,
- l = r.filter(function (c, v) {
- return (c._hyd = u), c.u(n, a, e[v], i, o);
- });
- t.typ === 'container' &&
- t._sel &&
- r.forEach(function (c) {
- var v = Co(c);
- v && (v._sel = !0);
- }),
- (t._hyd = null);
- var f = an(t);
- return (
- f &&
- s.reverse().forEach(function (c) {
- var v = r[c],
- p = ce(v.b);
- if (p && f !== p && !p.parentNode) {
- var d = mc(t, v);
- f.insertBefore(p, d);
- }
- }),
- l.length > 0
- );
- }
- function Sc(t, r, e, n) {
- e === void 0 && (e = r.__CROACT__), n === void 0 && (n = {});
- var a = !!e;
- e || (e = new Eo(r));
- var i = [];
- return (
- me(e, e._ps, t ? [t] : [], i, n, void 0, void 0),
- ho(i),
- Ca(null),
- a || (r.__CROACT__ = e),
- e
- );
- }
- function hi(t, r, e) {
- return (
- !e && t && ((e = new Eo(r.parentElement)), (e._hyd = [r]), (e._sel = !0)),
- Sc(t, r, e),
- e
- );
- }
- function yo(t) {
- var r = Ao(),
- e = r._hs || (r._hs = []),
- n = oc(),
- a = e[n];
- if ((sc(n + 1), a)) {
- if (!Ve(a.deps, t.deps)) return (a.updated = !1), a;
- e[n] = t;
- } else e.push(t);
- return (t.value = t.func()), (t.updated = !0), t;
- }
- function Cc(t, r) {
- var e = yo({ func: t, deps: r });
- return e.value;
- }
- function Ec(t) {
- return Cc(function () {
- return So(t);
- }, []);
- }
- function Do(t, r, e) {
- var n = Ao(),
- a = yo({
- func: function () {
- return t;
- },
- deps: r
- }),
- i = e ? n._usefs : n._uefs;
- a.updated
- ? i.push(function () {
- return a.effect && a.effect(), (a.effect = t()), a.effect;
- })
- : i.push(function () {
- return a.effect;
- });
- }
- function yc(t, r, e) {
- Do(
- function () {
- t == null || t(r());
- },
- e,
- !0
- );
- }
- function Da(t, r) {
- for (var e = t.length, n = 0; n < e; ++n) if (r(t[n], n)) return !0;
- return !1;
- }
- function bo(t, r) {
- for (var e = t.length, n = 0; n < e; ++n) if (r(t[n], n)) return t[n];
- return null;
- }
- function xo(t) {
- var r = t;
- if (typeof r > 'u') {
- if (typeof navigator > 'u' || !navigator) return '';
- r = navigator.userAgent || '';
- }
- return r.toLowerCase();
- }
- function ba(t, r) {
- try {
- return new RegExp(t, 'g').exec(r);
- } catch (e) {
- return null;
- }
- }
- function Dc() {
- if (typeof navigator > 'u' || !navigator || !navigator.userAgentData)
- return !1;
- var t = navigator.userAgentData,
- r = t.brands || t.uaList;
- return !!(r && r.length);
- }
- function bc(t, r) {
- var e = ba('(' + t + ')((?:\\/|\\s|:)([0-9|\\.|_]+))', r);
- return e ? e[3] : '';
- }
- function Hn(t) {
- return t.replace(/_/g, '.');
- }
- function re(t, r) {
- var e = null,
- n = '-1';
- return (
- Da(t, function (a) {
- var i = ba('(' + a.test + ')((?:\\/|\\s|:)([0-9|\\.|_]+))?', r);
- return !i || a.brand
- ? !1
- : ((e = a),
- (n = i[3] || '-1'),
- a.versionAlias
- ? (n = a.versionAlias)
- : a.versionTest && (n = bc(a.versionTest.toLowerCase(), r) || n),
- (n = Hn(n)),
- !0);
- }),
- { preset: e, version: n }
- );
- }
- function te(t, r) {
- var e = { brand: '', version: '-1' };
- return (
- Da(t, function (n) {
- var a = wo(r, n);
- return a
- ? ((e.brand = n.id),
- (e.version = n.versionAlias || a.version),
- e.version !== '-1')
- : !1;
- }),
- e
- );
- }
- function wo(t, r) {
- return bo(t, function (e) {
- var n = e.brand;
- return ba('' + r.test, n.toLowerCase());
- });
- }
- var Ln = [
- { test: 'phantomjs', id: 'phantomjs' },
- { test: 'whale', id: 'whale' },
- { test: 'edgios|edge|edg', id: 'edge' },
- {
- test: 'msie|trident|windows phone',
- id: 'ie',
- versionTest: 'iemobile|msie|rv'
- },
- { test: 'miuibrowser', id: 'miui browser' },
- { test: 'samsungbrowser', id: 'samsung internet' },
- { test: 'samsung', id: 'samsung internet', versionTest: 'version' },
- { test: 'chrome|crios', id: 'chrome' },
- { test: 'firefox|fxios', id: 'firefox' },
- { test: 'android', id: 'android browser', versionTest: 'version' },
- { test: 'safari|iphone|ipad|ipod', id: 'safari', versionTest: 'version' }
- ],
- Ro = [
- {
- test: '(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)',
- id: 'chrome',
- versionTest: 'chrome'
- },
- { test: 'chromium', id: 'chrome' },
- { test: 'whale', id: 'chrome', versionAlias: '-1', brand: !0 }
- ],
- Un = [
- { test: 'applewebkit', id: 'webkit', versionTest: 'applewebkit|safari' }
- ],
- Bo = [
- { test: '(?=(iphone|ipad))(?!(.*version))', id: 'webview' },
- { test: '(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))', id: 'webview' },
- { test: 'webview', id: 'webview' }
- ],
- Mo = [
- { test: 'windows phone', id: 'windows phone' },
- { test: 'windows 2000', id: 'window', versionAlias: '5.0' },
- { test: 'windows nt', id: 'window' },
- { test: 'win32|windows', id: 'window' },
- { test: 'iphone|ipad|ipod', id: 'ios', versionTest: 'iphone os|cpu os' },
- { test: 'macos|macintel|mac os x', id: 'mac' },
- { test: 'android|linux armv81', id: 'android' },
- { test: 'tizen', id: 'tizen' },
- { test: 'webos|web0s', id: 'webos' }
- ];
- function Io(t) {
- return !!re(Bo, t).preset;
- }
- function xc(t) {
- var r = xo(t),
- e = !!/mobi/g.exec(r),
- n = {
- name: 'unknown',
- version: '-1',
- majorVersion: -1,
- webview: Io(r),
- chromium: !1,
- chromiumVersion: '-1',
- webkit: !1,
- webkitVersion: '-1'
- },
- a = { name: 'unknown', version: '-1', majorVersion: -1 },
- i = re(Ln, r),
- o = i.preset,
- s = i.version,
- u = re(Mo, r),
- l = u.preset,
- f = u.version,
- c = re(Ro, r);
- if (
- ((n.chromium = !!c.preset), (n.chromiumVersion = c.version), !n.chromium)
- ) {
- var v = re(Un, r);
- (n.webkit = !!v.preset), (n.webkitVersion = v.version);
- }
- return (
- l && ((a.name = l.id), (a.version = f), (a.majorVersion = parseInt(f, 10))),
- o &&
- ((n.name = o.id),
- (n.version = s),
- n.webview && a.name === 'ios' && n.name !== 'safari' && (n.webview = !1)),
- (n.majorVersion = parseInt(n.version, 10)),
- { browser: n, os: a, isMobile: e, isHints: !1 }
- );
- }
- function wc(t) {
- var r = navigator.userAgentData,
- e = (r.uaList || r.brands).slice(),
- n = t && t.fullVersionList,
- a = r.mobile || !1,
- i = e[0],
- o = ((t && t.platform) || r.platform || navigator.platform).toLowerCase(),
- s = {
- name: i.brand,
- version: i.version,
- majorVersion: -1,
- webkit: !1,
- webkitVersion: '-1',
- chromium: !1,
- chromiumVersion: '-1',
- webview: !!te(Bo, e).brand || Io(xo())
- },
- u = { name: 'unknown', version: '-1', majorVersion: -1 };
- s.webkit =
- !s.chromium &&
- Da(Un, function (d) {
- return wo(e, d);
- });
- var l = te(Ro, e);
- if (
- ((s.chromium = !!l.brand), (s.chromiumVersion = l.version), !s.chromium)
- ) {
- var f = te(Un, e);
- (s.webkit = !!f.brand), (s.webkitVersion = f.version);
- }
- var c = bo(Mo, function (d) {
- return new RegExp('' + d.test, 'g').exec(o);
- });
- if (
- ((u.name = c ? c.id : ''),
- t && (u.version = t.platformVersion),
- n && n.length)
- ) {
- var v = te(Ln, n);
- (s.name = v.brand || s.name), (s.version = v.version || s.version);
- } else {
- var p = te(Ln, e);
- (s.name = p.brand || s.name),
- (s.version = p.brand && t ? t.uaFullVersion : p.version);
- }
- return (
- s.webkit && (u.name = a ? 'ios' : 'mac'),
- u.name === 'ios' && s.webview && (s.version = '-1'),
- (u.version = Hn(u.version)),
- (s.version = Hn(s.version)),
- (u.majorVersion = parseInt(u.version, 10)),
- (s.majorVersion = parseInt(s.version, 10)),
- { browser: s, os: u, isMobile: a, isHints: !0 }
- );
- }
- function Rc(t) {
- return typeof t > 'u' && Dc() ? wc() : xc(t);
- }
- function Bc(t, r, e, n, a, i) {
- for (var o = 0; o < a; ++o) {
- var s = e + o * a,
- u = n + o * a;
- (t[s] += t[u] * i), (r[s] += r[u] * i);
- }
- }
- function Mc(t, r, e, n, a) {
- for (var i = 0; i < a; ++i) {
- var o = e + i * a,
- s = n + i * a,
- u = t[o],
- l = r[o];
- (t[o] = t[s]), (t[s] = u), (r[o] = r[s]), (r[s] = l);
- }
- }
- function Ic(t, r, e, n, a) {
- for (var i = 0; i < n; ++i) {
- var o = e + i * n;
- (t[o] /= a), (r[o] /= a);
- }
- }
- function To(t, r, e) {
- e === void 0 && (e = Math.sqrt(t.length));
- for (var n = t.slice(), a = 0; a < e; ++a)
- (n[a * e + r - 1] = 0), (n[(r - 1) * e + a] = 0);
- return (n[(r - 1) * (e + 1)] = 1), n;
- }
- function ar(t, r) {
- r === void 0 && (r = Math.sqrt(t.length));
- for (var e = t.slice(), n = St(r), a = 0; a < r; ++a) {
- var i = r * a + a;
- if (!nt(e[i], wt)) {
- for (var o = a + 1; o < r; ++o)
- if (e[r * a + o]) {
- Mc(e, n, a, o, r);
- break;
- }
- }
- if (!nt(e[i], wt)) return [];
- Ic(e, n, a, r, e[i]);
- for (var o = 0; o < r; ++o) {
- var s = o,
- u = o + a * r,
- l = e[u];
- !nt(l, wt) || a === o || Bc(e, n, s, a, r, -l);
- }
- }
- return n;
- }
- function Tc(t, r) {
- r === void 0 && (r = Math.sqrt(t.length));
- for (var e = [], n = 0; n < r; ++n)
- for (var a = 0; a < r; ++a) e[a * r + n] = t[r * n + a];
- return e;
- }
- function Oo(t, r) {
- r === void 0 && (r = Math.sqrt(t.length));
- for (var e = [], n = t[r * r - 1], a = 0; a < r - 1; ++a)
- e[a] = t[r * (r - 1) + a] / n;
- return (e[r - 1] = 0), e;
- }
- function Oc(t, r) {
- for (var e = St(r), n = 0; n < r - 1; ++n) e[r * (r - 1) + n] = t[n] || 0;
- return e;
- }
- function Mr(t, r) {
- for (var e = t.slice(), n = t.length; n < r - 1; ++n) e[n] = 0;
- return (e[r - 1] = 1), e;
- }
- function rr(t, r, e) {
- if ((r === void 0 && (r = Math.sqrt(t.length)), r === e)) return t;
- for (var n = St(e), a = Math.min(r, e), i = 0; i < a - 1; ++i) {
- for (var o = 0; o < a - 1; ++o) n[i * e + o] = t[i * r + o];
- (n[(i + 1) * e - 1] = t[(i + 1) * r - 1]),
- (n[(e - 1) * e + i] = t[(r - 1) * r + i]);
- }
- return (n[e * e - 1] = t[r * r - 1]), n;
- }
- function We(t) {
- for (var r = [], e = 1; e < arguments.length; e++) r[e - 1] = arguments[e];
- var n = St(t);
- return (
- r.forEach(function (a) {
- n = ht(n, a, t);
- }),
- n
- );
- }
- function ht(t, r, e) {
- e === void 0 && (e = Math.sqrt(t.length));
- var n = [],
- a = t.length / e,
- i = r.length / a;
- if (a) {
- if (!i) return t;
- } else return r;
- for (var o = 0; o < e; ++o)
- for (var s = 0; s < i; ++s) {
- n[s * e + o] = 0;
- for (var u = 0; u < a; ++u) n[s * e + o] += t[u * e + o] * r[s * a + u];
- }
- return n;
- }
- function ft(t, r) {
- for (var e = Math.min(t.length, r.length), n = t.slice(), a = 0; a < e; ++a)
- n[a] = n[a] + r[a];
- return n;
- }
- function tt(t, r) {
- for (var e = Math.min(t.length, r.length), n = t.slice(), a = 0; a < e; ++a)
- n[a] = n[a] - r[a];
- return n;
- }
- function Pc(t, r) {
- return (
- r === void 0 && (r = t.length === 6),
- r ? [t[0], t[1], 0, t[2], t[3], 0, t[4], t[5], 1] : t
- );
- }
- function Po(t, r) {
- return (
- r === void 0 && (r = t.length === 9),
- r ? [t[0], t[1], t[3], t[4], t[6], t[7]] : t
- );
- }
- function Nt(t, r, e) {
- e === void 0 && (e = r.length);
- var n = ht(t, r, e),
- a = n[e - 1];
- return n.map(function (i) {
- return i / a;
- });
- }
- function kc(t, r) {
- return ht(
- t,
- [
- 1,
- 0,
- 0,
- 0,
- 0,
- Math.cos(r),
- Math.sin(r),
- 0,
- 0,
- -Math.sin(r),
- Math.cos(r),
- 0,
- 0,
- 0,
- 0,
- 1
- ],
- 4
- );
- }
- function Gc(t, r) {
- return ht(
- t,
- [
- Math.cos(r),
- 0,
- -Math.sin(r),
- 0,
- 0,
- 1,
- 0,
- 0,
- Math.sin(r),
- 0,
- Math.cos(r),
- 0,
- 0,
- 0,
- 0,
- 1
- ],
- 4
- );
- }
- function Nc(t, r) {
- return ht(t, Ce(r, 4));
- }
- function Re(t, r) {
- var e = r[0],
- n = e === void 0 ? 1 : e,
- a = r[1],
- i = a === void 0 ? 1 : a,
- o = r[2],
- s = o === void 0 ? 1 : o;
- return ht(t, [n, 0, 0, 0, 0, i, 0, 0, 0, 0, s, 0, 0, 0, 0, 1], 4);
- }
- function Se(t, r) {
- return Nt(Ce(r, 3), Mr(t, 3));
- }
- function Dn(t, r) {
- var e = r[0],
- n = e === void 0 ? 0 : e,
- a = r[1],
- i = a === void 0 ? 0 : a,
- o = r[2],
- s = o === void 0 ? 0 : o;
- return ht(t, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, n, i, s, 1], 4);
- }
- function Ai(t, r) {
- return ht(t, r, 4);
- }
- function Ce(t, r) {
- var e = Math.cos(t),
- n = Math.sin(t),
- a = St(r);
- return (a[0] = e), (a[1] = n), (a[r] = -n), (a[r + 1] = e), a;
- }
- function St(t) {
- for (var r = t * t, e = [], n = 0; n < r; ++n) e[n] = n % (t + 1) ? 0 : 1;
- return e;
- }
- function Ye(t, r) {
- for (var e = St(r), n = Math.min(t.length, r - 1), a = 0; a < n; ++a)
- e[(r + 1) * a] = t[a];
- return e;
- }
- function Ir(t, r) {
- for (var e = St(r), n = Math.min(t.length, r - 1), a = 0; a < n; ++a)
- e[r * (r - 1) + a] = t[a];
- return e;
- }
- function xa(t, r, e, n, a, i, o, s) {
- var u = t[0],
- l = t[1],
- f = r[0],
- c = r[1],
- v = e[0],
- p = e[1],
- d = n[0],
- g = n[1],
- h = a[0],
- A = a[1],
- m = i[0],
- E = i[1],
- y = o[0],
- b = o[1],
- C = s[0],
- S = s[1],
- D = [
- u,
- 0,
- f,
- 0,
- v,
- 0,
- d,
- 0,
- l,
- 0,
- c,
- 0,
- p,
- 0,
- g,
- 0,
- 1,
- 0,
- 1,
- 0,
- 1,
- 0,
- 1,
- 0,
- 0,
- u,
- 0,
- f,
- 0,
- v,
- 0,
- d,
- 0,
- l,
- 0,
- c,
- 0,
- p,
- 0,
- g,
- 0,
- 1,
- 0,
- 1,
- 0,
- 1,
- 0,
- 1,
- -h * u,
- -A * u,
- -m * f,
- -E * f,
- -y * v,
- -b * v,
- -C * d,
- -S * d,
- -h * l,
- -A * l,
- -m * c,
- -E * c,
- -y * p,
- -b * p,
- -C * g,
- -S * g
- ],
- x = ar(D, 8);
- if (!x.length) return [];
- var w = ht(x, [h, A, m, E, y, b, C, S], 8);
- return (w[8] = 1), rr(Tc(w), 3, 4);
- }
- var ae = function () {
- return (
- (ae =
- Object.assign ||
- function (r) {
- for (var e, n = 1, a = arguments.length; n < a; n++) {
- e = arguments[n];
- for (var i in e)
- Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
- }
- return r;
- }),
- ae.apply(this, arguments)
- );
- };
- function Fc() {
- return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
- }
- function Qe(t, r) {
- return r === void 0 && (r = 0), Nr(Vr(t, r));
- }
- function zc(t, r) {
- var e = Nt(t, [r[0], r[1] || 0, r[2] || 0, 1], 4),
- n = e[3] || 1;
- return [e[0] / n, e[1] / n, e[2] / n];
- }
- function Nr(t) {
- var r = Fc();
- return (
- t.forEach(function (e) {
- var n = e.matrixFunction,
- a = e.functionValue;
- n && (r = n(r, a));
- }),
- r
- );
- }
- function Vr(t, r) {
- r === void 0 && (r = 0);
- var e = Rt(t) ? t : Ar(t);
- return e.map(function (n) {
- var a = io(n),
- i = a.prefix,
- o = a.value,
- s = null,
- u = i,
- l = '';
- if (i === 'translate' || i === 'translateX' || i === 'translate3d') {
- var f = tr(r) ? ae(ae({}, r), { 'o%': r['%'] }) : { '%': r, 'o%': r },
- c = Br(o).map(function (M, O) {
- return (
- O === 0 && 'x%' in f
- ? (f['%'] = r['x%'])
- : O === 1 && 'y%' in f
- ? (f['%'] = r['y%'])
- : (f['%'] = r['o%']),
- gt(M, f)
- );
- }),
- v = c[0],
- p = c[1],
- d = p === void 0 ? 0 : p,
- g = c[2],
- h = g === void 0 ? 0 : g;
- (s = Dn), (l = [v, d, h]);
- } else if (i === 'translateY') {
- var A = tr(r) ? ae({ '%': r['y%'] }, r) : { '%': r },
- d = gt(o, A);
- (s = Dn), (l = [0, d, 0]);
- } else if (i === 'translateZ') {
- var h = parseFloat(o);
- (s = Dn), (l = [0, 0, h]);
- } else if (i === 'scale' || i === 'scale3d') {
- var m = Br(o).map(function (M) {
- return parseFloat(M);
- }),
- E = m[0],
- y = m[1],
- b = y === void 0 ? E : y,
- C = m[2],
- S = C === void 0 ? 1 : C;
- (s = Re), (l = [E, b, S]);
- } else if (i === 'scaleX') {
- var E = parseFloat(o);
- (s = Re), (l = [E, 1, 1]);
- } else if (i === 'scaleY') {
- var b = parseFloat(o);
- (s = Re), (l = [1, b, 1]);
- } else if (i === 'scaleZ') {
- var S = parseFloat(o);
- (s = Re), (l = [1, 1, S]);
- } else if (
- i === 'rotate' ||
- i === 'rotateZ' ||
- i === 'rotateX' ||
- i === 'rotateY'
- ) {
- var D = ge(o),
- x = D.unit,
- w = D.value,
- T = x === 'rad' ? w : (w * Math.PI) / 180;
- i === 'rotate' || i === 'rotateZ'
- ? ((u = 'rotateZ'), (s = Nc))
- : i === 'rotateX'
- ? (s = kc)
- : i === 'rotateY' && (s = Gc),
- (l = T);
- } else if (i === 'matrix3d')
- (s = Ai),
- (l = Br(o).map(function (M) {
- return parseFloat(M);
- }));
- else if (i === 'matrix') {
- var I = Br(o).map(function (M) {
- return parseFloat(M);
- });
- (s = Ai),
- (l = [
- I[0],
- I[1],
- 0,
- 0,
- I[2],
- I[3],
- 0,
- 0,
- 0,
- 0,
- 1,
- 0,
- I[4],
- I[5],
- 0,
- 1
- ]);
- } else u = '';
- return {
- name: i,
- functionName: u,
- value: o,
- matrixFunction: s,
- functionValue: l
- };
- });
- }
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */ var Vn =
- function (t, r) {
- return (
- (Vn =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (e, n) {
- e.__proto__ = n;
- }) ||
- function (e, n) {
- for (var a in n) n.hasOwnProperty(a) && (e[a] = n[a]);
- }),
- Vn(t, r)
- );
- };
- function Hc(t, r) {
- Vn(t, r);
- function e() {
- this.constructor = t;
- }
- t.prototype =
- r === null ? Object.create(r) : ((e.prototype = r.prototype), new e());
- }
- var ko =
- typeof Map == 'function'
- ? void 0
- : (function () {
- var t = 0;
- return function (r) {
- return r.__DIFF_KEY__ || (r.__DIFF_KEY__ = ++t);
- };
- })(),
- Lc = (function (t) {
- Hc(r, t);
- function r(e) {
- return e === void 0 && (e = []), t.call(this, e, ko) || this;
- }
- return r;
- })(ac);
- function Uc(t, r) {
- return he(t, r, ko);
- }
- const Go = Lc;
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */ var Wn =
- function () {
- return (
- (Wn =
- Object.assign ||
- function (r) {
- for (var e, n = 1, a = arguments.length; n < a; n++) {
- e = arguments[n];
- for (var i in e)
- Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
- }
- return r;
- }),
- Wn.apply(this, arguments)
- );
- };
- function Vc() {
- for (var t = 0, r = 0, e = arguments.length; r < e; r++)
- t += arguments[r].length;
- for (var n = Array(t), a = 0, r = 0; r < e; r++)
- for (var i = arguments[r], o = 0, s = i.length; o < s; o++, a++)
- n[a] = i[o];
- return n;
- }
- var Wc = (function () {
- function t() {
- this._events = {};
- }
- var r = t.prototype;
- return (
- (r.on = function (e, n) {
- if (tr(e)) for (var a in e) this.on(a, e[a]);
- else this._addEvent(e, n, {});
- return this;
- }),
- (r.off = function (e, n) {
- if (!e) this._events = {};
- else if (tr(e)) for (var a in e) this.off(a);
- else if (!n) this._events[e] = [];
- else {
- var i = this._events[e];
- if (i) {
- var o = lr(i, function (s) {
- return s.listener === n;
- });
- o > -1 && i.splice(o, 1);
- }
- }
- return this;
- }),
- (r.once = function (e, n) {
- var a = this;
- return (
- n && this._addEvent(e, n, { once: !0 }),
- new Promise(function (i) {
- a._addEvent(e, i, { once: !0 });
- })
- );
- }),
- (r.emit = function (e, n) {
- var a = this;
- n === void 0 && (n = {});
- var i = this._events[e];
- if (!e || !i) return !0;
- var o = !1;
- return (
- (n.eventType = e),
- (n.stop = function () {
- o = !0;
- }),
- (n.currentTarget = this),
- Vc(i).forEach(function (s) {
- s.listener(n), s.once && a.off(e, s.listener);
- }),
- !o
- );
- }),
- (r.trigger = function (e, n) {
- return n === void 0 && (n = {}), this.emit(e, n);
- }),
- (r._addEvent = function (e, n, a) {
- var i = this._events;
- i[e] = i[e] || [];
- var o = i[e];
- o.push(Wn({ listener: n }, a));
- }),
- t
- );
- })();
- const sn = Wc;
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */ var Yn =
- function (t, r) {
- return (
- (Yn =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (e, n) {
- e.__proto__ = n;
- }) ||
- function (e, n) {
- for (var a in n) n.hasOwnProperty(a) && (e[a] = n[a]);
- }),
- Yn(t, r)
- );
- };
- function Yc(t, r) {
- Yn(t, r);
- function e() {
- this.constructor = t;
- }
- t.prototype =
- r === null ? Object.create(r) : ((e.prototype = r.prototype), new e());
- }
- var Fr = function () {
- return (
- (Fr =
- Object.assign ||
- function (r) {
- for (var e, n = 1, a = arguments.length; n < a; n++) {
- e = arguments[n];
- for (var i in e)
- Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
- }
- return r;
- }),
- Fr.apply(this, arguments)
- );
- };
- function Qc(t) {
- var r = t.container;
- return r === document.body
- ? [
- r.scrollLeft || document.documentElement.scrollLeft,
- r.scrollTop || document.documentElement.scrollTop
- ]
- : [r.scrollLeft, r.scrollTop];
- }
- function mi(t, r) {
- return (
- t.addEventListener('scroll', r),
- function () {
- t.removeEventListener('scroll', r);
- }
- );
- }
- function Be(t) {
- if (t) {
- if (Wt(t)) return document.querySelector(t);
- } else return null;
- if (ga(t)) return t();
- if (t instanceof Element) return t;
- if ('current' in t) return t.current;
- if ('value' in t) return t.value;
- }
- var Xc = (function (t) {
- Yc(r, t);
- function r() {
- var n = (t !== null && t.apply(this, arguments)) || this;
- return (
- (n._startRect = null),
- (n._startPos = []),
- (n._prevTime = 0),
- (n._timer = 0),
- (n._prevScrollPos = [0, 0]),
- (n._isWait = !1),
- (n._flag = !1),
- (n._currentOptions = null),
- (n._lock = !1),
- (n._unregister = null),
- (n._onScroll = function () {
- var a = n._currentOptions;
- n._lock ||
- !a ||
- n.emit('scrollDrag', {
- next: function (i) {
- n.checkScroll({ container: a.container, inputEvent: i });
- }
- });
- }),
- n
- );
- }
- var e = r.prototype;
- return (
- (e.dragStart = function (n, a) {
- var i = Be(a.container);
- if (!i) {
- this._flag = !1;
- return;
- }
- var o = 0,
- s = 0,
- u = 0,
- l = 0;
- if (i === document.body)
- (u = window.innerWidth), (l = window.innerHeight);
- else {
- var f = i.getBoundingClientRect();
- (o = f.top), (s = f.left), (u = f.width), (l = f.height);
- }
- (this._flag = !0),
- (this._startPos = [n.clientX, n.clientY]),
- (this._startRect = { top: o, left: s, width: u, height: l }),
- (this._prevScrollPos = this._getScrollPosition([0, 0], a)),
- (this._currentOptions = a),
- this._registerScrollEvent(a);
- }),
- (e.drag = function (n, a) {
- if ((clearTimeout(this._timer), !!this._flag)) {
- var i = n.clientX,
- o = n.clientY,
- s = a.threshold,
- u = s === void 0 ? 0 : s,
- l = this,
- f = l._startRect,
- c = l._startPos;
- this._currentOptions = a;
- var v = [0, 0];
- return (
- f.top > o - u
- ? (c[1] > f.top || o < c[1]) && (v[1] = -1)
- : f.top + f.height < o + u &&
- (c[1] < f.top + f.height || o > c[1]) &&
- (v[1] = 1),
- f.left > i - u
- ? (c[0] > f.left || i < c[0]) && (v[0] = -1)
- : f.left + f.width < i + u &&
- (c[0] < f.left + f.width || i > c[0]) &&
- (v[0] = 1),
- !v[0] && !v[1]
- ? !1
- : this._continueDrag(
- Fr(Fr({}, a), { direction: v, inputEvent: n, isDrag: !0 })
- )
- );
- }
- }),
- (e.checkScroll = function (n) {
- var a = this;
- if (this._isWait) return !1;
- var i = n.prevScrollPos,
- o = i === void 0 ? this._prevScrollPos : i,
- s = n.direction,
- u = n.throttleTime,
- l = u === void 0 ? 0 : u,
- f = n.inputEvent,
- c = n.isDrag,
- v = this._getScrollPosition(s || [0, 0], n),
- p = v[0] - o[0],
- d = v[1] - o[1],
- g = s || [p ? Math.abs(p) / p : 0, d ? Math.abs(d) / d : 0];
- return (
- (this._prevScrollPos = v),
- (this._lock = !1),
- !p && !d
- ? !1
- : (this.emit('move', {
- offsetX: g[0] ? p : 0,
- offsetY: g[1] ? d : 0,
- inputEvent: f
- }),
- l &&
- c &&
- (clearTimeout(this._timer),
- (this._timer = window.setTimeout(function () {
- a._continueDrag(n);
- }, l))),
- !0)
- );
- }),
- (e.dragEnd = function () {
- (this._flag = !1),
- (this._lock = !1),
- clearTimeout(this._timer),
- this._unregisterScrollEvent();
- }),
- (e._getScrollPosition = function (n, a) {
- var i = a.container,
- o = a.getScrollPosition,
- s = o === void 0 ? Qc : o;
- return s({ container: Be(i), direction: n });
- }),
- (e._continueDrag = function (n) {
- var a = this,
- i,
- o = n.container,
- s = n.direction,
- u = n.throttleTime,
- l = n.useScroll,
- f = n.isDrag,
- c = n.inputEvent;
- if (!(!this._flag || (f && this._isWait))) {
- var v = fe(),
- p = Math.max(u + this._prevTime - v, 0);
- if (p > 0)
- return (
- clearTimeout(this._timer),
- (this._timer = window.setTimeout(function () {
- a._continueDrag(n);
- }, p)),
- !1
- );
- this._prevTime = v;
- var d = this._getScrollPosition(s, n);
- (this._prevScrollPos = d),
- f && (this._isWait = !0),
- l || (this._lock = !0);
- var g = { container: Be(o), direction: s, inputEvent: c };
- return (
- (i = n.requestScroll) === null || i === void 0 || i.call(n, g),
- this.emit('scroll', g),
- (this._isWait = !1),
- l ||
- this.checkScroll(
- Fr(Fr({}, n), { prevScrollPos: d, direction: s, inputEvent: c })
- )
- );
- }
- }),
- (e._registerScrollEvent = function (n) {
- this._unregisterScrollEvent();
- var a = n.checkScrollEvent;
- if (a) {
- var i = a === !0 ? mi : a,
- o = Be(n.container);
- a === !0 && (o === document.body || o === document.documentElement)
- ? (this._unregister = mi(window, this._onScroll))
- : (this._unregister = i(o, this._onScroll));
- }
- }),
- (e._unregisterScrollEvent = function () {
- var n;
- (n = this._unregister) === null || n === void 0 || n.call(this),
- (this._unregister = null);
- }),
- r
- );
- })(sn);
- const qc = Xc;
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */ function Kc() {
- for (var t = 0, r = 0, e = arguments.length; r < e; r++)
- t += arguments[r].length;
- for (var n = Array(t), a = 0, r = 0; r < e; r++)
- for (var i = arguments[r], o = 0, s = i.length; o < s; o++, a++)
- n[a] = i[o];
- return n;
- }
- function Vt(t) {
- return nt(t, wt);
- }
- function Jc(t, r) {
- return t.every(function (e, n) {
- return Vt(e - r[n]) === 0;
- });
- }
- function jc(t, r) {
- return !Vt(t[0] - r[0]) && !Vt(t[1] - r[1]);
- }
- function No(t) {
- return t.length < 3
- ? 0
- : Math.abs(
- Kf(
- t.map(function (r, e) {
- var n = t[e + 1] || t[0];
- return r[0] * n[1] - n[0] * r[1];
- })
- )
- ) / 2;
- }
- function Si(t, r) {
- var e = r.width,
- n = r.height,
- a = r.left,
- i = r.top,
- o = Tr(t),
- s = o.minX,
- u = o.minY,
- l = o.maxX,
- f = o.maxY,
- c = e / (l - s),
- v = n / (f - u);
- return t.map(function (p) {
- return [a + (p[0] - s) * c, i + (p[1] - u) * v];
- });
- }
- function Tr(t) {
- var r = t.map(function (n) {
- return n[0];
- }),
- e = t.map(function (n) {
- return n[1];
- });
- return {
- minX: Math.min.apply(Math, r),
- minY: Math.min.apply(Math, e),
- maxX: Math.max.apply(Math, r),
- maxY: Math.max.apply(Math, e)
- };
- }
- function Qn(t, r, e) {
- var n = t[0],
- a = t[1],
- i = Tr(r),
- o = i.minX,
- s = i.maxX,
- u = [
- [o, a],
- [s, a]
- ],
- l = Xe(u[0], u[1]),
- f = Xn(r),
- c = [];
- if (
- (f.forEach(function (d) {
- var g = Xe(d[0], d[1]),
- h = d[0];
- if (Jc(l, g)) c.push({ pos: t, line: d, type: 'line' });
- else {
- var A = Fo(wa(l, g), [u, d]);
- A.forEach(function (m) {
- d.some(function (E) {
- return jc(E, m);
- })
- ? c.push({ pos: m, line: d, type: 'point' })
- : Vt(h[1] - a) !== 0 &&
- c.push({ pos: m, line: d, type: 'intersection' });
- });
- }
- }),
- !e &&
- Kt(c, function (d) {
- return d[0] === n;
- }))
- )
- return !0;
- var v = 0,
- p = {};
- return (
- c.forEach(function (d) {
- var g = d.pos,
- h = d.type,
- A = d.line;
- if (!(g[0] > n))
- if (h === 'intersection') ++v;
- else {
- if (h === 'line') return;
- if (h === 'point') {
- var m = Kt(A, function (b) {
- return b[1] !== a;
- }),
- E = p[g[0]],
- y = m[1] > a ? 1 : -1;
- E ? E !== y && ++v : (p[g[0]] = y);
- }
- }
- }),
- v % 2 === 1
- );
- }
- function Xe(t, r) {
- var e = t[0],
- n = t[1],
- a = r[0],
- i = r[1],
- o = a - e,
- s = i - n;
- Math.abs(o) < wt && (o = 0), Math.abs(s) < wt && (s = 0);
- var u = 0,
- l = 0,
- f = 0;
- return (
- o
- ? s
- ? ((u = -s / o), (l = 1), (f = -u * e - n))
- : ((l = 1), (f = -n))
- : s && ((u = -1), (f = e)),
- [u, l, f]
- );
- }
- function wa(t, r) {
- var e = t[0],
- n = t[1],
- a = t[2],
- i = r[0],
- o = r[1],
- s = r[2],
- u = e === 0 && i === 0,
- l = n === 0 && o === 0,
- f = [];
- if (u && l) return [];
- if (u) {
- var c = -a / n,
- v = -s / o;
- return c !== v
- ? []
- : [
- [-1 / 0, c],
- [1 / 0, c]
- ];
- } else if (l) {
- var p = -a / e,
- d = -s / i;
- return p !== d
- ? []
- : [
- [p, -1 / 0],
- [p, 1 / 0]
- ];
- } else if (e === 0) {
- var g = -a / n,
- h = -(o * g + s) / i;
- f = [[h, g]];
- } else if (i === 0) {
- var g = -s / o,
- h = -(n * g + a) / e;
- f = [[h, g]];
- } else if (n === 0) {
- var h = -a / e,
- g = -(i * h + s) / o;
- f = [[h, g]];
- } else if (o === 0) {
- var h = -s / i,
- g = -(e * h + a) / n;
- f = [[h, g]];
- } else {
- var h = (n * s - o * a) / (o * e - n * i),
- g = -(e * h + a) / n;
- f = [[h, g]];
- }
- return f.map(function (A) {
- return [A[0], A[1]];
- });
- }
- function Fo(t, r) {
- var e = r.map(function (c) {
- return [0, 1].map(function (v) {
- return [Math.min(c[0][v], c[1][v]), Math.max(c[0][v], c[1][v])];
- });
- }),
- n = [];
- if (t.length === 2) {
- var a = t[0],
- i = a[0],
- o = a[1];
- if (Vt(i - t[1][0])) {
- if (!Vt(o - t[1][1])) {
- var l = Math.max.apply(
- Math,
- e.map(function (c) {
- return c[0][0];
- })
- ),
- f = Math.min.apply(
- Math,
- e.map(function (c) {
- return c[0][1];
- })
- );
- if (Vt(l - f) > 0) return [];
- n = [
- [l, o],
- [f, o]
- ];
- }
- } else {
- var s = Math.max.apply(
- Math,
- e.map(function (c) {
- return c[1][0];
- })
- ),
- u = Math.min.apply(
- Math,
- e.map(function (c) {
- return c[1][1];
- })
- );
- if (Vt(s - u) > 0) return [];
- n = [
- [i, s],
- [i, u]
- ];
- }
- }
- return (
- n.length ||
- (n = t.filter(function (c) {
- var v = c[0],
- p = c[1];
- return e.every(function (d) {
- return (
- 0 <= Vt(v - d[0][0]) &&
- 0 <= Vt(d[0][1] - v) &&
- 0 <= Vt(p - d[1][0]) &&
- 0 <= Vt(d[1][1] - p)
- );
- });
- })),
- n.map(function (c) {
- return [Vt(c[0]), Vt(c[1])];
- })
- );
- }
- function Xn(t) {
- return Kc(t.slice(1), [t[0]]).map(function (r, e) {
- return [t[e], r];
- });
- }
- function Zc(t, r) {
- var e = t.slice(),
- n = r.slice();
- li(e) === -1 && e.reverse(), li(n) === -1 && n.reverse();
- var a = Xn(e),
- i = Xn(n),
- o = a.map(function (f) {
- return Xe(f[0], f[1]);
- }),
- s = i.map(function (f) {
- return Xe(f[0], f[1]);
- }),
- u = [];
- o.forEach(function (f, c) {
- var v = a[c],
- p = [];
- s.forEach(function (d, g) {
- var h = wa(f, d),
- A = Fo(h, [v, i[g]]);
- p.push.apply(
- p,
- A.map(function (m) {
- return { index1: c, index2: g, pos: m, type: 'intersection' };
- })
- );
- }),
- p.sort(function (d, g) {
- return sr(v[0], d.pos) - sr(v[0], g.pos);
- }),
- u.push.apply(u, p),
- Qn(v[1], n) &&
- u.push({ index1: c, index2: -1, pos: v[1], type: 'inside' });
- }),
- i.forEach(function (f, c) {
- if (Qn(f[1], e)) {
- var v = !1,
- p = lr(u, function (d) {
- var g = d.index2;
- return g === c ? ((v = !0), !1) : !!v;
- });
- p === -1 &&
- ((v = !1),
- (p = lr(u, function (d) {
- var g = d.index1,
- h = d.index2;
- return g === -1 && h + 1 === c ? ((v = !0), !1) : !!v;
- }))),
- p === -1
- ? u.push({ index1: -1, index2: c, pos: f[1], type: 'inside' })
- : u.splice(p, 0, {
- index1: -1,
- index2: c,
- pos: f[1],
- type: 'inside'
- });
- }
- });
- var l = {};
- return u.filter(function (f) {
- var c = f.pos,
- v = c[0] + 'x' + c[1];
- return l[v] ? !1 : ((l[v] = !0), !0);
- });
- }
- function _c(t, r) {
- var e = Zc(t, r);
- return e.map(function (n) {
- var a = n.pos;
- return a;
- });
- }
- function $c(t, r) {
- var e = _c(t, r);
- return No(e);
- }
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */ var qn =
- function (t, r) {
- return (
- (qn =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (e, n) {
- e.__proto__ = n;
- }) ||
- function (e, n) {
- for (var a in n) n.hasOwnProperty(a) && (e[a] = n[a]);
- }),
- qn(t, r)
- );
- };
- function tv(t, r) {
- qn(t, r);
- function e() {
- this.constructor = t;
- }
- t.prototype =
- r === null ? Object.create(r) : ((e.prototype = r.prototype), new e());
- }
- var xt = function () {
- return (
- (xt =
- Object.assign ||
- function (r) {
- for (var e, n = 1, a = arguments.length; n < a; n++) {
- e = arguments[n];
- for (var i in e)
- Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
- }
- return r;
- }),
- xt.apply(this, arguments)
- );
- };
- function rv(t, r) {
- var e = r[0] - t[0],
- n = r[1] - t[1],
- a = Math.atan2(n, e);
- return a >= 0 ? a : a + Math.PI * 2;
- }
- function bn(t) {
- return (
- (rv([t[0].clientX, t[0].clientY], [t[1].clientX, t[1].clientY]) / Math.PI) *
- 180
- );
- }
- function ev(t) {
- return t.touches && t.touches.length >= 2;
- }
- function Me(t) {
- return t ? (t.touches ? av(t.touches) : [zo(t)]) : [];
- }
- function nv(t) {
- return t && (t.type.indexOf('mouse') > -1 || 'button' in t);
- }
- function Ci(t, r, e) {
- var n = e.length,
- a = ie(t, n),
- i = a.clientX,
- o = a.clientY,
- s = a.originalClientX,
- u = a.originalClientY,
- l = ie(r, n),
- f = l.clientX,
- c = l.clientY,
- v = ie(e, n),
- p = v.clientX,
- d = v.clientY,
- g = i - f,
- h = o - c,
- A = i - p,
- m = o - d;
- return { clientX: s, clientY: u, deltaX: g, deltaY: h, distX: A, distY: m };
- }
- function xn(t) {
- return Math.sqrt(
- Math.pow(t[0].clientX - t[1].clientX, 2) +
- Math.pow(t[0].clientY - t[1].clientY, 2)
- );
- }
- function av(t) {
- for (var r = Math.min(t.length, 2), e = [], n = 0; n < r; ++n)
- e.push(zo(t[n]));
- return e;
- }
- function zo(t) {
- return { clientX: t.clientX, clientY: t.clientY };
- }
- function ie(t, r) {
- r === void 0 && (r = t.length);
- for (
- var e = { clientX: 0, clientY: 0, originalClientX: 0, originalClientY: 0 },
- n = 0;
- n < r;
- ++n
- ) {
- var a = t[n];
- (e.originalClientX +=
- 'originalClientX' in a ? a.originalClientX : a.clientX),
- (e.originalClientY +=
- 'originalClientY' in a ? a.originalClientY : a.clientY),
- (e.clientX += a.clientX),
- (e.clientY += a.clientY);
- }
- return r
- ? {
- clientX: e.clientX / r,
- clientY: e.clientY / r,
- originalClientX: e.originalClientX / r,
- originalClientY: e.originalClientY / r
- }
- : e;
- }
- var wn = (function () {
- function t(r) {
- (this.prevClients = []),
- (this.startClients = []),
- (this.movement = 0),
- (this.length = 0),
- (this.startClients = r),
- (this.prevClients = r),
- (this.length = r.length);
- }
- return (
- (t.prototype.getAngle = function (r) {
- return r === void 0 && (r = this.prevClients), bn(r);
- }),
- (t.prototype.getRotation = function (r) {
- return (
- r === void 0 && (r = this.prevClients), bn(r) - bn(this.startClients)
- );
- }),
- (t.prototype.getPosition = function (r, e) {
- r === void 0 && (r = this.prevClients);
- var n = Ci(r || this.prevClients, this.prevClients, this.startClients),
- a = n.deltaX,
- i = n.deltaY;
- return (
- (this.movement += Math.sqrt(a * a + i * i)), (this.prevClients = r), n
- );
- }),
- (t.prototype.getPositions = function (r) {
- r === void 0 && (r = this.prevClients);
- var e = this.prevClients;
- return this.startClients.map(function (n, a) {
- return Ci([r[a]], [e[a]], [n]);
- });
- }),
- (t.prototype.getMovement = function (r) {
- var e = this.movement;
- if (!r) return e;
- var n = ie(r, this.length),
- a = ie(this.prevClients, this.length),
- i = n.clientX - a.clientX,
- o = n.clientY - a.clientY;
- return Math.sqrt(i * i + o * o) + e;
- }),
- (t.prototype.getDistance = function (r) {
- return r === void 0 && (r = this.prevClients), xn(r);
- }),
- (t.prototype.getScale = function (r) {
- return (
- r === void 0 && (r = this.prevClients), xn(r) / xn(this.startClients)
- );
- }),
- (t.prototype.move = function (r, e) {
- this.startClients.forEach(function (n) {
- (n.clientX -= r), (n.clientY -= e);
- }),
- this.prevClients.forEach(function (n) {
- (n.clientX -= r), (n.clientY -= e);
- });
- }),
- t
- );
- })(),
- Ei = ['textarea', 'input'],
- iv = (function (t) {
- tv(r, t);
- function r(e, n) {
- n === void 0 && (n = {});
- var a = t.call(this) || this;
- (a.options = {}),
- (a.flag = !1),
- (a.pinchFlag = !1),
- (a.data = {}),
- (a.isDrag = !1),
- (a.isPinch = !1),
- (a.clientStores = []),
- (a.targets = []),
- (a.prevTime = 0),
- (a.doubleFlag = !1),
- (a._useMouse = !1),
- (a._useTouch = !1),
- (a._useDrag = !1),
- (a._dragFlag = !1),
- (a._isTrusted = !1),
- (a._isMouseEvent = !1),
- (a._isSecondaryButton = !1),
- (a._preventMouseEvent = !1),
- (a._prevInputEvent = null),
- (a._isDragAPI = !1),
- (a._isIdle = !0),
- (a._window = window),
- (a.onDragStart = function (v, p) {
- if ((p === void 0 && (p = !0), !(!a.flag && v.cancelable === !1))) {
- var d = v.type.indexOf('drag') >= -1;
- if (!(a.flag && d)) {
- a._isDragAPI = !0;
- var g = a.options,
- h = g.container,
- A = g.pinchOutside,
- m = g.preventWheelClick,
- E = g.preventRightClick,
- y = g.preventDefault,
- b = g.checkInput,
- C = g.dragFocusedInput,
- S = g.preventClickEventOnDragStart,
- D = g.preventClickEventOnDrag,
- x = g.preventClickEventByCondition,
- w = a._useTouch,
- T = !a.flag;
- if (
- ((a._isSecondaryButton = v.which === 3 || v.button === 2),
- (m && (v.which === 2 || v.button === 1)) ||
- (E && (v.which === 3 || v.button === 2)))
- )
- return a.stop(), !1;
- if (T) {
- var I = a._window.document.activeElement,
- M = v.target;
- if (M) {
- var O = M.tagName.toLowerCase(),
- P = Ei.indexOf(O) > -1,
- z = M.isContentEditable;
- if (P || z) {
- if (b || (!C && I === M)) return !1;
- if (
- I &&
- (I === M || (z && I.isContentEditable && I.contains(M)))
- )
- if (C) M.blur();
- else return !1;
- } else if ((y || v.type === 'touchstart') && I) {
- var H = I.tagName.toLowerCase();
- (I.isContentEditable || Ei.indexOf(H) > -1) && I.blur();
- }
- (S || D || x) && Pt(a._window, 'click', a._onClick, !0);
- }
- (a.clientStores = [new wn(Me(v))]),
- (a._isIdle = !1),
- (a.flag = !0),
- (a.isDrag = !1),
- (a._isTrusted = p),
- (a._dragFlag = !0),
- (a._prevInputEvent = v),
- (a.data = {}),
- (a.doubleFlag = fe() - a.prevTime < 200),
- (a._isMouseEvent = nv(v)),
- !a._isMouseEvent &&
- a._preventMouseEvent &&
- (a._preventMouseEvent = !1);
- var G =
- a._preventMouseEvent ||
- a.emit(
- 'dragStart',
- xt(
- xt(
- {
- data: a.data,
- datas: a.data,
- inputEvent: v,
- isMouseEvent: a._isMouseEvent,
- isSecondaryButton: a._isSecondaryButton,
- isTrusted: p,
- isDouble: a.doubleFlag
- },
- a.getCurrentStore().getPosition()
- ),
- {
- preventDefault: function () {
- v.preventDefault();
- },
- preventDrag: function () {
- a._dragFlag = !1;
- }
- }
- )
- );
- G === !1 && a.stop(),
- a._isMouseEvent && a.flag && y && v.preventDefault();
- }
- if (!a.flag) return !1;
- var L = 0;
- if (
- (T
- ? (a._attchDragEvent(),
- w &&
- A &&
- (L = setTimeout(function () {
- Pt(h, 'touchstart', a.onDragStart, { passive: !1 });
- })))
- : w && A && Mt(h, 'touchstart', a.onDragStart),
- a.flag && ev(v))
- ) {
- if (
- (clearTimeout(L),
- T && v.touches.length !== v.changedTouches.length)
- )
- return;
- a.pinchFlag || a.onPinchStart(v);
- }
- }
- }
- }),
- (a.onDrag = function (v, p) {
- if (a.flag) {
- var d = a.options.preventDefault;
- !a._isMouseEvent && d && v.preventDefault(),
- (a._prevInputEvent = v);
- var g = Me(v),
- h = a.moveClients(g, v, !1);
- if (a._dragFlag) {
- if (a.pinchFlag || h.deltaX || h.deltaY) {
- var A =
- a._preventMouseEvent ||
- a.emit(
- 'drag',
- xt(xt({}, h), { isScroll: !!p, inputEvent: v })
- );
- if (A === !1) {
- a.stop();
- return;
- }
- }
- a.pinchFlag && a.onPinch(v, g);
- }
- a.getCurrentStore().getPosition(g, !0);
- }
- }),
- (a.onDragEnd = function (v) {
- if (a.flag) {
- var p = a.options,
- d = p.pinchOutside,
- g = p.container,
- h = p.preventClickEventOnDrag,
- A = p.preventClickEventOnDragStart,
- m = p.preventClickEventByCondition,
- E = a.isDrag;
- (h || A || m) &&
- requestAnimationFrame(function () {
- a._allowClickEvent();
- }),
- !m && !A && h && !E && a._allowClickEvent(),
- a._useTouch && d && Mt(g, 'touchstart', a.onDragStart),
- a.pinchFlag && a.onPinchEnd(v);
- var y = v != null && v.touches ? Me(v) : [],
- b = y.length;
- b === 0 || !a.options.keepDragging
- ? (a.flag = !1)
- : a._addStore(new wn(y));
- var C = a._getPosition(),
- S = fe(),
- D = !E && a.doubleFlag;
- (a._prevInputEvent = null),
- (a.prevTime = E || D ? 0 : S),
- a.flag ||
- (a._dettachDragEvent(),
- a._preventMouseEvent ||
- a.emit(
- 'dragEnd',
- xt(
- {
- data: a.data,
- datas: a.data,
- isDouble: D,
- isDrag: E,
- isClick: !E,
- isMouseEvent: a._isMouseEvent,
- isSecondaryButton: a._isSecondaryButton,
- inputEvent: v,
- isTrusted: a._isTrusted
- },
- C
- )
- ),
- (a.clientStores = []),
- a._isMouseEvent ||
- ((a._preventMouseEvent = !0),
- requestAnimationFrame(function () {
- requestAnimationFrame(function () {
- a._preventMouseEvent = !1;
- });
- })),
- (a._isIdle = !0));
- }
- }),
- (a.onBlur = function () {
- a.onDragEnd();
- }),
- (a._allowClickEvent = function () {
- Mt(a._window, 'click', a._onClick, !0);
- }),
- (a._onClick = function (v) {
- a._allowClickEvent(), (a._preventMouseEvent = !1);
- var p = a.options.preventClickEventByCondition;
- (p != null && p(v)) || (v.stopPropagation(), v.preventDefault());
- }),
- (a._onContextMenu = function (v) {
- var p = a.options;
- p.preventRightClick ? a.onDragEnd(v) : v.preventDefault();
- }),
- (a._passCallback = function () {});
- var i = [].concat(e),
- o = i[0];
- (a._window = co(o) ? o : hr(o)),
- (a.options = xt(
- {
- checkInput: !1,
- container: o && !('document' in o) ? hr(o) : o,
- preventRightClick: !0,
- preventWheelClick: !0,
- preventClickEventOnDragStart: !1,
- preventClickEventOnDrag: !1,
- preventClickEventByCondition: null,
- preventDefault: !0,
- checkWindowBlur: !1,
- keepDragging: !1,
- pinchThreshold: 0,
- events: ['touch', 'mouse']
- },
- n
- ));
- var s = a.options,
- u = s.container,
- l = s.events,
- f = s.checkWindowBlur;
- if (
- ((a._useDrag = l.indexOf('drag') > -1),
- (a._useTouch = l.indexOf('touch') > -1),
- (a._useMouse = l.indexOf('mouse') > -1),
- (a.targets = i),
- a._useDrag &&
- i.forEach(function (v) {
- Pt(v, 'dragstart', a.onDragStart);
- }),
- a._useMouse &&
- (i.forEach(function (v) {
- Pt(v, 'mousedown', a.onDragStart),
- Pt(v, 'mousemove', a._passCallback);
- }),
- Pt(u, 'contextmenu', a._onContextMenu)),
- f && Pt(hr(), 'blur', a.onBlur),
- a._useTouch)
- ) {
- var c = { passive: !1 };
- i.forEach(function (v) {
- Pt(v, 'touchstart', a.onDragStart, c),
- Pt(v, 'touchmove', a._passCallback, c);
- });
- }
- return a;
- }
- return (
- (r.prototype.stop = function () {
- (this.isDrag = !1),
- (this.data = {}),
- (this.clientStores = []),
- (this.pinchFlag = !1),
- (this.doubleFlag = !1),
- (this.prevTime = 0),
- (this.flag = !1),
- (this._isIdle = !0),
- this._allowClickEvent(),
- this._dettachDragEvent(),
- (this._isDragAPI = !1);
- }),
- (r.prototype.getMovement = function (e) {
- return (
- this.getCurrentStore().getMovement(e) +
- this.clientStores.slice(1).reduce(function (n, a) {
- return n + a.movement;
- }, 0)
- );
- }),
- (r.prototype.isDragging = function () {
- return this.isDrag;
- }),
- (r.prototype.isIdle = function () {
- return this._isIdle;
- }),
- (r.prototype.isFlag = function () {
- return this.flag;
- }),
- (r.prototype.isPinchFlag = function () {
- return this.pinchFlag;
- }),
- (r.prototype.isDoubleFlag = function () {
- return this.doubleFlag;
- }),
- (r.prototype.isPinching = function () {
- return this.isPinch;
- }),
- (r.prototype.scrollBy = function (e, n, a, i) {
- i === void 0 && (i = !0),
- this.flag &&
- (this.clientStores[0].move(e, n), i && this.onDrag(a, !0));
- }),
- (r.prototype.move = function (e, n) {
- var a = e[0],
- i = e[1],
- o = this.getCurrentStore(),
- s = o.prevClients;
- return this.moveClients(
- s.map(function (u) {
- var l = u.clientX,
- f = u.clientY;
- return {
- clientX: l + a,
- clientY: f + i,
- originalClientX: l,
- originalClientY: f
- };
- }),
- n,
- !0
- );
- }),
- (r.prototype.triggerDragStart = function (e) {
- this.onDragStart(e, !1);
- }),
- (r.prototype.setEventData = function (e) {
- var n = this.data;
- for (var a in e) n[a] = e[a];
- return this;
- }),
- (r.prototype.setEventDatas = function (e) {
- return this.setEventData(e);
- }),
- (r.prototype.getCurrentEvent = function (e) {
- return (
- e === void 0 && (e = this._prevInputEvent),
- xt(xt({ data: this.data, datas: this.data }, this._getPosition()), {
- movement: this.getMovement(),
- isDrag: this.isDrag,
- isPinch: this.isPinch,
- isScroll: !1,
- inputEvent: e
- })
- );
- }),
- (r.prototype.getEventData = function () {
- return this.data;
- }),
- (r.prototype.getEventDatas = function () {
- return this.data;
- }),
- (r.prototype.unset = function () {
- var e = this,
- n = this.targets,
- a = this.options.container;
- this.off(),
- Mt(this._window, 'blur', this.onBlur),
- this._useDrag &&
- n.forEach(function (i) {
- Mt(i, 'dragstart', e.onDragStart);
- }),
- this._useMouse &&
- (n.forEach(function (i) {
- Mt(i, 'mousedown', e.onDragStart);
- }),
- Mt(a, 'contextmenu', this._onContextMenu)),
- this._useTouch &&
- (n.forEach(function (i) {
- Mt(i, 'touchstart', e.onDragStart);
- }),
- Mt(a, 'touchstart', this.onDragStart)),
- (this._prevInputEvent = null),
- this._allowClickEvent(),
- this._dettachDragEvent();
- }),
- (r.prototype.onPinchStart = function (e) {
- var n = this,
- a = this.options.pinchThreshold;
- if (!(this.isDrag && this.getMovement() > a)) {
- var i = new wn(Me(e));
- (this.pinchFlag = !0), this._addStore(i);
- var o = this.emit(
- 'pinchStart',
- xt(
- xt(
- {
- data: this.data,
- datas: this.data,
- angle: i.getAngle(),
- touches: this.getCurrentStore().getPositions()
- },
- i.getPosition()
- ),
- {
- inputEvent: e,
- isTrusted: this._isTrusted,
- preventDefault: function () {
- e.preventDefault();
- },
- preventDrag: function () {
- n._dragFlag = !1;
- }
- }
- )
- );
- o === !1 && (this.pinchFlag = !1);
- }
- }),
- (r.prototype.onPinch = function (e, n) {
- if (!(!this.flag || !this.pinchFlag || n.length < 2)) {
- var a = this.getCurrentStore();
- (this.isPinch = !0),
- this.emit(
- 'pinch',
- xt(
- xt(
- {
- data: this.data,
- datas: this.data,
- movement: this.getMovement(n),
- angle: a.getAngle(n),
- rotation: a.getRotation(n),
- touches: a.getPositions(n),
- scale: a.getScale(n),
- distance: a.getDistance(n)
- },
- a.getPosition(n)
- ),
- { inputEvent: e, isTrusted: this._isTrusted }
- )
- );
- }
- }),
- (r.prototype.onPinchEnd = function (e) {
- if (this.pinchFlag) {
- var n = this.isPinch;
- (this.isPinch = !1), (this.pinchFlag = !1);
- var a = this.getCurrentStore();
- this.emit(
- 'pinchEnd',
- xt(
- xt(
- {
- data: this.data,
- datas: this.data,
- isPinch: n,
- touches: a.getPositions()
- },
- a.getPosition()
- ),
- { inputEvent: e }
- )
- );
- }
- }),
- (r.prototype.getCurrentStore = function () {
- return this.clientStores[0];
- }),
- (r.prototype.moveClients = function (e, n, a) {
- var i = this._getPosition(e, a),
- o = this.isDrag;
- (i.deltaX || i.deltaY) && (this.isDrag = !0);
- var s = !1;
- return (
- !o && this.isDrag && (s = !0),
- xt(xt({ data: this.data, datas: this.data }, i), {
- movement: this.getMovement(e),
- isDrag: this.isDrag,
- isPinch: this.isPinch,
- isScroll: !1,
- isMouseEvent: this._isMouseEvent,
- isSecondaryButton: this._isSecondaryButton,
- inputEvent: n,
- isTrusted: this._isTrusted,
- isFirstDrag: s
- })
- );
- }),
- (r.prototype._addStore = function (e) {
- this.clientStores.splice(0, 0, e);
- }),
- (r.prototype._getPosition = function (e, n) {
- var a = this.getCurrentStore(),
- i = a.getPosition(e, n),
- o = this.clientStores.slice(1).reduce(function (l, f) {
- var c = f.getPosition();
- return (l.distX += c.distX), (l.distY += c.distY), l;
- }, i),
- s = o.distX,
- u = o.distY;
- return xt(xt({}, i), { distX: s, distY: u });
- }),
- (r.prototype._attchDragEvent = function () {
- var e = this._window,
- n = this.options.container,
- a = { passive: !1 };
- this._isDragAPI &&
- (Pt(n, 'dragover', this.onDrag, a), Pt(e, 'dragend', this.onDragEnd)),
- this._useMouse &&
- (Pt(n, 'mousemove', this.onDrag), Pt(e, 'mouseup', this.onDragEnd)),
- this._useTouch &&
- (Pt(n, 'touchmove', this.onDrag, a),
- Pt(e, 'touchend', this.onDragEnd, a),
- Pt(e, 'touchcancel', this.onDragEnd, a));
- }),
- (r.prototype._dettachDragEvent = function () {
- var e = this._window,
- n = this.options.container;
- this._isDragAPI &&
- (Mt(n, 'dragover', this.onDrag), Mt(e, 'dragend', this.onDragEnd)),
- this._useMouse &&
- (Mt(n, 'mousemove', this.onDrag), Mt(e, 'mouseup', this.onDragEnd)),
- this._useTouch &&
- (Mt(n, 'touchstart', this.onDragStart),
- Mt(n, 'touchmove', this.onDrag),
- Mt(e, 'touchend', this.onDragEnd),
- Mt(e, 'touchcancel', this.onDragEnd));
- }),
- r
- );
- })(sn);
- function ov(t) {
- for (var r = 5381, e = t.length; e; ) r = (r * 33) ^ t.charCodeAt(--e);
- return r >>> 0;
- }
- var sv = ov;
- function uv(t) {
- return sv(t).toString(36);
- }
- function lv(t) {
- if (t && t.getRootNode) {
- var r = t.getRootNode();
- if (r.nodeType === 11) return r;
- }
- }
- function fv(t, r, e) {
- return e.original
- ? r
- : r.replace(/([^};{\s}][^};{]*|^\s*){/gm, function (n, a) {
- var i = a.trim();
- return (
- (i ? Br(i) : [''])
- .map(function (o) {
- var s = o.trim();
- return s.indexOf('@') === 0
- ? s
- : s.indexOf(':global') > -1
- ? s.replace(/\:global/g, '')
- : s.indexOf(':host') > -1
- ? ''.concat(s.replace(/\:host/g, '.'.concat(t)))
- : s
- ? '.'.concat(t, ' ').concat(s)
- : '.'.concat(t);
- })
- .join(', ') + ' {'
- );
- });
- }
- function cv(t, r, e, n, a) {
- var i = Jr(n),
- o = i.createElement('style');
- return (
- o.setAttribute('type', 'text/css'),
- o.setAttribute('data-styled-id', t),
- o.setAttribute('data-styled-count', '1'),
- e.nonce && o.setAttribute('nonce', e.nonce),
- (o.innerHTML = fv(t, r, e)),
- (a || i.head || i.body).appendChild(o),
- o
- );
- }
- function vv(t) {
- var r = 'rCS' + uv(t);
- return {
- className: r,
- inject: function (e, n) {
- n === void 0 && (n = {});
- var a = lv(e),
- i = (a || e.ownerDocument || document).querySelector(
- 'style[data-styled-id="'.concat(r, '"]')
- );
- if (!i) i = cv(r, t, n, e, a);
- else {
- var o = parseFloat(i.getAttribute('data-styled-count')) || 0;
- i.setAttribute('data-styled-count', ''.concat(o + 1));
- }
- return {
- destroy: function () {
- var s,
- u = parseFloat(i.getAttribute('data-styled-count')) || 0;
- u <= 1
- ? (i.remove
- ? i.remove()
- : (s = i.parentNode) === null ||
- s === void 0 ||
- s.removeChild(i),
- (i = null))
- : i.setAttribute('data-styled-count', ''.concat(u - 1));
- }
- };
- }
- };
- }
- var Kn = function () {
- return (
- (Kn =
- Object.assign ||
- function (r) {
- for (var e, n = 1, a = arguments.length; n < a; n++) {
- e = arguments[n];
- for (var i in e)
- Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
- }
- return r;
- }),
- Kn.apply(this, arguments)
- );
- };
- function pv(t, r) {
- var e = {};
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) &&
- r.indexOf(n) < 0 &&
- (e[n] = t[n]);
- if (t != null && typeof Object.getOwnPropertySymbols == 'function')
- for (var a = 0, n = Object.getOwnPropertySymbols(t); a < n.length; a++)
- r.indexOf(n[a]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[a]) &&
- (e[n[a]] = t[n[a]]);
- return e;
- }
- function Ho(t, r) {
- var e = vv(r),
- n = e.className;
- return uc(function (a, i) {
- var o = a.className,
- s = o === void 0 ? '' : o;
- a.cspNonce;
- var u = pv(a, ['className', 'cspNonce']),
- l = Ec();
- return (
- yc(
- i,
- function () {
- return l.current;
- },
- []
- ),
- Do(function () {
- var f = e.inject(l.current, { nonce: a.cspNonce });
- return function () {
- f.destroy();
- };
- }, []),
- _t(
- t,
- Kn(
- {
- ref: l,
- 'data-styled-id': n,
- className: ''.concat(s, ' ').concat(n)
- },
- u
- )
- )
- );
- });
- }
- var Jn = function (t, r) {
- return (
- (Jn =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (e, n) {
- e.__proto__ = n;
- }) ||
- function (e, n) {
- for (var a in n)
- Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
- }),
- Jn(t, r)
- );
- };
- function Ee(t, r) {
- if (typeof r != 'function' && r !== null)
- throw new TypeError(
- 'Class extends value ' + String(r) + ' is not a constructor or null'
- );
- Jn(t, r);
- function e() {
- this.constructor = t;
- }
- t.prototype =
- r === null ? Object.create(r) : ((e.prototype = r.prototype), new e());
- }
- var R = function () {
- return (
- (R =
- Object.assign ||
- function (r) {
- for (var e, n = 1, a = arguments.length; n < a; n++) {
- e = arguments[n];
- for (var i in e)
- Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
- }
- return r;
- }),
- R.apply(this, arguments)
- );
- };
- function dv(t, r) {
- var e = {};
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) &&
- r.indexOf(n) < 0 &&
- (e[n] = t[n]);
- if (t != null && typeof Object.getOwnPropertySymbols == 'function')
- for (var a = 0, n = Object.getOwnPropertySymbols(t); a < n.length; a++)
- r.indexOf(n[a]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[a]) &&
- (e[n[a]] = t[n[a]]);
- return e;
- }
- function gv(t, r, e, n) {
- var a = arguments.length,
- i =
- a < 3 ? r : n === null ? (n = Object.getOwnPropertyDescriptor(r, e)) : n,
- o;
- if (typeof Reflect == 'object' && typeof Reflect.decorate == 'function')
- i = Reflect.decorate(t, r, e, n);
- else
- for (var s = t.length - 1; s >= 0; s--)
- (o = t[s]) && (i = (a < 3 ? o(i) : a > 3 ? o(r, e, i) : o(r, e)) || i);
- return a > 3 && i && Object.defineProperty(r, e, i), i;
- }
- function hv(t) {
- var r = typeof Symbol == 'function' && Symbol.iterator,
- e = r && t[r],
- n = 0;
- if (e) return e.call(t);
- if (t && typeof t.length == 'number')
- return {
- next: function () {
- return (
- t && n >= t.length && (t = void 0), { value: t && t[n++], done: !t }
- );
- }
- };
- throw new TypeError(
- r ? 'Object is not iterable.' : 'Symbol.iterator is not defined.'
- );
- }
- function B(t, r) {
- var e = typeof Symbol == 'function' && t[Symbol.iterator];
- if (!e) return t;
- var n = e.call(t),
- a,
- i = [],
- o;
- try {
- for (; (r === void 0 || r-- > 0) && !(a = n.next()).done; ) i.push(a.value);
- } catch (s) {
- o = { error: s };
- } finally {
- try {
- a && !a.done && (e = n.return) && e.call(n);
- } finally {
- if (o) throw o.error;
- }
- }
- return i;
- }
- function U(t, r, e) {
- if (e || arguments.length === 2)
- for (var n = 0, a = r.length, i; n < a; n++)
- (i || !(n in r)) &&
- (i || (i = Array.prototype.slice.call(r, 0, n)), (i[n] = r[n]));
- return t.concat(i || Array.prototype.slice.call(r));
- }
- function ye(t, r) {
- return R({ events: [], props: [], name: t }, r);
- }
- var Av = ['n', 'w', 's', 'e'],
- Ra = ['n', 'w', 's', 'e', 'nw', 'ne', 'sw', 'se'];
- function mv(t, r) {
- return 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="'
- .concat(32 * t, 'px" height="')
- .concat(
- 32 * t,
- 'px" viewBox="0 0 32 32" ><path d="M 16,5 L 12,10 L 14.5,10 L 14.5,22 L 12,22 L 16,27 L 20,22 L 17.5,22 L 17.5,10 L 20, 10 L 16,5 Z" stroke-linejoin="round" stroke-width="1.2" fill="black" stroke="white" style="transform:rotate('
- )
- .concat(r, 'deg);transform-origin: 16px 16px"></path></svg>');
- }
- function Sv(t) {
- var r = mv(1, t),
- e = (Math.round(t / 45) * 45) % 180,
- n = 'ns-resize';
- return (
- e === 135
- ? (n = 'nwse-resize')
- : e === 45
- ? (n = 'nesw-resize')
- : e === 90 && (n = 'ew-resize'),
- 'cursor:'.concat(n, ";cursor: url('").concat(r, "') 16 16, ").concat(n, ';')
- );
- }
- var Zr = Rc(),
- Lo = Zr.browser.webkit,
- Uo =
- Lo &&
- (function () {
- var t = typeof window > 'u' ? { userAgent: '' } : window.navigator,
- r = /applewebkit\/([^\s]+)/g.exec(t.userAgent.toLowerCase());
- return r ? parseFloat(r[1]) < 605 : !1;
- })(),
- Vo = Zr.browser.name,
- Wo = parseInt(Zr.browser.version, 10),
- Cv = Vo === 'chrome',
- Ev = Zr.browser.chromium,
- yv = parseInt(Zr.browser.chromiumVersion, 10) || 0,
- Dv = (Cv && Wo >= 109) || (Ev && yv >= 109),
- bv = Vo === 'firefox',
- xv = parseInt(Zr.browser.webkitVersion, 10) >= 612 || Wo >= 15,
- Ba = 'moveable-',
- wv = Ra.map(function (t) {
- var r = '',
- e = '',
- n = 'center',
- a = 'center',
- i = 'calc(var(--moveable-control-padding, 20) * -1px)';
- return (
- t.indexOf('n') > -1 && ((r = 'top: '.concat(i, ';')), (a = 'bottom')),
- t.indexOf('s') > -1 && ((r = 'top: 0px;'), (a = 'top')),
- t.indexOf('w') > -1 && ((e = 'left: '.concat(i, ';')), (n = 'right')),
- t.indexOf('e') > -1 && ((e = 'left: 0px;'), (n = 'left')),
- '.around-control[data-direction*="'
- .concat(t, '"] {\n ')
- .concat(e)
- .concat(r, '\n transform-origin: ')
- .concat(n, ' ')
- .concat(a, ';\n }')
- );
- }).join('\n'),
- Rv =
- '\n{\nposition: absolute;\nwidth: 1px;\nheight: 1px;\nleft: 0;\ntop: 0;\nz-index: 3000;\n--moveable-color: #4af;\n--zoom: 1;\n--zoompx: 1px;\n--moveable-line-padding: 0;\n--moveable-control-padding: 0;\nwill-change: transform;\noutline: 1px solid transparent;\n}\n.control-box {\nz-index: 0;\n}\n.line, .control {\nposition: absolute;\nleft: 0;\ntop: 0;\nwill-change: transform;\n}\n.control {\nwidth: 14px;\nheight: 14px;\nborder-radius: 50%;\nborder: 2px solid #fff;\nbox-sizing: border-box;\nbackground: #4af;\nbackground: var(--moveable-color);\nmargin-top: -7px;\nmargin-left: -7px;\nborder: 2px solid #fff;\nz-index: 10;\n}\n.around-control {\nposition: absolute;\nwill-change: transform;\nwidth: calc(var(--moveable-control-padding, 20) * 1px);\nheight: calc(var(--moveable-control-padding, 20) * 1px);\nleft: calc(var(--moveable-control-padding, 20) * -0.5px);\ntop: calc(var(--moveable-control-padding, 20) * -0.5px);\nbox-sizing: border-box;\nbackground: transparent;\nz-index: 8;\ncursor: alias;\ntransform-origin: center center;\n}\n'
- .concat(
- wv,
- '\n.padding {\nposition: absolute;\ntop: 0px;\nleft: 0px;\nwidth: 100px;\nheight: 100px;\ntransform-origin: 0 0;\n}\n.line {\nwidth: 1px;\nheight: 1px;\nbackground: #4af;\nbackground: var(--moveable-color);\ntransform-origin: 0px 50%;\n}\n.line.edge {\nz-index: 1;\nbackground: transparent;\n}\n.line.dashed {\nbox-sizing: border-box;\nbackground: transparent;\n}\n.line.dashed.horizontal {\nborder-top: 1px dashed #4af;\nborder-top-color: #4af;\nborder-top-color: var(--moveable-color);\n}\n.line.dashed.vertical {\nborder-left: 1px dashed #4af;\nborder-left-color: #4af;\nborder-left-color: var(--moveable-color);\n}\n.line.vertical {\ntransform: translateX(-50%);\n}\n.line.horizontal {\ntransform: translateY(-50%);\n}\n.line.vertical.bold {\nwidth: 2px;\n}\n.line.horizontal.bold {\nheight: 2px;\n}\n\n.control.origin {\nborder-color: #f55;\nbackground: #fff;\nwidth: 12px;\nheight: 12px;\nmargin-top: -6px;\nmargin-left: -6px;\npointer-events: none;\n}\n'
- )
- .concat(
- [0, 15, 30, 45, 60, 75, 90, 105, 120, 135, 150, 165]
- .map(function (t) {
- return '\n.direction[data-rotation="'
- .concat(t, '"], :global .view-control-rotation')
- .concat(t, ' {\n')
- .concat(Sv(t), '\n}\n');
- })
- .join('\n'),
- '\n\n.line.direction:before {\ncontent: "";\nposition: absolute;\nwidth: 100%;\nheight: calc(var(--moveable-line-padding, 0) * 1px);\nbottom: 0;\nleft: 0;\n}\n.group {\nz-index: -1;\n}\n.area {\nposition: absolute;\n}\n.area-pieces {\nposition: absolute;\ntop: 0;\nleft: 0;\ndisplay: none;\n}\n.area.avoid, .area.pass {\npointer-events: none;\n}\n.area.avoid+.area-pieces {\ndisplay: block;\n}\n.area-piece {\nposition: absolute;\n}\n\n'
- )
- .concat(
- Uo
- ? ':global svg *:before {\ncontent:"";\ntransform-origin: inherit;\n}'
- : '',
- '\n'
- ),
- Bv = [
- [0, 1, 2],
- [1, 0, 3],
- [2, 0, 3],
- [3, 1, 2]
- ],
- jn = 1e-4,
- Ut = 1e-7,
- Ie = 1e-9,
- Zn = Math.pow(10, 10),
- yi = -Zn,
- Mv = {
- n: [0, -1],
- e: [1, 0],
- s: [0, 1],
- w: [-1, 0],
- nw: [-1, -1],
- ne: [1, -1],
- sw: [-1, 1],
- se: [1, 1]
- },
- Ma = {
- n: [0, 1],
- e: [1, 3],
- s: [3, 2],
- w: [2, 0],
- nw: [0],
- ne: [1],
- sw: [2],
- se: [3]
- },
- Yo = { n: 0, s: 180, w: 270, e: 90, nw: 315, ne: 45, sw: 225, se: 135 },
- Qo = [
- 'isMoveableElement',
- 'updateRect',
- 'updateTarget',
- 'destroy',
- 'dragStart',
- 'isInside',
- 'hitTest',
- 'setState',
- 'getRect',
- 'request',
- 'isDragging',
- 'getManager',
- 'forceUpdate',
- 'waitToChangeTarget',
- 'updateSelectors',
- 'getTargets',
- 'stopDrag',
- 'getControlBoxElement'
- ];
- function De(t, r, e, n, a, i) {
- var o, s;
- i === void 0 && (i = 'draggable');
- var u =
- (s =
- (o = r.gestos[i]) === null || o === void 0
- ? void 0
- : o.move(e, t.inputEvent)) !== null && s !== void 0
- ? s
- : {},
- l = u.originalDatas || u.datas,
- f = l[i] || (l[i] = {});
- return R(R({}, a ? Ts(r, u) : u), {
- isPinch: !!n,
- parentEvent: !0,
- datas: f,
- originalDatas: t.originalDatas
- });
- }
- var Wr = (function () {
- function t(r) {
- var e;
- r === void 0 && (r = 'draggable'),
- (this.ableName = r),
- (this.prevX = 0),
- (this.prevY = 0),
- (this.startX = 0),
- (this.startY = 0),
- (this.isDrag = !1),
- (this.isFlag = !1),
- (this.datas = { draggable: {} }),
- (this.datas = ((e = {}), (e[r] = {}), e));
- }
- return (
- (t.prototype.dragStart = function (r, e) {
- (this.isDrag = !1), (this.isFlag = !1);
- var n = e.originalDatas;
- return (
- (this.datas = n),
- n[this.ableName] || (n[this.ableName] = {}),
- R(R({}, this.move(r, e.inputEvent)), { type: 'dragstart' })
- );
- }),
- (t.prototype.drag = function (r, e) {
- return this.move([r[0] - this.prevX, r[1] - this.prevY], e);
- }),
- (t.prototype.move = function (r, e) {
- var n,
- a,
- i = !1;
- if (!this.isFlag)
- (this.prevX = r[0]),
- (this.prevY = r[1]),
- (this.startX = r[0]),
- (this.startY = r[1]),
- (n = r[0]),
- (a = r[1]),
- (this.isFlag = !0);
- else {
- var o = this.isDrag;
- (n = this.prevX + r[0]),
- (a = this.prevY + r[1]),
- (r[0] || r[1]) && (this.isDrag = !0),
- !o && this.isDrag && (i = !0);
- }
- return (
- (this.prevX = n),
- (this.prevY = a),
- {
- type: 'drag',
- clientX: n,
- clientY: a,
- inputEvent: e,
- isFirstDrag: i,
- isDrag: this.isDrag,
- distX: n - this.startX,
- distY: a - this.startY,
- deltaX: r[0],
- deltaY: r[1],
- datas: this.datas[this.ableName],
- originalDatas: this.datas,
- parentEvent: !0,
- parentGesto: this
- }
- );
- }),
- t
- );
- })();
- function Lr(t, r, e, n) {
- var a = t.length === 16,
- i = a ? 4 : 3,
- o = kr(t, e, n, i),
- s = B(o, 4),
- u = B(s[0], 2),
- l = u[0],
- f = u[1],
- c = B(s[1], 2),
- v = c[0],
- p = c[1],
- d = B(s[2], 2),
- g = d[0],
- h = d[1],
- A = B(s[3], 2),
- m = A[0],
- E = A[1],
- y = B(Ct(t, r, i), 2),
- b = y[0],
- C = y[1],
- S = Math.min(l, v, g, m),
- D = Math.min(f, p, h, E),
- x = Math.max(l, v, g, m),
- w = Math.max(f, p, h, E);
- (l = l - S || 0),
- (v = v - S || 0),
- (g = g - S || 0),
- (m = m - S || 0),
- (f = f - D || 0),
- (p = p - D || 0),
- (h = h - D || 0),
- (E = E - D || 0),
- (b = b - S || 0),
- (C = C - D || 0);
- var T = t[0],
- I = t[i + 1],
- M = Xt(T * I);
- return {
- left: S,
- top: D,
- right: x,
- bottom: w,
- origin: [b, C],
- pos1: [l, f],
- pos2: [v, p],
- pos3: [g, h],
- pos4: [m, E],
- direction: M
- };
- }
- function Xo(t, r) {
- var e = r.clientX,
- n = r.clientY,
- a = r.datas,
- i = t.state,
- o = i.moveableClientRect,
- s = i.rootMatrix,
- u = i.is3d,
- l = i.pos1,
- f = o.left,
- c = o.top,
- v = u ? 4 : 3,
- p = B(tt(Xr(s, [e - f, n - c], v), l), 2),
- d = p[0],
- g = p[1],
- h = B(ir({ datas: a, distX: d, distY: g }), 2),
- A = h[0],
- m = h[1];
- return [A, m];
- }
- function Pr(t, r) {
- var e = r.datas,
- n = t.state,
- a = n.allMatrix,
- i = n.beforeMatrix,
- o = n.is3d,
- s = n.left,
- u = n.top,
- l = n.origin,
- f = n.offsetMatrix,
- c = n.targetMatrix,
- v = n.transformOrigin,
- p = o ? 4 : 3;
- (e.is3d = o),
- (e.matrix = a),
- (e.targetMatrix = c),
- (e.beforeMatrix = i),
- (e.offsetMatrix = f),
- (e.transformOrigin = v),
- (e.inverseMatrix = ar(a, p)),
- (e.inverseBeforeMatrix = ar(i, p)),
- (e.absoluteOrigin = Mr(ft([s, u], l), p)),
- (e.startDragBeforeDist = Nt(e.inverseBeforeMatrix, e.absoluteOrigin, p)),
- (e.startDragDist = Nt(e.inverseMatrix, e.absoluteOrigin, p));
- }
- function Iv(t) {
- return Lr(t.datas.beforeTransform, [50, 50], 100, 100).direction;
- }
- function un(t, r) {
- var e = t.datas,
- n = t.originalDatas.beforeRenderable,
- a = e.transformIndex,
- i = n.nextTransforms,
- o = i.length,
- s = n.nextTransformAppendedIndexes,
- u = -1;
- a === -1
- ? (r === 'translate'
- ? (u = 0)
- : r === 'rotate' &&
- (u = lr(i, function (v) {
- return v.match(/scale\(/g);
- })),
- u === -1 && (u = i.length),
- (e.transformIndex = u))
- : Kt(s, function (v) {
- return v.index === a && v.functionName === r;
- })
- ? (u = a)
- : (u =
- a +
- s.filter(function (v) {
- return v.index < a;
- }).length);
- var l = td(i, u),
- f = l.targetFunction,
- c = r === 'rotate' ? 'rotateZ' : r;
- (e.beforeFunctionTexts = l.beforeFunctionTexts),
- (e.afterFunctionTexts = l.afterFunctionTexts),
- (e.beforeTransform = l.beforeFunctionMatrix),
- (e.beforeTransform2 = l.beforeFunctionMatrix2),
- (e.targetTansform = l.targetFunctionMatrix),
- (e.afterTransform = l.afterFunctionMatrix),
- (e.afterTransform2 = l.afterFunctionMatrix2),
- (e.targetAllTransform = l.allFunctionMatrix),
- f.functionName === c
- ? (e.afterFunctionTexts.splice(0, 1), (e.isAppendTransform = !1))
- : o > u &&
- ((e.isAppendTransform = !0),
- (n.nextTransformAppendedIndexes = U(
- U([], B(s), !1),
- [{ functionName: r, index: u, isAppend: !0 }],
- !1
- )));
- }
- function ln(t, r, e) {
- return ''
- .concat(t.beforeFunctionTexts.join(' '), ' ')
- .concat(t.isAppendTransform ? e : r, ' ')
- .concat(t.afterFunctionTexts.join(' '));
- }
- function Tv(t) {
- var r = t.datas,
- e = t.distX,
- n = t.distY,
- a = B(Ko({ datas: r, distX: e, distY: n }), 2),
- i = a[0],
- o = a[1],
- s = qo(r, Oc([i, o], 4));
- return Nt(s, Mr([0, 0, 0], 4), 4);
- }
- function qo(t, r, e) {
- var n = t.beforeTransform,
- a = t.afterTransform,
- i = t.beforeTransform2,
- o = t.afterTransform2,
- s = t.targetAllTransform,
- u = e ? ht(s, r, 4) : ht(r, s, 4),
- l = ht(ar(e ? i : n, 4), u, 4),
- f = ht(l, ar(e ? o : a, 4), 4);
- return f;
- }
- function Ko(t) {
- var r = t.datas,
- e = t.distX,
- n = t.distY,
- a = r.inverseBeforeMatrix,
- i = r.is3d,
- o = r.startDragBeforeDist,
- s = r.absoluteOrigin,
- u = i ? 4 : 3;
- return tt(Nt(a, ft(s, [e, n]), u), o);
- }
- function ir(t, r) {
- var e = t.datas,
- n = t.distX,
- a = t.distY,
- i = e.inverseBeforeMatrix,
- o = e.inverseMatrix,
- s = e.is3d,
- u = e.startDragBeforeDist,
- l = e.startDragDist,
- f = e.absoluteOrigin,
- c = s ? 4 : 3;
- return tt(Nt(r ? i : o, ft(f, [n, a]), c), r ? u : l);
- }
- function Ov(t, r) {
- var e = t.datas,
- n = t.distX,
- a = t.distY,
- i = e.beforeMatrix,
- o = e.matrix,
- s = e.is3d,
- u = e.startDragBeforeDist,
- l = e.startDragDist,
- f = e.absoluteOrigin,
- c = s ? 4 : 3;
- return tt(Nt(r ? i : o, ft(r ? u : l, [n, a]), c), f);
- }
- function Pv(t, r, e, n, a, i) {
- return (
- n === void 0 && (n = r),
- a === void 0 && (a = e),
- i === void 0 && (i = [0, 0]),
- t
- ? t.map(function (o, s) {
- var u = ge(o),
- l = u.value,
- f = u.unit,
- c = s ? a : n,
- v = s ? e : r;
- if (o === '%' || isNaN(l)) {
- var p = c ? i[s] / c : 0;
- return v * p;
- } else if (f !== '%') return l;
- return (v * l) / 100;
- })
- : i
- );
- }
- function Jo(t) {
- var r = [];
- return (
- t[1] >= 0 && (t[0] >= 0 && r.push(3), t[0] <= 0 && r.push(2)),
- t[1] <= 0 && (t[0] >= 0 && r.push(1), t[0] <= 0 && r.push(0)),
- r
- );
- }
- function kv(t, r) {
- return Jo(r).map(function (e) {
- return t[e];
- });
- }
- function Ot(t, r) {
- var e = (r[0] + 1) / 2,
- n = (r[1] + 1) / 2,
- a = [Er(t[0][0], t[1][0], e, 1 - e), Er(t[0][1], t[1][1], e, 1 - e)],
- i = [Er(t[2][0], t[3][0], e, 1 - e), Er(t[2][1], t[3][1], e, 1 - e)];
- return [Er(a[0], i[0], n, 1 - n), Er(a[1], i[1], n, 1 - n)];
- }
- function Gv(t, r, e, n, a, i) {
- var o = kr(r, e, n, a),
- s = Ot(o, i),
- u = t[0] - s[0],
- l = t[1] - s[1];
- return [u, l];
- }
- function be(t, r, e, n) {
- return ht(t, se(r, n, e), n);
- }
- function Nv(t, r, e, n) {
- var a = t.transformOrigin,
- i = t.offsetMatrix,
- o = t.is3d,
- s = o ? 4 : 3,
- u;
- if (Wt(e)) {
- var l = r.beforeTransform,
- f = r.afterTransform;
- n ? (u = rr(Qe(e), 4, s)) : (u = rr(ht(ht(l, Qe([e]), 4), f, 4), 4, s));
- } else u = e;
- return be(i, u, a, s);
- }
- function Fv(t, r) {
- var e = t.transformOrigin,
- n = t.offsetMatrix,
- a = t.is3d,
- i = t.targetMatrix,
- o = t.targetAllTransform,
- s = a ? 4 : 3;
- return be(n, ht(o || i, Ye(r, s), s), e, s);
- }
- function fn(t) {
- var r = _r(t);
- return {
- setTransform: function (e, n) {
- n === void 0 && (n = -1),
- (r.startTransforms = Rt(e) ? e : Ar(e)),
- _n(t, n);
- },
- setTransformIndex: function (e) {
- _n(t, e);
- }
- };
- }
- function cn(t, r) {
- var e = _r(t),
- n = e.startTransforms;
- _n(
- t,
- lr(n, function (a) {
- return a.indexOf(''.concat(r, '(')) === 0;
- })
- );
- }
- function _n(t, r) {
- var e = _r(t),
- n = t.datas;
- if (((n.transformIndex = r), r !== -1)) {
- var a = e.startTransforms[r];
- if (a) {
- var i = Vr([a]);
- n.startValue = i[0].functionValue;
- }
- }
- }
- function Ia(t, r) {
- var e = _r(t);
- e.nextTransforms = Ar(r);
- }
- function _r(t) {
- return t.originalDatas.beforeRenderable;
- }
- function qe(t) {
- var r = t.originalDatas.beforeRenderable;
- return r.nextTransforms;
- }
- function Te(t) {
- return (qe(t) || []).join(' ');
- }
- function Oe(t) {
- return _r(t).nextStyle;
- }
- function jo(t, r, e, n, a) {
- Ia(a, r);
- var i = Ht.drag(t, De(a, t.state, e, n, !1)),
- o = i ? i.transform : r;
- return R(R({ transform: r, drag: i }, Lt({ transform: o }, a)), {
- afterTransform: o
- });
- }
- function Ta(t, r, e, n, a, i) {
- var o = Nv(t.state, a, r, i),
- s = Lv(t, e, n, o);
- return s;
- }
- function Zo(t, r, e, n, a, i, o) {
- var s = Ta(t, r, e, a, i, o),
- u = t.state,
- l = u.left,
- f = u.top,
- c = t.props.groupable,
- v = c ? l : 0,
- p = c ? f : 0,
- d = tt(n, s);
- return tt(d, [v, p]);
- }
- function zv(t, r, e, n, a, i, o) {
- var s = Zo(t, r, e, n, a, i, o);
- return s;
- }
- function Hv(t, r, e) {
- return [r ? -1 + t[0] / (r / 2) : 0, e ? -1 + t[1] / (e / 2) : 0];
- }
- function Lv(t, r, e, n) {
- n === void 0 && (n = t.state.allMatrix);
- var a = t.state,
- i = a.width,
- o = a.height,
- s = a.is3d,
- u = s ? 4 : 3,
- l = [(i / 2) * (1 + r[0]) + e[0], (o / 2) * (1 + r[1]) + e[1]];
- return Ct(n, l, u);
- }
- function Uv(t, r, e) {
- var n = e.fixedDirection,
- a = e.fixedPosition,
- i = e.fixedOffset;
- return Zo(t, 'rotate('.concat(r, 'deg)'), n, a, i, e);
- }
- function Vv(t, r, e, n, a, i) {
- var o = t.props.groupable,
- s = t.state,
- u = s.transformOrigin,
- l = s.offsetMatrix,
- f = s.is3d,
- c = s.width,
- v = s.height,
- p = s.left,
- d = s.top,
- g = i.fixedDirection,
- h = i.nextTargetMatrix || s.targetMatrix,
- A = f ? 4 : 3,
- m = Pv(a, r, e, c, v, u),
- E = o ? p : 0,
- y = o ? d : 0,
- b = be(l, h, m, A),
- C = Gv(n, b, r, e, A, g);
- return tt(C, [E, y]);
- }
- function Wv(t, r) {
- return Ot(jt(t.state), r);
- }
- function Yv(t, r) {
- var e = t.targetGesto,
- n = t.controlGesto,
- a;
- return (
- e != null && e.isFlag() && (a = e.getEventData()[r]),
- !a && n != null && n.isFlag() && (a = n.getEventData()[r]),
- a || {}
- );
- }
- function Qv(t) {
- if (t && t.getRootNode) {
- var r = t.getRootNode();
- if (r.nodeType === 11) return r;
- }
- }
- function _o(t, r, e) {
- for (
- var n = t,
- a = [],
- i = ma(t) || Cr(t),
- o = (!e && t === r) || t === i,
- s = o,
- u = !1,
- l = 3,
- f,
- c,
- v,
- p = !1,
- d = pe(r, r, !0).offsetParent,
- g = 1;
- n && !s;
- ) {
- s = o;
- var h = Yt(n),
- A = h('position'),
- m = h('scale'),
- E = Cs(n),
- y = A === 'fixed',
- b = Pc(Up(E)),
- C = void 0,
- S = !1,
- D = !1,
- x = 0,
- w = 0,
- T = 0,
- I = 0,
- M = { hasTransform: !1, fixedContainer: null };
- y && ((p = !0), (M = Xp(n)), (d = M.fixedContainer));
- var O = b.length;
- !u && O === 16 && ((u = !0), (l = 4), aa(a), v && (v = rr(v, 3, 4))),
- u && O === 9 && (b = rr(b, 3, 4));
- var P = Qp(n, t),
- z = P.tagName,
- H = P.hasOffset,
- G = P.isSVG,
- L = P.origin,
- V = P.targetOrigin,
- F = P.offset,
- Q = B(F, 2),
- j = Q[0],
- K = Q[1];
- z === 'svg' &&
- v &&
- (a.push({ type: 'target', target: n, matrix: qp(n, l) }),
- a.push({ type: 'offset', target: n, matrix: St(l) }));
- var X = parseFloat(h('zoom')) || 1;
- if (y) (C = M.fixedContainer), (S = !0);
- else {
- var W = pe(n, r, !1, !0, h),
- _ = W.offsetZoom;
- if (
- ((C = W.offsetParent),
- (S = W.isEnd),
- (D = W.isStatic),
- (g *= _),
- (W.isCustomElement || _ !== 1) && D)
- )
- (j -= C.offsetLeft), (K -= C.offsetTop);
- else if (bv || Dv) {
- var rt = W.parentSlotElement;
- if (rt) {
- for (var lt = C, et = 0, Z = 0; lt && Qv(lt); )
- (et += lt.offsetLeft), (Z += lt.offsetTop), (lt = lt.offsetParent);
- (j -= et), (K -= Z);
- }
- }
- }
- if (
- (Lo &&
- !xv &&
- H &&
- !G &&
- D &&
- (A === 'relative' || A === 'static') &&
- ((j -= C.offsetLeft), (K -= C.offsetTop), (o = o || S)),
- y)
- )
- H && M.hasTransform && ((T = C.clientLeft), (I = C.clientTop));
- else if (
- (H && d !== C && ((x = C.clientLeft), (w = C.clientTop)), H && C === i)
- ) {
- var J = Es(n, !1);
- (j += J[0]), (K += J[1]);
- }
- if (
- (a.push({ type: 'target', target: n, matrix: se(b, l, L) }),
- m && m !== '1' && m !== 'none')
- ) {
- var vt = B(
- m.split(' ').map(function (yt) {
- return parseFloat(yt);
- }),
- 2
- ),
- at = vt[0],
- it = vt[1],
- ut = it === void 0 ? at : it,
- At = Ye([at, ut], l);
- a.push({ type: 'offset', target: n, matrix: St(l) }),
- a.push({ type: 'target', target: n, matrix: se(At, l, L) });
- }
- if (H) {
- var pt = n === t,
- st = pt ? 0 : n.scrollLeft,
- ct = pt ? 0 : n.scrollTop;
- a.push({
- type: 'offset',
- target: n,
- matrix: Ir([j - st + x - T, K - ct + w - I], l)
- });
- } else a.push({ type: 'offset', target: n, origin: L });
- if (
- (X !== 1 &&
- a.push({
- type: 'zoom',
- target: n,
- matrix: se(Ye([X, X], l), l, [0, 0])
- }),
- v || (v = b),
- f || (f = L),
- c || (c = V),
- s || y)
- )
- break;
- (n = C), (o = S), (!e || n === i) && (s = o);
- }
- return (
- v || (v = St(l)),
- f || (f = [0, 0]),
- c || (c = [0, 0]),
- {
- zoom: g,
- offsetContainer: d,
- matrixes: a,
- targetMatrix: v,
- transformOrigin: f,
- targetOrigin: c,
- is3d: u,
- hasFixed: p
- }
- );
- }
- var yr = null,
- Dr = null,
- zr = null;
- function Yr(t) {
- t
- ? (window.Map && ((yr = new Map()), (Dr = new Map())), (zr = []))
- : ((yr = null), (zr = null), (Dr = null));
- }
- function Xv(t) {
- var r = Dr == null ? void 0 : Dr.get(t);
- if (r) return r;
- var e = ue(t, !0);
- return Dr && Dr.set(t, e), e;
- }
- function qv(t, r) {
- if (zr) {
- var e = Kt(zr, function (a) {
- return a[0][0] == t && a[0][1] == r;
- });
- if (e) return e[1];
- }
- var n = _o(t, r, !0);
- return zr && zr.push([[t, r], n]), n;
- }
- function Yt(t) {
- var r = yr == null ? void 0 : yr.get(t);
- if (!r) {
- var e = hr(t).getComputedStyle(t);
- if (!yr)
- return function (i) {
- return e[i];
- };
- (r = { style: e, cached: {} }), yr.set(t, r);
- }
- var n = r.cached,
- a = r.style;
- return function (i) {
- return i in n || (n[i] = a[i]), n[i];
- };
- }
- function $t(t, r, e) {
- var n = e.originalDatas;
- n.groupable = n.groupable || {};
- var a = n.groupable;
- a.childDatas = a.childDatas || [];
- var i = a.childDatas;
- return t.moveables.map(function (o, s) {
- return (
- (i[s] = i[s] || {}),
- (i[s][r] = i[s][r] || {}),
- R(R({}, e), { datas: i[s][r], originalDatas: i[s] })
- );
- });
- }
- function Rn(t, r, e, n, a, i, o) {
- var s = !!e.match(/Start$/g),
- u = !!e.match(/End$/g),
- l = a.isPinch,
- f = a.datas,
- c = $t(t, r.name, a),
- v = t.moveables,
- p = c.map(function (d, g) {
- var h = v[g],
- A = h.state,
- m = A.gestos,
- E = d;
- if (s) E = new Wr(o).dragStart(n, d);
- else {
- if ((m[o] || (m[o] = f.childGestos[g]), !m[o])) return;
- E = De(d, A, n, l, i, o);
- }
- var y = r[e](h, R(R({}, E), { parentFlag: !0 }));
- return u && (m[o] = null), y;
- });
- return (
- s &&
- (f.childGestos = v.map(function (d) {
- return d.state.gestos[o];
- })),
- p
- );
- }
- function ur(t, r, e, n, a, i) {
- a === void 0 &&
- (a = function (f, c) {
- return c;
- });
- var o = !!e.match(/End$/g),
- s = $t(t, r.name, n),
- u = t.moveables,
- l = s.map(function (f, c) {
- var v = u[c],
- p = f;
- p = a(v, f);
- var d = r[e](v, R(R({}, p), { parentFlag: !0 }));
- return d && i && i(v, f, d, c), o && (v.state.gestos = {}), d;
- });
- return l;
- }
- function Ke(t, r, e, n) {
- var a = e.fixedDirection,
- i = e.fixedPosition,
- o = n.datas.startPositions || jt(r.state),
- s = Ot(o, a),
- u = B(
- Nt(
- Ce((-t.rotation / 180) * Math.PI, 3),
- [s[0] - i[0], s[1] - i[1], 1],
- 3
- ),
- 2
- ),
- l = u[0],
- f = u[1];
- return (n.datas.originalX = l), (n.datas.originalY = f), n;
- }
- function $o(t, r, e, n) {
- var a = t.getState(),
- i = a.renderPoses,
- o = a.rotation,
- s = a.direction,
- u = Or(t.props, r).zoom,
- l = oe((o / Math.PI) * 180),
- f = {},
- c = t.renderState;
- c.renderDirectionMap || (c.renderDirectionMap = {});
- var v = c.renderDirectionMap;
- e.forEach(function (d) {
- var g = d.dir;
- f[g] = !0;
- });
- var p = Xt(s);
- return e.map(function (d) {
- var g = d.data,
- h = d.classNames,
- A = d.dir,
- m = Ma[A];
- if (!m || !f[A]) return null;
- v[A] = !0;
- var E = (nt(l, 15) + p * Yo[A] + 720) % 180,
- y = {};
- return (
- fr(g).forEach(function (b) {
- y['data-'.concat(b)] = g[b];
- }),
- n.createElement(
- 'div',
- R(
- {
- className: $.apply(
- void 0,
- U(['control', 'direction', A, r], B(h), !1)
- ),
- 'data-rotation': E,
- 'data-direction': A
- },
- y,
- {
- key: 'direction-'.concat(A),
- style: _e.apply(
- void 0,
- U(
- [o, u],
- B(
- m.map(function (b) {
- return i[b];
- })
- ),
- !1
- )
- )
- }
- )
- )
- );
- });
- }
- function ts(t, r, e, n) {
- var a = Or(t.props, e),
- i = a.renderDirections,
- o = i === void 0 ? r : i,
- s = a.displayAroundControls;
- if (!o) return [];
- var u = o === !0 ? Ra : o;
- return U(
- U([], B(s ? as(t, n, e, u) : []), !1),
- B(
- $o(
- t,
- e,
- u.map(function (l) {
- return { data: {}, classNames: [], dir: l };
- }),
- n
- )
- ),
- !1
- );
- }
- function ve(t, r, e, n, a, i) {
- for (var o = [], s = 6; s < arguments.length; s++) o[s - 6] = arguments[s];
- var u = Et(e, n),
- l = r ? nt((u / Math.PI) * 180, 15) % 180 : -1;
- return t.createElement('div', {
- key: 'line-'.concat(i),
- className: $.apply(
- void 0,
- U(['line', 'direction', r ? 'edge' : '', r], B(o), !1)
- ),
- 'data-rotation': l,
- 'data-line-key': i,
- 'data-direction': r,
- style: ne(e, n, a, u)
- });
- }
- function rs(t, r, e, n, a) {
- var i = e === !0 ? Av : e;
- return i
- .map(function (o, s) {
- var u = B(Ma[o], 2),
- l = u[0],
- f = u[1];
- if (f != null)
- return ve(t, o, n[l], n[f], a, ''.concat(r, 'Edge').concat(s), r);
- })
- .filter(Boolean);
- }
- function es(t) {
- return function (r, e) {
- var n = Or(r.props, t).edge;
- return n && (n === !0 || n.length)
- ? U(
- U([], B(rs(e, t, n, r.getState().renderPoses, r.props.zoom)), !1),
- B(Kv(r, t, e)),
- !1
- )
- : ns(r, t, e);
- };
- }
- function ns(t, r, e) {
- return ts(t, Ra, r, e);
- }
- function Kv(t, r, e) {
- return ts(t, ['nw', 'ne', 'sw', 'se'], r, e);
- }
- function as(t, r, e, n) {
- var a = t.renderState;
- a.renderDirectionMap || (a.renderDirectionMap = {});
- var i = t.getState(),
- o = i.renderPoses,
- s = i.rotation,
- u = i.direction,
- l = a.renderDirectionMap,
- f = t.props.zoom,
- c = Xt(u),
- v = (s / Math.PI) * 180;
- return (n || fr(l)).map(function (p) {
- var d = Ma[p];
- if (!d) return null;
- var g = (nt(v, 15) + c * Yo[p] + 720) % 180,
- h = ['around-control'];
- return (
- e && h.push('direction', e),
- r.createElement('div', {
- className: $.apply(void 0, U([], B(h), !1)),
- 'data-rotation': g,
- 'data-direction': p,
- key: 'direction-around-'.concat(p),
- style: _e.apply(
- void 0,
- U(
- [s, f],
- B(
- d.map(function (A) {
- return o[A];
- })
- ),
- !1
- )
- )
- })
- );
- });
- }
- function Oa(t, r, e) {
- var n = t || {},
- a = n.position,
- i = a === void 0 ? 'client' : a,
- o = n.left,
- s = o === void 0 ? -1 / 0 : o,
- u = n.top,
- l = u === void 0 ? -1 / 0 : u,
- f = n.right,
- c = f === void 0 ? 1 / 0 : f,
- v = n.bottom,
- p = v === void 0 ? 1 / 0 : v,
- d = { position: i, left: s, top: l, right: c, bottom: p };
- return { vertical: Di(d, r, !0), horizontal: Di(d, e, !1) };
- }
- function vn(t, r) {
- var e = t.state,
- n = e.containerClientRect,
- a = n.clientHeight,
- i = n.clientWidth,
- o = n.clientLeft,
- s = n.clientTop,
- u = e.snapOffset,
- l = u.left,
- f = u.top,
- c = u.right,
- v = u.bottom,
- p = r || t.props.bounds || {},
- d = p.position || 'client',
- g = d === 'css',
- h = p.left,
- A = h === void 0 ? -1 / 0 : h,
- m = p.top,
- E = m === void 0 ? -1 / 0 : m,
- y = p.right,
- b = y === void 0 ? (g ? -1 / 0 : 1 / 0) : y,
- C = p.bottom,
- S = C === void 0 ? (g ? -1 / 0 : 1 / 0) : C;
- return (
- g && ((b = i + c - l - b), (S = a + v - f - S)),
- { left: A + l - o, right: b + l - o, top: E + f - s, bottom: S + f - s }
- );
- }
- function Jv(t, r, e) {
- var n = vn(t),
- a = n.left,
- i = n.top,
- o = n.right,
- s = n.bottom,
- u = B(e, 2),
- l = u[0],
- f = u[1],
- c = B(tt(e, r), 2),
- v = c[0],
- p = c[1];
- N(v) < Ut && (v = 0), N(p) < Ut && (p = 0);
- var d = p > 0,
- g = v > 0,
- h = { isBound: !1, offset: 0, pos: 0 },
- A = { isBound: !1, offset: 0, pos: 0 };
- if (v === 0 && p === 0) return { vertical: h, horizontal: A };
- if (v === 0)
- d
- ? s < f && ((A.pos = s), (A.offset = f - s))
- : i > f && ((A.pos = i), (A.offset = f - i));
- else if (p === 0)
- g
- ? o < l && ((h.pos = o), (h.offset = l - o))
- : a > l && ((h.pos = a), (h.offset = l - a));
- else {
- var m = p / v,
- E = e[1] - m * l,
- y = 0,
- b = 0,
- C = !1;
- g && o <= l
- ? ((y = m * o + E), (b = o), (C = !0))
- : !g && l <= a && ((y = m * a + E), (b = a), (C = !0)),
- C && (y < i || y > s) && (C = !1),
- C ||
- (d && s <= f
- ? ((y = s), (b = (y - E) / m), (C = !0))
- : !d && f <= i && ((y = i), (b = (y - E) / m), (C = !0))),
- C &&
- ((h.isBound = !0),
- (h.pos = b),
- (h.offset = l - b),
- (A.isBound = !0),
- (A.pos = y),
- (A.offset = f - y));
- }
- return { vertical: h, horizontal: A };
- }
- function Di(t, r, e) {
- var n = t[e ? 'left' : 'top'],
- a = t[e ? 'right' : 'bottom'],
- i = Math.min.apply(Math, U([], B(r), !1)),
- o = Math.max.apply(Math, U([], B(r), !1)),
- s = [];
- return (
- n + 1 > i && s.push({ isBound: !0, offset: i - n, pos: n }),
- a - 1 < o && s.push({ isBound: !0, offset: o - a, pos: a }),
- s.length || s.push({ isBound: !1, offset: 0, pos: 0 }),
- s.sort(function (u, l) {
- return N(l.offset) - N(u.offset);
- })
- );
- }
- function bi(t, r, e) {
- var n = e
- ? t.map(function (a) {
- return Se(a, e);
- })
- : t;
- return n.some(function (a) {
- return (
- (a[0] < r.left && N(a[0] - r.left) > 0.1) ||
- (a[0] > r.right && N(a[0] - r.right) > 0.1) ||
- (a[1] < r.top && N(a[1] - r.top) > 0.1) ||
- (a[1] > r.bottom && N(a[1] - r.bottom) > 0.1)
- );
- });
- }
- function jv(t, r, e) {
- var n = Jt(t),
- a = Math.sqrt(n * n - r * r) || 0;
- return [a, -a]
- .sort(function (i, o) {
- return N(i - t[e ? 0 : 1]) - N(o - t[e ? 0 : 1]);
- })
- .map(function (i) {
- return Et([0, 0], e ? [i, r] : [r, i]);
- });
- }
- function Zv(t, r, e, n, a) {
- if (!t.props.bounds) return [];
- var i = (a * Math.PI) / 180,
- o = vn(t),
- s = o.left,
- u = o.top,
- l = o.right,
- f = o.bottom,
- c = s - n[0],
- v = l - n[0],
- p = u - n[1],
- d = f - n[1],
- g = { left: c, top: p, right: v, bottom: d };
- if (!bi(e, g, 0)) return [];
- var h = [];
- return (
- [
- [c, 0],
- [v, 0],
- [p, 1],
- [d, 1]
- ].forEach(function (A) {
- var m = B(A, 2),
- E = m[0],
- y = m[1];
- e.forEach(function (b) {
- var C = Et([0, 0], b);
- h.push.apply(
- h,
- U(
- [],
- B(
- jv(b, E, y)
- .map(function (S) {
- return i + S - C;
- })
- .filter(function (S) {
- return !bi(r, g, S);
- })
- .map(function (S) {
- return nt((S * 180) / Math.PI, Ut);
- })
- ),
- !1
- )
- );
- });
- }),
- h
- );
- }
- var _v = ['left', 'right', 'center'],
- $v = ['top', 'bottom', 'middle'],
- mr = { start: 'left', end: 'right', center: 'center' },
- Sr = { start: 'top', end: 'bottom', center: 'middle' };
- function $r(t, r) {
- var e = t.props,
- n = e.snappable,
- a = e.bounds,
- i = e.innerBounds,
- o = e.verticalGuidelines,
- s = e.horizontalGuidelines,
- u = e.snapGridWidth,
- l = e.snapGridHeight,
- f = t.state,
- c = f.guidelines,
- v = f.enableSnap;
- return !n || !v || (r && n !== !0 && n.indexOf(r) < 0)
- ? !1
- : !!(
- u ||
- l ||
- a ||
- i ||
- (c && c.length) ||
- (o && o.length) ||
- (s && s.length)
- );
- }
- function Pa(t) {
- return t === !1
- ? {}
- : t === !0 || !t
- ? { left: !0, right: !0, top: !0, bottom: !0 }
- : t;
- }
- function tp(t, r) {
- var e = Pa(t),
- n = {};
- for (var a in e) a in r && e[a] && (n[a] = r[a]);
- return n;
- }
- function ka(t, r) {
- var e = tp(t, r),
- n = $v.filter(function (i) {
- return i in e;
- }),
- a = _v.filter(function (i) {
- return i in e;
- });
- return {
- horizontalNames: n,
- verticalNames: a,
- horizontal: n.map(function (i) {
- return e[i];
- }),
- vertical: a.map(function (i) {
- return e[i];
- })
- };
- }
- function rp(t, r, e) {
- var n = Ct(t, [r.clientLeft, r.clientTop], e);
- return [r.left + n[0], r.top + n[1]];
- }
- function ep(t) {
- var r = B(t, 2),
- e = r[0],
- n = r[1],
- a = n[0] - e[0],
- i = n[1] - e[1];
- Math.abs(a) < wt && (a = 0), Math.abs(i) < wt && (i = 0);
- var o = 0,
- s = 0,
- u = 0;
- return (
- a
- ? i
- ? ((o = -i / a), (s = 1), (u = o * e[0] - e[1]))
- : ((s = 1), (u = -e[1]))
- : ((o = -1), (u = e[0])),
- [o, s, u].map(function (l) {
- return nt(l, wt);
- })
- );
- }
- function pn(t, r, e, n, a, i) {
- n === void 0 && (n = []), a === void 0 && (a = []);
- var o = t.props,
- s = _p(i, o.snapThreshold, 5);
- return is(t.state.guidelines, r, e, n, a, s);
- }
- function is(t, r, e, n, a, i) {
- return {
- vertical: wi(t, 'vertical', r, i, n),
- horizontal: wi(t, 'horizontal', e, i, a)
- };
- }
- function np(t, r, e) {
- var n = B(e, 2),
- a = n[0],
- i = n[1],
- o = B(r, 2),
- s = o[0],
- u = o[1],
- l = B(tt(e, r), 2),
- f = l[0],
- c = l[1],
- v = c > 0,
- p = f > 0;
- (f = $e(f)), (c = $e(c));
- var d = { isSnap: !1, offset: 0, pos: 0 },
- g = { isSnap: !1, offset: 0, pos: 0 };
- if (f === 0 && c === 0) return { vertical: d, horizontal: g };
- var h = pn(t, f ? [a] : [], c ? [i] : []),
- A = h.vertical,
- m = h.horizontal;
- A.posInfos.filter(function (z) {
- var H = z.pos;
- return p ? H >= s : H <= s;
- }),
- m.posInfos.filter(function (z) {
- var H = z.pos;
- return v ? H >= u : H <= u;
- }),
- (A.isSnap = A.posInfos.length > 0),
- (m.isSnap = m.posInfos.length > 0);
- var E = $n(A),
- y = E.isSnap,
- b = E.guideline,
- C = $n(m),
- S = C.isSnap,
- D = C.guideline,
- x = S ? D.pos[1] : 0,
- w = y ? b.pos[0] : 0;
- if (f === 0)
- S && ((g.isSnap = !0), (g.pos = D.pos[1]), (g.offset = i - g.pos));
- else if (c === 0) y && ((d.isSnap = !0), (d.pos = w), (d.offset = a - w));
- else {
- var T = c / f,
- I = e[1] - T * a,
- M = 0,
- O = 0,
- P = !1;
- y
- ? ((O = w), (M = T * O + I), (P = !0))
- : S && ((M = x), (O = (M - I) / T), (P = !0)),
- P &&
- ((d.isSnap = !0),
- (d.pos = O),
- (d.offset = a - O),
- (g.isSnap = !0),
- (g.pos = M),
- (g.offset = i - M));
- }
- return { vertical: d, horizontal: g };
- }
- function dr(t) {
- var r = '';
- return (
- t === -1 || t === 'top' || t === 'left'
- ? (r = 'start')
- : t === 0 || t === 'center' || t === 'middle'
- ? (r = 'center')
- : (t === 1 || t === 'right' || t === 'bottom') && (r = 'end'),
- r
- );
- }
- function xi(t, r, e) {
- var n = ka(t.props.snapDirections, r),
- a = pn(
- t,
- n.vertical,
- n.horizontal,
- n.verticalNames.map(function (s) {
- return dr(s);
- }),
- n.horizontalNames.map(function (s) {
- return dr(s);
- }),
- e
- ),
- i = dr(n.horizontalNames[a.horizontal.index]),
- o = dr(n.verticalNames[a.vertical.index]);
- return {
- vertical: R(R({}, a.vertical), { direction: o }),
- horizontal: R(R({}, a.horizontal), { direction: i })
- };
- }
- function $n(t) {
- var r = t.isSnap;
- if (!r) return { isSnap: !1, offset: 0, dist: -1, pos: 0, guideline: null };
- var e = t.posInfos[0],
- n = e.guidelineInfos[0],
- a = n.offset,
- i = n.dist,
- o = n.guideline;
- return { isSnap: r, offset: a, dist: i, pos: e.pos, guideline: o };
- }
- function wi(t, r, e, n, a) {
- var i, o;
- if ((a === void 0 && (a = []), !t || !t.length))
- return { isSnap: !1, index: -1, direction: '', posInfos: [] };
- var s = r === 'vertical',
- u = s ? 0 : 1,
- l = e
- .map(function (c, v) {
- var p = a[v] || '',
- d = t
- .map(function (g) {
- var h = g.pos,
- A = c - h[u];
- return { offset: A, dist: N(A), guideline: g, direction: p };
- })
- .filter(function (g) {
- var h = g.guideline,
- A = g.dist,
- m = h.type;
- return !(m !== r || A > n);
- })
- .sort(function (g, h) {
- return g.dist - h.dist;
- });
- return { pos: c, index: v, guidelineInfos: d, direction: p };
- })
- .filter(function (c) {
- return c.guidelineInfos.length > 0;
- })
- .sort(function (c, v) {
- return c.guidelineInfos[0].dist - v.guidelineInfos[0].dist;
- }),
- f = l.length > 0;
- return {
- isSnap: f,
- index: f ? l[0].index : -1,
- direction:
- (o = (i = l[0]) === null || i === void 0 ? void 0 : i.direction) !==
- null && o !== void 0
- ? o
- : '',
- posInfos: l
- };
- }
- function ap(t, r, e, n) {
- n === void 0 && (n = 1);
- var a = [];
- e[0] && e[1]
- ? (a = [e, [-e[0], e[1]], [e[0], -e[1]]])
- : !e[0] && !e[1]
- ? [
- [-1, -1],
- [1, -1],
- [1, 1],
- [-1, 1]
- ].forEach(function (c, v, p) {
- var d = p[v + 1] || p[0];
- a.push(c), a.push([(c[0] + d[0]) / 2, (c[1] + d[1]) / 2]);
- })
- : t.props.keepRatio
- ? a.push([-1, -1], [-1, 1], [1, -1], [1, 1], e)
- : (a.push.apply(
- a,
- U(
- [],
- B(
- kv(
- [
- [-1, -1],
- [1, -1],
- [-1, -1],
- [1, 1]
- ],
- e
- )
- ),
- !1
- )
- ),
- a.length > 1 &&
- a.push([(a[0][0] + a[1][0]) / 2, (a[0][1] + a[1][1]) / 2]));
- var i = a.map(function (c) {
- return Ot(r, c);
- }),
- o = i.map(function (c) {
- return c[0];
- }),
- s = i.map(function (c) {
- return c[1];
- }),
- u = pn(
- t,
- o,
- s,
- a.map(function (c) {
- return dr(c[0]);
- }),
- a.map(function (c) {
- return dr(c[1]);
- }),
- n
- ),
- l = dr(
- a.map(function (c) {
- return c[0];
- })[u.vertical.index]
- ),
- f = dr(
- a.map(function (c) {
- return c[1];
- })[u.horizontal.index]
- );
- return {
- vertical: R(R({}, u.vertical), { direction: l }),
- horizontal: R(R({}, u.horizontal), { direction: f })
- };
- }
- function os(t, r) {
- var e = N(t.offset),
- n = N(r.offset);
- return t.isBound && r.isBound
- ? n - e
- : t.isBound
- ? -1
- : r.isBound
- ? 1
- : t.isSnap && r.isSnap
- ? n - e
- : t.isSnap
- ? -1
- : r.isSnap || e < Ut
- ? 1
- : n < Ut
- ? -1
- : e - n;
- }
- function Je(t, r) {
- return t.slice().sort(function (e, n) {
- var a = e.sign[r],
- i = n.sign[r],
- o = e.offset[r],
- s = n.offset[r];
- if (a) {
- if (!i) return -1;
- } else return 1;
- return os(
- { isBound: e.isBound, isSnap: e.isSnap, offset: o },
- { isBound: n.isBound, isSnap: n.isSnap, offset: s }
- );
- })[0];
- }
- function ip(t, r, e) {
- var n = [];
- if (e)
- N(r[0]) !== 1 || N(r[1]) !== 1
- ? n.push([r, [-1, -1]], [r, [-1, 1]], [r, [1, -1]], [r, [1, 1]])
- : n.push([r, [t[0], -t[1]]], [r, [-t[0], t[1]]]),
- n.push([r, t]);
- else if ((t[0] && t[1]) || (!t[0] && !t[1])) {
- var a = t[0] ? t : [1, 1];
- [1, -1].forEach(function (o) {
- [1, -1].forEach(function (s) {
- var u = [o * a[0], s * a[1]];
- (r[0] === u[0] && r[1] === u[1]) || n.push([r, u]);
- });
- });
- } else if (t[0]) {
- var i = N(r[0]) === 1 ? [1] : [1, -1];
- i.forEach(function (o) {
- n.push(
- [
- [r[0], -1],
- [o * t[0], -1]
- ],
- [
- [r[0], 0],
- [o * t[0], 0]
- ],
- [
- [r[0], 1],
- [o * t[0], 1]
- ]
- );
- });
- } else if (t[1]) {
- var i = N(r[1]) === 1 ? [1] : [1, -1];
- i.forEach(function (s) {
- n.push(
- [
- [-1, r[1]],
- [-1, s * t[1]]
- ],
- [
- [0, r[1]],
- [0, s * t[1]]
- ],
- [
- [1, r[1]],
- [1, s * t[1]]
- ]
- );
- });
- }
- return n;
- }
- function ss(t, r) {
- var e = Fn([r[0][0], r[1][0]]),
- n = Fn([r[0][1], r[1][1]]);
- return { vertical: e <= t[0], horizontal: n <= t[1] };
- }
- function Ga(t, r) {
- var e = B(r, 2),
- n = e[0],
- a = e[1],
- i = a[0] - n[0],
- o = a[1] - n[1];
- N(i) < Ut && (i = 0), N(o) < Ut && (o = 0);
- var s, u;
- if (!i) (s = n[0]), (u = t[0]);
- else if (!o) (s = n[1]), (u = t[1]);
- else {
- var l = o / i;
- (s = l * (t[0] - n[0]) + n[1]), (u = t[1]);
- }
- return s - u;
- }
- function us(t, r, e, n) {
- return (
- n === void 0 && (n = Ut),
- t.every(function (a) {
- var i = Ga(a, r),
- o = i <= 0;
- return o === e || N(i) <= n;
- })
- );
- }
- function Ri(t, r, e, n, a) {
- return (
- a === void 0 && (a = 0),
- (n && r - a <= t) || (!n && t <= e + a)
- ? { isBound: !0, offset: n ? r - t : e - t }
- : { isBound: !1, offset: 0 }
- );
- }
- function op(t, r) {
- var e = r.line,
- n = r.centerSign,
- a = r.verticalSign,
- i = r.horizontalSign,
- o = r.lineConstants,
- s = t.props.innerBounds;
- if (!s)
- return {
- isAllBound: !1,
- isBound: !1,
- isVerticalBound: !1,
- isHorizontalBound: !1,
- offset: [0, 0]
- };
- var u = s.left,
- l = s.top,
- f = s.width,
- c = s.height,
- v = [
- [u, l],
- [u, l + c]
- ],
- p = [
- [u, l],
- [u + f, l]
- ],
- d = [
- [u + f, l],
- [u + f, l + c]
- ],
- g = [
- [u, l + c],
- [u + f, l + c]
- ];
- if (
- us(
- [
- [u, l],
- [u + f, l],
- [u, l + c],
- [u + f, l + c]
- ],
- e,
- n
- )
- )
- return {
- isAllBound: !1,
- isBound: !1,
- isVerticalBound: !1,
- isHorizontalBound: !1,
- offset: [0, 0]
- };
- var h = gr(e, o, p, a),
- A = gr(e, o, g, a),
- m = gr(e, o, v, i),
- E = gr(e, o, d, i),
- y = h.isBound && A.isBound,
- b = h.isBound || A.isBound,
- C = m.isBound && E.isBound,
- S = m.isBound || E.isBound,
- D = Qr(h.offset, A.offset),
- x = Qr(m.offset, E.offset),
- w = [0, 0],
- T = !1,
- I = !1;
- return (
- N(x) < N(D)
- ? ((w = [D, 0]), (T = b), (I = y))
- : ((w = [0, x]), (T = S), (I = C)),
- {
- isAllBound: I,
- isVerticalBound: b,
- isHorizontalBound: S,
- isBound: T,
- offset: w
- }
- );
- }
- function gr(t, r, e, n, a, i) {
- var o = B(r, 2),
- s = o[0],
- u = o[1],
- l = t[0],
- f = e[0],
- c = e[1],
- v = $e(c[1] - f[1]),
- p = $e(c[0] - f[0]),
- d = u,
- g = s,
- h = -s / u;
- if (p) {
- if (!v) {
- if (i && !d) return { isBound: !1, offset: 0 };
- if (g) {
- var y = (f[1] - l[1]) / h + l[0];
- return Ri(y, f[0], c[0], n, a);
- } else {
- var m = f[1] - l[1],
- E = N(m) <= (a || 0);
- return { isBound: E, offset: E ? m : 0 };
- }
- }
- } else {
- if (i && !g) return { isBound: !1, offset: 0 };
- if (d) {
- var A = h * (f[0] - l[0]) + l[1];
- return Ri(A, f[1], c[1], n, a);
- } else {
- var m = f[0] - l[0],
- E = N(m) <= (a || 0);
- return { isBound: E, offset: E ? m : 0 };
- }
- }
- return { isBound: !1, offset: 0 };
- }
- function ls(t, r, e) {
- return r.map(function (n) {
- var a = op(t, n),
- i = a.isBound,
- o = a.offset,
- s = a.isVerticalBound,
- u = a.isHorizontalBound,
- l = n.multiple,
- f = ir({ datas: e, distX: o[0], distY: o[1] }).map(function (c, v) {
- return c * (l[v] ? 2 / l[v] : 0);
- });
- return {
- sign: l,
- isBound: i,
- isVerticalBound: s,
- isHorizontalBound: u,
- isSnap: !1,
- offset: f
- };
- });
- }
- function sp(t, r, e) {
- var n,
- a = Na(t, r, [0, 0], !1).map(function (v) {
- return R(R({}, v), {
- multiple: v.multiple.map(function (p) {
- return N(p) * 2;
- })
- });
- }),
- i = ls(t, a, e),
- o = Je(i, 0),
- s = Je(i, 1),
- u = 0,
- l = 0,
- f = o.isVerticalBound || s.isVerticalBound,
- c = o.isHorizontalBound || s.isHorizontalBound;
- return (
- (f || c) &&
- ((n = B(Ov({ datas: e, distX: -o.offset[0], distY: -s.offset[1] }), 2)),
- (u = n[0]),
- (l = n[1])),
- {
- vertical: { isBound: f, offset: u },
- horizontal: { isBound: c, offset: l }
- }
- );
- }
- function up(t, r) {
- var e = [],
- n = t[0],
- a = t[1];
- return (
- n && a
- ? e.push([[0, a * 2], t, [-n, a]], [[n * 2, 0], t, [n, -a]])
- : n
- ? (e.push([
- [n * 2, 0],
- [n, 1],
- [n, -1]
- ]),
- r &&
- e.push(
- [
- [0, -1],
- [n, -1],
- [-n, -1]
- ],
- [
- [0, 1],
- [n, 1],
- [-n, 1]
- ]
- ))
- : a
- ? (e.push([
- [0, a * 2],
- [1, a],
- [-1, a]
- ]),
- r &&
- e.push(
- [
- [-1, 0],
- [-1, a],
- [-1, -a]
- ],
- [
- [1, 0],
- [1, a],
- [1, -a]
- ]
- ))
- : e.push(
- [
- [-1, 0],
- [-1, -1],
- [-1, 1]
- ],
- [
- [1, 0],
- [1, -1],
- [1, 1]
- ],
- [
- [0, -1],
- [-1, -1],
- [1, -1]
- ],
- [
- [0, 1],
- [-1, 1],
- [1, 1]
- ]
- ),
- e
- );
- }
- function Na(t, r, e, n) {
- var a = t.state,
- i = a.allMatrix,
- o = a.is3d,
- s = kr(i, 100, 100, o ? 4 : 3),
- u = Ot(s, [0, 0]);
- return up(e, n).map(function (l) {
- var f = B(l, 3),
- c = f[0],
- v = f[1],
- p = f[2],
- d = [Ot(s, v), Ot(s, p)],
- g = ep(d),
- h = ss(u, d),
- A = h.vertical,
- m = h.horizontal,
- E = Ga(u, d) <= 0;
- return {
- multiple: c,
- centerSign: E,
- verticalSign: A,
- horizontalSign: m,
- lineConstants: g,
- line: [Ot(r, v), Ot(r, p)]
- };
- });
- }
- function Bi(t, r, e, n) {
- var a = n
- ? t.map(function (i) {
- return Se(i, n);
- })
- : t;
- return [
- [a[0], a[1]],
- [a[1], a[3]],
- [a[3], a[2]],
- [a[2], a[0]]
- ].some(function (i) {
- var o = Ga(e, i) <= 0;
- return !us(r, i, o);
- });
- }
- function lp(t) {
- var r = B(t, 2),
- e = r[0],
- n = r[1],
- a = n[0] - e[0],
- i = n[1] - e[1];
- if (!a) return N(e[0]);
- if (!i) return N(e[1]);
- var o = i / a;
- return N((-o * e[0] + e[1]) / Math.sqrt(Math.pow(o, 2) + 1));
- }
- function fp(t) {
- var r = B(t, 2),
- e = r[0],
- n = r[1],
- a = n[0] - e[0],
- i = n[1] - e[1];
- if (!a) return [e[0], 0];
- if (!i) return [0, e[1]];
- var o = i / a,
- s = -o * e[0] + e[1];
- return [-s / (o + 1 / o), s / (o * o + 1)];
- }
- function cp(t, r, e, n, a) {
- var i = t.props.innerBounds,
- o = (a * Math.PI) / 180;
- if (!i) return [];
- var s = i.left,
- u = i.top,
- l = i.width,
- f = i.height,
- c = s - n[0],
- v = s + l - n[0],
- p = u - n[1],
- d = u + f - n[1],
- g = [
- [c, p],
- [v, p],
- [c, d],
- [v, d]
- ],
- h = Ot(e, [0, 0]);
- if (!Bi(e, g, h, 0)) return [];
- var A = [],
- m = g.map(function (E) {
- return [Jt(E), Et([0, 0], E)];
- });
- return (
- [
- [e[0], e[1]],
- [e[1], e[3]],
- [e[3], e[2]],
- [e[2], e[0]]
- ].forEach(function (E) {
- var y = Et([0, 0], fp(E)),
- b = lp(E);
- A.push.apply(
- A,
- U(
- [],
- B(
- m
- .filter(function (C) {
- var S = B(C, 1),
- D = S[0];
- return D && b <= D;
- })
- .map(function (C) {
- var S = B(C, 2),
- D = S[0],
- x = S[1],
- w = Math.acos(D ? b / D : 0),
- T = x + w,
- I = x - w;
- return [o + T - y, o + I - y];
- })
- .reduce(function (C, S) {
- return C.push.apply(C, U([], B(S), !1)), C;
- }, [])
- .filter(function (C) {
- return !Bi(r, g, h, C);
- })
- .map(function (C) {
- return nt((C * 180) / Math.PI, Ut);
- })
- ),
- !1
- )
- );
- }),
- A
- );
- }
- function vp(t) {
- var r = t.props.innerBounds;
- if (!r) return { vertical: [], horizontal: [] };
- var e = t.getRect(),
- n = e.pos1,
- a = e.pos2,
- i = e.pos3,
- o = e.pos4,
- s = [n, a, i, o],
- u = Ot(s, [0, 0]),
- l = r.left,
- f = r.top,
- c = r.width,
- v = r.height,
- p = [
- [l, f],
- [l, f + v]
- ],
- d = [
- [l, f],
- [l + c, f]
- ],
- g = [
- [l + c, f],
- [l + c, f + v]
- ],
- h = [
- [l, f + v],
- [l + c, f + v]
- ],
- A = Na(t, s, [0, 0], !1),
- m = [],
- E = [],
- y = { top: !1, bottom: !1, left: !1, right: !1 };
- return (
- A.forEach(function (b) {
- var C = b.line,
- S = b.lineConstants,
- D = ss(u, C),
- x = D.horizontal,
- w = D.vertical,
- T = gr(C, S, d, w, 1, !0),
- I = gr(C, S, h, w, 1, !0),
- M = gr(C, S, p, x, 1, !0),
- O = gr(C, S, g, x, 1, !0);
- T.isBound && !y.top && (m.push(f), (y.top = !0)),
- I.isBound && !y.bottom && (m.push(f + v), (y.bottom = !0)),
- M.isBound && !y.left && (E.push(l), (y.left = !0)),
- O.isBound && !y.right && (E.push(l + c), (y.right = !0));
- }),
- { horizontal: m, vertical: E }
- );
- }
- function pp(t, r, e, n) {
- var a = r[0] - t[0],
- i = r[1] - t[1];
- if ((N(a) < wt && (a = 0), N(i) < wt && (i = 0), !a))
- return n ? [0, 0] : [0, e];
- if (!i) return n ? [e, 0] : [0, 0];
- var o = i / a,
- s = t[1] - o * t[0];
- if (n) {
- var u = o * (r[0] + e) + s;
- return [e, u - r[1]];
- } else {
- var l = (r[1] + e - s) / o;
- return [l - r[0], e];
- }
- }
- function ta(t, r, e, n, a) {
- var i = pp(t, r, e, n);
- if (!i) return { isOutside: !1, offset: [0, 0] };
- var o = sr(t, r),
- s = sr(i, t),
- u = sr(i, r),
- l = s > o || u > o,
- f = B(ir({ datas: a, distX: i[0], distY: i[1] }), 2),
- c = f[0],
- v = f[1];
- return { offset: [c, v], isOutside: l };
- }
- function je(t, r) {
- return t.isBound ? t.offset : r.isSnap ? $n(r).offset : 0;
- }
- function dp(t, r, e, n, a) {
- var i = B(r, 2),
- o = i[0],
- s = i[1],
- u = B(e, 2),
- l = u[0],
- f = u[1],
- c = B(n, 2),
- v = c[0],
- p = c[1],
- d = B(a, 2),
- g = d[0],
- h = d[1],
- A = -g,
- m = -h;
- if (t && o && s) {
- (A = 0), (m = 0);
- var E = [];
- if (
- (l && f
- ? E.push([0, h], [g, 0])
- : l
- ? E.push([g, 0])
- : f
- ? E.push([0, h])
- : v && p
- ? E.push([0, h], [g, 0])
- : v
- ? E.push([g, 0])
- : p && E.push([0, h]),
- E.length)
- ) {
- E.sort(function (S, D) {
- return Jt(tt([o, s], S)) - Jt(tt([o, s], D));
- });
- var y = E[0];
- if (y[0] && N(o) > wt) (A = -y[0]), (m = (s * N(o + A)) / N(o) - s);
- else if (y[1] && N(s) > wt) {
- var b = s;
- (m = -y[1]), (A = (o * N(s + m)) / N(b) - o);
- }
- if (t && f && l)
- if (N(A) > wt && N(A) < N(g)) {
- var C = N(g) / N(A);
- (A *= C), (m *= C);
- } else if (N(m) > wt && N(m) < N(h)) {
- var C = N(h) / N(m);
- (A *= C), (m *= C);
- } else (A = Qr(-g, A)), (m = Qr(-h, m));
- }
- } else (A = o || l ? -g : 0), (m = s || f ? -h : 0);
- return [A, m];
- }
- function gp(t, r, e, n, a, i) {
- if (!$r(t, 'draggable'))
- return [
- { isSnap: !1, isBound: !1, offset: 0 },
- { isSnap: !1, isBound: !1, offset: 0 }
- ];
- var o = Ha(i.absolutePoses, [r, e]),
- s = qt(o),
- u = s.left,
- l = s.right,
- f = s.top,
- c = s.bottom,
- v = {
- horizontal: o.map(function (O) {
- return O[1];
- }),
- vertical: o.map(function (O) {
- return O[0];
- })
- },
- p = Pa(t.props.snapDirections),
- d = ka(p, {
- left: u,
- right: l,
- top: f,
- bottom: c,
- center: (u + l) / 2,
- middle: (f + c) / 2
- }),
- g = dn(t, a, d, v),
- h = g.vertical,
- A = g.horizontal,
- m = sp(t, o, i),
- E = m.vertical,
- y = m.horizontal,
- b = h.isSnap,
- C = A.isSnap,
- S = h.isBound || E.isBound,
- D = A.isBound || y.isBound,
- x = Qr(h.offset, E.offset),
- w = Qr(A.offset, y.offset),
- T = B(dp(n, [r, e], [S, D], [b, C], [x, w]), 2),
- I = T[0],
- M = T[1];
- return [
- { isBound: S, isSnap: b, offset: I },
- { isBound: D, isSnap: C, offset: M }
- ];
- }
- function dn(t, r, e, n) {
- n === void 0 && (n = e);
- var a = Oa(vn(t), n.vertical, n.horizontal),
- i = a.horizontal,
- o = a.vertical,
- s = r
- ? {
- horizontal: { isSnap: !1, index: -1 },
- vertical: { isSnap: !1, index: -1 }
- }
- : pn(t, e.vertical, e.horizontal),
- u = s.horizontal,
- l = s.vertical,
- f = je(i[0], u),
- c = je(o[0], l),
- v = N(f),
- p = N(c);
- return {
- horizontal: {
- isBound: i[0].isBound,
- isSnap: u.isSnap,
- snapIndex: u.index,
- offset: f,
- dist: v,
- bounds: i,
- snap: u
- },
- vertical: {
- isBound: o[0].isBound,
- isSnap: l.isSnap,
- snapIndex: l.index,
- offset: c,
- dist: p,
- bounds: o,
- snap: l
- }
- };
- }
- function Mi(t, r, e, n, a) {
- var i = Oa(r, e, n),
- o = i.horizontal,
- s = i.vertical,
- u = is(t, e, n, [], [], a),
- l = u.horizontal,
- f = u.vertical,
- c = je(o[0], l),
- v = je(s[0], f),
- p = N(c),
- d = N(v);
- return {
- horizontal: {
- isBound: o[0].isBound,
- isSnap: l.isSnap,
- snapIndex: l.index,
- offset: c,
- dist: p,
- bounds: o,
- snap: l
- },
- vertical: {
- isBound: s[0].isBound,
- isSnap: f.isSnap,
- snapIndex: f.index,
- offset: v,
- dist: d,
- bounds: s,
- snap: f
- }
- };
- }
- function hp(t, r, e, n) {
- var a = (Et(t, r) / Math.PI) * 180,
- i = e.vertical,
- o = i.isBound,
- s = i.isSnap,
- u = i.dist,
- l = e.horizontal,
- f = l.isBound,
- c = l.isSnap,
- v = l.dist,
- p = a % 180,
- d = p < 3 || p > 177,
- g = p > 87 && p < 93;
- return v < u && (o || (s && !g && (!n || !d)))
- ? 'vertical'
- : f || (c && !d && (!n || !g))
- ? 'horizontal'
- : '';
- }
- function Ap(t, r, e, n, a, i) {
- return e.map(function (o) {
- var s = B(o, 2),
- u = s[0],
- l = s[1],
- f = Ot(r, u),
- c = Ot(r, l),
- v = n
- ? mp(t, f, c, a)
- : dn(t, a, { vertical: [c[0]], horizontal: [c[1]] }),
- p = v.horizontal,
- d = p.offset,
- g = p.isBound,
- h = p.isSnap,
- A = v.vertical,
- m = A.offset,
- E = A.isBound,
- y = A.isSnap,
- b = tt(l, u);
- if (!m && !d)
- return { isBound: E || g, isSnap: y || h, sign: b, offset: [0, 0] };
- var C = hp(f, c, v, n);
- if (!C) return { sign: b, isBound: !1, isSnap: !1, offset: [0, 0] };
- var S = C === 'vertical',
- D = [0, 0];
- return (
- !n && N(l[0]) === 1 && N(l[1]) === 1 && u[0] !== l[0] && u[1] !== l[1]
- ? (D = ir({ datas: i, distX: -m, distY: -d }))
- : (D = ta(f, c, -(S ? m : d), S, i).offset),
- (D = D.map(function (x, w) {
- return x * (b[w] ? 2 / b[w] : 0);
- })),
- { sign: b, isBound: S ? E : g, isSnap: S ? y : h, offset: D }
- );
- });
- }
- function Ii(t, r) {
- return t.isBound ? t.offset : r.isSnap ? r.offset : 0;
- }
- function mp(t, r, e, n) {
- var a = Jv(t, r, e),
- i = a.horizontal,
- o = a.vertical,
- s = n
- ? { horizontal: { isSnap: !1 }, vertical: { isSnap: !1 } }
- : np(t, r, e),
- u = s.horizontal,
- l = s.vertical,
- f = Ii(i, u),
- c = Ii(o, l),
- v = N(f),
- p = N(c);
- return {
- horizontal: { isBound: i.isBound, isSnap: u.isSnap, offset: f, dist: v },
- vertical: { isBound: o.isBound, isSnap: l.isSnap, offset: c, dist: p }
- };
- }
- function Sp(t, r, e, n, a) {
- var i = [-e[0], -e[1]],
- o = t.state,
- s = o.width,
- u = o.height,
- l = t.props.bounds,
- f = 1 / 0,
- c = 1 / 0;
- if (l) {
- var v = [
- [e[0], -e[1]],
- [-e[0], e[1]]
- ],
- p = l.left,
- d = p === void 0 ? -1 / 0 : p,
- g = l.top,
- h = g === void 0 ? -1 / 0 : g,
- A = l.right,
- m = A === void 0 ? 1 / 0 : A,
- E = l.bottom,
- y = E === void 0 ? 1 / 0 : E;
- v.forEach(function (b) {
- var C = b[0] !== i[0],
- S = b[1] !== i[1],
- D = Ot(r, b),
- x = (Et(n, D) * 360) / Math.PI;
- if (S) {
- var w = D.slice();
- (N(x - 360) < 2 || N(x - 180) < 2) && (w[1] = n[1]);
- var T = ta(n, w, (n[1] < D[1] ? y : h) - D[1], !1, a),
- I = B(T.offset, 2),
- M = I[1],
- O = T.isOutside;
- isNaN(M) || (c = u + (O ? 1 : -1) * N(M));
- }
- if (C) {
- var w = D.slice();
- (N(x - 90) < 2 || N(x - 270) < 2) && (w[0] = n[0]);
- var P = ta(n, w, (n[0] < D[0] ? m : d) - D[0], !0, a),
- z = B(P.offset, 1),
- H = z[0],
- G = P.isOutside;
- isNaN(H) || (f = s + (G ? 1 : -1) * N(H));
- }
- });
- }
- return { maxWidth: f, maxHeight: c };
- }
- var Ht = {
- name: 'draggable',
- props: [
- 'draggable',
- 'throttleDrag',
- 'throttleDragRotate',
- 'hideThrottleDragRotateLine',
- 'startDragRotate',
- 'edgeDraggable'
- ],
- events: [
- 'dragStart',
- 'drag',
- 'dragEnd',
- 'dragGroupStart',
- 'dragGroup',
- 'dragGroupEnd'
- ],
- requestStyle: function () {
- return ['left', 'top', 'right', 'bottom'];
- },
- requestChildStyle: function () {
- return ['left', 'top', 'right', 'bottom'];
- },
- render: function (t, r) {
- var e = t.props,
- n = e.hideThrottleDragRotateLine,
- a = e.throttleDragRotate,
- i = e.zoom,
- o = t.getState(),
- s = o.dragInfo,
- u = o.beforeOrigin;
- if (n || !a || !s) return [];
- var l = s.dist;
- if (!l[0] && !l[1]) return [];
- var f = Jt(l),
- c = Et(l, [0, 0]);
- return [
- r.createElement('div', {
- className: $('line', 'horizontal', 'dragline', 'dashed'),
- key: 'dragRotateGuideline',
- style: {
- width: ''.concat(f, 'px'),
- transform: 'translate('
- .concat(u[0], 'px, ')
- .concat(u[1], 'px) rotate(')
- .concat(c, 'rad) scaleY(')
- .concat(i, ')')
- }
- })
- ];
- },
- dragStart: function (t, r) {
- var e = r.datas,
- n = r.parentEvent,
- a = r.parentGesto,
- i = t.state,
- o = i.gestos,
- s = i.style;
- if (o.draggable) return !1;
- (o.draggable = a || t.targetGesto),
- (e.datas = {}),
- (e.left = parseFloat(s.left || '') || 0),
- (e.top = parseFloat(s.top || '') || 0),
- (e.bottom = parseFloat(s.bottom || '') || 0),
- (e.right = parseFloat(s.right || '') || 0),
- (e.startValue = [0, 0]),
- Pr(t, r),
- cn(r, 'translate'),
- Fp(t, e),
- (e.prevDist = [0, 0]),
- (e.prevBeforeDist = [0, 0]),
- (e.isDrag = !1),
- (e.deltaOffset = [0, 0]);
- var u = ot(
- t,
- r,
- R(
- {
- set: function (f) {
- e.startValue = f;
- }
- },
- fn(r)
- )
- ),
- l = n || Y(t, 'onDragStart', u);
- return (
- l !== !1
- ? ((e.isDrag = !0),
- (t.state.dragInfo = { startRect: t.getRect(), dist: [0, 0] }))
- : ((o.draggable = null), (e.isPinch = !1)),
- e.isDrag ? u : !1
- );
- },
- drag: function (t, r) {
- if (r) {
- un(r, 'translate');
- var e = r.datas,
- n = r.parentEvent,
- a = r.parentFlag,
- i = r.isPinch,
- o = r.deltaOffset,
- s = r.useSnap,
- u = r.isRequest,
- l = r.distX,
- f = r.distY,
- c = e.isDrag,
- v = e.prevDist,
- p = e.prevBeforeDist,
- d = e.startValue;
- if (c) {
- o && ((l += o[0]), (f += o[1]));
- var g = t.props,
- h = g.parentMoveable,
- A = n ? 0 : g.throttleDrag || 0,
- m = n ? 0 : g.throttleDragRotate || 0,
- E = 0,
- y = !1,
- b = !1,
- C = !1,
- S = !1;
- if (!n && m > 0 && (l || f)) {
- var D = g.startDragRotate || 0,
- x = nt(D + (Et([0, 0], [l, f]) * 180) / Math.PI, m) - D,
- w = f * Math.abs(Math.cos(((x - 90) / 180) * Math.PI)),
- T = l * Math.abs(Math.cos((x / 180) * Math.PI)),
- I = Jt([T, w]);
- (E = (x * Math.PI) / 180),
- (l = I * Math.cos(E)),
- (f = I * Math.sin(E));
- }
- if (!i && !n && !a) {
- var M = B(gp(t, l, f, m, (!s && u) || o, e), 2),
- O = M[0],
- P = M[1];
- (y = O.isSnap), (b = O.isBound), (C = P.isSnap), (S = P.isBound);
- var z = O.offset,
- H = P.offset;
- (l += z), (f += H);
- }
- var G = ft(Ko({ datas: e, distX: l, distY: f }), d),
- L = ft(Tv({ datas: e, distX: l, distY: f }), d);
- fi(L, Ut),
- fi(G, Ut),
- m ||
- (!y && !b && ((L[0] = nt(L[0], A)), (G[0] = nt(G[0], A))),
- !C && !S && ((L[1] = nt(L[1], A)), (G[1] = nt(G[1], A))));
- var V = tt(G, d),
- F = tt(L, d),
- Q = tt(F, v),
- j = tt(V, p);
- (e.prevDist = F),
- (e.prevBeforeDist = V),
- (e.passDelta = Q),
- (e.passDist = F);
- var K = e.left + V[0],
- X = e.top + V[1],
- W = e.right - V[0],
- _ = e.bottom - V[1],
- rt = ln(
- e,
- 'translate('.concat(L[0], 'px, ').concat(L[1], 'px)'),
- 'translate('.concat(F[0], 'px, ').concat(F[1], 'px)')
- );
- if (
- (Ia(r, rt),
- (t.state.dragInfo.dist = n ? [0, 0] : F),
- !(
- !n &&
- !h &&
- Q.every(function (vt) {
- return !vt;
- }) &&
- j.some(function (vt) {
- return !vt;
- })
- ))
- ) {
- var lt = t.state,
- et = lt.width,
- Z = lt.height,
- J = ot(
- t,
- r,
- R(
- {
- transform: rt,
- dist: F,
- delta: Q,
- translate: L,
- beforeDist: V,
- beforeDelta: j,
- beforeTranslate: G,
- left: K,
- top: X,
- right: W,
- bottom: _,
- width: et,
- height: Z,
- isPinch: i
- },
- Lt({ transform: rt }, r)
- )
- );
- return !n && Y(t, 'onDrag', J), J;
- }
- }
- }
- },
- dragAfter: function (t, r) {
- var e = r.datas,
- n = e.deltaOffset;
- return n[0] || n[1]
- ? ((e.deltaOffset = [0, 0]),
- this.drag(t, R(R({}, r), { deltaOffset: n })))
- : !1;
- },
- dragEnd: function (t, r) {
- var e = r.parentEvent,
- n = r.datas;
- if (((t.state.dragInfo = null), !!n.isDrag)) {
- n.isDrag = !1;
- var a = Qt(t, r, {});
- return !e && Y(t, 'onDragEnd', a), a;
- }
- },
- dragGroupStart: function (t, r) {
- var e = r.datas,
- n = r.clientX,
- a = r.clientY,
- i = this.dragStart(t, r);
- if (!i) return !1;
- var o = Rn(t, this, 'dragStart', [n || 0, a || 0], r, !1, 'draggable'),
- s = R(R({}, i), { targets: t.props.targets, events: o }),
- u = Y(t, 'onDragGroupStart', s);
- return (e.isDrag = u !== !1), e.isDrag ? i : !1;
- },
- dragGroup: function (t, r) {
- var e = r.datas;
- if (e.isDrag) {
- var n = this.drag(t, r),
- a = r.datas.passDelta,
- i = Rn(t, this, 'drag', a, r, !1, 'draggable');
- if (n) {
- var o = R({ targets: t.props.targets, events: i }, n);
- return Y(t, 'onDragGroup', o), o;
- }
- }
- },
- dragGroupEnd: function (t, r) {
- var e = r.isDrag,
- n = r.datas;
- if (n.isDrag) {
- this.dragEnd(t, r);
- var a = Rn(t, this, 'dragEnd', [0, 0], r, !1, 'draggable');
- return (
- Y(
- t,
- 'onDragGroupEnd',
- Qt(t, r, { targets: t.props.targets, events: a })
- ),
- e
- );
- }
- },
- request: function (t) {
- var r = {},
- e = t.getRect(),
- n = 0,
- a = 0,
- i = !1;
- return {
- isControl: !1,
- requestStart: function (o) {
- return (i = o.useSnap), { datas: r, useSnap: i };
- },
- request: function (o) {
- return (
- 'x' in o ? (n = o.x - e.left) : 'deltaX' in o && (n += o.deltaX),
- 'y' in o ? (a = o.y - e.top) : 'deltaY' in o && (a += o.deltaY),
- { datas: r, distX: n, distY: a, useSnap: i }
- );
- },
- requestEnd: function () {
- return { datas: r, isDrag: !0, useSnap: i };
- }
- };
- },
- unset: function (t) {
- (t.state.gestos.draggable = null), (t.state.dragInfo = null);
- }
- };
- function fs(t, r) {
- var e = Ot(t, r),
- n = [0, 0];
- return { fixedPosition: e, fixedDirection: r, fixedOffset: n };
- }
- function Cp(t, r) {
- var e = t.allMatrix,
- n = t.is3d,
- a = t.width,
- i = t.height,
- o = n ? 4 : 3,
- s = [(a / 2) * (1 + r[0]), (i / 2) * (1 + r[1])],
- u = Ct(e, s, o),
- l = [0, 0];
- return { fixedPosition: u, fixedDirection: r, fixedOffset: l };
- }
- function cs(t, r) {
- var e = t.allMatrix,
- n = t.is3d,
- a = t.width,
- i = t.height,
- o = n ? 4 : 3,
- s = Hv(r, a, i),
- u = Ct(e, r, o),
- l = [a ? 0 : r[0], i ? 0 : r[1]];
- return { fixedPosition: u, fixedDirection: s, fixedOffset: l };
- }
- var Ti = Va('resizable'),
- ra = {
- name: 'resizable',
- ableGroup: 'size',
- canPinch: !0,
- props: [
- 'resizable',
- 'throttleResize',
- 'renderDirections',
- 'displayAroundControls',
- 'keepRatio',
- 'resizeFormat',
- 'keepRatioFinally',
- 'edge',
- 'checkResizableError'
- ],
- events: [
- 'resizeStart',
- 'beforeResize',
- 'resize',
- 'resizeEnd',
- 'resizeGroupStart',
- 'beforeResizeGroup',
- 'resizeGroup',
- 'resizeGroupEnd'
- ],
- render: es('resizable'),
- dragControlCondition: Ti,
- viewClassName: Ua('resizable'),
- dragControlStart: function (t, r) {
- var e,
- n = r.inputEvent,
- a = r.isPinch,
- i = r.isGroup,
- o = r.parentDirection,
- s = r.parentGesto,
- u = r.datas,
- l = r.parentFixedDirection,
- f = r.parentEvent,
- c = ws(o, a, n, u),
- v = t.state,
- p = v.target,
- d = v.width,
- g = v.height,
- h = v.gestos;
- if (!c || !p || h.resizable) return !1;
- (h.resizable = s || t.controlGesto),
- !a && Pr(t, r),
- (u.datas = {}),
- (u.direction = c),
- (u.startOffsetWidth = d),
- (u.startOffsetHeight = g),
- (u.prevWidth = 0),
- (u.prevHeight = 0),
- (u.minSize = [0, 0]),
- (u.startWidth = v.inlineCSSWidth || v.cssWidth),
- (u.startHeight = v.inlineCSSHeight || v.cssHeight),
- (u.maxSize = [1 / 0, 1 / 0]),
- i ||
- ((u.minSize = [v.minOffsetWidth, v.minOffsetHeight]),
- (u.maxSize = [v.maxOffsetWidth, v.maxOffsetHeight]));
- var A = t.props.transformOrigin || '% %';
- (u.transformOrigin = A && Wt(A) ? A.split(' ') : A),
- (u.startOffsetMatrix = v.offsetMatrix),
- (u.startTransformOrigin = v.transformOrigin),
- (u.isWidth =
- (e = r == null ? void 0 : r.parentIsWidth) !== null && e !== void 0
- ? e
- : (!c[0] && !c[1]) || c[0] || !c[1]);
- function m(x) {
- u.ratio = x && isFinite(x) ? x : 0;
- }
- u.startPositions = jt(t.state);
- function E(x) {
- var w = fs(u.startPositions, x);
- (u.fixedDirection = w.fixedDirection),
- (u.fixedPosition = w.fixedPosition),
- (u.fixedOffset = w.fixedOffset);
- }
- function y(x) {
- var w = cs(t.state, x);
- (u.fixedDirection = w.fixedDirection),
- (u.fixedPosition = w.fixedPosition),
- (u.fixedOffset = w.fixedOffset);
- }
- function b(x) {
- u.minSize = [gt(''.concat(x[0]), 0) || 0, gt(''.concat(x[1]), 0) || 0];
- }
- function C(x) {
- var w = [x[0] || 1 / 0, x[1] || 1 / 0];
- (!Ur(w[0]) || isFinite(w[0])) &&
- (w[0] = gt(''.concat(w[0]), 0) || 1 / 0),
- (!Ur(w[1]) || isFinite(w[1])) &&
- (w[1] = gt(''.concat(w[1]), 0) || 1 / 0),
- (u.maxSize = w);
- }
- m(d / g),
- E(l || [-c[0], -c[1]]),
- (u.setFixedDirection = E),
- (u.setFixedPosition = y),
- (u.setMin = b),
- (u.setMax = C);
- var S = ot(t, r, {
- direction: c,
- startRatio: u.ratio,
- set: function (x) {
- var w = B(x, 2),
- T = w[0],
- I = w[1];
- (u.startWidth = T), (u.startHeight = I);
- },
- setMin: b,
- setMax: C,
- setRatio: m,
- setFixedDirection: E,
- setFixedPosition: y,
- setOrigin: function (x) {
- u.transformOrigin = x;
- },
- dragStart: Ht.dragStart(t, new Wr().dragStart([0, 0], r))
- }),
- D = f || Y(t, 'onResizeStart', S);
- return (
- (u.startFixedDirection = u.fixedDirection),
- (u.startFixedPosition = u.fixedPosition),
- D !== !1 &&
- ((u.isResize = !0),
- (t.state.snapRenderInfo = { request: r.isRequest, direction: c })),
- u.isResize ? S : !1
- );
- },
- dragControl: function (t, r) {
- var e,
- n = r.datas,
- a = r.parentFlag,
- i = r.isPinch,
- o = r.parentKeepRatio,
- s = r.dragClient,
- u = r.parentDist,
- l = r.useSnap,
- f = r.isRequest,
- c = r.isGroup,
- v = r.parentEvent,
- p = r.resolveMatrix,
- d = n.isResize,
- g = n.transformOrigin,
- h = n.startWidth,
- A = n.startHeight,
- m = n.prevWidth,
- E = n.prevHeight,
- y = n.minSize,
- b = n.maxSize,
- C = n.ratio,
- S = n.startOffsetWidth,
- D = n.startOffsetHeight,
- x = n.isWidth;
- if (!d) return;
- if (p) {
- var w = t.state.is3d,
- T = n.startOffsetMatrix,
- I = n.startTransformOrigin,
- M = w ? 4 : 3,
- O = Qe(qe(r)),
- P = Math.sqrt(O.length);
- M !== P && (O = rr(O, P, M));
- var z = be(T, O, I, M),
- H = kr(z, S, D, M);
- (n.startPositions = H), (n.nextTargetMatrix = O), (n.nextAllMatrix = z);
- }
- var G = Or(t.props, 'resizable'),
- L = G.resizeFormat,
- V = G.throttleResize,
- F = V === void 0 ? (a ? 0 : 1) : V,
- Q = G.parentMoveable,
- j = G.keepRatioFinally,
- K = n.direction,
- X = K,
- W = 0,
- _ = 0;
- !K[0] && !K[1] && (X = [1, 1]);
- var rt = (C && (o != null ? o : G.keepRatio)) || !1;
- function lt() {
- var Dt = n.fixedDirection,
- Bt = Ps(X, rt, n, r);
- (W = Bt.distWidth), (_ = Bt.distHeight);
- var cr = X[0] - Dt[0] || rt ? Math.max(S + W, Ut) : S,
- vr = X[1] - Dt[1] || rt ? Math.max(D + _, Ut) : D;
- return rt && S && D && (x ? (vr = cr / C) : (cr = vr * C)), [cr, vr];
- }
- var et = B(lt(), 2),
- Z = et[0],
- J = et[1];
- v ||
- (n.setFixedDirection(n.fixedDirection),
- Y(
- t,
- 'onBeforeResize',
- ot(
- t,
- r,
- {
- startFixedDirection: n.startFixedDirection,
- startFixedPosition: n.startFixedPosition,
- setFixedDirection: function (Dt) {
- var Bt;
- return (
- n.setFixedDirection(Dt),
- (Bt = B(lt(), 2)),
- (Z = Bt[0]),
- (J = Bt[1]),
- [Z, J]
- );
- },
- setFixedPosition: function (Dt) {
- var Bt;
- return (
- n.setFixedPosition(Dt),
- (Bt = B(lt(), 2)),
- (Z = Bt[0]),
- (J = Bt[1]),
- [Z, J]
- );
- },
- boundingWidth: Z,
- boundingHeight: J,
- setSize: function (Dt) {
- var Bt;
- (Bt = B(Dt, 2)), (Z = Bt[0]), (J = Bt[1]);
- }
- },
- !0
- )
- ));
- var vt = s;
- s || (!a && i ? (vt = Wv(t, [0, 0])) : (vt = n.fixedPosition));
- var at = [0, 0];
- i || (at = Gp(t, Z, J, K, vt, !l && f, n)),
- u && (!u[0] && (at[0] = 0), !u[1] && (at[1] = 0));
- function it() {
- var Dt;
- L && ((Dt = B(L([Z, J]), 2)), (Z = Dt[0]), (J = Dt[1])),
- (Z = nt(Z, F)),
- (J = nt(J, F));
- }
- if (rt) {
- X[0] &&
- X[1] &&
- at[0] &&
- at[1] &&
- (N(at[0]) > N(at[1]) ? (at[1] = 0) : (at[0] = 0));
- var ut = !at[0] && !at[1];
- ut && it(),
- (X[0] && !X[1]) || (at[0] && !at[1]) || (ut && x)
- ? ((Z += at[0]), (J = Z / C))
- : ((!X[0] && X[1]) || (!at[0] && at[1]) || (ut && !x)) &&
- ((J += at[1]), (Z = J * C));
- } else
- (Z += at[0]), (J += at[1]), (Z = Math.max(0, Z)), (J = Math.max(0, J));
- (e = B(so([Z, J], y, b, rt ? C : !1), 2)),
- (Z = e[0]),
- (J = e[1]),
- it(),
- rt && (c || j) && (x ? (J = Z / C) : (Z = J * C)),
- (W = Z - S),
- (_ = J - D);
- var At = [W - m, _ - E];
- (n.prevWidth = W), (n.prevHeight = _);
- var pt = Vv(t, Z, J, vt, g, n);
- if (
- !(
- !Q &&
- At.every(function (Dt) {
- return !Dt;
- }) &&
- pt.every(function (Dt) {
- return !Dt;
- })
- )
- ) {
- var st = Ht.drag(t, De(r, t.state, pt, !!i, !1, 'draggable')),
- ct = st.transform,
- yt = h + W,
- Ft = A + _,
- kt = ot(
- t,
- r,
- R(
- {
- width: yt,
- height: Ft,
- offsetWidth: Math.round(Z),
- offsetHeight: Math.round(J),
- startRatio: C,
- boundingWidth: Z,
- boundingHeight: J,
- direction: K,
- dist: [W, _],
- delta: At,
- isPinch: !!i,
- drag: st
- },
- Bs(
- {
- style: {
- width: ''.concat(yt, 'px'),
- height: ''.concat(Ft, 'px')
- },
- transform: ct
- },
- st,
- r
- )
- )
- );
- return !v && Y(t, 'onResize', kt), kt;
- }
- },
- dragControlAfter: function (t, r) {
- var e = r.datas,
- n = e.isResize,
- a = e.startOffsetWidth,
- i = e.startOffsetHeight,
- o = e.prevWidth,
- s = e.prevHeight;
- if (!(!n || t.props.checkResizableError === !1)) {
- var u = t.state,
- l = u.width,
- f = u.height,
- c = l - (a + o),
- v = f - (i + s),
- p = N(c) > 3,
- d = N(v) > 3;
- if (
- (p &&
- ((e.startWidth += c),
- (e.startOffsetWidth += c),
- (e.prevWidth += c)),
- d &&
- ((e.startHeight += v),
- (e.startOffsetHeight += v),
- (e.prevHeight += v)),
- p || d)
- )
- return this.dragControl(t, r);
- }
- },
- dragControlEnd: function (t, r) {
- var e = r.datas,
- n = r.parentEvent;
- if (e.isResize) {
- e.isResize = !1;
- var a = Qt(t, r, {});
- return !n && Y(t, 'onResizeEnd', a), a;
- }
- },
- dragGroupControlCondition: Ti,
- dragGroupControlStart: function (t, r) {
- var e = r.datas,
- n = this.dragControlStart(t, R(R({}, r), { isGroup: !0 }));
- if (!n) return !1;
- var a = $t(t, 'resizable', r),
- i = e.startOffsetWidth,
- o = e.startOffsetHeight;
- function s() {
- var p = e.minSize;
- a.forEach(function (d) {
- var g = d.datas,
- h = g.minSize,
- A = g.startOffsetWidth,
- m = g.startOffsetHeight,
- E = i * (A ? h[0] / A : 0),
- y = o * (m ? h[1] / m : 0);
- (p[0] = Math.max(p[0], E)), (p[1] = Math.max(p[1], y));
- });
- }
- function u() {
- var p = e.maxSize;
- a.forEach(function (d) {
- var g = d.datas,
- h = g.maxSize,
- A = g.startOffsetWidth,
- m = g.startOffsetHeight,
- E = i * (A ? h[0] / A : 0),
- y = o * (m ? h[1] / m : 0);
- (p[0] = Math.min(p[0], E)), (p[1] = Math.min(p[1], y));
- });
- }
- var l = ur(t, this, 'dragControlStart', r, function (p, d) {
- return Ke(t, p, e, d);
- });
- s(), u();
- var f = function (p) {
- n.setFixedDirection(p),
- l.forEach(function (d, g) {
- d.setFixedDirection(p), Ke(t, d.moveable, e, a[g]);
- });
- };
- e.setFixedDirection = f;
- var c = R(R({}, n), {
- targets: t.props.targets,
- events: l.map(function (p) {
- return R(R({}, p), {
- setMin: function (d) {
- p.setMin(d), s();
- },
- setMax: function (d) {
- p.setMax(d), u();
- }
- });
- }),
- setFixedDirection: f,
- setMin: function (p) {
- n.setMin(p), s();
- },
- setMax: function (p) {
- n.setMax(p), u();
- }
- }),
- v = Y(t, 'onResizeGroupStart', c);
- return (e.isResize = v !== !1), e.isResize ? n : !1;
- },
- dragGroupControl: function (t, r) {
- var e = r.datas;
- if (e.isResize) {
- var n = Or(t.props, 'resizable');
- hn(t, 'onBeforeResize', function (p) {
- Y(
- t,
- 'onBeforeResizeGroup',
- ot(t, r, R(R({}, p), { targets: n.targets }), !0)
- );
- });
- var a = this.dragControl(t, R(R({}, r), { isGroup: !0 }));
- if (a) {
- var i = a.boundingWidth,
- o = a.boundingHeight,
- s = a.dist,
- u = n.keepRatio,
- l = [i / (i - s[0]), o / (o - s[1])],
- f = e.fixedPosition,
- c = ur(t, this, 'dragControl', r, function (p, d) {
- var g = B(
- Nt(
- Ce((t.rotation / 180) * Math.PI, 3),
- [d.datas.originalX * l[0], d.datas.originalY * l[1], 1],
- 3
- ),
- 2
- ),
- h = g[0],
- A = g[1];
- return R(R({}, d), {
- parentDist: null,
- parentScale: l,
- dragClient: ft(f, [h, A]),
- parentKeepRatio: u
- });
- }),
- v = R({ targets: n.targets, events: c }, a);
- return Y(t, 'onResizeGroup', v), v;
- }
- }
- },
- dragGroupControlEnd: function (t, r) {
- var e = r.isDrag,
- n = r.datas;
- if (n.isResize) {
- this.dragControlEnd(t, r);
- var a = ur(t, this, 'dragControlEnd', r),
- i = Qt(t, r, { targets: t.props.targets, events: a });
- return Y(t, 'onResizeGroupEnd', i), e;
- }
- },
- request: function (t) {
- var r = {},
- e = 0,
- n = 0,
- a = !1,
- i = t.getRect();
- return {
- isControl: !0,
- requestStart: function (o) {
- var s;
- return (
- (a = o.useSnap),
- {
- datas: r,
- parentDirection: o.direction || [1, 1],
- parentIsWidth:
- (s = o == null ? void 0 : o.horizontal) !== null && s !== void 0
- ? s
- : !0,
- useSnap: a
- }
- );
- },
- request: function (o) {
- return (
- 'offsetWidth' in o
- ? (e = o.offsetWidth - i.offsetWidth)
- : 'deltaWidth' in o && (e += o.deltaWidth),
- 'offsetHeight' in o
- ? (n = o.offsetHeight - i.offsetHeight)
- : 'deltaHeight' in o && (n += o.deltaHeight),
- {
- datas: r,
- parentDist: [e, n],
- parentKeepRatio: o.keepRatio,
- useSnap: a
- }
- );
- },
- requestEnd: function () {
- return { datas: r, isDrag: !0, useSnap: a };
- }
- };
- },
- unset: function (t) {
- t.state.gestos.resizable = null;
- }
- };
- function Bn(t, r, e, n, a) {
- var i = t.props.groupable,
- o = t.state,
- s = o.is3d ? 4 : 3,
- u = r.origin,
- l = Ct(
- t.state.rootMatrix,
- tt([u[0], u[1]], i ? [0, 0] : [o.left, o.top]),
- s
- ),
- f = ft([a.left, a.top], l);
- (r.startAbsoluteOrigin = f),
- (r.prevDeg = (Et(f, [e, n]) / Math.PI) * 180),
- (r.defaultDeg = r.prevDeg),
- (r.prevSnapDeg = 0),
- (r.loop = 0),
- (r.startDist = sr(f, [e, n]));
- }
- function Ue(t, r, e) {
- var n = e.defaultDeg,
- a = e.prevDeg,
- i = a % 360,
- o = Math.floor(a / 360);
- i < 0 && (i += 360),
- i > t && i > 270 && t < 90 ? ++o : i < t && i < 90 && t > 270 && --o;
- var s = r * (o * 360 + t - n);
- return (e.prevDeg = n + s), s;
- }
- function Mn(t, r, e, n) {
- return Ue((Et(n.startAbsoluteOrigin, [t, r]) / Math.PI) * 180, e, n);
- }
- function In(t, r, e, n, a, i) {
- var o = t.props.throttleRotate,
- s = o === void 0 ? 0 : o,
- u = e.prevSnapDeg,
- l = 0,
- f = !1;
- if (i) {
- var c = kp(t, r, n, a + n);
- (f = c.isSnap), (l = a + c.dist);
- }
- f || (l = nt(a + n, s));
- var v = l - a;
- return (e.prevSnapDeg = v), [v - u, v, l];
- }
- function vs(t, r, e) {
- var n = B(r, 4),
- a = n[0],
- i = n[1],
- o = n[2],
- s = n[3];
- if (t === 'none') return [];
- if (Rt(t))
- return t.map(function (h) {
- return vs(h, [a, i, o, s], e)[0];
- });
- var u = B((t || 'top').split('-'), 2),
- l = u[0],
- f = u[1],
- c = [a, i];
- l === 'left'
- ? (c = [o, a])
- : l === 'right'
- ? (c = [i, s])
- : l === 'bottom' && (c = [s, o]);
- var v = [(c[0][0] + c[1][0]) / 2, (c[0][1] + c[1][1]) / 2],
- p = bs(c, e);
- if (f) {
- var d = f === 'top' || f === 'left',
- g = l === 'bottom' || l === 'left';
- v = c[(d && !g) || (!d && g) ? 0 : 1];
- }
- return [[v, p]];
- }
- function ea(t, r) {
- if (r.isRequest) return r.requestAble === 'rotatable';
- var e = r.inputEvent.target;
- if (
- Tt(e, $('rotation-control')) ||
- (t.props.rotateAroundControls && Tt(e, $('around-control'))) ||
- (Tt(e, $('control')) && Tt(e, $('rotatable')))
- )
- return !0;
- var n = t.props.rotationTarget;
- return n
- ? Wa(n, !0).some(function (a) {
- return a ? e === a || e.contains(a) : !1;
- })
- : !1;
- }
- var Ep =
- '.rotation {\nposition: absolute;\nheight: 40px;\nwidth: 1px;\ntransform-origin: 50% 100%;\nheight: calc(40px * var(--zoom));\ntop: auto;\nleft: 0;\nbottom: 100%;\nwill-change: transform;\n}\n.rotation .rotation-line {\ndisplay: block;\nwidth: 100%;\nheight: 100%;\ntransform-origin: 50% 50%;\n}\n.rotation .rotation-control {\nborder-color: #4af;\nborder-color: var(--moveable-color);\nbackground:#fff;\ncursor: alias;\n}\n:global .view-rotation-dragging, .rotatable.direction.control {\ncursor: alias;\n}\n.rotatable.direction.control.move {\ncursor: move;\n}\n',
- yp = {
- name: 'rotatable',
- canPinch: !0,
- props: [
- 'rotatable',
- 'rotationPosition',
- 'throttleRotate',
- 'renderDirections',
- 'rotationTarget',
- 'rotateAroundControls',
- 'edge',
- 'resolveAblesWithRotatable',
- 'displayAroundControls'
- ],
- events: [
- 'rotateStart',
- 'beforeRotate',
- 'rotate',
- 'rotateEnd',
- 'rotateGroupStart',
- 'beforeRotateGroup',
- 'rotateGroup',
- 'rotateGroupEnd'
- ],
- css: [Ep],
- viewClassName: function (t) {
- return t.isDragging('rotatable') ? $('view-rotation-dragging') : '';
- },
- render: function (t, r) {
- var e = Or(t.props, 'rotatable'),
- n = e.rotatable,
- a = e.rotationPosition,
- i = e.zoom,
- o = e.renderDirections,
- s = e.rotateAroundControls,
- u = e.resolveAblesWithRotatable,
- l = t.getState(),
- f = l.renderPoses,
- c = l.direction;
- if (!n) return null;
- var v = vs(a, f, c),
- p = [];
- if (
- (v.forEach(function (A, m) {
- var E = B(A, 2),
- y = E[0],
- b = E[1];
- p.push(
- r.createElement(
- 'div',
- {
- key: 'rotation'.concat(m),
- className: $('rotation'),
- style: {
- transform: 'translate(-50%) translate('
- .concat(y[0], 'px, ')
- .concat(y[1], 'px) rotate(')
- .concat(b, 'rad)')
- }
- },
- r.createElement('div', {
- className: $('line rotation-line'),
- style: { transform: 'scaleX('.concat(i, ')') }
- }),
- r.createElement('div', {
- className: $('control rotation-control'),
- style: { transform: 'translate(0.5px) scale('.concat(i, ')') }
- })
- )
- );
- }),
- o)
- ) {
- var d = fr(u || {}),
- g = {};
- d.forEach(function (A) {
- u[A].forEach(function (m) {
- g[m] = A;
- });
- });
- var h = [];
- Rt(o) &&
- (h = o.map(function (A) {
- var m = g[A];
- return {
- data: m ? { resolve: m } : {},
- classNames: m ? ['move'] : [],
- dir: A
- };
- })),
- p.push.apply(p, U([], B($o(t, 'rotatable', h, r)), !1));
- }
- return s && p.push.apply(p, U([], B(as(t, r)), !1)), p;
- },
- dragControlCondition: ea,
- dragControlStart: function (t, r) {
- var e,
- n,
- a = r.datas,
- i = r.clientX,
- o = r.clientY,
- s = r.parentRotate,
- u = r.parentFlag,
- l = r.isPinch,
- f = r.isRequest,
- c = t.state,
- v = c.target,
- p = c.left,
- d = c.top,
- g = c.direction,
- h = c.beforeDirection,
- A = c.targetTransform,
- m = c.moveableClientRect,
- E = c.offsetMatrix,
- y = c.targetMatrix,
- b = c.allMatrix,
- C = c.width,
- S = c.height;
- if (!f && !v) return !1;
- var D = t.getRect();
- (a.rect = D), (a.transform = A), (a.left = p), (a.top = d);
- var x = function (X) {
- var W = cs(t.state, X);
- (a.fixedDirection = W.fixedDirection),
- (a.fixedOffset = W.fixedOffset),
- (a.fixedPosition = W.fixedPosition),
- F && F.setFixedPosition(X);
- },
- w = function (X) {
- var W = Cp(t.state, X);
- (a.fixedDirection = W.fixedDirection),
- (a.fixedOffset = W.fixedOffset),
- (a.fixedPosition = W.fixedPosition),
- F && F.setFixedDirection(X);
- },
- T = i,
- I = o;
- if (f || l || u) {
- var M = s || 0;
- (a.beforeInfo = {
- origin: D.beforeOrigin,
- prevDeg: M,
- defaultDeg: M,
- prevSnapDeg: 0,
- startDist: 0
- }),
- (a.afterInfo = R(R({}, a.beforeInfo), { origin: D.origin })),
- (a.absoluteInfo = R(R({}, a.beforeInfo), {
- origin: D.origin,
- startValue: M
- }));
- } else {
- var O = (n = r.inputEvent) === null || n === void 0 ? void 0 : n.target;
- if (O) {
- var P = O.getAttribute('data-direction') || '',
- z = Mv[P];
- if (z) {
- (a.isControl = !0),
- (a.isAroundControl = Tt(O, $('around-control'))),
- (a.controlDirection = z);
- var H = O.getAttribute('data-resolve');
- H && (a.resolveAble = H);
- var G = jp(c.rootMatrix, c.renderPoses, m);
- (e = B(Ot(G, z), 2)), (T = e[0]), (I = e[1]);
- }
- }
- (a.beforeInfo = { origin: D.beforeOrigin }),
- (a.afterInfo = { origin: D.origin }),
- (a.absoluteInfo = { origin: D.origin, startValue: D.rotation });
- var L = x;
- (x = function (X) {
- var W = c.is3d ? 4 : 3,
- _ = B(ft(Oo(y, W), X), 2),
- rt = _[0],
- lt = _[1],
- et = Nt(E, Mr([rt, lt], W)),
- Z = Nt(b, Mr([X[0], X[1]], W));
- L(X);
- var J = c.posDelta;
- (a.beforeInfo.origin = tt(et, J)),
- (a.afterInfo.origin = tt(Z, J)),
- (a.absoluteInfo.origin = tt(Z, J)),
- Bn(t, a.beforeInfo, T, I, m),
- Bn(t, a.afterInfo, T, I, m),
- Bn(t, a.absoluteInfo, T, I, m);
- }),
- (w = function (X) {
- var W = Ot(
- [
- [0, 0],
- [C, 0],
- [0, S],
- [C, S]
- ],
- X
- );
- x(W);
- });
- }
- (a.startClientX = T),
- (a.startClientY = I),
- (a.direction = g),
- (a.beforeDirection = h),
- (a.startValue = 0),
- (a.datas = {}),
- cn(r, 'rotate');
- var V = !1,
- F = !1;
- if (a.isControl && a.resolveAble) {
- var Q = a.resolveAble;
- Q === 'resizable' &&
- (F = ra.dragControlStart(
- t,
- R(R({}, new Wr('resizable').dragStart([0, 0], r)), {
- parentPosition: a.controlPosition,
- parentFixedPosition: a.fixedPosition
- })
- ));
- }
- F || (V = Ht.dragStart(t, new Wr().dragStart([0, 0], r))), x(Zp(t));
- var j = ot(
- t,
- r,
- R(
- R(
- {
- set: function (X) {
- a.startValue = (X * Math.PI) / 180;
- },
- setFixedDirection: w,
- setFixedPosition: x
- },
- fn(r)
- ),
- { dragStart: V, resizeStart: F }
- )
- ),
- K = Y(t, 'onRotateStart', j);
- return (
- (a.isRotate = K !== !1),
- (c.snapRenderInfo = { request: r.isRequest }),
- a.isRotate ? j : !1
- );
- },
- dragControl: function (t, r) {
- var e,
- n,
- a,
- i = r.datas,
- o = r.clientDistX,
- s = r.clientDistY,
- u = r.parentRotate,
- l = r.parentFlag,
- f = r.isPinch,
- c = r.groupDelta,
- v = r.resolveMatrix,
- p = i.beforeDirection,
- d = i.beforeInfo,
- g = i.afterInfo,
- h = i.absoluteInfo,
- A = i.isRotate,
- m = i.startValue,
- E = i.rect,
- y = i.startClientX,
- b = i.startClientY;
- if (A) {
- un(r, 'rotate');
- var C = Iv(r),
- S = p * C,
- D = t.props.parentMoveable,
- x = 0,
- w,
- T,
- I = 0,
- M,
- O,
- P = 0,
- z,
- H,
- G = (180 / Math.PI) * m,
- L = h.startValue,
- V = !1,
- F = y + o,
- Q = b + s;
- if (!l && 'parentDist' in r) {
- var j = r.parentDist;
- (w = j), (M = j), (z = j);
- } else
- f || l
- ? ((w = Ue(u, p, d)), (M = Ue(u, S, g)), (z = Ue(u, S, h)))
- : ((w = Mn(F, Q, p, d)),
- (M = Mn(F, Q, S, g)),
- (z = Mn(F, Q, S, h)),
- (V = !0));
- if (
- ((T = G + w),
- (O = G + M),
- (H = L + z),
- Y(
- t,
- 'onBeforeRotate',
- ot(
- t,
- r,
- {
- beforeRotation: T,
- rotation: O,
- absoluteRotation: H,
- setRotation: function (vt) {
- (M = vt - G), (w = M), (z = M);
- }
- },
- !0
- )
- ),
- (e = B(In(t, E, d, w, G, V), 3)),
- (x = e[0]),
- (w = e[1]),
- (T = e[2]),
- (n = B(In(t, E, g, M, G, V), 3)),
- (I = n[0]),
- (M = n[1]),
- (O = n[2]),
- (a = B(In(t, E, h, z, L, V), 3)),
- (P = a[0]),
- (z = a[1]),
- (H = a[2]),
- !(!P && !I && !x && !D && !v))
- ) {
- var K = ln(
- i,
- 'rotate('.concat(O, 'deg)'),
- 'rotate('.concat(M, 'deg)')
- );
- v &&
- (i.fixedPosition = Ta(
- t,
- i.targetAllTransform,
- i.fixedDirection,
- i.fixedOffset,
- i
- ));
- var X = Uv(t, M, i),
- W = tt(ft(c || [0, 0], X), i.prevInverseDist || [0, 0]);
- (i.prevInverseDist = X), (i.requestValue = null);
- var _ = jo(t, K, W, f, r),
- rt = _,
- lt = sr([F, Q], h.startAbsoluteOrigin) - h.startDist,
- et = void 0;
- if (i.resolveAble === 'resizable') {
- var Z = ra.dragControl(
- t,
- R(
- R(
- {},
- De(r, t.state, [r.deltaX, r.deltaY], !!f, !1, 'resizable')
- ),
- { resolveMatrix: !0, parentDistance: lt }
- )
- );
- Z && ((et = Z), (rt = Bs(rt, Z, r)));
- }
- var J = ot(
- t,
- r,
- R(
- R(
- {
- delta: I,
- dist: M,
- rotate: O,
- rotation: O,
- beforeDist: w,
- beforeDelta: x,
- beforeRotate: T,
- beforeRotation: T,
- absoluteDist: z,
- absoluteDelta: P,
- absoluteRotate: H,
- absoluteRotation: H,
- isPinch: !!f,
- resize: et
- },
- _
- ),
- rt
- )
- );
- return Y(t, 'onRotate', J), J;
- }
- }
- },
- dragControlEnd: function (t, r) {
- var e = r.datas;
- if (e.isRotate) {
- e.isRotate = !1;
- var n = Qt(t, r, {});
- return Y(t, 'onRotateEnd', n), n;
- }
- },
- dragGroupControlCondition: ea,
- dragGroupControlStart: function (t, r) {
- var e = r.datas,
- n = t.state,
- a = n.left,
- i = n.top,
- o = n.beforeOrigin,
- s = this.dragControlStart(t, r);
- if (!s) return !1;
- s.set(e.beforeDirection * t.rotation);
- var u = ur(t, this, 'dragControlStart', r, function (c, v) {
- var p = c.state,
- d = p.left,
- g = p.top,
- h = p.beforeOrigin,
- A = ft(tt([d, g], [a, i]), tt(h, o));
- return (
- (v.datas.startGroupClient = A),
- (v.datas.groupClient = A),
- R(R({}, v), { parentRotate: 0 })
- );
- }),
- l = R(R({}, s), { targets: t.props.targets, events: u }),
- f = Y(t, 'onRotateGroupStart', l);
- return (e.isRotate = f !== !1), e.isRotate ? s : !1;
- },
- dragGroupControl: function (t, r) {
- var e = r.datas;
- if (e.isRotate) {
- hn(t, 'onBeforeRotate', function (l) {
- Y(
- t,
- 'onBeforeRotateGroup',
- ot(t, r, R(R({}, l), { targets: t.props.targets }), !0)
- );
- });
- var n = this.dragControl(t, r);
- if (n) {
- var a = e.beforeDirection,
- i = n.beforeDist,
- o = (i / 180) * Math.PI,
- s = ur(t, this, 'dragControl', r, function (l, f) {
- var c = f.datas.startGroupClient,
- v = B(f.datas.groupClient, 2),
- p = v[0],
- d = v[1],
- g = B(Se(c, o * a), 2),
- h = g[0],
- A = g[1],
- m = [h - p, A - d];
- return (
- (f.datas.groupClient = [h, A]),
- R(R({}, f), { parentRotate: i, groupDelta: m })
- );
- });
- t.rotation = a * n.beforeRotation;
- var u = R(
- {
- targets: t.props.targets,
- events: s,
- set: function (l) {
- t.rotation = l;
- },
- setGroupRotation: function (l) {
- t.rotation = l;
- }
- },
- n
- );
- return Y(t, 'onRotateGroup', u), u;
- }
- }
- },
- dragGroupControlEnd: function (t, r) {
- var e = r.isDrag,
- n = r.datas;
- if (n.isRotate) {
- this.dragControlEnd(t, r);
- var a = ur(t, this, 'dragControlEnd', r),
- i = Qt(t, r, { targets: t.props.targets, events: a });
- return Y(t, 'onRotateGroupEnd', i), e;
- }
- },
- request: function (t) {
- var r = {},
- e = 0,
- n = t.getRotation();
- return {
- isControl: !0,
- requestStart: function () {
- return { datas: r };
- },
- request: function (a) {
- return (
- 'deltaRotate' in a
- ? (e += a.deltaRotate)
- : 'rotate' in a && (e = a.rotate - n),
- { datas: r, parentDist: e }
- );
- },
- requestEnd: function () {
- return { datas: r, isDrag: !0 };
- }
- };
- }
- };
- function Dp(t, r) {
- var e,
- n = t.direction,
- a = t.classNames,
- i = t.size,
- o = t.pos,
- s = t.zoom,
- u = t.key,
- l = n === 'horizontal',
- f = l ? 'Y' : 'X';
- return r.createElement('div', {
- key: u,
- className: a.join(' '),
- style:
- ((e = {}),
- (e[l ? 'width' : 'height'] = ''.concat(i)),
- (e.transform = 'translate('
- .concat(o[0], ', ')
- .concat(o[1], ') translate')
- .concat(f, '(-50%) scale')
- .concat(f, '(')
- .concat(s, ')')),
- e)
- });
- }
- function Fa(t, r) {
- return Dp(
- R(R({}, t), {
- classNames: U(
- [$('line', 'guideline', t.direction)],
- B(t.classNames),
- !1
- ).filter(function (e) {
- return e;
- }),
- size: t.size || ''.concat(t.sizeValue, 'px'),
- pos:
- t.pos ||
- t.posValue.map(function (e) {
- return ''.concat(nt(e, 0.1), 'px');
- })
- }),
- r
- );
- }
- function Oi(t, r, e, n, a, i, o, s) {
- var u = t.props.zoom;
- return e.map(function (l, f) {
- var c = l.type,
- v = l.pos,
- p = [0, 0];
- return (
- (p[o] = n),
- (p[o ? 0 : 1] = -a + v),
- Fa(
- {
- key: ''.concat(r, 'TargetGuideline').concat(f),
- classNames: [$('target', 'bold', c)],
- posValue: p,
- sizeValue: i,
- zoom: u,
- direction: r
- },
- s
- )
- );
- });
- }
- function Pi(t, r, e, n, a, i) {
- var o = t.props,
- s = o.zoom,
- u = o.isDisplayInnerSnapDigit,
- l = r === 'horizontal' ? mr : Sr,
- f = a[l.start],
- c = a[l.end];
- return e
- .filter(function (v) {
- var p = v.hide,
- d = v.elementRect;
- if (p) return !1;
- if (u && d) {
- var g = d.rect;
- if (g[l.start] <= f && c <= g[l.end]) return !1;
- }
- return !0;
- })
- .map(function (v, p) {
- var d = v.pos,
- g = v.size,
- h = v.element,
- A = v.className,
- m = [-n[0] + d[0], -n[1] + d[1]];
- return Fa(
- {
- key: ''.concat(r, '-default-guideline-').concat(p),
- classNames: h ? [$('bold'), A] : [$('normal'), A],
- direction: r,
- posValue: m,
- sizeValue: g,
- zoom: s
- },
- i
- );
- });
- }
- function ee(t, r, e, n, a, i, o, s) {
- var u,
- l = t.props,
- f = l.snapDigit,
- c = f === void 0 ? 0 : f,
- v = l.isDisplaySnapDigit,
- p = v === void 0 ? !0 : v,
- d = l.snapDistFormat,
- g =
- d === void 0
- ? function (b, C) {
- return b;
- }
- : d,
- h = l.zoom,
- A = r === 'horizontal' ? 'X' : 'Y',
- m = r === 'vertical' ? 'height' : 'width',
- E = Math.abs(a),
- y = p ? parseFloat(E.toFixed(c)) : 0;
- return s.createElement(
- 'div',
- {
- key: ''.concat(r, '-').concat(e, '-guideline-').concat(n),
- className: $('guideline-group', r),
- style:
- ((u = { left: ''.concat(i[0], 'px'), top: ''.concat(i[1], 'px') }),
- (u[m] = ''.concat(E, 'px')),
- u)
- },
- Fa(
- {
- direction: r,
- classNames: [$(e), o],
- size: '100%',
- posValue: [0, 0],
- sizeValue: E,
- zoom: h
- },
- s
- ),
- s.createElement(
- 'div',
- {
- className: $('size-value', 'gap'),
- style: {
- transform: 'translate'.concat(A, '(-50%) scale(').concat(h, ')')
- }
- },
- y > 0 ? g(y, r) : ''
- )
- );
- }
- function bp(t, r, e, n) {
- var a = t === 'vertical' ? 0 : 1,
- i = t === 'vertical' ? 1 : 0,
- o = a ? mr : Sr,
- s = e[o.start],
- u = e[o.end];
- return Ms(r, function (l) {
- return l.pos[a];
- }).map(function (l) {
- var f = [],
- c = [],
- v = [];
- return (
- l.forEach(function (p) {
- var d,
- g,
- h = p.element,
- A = p.elementRect.rect;
- if (A[o.end] < s) f.push(p);
- else if (u < A[o.start]) c.push(p);
- else if (A[o.start] <= s && u <= A[o.end] && n) {
- var m = p.pos,
- E = {
- element: h,
- rect: R(R({}, A), ((d = {}), (d[o.end] = A[o.start]), d))
- },
- y = {
- element: h,
- rect: R(R({}, A), ((g = {}), (g[o.start] = A[o.end]), g))
- },
- b = [0, 0],
- C = [0, 0];
- (b[a] = m[a]),
- (b[i] = m[i]),
- (C[a] = m[a]),
- (C[i] = m[i] + p.size),
- f.push({ type: t, pos: b, size: 0, elementRect: E, direction: '' }),
- c.push({ type: t, pos: C, size: 0, elementRect: y, direction: '' });
- }
- }),
- f.sort(function (p, d) {
- return d.pos[i] - p.pos[i];
- }),
- c.sort(function (p, d) {
- return p.pos[i] - d.pos[i];
- }),
- { total: l, start: f, end: c, inner: v }
- );
- });
- }
- function xp(t, r, e, n, a) {
- var i = t.props.isDisplayInnerSnapDigit,
- o = [];
- return (
- ['vertical', 'horizontal'].forEach(function (s) {
- var u = r.filter(function (h) {
- return h.type === s;
- }),
- l = s === 'vertical' ? 1 : 0,
- f = l ? 0 : 1,
- c = bp(s, u, n, i),
- v = l ? Sr : mr,
- p = l ? mr : Sr,
- d = n[v.start],
- g = n[v.end];
- c.forEach(function (h) {
- var A = h.total,
- m = h.start,
- E = h.end,
- y = h.inner,
- b = e[f] + A[0].pos[f] - n[p.start],
- C = n;
- m.forEach(function (S) {
- var D = S.elementRect.rect,
- x = C[v.start] - D[v.end];
- if (x > 0) {
- var w = [0, 0];
- (w[l] = e[l] + C[v.start] - d - x),
- (w[f] = b),
- o.push(ee(t, s, 'dashed', o.length, x, w, S.className, a));
- }
- C = D;
- }),
- (C = n),
- E.forEach(function (S) {
- var D = S.elementRect.rect,
- x = D[v.start] - C[v.end];
- if (x > 0) {
- var w = [0, 0];
- (w[l] = e[l] + C[v.end] - d),
- (w[f] = b),
- o.push(ee(t, s, 'dashed', o.length, x, w, S.className, a));
- }
- C = D;
- }),
- y.forEach(function (S) {
- var D = S.elementRect.rect,
- x = d - D[v.start],
- w = D[v.end] - g,
- T = [0, 0],
- I = [0, 0];
- (T[l] = e[l] - x),
- (T[f] = b),
- (I[l] = e[l] + g - d),
- (I[f] = b),
- o.push(ee(t, s, 'dashed', o.length, x, T, S.className, a)),
- o.push(ee(t, s, 'dashed', o.length, w, I, S.className, a));
- });
- });
- }),
- o
- );
- }
- function wp(t, r, e, n, a) {
- var i = [];
- return (
- ['horizontal', 'vertical'].forEach(function (o) {
- var s = r
- .filter(function (h) {
- return h.type === o;
- })
- .slice(0, 1),
- u = o === 'vertical' ? 0 : 1,
- l = u ? 0 : 1,
- f = u ? Sr : mr,
- c = u ? mr : Sr,
- v = n[f.start],
- p = n[f.end],
- d = n[c.start],
- g = n[c.end];
- s.forEach(function (h) {
- var A = h.gap,
- m = h.gapRects,
- E = Math.max.apply(
- Math,
- U(
- [d],
- B(
- m.map(function (C) {
- var S = C.rect;
- return S[c.start];
- })
- ),
- !1
- )
- ),
- y = Math.min.apply(
- Math,
- U(
- [g],
- B(
- m.map(function (C) {
- var S = C.rect;
- return S[c.end];
- })
- ),
- !1
- )
- ),
- b = (E + y) / 2;
- E === y ||
- b === (d + g) / 2 ||
- m.forEach(function (C) {
- var S = C.rect,
- D = C.className,
- x = [e[0], e[1]];
- if (S[f.end] < v) x[u] += S[f.end] - v;
- else if (p < S[f.start]) x[u] += S[f.start] - v - A;
- else return;
- (x[l] += b - d),
- i.push(
- ee(
- t,
- u ? 'vertical' : 'horizontal',
- 'gap',
- i.length,
- A,
- x,
- D,
- a
- )
- );
- });
- });
- }),
- i
- );
- }
- function na(t) {
- var r = t.state,
- e = r.containerClientRect,
- n = r.hasFixed,
- a = e.overflow,
- i = e.scrollHeight,
- o = e.scrollWidth,
- s = e.clientHeight,
- u = e.clientWidth,
- l = e.clientLeft,
- f = e.clientTop,
- c = t.props,
- v = c.snapGap,
- p = v === void 0 ? !0 : v,
- d = c.verticalGuidelines,
- g = c.horizontalGuidelines,
- h = c.snapThreshold,
- A = h === void 0 ? 5 : h,
- m = c.snapGridWidth,
- E = m === void 0 ? 0 : m,
- y = c.snapGridHeight,
- b = y === void 0 ? 0 : y,
- C = c.maxSnapElementGuidelineDistance,
- S = C === void 0 ? 1 / 0 : C,
- D = c.isDisplayGridGuidelines,
- x = qt(jt(t.state)),
- w = x.top,
- T = x.left,
- I = x.bottom,
- M = x.right,
- O = {
- top: w,
- left: T,
- bottom: I,
- right: M,
- center: (T + M) / 2,
- middle: (w + I) / 2
- },
- P = Mp(t),
- z = U([], B(P), !1);
- p && z.push.apply(z, U([], B(Rp(t, O, A)), !1));
- var H = R({}, r.snapOffset || { left: 0, top: 0, bottom: 0, right: 0 });
- if (
- (z.push.apply(z, U([], B(Bp(E, b, a ? o : u, a ? i : s, l, f, H, D)), !1)),
- n)
- ) {
- var G = e.left,
- L = e.top;
- (H.left += G), (H.top += L), (H.right += G), (H.bottom += L);
- }
- return (
- z.push.apply(
- z,
- U([], B(ds(g || !1, d || !1, a ? o : u, a ? i : s, l, f, H)), !1)
- ),
- (z = z.filter(function (V) {
- var F = V.element,
- Q = V.elementRect,
- j = V.type;
- if (!F || !Q) return !0;
- var K = Q.rect;
- return ps(O, K, j, S);
- })),
- z
- );
- }
- function Rp(t, r, e) {
- var n = t.props,
- a = n.maxSnapElementGuidelineDistance,
- i = a === void 0 ? 1 / 0 : a,
- o = n.maxSnapElementGapDistance,
- s = o === void 0 ? 1 / 0 : o,
- u = t.state.elementRects,
- l = [];
- return (
- [
- ['vertical', mr, Sr],
- ['horizontal', Sr, mr]
- ].forEach(function (f) {
- var c = B(f, 3),
- v = c[0],
- p = c[1],
- d = c[2],
- g = r[p.start],
- h = r[p.end],
- A = r[p.center],
- m = r[d.start],
- E = r[d.end];
- function y(S) {
- var D = S.rect;
- return D[p.end] < g + e
- ? g - D[p.end]
- : h - e < D[p.start]
- ? D[p.start] - h
- : -1;
- }
- var b = u
- .filter(function (S) {
- var D = S.rect;
- return D[d.start] > E || D[d.end] < m ? !1 : y(S) > 0;
- })
- .sort(function (S, D) {
- return y(S) - y(D);
- }),
- C = [];
- b.forEach(function (S) {
- b.forEach(function (D) {
- if (S !== D) {
- var x = S.rect,
- w = D.rect,
- T = x[d.start],
- I = x[d.end],
- M = w[d.start],
- O = w[d.end];
- T > O || M > I || C.push([S, D]);
- }
- });
- }),
- C.forEach(function (S) {
- var D = B(S, 2),
- x = D[0],
- w = D[1],
- T = x.rect,
- I = w.rect,
- M = T[p.start],
- O = T[p.end],
- P = I[p.start],
- z = I[p.end],
- H = 0,
- G = 0,
- L = !1,
- V = !1,
- F = !1;
- if (O <= g && h <= P) {
- if (
- ((V = !0),
- (H = (P - O - (h - g)) / 2),
- (G = O + H + (h - g) / 2),
- N(G - A) > e)
- )
- return;
- } else if (O < P && z < g + e) {
- if (((L = !0), (H = P - O), (G = z + H), N(G - g) > e)) return;
- } else if (O < P && h - e < M) {
- if (((F = !0), (H = P - O), (G = M - H), N(G - h) > e)) return;
- } else return;
- H &&
- ps(r, I, v, i) &&
- (H > s ||
- l.push({
- type: v,
- pos: v === 'vertical' ? [G, 0] : [0, G],
- element: w.element,
- size: 0,
- className: w.className,
- isStart: L,
- isCenter: V,
- isEnd: F,
- gap: H,
- hide: !0,
- gapRects: [x, w],
- direction: ''
- }));
- });
- }),
- l
- );
- }
- function Bp(t, r, e, n, a, i, o, s) {
- a === void 0 && (a = 0), i === void 0 && (i = 0);
- var u = [],
- l = o.left,
- f = o.top;
- if (r)
- for (var c = 0; c <= n; c += r)
- u.push({
- type: 'horizontal',
- pos: [l, nt(c - i + f, 0.1)],
- className: $('grid-guideline'),
- size: e,
- hide: !s,
- direction: ''
- });
- if (t)
- for (var c = 0; c <= e; c += t)
- u.push({
- type: 'vertical',
- pos: [nt(c - a + l, 0.1), f],
- className: $('grid-guideline'),
- size: n,
- hide: !s,
- direction: ''
- });
- return u;
- }
- function ps(t, r, e, n) {
- return e === 'horizontal'
- ? N(t.right - r.left) <= n ||
- N(t.left - r.right) <= n ||
- (t.left <= r.right && r.left <= t.right)
- : e === 'vertical'
- ? N(t.bottom - r.top) <= n ||
- N(t.top - r.bottom) <= n ||
- (t.top <= r.bottom && r.top <= t.bottom)
- : !0;
- }
- function Mp(t) {
- var r = t.state,
- e = t.props.elementGuidelines,
- n = e === void 0 ? [] : e;
- if (!n.length) return (r.elementRects = []), [];
- var a = (r.elementRects || []).filter(function (v) {
- return !v.refresh;
- }),
- i = n
- .map(function (v) {
- return tr(v) && 'element' in v
- ? R(R({}, v), { element: nr(v.element, !0) })
- : { element: nr(v, !0) };
- })
- .filter(function (v) {
- return v.element;
- }),
- o = Uc(
- a.map(function (v) {
- return v.element;
- }),
- i.map(function (v) {
- return v.element;
- })
- ),
- s = o.maintained,
- u = o.added,
- l = [];
- s.forEach(function (v) {
- var p = B(v, 2),
- d = p[0],
- g = p[1];
- l[g] = a[d];
- }),
- Ip(
- t,
- u.map(function (v) {
- return i[v];
- })
- ).map(function (v, p) {
- l[u[p]] = v;
- }),
- (r.elementRects = l);
- var f = Pa(t.props.elementSnapDirections),
- c = [];
- return (
- l.forEach(function (v) {
- var p = v.element,
- d = v.top,
- g = d === void 0 ? f.top : d,
- h = v.left,
- A = h === void 0 ? f.left : h,
- m = v.right,
- E = m === void 0 ? f.right : m,
- y = v.bottom,
- b = y === void 0 ? f.bottom : y,
- C = v.center,
- S = C === void 0 ? f.center : C,
- D = v.middle,
- x = D === void 0 ? f.middle : D,
- w = v.className,
- T = v.rect,
- I = ka(
- { top: g, right: E, left: A, bottom: b, center: S, middle: x },
- T
- ),
- M = I.horizontal,
- O = I.vertical,
- P = T.top,
- z = T.left,
- H = T.right - z,
- G = T.bottom - P,
- L = [H, G];
- O.forEach(function (V) {
- c.push({
- type: 'vertical',
- element: p,
- pos: [nt(V, 0.1), P],
- size: G,
- sizes: L,
- className: w,
- elementRect: v,
- direction: ''
- });
- }),
- M.forEach(function (V) {
- c.push({
- type: 'horizontal',
- element: p,
- pos: [z, nt(V, 0.1)],
- size: H,
- sizes: L,
- className: w,
- elementRect: v,
- direction: ''
- });
- });
- }),
- c
- );
- }
- function ki(t, r) {
- return t
- ? t.map(function (e) {
- var n = tr(e) ? e : { pos: e },
- a = n.pos;
- return Ur(a) ? n : R(R({}, n), { pos: gt(a, r) });
- })
- : [];
- }
- function ds(t, r, e, n, a, i, o) {
- a === void 0 && (a = 0),
- i === void 0 && (i = 0),
- o === void 0 && (o = { left: 0, top: 0, right: 0, bottom: 0 });
- var s = [],
- u = o.left,
- l = o.top,
- f = o.bottom,
- c = o.right,
- v = e + c - u,
- p = n + f - l;
- return (
- ki(t, p).forEach(function (d) {
- s.push({
- type: 'horizontal',
- pos: [u, nt(d.pos - i + l, 0.1)],
- size: v,
- className: d.className,
- direction: ''
- });
- }),
- ki(r, v).forEach(function (d) {
- s.push({
- type: 'vertical',
- pos: [nt(d.pos - a + u, 0.1), l],
- size: p,
- className: d.className,
- direction: ''
- });
- }),
- s
- );
- }
- function Ip(t, r) {
- if (!r.length) return [];
- var e = t.props.groupable,
- n = t.state,
- a = n.containerClientRect,
- i = n.rootMatrix,
- o = n.is3d,
- s = n.offsetDelta,
- u = o ? 4 : 3,
- l = B(rp(i, a, u), 2),
- f = l[0],
- c = l[1],
- v = e ? 0 : s[0],
- p = e ? 0 : s[1];
- return r.map(function (d) {
- var g = d.element.getBoundingClientRect(),
- h = g.left - f - v,
- A = g.top - c - p,
- m = A + g.height,
- E = h + g.width,
- y = B(Xr(i, [h, A], u), 2),
- b = y[0],
- C = y[1],
- S = B(Xr(i, [E, m], u), 2),
- D = S[0],
- x = S[1];
- return R(R({}, d), {
- rect: {
- left: b,
- right: D,
- top: C,
- bottom: x,
- center: (b + D) / 2,
- middle: (C + x) / 2
- }
- });
- });
- }
- function Pe(t) {
- var r = t.state,
- e = r.container,
- n = t.props.snapContainer || e;
- if (r.snapContainer === n && r.guidelines && r.guidelines.length) return !1;
- var a = r.containerClientRect,
- i = { left: 0, top: 0, bottom: 0, right: 0 };
- if (e !== n) {
- var o = nr(n, !0);
- if (o) {
- var s = ue(o),
- u = Hi(r, [s.left - a.left, s.top - a.top]),
- l = Hi(r, [s.right - a.right, s.bottom - a.bottom]);
- (i.left = nt(u[0], 1e-5)),
- (i.top = nt(u[1], 1e-5)),
- (i.right = nt(l[0], 1e-5)),
- (i.bottom = nt(l[1], 1e-5));
- }
- }
- return (
- (r.snapContainer = n),
- (r.snapOffset = i),
- (r.guidelines = na(t)),
- (r.enableSnap = !0),
- !0
- );
- }
- function gs(t, r, e, n, a, i) {
- var o = kr(t, r, e, i ? 4 : 3),
- s = Ot(o, n);
- return Ha(o, tt(a, s));
- }
- function Gi(t) {
- return t ? t / N(t) : 0;
- }
- function Tp(t, r, e, n, a, i) {
- var o = i.fixedDirection,
- s = ip(e, o, n),
- u = Na(t, r, e, n),
- l = U(U([], B(Ap(t, r, s, n, a, i)), !1), B(ls(t, u, i)), !1),
- f = Je(l, 0),
- c = Je(l, 1);
- return {
- width: { isBound: f.isBound, offset: f.offset[0] },
- height: { isBound: c.isBound, offset: c.offset[1] }
- };
- }
- function Op(t, r, e, n, a, i, o, s, u) {
- var l = Ot(r, o),
- f = dn(t, s, { vertical: [l[0]], horizontal: [l[1]] }),
- c = f.horizontal.offset,
- v = f.vertical.offset;
- if (nt(v, jn) || nt(c, jn)) {
- var p = B(ir({ datas: u, distX: -v, distY: -c }), 2),
- d = p[0],
- g = p[1],
- h = Math.min(a || 1 / 0, e + o[0] * d),
- A = Math.min(i || 1 / 0, n + o[1] * g);
- return [h - e, A - n];
- }
- return [0, 0];
- }
- function hs(t, r, e, n, a, i, o, s) {
- for (
- var u = jt(t.state), l = t.props.keepRatio, f = 0, c = 0, v = 0;
- v < 2;
- ++v
- ) {
- var p = r(f, c),
- d = Tp(t, p, a, l, o, s),
- g = d.width,
- h = d.height,
- A = g.isBound,
- m = h.isBound,
- E = g.offset,
- y = h.offset;
- if ((v === 1 && (A || (E = 0), m || (y = 0)), v === 0 && o && !A && !m))
- return [0, 0];
- if (l) {
- var b = N(E) * (e ? 1 / e : 1),
- C = N(y) * (n ? 1 / n : 1),
- S = A && m ? b < C : m || (!A && b < C);
- S ? (E = (e * y) / n) : (y = (n * E) / e);
- }
- (f += E), (c += y);
- }
- if (a[0] && a[1]) {
- var D = Sp(t, u, a, i, s),
- x = D.maxWidth,
- w = D.maxHeight,
- T = B(
- Op(
- t,
- r(f, c).map(function (O) {
- return O.map(function (P) {
- return nt(P, jn);
- });
- }),
- e + f,
- n + c,
- x,
- w,
- a,
- o,
- s
- ),
- 2
- ),
- E = T[0],
- y = T[1];
- (f += E), (c += y);
- }
- return [f, c];
- }
- function oe(t) {
- return t < 0 && (t = (t % 360) + 360), (t %= 360), t;
- }
- function Pp(t, r) {
- r = oe(r);
- var e = Math.floor(t / 360),
- n = e * 360 + 360 - r,
- a = e * 360 + r;
- return N(t - n) < N(t - a) ? n : a;
- }
- function Tn(t, r) {
- (t = oe(t)), (r = oe(r));
- var e = oe(t - r);
- return Math.min(e, 360 - e);
- }
- function kp(t, r, e, n) {
- var a,
- i = t.props,
- o = (a = i[As]) !== null && a !== void 0 ? a : 5,
- s = i[ms];
- if ($r(t, 'rotatable')) {
- var u = r.pos1,
- l = r.pos2,
- f = r.pos3,
- c = r.pos4,
- v = r.origin,
- p = (e * Math.PI) / 180,
- d = [u, l, f, c].map(function (y) {
- return tt(y, v);
- }),
- g = d.map(function (y) {
- return Se(y, p);
- }),
- h = U(U([], B(Zv(t, d, g, v, e)), !1), B(cp(t, d, g, v, e)), !1);
- h.sort(function (y, b) {
- return N(y - e) - N(b - e);
- });
- var A = h.length > 0;
- if (A) return { isSnap: A, dist: A ? h[0] : e };
- }
- if (s != null && s.length && o) {
- var m = s.slice().sort(function (y, b) {
- return Tn(y, n) - Tn(b, n);
- }),
- E = m[0];
- if (Tn(E, n) <= o) return { isSnap: !0, dist: e + Pp(n, E) - n };
- }
- return { isSnap: !1, dist: e };
- }
- function Gp(t, r, e, n, a, i, o) {
- if (!$r(t, 'resizable')) return [0, 0];
- var s = o.fixedDirection,
- u = o.nextAllMatrix,
- l = t.state,
- f = l.allMatrix,
- c = l.is3d;
- return hs(
- t,
- function (v, p) {
- return gs(u || f, r + v, e + p, s, a, c);
- },
- r,
- e,
- n,
- a,
- i,
- o
- );
- }
- function Np(t, r, e, n, a) {
- if (!$r(t, 'scalable')) return [0, 0];
- var i = a.startOffsetWidth,
- o = a.startOffsetHeight,
- s = a.fixedPosition,
- u = a.fixedDirection,
- l = a.is3d,
- f = hs(
- t,
- function (c, v) {
- return gs(Fv(a, ft(r, [c / i, v / o])), i, o, u, s, l);
- },
- i,
- o,
- e,
- s,
- n,
- a
- );
- return [f[0] / i, f[1] / o];
- }
- function Fp(t, r) {
- r.absolutePoses = jt(t.state);
- }
- function Ni(t) {
- var r = [];
- return (
- t.forEach(function (e) {
- e.guidelineInfos.forEach(function (n) {
- var a = n.guideline;
- Kt(r, function (i) {
- return i.guideline === a;
- }) || ((a.direction = ''), r.push({ guideline: a, posInfo: e }));
- });
- }),
- r.map(function (e) {
- var n = e.guideline,
- a = e.posInfo;
- return R(R({}, n), { direction: a.direction });
- })
- );
- }
- function Fi(t, r, e, n, a, i) {
- var o = Oa(vn(t, i), r, e),
- s = o.vertical,
- u = o.horizontal;
- s.forEach(function (v) {
- v.isBound && n.push({ type: 'bounds', pos: v.pos });
- }),
- u.forEach(function (v) {
- v.isBound && a.push({ type: 'bounds', pos: v.pos });
- });
- var l = vp(t),
- f = l.vertical,
- c = l.horizontal;
- f.forEach(function (v) {
- lr(n, function (p) {
- var d = p.type,
- g = p.pos;
- return d === 'bounds' && g === v;
- }) >= 0 || n.push({ type: 'bounds', pos: v });
- }),
- c.forEach(function (v) {
- lr(a, function (p) {
- var d = p.type,
- g = p.pos;
- return d === 'bounds' && g === v;
- }) >= 0 || a.push({ type: 'bounds', pos: v });
- });
- }
- var zp = Va('', ['resizable', 'scalable']),
- As = 'snapRotationThreshold',
- ms = 'snapRotationDegrees',
- Hp = {
- name: 'snappable',
- dragRelation: 'strong',
- props: [
- 'snappable',
- 'snapContainer',
- 'snapDirections',
- 'elementSnapDirections',
- 'snapGap',
- 'snapGridWidth',
- 'snapGridHeight',
- 'isDisplaySnapDigit',
- 'isDisplayInnerSnapDigit',
- 'isDisplayGridGuidelines',
- 'snapDigit',
- 'snapThreshold',
- 'snapRenderThreshold',
- As,
- ms,
- 'horizontalGuidelines',
- 'verticalGuidelines',
- 'elementGuidelines',
- 'bounds',
- 'innerBounds',
- 'snapDistFormat',
- 'maxSnapElementGuidelineDistance',
- 'maxSnapElementGapDistance'
- ],
- events: ['snap'],
- css: [
- ':host {\n--bounds-color: #d66;\n}\n.guideline {\npointer-events: none;\nz-index: 2;\n}\n.guideline.bounds {\nbackground: #d66;\nbackground: var(--bounds-color);\n}\n.guideline-group {\nposition: absolute;\ntop: 0;\nleft: 0;\n}\n.guideline-group .size-value {\nposition: absolute;\ncolor: #f55;\nfont-size: 12px;\nfont-size: calc(12px * var(--zoom));\nfont-weight: bold;\n}\n.guideline-group.horizontal .size-value {\ntransform-origin: 50% 100%;\ntransform: translateX(-50%);\nleft: 50%;\nbottom: 5px;\nbottom: calc(2px + 3px * var(--zoom));\n}\n.guideline-group.vertical .size-value {\ntransform-origin: 0% 50%;\ntop: 50%;\ntransform: translateY(-50%);\nleft: 5px;\nleft: calc(2px + 3px * var(--zoom));\n}\n.guideline.gap {\nbackground: #f55;\n}\n.size-value.gap {\ncolor: #f55;\n}\n'
- ],
- render: function (t, r) {
- var e = t.state,
- n = e.top,
- a = e.left,
- i = e.pos1,
- o = e.pos2,
- s = e.pos3,
- u = e.pos4,
- l = e.snapRenderInfo,
- f = t.props.snapRenderThreshold,
- c = f === void 0 ? 1 : f;
- if (!l || !l.render || !$r(t, '')) return [];
- e.guidelines = na(t);
- var v = Math.min(i[0], o[0], s[0], u[0]),
- p = Math.min(i[1], o[1], s[1], u[1]),
- d = l.externalPoses || [],
- g = jt(t.state),
- h = [],
- A = [],
- m = [],
- E = [],
- y = [],
- b = qt(g),
- C = b.width,
- S = b.height,
- D = b.top,
- x = b.left,
- w = b.bottom,
- T = b.right,
- I = {
- left: x,
- right: T,
- top: D,
- bottom: w,
- center: (x + T) / 2,
- middle: (D + w) / 2
- },
- M = d.length > 0,
- O = M ? qt(d) : {};
- if (!l.request) {
- if ((l.direction && y.push(ap(t, g, l.direction, c)), l.snap)) {
- var P = qt(g);
- l.center &&
- ((P.middle = (P.top + P.bottom) / 2),
- (P.center = (P.left + P.right) / 2)),
- y.push(xi(t, P, c));
- }
- M &&
- (l.center &&
- ((O.middle = (O.top + O.bottom) / 2),
- (O.center = (O.left + O.right) / 2)),
- y.push(xi(t, O, c))),
- y.forEach(function (L) {
- var V = L.vertical.posInfos,
- F = L.horizontal.posInfos;
- h.push.apply(
- h,
- U(
- [],
- B(
- V.filter(function (Q) {
- var j = Q.guidelineInfos;
- return j.some(function (K) {
- var X = K.guideline;
- return !X.hide;
- });
- }).map(function (Q) {
- return { type: 'snap', pos: Q.pos };
- })
- ),
- !1
- )
- ),
- A.push.apply(
- A,
- U(
- [],
- B(
- F.filter(function (Q) {
- var j = Q.guidelineInfos;
- return j.some(function (K) {
- var X = K.guideline;
- return !X.hide;
- });
- }).map(function (Q) {
- return { type: 'snap', pos: Q.pos };
- })
- ),
- !1
- )
- ),
- m.push.apply(m, U([], B(Ni(V)), !1)),
- E.push.apply(E, U([], B(Ni(F)), !1));
- });
- }
- Fi(t, [x, T], [D, w], h, A),
- M &&
- Fi(t, [O.left, O.right], [O.top, O.bottom], h, A, l.externalBounds);
- var z = U(U([], B(m), !1), B(E), !1),
- H = z.filter(function (L) {
- return L.element && !L.gapRects;
- }),
- G = z
- .filter(function (L) {
- return L.gapRects;
- })
- .sort(function (L, V) {
- return L.gap - V.gap;
- });
- return (
- Y(
- t,
- 'onSnap',
- {
- guidelines: z.filter(function (L) {
- var V = L.element;
- return !V;
- }),
- elements: H,
- gaps: G
- },
- !0
- ),
- U(
- U(
- U(
- U(
- U(
- U([], B(xp(t, H, [v, p], I, r)), !1),
- B(wp(t, G, [v, p], I, r)),
- !1
- ),
- B(Pi(t, 'horizontal', E, [a, n], I, r)),
- !1
- ),
- B(Pi(t, 'vertical', m, [a, n], I, r)),
- !1
- ),
- B(Oi(t, 'horizontal', A, v, n, C, 0, r)),
- !1
- ),
- B(Oi(t, 'vertical', h, p, a, S, 1, r)),
- !1
- )
- );
- },
- dragStart: function (t, r) {
- (t.state.snapRenderInfo = { request: r.isRequest, snap: !0, center: !0 }),
- Pe(t);
- },
- drag: function (t) {
- var r = t.state;
- Pe(t) || (r.guidelines = na(t)),
- r.snapRenderInfo && (r.snapRenderInfo.render = !0);
- },
- pinchStart: function (t) {
- this.unset(t);
- },
- dragEnd: function (t) {
- this.unset(t);
- },
- dragControlCondition: function (t, r) {
- if (zp(t, r) || ea(t, r)) return !0;
- if (!r.isRequest && r.inputEvent)
- return Tt(r.inputEvent.target, $('snap-control'));
- },
- dragControlStart: function (t) {
- (t.state.snapRenderInfo = null), Pe(t);
- },
- dragControl: function (t) {
- this.drag(t);
- },
- dragControlEnd: function (t) {
- this.unset(t);
- },
- dragGroupStart: function (t, r) {
- this.dragStart(t, r);
- },
- dragGroup: function (t) {
- this.drag(t);
- },
- dragGroupEnd: function (t) {
- this.unset(t);
- },
- dragGroupControlStart: function (t) {
- (t.state.snapRenderInfo = null), Pe(t);
- },
- dragGroupControl: function (t) {
- this.drag(t);
- },
- dragGroupControlEnd: function (t) {
- this.unset(t);
- },
- unset: function (t) {
- var r = t.state;
- (r.enableSnap = !1),
- (r.guidelines = []),
- (r.snapRenderInfo = null),
- (r.elementRects = []);
- }
- };
- function Lp(t, r) {
- return [t[0] * r[0], t[1] * r[1]];
- }
- function $() {
- for (var t = [], r = 0; r < arguments.length; r++) t[r] = arguments[r];
- return Pf.apply(void 0, U([Ba], B(t), !1));
- }
- function Ss(t) {
- t();
- }
- function Up(t) {
- return !t || t === 'none' ? [1, 0, 0, 1, 0, 0] : tr(t) ? t : Qe(t);
- }
- function se(t, r, e) {
- return We(
- r,
- Ir(e, r),
- t,
- Ir(
- e.map(function (n) {
- return -n;
- }),
- r
- )
- );
- }
- function Vp(t, r, e) {
- if (r === '%') {
- var n = za(t.ownerSVGElement);
- return n[e ? 'width' : 'height'] / 100;
- }
- return 1;
- }
- function Wp(t) {
- var r = Yp(La(t, ':before'));
- return r.map(function (e, n) {
- var a = ge(e),
- i = a.value,
- o = a.unit;
- return i * Vp(t, o, n === 0);
- });
- }
- function Ze(t) {
- return t ? t.split(' ') : ['0', '0'];
- }
- function Yp(t) {
- return Ze(t.transformOrigin);
- }
- function Cs(t) {
- var r = Yt(t),
- e = r('transform');
- if (e && e !== 'none') return e;
- if ('transform' in t) {
- var n = t.transform,
- a = n.baseVal;
- if (!a) return '';
- var i = a.length;
- if (!i) return '';
- for (
- var o = [],
- s = function (l) {
- var f = a[l].matrix;
- o.push(
- 'matrix('.concat(
- ['a', 'b', 'c', 'd', 'e', 'f']
- .map(function (c) {
- return f[c];
- })
- .join(', '),
- ')'
- )
- );
- },
- u = 0;
- u < i;
- ++u
- )
- s(u);
- return o.join(' ');
- }
- return '';
- }
- function pe(t, r, e, n, a) {
- var i,
- o,
- s = ma(t) || Cr(t),
- u = !1,
- l,
- f;
- if (!t || e) l = t;
- else {
- var c =
- (i = t == null ? void 0 : t.assignedSlot) === null || i === void 0
- ? void 0
- : i.parentElement,
- v = t.parentElement;
- c ? ((u = !0), (f = v), (l = c)) : (l = v);
- }
- for (
- var p = !1,
- d = t === r || l === r,
- g = 'relative',
- h = 1,
- A = parseFloat(a == null ? void 0 : a('zoom')) || 1,
- m = a == null ? void 0 : a('position');
- l && l !== s;
- ) {
- r === l && (d = !0);
- var E = Yt(l),
- y = l.tagName.toLowerCase(),
- b = Cs(l),
- C = E('willChange'),
- S = parseFloat(E('zoom')) || 1;
- if (((g = E('position')), n && S !== 1)) {
- h = S;
- break;
- }
- if (
- (!e && n && A !== 1 && m && m !== 'absolute') ||
- y === 'svg' ||
- g !== 'static' ||
- (b && b !== 'none') ||
- C === 'transform'
- )
- break;
- var D =
- (o = t == null ? void 0 : t.assignedSlot) === null || o === void 0
- ? void 0
- : o.parentNode,
- x = l.parentNode;
- D && ((u = !0), (f = x));
- var w = x;
- if (w && w.nodeType === 11) {
- (l = w.host), (p = !0), (g = Yt(l)('position'));
- break;
- }
- (l = w), (g = 'relative');
- }
- return {
- offsetZoom: h,
- hasSlot: u,
- parentSlotElement: f,
- isCustomElement: p,
- isStatic: g === 'static',
- isEnd: d || !l || l === s,
- offsetParent: l || s
- };
- }
- function Qp(t, r) {
- var e,
- n = t.tagName.toLowerCase(),
- a = t.offsetLeft,
- i = t.offsetTop,
- o = Yt(t),
- s = nn(a),
- u = !s,
- l,
- f;
- return (
- !u && n !== 'svg'
- ? ((l = Uo
- ? Wp(t)
- : Ze(o('transformOrigin')).map(function (c) {
- return parseFloat(c);
- })),
- (f = l.slice()),
- (u = !0),
- (e = B(Kp(t, l, t === r && r.tagName.toLowerCase() === 'g'), 4)),
- (a = e[0]),
- (i = e[1]),
- (l[0] = e[2]),
- (l[1] = e[3]))
- : ((l = Ze(o('transformOrigin')).map(function (c) {
- return parseFloat(c);
- })),
- (f = l.slice())),
- {
- tagName: n,
- isSVG: s,
- hasOffset: u,
- offset: [a || 0, i || 0],
- origin: l,
- targetOrigin: f
- }
- );
- }
- function Es(t, r) {
- var e = Yt(t),
- n = Yt(Cr(t)),
- a = n('position');
- if (!r && (!a || a === 'static')) return [0, 0];
- var i = parseInt(n('marginLeft'), 10),
- o = parseInt(n('marginTop'), 10);
- return (
- e('position') === 'absolute' &&
- ((e('top') !== 'auto' || e('bottom') !== 'auto') && (o = 0),
- (e('left') !== 'auto' || e('right') !== 'auto') && (i = 0)),
- [i, o]
- );
- }
- function aa(t) {
- t.forEach(function (r) {
- var e = r.matrix;
- e && (r.matrix = rr(e, 3, 4));
- });
- }
- function Xp(t) {
- for (var r = t.parentElement, e = !1, n = Cr(t); r; ) {
- var a = La(r).transform;
- if (a && a !== 'none') {
- e = !0;
- break;
- }
- if (r === n) break;
- r = r.parentElement;
- }
- return { fixedContainer: r || n, hasTransform: e };
- }
- function gn(t, r) {
- return (
- r === void 0 && (r = t.length > 9),
- ''.concat(r ? 'matrix3d' : 'matrix', '(').concat(Po(t, !r).join(','), ')')
- );
- }
- function za(t) {
- var r = t.clientWidth,
- e = t.clientHeight;
- if (!t)
- return { x: 0, y: 0, width: 0, height: 0, clientWidth: r, clientHeight: e };
- var n = t.viewBox,
- a = (n && n.baseVal) || { x: 0, y: 0, width: 0, height: 0 };
- return {
- x: a.x,
- y: a.y,
- width: a.width || r,
- height: a.height || e,
- clientWidth: r,
- clientHeight: e
- };
- }
- function qp(t, r) {
- var e,
- n = za(t),
- a = n.width,
- i = n.height,
- o = n.clientWidth,
- s = n.clientHeight,
- u = o / a,
- l = s / i,
- f = t.preserveAspectRatio.baseVal,
- c = f.align,
- v = f.meetOrSlice,
- p = [0, 0],
- d = [u, l],
- g = [0, 0];
- if (c !== 1) {
- var h = (c - 2) % 3,
- A = Math.floor((c - 2) / 3);
- (p[0] = (a * h) / 2), (p[1] = (i * A) / 2);
- var m = v === 2 ? Math.max(l, u) : Math.min(u, l);
- (d[0] = m),
- (d[1] = m),
- (g[0] = ((o - a) / 2) * h),
- (g[1] = ((s - i) / 2) * A);
- }
- var E = Ye(d, r);
- return (
- (e = B(g, 2)),
- (E[r * (r - 1)] = e[0]),
- (E[r * (r - 1) + 1] = e[1]),
- se(E, r, p)
- );
- }
- function Kp(t, r, e) {
- if (!t.getBBox || (!e && t.tagName.toLowerCase() === 'g'))
- return [0, 0, 0, 0];
- var n = t.getBBox(),
- a = za(t.ownerSVGElement),
- i = n.x - a.x,
- o = n.y - a.y;
- return [i, o, r[0] - i, r[1] - o];
- }
- function Ct(t, r, e) {
- return Nt(t, Mr(r, e), e);
- }
- function kr(t, r, e, n) {
- return [
- [0, 0],
- [r, 0],
- [0, e],
- [r, e]
- ].map(function (a) {
- return Ct(t, a, n);
- });
- }
- function qt(t) {
- var r = t.map(function (l) {
- return l[0];
- }),
- e = t.map(function (l) {
- return l[1];
- }),
- n = Math.min.apply(Math, U([], B(r), !1)),
- a = Math.min.apply(Math, U([], B(e), !1)),
- i = Math.max.apply(Math, U([], B(r), !1)),
- o = Math.max.apply(Math, U([], B(e), !1)),
- s = i - n,
- u = o - a;
- return { left: n, top: a, right: i, bottom: o, width: s, height: u };
- }
- function zi(t, r, e, n) {
- var a = kr(t, r, e, n);
- return qt(a);
- }
- function Jp(t, r, e, n, a) {
- var i,
- o = t.target,
- s = t.origin,
- u = r.matrix,
- l = Ds(o),
- f = l.offsetWidth,
- c = l.offsetHeight,
- v = e.getBoundingClientRect(),
- p = [0, 0];
- e === Cr(e) && (p = Es(o, !0));
- for (
- var d = o.getBoundingClientRect(),
- g = d.left - v.left + e.scrollLeft - (e.clientLeft || 0) + p[0],
- h = d.top - v.top + e.scrollTop - (e.clientTop || 0) + p[1],
- A = d.width,
- m = d.height,
- E = We(n, a, u),
- y = zi(E, f, c, n),
- b = y.left,
- C = y.top,
- S = y.width,
- D = y.height,
- x = Ct(E, s, n),
- w = tt(x, [b, C]),
- T = [g + (w[0] * A) / S, h + (w[1] * m) / D],
- I = [0, 0],
- M = 0;
- ++M < 10;
- ) {
- var O = ar(a, n);
- (i = B(tt(Ct(O, T, n), Ct(O, x, n)), 2)), (I[0] = i[0]), (I[1] = i[1]);
- var P = We(n, a, Ir(I, n), u),
- z = zi(P, f, c, n),
- H = z.left,
- G = z.top,
- L = H - g,
- V = G - h;
- if (N(L) < 2 && N(V) < 2) break;
- (T[0] -= L), (T[1] -= V);
- }
- return I.map(function (F) {
- return Math.round(F);
- });
- }
- function jp(t, r, e) {
- var n = t.length === 16,
- a = n ? 4 : 3,
- i = r.map(function (u) {
- return Ct(t, u, a);
- }),
- o = e.left,
- s = e.top;
- return i.map(function (u) {
- return [u[0] + o, u[1] + s];
- });
- }
- function Jt(t) {
- return Math.sqrt(t[0] * t[0] + t[1] * t[1]);
- }
- function ys(t, r) {
- return Jt([r[0] - t[0], r[1] - t[1]]);
- }
- function ne(t, r, e, n) {
- e === void 0 && (e = 1), n === void 0 && (n = Et(t, r));
- var a = ys(t, r);
- return {
- transform: 'translateY(-50%) translate('
- .concat(t[0], 'px, ')
- .concat(t[1], 'px) rotate(')
- .concat(n, 'rad) scaleY(')
- .concat(e, ')'),
- width: ''.concat(a, 'px')
- };
- }
- function _e(t, r) {
- for (var e = [], n = 2; n < arguments.length; n++) e[n - 2] = arguments[n];
- var a = e.length,
- i =
- e.reduce(function (s, u) {
- return s + u[0];
- }, 0) / a,
- o =
- e.reduce(function (s, u) {
- return s + u[1];
- }, 0) / a;
- return {
- transform: 'translateZ(0px) translate('
- .concat(i, 'px, ')
- .concat(o, 'px) rotate(')
- .concat(t, 'rad) scale(')
- .concat(r, ')')
- };
- }
- function Or(t, r) {
- var e = t[r];
- return tr(e) ? R(R({}, t), e) : t;
- }
- function Ds(t) {
- var r = t && !nn(t.offsetWidth),
- e = 0,
- n = 0,
- a = 0,
- i = 0,
- o = 0,
- s = 0,
- u = 0,
- l = 0,
- f = 0,
- c = 0,
- v = 0,
- p = 0,
- d = 1 / 0,
- g = 1 / 0,
- h = 1 / 0,
- A = 1 / 0,
- m = 0,
- E = 0,
- y = !1;
- if (t)
- if (!r && t.tagName.toLowerCase() !== 'svg') {
- var b = t.getBBox();
- (y = !0),
- (e = b.width),
- (n = b.height),
- (o = e),
- (s = n),
- (u = e),
- (l = n),
- (a = e),
- (i = n);
- } else {
- var C = Yt(t),
- S = t.style,
- D = C('boxSizing') === 'border-box',
- x = parseFloat(C('borderLeftWidth')) || 0,
- w = parseFloat(C('borderRightWidth')) || 0,
- T = parseFloat(C('borderTopWidth')) || 0,
- I = parseFloat(C('borderBottomWidth')) || 0,
- M = parseFloat(C('paddingLeft')) || 0,
- O = parseFloat(C('paddingRight')) || 0,
- P = parseFloat(C('paddingTop')) || 0,
- z = parseFloat(C('paddingBottom')) || 0,
- H = M + O,
- G = P + z,
- L = x + w,
- V = T + I,
- F = H + L,
- Q = G + V,
- j = C('position'),
- K = 0,
- X = 0;
- if ('clientLeft' in t) {
- var W = null;
- if (j === 'absolute') {
- var _ = pe(t, Cr(t));
- W = _.offsetParent;
- } else W = t.parentElement;
- if (W) {
- var rt = Yt(W);
- (K = parseFloat(rt('width'))), (X = parseFloat(rt('height')));
- }
- }
- (f = Math.max(H, gt(C('minWidth'), K) || 0)),
- (c = Math.max(G, gt(C('minHeight'), X) || 0)),
- (d = gt(C('maxWidth'), K)),
- (g = gt(C('maxHeight'), X)),
- isNaN(d) && (d = 1 / 0),
- isNaN(g) && (g = 1 / 0),
- (m = gt(S.width, 0) || 0),
- (E = gt(S.height, 0) || 0),
- (o = parseFloat(C('width')) || 0),
- (s = parseFloat(C('height')) || 0),
- (u = N(o - m) < 1 ? Nn(f, m || o, d) : o),
- (l = N(s - E) < 1 ? Nn(c, E || s, g) : s),
- (e = u),
- (n = l),
- (a = u),
- (i = l),
- D
- ? ((h = d), (A = g), (v = f), (p = c), (u = e - F), (l = n - Q))
- : ((h = d + F),
- (A = g + Q),
- (v = f + F),
- (p = c + Q),
- (e = u + F),
- (n = l + Q)),
- (a = u + H),
- (i = l + G);
- }
- return {
- svg: y,
- offsetWidth: e,
- offsetHeight: n,
- clientWidth: a,
- clientHeight: i,
- contentWidth: u,
- contentHeight: l,
- inlineCSSWidth: m,
- inlineCSSHeight: E,
- cssWidth: o,
- cssHeight: s,
- minWidth: f,
- minHeight: c,
- maxWidth: d,
- maxHeight: g,
- minOffsetWidth: v,
- minOffsetHeight: p,
- maxOffsetWidth: h,
- maxOffsetHeight: A
- };
- }
- function bs(t, r) {
- return Et(r > 0 ? t[0] : t[1], r > 0 ? t[1] : t[0]);
- }
- function ke() {
- return {
- left: 0,
- top: 0,
- width: 0,
- height: 0,
- right: 0,
- bottom: 0,
- clientLeft: 0,
- clientTop: 0,
- clientWidth: 0,
- clientHeight: 0,
- scrollWidth: 0,
- scrollHeight: 0
- };
- }
- function xs(t, r) {
- var e = t === Cr(t) || t === ma(t),
- n = {
- clientLeft: t.clientLeft,
- clientTop: t.clientTop,
- clientWidth: t.clientWidth,
- clientHeight: t.clientHeight,
- scrollWidth: t.scrollWidth,
- scrollHeight: t.scrollHeight,
- overflow: !1
- };
- return (
- e &&
- ((n.clientHeight = Math.max(r.height, n.clientHeight)),
- (n.scrollHeight = Math.max(r.height, n.scrollHeight))),
- (n.overflow = Yt(t)('overflow') !== 'visible'),
- R(R({}, r), n)
- );
- }
- function On(t, r, e, n) {
- var a = t.left,
- i = t.right,
- o = t.top,
- s = t.bottom,
- u = r.top,
- l = r.left,
- f = {
- left: l + a,
- top: u + o,
- right: l + i,
- bottom: u + s,
- width: i - a,
- height: s - o
- };
- return e && n ? xs(e, f) : f;
- }
- function ue(t, r) {
- var e = 0,
- n = 0,
- a = 0,
- i = 0;
- if (t) {
- var o = t.getBoundingClientRect();
- (e = o.left), (n = o.top), (a = o.width), (i = o.height);
- }
- var s = { left: e, top: n, width: a, height: i, right: e + a, bottom: n + i };
- return t && r ? xs(t, s) : s;
- }
- function Zp(t) {
- var r = t.props,
- e = r.groupable,
- n = r.svgOrigin,
- a = t.getState(),
- i = a.offsetWidth,
- o = a.offsetHeight,
- s = a.svg,
- u = a.transformOrigin;
- return !e && s && n ? Ya(n, i, o) : u;
- }
- function ws(t, r, e, n) {
- var a;
- if (t) a = t;
- else if (r) a = [0, 0];
- else {
- var i = e.target;
- a = Rs(i, n);
- }
- return a;
- }
- function Rs(t, r) {
- if (t) {
- var e = t.getAttribute('data-rotation') || '',
- n = t.getAttribute('data-direction');
- if (((r.deg = e), !!n)) {
- var a = [0, 0];
- return (
- n.indexOf('w') > -1 && (a[0] = -1),
- n.indexOf('e') > -1 && (a[0] = 1),
- n.indexOf('n') > -1 && (a[1] = -1),
- n.indexOf('s') > -1 && (a[1] = 1),
- a
- );
- }
- }
- }
- function Ha(t, r) {
- return [ft(r, t[0]), ft(r, t[1]), ft(r, t[2]), ft(r, t[3])];
- }
- function jt(t) {
- var r = t.left,
- e = t.top,
- n = t.pos1,
- a = t.pos2,
- i = t.pos3,
- o = t.pos4;
- return Ha([n, a, i, o], [r, e]);
- }
- function ia(t, r) {
- t[r ? 'controlAbles' : 'targetAbles'].forEach(function (e) {
- e.unset && e.unset(t);
- });
- }
- function Hr(t, r) {
- var e = r ? 'controlGesto' : 'targetGesto',
- n = t[e];
- (n == null ? void 0 : n.isIdle()) === !1 && ia(t, r),
- n == null || n.unset(),
- (t[e] = null);
- }
- function Lt(t, r) {
- if (r) {
- var e = _r(r);
- e.nextStyle = R(R({}, e.nextStyle), t);
- }
- return {
- style: t,
- cssText: fr(t)
- .map(function (n) {
- return ''.concat(Le(n, '-'), ': ').concat(t[n], ';');
- })
- .join('')
- };
- }
- function Bs(t, r, e) {
- var n = r.afterTransform || r.transform;
- return R(R({}, Lt(R(R(R({}, t.style), r.style), { transform: n }), e)), {
- afterTransform: n,
- transform: t.transform
- });
- }
- function ot(t, r, e, n) {
- var a = r.datas;
- a.datas || (a.datas = {});
- var i = R(R({}, e), {
- target: t.state.target,
- clientX: r.clientX,
- clientY: r.clientY,
- inputEvent: r.inputEvent,
- currentTarget: t,
- moveable: t,
- datas: a.datas,
- isFirstDrag: !!r.isFirstDrag,
- isTrusted: r.isTrusted !== !1,
- stopAble: function () {
- a.isEventStart = !1;
- },
- stopDrag: function () {
- var o;
- (o = r.stop) === null || o === void 0 || o.call(r);
- }
- });
- return a.isStartEvent ? n || (a.lastEvent = i) : (a.isStartEvent = !0), i;
- }
- function Qt(t, r, e) {
- var n = r.datas,
- a = 'isDrag' in e ? e.isDrag : r.isDrag;
- return (
- n.datas || (n.datas = {}),
- R(R({ isDrag: a }, e), {
- moveable: t,
- target: t.state.target,
- clientX: r.clientX,
- clientY: r.clientY,
- inputEvent: r.inputEvent,
- currentTarget: t,
- lastEvent: n.lastEvent,
- isDouble: r.isDouble,
- datas: n.datas,
- isFirstDrag: !!r.isFirstDrag
- })
- );
- }
- function hn(t, r, e) {
- t._emitter.on(r, e);
- }
- function Y(t, r, e, n) {
- return t.triggerEvent(r, e, n);
- }
- function La(t, r) {
- return hr(t).getComputedStyle(t, r);
- }
- function Ge(t, r, e) {
- var n = {},
- a = {};
- return t.filter(function (i) {
- var o = i.name;
- if (
- n[o] ||
- !r.some(function (s) {
- return i[s];
- })
- )
- return !1;
- if (!e && i.ableGroup) {
- if (a[i.ableGroup]) return !1;
- a[i.ableGroup] = !0;
- }
- return (n[o] = !0), !0;
- });
- }
- function oa(t, r) {
- return t === r || (t == null && r == null);
- }
- function _p() {
- for (var t = [], r = 0; r < arguments.length; r++) t[r] = arguments[r];
- for (var e = t.length - 1, n = 0; n < e; ++n) {
- var a = t[n];
- if (!nn(a)) return a;
- }
- return t[e];
- }
- function Ms(t, r) {
- var e = [],
- n = [];
- return (
- t.forEach(function (a, i) {
- var o = r(a, i, t),
- s = n.indexOf(o),
- u = e[s] || [];
- s === -1 && (n.push(o), e.push(u)), u.push(a);
- }),
- e
- );
- }
- function $p(t, r) {
- var e = [],
- n = {};
- return (
- t.forEach(function (a, i) {
- var o = r(a, i, t),
- s = n[o];
- s || ((s = []), (n[o] = s), e.push(s)), s.push(a);
- }),
- e
- );
- }
- function Is(t) {
- return t.reduce(function (r, e) {
- return r.concat(e);
- }, []);
- }
- function Qr() {
- for (var t = [], r = 0; r < arguments.length; r++) t[r] = arguments[r];
- return (
- t.sort(function (e, n) {
- return N(n) - N(e);
- }),
- t[0]
- );
- }
- function Xr(t, r, e) {
- return Nt(ar(t, e), Mr(r, e), e);
- }
- function Ts(t, r) {
- var e,
- n = t.is3d,
- a = t.rootMatrix,
- i = n ? 4 : 3;
- return (
- (e = B(Xr(a, [r.distX, r.distY], i), 2)),
- (r.distX = e[0]),
- (r.distY = e[1]),
- r
- );
- }
- function Ne(t, r, e, n) {
- if (!e[0] && !e[1]) return r;
- var a = Ct(t, [Gi(e[0]), 0], n),
- i = Ct(t, [0, Gi(e[1])], n),
- o = Ct(t, [e[0] / Jt(a), e[1] / Jt(i)], n);
- return ft(r, o);
- }
- function Zt(t, r, e) {
- return e ? ''.concat((t / r) * 100, '%') : ''.concat(t, 'px');
- }
- function $e(t) {
- return N(t) <= Ut ? 0 : t;
- }
- function Ua(t) {
- return function (r) {
- if (!r.isDragging(t)) return '';
- var e = Yv(r, t),
- n = e.deg;
- return n ? $('view-control-rotation'.concat(n)) : '';
- };
- }
- function Va(t, r) {
- return (
- r === void 0 && (r = [t]),
- function (e, n) {
- if (n.isRequest)
- return r.some(function (i) {
- return n.requestAble === i;
- })
- ? n.parentDirection
- : !1;
- var a = n.inputEvent.target;
- return Tt(a, $('direction')) && (!t || Tt(a, $(t)));
- }
- );
- }
- function td(t, r) {
- var e,
- n = Vr(t),
- a = t.slice(0, r < 0 ? void 0 : r),
- i = t.slice(0, r < 0 ? void 0 : r + 1),
- o = t[r] || '',
- s = r < 0 ? [] : t.slice(r),
- u = r < 0 ? [] : t.slice(r + 1),
- l = n.slice(0, r < 0 ? void 0 : r),
- f = n.slice(0, r < 0 ? void 0 : r + 1),
- c = (e = n[r]) !== null && e !== void 0 ? e : Vr([''])[0],
- v = r < 0 ? [] : n.slice(r),
- p = r < 0 ? [] : n.slice(r + 1),
- d = c ? [c] : [],
- g = Nr(l),
- h = Nr(f),
- A = Nr(v),
- m = Nr(p),
- E = ht(g, A, 4);
- return {
- transforms: t,
- beforeFunctionMatrix: g,
- beforeFunctionMatrix2: h,
- targetFunctionMatrix: Nr(d),
- afterFunctionMatrix: A,
- afterFunctionMatrix2: m,
- allFunctionMatrix: E,
- beforeFunctions: l,
- beforeFunctions2: f,
- targetFunction: d[0],
- afterFunctions: v,
- afterFunctions2: p,
- beforeFunctionTexts: a,
- beforeFunctionTexts2: i,
- targetFunctionText: o,
- afterFunctionTexts: s,
- afterFunctionTexts2: u
- };
- }
- function rd(t) {
- return !t || !tr(t) || jr(t) ? !1 : Rt(t) || 'length' in t;
- }
- function nr(t, r) {
- return t
- ? jr(t)
- ? t
- : Wt(t)
- ? r
- ? document.querySelector(t)
- : t
- : ga(t)
- ? t()
- : co(t)
- ? t
- : 'current' in t
- ? t.current
- : t
- : null;
- }
- function Wa(t, r) {
- if (!t) return [];
- var e = rd(t) ? [].slice.call(t) : [t];
- return e.reduce(function (n, a) {
- return Wt(a) && r
- ? U(U([], B(n), !1), B([].slice.call(document.querySelectorAll(a))), !1)
- : (Rt(a) ? n.push(Wa(a, r)) : n.push(nr(a, r)), n);
- }, []);
- }
- function ed(t, r, e) {
- var n = (Et(t, r) / Math.PI) * 180;
- return (n = e >= 0 ? n : 180 - n), (n = n >= 0 ? n : 360 + n), n;
- }
- function Hi(t, r) {
- var e = t.rootMatrix,
- n = t.is3d,
- a = n ? 4 : 3,
- i = ar(e, a);
- return (
- n || (i = rr(i, 3, 4)), (i[12] = 0), (i[13] = 0), (i[14] = 0), zc(i, r)
- );
- }
- function Os(t, r, e, n, a) {
- var i = B(t, 2),
- o = i[0],
- s = i[1],
- u = 0,
- l = 0;
- if (a && o && s) {
- var f = Et([0, 0], r),
- c = Et([0, 0], n),
- v = Jt(r),
- p = Math.cos(f - c) * v;
- if (!n[0]) (l = p), (u = l * e);
- else if (!n[1]) (u = p), (l = u / e);
- else {
- var d = n[0] * o,
- g = n[1] * s,
- h = Math.atan2(d + r[0], g + r[1]),
- A = Math.atan2(d, g);
- h < 0 && (h += Math.PI * 2), A < 0 && (A += Math.PI * 2);
- var m = 0;
- N(h - A) < Math.PI / 2 || N(h - A) > (Math.PI / 2) * 3 || (A += Math.PI),
- (m = h - A),
- m > Math.PI * 2
- ? (m -= Math.PI * 2)
- : m > Math.PI
- ? (m = 2 * Math.PI - m)
- : m < -Math.PI && (m = -2 * Math.PI - m);
- var E = Jt([d + r[0], g + r[1]]) * Math.cos(m);
- (u = E * Math.sin(A) - d),
- (l = E * Math.cos(A) - g),
- n[0] < 0 && (u *= -1),
- n[1] < 0 && (l *= -1);
- }
- } else (u = n[0] * r[0]), (l = n[1] * r[1]);
- return [u, l];
- }
- function Ps(t, r, e, n) {
- var a,
- i = e.ratio,
- o = e.startOffsetWidth,
- s = e.startOffsetHeight,
- u = 0,
- l = 0,
- f = n.distX,
- c = n.distY,
- v = n.pinchScale,
- p = n.parentDistance,
- d = n.parentDist,
- g = n.parentScale,
- h = e.fixedDirection,
- A = [0, 1].map(function (S) {
- return N(t[S] - h[S]);
- }),
- m = [0, 1].map(function (S) {
- var D = A[S];
- return D !== 0 && (D = 2 / D), D;
- });
- if (d) (u = d[0]), (l = d[1]), r && (u ? l || (l = u / i) : (u = l * i));
- else if (Ur(v)) (u = (v - 1) * o), (l = (v - 1) * s);
- else if (g) (u = (g[0] - 1) * o), (l = (g[1] - 1) * s);
- else if (p) {
- var E = o * A[0],
- y = s * A[1],
- b = Jt([E, y]);
- (u = (p / b) * E * m[0]), (l = (p / b) * y * m[1]);
- } else {
- var C = ir({ datas: e, distX: f, distY: c });
- (C = m.map(function (S, D) {
- return C[D] * S;
- })),
- (a = B(Os([o, s], C, i, t, r), 2)),
- (u = a[0]),
- (l = a[1]);
- }
- return { distWidth: u, distHeight: l };
- }
- function sa(t, r) {
- if (r) {
- if (t === 'left') return { x: '0%', y: '50%' };
- if (t === 'top') return { x: '50%', y: '50%' };
- if (t === 'center') return { x: '50%', y: '50%' };
- if (t === 'right') return { x: '100%', y: '50%' };
- if (t === 'bottom') return { x: '50%', y: '100%' };
- var e = B(t.split(' '), 2),
- n = e[0],
- a = e[1],
- i = sa(n || ''),
- o = sa(a || ''),
- s = R(R({}, i), o),
- u = { x: '50%', y: '50%' };
- return (
- s.x && (u.x = s.x),
- s.y && (u.y = s.y),
- s.value &&
- (s.x && !s.y && (u.y = s.value), !s.x && s.y && (u.x = s.value)),
- u
- );
- }
- return t === 'left'
- ? { x: '0%' }
- : t === 'right'
- ? { x: '100%' }
- : t === 'top'
- ? { y: '0%' }
- : t === 'bottom'
- ? { y: '100%' }
- : t
- ? t === 'center'
- ? { value: '50%' }
- : { value: t }
- : {};
- }
- function Ya(t, r, e) {
- var n = sa(t, !0),
- a = n.x,
- i = n.y;
- return [gt(a, r) || 0, gt(i, e) || 0];
- }
- function nd(t, r, e) {
- var n = t.map(function (i) {
- return tt(i, r);
- }),
- a = n.map(function (i) {
- return Se(i, e);
- });
- return {
- prev: n,
- next: a,
- result: a.map(function (i) {
- return ft(i, r);
- })
- };
- }
- function ks(t, r) {
- return (
- t.length === r.length &&
- t.every(function (e, n) {
- var a = r[n],
- i = Rt(e),
- o = Rt(a);
- return i && o ? ks(e, a) : !i && !o ? e === a : !1;
- })
- );
- }
- function Li(t, r, e, n) {
- var a = t[r];
- return r in t && (a === e || n(a) === n(e)) ? a : ((t[r] = e), e);
- }
- function Xt(t) {
- return t >= 0 ? 1 : -1;
- }
- function N(t) {
- return Math.abs(t);
- }
- function Pn(t, r) {
- return jf(t).map(function (e) {
- return r(e);
- });
- }
- function Gs(t) {
- return Ur(t)
- ? { top: t, left: t, right: t, bottom: t }
- : {
- left: t.left || 0,
- top: t.top || 0,
- right: t.right || 0,
- bottom: t.bottom || 0
- };
- }
- var ad = ye('pinchable', {
- props: ['pinchable'],
- events: [
- 'pinchStart',
- 'pinch',
- 'pinchEnd',
- 'pinchGroupStart',
- 'pinchGroup',
- 'pinchGroupEnd'
- ],
- dragStart: function () {
- return !0;
- },
- pinchStart: function (t, r) {
- var e = r.datas,
- n = r.targets,
- a = r.angle,
- i = r.originalDatas,
- o = t.props,
- s = o.pinchable,
- u = o.ables;
- if (!s) return !1;
- var l = 'onPinch'.concat(n ? 'Group' : '', 'Start'),
- f = 'drag'.concat(n ? 'Group' : '', 'ControlStart'),
- c = (
- s === !0
- ? t.controlAbles
- : u.filter(function (g) {
- return s.indexOf(g.name) > -1;
- })
- ).filter(function (g) {
- return g.canPinch && g[f];
- }),
- v = ot(t, r, {});
- n && (v.targets = n);
- var p = Y(t, l, v);
- (e.isPinch = p !== !1), (e.ables = c);
- var d = e.isPinch;
- return d
- ? (c.forEach(function (g) {
- if (((i[g.name] = i[g.name] || {}), !!g[f])) {
- var h = R(R({}, r), {
- datas: i[g.name],
- parentRotate: a,
- isPinch: !0
- });
- g[f](t, h);
- }
- }),
- (t.state.snapRenderInfo = {
- request: r.isRequest,
- direction: [0, 0]
- }),
- d)
- : !1;
- },
- pinch: function (t, r) {
- var e = r.datas,
- n = r.scale,
- a = r.distance,
- i = r.originalDatas,
- o = r.inputEvent,
- s = r.targets,
- u = r.angle;
- if (e.isPinch) {
- var l = a * (1 - 1 / n),
- f = ot(t, r, {});
- s && (f.targets = s);
- var c = 'onPinch'.concat(s ? 'Group' : '');
- Y(t, c, f);
- var v = e.ables,
- p = 'drag'.concat(s ? 'Group' : '', 'Control');
- return (
- v.forEach(function (d) {
- d[p] &&
- d[p](
- t,
- R(R({}, r), {
- datas: i[d.name],
- inputEvent: o,
- resolveMatrix: !0,
- pinchScale: n,
- parentDistance: l,
- parentRotate: u,
- isPinch: !0
- })
- );
- }),
- f
- );
- }
- },
- pinchEnd: function (t, r) {
- var e = r.datas,
- n = r.isPinch,
- a = r.inputEvent,
- i = r.targets,
- o = r.originalDatas;
- if (e.isPinch) {
- var s = 'onPinch'.concat(i ? 'Group' : '', 'End'),
- u = Qt(t, r, { isDrag: n });
- i && (u.targets = i), Y(t, s, u);
- var l = e.ables,
- f = 'drag'.concat(i ? 'Group' : '', 'ControlEnd');
- return (
- l.forEach(function (c) {
- c[f] &&
- c[f](
- t,
- R(R({}, r), {
- isDrag: n,
- datas: o[c.name],
- inputEvent: a,
- isPinch: !0
- })
- );
- }),
- n
- );
- }
- },
- pinchGroupStart: function (t, r) {
- return this.pinchStart(t, R(R({}, r), { targets: t.props.targets }));
- },
- pinchGroup: function (t, r) {
- return this.pinch(t, R(R({}, r), { targets: t.props.targets }));
- },
- pinchGroupEnd: function (t, r) {
- return this.pinchEnd(t, R(R({}, r), { targets: t.props.targets }));
- }
- }),
- Ui = Va('scalable'),
- id = {
- name: 'scalable',
- ableGroup: 'size',
- canPinch: !0,
- props: [
- 'scalable',
- 'throttleScale',
- 'renderDirections',
- 'keepRatio',
- 'edge',
- 'displayAroundControls'
- ],
- events: [
- 'scaleStart',
- 'beforeScale',
- 'scale',
- 'scaleEnd',
- 'scaleGroupStart',
- 'beforeScaleGroup',
- 'scaleGroup',
- 'scaleGroupEnd'
- ],
- render: es('scalable'),
- dragControlCondition: Ui,
- viewClassName: Ua('scalable'),
- dragControlStart: function (t, r) {
- var e = r.datas,
- n = r.isPinch,
- a = r.inputEvent,
- i = r.parentDirection,
- o = ws(i, n, a, e),
- s = t.state,
- u = s.width,
- l = s.height,
- f = s.targetTransform,
- c = s.target,
- v = s.pos1,
- p = s.pos2,
- d = s.pos4;
- if (!o || !c) return !1;
- n || Pr(t, r),
- (e.datas = {}),
- (e.transform = f),
- (e.prevDist = [1, 1]),
- (e.direction = o),
- (e.startOffsetWidth = u),
- (e.startOffsetHeight = l),
- (e.startValue = [1, 1]);
- var g = (!o[0] && !o[1]) || o[0] || !o[1];
- cn(r, 'scale'), (e.isWidth = g);
- function h(C) {
- e.ratio = C && isFinite(C) ? C : 0;
- }
- e.startPositions = jt(t.state);
- function A(C) {
- var S = fs(e.startPositions, C);
- (e.fixedDirection = S.fixedDirection),
- (e.fixedPosition = S.fixedPosition),
- (e.fixedOffset = S.fixedOffset);
- }
- (e.setFixedDirection = A), h(sr(v, p) / sr(p, d)), A([-o[0], -o[1]]);
- var m = function (C) {
- e.minScaleSize = C;
- },
- E = function (C) {
- e.maxScaleSize = C;
- };
- m([-1 / 0, -1 / 0]), E([1 / 0, 1 / 0]);
- var y = ot(
- t,
- r,
- R(
- R(
- {
- direction: o,
- set: function (C) {
- e.startValue = C;
- },
- setRatio: h,
- setFixedDirection: A,
- setMinScaleSize: m,
- setMaxScaleSize: E
- },
- fn(r)
- ),
- { dragStart: Ht.dragStart(t, new Wr().dragStart([0, 0], r)) }
- )
- ),
- b = Y(t, 'onScaleStart', y);
- return (
- (e.startFixedDirection = e.fixedDirection),
- b !== !1 &&
- ((e.isScale = !0),
- (t.state.snapRenderInfo = { request: r.isRequest, direction: o })),
- e.isScale ? y : !1
- );
- },
- dragControl: function (t, r) {
- un(r, 'scale');
- var e = r.datas,
- n = r.parentKeepRatio,
- a = r.parentFlag,
- i = r.isPinch,
- o = r.dragClient,
- s = r.isRequest,
- u = r.useSnap,
- l = r.resolveMatrix,
- f = e.prevDist,
- c = e.direction,
- v = e.startOffsetWidth,
- p = e.startOffsetHeight,
- d = e.isScale,
- g = e.startValue,
- h = e.isWidth,
- A = e.ratio;
- if (!d) return !1;
- var m = t.props,
- E = m.throttleScale,
- y = m.parentMoveable,
- b = c;
- !c[0] && !c[1] && (b = [1, 1]);
- var C = (A && (n != null ? n : m.keepRatio)) || !1,
- S = t.state,
- D = [g[0], g[1]];
- function x() {
- var et = Ps(b, C, e, r),
- Z = et.distWidth,
- J = et.distHeight,
- vt = v ? (v + Z) / v : 1,
- at = p ? (p + J) / p : 1;
- g[0] || (D[0] = Z / v), g[1] || (D[1] = J / p);
- var it = (b[0] || C ? vt : 1) * D[0],
- ut = (b[1] || C ? at : 1) * D[1];
- return (
- it === 0 && (it = Xt(f[0]) * Ie),
- ut === 0 && (ut = Xt(f[1]) * Ie),
- [it, ut]
- );
- }
- var w = x();
- if (!i && t.props.groupable) {
- var T = S.snapRenderInfo || {},
- I = T.direction;
- Rt(I) &&
- (I[0] || I[1]) &&
- (S.snapRenderInfo = { direction: c, request: r.isRequest });
- }
- Y(
- t,
- 'onBeforeScale',
- ot(
- t,
- r,
- {
- scale: w,
- setFixedDirection: function (et) {
- return e.setFixedDirection(et), (w = x()), w;
- },
- startFixedDirection: e.startFixedDirection,
- setScale: function (et) {
- w = et;
- }
- },
- !0
- )
- );
- var M = [w[0] / D[0], w[1] / D[1]],
- O = o,
- P = [0, 0],
- z = !o && !a && i;
- if (
- (z || l
- ? (O = Ta(t, e.targetAllTransform, [0, 0], [0, 0], e))
- : o || (O = e.fixedPosition),
- i || (P = Np(t, M, c, !u && s, e)),
- C)
- ) {
- b[0] &&
- b[1] &&
- P[0] &&
- P[1] &&
- (Math.abs(P[0] * v) > Math.abs(P[1] * p) ? (P[1] = 0) : (P[0] = 0));
- var H = !P[0] && !P[1];
- if (
- (H &&
- (h
- ? (M[0] = nt(M[0] * D[0], E) / D[0])
- : (M[1] = nt(M[1] * D[1], E) / D[1])),
- (b[0] && !b[1]) || (P[0] && !P[1]) || (H && h))
- ) {
- M[0] += P[0];
- var G = (v * M[0] * D[0]) / A;
- M[1] = G / p / D[1];
- } else if ((!b[0] && b[1]) || (!P[0] && P[1]) || (H && !h)) {
- M[1] += P[1];
- var L = p * M[1] * D[1] * A;
- M[0] = L / v / D[0];
- }
- } else
- (M[0] += P[0]),
- (M[1] += P[1]),
- P[0] || (M[0] = nt(M[0] * D[0], E) / D[0]),
- P[1] || (M[1] = nt(M[1] * D[1], E) / D[1]);
- M[0] === 0 && (M[0] = Xt(f[0]) * Ie),
- M[1] === 0 && (M[1] = Xt(f[1]) * Ie),
- (w = Lp(M, [D[0], D[1]]));
- var V = [v, p],
- F = [v * w[0], p * w[1]];
- (F = so(F, e.minScaleSize, e.maxScaleSize, C ? A : !1)),
- (w = Pn(2, function (et) {
- return V[et] ? F[et] / V[et] : F[et];
- })),
- (M = Pn(2, function (et) {
- return w[et] / D[et];
- }));
- var Q = Pn(2, function (et) {
- return f[et] ? M[et] / f[et] : M[et];
- }),
- j = 'scale('.concat(M.join(', '), ')'),
- K = 'scale('.concat(w.join(', '), ')'),
- X = ln(e, K, j),
- W = !g[0] || !g[1],
- _ = zv(t, W ? K : j, e.fixedDirection, O, e.fixedOffset, e, W),
- rt = z ? _ : tt(_, e.prevInverseDist || [0, 0]);
- if (
- ((e.prevDist = M),
- (e.prevInverseDist = _),
- w[0] === f[0] &&
- w[1] === f[1] &&
- rt.every(function (et) {
- return !et;
- }) &&
- !y &&
- !z)
- )
- return !1;
- var lt = ot(
- t,
- r,
- R(
- {
- offsetWidth: v,
- offsetHeight: p,
- direction: c,
- scale: w,
- dist: M,
- delta: Q,
- isPinch: !!i
- },
- jo(t, X, rt, i, r)
- )
- );
- return Y(t, 'onScale', lt), lt;
- },
- dragControlEnd: function (t, r) {
- var e = r.datas;
- if (!e.isScale) return !1;
- e.isScale = !1;
- var n = Qt(t, r, {});
- return Y(t, 'onScaleEnd', n), n;
- },
- dragGroupControlCondition: Ui,
- dragGroupControlStart: function (t, r) {
- var e = r.datas,
- n = this.dragControlStart(t, r);
- if (!n) return !1;
- var a = $t(t, 'resizable', r);
- e.moveableScale = t.scale;
- var i = ur(t, this, 'dragControlStart', r, function (l, f) {
- return Ke(t, l, e, f);
- }),
- o = function (l) {
- n.setFixedDirection(l),
- i.forEach(function (f, c) {
- f.setFixedDirection(l), Ke(t, f.moveable, e, a[c]);
- });
- };
- e.setFixedDirection = o;
- var s = R(R({}, n), {
- targets: t.props.targets,
- events: i,
- setFixedDirection: o
- }),
- u = Y(t, 'onScaleGroupStart', s);
- return (e.isScale = u !== !1), e.isScale ? s : !1;
- },
- dragGroupControl: function (t, r) {
- var e = r.datas;
- if (e.isScale) {
- hn(t, 'onBeforeScale', function (f) {
- Y(
- t,
- 'onBeforeScaleGroup',
- ot(t, r, R(R({}, f), { targets: t.props.targets }), !0)
- );
- });
- var n = this.dragControl(t, r);
- if (n) {
- var a = n.dist,
- i = e.moveableScale;
- t.scale = [a[0] * i[0], a[1] * i[1]];
- var o = t.props.keepRatio,
- s = e.fixedPosition,
- u = ur(t, this, 'dragControl', r, function (f, c) {
- var v = B(
- Nt(
- Ce((t.rotation / 180) * Math.PI, 3),
- [c.datas.originalX * a[0], c.datas.originalY * a[1], 1],
- 3
- ),
- 2
- ),
- p = v[0],
- d = v[1];
- return R(R({}, c), {
- parentDist: null,
- parentScale: a,
- parentKeepRatio: o,
- dragClient: ft(s, [p, d])
- });
- }),
- l = R({ targets: t.props.targets, events: u }, n);
- return Y(t, 'onScaleGroup', l), l;
- }
- }
- },
- dragGroupControlEnd: function (t, r) {
- var e = r.isDrag,
- n = r.datas;
- if (n.isScale) {
- this.dragControlEnd(t, r);
- var a = ur(t, this, 'dragControlEnd', r),
- i = Qt(t, r, { targets: t.props.targets, events: a });
- return Y(t, 'onScaleGroupEnd', i), e;
- }
- },
- request: function () {
- var t = {},
- r = 0,
- e = 0,
- n = !1;
- return {
- isControl: !0,
- requestStart: function (a) {
- return (
- (n = a.useSnap),
- { datas: t, parentDirection: a.direction || [1, 1], useSnap: n }
- );
- },
- request: function (a) {
- return (
- (r += a.deltaWidth),
- (e += a.deltaHeight),
- {
- datas: t,
- parentDist: [r, e],
- parentKeepRatio: a.keepRatio,
- useSnap: n
- }
- );
- },
- requestEnd: function () {
- return { datas: t, isDrag: !0, useSnap: n };
- }
- };
- }
- };
- function pr(t, r) {
- return t.map(function (e, n) {
- return Er(e, r[n], 1, 2);
- });
- }
- function Vi(t, r, e) {
- var n = Et(t, r),
- a = Et(t, e),
- i = a - n;
- return i >= 0 ? i : i + 2 * Math.PI;
- }
- function od(t, r) {
- var e = Vi(t[0], t[1], t[2]),
- n = Vi(r[0], r[1], r[2]),
- a = Math.PI;
- return !((e >= a && n <= a) || (e <= a && n >= a));
- }
- var sd = {
- name: 'warpable',
- ableGroup: 'size',
- props: ['warpable', 'renderDirections', 'edge', 'displayAroundControls'],
- events: ['warpStart', 'warp', 'warpEnd'],
- viewClassName: Ua('warpable'),
- render: function (t, r) {
- var e = t.props,
- n = e.resizable,
- a = e.scalable,
- i = e.warpable,
- o = e.zoom;
- if (n || a || !i) return [];
- var s = t.state,
- u = s.pos1,
- l = s.pos2,
- f = s.pos3,
- c = s.pos4,
- v = pr(u, l),
- p = pr(l, u),
- d = pr(u, f),
- g = pr(f, u),
- h = pr(f, c),
- A = pr(c, f),
- m = pr(l, c),
- E = pr(c, l);
- return U(
- [
- r.createElement('div', {
- className: $('line'),
- key: 'middeLine1',
- style: ne(v, h, o)
- }),
- r.createElement('div', {
- className: $('line'),
- key: 'middeLine2',
- style: ne(p, A, o)
- }),
- r.createElement('div', {
- className: $('line'),
- key: 'middeLine3',
- style: ne(d, m, o)
- }),
- r.createElement('div', {
- className: $('line'),
- key: 'middeLine4',
- style: ne(g, E, o)
- })
- ],
- B(ns(t, 'warpable', r)),
- !1
- );
- },
- dragControlCondition: function (t, r) {
- if (r.isRequest) return !1;
- var e = r.inputEvent.target;
- return Tt(e, $('direction')) && Tt(e, $('warpable'));
- },
- dragControlStart: function (t, r) {
- var e = r.datas,
- n = r.inputEvent,
- a = t.props.target,
- i = n.target,
- o = Rs(i, e);
- if (!o || !a) return !1;
- var s = t.state,
- u = s.transformOrigin,
- l = s.is3d,
- f = s.targetTransform,
- c = s.targetMatrix,
- v = s.width,
- p = s.height,
- d = s.left,
- g = s.top;
- (e.datas = {}),
- (e.targetTransform = f),
- (e.warpTargetMatrix = l ? c : rr(c, 3, 4)),
- (e.targetInverseMatrix = To(ar(e.warpTargetMatrix, 4), 3, 4)),
- (e.direction = o),
- (e.left = d),
- (e.top = g),
- (e.poses = [
- [0, 0],
- [v, 0],
- [0, p],
- [v, p]
- ].map(function (m) {
- return tt(m, u);
- })),
- (e.nextPoses = e.poses.map(function (m) {
- var E = B(m, 2),
- y = E[0],
- b = E[1];
- return Nt(e.warpTargetMatrix, [y, b, 0, 1], 4);
- })),
- (e.startValue = St(4)),
- (e.prevMatrix = St(4)),
- (e.absolutePoses = jt(s)),
- (e.posIndexes = Jo(o)),
- Pr(t, r),
- cn(r, 'matrix3d'),
- (s.snapRenderInfo = { request: r.isRequest, direction: o });
- var h = ot(
- t,
- r,
- R(
- {
- set: function (m) {
- e.startValue = m;
- }
- },
- fn(r)
- )
- ),
- A = Y(t, 'onWarpStart', h);
- return A !== !1 && (e.isWarp = !0), e.isWarp;
- },
- dragControl: function (t, r) {
- var e = r.datas,
- n = r.isRequest,
- a = r.distX,
- i = r.distY,
- o = e.targetInverseMatrix,
- s = e.prevMatrix,
- u = e.isWarp,
- l = e.startValue,
- f = e.poses,
- c = e.posIndexes,
- v = e.absolutePoses;
- if (!u) return !1;
- if ((un(r, 'matrix3d'), $r(t, 'warpable'))) {
- var p = c.map(function (x) {
- return v[x];
- });
- p.length > 1 &&
- p.push([(p[0][0] + p[1][0]) / 2, (p[0][1] + p[1][1]) / 2]);
- var d = dn(t, n, {
- horizontal: p.map(function (x) {
- return x[1] + i;
- }),
- vertical: p.map(function (x) {
- return x[0] + a;
- })
- }),
- g = d.horizontal,
- h = d.vertical;
- (i -= g.offset), (a -= h.offset);
- }
- var A = ir({ datas: e, distX: a, distY: i }, !0),
- m = e.nextPoses.slice();
- if (
- (c.forEach(function (x) {
- m[x] = ft(m[x], A);
- }),
- !Bv.every(function (x) {
- return od(
- x.map(function (w) {
- return f[w];
- }),
- x.map(function (w) {
- return m[w];
- })
- );
- }))
- )
- return !1;
- var E = xa(f[0], f[2], f[1], f[3], m[0], m[2], m[1], m[3]);
- if (!E.length) return !1;
- var y = ht(o, E, 4),
- b = qo(e, y, !0),
- C = ht(ar(s, 4), b, 4);
- e.prevMatrix = b;
- var S = ht(l, b, 4),
- D = ln(
- e,
- 'matrix3d('.concat(S.join(', '), ')'),
- 'matrix3d('.concat(b.join(', '), ')')
- );
- return (
- Ia(r, D),
- Y(
- t,
- 'onWarp',
- ot(
- t,
- r,
- R(
- { delta: C, matrix: S, dist: b, multiply: ht, transform: D },
- Lt({ transform: D }, r)
- )
- )
- ),
- !0
- );
- },
- dragControlEnd: function (t, r) {
- var e = r.datas,
- n = r.isDrag;
- return e.isWarp
- ? ((e.isWarp = !1), Y(t, 'onWarpEnd', Qt(t, r, {})), n)
- : !1;
- }
- },
- ud = $('area-pieces'),
- Fe = $('area-piece'),
- Ns = $('avoid'),
- ld = $('view-dragging');
- function kn(t) {
- var r = t.areaElement;
- if (r) {
- var e = t.state,
- n = e.width,
- a = e.height;
- fo(r, Ns),
- (r.style.cssText += 'left: 0px; top: 0px; width: '
- .concat(n, 'px; height: ')
- .concat(a, 'px'));
- }
- }
- function Wi(t) {
- return t.createElement(
- 'div',
- { key: 'area_pieces', className: ud },
- t.createElement('div', { className: Fe }),
- t.createElement('div', { className: Fe }),
- t.createElement('div', { className: Fe }),
- t.createElement('div', { className: Fe })
- );
- }
- var Fs = {
- name: 'dragArea',
- props: ['dragArea', 'passDragArea'],
- events: ['click', 'clickGroup'],
- render: function (t, r) {
- var e = t.props,
- n = e.target,
- a = e.dragArea,
- i = e.groupable,
- o = e.passDragArea,
- s = t.getState(),
- u = s.width,
- l = s.height,
- f = s.renderPoses,
- c = o ? $('area', 'pass') : $('area');
- if (i)
- return [
- r.createElement('div', {
- key: 'area',
- ref: or(t, 'areaElement'),
- className: c
- }),
- Wi(r)
- ];
- if (!n || !a) return [];
- var v = xa([0, 0], [u, 0], [0, l], [u, l], f[0], f[1], f[2], f[3]),
- p = v.length ? gn(v, !0) : 'none';
- return [
- r.createElement('div', {
- key: 'area',
- ref: or(t, 'areaElement'),
- className: c,
- style: {
- top: '0px',
- left: '0px',
- width: ''.concat(u, 'px'),
- height: ''.concat(l, 'px'),
- transformOrigin: '0 0',
- transform: p
- }
- }),
- Wi(r)
- ];
- },
- dragStart: function (t, r) {
- var e = r.datas,
- n = r.clientX,
- a = r.clientY,
- i = r.inputEvent;
- if (!i) return !1;
- e.isDragArea = !1;
- var o = t.areaElement,
- s = t.state,
- u = s.moveableClientRect,
- l = s.renderPoses,
- f = s.rootMatrix,
- c = s.is3d,
- v = u.left,
- p = u.top,
- d = qt(l),
- g = d.left,
- h = d.top,
- A = d.width,
- m = d.height,
- E = c ? 4 : 3,
- y = B(Xr(f, [n - v, a - p], E), 2),
- b = y[0],
- C = y[1];
- (b -= g), (C -= h);
- var S = [
- { left: g, top: h, width: A, height: C - 10 },
- { left: g, top: h, width: b - 10, height: m },
- { left: g, top: h + C + 10, width: A, height: m - C - 10 },
- { left: g + b + 10, top: h, width: A - b - 10, height: m }
- ],
- D = [].slice.call(o.nextElementSibling.children);
- S.forEach(function (x, w) {
- D[w].style.cssText = 'left: '
- .concat(x.left, 'px;top: ')
- .concat(x.top, 'px; width: ')
- .concat(x.width, 'px; height: ')
- .concat(x.height, 'px;');
- }),
- lo(o, Ns),
- (s.disableNativeEvent = !0);
- },
- drag: function (t, r) {
- var e = r.datas,
- n = r.inputEvent;
- if ((this.enableNativeEvent(t), !n)) return !1;
- e.isDragArea || ((e.isDragArea = !0), kn(t));
- },
- dragEnd: function (t, r) {
- this.enableNativeEvent(t);
- var e = r.inputEvent,
- n = r.datas;
- if (!e) return !1;
- n.isDragArea || kn(t);
- },
- dragGroupStart: function (t, r) {
- return this.dragStart(t, r);
- },
- dragGroup: function (t, r) {
- return this.drag(t, r);
- },
- dragGroupEnd: function (t, r) {
- return this.dragEnd(t, r);
- },
- unset: function (t) {
- kn(t), (t.state.disableNativeEvent = !1);
- },
- enableNativeEvent: function (t) {
- var r = t.state;
- r.disableNativeEvent &&
- oo(function () {
- r.disableNativeEvent = !1;
- });
- }
- },
- fd = ye('origin', {
- props: ['origin', 'svgOrigin'],
- render: function (t, r) {
- var e = t.props,
- n = e.zoom,
- a = e.svgOrigin,
- i = e.groupable,
- o = t.getState(),
- s = o.beforeOrigin,
- u = o.rotation,
- l = o.svg,
- f = o.allMatrix,
- c = o.is3d,
- v = o.left,
- p = o.top,
- d = o.offsetWidth,
- g = o.offsetHeight,
- h;
- if (!i && l && a) {
- var A = B(Ya(a, d, g), 2),
- m = A[0],
- E = A[1],
- y = c ? 4 : 3,
- b = Ct(f, [m, E], y);
- h = _e(u, n, tt(b, [v, p]));
- } else h = _e(u, n, s);
- return [
- r.createElement('div', {
- className: $('control', 'origin'),
- style: h,
- key: 'beforeOrigin'
- })
- ];
- }
- });
- function cd(t) {
- var r = t.scrollContainer;
- return [r.scrollLeft, r.scrollTop];
- }
- var vd = {
- name: 'scrollable',
- canPinch: !0,
- props: [
- 'scrollable',
- 'scrollContainer',
- 'scrollThreshold',
- 'scrollThrottleTime',
- 'getScrollPosition',
- 'scrollOptions'
- ],
- events: ['scroll', 'scrollGroup'],
- dragRelation: 'strong',
- dragStart: function (t, r) {
- var e = t.props,
- n = e.scrollContainer,
- a = n === void 0 ? t.getContainer() : n,
- i = e.scrollOptions,
- o = new qc(),
- s = nr(a, !0);
- (r.datas.dragScroll = o), (t.state.dragScroll = o);
- var u = r.isControl ? 'controlGesto' : 'targetGesto',
- l = r.targets;
- o
- .on('scroll', function (f) {
- var c = f.container,
- v = f.direction,
- p = ot(t, r, { scrollContainer: c, direction: v }),
- d = l ? 'onScrollGroup' : 'onScroll';
- l && (p.targets = l), Y(t, d, p);
- })
- .on('move', function (f) {
- var c = f.offsetX,
- v = f.offsetY,
- p = f.inputEvent;
- t[u].scrollBy(c, v, p.inputEvent, !0);
- })
- .on('scrollDrag', function (f) {
- var c = f.next;
- c(t[u].getCurrentEvent());
- }),
- o.dragStart(r, R({ container: s }, i));
- },
- checkScroll: function (t, r) {
- var e = r.datas.dragScroll;
- if (e) {
- var n = t.props,
- a = n.scrollContainer,
- i = a === void 0 ? t.getContainer() : a,
- o = n.scrollThreshold,
- s = o === void 0 ? 0 : o,
- u = n.scrollThrottleTime,
- l = u === void 0 ? 0 : u,
- f = n.getScrollPosition,
- c = f === void 0 ? cd : f,
- v = n.scrollOptions;
- return (
- e.drag(
- r,
- R(
- {
- container: i,
- threshold: s,
- throttleTime: l,
- getScrollPosition: function (p) {
- return c({
- scrollContainer: p.container,
- direction: p.direction
- });
- }
- },
- v
- )
- ),
- !0
- );
- }
- },
- drag: function (t, r) {
- return this.checkScroll(t, r);
- },
- dragEnd: function (t, r) {
- r.datas.dragScroll.dragEnd(), (r.datas.dragScroll = null);
- },
- dragControlStart: function (t, r) {
- return this.dragStart(t, R(R({}, r), { isControl: !0 }));
- },
- dragControl: function (t, r) {
- return this.drag(t, r);
- },
- dragControlEnd: function (t, r) {
- return this.dragEnd(t, r);
- },
- dragGroupStart: function (t, r) {
- return this.dragStart(t, R(R({}, r), { targets: t.props.targets }));
- },
- dragGroup: function (t, r) {
- return this.drag(t, R(R({}, r), { targets: t.props.targets }));
- },
- dragGroupEnd: function (t, r) {
- return this.dragEnd(t, R(R({}, r), { targets: t.props.targets }));
- },
- dragGroupControlStart: function (t, r) {
- return this.dragStart(
- t,
- R(R({}, r), { targets: t.props.targets, isControl: !0 })
- );
- },
- dragGroupControl: function (t, r) {
- return this.drag(t, R(R({}, r), { targets: t.props.targets }));
- },
- dragGroupControEnd: function (t, r) {
- return this.dragEnd(t, R(R({}, r), { targets: t.props.targets }));
- },
- unset: function (t) {
- var r,
- e = t.state;
- (r = e.dragScroll) === null || r === void 0 || r.dragEnd(),
- (e.dragScroll = null);
- }
- },
- zs = {
- name: '',
- props: [
- 'target',
- 'dragTarget',
- 'dragContainer',
- 'container',
- 'warpSelf',
- 'rootContainer',
- 'useResizeObserver',
- 'useMutationObserver',
- 'zoom',
- 'dragFocusedInput',
- 'transformOrigin',
- 'ables',
- 'className',
- 'pinchThreshold',
- 'pinchOutside',
- 'triggerAblesSimultaneously',
- 'checkInput',
- 'cspNonce',
- 'translateZ',
- 'hideDefaultLines',
- 'props',
- 'flushSync',
- 'stopPropagation',
- 'preventClickEventOnDrag',
- 'preventClickDefault',
- 'viewContainer',
- 'persistData',
- 'useAccuratePosition',
- 'firstRenderState',
- 'linePadding',
- 'controlPadding',
- 'preventDefault',
- 'requestStyles'
- ],
- events: ['changeTargets']
- },
- pd = ye('padding', {
- props: ['padding'],
- render: function (t, r) {
- var e = t.props;
- if (e.dragArea) return [];
- var n = Gs(e.padding || {}),
- a = n.left,
- i = n.top,
- o = n.right,
- s = n.bottom,
- u = t.getState(),
- l = u.renderPoses,
- f = u.pos1,
- c = u.pos2,
- v = u.pos3,
- p = u.pos4,
- d = [f, c, v, p],
- g = [];
- return (
- a > 0 && g.push([0, 2]),
- i > 0 && g.push([0, 1]),
- o > 0 && g.push([1, 3]),
- s > 0 && g.push([2, 3]),
- g.map(function (h, A) {
- var m = B(h, 2),
- E = m[0],
- y = m[1],
- b = d[E],
- C = d[y],
- S = l[E],
- D = l[y],
- x = xa([0, 0], [100, 0], [0, 100], [100, 100], b, C, S, D);
- if (x.length)
- return r.createElement('div', {
- key: 'padding'.concat(A),
- className: $('padding'),
- style: { transform: gn(x, !0) }
- });
- })
- );
- }
- }),
- Yi = ['nw', 'ne', 'se', 'sw'];
- function ze(t, r) {
- var e = t[0] + t[1],
- n = e > r ? r / e : 1;
- return (t[0] *= n), (t[1] = r - t[1] * n), t;
- }
- var dd = [1, 2, 5, 6],
- gd = [0, 3, 4, 7],
- br = [1, -1, -1, 1],
- xr = [1, 1, -1, -1];
- function Qa(t, r, e, n, a, i, o, s) {
- a === void 0 && (a = 0),
- i === void 0 && (i = 0),
- o === void 0 && (o = e),
- s === void 0 && (s = n);
- var u = [],
- l = !1,
- f = t.filter(function (v) {
- return !v.virtual;
- }),
- c = f.map(function (v) {
- var p = v.horizontal,
- d = v.vertical,
- g = v.pos;
- if ((d && !l && ((l = !0), u.push('/')), l)) {
- var h = Math.max(0, d === 1 ? g[1] - i : s - g[1]);
- return u.push(Zt(h, n, r)), h;
- } else {
- var h = Math.max(0, p === 1 ? g[0] - a : o - g[0]);
- return u.push(Zt(h, e, r)), h;
- }
- });
- return { radiusPoses: f, styles: u, raws: c };
- }
- function Hs(t) {
- for (var r = [0, 0], e = [0, 0], n = t.length, a = 0; a < n; ++a) {
- var i = t[a];
- i.sub &&
- (i.horizontal &&
- (r[1] === 0 && (r[0] = a), (r[1] = a - r[0] + 1), (e[0] = a + 1)),
- i.vertical && (e[1] === 0 && (e[0] = a), (e[1] = a - e[0] + 1)));
- }
- return { horizontalRange: r, verticalRange: e };
- }
- function Ls(t, r, e, n, a, i, o) {
- var s, u, l, f;
- i === void 0 && (i = [0, 0]), o === void 0 && (o = !1);
- var c = t.indexOf('/'),
- v = (c > -1 ? t.slice(0, c) : t).length,
- p = t.slice(0, v),
- d = t.slice(v + 1),
- g = p.length,
- h = d.length,
- A = h > 0,
- m = B(p, 4),
- E = m[0],
- y = E === void 0 ? '0px' : E,
- b = m[1],
- C = b === void 0 ? y : b,
- S = m[2],
- D = S === void 0 ? y : S,
- x = m[3],
- w = x === void 0 ? C : x,
- T = B(d, 4),
- I = T[0],
- M = I === void 0 ? y : I,
- O = T[1],
- P = O === void 0 ? (A ? M : C) : O,
- z = T[2],
- H = z === void 0 ? (A ? M : D) : z,
- G = T[3],
- L = G === void 0 ? (A ? P : w) : G,
- V = [y, C, D, w].map(function (W) {
- return gt(W, r);
- }),
- F = [M, P, H, L].map(function (W) {
- return gt(W, e);
- }),
- Q = V.slice(),
- j = F.slice();
- (s = B(ze([Q[0], Q[1]], r), 2)),
- (Q[0] = s[0]),
- (Q[1] = s[1]),
- (u = B(ze([Q[3], Q[2]], r), 2)),
- (Q[3] = u[0]),
- (Q[2] = u[1]),
- (l = B(ze([j[0], j[3]], e), 2)),
- (j[0] = l[0]),
- (j[3] = l[1]),
- (f = B(ze([j[1], j[2]], e), 2)),
- (j[1] = f[0]),
- (j[2] = f[1]);
- var K = o ? Q : Q.slice(0, Math.max(i[0], g)),
- X = o ? j : j.slice(0, Math.max(i[1], h));
- return U(
- U(
- [],
- B(
- K.map(function (W, _) {
- var rt = Yi[_];
- return {
- virtual: _ >= g,
- horizontal: br[_],
- vertical: 0,
- pos: [n + W, a + (xr[_] === -1 ? e : 0)],
- sub: !0,
- raw: V[_],
- direction: rt
- };
- })
- ),
- !1
- ),
- B(
- X.map(function (W, _) {
- var rt = Yi[_];
- return {
- virtual: _ >= h,
- horizontal: 0,
- vertical: xr[_],
- pos: [n + (br[_] === -1 ? r : 0), a + W],
- sub: !0,
- raw: F[_],
- direction: rt
- };
- })
- ),
- !1
- );
- }
- function hd(t, r, e, n, a) {
- a === void 0 && (a = r.length);
- var i = Hs(t.slice(n)),
- o = i.horizontalRange,
- s = i.verticalRange,
- u = e - n,
- l = 0;
- if (u === 0) l = a;
- else if (u > 0 && u < o[1]) l = o[1] - u;
- else if (u >= s[0]) l = s[0] + s[1] - u;
- else return;
- t.splice(e, l), r.splice(e, l);
- }
- function Ad(t, r, e, n, a, i, o, s, u, l, f) {
- l === void 0 && (l = 0), f === void 0 && (f = 0);
- var c = Hs(t.slice(e)),
- v = c.horizontalRange,
- p = c.verticalRange;
- if (n > -1)
- for (var d = br[n] === 1 ? i - l : s - i, g = v[1]; g <= n; ++g) {
- var h = xr[g] === 1 ? f : u,
- A = 0;
- if (
- (n === g
- ? (A = i)
- : g === 0
- ? (A = l + d)
- : br[g] === -1 && (A = s - (r[e][0] - l)),
- t.splice(e + g, 0, { horizontal: br[g], vertical: 0, pos: [A, h] }),
- r.splice(e + g, 0, [A, h]),
- g === 0)
- )
- break;
- }
- else if (a > -1) {
- var m = xr[a] === 1 ? o - f : u - o;
- if (v[1] === 0 && p[1] === 0) {
- var E = [l + m, f];
- t.push({ horizontal: br[0], vertical: 0, pos: E }), r.push(E);
- }
- for (var y = p[0], g = p[1]; g <= a; ++g) {
- var A = br[g] === 1 ? l : s,
- h = 0;
- if (
- (a === g
- ? (h = o)
- : g === 0
- ? (h = f + m)
- : xr[g] === 1
- ? (h = r[e + y][1])
- : xr[g] === -1 && (h = u - (r[e + y][1] - f)),
- t.push({ horizontal: 0, vertical: xr[g], pos: [A, h] }),
- r.push([A, h]),
- g === 0)
- )
- break;
- }
- }
- }
- function md(t, r) {
- r === void 0 &&
- (r = t.map(function (a) {
- return a.raw;
- }));
- var e = t
- .map(function (a, i) {
- return a.horizontal ? r[i] : null;
- })
- .filter(function (a) {
- return a != null;
- }),
- n = t
- .map(function (a, i) {
- return a.vertical ? r[i] : null;
- })
- .filter(function (a) {
- return a != null;
- });
- return { horizontals: e, verticals: n };
- }
- var Sd = [
- [0, -1, 'n'],
- [1, 0, 'e']
- ],
- Cd = [
- [-1, -1, 'nw'],
- [0, -1, 'n'],
- [1, -1, 'ne'],
- [1, 0, 'e'],
- [1, 1, 'se'],
- [0, 1, 's'],
- [-1, 1, 'sw'],
- [-1, 0, 'w']
- ];
- function Xa(t, r, e) {
- var n = t.props.clipRelative,
- a = t.state,
- i = a.width,
- o = a.height,
- s = r,
- u = s.type,
- l = s.poses,
- f = u === 'rect',
- c = u === 'circle';
- if (u === 'polygon')
- return e.map(function (C) {
- return ''.concat(Zt(C[0], i, n), ' ').concat(Zt(C[1], o, n));
- });
- if (f || u === 'inset') {
- var v = e[1][1],
- p = e[3][0],
- d = e[7][0],
- g = e[5][1];
- if (f)
- return [v, p, g, d].map(function (C) {
- return ''.concat(C, 'px');
- });
- var h = [v, i - p, o - g, d].map(function (C, S) {
- return Zt(C, S % 2 ? i : o, n);
- });
- if (e.length > 8) {
- var A = B(tt(e[4], e[0]), 2),
- m = A[0],
- E = A[1];
- h.push.apply(
- h,
- U(
- ['round'],
- B(
- Qa(
- l.slice(8).map(function (C, S) {
- return R(R({}, C), { pos: e[S] });
- }),
- n,
- m,
- E,
- d,
- v,
- p,
- g
- ).styles
- ),
- !1
- )
- );
- }
- return h;
- } else if (c || u === 'ellipse') {
- var y = e[0],
- b = Zt(N(e[1][1] - y[1]), c ? Math.sqrt((i * i + o * o) / 2) : o, n),
- h = c ? [b] : [Zt(N(e[2][0] - y[0]), i, n), b];
- return h.push('at', Zt(y[0], i, n), Zt(y[1], o, n)), h;
- }
- }
- function tn(t, r, e, n) {
- var a = [n, (n + r) / 2, r],
- i = [t, (t + e) / 2, e];
- return Cd.map(function (o) {
- var s = B(o, 3),
- u = s[0],
- l = s[1],
- f = s[2],
- c = a[u + 1],
- v = i[l + 1];
- return { vertical: N(l), horizontal: N(u), direction: f, pos: [c, v] };
- });
- }
- function Us(t) {
- var r = [1 / 0, -1 / 0],
- e = [1 / 0, -1 / 0];
- return (
- t.forEach(function (n) {
- var a = n.pos;
- (r[0] = Math.min(r[0], a[0])),
- (r[1] = Math.max(r[1], a[0])),
- (e[0] = Math.min(e[0], a[1])),
- (e[1] = Math.max(e[1], a[1]));
- }),
- [N(r[1] - r[0]), N(e[1] - e[0])]
- );
- }
- function Qi(t, r, e, n, a) {
- var i, o, s, u, l, f, c, v, p;
- if (t) {
- var d = a;
- if (!d) {
- var g = Yt(t),
- h = g('clipPath');
- d = h !== 'none' ? h : g('clip');
- }
- if (!((!d || d === 'none' || d === 'auto') && ((d = n), !d))) {
- var A = io(d),
- m = A.prefix,
- E = m === void 0 ? d : m,
- y = A.value,
- b = y === void 0 ? '' : y,
- C = E === 'circle',
- S = ' ';
- if (E === 'polygon') {
- var D = Br(b || '0% 0%, 100% 0%, 100% 100%, 0% 100%');
- S = ',';
- var x = D.map(function (yt) {
- var Ft = B(yt.split(' '), 2),
- kt = Ft[0],
- Dt = Ft[1];
- return { vertical: 1, horizontal: 1, pos: [gt(kt, r), gt(Dt, e)] };
- }),
- w = Tr(
- x.map(function (yt) {
- return yt.pos;
- })
- );
- return {
- type: E,
- clipText: d,
- poses: x,
- splitter: S,
- left: w.minX,
- right: w.maxX,
- top: w.minY,
- bottom: w.maxY
- };
- } else if (C || E === 'ellipse') {
- var T = '',
- I = '',
- M = 0,
- O = 0,
- D = Ar(b);
- if (C) {
- var P = '';
- (i = B(D, 4)),
- (o = i[0]),
- (P = o === void 0 ? '50%' : o),
- (s = i[2]),
- (T = s === void 0 ? '50%' : s),
- (u = i[3]),
- (I = u === void 0 ? '50%' : u),
- (M = gt(P, Math.sqrt((r * r + e * e) / 2))),
- (O = M);
- } else {
- var z = '',
- H = '';
- (l = B(D, 5)),
- (f = l[0]),
- (z = f === void 0 ? '50%' : f),
- (c = l[1]),
- (H = c === void 0 ? '50%' : c),
- (v = l[3]),
- (T = v === void 0 ? '50%' : v),
- (p = l[4]),
- (I = p === void 0 ? '50%' : p),
- (M = gt(z, r)),
- (O = gt(H, e));
- }
- var G = [gt(T, r), gt(I, e)],
- x = U(
- [{ vertical: 1, horizontal: 1, pos: G, direction: 'nesw' }],
- B(
- Sd.slice(0, C ? 1 : 2).map(function (kt) {
- return {
- vertical: N(kt[1]),
- horizontal: kt[0],
- direction: kt[2],
- sub: !0,
- pos: [G[0] + kt[0] * M, G[1] + kt[1] * O]
- };
- })
- ),
- !1
- );
- return {
- type: E,
- clipText: d,
- radiusX: M,
- radiusY: O,
- left: G[0] - M,
- top: G[1] - O,
- right: G[0] + M,
- bottom: G[1] + O,
- poses: x,
- splitter: S
- };
- } else if (E === 'inset') {
- var D = Ar(b || '0 0 0 0'),
- L = D.indexOf('round'),
- V = (L > -1 ? D.slice(0, L) : D).length,
- F = D.slice(V + 1),
- Q = B(D.slice(0, V), 4),
- j = Q[0],
- K = Q[1],
- X = K === void 0 ? j : K,
- W = Q[2],
- _ = W === void 0 ? j : W,
- rt = Q[3],
- lt = rt === void 0 ? X : rt,
- et = B(
- [j, _].map(function (kt) {
- return gt(kt, e);
- }),
- 2
- ),
- Z = et[0],
- J = et[1],
- vt = B(
- [lt, X].map(function (kt) {
- return gt(kt, r);
- }),
- 2
- ),
- at = vt[0],
- it = vt[1],
- ut = r - it,
- At = e - J,
- pt = Ls(F, ut - at, At - Z, at, Z),
- x = U(U([], B(tn(Z, ut, At, at)), !1), B(pt), !1);
- return {
- type: 'inset',
- clipText: d,
- poses: x,
- top: Z,
- left: at,
- right: ut,
- bottom: At,
- radius: F,
- splitter: S
- };
- } else if (E === 'rect') {
- var D = Br(b || '0px, '.concat(r, 'px, ').concat(e, 'px, 0px'));
- S = ',';
- var st = B(
- D.map(function (cr) {
- var vr = ge(cr).value;
- return vr;
- }),
- 4
- ),
- ct = st[0],
- it = st[1],
- J = st[2],
- at = st[3],
- x = tn(ct, it, J, at);
- return {
- type: 'rect',
- clipText: d,
- poses: x,
- top: ct,
- right: it,
- bottom: J,
- left: at,
- values: D,
- splitter: S
- };
- }
- }
- }
- }
- function Ed(t, r, e, n, a) {
- var i = t[r],
- o = i.direction,
- s = i.sub,
- u = t.map(function () {
- return [0, 0];
- }),
- l = o ? o.split('') : [];
- if (n && r < 8) {
- var f = l.filter(function (M) {
- return M === 'w' || M === 'e';
- }),
- c = l.filter(function (M) {
- return M === 'n' || M === 's';
- }),
- v = f[0],
- p = c[0];
- u[r] = e;
- var d = B(Us(t), 2),
- g = d[0],
- h = d[1],
- A = g && h ? g / h : 0;
- if (A && a) {
- var m = (r + 4) % 8,
- E = t[m].pos,
- y = [0, 0];
- o.indexOf('w') > -1 ? (y[0] = -1) : o.indexOf('e') > -1 && (y[0] = 1),
- o.indexOf('n') > -1 ? (y[1] = -1) : o.indexOf('s') > -1 && (y[1] = 1);
- var b = Os([g, h], e, A, y, !0),
- C = g + b[0],
- S = h + b[1],
- D = E[1],
- x = E[1],
- w = E[0],
- T = E[0];
- y[0] === -1
- ? (w = T - C)
- : y[0] === 1
- ? (T = w + C)
- : ((w = w - C / 2), (T = T + C / 2)),
- y[1] === -1
- ? (D = x - S)
- : (y[1] === 1 || (D = x - S / 2), (x = D + S));
- var I = tn(D, T, x, w);
- t.forEach(function (M, O) {
- (u[O][0] = I[O].pos[0] - M.pos[0]), (u[O][1] = I[O].pos[1] - M.pos[1]);
- });
- } else
- t.forEach(function (M, O) {
- var P = M.direction;
- P &&
- (P.indexOf(v) > -1 && (u[O][0] = e[0]),
- P.indexOf(p) > -1 && (u[O][1] = e[1]));
- }),
- v && ((u[1][0] = e[0] / 2), (u[5][0] = e[0] / 2)),
- p && ((u[3][1] = e[1] / 2), (u[7][1] = e[1] / 2));
- } else
- o && !s
- ? l.forEach(function (M) {
- var O = M === 'n' || M === 's';
- t.forEach(function (P, z) {
- var H = P.direction,
- G = P.horizontal,
- L = P.vertical;
- !H ||
- H.indexOf(M) === -1 ||
- (u[z] = [O || !G ? 0 : e[0], !O || !L ? 0 : e[1]]);
- });
- })
- : (u[r] = e);
- return u;
- }
- function yd(t, r) {
- var e = B(Xo(t, r), 2),
- n = e[0],
- a = e[1],
- i = r.datas,
- o = i.clipPath,
- s = i.clipIndex,
- u = o,
- l = u.type,
- f = u.poses,
- c = u.splitter,
- v = f.map(function (m) {
- return m.pos;
- });
- if (l === 'polygon') v.splice(s, 0, [n, a]);
- else if (l === 'inset') {
- var p = dd.indexOf(s),
- d = gd.indexOf(s),
- g = f.length;
- if (
- (Ad(f, v, 8, p, d, n, a, v[4][0], v[4][1], v[0][0], v[0][1]),
- g === f.length)
- )
- return;
- } else return;
- var h = Xa(t, o, v),
- A = ''.concat(l, '(').concat(h.join(c), ')');
- Y(
- t,
- 'onClip',
- ot(
- t,
- r,
- R(
- {
- clipEventType: 'added',
- clipType: l,
- poses: v,
- clipStyles: h,
- clipStyle: A,
- distX: 0,
- distY: 0
- },
- Lt({ clipPath: A }, r)
- )
- )
- );
- }
- function Dd(t, r) {
- var e = r.datas,
- n = e.clipPath,
- a = e.clipIndex,
- i = n,
- o = i.type,
- s = i.poses,
- u = i.splitter,
- l = s.map(function (p) {
- return p.pos;
- }),
- f = l.length;
- if (o === 'polygon') s.splice(a, 1), l.splice(a, 1);
- else if (o === 'inset') {
- if (a < 8 || (hd(s, l, a, 8, f), f === s.length)) return;
- } else return;
- var c = Xa(t, n, l),
- v = ''.concat(o, '(').concat(c.join(u), ')');
- Y(
- t,
- 'onClip',
- ot(
- t,
- r,
- R(
- {
- clipEventType: 'removed',
- clipType: o,
- poses: l,
- clipStyles: c,
- clipStyle: v,
- distX: 0,
- distY: 0
- },
- Lt({ clipPath: v }, r)
- )
- )
- );
- }
- var bd = {
- name: 'clippable',
- props: [
- 'clippable',
- 'defaultClipPath',
- 'customClipPath',
- 'keepRatio',
- 'clipRelative',
- 'clipArea',
- 'dragWithClip',
- 'clipTargetBounds',
- 'clipVerticalGuidelines',
- 'clipHorizontalGuidelines',
- 'clipSnapThreshold'
- ],
- events: ['clipStart', 'clip', 'clipEnd'],
- css: [
- '.control.clip-control {\nbackground: #6d6;\ncursor: pointer;\n}\n.control.clip-control.clip-radius {\nbackground: #d66;\n}\n.line.clip-line {\nbackground: #6e6;\ncursor: move;\nz-index: 1;\n}\n.clip-area {\nposition: absolute;\ntop: 0;\nleft: 0;\n}\n.clip-ellipse {\nposition: absolute;\ncursor: move;\nborder: 1px solid #6d6;\nborder: var(--zoompx) solid #6d6;\nborder-radius: 50%;\ntransform-origin: 0px 0px;\n}',
- ':host {\n--bounds-color: #d66;\n}',
- '.guideline {\npointer-events: none;\nz-index: 2;\n}',
- '.line.guideline.bounds {\nbackground: #d66;\nbackground: var(--bounds-color);\n}'
- ],
- render: function (t, r) {
- var e = t.props,
- n = e.customClipPath,
- a = e.defaultClipPath,
- i = e.clipArea,
- o = e.zoom,
- s = e.groupable,
- u = t.getState(),
- l = u.target,
- f = u.width,
- c = u.height,
- v = u.allMatrix,
- p = u.is3d,
- d = u.left,
- g = u.top,
- h = u.pos1,
- A = u.pos2,
- m = u.pos3,
- E = u.pos4,
- y = u.clipPathState,
- b = u.snapBoundInfos,
- C = u.rotation;
- if (!l || s) return [];
- var S = Qi(l, f, c, a || 'inset', y || n);
- if (!S) return [];
- var D = p ? 4 : 3,
- x = S.type,
- w = S.poses,
- T = w.map(function (it) {
- var ut = Ct(v, it.pos, D);
- return [ut[0] - d, ut[1] - g];
- }),
- I = [],
- M = [],
- O = x === 'rect',
- P = x === 'inset',
- z = x === 'polygon';
- if (O || P || z) {
- var H = P ? T.slice(0, 8) : T;
- M = H.map(function (it, ut) {
- var At = ut === 0 ? H[H.length - 1] : H[ut - 1],
- pt = Et(At, it),
- st = ys(At, it);
- return r.createElement('div', {
- key: 'clipLine'.concat(ut),
- className: $('line', 'clip-line', 'snap-control'),
- 'data-clip-index': ut,
- style: {
- width: ''.concat(st, 'px'),
- transform: 'translate('
- .concat(At[0], 'px, ')
- .concat(At[1], 'px) rotate(')
- .concat(pt, 'rad) scaleY(')
- .concat(o, ')')
- }
- });
- });
- }
- if (
- ((I = T.map(function (it, ut) {
- return r.createElement('div', {
- key: 'clipControl'.concat(ut),
- className: $('control', 'clip-control', 'snap-control'),
- 'data-clip-index': ut,
- style: {
- transform: 'translate('
- .concat(it[0], 'px, ')
- .concat(it[1], 'px) rotate(')
- .concat(C, 'rad) scale(')
- .concat(o, ')')
- }
- });
- })),
- P &&
- I.push.apply(
- I,
- U(
- [],
- B(
- T.slice(8).map(function (it, ut) {
- return r.createElement('div', {
- key: 'clipRadiusControl'.concat(ut),
- className: $(
- 'control',
- 'clip-control',
- 'clip-radius',
- 'snap-control'
- ),
- 'data-clip-index': 8 + ut,
- style: {
- transform: 'translate('
- .concat(it[0], 'px, ')
- .concat(it[1], 'px) rotate(')
- .concat(C, 'rad) scale(')
- .concat(o, ')')
- }
- });
- })
- ),
- !1
- )
- ),
- x === 'circle' || x === 'ellipse')
- ) {
- var G = S.left,
- L = S.top,
- V = S.radiusX,
- F = S.radiusY,
- Q = B(tt(Ct(v, [G, L], D), Ct(v, [0, 0], D)), 2),
- j = Q[0],
- K = Q[1],
- X = 'none';
- if (!i) {
- for (
- var W = Math.max(10, V / 5, F / 5), _ = [], rt = 0;
- rt <= W;
- ++rt
- ) {
- var lt = ((Math.PI * 2) / W) * rt;
- _.push([V + (V - o) * Math.cos(lt), F + (F - o) * Math.sin(lt)]);
- }
- _.push([V, -2]),
- _.push([-2, -2]),
- _.push([-2, F * 2 + 2]),
- _.push([V * 2 + 2, F * 2 + 2]),
- _.push([V * 2 + 2, -2]),
- _.push([V, -2]),
- (X = 'polygon('.concat(
- _.map(function (it) {
- return ''.concat(it[0], 'px ').concat(it[1], 'px');
- }).join(', '),
- ')'
- ));
- }
- I.push(
- r.createElement('div', {
- key: 'clipEllipse',
- className: $('clip-ellipse', 'snap-control'),
- style: {
- width: ''.concat(V * 2, 'px'),
- height: ''.concat(F * 2, 'px'),
- clipPath: X,
- transform: 'translate('
- .concat(-d + j, 'px, ')
- .concat(-g + K, 'px) ')
- .concat(gn(v))
- }
- })
- );
- }
- if (i) {
- var et = qt(U([h, A, m, E], B(T), !1)),
- Z = et.width,
- J = et.height,
- vt = et.left,
- at = et.top;
- if (z || O || P) {
- var _ = P ? T.slice(0, 8) : T;
- I.push(
- r.createElement('div', {
- key: 'clipArea',
- className: $('clip-area', 'snap-control'),
- style: {
- width: ''.concat(Z, 'px'),
- height: ''.concat(J, 'px'),
- transform: 'translate('.concat(vt, 'px, ').concat(at, 'px)'),
- clipPath: 'polygon('.concat(
- _.map(function (ut) {
- return ''
- .concat(ut[0] - vt, 'px ')
- .concat(ut[1] - at, 'px');
- }).join(', '),
- ')'
- )
- }
- })
- );
- }
- }
- return (
- b &&
- ['vertical', 'horizontal'].forEach(function (it) {
- var ut = b[it],
- At = it === 'horizontal';
- ut.isSnap &&
- M.push.apply(
- M,
- U(
- [],
- B(
- ut.snap.posInfos.map(function (pt, st) {
- var ct = pt.pos,
- yt = tt(Ct(v, At ? [0, ct] : [ct, 0], D), [d, g]),
- Ft = tt(Ct(v, At ? [f, ct] : [ct, c], D), [d, g]);
- return ve(
- r,
- '',
- yt,
- Ft,
- o,
- 'clip'.concat(it, 'snap').concat(st),
- 'guideline'
- );
- })
- ),
- !1
- )
- ),
- ut.isBound &&
- M.push.apply(
- M,
- U(
- [],
- B(
- ut.bounds.map(function (pt, st) {
- var ct = pt.pos,
- yt = tt(Ct(v, At ? [0, ct] : [ct, 0], D), [d, g]),
- Ft = tt(Ct(v, At ? [f, ct] : [ct, c], D), [d, g]);
- return ve(
- r,
- '',
- yt,
- Ft,
- o,
- 'clip'.concat(it, 'bounds').concat(st),
- 'guideline',
- 'bounds',
- 'bold'
- );
- })
- ),
- !1
- )
- );
- }),
- U(U([], B(I), !1), B(M), !1)
- );
- },
- dragControlCondition: function (t, r) {
- return (
- r.inputEvent &&
- (r.inputEvent.target.getAttribute('class') || '').indexOf('clip') > -1
- );
- },
- dragStart: function (t, r) {
- var e = t.props,
- n = e.dragWithClip,
- a = n === void 0 ? !0 : n;
- return a ? !1 : this.dragControlStart(t, r);
- },
- drag: function (t, r) {
- return this.dragControl(t, R(R({}, r), { isDragTarget: !0 }));
- },
- dragEnd: function (t, r) {
- return this.dragControlEnd(t, r);
- },
- dragControlStart: function (t, r) {
- var e = t.state,
- n = t.props,
- a = n.defaultClipPath,
- i = n.customClipPath,
- o = e.target,
- s = e.width,
- u = e.height,
- l = r.inputEvent ? r.inputEvent.target : null,
- f = (l && l.getAttribute('class')) || '',
- c = r.datas,
- v = Qi(o, s, u, a || 'inset', i);
- if (!v) return !1;
- var p = v.clipText,
- d = v.type,
- g = v.poses,
- h = Y(
- t,
- 'onClipStart',
- ot(t, r, {
- clipType: d,
- clipStyle: p,
- poses: g.map(function (A) {
- return A.pos;
- })
- })
- );
- return h === !1
- ? ((c.isClipStart = !1), !1)
- : ((c.isControl = f && f.indexOf('clip-control') > -1),
- (c.isLine = f.indexOf('clip-line') > -1),
- (c.isArea =
- f.indexOf('clip-area') > -1 || f.indexOf('clip-ellipse') > -1),
- (c.clipIndex = l
- ? parseInt(l.getAttribute('data-clip-index'), 10)
- : -1),
- (c.clipPath = v),
- (c.isClipStart = !0),
- (e.clipPathState = p),
- Pr(t, r),
- !0);
- },
- dragControl: function (t, r) {
- var e,
- n,
- a,
- i = r.datas,
- o = r.originalDatas,
- s = r.isDragTarget;
- if (!i.isClipStart) return !1;
- var u = i,
- l = u.isControl,
- f = u.isLine,
- c = u.isArea,
- v = u.clipIndex,
- p = u.clipPath;
- if (!p) return !1;
- var d = Or(t.props, 'clippable'),
- g = d.keepRatio,
- h = 0,
- A = 0,
- m = o.draggable,
- E = ir(r);
- s && m
- ? ((e = B(m.prevBeforeDist, 2)), (h = e[0]), (A = e[1]))
- : ((n = B(E, 2)), (h = n[0]), (A = n[1]));
- var y = [h, A],
- b = t.state,
- C = b.width,
- S = b.height,
- D = !c && !l && !f,
- x = p.type,
- w = p.poses,
- T = p.splitter,
- I = w.map(function (mt) {
- return mt.pos;
- });
- D && ((h = -h), (A = -A));
- var M = !l || w[v].direction === 'nesw',
- O = x === 'inset' || x === 'rect',
- P = w.map(function () {
- return [0, 0];
- });
- if (l && !M) {
- var z = w[v],
- H = z.horizontal,
- G = z.vertical,
- L = [h * N(H), A * N(G)];
- P = Ed(w, v, L, O, g);
- } else
- M &&
- (P = I.map(function () {
- return [h, A];
- }));
- var V = I.map(function (mt, zt) {
- return ft(mt, P[zt]);
- }),
- F = U([], B(V), !1);
- b.snapBoundInfos = null;
- var Q = p.type === 'circle',
- j = p.type === 'ellipse';
- if (Q || j) {
- var K = qt(V),
- X = N(K.bottom - K.top),
- W = N(j ? K.right - K.left : X),
- _ = V[0][1] + X,
- rt = V[0][0] - W,
- lt = V[0][0] + W;
- Q && (F.push([lt, K.bottom]), P.push([1, 0])),
- F.push([K.left, _]),
- P.push([0, 1]),
- F.push([rt, K.bottom]),
- P.push([1, 0]);
- }
- var et = ds(
- (d.clipHorizontalGuidelines || []).map(function (mt) {
- return gt(''.concat(mt), S);
- }),
- (d.clipVerticalGuidelines || []).map(function (mt) {
- return gt(''.concat(mt), C);
- }),
- C,
- S
- ),
- Z = [],
- J = [];
- if (Q || j) (Z = [F[4][0], F[2][0]]), (J = [F[1][1], F[3][1]]);
- else if (O) {
- var vt = [F[0], F[2], F[4], F[6]],
- at = [P[0], P[2], P[4], P[6]];
- (Z = vt
- .filter(function (mt, zt) {
- return at[zt][0];
- })
- .map(function (mt) {
- return mt[0];
- })),
- (J = vt
- .filter(function (mt, zt) {
- return at[zt][1];
- })
- .map(function (mt) {
- return mt[1];
- }));
- } else
- (Z = F.filter(function (mt, zt) {
- return P[zt][0];
- }).map(function (mt) {
- return mt[0];
- })),
- (J = F.filter(function (mt, zt) {
- return P[zt][1];
- }).map(function (mt) {
- return mt[1];
- }));
- var it = [0, 0],
- ut = Mi(
- et,
- d.clipTargetBounds && { left: 0, top: 0, right: C, bottom: S },
- Z,
- J,
- 5
- ),
- At = ut.horizontal,
- pt = ut.vertical,
- st = At.offset,
- ct = pt.offset;
- if (
- (At.isBound && (it[1] += st),
- pt.isBound && (it[0] += ct),
- (j || Q) && P[0][0] === 0 && P[0][1] === 0)
- ) {
- var K = qt(V),
- yt = K.bottom - K.top,
- Ft = j ? K.right - K.left : yt,
- kt = pt.isBound ? N(ct) : pt.snapIndex === 0 ? -ct : ct,
- Dt = At.isBound ? N(st) : At.snapIndex === 0 ? -st : st;
- (Ft -= kt),
- (yt -= Dt),
- Q && ((yt = os(pt, At) > 0 ? yt : Ft), (Ft = yt));
- var Bt = F[0];
- (F[1][1] = Bt[1] - yt),
- (F[2][0] = Bt[0] + Ft),
- (F[3][1] = Bt[1] + yt),
- (F[4][0] = Bt[0] - Ft);
- } else if (O && g && l) {
- var cr = B(Us(w), 2),
- vr = cr[0],
- Za = cr[1],
- _a = vr && Za ? vr / Za : 0,
- js = w[v],
- xe = js.direction || '',
- An = F[1][1],
- _ = F[5][1],
- rt = F[7][0],
- lt = F[3][0];
- N(st) <= N(ct)
- ? (st = (Xt(st) * N(ct)) / _a)
- : (ct = Xt(ct) * N(st) * _a),
- xe.indexOf('w') > -1
- ? (rt -= ct)
- : xe.indexOf('e') > -1
- ? (lt -= ct)
- : ((rt += ct / 2), (lt -= ct / 2)),
- xe.indexOf('n') > -1
- ? (An -= st)
- : xe.indexOf('s') > -1
- ? (_ -= st)
- : ((An += st / 2), (_ -= st / 2));
- var Zs = tn(An, lt, _, rt);
- F.forEach(function (ri, ru) {
- var Cn;
- (Cn = B(Zs[ru].pos, 2)), (ri[0] = Cn[0]), (ri[1] = Cn[1]);
- });
- } else
- F.forEach(function (mt, zt) {
- var ti = P[zt];
- ti[0] && (mt[0] -= ct), ti[1] && (mt[1] -= st);
- });
- var $a = Xa(t, p, V),
- mn = ''.concat(x, '(').concat($a.join(T), ')');
- if (((b.clipPathState = mn), Q || j))
- (Z = [F[4][0], F[2][0]]), (J = [F[1][1], F[3][1]]);
- else if (O) {
- var vt = [F[0], F[2], F[4], F[6]];
- (Z = vt.map(function (zt) {
- return zt[0];
- })),
- (J = vt.map(function (zt) {
- return zt[1];
- }));
- } else
- (Z = F.map(function (mt) {
- return mt[0];
- })),
- (J = F.map(function (mt) {
- return mt[1];
- }));
- if (
- ((b.snapBoundInfos = Mi(
- et,
- d.clipTargetBounds && { left: 0, top: 0, right: C, bottom: S },
- Z,
- J,
- 1
- )),
- m)
- ) {
- var _s = b.is3d,
- $s = b.allMatrix,
- tu = _s ? 4 : 3,
- Sn = it;
- s && (Sn = [y[0] + it[0] - E[0], y[1] + it[1] - E[1]]),
- (m.deltaOffset = ht($s, [Sn[0], Sn[1], 0, 0], tu));
- }
- return (
- Y(
- t,
- 'onClip',
- ot(
- t,
- r,
- R(
- {
- clipEventType: 'changed',
- clipType: x,
- poses: V,
- clipStyle: mn,
- clipStyles: $a,
- distX: h,
- distY: A
- },
- Lt(((a = {}), (a[x === 'rect' ? 'clip' : 'clipPath'] = mn), a), r)
- )
- )
- ),
- !0
- );
- },
- dragControlEnd: function (t, r) {
- this.unset(t);
- var e = r.isDrag,
- n = r.datas,
- a = r.isDouble,
- i = n.isLine,
- o = n.isClipStart,
- s = n.isControl;
- return o
- ? (Y(t, 'onClipEnd', Qt(t, r, {})),
- a && (s ? Dd(t, r) : i && yd(t, r)),
- a || e)
- : !1;
- },
- unset: function (t) {
- (t.state.clipPathState = ''), (t.state.snapBoundInfos = null);
- }
- },
- xd = {
- name: 'originDraggable',
- props: ['originDraggable', 'originRelative'],
- events: ['dragOriginStart', 'dragOrigin', 'dragOriginEnd'],
- css: [
- ':host[data-able-origindraggable] .control.origin {\npointer-events: auto;\n}'
- ],
- dragControlCondition: function (t, r) {
- return r.isRequest
- ? r.requestAble === 'originDraggable'
- : Tt(r.inputEvent.target, $('origin'));
- },
- dragControlStart: function (t, r) {
- var e = r.datas;
- Pr(t, r);
- var n = ot(t, r, {
- dragStart: Ht.dragStart(t, new Wr().dragStart([0, 0], r))
- }),
- a = Y(t, 'onDragOriginStart', n);
- return (
- (e.startOrigin = t.state.transformOrigin),
- (e.startTargetOrigin = t.state.targetOrigin),
- (e.prevOrigin = [0, 0]),
- (e.isDragOrigin = !0),
- a === !1 ? ((e.isDragOrigin = !1), !1) : n
- );
- },
- dragControl: function (t, r) {
- var e = r.datas,
- n = r.isPinch,
- a = r.isRequest;
- if (!e.isDragOrigin) return !1;
- var i = B(ir(r), 2),
- o = i[0],
- s = i[1],
- u = t.state,
- l = u.width,
- f = u.height,
- c = u.offsetMatrix,
- v = u.targetMatrix,
- p = u.is3d,
- d = t.props.originRelative,
- g = d === void 0 ? !0 : d,
- h = p ? 4 : 3,
- A = [o, s];
- if (a) {
- var m = r.distOrigin;
- (m[0] || m[1]) && (A = m);
- }
- var E = ft(e.startOrigin, A),
- y = ft(e.startTargetOrigin, A),
- b = tt(A, e.prevOrigin),
- C = be(c, v, E, h),
- S = t.getRect(),
- D = qt(kr(C, l, f, h)),
- x = [S.left - D.left, S.top - D.top];
- e.prevOrigin = A;
- var w = [Zt(y[0], l, g), Zt(y[1], f, g)].join(' '),
- T = Ht.drag(t, De(r, t.state, x, !!n, !1)),
- I = ot(
- t,
- r,
- R(
- R(
- {
- width: l,
- height: f,
- origin: E,
- dist: A,
- delta: b,
- transformOrigin: w,
- drag: T
- },
- Lt({ transformOrigin: w, transform: T.transform }, r)
- ),
- { afterTransform: T.transform }
- )
- );
- return Y(t, 'onDragOrigin', I), I;
- },
- dragControlEnd: function (t, r) {
- var e = r.datas;
- return e.isDragOrigin ? (Y(t, 'onDragOriginEnd', Qt(t, r, {})), !0) : !1;
- },
- dragGroupControlCondition: function (t, r) {
- return this.dragControlCondition(t, r);
- },
- dragGroupControlStart: function (t, r) {
- var e = this.dragControlStart(t, r);
- return !!e;
- },
- dragGroupControl: function (t, r) {
- var e = this.dragControl(t, r);
- return e ? ((t.transformOrigin = e.transformOrigin), !0) : !1;
- },
- request: function (t) {
- var r = {},
- e = t.getRect(),
- n = 0,
- a = 0,
- i = e.transformOrigin,
- o = [0, 0];
- return {
- isControl: !0,
- requestStart: function () {
- return { datas: r };
- },
- request: function (s) {
- return (
- 'deltaOrigin' in s
- ? ((o[0] += s.deltaOrigin[0]), (o[1] += s.deltaOrigin[1]))
- : 'origin' in s
- ? ((o[0] = s.origin[0] - i[0]), (o[1] = s.origin[1] - i[1]))
- : ('x' in s
- ? (n = s.x - e.left)
- : 'deltaX' in s && (n += s.deltaX),
- 'y' in s
- ? (a = s.y - e.top)
- : 'deltaY' in s && (a += s.deltaY)),
- { datas: r, distX: n, distY: a, distOrigin: o }
- );
- },
- requestEnd: function () {
- return { datas: r, isDrag: !0 };
- }
- };
- }
- };
- function wd(t, r, e, n) {
- var a = t.filter(function (u) {
- var l = u.virtual,
- f = u.horizontal;
- return f && !l;
- }).length,
- i = t.filter(function (u) {
- var l = u.virtual,
- f = u.vertical;
- return f && !l;
- }).length,
- o = -1;
- if (
- (r === 0 && (a === 0 ? (o = 0) : a === 1 && (o = 1)),
- r === 2 && (a <= 2 ? (o = 2) : a <= 3 && (o = 3)),
- r === 3 && (i === 0 ? (o = 4) : i < 4 && (o = 7)),
- r === 1 && (i <= 1 ? (o = 5) : i <= 2 && (o = 6)),
- !(o === -1 || !t[o].virtual))
- ) {
- var s = t[o];
- Rd(t, o), o < 4 ? (s.pos[0] = e) : (s.pos[1] = n);
- }
- }
- function Rd(t, r) {
- r < 4
- ? t.slice(0, r + 1).forEach(function (e) {
- e.virtual = !1;
- })
- : (t[0].virtual && (t[0].virtual = !1),
- t.slice(4, r + 1).forEach(function (e) {
- e.virtual = !1;
- }));
- }
- function Bd(t, r) {
- r < 4
- ? t.slice(r, 4).forEach(function (e) {
- e.virtual = !0;
- })
- : t.slice(r).forEach(function (e) {
- e.virtual = !0;
- });
- }
- function Xi(t, r, e, n, a) {
- n === void 0 && (n = [0, 0]);
- var i = [];
- return !t || t === '0px' ? (i = []) : (i = Ar(t)), Ls(i, r, e, 0, 0, n, a);
- }
- function qi(t, r, e, n, a) {
- var i = t.state,
- o = i.width,
- s = i.height,
- u = Qa(a, t.props.roundRelative, o, s),
- l = u.raws,
- f = u.styles,
- c = u.radiusPoses,
- v = md(c, l),
- p = v.horizontals,
- d = v.verticals,
- g = f.join(' ');
- i.borderRadiusState = g;
- var h = ot(
- t,
- r,
- R(
- {
- horizontals: p,
- verticals: d,
- borderRadius: g,
- width: o,
- height: s,
- delta: n,
- dist: e
- },
- Lt({ borderRadius: g }, r)
- )
- );
- return Y(t, 'onRound', h), h;
- }
- function Ki(t) {
- var r,
- e,
- n = t.getState().style,
- a = n.borderRadius || '';
- if (!a && t.props.groupable) {
- var i = t.moveables[0],
- o = t.getTargets()[0];
- o &&
- ((i == null ? void 0 : i.props.target) === o
- ? ((a =
- (e =
- (r = t.moveables[0]) === null || r === void 0
- ? void 0
- : r.state.style.borderRadius) !== null && e !== void 0
- ? e
- : ''),
- (n.borderRadius = a))
- : ((a = La(o).borderRadius), (n.borderRadius = a)));
- }
- return a;
- }
- var Md = {
- name: 'roundable',
- props: [
- 'roundable',
- 'roundRelative',
- 'minRoundControls',
- 'maxRoundControls',
- 'roundClickable',
- 'roundPadding',
- 'isDisplayShadowRoundControls'
- ],
- events: [
- 'roundStart',
- 'round',
- 'roundEnd',
- 'roundGroupStart',
- 'roundGroup',
- 'roundGroupEnd'
- ],
- css: [
- '.control.border-radius {\nbackground: #d66;\ncursor: pointer;\nz-index: 3;\n}',
- '.control.border-radius.vertical {\nbackground: #d6d;\nz-index: 2;\n}',
- '.control.border-radius.virtual {\nopacity: 0.5;\nz-index: 1;\n}',
- ':host.round-line-clickable .line.direction {\ncursor: pointer;\n}'
- ],
- className: function (t) {
- var r = t.props.roundClickable;
- return r === !0 || r === 'line' ? $('round-line-clickable') : '';
- },
- requestStyle: function () {
- return ['borderRadius'];
- },
- requestChildStyle: function () {
- return ['borderRadius'];
- },
- render: function (t, r) {
- var e = t.getState(),
- n = e.target,
- a = e.width,
- i = e.height,
- o = e.allMatrix,
- s = e.is3d,
- u = e.left,
- l = e.top,
- f = e.borderRadiusState,
- c = t.props,
- v = c.minRoundControls,
- p = v === void 0 ? [0, 0] : v,
- d = c.maxRoundControls,
- g = d === void 0 ? [4, 4] : d,
- h = c.zoom,
- A = c.roundPadding,
- m = A === void 0 ? 0 : A,
- E = c.isDisplayShadowRoundControls,
- y = c.groupable;
- if (!n) return null;
- var b = f || Ki(t),
- C = s ? 4 : 3,
- S = Xi(b, a, i, p, !0);
- if (!S) return null;
- var D = 0,
- x = 0,
- w = y ? [0, 0] : [u, l];
- return S.map(function (T, I) {
- var M = T.horizontal,
- O = T.vertical,
- P = T.direction || '',
- z = U([], B(T.pos), !1);
- (x += Math.abs(M)),
- (D += Math.abs(O)),
- M && P.indexOf('n') > -1 && (z[1] -= m),
- O && P.indexOf('w') > -1 && (z[0] -= m),
- M && P.indexOf('s') > -1 && (z[1] += m),
- O && P.indexOf('e') > -1 && (z[0] += m);
- var H = tt(Ct(o, z, C), w),
- G = T.vertical
- ? D <= g[1] && (E || !T.virtual)
- : x <= g[0] && (E || !T.virtual);
- return r.createElement('div', {
- key: 'borderRadiusControl'.concat(I),
- className: $(
- 'control',
- 'border-radius',
- T.vertical ? 'vertical' : '',
- T.virtual ? 'virtual' : ''
- ),
- 'data-radius-index': I,
- style: {
- display: G ? 'block' : 'none',
- transform: 'translate('
- .concat(H[0], 'px, ')
- .concat(H[1], 'px) scale(')
- .concat(h, ')')
- }
- });
- });
- },
- dragControlCondition: function (t, r) {
- if (!r.inputEvent || r.isRequest) return !1;
- var e = r.inputEvent.target.getAttribute('class') || '';
- return (
- e.indexOf('border-radius') > -1 ||
- (e.indexOf('moveable-line') > -1 && e.indexOf('moveable-direction') > -1)
- );
- },
- dragGroupControlCondition: function (t, r) {
- return this.dragControlCondition(t, r);
- },
- dragControlStart: function (t, r) {
- var e = r.inputEvent,
- n = r.datas,
- a = e.target,
- i = a.getAttribute('class') || '',
- o = i.indexOf('border-radius') > -1,
- s =
- i.indexOf('moveable-line') > -1 && i.indexOf('moveable-direction') > -1,
- u = o ? parseInt(a.getAttribute('data-radius-index'), 10) : -1,
- l = -1;
- if (s) {
- var f = a.getAttribute('data-line-key') || '';
- f &&
- ((l = parseInt(f.replace(/render-line-/g, ''), 10)),
- isNaN(l) && (l = -1));
- }
- if (!o && !s) return !1;
- var c = ot(t, r, {}),
- v = Y(t, 'onRoundStart', c);
- if (v === !1) return !1;
- (n.lineIndex = l),
- (n.controlIndex = u),
- (n.isControl = o),
- (n.isLine = s),
- Pr(t, r);
- var p = t.props,
- d = p.roundRelative,
- g = p.minRoundControls,
- h = g === void 0 ? [0, 0] : g,
- A = t.state,
- m = A.width,
- E = A.height;
- (n.isRound = !0), (n.prevDist = [0, 0]);
- var y = Ki(t),
- b = Xi(y || '', m, E, h, !0) || [];
- return (
- (n.controlPoses = b),
- (A.borderRadiusState = Qa(b, d, m, E).styles.join(' ')),
- c
- );
- },
- dragControl: function (t, r) {
- var e = r.datas,
- n = e.controlPoses;
- if (!e.isRound || !e.isControl || !n.length) return !1;
- var a = e.controlIndex,
- i = B(ir(r), 2),
- o = i[0],
- s = i[1],
- u = [o, s],
- l = tt(u, e.prevDist),
- f = t.props.maxRoundControls,
- c = f === void 0 ? [4, 4] : f,
- v = t.state,
- p = v.width,
- d = v.height,
- g = n[a],
- h = g.vertical,
- A = g.horizontal,
- m = n.map(function (y) {
- var b = y.horizontal,
- C = y.vertical,
- S = [b * A * u[0], C * h * u[1]];
- if (b) {
- if (c[0] === 1) return S;
- if (c[0] < 4 && b !== A) return S;
- } else {
- if (c[1] === 0) return (S[1] = ((C * A * u[0]) / p) * d), S;
- if (h) {
- if (c[1] === 1) return S;
- if (c[1] < 4 && C !== h) return S;
- }
- }
- return [0, 0];
- });
- m[a] = u;
- var E = n.map(function (y, b) {
- return R(R({}, y), { pos: ft(y.pos, m[b]) });
- });
- return (
- a < 4
- ? E.slice(0, a + 1).forEach(function (y) {
- y.virtual = !1;
- })
- : E.slice(4, a + 1).forEach(function (y) {
- y.virtual = !1;
- }),
- (e.prevDist = [o, s]),
- qi(t, r, u, l, E)
- );
- },
- dragControlEnd: function (t, r) {
- var e = t.state;
- e.borderRadiusState = '';
- var n = r.datas,
- a = r.isDouble;
- if (!n.isRound) return !1;
- var i = n.isControl,
- o = n.controlIndex,
- s = n.isLine,
- u = n.lineIndex,
- l = n.controlPoses,
- f = l.filter(function (A) {
- var m = A.virtual;
- return m;
- }).length,
- c = t.props.roundClickable,
- v = c === void 0 ? !0 : c;
- if (a && v) {
- if (i && (v === !0 || v === 'control')) Bd(l, o);
- else if (s && (v === !0 || v === 'line')) {
- var p = B(Xo(t, r), 2),
- d = p[0],
- g = p[1];
- wd(l, u, d, g);
- }
- f !==
- l.filter(function (A) {
- var m = A.virtual;
- return m;
- }).length && qi(t, r, [0, 0], [0, 0], l);
- }
- var h = Qt(t, r, {});
- return Y(t, 'onRoundEnd', h), (e.borderRadiusState = ''), h;
- },
- dragGroupControlStart: function (t, r) {
- var e = this.dragControlStart(t, r);
- if (!e) return !1;
- var n = t.moveables,
- a = t.props.targets,
- i = $t(t, 'roundable', r),
- o = R(
- {
- targets: t.props.targets,
- events: i.map(function (s, u) {
- return R(R({}, s), {
- target: a[u],
- moveable: n[u],
- currentTarget: n[u]
- });
- })
- },
- e
- );
- return Y(t, 'onRoundGroupStart', o), e;
- },
- dragGroupControl: function (t, r) {
- var e = this.dragControl(t, r);
- if (!e) return !1;
- var n = t.moveables,
- a = t.props.targets,
- i = $t(t, 'roundable', r),
- o = R(
- {
- targets: t.props.targets,
- events: i.map(function (s, u) {
- return R(
- R(R({}, s), {
- target: a[u],
- moveable: n[u],
- currentTarget: n[u]
- }),
- Lt({ borderRadius: e.borderRadius }, s)
- );
- })
- },
- e
- );
- return Y(t, 'onRoundGroup', o), o;
- },
- dragGroupControlEnd: function (t, r) {
- var e = t.moveables,
- n = t.props.targets,
- a = $t(t, 'roundable', r);
- hn(t, 'onRound', function (s) {
- var u = R(
- {
- targets: t.props.targets,
- events: a.map(function (l, f) {
- return R(
- R(R({}, l), {
- target: n[f],
- moveable: e[f],
- currentTarget: e[f]
- }),
- Lt({ borderRadius: s.borderRadius }, l)
- );
- })
- },
- s
- );
- Y(t, 'onRoundGroup', u);
- });
- var i = this.dragControlEnd(t, r);
- if (!i) return !1;
- var o = R(
- {
- targets: t.props.targets,
- events: a.map(function (s, u) {
- var l;
- return R(R({}, s), {
- target: n[u],
- moveable: e[u],
- currentTarget: e[u],
- lastEvent:
- (l = s.datas) === null || l === void 0 ? void 0 : l.lastEvent
- });
- })
- },
- i
- );
- return Y(t, 'onRoundGroupEnd', o), o;
- },
- unset: function (t) {
- t.state.borderRadiusState = '';
- }
- };
- function Id(t, r) {
- var e = r ? 4 : 3,
- n = St(e),
- a = 'matrix'.concat(r ? '3d' : '', '(').concat(n.join(','), ')');
- return t === a || t === 'matrix(1,0,0,1,0,0)';
- }
- var Vs = {
- isPinch: !0,
- name: 'beforeRenderable',
- props: [],
- events: [
- 'beforeRenderStart',
- 'beforeRender',
- 'beforeRenderEnd',
- 'beforeRenderGroupStart',
- 'beforeRenderGroup',
- 'beforeRenderGroupEnd'
- ],
- dragRelation: 'weak',
- setTransform: function (t, r) {
- var e = t.state,
- n = e.is3d,
- a = e.targetMatrix,
- i = e.inlineTransform,
- o = n
- ? 'matrix3d('.concat(a.join(','), ')')
- : 'matrix('.concat(Po(a, !0), ')'),
- s = !i || i === 'none' ? o : i;
- r.datas.startTransforms = Id(s, n) ? [] : Ar(s);
- },
- resetStyle: function (t) {
- var r = t.datas;
- (r.nextStyle = {}),
- (r.nextTransforms = t.datas.startTransforms),
- (r.nextTransformAppendedIndexes = []);
- },
- fillDragStartParams: function (t, r) {
- return ot(t, r, {
- setTransform: function (e) {
- r.datas.startTransforms = Rt(e) ? e : Ar(e);
- },
- isPinch: !!r.isPinch
- });
- },
- fillDragParams: function (t, r) {
- return ot(t, r, { isPinch: !!r.isPinch });
- },
- dragStart: function (t, r) {
- this.setTransform(t, r),
- this.resetStyle(r),
- Y(t, 'onBeforeRenderStart', this.fillDragStartParams(t, r));
- },
- drag: function (t, r) {
- r.datas.startTransforms || this.setTransform(t, r),
- this.resetStyle(r),
- Y(t, 'onBeforeRender', ot(t, r, { isPinch: !!r.isPinch }));
- },
- dragEnd: function (t, r) {
- r.datas.startTransforms || (this.setTransform(t, r), this.resetStyle(r)),
- Y(
- t,
- 'onBeforeRenderEnd',
- ot(t, r, { isPinch: !!r.isPinch, isDrag: r.isDrag })
- );
- },
- dragGroupStart: function (t, r) {
- var e = this;
- this.dragStart(t, r);
- var n = $t(t, 'beforeRenderable', r),
- a = t.moveables,
- i = n.map(function (o, s) {
- var u = a[s];
- return (
- e.setTransform(u, o), e.resetStyle(o), e.fillDragStartParams(u, o)
- );
- });
- Y(
- t,
- 'onBeforeRenderGroupStart',
- ot(t, r, {
- isPinch: !!r.isPinch,
- targets: t.props.targets,
- setTransform: function () {},
- events: i
- })
- );
- },
- dragGroup: function (t, r) {
- var e = this;
- this.drag(t, r);
- var n = $t(t, 'beforeRenderable', r),
- a = t.moveables,
- i = n.map(function (o, s) {
- var u = a[s];
- return e.resetStyle(o), e.fillDragParams(u, o);
- });
- Y(
- t,
- 'onBeforeRenderGroup',
- ot(t, r, { isPinch: !!r.isPinch, targets: t.props.targets, events: i })
- );
- },
- dragGroupEnd: function (t, r) {
- this.dragEnd(t, r),
- Y(
- t,
- 'onBeforeRenderGroupEnd',
- ot(t, r, {
- isPinch: !!r.isPinch,
- isDrag: r.isDrag,
- targets: t.props.targets
- })
- );
- },
- dragControlStart: function (t, r) {
- return this.dragStart(t, r);
- },
- dragControl: function (t, r) {
- return this.drag(t, r);
- },
- dragControlEnd: function (t, r) {
- return this.dragEnd(t, r);
- },
- dragGroupControlStart: function (t, r) {
- return this.dragGroupStart(t, r);
- },
- dragGroupControl: function (t, r) {
- return this.dragGroup(t, r);
- },
- dragGroupControlEnd: function (t, r) {
- return this.dragGroupEnd(t, r);
- }
- },
- Ws = {
- name: 'renderable',
- props: [],
- events: [
- 'renderStart',
- 'render',
- 'renderEnd',
- 'renderGroupStart',
- 'renderGroup',
- 'renderGroupEnd'
- ],
- dragRelation: 'weak',
- dragStart: function (t, r) {
- Y(t, 'onRenderStart', ot(t, r, { isPinch: !!r.isPinch }));
- },
- drag: function (t, r) {
- Y(t, 'onRender', this.fillDragParams(t, r));
- },
- dragAfter: function (t, r) {
- return this.drag(t, r);
- },
- dragEnd: function (t, r) {
- Y(t, 'onRenderEnd', this.fillDragEndParams(t, r));
- },
- dragGroupStart: function (t, r) {
- Y(
- t,
- 'onRenderGroupStart',
- ot(t, r, { isPinch: !!r.isPinch, targets: t.props.targets })
- );
- },
- dragGroup: function (t, r) {
- var e = this,
- n = $t(t, 'beforeRenderable', r),
- a = t.moveables,
- i = n.map(function (o, s) {
- var u = a[s];
- return e.fillDragParams(u, o);
- });
- Y(
- t,
- 'onRenderGroup',
- ot(
- t,
- r,
- R(
- R(
- {
- isPinch: !!r.isPinch,
- targets: t.props.targets,
- transform: Te(r),
- transformObject: {}
- },
- Lt(Oe(r))
- ),
- { events: i }
- )
- )
- );
- },
- dragGroupEnd: function (t, r) {
- var e = this,
- n = $t(t, 'beforeRenderable', r),
- a = t.moveables,
- i = n.map(function (o, s) {
- var u = a[s];
- return e.fillDragEndParams(u, o);
- });
- Y(
- t,
- 'onRenderGroupEnd',
- ot(
- t,
- r,
- R(
- {
- isPinch: !!r.isPinch,
- isDrag: r.isDrag,
- targets: t.props.targets,
- events: i,
- transformObject: {},
- transform: Te(r)
- },
- Lt(Oe(r))
- )
- )
- );
- },
- dragControlStart: function (t, r) {
- return this.dragStart(t, r);
- },
- dragControl: function (t, r) {
- return this.drag(t, r);
- },
- dragControlAfter: function (t, r) {
- return this.dragAfter(t, r);
- },
- dragControlEnd: function (t, r) {
- return this.dragEnd(t, r);
- },
- dragGroupControlStart: function (t, r) {
- return this.dragGroupStart(t, r);
- },
- dragGroupControl: function (t, r) {
- return this.dragGroup(t, r);
- },
- dragGroupControlEnd: function (t, r) {
- return this.dragGroupEnd(t, r);
- },
- fillDragParams: function (t, r) {
- var e = {};
- return (
- Vr(qe(r) || []).forEach(function (n) {
- e[n.name] = n.functionValue;
- }),
- ot(
- t,
- r,
- R(
- { isPinch: !!r.isPinch, transformObject: e, transform: Te(r) },
- Lt(Oe(r))
- )
- )
- );
- },
- fillDragEndParams: function (t, r) {
- var e = {};
- return (
- Vr(qe(r) || []).forEach(function (n) {
- e[n.name] = n.functionValue;
- }),
- ot(
- t,
- r,
- R(
- {
- isPinch: !!r.isPinch,
- isDrag: r.isDrag,
- transformObject: e,
- transform: Te(r)
- },
- Lt(Oe(r))
- )
- )
- );
- }
- };
- function le(t, r, e, n, a, i, o) {
- (i.clientDistX = i.distX), (i.clientDistY = i.distY);
- var s = a === 'Start',
- u = a === 'End',
- l = a === 'After',
- f = t.state.target,
- c = i.isRequest,
- v = n.indexOf('Control') > -1;
- if (!f || (s && v && !c && t.areaElement === i.inputEvent.target)) return !1;
- var p = U([], B(t[r]), !1);
- if (c) {
- var d = i.requestAble;
- p.some(function (I) {
- return I.name === d;
- }) ||
- p.push.apply(
- p,
- U(
- [],
- B(
- t.props.ables.filter(function (I) {
- return I.name === d;
- })
- ),
- !1
- )
- );
- }
- if (
- !p.length ||
- p.every(function (I) {
- return I.dragRelation;
- })
- )
- return !1;
- var g = i.inputEvent,
- h;
- u && g && (h = document.elementFromPoint(i.clientX, i.clientY) || g.target);
- var A = !1,
- m = function () {
- var I;
- (A = !0), (I = i.stop) === null || I === void 0 || I.call(i);
- },
- E =
- s &&
- (!t.targetGesto ||
- !t.controlGesto ||
- !t.targetGesto.isFlag() ||
- !t.controlGesto.isFlag());
- E && t.updateRect(a, !0, !1);
- var y = i.datas,
- b = v ? 'controlGesto' : 'targetGesto',
- C = t[b],
- S = function (I, M, O) {
- if (!(M in I) || C !== t[b]) return !1;
- var P = I.name,
- z = y[P] || (y[P] = {});
- if ((s && (z.isEventStart = !O || !I[O] || I[O](t, i)), !z.isEventStart))
- return !1;
- var H = I[M](
- t,
- R(R({}, i), { stop: m, datas: z, originalDatas: y, inputTarget: h })
- );
- return t._emitter.off(), s && H === !1 && (z.isEventStart = !1), H;
- };
- E &&
- p.forEach(function (I) {
- I.unset && I.unset(t);
- }),
- S(Vs, 'drag'.concat(n).concat(a));
- var D = 0,
- x = 0;
- e.forEach(function (I) {
- if (A) return !1;
- var M = ''.concat(I).concat(n).concat(a),
- O = ''.concat(I).concat(n, 'Condition');
- a === '' && !c && Ts(t.state, i);
- var P = p.filter(function (G) {
- return G[M];
- });
- P = P.filter(function (G, L) {
- return G.name && P.indexOf(G) === L;
- });
- var z = P.filter(function (G) {
- return S(G, M, O);
- }),
- H = z.length;
- A && ++D,
- H && ++x,
- !A &&
- s &&
- P.length &&
- !H &&
- (D += P.filter(function (G) {
- var L = G.name,
- V = y[L];
- return V.isEventStart ? G.dragRelation !== 'strong' : !1;
- }).length
- ? 1
- : 0);
- }),
- (!l || x) && S(Ws, 'drag'.concat(n).concat(a));
- var w = C !== t[b] || D === e.length;
- if (
- ((u || A || w) &&
- ((t.state.gestos = {}),
- t.moveables &&
- t.moveables.forEach(function (I) {
- I.state.gestos = {};
- }),
- p.forEach(function (I) {
- I.unset && I.unset(t);
- })),
- s &&
- !w &&
- !c &&
- x &&
- t.props.preventDefault &&
- (i == null || i.preventDefault()),
- t.isUnmounted || w)
- )
- return !1;
- if ((!s && x && !o) || u) {
- var T = t.props.flushSync || Ss;
- T(function () {
- t.updateRect(u ? a : '', !0, !1), t.forceUpdate();
- });
- }
- return !s && !u && !l && x && !o && le(t, r, e, n, a + 'After', i), !0;
- }
- function ua(t) {
- return function (r) {
- var e,
- n = r.inputEvent.target,
- a = t.areaElement,
- i = t._dragTarget;
- return !i ||
- (!((e = t.controlGesto) === null || e === void 0) && e.isFlag())
- ? !1
- : n === i ||
- i.contains(n) ||
- n === a ||
- (!t.isMoveableElement(n) && !t.controlBox.contains(n)) ||
- Tt(n, 'moveable-area') ||
- Tt(n, 'moveable-padding') ||
- Tt(n, 'moveable-edgeDraggable');
- };
- }
- function Ys(t, r, e) {
- var n = t.controlBox,
- a = [],
- i = t.props.dragTarget;
- return (
- a.push(n),
- (!t.props.dragArea || i) && a.push(r),
- qa(t, a, 'targetAbles', e, { dragStart: ua(t), pinchStart: ua(t) })
- );
- }
- function qa(t, r, e, n, a) {
- a === void 0 && (a = {});
- var i = e === 'targetAbles',
- o = t.props,
- s = o.pinchOutside,
- u = o.pinchThreshold,
- l = o.preventClickEventOnDrag,
- f = o.preventClickDefault,
- c = o.checkInput,
- v = o.dragFocusedInput,
- p = o.preventDefault,
- d = p === void 0 ? !0 : p,
- g = o.dragContainer,
- h = nr(g, !0),
- A = {
- preventDefault: d,
- preventRightClick: !0,
- preventWheelClick: !0,
- container: h || hr(t.getControlBoxElement()),
- pinchThreshold: u,
- pinchOutside: s,
- preventClickEventOnDrag: i ? l : !1,
- preventClickEventOnDragStart: i ? f : !1,
- preventClickEventByCondition: i
- ? null
- : function (y) {
- return t.controlBox.contains(y.target);
- },
- checkInput: i ? c : !1,
- dragFocusedInput: v
- },
- m = new iv(r, A),
- E = n === 'Control';
- return (
- ['drag', 'pinch'].forEach(function (y) {
- ['Start', '', 'End'].forEach(function (b) {
- m.on(''.concat(y).concat(b), function (C) {
- var S,
- D = C.eventType,
- x = y === 'drag' && C.isPinch;
- if (a[D] && !a[D](C)) {
- C.stop();
- return;
- }
- if (!x) {
- var w = y === 'drag' ? [y] : ['drag', y],
- T = le(t, e, w, n, b, C);
- T
- ? (t.props.stopPropagation || (b === 'Start' && E)) &&
- ((S = C == null ? void 0 : C.inputEvent) === null ||
- S === void 0 ||
- S.stopPropagation())
- : C.stop();
- }
- });
- });
- }),
- m
- );
- }
- var Td = (function () {
- function t(r, e, n) {
- var a = this;
- (this.target = r),
- (this.moveable = e),
- (this.eventName = n),
- (this.ables = []),
- (this._onEvent = function (i) {
- var o = a.eventName,
- s = a.moveable;
- s.state.disableNativeEvent ||
- a.ables.forEach(function (u) {
- u[o](s, { inputEvent: i });
- });
- }),
- r.addEventListener(n.toLowerCase(), this._onEvent);
- }
- return (
- (t.prototype.setAbles = function (r) {
- this.ables = r;
- }),
- (t.prototype.destroy = function () {
- this.target.removeEventListener(
- this.eventName.toLowerCase(),
- this._onEvent
- ),
- (this.target = null),
- (this.moveable = null);
- }),
- t
- );
- })();
- function Od(t, r, e, n) {
- var a;
- e === void 0 && (e = r);
- var i = _o(t, r),
- o = i.matrixes,
- s = i.is3d,
- u = i.targetMatrix,
- l = i.transformOrigin,
- f = i.targetOrigin,
- c = i.offsetContainer,
- v = i.hasFixed,
- p = i.zoom,
- d = qv(c, e),
- g = d.matrixes,
- h = d.is3d,
- A = d.offsetContainer,
- m = d.zoom,
- E = n || h || s,
- y = E ? 4 : 3,
- b = t.tagName.toLowerCase() !== 'svg' && 'ownerSVGElement' in t,
- C = u,
- S = St(y),
- D = St(y),
- x = St(y),
- w = St(y),
- T = o.length,
- I = g
- .map(function (L) {
- return R(R({}, L), {
- matrix: L.matrix ? U([], B(L.matrix), !1) : void 0
- });
- })
- .reverse();
- o.reverse(),
- !s && E && ((C = rr(C, 3, 4)), aa(o)),
- !h && E && aa(I),
- I.forEach(function (L) {
- D = ht(D, L.matrix, y);
- });
- var M = e || Cr(t),
- O =
- ((a = I[0]) === null || a === void 0 ? void 0 : a.target) ||
- pe(M, M, !0).offsetParent,
- P = I.slice(1).reduce(function (L, V) {
- return ht(L, V.matrix, y);
- }, St(y));
- o.forEach(function (L, V) {
- if (
- (T - 2 === V && (x = S.slice()),
- T - 1 === V && (w = S.slice()),
- !L.matrix)
- ) {
- var F = o[V + 1],
- Q = Jp(L, F, O, y, ht(P, S, y));
- L.matrix = Ir(Q, y);
- }
- S = ht(S, L.matrix, y);
- });
- var z = !b && s;
- C || (C = St(z ? 4 : 3));
- var H = gn(b && C.length === 16 ? rr(C, 4, 3) : C, z),
- G = D;
- return (
- (D = To(D, y, y)),
- {
- hasZoom: p !== 1 || m !== 1,
- hasFixed: v,
- matrixes: o,
- rootMatrix: D,
- originalRootMatrix: G,
- beforeMatrix: x,
- offsetMatrix: w,
- allMatrix: S,
- targetMatrix: C,
- targetTransform: H,
- inlineTransform: t.style.transform,
- transformOrigin: l,
- targetOrigin: f,
- is3d: E,
- offsetContainer: c,
- offsetRootContainer: A
- }
- );
- }
- function Pd(t, r, e, n) {
- e === void 0 && (e = r);
- var a = 0,
- i = 0,
- o = 0,
- s = {},
- u = Ds(t);
- if ((t && ((a = u.offsetWidth), (i = u.offsetHeight)), t)) {
- var l = Od(t, r, e, n),
- f = Lr(l.allMatrix, l.transformOrigin, a, i);
- s = R(R({}, l), f);
- var c = Lr(l.allMatrix, [50, 50], 100, 100);
- o = bs([c.pos1, c.pos2], c.direction);
- }
- var v = n ? 4 : 3;
- return R(
- R(R({ hasZoom: !1, width: a, height: i, rotation: o }, u), {
- originalRootMatrix: St(v),
- rootMatrix: St(v),
- beforeMatrix: St(v),
- offsetMatrix: St(v),
- allMatrix: St(v),
- targetMatrix: St(v),
- targetTransform: '',
- inlineTransform: '',
- transformOrigin: [0, 0],
- targetOrigin: [0, 0],
- is3d: !!n,
- left: 0,
- top: 0,
- right: 0,
- bottom: 0,
- origin: [0, 0],
- pos1: [0, 0],
- pos2: [0, 0],
- pos3: [0, 0],
- pos4: [0, 0],
- direction: 1,
- hasFixed: !1,
- offsetContainer: null,
- offsetRootContainer: null,
- matrixes: []
- }),
- s
- );
- }
- function la(t, r, e, n, a, i) {
- i === void 0 && (i = []);
- var o = 1,
- s = [0, 0],
- u = ke(),
- l = ke(),
- f = ke(),
- c = ke(),
- v = [0, 0],
- p = {},
- d = Pd(r, e, a, !0);
- if (r) {
- var g = Yt(r);
- i.forEach(function (I) {
- p[I] = g(I);
- });
- var h = d.is3d ? 4 : 3,
- A = Lr(
- d.offsetMatrix,
- ft(d.transformOrigin, Oo(d.targetMatrix, h)),
- d.width,
- d.height
- );
- (o = A.direction),
- (s = ft(A.origin, [A.left - d.left, A.top - d.top])),
- (c = ue(d.offsetRootContainer));
- var m = pe(n, n, !0).offsetParent || d.offsetRootContainer;
- if (d.hasZoom) {
- var E = Lr(
- ht(d.originalRootMatrix, d.allMatrix),
- d.transformOrigin,
- d.width,
- d.height
- ),
- y = Lr(
- d.originalRootMatrix,
- Ze(Yt(m)('transformOrigin')).map(function (I) {
- return parseFloat(I);
- }),
- m.offsetWidth,
- m.offsetHeight
- );
- if (((u = On(E, c)), (f = On(y, c, m, !0)), t)) {
- var b = E.left,
- C = E.top;
- l = On({ left: b, top: C, bottom: C, right: C }, c);
- }
- } else {
- (u = ue(r)), (f = Xv(m)), t && (l = ue(t));
- var S = f.left,
- D = f.top,
- x = f.clientLeft,
- w = f.clientTop,
- T = [u.left - S, u.top - D];
- v = tt(Xr(d.rootMatrix, T, 4), [x + d.left, w + d.top]);
- }
- }
- return R(
- {
- targetClientRect: u,
- containerClientRect: f,
- moveableClientRect: l,
- rootContainerClientRect: c,
- beforeDirection: o,
- beforeOrigin: s,
- originalBeforeOrigin: s,
- target: r,
- style: p,
- offsetDelta: v
- },
- d
- );
- }
- function Ji(t) {
- var r = t.pos1,
- e = t.pos2,
- n = t.pos3,
- a = t.pos4;
- if (!r || !e || !n || !a) return null;
- var i = Tr([r, e, n, a]),
- o = [i.minX, i.minY],
- s = tt(t.origin, o);
- return (
- (r = tt(r, o)),
- (e = tt(e, o)),
- (n = tt(n, o)),
- (a = tt(a, o)),
- R(R({}, t), {
- left: t.left,
- top: t.top,
- posDelta: o,
- pos1: r,
- pos2: e,
- pos3: n,
- pos4: a,
- origin: s,
- beforeOrigin: s,
- isPersisted: !0
- })
- );
- }
- var qr = (function (t) {
- Ee(r, t);
- function r() {
- var e = (t !== null && t.apply(this, arguments)) || this;
- return (
- (e.state = R(
- {
- container: null,
- gestos: {},
- renderPoses: [
- [0, 0],
- [0, 0],
- [0, 0],
- [0, 0]
- ],
- disableNativeEvent: !1,
- posDelta: [0, 0]
- },
- la(null)
- )),
- (e.renderState = {}),
- (e.enabledAbles = []),
- (e.targetAbles = []),
- (e.controlAbles = []),
- (e.rotation = 0),
- (e.scale = [1, 1]),
- (e.isMoveableMounted = !1),
- (e.isUnmounted = !1),
- (e.events = { mouseEnter: null, mouseLeave: null }),
- (e._emitter = new sn()),
- (e._prevOriginalDragTarget = null),
- (e._originalDragTarget = null),
- (e._prevDragTarget = null),
- (e._dragTarget = null),
- (e._prevDragArea = !1),
- (e._isPropTargetChanged = !1),
- (e._hasFirstTarget = !1),
- (e._reiszeObserver = null),
- (e._observerId = 0),
- (e._mutationObserver = null),
- (e._rootContainer = null),
- (e._viewContainer = null),
- (e._viewClassNames = []),
- (e._store = {}),
- (e.checkUpdateRect = function () {
- if (!e.isDragging()) {
- var n = e.props.parentMoveable;
- if (n) {
- n.checkUpdateRect();
- return;
- }
- Xf(e._observerId),
- (e._observerId = oo(function () {
- e.isDragging() || e.updateRect();
- }));
- }
- }),
- (e._onPreventClick = function (n) {
- n.stopPropagation(), n.preventDefault();
- }),
- e
- );
- }
- return (
- (r.prototype.render = function () {
- var e = this.props,
- n = this.getState(),
- a = e.parentPosition,
- i = e.className,
- o = e.target,
- s = e.zoom,
- u = e.cspNonce,
- l = e.translateZ,
- f = e.cssStyled,
- c = e.groupable,
- v = e.linePadding,
- p = e.controlPadding;
- this._checkUpdateRootContainer(),
- this.checkUpdate(),
- this.updateRenderPoses();
- var d = B(a || [0, 0], 2),
- g = d[0],
- h = d[1],
- A = n.left,
- m = n.top,
- E = n.target,
- y = n.direction,
- b = n.hasFixed,
- C = n.offsetDelta,
- S = e.targets,
- D = this.isDragging(),
- x = {};
- this.getEnabledAbles().forEach(function (P) {
- x['data-able-'.concat(P.name.toLowerCase())] = !0;
- });
- var w = this._getAbleClassName(),
- T =
- (S && S.length && (E || c)) ||
- o ||
- (!this._hasFirstTarget && this.state.isPersisted),
- I =
- this.controlBox ||
- this.props.firstRenderState ||
- this.props.persistData,
- M = [A - g, m - h];
- !c && e.useAccuratePosition && ((M[0] += C[0]), (M[1] += C[1]));
- var O = {
- position: b ? 'fixed' : 'absolute',
- display: T ? 'block' : 'none',
- visibility: I ? 'visible' : 'hidden',
- transform: 'translate3d('
- .concat(M[0], 'px, ')
- .concat(M[1], 'px, ')
- .concat(l, ')'),
- '--zoom': s,
- '--zoompx': ''.concat(s, 'px')
- };
- return (
- v && (O['--moveable-line-padding'] = v),
- p && (O['--moveable-control-padding'] = p),
- _t(
- f,
- R(
- {
- cspNonce: u,
- ref: or(this, 'controlBox'),
- className: ''
- .concat(
- $(
- 'control-box',
- y === -1 ? 'reverse' : '',
- D ? 'dragging' : ''
- ),
- ' '
- )
- .concat(w, ' ')
- .concat(i)
- },
- x,
- { onClick: this._onPreventClick, style: O }
- ),
- this.renderAbles(),
- this._renderLines()
- )
- );
- }),
- (r.prototype.componentDidMount = function () {
- (this.isMoveableMounted = !0), (this.isUnmounted = !1);
- var e = this.props,
- n = e.parentMoveable,
- a = e.container;
- this._checkUpdateRootContainer(),
- this._checkUpdateViewContainer(),
- this._updateTargets(),
- this._updateNativeEvents(),
- this._updateEvents(),
- this.updateCheckInput(),
- this._updateObserver(this.props),
- !a &&
- !n &&
- !this.state.isPersisted &&
- (this.updateRect('', !1, !1), this.forceUpdate());
- }),
- (r.prototype.componentDidUpdate = function (e) {
- this._checkUpdateRootContainer(),
- this._checkUpdateViewContainer(),
- this._updateNativeEvents(),
- this._updateTargets(),
- this._updateEvents(),
- this.updateCheckInput(),
- this._updateObserver(e);
- }),
- (r.prototype.componentWillUnmount = function () {
- var e, n;
- (this.isMoveableMounted = !1),
- (this.isUnmounted = !0),
- this._emitter.off(),
- (e = this._reiszeObserver) === null || e === void 0 || e.disconnect(),
- (n = this._mutationObserver) === null ||
- n === void 0 ||
- n.disconnect();
- var a = this._viewContainer;
- a && this._changeAbleViewClassNames([]), Hr(this, !1), Hr(this, !0);
- var i = this.events;
- for (var o in i) {
- var s = i[o];
- s && s.destroy();
- }
- }),
- (r.prototype.getTargets = function () {
- var e = this.props.target;
- return e ? [e] : [];
- }),
- (r.prototype.getAble = function (e) {
- var n = this.props.ables || [];
- return Kt(n, function (a) {
- return a.name === e;
- });
- }),
- (r.prototype.getContainer = function () {
- var e = this.props,
- n = e.parentMoveable,
- a = e.wrapperMoveable,
- i = e.container;
- return (
- i ||
- (a && a.getContainer()) ||
- (n && n.getContainer()) ||
- this.controlBox.parentElement
- );
- }),
- (r.prototype.getControlBoxElement = function () {
- return this.controlBox;
- }),
- (r.prototype.isMoveableElement = function (e) {
- var n;
- return (
- e &&
- (
- ((n = e.getAttribute) === null || n === void 0
- ? void 0
- : n.call(e, 'class')) || ''
- ).indexOf(Ba) > -1
- );
- }),
- (r.prototype.dragStart = function (e) {
- var n = this.targetGesto,
- a = this.controlGesto;
- return (
- n && ua(this)({ inputEvent: e })
- ? n.isFlag() || n.triggerDragStart(e)
- : a &&
- this.isMoveableElement(e.target) &&
- (a.isFlag() || a.triggerDragStart(e)),
- this
- );
- }),
- (r.prototype.hitTest = function (e) {
- var n = this.state,
- a = n.target,
- i = n.pos1,
- o = n.pos2,
- s = n.pos3,
- u = n.pos4,
- l = n.targetClientRect;
- if (!a) return 0;
- var f;
- if (jr(e)) {
- var c = e.getBoundingClientRect();
- f = { left: c.left, top: c.top, width: c.width, height: c.height };
- } else f = R({ width: 0, height: 0 }, e);
- var v = f.left,
- p = f.top,
- d = f.width,
- g = f.height,
- h = Si([i, o, u, s], l),
- A = $c(h, [
- [v, p],
- [v + d, p],
- [v + d, p + g],
- [v, p + g]
- ]),
- m = No(h);
- return !A || !m ? 0 : Math.min(100, (A / m) * 100);
- }),
- (r.prototype.isInside = function (e, n) {
- var a = this.state,
- i = a.target,
- o = a.pos1,
- s = a.pos2,
- u = a.pos3,
- l = a.pos4,
- f = a.targetClientRect;
- return i ? Qn([e, n], Si([o, s, l, u], f)) : !1;
- }),
- (r.prototype.updateRect = function (e, n, a) {
- a === void 0 && (a = !0);
- var i = this.props,
- o = !i.parentPosition && !i.wrapperMoveable;
- o && Yr(!0);
- var s = i.parentMoveable,
- u = this.state,
- l = u.target || i.target,
- f = this.getContainer(),
- c = s ? s._rootContainer : this._rootContainer,
- v = la(this.controlBox, l, f, f, c || f, this._getRequestStyles());
- if (!l && this._hasFirstTarget && i.persistData) {
- var p = Ji(i.persistData);
- for (var d in p) v[d] = p[d];
- }
- o && Yr(), this.updateState(v, s ? !1 : a);
- }),
- (r.prototype.isDragging = function (e) {
- var n,
- a,
- i = this.targetGesto,
- o = this.controlGesto;
- if (i != null && i.isFlag()) {
- if (!e) return !0;
- var s = i.getEventData();
- return !!(!((n = s[e]) === null || n === void 0) && n.isEventStart);
- }
- if (o != null && o.isFlag()) {
- if (!e) return !0;
- var s = o.getEventData();
- return !!(!((a = s[e]) === null || a === void 0) && a.isEventStart);
- }
- return !1;
- }),
- (r.prototype.updateTarget = function (e) {
- this.updateRect(e, !0);
- }),
- (r.prototype.getRect = function () {
- var e = this.state,
- n = jt(this.state),
- a = B(n, 4),
- i = a[0],
- o = a[1],
- s = a[2],
- u = a[3],
- l = qt(n),
- f = e.width,
- c = e.height,
- v = l.width,
- p = l.height,
- d = l.left,
- g = l.top,
- h = [e.left, e.top],
- A = ft(h, e.origin),
- m = ft(h, e.beforeOrigin),
- E = e.transformOrigin;
- return {
- width: v,
- height: p,
- left: d,
- top: g,
- pos1: i,
- pos2: o,
- pos3: s,
- pos4: u,
- offsetWidth: f,
- offsetHeight: c,
- beforeOrigin: m,
- origin: A,
- transformOrigin: E,
- rotation: this.getRotation()
- };
- }),
- (r.prototype.getManager = function () {
- return this;
- }),
- (r.prototype.stopDrag = function (e) {
- if (!e || e === 'target') {
- var n = this.targetGesto;
- (n == null ? void 0 : n.isIdle()) === !1 && ia(this, !1),
- n == null || n.stop();
- }
- if (!e || e === 'control') {
- var n = this.controlGesto;
- (n == null ? void 0 : n.isIdle()) === !1 && ia(this, !0),
- n == null || n.stop();
- }
- }),
- (r.prototype.getRotation = function () {
- var e = this.state,
- n = e.pos1,
- a = e.pos2,
- i = e.direction;
- return ed(n, a, i);
- }),
- (r.prototype.request = function (e, n, a) {
- n === void 0 && (n = {});
- var i = this.props,
- o = i.ables,
- s = i.groupable,
- u = o.filter(function (g) {
- return g.name === e;
- })[0];
- if (this.isDragging() || !u || !u.request)
- return {
- request: function () {
- return this;
- },
- requestEnd: function () {
- return this;
- }
- };
- var l = this,
- f = u.request(this),
- c = a || n.isInstant,
- v = f.isControl ? 'controlAbles' : 'targetAbles',
- p = ''.concat(s ? 'Group' : '').concat(f.isControl ? 'Control' : ''),
- d = {
- request: function (g) {
- return (
- le(
- l,
- v,
- ['drag'],
- p,
- '',
- R(R({}, f.request(g)), { requestAble: e, isRequest: !0 }),
- c
- ),
- this
- );
- },
- requestEnd: function () {
- return (
- le(
- l,
- v,
- ['drag'],
- p,
- 'End',
- R(R({}, f.requestEnd()), { requestAble: e, isRequest: !0 }),
- c
- ),
- this
- );
- }
- };
- return (
- le(
- l,
- v,
- ['drag'],
- p,
- 'Start',
- R(R({}, f.requestStart(n)), { requestAble: e, isRequest: !0 }),
- c
- ),
- c ? d.request(n).requestEnd() : d
- );
- }),
- (r.prototype.destroy = function () {
- this.componentWillUnmount();
- }),
- (r.prototype.updateRenderPoses = function () {
- var e = this.getState(),
- n = this.props,
- a = n.padding,
- i = e.originalBeforeOrigin,
- o = e.transformOrigin,
- s = e.allMatrix,
- u = e.is3d,
- l = e.pos1,
- f = e.pos2,
- c = e.pos3,
- v = e.pos4,
- p = e.left,
- d = e.top,
- g = e.isPersisted;
- if (!a) {
- e.renderPoses = [l, f, c, v];
- return;
- }
- var h = Gs(a),
- A = h.left,
- m = h.top,
- E = h.bottom,
- y = h.right,
- b = u ? 4 : 3,
- C = [];
- g
- ? (C = o)
- : this.controlBox && n.groupable
- ? (C = i)
- : (C = ft(i, [p, d]));
- var S = We(
- b,
- Ir(
- C.map(function (D) {
- return -D;
- }),
- b
- ),
- s,
- Ir(o, b)
- );
- e.renderPoses = [
- Ne(S, l, [-A, -m], b),
- Ne(S, f, [y, -m], b),
- Ne(S, c, [-A, E], b),
- Ne(S, v, [y, E], b)
- ];
- }),
- (r.prototype.checkUpdate = function () {
- this._isPropTargetChanged = !1;
- var e = this.props,
- n = e.target,
- a = e.container,
- i = e.parentMoveable,
- o = this.state,
- s = o.target,
- u = o.container;
- if (!(!s && !n)) {
- this.updateAbles();
- var l = !oa(s, n),
- f = l || !oa(u, a);
- if (f) {
- var c = a || this.controlBox;
- c && this.unsetAbles(),
- this.updateState({ target: n, container: a }),
- !i && c && this.updateRect('End', !1, !1),
- (this._isPropTargetChanged = l);
- }
- }
- }),
- (r.prototype.waitToChangeTarget = function () {
- return new Promise(function () {});
- }),
- (r.prototype.triggerEvent = function (e, n) {
- this._emitter.trigger(e, n);
- var a = this.props[e];
- return a && a(n);
- }),
- (r.prototype.useCSS = function (e, n) {
- var a = this.props.customStyledMap,
- i = e + n;
- return a[i] || (a[i] = Ho(e, n)), a[i];
- }),
- (r.prototype.getState = function () {
- var e,
- n = this.props;
- (n.target ||
- (!((e = n.targets) === null || e === void 0) && e.length)) &&
- (this._hasFirstTarget = !0);
- var a = this.controlBox,
- i = n.persistData,
- o = n.firstRenderState;
- if (o && !a) return o;
- if (!this._hasFirstTarget && i) {
- var s = Ji(i);
- if (s) return this.updateState(s, !1), this.state;
- }
- return (this.state.isPersisted = !1), this.state;
- }),
- (r.prototype.updateSelectors = function () {}),
- (r.prototype.unsetAbles = function () {
- var e = this;
- this.targetAbles.forEach(function (n) {
- n.unset && n.unset(e);
- });
- }),
- (r.prototype.updateAbles = function (e, n) {
- e === void 0 && (e = this.props.ables), n === void 0 && (n = '');
- var a = this.props,
- i = a.triggerAblesSimultaneously,
- o = this.getEnabledAbles(e),
- s = 'drag'.concat(n, 'Start'),
- u = 'pinch'.concat(n, 'Start'),
- l = 'drag'.concat(n, 'ControlStart'),
- f = Ge(o, [s, u], i),
- c = Ge(o, [l], i);
- (this.enabledAbles = o),
- (this.targetAbles = f),
- (this.controlAbles = c);
- }),
- (r.prototype.updateState = function (e, n) {
- if (n) {
- if (this.isUnmounted) return;
- this.setState(e);
- } else {
- var a = this.state;
- for (var i in e) a[i] = e[i];
- }
- }),
- (r.prototype.getEnabledAbles = function (e) {
- e === void 0 && (e = this.props.ables);
- var n = this.props;
- return e.filter(function (a) {
- return a && ((a.always && n[a.name] !== !1) || n[a.name]);
- });
- }),
- (r.prototype.renderAbles = function () {
- var e = this,
- n = this.props,
- a = n.triggerAblesSimultaneously,
- i = { createElement: _t };
- return (
- (this.renderState = {}),
- $p(
- Is(
- Ge(this.getEnabledAbles(), ['render'], a).map(function (o) {
- var s = o.render;
- return s(e, i) || [];
- })
- ).filter(function (o) {
- return o;
- }),
- function (o) {
- var s = o.key;
- return s;
- }
- ).map(function (o) {
- return o[0];
- })
- );
- }),
- (r.prototype.updateCheckInput = function () {
- this.targetGesto &&
- (this.targetGesto.options.checkInput = this.props.checkInput);
- }),
- (r.prototype._getRequestStyles = function () {
- var e = this.getEnabledAbles().reduce(function (n, a) {
- var i,
- o,
- s =
- (o =
- (i = a.requestStyle) === null || i === void 0
- ? void 0
- : i.call(a)) !== null && o !== void 0
- ? o
- : [];
- return U(U([], B(n), !1), B(s), !1);
- }, U([], B(this.props.requestStyles || []), !1));
- return e;
- }),
- (r.prototype._updateObserver = function (e) {
- this._updateResizeObserver(e), this._updateMutationObserver(e);
- }),
- (r.prototype._updateEvents = function () {
- var e = this.controlBox,
- n = this.targetAbles.length,
- a = this.controlAbles.length,
- i = this._dragTarget,
- o = (!n && this.targetGesto) || this._isTargetChanged(!0);
- o && (Hr(this, !1), this.updateState({ gestos: {} })),
- a || Hr(this, !0),
- i && n && !this.targetGesto && (this.targetGesto = Ys(this, i, '')),
- !this.controlGesto &&
- a &&
- (this.controlGesto = qa(this, e, 'controlAbles', 'Control'));
- }),
- (r.prototype._updateTargets = function () {
- var e = this.props;
- (this._prevDragTarget = this._dragTarget),
- (this._prevOriginalDragTarget = this._originalDragTarget),
- (this._originalDragTarget = e.dragTarget || e.target),
- (this._dragTarget = nr(this._originalDragTarget, !0)),
- (this._prevDragArea = e.dragArea);
- }),
- (r.prototype._renderLines = function () {
- var e = this.props,
- n = e,
- a = n.zoom,
- i = n.hideDefaultLines,
- o = n.hideChildMoveableDefaultLines,
- s = n.parentMoveable;
- if (i || (s && o)) return [];
- var u = this.getState().renderPoses,
- l = { createElement: _t };
- return [
- [0, 1],
- [1, 3],
- [3, 2],
- [2, 0]
- ].map(function (f, c) {
- var v = B(f, 2),
- p = v[0],
- d = v[1];
- return ve(l, '', u[p], u[d], a, 'render-line-'.concat(c));
- });
- }),
- (r.prototype._isTargetChanged = function (e) {
- var n = this.props,
- a = n.dragTarget || n.target,
- i = this._prevOriginalDragTarget,
- o = this._prevDragArea,
- s = n.dragArea,
- u = !s && i !== a,
- l = (e || s) && o !== s;
- return u || l;
- }),
- (r.prototype._updateNativeEvents = function () {
- var e = this,
- n = this.props,
- a = n.dragArea ? this.areaElement : this.state.target,
- i = this.events,
- o = fr(i);
- if (this._isTargetChanged())
- for (var s in i) {
- var u = i[s];
- u && u.destroy(), (i[s] = null);
- }
- if (a) {
- var l = this.enabledAbles;
- o.forEach(function (f) {
- var c = Ge(l, [f]),
- v = c.length > 0,
- p = i[f];
- if (!v) {
- p && (p.destroy(), (i[f] = null));
- return;
- }
- p || ((p = new Td(a, e, f)), (i[f] = p)), p.setAbles(c);
- });
- }
- }),
- (r.prototype._checkUpdateRootContainer = function () {
- var e = this.props.rootContainer;
- !this._rootContainer && e && (this._rootContainer = nr(e, !0));
- }),
- (r.prototype._checkUpdateViewContainer = function () {
- var e = this.props.viewContainer;
- !this._viewContainer && e && (this._viewContainer = nr(e, !0));
- var n = this._viewContainer;
- n &&
- this._changeAbleViewClassNames(
- U(
- U([], B(this._getAbleViewClassNames()), !1),
- [this.isDragging() ? ld : ''],
- !1
- )
- );
- }),
- (r.prototype._changeAbleViewClassNames = function (e) {
- var n = this._viewContainer,
- a = Ms(e.filter(Boolean), function (l) {
- return l;
- }).map(function (l) {
- var f = B(l, 1),
- c = f[0];
- return c;
- }),
- i = this._viewClassNames,
- o = he(i, a),
- s = o.removed,
- u = o.added;
- s.forEach(function (l) {
- fo(n, i[l]);
- }),
- u.forEach(function (l) {
- lo(n, a[l]);
- }),
- (this._viewClassNames = a);
- }),
- (r.prototype._getAbleViewClassNames = function () {
- var e = this;
- return (
- this.getEnabledAbles()
- .map(function (n) {
- var a;
- return (
- ((a = n.viewClassName) === null || a === void 0
- ? void 0
- : a.call(n, e)) || ''
- );
- })
- .join(' ') + ' '.concat(this._getAbleClassName('-view'))
- ).split(/\s+/g);
- }),
- (r.prototype._getAbleClassName = function (e) {
- var n = this;
- e === void 0 && (e = '');
- var a = this.getEnabledAbles(),
- i = this.targetGesto,
- o = this.controlGesto,
- s = i != null && i.isFlag() ? i.getEventData() : {},
- u = o != null && o.isFlag() ? o.getEventData() : {};
- return a
- .map(function (l) {
- var f,
- c,
- v,
- p = l.name,
- d =
- ((f = l.className) === null || f === void 0
- ? void 0
- : f.call(l, n)) || '';
- return (
- ((!((c = s[p]) === null || c === void 0) && c.isEventStart) ||
- (!((v = u[p]) === null || v === void 0) && v.isEventStart)) &&
- (d += ' '.concat($(''.concat(p).concat(e, '-dragging')))),
- d.trim()
- );
- })
- .filter(Boolean)
- .join(' ');
- }),
- (r.prototype._updateResizeObserver = function (e) {
- var n,
- a = this.props,
- i = a.target,
- o = hr(this.getControlBoxElement());
- if (!o.ResizeObserver || !i || !a.useResizeObserver) {
- (n = this._reiszeObserver) === null || n === void 0 || n.disconnect();
- return;
- }
- if (!(e.target === i && this._reiszeObserver)) {
- var s = new o.ResizeObserver(this.checkUpdateRect);
- s.observe(i, { box: 'border-box' }), (this._reiszeObserver = s);
- }
- }),
- (r.prototype._updateMutationObserver = function (e) {
- var n = this,
- a,
- i = this.props,
- o = i.target,
- s = hr(this.getControlBoxElement());
- if (!s.MutationObserver || !o || !i.useMutationObserver) {
- (a = this._mutationObserver) === null ||
- a === void 0 ||
- a.disconnect();
- return;
- }
- if (!(e.target === o && this._mutationObserver)) {
- var u = new s.MutationObserver(function (l) {
- var f, c;
- try {
- for (var v = hv(l), p = v.next(); !p.done; p = v.next()) {
- var d = p.value;
- d.type === 'attributes' &&
- d.attributeName === 'style' &&
- n.checkUpdateRect();
- }
- } catch (g) {
- f = { error: g };
- } finally {
- try {
- p && !p.done && (c = v.return) && c.call(v);
- } finally {
- if (f) throw f.error;
- }
- }
- });
- u.observe(o, { attributes: !0 }), (this._mutationObserver = u);
- }
- }),
- (r.defaultProps = {
- target: null,
- dragTarget: null,
- container: null,
- rootContainer: null,
- origin: !0,
- parentMoveable: null,
- wrapperMoveable: null,
- isWrapperMounted: !1,
- parentPosition: null,
- warpSelf: !1,
- svgOrigin: '',
- dragContainer: null,
- useResizeObserver: !1,
- useMutationObserver: !1,
- preventDefault: !0,
- linePadding: 0,
- controlPadding: 0,
- ables: [],
- pinchThreshold: 20,
- dragArea: !1,
- passDragArea: !1,
- transformOrigin: '',
- className: '',
- zoom: 1,
- triggerAblesSimultaneously: !1,
- padding: {},
- pinchOutside: !0,
- checkInput: !1,
- dragFocusedInput: !1,
- groupable: !1,
- hideDefaultLines: !1,
- cspNonce: '',
- translateZ: 0,
- cssStyled: null,
- customStyledMap: {},
- props: {},
- stopPropagation: !1,
- preventClickDefault: !1,
- preventClickEventOnDrag: !0,
- flushSync: Ss,
- firstRenderState: null,
- persistData: null,
- viewContainer: null,
- requestStyles: [],
- useAccuratePosition: !1
- }),
- r
- );
- })(mo),
- Ka = {
- name: 'groupable',
- props: [
- 'defaultGroupRotate',
- 'useDefaultGroupRotate',
- 'defaultGroupOrigin',
- 'groupable',
- 'groupableProps',
- 'targetGroups',
- 'hideChildMoveableDefaultLines'
- ],
- events: [],
- render: function (t, r) {
- var e,
- n = t.props,
- a = n.targets || [],
- i = t.getState(),
- o = i.left,
- s = i.top,
- u = i.isPersisted,
- l = n.zoom || 1,
- f = t.renderGroupRects,
- c =
- ((e = n.persistData) === null || e === void 0
- ? void 0
- : e.children) || [];
- u
- ? (a = c.map(function () {
- return null;
- }))
- : (c = []);
- var v = t._store,
- p = Li(v, 'parentPosition', [o, s], function (g) {
- return g.join(',');
- }),
- d = Li(v, 'requestStyles', t.getRequestChildStyles(), function (g) {
- return g.join(',');
- });
- return (
- (t.moveables = t.moveables.slice(0, a.length)),
- U(
- U(
- [],
- B(
- a.map(function (g, h) {
- return r.createElement(qr, {
- key: 'moveable' + h,
- ref: eo(t, 'moveables', h),
- target: g,
- origin: !1,
- requestStyles: d,
- cssStyled: n.cssStyled,
- customStyledMap: n.customStyledMap,
- useResizeObserver: n.useResizeObserver,
- useMutationObserver: n.useMutationObserver,
- hideChildMoveableDefaultLines:
- n.hideChildMoveableDefaultLines,
- parentMoveable: t,
- parentPosition: [o, s],
- persistData: c[h],
- zoom: l
- });
- })
- ),
- !1
- ),
- B(
- Is(
- f.map(function (g, h) {
- var A = g.pos1,
- m = g.pos2,
- E = g.pos3,
- y = g.pos4,
- b = [A, m, E, y];
- return [
- [0, 1],
- [1, 3],
- [3, 2],
- [2, 0]
- ].map(function (C, S) {
- var D = B(C, 2),
- x = D[0],
- w = D[1];
- return ve(
- r,
- '',
- tt(b[x], p),
- tt(b[w], p),
- l,
- 'group-rect-'.concat(h, '-').concat(S)
- );
- });
- })
- )
- ),
- !1
- )
- );
- }
- },
- kd = ye('clickable', {
- props: ['clickable'],
- events: ['click', 'clickGroup'],
- always: !0,
- dragRelation: 'weak',
- dragStart: function () {},
- dragControlStart: function () {},
- dragGroupStart: function (t, r) {
- r.datas.inputTarget = r.inputEvent && r.inputEvent.target;
- },
- dragEnd: function (t, r) {
- var e = t.props.target,
- n = r.inputEvent,
- a = r.inputTarget,
- i = t.isMoveableElement(a),
- o = !i && t.controlBox.contains(a);
- if (!(!n || !a || r.isDrag || t.isMoveableElement(a) || o)) {
- var s = e.contains(a);
- Y(
- t,
- 'onClick',
- ot(t, r, {
- isDouble: r.isDouble,
- inputTarget: a,
- isTarget: e === a,
- moveableTarget: t.props.target,
- containsTarget: s
- })
- );
- }
- },
- dragGroupEnd: function (t, r) {
- var e = r.inputEvent,
- n = r.inputTarget;
- if (
- !(
- !e ||
- !n ||
- r.isDrag ||
- t.isMoveableElement(n) ||
- r.datas.inputTarget === n
- )
- ) {
- var a = t.props.targets,
- i = a.indexOf(n),
- o = i > -1,
- s = !1;
- i === -1 &&
- ((i = lr(a, function (u) {
- return u.contains(n);
- })),
- (s = i > -1)),
- Y(
- t,
- 'onClickGroup',
- ot(t, r, {
- isDouble: r.isDouble,
- targets: a,
- inputTarget: n,
- targetIndex: i,
- isTarget: o,
- containsTarget: s,
- moveableTarget: a[i]
- })
- );
- }
- },
- dragControlEnd: function (t, r) {
- this.dragEnd(t, r);
- },
- dragGroupControlEnd: function (t, r) {
- this.dragEnd(t, r);
- }
- });
- function Gr(t) {
- var r = t.originalDatas.draggable;
- return (
- r || ((t.originalDatas.draggable = {}), (r = t.originalDatas.draggable)),
- R(R({}, t), { datas: r })
- );
- }
- var Gd = ye('edgeDraggable', {
- css: ['.edge.edgeDraggable.line {\ncursor: move;\n}'],
- render: function (t, r) {
- var e = t.props,
- n = e.edgeDraggable;
- return n
- ? rs(r, 'edgeDraggable', n, t.getState().renderPoses, e.zoom)
- : [];
- },
- dragCondition: function (t, r) {
- var e,
- n = t.props,
- a = (e = r.inputEvent) === null || e === void 0 ? void 0 : e.target;
- return !n.edgeDraggable || !a
- ? !1
- : !n.draggable &&
- Tt(a, $('direction')) &&
- Tt(a, $('edge')) &&
- Tt(a, $('edgeDraggable'));
- },
- dragStart: function (t, r) {
- return Ht.dragStart(t, Gr(r));
- },
- drag: function (t, r) {
- return Ht.drag(t, Gr(r));
- },
- dragEnd: function (t, r) {
- return Ht.dragEnd(t, Gr(r));
- },
- dragGroupCondition: function (t, r) {
- var e,
- n = t.props,
- a = (e = r.inputEvent) === null || e === void 0 ? void 0 : e.target;
- return !n.edgeDraggable || !a
- ? !1
- : !n.draggable && Tt(a, $('direction')) && Tt(a, $('line'));
- },
- dragGroupStart: function (t, r) {
- return Ht.dragGroupStart(t, Gr(r));
- },
- dragGroup: function (t, r) {
- return Ht.dragGroup(t, Gr(r));
- },
- dragGroupEnd: function (t, r) {
- return Ht.dragGroupEnd(t, Gr(r));
- },
- unset: function (t) {
- return Ht.unset(t);
- }
- }),
- Qs = {
- name: 'individualGroupable',
- props: ['individualGroupable', 'individualGroupableProps'],
- events: []
- },
- Ja = [
- Vs,
- zs,
- Hp,
- ad,
- Ht,
- Gd,
- ra,
- id,
- sd,
- yp,
- vd,
- pd,
- fd,
- xd,
- bd,
- Md,
- Ka,
- Qs,
- kd,
- Fs,
- Ws
- ],
- Nd = Ja.reduce(function (t, r) {
- return (
- (r.events || []).forEach(function (e) {
- uo(t, e);
- }),
- t
- );
- }, []),
- Fd = Ja.reduce(function (t, r) {
- return (
- (r.props || []).forEach(function (e) {
- uo(t, e);
- }),
- t
- );
- }, []);
- function ji(t, r) {
- var e = B(t, 3),
- n = e[0],
- a = e[1],
- i = e[2];
- return (n * r[0] + a * r[1] + i) / Math.sqrt(n * n + a * a);
- }
- function He(t, r) {
- var e = B(t, 2),
- n = e[0],
- a = e[1];
- return -n * r[0] - a * r[1];
- }
- function Zi(t, r) {
- return Math.max.apply(
- Math,
- U(
- [],
- B(
- t.map(function (e) {
- var n = B(e, 4),
- a = n[0],
- i = n[1],
- o = n[2],
- s = n[3];
- return Math.max(a[r], i[r], o[r], s[r]);
- })
- ),
- !1
- )
- );
- }
- function _i(t, r) {
- return Math.min.apply(
- Math,
- U(
- [],
- B(
- t.map(function (e) {
- var n = B(e, 4),
- a = n[0],
- i = n[1],
- o = n[2],
- s = n[3];
- return Math.min(a[r], i[r], o[r], s[r]);
- })
- ),
- !1
- )
- );
- }
- function zd(t, r) {
- var e,
- n,
- a,
- i = [0, 0],
- o = [0, 0],
- s = [0, 0],
- u = [0, 0],
- l = 0,
- f = 0;
- if (!t.length)
- return {
- pos1: i,
- pos2: o,
- pos3: s,
- pos4: u,
- minX: 0,
- minY: 0,
- maxX: 0,
- maxY: 0,
- width: l,
- height: f,
- rotation: r
- };
- var c = nt(r, Ut);
- if (c % 90) {
- var v = (c / 180) * Math.PI,
- p = Math.tan(v),
- d = -1 / p,
- g = [Zn, yi],
- h = [
- [0, 0],
- [0, 0]
- ],
- A = [Zn, yi],
- m = [
- [0, 0],
- [0, 0]
- ];
- t.forEach(function (j) {
- j.forEach(function (K) {
- var X = ji([-p, 1, 0], K),
- W = ji([-d, 1, 0], K);
- g[0] > X && ((h[0] = K), (g[0] = X)),
- g[1] < X && ((h[1] = K), (g[1] = X)),
- A[0] > W && ((m[0] = K), (A[0] = W)),
- A[1] < W && ((m[1] = K), (A[1] = W));
- });
- });
- var E = B(h, 2),
- y = E[0],
- b = E[1],
- C = B(m, 2),
- S = C[0],
- D = C[1],
- x = [-p, 1, He([-p, 1], y)],
- w = [-p, 1, He([-p, 1], b)],
- T = [-d, 1, He([-d, 1], S)],
- I = [-d, 1, He([-d, 1], D)];
- (e = B(
- [
- [x, T],
- [x, I],
- [w, T],
- [w, I]
- ].map(function (j) {
- var K = B(j, 2),
- X = K[0],
- W = K[1];
- return wa(X, W)[0];
- }),
- 4
- )),
- (i = e[0]),
- (o = e[1]),
- (s = e[2]),
- (u = e[3]),
- (l = A[1] - A[0]),
- (f = g[1] - g[0]);
- } else {
- var M = _i(t, 0),
- O = _i(t, 1),
- P = Zi(t, 0),
- z = Zi(t, 1);
- if (
- ((i = [M, O]),
- (o = [P, O]),
- (s = [M, z]),
- (u = [P, z]),
- (l = P - M),
- (f = z - O),
- c % 180)
- ) {
- var H = [s, i, u, o];
- (n = B(H, 4)),
- (i = n[0]),
- (o = n[1]),
- (s = n[2]),
- (u = n[3]),
- (l = z - O),
- (f = P - M);
- }
- }
- if (c % 360 > 180) {
- var H = [u, s, o, i];
- (a = B(H, 4)), (i = a[0]), (o = a[1]), (s = a[2]), (u = a[3]);
- }
- var G = Tr([i, o, s, u]),
- L = G.minX,
- V = G.minY,
- F = G.maxX,
- Q = G.maxY;
- return {
- pos1: i,
- pos2: o,
- pos3: s,
- pos4: u,
- width: l,
- height: f,
- minX: L,
- minY: V,
- maxX: F,
- maxY: Q,
- rotation: r
- };
- }
- function Xs(t, r) {
- var e = r
- .map(function (n) {
- if (Rt(n)) {
- var a = Xs(t, n),
- i = a.length;
- return i > 1 ? a : i === 1 ? a[0] : null;
- } else {
- var o = Kt(t, function (s) {
- var u = s.manager;
- return u.props.target === n;
- });
- return o ? ((o.finded = !0), o.manager) : null;
- }
- })
- .filter(Boolean);
- return e.length === 1 && Rt(e[0]) ? e[0] : e;
- }
- var Hd = (function (t) {
- Ee(r, t);
- function r() {
- var e = (t !== null && t.apply(this, arguments)) || this;
- return (
- (e.differ = new Go()),
- (e.moveables = []),
- (e.transformOrigin = '50% 50%'),
- (e.renderGroupRects = []),
- (e._targetGroups = []),
- (e._hasFirstTargets = !1),
- e
- );
- }
- return (
- (r.prototype.componentDidMount = function () {
- t.prototype.componentDidMount.call(this);
- }),
- (r.prototype.checkUpdate = function () {
- (this._isPropTargetChanged = !1), this.updateAbles();
- }),
- (r.prototype.getTargets = function () {
- return this.props.targets;
- }),
- (r.prototype.updateRect = function (e, n, a) {
- var i;
- a === void 0 && (a = !0);
- var o = this.state;
- if (!this.controlBox || o.isPersisted) return;
- Yr(!0),
- this.moveables.forEach(function (rt) {
- rt.updateRect(e, !1, !1);
- });
- var s = this.props,
- u = this.moveables,
- l = o.target || s.target,
- f = u.map(function (rt) {
- return { finded: !1, manager: rt };
- }),
- c = this.props.targetGroups || [],
- v = Xs(f, c),
- p = s.useDefaultGroupRotate;
- v.push.apply(
- v,
- U(
- [],
- B(
- f
- .filter(function (rt) {
- var lt = rt.finded;
- return !lt;
- })
- .map(function (rt) {
- var lt = rt.manager;
- return lt;
- })
- ),
- !1
- )
- );
- var d = [],
- g = !n || (e !== '' && s.updateGroup),
- h = s.defaultGroupRotate || 0;
- if (!this._hasFirstTargets) {
- var A =
- (i = s.persistData) === null || i === void 0 ? void 0 : i.rotation;
- A != null && (h = A);
- }
- function m(rt, lt, et) {
- var Z = rt.map(function (pt) {
- if (Rt(pt)) {
- var st = m(pt, lt),
- ct = [st.pos1, st.pos2, st.pos3, st.pos4];
- return d.push(st), { poses: ct, rotation: st.rotation };
- } else return { poses: jt(pt.state), rotation: pt.getRotation() };
- }),
- J = Z.map(function (pt) {
- var st = pt.rotation;
- return st;
- }),
- vt = 0,
- at = J[0],
- it = J.every(function (pt) {
- return Math.abs(at - pt) < 0.1;
- });
- g ? (vt = !p && it ? at : h) : (vt = !p && !et && it ? at : lt);
- var ut = Z.map(function (pt) {
- var st = pt.poses;
- return st;
- }),
- At = zd(ut, vt);
- return At;
- }
- var E = m(v, this.rotation, !0);
- g &&
- ((this.rotation = E.rotation),
- (this.transformOrigin = s.defaultGroupOrigin || '50% 50%'),
- (this.scale = [1, 1])),
- (this._targetGroups = c),
- (this.renderGroupRects = d);
- var y = this.transformOrigin,
- b = this.rotation,
- C = this.scale,
- S = E.width,
- D = E.height,
- x = E.minX,
- w = E.minY,
- T = nd(
- [
- [0, 0],
- [S, 0],
- [0, D],
- [S, D]
- ],
- Ya(y, S, D),
- (this.rotation / 180) * Math.PI
- ),
- I = Tr(T.result),
- M = I.minX,
- O = I.minY,
- P =
- ' rotate('.concat(b, 'deg)') +
- ' scale('.concat(Xt(C[0]), ', ').concat(Xt(C[1]), ')'),
- z = 'translate('.concat(-M, 'px, ').concat(-O, 'px)').concat(P);
- (this.controlBox.style.transform = 'translate3d('
- .concat(x, 'px, ')
- .concat(w, 'px, ')
- .concat(this.props.translateZ || 0, ')')),
- (l.style.cssText +=
- 'left:0px;top:0px;' +
- 'transform-origin:'.concat(y, ';') +
- 'width:'.concat(S, 'px;height:').concat(D, 'px;') +
- 'transform: '.concat(z)),
- (o.width = S),
- (o.height = D);
- var H = this.getContainer(),
- G = la(
- this.controlBox,
- l,
- this.controlBox,
- this.getContainer(),
- this._rootContainer || H,
- []
- ),
- L = [G.left, G.top],
- V = B(jt(G), 4),
- F = V[0],
- Q = V[1],
- j = V[2],
- K = V[3],
- X = Tr([F, Q, j, K]),
- W = [X.minX, X.minY],
- _ = Xt(C[0] * C[1]);
- (G.pos1 = tt(F, W)),
- (G.pos2 = tt(Q, W)),
- (G.pos3 = tt(j, W)),
- (G.pos4 = tt(K, W)),
- (G.left = x - G.left + W[0]),
- (G.top = w - G.top + W[1]),
- (G.origin = tt(ft(L, G.origin), W)),
- (G.beforeOrigin = tt(ft(L, G.beforeOrigin), W)),
- (G.originalBeforeOrigin = ft(L, G.originalBeforeOrigin)),
- (G.transformOrigin = tt(ft(L, G.transformOrigin), W)),
- (l.style.transform =
- 'translate('.concat(-M - W[0], 'px, ').concat(-O - W[1], 'px)') +
- P),
- Yr(),
- this.updateState(
- R(R({}, G), { posDelta: W, direction: _, beforeDirection: _ }),
- a
- );
- }),
- (r.prototype.getRect = function () {
- return R(R({}, t.prototype.getRect.call(this)), {
- children: this.moveables.map(function (e) {
- return e.getRect();
- })
- });
- }),
- (r.prototype.triggerEvent = function (e, n, a) {
- if (a || e.indexOf('Group') > -1)
- return t.prototype.triggerEvent.call(this, e, n);
- this._emitter.trigger(e, n);
- }),
- (r.prototype.getRequestChildStyles = function () {
- var e = this.getEnabledAbles().reduce(function (n, a) {
- var i,
- o,
- s =
- (o =
- (i = a.requestChildStyle) === null || i === void 0
- ? void 0
- : i.call(a)) !== null && o !== void 0
- ? o
- : [];
- return U(U([], B(n), !1), B(s), !1);
- }, []);
- return e;
- }),
- (r.prototype.updateAbles = function () {
- t.prototype.updateAbles.call(
- this,
- U(U([], B(this.props.ables), !1), [Ka], !1),
- 'Group'
- );
- }),
- (r.prototype._updateTargets = function () {
- t.prototype._updateTargets.call(this),
- (this._originalDragTarget =
- this.props.dragTarget || this.areaElement),
- (this._dragTarget = nr(this._originalDragTarget, !0));
- }),
- (r.prototype._updateEvents = function () {
- var e = this.state,
- n = this.props,
- a = this._prevDragTarget,
- i = n.dragTarget || this.areaElement,
- o = n.targets,
- s = this.differ.update(o),
- u = s.added,
- l = s.changed,
- f = s.removed,
- c = u.length || f.length;
- (c || a !== i) &&
- (Hr(this, !1), Hr(this, !0), this.updateState({ gestos: {} })),
- a !== i && (e.target = null),
- e.target ||
- ((e.target = this.areaElement),
- (this.controlBox.style.display = 'block')),
- e.target &&
- (this.targetGesto ||
- (this.targetGesto = Ys(this, this._dragTarget, 'Group')),
- this.controlGesto ||
- (this.controlGesto = qa(
- this,
- this.controlBox,
- 'controlAbles',
- 'GroupControl'
- )));
- var v = !oa(e.container, n.container);
- v && (e.container = n.container),
- (v ||
- c ||
- this.transformOrigin !== (n.defaultGroupOrigin || '50% 50%') ||
- l.length ||
- (o.length && !ks(this._targetGroups, n.targetGroups || []))) &&
- (this.updateRect(), (this._hasFirstTargets = !0)),
- (this._isPropTargetChanged = !!c);
- }),
- (r.prototype._updateObserver = function () {}),
- (r.defaultProps = R(R({}, qr.defaultProps), {
- transformOrigin: ['50%', '50%'],
- groupable: !0,
- dragArea: !0,
- keepRatio: !0,
- targets: [],
- defaultGroupRotate: 0,
- defaultGroupOrigin: '50% 50%'
- })),
- r
- );
- })(qr),
- Ld = (function (t) {
- Ee(r, t);
- function r() {
- var e = (t !== null && t.apply(this, arguments)) || this;
- return (e.moveables = []), e;
- }
- return (
- (r.prototype.render = function () {
- var e = this,
- n,
- a = this.props,
- i = a.cspNonce,
- o = a.cssStyled,
- s = a.persistData,
- u = a.targets || [],
- l = u.length,
- f = this.isUnmounted || !l,
- c =
- (n = s == null ? void 0 : s.children) !== null && n !== void 0
- ? n
- : [];
- return (
- f && !l && c.length
- ? (u = c.map(function () {
- return null;
- }))
- : f || (c = []),
- _t(
- o,
- {
- cspNonce: i,
- ref: or(this, 'controlBox'),
- className: $('control-box')
- },
- u.map(function (v, p) {
- var d,
- g,
- h =
- (g =
- (d = a.individualGroupableProps) === null || d === void 0
- ? void 0
- : d.call(a, v, p)) !== null && g !== void 0
- ? g
- : {};
- return _t(
- qr,
- R({ key: 'moveable' + p, ref: eo(e, 'moveables', p) }, a, h, {
- target: v,
- wrapperMoveable: e,
- isWrapperMounted: e.isMoveableMounted,
- persistData: c[p]
- })
- );
- })
- )
- );
- }),
- (r.prototype.componentDidMount = function () {}),
- (r.prototype.componentDidUpdate = function () {}),
- (r.prototype.getTargets = function () {
- return this.props.targets;
- }),
- (r.prototype.updateRect = function (e, n, a) {
- a === void 0 && (a = !0),
- Yr(!0),
- this.moveables.forEach(function (i) {
- i.updateRect(e, n, a);
- }),
- Yr();
- }),
- (r.prototype.getRect = function () {
- return R(R({}, t.prototype.getRect.call(this)), {
- children: this.moveables.map(function (e) {
- return e.getRect();
- })
- });
- }),
- (r.prototype.request = function () {
- return {
- request: function () {
- return this;
- },
- requestEnd: function () {
- return this;
- }
- };
- }),
- (r.prototype.dragStart = function () {
- return this;
- }),
- (r.prototype.hitTest = function () {
- return 0;
- }),
- (r.prototype.isInside = function () {
- return !1;
- }),
- (r.prototype.isDragging = function () {
- return !1;
- }),
- (r.prototype.updateRenderPoses = function () {}),
- (r.prototype.checkUpdate = function () {}),
- (r.prototype.triggerEvent = function () {}),
- (r.prototype.updateAbles = function () {}),
- (r.prototype._updateEvents = function () {}),
- (r.prototype._updateObserver = function () {}),
- r
- );
- })(qr);
- function qs(t, r) {
- var e = [];
- return (
- t.forEach(function (n) {
- if (n) {
- if (Wt(n)) {
- r[n] && e.push.apply(e, U([], B(r[n]), !1));
- return;
- }
- Rt(n) ? e.push.apply(e, U([], B(qs(n, r)), !1)) : e.push(n);
- }
- }),
- e
- );
- }
- function Ks(t, r) {
- var e = [];
- return (
- t.forEach(function (n) {
- if (n) {
- if (Wt(n)) {
- r[n] && e.push.apply(e, U([], B(r[n]), !1));
- return;
- }
- Rt(n) ? e.push(Ks(n, r)) : e.push(n);
- }
- }),
- e
- );
- }
- function Js(t, r) {
- return (
- t.length !== r.length ||
- t.some(function (e, n) {
- var a = r[n];
- return !e && !a ? !1 : e != a ? (Rt(e) && Rt(a) ? Js(e, a) : !0) : !1;
- })
- );
- }
- var Ud = (function (t) {
- Ee(r, t);
- function r() {
- var e = (t !== null && t.apply(this, arguments)) || this;
- return (
- (e.refTargets = []),
- (e.selectorMap = {}),
- (e._differ = new Go()),
- (e._elementTargets = []),
- (e._onChangeTargets = null),
- e
- );
- }
- return (
- (r.makeStyled = function () {
- var e = {},
- n = this.getTotalAbles();
- n.forEach(function (i) {
- var o = i.css;
- o &&
- o.forEach(function (s) {
- e[s] = !0;
- });
- });
- var a = fr(e).join('\n');
- this.defaultStyled = Ho('div', kf(Ba, Rv + a));
- }),
- (r.getTotalAbles = function () {
- return U([zs, Ka, Qs, Fs], B(this.defaultAbles), !1);
- }),
- (r.prototype.render = function () {
- var e,
- n = this.constructor;
- n.defaultStyled || n.makeStyled();
- var a = this.props,
- i = a.ables,
- o = a.props,
- s = dv(a, ['ables', 'props']),
- u = this._updateRefs(!0),
- l = qs(u, this.selectorMap),
- f = l.length > 1,
- c = n.getTotalAbles(),
- v = U(U([], B(c), !1), B(i || []), !1),
- p = R(R(R({}, s), o || {}), {
- ables: v,
- cssStyled: n.defaultStyled,
- customStyledMap: n.customStyledMap
- });
- this._elementTargets = l;
- var d = null,
- g = this.moveable,
- h = s.persistData;
- if ((h != null && h.children && (f = !0), s.individualGroupable))
- return _t(
- Ld,
- R({ key: 'individual-group', ref: or(this, 'moveable') }, p, {
- target: null,
- targets: l
- })
- );
- if (f) {
- var A = Ks(u, this.selectorMap);
- if (g && !g.props.groupable && !g.props.individualGroupable) {
- var m = g.props.target;
- m && l.indexOf(m) > -1 && (d = R({}, g.state));
- }
- return _t(
- Hd,
- R(
- { key: 'group', ref: or(this, 'moveable') },
- p,
- (e = s.groupableProps) !== null && e !== void 0 ? e : {},
- { target: null, targets: l, targetGroups: A, firstRenderState: d }
- )
- );
- } else {
- var E = l[0];
- if (g && (g.props.groupable || g.props.individualGroupable)) {
- var y = g.moveables || [],
- b = Kt(y, function (C) {
- return C.props.target === E;
- });
- b && (d = R({}, b.state));
- }
- return _t(
- qr,
- R({ key: 'single', ref: or(this, 'moveable') }, p, {
- target: E,
- firstRenderState: d
- })
- );
- }
- }),
- (r.prototype.componentDidMount = function () {
- this._checkChangeTargets(), this._updateRefs();
- }),
- (r.prototype.componentDidUpdate = function () {
- this._checkChangeTargets();
- }),
- (r.prototype.componentWillUnmount = function () {
- (this.selectorMap = {}), (this.refTargets = []);
- }),
- (r.prototype.getTargets = function () {
- var e, n;
- return (n =
- (e = this.moveable) === null || e === void 0
- ? void 0
- : e.getTargets()) !== null && n !== void 0
- ? n
- : [];
- }),
- (r.prototype.updateSelectors = function () {
- (this.selectorMap = {}), this._updateRefs();
- }),
- (r.prototype.waitToChangeTarget = function () {
- var e = this,
- n;
- return (
- (this._onChangeTargets = function () {
- (e._onChangeTargets = null), n();
- }),
- new Promise(function (a) {
- n = a;
- })
- );
- }),
- (r.prototype.waitToChangeTargets = function () {
- return this.waitToChangeTarget();
- }),
- (r.prototype.getManager = function () {
- return this.moveable;
- }),
- (r.prototype._updateRefs = function (e) {
- var n = this.refTargets,
- a = Wa(this.props.target || this.props.targets),
- i = typeof document < 'u',
- o = Js(n, a),
- s = this.selectorMap,
- u = {};
- return (
- this.refTargets.forEach(function l(f) {
- if (Wt(f)) {
- var c = s[f];
- c
- ? (u[f] = s[f])
- : i &&
- ((o = !0),
- (u[f] = [].slice.call(document.querySelectorAll(f))));
- } else Rt(f) && f.forEach(l);
- }),
- (this.refTargets = a),
- (this.selectorMap = u),
- !e && o && this.forceUpdate(),
- a
- );
- }),
- (r.prototype._checkChangeTargets = function () {
- var e,
- n,
- a,
- i = this._differ.update(this._elementTargets),
- o = i.added,
- s = i.removed,
- u = o.length || s.length;
- u &&
- ((n = (e = this.props).onChangeTargets) === null ||
- n === void 0 ||
- n.call(e, {
- moveable: this.moveable,
- targets: this._elementTargets
- }),
- (a = this._onChangeTargets) === null || a === void 0 || a.call(this)),
- this._updateRefs();
- }),
- (r.defaultAbles = []),
- (r.customStyledMap = {}),
- (r.defaultStyled = null),
- gv([Gf(Qo)], r.prototype, 'moveable', void 0),
- r
- );
- })(mo),
- Vd = (function (t) {
- Ee(r, t);
- function r() {
- return (t !== null && t.apply(this, arguments)) || this;
- }
- return (r.defaultAbles = Ja), r;
- })(Ud),
- fa = function (t, r) {
- return (
- (fa =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (e, n) {
- e.__proto__ = n;
- }) ||
- function (e, n) {
- for (var a in n)
- Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
- }),
- fa(t, r)
- );
- };
- function ja(t, r) {
- if (typeof r != 'function' && r !== null)
- throw new TypeError(
- 'Class extends value ' + String(r) + ' is not a constructor or null'
- );
- fa(t, r);
- function e() {
- this.constructor = t;
- }
- t.prototype =
- r === null ? Object.create(r) : ((e.prototype = r.prototype), new e());
- }
- var de = function () {
- return (
- (de =
- Object.assign ||
- function (r) {
- for (var e, n = 1, a = arguments.length; n < a; n++) {
- e = arguments[n];
- for (var i in e)
- Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
- }
- return r;
- }),
- de.apply(this, arguments)
- );
- };
- function Wd(t, r, e, n) {
- var a = arguments.length,
- i =
- a < 3 ? r : n === null ? (n = Object.getOwnPropertyDescriptor(r, e)) : n,
- o;
- if (typeof Reflect == 'object' && typeof Reflect.decorate == 'function')
- i = Reflect.decorate(t, r, e, n);
- else
- for (var s = t.length - 1; s >= 0; s--)
- (o = t[s]) && (i = (a < 3 ? o(i) : a > 3 ? o(r, e, i) : o(r, e)) || i);
- return a > 3 && i && Object.defineProperty(r, e, i), i;
- }
- var Yd = (function (t) {
- ja(r, t);
- function r(n) {
- var a = t.call(this, n) || this;
- return (a.state = {}), (a.state = a.props), a;
- }
- var e = r.prototype;
- return (
- (e.render = function () {
- return _t(Vd, de({ ref: or(this, 'moveable') }, this.state));
- }),
- r
- );
- })(Ea),
- Qd = Fd,
- Xd = Qo,
- qd = Nd,
- Kd = (function (t) {
- ja(r, t);
- function r(n, a) {
- a === void 0 && (a = {});
- var i = t.call(this) || this;
- (i.containerProvider = null), (i.selfElement = null), (i._warp = !1);
- var o = de({}, a),
- s = {};
- qd.forEach(function (f) {
- s[Qf('on '.concat(f))] = function (c) {
- return i.trigger(f, c);
- };
- });
- var u;
- a.warpSelf
- ? (delete a.warpSelf, (i._warp = !0), (u = n))
- : ((u = Jr(n).createElement('div')), n.appendChild(u)),
- (i.containerProvider = hi(
- _t(Yd, de({ ref: or(i, 'innerMoveable') }, o, s)),
- u
- )),
- (i.selfElement = u);
- var l = o.target;
- return Rt(l) && l.length > 1 && i.updateRect(), i;
- }
- var e = r.prototype;
- return (
- (e.setState = function (n, a) {
- this.innerMoveable.setState(n, a);
- }),
- (e.forceUpdate = function (n) {
- this.innerMoveable.forceUpdate(n);
- }),
- (e.dragStart = function (n) {
- var a = this.innerMoveable;
- a.$_timer && this.forceUpdate(), this.getMoveable().dragStart(n);
- }),
- (e.destroy = function () {
- var n,
- a = this.selfElement;
- hi(null, a, this.containerProvider),
- this._warp ||
- (n = a == null ? void 0 : a.parentElement) === null ||
- n === void 0 ||
- n.removeChild(a),
- (this.containerProvider = null),
- this.off(),
- (this.selfElement = null),
- (this.innerMoveable = null);
- }),
- (e.getMoveable = function () {
- return this.innerMoveable.moveable;
- }),
- (r = Wd(
- [
- si(Xd, function (n, a) {
- n[a] ||
- (n[a] = function () {
- for (var i = [], o = 0; o < arguments.length; o++)
- i[o] = arguments[o];
- var s = this.getMoveable();
- if (!(!s || !s[a])) return s[a].apply(s, i);
- });
- }),
- si(Qd, function (n, a) {
- Object.defineProperty(n, a, {
- get: function () {
- return this.getMoveable().props[a];
- },
- set: function (i) {
- var o;
- this.setState(((o = {}), (o[a] = i), o));
- },
- enumerable: !0,
- configurable: !0
- });
- })
- ],
- r
- )),
- r
- );
- })(sn),
- Jd = (function (t) {
- ja(r, t);
- function r() {
- return (t !== null && t.apply(this, arguments)) || this;
- }
- return r;
- })(Kd);
- const jd =
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAADaxJREFUeF7tXQ2QVVUd/523q+iyT6EkYdnGnGGMqbEsv7Ks1AkqI4EsywKTDIKyD5nUhoCIjxBCpC8TyDBFbfoSphQFDRpsZKMZM8NMPpatu7swA4K7y7LL7r5/87/vnOXs4Zx773t7d99l976Znb3vvfvuPef/O///7/9x7jkCMbyI6OyGVoyjHK4VhLEEjBHAcBLIgnBmDLdIziUETghCMwFHBLCHBF4VGWytqsAWIcTx3jZUFHuBo0TDW45hoiBMBDCeCBXFXmsg/E4ItALYTAIbK4di4zAhjhTTr4IBaSCqyLVgtiDcRUC2mJsO9N8IoJkElmcqsbJKCAYq8isyIERU1tiM23ICC0AYFfkOg/lEgcYMYcGoLB4UQnRFEUUkQA610uj2Tmwg4LIoF03P6SkBAfx9SDkmnVch6sNkEwrIgVa6srMLT6RaESbKkO8FGsvLMHlkhagJOjMQkIYWmpIjrAXhrF42J/05S0CgLSMwvapSrHcJxAmID0YOj6SSjF8CmQ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tcpWTymELxxAexPidWNLD8g8R2CoR+vs+o4ugEdMsraRcpTPwtxgJvWYa+SlB2RuQC5LgcKkfqljDlWUYC7MjIWZMBdPMal/fIBpyIXzgY6cMZ1UN1d8zGXcCb1IEkaJN3ROCgJZ06wzIFA7vtAxHe/5sXPIjEeBp14Jmb3Ig/B6AG8Krxz63Q0a8bapRK44IySmuX6EwJp3xyvgQq8WOyBcvfvDP4AGXihGab/KmvqOtmwi19U5QFQvneD1YzXSCznP9Xs9NlHnyOtXnQV86nxgiMooFCrJmM6PHZCY2jVoL5MCkjDoU0ASB0i6CGZyIOFFMNNlYpOEBy8Tmy6knBxEAH8h5XSp8YRAkl9qPF2MPyFw+DHaqnS7iuTAkd+uIt3QJRmIdG/ows1JtzwqPSjdWx5xU9JNwUoPSI9NwdJt80oLyCnb5vlakm4sWTpUzI0luSXp1qslwsO19aoPSro5cb+j4tyc2K/TpNt39ysgodt3c2vSDe77CZMoG9yrphxopSs7u7AN5D8NmL7iloBAW3kZrhlZIWrMSzvnvDS00JRcDo/E3Zb0ekAmg6lVlWK9TRaBk5B8UAhrU02JaRgJtGUEprvA4LuEzgqT5usJkL8gRvoqVgICjeVlmGwzU/olQwFRRN/eCV5Biuetp68CJcDe1JByTDqvQtSH/TQSIMolbmzGbTmBBam2hIlVfs9BH2HBqCweFEKo5aIDfxwZEHUVGdHPFoS7CMhGbNqgOo1zUySwPFOJlVVC8LqpkV8FA6KuzAnJlmNcUMFEAOOJ/Ec5B+2L6xkANpPAxsqh2DhMCPVkfUEyKRoQ/S5+kasV4yiHawVhLAFjBDCcBLIDbp9dnqpD4BXhjwhgDwm8KjLYWlWBLUII3uOhV6//A2nUuK3w7m5SAAAAAElFTkSuQmCC',
- Zd = '' + new URL('toolbox-b154b72c.png', import.meta.url).href,
- _d = '' + new URL('setTimeIcon-7c3b5a37.png', import.meta.url).href,
- $d = '' + new URL('beatIcon-902ff81a.png', import.meta.url).href,
- tg = '' + new URL('toneIcon-f58dd6e3.png', import.meta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Iw6CFEDW10EHpolRIRVf4V8qPRbjfZ8XVBMTl17fTk+n8i0iKzl0qphNdzNttGtKN7SELSUlC8T42IbYVTyMqw40vHZ0Y1XASHmOFKpEfE8V6m8t1FFKQlXRAgqmcr0iNI9Unm3ncpzCDE/OMs/nezIPP4CCXXRdjREEvkELSZpkc4+y9hiB+ccRB0ZZLtlnA2yws2cOIQKQdI0kEYYmZ+wQYOMgmLYZjxvCABZd1Ew60v3VTbVorFMPYQBemCFOSuxKWImA2LxSeXlKSjoN1evBeTjc5163O5653DjIIWrwYbnWZbtuubcUBAsqBgB+L9fDDdfJ7N5xsv4Xjzw9Jw8znVNvrhND9ONpvJcX46vE7Nt9GtHAhYOdqwckhj47jJysGZlSNAG4eZVo5lbRww2zgqt3Lob+P6go2LGDaulNi4HGPjmo+FC0s2rl5Zv0Rm5TrcH7lNubIoVSvAAAAAAElFTkSuQmCC',
- Ig = Kr({
- name: 'layoutView',
- setup() {
- const t = ca(),
- r = dt(!1),
- e = dt({}),
- n = dt('left'),
- a = dt(!1),
- i = dt(!1),
- o = dt(!1),
- s = dt(!1);
- dt(!1), pu();
- const u = wr({
- isBoundary: !1,
- isBoundaryType: '',
- mainWidth: '',
- mainHeight: '',
- subWidth: '',
- subHeight: ''
- });
- wr({
- isBoundary: !0,
- isBoundaryType: 'right',
- mainWidth: '',
- mainHeight: '',
- subWidth: '',
- subHeight: ''
- });
- const l = to(),
- f = dt(!1),
- c = dt(),
- v = async () => {
- document.querySelector('.wrap') &&
- new Jd(document.querySelector('.wrap'), {
- target: document.querySelector('#moveNPopover'),
- container: document.querySelector('.wrap'),
- draggable: !0,
- resizable: !1,
- scalable: !1,
- rotatable: !1,
- warpable: !1,
- pinchable: !1,
- origin: !1,
- keepRatio: !1,
- edge: !1,
- throttleDrag: 0,
- throttleResize: 0,
- throttleScale: 0,
- throttleRotate: 0
- })
- .on(
- 'drag',
- ({ target: D, left: x, top: w, right: T, bottom: I }) => {
- (f.value = !0), c.value && c.value.setShow(!1);
- const M = document.getElementById('moveNPopover'),
- O = getComputedStyle(M, null),
- P = {
- left: Number(O.left.replace('px', '')),
- top: Number(O.top.replace('px', '')),
- width: Number(O.width.replace('px', '')),
- height: Number(O.height.replace('px', ''))
- },
- z =
- parseInt(
- window.getComputedStyle(document.querySelector('.wrap'))
- .width
- ) - P.width,
- H =
- parseInt(
- window.getComputedStyle(document.querySelector('.wrap'))
- .height
- ) - P.height;
- (M.style.transition = ''),
- (u.isBoundary = !1),
- (u.isBoundaryType = ''),
- (u.mainHeight = H),
- (u.mainWidth = z),
- (u.subWidth = P.width),
- (u.subHeight = P.height),
- x < 0 &&
- ((x = 2),
- (u.isBoundary = !0),
- (u.isBoundaryType = 'left')),
- w < 0 &&
- ((w = 2),
- (u.isBoundary = !0),
- (u.isBoundaryType = 'top')),
- T < 0 && (T = 2),
- I < 0 && (I = 2),
- x > z - 2 &&
- ((x = z - 2),
- (u.isBoundary = !0),
- (u.isBoundaryType = 'right')),
- w > H - 2 &&
- ((w = H - 2),
- (u.isBoundary = !0),
- (u.isBoundaryType = 'bottom')),
- (D.style.left = ''.concat(x, 'px')),
- (D.style.top = ''.concat(w, 'px'));
- }
- )
- .on('dragEnd', async ({ target: D, clientX: x }) => {
- document.body.clientWidth / 2 - x > 0
- ? (n.value = 'right')
- : (n.value = 'left'),
- (f.value = !1),
- u.isBoundary &&
- ((D.style.transition = '.3s'), y(D, u.isBoundaryType));
- });
- };
- $i(
- () => l.path,
- S => {
- const D = document.getElementById('WrapcoreViewWrap');
- D && (D.scrollTo(0, 0), window.scrollTo(0, 0));
- }
- );
- const p = wr({ baseListTab: '' }),
- d = ni(() => {
- const S = l.path,
- D = [
- '/classDetail',
- '/classStudentDetail',
- '/notation',
- '/xiaoku-ai'
- ];
- return l.path === '/setting'
- ? p.baseListTab === 'school'
- : !D.includes(S);
- }),
- g = ni(() => {
- const S = l.path;
- return (
- console.log(S, 'routePath', S), !['/prepare-lessons'].includes(S)
- );
- });
- en(() => {
- v();
- const S = document.getElementById('moveNPopover');
- A(S, u),
- b(S, u),
- window.addEventListener('resize', h),
- ai.on('base-setting-emit', D => {
- p.baseListTab = D;
- });
- });
- const h = () => {
- const S = document.getElementById('moveNPopover');
- (S.style.display = 'none'),
- c.value && c.value.setShow(!1),
- setTimeout(() => {
- (S.style.transition = ''),
- b(S, u),
- A(S, u),
- console.log('resize'),
- (S.style.display = 'block');
- }, 100);
- };
- du(() => {
- window.removeEventListener('resize', h);
- });
- const A = (S, D) => {
- S.addEventListener('mouseover', () => {
- D.isBoundary &&
- (D.isBoundaryType == 'left'
- ? (S.style.left = '2px')
- : D.isBoundaryType == 'right'
- ? (S.style.left = ''.concat(D.mainWidth - 2, 'px'))
- : D.isBoundaryType == 'top'
- ? (S.style.top = '2px')
- : D.isBoundaryType == 'bottom' &&
- (S.style.top = ''.concat(D.mainHeight - 2, 'px'))),
- E(S, 0);
- }),
- S.addEventListener('mouseout', () => {
- D.isBoundary &&
- (D.isBoundaryType == 'left'
- ? y(S, 'left')
- : D.isBoundaryType == 'right'
- ? y(S, 'right')
- : D.isBoundaryType == 'top'
- ? y(S, 'top')
- : D.isBoundaryType == 'bottom' && y(S, 'bottom'));
- });
- },
- m = S => {
- S == 'setTimeIcon' && (s.value = !0),
- S == 'beatIcon' && (i.value = !0),
- S == 'toneIcon' && (o.value = !0),
- S == 'iconNote' &&
- (c.value && c.value.setShow(!1),
- console.log(l.name, 'guideInfo'),
- ai.emit('teacher-guideInfo', l.name)),
- S == 'iconWhiteBorad' &&
- ((C.whiteboardShow = !0),
- (C.type = 'whiteboard'),
- (C.homeStatus = !1),
- c.value && c.value.setShow(!1)),
- S == 'iconPen' &&
- ((C.penShow = !0),
- (C.type = 'pen'),
- (C.homeStatus = !1),
- c.value && c.value.setShow(!1));
- },
- E = (S, D) => {
- S.style.transform = ' rotate(' + D + ')';
- },
- y = (S, D) => {
- switch (D) {
- case 'left':
- E(S, '90deg'),
- (S.style.left = ''.concat(2 - u.subWidth / 2, 'px')),
- (S.style.top = ''.concat(top, 'px'));
- break;
- case 'right':
- E(S, '-90deg'),
- (S.style.left = ''.concat(
- u.mainWidth - 2 + u.subWidth / 2,
- 'px'
- )),
- (S.style.top = ''.concat(top, 'px'));
- break;
- case 'top':
- (S.style.top = ''.concat(2 - u.subHeight / 2, 'px')),
- E(S, '-180deg');
- break;
- case 'bottom':
- S.style.top = ''.concat(u.mainHeight - 2 + u.subHeight / 2, 'px');
- break;
- default:
- E(S, '-0');
- break;
- }
- },
- b = (S, D) => {
- const x = getComputedStyle(S, null),
- w = {
- left: Number(x.left.replace('px', '')),
- top: Number(x.top.replace('px', '')),
- width: Number(x.width.replace('px', '')),
- height: Number(x.height.replace('px', ''))
- },
- T =
- parseInt(
- window.getComputedStyle(document.querySelector('.wrap')).width
- ) - w.width,
- I =
- parseInt(
- window.getComputedStyle(document.querySelector('.wrap')).height
- ) - w.height;
- (D.mainHeight = I),
- (D.mainWidth = T),
- (D.subWidth = w.width),
- (D.subHeight = w.height),
- (S.style.transition = '.3s .3s');
- },
- C = wr({ homeStatus: !0, type: '', penShow: !1, whiteboardShow: !1 });
- return () =>
- k('div', { class: [q.wrap, 'wrap'] }, [
- k('div', null, [k(Vl, null, null)]),
- k('div', { class: q.Wrapcore }, [
- k(Of, null, null),
- k('div', { class: q.WrapcoreView, id: 'WrapcoreViewWrap' }, [
- k(gu('router-view'), null, {
- default: S =>
- k(
- hu,
- { name: 'fade-slide', mode: 'out-in' },
- { default: () => [k(S.Component, null, null)] }
- )
- })
- ])
- ]),
- k(
- ro,
- {
- raw: !0,
- trigger: 'click',
- ref: c,
- 'show-arrow': !1,
- placement: n.value
- },
- {
- default: () => [
- k('div', { class: q.booxToolWrap }, [
- k('div', null, [
- k(
- 'div',
- { class: q.booxToolItem, onClick: () => m('beatIcon') },
- [k('img', { src: $d, alt: '' }, null), Gt('节拍器')]
- ),
- k(
- 'div',
- { class: q.booxToolItem, onClick: () => m('toneIcon') },
- [k('img', { src: tg, alt: '' }, null), Gt('调音器')]
- ),
- k(
- 'div',
- {
- class: q.booxToolItem,
- onClick: () => m('setTimeIcon')
- },
- [k('img', { src: _d, alt: '' }, null), Gt('计时器')]
- ),
- k(
- 'div',
- {
- class: [q.booxToolItem, !g.value && q.booxToolDisabled],
- onClick: () => {
- g.value && (a.value = !0);
- }
- },
- [
- k(
- 'img',
- { src: jd, class: [q.toolClassImg], alt: '' },
- null
- ),
- Gt('开始上课')
- ]
- )
- ]),
- k('div', null, [
- k(
- 'div',
- {
- class: [q.booxToolItem, !d.value && q.booxToolDisabled],
- onClick: () => {
- d.value && m('iconNote');
- }
- },
- [k('img', { src: ng, alt: '' }, null), Gt('帮助指引')]
- ),
- k(
- 'div',
- { class: q.booxToolItem, onClick: () => m('iconPen') },
- [k('img', { src: rg, alt: '' }, null), Gt('批注')]
- ),
- k(
- 'div',
- {
- class: q.booxToolItem,
- onClick: () => m('iconWhiteBorad')
- },
- [k('img', { src: eg, alt: '' }, null), Gt('白板')]
- )
- ])
- ])
- ],
- trigger: () =>
- k(
- 'img',
- {
- src: Zd,
- id: 'moveNPopover',
- style: { display: C.homeStatus ? 'block' : 'none' },
- class: [
- q.toolboxImg,
- 'moveNPopover',
- f.value ? q.isDragIng : ''
- ],
- alt: ''
- },
- null
- )
- }
- ),
- C.penShow &&
- k(
- oi,
- {
- show: C.type === 'pen',
- type: C.type,
- close: () => {
- (C.type = 'init'), (C.homeStatus = !0);
- }
- },
- null
- ),
- C.whiteboardShow &&
- k(
- oi,
- {
- show: C.type === 'whiteboard',
- type: C.type,
- close: () => {
- (C.type = 'init'), (C.homeStatus = !0);
- }
- },
- null
- ),
- k(
- Rr,
- {
- class: ['modalTitle background'],
- style: { width: '687px' },
- title: '节拍器',
- preset: 'card',
- show: i.value,
- 'onUpdate:show': S => (i.value = S)
- },
- {
- default: () => [
- k('div', { class: q.modeWrap }, [
- k(
- 'iframe',
- {
- src: ''
- .concat(Du(), '/metronome/?id=')
- .concat(new Date().getTime()),
- scrolling: 'no',
- frameborder: '0',
- width: '100%',
- height: '650px'
- },
- null
- )
- ])
- ]
- }
- ),
- k(
- Rr,
- {
- show: o.value,
- 'onUpdate:show': S => (o.value = S),
- class: ['background']
- },
- {
- default: () => [
- k('div', null, [
- k(
- Eu,
- {
- onClose: () => {
- o.value = !1;
- }
- },
- null
- )
- ])
- ]
- }
- ),
- k(
- Rr,
- {
- show: s.value,
- 'onUpdate:show': S => (s.value = S),
- class: ['modalTitle background'],
- title: '计时器',
- preset: 'card',
- style: { width: Au(772) }
- },
- { default: () => [k('div', null, [k(yu, null, null)])] }
- ),
- k(
- Rr,
- {
- show: a.value,
- 'onUpdate:show': S => (a.value = S),
- class: ['modalTitle background', q.showClass],
- preset: 'card',
- title: '开始上课'
- },
- {
- default: () => [
- k(
- xu,
- {
- onClose: () => (a.value = !1),
- type: 'change',
- onConfirm: S => {
- (a.value = !1),
- t.push({ path: '/prepare-lessons', query: { ...S } });
- }
- },
- null
- )
- ]
- }
- ),
- k(
- bu,
- {
- show: r.value,
- 'onUpdate:show': S => (r.value = S),
- type: 'attend',
- params: e.value
- },
- null
- )
- ]);
- }
- });
- export { Ig as default };
|